2
0

converse-no-dependencies.js 2.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/ // The module cache
  3. /******/ var installedModules = {};
  4. /******/
  5. /******/ // The require function
  6. /******/ function __webpack_require__(moduleId) {
  7. /******/
  8. /******/ // Check if module is in cache
  9. /******/ if(installedModules[moduleId]) {
  10. /******/ return installedModules[moduleId].exports;
  11. /******/ }
  12. /******/ // Create a new module (and put it into the cache)
  13. /******/ var module = installedModules[moduleId] = {
  14. /******/ i: moduleId,
  15. /******/ l: false,
  16. /******/ exports: {}
  17. /******/ };
  18. /******/
  19. /******/ // Execute the module function
  20. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/ // Flag the module as loaded
  23. /******/ module.l = true;
  24. /******/
  25. /******/ // Return the exports of the module
  26. /******/ return module.exports;
  27. /******/ }
  28. /******/
  29. /******/
  30. /******/ // expose the modules object (__webpack_modules__)
  31. /******/ __webpack_require__.m = modules;
  32. /******/
  33. /******/ // expose the module cache
  34. /******/ __webpack_require__.c = installedModules;
  35. /******/
  36. /******/ // define getter function for harmony exports
  37. /******/ __webpack_require__.d = function(exports, name, getter) {
  38. /******/ if(!__webpack_require__.o(exports, name)) {
  39. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  40. /******/ }
  41. /******/ };
  42. /******/
  43. /******/ // define __esModule on exports
  44. /******/ __webpack_require__.r = function(exports) {
  45. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  46. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  47. /******/ }
  48. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  49. /******/ };
  50. /******/
  51. /******/ // create a fake namespace object
  52. /******/ // mode & 1: value is a module id, require it
  53. /******/ // mode & 2: merge all properties of value into the ns
  54. /******/ // mode & 4: return value when already ns object
  55. /******/ // mode & 8|1: behave like require
  56. /******/ __webpack_require__.t = function(value, mode) {
  57. /******/ if(mode & 1) value = __webpack_require__(value);
  58. /******/ if(mode & 8) return value;
  59. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  60. /******/ var ns = Object.create(null);
  61. /******/ __webpack_require__.r(ns);
  62. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  63. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  64. /******/ return ns;
  65. /******/ };
  66. /******/
  67. /******/ // getDefaultExport function for compatibility with non-harmony modules
  68. /******/ __webpack_require__.n = function(module) {
  69. /******/ var getter = module && module.__esModule ?
  70. /******/ function getDefault() { return module['default']; } :
  71. /******/ function getModuleExports() { return module; };
  72. /******/ __webpack_require__.d(getter, 'a', getter);
  73. /******/ return getter;
  74. /******/ };
  75. /******/
  76. /******/ // Object.prototype.hasOwnProperty.call
  77. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  78. /******/
  79. /******/ // __webpack_public_path__
  80. /******/ __webpack_require__.p = "";
  81. /******/
  82. /******/
  83. /******/ // Load entry module and return exports
  84. /******/ return __webpack_require__(__webpack_require__.s = "./src/converse.js");
  85. /******/ })
  86. /************************************************************************/
  87. /******/ ({
  88. /***/ "./node_modules/backbone.nativeview/backbone.nativeview.js":
  89. /*!*****************************************************************!*\
  90. !*** ./node_modules/backbone.nativeview/backbone.nativeview.js ***!
  91. \*****************************************************************/
  92. /*! no static exports found */
  93. /***/ (function(module, exports, __webpack_require__) {
  94. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Backbone.NativeView.js 0.3.3
  95. // ---------------
  96. // (c) 2015 Adam Krebs, Jimmy Yuen Ho Wong
  97. // Backbone.NativeView may be freely distributed under the MIT license.
  98. // For all details and documentation:
  99. // https://github.com/akre54/Backbone.NativeView
  100. (function (factory) {
  101. if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  102. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  103. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  104. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  105. } else {}
  106. }(function (Backbone) {
  107. // Cached regex to match an opening '<' of an HTML tag, possibly left-padded
  108. // with whitespace.
  109. var paddedLt = /^\s*</;
  110. // Caches a local reference to `Element.prototype` for faster access.
  111. var ElementProto = (typeof Element !== 'undefined' && Element.prototype) || {};
  112. // Cross-browser event listener shims
  113. var elementAddEventListener = ElementProto.addEventListener || function(eventName, listener) {
  114. return this.attachEvent('on' + eventName, listener);
  115. }
  116. var elementRemoveEventListener = ElementProto.removeEventListener || function(eventName, listener) {
  117. return this.detachEvent('on' + eventName, listener);
  118. }
  119. var indexOf = function(array, item) {
  120. for (var i = 0, len = array.length; i < len; i++) if (array[i] === item) return i;
  121. return -1;
  122. }
  123. // Find the right `Element#matches` for IE>=9 and modern browsers.
  124. var matchesSelector = ElementProto.matches ||
  125. ElementProto.webkitMatchesSelector ||
  126. ElementProto.mozMatchesSelector ||
  127. ElementProto.msMatchesSelector ||
  128. ElementProto.oMatchesSelector ||
  129. // Make our own `Element#matches` for IE8
  130. function(selector) {
  131. // Use querySelectorAll to find all elements matching the selector,
  132. // then check if the given element is included in that list.
  133. // Executing the query on the parentNode reduces the resulting nodeList,
  134. // (document doesn't have a parentNode).
  135. var nodeList = (this.parentNode || document).querySelectorAll(selector) || [];
  136. return ~indexOf(nodeList, this);
  137. };
  138. // Cache Backbone.View for later access in constructor
  139. var BBView = Backbone.View;
  140. // To extend an existing view to use native methods, extend the View prototype
  141. // with the mixin: _.extend(MyView.prototype, Backbone.NativeViewMixin);
  142. Backbone.NativeViewMixin = {
  143. _domEvents: null,
  144. constructor: function() {
  145. this._domEvents = [];
  146. return BBView.apply(this, arguments);
  147. },
  148. $: function(selector) {
  149. return this.el.querySelectorAll(selector);
  150. },
  151. _removeElement: function() {
  152. this.undelegateEvents();
  153. if (this.el.parentNode) this.el.parentNode.removeChild(this.el);
  154. },
  155. // Apply the `element` to the view. `element` can be a CSS selector,
  156. // a string of HTML, or an Element node.
  157. _setElement: function(element) {
  158. if (typeof element == 'string') {
  159. if (paddedLt.test(element)) {
  160. var el = document.createElement('div');
  161. el.innerHTML = element;
  162. this.el = el.firstChild;
  163. } else {
  164. this.el = document.querySelector(element);
  165. }
  166. } else {
  167. this.el = element;
  168. }
  169. },
  170. // Set a hash of attributes to the view's `el`. We use the "prop" version
  171. // if available, falling back to `setAttribute` for the catch-all.
  172. _setAttributes: function(attrs) {
  173. for (var attr in attrs) {
  174. attr in this.el ? this.el[attr] = attrs[attr] : this.el.setAttribute(attr, attrs[attr]);
  175. }
  176. },
  177. // Make a event delegation handler for the given `eventName` and `selector`
  178. // and attach it to `this.el`.
  179. // If selector is empty, the listener will be bound to `this.el`. If not, a
  180. // new handler that will recursively traverse up the event target's DOM
  181. // hierarchy looking for a node that matches the selector. If one is found,
  182. // the event's `delegateTarget` property is set to it and the return the
  183. // result of calling bound `listener` with the parameters given to the
  184. // handler.
  185. delegate: function(eventName, selector, listener) {
  186. if (typeof selector === 'function') {
  187. listener = selector;
  188. selector = null;
  189. }
  190. var root = this.el;
  191. var handler = selector ? function (e) {
  192. var node = e.target || e.srcElement;
  193. for (; node && node != root; node = node.parentNode) {
  194. if (matchesSelector.call(node, selector)) {
  195. e.delegateTarget = node;
  196. listener(e);
  197. }
  198. }
  199. } : listener;
  200. elementAddEventListener.call(this.el, eventName, handler, false);
  201. this._domEvents.push({eventName: eventName, handler: handler, listener: listener, selector: selector});
  202. return handler;
  203. },
  204. // Remove a single delegated event. Either `eventName` or `selector` must
  205. // be included, `selector` and `listener` are optional.
  206. undelegate: function(eventName, selector, listener) {
  207. if (typeof selector === 'function') {
  208. listener = selector;
  209. selector = null;
  210. }
  211. if (this.el) {
  212. var handlers = this._domEvents.slice();
  213. for (var i = 0, len = handlers.length; i < len; i++) {
  214. var item = handlers[i];
  215. var match = item.eventName === eventName &&
  216. (listener ? item.listener === listener : true) &&
  217. (selector ? item.selector === selector : true);
  218. if (!match) continue;
  219. elementRemoveEventListener.call(this.el, item.eventName, item.handler, false);
  220. this._domEvents.splice(indexOf(handlers, item), 1);
  221. }
  222. }
  223. return this;
  224. },
  225. // Remove all events created with `delegate` from `el`
  226. undelegateEvents: function() {
  227. if (this.el) {
  228. for (var i = 0, len = this._domEvents.length; i < len; i++) {
  229. var item = this._domEvents[i];
  230. elementRemoveEventListener.call(this.el, item.eventName, item.handler, false);
  231. };
  232. this._domEvents.length = 0;
  233. }
  234. return this;
  235. }
  236. };
  237. Backbone.NativeView = Backbone.View.extend(Backbone.NativeViewMixin);
  238. return Backbone.NativeView;
  239. }));
  240. /***/ }),
  241. /***/ "./node_modules/backbone.overview/backbone.orderedlistview.js":
  242. /*!********************************************************************!*\
  243. !*** ./node_modules/backbone.overview/backbone.orderedlistview.js ***!
  244. \********************************************************************/
  245. /*! no static exports found */
  246. /***/ (function(module, exports, __webpack_require__) {
  247. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/
  248. var backbone = (backbone || {});
  249. backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_modules/backbone.nativeview/backbone.nativeview.js");
  250. /*!
  251. * Backbone.OrderedListView
  252. *
  253. * Copyright (c) 2017, JC Brand <jc@opkode.com>
  254. * Licensed under the Mozilla Public License (MPL)
  255. */
  256. (function (root, factory) {
  257. if (true) {
  258. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! underscore */ "./src/underscore-shim.js"), __webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js"), __webpack_require__(/*! backbone.overview */ "backbone.overview")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  259. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  260. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  261. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  262. } else {}
  263. }(this, function (_, Backbone) {
  264. "use strict";
  265. Backbone.OrderedListView = Backbone.Overview.extend({
  266. /* An OrderedListView is a special type of Overview which adds some
  267. * methods and conventions for rendering an ordered list of elements.
  268. */
  269. // The `listItems` attribute denotes the path (from this View) to the
  270. // list of items.
  271. listItems: 'model',
  272. // The `sortEvent` attribute specifies the event which should cause the
  273. // ordered list to be sorted.
  274. sortEvent: 'change',
  275. // The `listSelector` is the selector used to query for the DOM list
  276. // element which contains the ordered items.
  277. listSelector: '.ordered-items',
  278. // The `itemView` is constructor which should be called to create a
  279. // View for a new item.
  280. ItemView: undefined,
  281. // The `subviewIndex` is the attribute of the list element model which
  282. // acts as the index of the subview in the overview.
  283. // An overview is a "Collection" of views, and they can be retrieved
  284. // via an index. By default this is the 'id' attribute, but it could be
  285. // set to something else.
  286. subviewIndex: 'id',
  287. initialize () {
  288. this.sortEventually = _.debounce(
  289. this.sortAndPositionAllItems.bind(this), 500);
  290. this.items = _.get(this, this.listItems);
  291. this.items.on('add', this.sortAndPositionAllItems, this);
  292. this.items.on('remove', this.removeView, this);
  293. if (!_.isNil(this.sortEvent)) {
  294. this.items.on(this.sortEvent, this.sortEventually, this);
  295. }
  296. },
  297. createItemView (item) {
  298. let item_view = this.get(item.get(this.subviewIndex));
  299. if (!item_view) {
  300. item_view = new this.ItemView({model: item});
  301. this.add(item.get(this.subviewIndex), item_view);
  302. } else {
  303. item_view.model = item;
  304. item_view.initialize();
  305. }
  306. item_view.render();
  307. return item_view;
  308. },
  309. removeView (item) {
  310. this.remove(item.get(this.subviewIndex));
  311. },
  312. sortAndPositionAllItems () {
  313. if (!this.items.length) {
  314. return;
  315. }
  316. this.items.sort();
  317. const list_el = this.el.querySelector(this.listSelector);
  318. const div = document.createElement('div');
  319. list_el.parentNode.replaceChild(div, list_el);
  320. this.items.each((item) => {
  321. let view = this.get(item.get(this.subviewIndex));
  322. if (_.isUndefined(view)) {
  323. view = this.createItemView(item)
  324. }
  325. list_el.insertAdjacentElement('beforeend', view.el);
  326. });
  327. div.parentNode.replaceChild(list_el, div);
  328. }
  329. });
  330. return Backbone.OrderedListView;
  331. }));
  332. /***/ }),
  333. /***/ "./node_modules/backbone.vdomview/backbone.vdomview.js":
  334. /*!*************************************************************!*\
  335. !*** ./node_modules/backbone.vdomview/backbone.vdomview.js ***!
  336. \*************************************************************/
  337. /*! no static exports found */
  338. /***/ (function(module, exports, __webpack_require__) {
  339. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/
  340. var backbone = (backbone || {});
  341. backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_modules/backbone.nativeview/backbone.nativeview.js");
  342. /*!
  343. * Backbone.VDOMView
  344. *
  345. * MIT Licensed. Copyright (c) 2017, JC Brand <jc@opkode.com>
  346. */
  347. (function (root, factory) {
  348. if (true) {
  349. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
  350. __webpack_require__(/*! snabbdom */ "./node_modules/snabbdom/dist/snabbdom.js"),
  351. __webpack_require__(/*! snabbdom-attributes */ "./node_modules/snabbdom/dist/snabbdom-attributes.js"),
  352. __webpack_require__(/*! snabbdom-class */ "./node_modules/snabbdom/dist/snabbdom-class.js"),
  353. __webpack_require__(/*! snabbdom-dataset */ "./node_modules/snabbdom/dist/snabbdom-dataset.js"),
  354. __webpack_require__(/*! snabbdom-props */ "./node_modules/snabbdom/dist/snabbdom-props.js"),
  355. __webpack_require__(/*! snabbdom-style */ "./node_modules/snabbdom/dist/snabbdom-style.js"),
  356. __webpack_require__(/*! tovnode */ "./node_modules/snabbdom/dist/tovnode.js"),
  357. __webpack_require__(/*! underscore */ "./src/underscore-shim.js"),
  358. __webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")
  359. ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  360. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  361. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  362. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  363. } else {}
  364. }(this, function (
  365. snabbdom,
  366. snabbdom_attributes,
  367. snabbdom_class,
  368. snabbdom_dataset,
  369. snabbdom_props,
  370. snabbdom_style,
  371. tovnode,
  372. _,
  373. Backbone) {
  374. "use strict";
  375. let domParser = new DOMParser();
  376. const patch = snabbdom.init([
  377. snabbdom_attributes.default,
  378. snabbdom_class.default,
  379. snabbdom_dataset.default,
  380. snabbdom_props.default,
  381. snabbdom_style.default
  382. ]);
  383. const View = _.isUndefined(Backbone.NativeView) ? Backbone.View : Backbone.NativeView;
  384. function parseHTMLToDOM (html_str) {
  385. /* Parses a string with HTML and returns a DOM element.
  386. *
  387. * Forked from vdom_parser:
  388. * https://github.com/bitinn/vdom-parser
  389. */
  390. if (typeof html_str !== 'string') {
  391. throw new Error('Invalid parameter type in parseHTMLToDOM');
  392. }
  393. if ( !('DOMParser' in window) ) {
  394. throw new Error(
  395. 'DOMParser is not available, '+
  396. 'so parsing string to DOM node is not possible.');
  397. }
  398. if (!html_str) {
  399. return document.createTextNode('');
  400. }
  401. domParser = domParser || new DOMParser();
  402. const doc = domParser.parseFromString(html_str, 'text/html');
  403. // most tags default to body
  404. if (doc.body.firstChild) {
  405. return doc.getElementsByTagName('body')[0].firstChild;
  406. // some tags, like script and style, default to head
  407. } else if (doc.head.firstChild && (doc.head.firstChild.tagName !== 'TITLE' || doc.title)) {
  408. return doc.head.firstChild;
  409. // special case for html comment, cdata, doctype
  410. } else if (doc.firstChild && doc.firstChild.tagName !== 'HTML') {
  411. return doc.firstChild;
  412. // other element, such as whitespace, or html/body/head tag, fallback to empty text node
  413. } else {
  414. return document.createTextNode('');
  415. }
  416. }
  417. Backbone.VDOMView = View.extend({
  418. updateEventListeners (old_vnode, new_vnode) {
  419. this.setElement(new_vnode.elm);
  420. },
  421. render () {
  422. if (_.isFunction(this.beforeRender)) {
  423. this.beforeRender();
  424. }
  425. const new_vnode = tovnode.toVNode(parseHTMLToDOM(this.toHTML()));
  426. new_vnode.data.hook = _.extend({
  427. create: this.updateEventListeners.bind(this),
  428. update: this.updateEventListeners.bind(this)
  429. });
  430. const el = this.vnode ? this.vnode.elm : this.el;
  431. if (el.outerHTML !== new_vnode.elm.outerHTML) {
  432. this.vnode = patch(this.vnode || this.el, new_vnode);
  433. }
  434. if (_.isFunction(this.afterRender)) {
  435. this.afterRender();
  436. }
  437. return this;
  438. }
  439. });
  440. return Backbone.VDOMView;
  441. }));
  442. /***/ }),
  443. /***/ "./node_modules/backbone/backbone.js":
  444. /*!*******************************************!*\
  445. !*** ./node_modules/backbone/backbone.js ***!
  446. \*******************************************/
  447. /*! no static exports found */
  448. /***/ (function(module, exports, __webpack_require__) {
  449. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Backbone.js 1.3.3
  450. // (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  451. // Backbone may be freely distributed under the MIT license.
  452. // For all details and documentation:
  453. // http://backbonejs.org
  454. (function(factory) {
  455. // Establish the root object, `window` (`self`) in the browser, or `global` on the server.
  456. // We use `self` instead of `window` for `WebWorker` support.
  457. var root = (typeof self == 'object' && self.self === self && self) ||
  458. (typeof global == 'object' && global.global === global && global);
  459. // Set up Backbone appropriately for the environment. Start with AMD.
  460. if (true) {
  461. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! underscore */ "./src/underscore-shim.js"), __webpack_require__(/*! jquery */ "./src/jquery-stub.js"), exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function(_, $, exports) {
  462. // Export global even in AMD case in case this script is loaded with
  463. // others that may still expect a global Backbone.
  464. root.Backbone = factory(root, exports, _, $);
  465. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  466. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  467. // Next for Node.js or CommonJS. jQuery may not be needed as a module.
  468. } else { var _, $; }
  469. })(function(root, Backbone, _, $) {
  470. // Initial Setup
  471. // -------------
  472. // Save the previous value of the `Backbone` variable, so that it can be
  473. // restored later on, if `noConflict` is used.
  474. var previousBackbone = root.Backbone;
  475. // Create a local reference to a common array method we'll want to use later.
  476. var slice = Array.prototype.slice;
  477. // Current version of the library. Keep in sync with `package.json`.
  478. Backbone.VERSION = '1.3.3';
  479. // For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
  480. // the `$` variable.
  481. Backbone.$ = $;
  482. // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
  483. // to its previous owner. Returns a reference to this Backbone object.
  484. Backbone.noConflict = function() {
  485. root.Backbone = previousBackbone;
  486. return this;
  487. };
  488. // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option
  489. // will fake `"PATCH"`, `"PUT"` and `"DELETE"` requests via the `_method` parameter and
  490. // set a `X-Http-Method-Override` header.
  491. Backbone.emulateHTTP = false;
  492. // Turn on `emulateJSON` to support legacy servers that can't deal with direct
  493. // `application/json` requests ... this will encode the body as
  494. // `application/x-www-form-urlencoded` instead and will send the model in a
  495. // form param named `model`.
  496. Backbone.emulateJSON = false;
  497. // Proxy Backbone class methods to Underscore functions, wrapping the model's
  498. // `attributes` object or collection's `models` array behind the scenes.
  499. //
  500. // collection.filter(function(model) { return model.get('age') > 10 });
  501. // collection.each(this.addView);
  502. //
  503. // `Function#apply` can be slow so we use the method's arg count, if we know it.
  504. var addMethod = function(length, method, attribute) {
  505. switch (length) {
  506. case 1: return function() {
  507. return _[method](this[attribute]);
  508. };
  509. case 2: return function(value) {
  510. return _[method](this[attribute], value);
  511. };
  512. case 3: return function(iteratee, context) {
  513. return _[method](this[attribute], cb(iteratee, this), context);
  514. };
  515. case 4: return function(iteratee, defaultVal, context) {
  516. return _[method](this[attribute], cb(iteratee, this), defaultVal, context);
  517. };
  518. default: return function() {
  519. var args = slice.call(arguments);
  520. args.unshift(this[attribute]);
  521. return _[method].apply(_, args);
  522. };
  523. }
  524. };
  525. var addUnderscoreMethods = function(Class, methods, attribute) {
  526. _.each(methods, function(length, method) {
  527. if (_[method]) Class.prototype[method] = addMethod(length, method, attribute);
  528. });
  529. };
  530. // Support `collection.sortBy('attr')` and `collection.findWhere({id: 1})`.
  531. var cb = function(iteratee, instance) {
  532. if (_.isFunction(iteratee)) return iteratee;
  533. if (_.isObject(iteratee) && !instance._isModel(iteratee)) return modelMatcher(iteratee);
  534. if (_.isString(iteratee)) return function(model) { return model.get(iteratee); };
  535. return iteratee;
  536. };
  537. var modelMatcher = function(attrs) {
  538. var matcher = _.matches(attrs);
  539. return function(model) {
  540. return matcher(model.attributes);
  541. };
  542. };
  543. // Backbone.Events
  544. // ---------------
  545. // A module that can be mixed in to *any object* in order to provide it with
  546. // a custom event channel. You may bind a callback to an event with `on` or
  547. // remove with `off`; `trigger`-ing an event fires all callbacks in
  548. // succession.
  549. //
  550. // var object = {};
  551. // _.extend(object, Backbone.Events);
  552. // object.on('expand', function(){ alert('expanded'); });
  553. // object.trigger('expand');
  554. //
  555. var Events = Backbone.Events = {};
  556. // Regular expression used to split event strings.
  557. var eventSplitter = /\s+/;
  558. // Iterates over the standard `event, callback` (as well as the fancy multiple
  559. // space-separated events `"change blur", callback` and jQuery-style event
  560. // maps `{event: callback}`).
  561. var eventsApi = function(iteratee, events, name, callback, opts) {
  562. var i = 0, names;
  563. if (name && typeof name === 'object') {
  564. // Handle event maps.
  565. if (callback !== void 0 && 'context' in opts && opts.context === void 0) opts.context = callback;
  566. for (names = _.keys(name); i < names.length ; i++) {
  567. events = eventsApi(iteratee, events, names[i], name[names[i]], opts);
  568. }
  569. } else if (name && eventSplitter.test(name)) {
  570. // Handle space-separated event names by delegating them individually.
  571. for (names = name.split(eventSplitter); i < names.length; i++) {
  572. events = iteratee(events, names[i], callback, opts);
  573. }
  574. } else {
  575. // Finally, standard events.
  576. events = iteratee(events, name, callback, opts);
  577. }
  578. return events;
  579. };
  580. // Bind an event to a `callback` function. Passing `"all"` will bind
  581. // the callback to all events fired.
  582. Events.on = function(name, callback, context) {
  583. return internalOn(this, name, callback, context);
  584. };
  585. // Guard the `listening` argument from the public API.
  586. var internalOn = function(obj, name, callback, context, listening) {
  587. obj._events = eventsApi(onApi, obj._events || {}, name, callback, {
  588. context: context,
  589. ctx: obj,
  590. listening: listening
  591. });
  592. if (listening) {
  593. var listeners = obj._listeners || (obj._listeners = {});
  594. listeners[listening.id] = listening;
  595. }
  596. return obj;
  597. };
  598. // Inversion-of-control versions of `on`. Tell *this* object to listen to
  599. // an event in another object... keeping track of what it's listening to
  600. // for easier unbinding later.
  601. Events.listenTo = function(obj, name, callback) {
  602. if (!obj) return this;
  603. var id = obj._listenId || (obj._listenId = _.uniqueId('l'));
  604. var listeningTo = this._listeningTo || (this._listeningTo = {});
  605. var listening = listeningTo[id];
  606. // This object is not listening to any other events on `obj` yet.
  607. // Setup the necessary references to track the listening callbacks.
  608. if (!listening) {
  609. var thisId = this._listenId || (this._listenId = _.uniqueId('l'));
  610. listening = listeningTo[id] = {obj: obj, objId: id, id: thisId, listeningTo: listeningTo, count: 0};
  611. }
  612. // Bind callbacks on obj, and keep track of them on listening.
  613. internalOn(obj, name, callback, this, listening);
  614. return this;
  615. };
  616. // The reducing API that adds a callback to the `events` object.
  617. var onApi = function(events, name, callback, options) {
  618. if (callback) {
  619. var handlers = events[name] || (events[name] = []);
  620. var context = options.context, ctx = options.ctx, listening = options.listening;
  621. if (listening) listening.count++;
  622. handlers.push({callback: callback, context: context, ctx: context || ctx, listening: listening});
  623. }
  624. return events;
  625. };
  626. // Remove one or many callbacks. If `context` is null, removes all
  627. // callbacks with that function. If `callback` is null, removes all
  628. // callbacks for the event. If `name` is null, removes all bound
  629. // callbacks for all events.
  630. Events.off = function(name, callback, context) {
  631. if (!this._events) return this;
  632. this._events = eventsApi(offApi, this._events, name, callback, {
  633. context: context,
  634. listeners: this._listeners
  635. });
  636. return this;
  637. };
  638. // Tell this object to stop listening to either specific events ... or
  639. // to every object it's currently listening to.
  640. Events.stopListening = function(obj, name, callback) {
  641. var listeningTo = this._listeningTo;
  642. if (!listeningTo) return this;
  643. var ids = obj ? [obj._listenId] : _.keys(listeningTo);
  644. for (var i = 0; i < ids.length; i++) {
  645. var listening = listeningTo[ids[i]];
  646. // If listening doesn't exist, this object is not currently
  647. // listening to obj. Break out early.
  648. if (!listening) break;
  649. listening.obj.off(name, callback, this);
  650. }
  651. return this;
  652. };
  653. // The reducing API that removes a callback from the `events` object.
  654. var offApi = function(events, name, callback, options) {
  655. if (!events) return;
  656. var i = 0, listening;
  657. var context = options.context, listeners = options.listeners;
  658. // Delete all events listeners and "drop" events.
  659. if (!name && !callback && !context) {
  660. var ids = _.keys(listeners);
  661. for (; i < ids.length; i++) {
  662. listening = listeners[ids[i]];
  663. delete listeners[listening.id];
  664. delete listening.listeningTo[listening.objId];
  665. }
  666. return;
  667. }
  668. var names = name ? [name] : _.keys(events);
  669. for (; i < names.length; i++) {
  670. name = names[i];
  671. var handlers = events[name];
  672. // Bail out if there are no events stored.
  673. if (!handlers) break;
  674. // Replace events if there are any remaining. Otherwise, clean up.
  675. var remaining = [];
  676. for (var j = 0; j < handlers.length; j++) {
  677. var handler = handlers[j];
  678. if (
  679. callback && callback !== handler.callback &&
  680. callback !== handler.callback._callback ||
  681. context && context !== handler.context
  682. ) {
  683. remaining.push(handler);
  684. } else {
  685. listening = handler.listening;
  686. if (listening && --listening.count === 0) {
  687. delete listeners[listening.id];
  688. delete listening.listeningTo[listening.objId];
  689. }
  690. }
  691. }
  692. // Update tail event if the list has any events. Otherwise, clean up.
  693. if (remaining.length) {
  694. events[name] = remaining;
  695. } else {
  696. delete events[name];
  697. }
  698. }
  699. return events;
  700. };
  701. // Bind an event to only be triggered a single time. After the first time
  702. // the callback is invoked, its listener will be removed. If multiple events
  703. // are passed in using the space-separated syntax, the handler will fire
  704. // once for each event, not once for a combination of all events.
  705. Events.once = function(name, callback, context) {
  706. // Map the event into a `{event: once}` object.
  707. var events = eventsApi(onceMap, {}, name, callback, _.bind(this.off, this));
  708. if (typeof name === 'string' && context == null) callback = void 0;
  709. return this.on(events, callback, context);
  710. };
  711. // Inversion-of-control versions of `once`.
  712. Events.listenToOnce = function(obj, name, callback) {
  713. // Map the event into a `{event: once}` object.
  714. var events = eventsApi(onceMap, {}, name, callback, _.bind(this.stopListening, this, obj));
  715. return this.listenTo(obj, events);
  716. };
  717. // Reduces the event callbacks into a map of `{event: onceWrapper}`.
  718. // `offer` unbinds the `onceWrapper` after it has been called.
  719. var onceMap = function(map, name, callback, offer) {
  720. if (callback) {
  721. var once = map[name] = _.once(function() {
  722. offer(name, once);
  723. callback.apply(this, arguments);
  724. });
  725. once._callback = callback;
  726. }
  727. return map;
  728. };
  729. // Trigger one or many events, firing all bound callbacks. Callbacks are
  730. // passed the same arguments as `trigger` is, apart from the event name
  731. // (unless you're listening on `"all"`, which will cause your callback to
  732. // receive the true name of the event as the first argument).
  733. Events.trigger = function(name) {
  734. if (!this._events) return this;
  735. var length = Math.max(0, arguments.length - 1);
  736. var args = Array(length);
  737. for (var i = 0; i < length; i++) args[i] = arguments[i + 1];
  738. eventsApi(triggerApi, this._events, name, void 0, args);
  739. return this;
  740. };
  741. // Handles triggering the appropriate event callbacks.
  742. var triggerApi = function(objEvents, name, callback, args) {
  743. if (objEvents) {
  744. var events = objEvents[name];
  745. var allEvents = objEvents.all;
  746. if (events && allEvents) allEvents = allEvents.slice();
  747. if (events) triggerEvents(events, args);
  748. if (allEvents) triggerEvents(allEvents, [name].concat(args));
  749. }
  750. return objEvents;
  751. };
  752. // A difficult-to-believe, but optimized internal dispatch function for
  753. // triggering events. Tries to keep the usual cases speedy (most internal
  754. // Backbone events have 3 arguments).
  755. var triggerEvents = function(events, args) {
  756. var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
  757. switch (args.length) {
  758. case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
  759. case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
  760. case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
  761. case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
  762. default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args); return;
  763. }
  764. };
  765. // Aliases for backwards compatibility.
  766. Events.bind = Events.on;
  767. Events.unbind = Events.off;
  768. // Allow the `Backbone` object to serve as a global event bus, for folks who
  769. // want global "pubsub" in a convenient place.
  770. _.extend(Backbone, Events);
  771. // Backbone.Model
  772. // --------------
  773. // Backbone **Models** are the basic data object in the framework --
  774. // frequently representing a row in a table in a database on your server.
  775. // A discrete chunk of data and a bunch of useful, related methods for
  776. // performing computations and transformations on that data.
  777. // Create a new model with the specified attributes. A client id (`cid`)
  778. // is automatically generated and assigned for you.
  779. var Model = Backbone.Model = function(attributes, options) {
  780. var attrs = attributes || {};
  781. options || (options = {});
  782. this.cid = _.uniqueId(this.cidPrefix);
  783. this.attributes = {};
  784. if (options.collection) this.collection = options.collection;
  785. if (options.parse) attrs = this.parse(attrs, options) || {};
  786. var defaults = _.result(this, 'defaults');
  787. attrs = _.defaults(_.extend({}, defaults, attrs), defaults);
  788. this.set(attrs, options);
  789. this.changed = {};
  790. this.initialize.apply(this, arguments);
  791. };
  792. // Attach all inheritable methods to the Model prototype.
  793. _.extend(Model.prototype, Events, {
  794. // A hash of attributes whose current and previous value differ.
  795. changed: null,
  796. // The value returned during the last failed validation.
  797. validationError: null,
  798. // The default name for the JSON `id` attribute is `"id"`. MongoDB and
  799. // CouchDB users may want to set this to `"_id"`.
  800. idAttribute: 'id',
  801. // The prefix is used to create the client id which is used to identify models locally.
  802. // You may want to override this if you're experiencing name clashes with model ids.
  803. cidPrefix: 'c',
  804. // Initialize is an empty function by default. Override it with your own
  805. // initialization logic.
  806. initialize: function(){},
  807. // Return a copy of the model's `attributes` object.
  808. toJSON: function(options) {
  809. return _.clone(this.attributes);
  810. },
  811. // Proxy `Backbone.sync` by default -- but override this if you need
  812. // custom syncing semantics for *this* particular model.
  813. sync: function() {
  814. return Backbone.sync.apply(this, arguments);
  815. },
  816. // Get the value of an attribute.
  817. get: function(attr) {
  818. return this.attributes[attr];
  819. },
  820. // Get the HTML-escaped value of an attribute.
  821. escape: function(attr) {
  822. return _.escape(this.get(attr));
  823. },
  824. // Returns `true` if the attribute contains a value that is not null
  825. // or undefined.
  826. has: function(attr) {
  827. return this.get(attr) != null;
  828. },
  829. // Special-cased proxy to underscore's `_.matches` method.
  830. matches: function(attrs) {
  831. return !!_.iteratee(attrs, this)(this.attributes);
  832. },
  833. // Set a hash of model attributes on the object, firing `"change"`. This is
  834. // the core primitive operation of a model, updating the data and notifying
  835. // anyone who needs to know about the change in state. The heart of the beast.
  836. set: function(key, val, options) {
  837. if (key == null) return this;
  838. // Handle both `"key", value` and `{key: value}` -style arguments.
  839. var attrs;
  840. if (typeof key === 'object') {
  841. attrs = key;
  842. options = val;
  843. } else {
  844. (attrs = {})[key] = val;
  845. }
  846. options || (options = {});
  847. // Run validation.
  848. if (!this._validate(attrs, options)) return false;
  849. // Extract attributes and options.
  850. var unset = options.unset;
  851. var silent = options.silent;
  852. var changes = [];
  853. var changing = this._changing;
  854. this._changing = true;
  855. if (!changing) {
  856. this._previousAttributes = _.clone(this.attributes);
  857. this.changed = {};
  858. }
  859. var current = this.attributes;
  860. var changed = this.changed;
  861. var prev = this._previousAttributes;
  862. // For each `set` attribute, update or delete the current value.
  863. for (var attr in attrs) {
  864. val = attrs[attr];
  865. if (!_.isEqual(current[attr], val)) changes.push(attr);
  866. if (!_.isEqual(prev[attr], val)) {
  867. changed[attr] = val;
  868. } else {
  869. delete changed[attr];
  870. }
  871. unset ? delete current[attr] : current[attr] = val;
  872. }
  873. // Update the `id`.
  874. if (this.idAttribute in attrs) this.id = this.get(this.idAttribute);
  875. // Trigger all relevant attribute changes.
  876. if (!silent) {
  877. if (changes.length) this._pending = options;
  878. for (var i = 0; i < changes.length; i++) {
  879. this.trigger('change:' + changes[i], this, current[changes[i]], options);
  880. }
  881. }
  882. // You might be wondering why there's a `while` loop here. Changes can
  883. // be recursively nested within `"change"` events.
  884. if (changing) return this;
  885. if (!silent) {
  886. while (this._pending) {
  887. options = this._pending;
  888. this._pending = false;
  889. this.trigger('change', this, options);
  890. }
  891. }
  892. this._pending = false;
  893. this._changing = false;
  894. return this;
  895. },
  896. // Remove an attribute from the model, firing `"change"`. `unset` is a noop
  897. // if the attribute doesn't exist.
  898. unset: function(attr, options) {
  899. return this.set(attr, void 0, _.extend({}, options, {unset: true}));
  900. },
  901. // Clear all attributes on the model, firing `"change"`.
  902. clear: function(options) {
  903. var attrs = {};
  904. for (var key in this.attributes) attrs[key] = void 0;
  905. return this.set(attrs, _.extend({}, options, {unset: true}));
  906. },
  907. // Determine if the model has changed since the last `"change"` event.
  908. // If you specify an attribute name, determine if that attribute has changed.
  909. hasChanged: function(attr) {
  910. if (attr == null) return !_.isEmpty(this.changed);
  911. return _.has(this.changed, attr);
  912. },
  913. // Return an object containing all the attributes that have changed, or
  914. // false if there are no changed attributes. Useful for determining what
  915. // parts of a view need to be updated and/or what attributes need to be
  916. // persisted to the server. Unset attributes will be set to undefined.
  917. // You can also pass an attributes object to diff against the model,
  918. // determining if there *would be* a change.
  919. changedAttributes: function(diff) {
  920. if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
  921. var old = this._changing ? this._previousAttributes : this.attributes;
  922. var changed = {};
  923. for (var attr in diff) {
  924. var val = diff[attr];
  925. if (_.isEqual(old[attr], val)) continue;
  926. changed[attr] = val;
  927. }
  928. return _.size(changed) ? changed : false;
  929. },
  930. // Get the previous value of an attribute, recorded at the time the last
  931. // `"change"` event was fired.
  932. previous: function(attr) {
  933. if (attr == null || !this._previousAttributes) return null;
  934. return this._previousAttributes[attr];
  935. },
  936. // Get all of the attributes of the model at the time of the previous
  937. // `"change"` event.
  938. previousAttributes: function() {
  939. return _.clone(this._previousAttributes);
  940. },
  941. // Fetch the model from the server, merging the response with the model's
  942. // local attributes. Any changed attributes will trigger a "change" event.
  943. fetch: function(options) {
  944. options = _.extend({parse: true}, options);
  945. var model = this;
  946. var success = options.success;
  947. options.success = function(resp) {
  948. var serverAttrs = options.parse ? model.parse(resp, options) : resp;
  949. if (!model.set(serverAttrs, options)) return false;
  950. if (success) success.call(options.context, model, resp, options);
  951. model.trigger('sync', model, resp, options);
  952. };
  953. wrapError(this, options);
  954. return this.sync('read', this, options);
  955. },
  956. // Set a hash of model attributes, and sync the model to the server.
  957. // If the server returns an attributes hash that differs, the model's
  958. // state will be `set` again.
  959. save: function(key, val, options) {
  960. // Handle both `"key", value` and `{key: value}` -style arguments.
  961. var attrs;
  962. if (key == null || typeof key === 'object') {
  963. attrs = key;
  964. options = val;
  965. } else {
  966. (attrs = {})[key] = val;
  967. }
  968. options = _.extend({validate: true, parse: true}, options);
  969. var wait = options.wait;
  970. // If we're not waiting and attributes exist, save acts as
  971. // `set(attr).save(null, opts)` with validation. Otherwise, check if
  972. // the model will be valid when the attributes, if any, are set.
  973. if (attrs && !wait) {
  974. if (!this.set(attrs, options)) return false;
  975. } else if (!this._validate(attrs, options)) {
  976. return false;
  977. }
  978. // After a successful server-side save, the client is (optionally)
  979. // updated with the server-side state.
  980. var model = this;
  981. var success = options.success;
  982. var attributes = this.attributes;
  983. options.success = function(resp) {
  984. // Ensure attributes are restored during synchronous saves.
  985. model.attributes = attributes;
  986. var serverAttrs = options.parse ? model.parse(resp, options) : resp;
  987. if (wait) serverAttrs = _.extend({}, attrs, serverAttrs);
  988. if (serverAttrs && !model.set(serverAttrs, options)) return false;
  989. if (success) success.call(options.context, model, resp, options);
  990. model.trigger('sync', model, resp, options);
  991. };
  992. wrapError(this, options);
  993. // Set temporary attributes if `{wait: true}` to properly find new ids.
  994. if (attrs && wait) this.attributes = _.extend({}, attributes, attrs);
  995. var method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
  996. if (method === 'patch' && !options.attrs) options.attrs = attrs;
  997. var xhr = this.sync(method, this, options);
  998. // Restore attributes.
  999. this.attributes = attributes;
  1000. return xhr;
  1001. },
  1002. // Destroy this model on the server if it was already persisted.
  1003. // Optimistically removes the model from its collection, if it has one.
  1004. // If `wait: true` is passed, waits for the server to respond before removal.
  1005. destroy: function(options) {
  1006. options = options ? _.clone(options) : {};
  1007. var model = this;
  1008. var success = options.success;
  1009. var wait = options.wait;
  1010. var destroy = function() {
  1011. model.stopListening();
  1012. model.trigger('destroy', model, model.collection, options);
  1013. };
  1014. options.success = function(resp) {
  1015. if (wait) destroy();
  1016. if (success) success.call(options.context, model, resp, options);
  1017. if (!model.isNew()) model.trigger('sync', model, resp, options);
  1018. };
  1019. var xhr = false;
  1020. if (this.isNew()) {
  1021. _.defer(options.success);
  1022. } else {
  1023. wrapError(this, options);
  1024. xhr = this.sync('delete', this, options);
  1025. }
  1026. if (!wait) destroy();
  1027. return xhr;
  1028. },
  1029. // Default URL for the model's representation on the server -- if you're
  1030. // using Backbone's restful methods, override this to change the endpoint
  1031. // that will be called.
  1032. url: function() {
  1033. var base =
  1034. _.result(this, 'urlRoot') ||
  1035. _.result(this.collection, 'url') ||
  1036. urlError();
  1037. if (this.isNew()) return base;
  1038. var id = this.get(this.idAttribute);
  1039. return base.replace(/[^\/]$/, '$&/') + encodeURIComponent(id);
  1040. },
  1041. // **parse** converts a response into the hash of attributes to be `set` on
  1042. // the model. The default implementation is just to pass the response along.
  1043. parse: function(resp, options) {
  1044. return resp;
  1045. },
  1046. // Create a new model with identical attributes to this one.
  1047. clone: function() {
  1048. return new this.constructor(this.attributes);
  1049. },
  1050. // A model is new if it has never been saved to the server, and lacks an id.
  1051. isNew: function() {
  1052. return !this.has(this.idAttribute);
  1053. },
  1054. // Check if the model is currently in a valid state.
  1055. isValid: function(options) {
  1056. return this._validate({}, _.extend({}, options, {validate: true}));
  1057. },
  1058. // Run validation against the next complete set of model attributes,
  1059. // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
  1060. _validate: function(attrs, options) {
  1061. if (!options.validate || !this.validate) return true;
  1062. attrs = _.extend({}, this.attributes, attrs);
  1063. var error = this.validationError = this.validate(attrs, options) || null;
  1064. if (!error) return true;
  1065. this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
  1066. return false;
  1067. }
  1068. });
  1069. // Underscore methods that we want to implement on the Model, mapped to the
  1070. // number of arguments they take.
  1071. var modelMethods = {keys: 1, values: 1, pairs: 1, invert: 1, pick: 0,
  1072. omit: 0, chain: 1, isEmpty: 1};
  1073. // Mix in each Underscore method as a proxy to `Model#attributes`.
  1074. addUnderscoreMethods(Model, modelMethods, 'attributes');
  1075. // Backbone.Collection
  1076. // -------------------
  1077. // If models tend to represent a single row of data, a Backbone Collection is
  1078. // more analogous to a table full of data ... or a small slice or page of that
  1079. // table, or a collection of rows that belong together for a particular reason
  1080. // -- all of the messages in this particular folder, all of the documents
  1081. // belonging to this particular author, and so on. Collections maintain
  1082. // indexes of their models, both in order, and for lookup by `id`.
  1083. // Create a new **Collection**, perhaps to contain a specific type of `model`.
  1084. // If a `comparator` is specified, the Collection will maintain
  1085. // its models in sort order, as they're added and removed.
  1086. var Collection = Backbone.Collection = function(models, options) {
  1087. options || (options = {});
  1088. if (options.model) this.model = options.model;
  1089. if (options.comparator !== void 0) this.comparator = options.comparator;
  1090. this._reset();
  1091. this.initialize.apply(this, arguments);
  1092. if (models) this.reset(models, _.extend({silent: true}, options));
  1093. };
  1094. // Default options for `Collection#set`.
  1095. var setOptions = {add: true, remove: true, merge: true};
  1096. var addOptions = {add: true, remove: false};
  1097. // Splices `insert` into `array` at index `at`.
  1098. var splice = function(array, insert, at) {
  1099. at = Math.min(Math.max(at, 0), array.length);
  1100. var tail = Array(array.length - at);
  1101. var length = insert.length;
  1102. var i;
  1103. for (i = 0; i < tail.length; i++) tail[i] = array[i + at];
  1104. for (i = 0; i < length; i++) array[i + at] = insert[i];
  1105. for (i = 0; i < tail.length; i++) array[i + length + at] = tail[i];
  1106. };
  1107. // Define the Collection's inheritable methods.
  1108. _.extend(Collection.prototype, Events, {
  1109. // The default model for a collection is just a **Backbone.Model**.
  1110. // This should be overridden in most cases.
  1111. model: Model,
  1112. // Initialize is an empty function by default. Override it with your own
  1113. // initialization logic.
  1114. initialize: function(){},
  1115. // The JSON representation of a Collection is an array of the
  1116. // models' attributes.
  1117. toJSON: function(options) {
  1118. return this.map(function(model) { return model.toJSON(options); });
  1119. },
  1120. // Proxy `Backbone.sync` by default.
  1121. sync: function() {
  1122. return Backbone.sync.apply(this, arguments);
  1123. },
  1124. // Add a model, or list of models to the set. `models` may be Backbone
  1125. // Models or raw JavaScript objects to be converted to Models, or any
  1126. // combination of the two.
  1127. add: function(models, options) {
  1128. return this.set(models, _.extend({merge: false}, options, addOptions));
  1129. },
  1130. // Remove a model, or a list of models from the set.
  1131. remove: function(models, options) {
  1132. options = _.extend({}, options);
  1133. var singular = !_.isArray(models);
  1134. models = singular ? [models] : models.slice();
  1135. var removed = this._removeModels(models, options);
  1136. if (!options.silent && removed.length) {
  1137. options.changes = {added: [], merged: [], removed: removed};
  1138. this.trigger('update', this, options);
  1139. }
  1140. return singular ? removed[0] : removed;
  1141. },
  1142. // Update a collection by `set`-ing a new list of models, adding new ones,
  1143. // removing models that are no longer present, and merging models that
  1144. // already exist in the collection, as necessary. Similar to **Model#set**,
  1145. // the core operation for updating the data contained by the collection.
  1146. set: function(models, options) {
  1147. if (models == null) return;
  1148. options = _.extend({}, setOptions, options);
  1149. if (options.parse && !this._isModel(models)) {
  1150. models = this.parse(models, options) || [];
  1151. }
  1152. var singular = !_.isArray(models);
  1153. models = singular ? [models] : models.slice();
  1154. var at = options.at;
  1155. if (at != null) at = +at;
  1156. if (at > this.length) at = this.length;
  1157. if (at < 0) at += this.length + 1;
  1158. var set = [];
  1159. var toAdd = [];
  1160. var toMerge = [];
  1161. var toRemove = [];
  1162. var modelMap = {};
  1163. var add = options.add;
  1164. var merge = options.merge;
  1165. var remove = options.remove;
  1166. var sort = false;
  1167. var sortable = this.comparator && at == null && options.sort !== false;
  1168. var sortAttr = _.isString(this.comparator) ? this.comparator : null;
  1169. // Turn bare objects into model references, and prevent invalid models
  1170. // from being added.
  1171. var model, i;
  1172. for (i = 0; i < models.length; i++) {
  1173. model = models[i];
  1174. // If a duplicate is found, prevent it from being added and
  1175. // optionally merge it into the existing model.
  1176. var existing = this.get(model);
  1177. if (existing) {
  1178. if (merge && model !== existing) {
  1179. var attrs = this._isModel(model) ? model.attributes : model;
  1180. if (options.parse) attrs = existing.parse(attrs, options);
  1181. existing.set(attrs, options);
  1182. toMerge.push(existing);
  1183. if (sortable && !sort) sort = existing.hasChanged(sortAttr);
  1184. }
  1185. if (!modelMap[existing.cid]) {
  1186. modelMap[existing.cid] = true;
  1187. set.push(existing);
  1188. }
  1189. models[i] = existing;
  1190. // If this is a new, valid model, push it to the `toAdd` list.
  1191. } else if (add) {
  1192. model = models[i] = this._prepareModel(model, options);
  1193. if (model) {
  1194. toAdd.push(model);
  1195. this._addReference(model, options);
  1196. modelMap[model.cid] = true;
  1197. set.push(model);
  1198. }
  1199. }
  1200. }
  1201. // Remove stale models.
  1202. if (remove) {
  1203. for (i = 0; i < this.length; i++) {
  1204. model = this.models[i];
  1205. if (!modelMap[model.cid]) toRemove.push(model);
  1206. }
  1207. if (toRemove.length) this._removeModels(toRemove, options);
  1208. }
  1209. // See if sorting is needed, update `length` and splice in new models.
  1210. var orderChanged = false;
  1211. var replace = !sortable && add && remove;
  1212. if (set.length && replace) {
  1213. orderChanged = this.length !== set.length || _.some(this.models, function(m, index) {
  1214. return m !== set[index];
  1215. });
  1216. this.models.length = 0;
  1217. splice(this.models, set, 0);
  1218. this.length = this.models.length;
  1219. } else if (toAdd.length) {
  1220. if (sortable) sort = true;
  1221. splice(this.models, toAdd, at == null ? this.length : at);
  1222. this.length = this.models.length;
  1223. }
  1224. // Silently sort the collection if appropriate.
  1225. if (sort) this.sort({silent: true});
  1226. // Unless silenced, it's time to fire all appropriate add/sort/update events.
  1227. if (!options.silent) {
  1228. for (i = 0; i < toAdd.length; i++) {
  1229. if (at != null) options.index = at + i;
  1230. model = toAdd[i];
  1231. model.trigger('add', model, this, options);
  1232. }
  1233. if (sort || orderChanged) this.trigger('sort', this, options);
  1234. if (toAdd.length || toRemove.length || toMerge.length) {
  1235. options.changes = {
  1236. added: toAdd,
  1237. removed: toRemove,
  1238. merged: toMerge
  1239. };
  1240. this.trigger('update', this, options);
  1241. }
  1242. }
  1243. // Return the added (or merged) model (or models).
  1244. return singular ? models[0] : models;
  1245. },
  1246. // When you have more items than you want to add or remove individually,
  1247. // you can reset the entire set with a new list of models, without firing
  1248. // any granular `add` or `remove` events. Fires `reset` when finished.
  1249. // Useful for bulk operations and optimizations.
  1250. reset: function(models, options) {
  1251. options = options ? _.clone(options) : {};
  1252. for (var i = 0; i < this.models.length; i++) {
  1253. this._removeReference(this.models[i], options);
  1254. }
  1255. options.previousModels = this.models;
  1256. this._reset();
  1257. models = this.add(models, _.extend({silent: true}, options));
  1258. if (!options.silent) this.trigger('reset', this, options);
  1259. return models;
  1260. },
  1261. // Add a model to the end of the collection.
  1262. push: function(model, options) {
  1263. return this.add(model, _.extend({at: this.length}, options));
  1264. },
  1265. // Remove a model from the end of the collection.
  1266. pop: function(options) {
  1267. var model = this.at(this.length - 1);
  1268. return this.remove(model, options);
  1269. },
  1270. // Add a model to the beginning of the collection.
  1271. unshift: function(model, options) {
  1272. return this.add(model, _.extend({at: 0}, options));
  1273. },
  1274. // Remove a model from the beginning of the collection.
  1275. shift: function(options) {
  1276. var model = this.at(0);
  1277. return this.remove(model, options);
  1278. },
  1279. // Slice out a sub-array of models from the collection.
  1280. slice: function() {
  1281. return slice.apply(this.models, arguments);
  1282. },
  1283. // Get a model from the set by id, cid, model object with id or cid
  1284. // properties, or an attributes object that is transformed through modelId.
  1285. get: function(obj) {
  1286. if (obj == null) return void 0;
  1287. return this._byId[obj] ||
  1288. this._byId[this.modelId(obj.attributes || obj)] ||
  1289. obj.cid && this._byId[obj.cid];
  1290. },
  1291. // Returns `true` if the model is in the collection.
  1292. has: function(obj) {
  1293. return this.get(obj) != null;
  1294. },
  1295. // Get the model at the given index.
  1296. at: function(index) {
  1297. if (index < 0) index += this.length;
  1298. return this.models[index];
  1299. },
  1300. // Return models with matching attributes. Useful for simple cases of
  1301. // `filter`.
  1302. where: function(attrs, first) {
  1303. return this[first ? 'find' : 'filter'](attrs);
  1304. },
  1305. // Return the first model with matching attributes. Useful for simple cases
  1306. // of `find`.
  1307. findWhere: function(attrs) {
  1308. return this.where(attrs, true);
  1309. },
  1310. // Force the collection to re-sort itself. You don't need to call this under
  1311. // normal circumstances, as the set will maintain sort order as each item
  1312. // is added.
  1313. sort: function(options) {
  1314. var comparator = this.comparator;
  1315. if (!comparator) throw new Error('Cannot sort a set without a comparator');
  1316. options || (options = {});
  1317. var length = comparator.length;
  1318. if (_.isFunction(comparator)) comparator = _.bind(comparator, this);
  1319. // Run sort based on type of `comparator`.
  1320. if (length === 1 || _.isString(comparator)) {
  1321. this.models = this.sortBy(comparator);
  1322. } else {
  1323. this.models.sort(comparator);
  1324. }
  1325. if (!options.silent) this.trigger('sort', this, options);
  1326. return this;
  1327. },
  1328. // Pluck an attribute from each model in the collection.
  1329. pluck: function(attr) {
  1330. return this.map(attr + '');
  1331. },
  1332. // Fetch the default set of models for this collection, resetting the
  1333. // collection when they arrive. If `reset: true` is passed, the response
  1334. // data will be passed through the `reset` method instead of `set`.
  1335. fetch: function(options) {
  1336. options = _.extend({parse: true}, options);
  1337. var success = options.success;
  1338. var collection = this;
  1339. options.success = function(resp) {
  1340. var method = options.reset ? 'reset' : 'set';
  1341. collection[method](resp, options);
  1342. if (success) success.call(options.context, collection, resp, options);
  1343. collection.trigger('sync', collection, resp, options);
  1344. };
  1345. wrapError(this, options);
  1346. return this.sync('read', this, options);
  1347. },
  1348. // Create a new instance of a model in this collection. Add the model to the
  1349. // collection immediately, unless `wait: true` is passed, in which case we
  1350. // wait for the server to agree.
  1351. create: function(model, options) {
  1352. options = options ? _.clone(options) : {};
  1353. var wait = options.wait;
  1354. model = this._prepareModel(model, options);
  1355. if (!model) return false;
  1356. if (!wait) this.add(model, options);
  1357. var collection = this;
  1358. var success = options.success;
  1359. options.success = function(m, resp, callbackOpts) {
  1360. if (wait) collection.add(m, callbackOpts);
  1361. if (success) success.call(callbackOpts.context, m, resp, callbackOpts);
  1362. };
  1363. model.save(null, options);
  1364. return model;
  1365. },
  1366. // **parse** converts a response into a list of models to be added to the
  1367. // collection. The default implementation is just to pass it through.
  1368. parse: function(resp, options) {
  1369. return resp;
  1370. },
  1371. // Create a new collection with an identical list of models as this one.
  1372. clone: function() {
  1373. return new this.constructor(this.models, {
  1374. model: this.model,
  1375. comparator: this.comparator
  1376. });
  1377. },
  1378. // Define how to uniquely identify models in the collection.
  1379. modelId: function(attrs) {
  1380. return attrs[this.model.prototype.idAttribute || 'id'];
  1381. },
  1382. // Private method to reset all internal state. Called when the collection
  1383. // is first initialized or reset.
  1384. _reset: function() {
  1385. this.length = 0;
  1386. this.models = [];
  1387. this._byId = {};
  1388. },
  1389. // Prepare a hash of attributes (or other model) to be added to this
  1390. // collection.
  1391. _prepareModel: function(attrs, options) {
  1392. if (this._isModel(attrs)) {
  1393. if (!attrs.collection) attrs.collection = this;
  1394. return attrs;
  1395. }
  1396. options = options ? _.clone(options) : {};
  1397. options.collection = this;
  1398. var model = new this.model(attrs, options);
  1399. if (!model.validationError) return model;
  1400. this.trigger('invalid', this, model.validationError, options);
  1401. return false;
  1402. },
  1403. // Internal method called by both remove and set.
  1404. _removeModels: function(models, options) {
  1405. var removed = [];
  1406. for (var i = 0; i < models.length; i++) {
  1407. var model = this.get(models[i]);
  1408. if (!model) continue;
  1409. var index = this.indexOf(model);
  1410. this.models.splice(index, 1);
  1411. this.length--;
  1412. // Remove references before triggering 'remove' event to prevent an
  1413. // infinite loop. #3693
  1414. delete this._byId[model.cid];
  1415. var id = this.modelId(model.attributes);
  1416. if (id != null) delete this._byId[id];
  1417. if (!options.silent) {
  1418. options.index = index;
  1419. model.trigger('remove', model, this, options);
  1420. }
  1421. removed.push(model);
  1422. this._removeReference(model, options);
  1423. }
  1424. return removed;
  1425. },
  1426. // Method for checking whether an object should be considered a model for
  1427. // the purposes of adding to the collection.
  1428. _isModel: function(model) {
  1429. return model instanceof Model;
  1430. },
  1431. // Internal method to create a model's ties to a collection.
  1432. _addReference: function(model, options) {
  1433. this._byId[model.cid] = model;
  1434. var id = this.modelId(model.attributes);
  1435. if (id != null) this._byId[id] = model;
  1436. model.on('all', this._onModelEvent, this);
  1437. },
  1438. // Internal method to sever a model's ties to a collection.
  1439. _removeReference: function(model, options) {
  1440. delete this._byId[model.cid];
  1441. var id = this.modelId(model.attributes);
  1442. if (id != null) delete this._byId[id];
  1443. if (this === model.collection) delete model.collection;
  1444. model.off('all', this._onModelEvent, this);
  1445. },
  1446. // Internal method called every time a model in the set fires an event.
  1447. // Sets need to update their indexes when models change ids. All other
  1448. // events simply proxy through. "add" and "remove" events that originate
  1449. // in other collections are ignored.
  1450. _onModelEvent: function(event, model, collection, options) {
  1451. if (model) {
  1452. if ((event === 'add' || event === 'remove') && collection !== this) return;
  1453. if (event === 'destroy') this.remove(model, options);
  1454. if (event === 'change') {
  1455. var prevId = this.modelId(model.previousAttributes());
  1456. var id = this.modelId(model.attributes);
  1457. if (prevId !== id) {
  1458. if (prevId != null) delete this._byId[prevId];
  1459. if (id != null) this._byId[id] = model;
  1460. }
  1461. }
  1462. }
  1463. this.trigger.apply(this, arguments);
  1464. }
  1465. });
  1466. // Underscore methods that we want to implement on the Collection.
  1467. // 90% of the core usefulness of Backbone Collections is actually implemented
  1468. // right here:
  1469. var collectionMethods = {forEach: 3, each: 3, map: 3, collect: 3, reduce: 0,
  1470. foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3,
  1471. select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3,
  1472. contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3,
  1473. head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3,
  1474. without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3,
  1475. isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3,
  1476. sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3};
  1477. // Mix in each Underscore method as a proxy to `Collection#models`.
  1478. addUnderscoreMethods(Collection, collectionMethods, 'models');
  1479. // Backbone.View
  1480. // -------------
  1481. // Backbone Views are almost more convention than they are actual code. A View
  1482. // is simply a JavaScript object that represents a logical chunk of UI in the
  1483. // DOM. This might be a single item, an entire list, a sidebar or panel, or
  1484. // even the surrounding frame which wraps your whole app. Defining a chunk of
  1485. // UI as a **View** allows you to define your DOM events declaratively, without
  1486. // having to worry about render order ... and makes it easy for the view to
  1487. // react to specific changes in the state of your models.
  1488. // Creating a Backbone.View creates its initial element outside of the DOM,
  1489. // if an existing element is not provided...
  1490. var View = Backbone.View = function(options) {
  1491. this.cid = _.uniqueId('view');
  1492. _.extend(this, _.pick(options, viewOptions));
  1493. this._ensureElement();
  1494. this.initialize.apply(this, arguments);
  1495. };
  1496. // Cached regex to split keys for `delegate`.
  1497. var delegateEventSplitter = /^(\S+)\s*(.*)$/;
  1498. // List of view options to be set as properties.
  1499. var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
  1500. // Set up all inheritable **Backbone.View** properties and methods.
  1501. _.extend(View.prototype, Events, {
  1502. // The default `tagName` of a View's element is `"div"`.
  1503. tagName: 'div',
  1504. // jQuery delegate for element lookup, scoped to DOM elements within the
  1505. // current view. This should be preferred to global lookups where possible.
  1506. $: function(selector) {
  1507. return this.$el.find(selector);
  1508. },
  1509. // Initialize is an empty function by default. Override it with your own
  1510. // initialization logic.
  1511. initialize: function(){},
  1512. // **render** is the core function that your view should override, in order
  1513. // to populate its element (`this.el`), with the appropriate HTML. The
  1514. // convention is for **render** to always return `this`.
  1515. render: function() {
  1516. return this;
  1517. },
  1518. // Remove this view by taking the element out of the DOM, and removing any
  1519. // applicable Backbone.Events listeners.
  1520. remove: function() {
  1521. this._removeElement();
  1522. this.stopListening();
  1523. return this;
  1524. },
  1525. // Remove this view's element from the document and all event listeners
  1526. // attached to it. Exposed for subclasses using an alternative DOM
  1527. // manipulation API.
  1528. _removeElement: function() {
  1529. this.$el.remove();
  1530. },
  1531. // Change the view's element (`this.el` property) and re-delegate the
  1532. // view's events on the new element.
  1533. setElement: function(element) {
  1534. this.undelegateEvents();
  1535. this._setElement(element);
  1536. this.delegateEvents();
  1537. return this;
  1538. },
  1539. // Creates the `this.el` and `this.$el` references for this view using the
  1540. // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
  1541. // context or an element. Subclasses can override this to utilize an
  1542. // alternative DOM manipulation API and are only required to set the
  1543. // `this.el` property.
  1544. _setElement: function(el) {
  1545. this.$el = el instanceof Backbone.$ ? el : Backbone.$(el);
  1546. this.el = this.$el[0];
  1547. },
  1548. // Set callbacks, where `this.events` is a hash of
  1549. //
  1550. // *{"event selector": "callback"}*
  1551. //
  1552. // {
  1553. // 'mousedown .title': 'edit',
  1554. // 'click .button': 'save',
  1555. // 'click .open': function(e) { ... }
  1556. // }
  1557. //
  1558. // pairs. Callbacks will be bound to the view, with `this` set properly.
  1559. // Uses event delegation for efficiency.
  1560. // Omitting the selector binds the event to `this.el`.
  1561. delegateEvents: function(events) {
  1562. events || (events = _.result(this, 'events'));
  1563. if (!events) return this;
  1564. this.undelegateEvents();
  1565. for (var key in events) {
  1566. var method = events[key];
  1567. if (!_.isFunction(method)) method = this[method];
  1568. if (!method) continue;
  1569. var match = key.match(delegateEventSplitter);
  1570. this.delegate(match[1], match[2], _.bind(method, this));
  1571. }
  1572. return this;
  1573. },
  1574. // Add a single event listener to the view's element (or a child element
  1575. // using `selector`). This only works for delegate-able events: not `focus`,
  1576. // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
  1577. delegate: function(eventName, selector, listener) {
  1578. this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
  1579. return this;
  1580. },
  1581. // Clears all callbacks previously bound to the view by `delegateEvents`.
  1582. // You usually don't need to use this, but may wish to if you have multiple
  1583. // Backbone views attached to the same DOM element.
  1584. undelegateEvents: function() {
  1585. if (this.$el) this.$el.off('.delegateEvents' + this.cid);
  1586. return this;
  1587. },
  1588. // A finer-grained `undelegateEvents` for removing a single delegated event.
  1589. // `selector` and `listener` are both optional.
  1590. undelegate: function(eventName, selector, listener) {
  1591. this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
  1592. return this;
  1593. },
  1594. // Produces a DOM element to be assigned to your view. Exposed for
  1595. // subclasses using an alternative DOM manipulation API.
  1596. _createElement: function(tagName) {
  1597. return document.createElement(tagName);
  1598. },
  1599. // Ensure that the View has a DOM element to render into.
  1600. // If `this.el` is a string, pass it through `$()`, take the first
  1601. // matching element, and re-assign it to `el`. Otherwise, create
  1602. // an element from the `id`, `className` and `tagName` properties.
  1603. _ensureElement: function() {
  1604. if (!this.el) {
  1605. var attrs = _.extend({}, _.result(this, 'attributes'));
  1606. if (this.id) attrs.id = _.result(this, 'id');
  1607. if (this.className) attrs['class'] = _.result(this, 'className');
  1608. this.setElement(this._createElement(_.result(this, 'tagName')));
  1609. this._setAttributes(attrs);
  1610. } else {
  1611. this.setElement(_.result(this, 'el'));
  1612. }
  1613. },
  1614. // Set attributes from a hash on this view's element. Exposed for
  1615. // subclasses using an alternative DOM manipulation API.
  1616. _setAttributes: function(attributes) {
  1617. this.$el.attr(attributes);
  1618. }
  1619. });
  1620. // Backbone.sync
  1621. // -------------
  1622. // Override this function to change the manner in which Backbone persists
  1623. // models to the server. You will be passed the type of request, and the
  1624. // model in question. By default, makes a RESTful Ajax request
  1625. // to the model's `url()`. Some possible customizations could be:
  1626. //
  1627. // * Use `setTimeout` to batch rapid-fire updates into a single request.
  1628. // * Send up the models as XML instead of JSON.
  1629. // * Persist models via WebSockets instead of Ajax.
  1630. //
  1631. // Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests
  1632. // as `POST`, with a `_method` parameter containing the true HTTP method,
  1633. // as well as all requests with the body as `application/x-www-form-urlencoded`
  1634. // instead of `application/json` with the model in a param named `model`.
  1635. // Useful when interfacing with server-side languages like **PHP** that make
  1636. // it difficult to read the body of `PUT` requests.
  1637. Backbone.sync = function(method, model, options) {
  1638. var type = methodMap[method];
  1639. // Default options, unless specified.
  1640. _.defaults(options || (options = {}), {
  1641. emulateHTTP: Backbone.emulateHTTP,
  1642. emulateJSON: Backbone.emulateJSON
  1643. });
  1644. // Default JSON-request options.
  1645. var params = {type: type, dataType: 'json'};
  1646. // Ensure that we have a URL.
  1647. if (!options.url) {
  1648. params.url = _.result(model, 'url') || urlError();
  1649. }
  1650. // Ensure that we have the appropriate request data.
  1651. if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {
  1652. params.contentType = 'application/json';
  1653. params.data = JSON.stringify(options.attrs || model.toJSON(options));
  1654. }
  1655. // For older servers, emulate JSON by encoding the request into an HTML-form.
  1656. if (options.emulateJSON) {
  1657. params.contentType = 'application/x-www-form-urlencoded';
  1658. params.data = params.data ? {model: params.data} : {};
  1659. }
  1660. // For older servers, emulate HTTP by mimicking the HTTP method with `_method`
  1661. // And an `X-HTTP-Method-Override` header.
  1662. if (options.emulateHTTP && (type === 'PUT' || type === 'DELETE' || type === 'PATCH')) {
  1663. params.type = 'POST';
  1664. if (options.emulateJSON) params.data._method = type;
  1665. var beforeSend = options.beforeSend;
  1666. options.beforeSend = function(xhr) {
  1667. xhr.setRequestHeader('X-HTTP-Method-Override', type);
  1668. if (beforeSend) return beforeSend.apply(this, arguments);
  1669. };
  1670. }
  1671. // Don't process data on a non-GET request.
  1672. if (params.type !== 'GET' && !options.emulateJSON) {
  1673. params.processData = false;
  1674. }
  1675. // Pass along `textStatus` and `errorThrown` from jQuery.
  1676. var error = options.error;
  1677. options.error = function(xhr, textStatus, errorThrown) {
  1678. options.textStatus = textStatus;
  1679. options.errorThrown = errorThrown;
  1680. if (error) error.call(options.context, xhr, textStatus, errorThrown);
  1681. };
  1682. // Make the request, allowing the user to override any Ajax options.
  1683. var xhr = options.xhr = Backbone.ajax(_.extend(params, options));
  1684. model.trigger('request', model, xhr, options);
  1685. return xhr;
  1686. };
  1687. // Map from CRUD to HTTP for our default `Backbone.sync` implementation.
  1688. var methodMap = {
  1689. 'create': 'POST',
  1690. 'update': 'PUT',
  1691. 'patch': 'PATCH',
  1692. 'delete': 'DELETE',
  1693. 'read': 'GET'
  1694. };
  1695. // Set the default implementation of `Backbone.ajax` to proxy through to `$`.
  1696. // Override this if you'd like to use a different library.
  1697. Backbone.ajax = function() {
  1698. return Backbone.$.ajax.apply(Backbone.$, arguments);
  1699. };
  1700. // Backbone.Router
  1701. // ---------------
  1702. // Routers map faux-URLs to actions, and fire events when routes are
  1703. // matched. Creating a new one sets its `routes` hash, if not set statically.
  1704. var Router = Backbone.Router = function(options) {
  1705. options || (options = {});
  1706. if (options.routes) this.routes = options.routes;
  1707. this._bindRoutes();
  1708. this.initialize.apply(this, arguments);
  1709. };
  1710. // Cached regular expressions for matching named param parts and splatted
  1711. // parts of route strings.
  1712. var optionalParam = /\((.*?)\)/g;
  1713. var namedParam = /(\(\?)?:\w+/g;
  1714. var splatParam = /\*\w+/g;
  1715. var escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g;
  1716. // Set up all inheritable **Backbone.Router** properties and methods.
  1717. _.extend(Router.prototype, Events, {
  1718. // Initialize is an empty function by default. Override it with your own
  1719. // initialization logic.
  1720. initialize: function(){},
  1721. // Manually bind a single named route to a callback. For example:
  1722. //
  1723. // this.route('search/:query/p:num', 'search', function(query, num) {
  1724. // ...
  1725. // });
  1726. //
  1727. route: function(route, name, callback) {
  1728. if (!_.isRegExp(route)) route = this._routeToRegExp(route);
  1729. if (_.isFunction(name)) {
  1730. callback = name;
  1731. name = '';
  1732. }
  1733. if (!callback) callback = this[name];
  1734. var router = this;
  1735. Backbone.history.route(route, function(fragment) {
  1736. var args = router._extractParameters(route, fragment);
  1737. if (router.execute(callback, args, name) !== false) {
  1738. router.trigger.apply(router, ['route:' + name].concat(args));
  1739. router.trigger('route', name, args);
  1740. Backbone.history.trigger('route', router, name, args);
  1741. }
  1742. });
  1743. return this;
  1744. },
  1745. // Execute a route handler with the provided parameters. This is an
  1746. // excellent place to do pre-route setup or post-route cleanup.
  1747. execute: function(callback, args, name) {
  1748. if (callback) callback.apply(this, args);
  1749. },
  1750. // Simple proxy to `Backbone.history` to save a fragment into the history.
  1751. navigate: function(fragment, options) {
  1752. Backbone.history.navigate(fragment, options);
  1753. return this;
  1754. },
  1755. // Bind all defined routes to `Backbone.history`. We have to reverse the
  1756. // order of the routes here to support behavior where the most general
  1757. // routes can be defined at the bottom of the route map.
  1758. _bindRoutes: function() {
  1759. if (!this.routes) return;
  1760. this.routes = _.result(this, 'routes');
  1761. var route, routes = _.keys(this.routes);
  1762. while ((route = routes.pop()) != null) {
  1763. this.route(route, this.routes[route]);
  1764. }
  1765. },
  1766. // Convert a route string into a regular expression, suitable for matching
  1767. // against the current location hash.
  1768. _routeToRegExp: function(route) {
  1769. route = route.replace(escapeRegExp, '\\$&')
  1770. .replace(optionalParam, '(?:$1)?')
  1771. .replace(namedParam, function(match, optional) {
  1772. return optional ? match : '([^/?]+)';
  1773. })
  1774. .replace(splatParam, '([^?]*?)');
  1775. return new RegExp('^' + route + '(?:\\?([\\s\\S]*))?$');
  1776. },
  1777. // Given a route, and a URL fragment that it matches, return the array of
  1778. // extracted decoded parameters. Empty or unmatched parameters will be
  1779. // treated as `null` to normalize cross-browser behavior.
  1780. _extractParameters: function(route, fragment) {
  1781. var params = route.exec(fragment).slice(1);
  1782. return _.map(params, function(param, i) {
  1783. // Don't decode the search params.
  1784. if (i === params.length - 1) return param || null;
  1785. return param ? decodeURIComponent(param) : null;
  1786. });
  1787. }
  1788. });
  1789. // Backbone.History
  1790. // ----------------
  1791. // Handles cross-browser history management, based on either
  1792. // [pushState](http://diveintohtml5.info/history.html) and real URLs, or
  1793. // [onhashchange](https://developer.mozilla.org/en-US/docs/DOM/window.onhashchange)
  1794. // and URL fragments. If the browser supports neither (old IE, natch),
  1795. // falls back to polling.
  1796. var History = Backbone.History = function() {
  1797. this.handlers = [];
  1798. this.checkUrl = _.bind(this.checkUrl, this);
  1799. // Ensure that `History` can be used outside of the browser.
  1800. if (typeof window !== 'undefined') {
  1801. this.location = window.location;
  1802. this.history = window.history;
  1803. }
  1804. };
  1805. // Cached regex for stripping a leading hash/slash and trailing space.
  1806. var routeStripper = /^[#\/]|\s+$/g;
  1807. // Cached regex for stripping leading and trailing slashes.
  1808. var rootStripper = /^\/+|\/+$/g;
  1809. // Cached regex for stripping urls of hash.
  1810. var pathStripper = /#.*$/;
  1811. // Has the history handling already been started?
  1812. History.started = false;
  1813. // Set up all inheritable **Backbone.History** properties and methods.
  1814. _.extend(History.prototype, Events, {
  1815. // The default interval to poll for hash changes, if necessary, is
  1816. // twenty times a second.
  1817. interval: 50,
  1818. // Are we at the app root?
  1819. atRoot: function() {
  1820. var path = this.location.pathname.replace(/[^\/]$/, '$&/');
  1821. return path === this.root && !this.getSearch();
  1822. },
  1823. // Does the pathname match the root?
  1824. matchRoot: function() {
  1825. var path = this.decodeFragment(this.location.pathname);
  1826. var rootPath = path.slice(0, this.root.length - 1) + '/';
  1827. return rootPath === this.root;
  1828. },
  1829. // Unicode characters in `location.pathname` are percent encoded so they're
  1830. // decoded for comparison. `%25` should not be decoded since it may be part
  1831. // of an encoded parameter.
  1832. decodeFragment: function(fragment) {
  1833. return decodeURI(fragment.replace(/%25/g, '%2525'));
  1834. },
  1835. // In IE6, the hash fragment and search params are incorrect if the
  1836. // fragment contains `?`.
  1837. getSearch: function() {
  1838. var match = this.location.href.replace(/#.*/, '').match(/\?.+/);
  1839. return match ? match[0] : '';
  1840. },
  1841. // Gets the true hash value. Cannot use location.hash directly due to bug
  1842. // in Firefox where location.hash will always be decoded.
  1843. getHash: function(window) {
  1844. var match = (window || this).location.href.match(/#(.*)$/);
  1845. return match ? match[1] : '';
  1846. },
  1847. // Get the pathname and search params, without the root.
  1848. getPath: function() {
  1849. var path = this.decodeFragment(
  1850. this.location.pathname + this.getSearch()
  1851. ).slice(this.root.length - 1);
  1852. return path.charAt(0) === '/' ? path.slice(1) : path;
  1853. },
  1854. // Get the cross-browser normalized URL fragment from the path or hash.
  1855. getFragment: function(fragment) {
  1856. if (fragment == null) {
  1857. if (this._usePushState || !this._wantsHashChange) {
  1858. fragment = this.getPath();
  1859. } else {
  1860. fragment = this.getHash();
  1861. }
  1862. }
  1863. return fragment.replace(routeStripper, '');
  1864. },
  1865. // Start the hash change handling, returning `true` if the current URL matches
  1866. // an existing route, and `false` otherwise.
  1867. start: function(options) {
  1868. if (History.started) throw new Error('Backbone.history has already been started');
  1869. History.started = true;
  1870. // Figure out the initial configuration. Do we need an iframe?
  1871. // Is pushState desired ... is it available?
  1872. this.options = _.extend({root: '/'}, this.options, options);
  1873. this.root = this.options.root;
  1874. this._wantsHashChange = this.options.hashChange !== false;
  1875. this._hasHashChange = 'onhashchange' in window && (document.documentMode === void 0 || document.documentMode > 7);
  1876. this._useHashChange = this._wantsHashChange && this._hasHashChange;
  1877. this._wantsPushState = !!this.options.pushState;
  1878. this._hasPushState = !!(this.history && this.history.pushState);
  1879. this._usePushState = this._wantsPushState && this._hasPushState;
  1880. this.fragment = this.getFragment();
  1881. // Normalize root to always include a leading and trailing slash.
  1882. this.root = ('/' + this.root + '/').replace(rootStripper, '/');
  1883. // Transition from hashChange to pushState or vice versa if both are
  1884. // requested.
  1885. if (this._wantsHashChange && this._wantsPushState) {
  1886. // If we've started off with a route from a `pushState`-enabled
  1887. // browser, but we're currently in a browser that doesn't support it...
  1888. if (!this._hasPushState && !this.atRoot()) {
  1889. var rootPath = this.root.slice(0, -1) || '/';
  1890. this.location.replace(rootPath + '#' + this.getPath());
  1891. // Return immediately as browser will do redirect to new url
  1892. return true;
  1893. // Or if we've started out with a hash-based route, but we're currently
  1894. // in a browser where it could be `pushState`-based instead...
  1895. } else if (this._hasPushState && this.atRoot()) {
  1896. this.navigate(this.getHash(), {replace: true});
  1897. }
  1898. }
  1899. // Proxy an iframe to handle location events if the browser doesn't
  1900. // support the `hashchange` event, HTML5 history, or the user wants
  1901. // `hashChange` but not `pushState`.
  1902. if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) {
  1903. this.iframe = document.createElement('iframe');
  1904. this.iframe.src = 'javascript:0';
  1905. this.iframe.style.display = 'none';
  1906. this.iframe.tabIndex = -1;
  1907. var body = document.body;
  1908. // Using `appendChild` will throw on IE < 9 if the document is not ready.
  1909. var iWindow = body.insertBefore(this.iframe, body.firstChild).contentWindow;
  1910. iWindow.document.open();
  1911. iWindow.document.close();
  1912. iWindow.location.hash = '#' + this.fragment;
  1913. }
  1914. // Add a cross-platform `addEventListener` shim for older browsers.
  1915. var addEventListener = window.addEventListener || function(eventName, listener) {
  1916. return attachEvent('on' + eventName, listener);
  1917. };
  1918. // Depending on whether we're using pushState or hashes, and whether
  1919. // 'onhashchange' is supported, determine how we check the URL state.
  1920. if (this._usePushState) {
  1921. addEventListener('popstate', this.checkUrl, false);
  1922. } else if (this._useHashChange && !this.iframe) {
  1923. addEventListener('hashchange', this.checkUrl, false);
  1924. } else if (this._wantsHashChange) {
  1925. this._checkUrlInterval = setInterval(this.checkUrl, this.interval);
  1926. }
  1927. if (!this.options.silent) return this.loadUrl();
  1928. },
  1929. // Disable Backbone.history, perhaps temporarily. Not useful in a real app,
  1930. // but possibly useful for unit testing Routers.
  1931. stop: function() {
  1932. // Add a cross-platform `removeEventListener` shim for older browsers.
  1933. var removeEventListener = window.removeEventListener || function(eventName, listener) {
  1934. return detachEvent('on' + eventName, listener);
  1935. };
  1936. // Remove window listeners.
  1937. if (this._usePushState) {
  1938. removeEventListener('popstate', this.checkUrl, false);
  1939. } else if (this._useHashChange && !this.iframe) {
  1940. removeEventListener('hashchange', this.checkUrl, false);
  1941. }
  1942. // Clean up the iframe if necessary.
  1943. if (this.iframe) {
  1944. document.body.removeChild(this.iframe);
  1945. this.iframe = null;
  1946. }
  1947. // Some environments will throw when clearing an undefined interval.
  1948. if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);
  1949. History.started = false;
  1950. },
  1951. // Add a route to be tested when the fragment changes. Routes added later
  1952. // may override previous routes.
  1953. route: function(route, callback) {
  1954. this.handlers.unshift({route: route, callback: callback});
  1955. },
  1956. // Checks the current URL to see if it has changed, and if it has,
  1957. // calls `loadUrl`, normalizing across the hidden iframe.
  1958. checkUrl: function(e) {
  1959. var current = this.getFragment();
  1960. // If the user pressed the back button, the iframe's hash will have
  1961. // changed and we should use that for comparison.
  1962. if (current === this.fragment && this.iframe) {
  1963. current = this.getHash(this.iframe.contentWindow);
  1964. }
  1965. if (current === this.fragment) return false;
  1966. if (this.iframe) this.navigate(current);
  1967. this.loadUrl();
  1968. },
  1969. // Attempt to load the current URL fragment. If a route succeeds with a
  1970. // match, returns `true`. If no defined routes matches the fragment,
  1971. // returns `false`.
  1972. loadUrl: function(fragment) {
  1973. // If the root doesn't match, no routes can match either.
  1974. if (!this.matchRoot()) return false;
  1975. fragment = this.fragment = this.getFragment(fragment);
  1976. return _.some(this.handlers, function(handler) {
  1977. if (handler.route.test(fragment)) {
  1978. handler.callback(fragment);
  1979. return true;
  1980. }
  1981. });
  1982. },
  1983. // Save a fragment into the hash history, or replace the URL state if the
  1984. // 'replace' option is passed. You are responsible for properly URL-encoding
  1985. // the fragment in advance.
  1986. //
  1987. // The options object can contain `trigger: true` if you wish to have the
  1988. // route callback be fired (not usually desirable), or `replace: true`, if
  1989. // you wish to modify the current URL without adding an entry to the history.
  1990. navigate: function(fragment, options) {
  1991. if (!History.started) return false;
  1992. if (!options || options === true) options = {trigger: !!options};
  1993. // Normalize the fragment.
  1994. fragment = this.getFragment(fragment || '');
  1995. // Don't include a trailing slash on the root.
  1996. var rootPath = this.root;
  1997. if (fragment === '' || fragment.charAt(0) === '?') {
  1998. rootPath = rootPath.slice(0, -1) || '/';
  1999. }
  2000. var url = rootPath + fragment;
  2001. // Strip the hash and decode for matching.
  2002. fragment = this.decodeFragment(fragment.replace(pathStripper, ''));
  2003. if (this.fragment === fragment) return;
  2004. this.fragment = fragment;
  2005. // If pushState is available, we use it to set the fragment as a real URL.
  2006. if (this._usePushState) {
  2007. this.history[options.replace ? 'replaceState' : 'pushState']({}, document.title, url);
  2008. // If hash changes haven't been explicitly disabled, update the hash
  2009. // fragment to store history.
  2010. } else if (this._wantsHashChange) {
  2011. this._updateHash(this.location, fragment, options.replace);
  2012. if (this.iframe && fragment !== this.getHash(this.iframe.contentWindow)) {
  2013. var iWindow = this.iframe.contentWindow;
  2014. // Opening and closing the iframe tricks IE7 and earlier to push a
  2015. // history entry on hash-tag change. When replace is true, we don't
  2016. // want this.
  2017. if (!options.replace) {
  2018. iWindow.document.open();
  2019. iWindow.document.close();
  2020. }
  2021. this._updateHash(iWindow.location, fragment, options.replace);
  2022. }
  2023. // If you've told us that you explicitly don't want fallback hashchange-
  2024. // based history, then `navigate` becomes a page refresh.
  2025. } else {
  2026. return this.location.assign(url);
  2027. }
  2028. if (options.trigger) return this.loadUrl(fragment);
  2029. },
  2030. // Update the hash location, either replacing the current entry, or adding
  2031. // a new one to the browser history.
  2032. _updateHash: function(location, fragment, replace) {
  2033. if (replace) {
  2034. var href = location.href.replace(/(javascript:|#).*$/, '');
  2035. location.replace(href + '#' + fragment);
  2036. } else {
  2037. // Some browsers require that `hash` contains a leading #.
  2038. location.hash = '#' + fragment;
  2039. }
  2040. }
  2041. });
  2042. // Create the default Backbone.history.
  2043. Backbone.history = new History;
  2044. // Helpers
  2045. // -------
  2046. // Helper function to correctly set up the prototype chain for subclasses.
  2047. // Similar to `goog.inherits`, but uses a hash of prototype properties and
  2048. // class properties to be extended.
  2049. var extend = function(protoProps, staticProps) {
  2050. var parent = this;
  2051. var child;
  2052. // The constructor function for the new subclass is either defined by you
  2053. // (the "constructor" property in your `extend` definition), or defaulted
  2054. // by us to simply call the parent constructor.
  2055. if (protoProps && _.has(protoProps, 'constructor')) {
  2056. child = protoProps.constructor;
  2057. } else {
  2058. child = function(){ return parent.apply(this, arguments); };
  2059. }
  2060. // Add static properties to the constructor function, if supplied.
  2061. _.extend(child, parent, staticProps);
  2062. // Set the prototype chain to inherit from `parent`, without calling
  2063. // `parent`'s constructor function and add the prototype properties.
  2064. child.prototype = _.create(parent.prototype, protoProps);
  2065. child.prototype.constructor = child;
  2066. // Set a convenience property in case the parent's prototype is needed
  2067. // later.
  2068. child.__super__ = parent.prototype;
  2069. return child;
  2070. };
  2071. // Set up inheritance for the model, collection, router, view and history.
  2072. Model.extend = Collection.extend = Router.extend = View.extend = History.extend = extend;
  2073. // Throw an error when a URL is needed, and none is supplied.
  2074. var urlError = function() {
  2075. throw new Error('A "url" property or function must be specified');
  2076. };
  2077. // Wrap an optional error callback with a fallback error event.
  2078. var wrapError = function(model, options) {
  2079. var error = options.error;
  2080. options.error = function(resp) {
  2081. if (error) error.call(options.context, model, resp, options);
  2082. model.trigger('error', model, resp, options);
  2083. };
  2084. };
  2085. return Backbone;
  2086. });
  2087. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  2088. /***/ }),
  2089. /***/ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js":
  2090. /*!*******************************************************************!*\
  2091. !*** ./node_modules/bootstrap.native/dist/bootstrap-native-v4.js ***!
  2092. \*******************************************************************/
  2093. /*! no static exports found */
  2094. /***/ (function(module, exports, __webpack_require__) {
  2095. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Native Javascript for Bootstrap 4 v2.0.23 | © dnp_theme | MIT-License
  2096. (function (root, factory) {
  2097. if (true) {
  2098. // AMD support:
  2099. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  2100. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  2101. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  2102. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  2103. } else { var bsn; }
  2104. }(this, function () {
  2105. /* Native Javascript for Bootstrap 4 | Internal Utility Functions
  2106. ----------------------------------------------------------------*/
  2107. "use strict";
  2108. // globals
  2109. var globalObject = typeof global !== 'undefined' ? global : this||window,
  2110. DOC = document, HTML = DOC.documentElement, body = 'body', // allow the library to be used in <head>
  2111. // Native Javascript for Bootstrap Global Object
  2112. BSN = globalObject.BSN = {},
  2113. supports = BSN.supports = [],
  2114. // function toggle attributes
  2115. dataToggle = 'data-toggle',
  2116. dataDismiss = 'data-dismiss',
  2117. dataSpy = 'data-spy',
  2118. dataRide = 'data-ride',
  2119. // components
  2120. stringAlert = 'Alert',
  2121. stringButton = 'Button',
  2122. stringCarousel = 'Carousel',
  2123. stringCollapse = 'Collapse',
  2124. stringDropdown = 'Dropdown',
  2125. stringModal = 'Modal',
  2126. stringPopover = 'Popover',
  2127. stringScrollSpy = 'ScrollSpy',
  2128. stringTab = 'Tab',
  2129. stringTooltip = 'Tooltip',
  2130. // options DATA API
  2131. databackdrop = 'data-backdrop',
  2132. dataKeyboard = 'data-keyboard',
  2133. dataTarget = 'data-target',
  2134. dataInterval = 'data-interval',
  2135. dataHeight = 'data-height',
  2136. dataPause = 'data-pause',
  2137. dataTitle = 'data-title',
  2138. dataOriginalTitle = 'data-original-title',
  2139. dataOriginalText = 'data-original-text',
  2140. dataDismissible = 'data-dismissible',
  2141. dataTrigger = 'data-trigger',
  2142. dataAnimation = 'data-animation',
  2143. dataContainer = 'data-container',
  2144. dataPlacement = 'data-placement',
  2145. dataDelay = 'data-delay',
  2146. dataOffsetTop = 'data-offset-top',
  2147. dataOffsetBottom = 'data-offset-bottom',
  2148. // option keys
  2149. backdrop = 'backdrop', keyboard = 'keyboard', delay = 'delay',
  2150. content = 'content', target = 'target',
  2151. interval = 'interval', pause = 'pause', animation = 'animation',
  2152. placement = 'placement', container = 'container',
  2153. // box model
  2154. offsetTop = 'offsetTop', offsetBottom = 'offsetBottom',
  2155. offsetLeft = 'offsetLeft',
  2156. scrollTop = 'scrollTop', scrollLeft = 'scrollLeft',
  2157. clientWidth = 'clientWidth', clientHeight = 'clientHeight',
  2158. offsetWidth = 'offsetWidth', offsetHeight = 'offsetHeight',
  2159. innerWidth = 'innerWidth', innerHeight = 'innerHeight',
  2160. scrollHeight = 'scrollHeight', height = 'height',
  2161. // aria
  2162. ariaExpanded = 'aria-expanded',
  2163. ariaHidden = 'aria-hidden',
  2164. // event names
  2165. clickEvent = 'click',
  2166. hoverEvent = 'hover',
  2167. keydownEvent = 'keydown',
  2168. keyupEvent = 'keyup',
  2169. resizeEvent = 'resize',
  2170. scrollEvent = 'scroll',
  2171. // originalEvents
  2172. showEvent = 'show',
  2173. shownEvent = 'shown',
  2174. hideEvent = 'hide',
  2175. hiddenEvent = 'hidden',
  2176. closeEvent = 'close',
  2177. closedEvent = 'closed',
  2178. slidEvent = 'slid',
  2179. slideEvent = 'slide',
  2180. changeEvent = 'change',
  2181. // other
  2182. getAttribute = 'getAttribute',
  2183. setAttribute = 'setAttribute',
  2184. hasAttribute = 'hasAttribute',
  2185. createElement = 'createElement',
  2186. appendChild = 'appendChild',
  2187. innerHTML = 'innerHTML',
  2188. getElementsByTagName = 'getElementsByTagName',
  2189. preventDefault = 'preventDefault',
  2190. getBoundingClientRect = 'getBoundingClientRect',
  2191. querySelectorAll = 'querySelectorAll',
  2192. getElementsByCLASSNAME = 'getElementsByClassName',
  2193. getComputedStyle = 'getComputedStyle',
  2194. indexOf = 'indexOf',
  2195. parentNode = 'parentNode',
  2196. length = 'length',
  2197. toLowerCase = 'toLowerCase',
  2198. Transition = 'Transition',
  2199. Duration = 'Duration',
  2200. Webkit = 'Webkit',
  2201. style = 'style',
  2202. push = 'push',
  2203. tabindex = 'tabindex',
  2204. contains = 'contains',
  2205. active = 'active',
  2206. showClass = 'show',
  2207. collapsing = 'collapsing',
  2208. disabled = 'disabled',
  2209. loading = 'loading',
  2210. left = 'left',
  2211. right = 'right',
  2212. top = 'top',
  2213. bottom = 'bottom',
  2214. // tooltip / popover
  2215. mouseHover = ('onmouseleave' in DOC) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
  2216. tipPositions = /\b(top|bottom|left|right)+/,
  2217. // modal
  2218. modalOverlay = 0,
  2219. fixedTop = 'fixed-top',
  2220. fixedBottom = 'fixed-bottom',
  2221. // transitionEnd since 2.0.4
  2222. supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
  2223. transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
  2224. transitionDuration = Webkit+Duration in HTML[style] ? Webkit[toLowerCase]()+Transition+Duration : Transition[toLowerCase]()+Duration,
  2225. // set new focus element since 2.0.3
  2226. setFocus = function(element){
  2227. element.focus ? element.focus() : element.setActive();
  2228. },
  2229. // class manipulation, since 2.0.0 requires polyfill.js
  2230. addClass = function(element,classNAME) {
  2231. element.classList.add(classNAME);
  2232. },
  2233. removeClass = function(element,classNAME) {
  2234. element.classList.remove(classNAME);
  2235. },
  2236. hasClass = function(element,classNAME){ // since 2.0.0
  2237. return element.classList[contains](classNAME);
  2238. },
  2239. // selection methods
  2240. getElementsByClassName = function(element,classNAME) { // returns Array
  2241. return [].slice.call(element[getElementsByCLASSNAME]( classNAME ));
  2242. },
  2243. queryElement = function (selector, parent) {
  2244. var lookUp = parent ? parent : DOC;
  2245. return typeof selector === 'object' ? selector : lookUp.querySelector(selector);
  2246. },
  2247. getClosest = function (element, selector) { //element is the element and selector is for the closest parent element to find
  2248. // source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
  2249. var firstChar = selector.charAt(0), selectorSubstring = selector.substr(1);
  2250. if ( firstChar === '.' ) {// If selector is a class
  2251. for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
  2252. if ( queryElement(selector,element[parentNode]) !== null && hasClass(element,selectorSubstring) ) { return element; }
  2253. }
  2254. } else if ( firstChar === '#' ) { // If selector is an ID
  2255. for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
  2256. if ( element.id === selectorSubstring ) { return element; }
  2257. }
  2258. }
  2259. return false;
  2260. },
  2261. // event attach jQuery style / trigger since 1.2.0
  2262. on = function (element, event, handler) {
  2263. element.addEventListener(event, handler, false);
  2264. },
  2265. off = function(element, event, handler) {
  2266. element.removeEventListener(event, handler, false);
  2267. },
  2268. one = function (element, event, handler) { // one since 2.0.4
  2269. on(element, event, function handlerWrapper(e){
  2270. handler(e);
  2271. off(element, event, handlerWrapper);
  2272. });
  2273. },
  2274. getTransitionDurationFromElement = function(element) {
  2275. var duration = globalObject[getComputedStyle](element)[transitionDuration];
  2276. duration = parseFloat(duration);
  2277. duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0;
  2278. return duration + 50; // we take a short offset to make sure we fire on the next frame after animation
  2279. },
  2280. emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
  2281. var called = 0, duration = getTransitionDurationFromElement(element);
  2282. supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; });
  2283. setTimeout(function() { !called && handler(); }, duration);
  2284. },
  2285. bootstrapCustomEvent = function (eventName, componentName, related) {
  2286. var OriginalCustomEvent = new CustomEvent( eventName + '.bs.' + componentName);
  2287. OriginalCustomEvent.relatedTarget = related;
  2288. this.dispatchEvent(OriginalCustomEvent);
  2289. },
  2290. // tooltip / popover stuff
  2291. getScroll = function() { // also Affix and ScrollSpy uses it
  2292. return {
  2293. y : globalObject.pageYOffset || HTML[scrollTop],
  2294. x : globalObject.pageXOffset || HTML[scrollLeft]
  2295. }
  2296. },
  2297. styleTip = function(link,element,position,parent) { // both popovers and tooltips (target,tooltip,placement,elementToAppendTo)
  2298. var elementDimensions = { w : element[offsetWidth], h: element[offsetHeight] },
  2299. windowWidth = (HTML[clientWidth] || DOC[body][clientWidth]),
  2300. windowHeight = (HTML[clientHeight] || DOC[body][clientHeight]),
  2301. rect = link[getBoundingClientRect](),
  2302. scroll = parent === DOC[body] ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
  2303. linkDimensions = { w: rect[right] - rect[left], h: rect[bottom] - rect[top] },
  2304. isPopover = hasClass(element,'popover'),
  2305. topPosition, leftPosition,
  2306. arrow = queryElement('.arrow',element),
  2307. arrowTop, arrowLeft, arrowWidth, arrowHeight,
  2308. halfTopExceed = rect[top] + linkDimensions.h/2 - elementDimensions.h/2 < 0,
  2309. halfLeftExceed = rect[left] + linkDimensions.w/2 - elementDimensions.w/2 < 0,
  2310. halfRightExceed = rect[left] + elementDimensions.w/2 + linkDimensions.w/2 >= windowWidth,
  2311. halfBottomExceed = rect[top] + elementDimensions.h/2 + linkDimensions.h/2 >= windowHeight,
  2312. topExceed = rect[top] - elementDimensions.h < 0,
  2313. leftExceed = rect[left] - elementDimensions.w < 0,
  2314. bottomExceed = rect[top] + elementDimensions.h + linkDimensions.h >= windowHeight,
  2315. rightExceed = rect[left] + elementDimensions.w + linkDimensions.w >= windowWidth;
  2316. // recompute position
  2317. position = (position === left || position === right) && leftExceed && rightExceed ? top : position; // first, when both left and right limits are exceeded, we fall back to top|bottom
  2318. position = position === top && topExceed ? bottom : position;
  2319. position = position === bottom && bottomExceed ? top : position;
  2320. position = position === left && leftExceed ? right : position;
  2321. position = position === right && rightExceed ? left : position;
  2322. // update tooltip/popover class
  2323. element.className[indexOf](position) === -1 && (element.className = element.className.replace(tipPositions,position));
  2324. // we check the computed width & height and update here
  2325. arrowWidth = arrow[offsetWidth]; arrowHeight = arrow[offsetHeight];
  2326. // apply styling to tooltip or popover
  2327. if ( position === left || position === right ) { // secondary|side positions
  2328. if ( position === left ) { // LEFT
  2329. leftPosition = rect[left] + scroll.x - elementDimensions.w - ( isPopover ? arrowWidth : 0 );
  2330. } else { // RIGHT
  2331. leftPosition = rect[left] + scroll.x + linkDimensions.w;
  2332. }
  2333. // adjust top and arrow
  2334. if (halfTopExceed) {
  2335. topPosition = rect[top] + scroll.y;
  2336. arrowTop = linkDimensions.h/2 - arrowWidth;
  2337. } else if (halfBottomExceed) {
  2338. topPosition = rect[top] + scroll.y - elementDimensions.h + linkDimensions.h;
  2339. arrowTop = elementDimensions.h - linkDimensions.h/2 - arrowWidth;
  2340. } else {
  2341. topPosition = rect[top] + scroll.y - elementDimensions.h/2 + linkDimensions.h/2;
  2342. arrowTop = elementDimensions.h/2 - (isPopover ? arrowHeight*0.9 : arrowHeight/2);
  2343. }
  2344. } else if ( position === top || position === bottom ) { // primary|vertical positions
  2345. if ( position === top) { // TOP
  2346. topPosition = rect[top] + scroll.y - elementDimensions.h - ( isPopover ? arrowHeight : 0 );
  2347. } else { // BOTTOM
  2348. topPosition = rect[top] + scroll.y + linkDimensions.h;
  2349. }
  2350. // adjust left | right and also the arrow
  2351. if (halfLeftExceed) {
  2352. leftPosition = 0;
  2353. arrowLeft = rect[left] + linkDimensions.w/2 - arrowWidth;
  2354. } else if (halfRightExceed) {
  2355. leftPosition = windowWidth - elementDimensions.w*1.01;
  2356. arrowLeft = elementDimensions.w - ( windowWidth - rect[left] ) + linkDimensions.w/2 - arrowWidth/2;
  2357. } else {
  2358. leftPosition = rect[left] + scroll.x - elementDimensions.w/2 + linkDimensions.w/2;
  2359. arrowLeft = elementDimensions.w/2 - arrowWidth/2;
  2360. }
  2361. }
  2362. // apply style to tooltip/popover and its arrow
  2363. element[style][top] = topPosition + 'px';
  2364. element[style][left] = leftPosition + 'px';
  2365. arrowTop && (arrow[style][top] = arrowTop + 'px');
  2366. arrowLeft && (arrow[style][left] = arrowLeft + 'px');
  2367. };
  2368. BSN.version = '2.0.23';
  2369. /* Native Javascript for Bootstrap 4 | Alert
  2370. -------------------------------------------*/
  2371. // ALERT DEFINITION
  2372. // ================
  2373. var Alert = function( element ) {
  2374. // initialization element
  2375. element = queryElement(element);
  2376. // bind, target alert, duration and stuff
  2377. var self = this, component = 'alert',
  2378. alert = getClosest(element,'.'+component),
  2379. triggerHandler = function(){ hasClass(alert,'fade') ? emulateTransitionEnd(alert,transitionEndHandler) : transitionEndHandler(); },
  2380. // handlers
  2381. clickHandler = function(e){
  2382. alert = getClosest(e[target],'.'+component);
  2383. element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
  2384. element && alert && (element === e[target] || element[contains](e[target])) && self.close();
  2385. },
  2386. transitionEndHandler = function(){
  2387. bootstrapCustomEvent.call(alert, closedEvent, component);
  2388. off(element, clickEvent, clickHandler); // detach it's listener
  2389. alert[parentNode].removeChild(alert);
  2390. };
  2391. // public method
  2392. this.close = function() {
  2393. if ( alert && element && hasClass(alert,showClass) ) {
  2394. bootstrapCustomEvent.call(alert, closeEvent, component);
  2395. removeClass(alert,showClass);
  2396. alert && triggerHandler();
  2397. }
  2398. };
  2399. // init
  2400. if ( !(stringAlert in element ) ) { // prevent adding event handlers twice
  2401. on(element, clickEvent, clickHandler);
  2402. }
  2403. element[stringAlert] = self;
  2404. };
  2405. // ALERT DATA API
  2406. // ==============
  2407. supports[push]([stringAlert, Alert, '['+dataDismiss+'="alert"]']);
  2408. /* Native Javascript for Bootstrap 4 | Button
  2409. ---------------------------------------------*/
  2410. // BUTTON DEFINITION
  2411. // ===================
  2412. var Button = function( element ) {
  2413. // initialization element
  2414. element = queryElement(element);
  2415. // constant
  2416. var toggled = false, // toggled makes sure to prevent triggering twice the change.bs.button events
  2417. // strings
  2418. component = 'button',
  2419. checked = 'checked',
  2420. reset = 'reset',
  2421. LABEL = 'LABEL',
  2422. INPUT = 'INPUT',
  2423. // private methods
  2424. keyHandler = function(e){
  2425. var key = e.which || e.keyCode;
  2426. key === 32 && e[target] === DOC.activeElement && toggle(e);
  2427. },
  2428. preventScroll = function(e){
  2429. var key = e.which || e.keyCode;
  2430. key === 32 && e[preventDefault]();
  2431. },
  2432. toggle = function(e) {
  2433. var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label
  2434. if ( !label ) return; //react if a label or its immediate child is clicked
  2435. var eventTarget = e[target], // the button itself, the target of the handler function
  2436. labels = getElementsByClassName(eventTarget[parentNode],'btn'), // all the button group buttons
  2437. input = label[getElementsByTagName](INPUT)[0];
  2438. if ( !input ) return; //return if no input found
  2439. // manage the dom manipulation
  2440. if ( input.type === 'checkbox' ) { //checkboxes
  2441. if ( !input[checked] ) {
  2442. addClass(label,active);
  2443. input[getAttribute](checked);
  2444. input[setAttribute](checked,checked);
  2445. input[checked] = true;
  2446. } else {
  2447. removeClass(label,active);
  2448. input[getAttribute](checked);
  2449. input.removeAttribute(checked);
  2450. input[checked] = false;
  2451. }
  2452. if (!toggled) { // prevent triggering the event twice
  2453. toggled = true;
  2454. bootstrapCustomEvent.call(input, changeEvent, component); //trigger the change for the input
  2455. bootstrapCustomEvent.call(element, changeEvent, component); //trigger the change for the btn-group
  2456. }
  2457. }
  2458. if ( input.type === 'radio' && !toggled ) { // radio buttons
  2459. if ( !input[checked] ) { // don't trigger if already active
  2460. addClass(label,active);
  2461. input[setAttribute](checked,checked);
  2462. input[checked] = true;
  2463. bootstrapCustomEvent.call(input, changeEvent, component); //trigger the change for the input
  2464. bootstrapCustomEvent.call(element, changeEvent, component); //trigger the change for the btn-group
  2465. toggled = true;
  2466. for (var i = 0, ll = labels[length]; i<ll; i++) {
  2467. var otherLabel = labels[i], otherInput = otherLabel[getElementsByTagName](INPUT)[0];
  2468. if ( otherLabel !== label && hasClass(otherLabel,active) ) {
  2469. removeClass(otherLabel,active);
  2470. otherInput.removeAttribute(checked);
  2471. otherInput[checked] = false;
  2472. bootstrapCustomEvent.call(otherInput, changeEvent, component); // trigger the change
  2473. }
  2474. }
  2475. }
  2476. }
  2477. setTimeout( function() { toggled = false; }, 50 );
  2478. };
  2479. // init
  2480. if ( !( stringButton in element ) ) { // prevent adding event handlers twice
  2481. on( element, clickEvent, toggle );
  2482. queryElement('['+tabindex+']',element) && on( element, keyupEvent, keyHandler ),
  2483. on( element, keydownEvent, preventScroll );
  2484. }
  2485. // activate items on load
  2486. var labelsToACtivate = getElementsByClassName(element, 'btn'), lbll = labelsToACtivate[length];
  2487. for (var i=0; i<lbll; i++) {
  2488. !hasClass(labelsToACtivate[i],active) && queryElement('input:checked',labelsToACtivate[i])
  2489. && addClass(labelsToACtivate[i],active);
  2490. }
  2491. element[stringButton] = this;
  2492. };
  2493. // BUTTON DATA API
  2494. // =================
  2495. supports[push]( [ stringButton, Button, '['+dataToggle+'="buttons"]' ] );
  2496. /* Native Javascript for Bootstrap 4 | Carousel
  2497. ----------------------------------------------*/
  2498. // CAROUSEL DEFINITION
  2499. // ===================
  2500. var Carousel = function( element, options ) {
  2501. // initialization element
  2502. element = queryElement( element );
  2503. // set options
  2504. options = options || {};
  2505. // DATA API
  2506. var intervalAttribute = element[getAttribute](dataInterval),
  2507. intervalOption = options[interval],
  2508. intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute),
  2509. pauseData = element[getAttribute](dataPause) === hoverEvent || false,
  2510. keyboardData = element[getAttribute](dataKeyboard) === 'true' || false,
  2511. // strings
  2512. component = 'carousel',
  2513. paused = 'paused',
  2514. direction = 'direction',
  2515. carouselItem = 'carousel-item',
  2516. dataSlideTo = 'data-slide-to';
  2517. this[keyboard] = options[keyboard] === true || keyboardData;
  2518. this[pause] = (options[pause] === hoverEvent || pauseData) ? hoverEvent : false; // false / hover
  2519. this[interval] = typeof intervalOption === 'number' ? intervalOption
  2520. : intervalOption === false || intervalData === 0 || intervalData === false ? 0
  2521. : 5000; // bootstrap carousel default interval
  2522. // bind, event targets
  2523. var self = this, index = element.index = 0, timer = element.timer = 0,
  2524. isSliding = false, // isSliding prevents click event handlers when animation is running
  2525. slides = getElementsByClassName(element,carouselItem), total = slides[length],
  2526. slideDirection = this[direction] = left,
  2527. leftArrow = getElementsByClassName(element,component+'-control-prev')[0],
  2528. rightArrow = getElementsByClassName(element,component+'-control-next')[0],
  2529. indicator = queryElement( '.'+component+'-indicators', element ),
  2530. indicators = indicator && indicator[getElementsByTagName]( "LI" ) || [];
  2531. // handlers
  2532. var pauseHandler = function () {
  2533. if ( self[interval] !==false && !hasClass(element,paused) ) {
  2534. addClass(element,paused);
  2535. !isSliding && clearInterval( timer );
  2536. }
  2537. },
  2538. resumeHandler = function() {
  2539. if ( self[interval] !== false && hasClass(element,paused) ) {
  2540. removeClass(element,paused);
  2541. !isSliding && clearInterval( timer );
  2542. !isSliding && self.cycle();
  2543. }
  2544. },
  2545. indicatorHandler = function(e) {
  2546. e[preventDefault]();
  2547. if (isSliding) return;
  2548. var eventTarget = e[target]; // event target | the current active item
  2549. if ( eventTarget && !hasClass(eventTarget,active) && eventTarget[getAttribute](dataSlideTo) ) {
  2550. index = parseInt( eventTarget[getAttribute](dataSlideTo), 10 );
  2551. } else { return false; }
  2552. self.slideTo( index ); //Do the slide
  2553. },
  2554. controlsHandler = function (e) {
  2555. e[preventDefault]();
  2556. if (isSliding) return;
  2557. var eventTarget = e.currentTarget || e.srcElement;
  2558. if ( eventTarget === rightArrow ) {
  2559. index++;
  2560. } else if ( eventTarget === leftArrow ) {
  2561. index--;
  2562. }
  2563. self.slideTo( index ); //Do the slide
  2564. },
  2565. keyHandler = function (e) {
  2566. if (isSliding) return;
  2567. switch (e.which) {
  2568. case 39:
  2569. index++;
  2570. break;
  2571. case 37:
  2572. index--;
  2573. break;
  2574. default: return;
  2575. }
  2576. self.slideTo( index ); //Do the slide
  2577. },
  2578. // private methods
  2579. isElementInScrollRange = function () {
  2580. var rect = element[getBoundingClientRect](),
  2581. viewportHeight = globalObject[innerHeight] || HTML[clientHeight]
  2582. return rect[top] <= viewportHeight && rect[bottom] >= 0; // bottom && top
  2583. },
  2584. setActivePage = function( pageIndex ) { //indicators
  2585. for ( var i = 0, icl = indicators[length]; i < icl; i++ ) {
  2586. removeClass(indicators[i],active);
  2587. }
  2588. if (indicators[pageIndex]) addClass(indicators[pageIndex], active);
  2589. };
  2590. // public methods
  2591. this.cycle = function() {
  2592. timer = setInterval(function() {
  2593. isElementInScrollRange() && (index++, self.slideTo( index ) );
  2594. }, this[interval]);
  2595. };
  2596. this.slideTo = function( next ) {
  2597. if (isSliding) return; // when controled via methods, make sure to check again
  2598. var activeItem = this.getActiveIndex(), // the current active
  2599. orientation;
  2600. // determine slideDirection first
  2601. if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
  2602. slideDirection = self[direction] = left; // next
  2603. } else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) {
  2604. slideDirection = self[direction] = right; // prev
  2605. }
  2606. // find the right next index
  2607. if ( next < 0 ) { next = total - 1; }
  2608. else if ( next === total ){ next = 0; }
  2609. // update index
  2610. index = next;
  2611. orientation = slideDirection === left ? 'next' : 'prev'; //determine type
  2612. bootstrapCustomEvent.call(element, slideEvent, component, slides[next]); // here we go with the slide
  2613. isSliding = true;
  2614. clearInterval(timer);
  2615. setActivePage( next );
  2616. if ( supportTransitions && hasClass(element,'slide') ) {
  2617. addClass(slides[next],carouselItem +'-'+ orientation);
  2618. slides[next][offsetWidth];
  2619. addClass(slides[next],carouselItem +'-'+ slideDirection);
  2620. addClass(slides[activeItem],carouselItem +'-'+ slideDirection);
  2621. one(slides[next], transitionEndEvent, function(e) {
  2622. var timeout = e[target] !== slides[next] ? e.elapsedTime*1000+100 : 20;
  2623. isSliding && setTimeout(function(){
  2624. isSliding = false;
  2625. addClass(slides[next],active);
  2626. removeClass(slides[activeItem],active);
  2627. removeClass(slides[next],carouselItem +'-'+ orientation);
  2628. removeClass(slides[next],carouselItem +'-'+ slideDirection);
  2629. removeClass(slides[activeItem],carouselItem +'-'+ slideDirection);
  2630. bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
  2631. if ( !DOC.hidden && self[interval] && !hasClass(element,paused) ) {
  2632. self.cycle();
  2633. }
  2634. }, timeout);
  2635. });
  2636. } else {
  2637. addClass(slides[next],active);
  2638. slides[next][offsetWidth];
  2639. removeClass(slides[activeItem],active);
  2640. setTimeout(function() {
  2641. isSliding = false;
  2642. if ( self[interval] && !hasClass(element,paused) ) {
  2643. self.cycle();
  2644. }
  2645. bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
  2646. }, 100 );
  2647. }
  2648. };
  2649. this.getActiveIndex = function () {
  2650. return slides[indexOf](getElementsByClassName(element,carouselItem+' active')[0]) || 0;
  2651. };
  2652. // init
  2653. if ( !(stringCarousel in element ) ) { // prevent adding event handlers twice
  2654. if ( self[pause] && self[interval] ) {
  2655. on( element, mouseHover[0], pauseHandler );
  2656. on( element, mouseHover[1], resumeHandler );
  2657. on( element, 'touchstart', pauseHandler );
  2658. on( element, 'touchend', resumeHandler );
  2659. }
  2660. rightArrow && on( rightArrow, clickEvent, controlsHandler );
  2661. leftArrow && on( leftArrow, clickEvent, controlsHandler );
  2662. indicator && on( indicator, clickEvent, indicatorHandler );
  2663. self[keyboard] === true && on( globalObject, keydownEvent, keyHandler );
  2664. }
  2665. if (self.getActiveIndex()<0) {
  2666. slides[length] && addClass(slides[0],active);
  2667. indicators[length] && setActivePage(0);
  2668. }
  2669. if ( self[interval] ){ self.cycle(); }
  2670. element[stringCarousel] = self;
  2671. };
  2672. // CAROUSEL DATA API
  2673. // =================
  2674. supports[push]( [ stringCarousel, Carousel, '['+dataRide+'="carousel"]' ] );
  2675. /* Native Javascript for Bootstrap 4 | Collapse
  2676. -----------------------------------------------*/
  2677. // COLLAPSE DEFINITION
  2678. // ===================
  2679. var Collapse = function( element, options ) {
  2680. // initialization element
  2681. element = queryElement(element);
  2682. // set options
  2683. options = options || {};
  2684. // event targets and constants
  2685. var accordion = null, collapse = null, self = this,
  2686. accordionData = element[getAttribute]('data-parent'),
  2687. activeCollapse, activeElement,
  2688. // component strings
  2689. component = 'collapse',
  2690. collapsed = 'collapsed',
  2691. isAnimating = 'isAnimating',
  2692. // private methods
  2693. openAction = function(collapseElement,toggle) {
  2694. bootstrapCustomEvent.call(collapseElement, showEvent, component);
  2695. collapseElement[isAnimating] = true;
  2696. addClass(collapseElement,collapsing);
  2697. removeClass(collapseElement,component);
  2698. collapseElement[style][height] = collapseElement[scrollHeight] + 'px';
  2699. emulateTransitionEnd(collapseElement, function() {
  2700. collapseElement[isAnimating] = false;
  2701. collapseElement[setAttribute](ariaExpanded,'true');
  2702. toggle[setAttribute](ariaExpanded,'true');
  2703. removeClass(collapseElement,collapsing);
  2704. addClass(collapseElement, component);
  2705. addClass(collapseElement,showClass);
  2706. collapseElement[style][height] = '';
  2707. bootstrapCustomEvent.call(collapseElement, shownEvent, component);
  2708. });
  2709. },
  2710. closeAction = function(collapseElement,toggle) {
  2711. bootstrapCustomEvent.call(collapseElement, hideEvent, component);
  2712. collapseElement[isAnimating] = true;
  2713. collapseElement[style][height] = collapseElement[scrollHeight] + 'px'; // set height first
  2714. removeClass(collapseElement,component);
  2715. removeClass(collapseElement,showClass);
  2716. addClass(collapseElement,collapsing);
  2717. collapseElement[offsetWidth]; // force reflow to enable transition
  2718. collapseElement[style][height] = '0px';
  2719. emulateTransitionEnd(collapseElement, function() {
  2720. collapseElement[isAnimating] = false;
  2721. collapseElement[setAttribute](ariaExpanded,'false');
  2722. toggle[setAttribute](ariaExpanded,'false');
  2723. removeClass(collapseElement,collapsing);
  2724. addClass(collapseElement,component);
  2725. collapseElement[style][height] = '';
  2726. bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
  2727. });
  2728. },
  2729. getTarget = function() {
  2730. var href = element.href && element[getAttribute]('href'),
  2731. parent = element[getAttribute](dataTarget),
  2732. id = href || ( parent && parent.charAt(0) === '#' ) && parent;
  2733. return id && queryElement(id);
  2734. };
  2735. // public methods
  2736. this.toggle = function(e) {
  2737. e[preventDefault]();
  2738. if (!hasClass(collapse,showClass)) { self.show(); }
  2739. else { self.hide(); }
  2740. };
  2741. this.hide = function() {
  2742. if ( collapse[isAnimating] ) return;
  2743. closeAction(collapse,element);
  2744. addClass(element,collapsed);
  2745. };
  2746. this.show = function() {
  2747. if ( accordion ) {
  2748. activeCollapse = queryElement('.'+component+'.'+showClass,accordion);
  2749. activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
  2750. || queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) );
  2751. }
  2752. if ( !collapse[isAnimating] || activeCollapse && !activeCollapse[isAnimating] ) {
  2753. if ( activeElement && activeCollapse !== collapse ) {
  2754. closeAction(activeCollapse,activeElement);
  2755. addClass(activeElement,collapsed);
  2756. }
  2757. openAction(collapse,element);
  2758. removeClass(element,collapsed);
  2759. }
  2760. };
  2761. // init
  2762. if ( !(stringCollapse in element ) ) { // prevent adding event handlers twice
  2763. on(element, clickEvent, self.toggle);
  2764. }
  2765. collapse = getTarget();
  2766. collapse[isAnimating] = false; // when true it will prevent click handlers
  2767. accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);
  2768. element[stringCollapse] = self;
  2769. };
  2770. // COLLAPSE DATA API
  2771. // =================
  2772. supports[push]( [ stringCollapse, Collapse, '['+dataToggle+'="collapse"]' ] );
  2773. /* Native Javascript for Bootstrap 4 | Dropdown
  2774. ----------------------------------------------*/
  2775. // DROPDOWN DEFINITION
  2776. // ===================
  2777. var Dropdown = function( element, option ) {
  2778. // initialization element
  2779. element = queryElement(element);
  2780. // set option
  2781. this.persist = option === true || element[getAttribute]('data-persist') === 'true' || false;
  2782. // constants, event targets, strings
  2783. var self = this, children = 'children',
  2784. parent = element[parentNode],
  2785. component = 'dropdown', open = 'open',
  2786. relatedTarget = null,
  2787. menu = queryElement('.dropdown-menu', parent),
  2788. menuItems = (function(){
  2789. var set = menu[children], newSet = [];
  2790. for ( var i=0; i<set[length]; i++ ){
  2791. set[i][children][length] && (set[i][children][0].tagName === 'A' && newSet[push](set[i][children][0]));
  2792. set[i].tagName === 'A' && newSet[push](set[i]);
  2793. }
  2794. return newSet;
  2795. })(),
  2796. // preventDefault on empty anchor links
  2797. preventEmptyAnchor = function(anchor){
  2798. (anchor.href && anchor.href.slice(-1) === '#' || anchor[parentNode] && anchor[parentNode].href
  2799. && anchor[parentNode].href.slice(-1) === '#') && this[preventDefault]();
  2800. },
  2801. // toggle dismissible events
  2802. toggleDismiss = function(){
  2803. var type = element[open] ? on : off;
  2804. type(DOC, clickEvent, dismissHandler);
  2805. type(DOC, keydownEvent, preventScroll);
  2806. type(DOC, keyupEvent, keyHandler);
  2807. },
  2808. // handlers
  2809. dismissHandler = function(e) {
  2810. var eventTarget = e[target], hasData = eventTarget && (stringDropdown in eventTarget || stringDropdown in eventTarget[parentNode]);
  2811. if ( (eventTarget === menu || menu[contains](eventTarget)) && (self.persist || hasData) ) { return; }
  2812. else {
  2813. relatedTarget = eventTarget === element || element[contains](eventTarget) ? element : null;
  2814. hide();
  2815. }
  2816. preventEmptyAnchor.call(e,eventTarget);
  2817. },
  2818. clickHandler = function(e) {
  2819. relatedTarget = element;
  2820. show();
  2821. preventEmptyAnchor.call(e,e[target]);
  2822. },
  2823. preventScroll = function(e){
  2824. var key = e.which || e.keyCode;
  2825. if( key === 38 || key === 40 ) { e[preventDefault](); }
  2826. },
  2827. keyHandler = function(e){
  2828. var key = e.which || e.keyCode,
  2829. activeItem = DOC.activeElement,
  2830. idx = menuItems[indexOf](activeItem),
  2831. isSameElement = activeItem === element,
  2832. isInsideMenu = menu[contains](activeItem),
  2833. isMenuItem = activeItem[parentNode] === menu || activeItem[parentNode][parentNode] === menu;
  2834. if ( isMenuItem || isSameElement ) { // navigate up | down
  2835. idx = isSameElement ? 0
  2836. : key === 38 ? (idx>1?idx-1:0)
  2837. : key === 40 ? (idx<menuItems[length]-1?idx+1:idx) : idx;
  2838. menuItems[idx] && setFocus(menuItems[idx]);
  2839. }
  2840. if ( (menuItems[length] && isMenuItem // menu has items
  2841. || !menuItems[length] && (isInsideMenu || isSameElement) // menu might be a form
  2842. || !isInsideMenu ) // or the focused element is not in the menu at all
  2843. && element[open] && key === 27 // menu must be open
  2844. ) {
  2845. self.toggle();
  2846. relatedTarget = null;
  2847. }
  2848. },
  2849. // private methods
  2850. show = function() {
  2851. bootstrapCustomEvent.call(parent, showEvent, component, relatedTarget);
  2852. addClass(menu,showClass);
  2853. addClass(parent,showClass);
  2854. menu[setAttribute](ariaExpanded,true);
  2855. bootstrapCustomEvent.call(parent, shownEvent, component, relatedTarget);
  2856. element[open] = true;
  2857. off(element, clickEvent, clickHandler);
  2858. setTimeout(function(){
  2859. setFocus( menu[getElementsByTagName]('INPUT')[0] || element ); // focus the first input item | element
  2860. toggleDismiss();
  2861. },1);
  2862. },
  2863. hide = function() {
  2864. bootstrapCustomEvent.call(parent, hideEvent, component, relatedTarget);
  2865. removeClass(menu,showClass);
  2866. removeClass(parent,showClass);
  2867. menu[setAttribute](ariaExpanded,false);
  2868. bootstrapCustomEvent.call(parent, hiddenEvent, component, relatedTarget);
  2869. element[open] = false;
  2870. toggleDismiss();
  2871. setFocus(element);
  2872. setTimeout(function(){ on(element, clickEvent, clickHandler); },1);
  2873. };
  2874. // set initial state to closed
  2875. element[open] = false;
  2876. // public methods
  2877. this.toggle = function() {
  2878. if (hasClass(parent,showClass) && element[open]) { hide(); }
  2879. else { show(); }
  2880. };
  2881. // init
  2882. if ( !(stringDropdown in element) ) { // prevent adding event handlers twice
  2883. !tabindex in menu && menu[setAttribute](tabindex, '0'); // Fix onblur on Chrome | Safari
  2884. on(element, clickEvent, clickHandler);
  2885. }
  2886. element[stringDropdown] = self;
  2887. };
  2888. // DROPDOWN DATA API
  2889. // =================
  2890. supports[push]( [stringDropdown, Dropdown, '['+dataToggle+'="dropdown"]'] );
  2891. /* Native Javascript for Bootstrap 4 | Modal
  2892. -------------------------------------------*/
  2893. // MODAL DEFINITION
  2894. // ===============
  2895. var Modal = function(element, options) { // element can be the modal/triggering button
  2896. // the modal (both JavaScript / DATA API init) / triggering button element (DATA API)
  2897. element = queryElement(element);
  2898. // determine modal, triggering element
  2899. var btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),
  2900. checkModal = queryElement( btnCheck ),
  2901. modal = hasClass(element,'modal') ? element : checkModal,
  2902. overlayDelay,
  2903. // strings
  2904. component = 'modal',
  2905. staticString = 'static',
  2906. paddingLeft = 'paddingLeft',
  2907. paddingRight = 'paddingRight',
  2908. modalBackdropString = 'modal-backdrop';
  2909. if ( hasClass(element,'modal') ) { element = null; } // modal is now independent of it's triggering element
  2910. if ( !modal ) { return; } // invalidate
  2911. // set options
  2912. options = options || {};
  2913. this[keyboard] = options[keyboard] === false || modal[getAttribute](dataKeyboard) === 'false' ? false : true;
  2914. this[backdrop] = options[backdrop] === staticString || modal[getAttribute](databackdrop) === staticString ? staticString : true;
  2915. this[backdrop] = options[backdrop] === false || modal[getAttribute](databackdrop) === 'false' ? false : this[backdrop];
  2916. this[content] = options[content]; // JavaScript only
  2917. // bind, constants, event targets and other vars
  2918. var self = this, relatedTarget = null,
  2919. bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay,
  2920. // also find fixed-top / fixed-bottom items
  2921. fixedItems = getElementsByClassName(HTML,fixedTop).concat(getElementsByClassName(HTML,fixedBottom)),
  2922. // private methods
  2923. getWindowWidth = function() {
  2924. var htmlRect = HTML[getBoundingClientRect]();
  2925. return globalObject[innerWidth] || (htmlRect[right] - Math.abs(htmlRect[left]));
  2926. },
  2927. setScrollbar = function () {
  2928. var bodyStyle = globalObject[getComputedStyle](DOC[body]),
  2929. bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
  2930. if (bodyIsOverflowing) {
  2931. DOC[body][style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
  2932. if (fixedItems[length]){
  2933. for (var i = 0; i < fixedItems[length]; i++) {
  2934. itemPad = globalObject[getComputedStyle](fixedItems[i])[paddingRight];
  2935. fixedItems[i][style][paddingRight] = ( parseInt(itemPad) + scrollbarWidth) + 'px';
  2936. }
  2937. }
  2938. }
  2939. },
  2940. resetScrollbar = function () {
  2941. DOC[body][style][paddingRight] = '';
  2942. if (fixedItems[length]){
  2943. for (var i = 0; i < fixedItems[length]; i++) {
  2944. fixedItems[i][style][paddingRight] = '';
  2945. }
  2946. }
  2947. },
  2948. measureScrollbar = function () { // thx walsh
  2949. var scrollDiv = DOC[createElement]('div'), scrollBarWidth;
  2950. scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
  2951. DOC[body][appendChild](scrollDiv);
  2952. scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];
  2953. DOC[body].removeChild(scrollDiv);
  2954. return scrollBarWidth;
  2955. },
  2956. checkScrollbar = function () {
  2957. bodyIsOverflowing = DOC[body][clientWidth] < getWindowWidth();
  2958. modalIsOverflowing = modal[scrollHeight] > HTML[clientHeight];
  2959. scrollbarWidth = measureScrollbar();
  2960. },
  2961. adjustDialog = function () {
  2962. modal[style][paddingLeft] = !bodyIsOverflowing && modalIsOverflowing ? scrollbarWidth + 'px' : '';
  2963. modal[style][paddingRight] = bodyIsOverflowing && !modalIsOverflowing ? scrollbarWidth + 'px' : '';
  2964. },
  2965. resetAdjustments = function () {
  2966. modal[style][paddingLeft] = '';
  2967. modal[style][paddingRight] = '';
  2968. },
  2969. createOverlay = function() {
  2970. modalOverlay = 1;
  2971. var newOverlay = DOC[createElement]('div');
  2972. overlay = queryElement('.'+modalBackdropString);
  2973. if ( overlay === null ) {
  2974. newOverlay[setAttribute]('class',modalBackdropString+' fade');
  2975. overlay = newOverlay;
  2976. DOC[body][appendChild](overlay);
  2977. }
  2978. },
  2979. removeOverlay = function() {
  2980. overlay = queryElement('.'+modalBackdropString);
  2981. if ( overlay && overlay !== null && typeof overlay === 'object' ) {
  2982. modalOverlay = 0;
  2983. DOC[body].removeChild(overlay); overlay = null;
  2984. }
  2985. bootstrapCustomEvent.call(modal, hiddenEvent, component);
  2986. },
  2987. keydownHandlerToggle = function() {
  2988. if (hasClass(modal,showClass)) {
  2989. on(DOC, keydownEvent, keyHandler);
  2990. } else {
  2991. off(DOC, keydownEvent, keyHandler);
  2992. }
  2993. },
  2994. resizeHandlerToggle = function() {
  2995. if (hasClass(modal,showClass)) {
  2996. on(globalObject, resizeEvent, self.update);
  2997. } else {
  2998. off(globalObject, resizeEvent, self.update);
  2999. }
  3000. },
  3001. dismissHandlerToggle = function() {
  3002. if (hasClass(modal,showClass)) {
  3003. on(modal, clickEvent, dismissHandler);
  3004. } else {
  3005. off(modal, clickEvent, dismissHandler);
  3006. }
  3007. },
  3008. // triggers
  3009. triggerShow = function() {
  3010. setFocus(modal);
  3011. bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);
  3012. },
  3013. triggerHide = function() {
  3014. modal[style].display = '';
  3015. element && (setFocus(element));
  3016. (function(){
  3017. if (!getElementsByClassName(DOC,component+' '+showClass)[0]) {
  3018. resetAdjustments();
  3019. resetScrollbar();
  3020. removeClass(DOC[body],component+'-open');
  3021. overlay && hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay))
  3022. : removeOverlay();
  3023. resizeHandlerToggle();
  3024. dismissHandlerToggle();
  3025. keydownHandlerToggle();
  3026. }
  3027. }());
  3028. },
  3029. // handlers
  3030. clickHandler = function(e) {
  3031. var clickTarget = e[target];
  3032. clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];
  3033. if ( clickTarget === element && !hasClass(modal,showClass) ) {
  3034. modal.modalTrigger = element;
  3035. relatedTarget = element;
  3036. self.show();
  3037. e[preventDefault]();
  3038. }
  3039. },
  3040. keyHandler = function(e) {
  3041. if (self[keyboard] && e.which == 27 && hasClass(modal,showClass)) {
  3042. self.hide();
  3043. }
  3044. },
  3045. dismissHandler = function(e) {
  3046. var clickTarget = e[target];
  3047. if ( hasClass(modal,showClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
  3048. || clickTarget[getAttribute](dataDismiss) === component
  3049. || (clickTarget === modal && self[backdrop] !== staticString) ) ) {
  3050. self.hide(); relatedTarget = null;
  3051. e[preventDefault]();
  3052. }
  3053. };
  3054. // public methods
  3055. this.toggle = function() {
  3056. if ( hasClass(modal,showClass) ) {this.hide();} else {this.show();}
  3057. };
  3058. this.show = function() {
  3059. bootstrapCustomEvent.call(modal, showEvent, component, relatedTarget);
  3060. // we elegantly hide any opened modal
  3061. var currentOpen = getElementsByClassName(DOC,component+' '+showClass)[0];
  3062. currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();
  3063. if ( this[backdrop] ) {
  3064. !modalOverlay && createOverlay();
  3065. }
  3066. if ( overlay && modalOverlay && !hasClass(overlay,showClass)) {
  3067. overlay[offsetWidth]; // force reflow to enable trasition
  3068. overlayDelay = getTransitionDurationFromElement(overlay);
  3069. addClass(overlay, showClass);
  3070. }
  3071. setTimeout( function() {
  3072. modal[style].display = 'block';
  3073. checkScrollbar();
  3074. setScrollbar();
  3075. adjustDialog();
  3076. addClass(DOC[body],component+'-open');
  3077. addClass(modal,showClass);
  3078. modal[setAttribute](ariaHidden, false);
  3079. resizeHandlerToggle();
  3080. dismissHandlerToggle();
  3081. keydownHandlerToggle();
  3082. hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
  3083. }, supportTransitions && overlay ? overlayDelay : 0);
  3084. };
  3085. this.hide = function() {
  3086. bootstrapCustomEvent.call(modal, hideEvent, component);
  3087. overlay = queryElement('.'+modalBackdropString);
  3088. overlayDelay = overlay && getTransitionDurationFromElement(overlay);
  3089. removeClass(modal,showClass);
  3090. modal[setAttribute](ariaHidden, true);
  3091. setTimeout(function(){
  3092. hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
  3093. }, supportTransitions && overlay ? overlayDelay : 0);
  3094. };
  3095. this.setContent = function( content ) {
  3096. queryElement('.'+component+'-content',modal)[innerHTML] = content;
  3097. };
  3098. this.update = function() {
  3099. if (hasClass(modal,showClass)) {
  3100. checkScrollbar();
  3101. setScrollbar();
  3102. adjustDialog();
  3103. }
  3104. };
  3105. // init
  3106. // prevent adding event handlers over and over
  3107. // modal is independent of a triggering element
  3108. if ( !!element && !(stringModal in element) ) {
  3109. on(element, clickEvent, clickHandler);
  3110. }
  3111. if ( !!self[content] ) { self.setContent( self[content] ); }
  3112. !!element && (element[stringModal] = self);
  3113. };
  3114. // DATA API
  3115. supports[push]( [ stringModal, Modal, '['+dataToggle+'="modal"]' ] );
  3116. /* Native Javascript for Bootstrap 4 | Popover
  3117. ----------------------------------------------*/
  3118. // POPOVER DEFINITION
  3119. // ==================
  3120. var Popover = function( element, options ) {
  3121. // initialization element
  3122. element = queryElement(element);
  3123. // set options
  3124. options = options || {};
  3125. // DATA API
  3126. var triggerData = element[getAttribute](dataTrigger), // click / hover / focus
  3127. animationData = element[getAttribute](dataAnimation), // true / false
  3128. placementData = element[getAttribute](dataPlacement),
  3129. dismissibleData = element[getAttribute](dataDismissible),
  3130. delayData = element[getAttribute](dataDelay),
  3131. containerData = element[getAttribute](dataContainer),
  3132. // internal strings
  3133. component = 'popover',
  3134. template = 'template',
  3135. trigger = 'trigger',
  3136. classString = 'class',
  3137. div = 'div',
  3138. fade = 'fade',
  3139. content = 'content',
  3140. dataContent = 'data-content',
  3141. dismissible = 'dismissible',
  3142. closeBtn = '<button type="button" class="close">×</button>',
  3143. // check container
  3144. containerElement = queryElement(options[container]),
  3145. containerDataElement = queryElement(containerData),
  3146. // maybe the element is inside a modal
  3147. modal = getClosest(element,'.modal'),
  3148. // maybe the element is inside a fixed navbar
  3149. navbarFixedTop = getClosest(element,'.'+fixedTop),
  3150. navbarFixedBottom = getClosest(element,'.'+fixedBottom);
  3151. // set instance options
  3152. this[template] = options[template] ? options[template] : null; // JavaScript only
  3153. this[trigger] = options[trigger] ? options[trigger] : triggerData || hoverEvent;
  3154. this[animation] = options[animation] && options[animation] !== fade ? options[animation] : animationData || fade;
  3155. this[placement] = options[placement] ? options[placement] : placementData || top;
  3156. this[delay] = parseInt(options[delay] || delayData) || 200;
  3157. this[dismissible] = options[dismissible] || dismissibleData === 'true' ? true : false;
  3158. this[container] = containerElement ? containerElement
  3159. : containerDataElement ? containerDataElement
  3160. : navbarFixedTop ? navbarFixedTop
  3161. : navbarFixedBottom ? navbarFixedBottom
  3162. : modal ? modal : DOC[body];
  3163. // bind, content
  3164. var self = this,
  3165. titleString = element[getAttribute](dataTitle) || null,
  3166. contentString = element[getAttribute](dataContent) || null;
  3167. if ( !contentString && !this[template] ) return; // invalidate
  3168. // constants, vars
  3169. var popover = null, timer = 0, placementSetting = this[placement],
  3170. // handlers
  3171. dismissibleHandler = function(e) {
  3172. if (popover !== null && e[target] === queryElement('.close',popover)) {
  3173. self.hide();
  3174. }
  3175. },
  3176. // private methods
  3177. removePopover = function() {
  3178. self[container].removeChild(popover);
  3179. timer = null; popover = null;
  3180. },
  3181. createPopover = function() {
  3182. titleString = element[getAttribute](dataTitle); // check content again
  3183. contentString = element[getAttribute](dataContent);
  3184. popover = DOC[createElement](div);
  3185. // popover arrow
  3186. var popoverArrow = DOC[createElement](div);
  3187. popoverArrow[setAttribute](classString,'arrow');
  3188. popover[appendChild](popoverArrow);
  3189. if ( contentString !== null && self[template] === null ) { //create the popover from data attributes
  3190. popover[setAttribute]('role','tooltip');
  3191. if (titleString !== null) {
  3192. var popoverTitle = DOC[createElement]('h3');
  3193. popoverTitle[setAttribute](classString,component+'-header');
  3194. popoverTitle[innerHTML] = self[dismissible] ? titleString + closeBtn : titleString;
  3195. popover[appendChild](popoverTitle);
  3196. }
  3197. //set popover content
  3198. var popoverContent = DOC[createElement](div);
  3199. popoverContent[setAttribute](classString,component+'-body');
  3200. popoverContent[innerHTML] = self[dismissible] && titleString === null ? contentString + closeBtn : contentString;
  3201. popover[appendChild](popoverContent);
  3202. } else { // or create the popover from template
  3203. var popoverTemplate = DOC[createElement](div);
  3204. popoverTemplate[innerHTML] = self[template];
  3205. popover[innerHTML] = popoverTemplate.firstChild[innerHTML];
  3206. }
  3207. //append to the container
  3208. self[container][appendChild](popover);
  3209. popover[style].display = 'block';
  3210. popover[setAttribute](classString, component+ ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);
  3211. },
  3212. showPopover = function () {
  3213. !hasClass(popover,showClass) && ( addClass(popover,showClass) );
  3214. },
  3215. updatePopover = function() {
  3216. styleTip(element,popover,placementSetting,self[container]);
  3217. },
  3218. // event toggle
  3219. dismissHandlerToggle = function(type){
  3220. if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
  3221. !self[dismissible] && type( element, 'blur', self.hide );
  3222. }
  3223. self[dismissible] && type( DOC, clickEvent, dismissibleHandler );
  3224. type( globalObject, resizeEvent, self.hide );
  3225. },
  3226. // triggers
  3227. showTrigger = function() {
  3228. dismissHandlerToggle(on);
  3229. bootstrapCustomEvent.call(element, shownEvent, component);
  3230. },
  3231. hideTrigger = function() {
  3232. dismissHandlerToggle(off);
  3233. removePopover();
  3234. bootstrapCustomEvent.call(element, hiddenEvent, component);
  3235. };
  3236. // public methods / handlers
  3237. this.toggle = function() {
  3238. if (popover === null) { self.show(); }
  3239. else { self.hide(); }
  3240. };
  3241. this.show = function() {
  3242. clearTimeout(timer);
  3243. timer = setTimeout( function() {
  3244. if (popover === null) {
  3245. placementSetting = self[placement]; // we reset placement in all cases
  3246. createPopover();
  3247. updatePopover();
  3248. showPopover();
  3249. bootstrapCustomEvent.call(element, showEvent, component);
  3250. !!self[animation] ? emulateTransitionEnd(popover, showTrigger) : showTrigger();
  3251. }
  3252. }, 20 );
  3253. };
  3254. this.hide = function() {
  3255. clearTimeout(timer);
  3256. timer = setTimeout( function() {
  3257. if (popover && popover !== null && hasClass(popover,showClass)) {
  3258. bootstrapCustomEvent.call(element, hideEvent, component);
  3259. removeClass(popover,showClass);
  3260. !!self[animation] ? emulateTransitionEnd(popover, hideTrigger) : hideTrigger();
  3261. }
  3262. }, self[delay] );
  3263. };
  3264. // init
  3265. if ( !(stringPopover in element) ) { // prevent adding event handlers twice
  3266. if (self[trigger] === hoverEvent) {
  3267. on( element, mouseHover[0], self.show );
  3268. if (!self[dismissible]) { on( element, mouseHover[1], self.hide ); }
  3269. } else if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
  3270. on( element, self[trigger], self.toggle );
  3271. }
  3272. }
  3273. element[stringPopover] = self;
  3274. };
  3275. // POPOVER DATA API
  3276. // ================
  3277. supports[push]( [ stringPopover, Popover, '['+dataToggle+'="popover"]' ] );
  3278. /* Native Javascript for Bootstrap 4 | ScrollSpy
  3279. -----------------------------------------------*/
  3280. // SCROLLSPY DEFINITION
  3281. // ====================
  3282. var ScrollSpy = function(element, options) {
  3283. // initialization element, the element we spy on
  3284. element = queryElement(element);
  3285. // DATA API
  3286. var targetData = queryElement(element[getAttribute](dataTarget)),
  3287. offsetData = element[getAttribute]('data-offset');
  3288. // set options
  3289. options = options || {};
  3290. if ( !options[target] && !targetData ) { return; } // invalidate
  3291. // event targets, constants
  3292. var self = this, spyTarget = options[target] && queryElement(options[target]) || targetData,
  3293. links = spyTarget && spyTarget[getElementsByTagName]('A'),
  3294. offset = parseInt(offsetData || options['offset']) || 10,
  3295. items = [], targetItems = [], scrollOffset,
  3296. scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget
  3297. isWindow = scrollTarget === globalObject;
  3298. // populate items and targets
  3299. for (var i=0, il=links[length]; i<il; i++) {
  3300. var href = links[i][getAttribute]('href'),
  3301. targetItem = href && href.charAt(0) === '#' && href.slice(-1) !== '#' && queryElement(href);
  3302. if ( !!targetItem ) {
  3303. items[push](links[i]);
  3304. targetItems[push](targetItem);
  3305. }
  3306. }
  3307. // private methods
  3308. var updateItem = function(index) {
  3309. var item = items[index],
  3310. targetItem = targetItems[index], // the menu item targets this element
  3311. dropdown = item[parentNode][parentNode],
  3312. dropdownLink = hasClass(dropdown,'dropdown') && dropdown[getElementsByTagName]('A')[0],
  3313. targetRect = isWindow && targetItem[getBoundingClientRect](),
  3314. isActive = hasClass(item,active) || false,
  3315. topEdge = (isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop]) - offset,
  3316. bottomEdge = isWindow ? targetRect[bottom] + scrollOffset - offset : targetItems[index+1] ? targetItems[index+1][offsetTop] - offset : element[scrollHeight],
  3317. inside = scrollOffset >= topEdge && bottomEdge > scrollOffset;
  3318. if ( !isActive && inside ) {
  3319. if ( !hasClass(item,active) ) {
  3320. addClass(item,active);
  3321. if (dropdownLink && !hasClass(dropdownLink,active) ) {
  3322. addClass(dropdownLink,active);
  3323. }
  3324. bootstrapCustomEvent.call(element, 'activate', 'scrollspy', items[index]);
  3325. }
  3326. } else if ( !inside ) {
  3327. if ( hasClass(item,active) ) {
  3328. removeClass(item,active);
  3329. if (dropdownLink && hasClass(dropdownLink,active) && !getElementsByClassName(item[parentNode],active).length ) {
  3330. removeClass(dropdownLink,active);
  3331. }
  3332. }
  3333. } else if ( !inside && !isActive || isActive && inside ) {
  3334. return;
  3335. }
  3336. },
  3337. updateItems = function(){
  3338. scrollOffset = isWindow ? getScroll().y : element[scrollTop];
  3339. for (var index=0, itl=items[length]; index<itl; index++) {
  3340. updateItem(index)
  3341. }
  3342. };
  3343. // public method
  3344. this.refresh = function () {
  3345. updateItems();
  3346. }
  3347. // init
  3348. if ( !(stringScrollSpy in element) ) { // prevent adding event handlers twice
  3349. on( scrollTarget, scrollEvent, self.refresh );
  3350. on( globalObject, resizeEvent, self.refresh );
  3351. }
  3352. self.refresh();
  3353. element[stringScrollSpy] = self;
  3354. };
  3355. // SCROLLSPY DATA API
  3356. // ==================
  3357. supports[push]( [ stringScrollSpy, ScrollSpy, '['+dataSpy+'="scroll"]' ] );
  3358. /* Native Javascript for Bootstrap 4 | Tab
  3359. -----------------------------------------*/
  3360. // TAB DEFINITION
  3361. // ==============
  3362. var Tab = function( element, options ) {
  3363. // initialization element
  3364. element = queryElement(element);
  3365. // DATA API
  3366. var heightData = element[getAttribute](dataHeight),
  3367. // strings
  3368. component = 'tab', height = 'height', float = 'float', isAnimating = 'isAnimating';
  3369. // set options
  3370. options = options || {};
  3371. this[height] = supportTransitions ? (options[height] || heightData === 'true') : false;
  3372. // bind, event targets
  3373. var self = this, next,
  3374. tabs = getClosest(element,'.nav'),
  3375. tabsContentContainer = false,
  3376. dropdown = tabs && queryElement('.dropdown-toggle',tabs),
  3377. activeTab, activeContent, nextContent, containerHeight, equalContents, nextHeight,
  3378. // trigger
  3379. triggerEnd = function(){
  3380. tabsContentContainer[style][height] = '';
  3381. removeClass(tabsContentContainer,collapsing);
  3382. tabs[isAnimating] = false;
  3383. },
  3384. triggerShow = function() {
  3385. if (tabsContentContainer) { // height animation
  3386. if ( equalContents ) {
  3387. triggerEnd();
  3388. } else {
  3389. setTimeout(function(){ // enables height animation
  3390. tabsContentContainer[style][height] = nextHeight + 'px'; // height animation
  3391. tabsContentContainer[offsetWidth];
  3392. emulateTransitionEnd(tabsContentContainer, triggerEnd);
  3393. },50);
  3394. }
  3395. } else {
  3396. tabs[isAnimating] = false;
  3397. }
  3398. bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
  3399. },
  3400. triggerHide = function() {
  3401. if (tabsContentContainer) {
  3402. activeContent[style][float] = left;
  3403. nextContent[style][float] = left;
  3404. containerHeight = activeContent[scrollHeight];
  3405. }
  3406. addClass(nextContent,active);
  3407. bootstrapCustomEvent.call(next, showEvent, component, activeTab);
  3408. removeClass(activeContent,active);
  3409. bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
  3410. if (tabsContentContainer) {
  3411. nextHeight = nextContent[scrollHeight];
  3412. equalContents = nextHeight === containerHeight;
  3413. addClass(tabsContentContainer,collapsing);
  3414. tabsContentContainer[style][height] = containerHeight + 'px'; // height animation
  3415. tabsContentContainer[offsetHeight];
  3416. activeContent[style][float] = '';
  3417. nextContent[style][float] = '';
  3418. }
  3419. if ( hasClass(nextContent, 'fade') ) {
  3420. setTimeout(function(){
  3421. addClass(nextContent,showClass);
  3422. emulateTransitionEnd(nextContent,triggerShow);
  3423. },20);
  3424. } else { triggerShow(); }
  3425. };
  3426. if (!tabs) return; // invalidate
  3427. // set default animation state
  3428. tabs[isAnimating] = false;
  3429. // private methods
  3430. var getActiveTab = function() {
  3431. var activeTabs = getElementsByClassName(tabs,active), activeTab;
  3432. if ( activeTabs[length] === 1 && !hasClass(activeTabs[0][parentNode],'dropdown') ) {
  3433. activeTab = activeTabs[0];
  3434. } else if ( activeTabs[length] > 1 ) {
  3435. activeTab = activeTabs[activeTabs[length]-1];
  3436. }
  3437. return activeTab;
  3438. },
  3439. getActiveContent = function() {
  3440. return queryElement(getActiveTab()[getAttribute]('href'));
  3441. },
  3442. // handler
  3443. clickHandler = function(e) {
  3444. var href = e[target][getAttribute]('href');
  3445. e[preventDefault]();
  3446. next = e[target][getAttribute](dataToggle) === component || (href && href.charAt(0) === '#')
  3447. ? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler
  3448. !tabs[isAnimating] && !hasClass(next,active) && self.show();
  3449. };
  3450. // public method
  3451. this.show = function() { // the tab we clicked is now the next tab
  3452. next = next || element;
  3453. nextContent = queryElement(next[getAttribute]('href')); //this is the actual object, the next tab content to activate
  3454. activeTab = getActiveTab();
  3455. activeContent = getActiveContent();
  3456. tabs[isAnimating] = true;
  3457. removeClass(activeTab,active);
  3458. addClass(next,active);
  3459. if ( dropdown ) {
  3460. if ( !hasClass(element[parentNode],'dropdown-menu') ) {
  3461. if (hasClass(dropdown,active)) removeClass(dropdown,active);
  3462. } else {
  3463. if (!hasClass(dropdown,active)) addClass(dropdown,active);
  3464. }
  3465. }
  3466. bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
  3467. if (hasClass(activeContent, 'fade')) {
  3468. removeClass(activeContent,showClass);
  3469. emulateTransitionEnd(activeContent, triggerHide);
  3470. } else { triggerHide(); }
  3471. };
  3472. // init
  3473. if ( !(stringTab in element) ) { // prevent adding event handlers twice
  3474. on(element, clickEvent, clickHandler);
  3475. }
  3476. if (self[height]) { tabsContentContainer = getActiveContent()[parentNode]; }
  3477. element[stringTab] = self;
  3478. };
  3479. // TAB DATA API
  3480. // ============
  3481. supports[push]( [ stringTab, Tab, '['+dataToggle+'="tab"]' ] );
  3482. /* Native Javascript for Bootstrap 4 | Tooltip
  3483. ---------------------------------------------*/
  3484. // TOOLTIP DEFINITION
  3485. // ==================
  3486. var Tooltip = function( element,options ) {
  3487. // initialization element
  3488. element = queryElement(element);
  3489. // set options
  3490. options = options || {};
  3491. // DATA API
  3492. var animationData = element[getAttribute](dataAnimation),
  3493. placementData = element[getAttribute](dataPlacement),
  3494. delayData = element[getAttribute](dataDelay),
  3495. containerData = element[getAttribute](dataContainer),
  3496. // strings
  3497. component = 'tooltip',
  3498. classString = 'class',
  3499. title = 'title',
  3500. fade = 'fade',
  3501. div = 'div',
  3502. // check container
  3503. containerElement = queryElement(options[container]),
  3504. containerDataElement = queryElement(containerData),
  3505. // maybe the element is inside a modal
  3506. modal = getClosest(element,'.modal'),
  3507. // maybe the element is inside a fixed navbar
  3508. navbarFixedTop = getClosest(element,'.'+fixedTop),
  3509. navbarFixedBottom = getClosest(element,'.'+fixedBottom);
  3510. // set instance options
  3511. this[animation] = options[animation] && options[animation] !== fade ? options[animation] : animationData || fade;
  3512. this[placement] = options[placement] ? options[placement] : placementData || top;
  3513. this[delay] = parseInt(options[delay] || delayData) || 200;
  3514. this[container] = containerElement ? containerElement
  3515. : containerDataElement ? containerDataElement
  3516. : navbarFixedTop ? navbarFixedTop
  3517. : navbarFixedBottom ? navbarFixedBottom
  3518. : modal ? modal : DOC[body];
  3519. // bind, event targets, title and constants
  3520. var self = this, timer = 0, placementSetting = this[placement], tooltip = null,
  3521. titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);
  3522. if ( !titleString || titleString == "" ) return; // invalidate
  3523. // private methods
  3524. var removeToolTip = function() {
  3525. self[container].removeChild(tooltip);
  3526. tooltip = null; timer = null;
  3527. },
  3528. createToolTip = function() {
  3529. titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle); // read the title again
  3530. if ( !titleString || titleString == "" ) return false; // invalidate
  3531. tooltip = DOC[createElement](div);
  3532. tooltip[setAttribute]('role',component);
  3533. // tooltip arrow
  3534. var tooltipArrow = DOC[createElement](div);
  3535. tooltipArrow[setAttribute](classString,'arrow');
  3536. tooltip[appendChild](tooltipArrow);
  3537. var tooltipInner = DOC[createElement](div);
  3538. tooltipInner[setAttribute](classString,component+'-inner');
  3539. tooltip[appendChild](tooltipInner);
  3540. tooltipInner[innerHTML] = titleString;
  3541. self[container][appendChild](tooltip);
  3542. tooltip[setAttribute](classString, component + ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);
  3543. },
  3544. updateTooltip = function () {
  3545. styleTip(element,tooltip,placementSetting,self[container]);
  3546. },
  3547. showTooltip = function () {
  3548. !hasClass(tooltip,showClass) && ( addClass(tooltip,showClass) );
  3549. },
  3550. // triggers
  3551. showTrigger = function() {
  3552. on( globalObject, resizeEvent, self.hide );
  3553. bootstrapCustomEvent.call(element, shownEvent, component);
  3554. },
  3555. hideTrigger = function() {
  3556. off( globalObject, resizeEvent, self.hide );
  3557. removeToolTip();
  3558. bootstrapCustomEvent.call(element, hiddenEvent, component);
  3559. };
  3560. // public methods
  3561. this.show = function() {
  3562. clearTimeout(timer);
  3563. timer = setTimeout( function() {
  3564. if (tooltip === null) {
  3565. placementSetting = self[placement]; // we reset placement in all cases
  3566. if(createToolTip() == false) return;
  3567. updateTooltip();
  3568. showTooltip();
  3569. bootstrapCustomEvent.call(element, showEvent, component);
  3570. !!self[animation] ? emulateTransitionEnd(tooltip, showTrigger) : showTrigger();
  3571. }
  3572. }, 20 );
  3573. };
  3574. this.hide = function() {
  3575. clearTimeout(timer);
  3576. timer = setTimeout( function() {
  3577. if (tooltip && hasClass(tooltip,showClass)) {
  3578. bootstrapCustomEvent.call(element, hideEvent, component);
  3579. removeClass(tooltip,showClass);
  3580. !!self[animation] ? emulateTransitionEnd(tooltip, hideTrigger) : hideTrigger();
  3581. }
  3582. }, self[delay]);
  3583. };
  3584. this.toggle = function() {
  3585. if (!tooltip) { self.show(); }
  3586. else { self.hide(); }
  3587. };
  3588. // init
  3589. if ( !(stringTooltip in element) ) { // prevent adding event handlers twice
  3590. element[setAttribute](dataOriginalTitle,titleString);
  3591. element.removeAttribute(title);
  3592. on(element, mouseHover[0], self.show);
  3593. on(element, mouseHover[1], self.hide);
  3594. }
  3595. element[stringTooltip] = self;
  3596. };
  3597. // TOOLTIP DATA API
  3598. // =================
  3599. supports[push]( [ stringTooltip, Tooltip, '['+dataToggle+'="tooltip"]' ] );
  3600. /* Native Javascript for Bootstrap 4 | Initialize Data API
  3601. --------------------------------------------------------*/
  3602. var initializeDataAPI = function( constructor, collection ){
  3603. for (var i=0, l=collection[length]; i<l; i++) {
  3604. new constructor(collection[i]);
  3605. }
  3606. },
  3607. initCallback = BSN.initCallback = function(lookUp){
  3608. lookUp = lookUp || DOC;
  3609. for (var i=0, l=supports[length]; i<l; i++) {
  3610. initializeDataAPI( supports[i][1], lookUp[querySelectorAll] (supports[i][2]) );
  3611. }
  3612. };
  3613. // bulk initialize all components
  3614. DOC[body] ? initCallback() : on( DOC, 'DOMContentLoaded', function(){ initCallback(); } );
  3615. return {
  3616. Alert: Alert,
  3617. Button: Button,
  3618. Carousel: Carousel,
  3619. Collapse: Collapse,
  3620. Dropdown: Dropdown,
  3621. Modal: Modal,
  3622. Popover: Popover,
  3623. ScrollSpy: ScrollSpy,
  3624. Tab: Tab,
  3625. Tooltip: Tooltip
  3626. };
  3627. }));
  3628. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  3629. /***/ }),
  3630. /***/ "./node_modules/fast-text-encoding/text.js":
  3631. /*!*************************************************!*\
  3632. !*** ./node_modules/fast-text-encoding/text.js ***!
  3633. \*************************************************/
  3634. /*! no static exports found */
  3635. /***/ (function(module, exports, __webpack_require__) {
  3636. /* WEBPACK VAR INJECTION */(function(global) {/*
  3637. * Copyright 2017 Sam Thorogood. All rights reserved.
  3638. *
  3639. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  3640. * use this file except in compliance with the License. You may obtain a copy of
  3641. * the License at
  3642. *
  3643. * http://www.apache.org/licenses/LICENSE-2.0
  3644. *
  3645. * Unless required by applicable law or agreed to in writing, software
  3646. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  3647. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  3648. * License for the specific language governing permissions and limitations under
  3649. * the License.
  3650. */
  3651. /**
  3652. * @fileoverview Polyfill for TextEncoder and TextDecoder.
  3653. *
  3654. * You probably want `text.min.js`, and not this file directly.
  3655. */
  3656. (function(scope) {
  3657. 'use strict';
  3658. // fail early
  3659. if (scope['TextEncoder'] && scope['TextDecoder']) {
  3660. return false;
  3661. }
  3662. /**
  3663. * @constructor
  3664. * @param {string=} utfLabel
  3665. */
  3666. function FastTextEncoder(utfLabel='utf-8') {
  3667. if (utfLabel !== 'utf-8') {
  3668. throw new RangeError(
  3669. `Failed to construct 'TextEncoder': The encoding label provided ('${utfLabel}') is invalid.`);
  3670. }
  3671. }
  3672. Object.defineProperty(FastTextEncoder.prototype, 'encoding', {value: 'utf-8'});
  3673. /**
  3674. * @param {string} string
  3675. * @param {{stream: boolean}=} options
  3676. * @return {!Uint8Array}
  3677. */
  3678. FastTextEncoder.prototype.encode = function(string, options={stream: false}) {
  3679. if (options.stream) {
  3680. throw new Error(`Failed to encode: the 'stream' option is unsupported.`);
  3681. }
  3682. let pos = 0;
  3683. const len = string.length;
  3684. const out = [];
  3685. let at = 0; // output position
  3686. let tlen = Math.max(32, len + (len >> 1) + 7); // 1.5x size
  3687. let target = new Uint8Array((tlen >> 3) << 3); // ... but at 8 byte offset
  3688. while (pos < len) {
  3689. let value = string.charCodeAt(pos++);
  3690. if (value >= 0xd800 && value <= 0xdbff) {
  3691. // high surrogate
  3692. if (pos < len) {
  3693. const extra = string.charCodeAt(pos);
  3694. if ((extra & 0xfc00) === 0xdc00) {
  3695. ++pos;
  3696. value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;
  3697. }
  3698. }
  3699. if (value >= 0xd800 && value <= 0xdbff) {
  3700. continue; // drop lone surrogate
  3701. }
  3702. }
  3703. // expand the buffer if we couldn't write 4 bytes
  3704. if (at + 4 > target.length) {
  3705. tlen += 8; // minimum extra
  3706. tlen *= (1.0 + (pos / string.length) * 2); // take 2x the remaining
  3707. tlen = (tlen >> 3) << 3; // 8 byte offset
  3708. const update = new Uint8Array(tlen);
  3709. update.set(target);
  3710. target = update;
  3711. }
  3712. if ((value & 0xffffff80) === 0) { // 1-byte
  3713. target[at++] = value; // ASCII
  3714. continue;
  3715. } else if ((value & 0xfffff800) === 0) { // 2-byte
  3716. target[at++] = ((value >> 6) & 0x1f) | 0xc0;
  3717. } else if ((value & 0xffff0000) === 0) { // 3-byte
  3718. target[at++] = ((value >> 12) & 0x0f) | 0xe0;
  3719. target[at++] = ((value >> 6) & 0x3f) | 0x80;
  3720. } else if ((value & 0xffe00000) === 0) { // 4-byte
  3721. target[at++] = ((value >> 18) & 0x07) | 0xf0;
  3722. target[at++] = ((value >> 12) & 0x3f) | 0x80;
  3723. target[at++] = ((value >> 6) & 0x3f) | 0x80;
  3724. } else {
  3725. // FIXME: do we care
  3726. continue;
  3727. }
  3728. target[at++] = (value & 0x3f) | 0x80;
  3729. }
  3730. return target.slice(0, at);
  3731. }
  3732. /**
  3733. * @constructor
  3734. * @param {string=} utfLabel
  3735. * @param {{fatal: boolean}=} options
  3736. */
  3737. function FastTextDecoder(utfLabel='utf-8', options={fatal: false}) {
  3738. if (utfLabel !== 'utf-8') {
  3739. throw new RangeError(
  3740. `Failed to construct 'TextDecoder': The encoding label provided ('${utfLabel}') is invalid.`);
  3741. }
  3742. if (options.fatal) {
  3743. throw new Error(`Failed to construct 'TextDecoder': the 'fatal' option is unsupported.`);
  3744. }
  3745. }
  3746. Object.defineProperty(FastTextDecoder.prototype, 'encoding', {value: 'utf-8'});
  3747. Object.defineProperty(FastTextDecoder.prototype, 'fatal', {value: false});
  3748. Object.defineProperty(FastTextDecoder.prototype, 'ignoreBOM', {value: false});
  3749. /**
  3750. * @param {(!ArrayBuffer|!ArrayBufferView)} buffer
  3751. * @param {{stream: boolean}=} options
  3752. */
  3753. FastTextDecoder.prototype.decode = function(buffer, options={stream: false}) {
  3754. if (options['stream']) {
  3755. throw new Error(`Failed to decode: the 'stream' option is unsupported.`);
  3756. }
  3757. const bytes = new Uint8Array(buffer);
  3758. let pos = 0;
  3759. const len = bytes.length;
  3760. const out = [];
  3761. while (pos < len) {
  3762. const byte1 = bytes[pos++];
  3763. if (byte1 === 0) {
  3764. break; // NULL
  3765. }
  3766. if ((byte1 & 0x80) === 0) { // 1-byte
  3767. out.push(byte1);
  3768. } else if ((byte1 & 0xe0) === 0xc0) { // 2-byte
  3769. const byte2 = bytes[pos++] & 0x3f;
  3770. out.push(((byte1 & 0x1f) << 6) | byte2);
  3771. } else if ((byte1 & 0xf0) === 0xe0) {
  3772. const byte2 = bytes[pos++] & 0x3f;
  3773. const byte3 = bytes[pos++] & 0x3f;
  3774. out.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3);
  3775. } else if ((byte1 & 0xf8) === 0xf0) {
  3776. const byte2 = bytes[pos++] & 0x3f;
  3777. const byte3 = bytes[pos++] & 0x3f;
  3778. const byte4 = bytes[pos++] & 0x3f;
  3779. // this can be > 0xffff, so possibly generate surrogates
  3780. let codepoint = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4;
  3781. if (codepoint > 0xffff) {
  3782. // codepoint &= ~0x10000;
  3783. codepoint -= 0x10000;
  3784. out.push((codepoint >>> 10) & 0x3ff | 0xd800)
  3785. codepoint = 0xdc00 | codepoint & 0x3ff;
  3786. }
  3787. out.push(codepoint);
  3788. } else {
  3789. // FIXME: we're ignoring this
  3790. }
  3791. }
  3792. return String.fromCharCode.apply(null, out);
  3793. }
  3794. scope['TextEncoder'] = FastTextEncoder;
  3795. scope['TextDecoder'] = FastTextDecoder;
  3796. }(typeof window !== 'undefined' ? window : (typeof global !== 'undefined' ? global : this)));
  3797. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  3798. /***/ }),
  3799. /***/ "./node_modules/filesize/lib/filesize.js":
  3800. /*!***********************************************!*\
  3801. !*** ./node_modules/filesize/lib/filesize.js ***!
  3802. \***********************************************/
  3803. /*! no static exports found */
  3804. /***/ (function(module, exports, __webpack_require__) {
  3805. "use strict";
  3806. /* WEBPACK VAR INJECTION */(function(global) {
  3807. /**
  3808. * filesize
  3809. *
  3810. * @copyright 2018 Jason Mulligan <jason.mulligan@avoidwork.com>
  3811. * @license BSD-3-Clause
  3812. * @version 3.6.1
  3813. */
  3814. (function (global) {
  3815. var b = /^(b|B)$/,
  3816. symbol = {
  3817. iec: {
  3818. bits: ["b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib"],
  3819. bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
  3820. },
  3821. jedec: {
  3822. bits: ["b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"],
  3823. bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]
  3824. }
  3825. },
  3826. fullform = {
  3827. iec: ["", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi"],
  3828. jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
  3829. };
  3830. /**
  3831. * filesize
  3832. *
  3833. * @method filesize
  3834. * @param {Mixed} arg String, Int or Float to transform
  3835. * @param {Object} descriptor [Optional] Flags
  3836. * @return {String} Readable file size String
  3837. */
  3838. function filesize(arg) {
  3839. var descriptor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3840. var result = [],
  3841. val = 0,
  3842. e = void 0,
  3843. base = void 0,
  3844. bits = void 0,
  3845. ceil = void 0,
  3846. full = void 0,
  3847. fullforms = void 0,
  3848. neg = void 0,
  3849. num = void 0,
  3850. output = void 0,
  3851. round = void 0,
  3852. unix = void 0,
  3853. separator = void 0,
  3854. spacer = void 0,
  3855. standard = void 0,
  3856. symbols = void 0;
  3857. if (isNaN(arg)) {
  3858. throw new Error("Invalid arguments");
  3859. }
  3860. bits = descriptor.bits === true;
  3861. unix = descriptor.unix === true;
  3862. base = descriptor.base || 2;
  3863. round = descriptor.round !== void 0 ? descriptor.round : unix ? 1 : 2;
  3864. separator = descriptor.separator !== void 0 ? descriptor.separator || "" : "";
  3865. spacer = descriptor.spacer !== void 0 ? descriptor.spacer : unix ? "" : " ";
  3866. symbols = descriptor.symbols || descriptor.suffixes || {};
  3867. standard = base === 2 ? descriptor.standard || "jedec" : "jedec";
  3868. output = descriptor.output || "string";
  3869. full = descriptor.fullform === true;
  3870. fullforms = descriptor.fullforms instanceof Array ? descriptor.fullforms : [];
  3871. e = descriptor.exponent !== void 0 ? descriptor.exponent : -1;
  3872. num = Number(arg);
  3873. neg = num < 0;
  3874. ceil = base > 2 ? 1000 : 1024;
  3875. // Flipping a negative number to determine the size
  3876. if (neg) {
  3877. num = -num;
  3878. }
  3879. // Determining the exponent
  3880. if (e === -1 || isNaN(e)) {
  3881. e = Math.floor(Math.log(num) / Math.log(ceil));
  3882. if (e < 0) {
  3883. e = 0;
  3884. }
  3885. }
  3886. // Exceeding supported length, time to reduce & multiply
  3887. if (e > 8) {
  3888. e = 8;
  3889. }
  3890. // Zero is now a special case because bytes divide by 1
  3891. if (num === 0) {
  3892. result[0] = 0;
  3893. result[1] = unix ? "" : symbol[standard][bits ? "bits" : "bytes"][e];
  3894. } else {
  3895. val = num / (base === 2 ? Math.pow(2, e * 10) : Math.pow(1000, e));
  3896. if (bits) {
  3897. val = val * 8;
  3898. if (val >= ceil && e < 8) {
  3899. val = val / ceil;
  3900. e++;
  3901. }
  3902. }
  3903. result[0] = Number(val.toFixed(e > 0 ? round : 0));
  3904. result[1] = base === 10 && e === 1 ? bits ? "kb" : "kB" : symbol[standard][bits ? "bits" : "bytes"][e];
  3905. if (unix) {
  3906. result[1] = standard === "jedec" ? result[1].charAt(0) : e > 0 ? result[1].replace(/B$/, "") : result[1];
  3907. if (b.test(result[1])) {
  3908. result[0] = Math.floor(result[0]);
  3909. result[1] = "";
  3910. }
  3911. }
  3912. }
  3913. // Decorating a 'diff'
  3914. if (neg) {
  3915. result[0] = -result[0];
  3916. }
  3917. // Applying custom symbol
  3918. result[1] = symbols[result[1]] || result[1];
  3919. // Returning Array, Object, or String (default)
  3920. if (output === "array") {
  3921. return result;
  3922. }
  3923. if (output === "exponent") {
  3924. return e;
  3925. }
  3926. if (output === "object") {
  3927. return { value: result[0], suffix: result[1], symbol: result[1] };
  3928. }
  3929. if (full) {
  3930. result[1] = fullforms[e] ? fullforms[e] : fullform[standard][e] + (bits ? "bit" : "byte") + (result[0] === 1 ? "" : "s");
  3931. }
  3932. if (separator.length > 0) {
  3933. result[0] = result[0].toString().replace(".", separator);
  3934. }
  3935. return result.join(spacer);
  3936. }
  3937. // Partial application for functional programming
  3938. filesize.partial = function (opt) {
  3939. return function (arg) {
  3940. return filesize(arg, opt);
  3941. };
  3942. };
  3943. // CommonJS, AMD, script tag
  3944. if (true) {
  3945. module.exports = filesize;
  3946. } else {}
  3947. })(typeof window !== "undefined" ? window : global);
  3948. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  3949. /***/ }),
  3950. /***/ "./node_modules/formdata-polyfill/FormData.js":
  3951. /*!****************************************************!*\
  3952. !*** ./node_modules/formdata-polyfill/FormData.js ***!
  3953. \****************************************************/
  3954. /*! no static exports found */
  3955. /***/ (function(module, exports) {
  3956. if (typeof FormData === 'undefined' || !FormData.prototype.keys) {
  3957. const global = typeof window === 'object'
  3958. ? window : typeof self === 'object'
  3959. ? self : this
  3960. // keep a reference to native implementation
  3961. const _FormData = global.FormData
  3962. // To be monkey patched
  3963. const _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send
  3964. const _fetch = global.Request && global.fetch
  3965. // Unable to patch Request constructor correctly
  3966. // const _Request = global.Request
  3967. // only way is to use ES6 class extend
  3968. // https://github.com/babel/babel/issues/1966
  3969. const stringTag = global.Symbol && Symbol.toStringTag
  3970. const map = new WeakMap
  3971. const wm = o => map.get(o)
  3972. const arrayFrom = Array.from || (obj => [].slice.call(obj))
  3973. // Add missing stringTags to blob and files
  3974. if (stringTag) {
  3975. if (!Blob.prototype[stringTag]) {
  3976. Blob.prototype[stringTag] = 'Blob'
  3977. }
  3978. if ('File' in global && !File.prototype[stringTag]) {
  3979. File.prototype[stringTag] = 'File'
  3980. }
  3981. }
  3982. // Fix so you can construct your own File
  3983. try {
  3984. new File([], '')
  3985. } catch (a) {
  3986. global.File = function(b, d, c) {
  3987. const blob = new Blob(b, c)
  3988. const t = c && void 0 !== c.lastModified ? new Date(c.lastModified) : new Date
  3989. Object.defineProperties(blob, {
  3990. name: {
  3991. value: d
  3992. },
  3993. lastModifiedDate: {
  3994. value: t
  3995. },
  3996. lastModified: {
  3997. value: +t
  3998. },
  3999. toString: {
  4000. value() {
  4001. return '[object File]'
  4002. }
  4003. }
  4004. })
  4005. if (stringTag) {
  4006. Object.defineProperty(blob, stringTag, {
  4007. value: 'File'
  4008. })
  4009. }
  4010. return blob
  4011. }
  4012. }
  4013. function normalizeValue([value, filename]) {
  4014. if (value instanceof Blob)
  4015. // Should always returns a new File instance
  4016. // console.assert(fd.get(x) !== fd.get(x))
  4017. value = new File([value], filename, {
  4018. type: value.type,
  4019. lastModified: value.lastModified
  4020. })
  4021. return value
  4022. }
  4023. function stringify(name) {
  4024. if (!arguments.length)
  4025. throw new TypeError('1 argument required, but only 0 present.')
  4026. return [name + '']
  4027. }
  4028. function normalizeArgs(name, value, filename) {
  4029. if (arguments.length < 2)
  4030. throw new TypeError(
  4031. `2 arguments required, but only ${arguments.length} present.`
  4032. )
  4033. return value instanceof Blob
  4034. // normalize name and filename if adding an attachment
  4035. ? [name + '', value, filename !== undefined
  4036. ? filename + '' // Cast filename to string if 3th arg isn't undefined
  4037. : typeof value.name === 'string' // if name prop exist
  4038. ? value.name // Use File.name
  4039. : 'blob'] // otherwise fallback to Blob
  4040. // If no attachment, just cast the args to strings
  4041. : [name + '', value + '']
  4042. }
  4043. /**
  4044. * @implements {Iterable}
  4045. */
  4046. class FormDataPolyfill {
  4047. /**
  4048. * FormData class
  4049. *
  4050. * @param {HTMLElement=} form
  4051. */
  4052. constructor(form) {
  4053. map.set(this, Object.create(null))
  4054. if (!form)
  4055. return this
  4056. for (let elm of arrayFrom(form.elements)) {
  4057. if (!elm.name || elm.disabled) continue
  4058. if (elm.type === 'file')
  4059. for (let file of arrayFrom(elm.files || []))
  4060. this.append(elm.name, file)
  4061. else if (elm.type === 'select-multiple' || elm.type === 'select-one')
  4062. for (let opt of arrayFrom(elm.options))
  4063. !opt.disabled && opt.selected && this.append(elm.name, opt.value)
  4064. else if (elm.type === 'checkbox' || elm.type === 'radio') {
  4065. if (elm.checked) this.append(elm.name, elm.value)
  4066. } else
  4067. this.append(elm.name, elm.value)
  4068. }
  4069. }
  4070. /**
  4071. * Append a field
  4072. *
  4073. * @param {String} name field name
  4074. * @param {String|Blob|File} value string / blob / file
  4075. * @param {String=} filename filename to use with blob
  4076. * @return {Undefined}
  4077. */
  4078. append(name, value, filename) {
  4079. const map = wm(this)
  4080. if (!map[name])
  4081. map[name] = []
  4082. map[name].push([value, filename])
  4083. }
  4084. /**
  4085. * Delete all fields values given name
  4086. *
  4087. * @param {String} name Field name
  4088. * @return {Undefined}
  4089. */
  4090. delete(name) {
  4091. delete wm(this)[name]
  4092. }
  4093. /**
  4094. * Iterate over all fields as [name, value]
  4095. *
  4096. * @return {Iterator}
  4097. */
  4098. *entries() {
  4099. const map = wm(this)
  4100. for (let name in map)
  4101. for (let value of map[name])
  4102. yield [name, normalizeValue(value)]
  4103. }
  4104. /**
  4105. * Iterate over all fields
  4106. *
  4107. * @param {Function} callback Executed for each item with parameters (value, name, thisArg)
  4108. * @param {Object=} thisArg `this` context for callback function
  4109. * @return {Undefined}
  4110. */
  4111. forEach(callback, thisArg) {
  4112. for (let [name, value] of this)
  4113. callback.call(thisArg, value, name, this)
  4114. }
  4115. /**
  4116. * Return first field value given name
  4117. * or null if non existen
  4118. *
  4119. * @param {String} name Field name
  4120. * @return {String|File|null} value Fields value
  4121. */
  4122. get(name) {
  4123. const map = wm(this)
  4124. return map[name] ? normalizeValue(map[name][0]) : null
  4125. }
  4126. /**
  4127. * Return all fields values given name
  4128. *
  4129. * @param {String} name Fields name
  4130. * @return {Array} [{String|File}]
  4131. */
  4132. getAll(name) {
  4133. return (wm(this)[name] || []).map(normalizeValue)
  4134. }
  4135. /**
  4136. * Check for field name existence
  4137. *
  4138. * @param {String} name Field name
  4139. * @return {boolean}
  4140. */
  4141. has(name) {
  4142. return name in wm(this)
  4143. }
  4144. /**
  4145. * Iterate over all fields name
  4146. *
  4147. * @return {Iterator}
  4148. */
  4149. *keys() {
  4150. for (let [name] of this)
  4151. yield name
  4152. }
  4153. /**
  4154. * Overwrite all values given name
  4155. *
  4156. * @param {String} name Filed name
  4157. * @param {String} value Field value
  4158. * @param {String=} filename Filename (optional)
  4159. * @return {Undefined}
  4160. */
  4161. set(name, value, filename) {
  4162. wm(this)[name] = [[value, filename]]
  4163. }
  4164. /**
  4165. * Iterate over all fields
  4166. *
  4167. * @return {Iterator}
  4168. */
  4169. *values() {
  4170. for (let [name, value] of this)
  4171. yield value
  4172. }
  4173. /**
  4174. * Return a native (perhaps degraded) FormData with only a `append` method
  4175. * Can throw if it's not supported
  4176. *
  4177. * @return {FormData}
  4178. */
  4179. ['_asNative']() {
  4180. const fd = new _FormData
  4181. for (let [name, value] of this)
  4182. fd.append(name, value)
  4183. return fd
  4184. }
  4185. /**
  4186. * [_blob description]
  4187. *
  4188. * @return {Blob} [description]
  4189. */
  4190. ['_blob']() {
  4191. const boundary = '----formdata-polyfill-' + Math.random()
  4192. const chunks = []
  4193. for (let [name, value] of this) {
  4194. chunks.push(`--${boundary}\r\n`)
  4195. if (value instanceof Blob) {
  4196. chunks.push(
  4197. `Content-Disposition: form-data; name="${name}"; filename="${value.name}"\r\n`,
  4198. `Content-Type: ${value.type || 'application/octet-stream'}\r\n\r\n`,
  4199. value,
  4200. '\r\n'
  4201. )
  4202. } else {
  4203. chunks.push(
  4204. `Content-Disposition: form-data; name="${name}"\r\n\r\n${value}\r\n`
  4205. )
  4206. }
  4207. }
  4208. chunks.push(`--${boundary}--`)
  4209. return new Blob(chunks, {type: 'multipart/form-data; boundary=' + boundary})
  4210. }
  4211. /**
  4212. * The class itself is iterable
  4213. * alias for formdata.entries()
  4214. *
  4215. * @return {Iterator}
  4216. */
  4217. [Symbol.iterator]() {
  4218. return this.entries()
  4219. }
  4220. /**
  4221. * Create the default string description.
  4222. *
  4223. * @return {String} [object FormData]
  4224. */
  4225. toString() {
  4226. return '[object FormData]'
  4227. }
  4228. }
  4229. if (stringTag) {
  4230. /**
  4231. * Create the default string description.
  4232. * It is accessed internally by the Object.prototype.toString().
  4233. *
  4234. * @return {String} FormData
  4235. */
  4236. FormDataPolyfill.prototype[stringTag] = 'FormData'
  4237. }
  4238. const decorations = [
  4239. ['append', normalizeArgs],
  4240. ['delete', stringify],
  4241. ['get', stringify],
  4242. ['getAll', stringify],
  4243. ['has', stringify],
  4244. ['set', normalizeArgs]
  4245. ]
  4246. decorations.forEach(arr => {
  4247. const orig = FormDataPolyfill.prototype[arr[0]]
  4248. FormDataPolyfill.prototype[arr[0]] = function() {
  4249. return orig.apply(this, arr[1].apply(this, arrayFrom(arguments)))
  4250. }
  4251. })
  4252. // Patch xhr's send method to call _blob transparently
  4253. if (_send) {
  4254. XMLHttpRequest.prototype.send = function(data) {
  4255. // I would check if Content-Type isn't already set
  4256. // But xhr lacks getRequestHeaders functionallity
  4257. // https://github.com/jimmywarting/FormData/issues/44
  4258. if (data instanceof FormDataPolyfill) {
  4259. const blob = data['_blob']()
  4260. this.setRequestHeader('Content-Type', blob.type)
  4261. _send.call(this, blob)
  4262. } else {
  4263. _send.call(this, data)
  4264. }
  4265. }
  4266. }
  4267. // Patch fetch's function to call _blob transparently
  4268. if (_fetch) {
  4269. const _fetch = global.fetch
  4270. global.fetch = function(input, init) {
  4271. if (init && init.body && init.body instanceof FormDataPolyfill) {
  4272. init.body = init.body['_blob']()
  4273. }
  4274. return _fetch(input, init)
  4275. }
  4276. }
  4277. global['FormData'] = FormDataPolyfill
  4278. }
  4279. /***/ }),
  4280. /***/ "./node_modules/jed/jed.js":
  4281. /*!*********************************!*\
  4282. !*** ./node_modules/jed/jed.js ***!
  4283. \*********************************/
  4284. /*! no static exports found */
  4285. /***/ (function(module, exports, __webpack_require__) {
  4286. /**
  4287. * @preserve jed.js https://github.com/SlexAxton/Jed
  4288. */
  4289. /*
  4290. -----------
  4291. A gettext compatible i18n library for modern JavaScript Applications
  4292. by Alex Sexton - AlexSexton [at] gmail - @SlexAxton
  4293. MIT License
  4294. A jQuery Foundation project - requires CLA to contribute -
  4295. https://contribute.jquery.org/CLA/
  4296. Jed offers the entire applicable GNU gettext spec'd set of
  4297. functions, but also offers some nicer wrappers around them.
  4298. The api for gettext was written for a language with no function
  4299. overloading, so Jed allows a little more of that.
  4300. Many thanks to Joshua I. Miller - unrtst@cpan.org - who wrote
  4301. gettext.js back in 2008. I was able to vet a lot of my ideas
  4302. against his. I also made sure Jed passed against his tests
  4303. in order to offer easy upgrades -- jsgettext.berlios.de
  4304. */
  4305. (function (root, undef) {
  4306. // Set up some underscore-style functions, if you already have
  4307. // underscore, feel free to delete this section, and use it
  4308. // directly, however, the amount of functions used doesn't
  4309. // warrant having underscore as a full dependency.
  4310. // Underscore 1.3.0 was used to port and is licensed
  4311. // under the MIT License by Jeremy Ashkenas.
  4312. var ArrayProto = Array.prototype,
  4313. ObjProto = Object.prototype,
  4314. slice = ArrayProto.slice,
  4315. hasOwnProp = ObjProto.hasOwnProperty,
  4316. nativeForEach = ArrayProto.forEach,
  4317. breaker = {};
  4318. // We're not using the OOP style _ so we don't need the
  4319. // extra level of indirection. This still means that you
  4320. // sub out for real `_` though.
  4321. var _ = {
  4322. forEach : function( obj, iterator, context ) {
  4323. var i, l, key;
  4324. if ( obj === null ) {
  4325. return;
  4326. }
  4327. if ( nativeForEach && obj.forEach === nativeForEach ) {
  4328. obj.forEach( iterator, context );
  4329. }
  4330. else if ( obj.length === +obj.length ) {
  4331. for ( i = 0, l = obj.length; i < l; i++ ) {
  4332. if ( i in obj && iterator.call( context, obj[i], i, obj ) === breaker ) {
  4333. return;
  4334. }
  4335. }
  4336. }
  4337. else {
  4338. for ( key in obj) {
  4339. if ( hasOwnProp.call( obj, key ) ) {
  4340. if ( iterator.call (context, obj[key], key, obj ) === breaker ) {
  4341. return;
  4342. }
  4343. }
  4344. }
  4345. }
  4346. },
  4347. extend : function( obj ) {
  4348. this.forEach( slice.call( arguments, 1 ), function ( source ) {
  4349. for ( var prop in source ) {
  4350. obj[prop] = source[prop];
  4351. }
  4352. });
  4353. return obj;
  4354. }
  4355. };
  4356. // END Miniature underscore impl
  4357. // Jed is a constructor function
  4358. var Jed = function ( options ) {
  4359. // Some minimal defaults
  4360. this.defaults = {
  4361. "locale_data" : {
  4362. "messages" : {
  4363. "" : {
  4364. "domain" : "messages",
  4365. "lang" : "en",
  4366. "plural_forms" : "nplurals=2; plural=(n != 1);"
  4367. }
  4368. // There are no default keys, though
  4369. }
  4370. },
  4371. // The default domain if one is missing
  4372. "domain" : "messages",
  4373. // enable debug mode to log untranslated strings to the console
  4374. "debug" : false
  4375. };
  4376. // Mix in the sent options with the default options
  4377. this.options = _.extend( {}, this.defaults, options );
  4378. this.textdomain( this.options.domain );
  4379. if ( options.domain && ! this.options.locale_data[ this.options.domain ] ) {
  4380. throw new Error('Text domain set to non-existent domain: `' + options.domain + '`');
  4381. }
  4382. };
  4383. // The gettext spec sets this character as the default
  4384. // delimiter for context lookups.
  4385. // e.g.: context\u0004key
  4386. // If your translation company uses something different,
  4387. // just change this at any time and it will use that instead.
  4388. Jed.context_delimiter = String.fromCharCode( 4 );
  4389. function getPluralFormFunc ( plural_form_string ) {
  4390. return Jed.PF.compile( plural_form_string || "nplurals=2; plural=(n != 1);");
  4391. }
  4392. function Chain( key, i18n ){
  4393. this._key = key;
  4394. this._i18n = i18n;
  4395. }
  4396. // Create a chainable api for adding args prettily
  4397. _.extend( Chain.prototype, {
  4398. onDomain : function ( domain ) {
  4399. this._domain = domain;
  4400. return this;
  4401. },
  4402. withContext : function ( context ) {
  4403. this._context = context;
  4404. return this;
  4405. },
  4406. ifPlural : function ( num, pkey ) {
  4407. this._val = num;
  4408. this._pkey = pkey;
  4409. return this;
  4410. },
  4411. fetch : function ( sArr ) {
  4412. if ( {}.toString.call( sArr ) != '[object Array]' ) {
  4413. sArr = [].slice.call(arguments, 0);
  4414. }
  4415. return ( sArr && sArr.length ? Jed.sprintf : function(x){ return x; } )(
  4416. this._i18n.dcnpgettext(this._domain, this._context, this._key, this._pkey, this._val),
  4417. sArr
  4418. );
  4419. }
  4420. });
  4421. // Add functions to the Jed prototype.
  4422. // These will be the functions on the object that's returned
  4423. // from creating a `new Jed()`
  4424. // These seem redundant, but they gzip pretty well.
  4425. _.extend( Jed.prototype, {
  4426. // The sexier api start point
  4427. translate : function ( key ) {
  4428. return new Chain( key, this );
  4429. },
  4430. textdomain : function ( domain ) {
  4431. if ( ! domain ) {
  4432. return this._textdomain;
  4433. }
  4434. this._textdomain = domain;
  4435. },
  4436. gettext : function ( key ) {
  4437. return this.dcnpgettext.call( this, undef, undef, key );
  4438. },
  4439. dgettext : function ( domain, key ) {
  4440. return this.dcnpgettext.call( this, domain, undef, key );
  4441. },
  4442. dcgettext : function ( domain , key /*, category */ ) {
  4443. // Ignores the category anyways
  4444. return this.dcnpgettext.call( this, domain, undef, key );
  4445. },
  4446. ngettext : function ( skey, pkey, val ) {
  4447. return this.dcnpgettext.call( this, undef, undef, skey, pkey, val );
  4448. },
  4449. dngettext : function ( domain, skey, pkey, val ) {
  4450. return this.dcnpgettext.call( this, domain, undef, skey, pkey, val );
  4451. },
  4452. dcngettext : function ( domain, skey, pkey, val/*, category */) {
  4453. return this.dcnpgettext.call( this, domain, undef, skey, pkey, val );
  4454. },
  4455. pgettext : function ( context, key ) {
  4456. return this.dcnpgettext.call( this, undef, context, key );
  4457. },
  4458. dpgettext : function ( domain, context, key ) {
  4459. return this.dcnpgettext.call( this, domain, context, key );
  4460. },
  4461. dcpgettext : function ( domain, context, key/*, category */) {
  4462. return this.dcnpgettext.call( this, domain, context, key );
  4463. },
  4464. npgettext : function ( context, skey, pkey, val ) {
  4465. return this.dcnpgettext.call( this, undef, context, skey, pkey, val );
  4466. },
  4467. dnpgettext : function ( domain, context, skey, pkey, val ) {
  4468. return this.dcnpgettext.call( this, domain, context, skey, pkey, val );
  4469. },
  4470. // The most fully qualified gettext function. It has every option.
  4471. // Since it has every option, we can use it from every other method.
  4472. // This is the bread and butter.
  4473. // Technically there should be one more argument in this function for 'Category',
  4474. // but since we never use it, we might as well not waste the bytes to define it.
  4475. dcnpgettext : function ( domain, context, singular_key, plural_key, val ) {
  4476. // Set some defaults
  4477. plural_key = plural_key || singular_key;
  4478. // Use the global domain default if one
  4479. // isn't explicitly passed in
  4480. domain = domain || this._textdomain;
  4481. var fallback;
  4482. // Handle special cases
  4483. // No options found
  4484. if ( ! this.options ) {
  4485. // There's likely something wrong, but we'll return the correct key for english
  4486. // We do this by instantiating a brand new Jed instance with the default set
  4487. // for everything that could be broken.
  4488. fallback = new Jed();
  4489. return fallback.dcnpgettext.call( fallback, undefined, undefined, singular_key, plural_key, val );
  4490. }
  4491. // No translation data provided
  4492. if ( ! this.options.locale_data ) {
  4493. throw new Error('No locale data provided.');
  4494. }
  4495. if ( ! this.options.locale_data[ domain ] ) {
  4496. throw new Error('Domain `' + domain + '` was not found.');
  4497. }
  4498. if ( ! this.options.locale_data[ domain ][ "" ] ) {
  4499. throw new Error('No locale meta information provided.');
  4500. }
  4501. // Make sure we have a truthy key. Otherwise we might start looking
  4502. // into the empty string key, which is the options for the locale
  4503. // data.
  4504. if ( ! singular_key ) {
  4505. throw new Error('No translation key found.');
  4506. }
  4507. var key = context ? context + Jed.context_delimiter + singular_key : singular_key,
  4508. locale_data = this.options.locale_data,
  4509. dict = locale_data[ domain ],
  4510. defaultConf = (locale_data.messages || this.defaults.locale_data.messages)[""],
  4511. pluralForms = dict[""].plural_forms || dict[""]["Plural-Forms"] || dict[""]["plural-forms"] || defaultConf.plural_forms || defaultConf["Plural-Forms"] || defaultConf["plural-forms"],
  4512. val_list,
  4513. res;
  4514. var val_idx;
  4515. if (val === undefined) {
  4516. // No value passed in; assume singular key lookup.
  4517. val_idx = 0;
  4518. } else {
  4519. // Value has been passed in; use plural-forms calculations.
  4520. // Handle invalid numbers, but try casting strings for good measure
  4521. if ( typeof val != 'number' ) {
  4522. val = parseInt( val, 10 );
  4523. if ( isNaN( val ) ) {
  4524. throw new Error('The number that was passed in is not a number.');
  4525. }
  4526. }
  4527. val_idx = getPluralFormFunc(pluralForms)(val);
  4528. }
  4529. // Throw an error if a domain isn't found
  4530. if ( ! dict ) {
  4531. throw new Error('No domain named `' + domain + '` could be found.');
  4532. }
  4533. val_list = dict[ key ];
  4534. // If there is no match, then revert back to
  4535. // english style singular/plural with the keys passed in.
  4536. if ( ! val_list || val_idx > val_list.length ) {
  4537. if (this.options.missing_key_callback) {
  4538. this.options.missing_key_callback(key, domain);
  4539. }
  4540. res = [ singular_key, plural_key ];
  4541. // collect untranslated strings
  4542. if (this.options.debug===true) {
  4543. console.log(res[ getPluralFormFunc(pluralForms)( val ) ]);
  4544. }
  4545. return res[ getPluralFormFunc()( val ) ];
  4546. }
  4547. res = val_list[ val_idx ];
  4548. // This includes empty strings on purpose
  4549. if ( ! res ) {
  4550. res = [ singular_key, plural_key ];
  4551. return res[ getPluralFormFunc()( val ) ];
  4552. }
  4553. return res;
  4554. }
  4555. });
  4556. // We add in sprintf capabilities for post translation value interolation
  4557. // This is not internally used, so you can remove it if you have this
  4558. // available somewhere else, or want to use a different system.
  4559. // We _slightly_ modify the normal sprintf behavior to more gracefully handle
  4560. // undefined values.
  4561. /**
  4562. sprintf() for JavaScript 0.7-beta1
  4563. http://www.diveintojavascript.com/projects/javascript-sprintf
  4564. Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com>
  4565. All rights reserved.
  4566. Redistribution and use in source and binary forms, with or without
  4567. modification, are permitted provided that the following conditions are met:
  4568. * Redistributions of source code must retain the above copyright
  4569. notice, this list of conditions and the following disclaimer.
  4570. * Redistributions in binary form must reproduce the above copyright
  4571. notice, this list of conditions and the following disclaimer in the
  4572. documentation and/or other materials provided with the distribution.
  4573. * Neither the name of sprintf() for JavaScript nor the
  4574. names of its contributors may be used to endorse or promote products
  4575. derived from this software without specific prior written permission.
  4576. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  4577. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  4578. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  4579. DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY
  4580. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  4581. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  4582. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  4583. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  4584. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  4585. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  4586. */
  4587. var sprintf = (function() {
  4588. function get_type(variable) {
  4589. return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
  4590. }
  4591. function str_repeat(input, multiplier) {
  4592. for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */}
  4593. return output.join('');
  4594. }
  4595. var str_format = function() {
  4596. if (!str_format.cache.hasOwnProperty(arguments[0])) {
  4597. str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
  4598. }
  4599. return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
  4600. };
  4601. str_format.format = function(parse_tree, argv) {
  4602. var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length;
  4603. for (i = 0; i < tree_length; i++) {
  4604. node_type = get_type(parse_tree[i]);
  4605. if (node_type === 'string') {
  4606. output.push(parse_tree[i]);
  4607. }
  4608. else if (node_type === 'array') {
  4609. match = parse_tree[i]; // convenience purposes only
  4610. if (match[2]) { // keyword argument
  4611. arg = argv[cursor];
  4612. for (k = 0; k < match[2].length; k++) {
  4613. if (!arg.hasOwnProperty(match[2][k])) {
  4614. throw(sprintf('[sprintf] property "%s" does not exist', match[2][k]));
  4615. }
  4616. arg = arg[match[2][k]];
  4617. }
  4618. }
  4619. else if (match[1]) { // positional argument (explicit)
  4620. arg = argv[match[1]];
  4621. }
  4622. else { // positional argument (implicit)
  4623. arg = argv[cursor++];
  4624. }
  4625. if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) {
  4626. throw(sprintf('[sprintf] expecting number but found %s', get_type(arg)));
  4627. }
  4628. // Jed EDIT
  4629. if ( typeof arg == 'undefined' || arg === null ) {
  4630. arg = '';
  4631. }
  4632. // Jed EDIT
  4633. switch (match[8]) {
  4634. case 'b': arg = arg.toString(2); break;
  4635. case 'c': arg = String.fromCharCode(arg); break;
  4636. case 'd': arg = parseInt(arg, 10); break;
  4637. case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break;
  4638. case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break;
  4639. case 'o': arg = arg.toString(8); break;
  4640. case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break;
  4641. case 'u': arg = Math.abs(arg); break;
  4642. case 'x': arg = arg.toString(16); break;
  4643. case 'X': arg = arg.toString(16).toUpperCase(); break;
  4644. }
  4645. arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg);
  4646. pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' ';
  4647. pad_length = match[6] - String(arg).length;
  4648. pad = match[6] ? str_repeat(pad_character, pad_length) : '';
  4649. output.push(match[5] ? arg + pad : pad + arg);
  4650. }
  4651. }
  4652. return output.join('');
  4653. };
  4654. str_format.cache = {};
  4655. str_format.parse = function(fmt) {
  4656. var _fmt = fmt, match = [], parse_tree = [], arg_names = 0;
  4657. while (_fmt) {
  4658. if ((match = /^[^\x25]+/.exec(_fmt)) !== null) {
  4659. parse_tree.push(match[0]);
  4660. }
  4661. else if ((match = /^\x25{2}/.exec(_fmt)) !== null) {
  4662. parse_tree.push('%');
  4663. }
  4664. else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
  4665. if (match[2]) {
  4666. arg_names |= 1;
  4667. var field_list = [], replacement_field = match[2], field_match = [];
  4668. if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
  4669. field_list.push(field_match[1]);
  4670. while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
  4671. if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
  4672. field_list.push(field_match[1]);
  4673. }
  4674. else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
  4675. field_list.push(field_match[1]);
  4676. }
  4677. else {
  4678. throw('[sprintf] huh?');
  4679. }
  4680. }
  4681. }
  4682. else {
  4683. throw('[sprintf] huh?');
  4684. }
  4685. match[2] = field_list;
  4686. }
  4687. else {
  4688. arg_names |= 2;
  4689. }
  4690. if (arg_names === 3) {
  4691. throw('[sprintf] mixing positional and named placeholders is not (yet) supported');
  4692. }
  4693. parse_tree.push(match);
  4694. }
  4695. else {
  4696. throw('[sprintf] huh?');
  4697. }
  4698. _fmt = _fmt.substring(match[0].length);
  4699. }
  4700. return parse_tree;
  4701. };
  4702. return str_format;
  4703. })();
  4704. var vsprintf = function(fmt, argv) {
  4705. argv.unshift(fmt);
  4706. return sprintf.apply(null, argv);
  4707. };
  4708. Jed.parse_plural = function ( plural_forms, n ) {
  4709. plural_forms = plural_forms.replace(/n/g, n);
  4710. return Jed.parse_expression(plural_forms);
  4711. };
  4712. Jed.sprintf = function ( fmt, args ) {
  4713. if ( {}.toString.call( args ) == '[object Array]' ) {
  4714. return vsprintf( fmt, [].slice.call(args) );
  4715. }
  4716. return sprintf.apply(this, [].slice.call(arguments) );
  4717. };
  4718. Jed.prototype.sprintf = function () {
  4719. return Jed.sprintf.apply(this, arguments);
  4720. };
  4721. // END sprintf Implementation
  4722. // Start the Plural forms section
  4723. // This is a full plural form expression parser. It is used to avoid
  4724. // running 'eval' or 'new Function' directly against the plural
  4725. // forms.
  4726. //
  4727. // This can be important if you get translations done through a 3rd
  4728. // party vendor. I encourage you to use this instead, however, I
  4729. // also will provide a 'precompiler' that you can use at build time
  4730. // to output valid/safe function representations of the plural form
  4731. // expressions. This means you can build this code out for the most
  4732. // part.
  4733. Jed.PF = {};
  4734. Jed.PF.parse = function ( p ) {
  4735. var plural_str = Jed.PF.extractPluralExpr( p );
  4736. return Jed.PF.parser.parse.call(Jed.PF.parser, plural_str);
  4737. };
  4738. Jed.PF.compile = function ( p ) {
  4739. // Handle trues and falses as 0 and 1
  4740. function imply( val ) {
  4741. return (val === true ? 1 : val ? val : 0);
  4742. }
  4743. var ast = Jed.PF.parse( p );
  4744. return function ( n ) {
  4745. return imply( Jed.PF.interpreter( ast )( n ) );
  4746. };
  4747. };
  4748. Jed.PF.interpreter = function ( ast ) {
  4749. return function ( n ) {
  4750. var res;
  4751. switch ( ast.type ) {
  4752. case 'GROUP':
  4753. return Jed.PF.interpreter( ast.expr )( n );
  4754. case 'TERNARY':
  4755. if ( Jed.PF.interpreter( ast.expr )( n ) ) {
  4756. return Jed.PF.interpreter( ast.truthy )( n );
  4757. }
  4758. return Jed.PF.interpreter( ast.falsey )( n );
  4759. case 'OR':
  4760. return Jed.PF.interpreter( ast.left )( n ) || Jed.PF.interpreter( ast.right )( n );
  4761. case 'AND':
  4762. return Jed.PF.interpreter( ast.left )( n ) && Jed.PF.interpreter( ast.right )( n );
  4763. case 'LT':
  4764. return Jed.PF.interpreter( ast.left )( n ) < Jed.PF.interpreter( ast.right )( n );
  4765. case 'GT':
  4766. return Jed.PF.interpreter( ast.left )( n ) > Jed.PF.interpreter( ast.right )( n );
  4767. case 'LTE':
  4768. return Jed.PF.interpreter( ast.left )( n ) <= Jed.PF.interpreter( ast.right )( n );
  4769. case 'GTE':
  4770. return Jed.PF.interpreter( ast.left )( n ) >= Jed.PF.interpreter( ast.right )( n );
  4771. case 'EQ':
  4772. return Jed.PF.interpreter( ast.left )( n ) == Jed.PF.interpreter( ast.right )( n );
  4773. case 'NEQ':
  4774. return Jed.PF.interpreter( ast.left )( n ) != Jed.PF.interpreter( ast.right )( n );
  4775. case 'MOD':
  4776. return Jed.PF.interpreter( ast.left )( n ) % Jed.PF.interpreter( ast.right )( n );
  4777. case 'VAR':
  4778. return n;
  4779. case 'NUM':
  4780. return ast.val;
  4781. default:
  4782. throw new Error("Invalid Token found.");
  4783. }
  4784. };
  4785. };
  4786. Jed.PF.extractPluralExpr = function ( p ) {
  4787. // trim first
  4788. p = p.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  4789. if (! /;\s*$/.test(p)) {
  4790. p = p.concat(';');
  4791. }
  4792. var nplurals_re = /nplurals\=(\d+);/,
  4793. plural_re = /plural\=(.*);/,
  4794. nplurals_matches = p.match( nplurals_re ),
  4795. res = {},
  4796. plural_matches;
  4797. // Find the nplurals number
  4798. if ( nplurals_matches.length > 1 ) {
  4799. res.nplurals = nplurals_matches[1];
  4800. }
  4801. else {
  4802. throw new Error('nplurals not found in plural_forms string: ' + p );
  4803. }
  4804. // remove that data to get to the formula
  4805. p = p.replace( nplurals_re, "" );
  4806. plural_matches = p.match( plural_re );
  4807. if (!( plural_matches && plural_matches.length > 1 ) ) {
  4808. throw new Error('`plural` expression not found: ' + p);
  4809. }
  4810. return plural_matches[ 1 ];
  4811. };
  4812. /* Jison generated parser */
  4813. Jed.PF.parser = (function(){
  4814. var parser = {trace: function trace() { },
  4815. yy: {},
  4816. symbols_: {"error":2,"expressions":3,"e":4,"EOF":5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,"n":19,"NUMBER":20,"$accept":0,"$end":1},
  4817. terminals_: {2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},
  4818. productions_: [0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],
  4819. performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
  4820. var $0 = $$.length - 1;
  4821. switch (yystate) {
  4822. case 1: return { type : 'GROUP', expr: $$[$0-1] };
  4823. break;
  4824. case 2:this.$ = { type: 'TERNARY', expr: $$[$0-4], truthy : $$[$0-2], falsey: $$[$0] };
  4825. break;
  4826. case 3:this.$ = { type: "OR", left: $$[$0-2], right: $$[$0] };
  4827. break;
  4828. case 4:this.$ = { type: "AND", left: $$[$0-2], right: $$[$0] };
  4829. break;
  4830. case 5:this.$ = { type: 'LT', left: $$[$0-2], right: $$[$0] };
  4831. break;
  4832. case 6:this.$ = { type: 'LTE', left: $$[$0-2], right: $$[$0] };
  4833. break;
  4834. case 7:this.$ = { type: 'GT', left: $$[$0-2], right: $$[$0] };
  4835. break;
  4836. case 8:this.$ = { type: 'GTE', left: $$[$0-2], right: $$[$0] };
  4837. break;
  4838. case 9:this.$ = { type: 'NEQ', left: $$[$0-2], right: $$[$0] };
  4839. break;
  4840. case 10:this.$ = { type: 'EQ', left: $$[$0-2], right: $$[$0] };
  4841. break;
  4842. case 11:this.$ = { type: 'MOD', left: $$[$0-2], right: $$[$0] };
  4843. break;
  4844. case 12:this.$ = { type: 'GROUP', expr: $$[$0-1] };
  4845. break;
  4846. case 13:this.$ = { type: 'VAR' };
  4847. break;
  4848. case 14:this.$ = { type: 'NUM', val: Number(yytext) };
  4849. break;
  4850. }
  4851. },
  4852. table: [{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],
  4853. defaultActions: {6:[2,1]},
  4854. parseError: function parseError(str, hash) {
  4855. throw new Error(str);
  4856. },
  4857. parse: function parse(input) {
  4858. var self = this,
  4859. stack = [0],
  4860. vstack = [null], // semantic value stack
  4861. lstack = [], // location stack
  4862. table = this.table,
  4863. yytext = '',
  4864. yylineno = 0,
  4865. yyleng = 0,
  4866. recovering = 0,
  4867. TERROR = 2,
  4868. EOF = 1;
  4869. //this.reductionCount = this.shiftCount = 0;
  4870. this.lexer.setInput(input);
  4871. this.lexer.yy = this.yy;
  4872. this.yy.lexer = this.lexer;
  4873. if (typeof this.lexer.yylloc == 'undefined')
  4874. this.lexer.yylloc = {};
  4875. var yyloc = this.lexer.yylloc;
  4876. lstack.push(yyloc);
  4877. if (typeof this.yy.parseError === 'function')
  4878. this.parseError = this.yy.parseError;
  4879. function popStack (n) {
  4880. stack.length = stack.length - 2*n;
  4881. vstack.length = vstack.length - n;
  4882. lstack.length = lstack.length - n;
  4883. }
  4884. function lex() {
  4885. var token;
  4886. token = self.lexer.lex() || 1; // $end = 1
  4887. // if token isn't its numeric value, convert
  4888. if (typeof token !== 'number') {
  4889. token = self.symbols_[token] || token;
  4890. }
  4891. return token;
  4892. }
  4893. var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;
  4894. while (true) {
  4895. // retreive state number from top of stack
  4896. state = stack[stack.length-1];
  4897. // use default actions if available
  4898. if (this.defaultActions[state]) {
  4899. action = this.defaultActions[state];
  4900. } else {
  4901. if (symbol == null)
  4902. symbol = lex();
  4903. // read action for current state and first input
  4904. action = table[state] && table[state][symbol];
  4905. }
  4906. // handle parse error
  4907. _handle_error:
  4908. if (typeof action === 'undefined' || !action.length || !action[0]) {
  4909. if (!recovering) {
  4910. // Report error
  4911. expected = [];
  4912. for (p in table[state]) if (this.terminals_[p] && p > 2) {
  4913. expected.push("'"+this.terminals_[p]+"'");
  4914. }
  4915. var errStr = '';
  4916. if (this.lexer.showPosition) {
  4917. errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'";
  4918. } else {
  4919. errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " +
  4920. (symbol == 1 /*EOF*/ ? "end of input" :
  4921. ("'"+(this.terminals_[symbol] || symbol)+"'"));
  4922. }
  4923. this.parseError(errStr,
  4924. {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
  4925. }
  4926. // just recovered from another error
  4927. if (recovering == 3) {
  4928. if (symbol == EOF) {
  4929. throw new Error(errStr || 'Parsing halted.');
  4930. }
  4931. // discard current lookahead and grab another
  4932. yyleng = this.lexer.yyleng;
  4933. yytext = this.lexer.yytext;
  4934. yylineno = this.lexer.yylineno;
  4935. yyloc = this.lexer.yylloc;
  4936. symbol = lex();
  4937. }
  4938. // try to recover from error
  4939. while (1) {
  4940. // check for error recovery rule in this state
  4941. if ((TERROR.toString()) in table[state]) {
  4942. break;
  4943. }
  4944. if (state == 0) {
  4945. throw new Error(errStr || 'Parsing halted.');
  4946. }
  4947. popStack(1);
  4948. state = stack[stack.length-1];
  4949. }
  4950. preErrorSymbol = symbol; // save the lookahead token
  4951. symbol = TERROR; // insert generic error symbol as new lookahead
  4952. state = stack[stack.length-1];
  4953. action = table[state] && table[state][TERROR];
  4954. recovering = 3; // allow 3 real symbols to be shifted before reporting a new error
  4955. }
  4956. // this shouldn't happen, unless resolve defaults are off
  4957. if (action[0] instanceof Array && action.length > 1) {
  4958. throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);
  4959. }
  4960. switch (action[0]) {
  4961. case 1: // shift
  4962. //this.shiftCount++;
  4963. stack.push(symbol);
  4964. vstack.push(this.lexer.yytext);
  4965. lstack.push(this.lexer.yylloc);
  4966. stack.push(action[1]); // push state
  4967. symbol = null;
  4968. if (!preErrorSymbol) { // normal execution/no error
  4969. yyleng = this.lexer.yyleng;
  4970. yytext = this.lexer.yytext;
  4971. yylineno = this.lexer.yylineno;
  4972. yyloc = this.lexer.yylloc;
  4973. if (recovering > 0)
  4974. recovering--;
  4975. } else { // error just occurred, resume old lookahead f/ before error
  4976. symbol = preErrorSymbol;
  4977. preErrorSymbol = null;
  4978. }
  4979. break;
  4980. case 2: // reduce
  4981. //this.reductionCount++;
  4982. len = this.productions_[action[1]][1];
  4983. // perform semantic action
  4984. yyval.$ = vstack[vstack.length-len]; // default to $$ = $1
  4985. // default location, uses first token for firsts, last for lasts
  4986. yyval._$ = {
  4987. first_line: lstack[lstack.length-(len||1)].first_line,
  4988. last_line: lstack[lstack.length-1].last_line,
  4989. first_column: lstack[lstack.length-(len||1)].first_column,
  4990. last_column: lstack[lstack.length-1].last_column
  4991. };
  4992. r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
  4993. if (typeof r !== 'undefined') {
  4994. return r;
  4995. }
  4996. // pop off stack
  4997. if (len) {
  4998. stack = stack.slice(0,-1*len*2);
  4999. vstack = vstack.slice(0, -1*len);
  5000. lstack = lstack.slice(0, -1*len);
  5001. }
  5002. stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)
  5003. vstack.push(yyval.$);
  5004. lstack.push(yyval._$);
  5005. // goto new state = table[STATE][NONTERMINAL]
  5006. newState = table[stack[stack.length-2]][stack[stack.length-1]];
  5007. stack.push(newState);
  5008. break;
  5009. case 3: // accept
  5010. return true;
  5011. }
  5012. }
  5013. return true;
  5014. }};/* Jison generated lexer */
  5015. var lexer = (function(){
  5016. var lexer = ({EOF:1,
  5017. parseError:function parseError(str, hash) {
  5018. if (this.yy.parseError) {
  5019. this.yy.parseError(str, hash);
  5020. } else {
  5021. throw new Error(str);
  5022. }
  5023. },
  5024. setInput:function (input) {
  5025. this._input = input;
  5026. this._more = this._less = this.done = false;
  5027. this.yylineno = this.yyleng = 0;
  5028. this.yytext = this.matched = this.match = '';
  5029. this.conditionStack = ['INITIAL'];
  5030. this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
  5031. return this;
  5032. },
  5033. input:function () {
  5034. var ch = this._input[0];
  5035. this.yytext+=ch;
  5036. this.yyleng++;
  5037. this.match+=ch;
  5038. this.matched+=ch;
  5039. var lines = ch.match(/\n/);
  5040. if (lines) this.yylineno++;
  5041. this._input = this._input.slice(1);
  5042. return ch;
  5043. },
  5044. unput:function (ch) {
  5045. this._input = ch + this._input;
  5046. return this;
  5047. },
  5048. more:function () {
  5049. this._more = true;
  5050. return this;
  5051. },
  5052. pastInput:function () {
  5053. var past = this.matched.substr(0, this.matched.length - this.match.length);
  5054. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  5055. },
  5056. upcomingInput:function () {
  5057. var next = this.match;
  5058. if (next.length < 20) {
  5059. next += this._input.substr(0, 20-next.length);
  5060. }
  5061. return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
  5062. },
  5063. showPosition:function () {
  5064. var pre = this.pastInput();
  5065. var c = new Array(pre.length + 1).join("-");
  5066. return pre + this.upcomingInput() + "\n" + c+"^";
  5067. },
  5068. next:function () {
  5069. if (this.done) {
  5070. return this.EOF;
  5071. }
  5072. if (!this._input) this.done = true;
  5073. var token,
  5074. match,
  5075. col,
  5076. lines;
  5077. if (!this._more) {
  5078. this.yytext = '';
  5079. this.match = '';
  5080. }
  5081. var rules = this._currentRules();
  5082. for (var i=0;i < rules.length; i++) {
  5083. match = this._input.match(this.rules[rules[i]]);
  5084. if (match) {
  5085. lines = match[0].match(/\n.*/g);
  5086. if (lines) this.yylineno += lines.length;
  5087. this.yylloc = {first_line: this.yylloc.last_line,
  5088. last_line: this.yylineno+1,
  5089. first_column: this.yylloc.last_column,
  5090. last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length}
  5091. this.yytext += match[0];
  5092. this.match += match[0];
  5093. this.matches = match;
  5094. this.yyleng = this.yytext.length;
  5095. this._more = false;
  5096. this._input = this._input.slice(match[0].length);
  5097. this.matched += match[0];
  5098. token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]);
  5099. if (token) return token;
  5100. else return;
  5101. }
  5102. }
  5103. if (this._input === "") {
  5104. return this.EOF;
  5105. } else {
  5106. this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
  5107. {text: "", token: null, line: this.yylineno});
  5108. }
  5109. },
  5110. lex:function lex() {
  5111. var r = this.next();
  5112. if (typeof r !== 'undefined') {
  5113. return r;
  5114. } else {
  5115. return this.lex();
  5116. }
  5117. },
  5118. begin:function begin(condition) {
  5119. this.conditionStack.push(condition);
  5120. },
  5121. popState:function popState() {
  5122. return this.conditionStack.pop();
  5123. },
  5124. _currentRules:function _currentRules() {
  5125. return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
  5126. },
  5127. topState:function () {
  5128. return this.conditionStack[this.conditionStack.length-2];
  5129. },
  5130. pushState:function begin(condition) {
  5131. this.begin(condition);
  5132. }});
  5133. lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  5134. var YYSTATE=YY_START;
  5135. switch($avoiding_name_collisions) {
  5136. case 0:/* skip whitespace */
  5137. break;
  5138. case 1:return 20
  5139. break;
  5140. case 2:return 19
  5141. break;
  5142. case 3:return 8
  5143. break;
  5144. case 4:return 9
  5145. break;
  5146. case 5:return 6
  5147. break;
  5148. case 6:return 7
  5149. break;
  5150. case 7:return 11
  5151. break;
  5152. case 8:return 13
  5153. break;
  5154. case 9:return 10
  5155. break;
  5156. case 10:return 12
  5157. break;
  5158. case 11:return 14
  5159. break;
  5160. case 12:return 15
  5161. break;
  5162. case 13:return 16
  5163. break;
  5164. case 14:return 17
  5165. break;
  5166. case 15:return 18
  5167. break;
  5168. case 16:return 5
  5169. break;
  5170. case 17:return 'INVALID'
  5171. break;
  5172. }
  5173. };
  5174. lexer.rules = [/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./];
  5175. lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"inclusive":true}};return lexer;})()
  5176. parser.lexer = lexer;
  5177. return parser;
  5178. })();
  5179. // End parser
  5180. // Handle node, amd, and global systems
  5181. if (true) {
  5182. if (typeof module !== 'undefined' && module.exports) {
  5183. exports = module.exports = Jed;
  5184. }
  5185. exports.Jed = Jed;
  5186. }
  5187. else {}
  5188. })(this);
  5189. /***/ }),
  5190. /***/ "./node_modules/lodash/_Symbol.js":
  5191. /*!****************************************!*\
  5192. !*** ./node_modules/lodash/_Symbol.js ***!
  5193. \****************************************/
  5194. /*! no static exports found */
  5195. /***/ (function(module, exports, __webpack_require__) {
  5196. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  5197. /** Built-in value references. */
  5198. var Symbol = root.Symbol;
  5199. module.exports = Symbol;
  5200. /***/ }),
  5201. /***/ "./node_modules/lodash/_arrayMap.js":
  5202. /*!******************************************!*\
  5203. !*** ./node_modules/lodash/_arrayMap.js ***!
  5204. \******************************************/
  5205. /*! no static exports found */
  5206. /***/ (function(module, exports) {
  5207. /**
  5208. * A specialized version of `_.map` for arrays without support for iteratee
  5209. * shorthands.
  5210. *
  5211. * @private
  5212. * @param {Array} [array] The array to iterate over.
  5213. * @param {Function} iteratee The function invoked per iteration.
  5214. * @returns {Array} Returns the new mapped array.
  5215. */
  5216. function arrayMap(array, iteratee) {
  5217. var index = -1,
  5218. length = array == null ? 0 : array.length,
  5219. result = Array(length);
  5220. while (++index < length) {
  5221. result[index] = iteratee(array[index], index, array);
  5222. }
  5223. return result;
  5224. }
  5225. module.exports = arrayMap;
  5226. /***/ }),
  5227. /***/ "./node_modules/lodash/_baseGetTag.js":
  5228. /*!********************************************!*\
  5229. !*** ./node_modules/lodash/_baseGetTag.js ***!
  5230. \********************************************/
  5231. /*! no static exports found */
  5232. /***/ (function(module, exports, __webpack_require__) {
  5233. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  5234. getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
  5235. objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
  5236. /** `Object#toString` result references. */
  5237. var nullTag = '[object Null]',
  5238. undefinedTag = '[object Undefined]';
  5239. /** Built-in value references. */
  5240. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  5241. /**
  5242. * The base implementation of `getTag` without fallbacks for buggy environments.
  5243. *
  5244. * @private
  5245. * @param {*} value The value to query.
  5246. * @returns {string} Returns the `toStringTag`.
  5247. */
  5248. function baseGetTag(value) {
  5249. if (value == null) {
  5250. return value === undefined ? undefinedTag : nullTag;
  5251. }
  5252. return (symToStringTag && symToStringTag in Object(value))
  5253. ? getRawTag(value)
  5254. : objectToString(value);
  5255. }
  5256. module.exports = baseGetTag;
  5257. /***/ }),
  5258. /***/ "./node_modules/lodash/_basePropertyOf.js":
  5259. /*!************************************************!*\
  5260. !*** ./node_modules/lodash/_basePropertyOf.js ***!
  5261. \************************************************/
  5262. /*! no static exports found */
  5263. /***/ (function(module, exports) {
  5264. /**
  5265. * The base implementation of `_.propertyOf` without support for deep paths.
  5266. *
  5267. * @private
  5268. * @param {Object} object The object to query.
  5269. * @returns {Function} Returns the new accessor function.
  5270. */
  5271. function basePropertyOf(object) {
  5272. return function(key) {
  5273. return object == null ? undefined : object[key];
  5274. };
  5275. }
  5276. module.exports = basePropertyOf;
  5277. /***/ }),
  5278. /***/ "./node_modules/lodash/_baseToString.js":
  5279. /*!**********************************************!*\
  5280. !*** ./node_modules/lodash/_baseToString.js ***!
  5281. \**********************************************/
  5282. /*! no static exports found */
  5283. /***/ (function(module, exports, __webpack_require__) {
  5284. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  5285. arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  5286. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  5287. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  5288. /** Used as references for various `Number` constants. */
  5289. var INFINITY = 1 / 0;
  5290. /** Used to convert symbols to primitives and strings. */
  5291. var symbolProto = Symbol ? Symbol.prototype : undefined,
  5292. symbolToString = symbolProto ? symbolProto.toString : undefined;
  5293. /**
  5294. * The base implementation of `_.toString` which doesn't convert nullish
  5295. * values to empty strings.
  5296. *
  5297. * @private
  5298. * @param {*} value The value to process.
  5299. * @returns {string} Returns the string.
  5300. */
  5301. function baseToString(value) {
  5302. // Exit early for strings to avoid a performance hit in some environments.
  5303. if (typeof value == 'string') {
  5304. return value;
  5305. }
  5306. if (isArray(value)) {
  5307. // Recursively convert values (susceptible to call stack limits).
  5308. return arrayMap(value, baseToString) + '';
  5309. }
  5310. if (isSymbol(value)) {
  5311. return symbolToString ? symbolToString.call(value) : '';
  5312. }
  5313. var result = (value + '');
  5314. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  5315. }
  5316. module.exports = baseToString;
  5317. /***/ }),
  5318. /***/ "./node_modules/lodash/_escapeHtmlChar.js":
  5319. /*!************************************************!*\
  5320. !*** ./node_modules/lodash/_escapeHtmlChar.js ***!
  5321. \************************************************/
  5322. /*! no static exports found */
  5323. /***/ (function(module, exports, __webpack_require__) {
  5324. var basePropertyOf = __webpack_require__(/*! ./_basePropertyOf */ "./node_modules/lodash/_basePropertyOf.js");
  5325. /** Used to map characters to HTML entities. */
  5326. var htmlEscapes = {
  5327. '&': '&amp;',
  5328. '<': '&lt;',
  5329. '>': '&gt;',
  5330. '"': '&quot;',
  5331. "'": '&#39;'
  5332. };
  5333. /**
  5334. * Used by `_.escape` to convert characters to HTML entities.
  5335. *
  5336. * @private
  5337. * @param {string} chr The matched character to escape.
  5338. * @returns {string} Returns the escaped character.
  5339. */
  5340. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  5341. module.exports = escapeHtmlChar;
  5342. /***/ }),
  5343. /***/ "./node_modules/lodash/_freeGlobal.js":
  5344. /*!********************************************!*\
  5345. !*** ./node_modules/lodash/_freeGlobal.js ***!
  5346. \********************************************/
  5347. /*! no static exports found */
  5348. /***/ (function(module, exports, __webpack_require__) {
  5349. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  5350. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  5351. module.exports = freeGlobal;
  5352. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  5353. /***/ }),
  5354. /***/ "./node_modules/lodash/_getRawTag.js":
  5355. /*!*******************************************!*\
  5356. !*** ./node_modules/lodash/_getRawTag.js ***!
  5357. \*******************************************/
  5358. /*! no static exports found */
  5359. /***/ (function(module, exports, __webpack_require__) {
  5360. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
  5361. /** Used for built-in method references. */
  5362. var objectProto = Object.prototype;
  5363. /** Used to check objects for own properties. */
  5364. var hasOwnProperty = objectProto.hasOwnProperty;
  5365. /**
  5366. * Used to resolve the
  5367. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  5368. * of values.
  5369. */
  5370. var nativeObjectToString = objectProto.toString;
  5371. /** Built-in value references. */
  5372. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  5373. /**
  5374. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  5375. *
  5376. * @private
  5377. * @param {*} value The value to query.
  5378. * @returns {string} Returns the raw `toStringTag`.
  5379. */
  5380. function getRawTag(value) {
  5381. var isOwn = hasOwnProperty.call(value, symToStringTag),
  5382. tag = value[symToStringTag];
  5383. try {
  5384. value[symToStringTag] = undefined;
  5385. var unmasked = true;
  5386. } catch (e) {}
  5387. var result = nativeObjectToString.call(value);
  5388. if (unmasked) {
  5389. if (isOwn) {
  5390. value[symToStringTag] = tag;
  5391. } else {
  5392. delete value[symToStringTag];
  5393. }
  5394. }
  5395. return result;
  5396. }
  5397. module.exports = getRawTag;
  5398. /***/ }),
  5399. /***/ "./node_modules/lodash/_objectToString.js":
  5400. /*!************************************************!*\
  5401. !*** ./node_modules/lodash/_objectToString.js ***!
  5402. \************************************************/
  5403. /*! no static exports found */
  5404. /***/ (function(module, exports) {
  5405. /** Used for built-in method references. */
  5406. var objectProto = Object.prototype;
  5407. /**
  5408. * Used to resolve the
  5409. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  5410. * of values.
  5411. */
  5412. var nativeObjectToString = objectProto.toString;
  5413. /**
  5414. * Converts `value` to a string using `Object.prototype.toString`.
  5415. *
  5416. * @private
  5417. * @param {*} value The value to convert.
  5418. * @returns {string} Returns the converted string.
  5419. */
  5420. function objectToString(value) {
  5421. return nativeObjectToString.call(value);
  5422. }
  5423. module.exports = objectToString;
  5424. /***/ }),
  5425. /***/ "./node_modules/lodash/_root.js":
  5426. /*!**************************************!*\
  5427. !*** ./node_modules/lodash/_root.js ***!
  5428. \**************************************/
  5429. /*! no static exports found */
  5430. /***/ (function(module, exports, __webpack_require__) {
  5431. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
  5432. /** Detect free variable `self`. */
  5433. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  5434. /** Used as a reference to the global object. */
  5435. var root = freeGlobal || freeSelf || Function('return this')();
  5436. module.exports = root;
  5437. /***/ }),
  5438. /***/ "./node_modules/lodash/escape.js":
  5439. /*!***************************************!*\
  5440. !*** ./node_modules/lodash/escape.js ***!
  5441. \***************************************/
  5442. /*! no static exports found */
  5443. /***/ (function(module, exports, __webpack_require__) {
  5444. var escapeHtmlChar = __webpack_require__(/*! ./_escapeHtmlChar */ "./node_modules/lodash/_escapeHtmlChar.js"),
  5445. toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  5446. /** Used to match HTML entities and HTML characters. */
  5447. var reUnescapedHtml = /[&<>"']/g,
  5448. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  5449. /**
  5450. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  5451. * corresponding HTML entities.
  5452. *
  5453. * **Note:** No other characters are escaped. To escape additional
  5454. * characters use a third-party library like [_he_](https://mths.be/he).
  5455. *
  5456. * Though the ">" character is escaped for symmetry, characters like
  5457. * ">" and "/" don't need escaping in HTML and have no special meaning
  5458. * unless they're part of a tag or unquoted attribute value. See
  5459. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  5460. * (under "semi-related fun fact") for more details.
  5461. *
  5462. * When working with HTML you should always
  5463. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  5464. * XSS vectors.
  5465. *
  5466. * @static
  5467. * @since 0.1.0
  5468. * @memberOf _
  5469. * @category String
  5470. * @param {string} [string=''] The string to escape.
  5471. * @returns {string} Returns the escaped string.
  5472. * @example
  5473. *
  5474. * _.escape('fred, barney, & pebbles');
  5475. * // => 'fred, barney, &amp; pebbles'
  5476. */
  5477. function escape(string) {
  5478. string = toString(string);
  5479. return (string && reHasUnescapedHtml.test(string))
  5480. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  5481. : string;
  5482. }
  5483. module.exports = escape;
  5484. /***/ }),
  5485. /***/ "./node_modules/lodash/isArray.js":
  5486. /*!****************************************!*\
  5487. !*** ./node_modules/lodash/isArray.js ***!
  5488. \****************************************/
  5489. /*! no static exports found */
  5490. /***/ (function(module, exports) {
  5491. /**
  5492. * Checks if `value` is classified as an `Array` object.
  5493. *
  5494. * @static
  5495. * @memberOf _
  5496. * @since 0.1.0
  5497. * @category Lang
  5498. * @param {*} value The value to check.
  5499. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  5500. * @example
  5501. *
  5502. * _.isArray([1, 2, 3]);
  5503. * // => true
  5504. *
  5505. * _.isArray(document.body.children);
  5506. * // => false
  5507. *
  5508. * _.isArray('abc');
  5509. * // => false
  5510. *
  5511. * _.isArray(_.noop);
  5512. * // => false
  5513. */
  5514. var isArray = Array.isArray;
  5515. module.exports = isArray;
  5516. /***/ }),
  5517. /***/ "./node_modules/lodash/isObjectLike.js":
  5518. /*!*********************************************!*\
  5519. !*** ./node_modules/lodash/isObjectLike.js ***!
  5520. \*********************************************/
  5521. /*! no static exports found */
  5522. /***/ (function(module, exports) {
  5523. /**
  5524. * Checks if `value` is object-like. A value is object-like if it's not `null`
  5525. * and has a `typeof` result of "object".
  5526. *
  5527. * @static
  5528. * @memberOf _
  5529. * @since 4.0.0
  5530. * @category Lang
  5531. * @param {*} value The value to check.
  5532. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  5533. * @example
  5534. *
  5535. * _.isObjectLike({});
  5536. * // => true
  5537. *
  5538. * _.isObjectLike([1, 2, 3]);
  5539. * // => true
  5540. *
  5541. * _.isObjectLike(_.noop);
  5542. * // => false
  5543. *
  5544. * _.isObjectLike(null);
  5545. * // => false
  5546. */
  5547. function isObjectLike(value) {
  5548. return value != null && typeof value == 'object';
  5549. }
  5550. module.exports = isObjectLike;
  5551. /***/ }),
  5552. /***/ "./node_modules/lodash/isSymbol.js":
  5553. /*!*****************************************!*\
  5554. !*** ./node_modules/lodash/isSymbol.js ***!
  5555. \*****************************************/
  5556. /*! no static exports found */
  5557. /***/ (function(module, exports, __webpack_require__) {
  5558. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  5559. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  5560. /** `Object#toString` result references. */
  5561. var symbolTag = '[object Symbol]';
  5562. /**
  5563. * Checks if `value` is classified as a `Symbol` primitive or object.
  5564. *
  5565. * @static
  5566. * @memberOf _
  5567. * @since 4.0.0
  5568. * @category Lang
  5569. * @param {*} value The value to check.
  5570. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  5571. * @example
  5572. *
  5573. * _.isSymbol(Symbol.iterator);
  5574. * // => true
  5575. *
  5576. * _.isSymbol('abc');
  5577. * // => false
  5578. */
  5579. function isSymbol(value) {
  5580. return typeof value == 'symbol' ||
  5581. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  5582. }
  5583. module.exports = isSymbol;
  5584. /***/ }),
  5585. /***/ "./node_modules/lodash/toString.js":
  5586. /*!*****************************************!*\
  5587. !*** ./node_modules/lodash/toString.js ***!
  5588. \*****************************************/
  5589. /*! no static exports found */
  5590. /***/ (function(module, exports, __webpack_require__) {
  5591. var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
  5592. /**
  5593. * Converts `value` to a string. An empty string is returned for `null`
  5594. * and `undefined` values. The sign of `-0` is preserved.
  5595. *
  5596. * @static
  5597. * @memberOf _
  5598. * @since 4.0.0
  5599. * @category Lang
  5600. * @param {*} value The value to convert.
  5601. * @returns {string} Returns the converted string.
  5602. * @example
  5603. *
  5604. * _.toString(null);
  5605. * // => ''
  5606. *
  5607. * _.toString(-0);
  5608. * // => '-0'
  5609. *
  5610. * _.toString([1, 2, 3]);
  5611. * // => '1,2,3'
  5612. */
  5613. function toString(value) {
  5614. return value == null ? '' : baseToString(value);
  5615. }
  5616. module.exports = toString;
  5617. /***/ }),
  5618. /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
  5619. /*!**************************************************!*\
  5620. !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
  5621. \**************************************************/
  5622. /*! no static exports found */
  5623. /***/ (function(module, exports, __webpack_require__) {
  5624. var map = {
  5625. "./af": "./node_modules/moment/locale/af.js",
  5626. "./af.js": "./node_modules/moment/locale/af.js",
  5627. "./ar": "./node_modules/moment/locale/ar.js",
  5628. "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
  5629. "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
  5630. "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
  5631. "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
  5632. "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
  5633. "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
  5634. "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
  5635. "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
  5636. "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
  5637. "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
  5638. "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
  5639. "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
  5640. "./ar.js": "./node_modules/moment/locale/ar.js",
  5641. "./az": "./node_modules/moment/locale/az.js",
  5642. "./az.js": "./node_modules/moment/locale/az.js",
  5643. "./be": "./node_modules/moment/locale/be.js",
  5644. "./be.js": "./node_modules/moment/locale/be.js",
  5645. "./bg": "./node_modules/moment/locale/bg.js",
  5646. "./bg.js": "./node_modules/moment/locale/bg.js",
  5647. "./bm": "./node_modules/moment/locale/bm.js",
  5648. "./bm.js": "./node_modules/moment/locale/bm.js",
  5649. "./bn": "./node_modules/moment/locale/bn.js",
  5650. "./bn.js": "./node_modules/moment/locale/bn.js",
  5651. "./bo": "./node_modules/moment/locale/bo.js",
  5652. "./bo.js": "./node_modules/moment/locale/bo.js",
  5653. "./br": "./node_modules/moment/locale/br.js",
  5654. "./br.js": "./node_modules/moment/locale/br.js",
  5655. "./bs": "./node_modules/moment/locale/bs.js",
  5656. "./bs.js": "./node_modules/moment/locale/bs.js",
  5657. "./ca": "./node_modules/moment/locale/ca.js",
  5658. "./ca.js": "./node_modules/moment/locale/ca.js",
  5659. "./cs": "./node_modules/moment/locale/cs.js",
  5660. "./cs.js": "./node_modules/moment/locale/cs.js",
  5661. "./cv": "./node_modules/moment/locale/cv.js",
  5662. "./cv.js": "./node_modules/moment/locale/cv.js",
  5663. "./cy": "./node_modules/moment/locale/cy.js",
  5664. "./cy.js": "./node_modules/moment/locale/cy.js",
  5665. "./da": "./node_modules/moment/locale/da.js",
  5666. "./da.js": "./node_modules/moment/locale/da.js",
  5667. "./de": "./node_modules/moment/locale/de.js",
  5668. "./de-at": "./node_modules/moment/locale/de-at.js",
  5669. "./de-at.js": "./node_modules/moment/locale/de-at.js",
  5670. "./de-ch": "./node_modules/moment/locale/de-ch.js",
  5671. "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
  5672. "./de.js": "./node_modules/moment/locale/de.js",
  5673. "./dv": "./node_modules/moment/locale/dv.js",
  5674. "./dv.js": "./node_modules/moment/locale/dv.js",
  5675. "./el": "./node_modules/moment/locale/el.js",
  5676. "./el.js": "./node_modules/moment/locale/el.js",
  5677. "./en-au": "./node_modules/moment/locale/en-au.js",
  5678. "./en-au.js": "./node_modules/moment/locale/en-au.js",
  5679. "./en-ca": "./node_modules/moment/locale/en-ca.js",
  5680. "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
  5681. "./en-gb": "./node_modules/moment/locale/en-gb.js",
  5682. "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
  5683. "./en-ie": "./node_modules/moment/locale/en-ie.js",
  5684. "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
  5685. "./en-nz": "./node_modules/moment/locale/en-nz.js",
  5686. "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
  5687. "./eo": "./node_modules/moment/locale/eo.js",
  5688. "./eo.js": "./node_modules/moment/locale/eo.js",
  5689. "./es": "./node_modules/moment/locale/es.js",
  5690. "./es-do": "./node_modules/moment/locale/es-do.js",
  5691. "./es-do.js": "./node_modules/moment/locale/es-do.js",
  5692. "./es-us": "./node_modules/moment/locale/es-us.js",
  5693. "./es-us.js": "./node_modules/moment/locale/es-us.js",
  5694. "./es.js": "./node_modules/moment/locale/es.js",
  5695. "./et": "./node_modules/moment/locale/et.js",
  5696. "./et.js": "./node_modules/moment/locale/et.js",
  5697. "./eu": "./node_modules/moment/locale/eu.js",
  5698. "./eu.js": "./node_modules/moment/locale/eu.js",
  5699. "./fa": "./node_modules/moment/locale/fa.js",
  5700. "./fa.js": "./node_modules/moment/locale/fa.js",
  5701. "./fi": "./node_modules/moment/locale/fi.js",
  5702. "./fi.js": "./node_modules/moment/locale/fi.js",
  5703. "./fo": "./node_modules/moment/locale/fo.js",
  5704. "./fo.js": "./node_modules/moment/locale/fo.js",
  5705. "./fr": "./node_modules/moment/locale/fr.js",
  5706. "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
  5707. "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
  5708. "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
  5709. "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
  5710. "./fr.js": "./node_modules/moment/locale/fr.js",
  5711. "./fy": "./node_modules/moment/locale/fy.js",
  5712. "./fy.js": "./node_modules/moment/locale/fy.js",
  5713. "./gd": "./node_modules/moment/locale/gd.js",
  5714. "./gd.js": "./node_modules/moment/locale/gd.js",
  5715. "./gl": "./node_modules/moment/locale/gl.js",
  5716. "./gl.js": "./node_modules/moment/locale/gl.js",
  5717. "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
  5718. "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
  5719. "./gu": "./node_modules/moment/locale/gu.js",
  5720. "./gu.js": "./node_modules/moment/locale/gu.js",
  5721. "./he": "./node_modules/moment/locale/he.js",
  5722. "./he.js": "./node_modules/moment/locale/he.js",
  5723. "./hi": "./node_modules/moment/locale/hi.js",
  5724. "./hi.js": "./node_modules/moment/locale/hi.js",
  5725. "./hr": "./node_modules/moment/locale/hr.js",
  5726. "./hr.js": "./node_modules/moment/locale/hr.js",
  5727. "./hu": "./node_modules/moment/locale/hu.js",
  5728. "./hu.js": "./node_modules/moment/locale/hu.js",
  5729. "./hy-am": "./node_modules/moment/locale/hy-am.js",
  5730. "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
  5731. "./id": "./node_modules/moment/locale/id.js",
  5732. "./id.js": "./node_modules/moment/locale/id.js",
  5733. "./is": "./node_modules/moment/locale/is.js",
  5734. "./is.js": "./node_modules/moment/locale/is.js",
  5735. "./it": "./node_modules/moment/locale/it.js",
  5736. "./it.js": "./node_modules/moment/locale/it.js",
  5737. "./ja": "./node_modules/moment/locale/ja.js",
  5738. "./ja.js": "./node_modules/moment/locale/ja.js",
  5739. "./jv": "./node_modules/moment/locale/jv.js",
  5740. "./jv.js": "./node_modules/moment/locale/jv.js",
  5741. "./ka": "./node_modules/moment/locale/ka.js",
  5742. "./ka.js": "./node_modules/moment/locale/ka.js",
  5743. "./kk": "./node_modules/moment/locale/kk.js",
  5744. "./kk.js": "./node_modules/moment/locale/kk.js",
  5745. "./km": "./node_modules/moment/locale/km.js",
  5746. "./km.js": "./node_modules/moment/locale/km.js",
  5747. "./kn": "./node_modules/moment/locale/kn.js",
  5748. "./kn.js": "./node_modules/moment/locale/kn.js",
  5749. "./ko": "./node_modules/moment/locale/ko.js",
  5750. "./ko.js": "./node_modules/moment/locale/ko.js",
  5751. "./ky": "./node_modules/moment/locale/ky.js",
  5752. "./ky.js": "./node_modules/moment/locale/ky.js",
  5753. "./lb": "./node_modules/moment/locale/lb.js",
  5754. "./lb.js": "./node_modules/moment/locale/lb.js",
  5755. "./lo": "./node_modules/moment/locale/lo.js",
  5756. "./lo.js": "./node_modules/moment/locale/lo.js",
  5757. "./lt": "./node_modules/moment/locale/lt.js",
  5758. "./lt.js": "./node_modules/moment/locale/lt.js",
  5759. "./lv": "./node_modules/moment/locale/lv.js",
  5760. "./lv.js": "./node_modules/moment/locale/lv.js",
  5761. "./me": "./node_modules/moment/locale/me.js",
  5762. "./me.js": "./node_modules/moment/locale/me.js",
  5763. "./mi": "./node_modules/moment/locale/mi.js",
  5764. "./mi.js": "./node_modules/moment/locale/mi.js",
  5765. "./mk": "./node_modules/moment/locale/mk.js",
  5766. "./mk.js": "./node_modules/moment/locale/mk.js",
  5767. "./ml": "./node_modules/moment/locale/ml.js",
  5768. "./ml.js": "./node_modules/moment/locale/ml.js",
  5769. "./mr": "./node_modules/moment/locale/mr.js",
  5770. "./mr.js": "./node_modules/moment/locale/mr.js",
  5771. "./ms": "./node_modules/moment/locale/ms.js",
  5772. "./ms-my": "./node_modules/moment/locale/ms-my.js",
  5773. "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
  5774. "./ms.js": "./node_modules/moment/locale/ms.js",
  5775. "./my": "./node_modules/moment/locale/my.js",
  5776. "./my.js": "./node_modules/moment/locale/my.js",
  5777. "./nb": "./node_modules/moment/locale/nb.js",
  5778. "./nb.js": "./node_modules/moment/locale/nb.js",
  5779. "./ne": "./node_modules/moment/locale/ne.js",
  5780. "./ne.js": "./node_modules/moment/locale/ne.js",
  5781. "./nl": "./node_modules/moment/locale/nl.js",
  5782. "./nl-be": "./node_modules/moment/locale/nl-be.js",
  5783. "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
  5784. "./nl.js": "./node_modules/moment/locale/nl.js",
  5785. "./nn": "./node_modules/moment/locale/nn.js",
  5786. "./nn.js": "./node_modules/moment/locale/nn.js",
  5787. "./pa-in": "./node_modules/moment/locale/pa-in.js",
  5788. "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
  5789. "./pl": "./node_modules/moment/locale/pl.js",
  5790. "./pl.js": "./node_modules/moment/locale/pl.js",
  5791. "./pt": "./node_modules/moment/locale/pt.js",
  5792. "./pt-br": "./node_modules/moment/locale/pt-br.js",
  5793. "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
  5794. "./pt.js": "./node_modules/moment/locale/pt.js",
  5795. "./ro": "./node_modules/moment/locale/ro.js",
  5796. "./ro.js": "./node_modules/moment/locale/ro.js",
  5797. "./ru": "./node_modules/moment/locale/ru.js",
  5798. "./ru.js": "./node_modules/moment/locale/ru.js",
  5799. "./sd": "./node_modules/moment/locale/sd.js",
  5800. "./sd.js": "./node_modules/moment/locale/sd.js",
  5801. "./se": "./node_modules/moment/locale/se.js",
  5802. "./se.js": "./node_modules/moment/locale/se.js",
  5803. "./si": "./node_modules/moment/locale/si.js",
  5804. "./si.js": "./node_modules/moment/locale/si.js",
  5805. "./sk": "./node_modules/moment/locale/sk.js",
  5806. "./sk.js": "./node_modules/moment/locale/sk.js",
  5807. "./sl": "./node_modules/moment/locale/sl.js",
  5808. "./sl.js": "./node_modules/moment/locale/sl.js",
  5809. "./sq": "./node_modules/moment/locale/sq.js",
  5810. "./sq.js": "./node_modules/moment/locale/sq.js",
  5811. "./sr": "./node_modules/moment/locale/sr.js",
  5812. "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
  5813. "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
  5814. "./sr.js": "./node_modules/moment/locale/sr.js",
  5815. "./ss": "./node_modules/moment/locale/ss.js",
  5816. "./ss.js": "./node_modules/moment/locale/ss.js",
  5817. "./sv": "./node_modules/moment/locale/sv.js",
  5818. "./sv.js": "./node_modules/moment/locale/sv.js",
  5819. "./sw": "./node_modules/moment/locale/sw.js",
  5820. "./sw.js": "./node_modules/moment/locale/sw.js",
  5821. "./ta": "./node_modules/moment/locale/ta.js",
  5822. "./ta.js": "./node_modules/moment/locale/ta.js",
  5823. "./te": "./node_modules/moment/locale/te.js",
  5824. "./te.js": "./node_modules/moment/locale/te.js",
  5825. "./tet": "./node_modules/moment/locale/tet.js",
  5826. "./tet.js": "./node_modules/moment/locale/tet.js",
  5827. "./th": "./node_modules/moment/locale/th.js",
  5828. "./th.js": "./node_modules/moment/locale/th.js",
  5829. "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
  5830. "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
  5831. "./tlh": "./node_modules/moment/locale/tlh.js",
  5832. "./tlh.js": "./node_modules/moment/locale/tlh.js",
  5833. "./tr": "./node_modules/moment/locale/tr.js",
  5834. "./tr.js": "./node_modules/moment/locale/tr.js",
  5835. "./tzl": "./node_modules/moment/locale/tzl.js",
  5836. "./tzl.js": "./node_modules/moment/locale/tzl.js",
  5837. "./tzm": "./node_modules/moment/locale/tzm.js",
  5838. "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
  5839. "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
  5840. "./tzm.js": "./node_modules/moment/locale/tzm.js",
  5841. "./uk": "./node_modules/moment/locale/uk.js",
  5842. "./uk.js": "./node_modules/moment/locale/uk.js",
  5843. "./ur": "./node_modules/moment/locale/ur.js",
  5844. "./ur.js": "./node_modules/moment/locale/ur.js",
  5845. "./uz": "./node_modules/moment/locale/uz.js",
  5846. "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
  5847. "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
  5848. "./uz.js": "./node_modules/moment/locale/uz.js",
  5849. "./vi": "./node_modules/moment/locale/vi.js",
  5850. "./vi.js": "./node_modules/moment/locale/vi.js",
  5851. "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
  5852. "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
  5853. "./yo": "./node_modules/moment/locale/yo.js",
  5854. "./yo.js": "./node_modules/moment/locale/yo.js",
  5855. "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
  5856. "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
  5857. "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
  5858. "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
  5859. "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
  5860. "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
  5861. };
  5862. function webpackContext(req) {
  5863. var id = webpackContextResolve(req);
  5864. return __webpack_require__(id);
  5865. }
  5866. function webpackContextResolve(req) {
  5867. var id = map[req];
  5868. if(!(id + 1)) { // check for number or string
  5869. var e = new Error("Cannot find module '" + req + "'");
  5870. e.code = 'MODULE_NOT_FOUND';
  5871. throw e;
  5872. }
  5873. return id;
  5874. }
  5875. webpackContext.keys = function webpackContextKeys() {
  5876. return Object.keys(map);
  5877. };
  5878. webpackContext.resolve = webpackContextResolve;
  5879. module.exports = webpackContext;
  5880. webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
  5881. /***/ }),
  5882. /***/ "./node_modules/moment/locale/af.js":
  5883. /*!******************************************!*\
  5884. !*** ./node_modules/moment/locale/af.js ***!
  5885. \******************************************/
  5886. /*! no static exports found */
  5887. /***/ (function(module, exports, __webpack_require__) {
  5888. //! moment.js locale configuration
  5889. //! locale : Afrikaans [af]
  5890. //! author : Werner Mollentze : https://github.com/wernerm
  5891. ;(function (global, factory) {
  5892. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5893. undefined
  5894. }(this, (function (moment) { 'use strict';
  5895. var af = moment.defineLocale('af', {
  5896. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  5897. monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  5898. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  5899. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  5900. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  5901. meridiemParse: /vm|nm/i,
  5902. isPM : function (input) {
  5903. return /^nm$/i.test(input);
  5904. },
  5905. meridiem : function (hours, minutes, isLower) {
  5906. if (hours < 12) {
  5907. return isLower ? 'vm' : 'VM';
  5908. } else {
  5909. return isLower ? 'nm' : 'NM';
  5910. }
  5911. },
  5912. longDateFormat : {
  5913. LT : 'HH:mm',
  5914. LTS : 'HH:mm:ss',
  5915. L : 'DD/MM/YYYY',
  5916. LL : 'D MMMM YYYY',
  5917. LLL : 'D MMMM YYYY HH:mm',
  5918. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5919. },
  5920. calendar : {
  5921. sameDay : '[Vandag om] LT',
  5922. nextDay : '[Môre om] LT',
  5923. nextWeek : 'dddd [om] LT',
  5924. lastDay : '[Gister om] LT',
  5925. lastWeek : '[Laas] dddd [om] LT',
  5926. sameElse : 'L'
  5927. },
  5928. relativeTime : {
  5929. future : 'oor %s',
  5930. past : '%s gelede',
  5931. s : '\'n paar sekondes',
  5932. m : '\'n minuut',
  5933. mm : '%d minute',
  5934. h : '\'n uur',
  5935. hh : '%d ure',
  5936. d : '\'n dag',
  5937. dd : '%d dae',
  5938. M : '\'n maand',
  5939. MM : '%d maande',
  5940. y : '\'n jaar',
  5941. yy : '%d jaar'
  5942. },
  5943. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  5944. ordinal : function (number) {
  5945. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  5946. },
  5947. week : {
  5948. dow : 1, // Maandag is die eerste dag van die week.
  5949. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  5950. }
  5951. });
  5952. return af;
  5953. })));
  5954. /***/ }),
  5955. /***/ "./node_modules/moment/locale/ar-dz.js":
  5956. /*!*********************************************!*\
  5957. !*** ./node_modules/moment/locale/ar-dz.js ***!
  5958. \*********************************************/
  5959. /*! no static exports found */
  5960. /***/ (function(module, exports, __webpack_require__) {
  5961. //! moment.js locale configuration
  5962. //! locale : Arabic (Algeria) [ar-dz]
  5963. //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
  5964. ;(function (global, factory) {
  5965. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5966. undefined
  5967. }(this, (function (moment) { 'use strict';
  5968. var arDz = moment.defineLocale('ar-dz', {
  5969. months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5970. monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5971. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5972. weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5973. weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  5974. weekdaysParseExact : true,
  5975. longDateFormat : {
  5976. LT : 'HH:mm',
  5977. LTS : 'HH:mm:ss',
  5978. L : 'DD/MM/YYYY',
  5979. LL : 'D MMMM YYYY',
  5980. LLL : 'D MMMM YYYY HH:mm',
  5981. LLLL : 'dddd D MMMM YYYY HH:mm'
  5982. },
  5983. calendar : {
  5984. sameDay: '[اليوم على الساعة] LT',
  5985. nextDay: '[غدا على الساعة] LT',
  5986. nextWeek: 'dddd [على الساعة] LT',
  5987. lastDay: '[أمس على الساعة] LT',
  5988. lastWeek: 'dddd [على الساعة] LT',
  5989. sameElse: 'L'
  5990. },
  5991. relativeTime : {
  5992. future : 'في %s',
  5993. past : 'منذ %s',
  5994. s : 'ثوان',
  5995. m : 'دقيقة',
  5996. mm : '%d دقائق',
  5997. h : 'ساعة',
  5998. hh : '%d ساعات',
  5999. d : 'يوم',
  6000. dd : '%d أيام',
  6001. M : 'شهر',
  6002. MM : '%d أشهر',
  6003. y : 'سنة',
  6004. yy : '%d سنوات'
  6005. },
  6006. week : {
  6007. dow : 0, // Sunday is the first day of the week.
  6008. doy : 4 // The week that contains Jan 1st is the first week of the year.
  6009. }
  6010. });
  6011. return arDz;
  6012. })));
  6013. /***/ }),
  6014. /***/ "./node_modules/moment/locale/ar-kw.js":
  6015. /*!*********************************************!*\
  6016. !*** ./node_modules/moment/locale/ar-kw.js ***!
  6017. \*********************************************/
  6018. /*! no static exports found */
  6019. /***/ (function(module, exports, __webpack_require__) {
  6020. //! moment.js locale configuration
  6021. //! locale : Arabic (Kuwait) [ar-kw]
  6022. //! author : Nusret Parlak: https://github.com/nusretparlak
  6023. ;(function (global, factory) {
  6024. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6025. undefined
  6026. }(this, (function (moment) { 'use strict';
  6027. var arKw = moment.defineLocale('ar-kw', {
  6028. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  6029. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  6030. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6031. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  6032. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6033. weekdaysParseExact : true,
  6034. longDateFormat : {
  6035. LT : 'HH:mm',
  6036. LTS : 'HH:mm:ss',
  6037. L : 'DD/MM/YYYY',
  6038. LL : 'D MMMM YYYY',
  6039. LLL : 'D MMMM YYYY HH:mm',
  6040. LLLL : 'dddd D MMMM YYYY HH:mm'
  6041. },
  6042. calendar : {
  6043. sameDay: '[اليوم على الساعة] LT',
  6044. nextDay: '[غدا على الساعة] LT',
  6045. nextWeek: 'dddd [على الساعة] LT',
  6046. lastDay: '[أمس على الساعة] LT',
  6047. lastWeek: 'dddd [على الساعة] LT',
  6048. sameElse: 'L'
  6049. },
  6050. relativeTime : {
  6051. future : 'في %s',
  6052. past : 'منذ %s',
  6053. s : 'ثوان',
  6054. m : 'دقيقة',
  6055. mm : '%d دقائق',
  6056. h : 'ساعة',
  6057. hh : '%d ساعات',
  6058. d : 'يوم',
  6059. dd : '%d أيام',
  6060. M : 'شهر',
  6061. MM : '%d أشهر',
  6062. y : 'سنة',
  6063. yy : '%d سنوات'
  6064. },
  6065. week : {
  6066. dow : 0, // Sunday is the first day of the week.
  6067. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6068. }
  6069. });
  6070. return arKw;
  6071. })));
  6072. /***/ }),
  6073. /***/ "./node_modules/moment/locale/ar-ly.js":
  6074. /*!*********************************************!*\
  6075. !*** ./node_modules/moment/locale/ar-ly.js ***!
  6076. \*********************************************/
  6077. /*! no static exports found */
  6078. /***/ (function(module, exports, __webpack_require__) {
  6079. //! moment.js locale configuration
  6080. //! locale : Arabic (Lybia) [ar-ly]
  6081. //! author : Ali Hmer: https://github.com/kikoanis
  6082. ;(function (global, factory) {
  6083. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6084. undefined
  6085. }(this, (function (moment) { 'use strict';
  6086. var symbolMap = {
  6087. '1': '1',
  6088. '2': '2',
  6089. '3': '3',
  6090. '4': '4',
  6091. '5': '5',
  6092. '6': '6',
  6093. '7': '7',
  6094. '8': '8',
  6095. '9': '9',
  6096. '0': '0'
  6097. };
  6098. var pluralForm = function (n) {
  6099. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  6100. };
  6101. var plurals = {
  6102. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  6103. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  6104. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  6105. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  6106. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  6107. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  6108. };
  6109. var pluralize = function (u) {
  6110. return function (number, withoutSuffix, string, isFuture) {
  6111. var f = pluralForm(number),
  6112. str = plurals[u][pluralForm(number)];
  6113. if (f === 2) {
  6114. str = str[withoutSuffix ? 0 : 1];
  6115. }
  6116. return str.replace(/%d/i, number);
  6117. };
  6118. };
  6119. var months = [
  6120. 'يناير',
  6121. 'فبراير',
  6122. 'مارس',
  6123. 'أبريل',
  6124. 'مايو',
  6125. 'يونيو',
  6126. 'يوليو',
  6127. 'أغسطس',
  6128. 'سبتمبر',
  6129. 'أكتوبر',
  6130. 'نوفمبر',
  6131. 'ديسمبر'
  6132. ];
  6133. var arLy = moment.defineLocale('ar-ly', {
  6134. months : months,
  6135. monthsShort : months,
  6136. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6137. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  6138. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6139. weekdaysParseExact : true,
  6140. longDateFormat : {
  6141. LT : 'HH:mm',
  6142. LTS : 'HH:mm:ss',
  6143. L : 'D/\u200FM/\u200FYYYY',
  6144. LL : 'D MMMM YYYY',
  6145. LLL : 'D MMMM YYYY HH:mm',
  6146. LLLL : 'dddd D MMMM YYYY HH:mm'
  6147. },
  6148. meridiemParse: /ص|م/,
  6149. isPM : function (input) {
  6150. return 'م' === input;
  6151. },
  6152. meridiem : function (hour, minute, isLower) {
  6153. if (hour < 12) {
  6154. return 'ص';
  6155. } else {
  6156. return 'م';
  6157. }
  6158. },
  6159. calendar : {
  6160. sameDay: '[اليوم عند الساعة] LT',
  6161. nextDay: '[غدًا عند الساعة] LT',
  6162. nextWeek: 'dddd [عند الساعة] LT',
  6163. lastDay: '[أمس عند الساعة] LT',
  6164. lastWeek: 'dddd [عند الساعة] LT',
  6165. sameElse: 'L'
  6166. },
  6167. relativeTime : {
  6168. future : 'بعد %s',
  6169. past : 'منذ %s',
  6170. s : pluralize('s'),
  6171. m : pluralize('m'),
  6172. mm : pluralize('m'),
  6173. h : pluralize('h'),
  6174. hh : pluralize('h'),
  6175. d : pluralize('d'),
  6176. dd : pluralize('d'),
  6177. M : pluralize('M'),
  6178. MM : pluralize('M'),
  6179. y : pluralize('y'),
  6180. yy : pluralize('y')
  6181. },
  6182. preparse: function (string) {
  6183. return string.replace(/،/g, ',');
  6184. },
  6185. postformat: function (string) {
  6186. return string.replace(/\d/g, function (match) {
  6187. return symbolMap[match];
  6188. }).replace(/,/g, '،');
  6189. },
  6190. week : {
  6191. dow : 6, // Saturday is the first day of the week.
  6192. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6193. }
  6194. });
  6195. return arLy;
  6196. })));
  6197. /***/ }),
  6198. /***/ "./node_modules/moment/locale/ar-ma.js":
  6199. /*!*********************************************!*\
  6200. !*** ./node_modules/moment/locale/ar-ma.js ***!
  6201. \*********************************************/
  6202. /*! no static exports found */
  6203. /***/ (function(module, exports, __webpack_require__) {
  6204. //! moment.js locale configuration
  6205. //! locale : Arabic (Morocco) [ar-ma]
  6206. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  6207. //! author : Abdel Said : https://github.com/abdelsaid
  6208. ;(function (global, factory) {
  6209. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6210. undefined
  6211. }(this, (function (moment) { 'use strict';
  6212. var arMa = moment.defineLocale('ar-ma', {
  6213. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  6214. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  6215. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6216. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  6217. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6218. weekdaysParseExact : true,
  6219. longDateFormat : {
  6220. LT : 'HH:mm',
  6221. LTS : 'HH:mm:ss',
  6222. L : 'DD/MM/YYYY',
  6223. LL : 'D MMMM YYYY',
  6224. LLL : 'D MMMM YYYY HH:mm',
  6225. LLLL : 'dddd D MMMM YYYY HH:mm'
  6226. },
  6227. calendar : {
  6228. sameDay: '[اليوم على الساعة] LT',
  6229. nextDay: '[غدا على الساعة] LT',
  6230. nextWeek: 'dddd [على الساعة] LT',
  6231. lastDay: '[أمس على الساعة] LT',
  6232. lastWeek: 'dddd [على الساعة] LT',
  6233. sameElse: 'L'
  6234. },
  6235. relativeTime : {
  6236. future : 'في %s',
  6237. past : 'منذ %s',
  6238. s : 'ثوان',
  6239. m : 'دقيقة',
  6240. mm : '%d دقائق',
  6241. h : 'ساعة',
  6242. hh : '%d ساعات',
  6243. d : 'يوم',
  6244. dd : '%d أيام',
  6245. M : 'شهر',
  6246. MM : '%d أشهر',
  6247. y : 'سنة',
  6248. yy : '%d سنوات'
  6249. },
  6250. week : {
  6251. dow : 6, // Saturday is the first day of the week.
  6252. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6253. }
  6254. });
  6255. return arMa;
  6256. })));
  6257. /***/ }),
  6258. /***/ "./node_modules/moment/locale/ar-sa.js":
  6259. /*!*********************************************!*\
  6260. !*** ./node_modules/moment/locale/ar-sa.js ***!
  6261. \*********************************************/
  6262. /*! no static exports found */
  6263. /***/ (function(module, exports, __webpack_require__) {
  6264. //! moment.js locale configuration
  6265. //! locale : Arabic (Saudi Arabia) [ar-sa]
  6266. //! author : Suhail Alkowaileet : https://github.com/xsoh
  6267. ;(function (global, factory) {
  6268. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6269. undefined
  6270. }(this, (function (moment) { 'use strict';
  6271. var symbolMap = {
  6272. '1': '١',
  6273. '2': '٢',
  6274. '3': '٣',
  6275. '4': '٤',
  6276. '5': '٥',
  6277. '6': '٦',
  6278. '7': '٧',
  6279. '8': '٨',
  6280. '9': '٩',
  6281. '0': '٠'
  6282. };
  6283. var numberMap = {
  6284. '١': '1',
  6285. '٢': '2',
  6286. '٣': '3',
  6287. '٤': '4',
  6288. '٥': '5',
  6289. '٦': '6',
  6290. '٧': '7',
  6291. '٨': '8',
  6292. '٩': '9',
  6293. '٠': '0'
  6294. };
  6295. var arSa = moment.defineLocale('ar-sa', {
  6296. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  6297. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  6298. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6299. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  6300. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6301. weekdaysParseExact : true,
  6302. longDateFormat : {
  6303. LT : 'HH:mm',
  6304. LTS : 'HH:mm:ss',
  6305. L : 'DD/MM/YYYY',
  6306. LL : 'D MMMM YYYY',
  6307. LLL : 'D MMMM YYYY HH:mm',
  6308. LLLL : 'dddd D MMMM YYYY HH:mm'
  6309. },
  6310. meridiemParse: /ص|م/,
  6311. isPM : function (input) {
  6312. return 'م' === input;
  6313. },
  6314. meridiem : function (hour, minute, isLower) {
  6315. if (hour < 12) {
  6316. return 'ص';
  6317. } else {
  6318. return 'م';
  6319. }
  6320. },
  6321. calendar : {
  6322. sameDay: '[اليوم على الساعة] LT',
  6323. nextDay: '[غدا على الساعة] LT',
  6324. nextWeek: 'dddd [على الساعة] LT',
  6325. lastDay: '[أمس على الساعة] LT',
  6326. lastWeek: 'dddd [على الساعة] LT',
  6327. sameElse: 'L'
  6328. },
  6329. relativeTime : {
  6330. future : 'في %s',
  6331. past : 'منذ %s',
  6332. s : 'ثوان',
  6333. m : 'دقيقة',
  6334. mm : '%d دقائق',
  6335. h : 'ساعة',
  6336. hh : '%d ساعات',
  6337. d : 'يوم',
  6338. dd : '%d أيام',
  6339. M : 'شهر',
  6340. MM : '%d أشهر',
  6341. y : 'سنة',
  6342. yy : '%d سنوات'
  6343. },
  6344. preparse: function (string) {
  6345. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  6346. return numberMap[match];
  6347. }).replace(/،/g, ',');
  6348. },
  6349. postformat: function (string) {
  6350. return string.replace(/\d/g, function (match) {
  6351. return symbolMap[match];
  6352. }).replace(/,/g, '،');
  6353. },
  6354. week : {
  6355. dow : 0, // Sunday is the first day of the week.
  6356. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6357. }
  6358. });
  6359. return arSa;
  6360. })));
  6361. /***/ }),
  6362. /***/ "./node_modules/moment/locale/ar-tn.js":
  6363. /*!*********************************************!*\
  6364. !*** ./node_modules/moment/locale/ar-tn.js ***!
  6365. \*********************************************/
  6366. /*! no static exports found */
  6367. /***/ (function(module, exports, __webpack_require__) {
  6368. //! moment.js locale configuration
  6369. //! locale : Arabic (Tunisia) [ar-tn]
  6370. //! author : Nader Toukabri : https://github.com/naderio
  6371. ;(function (global, factory) {
  6372. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6373. undefined
  6374. }(this, (function (moment) { 'use strict';
  6375. var arTn = moment.defineLocale('ar-tn', {
  6376. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  6377. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  6378. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6379. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  6380. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6381. weekdaysParseExact : true,
  6382. longDateFormat: {
  6383. LT: 'HH:mm',
  6384. LTS: 'HH:mm:ss',
  6385. L: 'DD/MM/YYYY',
  6386. LL: 'D MMMM YYYY',
  6387. LLL: 'D MMMM YYYY HH:mm',
  6388. LLLL: 'dddd D MMMM YYYY HH:mm'
  6389. },
  6390. calendar: {
  6391. sameDay: '[اليوم على الساعة] LT',
  6392. nextDay: '[غدا على الساعة] LT',
  6393. nextWeek: 'dddd [على الساعة] LT',
  6394. lastDay: '[أمس على الساعة] LT',
  6395. lastWeek: 'dddd [على الساعة] LT',
  6396. sameElse: 'L'
  6397. },
  6398. relativeTime: {
  6399. future: 'في %s',
  6400. past: 'منذ %s',
  6401. s: 'ثوان',
  6402. m: 'دقيقة',
  6403. mm: '%d دقائق',
  6404. h: 'ساعة',
  6405. hh: '%d ساعات',
  6406. d: 'يوم',
  6407. dd: '%d أيام',
  6408. M: 'شهر',
  6409. MM: '%d أشهر',
  6410. y: 'سنة',
  6411. yy: '%d سنوات'
  6412. },
  6413. week: {
  6414. dow: 1, // Monday is the first day of the week.
  6415. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6416. }
  6417. });
  6418. return arTn;
  6419. })));
  6420. /***/ }),
  6421. /***/ "./node_modules/moment/locale/ar.js":
  6422. /*!******************************************!*\
  6423. !*** ./node_modules/moment/locale/ar.js ***!
  6424. \******************************************/
  6425. /*! no static exports found */
  6426. /***/ (function(module, exports, __webpack_require__) {
  6427. //! moment.js locale configuration
  6428. //! locale : Arabic [ar]
  6429. //! author : Abdel Said: https://github.com/abdelsaid
  6430. //! author : Ahmed Elkhatib
  6431. //! author : forabi https://github.com/forabi
  6432. ;(function (global, factory) {
  6433. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6434. undefined
  6435. }(this, (function (moment) { 'use strict';
  6436. var symbolMap = {
  6437. '1': '١',
  6438. '2': '٢',
  6439. '3': '٣',
  6440. '4': '٤',
  6441. '5': '٥',
  6442. '6': '٦',
  6443. '7': '٧',
  6444. '8': '٨',
  6445. '9': '٩',
  6446. '0': '٠'
  6447. };
  6448. var numberMap = {
  6449. '١': '1',
  6450. '٢': '2',
  6451. '٣': '3',
  6452. '٤': '4',
  6453. '٥': '5',
  6454. '٦': '6',
  6455. '٧': '7',
  6456. '٨': '8',
  6457. '٩': '9',
  6458. '٠': '0'
  6459. };
  6460. var pluralForm = function (n) {
  6461. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  6462. };
  6463. var plurals = {
  6464. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  6465. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  6466. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  6467. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  6468. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  6469. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  6470. };
  6471. var pluralize = function (u) {
  6472. return function (number, withoutSuffix, string, isFuture) {
  6473. var f = pluralForm(number),
  6474. str = plurals[u][pluralForm(number)];
  6475. if (f === 2) {
  6476. str = str[withoutSuffix ? 0 : 1];
  6477. }
  6478. return str.replace(/%d/i, number);
  6479. };
  6480. };
  6481. var months = [
  6482. 'كانون الثاني يناير',
  6483. 'شباط فبراير',
  6484. 'آذار مارس',
  6485. 'نيسان أبريل',
  6486. 'أيار مايو',
  6487. 'حزيران يونيو',
  6488. 'تموز يوليو',
  6489. 'آب أغسطس',
  6490. 'أيلول سبتمبر',
  6491. 'تشرين الأول أكتوبر',
  6492. 'تشرين الثاني نوفمبر',
  6493. 'كانون الأول ديسمبر'
  6494. ];
  6495. var ar = moment.defineLocale('ar', {
  6496. months : months,
  6497. monthsShort : months,
  6498. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6499. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  6500. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6501. weekdaysParseExact : true,
  6502. longDateFormat : {
  6503. LT : 'HH:mm',
  6504. LTS : 'HH:mm:ss',
  6505. L : 'D/\u200FM/\u200FYYYY',
  6506. LL : 'D MMMM YYYY',
  6507. LLL : 'D MMMM YYYY HH:mm',
  6508. LLLL : 'dddd D MMMM YYYY HH:mm'
  6509. },
  6510. meridiemParse: /ص|م/,
  6511. isPM : function (input) {
  6512. return 'م' === input;
  6513. },
  6514. meridiem : function (hour, minute, isLower) {
  6515. if (hour < 12) {
  6516. return 'ص';
  6517. } else {
  6518. return 'م';
  6519. }
  6520. },
  6521. calendar : {
  6522. sameDay: '[اليوم عند الساعة] LT',
  6523. nextDay: '[غدًا عند الساعة] LT',
  6524. nextWeek: 'dddd [عند الساعة] LT',
  6525. lastDay: '[أمس عند الساعة] LT',
  6526. lastWeek: 'dddd [عند الساعة] LT',
  6527. sameElse: 'L'
  6528. },
  6529. relativeTime : {
  6530. future : 'بعد %s',
  6531. past : 'منذ %s',
  6532. s : pluralize('s'),
  6533. m : pluralize('m'),
  6534. mm : pluralize('m'),
  6535. h : pluralize('h'),
  6536. hh : pluralize('h'),
  6537. d : pluralize('d'),
  6538. dd : pluralize('d'),
  6539. M : pluralize('M'),
  6540. MM : pluralize('M'),
  6541. y : pluralize('y'),
  6542. yy : pluralize('y')
  6543. },
  6544. preparse: function (string) {
  6545. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  6546. return numberMap[match];
  6547. }).replace(/،/g, ',');
  6548. },
  6549. postformat: function (string) {
  6550. return string.replace(/\d/g, function (match) {
  6551. return symbolMap[match];
  6552. }).replace(/,/g, '،');
  6553. },
  6554. week : {
  6555. dow : 6, // Saturday is the first day of the week.
  6556. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6557. }
  6558. });
  6559. return ar;
  6560. })));
  6561. /***/ }),
  6562. /***/ "./node_modules/moment/locale/az.js":
  6563. /*!******************************************!*\
  6564. !*** ./node_modules/moment/locale/az.js ***!
  6565. \******************************************/
  6566. /*! no static exports found */
  6567. /***/ (function(module, exports, __webpack_require__) {
  6568. //! moment.js locale configuration
  6569. //! locale : Azerbaijani [az]
  6570. //! author : topchiyev : https://github.com/topchiyev
  6571. ;(function (global, factory) {
  6572. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6573. undefined
  6574. }(this, (function (moment) { 'use strict';
  6575. var suffixes = {
  6576. 1: '-inci',
  6577. 5: '-inci',
  6578. 8: '-inci',
  6579. 70: '-inci',
  6580. 80: '-inci',
  6581. 2: '-nci',
  6582. 7: '-nci',
  6583. 20: '-nci',
  6584. 50: '-nci',
  6585. 3: '-üncü',
  6586. 4: '-üncü',
  6587. 100: '-üncü',
  6588. 6: '-ncı',
  6589. 9: '-uncu',
  6590. 10: '-uncu',
  6591. 30: '-uncu',
  6592. 60: '-ıncı',
  6593. 90: '-ıncı'
  6594. };
  6595. var az = moment.defineLocale('az', {
  6596. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  6597. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  6598. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  6599. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  6600. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  6601. weekdaysParseExact : true,
  6602. longDateFormat : {
  6603. LT : 'HH:mm',
  6604. LTS : 'HH:mm:ss',
  6605. L : 'DD.MM.YYYY',
  6606. LL : 'D MMMM YYYY',
  6607. LLL : 'D MMMM YYYY HH:mm',
  6608. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6609. },
  6610. calendar : {
  6611. sameDay : '[bugün saat] LT',
  6612. nextDay : '[sabah saat] LT',
  6613. nextWeek : '[gələn həftə] dddd [saat] LT',
  6614. lastDay : '[dünən] LT',
  6615. lastWeek : '[keçən həftə] dddd [saat] LT',
  6616. sameElse : 'L'
  6617. },
  6618. relativeTime : {
  6619. future : '%s sonra',
  6620. past : '%s əvvəl',
  6621. s : 'birneçə saniyyə',
  6622. m : 'bir dəqiqə',
  6623. mm : '%d dəqiqə',
  6624. h : 'bir saat',
  6625. hh : '%d saat',
  6626. d : 'bir gün',
  6627. dd : '%d gün',
  6628. M : 'bir ay',
  6629. MM : '%d ay',
  6630. y : 'bir il',
  6631. yy : '%d il'
  6632. },
  6633. meridiemParse: /gecə|səhər|gündüz|axşam/,
  6634. isPM : function (input) {
  6635. return /^(gündüz|axşam)$/.test(input);
  6636. },
  6637. meridiem : function (hour, minute, isLower) {
  6638. if (hour < 4) {
  6639. return 'gecə';
  6640. } else if (hour < 12) {
  6641. return 'səhər';
  6642. } else if (hour < 17) {
  6643. return 'gündüz';
  6644. } else {
  6645. return 'axşam';
  6646. }
  6647. },
  6648. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  6649. ordinal : function (number) {
  6650. if (number === 0) { // special case for zero
  6651. return number + '-ıncı';
  6652. }
  6653. var a = number % 10,
  6654. b = number % 100 - a,
  6655. c = number >= 100 ? 100 : null;
  6656. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  6657. },
  6658. week : {
  6659. dow : 1, // Monday is the first day of the week.
  6660. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6661. }
  6662. });
  6663. return az;
  6664. })));
  6665. /***/ }),
  6666. /***/ "./node_modules/moment/locale/be.js":
  6667. /*!******************************************!*\
  6668. !*** ./node_modules/moment/locale/be.js ***!
  6669. \******************************************/
  6670. /*! no static exports found */
  6671. /***/ (function(module, exports, __webpack_require__) {
  6672. //! moment.js locale configuration
  6673. //! locale : Belarusian [be]
  6674. //! author : Dmitry Demidov : https://github.com/demidov91
  6675. //! author: Praleska: http://praleska.pro/
  6676. //! Author : Menelion Elensúle : https://github.com/Oire
  6677. ;(function (global, factory) {
  6678. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6679. undefined
  6680. }(this, (function (moment) { 'use strict';
  6681. function plural(word, num) {
  6682. var forms = word.split('_');
  6683. 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]);
  6684. }
  6685. function relativeTimeWithPlural(number, withoutSuffix, key) {
  6686. var format = {
  6687. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  6688. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  6689. 'dd': 'дзень_дні_дзён',
  6690. 'MM': 'месяц_месяцы_месяцаў',
  6691. 'yy': 'год_гады_гадоў'
  6692. };
  6693. if (key === 'm') {
  6694. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  6695. }
  6696. else if (key === 'h') {
  6697. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  6698. }
  6699. else {
  6700. return number + ' ' + plural(format[key], +number);
  6701. }
  6702. }
  6703. var be = moment.defineLocale('be', {
  6704. months : {
  6705. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  6706. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  6707. },
  6708. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  6709. weekdays : {
  6710. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  6711. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  6712. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  6713. },
  6714. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  6715. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  6716. longDateFormat : {
  6717. LT : 'HH:mm',
  6718. LTS : 'HH:mm:ss',
  6719. L : 'DD.MM.YYYY',
  6720. LL : 'D MMMM YYYY г.',
  6721. LLL : 'D MMMM YYYY г., HH:mm',
  6722. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  6723. },
  6724. calendar : {
  6725. sameDay: '[Сёння ў] LT',
  6726. nextDay: '[Заўтра ў] LT',
  6727. lastDay: '[Учора ў] LT',
  6728. nextWeek: function () {
  6729. return '[У] dddd [ў] LT';
  6730. },
  6731. lastWeek: function () {
  6732. switch (this.day()) {
  6733. case 0:
  6734. case 3:
  6735. case 5:
  6736. case 6:
  6737. return '[У мінулую] dddd [ў] LT';
  6738. case 1:
  6739. case 2:
  6740. case 4:
  6741. return '[У мінулы] dddd [ў] LT';
  6742. }
  6743. },
  6744. sameElse: 'L'
  6745. },
  6746. relativeTime : {
  6747. future : 'праз %s',
  6748. past : '%s таму',
  6749. s : 'некалькі секунд',
  6750. m : relativeTimeWithPlural,
  6751. mm : relativeTimeWithPlural,
  6752. h : relativeTimeWithPlural,
  6753. hh : relativeTimeWithPlural,
  6754. d : 'дзень',
  6755. dd : relativeTimeWithPlural,
  6756. M : 'месяц',
  6757. MM : relativeTimeWithPlural,
  6758. y : 'год',
  6759. yy : relativeTimeWithPlural
  6760. },
  6761. meridiemParse: /ночы|раніцы|дня|вечара/,
  6762. isPM : function (input) {
  6763. return /^(дня|вечара)$/.test(input);
  6764. },
  6765. meridiem : function (hour, minute, isLower) {
  6766. if (hour < 4) {
  6767. return 'ночы';
  6768. } else if (hour < 12) {
  6769. return 'раніцы';
  6770. } else if (hour < 17) {
  6771. return 'дня';
  6772. } else {
  6773. return 'вечара';
  6774. }
  6775. },
  6776. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  6777. ordinal: function (number, period) {
  6778. switch (period) {
  6779. case 'M':
  6780. case 'd':
  6781. case 'DDD':
  6782. case 'w':
  6783. case 'W':
  6784. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  6785. case 'D':
  6786. return number + '-га';
  6787. default:
  6788. return number;
  6789. }
  6790. },
  6791. week : {
  6792. dow : 1, // Monday is the first day of the week.
  6793. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6794. }
  6795. });
  6796. return be;
  6797. })));
  6798. /***/ }),
  6799. /***/ "./node_modules/moment/locale/bg.js":
  6800. /*!******************************************!*\
  6801. !*** ./node_modules/moment/locale/bg.js ***!
  6802. \******************************************/
  6803. /*! no static exports found */
  6804. /***/ (function(module, exports, __webpack_require__) {
  6805. //! moment.js locale configuration
  6806. //! locale : Bulgarian [bg]
  6807. //! author : Krasen Borisov : https://github.com/kraz
  6808. ;(function (global, factory) {
  6809. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6810. undefined
  6811. }(this, (function (moment) { 'use strict';
  6812. var bg = moment.defineLocale('bg', {
  6813. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  6814. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  6815. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  6816. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  6817. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  6818. longDateFormat : {
  6819. LT : 'H:mm',
  6820. LTS : 'H:mm:ss',
  6821. L : 'D.MM.YYYY',
  6822. LL : 'D MMMM YYYY',
  6823. LLL : 'D MMMM YYYY H:mm',
  6824. LLLL : 'dddd, D MMMM YYYY H:mm'
  6825. },
  6826. calendar : {
  6827. sameDay : '[Днес в] LT',
  6828. nextDay : '[Утре в] LT',
  6829. nextWeek : 'dddd [в] LT',
  6830. lastDay : '[Вчера в] LT',
  6831. lastWeek : function () {
  6832. switch (this.day()) {
  6833. case 0:
  6834. case 3:
  6835. case 6:
  6836. return '[В изминалата] dddd [в] LT';
  6837. case 1:
  6838. case 2:
  6839. case 4:
  6840. case 5:
  6841. return '[В изминалия] dddd [в] LT';
  6842. }
  6843. },
  6844. sameElse : 'L'
  6845. },
  6846. relativeTime : {
  6847. future : 'след %s',
  6848. past : 'преди %s',
  6849. s : 'няколко секунди',
  6850. m : 'минута',
  6851. mm : '%d минути',
  6852. h : 'час',
  6853. hh : '%d часа',
  6854. d : 'ден',
  6855. dd : '%d дни',
  6856. M : 'месец',
  6857. MM : '%d месеца',
  6858. y : 'година',
  6859. yy : '%d години'
  6860. },
  6861. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  6862. ordinal : function (number) {
  6863. var lastDigit = number % 10,
  6864. last2Digits = number % 100;
  6865. if (number === 0) {
  6866. return number + '-ев';
  6867. } else if (last2Digits === 0) {
  6868. return number + '-ен';
  6869. } else if (last2Digits > 10 && last2Digits < 20) {
  6870. return number + '-ти';
  6871. } else if (lastDigit === 1) {
  6872. return number + '-ви';
  6873. } else if (lastDigit === 2) {
  6874. return number + '-ри';
  6875. } else if (lastDigit === 7 || lastDigit === 8) {
  6876. return number + '-ми';
  6877. } else {
  6878. return number + '-ти';
  6879. }
  6880. },
  6881. week : {
  6882. dow : 1, // Monday is the first day of the week.
  6883. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6884. }
  6885. });
  6886. return bg;
  6887. })));
  6888. /***/ }),
  6889. /***/ "./node_modules/moment/locale/bm.js":
  6890. /*!******************************************!*\
  6891. !*** ./node_modules/moment/locale/bm.js ***!
  6892. \******************************************/
  6893. /*! no static exports found */
  6894. /***/ (function(module, exports, __webpack_require__) {
  6895. //! moment.js locale configuration
  6896. //! locale : Bambara [bm]
  6897. //! author : Estelle Comment : https://github.com/estellecomment
  6898. ;(function (global, factory) {
  6899. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6900. undefined
  6901. }(this, (function (moment) { 'use strict';
  6902. // Language contact person : Abdoufata Kane : https://github.com/abdoufata
  6903. var bm = moment.defineLocale('bm', {
  6904. months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  6905. monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6906. weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6907. weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6908. weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6909. longDateFormat : {
  6910. LT : 'HH:mm',
  6911. LTS : 'HH:mm:ss',
  6912. L : 'DD/MM/YYYY',
  6913. LL : 'MMMM [tile] D [san] YYYY',
  6914. LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6915. LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  6916. },
  6917. calendar : {
  6918. sameDay : '[Bi lɛrɛ] LT',
  6919. nextDay : '[Sini lɛrɛ] LT',
  6920. nextWeek : 'dddd [don lɛrɛ] LT',
  6921. lastDay : '[Kunu lɛrɛ] LT',
  6922. lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
  6923. sameElse : 'L'
  6924. },
  6925. relativeTime : {
  6926. future : '%s kɔnɔ',
  6927. past : 'a bɛ %s bɔ',
  6928. s : 'sanga dama dama',
  6929. m : 'miniti kelen',
  6930. mm : 'miniti %d',
  6931. h : 'lɛrɛ kelen',
  6932. hh : 'lɛrɛ %d',
  6933. d : 'tile kelen',
  6934. dd : 'tile %d',
  6935. M : 'kalo kelen',
  6936. MM : 'kalo %d',
  6937. y : 'san kelen',
  6938. yy : 'san %d'
  6939. },
  6940. week : {
  6941. dow : 1, // Monday is the first day of the week.
  6942. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6943. }
  6944. });
  6945. return bm;
  6946. })));
  6947. /***/ }),
  6948. /***/ "./node_modules/moment/locale/bn.js":
  6949. /*!******************************************!*\
  6950. !*** ./node_modules/moment/locale/bn.js ***!
  6951. \******************************************/
  6952. /*! no static exports found */
  6953. /***/ (function(module, exports, __webpack_require__) {
  6954. //! moment.js locale configuration
  6955. //! locale : Bengali [bn]
  6956. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  6957. ;(function (global, factory) {
  6958. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6959. undefined
  6960. }(this, (function (moment) { 'use strict';
  6961. var symbolMap = {
  6962. '1': '১',
  6963. '2': '২',
  6964. '3': '৩',
  6965. '4': '৪',
  6966. '5': '৫',
  6967. '6': '৬',
  6968. '7': '৭',
  6969. '8': '৮',
  6970. '9': '৯',
  6971. '0': '০'
  6972. };
  6973. var numberMap = {
  6974. '১': '1',
  6975. '২': '2',
  6976. '৩': '3',
  6977. '৪': '4',
  6978. '৫': '5',
  6979. '৬': '6',
  6980. '৭': '7',
  6981. '৮': '8',
  6982. '৯': '9',
  6983. '০': '0'
  6984. };
  6985. var bn = moment.defineLocale('bn', {
  6986. months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  6987. monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  6988. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  6989. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6990. weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  6991. longDateFormat : {
  6992. LT : 'A h:mm সময়',
  6993. LTS : 'A h:mm:ss সময়',
  6994. L : 'DD/MM/YYYY',
  6995. LL : 'D MMMM YYYY',
  6996. LLL : 'D MMMM YYYY, A h:mm সময়',
  6997. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  6998. },
  6999. calendar : {
  7000. sameDay : '[আজ] LT',
  7001. nextDay : '[আগামীকাল] LT',
  7002. nextWeek : 'dddd, LT',
  7003. lastDay : '[গতকাল] LT',
  7004. lastWeek : '[গত] dddd, LT',
  7005. sameElse : 'L'
  7006. },
  7007. relativeTime : {
  7008. future : '%s পরে',
  7009. past : '%s আগে',
  7010. s : 'কয়েক সেকেন্ড',
  7011. m : 'এক মিনিট',
  7012. mm : '%d মিনিট',
  7013. h : 'এক ঘন্টা',
  7014. hh : '%d ঘন্টা',
  7015. d : 'এক দিন',
  7016. dd : '%d দিন',
  7017. M : 'এক মাস',
  7018. MM : '%d মাস',
  7019. y : 'এক বছর',
  7020. yy : '%d বছর'
  7021. },
  7022. preparse: function (string) {
  7023. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  7024. return numberMap[match];
  7025. });
  7026. },
  7027. postformat: function (string) {
  7028. return string.replace(/\d/g, function (match) {
  7029. return symbolMap[match];
  7030. });
  7031. },
  7032. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  7033. meridiemHour : function (hour, meridiem) {
  7034. if (hour === 12) {
  7035. hour = 0;
  7036. }
  7037. if ((meridiem === 'রাত' && hour >= 4) ||
  7038. (meridiem === 'দুপুর' && hour < 5) ||
  7039. meridiem === 'বিকাল') {
  7040. return hour + 12;
  7041. } else {
  7042. return hour;
  7043. }
  7044. },
  7045. meridiem : function (hour, minute, isLower) {
  7046. if (hour < 4) {
  7047. return 'রাত';
  7048. } else if (hour < 10) {
  7049. return 'সকাল';
  7050. } else if (hour < 17) {
  7051. return 'দুপুর';
  7052. } else if (hour < 20) {
  7053. return 'বিকাল';
  7054. } else {
  7055. return 'রাত';
  7056. }
  7057. },
  7058. week : {
  7059. dow : 0, // Sunday is the first day of the week.
  7060. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7061. }
  7062. });
  7063. return bn;
  7064. })));
  7065. /***/ }),
  7066. /***/ "./node_modules/moment/locale/bo.js":
  7067. /*!******************************************!*\
  7068. !*** ./node_modules/moment/locale/bo.js ***!
  7069. \******************************************/
  7070. /*! no static exports found */
  7071. /***/ (function(module, exports, __webpack_require__) {
  7072. //! moment.js locale configuration
  7073. //! locale : Tibetan [bo]
  7074. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  7075. ;(function (global, factory) {
  7076. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7077. undefined
  7078. }(this, (function (moment) { 'use strict';
  7079. var symbolMap = {
  7080. '1': '༡',
  7081. '2': '༢',
  7082. '3': '༣',
  7083. '4': '༤',
  7084. '5': '༥',
  7085. '6': '༦',
  7086. '7': '༧',
  7087. '8': '༨',
  7088. '9': '༩',
  7089. '0': '༠'
  7090. };
  7091. var numberMap = {
  7092. '༡': '1',
  7093. '༢': '2',
  7094. '༣': '3',
  7095. '༤': '4',
  7096. '༥': '5',
  7097. '༦': '6',
  7098. '༧': '7',
  7099. '༨': '8',
  7100. '༩': '9',
  7101. '༠': '0'
  7102. };
  7103. var bo = moment.defineLocale('bo', {
  7104. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  7105. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  7106. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  7107. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  7108. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  7109. longDateFormat : {
  7110. LT : 'A h:mm',
  7111. LTS : 'A h:mm:ss',
  7112. L : 'DD/MM/YYYY',
  7113. LL : 'D MMMM YYYY',
  7114. LLL : 'D MMMM YYYY, A h:mm',
  7115. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  7116. },
  7117. calendar : {
  7118. sameDay : '[དི་རིང] LT',
  7119. nextDay : '[སང་ཉིན] LT',
  7120. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  7121. lastDay : '[ཁ་སང] LT',
  7122. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  7123. sameElse : 'L'
  7124. },
  7125. relativeTime : {
  7126. future : '%s ལ་',
  7127. past : '%s སྔན་ལ',
  7128. s : 'ལམ་སང',
  7129. m : 'སྐར་མ་གཅིག',
  7130. mm : '%d སྐར་མ',
  7131. h : 'ཆུ་ཚོད་གཅིག',
  7132. hh : '%d ཆུ་ཚོད',
  7133. d : 'ཉིན་གཅིག',
  7134. dd : '%d ཉིན་',
  7135. M : 'ཟླ་བ་གཅིག',
  7136. MM : '%d ཟླ་བ',
  7137. y : 'ལོ་གཅིག',
  7138. yy : '%d ལོ'
  7139. },
  7140. preparse: function (string) {
  7141. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  7142. return numberMap[match];
  7143. });
  7144. },
  7145. postformat: function (string) {
  7146. return string.replace(/\d/g, function (match) {
  7147. return symbolMap[match];
  7148. });
  7149. },
  7150. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  7151. meridiemHour : function (hour, meridiem) {
  7152. if (hour === 12) {
  7153. hour = 0;
  7154. }
  7155. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  7156. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  7157. meridiem === 'དགོང་དག') {
  7158. return hour + 12;
  7159. } else {
  7160. return hour;
  7161. }
  7162. },
  7163. meridiem : function (hour, minute, isLower) {
  7164. if (hour < 4) {
  7165. return 'མཚན་མོ';
  7166. } else if (hour < 10) {
  7167. return 'ཞོགས་ཀས';
  7168. } else if (hour < 17) {
  7169. return 'ཉིན་གུང';
  7170. } else if (hour < 20) {
  7171. return 'དགོང་དག';
  7172. } else {
  7173. return 'མཚན་མོ';
  7174. }
  7175. },
  7176. week : {
  7177. dow : 0, // Sunday is the first day of the week.
  7178. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7179. }
  7180. });
  7181. return bo;
  7182. })));
  7183. /***/ }),
  7184. /***/ "./node_modules/moment/locale/br.js":
  7185. /*!******************************************!*\
  7186. !*** ./node_modules/moment/locale/br.js ***!
  7187. \******************************************/
  7188. /*! no static exports found */
  7189. /***/ (function(module, exports, __webpack_require__) {
  7190. //! moment.js locale configuration
  7191. //! locale : Breton [br]
  7192. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  7193. ;(function (global, factory) {
  7194. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7195. undefined
  7196. }(this, (function (moment) { 'use strict';
  7197. function relativeTimeWithMutation(number, withoutSuffix, key) {
  7198. var format = {
  7199. 'mm': 'munutenn',
  7200. 'MM': 'miz',
  7201. 'dd': 'devezh'
  7202. };
  7203. return number + ' ' + mutation(format[key], number);
  7204. }
  7205. function specialMutationForYears(number) {
  7206. switch (lastNumber(number)) {
  7207. case 1:
  7208. case 3:
  7209. case 4:
  7210. case 5:
  7211. case 9:
  7212. return number + ' bloaz';
  7213. default:
  7214. return number + ' vloaz';
  7215. }
  7216. }
  7217. function lastNumber(number) {
  7218. if (number > 9) {
  7219. return lastNumber(number % 10);
  7220. }
  7221. return number;
  7222. }
  7223. function mutation(text, number) {
  7224. if (number === 2) {
  7225. return softMutation(text);
  7226. }
  7227. return text;
  7228. }
  7229. function softMutation(text) {
  7230. var mutationTable = {
  7231. 'm': 'v',
  7232. 'b': 'v',
  7233. 'd': 'z'
  7234. };
  7235. if (mutationTable[text.charAt(0)] === undefined) {
  7236. return text;
  7237. }
  7238. return mutationTable[text.charAt(0)] + text.substring(1);
  7239. }
  7240. var br = moment.defineLocale('br', {
  7241. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  7242. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  7243. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  7244. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  7245. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  7246. weekdaysParseExact : true,
  7247. longDateFormat : {
  7248. LT : 'h[e]mm A',
  7249. LTS : 'h[e]mm:ss A',
  7250. L : 'DD/MM/YYYY',
  7251. LL : 'D [a viz] MMMM YYYY',
  7252. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  7253. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  7254. },
  7255. calendar : {
  7256. sameDay : '[Hiziv da] LT',
  7257. nextDay : '[Warc\'hoazh da] LT',
  7258. nextWeek : 'dddd [da] LT',
  7259. lastDay : '[Dec\'h da] LT',
  7260. lastWeek : 'dddd [paset da] LT',
  7261. sameElse : 'L'
  7262. },
  7263. relativeTime : {
  7264. future : 'a-benn %s',
  7265. past : '%s \'zo',
  7266. s : 'un nebeud segondennoù',
  7267. m : 'ur vunutenn',
  7268. mm : relativeTimeWithMutation,
  7269. h : 'un eur',
  7270. hh : '%d eur',
  7271. d : 'un devezh',
  7272. dd : relativeTimeWithMutation,
  7273. M : 'ur miz',
  7274. MM : relativeTimeWithMutation,
  7275. y : 'ur bloaz',
  7276. yy : specialMutationForYears
  7277. },
  7278. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  7279. ordinal : function (number) {
  7280. var output = (number === 1) ? 'añ' : 'vet';
  7281. return number + output;
  7282. },
  7283. week : {
  7284. dow : 1, // Monday is the first day of the week.
  7285. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7286. }
  7287. });
  7288. return br;
  7289. })));
  7290. /***/ }),
  7291. /***/ "./node_modules/moment/locale/bs.js":
  7292. /*!******************************************!*\
  7293. !*** ./node_modules/moment/locale/bs.js ***!
  7294. \******************************************/
  7295. /*! no static exports found */
  7296. /***/ (function(module, exports, __webpack_require__) {
  7297. //! moment.js locale configuration
  7298. //! locale : Bosnian [bs]
  7299. //! author : Nedim Cholich : https://github.com/frontyard
  7300. //! based on (hr) translation by Bojan Marković
  7301. ;(function (global, factory) {
  7302. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7303. undefined
  7304. }(this, (function (moment) { 'use strict';
  7305. function translate(number, withoutSuffix, key) {
  7306. var result = number + ' ';
  7307. switch (key) {
  7308. case 'm':
  7309. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  7310. case 'mm':
  7311. if (number === 1) {
  7312. result += 'minuta';
  7313. } else if (number === 2 || number === 3 || number === 4) {
  7314. result += 'minute';
  7315. } else {
  7316. result += 'minuta';
  7317. }
  7318. return result;
  7319. case 'h':
  7320. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  7321. case 'hh':
  7322. if (number === 1) {
  7323. result += 'sat';
  7324. } else if (number === 2 || number === 3 || number === 4) {
  7325. result += 'sata';
  7326. } else {
  7327. result += 'sati';
  7328. }
  7329. return result;
  7330. case 'dd':
  7331. if (number === 1) {
  7332. result += 'dan';
  7333. } else {
  7334. result += 'dana';
  7335. }
  7336. return result;
  7337. case 'MM':
  7338. if (number === 1) {
  7339. result += 'mjesec';
  7340. } else if (number === 2 || number === 3 || number === 4) {
  7341. result += 'mjeseca';
  7342. } else {
  7343. result += 'mjeseci';
  7344. }
  7345. return result;
  7346. case 'yy':
  7347. if (number === 1) {
  7348. result += 'godina';
  7349. } else if (number === 2 || number === 3 || number === 4) {
  7350. result += 'godine';
  7351. } else {
  7352. result += 'godina';
  7353. }
  7354. return result;
  7355. }
  7356. }
  7357. var bs = moment.defineLocale('bs', {
  7358. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  7359. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  7360. monthsParseExact: true,
  7361. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7362. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7363. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  7364. weekdaysParseExact : true,
  7365. longDateFormat : {
  7366. LT : 'H:mm',
  7367. LTS : 'H:mm:ss',
  7368. L : 'DD.MM.YYYY',
  7369. LL : 'D. MMMM YYYY',
  7370. LLL : 'D. MMMM YYYY H:mm',
  7371. LLLL : 'dddd, D. MMMM YYYY H:mm'
  7372. },
  7373. calendar : {
  7374. sameDay : '[danas u] LT',
  7375. nextDay : '[sutra u] LT',
  7376. nextWeek : function () {
  7377. switch (this.day()) {
  7378. case 0:
  7379. return '[u] [nedjelju] [u] LT';
  7380. case 3:
  7381. return '[u] [srijedu] [u] LT';
  7382. case 6:
  7383. return '[u] [subotu] [u] LT';
  7384. case 1:
  7385. case 2:
  7386. case 4:
  7387. case 5:
  7388. return '[u] dddd [u] LT';
  7389. }
  7390. },
  7391. lastDay : '[jučer u] LT',
  7392. lastWeek : function () {
  7393. switch (this.day()) {
  7394. case 0:
  7395. case 3:
  7396. return '[prošlu] dddd [u] LT';
  7397. case 6:
  7398. return '[prošle] [subote] [u] LT';
  7399. case 1:
  7400. case 2:
  7401. case 4:
  7402. case 5:
  7403. return '[prošli] dddd [u] LT';
  7404. }
  7405. },
  7406. sameElse : 'L'
  7407. },
  7408. relativeTime : {
  7409. future : 'za %s',
  7410. past : 'prije %s',
  7411. s : 'par sekundi',
  7412. m : translate,
  7413. mm : translate,
  7414. h : translate,
  7415. hh : translate,
  7416. d : 'dan',
  7417. dd : translate,
  7418. M : 'mjesec',
  7419. MM : translate,
  7420. y : 'godinu',
  7421. yy : translate
  7422. },
  7423. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7424. ordinal : '%d.',
  7425. week : {
  7426. dow : 1, // Monday is the first day of the week.
  7427. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7428. }
  7429. });
  7430. return bs;
  7431. })));
  7432. /***/ }),
  7433. /***/ "./node_modules/moment/locale/ca.js":
  7434. /*!******************************************!*\
  7435. !*** ./node_modules/moment/locale/ca.js ***!
  7436. \******************************************/
  7437. /*! no static exports found */
  7438. /***/ (function(module, exports, __webpack_require__) {
  7439. //! moment.js locale configuration
  7440. //! locale : Catalan [ca]
  7441. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  7442. ;(function (global, factory) {
  7443. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7444. undefined
  7445. }(this, (function (moment) { 'use strict';
  7446. var ca = moment.defineLocale('ca', {
  7447. months : {
  7448. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  7449. 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('_'),
  7450. isFormat: /D[oD]?(\s)+MMMM/
  7451. },
  7452. monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  7453. monthsParseExact : true,
  7454. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  7455. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  7456. weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  7457. weekdaysParseExact : true,
  7458. longDateFormat : {
  7459. LT : 'H:mm',
  7460. LTS : 'H:mm:ss',
  7461. L : 'DD/MM/YYYY',
  7462. LL : 'D MMMM [de] YYYY',
  7463. ll : 'D MMM YYYY',
  7464. LLL : 'D MMMM [de] YYYY [a les] H:mm',
  7465. lll : 'D MMM YYYY, H:mm',
  7466. LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
  7467. llll : 'ddd D MMM YYYY, H:mm'
  7468. },
  7469. calendar : {
  7470. sameDay : function () {
  7471. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  7472. },
  7473. nextDay : function () {
  7474. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  7475. },
  7476. nextWeek : function () {
  7477. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  7478. },
  7479. lastDay : function () {
  7480. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  7481. },
  7482. lastWeek : function () {
  7483. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  7484. },
  7485. sameElse : 'L'
  7486. },
  7487. relativeTime : {
  7488. future : 'd\'aquí %s',
  7489. past : 'fa %s',
  7490. s : 'uns segons',
  7491. m : 'un minut',
  7492. mm : '%d minuts',
  7493. h : 'una hora',
  7494. hh : '%d hores',
  7495. d : 'un dia',
  7496. dd : '%d dies',
  7497. M : 'un mes',
  7498. MM : '%d mesos',
  7499. y : 'un any',
  7500. yy : '%d anys'
  7501. },
  7502. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  7503. ordinal : function (number, period) {
  7504. var output = (number === 1) ? 'r' :
  7505. (number === 2) ? 'n' :
  7506. (number === 3) ? 'r' :
  7507. (number === 4) ? 't' : 'è';
  7508. if (period === 'w' || period === 'W') {
  7509. output = 'a';
  7510. }
  7511. return number + output;
  7512. },
  7513. week : {
  7514. dow : 1, // Monday is the first day of the week.
  7515. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7516. }
  7517. });
  7518. return ca;
  7519. })));
  7520. /***/ }),
  7521. /***/ "./node_modules/moment/locale/cs.js":
  7522. /*!******************************************!*\
  7523. !*** ./node_modules/moment/locale/cs.js ***!
  7524. \******************************************/
  7525. /*! no static exports found */
  7526. /***/ (function(module, exports, __webpack_require__) {
  7527. //! moment.js locale configuration
  7528. //! locale : Czech [cs]
  7529. //! author : petrbela : https://github.com/petrbela
  7530. ;(function (global, factory) {
  7531. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7532. undefined
  7533. }(this, (function (moment) { 'use strict';
  7534. var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
  7535. var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  7536. function plural(n) {
  7537. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  7538. }
  7539. function translate(number, withoutSuffix, key, isFuture) {
  7540. var result = number + ' ';
  7541. switch (key) {
  7542. case 's': // a few seconds / in a few seconds / a few seconds ago
  7543. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  7544. case 'm': // a minute / in a minute / a minute ago
  7545. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  7546. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  7547. if (withoutSuffix || isFuture) {
  7548. return result + (plural(number) ? 'minuty' : 'minut');
  7549. } else {
  7550. return result + 'minutami';
  7551. }
  7552. break;
  7553. case 'h': // an hour / in an hour / an hour ago
  7554. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  7555. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  7556. if (withoutSuffix || isFuture) {
  7557. return result + (plural(number) ? 'hodiny' : 'hodin');
  7558. } else {
  7559. return result + 'hodinami';
  7560. }
  7561. break;
  7562. case 'd': // a day / in a day / a day ago
  7563. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  7564. case 'dd': // 9 days / in 9 days / 9 days ago
  7565. if (withoutSuffix || isFuture) {
  7566. return result + (plural(number) ? 'dny' : 'dní');
  7567. } else {
  7568. return result + 'dny';
  7569. }
  7570. break;
  7571. case 'M': // a month / in a month / a month ago
  7572. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  7573. case 'MM': // 9 months / in 9 months / 9 months ago
  7574. if (withoutSuffix || isFuture) {
  7575. return result + (plural(number) ? 'měsíce' : 'měsíců');
  7576. } else {
  7577. return result + 'měsíci';
  7578. }
  7579. break;
  7580. case 'y': // a year / in a year / a year ago
  7581. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  7582. case 'yy': // 9 years / in 9 years / 9 years ago
  7583. if (withoutSuffix || isFuture) {
  7584. return result + (plural(number) ? 'roky' : 'let');
  7585. } else {
  7586. return result + 'lety';
  7587. }
  7588. break;
  7589. }
  7590. }
  7591. var cs = moment.defineLocale('cs', {
  7592. months : months,
  7593. monthsShort : monthsShort,
  7594. monthsParse : (function (months, monthsShort) {
  7595. var i, _monthsParse = [];
  7596. for (i = 0; i < 12; i++) {
  7597. // use custom parser to solve problem with July (červenec)
  7598. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  7599. }
  7600. return _monthsParse;
  7601. }(months, monthsShort)),
  7602. shortMonthsParse : (function (monthsShort) {
  7603. var i, _shortMonthsParse = [];
  7604. for (i = 0; i < 12; i++) {
  7605. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  7606. }
  7607. return _shortMonthsParse;
  7608. }(monthsShort)),
  7609. longMonthsParse : (function (months) {
  7610. var i, _longMonthsParse = [];
  7611. for (i = 0; i < 12; i++) {
  7612. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  7613. }
  7614. return _longMonthsParse;
  7615. }(months)),
  7616. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  7617. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  7618. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  7619. longDateFormat : {
  7620. LT: 'H:mm',
  7621. LTS : 'H:mm:ss',
  7622. L : 'DD.MM.YYYY',
  7623. LL : 'D. MMMM YYYY',
  7624. LLL : 'D. MMMM YYYY H:mm',
  7625. LLLL : 'dddd D. MMMM YYYY H:mm',
  7626. l : 'D. M. YYYY'
  7627. },
  7628. calendar : {
  7629. sameDay: '[dnes v] LT',
  7630. nextDay: '[zítra v] LT',
  7631. nextWeek: function () {
  7632. switch (this.day()) {
  7633. case 0:
  7634. return '[v neděli v] LT';
  7635. case 1:
  7636. case 2:
  7637. return '[v] dddd [v] LT';
  7638. case 3:
  7639. return '[ve středu v] LT';
  7640. case 4:
  7641. return '[ve čtvrtek v] LT';
  7642. case 5:
  7643. return '[v pátek v] LT';
  7644. case 6:
  7645. return '[v sobotu v] LT';
  7646. }
  7647. },
  7648. lastDay: '[včera v] LT',
  7649. lastWeek: function () {
  7650. switch (this.day()) {
  7651. case 0:
  7652. return '[minulou neděli v] LT';
  7653. case 1:
  7654. case 2:
  7655. return '[minulé] dddd [v] LT';
  7656. case 3:
  7657. return '[minulou středu v] LT';
  7658. case 4:
  7659. case 5:
  7660. return '[minulý] dddd [v] LT';
  7661. case 6:
  7662. return '[minulou sobotu v] LT';
  7663. }
  7664. },
  7665. sameElse: 'L'
  7666. },
  7667. relativeTime : {
  7668. future : 'za %s',
  7669. past : 'před %s',
  7670. s : translate,
  7671. m : translate,
  7672. mm : translate,
  7673. h : translate,
  7674. hh : translate,
  7675. d : translate,
  7676. dd : translate,
  7677. M : translate,
  7678. MM : translate,
  7679. y : translate,
  7680. yy : translate
  7681. },
  7682. dayOfMonthOrdinalParse : /\d{1,2}\./,
  7683. ordinal : '%d.',
  7684. week : {
  7685. dow : 1, // Monday is the first day of the week.
  7686. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7687. }
  7688. });
  7689. return cs;
  7690. })));
  7691. /***/ }),
  7692. /***/ "./node_modules/moment/locale/cv.js":
  7693. /*!******************************************!*\
  7694. !*** ./node_modules/moment/locale/cv.js ***!
  7695. \******************************************/
  7696. /*! no static exports found */
  7697. /***/ (function(module, exports, __webpack_require__) {
  7698. //! moment.js locale configuration
  7699. //! locale : Chuvash [cv]
  7700. //! author : Anatoly Mironov : https://github.com/mirontoli
  7701. ;(function (global, factory) {
  7702. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7703. undefined
  7704. }(this, (function (moment) { 'use strict';
  7705. var cv = moment.defineLocale('cv', {
  7706. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  7707. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  7708. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  7709. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  7710. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  7711. longDateFormat : {
  7712. LT : 'HH:mm',
  7713. LTS : 'HH:mm:ss',
  7714. L : 'DD-MM-YYYY',
  7715. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  7716. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  7717. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  7718. },
  7719. calendar : {
  7720. sameDay: '[Паян] LT [сехетре]',
  7721. nextDay: '[Ыран] LT [сехетре]',
  7722. lastDay: '[Ӗнер] LT [сехетре]',
  7723. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  7724. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  7725. sameElse: 'L'
  7726. },
  7727. relativeTime : {
  7728. future : function (output) {
  7729. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  7730. return output + affix;
  7731. },
  7732. past : '%s каялла',
  7733. s : 'пӗр-ик ҫеккунт',
  7734. m : 'пӗр минут',
  7735. mm : '%d минут',
  7736. h : 'пӗр сехет',
  7737. hh : '%d сехет',
  7738. d : 'пӗр кун',
  7739. dd : '%d кун',
  7740. M : 'пӗр уйӑх',
  7741. MM : '%d уйӑх',
  7742. y : 'пӗр ҫул',
  7743. yy : '%d ҫул'
  7744. },
  7745. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  7746. ordinal : '%d-мӗш',
  7747. week : {
  7748. dow : 1, // Monday is the first day of the week.
  7749. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7750. }
  7751. });
  7752. return cv;
  7753. })));
  7754. /***/ }),
  7755. /***/ "./node_modules/moment/locale/cy.js":
  7756. /*!******************************************!*\
  7757. !*** ./node_modules/moment/locale/cy.js ***!
  7758. \******************************************/
  7759. /*! no static exports found */
  7760. /***/ (function(module, exports, __webpack_require__) {
  7761. //! moment.js locale configuration
  7762. //! locale : Welsh [cy]
  7763. //! author : Robert Allen : https://github.com/robgallen
  7764. //! author : https://github.com/ryangreaves
  7765. ;(function (global, factory) {
  7766. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7767. undefined
  7768. }(this, (function (moment) { 'use strict';
  7769. var cy = moment.defineLocale('cy', {
  7770. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  7771. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  7772. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  7773. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  7774. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  7775. weekdaysParseExact : true,
  7776. // time formats are the same as en-gb
  7777. longDateFormat: {
  7778. LT: 'HH:mm',
  7779. LTS : 'HH:mm:ss',
  7780. L: 'DD/MM/YYYY',
  7781. LL: 'D MMMM YYYY',
  7782. LLL: 'D MMMM YYYY HH:mm',
  7783. LLLL: 'dddd, D MMMM YYYY HH:mm'
  7784. },
  7785. calendar: {
  7786. sameDay: '[Heddiw am] LT',
  7787. nextDay: '[Yfory am] LT',
  7788. nextWeek: 'dddd [am] LT',
  7789. lastDay: '[Ddoe am] LT',
  7790. lastWeek: 'dddd [diwethaf am] LT',
  7791. sameElse: 'L'
  7792. },
  7793. relativeTime: {
  7794. future: 'mewn %s',
  7795. past: '%s yn ôl',
  7796. s: 'ychydig eiliadau',
  7797. m: 'munud',
  7798. mm: '%d munud',
  7799. h: 'awr',
  7800. hh: '%d awr',
  7801. d: 'diwrnod',
  7802. dd: '%d diwrnod',
  7803. M: 'mis',
  7804. MM: '%d mis',
  7805. y: 'blwyddyn',
  7806. yy: '%d flynedd'
  7807. },
  7808. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  7809. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  7810. ordinal: function (number) {
  7811. var b = number,
  7812. output = '',
  7813. lookup = [
  7814. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  7815. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  7816. ];
  7817. if (b > 20) {
  7818. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  7819. output = 'fed'; // not 30ain, 70ain or 90ain
  7820. } else {
  7821. output = 'ain';
  7822. }
  7823. } else if (b > 0) {
  7824. output = lookup[b];
  7825. }
  7826. return number + output;
  7827. },
  7828. week : {
  7829. dow : 1, // Monday is the first day of the week.
  7830. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7831. }
  7832. });
  7833. return cy;
  7834. })));
  7835. /***/ }),
  7836. /***/ "./node_modules/moment/locale/da.js":
  7837. /*!******************************************!*\
  7838. !*** ./node_modules/moment/locale/da.js ***!
  7839. \******************************************/
  7840. /*! no static exports found */
  7841. /***/ (function(module, exports, __webpack_require__) {
  7842. //! moment.js locale configuration
  7843. //! locale : Danish [da]
  7844. //! author : Ulrik Nielsen : https://github.com/mrbase
  7845. ;(function (global, factory) {
  7846. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7847. undefined
  7848. }(this, (function (moment) { 'use strict';
  7849. var da = moment.defineLocale('da', {
  7850. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  7851. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7852. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7853. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7854. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7855. longDateFormat : {
  7856. LT : 'HH:mm',
  7857. LTS : 'HH:mm:ss',
  7858. L : 'DD.MM.YYYY',
  7859. LL : 'D. MMMM YYYY',
  7860. LLL : 'D. MMMM YYYY HH:mm',
  7861. LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  7862. },
  7863. calendar : {
  7864. sameDay : '[i dag kl.] LT',
  7865. nextDay : '[i morgen kl.] LT',
  7866. nextWeek : 'på dddd [kl.] LT',
  7867. lastDay : '[i går kl.] LT',
  7868. lastWeek : '[i] dddd[s kl.] LT',
  7869. sameElse : 'L'
  7870. },
  7871. relativeTime : {
  7872. future : 'om %s',
  7873. past : '%s siden',
  7874. s : 'få sekunder',
  7875. m : 'et minut',
  7876. mm : '%d minutter',
  7877. h : 'en time',
  7878. hh : '%d timer',
  7879. d : 'en dag',
  7880. dd : '%d dage',
  7881. M : 'en måned',
  7882. MM : '%d måneder',
  7883. y : 'et år',
  7884. yy : '%d år'
  7885. },
  7886. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7887. ordinal : '%d.',
  7888. week : {
  7889. dow : 1, // Monday is the first day of the week.
  7890. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7891. }
  7892. });
  7893. return da;
  7894. })));
  7895. /***/ }),
  7896. /***/ "./node_modules/moment/locale/de-at.js":
  7897. /*!*********************************************!*\
  7898. !*** ./node_modules/moment/locale/de-at.js ***!
  7899. \*********************************************/
  7900. /*! no static exports found */
  7901. /***/ (function(module, exports, __webpack_require__) {
  7902. //! moment.js locale configuration
  7903. //! locale : German (Austria) [de-at]
  7904. //! author : lluchs : https://github.com/lluchs
  7905. //! author: Menelion Elensúle: https://github.com/Oire
  7906. //! author : Martin Groller : https://github.com/MadMG
  7907. //! author : Mikolaj Dadela : https://github.com/mik01aj
  7908. ;(function (global, factory) {
  7909. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7910. undefined
  7911. }(this, (function (moment) { 'use strict';
  7912. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7913. var format = {
  7914. 'm': ['eine Minute', 'einer Minute'],
  7915. 'h': ['eine Stunde', 'einer Stunde'],
  7916. 'd': ['ein Tag', 'einem Tag'],
  7917. 'dd': [number + ' Tage', number + ' Tagen'],
  7918. 'M': ['ein Monat', 'einem Monat'],
  7919. 'MM': [number + ' Monate', number + ' Monaten'],
  7920. 'y': ['ein Jahr', 'einem Jahr'],
  7921. 'yy': [number + ' Jahre', number + ' Jahren']
  7922. };
  7923. return withoutSuffix ? format[key][0] : format[key][1];
  7924. }
  7925. var deAt = moment.defineLocale('de-at', {
  7926. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  7927. monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7928. monthsParseExact : true,
  7929. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  7930. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7931. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7932. weekdaysParseExact : true,
  7933. longDateFormat : {
  7934. LT: 'HH:mm',
  7935. LTS: 'HH:mm:ss',
  7936. L : 'DD.MM.YYYY',
  7937. LL : 'D. MMMM YYYY',
  7938. LLL : 'D. MMMM YYYY HH:mm',
  7939. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  7940. },
  7941. calendar : {
  7942. sameDay: '[heute um] LT [Uhr]',
  7943. sameElse: 'L',
  7944. nextDay: '[morgen um] LT [Uhr]',
  7945. nextWeek: 'dddd [um] LT [Uhr]',
  7946. lastDay: '[gestern um] LT [Uhr]',
  7947. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  7948. },
  7949. relativeTime : {
  7950. future : 'in %s',
  7951. past : 'vor %s',
  7952. s : 'ein paar Sekunden',
  7953. m : processRelativeTime,
  7954. mm : '%d Minuten',
  7955. h : processRelativeTime,
  7956. hh : '%d Stunden',
  7957. d : processRelativeTime,
  7958. dd : processRelativeTime,
  7959. M : processRelativeTime,
  7960. MM : processRelativeTime,
  7961. y : processRelativeTime,
  7962. yy : processRelativeTime
  7963. },
  7964. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7965. ordinal : '%d.',
  7966. week : {
  7967. dow : 1, // Monday is the first day of the week.
  7968. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7969. }
  7970. });
  7971. return deAt;
  7972. })));
  7973. /***/ }),
  7974. /***/ "./node_modules/moment/locale/de-ch.js":
  7975. /*!*********************************************!*\
  7976. !*** ./node_modules/moment/locale/de-ch.js ***!
  7977. \*********************************************/
  7978. /*! no static exports found */
  7979. /***/ (function(module, exports, __webpack_require__) {
  7980. //! moment.js locale configuration
  7981. //! locale : German (Switzerland) [de-ch]
  7982. //! author : sschueller : https://github.com/sschueller
  7983. ;(function (global, factory) {
  7984. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7985. undefined
  7986. }(this, (function (moment) { 'use strict';
  7987. // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
  7988. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7989. var format = {
  7990. 'm': ['eine Minute', 'einer Minute'],
  7991. 'h': ['eine Stunde', 'einer Stunde'],
  7992. 'd': ['ein Tag', 'einem Tag'],
  7993. 'dd': [number + ' Tage', number + ' Tagen'],
  7994. 'M': ['ein Monat', 'einem Monat'],
  7995. 'MM': [number + ' Monate', number + ' Monaten'],
  7996. 'y': ['ein Jahr', 'einem Jahr'],
  7997. 'yy': [number + ' Jahre', number + ' Jahren']
  7998. };
  7999. return withoutSuffix ? format[key][0] : format[key][1];
  8000. }
  8001. var deCh = moment.defineLocale('de-ch', {
  8002. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  8003. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  8004. monthsParseExact : true,
  8005. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  8006. weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  8007. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  8008. weekdaysParseExact : true,
  8009. longDateFormat : {
  8010. LT: 'HH.mm',
  8011. LTS: 'HH.mm.ss',
  8012. L : 'DD.MM.YYYY',
  8013. LL : 'D. MMMM YYYY',
  8014. LLL : 'D. MMMM YYYY HH.mm',
  8015. LLLL : 'dddd, D. MMMM YYYY HH.mm'
  8016. },
  8017. calendar : {
  8018. sameDay: '[heute um] LT [Uhr]',
  8019. sameElse: 'L',
  8020. nextDay: '[morgen um] LT [Uhr]',
  8021. nextWeek: 'dddd [um] LT [Uhr]',
  8022. lastDay: '[gestern um] LT [Uhr]',
  8023. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  8024. },
  8025. relativeTime : {
  8026. future : 'in %s',
  8027. past : 'vor %s',
  8028. s : 'ein paar Sekunden',
  8029. m : processRelativeTime,
  8030. mm : '%d Minuten',
  8031. h : processRelativeTime,
  8032. hh : '%d Stunden',
  8033. d : processRelativeTime,
  8034. dd : processRelativeTime,
  8035. M : processRelativeTime,
  8036. MM : processRelativeTime,
  8037. y : processRelativeTime,
  8038. yy : processRelativeTime
  8039. },
  8040. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8041. ordinal : '%d.',
  8042. week : {
  8043. dow : 1, // Monday is the first day of the week.
  8044. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8045. }
  8046. });
  8047. return deCh;
  8048. })));
  8049. /***/ }),
  8050. /***/ "./node_modules/moment/locale/de.js":
  8051. /*!******************************************!*\
  8052. !*** ./node_modules/moment/locale/de.js ***!
  8053. \******************************************/
  8054. /*! no static exports found */
  8055. /***/ (function(module, exports, __webpack_require__) {
  8056. //! moment.js locale configuration
  8057. //! locale : German [de]
  8058. //! author : lluchs : https://github.com/lluchs
  8059. //! author: Menelion Elensúle: https://github.com/Oire
  8060. //! author : Mikolaj Dadela : https://github.com/mik01aj
  8061. ;(function (global, factory) {
  8062. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8063. undefined
  8064. }(this, (function (moment) { 'use strict';
  8065. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  8066. var format = {
  8067. 'm': ['eine Minute', 'einer Minute'],
  8068. 'h': ['eine Stunde', 'einer Stunde'],
  8069. 'd': ['ein Tag', 'einem Tag'],
  8070. 'dd': [number + ' Tage', number + ' Tagen'],
  8071. 'M': ['ein Monat', 'einem Monat'],
  8072. 'MM': [number + ' Monate', number + ' Monaten'],
  8073. 'y': ['ein Jahr', 'einem Jahr'],
  8074. 'yy': [number + ' Jahre', number + ' Jahren']
  8075. };
  8076. return withoutSuffix ? format[key][0] : format[key][1];
  8077. }
  8078. var de = moment.defineLocale('de', {
  8079. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  8080. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  8081. monthsParseExact : true,
  8082. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  8083. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  8084. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  8085. weekdaysParseExact : true,
  8086. longDateFormat : {
  8087. LT: 'HH:mm',
  8088. LTS: 'HH:mm:ss',
  8089. L : 'DD.MM.YYYY',
  8090. LL : 'D. MMMM YYYY',
  8091. LLL : 'D. MMMM YYYY HH:mm',
  8092. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  8093. },
  8094. calendar : {
  8095. sameDay: '[heute um] LT [Uhr]',
  8096. sameElse: 'L',
  8097. nextDay: '[morgen um] LT [Uhr]',
  8098. nextWeek: 'dddd [um] LT [Uhr]',
  8099. lastDay: '[gestern um] LT [Uhr]',
  8100. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  8101. },
  8102. relativeTime : {
  8103. future : 'in %s',
  8104. past : 'vor %s',
  8105. s : 'ein paar Sekunden',
  8106. m : processRelativeTime,
  8107. mm : '%d Minuten',
  8108. h : processRelativeTime,
  8109. hh : '%d Stunden',
  8110. d : processRelativeTime,
  8111. dd : processRelativeTime,
  8112. M : processRelativeTime,
  8113. MM : processRelativeTime,
  8114. y : processRelativeTime,
  8115. yy : processRelativeTime
  8116. },
  8117. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8118. ordinal : '%d.',
  8119. week : {
  8120. dow : 1, // Monday is the first day of the week.
  8121. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8122. }
  8123. });
  8124. return de;
  8125. })));
  8126. /***/ }),
  8127. /***/ "./node_modules/moment/locale/dv.js":
  8128. /*!******************************************!*\
  8129. !*** ./node_modules/moment/locale/dv.js ***!
  8130. \******************************************/
  8131. /*! no static exports found */
  8132. /***/ (function(module, exports, __webpack_require__) {
  8133. //! moment.js locale configuration
  8134. //! locale : Maldivian [dv]
  8135. //! author : Jawish Hameed : https://github.com/jawish
  8136. ;(function (global, factory) {
  8137. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8138. undefined
  8139. }(this, (function (moment) { 'use strict';
  8140. var months = [
  8141. 'ޖެނުއަރީ',
  8142. 'ފެބްރުއަރީ',
  8143. 'މާރިޗު',
  8144. 'އޭޕްރީލު',
  8145. 'މޭ',
  8146. 'ޖޫން',
  8147. 'ޖުލައި',
  8148. 'އޯގަސްޓު',
  8149. 'ސެޕްޓެމްބަރު',
  8150. 'އޮކްޓޯބަރު',
  8151. 'ނޮވެމްބަރު',
  8152. 'ޑިސެމްބަރު'
  8153. ];
  8154. var weekdays = [
  8155. 'އާދިއްތަ',
  8156. 'ހޯމަ',
  8157. 'އަންގާރަ',
  8158. 'ބުދަ',
  8159. 'ބުރާސްފަތި',
  8160. 'ހުކުރު',
  8161. 'ހޮނިހިރު'
  8162. ];
  8163. var dv = moment.defineLocale('dv', {
  8164. months : months,
  8165. monthsShort : months,
  8166. weekdays : weekdays,
  8167. weekdaysShort : weekdays,
  8168. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  8169. longDateFormat : {
  8170. LT : 'HH:mm',
  8171. LTS : 'HH:mm:ss',
  8172. L : 'D/M/YYYY',
  8173. LL : 'D MMMM YYYY',
  8174. LLL : 'D MMMM YYYY HH:mm',
  8175. LLLL : 'dddd D MMMM YYYY HH:mm'
  8176. },
  8177. meridiemParse: /މކ|މފ/,
  8178. isPM : function (input) {
  8179. return 'މފ' === input;
  8180. },
  8181. meridiem : function (hour, minute, isLower) {
  8182. if (hour < 12) {
  8183. return 'މކ';
  8184. } else {
  8185. return 'މފ';
  8186. }
  8187. },
  8188. calendar : {
  8189. sameDay : '[މިއަދު] LT',
  8190. nextDay : '[މާދަމާ] LT',
  8191. nextWeek : 'dddd LT',
  8192. lastDay : '[އިއްޔެ] LT',
  8193. lastWeek : '[ފާއިތުވި] dddd LT',
  8194. sameElse : 'L'
  8195. },
  8196. relativeTime : {
  8197. future : 'ތެރޭގައި %s',
  8198. past : 'ކުރިން %s',
  8199. s : 'ސިކުންތުކޮޅެއް',
  8200. m : 'މިނިޓެއް',
  8201. mm : 'މިނިޓު %d',
  8202. h : 'ގަޑިއިރެއް',
  8203. hh : 'ގަޑިއިރު %d',
  8204. d : 'ދުވަހެއް',
  8205. dd : 'ދުވަސް %d',
  8206. M : 'މަހެއް',
  8207. MM : 'މަސް %d',
  8208. y : 'އަހަރެއް',
  8209. yy : 'އަހަރު %d'
  8210. },
  8211. preparse: function (string) {
  8212. return string.replace(/،/g, ',');
  8213. },
  8214. postformat: function (string) {
  8215. return string.replace(/,/g, '،');
  8216. },
  8217. week : {
  8218. dow : 7, // Sunday is the first day of the week.
  8219. doy : 12 // The week that contains Jan 1st is the first week of the year.
  8220. }
  8221. });
  8222. return dv;
  8223. })));
  8224. /***/ }),
  8225. /***/ "./node_modules/moment/locale/el.js":
  8226. /*!******************************************!*\
  8227. !*** ./node_modules/moment/locale/el.js ***!
  8228. \******************************************/
  8229. /*! no static exports found */
  8230. /***/ (function(module, exports, __webpack_require__) {
  8231. //! moment.js locale configuration
  8232. //! locale : Greek [el]
  8233. //! author : Aggelos Karalias : https://github.com/mehiel
  8234. ;(function (global, factory) {
  8235. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8236. undefined
  8237. }(this, (function (moment) { 'use strict';
  8238. function isFunction(input) {
  8239. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  8240. }
  8241. var el = moment.defineLocale('el', {
  8242. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  8243. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  8244. months : function (momentToFormat, format) {
  8245. if (!momentToFormat) {
  8246. return this._monthsNominativeEl;
  8247. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  8248. return this._monthsGenitiveEl[momentToFormat.month()];
  8249. } else {
  8250. return this._monthsNominativeEl[momentToFormat.month()];
  8251. }
  8252. },
  8253. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  8254. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  8255. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  8256. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  8257. meridiem : function (hours, minutes, isLower) {
  8258. if (hours > 11) {
  8259. return isLower ? 'μμ' : 'ΜΜ';
  8260. } else {
  8261. return isLower ? 'πμ' : 'ΠΜ';
  8262. }
  8263. },
  8264. isPM : function (input) {
  8265. return ((input + '').toLowerCase()[0] === 'μ');
  8266. },
  8267. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  8268. longDateFormat : {
  8269. LT : 'h:mm A',
  8270. LTS : 'h:mm:ss A',
  8271. L : 'DD/MM/YYYY',
  8272. LL : 'D MMMM YYYY',
  8273. LLL : 'D MMMM YYYY h:mm A',
  8274. LLLL : 'dddd, D MMMM YYYY h:mm A'
  8275. },
  8276. calendarEl : {
  8277. sameDay : '[Σήμερα {}] LT',
  8278. nextDay : '[Αύριο {}] LT',
  8279. nextWeek : 'dddd [{}] LT',
  8280. lastDay : '[Χθες {}] LT',
  8281. lastWeek : function () {
  8282. switch (this.day()) {
  8283. case 6:
  8284. return '[το προηγούμενο] dddd [{}] LT';
  8285. default:
  8286. return '[την προηγούμενη] dddd [{}] LT';
  8287. }
  8288. },
  8289. sameElse : 'L'
  8290. },
  8291. calendar : function (key, mom) {
  8292. var output = this._calendarEl[key],
  8293. hours = mom && mom.hours();
  8294. if (isFunction(output)) {
  8295. output = output.apply(mom);
  8296. }
  8297. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  8298. },
  8299. relativeTime : {
  8300. future : 'σε %s',
  8301. past : '%s πριν',
  8302. s : 'λίγα δευτερόλεπτα',
  8303. m : 'ένα λεπτό',
  8304. mm : '%d λεπτά',
  8305. h : 'μία ώρα',
  8306. hh : '%d ώρες',
  8307. d : 'μία μέρα',
  8308. dd : '%d μέρες',
  8309. M : 'ένας μήνας',
  8310. MM : '%d μήνες',
  8311. y : 'ένας χρόνος',
  8312. yy : '%d χρόνια'
  8313. },
  8314. dayOfMonthOrdinalParse: /\d{1,2}η/,
  8315. ordinal: '%dη',
  8316. week : {
  8317. dow : 1, // Monday is the first day of the week.
  8318. doy : 4 // The week that contains Jan 4st is the first week of the year.
  8319. }
  8320. });
  8321. return el;
  8322. })));
  8323. /***/ }),
  8324. /***/ "./node_modules/moment/locale/en-au.js":
  8325. /*!*********************************************!*\
  8326. !*** ./node_modules/moment/locale/en-au.js ***!
  8327. \*********************************************/
  8328. /*! no static exports found */
  8329. /***/ (function(module, exports, __webpack_require__) {
  8330. //! moment.js locale configuration
  8331. //! locale : English (Australia) [en-au]
  8332. //! author : Jared Morse : https://github.com/jarcoal
  8333. ;(function (global, factory) {
  8334. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8335. undefined
  8336. }(this, (function (moment) { 'use strict';
  8337. var enAu = moment.defineLocale('en-au', {
  8338. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8339. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8340. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8341. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8342. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8343. longDateFormat : {
  8344. LT : 'h:mm A',
  8345. LTS : 'h:mm:ss A',
  8346. L : 'DD/MM/YYYY',
  8347. LL : 'D MMMM YYYY',
  8348. LLL : 'D MMMM YYYY h:mm A',
  8349. LLLL : 'dddd, D MMMM YYYY h:mm A'
  8350. },
  8351. calendar : {
  8352. sameDay : '[Today at] LT',
  8353. nextDay : '[Tomorrow at] LT',
  8354. nextWeek : 'dddd [at] LT',
  8355. lastDay : '[Yesterday at] LT',
  8356. lastWeek : '[Last] dddd [at] LT',
  8357. sameElse : 'L'
  8358. },
  8359. relativeTime : {
  8360. future : 'in %s',
  8361. past : '%s ago',
  8362. s : 'a few seconds',
  8363. m : 'a minute',
  8364. mm : '%d minutes',
  8365. h : 'an hour',
  8366. hh : '%d hours',
  8367. d : 'a day',
  8368. dd : '%d days',
  8369. M : 'a month',
  8370. MM : '%d months',
  8371. y : 'a year',
  8372. yy : '%d years'
  8373. },
  8374. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8375. ordinal : function (number) {
  8376. var b = number % 10,
  8377. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8378. (b === 1) ? 'st' :
  8379. (b === 2) ? 'nd' :
  8380. (b === 3) ? 'rd' : 'th';
  8381. return number + output;
  8382. },
  8383. week : {
  8384. dow : 1, // Monday is the first day of the week.
  8385. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8386. }
  8387. });
  8388. return enAu;
  8389. })));
  8390. /***/ }),
  8391. /***/ "./node_modules/moment/locale/en-ca.js":
  8392. /*!*********************************************!*\
  8393. !*** ./node_modules/moment/locale/en-ca.js ***!
  8394. \*********************************************/
  8395. /*! no static exports found */
  8396. /***/ (function(module, exports, __webpack_require__) {
  8397. //! moment.js locale configuration
  8398. //! locale : English (Canada) [en-ca]
  8399. //! author : Jonathan Abourbih : https://github.com/jonbca
  8400. ;(function (global, factory) {
  8401. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8402. undefined
  8403. }(this, (function (moment) { 'use strict';
  8404. var enCa = moment.defineLocale('en-ca', {
  8405. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8406. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8407. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8408. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8409. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8410. longDateFormat : {
  8411. LT : 'h:mm A',
  8412. LTS : 'h:mm:ss A',
  8413. L : 'YYYY-MM-DD',
  8414. LL : 'MMMM D, YYYY',
  8415. LLL : 'MMMM D, YYYY h:mm A',
  8416. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  8417. },
  8418. calendar : {
  8419. sameDay : '[Today at] LT',
  8420. nextDay : '[Tomorrow at] LT',
  8421. nextWeek : 'dddd [at] LT',
  8422. lastDay : '[Yesterday at] LT',
  8423. lastWeek : '[Last] dddd [at] LT',
  8424. sameElse : 'L'
  8425. },
  8426. relativeTime : {
  8427. future : 'in %s',
  8428. past : '%s ago',
  8429. s : 'a few seconds',
  8430. m : 'a minute',
  8431. mm : '%d minutes',
  8432. h : 'an hour',
  8433. hh : '%d hours',
  8434. d : 'a day',
  8435. dd : '%d days',
  8436. M : 'a month',
  8437. MM : '%d months',
  8438. y : 'a year',
  8439. yy : '%d years'
  8440. },
  8441. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8442. ordinal : function (number) {
  8443. var b = number % 10,
  8444. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8445. (b === 1) ? 'st' :
  8446. (b === 2) ? 'nd' :
  8447. (b === 3) ? 'rd' : 'th';
  8448. return number + output;
  8449. }
  8450. });
  8451. return enCa;
  8452. })));
  8453. /***/ }),
  8454. /***/ "./node_modules/moment/locale/en-gb.js":
  8455. /*!*********************************************!*\
  8456. !*** ./node_modules/moment/locale/en-gb.js ***!
  8457. \*********************************************/
  8458. /*! no static exports found */
  8459. /***/ (function(module, exports, __webpack_require__) {
  8460. //! moment.js locale configuration
  8461. //! locale : English (United Kingdom) [en-gb]
  8462. //! author : Chris Gedrim : https://github.com/chrisgedrim
  8463. ;(function (global, factory) {
  8464. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8465. undefined
  8466. }(this, (function (moment) { 'use strict';
  8467. var enGb = moment.defineLocale('en-gb', {
  8468. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8469. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8470. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8471. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8472. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8473. longDateFormat : {
  8474. LT : 'HH:mm',
  8475. LTS : 'HH:mm:ss',
  8476. L : 'DD/MM/YYYY',
  8477. LL : 'D MMMM YYYY',
  8478. LLL : 'D MMMM YYYY HH:mm',
  8479. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8480. },
  8481. calendar : {
  8482. sameDay : '[Today at] LT',
  8483. nextDay : '[Tomorrow at] LT',
  8484. nextWeek : 'dddd [at] LT',
  8485. lastDay : '[Yesterday at] LT',
  8486. lastWeek : '[Last] dddd [at] LT',
  8487. sameElse : 'L'
  8488. },
  8489. relativeTime : {
  8490. future : 'in %s',
  8491. past : '%s ago',
  8492. s : 'a few seconds',
  8493. m : 'a minute',
  8494. mm : '%d minutes',
  8495. h : 'an hour',
  8496. hh : '%d hours',
  8497. d : 'a day',
  8498. dd : '%d days',
  8499. M : 'a month',
  8500. MM : '%d months',
  8501. y : 'a year',
  8502. yy : '%d years'
  8503. },
  8504. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8505. ordinal : function (number) {
  8506. var b = number % 10,
  8507. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8508. (b === 1) ? 'st' :
  8509. (b === 2) ? 'nd' :
  8510. (b === 3) ? 'rd' : 'th';
  8511. return number + output;
  8512. },
  8513. week : {
  8514. dow : 1, // Monday is the first day of the week.
  8515. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8516. }
  8517. });
  8518. return enGb;
  8519. })));
  8520. /***/ }),
  8521. /***/ "./node_modules/moment/locale/en-ie.js":
  8522. /*!*********************************************!*\
  8523. !*** ./node_modules/moment/locale/en-ie.js ***!
  8524. \*********************************************/
  8525. /*! no static exports found */
  8526. /***/ (function(module, exports, __webpack_require__) {
  8527. //! moment.js locale configuration
  8528. //! locale : English (Ireland) [en-ie]
  8529. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  8530. ;(function (global, factory) {
  8531. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8532. undefined
  8533. }(this, (function (moment) { 'use strict';
  8534. var enIe = moment.defineLocale('en-ie', {
  8535. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8536. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8537. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8538. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8539. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8540. longDateFormat : {
  8541. LT : 'HH:mm',
  8542. LTS : 'HH:mm:ss',
  8543. L : 'DD-MM-YYYY',
  8544. LL : 'D MMMM YYYY',
  8545. LLL : 'D MMMM YYYY HH:mm',
  8546. LLLL : 'dddd D MMMM YYYY HH:mm'
  8547. },
  8548. calendar : {
  8549. sameDay : '[Today at] LT',
  8550. nextDay : '[Tomorrow at] LT',
  8551. nextWeek : 'dddd [at] LT',
  8552. lastDay : '[Yesterday at] LT',
  8553. lastWeek : '[Last] dddd [at] LT',
  8554. sameElse : 'L'
  8555. },
  8556. relativeTime : {
  8557. future : 'in %s',
  8558. past : '%s ago',
  8559. s : 'a few seconds',
  8560. m : 'a minute',
  8561. mm : '%d minutes',
  8562. h : 'an hour',
  8563. hh : '%d hours',
  8564. d : 'a day',
  8565. dd : '%d days',
  8566. M : 'a month',
  8567. MM : '%d months',
  8568. y : 'a year',
  8569. yy : '%d years'
  8570. },
  8571. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8572. ordinal : function (number) {
  8573. var b = number % 10,
  8574. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8575. (b === 1) ? 'st' :
  8576. (b === 2) ? 'nd' :
  8577. (b === 3) ? 'rd' : 'th';
  8578. return number + output;
  8579. },
  8580. week : {
  8581. dow : 1, // Monday is the first day of the week.
  8582. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8583. }
  8584. });
  8585. return enIe;
  8586. })));
  8587. /***/ }),
  8588. /***/ "./node_modules/moment/locale/en-nz.js":
  8589. /*!*********************************************!*\
  8590. !*** ./node_modules/moment/locale/en-nz.js ***!
  8591. \*********************************************/
  8592. /*! no static exports found */
  8593. /***/ (function(module, exports, __webpack_require__) {
  8594. //! moment.js locale configuration
  8595. //! locale : English (New Zealand) [en-nz]
  8596. //! author : Luke McGregor : https://github.com/lukemcgregor
  8597. ;(function (global, factory) {
  8598. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8599. undefined
  8600. }(this, (function (moment) { 'use strict';
  8601. var enNz = moment.defineLocale('en-nz', {
  8602. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8603. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8604. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8605. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8606. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8607. longDateFormat : {
  8608. LT : 'h:mm A',
  8609. LTS : 'h:mm:ss A',
  8610. L : 'DD/MM/YYYY',
  8611. LL : 'D MMMM YYYY',
  8612. LLL : 'D MMMM YYYY h:mm A',
  8613. LLLL : 'dddd, D MMMM YYYY h:mm A'
  8614. },
  8615. calendar : {
  8616. sameDay : '[Today at] LT',
  8617. nextDay : '[Tomorrow at] LT',
  8618. nextWeek : 'dddd [at] LT',
  8619. lastDay : '[Yesterday at] LT',
  8620. lastWeek : '[Last] dddd [at] LT',
  8621. sameElse : 'L'
  8622. },
  8623. relativeTime : {
  8624. future : 'in %s',
  8625. past : '%s ago',
  8626. s : 'a few seconds',
  8627. m : 'a minute',
  8628. mm : '%d minutes',
  8629. h : 'an hour',
  8630. hh : '%d hours',
  8631. d : 'a day',
  8632. dd : '%d days',
  8633. M : 'a month',
  8634. MM : '%d months',
  8635. y : 'a year',
  8636. yy : '%d years'
  8637. },
  8638. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8639. ordinal : function (number) {
  8640. var b = number % 10,
  8641. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8642. (b === 1) ? 'st' :
  8643. (b === 2) ? 'nd' :
  8644. (b === 3) ? 'rd' : 'th';
  8645. return number + output;
  8646. },
  8647. week : {
  8648. dow : 1, // Monday is the first day of the week.
  8649. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8650. }
  8651. });
  8652. return enNz;
  8653. })));
  8654. /***/ }),
  8655. /***/ "./node_modules/moment/locale/eo.js":
  8656. /*!******************************************!*\
  8657. !*** ./node_modules/moment/locale/eo.js ***!
  8658. \******************************************/
  8659. /*! no static exports found */
  8660. /***/ (function(module, exports, __webpack_require__) {
  8661. //! moment.js locale configuration
  8662. //! locale : Esperanto [eo]
  8663. //! author : Colin Dean : https://github.com/colindean
  8664. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  8665. //! comment : miestasmia corrected the translation by colindean
  8666. ;(function (global, factory) {
  8667. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8668. undefined
  8669. }(this, (function (moment) { 'use strict';
  8670. var eo = moment.defineLocale('eo', {
  8671. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  8672. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  8673. weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  8674. weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  8675. weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  8676. longDateFormat : {
  8677. LT : 'HH:mm',
  8678. LTS : 'HH:mm:ss',
  8679. L : 'YYYY-MM-DD',
  8680. LL : 'D[-a de] MMMM, YYYY',
  8681. LLL : 'D[-a de] MMMM, YYYY HH:mm',
  8682. LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  8683. },
  8684. meridiemParse: /[ap]\.t\.m/i,
  8685. isPM: function (input) {
  8686. return input.charAt(0).toLowerCase() === 'p';
  8687. },
  8688. meridiem : function (hours, minutes, isLower) {
  8689. if (hours > 11) {
  8690. return isLower ? 'p.t.m.' : 'P.T.M.';
  8691. } else {
  8692. return isLower ? 'a.t.m.' : 'A.T.M.';
  8693. }
  8694. },
  8695. calendar : {
  8696. sameDay : '[Hodiaŭ je] LT',
  8697. nextDay : '[Morgaŭ je] LT',
  8698. nextWeek : 'dddd [je] LT',
  8699. lastDay : '[Hieraŭ je] LT',
  8700. lastWeek : '[pasinta] dddd [je] LT',
  8701. sameElse : 'L'
  8702. },
  8703. relativeTime : {
  8704. future : 'post %s',
  8705. past : 'antaŭ %s',
  8706. s : 'sekundoj',
  8707. m : 'minuto',
  8708. mm : '%d minutoj',
  8709. h : 'horo',
  8710. hh : '%d horoj',
  8711. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  8712. dd : '%d tagoj',
  8713. M : 'monato',
  8714. MM : '%d monatoj',
  8715. y : 'jaro',
  8716. yy : '%d jaroj'
  8717. },
  8718. dayOfMonthOrdinalParse: /\d{1,2}a/,
  8719. ordinal : '%da',
  8720. week : {
  8721. dow : 1, // Monday is the first day of the week.
  8722. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8723. }
  8724. });
  8725. return eo;
  8726. })));
  8727. /***/ }),
  8728. /***/ "./node_modules/moment/locale/es-do.js":
  8729. /*!*********************************************!*\
  8730. !*** ./node_modules/moment/locale/es-do.js ***!
  8731. \*********************************************/
  8732. /*! no static exports found */
  8733. /***/ (function(module, exports, __webpack_require__) {
  8734. //! moment.js locale configuration
  8735. //! locale : Spanish (Dominican Republic) [es-do]
  8736. ;(function (global, factory) {
  8737. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8738. undefined
  8739. }(this, (function (moment) { 'use strict';
  8740. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  8741. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  8742. var 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];
  8743. var 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;
  8744. var esDo = moment.defineLocale('es-do', {
  8745. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  8746. monthsShort : function (m, format) {
  8747. if (!m) {
  8748. return monthsShortDot;
  8749. } else if (/-MMM-/.test(format)) {
  8750. return monthsShort[m.month()];
  8751. } else {
  8752. return monthsShortDot[m.month()];
  8753. }
  8754. },
  8755. monthsRegex: monthsRegex,
  8756. monthsShortRegex: monthsRegex,
  8757. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8758. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8759. monthsParse: monthsParse,
  8760. longMonthsParse: monthsParse,
  8761. shortMonthsParse: monthsParse,
  8762. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8763. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8764. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8765. weekdaysParseExact : true,
  8766. longDateFormat : {
  8767. LT : 'h:mm A',
  8768. LTS : 'h:mm:ss A',
  8769. L : 'DD/MM/YYYY',
  8770. LL : 'D [de] MMMM [de] YYYY',
  8771. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  8772. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  8773. },
  8774. calendar : {
  8775. sameDay : function () {
  8776. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8777. },
  8778. nextDay : function () {
  8779. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8780. },
  8781. nextWeek : function () {
  8782. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8783. },
  8784. lastDay : function () {
  8785. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8786. },
  8787. lastWeek : function () {
  8788. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8789. },
  8790. sameElse : 'L'
  8791. },
  8792. relativeTime : {
  8793. future : 'en %s',
  8794. past : 'hace %s',
  8795. s : 'unos segundos',
  8796. m : 'un minuto',
  8797. mm : '%d minutos',
  8798. h : 'una hora',
  8799. hh : '%d horas',
  8800. d : 'un día',
  8801. dd : '%d días',
  8802. M : 'un mes',
  8803. MM : '%d meses',
  8804. y : 'un año',
  8805. yy : '%d años'
  8806. },
  8807. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8808. ordinal : '%dº',
  8809. week : {
  8810. dow : 1, // Monday is the first day of the week.
  8811. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8812. }
  8813. });
  8814. return esDo;
  8815. })));
  8816. /***/ }),
  8817. /***/ "./node_modules/moment/locale/es-us.js":
  8818. /*!*********************************************!*\
  8819. !*** ./node_modules/moment/locale/es-us.js ***!
  8820. \*********************************************/
  8821. /*! no static exports found */
  8822. /***/ (function(module, exports, __webpack_require__) {
  8823. //! moment.js locale configuration
  8824. //! locale : Spanish (United States) [es-us]
  8825. //! author : bustta : https://github.com/bustta
  8826. ;(function (global, factory) {
  8827. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8828. undefined
  8829. }(this, (function (moment) { 'use strict';
  8830. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  8831. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  8832. var esUs = moment.defineLocale('es-us', {
  8833. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  8834. monthsShort : function (m, format) {
  8835. if (!m) {
  8836. return monthsShortDot;
  8837. } else if (/-MMM-/.test(format)) {
  8838. return monthsShort[m.month()];
  8839. } else {
  8840. return monthsShortDot[m.month()];
  8841. }
  8842. },
  8843. monthsParseExact : true,
  8844. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8845. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8846. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8847. weekdaysParseExact : true,
  8848. longDateFormat : {
  8849. LT : 'H:mm',
  8850. LTS : 'H:mm:ss',
  8851. L : 'MM/DD/YYYY',
  8852. LL : 'MMMM [de] D [de] YYYY',
  8853. LLL : 'MMMM [de] D [de] YYYY H:mm',
  8854. LLLL : 'dddd, MMMM [de] D [de] YYYY H:mm'
  8855. },
  8856. calendar : {
  8857. sameDay : function () {
  8858. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8859. },
  8860. nextDay : function () {
  8861. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8862. },
  8863. nextWeek : function () {
  8864. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8865. },
  8866. lastDay : function () {
  8867. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8868. },
  8869. lastWeek : function () {
  8870. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8871. },
  8872. sameElse : 'L'
  8873. },
  8874. relativeTime : {
  8875. future : 'en %s',
  8876. past : 'hace %s',
  8877. s : 'unos segundos',
  8878. m : 'un minuto',
  8879. mm : '%d minutos',
  8880. h : 'una hora',
  8881. hh : '%d horas',
  8882. d : 'un día',
  8883. dd : '%d días',
  8884. M : 'un mes',
  8885. MM : '%d meses',
  8886. y : 'un año',
  8887. yy : '%d años'
  8888. },
  8889. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8890. ordinal : '%dº',
  8891. week : {
  8892. dow : 0, // Sunday is the first day of the week.
  8893. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8894. }
  8895. });
  8896. return esUs;
  8897. })));
  8898. /***/ }),
  8899. /***/ "./node_modules/moment/locale/es.js":
  8900. /*!******************************************!*\
  8901. !*** ./node_modules/moment/locale/es.js ***!
  8902. \******************************************/
  8903. /*! no static exports found */
  8904. /***/ (function(module, exports, __webpack_require__) {
  8905. //! moment.js locale configuration
  8906. //! locale : Spanish [es]
  8907. //! author : Julio Napurí : https://github.com/julionc
  8908. ;(function (global, factory) {
  8909. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8910. undefined
  8911. }(this, (function (moment) { 'use strict';
  8912. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  8913. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  8914. var 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];
  8915. var 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;
  8916. var es = moment.defineLocale('es', {
  8917. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  8918. monthsShort : function (m, format) {
  8919. if (!m) {
  8920. return monthsShortDot;
  8921. } else if (/-MMM-/.test(format)) {
  8922. return monthsShort[m.month()];
  8923. } else {
  8924. return monthsShortDot[m.month()];
  8925. }
  8926. },
  8927. monthsRegex : monthsRegex,
  8928. monthsShortRegex : monthsRegex,
  8929. monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8930. monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8931. monthsParse : monthsParse,
  8932. longMonthsParse : monthsParse,
  8933. shortMonthsParse : monthsParse,
  8934. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8935. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8936. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8937. weekdaysParseExact : true,
  8938. longDateFormat : {
  8939. LT : 'H:mm',
  8940. LTS : 'H:mm:ss',
  8941. L : 'DD/MM/YYYY',
  8942. LL : 'D [de] MMMM [de] YYYY',
  8943. LLL : 'D [de] MMMM [de] YYYY H:mm',
  8944. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  8945. },
  8946. calendar : {
  8947. sameDay : function () {
  8948. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8949. },
  8950. nextDay : function () {
  8951. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8952. },
  8953. nextWeek : function () {
  8954. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8955. },
  8956. lastDay : function () {
  8957. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8958. },
  8959. lastWeek : function () {
  8960. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8961. },
  8962. sameElse : 'L'
  8963. },
  8964. relativeTime : {
  8965. future : 'en %s',
  8966. past : 'hace %s',
  8967. s : 'unos segundos',
  8968. m : 'un minuto',
  8969. mm : '%d minutos',
  8970. h : 'una hora',
  8971. hh : '%d horas',
  8972. d : 'un día',
  8973. dd : '%d días',
  8974. M : 'un mes',
  8975. MM : '%d meses',
  8976. y : 'un año',
  8977. yy : '%d años'
  8978. },
  8979. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8980. ordinal : '%dº',
  8981. week : {
  8982. dow : 1, // Monday is the first day of the week.
  8983. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8984. }
  8985. });
  8986. return es;
  8987. })));
  8988. /***/ }),
  8989. /***/ "./node_modules/moment/locale/et.js":
  8990. /*!******************************************!*\
  8991. !*** ./node_modules/moment/locale/et.js ***!
  8992. \******************************************/
  8993. /*! no static exports found */
  8994. /***/ (function(module, exports, __webpack_require__) {
  8995. //! moment.js locale configuration
  8996. //! locale : Estonian [et]
  8997. //! author : Henry Kehlmann : https://github.com/madhenry
  8998. //! improvements : Illimar Tambek : https://github.com/ragulka
  8999. ;(function (global, factory) {
  9000. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9001. undefined
  9002. }(this, (function (moment) { 'use strict';
  9003. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  9004. var format = {
  9005. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  9006. 'm' : ['ühe minuti', 'üks minut'],
  9007. 'mm': [number + ' minuti', number + ' minutit'],
  9008. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  9009. 'hh': [number + ' tunni', number + ' tundi'],
  9010. 'd' : ['ühe päeva', 'üks päev'],
  9011. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  9012. 'MM': [number + ' kuu', number + ' kuud'],
  9013. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  9014. 'yy': [number + ' aasta', number + ' aastat']
  9015. };
  9016. if (withoutSuffix) {
  9017. return format[key][2] ? format[key][2] : format[key][1];
  9018. }
  9019. return isFuture ? format[key][0] : format[key][1];
  9020. }
  9021. var et = moment.defineLocale('et', {
  9022. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  9023. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  9024. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  9025. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  9026. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  9027. longDateFormat : {
  9028. LT : 'H:mm',
  9029. LTS : 'H:mm:ss',
  9030. L : 'DD.MM.YYYY',
  9031. LL : 'D. MMMM YYYY',
  9032. LLL : 'D. MMMM YYYY H:mm',
  9033. LLLL : 'dddd, D. MMMM YYYY H:mm'
  9034. },
  9035. calendar : {
  9036. sameDay : '[Täna,] LT',
  9037. nextDay : '[Homme,] LT',
  9038. nextWeek : '[Järgmine] dddd LT',
  9039. lastDay : '[Eile,] LT',
  9040. lastWeek : '[Eelmine] dddd LT',
  9041. sameElse : 'L'
  9042. },
  9043. relativeTime : {
  9044. future : '%s pärast',
  9045. past : '%s tagasi',
  9046. s : processRelativeTime,
  9047. m : processRelativeTime,
  9048. mm : processRelativeTime,
  9049. h : processRelativeTime,
  9050. hh : processRelativeTime,
  9051. d : processRelativeTime,
  9052. dd : '%d päeva',
  9053. M : processRelativeTime,
  9054. MM : processRelativeTime,
  9055. y : processRelativeTime,
  9056. yy : processRelativeTime
  9057. },
  9058. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9059. ordinal : '%d.',
  9060. week : {
  9061. dow : 1, // Monday is the first day of the week.
  9062. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9063. }
  9064. });
  9065. return et;
  9066. })));
  9067. /***/ }),
  9068. /***/ "./node_modules/moment/locale/eu.js":
  9069. /*!******************************************!*\
  9070. !*** ./node_modules/moment/locale/eu.js ***!
  9071. \******************************************/
  9072. /*! no static exports found */
  9073. /***/ (function(module, exports, __webpack_require__) {
  9074. //! moment.js locale configuration
  9075. //! locale : Basque [eu]
  9076. //! author : Eneko Illarramendi : https://github.com/eillarra
  9077. ;(function (global, factory) {
  9078. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9079. undefined
  9080. }(this, (function (moment) { 'use strict';
  9081. var eu = moment.defineLocale('eu', {
  9082. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  9083. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  9084. monthsParseExact : true,
  9085. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  9086. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  9087. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  9088. weekdaysParseExact : true,
  9089. longDateFormat : {
  9090. LT : 'HH:mm',
  9091. LTS : 'HH:mm:ss',
  9092. L : 'YYYY-MM-DD',
  9093. LL : 'YYYY[ko] MMMM[ren] D[a]',
  9094. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  9095. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  9096. l : 'YYYY-M-D',
  9097. ll : 'YYYY[ko] MMM D[a]',
  9098. lll : 'YYYY[ko] MMM D[a] HH:mm',
  9099. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  9100. },
  9101. calendar : {
  9102. sameDay : '[gaur] LT[etan]',
  9103. nextDay : '[bihar] LT[etan]',
  9104. nextWeek : 'dddd LT[etan]',
  9105. lastDay : '[atzo] LT[etan]',
  9106. lastWeek : '[aurreko] dddd LT[etan]',
  9107. sameElse : 'L'
  9108. },
  9109. relativeTime : {
  9110. future : '%s barru',
  9111. past : 'duela %s',
  9112. s : 'segundo batzuk',
  9113. m : 'minutu bat',
  9114. mm : '%d minutu',
  9115. h : 'ordu bat',
  9116. hh : '%d ordu',
  9117. d : 'egun bat',
  9118. dd : '%d egun',
  9119. M : 'hilabete bat',
  9120. MM : '%d hilabete',
  9121. y : 'urte bat',
  9122. yy : '%d urte'
  9123. },
  9124. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9125. ordinal : '%d.',
  9126. week : {
  9127. dow : 1, // Monday is the first day of the week.
  9128. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9129. }
  9130. });
  9131. return eu;
  9132. })));
  9133. /***/ }),
  9134. /***/ "./node_modules/moment/locale/fa.js":
  9135. /*!******************************************!*\
  9136. !*** ./node_modules/moment/locale/fa.js ***!
  9137. \******************************************/
  9138. /*! no static exports found */
  9139. /***/ (function(module, exports, __webpack_require__) {
  9140. //! moment.js locale configuration
  9141. //! locale : Persian [fa]
  9142. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  9143. ;(function (global, factory) {
  9144. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9145. undefined
  9146. }(this, (function (moment) { 'use strict';
  9147. var symbolMap = {
  9148. '1': '۱',
  9149. '2': '۲',
  9150. '3': '۳',
  9151. '4': '۴',
  9152. '5': '۵',
  9153. '6': '۶',
  9154. '7': '۷',
  9155. '8': '۸',
  9156. '9': '۹',
  9157. '0': '۰'
  9158. };
  9159. var numberMap = {
  9160. '۱': '1',
  9161. '۲': '2',
  9162. '۳': '3',
  9163. '۴': '4',
  9164. '۵': '5',
  9165. '۶': '6',
  9166. '۷': '7',
  9167. '۸': '8',
  9168. '۹': '9',
  9169. '۰': '0'
  9170. };
  9171. var fa = moment.defineLocale('fa', {
  9172. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  9173. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  9174. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  9175. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  9176. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  9177. weekdaysParseExact : true,
  9178. longDateFormat : {
  9179. LT : 'HH:mm',
  9180. LTS : 'HH:mm:ss',
  9181. L : 'DD/MM/YYYY',
  9182. LL : 'D MMMM YYYY',
  9183. LLL : 'D MMMM YYYY HH:mm',
  9184. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9185. },
  9186. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  9187. isPM: function (input) {
  9188. return /بعد از ظهر/.test(input);
  9189. },
  9190. meridiem : function (hour, minute, isLower) {
  9191. if (hour < 12) {
  9192. return 'قبل از ظهر';
  9193. } else {
  9194. return 'بعد از ظهر';
  9195. }
  9196. },
  9197. calendar : {
  9198. sameDay : '[امروز ساعت] LT',
  9199. nextDay : '[فردا ساعت] LT',
  9200. nextWeek : 'dddd [ساعت] LT',
  9201. lastDay : '[دیروز ساعت] LT',
  9202. lastWeek : 'dddd [پیش] [ساعت] LT',
  9203. sameElse : 'L'
  9204. },
  9205. relativeTime : {
  9206. future : 'در %s',
  9207. past : '%s پیش',
  9208. s : 'چند ثانیه',
  9209. m : 'یک دقیقه',
  9210. mm : '%d دقیقه',
  9211. h : 'یک ساعت',
  9212. hh : '%d ساعت',
  9213. d : 'یک روز',
  9214. dd : '%d روز',
  9215. M : 'یک ماه',
  9216. MM : '%d ماه',
  9217. y : 'یک سال',
  9218. yy : '%d سال'
  9219. },
  9220. preparse: function (string) {
  9221. return string.replace(/[۰-۹]/g, function (match) {
  9222. return numberMap[match];
  9223. }).replace(/،/g, ',');
  9224. },
  9225. postformat: function (string) {
  9226. return string.replace(/\d/g, function (match) {
  9227. return symbolMap[match];
  9228. }).replace(/,/g, '،');
  9229. },
  9230. dayOfMonthOrdinalParse: /\d{1,2}م/,
  9231. ordinal : '%dم',
  9232. week : {
  9233. dow : 6, // Saturday is the first day of the week.
  9234. doy : 12 // The week that contains Jan 1st is the first week of the year.
  9235. }
  9236. });
  9237. return fa;
  9238. })));
  9239. /***/ }),
  9240. /***/ "./node_modules/moment/locale/fi.js":
  9241. /*!******************************************!*\
  9242. !*** ./node_modules/moment/locale/fi.js ***!
  9243. \******************************************/
  9244. /*! no static exports found */
  9245. /***/ (function(module, exports, __webpack_require__) {
  9246. //! moment.js locale configuration
  9247. //! locale : Finnish [fi]
  9248. //! author : Tarmo Aidantausta : https://github.com/bleadof
  9249. ;(function (global, factory) {
  9250. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9251. undefined
  9252. }(this, (function (moment) { 'use strict';
  9253. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
  9254. var numbersFuture = [
  9255. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  9256. numbersPast[7], numbersPast[8], numbersPast[9]
  9257. ];
  9258. function translate(number, withoutSuffix, key, isFuture) {
  9259. var result = '';
  9260. switch (key) {
  9261. case 's':
  9262. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  9263. case 'm':
  9264. return isFuture ? 'minuutin' : 'minuutti';
  9265. case 'mm':
  9266. result = isFuture ? 'minuutin' : 'minuuttia';
  9267. break;
  9268. case 'h':
  9269. return isFuture ? 'tunnin' : 'tunti';
  9270. case 'hh':
  9271. result = isFuture ? 'tunnin' : 'tuntia';
  9272. break;
  9273. case 'd':
  9274. return isFuture ? 'päivän' : 'päivä';
  9275. case 'dd':
  9276. result = isFuture ? 'päivän' : 'päivää';
  9277. break;
  9278. case 'M':
  9279. return isFuture ? 'kuukauden' : 'kuukausi';
  9280. case 'MM':
  9281. result = isFuture ? 'kuukauden' : 'kuukautta';
  9282. break;
  9283. case 'y':
  9284. return isFuture ? 'vuoden' : 'vuosi';
  9285. case 'yy':
  9286. result = isFuture ? 'vuoden' : 'vuotta';
  9287. break;
  9288. }
  9289. result = verbalNumber(number, isFuture) + ' ' + result;
  9290. return result;
  9291. }
  9292. function verbalNumber(number, isFuture) {
  9293. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  9294. }
  9295. var fi = moment.defineLocale('fi', {
  9296. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  9297. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  9298. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  9299. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  9300. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  9301. longDateFormat : {
  9302. LT : 'HH.mm',
  9303. LTS : 'HH.mm.ss',
  9304. L : 'DD.MM.YYYY',
  9305. LL : 'Do MMMM[ta] YYYY',
  9306. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  9307. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  9308. l : 'D.M.YYYY',
  9309. ll : 'Do MMM YYYY',
  9310. lll : 'Do MMM YYYY, [klo] HH.mm',
  9311. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  9312. },
  9313. calendar : {
  9314. sameDay : '[tänään] [klo] LT',
  9315. nextDay : '[huomenna] [klo] LT',
  9316. nextWeek : 'dddd [klo] LT',
  9317. lastDay : '[eilen] [klo] LT',
  9318. lastWeek : '[viime] dddd[na] [klo] LT',
  9319. sameElse : 'L'
  9320. },
  9321. relativeTime : {
  9322. future : '%s päästä',
  9323. past : '%s sitten',
  9324. s : translate,
  9325. m : translate,
  9326. mm : translate,
  9327. h : translate,
  9328. hh : translate,
  9329. d : translate,
  9330. dd : translate,
  9331. M : translate,
  9332. MM : translate,
  9333. y : translate,
  9334. yy : translate
  9335. },
  9336. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9337. ordinal : '%d.',
  9338. week : {
  9339. dow : 1, // Monday is the first day of the week.
  9340. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9341. }
  9342. });
  9343. return fi;
  9344. })));
  9345. /***/ }),
  9346. /***/ "./node_modules/moment/locale/fo.js":
  9347. /*!******************************************!*\
  9348. !*** ./node_modules/moment/locale/fo.js ***!
  9349. \******************************************/
  9350. /*! no static exports found */
  9351. /***/ (function(module, exports, __webpack_require__) {
  9352. //! moment.js locale configuration
  9353. //! locale : Faroese [fo]
  9354. //! author : Ragnar Johannesen : https://github.com/ragnar123
  9355. ;(function (global, factory) {
  9356. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9357. undefined
  9358. }(this, (function (moment) { 'use strict';
  9359. var fo = moment.defineLocale('fo', {
  9360. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  9361. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  9362. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  9363. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  9364. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  9365. longDateFormat : {
  9366. LT : 'HH:mm',
  9367. LTS : 'HH:mm:ss',
  9368. L : 'DD/MM/YYYY',
  9369. LL : 'D MMMM YYYY',
  9370. LLL : 'D MMMM YYYY HH:mm',
  9371. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  9372. },
  9373. calendar : {
  9374. sameDay : '[Í dag kl.] LT',
  9375. nextDay : '[Í morgin kl.] LT',
  9376. nextWeek : 'dddd [kl.] LT',
  9377. lastDay : '[Í gjár kl.] LT',
  9378. lastWeek : '[síðstu] dddd [kl] LT',
  9379. sameElse : 'L'
  9380. },
  9381. relativeTime : {
  9382. future : 'um %s',
  9383. past : '%s síðani',
  9384. s : 'fá sekund',
  9385. m : 'ein minutt',
  9386. mm : '%d minuttir',
  9387. h : 'ein tími',
  9388. hh : '%d tímar',
  9389. d : 'ein dagur',
  9390. dd : '%d dagar',
  9391. M : 'ein mánaði',
  9392. MM : '%d mánaðir',
  9393. y : 'eitt ár',
  9394. yy : '%d ár'
  9395. },
  9396. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9397. ordinal : '%d.',
  9398. week : {
  9399. dow : 1, // Monday is the first day of the week.
  9400. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9401. }
  9402. });
  9403. return fo;
  9404. })));
  9405. /***/ }),
  9406. /***/ "./node_modules/moment/locale/fr-ca.js":
  9407. /*!*********************************************!*\
  9408. !*** ./node_modules/moment/locale/fr-ca.js ***!
  9409. \*********************************************/
  9410. /*! no static exports found */
  9411. /***/ (function(module, exports, __webpack_require__) {
  9412. //! moment.js locale configuration
  9413. //! locale : French (Canada) [fr-ca]
  9414. //! author : Jonathan Abourbih : https://github.com/jonbca
  9415. ;(function (global, factory) {
  9416. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9417. undefined
  9418. }(this, (function (moment) { 'use strict';
  9419. var frCa = moment.defineLocale('fr-ca', {
  9420. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  9421. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  9422. monthsParseExact : true,
  9423. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9424. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9425. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  9426. weekdaysParseExact : true,
  9427. longDateFormat : {
  9428. LT : 'HH:mm',
  9429. LTS : 'HH:mm:ss',
  9430. L : 'YYYY-MM-DD',
  9431. LL : 'D MMMM YYYY',
  9432. LLL : 'D MMMM YYYY HH:mm',
  9433. LLLL : 'dddd D MMMM YYYY HH:mm'
  9434. },
  9435. calendar : {
  9436. sameDay : '[Aujourd’hui à] LT',
  9437. nextDay : '[Demain à] LT',
  9438. nextWeek : 'dddd [à] LT',
  9439. lastDay : '[Hier à] LT',
  9440. lastWeek : 'dddd [dernier à] LT',
  9441. sameElse : 'L'
  9442. },
  9443. relativeTime : {
  9444. future : 'dans %s',
  9445. past : 'il y a %s',
  9446. s : 'quelques secondes',
  9447. m : 'une minute',
  9448. mm : '%d minutes',
  9449. h : 'une heure',
  9450. hh : '%d heures',
  9451. d : 'un jour',
  9452. dd : '%d jours',
  9453. M : 'un mois',
  9454. MM : '%d mois',
  9455. y : 'un an',
  9456. yy : '%d ans'
  9457. },
  9458. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9459. ordinal : function (number, period) {
  9460. switch (period) {
  9461. // Words with masculine grammatical gender: mois, trimestre, jour
  9462. default:
  9463. case 'M':
  9464. case 'Q':
  9465. case 'D':
  9466. case 'DDD':
  9467. case 'd':
  9468. return number + (number === 1 ? 'er' : 'e');
  9469. // Words with feminine grammatical gender: semaine
  9470. case 'w':
  9471. case 'W':
  9472. return number + (number === 1 ? 're' : 'e');
  9473. }
  9474. }
  9475. });
  9476. return frCa;
  9477. })));
  9478. /***/ }),
  9479. /***/ "./node_modules/moment/locale/fr-ch.js":
  9480. /*!*********************************************!*\
  9481. !*** ./node_modules/moment/locale/fr-ch.js ***!
  9482. \*********************************************/
  9483. /*! no static exports found */
  9484. /***/ (function(module, exports, __webpack_require__) {
  9485. //! moment.js locale configuration
  9486. //! locale : French (Switzerland) [fr-ch]
  9487. //! author : Gaspard Bucher : https://github.com/gaspard
  9488. ;(function (global, factory) {
  9489. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9490. undefined
  9491. }(this, (function (moment) { 'use strict';
  9492. var frCh = moment.defineLocale('fr-ch', {
  9493. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  9494. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  9495. monthsParseExact : true,
  9496. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9497. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9498. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  9499. weekdaysParseExact : true,
  9500. longDateFormat : {
  9501. LT : 'HH:mm',
  9502. LTS : 'HH:mm:ss',
  9503. L : 'DD.MM.YYYY',
  9504. LL : 'D MMMM YYYY',
  9505. LLL : 'D MMMM YYYY HH:mm',
  9506. LLLL : 'dddd D MMMM YYYY HH:mm'
  9507. },
  9508. calendar : {
  9509. sameDay : '[Aujourd’hui à] LT',
  9510. nextDay : '[Demain à] LT',
  9511. nextWeek : 'dddd [à] LT',
  9512. lastDay : '[Hier à] LT',
  9513. lastWeek : 'dddd [dernier à] LT',
  9514. sameElse : 'L'
  9515. },
  9516. relativeTime : {
  9517. future : 'dans %s',
  9518. past : 'il y a %s',
  9519. s : 'quelques secondes',
  9520. m : 'une minute',
  9521. mm : '%d minutes',
  9522. h : 'une heure',
  9523. hh : '%d heures',
  9524. d : 'un jour',
  9525. dd : '%d jours',
  9526. M : 'un mois',
  9527. MM : '%d mois',
  9528. y : 'un an',
  9529. yy : '%d ans'
  9530. },
  9531. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9532. ordinal : function (number, period) {
  9533. switch (period) {
  9534. // Words with masculine grammatical gender: mois, trimestre, jour
  9535. default:
  9536. case 'M':
  9537. case 'Q':
  9538. case 'D':
  9539. case 'DDD':
  9540. case 'd':
  9541. return number + (number === 1 ? 'er' : 'e');
  9542. // Words with feminine grammatical gender: semaine
  9543. case 'w':
  9544. case 'W':
  9545. return number + (number === 1 ? 're' : 'e');
  9546. }
  9547. },
  9548. week : {
  9549. dow : 1, // Monday is the first day of the week.
  9550. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9551. }
  9552. });
  9553. return frCh;
  9554. })));
  9555. /***/ }),
  9556. /***/ "./node_modules/moment/locale/fr.js":
  9557. /*!******************************************!*\
  9558. !*** ./node_modules/moment/locale/fr.js ***!
  9559. \******************************************/
  9560. /*! no static exports found */
  9561. /***/ (function(module, exports, __webpack_require__) {
  9562. //! moment.js locale configuration
  9563. //! locale : French [fr]
  9564. //! author : John Fischer : https://github.com/jfroffice
  9565. ;(function (global, factory) {
  9566. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9567. undefined
  9568. }(this, (function (moment) { 'use strict';
  9569. var fr = moment.defineLocale('fr', {
  9570. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  9571. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  9572. monthsParseExact : true,
  9573. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9574. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9575. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  9576. weekdaysParseExact : true,
  9577. longDateFormat : {
  9578. LT : 'HH:mm',
  9579. LTS : 'HH:mm:ss',
  9580. L : 'DD/MM/YYYY',
  9581. LL : 'D MMMM YYYY',
  9582. LLL : 'D MMMM YYYY HH:mm',
  9583. LLLL : 'dddd D MMMM YYYY HH:mm'
  9584. },
  9585. calendar : {
  9586. sameDay : '[Aujourd’hui à] LT',
  9587. nextDay : '[Demain à] LT',
  9588. nextWeek : 'dddd [à] LT',
  9589. lastDay : '[Hier à] LT',
  9590. lastWeek : 'dddd [dernier à] LT',
  9591. sameElse : 'L'
  9592. },
  9593. relativeTime : {
  9594. future : 'dans %s',
  9595. past : 'il y a %s',
  9596. s : 'quelques secondes',
  9597. m : 'une minute',
  9598. mm : '%d minutes',
  9599. h : 'une heure',
  9600. hh : '%d heures',
  9601. d : 'un jour',
  9602. dd : '%d jours',
  9603. M : 'un mois',
  9604. MM : '%d mois',
  9605. y : 'un an',
  9606. yy : '%d ans'
  9607. },
  9608. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  9609. ordinal : function (number, period) {
  9610. switch (period) {
  9611. // TODO: Return 'e' when day of month > 1. Move this case inside
  9612. // block for masculine words below.
  9613. // See https://github.com/moment/moment/issues/3375
  9614. case 'D':
  9615. return number + (number === 1 ? 'er' : '');
  9616. // Words with masculine grammatical gender: mois, trimestre, jour
  9617. default:
  9618. case 'M':
  9619. case 'Q':
  9620. case 'DDD':
  9621. case 'd':
  9622. return number + (number === 1 ? 'er' : 'e');
  9623. // Words with feminine grammatical gender: semaine
  9624. case 'w':
  9625. case 'W':
  9626. return number + (number === 1 ? 're' : 'e');
  9627. }
  9628. },
  9629. week : {
  9630. dow : 1, // Monday is the first day of the week.
  9631. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9632. }
  9633. });
  9634. return fr;
  9635. })));
  9636. /***/ }),
  9637. /***/ "./node_modules/moment/locale/fy.js":
  9638. /*!******************************************!*\
  9639. !*** ./node_modules/moment/locale/fy.js ***!
  9640. \******************************************/
  9641. /*! no static exports found */
  9642. /***/ (function(module, exports, __webpack_require__) {
  9643. //! moment.js locale configuration
  9644. //! locale : Frisian [fy]
  9645. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  9646. ;(function (global, factory) {
  9647. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9648. undefined
  9649. }(this, (function (moment) { 'use strict';
  9650. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
  9651. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  9652. var fy = moment.defineLocale('fy', {
  9653. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  9654. monthsShort : function (m, format) {
  9655. if (!m) {
  9656. return monthsShortWithDots;
  9657. } else if (/-MMM-/.test(format)) {
  9658. return monthsShortWithoutDots[m.month()];
  9659. } else {
  9660. return monthsShortWithDots[m.month()];
  9661. }
  9662. },
  9663. monthsParseExact : true,
  9664. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  9665. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  9666. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  9667. weekdaysParseExact : true,
  9668. longDateFormat : {
  9669. LT : 'HH:mm',
  9670. LTS : 'HH:mm:ss',
  9671. L : 'DD-MM-YYYY',
  9672. LL : 'D MMMM YYYY',
  9673. LLL : 'D MMMM YYYY HH:mm',
  9674. LLLL : 'dddd D MMMM YYYY HH:mm'
  9675. },
  9676. calendar : {
  9677. sameDay: '[hjoed om] LT',
  9678. nextDay: '[moarn om] LT',
  9679. nextWeek: 'dddd [om] LT',
  9680. lastDay: '[juster om] LT',
  9681. lastWeek: '[ôfrûne] dddd [om] LT',
  9682. sameElse: 'L'
  9683. },
  9684. relativeTime : {
  9685. future : 'oer %s',
  9686. past : '%s lyn',
  9687. s : 'in pear sekonden',
  9688. m : 'ien minút',
  9689. mm : '%d minuten',
  9690. h : 'ien oere',
  9691. hh : '%d oeren',
  9692. d : 'ien dei',
  9693. dd : '%d dagen',
  9694. M : 'ien moanne',
  9695. MM : '%d moannen',
  9696. y : 'ien jier',
  9697. yy : '%d jierren'
  9698. },
  9699. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9700. ordinal : function (number) {
  9701. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9702. },
  9703. week : {
  9704. dow : 1, // Monday is the first day of the week.
  9705. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9706. }
  9707. });
  9708. return fy;
  9709. })));
  9710. /***/ }),
  9711. /***/ "./node_modules/moment/locale/gd.js":
  9712. /*!******************************************!*\
  9713. !*** ./node_modules/moment/locale/gd.js ***!
  9714. \******************************************/
  9715. /*! no static exports found */
  9716. /***/ (function(module, exports, __webpack_require__) {
  9717. //! moment.js locale configuration
  9718. //! locale : Scottish Gaelic [gd]
  9719. //! author : Jon Ashdown : https://github.com/jonashdown
  9720. ;(function (global, factory) {
  9721. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9722. undefined
  9723. }(this, (function (moment) { 'use strict';
  9724. var months = [
  9725. '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'
  9726. ];
  9727. var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  9728. var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  9729. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  9730. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9731. var gd = moment.defineLocale('gd', {
  9732. months : months,
  9733. monthsShort : monthsShort,
  9734. monthsParseExact : true,
  9735. weekdays : weekdays,
  9736. weekdaysShort : weekdaysShort,
  9737. weekdaysMin : weekdaysMin,
  9738. longDateFormat : {
  9739. LT : 'HH:mm',
  9740. LTS : 'HH:mm:ss',
  9741. L : 'DD/MM/YYYY',
  9742. LL : 'D MMMM YYYY',
  9743. LLL : 'D MMMM YYYY HH:mm',
  9744. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9745. },
  9746. calendar : {
  9747. sameDay : '[An-diugh aig] LT',
  9748. nextDay : '[A-màireach aig] LT',
  9749. nextWeek : 'dddd [aig] LT',
  9750. lastDay : '[An-dè aig] LT',
  9751. lastWeek : 'dddd [seo chaidh] [aig] LT',
  9752. sameElse : 'L'
  9753. },
  9754. relativeTime : {
  9755. future : 'ann an %s',
  9756. past : 'bho chionn %s',
  9757. s : 'beagan diogan',
  9758. m : 'mionaid',
  9759. mm : '%d mionaidean',
  9760. h : 'uair',
  9761. hh : '%d uairean',
  9762. d : 'latha',
  9763. dd : '%d latha',
  9764. M : 'mìos',
  9765. MM : '%d mìosan',
  9766. y : 'bliadhna',
  9767. yy : '%d bliadhna'
  9768. },
  9769. dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
  9770. ordinal : function (number) {
  9771. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9772. return number + output;
  9773. },
  9774. week : {
  9775. dow : 1, // Monday is the first day of the week.
  9776. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9777. }
  9778. });
  9779. return gd;
  9780. })));
  9781. /***/ }),
  9782. /***/ "./node_modules/moment/locale/gl.js":
  9783. /*!******************************************!*\
  9784. !*** ./node_modules/moment/locale/gl.js ***!
  9785. \******************************************/
  9786. /*! no static exports found */
  9787. /***/ (function(module, exports, __webpack_require__) {
  9788. //! moment.js locale configuration
  9789. //! locale : Galician [gl]
  9790. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  9791. ;(function (global, factory) {
  9792. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9793. undefined
  9794. }(this, (function (moment) { 'use strict';
  9795. var gl = moment.defineLocale('gl', {
  9796. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  9797. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  9798. monthsParseExact: true,
  9799. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9800. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9801. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9802. weekdaysParseExact : true,
  9803. longDateFormat : {
  9804. LT : 'H:mm',
  9805. LTS : 'H:mm:ss',
  9806. L : 'DD/MM/YYYY',
  9807. LL : 'D [de] MMMM [de] YYYY',
  9808. LLL : 'D [de] MMMM [de] YYYY H:mm',
  9809. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  9810. },
  9811. calendar : {
  9812. sameDay : function () {
  9813. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  9814. },
  9815. nextDay : function () {
  9816. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  9817. },
  9818. nextWeek : function () {
  9819. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  9820. },
  9821. lastDay : function () {
  9822. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  9823. },
  9824. lastWeek : function () {
  9825. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  9826. },
  9827. sameElse : 'L'
  9828. },
  9829. relativeTime : {
  9830. future : function (str) {
  9831. if (str.indexOf('un') === 0) {
  9832. return 'n' + str;
  9833. }
  9834. return 'en ' + str;
  9835. },
  9836. past : 'hai %s',
  9837. s : 'uns segundos',
  9838. m : 'un minuto',
  9839. mm : '%d minutos',
  9840. h : 'unha hora',
  9841. hh : '%d horas',
  9842. d : 'un día',
  9843. dd : '%d días',
  9844. M : 'un mes',
  9845. MM : '%d meses',
  9846. y : 'un ano',
  9847. yy : '%d anos'
  9848. },
  9849. dayOfMonthOrdinalParse : /\d{1,2}º/,
  9850. ordinal : '%dº',
  9851. week : {
  9852. dow : 1, // Monday is the first day of the week.
  9853. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9854. }
  9855. });
  9856. return gl;
  9857. })));
  9858. /***/ }),
  9859. /***/ "./node_modules/moment/locale/gom-latn.js":
  9860. /*!************************************************!*\
  9861. !*** ./node_modules/moment/locale/gom-latn.js ***!
  9862. \************************************************/
  9863. /*! no static exports found */
  9864. /***/ (function(module, exports, __webpack_require__) {
  9865. //! moment.js locale configuration
  9866. //! locale : Konkani Latin script [gom-latn]
  9867. //! author : The Discoverer : https://github.com/WikiDiscoverer
  9868. ;(function (global, factory) {
  9869. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9870. undefined
  9871. }(this, (function (moment) { 'use strict';
  9872. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  9873. var format = {
  9874. 's': ['thodde secondanim', 'thodde second'],
  9875. 'm': ['eka mintan', 'ek minute'],
  9876. 'mm': [number + ' mintanim', number + ' mintam'],
  9877. 'h': ['eka horan', 'ek hor'],
  9878. 'hh': [number + ' horanim', number + ' hor'],
  9879. 'd': ['eka disan', 'ek dis'],
  9880. 'dd': [number + ' disanim', number + ' dis'],
  9881. 'M': ['eka mhoinean', 'ek mhoino'],
  9882. 'MM': [number + ' mhoineanim', number + ' mhoine'],
  9883. 'y': ['eka vorsan', 'ek voros'],
  9884. 'yy': [number + ' vorsanim', number + ' vorsam']
  9885. };
  9886. return withoutSuffix ? format[key][0] : format[key][1];
  9887. }
  9888. var gomLatn = moment.defineLocale('gom-latn', {
  9889. months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  9890. monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  9891. monthsParseExact : true,
  9892. weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
  9893. weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9894. weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9895. weekdaysParseExact : true,
  9896. longDateFormat : {
  9897. LT : 'A h:mm [vazta]',
  9898. LTS : 'A h:mm:ss [vazta]',
  9899. L : 'DD-MM-YYYY',
  9900. LL : 'D MMMM YYYY',
  9901. LLL : 'D MMMM YYYY A h:mm [vazta]',
  9902. LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
  9903. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  9904. },
  9905. calendar : {
  9906. sameDay: '[Aiz] LT',
  9907. nextDay: '[Faleam] LT',
  9908. nextWeek: '[Ieta to] dddd[,] LT',
  9909. lastDay: '[Kal] LT',
  9910. lastWeek: '[Fatlo] dddd[,] LT',
  9911. sameElse: 'L'
  9912. },
  9913. relativeTime : {
  9914. future : '%s',
  9915. past : '%s adim',
  9916. s : processRelativeTime,
  9917. m : processRelativeTime,
  9918. mm : processRelativeTime,
  9919. h : processRelativeTime,
  9920. hh : processRelativeTime,
  9921. d : processRelativeTime,
  9922. dd : processRelativeTime,
  9923. M : processRelativeTime,
  9924. MM : processRelativeTime,
  9925. y : processRelativeTime,
  9926. yy : processRelativeTime
  9927. },
  9928. dayOfMonthOrdinalParse : /\d{1,2}(er)/,
  9929. ordinal : function (number, period) {
  9930. switch (period) {
  9931. // the ordinal 'er' only applies to day of the month
  9932. case 'D':
  9933. return number + 'er';
  9934. default:
  9935. case 'M':
  9936. case 'Q':
  9937. case 'DDD':
  9938. case 'd':
  9939. case 'w':
  9940. case 'W':
  9941. return number;
  9942. }
  9943. },
  9944. week : {
  9945. dow : 1, // Monday is the first day of the week.
  9946. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9947. },
  9948. meridiemParse: /rati|sokalli|donparam|sanje/,
  9949. meridiemHour : function (hour, meridiem) {
  9950. if (hour === 12) {
  9951. hour = 0;
  9952. }
  9953. if (meridiem === 'rati') {
  9954. return hour < 4 ? hour : hour + 12;
  9955. } else if (meridiem === 'sokalli') {
  9956. return hour;
  9957. } else if (meridiem === 'donparam') {
  9958. return hour > 12 ? hour : hour + 12;
  9959. } else if (meridiem === 'sanje') {
  9960. return hour + 12;
  9961. }
  9962. },
  9963. meridiem : function (hour, minute, isLower) {
  9964. if (hour < 4) {
  9965. return 'rati';
  9966. } else if (hour < 12) {
  9967. return 'sokalli';
  9968. } else if (hour < 16) {
  9969. return 'donparam';
  9970. } else if (hour < 20) {
  9971. return 'sanje';
  9972. } else {
  9973. return 'rati';
  9974. }
  9975. }
  9976. });
  9977. return gomLatn;
  9978. })));
  9979. /***/ }),
  9980. /***/ "./node_modules/moment/locale/gu.js":
  9981. /*!******************************************!*\
  9982. !*** ./node_modules/moment/locale/gu.js ***!
  9983. \******************************************/
  9984. /*! no static exports found */
  9985. /***/ (function(module, exports, __webpack_require__) {
  9986. //! moment.js locale configuration
  9987. //! locale : Gujarati [gu]
  9988. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  9989. ;(function (global, factory) {
  9990. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9991. undefined
  9992. }(this, (function (moment) { 'use strict';
  9993. var symbolMap = {
  9994. '1': '૧',
  9995. '2': '૨',
  9996. '3': '૩',
  9997. '4': '૪',
  9998. '5': '૫',
  9999. '6': '૬',
  10000. '7': '૭',
  10001. '8': '૮',
  10002. '9': '૯',
  10003. '0': '૦'
  10004. };
  10005. var numberMap = {
  10006. '૧': '1',
  10007. '૨': '2',
  10008. '૩': '3',
  10009. '૪': '4',
  10010. '૫': '5',
  10011. '૬': '6',
  10012. '૭': '7',
  10013. '૮': '8',
  10014. '૯': '9',
  10015. '૦': '0'
  10016. };
  10017. var gu = moment.defineLocale('gu', {
  10018. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  10019. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  10020. monthsParseExact: true,
  10021. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  10022. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  10023. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  10024. longDateFormat: {
  10025. LT: 'A h:mm વાગ્યે',
  10026. LTS: 'A h:mm:ss વાગ્યે',
  10027. L: 'DD/MM/YYYY',
  10028. LL: 'D MMMM YYYY',
  10029. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  10030. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  10031. },
  10032. calendar: {
  10033. sameDay: '[આજ] LT',
  10034. nextDay: '[કાલે] LT',
  10035. nextWeek: 'dddd, LT',
  10036. lastDay: '[ગઇકાલે] LT',
  10037. lastWeek: '[પાછલા] dddd, LT',
  10038. sameElse: 'L'
  10039. },
  10040. relativeTime: {
  10041. future: '%s મા',
  10042. past: '%s પેહલા',
  10043. s: 'અમુક પળો',
  10044. m: 'એક મિનિટ',
  10045. mm: '%d મિનિટ',
  10046. h: 'એક કલાક',
  10047. hh: '%d કલાક',
  10048. d: 'એક દિવસ',
  10049. dd: '%d દિવસ',
  10050. M: 'એક મહિનો',
  10051. MM: '%d મહિનો',
  10052. y: 'એક વર્ષ',
  10053. yy: '%d વર્ષ'
  10054. },
  10055. preparse: function (string) {
  10056. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  10057. return numberMap[match];
  10058. });
  10059. },
  10060. postformat: function (string) {
  10061. return string.replace(/\d/g, function (match) {
  10062. return symbolMap[match];
  10063. });
  10064. },
  10065. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  10066. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  10067. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  10068. meridiemHour: function (hour, meridiem) {
  10069. if (hour === 12) {
  10070. hour = 0;
  10071. }
  10072. if (meridiem === 'રાત') {
  10073. return hour < 4 ? hour : hour + 12;
  10074. } else if (meridiem === 'સવાર') {
  10075. return hour;
  10076. } else if (meridiem === 'બપોર') {
  10077. return hour >= 10 ? hour : hour + 12;
  10078. } else if (meridiem === 'સાંજ') {
  10079. return hour + 12;
  10080. }
  10081. },
  10082. meridiem: function (hour, minute, isLower) {
  10083. if (hour < 4) {
  10084. return 'રાત';
  10085. } else if (hour < 10) {
  10086. return 'સવાર';
  10087. } else if (hour < 17) {
  10088. return 'બપોર';
  10089. } else if (hour < 20) {
  10090. return 'સાંજ';
  10091. } else {
  10092. return 'રાત';
  10093. }
  10094. },
  10095. week: {
  10096. dow: 0, // Sunday is the first day of the week.
  10097. doy: 6 // The week that contains Jan 1st is the first week of the year.
  10098. }
  10099. });
  10100. return gu;
  10101. })));
  10102. /***/ }),
  10103. /***/ "./node_modules/moment/locale/he.js":
  10104. /*!******************************************!*\
  10105. !*** ./node_modules/moment/locale/he.js ***!
  10106. \******************************************/
  10107. /*! no static exports found */
  10108. /***/ (function(module, exports, __webpack_require__) {
  10109. //! moment.js locale configuration
  10110. //! locale : Hebrew [he]
  10111. //! author : Tomer Cohen : https://github.com/tomer
  10112. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  10113. //! author : Tal Ater : https://github.com/TalAter
  10114. ;(function (global, factory) {
  10115. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10116. undefined
  10117. }(this, (function (moment) { 'use strict';
  10118. var he = moment.defineLocale('he', {
  10119. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  10120. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  10121. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  10122. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  10123. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  10124. longDateFormat : {
  10125. LT : 'HH:mm',
  10126. LTS : 'HH:mm:ss',
  10127. L : 'DD/MM/YYYY',
  10128. LL : 'D [ב]MMMM YYYY',
  10129. LLL : 'D [ב]MMMM YYYY HH:mm',
  10130. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  10131. l : 'D/M/YYYY',
  10132. ll : 'D MMM YYYY',
  10133. lll : 'D MMM YYYY HH:mm',
  10134. llll : 'ddd, D MMM YYYY HH:mm'
  10135. },
  10136. calendar : {
  10137. sameDay : '[היום ב־]LT',
  10138. nextDay : '[מחר ב־]LT',
  10139. nextWeek : 'dddd [בשעה] LT',
  10140. lastDay : '[אתמול ב־]LT',
  10141. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  10142. sameElse : 'L'
  10143. },
  10144. relativeTime : {
  10145. future : 'בעוד %s',
  10146. past : 'לפני %s',
  10147. s : 'מספר שניות',
  10148. m : 'דקה',
  10149. mm : '%d דקות',
  10150. h : 'שעה',
  10151. hh : function (number) {
  10152. if (number === 2) {
  10153. return 'שעתיים';
  10154. }
  10155. return number + ' שעות';
  10156. },
  10157. d : 'יום',
  10158. dd : function (number) {
  10159. if (number === 2) {
  10160. return 'יומיים';
  10161. }
  10162. return number + ' ימים';
  10163. },
  10164. M : 'חודש',
  10165. MM : function (number) {
  10166. if (number === 2) {
  10167. return 'חודשיים';
  10168. }
  10169. return number + ' חודשים';
  10170. },
  10171. y : 'שנה',
  10172. yy : function (number) {
  10173. if (number === 2) {
  10174. return 'שנתיים';
  10175. } else if (number % 10 === 0 && number !== 10) {
  10176. return number + ' שנה';
  10177. }
  10178. return number + ' שנים';
  10179. }
  10180. },
  10181. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  10182. isPM : function (input) {
  10183. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  10184. },
  10185. meridiem : function (hour, minute, isLower) {
  10186. if (hour < 5) {
  10187. return 'לפנות בוקר';
  10188. } else if (hour < 10) {
  10189. return 'בבוקר';
  10190. } else if (hour < 12) {
  10191. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  10192. } else if (hour < 18) {
  10193. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  10194. } else {
  10195. return 'בערב';
  10196. }
  10197. }
  10198. });
  10199. return he;
  10200. })));
  10201. /***/ }),
  10202. /***/ "./node_modules/moment/locale/hi.js":
  10203. /*!******************************************!*\
  10204. !*** ./node_modules/moment/locale/hi.js ***!
  10205. \******************************************/
  10206. /*! no static exports found */
  10207. /***/ (function(module, exports, __webpack_require__) {
  10208. //! moment.js locale configuration
  10209. //! locale : Hindi [hi]
  10210. //! author : Mayank Singhal : https://github.com/mayanksinghal
  10211. ;(function (global, factory) {
  10212. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10213. undefined
  10214. }(this, (function (moment) { 'use strict';
  10215. var symbolMap = {
  10216. '1': '१',
  10217. '2': '२',
  10218. '3': '३',
  10219. '4': '४',
  10220. '5': '५',
  10221. '6': '६',
  10222. '7': '७',
  10223. '8': '८',
  10224. '9': '९',
  10225. '0': '०'
  10226. };
  10227. var numberMap = {
  10228. '१': '1',
  10229. '२': '2',
  10230. '३': '3',
  10231. '४': '4',
  10232. '५': '5',
  10233. '६': '6',
  10234. '७': '7',
  10235. '८': '8',
  10236. '९': '9',
  10237. '०': '0'
  10238. };
  10239. var hi = moment.defineLocale('hi', {
  10240. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  10241. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  10242. monthsParseExact: true,
  10243. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  10244. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  10245. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  10246. longDateFormat : {
  10247. LT : 'A h:mm बजे',
  10248. LTS : 'A h:mm:ss बजे',
  10249. L : 'DD/MM/YYYY',
  10250. LL : 'D MMMM YYYY',
  10251. LLL : 'D MMMM YYYY, A h:mm बजे',
  10252. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  10253. },
  10254. calendar : {
  10255. sameDay : '[आज] LT',
  10256. nextDay : '[कल] LT',
  10257. nextWeek : 'dddd, LT',
  10258. lastDay : '[कल] LT',
  10259. lastWeek : '[पिछले] dddd, LT',
  10260. sameElse : 'L'
  10261. },
  10262. relativeTime : {
  10263. future : '%s में',
  10264. past : '%s पहले',
  10265. s : 'कुछ ही क्षण',
  10266. m : 'एक मिनट',
  10267. mm : '%d मिनट',
  10268. h : 'एक घंटा',
  10269. hh : '%d घंटे',
  10270. d : 'एक दिन',
  10271. dd : '%d दिन',
  10272. M : 'एक महीने',
  10273. MM : '%d महीने',
  10274. y : 'एक वर्ष',
  10275. yy : '%d वर्ष'
  10276. },
  10277. preparse: function (string) {
  10278. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  10279. return numberMap[match];
  10280. });
  10281. },
  10282. postformat: function (string) {
  10283. return string.replace(/\d/g, function (match) {
  10284. return symbolMap[match];
  10285. });
  10286. },
  10287. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  10288. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  10289. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  10290. meridiemHour : function (hour, meridiem) {
  10291. if (hour === 12) {
  10292. hour = 0;
  10293. }
  10294. if (meridiem === 'रात') {
  10295. return hour < 4 ? hour : hour + 12;
  10296. } else if (meridiem === 'सुबह') {
  10297. return hour;
  10298. } else if (meridiem === 'दोपहर') {
  10299. return hour >= 10 ? hour : hour + 12;
  10300. } else if (meridiem === 'शाम') {
  10301. return hour + 12;
  10302. }
  10303. },
  10304. meridiem : function (hour, minute, isLower) {
  10305. if (hour < 4) {
  10306. return 'रात';
  10307. } else if (hour < 10) {
  10308. return 'सुबह';
  10309. } else if (hour < 17) {
  10310. return 'दोपहर';
  10311. } else if (hour < 20) {
  10312. return 'शाम';
  10313. } else {
  10314. return 'रात';
  10315. }
  10316. },
  10317. week : {
  10318. dow : 0, // Sunday is the first day of the week.
  10319. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10320. }
  10321. });
  10322. return hi;
  10323. })));
  10324. /***/ }),
  10325. /***/ "./node_modules/moment/locale/hr.js":
  10326. /*!******************************************!*\
  10327. !*** ./node_modules/moment/locale/hr.js ***!
  10328. \******************************************/
  10329. /*! no static exports found */
  10330. /***/ (function(module, exports, __webpack_require__) {
  10331. //! moment.js locale configuration
  10332. //! locale : Croatian [hr]
  10333. //! author : Bojan Marković : https://github.com/bmarkovic
  10334. ;(function (global, factory) {
  10335. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10336. undefined
  10337. }(this, (function (moment) { 'use strict';
  10338. function translate(number, withoutSuffix, key) {
  10339. var result = number + ' ';
  10340. switch (key) {
  10341. case 'm':
  10342. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  10343. case 'mm':
  10344. if (number === 1) {
  10345. result += 'minuta';
  10346. } else if (number === 2 || number === 3 || number === 4) {
  10347. result += 'minute';
  10348. } else {
  10349. result += 'minuta';
  10350. }
  10351. return result;
  10352. case 'h':
  10353. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  10354. case 'hh':
  10355. if (number === 1) {
  10356. result += 'sat';
  10357. } else if (number === 2 || number === 3 || number === 4) {
  10358. result += 'sata';
  10359. } else {
  10360. result += 'sati';
  10361. }
  10362. return result;
  10363. case 'dd':
  10364. if (number === 1) {
  10365. result += 'dan';
  10366. } else {
  10367. result += 'dana';
  10368. }
  10369. return result;
  10370. case 'MM':
  10371. if (number === 1) {
  10372. result += 'mjesec';
  10373. } else if (number === 2 || number === 3 || number === 4) {
  10374. result += 'mjeseca';
  10375. } else {
  10376. result += 'mjeseci';
  10377. }
  10378. return result;
  10379. case 'yy':
  10380. if (number === 1) {
  10381. result += 'godina';
  10382. } else if (number === 2 || number === 3 || number === 4) {
  10383. result += 'godine';
  10384. } else {
  10385. result += 'godina';
  10386. }
  10387. return result;
  10388. }
  10389. }
  10390. var hr = moment.defineLocale('hr', {
  10391. months : {
  10392. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  10393. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  10394. },
  10395. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  10396. monthsParseExact: true,
  10397. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  10398. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  10399. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  10400. weekdaysParseExact : true,
  10401. longDateFormat : {
  10402. LT : 'H:mm',
  10403. LTS : 'H:mm:ss',
  10404. L : 'DD.MM.YYYY',
  10405. LL : 'D. MMMM YYYY',
  10406. LLL : 'D. MMMM YYYY H:mm',
  10407. LLLL : 'dddd, D. MMMM YYYY H:mm'
  10408. },
  10409. calendar : {
  10410. sameDay : '[danas u] LT',
  10411. nextDay : '[sutra u] LT',
  10412. nextWeek : function () {
  10413. switch (this.day()) {
  10414. case 0:
  10415. return '[u] [nedjelju] [u] LT';
  10416. case 3:
  10417. return '[u] [srijedu] [u] LT';
  10418. case 6:
  10419. return '[u] [subotu] [u] LT';
  10420. case 1:
  10421. case 2:
  10422. case 4:
  10423. case 5:
  10424. return '[u] dddd [u] LT';
  10425. }
  10426. },
  10427. lastDay : '[jučer u] LT',
  10428. lastWeek : function () {
  10429. switch (this.day()) {
  10430. case 0:
  10431. case 3:
  10432. return '[prošlu] dddd [u] LT';
  10433. case 6:
  10434. return '[prošle] [subote] [u] LT';
  10435. case 1:
  10436. case 2:
  10437. case 4:
  10438. case 5:
  10439. return '[prošli] dddd [u] LT';
  10440. }
  10441. },
  10442. sameElse : 'L'
  10443. },
  10444. relativeTime : {
  10445. future : 'za %s',
  10446. past : 'prije %s',
  10447. s : 'par sekundi',
  10448. m : translate,
  10449. mm : translate,
  10450. h : translate,
  10451. hh : translate,
  10452. d : 'dan',
  10453. dd : translate,
  10454. M : 'mjesec',
  10455. MM : translate,
  10456. y : 'godinu',
  10457. yy : translate
  10458. },
  10459. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10460. ordinal : '%d.',
  10461. week : {
  10462. dow : 1, // Monday is the first day of the week.
  10463. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10464. }
  10465. });
  10466. return hr;
  10467. })));
  10468. /***/ }),
  10469. /***/ "./node_modules/moment/locale/hu.js":
  10470. /*!******************************************!*\
  10471. !*** ./node_modules/moment/locale/hu.js ***!
  10472. \******************************************/
  10473. /*! no static exports found */
  10474. /***/ (function(module, exports, __webpack_require__) {
  10475. //! moment.js locale configuration
  10476. //! locale : Hungarian [hu]
  10477. //! author : Adam Brunner : https://github.com/adambrunner
  10478. ;(function (global, factory) {
  10479. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10480. undefined
  10481. }(this, (function (moment) { 'use strict';
  10482. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  10483. function translate(number, withoutSuffix, key, isFuture) {
  10484. var num = number;
  10485. switch (key) {
  10486. case 's':
  10487. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  10488. case 'm':
  10489. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10490. case 'mm':
  10491. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10492. case 'h':
  10493. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10494. case 'hh':
  10495. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10496. case 'd':
  10497. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10498. case 'dd':
  10499. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10500. case 'M':
  10501. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10502. case 'MM':
  10503. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10504. case 'y':
  10505. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10506. case 'yy':
  10507. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10508. }
  10509. return '';
  10510. }
  10511. function week(isFuture) {
  10512. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  10513. }
  10514. var hu = moment.defineLocale('hu', {
  10515. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  10516. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  10517. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10518. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10519. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  10520. longDateFormat : {
  10521. LT : 'H:mm',
  10522. LTS : 'H:mm:ss',
  10523. L : 'YYYY.MM.DD.',
  10524. LL : 'YYYY. MMMM D.',
  10525. LLL : 'YYYY. MMMM D. H:mm',
  10526. LLLL : 'YYYY. MMMM D., dddd H:mm'
  10527. },
  10528. meridiemParse: /de|du/i,
  10529. isPM: function (input) {
  10530. return input.charAt(1).toLowerCase() === 'u';
  10531. },
  10532. meridiem : function (hours, minutes, isLower) {
  10533. if (hours < 12) {
  10534. return isLower === true ? 'de' : 'DE';
  10535. } else {
  10536. return isLower === true ? 'du' : 'DU';
  10537. }
  10538. },
  10539. calendar : {
  10540. sameDay : '[ma] LT[-kor]',
  10541. nextDay : '[holnap] LT[-kor]',
  10542. nextWeek : function () {
  10543. return week.call(this, true);
  10544. },
  10545. lastDay : '[tegnap] LT[-kor]',
  10546. lastWeek : function () {
  10547. return week.call(this, false);
  10548. },
  10549. sameElse : 'L'
  10550. },
  10551. relativeTime : {
  10552. future : '%s múlva',
  10553. past : '%s',
  10554. s : translate,
  10555. m : translate,
  10556. mm : translate,
  10557. h : translate,
  10558. hh : translate,
  10559. d : translate,
  10560. dd : translate,
  10561. M : translate,
  10562. MM : translate,
  10563. y : translate,
  10564. yy : translate
  10565. },
  10566. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10567. ordinal : '%d.',
  10568. week : {
  10569. dow : 1, // Monday is the first day of the week.
  10570. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10571. }
  10572. });
  10573. return hu;
  10574. })));
  10575. /***/ }),
  10576. /***/ "./node_modules/moment/locale/hy-am.js":
  10577. /*!*********************************************!*\
  10578. !*** ./node_modules/moment/locale/hy-am.js ***!
  10579. \*********************************************/
  10580. /*! no static exports found */
  10581. /***/ (function(module, exports, __webpack_require__) {
  10582. //! moment.js locale configuration
  10583. //! locale : Armenian [hy-am]
  10584. //! author : Armendarabyan : https://github.com/armendarabyan
  10585. ;(function (global, factory) {
  10586. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10587. undefined
  10588. }(this, (function (moment) { 'use strict';
  10589. var hyAm = moment.defineLocale('hy-am', {
  10590. months : {
  10591. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  10592. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  10593. },
  10594. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10595. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  10596. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10597. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10598. longDateFormat : {
  10599. LT : 'HH:mm',
  10600. LTS : 'HH:mm:ss',
  10601. L : 'DD.MM.YYYY',
  10602. LL : 'D MMMM YYYY թ.',
  10603. LLL : 'D MMMM YYYY թ., HH:mm',
  10604. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  10605. },
  10606. calendar : {
  10607. sameDay: '[այսօր] LT',
  10608. nextDay: '[վաղը] LT',
  10609. lastDay: '[երեկ] LT',
  10610. nextWeek: function () {
  10611. return 'dddd [օրը ժամը] LT';
  10612. },
  10613. lastWeek: function () {
  10614. return '[անցած] dddd [օրը ժամը] LT';
  10615. },
  10616. sameElse: 'L'
  10617. },
  10618. relativeTime : {
  10619. future : '%s հետո',
  10620. past : '%s առաջ',
  10621. s : 'մի քանի վայրկյան',
  10622. m : 'րոպե',
  10623. mm : '%d րոպե',
  10624. h : 'ժամ',
  10625. hh : '%d ժամ',
  10626. d : 'օր',
  10627. dd : '%d օր',
  10628. M : 'ամիս',
  10629. MM : '%d ամիս',
  10630. y : 'տարի',
  10631. yy : '%d տարի'
  10632. },
  10633. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10634. isPM: function (input) {
  10635. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10636. },
  10637. meridiem : function (hour) {
  10638. if (hour < 4) {
  10639. return 'գիշերվա';
  10640. } else if (hour < 12) {
  10641. return 'առավոտվա';
  10642. } else if (hour < 17) {
  10643. return 'ցերեկվա';
  10644. } else {
  10645. return 'երեկոյան';
  10646. }
  10647. },
  10648. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10649. ordinal: function (number, period) {
  10650. switch (period) {
  10651. case 'DDD':
  10652. case 'w':
  10653. case 'W':
  10654. case 'DDDo':
  10655. if (number === 1) {
  10656. return number + '-ին';
  10657. }
  10658. return number + '-րդ';
  10659. default:
  10660. return number;
  10661. }
  10662. },
  10663. week : {
  10664. dow : 1, // Monday is the first day of the week.
  10665. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10666. }
  10667. });
  10668. return hyAm;
  10669. })));
  10670. /***/ }),
  10671. /***/ "./node_modules/moment/locale/id.js":
  10672. /*!******************************************!*\
  10673. !*** ./node_modules/moment/locale/id.js ***!
  10674. \******************************************/
  10675. /*! no static exports found */
  10676. /***/ (function(module, exports, __webpack_require__) {
  10677. //! moment.js locale configuration
  10678. //! locale : Indonesian [id]
  10679. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  10680. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  10681. ;(function (global, factory) {
  10682. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10683. undefined
  10684. }(this, (function (moment) { 'use strict';
  10685. var id = moment.defineLocale('id', {
  10686. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  10687. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  10688. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10689. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10690. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10691. longDateFormat : {
  10692. LT : 'HH.mm',
  10693. LTS : 'HH.mm.ss',
  10694. L : 'DD/MM/YYYY',
  10695. LL : 'D MMMM YYYY',
  10696. LLL : 'D MMMM YYYY [pukul] HH.mm',
  10697. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  10698. },
  10699. meridiemParse: /pagi|siang|sore|malam/,
  10700. meridiemHour : function (hour, meridiem) {
  10701. if (hour === 12) {
  10702. hour = 0;
  10703. }
  10704. if (meridiem === 'pagi') {
  10705. return hour;
  10706. } else if (meridiem === 'siang') {
  10707. return hour >= 11 ? hour : hour + 12;
  10708. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10709. return hour + 12;
  10710. }
  10711. },
  10712. meridiem : function (hours, minutes, isLower) {
  10713. if (hours < 11) {
  10714. return 'pagi';
  10715. } else if (hours < 15) {
  10716. return 'siang';
  10717. } else if (hours < 19) {
  10718. return 'sore';
  10719. } else {
  10720. return 'malam';
  10721. }
  10722. },
  10723. calendar : {
  10724. sameDay : '[Hari ini pukul] LT',
  10725. nextDay : '[Besok pukul] LT',
  10726. nextWeek : 'dddd [pukul] LT',
  10727. lastDay : '[Kemarin pukul] LT',
  10728. lastWeek : 'dddd [lalu pukul] LT',
  10729. sameElse : 'L'
  10730. },
  10731. relativeTime : {
  10732. future : 'dalam %s',
  10733. past : '%s yang lalu',
  10734. s : 'beberapa detik',
  10735. m : 'semenit',
  10736. mm : '%d menit',
  10737. h : 'sejam',
  10738. hh : '%d jam',
  10739. d : 'sehari',
  10740. dd : '%d hari',
  10741. M : 'sebulan',
  10742. MM : '%d bulan',
  10743. y : 'setahun',
  10744. yy : '%d tahun'
  10745. },
  10746. week : {
  10747. dow : 1, // Monday is the first day of the week.
  10748. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10749. }
  10750. });
  10751. return id;
  10752. })));
  10753. /***/ }),
  10754. /***/ "./node_modules/moment/locale/is.js":
  10755. /*!******************************************!*\
  10756. !*** ./node_modules/moment/locale/is.js ***!
  10757. \******************************************/
  10758. /*! no static exports found */
  10759. /***/ (function(module, exports, __webpack_require__) {
  10760. //! moment.js locale configuration
  10761. //! locale : Icelandic [is]
  10762. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  10763. ;(function (global, factory) {
  10764. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10765. undefined
  10766. }(this, (function (moment) { 'use strict';
  10767. function plural(n) {
  10768. if (n % 100 === 11) {
  10769. return true;
  10770. } else if (n % 10 === 1) {
  10771. return false;
  10772. }
  10773. return true;
  10774. }
  10775. function translate(number, withoutSuffix, key, isFuture) {
  10776. var result = number + ' ';
  10777. switch (key) {
  10778. case 's':
  10779. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  10780. case 'm':
  10781. return withoutSuffix ? 'mínúta' : 'mínútu';
  10782. case 'mm':
  10783. if (plural(number)) {
  10784. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  10785. } else if (withoutSuffix) {
  10786. return result + 'mínúta';
  10787. }
  10788. return result + 'mínútu';
  10789. case 'hh':
  10790. if (plural(number)) {
  10791. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  10792. }
  10793. return result + 'klukkustund';
  10794. case 'd':
  10795. if (withoutSuffix) {
  10796. return 'dagur';
  10797. }
  10798. return isFuture ? 'dag' : 'degi';
  10799. case 'dd':
  10800. if (plural(number)) {
  10801. if (withoutSuffix) {
  10802. return result + 'dagar';
  10803. }
  10804. return result + (isFuture ? 'daga' : 'dögum');
  10805. } else if (withoutSuffix) {
  10806. return result + 'dagur';
  10807. }
  10808. return result + (isFuture ? 'dag' : 'degi');
  10809. case 'M':
  10810. if (withoutSuffix) {
  10811. return 'mánuður';
  10812. }
  10813. return isFuture ? 'mánuð' : 'mánuði';
  10814. case 'MM':
  10815. if (plural(number)) {
  10816. if (withoutSuffix) {
  10817. return result + 'mánuðir';
  10818. }
  10819. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10820. } else if (withoutSuffix) {
  10821. return result + 'mánuður';
  10822. }
  10823. return result + (isFuture ? 'mánuð' : 'mánuði');
  10824. case 'y':
  10825. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10826. case 'yy':
  10827. if (plural(number)) {
  10828. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10829. }
  10830. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10831. }
  10832. }
  10833. var is = moment.defineLocale('is', {
  10834. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  10835. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10836. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  10837. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10838. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10839. longDateFormat : {
  10840. LT : 'H:mm',
  10841. LTS : 'H:mm:ss',
  10842. L : 'DD.MM.YYYY',
  10843. LL : 'D. MMMM YYYY',
  10844. LLL : 'D. MMMM YYYY [kl.] H:mm',
  10845. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  10846. },
  10847. calendar : {
  10848. sameDay : '[í dag kl.] LT',
  10849. nextDay : '[á morgun kl.] LT',
  10850. nextWeek : 'dddd [kl.] LT',
  10851. lastDay : '[í gær kl.] LT',
  10852. lastWeek : '[síðasta] dddd [kl.] LT',
  10853. sameElse : 'L'
  10854. },
  10855. relativeTime : {
  10856. future : 'eftir %s',
  10857. past : 'fyrir %s síðan',
  10858. s : translate,
  10859. m : translate,
  10860. mm : translate,
  10861. h : 'klukkustund',
  10862. hh : translate,
  10863. d : translate,
  10864. dd : translate,
  10865. M : translate,
  10866. MM : translate,
  10867. y : translate,
  10868. yy : translate
  10869. },
  10870. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10871. ordinal : '%d.',
  10872. week : {
  10873. dow : 1, // Monday is the first day of the week.
  10874. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10875. }
  10876. });
  10877. return is;
  10878. })));
  10879. /***/ }),
  10880. /***/ "./node_modules/moment/locale/it.js":
  10881. /*!******************************************!*\
  10882. !*** ./node_modules/moment/locale/it.js ***!
  10883. \******************************************/
  10884. /*! no static exports found */
  10885. /***/ (function(module, exports, __webpack_require__) {
  10886. //! moment.js locale configuration
  10887. //! locale : Italian [it]
  10888. //! author : Lorenzo : https://github.com/aliem
  10889. //! author: Mattia Larentis: https://github.com/nostalgiaz
  10890. ;(function (global, factory) {
  10891. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10892. undefined
  10893. }(this, (function (moment) { 'use strict';
  10894. var it = moment.defineLocale('it', {
  10895. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  10896. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10897. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  10898. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10899. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10900. longDateFormat : {
  10901. LT : 'HH:mm',
  10902. LTS : 'HH:mm:ss',
  10903. L : 'DD/MM/YYYY',
  10904. LL : 'D MMMM YYYY',
  10905. LLL : 'D MMMM YYYY HH:mm',
  10906. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10907. },
  10908. calendar : {
  10909. sameDay: '[Oggi alle] LT',
  10910. nextDay: '[Domani alle] LT',
  10911. nextWeek: 'dddd [alle] LT',
  10912. lastDay: '[Ieri alle] LT',
  10913. lastWeek: function () {
  10914. switch (this.day()) {
  10915. case 0:
  10916. return '[la scorsa] dddd [alle] LT';
  10917. default:
  10918. return '[lo scorso] dddd [alle] LT';
  10919. }
  10920. },
  10921. sameElse: 'L'
  10922. },
  10923. relativeTime : {
  10924. future : function (s) {
  10925. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  10926. },
  10927. past : '%s fa',
  10928. s : 'alcuni secondi',
  10929. m : 'un minuto',
  10930. mm : '%d minuti',
  10931. h : 'un\'ora',
  10932. hh : '%d ore',
  10933. d : 'un giorno',
  10934. dd : '%d giorni',
  10935. M : 'un mese',
  10936. MM : '%d mesi',
  10937. y : 'un anno',
  10938. yy : '%d anni'
  10939. },
  10940. dayOfMonthOrdinalParse : /\d{1,2}º/,
  10941. ordinal: '%dº',
  10942. week : {
  10943. dow : 1, // Monday is the first day of the week.
  10944. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10945. }
  10946. });
  10947. return it;
  10948. })));
  10949. /***/ }),
  10950. /***/ "./node_modules/moment/locale/ja.js":
  10951. /*!******************************************!*\
  10952. !*** ./node_modules/moment/locale/ja.js ***!
  10953. \******************************************/
  10954. /*! no static exports found */
  10955. /***/ (function(module, exports, __webpack_require__) {
  10956. //! moment.js locale configuration
  10957. //! locale : Japanese [ja]
  10958. //! author : LI Long : https://github.com/baryon
  10959. ;(function (global, factory) {
  10960. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10961. undefined
  10962. }(this, (function (moment) { 'use strict';
  10963. var ja = moment.defineLocale('ja', {
  10964. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10965. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10966. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10967. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  10968. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  10969. longDateFormat : {
  10970. LT : 'HH:mm',
  10971. LTS : 'HH:mm:ss',
  10972. L : 'YYYY/MM/DD',
  10973. LL : 'YYYY年M月D日',
  10974. LLL : 'YYYY年M月D日 HH:mm',
  10975. LLLL : 'YYYY年M月D日 HH:mm dddd',
  10976. l : 'YYYY/MM/DD',
  10977. ll : 'YYYY年M月D日',
  10978. lll : 'YYYY年M月D日 HH:mm',
  10979. llll : 'YYYY年M月D日 HH:mm dddd'
  10980. },
  10981. meridiemParse: /午前|午後/i,
  10982. isPM : function (input) {
  10983. return input === '午後';
  10984. },
  10985. meridiem : function (hour, minute, isLower) {
  10986. if (hour < 12) {
  10987. return '午前';
  10988. } else {
  10989. return '午後';
  10990. }
  10991. },
  10992. calendar : {
  10993. sameDay : '[今日] LT',
  10994. nextDay : '[明日] LT',
  10995. nextWeek : '[来週]dddd LT',
  10996. lastDay : '[昨日] LT',
  10997. lastWeek : '[前週]dddd LT',
  10998. sameElse : 'L'
  10999. },
  11000. dayOfMonthOrdinalParse : /\d{1,2}日/,
  11001. ordinal : function (number, period) {
  11002. switch (period) {
  11003. case 'd':
  11004. case 'D':
  11005. case 'DDD':
  11006. return number + '日';
  11007. default:
  11008. return number;
  11009. }
  11010. },
  11011. relativeTime : {
  11012. future : '%s後',
  11013. past : '%s前',
  11014. s : '数秒',
  11015. m : '1分',
  11016. mm : '%d分',
  11017. h : '1時間',
  11018. hh : '%d時間',
  11019. d : '1日',
  11020. dd : '%d日',
  11021. M : '1ヶ月',
  11022. MM : '%dヶ月',
  11023. y : '1年',
  11024. yy : '%d年'
  11025. }
  11026. });
  11027. return ja;
  11028. })));
  11029. /***/ }),
  11030. /***/ "./node_modules/moment/locale/jv.js":
  11031. /*!******************************************!*\
  11032. !*** ./node_modules/moment/locale/jv.js ***!
  11033. \******************************************/
  11034. /*! no static exports found */
  11035. /***/ (function(module, exports, __webpack_require__) {
  11036. //! moment.js locale configuration
  11037. //! locale : Javanese [jv]
  11038. //! author : Rony Lantip : https://github.com/lantip
  11039. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  11040. ;(function (global, factory) {
  11041. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11042. undefined
  11043. }(this, (function (moment) { 'use strict';
  11044. var jv = moment.defineLocale('jv', {
  11045. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  11046. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  11047. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  11048. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  11049. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  11050. longDateFormat : {
  11051. LT : 'HH.mm',
  11052. LTS : 'HH.mm.ss',
  11053. L : 'DD/MM/YYYY',
  11054. LL : 'D MMMM YYYY',
  11055. LLL : 'D MMMM YYYY [pukul] HH.mm',
  11056. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  11057. },
  11058. meridiemParse: /enjing|siyang|sonten|ndalu/,
  11059. meridiemHour : function (hour, meridiem) {
  11060. if (hour === 12) {
  11061. hour = 0;
  11062. }
  11063. if (meridiem === 'enjing') {
  11064. return hour;
  11065. } else if (meridiem === 'siyang') {
  11066. return hour >= 11 ? hour : hour + 12;
  11067. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  11068. return hour + 12;
  11069. }
  11070. },
  11071. meridiem : function (hours, minutes, isLower) {
  11072. if (hours < 11) {
  11073. return 'enjing';
  11074. } else if (hours < 15) {
  11075. return 'siyang';
  11076. } else if (hours < 19) {
  11077. return 'sonten';
  11078. } else {
  11079. return 'ndalu';
  11080. }
  11081. },
  11082. calendar : {
  11083. sameDay : '[Dinten puniko pukul] LT',
  11084. nextDay : '[Mbenjang pukul] LT',
  11085. nextWeek : 'dddd [pukul] LT',
  11086. lastDay : '[Kala wingi pukul] LT',
  11087. lastWeek : 'dddd [kepengker pukul] LT',
  11088. sameElse : 'L'
  11089. },
  11090. relativeTime : {
  11091. future : 'wonten ing %s',
  11092. past : '%s ingkang kepengker',
  11093. s : 'sawetawis detik',
  11094. m : 'setunggal menit',
  11095. mm : '%d menit',
  11096. h : 'setunggal jam',
  11097. hh : '%d jam',
  11098. d : 'sedinten',
  11099. dd : '%d dinten',
  11100. M : 'sewulan',
  11101. MM : '%d wulan',
  11102. y : 'setaun',
  11103. yy : '%d taun'
  11104. },
  11105. week : {
  11106. dow : 1, // Monday is the first day of the week.
  11107. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11108. }
  11109. });
  11110. return jv;
  11111. })));
  11112. /***/ }),
  11113. /***/ "./node_modules/moment/locale/ka.js":
  11114. /*!******************************************!*\
  11115. !*** ./node_modules/moment/locale/ka.js ***!
  11116. \******************************************/
  11117. /*! no static exports found */
  11118. /***/ (function(module, exports, __webpack_require__) {
  11119. //! moment.js locale configuration
  11120. //! locale : Georgian [ka]
  11121. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  11122. ;(function (global, factory) {
  11123. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11124. undefined
  11125. }(this, (function (moment) { 'use strict';
  11126. var ka = moment.defineLocale('ka', {
  11127. months : {
  11128. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  11129. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  11130. },
  11131. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  11132. weekdays : {
  11133. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  11134. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  11135. isFormat: /(წინა|შემდეგ)/
  11136. },
  11137. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  11138. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  11139. longDateFormat : {
  11140. LT : 'h:mm A',
  11141. LTS : 'h:mm:ss A',
  11142. L : 'DD/MM/YYYY',
  11143. LL : 'D MMMM YYYY',
  11144. LLL : 'D MMMM YYYY h:mm A',
  11145. LLLL : 'dddd, D MMMM YYYY h:mm A'
  11146. },
  11147. calendar : {
  11148. sameDay : '[დღეს] LT[-ზე]',
  11149. nextDay : '[ხვალ] LT[-ზე]',
  11150. lastDay : '[გუშინ] LT[-ზე]',
  11151. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  11152. lastWeek : '[წინა] dddd LT-ზე',
  11153. sameElse : 'L'
  11154. },
  11155. relativeTime : {
  11156. future : function (s) {
  11157. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  11158. s.replace(/ი$/, 'ში') :
  11159. s + 'ში';
  11160. },
  11161. past : function (s) {
  11162. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  11163. return s.replace(/(ი|ე)$/, 'ის უკან');
  11164. }
  11165. if ((/წელი/).test(s)) {
  11166. return s.replace(/წელი$/, 'წლის უკან');
  11167. }
  11168. },
  11169. s : 'რამდენიმე წამი',
  11170. m : 'წუთი',
  11171. mm : '%d წუთი',
  11172. h : 'საათი',
  11173. hh : '%d საათი',
  11174. d : 'დღე',
  11175. dd : '%d დღე',
  11176. M : 'თვე',
  11177. MM : '%d თვე',
  11178. y : 'წელი',
  11179. yy : '%d წელი'
  11180. },
  11181. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  11182. ordinal : function (number) {
  11183. if (number === 0) {
  11184. return number;
  11185. }
  11186. if (number === 1) {
  11187. return number + '-ლი';
  11188. }
  11189. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  11190. return 'მე-' + number;
  11191. }
  11192. return number + '-ე';
  11193. },
  11194. week : {
  11195. dow : 1,
  11196. doy : 7
  11197. }
  11198. });
  11199. return ka;
  11200. })));
  11201. /***/ }),
  11202. /***/ "./node_modules/moment/locale/kk.js":
  11203. /*!******************************************!*\
  11204. !*** ./node_modules/moment/locale/kk.js ***!
  11205. \******************************************/
  11206. /*! no static exports found */
  11207. /***/ (function(module, exports, __webpack_require__) {
  11208. //! moment.js locale configuration
  11209. //! locale : Kazakh [kk]
  11210. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  11211. ;(function (global, factory) {
  11212. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11213. undefined
  11214. }(this, (function (moment) { 'use strict';
  11215. var suffixes = {
  11216. 0: '-ші',
  11217. 1: '-ші',
  11218. 2: '-ші',
  11219. 3: '-ші',
  11220. 4: '-ші',
  11221. 5: '-ші',
  11222. 6: '-шы',
  11223. 7: '-ші',
  11224. 8: '-ші',
  11225. 9: '-шы',
  11226. 10: '-шы',
  11227. 20: '-шы',
  11228. 30: '-шы',
  11229. 40: '-шы',
  11230. 50: '-ші',
  11231. 60: '-шы',
  11232. 70: '-ші',
  11233. 80: '-ші',
  11234. 90: '-шы',
  11235. 100: '-ші'
  11236. };
  11237. var kk = moment.defineLocale('kk', {
  11238. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  11239. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  11240. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  11241. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  11242. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  11243. longDateFormat : {
  11244. LT : 'HH:mm',
  11245. LTS : 'HH:mm:ss',
  11246. L : 'DD.MM.YYYY',
  11247. LL : 'D MMMM YYYY',
  11248. LLL : 'D MMMM YYYY HH:mm',
  11249. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11250. },
  11251. calendar : {
  11252. sameDay : '[Бүгін сағат] LT',
  11253. nextDay : '[Ертең сағат] LT',
  11254. nextWeek : 'dddd [сағат] LT',
  11255. lastDay : '[Кеше сағат] LT',
  11256. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  11257. sameElse : 'L'
  11258. },
  11259. relativeTime : {
  11260. future : '%s ішінде',
  11261. past : '%s бұрын',
  11262. s : 'бірнеше секунд',
  11263. m : 'бір минут',
  11264. mm : '%d минут',
  11265. h : 'бір сағат',
  11266. hh : '%d сағат',
  11267. d : 'бір күн',
  11268. dd : '%d күн',
  11269. M : 'бір ай',
  11270. MM : '%d ай',
  11271. y : 'бір жыл',
  11272. yy : '%d жыл'
  11273. },
  11274. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  11275. ordinal : function (number) {
  11276. var a = number % 10,
  11277. b = number >= 100 ? 100 : null;
  11278. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  11279. },
  11280. week : {
  11281. dow : 1, // Monday is the first day of the week.
  11282. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11283. }
  11284. });
  11285. return kk;
  11286. })));
  11287. /***/ }),
  11288. /***/ "./node_modules/moment/locale/km.js":
  11289. /*!******************************************!*\
  11290. !*** ./node_modules/moment/locale/km.js ***!
  11291. \******************************************/
  11292. /*! no static exports found */
  11293. /***/ (function(module, exports, __webpack_require__) {
  11294. //! moment.js locale configuration
  11295. //! locale : Cambodian [km]
  11296. //! author : Kruy Vanna : https://github.com/kruyvanna
  11297. ;(function (global, factory) {
  11298. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11299. undefined
  11300. }(this, (function (moment) { 'use strict';
  11301. var km = moment.defineLocale('km', {
  11302. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  11303. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  11304. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11305. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11306. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11307. longDateFormat: {
  11308. LT: 'HH:mm',
  11309. LTS : 'HH:mm:ss',
  11310. L: 'DD/MM/YYYY',
  11311. LL: 'D MMMM YYYY',
  11312. LLL: 'D MMMM YYYY HH:mm',
  11313. LLLL: 'dddd, D MMMM YYYY HH:mm'
  11314. },
  11315. calendar: {
  11316. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  11317. nextDay: '[ស្អែក ម៉ោង] LT',
  11318. nextWeek: 'dddd [ម៉ោង] LT',
  11319. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  11320. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  11321. sameElse: 'L'
  11322. },
  11323. relativeTime: {
  11324. future: '%sទៀត',
  11325. past: '%sមុន',
  11326. s: 'ប៉ុន្មានវិនាទី',
  11327. m: 'មួយនាទី',
  11328. mm: '%d នាទី',
  11329. h: 'មួយម៉ោង',
  11330. hh: '%d ម៉ោង',
  11331. d: 'មួយថ្ងៃ',
  11332. dd: '%d ថ្ងៃ',
  11333. M: 'មួយខែ',
  11334. MM: '%d ខែ',
  11335. y: 'មួយឆ្នាំ',
  11336. yy: '%d ឆ្នាំ'
  11337. },
  11338. week: {
  11339. dow: 1, // Monday is the first day of the week.
  11340. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11341. }
  11342. });
  11343. return km;
  11344. })));
  11345. /***/ }),
  11346. /***/ "./node_modules/moment/locale/kn.js":
  11347. /*!******************************************!*\
  11348. !*** ./node_modules/moment/locale/kn.js ***!
  11349. \******************************************/
  11350. /*! no static exports found */
  11351. /***/ (function(module, exports, __webpack_require__) {
  11352. //! moment.js locale configuration
  11353. //! locale : Kannada [kn]
  11354. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  11355. ;(function (global, factory) {
  11356. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11357. undefined
  11358. }(this, (function (moment) { 'use strict';
  11359. var symbolMap = {
  11360. '1': '೧',
  11361. '2': '೨',
  11362. '3': '೩',
  11363. '4': '೪',
  11364. '5': '೫',
  11365. '6': '೬',
  11366. '7': '೭',
  11367. '8': '೮',
  11368. '9': '೯',
  11369. '0': '೦'
  11370. };
  11371. var numberMap = {
  11372. '೧': '1',
  11373. '೨': '2',
  11374. '೩': '3',
  11375. '೪': '4',
  11376. '೫': '5',
  11377. '೬': '6',
  11378. '೭': '7',
  11379. '೮': '8',
  11380. '೯': '9',
  11381. '೦': '0'
  11382. };
  11383. var kn = moment.defineLocale('kn', {
  11384. months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  11385. monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
  11386. monthsParseExact: true,
  11387. weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  11388. weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11389. weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11390. longDateFormat : {
  11391. LT : 'A h:mm',
  11392. LTS : 'A h:mm:ss',
  11393. L : 'DD/MM/YYYY',
  11394. LL : 'D MMMM YYYY',
  11395. LLL : 'D MMMM YYYY, A h:mm',
  11396. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  11397. },
  11398. calendar : {
  11399. sameDay : '[ಇಂದು] LT',
  11400. nextDay : '[ನಾಳೆ] LT',
  11401. nextWeek : 'dddd, LT',
  11402. lastDay : '[ನಿನ್ನೆ] LT',
  11403. lastWeek : '[ಕೊನೆಯ] dddd, LT',
  11404. sameElse : 'L'
  11405. },
  11406. relativeTime : {
  11407. future : '%s ನಂತರ',
  11408. past : '%s ಹಿಂದೆ',
  11409. s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11410. m : 'ಒಂದು ನಿಮಿಷ',
  11411. mm : '%d ನಿಮಿಷ',
  11412. h : 'ಒಂದು ಗಂಟೆ',
  11413. hh : '%d ಗಂಟೆ',
  11414. d : 'ಒಂದು ದಿನ',
  11415. dd : '%d ದಿನ',
  11416. M : 'ಒಂದು ತಿಂಗಳು',
  11417. MM : '%d ತಿಂಗಳು',
  11418. y : 'ಒಂದು ವರ್ಷ',
  11419. yy : '%d ವರ್ಷ'
  11420. },
  11421. preparse: function (string) {
  11422. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11423. return numberMap[match];
  11424. });
  11425. },
  11426. postformat: function (string) {
  11427. return string.replace(/\d/g, function (match) {
  11428. return symbolMap[match];
  11429. });
  11430. },
  11431. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11432. meridiemHour : function (hour, meridiem) {
  11433. if (hour === 12) {
  11434. hour = 0;
  11435. }
  11436. if (meridiem === 'ರಾತ್ರಿ') {
  11437. return hour < 4 ? hour : hour + 12;
  11438. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11439. return hour;
  11440. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11441. return hour >= 10 ? hour : hour + 12;
  11442. } else if (meridiem === 'ಸಂಜೆ') {
  11443. return hour + 12;
  11444. }
  11445. },
  11446. meridiem : function (hour, minute, isLower) {
  11447. if (hour < 4) {
  11448. return 'ರಾತ್ರಿ';
  11449. } else if (hour < 10) {
  11450. return 'ಬೆಳಿಗ್ಗೆ';
  11451. } else if (hour < 17) {
  11452. return 'ಮಧ್ಯಾಹ್ನ';
  11453. } else if (hour < 20) {
  11454. return 'ಸಂಜೆ';
  11455. } else {
  11456. return 'ರಾತ್ರಿ';
  11457. }
  11458. },
  11459. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11460. ordinal : function (number) {
  11461. return number + 'ನೇ';
  11462. },
  11463. week : {
  11464. dow : 0, // Sunday is the first day of the week.
  11465. doy : 6 // The week that contains Jan 1st is the first week of the year.
  11466. }
  11467. });
  11468. return kn;
  11469. })));
  11470. /***/ }),
  11471. /***/ "./node_modules/moment/locale/ko.js":
  11472. /*!******************************************!*\
  11473. !*** ./node_modules/moment/locale/ko.js ***!
  11474. \******************************************/
  11475. /*! no static exports found */
  11476. /***/ (function(module, exports, __webpack_require__) {
  11477. //! moment.js locale configuration
  11478. //! locale : Korean [ko]
  11479. //! author : Kyungwook, Park : https://github.com/kyungw00k
  11480. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  11481. ;(function (global, factory) {
  11482. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11483. undefined
  11484. }(this, (function (moment) { 'use strict';
  11485. var ko = moment.defineLocale('ko', {
  11486. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11487. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11488. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11489. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  11490. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  11491. longDateFormat : {
  11492. LT : 'A h:mm',
  11493. LTS : 'A h:mm:ss',
  11494. L : 'YYYY.MM.DD',
  11495. LL : 'YYYY년 MMMM D일',
  11496. LLL : 'YYYY년 MMMM D일 A h:mm',
  11497. LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
  11498. l : 'YYYY.MM.DD',
  11499. ll : 'YYYY년 MMMM D일',
  11500. lll : 'YYYY년 MMMM D일 A h:mm',
  11501. llll : 'YYYY년 MMMM D일 dddd A h:mm'
  11502. },
  11503. calendar : {
  11504. sameDay : '오늘 LT',
  11505. nextDay : '내일 LT',
  11506. nextWeek : 'dddd LT',
  11507. lastDay : '어제 LT',
  11508. lastWeek : '지난주 dddd LT',
  11509. sameElse : 'L'
  11510. },
  11511. relativeTime : {
  11512. future : '%s 후',
  11513. past : '%s 전',
  11514. s : '몇 초',
  11515. ss : '%d초',
  11516. m : '1분',
  11517. mm : '%d분',
  11518. h : '한 시간',
  11519. hh : '%d시간',
  11520. d : '하루',
  11521. dd : '%d일',
  11522. M : '한 달',
  11523. MM : '%d달',
  11524. y : '일 년',
  11525. yy : '%d년'
  11526. },
  11527. dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
  11528. ordinal : function (number, period) {
  11529. switch (period) {
  11530. case 'd':
  11531. case 'D':
  11532. case 'DDD':
  11533. return number + '일';
  11534. case 'M':
  11535. return number + '월';
  11536. case 'w':
  11537. case 'W':
  11538. return number + '주';
  11539. default:
  11540. return number;
  11541. }
  11542. },
  11543. meridiemParse : /오전|오후/,
  11544. isPM : function (token) {
  11545. return token === '오후';
  11546. },
  11547. meridiem : function (hour, minute, isUpper) {
  11548. return hour < 12 ? '오전' : '오후';
  11549. }
  11550. });
  11551. return ko;
  11552. })));
  11553. /***/ }),
  11554. /***/ "./node_modules/moment/locale/ky.js":
  11555. /*!******************************************!*\
  11556. !*** ./node_modules/moment/locale/ky.js ***!
  11557. \******************************************/
  11558. /*! no static exports found */
  11559. /***/ (function(module, exports, __webpack_require__) {
  11560. //! moment.js locale configuration
  11561. //! locale : Kyrgyz [ky]
  11562. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  11563. ;(function (global, factory) {
  11564. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11565. undefined
  11566. }(this, (function (moment) { 'use strict';
  11567. var suffixes = {
  11568. 0: '-чү',
  11569. 1: '-чи',
  11570. 2: '-чи',
  11571. 3: '-чү',
  11572. 4: '-чү',
  11573. 5: '-чи',
  11574. 6: '-чы',
  11575. 7: '-чи',
  11576. 8: '-чи',
  11577. 9: '-чу',
  11578. 10: '-чу',
  11579. 20: '-чы',
  11580. 30: '-чу',
  11581. 40: '-чы',
  11582. 50: '-чү',
  11583. 60: '-чы',
  11584. 70: '-чи',
  11585. 80: '-чи',
  11586. 90: '-чу',
  11587. 100: '-чү'
  11588. };
  11589. var ky = moment.defineLocale('ky', {
  11590. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  11591. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  11592. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  11593. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11594. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11595. longDateFormat : {
  11596. LT : 'HH:mm',
  11597. LTS : 'HH:mm:ss',
  11598. L : 'DD.MM.YYYY',
  11599. LL : 'D MMMM YYYY',
  11600. LLL : 'D MMMM YYYY HH:mm',
  11601. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11602. },
  11603. calendar : {
  11604. sameDay : '[Бүгүн саат] LT',
  11605. nextDay : '[Эртең саат] LT',
  11606. nextWeek : 'dddd [саат] LT',
  11607. lastDay : '[Кече саат] LT',
  11608. lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
  11609. sameElse : 'L'
  11610. },
  11611. relativeTime : {
  11612. future : '%s ичинде',
  11613. past : '%s мурун',
  11614. s : 'бирнече секунд',
  11615. m : 'бир мүнөт',
  11616. mm : '%d мүнөт',
  11617. h : 'бир саат',
  11618. hh : '%d саат',
  11619. d : 'бир күн',
  11620. dd : '%d күн',
  11621. M : 'бир ай',
  11622. MM : '%d ай',
  11623. y : 'бир жыл',
  11624. yy : '%d жыл'
  11625. },
  11626. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11627. ordinal : function (number) {
  11628. var a = number % 10,
  11629. b = number >= 100 ? 100 : null;
  11630. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  11631. },
  11632. week : {
  11633. dow : 1, // Monday is the first day of the week.
  11634. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11635. }
  11636. });
  11637. return ky;
  11638. })));
  11639. /***/ }),
  11640. /***/ "./node_modules/moment/locale/lb.js":
  11641. /*!******************************************!*\
  11642. !*** ./node_modules/moment/locale/lb.js ***!
  11643. \******************************************/
  11644. /*! no static exports found */
  11645. /***/ (function(module, exports, __webpack_require__) {
  11646. //! moment.js locale configuration
  11647. //! locale : Luxembourgish [lb]
  11648. //! author : mweimerskirch : https://github.com/mweimerskirch
  11649. //! author : David Raison : https://github.com/kwisatz
  11650. ;(function (global, factory) {
  11651. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11652. undefined
  11653. }(this, (function (moment) { 'use strict';
  11654. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  11655. var format = {
  11656. 'm': ['eng Minutt', 'enger Minutt'],
  11657. 'h': ['eng Stonn', 'enger Stonn'],
  11658. 'd': ['een Dag', 'engem Dag'],
  11659. 'M': ['ee Mount', 'engem Mount'],
  11660. 'y': ['ee Joer', 'engem Joer']
  11661. };
  11662. return withoutSuffix ? format[key][0] : format[key][1];
  11663. }
  11664. function processFutureTime(string) {
  11665. var number = string.substr(0, string.indexOf(' '));
  11666. if (eifelerRegelAppliesToNumber(number)) {
  11667. return 'a ' + string;
  11668. }
  11669. return 'an ' + string;
  11670. }
  11671. function processPastTime(string) {
  11672. var number = string.substr(0, string.indexOf(' '));
  11673. if (eifelerRegelAppliesToNumber(number)) {
  11674. return 'viru ' + string;
  11675. }
  11676. return 'virun ' + string;
  11677. }
  11678. /**
  11679. * Returns true if the word before the given number loses the '-n' ending.
  11680. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11681. *
  11682. * @param number {integer}
  11683. * @returns {boolean}
  11684. */
  11685. function eifelerRegelAppliesToNumber(number) {
  11686. number = parseInt(number, 10);
  11687. if (isNaN(number)) {
  11688. return false;
  11689. }
  11690. if (number < 0) {
  11691. // Negative Number --> always true
  11692. return true;
  11693. } else if (number < 10) {
  11694. // Only 1 digit
  11695. if (4 <= number && number <= 7) {
  11696. return true;
  11697. }
  11698. return false;
  11699. } else if (number < 100) {
  11700. // 2 digits
  11701. var lastDigit = number % 10, firstDigit = number / 10;
  11702. if (lastDigit === 0) {
  11703. return eifelerRegelAppliesToNumber(firstDigit);
  11704. }
  11705. return eifelerRegelAppliesToNumber(lastDigit);
  11706. } else if (number < 10000) {
  11707. // 3 or 4 digits --> recursively check first digit
  11708. while (number >= 10) {
  11709. number = number / 10;
  11710. }
  11711. return eifelerRegelAppliesToNumber(number);
  11712. } else {
  11713. // Anything larger than 4 digits: recursively check first n-3 digits
  11714. number = number / 1000;
  11715. return eifelerRegelAppliesToNumber(number);
  11716. }
  11717. }
  11718. var lb = moment.defineLocale('lb', {
  11719. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  11720. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  11721. monthsParseExact : true,
  11722. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  11723. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11724. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11725. weekdaysParseExact : true,
  11726. longDateFormat: {
  11727. LT: 'H:mm [Auer]',
  11728. LTS: 'H:mm:ss [Auer]',
  11729. L: 'DD.MM.YYYY',
  11730. LL: 'D. MMMM YYYY',
  11731. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11732. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  11733. },
  11734. calendar: {
  11735. sameDay: '[Haut um] LT',
  11736. sameElse: 'L',
  11737. nextDay: '[Muer um] LT',
  11738. nextWeek: 'dddd [um] LT',
  11739. lastDay: '[Gëschter um] LT',
  11740. lastWeek: function () {
  11741. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11742. switch (this.day()) {
  11743. case 2:
  11744. case 4:
  11745. return '[Leschten] dddd [um] LT';
  11746. default:
  11747. return '[Leschte] dddd [um] LT';
  11748. }
  11749. }
  11750. },
  11751. relativeTime : {
  11752. future : processFutureTime,
  11753. past : processPastTime,
  11754. s : 'e puer Sekonnen',
  11755. m : processRelativeTime,
  11756. mm : '%d Minutten',
  11757. h : processRelativeTime,
  11758. hh : '%d Stonnen',
  11759. d : processRelativeTime,
  11760. dd : '%d Deeg',
  11761. M : processRelativeTime,
  11762. MM : '%d Méint',
  11763. y : processRelativeTime,
  11764. yy : '%d Joer'
  11765. },
  11766. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11767. ordinal: '%d.',
  11768. week: {
  11769. dow: 1, // Monday is the first day of the week.
  11770. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11771. }
  11772. });
  11773. return lb;
  11774. })));
  11775. /***/ }),
  11776. /***/ "./node_modules/moment/locale/lo.js":
  11777. /*!******************************************!*\
  11778. !*** ./node_modules/moment/locale/lo.js ***!
  11779. \******************************************/
  11780. /*! no static exports found */
  11781. /***/ (function(module, exports, __webpack_require__) {
  11782. //! moment.js locale configuration
  11783. //! locale : Lao [lo]
  11784. //! author : Ryan Hart : https://github.com/ryanhart2
  11785. ;(function (global, factory) {
  11786. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11787. undefined
  11788. }(this, (function (moment) { 'use strict';
  11789. var lo = moment.defineLocale('lo', {
  11790. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  11791. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  11792. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11793. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11794. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11795. weekdaysParseExact : true,
  11796. longDateFormat : {
  11797. LT : 'HH:mm',
  11798. LTS : 'HH:mm:ss',
  11799. L : 'DD/MM/YYYY',
  11800. LL : 'D MMMM YYYY',
  11801. LLL : 'D MMMM YYYY HH:mm',
  11802. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  11803. },
  11804. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11805. isPM: function (input) {
  11806. return input === 'ຕອນແລງ';
  11807. },
  11808. meridiem : function (hour, minute, isLower) {
  11809. if (hour < 12) {
  11810. return 'ຕອນເຊົ້າ';
  11811. } else {
  11812. return 'ຕອນແລງ';
  11813. }
  11814. },
  11815. calendar : {
  11816. sameDay : '[ມື້ນີ້ເວລາ] LT',
  11817. nextDay : '[ມື້ອື່ນເວລາ] LT',
  11818. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11819. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  11820. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11821. sameElse : 'L'
  11822. },
  11823. relativeTime : {
  11824. future : 'ອີກ %s',
  11825. past : '%sຜ່ານມາ',
  11826. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  11827. m : '1 ນາທີ',
  11828. mm : '%d ນາທີ',
  11829. h : '1 ຊົ່ວໂມງ',
  11830. hh : '%d ຊົ່ວໂມງ',
  11831. d : '1 ມື້',
  11832. dd : '%d ມື້',
  11833. M : '1 ເດືອນ',
  11834. MM : '%d ເດືອນ',
  11835. y : '1 ປີ',
  11836. yy : '%d ປີ'
  11837. },
  11838. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11839. ordinal : function (number) {
  11840. return 'ທີ່' + number;
  11841. }
  11842. });
  11843. return lo;
  11844. })));
  11845. /***/ }),
  11846. /***/ "./node_modules/moment/locale/lt.js":
  11847. /*!******************************************!*\
  11848. !*** ./node_modules/moment/locale/lt.js ***!
  11849. \******************************************/
  11850. /*! no static exports found */
  11851. /***/ (function(module, exports, __webpack_require__) {
  11852. //! moment.js locale configuration
  11853. //! locale : Lithuanian [lt]
  11854. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  11855. ;(function (global, factory) {
  11856. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11857. undefined
  11858. }(this, (function (moment) { 'use strict';
  11859. var units = {
  11860. 'm' : 'minutė_minutės_minutę',
  11861. 'mm': 'minutės_minučių_minutes',
  11862. 'h' : 'valanda_valandos_valandą',
  11863. 'hh': 'valandos_valandų_valandas',
  11864. 'd' : 'diena_dienos_dieną',
  11865. 'dd': 'dienos_dienų_dienas',
  11866. 'M' : 'mėnuo_mėnesio_mėnesį',
  11867. 'MM': 'mėnesiai_mėnesių_mėnesius',
  11868. 'y' : 'metai_metų_metus',
  11869. 'yy': 'metai_metų_metus'
  11870. };
  11871. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11872. if (withoutSuffix) {
  11873. return 'kelios sekundės';
  11874. } else {
  11875. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11876. }
  11877. }
  11878. function translateSingular(number, withoutSuffix, key, isFuture) {
  11879. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  11880. }
  11881. function special(number) {
  11882. return number % 10 === 0 || (number > 10 && number < 20);
  11883. }
  11884. function forms(key) {
  11885. return units[key].split('_');
  11886. }
  11887. function translate(number, withoutSuffix, key, isFuture) {
  11888. var result = number + ' ';
  11889. if (number === 1) {
  11890. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  11891. } else if (withoutSuffix) {
  11892. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11893. } else {
  11894. if (isFuture) {
  11895. return result + forms(key)[1];
  11896. } else {
  11897. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11898. }
  11899. }
  11900. }
  11901. var lt = moment.defineLocale('lt', {
  11902. months : {
  11903. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  11904. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  11905. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  11906. },
  11907. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11908. weekdays : {
  11909. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  11910. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  11911. isFormat: /dddd HH:mm/
  11912. },
  11913. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11914. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  11915. weekdaysParseExact : true,
  11916. longDateFormat : {
  11917. LT : 'HH:mm',
  11918. LTS : 'HH:mm:ss',
  11919. L : 'YYYY-MM-DD',
  11920. LL : 'YYYY [m.] MMMM D [d.]',
  11921. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11922. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11923. l : 'YYYY-MM-DD',
  11924. ll : 'YYYY [m.] MMMM D [d.]',
  11925. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11926. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  11927. },
  11928. calendar : {
  11929. sameDay : '[Šiandien] LT',
  11930. nextDay : '[Rytoj] LT',
  11931. nextWeek : 'dddd LT',
  11932. lastDay : '[Vakar] LT',
  11933. lastWeek : '[Praėjusį] dddd LT',
  11934. sameElse : 'L'
  11935. },
  11936. relativeTime : {
  11937. future : 'po %s',
  11938. past : 'prieš %s',
  11939. s : translateSeconds,
  11940. m : translateSingular,
  11941. mm : translate,
  11942. h : translateSingular,
  11943. hh : translate,
  11944. d : translateSingular,
  11945. dd : translate,
  11946. M : translateSingular,
  11947. MM : translate,
  11948. y : translateSingular,
  11949. yy : translate
  11950. },
  11951. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11952. ordinal : function (number) {
  11953. return number + '-oji';
  11954. },
  11955. week : {
  11956. dow : 1, // Monday is the first day of the week.
  11957. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11958. }
  11959. });
  11960. return lt;
  11961. })));
  11962. /***/ }),
  11963. /***/ "./node_modules/moment/locale/lv.js":
  11964. /*!******************************************!*\
  11965. !*** ./node_modules/moment/locale/lv.js ***!
  11966. \******************************************/
  11967. /*! no static exports found */
  11968. /***/ (function(module, exports, __webpack_require__) {
  11969. //! moment.js locale configuration
  11970. //! locale : Latvian [lv]
  11971. //! author : Kristaps Karlsons : https://github.com/skakri
  11972. //! author : Jānis Elmeris : https://github.com/JanisE
  11973. ;(function (global, factory) {
  11974. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11975. undefined
  11976. }(this, (function (moment) { 'use strict';
  11977. var units = {
  11978. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11979. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11980. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  11981. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  11982. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  11983. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  11984. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11985. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11986. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  11987. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  11988. };
  11989. /**
  11990. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11991. */
  11992. function format(forms, number, withoutSuffix) {
  11993. if (withoutSuffix) {
  11994. // E.g. "21 minūte", "3 minūtes".
  11995. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11996. } else {
  11997. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11998. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11999. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  12000. }
  12001. }
  12002. function relativeTimeWithPlural(number, withoutSuffix, key) {
  12003. return number + ' ' + format(units[key], number, withoutSuffix);
  12004. }
  12005. function relativeTimeWithSingular(number, withoutSuffix, key) {
  12006. return format(units[key], number, withoutSuffix);
  12007. }
  12008. function relativeSeconds(number, withoutSuffix) {
  12009. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  12010. }
  12011. var lv = moment.defineLocale('lv', {
  12012. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  12013. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  12014. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  12015. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  12016. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  12017. weekdaysParseExact : true,
  12018. longDateFormat : {
  12019. LT : 'HH:mm',
  12020. LTS : 'HH:mm:ss',
  12021. L : 'DD.MM.YYYY.',
  12022. LL : 'YYYY. [gada] D. MMMM',
  12023. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  12024. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  12025. },
  12026. calendar : {
  12027. sameDay : '[Šodien pulksten] LT',
  12028. nextDay : '[Rīt pulksten] LT',
  12029. nextWeek : 'dddd [pulksten] LT',
  12030. lastDay : '[Vakar pulksten] LT',
  12031. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  12032. sameElse : 'L'
  12033. },
  12034. relativeTime : {
  12035. future : 'pēc %s',
  12036. past : 'pirms %s',
  12037. s : relativeSeconds,
  12038. m : relativeTimeWithSingular,
  12039. mm : relativeTimeWithPlural,
  12040. h : relativeTimeWithSingular,
  12041. hh : relativeTimeWithPlural,
  12042. d : relativeTimeWithSingular,
  12043. dd : relativeTimeWithPlural,
  12044. M : relativeTimeWithSingular,
  12045. MM : relativeTimeWithPlural,
  12046. y : relativeTimeWithSingular,
  12047. yy : relativeTimeWithPlural
  12048. },
  12049. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12050. ordinal : '%d.',
  12051. week : {
  12052. dow : 1, // Monday is the first day of the week.
  12053. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12054. }
  12055. });
  12056. return lv;
  12057. })));
  12058. /***/ }),
  12059. /***/ "./node_modules/moment/locale/me.js":
  12060. /*!******************************************!*\
  12061. !*** ./node_modules/moment/locale/me.js ***!
  12062. \******************************************/
  12063. /*! no static exports found */
  12064. /***/ (function(module, exports, __webpack_require__) {
  12065. //! moment.js locale configuration
  12066. //! locale : Montenegrin [me]
  12067. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  12068. ;(function (global, factory) {
  12069. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12070. undefined
  12071. }(this, (function (moment) { 'use strict';
  12072. var translator = {
  12073. words: { //Different grammatical cases
  12074. m: ['jedan minut', 'jednog minuta'],
  12075. mm: ['minut', 'minuta', 'minuta'],
  12076. h: ['jedan sat', 'jednog sata'],
  12077. hh: ['sat', 'sata', 'sati'],
  12078. dd: ['dan', 'dana', 'dana'],
  12079. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  12080. yy: ['godina', 'godine', 'godina']
  12081. },
  12082. correctGrammaticalCase: function (number, wordKey) {
  12083. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  12084. },
  12085. translate: function (number, withoutSuffix, key) {
  12086. var wordKey = translator.words[key];
  12087. if (key.length === 1) {
  12088. return withoutSuffix ? wordKey[0] : wordKey[1];
  12089. } else {
  12090. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  12091. }
  12092. }
  12093. };
  12094. var me = moment.defineLocale('me', {
  12095. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  12096. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  12097. monthsParseExact : true,
  12098. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  12099. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  12100. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  12101. weekdaysParseExact : true,
  12102. longDateFormat: {
  12103. LT: 'H:mm',
  12104. LTS : 'H:mm:ss',
  12105. L: 'DD.MM.YYYY',
  12106. LL: 'D. MMMM YYYY',
  12107. LLL: 'D. MMMM YYYY H:mm',
  12108. LLLL: 'dddd, D. MMMM YYYY H:mm'
  12109. },
  12110. calendar: {
  12111. sameDay: '[danas u] LT',
  12112. nextDay: '[sjutra u] LT',
  12113. nextWeek: function () {
  12114. switch (this.day()) {
  12115. case 0:
  12116. return '[u] [nedjelju] [u] LT';
  12117. case 3:
  12118. return '[u] [srijedu] [u] LT';
  12119. case 6:
  12120. return '[u] [subotu] [u] LT';
  12121. case 1:
  12122. case 2:
  12123. case 4:
  12124. case 5:
  12125. return '[u] dddd [u] LT';
  12126. }
  12127. },
  12128. lastDay : '[juče u] LT',
  12129. lastWeek : function () {
  12130. var lastWeekDays = [
  12131. '[prošle] [nedjelje] [u] LT',
  12132. '[prošlog] [ponedjeljka] [u] LT',
  12133. '[prošlog] [utorka] [u] LT',
  12134. '[prošle] [srijede] [u] LT',
  12135. '[prošlog] [četvrtka] [u] LT',
  12136. '[prošlog] [petka] [u] LT',
  12137. '[prošle] [subote] [u] LT'
  12138. ];
  12139. return lastWeekDays[this.day()];
  12140. },
  12141. sameElse : 'L'
  12142. },
  12143. relativeTime : {
  12144. future : 'za %s',
  12145. past : 'prije %s',
  12146. s : 'nekoliko sekundi',
  12147. m : translator.translate,
  12148. mm : translator.translate,
  12149. h : translator.translate,
  12150. hh : translator.translate,
  12151. d : 'dan',
  12152. dd : translator.translate,
  12153. M : 'mjesec',
  12154. MM : translator.translate,
  12155. y : 'godinu',
  12156. yy : translator.translate
  12157. },
  12158. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12159. ordinal : '%d.',
  12160. week : {
  12161. dow : 1, // Monday is the first day of the week.
  12162. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12163. }
  12164. });
  12165. return me;
  12166. })));
  12167. /***/ }),
  12168. /***/ "./node_modules/moment/locale/mi.js":
  12169. /*!******************************************!*\
  12170. !*** ./node_modules/moment/locale/mi.js ***!
  12171. \******************************************/
  12172. /*! no static exports found */
  12173. /***/ (function(module, exports, __webpack_require__) {
  12174. //! moment.js locale configuration
  12175. //! locale : Maori [mi]
  12176. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  12177. ;(function (global, factory) {
  12178. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12179. undefined
  12180. }(this, (function (moment) { 'use strict';
  12181. var mi = moment.defineLocale('mi', {
  12182. 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('_'),
  12183. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  12184. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12185. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12186. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12187. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  12188. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  12189. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12190. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12191. longDateFormat: {
  12192. LT: 'HH:mm',
  12193. LTS: 'HH:mm:ss',
  12194. L: 'DD/MM/YYYY',
  12195. LL: 'D MMMM YYYY',
  12196. LLL: 'D MMMM YYYY [i] HH:mm',
  12197. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  12198. },
  12199. calendar: {
  12200. sameDay: '[i teie mahana, i] LT',
  12201. nextDay: '[apopo i] LT',
  12202. nextWeek: 'dddd [i] LT',
  12203. lastDay: '[inanahi i] LT',
  12204. lastWeek: 'dddd [whakamutunga i] LT',
  12205. sameElse: 'L'
  12206. },
  12207. relativeTime: {
  12208. future: 'i roto i %s',
  12209. past: '%s i mua',
  12210. s: 'te hēkona ruarua',
  12211. m: 'he meneti',
  12212. mm: '%d meneti',
  12213. h: 'te haora',
  12214. hh: '%d haora',
  12215. d: 'he ra',
  12216. dd: '%d ra',
  12217. M: 'he marama',
  12218. MM: '%d marama',
  12219. y: 'he tau',
  12220. yy: '%d tau'
  12221. },
  12222. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12223. ordinal: '%dº',
  12224. week : {
  12225. dow : 1, // Monday is the first day of the week.
  12226. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12227. }
  12228. });
  12229. return mi;
  12230. })));
  12231. /***/ }),
  12232. /***/ "./node_modules/moment/locale/mk.js":
  12233. /*!******************************************!*\
  12234. !*** ./node_modules/moment/locale/mk.js ***!
  12235. \******************************************/
  12236. /*! no static exports found */
  12237. /***/ (function(module, exports, __webpack_require__) {
  12238. //! moment.js locale configuration
  12239. //! locale : Macedonian [mk]
  12240. //! author : Borislav Mickov : https://github.com/B0k0
  12241. ;(function (global, factory) {
  12242. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12243. undefined
  12244. }(this, (function (moment) { 'use strict';
  12245. var mk = moment.defineLocale('mk', {
  12246. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  12247. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  12248. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  12249. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  12250. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  12251. longDateFormat : {
  12252. LT : 'H:mm',
  12253. LTS : 'H:mm:ss',
  12254. L : 'D.MM.YYYY',
  12255. LL : 'D MMMM YYYY',
  12256. LLL : 'D MMMM YYYY H:mm',
  12257. LLLL : 'dddd, D MMMM YYYY H:mm'
  12258. },
  12259. calendar : {
  12260. sameDay : '[Денес во] LT',
  12261. nextDay : '[Утре во] LT',
  12262. nextWeek : '[Во] dddd [во] LT',
  12263. lastDay : '[Вчера во] LT',
  12264. lastWeek : function () {
  12265. switch (this.day()) {
  12266. case 0:
  12267. case 3:
  12268. case 6:
  12269. return '[Изминатата] dddd [во] LT';
  12270. case 1:
  12271. case 2:
  12272. case 4:
  12273. case 5:
  12274. return '[Изминатиот] dddd [во] LT';
  12275. }
  12276. },
  12277. sameElse : 'L'
  12278. },
  12279. relativeTime : {
  12280. future : 'после %s',
  12281. past : 'пред %s',
  12282. s : 'неколку секунди',
  12283. m : 'минута',
  12284. mm : '%d минути',
  12285. h : 'час',
  12286. hh : '%d часа',
  12287. d : 'ден',
  12288. dd : '%d дена',
  12289. M : 'месец',
  12290. MM : '%d месеци',
  12291. y : 'година',
  12292. yy : '%d години'
  12293. },
  12294. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  12295. ordinal : function (number) {
  12296. var lastDigit = number % 10,
  12297. last2Digits = number % 100;
  12298. if (number === 0) {
  12299. return number + '-ев';
  12300. } else if (last2Digits === 0) {
  12301. return number + '-ен';
  12302. } else if (last2Digits > 10 && last2Digits < 20) {
  12303. return number + '-ти';
  12304. } else if (lastDigit === 1) {
  12305. return number + '-ви';
  12306. } else if (lastDigit === 2) {
  12307. return number + '-ри';
  12308. } else if (lastDigit === 7 || lastDigit === 8) {
  12309. return number + '-ми';
  12310. } else {
  12311. return number + '-ти';
  12312. }
  12313. },
  12314. week : {
  12315. dow : 1, // Monday is the first day of the week.
  12316. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12317. }
  12318. });
  12319. return mk;
  12320. })));
  12321. /***/ }),
  12322. /***/ "./node_modules/moment/locale/ml.js":
  12323. /*!******************************************!*\
  12324. !*** ./node_modules/moment/locale/ml.js ***!
  12325. \******************************************/
  12326. /*! no static exports found */
  12327. /***/ (function(module, exports, __webpack_require__) {
  12328. //! moment.js locale configuration
  12329. //! locale : Malayalam [ml]
  12330. //! author : Floyd Pink : https://github.com/floydpink
  12331. ;(function (global, factory) {
  12332. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12333. undefined
  12334. }(this, (function (moment) { 'use strict';
  12335. var ml = moment.defineLocale('ml', {
  12336. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  12337. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  12338. monthsParseExact : true,
  12339. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  12340. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12341. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12342. longDateFormat : {
  12343. LT : 'A h:mm -നു',
  12344. LTS : 'A h:mm:ss -നു',
  12345. L : 'DD/MM/YYYY',
  12346. LL : 'D MMMM YYYY',
  12347. LLL : 'D MMMM YYYY, A h:mm -നു',
  12348. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  12349. },
  12350. calendar : {
  12351. sameDay : '[ഇന്ന്] LT',
  12352. nextDay : '[നാളെ] LT',
  12353. nextWeek : 'dddd, LT',
  12354. lastDay : '[ഇന്നലെ] LT',
  12355. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  12356. sameElse : 'L'
  12357. },
  12358. relativeTime : {
  12359. future : '%s കഴിഞ്ഞ്',
  12360. past : '%s മുൻപ്',
  12361. s : 'അൽപ നിമിഷങ്ങൾ',
  12362. m : 'ഒരു മിനിറ്റ്',
  12363. mm : '%d മിനിറ്റ്',
  12364. h : 'ഒരു മണിക്കൂർ',
  12365. hh : '%d മണിക്കൂർ',
  12366. d : 'ഒരു ദിവസം',
  12367. dd : '%d ദിവസം',
  12368. M : 'ഒരു മാസം',
  12369. MM : '%d മാസം',
  12370. y : 'ഒരു വർഷം',
  12371. yy : '%d വർഷം'
  12372. },
  12373. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12374. meridiemHour : function (hour, meridiem) {
  12375. if (hour === 12) {
  12376. hour = 0;
  12377. }
  12378. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  12379. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12380. meridiem === 'വൈകുന്നേരം') {
  12381. return hour + 12;
  12382. } else {
  12383. return hour;
  12384. }
  12385. },
  12386. meridiem : function (hour, minute, isLower) {
  12387. if (hour < 4) {
  12388. return 'രാത്രി';
  12389. } else if (hour < 12) {
  12390. return 'രാവിലെ';
  12391. } else if (hour < 17) {
  12392. return 'ഉച്ച കഴിഞ്ഞ്';
  12393. } else if (hour < 20) {
  12394. return 'വൈകുന്നേരം';
  12395. } else {
  12396. return 'രാത്രി';
  12397. }
  12398. }
  12399. });
  12400. return ml;
  12401. })));
  12402. /***/ }),
  12403. /***/ "./node_modules/moment/locale/mr.js":
  12404. /*!******************************************!*\
  12405. !*** ./node_modules/moment/locale/mr.js ***!
  12406. \******************************************/
  12407. /*! no static exports found */
  12408. /***/ (function(module, exports, __webpack_require__) {
  12409. //! moment.js locale configuration
  12410. //! locale : Marathi [mr]
  12411. //! author : Harshad Kale : https://github.com/kalehv
  12412. //! author : Vivek Athalye : https://github.com/vnathalye
  12413. ;(function (global, factory) {
  12414. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12415. undefined
  12416. }(this, (function (moment) { 'use strict';
  12417. var symbolMap = {
  12418. '1': '१',
  12419. '2': '२',
  12420. '3': '३',
  12421. '4': '४',
  12422. '5': '५',
  12423. '6': '६',
  12424. '7': '७',
  12425. '8': '८',
  12426. '9': '९',
  12427. '0': '०'
  12428. };
  12429. var numberMap = {
  12430. '१': '1',
  12431. '२': '2',
  12432. '३': '3',
  12433. '४': '4',
  12434. '५': '5',
  12435. '६': '6',
  12436. '७': '7',
  12437. '८': '8',
  12438. '९': '9',
  12439. '०': '0'
  12440. };
  12441. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  12442. {
  12443. var output = '';
  12444. if (withoutSuffix) {
  12445. switch (string) {
  12446. case 's': output = 'काही सेकंद'; break;
  12447. case 'm': output = 'एक मिनिट'; break;
  12448. case 'mm': output = '%d मिनिटे'; break;
  12449. case 'h': output = 'एक तास'; break;
  12450. case 'hh': output = '%d तास'; break;
  12451. case 'd': output = 'एक दिवस'; break;
  12452. case 'dd': output = '%d दिवस'; break;
  12453. case 'M': output = 'एक महिना'; break;
  12454. case 'MM': output = '%d महिने'; break;
  12455. case 'y': output = 'एक वर्ष'; break;
  12456. case 'yy': output = '%d वर्षे'; break;
  12457. }
  12458. }
  12459. else {
  12460. switch (string) {
  12461. case 's': output = 'काही सेकंदां'; break;
  12462. case 'm': output = 'एका मिनिटा'; break;
  12463. case 'mm': output = '%d मिनिटां'; break;
  12464. case 'h': output = 'एका तासा'; break;
  12465. case 'hh': output = '%d तासां'; break;
  12466. case 'd': output = 'एका दिवसा'; break;
  12467. case 'dd': output = '%d दिवसां'; break;
  12468. case 'M': output = 'एका महिन्या'; break;
  12469. case 'MM': output = '%d महिन्यां'; break;
  12470. case 'y': output = 'एका वर्षा'; break;
  12471. case 'yy': output = '%d वर्षां'; break;
  12472. }
  12473. }
  12474. return output.replace(/%d/i, number);
  12475. }
  12476. var mr = moment.defineLocale('mr', {
  12477. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  12478. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  12479. monthsParseExact : true,
  12480. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12481. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12482. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12483. longDateFormat : {
  12484. LT : 'A h:mm वाजता',
  12485. LTS : 'A h:mm:ss वाजता',
  12486. L : 'DD/MM/YYYY',
  12487. LL : 'D MMMM YYYY',
  12488. LLL : 'D MMMM YYYY, A h:mm वाजता',
  12489. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  12490. },
  12491. calendar : {
  12492. sameDay : '[आज] LT',
  12493. nextDay : '[उद्या] LT',
  12494. nextWeek : 'dddd, LT',
  12495. lastDay : '[काल] LT',
  12496. lastWeek: '[मागील] dddd, LT',
  12497. sameElse : 'L'
  12498. },
  12499. relativeTime : {
  12500. future: '%sमध्ये',
  12501. past: '%sपूर्वी',
  12502. s: relativeTimeMr,
  12503. m: relativeTimeMr,
  12504. mm: relativeTimeMr,
  12505. h: relativeTimeMr,
  12506. hh: relativeTimeMr,
  12507. d: relativeTimeMr,
  12508. dd: relativeTimeMr,
  12509. M: relativeTimeMr,
  12510. MM: relativeTimeMr,
  12511. y: relativeTimeMr,
  12512. yy: relativeTimeMr
  12513. },
  12514. preparse: function (string) {
  12515. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12516. return numberMap[match];
  12517. });
  12518. },
  12519. postformat: function (string) {
  12520. return string.replace(/\d/g, function (match) {
  12521. return symbolMap[match];
  12522. });
  12523. },
  12524. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  12525. meridiemHour : function (hour, meridiem) {
  12526. if (hour === 12) {
  12527. hour = 0;
  12528. }
  12529. if (meridiem === 'रात्री') {
  12530. return hour < 4 ? hour : hour + 12;
  12531. } else if (meridiem === 'सकाळी') {
  12532. return hour;
  12533. } else if (meridiem === 'दुपारी') {
  12534. return hour >= 10 ? hour : hour + 12;
  12535. } else if (meridiem === 'सायंकाळी') {
  12536. return hour + 12;
  12537. }
  12538. },
  12539. meridiem: function (hour, minute, isLower) {
  12540. if (hour < 4) {
  12541. return 'रात्री';
  12542. } else if (hour < 10) {
  12543. return 'सकाळी';
  12544. } else if (hour < 17) {
  12545. return 'दुपारी';
  12546. } else if (hour < 20) {
  12547. return 'सायंकाळी';
  12548. } else {
  12549. return 'रात्री';
  12550. }
  12551. },
  12552. week : {
  12553. dow : 0, // Sunday is the first day of the week.
  12554. doy : 6 // The week that contains Jan 1st is the first week of the year.
  12555. }
  12556. });
  12557. return mr;
  12558. })));
  12559. /***/ }),
  12560. /***/ "./node_modules/moment/locale/ms-my.js":
  12561. /*!*********************************************!*\
  12562. !*** ./node_modules/moment/locale/ms-my.js ***!
  12563. \*********************************************/
  12564. /*! no static exports found */
  12565. /***/ (function(module, exports, __webpack_require__) {
  12566. //! moment.js locale configuration
  12567. //! locale : Malay [ms-my]
  12568. //! note : DEPRECATED, the correct one is [ms]
  12569. //! author : Weldan Jamili : https://github.com/weldan
  12570. ;(function (global, factory) {
  12571. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12572. undefined
  12573. }(this, (function (moment) { 'use strict';
  12574. var msMy = moment.defineLocale('ms-my', {
  12575. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  12576. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12577. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12578. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12579. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12580. longDateFormat : {
  12581. LT : 'HH.mm',
  12582. LTS : 'HH.mm.ss',
  12583. L : 'DD/MM/YYYY',
  12584. LL : 'D MMMM YYYY',
  12585. LLL : 'D MMMM YYYY [pukul] HH.mm',
  12586. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  12587. },
  12588. meridiemParse: /pagi|tengahari|petang|malam/,
  12589. meridiemHour: function (hour, meridiem) {
  12590. if (hour === 12) {
  12591. hour = 0;
  12592. }
  12593. if (meridiem === 'pagi') {
  12594. return hour;
  12595. } else if (meridiem === 'tengahari') {
  12596. return hour >= 11 ? hour : hour + 12;
  12597. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12598. return hour + 12;
  12599. }
  12600. },
  12601. meridiem : function (hours, minutes, isLower) {
  12602. if (hours < 11) {
  12603. return 'pagi';
  12604. } else if (hours < 15) {
  12605. return 'tengahari';
  12606. } else if (hours < 19) {
  12607. return 'petang';
  12608. } else {
  12609. return 'malam';
  12610. }
  12611. },
  12612. calendar : {
  12613. sameDay : '[Hari ini pukul] LT',
  12614. nextDay : '[Esok pukul] LT',
  12615. nextWeek : 'dddd [pukul] LT',
  12616. lastDay : '[Kelmarin pukul] LT',
  12617. lastWeek : 'dddd [lepas pukul] LT',
  12618. sameElse : 'L'
  12619. },
  12620. relativeTime : {
  12621. future : 'dalam %s',
  12622. past : '%s yang lepas',
  12623. s : 'beberapa saat',
  12624. m : 'seminit',
  12625. mm : '%d minit',
  12626. h : 'sejam',
  12627. hh : '%d jam',
  12628. d : 'sehari',
  12629. dd : '%d hari',
  12630. M : 'sebulan',
  12631. MM : '%d bulan',
  12632. y : 'setahun',
  12633. yy : '%d tahun'
  12634. },
  12635. week : {
  12636. dow : 1, // Monday is the first day of the week.
  12637. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12638. }
  12639. });
  12640. return msMy;
  12641. })));
  12642. /***/ }),
  12643. /***/ "./node_modules/moment/locale/ms.js":
  12644. /*!******************************************!*\
  12645. !*** ./node_modules/moment/locale/ms.js ***!
  12646. \******************************************/
  12647. /*! no static exports found */
  12648. /***/ (function(module, exports, __webpack_require__) {
  12649. //! moment.js locale configuration
  12650. //! locale : Malay [ms]
  12651. //! author : Weldan Jamili : https://github.com/weldan
  12652. ;(function (global, factory) {
  12653. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12654. undefined
  12655. }(this, (function (moment) { 'use strict';
  12656. var ms = moment.defineLocale('ms', {
  12657. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  12658. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12659. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12660. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12661. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12662. longDateFormat : {
  12663. LT : 'HH.mm',
  12664. LTS : 'HH.mm.ss',
  12665. L : 'DD/MM/YYYY',
  12666. LL : 'D MMMM YYYY',
  12667. LLL : 'D MMMM YYYY [pukul] HH.mm',
  12668. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  12669. },
  12670. meridiemParse: /pagi|tengahari|petang|malam/,
  12671. meridiemHour: function (hour, meridiem) {
  12672. if (hour === 12) {
  12673. hour = 0;
  12674. }
  12675. if (meridiem === 'pagi') {
  12676. return hour;
  12677. } else if (meridiem === 'tengahari') {
  12678. return hour >= 11 ? hour : hour + 12;
  12679. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12680. return hour + 12;
  12681. }
  12682. },
  12683. meridiem : function (hours, minutes, isLower) {
  12684. if (hours < 11) {
  12685. return 'pagi';
  12686. } else if (hours < 15) {
  12687. return 'tengahari';
  12688. } else if (hours < 19) {
  12689. return 'petang';
  12690. } else {
  12691. return 'malam';
  12692. }
  12693. },
  12694. calendar : {
  12695. sameDay : '[Hari ini pukul] LT',
  12696. nextDay : '[Esok pukul] LT',
  12697. nextWeek : 'dddd [pukul] LT',
  12698. lastDay : '[Kelmarin pukul] LT',
  12699. lastWeek : 'dddd [lepas pukul] LT',
  12700. sameElse : 'L'
  12701. },
  12702. relativeTime : {
  12703. future : 'dalam %s',
  12704. past : '%s yang lepas',
  12705. s : 'beberapa saat',
  12706. m : 'seminit',
  12707. mm : '%d minit',
  12708. h : 'sejam',
  12709. hh : '%d jam',
  12710. d : 'sehari',
  12711. dd : '%d hari',
  12712. M : 'sebulan',
  12713. MM : '%d bulan',
  12714. y : 'setahun',
  12715. yy : '%d tahun'
  12716. },
  12717. week : {
  12718. dow : 1, // Monday is the first day of the week.
  12719. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12720. }
  12721. });
  12722. return ms;
  12723. })));
  12724. /***/ }),
  12725. /***/ "./node_modules/moment/locale/my.js":
  12726. /*!******************************************!*\
  12727. !*** ./node_modules/moment/locale/my.js ***!
  12728. \******************************************/
  12729. /*! no static exports found */
  12730. /***/ (function(module, exports, __webpack_require__) {
  12731. //! moment.js locale configuration
  12732. //! locale : Burmese [my]
  12733. //! author : Squar team, mysquar.com
  12734. //! author : David Rossellat : https://github.com/gholadr
  12735. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  12736. ;(function (global, factory) {
  12737. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12738. undefined
  12739. }(this, (function (moment) { 'use strict';
  12740. var symbolMap = {
  12741. '1': '၁',
  12742. '2': '၂',
  12743. '3': '၃',
  12744. '4': '၄',
  12745. '5': '၅',
  12746. '6': '၆',
  12747. '7': '၇',
  12748. '8': '၈',
  12749. '9': '၉',
  12750. '0': '၀'
  12751. };
  12752. var numberMap = {
  12753. '၁': '1',
  12754. '၂': '2',
  12755. '၃': '3',
  12756. '၄': '4',
  12757. '၅': '5',
  12758. '၆': '6',
  12759. '၇': '7',
  12760. '၈': '8',
  12761. '၉': '9',
  12762. '၀': '0'
  12763. };
  12764. var my = moment.defineLocale('my', {
  12765. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  12766. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12767. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  12768. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12769. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12770. longDateFormat: {
  12771. LT: 'HH:mm',
  12772. LTS: 'HH:mm:ss',
  12773. L: 'DD/MM/YYYY',
  12774. LL: 'D MMMM YYYY',
  12775. LLL: 'D MMMM YYYY HH:mm',
  12776. LLLL: 'dddd D MMMM YYYY HH:mm'
  12777. },
  12778. calendar: {
  12779. sameDay: '[ယနေ.] LT [မှာ]',
  12780. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12781. nextWeek: 'dddd LT [မှာ]',
  12782. lastDay: '[မနေ.က] LT [မှာ]',
  12783. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12784. sameElse: 'L'
  12785. },
  12786. relativeTime: {
  12787. future: 'လာမည့် %s မှာ',
  12788. past: 'လွန်ခဲ့သော %s က',
  12789. s: 'စက္ကန်.အနည်းငယ်',
  12790. m: 'တစ်မိနစ်',
  12791. mm: '%d မိနစ်',
  12792. h: 'တစ်နာရီ',
  12793. hh: '%d နာရီ',
  12794. d: 'တစ်ရက်',
  12795. dd: '%d ရက်',
  12796. M: 'တစ်လ',
  12797. MM: '%d လ',
  12798. y: 'တစ်နှစ်',
  12799. yy: '%d နှစ်'
  12800. },
  12801. preparse: function (string) {
  12802. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12803. return numberMap[match];
  12804. });
  12805. },
  12806. postformat: function (string) {
  12807. return string.replace(/\d/g, function (match) {
  12808. return symbolMap[match];
  12809. });
  12810. },
  12811. week: {
  12812. dow: 1, // Monday is the first day of the week.
  12813. doy: 4 // The week that contains Jan 1st is the first week of the year.
  12814. }
  12815. });
  12816. return my;
  12817. })));
  12818. /***/ }),
  12819. /***/ "./node_modules/moment/locale/nb.js":
  12820. /*!******************************************!*\
  12821. !*** ./node_modules/moment/locale/nb.js ***!
  12822. \******************************************/
  12823. /*! no static exports found */
  12824. /***/ (function(module, exports, __webpack_require__) {
  12825. //! moment.js locale configuration
  12826. //! locale : Norwegian Bokmål [nb]
  12827. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  12828. //! Sigurd Gartmann : https://github.com/sigurdga
  12829. ;(function (global, factory) {
  12830. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12831. undefined
  12832. }(this, (function (moment) { 'use strict';
  12833. var nb = moment.defineLocale('nb', {
  12834. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  12835. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  12836. monthsParseExact : true,
  12837. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12838. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12839. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12840. weekdaysParseExact : true,
  12841. longDateFormat : {
  12842. LT : 'HH:mm',
  12843. LTS : 'HH:mm:ss',
  12844. L : 'DD.MM.YYYY',
  12845. LL : 'D. MMMM YYYY',
  12846. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  12847. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  12848. },
  12849. calendar : {
  12850. sameDay: '[i dag kl.] LT',
  12851. nextDay: '[i morgen kl.] LT',
  12852. nextWeek: 'dddd [kl.] LT',
  12853. lastDay: '[i går kl.] LT',
  12854. lastWeek: '[forrige] dddd [kl.] LT',
  12855. sameElse: 'L'
  12856. },
  12857. relativeTime : {
  12858. future : 'om %s',
  12859. past : '%s siden',
  12860. s : 'noen sekunder',
  12861. m : 'ett minutt',
  12862. mm : '%d minutter',
  12863. h : 'en time',
  12864. hh : '%d timer',
  12865. d : 'en dag',
  12866. dd : '%d dager',
  12867. M : 'en måned',
  12868. MM : '%d måneder',
  12869. y : 'ett år',
  12870. yy : '%d år'
  12871. },
  12872. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12873. ordinal : '%d.',
  12874. week : {
  12875. dow : 1, // Monday is the first day of the week.
  12876. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12877. }
  12878. });
  12879. return nb;
  12880. })));
  12881. /***/ }),
  12882. /***/ "./node_modules/moment/locale/ne.js":
  12883. /*!******************************************!*\
  12884. !*** ./node_modules/moment/locale/ne.js ***!
  12885. \******************************************/
  12886. /*! no static exports found */
  12887. /***/ (function(module, exports, __webpack_require__) {
  12888. //! moment.js locale configuration
  12889. //! locale : Nepalese [ne]
  12890. //! author : suvash : https://github.com/suvash
  12891. ;(function (global, factory) {
  12892. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12893. undefined
  12894. }(this, (function (moment) { 'use strict';
  12895. var symbolMap = {
  12896. '1': '१',
  12897. '2': '२',
  12898. '3': '३',
  12899. '4': '४',
  12900. '5': '५',
  12901. '6': '६',
  12902. '7': '७',
  12903. '8': '८',
  12904. '9': '९',
  12905. '0': '०'
  12906. };
  12907. var numberMap = {
  12908. '१': '1',
  12909. '२': '2',
  12910. '३': '3',
  12911. '४': '4',
  12912. '५': '5',
  12913. '६': '6',
  12914. '७': '7',
  12915. '८': '8',
  12916. '९': '9',
  12917. '०': '0'
  12918. };
  12919. var ne = moment.defineLocale('ne', {
  12920. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  12921. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  12922. monthsParseExact : true,
  12923. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  12924. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  12925. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  12926. weekdaysParseExact : true,
  12927. longDateFormat : {
  12928. LT : 'Aको h:mm बजे',
  12929. LTS : 'Aको h:mm:ss बजे',
  12930. L : 'DD/MM/YYYY',
  12931. LL : 'D MMMM YYYY',
  12932. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  12933. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  12934. },
  12935. preparse: function (string) {
  12936. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12937. return numberMap[match];
  12938. });
  12939. },
  12940. postformat: function (string) {
  12941. return string.replace(/\d/g, function (match) {
  12942. return symbolMap[match];
  12943. });
  12944. },
  12945. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  12946. meridiemHour : function (hour, meridiem) {
  12947. if (hour === 12) {
  12948. hour = 0;
  12949. }
  12950. if (meridiem === 'राति') {
  12951. return hour < 4 ? hour : hour + 12;
  12952. } else if (meridiem === 'बिहान') {
  12953. return hour;
  12954. } else if (meridiem === 'दिउँसो') {
  12955. return hour >= 10 ? hour : hour + 12;
  12956. } else if (meridiem === 'साँझ') {
  12957. return hour + 12;
  12958. }
  12959. },
  12960. meridiem : function (hour, minute, isLower) {
  12961. if (hour < 3) {
  12962. return 'राति';
  12963. } else if (hour < 12) {
  12964. return 'बिहान';
  12965. } else if (hour < 16) {
  12966. return 'दिउँसो';
  12967. } else if (hour < 20) {
  12968. return 'साँझ';
  12969. } else {
  12970. return 'राति';
  12971. }
  12972. },
  12973. calendar : {
  12974. sameDay : '[आज] LT',
  12975. nextDay : '[भोलि] LT',
  12976. nextWeek : '[आउँदो] dddd[,] LT',
  12977. lastDay : '[हिजो] LT',
  12978. lastWeek : '[गएको] dddd[,] LT',
  12979. sameElse : 'L'
  12980. },
  12981. relativeTime : {
  12982. future : '%sमा',
  12983. past : '%s अगाडि',
  12984. s : 'केही क्षण',
  12985. m : 'एक मिनेट',
  12986. mm : '%d मिनेट',
  12987. h : 'एक घण्टा',
  12988. hh : '%d घण्टा',
  12989. d : 'एक दिन',
  12990. dd : '%d दिन',
  12991. M : 'एक महिना',
  12992. MM : '%d महिना',
  12993. y : 'एक बर्ष',
  12994. yy : '%d बर्ष'
  12995. },
  12996. week : {
  12997. dow : 0, // Sunday is the first day of the week.
  12998. doy : 6 // The week that contains Jan 1st is the first week of the year.
  12999. }
  13000. });
  13001. return ne;
  13002. })));
  13003. /***/ }),
  13004. /***/ "./node_modules/moment/locale/nl-be.js":
  13005. /*!*********************************************!*\
  13006. !*** ./node_modules/moment/locale/nl-be.js ***!
  13007. \*********************************************/
  13008. /*! no static exports found */
  13009. /***/ (function(module, exports, __webpack_require__) {
  13010. //! moment.js locale configuration
  13011. //! locale : Dutch (Belgium) [nl-be]
  13012. //! author : Joris Röling : https://github.com/jorisroling
  13013. //! author : Jacob Middag : https://github.com/middagj
  13014. ;(function (global, factory) {
  13015. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13016. undefined
  13017. }(this, (function (moment) { 'use strict';
  13018. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  13019. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  13020. var 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];
  13021. var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  13022. var nlBe = moment.defineLocale('nl-be', {
  13023. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  13024. monthsShort : function (m, format) {
  13025. if (!m) {
  13026. return monthsShortWithDots;
  13027. } else if (/-MMM-/.test(format)) {
  13028. return monthsShortWithoutDots[m.month()];
  13029. } else {
  13030. return monthsShortWithDots[m.month()];
  13031. }
  13032. },
  13033. monthsRegex: monthsRegex,
  13034. monthsShortRegex: monthsRegex,
  13035. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  13036. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13037. monthsParse : monthsParse,
  13038. longMonthsParse : monthsParse,
  13039. shortMonthsParse : monthsParse,
  13040. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  13041. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13042. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  13043. weekdaysParseExact : true,
  13044. longDateFormat : {
  13045. LT : 'HH:mm',
  13046. LTS : 'HH:mm:ss',
  13047. L : 'DD/MM/YYYY',
  13048. LL : 'D MMMM YYYY',
  13049. LLL : 'D MMMM YYYY HH:mm',
  13050. LLLL : 'dddd D MMMM YYYY HH:mm'
  13051. },
  13052. calendar : {
  13053. sameDay: '[vandaag om] LT',
  13054. nextDay: '[morgen om] LT',
  13055. nextWeek: 'dddd [om] LT',
  13056. lastDay: '[gisteren om] LT',
  13057. lastWeek: '[afgelopen] dddd [om] LT',
  13058. sameElse: 'L'
  13059. },
  13060. relativeTime : {
  13061. future : 'over %s',
  13062. past : '%s geleden',
  13063. s : 'een paar seconden',
  13064. m : 'één minuut',
  13065. mm : '%d minuten',
  13066. h : 'één uur',
  13067. hh : '%d uur',
  13068. d : 'één dag',
  13069. dd : '%d dagen',
  13070. M : 'één maand',
  13071. MM : '%d maanden',
  13072. y : 'één jaar',
  13073. yy : '%d jaar'
  13074. },
  13075. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13076. ordinal : function (number) {
  13077. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  13078. },
  13079. week : {
  13080. dow : 1, // Monday is the first day of the week.
  13081. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13082. }
  13083. });
  13084. return nlBe;
  13085. })));
  13086. /***/ }),
  13087. /***/ "./node_modules/moment/locale/nl.js":
  13088. /*!******************************************!*\
  13089. !*** ./node_modules/moment/locale/nl.js ***!
  13090. \******************************************/
  13091. /*! no static exports found */
  13092. /***/ (function(module, exports, __webpack_require__) {
  13093. //! moment.js locale configuration
  13094. //! locale : Dutch [nl]
  13095. //! author : Joris Röling : https://github.com/jorisroling
  13096. //! author : Jacob Middag : https://github.com/middagj
  13097. ;(function (global, factory) {
  13098. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13099. undefined
  13100. }(this, (function (moment) { 'use strict';
  13101. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  13102. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  13103. var 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];
  13104. var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  13105. var nl = moment.defineLocale('nl', {
  13106. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  13107. monthsShort : function (m, format) {
  13108. if (!m) {
  13109. return monthsShortWithDots;
  13110. } else if (/-MMM-/.test(format)) {
  13111. return monthsShortWithoutDots[m.month()];
  13112. } else {
  13113. return monthsShortWithDots[m.month()];
  13114. }
  13115. },
  13116. monthsRegex: monthsRegex,
  13117. monthsShortRegex: monthsRegex,
  13118. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  13119. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13120. monthsParse : monthsParse,
  13121. longMonthsParse : monthsParse,
  13122. shortMonthsParse : monthsParse,
  13123. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  13124. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13125. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  13126. weekdaysParseExact : true,
  13127. longDateFormat : {
  13128. LT : 'HH:mm',
  13129. LTS : 'HH:mm:ss',
  13130. L : 'DD-MM-YYYY',
  13131. LL : 'D MMMM YYYY',
  13132. LLL : 'D MMMM YYYY HH:mm',
  13133. LLLL : 'dddd D MMMM YYYY HH:mm'
  13134. },
  13135. calendar : {
  13136. sameDay: '[vandaag om] LT',
  13137. nextDay: '[morgen om] LT',
  13138. nextWeek: 'dddd [om] LT',
  13139. lastDay: '[gisteren om] LT',
  13140. lastWeek: '[afgelopen] dddd [om] LT',
  13141. sameElse: 'L'
  13142. },
  13143. relativeTime : {
  13144. future : 'over %s',
  13145. past : '%s geleden',
  13146. s : 'een paar seconden',
  13147. m : 'één minuut',
  13148. mm : '%d minuten',
  13149. h : 'één uur',
  13150. hh : '%d uur',
  13151. d : 'één dag',
  13152. dd : '%d dagen',
  13153. M : 'één maand',
  13154. MM : '%d maanden',
  13155. y : 'één jaar',
  13156. yy : '%d jaar'
  13157. },
  13158. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13159. ordinal : function (number) {
  13160. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  13161. },
  13162. week : {
  13163. dow : 1, // Monday is the first day of the week.
  13164. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13165. }
  13166. });
  13167. return nl;
  13168. })));
  13169. /***/ }),
  13170. /***/ "./node_modules/moment/locale/nn.js":
  13171. /*!******************************************!*\
  13172. !*** ./node_modules/moment/locale/nn.js ***!
  13173. \******************************************/
  13174. /*! no static exports found */
  13175. /***/ (function(module, exports, __webpack_require__) {
  13176. //! moment.js locale configuration
  13177. //! locale : Nynorsk [nn]
  13178. //! author : https://github.com/mechuwind
  13179. ;(function (global, factory) {
  13180. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13181. undefined
  13182. }(this, (function (moment) { 'use strict';
  13183. var nn = moment.defineLocale('nn', {
  13184. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  13185. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  13186. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13187. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  13188. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  13189. longDateFormat : {
  13190. LT : 'HH:mm',
  13191. LTS : 'HH:mm:ss',
  13192. L : 'DD.MM.YYYY',
  13193. LL : 'D. MMMM YYYY',
  13194. LLL : 'D. MMMM YYYY [kl.] H:mm',
  13195. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  13196. },
  13197. calendar : {
  13198. sameDay: '[I dag klokka] LT',
  13199. nextDay: '[I morgon klokka] LT',
  13200. nextWeek: 'dddd [klokka] LT',
  13201. lastDay: '[I går klokka] LT',
  13202. lastWeek: '[Føregåande] dddd [klokka] LT',
  13203. sameElse: 'L'
  13204. },
  13205. relativeTime : {
  13206. future : 'om %s',
  13207. past : '%s sidan',
  13208. s : 'nokre sekund',
  13209. m : 'eit minutt',
  13210. mm : '%d minutt',
  13211. h : 'ein time',
  13212. hh : '%d timar',
  13213. d : 'ein dag',
  13214. dd : '%d dagar',
  13215. M : 'ein månad',
  13216. MM : '%d månader',
  13217. y : 'eit år',
  13218. yy : '%d år'
  13219. },
  13220. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13221. ordinal : '%d.',
  13222. week : {
  13223. dow : 1, // Monday is the first day of the week.
  13224. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13225. }
  13226. });
  13227. return nn;
  13228. })));
  13229. /***/ }),
  13230. /***/ "./node_modules/moment/locale/pa-in.js":
  13231. /*!*********************************************!*\
  13232. !*** ./node_modules/moment/locale/pa-in.js ***!
  13233. \*********************************************/
  13234. /*! no static exports found */
  13235. /***/ (function(module, exports, __webpack_require__) {
  13236. //! moment.js locale configuration
  13237. //! locale : Punjabi (India) [pa-in]
  13238. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  13239. ;(function (global, factory) {
  13240. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13241. undefined
  13242. }(this, (function (moment) { 'use strict';
  13243. var symbolMap = {
  13244. '1': '੧',
  13245. '2': '੨',
  13246. '3': '੩',
  13247. '4': '੪',
  13248. '5': '੫',
  13249. '6': '੬',
  13250. '7': '੭',
  13251. '8': '੮',
  13252. '9': '੯',
  13253. '0': '੦'
  13254. };
  13255. var numberMap = {
  13256. '੧': '1',
  13257. '੨': '2',
  13258. '੩': '3',
  13259. '੪': '4',
  13260. '੫': '5',
  13261. '੬': '6',
  13262. '੭': '7',
  13263. '੮': '8',
  13264. '੯': '9',
  13265. '੦': '0'
  13266. };
  13267. var paIn = moment.defineLocale('pa-in', {
  13268. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  13269. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  13270. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  13271. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  13272. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13273. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13274. longDateFormat : {
  13275. LT : 'A h:mm ਵਜੇ',
  13276. LTS : 'A h:mm:ss ਵਜੇ',
  13277. L : 'DD/MM/YYYY',
  13278. LL : 'D MMMM YYYY',
  13279. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  13280. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  13281. },
  13282. calendar : {
  13283. sameDay : '[ਅਜ] LT',
  13284. nextDay : '[ਕਲ] LT',
  13285. nextWeek : 'dddd, LT',
  13286. lastDay : '[ਕਲ] LT',
  13287. lastWeek : '[ਪਿਛਲੇ] dddd, LT',
  13288. sameElse : 'L'
  13289. },
  13290. relativeTime : {
  13291. future : '%s ਵਿੱਚ',
  13292. past : '%s ਪਿਛਲੇ',
  13293. s : 'ਕੁਝ ਸਕਿੰਟ',
  13294. m : 'ਇਕ ਮਿੰਟ',
  13295. mm : '%d ਮਿੰਟ',
  13296. h : 'ਇੱਕ ਘੰਟਾ',
  13297. hh : '%d ਘੰਟੇ',
  13298. d : 'ਇੱਕ ਦਿਨ',
  13299. dd : '%d ਦਿਨ',
  13300. M : 'ਇੱਕ ਮਹੀਨਾ',
  13301. MM : '%d ਮਹੀਨੇ',
  13302. y : 'ਇੱਕ ਸਾਲ',
  13303. yy : '%d ਸਾਲ'
  13304. },
  13305. preparse: function (string) {
  13306. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13307. return numberMap[match];
  13308. });
  13309. },
  13310. postformat: function (string) {
  13311. return string.replace(/\d/g, function (match) {
  13312. return symbolMap[match];
  13313. });
  13314. },
  13315. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13316. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13317. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13318. meridiemHour : function (hour, meridiem) {
  13319. if (hour === 12) {
  13320. hour = 0;
  13321. }
  13322. if (meridiem === 'ਰਾਤ') {
  13323. return hour < 4 ? hour : hour + 12;
  13324. } else if (meridiem === 'ਸਵੇਰ') {
  13325. return hour;
  13326. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13327. return hour >= 10 ? hour : hour + 12;
  13328. } else if (meridiem === 'ਸ਼ਾਮ') {
  13329. return hour + 12;
  13330. }
  13331. },
  13332. meridiem : function (hour, minute, isLower) {
  13333. if (hour < 4) {
  13334. return 'ਰਾਤ';
  13335. } else if (hour < 10) {
  13336. return 'ਸਵੇਰ';
  13337. } else if (hour < 17) {
  13338. return 'ਦੁਪਹਿਰ';
  13339. } else if (hour < 20) {
  13340. return 'ਸ਼ਾਮ';
  13341. } else {
  13342. return 'ਰਾਤ';
  13343. }
  13344. },
  13345. week : {
  13346. dow : 0, // Sunday is the first day of the week.
  13347. doy : 6 // The week that contains Jan 1st is the first week of the year.
  13348. }
  13349. });
  13350. return paIn;
  13351. })));
  13352. /***/ }),
  13353. /***/ "./node_modules/moment/locale/pl.js":
  13354. /*!******************************************!*\
  13355. !*** ./node_modules/moment/locale/pl.js ***!
  13356. \******************************************/
  13357. /*! no static exports found */
  13358. /***/ (function(module, exports, __webpack_require__) {
  13359. //! moment.js locale configuration
  13360. //! locale : Polish [pl]
  13361. //! author : Rafal Hirsz : https://github.com/evoL
  13362. ;(function (global, factory) {
  13363. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13364. undefined
  13365. }(this, (function (moment) { 'use strict';
  13366. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
  13367. var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  13368. function plural(n) {
  13369. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  13370. }
  13371. function translate(number, withoutSuffix, key) {
  13372. var result = number + ' ';
  13373. switch (key) {
  13374. case 'm':
  13375. return withoutSuffix ? 'minuta' : 'minutę';
  13376. case 'mm':
  13377. return result + (plural(number) ? 'minuty' : 'minut');
  13378. case 'h':
  13379. return withoutSuffix ? 'godzina' : 'godzinę';
  13380. case 'hh':
  13381. return result + (plural(number) ? 'godziny' : 'godzin');
  13382. case 'MM':
  13383. return result + (plural(number) ? 'miesiące' : 'miesięcy');
  13384. case 'yy':
  13385. return result + (plural(number) ? 'lata' : 'lat');
  13386. }
  13387. }
  13388. var pl = moment.defineLocale('pl', {
  13389. months : function (momentToFormat, format) {
  13390. if (!momentToFormat) {
  13391. return monthsNominative;
  13392. } else if (format === '') {
  13393. // Hack: if format empty we know this is used to generate
  13394. // RegExp by moment. Give then back both valid forms of months
  13395. // in RegExp ready format.
  13396. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  13397. } else if (/D MMMM/.test(format)) {
  13398. return monthsSubjective[momentToFormat.month()];
  13399. } else {
  13400. return monthsNominative[momentToFormat.month()];
  13401. }
  13402. },
  13403. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13404. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  13405. weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13406. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13407. longDateFormat : {
  13408. LT : 'HH:mm',
  13409. LTS : 'HH:mm:ss',
  13410. L : 'DD.MM.YYYY',
  13411. LL : 'D MMMM YYYY',
  13412. LLL : 'D MMMM YYYY HH:mm',
  13413. LLLL : 'dddd, D MMMM YYYY HH:mm'
  13414. },
  13415. calendar : {
  13416. sameDay: '[Dziś o] LT',
  13417. nextDay: '[Jutro o] LT',
  13418. nextWeek: function () {
  13419. switch (this.day()) {
  13420. case 0:
  13421. return '[W niedzielę o] LT';
  13422. case 2:
  13423. return '[We wtorek o] LT';
  13424. case 3:
  13425. return '[W środę o] LT';
  13426. case 6:
  13427. return '[W sobotę o] LT';
  13428. default:
  13429. return '[W] dddd [o] LT';
  13430. }
  13431. },
  13432. lastDay: '[Wczoraj o] LT',
  13433. lastWeek: function () {
  13434. switch (this.day()) {
  13435. case 0:
  13436. return '[W zeszłą niedzielę o] LT';
  13437. case 3:
  13438. return '[W zeszłą środę o] LT';
  13439. case 6:
  13440. return '[W zeszłą sobotę o] LT';
  13441. default:
  13442. return '[W zeszły] dddd [o] LT';
  13443. }
  13444. },
  13445. sameElse: 'L'
  13446. },
  13447. relativeTime : {
  13448. future : 'za %s',
  13449. past : '%s temu',
  13450. s : 'kilka sekund',
  13451. m : translate,
  13452. mm : translate,
  13453. h : translate,
  13454. hh : translate,
  13455. d : '1 dzień',
  13456. dd : '%d dni',
  13457. M : 'miesiąc',
  13458. MM : translate,
  13459. y : 'rok',
  13460. yy : translate
  13461. },
  13462. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13463. ordinal : '%d.',
  13464. week : {
  13465. dow : 1, // Monday is the first day of the week.
  13466. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13467. }
  13468. });
  13469. return pl;
  13470. })));
  13471. /***/ }),
  13472. /***/ "./node_modules/moment/locale/pt-br.js":
  13473. /*!*********************************************!*\
  13474. !*** ./node_modules/moment/locale/pt-br.js ***!
  13475. \*********************************************/
  13476. /*! no static exports found */
  13477. /***/ (function(module, exports, __webpack_require__) {
  13478. //! moment.js locale configuration
  13479. //! locale : Portuguese (Brazil) [pt-br]
  13480. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  13481. ;(function (global, factory) {
  13482. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13483. undefined
  13484. }(this, (function (moment) { 'use strict';
  13485. var ptBr = moment.defineLocale('pt-br', {
  13486. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  13487. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13488. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  13489. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13490. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13491. weekdaysParseExact : true,
  13492. longDateFormat : {
  13493. LT : 'HH:mm',
  13494. LTS : 'HH:mm:ss',
  13495. L : 'DD/MM/YYYY',
  13496. LL : 'D [de] MMMM [de] YYYY',
  13497. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  13498. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  13499. },
  13500. calendar : {
  13501. sameDay: '[Hoje às] LT',
  13502. nextDay: '[Amanhã às] LT',
  13503. nextWeek: 'dddd [às] LT',
  13504. lastDay: '[Ontem às] LT',
  13505. lastWeek: function () {
  13506. return (this.day() === 0 || this.day() === 6) ?
  13507. '[Último] dddd [às] LT' : // Saturday + Sunday
  13508. '[Última] dddd [às] LT'; // Monday - Friday
  13509. },
  13510. sameElse: 'L'
  13511. },
  13512. relativeTime : {
  13513. future : 'em %s',
  13514. past : '%s atrás',
  13515. s : 'poucos segundos',
  13516. ss : '%d segundos',
  13517. m : 'um minuto',
  13518. mm : '%d minutos',
  13519. h : 'uma hora',
  13520. hh : '%d horas',
  13521. d : 'um dia',
  13522. dd : '%d dias',
  13523. M : 'um mês',
  13524. MM : '%d meses',
  13525. y : 'um ano',
  13526. yy : '%d anos'
  13527. },
  13528. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13529. ordinal : '%dº'
  13530. });
  13531. return ptBr;
  13532. })));
  13533. /***/ }),
  13534. /***/ "./node_modules/moment/locale/pt.js":
  13535. /*!******************************************!*\
  13536. !*** ./node_modules/moment/locale/pt.js ***!
  13537. \******************************************/
  13538. /*! no static exports found */
  13539. /***/ (function(module, exports, __webpack_require__) {
  13540. //! moment.js locale configuration
  13541. //! locale : Portuguese [pt]
  13542. //! author : Jefferson : https://github.com/jalex79
  13543. ;(function (global, factory) {
  13544. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13545. undefined
  13546. }(this, (function (moment) { 'use strict';
  13547. var pt = moment.defineLocale('pt', {
  13548. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  13549. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13550. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  13551. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13552. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13553. weekdaysParseExact : true,
  13554. longDateFormat : {
  13555. LT : 'HH:mm',
  13556. LTS : 'HH:mm:ss',
  13557. L : 'DD/MM/YYYY',
  13558. LL : 'D [de] MMMM [de] YYYY',
  13559. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  13560. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  13561. },
  13562. calendar : {
  13563. sameDay: '[Hoje às] LT',
  13564. nextDay: '[Amanhã às] LT',
  13565. nextWeek: 'dddd [às] LT',
  13566. lastDay: '[Ontem às] LT',
  13567. lastWeek: function () {
  13568. return (this.day() === 0 || this.day() === 6) ?
  13569. '[Último] dddd [às] LT' : // Saturday + Sunday
  13570. '[Última] dddd [às] LT'; // Monday - Friday
  13571. },
  13572. sameElse: 'L'
  13573. },
  13574. relativeTime : {
  13575. future : 'em %s',
  13576. past : 'há %s',
  13577. s : 'segundos',
  13578. m : 'um minuto',
  13579. mm : '%d minutos',
  13580. h : 'uma hora',
  13581. hh : '%d horas',
  13582. d : 'um dia',
  13583. dd : '%d dias',
  13584. M : 'um mês',
  13585. MM : '%d meses',
  13586. y : 'um ano',
  13587. yy : '%d anos'
  13588. },
  13589. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13590. ordinal : '%dº',
  13591. week : {
  13592. dow : 1, // Monday is the first day of the week.
  13593. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13594. }
  13595. });
  13596. return pt;
  13597. })));
  13598. /***/ }),
  13599. /***/ "./node_modules/moment/locale/ro.js":
  13600. /*!******************************************!*\
  13601. !*** ./node_modules/moment/locale/ro.js ***!
  13602. \******************************************/
  13603. /*! no static exports found */
  13604. /***/ (function(module, exports, __webpack_require__) {
  13605. //! moment.js locale configuration
  13606. //! locale : Romanian [ro]
  13607. //! author : Vlad Gurdiga : https://github.com/gurdiga
  13608. //! author : Valentin Agachi : https://github.com/avaly
  13609. ;(function (global, factory) {
  13610. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13611. undefined
  13612. }(this, (function (moment) { 'use strict';
  13613. function relativeTimeWithPlural(number, withoutSuffix, key) {
  13614. var format = {
  13615. 'mm': 'minute',
  13616. 'hh': 'ore',
  13617. 'dd': 'zile',
  13618. 'MM': 'luni',
  13619. 'yy': 'ani'
  13620. },
  13621. separator = ' ';
  13622. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13623. separator = ' de ';
  13624. }
  13625. return number + separator + format[key];
  13626. }
  13627. var ro = moment.defineLocale('ro', {
  13628. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  13629. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  13630. monthsParseExact: true,
  13631. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13632. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13633. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13634. longDateFormat : {
  13635. LT : 'H:mm',
  13636. LTS : 'H:mm:ss',
  13637. L : 'DD.MM.YYYY',
  13638. LL : 'D MMMM YYYY',
  13639. LLL : 'D MMMM YYYY H:mm',
  13640. LLLL : 'dddd, D MMMM YYYY H:mm'
  13641. },
  13642. calendar : {
  13643. sameDay: '[azi la] LT',
  13644. nextDay: '[mâine la] LT',
  13645. nextWeek: 'dddd [la] LT',
  13646. lastDay: '[ieri la] LT',
  13647. lastWeek: '[fosta] dddd [la] LT',
  13648. sameElse: 'L'
  13649. },
  13650. relativeTime : {
  13651. future : 'peste %s',
  13652. past : '%s în urmă',
  13653. s : 'câteva secunde',
  13654. m : 'un minut',
  13655. mm : relativeTimeWithPlural,
  13656. h : 'o oră',
  13657. hh : relativeTimeWithPlural,
  13658. d : 'o zi',
  13659. dd : relativeTimeWithPlural,
  13660. M : 'o lună',
  13661. MM : relativeTimeWithPlural,
  13662. y : 'un an',
  13663. yy : relativeTimeWithPlural
  13664. },
  13665. week : {
  13666. dow : 1, // Monday is the first day of the week.
  13667. doy : 7 // The week that contains Jan 1st is the first week of the year.
  13668. }
  13669. });
  13670. return ro;
  13671. })));
  13672. /***/ }),
  13673. /***/ "./node_modules/moment/locale/ru.js":
  13674. /*!******************************************!*\
  13675. !*** ./node_modules/moment/locale/ru.js ***!
  13676. \******************************************/
  13677. /*! no static exports found */
  13678. /***/ (function(module, exports, __webpack_require__) {
  13679. //! moment.js locale configuration
  13680. //! locale : Russian [ru]
  13681. //! author : Viktorminator : https://github.com/Viktorminator
  13682. //! Author : Menelion Elensúle : https://github.com/Oire
  13683. //! author : Коренберг Марк : https://github.com/socketpair
  13684. ;(function (global, factory) {
  13685. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13686. undefined
  13687. }(this, (function (moment) { 'use strict';
  13688. function plural(word, num) {
  13689. var forms = word.split('_');
  13690. 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]);
  13691. }
  13692. function relativeTimeWithPlural(number, withoutSuffix, key) {
  13693. var format = {
  13694. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13695. 'hh': 'час_часа_часов',
  13696. 'dd': 'день_дня_дней',
  13697. 'MM': 'месяц_месяца_месяцев',
  13698. 'yy': 'год_года_лет'
  13699. };
  13700. if (key === 'm') {
  13701. return withoutSuffix ? 'минута' : 'минуту';
  13702. }
  13703. else {
  13704. return number + ' ' + plural(format[key], +number);
  13705. }
  13706. }
  13707. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  13708. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13709. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13710. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13711. var ru = moment.defineLocale('ru', {
  13712. months : {
  13713. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  13714. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  13715. },
  13716. monthsShort : {
  13717. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  13718. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  13719. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  13720. },
  13721. weekdays : {
  13722. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  13723. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  13724. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  13725. },
  13726. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13727. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13728. monthsParse : monthsParse,
  13729. longMonthsParse : monthsParse,
  13730. shortMonthsParse : monthsParse,
  13731. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13732. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13733. // копия предыдущего
  13734. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13735. // полные названия с падежами
  13736. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13737. // Выражение, которое соотвествует только сокращённым формам
  13738. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13739. longDateFormat : {
  13740. LT : 'HH:mm',
  13741. LTS : 'HH:mm:ss',
  13742. L : 'DD.MM.YYYY',
  13743. LL : 'D MMMM YYYY г.',
  13744. LLL : 'D MMMM YYYY г., HH:mm',
  13745. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  13746. },
  13747. calendar : {
  13748. sameDay: '[Сегодня в] LT',
  13749. nextDay: '[Завтра в] LT',
  13750. lastDay: '[Вчера в] LT',
  13751. nextWeek: function (now) {
  13752. if (now.week() !== this.week()) {
  13753. switch (this.day()) {
  13754. case 0:
  13755. return '[В следующее] dddd [в] LT';
  13756. case 1:
  13757. case 2:
  13758. case 4:
  13759. return '[В следующий] dddd [в] LT';
  13760. case 3:
  13761. case 5:
  13762. case 6:
  13763. return '[В следующую] dddd [в] LT';
  13764. }
  13765. } else {
  13766. if (this.day() === 2) {
  13767. return '[Во] dddd [в] LT';
  13768. } else {
  13769. return '[В] dddd [в] LT';
  13770. }
  13771. }
  13772. },
  13773. lastWeek: function (now) {
  13774. if (now.week() !== this.week()) {
  13775. switch (this.day()) {
  13776. case 0:
  13777. return '[В прошлое] dddd [в] LT';
  13778. case 1:
  13779. case 2:
  13780. case 4:
  13781. return '[В прошлый] dddd [в] LT';
  13782. case 3:
  13783. case 5:
  13784. case 6:
  13785. return '[В прошлую] dddd [в] LT';
  13786. }
  13787. } else {
  13788. if (this.day() === 2) {
  13789. return '[Во] dddd [в] LT';
  13790. } else {
  13791. return '[В] dddd [в] LT';
  13792. }
  13793. }
  13794. },
  13795. sameElse: 'L'
  13796. },
  13797. relativeTime : {
  13798. future : 'через %s',
  13799. past : '%s назад',
  13800. s : 'несколько секунд',
  13801. m : relativeTimeWithPlural,
  13802. mm : relativeTimeWithPlural,
  13803. h : 'час',
  13804. hh : relativeTimeWithPlural,
  13805. d : 'день',
  13806. dd : relativeTimeWithPlural,
  13807. M : 'месяц',
  13808. MM : relativeTimeWithPlural,
  13809. y : 'год',
  13810. yy : relativeTimeWithPlural
  13811. },
  13812. meridiemParse: /ночи|утра|дня|вечера/i,
  13813. isPM : function (input) {
  13814. return /^(дня|вечера)$/.test(input);
  13815. },
  13816. meridiem : function (hour, minute, isLower) {
  13817. if (hour < 4) {
  13818. return 'ночи';
  13819. } else if (hour < 12) {
  13820. return 'утра';
  13821. } else if (hour < 17) {
  13822. return 'дня';
  13823. } else {
  13824. return 'вечера';
  13825. }
  13826. },
  13827. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  13828. ordinal: function (number, period) {
  13829. switch (period) {
  13830. case 'M':
  13831. case 'd':
  13832. case 'DDD':
  13833. return number + '-й';
  13834. case 'D':
  13835. return number + '-го';
  13836. case 'w':
  13837. case 'W':
  13838. return number + '-я';
  13839. default:
  13840. return number;
  13841. }
  13842. },
  13843. week : {
  13844. dow : 1, // Monday is the first day of the week.
  13845. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13846. }
  13847. });
  13848. return ru;
  13849. })));
  13850. /***/ }),
  13851. /***/ "./node_modules/moment/locale/sd.js":
  13852. /*!******************************************!*\
  13853. !*** ./node_modules/moment/locale/sd.js ***!
  13854. \******************************************/
  13855. /*! no static exports found */
  13856. /***/ (function(module, exports, __webpack_require__) {
  13857. //! moment.js locale configuration
  13858. //! locale : Sindhi [sd]
  13859. //! author : Narain Sagar : https://github.com/narainsagar
  13860. ;(function (global, factory) {
  13861. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13862. undefined
  13863. }(this, (function (moment) { 'use strict';
  13864. var months = [
  13865. 'جنوري',
  13866. 'فيبروري',
  13867. 'مارچ',
  13868. 'اپريل',
  13869. 'مئي',
  13870. 'جون',
  13871. 'جولاءِ',
  13872. 'آگسٽ',
  13873. 'سيپٽمبر',
  13874. 'آڪٽوبر',
  13875. 'نومبر',
  13876. 'ڊسمبر'
  13877. ];
  13878. var days = [
  13879. 'آچر',
  13880. 'سومر',
  13881. 'اڱارو',
  13882. 'اربع',
  13883. 'خميس',
  13884. 'جمع',
  13885. 'ڇنڇر'
  13886. ];
  13887. var sd = moment.defineLocale('sd', {
  13888. months : months,
  13889. monthsShort : months,
  13890. weekdays : days,
  13891. weekdaysShort : days,
  13892. weekdaysMin : days,
  13893. longDateFormat : {
  13894. LT : 'HH:mm',
  13895. LTS : 'HH:mm:ss',
  13896. L : 'DD/MM/YYYY',
  13897. LL : 'D MMMM YYYY',
  13898. LLL : 'D MMMM YYYY HH:mm',
  13899. LLLL : 'dddd، D MMMM YYYY HH:mm'
  13900. },
  13901. meridiemParse: /صبح|شام/,
  13902. isPM : function (input) {
  13903. return 'شام' === input;
  13904. },
  13905. meridiem : function (hour, minute, isLower) {
  13906. if (hour < 12) {
  13907. return 'صبح';
  13908. }
  13909. return 'شام';
  13910. },
  13911. calendar : {
  13912. sameDay : '[اڄ] LT',
  13913. nextDay : '[سڀاڻي] LT',
  13914. nextWeek : 'dddd [اڳين هفتي تي] LT',
  13915. lastDay : '[ڪالهه] LT',
  13916. lastWeek : '[گزريل هفتي] dddd [تي] LT',
  13917. sameElse : 'L'
  13918. },
  13919. relativeTime : {
  13920. future : '%s پوء',
  13921. past : '%s اڳ',
  13922. s : 'چند سيڪنڊ',
  13923. m : 'هڪ منٽ',
  13924. mm : '%d منٽ',
  13925. h : 'هڪ ڪلاڪ',
  13926. hh : '%d ڪلاڪ',
  13927. d : 'هڪ ڏينهن',
  13928. dd : '%d ڏينهن',
  13929. M : 'هڪ مهينو',
  13930. MM : '%d مهينا',
  13931. y : 'هڪ سال',
  13932. yy : '%d سال'
  13933. },
  13934. preparse: function (string) {
  13935. return string.replace(/،/g, ',');
  13936. },
  13937. postformat: function (string) {
  13938. return string.replace(/,/g, '،');
  13939. },
  13940. week : {
  13941. dow : 1, // Monday is the first day of the week.
  13942. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13943. }
  13944. });
  13945. return sd;
  13946. })));
  13947. /***/ }),
  13948. /***/ "./node_modules/moment/locale/se.js":
  13949. /*!******************************************!*\
  13950. !*** ./node_modules/moment/locale/se.js ***!
  13951. \******************************************/
  13952. /*! no static exports found */
  13953. /***/ (function(module, exports, __webpack_require__) {
  13954. //! moment.js locale configuration
  13955. //! locale : Northern Sami [se]
  13956. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  13957. ;(function (global, factory) {
  13958. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13959. undefined
  13960. }(this, (function (moment) { 'use strict';
  13961. var se = moment.defineLocale('se', {
  13962. 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('_'),
  13963. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  13964. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  13965. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  13966. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  13967. longDateFormat : {
  13968. LT : 'HH:mm',
  13969. LTS : 'HH:mm:ss',
  13970. L : 'DD.MM.YYYY',
  13971. LL : 'MMMM D. [b.] YYYY',
  13972. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  13973. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  13974. },
  13975. calendar : {
  13976. sameDay: '[otne ti] LT',
  13977. nextDay: '[ihttin ti] LT',
  13978. nextWeek: 'dddd [ti] LT',
  13979. lastDay: '[ikte ti] LT',
  13980. lastWeek: '[ovddit] dddd [ti] LT',
  13981. sameElse: 'L'
  13982. },
  13983. relativeTime : {
  13984. future : '%s geažes',
  13985. past : 'maŋit %s',
  13986. s : 'moadde sekunddat',
  13987. m : 'okta minuhta',
  13988. mm : '%d minuhtat',
  13989. h : 'okta diimmu',
  13990. hh : '%d diimmut',
  13991. d : 'okta beaivi',
  13992. dd : '%d beaivvit',
  13993. M : 'okta mánnu',
  13994. MM : '%d mánut',
  13995. y : 'okta jahki',
  13996. yy : '%d jagit'
  13997. },
  13998. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13999. ordinal : '%d.',
  14000. week : {
  14001. dow : 1, // Monday is the first day of the week.
  14002. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14003. }
  14004. });
  14005. return se;
  14006. })));
  14007. /***/ }),
  14008. /***/ "./node_modules/moment/locale/si.js":
  14009. /*!******************************************!*\
  14010. !*** ./node_modules/moment/locale/si.js ***!
  14011. \******************************************/
  14012. /*! no static exports found */
  14013. /***/ (function(module, exports, __webpack_require__) {
  14014. //! moment.js locale configuration
  14015. //! locale : Sinhalese [si]
  14016. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  14017. ;(function (global, factory) {
  14018. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14019. undefined
  14020. }(this, (function (moment) { 'use strict';
  14021. /*jshint -W100*/
  14022. var si = moment.defineLocale('si', {
  14023. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  14024. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  14025. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  14026. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  14027. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  14028. weekdaysParseExact : true,
  14029. longDateFormat : {
  14030. LT : 'a h:mm',
  14031. LTS : 'a h:mm:ss',
  14032. L : 'YYYY/MM/DD',
  14033. LL : 'YYYY MMMM D',
  14034. LLL : 'YYYY MMMM D, a h:mm',
  14035. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  14036. },
  14037. calendar : {
  14038. sameDay : '[අද] LT[ට]',
  14039. nextDay : '[හෙට] LT[ට]',
  14040. nextWeek : 'dddd LT[ට]',
  14041. lastDay : '[ඊයේ] LT[ට]',
  14042. lastWeek : '[පසුගිය] dddd LT[ට]',
  14043. sameElse : 'L'
  14044. },
  14045. relativeTime : {
  14046. future : '%sකින්',
  14047. past : '%sකට පෙර',
  14048. s : 'තත්පර කිහිපය',
  14049. m : 'මිනිත්තුව',
  14050. mm : 'මිනිත්තු %d',
  14051. h : 'පැය',
  14052. hh : 'පැය %d',
  14053. d : 'දිනය',
  14054. dd : 'දින %d',
  14055. M : 'මාසය',
  14056. MM : 'මාස %d',
  14057. y : 'වසර',
  14058. yy : 'වසර %d'
  14059. },
  14060. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  14061. ordinal : function (number) {
  14062. return number + ' වැනි';
  14063. },
  14064. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  14065. isPM : function (input) {
  14066. return input === 'ප.ව.' || input === 'පස් වරු';
  14067. },
  14068. meridiem : function (hours, minutes, isLower) {
  14069. if (hours > 11) {
  14070. return isLower ? 'ප.ව.' : 'පස් වරු';
  14071. } else {
  14072. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  14073. }
  14074. }
  14075. });
  14076. return si;
  14077. })));
  14078. /***/ }),
  14079. /***/ "./node_modules/moment/locale/sk.js":
  14080. /*!******************************************!*\
  14081. !*** ./node_modules/moment/locale/sk.js ***!
  14082. \******************************************/
  14083. /*! no static exports found */
  14084. /***/ (function(module, exports, __webpack_require__) {
  14085. //! moment.js locale configuration
  14086. //! locale : Slovak [sk]
  14087. //! author : Martin Minka : https://github.com/k2s
  14088. //! based on work of petrbela : https://github.com/petrbela
  14089. ;(function (global, factory) {
  14090. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14091. undefined
  14092. }(this, (function (moment) { 'use strict';
  14093. var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
  14094. var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  14095. function plural(n) {
  14096. return (n > 1) && (n < 5);
  14097. }
  14098. function translate(number, withoutSuffix, key, isFuture) {
  14099. var result = number + ' ';
  14100. switch (key) {
  14101. case 's': // a few seconds / in a few seconds / a few seconds ago
  14102. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  14103. case 'm': // a minute / in a minute / a minute ago
  14104. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  14105. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  14106. if (withoutSuffix || isFuture) {
  14107. return result + (plural(number) ? 'minúty' : 'minút');
  14108. } else {
  14109. return result + 'minútami';
  14110. }
  14111. break;
  14112. case 'h': // an hour / in an hour / an hour ago
  14113. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  14114. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  14115. if (withoutSuffix || isFuture) {
  14116. return result + (plural(number) ? 'hodiny' : 'hodín');
  14117. } else {
  14118. return result + 'hodinami';
  14119. }
  14120. break;
  14121. case 'd': // a day / in a day / a day ago
  14122. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  14123. case 'dd': // 9 days / in 9 days / 9 days ago
  14124. if (withoutSuffix || isFuture) {
  14125. return result + (plural(number) ? 'dni' : 'dní');
  14126. } else {
  14127. return result + 'dňami';
  14128. }
  14129. break;
  14130. case 'M': // a month / in a month / a month ago
  14131. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  14132. case 'MM': // 9 months / in 9 months / 9 months ago
  14133. if (withoutSuffix || isFuture) {
  14134. return result + (plural(number) ? 'mesiace' : 'mesiacov');
  14135. } else {
  14136. return result + 'mesiacmi';
  14137. }
  14138. break;
  14139. case 'y': // a year / in a year / a year ago
  14140. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  14141. case 'yy': // 9 years / in 9 years / 9 years ago
  14142. if (withoutSuffix || isFuture) {
  14143. return result + (plural(number) ? 'roky' : 'rokov');
  14144. } else {
  14145. return result + 'rokmi';
  14146. }
  14147. break;
  14148. }
  14149. }
  14150. var sk = moment.defineLocale('sk', {
  14151. months : months,
  14152. monthsShort : monthsShort,
  14153. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  14154. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  14155. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  14156. longDateFormat : {
  14157. LT: 'H:mm',
  14158. LTS : 'H:mm:ss',
  14159. L : 'DD.MM.YYYY',
  14160. LL : 'D. MMMM YYYY',
  14161. LLL : 'D. MMMM YYYY H:mm',
  14162. LLLL : 'dddd D. MMMM YYYY H:mm'
  14163. },
  14164. calendar : {
  14165. sameDay: '[dnes o] LT',
  14166. nextDay: '[zajtra o] LT',
  14167. nextWeek: function () {
  14168. switch (this.day()) {
  14169. case 0:
  14170. return '[v nedeľu o] LT';
  14171. case 1:
  14172. case 2:
  14173. return '[v] dddd [o] LT';
  14174. case 3:
  14175. return '[v stredu o] LT';
  14176. case 4:
  14177. return '[vo štvrtok o] LT';
  14178. case 5:
  14179. return '[v piatok o] LT';
  14180. case 6:
  14181. return '[v sobotu o] LT';
  14182. }
  14183. },
  14184. lastDay: '[včera o] LT',
  14185. lastWeek: function () {
  14186. switch (this.day()) {
  14187. case 0:
  14188. return '[minulú nedeľu o] LT';
  14189. case 1:
  14190. case 2:
  14191. return '[minulý] dddd [o] LT';
  14192. case 3:
  14193. return '[minulú stredu o] LT';
  14194. case 4:
  14195. case 5:
  14196. return '[minulý] dddd [o] LT';
  14197. case 6:
  14198. return '[minulú sobotu o] LT';
  14199. }
  14200. },
  14201. sameElse: 'L'
  14202. },
  14203. relativeTime : {
  14204. future : 'za %s',
  14205. past : 'pred %s',
  14206. s : translate,
  14207. m : translate,
  14208. mm : translate,
  14209. h : translate,
  14210. hh : translate,
  14211. d : translate,
  14212. dd : translate,
  14213. M : translate,
  14214. MM : translate,
  14215. y : translate,
  14216. yy : translate
  14217. },
  14218. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14219. ordinal : '%d.',
  14220. week : {
  14221. dow : 1, // Monday is the first day of the week.
  14222. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14223. }
  14224. });
  14225. return sk;
  14226. })));
  14227. /***/ }),
  14228. /***/ "./node_modules/moment/locale/sl.js":
  14229. /*!******************************************!*\
  14230. !*** ./node_modules/moment/locale/sl.js ***!
  14231. \******************************************/
  14232. /*! no static exports found */
  14233. /***/ (function(module, exports, __webpack_require__) {
  14234. //! moment.js locale configuration
  14235. //! locale : Slovenian [sl]
  14236. //! author : Robert Sedovšek : https://github.com/sedovsek
  14237. ;(function (global, factory) {
  14238. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14239. undefined
  14240. }(this, (function (moment) { 'use strict';
  14241. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  14242. var result = number + ' ';
  14243. switch (key) {
  14244. case 's':
  14245. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  14246. case 'm':
  14247. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14248. case 'mm':
  14249. if (number === 1) {
  14250. result += withoutSuffix ? 'minuta' : 'minuto';
  14251. } else if (number === 2) {
  14252. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14253. } else if (number < 5) {
  14254. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14255. } else {
  14256. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14257. }
  14258. return result;
  14259. case 'h':
  14260. return withoutSuffix ? 'ena ura' : 'eno uro';
  14261. case 'hh':
  14262. if (number === 1) {
  14263. result += withoutSuffix ? 'ura' : 'uro';
  14264. } else if (number === 2) {
  14265. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14266. } else if (number < 5) {
  14267. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14268. } else {
  14269. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14270. }
  14271. return result;
  14272. case 'd':
  14273. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14274. case 'dd':
  14275. if (number === 1) {
  14276. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14277. } else if (number === 2) {
  14278. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14279. } else {
  14280. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14281. }
  14282. return result;
  14283. case 'M':
  14284. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14285. case 'MM':
  14286. if (number === 1) {
  14287. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14288. } else if (number === 2) {
  14289. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14290. } else if (number < 5) {
  14291. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14292. } else {
  14293. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14294. }
  14295. return result;
  14296. case 'y':
  14297. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14298. case 'yy':
  14299. if (number === 1) {
  14300. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14301. } else if (number === 2) {
  14302. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14303. } else if (number < 5) {
  14304. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14305. } else {
  14306. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14307. }
  14308. return result;
  14309. }
  14310. }
  14311. var sl = moment.defineLocale('sl', {
  14312. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  14313. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  14314. monthsParseExact: true,
  14315. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14316. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14317. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  14318. weekdaysParseExact : true,
  14319. longDateFormat : {
  14320. LT : 'H:mm',
  14321. LTS : 'H:mm:ss',
  14322. L : 'DD.MM.YYYY',
  14323. LL : 'D. MMMM YYYY',
  14324. LLL : 'D. MMMM YYYY H:mm',
  14325. LLLL : 'dddd, D. MMMM YYYY H:mm'
  14326. },
  14327. calendar : {
  14328. sameDay : '[danes ob] LT',
  14329. nextDay : '[jutri ob] LT',
  14330. nextWeek : function () {
  14331. switch (this.day()) {
  14332. case 0:
  14333. return '[v] [nedeljo] [ob] LT';
  14334. case 3:
  14335. return '[v] [sredo] [ob] LT';
  14336. case 6:
  14337. return '[v] [soboto] [ob] LT';
  14338. case 1:
  14339. case 2:
  14340. case 4:
  14341. case 5:
  14342. return '[v] dddd [ob] LT';
  14343. }
  14344. },
  14345. lastDay : '[včeraj ob] LT',
  14346. lastWeek : function () {
  14347. switch (this.day()) {
  14348. case 0:
  14349. return '[prejšnjo] [nedeljo] [ob] LT';
  14350. case 3:
  14351. return '[prejšnjo] [sredo] [ob] LT';
  14352. case 6:
  14353. return '[prejšnjo] [soboto] [ob] LT';
  14354. case 1:
  14355. case 2:
  14356. case 4:
  14357. case 5:
  14358. return '[prejšnji] dddd [ob] LT';
  14359. }
  14360. },
  14361. sameElse : 'L'
  14362. },
  14363. relativeTime : {
  14364. future : 'čez %s',
  14365. past : 'pred %s',
  14366. s : processRelativeTime,
  14367. m : processRelativeTime,
  14368. mm : processRelativeTime,
  14369. h : processRelativeTime,
  14370. hh : processRelativeTime,
  14371. d : processRelativeTime,
  14372. dd : processRelativeTime,
  14373. M : processRelativeTime,
  14374. MM : processRelativeTime,
  14375. y : processRelativeTime,
  14376. yy : processRelativeTime
  14377. },
  14378. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14379. ordinal : '%d.',
  14380. week : {
  14381. dow : 1, // Monday is the first day of the week.
  14382. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14383. }
  14384. });
  14385. return sl;
  14386. })));
  14387. /***/ }),
  14388. /***/ "./node_modules/moment/locale/sq.js":
  14389. /*!******************************************!*\
  14390. !*** ./node_modules/moment/locale/sq.js ***!
  14391. \******************************************/
  14392. /*! no static exports found */
  14393. /***/ (function(module, exports, __webpack_require__) {
  14394. //! moment.js locale configuration
  14395. //! locale : Albanian [sq]
  14396. //! author : Flakërim Ismani : https://github.com/flakerimi
  14397. //! author : Menelion Elensúle : https://github.com/Oire
  14398. //! author : Oerd Cukalla : https://github.com/oerd
  14399. ;(function (global, factory) {
  14400. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14401. undefined
  14402. }(this, (function (moment) { 'use strict';
  14403. var sq = moment.defineLocale('sq', {
  14404. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  14405. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14406. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  14407. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14408. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14409. weekdaysParseExact : true,
  14410. meridiemParse: /PD|MD/,
  14411. isPM: function (input) {
  14412. return input.charAt(0) === 'M';
  14413. },
  14414. meridiem : function (hours, minutes, isLower) {
  14415. return hours < 12 ? 'PD' : 'MD';
  14416. },
  14417. longDateFormat : {
  14418. LT : 'HH:mm',
  14419. LTS : 'HH:mm:ss',
  14420. L : 'DD/MM/YYYY',
  14421. LL : 'D MMMM YYYY',
  14422. LLL : 'D MMMM YYYY HH:mm',
  14423. LLLL : 'dddd, D MMMM YYYY HH:mm'
  14424. },
  14425. calendar : {
  14426. sameDay : '[Sot në] LT',
  14427. nextDay : '[Nesër në] LT',
  14428. nextWeek : 'dddd [në] LT',
  14429. lastDay : '[Dje në] LT',
  14430. lastWeek : 'dddd [e kaluar në] LT',
  14431. sameElse : 'L'
  14432. },
  14433. relativeTime : {
  14434. future : 'në %s',
  14435. past : '%s më parë',
  14436. s : 'disa sekonda',
  14437. m : 'një minutë',
  14438. mm : '%d minuta',
  14439. h : 'një orë',
  14440. hh : '%d orë',
  14441. d : 'një ditë',
  14442. dd : '%d ditë',
  14443. M : 'një muaj',
  14444. MM : '%d muaj',
  14445. y : 'një vit',
  14446. yy : '%d vite'
  14447. },
  14448. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14449. ordinal : '%d.',
  14450. week : {
  14451. dow : 1, // Monday is the first day of the week.
  14452. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14453. }
  14454. });
  14455. return sq;
  14456. })));
  14457. /***/ }),
  14458. /***/ "./node_modules/moment/locale/sr-cyrl.js":
  14459. /*!***********************************************!*\
  14460. !*** ./node_modules/moment/locale/sr-cyrl.js ***!
  14461. \***********************************************/
  14462. /*! no static exports found */
  14463. /***/ (function(module, exports, __webpack_require__) {
  14464. //! moment.js locale configuration
  14465. //! locale : Serbian Cyrillic [sr-cyrl]
  14466. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  14467. ;(function (global, factory) {
  14468. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14469. undefined
  14470. }(this, (function (moment) { 'use strict';
  14471. var translator = {
  14472. words: { //Different grammatical cases
  14473. m: ['један минут', 'једне минуте'],
  14474. mm: ['минут', 'минуте', 'минута'],
  14475. h: ['један сат', 'једног сата'],
  14476. hh: ['сат', 'сата', 'сати'],
  14477. dd: ['дан', 'дана', 'дана'],
  14478. MM: ['месец', 'месеца', 'месеци'],
  14479. yy: ['година', 'године', 'година']
  14480. },
  14481. correctGrammaticalCase: function (number, wordKey) {
  14482. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  14483. },
  14484. translate: function (number, withoutSuffix, key) {
  14485. var wordKey = translator.words[key];
  14486. if (key.length === 1) {
  14487. return withoutSuffix ? wordKey[0] : wordKey[1];
  14488. } else {
  14489. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  14490. }
  14491. }
  14492. };
  14493. var srCyrl = moment.defineLocale('sr-cyrl', {
  14494. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  14495. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  14496. monthsParseExact: true,
  14497. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14498. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14499. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14500. weekdaysParseExact : true,
  14501. longDateFormat: {
  14502. LT: 'H:mm',
  14503. LTS : 'H:mm:ss',
  14504. L: 'DD.MM.YYYY',
  14505. LL: 'D. MMMM YYYY',
  14506. LLL: 'D. MMMM YYYY H:mm',
  14507. LLLL: 'dddd, D. MMMM YYYY H:mm'
  14508. },
  14509. calendar: {
  14510. sameDay: '[данас у] LT',
  14511. nextDay: '[сутра у] LT',
  14512. nextWeek: function () {
  14513. switch (this.day()) {
  14514. case 0:
  14515. return '[у] [недељу] [у] LT';
  14516. case 3:
  14517. return '[у] [среду] [у] LT';
  14518. case 6:
  14519. return '[у] [суботу] [у] LT';
  14520. case 1:
  14521. case 2:
  14522. case 4:
  14523. case 5:
  14524. return '[у] dddd [у] LT';
  14525. }
  14526. },
  14527. lastDay : '[јуче у] LT',
  14528. lastWeek : function () {
  14529. var lastWeekDays = [
  14530. '[прошле] [недеље] [у] LT',
  14531. '[прошлог] [понедељка] [у] LT',
  14532. '[прошлог] [уторка] [у] LT',
  14533. '[прошле] [среде] [у] LT',
  14534. '[прошлог] [четвртка] [у] LT',
  14535. '[прошлог] [петка] [у] LT',
  14536. '[прошле] [суботе] [у] LT'
  14537. ];
  14538. return lastWeekDays[this.day()];
  14539. },
  14540. sameElse : 'L'
  14541. },
  14542. relativeTime : {
  14543. future : 'за %s',
  14544. past : 'пре %s',
  14545. s : 'неколико секунди',
  14546. m : translator.translate,
  14547. mm : translator.translate,
  14548. h : translator.translate,
  14549. hh : translator.translate,
  14550. d : 'дан',
  14551. dd : translator.translate,
  14552. M : 'месец',
  14553. MM : translator.translate,
  14554. y : 'годину',
  14555. yy : translator.translate
  14556. },
  14557. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14558. ordinal : '%d.',
  14559. week : {
  14560. dow : 1, // Monday is the first day of the week.
  14561. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14562. }
  14563. });
  14564. return srCyrl;
  14565. })));
  14566. /***/ }),
  14567. /***/ "./node_modules/moment/locale/sr.js":
  14568. /*!******************************************!*\
  14569. !*** ./node_modules/moment/locale/sr.js ***!
  14570. \******************************************/
  14571. /*! no static exports found */
  14572. /***/ (function(module, exports, __webpack_require__) {
  14573. //! moment.js locale configuration
  14574. //! locale : Serbian [sr]
  14575. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  14576. ;(function (global, factory) {
  14577. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14578. undefined
  14579. }(this, (function (moment) { 'use strict';
  14580. var translator = {
  14581. words: { //Different grammatical cases
  14582. m: ['jedan minut', 'jedne minute'],
  14583. mm: ['minut', 'minute', 'minuta'],
  14584. h: ['jedan sat', 'jednog sata'],
  14585. hh: ['sat', 'sata', 'sati'],
  14586. dd: ['dan', 'dana', 'dana'],
  14587. MM: ['mesec', 'meseca', 'meseci'],
  14588. yy: ['godina', 'godine', 'godina']
  14589. },
  14590. correctGrammaticalCase: function (number, wordKey) {
  14591. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  14592. },
  14593. translate: function (number, withoutSuffix, key) {
  14594. var wordKey = translator.words[key];
  14595. if (key.length === 1) {
  14596. return withoutSuffix ? wordKey[0] : wordKey[1];
  14597. } else {
  14598. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  14599. }
  14600. }
  14601. };
  14602. var sr = moment.defineLocale('sr', {
  14603. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  14604. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  14605. monthsParseExact: true,
  14606. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  14607. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14608. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14609. weekdaysParseExact : true,
  14610. longDateFormat: {
  14611. LT: 'H:mm',
  14612. LTS : 'H:mm:ss',
  14613. L: 'DD.MM.YYYY',
  14614. LL: 'D. MMMM YYYY',
  14615. LLL: 'D. MMMM YYYY H:mm',
  14616. LLLL: 'dddd, D. MMMM YYYY H:mm'
  14617. },
  14618. calendar: {
  14619. sameDay: '[danas u] LT',
  14620. nextDay: '[sutra u] LT',
  14621. nextWeek: function () {
  14622. switch (this.day()) {
  14623. case 0:
  14624. return '[u] [nedelju] [u] LT';
  14625. case 3:
  14626. return '[u] [sredu] [u] LT';
  14627. case 6:
  14628. return '[u] [subotu] [u] LT';
  14629. case 1:
  14630. case 2:
  14631. case 4:
  14632. case 5:
  14633. return '[u] dddd [u] LT';
  14634. }
  14635. },
  14636. lastDay : '[juče u] LT',
  14637. lastWeek : function () {
  14638. var lastWeekDays = [
  14639. '[prošle] [nedelje] [u] LT',
  14640. '[prošlog] [ponedeljka] [u] LT',
  14641. '[prošlog] [utorka] [u] LT',
  14642. '[prošle] [srede] [u] LT',
  14643. '[prošlog] [četvrtka] [u] LT',
  14644. '[prošlog] [petka] [u] LT',
  14645. '[prošle] [subote] [u] LT'
  14646. ];
  14647. return lastWeekDays[this.day()];
  14648. },
  14649. sameElse : 'L'
  14650. },
  14651. relativeTime : {
  14652. future : 'za %s',
  14653. past : 'pre %s',
  14654. s : 'nekoliko sekundi',
  14655. m : translator.translate,
  14656. mm : translator.translate,
  14657. h : translator.translate,
  14658. hh : translator.translate,
  14659. d : 'dan',
  14660. dd : translator.translate,
  14661. M : 'mesec',
  14662. MM : translator.translate,
  14663. y : 'godinu',
  14664. yy : translator.translate
  14665. },
  14666. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14667. ordinal : '%d.',
  14668. week : {
  14669. dow : 1, // Monday is the first day of the week.
  14670. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14671. }
  14672. });
  14673. return sr;
  14674. })));
  14675. /***/ }),
  14676. /***/ "./node_modules/moment/locale/ss.js":
  14677. /*!******************************************!*\
  14678. !*** ./node_modules/moment/locale/ss.js ***!
  14679. \******************************************/
  14680. /*! no static exports found */
  14681. /***/ (function(module, exports, __webpack_require__) {
  14682. //! moment.js locale configuration
  14683. //! locale : siSwati [ss]
  14684. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  14685. ;(function (global, factory) {
  14686. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14687. undefined
  14688. }(this, (function (moment) { 'use strict';
  14689. var ss = moment.defineLocale('ss', {
  14690. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  14691. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14692. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  14693. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14694. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14695. weekdaysParseExact : true,
  14696. longDateFormat : {
  14697. LT : 'h:mm A',
  14698. LTS : 'h:mm:ss A',
  14699. L : 'DD/MM/YYYY',
  14700. LL : 'D MMMM YYYY',
  14701. LLL : 'D MMMM YYYY h:mm A',
  14702. LLLL : 'dddd, D MMMM YYYY h:mm A'
  14703. },
  14704. calendar : {
  14705. sameDay : '[Namuhla nga] LT',
  14706. nextDay : '[Kusasa nga] LT',
  14707. nextWeek : 'dddd [nga] LT',
  14708. lastDay : '[Itolo nga] LT',
  14709. lastWeek : 'dddd [leliphelile] [nga] LT',
  14710. sameElse : 'L'
  14711. },
  14712. relativeTime : {
  14713. future : 'nga %s',
  14714. past : 'wenteka nga %s',
  14715. s : 'emizuzwana lomcane',
  14716. m : 'umzuzu',
  14717. mm : '%d emizuzu',
  14718. h : 'lihora',
  14719. hh : '%d emahora',
  14720. d : 'lilanga',
  14721. dd : '%d emalanga',
  14722. M : 'inyanga',
  14723. MM : '%d tinyanga',
  14724. y : 'umnyaka',
  14725. yy : '%d iminyaka'
  14726. },
  14727. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14728. meridiem : function (hours, minutes, isLower) {
  14729. if (hours < 11) {
  14730. return 'ekuseni';
  14731. } else if (hours < 15) {
  14732. return 'emini';
  14733. } else if (hours < 19) {
  14734. return 'entsambama';
  14735. } else {
  14736. return 'ebusuku';
  14737. }
  14738. },
  14739. meridiemHour : function (hour, meridiem) {
  14740. if (hour === 12) {
  14741. hour = 0;
  14742. }
  14743. if (meridiem === 'ekuseni') {
  14744. return hour;
  14745. } else if (meridiem === 'emini') {
  14746. return hour >= 11 ? hour : hour + 12;
  14747. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14748. if (hour === 0) {
  14749. return 0;
  14750. }
  14751. return hour + 12;
  14752. }
  14753. },
  14754. dayOfMonthOrdinalParse: /\d{1,2}/,
  14755. ordinal : '%d',
  14756. week : {
  14757. dow : 1, // Monday is the first day of the week.
  14758. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14759. }
  14760. });
  14761. return ss;
  14762. })));
  14763. /***/ }),
  14764. /***/ "./node_modules/moment/locale/sv.js":
  14765. /*!******************************************!*\
  14766. !*** ./node_modules/moment/locale/sv.js ***!
  14767. \******************************************/
  14768. /*! no static exports found */
  14769. /***/ (function(module, exports, __webpack_require__) {
  14770. //! moment.js locale configuration
  14771. //! locale : Swedish [sv]
  14772. //! author : Jens Alm : https://github.com/ulmus
  14773. ;(function (global, factory) {
  14774. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14775. undefined
  14776. }(this, (function (moment) { 'use strict';
  14777. var sv = moment.defineLocale('sv', {
  14778. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  14779. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14780. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14781. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14782. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  14783. longDateFormat : {
  14784. LT : 'HH:mm',
  14785. LTS : 'HH:mm:ss',
  14786. L : 'YYYY-MM-DD',
  14787. LL : 'D MMMM YYYY',
  14788. LLL : 'D MMMM YYYY [kl.] HH:mm',
  14789. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  14790. lll : 'D MMM YYYY HH:mm',
  14791. llll : 'ddd D MMM YYYY HH:mm'
  14792. },
  14793. calendar : {
  14794. sameDay: '[Idag] LT',
  14795. nextDay: '[Imorgon] LT',
  14796. lastDay: '[Igår] LT',
  14797. nextWeek: '[På] dddd LT',
  14798. lastWeek: '[I] dddd[s] LT',
  14799. sameElse: 'L'
  14800. },
  14801. relativeTime : {
  14802. future : 'om %s',
  14803. past : 'för %s sedan',
  14804. s : 'några sekunder',
  14805. m : 'en minut',
  14806. mm : '%d minuter',
  14807. h : 'en timme',
  14808. hh : '%d timmar',
  14809. d : 'en dag',
  14810. dd : '%d dagar',
  14811. M : 'en månad',
  14812. MM : '%d månader',
  14813. y : 'ett år',
  14814. yy : '%d år'
  14815. },
  14816. dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
  14817. ordinal : function (number) {
  14818. var b = number % 10,
  14819. output = (~~(number % 100 / 10) === 1) ? 'e' :
  14820. (b === 1) ? 'a' :
  14821. (b === 2) ? 'a' :
  14822. (b === 3) ? 'e' : 'e';
  14823. return number + output;
  14824. },
  14825. week : {
  14826. dow : 1, // Monday is the first day of the week.
  14827. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14828. }
  14829. });
  14830. return sv;
  14831. })));
  14832. /***/ }),
  14833. /***/ "./node_modules/moment/locale/sw.js":
  14834. /*!******************************************!*\
  14835. !*** ./node_modules/moment/locale/sw.js ***!
  14836. \******************************************/
  14837. /*! no static exports found */
  14838. /***/ (function(module, exports, __webpack_require__) {
  14839. //! moment.js locale configuration
  14840. //! locale : Swahili [sw]
  14841. //! author : Fahad Kassim : https://github.com/fadsel
  14842. ;(function (global, factory) {
  14843. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14844. undefined
  14845. }(this, (function (moment) { 'use strict';
  14846. var sw = moment.defineLocale('sw', {
  14847. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  14848. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14849. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  14850. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14851. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14852. weekdaysParseExact : true,
  14853. longDateFormat : {
  14854. LT : 'HH:mm',
  14855. LTS : 'HH:mm:ss',
  14856. L : 'DD.MM.YYYY',
  14857. LL : 'D MMMM YYYY',
  14858. LLL : 'D MMMM YYYY HH:mm',
  14859. LLLL : 'dddd, D MMMM YYYY HH:mm'
  14860. },
  14861. calendar : {
  14862. sameDay : '[leo saa] LT',
  14863. nextDay : '[kesho saa] LT',
  14864. nextWeek : '[wiki ijayo] dddd [saat] LT',
  14865. lastDay : '[jana] LT',
  14866. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  14867. sameElse : 'L'
  14868. },
  14869. relativeTime : {
  14870. future : '%s baadaye',
  14871. past : 'tokea %s',
  14872. s : 'hivi punde',
  14873. m : 'dakika moja',
  14874. mm : 'dakika %d',
  14875. h : 'saa limoja',
  14876. hh : 'masaa %d',
  14877. d : 'siku moja',
  14878. dd : 'masiku %d',
  14879. M : 'mwezi mmoja',
  14880. MM : 'miezi %d',
  14881. y : 'mwaka mmoja',
  14882. yy : 'miaka %d'
  14883. },
  14884. week : {
  14885. dow : 1, // Monday is the first day of the week.
  14886. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14887. }
  14888. });
  14889. return sw;
  14890. })));
  14891. /***/ }),
  14892. /***/ "./node_modules/moment/locale/ta.js":
  14893. /*!******************************************!*\
  14894. !*** ./node_modules/moment/locale/ta.js ***!
  14895. \******************************************/
  14896. /*! no static exports found */
  14897. /***/ (function(module, exports, __webpack_require__) {
  14898. //! moment.js locale configuration
  14899. //! locale : Tamil [ta]
  14900. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  14901. ;(function (global, factory) {
  14902. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14903. undefined
  14904. }(this, (function (moment) { 'use strict';
  14905. var symbolMap = {
  14906. '1': '௧',
  14907. '2': '௨',
  14908. '3': '௩',
  14909. '4': '௪',
  14910. '5': '௫',
  14911. '6': '௬',
  14912. '7': '௭',
  14913. '8': '௮',
  14914. '9': '௯',
  14915. '0': '௦'
  14916. };
  14917. var numberMap = {
  14918. '௧': '1',
  14919. '௨': '2',
  14920. '௩': '3',
  14921. '௪': '4',
  14922. '௫': '5',
  14923. '௬': '6',
  14924. '௭': '7',
  14925. '௮': '8',
  14926. '௯': '9',
  14927. '௦': '0'
  14928. };
  14929. var ta = moment.defineLocale('ta', {
  14930. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  14931. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  14932. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  14933. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  14934. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  14935. longDateFormat : {
  14936. LT : 'HH:mm',
  14937. LTS : 'HH:mm:ss',
  14938. L : 'DD/MM/YYYY',
  14939. LL : 'D MMMM YYYY',
  14940. LLL : 'D MMMM YYYY, HH:mm',
  14941. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  14942. },
  14943. calendar : {
  14944. sameDay : '[இன்று] LT',
  14945. nextDay : '[நாளை] LT',
  14946. nextWeek : 'dddd, LT',
  14947. lastDay : '[நேற்று] LT',
  14948. lastWeek : '[கடந்த வாரம்] dddd, LT',
  14949. sameElse : 'L'
  14950. },
  14951. relativeTime : {
  14952. future : '%s இல்',
  14953. past : '%s முன்',
  14954. s : 'ஒரு சில விநாடிகள்',
  14955. m : 'ஒரு நிமிடம்',
  14956. mm : '%d நிமிடங்கள்',
  14957. h : 'ஒரு மணி நேரம்',
  14958. hh : '%d மணி நேரம்',
  14959. d : 'ஒரு நாள்',
  14960. dd : '%d நாட்கள்',
  14961. M : 'ஒரு மாதம்',
  14962. MM : '%d மாதங்கள்',
  14963. y : 'ஒரு வருடம்',
  14964. yy : '%d ஆண்டுகள்'
  14965. },
  14966. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  14967. ordinal : function (number) {
  14968. return number + 'வது';
  14969. },
  14970. preparse: function (string) {
  14971. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  14972. return numberMap[match];
  14973. });
  14974. },
  14975. postformat: function (string) {
  14976. return string.replace(/\d/g, function (match) {
  14977. return symbolMap[match];
  14978. });
  14979. },
  14980. // refer http://ta.wikipedia.org/s/1er1
  14981. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  14982. meridiem : function (hour, minute, isLower) {
  14983. if (hour < 2) {
  14984. return ' யாமம்';
  14985. } else if (hour < 6) {
  14986. return ' வைகறை'; // வைகறை
  14987. } else if (hour < 10) {
  14988. return ' காலை'; // காலை
  14989. } else if (hour < 14) {
  14990. return ' நண்பகல்'; // நண்பகல்
  14991. } else if (hour < 18) {
  14992. return ' எற்பாடு'; // எற்பாடு
  14993. } else if (hour < 22) {
  14994. return ' மாலை'; // மாலை
  14995. } else {
  14996. return ' யாமம்';
  14997. }
  14998. },
  14999. meridiemHour : function (hour, meridiem) {
  15000. if (hour === 12) {
  15001. hour = 0;
  15002. }
  15003. if (meridiem === 'யாமம்') {
  15004. return hour < 2 ? hour : hour + 12;
  15005. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  15006. return hour;
  15007. } else if (meridiem === 'நண்பகல்') {
  15008. return hour >= 10 ? hour : hour + 12;
  15009. } else {
  15010. return hour + 12;
  15011. }
  15012. },
  15013. week : {
  15014. dow : 0, // Sunday is the first day of the week.
  15015. doy : 6 // The week that contains Jan 1st is the first week of the year.
  15016. }
  15017. });
  15018. return ta;
  15019. })));
  15020. /***/ }),
  15021. /***/ "./node_modules/moment/locale/te.js":
  15022. /*!******************************************!*\
  15023. !*** ./node_modules/moment/locale/te.js ***!
  15024. \******************************************/
  15025. /*! no static exports found */
  15026. /***/ (function(module, exports, __webpack_require__) {
  15027. //! moment.js locale configuration
  15028. //! locale : Telugu [te]
  15029. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  15030. ;(function (global, factory) {
  15031. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15032. undefined
  15033. }(this, (function (moment) { 'use strict';
  15034. var te = moment.defineLocale('te', {
  15035. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  15036. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  15037. monthsParseExact : true,
  15038. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  15039. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  15040. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  15041. longDateFormat : {
  15042. LT : 'A h:mm',
  15043. LTS : 'A h:mm:ss',
  15044. L : 'DD/MM/YYYY',
  15045. LL : 'D MMMM YYYY',
  15046. LLL : 'D MMMM YYYY, A h:mm',
  15047. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  15048. },
  15049. calendar : {
  15050. sameDay : '[నేడు] LT',
  15051. nextDay : '[రేపు] LT',
  15052. nextWeek : 'dddd, LT',
  15053. lastDay : '[నిన్న] LT',
  15054. lastWeek : '[గత] dddd, LT',
  15055. sameElse : 'L'
  15056. },
  15057. relativeTime : {
  15058. future : '%s లో',
  15059. past : '%s క్రితం',
  15060. s : 'కొన్ని క్షణాలు',
  15061. m : 'ఒక నిమిషం',
  15062. mm : '%d నిమిషాలు',
  15063. h : 'ఒక గంట',
  15064. hh : '%d గంటలు',
  15065. d : 'ఒక రోజు',
  15066. dd : '%d రోజులు',
  15067. M : 'ఒక నెల',
  15068. MM : '%d నెలలు',
  15069. y : 'ఒక సంవత్సరం',
  15070. yy : '%d సంవత్సరాలు'
  15071. },
  15072. dayOfMonthOrdinalParse : /\d{1,2}వ/,
  15073. ordinal : '%dవ',
  15074. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  15075. meridiemHour : function (hour, meridiem) {
  15076. if (hour === 12) {
  15077. hour = 0;
  15078. }
  15079. if (meridiem === 'రాత్రి') {
  15080. return hour < 4 ? hour : hour + 12;
  15081. } else if (meridiem === 'ఉదయం') {
  15082. return hour;
  15083. } else if (meridiem === 'మధ్యాహ్నం') {
  15084. return hour >= 10 ? hour : hour + 12;
  15085. } else if (meridiem === 'సాయంత్రం') {
  15086. return hour + 12;
  15087. }
  15088. },
  15089. meridiem : function (hour, minute, isLower) {
  15090. if (hour < 4) {
  15091. return 'రాత్రి';
  15092. } else if (hour < 10) {
  15093. return 'ఉదయం';
  15094. } else if (hour < 17) {
  15095. return 'మధ్యాహ్నం';
  15096. } else if (hour < 20) {
  15097. return 'సాయంత్రం';
  15098. } else {
  15099. return 'రాత్రి';
  15100. }
  15101. },
  15102. week : {
  15103. dow : 0, // Sunday is the first day of the week.
  15104. doy : 6 // The week that contains Jan 1st is the first week of the year.
  15105. }
  15106. });
  15107. return te;
  15108. })));
  15109. /***/ }),
  15110. /***/ "./node_modules/moment/locale/tet.js":
  15111. /*!*******************************************!*\
  15112. !*** ./node_modules/moment/locale/tet.js ***!
  15113. \*******************************************/
  15114. /*! no static exports found */
  15115. /***/ (function(module, exports, __webpack_require__) {
  15116. //! moment.js locale configuration
  15117. //! locale : Tetun Dili (East Timor) [tet]
  15118. //! author : Joshua Brooks : https://github.com/joshbrooks
  15119. //! author : Onorio De J. Afonso : https://github.com/marobo
  15120. ;(function (global, factory) {
  15121. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15122. undefined
  15123. }(this, (function (moment) { 'use strict';
  15124. var tet = moment.defineLocale('tet', {
  15125. months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  15126. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
  15127. weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
  15128. weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
  15129. weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
  15130. longDateFormat : {
  15131. LT : 'HH:mm',
  15132. LTS : 'HH:mm:ss',
  15133. L : 'DD/MM/YYYY',
  15134. LL : 'D MMMM YYYY',
  15135. LLL : 'D MMMM YYYY HH:mm',
  15136. LLLL : 'dddd, D MMMM YYYY HH:mm'
  15137. },
  15138. calendar : {
  15139. sameDay: '[Ohin iha] LT',
  15140. nextDay: '[Aban iha] LT',
  15141. nextWeek: 'dddd [iha] LT',
  15142. lastDay: '[Horiseik iha] LT',
  15143. lastWeek: 'dddd [semana kotuk] [iha] LT',
  15144. sameElse: 'L'
  15145. },
  15146. relativeTime : {
  15147. future : 'iha %s',
  15148. past : '%s liuba',
  15149. s : 'minutu balun',
  15150. m : 'minutu ida',
  15151. mm : 'minutus %d',
  15152. h : 'horas ida',
  15153. hh : 'horas %d',
  15154. d : 'loron ida',
  15155. dd : 'loron %d',
  15156. M : 'fulan ida',
  15157. MM : 'fulan %d',
  15158. y : 'tinan ida',
  15159. yy : 'tinan %d'
  15160. },
  15161. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  15162. ordinal : function (number) {
  15163. var b = number % 10,
  15164. output = (~~(number % 100 / 10) === 1) ? 'th' :
  15165. (b === 1) ? 'st' :
  15166. (b === 2) ? 'nd' :
  15167. (b === 3) ? 'rd' : 'th';
  15168. return number + output;
  15169. },
  15170. week : {
  15171. dow : 1, // Monday is the first day of the week.
  15172. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15173. }
  15174. });
  15175. return tet;
  15176. })));
  15177. /***/ }),
  15178. /***/ "./node_modules/moment/locale/th.js":
  15179. /*!******************************************!*\
  15180. !*** ./node_modules/moment/locale/th.js ***!
  15181. \******************************************/
  15182. /*! no static exports found */
  15183. /***/ (function(module, exports, __webpack_require__) {
  15184. //! moment.js locale configuration
  15185. //! locale : Thai [th]
  15186. //! author : Kridsada Thanabulpong : https://github.com/sirn
  15187. ;(function (global, factory) {
  15188. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15189. undefined
  15190. }(this, (function (moment) { 'use strict';
  15191. var th = moment.defineLocale('th', {
  15192. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  15193. monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  15194. monthsParseExact: true,
  15195. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15196. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15197. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15198. weekdaysParseExact : true,
  15199. longDateFormat : {
  15200. LT : 'H:mm',
  15201. LTS : 'H:mm:ss',
  15202. L : 'DD/MM/YYYY',
  15203. LL : 'D MMMM YYYY',
  15204. LLL : 'D MMMM YYYY เวลา H:mm',
  15205. LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
  15206. },
  15207. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15208. isPM: function (input) {
  15209. return input === 'หลังเที่ยง';
  15210. },
  15211. meridiem : function (hour, minute, isLower) {
  15212. if (hour < 12) {
  15213. return 'ก่อนเที่ยง';
  15214. } else {
  15215. return 'หลังเที่ยง';
  15216. }
  15217. },
  15218. calendar : {
  15219. sameDay : '[วันนี้ เวลา] LT',
  15220. nextDay : '[พรุ่งนี้ เวลา] LT',
  15221. nextWeek : 'dddd[หน้า เวลา] LT',
  15222. lastDay : '[เมื่อวานนี้ เวลา] LT',
  15223. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  15224. sameElse : 'L'
  15225. },
  15226. relativeTime : {
  15227. future : 'อีก %s',
  15228. past : '%sที่แล้ว',
  15229. s : 'ไม่กี่วินาที',
  15230. m : '1 นาที',
  15231. mm : '%d นาที',
  15232. h : '1 ชั่วโมง',
  15233. hh : '%d ชั่วโมง',
  15234. d : '1 วัน',
  15235. dd : '%d วัน',
  15236. M : '1 เดือน',
  15237. MM : '%d เดือน',
  15238. y : '1 ปี',
  15239. yy : '%d ปี'
  15240. }
  15241. });
  15242. return th;
  15243. })));
  15244. /***/ }),
  15245. /***/ "./node_modules/moment/locale/tl-ph.js":
  15246. /*!*********************************************!*\
  15247. !*** ./node_modules/moment/locale/tl-ph.js ***!
  15248. \*********************************************/
  15249. /*! no static exports found */
  15250. /***/ (function(module, exports, __webpack_require__) {
  15251. //! moment.js locale configuration
  15252. //! locale : Tagalog (Philippines) [tl-ph]
  15253. //! author : Dan Hagman : https://github.com/hagmandan
  15254. ;(function (global, factory) {
  15255. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15256. undefined
  15257. }(this, (function (moment) { 'use strict';
  15258. var tlPh = moment.defineLocale('tl-ph', {
  15259. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  15260. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15261. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  15262. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15263. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15264. longDateFormat : {
  15265. LT : 'HH:mm',
  15266. LTS : 'HH:mm:ss',
  15267. L : 'MM/D/YYYY',
  15268. LL : 'MMMM D, YYYY',
  15269. LLL : 'MMMM D, YYYY HH:mm',
  15270. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  15271. },
  15272. calendar : {
  15273. sameDay: 'LT [ngayong araw]',
  15274. nextDay: '[Bukas ng] LT',
  15275. nextWeek: 'LT [sa susunod na] dddd',
  15276. lastDay: 'LT [kahapon]',
  15277. lastWeek: 'LT [noong nakaraang] dddd',
  15278. sameElse: 'L'
  15279. },
  15280. relativeTime : {
  15281. future : 'sa loob ng %s',
  15282. past : '%s ang nakalipas',
  15283. s : 'ilang segundo',
  15284. m : 'isang minuto',
  15285. mm : '%d minuto',
  15286. h : 'isang oras',
  15287. hh : '%d oras',
  15288. d : 'isang araw',
  15289. dd : '%d araw',
  15290. M : 'isang buwan',
  15291. MM : '%d buwan',
  15292. y : 'isang taon',
  15293. yy : '%d taon'
  15294. },
  15295. dayOfMonthOrdinalParse: /\d{1,2}/,
  15296. ordinal : function (number) {
  15297. return number;
  15298. },
  15299. week : {
  15300. dow : 1, // Monday is the first day of the week.
  15301. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15302. }
  15303. });
  15304. return tlPh;
  15305. })));
  15306. /***/ }),
  15307. /***/ "./node_modules/moment/locale/tlh.js":
  15308. /*!*******************************************!*\
  15309. !*** ./node_modules/moment/locale/tlh.js ***!
  15310. \*******************************************/
  15311. /*! no static exports found */
  15312. /***/ (function(module, exports, __webpack_require__) {
  15313. //! moment.js locale configuration
  15314. //! locale : Klingon [tlh]
  15315. //! author : Dominika Kruk : https://github.com/amaranthrose
  15316. ;(function (global, factory) {
  15317. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15318. undefined
  15319. }(this, (function (moment) { 'use strict';
  15320. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15321. function translateFuture(output) {
  15322. var time = output;
  15323. time = (output.indexOf('jaj') !== -1) ?
  15324. time.slice(0, -3) + 'leS' :
  15325. (output.indexOf('jar') !== -1) ?
  15326. time.slice(0, -3) + 'waQ' :
  15327. (output.indexOf('DIS') !== -1) ?
  15328. time.slice(0, -3) + 'nem' :
  15329. time + ' pIq';
  15330. return time;
  15331. }
  15332. function translatePast(output) {
  15333. var time = output;
  15334. time = (output.indexOf('jaj') !== -1) ?
  15335. time.slice(0, -3) + 'Hu’' :
  15336. (output.indexOf('jar') !== -1) ?
  15337. time.slice(0, -3) + 'wen' :
  15338. (output.indexOf('DIS') !== -1) ?
  15339. time.slice(0, -3) + 'ben' :
  15340. time + ' ret';
  15341. return time;
  15342. }
  15343. function translate(number, withoutSuffix, string, isFuture) {
  15344. var numberNoun = numberAsNoun(number);
  15345. switch (string) {
  15346. case 'mm':
  15347. return numberNoun + ' tup';
  15348. case 'hh':
  15349. return numberNoun + ' rep';
  15350. case 'dd':
  15351. return numberNoun + ' jaj';
  15352. case 'MM':
  15353. return numberNoun + ' jar';
  15354. case 'yy':
  15355. return numberNoun + ' DIS';
  15356. }
  15357. }
  15358. function numberAsNoun(number) {
  15359. var hundred = Math.floor((number % 1000) / 100),
  15360. ten = Math.floor((number % 100) / 10),
  15361. one = number % 10,
  15362. word = '';
  15363. if (hundred > 0) {
  15364. word += numbersNouns[hundred] + 'vatlh';
  15365. }
  15366. if (ten > 0) {
  15367. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  15368. }
  15369. if (one > 0) {
  15370. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  15371. }
  15372. return (word === '') ? 'pagh' : word;
  15373. }
  15374. var tlh = moment.defineLocale('tlh', {
  15375. 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('_'),
  15376. 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('_'),
  15377. monthsParseExact : true,
  15378. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  15379. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  15380. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  15381. longDateFormat : {
  15382. LT : 'HH:mm',
  15383. LTS : 'HH:mm:ss',
  15384. L : 'DD.MM.YYYY',
  15385. LL : 'D MMMM YYYY',
  15386. LLL : 'D MMMM YYYY HH:mm',
  15387. LLLL : 'dddd, D MMMM YYYY HH:mm'
  15388. },
  15389. calendar : {
  15390. sameDay: '[DaHjaj] LT',
  15391. nextDay: '[wa’leS] LT',
  15392. nextWeek: 'LLL',
  15393. lastDay: '[wa’Hu’] LT',
  15394. lastWeek: 'LLL',
  15395. sameElse: 'L'
  15396. },
  15397. relativeTime : {
  15398. future : translateFuture,
  15399. past : translatePast,
  15400. s : 'puS lup',
  15401. m : 'wa’ tup',
  15402. mm : translate,
  15403. h : 'wa’ rep',
  15404. hh : translate,
  15405. d : 'wa’ jaj',
  15406. dd : translate,
  15407. M : 'wa’ jar',
  15408. MM : translate,
  15409. y : 'wa’ DIS',
  15410. yy : translate
  15411. },
  15412. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15413. ordinal : '%d.',
  15414. week : {
  15415. dow : 1, // Monday is the first day of the week.
  15416. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15417. }
  15418. });
  15419. return tlh;
  15420. })));
  15421. /***/ }),
  15422. /***/ "./node_modules/moment/locale/tr.js":
  15423. /*!******************************************!*\
  15424. !*** ./node_modules/moment/locale/tr.js ***!
  15425. \******************************************/
  15426. /*! no static exports found */
  15427. /***/ (function(module, exports, __webpack_require__) {
  15428. //! moment.js locale configuration
  15429. //! locale : Turkish [tr]
  15430. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  15431. //! Burak Yiğit Kaya: https://github.com/BYK
  15432. ;(function (global, factory) {
  15433. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15434. undefined
  15435. }(this, (function (moment) { 'use strict';
  15436. var suffixes = {
  15437. 1: '\'inci',
  15438. 5: '\'inci',
  15439. 8: '\'inci',
  15440. 70: '\'inci',
  15441. 80: '\'inci',
  15442. 2: '\'nci',
  15443. 7: '\'nci',
  15444. 20: '\'nci',
  15445. 50: '\'nci',
  15446. 3: '\'üncü',
  15447. 4: '\'üncü',
  15448. 100: '\'üncü',
  15449. 6: '\'ncı',
  15450. 9: '\'uncu',
  15451. 10: '\'uncu',
  15452. 30: '\'uncu',
  15453. 60: '\'ıncı',
  15454. 90: '\'ıncı'
  15455. };
  15456. var tr = moment.defineLocale('tr', {
  15457. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  15458. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15459. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  15460. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  15461. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15462. longDateFormat : {
  15463. LT : 'HH:mm',
  15464. LTS : 'HH:mm:ss',
  15465. L : 'DD.MM.YYYY',
  15466. LL : 'D MMMM YYYY',
  15467. LLL : 'D MMMM YYYY HH:mm',
  15468. LLLL : 'dddd, D MMMM YYYY HH:mm'
  15469. },
  15470. calendar : {
  15471. sameDay : '[bugün saat] LT',
  15472. nextDay : '[yarın saat] LT',
  15473. nextWeek : '[gelecek] dddd [saat] LT',
  15474. lastDay : '[dün] LT',
  15475. lastWeek : '[geçen] dddd [saat] LT',
  15476. sameElse : 'L'
  15477. },
  15478. relativeTime : {
  15479. future : '%s sonra',
  15480. past : '%s önce',
  15481. s : 'birkaç saniye',
  15482. m : 'bir dakika',
  15483. mm : '%d dakika',
  15484. h : 'bir saat',
  15485. hh : '%d saat',
  15486. d : 'bir gün',
  15487. dd : '%d gün',
  15488. M : 'bir ay',
  15489. MM : '%d ay',
  15490. y : 'bir yıl',
  15491. yy : '%d yıl'
  15492. },
  15493. dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  15494. ordinal : function (number) {
  15495. if (number === 0) { // special case for zero
  15496. return number + '\'ıncı';
  15497. }
  15498. var a = number % 10,
  15499. b = number % 100 - a,
  15500. c = number >= 100 ? 100 : null;
  15501. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  15502. },
  15503. week : {
  15504. dow : 1, // Monday is the first day of the week.
  15505. doy : 7 // The week that contains Jan 1st is the first week of the year.
  15506. }
  15507. });
  15508. return tr;
  15509. })));
  15510. /***/ }),
  15511. /***/ "./node_modules/moment/locale/tzl.js":
  15512. /*!*******************************************!*\
  15513. !*** ./node_modules/moment/locale/tzl.js ***!
  15514. \*******************************************/
  15515. /*! no static exports found */
  15516. /***/ (function(module, exports, __webpack_require__) {
  15517. //! moment.js locale configuration
  15518. //! locale : Talossan [tzl]
  15519. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  15520. //! author : Iustì Canun
  15521. ;(function (global, factory) {
  15522. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15523. undefined
  15524. }(this, (function (moment) { 'use strict';
  15525. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15526. // This is currently too difficult (maybe even impossible) to add.
  15527. var tzl = moment.defineLocale('tzl', {
  15528. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  15529. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15530. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15531. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15532. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15533. longDateFormat : {
  15534. LT : 'HH.mm',
  15535. LTS : 'HH.mm.ss',
  15536. L : 'DD.MM.YYYY',
  15537. LL : 'D. MMMM [dallas] YYYY',
  15538. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  15539. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  15540. },
  15541. meridiemParse: /d\'o|d\'a/i,
  15542. isPM : function (input) {
  15543. return 'd\'o' === input.toLowerCase();
  15544. },
  15545. meridiem : function (hours, minutes, isLower) {
  15546. if (hours > 11) {
  15547. return isLower ? 'd\'o' : 'D\'O';
  15548. } else {
  15549. return isLower ? 'd\'a' : 'D\'A';
  15550. }
  15551. },
  15552. calendar : {
  15553. sameDay : '[oxhi à] LT',
  15554. nextDay : '[demà à] LT',
  15555. nextWeek : 'dddd [à] LT',
  15556. lastDay : '[ieiri à] LT',
  15557. lastWeek : '[sür el] dddd [lasteu à] LT',
  15558. sameElse : 'L'
  15559. },
  15560. relativeTime : {
  15561. future : 'osprei %s',
  15562. past : 'ja%s',
  15563. s : processRelativeTime,
  15564. m : processRelativeTime,
  15565. mm : processRelativeTime,
  15566. h : processRelativeTime,
  15567. hh : processRelativeTime,
  15568. d : processRelativeTime,
  15569. dd : processRelativeTime,
  15570. M : processRelativeTime,
  15571. MM : processRelativeTime,
  15572. y : processRelativeTime,
  15573. yy : processRelativeTime
  15574. },
  15575. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15576. ordinal : '%d.',
  15577. week : {
  15578. dow : 1, // Monday is the first day of the week.
  15579. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15580. }
  15581. });
  15582. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  15583. var format = {
  15584. 's': ['viensas secunds', '\'iensas secunds'],
  15585. 'm': ['\'n míut', '\'iens míut'],
  15586. 'mm': [number + ' míuts', '' + number + ' míuts'],
  15587. 'h': ['\'n þora', '\'iensa þora'],
  15588. 'hh': [number + ' þoras', '' + number + ' þoras'],
  15589. 'd': ['\'n ziua', '\'iensa ziua'],
  15590. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  15591. 'M': ['\'n mes', '\'iens mes'],
  15592. 'MM': [number + ' mesen', '' + number + ' mesen'],
  15593. 'y': ['\'n ar', '\'iens ar'],
  15594. 'yy': [number + ' ars', '' + number + ' ars']
  15595. };
  15596. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  15597. }
  15598. return tzl;
  15599. })));
  15600. /***/ }),
  15601. /***/ "./node_modules/moment/locale/tzm-latn.js":
  15602. /*!************************************************!*\
  15603. !*** ./node_modules/moment/locale/tzm-latn.js ***!
  15604. \************************************************/
  15605. /*! no static exports found */
  15606. /***/ (function(module, exports, __webpack_require__) {
  15607. //! moment.js locale configuration
  15608. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  15609. //! author : Abdel Said : https://github.com/abdelsaid
  15610. ;(function (global, factory) {
  15611. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15612. undefined
  15613. }(this, (function (moment) { 'use strict';
  15614. var tzmLatn = moment.defineLocale('tzm-latn', {
  15615. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  15616. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  15617. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15618. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15619. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15620. longDateFormat : {
  15621. LT : 'HH:mm',
  15622. LTS : 'HH:mm:ss',
  15623. L : 'DD/MM/YYYY',
  15624. LL : 'D MMMM YYYY',
  15625. LLL : 'D MMMM YYYY HH:mm',
  15626. LLLL : 'dddd D MMMM YYYY HH:mm'
  15627. },
  15628. calendar : {
  15629. sameDay: '[asdkh g] LT',
  15630. nextDay: '[aska g] LT',
  15631. nextWeek: 'dddd [g] LT',
  15632. lastDay: '[assant g] LT',
  15633. lastWeek: 'dddd [g] LT',
  15634. sameElse: 'L'
  15635. },
  15636. relativeTime : {
  15637. future : 'dadkh s yan %s',
  15638. past : 'yan %s',
  15639. s : 'imik',
  15640. m : 'minuḍ',
  15641. mm : '%d minuḍ',
  15642. h : 'saɛa',
  15643. hh : '%d tassaɛin',
  15644. d : 'ass',
  15645. dd : '%d ossan',
  15646. M : 'ayowr',
  15647. MM : '%d iyyirn',
  15648. y : 'asgas',
  15649. yy : '%d isgasn'
  15650. },
  15651. week : {
  15652. dow : 6, // Saturday is the first day of the week.
  15653. doy : 12 // The week that contains Jan 1st is the first week of the year.
  15654. }
  15655. });
  15656. return tzmLatn;
  15657. })));
  15658. /***/ }),
  15659. /***/ "./node_modules/moment/locale/tzm.js":
  15660. /*!*******************************************!*\
  15661. !*** ./node_modules/moment/locale/tzm.js ***!
  15662. \*******************************************/
  15663. /*! no static exports found */
  15664. /***/ (function(module, exports, __webpack_require__) {
  15665. //! moment.js locale configuration
  15666. //! locale : Central Atlas Tamazight [tzm]
  15667. //! author : Abdel Said : https://github.com/abdelsaid
  15668. ;(function (global, factory) {
  15669. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15670. undefined
  15671. }(this, (function (moment) { 'use strict';
  15672. var tzm = moment.defineLocale('tzm', {
  15673. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  15674. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  15675. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15676. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15677. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15678. longDateFormat : {
  15679. LT : 'HH:mm',
  15680. LTS: 'HH:mm:ss',
  15681. L : 'DD/MM/YYYY',
  15682. LL : 'D MMMM YYYY',
  15683. LLL : 'D MMMM YYYY HH:mm',
  15684. LLLL : 'dddd D MMMM YYYY HH:mm'
  15685. },
  15686. calendar : {
  15687. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15688. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15689. nextWeek: 'dddd [ⴴ] LT',
  15690. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15691. lastWeek: 'dddd [ⴴ] LT',
  15692. sameElse: 'L'
  15693. },
  15694. relativeTime : {
  15695. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15696. past : 'ⵢⴰⵏ %s',
  15697. s : 'ⵉⵎⵉⴽ',
  15698. m : 'ⵎⵉⵏⵓⴺ',
  15699. mm : '%d ⵎⵉⵏⵓⴺ',
  15700. h : 'ⵙⴰⵄⴰ',
  15701. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15702. d : 'ⴰⵙⵙ',
  15703. dd : '%d oⵙⵙⴰⵏ',
  15704. M : 'ⴰⵢoⵓⵔ',
  15705. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  15706. y : 'ⴰⵙⴳⴰⵙ',
  15707. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  15708. },
  15709. week : {
  15710. dow : 6, // Saturday is the first day of the week.
  15711. doy : 12 // The week that contains Jan 1st is the first week of the year.
  15712. }
  15713. });
  15714. return tzm;
  15715. })));
  15716. /***/ }),
  15717. /***/ "./node_modules/moment/locale/uk.js":
  15718. /*!******************************************!*\
  15719. !*** ./node_modules/moment/locale/uk.js ***!
  15720. \******************************************/
  15721. /*! no static exports found */
  15722. /***/ (function(module, exports, __webpack_require__) {
  15723. //! moment.js locale configuration
  15724. //! locale : Ukrainian [uk]
  15725. //! author : zemlanin : https://github.com/zemlanin
  15726. //! Author : Menelion Elensúle : https://github.com/Oire
  15727. ;(function (global, factory) {
  15728. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15729. undefined
  15730. }(this, (function (moment) { 'use strict';
  15731. function plural(word, num) {
  15732. var forms = word.split('_');
  15733. 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]);
  15734. }
  15735. function relativeTimeWithPlural(number, withoutSuffix, key) {
  15736. var format = {
  15737. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  15738. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  15739. 'dd': 'день_дні_днів',
  15740. 'MM': 'місяць_місяці_місяців',
  15741. 'yy': 'рік_роки_років'
  15742. };
  15743. if (key === 'm') {
  15744. return withoutSuffix ? 'хвилина' : 'хвилину';
  15745. }
  15746. else if (key === 'h') {
  15747. return withoutSuffix ? 'година' : 'годину';
  15748. }
  15749. else {
  15750. return number + ' ' + plural(format[key], +number);
  15751. }
  15752. }
  15753. function weekdaysCaseReplace(m, format) {
  15754. var weekdays = {
  15755. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  15756. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  15757. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  15758. };
  15759. if (!m) {
  15760. return weekdays['nominative'];
  15761. }
  15762. var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  15763. 'accusative' :
  15764. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  15765. 'genitive' :
  15766. 'nominative');
  15767. return weekdays[nounCase][m.day()];
  15768. }
  15769. function processHoursFunction(str) {
  15770. return function () {
  15771. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  15772. };
  15773. }
  15774. var uk = moment.defineLocale('uk', {
  15775. months : {
  15776. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  15777. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  15778. },
  15779. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  15780. weekdays : weekdaysCaseReplace,
  15781. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15782. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15783. longDateFormat : {
  15784. LT : 'HH:mm',
  15785. LTS : 'HH:mm:ss',
  15786. L : 'DD.MM.YYYY',
  15787. LL : 'D MMMM YYYY р.',
  15788. LLL : 'D MMMM YYYY р., HH:mm',
  15789. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  15790. },
  15791. calendar : {
  15792. sameDay: processHoursFunction('[Сьогодні '),
  15793. nextDay: processHoursFunction('[Завтра '),
  15794. lastDay: processHoursFunction('[Вчора '),
  15795. nextWeek: processHoursFunction('[У] dddd ['),
  15796. lastWeek: function () {
  15797. switch (this.day()) {
  15798. case 0:
  15799. case 3:
  15800. case 5:
  15801. case 6:
  15802. return processHoursFunction('[Минулої] dddd [').call(this);
  15803. case 1:
  15804. case 2:
  15805. case 4:
  15806. return processHoursFunction('[Минулого] dddd [').call(this);
  15807. }
  15808. },
  15809. sameElse: 'L'
  15810. },
  15811. relativeTime : {
  15812. future : 'за %s',
  15813. past : '%s тому',
  15814. s : 'декілька секунд',
  15815. m : relativeTimeWithPlural,
  15816. mm : relativeTimeWithPlural,
  15817. h : 'годину',
  15818. hh : relativeTimeWithPlural,
  15819. d : 'день',
  15820. dd : relativeTimeWithPlural,
  15821. M : 'місяць',
  15822. MM : relativeTimeWithPlural,
  15823. y : 'рік',
  15824. yy : relativeTimeWithPlural
  15825. },
  15826. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  15827. meridiemParse: /ночі|ранку|дня|вечора/,
  15828. isPM: function (input) {
  15829. return /^(дня|вечора)$/.test(input);
  15830. },
  15831. meridiem : function (hour, minute, isLower) {
  15832. if (hour < 4) {
  15833. return 'ночі';
  15834. } else if (hour < 12) {
  15835. return 'ранку';
  15836. } else if (hour < 17) {
  15837. return 'дня';
  15838. } else {
  15839. return 'вечора';
  15840. }
  15841. },
  15842. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  15843. ordinal: function (number, period) {
  15844. switch (period) {
  15845. case 'M':
  15846. case 'd':
  15847. case 'DDD':
  15848. case 'w':
  15849. case 'W':
  15850. return number + '-й';
  15851. case 'D':
  15852. return number + '-го';
  15853. default:
  15854. return number;
  15855. }
  15856. },
  15857. week : {
  15858. dow : 1, // Monday is the first day of the week.
  15859. doy : 7 // The week that contains Jan 1st is the first week of the year.
  15860. }
  15861. });
  15862. return uk;
  15863. })));
  15864. /***/ }),
  15865. /***/ "./node_modules/moment/locale/ur.js":
  15866. /*!******************************************!*\
  15867. !*** ./node_modules/moment/locale/ur.js ***!
  15868. \******************************************/
  15869. /*! no static exports found */
  15870. /***/ (function(module, exports, __webpack_require__) {
  15871. //! moment.js locale configuration
  15872. //! locale : Urdu [ur]
  15873. //! author : Sawood Alam : https://github.com/ibnesayeed
  15874. //! author : Zack : https://github.com/ZackVision
  15875. ;(function (global, factory) {
  15876. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15877. undefined
  15878. }(this, (function (moment) { 'use strict';
  15879. var months = [
  15880. 'جنوری',
  15881. 'فروری',
  15882. 'مارچ',
  15883. 'اپریل',
  15884. 'مئی',
  15885. 'جون',
  15886. 'جولائی',
  15887. 'اگست',
  15888. 'ستمبر',
  15889. 'اکتوبر',
  15890. 'نومبر',
  15891. 'دسمبر'
  15892. ];
  15893. var days = [
  15894. 'اتوار',
  15895. 'پیر',
  15896. 'منگل',
  15897. 'بدھ',
  15898. 'جمعرات',
  15899. 'جمعہ',
  15900. 'ہفتہ'
  15901. ];
  15902. var ur = moment.defineLocale('ur', {
  15903. months : months,
  15904. monthsShort : months,
  15905. weekdays : days,
  15906. weekdaysShort : days,
  15907. weekdaysMin : days,
  15908. longDateFormat : {
  15909. LT : 'HH:mm',
  15910. LTS : 'HH:mm:ss',
  15911. L : 'DD/MM/YYYY',
  15912. LL : 'D MMMM YYYY',
  15913. LLL : 'D MMMM YYYY HH:mm',
  15914. LLLL : 'dddd، D MMMM YYYY HH:mm'
  15915. },
  15916. meridiemParse: /صبح|شام/,
  15917. isPM : function (input) {
  15918. return 'شام' === input;
  15919. },
  15920. meridiem : function (hour, minute, isLower) {
  15921. if (hour < 12) {
  15922. return 'صبح';
  15923. }
  15924. return 'شام';
  15925. },
  15926. calendar : {
  15927. sameDay : '[آج بوقت] LT',
  15928. nextDay : '[کل بوقت] LT',
  15929. nextWeek : 'dddd [بوقت] LT',
  15930. lastDay : '[گذشتہ روز بوقت] LT',
  15931. lastWeek : '[گذشتہ] dddd [بوقت] LT',
  15932. sameElse : 'L'
  15933. },
  15934. relativeTime : {
  15935. future : '%s بعد',
  15936. past : '%s قبل',
  15937. s : 'چند سیکنڈ',
  15938. m : 'ایک منٹ',
  15939. mm : '%d منٹ',
  15940. h : 'ایک گھنٹہ',
  15941. hh : '%d گھنٹے',
  15942. d : 'ایک دن',
  15943. dd : '%d دن',
  15944. M : 'ایک ماہ',
  15945. MM : '%d ماہ',
  15946. y : 'ایک سال',
  15947. yy : '%d سال'
  15948. },
  15949. preparse: function (string) {
  15950. return string.replace(/،/g, ',');
  15951. },
  15952. postformat: function (string) {
  15953. return string.replace(/,/g, '،');
  15954. },
  15955. week : {
  15956. dow : 1, // Monday is the first day of the week.
  15957. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15958. }
  15959. });
  15960. return ur;
  15961. })));
  15962. /***/ }),
  15963. /***/ "./node_modules/moment/locale/uz-latn.js":
  15964. /*!***********************************************!*\
  15965. !*** ./node_modules/moment/locale/uz-latn.js ***!
  15966. \***********************************************/
  15967. /*! no static exports found */
  15968. /***/ (function(module, exports, __webpack_require__) {
  15969. //! moment.js locale configuration
  15970. //! locale : Uzbek Latin [uz-latn]
  15971. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  15972. ;(function (global, factory) {
  15973. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15974. undefined
  15975. }(this, (function (moment) { 'use strict';
  15976. var uzLatn = moment.defineLocale('uz-latn', {
  15977. months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  15978. monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  15979. weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  15980. weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  15981. weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  15982. longDateFormat : {
  15983. LT : 'HH:mm',
  15984. LTS : 'HH:mm:ss',
  15985. L : 'DD/MM/YYYY',
  15986. LL : 'D MMMM YYYY',
  15987. LLL : 'D MMMM YYYY HH:mm',
  15988. LLLL : 'D MMMM YYYY, dddd HH:mm'
  15989. },
  15990. calendar : {
  15991. sameDay : '[Bugun soat] LT [da]',
  15992. nextDay : '[Ertaga] LT [da]',
  15993. nextWeek : 'dddd [kuni soat] LT [da]',
  15994. lastDay : '[Kecha soat] LT [da]',
  15995. lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
  15996. sameElse : 'L'
  15997. },
  15998. relativeTime : {
  15999. future : 'Yaqin %s ichida',
  16000. past : 'Bir necha %s oldin',
  16001. s : 'soniya',
  16002. m : 'bir daqiqa',
  16003. mm : '%d daqiqa',
  16004. h : 'bir soat',
  16005. hh : '%d soat',
  16006. d : 'bir kun',
  16007. dd : '%d kun',
  16008. M : 'bir oy',
  16009. MM : '%d oy',
  16010. y : 'bir yil',
  16011. yy : '%d yil'
  16012. },
  16013. week : {
  16014. dow : 1, // Monday is the first day of the week.
  16015. doy : 7 // The week that contains Jan 1st is the first week of the year.
  16016. }
  16017. });
  16018. return uzLatn;
  16019. })));
  16020. /***/ }),
  16021. /***/ "./node_modules/moment/locale/uz.js":
  16022. /*!******************************************!*\
  16023. !*** ./node_modules/moment/locale/uz.js ***!
  16024. \******************************************/
  16025. /*! no static exports found */
  16026. /***/ (function(module, exports, __webpack_require__) {
  16027. //! moment.js locale configuration
  16028. //! locale : Uzbek [uz]
  16029. //! author : Sardor Muminov : https://github.com/muminoff
  16030. ;(function (global, factory) {
  16031. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16032. undefined
  16033. }(this, (function (moment) { 'use strict';
  16034. var uz = moment.defineLocale('uz', {
  16035. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  16036. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16037. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16038. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16039. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16040. longDateFormat : {
  16041. LT : 'HH:mm',
  16042. LTS : 'HH:mm:ss',
  16043. L : 'DD/MM/YYYY',
  16044. LL : 'D MMMM YYYY',
  16045. LLL : 'D MMMM YYYY HH:mm',
  16046. LLLL : 'D MMMM YYYY, dddd HH:mm'
  16047. },
  16048. calendar : {
  16049. sameDay : '[Бугун соат] LT [да]',
  16050. nextDay : '[Эртага] LT [да]',
  16051. nextWeek : 'dddd [куни соат] LT [да]',
  16052. lastDay : '[Кеча соат] LT [да]',
  16053. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  16054. sameElse : 'L'
  16055. },
  16056. relativeTime : {
  16057. future : 'Якин %s ичида',
  16058. past : 'Бир неча %s олдин',
  16059. s : 'фурсат',
  16060. m : 'бир дакика',
  16061. mm : '%d дакика',
  16062. h : 'бир соат',
  16063. hh : '%d соат',
  16064. d : 'бир кун',
  16065. dd : '%d кун',
  16066. M : 'бир ой',
  16067. MM : '%d ой',
  16068. y : 'бир йил',
  16069. yy : '%d йил'
  16070. },
  16071. week : {
  16072. dow : 1, // Monday is the first day of the week.
  16073. doy : 7 // The week that contains Jan 4th is the first week of the year.
  16074. }
  16075. });
  16076. return uz;
  16077. })));
  16078. /***/ }),
  16079. /***/ "./node_modules/moment/locale/vi.js":
  16080. /*!******************************************!*\
  16081. !*** ./node_modules/moment/locale/vi.js ***!
  16082. \******************************************/
  16083. /*! no static exports found */
  16084. /***/ (function(module, exports, __webpack_require__) {
  16085. //! moment.js locale configuration
  16086. //! locale : Vietnamese [vi]
  16087. //! author : Bang Nguyen : https://github.com/bangnk
  16088. ;(function (global, factory) {
  16089. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16090. undefined
  16091. }(this, (function (moment) { 'use strict';
  16092. var vi = moment.defineLocale('vi', {
  16093. 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('_'),
  16094. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  16095. monthsParseExact : true,
  16096. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  16097. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16098. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16099. weekdaysParseExact : true,
  16100. meridiemParse: /sa|ch/i,
  16101. isPM : function (input) {
  16102. return /^ch$/i.test(input);
  16103. },
  16104. meridiem : function (hours, minutes, isLower) {
  16105. if (hours < 12) {
  16106. return isLower ? 'sa' : 'SA';
  16107. } else {
  16108. return isLower ? 'ch' : 'CH';
  16109. }
  16110. },
  16111. longDateFormat : {
  16112. LT : 'HH:mm',
  16113. LTS : 'HH:mm:ss',
  16114. L : 'DD/MM/YYYY',
  16115. LL : 'D MMMM [năm] YYYY',
  16116. LLL : 'D MMMM [năm] YYYY HH:mm',
  16117. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  16118. l : 'DD/M/YYYY',
  16119. ll : 'D MMM YYYY',
  16120. lll : 'D MMM YYYY HH:mm',
  16121. llll : 'ddd, D MMM YYYY HH:mm'
  16122. },
  16123. calendar : {
  16124. sameDay: '[Hôm nay lúc] LT',
  16125. nextDay: '[Ngày mai lúc] LT',
  16126. nextWeek: 'dddd [tuần tới lúc] LT',
  16127. lastDay: '[Hôm qua lúc] LT',
  16128. lastWeek: 'dddd [tuần rồi lúc] LT',
  16129. sameElse: 'L'
  16130. },
  16131. relativeTime : {
  16132. future : '%s tới',
  16133. past : '%s trước',
  16134. s : 'vài giây',
  16135. m : 'một phút',
  16136. mm : '%d phút',
  16137. h : 'một giờ',
  16138. hh : '%d giờ',
  16139. d : 'một ngày',
  16140. dd : '%d ngày',
  16141. M : 'một tháng',
  16142. MM : '%d tháng',
  16143. y : 'một năm',
  16144. yy : '%d năm'
  16145. },
  16146. dayOfMonthOrdinalParse: /\d{1,2}/,
  16147. ordinal : function (number) {
  16148. return number;
  16149. },
  16150. week : {
  16151. dow : 1, // Monday is the first day of the week.
  16152. doy : 4 // The week that contains Jan 4th is the first week of the year.
  16153. }
  16154. });
  16155. return vi;
  16156. })));
  16157. /***/ }),
  16158. /***/ "./node_modules/moment/locale/x-pseudo.js":
  16159. /*!************************************************!*\
  16160. !*** ./node_modules/moment/locale/x-pseudo.js ***!
  16161. \************************************************/
  16162. /*! no static exports found */
  16163. /***/ (function(module, exports, __webpack_require__) {
  16164. //! moment.js locale configuration
  16165. //! locale : Pseudo [x-pseudo]
  16166. //! author : Andrew Hood : https://github.com/andrewhood125
  16167. ;(function (global, factory) {
  16168. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16169. undefined
  16170. }(this, (function (moment) { 'use strict';
  16171. var xPseudo = moment.defineLocale('x-pseudo', {
  16172. 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('_'),
  16173. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  16174. monthsParseExact : true,
  16175. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  16176. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16177. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16178. weekdaysParseExact : true,
  16179. longDateFormat : {
  16180. LT : 'HH:mm',
  16181. L : 'DD/MM/YYYY',
  16182. LL : 'D MMMM YYYY',
  16183. LLL : 'D MMMM YYYY HH:mm',
  16184. LLLL : 'dddd, D MMMM YYYY HH:mm'
  16185. },
  16186. calendar : {
  16187. sameDay : '[T~ódá~ý át] LT',
  16188. nextDay : '[T~ómó~rró~w át] LT',
  16189. nextWeek : 'dddd [át] LT',
  16190. lastDay : '[Ý~ést~érdá~ý át] LT',
  16191. lastWeek : '[L~ást] dddd [át] LT',
  16192. sameElse : 'L'
  16193. },
  16194. relativeTime : {
  16195. future : 'í~ñ %s',
  16196. past : '%s á~gó',
  16197. s : 'á ~féw ~sécó~ñds',
  16198. m : 'á ~míñ~úté',
  16199. mm : '%d m~íñú~tés',
  16200. h : 'á~ñ hó~úr',
  16201. hh : '%d h~óúrs',
  16202. d : 'á ~dáý',
  16203. dd : '%d d~áýs',
  16204. M : 'á ~móñ~th',
  16205. MM : '%d m~óñt~hs',
  16206. y : 'á ~ýéár',
  16207. yy : '%d ý~éárs'
  16208. },
  16209. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16210. ordinal : function (number) {
  16211. var b = number % 10,
  16212. output = (~~(number % 100 / 10) === 1) ? 'th' :
  16213. (b === 1) ? 'st' :
  16214. (b === 2) ? 'nd' :
  16215. (b === 3) ? 'rd' : 'th';
  16216. return number + output;
  16217. },
  16218. week : {
  16219. dow : 1, // Monday is the first day of the week.
  16220. doy : 4 // The week that contains Jan 4th is the first week of the year.
  16221. }
  16222. });
  16223. return xPseudo;
  16224. })));
  16225. /***/ }),
  16226. /***/ "./node_modules/moment/locale/yo.js":
  16227. /*!******************************************!*\
  16228. !*** ./node_modules/moment/locale/yo.js ***!
  16229. \******************************************/
  16230. /*! no static exports found */
  16231. /***/ (function(module, exports, __webpack_require__) {
  16232. //! moment.js locale configuration
  16233. //! locale : Yoruba Nigeria [yo]
  16234. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  16235. ;(function (global, factory) {
  16236. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16237. undefined
  16238. }(this, (function (moment) { 'use strict';
  16239. var yo = moment.defineLocale('yo', {
  16240. months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  16241. monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16242. weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16243. weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16244. weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16245. longDateFormat : {
  16246. LT : 'h:mm A',
  16247. LTS : 'h:mm:ss A',
  16248. L : 'DD/MM/YYYY',
  16249. LL : 'D MMMM YYYY',
  16250. LLL : 'D MMMM YYYY h:mm A',
  16251. LLLL : 'dddd, D MMMM YYYY h:mm A'
  16252. },
  16253. calendar : {
  16254. sameDay : '[Ònì ni] LT',
  16255. nextDay : '[Ọ̀la ni] LT',
  16256. nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  16257. lastDay : '[Àna ni] LT',
  16258. lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16259. sameElse : 'L'
  16260. },
  16261. relativeTime : {
  16262. future : 'ní %s',
  16263. past : '%s kọjá',
  16264. s : 'ìsẹjú aayá die',
  16265. m : 'ìsẹjú kan',
  16266. mm : 'ìsẹjú %d',
  16267. h : 'wákati kan',
  16268. hh : 'wákati %d',
  16269. d : 'ọjọ́ kan',
  16270. dd : 'ọjọ́ %d',
  16271. M : 'osù kan',
  16272. MM : 'osù %d',
  16273. y : 'ọdún kan',
  16274. yy : 'ọdún %d'
  16275. },
  16276. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  16277. ordinal : 'ọjọ́ %d',
  16278. week : {
  16279. dow : 1, // Monday is the first day of the week.
  16280. doy : 4 // The week that contains Jan 4th is the first week of the year.
  16281. }
  16282. });
  16283. return yo;
  16284. })));
  16285. /***/ }),
  16286. /***/ "./node_modules/moment/locale/zh-cn.js":
  16287. /*!*********************************************!*\
  16288. !*** ./node_modules/moment/locale/zh-cn.js ***!
  16289. \*********************************************/
  16290. /*! no static exports found */
  16291. /***/ (function(module, exports, __webpack_require__) {
  16292. //! moment.js locale configuration
  16293. //! locale : Chinese (China) [zh-cn]
  16294. //! author : suupic : https://github.com/suupic
  16295. //! author : Zeno Zeng : https://github.com/zenozeng
  16296. ;(function (global, factory) {
  16297. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16298. undefined
  16299. }(this, (function (moment) { 'use strict';
  16300. var zhCn = moment.defineLocale('zh-cn', {
  16301. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  16302. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  16303. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16304. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16305. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  16306. longDateFormat : {
  16307. LT : 'HH:mm',
  16308. LTS : 'HH:mm:ss',
  16309. L : 'YYYY年MMMD日',
  16310. LL : 'YYYY年MMMD日',
  16311. LLL : 'YYYY年MMMD日Ah点mm分',
  16312. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  16313. l : 'YYYY年MMMD日',
  16314. ll : 'YYYY年MMMD日',
  16315. lll : 'YYYY年MMMD日 HH:mm',
  16316. llll : 'YYYY年MMMD日dddd HH:mm'
  16317. },
  16318. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16319. meridiemHour: function (hour, meridiem) {
  16320. if (hour === 12) {
  16321. hour = 0;
  16322. }
  16323. if (meridiem === '凌晨' || meridiem === '早上' ||
  16324. meridiem === '上午') {
  16325. return hour;
  16326. } else if (meridiem === '下午' || meridiem === '晚上') {
  16327. return hour + 12;
  16328. } else {
  16329. // '中午'
  16330. return hour >= 11 ? hour : hour + 12;
  16331. }
  16332. },
  16333. meridiem : function (hour, minute, isLower) {
  16334. var hm = hour * 100 + minute;
  16335. if (hm < 600) {
  16336. return '凌晨';
  16337. } else if (hm < 900) {
  16338. return '早上';
  16339. } else if (hm < 1130) {
  16340. return '上午';
  16341. } else if (hm < 1230) {
  16342. return '中午';
  16343. } else if (hm < 1800) {
  16344. return '下午';
  16345. } else {
  16346. return '晚上';
  16347. }
  16348. },
  16349. calendar : {
  16350. sameDay : '[今天]LT',
  16351. nextDay : '[明天]LT',
  16352. nextWeek : '[下]ddddLT',
  16353. lastDay : '[昨天]LT',
  16354. lastWeek : '[上]ddddLT',
  16355. sameElse : 'L'
  16356. },
  16357. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16358. ordinal : function (number, period) {
  16359. switch (period) {
  16360. case 'd':
  16361. case 'D':
  16362. case 'DDD':
  16363. return number + '日';
  16364. case 'M':
  16365. return number + '月';
  16366. case 'w':
  16367. case 'W':
  16368. return number + '周';
  16369. default:
  16370. return number;
  16371. }
  16372. },
  16373. relativeTime : {
  16374. future : '%s内',
  16375. past : '%s前',
  16376. s : '几秒',
  16377. m : '1 分钟',
  16378. mm : '%d 分钟',
  16379. h : '1 小时',
  16380. hh : '%d 小时',
  16381. d : '1 天',
  16382. dd : '%d 天',
  16383. M : '1 个月',
  16384. MM : '%d 个月',
  16385. y : '1 年',
  16386. yy : '%d 年'
  16387. },
  16388. week : {
  16389. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16390. dow : 1, // Monday is the first day of the week.
  16391. doy : 4 // The week that contains Jan 4th is the first week of the year.
  16392. }
  16393. });
  16394. return zhCn;
  16395. })));
  16396. /***/ }),
  16397. /***/ "./node_modules/moment/locale/zh-hk.js":
  16398. /*!*********************************************!*\
  16399. !*** ./node_modules/moment/locale/zh-hk.js ***!
  16400. \*********************************************/
  16401. /*! no static exports found */
  16402. /***/ (function(module, exports, __webpack_require__) {
  16403. //! moment.js locale configuration
  16404. //! locale : Chinese (Hong Kong) [zh-hk]
  16405. //! author : Ben : https://github.com/ben-lin
  16406. //! author : Chris Lam : https://github.com/hehachris
  16407. //! author : Konstantin : https://github.com/skfd
  16408. ;(function (global, factory) {
  16409. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16410. undefined
  16411. }(this, (function (moment) { 'use strict';
  16412. var zhHk = moment.defineLocale('zh-hk', {
  16413. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  16414. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  16415. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16416. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16417. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  16418. longDateFormat : {
  16419. LT : 'HH:mm',
  16420. LTS : 'HH:mm:ss',
  16421. L : 'YYYY年MMMD日',
  16422. LL : 'YYYY年MMMD日',
  16423. LLL : 'YYYY年MMMD日 HH:mm',
  16424. LLLL : 'YYYY年MMMD日dddd HH:mm',
  16425. l : 'YYYY年MMMD日',
  16426. ll : 'YYYY年MMMD日',
  16427. lll : 'YYYY年MMMD日 HH:mm',
  16428. llll : 'YYYY年MMMD日dddd HH:mm'
  16429. },
  16430. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16431. meridiemHour : function (hour, meridiem) {
  16432. if (hour === 12) {
  16433. hour = 0;
  16434. }
  16435. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16436. return hour;
  16437. } else if (meridiem === '中午') {
  16438. return hour >= 11 ? hour : hour + 12;
  16439. } else if (meridiem === '下午' || meridiem === '晚上') {
  16440. return hour + 12;
  16441. }
  16442. },
  16443. meridiem : function (hour, minute, isLower) {
  16444. var hm = hour * 100 + minute;
  16445. if (hm < 600) {
  16446. return '凌晨';
  16447. } else if (hm < 900) {
  16448. return '早上';
  16449. } else if (hm < 1130) {
  16450. return '上午';
  16451. } else if (hm < 1230) {
  16452. return '中午';
  16453. } else if (hm < 1800) {
  16454. return '下午';
  16455. } else {
  16456. return '晚上';
  16457. }
  16458. },
  16459. calendar : {
  16460. sameDay : '[今天]LT',
  16461. nextDay : '[明天]LT',
  16462. nextWeek : '[下]ddddLT',
  16463. lastDay : '[昨天]LT',
  16464. lastWeek : '[上]ddddLT',
  16465. sameElse : 'L'
  16466. },
  16467. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16468. ordinal : function (number, period) {
  16469. switch (period) {
  16470. case 'd' :
  16471. case 'D' :
  16472. case 'DDD' :
  16473. return number + '日';
  16474. case 'M' :
  16475. return number + '月';
  16476. case 'w' :
  16477. case 'W' :
  16478. return number + '週';
  16479. default :
  16480. return number;
  16481. }
  16482. },
  16483. relativeTime : {
  16484. future : '%s內',
  16485. past : '%s前',
  16486. s : '幾秒',
  16487. m : '1 分鐘',
  16488. mm : '%d 分鐘',
  16489. h : '1 小時',
  16490. hh : '%d 小時',
  16491. d : '1 天',
  16492. dd : '%d 天',
  16493. M : '1 個月',
  16494. MM : '%d 個月',
  16495. y : '1 年',
  16496. yy : '%d 年'
  16497. }
  16498. });
  16499. return zhHk;
  16500. })));
  16501. /***/ }),
  16502. /***/ "./node_modules/moment/locale/zh-tw.js":
  16503. /*!*********************************************!*\
  16504. !*** ./node_modules/moment/locale/zh-tw.js ***!
  16505. \*********************************************/
  16506. /*! no static exports found */
  16507. /***/ (function(module, exports, __webpack_require__) {
  16508. //! moment.js locale configuration
  16509. //! locale : Chinese (Taiwan) [zh-tw]
  16510. //! author : Ben : https://github.com/ben-lin
  16511. //! author : Chris Lam : https://github.com/hehachris
  16512. ;(function (global, factory) {
  16513. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16514. undefined
  16515. }(this, (function (moment) { 'use strict';
  16516. var zhTw = moment.defineLocale('zh-tw', {
  16517. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  16518. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  16519. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16520. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16521. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  16522. longDateFormat : {
  16523. LT : 'HH:mm',
  16524. LTS : 'HH:mm:ss',
  16525. L : 'YYYY年MMMD日',
  16526. LL : 'YYYY年MMMD日',
  16527. LLL : 'YYYY年MMMD日 HH:mm',
  16528. LLLL : 'YYYY年MMMD日dddd HH:mm',
  16529. l : 'YYYY年MMMD日',
  16530. ll : 'YYYY年MMMD日',
  16531. lll : 'YYYY年MMMD日 HH:mm',
  16532. llll : 'YYYY年MMMD日dddd HH:mm'
  16533. },
  16534. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16535. meridiemHour : function (hour, meridiem) {
  16536. if (hour === 12) {
  16537. hour = 0;
  16538. }
  16539. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16540. return hour;
  16541. } else if (meridiem === '中午') {
  16542. return hour >= 11 ? hour : hour + 12;
  16543. } else if (meridiem === '下午' || meridiem === '晚上') {
  16544. return hour + 12;
  16545. }
  16546. },
  16547. meridiem : function (hour, minute, isLower) {
  16548. var hm = hour * 100 + minute;
  16549. if (hm < 600) {
  16550. return '凌晨';
  16551. } else if (hm < 900) {
  16552. return '早上';
  16553. } else if (hm < 1130) {
  16554. return '上午';
  16555. } else if (hm < 1230) {
  16556. return '中午';
  16557. } else if (hm < 1800) {
  16558. return '下午';
  16559. } else {
  16560. return '晚上';
  16561. }
  16562. },
  16563. calendar : {
  16564. sameDay : '[今天]LT',
  16565. nextDay : '[明天]LT',
  16566. nextWeek : '[下]ddddLT',
  16567. lastDay : '[昨天]LT',
  16568. lastWeek : '[上]ddddLT',
  16569. sameElse : 'L'
  16570. },
  16571. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16572. ordinal : function (number, period) {
  16573. switch (period) {
  16574. case 'd' :
  16575. case 'D' :
  16576. case 'DDD' :
  16577. return number + '日';
  16578. case 'M' :
  16579. return number + '月';
  16580. case 'w' :
  16581. case 'W' :
  16582. return number + '週';
  16583. default :
  16584. return number;
  16585. }
  16586. },
  16587. relativeTime : {
  16588. future : '%s內',
  16589. past : '%s前',
  16590. s : '幾秒',
  16591. m : '1 分鐘',
  16592. mm : '%d 分鐘',
  16593. h : '1 小時',
  16594. hh : '%d 小時',
  16595. d : '1 天',
  16596. dd : '%d 天',
  16597. M : '1 個月',
  16598. MM : '%d 個月',
  16599. y : '1 年',
  16600. yy : '%d 年'
  16601. }
  16602. });
  16603. return zhTw;
  16604. })));
  16605. /***/ }),
  16606. /***/ "./node_modules/moment/moment.js":
  16607. /*!***************************************!*\
  16608. !*** ./node_modules/moment/moment.js ***!
  16609. \***************************************/
  16610. /*! no static exports found */
  16611. /***/ (function(module, exports, __webpack_require__) {
  16612. /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
  16613. //! version : 2.19.4
  16614. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  16615. //! license : MIT
  16616. //! momentjs.com
  16617. ;(function (global, factory) {
  16618. true ? module.exports = factory() :
  16619. undefined
  16620. }(this, (function () { 'use strict';
  16621. var hookCallback;
  16622. function hooks () {
  16623. return hookCallback.apply(null, arguments);
  16624. }
  16625. // This is done to register the method called with moment()
  16626. // without creating circular dependencies.
  16627. function setHookCallback (callback) {
  16628. hookCallback = callback;
  16629. }
  16630. function isArray(input) {
  16631. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  16632. }
  16633. function isObject(input) {
  16634. // IE8 will treat undefined and null as object if it wasn't for
  16635. // input != null
  16636. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  16637. }
  16638. function isObjectEmpty(obj) {
  16639. if (Object.getOwnPropertyNames) {
  16640. return (Object.getOwnPropertyNames(obj).length === 0);
  16641. } else {
  16642. var k;
  16643. for (k in obj) {
  16644. if (obj.hasOwnProperty(k)) {
  16645. return false;
  16646. }
  16647. }
  16648. return true;
  16649. }
  16650. }
  16651. function isUndefined(input) {
  16652. return input === void 0;
  16653. }
  16654. function isNumber(input) {
  16655. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  16656. }
  16657. function isDate(input) {
  16658. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  16659. }
  16660. function map(arr, fn) {
  16661. var res = [], i;
  16662. for (i = 0; i < arr.length; ++i) {
  16663. res.push(fn(arr[i], i));
  16664. }
  16665. return res;
  16666. }
  16667. function hasOwnProp(a, b) {
  16668. return Object.prototype.hasOwnProperty.call(a, b);
  16669. }
  16670. function extend(a, b) {
  16671. for (var i in b) {
  16672. if (hasOwnProp(b, i)) {
  16673. a[i] = b[i];
  16674. }
  16675. }
  16676. if (hasOwnProp(b, 'toString')) {
  16677. a.toString = b.toString;
  16678. }
  16679. if (hasOwnProp(b, 'valueOf')) {
  16680. a.valueOf = b.valueOf;
  16681. }
  16682. return a;
  16683. }
  16684. function createUTC (input, format, locale, strict) {
  16685. return createLocalOrUTC(input, format, locale, strict, true).utc();
  16686. }
  16687. function defaultParsingFlags() {
  16688. // We need to deep clone this object.
  16689. return {
  16690. empty : false,
  16691. unusedTokens : [],
  16692. unusedInput : [],
  16693. overflow : -2,
  16694. charsLeftOver : 0,
  16695. nullInput : false,
  16696. invalidMonth : null,
  16697. invalidFormat : false,
  16698. userInvalidated : false,
  16699. iso : false,
  16700. parsedDateParts : [],
  16701. meridiem : null,
  16702. rfc2822 : false,
  16703. weekdayMismatch : false
  16704. };
  16705. }
  16706. function getParsingFlags(m) {
  16707. if (m._pf == null) {
  16708. m._pf = defaultParsingFlags();
  16709. }
  16710. return m._pf;
  16711. }
  16712. var some;
  16713. if (Array.prototype.some) {
  16714. some = Array.prototype.some;
  16715. } else {
  16716. some = function (fun) {
  16717. var t = Object(this);
  16718. var len = t.length >>> 0;
  16719. for (var i = 0; i < len; i++) {
  16720. if (i in t && fun.call(this, t[i], i, t)) {
  16721. return true;
  16722. }
  16723. }
  16724. return false;
  16725. };
  16726. }
  16727. function isValid(m) {
  16728. if (m._isValid == null) {
  16729. var flags = getParsingFlags(m);
  16730. var parsedParts = some.call(flags.parsedDateParts, function (i) {
  16731. return i != null;
  16732. });
  16733. var isNowValid = !isNaN(m._d.getTime()) &&
  16734. flags.overflow < 0 &&
  16735. !flags.empty &&
  16736. !flags.invalidMonth &&
  16737. !flags.invalidWeekday &&
  16738. !flags.weekdayMismatch &&
  16739. !flags.nullInput &&
  16740. !flags.invalidFormat &&
  16741. !flags.userInvalidated &&
  16742. (!flags.meridiem || (flags.meridiem && parsedParts));
  16743. if (m._strict) {
  16744. isNowValid = isNowValid &&
  16745. flags.charsLeftOver === 0 &&
  16746. flags.unusedTokens.length === 0 &&
  16747. flags.bigHour === undefined;
  16748. }
  16749. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  16750. m._isValid = isNowValid;
  16751. }
  16752. else {
  16753. return isNowValid;
  16754. }
  16755. }
  16756. return m._isValid;
  16757. }
  16758. function createInvalid (flags) {
  16759. var m = createUTC(NaN);
  16760. if (flags != null) {
  16761. extend(getParsingFlags(m), flags);
  16762. }
  16763. else {
  16764. getParsingFlags(m).userInvalidated = true;
  16765. }
  16766. return m;
  16767. }
  16768. // Plugins that add properties should also add the key here (null value),
  16769. // so we can properly clone ourselves.
  16770. var momentProperties = hooks.momentProperties = [];
  16771. function copyConfig(to, from) {
  16772. var i, prop, val;
  16773. if (!isUndefined(from._isAMomentObject)) {
  16774. to._isAMomentObject = from._isAMomentObject;
  16775. }
  16776. if (!isUndefined(from._i)) {
  16777. to._i = from._i;
  16778. }
  16779. if (!isUndefined(from._f)) {
  16780. to._f = from._f;
  16781. }
  16782. if (!isUndefined(from._l)) {
  16783. to._l = from._l;
  16784. }
  16785. if (!isUndefined(from._strict)) {
  16786. to._strict = from._strict;
  16787. }
  16788. if (!isUndefined(from._tzm)) {
  16789. to._tzm = from._tzm;
  16790. }
  16791. if (!isUndefined(from._isUTC)) {
  16792. to._isUTC = from._isUTC;
  16793. }
  16794. if (!isUndefined(from._offset)) {
  16795. to._offset = from._offset;
  16796. }
  16797. if (!isUndefined(from._pf)) {
  16798. to._pf = getParsingFlags(from);
  16799. }
  16800. if (!isUndefined(from._locale)) {
  16801. to._locale = from._locale;
  16802. }
  16803. if (momentProperties.length > 0) {
  16804. for (i = 0; i < momentProperties.length; i++) {
  16805. prop = momentProperties[i];
  16806. val = from[prop];
  16807. if (!isUndefined(val)) {
  16808. to[prop] = val;
  16809. }
  16810. }
  16811. }
  16812. return to;
  16813. }
  16814. var updateInProgress = false;
  16815. // Moment prototype object
  16816. function Moment(config) {
  16817. copyConfig(this, config);
  16818. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  16819. if (!this.isValid()) {
  16820. this._d = new Date(NaN);
  16821. }
  16822. // Prevent infinite loop in case updateOffset creates new moment
  16823. // objects.
  16824. if (updateInProgress === false) {
  16825. updateInProgress = true;
  16826. hooks.updateOffset(this);
  16827. updateInProgress = false;
  16828. }
  16829. }
  16830. function isMoment (obj) {
  16831. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  16832. }
  16833. function absFloor (number) {
  16834. if (number < 0) {
  16835. // -0 -> 0
  16836. return Math.ceil(number) || 0;
  16837. } else {
  16838. return Math.floor(number);
  16839. }
  16840. }
  16841. function toInt(argumentForCoercion) {
  16842. var coercedNumber = +argumentForCoercion,
  16843. value = 0;
  16844. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  16845. value = absFloor(coercedNumber);
  16846. }
  16847. return value;
  16848. }
  16849. // compare two arrays, return the number of differences
  16850. function compareArrays(array1, array2, dontConvert) {
  16851. var len = Math.min(array1.length, array2.length),
  16852. lengthDiff = Math.abs(array1.length - array2.length),
  16853. diffs = 0,
  16854. i;
  16855. for (i = 0; i < len; i++) {
  16856. if ((dontConvert && array1[i] !== array2[i]) ||
  16857. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  16858. diffs++;
  16859. }
  16860. }
  16861. return diffs + lengthDiff;
  16862. }
  16863. function warn(msg) {
  16864. if (hooks.suppressDeprecationWarnings === false &&
  16865. (typeof console !== 'undefined') && console.warn) {
  16866. console.warn('Deprecation warning: ' + msg);
  16867. }
  16868. }
  16869. function deprecate(msg, fn) {
  16870. var firstTime = true;
  16871. return extend(function () {
  16872. if (hooks.deprecationHandler != null) {
  16873. hooks.deprecationHandler(null, msg);
  16874. }
  16875. if (firstTime) {
  16876. var args = [];
  16877. var arg;
  16878. for (var i = 0; i < arguments.length; i++) {
  16879. arg = '';
  16880. if (typeof arguments[i] === 'object') {
  16881. arg += '\n[' + i + '] ';
  16882. for (var key in arguments[0]) {
  16883. arg += key + ': ' + arguments[0][key] + ', ';
  16884. }
  16885. arg = arg.slice(0, -2); // Remove trailing comma and space
  16886. } else {
  16887. arg = arguments[i];
  16888. }
  16889. args.push(arg);
  16890. }
  16891. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  16892. firstTime = false;
  16893. }
  16894. return fn.apply(this, arguments);
  16895. }, fn);
  16896. }
  16897. var deprecations = {};
  16898. function deprecateSimple(name, msg) {
  16899. if (hooks.deprecationHandler != null) {
  16900. hooks.deprecationHandler(name, msg);
  16901. }
  16902. if (!deprecations[name]) {
  16903. warn(msg);
  16904. deprecations[name] = true;
  16905. }
  16906. }
  16907. hooks.suppressDeprecationWarnings = false;
  16908. hooks.deprecationHandler = null;
  16909. function isFunction(input) {
  16910. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  16911. }
  16912. function set (config) {
  16913. var prop, i;
  16914. for (i in config) {
  16915. prop = config[i];
  16916. if (isFunction(prop)) {
  16917. this[i] = prop;
  16918. } else {
  16919. this['_' + i] = prop;
  16920. }
  16921. }
  16922. this._config = config;
  16923. // Lenient ordinal parsing accepts just a number in addition to
  16924. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  16925. // TODO: Remove "ordinalParse" fallback in next major release.
  16926. this._dayOfMonthOrdinalParseLenient = new RegExp(
  16927. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  16928. '|' + (/\d{1,2}/).source);
  16929. }
  16930. function mergeConfigs(parentConfig, childConfig) {
  16931. var res = extend({}, parentConfig), prop;
  16932. for (prop in childConfig) {
  16933. if (hasOwnProp(childConfig, prop)) {
  16934. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  16935. res[prop] = {};
  16936. extend(res[prop], parentConfig[prop]);
  16937. extend(res[prop], childConfig[prop]);
  16938. } else if (childConfig[prop] != null) {
  16939. res[prop] = childConfig[prop];
  16940. } else {
  16941. delete res[prop];
  16942. }
  16943. }
  16944. }
  16945. for (prop in parentConfig) {
  16946. if (hasOwnProp(parentConfig, prop) &&
  16947. !hasOwnProp(childConfig, prop) &&
  16948. isObject(parentConfig[prop])) {
  16949. // make sure changes to properties don't modify parent config
  16950. res[prop] = extend({}, res[prop]);
  16951. }
  16952. }
  16953. return res;
  16954. }
  16955. function Locale(config) {
  16956. if (config != null) {
  16957. this.set(config);
  16958. }
  16959. }
  16960. var keys;
  16961. if (Object.keys) {
  16962. keys = Object.keys;
  16963. } else {
  16964. keys = function (obj) {
  16965. var i, res = [];
  16966. for (i in obj) {
  16967. if (hasOwnProp(obj, i)) {
  16968. res.push(i);
  16969. }
  16970. }
  16971. return res;
  16972. };
  16973. }
  16974. var defaultCalendar = {
  16975. sameDay : '[Today at] LT',
  16976. nextDay : '[Tomorrow at] LT',
  16977. nextWeek : 'dddd [at] LT',
  16978. lastDay : '[Yesterday at] LT',
  16979. lastWeek : '[Last] dddd [at] LT',
  16980. sameElse : 'L'
  16981. };
  16982. function calendar (key, mom, now) {
  16983. var output = this._calendar[key] || this._calendar['sameElse'];
  16984. return isFunction(output) ? output.call(mom, now) : output;
  16985. }
  16986. var defaultLongDateFormat = {
  16987. LTS : 'h:mm:ss A',
  16988. LT : 'h:mm A',
  16989. L : 'MM/DD/YYYY',
  16990. LL : 'MMMM D, YYYY',
  16991. LLL : 'MMMM D, YYYY h:mm A',
  16992. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  16993. };
  16994. function longDateFormat (key) {
  16995. var format = this._longDateFormat[key],
  16996. formatUpper = this._longDateFormat[key.toUpperCase()];
  16997. if (format || !formatUpper) {
  16998. return format;
  16999. }
  17000. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  17001. return val.slice(1);
  17002. });
  17003. return this._longDateFormat[key];
  17004. }
  17005. var defaultInvalidDate = 'Invalid date';
  17006. function invalidDate () {
  17007. return this._invalidDate;
  17008. }
  17009. var defaultOrdinal = '%d';
  17010. var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  17011. function ordinal (number) {
  17012. return this._ordinal.replace('%d', number);
  17013. }
  17014. var defaultRelativeTime = {
  17015. future : 'in %s',
  17016. past : '%s ago',
  17017. s : 'a few seconds',
  17018. ss : '%d seconds',
  17019. m : 'a minute',
  17020. mm : '%d minutes',
  17021. h : 'an hour',
  17022. hh : '%d hours',
  17023. d : 'a day',
  17024. dd : '%d days',
  17025. M : 'a month',
  17026. MM : '%d months',
  17027. y : 'a year',
  17028. yy : '%d years'
  17029. };
  17030. function relativeTime (number, withoutSuffix, string, isFuture) {
  17031. var output = this._relativeTime[string];
  17032. return (isFunction(output)) ?
  17033. output(number, withoutSuffix, string, isFuture) :
  17034. output.replace(/%d/i, number);
  17035. }
  17036. function pastFuture (diff, output) {
  17037. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  17038. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  17039. }
  17040. var aliases = {};
  17041. function addUnitAlias (unit, shorthand) {
  17042. var lowerCase = unit.toLowerCase();
  17043. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  17044. }
  17045. function normalizeUnits(units) {
  17046. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  17047. }
  17048. function normalizeObjectUnits(inputObject) {
  17049. var normalizedInput = {},
  17050. normalizedProp,
  17051. prop;
  17052. for (prop in inputObject) {
  17053. if (hasOwnProp(inputObject, prop)) {
  17054. normalizedProp = normalizeUnits(prop);
  17055. if (normalizedProp) {
  17056. normalizedInput[normalizedProp] = inputObject[prop];
  17057. }
  17058. }
  17059. }
  17060. return normalizedInput;
  17061. }
  17062. var priorities = {};
  17063. function addUnitPriority(unit, priority) {
  17064. priorities[unit] = priority;
  17065. }
  17066. function getPrioritizedUnits(unitsObj) {
  17067. var units = [];
  17068. for (var u in unitsObj) {
  17069. units.push({unit: u, priority: priorities[u]});
  17070. }
  17071. units.sort(function (a, b) {
  17072. return a.priority - b.priority;
  17073. });
  17074. return units;
  17075. }
  17076. function zeroFill(number, targetLength, forceSign) {
  17077. var absNumber = '' + Math.abs(number),
  17078. zerosToFill = targetLength - absNumber.length,
  17079. sign = number >= 0;
  17080. return (sign ? (forceSign ? '+' : '') : '-') +
  17081. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  17082. }
  17083. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
  17084. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  17085. var formatFunctions = {};
  17086. var formatTokenFunctions = {};
  17087. // token: 'M'
  17088. // padded: ['MM', 2]
  17089. // ordinal: 'Mo'
  17090. // callback: function () { this.month() + 1 }
  17091. function addFormatToken (token, padded, ordinal, callback) {
  17092. var func = callback;
  17093. if (typeof callback === 'string') {
  17094. func = function () {
  17095. return this[callback]();
  17096. };
  17097. }
  17098. if (token) {
  17099. formatTokenFunctions[token] = func;
  17100. }
  17101. if (padded) {
  17102. formatTokenFunctions[padded[0]] = function () {
  17103. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  17104. };
  17105. }
  17106. if (ordinal) {
  17107. formatTokenFunctions[ordinal] = function () {
  17108. return this.localeData().ordinal(func.apply(this, arguments), token);
  17109. };
  17110. }
  17111. }
  17112. function removeFormattingTokens(input) {
  17113. if (input.match(/\[[\s\S]/)) {
  17114. return input.replace(/^\[|\]$/g, '');
  17115. }
  17116. return input.replace(/\\/g, '');
  17117. }
  17118. function makeFormatFunction(format) {
  17119. var array = format.match(formattingTokens), i, length;
  17120. for (i = 0, length = array.length; i < length; i++) {
  17121. if (formatTokenFunctions[array[i]]) {
  17122. array[i] = formatTokenFunctions[array[i]];
  17123. } else {
  17124. array[i] = removeFormattingTokens(array[i]);
  17125. }
  17126. }
  17127. return function (mom) {
  17128. var output = '', i;
  17129. for (i = 0; i < length; i++) {
  17130. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  17131. }
  17132. return output;
  17133. };
  17134. }
  17135. // format date using native date object
  17136. function formatMoment(m, format) {
  17137. if (!m.isValid()) {
  17138. return m.localeData().invalidDate();
  17139. }
  17140. format = expandFormat(format, m.localeData());
  17141. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  17142. return formatFunctions[format](m);
  17143. }
  17144. function expandFormat(format, locale) {
  17145. var i = 5;
  17146. function replaceLongDateFormatTokens(input) {
  17147. return locale.longDateFormat(input) || input;
  17148. }
  17149. localFormattingTokens.lastIndex = 0;
  17150. while (i >= 0 && localFormattingTokens.test(format)) {
  17151. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  17152. localFormattingTokens.lastIndex = 0;
  17153. i -= 1;
  17154. }
  17155. return format;
  17156. }
  17157. var match1 = /\d/; // 0 - 9
  17158. var match2 = /\d\d/; // 00 - 99
  17159. var match3 = /\d{3}/; // 000 - 999
  17160. var match4 = /\d{4}/; // 0000 - 9999
  17161. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  17162. var match1to2 = /\d\d?/; // 0 - 99
  17163. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  17164. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  17165. var match1to3 = /\d{1,3}/; // 0 - 999
  17166. var match1to4 = /\d{1,4}/; // 0 - 9999
  17167. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  17168. var matchUnsigned = /\d+/; // 0 - inf
  17169. var matchSigned = /[+-]?\d+/; // -inf - inf
  17170. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  17171. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  17172. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  17173. // any word (or two) characters or numbers including two/three word month in arabic.
  17174. // includes scottish gaelic two word and hyphenated months
  17175. var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
  17176. var regexes = {};
  17177. function addRegexToken (token, regex, strictRegex) {
  17178. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  17179. return (isStrict && strictRegex) ? strictRegex : regex;
  17180. };
  17181. }
  17182. function getParseRegexForToken (token, config) {
  17183. if (!hasOwnProp(regexes, token)) {
  17184. return new RegExp(unescapeFormat(token));
  17185. }
  17186. return regexes[token](config._strict, config._locale);
  17187. }
  17188. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  17189. function unescapeFormat(s) {
  17190. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  17191. return p1 || p2 || p3 || p4;
  17192. }));
  17193. }
  17194. function regexEscape(s) {
  17195. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  17196. }
  17197. var tokens = {};
  17198. function addParseToken (token, callback) {
  17199. var i, func = callback;
  17200. if (typeof token === 'string') {
  17201. token = [token];
  17202. }
  17203. if (isNumber(callback)) {
  17204. func = function (input, array) {
  17205. array[callback] = toInt(input);
  17206. };
  17207. }
  17208. for (i = 0; i < token.length; i++) {
  17209. tokens[token[i]] = func;
  17210. }
  17211. }
  17212. function addWeekParseToken (token, callback) {
  17213. addParseToken(token, function (input, array, config, token) {
  17214. config._w = config._w || {};
  17215. callback(input, config._w, config, token);
  17216. });
  17217. }
  17218. function addTimeToArrayFromToken(token, input, config) {
  17219. if (input != null && hasOwnProp(tokens, token)) {
  17220. tokens[token](input, config._a, config, token);
  17221. }
  17222. }
  17223. var YEAR = 0;
  17224. var MONTH = 1;
  17225. var DATE = 2;
  17226. var HOUR = 3;
  17227. var MINUTE = 4;
  17228. var SECOND = 5;
  17229. var MILLISECOND = 6;
  17230. var WEEK = 7;
  17231. var WEEKDAY = 8;
  17232. // FORMATTING
  17233. addFormatToken('Y', 0, 0, function () {
  17234. var y = this.year();
  17235. return y <= 9999 ? '' + y : '+' + y;
  17236. });
  17237. addFormatToken(0, ['YY', 2], 0, function () {
  17238. return this.year() % 100;
  17239. });
  17240. addFormatToken(0, ['YYYY', 4], 0, 'year');
  17241. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  17242. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  17243. // ALIASES
  17244. addUnitAlias('year', 'y');
  17245. // PRIORITIES
  17246. addUnitPriority('year', 1);
  17247. // PARSING
  17248. addRegexToken('Y', matchSigned);
  17249. addRegexToken('YY', match1to2, match2);
  17250. addRegexToken('YYYY', match1to4, match4);
  17251. addRegexToken('YYYYY', match1to6, match6);
  17252. addRegexToken('YYYYYY', match1to6, match6);
  17253. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  17254. addParseToken('YYYY', function (input, array) {
  17255. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  17256. });
  17257. addParseToken('YY', function (input, array) {
  17258. array[YEAR] = hooks.parseTwoDigitYear(input);
  17259. });
  17260. addParseToken('Y', function (input, array) {
  17261. array[YEAR] = parseInt(input, 10);
  17262. });
  17263. // HELPERS
  17264. function daysInYear(year) {
  17265. return isLeapYear(year) ? 366 : 365;
  17266. }
  17267. function isLeapYear(year) {
  17268. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  17269. }
  17270. // HOOKS
  17271. hooks.parseTwoDigitYear = function (input) {
  17272. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  17273. };
  17274. // MOMENTS
  17275. var getSetYear = makeGetSet('FullYear', true);
  17276. function getIsLeapYear () {
  17277. return isLeapYear(this.year());
  17278. }
  17279. function makeGetSet (unit, keepTime) {
  17280. return function (value) {
  17281. if (value != null) {
  17282. set$1(this, unit, value);
  17283. hooks.updateOffset(this, keepTime);
  17284. return this;
  17285. } else {
  17286. return get(this, unit);
  17287. }
  17288. };
  17289. }
  17290. function get (mom, unit) {
  17291. return mom.isValid() ?
  17292. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  17293. }
  17294. function set$1 (mom, unit, value) {
  17295. if (mom.isValid() && !isNaN(value)) {
  17296. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  17297. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  17298. }
  17299. else {
  17300. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  17301. }
  17302. }
  17303. }
  17304. // MOMENTS
  17305. function stringGet (units) {
  17306. units = normalizeUnits(units);
  17307. if (isFunction(this[units])) {
  17308. return this[units]();
  17309. }
  17310. return this;
  17311. }
  17312. function stringSet (units, value) {
  17313. if (typeof units === 'object') {
  17314. units = normalizeObjectUnits(units);
  17315. var prioritized = getPrioritizedUnits(units);
  17316. for (var i = 0; i < prioritized.length; i++) {
  17317. this[prioritized[i].unit](units[prioritized[i].unit]);
  17318. }
  17319. } else {
  17320. units = normalizeUnits(units);
  17321. if (isFunction(this[units])) {
  17322. return this[units](value);
  17323. }
  17324. }
  17325. return this;
  17326. }
  17327. function mod(n, x) {
  17328. return ((n % x) + x) % x;
  17329. }
  17330. var indexOf;
  17331. if (Array.prototype.indexOf) {
  17332. indexOf = Array.prototype.indexOf;
  17333. } else {
  17334. indexOf = function (o) {
  17335. // I know
  17336. var i;
  17337. for (i = 0; i < this.length; ++i) {
  17338. if (this[i] === o) {
  17339. return i;
  17340. }
  17341. }
  17342. return -1;
  17343. };
  17344. }
  17345. function daysInMonth(year, month) {
  17346. if (isNaN(year) || isNaN(month)) {
  17347. return NaN;
  17348. }
  17349. var modMonth = mod(month, 12);
  17350. year += (month - modMonth) / 12;
  17351. return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
  17352. }
  17353. // FORMATTING
  17354. addFormatToken('M', ['MM', 2], 'Mo', function () {
  17355. return this.month() + 1;
  17356. });
  17357. addFormatToken('MMM', 0, 0, function (format) {
  17358. return this.localeData().monthsShort(this, format);
  17359. });
  17360. addFormatToken('MMMM', 0, 0, function (format) {
  17361. return this.localeData().months(this, format);
  17362. });
  17363. // ALIASES
  17364. addUnitAlias('month', 'M');
  17365. // PRIORITY
  17366. addUnitPriority('month', 8);
  17367. // PARSING
  17368. addRegexToken('M', match1to2);
  17369. addRegexToken('MM', match1to2, match2);
  17370. addRegexToken('MMM', function (isStrict, locale) {
  17371. return locale.monthsShortRegex(isStrict);
  17372. });
  17373. addRegexToken('MMMM', function (isStrict, locale) {
  17374. return locale.monthsRegex(isStrict);
  17375. });
  17376. addParseToken(['M', 'MM'], function (input, array) {
  17377. array[MONTH] = toInt(input) - 1;
  17378. });
  17379. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  17380. var month = config._locale.monthsParse(input, token, config._strict);
  17381. // if we didn't find a month name, mark the date as invalid.
  17382. if (month != null) {
  17383. array[MONTH] = month;
  17384. } else {
  17385. getParsingFlags(config).invalidMonth = input;
  17386. }
  17387. });
  17388. // LOCALES
  17389. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
  17390. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  17391. function localeMonths (m, format) {
  17392. if (!m) {
  17393. return isArray(this._months) ? this._months :
  17394. this._months['standalone'];
  17395. }
  17396. return isArray(this._months) ? this._months[m.month()] :
  17397. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  17398. }
  17399. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  17400. function localeMonthsShort (m, format) {
  17401. if (!m) {
  17402. return isArray(this._monthsShort) ? this._monthsShort :
  17403. this._monthsShort['standalone'];
  17404. }
  17405. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  17406. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  17407. }
  17408. function handleStrictParse(monthName, format, strict) {
  17409. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  17410. if (!this._monthsParse) {
  17411. // this is not used
  17412. this._monthsParse = [];
  17413. this._longMonthsParse = [];
  17414. this._shortMonthsParse = [];
  17415. for (i = 0; i < 12; ++i) {
  17416. mom = createUTC([2000, i]);
  17417. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  17418. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  17419. }
  17420. }
  17421. if (strict) {
  17422. if (format === 'MMM') {
  17423. ii = indexOf.call(this._shortMonthsParse, llc);
  17424. return ii !== -1 ? ii : null;
  17425. } else {
  17426. ii = indexOf.call(this._longMonthsParse, llc);
  17427. return ii !== -1 ? ii : null;
  17428. }
  17429. } else {
  17430. if (format === 'MMM') {
  17431. ii = indexOf.call(this._shortMonthsParse, llc);
  17432. if (ii !== -1) {
  17433. return ii;
  17434. }
  17435. ii = indexOf.call(this._longMonthsParse, llc);
  17436. return ii !== -1 ? ii : null;
  17437. } else {
  17438. ii = indexOf.call(this._longMonthsParse, llc);
  17439. if (ii !== -1) {
  17440. return ii;
  17441. }
  17442. ii = indexOf.call(this._shortMonthsParse, llc);
  17443. return ii !== -1 ? ii : null;
  17444. }
  17445. }
  17446. }
  17447. function localeMonthsParse (monthName, format, strict) {
  17448. var i, mom, regex;
  17449. if (this._monthsParseExact) {
  17450. return handleStrictParse.call(this, monthName, format, strict);
  17451. }
  17452. if (!this._monthsParse) {
  17453. this._monthsParse = [];
  17454. this._longMonthsParse = [];
  17455. this._shortMonthsParse = [];
  17456. }
  17457. // TODO: add sorting
  17458. // Sorting makes sure if one month (or abbr) is a prefix of another
  17459. // see sorting in computeMonthsParse
  17460. for (i = 0; i < 12; i++) {
  17461. // make the regex if we don't have it already
  17462. mom = createUTC([2000, i]);
  17463. if (strict && !this._longMonthsParse[i]) {
  17464. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  17465. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  17466. }
  17467. if (!strict && !this._monthsParse[i]) {
  17468. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  17469. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  17470. }
  17471. // test the regex
  17472. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  17473. return i;
  17474. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  17475. return i;
  17476. } else if (!strict && this._monthsParse[i].test(monthName)) {
  17477. return i;
  17478. }
  17479. }
  17480. }
  17481. // MOMENTS
  17482. function setMonth (mom, value) {
  17483. var dayOfMonth;
  17484. if (!mom.isValid()) {
  17485. // No op
  17486. return mom;
  17487. }
  17488. if (typeof value === 'string') {
  17489. if (/^\d+$/.test(value)) {
  17490. value = toInt(value);
  17491. } else {
  17492. value = mom.localeData().monthsParse(value);
  17493. // TODO: Another silent failure?
  17494. if (!isNumber(value)) {
  17495. return mom;
  17496. }
  17497. }
  17498. }
  17499. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  17500. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  17501. return mom;
  17502. }
  17503. function getSetMonth (value) {
  17504. if (value != null) {
  17505. setMonth(this, value);
  17506. hooks.updateOffset(this, true);
  17507. return this;
  17508. } else {
  17509. return get(this, 'Month');
  17510. }
  17511. }
  17512. function getDaysInMonth () {
  17513. return daysInMonth(this.year(), this.month());
  17514. }
  17515. var defaultMonthsShortRegex = matchWord;
  17516. function monthsShortRegex (isStrict) {
  17517. if (this._monthsParseExact) {
  17518. if (!hasOwnProp(this, '_monthsRegex')) {
  17519. computeMonthsParse.call(this);
  17520. }
  17521. if (isStrict) {
  17522. return this._monthsShortStrictRegex;
  17523. } else {
  17524. return this._monthsShortRegex;
  17525. }
  17526. } else {
  17527. if (!hasOwnProp(this, '_monthsShortRegex')) {
  17528. this._monthsShortRegex = defaultMonthsShortRegex;
  17529. }
  17530. return this._monthsShortStrictRegex && isStrict ?
  17531. this._monthsShortStrictRegex : this._monthsShortRegex;
  17532. }
  17533. }
  17534. var defaultMonthsRegex = matchWord;
  17535. function monthsRegex (isStrict) {
  17536. if (this._monthsParseExact) {
  17537. if (!hasOwnProp(this, '_monthsRegex')) {
  17538. computeMonthsParse.call(this);
  17539. }
  17540. if (isStrict) {
  17541. return this._monthsStrictRegex;
  17542. } else {
  17543. return this._monthsRegex;
  17544. }
  17545. } else {
  17546. if (!hasOwnProp(this, '_monthsRegex')) {
  17547. this._monthsRegex = defaultMonthsRegex;
  17548. }
  17549. return this._monthsStrictRegex && isStrict ?
  17550. this._monthsStrictRegex : this._monthsRegex;
  17551. }
  17552. }
  17553. function computeMonthsParse () {
  17554. function cmpLenRev(a, b) {
  17555. return b.length - a.length;
  17556. }
  17557. var shortPieces = [], longPieces = [], mixedPieces = [],
  17558. i, mom;
  17559. for (i = 0; i < 12; i++) {
  17560. // make the regex if we don't have it already
  17561. mom = createUTC([2000, i]);
  17562. shortPieces.push(this.monthsShort(mom, ''));
  17563. longPieces.push(this.months(mom, ''));
  17564. mixedPieces.push(this.months(mom, ''));
  17565. mixedPieces.push(this.monthsShort(mom, ''));
  17566. }
  17567. // Sorting makes sure if one month (or abbr) is a prefix of another it
  17568. // will match the longer piece.
  17569. shortPieces.sort(cmpLenRev);
  17570. longPieces.sort(cmpLenRev);
  17571. mixedPieces.sort(cmpLenRev);
  17572. for (i = 0; i < 12; i++) {
  17573. shortPieces[i] = regexEscape(shortPieces[i]);
  17574. longPieces[i] = regexEscape(longPieces[i]);
  17575. }
  17576. for (i = 0; i < 24; i++) {
  17577. mixedPieces[i] = regexEscape(mixedPieces[i]);
  17578. }
  17579. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  17580. this._monthsShortRegex = this._monthsRegex;
  17581. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  17582. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  17583. }
  17584. function createDate (y, m, d, h, M, s, ms) {
  17585. // can't just apply() to create a date:
  17586. // https://stackoverflow.com/q/181348
  17587. var date = new Date(y, m, d, h, M, s, ms);
  17588. // the date constructor remaps years 0-99 to 1900-1999
  17589. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  17590. date.setFullYear(y);
  17591. }
  17592. return date;
  17593. }
  17594. function createUTCDate (y) {
  17595. var date = new Date(Date.UTC.apply(null, arguments));
  17596. // the Date.UTC function remaps years 0-99 to 1900-1999
  17597. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  17598. date.setUTCFullYear(y);
  17599. }
  17600. return date;
  17601. }
  17602. // start-of-first-week - start-of-year
  17603. function firstWeekOffset(year, dow, doy) {
  17604. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  17605. fwd = 7 + dow - doy,
  17606. // first-week day local weekday -- which local weekday is fwd
  17607. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  17608. return -fwdlw + fwd - 1;
  17609. }
  17610. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  17611. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  17612. var localWeekday = (7 + weekday - dow) % 7,
  17613. weekOffset = firstWeekOffset(year, dow, doy),
  17614. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  17615. resYear, resDayOfYear;
  17616. if (dayOfYear <= 0) {
  17617. resYear = year - 1;
  17618. resDayOfYear = daysInYear(resYear) + dayOfYear;
  17619. } else if (dayOfYear > daysInYear(year)) {
  17620. resYear = year + 1;
  17621. resDayOfYear = dayOfYear - daysInYear(year);
  17622. } else {
  17623. resYear = year;
  17624. resDayOfYear = dayOfYear;
  17625. }
  17626. return {
  17627. year: resYear,
  17628. dayOfYear: resDayOfYear
  17629. };
  17630. }
  17631. function weekOfYear(mom, dow, doy) {
  17632. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  17633. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  17634. resWeek, resYear;
  17635. if (week < 1) {
  17636. resYear = mom.year() - 1;
  17637. resWeek = week + weeksInYear(resYear, dow, doy);
  17638. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  17639. resWeek = week - weeksInYear(mom.year(), dow, doy);
  17640. resYear = mom.year() + 1;
  17641. } else {
  17642. resYear = mom.year();
  17643. resWeek = week;
  17644. }
  17645. return {
  17646. week: resWeek,
  17647. year: resYear
  17648. };
  17649. }
  17650. function weeksInYear(year, dow, doy) {
  17651. var weekOffset = firstWeekOffset(year, dow, doy),
  17652. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  17653. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  17654. }
  17655. // FORMATTING
  17656. addFormatToken('w', ['ww', 2], 'wo', 'week');
  17657. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  17658. // ALIASES
  17659. addUnitAlias('week', 'w');
  17660. addUnitAlias('isoWeek', 'W');
  17661. // PRIORITIES
  17662. addUnitPriority('week', 5);
  17663. addUnitPriority('isoWeek', 5);
  17664. // PARSING
  17665. addRegexToken('w', match1to2);
  17666. addRegexToken('ww', match1to2, match2);
  17667. addRegexToken('W', match1to2);
  17668. addRegexToken('WW', match1to2, match2);
  17669. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  17670. week[token.substr(0, 1)] = toInt(input);
  17671. });
  17672. // HELPERS
  17673. // LOCALES
  17674. function localeWeek (mom) {
  17675. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  17676. }
  17677. var defaultLocaleWeek = {
  17678. dow : 0, // Sunday is the first day of the week.
  17679. doy : 6 // The week that contains Jan 1st is the first week of the year.
  17680. };
  17681. function localeFirstDayOfWeek () {
  17682. return this._week.dow;
  17683. }
  17684. function localeFirstDayOfYear () {
  17685. return this._week.doy;
  17686. }
  17687. // MOMENTS
  17688. function getSetWeek (input) {
  17689. var week = this.localeData().week(this);
  17690. return input == null ? week : this.add((input - week) * 7, 'd');
  17691. }
  17692. function getSetISOWeek (input) {
  17693. var week = weekOfYear(this, 1, 4).week;
  17694. return input == null ? week : this.add((input - week) * 7, 'd');
  17695. }
  17696. // FORMATTING
  17697. addFormatToken('d', 0, 'do', 'day');
  17698. addFormatToken('dd', 0, 0, function (format) {
  17699. return this.localeData().weekdaysMin(this, format);
  17700. });
  17701. addFormatToken('ddd', 0, 0, function (format) {
  17702. return this.localeData().weekdaysShort(this, format);
  17703. });
  17704. addFormatToken('dddd', 0, 0, function (format) {
  17705. return this.localeData().weekdays(this, format);
  17706. });
  17707. addFormatToken('e', 0, 0, 'weekday');
  17708. addFormatToken('E', 0, 0, 'isoWeekday');
  17709. // ALIASES
  17710. addUnitAlias('day', 'd');
  17711. addUnitAlias('weekday', 'e');
  17712. addUnitAlias('isoWeekday', 'E');
  17713. // PRIORITY
  17714. addUnitPriority('day', 11);
  17715. addUnitPriority('weekday', 11);
  17716. addUnitPriority('isoWeekday', 11);
  17717. // PARSING
  17718. addRegexToken('d', match1to2);
  17719. addRegexToken('e', match1to2);
  17720. addRegexToken('E', match1to2);
  17721. addRegexToken('dd', function (isStrict, locale) {
  17722. return locale.weekdaysMinRegex(isStrict);
  17723. });
  17724. addRegexToken('ddd', function (isStrict, locale) {
  17725. return locale.weekdaysShortRegex(isStrict);
  17726. });
  17727. addRegexToken('dddd', function (isStrict, locale) {
  17728. return locale.weekdaysRegex(isStrict);
  17729. });
  17730. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  17731. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  17732. // if we didn't get a weekday name, mark the date as invalid
  17733. if (weekday != null) {
  17734. week.d = weekday;
  17735. } else {
  17736. getParsingFlags(config).invalidWeekday = input;
  17737. }
  17738. });
  17739. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  17740. week[token] = toInt(input);
  17741. });
  17742. // HELPERS
  17743. function parseWeekday(input, locale) {
  17744. if (typeof input !== 'string') {
  17745. return input;
  17746. }
  17747. if (!isNaN(input)) {
  17748. return parseInt(input, 10);
  17749. }
  17750. input = locale.weekdaysParse(input);
  17751. if (typeof input === 'number') {
  17752. return input;
  17753. }
  17754. return null;
  17755. }
  17756. function parseIsoWeekday(input, locale) {
  17757. if (typeof input === 'string') {
  17758. return locale.weekdaysParse(input) % 7 || 7;
  17759. }
  17760. return isNaN(input) ? null : input;
  17761. }
  17762. // LOCALES
  17763. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  17764. function localeWeekdays (m, format) {
  17765. if (!m) {
  17766. return isArray(this._weekdays) ? this._weekdays :
  17767. this._weekdays['standalone'];
  17768. }
  17769. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  17770. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  17771. }
  17772. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  17773. function localeWeekdaysShort (m) {
  17774. return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  17775. }
  17776. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  17777. function localeWeekdaysMin (m) {
  17778. return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  17779. }
  17780. function handleStrictParse$1(weekdayName, format, strict) {
  17781. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  17782. if (!this._weekdaysParse) {
  17783. this._weekdaysParse = [];
  17784. this._shortWeekdaysParse = [];
  17785. this._minWeekdaysParse = [];
  17786. for (i = 0; i < 7; ++i) {
  17787. mom = createUTC([2000, 1]).day(i);
  17788. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  17789. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  17790. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  17791. }
  17792. }
  17793. if (strict) {
  17794. if (format === 'dddd') {
  17795. ii = indexOf.call(this._weekdaysParse, llc);
  17796. return ii !== -1 ? ii : null;
  17797. } else if (format === 'ddd') {
  17798. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17799. return ii !== -1 ? ii : null;
  17800. } else {
  17801. ii = indexOf.call(this._minWeekdaysParse, llc);
  17802. return ii !== -1 ? ii : null;
  17803. }
  17804. } else {
  17805. if (format === 'dddd') {
  17806. ii = indexOf.call(this._weekdaysParse, llc);
  17807. if (ii !== -1) {
  17808. return ii;
  17809. }
  17810. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17811. if (ii !== -1) {
  17812. return ii;
  17813. }
  17814. ii = indexOf.call(this._minWeekdaysParse, llc);
  17815. return ii !== -1 ? ii : null;
  17816. } else if (format === 'ddd') {
  17817. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17818. if (ii !== -1) {
  17819. return ii;
  17820. }
  17821. ii = indexOf.call(this._weekdaysParse, llc);
  17822. if (ii !== -1) {
  17823. return ii;
  17824. }
  17825. ii = indexOf.call(this._minWeekdaysParse, llc);
  17826. return ii !== -1 ? ii : null;
  17827. } else {
  17828. ii = indexOf.call(this._minWeekdaysParse, llc);
  17829. if (ii !== -1) {
  17830. return ii;
  17831. }
  17832. ii = indexOf.call(this._weekdaysParse, llc);
  17833. if (ii !== -1) {
  17834. return ii;
  17835. }
  17836. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17837. return ii !== -1 ? ii : null;
  17838. }
  17839. }
  17840. }
  17841. function localeWeekdaysParse (weekdayName, format, strict) {
  17842. var i, mom, regex;
  17843. if (this._weekdaysParseExact) {
  17844. return handleStrictParse$1.call(this, weekdayName, format, strict);
  17845. }
  17846. if (!this._weekdaysParse) {
  17847. this._weekdaysParse = [];
  17848. this._minWeekdaysParse = [];
  17849. this._shortWeekdaysParse = [];
  17850. this._fullWeekdaysParse = [];
  17851. }
  17852. for (i = 0; i < 7; i++) {
  17853. // make the regex if we don't have it already
  17854. mom = createUTC([2000, 1]).day(i);
  17855. if (strict && !this._fullWeekdaysParse[i]) {
  17856. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  17857. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  17858. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  17859. }
  17860. if (!this._weekdaysParse[i]) {
  17861. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  17862. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  17863. }
  17864. // test the regex
  17865. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  17866. return i;
  17867. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  17868. return i;
  17869. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  17870. return i;
  17871. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  17872. return i;
  17873. }
  17874. }
  17875. }
  17876. // MOMENTS
  17877. function getSetDayOfWeek (input) {
  17878. if (!this.isValid()) {
  17879. return input != null ? this : NaN;
  17880. }
  17881. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  17882. if (input != null) {
  17883. input = parseWeekday(input, this.localeData());
  17884. return this.add(input - day, 'd');
  17885. } else {
  17886. return day;
  17887. }
  17888. }
  17889. function getSetLocaleDayOfWeek (input) {
  17890. if (!this.isValid()) {
  17891. return input != null ? this : NaN;
  17892. }
  17893. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  17894. return input == null ? weekday : this.add(input - weekday, 'd');
  17895. }
  17896. function getSetISODayOfWeek (input) {
  17897. if (!this.isValid()) {
  17898. return input != null ? this : NaN;
  17899. }
  17900. // behaves the same as moment#day except
  17901. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  17902. // as a setter, sunday should belong to the previous week.
  17903. if (input != null) {
  17904. var weekday = parseIsoWeekday(input, this.localeData());
  17905. return this.day(this.day() % 7 ? weekday : weekday - 7);
  17906. } else {
  17907. return this.day() || 7;
  17908. }
  17909. }
  17910. var defaultWeekdaysRegex = matchWord;
  17911. function weekdaysRegex (isStrict) {
  17912. if (this._weekdaysParseExact) {
  17913. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17914. computeWeekdaysParse.call(this);
  17915. }
  17916. if (isStrict) {
  17917. return this._weekdaysStrictRegex;
  17918. } else {
  17919. return this._weekdaysRegex;
  17920. }
  17921. } else {
  17922. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17923. this._weekdaysRegex = defaultWeekdaysRegex;
  17924. }
  17925. return this._weekdaysStrictRegex && isStrict ?
  17926. this._weekdaysStrictRegex : this._weekdaysRegex;
  17927. }
  17928. }
  17929. var defaultWeekdaysShortRegex = matchWord;
  17930. function weekdaysShortRegex (isStrict) {
  17931. if (this._weekdaysParseExact) {
  17932. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17933. computeWeekdaysParse.call(this);
  17934. }
  17935. if (isStrict) {
  17936. return this._weekdaysShortStrictRegex;
  17937. } else {
  17938. return this._weekdaysShortRegex;
  17939. }
  17940. } else {
  17941. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  17942. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  17943. }
  17944. return this._weekdaysShortStrictRegex && isStrict ?
  17945. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  17946. }
  17947. }
  17948. var defaultWeekdaysMinRegex = matchWord;
  17949. function weekdaysMinRegex (isStrict) {
  17950. if (this._weekdaysParseExact) {
  17951. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17952. computeWeekdaysParse.call(this);
  17953. }
  17954. if (isStrict) {
  17955. return this._weekdaysMinStrictRegex;
  17956. } else {
  17957. return this._weekdaysMinRegex;
  17958. }
  17959. } else {
  17960. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  17961. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  17962. }
  17963. return this._weekdaysMinStrictRegex && isStrict ?
  17964. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  17965. }
  17966. }
  17967. function computeWeekdaysParse () {
  17968. function cmpLenRev(a, b) {
  17969. return b.length - a.length;
  17970. }
  17971. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  17972. i, mom, minp, shortp, longp;
  17973. for (i = 0; i < 7; i++) {
  17974. // make the regex if we don't have it already
  17975. mom = createUTC([2000, 1]).day(i);
  17976. minp = this.weekdaysMin(mom, '');
  17977. shortp = this.weekdaysShort(mom, '');
  17978. longp = this.weekdays(mom, '');
  17979. minPieces.push(minp);
  17980. shortPieces.push(shortp);
  17981. longPieces.push(longp);
  17982. mixedPieces.push(minp);
  17983. mixedPieces.push(shortp);
  17984. mixedPieces.push(longp);
  17985. }
  17986. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  17987. // will match the longer piece.
  17988. minPieces.sort(cmpLenRev);
  17989. shortPieces.sort(cmpLenRev);
  17990. longPieces.sort(cmpLenRev);
  17991. mixedPieces.sort(cmpLenRev);
  17992. for (i = 0; i < 7; i++) {
  17993. shortPieces[i] = regexEscape(shortPieces[i]);
  17994. longPieces[i] = regexEscape(longPieces[i]);
  17995. mixedPieces[i] = regexEscape(mixedPieces[i]);
  17996. }
  17997. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  17998. this._weekdaysShortRegex = this._weekdaysRegex;
  17999. this._weekdaysMinRegex = this._weekdaysRegex;
  18000. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  18001. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  18002. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  18003. }
  18004. // FORMATTING
  18005. function hFormat() {
  18006. return this.hours() % 12 || 12;
  18007. }
  18008. function kFormat() {
  18009. return this.hours() || 24;
  18010. }
  18011. addFormatToken('H', ['HH', 2], 0, 'hour');
  18012. addFormatToken('h', ['hh', 2], 0, hFormat);
  18013. addFormatToken('k', ['kk', 2], 0, kFormat);
  18014. addFormatToken('hmm', 0, 0, function () {
  18015. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  18016. });
  18017. addFormatToken('hmmss', 0, 0, function () {
  18018. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  18019. zeroFill(this.seconds(), 2);
  18020. });
  18021. addFormatToken('Hmm', 0, 0, function () {
  18022. return '' + this.hours() + zeroFill(this.minutes(), 2);
  18023. });
  18024. addFormatToken('Hmmss', 0, 0, function () {
  18025. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  18026. zeroFill(this.seconds(), 2);
  18027. });
  18028. function meridiem (token, lowercase) {
  18029. addFormatToken(token, 0, 0, function () {
  18030. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  18031. });
  18032. }
  18033. meridiem('a', true);
  18034. meridiem('A', false);
  18035. // ALIASES
  18036. addUnitAlias('hour', 'h');
  18037. // PRIORITY
  18038. addUnitPriority('hour', 13);
  18039. // PARSING
  18040. function matchMeridiem (isStrict, locale) {
  18041. return locale._meridiemParse;
  18042. }
  18043. addRegexToken('a', matchMeridiem);
  18044. addRegexToken('A', matchMeridiem);
  18045. addRegexToken('H', match1to2);
  18046. addRegexToken('h', match1to2);
  18047. addRegexToken('k', match1to2);
  18048. addRegexToken('HH', match1to2, match2);
  18049. addRegexToken('hh', match1to2, match2);
  18050. addRegexToken('kk', match1to2, match2);
  18051. addRegexToken('hmm', match3to4);
  18052. addRegexToken('hmmss', match5to6);
  18053. addRegexToken('Hmm', match3to4);
  18054. addRegexToken('Hmmss', match5to6);
  18055. addParseToken(['H', 'HH'], HOUR);
  18056. addParseToken(['k', 'kk'], function (input, array, config) {
  18057. var kInput = toInt(input);
  18058. array[HOUR] = kInput === 24 ? 0 : kInput;
  18059. });
  18060. addParseToken(['a', 'A'], function (input, array, config) {
  18061. config._isPm = config._locale.isPM(input);
  18062. config._meridiem = input;
  18063. });
  18064. addParseToken(['h', 'hh'], function (input, array, config) {
  18065. array[HOUR] = toInt(input);
  18066. getParsingFlags(config).bigHour = true;
  18067. });
  18068. addParseToken('hmm', function (input, array, config) {
  18069. var pos = input.length - 2;
  18070. array[HOUR] = toInt(input.substr(0, pos));
  18071. array[MINUTE] = toInt(input.substr(pos));
  18072. getParsingFlags(config).bigHour = true;
  18073. });
  18074. addParseToken('hmmss', function (input, array, config) {
  18075. var pos1 = input.length - 4;
  18076. var pos2 = input.length - 2;
  18077. array[HOUR] = toInt(input.substr(0, pos1));
  18078. array[MINUTE] = toInt(input.substr(pos1, 2));
  18079. array[SECOND] = toInt(input.substr(pos2));
  18080. getParsingFlags(config).bigHour = true;
  18081. });
  18082. addParseToken('Hmm', function (input, array, config) {
  18083. var pos = input.length - 2;
  18084. array[HOUR] = toInt(input.substr(0, pos));
  18085. array[MINUTE] = toInt(input.substr(pos));
  18086. });
  18087. addParseToken('Hmmss', function (input, array, config) {
  18088. var pos1 = input.length - 4;
  18089. var pos2 = input.length - 2;
  18090. array[HOUR] = toInt(input.substr(0, pos1));
  18091. array[MINUTE] = toInt(input.substr(pos1, 2));
  18092. array[SECOND] = toInt(input.substr(pos2));
  18093. });
  18094. // LOCALES
  18095. function localeIsPM (input) {
  18096. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  18097. // Using charAt should be more compatible.
  18098. return ((input + '').toLowerCase().charAt(0) === 'p');
  18099. }
  18100. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  18101. function localeMeridiem (hours, minutes, isLower) {
  18102. if (hours > 11) {
  18103. return isLower ? 'pm' : 'PM';
  18104. } else {
  18105. return isLower ? 'am' : 'AM';
  18106. }
  18107. }
  18108. // MOMENTS
  18109. // Setting the hour should keep the time, because the user explicitly
  18110. // specified which hour he wants. So trying to maintain the same hour (in
  18111. // a new timezone) makes sense. Adding/subtracting hours does not follow
  18112. // this rule.
  18113. var getSetHour = makeGetSet('Hours', true);
  18114. // months
  18115. // week
  18116. // weekdays
  18117. // meridiem
  18118. var baseConfig = {
  18119. calendar: defaultCalendar,
  18120. longDateFormat: defaultLongDateFormat,
  18121. invalidDate: defaultInvalidDate,
  18122. ordinal: defaultOrdinal,
  18123. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  18124. relativeTime: defaultRelativeTime,
  18125. months: defaultLocaleMonths,
  18126. monthsShort: defaultLocaleMonthsShort,
  18127. week: defaultLocaleWeek,
  18128. weekdays: defaultLocaleWeekdays,
  18129. weekdaysMin: defaultLocaleWeekdaysMin,
  18130. weekdaysShort: defaultLocaleWeekdaysShort,
  18131. meridiemParse: defaultLocaleMeridiemParse
  18132. };
  18133. // internal storage for locale config files
  18134. var locales = {};
  18135. var localeFamilies = {};
  18136. var globalLocale;
  18137. function normalizeLocale(key) {
  18138. return key ? key.toLowerCase().replace('_', '-') : key;
  18139. }
  18140. // pick the locale from the array
  18141. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  18142. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  18143. function chooseLocale(names) {
  18144. var i = 0, j, next, locale, split;
  18145. while (i < names.length) {
  18146. split = normalizeLocale(names[i]).split('-');
  18147. j = split.length;
  18148. next = normalizeLocale(names[i + 1]);
  18149. next = next ? next.split('-') : null;
  18150. while (j > 0) {
  18151. locale = loadLocale(split.slice(0, j).join('-'));
  18152. if (locale) {
  18153. return locale;
  18154. }
  18155. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  18156. //the next array item is better than a shallower substring of this one
  18157. break;
  18158. }
  18159. j--;
  18160. }
  18161. i++;
  18162. }
  18163. return null;
  18164. }
  18165. function loadLocale(name) {
  18166. var oldLocale = null;
  18167. // TODO: Find a better way to register and load all the locales in Node
  18168. if (!locales[name] && (typeof module !== 'undefined') &&
  18169. module && module.exports) {
  18170. try {
  18171. oldLocale = globalLocale._abbr;
  18172. var aliasedRequire = require;
  18173. __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name);
  18174. getSetGlobalLocale(oldLocale);
  18175. } catch (e) {}
  18176. }
  18177. return locales[name];
  18178. }
  18179. // This function will load locale and then set the global locale. If
  18180. // no arguments are passed in, it will simply return the current global
  18181. // locale key.
  18182. function getSetGlobalLocale (key, values) {
  18183. var data;
  18184. if (key) {
  18185. if (isUndefined(values)) {
  18186. data = getLocale(key);
  18187. }
  18188. else {
  18189. data = defineLocale(key, values);
  18190. }
  18191. if (data) {
  18192. // moment.duration._locale = moment._locale = data;
  18193. globalLocale = data;
  18194. }
  18195. }
  18196. return globalLocale._abbr;
  18197. }
  18198. function defineLocale (name, config) {
  18199. if (config !== null) {
  18200. var parentConfig = baseConfig;
  18201. config.abbr = name;
  18202. if (locales[name] != null) {
  18203. deprecateSimple('defineLocaleOverride',
  18204. 'use moment.updateLocale(localeName, config) to change ' +
  18205. 'an existing locale. moment.defineLocale(localeName, ' +
  18206. 'config) should only be used for creating a new locale ' +
  18207. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  18208. parentConfig = locales[name]._config;
  18209. } else if (config.parentLocale != null) {
  18210. if (locales[config.parentLocale] != null) {
  18211. parentConfig = locales[config.parentLocale]._config;
  18212. } else {
  18213. if (!localeFamilies[config.parentLocale]) {
  18214. localeFamilies[config.parentLocale] = [];
  18215. }
  18216. localeFamilies[config.parentLocale].push({
  18217. name: name,
  18218. config: config
  18219. });
  18220. return null;
  18221. }
  18222. }
  18223. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  18224. if (localeFamilies[name]) {
  18225. localeFamilies[name].forEach(function (x) {
  18226. defineLocale(x.name, x.config);
  18227. });
  18228. }
  18229. // backwards compat for now: also set the locale
  18230. // make sure we set the locale AFTER all child locales have been
  18231. // created, so we won't end up with the child locale set.
  18232. getSetGlobalLocale(name);
  18233. return locales[name];
  18234. } else {
  18235. // useful for testing
  18236. delete locales[name];
  18237. return null;
  18238. }
  18239. }
  18240. function updateLocale(name, config) {
  18241. if (config != null) {
  18242. var locale, tmpLocale, parentConfig = baseConfig;
  18243. // MERGE
  18244. tmpLocale = loadLocale(name);
  18245. if (tmpLocale != null) {
  18246. parentConfig = tmpLocale._config;
  18247. }
  18248. config = mergeConfigs(parentConfig, config);
  18249. locale = new Locale(config);
  18250. locale.parentLocale = locales[name];
  18251. locales[name] = locale;
  18252. // backwards compat for now: also set the locale
  18253. getSetGlobalLocale(name);
  18254. } else {
  18255. // pass null for config to unupdate, useful for tests
  18256. if (locales[name] != null) {
  18257. if (locales[name].parentLocale != null) {
  18258. locales[name] = locales[name].parentLocale;
  18259. } else if (locales[name] != null) {
  18260. delete locales[name];
  18261. }
  18262. }
  18263. }
  18264. return locales[name];
  18265. }
  18266. // returns locale data
  18267. function getLocale (key) {
  18268. var locale;
  18269. if (key && key._locale && key._locale._abbr) {
  18270. key = key._locale._abbr;
  18271. }
  18272. if (!key) {
  18273. return globalLocale;
  18274. }
  18275. if (!isArray(key)) {
  18276. //short-circuit everything else
  18277. locale = loadLocale(key);
  18278. if (locale) {
  18279. return locale;
  18280. }
  18281. key = [key];
  18282. }
  18283. return chooseLocale(key);
  18284. }
  18285. function listLocales() {
  18286. return keys(locales);
  18287. }
  18288. function checkOverflow (m) {
  18289. var overflow;
  18290. var a = m._a;
  18291. if (a && getParsingFlags(m).overflow === -2) {
  18292. overflow =
  18293. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  18294. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  18295. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  18296. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  18297. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  18298. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  18299. -1;
  18300. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  18301. overflow = DATE;
  18302. }
  18303. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  18304. overflow = WEEK;
  18305. }
  18306. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  18307. overflow = WEEKDAY;
  18308. }
  18309. getParsingFlags(m).overflow = overflow;
  18310. }
  18311. return m;
  18312. }
  18313. // Pick the first defined of two or three arguments.
  18314. function defaults(a, b, c) {
  18315. if (a != null) {
  18316. return a;
  18317. }
  18318. if (b != null) {
  18319. return b;
  18320. }
  18321. return c;
  18322. }
  18323. function currentDateArray(config) {
  18324. // hooks is actually the exported moment object
  18325. var nowValue = new Date(hooks.now());
  18326. if (config._useUTC) {
  18327. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  18328. }
  18329. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  18330. }
  18331. // convert an array to a date.
  18332. // the array should mirror the parameters below
  18333. // note: all values past the year are optional and will default to the lowest possible value.
  18334. // [year, month, day , hour, minute, second, millisecond]
  18335. function configFromArray (config) {
  18336. var i, date, input = [], currentDate, expectedWeekday, yearToUse;
  18337. if (config._d) {
  18338. return;
  18339. }
  18340. currentDate = currentDateArray(config);
  18341. //compute day of the year from weeks and weekdays
  18342. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  18343. dayOfYearFromWeekInfo(config);
  18344. }
  18345. //if the day of the year is set, figure out what it is
  18346. if (config._dayOfYear != null) {
  18347. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  18348. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  18349. getParsingFlags(config)._overflowDayOfYear = true;
  18350. }
  18351. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  18352. config._a[MONTH] = date.getUTCMonth();
  18353. config._a[DATE] = date.getUTCDate();
  18354. }
  18355. // Default to current date.
  18356. // * if no year, month, day of month are given, default to today
  18357. // * if day of month is given, default month and year
  18358. // * if month is given, default only year
  18359. // * if year is given, don't default anything
  18360. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  18361. config._a[i] = input[i] = currentDate[i];
  18362. }
  18363. // Zero out whatever was not defaulted, including time
  18364. for (; i < 7; i++) {
  18365. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  18366. }
  18367. // Check for 24:00:00.000
  18368. if (config._a[HOUR] === 24 &&
  18369. config._a[MINUTE] === 0 &&
  18370. config._a[SECOND] === 0 &&
  18371. config._a[MILLISECOND] === 0) {
  18372. config._nextDay = true;
  18373. config._a[HOUR] = 0;
  18374. }
  18375. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  18376. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  18377. // Apply timezone offset from input. The actual utcOffset can be changed
  18378. // with parseZone.
  18379. if (config._tzm != null) {
  18380. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  18381. }
  18382. if (config._nextDay) {
  18383. config._a[HOUR] = 24;
  18384. }
  18385. // check for mismatching day of week
  18386. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  18387. getParsingFlags(config).weekdayMismatch = true;
  18388. }
  18389. }
  18390. function dayOfYearFromWeekInfo(config) {
  18391. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  18392. w = config._w;
  18393. if (w.GG != null || w.W != null || w.E != null) {
  18394. dow = 1;
  18395. doy = 4;
  18396. // TODO: We need to take the current isoWeekYear, but that depends on
  18397. // how we interpret now (local, utc, fixed offset). So create
  18398. // a now version of current config (take local/utc/offset flags, and
  18399. // create now).
  18400. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  18401. week = defaults(w.W, 1);
  18402. weekday = defaults(w.E, 1);
  18403. if (weekday < 1 || weekday > 7) {
  18404. weekdayOverflow = true;
  18405. }
  18406. } else {
  18407. dow = config._locale._week.dow;
  18408. doy = config._locale._week.doy;
  18409. var curWeek = weekOfYear(createLocal(), dow, doy);
  18410. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  18411. // Default to current week.
  18412. week = defaults(w.w, curWeek.week);
  18413. if (w.d != null) {
  18414. // weekday -- low day numbers are considered next week
  18415. weekday = w.d;
  18416. if (weekday < 0 || weekday > 6) {
  18417. weekdayOverflow = true;
  18418. }
  18419. } else if (w.e != null) {
  18420. // local weekday -- counting starts from begining of week
  18421. weekday = w.e + dow;
  18422. if (w.e < 0 || w.e > 6) {
  18423. weekdayOverflow = true;
  18424. }
  18425. } else {
  18426. // default to begining of week
  18427. weekday = dow;
  18428. }
  18429. }
  18430. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  18431. getParsingFlags(config)._overflowWeeks = true;
  18432. } else if (weekdayOverflow != null) {
  18433. getParsingFlags(config)._overflowWeekday = true;
  18434. } else {
  18435. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  18436. config._a[YEAR] = temp.year;
  18437. config._dayOfYear = temp.dayOfYear;
  18438. }
  18439. }
  18440. // iso 8601 regex
  18441. // 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)
  18442. 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)?)?$/;
  18443. var 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)?)?$/;
  18444. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  18445. var isoDates = [
  18446. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  18447. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  18448. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  18449. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  18450. ['YYYY-DDD', /\d{4}-\d{3}/],
  18451. ['YYYY-MM', /\d{4}-\d\d/, false],
  18452. ['YYYYYYMMDD', /[+-]\d{10}/],
  18453. ['YYYYMMDD', /\d{8}/],
  18454. // YYYYMM is NOT allowed by the standard
  18455. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  18456. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  18457. ['YYYYDDD', /\d{7}/]
  18458. ];
  18459. // iso time formats and regexes
  18460. var isoTimes = [
  18461. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  18462. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  18463. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  18464. ['HH:mm', /\d\d:\d\d/],
  18465. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  18466. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  18467. ['HHmmss', /\d\d\d\d\d\d/],
  18468. ['HHmm', /\d\d\d\d/],
  18469. ['HH', /\d\d/]
  18470. ];
  18471. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  18472. // date from iso format
  18473. function configFromISO(config) {
  18474. var i, l,
  18475. string = config._i,
  18476. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  18477. allowTime, dateFormat, timeFormat, tzFormat;
  18478. if (match) {
  18479. getParsingFlags(config).iso = true;
  18480. for (i = 0, l = isoDates.length; i < l; i++) {
  18481. if (isoDates[i][1].exec(match[1])) {
  18482. dateFormat = isoDates[i][0];
  18483. allowTime = isoDates[i][2] !== false;
  18484. break;
  18485. }
  18486. }
  18487. if (dateFormat == null) {
  18488. config._isValid = false;
  18489. return;
  18490. }
  18491. if (match[3]) {
  18492. for (i = 0, l = isoTimes.length; i < l; i++) {
  18493. if (isoTimes[i][1].exec(match[3])) {
  18494. // match[2] should be 'T' or space
  18495. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  18496. break;
  18497. }
  18498. }
  18499. if (timeFormat == null) {
  18500. config._isValid = false;
  18501. return;
  18502. }
  18503. }
  18504. if (!allowTime && timeFormat != null) {
  18505. config._isValid = false;
  18506. return;
  18507. }
  18508. if (match[4]) {
  18509. if (tzRegex.exec(match[4])) {
  18510. tzFormat = 'Z';
  18511. } else {
  18512. config._isValid = false;
  18513. return;
  18514. }
  18515. }
  18516. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  18517. configFromStringAndFormat(config);
  18518. } else {
  18519. config._isValid = false;
  18520. }
  18521. }
  18522. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  18523. var 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}))$/;
  18524. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  18525. var result = [
  18526. untruncateYear(yearStr),
  18527. defaultLocaleMonthsShort.indexOf(monthStr),
  18528. parseInt(dayStr, 10),
  18529. parseInt(hourStr, 10),
  18530. parseInt(minuteStr, 10)
  18531. ];
  18532. if (secondStr) {
  18533. result.push(parseInt(secondStr, 10));
  18534. }
  18535. return result;
  18536. }
  18537. function untruncateYear(yearStr) {
  18538. var year = parseInt(yearStr, 10);
  18539. if (year <= 49) {
  18540. return 2000 + year;
  18541. } else if (year <= 999) {
  18542. return 1900 + year;
  18543. }
  18544. return year;
  18545. }
  18546. function preprocessRFC2822(s) {
  18547. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  18548. return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
  18549. }
  18550. function checkWeekday(weekdayStr, parsedInput, config) {
  18551. if (weekdayStr) {
  18552. // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
  18553. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  18554. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  18555. if (weekdayProvided !== weekdayActual) {
  18556. getParsingFlags(config).weekdayMismatch = true;
  18557. config._isValid = false;
  18558. return false;
  18559. }
  18560. }
  18561. return true;
  18562. }
  18563. var obsOffsets = {
  18564. UT: 0,
  18565. GMT: 0,
  18566. EDT: -4 * 60,
  18567. EST: -5 * 60,
  18568. CDT: -5 * 60,
  18569. CST: -6 * 60,
  18570. MDT: -6 * 60,
  18571. MST: -7 * 60,
  18572. PDT: -7 * 60,
  18573. PST: -8 * 60
  18574. };
  18575. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  18576. if (obsOffset) {
  18577. return obsOffsets[obsOffset];
  18578. } else if (militaryOffset) {
  18579. // the only allowed military tz is Z
  18580. return 0;
  18581. } else {
  18582. var hm = parseInt(numOffset, 10);
  18583. var m = hm % 100, h = (hm - m) / 100;
  18584. return h * 60 + m;
  18585. }
  18586. }
  18587. // date and time from ref 2822 format
  18588. function configFromRFC2822(config) {
  18589. var match = rfc2822.exec(preprocessRFC2822(config._i));
  18590. if (match) {
  18591. var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  18592. if (!checkWeekday(match[1], parsedArray, config)) {
  18593. return;
  18594. }
  18595. config._a = parsedArray;
  18596. config._tzm = calculateOffset(match[8], match[9], match[10]);
  18597. config._d = createUTCDate.apply(null, config._a);
  18598. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  18599. getParsingFlags(config).rfc2822 = true;
  18600. } else {
  18601. config._isValid = false;
  18602. }
  18603. }
  18604. // date from iso format or fallback
  18605. function configFromString(config) {
  18606. var matched = aspNetJsonRegex.exec(config._i);
  18607. if (matched !== null) {
  18608. config._d = new Date(+matched[1]);
  18609. return;
  18610. }
  18611. configFromISO(config);
  18612. if (config._isValid === false) {
  18613. delete config._isValid;
  18614. } else {
  18615. return;
  18616. }
  18617. configFromRFC2822(config);
  18618. if (config._isValid === false) {
  18619. delete config._isValid;
  18620. } else {
  18621. return;
  18622. }
  18623. // Final attempt, use Input Fallback
  18624. hooks.createFromInputFallback(config);
  18625. }
  18626. hooks.createFromInputFallback = deprecate(
  18627. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  18628. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  18629. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  18630. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  18631. function (config) {
  18632. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  18633. }
  18634. );
  18635. // constant that refers to the ISO standard
  18636. hooks.ISO_8601 = function () {};
  18637. // constant that refers to the RFC 2822 form
  18638. hooks.RFC_2822 = function () {};
  18639. // date from string and format string
  18640. function configFromStringAndFormat(config) {
  18641. // TODO: Move this to another part of the creation flow to prevent circular deps
  18642. if (config._f === hooks.ISO_8601) {
  18643. configFromISO(config);
  18644. return;
  18645. }
  18646. if (config._f === hooks.RFC_2822) {
  18647. configFromRFC2822(config);
  18648. return;
  18649. }
  18650. config._a = [];
  18651. getParsingFlags(config).empty = true;
  18652. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  18653. var string = '' + config._i,
  18654. i, parsedInput, tokens, token, skipped,
  18655. stringLength = string.length,
  18656. totalParsedInputLength = 0;
  18657. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  18658. for (i = 0; i < tokens.length; i++) {
  18659. token = tokens[i];
  18660. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  18661. // console.log('token', token, 'parsedInput', parsedInput,
  18662. // 'regex', getParseRegexForToken(token, config));
  18663. if (parsedInput) {
  18664. skipped = string.substr(0, string.indexOf(parsedInput));
  18665. if (skipped.length > 0) {
  18666. getParsingFlags(config).unusedInput.push(skipped);
  18667. }
  18668. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  18669. totalParsedInputLength += parsedInput.length;
  18670. }
  18671. // don't parse if it's not a known token
  18672. if (formatTokenFunctions[token]) {
  18673. if (parsedInput) {
  18674. getParsingFlags(config).empty = false;
  18675. }
  18676. else {
  18677. getParsingFlags(config).unusedTokens.push(token);
  18678. }
  18679. addTimeToArrayFromToken(token, parsedInput, config);
  18680. }
  18681. else if (config._strict && !parsedInput) {
  18682. getParsingFlags(config).unusedTokens.push(token);
  18683. }
  18684. }
  18685. // add remaining unparsed input length to the string
  18686. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  18687. if (string.length > 0) {
  18688. getParsingFlags(config).unusedInput.push(string);
  18689. }
  18690. // clear _12h flag if hour is <= 12
  18691. if (config._a[HOUR] <= 12 &&
  18692. getParsingFlags(config).bigHour === true &&
  18693. config._a[HOUR] > 0) {
  18694. getParsingFlags(config).bigHour = undefined;
  18695. }
  18696. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  18697. getParsingFlags(config).meridiem = config._meridiem;
  18698. // handle meridiem
  18699. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  18700. configFromArray(config);
  18701. checkOverflow(config);
  18702. }
  18703. function meridiemFixWrap (locale, hour, meridiem) {
  18704. var isPm;
  18705. if (meridiem == null) {
  18706. // nothing to do
  18707. return hour;
  18708. }
  18709. if (locale.meridiemHour != null) {
  18710. return locale.meridiemHour(hour, meridiem);
  18711. } else if (locale.isPM != null) {
  18712. // Fallback
  18713. isPm = locale.isPM(meridiem);
  18714. if (isPm && hour < 12) {
  18715. hour += 12;
  18716. }
  18717. if (!isPm && hour === 12) {
  18718. hour = 0;
  18719. }
  18720. return hour;
  18721. } else {
  18722. // this is not supposed to happen
  18723. return hour;
  18724. }
  18725. }
  18726. // date from string and array of format strings
  18727. function configFromStringAndArray(config) {
  18728. var tempConfig,
  18729. bestMoment,
  18730. scoreToBeat,
  18731. i,
  18732. currentScore;
  18733. if (config._f.length === 0) {
  18734. getParsingFlags(config).invalidFormat = true;
  18735. config._d = new Date(NaN);
  18736. return;
  18737. }
  18738. for (i = 0; i < config._f.length; i++) {
  18739. currentScore = 0;
  18740. tempConfig = copyConfig({}, config);
  18741. if (config._useUTC != null) {
  18742. tempConfig._useUTC = config._useUTC;
  18743. }
  18744. tempConfig._f = config._f[i];
  18745. configFromStringAndFormat(tempConfig);
  18746. if (!isValid(tempConfig)) {
  18747. continue;
  18748. }
  18749. // if there is any input that was not parsed add a penalty for that format
  18750. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  18751. //or tokens
  18752. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  18753. getParsingFlags(tempConfig).score = currentScore;
  18754. if (scoreToBeat == null || currentScore < scoreToBeat) {
  18755. scoreToBeat = currentScore;
  18756. bestMoment = tempConfig;
  18757. }
  18758. }
  18759. extend(config, bestMoment || tempConfig);
  18760. }
  18761. function configFromObject(config) {
  18762. if (config._d) {
  18763. return;
  18764. }
  18765. var i = normalizeObjectUnits(config._i);
  18766. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  18767. return obj && parseInt(obj, 10);
  18768. });
  18769. configFromArray(config);
  18770. }
  18771. function createFromConfig (config) {
  18772. var res = new Moment(checkOverflow(prepareConfig(config)));
  18773. if (res._nextDay) {
  18774. // Adding is smart enough around DST
  18775. res.add(1, 'd');
  18776. res._nextDay = undefined;
  18777. }
  18778. return res;
  18779. }
  18780. function prepareConfig (config) {
  18781. var input = config._i,
  18782. format = config._f;
  18783. config._locale = config._locale || getLocale(config._l);
  18784. if (input === null || (format === undefined && input === '')) {
  18785. return createInvalid({nullInput: true});
  18786. }
  18787. if (typeof input === 'string') {
  18788. config._i = input = config._locale.preparse(input);
  18789. }
  18790. if (isMoment(input)) {
  18791. return new Moment(checkOverflow(input));
  18792. } else if (isDate(input)) {
  18793. config._d = input;
  18794. } else if (isArray(format)) {
  18795. configFromStringAndArray(config);
  18796. } else if (format) {
  18797. configFromStringAndFormat(config);
  18798. } else {
  18799. configFromInput(config);
  18800. }
  18801. if (!isValid(config)) {
  18802. config._d = null;
  18803. }
  18804. return config;
  18805. }
  18806. function configFromInput(config) {
  18807. var input = config._i;
  18808. if (isUndefined(input)) {
  18809. config._d = new Date(hooks.now());
  18810. } else if (isDate(input)) {
  18811. config._d = new Date(input.valueOf());
  18812. } else if (typeof input === 'string') {
  18813. configFromString(config);
  18814. } else if (isArray(input)) {
  18815. config._a = map(input.slice(0), function (obj) {
  18816. return parseInt(obj, 10);
  18817. });
  18818. configFromArray(config);
  18819. } else if (isObject(input)) {
  18820. configFromObject(config);
  18821. } else if (isNumber(input)) {
  18822. // from milliseconds
  18823. config._d = new Date(input);
  18824. } else {
  18825. hooks.createFromInputFallback(config);
  18826. }
  18827. }
  18828. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  18829. var c = {};
  18830. if (locale === true || locale === false) {
  18831. strict = locale;
  18832. locale = undefined;
  18833. }
  18834. if ((isObject(input) && isObjectEmpty(input)) ||
  18835. (isArray(input) && input.length === 0)) {
  18836. input = undefined;
  18837. }
  18838. // object construction must be done this way.
  18839. // https://github.com/moment/moment/issues/1423
  18840. c._isAMomentObject = true;
  18841. c._useUTC = c._isUTC = isUTC;
  18842. c._l = locale;
  18843. c._i = input;
  18844. c._f = format;
  18845. c._strict = strict;
  18846. return createFromConfig(c);
  18847. }
  18848. function createLocal (input, format, locale, strict) {
  18849. return createLocalOrUTC(input, format, locale, strict, false);
  18850. }
  18851. var prototypeMin = deprecate(
  18852. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  18853. function () {
  18854. var other = createLocal.apply(null, arguments);
  18855. if (this.isValid() && other.isValid()) {
  18856. return other < this ? this : other;
  18857. } else {
  18858. return createInvalid();
  18859. }
  18860. }
  18861. );
  18862. var prototypeMax = deprecate(
  18863. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  18864. function () {
  18865. var other = createLocal.apply(null, arguments);
  18866. if (this.isValid() && other.isValid()) {
  18867. return other > this ? this : other;
  18868. } else {
  18869. return createInvalid();
  18870. }
  18871. }
  18872. );
  18873. // Pick a moment m from moments so that m[fn](other) is true for all
  18874. // other. This relies on the function fn to be transitive.
  18875. //
  18876. // moments should either be an array of moment objects or an array, whose
  18877. // first element is an array of moment objects.
  18878. function pickBy(fn, moments) {
  18879. var res, i;
  18880. if (moments.length === 1 && isArray(moments[0])) {
  18881. moments = moments[0];
  18882. }
  18883. if (!moments.length) {
  18884. return createLocal();
  18885. }
  18886. res = moments[0];
  18887. for (i = 1; i < moments.length; ++i) {
  18888. if (!moments[i].isValid() || moments[i][fn](res)) {
  18889. res = moments[i];
  18890. }
  18891. }
  18892. return res;
  18893. }
  18894. // TODO: Use [].sort instead?
  18895. function min () {
  18896. var args = [].slice.call(arguments, 0);
  18897. return pickBy('isBefore', args);
  18898. }
  18899. function max () {
  18900. var args = [].slice.call(arguments, 0);
  18901. return pickBy('isAfter', args);
  18902. }
  18903. var now = function () {
  18904. return Date.now ? Date.now() : +(new Date());
  18905. };
  18906. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  18907. function isDurationValid(m) {
  18908. for (var key in m) {
  18909. if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  18910. return false;
  18911. }
  18912. }
  18913. var unitHasDecimal = false;
  18914. for (var i = 0; i < ordering.length; ++i) {
  18915. if (m[ordering[i]]) {
  18916. if (unitHasDecimal) {
  18917. return false; // only allow non-integers for smallest unit
  18918. }
  18919. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  18920. unitHasDecimal = true;
  18921. }
  18922. }
  18923. }
  18924. return true;
  18925. }
  18926. function isValid$1() {
  18927. return this._isValid;
  18928. }
  18929. function createInvalid$1() {
  18930. return createDuration(NaN);
  18931. }
  18932. function Duration (duration) {
  18933. var normalizedInput = normalizeObjectUnits(duration),
  18934. years = normalizedInput.year || 0,
  18935. quarters = normalizedInput.quarter || 0,
  18936. months = normalizedInput.month || 0,
  18937. weeks = normalizedInput.week || 0,
  18938. days = normalizedInput.day || 0,
  18939. hours = normalizedInput.hour || 0,
  18940. minutes = normalizedInput.minute || 0,
  18941. seconds = normalizedInput.second || 0,
  18942. milliseconds = normalizedInput.millisecond || 0;
  18943. this._isValid = isDurationValid(normalizedInput);
  18944. // representation for dateAddRemove
  18945. this._milliseconds = +milliseconds +
  18946. seconds * 1e3 + // 1000
  18947. minutes * 6e4 + // 1000 * 60
  18948. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  18949. // Because of dateAddRemove treats 24 hours as different from a
  18950. // day when working around DST, we need to store them separately
  18951. this._days = +days +
  18952. weeks * 7;
  18953. // It is impossible to translate months into days without knowing
  18954. // which months you are are talking about, so we have to store
  18955. // it separately.
  18956. this._months = +months +
  18957. quarters * 3 +
  18958. years * 12;
  18959. this._data = {};
  18960. this._locale = getLocale();
  18961. this._bubble();
  18962. }
  18963. function isDuration (obj) {
  18964. return obj instanceof Duration;
  18965. }
  18966. function absRound (number) {
  18967. if (number < 0) {
  18968. return Math.round(-1 * number) * -1;
  18969. } else {
  18970. return Math.round(number);
  18971. }
  18972. }
  18973. // FORMATTING
  18974. function offset (token, separator) {
  18975. addFormatToken(token, 0, 0, function () {
  18976. var offset = this.utcOffset();
  18977. var sign = '+';
  18978. if (offset < 0) {
  18979. offset = -offset;
  18980. sign = '-';
  18981. }
  18982. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  18983. });
  18984. }
  18985. offset('Z', ':');
  18986. offset('ZZ', '');
  18987. // PARSING
  18988. addRegexToken('Z', matchShortOffset);
  18989. addRegexToken('ZZ', matchShortOffset);
  18990. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  18991. config._useUTC = true;
  18992. config._tzm = offsetFromString(matchShortOffset, input);
  18993. });
  18994. // HELPERS
  18995. // timezone chunker
  18996. // '+10:00' > ['10', '00']
  18997. // '-1530' > ['-15', '30']
  18998. var chunkOffset = /([\+\-]|\d\d)/gi;
  18999. function offsetFromString(matcher, string) {
  19000. var matches = (string || '').match(matcher);
  19001. if (matches === null) {
  19002. return null;
  19003. }
  19004. var chunk = matches[matches.length - 1] || [];
  19005. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  19006. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  19007. return minutes === 0 ?
  19008. 0 :
  19009. parts[0] === '+' ? minutes : -minutes;
  19010. }
  19011. // Return a moment from input, that is local/utc/zone equivalent to model.
  19012. function cloneWithOffset(input, model) {
  19013. var res, diff;
  19014. if (model._isUTC) {
  19015. res = model.clone();
  19016. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  19017. // Use low-level api, because this fn is low-level api.
  19018. res._d.setTime(res._d.valueOf() + diff);
  19019. hooks.updateOffset(res, false);
  19020. return res;
  19021. } else {
  19022. return createLocal(input).local();
  19023. }
  19024. }
  19025. function getDateOffset (m) {
  19026. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  19027. // https://github.com/moment/moment/pull/1871
  19028. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  19029. }
  19030. // HOOKS
  19031. // This function will be called whenever a moment is mutated.
  19032. // It is intended to keep the offset in sync with the timezone.
  19033. hooks.updateOffset = function () {};
  19034. // MOMENTS
  19035. // keepLocalTime = true means only change the timezone, without
  19036. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  19037. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  19038. // +0200, so we adjust the time as needed, to be valid.
  19039. //
  19040. // Keeping the time actually adds/subtracts (one hour)
  19041. // from the actual represented time. That is why we call updateOffset
  19042. // a second time. In case it wants us to change the offset again
  19043. // _changeInProgress == true case, then we have to adjust, because
  19044. // there is no such time in the given timezone.
  19045. function getSetOffset (input, keepLocalTime, keepMinutes) {
  19046. var offset = this._offset || 0,
  19047. localAdjust;
  19048. if (!this.isValid()) {
  19049. return input != null ? this : NaN;
  19050. }
  19051. if (input != null) {
  19052. if (typeof input === 'string') {
  19053. input = offsetFromString(matchShortOffset, input);
  19054. if (input === null) {
  19055. return this;
  19056. }
  19057. } else if (Math.abs(input) < 16 && !keepMinutes) {
  19058. input = input * 60;
  19059. }
  19060. if (!this._isUTC && keepLocalTime) {
  19061. localAdjust = getDateOffset(this);
  19062. }
  19063. this._offset = input;
  19064. this._isUTC = true;
  19065. if (localAdjust != null) {
  19066. this.add(localAdjust, 'm');
  19067. }
  19068. if (offset !== input) {
  19069. if (!keepLocalTime || this._changeInProgress) {
  19070. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  19071. } else if (!this._changeInProgress) {
  19072. this._changeInProgress = true;
  19073. hooks.updateOffset(this, true);
  19074. this._changeInProgress = null;
  19075. }
  19076. }
  19077. return this;
  19078. } else {
  19079. return this._isUTC ? offset : getDateOffset(this);
  19080. }
  19081. }
  19082. function getSetZone (input, keepLocalTime) {
  19083. if (input != null) {
  19084. if (typeof input !== 'string') {
  19085. input = -input;
  19086. }
  19087. this.utcOffset(input, keepLocalTime);
  19088. return this;
  19089. } else {
  19090. return -this.utcOffset();
  19091. }
  19092. }
  19093. function setOffsetToUTC (keepLocalTime) {
  19094. return this.utcOffset(0, keepLocalTime);
  19095. }
  19096. function setOffsetToLocal (keepLocalTime) {
  19097. if (this._isUTC) {
  19098. this.utcOffset(0, keepLocalTime);
  19099. this._isUTC = false;
  19100. if (keepLocalTime) {
  19101. this.subtract(getDateOffset(this), 'm');
  19102. }
  19103. }
  19104. return this;
  19105. }
  19106. function setOffsetToParsedOffset () {
  19107. if (this._tzm != null) {
  19108. this.utcOffset(this._tzm, false, true);
  19109. } else if (typeof this._i === 'string') {
  19110. var tZone = offsetFromString(matchOffset, this._i);
  19111. if (tZone != null) {
  19112. this.utcOffset(tZone);
  19113. }
  19114. else {
  19115. this.utcOffset(0, true);
  19116. }
  19117. }
  19118. return this;
  19119. }
  19120. function hasAlignedHourOffset (input) {
  19121. if (!this.isValid()) {
  19122. return false;
  19123. }
  19124. input = input ? createLocal(input).utcOffset() : 0;
  19125. return (this.utcOffset() - input) % 60 === 0;
  19126. }
  19127. function isDaylightSavingTime () {
  19128. return (
  19129. this.utcOffset() > this.clone().month(0).utcOffset() ||
  19130. this.utcOffset() > this.clone().month(5).utcOffset()
  19131. );
  19132. }
  19133. function isDaylightSavingTimeShifted () {
  19134. if (!isUndefined(this._isDSTShifted)) {
  19135. return this._isDSTShifted;
  19136. }
  19137. var c = {};
  19138. copyConfig(c, this);
  19139. c = prepareConfig(c);
  19140. if (c._a) {
  19141. var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  19142. this._isDSTShifted = this.isValid() &&
  19143. compareArrays(c._a, other.toArray()) > 0;
  19144. } else {
  19145. this._isDSTShifted = false;
  19146. }
  19147. return this._isDSTShifted;
  19148. }
  19149. function isLocal () {
  19150. return this.isValid() ? !this._isUTC : false;
  19151. }
  19152. function isUtcOffset () {
  19153. return this.isValid() ? this._isUTC : false;
  19154. }
  19155. function isUtc () {
  19156. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  19157. }
  19158. // ASP.NET json date format regex
  19159. var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  19160. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  19161. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  19162. // and further modified to allow for strings containing both week and day
  19163. var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  19164. function createDuration (input, key) {
  19165. var duration = input,
  19166. // matching against regexp is expensive, do it on demand
  19167. match = null,
  19168. sign,
  19169. ret,
  19170. diffRes;
  19171. if (isDuration(input)) {
  19172. duration = {
  19173. ms : input._milliseconds,
  19174. d : input._days,
  19175. M : input._months
  19176. };
  19177. } else if (isNumber(input)) {
  19178. duration = {};
  19179. if (key) {
  19180. duration[key] = input;
  19181. } else {
  19182. duration.milliseconds = input;
  19183. }
  19184. } else if (!!(match = aspNetRegex.exec(input))) {
  19185. sign = (match[1] === '-') ? -1 : 1;
  19186. duration = {
  19187. y : 0,
  19188. d : toInt(match[DATE]) * sign,
  19189. h : toInt(match[HOUR]) * sign,
  19190. m : toInt(match[MINUTE]) * sign,
  19191. s : toInt(match[SECOND]) * sign,
  19192. ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  19193. };
  19194. } else if (!!(match = isoRegex.exec(input))) {
  19195. sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
  19196. duration = {
  19197. y : parseIso(match[2], sign),
  19198. M : parseIso(match[3], sign),
  19199. w : parseIso(match[4], sign),
  19200. d : parseIso(match[5], sign),
  19201. h : parseIso(match[6], sign),
  19202. m : parseIso(match[7], sign),
  19203. s : parseIso(match[8], sign)
  19204. };
  19205. } else if (duration == null) {// checks for null or undefined
  19206. duration = {};
  19207. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  19208. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  19209. duration = {};
  19210. duration.ms = diffRes.milliseconds;
  19211. duration.M = diffRes.months;
  19212. }
  19213. ret = new Duration(duration);
  19214. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  19215. ret._locale = input._locale;
  19216. }
  19217. return ret;
  19218. }
  19219. createDuration.fn = Duration.prototype;
  19220. createDuration.invalid = createInvalid$1;
  19221. function parseIso (inp, sign) {
  19222. // We'd normally use ~~inp for this, but unfortunately it also
  19223. // converts floats to ints.
  19224. // inp may be undefined, so careful calling replace on it.
  19225. var res = inp && parseFloat(inp.replace(',', '.'));
  19226. // apply sign while we're at it
  19227. return (isNaN(res) ? 0 : res) * sign;
  19228. }
  19229. function positiveMomentsDifference(base, other) {
  19230. var res = {milliseconds: 0, months: 0};
  19231. res.months = other.month() - base.month() +
  19232. (other.year() - base.year()) * 12;
  19233. if (base.clone().add(res.months, 'M').isAfter(other)) {
  19234. --res.months;
  19235. }
  19236. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  19237. return res;
  19238. }
  19239. function momentsDifference(base, other) {
  19240. var res;
  19241. if (!(base.isValid() && other.isValid())) {
  19242. return {milliseconds: 0, months: 0};
  19243. }
  19244. other = cloneWithOffset(other, base);
  19245. if (base.isBefore(other)) {
  19246. res = positiveMomentsDifference(base, other);
  19247. } else {
  19248. res = positiveMomentsDifference(other, base);
  19249. res.milliseconds = -res.milliseconds;
  19250. res.months = -res.months;
  19251. }
  19252. return res;
  19253. }
  19254. // TODO: remove 'name' arg after deprecation is removed
  19255. function createAdder(direction, name) {
  19256. return function (val, period) {
  19257. var dur, tmp;
  19258. //invert the arguments, but complain about it
  19259. if (period !== null && !isNaN(+period)) {
  19260. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  19261. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  19262. tmp = val; val = period; period = tmp;
  19263. }
  19264. val = typeof val === 'string' ? +val : val;
  19265. dur = createDuration(val, period);
  19266. addSubtract(this, dur, direction);
  19267. return this;
  19268. };
  19269. }
  19270. function addSubtract (mom, duration, isAdding, updateOffset) {
  19271. var milliseconds = duration._milliseconds,
  19272. days = absRound(duration._days),
  19273. months = absRound(duration._months);
  19274. if (!mom.isValid()) {
  19275. // No op
  19276. return;
  19277. }
  19278. updateOffset = updateOffset == null ? true : updateOffset;
  19279. if (months) {
  19280. setMonth(mom, get(mom, 'Month') + months * isAdding);
  19281. }
  19282. if (days) {
  19283. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  19284. }
  19285. if (milliseconds) {
  19286. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  19287. }
  19288. if (updateOffset) {
  19289. hooks.updateOffset(mom, days || months);
  19290. }
  19291. }
  19292. var add = createAdder(1, 'add');
  19293. var subtract = createAdder(-1, 'subtract');
  19294. function getCalendarFormat(myMoment, now) {
  19295. var diff = myMoment.diff(now, 'days', true);
  19296. return diff < -6 ? 'sameElse' :
  19297. diff < -1 ? 'lastWeek' :
  19298. diff < 0 ? 'lastDay' :
  19299. diff < 1 ? 'sameDay' :
  19300. diff < 2 ? 'nextDay' :
  19301. diff < 7 ? 'nextWeek' : 'sameElse';
  19302. }
  19303. function calendar$1 (time, formats) {
  19304. // We want to compare the start of today, vs this.
  19305. // Getting start-of-today depends on whether we're local/utc/offset or not.
  19306. var now = time || createLocal(),
  19307. sod = cloneWithOffset(now, this).startOf('day'),
  19308. format = hooks.calendarFormat(this, sod) || 'sameElse';
  19309. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  19310. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  19311. }
  19312. function clone () {
  19313. return new Moment(this);
  19314. }
  19315. function isAfter (input, units) {
  19316. var localInput = isMoment(input) ? input : createLocal(input);
  19317. if (!(this.isValid() && localInput.isValid())) {
  19318. return false;
  19319. }
  19320. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  19321. if (units === 'millisecond') {
  19322. return this.valueOf() > localInput.valueOf();
  19323. } else {
  19324. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  19325. }
  19326. }
  19327. function isBefore (input, units) {
  19328. var localInput = isMoment(input) ? input : createLocal(input);
  19329. if (!(this.isValid() && localInput.isValid())) {
  19330. return false;
  19331. }
  19332. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  19333. if (units === 'millisecond') {
  19334. return this.valueOf() < localInput.valueOf();
  19335. } else {
  19336. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  19337. }
  19338. }
  19339. function isBetween (from, to, units, inclusivity) {
  19340. inclusivity = inclusivity || '()';
  19341. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  19342. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  19343. }
  19344. function isSame (input, units) {
  19345. var localInput = isMoment(input) ? input : createLocal(input),
  19346. inputMs;
  19347. if (!(this.isValid() && localInput.isValid())) {
  19348. return false;
  19349. }
  19350. units = normalizeUnits(units || 'millisecond');
  19351. if (units === 'millisecond') {
  19352. return this.valueOf() === localInput.valueOf();
  19353. } else {
  19354. inputMs = localInput.valueOf();
  19355. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  19356. }
  19357. }
  19358. function isSameOrAfter (input, units) {
  19359. return this.isSame(input, units) || this.isAfter(input,units);
  19360. }
  19361. function isSameOrBefore (input, units) {
  19362. return this.isSame(input, units) || this.isBefore(input,units);
  19363. }
  19364. function diff (input, units, asFloat) {
  19365. var that,
  19366. zoneDelta,
  19367. delta, output;
  19368. if (!this.isValid()) {
  19369. return NaN;
  19370. }
  19371. that = cloneWithOffset(input, this);
  19372. if (!that.isValid()) {
  19373. return NaN;
  19374. }
  19375. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  19376. units = normalizeUnits(units);
  19377. switch (units) {
  19378. case 'year': output = monthDiff(this, that) / 12; break;
  19379. case 'month': output = monthDiff(this, that); break;
  19380. case 'quarter': output = monthDiff(this, that) / 3; break;
  19381. case 'second': output = (this - that) / 1e3; break; // 1000
  19382. case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
  19383. case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
  19384. case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
  19385. case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
  19386. default: output = this - that;
  19387. }
  19388. return asFloat ? output : absFloor(output);
  19389. }
  19390. function monthDiff (a, b) {
  19391. // difference in months
  19392. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  19393. // b is in (anchor - 1 month, anchor + 1 month)
  19394. anchor = a.clone().add(wholeMonthDiff, 'months'),
  19395. anchor2, adjust;
  19396. if (b - anchor < 0) {
  19397. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  19398. // linear across the month
  19399. adjust = (b - anchor) / (anchor - anchor2);
  19400. } else {
  19401. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  19402. // linear across the month
  19403. adjust = (b - anchor) / (anchor2 - anchor);
  19404. }
  19405. //check for negative zero, return zero if negative zero
  19406. return -(wholeMonthDiff + adjust) || 0;
  19407. }
  19408. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  19409. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  19410. function toString () {
  19411. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  19412. }
  19413. function toISOString() {
  19414. if (!this.isValid()) {
  19415. return null;
  19416. }
  19417. var m = this.clone().utc();
  19418. if (m.year() < 0 || m.year() > 9999) {
  19419. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  19420. }
  19421. if (isFunction(Date.prototype.toISOString)) {
  19422. // native implementation is ~50x faster, use it when we can
  19423. return this.toDate().toISOString();
  19424. }
  19425. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  19426. }
  19427. /**
  19428. * Return a human readable representation of a moment that can
  19429. * also be evaluated to get a new moment which is the same
  19430. *
  19431. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  19432. */
  19433. function inspect () {
  19434. if (!this.isValid()) {
  19435. return 'moment.invalid(/* ' + this._i + ' */)';
  19436. }
  19437. var func = 'moment';
  19438. var zone = '';
  19439. if (!this.isLocal()) {
  19440. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  19441. zone = 'Z';
  19442. }
  19443. var prefix = '[' + func + '("]';
  19444. var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
  19445. var datetime = '-MM-DD[T]HH:mm:ss.SSS';
  19446. var suffix = zone + '[")]';
  19447. return this.format(prefix + year + datetime + suffix);
  19448. }
  19449. function format (inputString) {
  19450. if (!inputString) {
  19451. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  19452. }
  19453. var output = formatMoment(this, inputString);
  19454. return this.localeData().postformat(output);
  19455. }
  19456. function from (time, withoutSuffix) {
  19457. if (this.isValid() &&
  19458. ((isMoment(time) && time.isValid()) ||
  19459. createLocal(time).isValid())) {
  19460. return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  19461. } else {
  19462. return this.localeData().invalidDate();
  19463. }
  19464. }
  19465. function fromNow (withoutSuffix) {
  19466. return this.from(createLocal(), withoutSuffix);
  19467. }
  19468. function to (time, withoutSuffix) {
  19469. if (this.isValid() &&
  19470. ((isMoment(time) && time.isValid()) ||
  19471. createLocal(time).isValid())) {
  19472. return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  19473. } else {
  19474. return this.localeData().invalidDate();
  19475. }
  19476. }
  19477. function toNow (withoutSuffix) {
  19478. return this.to(createLocal(), withoutSuffix);
  19479. }
  19480. // If passed a locale key, it will set the locale for this
  19481. // instance. Otherwise, it will return the locale configuration
  19482. // variables for this instance.
  19483. function locale (key) {
  19484. var newLocaleData;
  19485. if (key === undefined) {
  19486. return this._locale._abbr;
  19487. } else {
  19488. newLocaleData = getLocale(key);
  19489. if (newLocaleData != null) {
  19490. this._locale = newLocaleData;
  19491. }
  19492. return this;
  19493. }
  19494. }
  19495. var lang = deprecate(
  19496. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  19497. function (key) {
  19498. if (key === undefined) {
  19499. return this.localeData();
  19500. } else {
  19501. return this.locale(key);
  19502. }
  19503. }
  19504. );
  19505. function localeData () {
  19506. return this._locale;
  19507. }
  19508. function startOf (units) {
  19509. units = normalizeUnits(units);
  19510. // the following switch intentionally omits break keywords
  19511. // to utilize falling through the cases.
  19512. switch (units) {
  19513. case 'year':
  19514. this.month(0);
  19515. /* falls through */
  19516. case 'quarter':
  19517. case 'month':
  19518. this.date(1);
  19519. /* falls through */
  19520. case 'week':
  19521. case 'isoWeek':
  19522. case 'day':
  19523. case 'date':
  19524. this.hours(0);
  19525. /* falls through */
  19526. case 'hour':
  19527. this.minutes(0);
  19528. /* falls through */
  19529. case 'minute':
  19530. this.seconds(0);
  19531. /* falls through */
  19532. case 'second':
  19533. this.milliseconds(0);
  19534. }
  19535. // weeks are a special case
  19536. if (units === 'week') {
  19537. this.weekday(0);
  19538. }
  19539. if (units === 'isoWeek') {
  19540. this.isoWeekday(1);
  19541. }
  19542. // quarters are also special
  19543. if (units === 'quarter') {
  19544. this.month(Math.floor(this.month() / 3) * 3);
  19545. }
  19546. return this;
  19547. }
  19548. function endOf (units) {
  19549. units = normalizeUnits(units);
  19550. if (units === undefined || units === 'millisecond') {
  19551. return this;
  19552. }
  19553. // 'date' is an alias for 'day', so it should be considered as such.
  19554. if (units === 'date') {
  19555. units = 'day';
  19556. }
  19557. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  19558. }
  19559. function valueOf () {
  19560. return this._d.valueOf() - ((this._offset || 0) * 60000);
  19561. }
  19562. function unix () {
  19563. return Math.floor(this.valueOf() / 1000);
  19564. }
  19565. function toDate () {
  19566. return new Date(this.valueOf());
  19567. }
  19568. function toArray () {
  19569. var m = this;
  19570. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  19571. }
  19572. function toObject () {
  19573. var m = this;
  19574. return {
  19575. years: m.year(),
  19576. months: m.month(),
  19577. date: m.date(),
  19578. hours: m.hours(),
  19579. minutes: m.minutes(),
  19580. seconds: m.seconds(),
  19581. milliseconds: m.milliseconds()
  19582. };
  19583. }
  19584. function toJSON () {
  19585. // new Date(NaN).toJSON() === null
  19586. return this.isValid() ? this.toISOString() : null;
  19587. }
  19588. function isValid$2 () {
  19589. return isValid(this);
  19590. }
  19591. function parsingFlags () {
  19592. return extend({}, getParsingFlags(this));
  19593. }
  19594. function invalidAt () {
  19595. return getParsingFlags(this).overflow;
  19596. }
  19597. function creationData() {
  19598. return {
  19599. input: this._i,
  19600. format: this._f,
  19601. locale: this._locale,
  19602. isUTC: this._isUTC,
  19603. strict: this._strict
  19604. };
  19605. }
  19606. // FORMATTING
  19607. addFormatToken(0, ['gg', 2], 0, function () {
  19608. return this.weekYear() % 100;
  19609. });
  19610. addFormatToken(0, ['GG', 2], 0, function () {
  19611. return this.isoWeekYear() % 100;
  19612. });
  19613. function addWeekYearFormatToken (token, getter) {
  19614. addFormatToken(0, [token, token.length], 0, getter);
  19615. }
  19616. addWeekYearFormatToken('gggg', 'weekYear');
  19617. addWeekYearFormatToken('ggggg', 'weekYear');
  19618. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  19619. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  19620. // ALIASES
  19621. addUnitAlias('weekYear', 'gg');
  19622. addUnitAlias('isoWeekYear', 'GG');
  19623. // PRIORITY
  19624. addUnitPriority('weekYear', 1);
  19625. addUnitPriority('isoWeekYear', 1);
  19626. // PARSING
  19627. addRegexToken('G', matchSigned);
  19628. addRegexToken('g', matchSigned);
  19629. addRegexToken('GG', match1to2, match2);
  19630. addRegexToken('gg', match1to2, match2);
  19631. addRegexToken('GGGG', match1to4, match4);
  19632. addRegexToken('gggg', match1to4, match4);
  19633. addRegexToken('GGGGG', match1to6, match6);
  19634. addRegexToken('ggggg', match1to6, match6);
  19635. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  19636. week[token.substr(0, 2)] = toInt(input);
  19637. });
  19638. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  19639. week[token] = hooks.parseTwoDigitYear(input);
  19640. });
  19641. // MOMENTS
  19642. function getSetWeekYear (input) {
  19643. return getSetWeekYearHelper.call(this,
  19644. input,
  19645. this.week(),
  19646. this.weekday(),
  19647. this.localeData()._week.dow,
  19648. this.localeData()._week.doy);
  19649. }
  19650. function getSetISOWeekYear (input) {
  19651. return getSetWeekYearHelper.call(this,
  19652. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  19653. }
  19654. function getISOWeeksInYear () {
  19655. return weeksInYear(this.year(), 1, 4);
  19656. }
  19657. function getWeeksInYear () {
  19658. var weekInfo = this.localeData()._week;
  19659. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  19660. }
  19661. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  19662. var weeksTarget;
  19663. if (input == null) {
  19664. return weekOfYear(this, dow, doy).year;
  19665. } else {
  19666. weeksTarget = weeksInYear(input, dow, doy);
  19667. if (week > weeksTarget) {
  19668. week = weeksTarget;
  19669. }
  19670. return setWeekAll.call(this, input, week, weekday, dow, doy);
  19671. }
  19672. }
  19673. function setWeekAll(weekYear, week, weekday, dow, doy) {
  19674. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  19675. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  19676. this.year(date.getUTCFullYear());
  19677. this.month(date.getUTCMonth());
  19678. this.date(date.getUTCDate());
  19679. return this;
  19680. }
  19681. // FORMATTING
  19682. addFormatToken('Q', 0, 'Qo', 'quarter');
  19683. // ALIASES
  19684. addUnitAlias('quarter', 'Q');
  19685. // PRIORITY
  19686. addUnitPriority('quarter', 7);
  19687. // PARSING
  19688. addRegexToken('Q', match1);
  19689. addParseToken('Q', function (input, array) {
  19690. array[MONTH] = (toInt(input) - 1) * 3;
  19691. });
  19692. // MOMENTS
  19693. function getSetQuarter (input) {
  19694. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  19695. }
  19696. // FORMATTING
  19697. addFormatToken('D', ['DD', 2], 'Do', 'date');
  19698. // ALIASES
  19699. addUnitAlias('date', 'D');
  19700. // PRIOROITY
  19701. addUnitPriority('date', 9);
  19702. // PARSING
  19703. addRegexToken('D', match1to2);
  19704. addRegexToken('DD', match1to2, match2);
  19705. addRegexToken('Do', function (isStrict, locale) {
  19706. // TODO: Remove "ordinalParse" fallback in next major release.
  19707. return isStrict ?
  19708. (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
  19709. locale._dayOfMonthOrdinalParseLenient;
  19710. });
  19711. addParseToken(['D', 'DD'], DATE);
  19712. addParseToken('Do', function (input, array) {
  19713. array[DATE] = toInt(input.match(match1to2)[0]);
  19714. });
  19715. // MOMENTS
  19716. var getSetDayOfMonth = makeGetSet('Date', true);
  19717. // FORMATTING
  19718. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  19719. // ALIASES
  19720. addUnitAlias('dayOfYear', 'DDD');
  19721. // PRIORITY
  19722. addUnitPriority('dayOfYear', 4);
  19723. // PARSING
  19724. addRegexToken('DDD', match1to3);
  19725. addRegexToken('DDDD', match3);
  19726. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  19727. config._dayOfYear = toInt(input);
  19728. });
  19729. // HELPERS
  19730. // MOMENTS
  19731. function getSetDayOfYear (input) {
  19732. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  19733. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  19734. }
  19735. // FORMATTING
  19736. addFormatToken('m', ['mm', 2], 0, 'minute');
  19737. // ALIASES
  19738. addUnitAlias('minute', 'm');
  19739. // PRIORITY
  19740. addUnitPriority('minute', 14);
  19741. // PARSING
  19742. addRegexToken('m', match1to2);
  19743. addRegexToken('mm', match1to2, match2);
  19744. addParseToken(['m', 'mm'], MINUTE);
  19745. // MOMENTS
  19746. var getSetMinute = makeGetSet('Minutes', false);
  19747. // FORMATTING
  19748. addFormatToken('s', ['ss', 2], 0, 'second');
  19749. // ALIASES
  19750. addUnitAlias('second', 's');
  19751. // PRIORITY
  19752. addUnitPriority('second', 15);
  19753. // PARSING
  19754. addRegexToken('s', match1to2);
  19755. addRegexToken('ss', match1to2, match2);
  19756. addParseToken(['s', 'ss'], SECOND);
  19757. // MOMENTS
  19758. var getSetSecond = makeGetSet('Seconds', false);
  19759. // FORMATTING
  19760. addFormatToken('S', 0, 0, function () {
  19761. return ~~(this.millisecond() / 100);
  19762. });
  19763. addFormatToken(0, ['SS', 2], 0, function () {
  19764. return ~~(this.millisecond() / 10);
  19765. });
  19766. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  19767. addFormatToken(0, ['SSSS', 4], 0, function () {
  19768. return this.millisecond() * 10;
  19769. });
  19770. addFormatToken(0, ['SSSSS', 5], 0, function () {
  19771. return this.millisecond() * 100;
  19772. });
  19773. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  19774. return this.millisecond() * 1000;
  19775. });
  19776. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  19777. return this.millisecond() * 10000;
  19778. });
  19779. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  19780. return this.millisecond() * 100000;
  19781. });
  19782. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  19783. return this.millisecond() * 1000000;
  19784. });
  19785. // ALIASES
  19786. addUnitAlias('millisecond', 'ms');
  19787. // PRIORITY
  19788. addUnitPriority('millisecond', 16);
  19789. // PARSING
  19790. addRegexToken('S', match1to3, match1);
  19791. addRegexToken('SS', match1to3, match2);
  19792. addRegexToken('SSS', match1to3, match3);
  19793. var token;
  19794. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  19795. addRegexToken(token, matchUnsigned);
  19796. }
  19797. function parseMs(input, array) {
  19798. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  19799. }
  19800. for (token = 'S'; token.length <= 9; token += 'S') {
  19801. addParseToken(token, parseMs);
  19802. }
  19803. // MOMENTS
  19804. var getSetMillisecond = makeGetSet('Milliseconds', false);
  19805. // FORMATTING
  19806. addFormatToken('z', 0, 0, 'zoneAbbr');
  19807. addFormatToken('zz', 0, 0, 'zoneName');
  19808. // MOMENTS
  19809. function getZoneAbbr () {
  19810. return this._isUTC ? 'UTC' : '';
  19811. }
  19812. function getZoneName () {
  19813. return this._isUTC ? 'Coordinated Universal Time' : '';
  19814. }
  19815. var proto = Moment.prototype;
  19816. proto.add = add;
  19817. proto.calendar = calendar$1;
  19818. proto.clone = clone;
  19819. proto.diff = diff;
  19820. proto.endOf = endOf;
  19821. proto.format = format;
  19822. proto.from = from;
  19823. proto.fromNow = fromNow;
  19824. proto.to = to;
  19825. proto.toNow = toNow;
  19826. proto.get = stringGet;
  19827. proto.invalidAt = invalidAt;
  19828. proto.isAfter = isAfter;
  19829. proto.isBefore = isBefore;
  19830. proto.isBetween = isBetween;
  19831. proto.isSame = isSame;
  19832. proto.isSameOrAfter = isSameOrAfter;
  19833. proto.isSameOrBefore = isSameOrBefore;
  19834. proto.isValid = isValid$2;
  19835. proto.lang = lang;
  19836. proto.locale = locale;
  19837. proto.localeData = localeData;
  19838. proto.max = prototypeMax;
  19839. proto.min = prototypeMin;
  19840. proto.parsingFlags = parsingFlags;
  19841. proto.set = stringSet;
  19842. proto.startOf = startOf;
  19843. proto.subtract = subtract;
  19844. proto.toArray = toArray;
  19845. proto.toObject = toObject;
  19846. proto.toDate = toDate;
  19847. proto.toISOString = toISOString;
  19848. proto.inspect = inspect;
  19849. proto.toJSON = toJSON;
  19850. proto.toString = toString;
  19851. proto.unix = unix;
  19852. proto.valueOf = valueOf;
  19853. proto.creationData = creationData;
  19854. // Year
  19855. proto.year = getSetYear;
  19856. proto.isLeapYear = getIsLeapYear;
  19857. // Week Year
  19858. proto.weekYear = getSetWeekYear;
  19859. proto.isoWeekYear = getSetISOWeekYear;
  19860. // Quarter
  19861. proto.quarter = proto.quarters = getSetQuarter;
  19862. // Month
  19863. proto.month = getSetMonth;
  19864. proto.daysInMonth = getDaysInMonth;
  19865. // Week
  19866. proto.week = proto.weeks = getSetWeek;
  19867. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  19868. proto.weeksInYear = getWeeksInYear;
  19869. proto.isoWeeksInYear = getISOWeeksInYear;
  19870. // Day
  19871. proto.date = getSetDayOfMonth;
  19872. proto.day = proto.days = getSetDayOfWeek;
  19873. proto.weekday = getSetLocaleDayOfWeek;
  19874. proto.isoWeekday = getSetISODayOfWeek;
  19875. proto.dayOfYear = getSetDayOfYear;
  19876. // Hour
  19877. proto.hour = proto.hours = getSetHour;
  19878. // Minute
  19879. proto.minute = proto.minutes = getSetMinute;
  19880. // Second
  19881. proto.second = proto.seconds = getSetSecond;
  19882. // Millisecond
  19883. proto.millisecond = proto.milliseconds = getSetMillisecond;
  19884. // Offset
  19885. proto.utcOffset = getSetOffset;
  19886. proto.utc = setOffsetToUTC;
  19887. proto.local = setOffsetToLocal;
  19888. proto.parseZone = setOffsetToParsedOffset;
  19889. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  19890. proto.isDST = isDaylightSavingTime;
  19891. proto.isLocal = isLocal;
  19892. proto.isUtcOffset = isUtcOffset;
  19893. proto.isUtc = isUtc;
  19894. proto.isUTC = isUtc;
  19895. // Timezone
  19896. proto.zoneAbbr = getZoneAbbr;
  19897. proto.zoneName = getZoneName;
  19898. // Deprecations
  19899. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  19900. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  19901. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  19902. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  19903. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  19904. function createUnix (input) {
  19905. return createLocal(input * 1000);
  19906. }
  19907. function createInZone () {
  19908. return createLocal.apply(null, arguments).parseZone();
  19909. }
  19910. function preParsePostFormat (string) {
  19911. return string;
  19912. }
  19913. var proto$1 = Locale.prototype;
  19914. proto$1.calendar = calendar;
  19915. proto$1.longDateFormat = longDateFormat;
  19916. proto$1.invalidDate = invalidDate;
  19917. proto$1.ordinal = ordinal;
  19918. proto$1.preparse = preParsePostFormat;
  19919. proto$1.postformat = preParsePostFormat;
  19920. proto$1.relativeTime = relativeTime;
  19921. proto$1.pastFuture = pastFuture;
  19922. proto$1.set = set;
  19923. // Month
  19924. proto$1.months = localeMonths;
  19925. proto$1.monthsShort = localeMonthsShort;
  19926. proto$1.monthsParse = localeMonthsParse;
  19927. proto$1.monthsRegex = monthsRegex;
  19928. proto$1.monthsShortRegex = monthsShortRegex;
  19929. // Week
  19930. proto$1.week = localeWeek;
  19931. proto$1.firstDayOfYear = localeFirstDayOfYear;
  19932. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  19933. // Day of Week
  19934. proto$1.weekdays = localeWeekdays;
  19935. proto$1.weekdaysMin = localeWeekdaysMin;
  19936. proto$1.weekdaysShort = localeWeekdaysShort;
  19937. proto$1.weekdaysParse = localeWeekdaysParse;
  19938. proto$1.weekdaysRegex = weekdaysRegex;
  19939. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  19940. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  19941. // Hours
  19942. proto$1.isPM = localeIsPM;
  19943. proto$1.meridiem = localeMeridiem;
  19944. function get$1 (format, index, field, setter) {
  19945. var locale = getLocale();
  19946. var utc = createUTC().set(setter, index);
  19947. return locale[field](utc, format);
  19948. }
  19949. function listMonthsImpl (format, index, field) {
  19950. if (isNumber(format)) {
  19951. index = format;
  19952. format = undefined;
  19953. }
  19954. format = format || '';
  19955. if (index != null) {
  19956. return get$1(format, index, field, 'month');
  19957. }
  19958. var i;
  19959. var out = [];
  19960. for (i = 0; i < 12; i++) {
  19961. out[i] = get$1(format, i, field, 'month');
  19962. }
  19963. return out;
  19964. }
  19965. // ()
  19966. // (5)
  19967. // (fmt, 5)
  19968. // (fmt)
  19969. // (true)
  19970. // (true, 5)
  19971. // (true, fmt, 5)
  19972. // (true, fmt)
  19973. function listWeekdaysImpl (localeSorted, format, index, field) {
  19974. if (typeof localeSorted === 'boolean') {
  19975. if (isNumber(format)) {
  19976. index = format;
  19977. format = undefined;
  19978. }
  19979. format = format || '';
  19980. } else {
  19981. format = localeSorted;
  19982. index = format;
  19983. localeSorted = false;
  19984. if (isNumber(format)) {
  19985. index = format;
  19986. format = undefined;
  19987. }
  19988. format = format || '';
  19989. }
  19990. var locale = getLocale(),
  19991. shift = localeSorted ? locale._week.dow : 0;
  19992. if (index != null) {
  19993. return get$1(format, (index + shift) % 7, field, 'day');
  19994. }
  19995. var i;
  19996. var out = [];
  19997. for (i = 0; i < 7; i++) {
  19998. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  19999. }
  20000. return out;
  20001. }
  20002. function listMonths (format, index) {
  20003. return listMonthsImpl(format, index, 'months');
  20004. }
  20005. function listMonthsShort (format, index) {
  20006. return listMonthsImpl(format, index, 'monthsShort');
  20007. }
  20008. function listWeekdays (localeSorted, format, index) {
  20009. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  20010. }
  20011. function listWeekdaysShort (localeSorted, format, index) {
  20012. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  20013. }
  20014. function listWeekdaysMin (localeSorted, format, index) {
  20015. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  20016. }
  20017. getSetGlobalLocale('en', {
  20018. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  20019. ordinal : function (number) {
  20020. var b = number % 10,
  20021. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  20022. (b === 1) ? 'st' :
  20023. (b === 2) ? 'nd' :
  20024. (b === 3) ? 'rd' : 'th';
  20025. return number + output;
  20026. }
  20027. });
  20028. // Side effect imports
  20029. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  20030. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  20031. var mathAbs = Math.abs;
  20032. function abs () {
  20033. var data = this._data;
  20034. this._milliseconds = mathAbs(this._milliseconds);
  20035. this._days = mathAbs(this._days);
  20036. this._months = mathAbs(this._months);
  20037. data.milliseconds = mathAbs(data.milliseconds);
  20038. data.seconds = mathAbs(data.seconds);
  20039. data.minutes = mathAbs(data.minutes);
  20040. data.hours = mathAbs(data.hours);
  20041. data.months = mathAbs(data.months);
  20042. data.years = mathAbs(data.years);
  20043. return this;
  20044. }
  20045. function addSubtract$1 (duration, input, value, direction) {
  20046. var other = createDuration(input, value);
  20047. duration._milliseconds += direction * other._milliseconds;
  20048. duration._days += direction * other._days;
  20049. duration._months += direction * other._months;
  20050. return duration._bubble();
  20051. }
  20052. // supports only 2.0-style add(1, 's') or add(duration)
  20053. function add$1 (input, value) {
  20054. return addSubtract$1(this, input, value, 1);
  20055. }
  20056. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  20057. function subtract$1 (input, value) {
  20058. return addSubtract$1(this, input, value, -1);
  20059. }
  20060. function absCeil (number) {
  20061. if (number < 0) {
  20062. return Math.floor(number);
  20063. } else {
  20064. return Math.ceil(number);
  20065. }
  20066. }
  20067. function bubble () {
  20068. var milliseconds = this._milliseconds;
  20069. var days = this._days;
  20070. var months = this._months;
  20071. var data = this._data;
  20072. var seconds, minutes, hours, years, monthsFromDays;
  20073. // if we have a mix of positive and negative values, bubble down first
  20074. // check: https://github.com/moment/moment/issues/2166
  20075. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  20076. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  20077. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  20078. days = 0;
  20079. months = 0;
  20080. }
  20081. // The following code bubbles up values, see the tests for
  20082. // examples of what that means.
  20083. data.milliseconds = milliseconds % 1000;
  20084. seconds = absFloor(milliseconds / 1000);
  20085. data.seconds = seconds % 60;
  20086. minutes = absFloor(seconds / 60);
  20087. data.minutes = minutes % 60;
  20088. hours = absFloor(minutes / 60);
  20089. data.hours = hours % 24;
  20090. days += absFloor(hours / 24);
  20091. // convert days to months
  20092. monthsFromDays = absFloor(daysToMonths(days));
  20093. months += monthsFromDays;
  20094. days -= absCeil(monthsToDays(monthsFromDays));
  20095. // 12 months -> 1 year
  20096. years = absFloor(months / 12);
  20097. months %= 12;
  20098. data.days = days;
  20099. data.months = months;
  20100. data.years = years;
  20101. return this;
  20102. }
  20103. function daysToMonths (days) {
  20104. // 400 years have 146097 days (taking into account leap year rules)
  20105. // 400 years have 12 months === 4800
  20106. return days * 4800 / 146097;
  20107. }
  20108. function monthsToDays (months) {
  20109. // the reverse of daysToMonths
  20110. return months * 146097 / 4800;
  20111. }
  20112. function as (units) {
  20113. if (!this.isValid()) {
  20114. return NaN;
  20115. }
  20116. var days;
  20117. var months;
  20118. var milliseconds = this._milliseconds;
  20119. units = normalizeUnits(units);
  20120. if (units === 'month' || units === 'year') {
  20121. days = this._days + milliseconds / 864e5;
  20122. months = this._months + daysToMonths(days);
  20123. return units === 'month' ? months : months / 12;
  20124. } else {
  20125. // handle milliseconds separately because of floating point math errors (issue #1867)
  20126. days = this._days + Math.round(monthsToDays(this._months));
  20127. switch (units) {
  20128. case 'week' : return days / 7 + milliseconds / 6048e5;
  20129. case 'day' : return days + milliseconds / 864e5;
  20130. case 'hour' : return days * 24 + milliseconds / 36e5;
  20131. case 'minute' : return days * 1440 + milliseconds / 6e4;
  20132. case 'second' : return days * 86400 + milliseconds / 1000;
  20133. // Math.floor prevents floating point math errors here
  20134. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  20135. default: throw new Error('Unknown unit ' + units);
  20136. }
  20137. }
  20138. }
  20139. // TODO: Use this.as('ms')?
  20140. function valueOf$1 () {
  20141. if (!this.isValid()) {
  20142. return NaN;
  20143. }
  20144. return (
  20145. this._milliseconds +
  20146. this._days * 864e5 +
  20147. (this._months % 12) * 2592e6 +
  20148. toInt(this._months / 12) * 31536e6
  20149. );
  20150. }
  20151. function makeAs (alias) {
  20152. return function () {
  20153. return this.as(alias);
  20154. };
  20155. }
  20156. var asMilliseconds = makeAs('ms');
  20157. var asSeconds = makeAs('s');
  20158. var asMinutes = makeAs('m');
  20159. var asHours = makeAs('h');
  20160. var asDays = makeAs('d');
  20161. var asWeeks = makeAs('w');
  20162. var asMonths = makeAs('M');
  20163. var asYears = makeAs('y');
  20164. function clone$1 () {
  20165. return createDuration(this);
  20166. }
  20167. function get$2 (units) {
  20168. units = normalizeUnits(units);
  20169. return this.isValid() ? this[units + 's']() : NaN;
  20170. }
  20171. function makeGetter(name) {
  20172. return function () {
  20173. return this.isValid() ? this._data[name] : NaN;
  20174. };
  20175. }
  20176. var milliseconds = makeGetter('milliseconds');
  20177. var seconds = makeGetter('seconds');
  20178. var minutes = makeGetter('minutes');
  20179. var hours = makeGetter('hours');
  20180. var days = makeGetter('days');
  20181. var months = makeGetter('months');
  20182. var years = makeGetter('years');
  20183. function weeks () {
  20184. return absFloor(this.days() / 7);
  20185. }
  20186. var round = Math.round;
  20187. var thresholds = {
  20188. ss: 44, // a few seconds to seconds
  20189. s : 45, // seconds to minute
  20190. m : 45, // minutes to hour
  20191. h : 22, // hours to day
  20192. d : 26, // days to month
  20193. M : 11 // months to year
  20194. };
  20195. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  20196. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  20197. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  20198. }
  20199. function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
  20200. var duration = createDuration(posNegDuration).abs();
  20201. var seconds = round(duration.as('s'));
  20202. var minutes = round(duration.as('m'));
  20203. var hours = round(duration.as('h'));
  20204. var days = round(duration.as('d'));
  20205. var months = round(duration.as('M'));
  20206. var years = round(duration.as('y'));
  20207. var a = seconds <= thresholds.ss && ['s', seconds] ||
  20208. seconds < thresholds.s && ['ss', seconds] ||
  20209. minutes <= 1 && ['m'] ||
  20210. minutes < thresholds.m && ['mm', minutes] ||
  20211. hours <= 1 && ['h'] ||
  20212. hours < thresholds.h && ['hh', hours] ||
  20213. days <= 1 && ['d'] ||
  20214. days < thresholds.d && ['dd', days] ||
  20215. months <= 1 && ['M'] ||
  20216. months < thresholds.M && ['MM', months] ||
  20217. years <= 1 && ['y'] || ['yy', years];
  20218. a[2] = withoutSuffix;
  20219. a[3] = +posNegDuration > 0;
  20220. a[4] = locale;
  20221. return substituteTimeAgo.apply(null, a);
  20222. }
  20223. // This function allows you to set the rounding function for relative time strings
  20224. function getSetRelativeTimeRounding (roundingFunction) {
  20225. if (roundingFunction === undefined) {
  20226. return round;
  20227. }
  20228. if (typeof(roundingFunction) === 'function') {
  20229. round = roundingFunction;
  20230. return true;
  20231. }
  20232. return false;
  20233. }
  20234. // This function allows you to set a threshold for relative time strings
  20235. function getSetRelativeTimeThreshold (threshold, limit) {
  20236. if (thresholds[threshold] === undefined) {
  20237. return false;
  20238. }
  20239. if (limit === undefined) {
  20240. return thresholds[threshold];
  20241. }
  20242. thresholds[threshold] = limit;
  20243. if (threshold === 's') {
  20244. thresholds.ss = limit - 1;
  20245. }
  20246. return true;
  20247. }
  20248. function humanize (withSuffix) {
  20249. if (!this.isValid()) {
  20250. return this.localeData().invalidDate();
  20251. }
  20252. var locale = this.localeData();
  20253. var output = relativeTime$1(this, !withSuffix, locale);
  20254. if (withSuffix) {
  20255. output = locale.pastFuture(+this, output);
  20256. }
  20257. return locale.postformat(output);
  20258. }
  20259. var abs$1 = Math.abs;
  20260. function sign(x) {
  20261. return ((x > 0) - (x < 0)) || +x;
  20262. }
  20263. function toISOString$1() {
  20264. // for ISO strings we do not use the normal bubbling rules:
  20265. // * milliseconds bubble up until they become hours
  20266. // * days do not bubble at all
  20267. // * months bubble up until they become years
  20268. // This is because there is no context-free conversion between hours and days
  20269. // (think of clock changes)
  20270. // and also not between days and months (28-31 days per month)
  20271. if (!this.isValid()) {
  20272. return this.localeData().invalidDate();
  20273. }
  20274. var seconds = abs$1(this._milliseconds) / 1000;
  20275. var days = abs$1(this._days);
  20276. var months = abs$1(this._months);
  20277. var minutes, hours, years;
  20278. // 3600 seconds -> 60 minutes -> 1 hour
  20279. minutes = absFloor(seconds / 60);
  20280. hours = absFloor(minutes / 60);
  20281. seconds %= 60;
  20282. minutes %= 60;
  20283. // 12 months -> 1 year
  20284. years = absFloor(months / 12);
  20285. months %= 12;
  20286. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  20287. var Y = years;
  20288. var M = months;
  20289. var D = days;
  20290. var h = hours;
  20291. var m = minutes;
  20292. var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  20293. var total = this.asSeconds();
  20294. if (!total) {
  20295. // this is the same as C#'s (Noda) and python (isodate)...
  20296. // but not other JS (goog.date)
  20297. return 'P0D';
  20298. }
  20299. var totalSign = total < 0 ? '-' : '';
  20300. var ymSign = sign(this._months) !== sign(total) ? '-' : '';
  20301. var daysSign = sign(this._days) !== sign(total) ? '-' : '';
  20302. var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  20303. return totalSign + 'P' +
  20304. (Y ? ymSign + Y + 'Y' : '') +
  20305. (M ? ymSign + M + 'M' : '') +
  20306. (D ? daysSign + D + 'D' : '') +
  20307. ((h || m || s) ? 'T' : '') +
  20308. (h ? hmsSign + h + 'H' : '') +
  20309. (m ? hmsSign + m + 'M' : '') +
  20310. (s ? hmsSign + s + 'S' : '');
  20311. }
  20312. var proto$2 = Duration.prototype;
  20313. proto$2.isValid = isValid$1;
  20314. proto$2.abs = abs;
  20315. proto$2.add = add$1;
  20316. proto$2.subtract = subtract$1;
  20317. proto$2.as = as;
  20318. proto$2.asMilliseconds = asMilliseconds;
  20319. proto$2.asSeconds = asSeconds;
  20320. proto$2.asMinutes = asMinutes;
  20321. proto$2.asHours = asHours;
  20322. proto$2.asDays = asDays;
  20323. proto$2.asWeeks = asWeeks;
  20324. proto$2.asMonths = asMonths;
  20325. proto$2.asYears = asYears;
  20326. proto$2.valueOf = valueOf$1;
  20327. proto$2._bubble = bubble;
  20328. proto$2.clone = clone$1;
  20329. proto$2.get = get$2;
  20330. proto$2.milliseconds = milliseconds;
  20331. proto$2.seconds = seconds;
  20332. proto$2.minutes = minutes;
  20333. proto$2.hours = hours;
  20334. proto$2.days = days;
  20335. proto$2.weeks = weeks;
  20336. proto$2.months = months;
  20337. proto$2.years = years;
  20338. proto$2.humanize = humanize;
  20339. proto$2.toISOString = toISOString$1;
  20340. proto$2.toString = toISOString$1;
  20341. proto$2.toJSON = toISOString$1;
  20342. proto$2.locale = locale;
  20343. proto$2.localeData = localeData;
  20344. // Deprecations
  20345. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  20346. proto$2.lang = lang;
  20347. // Side effect imports
  20348. // FORMATTING
  20349. addFormatToken('X', 0, 0, 'unix');
  20350. addFormatToken('x', 0, 0, 'valueOf');
  20351. // PARSING
  20352. addRegexToken('x', matchSigned);
  20353. addRegexToken('X', matchTimestamp);
  20354. addParseToken('X', function (input, array, config) {
  20355. config._d = new Date(parseFloat(input, 10) * 1000);
  20356. });
  20357. addParseToken('x', function (input, array, config) {
  20358. config._d = new Date(toInt(input));
  20359. });
  20360. // Side effect imports
  20361. hooks.version = '2.19.4';
  20362. setHookCallback(createLocal);
  20363. hooks.fn = proto;
  20364. hooks.min = min;
  20365. hooks.max = max;
  20366. hooks.now = now;
  20367. hooks.utc = createUTC;
  20368. hooks.unix = createUnix;
  20369. hooks.months = listMonths;
  20370. hooks.isDate = isDate;
  20371. hooks.locale = getSetGlobalLocale;
  20372. hooks.invalid = createInvalid;
  20373. hooks.duration = createDuration;
  20374. hooks.isMoment = isMoment;
  20375. hooks.weekdays = listWeekdays;
  20376. hooks.parseZone = createInZone;
  20377. hooks.localeData = getLocale;
  20378. hooks.isDuration = isDuration;
  20379. hooks.monthsShort = listMonthsShort;
  20380. hooks.weekdaysMin = listWeekdaysMin;
  20381. hooks.defineLocale = defineLocale;
  20382. hooks.updateLocale = updateLocale;
  20383. hooks.locales = listLocales;
  20384. hooks.weekdaysShort = listWeekdaysShort;
  20385. hooks.normalizeUnits = normalizeUnits;
  20386. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  20387. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  20388. hooks.calendarFormat = getCalendarFormat;
  20389. hooks.prototype = proto;
  20390. return hooks;
  20391. })));
  20392. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  20393. /***/ }),
  20394. /***/ "./node_modules/pluggable.js/dist/pluggable.js":
  20395. /*!*****************************************************!*\
  20396. !*** ./node_modules/pluggable.js/dist/pluggable.js ***!
  20397. \*****************************************************/
  20398. /*! no static exports found */
  20399. /***/ (function(module, exports, __webpack_require__) {
  20400. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  20401. if (true) {
  20402. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(/*! lodash */ "lodash")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20403. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20404. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20405. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  20406. } else { var mod; }
  20407. })(this, function (exports, _lodash) {
  20408. 'use strict';
  20409. Object.defineProperty(exports, "__esModule", {
  20410. value: true
  20411. });
  20412. exports.enable = undefined;
  20413. var _ = _interopRequireWildcard(_lodash);
  20414. function _interopRequireWildcard(obj) {
  20415. if (obj && obj.__esModule) {
  20416. return obj;
  20417. } else {
  20418. var newObj = {};
  20419. if (obj != null) {
  20420. for (var key in obj) {
  20421. if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
  20422. }
  20423. }
  20424. newObj.default = obj;
  20425. return newObj;
  20426. }
  20427. }
  20428. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  20429. return typeof obj;
  20430. } : function (obj) {
  20431. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  20432. };
  20433. // The `PluginSocket` class contains the plugin architecture, and gets
  20434. // created whenever `pluggable.enable(obj);` is called on the object
  20435. // that you want to make pluggable.
  20436. // You can also see it as the thing into which the plugins are plugged.
  20437. // It takes two parameters, first, the object being made pluggable, and
  20438. // then the name by which the pluggable object may be referenced on the
  20439. // __super__ object (inside overrides).
  20440. function PluginSocket(plugged, name) {
  20441. this.name = name;
  20442. this.plugged = plugged;
  20443. if (typeof this.plugged.__super__ === 'undefined') {
  20444. this.plugged.__super__ = {};
  20445. } else if (typeof this.plugged.__super__ === 'string') {
  20446. this.plugged.__super__ = { '__string__': this.plugged.__super__ };
  20447. }
  20448. this.plugged.__super__[name] = this.plugged;
  20449. this.plugins = {};
  20450. this.initialized_plugins = [];
  20451. }
  20452. // Now we add methods to the PluginSocket by adding them to its
  20453. // prototype.
  20454. _.extend(PluginSocket.prototype, {
  20455. // `wrappedOverride` creates a partially applied wrapper function
  20456. // that makes sure to set the proper super method when the
  20457. // overriding method is called. This is done to enable
  20458. // chaining of plugin methods, all the way up to the
  20459. // original method.
  20460. wrappedOverride: function wrappedOverride(key, value, super_method, default_super) {
  20461. if (typeof super_method === "function") {
  20462. if (typeof this.__super__ === "undefined") {
  20463. /* We're not on the context of the plugged object.
  20464. * This can happen when the overridden method is called via
  20465. * an event handler or when it's a constructor.
  20466. *
  20467. * In this case, we simply tack on the __super__ obj.
  20468. */
  20469. this.__super__ = default_super;
  20470. }
  20471. this.__super__[key] = super_method.bind(this);
  20472. }
  20473. return value.apply(this, _.drop(arguments, 4));
  20474. },
  20475. // `_overrideAttribute` overrides an attribute on the original object
  20476. // (the thing being plugged into).
  20477. //
  20478. // If the attribute being overridden is a function, then the original
  20479. // function will still be available via the `__super__` attribute.
  20480. //
  20481. // If the same function is being overridden multiple times, then
  20482. // the original function will be available at the end of a chain of
  20483. // functions, starting from the most recent override, all the way
  20484. // back to the original function, each being referenced by the
  20485. // previous' __super__ attribute.
  20486. //
  20487. // For example:
  20488. //
  20489. // `plugin2.MyFunc.__super__.myFunc => plugin1.MyFunc.__super__.myFunc => original.myFunc`
  20490. _overrideAttribute: function _overrideAttribute(key, plugin) {
  20491. var value = plugin.overrides[key];
  20492. if (typeof value === "function") {
  20493. var default_super = {};
  20494. default_super[this.name] = this.plugged;
  20495. var wrapped_function = _.partial(this.wrappedOverride, key, value, this.plugged[key], default_super);
  20496. this.plugged[key] = wrapped_function;
  20497. } else {
  20498. this.plugged[key] = value;
  20499. }
  20500. },
  20501. _extendObject: function _extendObject(obj, attributes) {
  20502. if (!obj.prototype.__super__) {
  20503. obj.prototype.__super__ = {};
  20504. obj.prototype.__super__[this.name] = this.plugged;
  20505. }
  20506. var that = this;
  20507. _.each(attributes, function (value, key) {
  20508. if (key === 'events') {
  20509. obj.prototype[key] = _.extend(value, obj.prototype[key]);
  20510. } else if (typeof value === 'function') {
  20511. // We create a partially applied wrapper function, that
  20512. // makes sure to set the proper super method when the
  20513. // overriding method is called. This is done to enable
  20514. // chaining of plugin methods, all the way up to the
  20515. // original method.
  20516. var default_super = {};
  20517. default_super[that.name] = that.plugged;
  20518. var wrapped_function = _.partial(that.wrappedOverride, key, value, obj.prototype[key], default_super);
  20519. obj.prototype[key] = wrapped_function;
  20520. } else {
  20521. obj.prototype[key] = value;
  20522. }
  20523. });
  20524. },
  20525. // Plugins can specify dependencies (by means of the
  20526. // `dependencies` list attribute) which refers to dependencies
  20527. // which will be initialized first, before the plugin itself gets initialized.
  20528. //
  20529. // If `strict_plugin_dependencies` is set to `false` (on the object being
  20530. // made pluggable), then no error will be thrown if any of these plugins aren't
  20531. // available.
  20532. loadPluginDependencies: function loadPluginDependencies(plugin) {
  20533. var _this = this;
  20534. _.each(plugin.dependencies, function (name) {
  20535. var dep = _this.plugins[name];
  20536. if (dep) {
  20537. if (_.includes(dep.dependencies, plugin.__name__)) {
  20538. /* FIXME: circular dependency checking is only one level deep. */
  20539. throw "Found a circular dependency between the plugins \"" + plugin.__name__ + "\" and \"" + name + "\"";
  20540. }
  20541. _this.initializePlugin(dep);
  20542. } else {
  20543. _this.throwUndefinedDependencyError("Could not find dependency \"" + name + "\" " + "for the plugin \"" + plugin.__name__ + "\". " + "If it's needed, make sure it's loaded by require.js");
  20544. }
  20545. });
  20546. },
  20547. throwUndefinedDependencyError: function throwUndefinedDependencyError(msg) {
  20548. if (this.plugged.strict_plugin_dependencies) {
  20549. throw msg;
  20550. } else {
  20551. console.log(msg);
  20552. return;
  20553. }
  20554. },
  20555. // `applyOverrides` is called by initializePlugin. It applies any
  20556. // and all overrides of methods or Backbone views and models that
  20557. // are defined on any of the plugins.
  20558. applyOverrides: function applyOverrides(plugin) {
  20559. var _this2 = this;
  20560. _.each(Object.keys(plugin.overrides || {}), function (key) {
  20561. var override = plugin.overrides[key];
  20562. if ((typeof override === 'undefined' ? 'undefined' : _typeof(override)) === "object") {
  20563. if (typeof _this2.plugged[key] === 'undefined') {
  20564. _this2.throwUndefinedDependencyError("Error: Plugin \"" + plugin.__name__ + "\" tried to override " + key + " but it's not found.");
  20565. } else {
  20566. _this2._extendObject(_this2.plugged[key], override);
  20567. }
  20568. } else {
  20569. _this2._overrideAttribute(key, plugin);
  20570. }
  20571. });
  20572. },
  20573. // `initializePlugin` applies the overrides (if any) defined on all
  20574. // the registered plugins and then calls the initialize method of the plugin
  20575. initializePlugin: function initializePlugin(plugin) {
  20576. if (!_.includes(_.keys(this.allowed_plugins), plugin.__name__)) {
  20577. /* Don't initialize disallowed plugins. */
  20578. return;
  20579. }
  20580. if (_.includes(this.initialized_plugins, plugin.__name__)) {
  20581. /* Don't initialize plugins twice, otherwise we get
  20582. * infinite recursion in overridden methods.
  20583. */
  20584. return;
  20585. }
  20586. if (_.isBoolean(plugin.enabled) && plugin.enabled || _.isFunction(plugin.enabled) && plugin.enabled(this.plugged) || _.isNil(plugin.enabled)) {
  20587. _.extend(plugin, this.properties);
  20588. if (plugin.dependencies) {
  20589. this.loadPluginDependencies(plugin);
  20590. }
  20591. this.applyOverrides(plugin);
  20592. if (typeof plugin.initialize === "function") {
  20593. plugin.initialize.bind(plugin)(this);
  20594. }
  20595. this.initialized_plugins.push(plugin.__name__);
  20596. }
  20597. },
  20598. // `registerPlugin` registers (or inserts, if you'd like) a plugin,
  20599. // by adding it to the `plugins` map on the PluginSocket instance.
  20600. registerPlugin: function registerPlugin(name, plugin) {
  20601. if (name in this.plugins) {
  20602. throw new Error('Error: Plugin name ' + name + ' is already taken');
  20603. }
  20604. plugin.__name__ = name;
  20605. this.plugins[name] = plugin;
  20606. },
  20607. // `initializePlugins` should get called once all plugins have been
  20608. // registered. It will then iterate through all the plugins, calling
  20609. // `initializePlugin` for each.
  20610. // The passed in properties variable is an object with attributes and methods
  20611. // which will be attached to the plugins.
  20612. initializePlugins: function initializePlugins() {
  20613. var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20614. var whitelist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  20615. var blacklist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  20616. if (!_.size(this.plugins)) {
  20617. return;
  20618. }
  20619. this.properties = properties;
  20620. this.allowed_plugins = _.pickBy(this.plugins, function (plugin, key) {
  20621. return (!whitelist.length || whitelist.length && _.includes(whitelist, key)) && !_.includes(blacklist, key);
  20622. });
  20623. _.each(_.values(this.allowed_plugins), this.initializePlugin.bind(this));
  20624. }
  20625. });
  20626. function enable(object, name, attrname) {
  20627. // Call the `enable` method to make an object pluggable
  20628. //
  20629. // It takes three parameters:
  20630. // - `object`: The object that gets made pluggable.
  20631. // - `name`: The string name by which the now pluggable object
  20632. // may be referenced on the __super__ obj (in overrides).
  20633. // The default value is "plugged".
  20634. // - `attrname`: The string name of the attribute on the now
  20635. // pluggable object, which refers to the PluginSocket instance
  20636. // that gets created.
  20637. if (typeof attrname === "undefined") {
  20638. attrname = "pluginSocket";
  20639. }
  20640. if (typeof name === 'undefined') {
  20641. name = 'plugged';
  20642. }
  20643. var ref = {};
  20644. ref[attrname] = new PluginSocket(object, name);
  20645. return _.extend(object, ref);
  20646. }
  20647. exports.enable = enable;
  20648. exports.default = {
  20649. enable: enable
  20650. };
  20651. });
  20652. //# sourceMappingURL=pluggable.js.map
  20653. /***/ }),
  20654. /***/ "./node_modules/sizzle/dist/sizzle.js":
  20655. /*!********************************************!*\
  20656. !*** ./node_modules/sizzle/dist/sizzle.js ***!
  20657. \********************************************/
  20658. /*! no static exports found */
  20659. /***/ (function(module, exports, __webpack_require__) {
  20660. var __WEBPACK_AMD_DEFINE_RESULT__;/*!
  20661. * Sizzle CSS Selector Engine v2.3.3
  20662. * https://sizzlejs.com/
  20663. *
  20664. * Copyright jQuery Foundation and other contributors
  20665. * Released under the MIT license
  20666. * http://jquery.org/license
  20667. *
  20668. * Date: 2016-08-08
  20669. */
  20670. (function( window ) {
  20671. var i,
  20672. support,
  20673. Expr,
  20674. getText,
  20675. isXML,
  20676. tokenize,
  20677. compile,
  20678. select,
  20679. outermostContext,
  20680. sortInput,
  20681. hasDuplicate,
  20682. // Local document vars
  20683. setDocument,
  20684. document,
  20685. docElem,
  20686. documentIsHTML,
  20687. rbuggyQSA,
  20688. rbuggyMatches,
  20689. matches,
  20690. contains,
  20691. // Instance-specific data
  20692. expando = "sizzle" + 1 * new Date(),
  20693. preferredDoc = window.document,
  20694. dirruns = 0,
  20695. done = 0,
  20696. classCache = createCache(),
  20697. tokenCache = createCache(),
  20698. compilerCache = createCache(),
  20699. sortOrder = function( a, b ) {
  20700. if ( a === b ) {
  20701. hasDuplicate = true;
  20702. }
  20703. return 0;
  20704. },
  20705. // Instance methods
  20706. hasOwn = ({}).hasOwnProperty,
  20707. arr = [],
  20708. pop = arr.pop,
  20709. push_native = arr.push,
  20710. push = arr.push,
  20711. slice = arr.slice,
  20712. // Use a stripped-down indexOf as it's faster than native
  20713. // https://jsperf.com/thor-indexof-vs-for/5
  20714. indexOf = function( list, elem ) {
  20715. var i = 0,
  20716. len = list.length;
  20717. for ( ; i < len; i++ ) {
  20718. if ( list[i] === elem ) {
  20719. return i;
  20720. }
  20721. }
  20722. return -1;
  20723. },
  20724. booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  20725. // Regular expressions
  20726. // http://www.w3.org/TR/css3-selectors/#whitespace
  20727. whitespace = "[\\x20\\t\\r\\n\\f]",
  20728. // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
  20729. identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
  20730. // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
  20731. attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
  20732. // Operator (capture 2)
  20733. "*([*^$|!~]?=)" + whitespace +
  20734. // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
  20735. "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
  20736. "*\\]",
  20737. pseudos = ":(" + identifier + ")(?:\\((" +
  20738. // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
  20739. // 1. quoted (capture 3; capture 4 or capture 5)
  20740. "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
  20741. // 2. simple (capture 6)
  20742. "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
  20743. // 3. anything else (capture 2)
  20744. ".*" +
  20745. ")\\)|)",
  20746. // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
  20747. rwhitespace = new RegExp( whitespace + "+", "g" ),
  20748. rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
  20749. rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
  20750. rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
  20751. rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
  20752. rpseudo = new RegExp( pseudos ),
  20753. ridentifier = new RegExp( "^" + identifier + "$" ),
  20754. matchExpr = {
  20755. "ID": new RegExp( "^#(" + identifier + ")" ),
  20756. "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
  20757. "TAG": new RegExp( "^(" + identifier + "|[*])" ),
  20758. "ATTR": new RegExp( "^" + attributes ),
  20759. "PSEUDO": new RegExp( "^" + pseudos ),
  20760. "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
  20761. "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
  20762. "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
  20763. "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
  20764. // For use in libraries implementing .is()
  20765. // We use this for POS matching in `select`
  20766. "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
  20767. whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
  20768. },
  20769. rinputs = /^(?:input|select|textarea|button)$/i,
  20770. rheader = /^h\d$/i,
  20771. rnative = /^[^{]+\{\s*\[native \w/,
  20772. // Easily-parseable/retrievable ID or TAG or CLASS selectors
  20773. rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  20774. rsibling = /[+~]/,
  20775. // CSS escapes
  20776. // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
  20777. runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
  20778. funescape = function( _, escaped, escapedWhitespace ) {
  20779. var high = "0x" + escaped - 0x10000;
  20780. // NaN means non-codepoint
  20781. // Support: Firefox<24
  20782. // Workaround erroneous numeric interpretation of +"0x"
  20783. return high !== high || escapedWhitespace ?
  20784. escaped :
  20785. high < 0 ?
  20786. // BMP codepoint
  20787. String.fromCharCode( high + 0x10000 ) :
  20788. // Supplemental Plane codepoint (surrogate pair)
  20789. String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
  20790. },
  20791. // CSS string/identifier serialization
  20792. // https://drafts.csswg.org/cssom/#common-serializing-idioms
  20793. rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
  20794. fcssescape = function( ch, asCodePoint ) {
  20795. if ( asCodePoint ) {
  20796. // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
  20797. if ( ch === "\0" ) {
  20798. return "\uFFFD";
  20799. }
  20800. // Control characters and (dependent upon position) numbers get escaped as code points
  20801. return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
  20802. }
  20803. // Other potentially-special ASCII characters get backslash-escaped
  20804. return "\\" + ch;
  20805. },
  20806. // Used for iframes
  20807. // See setDocument()
  20808. // Removing the function wrapper causes a "Permission Denied"
  20809. // error in IE
  20810. unloadHandler = function() {
  20811. setDocument();
  20812. },
  20813. disabledAncestor = addCombinator(
  20814. function( elem ) {
  20815. return elem.disabled === true && ("form" in elem || "label" in elem);
  20816. },
  20817. { dir: "parentNode", next: "legend" }
  20818. );
  20819. // Optimize for push.apply( _, NodeList )
  20820. try {
  20821. push.apply(
  20822. (arr = slice.call( preferredDoc.childNodes )),
  20823. preferredDoc.childNodes
  20824. );
  20825. // Support: Android<4.0
  20826. // Detect silently failing push.apply
  20827. arr[ preferredDoc.childNodes.length ].nodeType;
  20828. } catch ( e ) {
  20829. push = { apply: arr.length ?
  20830. // Leverage slice if possible
  20831. function( target, els ) {
  20832. push_native.apply( target, slice.call(els) );
  20833. } :
  20834. // Support: IE<9
  20835. // Otherwise append directly
  20836. function( target, els ) {
  20837. var j = target.length,
  20838. i = 0;
  20839. // Can't trust NodeList.length
  20840. while ( (target[j++] = els[i++]) ) {}
  20841. target.length = j - 1;
  20842. }
  20843. };
  20844. }
  20845. function Sizzle( selector, context, results, seed ) {
  20846. var m, i, elem, nid, match, groups, newSelector,
  20847. newContext = context && context.ownerDocument,
  20848. // nodeType defaults to 9, since context defaults to document
  20849. nodeType = context ? context.nodeType : 9;
  20850. results = results || [];
  20851. // Return early from calls with invalid selector or context
  20852. if ( typeof selector !== "string" || !selector ||
  20853. nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
  20854. return results;
  20855. }
  20856. // Try to shortcut find operations (as opposed to filters) in HTML documents
  20857. if ( !seed ) {
  20858. if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
  20859. setDocument( context );
  20860. }
  20861. context = context || document;
  20862. if ( documentIsHTML ) {
  20863. // If the selector is sufficiently simple, try using a "get*By*" DOM method
  20864. // (excepting DocumentFragment context, where the methods don't exist)
  20865. if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
  20866. // ID selector
  20867. if ( (m = match[1]) ) {
  20868. // Document context
  20869. if ( nodeType === 9 ) {
  20870. if ( (elem = context.getElementById( m )) ) {
  20871. // Support: IE, Opera, Webkit
  20872. // TODO: identify versions
  20873. // getElementById can match elements by name instead of ID
  20874. if ( elem.id === m ) {
  20875. results.push( elem );
  20876. return results;
  20877. }
  20878. } else {
  20879. return results;
  20880. }
  20881. // Element context
  20882. } else {
  20883. // Support: IE, Opera, Webkit
  20884. // TODO: identify versions
  20885. // getElementById can match elements by name instead of ID
  20886. if ( newContext && (elem = newContext.getElementById( m )) &&
  20887. contains( context, elem ) &&
  20888. elem.id === m ) {
  20889. results.push( elem );
  20890. return results;
  20891. }
  20892. }
  20893. // Type selector
  20894. } else if ( match[2] ) {
  20895. push.apply( results, context.getElementsByTagName( selector ) );
  20896. return results;
  20897. // Class selector
  20898. } else if ( (m = match[3]) && support.getElementsByClassName &&
  20899. context.getElementsByClassName ) {
  20900. push.apply( results, context.getElementsByClassName( m ) );
  20901. return results;
  20902. }
  20903. }
  20904. // Take advantage of querySelectorAll
  20905. if ( support.qsa &&
  20906. !compilerCache[ selector + " " ] &&
  20907. (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
  20908. if ( nodeType !== 1 ) {
  20909. newContext = context;
  20910. newSelector = selector;
  20911. // qSA looks outside Element context, which is not what we want
  20912. // Thanks to Andrew Dupont for this workaround technique
  20913. // Support: IE <=8
  20914. // Exclude object elements
  20915. } else if ( context.nodeName.toLowerCase() !== "object" ) {
  20916. // Capture the context ID, setting it first if necessary
  20917. if ( (nid = context.getAttribute( "id" )) ) {
  20918. nid = nid.replace( rcssescape, fcssescape );
  20919. } else {
  20920. context.setAttribute( "id", (nid = expando) );
  20921. }
  20922. // Prefix every selector in the list
  20923. groups = tokenize( selector );
  20924. i = groups.length;
  20925. while ( i-- ) {
  20926. groups[i] = "#" + nid + " " + toSelector( groups[i] );
  20927. }
  20928. newSelector = groups.join( "," );
  20929. // Expand context for sibling selectors
  20930. newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
  20931. context;
  20932. }
  20933. if ( newSelector ) {
  20934. try {
  20935. push.apply( results,
  20936. newContext.querySelectorAll( newSelector )
  20937. );
  20938. return results;
  20939. } catch ( qsaError ) {
  20940. } finally {
  20941. if ( nid === expando ) {
  20942. context.removeAttribute( "id" );
  20943. }
  20944. }
  20945. }
  20946. }
  20947. }
  20948. }
  20949. // All others
  20950. return select( selector.replace( rtrim, "$1" ), context, results, seed );
  20951. }
  20952. /**
  20953. * Create key-value caches of limited size
  20954. * @returns {function(string, object)} Returns the Object data after storing it on itself with
  20955. * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
  20956. * deleting the oldest entry
  20957. */
  20958. function createCache() {
  20959. var keys = [];
  20960. function cache( key, value ) {
  20961. // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
  20962. if ( keys.push( key + " " ) > Expr.cacheLength ) {
  20963. // Only keep the most recent entries
  20964. delete cache[ keys.shift() ];
  20965. }
  20966. return (cache[ key + " " ] = value);
  20967. }
  20968. return cache;
  20969. }
  20970. /**
  20971. * Mark a function for special use by Sizzle
  20972. * @param {Function} fn The function to mark
  20973. */
  20974. function markFunction( fn ) {
  20975. fn[ expando ] = true;
  20976. return fn;
  20977. }
  20978. /**
  20979. * Support testing using an element
  20980. * @param {Function} fn Passed the created element and returns a boolean result
  20981. */
  20982. function assert( fn ) {
  20983. var el = document.createElement("fieldset");
  20984. try {
  20985. return !!fn( el );
  20986. } catch (e) {
  20987. return false;
  20988. } finally {
  20989. // Remove from its parent by default
  20990. if ( el.parentNode ) {
  20991. el.parentNode.removeChild( el );
  20992. }
  20993. // release memory in IE
  20994. el = null;
  20995. }
  20996. }
  20997. /**
  20998. * Adds the same handler for all of the specified attrs
  20999. * @param {String} attrs Pipe-separated list of attributes
  21000. * @param {Function} handler The method that will be applied
  21001. */
  21002. function addHandle( attrs, handler ) {
  21003. var arr = attrs.split("|"),
  21004. i = arr.length;
  21005. while ( i-- ) {
  21006. Expr.attrHandle[ arr[i] ] = handler;
  21007. }
  21008. }
  21009. /**
  21010. * Checks document order of two siblings
  21011. * @param {Element} a
  21012. * @param {Element} b
  21013. * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
  21014. */
  21015. function siblingCheck( a, b ) {
  21016. var cur = b && a,
  21017. diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
  21018. a.sourceIndex - b.sourceIndex;
  21019. // Use IE sourceIndex if available on both nodes
  21020. if ( diff ) {
  21021. return diff;
  21022. }
  21023. // Check if b follows a
  21024. if ( cur ) {
  21025. while ( (cur = cur.nextSibling) ) {
  21026. if ( cur === b ) {
  21027. return -1;
  21028. }
  21029. }
  21030. }
  21031. return a ? 1 : -1;
  21032. }
  21033. /**
  21034. * Returns a function to use in pseudos for input types
  21035. * @param {String} type
  21036. */
  21037. function createInputPseudo( type ) {
  21038. return function( elem ) {
  21039. var name = elem.nodeName.toLowerCase();
  21040. return name === "input" && elem.type === type;
  21041. };
  21042. }
  21043. /**
  21044. * Returns a function to use in pseudos for buttons
  21045. * @param {String} type
  21046. */
  21047. function createButtonPseudo( type ) {
  21048. return function( elem ) {
  21049. var name = elem.nodeName.toLowerCase();
  21050. return (name === "input" || name === "button") && elem.type === type;
  21051. };
  21052. }
  21053. /**
  21054. * Returns a function to use in pseudos for :enabled/:disabled
  21055. * @param {Boolean} disabled true for :disabled; false for :enabled
  21056. */
  21057. function createDisabledPseudo( disabled ) {
  21058. // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
  21059. return function( elem ) {
  21060. // Only certain elements can match :enabled or :disabled
  21061. // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
  21062. // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
  21063. if ( "form" in elem ) {
  21064. // Check for inherited disabledness on relevant non-disabled elements:
  21065. // * listed form-associated elements in a disabled fieldset
  21066. // https://html.spec.whatwg.org/multipage/forms.html#category-listed
  21067. // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
  21068. // * option elements in a disabled optgroup
  21069. // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
  21070. // All such elements have a "form" property.
  21071. if ( elem.parentNode && elem.disabled === false ) {
  21072. // Option elements defer to a parent optgroup if present
  21073. if ( "label" in elem ) {
  21074. if ( "label" in elem.parentNode ) {
  21075. return elem.parentNode.disabled === disabled;
  21076. } else {
  21077. return elem.disabled === disabled;
  21078. }
  21079. }
  21080. // Support: IE 6 - 11
  21081. // Use the isDisabled shortcut property to check for disabled fieldset ancestors
  21082. return elem.isDisabled === disabled ||
  21083. // Where there is no isDisabled, check manually
  21084. /* jshint -W018 */
  21085. elem.isDisabled !== !disabled &&
  21086. disabledAncestor( elem ) === disabled;
  21087. }
  21088. return elem.disabled === disabled;
  21089. // Try to winnow out elements that can't be disabled before trusting the disabled property.
  21090. // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
  21091. // even exist on them, let alone have a boolean value.
  21092. } else if ( "label" in elem ) {
  21093. return elem.disabled === disabled;
  21094. }
  21095. // Remaining elements are neither :enabled nor :disabled
  21096. return false;
  21097. };
  21098. }
  21099. /**
  21100. * Returns a function to use in pseudos for positionals
  21101. * @param {Function} fn
  21102. */
  21103. function createPositionalPseudo( fn ) {
  21104. return markFunction(function( argument ) {
  21105. argument = +argument;
  21106. return markFunction(function( seed, matches ) {
  21107. var j,
  21108. matchIndexes = fn( [], seed.length, argument ),
  21109. i = matchIndexes.length;
  21110. // Match elements found at the specified indexes
  21111. while ( i-- ) {
  21112. if ( seed[ (j = matchIndexes[i]) ] ) {
  21113. seed[j] = !(matches[j] = seed[j]);
  21114. }
  21115. }
  21116. });
  21117. });
  21118. }
  21119. /**
  21120. * Checks a node for validity as a Sizzle context
  21121. * @param {Element|Object=} context
  21122. * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
  21123. */
  21124. function testContext( context ) {
  21125. return context && typeof context.getElementsByTagName !== "undefined" && context;
  21126. }
  21127. // Expose support vars for convenience
  21128. support = Sizzle.support = {};
  21129. /**
  21130. * Detects XML nodes
  21131. * @param {Element|Object} elem An element or a document
  21132. * @returns {Boolean} True iff elem is a non-HTML XML node
  21133. */
  21134. isXML = Sizzle.isXML = function( elem ) {
  21135. // documentElement is verified for cases where it doesn't yet exist
  21136. // (such as loading iframes in IE - #4833)
  21137. var documentElement = elem && (elem.ownerDocument || elem).documentElement;
  21138. return documentElement ? documentElement.nodeName !== "HTML" : false;
  21139. };
  21140. /**
  21141. * Sets document-related variables once based on the current document
  21142. * @param {Element|Object} [doc] An element or document object to use to set the document
  21143. * @returns {Object} Returns the current document
  21144. */
  21145. setDocument = Sizzle.setDocument = function( node ) {
  21146. var hasCompare, subWindow,
  21147. doc = node ? node.ownerDocument || node : preferredDoc;
  21148. // Return early if doc is invalid or already selected
  21149. if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
  21150. return document;
  21151. }
  21152. // Update global variables
  21153. document = doc;
  21154. docElem = document.documentElement;
  21155. documentIsHTML = !isXML( document );
  21156. // Support: IE 9-11, Edge
  21157. // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
  21158. if ( preferredDoc !== document &&
  21159. (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
  21160. // Support: IE 11, Edge
  21161. if ( subWindow.addEventListener ) {
  21162. subWindow.addEventListener( "unload", unloadHandler, false );
  21163. // Support: IE 9 - 10 only
  21164. } else if ( subWindow.attachEvent ) {
  21165. subWindow.attachEvent( "onunload", unloadHandler );
  21166. }
  21167. }
  21168. /* Attributes
  21169. ---------------------------------------------------------------------- */
  21170. // Support: IE<8
  21171. // Verify that getAttribute really returns attributes and not properties
  21172. // (excepting IE8 booleans)
  21173. support.attributes = assert(function( el ) {
  21174. el.className = "i";
  21175. return !el.getAttribute("className");
  21176. });
  21177. /* getElement(s)By*
  21178. ---------------------------------------------------------------------- */
  21179. // Check if getElementsByTagName("*") returns only elements
  21180. support.getElementsByTagName = assert(function( el ) {
  21181. el.appendChild( document.createComment("") );
  21182. return !el.getElementsByTagName("*").length;
  21183. });
  21184. // Support: IE<9
  21185. support.getElementsByClassName = rnative.test( document.getElementsByClassName );
  21186. // Support: IE<10
  21187. // Check if getElementById returns elements by name
  21188. // The broken getElementById methods don't pick up programmatically-set names,
  21189. // so use a roundabout getElementsByName test
  21190. support.getById = assert(function( el ) {
  21191. docElem.appendChild( el ).id = expando;
  21192. return !document.getElementsByName || !document.getElementsByName( expando ).length;
  21193. });
  21194. // ID filter and find
  21195. if ( support.getById ) {
  21196. Expr.filter["ID"] = function( id ) {
  21197. var attrId = id.replace( runescape, funescape );
  21198. return function( elem ) {
  21199. return elem.getAttribute("id") === attrId;
  21200. };
  21201. };
  21202. Expr.find["ID"] = function( id, context ) {
  21203. if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
  21204. var elem = context.getElementById( id );
  21205. return elem ? [ elem ] : [];
  21206. }
  21207. };
  21208. } else {
  21209. Expr.filter["ID"] = function( id ) {
  21210. var attrId = id.replace( runescape, funescape );
  21211. return function( elem ) {
  21212. var node = typeof elem.getAttributeNode !== "undefined" &&
  21213. elem.getAttributeNode("id");
  21214. return node && node.value === attrId;
  21215. };
  21216. };
  21217. // Support: IE 6 - 7 only
  21218. // getElementById is not reliable as a find shortcut
  21219. Expr.find["ID"] = function( id, context ) {
  21220. if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
  21221. var node, i, elems,
  21222. elem = context.getElementById( id );
  21223. if ( elem ) {
  21224. // Verify the id attribute
  21225. node = elem.getAttributeNode("id");
  21226. if ( node && node.value === id ) {
  21227. return [ elem ];
  21228. }
  21229. // Fall back on getElementsByName
  21230. elems = context.getElementsByName( id );
  21231. i = 0;
  21232. while ( (elem = elems[i++]) ) {
  21233. node = elem.getAttributeNode("id");
  21234. if ( node && node.value === id ) {
  21235. return [ elem ];
  21236. }
  21237. }
  21238. }
  21239. return [];
  21240. }
  21241. };
  21242. }
  21243. // Tag
  21244. Expr.find["TAG"] = support.getElementsByTagName ?
  21245. function( tag, context ) {
  21246. if ( typeof context.getElementsByTagName !== "undefined" ) {
  21247. return context.getElementsByTagName( tag );
  21248. // DocumentFragment nodes don't have gEBTN
  21249. } else if ( support.qsa ) {
  21250. return context.querySelectorAll( tag );
  21251. }
  21252. } :
  21253. function( tag, context ) {
  21254. var elem,
  21255. tmp = [],
  21256. i = 0,
  21257. // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
  21258. results = context.getElementsByTagName( tag );
  21259. // Filter out possible comments
  21260. if ( tag === "*" ) {
  21261. while ( (elem = results[i++]) ) {
  21262. if ( elem.nodeType === 1 ) {
  21263. tmp.push( elem );
  21264. }
  21265. }
  21266. return tmp;
  21267. }
  21268. return results;
  21269. };
  21270. // Class
  21271. Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
  21272. if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
  21273. return context.getElementsByClassName( className );
  21274. }
  21275. };
  21276. /* QSA/matchesSelector
  21277. ---------------------------------------------------------------------- */
  21278. // QSA and matchesSelector support
  21279. // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
  21280. rbuggyMatches = [];
  21281. // qSa(:focus) reports false when true (Chrome 21)
  21282. // We allow this because of a bug in IE8/9 that throws an error
  21283. // whenever `document.activeElement` is accessed on an iframe
  21284. // So, we allow :focus to pass through QSA all the time to avoid the IE error
  21285. // See https://bugs.jquery.com/ticket/13378
  21286. rbuggyQSA = [];
  21287. if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
  21288. // Build QSA regex
  21289. // Regex strategy adopted from Diego Perini
  21290. assert(function( el ) {
  21291. // Select is set to empty string on purpose
  21292. // This is to test IE's treatment of not explicitly
  21293. // setting a boolean content attribute,
  21294. // since its presence should be enough
  21295. // https://bugs.jquery.com/ticket/12359
  21296. docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
  21297. "<select id='" + expando + "-\r\\' msallowcapture=''>" +
  21298. "<option selected=''></option></select>";
  21299. // Support: IE8, Opera 11-12.16
  21300. // Nothing should be selected when empty strings follow ^= or $= or *=
  21301. // The test attribute must be unknown in Opera but "safe" for WinRT
  21302. // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
  21303. if ( el.querySelectorAll("[msallowcapture^='']").length ) {
  21304. rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
  21305. }
  21306. // Support: IE8
  21307. // Boolean attributes and "value" are not treated correctly
  21308. if ( !el.querySelectorAll("[selected]").length ) {
  21309. rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
  21310. }
  21311. // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
  21312. if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
  21313. rbuggyQSA.push("~=");
  21314. }
  21315. // Webkit/Opera - :checked should return selected option elements
  21316. // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
  21317. // IE8 throws error here and will not see later tests
  21318. if ( !el.querySelectorAll(":checked").length ) {
  21319. rbuggyQSA.push(":checked");
  21320. }
  21321. // Support: Safari 8+, iOS 8+
  21322. // https://bugs.webkit.org/show_bug.cgi?id=136851
  21323. // In-page `selector#id sibling-combinator selector` fails
  21324. if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
  21325. rbuggyQSA.push(".#.+[+~]");
  21326. }
  21327. });
  21328. assert(function( el ) {
  21329. el.innerHTML = "<a href='' disabled='disabled'></a>" +
  21330. "<select disabled='disabled'><option/></select>";
  21331. // Support: Windows 8 Native Apps
  21332. // The type and name attributes are restricted during .innerHTML assignment
  21333. var input = document.createElement("input");
  21334. input.setAttribute( "type", "hidden" );
  21335. el.appendChild( input ).setAttribute( "name", "D" );
  21336. // Support: IE8
  21337. // Enforce case-sensitivity of name attribute
  21338. if ( el.querySelectorAll("[name=d]").length ) {
  21339. rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
  21340. }
  21341. // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
  21342. // IE8 throws error here and will not see later tests
  21343. if ( el.querySelectorAll(":enabled").length !== 2 ) {
  21344. rbuggyQSA.push( ":enabled", ":disabled" );
  21345. }
  21346. // Support: IE9-11+
  21347. // IE's :disabled selector does not pick up the children of disabled fieldsets
  21348. docElem.appendChild( el ).disabled = true;
  21349. if ( el.querySelectorAll(":disabled").length !== 2 ) {
  21350. rbuggyQSA.push( ":enabled", ":disabled" );
  21351. }
  21352. // Opera 10-11 does not throw on post-comma invalid pseudos
  21353. el.querySelectorAll("*,:x");
  21354. rbuggyQSA.push(",.*:");
  21355. });
  21356. }
  21357. if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
  21358. docElem.webkitMatchesSelector ||
  21359. docElem.mozMatchesSelector ||
  21360. docElem.oMatchesSelector ||
  21361. docElem.msMatchesSelector) )) ) {
  21362. assert(function( el ) {
  21363. // Check to see if it's possible to do matchesSelector
  21364. // on a disconnected node (IE 9)
  21365. support.disconnectedMatch = matches.call( el, "*" );
  21366. // This should fail with an exception
  21367. // Gecko does not error, returns false instead
  21368. matches.call( el, "[s!='']:x" );
  21369. rbuggyMatches.push( "!=", pseudos );
  21370. });
  21371. }
  21372. rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
  21373. rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
  21374. /* Contains
  21375. ---------------------------------------------------------------------- */
  21376. hasCompare = rnative.test( docElem.compareDocumentPosition );
  21377. // Element contains another
  21378. // Purposefully self-exclusive
  21379. // As in, an element does not contain itself
  21380. contains = hasCompare || rnative.test( docElem.contains ) ?
  21381. function( a, b ) {
  21382. var adown = a.nodeType === 9 ? a.documentElement : a,
  21383. bup = b && b.parentNode;
  21384. return a === bup || !!( bup && bup.nodeType === 1 && (
  21385. adown.contains ?
  21386. adown.contains( bup ) :
  21387. a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
  21388. ));
  21389. } :
  21390. function( a, b ) {
  21391. if ( b ) {
  21392. while ( (b = b.parentNode) ) {
  21393. if ( b === a ) {
  21394. return true;
  21395. }
  21396. }
  21397. }
  21398. return false;
  21399. };
  21400. /* Sorting
  21401. ---------------------------------------------------------------------- */
  21402. // Document order sorting
  21403. sortOrder = hasCompare ?
  21404. function( a, b ) {
  21405. // Flag for duplicate removal
  21406. if ( a === b ) {
  21407. hasDuplicate = true;
  21408. return 0;
  21409. }
  21410. // Sort on method existence if only one input has compareDocumentPosition
  21411. var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
  21412. if ( compare ) {
  21413. return compare;
  21414. }
  21415. // Calculate position if both inputs belong to the same document
  21416. compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
  21417. a.compareDocumentPosition( b ) :
  21418. // Otherwise we know they are disconnected
  21419. 1;
  21420. // Disconnected nodes
  21421. if ( compare & 1 ||
  21422. (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
  21423. // Choose the first element that is related to our preferred document
  21424. if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
  21425. return -1;
  21426. }
  21427. if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
  21428. return 1;
  21429. }
  21430. // Maintain original order
  21431. return sortInput ?
  21432. ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
  21433. 0;
  21434. }
  21435. return compare & 4 ? -1 : 1;
  21436. } :
  21437. function( a, b ) {
  21438. // Exit early if the nodes are identical
  21439. if ( a === b ) {
  21440. hasDuplicate = true;
  21441. return 0;
  21442. }
  21443. var cur,
  21444. i = 0,
  21445. aup = a.parentNode,
  21446. bup = b.parentNode,
  21447. ap = [ a ],
  21448. bp = [ b ];
  21449. // Parentless nodes are either documents or disconnected
  21450. if ( !aup || !bup ) {
  21451. return a === document ? -1 :
  21452. b === document ? 1 :
  21453. aup ? -1 :
  21454. bup ? 1 :
  21455. sortInput ?
  21456. ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
  21457. 0;
  21458. // If the nodes are siblings, we can do a quick check
  21459. } else if ( aup === bup ) {
  21460. return siblingCheck( a, b );
  21461. }
  21462. // Otherwise we need full lists of their ancestors for comparison
  21463. cur = a;
  21464. while ( (cur = cur.parentNode) ) {
  21465. ap.unshift( cur );
  21466. }
  21467. cur = b;
  21468. while ( (cur = cur.parentNode) ) {
  21469. bp.unshift( cur );
  21470. }
  21471. // Walk down the tree looking for a discrepancy
  21472. while ( ap[i] === bp[i] ) {
  21473. i++;
  21474. }
  21475. return i ?
  21476. // Do a sibling check if the nodes have a common ancestor
  21477. siblingCheck( ap[i], bp[i] ) :
  21478. // Otherwise nodes in our document sort first
  21479. ap[i] === preferredDoc ? -1 :
  21480. bp[i] === preferredDoc ? 1 :
  21481. 0;
  21482. };
  21483. return document;
  21484. };
  21485. Sizzle.matches = function( expr, elements ) {
  21486. return Sizzle( expr, null, null, elements );
  21487. };
  21488. Sizzle.matchesSelector = function( elem, expr ) {
  21489. // Set document vars if needed
  21490. if ( ( elem.ownerDocument || elem ) !== document ) {
  21491. setDocument( elem );
  21492. }
  21493. // Make sure that attribute selectors are quoted
  21494. expr = expr.replace( rattributeQuotes, "='$1']" );
  21495. if ( support.matchesSelector && documentIsHTML &&
  21496. !compilerCache[ expr + " " ] &&
  21497. ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
  21498. ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
  21499. try {
  21500. var ret = matches.call( elem, expr );
  21501. // IE 9's matchesSelector returns false on disconnected nodes
  21502. if ( ret || support.disconnectedMatch ||
  21503. // As well, disconnected nodes are said to be in a document
  21504. // fragment in IE 9
  21505. elem.document && elem.document.nodeType !== 11 ) {
  21506. return ret;
  21507. }
  21508. } catch (e) {}
  21509. }
  21510. return Sizzle( expr, document, null, [ elem ] ).length > 0;
  21511. };
  21512. Sizzle.contains = function( context, elem ) {
  21513. // Set document vars if needed
  21514. if ( ( context.ownerDocument || context ) !== document ) {
  21515. setDocument( context );
  21516. }
  21517. return contains( context, elem );
  21518. };
  21519. Sizzle.attr = function( elem, name ) {
  21520. // Set document vars if needed
  21521. if ( ( elem.ownerDocument || elem ) !== document ) {
  21522. setDocument( elem );
  21523. }
  21524. var fn = Expr.attrHandle[ name.toLowerCase() ],
  21525. // Don't get fooled by Object.prototype properties (jQuery #13807)
  21526. val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
  21527. fn( elem, name, !documentIsHTML ) :
  21528. undefined;
  21529. return val !== undefined ?
  21530. val :
  21531. support.attributes || !documentIsHTML ?
  21532. elem.getAttribute( name ) :
  21533. (val = elem.getAttributeNode(name)) && val.specified ?
  21534. val.value :
  21535. null;
  21536. };
  21537. Sizzle.escape = function( sel ) {
  21538. return (sel + "").replace( rcssescape, fcssescape );
  21539. };
  21540. Sizzle.error = function( msg ) {
  21541. throw new Error( "Syntax error, unrecognized expression: " + msg );
  21542. };
  21543. /**
  21544. * Document sorting and removing duplicates
  21545. * @param {ArrayLike} results
  21546. */
  21547. Sizzle.uniqueSort = function( results ) {
  21548. var elem,
  21549. duplicates = [],
  21550. j = 0,
  21551. i = 0;
  21552. // Unless we *know* we can detect duplicates, assume their presence
  21553. hasDuplicate = !support.detectDuplicates;
  21554. sortInput = !support.sortStable && results.slice( 0 );
  21555. results.sort( sortOrder );
  21556. if ( hasDuplicate ) {
  21557. while ( (elem = results[i++]) ) {
  21558. if ( elem === results[ i ] ) {
  21559. j = duplicates.push( i );
  21560. }
  21561. }
  21562. while ( j-- ) {
  21563. results.splice( duplicates[ j ], 1 );
  21564. }
  21565. }
  21566. // Clear input after sorting to release objects
  21567. // See https://github.com/jquery/sizzle/pull/225
  21568. sortInput = null;
  21569. return results;
  21570. };
  21571. /**
  21572. * Utility function for retrieving the text value of an array of DOM nodes
  21573. * @param {Array|Element} elem
  21574. */
  21575. getText = Sizzle.getText = function( elem ) {
  21576. var node,
  21577. ret = "",
  21578. i = 0,
  21579. nodeType = elem.nodeType;
  21580. if ( !nodeType ) {
  21581. // If no nodeType, this is expected to be an array
  21582. while ( (node = elem[i++]) ) {
  21583. // Do not traverse comment nodes
  21584. ret += getText( node );
  21585. }
  21586. } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
  21587. // Use textContent for elements
  21588. // innerText usage removed for consistency of new lines (jQuery #11153)
  21589. if ( typeof elem.textContent === "string" ) {
  21590. return elem.textContent;
  21591. } else {
  21592. // Traverse its children
  21593. for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
  21594. ret += getText( elem );
  21595. }
  21596. }
  21597. } else if ( nodeType === 3 || nodeType === 4 ) {
  21598. return elem.nodeValue;
  21599. }
  21600. // Do not include comment or processing instruction nodes
  21601. return ret;
  21602. };
  21603. Expr = Sizzle.selectors = {
  21604. // Can be adjusted by the user
  21605. cacheLength: 50,
  21606. createPseudo: markFunction,
  21607. match: matchExpr,
  21608. attrHandle: {},
  21609. find: {},
  21610. relative: {
  21611. ">": { dir: "parentNode", first: true },
  21612. " ": { dir: "parentNode" },
  21613. "+": { dir: "previousSibling", first: true },
  21614. "~": { dir: "previousSibling" }
  21615. },
  21616. preFilter: {
  21617. "ATTR": function( match ) {
  21618. match[1] = match[1].replace( runescape, funescape );
  21619. // Move the given value to match[3] whether quoted or unquoted
  21620. match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
  21621. if ( match[2] === "~=" ) {
  21622. match[3] = " " + match[3] + " ";
  21623. }
  21624. return match.slice( 0, 4 );
  21625. },
  21626. "CHILD": function( match ) {
  21627. /* matches from matchExpr["CHILD"]
  21628. 1 type (only|nth|...)
  21629. 2 what (child|of-type)
  21630. 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
  21631. 4 xn-component of xn+y argument ([+-]?\d*n|)
  21632. 5 sign of xn-component
  21633. 6 x of xn-component
  21634. 7 sign of y-component
  21635. 8 y of y-component
  21636. */
  21637. match[1] = match[1].toLowerCase();
  21638. if ( match[1].slice( 0, 3 ) === "nth" ) {
  21639. // nth-* requires argument
  21640. if ( !match[3] ) {
  21641. Sizzle.error( match[0] );
  21642. }
  21643. // numeric x and y parameters for Expr.filter.CHILD
  21644. // remember that false/true cast respectively to 0/1
  21645. match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
  21646. match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
  21647. // other types prohibit arguments
  21648. } else if ( match[3] ) {
  21649. Sizzle.error( match[0] );
  21650. }
  21651. return match;
  21652. },
  21653. "PSEUDO": function( match ) {
  21654. var excess,
  21655. unquoted = !match[6] && match[2];
  21656. if ( matchExpr["CHILD"].test( match[0] ) ) {
  21657. return null;
  21658. }
  21659. // Accept quoted arguments as-is
  21660. if ( match[3] ) {
  21661. match[2] = match[4] || match[5] || "";
  21662. // Strip excess characters from unquoted arguments
  21663. } else if ( unquoted && rpseudo.test( unquoted ) &&
  21664. // Get excess from tokenize (recursively)
  21665. (excess = tokenize( unquoted, true )) &&
  21666. // advance to the next closing parenthesis
  21667. (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
  21668. // excess is a negative index
  21669. match[0] = match[0].slice( 0, excess );
  21670. match[2] = unquoted.slice( 0, excess );
  21671. }
  21672. // Return only captures needed by the pseudo filter method (type and argument)
  21673. return match.slice( 0, 3 );
  21674. }
  21675. },
  21676. filter: {
  21677. "TAG": function( nodeNameSelector ) {
  21678. var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
  21679. return nodeNameSelector === "*" ?
  21680. function() { return true; } :
  21681. function( elem ) {
  21682. return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
  21683. };
  21684. },
  21685. "CLASS": function( className ) {
  21686. var pattern = classCache[ className + " " ];
  21687. return pattern ||
  21688. (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
  21689. classCache( className, function( elem ) {
  21690. return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
  21691. });
  21692. },
  21693. "ATTR": function( name, operator, check ) {
  21694. return function( elem ) {
  21695. var result = Sizzle.attr( elem, name );
  21696. if ( result == null ) {
  21697. return operator === "!=";
  21698. }
  21699. if ( !operator ) {
  21700. return true;
  21701. }
  21702. result += "";
  21703. return operator === "=" ? result === check :
  21704. operator === "!=" ? result !== check :
  21705. operator === "^=" ? check && result.indexOf( check ) === 0 :
  21706. operator === "*=" ? check && result.indexOf( check ) > -1 :
  21707. operator === "$=" ? check && result.slice( -check.length ) === check :
  21708. operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
  21709. operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
  21710. false;
  21711. };
  21712. },
  21713. "CHILD": function( type, what, argument, first, last ) {
  21714. var simple = type.slice( 0, 3 ) !== "nth",
  21715. forward = type.slice( -4 ) !== "last",
  21716. ofType = what === "of-type";
  21717. return first === 1 && last === 0 ?
  21718. // Shortcut for :nth-*(n)
  21719. function( elem ) {
  21720. return !!elem.parentNode;
  21721. } :
  21722. function( elem, context, xml ) {
  21723. var cache, uniqueCache, outerCache, node, nodeIndex, start,
  21724. dir = simple !== forward ? "nextSibling" : "previousSibling",
  21725. parent = elem.parentNode,
  21726. name = ofType && elem.nodeName.toLowerCase(),
  21727. useCache = !xml && !ofType,
  21728. diff = false;
  21729. if ( parent ) {
  21730. // :(first|last|only)-(child|of-type)
  21731. if ( simple ) {
  21732. while ( dir ) {
  21733. node = elem;
  21734. while ( (node = node[ dir ]) ) {
  21735. if ( ofType ?
  21736. node.nodeName.toLowerCase() === name :
  21737. node.nodeType === 1 ) {
  21738. return false;
  21739. }
  21740. }
  21741. // Reverse direction for :only-* (if we haven't yet done so)
  21742. start = dir = type === "only" && !start && "nextSibling";
  21743. }
  21744. return true;
  21745. }
  21746. start = [ forward ? parent.firstChild : parent.lastChild ];
  21747. // non-xml :nth-child(...) stores cache data on `parent`
  21748. if ( forward && useCache ) {
  21749. // Seek `elem` from a previously-cached index
  21750. // ...in a gzip-friendly way
  21751. node = parent;
  21752. outerCache = node[ expando ] || (node[ expando ] = {});
  21753. // Support: IE <9 only
  21754. // Defend against cloned attroperties (jQuery gh-1709)
  21755. uniqueCache = outerCache[ node.uniqueID ] ||
  21756. (outerCache[ node.uniqueID ] = {});
  21757. cache = uniqueCache[ type ] || [];
  21758. nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
  21759. diff = nodeIndex && cache[ 2 ];
  21760. node = nodeIndex && parent.childNodes[ nodeIndex ];
  21761. while ( (node = ++nodeIndex && node && node[ dir ] ||
  21762. // Fallback to seeking `elem` from the start
  21763. (diff = nodeIndex = 0) || start.pop()) ) {
  21764. // When found, cache indexes on `parent` and break
  21765. if ( node.nodeType === 1 && ++diff && node === elem ) {
  21766. uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
  21767. break;
  21768. }
  21769. }
  21770. } else {
  21771. // Use previously-cached element index if available
  21772. if ( useCache ) {
  21773. // ...in a gzip-friendly way
  21774. node = elem;
  21775. outerCache = node[ expando ] || (node[ expando ] = {});
  21776. // Support: IE <9 only
  21777. // Defend against cloned attroperties (jQuery gh-1709)
  21778. uniqueCache = outerCache[ node.uniqueID ] ||
  21779. (outerCache[ node.uniqueID ] = {});
  21780. cache = uniqueCache[ type ] || [];
  21781. nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
  21782. diff = nodeIndex;
  21783. }
  21784. // xml :nth-child(...)
  21785. // or :nth-last-child(...) or :nth(-last)?-of-type(...)
  21786. if ( diff === false ) {
  21787. // Use the same loop as above to seek `elem` from the start
  21788. while ( (node = ++nodeIndex && node && node[ dir ] ||
  21789. (diff = nodeIndex = 0) || start.pop()) ) {
  21790. if ( ( ofType ?
  21791. node.nodeName.toLowerCase() === name :
  21792. node.nodeType === 1 ) &&
  21793. ++diff ) {
  21794. // Cache the index of each encountered element
  21795. if ( useCache ) {
  21796. outerCache = node[ expando ] || (node[ expando ] = {});
  21797. // Support: IE <9 only
  21798. // Defend against cloned attroperties (jQuery gh-1709)
  21799. uniqueCache = outerCache[ node.uniqueID ] ||
  21800. (outerCache[ node.uniqueID ] = {});
  21801. uniqueCache[ type ] = [ dirruns, diff ];
  21802. }
  21803. if ( node === elem ) {
  21804. break;
  21805. }
  21806. }
  21807. }
  21808. }
  21809. }
  21810. // Incorporate the offset, then check against cycle size
  21811. diff -= last;
  21812. return diff === first || ( diff % first === 0 && diff / first >= 0 );
  21813. }
  21814. };
  21815. },
  21816. "PSEUDO": function( pseudo, argument ) {
  21817. // pseudo-class names are case-insensitive
  21818. // http://www.w3.org/TR/selectors/#pseudo-classes
  21819. // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
  21820. // Remember that setFilters inherits from pseudos
  21821. var args,
  21822. fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
  21823. Sizzle.error( "unsupported pseudo: " + pseudo );
  21824. // The user may use createPseudo to indicate that
  21825. // arguments are needed to create the filter function
  21826. // just as Sizzle does
  21827. if ( fn[ expando ] ) {
  21828. return fn( argument );
  21829. }
  21830. // But maintain support for old signatures
  21831. if ( fn.length > 1 ) {
  21832. args = [ pseudo, pseudo, "", argument ];
  21833. return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
  21834. markFunction(function( seed, matches ) {
  21835. var idx,
  21836. matched = fn( seed, argument ),
  21837. i = matched.length;
  21838. while ( i-- ) {
  21839. idx = indexOf( seed, matched[i] );
  21840. seed[ idx ] = !( matches[ idx ] = matched[i] );
  21841. }
  21842. }) :
  21843. function( elem ) {
  21844. return fn( elem, 0, args );
  21845. };
  21846. }
  21847. return fn;
  21848. }
  21849. },
  21850. pseudos: {
  21851. // Potentially complex pseudos
  21852. "not": markFunction(function( selector ) {
  21853. // Trim the selector passed to compile
  21854. // to avoid treating leading and trailing
  21855. // spaces as combinators
  21856. var input = [],
  21857. results = [],
  21858. matcher = compile( selector.replace( rtrim, "$1" ) );
  21859. return matcher[ expando ] ?
  21860. markFunction(function( seed, matches, context, xml ) {
  21861. var elem,
  21862. unmatched = matcher( seed, null, xml, [] ),
  21863. i = seed.length;
  21864. // Match elements unmatched by `matcher`
  21865. while ( i-- ) {
  21866. if ( (elem = unmatched[i]) ) {
  21867. seed[i] = !(matches[i] = elem);
  21868. }
  21869. }
  21870. }) :
  21871. function( elem, context, xml ) {
  21872. input[0] = elem;
  21873. matcher( input, null, xml, results );
  21874. // Don't keep the element (issue #299)
  21875. input[0] = null;
  21876. return !results.pop();
  21877. };
  21878. }),
  21879. "has": markFunction(function( selector ) {
  21880. return function( elem ) {
  21881. return Sizzle( selector, elem ).length > 0;
  21882. };
  21883. }),
  21884. "contains": markFunction(function( text ) {
  21885. text = text.replace( runescape, funescape );
  21886. return function( elem ) {
  21887. return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
  21888. };
  21889. }),
  21890. // "Whether an element is represented by a :lang() selector
  21891. // is based solely on the element's language value
  21892. // being equal to the identifier C,
  21893. // or beginning with the identifier C immediately followed by "-".
  21894. // The matching of C against the element's language value is performed case-insensitively.
  21895. // The identifier C does not have to be a valid language name."
  21896. // http://www.w3.org/TR/selectors/#lang-pseudo
  21897. "lang": markFunction( function( lang ) {
  21898. // lang value must be a valid identifier
  21899. if ( !ridentifier.test(lang || "") ) {
  21900. Sizzle.error( "unsupported lang: " + lang );
  21901. }
  21902. lang = lang.replace( runescape, funescape ).toLowerCase();
  21903. return function( elem ) {
  21904. var elemLang;
  21905. do {
  21906. if ( (elemLang = documentIsHTML ?
  21907. elem.lang :
  21908. elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
  21909. elemLang = elemLang.toLowerCase();
  21910. return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
  21911. }
  21912. } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
  21913. return false;
  21914. };
  21915. }),
  21916. // Miscellaneous
  21917. "target": function( elem ) {
  21918. var hash = window.location && window.location.hash;
  21919. return hash && hash.slice( 1 ) === elem.id;
  21920. },
  21921. "root": function( elem ) {
  21922. return elem === docElem;
  21923. },
  21924. "focus": function( elem ) {
  21925. return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
  21926. },
  21927. // Boolean properties
  21928. "enabled": createDisabledPseudo( false ),
  21929. "disabled": createDisabledPseudo( true ),
  21930. "checked": function( elem ) {
  21931. // In CSS3, :checked should return both checked and selected elements
  21932. // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
  21933. var nodeName = elem.nodeName.toLowerCase();
  21934. return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
  21935. },
  21936. "selected": function( elem ) {
  21937. // Accessing this property makes selected-by-default
  21938. // options in Safari work properly
  21939. if ( elem.parentNode ) {
  21940. elem.parentNode.selectedIndex;
  21941. }
  21942. return elem.selected === true;
  21943. },
  21944. // Contents
  21945. "empty": function( elem ) {
  21946. // http://www.w3.org/TR/selectors/#empty-pseudo
  21947. // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
  21948. // but not by others (comment: 8; processing instruction: 7; etc.)
  21949. // nodeType < 6 works because attributes (2) do not appear as children
  21950. for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
  21951. if ( elem.nodeType < 6 ) {
  21952. return false;
  21953. }
  21954. }
  21955. return true;
  21956. },
  21957. "parent": function( elem ) {
  21958. return !Expr.pseudos["empty"]( elem );
  21959. },
  21960. // Element/input types
  21961. "header": function( elem ) {
  21962. return rheader.test( elem.nodeName );
  21963. },
  21964. "input": function( elem ) {
  21965. return rinputs.test( elem.nodeName );
  21966. },
  21967. "button": function( elem ) {
  21968. var name = elem.nodeName.toLowerCase();
  21969. return name === "input" && elem.type === "button" || name === "button";
  21970. },
  21971. "text": function( elem ) {
  21972. var attr;
  21973. return elem.nodeName.toLowerCase() === "input" &&
  21974. elem.type === "text" &&
  21975. // Support: IE<8
  21976. // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
  21977. ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
  21978. },
  21979. // Position-in-collection
  21980. "first": createPositionalPseudo(function() {
  21981. return [ 0 ];
  21982. }),
  21983. "last": createPositionalPseudo(function( matchIndexes, length ) {
  21984. return [ length - 1 ];
  21985. }),
  21986. "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
  21987. return [ argument < 0 ? argument + length : argument ];
  21988. }),
  21989. "even": createPositionalPseudo(function( matchIndexes, length ) {
  21990. var i = 0;
  21991. for ( ; i < length; i += 2 ) {
  21992. matchIndexes.push( i );
  21993. }
  21994. return matchIndexes;
  21995. }),
  21996. "odd": createPositionalPseudo(function( matchIndexes, length ) {
  21997. var i = 1;
  21998. for ( ; i < length; i += 2 ) {
  21999. matchIndexes.push( i );
  22000. }
  22001. return matchIndexes;
  22002. }),
  22003. "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
  22004. var i = argument < 0 ? argument + length : argument;
  22005. for ( ; --i >= 0; ) {
  22006. matchIndexes.push( i );
  22007. }
  22008. return matchIndexes;
  22009. }),
  22010. "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
  22011. var i = argument < 0 ? argument + length : argument;
  22012. for ( ; ++i < length; ) {
  22013. matchIndexes.push( i );
  22014. }
  22015. return matchIndexes;
  22016. })
  22017. }
  22018. };
  22019. Expr.pseudos["nth"] = Expr.pseudos["eq"];
  22020. // Add button/input type pseudos
  22021. for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
  22022. Expr.pseudos[ i ] = createInputPseudo( i );
  22023. }
  22024. for ( i in { submit: true, reset: true } ) {
  22025. Expr.pseudos[ i ] = createButtonPseudo( i );
  22026. }
  22027. // Easy API for creating new setFilters
  22028. function setFilters() {}
  22029. setFilters.prototype = Expr.filters = Expr.pseudos;
  22030. Expr.setFilters = new setFilters();
  22031. tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
  22032. var matched, match, tokens, type,
  22033. soFar, groups, preFilters,
  22034. cached = tokenCache[ selector + " " ];
  22035. if ( cached ) {
  22036. return parseOnly ? 0 : cached.slice( 0 );
  22037. }
  22038. soFar = selector;
  22039. groups = [];
  22040. preFilters = Expr.preFilter;
  22041. while ( soFar ) {
  22042. // Comma and first run
  22043. if ( !matched || (match = rcomma.exec( soFar )) ) {
  22044. if ( match ) {
  22045. // Don't consume trailing commas as valid
  22046. soFar = soFar.slice( match[0].length ) || soFar;
  22047. }
  22048. groups.push( (tokens = []) );
  22049. }
  22050. matched = false;
  22051. // Combinators
  22052. if ( (match = rcombinators.exec( soFar )) ) {
  22053. matched = match.shift();
  22054. tokens.push({
  22055. value: matched,
  22056. // Cast descendant combinators to space
  22057. type: match[0].replace( rtrim, " " )
  22058. });
  22059. soFar = soFar.slice( matched.length );
  22060. }
  22061. // Filters
  22062. for ( type in Expr.filter ) {
  22063. if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
  22064. (match = preFilters[ type ]( match ))) ) {
  22065. matched = match.shift();
  22066. tokens.push({
  22067. value: matched,
  22068. type: type,
  22069. matches: match
  22070. });
  22071. soFar = soFar.slice( matched.length );
  22072. }
  22073. }
  22074. if ( !matched ) {
  22075. break;
  22076. }
  22077. }
  22078. // Return the length of the invalid excess
  22079. // if we're just parsing
  22080. // Otherwise, throw an error or return tokens
  22081. return parseOnly ?
  22082. soFar.length :
  22083. soFar ?
  22084. Sizzle.error( selector ) :
  22085. // Cache the tokens
  22086. tokenCache( selector, groups ).slice( 0 );
  22087. };
  22088. function toSelector( tokens ) {
  22089. var i = 0,
  22090. len = tokens.length,
  22091. selector = "";
  22092. for ( ; i < len; i++ ) {
  22093. selector += tokens[i].value;
  22094. }
  22095. return selector;
  22096. }
  22097. function addCombinator( matcher, combinator, base ) {
  22098. var dir = combinator.dir,
  22099. skip = combinator.next,
  22100. key = skip || dir,
  22101. checkNonElements = base && key === "parentNode",
  22102. doneName = done++;
  22103. return combinator.first ?
  22104. // Check against closest ancestor/preceding element
  22105. function( elem, context, xml ) {
  22106. while ( (elem = elem[ dir ]) ) {
  22107. if ( elem.nodeType === 1 || checkNonElements ) {
  22108. return matcher( elem, context, xml );
  22109. }
  22110. }
  22111. return false;
  22112. } :
  22113. // Check against all ancestor/preceding elements
  22114. function( elem, context, xml ) {
  22115. var oldCache, uniqueCache, outerCache,
  22116. newCache = [ dirruns, doneName ];
  22117. // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
  22118. if ( xml ) {
  22119. while ( (elem = elem[ dir ]) ) {
  22120. if ( elem.nodeType === 1 || checkNonElements ) {
  22121. if ( matcher( elem, context, xml ) ) {
  22122. return true;
  22123. }
  22124. }
  22125. }
  22126. } else {
  22127. while ( (elem = elem[ dir ]) ) {
  22128. if ( elem.nodeType === 1 || checkNonElements ) {
  22129. outerCache = elem[ expando ] || (elem[ expando ] = {});
  22130. // Support: IE <9 only
  22131. // Defend against cloned attroperties (jQuery gh-1709)
  22132. uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
  22133. if ( skip && skip === elem.nodeName.toLowerCase() ) {
  22134. elem = elem[ dir ] || elem;
  22135. } else if ( (oldCache = uniqueCache[ key ]) &&
  22136. oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
  22137. // Assign to newCache so results back-propagate to previous elements
  22138. return (newCache[ 2 ] = oldCache[ 2 ]);
  22139. } else {
  22140. // Reuse newcache so results back-propagate to previous elements
  22141. uniqueCache[ key ] = newCache;
  22142. // A match means we're done; a fail means we have to keep checking
  22143. if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
  22144. return true;
  22145. }
  22146. }
  22147. }
  22148. }
  22149. }
  22150. return false;
  22151. };
  22152. }
  22153. function elementMatcher( matchers ) {
  22154. return matchers.length > 1 ?
  22155. function( elem, context, xml ) {
  22156. var i = matchers.length;
  22157. while ( i-- ) {
  22158. if ( !matchers[i]( elem, context, xml ) ) {
  22159. return false;
  22160. }
  22161. }
  22162. return true;
  22163. } :
  22164. matchers[0];
  22165. }
  22166. function multipleContexts( selector, contexts, results ) {
  22167. var i = 0,
  22168. len = contexts.length;
  22169. for ( ; i < len; i++ ) {
  22170. Sizzle( selector, contexts[i], results );
  22171. }
  22172. return results;
  22173. }
  22174. function condense( unmatched, map, filter, context, xml ) {
  22175. var elem,
  22176. newUnmatched = [],
  22177. i = 0,
  22178. len = unmatched.length,
  22179. mapped = map != null;
  22180. for ( ; i < len; i++ ) {
  22181. if ( (elem = unmatched[i]) ) {
  22182. if ( !filter || filter( elem, context, xml ) ) {
  22183. newUnmatched.push( elem );
  22184. if ( mapped ) {
  22185. map.push( i );
  22186. }
  22187. }
  22188. }
  22189. }
  22190. return newUnmatched;
  22191. }
  22192. function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
  22193. if ( postFilter && !postFilter[ expando ] ) {
  22194. postFilter = setMatcher( postFilter );
  22195. }
  22196. if ( postFinder && !postFinder[ expando ] ) {
  22197. postFinder = setMatcher( postFinder, postSelector );
  22198. }
  22199. return markFunction(function( seed, results, context, xml ) {
  22200. var temp, i, elem,
  22201. preMap = [],
  22202. postMap = [],
  22203. preexisting = results.length,
  22204. // Get initial elements from seed or context
  22205. elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
  22206. // Prefilter to get matcher input, preserving a map for seed-results synchronization
  22207. matcherIn = preFilter && ( seed || !selector ) ?
  22208. condense( elems, preMap, preFilter, context, xml ) :
  22209. elems,
  22210. matcherOut = matcher ?
  22211. // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
  22212. postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
  22213. // ...intermediate processing is necessary
  22214. [] :
  22215. // ...otherwise use results directly
  22216. results :
  22217. matcherIn;
  22218. // Find primary matches
  22219. if ( matcher ) {
  22220. matcher( matcherIn, matcherOut, context, xml );
  22221. }
  22222. // Apply postFilter
  22223. if ( postFilter ) {
  22224. temp = condense( matcherOut, postMap );
  22225. postFilter( temp, [], context, xml );
  22226. // Un-match failing elements by moving them back to matcherIn
  22227. i = temp.length;
  22228. while ( i-- ) {
  22229. if ( (elem = temp[i]) ) {
  22230. matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
  22231. }
  22232. }
  22233. }
  22234. if ( seed ) {
  22235. if ( postFinder || preFilter ) {
  22236. if ( postFinder ) {
  22237. // Get the final matcherOut by condensing this intermediate into postFinder contexts
  22238. temp = [];
  22239. i = matcherOut.length;
  22240. while ( i-- ) {
  22241. if ( (elem = matcherOut[i]) ) {
  22242. // Restore matcherIn since elem is not yet a final match
  22243. temp.push( (matcherIn[i] = elem) );
  22244. }
  22245. }
  22246. postFinder( null, (matcherOut = []), temp, xml );
  22247. }
  22248. // Move matched elements from seed to results to keep them synchronized
  22249. i = matcherOut.length;
  22250. while ( i-- ) {
  22251. if ( (elem = matcherOut[i]) &&
  22252. (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
  22253. seed[temp] = !(results[temp] = elem);
  22254. }
  22255. }
  22256. }
  22257. // Add elements to results, through postFinder if defined
  22258. } else {
  22259. matcherOut = condense(
  22260. matcherOut === results ?
  22261. matcherOut.splice( preexisting, matcherOut.length ) :
  22262. matcherOut
  22263. );
  22264. if ( postFinder ) {
  22265. postFinder( null, results, matcherOut, xml );
  22266. } else {
  22267. push.apply( results, matcherOut );
  22268. }
  22269. }
  22270. });
  22271. }
  22272. function matcherFromTokens( tokens ) {
  22273. var checkContext, matcher, j,
  22274. len = tokens.length,
  22275. leadingRelative = Expr.relative[ tokens[0].type ],
  22276. implicitRelative = leadingRelative || Expr.relative[" "],
  22277. i = leadingRelative ? 1 : 0,
  22278. // The foundational matcher ensures that elements are reachable from top-level context(s)
  22279. matchContext = addCombinator( function( elem ) {
  22280. return elem === checkContext;
  22281. }, implicitRelative, true ),
  22282. matchAnyContext = addCombinator( function( elem ) {
  22283. return indexOf( checkContext, elem ) > -1;
  22284. }, implicitRelative, true ),
  22285. matchers = [ function( elem, context, xml ) {
  22286. var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
  22287. (checkContext = context).nodeType ?
  22288. matchContext( elem, context, xml ) :
  22289. matchAnyContext( elem, context, xml ) );
  22290. // Avoid hanging onto element (issue #299)
  22291. checkContext = null;
  22292. return ret;
  22293. } ];
  22294. for ( ; i < len; i++ ) {
  22295. if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
  22296. matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
  22297. } else {
  22298. matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
  22299. // Return special upon seeing a positional matcher
  22300. if ( matcher[ expando ] ) {
  22301. // Find the next relative operator (if any) for proper handling
  22302. j = ++i;
  22303. for ( ; j < len; j++ ) {
  22304. if ( Expr.relative[ tokens[j].type ] ) {
  22305. break;
  22306. }
  22307. }
  22308. return setMatcher(
  22309. i > 1 && elementMatcher( matchers ),
  22310. i > 1 && toSelector(
  22311. // If the preceding token was a descendant combinator, insert an implicit any-element `*`
  22312. tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
  22313. ).replace( rtrim, "$1" ),
  22314. matcher,
  22315. i < j && matcherFromTokens( tokens.slice( i, j ) ),
  22316. j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
  22317. j < len && toSelector( tokens )
  22318. );
  22319. }
  22320. matchers.push( matcher );
  22321. }
  22322. }
  22323. return elementMatcher( matchers );
  22324. }
  22325. function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
  22326. var bySet = setMatchers.length > 0,
  22327. byElement = elementMatchers.length > 0,
  22328. superMatcher = function( seed, context, xml, results, outermost ) {
  22329. var elem, j, matcher,
  22330. matchedCount = 0,
  22331. i = "0",
  22332. unmatched = seed && [],
  22333. setMatched = [],
  22334. contextBackup = outermostContext,
  22335. // We must always have either seed elements or outermost context
  22336. elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
  22337. // Use integer dirruns iff this is the outermost matcher
  22338. dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
  22339. len = elems.length;
  22340. if ( outermost ) {
  22341. outermostContext = context === document || context || outermost;
  22342. }
  22343. // Add elements passing elementMatchers directly to results
  22344. // Support: IE<9, Safari
  22345. // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
  22346. for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
  22347. if ( byElement && elem ) {
  22348. j = 0;
  22349. if ( !context && elem.ownerDocument !== document ) {
  22350. setDocument( elem );
  22351. xml = !documentIsHTML;
  22352. }
  22353. while ( (matcher = elementMatchers[j++]) ) {
  22354. if ( matcher( elem, context || document, xml) ) {
  22355. results.push( elem );
  22356. break;
  22357. }
  22358. }
  22359. if ( outermost ) {
  22360. dirruns = dirrunsUnique;
  22361. }
  22362. }
  22363. // Track unmatched elements for set filters
  22364. if ( bySet ) {
  22365. // They will have gone through all possible matchers
  22366. if ( (elem = !matcher && elem) ) {
  22367. matchedCount--;
  22368. }
  22369. // Lengthen the array for every element, matched or not
  22370. if ( seed ) {
  22371. unmatched.push( elem );
  22372. }
  22373. }
  22374. }
  22375. // `i` is now the count of elements visited above, and adding it to `matchedCount`
  22376. // makes the latter nonnegative.
  22377. matchedCount += i;
  22378. // Apply set filters to unmatched elements
  22379. // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
  22380. // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
  22381. // no element matchers and no seed.
  22382. // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
  22383. // case, which will result in a "00" `matchedCount` that differs from `i` but is also
  22384. // numerically zero.
  22385. if ( bySet && i !== matchedCount ) {
  22386. j = 0;
  22387. while ( (matcher = setMatchers[j++]) ) {
  22388. matcher( unmatched, setMatched, context, xml );
  22389. }
  22390. if ( seed ) {
  22391. // Reintegrate element matches to eliminate the need for sorting
  22392. if ( matchedCount > 0 ) {
  22393. while ( i-- ) {
  22394. if ( !(unmatched[i] || setMatched[i]) ) {
  22395. setMatched[i] = pop.call( results );
  22396. }
  22397. }
  22398. }
  22399. // Discard index placeholder values to get only actual matches
  22400. setMatched = condense( setMatched );
  22401. }
  22402. // Add matches to results
  22403. push.apply( results, setMatched );
  22404. // Seedless set matches succeeding multiple successful matchers stipulate sorting
  22405. if ( outermost && !seed && setMatched.length > 0 &&
  22406. ( matchedCount + setMatchers.length ) > 1 ) {
  22407. Sizzle.uniqueSort( results );
  22408. }
  22409. }
  22410. // Override manipulation of globals by nested matchers
  22411. if ( outermost ) {
  22412. dirruns = dirrunsUnique;
  22413. outermostContext = contextBackup;
  22414. }
  22415. return unmatched;
  22416. };
  22417. return bySet ?
  22418. markFunction( superMatcher ) :
  22419. superMatcher;
  22420. }
  22421. compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
  22422. var i,
  22423. setMatchers = [],
  22424. elementMatchers = [],
  22425. cached = compilerCache[ selector + " " ];
  22426. if ( !cached ) {
  22427. // Generate a function of recursive functions that can be used to check each element
  22428. if ( !match ) {
  22429. match = tokenize( selector );
  22430. }
  22431. i = match.length;
  22432. while ( i-- ) {
  22433. cached = matcherFromTokens( match[i] );
  22434. if ( cached[ expando ] ) {
  22435. setMatchers.push( cached );
  22436. } else {
  22437. elementMatchers.push( cached );
  22438. }
  22439. }
  22440. // Cache the compiled function
  22441. cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
  22442. // Save selector and tokenization
  22443. cached.selector = selector;
  22444. }
  22445. return cached;
  22446. };
  22447. /**
  22448. * A low-level selection function that works with Sizzle's compiled
  22449. * selector functions
  22450. * @param {String|Function} selector A selector or a pre-compiled
  22451. * selector function built with Sizzle.compile
  22452. * @param {Element} context
  22453. * @param {Array} [results]
  22454. * @param {Array} [seed] A set of elements to match against
  22455. */
  22456. select = Sizzle.select = function( selector, context, results, seed ) {
  22457. var i, tokens, token, type, find,
  22458. compiled = typeof selector === "function" && selector,
  22459. match = !seed && tokenize( (selector = compiled.selector || selector) );
  22460. results = results || [];
  22461. // Try to minimize operations if there is only one selector in the list and no seed
  22462. // (the latter of which guarantees us context)
  22463. if ( match.length === 1 ) {
  22464. // Reduce context if the leading compound selector is an ID
  22465. tokens = match[0] = match[0].slice( 0 );
  22466. if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
  22467. context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
  22468. context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
  22469. if ( !context ) {
  22470. return results;
  22471. // Precompiled matchers will still verify ancestry, so step up a level
  22472. } else if ( compiled ) {
  22473. context = context.parentNode;
  22474. }
  22475. selector = selector.slice( tokens.shift().value.length );
  22476. }
  22477. // Fetch a seed set for right-to-left matching
  22478. i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
  22479. while ( i-- ) {
  22480. token = tokens[i];
  22481. // Abort if we hit a combinator
  22482. if ( Expr.relative[ (type = token.type) ] ) {
  22483. break;
  22484. }
  22485. if ( (find = Expr.find[ type ]) ) {
  22486. // Search, expanding context for leading sibling combinators
  22487. if ( (seed = find(
  22488. token.matches[0].replace( runescape, funescape ),
  22489. rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
  22490. )) ) {
  22491. // If seed is empty or no tokens remain, we can return early
  22492. tokens.splice( i, 1 );
  22493. selector = seed.length && toSelector( tokens );
  22494. if ( !selector ) {
  22495. push.apply( results, seed );
  22496. return results;
  22497. }
  22498. break;
  22499. }
  22500. }
  22501. }
  22502. }
  22503. // Compile and execute a filtering function if one is not provided
  22504. // Provide `match` to avoid retokenization if we modified the selector above
  22505. ( compiled || compile( selector, match ) )(
  22506. seed,
  22507. context,
  22508. !documentIsHTML,
  22509. results,
  22510. !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
  22511. );
  22512. return results;
  22513. };
  22514. // One-time assignments
  22515. // Sort stability
  22516. support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
  22517. // Support: Chrome 14-35+
  22518. // Always assume duplicates if they aren't passed to the comparison function
  22519. support.detectDuplicates = !!hasDuplicate;
  22520. // Initialize against the default document
  22521. setDocument();
  22522. // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
  22523. // Detached nodes confoundingly follow *each other*
  22524. support.sortDetached = assert(function( el ) {
  22525. // Should return 1, but returns 4 (following)
  22526. return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
  22527. });
  22528. // Support: IE<8
  22529. // Prevent attribute/property "interpolation"
  22530. // https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
  22531. if ( !assert(function( el ) {
  22532. el.innerHTML = "<a href='#'></a>";
  22533. return el.firstChild.getAttribute("href") === "#" ;
  22534. }) ) {
  22535. addHandle( "type|href|height|width", function( elem, name, isXML ) {
  22536. if ( !isXML ) {
  22537. return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
  22538. }
  22539. });
  22540. }
  22541. // Support: IE<9
  22542. // Use defaultValue in place of getAttribute("value")
  22543. if ( !support.attributes || !assert(function( el ) {
  22544. el.innerHTML = "<input/>";
  22545. el.firstChild.setAttribute( "value", "" );
  22546. return el.firstChild.getAttribute( "value" ) === "";
  22547. }) ) {
  22548. addHandle( "value", function( elem, name, isXML ) {
  22549. if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
  22550. return elem.defaultValue;
  22551. }
  22552. });
  22553. }
  22554. // Support: IE<9
  22555. // Use getAttributeNode to fetch booleans when getAttribute lies
  22556. if ( !assert(function( el ) {
  22557. return el.getAttribute("disabled") == null;
  22558. }) ) {
  22559. addHandle( booleans, function( elem, name, isXML ) {
  22560. var val;
  22561. if ( !isXML ) {
  22562. return elem[ name ] === true ? name.toLowerCase() :
  22563. (val = elem.getAttributeNode( name )) && val.specified ?
  22564. val.value :
  22565. null;
  22566. }
  22567. });
  22568. }
  22569. // EXPOSE
  22570. var _sizzle = window.Sizzle;
  22571. Sizzle.noConflict = function() {
  22572. if ( window.Sizzle === Sizzle ) {
  22573. window.Sizzle = _sizzle;
  22574. }
  22575. return Sizzle;
  22576. };
  22577. if ( true ) {
  22578. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return Sizzle; }).call(exports, __webpack_require__, exports, module),
  22579. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22580. // Sizzle requires that there be a global window in Common-JS like environments
  22581. } else {}
  22582. // EXPOSE
  22583. })( window );
  22584. /***/ }),
  22585. /***/ "./node_modules/snabbdom/dist/snabbdom-attributes.js":
  22586. /*!***********************************************************!*\
  22587. !*** ./node_modules/snabbdom/dist/snabbdom-attributes.js ***!
  22588. \***********************************************************/
  22589. /*! no static exports found */
  22590. /***/ (function(module, exports, __webpack_require__) {
  22591. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22592. "use strict";
  22593. Object.defineProperty(exports, "__esModule", { value: true });
  22594. var booleanAttrs = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "compact", "controls", "declare",
  22595. "default", "defaultchecked", "defaultmuted", "defaultselected", "defer", "disabled", "draggable",
  22596. "enabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "itemscope", "loop", "multiple",
  22597. "muted", "nohref", "noresize", "noshade", "novalidate", "nowrap", "open", "pauseonexit", "readonly",
  22598. "required", "reversed", "scoped", "seamless", "selected", "sortable", "spellcheck", "translate",
  22599. "truespeed", "typemustmatch", "visible"];
  22600. var xlinkNS = 'http://www.w3.org/1999/xlink';
  22601. var xmlNS = 'http://www.w3.org/XML/1998/namespace';
  22602. var colonChar = 58;
  22603. var xChar = 120;
  22604. var booleanAttrsDict = Object.create(null);
  22605. for (var i = 0, len = booleanAttrs.length; i < len; i++) {
  22606. booleanAttrsDict[booleanAttrs[i]] = true;
  22607. }
  22608. function updateAttrs(oldVnode, vnode) {
  22609. var key, elm = vnode.elm, oldAttrs = oldVnode.data.attrs, attrs = vnode.data.attrs;
  22610. if (!oldAttrs && !attrs)
  22611. return;
  22612. if (oldAttrs === attrs)
  22613. return;
  22614. oldAttrs = oldAttrs || {};
  22615. attrs = attrs || {};
  22616. // update modified attributes, add new attributes
  22617. for (key in attrs) {
  22618. var cur = attrs[key];
  22619. var old = oldAttrs[key];
  22620. if (old !== cur) {
  22621. if (booleanAttrsDict[key]) {
  22622. if (cur) {
  22623. elm.setAttribute(key, "");
  22624. }
  22625. else {
  22626. elm.removeAttribute(key);
  22627. }
  22628. }
  22629. else {
  22630. if (key.charCodeAt(0) !== xChar) {
  22631. elm.setAttribute(key, cur);
  22632. }
  22633. else if (key.charCodeAt(3) === colonChar) {
  22634. // Assume xml namespace
  22635. elm.setAttributeNS(xmlNS, key, cur);
  22636. }
  22637. else if (key.charCodeAt(5) === colonChar) {
  22638. // Assume xlink namespace
  22639. elm.setAttributeNS(xlinkNS, key, cur);
  22640. }
  22641. else {
  22642. elm.setAttribute(key, cur);
  22643. }
  22644. }
  22645. }
  22646. }
  22647. // remove removed attributes
  22648. // use `in` operator since the previous `for` iteration uses it (.i.e. add even attributes with undefined value)
  22649. // the other option is to remove all attributes with value == undefined
  22650. for (key in oldAttrs) {
  22651. if (!(key in attrs)) {
  22652. elm.removeAttribute(key);
  22653. }
  22654. }
  22655. }
  22656. exports.attributesModule = { create: updateAttrs, update: updateAttrs };
  22657. exports.default = exports.attributesModule;
  22658. },{}]},{},[1])(1)
  22659. });
  22660. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9hdHRyaWJ1dGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FDQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG52YXIgYm9vbGVhbkF0dHJzID0gW1wiYWxsb3dmdWxsc2NyZWVuXCIsIFwiYXN5bmNcIiwgXCJhdXRvZm9jdXNcIiwgXCJhdXRvcGxheVwiLCBcImNoZWNrZWRcIiwgXCJjb21wYWN0XCIsIFwiY29udHJvbHNcIiwgXCJkZWNsYXJlXCIsXG4gICAgXCJkZWZhdWx0XCIsIFwiZGVmYXVsdGNoZWNrZWRcIiwgXCJkZWZhdWx0bXV0ZWRcIiwgXCJkZWZhdWx0c2VsZWN0ZWRcIiwgXCJkZWZlclwiLCBcImRpc2FibGVkXCIsIFwiZHJhZ2dhYmxlXCIsXG4gICAgXCJlbmFibGVkXCIsIFwiZm9ybW5vdmFsaWRhdGVcIiwgXCJoaWRkZW5cIiwgXCJpbmRldGVybWluYXRlXCIsIFwiaW5lcnRcIiwgXCJpc21hcFwiLCBcIml0ZW1zY29wZVwiLCBcImxvb3BcIiwgXCJtdWx0aXBsZVwiLFxuICAgIFwibXV0ZWRcIiwgXCJub2hyZWZcIiwgXCJub3Jlc2l6ZVwiLCBcIm5vc2hhZGVcIiwgXCJub3ZhbGlkYXRlXCIsIFwibm93cmFwXCIsIFwib3BlblwiLCBcInBhdXNlb25leGl0XCIsIFwicmVhZG9ubHlcIixcbiAgICBcInJlcXVpcmVkXCIsIFwicmV2ZXJzZWRcIiwgXCJzY29wZWRcIiwgXCJzZWFtbGVzc1wiLCBcInNlbGVjdGVkXCIsIFwic29ydGFibGVcIiwgXCJzcGVsbGNoZWNrXCIsIFwidHJhbnNsYXRlXCIsXG4gICAgXCJ0cnVlc3BlZWRcIiwgXCJ0eXBlbXVzdG1hdGNoXCIsIFwidmlzaWJsZVwiXTtcbnZhciB4bGlua05TID0gJ2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnO1xudmFyIHhtbE5TID0gJ2h0dHA6Ly93d3cudzMub3JnL1hNTC8xOTk4L25hbWVzcGFjZSc7XG52YXIgY29sb25DaGFyID0gNTg7XG52YXIgeENoYXIgPSAxMjA7XG52YXIgYm9vbGVhbkF0dHJzRGljdCA9IE9iamVjdC5jcmVhdGUobnVsbCk7XG5mb3IgKHZhciBpID0gMCwgbGVuID0gYm9vbGVhbkF0dHJzLmxlbmd0aDsgaSA8IGxlbjsgaSsrKSB7XG4gICAgYm9vbGVhbkF0dHJzRGljdFtib29sZWFuQXR0cnNbaV1dID0gdHJ1ZTtcbn1cbmZ1bmN0aW9uIHVwZGF0ZUF0dHJzKG9sZFZub2RlLCB2bm9kZSkge1xuICAgIHZhciBrZXksIGVsbSA9IHZub2RlLmVsbSwgb2xkQXR0cnMgPSBvbGRWbm9kZS5kYXRhLmF0dHJzLCBhdHRycyA9IHZub2RlLmRhdGEuYXR0cnM7XG4gICAgaWYgKCFvbGRBdHRycyAmJiAhYXR0cnMpXG4gICAgICAgIHJldHVybjtcbiAgICBpZiAob2xkQXR0cnMgPT09IGF0dHJzKVxuICAgICAgICByZXR1cm47XG4gICAgb2xkQXR0cnMgPSBvbGRBdHRycyB8fCB7fTtcbiAgICBhdHRycyA9IGF0dHJzIHx8IHt9O1xuICAgIC8vIHVwZGF0ZSBtb2RpZmllZCBhdHRyaWJ1dGVzLCBhZGQgbmV3IGF0dHJpYnV0ZXNcbiAgICBmb3IgKGtleSBpbiBhdHRycykge1xuICAgICAgICB2YXIgY3VyID0gYXR0cnNba2V5XTtcbiAgICAgICAgdmFyIG9sZCA9IG9sZEF0dHJzW2tleV07XG4gICAgICAgIGlmIChvbGQgIT09IGN1cikge1xuICAgICAgICAgICAgaWYgKGJvb2xlYW5BdHRyc0RpY3Rba2V5XSkge1xuICAgICAgICAgICAgICAgIGlmIChjdXIpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZShrZXksIFwiXCIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnJlbW92ZUF0dHJpYnV0ZShrZXkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChrZXkuY2hhckNvZGVBdCgwKSAhPT0geENoYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZShrZXksIGN1cik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGtleS5jaGFyQ29kZUF0KDMpID09PSBjb2xvbkNoYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gQXNzdW1lIHhtbCBuYW1lc3BhY2VcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZU5TKHhtbE5TLCBrZXksIGN1cik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGtleS5jaGFyQ29kZUF0KDUpID09PSBjb2xvbkNoYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gQXNzdW1lIHhsaW5rIG5hbWVzcGFjZVxuICAgICAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlTlMoeGxpbmtOUywga2V5LCBjdXIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZShrZXksIGN1cik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIC8vIHJlbW92ZSByZW1vdmVkIGF0dHJpYnV0ZXNcbiAgICAvLyB1c2UgYGluYCBvcGVyYXRvciBzaW5jZSB0aGUgcHJldmlvdXMgYGZvcmAgaXRlcmF0aW9uIHVzZXMgaXQgKC5pLmUuIGFkZCBldmVuIGF0dHJpYnV0ZXMgd2l0aCB1bmRlZmluZWQgdmFsdWUpXG4gICAgLy8gdGhlIG90aGVyIG9wdGlvbiBpcyB0byByZW1vdmUgYWxsIGF0dHJpYnV0ZXMgd2l0aCB2YWx1ZSA9PSB1bmRlZmluZWRcbiAgICBmb3IgKGtleSBpbiBvbGRBdHRycykge1xuICAgICAgICBpZiAoIShrZXkgaW4gYXR0cnMpKSB7XG4gICAgICAgICAgICBlbG0ucmVtb3ZlQXR0cmlidXRlKGtleSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5leHBvcnRzLmF0dHJpYnV0ZXNNb2R1bGUgPSB7IGNyZWF0ZTogdXBkYXRlQXR0cnMsIHVwZGF0ZTogdXBkYXRlQXR0cnMgfTtcbmV4cG9ydHMuZGVmYXVsdCA9IGV4cG9ydHMuYXR0cmlidXRlc01vZHVsZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWF0dHJpYnV0ZXMuanMubWFwIl19
  22661. /***/ }),
  22662. /***/ "./node_modules/snabbdom/dist/snabbdom-class.js":
  22663. /*!******************************************************!*\
  22664. !*** ./node_modules/snabbdom/dist/snabbdom-class.js ***!
  22665. \******************************************************/
  22666. /*! no static exports found */
  22667. /***/ (function(module, exports, __webpack_require__) {
  22668. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22669. "use strict";
  22670. Object.defineProperty(exports, "__esModule", { value: true });
  22671. function updateClass(oldVnode, vnode) {
  22672. var cur, name, elm = vnode.elm, oldClass = oldVnode.data.class, klass = vnode.data.class;
  22673. if (!oldClass && !klass)
  22674. return;
  22675. if (oldClass === klass)
  22676. return;
  22677. oldClass = oldClass || {};
  22678. klass = klass || {};
  22679. for (name in oldClass) {
  22680. if (!klass[name]) {
  22681. elm.classList.remove(name);
  22682. }
  22683. }
  22684. for (name in klass) {
  22685. cur = klass[name];
  22686. if (cur !== oldClass[name]) {
  22687. elm.classList[cur ? 'add' : 'remove'](name);
  22688. }
  22689. }
  22690. }
  22691. exports.classModule = { create: updateClass, update: updateClass };
  22692. exports.default = exports.classModule;
  22693. },{}]},{},[1])(1)
  22694. });
  22695. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9jbGFzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gZSh0LG4scil7ZnVuY3Rpb24gcyhvLHUpe2lmKCFuW29dKXtpZighdFtvXSl7dmFyIGE9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtpZighdSYmYSlyZXR1cm4gYShvLCEwKTtpZihpKXJldHVybiBpKG8sITApO3ZhciBmPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIrbytcIidcIik7dGhyb3cgZi5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGZ9dmFyIGw9bltvXT17ZXhwb3J0czp7fX07dFtvXVswXS5jYWxsKGwuZXhwb3J0cyxmdW5jdGlvbihlKXt2YXIgbj10W29dWzFdW2VdO3JldHVybiBzKG4/bjplKX0sbCxsLmV4cG9ydHMsZSx0LG4scil9cmV0dXJuIG5bb10uZXhwb3J0c312YXIgaT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2Zvcih2YXIgbz0wO288ci5sZW5ndGg7bysrKXMocltvXSk7cmV0dXJuIHN9KSIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xuZnVuY3Rpb24gdXBkYXRlQ2xhc3Mob2xkVm5vZGUsIHZub2RlKSB7XG4gICAgdmFyIGN1ciwgbmFtZSwgZWxtID0gdm5vZGUuZWxtLCBvbGRDbGFzcyA9IG9sZFZub2RlLmRhdGEuY2xhc3MsIGtsYXNzID0gdm5vZGUuZGF0YS5jbGFzcztcbiAgICBpZiAoIW9sZENsYXNzICYmICFrbGFzcylcbiAgICAgICAgcmV0dXJuO1xuICAgIGlmIChvbGRDbGFzcyA9PT0ga2xhc3MpXG4gICAgICAgIHJldHVybjtcbiAgICBvbGRDbGFzcyA9IG9sZENsYXNzIHx8IHt9O1xuICAgIGtsYXNzID0ga2xhc3MgfHwge307XG4gICAgZm9yIChuYW1lIGluIG9sZENsYXNzKSB7XG4gICAgICAgIGlmICgha2xhc3NbbmFtZV0pIHtcbiAgICAgICAgICAgIGVsbS5jbGFzc0xpc3QucmVtb3ZlKG5hbWUpO1xuICAgICAgICB9XG4gICAgfVxuICAgIGZvciAobmFtZSBpbiBrbGFzcykge1xuICAgICAgICBjdXIgPSBrbGFzc1tuYW1lXTtcbiAgICAgICAgaWYgKGN1ciAhPT0gb2xkQ2xhc3NbbmFtZV0pIHtcbiAgICAgICAgICAgIGVsbS5jbGFzc0xpc3RbY3VyID8gJ2FkZCcgOiAncmVtb3ZlJ10obmFtZSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5leHBvcnRzLmNsYXNzTW9kdWxlID0geyBjcmVhdGU6IHVwZGF0ZUNsYXNzLCB1cGRhdGU6IHVwZGF0ZUNsYXNzIH07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLmNsYXNzTW9kdWxlO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y2xhc3MuanMubWFwIl19
  22696. /***/ }),
  22697. /***/ "./node_modules/snabbdom/dist/snabbdom-dataset.js":
  22698. /*!********************************************************!*\
  22699. !*** ./node_modules/snabbdom/dist/snabbdom-dataset.js ***!
  22700. \********************************************************/
  22701. /*! no static exports found */
  22702. /***/ (function(module, exports, __webpack_require__) {
  22703. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22704. "use strict";
  22705. Object.defineProperty(exports, "__esModule", { value: true });
  22706. var CAPS_REGEX = /[A-Z]/g;
  22707. function updateDataset(oldVnode, vnode) {
  22708. var elm = vnode.elm, oldDataset = oldVnode.data.dataset, dataset = vnode.data.dataset, key;
  22709. if (!oldDataset && !dataset)
  22710. return;
  22711. if (oldDataset === dataset)
  22712. return;
  22713. oldDataset = oldDataset || {};
  22714. dataset = dataset || {};
  22715. var d = elm.dataset;
  22716. for (key in oldDataset) {
  22717. if (!dataset[key]) {
  22718. if (d) {
  22719. if (key in d) {
  22720. delete d[key];
  22721. }
  22722. }
  22723. else {
  22724. elm.removeAttribute('data-' + key.replace(CAPS_REGEX, '-$&').toLowerCase());
  22725. }
  22726. }
  22727. }
  22728. for (key in dataset) {
  22729. if (oldDataset[key] !== dataset[key]) {
  22730. if (d) {
  22731. d[key] = dataset[key];
  22732. }
  22733. else {
  22734. elm.setAttribute('data-' + key.replace(CAPS_REGEX, '-$&').toLowerCase(), dataset[key]);
  22735. }
  22736. }
  22737. }
  22738. }
  22739. exports.datasetModule = { create: updateDataset, update: updateDataset };
  22740. exports.default = exports.datasetModule;
  22741. },{}]},{},[1])(1)
  22742. });
  22743. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJtb2R1bGVzL2RhdGFzZXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUNBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gZSh0LG4scil7ZnVuY3Rpb24gcyhvLHUpe2lmKCFuW29dKXtpZighdFtvXSl7dmFyIGE9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtpZighdSYmYSlyZXR1cm4gYShvLCEwKTtpZihpKXJldHVybiBpKG8sITApO3ZhciBmPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIrbytcIidcIik7dGhyb3cgZi5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGZ9dmFyIGw9bltvXT17ZXhwb3J0czp7fX07dFtvXVswXS5jYWxsKGwuZXhwb3J0cyxmdW5jdGlvbihlKXt2YXIgbj10W29dWzFdW2VdO3JldHVybiBzKG4/bjplKX0sbCxsLmV4cG9ydHMsZSx0LG4scil9cmV0dXJuIG5bb10uZXhwb3J0c312YXIgaT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2Zvcih2YXIgbz0wO288ci5sZW5ndGg7bysrKXMocltvXSk7cmV0dXJuIHN9KSIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIENBUFNfUkVHRVggPSAvW0EtWl0vZztcbmZ1bmN0aW9uIHVwZGF0ZURhdGFzZXQob2xkVm5vZGUsIHZub2RlKSB7XG4gICAgdmFyIGVsbSA9IHZub2RlLmVsbSwgb2xkRGF0YXNldCA9IG9sZFZub2RlLmRhdGEuZGF0YXNldCwgZGF0YXNldCA9IHZub2RlLmRhdGEuZGF0YXNldCwga2V5O1xuICAgIGlmICghb2xkRGF0YXNldCAmJiAhZGF0YXNldClcbiAgICAgICAgcmV0dXJuO1xuICAgIGlmIChvbGREYXRhc2V0ID09PSBkYXRhc2V0KVxuICAgICAgICByZXR1cm47XG4gICAgb2xkRGF0YXNldCA9IG9sZERhdGFzZXQgfHwge307XG4gICAgZGF0YXNldCA9IGRhdGFzZXQgfHwge307XG4gICAgdmFyIGQgPSBlbG0uZGF0YXNldDtcbiAgICBmb3IgKGtleSBpbiBvbGREYXRhc2V0KSB7XG4gICAgICAgIGlmICghZGF0YXNldFtrZXldKSB7XG4gICAgICAgICAgICBpZiAoZCkge1xuICAgICAgICAgICAgICAgIGlmIChrZXkgaW4gZCkge1xuICAgICAgICAgICAgICAgICAgICBkZWxldGUgZFtrZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGVsbS5yZW1vdmVBdHRyaWJ1dGUoJ2RhdGEtJyArIGtleS5yZXBsYWNlKENBUFNfUkVHRVgsICctJCYnKS50b0xvd2VyQ2FzZSgpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICBmb3IgKGtleSBpbiBkYXRhc2V0KSB7XG4gICAgICAgIGlmIChvbGREYXRhc2V0W2tleV0gIT09IGRhdGFzZXRba2V5XSkge1xuICAgICAgICAgICAgaWYgKGQpIHtcbiAgICAgICAgICAgICAgICBkW2tleV0gPSBkYXRhc2V0W2tleV07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlKCdkYXRhLScgKyBrZXkucmVwbGFjZShDQVBTX1JFR0VYLCAnLSQmJykudG9Mb3dlckNhc2UoKSwgZGF0YXNldFtrZXldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbmV4cG9ydHMuZGF0YXNldE1vZHVsZSA9IHsgY3JlYXRlOiB1cGRhdGVEYXRhc2V0LCB1cGRhdGU6IHVwZGF0ZURhdGFzZXQgfTtcbmV4cG9ydHMuZGVmYXVsdCA9IGV4cG9ydHMuZGF0YXNldE1vZHVsZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWRhdGFzZXQuanMubWFwIl19
  22744. /***/ }),
  22745. /***/ "./node_modules/snabbdom/dist/snabbdom-props.js":
  22746. /*!******************************************************!*\
  22747. !*** ./node_modules/snabbdom/dist/snabbdom-props.js ***!
  22748. \******************************************************/
  22749. /*! no static exports found */
  22750. /***/ (function(module, exports, __webpack_require__) {
  22751. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22752. "use strict";
  22753. Object.defineProperty(exports, "__esModule", { value: true });
  22754. function updateProps(oldVnode, vnode) {
  22755. var key, cur, old, elm = vnode.elm, oldProps = oldVnode.data.props, props = vnode.data.props;
  22756. if (!oldProps && !props)
  22757. return;
  22758. if (oldProps === props)
  22759. return;
  22760. oldProps = oldProps || {};
  22761. props = props || {};
  22762. for (key in oldProps) {
  22763. if (!props[key]) {
  22764. delete elm[key];
  22765. }
  22766. }
  22767. for (key in props) {
  22768. cur = props[key];
  22769. old = oldProps[key];
  22770. if (old !== cur && (key !== 'value' || elm[key] !== cur)) {
  22771. elm[key] = cur;
  22772. }
  22773. }
  22774. }
  22775. exports.propsModule = { create: updateProps, update: updateProps };
  22776. exports.default = exports.propsModule;
  22777. },{}]},{},[1])(1)
  22778. });
  22779. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9wcm9wcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiB1cGRhdGVQcm9wcyhvbGRWbm9kZSwgdm5vZGUpIHtcbiAgICB2YXIga2V5LCBjdXIsIG9sZCwgZWxtID0gdm5vZGUuZWxtLCBvbGRQcm9wcyA9IG9sZFZub2RlLmRhdGEucHJvcHMsIHByb3BzID0gdm5vZGUuZGF0YS5wcm9wcztcbiAgICBpZiAoIW9sZFByb3BzICYmICFwcm9wcylcbiAgICAgICAgcmV0dXJuO1xuICAgIGlmIChvbGRQcm9wcyA9PT0gcHJvcHMpXG4gICAgICAgIHJldHVybjtcbiAgICBvbGRQcm9wcyA9IG9sZFByb3BzIHx8IHt9O1xuICAgIHByb3BzID0gcHJvcHMgfHwge307XG4gICAgZm9yIChrZXkgaW4gb2xkUHJvcHMpIHtcbiAgICAgICAgaWYgKCFwcm9wc1trZXldKSB7XG4gICAgICAgICAgICBkZWxldGUgZWxtW2tleV07XG4gICAgICAgIH1cbiAgICB9XG4gICAgZm9yIChrZXkgaW4gcHJvcHMpIHtcbiAgICAgICAgY3VyID0gcHJvcHNba2V5XTtcbiAgICAgICAgb2xkID0gb2xkUHJvcHNba2V5XTtcbiAgICAgICAgaWYgKG9sZCAhPT0gY3VyICYmIChrZXkgIT09ICd2YWx1ZScgfHwgZWxtW2tleV0gIT09IGN1cikpIHtcbiAgICAgICAgICAgIGVsbVtrZXldID0gY3VyO1xuICAgICAgICB9XG4gICAgfVxufVxuZXhwb3J0cy5wcm9wc01vZHVsZSA9IHsgY3JlYXRlOiB1cGRhdGVQcm9wcywgdXBkYXRlOiB1cGRhdGVQcm9wcyB9O1xuZXhwb3J0cy5kZWZhdWx0ID0gZXhwb3J0cy5wcm9wc01vZHVsZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BzLmpzLm1hcCJdfQ==
  22780. /***/ }),
  22781. /***/ "./node_modules/snabbdom/dist/snabbdom-style.js":
  22782. /*!******************************************************!*\
  22783. !*** ./node_modules/snabbdom/dist/snabbdom-style.js ***!
  22784. \******************************************************/
  22785. /*! no static exports found */
  22786. /***/ (function(module, exports, __webpack_require__) {
  22787. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22788. "use strict";
  22789. Object.defineProperty(exports, "__esModule", { value: true });
  22790. var raf = (typeof window !== 'undefined' && window.requestAnimationFrame) || setTimeout;
  22791. var nextFrame = function (fn) { raf(function () { raf(fn); }); };
  22792. function setNextFrame(obj, prop, val) {
  22793. nextFrame(function () { obj[prop] = val; });
  22794. }
  22795. function updateStyle(oldVnode, vnode) {
  22796. var cur, name, elm = vnode.elm, oldStyle = oldVnode.data.style, style = vnode.data.style;
  22797. if (!oldStyle && !style)
  22798. return;
  22799. if (oldStyle === style)
  22800. return;
  22801. oldStyle = oldStyle || {};
  22802. style = style || {};
  22803. var oldHasDel = 'delayed' in oldStyle;
  22804. for (name in oldStyle) {
  22805. if (!style[name]) {
  22806. if (name[0] === '-' && name[1] === '-') {
  22807. elm.style.removeProperty(name);
  22808. }
  22809. else {
  22810. elm.style[name] = '';
  22811. }
  22812. }
  22813. }
  22814. for (name in style) {
  22815. cur = style[name];
  22816. if (name === 'delayed' && style.delayed) {
  22817. for (var name2 in style.delayed) {
  22818. cur = style.delayed[name2];
  22819. if (!oldHasDel || cur !== oldStyle.delayed[name2]) {
  22820. setNextFrame(elm.style, name2, cur);
  22821. }
  22822. }
  22823. }
  22824. else if (name !== 'remove' && cur !== oldStyle[name]) {
  22825. if (name[0] === '-' && name[1] === '-') {
  22826. elm.style.setProperty(name, cur);
  22827. }
  22828. else {
  22829. elm.style[name] = cur;
  22830. }
  22831. }
  22832. }
  22833. }
  22834. function applyDestroyStyle(vnode) {
  22835. var style, name, elm = vnode.elm, s = vnode.data.style;
  22836. if (!s || !(style = s.destroy))
  22837. return;
  22838. for (name in style) {
  22839. elm.style[name] = style[name];
  22840. }
  22841. }
  22842. function applyRemoveStyle(vnode, rm) {
  22843. var s = vnode.data.style;
  22844. if (!s || !s.remove) {
  22845. rm();
  22846. return;
  22847. }
  22848. var name, elm = vnode.elm, i = 0, compStyle, style = s.remove, amount = 0, applied = [];
  22849. for (name in style) {
  22850. applied.push(name);
  22851. elm.style[name] = style[name];
  22852. }
  22853. compStyle = getComputedStyle(elm);
  22854. var props = compStyle['transition-property'].split(', ');
  22855. for (; i < props.length; ++i) {
  22856. if (applied.indexOf(props[i]) !== -1)
  22857. amount++;
  22858. }
  22859. elm.addEventListener('transitionend', function (ev) {
  22860. if (ev.target === elm)
  22861. --amount;
  22862. if (amount === 0)
  22863. rm();
  22864. });
  22865. }
  22866. exports.styleModule = {
  22867. create: updateStyle,
  22868. update: updateStyle,
  22869. destroy: applyDestroyStyle,
  22870. remove: applyRemoveStyle
  22871. };
  22872. exports.default = exports.styleModule;
  22873. },{}]},{},[1])(1)
  22874. });
  22875. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9zdHlsZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG52YXIgcmFmID0gKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHdpbmRvdy5yZXF1ZXN0QW5pbWF0aW9uRnJhbWUpIHx8IHNldFRpbWVvdXQ7XG52YXIgbmV4dEZyYW1lID0gZnVuY3Rpb24gKGZuKSB7IHJhZihmdW5jdGlvbiAoKSB7IHJhZihmbik7IH0pOyB9O1xuZnVuY3Rpb24gc2V0TmV4dEZyYW1lKG9iaiwgcHJvcCwgdmFsKSB7XG4gICAgbmV4dEZyYW1lKGZ1bmN0aW9uICgpIHsgb2JqW3Byb3BdID0gdmFsOyB9KTtcbn1cbmZ1bmN0aW9uIHVwZGF0ZVN0eWxlKG9sZFZub2RlLCB2bm9kZSkge1xuICAgIHZhciBjdXIsIG5hbWUsIGVsbSA9IHZub2RlLmVsbSwgb2xkU3R5bGUgPSBvbGRWbm9kZS5kYXRhLnN0eWxlLCBzdHlsZSA9IHZub2RlLmRhdGEuc3R5bGU7XG4gICAgaWYgKCFvbGRTdHlsZSAmJiAhc3R5bGUpXG4gICAgICAgIHJldHVybjtcbiAgICBpZiAob2xkU3R5bGUgPT09IHN0eWxlKVxuICAgICAgICByZXR1cm47XG4gICAgb2xkU3R5bGUgPSBvbGRTdHlsZSB8fCB7fTtcbiAgICBzdHlsZSA9IHN0eWxlIHx8IHt9O1xuICAgIHZhciBvbGRIYXNEZWwgPSAnZGVsYXllZCcgaW4gb2xkU3R5bGU7XG4gICAgZm9yIChuYW1lIGluIG9sZFN0eWxlKSB7XG4gICAgICAgIGlmICghc3R5bGVbbmFtZV0pIHtcbiAgICAgICAgICAgIGlmIChuYW1lWzBdID09PSAnLScgJiYgbmFtZVsxXSA9PT0gJy0nKSB7XG4gICAgICAgICAgICAgICAgZWxtLnN0eWxlLnJlbW92ZVByb3BlcnR5KG5hbWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgZWxtLnN0eWxlW25hbWVdID0gJyc7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgZm9yIChuYW1lIGluIHN0eWxlKSB7XG4gICAgICAgIGN1ciA9IHN0eWxlW25hbWVdO1xuICAgICAgICBpZiAobmFtZSA9PT0gJ2RlbGF5ZWQnICYmIHN0eWxlLmRlbGF5ZWQpIHtcbiAgICAgICAgICAgIGZvciAodmFyIG5hbWUyIGluIHN0eWxlLmRlbGF5ZWQpIHtcbiAgICAgICAgICAgICAgICBjdXIgPSBzdHlsZS5kZWxheWVkW25hbWUyXTtcbiAgICAgICAgICAgICAgICBpZiAoIW9sZEhhc0RlbCB8fCBjdXIgIT09IG9sZFN0eWxlLmRlbGF5ZWRbbmFtZTJdKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldE5leHRGcmFtZShlbG0uc3R5bGUsIG5hbWUyLCBjdXIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChuYW1lICE9PSAncmVtb3ZlJyAmJiBjdXIgIT09IG9sZFN0eWxlW25hbWVdKSB7XG4gICAgICAgICAgICBpZiAobmFtZVswXSA9PT0gJy0nICYmIG5hbWVbMV0gPT09ICctJykge1xuICAgICAgICAgICAgICAgIGVsbS5zdHlsZS5zZXRQcm9wZXJ0eShuYW1lLCBjdXIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgZWxtLnN0eWxlW25hbWVdID0gY3VyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuZnVuY3Rpb24gYXBwbHlEZXN0cm95U3R5bGUodm5vZGUpIHtcbiAgICB2YXIgc3R5bGUsIG5hbWUsIGVsbSA9IHZub2RlLmVsbSwgcyA9IHZub2RlLmRhdGEuc3R5bGU7XG4gICAgaWYgKCFzIHx8ICEoc3R5bGUgPSBzLmRlc3Ryb3kpKVxuICAgICAgICByZXR1cm47XG4gICAgZm9yIChuYW1lIGluIHN0eWxlKSB7XG4gICAgICAgIGVsbS5zdHlsZVtuYW1lXSA9IHN0eWxlW25hbWVdO1xuICAgIH1cbn1cbmZ1bmN0aW9uIGFwcGx5UmVtb3ZlU3R5bGUodm5vZGUsIHJtKSB7XG4gICAgdmFyIHMgPSB2bm9kZS5kYXRhLnN0eWxlO1xuICAgIGlmICghcyB8fCAhcy5yZW1vdmUpIHtcbiAgICAgICAgcm0oKTtcbiAgICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB2YXIgbmFtZSwgZWxtID0gdm5vZGUuZWxtLCBpID0gMCwgY29tcFN0eWxlLCBzdHlsZSA9IHMucmVtb3ZlLCBhbW91bnQgPSAwLCBhcHBsaWVkID0gW107XG4gICAgZm9yIChuYW1lIGluIHN0eWxlKSB7XG4gICAgICAgIGFwcGxpZWQucHVzaChuYW1lKTtcbiAgICAgICAgZWxtLnN0eWxlW25hbWVdID0gc3R5bGVbbmFtZV07XG4gICAgfVxuICAgIGNvbXBTdHlsZSA9IGdldENvbXB1dGVkU3R5bGUoZWxtKTtcbiAgICB2YXIgcHJvcHMgPSBjb21wU3R5bGVbJ3RyYW5zaXRpb24tcHJvcGVydHknXS5zcGxpdCgnLCAnKTtcbiAgICBmb3IgKDsgaSA8IHByb3BzLmxlbmd0aDsgKytpKSB7XG4gICAgICAgIGlmIChhcHBsaWVkLmluZGV4T2YocHJvcHNbaV0pICE9PSAtMSlcbiAgICAgICAgICAgIGFtb3VudCsrO1xuICAgIH1cbiAgICBlbG0uYWRkRXZlbnRMaXN0ZW5lcigndHJhbnNpdGlvbmVuZCcsIGZ1bmN0aW9uIChldikge1xuICAgICAgICBpZiAoZXYudGFyZ2V0ID09PSBlbG0pXG4gICAgICAgICAgICAtLWFtb3VudDtcbiAgICAgICAgaWYgKGFtb3VudCA9PT0gMClcbiAgICAgICAgICAgIHJtKCk7XG4gICAgfSk7XG59XG5leHBvcnRzLnN0eWxlTW9kdWxlID0ge1xuICAgIGNyZWF0ZTogdXBkYXRlU3R5bGUsXG4gICAgdXBkYXRlOiB1cGRhdGVTdHlsZSxcbiAgICBkZXN0cm95OiBhcHBseURlc3Ryb3lTdHlsZSxcbiAgICByZW1vdmU6IGFwcGx5UmVtb3ZlU3R5bGVcbn07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLnN0eWxlTW9kdWxlO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c3R5bGUuanMubWFwIl19
  22876. /***/ }),
  22877. /***/ "./node_modules/snabbdom/dist/snabbdom.js":
  22878. /*!************************************************!*\
  22879. !*** ./node_modules/snabbdom/dist/snabbdom.js ***!
  22880. \************************************************/
  22881. /*! no static exports found */
  22882. /***/ (function(module, exports, __webpack_require__) {
  22883. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22884. "use strict";
  22885. Object.defineProperty(exports, "__esModule", { value: true });
  22886. var vnode_1 = require("./vnode");
  22887. var is = require("./is");
  22888. function addNS(data, children, sel) {
  22889. data.ns = 'http://www.w3.org/2000/svg';
  22890. if (sel !== 'foreignObject' && children !== undefined) {
  22891. for (var i = 0; i < children.length; ++i) {
  22892. var childData = children[i].data;
  22893. if (childData !== undefined) {
  22894. addNS(childData, children[i].children, children[i].sel);
  22895. }
  22896. }
  22897. }
  22898. }
  22899. function h(sel, b, c) {
  22900. var data = {}, children, text, i;
  22901. if (c !== undefined) {
  22902. data = b;
  22903. if (is.array(c)) {
  22904. children = c;
  22905. }
  22906. else if (is.primitive(c)) {
  22907. text = c;
  22908. }
  22909. else if (c && c.sel) {
  22910. children = [c];
  22911. }
  22912. }
  22913. else if (b !== undefined) {
  22914. if (is.array(b)) {
  22915. children = b;
  22916. }
  22917. else if (is.primitive(b)) {
  22918. text = b;
  22919. }
  22920. else if (b && b.sel) {
  22921. children = [b];
  22922. }
  22923. else {
  22924. data = b;
  22925. }
  22926. }
  22927. if (is.array(children)) {
  22928. for (i = 0; i < children.length; ++i) {
  22929. if (is.primitive(children[i]))
  22930. children[i] = vnode_1.vnode(undefined, undefined, undefined, children[i]);
  22931. }
  22932. }
  22933. if (sel[0] === 's' && sel[1] === 'v' && sel[2] === 'g' &&
  22934. (sel.length === 3 || sel[3] === '.' || sel[3] === '#')) {
  22935. addNS(data, children, sel);
  22936. }
  22937. return vnode_1.vnode(sel, data, children, text, undefined);
  22938. }
  22939. exports.h = h;
  22940. ;
  22941. exports.default = h;
  22942. },{"./is":3,"./vnode":6}],2:[function(require,module,exports){
  22943. "use strict";
  22944. Object.defineProperty(exports, "__esModule", { value: true });
  22945. function createElement(tagName) {
  22946. return document.createElement(tagName);
  22947. }
  22948. function createElementNS(namespaceURI, qualifiedName) {
  22949. return document.createElementNS(namespaceURI, qualifiedName);
  22950. }
  22951. function createTextNode(text) {
  22952. return document.createTextNode(text);
  22953. }
  22954. function createComment(text) {
  22955. return document.createComment(text);
  22956. }
  22957. function insertBefore(parentNode, newNode, referenceNode) {
  22958. parentNode.insertBefore(newNode, referenceNode);
  22959. }
  22960. function removeChild(node, child) {
  22961. node.removeChild(child);
  22962. }
  22963. function appendChild(node, child) {
  22964. node.appendChild(child);
  22965. }
  22966. function parentNode(node) {
  22967. return node.parentNode;
  22968. }
  22969. function nextSibling(node) {
  22970. return node.nextSibling;
  22971. }
  22972. function tagName(elm) {
  22973. return elm.tagName;
  22974. }
  22975. function setTextContent(node, text) {
  22976. node.textContent = text;
  22977. }
  22978. function getTextContent(node) {
  22979. return node.textContent;
  22980. }
  22981. function isElement(node) {
  22982. return node.nodeType === 1;
  22983. }
  22984. function isText(node) {
  22985. return node.nodeType === 3;
  22986. }
  22987. function isComment(node) {
  22988. return node.nodeType === 8;
  22989. }
  22990. exports.htmlDomApi = {
  22991. createElement: createElement,
  22992. createElementNS: createElementNS,
  22993. createTextNode: createTextNode,
  22994. createComment: createComment,
  22995. insertBefore: insertBefore,
  22996. removeChild: removeChild,
  22997. appendChild: appendChild,
  22998. parentNode: parentNode,
  22999. nextSibling: nextSibling,
  23000. tagName: tagName,
  23001. setTextContent: setTextContent,
  23002. getTextContent: getTextContent,
  23003. isElement: isElement,
  23004. isText: isText,
  23005. isComment: isComment,
  23006. };
  23007. exports.default = exports.htmlDomApi;
  23008. },{}],3:[function(require,module,exports){
  23009. "use strict";
  23010. Object.defineProperty(exports, "__esModule", { value: true });
  23011. exports.array = Array.isArray;
  23012. function primitive(s) {
  23013. return typeof s === 'string' || typeof s === 'number';
  23014. }
  23015. exports.primitive = primitive;
  23016. },{}],4:[function(require,module,exports){
  23017. "use strict";
  23018. Object.defineProperty(exports, "__esModule", { value: true });
  23019. var vnode_1 = require("./vnode");
  23020. var is = require("./is");
  23021. var htmldomapi_1 = require("./htmldomapi");
  23022. function isUndef(s) { return s === undefined; }
  23023. function isDef(s) { return s !== undefined; }
  23024. var emptyNode = vnode_1.default('', {}, [], undefined, undefined);
  23025. function sameVnode(vnode1, vnode2) {
  23026. return vnode1.key === vnode2.key && vnode1.sel === vnode2.sel;
  23027. }
  23028. function isVnode(vnode) {
  23029. return vnode.sel !== undefined;
  23030. }
  23031. function createKeyToOldIdx(children, beginIdx, endIdx) {
  23032. var i, map = {}, key, ch;
  23033. for (i = beginIdx; i <= endIdx; ++i) {
  23034. ch = children[i];
  23035. if (ch != null) {
  23036. key = ch.key;
  23037. if (key !== undefined)
  23038. map[key] = i;
  23039. }
  23040. }
  23041. return map;
  23042. }
  23043. var hooks = ['create', 'update', 'remove', 'destroy', 'pre', 'post'];
  23044. var h_1 = require("./h");
  23045. exports.h = h_1.h;
  23046. var thunk_1 = require("./thunk");
  23047. exports.thunk = thunk_1.thunk;
  23048. function init(modules, domApi) {
  23049. var i, j, cbs = {};
  23050. var api = domApi !== undefined ? domApi : htmldomapi_1.default;
  23051. for (i = 0; i < hooks.length; ++i) {
  23052. cbs[hooks[i]] = [];
  23053. for (j = 0; j < modules.length; ++j) {
  23054. var hook = modules[j][hooks[i]];
  23055. if (hook !== undefined) {
  23056. cbs[hooks[i]].push(hook);
  23057. }
  23058. }
  23059. }
  23060. function emptyNodeAt(elm) {
  23061. var id = elm.id ? '#' + elm.id : '';
  23062. var c = elm.className ? '.' + elm.className.split(' ').join('.') : '';
  23063. return vnode_1.default(api.tagName(elm).toLowerCase() + id + c, {}, [], undefined, elm);
  23064. }
  23065. function createRmCb(childElm, listeners) {
  23066. return function rmCb() {
  23067. if (--listeners === 0) {
  23068. var parent_1 = api.parentNode(childElm);
  23069. api.removeChild(parent_1, childElm);
  23070. }
  23071. };
  23072. }
  23073. function createElm(vnode, insertedVnodeQueue) {
  23074. var i, data = vnode.data;
  23075. if (data !== undefined) {
  23076. if (isDef(i = data.hook) && isDef(i = i.init)) {
  23077. i(vnode);
  23078. data = vnode.data;
  23079. }
  23080. }
  23081. var children = vnode.children, sel = vnode.sel;
  23082. if (sel === '!') {
  23083. if (isUndef(vnode.text)) {
  23084. vnode.text = '';
  23085. }
  23086. vnode.elm = api.createComment(vnode.text);
  23087. }
  23088. else if (sel !== undefined) {
  23089. // Parse selector
  23090. var hashIdx = sel.indexOf('#');
  23091. var dotIdx = sel.indexOf('.', hashIdx);
  23092. var hash = hashIdx > 0 ? hashIdx : sel.length;
  23093. var dot = dotIdx > 0 ? dotIdx : sel.length;
  23094. var tag = hashIdx !== -1 || dotIdx !== -1 ? sel.slice(0, Math.min(hash, dot)) : sel;
  23095. var elm = vnode.elm = isDef(data) && isDef(i = data.ns) ? api.createElementNS(i, tag)
  23096. : api.createElement(tag);
  23097. if (hash < dot)
  23098. elm.setAttribute('id', sel.slice(hash + 1, dot));
  23099. if (dotIdx > 0)
  23100. elm.setAttribute('class', sel.slice(dot + 1).replace(/\./g, ' '));
  23101. for (i = 0; i < cbs.create.length; ++i)
  23102. cbs.create[i](emptyNode, vnode);
  23103. if (is.array(children)) {
  23104. for (i = 0; i < children.length; ++i) {
  23105. var ch = children[i];
  23106. if (ch != null) {
  23107. api.appendChild(elm, createElm(ch, insertedVnodeQueue));
  23108. }
  23109. }
  23110. }
  23111. else if (is.primitive(vnode.text)) {
  23112. api.appendChild(elm, api.createTextNode(vnode.text));
  23113. }
  23114. i = vnode.data.hook; // Reuse variable
  23115. if (isDef(i)) {
  23116. if (i.create)
  23117. i.create(emptyNode, vnode);
  23118. if (i.insert)
  23119. insertedVnodeQueue.push(vnode);
  23120. }
  23121. }
  23122. else {
  23123. vnode.elm = api.createTextNode(vnode.text);
  23124. }
  23125. return vnode.elm;
  23126. }
  23127. function addVnodes(parentElm, before, vnodes, startIdx, endIdx, insertedVnodeQueue) {
  23128. for (; startIdx <= endIdx; ++startIdx) {
  23129. var ch = vnodes[startIdx];
  23130. if (ch != null) {
  23131. api.insertBefore(parentElm, createElm(ch, insertedVnodeQueue), before);
  23132. }
  23133. }
  23134. }
  23135. function invokeDestroyHook(vnode) {
  23136. var i, j, data = vnode.data;
  23137. if (data !== undefined) {
  23138. if (isDef(i = data.hook) && isDef(i = i.destroy))
  23139. i(vnode);
  23140. for (i = 0; i < cbs.destroy.length; ++i)
  23141. cbs.destroy[i](vnode);
  23142. if (vnode.children !== undefined) {
  23143. for (j = 0; j < vnode.children.length; ++j) {
  23144. i = vnode.children[j];
  23145. if (i != null && typeof i !== "string") {
  23146. invokeDestroyHook(i);
  23147. }
  23148. }
  23149. }
  23150. }
  23151. }
  23152. function removeVnodes(parentElm, vnodes, startIdx, endIdx) {
  23153. for (; startIdx <= endIdx; ++startIdx) {
  23154. var i_1 = void 0, listeners = void 0, rm = void 0, ch = vnodes[startIdx];
  23155. if (ch != null) {
  23156. if (isDef(ch.sel)) {
  23157. invokeDestroyHook(ch);
  23158. listeners = cbs.remove.length + 1;
  23159. rm = createRmCb(ch.elm, listeners);
  23160. for (i_1 = 0; i_1 < cbs.remove.length; ++i_1)
  23161. cbs.remove[i_1](ch, rm);
  23162. if (isDef(i_1 = ch.data) && isDef(i_1 = i_1.hook) && isDef(i_1 = i_1.remove)) {
  23163. i_1(ch, rm);
  23164. }
  23165. else {
  23166. rm();
  23167. }
  23168. }
  23169. else {
  23170. api.removeChild(parentElm, ch.elm);
  23171. }
  23172. }
  23173. }
  23174. }
  23175. function updateChildren(parentElm, oldCh, newCh, insertedVnodeQueue) {
  23176. var oldStartIdx = 0, newStartIdx = 0;
  23177. var oldEndIdx = oldCh.length - 1;
  23178. var oldStartVnode = oldCh[0];
  23179. var oldEndVnode = oldCh[oldEndIdx];
  23180. var newEndIdx = newCh.length - 1;
  23181. var newStartVnode = newCh[0];
  23182. var newEndVnode = newCh[newEndIdx];
  23183. var oldKeyToIdx;
  23184. var idxInOld;
  23185. var elmToMove;
  23186. var before;
  23187. while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
  23188. if (oldStartVnode == null) {
  23189. oldStartVnode = oldCh[++oldStartIdx]; // Vnode might have been moved left
  23190. }
  23191. else if (oldEndVnode == null) {
  23192. oldEndVnode = oldCh[--oldEndIdx];
  23193. }
  23194. else if (newStartVnode == null) {
  23195. newStartVnode = newCh[++newStartIdx];
  23196. }
  23197. else if (newEndVnode == null) {
  23198. newEndVnode = newCh[--newEndIdx];
  23199. }
  23200. else if (sameVnode(oldStartVnode, newStartVnode)) {
  23201. patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);
  23202. oldStartVnode = oldCh[++oldStartIdx];
  23203. newStartVnode = newCh[++newStartIdx];
  23204. }
  23205. else if (sameVnode(oldEndVnode, newEndVnode)) {
  23206. patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);
  23207. oldEndVnode = oldCh[--oldEndIdx];
  23208. newEndVnode = newCh[--newEndIdx];
  23209. }
  23210. else if (sameVnode(oldStartVnode, newEndVnode)) {
  23211. patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);
  23212. api.insertBefore(parentElm, oldStartVnode.elm, api.nextSibling(oldEndVnode.elm));
  23213. oldStartVnode = oldCh[++oldStartIdx];
  23214. newEndVnode = newCh[--newEndIdx];
  23215. }
  23216. else if (sameVnode(oldEndVnode, newStartVnode)) {
  23217. patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);
  23218. api.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
  23219. oldEndVnode = oldCh[--oldEndIdx];
  23220. newStartVnode = newCh[++newStartIdx];
  23221. }
  23222. else {
  23223. if (oldKeyToIdx === undefined) {
  23224. oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx);
  23225. }
  23226. idxInOld = oldKeyToIdx[newStartVnode.key];
  23227. if (isUndef(idxInOld)) {
  23228. api.insertBefore(parentElm, createElm(newStartVnode, insertedVnodeQueue), oldStartVnode.elm);
  23229. newStartVnode = newCh[++newStartIdx];
  23230. }
  23231. else {
  23232. elmToMove = oldCh[idxInOld];
  23233. if (elmToMove.sel !== newStartVnode.sel) {
  23234. api.insertBefore(parentElm, createElm(newStartVnode, insertedVnodeQueue), oldStartVnode.elm);
  23235. }
  23236. else {
  23237. patchVnode(elmToMove, newStartVnode, insertedVnodeQueue);
  23238. oldCh[idxInOld] = undefined;
  23239. api.insertBefore(parentElm, elmToMove.elm, oldStartVnode.elm);
  23240. }
  23241. newStartVnode = newCh[++newStartIdx];
  23242. }
  23243. }
  23244. }
  23245. if (oldStartIdx > oldEndIdx) {
  23246. before = newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].elm;
  23247. addVnodes(parentElm, before, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
  23248. }
  23249. else if (newStartIdx > newEndIdx) {
  23250. removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
  23251. }
  23252. }
  23253. function patchVnode(oldVnode, vnode, insertedVnodeQueue) {
  23254. var i, hook;
  23255. if (isDef(i = vnode.data) && isDef(hook = i.hook) && isDef(i = hook.prepatch)) {
  23256. i(oldVnode, vnode);
  23257. }
  23258. var elm = vnode.elm = oldVnode.elm;
  23259. var oldCh = oldVnode.children;
  23260. var ch = vnode.children;
  23261. if (oldVnode === vnode)
  23262. return;
  23263. if (vnode.data !== undefined) {
  23264. for (i = 0; i < cbs.update.length; ++i)
  23265. cbs.update[i](oldVnode, vnode);
  23266. i = vnode.data.hook;
  23267. if (isDef(i) && isDef(i = i.update))
  23268. i(oldVnode, vnode);
  23269. }
  23270. if (isUndef(vnode.text)) {
  23271. if (isDef(oldCh) && isDef(ch)) {
  23272. if (oldCh !== ch)
  23273. updateChildren(elm, oldCh, ch, insertedVnodeQueue);
  23274. }
  23275. else if (isDef(ch)) {
  23276. if (isDef(oldVnode.text))
  23277. api.setTextContent(elm, '');
  23278. addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
  23279. }
  23280. else if (isDef(oldCh)) {
  23281. removeVnodes(elm, oldCh, 0, oldCh.length - 1);
  23282. }
  23283. else if (isDef(oldVnode.text)) {
  23284. api.setTextContent(elm, '');
  23285. }
  23286. }
  23287. else if (oldVnode.text !== vnode.text) {
  23288. api.setTextContent(elm, vnode.text);
  23289. }
  23290. if (isDef(hook) && isDef(i = hook.postpatch)) {
  23291. i(oldVnode, vnode);
  23292. }
  23293. }
  23294. return function patch(oldVnode, vnode) {
  23295. var i, elm, parent;
  23296. var insertedVnodeQueue = [];
  23297. for (i = 0; i < cbs.pre.length; ++i)
  23298. cbs.pre[i]();
  23299. if (!isVnode(oldVnode)) {
  23300. oldVnode = emptyNodeAt(oldVnode);
  23301. }
  23302. if (sameVnode(oldVnode, vnode)) {
  23303. patchVnode(oldVnode, vnode, insertedVnodeQueue);
  23304. }
  23305. else {
  23306. elm = oldVnode.elm;
  23307. parent = api.parentNode(elm);
  23308. createElm(vnode, insertedVnodeQueue);
  23309. if (parent !== null) {
  23310. api.insertBefore(parent, vnode.elm, api.nextSibling(elm));
  23311. removeVnodes(parent, [oldVnode], 0, 0);
  23312. }
  23313. }
  23314. for (i = 0; i < insertedVnodeQueue.length; ++i) {
  23315. insertedVnodeQueue[i].data.hook.insert(insertedVnodeQueue[i]);
  23316. }
  23317. for (i = 0; i < cbs.post.length; ++i)
  23318. cbs.post[i]();
  23319. return vnode;
  23320. };
  23321. }
  23322. exports.init = init;
  23323. },{"./h":1,"./htmldomapi":2,"./is":3,"./thunk":5,"./vnode":6}],5:[function(require,module,exports){
  23324. "use strict";
  23325. Object.defineProperty(exports, "__esModule", { value: true });
  23326. var h_1 = require("./h");
  23327. function copyToThunk(vnode, thunk) {
  23328. thunk.elm = vnode.elm;
  23329. vnode.data.fn = thunk.data.fn;
  23330. vnode.data.args = thunk.data.args;
  23331. thunk.data = vnode.data;
  23332. thunk.children = vnode.children;
  23333. thunk.text = vnode.text;
  23334. thunk.elm = vnode.elm;
  23335. }
  23336. function init(thunk) {
  23337. var cur = thunk.data;
  23338. var vnode = cur.fn.apply(undefined, cur.args);
  23339. copyToThunk(vnode, thunk);
  23340. }
  23341. function prepatch(oldVnode, thunk) {
  23342. var i, old = oldVnode.data, cur = thunk.data;
  23343. var oldArgs = old.args, args = cur.args;
  23344. if (old.fn !== cur.fn || oldArgs.length !== args.length) {
  23345. copyToThunk(cur.fn.apply(undefined, args), thunk);
  23346. return;
  23347. }
  23348. for (i = 0; i < args.length; ++i) {
  23349. if (oldArgs[i] !== args[i]) {
  23350. copyToThunk(cur.fn.apply(undefined, args), thunk);
  23351. return;
  23352. }
  23353. }
  23354. copyToThunk(oldVnode, thunk);
  23355. }
  23356. exports.thunk = function thunk(sel, key, fn, args) {
  23357. if (args === undefined) {
  23358. args = fn;
  23359. fn = key;
  23360. key = undefined;
  23361. }
  23362. return h_1.h(sel, {
  23363. key: key,
  23364. hook: { init: init, prepatch: prepatch },
  23365. fn: fn,
  23366. args: args
  23367. });
  23368. };
  23369. exports.default = exports.thunk;
  23370. },{"./h":1}],6:[function(require,module,exports){
  23371. "use strict";
  23372. Object.defineProperty(exports, "__esModule", { value: true });
  23373. function vnode(sel, data, children, text, elm) {
  23374. var key = data === undefined ? undefined : data.key;
  23375. return { sel: sel, data: data, children: children,
  23376. text: text, elm: elm, key: key };
  23377. }
  23378. exports.vnode = vnode;
  23379. exports.default = vnode;
  23380. },{}]},{},[4])(4)
  23381. });
  23382. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwiaC5qcyIsImh0bWxkb21hcGkuanMiLCJpcy5qcyIsInNuYWJiZG9tLmpzIiwidGh1bmsuanMiLCJ2bm9kZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FDMURBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNqRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNQQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNsVEE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUM5Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG52YXIgdm5vZGVfMSA9IHJlcXVpcmUoXCIuL3Zub2RlXCIpO1xudmFyIGlzID0gcmVxdWlyZShcIi4vaXNcIik7XG5mdW5jdGlvbiBhZGROUyhkYXRhLCBjaGlsZHJlbiwgc2VsKSB7XG4gICAgZGF0YS5ucyA9ICdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc7XG4gICAgaWYgKHNlbCAhPT0gJ2ZvcmVpZ25PYmplY3QnICYmIGNoaWxkcmVuICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGlsZHJlbi5sZW5ndGg7ICsraSkge1xuICAgICAgICAgICAgdmFyIGNoaWxkRGF0YSA9IGNoaWxkcmVuW2ldLmRhdGE7XG4gICAgICAgICAgICBpZiAoY2hpbGREYXRhICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICBhZGROUyhjaGlsZERhdGEsIGNoaWxkcmVuW2ldLmNoaWxkcmVuLCBjaGlsZHJlbltpXS5zZWwpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuZnVuY3Rpb24gaChzZWwsIGIsIGMpIHtcbiAgICB2YXIgZGF0YSA9IHt9LCBjaGlsZHJlbiwgdGV4dCwgaTtcbiAgICBpZiAoYyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGRhdGEgPSBiO1xuICAgICAgICBpZiAoaXMuYXJyYXkoYykpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gYztcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChpcy5wcmltaXRpdmUoYykpIHtcbiAgICAgICAgICAgIHRleHQgPSBjO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKGMgJiYgYy5zZWwpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gW2NdO1xuICAgICAgICB9XG4gICAgfVxuICAgIGVsc2UgaWYgKGIgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICBpZiAoaXMuYXJyYXkoYikpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gYjtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChpcy5wcmltaXRpdmUoYikpIHtcbiAgICAgICAgICAgIHRleHQgPSBiO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKGIgJiYgYi5zZWwpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gW2JdO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgZGF0YSA9IGI7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaWYgKGlzLmFycmF5KGNoaWxkcmVuKSkge1xuICAgICAgICBmb3IgKGkgPSAwOyBpIDwgY2hpbGRyZW4ubGVuZ3RoOyArK2kpIHtcbiAgICAgICAgICAgIGlmIChpcy5wcmltaXRpdmUoY2hpbGRyZW5baV0pKVxuICAgICAgICAgICAgICAgIGNoaWxkcmVuW2ldID0gdm5vZGVfMS52bm9kZSh1bmRlZmluZWQsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBjaGlsZHJlbltpXSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaWYgKHNlbFswXSA9PT0gJ3MnICYmIHNlbFsxXSA9PT0gJ3YnICYmIHNlbFsyXSA9PT0gJ2cnICYmXG4gICAgICAgIChzZWwubGVuZ3RoID09PSAzIHx8IHNlbFszXSA9PT0gJy4nIHx8IHNlbFszXSA9PT0gJyMnKSkge1xuICAgICAgICBhZGROUyhkYXRhLCBjaGlsZHJlbiwgc2VsKTtcbiAgICB9XG4gICAgcmV0dXJuIHZub2RlXzEudm5vZGUoc2VsLCBkYXRhLCBjaGlsZHJlbiwgdGV4dCwgdW5kZWZpbmVkKTtcbn1cbmV4cG9ydHMuaCA9IGg7XG47XG5leHBvcnRzLmRlZmF1bHQgPSBoO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9aC5qcy5tYXAiLCJcInVzZSBzdHJpY3RcIjtcbk9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcIl9fZXNNb2R1bGVcIiwgeyB2YWx1ZTogdHJ1ZSB9KTtcbmZ1bmN0aW9uIGNyZWF0ZUVsZW1lbnQodGFnTmFtZSkge1xuICAgIHJldHVybiBkb2N1bWVudC5jcmVhdGVFbGVtZW50KHRhZ05hbWUpO1xufVxuZnVuY3Rpb24gY3JlYXRlRWxlbWVudE5TKG5hbWVzcGFjZVVSSSwgcXVhbGlmaWVkTmFtZSkge1xuICAgIHJldHVybiBkb2N1bWVudC5jcmVhdGVFbGVtZW50TlMobmFtZXNwYWNlVVJJLCBxdWFsaWZpZWROYW1lKTtcbn1cbmZ1bmN0aW9uIGNyZWF0ZVRleHROb2RlKHRleHQpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUodGV4dCk7XG59XG5mdW5jdGlvbiBjcmVhdGVDb21tZW50KHRleHQpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlQ29tbWVudCh0ZXh0KTtcbn1cbmZ1bmN0aW9uIGluc2VydEJlZm9yZShwYXJlbnROb2RlLCBuZXdOb2RlLCByZWZlcmVuY2VOb2RlKSB7XG4gICAgcGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUobmV3Tm9kZSwgcmVmZXJlbmNlTm9kZSk7XG59XG5mdW5jdGlvbiByZW1vdmVDaGlsZChub2RlLCBjaGlsZCkge1xuICAgIG5vZGUucmVtb3ZlQ2hpbGQoY2hpbGQpO1xufVxuZnVuY3Rpb24gYXBwZW5kQ2hpbGQobm9kZSwgY2hpbGQpIHtcbiAgICBub2RlLmFwcGVuZENoaWxkKGNoaWxkKTtcbn1cbmZ1bmN0aW9uIHBhcmVudE5vZGUobm9kZSkge1xuICAgIHJldHVybiBub2RlLnBhcmVudE5vZGU7XG59XG5mdW5jdGlvbiBuZXh0U2libGluZyhub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUubmV4dFNpYmxpbmc7XG59XG5mdW5jdGlvbiB0YWdOYW1lKGVsbSkge1xuICAgIHJldHVybiBlbG0udGFnTmFtZTtcbn1cbmZ1bmN0aW9uIHNldFRleHRDb250ZW50KG5vZGUsIHRleHQpIHtcbiAgICBub2RlLnRleHRDb250ZW50ID0gdGV4dDtcbn1cbmZ1bmN0aW9uIGdldFRleHRDb250ZW50KG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS50ZXh0Q29udGVudDtcbn1cbmZ1bmN0aW9uIGlzRWxlbWVudChub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUubm9kZVR5cGUgPT09IDE7XG59XG5mdW5jdGlvbiBpc1RleHQobm9kZSkge1xuICAgIHJldHVybiBub2RlLm5vZGVUeXBlID09PSAzO1xufVxuZnVuY3Rpb24gaXNDb21tZW50KG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS5ub2RlVHlwZSA9PT0gODtcbn1cbmV4cG9ydHMuaHRtbERvbUFwaSA9IHtcbiAgICBjcmVhdGVFbGVtZW50OiBjcmVhdGVFbGVtZW50LFxuICAgIGNyZWF0ZUVsZW1lbnROUzogY3JlYXRlRWxlbWVudE5TLFxuICAgIGNyZWF0ZVRleHROb2RlOiBjcmVhdGVUZXh0Tm9kZSxcbiAgICBjcmVhdGVDb21tZW50OiBjcmVhdGVDb21tZW50LFxuICAgIGluc2VydEJlZm9yZTogaW5zZXJ0QmVmb3JlLFxuICAgIHJlbW92ZUNoaWxkOiByZW1vdmVDaGlsZCxcbiAgICBhcHBlbmRDaGlsZDogYXBwZW5kQ2hpbGQsXG4gICAgcGFyZW50Tm9kZTogcGFyZW50Tm9kZSxcbiAgICBuZXh0U2libGluZzogbmV4dFNpYmxpbmcsXG4gICAgdGFnTmFtZTogdGFnTmFtZSxcbiAgICBzZXRUZXh0Q29udGVudDogc2V0VGV4dENvbnRlbnQsXG4gICAgZ2V0VGV4dENvbnRlbnQ6IGdldFRleHRDb250ZW50LFxuICAgIGlzRWxlbWVudDogaXNFbGVtZW50LFxuICAgIGlzVGV4dDogaXNUZXh0LFxuICAgIGlzQ29tbWVudDogaXNDb21tZW50LFxufTtcbmV4cG9ydHMuZGVmYXVsdCA9IGV4cG9ydHMuaHRtbERvbUFwaTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWh0bWxkb21hcGkuanMubWFwIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5leHBvcnRzLmFycmF5ID0gQXJyYXkuaXNBcnJheTtcbmZ1bmN0aW9uIHByaW1pdGl2ZShzKSB7XG4gICAgcmV0dXJuIHR5cGVvZiBzID09PSAnc3RyaW5nJyB8fCB0eXBlb2YgcyA9PT0gJ251bWJlcic7XG59XG5leHBvcnRzLnByaW1pdGl2ZSA9IHByaW1pdGl2ZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWlzLmpzLm1hcCIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIHZub2RlXzEgPSByZXF1aXJlKFwiLi92bm9kZVwiKTtcbnZhciBpcyA9IHJlcXVpcmUoXCIuL2lzXCIpO1xudmFyIGh0bWxkb21hcGlfMSA9IHJlcXVpcmUoXCIuL2h0bWxkb21hcGlcIik7XG5mdW5jdGlvbiBpc1VuZGVmKHMpIHsgcmV0dXJuIHMgPT09IHVuZGVmaW5lZDsgfVxuZnVuY3Rpb24gaXNEZWYocykgeyByZXR1cm4gcyAhPT0gdW5kZWZpbmVkOyB9XG52YXIgZW1wdHlOb2RlID0gdm5vZGVfMS5kZWZhdWx0KCcnLCB7fSwgW10sIHVuZGVmaW5lZCwgdW5kZWZpbmVkKTtcbmZ1bmN0aW9uIHNhbWVWbm9kZSh2bm9kZTEsIHZub2RlMikge1xuICAgIHJldHVybiB2bm9kZTEua2V5ID09PSB2bm9kZTIua2V5ICYmIHZub2RlMS5zZWwgPT09IHZub2RlMi5zZWw7XG59XG5mdW5jdGlvbiBpc1Zub2RlKHZub2RlKSB7XG4gICAgcmV0dXJuIHZub2RlLnNlbCAhPT0gdW5kZWZpbmVkO1xufVxuZnVuY3Rpb24gY3JlYXRlS2V5VG9PbGRJZHgoY2hpbGRyZW4sIGJlZ2luSWR4LCBlbmRJZHgpIHtcbiAgICB2YXIgaSwgbWFwID0ge30sIGtleSwgY2g7XG4gICAgZm9yIChpID0gYmVnaW5JZHg7IGkgPD0gZW5kSWR4OyArK2kpIHtcbiAgICAgICAgY2ggPSBjaGlsZHJlbltpXTtcbiAgICAgICAgaWYgKGNoICE9IG51bGwpIHtcbiAgICAgICAgICAgIGtleSA9IGNoLmtleTtcbiAgICAgICAgICAgIGlmIChrZXkgIT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgICAgICBtYXBba2V5XSA9IGk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIG1hcDtcbn1cbnZhciBob29rcyA9IFsnY3JlYXRlJywgJ3VwZGF0ZScsICdyZW1vdmUnLCAnZGVzdHJveScsICdwcmUnLCAncG9zdCddO1xudmFyIGhfMSA9IHJlcXVpcmUoXCIuL2hcIik7XG5leHBvcnRzLmggPSBoXzEuaDtcbnZhciB0aHVua18xID0gcmVxdWlyZShcIi4vdGh1bmtcIik7XG5leHBvcnRzLnRodW5rID0gdGh1bmtfMS50aHVuaztcbmZ1bmN0aW9uIGluaXQobW9kdWxlcywgZG9tQXBpKSB7XG4gICAgdmFyIGksIGosIGNicyA9IHt9O1xuICAgIHZhciBhcGkgPSBkb21BcGkgIT09IHVuZGVmaW5lZCA/IGRvbUFwaSA6IGh0bWxkb21hcGlfMS5kZWZhdWx0O1xuICAgIGZvciAoaSA9IDA7IGkgPCBob29rcy5sZW5ndGg7ICsraSkge1xuICAgICAgICBjYnNbaG9va3NbaV1dID0gW107XG4gICAgICAgIGZvciAoaiA9IDA7IGogPCBtb2R1bGVzLmxlbmd0aDsgKytqKSB7XG4gICAgICAgICAgICB2YXIgaG9vayA9IG1vZHVsZXNbal1baG9va3NbaV1dO1xuICAgICAgICAgICAgaWYgKGhvb2sgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIGNic1tob29rc1tpXV0ucHVzaChob29rKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICBmdW5jdGlvbiBlbXB0eU5vZGVBdChlbG0pIHtcbiAgICAgICAgdmFyIGlkID0gZWxtLmlkID8gJyMnICsgZWxtLmlkIDogJyc7XG4gICAgICAgIHZhciBjID0gZWxtLmNsYXNzTmFtZSA/ICcuJyArIGVsbS5jbGFzc05hbWUuc3BsaXQoJyAnKS5qb2luKCcuJykgOiAnJztcbiAgICAgICAgcmV0dXJuIHZub2RlXzEuZGVmYXVsdChhcGkudGFnTmFtZShlbG0pLnRvTG93ZXJDYXNlKCkgKyBpZCArIGMsIHt9LCBbXSwgdW5kZWZpbmVkLCBlbG0pO1xuICAgIH1cbiAgICBmdW5jdGlvbiBjcmVhdGVSbUNiKGNoaWxkRWxtLCBsaXN0ZW5lcnMpIHtcbiAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIHJtQ2IoKSB7XG4gICAgICAgICAgICBpZiAoLS1saXN0ZW5lcnMgPT09IDApIHtcbiAgICAgICAgICAgICAgICB2YXIgcGFyZW50XzEgPSBhcGkucGFyZW50Tm9kZShjaGlsZEVsbSk7XG4gICAgICAgICAgICAgICAgYXBpLnJlbW92ZUNoaWxkKHBhcmVudF8xLCBjaGlsZEVsbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfVxuICAgIGZ1bmN0aW9uIGNyZWF0ZUVsbSh2bm9kZSwgaW5zZXJ0ZWRWbm9kZVF1ZXVlKSB7XG4gICAgICAgIHZhciBpLCBkYXRhID0gdm5vZGUuZGF0YTtcbiAgICAgICAgaWYgKGRhdGEgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgaWYgKGlzRGVmKGkgPSBkYXRhLmhvb2spICYmIGlzRGVmKGkgPSBpLmluaXQpKSB7XG4gICAgICAgICAgICAgICAgaSh2bm9kZSk7XG4gICAgICAgICAgICAgICAgZGF0YSA9IHZub2RlLmRhdGE7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdmFyIGNoaWxkcmVuID0gdm5vZGUuY2hpbGRyZW4sIHNlbCA9IHZub2RlLnNlbDtcbiAgICAgICAgaWYgKHNlbCA9PT0gJyEnKSB7XG4gICAgICAgICAgICBpZiAoaXNVbmRlZih2bm9kZS50ZXh0KSkge1xuICAgICAgICAgICAgICAgIHZub2RlLnRleHQgPSAnJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZub2RlLmVsbSA9IGFwaS5jcmVhdGVDb21tZW50KHZub2RlLnRleHQpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKHNlbCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAvLyBQYXJzZSBzZWxlY3RvclxuICAgICAgICAgICAgdmFyIGhhc2hJZHggPSBzZWwuaW5kZXhPZignIycpO1xuICAgICAgICAgICAgdmFyIGRvdElkeCA9IHNlbC5pbmRleE9mKCcuJywgaGFzaElkeCk7XG4gICAgICAgICAgICB2YXIgaGFzaCA9IGhhc2hJZHggPiAwID8gaGFzaElkeCA6IHNlbC5sZW5ndGg7XG4gICAgICAgICAgICB2YXIgZG90ID0gZG90SWR4ID4gMCA/IGRvdElkeCA6IHNlbC5sZW5ndGg7XG4gICAgICAgICAgICB2YXIgdGFnID0gaGFzaElkeCAhPT0gLTEgfHwgZG90SWR4ICE9PSAtMSA/IHNlbC5zbGljZSgwLCBNYXRoLm1pbihoYXNoLCBkb3QpKSA6IHNlbDtcbiAgICAgICAgICAgIHZhciBlbG0gPSB2bm9kZS5lbG0gPSBpc0RlZihkYXRhKSAmJiBpc0RlZihpID0gZGF0YS5ucykgPyBhcGkuY3JlYXRlRWxlbWVudE5TKGksIHRhZylcbiAgICAgICAgICAgICAgICA6IGFwaS5jcmVhdGVFbGVtZW50KHRhZyk7XG4gICAgICAgICAgICBpZiAoaGFzaCA8IGRvdClcbiAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlKCdpZCcsIHNlbC5zbGljZShoYXNoICsgMSwgZG90KSk7XG4gICAgICAgICAgICBpZiAoZG90SWR4ID4gMClcbiAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlKCdjbGFzcycsIHNlbC5zbGljZShkb3QgKyAxKS5yZXBsYWNlKC9cXC4vZywgJyAnKSk7XG4gICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgY2JzLmNyZWF0ZS5sZW5ndGg7ICsraSlcbiAgICAgICAgICAgICAgICBjYnMuY3JlYXRlW2ldKGVtcHR5Tm9kZSwgdm5vZGUpO1xuICAgICAgICAgICAgaWYgKGlzLmFycmF5KGNoaWxkcmVuKSkge1xuICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBjaGlsZHJlbi5sZW5ndGg7ICsraSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgY2ggPSBjaGlsZHJlbltpXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNoICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwaS5hcHBlbmRDaGlsZChlbG0sIGNyZWF0ZUVsbShjaCwgaW5zZXJ0ZWRWbm9kZVF1ZXVlKSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChpcy5wcmltaXRpdmUodm5vZGUudGV4dCkpIHtcbiAgICAgICAgICAgICAgICBhcGkuYXBwZW5kQ2hpbGQoZWxtLCBhcGkuY3JlYXRlVGV4dE5vZGUodm5vZGUudGV4dCkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaSA9IHZub2RlLmRhdGEuaG9vazsgLy8gUmV1c2UgdmFyaWFibGVcbiAgICAgICAgICAgIGlmIChpc0RlZihpKSkge1xuICAgICAgICAgICAgICAgIGlmIChpLmNyZWF0ZSlcbiAgICAgICAgICAgICAgICAgICAgaS5jcmVhdGUoZW1wdHlOb2RlLCB2bm9kZSk7XG4gICAgICAgICAgICAgICAgaWYgKGkuaW5zZXJ0KVxuICAgICAgICAgICAgICAgICAgICBpbnNlcnRlZFZub2RlUXVldWUucHVzaCh2bm9kZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICB2bm9kZS5lbG0gPSBhcGkuY3JlYXRlVGV4dE5vZGUodm5vZGUudGV4dCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHZub2RlLmVsbTtcbiAgICB9XG4gICAgZnVuY3Rpb24gYWRkVm5vZGVzKHBhcmVudEVsbSwgYmVmb3JlLCB2bm9kZXMsIHN0YXJ0SWR4LCBlbmRJZHgsIGluc2VydGVkVm5vZGVRdWV1ZSkge1xuICAgICAgICBmb3IgKDsgc3RhcnRJZHggPD0gZW5kSWR4OyArK3N0YXJ0SWR4KSB7XG4gICAgICAgICAgICB2YXIgY2ggPSB2bm9kZXNbc3RhcnRJZHhdO1xuICAgICAgICAgICAgaWYgKGNoICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBhcGkuaW5zZXJ0QmVmb3JlKHBhcmVudEVsbSwgY3JlYXRlRWxtKGNoLCBpbnNlcnRlZFZub2RlUXVldWUpLCBiZWZvcmUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIGZ1bmN0aW9uIGludm9rZURlc3Ryb3lIb29rKHZub2RlKSB7XG4gICAgICAgIHZhciBpLCBqLCBkYXRhID0gdm5vZGUuZGF0YTtcbiAgICAgICAgaWYgKGRhdGEgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgaWYgKGlzRGVmKGkgPSBkYXRhLmhvb2spICYmIGlzRGVmKGkgPSBpLmRlc3Ryb3kpKVxuICAgICAgICAgICAgICAgIGkodm5vZGUpO1xuICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IGNicy5kZXN0cm95Lmxlbmd0aDsgKytpKVxuICAgICAgICAgICAgICAgIGNicy5kZXN0cm95W2ldKHZub2RlKTtcbiAgICAgICAgICAgIGlmICh2bm9kZS5jaGlsZHJlbiAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgZm9yIChqID0gMDsgaiA8IHZub2RlLmNoaWxkcmVuLmxlbmd0aDsgKytqKSB7XG4gICAgICAgICAgICAgICAgICAgIGkgPSB2bm9kZS5jaGlsZHJlbltqXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGkgIT0gbnVsbCAmJiB0eXBlb2YgaSAhPT0gXCJzdHJpbmdcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgaW52b2tlRGVzdHJveUhvb2soaSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gcmVtb3ZlVm5vZGVzKHBhcmVudEVsbSwgdm5vZGVzLCBzdGFydElkeCwgZW5kSWR4KSB7XG4gICAgICAgIGZvciAoOyBzdGFydElkeCA8PSBlbmRJZHg7ICsrc3RhcnRJZHgpIHtcbiAgICAgICAgICAgIHZhciBpXzEgPSB2b2lkIDAsIGxpc3RlbmVycyA9IHZvaWQgMCwgcm0gPSB2b2lkIDAsIGNoID0gdm5vZGVzW3N0YXJ0SWR4XTtcbiAgICAgICAgICAgIGlmIChjaCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgaWYgKGlzRGVmKGNoLnNlbCkpIHtcbiAgICAgICAgICAgICAgICAgICAgaW52b2tlRGVzdHJveUhvb2soY2gpO1xuICAgICAgICAgICAgICAgICAgICBsaXN0ZW5lcnMgPSBjYnMucmVtb3ZlLmxlbmd0aCArIDE7XG4gICAgICAgICAgICAgICAgICAgIHJtID0gY3JlYXRlUm1DYihjaC5lbG0sIGxpc3RlbmVycyk7XG4gICAgICAgICAgICAgICAgICAgIGZvciAoaV8xID0gMDsgaV8xIDwgY2JzLnJlbW92ZS5sZW5ndGg7ICsraV8xKVxuICAgICAgICAgICAgICAgICAgICAgICAgY2JzLnJlbW92ZVtpXzFdKGNoLCBybSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChpc0RlZihpXzEgPSBjaC5kYXRhKSAmJiBpc0RlZihpXzEgPSBpXzEuaG9vaykgJiYgaXNEZWYoaV8xID0gaV8xLnJlbW92ZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlfMShjaCwgcm0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcm0oKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgYXBpLnJlbW92ZUNoaWxkKHBhcmVudEVsbSwgY2guZWxtKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gdXBkYXRlQ2hpbGRyZW4ocGFyZW50RWxtLCBvbGRDaCwgbmV3Q2gsIGluc2VydGVkVm5vZGVRdWV1ZSkge1xuICAgICAgICB2YXIgb2xkU3RhcnRJZHggPSAwLCBuZXdTdGFydElkeCA9IDA7XG4gICAgICAgIHZhciBvbGRFbmRJZHggPSBvbGRDaC5sZW5ndGggLSAxO1xuICAgICAgICB2YXIgb2xkU3RhcnRWbm9kZSA9IG9sZENoWzBdO1xuICAgICAgICB2YXIgb2xkRW5kVm5vZGUgPSBvbGRDaFtvbGRFbmRJZHhdO1xuICAgICAgICB2YXIgbmV3RW5kSWR4ID0gbmV3Q2gubGVuZ3RoIC0gMTtcbiAgICAgICAgdmFyIG5ld1N0YXJ0Vm5vZGUgPSBuZXdDaFswXTtcbiAgICAgICAgdmFyIG5ld0VuZFZub2RlID0gbmV3Q2hbbmV3RW5kSWR4XTtcbiAgICAgICAgdmFyIG9sZEtleVRvSWR4O1xuICAgICAgICB2YXIgaWR4SW5PbGQ7XG4gICAgICAgIHZhciBlbG1Ub01vdmU7XG4gICAgICAgIHZhciBiZWZvcmU7XG4gICAgICAgIHdoaWxlIChvbGRTdGFydElkeCA8PSBvbGRFbmRJZHggJiYgbmV3U3RhcnRJZHggPD0gbmV3RW5kSWR4KSB7XG4gICAgICAgICAgICBpZiAob2xkU3RhcnRWbm9kZSA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgb2xkU3RhcnRWbm9kZSA9IG9sZENoWysrb2xkU3RhcnRJZHhdOyAvLyBWbm9kZSBtaWdodCBoYXZlIGJlZW4gbW92ZWQgbGVmdFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAob2xkRW5kVm5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIG9sZEVuZFZub2RlID0gb2xkQ2hbLS1vbGRFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAobmV3U3RhcnRWbm9kZSA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgbmV3U3RhcnRWbm9kZSA9IG5ld0NoWysrbmV3U3RhcnRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAobmV3RW5kVm5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIG5ld0VuZFZub2RlID0gbmV3Q2hbLS1uZXdFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoc2FtZVZub2RlKG9sZFN0YXJ0Vm5vZGUsIG5ld1N0YXJ0Vm5vZGUpKSB7XG4gICAgICAgICAgICAgICAgcGF0Y2hWbm9kZShvbGRTdGFydFZub2RlLCBuZXdTdGFydFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgICAgIG9sZFN0YXJ0Vm5vZGUgPSBvbGRDaFsrK29sZFN0YXJ0SWR4XTtcbiAgICAgICAgICAgICAgICBuZXdTdGFydFZub2RlID0gbmV3Q2hbKytuZXdTdGFydElkeF07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChzYW1lVm5vZGUob2xkRW5kVm5vZGUsIG5ld0VuZFZub2RlKSkge1xuICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUob2xkRW5kVm5vZGUsIG5ld0VuZFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgICAgIG9sZEVuZFZub2RlID0gb2xkQ2hbLS1vbGRFbmRJZHhdO1xuICAgICAgICAgICAgICAgIG5ld0VuZFZub2RlID0gbmV3Q2hbLS1uZXdFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoc2FtZVZub2RlKG9sZFN0YXJ0Vm5vZGUsIG5ld0VuZFZub2RlKSkge1xuICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUob2xkU3RhcnRWbm9kZSwgbmV3RW5kVm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIG9sZFN0YXJ0Vm5vZGUuZWxtLCBhcGkubmV4dFNpYmxpbmcob2xkRW5kVm5vZGUuZWxtKSk7XG4gICAgICAgICAgICAgICAgb2xkU3RhcnRWbm9kZSA9IG9sZENoWysrb2xkU3RhcnRJZHhdO1xuICAgICAgICAgICAgICAgIG5ld0VuZFZub2RlID0gbmV3Q2hbLS1uZXdFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoc2FtZVZub2RlKG9sZEVuZFZub2RlLCBuZXdTdGFydFZub2RlKSkge1xuICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUob2xkRW5kVm5vZGUsIG5ld1N0YXJ0Vm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIG9sZEVuZFZub2RlLmVsbSwgb2xkU3RhcnRWbm9kZS5lbG0pO1xuICAgICAgICAgICAgICAgIG9sZEVuZFZub2RlID0gb2xkQ2hbLS1vbGRFbmRJZHhdO1xuICAgICAgICAgICAgICAgIG5ld1N0YXJ0Vm5vZGUgPSBuZXdDaFsrK25ld1N0YXJ0SWR4XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChvbGRLZXlUb0lkeCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIG9sZEtleVRvSWR4ID0gY3JlYXRlS2V5VG9PbGRJZHgob2xkQ2gsIG9sZFN0YXJ0SWR4LCBvbGRFbmRJZHgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZHhJbk9sZCA9IG9sZEtleVRvSWR4W25ld1N0YXJ0Vm5vZGUua2V5XTtcbiAgICAgICAgICAgICAgICBpZiAoaXNVbmRlZihpZHhJbk9sZCkpIHtcbiAgICAgICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIGNyZWF0ZUVsbShuZXdTdGFydFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpLCBvbGRTdGFydFZub2RlLmVsbSk7XG4gICAgICAgICAgICAgICAgICAgIG5ld1N0YXJ0Vm5vZGUgPSBuZXdDaFsrK25ld1N0YXJ0SWR4XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGVsbVRvTW92ZSA9IG9sZENoW2lkeEluT2xkXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGVsbVRvTW92ZS5zZWwgIT09IG5ld1N0YXJ0Vm5vZGUuc2VsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhcGkuaW5zZXJ0QmVmb3JlKHBhcmVudEVsbSwgY3JlYXRlRWxtKG5ld1N0YXJ0Vm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSksIG9sZFN0YXJ0Vm5vZGUuZWxtKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUoZWxtVG9Nb3ZlLCBuZXdTdGFydFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgb2xkQ2hbaWR4SW5PbGRdID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIGVsbVRvTW92ZS5lbG0sIG9sZFN0YXJ0Vm5vZGUuZWxtKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBuZXdTdGFydFZub2RlID0gbmV3Q2hbKytuZXdTdGFydElkeF07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChvbGRTdGFydElkeCA+IG9sZEVuZElkeCkge1xuICAgICAgICAgICAgYmVmb3JlID0gbmV3Q2hbbmV3RW5kSWR4ICsgMV0gPT0gbnVsbCA/IG51bGwgOiBuZXdDaFtuZXdFbmRJZHggKyAxXS5lbG07XG4gICAgICAgICAgICBhZGRWbm9kZXMocGFyZW50RWxtLCBiZWZvcmUsIG5ld0NoLCBuZXdTdGFydElkeCwgbmV3RW5kSWR4LCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKG5ld1N0YXJ0SWR4ID4gbmV3RW5kSWR4KSB7XG4gICAgICAgICAgICByZW1vdmVWbm9kZXMocGFyZW50RWxtLCBvbGRDaCwgb2xkU3RhcnRJZHgsIG9sZEVuZElkeCk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gcGF0Y2hWbm9kZShvbGRWbm9kZSwgdm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSkge1xuICAgICAgICB2YXIgaSwgaG9vaztcbiAgICAgICAgaWYgKGlzRGVmKGkgPSB2bm9kZS5kYXRhKSAmJiBpc0RlZihob29rID0gaS5ob29rKSAmJiBpc0RlZihpID0gaG9vay5wcmVwYXRjaCkpIHtcbiAgICAgICAgICAgIGkob2xkVm5vZGUsIHZub2RlKTtcbiAgICAgICAgfVxuICAgICAgICB2YXIgZWxtID0gdm5vZGUuZWxtID0gb2xkVm5vZGUuZWxtO1xuICAgICAgICB2YXIgb2xkQ2ggPSBvbGRWbm9kZS5jaGlsZHJlbjtcbiAgICAgICAgdmFyIGNoID0gdm5vZGUuY2hpbGRyZW47XG4gICAgICAgIGlmIChvbGRWbm9kZSA9PT0gdm5vZGUpXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIGlmICh2bm9kZS5kYXRhICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBjYnMudXBkYXRlLmxlbmd0aDsgKytpKVxuICAgICAgICAgICAgICAgIGNicy51cGRhdGVbaV0ob2xkVm5vZGUsIHZub2RlKTtcbiAgICAgICAgICAgIGkgPSB2bm9kZS5kYXRhLmhvb2s7XG4gICAgICAgICAgICBpZiAoaXNEZWYoaSkgJiYgaXNEZWYoaSA9IGkudXBkYXRlKSlcbiAgICAgICAgICAgICAgICBpKG9sZFZub2RlLCB2bm9kZSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGlzVW5kZWYodm5vZGUudGV4dCkpIHtcbiAgICAgICAgICAgIGlmIChpc0RlZihvbGRDaCkgJiYgaXNEZWYoY2gpKSB7XG4gICAgICAgICAgICAgICAgaWYgKG9sZENoICE9PSBjaClcbiAgICAgICAgICAgICAgICAgICAgdXBkYXRlQ2hpbGRyZW4oZWxtLCBvbGRDaCwgY2gsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChpc0RlZihjaCkpIHtcbiAgICAgICAgICAgICAgICBpZiAoaXNEZWYob2xkVm5vZGUudGV4dCkpXG4gICAgICAgICAgICAgICAgICAgIGFwaS5zZXRUZXh0Q29udGVudChlbG0sICcnKTtcbiAgICAgICAgICAgICAgICBhZGRWbm9kZXMoZWxtLCBudWxsLCBjaCwgMCwgY2gubGVuZ3RoIC0gMSwgaW5zZXJ0ZWRWbm9kZVF1ZXVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGlzRGVmKG9sZENoKSkge1xuICAgICAgICAgICAgICAgIHJlbW92ZVZub2RlcyhlbG0sIG9sZENoLCAwLCBvbGRDaC5sZW5ndGggLSAxKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGlzRGVmKG9sZFZub2RlLnRleHQpKSB7XG4gICAgICAgICAgICAgICAgYXBpLnNldFRleHRDb250ZW50KGVsbSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKG9sZFZub2RlLnRleHQgIT09IHZub2RlLnRleHQpIHtcbiAgICAgICAgICAgIGFwaS5zZXRUZXh0Q29udGVudChlbG0sIHZub2RlLnRleHQpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpc0RlZihob29rKSAmJiBpc0RlZihpID0gaG9vay5wb3N0cGF0Y2gpKSB7XG4gICAgICAgICAgICBpKG9sZFZub2RlLCB2bm9kZSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGZ1bmN0aW9uIHBhdGNoKG9sZFZub2RlLCB2bm9kZSkge1xuICAgICAgICB2YXIgaSwgZWxtLCBwYXJlbnQ7XG4gICAgICAgIHZhciBpbnNlcnRlZFZub2RlUXVldWUgPSBbXTtcbiAgICAgICAgZm9yIChpID0gMDsgaSA8IGNicy5wcmUubGVuZ3RoOyArK2kpXG4gICAgICAgICAgICBjYnMucHJlW2ldKCk7XG4gICAgICAgIGlmICghaXNWbm9kZShvbGRWbm9kZSkpIHtcbiAgICAgICAgICAgIG9sZFZub2RlID0gZW1wdHlOb2RlQXQob2xkVm5vZGUpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChzYW1lVm5vZGUob2xkVm5vZGUsIHZub2RlKSkge1xuICAgICAgICAgICAgcGF0Y2hWbm9kZShvbGRWbm9kZSwgdm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBlbG0gPSBvbGRWbm9kZS5lbG07XG4gICAgICAgICAgICBwYXJlbnQgPSBhcGkucGFyZW50Tm9kZShlbG0pO1xuICAgICAgICAgICAgY3JlYXRlRWxtKHZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgaWYgKHBhcmVudCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIGFwaS5pbnNlcnRCZWZvcmUocGFyZW50LCB2bm9kZS5lbG0sIGFwaS5uZXh0U2libGluZyhlbG0pKTtcbiAgICAgICAgICAgICAgICByZW1vdmVWbm9kZXMocGFyZW50LCBbb2xkVm5vZGVdLCAwLCAwKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBmb3IgKGkgPSAwOyBpIDwgaW5zZXJ0ZWRWbm9kZVF1ZXVlLmxlbmd0aDsgKytpKSB7XG4gICAgICAgICAgICBpbnNlcnRlZFZub2RlUXVldWVbaV0uZGF0YS5ob29rLmluc2VydChpbnNlcnRlZFZub2RlUXVldWVbaV0pO1xuICAgICAgICB9XG4gICAgICAgIGZvciAoaSA9IDA7IGkgPCBjYnMucG9zdC5sZW5ndGg7ICsraSlcbiAgICAgICAgICAgIGNicy5wb3N0W2ldKCk7XG4gICAgICAgIHJldHVybiB2bm9kZTtcbiAgICB9O1xufVxuZXhwb3J0cy5pbml0ID0gaW5pdDtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNuYWJiZG9tLmpzLm1hcCIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIGhfMSA9IHJlcXVpcmUoXCIuL2hcIik7XG5mdW5jdGlvbiBjb3B5VG9UaHVuayh2bm9kZSwgdGh1bmspIHtcbiAgICB0aHVuay5lbG0gPSB2bm9kZS5lbG07XG4gICAgdm5vZGUuZGF0YS5mbiA9IHRodW5rLmRhdGEuZm47XG4gICAgdm5vZGUuZGF0YS5hcmdzID0gdGh1bmsuZGF0YS5hcmdzO1xuICAgIHRodW5rLmRhdGEgPSB2bm9kZS5kYXRhO1xuICAgIHRodW5rLmNoaWxkcmVuID0gdm5vZGUuY2hpbGRyZW47XG4gICAgdGh1bmsudGV4dCA9IHZub2RlLnRleHQ7XG4gICAgdGh1bmsuZWxtID0gdm5vZGUuZWxtO1xufVxuZnVuY3Rpb24gaW5pdCh0aHVuaykge1xuICAgIHZhciBjdXIgPSB0aHVuay5kYXRhO1xuICAgIHZhciB2bm9kZSA9IGN1ci5mbi5hcHBseSh1bmRlZmluZWQsIGN1ci5hcmdzKTtcbiAgICBjb3B5VG9UaHVuayh2bm9kZSwgdGh1bmspO1xufVxuZnVuY3Rpb24gcHJlcGF0Y2gob2xkVm5vZGUsIHRodW5rKSB7XG4gICAgdmFyIGksIG9sZCA9IG9sZFZub2RlLmRhdGEsIGN1ciA9IHRodW5rLmRhdGE7XG4gICAgdmFyIG9sZEFyZ3MgPSBvbGQuYXJncywgYXJncyA9IGN1ci5hcmdzO1xuICAgIGlmIChvbGQuZm4gIT09IGN1ci5mbiB8fCBvbGRBcmdzLmxlbmd0aCAhPT0gYXJncy5sZW5ndGgpIHtcbiAgICAgICAgY29weVRvVGh1bmsoY3VyLmZuLmFwcGx5KHVuZGVmaW5lZCwgYXJncyksIHRodW5rKTtcbiAgICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICBmb3IgKGkgPSAwOyBpIDwgYXJncy5sZW5ndGg7ICsraSkge1xuICAgICAgICBpZiAob2xkQXJnc1tpXSAhPT0gYXJnc1tpXSkge1xuICAgICAgICAgICAgY29weVRvVGh1bmsoY3VyLmZuLmFwcGx5KHVuZGVmaW5lZCwgYXJncyksIHRodW5rKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgIH1cbiAgICBjb3B5VG9UaHVuayhvbGRWbm9kZSwgdGh1bmspO1xufVxuZXhwb3J0cy50aHVuayA9IGZ1bmN0aW9uIHRodW5rKHNlbCwga2V5LCBmbiwgYXJncykge1xuICAgIGlmIChhcmdzID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgYXJncyA9IGZuO1xuICAgICAgICBmbiA9IGtleTtcbiAgICAgICAga2V5ID0gdW5kZWZpbmVkO1xuICAgIH1cbiAgICByZXR1cm4gaF8xLmgoc2VsLCB7XG4gICAgICAgIGtleToga2V5LFxuICAgICAgICBob29rOiB7IGluaXQ6IGluaXQsIHByZXBhdGNoOiBwcmVwYXRjaCB9LFxuICAgICAgICBmbjogZm4sXG4gICAgICAgIGFyZ3M6IGFyZ3NcbiAgICB9KTtcbn07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLnRodW5rO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9dGh1bmsuanMubWFwIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiB2bm9kZShzZWwsIGRhdGEsIGNoaWxkcmVuLCB0ZXh0LCBlbG0pIHtcbiAgICB2YXIga2V5ID0gZGF0YSA9PT0gdW5kZWZpbmVkID8gdW5kZWZpbmVkIDogZGF0YS5rZXk7XG4gICAgcmV0dXJuIHsgc2VsOiBzZWwsIGRhdGE6IGRhdGEsIGNoaWxkcmVuOiBjaGlsZHJlbixcbiAgICAgICAgdGV4dDogdGV4dCwgZWxtOiBlbG0sIGtleToga2V5IH07XG59XG5leHBvcnRzLnZub2RlID0gdm5vZGU7XG5leHBvcnRzLmRlZmF1bHQgPSB2bm9kZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXZub2RlLmpzLm1hcCJdfQ==
  23383. /***/ }),
  23384. /***/ "./node_modules/snabbdom/dist/tovnode.js":
  23385. /*!***********************************************!*\
  23386. !*** ./node_modules/snabbdom/dist/tovnode.js ***!
  23387. \***********************************************/
  23388. /*! no static exports found */
  23389. /***/ (function(module, exports, __webpack_require__) {
  23390. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  23391. "use strict";
  23392. Object.defineProperty(exports, "__esModule", { value: true });
  23393. function createElement(tagName) {
  23394. return document.createElement(tagName);
  23395. }
  23396. function createElementNS(namespaceURI, qualifiedName) {
  23397. return document.createElementNS(namespaceURI, qualifiedName);
  23398. }
  23399. function createTextNode(text) {
  23400. return document.createTextNode(text);
  23401. }
  23402. function createComment(text) {
  23403. return document.createComment(text);
  23404. }
  23405. function insertBefore(parentNode, newNode, referenceNode) {
  23406. parentNode.insertBefore(newNode, referenceNode);
  23407. }
  23408. function removeChild(node, child) {
  23409. node.removeChild(child);
  23410. }
  23411. function appendChild(node, child) {
  23412. node.appendChild(child);
  23413. }
  23414. function parentNode(node) {
  23415. return node.parentNode;
  23416. }
  23417. function nextSibling(node) {
  23418. return node.nextSibling;
  23419. }
  23420. function tagName(elm) {
  23421. return elm.tagName;
  23422. }
  23423. function setTextContent(node, text) {
  23424. node.textContent = text;
  23425. }
  23426. function getTextContent(node) {
  23427. return node.textContent;
  23428. }
  23429. function isElement(node) {
  23430. return node.nodeType === 1;
  23431. }
  23432. function isText(node) {
  23433. return node.nodeType === 3;
  23434. }
  23435. function isComment(node) {
  23436. return node.nodeType === 8;
  23437. }
  23438. exports.htmlDomApi = {
  23439. createElement: createElement,
  23440. createElementNS: createElementNS,
  23441. createTextNode: createTextNode,
  23442. createComment: createComment,
  23443. insertBefore: insertBefore,
  23444. removeChild: removeChild,
  23445. appendChild: appendChild,
  23446. parentNode: parentNode,
  23447. nextSibling: nextSibling,
  23448. tagName: tagName,
  23449. setTextContent: setTextContent,
  23450. getTextContent: getTextContent,
  23451. isElement: isElement,
  23452. isText: isText,
  23453. isComment: isComment,
  23454. };
  23455. exports.default = exports.htmlDomApi;
  23456. },{}],2:[function(require,module,exports){
  23457. "use strict";
  23458. Object.defineProperty(exports, "__esModule", { value: true });
  23459. var vnode_1 = require("./vnode");
  23460. var htmldomapi_1 = require("./htmldomapi");
  23461. function toVNode(node, domApi) {
  23462. var api = domApi !== undefined ? domApi : htmldomapi_1.default;
  23463. var text;
  23464. if (api.isElement(node)) {
  23465. var id = node.id ? '#' + node.id : '';
  23466. var cn = node.getAttribute('class');
  23467. var c = cn ? '.' + cn.split(' ').join('.') : '';
  23468. var sel = api.tagName(node).toLowerCase() + id + c;
  23469. var attrs = {};
  23470. var children = [];
  23471. var name_1;
  23472. var i = void 0, n = void 0;
  23473. var elmAttrs = node.attributes;
  23474. var elmChildren = node.childNodes;
  23475. for (i = 0, n = elmAttrs.length; i < n; i++) {
  23476. name_1 = elmAttrs[i].nodeName;
  23477. if (name_1 !== 'id' && name_1 !== 'class') {
  23478. attrs[name_1] = elmAttrs[i].nodeValue;
  23479. }
  23480. }
  23481. for (i = 0, n = elmChildren.length; i < n; i++) {
  23482. children.push(toVNode(elmChildren[i]));
  23483. }
  23484. return vnode_1.default(sel, { attrs: attrs }, children, undefined, node);
  23485. }
  23486. else if (api.isText(node)) {
  23487. text = api.getTextContent(node);
  23488. return vnode_1.default(undefined, undefined, undefined, text, node);
  23489. }
  23490. else if (api.isComment(node)) {
  23491. text = api.getTextContent(node);
  23492. return vnode_1.default('!', {}, [], text, node);
  23493. }
  23494. else {
  23495. return vnode_1.default('', {}, [], undefined, undefined);
  23496. }
  23497. }
  23498. exports.toVNode = toVNode;
  23499. exports.default = toVNode;
  23500. },{"./htmldomapi":1,"./vnode":3}],3:[function(require,module,exports){
  23501. "use strict";
  23502. Object.defineProperty(exports, "__esModule", { value: true });
  23503. function vnode(sel, data, children, text, elm) {
  23504. var key = data === undefined ? undefined : data.key;
  23505. return { sel: sel, data: data, children: children,
  23506. text: text, elm: elm, key: key };
  23507. }
  23508. exports.vnode = vnode;
  23509. exports.default = vnode;
  23510. },{}]},{},[2])(2)
  23511. });
  23512. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwiaHRtbGRvbWFwaS5qcyIsInRvdm5vZGUuanMiLCJ2bm9kZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNqRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUMzQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiBjcmVhdGVFbGVtZW50KHRhZ05hbWUpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCh0YWdOYW1lKTtcbn1cbmZ1bmN0aW9uIGNyZWF0ZUVsZW1lbnROUyhuYW1lc3BhY2VVUkksIHF1YWxpZmllZE5hbWUpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlRWxlbWVudE5TKG5hbWVzcGFjZVVSSSwgcXVhbGlmaWVkTmFtZSk7XG59XG5mdW5jdGlvbiBjcmVhdGVUZXh0Tm9kZSh0ZXh0KSB7XG4gICAgcmV0dXJuIGRvY3VtZW50LmNyZWF0ZVRleHROb2RlKHRleHQpO1xufVxuZnVuY3Rpb24gY3JlYXRlQ29tbWVudCh0ZXh0KSB7XG4gICAgcmV0dXJuIGRvY3VtZW50LmNyZWF0ZUNvbW1lbnQodGV4dCk7XG59XG5mdW5jdGlvbiBpbnNlcnRCZWZvcmUocGFyZW50Tm9kZSwgbmV3Tm9kZSwgcmVmZXJlbmNlTm9kZSkge1xuICAgIHBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKG5ld05vZGUsIHJlZmVyZW5jZU5vZGUpO1xufVxuZnVuY3Rpb24gcmVtb3ZlQ2hpbGQobm9kZSwgY2hpbGQpIHtcbiAgICBub2RlLnJlbW92ZUNoaWxkKGNoaWxkKTtcbn1cbmZ1bmN0aW9uIGFwcGVuZENoaWxkKG5vZGUsIGNoaWxkKSB7XG4gICAgbm9kZS5hcHBlbmRDaGlsZChjaGlsZCk7XG59XG5mdW5jdGlvbiBwYXJlbnROb2RlKG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS5wYXJlbnROb2RlO1xufVxuZnVuY3Rpb24gbmV4dFNpYmxpbmcobm9kZSkge1xuICAgIHJldHVybiBub2RlLm5leHRTaWJsaW5nO1xufVxuZnVuY3Rpb24gdGFnTmFtZShlbG0pIHtcbiAgICByZXR1cm4gZWxtLnRhZ05hbWU7XG59XG5mdW5jdGlvbiBzZXRUZXh0Q29udGVudChub2RlLCB0ZXh0KSB7XG4gICAgbm9kZS50ZXh0Q29udGVudCA9IHRleHQ7XG59XG5mdW5jdGlvbiBnZXRUZXh0Q29udGVudChub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUudGV4dENvbnRlbnQ7XG59XG5mdW5jdGlvbiBpc0VsZW1lbnQobm9kZSkge1xuICAgIHJldHVybiBub2RlLm5vZGVUeXBlID09PSAxO1xufVxuZnVuY3Rpb24gaXNUZXh0KG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS5ub2RlVHlwZSA9PT0gMztcbn1cbmZ1bmN0aW9uIGlzQ29tbWVudChub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUubm9kZVR5cGUgPT09IDg7XG59XG5leHBvcnRzLmh0bWxEb21BcGkgPSB7XG4gICAgY3JlYXRlRWxlbWVudDogY3JlYXRlRWxlbWVudCxcbiAgICBjcmVhdGVFbGVtZW50TlM6IGNyZWF0ZUVsZW1lbnROUyxcbiAgICBjcmVhdGVUZXh0Tm9kZTogY3JlYXRlVGV4dE5vZGUsXG4gICAgY3JlYXRlQ29tbWVudDogY3JlYXRlQ29tbWVudCxcbiAgICBpbnNlcnRCZWZvcmU6IGluc2VydEJlZm9yZSxcbiAgICByZW1vdmVDaGlsZDogcmVtb3ZlQ2hpbGQsXG4gICAgYXBwZW5kQ2hpbGQ6IGFwcGVuZENoaWxkLFxuICAgIHBhcmVudE5vZGU6IHBhcmVudE5vZGUsXG4gICAgbmV4dFNpYmxpbmc6IG5leHRTaWJsaW5nLFxuICAgIHRhZ05hbWU6IHRhZ05hbWUsXG4gICAgc2V0VGV4dENvbnRlbnQ6IHNldFRleHRDb250ZW50LFxuICAgIGdldFRleHRDb250ZW50OiBnZXRUZXh0Q29udGVudCxcbiAgICBpc0VsZW1lbnQ6IGlzRWxlbWVudCxcbiAgICBpc1RleHQ6IGlzVGV4dCxcbiAgICBpc0NvbW1lbnQ6IGlzQ29tbWVudCxcbn07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLmh0bWxEb21BcGk7XG4vLyMgc291cmNlTWFwcGluZ1VSTD1odG1sZG9tYXBpLmpzLm1hcCIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIHZub2RlXzEgPSByZXF1aXJlKFwiLi92bm9kZVwiKTtcbnZhciBodG1sZG9tYXBpXzEgPSByZXF1aXJlKFwiLi9odG1sZG9tYXBpXCIpO1xuZnVuY3Rpb24gdG9WTm9kZShub2RlLCBkb21BcGkpIHtcbiAgICB2YXIgYXBpID0gZG9tQXBpICE9PSB1bmRlZmluZWQgPyBkb21BcGkgOiBodG1sZG9tYXBpXzEuZGVmYXVsdDtcbiAgICB2YXIgdGV4dDtcbiAgICBpZiAoYXBpLmlzRWxlbWVudChub2RlKSkge1xuICAgICAgICB2YXIgaWQgPSBub2RlLmlkID8gJyMnICsgbm9kZS5pZCA6ICcnO1xuICAgICAgICB2YXIgY24gPSBub2RlLmdldEF0dHJpYnV0ZSgnY2xhc3MnKTtcbiAgICAgICAgdmFyIGMgPSBjbiA/ICcuJyArIGNuLnNwbGl0KCcgJykuam9pbignLicpIDogJyc7XG4gICAgICAgIHZhciBzZWwgPSBhcGkudGFnTmFtZShub2RlKS50b0xvd2VyQ2FzZSgpICsgaWQgKyBjO1xuICAgICAgICB2YXIgYXR0cnMgPSB7fTtcbiAgICAgICAgdmFyIGNoaWxkcmVuID0gW107XG4gICAgICAgIHZhciBuYW1lXzE7XG4gICAgICAgIHZhciBpID0gdm9pZCAwLCBuID0gdm9pZCAwO1xuICAgICAgICB2YXIgZWxtQXR0cnMgPSBub2RlLmF0dHJpYnV0ZXM7XG4gICAgICAgIHZhciBlbG1DaGlsZHJlbiA9IG5vZGUuY2hpbGROb2RlcztcbiAgICAgICAgZm9yIChpID0gMCwgbiA9IGVsbUF0dHJzLmxlbmd0aDsgaSA8IG47IGkrKykge1xuICAgICAgICAgICAgbmFtZV8xID0gZWxtQXR0cnNbaV0ubm9kZU5hbWU7XG4gICAgICAgICAgICBpZiAobmFtZV8xICE9PSAnaWQnICYmIG5hbWVfMSAhPT0gJ2NsYXNzJykge1xuICAgICAgICAgICAgICAgIGF0dHJzW25hbWVfMV0gPSBlbG1BdHRyc1tpXS5ub2RlVmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZm9yIChpID0gMCwgbiA9IGVsbUNoaWxkcmVuLmxlbmd0aDsgaSA8IG47IGkrKykge1xuICAgICAgICAgICAgY2hpbGRyZW4ucHVzaCh0b1ZOb2RlKGVsbUNoaWxkcmVuW2ldKSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHZub2RlXzEuZGVmYXVsdChzZWwsIHsgYXR0cnM6IGF0dHJzIH0sIGNoaWxkcmVuLCB1bmRlZmluZWQsIG5vZGUpO1xuICAgIH1cbiAgICBlbHNlIGlmIChhcGkuaXNUZXh0KG5vZGUpKSB7XG4gICAgICAgIHRleHQgPSBhcGkuZ2V0VGV4dENvbnRlbnQobm9kZSk7XG4gICAgICAgIHJldHVybiB2bm9kZV8xLmRlZmF1bHQodW5kZWZpbmVkLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgdGV4dCwgbm9kZSk7XG4gICAgfVxuICAgIGVsc2UgaWYgKGFwaS5pc0NvbW1lbnQobm9kZSkpIHtcbiAgICAgICAgdGV4dCA9IGFwaS5nZXRUZXh0Q29udGVudChub2RlKTtcbiAgICAgICAgcmV0dXJuIHZub2RlXzEuZGVmYXVsdCgnIScsIHt9LCBbXSwgdGV4dCwgbm9kZSk7XG4gICAgfVxuICAgIGVsc2Uge1xuICAgICAgICByZXR1cm4gdm5vZGVfMS5kZWZhdWx0KCcnLCB7fSwgW10sIHVuZGVmaW5lZCwgdW5kZWZpbmVkKTtcbiAgICB9XG59XG5leHBvcnRzLnRvVk5vZGUgPSB0b1ZOb2RlO1xuZXhwb3J0cy5kZWZhdWx0ID0gdG9WTm9kZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXRvdm5vZGUuanMubWFwIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiB2bm9kZShzZWwsIGRhdGEsIGNoaWxkcmVuLCB0ZXh0LCBlbG0pIHtcbiAgICB2YXIga2V5ID0gZGF0YSA9PT0gdW5kZWZpbmVkID8gdW5kZWZpbmVkIDogZGF0YS5rZXk7XG4gICAgcmV0dXJuIHsgc2VsOiBzZWwsIGRhdGE6IGRhdGEsIGNoaWxkcmVuOiBjaGlsZHJlbixcbiAgICAgICAgdGV4dDogdGV4dCwgZWxtOiBlbG0sIGtleToga2V5IH07XG59XG5leHBvcnRzLnZub2RlID0gdm5vZGU7XG5leHBvcnRzLmRlZmF1bHQgPSB2bm9kZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXZub2RlLmpzLm1hcCJdfQ==
  23513. /***/ }),
  23514. /***/ "./node_modules/twemoji/2/esm.js":
  23515. /*!***************************************!*\
  23516. !*** ./node_modules/twemoji/2/esm.js ***!
  23517. \***************************************/
  23518. /*! exports provided: default */
  23519. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23520. "use strict";
  23521. __webpack_require__.r(__webpack_exports__);
  23522. /*! Copyright Twitter Inc. and other contributors. Licensed under MIT */
  23523. var twemoji=function(){"use strict";var twemoji={base:"https://twemoji.maxcdn.com/2/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:fromCodePoint,toCodePoint:toCodePoint},onerror:function onerror(){if(this.parentNode){this.parentNode.replaceChild(createText(this.alt,false),this)}},parse:parse,replace:replace,test:test},escaper={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},re=/(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f)|[\u0023\u002a\u0030-\u0039]\ufe0f?\u20e3|(?:[\u00a9\u00ae\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\uddb5\uddb6\uddb8\uddb9\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef9]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd40-\udd45\udd47-\udd70\udd73-\udd76\udd7a\udd7c-\udda2\uddb4\uddb7\uddc0-\uddc2\uddd0\uddde-\uddff]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,UFE0Fg=/\uFE0F/g,U200D=String.fromCharCode(8205),rescaper=/[&<>'"]/g,shouldntBeParsed=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,fromCharCode=String.fromCharCode;return twemoji;function createText(text,clean){return document.createTextNode(clean?text.replace(UFE0Fg,""):text)}function escapeHTML(s){return s.replace(rescaper,replacer)}function defaultImageSrcGenerator(icon,options){return"".concat(options.base,options.size,"/",icon,options.ext)}function grabAllTextNodes(node,allText){var childNodes=node.childNodes,length=childNodes.length,subnode,nodeType;while(length--){subnode=childNodes[length];nodeType=subnode.nodeType;if(nodeType===3){allText.push(subnode)}else if(nodeType===1&&!("ownerSVGElement"in subnode)&&!shouldntBeParsed.test(subnode.nodeName.toLowerCase())){grabAllTextNodes(subnode,allText)}}return allText}function grabTheRightIcon(rawText){return toCodePoint(rawText.indexOf(U200D)<0?rawText.replace(UFE0Fg,""):rawText)}function parseNode(node,options){var allText=grabAllTextNodes(node,[]),length=allText.length,attrib,attrname,modified,fragment,subnode,text,match,i,index,img,rawText,iconId,src;while(length--){modified=false;fragment=document.createDocumentFragment();subnode=allText[length];text=subnode.nodeValue;i=0;while(match=re.exec(text)){index=match.index;if(index!==i){fragment.appendChild(createText(text.slice(i,index),true))}rawText=match[0];iconId=grabTheRightIcon(rawText);i=index+rawText.length;src=options.callback(iconId,options);if(iconId&&src){img=new Image;img.onerror=options.onerror;img.setAttribute("draggable","false");attrib=options.attributes(rawText,iconId);for(attrname in attrib){if(attrib.hasOwnProperty(attrname)&&attrname.indexOf("on")!==0&&!img.hasAttribute(attrname)){img.setAttribute(attrname,attrib[attrname])}}img.className=options.className;img.alt=rawText;img.src=src;modified=true;fragment.appendChild(img)}if(!img)fragment.appendChild(createText(rawText,false));img=null}if(modified){if(i<text.length){fragment.appendChild(createText(text.slice(i),true))}subnode.parentNode.replaceChild(fragment,subnode)}}return node}function parseString(str,options){return replace(str,function(rawText){var ret=rawText,iconId=grabTheRightIcon(rawText),src=options.callback(iconId,options),attrib,attrname;if(iconId&&src){ret="<img ".concat('class="',options.className,'" ','draggable="false" ','alt="',rawText,'"',' src="',src,'"');attrib=options.attributes(rawText,iconId);for(attrname in attrib){if(attrib.hasOwnProperty(attrname)&&attrname.indexOf("on")!==0&&ret.indexOf(" "+attrname+"=")===-1){ret=ret.concat(" ",attrname,'="',escapeHTML(attrib[attrname]),'"')}}ret=ret.concat("/>")}return ret})}function replacer(m){return escaper[m]}function returnNull(){return null}function toSizeSquaredAsset(value){return typeof value==="number"?value+"x"+value:value}function fromCodePoint(codepoint){var code=typeof codepoint==="string"?parseInt(codepoint,16):codepoint;if(code<65536){return fromCharCode(code)}code-=65536;return fromCharCode(55296+(code>>10),56320+(code&1023))}function parse(what,how){if(!how||typeof how==="function"){how={callback:how}}return(typeof what==="string"?parseString:parseNode)(what,{callback:how.callback||defaultImageSrcGenerator,attributes:typeof how.attributes==="function"?how.attributes:returnNull,base:typeof how.base==="string"?how.base:twemoji.base,ext:how.ext||twemoji.ext,size:how.folder||toSizeSquaredAsset(how.size||twemoji.size),className:how.className||twemoji.className,onerror:how.onerror||twemoji.onerror})}function replace(text,callback){return String(text).replace(re,callback)}function test(text){re.lastIndex=0;var result=re.test(text);re.lastIndex=0;return result}function toCodePoint(unicodeSurrogates,sep){var r=[],c=0,p=0,i=0;while(i<unicodeSurrogates.length){c=unicodeSurrogates.charCodeAt(i++);if(p){r.push((65536+(p-55296<<10)+(c-56320)).toString(16));p=0}else if(55296<=c&&c<=56319){p=c}else{r.push(c.toString(16))}}return r.join(sep||"-")}}();
  23524. /* harmony default export */ __webpack_exports__["default"] = (twemoji);
  23525. /***/ }),
  23526. /***/ "./node_modules/urijs/src/IPv6.js":
  23527. /*!****************************************!*\
  23528. !*** ./node_modules/urijs/src/IPv6.js ***!
  23529. \****************************************/
  23530. /*! no static exports found */
  23531. /***/ (function(module, exports, __webpack_require__) {
  23532. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  23533. * URI.js - Mutating URLs
  23534. * IPv6 Support
  23535. *
  23536. * Version: 1.19.1
  23537. *
  23538. * Author: Rodney Rehm
  23539. * Web: http://medialize.github.io/URI.js/
  23540. *
  23541. * Licensed under
  23542. * MIT License http://www.opensource.org/licenses/mit-license
  23543. *
  23544. */
  23545. (function (root, factory) {
  23546. 'use strict';
  23547. // https://github.com/umdjs/umd/blob/master/returnExports.js
  23548. if (typeof module === 'object' && module.exports) {
  23549. // Node
  23550. module.exports = factory();
  23551. } else if (true) {
  23552. // AMD. Register as an anonymous module.
  23553. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23554. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23555. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  23556. __WEBPACK_AMD_DEFINE_FACTORY__),
  23557. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23558. } else {}
  23559. }(this, function (root) {
  23560. 'use strict';
  23561. /*
  23562. var _in = "fe80:0000:0000:0000:0204:61ff:fe9d:f156";
  23563. var _out = IPv6.best(_in);
  23564. var _expected = "fe80::204:61ff:fe9d:f156";
  23565. console.log(_in, _out, _expected, _out === _expected);
  23566. */
  23567. // save current IPv6 variable, if any
  23568. var _IPv6 = root && root.IPv6;
  23569. function bestPresentation(address) {
  23570. // based on:
  23571. // Javascript to test an IPv6 address for proper format, and to
  23572. // present the "best text representation" according to IETF Draft RFC at
  23573. // http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04
  23574. // 8 Feb 2010 Rich Brown, Dartware, LLC
  23575. // Please feel free to use this code as long as you provide a link to
  23576. // http://www.intermapper.com
  23577. // http://intermapper.com/support/tools/IPV6-Validator.aspx
  23578. // http://download.dartware.com/thirdparty/ipv6validator.js
  23579. var _address = address.toLowerCase();
  23580. var segments = _address.split(':');
  23581. var length = segments.length;
  23582. var total = 8;
  23583. // trim colons (:: or ::a:b:c… or …a:b:c::)
  23584. if (segments[0] === '' && segments[1] === '' && segments[2] === '') {
  23585. // must have been ::
  23586. // remove first two items
  23587. segments.shift();
  23588. segments.shift();
  23589. } else if (segments[0] === '' && segments[1] === '') {
  23590. // must have been ::xxxx
  23591. // remove the first item
  23592. segments.shift();
  23593. } else if (segments[length - 1] === '' && segments[length - 2] === '') {
  23594. // must have been xxxx::
  23595. segments.pop();
  23596. }
  23597. length = segments.length;
  23598. // adjust total segments for IPv4 trailer
  23599. if (segments[length - 1].indexOf('.') !== -1) {
  23600. // found a "." which means IPv4
  23601. total = 7;
  23602. }
  23603. // fill empty segments them with "0000"
  23604. var pos;
  23605. for (pos = 0; pos < length; pos++) {
  23606. if (segments[pos] === '') {
  23607. break;
  23608. }
  23609. }
  23610. if (pos < total) {
  23611. segments.splice(pos, 1, '0000');
  23612. while (segments.length < total) {
  23613. segments.splice(pos, 0, '0000');
  23614. }
  23615. }
  23616. // strip leading zeros
  23617. var _segments;
  23618. for (var i = 0; i < total; i++) {
  23619. _segments = segments[i].split('');
  23620. for (var j = 0; j < 3 ; j++) {
  23621. if (_segments[0] === '0' && _segments.length > 1) {
  23622. _segments.splice(0,1);
  23623. } else {
  23624. break;
  23625. }
  23626. }
  23627. segments[i] = _segments.join('');
  23628. }
  23629. // find longest sequence of zeroes and coalesce them into one segment
  23630. var best = -1;
  23631. var _best = 0;
  23632. var _current = 0;
  23633. var current = -1;
  23634. var inzeroes = false;
  23635. // i; already declared
  23636. for (i = 0; i < total; i++) {
  23637. if (inzeroes) {
  23638. if (segments[i] === '0') {
  23639. _current += 1;
  23640. } else {
  23641. inzeroes = false;
  23642. if (_current > _best) {
  23643. best = current;
  23644. _best = _current;
  23645. }
  23646. }
  23647. } else {
  23648. if (segments[i] === '0') {
  23649. inzeroes = true;
  23650. current = i;
  23651. _current = 1;
  23652. }
  23653. }
  23654. }
  23655. if (_current > _best) {
  23656. best = current;
  23657. _best = _current;
  23658. }
  23659. if (_best > 1) {
  23660. segments.splice(best, _best, '');
  23661. }
  23662. length = segments.length;
  23663. // assemble remaining segments
  23664. var result = '';
  23665. if (segments[0] === '') {
  23666. result = ':';
  23667. }
  23668. for (i = 0; i < length; i++) {
  23669. result += segments[i];
  23670. if (i === length - 1) {
  23671. break;
  23672. }
  23673. result += ':';
  23674. }
  23675. if (segments[length - 1] === '') {
  23676. result += ':';
  23677. }
  23678. return result;
  23679. }
  23680. function noConflict() {
  23681. /*jshint validthis: true */
  23682. if (root.IPv6 === this) {
  23683. root.IPv6 = _IPv6;
  23684. }
  23685. return this;
  23686. }
  23687. return {
  23688. best: bestPresentation,
  23689. noConflict: noConflict
  23690. };
  23691. }));
  23692. /***/ }),
  23693. /***/ "./node_modules/urijs/src/SecondLevelDomains.js":
  23694. /*!******************************************************!*\
  23695. !*** ./node_modules/urijs/src/SecondLevelDomains.js ***!
  23696. \******************************************************/
  23697. /*! no static exports found */
  23698. /***/ (function(module, exports, __webpack_require__) {
  23699. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  23700. * URI.js - Mutating URLs
  23701. * Second Level Domain (SLD) Support
  23702. *
  23703. * Version: 1.19.1
  23704. *
  23705. * Author: Rodney Rehm
  23706. * Web: http://medialize.github.io/URI.js/
  23707. *
  23708. * Licensed under
  23709. * MIT License http://www.opensource.org/licenses/mit-license
  23710. *
  23711. */
  23712. (function (root, factory) {
  23713. 'use strict';
  23714. // https://github.com/umdjs/umd/blob/master/returnExports.js
  23715. if (typeof module === 'object' && module.exports) {
  23716. // Node
  23717. module.exports = factory();
  23718. } else if (true) {
  23719. // AMD. Register as an anonymous module.
  23720. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23721. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23722. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  23723. __WEBPACK_AMD_DEFINE_FACTORY__),
  23724. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23725. } else {}
  23726. }(this, function (root) {
  23727. 'use strict';
  23728. // save current SecondLevelDomains variable, if any
  23729. var _SecondLevelDomains = root && root.SecondLevelDomains;
  23730. var SLD = {
  23731. // list of known Second Level Domains
  23732. // converted list of SLDs from https://github.com/gavingmiller/second-level-domains
  23733. // ----
  23734. // publicsuffix.org is more current and actually used by a couple of browsers internally.
  23735. // downside is it also contains domains like "dyndns.org" - which is fine for the security
  23736. // issues browser have to deal with (SOP for cookies, etc) - but is way overboard for URI.js
  23737. // ----
  23738. list: {
  23739. 'ac':' com gov mil net org ',
  23740. 'ae':' ac co gov mil name net org pro sch ',
  23741. 'af':' com edu gov net org ',
  23742. 'al':' com edu gov mil net org ',
  23743. 'ao':' co ed gv it og pb ',
  23744. 'ar':' com edu gob gov int mil net org tur ',
  23745. 'at':' ac co gv or ',
  23746. 'au':' asn com csiro edu gov id net org ',
  23747. 'ba':' co com edu gov mil net org rs unbi unmo unsa untz unze ',
  23748. 'bb':' biz co com edu gov info net org store tv ',
  23749. 'bh':' biz cc com edu gov info net org ',
  23750. 'bn':' com edu gov net org ',
  23751. 'bo':' com edu gob gov int mil net org tv ',
  23752. 'br':' adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ',
  23753. 'bs':' com edu gov net org ',
  23754. 'bz':' du et om ov rg ',
  23755. 'ca':' ab bc mb nb nf nl ns nt nu on pe qc sk yk ',
  23756. 'ck':' biz co edu gen gov info net org ',
  23757. 'cn':' ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ',
  23758. 'co':' com edu gov mil net nom org ',
  23759. 'cr':' ac c co ed fi go or sa ',
  23760. 'cy':' ac biz com ekloges gov ltd name net org parliament press pro tm ',
  23761. 'do':' art com edu gob gov mil net org sld web ',
  23762. 'dz':' art asso com edu gov net org pol ',
  23763. 'ec':' com edu fin gov info med mil net org pro ',
  23764. 'eg':' com edu eun gov mil name net org sci ',
  23765. 'er':' com edu gov ind mil net org rochest w ',
  23766. 'es':' com edu gob nom org ',
  23767. 'et':' biz com edu gov info name net org ',
  23768. 'fj':' ac biz com info mil name net org pro ',
  23769. 'fk':' ac co gov net nom org ',
  23770. 'fr':' asso com f gouv nom prd presse tm ',
  23771. 'gg':' co net org ',
  23772. 'gh':' com edu gov mil org ',
  23773. 'gn':' ac com gov net org ',
  23774. 'gr':' com edu gov mil net org ',
  23775. 'gt':' com edu gob ind mil net org ',
  23776. 'gu':' com edu gov net org ',
  23777. 'hk':' com edu gov idv net org ',
  23778. 'hu':' 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ',
  23779. 'id':' ac co go mil net or sch web ',
  23780. 'il':' ac co gov idf k12 muni net org ',
  23781. 'in':' ac co edu ernet firm gen gov i ind mil net nic org res ',
  23782. 'iq':' com edu gov i mil net org ',
  23783. 'ir':' ac co dnssec gov i id net org sch ',
  23784. 'it':' edu gov ',
  23785. 'je':' co net org ',
  23786. 'jo':' com edu gov mil name net org sch ',
  23787. 'jp':' ac ad co ed go gr lg ne or ',
  23788. 'ke':' ac co go info me mobi ne or sc ',
  23789. 'kh':' com edu gov mil net org per ',
  23790. 'ki':' biz com de edu gov info mob net org tel ',
  23791. 'km':' asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ',
  23792. 'kn':' edu gov net org ',
  23793. 'kr':' ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ',
  23794. 'kw':' com edu gov net org ',
  23795. 'ky':' com edu gov net org ',
  23796. 'kz':' com edu gov mil net org ',
  23797. 'lb':' com edu gov net org ',
  23798. 'lk':' assn com edu gov grp hotel int ltd net ngo org sch soc web ',
  23799. 'lr':' com edu gov net org ',
  23800. 'lv':' asn com conf edu gov id mil net org ',
  23801. 'ly':' com edu gov id med net org plc sch ',
  23802. 'ma':' ac co gov m net org press ',
  23803. 'mc':' asso tm ',
  23804. 'me':' ac co edu gov its net org priv ',
  23805. 'mg':' com edu gov mil nom org prd tm ',
  23806. 'mk':' com edu gov inf name net org pro ',
  23807. 'ml':' com edu gov net org presse ',
  23808. 'mn':' edu gov org ',
  23809. 'mo':' com edu gov net org ',
  23810. 'mt':' com edu gov net org ',
  23811. 'mv':' aero biz com coop edu gov info int mil museum name net org pro ',
  23812. 'mw':' ac co com coop edu gov int museum net org ',
  23813. 'mx':' com edu gob net org ',
  23814. 'my':' com edu gov mil name net org sch ',
  23815. 'nf':' arts com firm info net other per rec store web ',
  23816. 'ng':' biz com edu gov mil mobi name net org sch ',
  23817. 'ni':' ac co com edu gob mil net nom org ',
  23818. 'np':' com edu gov mil net org ',
  23819. 'nr':' biz com edu gov info net org ',
  23820. 'om':' ac biz co com edu gov med mil museum net org pro sch ',
  23821. 'pe':' com edu gob mil net nom org sld ',
  23822. 'ph':' com edu gov i mil net ngo org ',
  23823. 'pk':' biz com edu fam gob gok gon gop gos gov net org web ',
  23824. 'pl':' art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ',
  23825. 'pr':' ac biz com edu est gov info isla name net org pro prof ',
  23826. 'ps':' com edu gov net org plo sec ',
  23827. 'pw':' belau co ed go ne or ',
  23828. 'ro':' arts com firm info nom nt org rec store tm www ',
  23829. 'rs':' ac co edu gov in org ',
  23830. 'sb':' com edu gov net org ',
  23831. 'sc':' com edu gov net org ',
  23832. 'sh':' co com edu gov net nom org ',
  23833. 'sl':' com edu gov net org ',
  23834. 'st':' co com consulado edu embaixada gov mil net org principe saotome store ',
  23835. 'sv':' com edu gob org red ',
  23836. 'sz':' ac co org ',
  23837. 'tr':' av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ',
  23838. 'tt':' aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ',
  23839. 'tw':' club com ebiz edu game gov idv mil net org ',
  23840. 'mu':' ac co com gov net or org ',
  23841. 'mz':' ac co edu gov org ',
  23842. 'na':' co com ',
  23843. 'nz':' ac co cri geek gen govt health iwi maori mil net org parliament school ',
  23844. 'pa':' abo ac com edu gob ing med net nom org sld ',
  23845. 'pt':' com edu gov int net nome org publ ',
  23846. 'py':' com edu gov mil net org ',
  23847. 'qa':' com edu gov mil net org ',
  23848. 're':' asso com nom ',
  23849. 'ru':' ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ',
  23850. 'rw':' ac co com edu gouv gov int mil net ',
  23851. 'sa':' com edu gov med net org pub sch ',
  23852. 'sd':' com edu gov info med net org tv ',
  23853. 'se':' a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ',
  23854. 'sg':' com edu gov idn net org per ',
  23855. 'sn':' art com edu gouv org perso univ ',
  23856. 'sy':' com edu gov mil net news org ',
  23857. 'th':' ac co go in mi net or ',
  23858. 'tj':' ac biz co com edu go gov info int mil name net nic org test web ',
  23859. 'tn':' agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ',
  23860. 'tz':' ac co go ne or ',
  23861. 'ua':' biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ',
  23862. 'ug':' ac co go ne or org sc ',
  23863. 'uk':' ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ',
  23864. 'us':' dni fed isa kids nsn ',
  23865. 'uy':' com edu gub mil net org ',
  23866. 've':' co com edu gob info mil net org web ',
  23867. 'vi':' co com k12 net org ',
  23868. 'vn':' ac biz com edu gov health info int name net org pro ',
  23869. 'ye':' co com gov ltd me net org plc ',
  23870. 'yu':' ac co edu gov org ',
  23871. 'za':' ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ',
  23872. 'zm':' ac co com edu gov net org sch ',
  23873. // https://en.wikipedia.org/wiki/CentralNic#Second-level_domains
  23874. 'com': 'ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ',
  23875. 'net': 'gb jp se uk ',
  23876. 'org': 'ae',
  23877. 'de': 'com '
  23878. },
  23879. // gorhill 2013-10-25: Using indexOf() instead Regexp(). Significant boost
  23880. // in both performance and memory footprint. No initialization required.
  23881. // http://jsperf.com/uri-js-sld-regex-vs-binary-search/4
  23882. // Following methods use lastIndexOf() rather than array.split() in order
  23883. // to avoid any memory allocations.
  23884. has: function(domain) {
  23885. var tldOffset = domain.lastIndexOf('.');
  23886. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  23887. return false;
  23888. }
  23889. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  23890. if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
  23891. return false;
  23892. }
  23893. var sldList = SLD.list[domain.slice(tldOffset+1)];
  23894. if (!sldList) {
  23895. return false;
  23896. }
  23897. return sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') >= 0;
  23898. },
  23899. is: function(domain) {
  23900. var tldOffset = domain.lastIndexOf('.');
  23901. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  23902. return false;
  23903. }
  23904. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  23905. if (sldOffset >= 0) {
  23906. return false;
  23907. }
  23908. var sldList = SLD.list[domain.slice(tldOffset+1)];
  23909. if (!sldList) {
  23910. return false;
  23911. }
  23912. return sldList.indexOf(' ' + domain.slice(0, tldOffset) + ' ') >= 0;
  23913. },
  23914. get: function(domain) {
  23915. var tldOffset = domain.lastIndexOf('.');
  23916. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  23917. return null;
  23918. }
  23919. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  23920. if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
  23921. return null;
  23922. }
  23923. var sldList = SLD.list[domain.slice(tldOffset+1)];
  23924. if (!sldList) {
  23925. return null;
  23926. }
  23927. if (sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') < 0) {
  23928. return null;
  23929. }
  23930. return domain.slice(sldOffset+1);
  23931. },
  23932. noConflict: function(){
  23933. if (root.SecondLevelDomains === this) {
  23934. root.SecondLevelDomains = _SecondLevelDomains;
  23935. }
  23936. return this;
  23937. }
  23938. };
  23939. return SLD;
  23940. }));
  23941. /***/ }),
  23942. /***/ "./node_modules/urijs/src/URI.js":
  23943. /*!***************************************!*\
  23944. !*** ./node_modules/urijs/src/URI.js ***!
  23945. \***************************************/
  23946. /*! no static exports found */
  23947. /***/ (function(module, exports, __webpack_require__) {
  23948. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  23949. * URI.js - Mutating URLs
  23950. *
  23951. * Version: 1.19.1
  23952. *
  23953. * Author: Rodney Rehm
  23954. * Web: http://medialize.github.io/URI.js/
  23955. *
  23956. * Licensed under
  23957. * MIT License http://www.opensource.org/licenses/mit-license
  23958. *
  23959. */
  23960. (function (root, factory) {
  23961. 'use strict';
  23962. // https://github.com/umdjs/umd/blob/master/returnExports.js
  23963. if (typeof module === 'object' && module.exports) {
  23964. // Node
  23965. module.exports = factory(__webpack_require__(/*! ./punycode */ "./node_modules/urijs/src/punycode.js"), __webpack_require__(/*! ./IPv6 */ "./node_modules/urijs/src/IPv6.js"), __webpack_require__(/*! ./SecondLevelDomains */ "./node_modules/urijs/src/SecondLevelDomains.js"));
  23966. } else if (true) {
  23967. // AMD. Register as an anonymous module.
  23968. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./punycode */ "./node_modules/urijs/src/punycode.js"), __webpack_require__(/*! ./IPv6 */ "./node_modules/urijs/src/IPv6.js"), __webpack_require__(/*! ./SecondLevelDomains */ "./node_modules/urijs/src/SecondLevelDomains.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23969. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23970. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23971. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23972. } else {}
  23973. }(this, function (punycode, IPv6, SLD, root) {
  23974. 'use strict';
  23975. /*global location, escape, unescape */
  23976. // FIXME: v2.0.0 renamce non-camelCase properties to uppercase
  23977. /*jshint camelcase: false */
  23978. // save current URI variable, if any
  23979. var _URI = root && root.URI;
  23980. function URI(url, base) {
  23981. var _urlSupplied = arguments.length >= 1;
  23982. var _baseSupplied = arguments.length >= 2;
  23983. // Allow instantiation without the 'new' keyword
  23984. if (!(this instanceof URI)) {
  23985. if (_urlSupplied) {
  23986. if (_baseSupplied) {
  23987. return new URI(url, base);
  23988. }
  23989. return new URI(url);
  23990. }
  23991. return new URI();
  23992. }
  23993. if (url === undefined) {
  23994. if (_urlSupplied) {
  23995. throw new TypeError('undefined is not a valid argument for URI');
  23996. }
  23997. if (typeof location !== 'undefined') {
  23998. url = location.href + '';
  23999. } else {
  24000. url = '';
  24001. }
  24002. }
  24003. if (url === null) {
  24004. if (_urlSupplied) {
  24005. throw new TypeError('null is not a valid argument for URI');
  24006. }
  24007. }
  24008. this.href(url);
  24009. // resolve to base according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#constructor
  24010. if (base !== undefined) {
  24011. return this.absoluteTo(base);
  24012. }
  24013. return this;
  24014. }
  24015. function isInteger(value) {
  24016. return /^[0-9]+$/.test(value);
  24017. }
  24018. URI.version = '1.19.1';
  24019. var p = URI.prototype;
  24020. var hasOwn = Object.prototype.hasOwnProperty;
  24021. function escapeRegEx(string) {
  24022. // https://github.com/medialize/URI.js/commit/85ac21783c11f8ccab06106dba9735a31a86924d#commitcomment-821963
  24023. return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
  24024. }
  24025. function getType(value) {
  24026. // IE8 doesn't return [Object Undefined] but [Object Object] for undefined value
  24027. if (value === undefined) {
  24028. return 'Undefined';
  24029. }
  24030. return String(Object.prototype.toString.call(value)).slice(8, -1);
  24031. }
  24032. function isArray(obj) {
  24033. return getType(obj) === 'Array';
  24034. }
  24035. function filterArrayValues(data, value) {
  24036. var lookup = {};
  24037. var i, length;
  24038. if (getType(value) === 'RegExp') {
  24039. lookup = null;
  24040. } else if (isArray(value)) {
  24041. for (i = 0, length = value.length; i < length; i++) {
  24042. lookup[value[i]] = true;
  24043. }
  24044. } else {
  24045. lookup[value] = true;
  24046. }
  24047. for (i = 0, length = data.length; i < length; i++) {
  24048. /*jshint laxbreak: true */
  24049. var _match = lookup && lookup[data[i]] !== undefined
  24050. || !lookup && value.test(data[i]);
  24051. /*jshint laxbreak: false */
  24052. if (_match) {
  24053. data.splice(i, 1);
  24054. length--;
  24055. i--;
  24056. }
  24057. }
  24058. return data;
  24059. }
  24060. function arrayContains(list, value) {
  24061. var i, length;
  24062. // value may be string, number, array, regexp
  24063. if (isArray(value)) {
  24064. // Note: this can be optimized to O(n) (instead of current O(m * n))
  24065. for (i = 0, length = value.length; i < length; i++) {
  24066. if (!arrayContains(list, value[i])) {
  24067. return false;
  24068. }
  24069. }
  24070. return true;
  24071. }
  24072. var _type = getType(value);
  24073. for (i = 0, length = list.length; i < length; i++) {
  24074. if (_type === 'RegExp') {
  24075. if (typeof list[i] === 'string' && list[i].match(value)) {
  24076. return true;
  24077. }
  24078. } else if (list[i] === value) {
  24079. return true;
  24080. }
  24081. }
  24082. return false;
  24083. }
  24084. function arraysEqual(one, two) {
  24085. if (!isArray(one) || !isArray(two)) {
  24086. return false;
  24087. }
  24088. // arrays can't be equal if they have different amount of content
  24089. if (one.length !== two.length) {
  24090. return false;
  24091. }
  24092. one.sort();
  24093. two.sort();
  24094. for (var i = 0, l = one.length; i < l; i++) {
  24095. if (one[i] !== two[i]) {
  24096. return false;
  24097. }
  24098. }
  24099. return true;
  24100. }
  24101. function trimSlashes(text) {
  24102. var trim_expression = /^\/+|\/+$/g;
  24103. return text.replace(trim_expression, '');
  24104. }
  24105. URI._parts = function() {
  24106. return {
  24107. protocol: null,
  24108. username: null,
  24109. password: null,
  24110. hostname: null,
  24111. urn: null,
  24112. port: null,
  24113. path: null,
  24114. query: null,
  24115. fragment: null,
  24116. // state
  24117. preventInvalidHostname: URI.preventInvalidHostname,
  24118. duplicateQueryParameters: URI.duplicateQueryParameters,
  24119. escapeQuerySpace: URI.escapeQuerySpace
  24120. };
  24121. };
  24122. // state: throw on invalid hostname
  24123. // see https://github.com/medialize/URI.js/pull/345
  24124. // and https://github.com/medialize/URI.js/issues/354
  24125. URI.preventInvalidHostname = false;
  24126. // state: allow duplicate query parameters (a=1&a=1)
  24127. URI.duplicateQueryParameters = false;
  24128. // state: replaces + with %20 (space in query strings)
  24129. URI.escapeQuerySpace = true;
  24130. // static properties
  24131. URI.protocol_expression = /^[a-z][a-z0-9.+-]*$/i;
  24132. URI.idn_expression = /[^a-z0-9\._-]/i;
  24133. URI.punycode_expression = /(xn--)/i;
  24134. // well, 333.444.555.666 matches, but it sure ain't no IPv4 - do we care?
  24135. URI.ip4_expression = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
  24136. // credits to Rich Brown
  24137. // source: http://forums.intermapper.com/viewtopic.php?p=1096#1096
  24138. // specification: http://www.ietf.org/rfc/rfc4291.txt
  24139. URI.ip6_expression = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
  24140. // expression used is "gruber revised" (@gruber v2) determined to be the
  24141. // best solution in a regex-golf we did a couple of ages ago at
  24142. // * http://mathiasbynens.be/demo/url-regex
  24143. // * http://rodneyrehm.de/t/url-regex.html
  24144. URI.find_uri_expression = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig;
  24145. URI.findUri = {
  24146. // valid "scheme://" or "www."
  24147. start: /\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,
  24148. // everything up to the next whitespace
  24149. end: /[\s\r\n]|$/,
  24150. // trim trailing punctuation captured by end RegExp
  24151. trim: /[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,
  24152. // balanced parens inclusion (), [], {}, <>
  24153. parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
  24154. };
  24155. // http://www.iana.org/assignments/uri-schemes.html
  24156. // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
  24157. URI.defaultPorts = {
  24158. http: '80',
  24159. https: '443',
  24160. ftp: '21',
  24161. gopher: '70',
  24162. ws: '80',
  24163. wss: '443'
  24164. };
  24165. // list of protocols which always require a hostname
  24166. URI.hostProtocols = [
  24167. 'http',
  24168. 'https'
  24169. ];
  24170. // allowed hostname characters according to RFC 3986
  24171. // ALPHA DIGIT "-" "." "_" "~" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" %encoded
  24172. // I've never seen a (non-IDN) hostname other than: ALPHA DIGIT . - _
  24173. URI.invalid_hostname_characters = /[^a-zA-Z0-9\.\-:_]/;
  24174. // map DOM Elements to their URI attribute
  24175. URI.domAttributes = {
  24176. 'a': 'href',
  24177. 'blockquote': 'cite',
  24178. 'link': 'href',
  24179. 'base': 'href',
  24180. 'script': 'src',
  24181. 'form': 'action',
  24182. 'img': 'src',
  24183. 'area': 'href',
  24184. 'iframe': 'src',
  24185. 'embed': 'src',
  24186. 'source': 'src',
  24187. 'track': 'src',
  24188. 'input': 'src', // but only if type="image"
  24189. 'audio': 'src',
  24190. 'video': 'src'
  24191. };
  24192. URI.getDomAttribute = function(node) {
  24193. if (!node || !node.nodeName) {
  24194. return undefined;
  24195. }
  24196. var nodeName = node.nodeName.toLowerCase();
  24197. // <input> should only expose src for type="image"
  24198. if (nodeName === 'input' && node.type !== 'image') {
  24199. return undefined;
  24200. }
  24201. return URI.domAttributes[nodeName];
  24202. };
  24203. function escapeForDumbFirefox36(value) {
  24204. // https://github.com/medialize/URI.js/issues/91
  24205. return escape(value);
  24206. }
  24207. // encoding / decoding according to RFC3986
  24208. function strictEncodeURIComponent(string) {
  24209. // see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent
  24210. return encodeURIComponent(string)
  24211. .replace(/[!'()*]/g, escapeForDumbFirefox36)
  24212. .replace(/\*/g, '%2A');
  24213. }
  24214. URI.encode = strictEncodeURIComponent;
  24215. URI.decode = decodeURIComponent;
  24216. URI.iso8859 = function() {
  24217. URI.encode = escape;
  24218. URI.decode = unescape;
  24219. };
  24220. URI.unicode = function() {
  24221. URI.encode = strictEncodeURIComponent;
  24222. URI.decode = decodeURIComponent;
  24223. };
  24224. URI.characters = {
  24225. pathname: {
  24226. encode: {
  24227. // RFC3986 2.1: For consistency, URI producers and normalizers should
  24228. // use uppercase hexadecimal digits for all percent-encodings.
  24229. expression: /%(24|26|2B|2C|3B|3D|3A|40)/ig,
  24230. map: {
  24231. // -._~!'()*
  24232. '%24': '$',
  24233. '%26': '&',
  24234. '%2B': '+',
  24235. '%2C': ',',
  24236. '%3B': ';',
  24237. '%3D': '=',
  24238. '%3A': ':',
  24239. '%40': '@'
  24240. }
  24241. },
  24242. decode: {
  24243. expression: /[\/\?#]/g,
  24244. map: {
  24245. '/': '%2F',
  24246. '?': '%3F',
  24247. '#': '%23'
  24248. }
  24249. }
  24250. },
  24251. reserved: {
  24252. encode: {
  24253. // RFC3986 2.1: For consistency, URI producers and normalizers should
  24254. // use uppercase hexadecimal digits for all percent-encodings.
  24255. expression: /%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,
  24256. map: {
  24257. // gen-delims
  24258. '%3A': ':',
  24259. '%2F': '/',
  24260. '%3F': '?',
  24261. '%23': '#',
  24262. '%5B': '[',
  24263. '%5D': ']',
  24264. '%40': '@',
  24265. // sub-delims
  24266. '%21': '!',
  24267. '%24': '$',
  24268. '%26': '&',
  24269. '%27': '\'',
  24270. '%28': '(',
  24271. '%29': ')',
  24272. '%2A': '*',
  24273. '%2B': '+',
  24274. '%2C': ',',
  24275. '%3B': ';',
  24276. '%3D': '='
  24277. }
  24278. }
  24279. },
  24280. urnpath: {
  24281. // The characters under `encode` are the characters called out by RFC 2141 as being acceptable
  24282. // for usage in a URN. RFC2141 also calls out "-", ".", and "_" as acceptable characters, but
  24283. // these aren't encoded by encodeURIComponent, so we don't have to call them out here. Also
  24284. // note that the colon character is not featured in the encoding map; this is because URI.js
  24285. // gives the colons in URNs semantic meaning as the delimiters of path segements, and so it
  24286. // should not appear unencoded in a segment itself.
  24287. // See also the note above about RFC3986 and capitalalized hex digits.
  24288. encode: {
  24289. expression: /%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,
  24290. map: {
  24291. '%21': '!',
  24292. '%24': '$',
  24293. '%27': '\'',
  24294. '%28': '(',
  24295. '%29': ')',
  24296. '%2A': '*',
  24297. '%2B': '+',
  24298. '%2C': ',',
  24299. '%3B': ';',
  24300. '%3D': '=',
  24301. '%40': '@'
  24302. }
  24303. },
  24304. // These characters are the characters called out by RFC2141 as "reserved" characters that
  24305. // should never appear in a URN, plus the colon character (see note above).
  24306. decode: {
  24307. expression: /[\/\?#:]/g,
  24308. map: {
  24309. '/': '%2F',
  24310. '?': '%3F',
  24311. '#': '%23',
  24312. ':': '%3A'
  24313. }
  24314. }
  24315. }
  24316. };
  24317. URI.encodeQuery = function(string, escapeQuerySpace) {
  24318. var escaped = URI.encode(string + '');
  24319. if (escapeQuerySpace === undefined) {
  24320. escapeQuerySpace = URI.escapeQuerySpace;
  24321. }
  24322. return escapeQuerySpace ? escaped.replace(/%20/g, '+') : escaped;
  24323. };
  24324. URI.decodeQuery = function(string, escapeQuerySpace) {
  24325. string += '';
  24326. if (escapeQuerySpace === undefined) {
  24327. escapeQuerySpace = URI.escapeQuerySpace;
  24328. }
  24329. try {
  24330. return URI.decode(escapeQuerySpace ? string.replace(/\+/g, '%20') : string);
  24331. } catch(e) {
  24332. // we're not going to mess with weird encodings,
  24333. // give up and return the undecoded original string
  24334. // see https://github.com/medialize/URI.js/issues/87
  24335. // see https://github.com/medialize/URI.js/issues/92
  24336. return string;
  24337. }
  24338. };
  24339. // generate encode/decode path functions
  24340. var _parts = {'encode':'encode', 'decode':'decode'};
  24341. var _part;
  24342. var generateAccessor = function(_group, _part) {
  24343. return function(string) {
  24344. try {
  24345. return URI[_part](string + '').replace(URI.characters[_group][_part].expression, function(c) {
  24346. return URI.characters[_group][_part].map[c];
  24347. });
  24348. } catch (e) {
  24349. // we're not going to mess with weird encodings,
  24350. // give up and return the undecoded original string
  24351. // see https://github.com/medialize/URI.js/issues/87
  24352. // see https://github.com/medialize/URI.js/issues/92
  24353. return string;
  24354. }
  24355. };
  24356. };
  24357. for (_part in _parts) {
  24358. URI[_part + 'PathSegment'] = generateAccessor('pathname', _parts[_part]);
  24359. URI[_part + 'UrnPathSegment'] = generateAccessor('urnpath', _parts[_part]);
  24360. }
  24361. var generateSegmentedPathFunction = function(_sep, _codingFuncName, _innerCodingFuncName) {
  24362. return function(string) {
  24363. // Why pass in names of functions, rather than the function objects themselves? The
  24364. // definitions of some functions (but in particular, URI.decode) will occasionally change due
  24365. // to URI.js having ISO8859 and Unicode modes. Passing in the name and getting it will ensure
  24366. // that the functions we use here are "fresh".
  24367. var actualCodingFunc;
  24368. if (!_innerCodingFuncName) {
  24369. actualCodingFunc = URI[_codingFuncName];
  24370. } else {
  24371. actualCodingFunc = function(string) {
  24372. return URI[_codingFuncName](URI[_innerCodingFuncName](string));
  24373. };
  24374. }
  24375. var segments = (string + '').split(_sep);
  24376. for (var i = 0, length = segments.length; i < length; i++) {
  24377. segments[i] = actualCodingFunc(segments[i]);
  24378. }
  24379. return segments.join(_sep);
  24380. };
  24381. };
  24382. // This takes place outside the above loop because we don't want, e.g., encodeUrnPath functions.
  24383. URI.decodePath = generateSegmentedPathFunction('/', 'decodePathSegment');
  24384. URI.decodeUrnPath = generateSegmentedPathFunction(':', 'decodeUrnPathSegment');
  24385. URI.recodePath = generateSegmentedPathFunction('/', 'encodePathSegment', 'decode');
  24386. URI.recodeUrnPath = generateSegmentedPathFunction(':', 'encodeUrnPathSegment', 'decode');
  24387. URI.encodeReserved = generateAccessor('reserved', 'encode');
  24388. URI.parse = function(string, parts) {
  24389. var pos;
  24390. if (!parts) {
  24391. parts = {
  24392. preventInvalidHostname: URI.preventInvalidHostname
  24393. };
  24394. }
  24395. // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
  24396. // extract fragment
  24397. pos = string.indexOf('#');
  24398. if (pos > -1) {
  24399. // escaping?
  24400. parts.fragment = string.substring(pos + 1) || null;
  24401. string = string.substring(0, pos);
  24402. }
  24403. // extract query
  24404. pos = string.indexOf('?');
  24405. if (pos > -1) {
  24406. // escaping?
  24407. parts.query = string.substring(pos + 1) || null;
  24408. string = string.substring(0, pos);
  24409. }
  24410. // extract protocol
  24411. if (string.substring(0, 2) === '//') {
  24412. // relative-scheme
  24413. parts.protocol = null;
  24414. string = string.substring(2);
  24415. // extract "user:pass@host:port"
  24416. string = URI.parseAuthority(string, parts);
  24417. } else {
  24418. pos = string.indexOf(':');
  24419. if (pos > -1) {
  24420. parts.protocol = string.substring(0, pos) || null;
  24421. if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
  24422. // : may be within the path
  24423. parts.protocol = undefined;
  24424. } else if (string.substring(pos + 1, pos + 3) === '//') {
  24425. string = string.substring(pos + 3);
  24426. // extract "user:pass@host:port"
  24427. string = URI.parseAuthority(string, parts);
  24428. } else {
  24429. string = string.substring(pos + 1);
  24430. parts.urn = true;
  24431. }
  24432. }
  24433. }
  24434. // what's left must be the path
  24435. parts.path = string;
  24436. // and we're done
  24437. return parts;
  24438. };
  24439. URI.parseHost = function(string, parts) {
  24440. if (!string) {
  24441. string = '';
  24442. }
  24443. // Copy chrome, IE, opera backslash-handling behavior.
  24444. // Back slashes before the query string get converted to forward slashes
  24445. // See: https://github.com/joyent/node/blob/386fd24f49b0e9d1a8a076592a404168faeecc34/lib/url.js#L115-L124
  24446. // See: https://code.google.com/p/chromium/issues/detail?id=25916
  24447. // https://github.com/medialize/URI.js/pull/233
  24448. string = string.replace(/\\/g, '/');
  24449. // extract host:port
  24450. var pos = string.indexOf('/');
  24451. var bracketPos;
  24452. var t;
  24453. if (pos === -1) {
  24454. pos = string.length;
  24455. }
  24456. if (string.charAt(0) === '[') {
  24457. // IPv6 host - http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04#section-6
  24458. // I claim most client software breaks on IPv6 anyways. To simplify things, URI only accepts
  24459. // IPv6+port in the format [2001:db8::1]:80 (for the time being)
  24460. bracketPos = string.indexOf(']');
  24461. parts.hostname = string.substring(1, bracketPos) || null;
  24462. parts.port = string.substring(bracketPos + 2, pos) || null;
  24463. if (parts.port === '/') {
  24464. parts.port = null;
  24465. }
  24466. } else {
  24467. var firstColon = string.indexOf(':');
  24468. var firstSlash = string.indexOf('/');
  24469. var nextColon = string.indexOf(':', firstColon + 1);
  24470. if (nextColon !== -1 && (firstSlash === -1 || nextColon < firstSlash)) {
  24471. // IPv6 host contains multiple colons - but no port
  24472. // this notation is actually not allowed by RFC 3986, but we're a liberal parser
  24473. parts.hostname = string.substring(0, pos) || null;
  24474. parts.port = null;
  24475. } else {
  24476. t = string.substring(0, pos).split(':');
  24477. parts.hostname = t[0] || null;
  24478. parts.port = t[1] || null;
  24479. }
  24480. }
  24481. if (parts.hostname && string.substring(pos).charAt(0) !== '/') {
  24482. pos++;
  24483. string = '/' + string;
  24484. }
  24485. if (parts.preventInvalidHostname) {
  24486. URI.ensureValidHostname(parts.hostname, parts.protocol);
  24487. }
  24488. if (parts.port) {
  24489. URI.ensureValidPort(parts.port);
  24490. }
  24491. return string.substring(pos) || '/';
  24492. };
  24493. URI.parseAuthority = function(string, parts) {
  24494. string = URI.parseUserinfo(string, parts);
  24495. return URI.parseHost(string, parts);
  24496. };
  24497. URI.parseUserinfo = function(string, parts) {
  24498. // extract username:password
  24499. var firstSlash = string.indexOf('/');
  24500. var pos = string.lastIndexOf('@', firstSlash > -1 ? firstSlash : string.length - 1);
  24501. var t;
  24502. // authority@ must come before /path
  24503. if (pos > -1 && (firstSlash === -1 || pos < firstSlash)) {
  24504. t = string.substring(0, pos).split(':');
  24505. parts.username = t[0] ? URI.decode(t[0]) : null;
  24506. t.shift();
  24507. parts.password = t[0] ? URI.decode(t.join(':')) : null;
  24508. string = string.substring(pos + 1);
  24509. } else {
  24510. parts.username = null;
  24511. parts.password = null;
  24512. }
  24513. return string;
  24514. };
  24515. URI.parseQuery = function(string, escapeQuerySpace) {
  24516. if (!string) {
  24517. return {};
  24518. }
  24519. // throw out the funky business - "?"[name"="value"&"]+
  24520. string = string.replace(/&+/g, '&').replace(/^\?*&*|&+$/g, '');
  24521. if (!string) {
  24522. return {};
  24523. }
  24524. var items = {};
  24525. var splits = string.split('&');
  24526. var length = splits.length;
  24527. var v, name, value;
  24528. for (var i = 0; i < length; i++) {
  24529. v = splits[i].split('=');
  24530. name = URI.decodeQuery(v.shift(), escapeQuerySpace);
  24531. // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
  24532. value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
  24533. if (hasOwn.call(items, name)) {
  24534. if (typeof items[name] === 'string' || items[name] === null) {
  24535. items[name] = [items[name]];
  24536. }
  24537. items[name].push(value);
  24538. } else {
  24539. items[name] = value;
  24540. }
  24541. }
  24542. return items;
  24543. };
  24544. URI.build = function(parts) {
  24545. var t = '';
  24546. if (parts.protocol) {
  24547. t += parts.protocol + ':';
  24548. }
  24549. if (!parts.urn && (t || parts.hostname)) {
  24550. t += '//';
  24551. }
  24552. t += (URI.buildAuthority(parts) || '');
  24553. if (typeof parts.path === 'string') {
  24554. if (parts.path.charAt(0) !== '/' && typeof parts.hostname === 'string') {
  24555. t += '/';
  24556. }
  24557. t += parts.path;
  24558. }
  24559. if (typeof parts.query === 'string' && parts.query) {
  24560. t += '?' + parts.query;
  24561. }
  24562. if (typeof parts.fragment === 'string' && parts.fragment) {
  24563. t += '#' + parts.fragment;
  24564. }
  24565. return t;
  24566. };
  24567. URI.buildHost = function(parts) {
  24568. var t = '';
  24569. if (!parts.hostname) {
  24570. return '';
  24571. } else if (URI.ip6_expression.test(parts.hostname)) {
  24572. t += '[' + parts.hostname + ']';
  24573. } else {
  24574. t += parts.hostname;
  24575. }
  24576. if (parts.port) {
  24577. t += ':' + parts.port;
  24578. }
  24579. return t;
  24580. };
  24581. URI.buildAuthority = function(parts) {
  24582. return URI.buildUserinfo(parts) + URI.buildHost(parts);
  24583. };
  24584. URI.buildUserinfo = function(parts) {
  24585. var t = '';
  24586. if (parts.username) {
  24587. t += URI.encode(parts.username);
  24588. }
  24589. if (parts.password) {
  24590. t += ':' + URI.encode(parts.password);
  24591. }
  24592. if (t) {
  24593. t += '@';
  24594. }
  24595. return t;
  24596. };
  24597. URI.buildQuery = function(data, duplicateQueryParameters, escapeQuerySpace) {
  24598. // according to http://tools.ietf.org/html/rfc3986 or http://labs.apache.org/webarch/uri/rfc/rfc3986.html
  24599. // being »-._~!$&'()*+,;=:@/?« %HEX and alnum are allowed
  24600. // the RFC explicitly states ?/foo being a valid use case, no mention of parameter syntax!
  24601. // URI.js treats the query string as being application/x-www-form-urlencoded
  24602. // see http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type
  24603. var t = '';
  24604. var unique, key, i, length;
  24605. for (key in data) {
  24606. if (hasOwn.call(data, key) && key) {
  24607. if (isArray(data[key])) {
  24608. unique = {};
  24609. for (i = 0, length = data[key].length; i < length; i++) {
  24610. if (data[key][i] !== undefined && unique[data[key][i] + ''] === undefined) {
  24611. t += '&' + URI.buildQueryParameter(key, data[key][i], escapeQuerySpace);
  24612. if (duplicateQueryParameters !== true) {
  24613. unique[data[key][i] + ''] = true;
  24614. }
  24615. }
  24616. }
  24617. } else if (data[key] !== undefined) {
  24618. t += '&' + URI.buildQueryParameter(key, data[key], escapeQuerySpace);
  24619. }
  24620. }
  24621. }
  24622. return t.substring(1);
  24623. };
  24624. URI.buildQueryParameter = function(name, value, escapeQuerySpace) {
  24625. // http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type -- application/x-www-form-urlencoded
  24626. // don't append "=" for null values, according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#url-parameter-serialization
  24627. return URI.encodeQuery(name, escapeQuerySpace) + (value !== null ? '=' + URI.encodeQuery(value, escapeQuerySpace) : '');
  24628. };
  24629. URI.addQuery = function(data, name, value) {
  24630. if (typeof name === 'object') {
  24631. for (var key in name) {
  24632. if (hasOwn.call(name, key)) {
  24633. URI.addQuery(data, key, name[key]);
  24634. }
  24635. }
  24636. } else if (typeof name === 'string') {
  24637. if (data[name] === undefined) {
  24638. data[name] = value;
  24639. return;
  24640. } else if (typeof data[name] === 'string') {
  24641. data[name] = [data[name]];
  24642. }
  24643. if (!isArray(value)) {
  24644. value = [value];
  24645. }
  24646. data[name] = (data[name] || []).concat(value);
  24647. } else {
  24648. throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
  24649. }
  24650. };
  24651. URI.setQuery = function(data, name, value) {
  24652. if (typeof name === 'object') {
  24653. for (var key in name) {
  24654. if (hasOwn.call(name, key)) {
  24655. URI.setQuery(data, key, name[key]);
  24656. }
  24657. }
  24658. } else if (typeof name === 'string') {
  24659. data[name] = value === undefined ? null : value;
  24660. } else {
  24661. throw new TypeError('URI.setQuery() accepts an object, string as the name parameter');
  24662. }
  24663. };
  24664. URI.removeQuery = function(data, name, value) {
  24665. var i, length, key;
  24666. if (isArray(name)) {
  24667. for (i = 0, length = name.length; i < length; i++) {
  24668. data[name[i]] = undefined;
  24669. }
  24670. } else if (getType(name) === 'RegExp') {
  24671. for (key in data) {
  24672. if (name.test(key)) {
  24673. data[key] = undefined;
  24674. }
  24675. }
  24676. } else if (typeof name === 'object') {
  24677. for (key in name) {
  24678. if (hasOwn.call(name, key)) {
  24679. URI.removeQuery(data, key, name[key]);
  24680. }
  24681. }
  24682. } else if (typeof name === 'string') {
  24683. if (value !== undefined) {
  24684. if (getType(value) === 'RegExp') {
  24685. if (!isArray(data[name]) && value.test(data[name])) {
  24686. data[name] = undefined;
  24687. } else {
  24688. data[name] = filterArrayValues(data[name], value);
  24689. }
  24690. } else if (data[name] === String(value) && (!isArray(value) || value.length === 1)) {
  24691. data[name] = undefined;
  24692. } else if (isArray(data[name])) {
  24693. data[name] = filterArrayValues(data[name], value);
  24694. }
  24695. } else {
  24696. data[name] = undefined;
  24697. }
  24698. } else {
  24699. throw new TypeError('URI.removeQuery() accepts an object, string, RegExp as the first parameter');
  24700. }
  24701. };
  24702. URI.hasQuery = function(data, name, value, withinArray) {
  24703. switch (getType(name)) {
  24704. case 'String':
  24705. // Nothing to do here
  24706. break;
  24707. case 'RegExp':
  24708. for (var key in data) {
  24709. if (hasOwn.call(data, key)) {
  24710. if (name.test(key) && (value === undefined || URI.hasQuery(data, key, value))) {
  24711. return true;
  24712. }
  24713. }
  24714. }
  24715. return false;
  24716. case 'Object':
  24717. for (var _key in name) {
  24718. if (hasOwn.call(name, _key)) {
  24719. if (!URI.hasQuery(data, _key, name[_key])) {
  24720. return false;
  24721. }
  24722. }
  24723. }
  24724. return true;
  24725. default:
  24726. throw new TypeError('URI.hasQuery() accepts a string, regular expression or object as the name parameter');
  24727. }
  24728. switch (getType(value)) {
  24729. case 'Undefined':
  24730. // true if exists (but may be empty)
  24731. return name in data; // data[name] !== undefined;
  24732. case 'Boolean':
  24733. // true if exists and non-empty
  24734. var _booly = Boolean(isArray(data[name]) ? data[name].length : data[name]);
  24735. return value === _booly;
  24736. case 'Function':
  24737. // allow complex comparison
  24738. return !!value(data[name], name, data);
  24739. case 'Array':
  24740. if (!isArray(data[name])) {
  24741. return false;
  24742. }
  24743. var op = withinArray ? arrayContains : arraysEqual;
  24744. return op(data[name], value);
  24745. case 'RegExp':
  24746. if (!isArray(data[name])) {
  24747. return Boolean(data[name] && data[name].match(value));
  24748. }
  24749. if (!withinArray) {
  24750. return false;
  24751. }
  24752. return arrayContains(data[name], value);
  24753. case 'Number':
  24754. value = String(value);
  24755. /* falls through */
  24756. case 'String':
  24757. if (!isArray(data[name])) {
  24758. return data[name] === value;
  24759. }
  24760. if (!withinArray) {
  24761. return false;
  24762. }
  24763. return arrayContains(data[name], value);
  24764. default:
  24765. throw new TypeError('URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter');
  24766. }
  24767. };
  24768. URI.joinPaths = function() {
  24769. var input = [];
  24770. var segments = [];
  24771. var nonEmptySegments = 0;
  24772. for (var i = 0; i < arguments.length; i++) {
  24773. var url = new URI(arguments[i]);
  24774. input.push(url);
  24775. var _segments = url.segment();
  24776. for (var s = 0; s < _segments.length; s++) {
  24777. if (typeof _segments[s] === 'string') {
  24778. segments.push(_segments[s]);
  24779. }
  24780. if (_segments[s]) {
  24781. nonEmptySegments++;
  24782. }
  24783. }
  24784. }
  24785. if (!segments.length || !nonEmptySegments) {
  24786. return new URI('');
  24787. }
  24788. var uri = new URI('').segment(segments);
  24789. if (input[0].path() === '' || input[0].path().slice(0, 1) === '/') {
  24790. uri.path('/' + uri.path());
  24791. }
  24792. return uri.normalize();
  24793. };
  24794. URI.commonPath = function(one, two) {
  24795. var length = Math.min(one.length, two.length);
  24796. var pos;
  24797. // find first non-matching character
  24798. for (pos = 0; pos < length; pos++) {
  24799. if (one.charAt(pos) !== two.charAt(pos)) {
  24800. pos--;
  24801. break;
  24802. }
  24803. }
  24804. if (pos < 1) {
  24805. return one.charAt(0) === two.charAt(0) && one.charAt(0) === '/' ? '/' : '';
  24806. }
  24807. // revert to last /
  24808. if (one.charAt(pos) !== '/' || two.charAt(pos) !== '/') {
  24809. pos = one.substring(0, pos).lastIndexOf('/');
  24810. }
  24811. return one.substring(0, pos + 1);
  24812. };
  24813. URI.withinString = function(string, callback, options) {
  24814. options || (options = {});
  24815. var _start = options.start || URI.findUri.start;
  24816. var _end = options.end || URI.findUri.end;
  24817. var _trim = options.trim || URI.findUri.trim;
  24818. var _parens = options.parens || URI.findUri.parens;
  24819. var _attributeOpen = /[a-z0-9-]=["']?$/i;
  24820. _start.lastIndex = 0;
  24821. while (true) {
  24822. var match = _start.exec(string);
  24823. if (!match) {
  24824. break;
  24825. }
  24826. var start = match.index;
  24827. if (options.ignoreHtml) {
  24828. // attribut(e=["']?$)
  24829. var attributeOpen = string.slice(Math.max(start - 3, 0), start);
  24830. if (attributeOpen && _attributeOpen.test(attributeOpen)) {
  24831. continue;
  24832. }
  24833. }
  24834. var end = start + string.slice(start).search(_end);
  24835. var slice = string.slice(start, end);
  24836. // make sure we include well balanced parens
  24837. var parensEnd = -1;
  24838. while (true) {
  24839. var parensMatch = _parens.exec(slice);
  24840. if (!parensMatch) {
  24841. break;
  24842. }
  24843. var parensMatchEnd = parensMatch.index + parensMatch[0].length;
  24844. parensEnd = Math.max(parensEnd, parensMatchEnd);
  24845. }
  24846. if (parensEnd > -1) {
  24847. slice = slice.slice(0, parensEnd) + slice.slice(parensEnd).replace(_trim, '');
  24848. } else {
  24849. slice = slice.replace(_trim, '');
  24850. }
  24851. if (slice.length <= match[0].length) {
  24852. // the extract only contains the starting marker of a URI,
  24853. // e.g. "www" or "http://"
  24854. continue;
  24855. }
  24856. if (options.ignore && options.ignore.test(slice)) {
  24857. continue;
  24858. }
  24859. end = start + slice.length;
  24860. var result = callback(slice, start, end, string);
  24861. if (result === undefined) {
  24862. _start.lastIndex = end;
  24863. continue;
  24864. }
  24865. result = String(result);
  24866. string = string.slice(0, start) + result + string.slice(end);
  24867. _start.lastIndex = start + result.length;
  24868. }
  24869. _start.lastIndex = 0;
  24870. return string;
  24871. };
  24872. URI.ensureValidHostname = function(v, protocol) {
  24873. // Theoretically URIs allow percent-encoding in Hostnames (according to RFC 3986)
  24874. // they are not part of DNS and therefore ignored by URI.js
  24875. var hasHostname = !!v; // not null and not an empty string
  24876. var hasProtocol = !!protocol;
  24877. var rejectEmptyHostname = false;
  24878. if (hasProtocol) {
  24879. rejectEmptyHostname = arrayContains(URI.hostProtocols, protocol);
  24880. }
  24881. if (rejectEmptyHostname && !hasHostname) {
  24882. throw new TypeError('Hostname cannot be empty, if protocol is ' + protocol);
  24883. } else if (v && v.match(URI.invalid_hostname_characters)) {
  24884. // test punycode
  24885. if (!punycode) {
  24886. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');
  24887. }
  24888. if (punycode.toASCII(v).match(URI.invalid_hostname_characters)) {
  24889. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-:_]');
  24890. }
  24891. }
  24892. };
  24893. URI.ensureValidPort = function (v) {
  24894. if (!v) {
  24895. return;
  24896. }
  24897. var port = Number(v);
  24898. if (isInteger(port) && (port > 0) && (port < 65536)) {
  24899. return;
  24900. }
  24901. throw new TypeError('Port "' + v + '" is not a valid port');
  24902. };
  24903. // noConflict
  24904. URI.noConflict = function(removeAll) {
  24905. if (removeAll) {
  24906. var unconflicted = {
  24907. URI: this.noConflict()
  24908. };
  24909. if (root.URITemplate && typeof root.URITemplate.noConflict === 'function') {
  24910. unconflicted.URITemplate = root.URITemplate.noConflict();
  24911. }
  24912. if (root.IPv6 && typeof root.IPv6.noConflict === 'function') {
  24913. unconflicted.IPv6 = root.IPv6.noConflict();
  24914. }
  24915. if (root.SecondLevelDomains && typeof root.SecondLevelDomains.noConflict === 'function') {
  24916. unconflicted.SecondLevelDomains = root.SecondLevelDomains.noConflict();
  24917. }
  24918. return unconflicted;
  24919. } else if (root.URI === this) {
  24920. root.URI = _URI;
  24921. }
  24922. return this;
  24923. };
  24924. p.build = function(deferBuild) {
  24925. if (deferBuild === true) {
  24926. this._deferred_build = true;
  24927. } else if (deferBuild === undefined || this._deferred_build) {
  24928. this._string = URI.build(this._parts);
  24929. this._deferred_build = false;
  24930. }
  24931. return this;
  24932. };
  24933. p.clone = function() {
  24934. return new URI(this);
  24935. };
  24936. p.valueOf = p.toString = function() {
  24937. return this.build(false)._string;
  24938. };
  24939. function generateSimpleAccessor(_part){
  24940. return function(v, build) {
  24941. if (v === undefined) {
  24942. return this._parts[_part] || '';
  24943. } else {
  24944. this._parts[_part] = v || null;
  24945. this.build(!build);
  24946. return this;
  24947. }
  24948. };
  24949. }
  24950. function generatePrefixAccessor(_part, _key){
  24951. return function(v, build) {
  24952. if (v === undefined) {
  24953. return this._parts[_part] || '';
  24954. } else {
  24955. if (v !== null) {
  24956. v = v + '';
  24957. if (v.charAt(0) === _key) {
  24958. v = v.substring(1);
  24959. }
  24960. }
  24961. this._parts[_part] = v;
  24962. this.build(!build);
  24963. return this;
  24964. }
  24965. };
  24966. }
  24967. p.protocol = generateSimpleAccessor('protocol');
  24968. p.username = generateSimpleAccessor('username');
  24969. p.password = generateSimpleAccessor('password');
  24970. p.hostname = generateSimpleAccessor('hostname');
  24971. p.port = generateSimpleAccessor('port');
  24972. p.query = generatePrefixAccessor('query', '?');
  24973. p.fragment = generatePrefixAccessor('fragment', '#');
  24974. p.search = function(v, build) {
  24975. var t = this.query(v, build);
  24976. return typeof t === 'string' && t.length ? ('?' + t) : t;
  24977. };
  24978. p.hash = function(v, build) {
  24979. var t = this.fragment(v, build);
  24980. return typeof t === 'string' && t.length ? ('#' + t) : t;
  24981. };
  24982. p.pathname = function(v, build) {
  24983. if (v === undefined || v === true) {
  24984. var res = this._parts.path || (this._parts.hostname ? '/' : '');
  24985. return v ? (this._parts.urn ? URI.decodeUrnPath : URI.decodePath)(res) : res;
  24986. } else {
  24987. if (this._parts.urn) {
  24988. this._parts.path = v ? URI.recodeUrnPath(v) : '';
  24989. } else {
  24990. this._parts.path = v ? URI.recodePath(v) : '/';
  24991. }
  24992. this.build(!build);
  24993. return this;
  24994. }
  24995. };
  24996. p.path = p.pathname;
  24997. p.href = function(href, build) {
  24998. var key;
  24999. if (href === undefined) {
  25000. return this.toString();
  25001. }
  25002. this._string = '';
  25003. this._parts = URI._parts();
  25004. var _URI = href instanceof URI;
  25005. var _object = typeof href === 'object' && (href.hostname || href.path || href.pathname);
  25006. if (href.nodeName) {
  25007. var attribute = URI.getDomAttribute(href);
  25008. href = href[attribute] || '';
  25009. _object = false;
  25010. }
  25011. // window.location is reported to be an object, but it's not the sort
  25012. // of object we're looking for:
  25013. // * location.protocol ends with a colon
  25014. // * location.query != object.search
  25015. // * location.hash != object.fragment
  25016. // simply serializing the unknown object should do the trick
  25017. // (for location, not for everything...)
  25018. if (!_URI && _object && href.pathname !== undefined) {
  25019. href = href.toString();
  25020. }
  25021. if (typeof href === 'string' || href instanceof String) {
  25022. this._parts = URI.parse(String(href), this._parts);
  25023. } else if (_URI || _object) {
  25024. var src = _URI ? href._parts : href;
  25025. for (key in src) {
  25026. if (key === 'query') { continue; }
  25027. if (hasOwn.call(this._parts, key)) {
  25028. this._parts[key] = src[key];
  25029. }
  25030. }
  25031. if (src.query) {
  25032. this.query(src.query, false);
  25033. }
  25034. } else {
  25035. throw new TypeError('invalid input');
  25036. }
  25037. this.build(!build);
  25038. return this;
  25039. };
  25040. // identification accessors
  25041. p.is = function(what) {
  25042. var ip = false;
  25043. var ip4 = false;
  25044. var ip6 = false;
  25045. var name = false;
  25046. var sld = false;
  25047. var idn = false;
  25048. var punycode = false;
  25049. var relative = !this._parts.urn;
  25050. if (this._parts.hostname) {
  25051. relative = false;
  25052. ip4 = URI.ip4_expression.test(this._parts.hostname);
  25053. ip6 = URI.ip6_expression.test(this._parts.hostname);
  25054. ip = ip4 || ip6;
  25055. name = !ip;
  25056. sld = name && SLD && SLD.has(this._parts.hostname);
  25057. idn = name && URI.idn_expression.test(this._parts.hostname);
  25058. punycode = name && URI.punycode_expression.test(this._parts.hostname);
  25059. }
  25060. switch (what.toLowerCase()) {
  25061. case 'relative':
  25062. return relative;
  25063. case 'absolute':
  25064. return !relative;
  25065. // hostname identification
  25066. case 'domain':
  25067. case 'name':
  25068. return name;
  25069. case 'sld':
  25070. return sld;
  25071. case 'ip':
  25072. return ip;
  25073. case 'ip4':
  25074. case 'ipv4':
  25075. case 'inet4':
  25076. return ip4;
  25077. case 'ip6':
  25078. case 'ipv6':
  25079. case 'inet6':
  25080. return ip6;
  25081. case 'idn':
  25082. return idn;
  25083. case 'url':
  25084. return !this._parts.urn;
  25085. case 'urn':
  25086. return !!this._parts.urn;
  25087. case 'punycode':
  25088. return punycode;
  25089. }
  25090. return null;
  25091. };
  25092. // component specific input validation
  25093. var _protocol = p.protocol;
  25094. var _port = p.port;
  25095. var _hostname = p.hostname;
  25096. p.protocol = function(v, build) {
  25097. if (v) {
  25098. // accept trailing ://
  25099. v = v.replace(/:(\/\/)?$/, '');
  25100. if (!v.match(URI.protocol_expression)) {
  25101. throw new TypeError('Protocol "' + v + '" contains characters other than [A-Z0-9.+-] or doesn\'t start with [A-Z]');
  25102. }
  25103. }
  25104. return _protocol.call(this, v, build);
  25105. };
  25106. p.scheme = p.protocol;
  25107. p.port = function(v, build) {
  25108. if (this._parts.urn) {
  25109. return v === undefined ? '' : this;
  25110. }
  25111. if (v !== undefined) {
  25112. if (v === 0) {
  25113. v = null;
  25114. }
  25115. if (v) {
  25116. v += '';
  25117. if (v.charAt(0) === ':') {
  25118. v = v.substring(1);
  25119. }
  25120. URI.ensureValidPort(v);
  25121. }
  25122. }
  25123. return _port.call(this, v, build);
  25124. };
  25125. p.hostname = function(v, build) {
  25126. if (this._parts.urn) {
  25127. return v === undefined ? '' : this;
  25128. }
  25129. if (v !== undefined) {
  25130. var x = { preventInvalidHostname: this._parts.preventInvalidHostname };
  25131. var res = URI.parseHost(v, x);
  25132. if (res !== '/') {
  25133. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  25134. }
  25135. v = x.hostname;
  25136. if (this._parts.preventInvalidHostname) {
  25137. URI.ensureValidHostname(v, this._parts.protocol);
  25138. }
  25139. }
  25140. return _hostname.call(this, v, build);
  25141. };
  25142. // compound accessors
  25143. p.origin = function(v, build) {
  25144. if (this._parts.urn) {
  25145. return v === undefined ? '' : this;
  25146. }
  25147. if (v === undefined) {
  25148. var protocol = this.protocol();
  25149. var authority = this.authority();
  25150. if (!authority) {
  25151. return '';
  25152. }
  25153. return (protocol ? protocol + '://' : '') + this.authority();
  25154. } else {
  25155. var origin = URI(v);
  25156. this
  25157. .protocol(origin.protocol())
  25158. .authority(origin.authority())
  25159. .build(!build);
  25160. return this;
  25161. }
  25162. };
  25163. p.host = function(v, build) {
  25164. if (this._parts.urn) {
  25165. return v === undefined ? '' : this;
  25166. }
  25167. if (v === undefined) {
  25168. return this._parts.hostname ? URI.buildHost(this._parts) : '';
  25169. } else {
  25170. var res = URI.parseHost(v, this._parts);
  25171. if (res !== '/') {
  25172. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  25173. }
  25174. this.build(!build);
  25175. return this;
  25176. }
  25177. };
  25178. p.authority = function(v, build) {
  25179. if (this._parts.urn) {
  25180. return v === undefined ? '' : this;
  25181. }
  25182. if (v === undefined) {
  25183. return this._parts.hostname ? URI.buildAuthority(this._parts) : '';
  25184. } else {
  25185. var res = URI.parseAuthority(v, this._parts);
  25186. if (res !== '/') {
  25187. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  25188. }
  25189. this.build(!build);
  25190. return this;
  25191. }
  25192. };
  25193. p.userinfo = function(v, build) {
  25194. if (this._parts.urn) {
  25195. return v === undefined ? '' : this;
  25196. }
  25197. if (v === undefined) {
  25198. var t = URI.buildUserinfo(this._parts);
  25199. return t ? t.substring(0, t.length -1) : t;
  25200. } else {
  25201. if (v[v.length-1] !== '@') {
  25202. v += '@';
  25203. }
  25204. URI.parseUserinfo(v, this._parts);
  25205. this.build(!build);
  25206. return this;
  25207. }
  25208. };
  25209. p.resource = function(v, build) {
  25210. var parts;
  25211. if (v === undefined) {
  25212. return this.path() + this.search() + this.hash();
  25213. }
  25214. parts = URI.parse(v);
  25215. this._parts.path = parts.path;
  25216. this._parts.query = parts.query;
  25217. this._parts.fragment = parts.fragment;
  25218. this.build(!build);
  25219. return this;
  25220. };
  25221. // fraction accessors
  25222. p.subdomain = function(v, build) {
  25223. if (this._parts.urn) {
  25224. return v === undefined ? '' : this;
  25225. }
  25226. // convenience, return "www" from "www.example.org"
  25227. if (v === undefined) {
  25228. if (!this._parts.hostname || this.is('IP')) {
  25229. return '';
  25230. }
  25231. // grab domain and add another segment
  25232. var end = this._parts.hostname.length - this.domain().length - 1;
  25233. return this._parts.hostname.substring(0, end) || '';
  25234. } else {
  25235. var e = this._parts.hostname.length - this.domain().length;
  25236. var sub = this._parts.hostname.substring(0, e);
  25237. var replace = new RegExp('^' + escapeRegEx(sub));
  25238. if (v && v.charAt(v.length - 1) !== '.') {
  25239. v += '.';
  25240. }
  25241. if (v.indexOf(':') !== -1) {
  25242. throw new TypeError('Domains cannot contain colons');
  25243. }
  25244. if (v) {
  25245. URI.ensureValidHostname(v, this._parts.protocol);
  25246. }
  25247. this._parts.hostname = this._parts.hostname.replace(replace, v);
  25248. this.build(!build);
  25249. return this;
  25250. }
  25251. };
  25252. p.domain = function(v, build) {
  25253. if (this._parts.urn) {
  25254. return v === undefined ? '' : this;
  25255. }
  25256. if (typeof v === 'boolean') {
  25257. build = v;
  25258. v = undefined;
  25259. }
  25260. // convenience, return "example.org" from "www.example.org"
  25261. if (v === undefined) {
  25262. if (!this._parts.hostname || this.is('IP')) {
  25263. return '';
  25264. }
  25265. // if hostname consists of 1 or 2 segments, it must be the domain
  25266. var t = this._parts.hostname.match(/\./g);
  25267. if (t && t.length < 2) {
  25268. return this._parts.hostname;
  25269. }
  25270. // grab tld and add another segment
  25271. var end = this._parts.hostname.length - this.tld(build).length - 1;
  25272. end = this._parts.hostname.lastIndexOf('.', end -1) + 1;
  25273. return this._parts.hostname.substring(end) || '';
  25274. } else {
  25275. if (!v) {
  25276. throw new TypeError('cannot set domain empty');
  25277. }
  25278. if (v.indexOf(':') !== -1) {
  25279. throw new TypeError('Domains cannot contain colons');
  25280. }
  25281. URI.ensureValidHostname(v, this._parts.protocol);
  25282. if (!this._parts.hostname || this.is('IP')) {
  25283. this._parts.hostname = v;
  25284. } else {
  25285. var replace = new RegExp(escapeRegEx(this.domain()) + '$');
  25286. this._parts.hostname = this._parts.hostname.replace(replace, v);
  25287. }
  25288. this.build(!build);
  25289. return this;
  25290. }
  25291. };
  25292. p.tld = function(v, build) {
  25293. if (this._parts.urn) {
  25294. return v === undefined ? '' : this;
  25295. }
  25296. if (typeof v === 'boolean') {
  25297. build = v;
  25298. v = undefined;
  25299. }
  25300. // return "org" from "www.example.org"
  25301. if (v === undefined) {
  25302. if (!this._parts.hostname || this.is('IP')) {
  25303. return '';
  25304. }
  25305. var pos = this._parts.hostname.lastIndexOf('.');
  25306. var tld = this._parts.hostname.substring(pos + 1);
  25307. if (build !== true && SLD && SLD.list[tld.toLowerCase()]) {
  25308. return SLD.get(this._parts.hostname) || tld;
  25309. }
  25310. return tld;
  25311. } else {
  25312. var replace;
  25313. if (!v) {
  25314. throw new TypeError('cannot set TLD empty');
  25315. } else if (v.match(/[^a-zA-Z0-9-]/)) {
  25316. if (SLD && SLD.is(v)) {
  25317. replace = new RegExp(escapeRegEx(this.tld()) + '$');
  25318. this._parts.hostname = this._parts.hostname.replace(replace, v);
  25319. } else {
  25320. throw new TypeError('TLD "' + v + '" contains characters other than [A-Z0-9]');
  25321. }
  25322. } else if (!this._parts.hostname || this.is('IP')) {
  25323. throw new ReferenceError('cannot set TLD on non-domain host');
  25324. } else {
  25325. replace = new RegExp(escapeRegEx(this.tld()) + '$');
  25326. this._parts.hostname = this._parts.hostname.replace(replace, v);
  25327. }
  25328. this.build(!build);
  25329. return this;
  25330. }
  25331. };
  25332. p.directory = function(v, build) {
  25333. if (this._parts.urn) {
  25334. return v === undefined ? '' : this;
  25335. }
  25336. if (v === undefined || v === true) {
  25337. if (!this._parts.path && !this._parts.hostname) {
  25338. return '';
  25339. }
  25340. if (this._parts.path === '/') {
  25341. return '/';
  25342. }
  25343. var end = this._parts.path.length - this.filename().length - 1;
  25344. var res = this._parts.path.substring(0, end) || (this._parts.hostname ? '/' : '');
  25345. return v ? URI.decodePath(res) : res;
  25346. } else {
  25347. var e = this._parts.path.length - this.filename().length;
  25348. var directory = this._parts.path.substring(0, e);
  25349. var replace = new RegExp('^' + escapeRegEx(directory));
  25350. // fully qualifier directories begin with a slash
  25351. if (!this.is('relative')) {
  25352. if (!v) {
  25353. v = '/';
  25354. }
  25355. if (v.charAt(0) !== '/') {
  25356. v = '/' + v;
  25357. }
  25358. }
  25359. // directories always end with a slash
  25360. if (v && v.charAt(v.length - 1) !== '/') {
  25361. v += '/';
  25362. }
  25363. v = URI.recodePath(v);
  25364. this._parts.path = this._parts.path.replace(replace, v);
  25365. this.build(!build);
  25366. return this;
  25367. }
  25368. };
  25369. p.filename = function(v, build) {
  25370. if (this._parts.urn) {
  25371. return v === undefined ? '' : this;
  25372. }
  25373. if (typeof v !== 'string') {
  25374. if (!this._parts.path || this._parts.path === '/') {
  25375. return '';
  25376. }
  25377. var pos = this._parts.path.lastIndexOf('/');
  25378. var res = this._parts.path.substring(pos+1);
  25379. return v ? URI.decodePathSegment(res) : res;
  25380. } else {
  25381. var mutatedDirectory = false;
  25382. if (v.charAt(0) === '/') {
  25383. v = v.substring(1);
  25384. }
  25385. if (v.match(/\.?\//)) {
  25386. mutatedDirectory = true;
  25387. }
  25388. var replace = new RegExp(escapeRegEx(this.filename()) + '$');
  25389. v = URI.recodePath(v);
  25390. this._parts.path = this._parts.path.replace(replace, v);
  25391. if (mutatedDirectory) {
  25392. this.normalizePath(build);
  25393. } else {
  25394. this.build(!build);
  25395. }
  25396. return this;
  25397. }
  25398. };
  25399. p.suffix = function(v, build) {
  25400. if (this._parts.urn) {
  25401. return v === undefined ? '' : this;
  25402. }
  25403. if (v === undefined || v === true) {
  25404. if (!this._parts.path || this._parts.path === '/') {
  25405. return '';
  25406. }
  25407. var filename = this.filename();
  25408. var pos = filename.lastIndexOf('.');
  25409. var s, res;
  25410. if (pos === -1) {
  25411. return '';
  25412. }
  25413. // suffix may only contain alnum characters (yup, I made this up.)
  25414. s = filename.substring(pos+1);
  25415. res = (/^[a-z0-9%]+$/i).test(s) ? s : '';
  25416. return v ? URI.decodePathSegment(res) : res;
  25417. } else {
  25418. if (v.charAt(0) === '.') {
  25419. v = v.substring(1);
  25420. }
  25421. var suffix = this.suffix();
  25422. var replace;
  25423. if (!suffix) {
  25424. if (!v) {
  25425. return this;
  25426. }
  25427. this._parts.path += '.' + URI.recodePath(v);
  25428. } else if (!v) {
  25429. replace = new RegExp(escapeRegEx('.' + suffix) + '$');
  25430. } else {
  25431. replace = new RegExp(escapeRegEx(suffix) + '$');
  25432. }
  25433. if (replace) {
  25434. v = URI.recodePath(v);
  25435. this._parts.path = this._parts.path.replace(replace, v);
  25436. }
  25437. this.build(!build);
  25438. return this;
  25439. }
  25440. };
  25441. p.segment = function(segment, v, build) {
  25442. var separator = this._parts.urn ? ':' : '/';
  25443. var path = this.path();
  25444. var absolute = path.substring(0, 1) === '/';
  25445. var segments = path.split(separator);
  25446. if (segment !== undefined && typeof segment !== 'number') {
  25447. build = v;
  25448. v = segment;
  25449. segment = undefined;
  25450. }
  25451. if (segment !== undefined && typeof segment !== 'number') {
  25452. throw new Error('Bad segment "' + segment + '", must be 0-based integer');
  25453. }
  25454. if (absolute) {
  25455. segments.shift();
  25456. }
  25457. if (segment < 0) {
  25458. // allow negative indexes to address from the end
  25459. segment = Math.max(segments.length + segment, 0);
  25460. }
  25461. if (v === undefined) {
  25462. /*jshint laxbreak: true */
  25463. return segment === undefined
  25464. ? segments
  25465. : segments[segment];
  25466. /*jshint laxbreak: false */
  25467. } else if (segment === null || segments[segment] === undefined) {
  25468. if (isArray(v)) {
  25469. segments = [];
  25470. // collapse empty elements within array
  25471. for (var i=0, l=v.length; i < l; i++) {
  25472. if (!v[i].length && (!segments.length || !segments[segments.length -1].length)) {
  25473. continue;
  25474. }
  25475. if (segments.length && !segments[segments.length -1].length) {
  25476. segments.pop();
  25477. }
  25478. segments.push(trimSlashes(v[i]));
  25479. }
  25480. } else if (v || typeof v === 'string') {
  25481. v = trimSlashes(v);
  25482. if (segments[segments.length -1] === '') {
  25483. // empty trailing elements have to be overwritten
  25484. // to prevent results such as /foo//bar
  25485. segments[segments.length -1] = v;
  25486. } else {
  25487. segments.push(v);
  25488. }
  25489. }
  25490. } else {
  25491. if (v) {
  25492. segments[segment] = trimSlashes(v);
  25493. } else {
  25494. segments.splice(segment, 1);
  25495. }
  25496. }
  25497. if (absolute) {
  25498. segments.unshift('');
  25499. }
  25500. return this.path(segments.join(separator), build);
  25501. };
  25502. p.segmentCoded = function(segment, v, build) {
  25503. var segments, i, l;
  25504. if (typeof segment !== 'number') {
  25505. build = v;
  25506. v = segment;
  25507. segment = undefined;
  25508. }
  25509. if (v === undefined) {
  25510. segments = this.segment(segment, v, build);
  25511. if (!isArray(segments)) {
  25512. segments = segments !== undefined ? URI.decode(segments) : undefined;
  25513. } else {
  25514. for (i = 0, l = segments.length; i < l; i++) {
  25515. segments[i] = URI.decode(segments[i]);
  25516. }
  25517. }
  25518. return segments;
  25519. }
  25520. if (!isArray(v)) {
  25521. v = (typeof v === 'string' || v instanceof String) ? URI.encode(v) : v;
  25522. } else {
  25523. for (i = 0, l = v.length; i < l; i++) {
  25524. v[i] = URI.encode(v[i]);
  25525. }
  25526. }
  25527. return this.segment(segment, v, build);
  25528. };
  25529. // mutating query string
  25530. var q = p.query;
  25531. p.query = function(v, build) {
  25532. if (v === true) {
  25533. return URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25534. } else if (typeof v === 'function') {
  25535. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25536. var result = v.call(this, data);
  25537. this._parts.query = URI.buildQuery(result || data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25538. this.build(!build);
  25539. return this;
  25540. } else if (v !== undefined && typeof v !== 'string') {
  25541. this._parts.query = URI.buildQuery(v, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25542. this.build(!build);
  25543. return this;
  25544. } else {
  25545. return q.call(this, v, build);
  25546. }
  25547. };
  25548. p.setQuery = function(name, value, build) {
  25549. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25550. if (typeof name === 'string' || name instanceof String) {
  25551. data[name] = value !== undefined ? value : null;
  25552. } else if (typeof name === 'object') {
  25553. for (var key in name) {
  25554. if (hasOwn.call(name, key)) {
  25555. data[key] = name[key];
  25556. }
  25557. }
  25558. } else {
  25559. throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
  25560. }
  25561. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25562. if (typeof name !== 'string') {
  25563. build = value;
  25564. }
  25565. this.build(!build);
  25566. return this;
  25567. };
  25568. p.addQuery = function(name, value, build) {
  25569. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25570. URI.addQuery(data, name, value === undefined ? null : value);
  25571. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25572. if (typeof name !== 'string') {
  25573. build = value;
  25574. }
  25575. this.build(!build);
  25576. return this;
  25577. };
  25578. p.removeQuery = function(name, value, build) {
  25579. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25580. URI.removeQuery(data, name, value);
  25581. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25582. if (typeof name !== 'string') {
  25583. build = value;
  25584. }
  25585. this.build(!build);
  25586. return this;
  25587. };
  25588. p.hasQuery = function(name, value, withinArray) {
  25589. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25590. return URI.hasQuery(data, name, value, withinArray);
  25591. };
  25592. p.setSearch = p.setQuery;
  25593. p.addSearch = p.addQuery;
  25594. p.removeSearch = p.removeQuery;
  25595. p.hasSearch = p.hasQuery;
  25596. // sanitizing URLs
  25597. p.normalize = function() {
  25598. if (this._parts.urn) {
  25599. return this
  25600. .normalizeProtocol(false)
  25601. .normalizePath(false)
  25602. .normalizeQuery(false)
  25603. .normalizeFragment(false)
  25604. .build();
  25605. }
  25606. return this
  25607. .normalizeProtocol(false)
  25608. .normalizeHostname(false)
  25609. .normalizePort(false)
  25610. .normalizePath(false)
  25611. .normalizeQuery(false)
  25612. .normalizeFragment(false)
  25613. .build();
  25614. };
  25615. p.normalizeProtocol = function(build) {
  25616. if (typeof this._parts.protocol === 'string') {
  25617. this._parts.protocol = this._parts.protocol.toLowerCase();
  25618. this.build(!build);
  25619. }
  25620. return this;
  25621. };
  25622. p.normalizeHostname = function(build) {
  25623. if (this._parts.hostname) {
  25624. if (this.is('IDN') && punycode) {
  25625. this._parts.hostname = punycode.toASCII(this._parts.hostname);
  25626. } else if (this.is('IPv6') && IPv6) {
  25627. this._parts.hostname = IPv6.best(this._parts.hostname);
  25628. }
  25629. this._parts.hostname = this._parts.hostname.toLowerCase();
  25630. this.build(!build);
  25631. }
  25632. return this;
  25633. };
  25634. p.normalizePort = function(build) {
  25635. // remove port of it's the protocol's default
  25636. if (typeof this._parts.protocol === 'string' && this._parts.port === URI.defaultPorts[this._parts.protocol]) {
  25637. this._parts.port = null;
  25638. this.build(!build);
  25639. }
  25640. return this;
  25641. };
  25642. p.normalizePath = function(build) {
  25643. var _path = this._parts.path;
  25644. if (!_path) {
  25645. return this;
  25646. }
  25647. if (this._parts.urn) {
  25648. this._parts.path = URI.recodeUrnPath(this._parts.path);
  25649. this.build(!build);
  25650. return this;
  25651. }
  25652. if (this._parts.path === '/') {
  25653. return this;
  25654. }
  25655. _path = URI.recodePath(_path);
  25656. var _was_relative;
  25657. var _leadingParents = '';
  25658. var _parent, _pos;
  25659. // handle relative paths
  25660. if (_path.charAt(0) !== '/') {
  25661. _was_relative = true;
  25662. _path = '/' + _path;
  25663. }
  25664. // handle relative files (as opposed to directories)
  25665. if (_path.slice(-3) === '/..' || _path.slice(-2) === '/.') {
  25666. _path += '/';
  25667. }
  25668. // resolve simples
  25669. _path = _path
  25670. .replace(/(\/(\.\/)+)|(\/\.$)/g, '/')
  25671. .replace(/\/{2,}/g, '/');
  25672. // remember leading parents
  25673. if (_was_relative) {
  25674. _leadingParents = _path.substring(1).match(/^(\.\.\/)+/) || '';
  25675. if (_leadingParents) {
  25676. _leadingParents = _leadingParents[0];
  25677. }
  25678. }
  25679. // resolve parents
  25680. while (true) {
  25681. _parent = _path.search(/\/\.\.(\/|$)/);
  25682. if (_parent === -1) {
  25683. // no more ../ to resolve
  25684. break;
  25685. } else if (_parent === 0) {
  25686. // top level cannot be relative, skip it
  25687. _path = _path.substring(3);
  25688. continue;
  25689. }
  25690. _pos = _path.substring(0, _parent).lastIndexOf('/');
  25691. if (_pos === -1) {
  25692. _pos = _parent;
  25693. }
  25694. _path = _path.substring(0, _pos) + _path.substring(_parent + 3);
  25695. }
  25696. // revert to relative
  25697. if (_was_relative && this.is('relative')) {
  25698. _path = _leadingParents + _path.substring(1);
  25699. }
  25700. this._parts.path = _path;
  25701. this.build(!build);
  25702. return this;
  25703. };
  25704. p.normalizePathname = p.normalizePath;
  25705. p.normalizeQuery = function(build) {
  25706. if (typeof this._parts.query === 'string') {
  25707. if (!this._parts.query.length) {
  25708. this._parts.query = null;
  25709. } else {
  25710. this.query(URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace));
  25711. }
  25712. this.build(!build);
  25713. }
  25714. return this;
  25715. };
  25716. p.normalizeFragment = function(build) {
  25717. if (!this._parts.fragment) {
  25718. this._parts.fragment = null;
  25719. this.build(!build);
  25720. }
  25721. return this;
  25722. };
  25723. p.normalizeSearch = p.normalizeQuery;
  25724. p.normalizeHash = p.normalizeFragment;
  25725. p.iso8859 = function() {
  25726. // expect unicode input, iso8859 output
  25727. var e = URI.encode;
  25728. var d = URI.decode;
  25729. URI.encode = escape;
  25730. URI.decode = decodeURIComponent;
  25731. try {
  25732. this.normalize();
  25733. } finally {
  25734. URI.encode = e;
  25735. URI.decode = d;
  25736. }
  25737. return this;
  25738. };
  25739. p.unicode = function() {
  25740. // expect iso8859 input, unicode output
  25741. var e = URI.encode;
  25742. var d = URI.decode;
  25743. URI.encode = strictEncodeURIComponent;
  25744. URI.decode = unescape;
  25745. try {
  25746. this.normalize();
  25747. } finally {
  25748. URI.encode = e;
  25749. URI.decode = d;
  25750. }
  25751. return this;
  25752. };
  25753. p.readable = function() {
  25754. var uri = this.clone();
  25755. // removing username, password, because they shouldn't be displayed according to RFC 3986
  25756. uri.username('').password('').normalize();
  25757. var t = '';
  25758. if (uri._parts.protocol) {
  25759. t += uri._parts.protocol + '://';
  25760. }
  25761. if (uri._parts.hostname) {
  25762. if (uri.is('punycode') && punycode) {
  25763. t += punycode.toUnicode(uri._parts.hostname);
  25764. if (uri._parts.port) {
  25765. t += ':' + uri._parts.port;
  25766. }
  25767. } else {
  25768. t += uri.host();
  25769. }
  25770. }
  25771. if (uri._parts.hostname && uri._parts.path && uri._parts.path.charAt(0) !== '/') {
  25772. t += '/';
  25773. }
  25774. t += uri.path(true);
  25775. if (uri._parts.query) {
  25776. var q = '';
  25777. for (var i = 0, qp = uri._parts.query.split('&'), l = qp.length; i < l; i++) {
  25778. var kv = (qp[i] || '').split('=');
  25779. q += '&' + URI.decodeQuery(kv[0], this._parts.escapeQuerySpace)
  25780. .replace(/&/g, '%26');
  25781. if (kv[1] !== undefined) {
  25782. q += '=' + URI.decodeQuery(kv[1], this._parts.escapeQuerySpace)
  25783. .replace(/&/g, '%26');
  25784. }
  25785. }
  25786. t += '?' + q.substring(1);
  25787. }
  25788. t += URI.decodeQuery(uri.hash(), true);
  25789. return t;
  25790. };
  25791. // resolving relative and absolute URLs
  25792. p.absoluteTo = function(base) {
  25793. var resolved = this.clone();
  25794. var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
  25795. var basedir, i, p;
  25796. if (this._parts.urn) {
  25797. throw new Error('URNs do not have any generally defined hierarchical components');
  25798. }
  25799. if (!(base instanceof URI)) {
  25800. base = new URI(base);
  25801. }
  25802. if (resolved._parts.protocol) {
  25803. // Directly returns even if this._parts.hostname is empty.
  25804. return resolved;
  25805. } else {
  25806. resolved._parts.protocol = base._parts.protocol;
  25807. }
  25808. if (this._parts.hostname) {
  25809. return resolved;
  25810. }
  25811. for (i = 0; (p = properties[i]); i++) {
  25812. resolved._parts[p] = base._parts[p];
  25813. }
  25814. if (!resolved._parts.path) {
  25815. resolved._parts.path = base._parts.path;
  25816. if (!resolved._parts.query) {
  25817. resolved._parts.query = base._parts.query;
  25818. }
  25819. } else {
  25820. if (resolved._parts.path.substring(-2) === '..') {
  25821. resolved._parts.path += '/';
  25822. }
  25823. if (resolved.path().charAt(0) !== '/') {
  25824. basedir = base.directory();
  25825. basedir = basedir ? basedir : base.path().indexOf('/') === 0 ? '/' : '';
  25826. resolved._parts.path = (basedir ? (basedir + '/') : '') + resolved._parts.path;
  25827. resolved.normalizePath();
  25828. }
  25829. }
  25830. resolved.build();
  25831. return resolved;
  25832. };
  25833. p.relativeTo = function(base) {
  25834. var relative = this.clone().normalize();
  25835. var relativeParts, baseParts, common, relativePath, basePath;
  25836. if (relative._parts.urn) {
  25837. throw new Error('URNs do not have any generally defined hierarchical components');
  25838. }
  25839. base = new URI(base).normalize();
  25840. relativeParts = relative._parts;
  25841. baseParts = base._parts;
  25842. relativePath = relative.path();
  25843. basePath = base.path();
  25844. if (relativePath.charAt(0) !== '/') {
  25845. throw new Error('URI is already relative');
  25846. }
  25847. if (basePath.charAt(0) !== '/') {
  25848. throw new Error('Cannot calculate a URI relative to another relative URI');
  25849. }
  25850. if (relativeParts.protocol === baseParts.protocol) {
  25851. relativeParts.protocol = null;
  25852. }
  25853. if (relativeParts.username !== baseParts.username || relativeParts.password !== baseParts.password) {
  25854. return relative.build();
  25855. }
  25856. if (relativeParts.protocol !== null || relativeParts.username !== null || relativeParts.password !== null) {
  25857. return relative.build();
  25858. }
  25859. if (relativeParts.hostname === baseParts.hostname && relativeParts.port === baseParts.port) {
  25860. relativeParts.hostname = null;
  25861. relativeParts.port = null;
  25862. } else {
  25863. return relative.build();
  25864. }
  25865. if (relativePath === basePath) {
  25866. relativeParts.path = '';
  25867. return relative.build();
  25868. }
  25869. // determine common sub path
  25870. common = URI.commonPath(relativePath, basePath);
  25871. // If the paths have nothing in common, return a relative URL with the absolute path.
  25872. if (!common) {
  25873. return relative.build();
  25874. }
  25875. var parents = baseParts.path
  25876. .substring(common.length)
  25877. .replace(/[^\/]*$/, '')
  25878. .replace(/.*?\//g, '../');
  25879. relativeParts.path = (parents + relativeParts.path.substring(common.length)) || './';
  25880. return relative.build();
  25881. };
  25882. // comparing URIs
  25883. p.equals = function(uri) {
  25884. var one = this.clone();
  25885. var two = new URI(uri);
  25886. var one_map = {};
  25887. var two_map = {};
  25888. var checked = {};
  25889. var one_query, two_query, key;
  25890. one.normalize();
  25891. two.normalize();
  25892. // exact match
  25893. if (one.toString() === two.toString()) {
  25894. return true;
  25895. }
  25896. // extract query string
  25897. one_query = one.query();
  25898. two_query = two.query();
  25899. one.query('');
  25900. two.query('');
  25901. // definitely not equal if not even non-query parts match
  25902. if (one.toString() !== two.toString()) {
  25903. return false;
  25904. }
  25905. // query parameters have the same length, even if they're permuted
  25906. if (one_query.length !== two_query.length) {
  25907. return false;
  25908. }
  25909. one_map = URI.parseQuery(one_query, this._parts.escapeQuerySpace);
  25910. two_map = URI.parseQuery(two_query, this._parts.escapeQuerySpace);
  25911. for (key in one_map) {
  25912. if (hasOwn.call(one_map, key)) {
  25913. if (!isArray(one_map[key])) {
  25914. if (one_map[key] !== two_map[key]) {
  25915. return false;
  25916. }
  25917. } else if (!arraysEqual(one_map[key], two_map[key])) {
  25918. return false;
  25919. }
  25920. checked[key] = true;
  25921. }
  25922. }
  25923. for (key in two_map) {
  25924. if (hasOwn.call(two_map, key)) {
  25925. if (!checked[key]) {
  25926. // two contains a parameter not present in one
  25927. return false;
  25928. }
  25929. }
  25930. }
  25931. return true;
  25932. };
  25933. // state
  25934. p.preventInvalidHostname = function(v) {
  25935. this._parts.preventInvalidHostname = !!v;
  25936. return this;
  25937. };
  25938. p.duplicateQueryParameters = function(v) {
  25939. this._parts.duplicateQueryParameters = !!v;
  25940. return this;
  25941. };
  25942. p.escapeQuerySpace = function(v) {
  25943. this._parts.escapeQuerySpace = !!v;
  25944. return this;
  25945. };
  25946. return URI;
  25947. }));
  25948. /***/ }),
  25949. /***/ "./node_modules/urijs/src/punycode.js":
  25950. /*!********************************************!*\
  25951. !*** ./node_modules/urijs/src/punycode.js ***!
  25952. \********************************************/
  25953. /*! no static exports found */
  25954. /***/ (function(module, exports, __webpack_require__) {
  25955. /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.0 by @mathias */
  25956. ;(function(root) {
  25957. /** Detect free variables */
  25958. var freeExports = typeof exports == 'object' && exports &&
  25959. !exports.nodeType && exports;
  25960. var freeModule = typeof module == 'object' && module &&
  25961. !module.nodeType && module;
  25962. var freeGlobal = typeof global == 'object' && global;
  25963. if (
  25964. freeGlobal.global === freeGlobal ||
  25965. freeGlobal.window === freeGlobal ||
  25966. freeGlobal.self === freeGlobal
  25967. ) {
  25968. root = freeGlobal;
  25969. }
  25970. /**
  25971. * The `punycode` object.
  25972. * @name punycode
  25973. * @type Object
  25974. */
  25975. var punycode,
  25976. /** Highest positive signed 32-bit float value */
  25977. maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
  25978. /** Bootstring parameters */
  25979. base = 36,
  25980. tMin = 1,
  25981. tMax = 26,
  25982. skew = 38,
  25983. damp = 700,
  25984. initialBias = 72,
  25985. initialN = 128, // 0x80
  25986. delimiter = '-', // '\x2D'
  25987. /** Regular expressions */
  25988. regexPunycode = /^xn--/,
  25989. regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
  25990. regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
  25991. /** Error messages */
  25992. errors = {
  25993. 'overflow': 'Overflow: input needs wider integers to process',
  25994. 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
  25995. 'invalid-input': 'Invalid input'
  25996. },
  25997. /** Convenience shortcuts */
  25998. baseMinusTMin = base - tMin,
  25999. floor = Math.floor,
  26000. stringFromCharCode = String.fromCharCode,
  26001. /** Temporary variable */
  26002. key;
  26003. /*--------------------------------------------------------------------------*/
  26004. /**
  26005. * A generic error utility function.
  26006. * @private
  26007. * @param {String} type The error type.
  26008. * @returns {Error} Throws a `RangeError` with the applicable error message.
  26009. */
  26010. function error(type) {
  26011. throw new RangeError(errors[type]);
  26012. }
  26013. /**
  26014. * A generic `Array#map` utility function.
  26015. * @private
  26016. * @param {Array} array The array to iterate over.
  26017. * @param {Function} callback The function that gets called for every array
  26018. * item.
  26019. * @returns {Array} A new array of values returned by the callback function.
  26020. */
  26021. function map(array, fn) {
  26022. var length = array.length;
  26023. var result = [];
  26024. while (length--) {
  26025. result[length] = fn(array[length]);
  26026. }
  26027. return result;
  26028. }
  26029. /**
  26030. * A simple `Array#map`-like wrapper to work with domain name strings or email
  26031. * addresses.
  26032. * @private
  26033. * @param {String} domain The domain name or email address.
  26034. * @param {Function} callback The function that gets called for every
  26035. * character.
  26036. * @returns {Array} A new string of characters returned by the callback
  26037. * function.
  26038. */
  26039. function mapDomain(string, fn) {
  26040. var parts = string.split('@');
  26041. var result = '';
  26042. if (parts.length > 1) {
  26043. // In email addresses, only the domain name should be punycoded. Leave
  26044. // the local part (i.e. everything up to `@`) intact.
  26045. result = parts[0] + '@';
  26046. string = parts[1];
  26047. }
  26048. // Avoid `split(regex)` for IE8 compatibility. See #17.
  26049. string = string.replace(regexSeparators, '\x2E');
  26050. var labels = string.split('.');
  26051. var encoded = map(labels, fn).join('.');
  26052. return result + encoded;
  26053. }
  26054. /**
  26055. * Creates an array containing the numeric code points of each Unicode
  26056. * character in the string. While JavaScript uses UCS-2 internally,
  26057. * this function will convert a pair of surrogate halves (each of which
  26058. * UCS-2 exposes as separate characters) into a single code point,
  26059. * matching UTF-16.
  26060. * @see `punycode.ucs2.encode`
  26061. * @see <https://mathiasbynens.be/notes/javascript-encoding>
  26062. * @memberOf punycode.ucs2
  26063. * @name decode
  26064. * @param {String} string The Unicode input string (UCS-2).
  26065. * @returns {Array} The new array of code points.
  26066. */
  26067. function ucs2decode(string) {
  26068. var output = [],
  26069. counter = 0,
  26070. length = string.length,
  26071. value,
  26072. extra;
  26073. while (counter < length) {
  26074. value = string.charCodeAt(counter++);
  26075. if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
  26076. // high surrogate, and there is a next character
  26077. extra = string.charCodeAt(counter++);
  26078. if ((extra & 0xFC00) == 0xDC00) { // low surrogate
  26079. output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
  26080. } else {
  26081. // unmatched surrogate; only append this code unit, in case the next
  26082. // code unit is the high surrogate of a surrogate pair
  26083. output.push(value);
  26084. counter--;
  26085. }
  26086. } else {
  26087. output.push(value);
  26088. }
  26089. }
  26090. return output;
  26091. }
  26092. /**
  26093. * Creates a string based on an array of numeric code points.
  26094. * @see `punycode.ucs2.decode`
  26095. * @memberOf punycode.ucs2
  26096. * @name encode
  26097. * @param {Array} codePoints The array of numeric code points.
  26098. * @returns {String} The new Unicode string (UCS-2).
  26099. */
  26100. function ucs2encode(array) {
  26101. return map(array, function(value) {
  26102. var output = '';
  26103. if (value > 0xFFFF) {
  26104. value -= 0x10000;
  26105. output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
  26106. value = 0xDC00 | value & 0x3FF;
  26107. }
  26108. output += stringFromCharCode(value);
  26109. return output;
  26110. }).join('');
  26111. }
  26112. /**
  26113. * Converts a basic code point into a digit/integer.
  26114. * @see `digitToBasic()`
  26115. * @private
  26116. * @param {Number} codePoint The basic numeric code point value.
  26117. * @returns {Number} The numeric value of a basic code point (for use in
  26118. * representing integers) in the range `0` to `base - 1`, or `base` if
  26119. * the code point does not represent a value.
  26120. */
  26121. function basicToDigit(codePoint) {
  26122. if (codePoint - 48 < 10) {
  26123. return codePoint - 22;
  26124. }
  26125. if (codePoint - 65 < 26) {
  26126. return codePoint - 65;
  26127. }
  26128. if (codePoint - 97 < 26) {
  26129. return codePoint - 97;
  26130. }
  26131. return base;
  26132. }
  26133. /**
  26134. * Converts a digit/integer into a basic code point.
  26135. * @see `basicToDigit()`
  26136. * @private
  26137. * @param {Number} digit The numeric value of a basic code point.
  26138. * @returns {Number} The basic code point whose value (when used for
  26139. * representing integers) is `digit`, which needs to be in the range
  26140. * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
  26141. * used; else, the lowercase form is used. The behavior is undefined
  26142. * if `flag` is non-zero and `digit` has no uppercase form.
  26143. */
  26144. function digitToBasic(digit, flag) {
  26145. // 0..25 map to ASCII a..z or A..Z
  26146. // 26..35 map to ASCII 0..9
  26147. return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
  26148. }
  26149. /**
  26150. * Bias adaptation function as per section 3.4 of RFC 3492.
  26151. * https://tools.ietf.org/html/rfc3492#section-3.4
  26152. * @private
  26153. */
  26154. function adapt(delta, numPoints, firstTime) {
  26155. var k = 0;
  26156. delta = firstTime ? floor(delta / damp) : delta >> 1;
  26157. delta += floor(delta / numPoints);
  26158. for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
  26159. delta = floor(delta / baseMinusTMin);
  26160. }
  26161. return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
  26162. }
  26163. /**
  26164. * Converts a Punycode string of ASCII-only symbols to a string of Unicode
  26165. * symbols.
  26166. * @memberOf punycode
  26167. * @param {String} input The Punycode string of ASCII-only symbols.
  26168. * @returns {String} The resulting string of Unicode symbols.
  26169. */
  26170. function decode(input) {
  26171. // Don't use UCS-2
  26172. var output = [],
  26173. inputLength = input.length,
  26174. out,
  26175. i = 0,
  26176. n = initialN,
  26177. bias = initialBias,
  26178. basic,
  26179. j,
  26180. index,
  26181. oldi,
  26182. w,
  26183. k,
  26184. digit,
  26185. t,
  26186. /** Cached calculation results */
  26187. baseMinusT;
  26188. // Handle the basic code points: let `basic` be the number of input code
  26189. // points before the last delimiter, or `0` if there is none, then copy
  26190. // the first basic code points to the output.
  26191. basic = input.lastIndexOf(delimiter);
  26192. if (basic < 0) {
  26193. basic = 0;
  26194. }
  26195. for (j = 0; j < basic; ++j) {
  26196. // if it's not a basic code point
  26197. if (input.charCodeAt(j) >= 0x80) {
  26198. error('not-basic');
  26199. }
  26200. output.push(input.charCodeAt(j));
  26201. }
  26202. // Main decoding loop: start just after the last delimiter if any basic code
  26203. // points were copied; start at the beginning otherwise.
  26204. for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
  26205. // `index` is the index of the next character to be consumed.
  26206. // Decode a generalized variable-length integer into `delta`,
  26207. // which gets added to `i`. The overflow checking is easier
  26208. // if we increase `i` as we go, then subtract off its starting
  26209. // value at the end to obtain `delta`.
  26210. for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
  26211. if (index >= inputLength) {
  26212. error('invalid-input');
  26213. }
  26214. digit = basicToDigit(input.charCodeAt(index++));
  26215. if (digit >= base || digit > floor((maxInt - i) / w)) {
  26216. error('overflow');
  26217. }
  26218. i += digit * w;
  26219. t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
  26220. if (digit < t) {
  26221. break;
  26222. }
  26223. baseMinusT = base - t;
  26224. if (w > floor(maxInt / baseMinusT)) {
  26225. error('overflow');
  26226. }
  26227. w *= baseMinusT;
  26228. }
  26229. out = output.length + 1;
  26230. bias = adapt(i - oldi, out, oldi == 0);
  26231. // `i` was supposed to wrap around from `out` to `0`,
  26232. // incrementing `n` each time, so we'll fix that now:
  26233. if (floor(i / out) > maxInt - n) {
  26234. error('overflow');
  26235. }
  26236. n += floor(i / out);
  26237. i %= out;
  26238. // Insert `n` at position `i` of the output
  26239. output.splice(i++, 0, n);
  26240. }
  26241. return ucs2encode(output);
  26242. }
  26243. /**
  26244. * Converts a string of Unicode symbols (e.g. a domain name label) to a
  26245. * Punycode string of ASCII-only symbols.
  26246. * @memberOf punycode
  26247. * @param {String} input The string of Unicode symbols.
  26248. * @returns {String} The resulting Punycode string of ASCII-only symbols.
  26249. */
  26250. function encode(input) {
  26251. var n,
  26252. delta,
  26253. handledCPCount,
  26254. basicLength,
  26255. bias,
  26256. j,
  26257. m,
  26258. q,
  26259. k,
  26260. t,
  26261. currentValue,
  26262. output = [],
  26263. /** `inputLength` will hold the number of code points in `input`. */
  26264. inputLength,
  26265. /** Cached calculation results */
  26266. handledCPCountPlusOne,
  26267. baseMinusT,
  26268. qMinusT;
  26269. // Convert the input in UCS-2 to Unicode
  26270. input = ucs2decode(input);
  26271. // Cache the length
  26272. inputLength = input.length;
  26273. // Initialize the state
  26274. n = initialN;
  26275. delta = 0;
  26276. bias = initialBias;
  26277. // Handle the basic code points
  26278. for (j = 0; j < inputLength; ++j) {
  26279. currentValue = input[j];
  26280. if (currentValue < 0x80) {
  26281. output.push(stringFromCharCode(currentValue));
  26282. }
  26283. }
  26284. handledCPCount = basicLength = output.length;
  26285. // `handledCPCount` is the number of code points that have been handled;
  26286. // `basicLength` is the number of basic code points.
  26287. // Finish the basic string - if it is not empty - with a delimiter
  26288. if (basicLength) {
  26289. output.push(delimiter);
  26290. }
  26291. // Main encoding loop:
  26292. while (handledCPCount < inputLength) {
  26293. // All non-basic code points < n have been handled already. Find the next
  26294. // larger one:
  26295. for (m = maxInt, j = 0; j < inputLength; ++j) {
  26296. currentValue = input[j];
  26297. if (currentValue >= n && currentValue < m) {
  26298. m = currentValue;
  26299. }
  26300. }
  26301. // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
  26302. // but guard against overflow
  26303. handledCPCountPlusOne = handledCPCount + 1;
  26304. if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
  26305. error('overflow');
  26306. }
  26307. delta += (m - n) * handledCPCountPlusOne;
  26308. n = m;
  26309. for (j = 0; j < inputLength; ++j) {
  26310. currentValue = input[j];
  26311. if (currentValue < n && ++delta > maxInt) {
  26312. error('overflow');
  26313. }
  26314. if (currentValue == n) {
  26315. // Represent delta as a generalized variable-length integer
  26316. for (q = delta, k = base; /* no condition */; k += base) {
  26317. t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
  26318. if (q < t) {
  26319. break;
  26320. }
  26321. qMinusT = q - t;
  26322. baseMinusT = base - t;
  26323. output.push(
  26324. stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
  26325. );
  26326. q = floor(qMinusT / baseMinusT);
  26327. }
  26328. output.push(stringFromCharCode(digitToBasic(q, 0)));
  26329. bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
  26330. delta = 0;
  26331. ++handledCPCount;
  26332. }
  26333. }
  26334. ++delta;
  26335. ++n;
  26336. }
  26337. return output.join('');
  26338. }
  26339. /**
  26340. * Converts a Punycode string representing a domain name or an email address
  26341. * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
  26342. * it doesn't matter if you call it on a string that has already been
  26343. * converted to Unicode.
  26344. * @memberOf punycode
  26345. * @param {String} input The Punycoded domain name or email address to
  26346. * convert to Unicode.
  26347. * @returns {String} The Unicode representation of the given Punycode
  26348. * string.
  26349. */
  26350. function toUnicode(input) {
  26351. return mapDomain(input, function(string) {
  26352. return regexPunycode.test(string)
  26353. ? decode(string.slice(4).toLowerCase())
  26354. : string;
  26355. });
  26356. }
  26357. /**
  26358. * Converts a Unicode string representing a domain name or an email address to
  26359. * Punycode. Only the non-ASCII parts of the domain name will be converted,
  26360. * i.e. it doesn't matter if you call it with a domain that's already in
  26361. * ASCII.
  26362. * @memberOf punycode
  26363. * @param {String} input The domain name or email address to convert, as a
  26364. * Unicode string.
  26365. * @returns {String} The Punycode representation of the given domain name or
  26366. * email address.
  26367. */
  26368. function toASCII(input) {
  26369. return mapDomain(input, function(string) {
  26370. return regexNonASCII.test(string)
  26371. ? 'xn--' + encode(string)
  26372. : string;
  26373. });
  26374. }
  26375. /*--------------------------------------------------------------------------*/
  26376. /** Define the public API */
  26377. punycode = {
  26378. /**
  26379. * A string representing the current Punycode.js version number.
  26380. * @memberOf punycode
  26381. * @type String
  26382. */
  26383. 'version': '1.3.2',
  26384. /**
  26385. * An object of methods to convert from JavaScript's internal character
  26386. * representation (UCS-2) to Unicode code points, and back.
  26387. * @see <https://mathiasbynens.be/notes/javascript-encoding>
  26388. * @memberOf punycode
  26389. * @type Object
  26390. */
  26391. 'ucs2': {
  26392. 'decode': ucs2decode,
  26393. 'encode': ucs2encode
  26394. },
  26395. 'decode': decode,
  26396. 'encode': encode,
  26397. 'toASCII': toASCII,
  26398. 'toUnicode': toUnicode
  26399. };
  26400. /** Expose `punycode` */
  26401. // Some AMD build optimizers, like r.js, check for specific condition patterns
  26402. // like the following:
  26403. if (
  26404. true
  26405. ) {
  26406. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  26407. return punycode;
  26408. }).call(exports, __webpack_require__, exports, module),
  26409. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  26410. } else {}
  26411. }(this));
  26412. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module), __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  26413. /***/ }),
  26414. /***/ "./node_modules/webpack/buildin/global.js":
  26415. /*!***********************************!*\
  26416. !*** (webpack)/buildin/global.js ***!
  26417. \***********************************/
  26418. /*! no static exports found */
  26419. /***/ (function(module, exports) {
  26420. var g;
  26421. // This works in non-strict mode
  26422. g = (function() {
  26423. return this;
  26424. })();
  26425. try {
  26426. // This works if eval is allowed (see CSP)
  26427. g = g || Function("return this")() || (1, eval)("this");
  26428. } catch (e) {
  26429. // This works if the window reference is available
  26430. if (typeof window === "object") g = window;
  26431. }
  26432. // g can still be undefined, but nothing to do about it...
  26433. // We return undefined, instead of nothing here, so it's
  26434. // easier to handle this case. if(!global) { ...}
  26435. module.exports = g;
  26436. /***/ }),
  26437. /***/ "./node_modules/webpack/buildin/module.js":
  26438. /*!***********************************!*\
  26439. !*** (webpack)/buildin/module.js ***!
  26440. \***********************************/
  26441. /*! no static exports found */
  26442. /***/ (function(module, exports) {
  26443. module.exports = function(module) {
  26444. if (!module.webpackPolyfill) {
  26445. module.deprecate = function() {};
  26446. module.paths = [];
  26447. // module.parent = undefined by default
  26448. if (!module.children) module.children = [];
  26449. Object.defineProperty(module, "loaded", {
  26450. enumerable: true,
  26451. get: function() {
  26452. return module.l;
  26453. }
  26454. });
  26455. Object.defineProperty(module, "id", {
  26456. enumerable: true,
  26457. get: function() {
  26458. return module.i;
  26459. }
  26460. });
  26461. module.webpackPolyfill = 1;
  26462. }
  26463. return module;
  26464. };
  26465. /***/ }),
  26466. /***/ "./node_modules/xss/dist/xss.js":
  26467. /*!**************************************!*\
  26468. !*** ./node_modules/xss/dist/xss.js ***!
  26469. \**************************************/
  26470. /*! no static exports found */
  26471. /***/ (function(module, exports, __webpack_require__) {
  26472. var require;var require;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  26473. /**
  26474. * default settings
  26475. *
  26476. * @author Zongmin Lei<leizongmin@gmail.com>
  26477. */
  26478. var FilterCSS = require("cssfilter").FilterCSS;
  26479. var getDefaultCSSWhiteList = require("cssfilter").getDefaultWhiteList;
  26480. var _ = require("./util");
  26481. function getDefaultWhiteList() {
  26482. return {
  26483. a: ["target", "href", "title"],
  26484. abbr: ["title"],
  26485. address: [],
  26486. area: ["shape", "coords", "href", "alt"],
  26487. article: [],
  26488. aside: [],
  26489. audio: ["autoplay", "controls", "loop", "preload", "src"],
  26490. b: [],
  26491. bdi: ["dir"],
  26492. bdo: ["dir"],
  26493. big: [],
  26494. blockquote: ["cite"],
  26495. br: [],
  26496. caption: [],
  26497. center: [],
  26498. cite: [],
  26499. code: [],
  26500. col: ["align", "valign", "span", "width"],
  26501. colgroup: ["align", "valign", "span", "width"],
  26502. dd: [],
  26503. del: ["datetime"],
  26504. details: ["open"],
  26505. div: [],
  26506. dl: [],
  26507. dt: [],
  26508. em: [],
  26509. font: ["color", "size", "face"],
  26510. footer: [],
  26511. h1: [],
  26512. h2: [],
  26513. h3: [],
  26514. h4: [],
  26515. h5: [],
  26516. h6: [],
  26517. header: [],
  26518. hr: [],
  26519. i: [],
  26520. img: ["src", "alt", "title", "width", "height"],
  26521. ins: ["datetime"],
  26522. li: [],
  26523. mark: [],
  26524. nav: [],
  26525. ol: [],
  26526. p: [],
  26527. pre: [],
  26528. s: [],
  26529. section: [],
  26530. small: [],
  26531. span: [],
  26532. sub: [],
  26533. sup: [],
  26534. strong: [],
  26535. table: ["width", "border", "align", "valign"],
  26536. tbody: ["align", "valign"],
  26537. td: ["width", "rowspan", "colspan", "align", "valign"],
  26538. tfoot: ["align", "valign"],
  26539. th: ["width", "rowspan", "colspan", "align", "valign"],
  26540. thead: ["align", "valign"],
  26541. tr: ["rowspan", "align", "valign"],
  26542. tt: [],
  26543. u: [],
  26544. ul: [],
  26545. video: ["autoplay", "controls", "loop", "preload", "src", "height", "width"]
  26546. };
  26547. }
  26548. var defaultCSSFilter = new FilterCSS();
  26549. /**
  26550. * default onTag function
  26551. *
  26552. * @param {String} tag
  26553. * @param {String} html
  26554. * @param {Object} options
  26555. * @return {String}
  26556. */
  26557. function onTag(tag, html, options) {
  26558. // do nothing
  26559. }
  26560. /**
  26561. * default onIgnoreTag function
  26562. *
  26563. * @param {String} tag
  26564. * @param {String} html
  26565. * @param {Object} options
  26566. * @return {String}
  26567. */
  26568. function onIgnoreTag(tag, html, options) {
  26569. // do nothing
  26570. }
  26571. /**
  26572. * default onTagAttr function
  26573. *
  26574. * @param {String} tag
  26575. * @param {String} name
  26576. * @param {String} value
  26577. * @return {String}
  26578. */
  26579. function onTagAttr(tag, name, value) {
  26580. // do nothing
  26581. }
  26582. /**
  26583. * default onIgnoreTagAttr function
  26584. *
  26585. * @param {String} tag
  26586. * @param {String} name
  26587. * @param {String} value
  26588. * @return {String}
  26589. */
  26590. function onIgnoreTagAttr(tag, name, value) {
  26591. // do nothing
  26592. }
  26593. /**
  26594. * default escapeHtml function
  26595. *
  26596. * @param {String} html
  26597. */
  26598. function escapeHtml(html) {
  26599. return html.replace(REGEXP_LT, "&lt;").replace(REGEXP_GT, "&gt;");
  26600. }
  26601. /**
  26602. * default safeAttrValue function
  26603. *
  26604. * @param {String} tag
  26605. * @param {String} name
  26606. * @param {String} value
  26607. * @param {Object} cssFilter
  26608. * @return {String}
  26609. */
  26610. function safeAttrValue(tag, name, value, cssFilter) {
  26611. // unescape attribute value firstly
  26612. value = friendlyAttrValue(value);
  26613. if (name === "href" || name === "src") {
  26614. // filter `href` and `src` attribute
  26615. // only allow the value that starts with `http://` | `https://` | `mailto:` | `/` | `#`
  26616. value = _.trim(value);
  26617. if (value === "#") return "#";
  26618. if (
  26619. !(
  26620. value.substr(0, 7) === "http://" ||
  26621. value.substr(0, 8) === "https://" ||
  26622. value.substr(0, 7) === "mailto:" ||
  26623. value.substr(0, 4) === "tel:" ||
  26624. value[0] === "#" ||
  26625. value[0] === "/"
  26626. )
  26627. ) {
  26628. return "";
  26629. }
  26630. } else if (name === "background") {
  26631. // filter `background` attribute (maybe no use)
  26632. // `javascript:`
  26633. REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
  26634. if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
  26635. return "";
  26636. }
  26637. } else if (name === "style") {
  26638. // `expression()`
  26639. REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex = 0;
  26640. if (REGEXP_DEFAULT_ON_TAG_ATTR_7.test(value)) {
  26641. return "";
  26642. }
  26643. // `url()`
  26644. REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex = 0;
  26645. if (REGEXP_DEFAULT_ON_TAG_ATTR_8.test(value)) {
  26646. REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
  26647. if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
  26648. return "";
  26649. }
  26650. }
  26651. if (cssFilter !== false) {
  26652. cssFilter = cssFilter || defaultCSSFilter;
  26653. value = cssFilter.process(value);
  26654. }
  26655. }
  26656. // escape `<>"` before returns
  26657. value = escapeAttrValue(value);
  26658. return value;
  26659. }
  26660. // RegExp list
  26661. var REGEXP_LT = /</g;
  26662. var REGEXP_GT = />/g;
  26663. var REGEXP_QUOTE = /"/g;
  26664. var REGEXP_QUOTE_2 = /&quot;/g;
  26665. var REGEXP_ATTR_VALUE_1 = /&#([a-zA-Z0-9]*);?/gim;
  26666. var REGEXP_ATTR_VALUE_COLON = /&colon;?/gim;
  26667. var REGEXP_ATTR_VALUE_NEWLINE = /&newline;?/gim;
  26668. var REGEXP_DEFAULT_ON_TAG_ATTR_3 = /\/\*|\*\//gm;
  26669. var REGEXP_DEFAULT_ON_TAG_ATTR_4 = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi;
  26670. var REGEXP_DEFAULT_ON_TAG_ATTR_5 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:/gi;
  26671. var REGEXP_DEFAULT_ON_TAG_ATTR_6 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:\s*image\//gi;
  26672. var REGEXP_DEFAULT_ON_TAG_ATTR_7 = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi;
  26673. var REGEXP_DEFAULT_ON_TAG_ATTR_8 = /u\s*r\s*l\s*\(.*/gi;
  26674. /**
  26675. * escape doube quote
  26676. *
  26677. * @param {String} str
  26678. * @return {String} str
  26679. */
  26680. function escapeQuote(str) {
  26681. return str.replace(REGEXP_QUOTE, "&quot;");
  26682. }
  26683. /**
  26684. * unescape double quote
  26685. *
  26686. * @param {String} str
  26687. * @return {String} str
  26688. */
  26689. function unescapeQuote(str) {
  26690. return str.replace(REGEXP_QUOTE_2, '"');
  26691. }
  26692. /**
  26693. * escape html entities
  26694. *
  26695. * @param {String} str
  26696. * @return {String}
  26697. */
  26698. function escapeHtmlEntities(str) {
  26699. return str.replace(REGEXP_ATTR_VALUE_1, function replaceUnicode(str, code) {
  26700. return code[0] === "x" || code[0] === "X"
  26701. ? String.fromCharCode(parseInt(code.substr(1), 16))
  26702. : String.fromCharCode(parseInt(code, 10));
  26703. });
  26704. }
  26705. /**
  26706. * escape html5 new danger entities
  26707. *
  26708. * @param {String} str
  26709. * @return {String}
  26710. */
  26711. function escapeDangerHtml5Entities(str) {
  26712. return str
  26713. .replace(REGEXP_ATTR_VALUE_COLON, ":")
  26714. .replace(REGEXP_ATTR_VALUE_NEWLINE, " ");
  26715. }
  26716. /**
  26717. * clear nonprintable characters
  26718. *
  26719. * @param {String} str
  26720. * @return {String}
  26721. */
  26722. function clearNonPrintableCharacter(str) {
  26723. var str2 = "";
  26724. for (var i = 0, len = str.length; i < len; i++) {
  26725. str2 += str.charCodeAt(i) < 32 ? " " : str.charAt(i);
  26726. }
  26727. return _.trim(str2);
  26728. }
  26729. /**
  26730. * get friendly attribute value
  26731. *
  26732. * @param {String} str
  26733. * @return {String}
  26734. */
  26735. function friendlyAttrValue(str) {
  26736. str = unescapeQuote(str);
  26737. str = escapeHtmlEntities(str);
  26738. str = escapeDangerHtml5Entities(str);
  26739. str = clearNonPrintableCharacter(str);
  26740. return str;
  26741. }
  26742. /**
  26743. * unescape attribute value
  26744. *
  26745. * @param {String} str
  26746. * @return {String}
  26747. */
  26748. function escapeAttrValue(str) {
  26749. str = escapeQuote(str);
  26750. str = escapeHtml(str);
  26751. return str;
  26752. }
  26753. /**
  26754. * `onIgnoreTag` function for removing all the tags that are not in whitelist
  26755. */
  26756. function onIgnoreTagStripAll() {
  26757. return "";
  26758. }
  26759. /**
  26760. * remove tag body
  26761. * specify a `tags` list, if the tag is not in the `tags` list then process by the specify function (optional)
  26762. *
  26763. * @param {array} tags
  26764. * @param {function} next
  26765. */
  26766. function StripTagBody(tags, next) {
  26767. if (typeof next !== "function") {
  26768. next = function() {};
  26769. }
  26770. var isRemoveAllTag = !Array.isArray(tags);
  26771. function isRemoveTag(tag) {
  26772. if (isRemoveAllTag) return true;
  26773. return _.indexOf(tags, tag) !== -1;
  26774. }
  26775. var removeList = [];
  26776. var posStart = false;
  26777. return {
  26778. onIgnoreTag: function(tag, html, options) {
  26779. if (isRemoveTag(tag)) {
  26780. if (options.isClosing) {
  26781. var ret = "[/removed]";
  26782. var end = options.position + ret.length;
  26783. removeList.push([
  26784. posStart !== false ? posStart : options.position,
  26785. end
  26786. ]);
  26787. posStart = false;
  26788. return ret;
  26789. } else {
  26790. if (!posStart) {
  26791. posStart = options.position;
  26792. }
  26793. return "[removed]";
  26794. }
  26795. } else {
  26796. return next(tag, html, options);
  26797. }
  26798. },
  26799. remove: function(html) {
  26800. var rethtml = "";
  26801. var lastPos = 0;
  26802. _.forEach(removeList, function(pos) {
  26803. rethtml += html.slice(lastPos, pos[0]);
  26804. lastPos = pos[1];
  26805. });
  26806. rethtml += html.slice(lastPos);
  26807. return rethtml;
  26808. }
  26809. };
  26810. }
  26811. /**
  26812. * remove html comments
  26813. *
  26814. * @param {String} html
  26815. * @return {String}
  26816. */
  26817. function stripCommentTag(html) {
  26818. return html.replace(STRIP_COMMENT_TAG_REGEXP, "");
  26819. }
  26820. var STRIP_COMMENT_TAG_REGEXP = /<!--[\s\S]*?-->/g;
  26821. /**
  26822. * remove invisible characters
  26823. *
  26824. * @param {String} html
  26825. * @return {String}
  26826. */
  26827. function stripBlankChar(html) {
  26828. var chars = html.split("");
  26829. chars = chars.filter(function(char) {
  26830. var c = char.charCodeAt(0);
  26831. if (c === 127) return false;
  26832. if (c <= 31) {
  26833. if (c === 10 || c === 13) return true;
  26834. return false;
  26835. }
  26836. return true;
  26837. });
  26838. return chars.join("");
  26839. }
  26840. exports.whiteList = getDefaultWhiteList();
  26841. exports.getDefaultWhiteList = getDefaultWhiteList;
  26842. exports.onTag = onTag;
  26843. exports.onIgnoreTag = onIgnoreTag;
  26844. exports.onTagAttr = onTagAttr;
  26845. exports.onIgnoreTagAttr = onIgnoreTagAttr;
  26846. exports.safeAttrValue = safeAttrValue;
  26847. exports.escapeHtml = escapeHtml;
  26848. exports.escapeQuote = escapeQuote;
  26849. exports.unescapeQuote = unescapeQuote;
  26850. exports.escapeHtmlEntities = escapeHtmlEntities;
  26851. exports.escapeDangerHtml5Entities = escapeDangerHtml5Entities;
  26852. exports.clearNonPrintableCharacter = clearNonPrintableCharacter;
  26853. exports.friendlyAttrValue = friendlyAttrValue;
  26854. exports.escapeAttrValue = escapeAttrValue;
  26855. exports.onIgnoreTagStripAll = onIgnoreTagStripAll;
  26856. exports.StripTagBody = StripTagBody;
  26857. exports.stripCommentTag = stripCommentTag;
  26858. exports.stripBlankChar = stripBlankChar;
  26859. exports.cssFilter = defaultCSSFilter;
  26860. exports.getDefaultCSSWhiteList = getDefaultCSSWhiteList;
  26861. },{"./util":4,"cssfilter":8}],2:[function(require,module,exports){
  26862. /**
  26863. * xss
  26864. *
  26865. * @author Zongmin Lei<leizongmin@gmail.com>
  26866. */
  26867. var DEFAULT = require("./default");
  26868. var parser = require("./parser");
  26869. var FilterXSS = require("./xss");
  26870. /**
  26871. * filter xss function
  26872. *
  26873. * @param {String} html
  26874. * @param {Object} options { whiteList, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr, safeAttrValue, escapeHtml }
  26875. * @return {String}
  26876. */
  26877. function filterXSS(html, options) {
  26878. var xss = new FilterXSS(options);
  26879. return xss.process(html);
  26880. }
  26881. exports = module.exports = filterXSS;
  26882. exports.FilterXSS = FilterXSS;
  26883. for (var i in DEFAULT) exports[i] = DEFAULT[i];
  26884. for (var i in parser) exports[i] = parser[i];
  26885. // using `xss` on the browser, output `filterXSS` to the globals
  26886. if (typeof window !== "undefined") {
  26887. window.filterXSS = module.exports;
  26888. }
  26889. },{"./default":1,"./parser":3,"./xss":5}],3:[function(require,module,exports){
  26890. /**
  26891. * Simple HTML Parser
  26892. *
  26893. * @author Zongmin Lei<leizongmin@gmail.com>
  26894. */
  26895. var _ = require("./util");
  26896. /**
  26897. * get tag name
  26898. *
  26899. * @param {String} html e.g. '<a hef="#">'
  26900. * @return {String}
  26901. */
  26902. function getTagName(html) {
  26903. var i = _.spaceIndex(html);
  26904. if (i === -1) {
  26905. var tagName = html.slice(1, -1);
  26906. } else {
  26907. var tagName = html.slice(1, i + 1);
  26908. }
  26909. tagName = _.trim(tagName).toLowerCase();
  26910. if (tagName.slice(0, 1) === "/") tagName = tagName.slice(1);
  26911. if (tagName.slice(-1) === "/") tagName = tagName.slice(0, -1);
  26912. return tagName;
  26913. }
  26914. /**
  26915. * is close tag?
  26916. *
  26917. * @param {String} html 如:'<a hef="#">'
  26918. * @return {Boolean}
  26919. */
  26920. function isClosing(html) {
  26921. return html.slice(0, 2) === "</";
  26922. }
  26923. /**
  26924. * parse input html and returns processed html
  26925. *
  26926. * @param {String} html
  26927. * @param {Function} onTag e.g. function (sourcePosition, position, tag, html, isClosing)
  26928. * @param {Function} escapeHtml
  26929. * @return {String}
  26930. */
  26931. function parseTag(html, onTag, escapeHtml) {
  26932. "user strict";
  26933. var rethtml = "";
  26934. var lastPos = 0;
  26935. var tagStart = false;
  26936. var quoteStart = false;
  26937. var currentPos = 0;
  26938. var len = html.length;
  26939. var currentTagName = "";
  26940. var currentHtml = "";
  26941. for (currentPos = 0; currentPos < len; currentPos++) {
  26942. var c = html.charAt(currentPos);
  26943. if (tagStart === false) {
  26944. if (c === "<") {
  26945. tagStart = currentPos;
  26946. continue;
  26947. }
  26948. } else {
  26949. if (quoteStart === false) {
  26950. if (c === "<") {
  26951. rethtml += escapeHtml(html.slice(lastPos, currentPos));
  26952. tagStart = currentPos;
  26953. lastPos = currentPos;
  26954. continue;
  26955. }
  26956. if (c === ">") {
  26957. rethtml += escapeHtml(html.slice(lastPos, tagStart));
  26958. currentHtml = html.slice(tagStart, currentPos + 1);
  26959. currentTagName = getTagName(currentHtml);
  26960. rethtml += onTag(
  26961. tagStart,
  26962. rethtml.length,
  26963. currentTagName,
  26964. currentHtml,
  26965. isClosing(currentHtml)
  26966. );
  26967. lastPos = currentPos + 1;
  26968. tagStart = false;
  26969. continue;
  26970. }
  26971. if ((c === '"' || c === "'") && html.charAt(currentPos - 1) === "=") {
  26972. quoteStart = c;
  26973. continue;
  26974. }
  26975. } else {
  26976. if (c === quoteStart) {
  26977. quoteStart = false;
  26978. continue;
  26979. }
  26980. }
  26981. }
  26982. }
  26983. if (lastPos < html.length) {
  26984. rethtml += escapeHtml(html.substr(lastPos));
  26985. }
  26986. return rethtml;
  26987. }
  26988. var REGEXP_ILLEGAL_ATTR_NAME = /[^a-zA-Z0-9_:\.\-]/gim;
  26989. /**
  26990. * parse input attributes and returns processed attributes
  26991. *
  26992. * @param {String} html e.g. `href="#" target="_blank"`
  26993. * @param {Function} onAttr e.g. `function (name, value)`
  26994. * @return {String}
  26995. */
  26996. function parseAttr(html, onAttr) {
  26997. "user strict";
  26998. var lastPos = 0;
  26999. var retAttrs = [];
  27000. var tmpName = false;
  27001. var len = html.length;
  27002. function addAttr(name, value) {
  27003. name = _.trim(name);
  27004. name = name.replace(REGEXP_ILLEGAL_ATTR_NAME, "").toLowerCase();
  27005. if (name.length < 1) return;
  27006. var ret = onAttr(name, value || "");
  27007. if (ret) retAttrs.push(ret);
  27008. }
  27009. // 逐个分析字符
  27010. for (var i = 0; i < len; i++) {
  27011. var c = html.charAt(i);
  27012. var v, j;
  27013. if (tmpName === false && c === "=") {
  27014. tmpName = html.slice(lastPos, i);
  27015. lastPos = i + 1;
  27016. continue;
  27017. }
  27018. if (tmpName !== false) {
  27019. if (
  27020. i === lastPos &&
  27021. (c === '"' || c === "'") &&
  27022. html.charAt(i - 1) === "="
  27023. ) {
  27024. j = html.indexOf(c, i + 1);
  27025. if (j === -1) {
  27026. break;
  27027. } else {
  27028. v = _.trim(html.slice(lastPos + 1, j));
  27029. addAttr(tmpName, v);
  27030. tmpName = false;
  27031. i = j;
  27032. lastPos = i + 1;
  27033. continue;
  27034. }
  27035. }
  27036. }
  27037. if (/\s|\n|\t/.test(c)) {
  27038. html = html.replace(/\s|\n|\t/g, " ");
  27039. if (tmpName === false) {
  27040. j = findNextEqual(html, i);
  27041. if (j === -1) {
  27042. v = _.trim(html.slice(lastPos, i));
  27043. addAttr(v);
  27044. tmpName = false;
  27045. lastPos = i + 1;
  27046. continue;
  27047. } else {
  27048. i = j - 1;
  27049. continue;
  27050. }
  27051. } else {
  27052. j = findBeforeEqual(html, i - 1);
  27053. if (j === -1) {
  27054. v = _.trim(html.slice(lastPos, i));
  27055. v = stripQuoteWrap(v);
  27056. addAttr(tmpName, v);
  27057. tmpName = false;
  27058. lastPos = i + 1;
  27059. continue;
  27060. } else {
  27061. continue;
  27062. }
  27063. }
  27064. }
  27065. }
  27066. if (lastPos < html.length) {
  27067. if (tmpName === false) {
  27068. addAttr(html.slice(lastPos));
  27069. } else {
  27070. addAttr(tmpName, stripQuoteWrap(_.trim(html.slice(lastPos))));
  27071. }
  27072. }
  27073. return _.trim(retAttrs.join(" "));
  27074. }
  27075. function findNextEqual(str, i) {
  27076. for (; i < str.length; i++) {
  27077. var c = str[i];
  27078. if (c === " ") continue;
  27079. if (c === "=") return i;
  27080. return -1;
  27081. }
  27082. }
  27083. function findBeforeEqual(str, i) {
  27084. for (; i > 0; i--) {
  27085. var c = str[i];
  27086. if (c === " ") continue;
  27087. if (c === "=") return i;
  27088. return -1;
  27089. }
  27090. }
  27091. function isQuoteWrapString(text) {
  27092. if (
  27093. (text[0] === '"' && text[text.length - 1] === '"') ||
  27094. (text[0] === "'" && text[text.length - 1] === "'")
  27095. ) {
  27096. return true;
  27097. } else {
  27098. return false;
  27099. }
  27100. }
  27101. function stripQuoteWrap(text) {
  27102. if (isQuoteWrapString(text)) {
  27103. return text.substr(1, text.length - 2);
  27104. } else {
  27105. return text;
  27106. }
  27107. }
  27108. exports.parseTag = parseTag;
  27109. exports.parseAttr = parseAttr;
  27110. },{"./util":4}],4:[function(require,module,exports){
  27111. module.exports = {
  27112. indexOf: function(arr, item) {
  27113. var i, j;
  27114. if (Array.prototype.indexOf) {
  27115. return arr.indexOf(item);
  27116. }
  27117. for (i = 0, j = arr.length; i < j; i++) {
  27118. if (arr[i] === item) {
  27119. return i;
  27120. }
  27121. }
  27122. return -1;
  27123. },
  27124. forEach: function(arr, fn, scope) {
  27125. var i, j;
  27126. if (Array.prototype.forEach) {
  27127. return arr.forEach(fn, scope);
  27128. }
  27129. for (i = 0, j = arr.length; i < j; i++) {
  27130. fn.call(scope, arr[i], i, arr);
  27131. }
  27132. },
  27133. trim: function(str) {
  27134. if (String.prototype.trim) {
  27135. return str.trim();
  27136. }
  27137. return str.replace(/(^\s*)|(\s*$)/g, "");
  27138. },
  27139. spaceIndex: function(str) {
  27140. var reg = /\s|\n|\t/;
  27141. var match = reg.exec(str);
  27142. return match ? match.index : -1;
  27143. }
  27144. };
  27145. },{}],5:[function(require,module,exports){
  27146. /**
  27147. * filter xss
  27148. *
  27149. * @author Zongmin Lei<leizongmin@gmail.com>
  27150. */
  27151. var FilterCSS = require("cssfilter").FilterCSS;
  27152. var DEFAULT = require("./default");
  27153. var parser = require("./parser");
  27154. var parseTag = parser.parseTag;
  27155. var parseAttr = parser.parseAttr;
  27156. var _ = require("./util");
  27157. /**
  27158. * returns `true` if the input value is `undefined` or `null`
  27159. *
  27160. * @param {Object} obj
  27161. * @return {Boolean}
  27162. */
  27163. function isNull(obj) {
  27164. return obj === undefined || obj === null;
  27165. }
  27166. /**
  27167. * get attributes for a tag
  27168. *
  27169. * @param {String} html
  27170. * @return {Object}
  27171. * - {String} html
  27172. * - {Boolean} closing
  27173. */
  27174. function getAttrs(html) {
  27175. var i = _.spaceIndex(html);
  27176. if (i === -1) {
  27177. return {
  27178. html: "",
  27179. closing: html[html.length - 2] === "/"
  27180. };
  27181. }
  27182. html = _.trim(html.slice(i + 1, -1));
  27183. var isClosing = html[html.length - 1] === "/";
  27184. if (isClosing) html = _.trim(html.slice(0, -1));
  27185. return {
  27186. html: html,
  27187. closing: isClosing
  27188. };
  27189. }
  27190. /**
  27191. * shallow copy
  27192. *
  27193. * @param {Object} obj
  27194. * @return {Object}
  27195. */
  27196. function shallowCopyObject(obj) {
  27197. var ret = {};
  27198. for (var i in obj) {
  27199. ret[i] = obj[i];
  27200. }
  27201. return ret;
  27202. }
  27203. /**
  27204. * FilterXSS class
  27205. *
  27206. * @param {Object} options
  27207. * whiteList, onTag, onTagAttr, onIgnoreTag,
  27208. * onIgnoreTagAttr, safeAttrValue, escapeHtml
  27209. * stripIgnoreTagBody, allowCommentTag, stripBlankChar
  27210. * css{whiteList, onAttr, onIgnoreAttr} `css=false` means don't use `cssfilter`
  27211. */
  27212. function FilterXSS(options) {
  27213. options = shallowCopyObject(options || {});
  27214. if (options.stripIgnoreTag) {
  27215. if (options.onIgnoreTag) {
  27216. console.error(
  27217. 'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
  27218. );
  27219. }
  27220. options.onIgnoreTag = DEFAULT.onIgnoreTagStripAll;
  27221. }
  27222. options.whiteList = options.whiteList || DEFAULT.whiteList;
  27223. options.onTag = options.onTag || DEFAULT.onTag;
  27224. options.onTagAttr = options.onTagAttr || DEFAULT.onTagAttr;
  27225. options.onIgnoreTag = options.onIgnoreTag || DEFAULT.onIgnoreTag;
  27226. options.onIgnoreTagAttr = options.onIgnoreTagAttr || DEFAULT.onIgnoreTagAttr;
  27227. options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
  27228. options.escapeHtml = options.escapeHtml || DEFAULT.escapeHtml;
  27229. this.options = options;
  27230. if (options.css === false) {
  27231. this.cssFilter = false;
  27232. } else {
  27233. options.css = options.css || {};
  27234. this.cssFilter = new FilterCSS(options.css);
  27235. }
  27236. }
  27237. /**
  27238. * start process and returns result
  27239. *
  27240. * @param {String} html
  27241. * @return {String}
  27242. */
  27243. FilterXSS.prototype.process = function(html) {
  27244. // compatible with the input
  27245. html = html || "";
  27246. html = html.toString();
  27247. if (!html) return "";
  27248. var me = this;
  27249. var options = me.options;
  27250. var whiteList = options.whiteList;
  27251. var onTag = options.onTag;
  27252. var onIgnoreTag = options.onIgnoreTag;
  27253. var onTagAttr = options.onTagAttr;
  27254. var onIgnoreTagAttr = options.onIgnoreTagAttr;
  27255. var safeAttrValue = options.safeAttrValue;
  27256. var escapeHtml = options.escapeHtml;
  27257. var cssFilter = me.cssFilter;
  27258. // remove invisible characters
  27259. if (options.stripBlankChar) {
  27260. html = DEFAULT.stripBlankChar(html);
  27261. }
  27262. // remove html comments
  27263. if (!options.allowCommentTag) {
  27264. html = DEFAULT.stripCommentTag(html);
  27265. }
  27266. // if enable stripIgnoreTagBody
  27267. var stripIgnoreTagBody = false;
  27268. if (options.stripIgnoreTagBody) {
  27269. var stripIgnoreTagBody = DEFAULT.StripTagBody(
  27270. options.stripIgnoreTagBody,
  27271. onIgnoreTag
  27272. );
  27273. onIgnoreTag = stripIgnoreTagBody.onIgnoreTag;
  27274. }
  27275. var retHtml = parseTag(
  27276. html,
  27277. function(sourcePosition, position, tag, html, isClosing) {
  27278. var info = {
  27279. sourcePosition: sourcePosition,
  27280. position: position,
  27281. isClosing: isClosing,
  27282. isWhite: whiteList.hasOwnProperty(tag)
  27283. };
  27284. // call `onTag()`
  27285. var ret = onTag(tag, html, info);
  27286. if (!isNull(ret)) return ret;
  27287. if (info.isWhite) {
  27288. if (info.isClosing) {
  27289. return "</" + tag + ">";
  27290. }
  27291. var attrs = getAttrs(html);
  27292. var whiteAttrList = whiteList[tag];
  27293. var attrsHtml = parseAttr(attrs.html, function(name, value) {
  27294. // call `onTagAttr()`
  27295. var isWhiteAttr = _.indexOf(whiteAttrList, name) !== -1;
  27296. var ret = onTagAttr(tag, name, value, isWhiteAttr);
  27297. if (!isNull(ret)) return ret;
  27298. if (isWhiteAttr) {
  27299. // call `safeAttrValue()`
  27300. value = safeAttrValue(tag, name, value, cssFilter);
  27301. if (value) {
  27302. return name + '="' + value + '"';
  27303. } else {
  27304. return name;
  27305. }
  27306. } else {
  27307. // call `onIgnoreTagAttr()`
  27308. var ret = onIgnoreTagAttr(tag, name, value, isWhiteAttr);
  27309. if (!isNull(ret)) return ret;
  27310. return;
  27311. }
  27312. });
  27313. // build new tag html
  27314. var html = "<" + tag;
  27315. if (attrsHtml) html += " " + attrsHtml;
  27316. if (attrs.closing) html += " /";
  27317. html += ">";
  27318. return html;
  27319. } else {
  27320. // call `onIgnoreTag()`
  27321. var ret = onIgnoreTag(tag, html, info);
  27322. if (!isNull(ret)) return ret;
  27323. return escapeHtml(html);
  27324. }
  27325. },
  27326. escapeHtml
  27327. );
  27328. // if enable stripIgnoreTagBody
  27329. if (stripIgnoreTagBody) {
  27330. retHtml = stripIgnoreTagBody.remove(retHtml);
  27331. }
  27332. return retHtml;
  27333. };
  27334. module.exports = FilterXSS;
  27335. },{"./default":1,"./parser":3,"./util":4,"cssfilter":8}],6:[function(require,module,exports){
  27336. /**
  27337. * cssfilter
  27338. *
  27339. * @author 老雷<leizongmin@gmail.com>
  27340. */
  27341. var DEFAULT = require('./default');
  27342. var parseStyle = require('./parser');
  27343. var _ = require('./util');
  27344. /**
  27345. * 返回值是否为空
  27346. *
  27347. * @param {Object} obj
  27348. * @return {Boolean}
  27349. */
  27350. function isNull (obj) {
  27351. return (obj === undefined || obj === null);
  27352. }
  27353. /**
  27354. * 浅拷贝对象
  27355. *
  27356. * @param {Object} obj
  27357. * @return {Object}
  27358. */
  27359. function shallowCopyObject (obj) {
  27360. var ret = {};
  27361. for (var i in obj) {
  27362. ret[i] = obj[i];
  27363. }
  27364. return ret;
  27365. }
  27366. /**
  27367. * 创建CSS过滤器
  27368. *
  27369. * @param {Object} options
  27370. * - {Object} whiteList
  27371. * - {Function} onAttr
  27372. * - {Function} onIgnoreAttr
  27373. * - {Function} safeAttrValue
  27374. */
  27375. function FilterCSS (options) {
  27376. options = shallowCopyObject(options || {});
  27377. options.whiteList = options.whiteList || DEFAULT.whiteList;
  27378. options.onAttr = options.onAttr || DEFAULT.onAttr;
  27379. options.onIgnoreAttr = options.onIgnoreAttr || DEFAULT.onIgnoreAttr;
  27380. options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
  27381. this.options = options;
  27382. }
  27383. FilterCSS.prototype.process = function (css) {
  27384. // 兼容各种奇葩输入
  27385. css = css || '';
  27386. css = css.toString();
  27387. if (!css) return '';
  27388. var me = this;
  27389. var options = me.options;
  27390. var whiteList = options.whiteList;
  27391. var onAttr = options.onAttr;
  27392. var onIgnoreAttr = options.onIgnoreAttr;
  27393. var safeAttrValue = options.safeAttrValue;
  27394. var retCSS = parseStyle(css, function (sourcePosition, position, name, value, source) {
  27395. var check = whiteList[name];
  27396. var isWhite = false;
  27397. if (check === true) isWhite = check;
  27398. else if (typeof check === 'function') isWhite = check(value);
  27399. else if (check instanceof RegExp) isWhite = check.test(value);
  27400. if (isWhite !== true) isWhite = false;
  27401. // 如果过滤后 value 为空则直接忽略
  27402. value = safeAttrValue(name, value);
  27403. if (!value) return;
  27404. var opts = {
  27405. position: position,
  27406. sourcePosition: sourcePosition,
  27407. source: source,
  27408. isWhite: isWhite
  27409. };
  27410. if (isWhite) {
  27411. var ret = onAttr(name, value, opts);
  27412. if (isNull(ret)) {
  27413. return name + ':' + value;
  27414. } else {
  27415. return ret;
  27416. }
  27417. } else {
  27418. var ret = onIgnoreAttr(name, value, opts);
  27419. if (!isNull(ret)) {
  27420. return ret;
  27421. }
  27422. }
  27423. });
  27424. return retCSS;
  27425. };
  27426. module.exports = FilterCSS;
  27427. },{"./default":7,"./parser":9,"./util":10}],7:[function(require,module,exports){
  27428. /**
  27429. * cssfilter
  27430. *
  27431. * @author 老雷<leizongmin@gmail.com>
  27432. */
  27433. function getDefaultWhiteList () {
  27434. // 白名单值说明:
  27435. // true: 允许该属性
  27436. // Function: function (val) { } 返回true表示允许该属性,其他值均表示不允许
  27437. // RegExp: regexp.test(val) 返回true表示允许该属性,其他值均表示不允许
  27438. // 除上面列出的值外均表示不允许
  27439. var whiteList = {};
  27440. whiteList['align-content'] = false; // default: auto
  27441. whiteList['align-items'] = false; // default: auto
  27442. whiteList['align-self'] = false; // default: auto
  27443. whiteList['alignment-adjust'] = false; // default: auto
  27444. whiteList['alignment-baseline'] = false; // default: baseline
  27445. whiteList['all'] = false; // default: depending on individual properties
  27446. whiteList['anchor-point'] = false; // default: none
  27447. whiteList['animation'] = false; // default: depending on individual properties
  27448. whiteList['animation-delay'] = false; // default: 0
  27449. whiteList['animation-direction'] = false; // default: normal
  27450. whiteList['animation-duration'] = false; // default: 0
  27451. whiteList['animation-fill-mode'] = false; // default: none
  27452. whiteList['animation-iteration-count'] = false; // default: 1
  27453. whiteList['animation-name'] = false; // default: none
  27454. whiteList['animation-play-state'] = false; // default: running
  27455. whiteList['animation-timing-function'] = false; // default: ease
  27456. whiteList['azimuth'] = false; // default: center
  27457. whiteList['backface-visibility'] = false; // default: visible
  27458. whiteList['background'] = true; // default: depending on individual properties
  27459. whiteList['background-attachment'] = true; // default: scroll
  27460. whiteList['background-clip'] = true; // default: border-box
  27461. whiteList['background-color'] = true; // default: transparent
  27462. whiteList['background-image'] = true; // default: none
  27463. whiteList['background-origin'] = true; // default: padding-box
  27464. whiteList['background-position'] = true; // default: 0% 0%
  27465. whiteList['background-repeat'] = true; // default: repeat
  27466. whiteList['background-size'] = true; // default: auto
  27467. whiteList['baseline-shift'] = false; // default: baseline
  27468. whiteList['binding'] = false; // default: none
  27469. whiteList['bleed'] = false; // default: 6pt
  27470. whiteList['bookmark-label'] = false; // default: content()
  27471. whiteList['bookmark-level'] = false; // default: none
  27472. whiteList['bookmark-state'] = false; // default: open
  27473. whiteList['border'] = true; // default: depending on individual properties
  27474. whiteList['border-bottom'] = true; // default: depending on individual properties
  27475. whiteList['border-bottom-color'] = true; // default: current color
  27476. whiteList['border-bottom-left-radius'] = true; // default: 0
  27477. whiteList['border-bottom-right-radius'] = true; // default: 0
  27478. whiteList['border-bottom-style'] = true; // default: none
  27479. whiteList['border-bottom-width'] = true; // default: medium
  27480. whiteList['border-collapse'] = true; // default: separate
  27481. whiteList['border-color'] = true; // default: depending on individual properties
  27482. whiteList['border-image'] = true; // default: none
  27483. whiteList['border-image-outset'] = true; // default: 0
  27484. whiteList['border-image-repeat'] = true; // default: stretch
  27485. whiteList['border-image-slice'] = true; // default: 100%
  27486. whiteList['border-image-source'] = true; // default: none
  27487. whiteList['border-image-width'] = true; // default: 1
  27488. whiteList['border-left'] = true; // default: depending on individual properties
  27489. whiteList['border-left-color'] = true; // default: current color
  27490. whiteList['border-left-style'] = true; // default: none
  27491. whiteList['border-left-width'] = true; // default: medium
  27492. whiteList['border-radius'] = true; // default: 0
  27493. whiteList['border-right'] = true; // default: depending on individual properties
  27494. whiteList['border-right-color'] = true; // default: current color
  27495. whiteList['border-right-style'] = true; // default: none
  27496. whiteList['border-right-width'] = true; // default: medium
  27497. whiteList['border-spacing'] = true; // default: 0
  27498. whiteList['border-style'] = true; // default: depending on individual properties
  27499. whiteList['border-top'] = true; // default: depending on individual properties
  27500. whiteList['border-top-color'] = true; // default: current color
  27501. whiteList['border-top-left-radius'] = true; // default: 0
  27502. whiteList['border-top-right-radius'] = true; // default: 0
  27503. whiteList['border-top-style'] = true; // default: none
  27504. whiteList['border-top-width'] = true; // default: medium
  27505. whiteList['border-width'] = true; // default: depending on individual properties
  27506. whiteList['bottom'] = false; // default: auto
  27507. whiteList['box-decoration-break'] = true; // default: slice
  27508. whiteList['box-shadow'] = true; // default: none
  27509. whiteList['box-sizing'] = true; // default: content-box
  27510. whiteList['box-snap'] = true; // default: none
  27511. whiteList['box-suppress'] = true; // default: show
  27512. whiteList['break-after'] = true; // default: auto
  27513. whiteList['break-before'] = true; // default: auto
  27514. whiteList['break-inside'] = true; // default: auto
  27515. whiteList['caption-side'] = false; // default: top
  27516. whiteList['chains'] = false; // default: none
  27517. whiteList['clear'] = true; // default: none
  27518. whiteList['clip'] = false; // default: auto
  27519. whiteList['clip-path'] = false; // default: none
  27520. whiteList['clip-rule'] = false; // default: nonzero
  27521. whiteList['color'] = true; // default: implementation dependent
  27522. whiteList['color-interpolation-filters'] = true; // default: auto
  27523. whiteList['column-count'] = false; // default: auto
  27524. whiteList['column-fill'] = false; // default: balance
  27525. whiteList['column-gap'] = false; // default: normal
  27526. whiteList['column-rule'] = false; // default: depending on individual properties
  27527. whiteList['column-rule-color'] = false; // default: current color
  27528. whiteList['column-rule-style'] = false; // default: medium
  27529. whiteList['column-rule-width'] = false; // default: medium
  27530. whiteList['column-span'] = false; // default: none
  27531. whiteList['column-width'] = false; // default: auto
  27532. whiteList['columns'] = false; // default: depending on individual properties
  27533. whiteList['contain'] = false; // default: none
  27534. whiteList['content'] = false; // default: normal
  27535. whiteList['counter-increment'] = false; // default: none
  27536. whiteList['counter-reset'] = false; // default: none
  27537. whiteList['counter-set'] = false; // default: none
  27538. whiteList['crop'] = false; // default: auto
  27539. whiteList['cue'] = false; // default: depending on individual properties
  27540. whiteList['cue-after'] = false; // default: none
  27541. whiteList['cue-before'] = false; // default: none
  27542. whiteList['cursor'] = false; // default: auto
  27543. whiteList['direction'] = false; // default: ltr
  27544. whiteList['display'] = true; // default: depending on individual properties
  27545. whiteList['display-inside'] = true; // default: auto
  27546. whiteList['display-list'] = true; // default: none
  27547. whiteList['display-outside'] = true; // default: inline-level
  27548. whiteList['dominant-baseline'] = false; // default: auto
  27549. whiteList['elevation'] = false; // default: level
  27550. whiteList['empty-cells'] = false; // default: show
  27551. whiteList['filter'] = false; // default: none
  27552. whiteList['flex'] = false; // default: depending on individual properties
  27553. whiteList['flex-basis'] = false; // default: auto
  27554. whiteList['flex-direction'] = false; // default: row
  27555. whiteList['flex-flow'] = false; // default: depending on individual properties
  27556. whiteList['flex-grow'] = false; // default: 0
  27557. whiteList['flex-shrink'] = false; // default: 1
  27558. whiteList['flex-wrap'] = false; // default: nowrap
  27559. whiteList['float'] = false; // default: none
  27560. whiteList['float-offset'] = false; // default: 0 0
  27561. whiteList['flood-color'] = false; // default: black
  27562. whiteList['flood-opacity'] = false; // default: 1
  27563. whiteList['flow-from'] = false; // default: none
  27564. whiteList['flow-into'] = false; // default: none
  27565. whiteList['font'] = true; // default: depending on individual properties
  27566. whiteList['font-family'] = true; // default: implementation dependent
  27567. whiteList['font-feature-settings'] = true; // default: normal
  27568. whiteList['font-kerning'] = true; // default: auto
  27569. whiteList['font-language-override'] = true; // default: normal
  27570. whiteList['font-size'] = true; // default: medium
  27571. whiteList['font-size-adjust'] = true; // default: none
  27572. whiteList['font-stretch'] = true; // default: normal
  27573. whiteList['font-style'] = true; // default: normal
  27574. whiteList['font-synthesis'] = true; // default: weight style
  27575. whiteList['font-variant'] = true; // default: normal
  27576. whiteList['font-variant-alternates'] = true; // default: normal
  27577. whiteList['font-variant-caps'] = true; // default: normal
  27578. whiteList['font-variant-east-asian'] = true; // default: normal
  27579. whiteList['font-variant-ligatures'] = true; // default: normal
  27580. whiteList['font-variant-numeric'] = true; // default: normal
  27581. whiteList['font-variant-position'] = true; // default: normal
  27582. whiteList['font-weight'] = true; // default: normal
  27583. whiteList['grid'] = false; // default: depending on individual properties
  27584. whiteList['grid-area'] = false; // default: depending on individual properties
  27585. whiteList['grid-auto-columns'] = false; // default: auto
  27586. whiteList['grid-auto-flow'] = false; // default: none
  27587. whiteList['grid-auto-rows'] = false; // default: auto
  27588. whiteList['grid-column'] = false; // default: depending on individual properties
  27589. whiteList['grid-column-end'] = false; // default: auto
  27590. whiteList['grid-column-start'] = false; // default: auto
  27591. whiteList['grid-row'] = false; // default: depending on individual properties
  27592. whiteList['grid-row-end'] = false; // default: auto
  27593. whiteList['grid-row-start'] = false; // default: auto
  27594. whiteList['grid-template'] = false; // default: depending on individual properties
  27595. whiteList['grid-template-areas'] = false; // default: none
  27596. whiteList['grid-template-columns'] = false; // default: none
  27597. whiteList['grid-template-rows'] = false; // default: none
  27598. whiteList['hanging-punctuation'] = false; // default: none
  27599. whiteList['height'] = true; // default: auto
  27600. whiteList['hyphens'] = false; // default: manual
  27601. whiteList['icon'] = false; // default: auto
  27602. whiteList['image-orientation'] = false; // default: auto
  27603. whiteList['image-resolution'] = false; // default: normal
  27604. whiteList['ime-mode'] = false; // default: auto
  27605. whiteList['initial-letters'] = false; // default: normal
  27606. whiteList['inline-box-align'] = false; // default: last
  27607. whiteList['justify-content'] = false; // default: auto
  27608. whiteList['justify-items'] = false; // default: auto
  27609. whiteList['justify-self'] = false; // default: auto
  27610. whiteList['left'] = false; // default: auto
  27611. whiteList['letter-spacing'] = true; // default: normal
  27612. whiteList['lighting-color'] = true; // default: white
  27613. whiteList['line-box-contain'] = false; // default: block inline replaced
  27614. whiteList['line-break'] = false; // default: auto
  27615. whiteList['line-grid'] = false; // default: match-parent
  27616. whiteList['line-height'] = false; // default: normal
  27617. whiteList['line-snap'] = false; // default: none
  27618. whiteList['line-stacking'] = false; // default: depending on individual properties
  27619. whiteList['line-stacking-ruby'] = false; // default: exclude-ruby
  27620. whiteList['line-stacking-shift'] = false; // default: consider-shifts
  27621. whiteList['line-stacking-strategy'] = false; // default: inline-line-height
  27622. whiteList['list-style'] = true; // default: depending on individual properties
  27623. whiteList['list-style-image'] = true; // default: none
  27624. whiteList['list-style-position'] = true; // default: outside
  27625. whiteList['list-style-type'] = true; // default: disc
  27626. whiteList['margin'] = true; // default: depending on individual properties
  27627. whiteList['margin-bottom'] = true; // default: 0
  27628. whiteList['margin-left'] = true; // default: 0
  27629. whiteList['margin-right'] = true; // default: 0
  27630. whiteList['margin-top'] = true; // default: 0
  27631. whiteList['marker-offset'] = false; // default: auto
  27632. whiteList['marker-side'] = false; // default: list-item
  27633. whiteList['marks'] = false; // default: none
  27634. whiteList['mask'] = false; // default: border-box
  27635. whiteList['mask-box'] = false; // default: see individual properties
  27636. whiteList['mask-box-outset'] = false; // default: 0
  27637. whiteList['mask-box-repeat'] = false; // default: stretch
  27638. whiteList['mask-box-slice'] = false; // default: 0 fill
  27639. whiteList['mask-box-source'] = false; // default: none
  27640. whiteList['mask-box-width'] = false; // default: auto
  27641. whiteList['mask-clip'] = false; // default: border-box
  27642. whiteList['mask-image'] = false; // default: none
  27643. whiteList['mask-origin'] = false; // default: border-box
  27644. whiteList['mask-position'] = false; // default: center
  27645. whiteList['mask-repeat'] = false; // default: no-repeat
  27646. whiteList['mask-size'] = false; // default: border-box
  27647. whiteList['mask-source-type'] = false; // default: auto
  27648. whiteList['mask-type'] = false; // default: luminance
  27649. whiteList['max-height'] = true; // default: none
  27650. whiteList['max-lines'] = false; // default: none
  27651. whiteList['max-width'] = true; // default: none
  27652. whiteList['min-height'] = true; // default: 0
  27653. whiteList['min-width'] = true; // default: 0
  27654. whiteList['move-to'] = false; // default: normal
  27655. whiteList['nav-down'] = false; // default: auto
  27656. whiteList['nav-index'] = false; // default: auto
  27657. whiteList['nav-left'] = false; // default: auto
  27658. whiteList['nav-right'] = false; // default: auto
  27659. whiteList['nav-up'] = false; // default: auto
  27660. whiteList['object-fit'] = false; // default: fill
  27661. whiteList['object-position'] = false; // default: 50% 50%
  27662. whiteList['opacity'] = false; // default: 1
  27663. whiteList['order'] = false; // default: 0
  27664. whiteList['orphans'] = false; // default: 2
  27665. whiteList['outline'] = false; // default: depending on individual properties
  27666. whiteList['outline-color'] = false; // default: invert
  27667. whiteList['outline-offset'] = false; // default: 0
  27668. whiteList['outline-style'] = false; // default: none
  27669. whiteList['outline-width'] = false; // default: medium
  27670. whiteList['overflow'] = false; // default: depending on individual properties
  27671. whiteList['overflow-wrap'] = false; // default: normal
  27672. whiteList['overflow-x'] = false; // default: visible
  27673. whiteList['overflow-y'] = false; // default: visible
  27674. whiteList['padding'] = true; // default: depending on individual properties
  27675. whiteList['padding-bottom'] = true; // default: 0
  27676. whiteList['padding-left'] = true; // default: 0
  27677. whiteList['padding-right'] = true; // default: 0
  27678. whiteList['padding-top'] = true; // default: 0
  27679. whiteList['page'] = false; // default: auto
  27680. whiteList['page-break-after'] = false; // default: auto
  27681. whiteList['page-break-before'] = false; // default: auto
  27682. whiteList['page-break-inside'] = false; // default: auto
  27683. whiteList['page-policy'] = false; // default: start
  27684. whiteList['pause'] = false; // default: implementation dependent
  27685. whiteList['pause-after'] = false; // default: implementation dependent
  27686. whiteList['pause-before'] = false; // default: implementation dependent
  27687. whiteList['perspective'] = false; // default: none
  27688. whiteList['perspective-origin'] = false; // default: 50% 50%
  27689. whiteList['pitch'] = false; // default: medium
  27690. whiteList['pitch-range'] = false; // default: 50
  27691. whiteList['play-during'] = false; // default: auto
  27692. whiteList['position'] = false; // default: static
  27693. whiteList['presentation-level'] = false; // default: 0
  27694. whiteList['quotes'] = false; // default: text
  27695. whiteList['region-fragment'] = false; // default: auto
  27696. whiteList['resize'] = false; // default: none
  27697. whiteList['rest'] = false; // default: depending on individual properties
  27698. whiteList['rest-after'] = false; // default: none
  27699. whiteList['rest-before'] = false; // default: none
  27700. whiteList['richness'] = false; // default: 50
  27701. whiteList['right'] = false; // default: auto
  27702. whiteList['rotation'] = false; // default: 0
  27703. whiteList['rotation-point'] = false; // default: 50% 50%
  27704. whiteList['ruby-align'] = false; // default: auto
  27705. whiteList['ruby-merge'] = false; // default: separate
  27706. whiteList['ruby-position'] = false; // default: before
  27707. whiteList['shape-image-threshold'] = false; // default: 0.0
  27708. whiteList['shape-outside'] = false; // default: none
  27709. whiteList['shape-margin'] = false; // default: 0
  27710. whiteList['size'] = false; // default: auto
  27711. whiteList['speak'] = false; // default: auto
  27712. whiteList['speak-as'] = false; // default: normal
  27713. whiteList['speak-header'] = false; // default: once
  27714. whiteList['speak-numeral'] = false; // default: continuous
  27715. whiteList['speak-punctuation'] = false; // default: none
  27716. whiteList['speech-rate'] = false; // default: medium
  27717. whiteList['stress'] = false; // default: 50
  27718. whiteList['string-set'] = false; // default: none
  27719. whiteList['tab-size'] = false; // default: 8
  27720. whiteList['table-layout'] = false; // default: auto
  27721. whiteList['text-align'] = true; // default: start
  27722. whiteList['text-align-last'] = true; // default: auto
  27723. whiteList['text-combine-upright'] = true; // default: none
  27724. whiteList['text-decoration'] = true; // default: none
  27725. whiteList['text-decoration-color'] = true; // default: currentColor
  27726. whiteList['text-decoration-line'] = true; // default: none
  27727. whiteList['text-decoration-skip'] = true; // default: objects
  27728. whiteList['text-decoration-style'] = true; // default: solid
  27729. whiteList['text-emphasis'] = true; // default: depending on individual properties
  27730. whiteList['text-emphasis-color'] = true; // default: currentColor
  27731. whiteList['text-emphasis-position'] = true; // default: over right
  27732. whiteList['text-emphasis-style'] = true; // default: none
  27733. whiteList['text-height'] = true; // default: auto
  27734. whiteList['text-indent'] = true; // default: 0
  27735. whiteList['text-justify'] = true; // default: auto
  27736. whiteList['text-orientation'] = true; // default: mixed
  27737. whiteList['text-overflow'] = true; // default: clip
  27738. whiteList['text-shadow'] = true; // default: none
  27739. whiteList['text-space-collapse'] = true; // default: collapse
  27740. whiteList['text-transform'] = true; // default: none
  27741. whiteList['text-underline-position'] = true; // default: auto
  27742. whiteList['text-wrap'] = true; // default: normal
  27743. whiteList['top'] = false; // default: auto
  27744. whiteList['transform'] = false; // default: none
  27745. whiteList['transform-origin'] = false; // default: 50% 50% 0
  27746. whiteList['transform-style'] = false; // default: flat
  27747. whiteList['transition'] = false; // default: depending on individual properties
  27748. whiteList['transition-delay'] = false; // default: 0s
  27749. whiteList['transition-duration'] = false; // default: 0s
  27750. whiteList['transition-property'] = false; // default: all
  27751. whiteList['transition-timing-function'] = false; // default: ease
  27752. whiteList['unicode-bidi'] = false; // default: normal
  27753. whiteList['vertical-align'] = false; // default: baseline
  27754. whiteList['visibility'] = false; // default: visible
  27755. whiteList['voice-balance'] = false; // default: center
  27756. whiteList['voice-duration'] = false; // default: auto
  27757. whiteList['voice-family'] = false; // default: implementation dependent
  27758. whiteList['voice-pitch'] = false; // default: medium
  27759. whiteList['voice-range'] = false; // default: medium
  27760. whiteList['voice-rate'] = false; // default: normal
  27761. whiteList['voice-stress'] = false; // default: normal
  27762. whiteList['voice-volume'] = false; // default: medium
  27763. whiteList['volume'] = false; // default: medium
  27764. whiteList['white-space'] = false; // default: normal
  27765. whiteList['widows'] = false; // default: 2
  27766. whiteList['width'] = true; // default: auto
  27767. whiteList['will-change'] = false; // default: auto
  27768. whiteList['word-break'] = true; // default: normal
  27769. whiteList['word-spacing'] = true; // default: normal
  27770. whiteList['word-wrap'] = true; // default: normal
  27771. whiteList['wrap-flow'] = false; // default: auto
  27772. whiteList['wrap-through'] = false; // default: wrap
  27773. whiteList['writing-mode'] = false; // default: horizontal-tb
  27774. whiteList['z-index'] = false; // default: auto
  27775. return whiteList;
  27776. }
  27777. /**
  27778. * 匹配到白名单上的一个属性时
  27779. *
  27780. * @param {String} name
  27781. * @param {String} value
  27782. * @param {Object} options
  27783. * @return {String}
  27784. */
  27785. function onAttr (name, value, options) {
  27786. // do nothing
  27787. }
  27788. /**
  27789. * 匹配到不在白名单上的一个属性时
  27790. *
  27791. * @param {String} name
  27792. * @param {String} value
  27793. * @param {Object} options
  27794. * @return {String}
  27795. */
  27796. function onIgnoreAttr (name, value, options) {
  27797. // do nothing
  27798. }
  27799. var REGEXP_URL_JAVASCRIPT = /javascript\s*\:/img;
  27800. /**
  27801. * 过滤属性值
  27802. *
  27803. * @param {String} name
  27804. * @param {String} value
  27805. * @return {String}
  27806. */
  27807. function safeAttrValue(name, value) {
  27808. if (REGEXP_URL_JAVASCRIPT.test(value)) return '';
  27809. return value;
  27810. }
  27811. exports.whiteList = getDefaultWhiteList();
  27812. exports.getDefaultWhiteList = getDefaultWhiteList;
  27813. exports.onAttr = onAttr;
  27814. exports.onIgnoreAttr = onIgnoreAttr;
  27815. exports.safeAttrValue = safeAttrValue;
  27816. },{}],8:[function(require,module,exports){
  27817. /**
  27818. * cssfilter
  27819. *
  27820. * @author 老雷<leizongmin@gmail.com>
  27821. */
  27822. var DEFAULT = require('./default');
  27823. var FilterCSS = require('./css');
  27824. /**
  27825. * XSS过滤
  27826. *
  27827. * @param {String} css 要过滤的CSS代码
  27828. * @param {Object} options 选项:whiteList, onAttr, onIgnoreAttr
  27829. * @return {String}
  27830. */
  27831. function filterCSS (html, options) {
  27832. var xss = new FilterCSS(options);
  27833. return xss.process(html);
  27834. }
  27835. // 输出
  27836. exports = module.exports = filterCSS;
  27837. exports.FilterCSS = FilterCSS;
  27838. for (var i in DEFAULT) exports[i] = DEFAULT[i];
  27839. // 在浏览器端使用
  27840. if (typeof window !== 'undefined') {
  27841. window.filterCSS = module.exports;
  27842. }
  27843. },{"./css":6,"./default":7}],9:[function(require,module,exports){
  27844. /**
  27845. * cssfilter
  27846. *
  27847. * @author 老雷<leizongmin@gmail.com>
  27848. */
  27849. var _ = require('./util');
  27850. /**
  27851. * 解析style
  27852. *
  27853. * @param {String} css
  27854. * @param {Function} onAttr 处理属性的函数
  27855. * 参数格式: function (sourcePosition, position, name, value, source)
  27856. * @return {String}
  27857. */
  27858. function parseStyle (css, onAttr) {
  27859. css = _.trimRight(css);
  27860. if (css[css.length - 1] !== ';') css += ';';
  27861. var cssLength = css.length;
  27862. var isParenthesisOpen = false;
  27863. var lastPos = 0;
  27864. var i = 0;
  27865. var retCSS = '';
  27866. function addNewAttr () {
  27867. // 如果没有正常的闭合圆括号,则直接忽略当前属性
  27868. if (!isParenthesisOpen) {
  27869. var source = _.trim(css.slice(lastPos, i));
  27870. var j = source.indexOf(':');
  27871. if (j !== -1) {
  27872. var name = _.trim(source.slice(0, j));
  27873. var value = _.trim(source.slice(j + 1));
  27874. // 必须有属性名称
  27875. if (name) {
  27876. var ret = onAttr(lastPos, retCSS.length, name, value, source);
  27877. if (ret) retCSS += ret + '; ';
  27878. }
  27879. }
  27880. }
  27881. lastPos = i + 1;
  27882. }
  27883. for (; i < cssLength; i++) {
  27884. var c = css[i];
  27885. if (c === '/' && css[i + 1] === '*') {
  27886. // 备注开始
  27887. var j = css.indexOf('*/', i + 2);
  27888. // 如果没有正常的备注结束,则后面的部分全部跳过
  27889. if (j === -1) break;
  27890. // 直接将当前位置调到备注结尾,并且初始化状态
  27891. i = j + 1;
  27892. lastPos = i + 1;
  27893. isParenthesisOpen = false;
  27894. } else if (c === '(') {
  27895. isParenthesisOpen = true;
  27896. } else if (c === ')') {
  27897. isParenthesisOpen = false;
  27898. } else if (c === ';') {
  27899. if (isParenthesisOpen) {
  27900. // 在圆括号里面,忽略
  27901. } else {
  27902. addNewAttr();
  27903. }
  27904. } else if (c === '\n') {
  27905. addNewAttr();
  27906. }
  27907. }
  27908. return _.trim(retCSS);
  27909. }
  27910. module.exports = parseStyle;
  27911. },{"./util":10}],10:[function(require,module,exports){
  27912. module.exports = {
  27913. indexOf: function (arr, item) {
  27914. var i, j;
  27915. if (Array.prototype.indexOf) {
  27916. return arr.indexOf(item);
  27917. }
  27918. for (i = 0, j = arr.length; i < j; i++) {
  27919. if (arr[i] === item) {
  27920. return i;
  27921. }
  27922. }
  27923. return -1;
  27924. },
  27925. forEach: function (arr, fn, scope) {
  27926. var i, j;
  27927. if (Array.prototype.forEach) {
  27928. return arr.forEach(fn, scope);
  27929. }
  27930. for (i = 0, j = arr.length; i < j; i++) {
  27931. fn.call(scope, arr[i], i, arr);
  27932. }
  27933. },
  27934. trim: function (str) {
  27935. if (String.prototype.trim) {
  27936. return str.trim();
  27937. }
  27938. return str.replace(/(^\s*)|(\s*$)/g, '');
  27939. },
  27940. trimRight: function (str) {
  27941. if (String.prototype.trimRight) {
  27942. return str.trimRight();
  27943. }
  27944. return str.replace(/(\s*$)/g, '');
  27945. }
  27946. };
  27947. },{}]},{},[2]);
  27948. /*** EXPORTS FROM exports-loader ***/
  27949. exports["filterXSS"] = (filterXSS);
  27950. exports["filterCSS"] = (filterCSS);
  27951. /***/ }),
  27952. /***/ "./src/backbone.noconflict.js":
  27953. /*!************************************!*\
  27954. !*** ./src/backbone.noconflict.js ***!
  27955. \************************************/
  27956. /*! no static exports found */
  27957. /***/ (function(module, exports, __webpack_require__) {
  27958. "use strict";
  27959. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  27960. /*global define */
  27961. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (Backbone) {
  27962. return Backbone.noConflict();
  27963. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  27964. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  27965. /***/ }),
  27966. /***/ "./src/converse-autocomplete.js":
  27967. /*!**************************************!*\
  27968. !*** ./src/converse-autocomplete.js ***!
  27969. \**************************************/
  27970. /*! no static exports found */
  27971. /***/ (function(module, exports, __webpack_require__) {
  27972. "use strict";
  27973. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  27974. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  27975. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  27976. function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  27977. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  27978. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  27979. // Converse.js
  27980. // http://conversejs.org
  27981. //
  27982. // Copyright (c) 2013-2018, the Converse.js developers
  27983. // Licensed under the Mozilla Public License (MPLv2)
  27984. // This plugin started as a fork of Lea Verou's Awesomplete
  27985. // https://leaverou.github.io/awesomplete/
  27986. (function (root, factory) {
  27987. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27988. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27989. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27990. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  27991. })(void 0, function (converse) {
  27992. var _converse$env = converse.env,
  27993. _ = _converse$env._,
  27994. Backbone = _converse$env.Backbone,
  27995. u = converse.env.utils;
  27996. converse.plugins.add("converse-autocomplete", {
  27997. initialize: function initialize() {
  27998. var _converse = this._converse;
  27999. _converse.FILTER_CONTAINS = function (text, input) {
  28000. return RegExp(helpers.regExpEscape(input.trim()), "i").test(text);
  28001. };
  28002. _converse.FILTER_STARTSWITH = function (text, input) {
  28003. return RegExp("^" + helpers.regExpEscape(input.trim()), "i").test(text);
  28004. };
  28005. var SORT_BYLENGTH = function SORT_BYLENGTH(a, b) {
  28006. if (a.length !== b.length) {
  28007. return a.length - b.length;
  28008. }
  28009. return a < b ? -1 : 1;
  28010. };
  28011. var ITEM = function ITEM(text, input) {
  28012. input = input.trim();
  28013. var element = document.createElement("li");
  28014. element.setAttribute("aria-selected", "false");
  28015. var regex = new RegExp("(" + input + ")", "ig");
  28016. var parts = input ? text.split(regex) : [text];
  28017. parts.forEach(function (txt) {
  28018. if (input && txt.match(regex)) {
  28019. var match = document.createElement("mark");
  28020. match.textContent = txt;
  28021. element.appendChild(match);
  28022. } else {
  28023. element.appendChild(document.createTextNode(txt));
  28024. }
  28025. });
  28026. return element;
  28027. };
  28028. var AutoComplete =
  28029. /*#__PURE__*/
  28030. function () {
  28031. function AutoComplete(el) {
  28032. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28033. _classCallCheck(this, AutoComplete);
  28034. this.is_opened = false;
  28035. if (u.hasClass('.suggestion-box', el)) {
  28036. this.container = el;
  28037. } else {
  28038. this.container = el.querySelector('.suggestion-box');
  28039. }
  28040. this.input = this.container.querySelector('.suggestion-box__input');
  28041. this.input.setAttribute("autocomplete", "off");
  28042. this.input.setAttribute("aria-autocomplete", "list");
  28043. this.ul = this.container.querySelector('.suggestion-box__results');
  28044. this.status = this.container.querySelector('.suggestion-box__additions');
  28045. _.assignIn(this, {
  28046. 'match_current_word': false,
  28047. // Match only the current word, otherwise all input is matched
  28048. 'match_on_tab': false,
  28049. // Whether matching should only start when tab's pressed
  28050. 'trigger_on_at': false,
  28051. // Whether @ should trigger autocomplete
  28052. 'min_chars': 2,
  28053. 'max_items': 10,
  28054. 'auto_evaluate': true,
  28055. 'auto_first': false,
  28056. 'data': _.identity,
  28057. 'filter': _converse.FILTER_CONTAINS,
  28058. 'sort': config.sort === false ? false : SORT_BYLENGTH,
  28059. 'item': ITEM
  28060. }, config);
  28061. this.index = -1;
  28062. this.bindEvents();
  28063. if (this.input.hasAttribute("list")) {
  28064. this.list = "#" + this.input.getAttribute("list");
  28065. this.input.removeAttribute("list");
  28066. } else {
  28067. this.list = this.input.getAttribute("data-list") || config.list || [];
  28068. }
  28069. }
  28070. _createClass(AutoComplete, [{
  28071. key: "bindEvents",
  28072. value: function bindEvents() {
  28073. var _this = this;
  28074. // Bind events
  28075. var input = {
  28076. "blur": function blur() {
  28077. return _this.close({
  28078. 'reason': 'blur'
  28079. });
  28080. }
  28081. };
  28082. if (this.auto_evaluate) {
  28083. input["input"] = function () {
  28084. return _this.evaluate();
  28085. };
  28086. }
  28087. this._events = {
  28088. 'input': input,
  28089. 'form': {
  28090. "submit": function submit() {
  28091. return _this.close({
  28092. 'reason': 'submit'
  28093. });
  28094. }
  28095. },
  28096. 'ul': {
  28097. "mousedown": function mousedown(ev) {
  28098. return _this.onMouseDown(ev);
  28099. },
  28100. "mouseover": function mouseover(ev) {
  28101. return _this.onMouseOver(ev);
  28102. }
  28103. }
  28104. };
  28105. helpers.bind(this.input, this._events.input);
  28106. helpers.bind(this.input.form, this._events.form);
  28107. helpers.bind(this.ul, this._events.ul);
  28108. }
  28109. }, {
  28110. key: "close",
  28111. value: function close(o) {
  28112. if (!this.opened) {
  28113. return;
  28114. }
  28115. this.ul.setAttribute("hidden", "");
  28116. this.is_opened = false;
  28117. this.index = -1;
  28118. this.trigger("suggestion-box-close", o || {});
  28119. }
  28120. }, {
  28121. key: "insertValue",
  28122. value: function insertValue(suggestion) {
  28123. var value;
  28124. if (this.match_current_word) {
  28125. u.replaceCurrentWord(this.input, suggestion.value);
  28126. } else {
  28127. this.input.value = suggestion.value;
  28128. }
  28129. }
  28130. }, {
  28131. key: "open",
  28132. value: function open() {
  28133. this.ul.removeAttribute("hidden");
  28134. this.is_opened = true;
  28135. if (this.auto_first && this.index === -1) {
  28136. this.goto(0);
  28137. }
  28138. this.trigger("suggestion-box-open");
  28139. }
  28140. }, {
  28141. key: "destroy",
  28142. value: function destroy() {
  28143. //remove events from the input and its form
  28144. helpers.unbind(this.input, this._events.input);
  28145. helpers.unbind(this.input.form, this._events.form); //move the input out of the suggestion-box container and remove the container and its children
  28146. var parentNode = this.container.parentNode;
  28147. parentNode.insertBefore(this.input, this.container);
  28148. parentNode.removeChild(this.container); //remove autocomplete and aria-autocomplete attributes
  28149. this.input.removeAttribute("autocomplete");
  28150. this.input.removeAttribute("aria-autocomplete");
  28151. }
  28152. }, {
  28153. key: "next",
  28154. value: function next() {
  28155. var count = this.ul.children.length;
  28156. this.goto(this.index < count - 1 ? this.index + 1 : count ? 0 : -1);
  28157. }
  28158. }, {
  28159. key: "previous",
  28160. value: function previous() {
  28161. var count = this.ul.children.length,
  28162. pos = this.index - 1;
  28163. this.goto(this.selected && pos !== -1 ? pos : count - 1);
  28164. }
  28165. }, {
  28166. key: "goto",
  28167. value: function goto(i) {
  28168. // Should not be used directly, highlights specific item without any checks!
  28169. var list = this.ul.children;
  28170. if (this.selected) {
  28171. list[this.index].setAttribute("aria-selected", "false");
  28172. }
  28173. this.index = i;
  28174. if (i > -1 && list.length > 0) {
  28175. list[i].setAttribute("aria-selected", "true");
  28176. list[i].focus();
  28177. this.status.textContent = list[i].textContent; // scroll to highlighted element in case parent's height is fixed
  28178. this.ul.scrollTop = list[i].offsetTop - this.ul.clientHeight + list[i].clientHeight;
  28179. this.trigger("suggestion-box-highlight", {
  28180. 'text': this.suggestions[this.index]
  28181. });
  28182. }
  28183. }
  28184. }, {
  28185. key: "select",
  28186. value: function select(selected, origin) {
  28187. if (selected) {
  28188. this.index = u.siblingIndex(selected);
  28189. } else {
  28190. selected = this.ul.children[this.index];
  28191. }
  28192. if (selected) {
  28193. var suggestion = this.suggestions[this.index];
  28194. this.insertValue(suggestion);
  28195. this.close({
  28196. 'reason': 'select'
  28197. });
  28198. this.auto_completing = false;
  28199. this.trigger("suggestion-box-selectcomplete", {
  28200. 'text': suggestion
  28201. });
  28202. }
  28203. }
  28204. }, {
  28205. key: "onMouseOver",
  28206. value: function onMouseOver(ev) {
  28207. var li = u.ancestor(ev.target, 'li');
  28208. if (li) {
  28209. this.goto(Array.prototype.slice.call(this.ul.children).indexOf(li));
  28210. }
  28211. }
  28212. }, {
  28213. key: "onMouseDown",
  28214. value: function onMouseDown(ev) {
  28215. if (ev.button !== 0) {
  28216. return; // Only select on left click
  28217. }
  28218. var li = u.ancestor(ev.target, 'li');
  28219. if (li) {
  28220. ev.preventDefault();
  28221. this.select(li, ev.target);
  28222. }
  28223. }
  28224. }, {
  28225. key: "keyPressed",
  28226. value: function keyPressed(ev) {
  28227. if (this.opened) {
  28228. if (_.includes([_converse.keycodes.ENTER, _converse.keycodes.TAB], ev.keyCode) && this.selected) {
  28229. ev.preventDefault();
  28230. ev.stopPropagation();
  28231. this.select();
  28232. return true;
  28233. } else if (ev.keyCode === _converse.keycodes.ESCAPE) {
  28234. this.close({
  28235. 'reason': 'esc'
  28236. });
  28237. return true;
  28238. } else if (_.includes([_converse.keycodes.UP_ARROW, _converse.keycodes.DOWN_ARROW], ev.keyCode)) {
  28239. ev.preventDefault();
  28240. ev.stopPropagation();
  28241. this[ev.keyCode === _converse.keycodes.UP_ARROW ? "previous" : "next"]();
  28242. return true;
  28243. }
  28244. }
  28245. if (_.includes([_converse.keycodes.SHIFT, _converse.keycodes.META, _converse.keycodes.META_RIGHT, _converse.keycodes.ESCAPE, _converse.keycodes.ALT], ev.keyCode)) {
  28246. return;
  28247. }
  28248. if (this.match_on_tab && ev.keyCode === _converse.keycodes.TAB) {
  28249. ev.preventDefault();
  28250. this.auto_completing = true;
  28251. } else if (this.trigger_on_at && ev.keyCode === _converse.keycodes.AT) {
  28252. this.auto_completing = true;
  28253. }
  28254. }
  28255. }, {
  28256. key: "evaluate",
  28257. value: function evaluate(ev) {
  28258. var _this2 = this;
  28259. var arrow_pressed = ev.keyCode === _converse.keycodes.UP_ARROW || ev.keyCode === _converse.keycodes.DOWN_ARROW;
  28260. if (!this.auto_completing || this.selected && arrow_pressed) {
  28261. return;
  28262. }
  28263. var list = typeof this._list === "function" ? this._list() : this._list;
  28264. if (list.length === 0) {
  28265. return;
  28266. }
  28267. var value = this.match_current_word ? u.getCurrentWord(this.input) : this.input.value;
  28268. var ignore_min_chars = false;
  28269. if (this.trigger_on_at && value.startsWith('@')) {
  28270. ignore_min_chars = true;
  28271. value = value.slice('1');
  28272. }
  28273. if (value.length >= this.min_chars || ignore_min_chars) {
  28274. this.index = -1; // Populate list with options that match
  28275. this.ul.innerHTML = "";
  28276. this.suggestions = list.map(function (item) {
  28277. return new Suggestion(_this2.data(item, value));
  28278. }).filter(function (item) {
  28279. return _this2.filter(item, value);
  28280. });
  28281. if (this.sort !== false) {
  28282. this.suggestions = this.suggestions.sort(this.sort);
  28283. }
  28284. this.suggestions = this.suggestions.slice(0, this.max_items);
  28285. this.suggestions.forEach(function (text) {
  28286. return _this2.ul.appendChild(_this2.item(text, value));
  28287. });
  28288. if (this.ul.children.length === 0) {
  28289. this.close({
  28290. 'reason': 'nomatches'
  28291. });
  28292. } else {
  28293. this.open();
  28294. }
  28295. } else {
  28296. this.close({
  28297. 'reason': 'nomatches'
  28298. });
  28299. this.auto_completing = false;
  28300. }
  28301. }
  28302. }, {
  28303. key: "list",
  28304. set: function set(list) {
  28305. if (Array.isArray(list) || typeof list === "function") {
  28306. this._list = list;
  28307. } else if (typeof list === "string" && _.includes(list, ",")) {
  28308. this._list = list.split(/\s*,\s*/);
  28309. } else {
  28310. // Element or CSS selector
  28311. list = helpers.getElement(list);
  28312. if (list && list.children) {
  28313. var items = [];
  28314. slice.apply(list.children).forEach(function (el) {
  28315. if (!el.disabled) {
  28316. var text = el.textContent.trim(),
  28317. value = el.value || text,
  28318. label = el.label || text;
  28319. if (value !== "") {
  28320. items.push({
  28321. label: label,
  28322. value: value
  28323. });
  28324. }
  28325. }
  28326. });
  28327. this._list = items;
  28328. }
  28329. }
  28330. if (document.activeElement === this.input) {
  28331. this.evaluate();
  28332. }
  28333. }
  28334. }, {
  28335. key: "selected",
  28336. get: function get() {
  28337. return this.index > -1;
  28338. }
  28339. }, {
  28340. key: "opened",
  28341. get: function get() {
  28342. return this.is_opened;
  28343. }
  28344. }]);
  28345. return AutoComplete;
  28346. }(); // Make it an event emitter
  28347. _.extend(AutoComplete.prototype, Backbone.Events); // Private functions
  28348. function Suggestion(data) {
  28349. var o = Array.isArray(data) ? {
  28350. label: data[0],
  28351. value: data[1]
  28352. } : _typeof(data) === "object" && "label" in data && "value" in data ? data : {
  28353. label: data,
  28354. value: data
  28355. };
  28356. this.label = o.label || o.value;
  28357. this.value = o.value;
  28358. }
  28359. Object.defineProperty(Suggestion.prototype = Object.create(String.prototype), "length", {
  28360. get: function get() {
  28361. return this.label.length;
  28362. }
  28363. });
  28364. Suggestion.prototype.toString = Suggestion.prototype.valueOf = function () {
  28365. return "" + this.label;
  28366. }; // Helpers
  28367. var slice = Array.prototype.slice;
  28368. var helpers = {
  28369. getElement: function getElement(expr, el) {
  28370. return typeof expr === "string" ? (el || document).querySelector(expr) : expr || null;
  28371. },
  28372. bind: function bind(element, o) {
  28373. if (element) {
  28374. var _loop = function _loop() {
  28375. if (!Object.prototype.hasOwnProperty.call(o, event)) {
  28376. return "continue";
  28377. }
  28378. var callback = o[event];
  28379. event.split(/\s+/).forEach(function (event) {
  28380. return element.addEventListener(event, callback);
  28381. });
  28382. };
  28383. for (var event in o) {
  28384. var _ret = _loop();
  28385. if (_ret === "continue") continue;
  28386. }
  28387. }
  28388. },
  28389. unbind: function unbind(element, o) {
  28390. if (element) {
  28391. var _loop2 = function _loop2() {
  28392. if (!Object.prototype.hasOwnProperty.call(o, event)) {
  28393. return "continue";
  28394. }
  28395. var callback = o[event];
  28396. event.split(/\s+/).forEach(function (event) {
  28397. return element.removeEventListener(event, callback);
  28398. });
  28399. };
  28400. for (var event in o) {
  28401. var _ret2 = _loop2();
  28402. if (_ret2 === "continue") continue;
  28403. }
  28404. }
  28405. },
  28406. regExpEscape: function regExpEscape(s) {
  28407. return s.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&");
  28408. }
  28409. };
  28410. _converse.AutoComplete = AutoComplete;
  28411. }
  28412. });
  28413. });
  28414. /***/ }),
  28415. /***/ "./src/converse-bookmarks.js":
  28416. /*!***********************************!*\
  28417. !*** ./src/converse-bookmarks.js ***!
  28418. \***********************************/
  28419. /*! no static exports found */
  28420. /***/ (function(module, exports, __webpack_require__) {
  28421. "use strict";
  28422. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  28423. // Converse.js (A browser based XMPP chat client)
  28424. // http://conversejs.org
  28425. //
  28426. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  28427. // Licensed under the Mozilla Public License (MPLv2)
  28428. //
  28429. /*global define */
  28430. /* This is a Converse.js plugin which add support for bookmarks specified
  28431. * in XEP-0048.
  28432. */
  28433. (function (root, factory) {
  28434. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), __webpack_require__(/*! templates/chatroom_bookmark_form.html */ "./src/templates/chatroom_bookmark_form.html"), __webpack_require__(/*! templates/chatroom_bookmark_toggle.html */ "./src/templates/chatroom_bookmark_toggle.html"), __webpack_require__(/*! templates/bookmark.html */ "./src/templates/bookmark.html"), __webpack_require__(/*! templates/bookmarks_list.html */ "./src/templates/bookmarks_list.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28435. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28436. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28437. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  28438. })(void 0, function (converse, muc, tpl_chatroom_bookmark_form, tpl_chatroom_bookmark_toggle, tpl_bookmark, tpl_bookmarks_list) {
  28439. var _converse$env = converse.env,
  28440. Backbone = _converse$env.Backbone,
  28441. Promise = _converse$env.Promise,
  28442. Strophe = _converse$env.Strophe,
  28443. $iq = _converse$env.$iq,
  28444. b64_sha1 = _converse$env.b64_sha1,
  28445. sizzle = _converse$env.sizzle,
  28446. _ = _converse$env._;
  28447. var u = converse.env.utils;
  28448. converse.plugins.add('converse-bookmarks', {
  28449. /* Plugin dependencies are other plugins which might be
  28450. * overridden or relied upon, and therefore need to be loaded before
  28451. * this plugin.
  28452. *
  28453. * If the setting "strict_plugin_dependencies" is set to true,
  28454. * an error will be raised if the plugin is not found. By default it's
  28455. * false, which means these plugins are only loaded opportunistically.
  28456. *
  28457. * NB: These plugins need to have already been loaded via require.js.
  28458. */
  28459. dependencies: ["converse-chatboxes", "converse-muc", "converse-muc-views"],
  28460. overrides: {
  28461. // Overrides mentioned here will be picked up by converse.js's
  28462. // plugin architecture they will replace existing methods on the
  28463. // relevant objects or classes.
  28464. //
  28465. // New functions which don't exist yet can also be added.
  28466. ChatRoomView: {
  28467. events: {
  28468. 'click .toggle-bookmark': 'toggleBookmark'
  28469. },
  28470. initialize: function initialize() {
  28471. this.__super__.initialize.apply(this, arguments);
  28472. this.model.on('change:bookmarked', this.onBookmarked, this);
  28473. this.setBookmarkState();
  28474. },
  28475. renderBookmarkToggle: function renderBookmarkToggle() {
  28476. if (this.el.querySelector('.chat-head .toggle-bookmark')) {
  28477. return;
  28478. }
  28479. var _converse = this.__super__._converse,
  28480. __ = _converse.__;
  28481. var bookmark_button = tpl_chatroom_bookmark_toggle(_.assignIn(this.model.toJSON(), {
  28482. info_toggle_bookmark: __('Bookmark this groupchat'),
  28483. bookmarked: this.model.get('bookmarked')
  28484. }));
  28485. var close_button = this.el.querySelector('.close-chatbox-button');
  28486. close_button.insertAdjacentHTML('afterend', bookmark_button);
  28487. },
  28488. renderHeading: function renderHeading() {
  28489. var _this = this;
  28490. this.__super__.renderHeading.apply(this, arguments);
  28491. var _converse = this.__super__._converse;
  28492. if (_converse.allow_bookmarks) {
  28493. _converse.checkBookmarksSupport().then(function (supported) {
  28494. if (supported) {
  28495. _this.renderBookmarkToggle();
  28496. }
  28497. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28498. }
  28499. },
  28500. checkForReservedNick: function checkForReservedNick() {
  28501. /* Check if the user has a bookmark with a saved nickanme
  28502. * for this groupchat, and if so use it.
  28503. * Otherwise delegate to the super method.
  28504. */
  28505. var _converse = this.__super__._converse;
  28506. if (_.isUndefined(_converse.bookmarks) || !_converse.allow_bookmarks) {
  28507. return this.__super__.checkForReservedNick.apply(this, arguments);
  28508. }
  28509. var model = _converse.bookmarks.findWhere({
  28510. 'jid': this.model.get('jid')
  28511. });
  28512. if (!_.isUndefined(model) && model.get('nick')) {
  28513. this.join(model.get('nick'));
  28514. } else {
  28515. return this.__super__.checkForReservedNick.apply(this, arguments);
  28516. }
  28517. },
  28518. onBookmarked: function onBookmarked() {
  28519. var icon = this.el.querySelector('.toggle-bookmark');
  28520. if (_.isNull(icon)) {
  28521. return;
  28522. }
  28523. if (this.model.get('bookmarked')) {
  28524. icon.classList.add('button-on');
  28525. } else {
  28526. icon.classList.remove('button-on');
  28527. }
  28528. },
  28529. setBookmarkState: function setBookmarkState() {
  28530. /* Set whether the groupchat is bookmarked or not.
  28531. */
  28532. var _converse = this.__super__._converse;
  28533. if (!_.isUndefined(_converse.bookmarks)) {
  28534. var models = _converse.bookmarks.where({
  28535. 'jid': this.model.get('jid')
  28536. });
  28537. if (!models.length) {
  28538. this.model.save('bookmarked', false);
  28539. } else {
  28540. this.model.save('bookmarked', true);
  28541. }
  28542. }
  28543. },
  28544. renderBookmarkForm: function renderBookmarkForm() {
  28545. var _this2 = this;
  28546. var _converse = this.__super__._converse,
  28547. __ = _converse.__,
  28548. body = this.el.querySelector('.chatroom-body');
  28549. _.each(body.children, function (child) {
  28550. return child.classList.add('hidden');
  28551. });
  28552. _.each(body.querySelectorAll('.chatroom-form-container'), u.removeElement);
  28553. body.insertAdjacentHTML('beforeend', tpl_chatroom_bookmark_form({
  28554. 'default_nick': this.model.get('nick'),
  28555. 'heading': __('Bookmark this groupchat'),
  28556. 'label_autojoin': __('Would you like this groupchat to be automatically joined upon startup?'),
  28557. 'label_cancel': __('Cancel'),
  28558. 'label_name': __('The name for this bookmark:'),
  28559. 'label_nick': __('What should your nickname for this groupchat be?'),
  28560. 'label_submit': __('Save'),
  28561. 'name': this.model.get('name')
  28562. }));
  28563. var form = body.querySelector('form.chatroom-form');
  28564. form.addEventListener('submit', function (ev) {
  28565. return _this2.onBookmarkFormSubmitted(ev);
  28566. });
  28567. form.querySelector('.button-cancel').addEventListener('click', function () {
  28568. return _this2.closeForm();
  28569. });
  28570. },
  28571. onBookmarkFormSubmitted: function onBookmarkFormSubmitted(ev) {
  28572. ev.preventDefault();
  28573. var _converse = this.__super__._converse;
  28574. _converse.bookmarks.createBookmark({
  28575. 'jid': this.model.get('jid'),
  28576. 'autojoin': _.get(ev.target.querySelector('input[name="autojoin"]'), 'checked') || false,
  28577. 'name': _.get(ev.target.querySelector('input[name=name]'), 'value'),
  28578. 'nick': _.get(ev.target.querySelector('input[name=nick]'), 'value')
  28579. });
  28580. u.removeElement(this.el.querySelector('div.chatroom-form-container'));
  28581. this.renderAfterTransition();
  28582. },
  28583. toggleBookmark: function toggleBookmark(ev) {
  28584. if (ev) {
  28585. ev.preventDefault();
  28586. ev.stopPropagation();
  28587. }
  28588. var _converse = this.__super__._converse;
  28589. var models = _converse.bookmarks.where({
  28590. 'jid': this.model.get('jid')
  28591. });
  28592. if (!models.length) {
  28593. this.renderBookmarkForm();
  28594. } else {
  28595. _.forEach(models, function (model) {
  28596. model.destroy();
  28597. });
  28598. this.el.querySelector('.toggle-bookmark').classList.remove('button-on');
  28599. }
  28600. }
  28601. }
  28602. },
  28603. initialize: function initialize() {
  28604. /* The initialize function gets called as soon as the plugin is
  28605. * loaded by converse.js's plugin machinery.
  28606. */
  28607. var _converse = this._converse,
  28608. __ = _converse.__; // Configuration values for this plugin
  28609. // ====================================
  28610. // Refer to docs/source/configuration.rst for explanations of these
  28611. // configuration settings.
  28612. _converse.api.settings.update({
  28613. allow_bookmarks: true,
  28614. allow_public_bookmarks: false,
  28615. hide_open_bookmarks: true
  28616. }); // Promises exposed by this plugin
  28617. _converse.api.promises.add('bookmarksInitialized'); // Pure functions on the _converse object
  28618. _.extend(_converse, {
  28619. removeBookmarkViaEvent: function removeBookmarkViaEvent(ev) {
  28620. /* Remove a bookmark as determined by the passed in
  28621. * event.
  28622. */
  28623. ev.preventDefault();
  28624. var name = ev.target.getAttribute('data-bookmark-name');
  28625. var jid = ev.target.getAttribute('data-room-jid');
  28626. if (confirm(__("Are you sure you want to remove the bookmark \"%1$s\"?", name))) {
  28627. _.invokeMap(_converse.bookmarks.where({
  28628. 'jid': jid
  28629. }), Backbone.Model.prototype.destroy);
  28630. }
  28631. },
  28632. addBookmarkViaEvent: function addBookmarkViaEvent(ev) {
  28633. /* Add a bookmark as determined by the passed in
  28634. * event.
  28635. */
  28636. ev.preventDefault();
  28637. var jid = ev.target.getAttribute('data-room-jid');
  28638. var chatroom = _converse.api.rooms.open(jid, {
  28639. 'bring_to_foreground': true
  28640. });
  28641. _converse.chatboxviews.get(jid).renderBookmarkForm();
  28642. }
  28643. });
  28644. _converse.Bookmark = Backbone.Model;
  28645. _converse.Bookmarks = Backbone.Collection.extend({
  28646. model: _converse.Bookmark,
  28647. comparator: function comparator(item) {
  28648. return item.get('name').toLowerCase();
  28649. },
  28650. initialize: function initialize() {
  28651. this.on('add', _.flow(this.openBookmarkedRoom, this.markRoomAsBookmarked));
  28652. this.on('remove', this.markRoomAsUnbookmarked, this);
  28653. this.on('remove', this.sendBookmarkStanza, this);
  28654. var storage = _converse.config.get('storage'),
  28655. cache_key = "converse.room-bookmarks".concat(_converse.bare_jid);
  28656. this.fetched_flag = b64_sha1(cache_key + 'fetched');
  28657. this.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1(cache_key));
  28658. },
  28659. openBookmarkedRoom: function openBookmarkedRoom(bookmark) {
  28660. if (bookmark.get('autojoin')) {
  28661. var groupchat = _converse.api.rooms.create(bookmark.get('jid'), bookmark.get('nick'));
  28662. if (!groupchat.get('hidden')) {
  28663. groupchat.trigger('show');
  28664. }
  28665. }
  28666. return bookmark;
  28667. },
  28668. fetchBookmarks: function fetchBookmarks() {
  28669. var deferred = u.getResolveablePromise();
  28670. if (this.browserStorage.records.length > 0) {
  28671. this.fetch({
  28672. 'success': _.bind(this.onCachedBookmarksFetched, this, deferred),
  28673. 'error': _.bind(this.onCachedBookmarksFetched, this, deferred)
  28674. });
  28675. } else if (!window.sessionStorage.getItem(this.fetched_flag)) {
  28676. // There aren't any cached bookmarks and the
  28677. // `fetched_flag` is off, so we query the XMPP server.
  28678. // If nothing is returned from the XMPP server, we set
  28679. // the `fetched_flag` to avoid calling the server again.
  28680. this.fetchBookmarksFromServer(deferred);
  28681. } else {
  28682. deferred.resolve();
  28683. }
  28684. return deferred;
  28685. },
  28686. onCachedBookmarksFetched: function onCachedBookmarksFetched(deferred) {
  28687. return deferred.resolve();
  28688. },
  28689. createBookmark: function createBookmark(options) {
  28690. var _this3 = this;
  28691. this.create(options);
  28692. this.sendBookmarkStanza().catch(function (iq) {
  28693. return _this3.onBookmarkError(iq, options);
  28694. });
  28695. },
  28696. sendBookmarkStanza: function sendBookmarkStanza() {
  28697. var stanza = $iq({
  28698. 'type': 'set',
  28699. 'from': _converse.connection.jid
  28700. }).c('pubsub', {
  28701. 'xmlns': Strophe.NS.PUBSUB
  28702. }).c('publish', {
  28703. 'node': 'storage:bookmarks'
  28704. }).c('item', {
  28705. 'id': 'current'
  28706. }).c('storage', {
  28707. 'xmlns': 'storage:bookmarks'
  28708. });
  28709. this.each(function (model) {
  28710. stanza.c('conference', {
  28711. 'name': model.get('name'),
  28712. 'autojoin': model.get('autojoin'),
  28713. 'jid': model.get('jid')
  28714. }).c('nick').t(model.get('nick')).up().up();
  28715. });
  28716. stanza.up().up().up();
  28717. stanza.c('publish-options').c('x', {
  28718. 'xmlns': Strophe.NS.XFORM,
  28719. 'type': 'submit'
  28720. }).c('field', {
  28721. 'var': 'FORM_TYPE',
  28722. 'type': 'hidden'
  28723. }).c('value').t('http://jabber.org/protocol/pubsub#publish-options').up().up().c('field', {
  28724. 'var': 'pubsub#persist_items'
  28725. }).c('value').t('true').up().up().c('field', {
  28726. 'var': 'pubsub#access_model'
  28727. }).c('value').t('whitelist');
  28728. return _converse.api.sendIQ(stanza);
  28729. },
  28730. onBookmarkError: function onBookmarkError(iq, options) {
  28731. _converse.log("Error while trying to add bookmark", Strophe.LogLevel.ERROR);
  28732. _converse.log(iq);
  28733. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__("Sorry, something went wrong while trying to save your bookmark.")]);
  28734. this.findWhere({
  28735. 'jid': options.jid
  28736. }).destroy();
  28737. },
  28738. fetchBookmarksFromServer: function fetchBookmarksFromServer(deferred) {
  28739. var _this4 = this;
  28740. var stanza = $iq({
  28741. 'from': _converse.connection.jid,
  28742. 'type': 'get'
  28743. }).c('pubsub', {
  28744. 'xmlns': Strophe.NS.PUBSUB
  28745. }).c('items', {
  28746. 'node': 'storage:bookmarks'
  28747. });
  28748. _converse.api.sendIQ(stanza).then(function (iq) {
  28749. return _this4.onBookmarksReceived(deferred, iq);
  28750. }).catch(function (iq) {
  28751. return _this4.onBookmarksReceivedError(deferred, iq);
  28752. });
  28753. },
  28754. markRoomAsBookmarked: function markRoomAsBookmarked(bookmark) {
  28755. var groupchat = _converse.chatboxes.get(bookmark.get('jid'));
  28756. if (!_.isUndefined(groupchat)) {
  28757. groupchat.save('bookmarked', true);
  28758. }
  28759. },
  28760. markRoomAsUnbookmarked: function markRoomAsUnbookmarked(bookmark) {
  28761. var groupchat = _converse.chatboxes.get(bookmark.get('jid'));
  28762. if (!_.isUndefined(groupchat)) {
  28763. groupchat.save('bookmarked', false);
  28764. }
  28765. },
  28766. createBookmarksFromStanza: function createBookmarksFromStanza(stanza) {
  28767. var _this5 = this;
  28768. var bookmarks = sizzle('items[node="storage:bookmarks"] ' + 'item#current ' + 'storage[xmlns="storage:bookmarks"] ' + 'conference', stanza);
  28769. _.forEach(bookmarks, function (bookmark) {
  28770. var jid = bookmark.getAttribute('jid');
  28771. _this5.create({
  28772. 'jid': jid,
  28773. 'name': bookmark.getAttribute('name') || jid,
  28774. 'autojoin': bookmark.getAttribute('autojoin') === 'true',
  28775. 'nick': _.get(bookmark.querySelector('nick'), 'textContent')
  28776. });
  28777. });
  28778. },
  28779. onBookmarksReceived: function onBookmarksReceived(deferred, iq) {
  28780. this.createBookmarksFromStanza(iq);
  28781. if (!_.isUndefined(deferred)) {
  28782. return deferred.resolve();
  28783. }
  28784. },
  28785. onBookmarksReceivedError: function onBookmarksReceivedError(deferred, iq) {
  28786. window.sessionStorage.setItem(this.fetched_flag, true);
  28787. _converse.log('Error while fetching bookmarks', Strophe.LogLevel.WARN);
  28788. _converse.log(iq.outerHTML, Strophe.LogLevel.DEBUG);
  28789. if (!_.isNil(deferred)) {
  28790. if (iq.querySelector('error[type="cancel"] item-not-found')) {
  28791. // Not an exception, the user simply doesn't have
  28792. // any bookmarks.
  28793. return deferred.resolve();
  28794. } else {
  28795. return deferred.reject(new Error("Could not fetch bookmarks"));
  28796. }
  28797. }
  28798. }
  28799. });
  28800. _converse.BookmarksList = Backbone.Model.extend({
  28801. defaults: {
  28802. "toggle-state": _converse.OPENED
  28803. }
  28804. });
  28805. _converse.BookmarkView = Backbone.VDOMView.extend({
  28806. toHTML: function toHTML() {
  28807. return tpl_bookmark({
  28808. 'hidden': _converse.hide_open_bookmarks && _converse.chatboxes.where({
  28809. 'jid': this.model.get('jid')
  28810. }).length,
  28811. 'bookmarked': true,
  28812. 'info_leave_room': __('Leave this groupchat'),
  28813. 'info_remove': __('Remove this bookmark'),
  28814. 'info_remove_bookmark': __('Unbookmark this groupchat'),
  28815. 'info_title': __('Show more information on this groupchat'),
  28816. 'jid': this.model.get('jid'),
  28817. 'name': Strophe.xmlunescape(this.model.get('name')),
  28818. 'open_title': __('Click to open this groupchat')
  28819. });
  28820. }
  28821. });
  28822. _converse.BookmarksView = Backbone.OrderedListView.extend({
  28823. tagName: 'div',
  28824. className: 'bookmarks-list list-container rooms-list-container',
  28825. events: {
  28826. 'click .add-bookmark': 'addBookmark',
  28827. 'click .bookmarks-toggle': 'toggleBookmarksList',
  28828. 'click .remove-bookmark': 'removeBookmark',
  28829. 'click .open-room': 'openRoom'
  28830. },
  28831. listSelector: '.rooms-list',
  28832. ItemView: _converse.BookmarkView,
  28833. subviewIndex: 'jid',
  28834. initialize: function initialize() {
  28835. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  28836. this.model.on('add', this.showOrHide, this);
  28837. this.model.on('remove', this.showOrHide, this);
  28838. _converse.chatboxes.on('add', this.renderBookmarkListElement, this);
  28839. _converse.chatboxes.on('remove', this.renderBookmarkListElement, this);
  28840. var storage = _converse.config.get('storage'),
  28841. id = b64_sha1("converse.room-bookmarks".concat(_converse.bare_jid, "-list-model"));
  28842. this.list_model = new _converse.BookmarksList({
  28843. 'id': id
  28844. });
  28845. this.list_model.browserStorage = new Backbone.BrowserStorage[storage](id);
  28846. this.list_model.fetch();
  28847. this.render();
  28848. this.sortAndPositionAllItems();
  28849. },
  28850. render: function render() {
  28851. this.el.innerHTML = tpl_bookmarks_list({
  28852. 'toggle_state': this.list_model.get('toggle-state'),
  28853. 'desc_bookmarks': __('Click to toggle the bookmarks list'),
  28854. 'label_bookmarks': __('Bookmarks'),
  28855. '_converse': _converse
  28856. });
  28857. this.showOrHide();
  28858. this.insertIntoControlBox();
  28859. return this;
  28860. },
  28861. insertIntoControlBox: function insertIntoControlBox() {
  28862. var controlboxview = _converse.chatboxviews.get('controlbox');
  28863. if (!_.isUndefined(controlboxview) && !u.rootContains(_converse.root, this.el)) {
  28864. var el = controlboxview.el.querySelector('.bookmarks-list');
  28865. if (!_.isNull(el)) {
  28866. el.parentNode.replaceChild(this.el, el);
  28867. }
  28868. }
  28869. },
  28870. openRoom: function openRoom(ev) {
  28871. ev.preventDefault();
  28872. var name = ev.target.textContent;
  28873. var jid = ev.target.getAttribute('data-room-jid');
  28874. var data = {
  28875. 'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
  28876. };
  28877. _converse.api.rooms.open(jid, data);
  28878. },
  28879. removeBookmark: _converse.removeBookmarkViaEvent,
  28880. addBookmark: _converse.addBookmarkViaEvent,
  28881. renderBookmarkListElement: function renderBookmarkListElement(chatbox) {
  28882. var bookmarkview = this.get(chatbox.get('jid'));
  28883. if (_.isNil(bookmarkview)) {
  28884. // A chat box has been closed, but we don't have a
  28885. // bookmark for it, so nothing further to do here.
  28886. return;
  28887. }
  28888. bookmarkview.render();
  28889. this.showOrHide();
  28890. },
  28891. showOrHide: function showOrHide(item) {
  28892. if (_converse.hide_open_bookmarks) {
  28893. var bookmarks = this.model.filter(function (bookmark) {
  28894. return !_converse.chatboxes.get(bookmark.get('jid'));
  28895. });
  28896. if (!bookmarks.length) {
  28897. u.hideElement(this.el);
  28898. return;
  28899. }
  28900. }
  28901. if (this.model.models.length) {
  28902. u.showElement(this.el);
  28903. }
  28904. },
  28905. toggleBookmarksList: function toggleBookmarksList(ev) {
  28906. if (ev && ev.preventDefault) {
  28907. ev.preventDefault();
  28908. }
  28909. var icon_el = ev.target.querySelector('.fa');
  28910. if (u.hasClass('fa-caret-down', icon_el)) {
  28911. u.slideIn(this.el.querySelector('.bookmarks'));
  28912. this.list_model.save({
  28913. 'toggle-state': _converse.CLOSED
  28914. });
  28915. icon_el.classList.remove("fa-caret-down");
  28916. icon_el.classList.add("fa-caret-right");
  28917. } else {
  28918. icon_el.classList.remove("fa-caret-right");
  28919. icon_el.classList.add("fa-caret-down");
  28920. u.slideOut(this.el.querySelector('.bookmarks'));
  28921. this.list_model.save({
  28922. 'toggle-state': _converse.OPENED
  28923. });
  28924. }
  28925. }
  28926. });
  28927. _converse.checkBookmarksSupport = function () {
  28928. return new Promise(function (resolve, reject) {
  28929. Promise.all([_converse.api.disco.getIdentity('pubsub', 'pep', _converse.bare_jid), _converse.api.disco.supports(Strophe.NS.PUBSUB + '#publish-options', _converse.bare_jid)]).then(function (args) {
  28930. resolve(args[0] && (args[1].length || _converse.allow_public_bookmarks));
  28931. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28932. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28933. };
  28934. var initBookmarks = function initBookmarks() {
  28935. if (!_converse.allow_bookmarks) {
  28936. return;
  28937. }
  28938. _converse.checkBookmarksSupport().then(function (supported) {
  28939. if (supported) {
  28940. _converse.bookmarks = new _converse.Bookmarks();
  28941. _converse.bookmarksview = new _converse.BookmarksView({
  28942. 'model': _converse.bookmarks
  28943. });
  28944. _converse.bookmarks.fetchBookmarks().catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL)).then(function () {
  28945. return _converse.emit('bookmarksInitialized');
  28946. });
  28947. } else {
  28948. _converse.emit('bookmarksInitialized');
  28949. }
  28950. });
  28951. };
  28952. u.onMultipleEvents([{
  28953. 'object': _converse,
  28954. 'event': 'chatBoxesFetched'
  28955. }, {
  28956. 'object': _converse,
  28957. 'event': 'roomsPanelRendered'
  28958. }], initBookmarks);
  28959. _converse.on('clearSession', function () {
  28960. if (!_.isUndefined(_converse.bookmarks)) {
  28961. _converse.bookmarks.browserStorage._clear();
  28962. window.sessionStorage.removeItem(_converse.bookmarks.fetched_flag);
  28963. }
  28964. });
  28965. _converse.on('reconnected', initBookmarks);
  28966. _converse.on('connected', function () {
  28967. // Add a handler for bookmarks pushed from other connected clients
  28968. // (from the same user obviously)
  28969. _converse.connection.addHandler(function (message) {
  28970. if (sizzle('event[xmlns="' + Strophe.NS.PUBSUB + '#event"] items[node="storage:bookmarks"]', message).length) {
  28971. _converse.api.waitUntil('bookmarksInitialized').then(function () {
  28972. return _converse.bookmarks.createBookmarksFromStanza(message);
  28973. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28974. }
  28975. }, null, 'message', 'headline', null, _converse.bare_jid);
  28976. });
  28977. }
  28978. });
  28979. });
  28980. /***/ }),
  28981. /***/ "./src/converse-caps.js":
  28982. /*!******************************!*\
  28983. !*** ./src/converse-caps.js ***!
  28984. \******************************/
  28985. /*! no static exports found */
  28986. /***/ (function(module, exports, __webpack_require__) {
  28987. "use strict";
  28988. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  28989. // Converse.js
  28990. // http://conversejs.org
  28991. //
  28992. // Copyright (c) 2013-2018, the Converse.js developers
  28993. // Licensed under the Mozilla Public License (MPLv2)
  28994. (function (root, factory) {
  28995. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28996. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28997. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28998. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  28999. })(void 0, function (converse) {
  29000. var _converse$env = converse.env,
  29001. Strophe = _converse$env.Strophe,
  29002. $build = _converse$env.$build,
  29003. _ = _converse$env._,
  29004. b64_sha1 = _converse$env.b64_sha1;
  29005. Strophe.addNamespace('CAPS', "http://jabber.org/protocol/caps");
  29006. function propertySort(array, property) {
  29007. return array.sort(function (a, b) {
  29008. return a[property] > b[property] ? -1 : 1;
  29009. });
  29010. }
  29011. function generateVerificationString(_converse) {
  29012. var identities = _converse.api.disco.own.identities.get(),
  29013. features = _converse.api.disco.own.features.get();
  29014. if (identities.length > 1) {
  29015. propertySort(identities, "category");
  29016. propertySort(identities, "type");
  29017. propertySort(identities, "lang");
  29018. }
  29019. var S = _.reduce(identities, function (result, id) {
  29020. return "".concat(result).concat(id.category, "/").concat(id.type, "/").concat(_.get(id, 'lang', ''), "/").concat(id.name, "<");
  29021. }, "");
  29022. features.sort();
  29023. S = _.reduce(features, function (result, feature) {
  29024. return "".concat(result).concat(feature, "<");
  29025. }, S);
  29026. return b64_sha1(S);
  29027. }
  29028. function createCapsNode(_converse) {
  29029. return $build("c", {
  29030. 'xmlns': Strophe.NS.CAPS,
  29031. 'hash': "sha-1",
  29032. 'node': "https://conversejs.org",
  29033. 'ver': generateVerificationString(_converse)
  29034. }).nodeTree;
  29035. }
  29036. converse.plugins.add('converse-caps', {
  29037. overrides: {
  29038. // Overrides mentioned here will be picked up by converse.js's
  29039. // plugin architecture they will replace existing methods on the
  29040. // relevant objects or classes.
  29041. XMPPStatus: {
  29042. constructPresence: function constructPresence() {
  29043. var presence = this.__super__.constructPresence.apply(this, arguments);
  29044. presence.root().cnode(createCapsNode(this.__super__._converse));
  29045. return presence;
  29046. }
  29047. }
  29048. }
  29049. });
  29050. });
  29051. /***/ }),
  29052. /***/ "./src/converse-chatboxes.js":
  29053. /*!***********************************!*\
  29054. !*** ./src/converse-chatboxes.js ***!
  29055. \***********************************/
  29056. /*! no static exports found */
  29057. /***/ (function(module, exports, __webpack_require__) {
  29058. "use strict";
  29059. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  29060. // Converse.js
  29061. // http://conversejs.org
  29062. //
  29063. // Copyright (c) 2012-2018, the Converse.js developers
  29064. // Licensed under the Mozilla Public License (MPLv2)
  29065. (function (root, factory) {
  29066. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! filesize */ "./node_modules/filesize/lib/filesize.js"), __webpack_require__(/*! utils/form */ "./src/utils/form.js"), __webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  29067. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29068. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  29069. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29070. })(void 0, function (converse, filesize) {
  29071. "use strict";
  29072. var _converse$env = converse.env,
  29073. $msg = _converse$env.$msg,
  29074. Backbone = _converse$env.Backbone,
  29075. Promise = _converse$env.Promise,
  29076. Strophe = _converse$env.Strophe,
  29077. b64_sha1 = _converse$env.b64_sha1,
  29078. moment = _converse$env.moment,
  29079. sizzle = _converse$env.sizzle,
  29080. utils = _converse$env.utils,
  29081. _ = _converse$env._;
  29082. var u = converse.env.utils;
  29083. Strophe.addNamespace('MESSAGE_CORRECT', 'urn:xmpp:message-correct:0');
  29084. Strophe.addNamespace('REFERENCE', 'urn:xmpp:reference:0');
  29085. converse.plugins.add('converse-chatboxes', {
  29086. dependencies: ["converse-roster", "converse-vcard"],
  29087. initialize: function initialize() {
  29088. /* The initialize function gets called as soon as the plugin is
  29089. * loaded by converse.js's plugin machinery.
  29090. */
  29091. var _converse = this._converse,
  29092. __ = _converse.__; // Configuration values for this plugin
  29093. // ====================================
  29094. // Refer to docs/source/configuration.rst for explanations of these
  29095. // configuration settings.
  29096. _converse.api.settings.update({
  29097. 'filter_by_resource': false,
  29098. 'auto_join_private_chats': [],
  29099. 'forward_messages': false
  29100. });
  29101. _converse.api.promises.add(['chatBoxesFetched', 'chatBoxesInitialized', 'privateChatsAutoJoined']);
  29102. function openChat(jid) {
  29103. if (!utils.isValidJID(jid)) {
  29104. return _converse.log("Invalid JID \"".concat(jid, "\" provided in URL fragment"), Strophe.LogLevel.WARN);
  29105. }
  29106. _converse.api.chats.open(jid);
  29107. }
  29108. _converse.router.route('converse/chat?jid=:jid', openChat);
  29109. _converse.Message = Backbone.Model.extend({
  29110. defaults: function defaults() {
  29111. return {
  29112. 'msgid': _converse.connection.getUniqueId(),
  29113. 'time': moment().format()
  29114. };
  29115. },
  29116. initialize: function initialize() {
  29117. this.setVCard();
  29118. if (this.get('file')) {
  29119. this.on('change:put', this.uploadFile, this);
  29120. if (!_.includes([_converse.SUCCESS, _converse.FAILURE], this.get('upload'))) {
  29121. this.getRequestSlotURL();
  29122. }
  29123. }
  29124. if (this.isOnlyChatStateNotification()) {
  29125. window.setTimeout(this.destroy.bind(this), 20000);
  29126. }
  29127. },
  29128. getVCardForChatroomOccupant: function getVCardForChatroomOccupant() {
  29129. var chatbox = this.collection.chatbox,
  29130. nick = Strophe.getResourceFromJid(this.get('from'));
  29131. if (chatbox.get('nick') === nick) {
  29132. return _converse.xmppstatus.vcard;
  29133. } else {
  29134. var vcard;
  29135. if (this.get('vcard_jid')) {
  29136. vcard = _converse.vcards.findWhere({
  29137. 'jid': this.get('vcard_jid')
  29138. });
  29139. }
  29140. if (!vcard) {
  29141. var jid;
  29142. var occupant = chatbox.occupants.findWhere({
  29143. 'nick': nick
  29144. });
  29145. if (occupant && occupant.get('jid')) {
  29146. jid = occupant.get('jid');
  29147. this.save({
  29148. 'vcard_jid': jid
  29149. }, {
  29150. 'silent': true
  29151. });
  29152. } else {
  29153. jid = this.get('from');
  29154. }
  29155. vcard = _converse.vcards.findWhere({
  29156. 'jid': jid
  29157. }) || _converse.vcards.create({
  29158. 'jid': jid
  29159. });
  29160. }
  29161. return vcard;
  29162. }
  29163. },
  29164. setVCard: function setVCard() {
  29165. if (this.get('type') === 'error') {
  29166. return;
  29167. } else if (this.get('type') === 'groupchat') {
  29168. this.vcard = this.getVCardForChatroomOccupant();
  29169. } else {
  29170. var jid = this.get('from');
  29171. this.vcard = _converse.vcards.findWhere({
  29172. 'jid': jid
  29173. }) || _converse.vcards.create({
  29174. 'jid': jid
  29175. });
  29176. }
  29177. },
  29178. isOnlyChatStateNotification: function isOnlyChatStateNotification() {
  29179. return u.isOnlyChatStateNotification(this);
  29180. },
  29181. getDisplayName: function getDisplayName() {
  29182. if (this.get('type') === 'groupchat') {
  29183. return this.get('nick');
  29184. } else {
  29185. return this.vcard.get('fullname') || this.get('from');
  29186. }
  29187. },
  29188. sendSlotRequestStanza: function sendSlotRequestStanza() {
  29189. var _this = this;
  29190. /* Send out an IQ stanza to request a file upload slot.
  29191. *
  29192. * https://xmpp.org/extensions/xep-0363.html#request
  29193. */
  29194. var file = this.get('file');
  29195. return new Promise(function (resolve, reject) {
  29196. var iq = converse.env.$iq({
  29197. 'from': _converse.jid,
  29198. 'to': _this.get('slot_request_url'),
  29199. 'type': 'get'
  29200. }).c('request', {
  29201. 'xmlns': Strophe.NS.HTTPUPLOAD,
  29202. 'filename': file.name,
  29203. 'size': file.size,
  29204. 'content-type': file.type
  29205. });
  29206. _converse.connection.sendIQ(iq, resolve, reject);
  29207. });
  29208. },
  29209. getRequestSlotURL: function getRequestSlotURL() {
  29210. var _this2 = this;
  29211. this.sendSlotRequestStanza().then(function (stanza) {
  29212. var slot = stanza.querySelector('slot');
  29213. if (slot) {
  29214. _this2.save({
  29215. 'get': slot.querySelector('get').getAttribute('url'),
  29216. 'put': slot.querySelector('put').getAttribute('url')
  29217. });
  29218. } else {
  29219. return _this2.save({
  29220. 'type': 'error',
  29221. 'message': __("Sorry, could not determine file upload URL.")
  29222. });
  29223. }
  29224. }).catch(function (e) {
  29225. _converse.log(e, Strophe.LogLevel.ERROR);
  29226. return _this2.save({
  29227. 'type': 'error',
  29228. 'message': __("Sorry, could not determine upload URL.")
  29229. });
  29230. });
  29231. },
  29232. uploadFile: function uploadFile() {
  29233. var _this3 = this;
  29234. var xhr = new XMLHttpRequest();
  29235. xhr.onreadystatechange = function () {
  29236. if (xhr.readyState === XMLHttpRequest.DONE) {
  29237. _converse.log("Status: " + xhr.status, Strophe.LogLevel.INFO);
  29238. if (xhr.status === 200 || xhr.status === 201) {
  29239. _this3.save({
  29240. 'upload': _converse.SUCCESS,
  29241. 'oob_url': _this3.get('get'),
  29242. 'message': _this3.get('get')
  29243. });
  29244. } else {
  29245. xhr.onerror();
  29246. }
  29247. }
  29248. };
  29249. xhr.upload.addEventListener("progress", function (evt) {
  29250. if (evt.lengthComputable) {
  29251. _this3.set('progress', evt.loaded / evt.total);
  29252. }
  29253. }, false);
  29254. xhr.onerror = function () {
  29255. var message;
  29256. if (xhr.responseText) {
  29257. message = __('Sorry, could not succesfully upload your file. Your server’s response: "%1$s"', xhr.responseText);
  29258. } else {
  29259. message = __('Sorry, could not succesfully upload your file.');
  29260. }
  29261. _this3.save({
  29262. 'type': 'error',
  29263. 'upload': _converse.FAILURE,
  29264. 'message': message
  29265. });
  29266. };
  29267. xhr.open('PUT', this.get('put'), true);
  29268. xhr.setRequestHeader("Content-type", this.get('file').type);
  29269. xhr.send(this.get('file'));
  29270. }
  29271. });
  29272. _converse.Messages = Backbone.Collection.extend({
  29273. model: _converse.Message,
  29274. comparator: 'time'
  29275. });
  29276. _converse.ChatBox = _converse.ModelWithVCardAndPresence.extend({
  29277. defaults: function defaults() {
  29278. return {
  29279. 'bookmarked': false,
  29280. 'chat_state': undefined,
  29281. 'num_unread': 0,
  29282. 'type': _converse.PRIVATE_CHAT_TYPE,
  29283. 'message_type': 'chat',
  29284. 'url': '',
  29285. 'hidden': _.includes(['mobile', 'fullscreen'], _converse.view_mode)
  29286. };
  29287. },
  29288. initialize: function initialize() {
  29289. var _this4 = this;
  29290. _converse.ModelWithVCardAndPresence.prototype.initialize.apply(this, arguments);
  29291. _converse.api.waitUntil('rosterContactsFetched').then(function () {
  29292. _this4.addRelatedContact(_converse.roster.findWhere({
  29293. 'jid': _this4.get('jid')
  29294. }));
  29295. });
  29296. this.messages = new _converse.Messages();
  29297. var storage = _converse.config.get('storage');
  29298. this.messages.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1("converse.messages".concat(this.get('jid')).concat(_converse.bare_jid)));
  29299. this.messages.chatbox = this;
  29300. this.messages.on('change:upload', function (message) {
  29301. if (message.get('upload') === _converse.SUCCESS) {
  29302. _this4.sendMessageStanza(_this4.createMessageStanza(message));
  29303. }
  29304. });
  29305. this.on('change:chat_state', this.sendChatState, this);
  29306. this.save({
  29307. // The chat_state will be set to ACTIVE once the chat box is opened
  29308. // and we listen for change:chat_state, so shouldn't set it to ACTIVE here.
  29309. 'box_id': b64_sha1(this.get('jid')),
  29310. 'time_opened': this.get('time_opened') || moment().valueOf(),
  29311. 'user_id': Strophe.getNodeFromJid(this.get('jid'))
  29312. });
  29313. },
  29314. addRelatedContact: function addRelatedContact(contact) {
  29315. if (!_.isUndefined(contact)) {
  29316. this.contact = contact;
  29317. this.trigger('contactAdded', contact);
  29318. }
  29319. },
  29320. getDisplayName: function getDisplayName() {
  29321. return this.vcard.get('fullname') || this.get('jid');
  29322. },
  29323. handleMessageCorrection: function handleMessageCorrection(stanza) {
  29324. var replace = sizzle("replace[xmlns=\"".concat(Strophe.NS.MESSAGE_CORRECT, "\"]"), stanza).pop();
  29325. if (replace) {
  29326. var msgid = replace && replace.getAttribute('id') || stanza.getAttribute('id'),
  29327. message = msgid && this.messages.findWhere({
  29328. msgid: msgid
  29329. });
  29330. if (!message) {
  29331. // XXX: Looks like we received a correction for a
  29332. // non-existing message, probably due to MAM.
  29333. // Not clear what can be done about this... we'll
  29334. // just create it as a separate message for now.
  29335. return false;
  29336. }
  29337. var older_versions = message.get('older_versions') || [];
  29338. older_versions.push(message.get('message'));
  29339. message.save({
  29340. 'message': _converse.chatboxes.getMessageBody(stanza),
  29341. 'references': this.getReferencesFromStanza(stanza),
  29342. 'older_versions': older_versions,
  29343. 'edited': true
  29344. });
  29345. return true;
  29346. }
  29347. return false;
  29348. },
  29349. createMessageStanza: function createMessageStanza(message) {
  29350. /* Given a _converse.Message Backbone.Model, return the XML
  29351. * stanza that represents it.
  29352. *
  29353. * Parameters:
  29354. * (Object) message - The Backbone.Model representing the message
  29355. */
  29356. var stanza = $msg({
  29357. 'from': _converse.connection.jid,
  29358. 'to': this.get('jid'),
  29359. 'type': this.get('message_type'),
  29360. 'id': message.get('edited') && _converse.connection.getUniqueId() || message.get('msgid')
  29361. }).c('body').t(message.get('message')).up().c(_converse.ACTIVE, {
  29362. 'xmlns': Strophe.NS.CHATSTATES
  29363. }).up();
  29364. if (message.get('is_spoiler')) {
  29365. if (message.get('spoiler_hint')) {
  29366. stanza.c('spoiler', {
  29367. 'xmlns': Strophe.NS.SPOILER
  29368. }, message.get('spoiler_hint')).up();
  29369. } else {
  29370. stanza.c('spoiler', {
  29371. 'xmlns': Strophe.NS.SPOILER
  29372. }).up();
  29373. }
  29374. }
  29375. (message.get('references') || []).forEach(function (reference) {
  29376. var attrs = {
  29377. 'xmlns': Strophe.NS.REFERENCE,
  29378. 'begin': reference.begin,
  29379. 'end': reference.end,
  29380. 'type': reference.type
  29381. };
  29382. if (reference.uri) {
  29383. attrs.uri = reference.uri;
  29384. }
  29385. stanza.c('reference', attrs).up();
  29386. });
  29387. if (message.get('file')) {
  29388. stanza.c('x', {
  29389. 'xmlns': Strophe.NS.OUTOFBAND
  29390. }).c('url').t(message.get('message')).up();
  29391. }
  29392. if (message.get('edited')) {
  29393. stanza.c('replace', {
  29394. 'xmlns': Strophe.NS.MESSAGE_CORRECT,
  29395. 'id': message.get('msgid')
  29396. }).up();
  29397. }
  29398. return stanza;
  29399. },
  29400. sendMessageStanza: function sendMessageStanza(stanza) {
  29401. _converse.connection.send(stanza);
  29402. if (_converse.forward_messages) {
  29403. // Forward the message, so that other connected resources are also aware of it.
  29404. _converse.connection.send($msg({
  29405. 'to': _converse.bare_jid,
  29406. 'type': this.get('message_type')
  29407. }).c('forwarded', {
  29408. 'xmlns': Strophe.NS.FORWARD
  29409. }).c('delay', {
  29410. 'xmns': Strophe.NS.DELAY,
  29411. 'stamp': moment().format()
  29412. }).up().cnode(stanza.tree()));
  29413. }
  29414. },
  29415. getOutgoingMessageAttributes: function getOutgoingMessageAttributes(text, spoiler_hint) {
  29416. var is_spoiler = this.get('composing_spoiler');
  29417. return _.extend(this.toJSON(), {
  29418. 'id': _converse.connection.getUniqueId(),
  29419. 'fullname': _converse.xmppstatus.get('fullname'),
  29420. 'from': _converse.bare_jid,
  29421. 'sender': 'me',
  29422. 'time': moment().format(),
  29423. 'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
  29424. 'is_spoiler': is_spoiler,
  29425. 'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
  29426. 'type': this.get('message_type')
  29427. });
  29428. },
  29429. sendMessage: function sendMessage(attrs) {
  29430. /* Responsible for sending off a text message.
  29431. *
  29432. * Parameters:
  29433. * (Message) message - The chat message
  29434. */
  29435. var message = this.messages.findWhere('correcting');
  29436. if (message) {
  29437. var older_versions = message.get('older_versions') || [];
  29438. older_versions.push(message.get('message'));
  29439. message.save({
  29440. 'correcting': false,
  29441. 'edited': true,
  29442. 'message': attrs.message,
  29443. 'older_versions': older_versions,
  29444. 'references': attrs.references
  29445. });
  29446. } else {
  29447. message = this.messages.create(attrs);
  29448. }
  29449. return this.sendMessageStanza(this.createMessageStanza(message));
  29450. },
  29451. sendChatState: function sendChatState() {
  29452. /* Sends a message with the status of the user in this chat session
  29453. * as taken from the 'chat_state' attribute of the chat box.
  29454. * See XEP-0085 Chat State Notifications.
  29455. */
  29456. _converse.connection.send($msg({
  29457. 'to': this.get('jid'),
  29458. 'type': 'chat'
  29459. }).c(this.get('chat_state'), {
  29460. 'xmlns': Strophe.NS.CHATSTATES
  29461. }).up().c('no-store', {
  29462. 'xmlns': Strophe.NS.HINTS
  29463. }).up().c('no-permanent-store', {
  29464. 'xmlns': Strophe.NS.HINTS
  29465. }));
  29466. },
  29467. sendFiles: function sendFiles(files) {
  29468. var _this5 = this;
  29469. _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain).then(function (result) {
  29470. var item = result.pop(),
  29471. data = item.dataforms.where({
  29472. 'FORM_TYPE': {
  29473. 'value': Strophe.NS.HTTPUPLOAD,
  29474. 'type': "hidden"
  29475. }
  29476. }).pop(),
  29477. max_file_size = window.parseInt(_.get(data, 'attributes.max-file-size.value')),
  29478. slot_request_url = _.get(item, 'id');
  29479. if (!slot_request_url) {
  29480. _this5.messages.create({
  29481. 'message': __("Sorry, looks like file upload is not supported by your server."),
  29482. 'type': 'error'
  29483. });
  29484. return;
  29485. }
  29486. _.each(files, function (file) {
  29487. if (!window.isNaN(max_file_size) && window.parseInt(file.size) > max_file_size) {
  29488. return _this5.messages.create({
  29489. 'message': __('The size of your file, %1$s, exceeds the maximum allowed by your server, which is %2$s.', file.name, filesize(max_file_size)),
  29490. 'type': 'error'
  29491. });
  29492. } else {
  29493. _this5.messages.create(_.extend(_this5.getOutgoingMessageAttributes(), {
  29494. 'file': file,
  29495. 'progress': 0,
  29496. 'slot_request_url': slot_request_url
  29497. }));
  29498. }
  29499. });
  29500. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29501. },
  29502. getReferencesFromStanza: function getReferencesFromStanza(stanza) {
  29503. var text = _.propertyOf(stanza.querySelector('body'))('textContent');
  29504. return sizzle("reference[xmlns=\"".concat(Strophe.NS.REFERENCE, "\"]"), stanza).map(function (ref) {
  29505. var begin = ref.getAttribute('begin'),
  29506. end = ref.getAttribute('end');
  29507. return {
  29508. 'begin': begin,
  29509. 'end': end,
  29510. 'type': ref.getAttribute('type'),
  29511. 'value': text.slice(begin, end),
  29512. 'uri': ref.getAttribute('uri')
  29513. };
  29514. });
  29515. },
  29516. getMessageAttributesFromStanza: function getMessageAttributesFromStanza(stanza, original_stanza) {
  29517. /* Parses a passed in message stanza and returns an object
  29518. * of attributes.
  29519. *
  29520. * Parameters:
  29521. * (XMLElement) stanza - The message stanza
  29522. * (XMLElement) delay - The <delay> node from the
  29523. * stanza, if there was one.
  29524. * (XMLElement) original_stanza - The original stanza,
  29525. * that contains the message stanza, if it was
  29526. * contained, otherwise it's the message stanza itself.
  29527. */
  29528. var archive = sizzle("result[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), original_stanza).pop(),
  29529. spoiler = sizzle("spoiler[xmlns=\"".concat(Strophe.NS.SPOILER, "\"]"), original_stanza).pop(),
  29530. delay = sizzle("delay[xmlns=\"".concat(Strophe.NS.DELAY, "\"]"), original_stanza).pop(),
  29531. chat_state = stanza.getElementsByTagName(_converse.COMPOSING).length && _converse.COMPOSING || stanza.getElementsByTagName(_converse.PAUSED).length && _converse.PAUSED || stanza.getElementsByTagName(_converse.INACTIVE).length && _converse.INACTIVE || stanza.getElementsByTagName(_converse.ACTIVE).length && _converse.ACTIVE || stanza.getElementsByTagName(_converse.GONE).length && _converse.GONE;
  29532. var attrs = {
  29533. 'chat_state': chat_state,
  29534. 'is_archived': !_.isNil(archive),
  29535. 'is_delayed': !_.isNil(delay),
  29536. 'is_spoiler': !_.isNil(spoiler),
  29537. 'message': _converse.chatboxes.getMessageBody(stanza) || undefined,
  29538. 'references': this.getReferencesFromStanza(stanza),
  29539. 'msgid': stanza.getAttribute('id'),
  29540. 'time': delay ? delay.getAttribute('stamp') : moment().format(),
  29541. 'type': stanza.getAttribute('type')
  29542. };
  29543. if (attrs.type === 'groupchat') {
  29544. attrs.from = stanza.getAttribute('from');
  29545. attrs.nick = Strophe.unescapeNode(Strophe.getResourceFromJid(attrs.from));
  29546. attrs.sender = attrs.nick === this.get('nick') ? 'me' : 'them';
  29547. } else {
  29548. attrs.from = Strophe.getBareJidFromJid(stanza.getAttribute('from'));
  29549. if (attrs.from === _converse.bare_jid) {
  29550. attrs.sender = 'me';
  29551. attrs.fullname = _converse.xmppstatus.get('fullname');
  29552. } else {
  29553. attrs.sender = 'them';
  29554. attrs.fullname = this.get('fullname');
  29555. }
  29556. }
  29557. _.each(sizzle("x[xmlns=\"".concat(Strophe.NS.OUTOFBAND, "\"]"), stanza), function (xform) {
  29558. attrs['oob_url'] = xform.querySelector('url').textContent;
  29559. attrs['oob_desc'] = xform.querySelector('url').textContent;
  29560. });
  29561. if (spoiler) {
  29562. attrs.spoiler_hint = spoiler.textContent.length > 0 ? spoiler.textContent : '';
  29563. }
  29564. return attrs;
  29565. },
  29566. createMessage: function createMessage(message, original_stanza) {
  29567. /* Create a Backbone.Message object inside this chat box
  29568. * based on the identified message stanza.
  29569. */
  29570. var that = this;
  29571. function _create(attrs) {
  29572. var is_csn = u.isOnlyChatStateNotification(attrs);
  29573. if (is_csn && (attrs.is_delayed || attrs.type === 'groupchat' && Strophe.getResourceFromJid(attrs.from) == that.get('nick'))) {
  29574. // XXX: MUC leakage
  29575. // No need showing delayed or our own CSN messages
  29576. return;
  29577. } else if (!is_csn && !attrs.file && !attrs.message && !attrs.oob_url && attrs.type !== 'error') {
  29578. // TODO: handle <subject> messages (currently being done by ChatRoom)
  29579. return;
  29580. } else {
  29581. return that.messages.create(attrs);
  29582. }
  29583. }
  29584. var result = this.getMessageAttributesFromStanza(message, original_stanza);
  29585. if (typeof result.then === "function") {
  29586. return new Promise(function (resolve, reject) {
  29587. return result.then(function (attrs) {
  29588. return resolve(_create(attrs));
  29589. });
  29590. });
  29591. } else {
  29592. var _message = _create(result);
  29593. return Promise.resolve(_message);
  29594. }
  29595. },
  29596. isHidden: function isHidden() {
  29597. /* Returns a boolean to indicate whether a newly received
  29598. * message will be visible to the user or not.
  29599. */
  29600. return this.get('hidden') || this.get('minimized') || this.isScrolledUp() || _converse.windowState === 'hidden';
  29601. },
  29602. incrementUnreadMsgCounter: function incrementUnreadMsgCounter(message) {
  29603. /* Given a newly received message, update the unread counter if
  29604. * necessary.
  29605. */
  29606. if (!message) {
  29607. return;
  29608. }
  29609. if (_.isNil(message.get('message'))) {
  29610. return;
  29611. }
  29612. if (utils.isNewMessage(message) && this.isHidden()) {
  29613. this.save({
  29614. 'num_unread': this.get('num_unread') + 1
  29615. });
  29616. _converse.incrementMsgCounter();
  29617. }
  29618. },
  29619. clearUnreadMsgCounter: function clearUnreadMsgCounter() {
  29620. u.safeSave(this, {
  29621. 'num_unread': 0
  29622. });
  29623. },
  29624. isScrolledUp: function isScrolledUp() {
  29625. return this.get('scrolled', true);
  29626. }
  29627. });
  29628. _converse.ChatBoxes = Backbone.Collection.extend({
  29629. comparator: 'time_opened',
  29630. model: function model(attrs, options) {
  29631. return new _converse.ChatBox(attrs, options);
  29632. },
  29633. registerMessageHandler: function registerMessageHandler() {
  29634. var _this6 = this;
  29635. _converse.connection.addHandler(function (stanza) {
  29636. _this6.onMessage(stanza);
  29637. return true;
  29638. }, null, 'message', 'chat');
  29639. _converse.connection.addHandler(function (stanza) {
  29640. _this6.onErrorMessage(stanza);
  29641. return true;
  29642. }, null, 'message', 'error');
  29643. },
  29644. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  29645. return true;
  29646. },
  29647. onChatBoxesFetched: function onChatBoxesFetched(collection) {
  29648. var _this7 = this;
  29649. /* Show chat boxes upon receiving them from sessionStorage */
  29650. collection.each(function (chatbox) {
  29651. if (_this7.chatBoxMayBeShown(chatbox)) {
  29652. chatbox.trigger('show');
  29653. }
  29654. });
  29655. _converse.emit('chatBoxesFetched');
  29656. },
  29657. onConnected: function onConnected() {
  29658. this.browserStorage = new Backbone.BrowserStorage.session("converse.chatboxes-".concat(_converse.bare_jid));
  29659. this.registerMessageHandler();
  29660. this.fetch({
  29661. 'add': true,
  29662. 'success': this.onChatBoxesFetched.bind(this)
  29663. });
  29664. },
  29665. onErrorMessage: function onErrorMessage(message) {
  29666. /* Handler method for all incoming error message stanzas
  29667. */
  29668. var from_jid = Strophe.getBareJidFromJid(message.getAttribute('from'));
  29669. if (utils.isSameBareJID(from_jid, _converse.bare_jid)) {
  29670. return true;
  29671. }
  29672. var chatbox = this.getChatBox(from_jid);
  29673. if (!chatbox) {
  29674. return true;
  29675. }
  29676. chatbox.createMessage(message, message);
  29677. return true;
  29678. },
  29679. getMessageBody: function getMessageBody(stanza) {
  29680. /* Given a message stanza, return the text contained in its body.
  29681. */
  29682. var type = stanza.getAttribute('type');
  29683. if (type === 'error') {
  29684. var error = stanza.querySelector('error');
  29685. return _.propertyOf(error.querySelector('text'))('textContent') || __('Sorry, an error occurred:') + ' ' + error.innerHTML;
  29686. } else {
  29687. return _.propertyOf(stanza.querySelector('body'))('textContent');
  29688. }
  29689. },
  29690. onMessage: function onMessage(stanza) {
  29691. /* Handler method for all incoming single-user chat "message"
  29692. * stanzas.
  29693. *
  29694. * Parameters:
  29695. * (XMLElement) stanza - The incoming message stanza
  29696. */
  29697. var to_jid = stanza.getAttribute('to');
  29698. var to_resource = Strophe.getResourceFromJid(to_jid);
  29699. if (_converse.filter_by_resource && to_resource && to_resource !== _converse.resource) {
  29700. _converse.log("onMessage: Ignoring incoming message intended for a different resource: ".concat(to_jid), Strophe.LogLevel.INFO);
  29701. return true;
  29702. } else if (utils.isHeadlineMessage(_converse, stanza)) {
  29703. // XXX: Ideally we wouldn't have to check for headline
  29704. // messages, but Prosody sends headline messages with the
  29705. // wrong type ('chat'), so we need to filter them out here.
  29706. _converse.log("onMessage: Ignoring incoming headline message sent with type 'chat' from JID: ".concat(stanza.getAttribute('from')), Strophe.LogLevel.INFO);
  29707. return true;
  29708. }
  29709. var from_jid = stanza.getAttribute('from');
  29710. var forwarded = stanza.querySelector('forwarded'),
  29711. original_stanza = stanza;
  29712. if (!_.isNull(forwarded)) {
  29713. var forwarded_message = forwarded.querySelector('message'),
  29714. forwarded_from = forwarded_message.getAttribute('from'),
  29715. is_carbon = !_.isNull(stanza.querySelector("received[xmlns=\"".concat(Strophe.NS.CARBONS, "\"]")));
  29716. if (is_carbon && Strophe.getBareJidFromJid(forwarded_from) !== from_jid) {
  29717. // Prevent message forging via carbons
  29718. // https://xmpp.org/extensions/xep-0280.html#security
  29719. return true;
  29720. }
  29721. stanza = forwarded_message;
  29722. from_jid = stanza.getAttribute('from');
  29723. to_jid = stanza.getAttribute('to');
  29724. }
  29725. var from_bare_jid = Strophe.getBareJidFromJid(from_jid),
  29726. from_resource = Strophe.getResourceFromJid(from_jid),
  29727. is_me = from_bare_jid === _converse.bare_jid;
  29728. var contact_jid;
  29729. if (is_me) {
  29730. // I am the sender, so this must be a forwarded message...
  29731. if (_.isNull(to_jid)) {
  29732. return _converse.log("Don't know how to handle message stanza without 'to' attribute. ".concat(stanza.outerHTML), Strophe.LogLevel.ERROR);
  29733. }
  29734. contact_jid = Strophe.getBareJidFromJid(to_jid);
  29735. } else {
  29736. contact_jid = from_bare_jid;
  29737. } // Get chat box, but only create a new one when the message has a body.
  29738. var attrs = {
  29739. 'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname')
  29740. };
  29741. var chatbox = this.getChatBox(contact_jid, attrs, !_.isNull(stanza.querySelector('body')));
  29742. if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
  29743. var msgid = stanza.getAttribute('id'),
  29744. message = msgid && chatbox.messages.findWhere({
  29745. msgid: msgid
  29746. });
  29747. if (!message) {
  29748. // Only create the message when we're sure it's not a duplicate
  29749. chatbox.createMessage(stanza, original_stanza).then(function (msg) {
  29750. return chatbox.incrementUnreadMsgCounter(msg);
  29751. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29752. }
  29753. }
  29754. _converse.emit('message', {
  29755. 'stanza': original_stanza,
  29756. 'chatbox': chatbox
  29757. });
  29758. return true;
  29759. },
  29760. getChatBox: function getChatBox(jid) {
  29761. var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29762. var create = arguments.length > 2 ? arguments[2] : undefined;
  29763. /* Returns a chat box or optionally return a newly
  29764. * created one if one doesn't exist.
  29765. *
  29766. * Parameters:
  29767. * (String) jid - The JID of the user whose chat box we want
  29768. * (Boolean) create - Should a new chat box be created if none exists?
  29769. * (Object) attrs - Optional chat box atributes.
  29770. */
  29771. if (_.isObject(jid)) {
  29772. create = attrs;
  29773. attrs = jid;
  29774. jid = attrs.jid;
  29775. }
  29776. jid = Strophe.getBareJidFromJid(jid.toLowerCase());
  29777. var chatbox = this.get(Strophe.getBareJidFromJid(jid));
  29778. if (!chatbox && create) {
  29779. _.extend(attrs, {
  29780. 'jid': jid,
  29781. 'id': jid
  29782. });
  29783. chatbox = this.create(attrs, {
  29784. 'error': function error(model, response) {
  29785. _converse.log(response.responseText);
  29786. }
  29787. });
  29788. }
  29789. return chatbox;
  29790. }
  29791. });
  29792. function autoJoinChats() {
  29793. /* Automatically join private chats, based on the
  29794. * "auto_join_private_chats" configuration setting.
  29795. */
  29796. _.each(_converse.auto_join_private_chats, function (jid) {
  29797. if (_converse.chatboxes.where({
  29798. 'jid': jid
  29799. }).length) {
  29800. return;
  29801. }
  29802. if (_.isString(jid)) {
  29803. _converse.api.chats.open(jid);
  29804. } else {
  29805. _converse.log('Invalid jid criteria specified for "auto_join_private_chats"', Strophe.LogLevel.ERROR);
  29806. }
  29807. });
  29808. _converse.emit('privateChatsAutoJoined');
  29809. }
  29810. /************************ BEGIN Event Handlers ************************/
  29811. _converse.on('chatBoxesFetched', autoJoinChats);
  29812. _converse.api.waitUntil('rosterContactsFetched').then(function () {
  29813. _converse.roster.on('add', function (contact) {
  29814. /* When a new contact is added, check if we already have a
  29815. * chatbox open for it, and if so attach it to the chatbox.
  29816. */
  29817. var chatbox = _converse.chatboxes.findWhere({
  29818. 'jid': contact.get('jid')
  29819. });
  29820. if (chatbox) {
  29821. chatbox.addRelatedContact(contact);
  29822. }
  29823. });
  29824. });
  29825. _converse.on('addClientFeatures', function () {
  29826. _converse.api.disco.own.features.add(Strophe.NS.MESSAGE_CORRECT);
  29827. _converse.api.disco.own.features.add(Strophe.NS.HTTPUPLOAD);
  29828. _converse.api.disco.own.features.add(Strophe.NS.OUTOFBAND);
  29829. });
  29830. _converse.api.listen.on('pluginsInitialized', function () {
  29831. _converse.chatboxes = new _converse.ChatBoxes();
  29832. _converse.emit('chatBoxesInitialized');
  29833. });
  29834. _converse.api.listen.on('presencesInitialized', function () {
  29835. return _converse.chatboxes.onConnected();
  29836. });
  29837. /************************ END Event Handlers ************************/
  29838. /************************ BEGIN API ************************/
  29839. _.extend(_converse.api, {
  29840. /**
  29841. * The "chats" namespace (used for one-on-one chats)
  29842. *
  29843. * @namespace _converse.api.chats
  29844. * @memberOf _converse.api
  29845. */
  29846. 'chats': {
  29847. /**
  29848. * @method _converse.api.chats.create
  29849. * @param {string|string[]} jid|jids An jid or array of jids
  29850. * @param {object} attrs An object containing configuration attributes.
  29851. */
  29852. 'create': function create(jids, attrs) {
  29853. if (_.isUndefined(jids)) {
  29854. _converse.log("chats.create: You need to provide at least one JID", Strophe.LogLevel.ERROR);
  29855. return null;
  29856. }
  29857. if (_.isString(jids)) {
  29858. if (attrs && !_.get(attrs, 'fullname')) {
  29859. attrs.fullname = _.get(_converse.api.contacts.get(jids), 'attributes.fullname');
  29860. }
  29861. var chatbox = _converse.chatboxes.getChatBox(jids, attrs, true);
  29862. if (_.isNil(chatbox)) {
  29863. _converse.log("Could not open chatbox for JID: " + jids, Strophe.LogLevel.ERROR);
  29864. return;
  29865. }
  29866. return chatbox;
  29867. }
  29868. return _.map(jids, function (jid) {
  29869. attrs.fullname = _.get(_converse.api.contacts.get(jid), 'attributes.fullname');
  29870. return _converse.chatboxes.getChatBox(jid, attrs, true).trigger('show');
  29871. });
  29872. },
  29873. /**
  29874. * Opens a new one-on-one chat.
  29875. *
  29876. * @method _converse.api.chats.open
  29877. * @param {String|string[]} name - e.g. 'buddy@example.com' or ['buddy1@example.com', 'buddy2@example.com']
  29878. * @returns {Promise} Promise which resolves with the Backbone.Model representing the chat.
  29879. *
  29880. * @example
  29881. * // To open a single chat, provide the JID of the contact you're chatting with in that chat:
  29882. * converse.plugins.add('myplugin', {
  29883. * initialize: function() {
  29884. * var _converse = this._converse;
  29885. * // Note, buddy@example.org must be in your contacts roster!
  29886. * _converse.api.chats.open('buddy@example.com').then((chat) => {
  29887. * // Now you can do something with the chat model
  29888. * });
  29889. * }
  29890. * });
  29891. *
  29892. * @example
  29893. * // To open an array of chats, provide an array of JIDs:
  29894. * converse.plugins.add('myplugin', {
  29895. * initialize: function () {
  29896. * var _converse = this._converse;
  29897. * // Note, these users must first be in your contacts roster!
  29898. * _converse.api.chats.open(['buddy1@example.com', 'buddy2@example.com']).then((chats) => {
  29899. * // Now you can do something with the chat models
  29900. * });
  29901. * }
  29902. * });
  29903. *
  29904. */
  29905. 'open': function open(jids, attrs) {
  29906. return new Promise(function (resolve, reject) {
  29907. Promise.all([_converse.api.waitUntil('rosterContactsFetched'), _converse.api.waitUntil('chatBoxesFetched')]).then(function () {
  29908. if (_.isUndefined(jids)) {
  29909. var err_msg = "chats.open: You need to provide at least one JID";
  29910. _converse.log(err_msg, Strophe.LogLevel.ERROR);
  29911. reject(new Error(err_msg));
  29912. } else if (_.isString(jids)) {
  29913. resolve(_converse.api.chats.create(jids, attrs).trigger('show'));
  29914. } else {
  29915. resolve(_.map(jids, function (jid) {
  29916. return _converse.api.chats.create(jid, attrs).trigger('show');
  29917. }));
  29918. }
  29919. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29920. });
  29921. },
  29922. /**
  29923. * Returns a chat model. The chat should already be open.
  29924. *
  29925. * @method _converse.api.chats.get
  29926. * @param {String|string[]} name - e.g. 'buddy@example.com' or ['buddy1@example.com', 'buddy2@example.com']
  29927. * @returns {Backbone.Model}
  29928. *
  29929. * @example
  29930. * // To return a single chat, provide the JID of the contact you're chatting with in that chat:
  29931. * const model = _converse.api.chats.get('buddy@example.com');
  29932. *
  29933. * @example
  29934. * // To return an array of chats, provide an array of JIDs:
  29935. * const models = _converse.api.chats.get(['buddy1@example.com', 'buddy2@example.com']);
  29936. *
  29937. * @example
  29938. * // To return all open chats, call the method without any parameters::
  29939. * const models = _converse.api.chats.get();
  29940. *
  29941. */
  29942. 'get': function get(jids) {
  29943. if (_.isUndefined(jids)) {
  29944. var result = [];
  29945. _converse.chatboxes.each(function (chatbox) {
  29946. // FIXME: Leaky abstraction from MUC. We need to add a
  29947. // base type for chat boxes, and check for that.
  29948. if (chatbox.get('type') !== _converse.CHATROOMS_TYPE) {
  29949. result.push(chatbox);
  29950. }
  29951. });
  29952. return result;
  29953. } else if (_.isString(jids)) {
  29954. return _converse.chatboxes.getChatBox(jids);
  29955. }
  29956. return _.map(jids, _.partial(_converse.chatboxes.getChatBox.bind(_converse.chatboxes), _, {}, true));
  29957. }
  29958. }
  29959. });
  29960. /************************ END API ************************/
  29961. }
  29962. });
  29963. return converse;
  29964. });
  29965. /***/ }),
  29966. /***/ "./src/converse-chatboxviews.js":
  29967. /*!**************************************!*\
  29968. !*** ./src/converse-chatboxviews.js ***!
  29969. \**************************************/
  29970. /*! no static exports found */
  29971. /***/ (function(module, exports, __webpack_require__) {
  29972. "use strict";
  29973. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  29974. // Converse.js
  29975. // http://conversejs.org
  29976. //
  29977. // Copyright (c) 2012-2018, the Converse.js developers
  29978. // Licensed under the Mozilla Public License (MPLv2)
  29979. (function (root, factory) {
  29980. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/chatboxes.html */ "./src/templates/chatboxes.html"), __webpack_require__(/*! converse-chatboxes */ "./src/converse-chatboxes.js"), __webpack_require__(/*! backbone.overview */ "backbone.overview")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  29981. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29982. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  29983. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29984. })(void 0, function (converse, tpl_chatboxes) {
  29985. "use strict";
  29986. var _converse$env = converse.env,
  29987. Backbone = _converse$env.Backbone,
  29988. _ = _converse$env._;
  29989. var AvatarMixin = {
  29990. renderAvatar: function renderAvatar() {
  29991. var canvas_el = this.el.querySelector('canvas');
  29992. if (_.isNull(canvas_el)) {
  29993. return;
  29994. }
  29995. var image_type = this.model.vcard.get('image_type'),
  29996. image = this.model.vcard.get('image'),
  29997. img_src = "data:" + image_type + ";base64," + image,
  29998. img = new Image();
  29999. img.onload = function () {
  30000. var ctx = canvas_el.getContext('2d'),
  30001. ratio = img.width / img.height;
  30002. ctx.clearRect(0, 0, canvas_el.width, canvas_el.height);
  30003. if (ratio < 1) {
  30004. var scaled_img_with = canvas_el.width * ratio,
  30005. x = Math.floor((canvas_el.width - scaled_img_with) / 2);
  30006. ctx.drawImage(img, x, 0, scaled_img_with, canvas_el.height);
  30007. } else {
  30008. ctx.drawImage(img, 0, 0, canvas_el.width, canvas_el.height * ratio);
  30009. }
  30010. };
  30011. img.src = img_src;
  30012. }
  30013. };
  30014. converse.plugins.add('converse-chatboxviews', {
  30015. dependencies: ["converse-chatboxes"],
  30016. overrides: {
  30017. // Overrides mentioned here will be picked up by converse.js's
  30018. // plugin architecture they will replace existing methods on the
  30019. // relevant objects or classes.
  30020. initStatus: function initStatus(reconnecting) {
  30021. var _converse = this.__super__._converse;
  30022. if (!reconnecting) {
  30023. _converse.chatboxviews.closeAllChatBoxes();
  30024. }
  30025. return this.__super__.initStatus.apply(this, arguments);
  30026. }
  30027. },
  30028. initialize: function initialize() {
  30029. /* The initialize function gets called as soon as the plugin is
  30030. * loaded by converse.js's plugin machinery.
  30031. */
  30032. var _converse = this._converse,
  30033. __ = _converse.__;
  30034. _converse.api.promises.add(['chatBoxViewsInitialized']);
  30035. _converse.ViewWithAvatar = Backbone.NativeView.extend(AvatarMixin);
  30036. _converse.VDOMViewWithAvatar = Backbone.VDOMView.extend(AvatarMixin);
  30037. _converse.ChatBoxViews = Backbone.Overview.extend({
  30038. _ensureElement: function _ensureElement() {
  30039. /* Override method from backbone.js
  30040. * If the #conversejs element doesn't exist, create it.
  30041. */
  30042. if (!this.el) {
  30043. var el = _converse.root.querySelector('#conversejs');
  30044. if (_.isNull(el)) {
  30045. el = document.createElement('div');
  30046. el.setAttribute('id', 'conversejs');
  30047. var body = _converse.root.querySelector('body');
  30048. if (body) {
  30049. body.appendChild(el);
  30050. } else {
  30051. // Perhaps inside a web component?
  30052. _converse.root.appendChild(el);
  30053. }
  30054. }
  30055. el.innerHTML = '';
  30056. this.setElement(el, false);
  30057. } else {
  30058. this.setElement(_.result(this, 'el'), false);
  30059. }
  30060. },
  30061. initialize: function initialize() {
  30062. this.model.on("destroy", this.removeChat, this);
  30063. this.el.classList.add("converse-".concat(_converse.view_mode));
  30064. this.render();
  30065. },
  30066. render: function render() {
  30067. try {
  30068. this.el.innerHTML = tpl_chatboxes();
  30069. } catch (e) {
  30070. this._ensureElement();
  30071. this.el.innerHTML = tpl_chatboxes();
  30072. }
  30073. this.row_el = this.el.querySelector('.row');
  30074. },
  30075. insertRowColumn: function insertRowColumn(el) {
  30076. /* Add a new DOM element (likely a chat box) into the
  30077. * the row managed by this overview.
  30078. */
  30079. this.row_el.insertAdjacentElement('afterBegin', el);
  30080. },
  30081. removeChat: function removeChat(item) {
  30082. this.remove(item.get('id'));
  30083. },
  30084. closeAllChatBoxes: function closeAllChatBoxes() {
  30085. /* This method gets overridden in src/converse-controlbox.js if
  30086. * the controlbox plugin is active.
  30087. */
  30088. this.each(function (view) {
  30089. view.close();
  30090. });
  30091. return this;
  30092. },
  30093. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  30094. return this.model.chatBoxMayBeShown(chatbox);
  30095. }
  30096. });
  30097. /************************ BEGIN Event Handlers ************************/
  30098. _converse.api.waitUntil('rosterContactsFetched').then(function () {
  30099. _converse.roster.on('add', function (contact) {
  30100. /* When a new contact is added, check if we already have a
  30101. * chatbox open for it, and if so attach it to the chatbox.
  30102. */
  30103. var chatbox = _converse.chatboxes.findWhere({
  30104. 'jid': contact.get('jid')
  30105. });
  30106. if (chatbox) {
  30107. chatbox.addRelatedContact(contact);
  30108. }
  30109. });
  30110. });
  30111. _converse.api.listen.on('chatBoxesInitialized', function () {
  30112. _converse.chatboxviews = new _converse.ChatBoxViews({
  30113. 'model': _converse.chatboxes
  30114. });
  30115. _converse.emit('chatBoxViewsInitialized');
  30116. });
  30117. _converse.api.listen.on('clearSession', function () {
  30118. return _converse.chatboxviews.closeAllChatBoxes();
  30119. });
  30120. /************************ END Event Handlers ************************/
  30121. }
  30122. });
  30123. return converse;
  30124. });
  30125. /***/ }),
  30126. /***/ "./src/converse-chatview.js":
  30127. /*!**********************************!*\
  30128. !*** ./src/converse-chatview.js ***!
  30129. \**********************************/
  30130. /*! no static exports found */
  30131. /***/ (function(module, exports, __webpack_require__) {
  30132. "use strict";
  30133. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  30134. // Converse.js
  30135. // http://conversejs.org
  30136. //
  30137. // Copyright (c) 2012-2018, the Converse.js developers
  30138. // Licensed under the Mozilla Public License (MPLv2)
  30139. (function (root, factory) {
  30140. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! twemoji */ "./node_modules/twemoji/2/esm.js"), __webpack_require__(/*! xss */ "./node_modules/xss/dist/xss.js"), __webpack_require__(/*! templates/chatbox.html */ "./src/templates/chatbox.html"), __webpack_require__(/*! templates/chatbox_head.html */ "./src/templates/chatbox_head.html"), __webpack_require__(/*! templates/chatbox_message_form.html */ "./src/templates/chatbox_message_form.html"), __webpack_require__(/*! templates/emojis.html */ "./src/templates/emojis.html"), __webpack_require__(/*! templates/error_message.html */ "./src/templates/error_message.html"), __webpack_require__(/*! templates/help_message.html */ "./src/templates/help_message.html"), __webpack_require__(/*! templates/info.html */ "./src/templates/info.html"), __webpack_require__(/*! templates/new_day.html */ "./src/templates/new_day.html"), __webpack_require__(/*! templates/user_details_modal.html */ "./src/templates/user_details_modal.html"), __webpack_require__(/*! templates/toolbar_fileupload.html */ "./src/templates/toolbar_fileupload.html"), __webpack_require__(/*! templates/spinner.html */ "./src/templates/spinner.html"), __webpack_require__(/*! templates/spoiler_button.html */ "./src/templates/spoiler_button.html"), __webpack_require__(/*! templates/status_message.html */ "./src/templates/status_message.html"), __webpack_require__(/*! templates/toolbar.html */ "./src/templates/toolbar.html"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js"), __webpack_require__(/*! converse-chatboxviews */ "./src/converse-chatboxviews.js"), __webpack_require__(/*! converse-message-view */ "./src/converse-message-view.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  30141. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  30142. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  30143. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  30144. })(void 0, function (u, converse, bootstrap, twemoji, xss, tpl_chatbox, tpl_chatbox_head, tpl_chatbox_message_form, tpl_emojis, tpl_error_message, tpl_help_message, tpl_info, tpl_new_day, tpl_user_details_modal, tpl_toolbar_fileupload, tpl_spinner, tpl_spoiler_button, tpl_status_message, tpl_toolbar) {
  30145. "use strict";
  30146. var _converse$env = converse.env,
  30147. $msg = _converse$env.$msg,
  30148. Backbone = _converse$env.Backbone,
  30149. Promise = _converse$env.Promise,
  30150. Strophe = _converse$env.Strophe,
  30151. _ = _converse$env._,
  30152. b64_sha1 = _converse$env.b64_sha1,
  30153. f = _converse$env.f,
  30154. sizzle = _converse$env.sizzle,
  30155. moment = _converse$env.moment;
  30156. converse.plugins.add('converse-chatview', {
  30157. /* Plugin dependencies are other plugins which might be
  30158. * overridden or relied upon, and therefore need to be loaded before
  30159. * this plugin.
  30160. *
  30161. * If the setting "strict_plugin_dependencies" is set to true,
  30162. * an error will be raised if the plugin is not found. By default it's
  30163. * false, which means these plugins are only loaded opportunistically.
  30164. *
  30165. * NB: These plugins need to have already been loaded via require.js.
  30166. */
  30167. dependencies: ["converse-chatboxviews", "converse-disco", "converse-message-view", "converse-modal"],
  30168. initialize: function initialize() {
  30169. /* The initialize function gets called as soon as the plugin is
  30170. * loaded by converse.js's plugin machinery.
  30171. */
  30172. var _converse = this._converse,
  30173. __ = _converse.__;
  30174. _converse.api.settings.update({
  30175. 'emoji_image_path': twemoji.default.base,
  30176. 'show_send_button': false,
  30177. 'show_toolbar': true,
  30178. 'time_format': 'HH:mm',
  30179. 'use_system_emojis': true,
  30180. 'visible_toolbar_buttons': {
  30181. 'call': false,
  30182. 'clear': true,
  30183. 'emoji': true,
  30184. 'spoiler': true
  30185. }
  30186. });
  30187. twemoji.default.base = _converse.emoji_image_path;
  30188. function onWindowStateChanged(data) {
  30189. if (_converse.chatboxviews) {
  30190. _converse.chatboxviews.each(function (view) {
  30191. return view.onWindowStateChanged(data.state);
  30192. });
  30193. }
  30194. }
  30195. _converse.api.listen.on('windowStateChanged', onWindowStateChanged);
  30196. _converse.EmojiPicker = Backbone.Model.extend({
  30197. defaults: {
  30198. 'current_category': 'people',
  30199. 'current_skintone': '',
  30200. 'scroll_position': 0
  30201. }
  30202. });
  30203. _converse.EmojiPickerView = Backbone.VDOMView.extend({
  30204. className: 'emoji-picker-container',
  30205. events: {
  30206. 'click .emoji-category-picker li.emoji-category': 'chooseCategory',
  30207. 'click .emoji-skintone-picker li.emoji-skintone': 'chooseSkinTone'
  30208. },
  30209. initialize: function initialize() {
  30210. this.model.on('change:current_skintone', this.render, this);
  30211. this.model.on('change:current_category', this.render, this);
  30212. },
  30213. toHTML: function toHTML() {
  30214. return tpl_emojis(_.extend(this.model.toJSON(), {
  30215. '_': _,
  30216. 'transform': u.getEmojiRenderer(_converse),
  30217. 'emojis_by_category': u.getEmojisByCategory(_converse),
  30218. 'toned_emojis': u.getTonedEmojis(_converse),
  30219. 'skintones': ['tone1', 'tone2', 'tone3', 'tone4', 'tone5'],
  30220. 'shouldBeHidden': this.shouldBeHidden
  30221. }));
  30222. },
  30223. shouldBeHidden: function shouldBeHidden(shortname, current_skintone, toned_emojis) {
  30224. /* Helper method for the template which decides whether an
  30225. * emoji should be hidden, based on which skin tone is
  30226. * currently being applied.
  30227. */
  30228. if (_.includes(shortname, '_tone')) {
  30229. if (!current_skintone || !_.includes(shortname, current_skintone)) {
  30230. return true;
  30231. }
  30232. } else {
  30233. if (current_skintone && _.includes(toned_emojis, shortname)) {
  30234. return true;
  30235. }
  30236. }
  30237. return false;
  30238. },
  30239. chooseSkinTone: function chooseSkinTone(ev) {
  30240. ev.preventDefault();
  30241. ev.stopPropagation();
  30242. var target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  30243. var skintone = target.getAttribute("data-skintone").trim();
  30244. if (this.model.get('current_skintone') === skintone) {
  30245. this.model.save({
  30246. 'current_skintone': ''
  30247. });
  30248. } else {
  30249. this.model.save({
  30250. 'current_skintone': skintone
  30251. });
  30252. }
  30253. },
  30254. chooseCategory: function chooseCategory(ev) {
  30255. ev.preventDefault();
  30256. ev.stopPropagation();
  30257. var target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  30258. var category = target.getAttribute("data-category").trim();
  30259. this.model.save({
  30260. 'current_category': category,
  30261. 'scroll_position': 0
  30262. });
  30263. }
  30264. });
  30265. _converse.ChatBoxHeading = _converse.ViewWithAvatar.extend({
  30266. initialize: function initialize() {
  30267. this.model.on('change:status', this.onStatusMessageChanged, this);
  30268. this.model.vcard.on('change', this.render, this);
  30269. },
  30270. render: function render() {
  30271. this.el.innerHTML = tpl_chatbox_head(_.extend(this.model.vcard.toJSON(), this.model.toJSON(), {
  30272. '_converse': _converse,
  30273. 'info_close': __('Close this chat box')
  30274. }));
  30275. this.renderAvatar();
  30276. return this;
  30277. },
  30278. onStatusMessageChanged: function onStatusMessageChanged(item) {
  30279. this.render();
  30280. _converse.emit('contactStatusMessageChanged', {
  30281. 'contact': item.attributes,
  30282. 'message': item.get('status')
  30283. });
  30284. }
  30285. });
  30286. _converse.UserDetailsModal = _converse.BootstrapModal.extend({
  30287. events: {
  30288. 'click button.remove-contact': 'removeContact',
  30289. 'click button.refresh-contact': 'refreshContact',
  30290. 'click .fingerprint-trust .btn input': 'toggleDeviceTrust'
  30291. },
  30292. initialize: function initialize() {
  30293. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  30294. this.model.on('contactAdded', this.registerContactEventHandlers, this);
  30295. this.model.on('change', this.render, this);
  30296. this.registerContactEventHandlers();
  30297. _converse.emit('userDetailsModalInitialized', this.model);
  30298. },
  30299. toHTML: function toHTML() {
  30300. return tpl_user_details_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  30301. '_': _,
  30302. '__': __,
  30303. 'view': this,
  30304. '_converse': _converse,
  30305. 'allow_contact_removal': _converse.allow_contact_removal,
  30306. 'display_name': this.model.getDisplayName(),
  30307. 'is_roster_contact': !_.isUndefined(this.model.contact),
  30308. 'utils': u
  30309. }));
  30310. },
  30311. registerContactEventHandlers: function registerContactEventHandlers() {
  30312. var _this = this;
  30313. if (!_.isUndefined(this.model.contact)) {
  30314. this.model.contact.on('change', this.render, this);
  30315. this.model.contact.vcard.on('change', this.render, this);
  30316. this.model.contact.on('destroy', function () {
  30317. delete _this.model.contact;
  30318. _this.render();
  30319. });
  30320. }
  30321. },
  30322. refreshContact: function refreshContact(ev) {
  30323. if (ev && ev.preventDefault) {
  30324. ev.preventDefault();
  30325. }
  30326. var refresh_icon = this.el.querySelector('.fa-refresh');
  30327. u.addClass('fa-spin', refresh_icon);
  30328. _converse.api.vcard.update(this.model.contact.vcard, true).then(function () {
  30329. return u.removeClass('fa-spin', refresh_icon);
  30330. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  30331. },
  30332. removeContact: function removeContact(ev) {
  30333. var _this2 = this;
  30334. if (ev && ev.preventDefault) {
  30335. ev.preventDefault();
  30336. }
  30337. if (!_converse.allow_contact_removal) {
  30338. return;
  30339. }
  30340. var result = confirm(__("Are you sure you want to remove this contact?"));
  30341. if (result === true) {
  30342. this.modal.hide();
  30343. this.model.contact.removeFromRoster(function (iq) {
  30344. _this2.model.contact.destroy();
  30345. }, function (err) {
  30346. _converse.log(err, Strophe.LogLevel.ERROR);
  30347. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__('Sorry, there was an error while trying to remove %1$s as a contact.', _this2.model.contact.getDisplayName())]);
  30348. });
  30349. }
  30350. }
  30351. });
  30352. _converse.ChatBoxView = Backbone.NativeView.extend({
  30353. length: 200,
  30354. className: 'chatbox hidden',
  30355. is_chatroom: false,
  30356. // Leaky abstraction from MUC
  30357. events: {
  30358. 'change input.fileupload': 'onFileSelection',
  30359. 'click .chat-msg__action-edit': 'onMessageEditButtonClicked',
  30360. 'click .chatbox-navback': 'showControlBox',
  30361. 'click .close-chatbox-button': 'close',
  30362. 'click .new-msgs-indicator': 'viewUnreadMessages',
  30363. 'click .send-button': 'onFormSubmitted',
  30364. 'click .show-user-details-modal': 'showUserDetailsModal',
  30365. 'click .spoiler-toggle': 'toggleSpoilerMessage',
  30366. 'click .toggle-call': 'toggleCall',
  30367. 'click .toggle-clear': 'clearMessages',
  30368. 'click .toggle-compose-spoiler': 'toggleComposeSpoilerMessage',
  30369. 'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
  30370. 'click .toggle-smiley': 'toggleEmojiMenu',
  30371. 'click .upload-file': 'toggleFileUpload',
  30372. 'input .chat-textarea': 'inputChanged',
  30373. 'keydown .chat-textarea': 'keyPressed'
  30374. },
  30375. initialize: function initialize() {
  30376. this.initDebounced();
  30377. this.model.messages.on('add', this.onMessageAdded, this);
  30378. this.model.messages.on('rendered', this.scrollDown, this);
  30379. this.model.on('show', this.show, this);
  30380. this.model.on('destroy', this.remove, this);
  30381. this.model.presence.on('change:show', this.onPresenceChanged, this);
  30382. this.model.on('showHelpMessages', this.showHelpMessages, this);
  30383. this.render();
  30384. this.fetchMessages();
  30385. _converse.emit('chatBoxOpened', this);
  30386. _converse.emit('chatBoxInitialized', this);
  30387. },
  30388. initDebounced: function initDebounced() {
  30389. this.scrollDown = _.debounce(this._scrollDown, 250);
  30390. this.markScrolled = _.debounce(this._markScrolled, 100);
  30391. this.show = _.debounce(this._show, 250, {
  30392. 'leading': true
  30393. });
  30394. },
  30395. render: function render() {
  30396. // XXX: Is this still needed?
  30397. this.el.setAttribute('id', this.model.get('box_id'));
  30398. this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
  30399. 'unread_msgs': __('You have unread messages')
  30400. }));
  30401. this.content = this.el.querySelector('.chat-content');
  30402. this.renderMessageForm();
  30403. this.insertHeading();
  30404. return this;
  30405. },
  30406. renderToolbar: function renderToolbar(toolbar, options) {
  30407. if (!_converse.show_toolbar) {
  30408. return this;
  30409. }
  30410. toolbar = toolbar || tpl_toolbar;
  30411. options = _.assign(this.model.toJSON(), this.getToolbarOptions(options || {}));
  30412. this.el.querySelector('.chat-toolbar').innerHTML = toolbar(options);
  30413. this.addSpoilerButton(options);
  30414. this.addFileUploadButton();
  30415. _converse.emit('renderToolbar', this);
  30416. return this;
  30417. },
  30418. renderMessageForm: function renderMessageForm() {
  30419. var placeholder;
  30420. if (this.model.get('composing_spoiler')) {
  30421. placeholder = __('Hidden message');
  30422. } else {
  30423. placeholder = __('Message');
  30424. }
  30425. var form_container = this.el.querySelector('.message-form-container');
  30426. form_container.innerHTML = tpl_chatbox_message_form(_.extend(this.model.toJSON(), {
  30427. 'hint_value': _.get(this.el.querySelector('.spoiler-hint'), 'value'),
  30428. 'label_message': placeholder,
  30429. 'label_send': __('Send'),
  30430. 'label_spoiler_hint': __('Optional hint'),
  30431. 'message_value': _.get(this.el.querySelector('.chat-textarea'), 'value'),
  30432. 'show_send_button': _converse.show_send_button,
  30433. 'show_toolbar': _converse.show_toolbar,
  30434. 'unread_msgs': __('You have unread messages')
  30435. }));
  30436. this.renderToolbar();
  30437. },
  30438. showControlBox: function showControlBox() {
  30439. // Used in mobile view, to navigate back to the controlbox
  30440. var view = _converse.chatboxviews.get('controlbox');
  30441. view.show();
  30442. this.hide();
  30443. },
  30444. showUserDetailsModal: function showUserDetailsModal(ev) {
  30445. ev.preventDefault();
  30446. if (_.isUndefined(this.user_details_modal)) {
  30447. this.user_details_modal = new _converse.UserDetailsModal({
  30448. model: this.model
  30449. });
  30450. }
  30451. this.user_details_modal.show(ev);
  30452. },
  30453. toggleFileUpload: function toggleFileUpload(ev) {
  30454. this.el.querySelector('input.fileupload').click();
  30455. },
  30456. onFileSelection: function onFileSelection(evt) {
  30457. this.model.sendFiles(evt.target.files);
  30458. },
  30459. addFileUploadButton: function addFileUploadButton(options) {
  30460. var _this3 = this;
  30461. _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain).then(function (result) {
  30462. if (result.length) {
  30463. _this3.el.querySelector('.chat-toolbar').insertAdjacentHTML('beforeend', tpl_toolbar_fileupload({
  30464. 'tooltip_upload_file': __('Choose a file to send')
  30465. }));
  30466. }
  30467. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  30468. },
  30469. addSpoilerButton: function addSpoilerButton(options) {
  30470. var _this4 = this;
  30471. /* Asynchronously adds a button for writing spoiler
  30472. * messages, based on whether the contact's client supports
  30473. * it.
  30474. */
  30475. if (!options.show_spoiler_button || this.model.get('type') === 'chatroom') {
  30476. return;
  30477. }
  30478. var contact_jid = this.model.get('jid');
  30479. var resources = this.model.presence.get('resources');
  30480. if (_.isEmpty(resources)) {
  30481. return;
  30482. }
  30483. Promise.all(_.map(_.keys(resources), function (resource) {
  30484. return _converse.api.disco.supports(Strophe.NS.SPOILER, "".concat(contact_jid, "/").concat(resource));
  30485. })).then(function (results) {
  30486. if (_.filter(results, 'length').length) {
  30487. var html = tpl_spoiler_button(_this4.model.toJSON());
  30488. if (_converse.visible_toolbar_buttons.emoji) {
  30489. _this4.el.querySelector('.toggle-smiley').insertAdjacentHTML('afterEnd', html);
  30490. } else {
  30491. _this4.el.querySelector('.chat-toolbar').insertAdjacentHTML('afterBegin', html);
  30492. }
  30493. }
  30494. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  30495. },
  30496. insertHeading: function insertHeading() {
  30497. this.heading = new _converse.ChatBoxHeading({
  30498. 'model': this.model
  30499. });
  30500. this.heading.render();
  30501. this.heading.chatview = this;
  30502. if (!_.isUndefined(this.model.contact)) {
  30503. this.model.contact.on('destroy', this.heading.render, this);
  30504. }
  30505. var flyout = this.el.querySelector('.flyout');
  30506. flyout.insertBefore(this.heading.el, flyout.querySelector('.chat-body'));
  30507. return this;
  30508. },
  30509. getToolbarOptions: function getToolbarOptions(options) {
  30510. var label_toggle_spoiler;
  30511. if (this.model.get('composing_spoiler')) {
  30512. label_toggle_spoiler = __('Click to write as a normal (non-spoiler) message');
  30513. } else {
  30514. label_toggle_spoiler = __('Click to write your message as a spoiler');
  30515. }
  30516. return _.extend(options || {}, {
  30517. 'label_clear': __('Clear all messages'),
  30518. 'tooltip_insert_smiley': __('Insert emojis'),
  30519. 'tooltip_start_call': __('Start a call'),
  30520. 'label_toggle_spoiler': label_toggle_spoiler,
  30521. 'show_call_button': _converse.visible_toolbar_buttons.call,
  30522. 'show_spoiler_button': _converse.visible_toolbar_buttons.spoiler,
  30523. 'use_emoji': _converse.visible_toolbar_buttons.emoji
  30524. });
  30525. },
  30526. afterMessagesFetched: function afterMessagesFetched() {
  30527. this.insertIntoDOM();
  30528. this.scrollDown();
  30529. this.content.addEventListener('scroll', this.markScrolled.bind(this));
  30530. _converse.emit('afterMessagesFetched', this);
  30531. },
  30532. fetchMessages: function fetchMessages() {
  30533. this.model.messages.fetch({
  30534. 'add': true,
  30535. 'success': this.afterMessagesFetched.bind(this),
  30536. 'error': this.afterMessagesFetched.bind(this)
  30537. });
  30538. return this;
  30539. },
  30540. insertIntoDOM: function insertIntoDOM() {
  30541. /* This method gets overridden in src/converse-controlbox.js
  30542. * as well as src/converse-muc.js (if those plugins are
  30543. * enabled).
  30544. */
  30545. _converse.chatboxviews.insertRowColumn(this.el);
  30546. return this;
  30547. },
  30548. showChatEvent: function showChatEvent(message) {
  30549. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  30550. var isodate = moment().format();
  30551. this.content.insertAdjacentHTML('beforeend', tpl_info({
  30552. 'extra_classes': 'chat-event',
  30553. 'message': message,
  30554. 'isodate': isodate,
  30555. 'data': data
  30556. }));
  30557. this.insertDayIndicator(this.content.lastElementChild);
  30558. this.scrollDown();
  30559. return isodate;
  30560. },
  30561. showErrorMessage: function showErrorMessage(message) {
  30562. this.content.insertAdjacentHTML('beforeend', tpl_error_message({
  30563. 'message': message,
  30564. 'isodate': moment().format()
  30565. }));
  30566. this.scrollDown();
  30567. },
  30568. addSpinner: function addSpinner() {
  30569. var append = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  30570. if (_.isNull(this.el.querySelector('.spinner'))) {
  30571. if (append) {
  30572. this.content.insertAdjacentHTML('beforeend', tpl_spinner());
  30573. this.scrollDown();
  30574. } else {
  30575. this.content.insertAdjacentHTML('afterbegin', tpl_spinner());
  30576. }
  30577. }
  30578. },
  30579. clearSpinner: function clearSpinner() {
  30580. _.each(this.content.querySelectorAll('span.spinner'), function (el) {
  30581. return el.parentNode.removeChild(el);
  30582. });
  30583. },
  30584. insertDayIndicator: function insertDayIndicator(next_msg_el) {
  30585. /* Inserts an indicator into the chat area, showing the
  30586. * day as given by the passed in date.
  30587. *
  30588. * The indicator is only inserted if necessary.
  30589. *
  30590. * Parameters:
  30591. * (HTMLElement) next_msg_el - The message element before
  30592. * which the day indicator element must be inserted.
  30593. * This element must have a "data-isodate" attribute
  30594. * which specifies its creation date.
  30595. */
  30596. var prev_msg_el = u.getPreviousElement(next_msg_el, ".message:not(.chat-state-notification)"),
  30597. prev_msg_date = _.isNull(prev_msg_el) ? null : prev_msg_el.getAttribute('data-isodate'),
  30598. next_msg_date = next_msg_el.getAttribute('data-isodate');
  30599. if (_.isNull(prev_msg_date) || moment(next_msg_date).isAfter(prev_msg_date, 'day')) {
  30600. var day_date = moment(next_msg_date).startOf('day');
  30601. next_msg_el.insertAdjacentHTML('beforeBegin', tpl_new_day({
  30602. 'isodate': day_date.format(),
  30603. 'datestring': day_date.format("dddd MMM Do YYYY")
  30604. }));
  30605. }
  30606. },
  30607. getLastMessageDate: function getLastMessageDate(cutoff) {
  30608. /* Return the ISO8601 format date of the latest message.
  30609. *
  30610. * Parameters:
  30611. * (Object) cutoff: Moment Date cutoff date. The last
  30612. * message received cutoff this date will be returned.
  30613. */
  30614. var first_msg = u.getFirstChildElement(this.content, '.message:not(.chat-state-notification)'),
  30615. oldest_date = first_msg ? first_msg.getAttribute('data-isodate') : null;
  30616. if (!_.isNull(oldest_date) && moment(oldest_date).isAfter(cutoff)) {
  30617. return null;
  30618. }
  30619. var last_msg = u.getLastChildElement(this.content, '.message:not(.chat-state-notification)'),
  30620. most_recent_date = last_msg ? last_msg.getAttribute('data-isodate') : null;
  30621. if (_.isNull(most_recent_date) || moment(most_recent_date).isBefore(cutoff)) {
  30622. return most_recent_date;
  30623. }
  30624. /* XXX: We avoid .chat-state-notification messages, since they are
  30625. * temporary and get removed once a new element is
  30626. * inserted into the chat area, so we don't query for
  30627. * them here, otherwise we get a null reference later
  30628. * upon element insertion.
  30629. */
  30630. var msg_dates = _.invokeMap(sizzle('.message:not(.chat-state-notification)', this.content), Element.prototype.getAttribute, 'data-isodate');
  30631. if (_.isObject(cutoff)) {
  30632. cutoff = cutoff.format();
  30633. }
  30634. msg_dates.push(cutoff);
  30635. msg_dates.sort();
  30636. var idx = msg_dates.lastIndexOf(cutoff);
  30637. if (idx === 0) {
  30638. return null;
  30639. } else {
  30640. return msg_dates[idx - 1];
  30641. }
  30642. },
  30643. setScrollPosition: function setScrollPosition(message_el) {
  30644. /* Given a newly inserted message, determine whether we
  30645. * should keep the scrollbar in place (so as to not scroll
  30646. * up when using infinite scroll).
  30647. */
  30648. if (this.model.get('scrolled')) {
  30649. var next_msg_el = u.getNextElement(message_el, ".chat-msg");
  30650. if (next_msg_el) {
  30651. // The currently received message is not new, there
  30652. // are newer messages after it. So let's see if we
  30653. // should maintain our current scroll position.
  30654. if (this.content.scrollTop === 0 || this.model.get('top_visible_message')) {
  30655. var top_visible_message = this.model.get('top_visible_message') || next_msg_el;
  30656. this.model.set('top_visible_message', top_visible_message);
  30657. this.content.scrollTop = top_visible_message.offsetTop - 30;
  30658. }
  30659. }
  30660. } else {
  30661. this.scrollDown();
  30662. }
  30663. },
  30664. showHelpMessages: function showHelpMessages(msgs, type, spinner) {
  30665. var _this5 = this;
  30666. _.each(msgs, function (msg) {
  30667. _this5.content.insertAdjacentHTML('beforeend', tpl_help_message({
  30668. 'isodate': moment().format(),
  30669. 'type': type,
  30670. 'message': xss.filterXSS(msg, {
  30671. 'whiteList': {
  30672. 'strong': []
  30673. }
  30674. })
  30675. }));
  30676. });
  30677. if (spinner === true) {
  30678. this.addSpinner();
  30679. } else if (spinner === false) {
  30680. this.clearSpinner();
  30681. }
  30682. return this.scrollDown();
  30683. },
  30684. clearChatStateNotification: function clearChatStateNotification(message, isodate) {
  30685. if (isodate) {
  30686. _.each(sizzle(".chat-state-notification[data-csn=\"".concat(message.get('from'), "\"][data-isodate=\"").concat(isodate, "\"]"), this.content), u.removeElement);
  30687. } else {
  30688. _.each(sizzle(".chat-state-notification[data-csn=\"".concat(message.get('from'), "\"]"), this.content), u.removeElement);
  30689. }
  30690. },
  30691. shouldShowOnTextMessage: function shouldShowOnTextMessage() {
  30692. return !u.isVisible(this.el);
  30693. },
  30694. insertMessage: function insertMessage(view) {
  30695. /* Given a view representing a message, insert it into the
  30696. * content area of the chat box.
  30697. *
  30698. * Parameters:
  30699. * (Backbone.View) message: The message Backbone.View
  30700. */
  30701. if (view.model.get('type') === 'error') {
  30702. var previous_msg_el = this.content.querySelector("[data-msgid=\"".concat(view.model.get('msgid'), "\"]"));
  30703. if (previous_msg_el) {
  30704. return previous_msg_el.insertAdjacentElement('afterend', view.el);
  30705. }
  30706. }
  30707. var current_msg_date = moment(view.model.get('time')) || moment,
  30708. previous_msg_date = this.getLastMessageDate(current_msg_date);
  30709. if (_.isNull(previous_msg_date)) {
  30710. this.content.insertAdjacentElement('afterbegin', view.el);
  30711. } else {
  30712. var _previous_msg_el = sizzle("[data-isodate=\"".concat(previous_msg_date, "\"]:last"), this.content).pop();
  30713. if (view.model.get('type') === 'error' && u.hasClass('chat-error', _previous_msg_el) && _previous_msg_el.textContent === view.model.get('message')) {
  30714. // We don't show a duplicate error message
  30715. return;
  30716. }
  30717. _previous_msg_el.insertAdjacentElement('afterend', view.el);
  30718. this.markFollowups(view.el);
  30719. }
  30720. },
  30721. markFollowups: function markFollowups(el) {
  30722. /* Given a message element, determine wether it should be
  30723. * marked as a followup message to the previous element.
  30724. *
  30725. * Also determine whether the element following it is a
  30726. * followup message or not.
  30727. *
  30728. * Followup messages are subsequent ones written by the same
  30729. * author with no other conversation elements inbetween and
  30730. * posted within 10 minutes of one another.
  30731. *
  30732. * Parameters:
  30733. * (HTMLElement) el - The message element.
  30734. */
  30735. var from = el.getAttribute('data-from'),
  30736. previous_el = el.previousElementSibling,
  30737. date = moment(el.getAttribute('data-isodate')),
  30738. next_el = el.nextElementSibling;
  30739. if (!u.hasClass('chat-msg--action', el) && !u.hasClass('chat-msg--action', previous_el) && previous_el.getAttribute('data-from') === from && date.isBefore(moment(previous_el.getAttribute('data-isodate')).add(10, 'minutes')) && el.getAttribute('data-encrypted') === previous_el.getAttribute('data-encrypted')) {
  30740. u.addClass('chat-msg--followup', el);
  30741. }
  30742. if (!next_el) {
  30743. return;
  30744. }
  30745. if (!u.hasClass('chat-msg--action', 'el') && next_el.getAttribute('data-from') === from && moment(next_el.getAttribute('data-isodate')).isBefore(date.add(10, 'minutes')) && el.getAttribute('data-encrypted') === next_el.getAttribute('data-encrypted')) {
  30746. u.addClass('chat-msg--followup', next_el);
  30747. } else {
  30748. u.removeClass('chat-msg--followup', next_el);
  30749. }
  30750. },
  30751. showMessage: function showMessage(message) {
  30752. /* Inserts a chat message into the content area of the chat box.
  30753. *
  30754. * Will also insert a new day indicator if the message is on a
  30755. * different day.
  30756. *
  30757. * Parameters:
  30758. * (Backbone.Model) message: The message object
  30759. */
  30760. var view = new _converse.MessageView({
  30761. 'model': message
  30762. });
  30763. this.clearChatStateNotification(message);
  30764. this.insertMessage(view);
  30765. this.insertDayIndicator(view.el);
  30766. this.setScrollPosition(view.el);
  30767. if (u.isNewMessage(message)) {
  30768. if (message.get('sender') === 'me') {
  30769. // We remove the "scrolled" flag so that the chat area
  30770. // gets scrolled down. We always want to scroll down
  30771. // when the user writes a message as opposed to when a
  30772. // message is received.
  30773. this.model.set('scrolled', false);
  30774. } else if (this.model.get('scrolled', true) && !u.isOnlyChatStateNotification(message)) {
  30775. this.showNewMessagesIndicator();
  30776. }
  30777. }
  30778. if (this.shouldShowOnTextMessage()) {
  30779. this.show();
  30780. } else {
  30781. this.scrollDown();
  30782. }
  30783. },
  30784. onMessageAdded: function onMessageAdded(message) {
  30785. /* Handler that gets called when a new message object is created.
  30786. *
  30787. * Parameters:
  30788. * (Object) message - The message Backbone object that was added.
  30789. */
  30790. this.showMessage(message);
  30791. if (message.get('correcting')) {
  30792. this.insertIntoTextArea(message.get('message'), true, true);
  30793. }
  30794. _converse.emit('messageAdded', {
  30795. 'message': message,
  30796. 'chatbox': this.model
  30797. });
  30798. },
  30799. parseMessageForCommands: function parseMessageForCommands(text) {
  30800. var match = text.replace(/^\s*/, "").match(/^\/(.*)\s*$/);
  30801. if (match) {
  30802. if (match[1] === "clear") {
  30803. this.clearMessages();
  30804. return true;
  30805. } else if (match[1] === "help") {
  30806. var msgs = ["<strong>/clear</strong>: ".concat(__('Remove messages')), "<strong>/me</strong>: ".concat(__('Write in the third person')), "<strong>/help</strong>: ".concat(__('Show this menu'))];
  30807. this.showHelpMessages(msgs);
  30808. return true;
  30809. }
  30810. }
  30811. },
  30812. onMessageSubmitted: function onMessageSubmitted(text, spoiler_hint) {
  30813. /* This method gets called once the user has typed a message
  30814. * and then pressed enter in a chat box.
  30815. *
  30816. * Parameters:
  30817. * (String) text - The chat message text.
  30818. * (String) spoiler_hint - A hint in case the message
  30819. * text is a hidden/spoiler message. See XEP-0382
  30820. */
  30821. if (!_converse.connection.authenticated) {
  30822. return this.showHelpMessages(['Sorry, the connection has been lost, ' + 'and your message could not be sent'], 'error');
  30823. }
  30824. if (this.parseMessageForCommands(text)) {
  30825. return;
  30826. }
  30827. var attrs = this.model.getOutgoingMessageAttributes(text, spoiler_hint);
  30828. this.model.sendMessage(attrs);
  30829. },
  30830. setChatState: function setChatState(state, options) {
  30831. /* Mutator for setting the chat state of this chat session.
  30832. * Handles clearing of any chat state notification timeouts and
  30833. * setting new ones if necessary.
  30834. * Timeouts are set when the state being set is COMPOSING or PAUSED.
  30835. * After the timeout, COMPOSING will become PAUSED and PAUSED will become INACTIVE.
  30836. * See XEP-0085 Chat State Notifications.
  30837. *
  30838. * Parameters:
  30839. * (string) state - The chat state (consts ACTIVE, COMPOSING, PAUSED, INACTIVE, GONE)
  30840. */
  30841. if (!_.isUndefined(this.chat_state_timeout)) {
  30842. window.clearTimeout(this.chat_state_timeout);
  30843. delete this.chat_state_timeout;
  30844. }
  30845. if (state === _converse.COMPOSING) {
  30846. this.chat_state_timeout = window.setTimeout(this.setChatState.bind(this), _converse.TIMEOUTS.PAUSED, _converse.PAUSED);
  30847. } else if (state === _converse.PAUSED) {
  30848. this.chat_state_timeout = window.setTimeout(this.setChatState.bind(this), _converse.TIMEOUTS.INACTIVE, _converse.INACTIVE);
  30849. }
  30850. this.model.set('chat_state', state, options);
  30851. return this;
  30852. },
  30853. onFormSubmitted: function onFormSubmitted(ev) {
  30854. ev.preventDefault();
  30855. var textarea = this.el.querySelector('.chat-textarea'),
  30856. message = textarea.value;
  30857. if (!message.replace(/\s/g, '').length) {
  30858. return;
  30859. }
  30860. var spoiler_hint;
  30861. if (this.model.get('composing_spoiler')) {
  30862. var hint_el = this.el.querySelector('form.sendXMPPMessage input.spoiler-hint');
  30863. spoiler_hint = hint_el.value;
  30864. hint_el.value = '';
  30865. }
  30866. textarea.value = '';
  30867. u.removeClass('correcting', textarea);
  30868. textarea.focus(); // Trigger input event, so that the textarea resizes
  30869. var event = document.createEvent('Event');
  30870. event.initEvent('input', true, true);
  30871. textarea.dispatchEvent(event);
  30872. this.onMessageSubmitted(message, spoiler_hint);
  30873. _converse.emit('messageSend', message); // Suppress events, otherwise superfluous CSN gets set
  30874. // immediately after the message, causing rate-limiting issues.
  30875. this.setChatState(_converse.ACTIVE, {
  30876. 'silent': true
  30877. });
  30878. },
  30879. keyPressed: function keyPressed(ev) {
  30880. /* Event handler for when a key is pressed in a chat box textarea.
  30881. */
  30882. if (ev.ctrlKey) {
  30883. // When ctrl is pressed, no chars are entered into the textarea.
  30884. return;
  30885. }
  30886. if (!ev.shiftKey && !ev.altKey) {
  30887. if (ev.keyCode === _converse.keycodes.FORWARD_SLASH) {
  30888. // Forward slash is used to run commands. Nothing to do here.
  30889. return;
  30890. } else if (ev.keyCode === _converse.keycodes.ESCAPE) {
  30891. return this.onEscapePressed(ev);
  30892. } else if (ev.keyCode === _converse.keycodes.ENTER) {
  30893. if (this.emoji_dropdown && u.isVisible(this.emoji_dropdown.el.querySelector('.emoji-picker'))) {
  30894. this.emoji_dropdown.toggle();
  30895. }
  30896. return this.onFormSubmitted(ev);
  30897. } else if (ev.keyCode === _converse.keycodes.UP_ARROW && !ev.target.selectionEnd) {
  30898. return this.editEarlierMessage();
  30899. } else if (ev.keyCode === _converse.keycodes.DOWN_ARROW && ev.target.selectionEnd === ev.target.value.length) {
  30900. return this.editLaterMessage();
  30901. }
  30902. }
  30903. if (_.includes([_converse.keycodes.SHIFT, _converse.keycodes.META, _converse.keycodes.META_RIGHT, _converse.keycodes.ESCAPE, _converse.keycodes.ALT], ev.keyCode)) {
  30904. return;
  30905. }
  30906. if (this.model.get('chat_state') !== _converse.COMPOSING) {
  30907. // Set chat state to composing if keyCode is not a forward-slash
  30908. // (which would imply an internal command and not a message).
  30909. this.setChatState(_converse.COMPOSING);
  30910. }
  30911. },
  30912. getOwnMessages: function getOwnMessages() {
  30913. return f(this.model.messages.filter({
  30914. 'sender': 'me'
  30915. }));
  30916. },
  30917. onEscapePressed: function onEscapePressed(ev) {
  30918. ev.preventDefault();
  30919. var idx = this.model.messages.findLastIndex('correcting'),
  30920. message = idx >= 0 ? this.model.messages.at(idx) : null;
  30921. if (message) {
  30922. message.save('correcting', false);
  30923. }
  30924. this.insertIntoTextArea('', true, false);
  30925. },
  30926. onMessageEditButtonClicked: function onMessageEditButtonClicked(ev) {
  30927. ev.preventDefault();
  30928. var idx = this.model.messages.findLastIndex('correcting'),
  30929. currently_correcting = idx >= 0 ? this.model.messages.at(idx) : null,
  30930. message_el = u.ancestor(ev.target, '.chat-msg'),
  30931. message = this.model.messages.findWhere({
  30932. 'msgid': message_el.getAttribute('data-msgid')
  30933. });
  30934. if (currently_correcting !== message) {
  30935. if (!_.isNil(currently_correcting)) {
  30936. currently_correcting.save('correcting', false);
  30937. }
  30938. message.save('correcting', true);
  30939. this.insertIntoTextArea(u.prefixMentions(message), true, true);
  30940. } else {
  30941. message.save('correcting', false);
  30942. this.insertIntoTextArea('', true, false);
  30943. }
  30944. },
  30945. editLaterMessage: function editLaterMessage() {
  30946. var message;
  30947. var idx = this.model.messages.findLastIndex('correcting');
  30948. if (idx >= 0) {
  30949. this.model.messages.at(idx).save('correcting', false);
  30950. while (idx < this.model.messages.length - 1) {
  30951. idx += 1;
  30952. var candidate = this.model.messages.at(idx);
  30953. if (candidate.get('sender') === 'me' && candidate.get('message')) {
  30954. message = candidate;
  30955. break;
  30956. }
  30957. }
  30958. }
  30959. if (message) {
  30960. this.insertIntoTextArea(message.get('message'), true, true);
  30961. message.save('correcting', true);
  30962. } else {
  30963. this.insertIntoTextArea('', true, false);
  30964. }
  30965. },
  30966. editEarlierMessage: function editEarlierMessage() {
  30967. var message;
  30968. var idx = this.model.messages.findLastIndex('correcting');
  30969. if (idx >= 0) {
  30970. this.model.messages.at(idx).save('correcting', false);
  30971. while (idx > 0) {
  30972. idx -= 1;
  30973. var candidate = this.model.messages.at(idx);
  30974. if (candidate.get('sender') === 'me' && candidate.get('message')) {
  30975. message = candidate;
  30976. break;
  30977. }
  30978. }
  30979. }
  30980. message = message || this.getOwnMessages().findLast(function (msg) {
  30981. return msg.get('message');
  30982. });
  30983. if (message) {
  30984. this.insertIntoTextArea(message.get('message'), true, true);
  30985. message.save('correcting', true);
  30986. }
  30987. },
  30988. inputChanged: function inputChanged(ev) {
  30989. ev.target.style.height = 'auto'; // Fixes weirdness
  30990. ev.target.style.height = ev.target.scrollHeight + 'px';
  30991. },
  30992. clearMessages: function clearMessages(ev) {
  30993. if (ev && ev.preventDefault) {
  30994. ev.preventDefault();
  30995. }
  30996. var result = confirm(__("Are you sure you want to clear the messages from this conversation?"));
  30997. if (result === true) {
  30998. this.content.innerHTML = '';
  30999. this.model.messages.reset();
  31000. this.model.messages.browserStorage._clear();
  31001. }
  31002. return this;
  31003. },
  31004. insertIntoTextArea: function insertIntoTextArea(value) {
  31005. var replace = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  31006. var correcting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  31007. var textarea = this.el.querySelector('.chat-textarea');
  31008. if (correcting) {
  31009. u.addClass('correcting', textarea);
  31010. } else {
  31011. u.removeClass('correcting', textarea);
  31012. }
  31013. if (replace) {
  31014. textarea.value = '';
  31015. textarea.value = value;
  31016. } else {
  31017. var existing = textarea.value;
  31018. if (existing && existing[existing.length - 1] !== ' ') {
  31019. existing = existing + ' ';
  31020. }
  31021. textarea.value = '';
  31022. textarea.value = existing + value + ' ';
  31023. }
  31024. u.putCurserAtEnd(textarea);
  31025. },
  31026. createEmojiPicker: function createEmojiPicker() {
  31027. if (_.isUndefined(_converse.emojipicker)) {
  31028. var storage = _converse.config.get('storage'),
  31029. id = "converse.emoji-".concat(_converse.bare_jid);
  31030. _converse.emojipicker = new _converse.EmojiPicker({
  31031. 'id': id
  31032. });
  31033. _converse.emojipicker.browserStorage = new Backbone.BrowserStorage[storage](id);
  31034. _converse.emojipicker.fetch();
  31035. }
  31036. this.emoji_picker_view = new _converse.EmojiPickerView({
  31037. 'model': _converse.emojipicker
  31038. });
  31039. },
  31040. insertEmoji: function insertEmoji(ev) {
  31041. ev.preventDefault();
  31042. ev.stopPropagation();
  31043. var target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  31044. this.insertIntoTextArea(target.getAttribute('data-emoji'));
  31045. },
  31046. toggleEmojiMenu: function toggleEmojiMenu(ev) {
  31047. if (_.isUndefined(this.emoji_dropdown)) {
  31048. ev.stopPropagation();
  31049. this.createEmojiPicker();
  31050. this.insertEmojiPicker();
  31051. this.renderEmojiPicker();
  31052. var dropdown_el = this.el.querySelector('.toggle-smiley.dropup');
  31053. this.emoji_dropdown = new bootstrap.Dropdown(dropdown_el, true);
  31054. this.emoji_dropdown.el = dropdown_el;
  31055. this.emoji_dropdown.toggle();
  31056. }
  31057. },
  31058. toggleCall: function toggleCall(ev) {
  31059. ev.stopPropagation();
  31060. _converse.emit('callButtonClicked', {
  31061. connection: _converse.connection,
  31062. model: this.model
  31063. });
  31064. },
  31065. toggleComposeSpoilerMessage: function toggleComposeSpoilerMessage() {
  31066. this.model.set('composing_spoiler', !this.model.get('composing_spoiler'));
  31067. this.renderMessageForm();
  31068. this.focus();
  31069. },
  31070. toggleSpoilerMessage: function toggleSpoilerMessage(ev) {
  31071. if (ev && ev.preventDefault) {
  31072. ev.preventDefault();
  31073. }
  31074. var toggle_el = ev.target,
  31075. icon_el = toggle_el.firstElementChild;
  31076. u.slideToggleElement(toggle_el.parentElement.parentElement.querySelector('.spoiler'));
  31077. if (toggle_el.getAttribute("data-toggle-state") == "closed") {
  31078. toggle_el.textContent = 'Show less';
  31079. icon_el.classList.remove("fa-eye");
  31080. icon_el.classList.add("fa-eye-slash");
  31081. toggle_el.insertAdjacentElement('afterBegin', icon_el);
  31082. toggle_el.setAttribute("data-toggle-state", "open");
  31083. } else {
  31084. toggle_el.textContent = 'Show more';
  31085. icon_el.classList.remove("fa-eye-slash");
  31086. icon_el.classList.add("fa-eye");
  31087. toggle_el.insertAdjacentElement('afterBegin', icon_el);
  31088. toggle_el.setAttribute("data-toggle-state", "closed");
  31089. }
  31090. },
  31091. onPresenceChanged: function onPresenceChanged(item) {
  31092. var show = item.get('show'),
  31093. fullname = this.model.getDisplayName();
  31094. var text;
  31095. if (u.isVisible(this.el)) {
  31096. if (show === 'offline') {
  31097. text = __('%1$s has gone offline', fullname);
  31098. } else if (show === 'away') {
  31099. text = __('%1$s has gone away', fullname);
  31100. } else if (show === 'dnd') {
  31101. text = __('%1$s is busy', fullname);
  31102. } else if (show === 'online') {
  31103. text = __('%1$s is online', fullname);
  31104. }
  31105. if (text) {
  31106. this.content.insertAdjacentHTML('beforeend', tpl_status_message({
  31107. 'message': text,
  31108. 'isodate': moment().format()
  31109. }));
  31110. this.scrollDown();
  31111. }
  31112. }
  31113. },
  31114. close: function close(ev) {
  31115. if (ev && ev.preventDefault) {
  31116. ev.preventDefault();
  31117. }
  31118. if (Backbone.history.getFragment() === "converse/chat?jid=" + this.model.get('jid')) {
  31119. _converse.router.navigate('');
  31120. }
  31121. if (_converse.connection.connected) {
  31122. // Immediately sending the chat state, because the
  31123. // model is going to be destroyed afterwards.
  31124. this.setChatState(_converse.INACTIVE);
  31125. this.model.sendChatState();
  31126. }
  31127. try {
  31128. this.model.destroy();
  31129. } catch (e) {
  31130. _converse.log(e, Strophe.LogLevel.ERROR);
  31131. }
  31132. this.remove();
  31133. _converse.emit('chatBoxClosed', this);
  31134. return this;
  31135. },
  31136. renderEmojiPicker: function renderEmojiPicker() {
  31137. this.emoji_picker_view.render();
  31138. },
  31139. insertEmojiPicker: function insertEmojiPicker() {
  31140. var picker_el = this.el.querySelector('.emoji-picker');
  31141. if (!_.isNull(picker_el)) {
  31142. picker_el.innerHTML = '';
  31143. picker_el.appendChild(this.emoji_picker_view.el);
  31144. }
  31145. },
  31146. focus: function focus() {
  31147. var textarea_el = this.el.querySelector('.chat-textarea');
  31148. if (!_.isNull(textarea_el)) {
  31149. textarea_el.focus();
  31150. _converse.emit('chatBoxFocused', this);
  31151. }
  31152. return this;
  31153. },
  31154. hide: function hide() {
  31155. this.el.classList.add('hidden');
  31156. return this;
  31157. },
  31158. afterShown: function afterShown() {
  31159. this.model.clearUnreadMsgCounter();
  31160. this.setChatState(_converse.ACTIVE);
  31161. this.scrollDown();
  31162. this.focus();
  31163. },
  31164. _show: function _show(f) {
  31165. /* Inner show method that gets debounced */
  31166. if (u.isVisible(this.el)) {
  31167. this.focus();
  31168. return;
  31169. }
  31170. u.fadeIn(this.el, _.bind(this.afterShown, this));
  31171. },
  31172. showNewMessagesIndicator: function showNewMessagesIndicator() {
  31173. u.showElement(this.el.querySelector('.new-msgs-indicator'));
  31174. },
  31175. hideNewMessagesIndicator: function hideNewMessagesIndicator() {
  31176. var new_msgs_indicator = this.el.querySelector('.new-msgs-indicator');
  31177. if (!_.isNull(new_msgs_indicator)) {
  31178. new_msgs_indicator.classList.add('hidden');
  31179. }
  31180. },
  31181. _markScrolled: function _markScrolled(ev) {
  31182. /* Called when the chat content is scrolled up or down.
  31183. * We want to record when the user has scrolled away from
  31184. * the bottom, so that we don't automatically scroll away
  31185. * from what the user is reading when new messages are
  31186. * received.
  31187. */
  31188. if (ev && ev.preventDefault) {
  31189. ev.preventDefault();
  31190. }
  31191. var scrolled = true;
  31192. var is_at_bottom = this.content.scrollTop + this.content.clientHeight >= this.content.scrollHeight - 62; // sigh...
  31193. if (is_at_bottom) {
  31194. scrolled = false;
  31195. this.onScrolledDown();
  31196. }
  31197. u.safeSave(this.model, {
  31198. 'scrolled': scrolled,
  31199. 'top_visible_message': null
  31200. });
  31201. },
  31202. viewUnreadMessages: function viewUnreadMessages() {
  31203. this.model.save({
  31204. 'scrolled': false,
  31205. 'top_visible_message': null
  31206. });
  31207. this.scrollDown();
  31208. },
  31209. _scrollDown: function _scrollDown() {
  31210. /* Inner method that gets debounced */
  31211. if (_.isUndefined(this.content)) {
  31212. return;
  31213. }
  31214. if (u.isVisible(this.content) && !this.model.get('scrolled')) {
  31215. this.content.scrollTop = this.content.scrollHeight;
  31216. }
  31217. },
  31218. onScrolledDown: function onScrolledDown() {
  31219. this.hideNewMessagesIndicator();
  31220. if (_converse.windowState !== 'hidden') {
  31221. this.model.clearUnreadMsgCounter();
  31222. }
  31223. _converse.emit('chatBoxScrolledDown', {
  31224. 'chatbox': this.model
  31225. });
  31226. },
  31227. onWindowStateChanged: function onWindowStateChanged(state) {
  31228. if (this.model.get('num_unread', 0) && !this.model.isHidden()) {
  31229. this.model.clearUnreadMsgCounter();
  31230. }
  31231. }
  31232. });
  31233. _converse.on('chatBoxViewsInitialized', function () {
  31234. var that = _converse.chatboxviews;
  31235. _converse.chatboxes.on('add', function (item) {
  31236. if (!that.get(item.get('id')) && item.get('type') === _converse.PRIVATE_CHAT_TYPE) {
  31237. that.add(item.get('id'), new _converse.ChatBoxView({
  31238. model: item
  31239. }));
  31240. }
  31241. });
  31242. });
  31243. _converse.on('connected', function () {
  31244. // Advertise that we support XEP-0382 Message Spoilers
  31245. _converse.api.disco.own.features.add(Strophe.NS.SPOILER);
  31246. });
  31247. /************************ BEGIN API ************************/
  31248. _.extend(_converse.api, {
  31249. /**
  31250. * The "chatview" namespace groups methods pertaining to views
  31251. * for one-on-one chats.
  31252. *
  31253. * @namespace _converse.api.chatviews
  31254. * @memberOf _converse.api
  31255. */
  31256. 'chatviews': {
  31257. /**
  31258. * Get the view of an already open chat.
  31259. *
  31260. * @method _converse.api.chatviews.get
  31261. * @returns {ChatBoxView} A [Backbone.View](http://backbonejs.org/#View) instance.
  31262. * The chat should already be open, otherwise `undefined` will be returned.
  31263. *
  31264. * @example
  31265. * // To return a single view, provide the JID of the contact:
  31266. * _converse.api.chatviews.get('buddy@example.com')
  31267. *
  31268. * @example
  31269. * // To return an array of views, provide an array of JIDs:
  31270. * _converse.api.chatviews.get(['buddy1@example.com', 'buddy2@example.com'])
  31271. */
  31272. 'get': function get(jids) {
  31273. if (_.isUndefined(jids)) {
  31274. _converse.log("chats.create: You need to provide at least one JID", Strophe.LogLevel.ERROR);
  31275. return null;
  31276. }
  31277. if (_.isString(jids)) {
  31278. return _converse.chatboxviews.get(jids);
  31279. }
  31280. return _.map(jids, function (jid) {
  31281. return _converse.chatboxviews.get(jids);
  31282. });
  31283. }
  31284. }
  31285. });
  31286. /************************ END API ************************/
  31287. }
  31288. });
  31289. return converse;
  31290. });
  31291. /***/ }),
  31292. /***/ "./src/converse-controlbox.js":
  31293. /*!************************************!*\
  31294. !*** ./src/converse-controlbox.js ***!
  31295. \************************************/
  31296. /*! no static exports found */
  31297. /***/ (function(module, exports, __webpack_require__) {
  31298. "use strict";
  31299. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  31300. // Converse.js (A browser based XMPP chat client)
  31301. // http://conversejs.org
  31302. //
  31303. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  31304. // Licensed under the Mozilla Public License (MPLv2)
  31305. //
  31306. /*global define */
  31307. (function (root, factory) {
  31308. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! formdata-polyfill */ "./node_modules/formdata-polyfill/FormData.js"), __webpack_require__(/*! lodash.fp */ "./src/lodash.fp.js"), __webpack_require__(/*! templates/converse_brand_heading.html */ "./src/templates/converse_brand_heading.html"), __webpack_require__(/*! templates/controlbox.html */ "./src/templates/controlbox.html"), __webpack_require__(/*! templates/controlbox_toggle.html */ "./src/templates/controlbox_toggle.html"), __webpack_require__(/*! templates/login_panel.html */ "./src/templates/login_panel.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), __webpack_require__(/*! converse-rosterview */ "./src/converse-rosterview.js"), __webpack_require__(/*! converse-profile */ "./src/converse-profile.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  31309. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  31310. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  31311. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31312. })(void 0, function (converse, bootstrap, _FormData, fp, tpl_brand_heading, tpl_controlbox, tpl_controlbox_toggle, tpl_login_panel) {
  31313. "use strict";
  31314. var CHATBOX_TYPE = 'chatbox';
  31315. var _converse$env = converse.env,
  31316. Strophe = _converse$env.Strophe,
  31317. Backbone = _converse$env.Backbone,
  31318. Promise = _converse$env.Promise,
  31319. _ = _converse$env._,
  31320. moment = _converse$env.moment;
  31321. var u = converse.env.utils;
  31322. var CONNECTION_STATUS_CSS_CLASS = {
  31323. 'Error': 'error',
  31324. 'Connecting': 'info',
  31325. 'Connection failure': 'error',
  31326. 'Authenticating': 'info',
  31327. 'Authentication failure': 'error',
  31328. 'Connected': 'info',
  31329. 'Disconnected': 'error',
  31330. 'Disconnecting': 'warn',
  31331. 'Attached': 'info',
  31332. 'Redirect': 'info',
  31333. 'Reconnecting': 'warn'
  31334. };
  31335. var PRETTY_CONNECTION_STATUS = {
  31336. 0: 'Error',
  31337. 1: 'Connecting',
  31338. 2: 'Connection failure',
  31339. 3: 'Authenticating',
  31340. 4: 'Authentication failure',
  31341. 5: 'Connected',
  31342. 6: 'Disconnected',
  31343. 7: 'Disconnecting',
  31344. 8: 'Attached',
  31345. 9: 'Redirect',
  31346. 10: 'Reconnecting'
  31347. };
  31348. var REPORTABLE_STATUSES = [0, // ERROR'
  31349. 1, // CONNECTING
  31350. 2, // CONNFAIL
  31351. 3, // AUTHENTICATING
  31352. 4, // AUTHFAIL
  31353. 7, // DISCONNECTING
  31354. 10 // RECONNECTING
  31355. ];
  31356. converse.plugins.add('converse-controlbox', {
  31357. /* Plugin dependencies are other plugins which might be
  31358. * overridden or relied upon, and therefore need to be loaded before
  31359. * this plugin.
  31360. *
  31361. * If the setting "strict_plugin_dependencies" is set to true,
  31362. * an error will be raised if the plugin is not found. By default it's
  31363. * false, which means these plugins are only loaded opportunistically.
  31364. *
  31365. * NB: These plugins need to have already been loaded via require.js.
  31366. */
  31367. dependencies: ["converse-modal", "converse-chatboxes", "converse-rosterview", "converse-chatview"],
  31368. overrides: {
  31369. // Overrides mentioned here will be picked up by converse.js's
  31370. // plugin architecture they will replace existing methods on the
  31371. // relevant objects or classes.
  31372. //
  31373. // New functions which don't exist yet can also be added.
  31374. tearDown: function tearDown() {
  31375. this.__super__.tearDown.apply(this, arguments);
  31376. if (this.rosterview) {
  31377. // Removes roster groups
  31378. this.rosterview.model.off().reset();
  31379. this.rosterview.each(function (groupview) {
  31380. groupview.removeAll();
  31381. groupview.remove();
  31382. });
  31383. this.rosterview.removeAll().remove();
  31384. }
  31385. },
  31386. ChatBoxes: {
  31387. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  31388. return this.__super__.chatBoxMayBeShown.apply(this, arguments) && chatbox.get('id') !== 'controlbox';
  31389. }
  31390. },
  31391. ChatBoxViews: {
  31392. closeAllChatBoxes: function closeAllChatBoxes() {
  31393. var _converse = this.__super__._converse;
  31394. this.each(function (view) {
  31395. if (view.model.get('id') === 'controlbox' && (_converse.disconnection_cause !== _converse.LOGOUT || _converse.show_controlbox_by_default)) {
  31396. return;
  31397. }
  31398. view.close();
  31399. });
  31400. return this;
  31401. },
  31402. getChatBoxWidth: function getChatBoxWidth(view) {
  31403. var _converse = this.__super__._converse;
  31404. var controlbox = this.get('controlbox');
  31405. if (view.model.get('id') === 'controlbox') {
  31406. /* We return the width of the controlbox or its toggle,
  31407. * depending on which is visible.
  31408. */
  31409. if (!controlbox || !u.isVisible(controlbox.el)) {
  31410. return u.getOuterWidth(_converse.controlboxtoggle.el, true);
  31411. } else {
  31412. return u.getOuterWidth(controlbox.el, true);
  31413. }
  31414. } else {
  31415. return this.__super__.getChatBoxWidth.apply(this, arguments);
  31416. }
  31417. }
  31418. },
  31419. ChatBox: {
  31420. initialize: function initialize() {
  31421. if (this.get('id') === 'controlbox') {
  31422. this.set({
  31423. 'time_opened': moment(0).valueOf()
  31424. });
  31425. } else {
  31426. this.__super__.initialize.apply(this, arguments);
  31427. }
  31428. }
  31429. },
  31430. ChatBoxView: {
  31431. insertIntoDOM: function insertIntoDOM() {
  31432. var view = this.__super__._converse.chatboxviews.get("controlbox");
  31433. if (view) {
  31434. view.el.insertAdjacentElement('afterend', this.el);
  31435. } else {
  31436. this.__super__.insertIntoDOM.apply(this, arguments);
  31437. }
  31438. return this;
  31439. }
  31440. }
  31441. },
  31442. initialize: function initialize() {
  31443. /* The initialize function gets called as soon as the plugin is
  31444. * loaded by converse.js's plugin machinery.
  31445. */
  31446. var _converse = this._converse,
  31447. __ = _converse.__;
  31448. _converse.api.settings.update({
  31449. allow_logout: true,
  31450. default_domain: undefined,
  31451. locked_domain: undefined,
  31452. show_controlbox_by_default: false,
  31453. sticky_controlbox: false
  31454. });
  31455. _converse.api.promises.add('controlboxInitialized');
  31456. _converse.addControlBox = function () {
  31457. return _converse.chatboxes.add({
  31458. 'id': 'controlbox',
  31459. 'box_id': 'controlbox',
  31460. 'type': _converse.CONTROLBOX_TYPE,
  31461. 'closed': !_converse.show_controlbox_by_default
  31462. });
  31463. };
  31464. _converse.ControlBoxView = _converse.ChatBoxView.extend({
  31465. tagName: 'div',
  31466. className: 'chatbox',
  31467. id: 'controlbox',
  31468. events: {
  31469. 'click a.close-chatbox-button': 'close'
  31470. },
  31471. initialize: function initialize() {
  31472. if (_.isUndefined(_converse.controlboxtoggle)) {
  31473. _converse.controlboxtoggle = new _converse.ControlBoxToggle();
  31474. }
  31475. _converse.controlboxtoggle.el.insertAdjacentElement('afterend', this.el);
  31476. this.model.on('change:connected', this.onConnected, this);
  31477. this.model.on('destroy', this.hide, this);
  31478. this.model.on('hide', this.hide, this);
  31479. this.model.on('show', this.show, this);
  31480. this.model.on('change:closed', this.ensureClosedState, this);
  31481. this.render();
  31482. if (this.model.get('connected')) {
  31483. this.insertRoster();
  31484. }
  31485. _converse.emit('controlboxInitialized', this);
  31486. },
  31487. render: function render() {
  31488. if (this.model.get('connected')) {
  31489. if (_.isUndefined(this.model.get('closed'))) {
  31490. this.model.set('closed', !_converse.show_controlbox_by_default);
  31491. }
  31492. }
  31493. this.el.innerHTML = tpl_controlbox(_.extend(this.model.toJSON()));
  31494. if (!this.model.get('closed')) {
  31495. this.show();
  31496. } else {
  31497. this.hide();
  31498. }
  31499. if (!_converse.connection.connected || !_converse.connection.authenticated || _converse.connection.disconnecting) {
  31500. this.renderLoginPanel();
  31501. } else if (this.model.get('connected') && (!this.controlbox_pane || !u.isVisible(this.controlbox_pane.el))) {
  31502. this.renderControlBoxPane();
  31503. }
  31504. return this;
  31505. },
  31506. onConnected: function onConnected() {
  31507. if (this.model.get('connected')) {
  31508. this.render();
  31509. this.insertRoster();
  31510. }
  31511. },
  31512. insertRoster: function insertRoster() {
  31513. var _this = this;
  31514. if (_converse.authentication === _converse.ANONYMOUS) {
  31515. return;
  31516. }
  31517. /* Place the rosterview inside the "Contacts" panel. */
  31518. _converse.api.waitUntil('rosterViewInitialized').then(function () {
  31519. return _this.controlbox_pane.el.insertAdjacentElement('beforeEnd', _converse.rosterview.el);
  31520. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  31521. },
  31522. createBrandHeadingHTML: function createBrandHeadingHTML() {
  31523. return tpl_brand_heading({
  31524. 'sticky_controlbox': _converse.sticky_controlbox
  31525. });
  31526. },
  31527. insertBrandHeading: function insertBrandHeading() {
  31528. var heading_el = this.el.querySelector('.brand-heading-container');
  31529. if (_.isNull(heading_el)) {
  31530. var el = this.el.querySelector('.controlbox-head');
  31531. el.insertAdjacentHTML('beforeend', this.createBrandHeadingHTML());
  31532. } else {
  31533. heading_el.outerHTML = this.createBrandHeadingHTML();
  31534. }
  31535. },
  31536. renderLoginPanel: function renderLoginPanel() {
  31537. this.el.classList.add("logged-out");
  31538. if (_.isNil(this.loginpanel)) {
  31539. this.loginpanel = new _converse.LoginPanel({
  31540. 'model': new _converse.LoginPanelModel()
  31541. });
  31542. var panes = this.el.querySelector('.controlbox-panes');
  31543. panes.innerHTML = '';
  31544. panes.appendChild(this.loginpanel.render().el);
  31545. this.insertBrandHeading();
  31546. } else {
  31547. this.loginpanel.render();
  31548. }
  31549. this.loginpanel.initPopovers();
  31550. return this;
  31551. },
  31552. renderControlBoxPane: function renderControlBoxPane() {
  31553. /* Renders the "Contacts" panel of the controlbox.
  31554. *
  31555. * This will only be called after the user has already been
  31556. * logged in.
  31557. */
  31558. if (this.loginpanel) {
  31559. this.loginpanel.remove();
  31560. delete this.loginpanel;
  31561. }
  31562. this.el.classList.remove("logged-out");
  31563. this.controlbox_pane = new _converse.ControlBoxPane();
  31564. this.el.querySelector('.controlbox-panes').insertAdjacentElement('afterBegin', this.controlbox_pane.el);
  31565. },
  31566. close: function close(ev) {
  31567. if (ev && ev.preventDefault) {
  31568. ev.preventDefault();
  31569. }
  31570. if (_converse.sticky_controlbox) {
  31571. return;
  31572. }
  31573. if (_converse.connection.connected && !_converse.connection.disconnecting) {
  31574. this.model.save({
  31575. 'closed': true
  31576. });
  31577. } else {
  31578. this.model.trigger('hide');
  31579. }
  31580. _converse.emit('controlBoxClosed', this);
  31581. return this;
  31582. },
  31583. ensureClosedState: function ensureClosedState() {
  31584. if (this.model.get('closed')) {
  31585. this.hide();
  31586. } else {
  31587. this.show();
  31588. }
  31589. },
  31590. hide: function hide(callback) {
  31591. if (_converse.sticky_controlbox) {
  31592. return;
  31593. }
  31594. u.addClass('hidden', this.el);
  31595. _converse.emit('chatBoxClosed', this);
  31596. if (!_converse.connection.connected) {
  31597. _converse.controlboxtoggle.render();
  31598. }
  31599. _converse.controlboxtoggle.show(callback);
  31600. return this;
  31601. },
  31602. onControlBoxToggleHidden: function onControlBoxToggleHidden() {
  31603. this.model.set('closed', false);
  31604. this.el.classList.remove('hidden');
  31605. _converse.emit('controlBoxOpened', this);
  31606. },
  31607. show: function show() {
  31608. _converse.controlboxtoggle.hide(this.onControlBoxToggleHidden.bind(this));
  31609. return this;
  31610. },
  31611. showHelpMessages: function showHelpMessages() {
  31612. /* Override showHelpMessages in ChatBoxView, for now do nothing.
  31613. *
  31614. * Parameters:
  31615. * (Array) msgs: Array of messages
  31616. */
  31617. return;
  31618. }
  31619. });
  31620. _converse.LoginPanelModel = Backbone.Model.extend({
  31621. defaults: {
  31622. // Passed-by-reference. Fine in this case because there's
  31623. // only one such model.
  31624. 'errors': []
  31625. }
  31626. });
  31627. _converse.LoginPanel = Backbone.VDOMView.extend({
  31628. tagName: 'div',
  31629. id: "converse-login-panel",
  31630. className: 'controlbox-pane fade-in',
  31631. events: {
  31632. 'submit form#converse-login': 'authenticate',
  31633. 'change input': 'validate'
  31634. },
  31635. initialize: function initialize(cfg) {
  31636. this.model.on('change', this.render, this);
  31637. this.listenTo(_converse.connfeedback, 'change', this.render);
  31638. this.render();
  31639. },
  31640. toHTML: function toHTML() {
  31641. var connection_status = _converse.connfeedback.get('connection_status');
  31642. var feedback_class, pretty_status;
  31643. if (_.includes(REPORTABLE_STATUSES, connection_status)) {
  31644. pretty_status = PRETTY_CONNECTION_STATUS[connection_status];
  31645. feedback_class = CONNECTION_STATUS_CSS_CLASS[pretty_status];
  31646. }
  31647. return tpl_login_panel(_.extend(this.model.toJSON(), {
  31648. '__': __,
  31649. '_converse': _converse,
  31650. 'ANONYMOUS': _converse.ANONYMOUS,
  31651. 'EXTERNAL': _converse.EXTERNAL,
  31652. 'LOGIN': _converse.LOGIN,
  31653. 'PREBIND': _converse.PREBIND,
  31654. 'auto_login': _converse.auto_login,
  31655. 'authentication': _converse.authentication,
  31656. 'connection_status': connection_status,
  31657. 'conn_feedback_class': feedback_class,
  31658. 'conn_feedback_subject': pretty_status,
  31659. 'conn_feedback_message': _converse.connfeedback.get('message'),
  31660. 'placeholder_username': (_converse.locked_domain || _converse.default_domain) && __('Username') || __('user@domain')
  31661. }));
  31662. },
  31663. initPopovers: function initPopovers() {
  31664. var _this2 = this;
  31665. _.forEach(this.el.querySelectorAll('[data-title]'), function (el) {
  31666. var popover = new bootstrap.Popover(el, {
  31667. 'trigger': _converse.view_mode === 'mobile' && 'click' || 'hover',
  31668. 'dismissible': _converse.view_mode === 'mobile' && true || false,
  31669. 'container': _this2.el.parentElement.parentElement.parentElement
  31670. });
  31671. });
  31672. },
  31673. validate: function validate() {
  31674. var form = this.el.querySelector('form');
  31675. var jid_element = form.querySelector('input[name=jid]');
  31676. if (jid_element.value && !_converse.locked_domain && !_converse.default_domain && !u.isValidJID(jid_element.value)) {
  31677. jid_element.setCustomValidity(__('Please enter a valid XMPP address'));
  31678. return false;
  31679. }
  31680. jid_element.setCustomValidity('');
  31681. return true;
  31682. },
  31683. authenticate: function authenticate(ev) {
  31684. /* Authenticate the user based on a form submission event.
  31685. */
  31686. if (ev && ev.preventDefault) {
  31687. ev.preventDefault();
  31688. }
  31689. if (_converse.authentication === _converse.ANONYMOUS) {
  31690. this.connect(_converse.jid, null);
  31691. return;
  31692. }
  31693. if (!this.validate()) {
  31694. return;
  31695. }
  31696. var form_data = new FormData(ev.target);
  31697. _converse.config.save({
  31698. 'trusted': form_data.get('trusted') && true || false,
  31699. 'storage': form_data.get('trusted') ? 'local' : 'session'
  31700. });
  31701. var jid = form_data.get('jid');
  31702. if (_converse.locked_domain) {
  31703. var last_part = '@' + _converse.locked_domain;
  31704. if (jid.endsWith(last_part)) {
  31705. jid = jid.substr(0, jid.length - last_part.length);
  31706. }
  31707. jid = Strophe.escapeNode(jid) + last_part;
  31708. } else if (_converse.default_domain && !_.includes(jid, '@')) {
  31709. jid = jid + '@' + _converse.default_domain;
  31710. }
  31711. this.connect(jid, form_data.get('password'));
  31712. },
  31713. connect: function connect(jid, password) {
  31714. if (jid) {
  31715. var resource = Strophe.getResourceFromJid(jid);
  31716. if (!resource) {
  31717. jid = jid.toLowerCase() + _converse.generateResource();
  31718. } else {
  31719. jid = Strophe.getBareJidFromJid(jid).toLowerCase() + '/' + resource;
  31720. }
  31721. }
  31722. if (_.includes(["converse/login", "converse/register"], Backbone.history.getFragment())) {
  31723. _converse.router.navigate('', {
  31724. 'replace': true
  31725. });
  31726. }
  31727. _converse.connection.reset();
  31728. _converse.connection.connect(jid, password, _converse.onConnectStatusChanged);
  31729. }
  31730. });
  31731. _converse.ControlBoxPane = Backbone.NativeView.extend({
  31732. tagName: 'div',
  31733. className: 'controlbox-pane',
  31734. initialize: function initialize() {
  31735. _converse.xmppstatusview = new _converse.XMPPStatusView({
  31736. 'model': _converse.xmppstatus
  31737. });
  31738. this.el.insertAdjacentElement('afterBegin', _converse.xmppstatusview.render().el);
  31739. }
  31740. });
  31741. _converse.ControlBoxToggle = Backbone.NativeView.extend({
  31742. tagName: 'a',
  31743. className: 'toggle-controlbox hidden',
  31744. id: 'toggle-controlbox',
  31745. events: {
  31746. 'click': 'onClick'
  31747. },
  31748. attributes: {
  31749. 'href': "#"
  31750. },
  31751. initialize: function initialize() {
  31752. _converse.chatboxviews.insertRowColumn(this.render().el);
  31753. _converse.api.waitUntil('initialized').then(this.render.bind(this)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  31754. },
  31755. render: function render() {
  31756. // We let the render method of ControlBoxView decide whether
  31757. // the ControlBox or the Toggle must be shown. This prevents
  31758. // artifacts (i.e. on page load the toggle is shown only to then
  31759. // seconds later be hidden in favor of the control box).
  31760. this.el.innerHTML = tpl_controlbox_toggle({
  31761. 'label_toggle': _converse.connection.connected ? __('Chat Contacts') : __('Toggle chat')
  31762. });
  31763. return this;
  31764. },
  31765. hide: function hide(callback) {
  31766. u.hideElement(this.el);
  31767. callback();
  31768. },
  31769. show: function show(callback) {
  31770. u.fadeIn(this.el, callback);
  31771. },
  31772. showControlBox: function showControlBox() {
  31773. var controlbox = _converse.chatboxes.get('controlbox');
  31774. if (!controlbox) {
  31775. controlbox = _converse.addControlBox();
  31776. }
  31777. if (_converse.connection.connected) {
  31778. controlbox.save({
  31779. closed: false
  31780. });
  31781. } else {
  31782. controlbox.trigger('show');
  31783. }
  31784. },
  31785. onClick: function onClick(e) {
  31786. e.preventDefault();
  31787. if (u.isVisible(_converse.root.querySelector("#controlbox"))) {
  31788. var controlbox = _converse.chatboxes.get('controlbox');
  31789. if (_converse.connection.connected) {
  31790. controlbox.save({
  31791. closed: true
  31792. });
  31793. } else {
  31794. controlbox.trigger('hide');
  31795. }
  31796. } else {
  31797. this.showControlBox();
  31798. }
  31799. }
  31800. });
  31801. _converse.on('chatBoxViewsInitialized', function () {
  31802. var that = _converse.chatboxviews;
  31803. _converse.chatboxes.on('add', function (item) {
  31804. if (item.get('type') === _converse.CONTROLBOX_TYPE) {
  31805. var view = that.get(item.get('id'));
  31806. if (view) {
  31807. view.model = item;
  31808. view.initialize();
  31809. } else {
  31810. that.add(item.get('id'), new _converse.ControlBoxView({
  31811. model: item
  31812. }));
  31813. }
  31814. }
  31815. });
  31816. });
  31817. _converse.on('clearSession', function () {
  31818. if (_converse.config.get('trusted')) {
  31819. var chatboxes = _.get(_converse, 'chatboxes', null);
  31820. if (!_.isNil(chatboxes)) {
  31821. var controlbox = chatboxes.get('controlbox');
  31822. if (controlbox && controlbox.collection && controlbox.collection.browserStorage) {
  31823. controlbox.save({
  31824. 'connected': false
  31825. });
  31826. }
  31827. }
  31828. }
  31829. });
  31830. Promise.all([_converse.api.waitUntil('connectionInitialized'), _converse.api.waitUntil('chatBoxViewsInitialized')]).then(_converse.addControlBox).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  31831. _converse.on('chatBoxesFetched', function () {
  31832. var controlbox = _converse.chatboxes.get('controlbox') || _converse.addControlBox();
  31833. controlbox.save({
  31834. connected: true
  31835. });
  31836. });
  31837. var disconnect = function disconnect() {
  31838. /* Upon disconnection, set connected to `false`, so that if
  31839. * we reconnect, "onConnected" will be called,
  31840. * to fetch the roster again and to send out a presence stanza.
  31841. */
  31842. var view = _converse.chatboxviews.get('controlbox');
  31843. view.model.set({
  31844. 'connected': false
  31845. });
  31846. return view;
  31847. };
  31848. _converse.on('disconnected', function () {
  31849. return disconnect().renderLoginPanel();
  31850. });
  31851. _converse.on('will-reconnect', disconnect);
  31852. }
  31853. });
  31854. });
  31855. /***/ }),
  31856. /***/ "./src/converse-core.js":
  31857. /*!******************************!*\
  31858. !*** ./src/converse-core.js ***!
  31859. \******************************/
  31860. /*! no static exports found */
  31861. /***/ (function(module, exports, __webpack_require__) {
  31862. "use strict";
  31863. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  31864. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  31865. // Converse.js
  31866. // https://conversejs.org
  31867. //
  31868. // Copyright (c) 2013-2018, the Converse.js developers
  31869. // Licensed under the Mozilla Public License (MPLv2)
  31870. (function (root, factory) {
  31871. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! es6-promise */ "es6-promise"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! lodash.fp */ "./src/lodash.fp.js"), __webpack_require__(/*! polyfill */ "./src/polyfill.js"), __webpack_require__(/*! i18n */ "./src/i18n.js"), __webpack_require__(/*! utils/core */ "./src/utils/core.js"), __webpack_require__(/*! moment */ "moment"), __webpack_require__(/*! strophe */ "strophe"), __webpack_require__(/*! pluggable */ "./node_modules/pluggable.js/dist/pluggable.js"), __webpack_require__(/*! backbone.noconflict */ "./src/backbone.noconflict.js"), __webpack_require__(/*! backbone.nativeview */ "./node_modules/backbone.nativeview/backbone.nativeview.js"), __webpack_require__(/*! backbone.browserStorage */ "backbone.browserStorage")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  31872. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  31873. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  31874. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31875. })(void 0, function (sizzle, Promise, _, f, polyfill, i18n, u, moment, Strophe, pluggable, Backbone) {
  31876. "use strict"; // Strophe globals
  31877. var _Strophe = Strophe,
  31878. $build = _Strophe.$build,
  31879. $iq = _Strophe.$iq,
  31880. $msg = _Strophe.$msg,
  31881. $pres = _Strophe.$pres;
  31882. var b64_sha1 = Strophe.SHA1.b64_sha1;
  31883. Strophe = Strophe.Strophe; // Add Strophe Namespaces
  31884. Strophe.addNamespace('CARBONS', 'urn:xmpp:carbons:2');
  31885. Strophe.addNamespace('CHATSTATES', 'http://jabber.org/protocol/chatstates');
  31886. Strophe.addNamespace('CSI', 'urn:xmpp:csi:0');
  31887. Strophe.addNamespace('DELAY', 'urn:xmpp:delay');
  31888. Strophe.addNamespace('FORWARD', 'urn:xmpp:forward:0');
  31889. Strophe.addNamespace('HINTS', 'urn:xmpp:hints');
  31890. Strophe.addNamespace('HTTPUPLOAD', 'urn:xmpp:http:upload:0');
  31891. Strophe.addNamespace('MAM', 'urn:xmpp:mam:2');
  31892. Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick');
  31893. Strophe.addNamespace('OUTOFBAND', 'jabber:x:oob');
  31894. Strophe.addNamespace('PUBSUB', 'http://jabber.org/protocol/pubsub');
  31895. Strophe.addNamespace('REGISTER', 'jabber:iq:register');
  31896. Strophe.addNamespace('ROSTERX', 'http://jabber.org/protocol/rosterx');
  31897. Strophe.addNamespace('RSM', 'http://jabber.org/protocol/rsm');
  31898. Strophe.addNamespace('SID', 'urn:xmpp:sid:0');
  31899. Strophe.addNamespace('SPOILER', 'urn:xmpp:spoiler:0');
  31900. Strophe.addNamespace('VCARD', 'vcard-temp');
  31901. Strophe.addNamespace('VCARDUPDATE', 'vcard-temp:x:update');
  31902. Strophe.addNamespace('XFORM', 'jabber:x:data'); // Use Mustache style syntax for variable interpolation
  31903. /* Configuration of Lodash templates (this config is distinct to the
  31904. * config of requirejs-tpl in main.js). This one is for normal inline templates.
  31905. */
  31906. _.templateSettings = {
  31907. 'escape': /\{\{\{([\s\S]+?)\}\}\}/g,
  31908. 'evaluate': /\{\[([\s\S]+?)\]\}/g,
  31909. 'interpolate': /\{\{([\s\S]+?)\}\}/g,
  31910. 'imports': {
  31911. '_': _
  31912. }
  31913. };
  31914. /**
  31915. * A private, closured object containing the private api (via `_converse.api`)
  31916. * as well as private methods and internal data-structures.
  31917. *
  31918. * @namespace _converse
  31919. */
  31920. var _converse = {
  31921. 'templates': {},
  31922. 'promises': {}
  31923. };
  31924. _.extend(_converse, Backbone.Events); // Core plugins are whitelisted automatically
  31925. _converse.core_plugins = ['converse-autocomplete', 'converse-bookmarks', 'converse-caps', 'converse-chatboxes', 'converse-chatboxviews', 'converse-chatview', 'converse-controlbox', 'converse-core', 'converse-disco', 'converse-dragresize', 'converse-embedded', 'converse-fullscreen', 'converse-headline', 'converse-mam', 'converse-message-view', 'converse-minimize', 'converse-modal', 'converse-muc', 'converse-muc-views', 'converse-notification', 'converse-omemo', 'converse-ping', 'converse-profile', 'converse-push', 'converse-register', 'converse-roomslist', 'converse-roster', 'converse-rosterview', 'converse-singleton', 'converse-spoilers', 'converse-vcard']; // Setting wait to 59 instead of 60 to avoid timing conflicts with the
  31926. // webserver, which is often also set to 60 and might therefore sometimes
  31927. // return a 504 error page instead of passing through to the BOSH proxy.
  31928. var BOSH_WAIT = 59; // Make converse pluggable
  31929. pluggable.enable(_converse, '_converse', 'pluggable');
  31930. _converse.keycodes = {
  31931. TAB: 9,
  31932. ENTER: 13,
  31933. SHIFT: 16,
  31934. CTRL: 17,
  31935. ALT: 18,
  31936. ESCAPE: 27,
  31937. UP_ARROW: 38,
  31938. DOWN_ARROW: 40,
  31939. FORWARD_SLASH: 47,
  31940. AT: 50,
  31941. META: 91,
  31942. META_RIGHT: 93
  31943. }; // Module-level constants
  31944. _converse.STATUS_WEIGHTS = {
  31945. 'offline': 6,
  31946. 'unavailable': 5,
  31947. 'xa': 4,
  31948. 'away': 3,
  31949. 'dnd': 2,
  31950. 'chat': 1,
  31951. // We currently don't differentiate between "chat" and "online"
  31952. 'online': 1
  31953. };
  31954. _converse.PRETTY_CHAT_STATUS = {
  31955. 'offline': 'Offline',
  31956. 'unavailable': 'Unavailable',
  31957. 'xa': 'Extended Away',
  31958. 'away': 'Away',
  31959. 'dnd': 'Do not disturb',
  31960. 'chat': 'Chattty',
  31961. 'online': 'Online'
  31962. };
  31963. _converse.ANONYMOUS = "anonymous";
  31964. _converse.CLOSED = 'closed';
  31965. _converse.EXTERNAL = "external";
  31966. _converse.LOGIN = "login";
  31967. _converse.LOGOUT = "logout";
  31968. _converse.OPENED = 'opened';
  31969. _converse.PREBIND = "prebind";
  31970. _converse.IQ_TIMEOUT = 20000;
  31971. _converse.CONNECTION_STATUS = {
  31972. 0: 'ERROR',
  31973. 1: 'CONNECTING',
  31974. 2: 'CONNFAIL',
  31975. 3: 'AUTHENTICATING',
  31976. 4: 'AUTHFAIL',
  31977. 5: 'CONNECTED',
  31978. 6: 'DISCONNECTED',
  31979. 7: 'DISCONNECTING',
  31980. 8: 'ATTACHED',
  31981. 9: 'REDIRECT',
  31982. 10: 'RECONNECTING'
  31983. };
  31984. _converse.SUCCESS = 'success';
  31985. _converse.FAILURE = 'failure';
  31986. _converse.DEFAULT_IMAGE_TYPE = 'image/png';
  31987. _converse.DEFAULT_IMAGE = "iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFAAAA4KdfIIRgjD9+/Pj8+fOpqSndslofEIQwHA6Pjo4mEon//qmFhYXHjx8vLi4ihBgDEnp7e9l8E0Jo165dQ0NDd+/eDYVC2/qsJElDQ0OEkKWlpa2tLZamxAhQo9EIBoOjo6MXL17csZLe3l5FUT59+lQul5l5JRaAVFWNRqN37tw5ceKEQVWRSOTw4cOFQuHbt2+iKLYCIISQLMu3b99OJpOmKAwEAgcPHszn8+vr6wzsiG6UQQhxuVyXLl0aGBgwUW0sFstkMl6v90fo1KyAMMYDAwPnzp0zXfPg4GAqlWo0Gk0MiBAiy/L58+edTqf5Aa4onj59OhaLYYybFRCEMBaL0fNxBw4cSCQStN0QRUBut3t4eJjq6U+dOiVJElVPRBFQIBDo6+ujCqirqyscDlONGykC2lYyYSR6pBoQQapHZwAoHo/TuARYAOrs7GQASFEUqn6aIiBJkhgA6ujooFpUo6iaTa7koFwnaoWadLNe81tbWwzoaJrWrICWl5cZAFpbW6OabVAEtLi4yABQsVjUNK0pAWWzWQaAcrlcswKanZ1VVZUqHYRQEwOq1Wpv3ryhCmh6erpcLjdrNl+v1ycnJ+l5UELI27dvv3//3qxxEADgy5cvExMT9Mznw4cPtFtAdAPFarU6Pj5eKpVM17yxsfHy5cvV1VXazXu62gVBKBQKT58+rdVqJqrFGL948eLdu3dU8/g/H4FBUaJYLAqC0NPTY9brMD4+PjY25mDSracOCABACJmZmXE6nUePHjWu8NWrV48ePSKEsGlAs7Agfd5nenq6Wq0mk0kjDzY2NvbkyRMIIbP2PLvhBUEQ8vl8NpuNx+M+n29bzhVjvLKycv/+/YmJCcazQuwA6YzW1tYmJyf1SY+2trZ/rRk1Go1SqfT69esHDx4UCgVmNaa/zZ/9ABUhRFXVYDB48uTJeDweiUQkSfL7/T9MA2NcqVTK5fLy8vL8/PzU1FSxWHS5XJaM4wGr9sUwxqqqer3eUCgkSZJuUBBCfTRvc3OzXC6vrKxUKhWn02nhCJ5lM4oQQo/HgxD6+vXr58+fHf8sDOp+HQDg8XgclorFU676dKLlo6yWRdItIBwQB8QBcUCtfosRQjRNQwhhjPUC4w46WXryBSHU1zgEQWBz99EFhDGu1+t+v//48ePxeFxRlD179ng8nh0Efgiher2+vr6ur3HMzMysrq7uTJVdACGEurq6Ll++nEgkPB7Pj9jPoDHqOxyqqubz+WfPnuVyuV9XPeyeagAAAoHArVu3BgcHab8CuVzu4cOHpVKJUnfA5GweY+xyuc6cOXPv3r1IJMLAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg==";
  31988. _converse.TIMEOUTS = {
  31989. // Set as module attr so that we can override in tests.
  31990. 'PAUSED': 10000,
  31991. 'INACTIVE': 90000
  31992. }; // XEP-0085 Chat states
  31993. // http://xmpp.org/extensions/xep-0085.html
  31994. _converse.INACTIVE = 'inactive';
  31995. _converse.ACTIVE = 'active';
  31996. _converse.COMPOSING = 'composing';
  31997. _converse.PAUSED = 'paused';
  31998. _converse.GONE = 'gone'; // Chat types
  31999. _converse.PRIVATE_CHAT_TYPE = 'chatbox';
  32000. _converse.CHATROOMS_TYPE = 'chatroom';
  32001. _converse.HEADLINES_TYPE = 'headline';
  32002. _converse.CONTROLBOX_TYPE = 'controlbox'; // Default configuration values
  32003. // ----------------------------
  32004. _converse.default_settings = {
  32005. allow_non_roster_messaging: false,
  32006. animate: true,
  32007. authentication: 'login',
  32008. // Available values are "login", "prebind", "anonymous" and "external".
  32009. auto_away: 0,
  32010. // Seconds after which user status is set to 'away'
  32011. auto_login: false,
  32012. // Currently only used in connection with anonymous login
  32013. auto_reconnect: true,
  32014. auto_xa: 0,
  32015. // Seconds after which user status is set to 'xa'
  32016. blacklisted_plugins: [],
  32017. bosh_service_url: undefined,
  32018. connection_options: {},
  32019. credentials_url: null,
  32020. // URL from where login credentials can be fetched
  32021. csi_waiting_time: 0,
  32022. // Support for XEP-0352. Seconds before client is considered idle and CSI is sent out.
  32023. debug: false,
  32024. default_state: 'online',
  32025. expose_rid_and_sid: false,
  32026. geouri_regex: /https:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
  32027. geouri_replacement: 'https://www.openstreetmap.org/?mlat=$1&mlon=$2#map=18/$1/$2',
  32028. jid: undefined,
  32029. keepalive: true,
  32030. locales_url: 'locale/{{{locale}}}/LC_MESSAGES/converse.json',
  32031. locales: ['af', 'ar', 'bg', 'ca', 'cs', 'de', 'es', 'eu', 'en', 'fr', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'nb', 'nl', 'pl', 'pt_BR', 'ro', 'ru', 'tr', 'uk', 'zh_CN', 'zh_TW'],
  32032. message_carbons: true,
  32033. nickname: undefined,
  32034. password: undefined,
  32035. prebind_url: null,
  32036. priority: 0,
  32037. rid: undefined,
  32038. root: window.document,
  32039. sid: undefined,
  32040. strict_plugin_dependencies: false,
  32041. trusted: true,
  32042. view_mode: 'overlayed',
  32043. // Choices are 'overlayed', 'fullscreen', 'mobile'
  32044. websocket_url: undefined,
  32045. whitelisted_plugins: []
  32046. };
  32047. _converse.log = function (message, level) {
  32048. var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  32049. /* Logs messages to the browser's developer console.
  32050. *
  32051. * Parameters:
  32052. * (String) message - The message to be logged.
  32053. * (Integer) level - The loglevel which allows for filtering of log
  32054. * messages.
  32055. *
  32056. * Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn',
  32057. * 3 for 'error' and 4 for 'fatal'.
  32058. *
  32059. * When using the 'error' or 'warn' loglevels, a full stacktrace will be
  32060. * logged as well.
  32061. */
  32062. if (level === Strophe.LogLevel.ERROR || level === Strophe.LogLevel.FATAL) {
  32063. style = style || 'color: maroon';
  32064. }
  32065. if (_instanceof(message, Error)) {
  32066. message = message.stack;
  32067. } else if (_.isElement(message)) {
  32068. message = message.outerHTML;
  32069. }
  32070. var prefix = style ? '%c' : '';
  32071. var logger = _.assign({
  32072. 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  32073. 'error': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  32074. 'info': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  32075. 'warn': _.get(console, 'log') ? console.log.bind(console) : _.noop
  32076. }, console);
  32077. if (level === Strophe.LogLevel.ERROR) {
  32078. logger.error("".concat(prefix, " ERROR: ").concat(message), style);
  32079. } else if (level === Strophe.LogLevel.WARN) {
  32080. if (_converse.debug) {
  32081. logger.warn("".concat(prefix, " ").concat(moment().format(), " WARNING: ").concat(message), style);
  32082. }
  32083. } else if (level === Strophe.LogLevel.FATAL) {
  32084. logger.error("".concat(prefix, " FATAL: ").concat(message), style);
  32085. } else if (_converse.debug) {
  32086. if (level === Strophe.LogLevel.DEBUG) {
  32087. logger.debug("".concat(prefix, " ").concat(moment().format(), " DEBUG: ").concat(message), style);
  32088. } else {
  32089. logger.info("".concat(prefix, " ").concat(moment().format(), " INFO: ").concat(message), style);
  32090. }
  32091. }
  32092. };
  32093. Strophe.log = function (level, msg) {
  32094. _converse.log(level + ' ' + msg, level);
  32095. };
  32096. Strophe.error = function (msg) {
  32097. _converse.log(msg, Strophe.LogLevel.ERROR);
  32098. };
  32099. _converse.__ = function (str) {
  32100. /* Translate the given string based on the current locale.
  32101. *
  32102. * Parameters:
  32103. * (String) str - The string to translate.
  32104. */
  32105. if (_.isUndefined(i18n)) {
  32106. return str;
  32107. }
  32108. return i18n.translate.apply(i18n, arguments);
  32109. };
  32110. var __ = _converse.__;
  32111. var PROMISES = ['initialized', 'connectionInitialized', 'pluginsInitialized', 'statusInitialized'];
  32112. function addPromise(promise) {
  32113. /* Private function, used to add a new promise to the ones already
  32114. * available via the `waitUntil` api method.
  32115. */
  32116. _converse.promises[promise] = u.getResolveablePromise();
  32117. }
  32118. _converse.emit = function (name) {
  32119. /* Event emitter and promise resolver */
  32120. _converse.trigger.apply(this, arguments);
  32121. var promise = _converse.promises[name];
  32122. if (!_.isUndefined(promise)) {
  32123. promise.resolve();
  32124. }
  32125. };
  32126. _converse.isSingleton = function () {
  32127. return _.includes(['mobile', 'fullscreen', 'embedded'], _converse.view_mode);
  32128. };
  32129. _converse.router = new Backbone.Router();
  32130. _converse.initialize = function (settings, callback) {
  32131. var _this = this;
  32132. settings = !_.isUndefined(settings) ? settings : {};
  32133. var init_promise = u.getResolveablePromise();
  32134. _.each(PROMISES, addPromise);
  32135. if (!_.isUndefined(_converse.connection)) {
  32136. // Looks like _converse.initialized was called again without logging
  32137. // out or disconnecting in the previous session.
  32138. // This happens in tests. We therefore first clean up.
  32139. Backbone.history.stop();
  32140. _converse.chatboxviews.closeAllChatBoxes();
  32141. if (_converse.bookmarks) {
  32142. _converse.bookmarks.reset();
  32143. }
  32144. delete _converse.controlboxtoggle;
  32145. delete _converse.chatboxviews;
  32146. _converse.connection.reset();
  32147. _converse.stopListening();
  32148. _converse.tearDown();
  32149. delete _converse.config;
  32150. _converse.initClientConfig();
  32151. _converse.off();
  32152. }
  32153. if ('onpagehide' in window) {
  32154. // Pagehide gets thrown in more cases than unload. Specifically it
  32155. // gets thrown when the page is cached and not just
  32156. // closed/destroyed. It's the only viable event on mobile Safari.
  32157. // https://www.webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/
  32158. _converse.unloadevent = 'pagehide';
  32159. } else if ('onbeforeunload' in window) {
  32160. _converse.unloadevent = 'beforeunload';
  32161. } else if ('onunload' in window) {
  32162. _converse.unloadevent = 'unload';
  32163. }
  32164. _.assignIn(this, this.default_settings); // Allow only whitelisted configuration attributes to be overwritten
  32165. _.assignIn(this, _.pick(settings, _.keys(this.default_settings)));
  32166. if (this.authentication === _converse.ANONYMOUS) {
  32167. if (this.auto_login && !this.jid) {
  32168. throw new Error("Config Error: you need to provide the server's " + "domain via the 'jid' option when using anonymous " + "authentication with auto_login.");
  32169. }
  32170. }
  32171. /* Localisation */
  32172. if (!_.isUndefined(i18n)) {
  32173. i18n.setLocales(settings.i18n, _converse);
  32174. } else {
  32175. _converse.locale = 'en';
  32176. } // Module-level variables
  32177. // ----------------------
  32178. this.callback = callback || _.noop;
  32179. /* When reloading the page:
  32180. * For new sessions, we need to send out a presence stanza to notify
  32181. * the server/network that we're online.
  32182. * When re-attaching to an existing session (e.g. via the keepalive
  32183. * option), we don't need to again send out a presence stanza, because
  32184. * it's as if "we never left" (see onConnectStatusChanged).
  32185. * https://github.com/jcbrand/converse.js/issues/521
  32186. */
  32187. this.send_initial_presence = true;
  32188. this.msg_counter = 0;
  32189. this.user_settings = settings; // Save the user settings so that they can be used by plugins
  32190. // Module-level functions
  32191. // ----------------------
  32192. this.generateResource = function () {
  32193. return "/converse.js-".concat(Math.floor(Math.random() * 139749528).toString());
  32194. };
  32195. this.sendCSI = function (stat) {
  32196. /* Send out a Chat Status Notification (XEP-0352)
  32197. *
  32198. * Parameters:
  32199. * (String) stat: The user's chat status
  32200. */
  32201. /* Send out a Chat Status Notification (XEP-0352) */
  32202. // XXX if (converse.features[Strophe.NS.CSI] || true) {
  32203. _converse.connection.send($build(stat, {
  32204. xmlns: Strophe.NS.CSI
  32205. }));
  32206. _converse.inactive = stat === _converse.INACTIVE ? true : false;
  32207. };
  32208. this.onUserActivity = function () {
  32209. /* Resets counters and flags relating to CSI and auto_away/auto_xa */
  32210. if (_converse.idle_seconds > 0) {
  32211. _converse.idle_seconds = 0;
  32212. }
  32213. if (!_converse.connection.authenticated) {
  32214. // We can't send out any stanzas when there's no authenticated connection.
  32215. // converse can happen when the connection reconnects.
  32216. return;
  32217. }
  32218. if (_converse.inactive) {
  32219. _converse.sendCSI(_converse.ACTIVE);
  32220. }
  32221. if (_converse.auto_changed_status === true) {
  32222. _converse.auto_changed_status = false; // XXX: we should really remember the original state here, and
  32223. // then set it back to that...
  32224. _converse.xmppstatus.set('status', _converse.default_state);
  32225. }
  32226. };
  32227. this.onEverySecond = function () {
  32228. /* An interval handler running every second.
  32229. * Used for CSI and the auto_away and auto_xa features.
  32230. */
  32231. if (!_converse.connection.authenticated) {
  32232. // We can't send out any stanzas when there's no authenticated connection.
  32233. // This can happen when the connection reconnects.
  32234. return;
  32235. }
  32236. var stat = _converse.xmppstatus.get('status');
  32237. _converse.idle_seconds++;
  32238. if (_converse.csi_waiting_time > 0 && _converse.idle_seconds > _converse.csi_waiting_time && !_converse.inactive) {
  32239. _converse.sendCSI(_converse.INACTIVE);
  32240. }
  32241. if (_converse.auto_away > 0 && _converse.idle_seconds > _converse.auto_away && stat !== 'away' && stat !== 'xa' && stat !== 'dnd') {
  32242. _converse.auto_changed_status = true;
  32243. _converse.xmppstatus.set('status', 'away');
  32244. } else if (_converse.auto_xa > 0 && _converse.idle_seconds > _converse.auto_xa && stat !== 'xa' && stat !== 'dnd') {
  32245. _converse.auto_changed_status = true;
  32246. _converse.xmppstatus.set('status', 'xa');
  32247. }
  32248. };
  32249. this.registerIntervalHandler = function () {
  32250. /* Set an interval of one second and register a handler for it.
  32251. * Required for the auto_away, auto_xa and csi_waiting_time features.
  32252. */
  32253. if (_converse.auto_away < 1 && _converse.auto_xa < 1 && _converse.csi_waiting_time < 1) {
  32254. // Waiting time of less then one second means features aren't used.
  32255. return;
  32256. }
  32257. _converse.idle_seconds = 0;
  32258. _converse.auto_changed_status = false; // Was the user's status changed by _converse.js?
  32259. window.addEventListener('click', _converse.onUserActivity);
  32260. window.addEventListener('focus', _converse.onUserActivity);
  32261. window.addEventListener('keypress', _converse.onUserActivity);
  32262. window.addEventListener('mousemove', _converse.onUserActivity);
  32263. var options = {
  32264. 'once': true,
  32265. 'passive': true
  32266. };
  32267. window.addEventListener(_converse.unloadevent, _converse.onUserActivity, options);
  32268. _converse.everySecondTrigger = window.setInterval(_converse.onEverySecond, 1000);
  32269. };
  32270. this.setConnectionStatus = function (connection_status, message) {
  32271. _converse.connfeedback.set({
  32272. 'connection_status': connection_status,
  32273. 'message': message
  32274. });
  32275. };
  32276. this.rejectPresenceSubscription = function (jid, message) {
  32277. /* Reject or cancel another user's subscription to our presence updates.
  32278. *
  32279. * Parameters:
  32280. * (String) jid - The Jabber ID of the user whose subscription
  32281. * is being canceled.
  32282. * (String) message - An optional message to the user
  32283. */
  32284. var pres = $pres({
  32285. to: jid,
  32286. type: "unsubscribed"
  32287. });
  32288. if (message && message !== "") {
  32289. pres.c("status").t(message);
  32290. }
  32291. _converse.connection.send(pres);
  32292. };
  32293. this.reconnect = _.debounce(function () {
  32294. _converse.log('RECONNECTING');
  32295. _converse.log('The connection has dropped, attempting to reconnect.');
  32296. _converse.setConnectionStatus(Strophe.Status.RECONNECTING, __('The connection has dropped, attempting to reconnect.'));
  32297. _converse.connection.reconnecting = true;
  32298. _converse.tearDown();
  32299. _converse.logIn(null, true);
  32300. }, 3000, {
  32301. 'leading': true
  32302. });
  32303. this.disconnect = function () {
  32304. _converse.log('DISCONNECTED');
  32305. delete _converse.connection.reconnecting;
  32306. _converse.connection.reset();
  32307. _converse.tearDown();
  32308. _converse.clearSession();
  32309. _converse.emit('disconnected');
  32310. };
  32311. this.onDisconnected = function () {
  32312. /* Gets called once strophe's status reaches Strophe.Status.DISCONNECTED.
  32313. * Will either start a teardown process for converse.js or attempt
  32314. * to reconnect.
  32315. */
  32316. var reason = _converse.disconnection_reason;
  32317. if (_converse.disconnection_cause === Strophe.Status.AUTHFAIL) {
  32318. if (_converse.credentials_url && _converse.auto_reconnect) {
  32319. /* In this case, we reconnect, because we might be receiving
  32320. * expirable tokens from the credentials_url.
  32321. */
  32322. _converse.emit('will-reconnect');
  32323. return _converse.reconnect();
  32324. } else {
  32325. return _converse.disconnect();
  32326. }
  32327. } else if (_converse.disconnection_cause === _converse.LOGOUT || !_.isUndefined(reason) && reason === _.get(Strophe, 'ErrorCondition.NO_AUTH_MECH') || reason === "host-unknown" || reason === "remote-connection-failed" || !_converse.auto_reconnect) {
  32328. return _converse.disconnect();
  32329. }
  32330. _converse.emit('will-reconnect');
  32331. _converse.reconnect();
  32332. };
  32333. this.setDisconnectionCause = function (cause, reason, override) {
  32334. /* Used to keep track of why we got disconnected, so that we can
  32335. * decide on what the next appropriate action is (in onDisconnected)
  32336. */
  32337. if (_.isUndefined(cause)) {
  32338. delete _converse.disconnection_cause;
  32339. delete _converse.disconnection_reason;
  32340. } else if (_.isUndefined(_converse.disconnection_cause) || override) {
  32341. _converse.disconnection_cause = cause;
  32342. _converse.disconnection_reason = reason;
  32343. }
  32344. };
  32345. this.onConnectStatusChanged = function (status, message) {
  32346. /* Callback method called by Strophe as the Strophe.Connection goes
  32347. * through various states while establishing or tearing down a
  32348. * connection.
  32349. */
  32350. _converse.log("Status changed to: ".concat(_converse.CONNECTION_STATUS[status]));
  32351. if (status === Strophe.Status.CONNECTED || status === Strophe.Status.ATTACHED) {
  32352. _converse.setConnectionStatus(status); // By default we always want to send out an initial presence stanza.
  32353. _converse.send_initial_presence = true;
  32354. _converse.setDisconnectionCause();
  32355. if (_converse.connection.reconnecting) {
  32356. _converse.log(status === Strophe.Status.CONNECTED ? 'Reconnected' : 'Reattached');
  32357. _converse.onConnected(true);
  32358. } else {
  32359. _converse.log(status === Strophe.Status.CONNECTED ? 'Connected' : 'Attached');
  32360. if (_converse.connection.restored) {
  32361. // No need to send an initial presence stanza when
  32362. // we're restoring an existing session.
  32363. _converse.send_initial_presence = false;
  32364. }
  32365. _converse.onConnected();
  32366. }
  32367. } else if (status === Strophe.Status.DISCONNECTED) {
  32368. _converse.setDisconnectionCause(status, message);
  32369. _converse.onDisconnected();
  32370. } else if (status === Strophe.Status.ERROR) {
  32371. _converse.setConnectionStatus(status, __('An error occurred while connecting to the chat server.'));
  32372. } else if (status === Strophe.Status.CONNECTING) {
  32373. _converse.setConnectionStatus(status);
  32374. } else if (status === Strophe.Status.AUTHENTICATING) {
  32375. _converse.setConnectionStatus(status);
  32376. } else if (status === Strophe.Status.AUTHFAIL) {
  32377. if (!message) {
  32378. message = __('Your Jabber ID and/or password is incorrect. Please try again.');
  32379. }
  32380. _converse.setConnectionStatus(status, message);
  32381. _converse.setDisconnectionCause(status, message, true);
  32382. _converse.onDisconnected();
  32383. } else if (status === Strophe.Status.CONNFAIL) {
  32384. var feedback = message;
  32385. if (message === "host-unknown" || message == "remote-connection-failed") {
  32386. feedback = __("Sorry, we could not connect to the XMPP host with domain: %1$s", "\"".concat(Strophe.getDomainFromJid(_converse.connection.jid), "\""));
  32387. } else if (!_.isUndefined(message) && message === _.get(Strophe, 'ErrorCondition.NO_AUTH_MECH')) {
  32388. feedback = __("The XMPP server did not offer a supported authentication mechanism");
  32389. }
  32390. _converse.setConnectionStatus(status, feedback);
  32391. _converse.setDisconnectionCause(status, message);
  32392. } else if (status === Strophe.Status.DISCONNECTING) {
  32393. _converse.setDisconnectionCause(status, message);
  32394. }
  32395. };
  32396. this.incrementMsgCounter = function () {
  32397. this.msg_counter += 1;
  32398. var unreadMsgCount = this.msg_counter;
  32399. var title = document.title;
  32400. if (_.isNil(title)) {
  32401. return;
  32402. }
  32403. if (title.search(/^Messages \(\d+\) /) === -1) {
  32404. title = "Messages (".concat(unreadMsgCount, ") ").concat(title);
  32405. } else {
  32406. title = title.replace(/^Messages \(\d+\) /, "Messages (".concat(unreadMsgCount, ")"));
  32407. }
  32408. };
  32409. this.clearMsgCounter = function () {
  32410. this.msg_counter = 0;
  32411. var title = document.title;
  32412. if (_.isNil(title)) {
  32413. return;
  32414. }
  32415. if (title.search(/^Messages \(\d+\) /) !== -1) {
  32416. title = title.replace(/^Messages \(\d+\) /, "");
  32417. }
  32418. };
  32419. this.initStatus = function (reconnecting) {
  32420. // If there's no xmppstatus obj, then we were never connected to
  32421. // begin with, so we set reconnecting to false.
  32422. reconnecting = _.isUndefined(_converse.xmppstatus) ? false : reconnecting;
  32423. if (reconnecting) {
  32424. _converse.onStatusInitialized(reconnecting);
  32425. } else {
  32426. var id = "converse.xmppstatus-".concat(_converse.bare_jid);
  32427. _this.xmppstatus = new _this.XMPPStatus({
  32428. 'id': id
  32429. });
  32430. _this.xmppstatus.browserStorage = new Backbone.BrowserStorage.session(id);
  32431. _this.xmppstatus.fetch({
  32432. 'success': _.partial(_converse.onStatusInitialized, reconnecting),
  32433. 'error': _.partial(_converse.onStatusInitialized, reconnecting)
  32434. });
  32435. }
  32436. };
  32437. this.initClientConfig = function () {
  32438. /* The client config refers to configuration of the client which is
  32439. * independent of any particular user.
  32440. * What this means is that config values need to persist across
  32441. * user sessions.
  32442. */
  32443. var id = b64_sha1('converse.client-config');
  32444. _converse.config = new Backbone.Model({
  32445. 'id': id,
  32446. 'trusted': _converse.trusted && true || false,
  32447. 'storage': _converse.trusted ? 'local' : 'session'
  32448. });
  32449. _converse.config.browserStorage = new Backbone.BrowserStorage.session(id);
  32450. _converse.config.fetch();
  32451. _converse.emit('clientConfigInitialized');
  32452. };
  32453. this.initSession = function () {
  32454. var id = b64_sha1('converse.bosh-session');
  32455. _converse.session = new Backbone.Model({
  32456. 'id': id
  32457. });
  32458. _converse.session.browserStorage = new Backbone.BrowserStorage.session(id);
  32459. _converse.session.fetch();
  32460. _converse.emit('sessionInitialized');
  32461. };
  32462. this.clearSession = function () {
  32463. if (!_converse.config.get('trusted')) {
  32464. window.localStorage.clear();
  32465. window.sessionStorage.clear();
  32466. } else if (!_.isUndefined(this.session) && this.session.browserStorage) {
  32467. this.session.browserStorage._clear();
  32468. }
  32469. _converse.emit('clearSession');
  32470. };
  32471. this.logOut = function () {
  32472. _converse.clearSession();
  32473. _converse.setDisconnectionCause(_converse.LOGOUT, undefined, true);
  32474. if (!_.isUndefined(_converse.connection)) {
  32475. _converse.connection.disconnect();
  32476. } else {
  32477. _converse.tearDown();
  32478. } // Recreate all the promises
  32479. _.each(_.keys(_converse.promises), addPromise);
  32480. _converse.emit('logout');
  32481. };
  32482. this.saveWindowState = function (ev, hidden) {
  32483. // XXX: eventually we should be able to just use
  32484. // document.visibilityState (when we drop support for older
  32485. // browsers).
  32486. var state;
  32487. var event_map = {
  32488. 'focus': "visible",
  32489. 'focusin': "visible",
  32490. 'pageshow': "visible",
  32491. 'blur': "hidden",
  32492. 'focusout': "hidden",
  32493. 'pagehide': "hidden"
  32494. };
  32495. ev = ev || document.createEvent('Events');
  32496. if (ev.type in event_map) {
  32497. state = event_map[ev.type];
  32498. } else {
  32499. state = document[hidden] ? "hidden" : "visible";
  32500. }
  32501. if (state === 'visible') {
  32502. _converse.clearMsgCounter();
  32503. }
  32504. _converse.windowState = state;
  32505. _converse.emit('windowStateChanged', {
  32506. state: state
  32507. });
  32508. };
  32509. this.registerGlobalEventHandlers = function () {
  32510. // Taken from:
  32511. // http://stackoverflow.com/questions/1060008/is-there-a-way-to-detect-if-a-browser-window-is-not-currently-active
  32512. var hidden = "hidden"; // Standards:
  32513. if (hidden in document) {
  32514. document.addEventListener("visibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32515. } else if ((hidden = "mozHidden") in document) {
  32516. document.addEventListener("mozvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32517. } else if ((hidden = "webkitHidden") in document) {
  32518. document.addEventListener("webkitvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32519. } else if ((hidden = "msHidden") in document) {
  32520. document.addEventListener("msvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32521. } else if ("onfocusin" in document) {
  32522. // IE 9 and lower:
  32523. document.onfocusin = document.onfocusout = _.partial(_converse.saveWindowState, _, hidden);
  32524. } else {
  32525. // All others:
  32526. window.onpageshow = window.onpagehide = window.onfocus = window.onblur = _.partial(_converse.saveWindowState, _, hidden);
  32527. } // set the initial state (but only if browser supports the Page Visibility API)
  32528. if (document[hidden] !== undefined) {
  32529. _.partial(_converse.saveWindowState, _, hidden)({
  32530. type: document[hidden] ? "blur" : "focus"
  32531. });
  32532. }
  32533. _converse.emit('registeredGlobalEventHandlers');
  32534. };
  32535. this.enableCarbons = function () {
  32536. var _this2 = this;
  32537. /* Ask the XMPP server to enable Message Carbons
  32538. * See XEP-0280 https://xmpp.org/extensions/xep-0280.html#enabling
  32539. */
  32540. if (!this.message_carbons || this.session.get('carbons_enabled')) {
  32541. return;
  32542. }
  32543. var carbons_iq = new Strophe.Builder('iq', {
  32544. 'from': this.connection.jid,
  32545. 'id': 'enablecarbons',
  32546. 'type': 'set'
  32547. }).c('enable', {
  32548. xmlns: Strophe.NS.CARBONS
  32549. });
  32550. this.connection.addHandler(function (iq) {
  32551. if (iq.querySelectorAll('error').length > 0) {
  32552. _converse.log('An error occurred while trying to enable message carbons.', Strophe.LogLevel.WARN);
  32553. } else {
  32554. _this2.session.save({
  32555. 'carbons_enabled': true
  32556. });
  32557. _converse.log('Message carbons have been enabled.');
  32558. }
  32559. }, null, "iq", null, "enablecarbons");
  32560. this.connection.send(carbons_iq);
  32561. };
  32562. this.sendInitialPresence = function () {
  32563. if (_converse.send_initial_presence) {
  32564. _converse.xmppstatus.sendPresence();
  32565. }
  32566. };
  32567. this.onStatusInitialized = function (reconnecting) {
  32568. _converse.emit('statusInitialized', reconnecting);
  32569. if (reconnecting) {
  32570. _converse.emit('reconnected');
  32571. } else {
  32572. init_promise.resolve();
  32573. _converse.emit('initialized');
  32574. _converse.emit('connected');
  32575. }
  32576. };
  32577. this.setUserJID = function () {
  32578. _converse.jid = _converse.connection.jid;
  32579. _converse.bare_jid = Strophe.getBareJidFromJid(_converse.connection.jid);
  32580. _converse.resource = Strophe.getResourceFromJid(_converse.connection.jid);
  32581. _converse.domain = Strophe.getDomainFromJid(_converse.connection.jid);
  32582. _converse.emit('setUserJID');
  32583. };
  32584. this.onConnected = function (reconnecting) {
  32585. /* Called as soon as a new connection has been established, either
  32586. * by logging in or by attaching to an existing BOSH session.
  32587. */
  32588. _converse.connection.flush(); // Solves problem of returned PubSub BOSH response not received by browser
  32589. _converse.setUserJID();
  32590. _converse.initSession();
  32591. _converse.enableCarbons();
  32592. _converse.initStatus(reconnecting);
  32593. };
  32594. this.ConnectionFeedback = Backbone.Model.extend({
  32595. defaults: {
  32596. 'connection_status': Strophe.Status.DISCONNECTED,
  32597. 'message': ''
  32598. },
  32599. initialize: function initialize() {
  32600. this.on('change', function () {
  32601. _converse.emit('connfeedback', _converse.connfeedback);
  32602. });
  32603. }
  32604. });
  32605. this.connfeedback = new this.ConnectionFeedback();
  32606. this.XMPPStatus = Backbone.Model.extend({
  32607. defaults: function defaults() {
  32608. return {
  32609. "jid": _converse.bare_jid,
  32610. "status": _converse.default_state
  32611. };
  32612. },
  32613. initialize: function initialize() {
  32614. var _this3 = this;
  32615. this.vcard = _converse.vcards.findWhere({
  32616. 'jid': this.get('jid')
  32617. });
  32618. if (_.isNil(this.vcard)) {
  32619. this.vcard = _converse.vcards.create({
  32620. 'jid': this.get('jid')
  32621. });
  32622. }
  32623. this.on('change:status', function (item) {
  32624. var status = _this3.get('status');
  32625. _this3.sendPresence(status);
  32626. _converse.emit('statusChanged', status);
  32627. });
  32628. this.on('change:status_message', function () {
  32629. var status_message = _this3.get('status_message');
  32630. _this3.sendPresence(_this3.get('status'), status_message);
  32631. _converse.emit('statusMessageChanged', status_message);
  32632. });
  32633. },
  32634. constructPresence: function constructPresence(type, status_message) {
  32635. var presence;
  32636. type = _.isString(type) ? type : this.get('status') || _converse.default_state;
  32637. status_message = _.isString(status_message) ? status_message : this.get('status_message'); // Most of these presence types are actually not explicitly sent,
  32638. // but I add all of them here for reference and future proofing.
  32639. if (type === 'unavailable' || type === 'probe' || type === 'error' || type === 'unsubscribe' || type === 'unsubscribed' || type === 'subscribe' || type === 'subscribed') {
  32640. presence = $pres({
  32641. 'type': type
  32642. });
  32643. } else if (type === 'offline') {
  32644. presence = $pres({
  32645. 'type': 'unavailable'
  32646. });
  32647. } else if (type === 'online') {
  32648. presence = $pres();
  32649. } else {
  32650. presence = $pres().c('show').t(type).up();
  32651. }
  32652. if (status_message) {
  32653. presence.c('status').t(status_message).up();
  32654. }
  32655. presence.c('priority').t(_.isNaN(Number(_converse.priority)) ? 0 : _converse.priority);
  32656. return presence;
  32657. },
  32658. sendPresence: function sendPresence(type, status_message) {
  32659. _converse.connection.send(this.constructPresence(type, status_message));
  32660. }
  32661. });
  32662. this.setUpXMLLogging = function () {
  32663. Strophe.log = function (level, msg) {
  32664. _converse.log(msg, level);
  32665. };
  32666. if (this.debug) {
  32667. this.connection.xmlInput = function (body) {
  32668. _converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkgoldenrod');
  32669. };
  32670. this.connection.xmlOutput = function (body) {
  32671. _converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkcyan');
  32672. };
  32673. }
  32674. };
  32675. this.fetchLoginCredentials = function () {
  32676. return new Promise(function (resolve, reject) {
  32677. var xhr = new XMLHttpRequest();
  32678. xhr.open('GET', _converse.credentials_url, true);
  32679. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  32680. xhr.onload = function () {
  32681. if (xhr.status >= 200 && xhr.status < 400) {
  32682. var data = JSON.parse(xhr.responseText);
  32683. resolve({
  32684. 'jid': data.jid,
  32685. 'password': data.password
  32686. });
  32687. } else {
  32688. xhr.onerror();
  32689. }
  32690. };
  32691. xhr.onerror = function () {
  32692. delete _converse.connection;
  32693. _converse.emit('noResumeableSession', this);
  32694. reject(xhr.responseText);
  32695. };
  32696. xhr.send();
  32697. });
  32698. };
  32699. this.startNewBOSHSession = function () {
  32700. var xhr = new XMLHttpRequest();
  32701. xhr.open('GET', _converse.prebind_url, true);
  32702. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  32703. xhr.onload = function () {
  32704. if (xhr.status >= 200 && xhr.status < 400) {
  32705. var data = JSON.parse(xhr.responseText);
  32706. _converse.connection.attach(data.jid, data.sid, data.rid, _converse.onConnectStatusChanged);
  32707. } else {
  32708. xhr.onerror();
  32709. }
  32710. };
  32711. xhr.onerror = function () {
  32712. delete _converse.connection;
  32713. _converse.emit('noResumeableSession', this);
  32714. };
  32715. xhr.send();
  32716. };
  32717. this.restoreBOSHSession = function (jid_is_required) {
  32718. /* Tries to restore a cached BOSH session. */
  32719. if (!this.jid) {
  32720. var msg = "restoreBOSHSession: tried to restore a \"keepalive\" session " + "but we don't have the JID for the user!";
  32721. if (jid_is_required) {
  32722. throw new Error(msg);
  32723. } else {
  32724. _converse.log(msg);
  32725. }
  32726. }
  32727. try {
  32728. this.connection.restore(this.jid, this.onConnectStatusChanged);
  32729. return true;
  32730. } catch (e) {
  32731. _converse.log("Could not restore session for jid: " + this.jid + " Error message: " + e.message, Strophe.LogLevel.WARN);
  32732. this.clearSession(); // We want to clear presences (see #555)
  32733. return false;
  32734. }
  32735. };
  32736. this.attemptPreboundSession = function (reconnecting) {
  32737. /* Handle session resumption or initialization when prebind is
  32738. * being used.
  32739. */
  32740. if (!reconnecting) {
  32741. if (this.keepalive && this.restoreBOSHSession(true)) {
  32742. return;
  32743. } // No keepalive, or session resumption has failed.
  32744. if (this.jid && this.sid && this.rid) {
  32745. return this.connection.attach(this.jid, this.sid, this.rid, this.onConnectStatusChanged);
  32746. }
  32747. }
  32748. if (this.prebind_url) {
  32749. return this.startNewBOSHSession();
  32750. } else {
  32751. throw new Error("attemptPreboundSession: If you use prebind and not keepalive, " + "then you MUST supply JID, RID and SID values or a prebind_url.");
  32752. }
  32753. };
  32754. this.attemptNonPreboundSession = function (credentials, reconnecting) {
  32755. /* Handle session resumption or initialization when prebind is not being used.
  32756. *
  32757. * Two potential options exist and are handled in this method:
  32758. * 1. keepalive
  32759. * 2. auto_login
  32760. */
  32761. if (!reconnecting && this.keepalive && this.restoreBOSHSession()) {
  32762. return;
  32763. }
  32764. if (credentials) {
  32765. // When credentials are passed in, they override prebinding
  32766. // or credentials fetching via HTTP
  32767. this.autoLogin(credentials);
  32768. } else if (this.auto_login) {
  32769. if (this.credentials_url) {
  32770. this.fetchLoginCredentials().then(this.autoLogin.bind(this), this.autoLogin.bind(this));
  32771. } else if (!this.jid) {
  32772. throw new Error("attemptNonPreboundSession: If you use auto_login, " + "you also need to give either a jid value (and if " + "applicable a password) or you need to pass in a URL " + "from where the username and password can be fetched " + "(via credentials_url).");
  32773. } else {
  32774. this.autoLogin(); // Could be ANONYMOUS or EXTERNAL
  32775. }
  32776. } else if (reconnecting) {
  32777. this.autoLogin();
  32778. }
  32779. };
  32780. this.autoLogin = function (credentials) {
  32781. if (credentials) {
  32782. // If passed in, the credentials come from credentials_url,
  32783. // so we set them on the converse object.
  32784. this.jid = credentials.jid;
  32785. }
  32786. if (this.authentication === _converse.ANONYMOUS || this.authentication === _converse.EXTERNAL) {
  32787. if (!this.jid) {
  32788. throw new Error("Config Error: when using anonymous login " + "you need to provide the server's domain via the 'jid' option. " + "Either when calling converse.initialize, or when calling " + "_converse.api.user.login.");
  32789. }
  32790. if (!this.connection.reconnecting) {
  32791. this.connection.reset();
  32792. }
  32793. this.connection.connect(this.jid.toLowerCase(), null, this.onConnectStatusChanged, BOSH_WAIT);
  32794. } else if (this.authentication === _converse.LOGIN) {
  32795. var password = _.isNil(credentials) ? _converse.connection.pass || this.password : credentials.password;
  32796. if (!password) {
  32797. if (this.auto_login) {
  32798. throw new Error("initConnection: If you use auto_login and " + "authentication='login' then you also need to provide a password.");
  32799. }
  32800. _converse.setDisconnectionCause(Strophe.Status.AUTHFAIL, undefined, true);
  32801. _converse.disconnect();
  32802. return;
  32803. }
  32804. var resource = Strophe.getResourceFromJid(this.jid);
  32805. if (!resource) {
  32806. this.jid = this.jid.toLowerCase() + _converse.generateResource();
  32807. } else {
  32808. this.jid = Strophe.getBareJidFromJid(this.jid).toLowerCase() + '/' + resource;
  32809. }
  32810. if (!this.connection.reconnecting) {
  32811. this.connection.reset();
  32812. }
  32813. this.connection.connect(this.jid, password, this.onConnectStatusChanged, BOSH_WAIT);
  32814. }
  32815. };
  32816. this.logIn = function (credentials, reconnecting) {
  32817. // We now try to resume or automatically set up a new session.
  32818. // Otherwise the user will be shown a login form.
  32819. if (this.authentication === _converse.PREBIND) {
  32820. this.attemptPreboundSession(reconnecting);
  32821. } else {
  32822. this.attemptNonPreboundSession(credentials, reconnecting);
  32823. }
  32824. };
  32825. this.initConnection = function () {
  32826. /* Creates a new Strophe.Connection instance if we don't already have one.
  32827. */
  32828. if (!this.connection) {
  32829. if (!this.bosh_service_url && !this.websocket_url) {
  32830. throw new Error("initConnection: you must supply a value for either the bosh_service_url or websocket_url or both.");
  32831. }
  32832. if (('WebSocket' in window || 'MozWebSocket' in window) && this.websocket_url) {
  32833. this.connection = new Strophe.Connection(this.websocket_url, this.connection_options);
  32834. } else if (this.bosh_service_url) {
  32835. this.connection = new Strophe.Connection(this.bosh_service_url, _.assignIn(this.connection_options, {
  32836. 'keepalive': this.keepalive
  32837. }));
  32838. } else {
  32839. throw new Error("initConnection: this browser does not support websockets and bosh_service_url wasn't specified.");
  32840. }
  32841. }
  32842. _converse.emit('connectionInitialized');
  32843. };
  32844. this.tearDown = function () {
  32845. /* Remove those views which are only allowed with a valid
  32846. * connection.
  32847. */
  32848. _converse.emit('beforeTearDown');
  32849. if (!_.isUndefined(_converse.session)) {
  32850. _converse.session.destroy();
  32851. }
  32852. window.removeEventListener('click', _converse.onUserActivity);
  32853. window.removeEventListener('focus', _converse.onUserActivity);
  32854. window.removeEventListener('keypress', _converse.onUserActivity);
  32855. window.removeEventListener('mousemove', _converse.onUserActivity);
  32856. window.removeEventListener(_converse.unloadevent, _converse.onUserActivity);
  32857. window.clearInterval(_converse.everySecondTrigger);
  32858. _converse.emit('afterTearDown');
  32859. return _converse;
  32860. };
  32861. this.initPlugins = function () {
  32862. // If initialize gets called a second time (e.g. during tests), then we
  32863. // need to re-apply all plugins (for a new converse instance), and we
  32864. // therefore need to clear this array that prevents plugins from being
  32865. // initialized twice.
  32866. // If initialize is called for the first time, then this array is empty
  32867. // in any case.
  32868. _converse.pluggable.initialized_plugins = [];
  32869. var whitelist = _converse.core_plugins.concat(_converse.whitelisted_plugins);
  32870. if (_converse.view_mode === 'embedded') {
  32871. _.forEach([// eslint-disable-line lodash/prefer-map
  32872. "converse-bookmarks", "converse-controlbox", "converse-headline", "converse-register"], function (name) {
  32873. _converse.blacklisted_plugins.push(name);
  32874. });
  32875. }
  32876. _converse.pluggable.initializePlugins({
  32877. 'updateSettings': function updateSettings() {
  32878. _converse.log("(DEPRECATION) " + "The `updateSettings` method has been deprecated. " + "Please use `_converse.api.settings.update` instead.", Strophe.LogLevel.WARN);
  32879. _converse.api.settings.update.apply(_converse, arguments);
  32880. },
  32881. '_converse': _converse
  32882. }, whitelist, _converse.blacklisted_plugins);
  32883. _converse.emit('pluginsInitialized');
  32884. }; // Initialization
  32885. // --------------
  32886. // This is the end of the initialize method.
  32887. if (settings.connection) {
  32888. this.connection = settings.connection;
  32889. }
  32890. function finishInitialization() {
  32891. _converse.initPlugins();
  32892. _converse.initClientConfig();
  32893. _converse.initConnection();
  32894. _converse.setUpXMLLogging();
  32895. _converse.logIn();
  32896. _converse.registerGlobalEventHandlers();
  32897. if (!Backbone.history.started) {
  32898. Backbone.history.start();
  32899. }
  32900. }
  32901. if (!_.isUndefined(_converse.connection) && _converse.connection.service === 'jasmine tests') {
  32902. finishInitialization();
  32903. return _converse;
  32904. } else if (_.isUndefined(i18n)) {
  32905. finishInitialization();
  32906. } else {
  32907. i18n.fetchTranslations(_converse.locale, _converse.locales, u.interpolate(_converse.locales_url, {
  32908. 'locale': _converse.locale
  32909. })).catch(function (e) {
  32910. return _converse.log(e.message, Strophe.LogLevel.FATAL);
  32911. }).then(finishInitialization).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  32912. }
  32913. return init_promise;
  32914. };
  32915. /**
  32916. * ### The private API
  32917. *
  32918. * The private API methods are only accessible via the closured {@link _converse}
  32919. * object, which is only available to plugins.
  32920. *
  32921. * These methods are kept private (i.e. not global) because they may return
  32922. * sensitive data which should be kept off-limits to other 3rd-party scripts
  32923. * that might be running in the page.
  32924. *
  32925. * @namespace _converse.api
  32926. * @memberOf _converse
  32927. */
  32928. _converse.api = {
  32929. /**
  32930. * This grouping collects API functions related to the XMPP connection.
  32931. *
  32932. * @namespace _converse.api.connection
  32933. * @memberOf _converse.api
  32934. */
  32935. 'connection': {
  32936. /**
  32937. * @method _converse.api.connection.connected
  32938. * @memberOf _converse.api.connection
  32939. * @returns {boolean} Whether there is an established connection or not.
  32940. */
  32941. 'connected': function connected() {
  32942. return _converse.connection && _converse.connection.connected || false;
  32943. },
  32944. /**
  32945. * Terminates the connection.
  32946. *
  32947. * @method _converse.api.connection.disconnect
  32948. * @memberOf _converse.api.connection
  32949. */
  32950. 'disconnect': function disconnect() {
  32951. _converse.connection.disconnect();
  32952. }
  32953. },
  32954. /**
  32955. * Lets you emit (i.e. trigger) events, which can be listened to via
  32956. * {@link _converse.api.listen.on} or {@link _converse.api.listen.once}
  32957. * (see [_converse.api.listen](http://localhost:8000/docs/html/api/-_converse.api.listen.html)).
  32958. *
  32959. * @method _converse.api.emit
  32960. */
  32961. 'emit': function emit() {
  32962. _converse.emit.apply(_converse, arguments);
  32963. },
  32964. /**
  32965. * This grouping collects API functions related to the current logged in user.
  32966. *
  32967. * @namespace _converse.api.user
  32968. * @memberOf _converse.api
  32969. */
  32970. 'user': {
  32971. /**
  32972. * @method _converse.api.user.jid
  32973. * @returns {string} The current user's full JID (Jabber ID)
  32974. * @example _converse.api.user.jid())
  32975. */
  32976. 'jid': function jid() {
  32977. return _converse.connection.jid;
  32978. },
  32979. /**
  32980. * Logs the user in.
  32981. *
  32982. * If called without any parameters, Converse will try
  32983. * to log the user in by calling the `prebind_url` or `credentials_url` depending
  32984. * on whether prebinding is used or not.
  32985. *
  32986. * @method _converse.api.user.login
  32987. * @param {object} [credentials] An object with the credentials.
  32988. * @example
  32989. * converse.plugins.add('myplugin', {
  32990. * initialize: function () {
  32991. *
  32992. * this._converse.api.user.login({
  32993. * 'jid': 'dummy@example.com',
  32994. * 'password': 'secret'
  32995. * });
  32996. *
  32997. * }
  32998. * });
  32999. */
  33000. 'login': function login(credentials) {
  33001. _converse.logIn(credentials);
  33002. },
  33003. /**
  33004. * Logs the user out of the current XMPP session.
  33005. *
  33006. * @method _converse.api.user.logout
  33007. * @example _converse.api.user.logout();
  33008. */
  33009. 'logout': function logout() {
  33010. _converse.logOut();
  33011. },
  33012. /**
  33013. * Set and get the user's chat status, also called their *availability*.
  33014. *
  33015. * @namespace _converse.api.user.status
  33016. * @memberOf _converse.api.user
  33017. */
  33018. 'status': {
  33019. /** Return the current user's availability status.
  33020. *
  33021. * @method _converse.api.user.status.get
  33022. * @example _converse.api.user.status.get();
  33023. */
  33024. 'get': function get() {
  33025. return _converse.xmppstatus.get('status');
  33026. },
  33027. /**
  33028. * The user's status can be set to one of the following values:
  33029. *
  33030. * @method _converse.api.user.status.set
  33031. * @param {string} value The user's chat status (e.g. 'away', 'dnd', 'offline', 'online', 'unavailable' or 'xa')
  33032. * @param {string} [message] A custom status message
  33033. *
  33034. * @example this._converse.api.user.status.set('dnd');
  33035. * @example this._converse.api.user.status.set('dnd', 'In a meeting');
  33036. */
  33037. 'set': function set(value, message) {
  33038. var data = {
  33039. 'status': value
  33040. };
  33041. if (!_.includes(_.keys(_converse.STATUS_WEIGHTS), value)) {
  33042. throw new Error('Invalid availability value. See https://xmpp.org/rfcs/rfc3921.html#rfc.section.2.2.2.1');
  33043. }
  33044. if (_.isString(message)) {
  33045. data.status_message = message;
  33046. }
  33047. _converse.xmppstatus.sendPresence(value);
  33048. _converse.xmppstatus.save(data);
  33049. },
  33050. /**
  33051. * Set and retrieve the user's custom status message.
  33052. *
  33053. * @namespace _converse.api.user.status.message
  33054. * @memberOf _converse.api.user.status
  33055. */
  33056. 'message': {
  33057. /**
  33058. * @method _converse.api.user.status.message.get
  33059. * @returns {string} The status message
  33060. * @example const message = _converse.api.user.status.message.get()
  33061. */
  33062. 'get': function get() {
  33063. return _converse.xmppstatus.get('status_message');
  33064. },
  33065. /**
  33066. * @method _converse.api.user.status.message.set
  33067. * @param {string} status The status message
  33068. * @example _converse.api.user.status.message.set('In a meeting');
  33069. */
  33070. 'set': function set(status) {
  33071. _converse.xmppstatus.save({
  33072. 'status_message': status
  33073. });
  33074. }
  33075. }
  33076. }
  33077. },
  33078. /**
  33079. * This grouping allows access to the
  33080. * [configuration settings](/docs/html/configuration.html#configuration-settings)
  33081. * of Converse.
  33082. *
  33083. * @namespace _converse.api.settings
  33084. * @memberOf _converse.api
  33085. */
  33086. 'settings': {
  33087. /**
  33088. * Allows new configuration settings to be specified, or new default values for
  33089. * existing configuration settings to be specified.
  33090. *
  33091. * @method _converse.api.settings.update
  33092. * @param {object} settings The configuration settings
  33093. * @example
  33094. * _converse.api.settings.update({
  33095. * 'enable_foo': true
  33096. * });
  33097. *
  33098. * // The user can then override the default value of the configuration setting when
  33099. * // calling `converse.initialize`.
  33100. * converse.initialize({
  33101. * 'enable_foo': false
  33102. * });
  33103. */
  33104. 'update': function update(settings) {
  33105. u.merge(_converse.default_settings, settings);
  33106. u.merge(_converse, settings);
  33107. u.applyUserSettings(_converse, settings, _converse.user_settings);
  33108. },
  33109. /**
  33110. * @method _converse.api.settings.get
  33111. * @returns {*} Value of the particular configuration setting.
  33112. * @example _converse.api.settings.get("play_sounds");
  33113. */
  33114. 'get': function get(key) {
  33115. if (_.includes(_.keys(_converse.default_settings), key)) {
  33116. return _converse[key];
  33117. }
  33118. },
  33119. /**
  33120. * Set one or many configuration settings.
  33121. *
  33122. * Note, this is not an alternative to calling {@link converse.initialize}, which still needs
  33123. * to be called. Generally, you'd use this method after Converse is already
  33124. * running and you want to change the configuration on-the-fly.
  33125. *
  33126. * @method _converse.api.settings.set
  33127. * @param {Object} [settings] An object containing configuration settings.
  33128. * @param {string} [key] Alternatively to passing in an object, you can pass in a key and a value.
  33129. * @param {string} [value]
  33130. * @example _converse.api.settings.set("play_sounds", true);
  33131. * @example
  33132. * _converse.api.settings.set({
  33133. * "play_sounds", true,
  33134. * "hide_offline_users" true
  33135. * });
  33136. */
  33137. 'set': function set(key, val) {
  33138. var o = {};
  33139. if (_.isObject(key)) {
  33140. _.assignIn(_converse, _.pick(key, _.keys(_converse.default_settings)));
  33141. } else if (_.isString("string")) {
  33142. o[key] = val;
  33143. _.assignIn(_converse, _.pick(o, _.keys(_converse.default_settings)));
  33144. }
  33145. }
  33146. },
  33147. /**
  33148. * Converse and its plugins emit various events which you can listen to via the
  33149. * {@link _converse.api.listen} namespace.
  33150. *
  33151. * Some of these events are also available as [ES2015 Promises](http://es6-features.org/#PromiseUsage)
  33152. * although not all of them could logically act as promises, since some events
  33153. * might be fired multpile times whereas promises are to be resolved (or
  33154. * rejected) only once.
  33155. *
  33156. * Events which are also promises include:
  33157. *
  33158. * * [cachedRoster](/docs/html/events.html#cachedroster)
  33159. * * [chatBoxesFetched](/docs/html/events.html#chatBoxesFetched)
  33160. * * [pluginsInitialized](/docs/html/events.html#pluginsInitialized)
  33161. * * [roster](/docs/html/events.html#roster)
  33162. * * [rosterContactsFetched](/docs/html/events.html#rosterContactsFetched)
  33163. * * [rosterGroupsFetched](/docs/html/events.html#rosterGroupsFetched)
  33164. * * [rosterInitialized](/docs/html/events.html#rosterInitialized)
  33165. * * [statusInitialized](/docs/html/events.html#statusInitialized)
  33166. * * [roomsPanelRendered](/docs/html/events.html#roomsPanelRendered)
  33167. *
  33168. * The various plugins might also provide promises, and they do this by using the
  33169. * `promises.add` api method.
  33170. *
  33171. * @namespace _converse.api.promises
  33172. * @memberOf _converse.api
  33173. */
  33174. 'promises': {
  33175. /**
  33176. * By calling `promises.add`, a new [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
  33177. * is made available for other code or plugins to depend on via the
  33178. * {@link _converse.api.waitUntil} method.
  33179. *
  33180. * Generally, it's the responsibility of the plugin which adds the promise to
  33181. * also resolve it.
  33182. *
  33183. * This is done by calling {@link _converse.api.emit}, which not only resolves the
  33184. * promise, but also emits an event with the same name (which can be listened to
  33185. * via {@link _converse.api.listen}).
  33186. *
  33187. * @method _converse.api.promises.add
  33188. * @param {string|array} [name|names] The name or an array of names for the promise(s) to be added
  33189. * @example _converse.api.promises.add('foo-completed');
  33190. */
  33191. 'add': function add(promises) {
  33192. promises = _.isArray(promises) ? promises : [promises];
  33193. _.each(promises, addPromise);
  33194. }
  33195. },
  33196. /**
  33197. * This namespace lets you access the BOSH tokens
  33198. *
  33199. * @namespace _converse.api.tokens
  33200. * @memberOf _converse.api
  33201. */
  33202. 'tokens': {
  33203. /**
  33204. * @method _converse.api.tokens.get
  33205. * @param {string} [id] The type of token to return ('rid' or 'sid').
  33206. * @returns 'string' A token, either the RID or SID token depending on what's asked for.
  33207. * @example _converse.api.tokens.get('rid');
  33208. */
  33209. 'get': function get(id) {
  33210. if (!_converse.expose_rid_and_sid || _.isUndefined(_converse.connection)) {
  33211. return null;
  33212. }
  33213. if (id.toLowerCase() === 'rid') {
  33214. return _converse.connection.rid || _converse.connection._proto.rid;
  33215. } else if (id.toLowerCase() === 'sid') {
  33216. return _converse.connection.sid || _converse.connection._proto.sid;
  33217. }
  33218. }
  33219. },
  33220. /**
  33221. * Converse emits events to which you can subscribe to.
  33222. *
  33223. * The `listen` namespace exposes methods for creating event listeners
  33224. * (aka handlers) for these events.
  33225. *
  33226. * @namespace _converse.api.listen
  33227. * @memberOf _converse
  33228. */
  33229. 'listen': {
  33230. /**
  33231. * Lets you listen to an event exactly once.
  33232. *
  33233. * @method _converse.api.listen.once
  33234. * @param {string} name The event's name
  33235. * @param {function} callback The callback method to be called when the event is emitted.
  33236. * @param {object} [context] The value of the `this` parameter for the callback.
  33237. * @example _converse.api.listen.once('message', function (messageXML) { ... });
  33238. */
  33239. 'once': _converse.once.bind(_converse),
  33240. /**
  33241. * Lets you subscribe to an event.
  33242. *
  33243. * Every time the event fires, the callback method specified by `callback` will be called.
  33244. *
  33245. * @method _converse.api.listen.on
  33246. * @param {string} name The event's name
  33247. * @param {function} callback The callback method to be called when the event is emitted.
  33248. * @param {object} [context] The value of the `this` parameter for the callback.
  33249. * @example _converse.api.listen.on('message', function (messageXML) { ... });
  33250. */
  33251. 'on': _converse.on.bind(_converse),
  33252. /**
  33253. * To stop listening to an event, you can use the `not` method.
  33254. *
  33255. * Every time the event fires, the callback method specified by `callback` will be called.
  33256. *
  33257. * @method _converse.api.listen.not
  33258. * @param {string} name The event's name
  33259. * @param {function} callback The callback method that is to no longer be called when the event fires
  33260. * @example _converse.api.listen.not('message', function (messageXML);
  33261. */
  33262. 'not': _converse.off.bind(_converse),
  33263. /**
  33264. * Subscribe to an incoming stanza
  33265. *
  33266. * Every a matched stanza is received, the callback method specified by `callback` will be called.
  33267. *
  33268. * @method _converse.api.listen.stanza
  33269. * @param {string} name The stanza's name
  33270. * @param {object} options Matching options
  33271. * (e.g. 'ns' for namespace, 'type' for stanza type, also 'id' and 'from');
  33272. * @param {function} handler The callback method to be called when the stanza appears
  33273. */
  33274. 'stanza': function stanza(name, options, handler) {
  33275. if (_.isFunction(options)) {
  33276. handler = options;
  33277. options = {};
  33278. } else {
  33279. options = options || {};
  33280. }
  33281. _converse.connection.addHandler(handler, options.ns, name, options.type, options.id, options.from, options);
  33282. }
  33283. },
  33284. /**
  33285. * Wait until a promise is resolved
  33286. *
  33287. * @method _converse.api.waitUntil
  33288. * @param {string} name The name of the promise
  33289. * @returns {Promise}
  33290. */
  33291. 'waitUntil': function waitUntil(name) {
  33292. var promise = _converse.promises[name];
  33293. if (_.isUndefined(promise)) {
  33294. return null;
  33295. }
  33296. return promise;
  33297. },
  33298. /**
  33299. * Allows you to send XML stanzas.
  33300. *
  33301. * @method _converse.api.send
  33302. * @example
  33303. * const msg = converse.env.$msg({
  33304. * 'from': 'juliet@example.com/balcony',
  33305. * 'to': 'romeo@example.net',
  33306. * 'type':'chat'
  33307. * });
  33308. * _converse.api.send(msg);
  33309. */
  33310. 'send': function send(stanza) {
  33311. _converse.connection.send(stanza);
  33312. },
  33313. /**
  33314. * Send an IQ stanza and receive a promise
  33315. *
  33316. * @method _converse.api.sendIQ
  33317. * @returns {Promise} A promise which resolves when we receive a `result` stanza
  33318. * or is rejected when we receive an `error` stanza.
  33319. */
  33320. 'sendIQ': function sendIQ(stanza) {
  33321. return new Promise(function (resolve, reject) {
  33322. _converse.connection.sendIQ(stanza, resolve, reject, _converse.IQ_TIMEOUT);
  33323. });
  33324. }
  33325. };
  33326. /**
  33327. * ### The Public API
  33328. *
  33329. * This namespace contains public API methods which are are
  33330. * accessible on the global `converse` object.
  33331. * They are public, because any JavaScript in the
  33332. * page can call them. Public methods therefore don’t expose any sensitive
  33333. * or closured data. To do that, you’ll need to create a plugin, which has
  33334. * access to the private API method.
  33335. *
  33336. * @namespace converse
  33337. */
  33338. var converse = {
  33339. /**
  33340. * Public API method which initializes Converse.
  33341. * This method must always be called when using Converse.
  33342. *
  33343. * @memberOf converse
  33344. * @method initialize
  33345. * @param {object} config A map of [configuration-settings](https://conversejs.org/docs/html/configuration.html#configuration-settings).
  33346. *
  33347. * @example
  33348. * converse.initialize({
  33349. * allow_otr: true,
  33350. * auto_list_rooms: false,
  33351. * auto_subscribe: false,
  33352. * bosh_service_url: 'https://bind.example.com',
  33353. * hide_muc_server: false,
  33354. * i18n: locales['en'],
  33355. * keepalive: true,
  33356. * play_sounds: true,
  33357. * prebind: false,
  33358. * show_controlbox_by_default: true,
  33359. * debug: false,
  33360. * roster_groups: true
  33361. * });
  33362. */
  33363. 'initialize': function initialize(settings, callback) {
  33364. return _converse.initialize(settings, callback);
  33365. },
  33366. /**
  33367. * Exposes methods for adding and removing plugins. You'll need to write a plugin
  33368. * if you want to have access to the private API methods defined further down below.
  33369. *
  33370. * For more information on plugins, read the documentation on [writing a plugin](/docs/html/plugin_development.html).
  33371. *
  33372. * @namespace plugins
  33373. * @memberOf converse
  33374. */
  33375. 'plugins': {
  33376. /** Registers a new plugin.
  33377. *
  33378. * @method converse.plugins.add
  33379. * @param {string} name The name of the plugin
  33380. * @param {object} plugin The plugin object
  33381. *
  33382. * @example
  33383. *
  33384. * const plugin = {
  33385. * initialize: function () {
  33386. * // Gets called as soon as the plugin has been loaded.
  33387. *
  33388. * // Inside this method, you have access to the private
  33389. * // API via `_covnerse.api`.
  33390. *
  33391. * // The private _converse object contains the core logic
  33392. * // and data-structures of Converse.
  33393. * }
  33394. * }
  33395. * converse.plugins.add('myplugin', plugin);
  33396. */
  33397. 'add': function add(name, plugin) {
  33398. plugin.__name__ = name;
  33399. if (!_.isUndefined(_converse.pluggable.plugins[name])) {
  33400. throw new TypeError("Error: plugin with name \"".concat(name, "\" has already been ") + 'registered!');
  33401. } else {
  33402. _converse.pluggable.plugins[name] = plugin;
  33403. }
  33404. }
  33405. },
  33406. /**
  33407. * Utility methods and globals from bundled 3rd party libraries.
  33408. * @memberOf converse
  33409. *
  33410. * @property {function} converse.env.$build - Creates a Strophe.Builder, for creating stanza objects.
  33411. * @property {function} converse.env.$iq - Creates a Strophe.Builder with an <iq/> element as the root.
  33412. * @property {function} converse.env.$msg - Creates a Strophe.Builder with an <message/> element as the root.
  33413. * @property {function} converse.env.$pres - Creates a Strophe.Builder with an <presence/> element as the root.
  33414. * @property {object} converse.env.Backbone - The [Backbone](http://backbonejs.org) object used by Converse to create models and views.
  33415. * @property {function} converse.env.Promise - The Promise implementation used by Converse.
  33416. * @property {function} converse.env.Strophe - The [Strophe](http://strophe.im/strophejs) XMPP library used by Converse.
  33417. * @property {object} converse.env._ - The instance of [lodash](http://lodash.com) used by Converse.
  33418. * @property {function} converse.env.f - And instance of Lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.
  33419. * @property {function} converse.env.b64_sha1 - Utility method from Strophe for creating base64 encoded sha1 hashes.
  33420. * @property {object} converse.env.moment - [Moment](https://momentjs.com) date manipulation library.
  33421. * @property {function} converse.env.sizzle - [Sizzle](https://sizzlejs.com) CSS selector engine.
  33422. * @property {object} converse.env.utils - Module containing common utility methods used by Converse.
  33423. */
  33424. 'env': {
  33425. '$build': $build,
  33426. '$iq': $iq,
  33427. '$msg': $msg,
  33428. '$pres': $pres,
  33429. 'Backbone': Backbone,
  33430. 'Promise': Promise,
  33431. 'Strophe': Strophe,
  33432. '_': _,
  33433. 'f': f,
  33434. 'b64_sha1': b64_sha1,
  33435. 'moment': moment,
  33436. 'sizzle': sizzle,
  33437. 'utils': u
  33438. }
  33439. };
  33440. window.converse = converse;
  33441. window.dispatchEvent(new CustomEvent('converse-loaded'));
  33442. return converse;
  33443. });
  33444. /***/ }),
  33445. /***/ "./src/converse-disco.js":
  33446. /*!*******************************!*\
  33447. !*** ./src/converse-disco.js ***!
  33448. \*******************************/
  33449. /*! no static exports found */
  33450. /***/ (function(module, exports, __webpack_require__) {
  33451. "use strict";
  33452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  33453. // Converse.js
  33454. // http://conversejs.org
  33455. //
  33456. // Copyright (c) 2013-2018, the Converse developers
  33457. // Licensed under the Mozilla Public License (MPLv2)
  33458. /* This is a Converse plugin which add support for XEP-0030: Service Discovery */
  33459. (function (root, factory) {
  33460. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  33461. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33462. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33463. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33464. })(void 0, function (converse, sizzle) {
  33465. var _converse$env = converse.env,
  33466. Backbone = _converse$env.Backbone,
  33467. Promise = _converse$env.Promise,
  33468. Strophe = _converse$env.Strophe,
  33469. $iq = _converse$env.$iq,
  33470. b64_sha1 = _converse$env.b64_sha1,
  33471. utils = _converse$env.utils,
  33472. _ = _converse$env._,
  33473. f = _converse$env.f;
  33474. converse.plugins.add('converse-disco', {
  33475. initialize: function initialize() {
  33476. /* The initialize function gets called as soon as the plugin is
  33477. * loaded by converse.js's plugin machinery.
  33478. */
  33479. var _converse = this._converse; // Promises exposed by this plugin
  33480. _converse.api.promises.add('discoInitialized');
  33481. _converse.DiscoEntity = Backbone.Model.extend({
  33482. /* A Disco Entity is a JID addressable entity that can be queried
  33483. * for features.
  33484. *
  33485. * See XEP-0030: https://xmpp.org/extensions/xep-0030.html
  33486. */
  33487. idAttribute: 'jid',
  33488. initialize: function initialize() {
  33489. this.waitUntilFeaturesDiscovered = utils.getResolveablePromise();
  33490. this.dataforms = new Backbone.Collection();
  33491. this.dataforms.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.dataforms-{this.get('jid')}"));
  33492. this.features = new Backbone.Collection();
  33493. this.features.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.features-".concat(this.get('jid'))));
  33494. this.features.on('add', this.onFeatureAdded, this);
  33495. this.fields = new Backbone.Collection();
  33496. this.fields.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.fields-".concat(this.get('jid'))));
  33497. this.fields.on('add', this.onFieldAdded, this);
  33498. this.identities = new Backbone.Collection();
  33499. this.identities.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.identities-".concat(this.get('jid'))));
  33500. this.fetchFeatures();
  33501. this.items = new _converse.DiscoEntities();
  33502. this.items.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.disco-items-".concat(this.get('jid'))));
  33503. this.items.fetch();
  33504. },
  33505. getIdentity: function getIdentity(category, type) {
  33506. /* Returns a Promise which resolves with a map indicating
  33507. * whether a given identity is provided.
  33508. *
  33509. * Parameters:
  33510. * (String) category - The identity category
  33511. * (String) type - The identity type
  33512. */
  33513. var entity = this;
  33514. return new Promise(function (resolve, reject) {
  33515. function fulfillPromise() {
  33516. var model = entity.identities.findWhere({
  33517. 'category': category,
  33518. 'type': type
  33519. });
  33520. resolve(model);
  33521. }
  33522. entity.waitUntilFeaturesDiscovered.then(fulfillPromise).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33523. });
  33524. },
  33525. hasFeature: function hasFeature(feature) {
  33526. /* Returns a Promise which resolves with a map indicating
  33527. * whether a given feature is supported.
  33528. *
  33529. * Parameters:
  33530. * (String) feature - The feature that might be supported.
  33531. */
  33532. var entity = this;
  33533. return new Promise(function (resolve, reject) {
  33534. function fulfillPromise() {
  33535. if (entity.features.findWhere({
  33536. 'var': feature
  33537. })) {
  33538. resolve(entity);
  33539. } else {
  33540. resolve();
  33541. }
  33542. }
  33543. entity.waitUntilFeaturesDiscovered.then(fulfillPromise).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33544. });
  33545. },
  33546. onFeatureAdded: function onFeatureAdded(feature) {
  33547. feature.entity = this;
  33548. _converse.emit('serviceDiscovered', feature);
  33549. },
  33550. onFieldAdded: function onFieldAdded(field) {
  33551. field.entity = this;
  33552. _converse.emit('discoExtensionFieldDiscovered', field);
  33553. },
  33554. fetchFeatures: function fetchFeatures() {
  33555. var _this = this;
  33556. if (this.features.browserStorage.records.length === 0) {
  33557. this.queryInfo();
  33558. } else {
  33559. this.features.fetch({
  33560. add: true,
  33561. success: function success() {
  33562. _this.waitUntilFeaturesDiscovered.resolve(_this);
  33563. _this.trigger('featuresDiscovered');
  33564. }
  33565. });
  33566. this.identities.fetch({
  33567. add: true
  33568. });
  33569. }
  33570. },
  33571. queryInfo: function queryInfo() {
  33572. var _this2 = this;
  33573. _converse.api.disco.info(this.get('jid'), null).then(function (stanza) {
  33574. return _this2.onInfo(stanza);
  33575. }).catch(function (iq) {
  33576. _this2.waitUntilFeaturesDiscovered.resolve(_this2);
  33577. _converse.log(iq, Strophe.LogLevel.ERROR);
  33578. });
  33579. },
  33580. onDiscoItems: function onDiscoItems(stanza) {
  33581. var _this3 = this;
  33582. _.each(sizzle("query[xmlns=\"".concat(Strophe.NS.DISCO_ITEMS, "\"] item"), stanza), function (item) {
  33583. if (item.getAttribute("node")) {
  33584. // XXX: ignore nodes for now.
  33585. // See: https://xmpp.org/extensions/xep-0030.html#items-nodes
  33586. return;
  33587. }
  33588. var jid = item.getAttribute('jid');
  33589. if (_.isUndefined(_this3.items.get(jid))) {
  33590. var entity = _converse.disco_entities.get(jid);
  33591. if (entity) {
  33592. _this3.items.add(entity);
  33593. } else {
  33594. _this3.items.create({
  33595. 'jid': jid
  33596. });
  33597. }
  33598. }
  33599. });
  33600. },
  33601. queryForItems: function queryForItems() {
  33602. var _this4 = this;
  33603. if (_.isEmpty(this.identities.where({
  33604. 'category': 'server'
  33605. }))) {
  33606. // Don't fetch features and items if this is not a
  33607. // server or a conference component.
  33608. return;
  33609. }
  33610. _converse.api.disco.items(this.get('jid')).then(function (stanza) {
  33611. return _this4.onDiscoItems(stanza);
  33612. });
  33613. },
  33614. onInfo: function onInfo(stanza) {
  33615. var _this5 = this;
  33616. _.forEach(stanza.querySelectorAll('identity'), function (identity) {
  33617. _this5.identities.create({
  33618. 'category': identity.getAttribute('category'),
  33619. 'type': identity.getAttribute('type'),
  33620. 'name': identity.getAttribute('name')
  33621. });
  33622. });
  33623. _.each(sizzle("x[type=\"result\"][xmlns=\"".concat(Strophe.NS.XFORM, "\"]"), stanza), function (form) {
  33624. var data = {};
  33625. _.each(form.querySelectorAll('field'), function (field) {
  33626. data[field.getAttribute('var')] = {
  33627. 'value': _.get(field.querySelector('value'), 'textContent'),
  33628. 'type': field.getAttribute('type')
  33629. };
  33630. });
  33631. _this5.dataforms.create(data);
  33632. });
  33633. if (stanza.querySelector("feature[var=\"".concat(Strophe.NS.DISCO_ITEMS, "\"]"))) {
  33634. this.queryForItems();
  33635. }
  33636. _.forEach(stanza.querySelectorAll('feature'), function (feature) {
  33637. _this5.features.create({
  33638. 'var': feature.getAttribute('var'),
  33639. 'from': stanza.getAttribute('from')
  33640. });
  33641. }); // XEP-0128 Service Discovery Extensions
  33642. _.forEach(sizzle('x[type="result"][xmlns="jabber:x:data"] field', stanza), function (field) {
  33643. _this5.fields.create({
  33644. 'var': field.getAttribute('var'),
  33645. 'value': _.get(field.querySelector('value'), 'textContent'),
  33646. 'from': stanza.getAttribute('from')
  33647. });
  33648. });
  33649. this.waitUntilFeaturesDiscovered.resolve(this);
  33650. this.trigger('featuresDiscovered');
  33651. }
  33652. });
  33653. _converse.DiscoEntities = Backbone.Collection.extend({
  33654. model: _converse.DiscoEntity,
  33655. fetchEntities: function fetchEntities() {
  33656. var _this6 = this;
  33657. return new Promise(function (resolve, reject) {
  33658. _this6.fetch({
  33659. add: true,
  33660. success: resolve,
  33661. error: function error() {
  33662. reject(new Error("Could not fetch disco entities"));
  33663. }
  33664. });
  33665. });
  33666. }
  33667. });
  33668. function addClientFeatures() {
  33669. // See http://xmpp.org/registrar/disco-categories.html
  33670. _converse.api.disco.own.identities.add('client', 'web', 'Converse');
  33671. _converse.api.disco.own.features.add(Strophe.NS.BOSH);
  33672. _converse.api.disco.own.features.add(Strophe.NS.CHATSTATES);
  33673. _converse.api.disco.own.features.add(Strophe.NS.DISCO_INFO);
  33674. _converse.api.disco.own.features.add(Strophe.NS.ROSTERX); // Limited support
  33675. if (_converse.message_carbons) {
  33676. _converse.api.disco.own.features.add(Strophe.NS.CARBONS);
  33677. }
  33678. _converse.emit('addClientFeatures');
  33679. return this;
  33680. }
  33681. function initStreamFeatures() {
  33682. _converse.stream_features = new Backbone.Collection();
  33683. _converse.stream_features.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.stream-features-".concat(_converse.bare_jid)));
  33684. _converse.stream_features.fetch({
  33685. success: function success(collection) {
  33686. if (collection.length === 0 && _converse.connection.features) {
  33687. _.forEach(_converse.connection.features.childNodes, function (feature) {
  33688. _converse.stream_features.create({
  33689. 'name': feature.nodeName,
  33690. 'xmlns': feature.getAttribute('xmlns')
  33691. });
  33692. });
  33693. }
  33694. }
  33695. });
  33696. _converse.emit('streamFeaturesAdded');
  33697. }
  33698. function initializeDisco() {
  33699. addClientFeatures();
  33700. _converse.connection.addHandler(onDiscoInfoRequest, Strophe.NS.DISCO_INFO, 'iq', 'get', null, null);
  33701. _converse.disco_entities = new _converse.DiscoEntities();
  33702. _converse.disco_entities.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.disco-entities-".concat(_converse.bare_jid)));
  33703. _converse.disco_entities.fetchEntities().then(function (collection) {
  33704. if (collection.length === 0 || !collection.get(_converse.domain)) {
  33705. // If we don't have an entity for our own XMPP server,
  33706. // create one.
  33707. _converse.disco_entities.create({
  33708. 'jid': _converse.domain
  33709. });
  33710. }
  33711. _converse.emit('discoInitialized');
  33712. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33713. }
  33714. _converse.api.listen.on('sessionInitialized', initStreamFeatures);
  33715. _converse.api.listen.on('reconnected', initializeDisco);
  33716. _converse.api.listen.on('connected', initializeDisco);
  33717. _converse.api.listen.on('beforeTearDown', function () {
  33718. if (_converse.disco_entities) {
  33719. _converse.disco_entities.each(function (entity) {
  33720. entity.features.reset();
  33721. entity.features.browserStorage._clear();
  33722. });
  33723. _converse.disco_entities.reset();
  33724. _converse.disco_entities.browserStorage._clear();
  33725. }
  33726. });
  33727. var plugin = this;
  33728. plugin._identities = [];
  33729. plugin._features = [];
  33730. function onDiscoInfoRequest(stanza) {
  33731. var node = stanza.getElementsByTagName('query')[0].getAttribute('node');
  33732. var attrs = {
  33733. xmlns: Strophe.NS.DISCO_INFO
  33734. };
  33735. if (node) {
  33736. attrs.node = node;
  33737. }
  33738. var iqresult = $iq({
  33739. 'type': 'result',
  33740. 'id': stanza.getAttribute('id')
  33741. });
  33742. var from = stanza.getAttribute('from');
  33743. if (from !== null) {
  33744. iqresult.attrs({
  33745. 'to': from
  33746. });
  33747. }
  33748. iqresult.c('query', attrs);
  33749. _.each(plugin._identities, function (identity) {
  33750. var attrs = {
  33751. 'category': identity.category,
  33752. 'type': identity.type
  33753. };
  33754. if (identity.name) {
  33755. attrs.name = identity.name;
  33756. }
  33757. if (identity.lang) {
  33758. attrs['xml:lang'] = identity.lang;
  33759. }
  33760. iqresult.c('identity', attrs).up();
  33761. });
  33762. _.each(plugin._features, function (feature) {
  33763. iqresult.c('feature', {
  33764. 'var': feature
  33765. }).up();
  33766. });
  33767. _converse.connection.send(iqresult.tree());
  33768. return true;
  33769. }
  33770. _.extend(_converse.api, {
  33771. /**
  33772. * The XEP-0030 service discovery API
  33773. *
  33774. * This API lets you discover information about entities on the
  33775. * XMPP network.
  33776. *
  33777. * @namespace _converse.api.disco
  33778. * @memberOf _converse.api
  33779. */
  33780. 'disco': {
  33781. /**
  33782. * @namespace _converse.api.disco.stream
  33783. * @memberOf _converse.api.disco
  33784. */
  33785. 'stream': {
  33786. /**
  33787. * @method _converse.api.disco.stream.getFeature
  33788. * @param {String} name The feature name
  33789. * @param {String} xmlns The XML namespace
  33790. * @example _converse.api.disco.stream.getFeature('ver', 'urn:xmpp:features:rosterver')
  33791. */
  33792. 'getFeature': function getFeature(name, xmlns) {
  33793. if (_.isNil(name) || _.isNil(xmlns)) {
  33794. throw new Error("name and xmlns need to be provided when calling disco.stream.getFeature");
  33795. }
  33796. return _converse.stream_features.findWhere({
  33797. 'name': name,
  33798. 'xmlns': xmlns
  33799. });
  33800. }
  33801. },
  33802. /**
  33803. * @namespace _converse.api.disco.own
  33804. * @memberOf _converse.api.disco
  33805. */
  33806. 'own': {
  33807. /**
  33808. * @namespace _converse.api.disco.own.identities
  33809. * @memberOf _converse.api.disco.own
  33810. */
  33811. 'identities': {
  33812. /**
  33813. * Lets you add new identities for this client (i.e. instance of Converse)
  33814. * @method _converse.api.disco.own.identities.add
  33815. *
  33816. * @param {String} category - server, client, gateway, directory, etc.
  33817. * @param {String} type - phone, pc, web, etc.
  33818. * @param {String} name - "Converse"
  33819. * @param {String} lang - en, el, de, etc.
  33820. *
  33821. * @example _converse.api.disco.own.identities.clear();
  33822. */
  33823. add: function add(category, type, name, lang) {
  33824. for (var i = 0; i < plugin._identities.length; i++) {
  33825. if (plugin._identities[i].category == category && plugin._identities[i].type == type && plugin._identities[i].name == name && plugin._identities[i].lang == lang) {
  33826. return false;
  33827. }
  33828. }
  33829. plugin._identities.push({
  33830. category: category,
  33831. type: type,
  33832. name: name,
  33833. lang: lang
  33834. });
  33835. },
  33836. /**
  33837. * Clears all previously registered identities.
  33838. * @method _converse.api.disco.own.identities.clear
  33839. * @example _converse.api.disco.own.identities.clear();
  33840. */
  33841. clear: function clear() {
  33842. plugin._identities = [];
  33843. },
  33844. /**
  33845. * Returns all of the identities registered for this client
  33846. * (i.e. instance of Converse).
  33847. * @method _converse.api.disco.identities.get
  33848. * @example const identities = _converse.api.disco.own.identities.get();
  33849. */
  33850. get: function get() {
  33851. return plugin._identities;
  33852. }
  33853. },
  33854. /**
  33855. * @namespace _converse.api.disco.own.features
  33856. * @memberOf _converse.api.disco.own
  33857. */
  33858. 'features': {
  33859. /**
  33860. * Lets you register new disco features for this client (i.e. instance of Converse)
  33861. * @method _converse.api.disco.own.features.add
  33862. * @param {String} name - e.g. http://jabber.org/protocol/caps
  33863. * @example _converse.api.disco.own.features.add("http://jabber.org/protocol/caps");
  33864. */
  33865. add: function add(name) {
  33866. for (var i = 0; i < plugin._features.length; i++) {
  33867. if (plugin._features[i] == name) {
  33868. return false;
  33869. }
  33870. }
  33871. plugin._features.push(name);
  33872. },
  33873. /**
  33874. * Clears all previously registered features.
  33875. * @method _converse.api.disco.own.features.clear
  33876. * @example _converse.api.disco.own.features.clear();
  33877. */
  33878. clear: function clear() {
  33879. plugin._features = [];
  33880. },
  33881. /**
  33882. * Returns all of the features registered for this client (i.e. instance of Converse).
  33883. * @method _converse.api.disco.own.features.get
  33884. * @example const features = _converse.api.disco.own.features.get();
  33885. */
  33886. get: function get() {
  33887. return plugin._features;
  33888. }
  33889. }
  33890. },
  33891. /**
  33892. * Query for information about an XMPP entity
  33893. *
  33894. * @method _converse.api.disco.info
  33895. * @param {string} jid The Jabber ID of the entity to query
  33896. * @param {string} [node] A specific node identifier associated with the JID
  33897. * @returns {promise} Promise which resolves once we have a result from the server.
  33898. */
  33899. 'info': function info(jid, node) {
  33900. var attrs = {
  33901. xmlns: Strophe.NS.DISCO_INFO
  33902. };
  33903. if (node) {
  33904. attrs.node = node;
  33905. }
  33906. var info = $iq({
  33907. 'from': _converse.connection.jid,
  33908. 'to': jid,
  33909. 'type': 'get'
  33910. }).c('query', attrs);
  33911. return _converse.api.sendIQ(info);
  33912. },
  33913. /**
  33914. * Query for items associated with an XMPP entity
  33915. *
  33916. * @method _converse.api.disco.items
  33917. * @param {string} jid The Jabber ID of the entity to query for items
  33918. * @param {string} [node] A specific node identifier associated with the JID
  33919. * @returns {promise} Promise which resolves once we have a result from the server.
  33920. */
  33921. 'items': function items(jid, node) {
  33922. var attrs = {
  33923. 'xmlns': Strophe.NS.DISCO_ITEMS
  33924. };
  33925. if (node) {
  33926. attrs.node = node;
  33927. }
  33928. return _converse.api.sendIQ($iq({
  33929. 'from': _converse.connection.jid,
  33930. 'to': jid,
  33931. 'type': 'get'
  33932. }).c('query', attrs));
  33933. },
  33934. /**
  33935. * Namespace for methods associated with disco entities
  33936. *
  33937. * @namespace _converse.api.disco.entities
  33938. * @memberOf _converse.api.disco
  33939. */
  33940. 'entities': {
  33941. /**
  33942. * Get the the corresponding `DiscoEntity` instance.
  33943. *
  33944. * @method _converse.api.disco.entities.get
  33945. * @param {string} jid The Jabber ID of the entity
  33946. * @param {boolean} [create] Whether the entity should be created if it doesn't exist.
  33947. * @example _converse.api.disco.entities.get(jid);
  33948. */
  33949. 'get': function get(jid) {
  33950. var create = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  33951. return _converse.api.waitUntil('discoInitialized').then(function () {
  33952. if (_.isNil(jid)) {
  33953. return _converse.disco_entities;
  33954. }
  33955. var entity = _converse.disco_entities.get(jid);
  33956. if (entity || !create) {
  33957. return entity;
  33958. }
  33959. return _converse.disco_entities.create({
  33960. 'jid': jid
  33961. });
  33962. });
  33963. }
  33964. },
  33965. /**
  33966. * Used to determine whether an entity supports a given feature.
  33967. *
  33968. * @method _converse.api.disco.supports
  33969. * @param {string} feature The feature that might be
  33970. * supported. In the XML stanza, this is the `var`
  33971. * attribute of the `<feature>` element. For
  33972. * example: `http://jabber.org/protocol/muc`
  33973. * @param {string} jid The JID of the entity
  33974. * (and its associated items) which should be queried
  33975. * @returns {promise} A promise which resolves with a list containing
  33976. * _converse.Entity instances representing the entity
  33977. * itself or those items associated with the entity if
  33978. * they support the given feature.
  33979. *
  33980. * @example
  33981. * _converse.api.disco.supports(Strophe.NS.MAM, _converse.bare_jid)
  33982. * .then(value => {
  33983. * // `value` is a map with two keys, `supported` and `feature`.
  33984. * if (value.supported) {
  33985. * // The feature is supported
  33986. * } else {
  33987. * // The feature is not supported
  33988. * }
  33989. * }).catch(() => {
  33990. * _converse.log(
  33991. * "Error or timeout while checking for feature support",
  33992. * Strophe.LogLevel.ERROR
  33993. * );
  33994. * });
  33995. */
  33996. 'supports': function supports(feature, jid) {
  33997. if (_.isNil(jid)) {
  33998. throw new TypeError('api.disco.supports: You need to provide an entity JID');
  33999. }
  34000. return _converse.api.waitUntil('discoInitialized').then(function () {
  34001. return _converse.api.disco.entities.get(jid, true);
  34002. }).then(function (entity) {
  34003. return entity.waitUntilFeaturesDiscovered;
  34004. }).then(function (entity) {
  34005. var promises = _.concat(entity.items.map(function (item) {
  34006. return item.hasFeature(feature);
  34007. }), entity.hasFeature(feature));
  34008. return Promise.all(promises);
  34009. }).then(function (result) {
  34010. return f.filter(f.isObject, result);
  34011. });
  34012. },
  34013. /**
  34014. * Refresh the features (and fields and identities) associated with a
  34015. * disco entity by refetching them from the server
  34016. *
  34017. * @method _converse.api.disco.refreshFeatures
  34018. * @param {string} jid The JID of the entity whose features are refreshed.
  34019. * @returns {promise} A promise which resolves once the features have been refreshed
  34020. * @example
  34021. * await _converse.api.disco.refreshFeatures('room@conference.example.org');
  34022. */
  34023. 'refreshFeatures': function refreshFeatures(jid) {
  34024. if (_.isNil(jid)) {
  34025. throw new TypeError('api.disco.refreshFeatures: You need to provide an entity JID');
  34026. }
  34027. return _converse.api.waitUntil('discoInitialized').then(function () {
  34028. return _converse.api.disco.entities.get(jid, true);
  34029. }).then(function (entity) {
  34030. entity.features.reset();
  34031. entity.fields.reset();
  34032. entity.identities.reset();
  34033. entity.waitUntilFeaturesDiscovered = utils.getResolveablePromise();
  34034. entity.queryInfo();
  34035. return entity.waitUntilFeaturesDiscovered();
  34036. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34037. },
  34038. /**
  34039. * Return all the features associated with a disco entity
  34040. *
  34041. * @method _converse.api.disco.getFeatures
  34042. * @param {string} jid The JID of the entity whose features are returned.
  34043. * @returns {promise} A promise which resolves with the returned features
  34044. * @example
  34045. * const features = await _converse.api.disco.getFeatures('room@conference.example.org');
  34046. */
  34047. 'getFeatures': function getFeatures(jid) {
  34048. if (_.isNil(jid)) {
  34049. throw new TypeError('api.disco.getFeatures: You need to provide an entity JID');
  34050. }
  34051. return _converse.api.waitUntil('discoInitialized').then(function () {
  34052. return _converse.api.disco.entities.get(jid, true);
  34053. }).then(function (entity) {
  34054. return entity.waitUntilFeaturesDiscovered;
  34055. }).then(function (entity) {
  34056. return entity.features;
  34057. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34058. },
  34059. /**
  34060. * Return all the service discovery extensions fields
  34061. * associated with an entity.
  34062. *
  34063. * See [XEP-0129: Service Discovery Extensions](https://xmpp.org/extensions/xep-0128.html)
  34064. *
  34065. * @method _converse.api.disco.getFields
  34066. * @param {string} jid The JID of the entity whose fields are returned.
  34067. * @example
  34068. * const fields = await _converse.api.disco.getFields('room@conference.example.org');
  34069. */
  34070. 'getFields': function getFields(jid) {
  34071. if (_.isNil(jid)) {
  34072. throw new TypeError('api.disco.getFields: You need to provide an entity JID');
  34073. }
  34074. return _converse.api.waitUntil('discoInitialized').then(function () {
  34075. return _converse.api.disco.entities.get(jid, true);
  34076. }).then(function (entity) {
  34077. return entity.waitUntilFeaturesDiscovered;
  34078. }).then(function (entity) {
  34079. return entity.fields;
  34080. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34081. },
  34082. /**
  34083. * Get the identity (with the given category and type) for a given disco entity.
  34084. *
  34085. * For example, when determining support for PEP (personal eventing protocol), you
  34086. * want to know whether the user's own JID has an identity with
  34087. * `category='pubsub'` and `type='pep'` as explained in this section of
  34088. * XEP-0163: https://xmpp.org/extensions/xep-0163.html#support
  34089. *
  34090. * @method _converse.api.disco.getIdentity
  34091. * @param {string} The identity category.
  34092. * In the XML stanza, this is the `category`
  34093. * attribute of the `<identity>` element.
  34094. * For example: 'pubsub'
  34095. * @param {string} type The identity type.
  34096. * In the XML stanza, this is the `type`
  34097. * attribute of the `<identity>` element.
  34098. * For example: 'pep'
  34099. * @param {string} jid The JID of the entity which might have the identity
  34100. * @returns {promise} A promise which resolves with a map indicating
  34101. * whether an identity with a given type is provided by the entity.
  34102. * @example
  34103. * _converse.api.disco.getIdentity('pubsub', 'pep', _converse.bare_jid).then(
  34104. * function (identity) {
  34105. * if (_.isNil(identity)) {
  34106. * // The entity DOES NOT have this identity
  34107. * } else {
  34108. * // The entity DOES have this identity
  34109. * }
  34110. * }
  34111. * ).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34112. */
  34113. 'getIdentity': function getIdentity(category, type, jid) {
  34114. return _converse.api.disco.entities.get(jid, true).then(function (e) {
  34115. return e.getIdentity(category, type);
  34116. });
  34117. }
  34118. }
  34119. });
  34120. }
  34121. });
  34122. });
  34123. /***/ }),
  34124. /***/ "./src/converse-dragresize.js":
  34125. /*!************************************!*\
  34126. !*** ./src/converse-dragresize.js ***!
  34127. \************************************/
  34128. /*! no static exports found */
  34129. /***/ (function(module, exports, __webpack_require__) {
  34130. "use strict";
  34131. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34132. // Converse.js (A browser based XMPP chat client)
  34133. // http://conversejs.org
  34134. //
  34135. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  34136. // Licensed under the Mozilla Public License (MPLv2)
  34137. //
  34138. /*global define, window, document */
  34139. (function (root, factory) {
  34140. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/dragresize.html */ "./src/templates/dragresize.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34141. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34142. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34143. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34144. })(void 0, function (converse, tpl_dragresize) {
  34145. "use strict";
  34146. var _ = converse.env._;
  34147. function renderDragResizeHandles(_converse, view) {
  34148. var flyout = view.el.querySelector('.box-flyout');
  34149. var div = document.createElement('div');
  34150. div.innerHTML = tpl_dragresize();
  34151. flyout.insertBefore(div, flyout.firstChild);
  34152. }
  34153. converse.plugins.add('converse-dragresize', {
  34154. /* Plugin dependencies are other plugins which might be
  34155. * overridden or relied upon, and therefore need to be loaded before
  34156. * this plugin.
  34157. *
  34158. * If the setting "strict_plugin_dependencies" is set to true,
  34159. * an error will be raised if the plugin is not found. By default it's
  34160. * false, which means these plugins are only loaded opportunistically.
  34161. *
  34162. * NB: These plugins need to have already been loaded via require.js.
  34163. */
  34164. dependencies: ["converse-chatview", "converse-headline", "converse-muc-views"],
  34165. enabled: function enabled(_converse) {
  34166. return _converse.view_mode == 'overlayed';
  34167. },
  34168. overrides: {
  34169. // Overrides mentioned here will be picked up by converse.js's
  34170. // plugin architecture they will replace existing methods on the
  34171. // relevant objects or classes.
  34172. //
  34173. // New functions which don't exist yet can also be added.
  34174. registerGlobalEventHandlers: function registerGlobalEventHandlers() {
  34175. var that = this;
  34176. document.addEventListener('mousemove', function (ev) {
  34177. if (!that.resizing || !that.allow_dragresize) {
  34178. return true;
  34179. }
  34180. ev.preventDefault();
  34181. that.resizing.chatbox.resizeChatBox(ev);
  34182. });
  34183. document.addEventListener('mouseup', function (ev) {
  34184. if (!that.resizing || !that.allow_dragresize) {
  34185. return true;
  34186. }
  34187. ev.preventDefault();
  34188. var height = that.applyDragResistance(that.resizing.chatbox.height, that.resizing.chatbox.model.get('default_height'));
  34189. var width = that.applyDragResistance(that.resizing.chatbox.width, that.resizing.chatbox.model.get('default_width'));
  34190. if (that.connection.connected) {
  34191. that.resizing.chatbox.model.save({
  34192. 'height': height
  34193. });
  34194. that.resizing.chatbox.model.save({
  34195. 'width': width
  34196. });
  34197. } else {
  34198. that.resizing.chatbox.model.set({
  34199. 'height': height
  34200. });
  34201. that.resizing.chatbox.model.set({
  34202. 'width': width
  34203. });
  34204. }
  34205. that.resizing = null;
  34206. });
  34207. return this.__super__.registerGlobalEventHandlers.apply(this, arguments);
  34208. },
  34209. ChatBox: {
  34210. initialize: function initialize() {
  34211. var _converse = this.__super__._converse;
  34212. var result = this.__super__.initialize.apply(this, arguments),
  34213. height = this.get('height'),
  34214. width = this.get('width'),
  34215. save = this.get('id') === 'controlbox' ? this.set.bind(this) : this.save.bind(this);
  34216. save({
  34217. 'height': _converse.applyDragResistance(height, this.get('default_height')),
  34218. 'width': _converse.applyDragResistance(width, this.get('default_width'))
  34219. });
  34220. return result;
  34221. }
  34222. },
  34223. ChatBoxView: {
  34224. events: {
  34225. 'mousedown .dragresize-top': 'onStartVerticalResize',
  34226. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  34227. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  34228. },
  34229. initialize: function initialize() {
  34230. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  34231. this.__super__.initialize.apply(this, arguments);
  34232. },
  34233. render: function render() {
  34234. var result = this.__super__.render.apply(this, arguments);
  34235. renderDragResizeHandles(this.__super__._converse, this);
  34236. this.setWidth();
  34237. return result;
  34238. },
  34239. setWidth: function setWidth() {
  34240. // If a custom width is applied (due to drag-resizing),
  34241. // then we need to set the width of the .chatbox element as well.
  34242. if (this.model.get('width')) {
  34243. this.el.style.width = this.model.get('width');
  34244. }
  34245. },
  34246. _show: function _show() {
  34247. this.initDragResize().setDimensions();
  34248. this.__super__._show.apply(this, arguments);
  34249. },
  34250. initDragResize: function initDragResize() {
  34251. /* Determine and store the default box size.
  34252. * We need this information for the drag-resizing feature.
  34253. */
  34254. var _converse = this.__super__._converse,
  34255. flyout = this.el.querySelector('.box-flyout'),
  34256. style = window.getComputedStyle(flyout);
  34257. if (_.isUndefined(this.model.get('height'))) {
  34258. var height = parseInt(style.height.replace(/px$/, ''), 10),
  34259. width = parseInt(style.width.replace(/px$/, ''), 10);
  34260. this.model.set('height', height);
  34261. this.model.set('default_height', height);
  34262. this.model.set('width', width);
  34263. this.model.set('default_width', width);
  34264. }
  34265. var min_width = style['min-width'];
  34266. var min_height = style['min-height'];
  34267. this.model.set('min_width', min_width.endsWith('px') ? Number(min_width.replace(/px$/, '')) : 0);
  34268. this.model.set('min_height', min_height.endsWith('px') ? Number(min_height.replace(/px$/, '')) : 0); // Initialize last known mouse position
  34269. this.prev_pageY = 0;
  34270. this.prev_pageX = 0;
  34271. if (_converse.connection.connected) {
  34272. this.height = this.model.get('height');
  34273. this.width = this.model.get('width');
  34274. }
  34275. return this;
  34276. },
  34277. setDimensions: function setDimensions() {
  34278. // Make sure the chat box has the right height and width.
  34279. this.adjustToViewport();
  34280. this.setChatBoxHeight(this.model.get('height'));
  34281. this.setChatBoxWidth(this.model.get('width'));
  34282. },
  34283. setChatBoxHeight: function setChatBoxHeight(height) {
  34284. var _converse = this.__super__._converse;
  34285. if (height) {
  34286. height = _converse.applyDragResistance(height, this.model.get('default_height')) + 'px';
  34287. } else {
  34288. height = "";
  34289. }
  34290. var flyout_el = this.el.querySelector('.box-flyout');
  34291. if (!_.isNull(flyout_el)) {
  34292. flyout_el.style.height = height;
  34293. }
  34294. },
  34295. setChatBoxWidth: function setChatBoxWidth(width) {
  34296. var _converse = this.__super__._converse;
  34297. if (width) {
  34298. width = _converse.applyDragResistance(width, this.model.get('default_width')) + 'px';
  34299. } else {
  34300. width = "";
  34301. }
  34302. this.el.style.width = width;
  34303. var flyout_el = this.el.querySelector('.box-flyout');
  34304. if (!_.isNull(flyout_el)) {
  34305. flyout_el.style.width = width;
  34306. }
  34307. },
  34308. adjustToViewport: function adjustToViewport() {
  34309. /* Event handler called when viewport gets resized. We remove
  34310. * custom width/height from chat boxes.
  34311. */
  34312. var viewport_width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
  34313. var viewport_height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
  34314. if (viewport_width <= 480) {
  34315. this.model.set('height', undefined);
  34316. this.model.set('width', undefined);
  34317. } else if (viewport_width <= this.model.get('width')) {
  34318. this.model.set('width', undefined);
  34319. } else if (viewport_height <= this.model.get('height')) {
  34320. this.model.set('height', undefined);
  34321. }
  34322. },
  34323. onStartVerticalResize: function onStartVerticalResize(ev) {
  34324. var _converse = this.__super__._converse;
  34325. if (!_converse.allow_dragresize) {
  34326. return true;
  34327. } // Record element attributes for mouseMove().
  34328. var flyout = this.el.querySelector('.box-flyout'),
  34329. style = window.getComputedStyle(flyout);
  34330. this.height = parseInt(style.height.replace(/px$/, ''), 10);
  34331. _converse.resizing = {
  34332. 'chatbox': this,
  34333. 'direction': 'top'
  34334. };
  34335. this.prev_pageY = ev.pageY;
  34336. },
  34337. onStartHorizontalResize: function onStartHorizontalResize(ev) {
  34338. var _converse = this.__super__._converse;
  34339. if (!_converse.allow_dragresize) {
  34340. return true;
  34341. }
  34342. var flyout = this.el.querySelector('.box-flyout'),
  34343. style = window.getComputedStyle(flyout);
  34344. this.width = parseInt(style.width.replace(/px$/, ''), 10);
  34345. _converse.resizing = {
  34346. 'chatbox': this,
  34347. 'direction': 'left'
  34348. };
  34349. this.prev_pageX = ev.pageX;
  34350. },
  34351. onStartDiagonalResize: function onStartDiagonalResize(ev) {
  34352. var _converse = this.__super__._converse;
  34353. this.onStartHorizontalResize(ev);
  34354. this.onStartVerticalResize(ev);
  34355. _converse.resizing.direction = 'topleft';
  34356. },
  34357. resizeChatBox: function resizeChatBox(ev) {
  34358. var diff;
  34359. var _converse = this.__super__._converse;
  34360. if (_converse.resizing.direction.indexOf('top') === 0) {
  34361. diff = ev.pageY - this.prev_pageY;
  34362. if (diff) {
  34363. this.height = this.height - diff > (this.model.get('min_height') || 0) ? this.height - diff : this.model.get('min_height');
  34364. this.prev_pageY = ev.pageY;
  34365. this.setChatBoxHeight(this.height);
  34366. }
  34367. }
  34368. if (_.includes(_converse.resizing.direction, 'left')) {
  34369. diff = this.prev_pageX - ev.pageX;
  34370. if (diff) {
  34371. this.width = this.width + diff > (this.model.get('min_width') || 0) ? this.width + diff : this.model.get('min_width');
  34372. this.prev_pageX = ev.pageX;
  34373. this.setChatBoxWidth(this.width);
  34374. }
  34375. }
  34376. }
  34377. },
  34378. HeadlinesBoxView: {
  34379. events: {
  34380. 'mousedown .dragresize-top': 'onStartVerticalResize',
  34381. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  34382. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  34383. },
  34384. initialize: function initialize() {
  34385. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  34386. return this.__super__.initialize.apply(this, arguments);
  34387. },
  34388. render: function render() {
  34389. var result = this.__super__.render.apply(this, arguments);
  34390. renderDragResizeHandles(this.__super__._converse, this);
  34391. this.setWidth();
  34392. return result;
  34393. }
  34394. },
  34395. ControlBoxView: {
  34396. events: {
  34397. 'mousedown .dragresize-top': 'onStartVerticalResize',
  34398. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  34399. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  34400. },
  34401. initialize: function initialize() {
  34402. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  34403. this.__super__.initialize.apply(this, arguments);
  34404. },
  34405. render: function render() {
  34406. var result = this.__super__.render.apply(this, arguments);
  34407. renderDragResizeHandles(this.__super__._converse, this);
  34408. this.setWidth();
  34409. return result;
  34410. },
  34411. renderLoginPanel: function renderLoginPanel() {
  34412. var result = this.__super__.renderLoginPanel.apply(this, arguments);
  34413. this.initDragResize().setDimensions();
  34414. return result;
  34415. },
  34416. renderControlBoxPane: function renderControlBoxPane() {
  34417. var result = this.__super__.renderControlBoxPane.apply(this, arguments);
  34418. this.initDragResize().setDimensions();
  34419. return result;
  34420. }
  34421. },
  34422. ChatRoomView: {
  34423. events: {
  34424. 'mousedown .dragresize-top': 'onStartVerticalResize',
  34425. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  34426. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  34427. },
  34428. initialize: function initialize() {
  34429. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  34430. this.__super__.initialize.apply(this, arguments);
  34431. },
  34432. render: function render() {
  34433. var result = this.__super__.render.apply(this, arguments);
  34434. renderDragResizeHandles(this.__super__._converse, this);
  34435. this.setWidth();
  34436. return result;
  34437. }
  34438. }
  34439. },
  34440. initialize: function initialize() {
  34441. /* The initialize function gets called as soon as the plugin is
  34442. * loaded by converse.js's plugin machinery.
  34443. */
  34444. var _converse = this._converse;
  34445. _converse.api.settings.update({
  34446. allow_dragresize: true
  34447. });
  34448. _converse.applyDragResistance = function (value, default_value) {
  34449. /* This method applies some resistance around the
  34450. * default_value. If value is close enough to
  34451. * default_value, then default_value is returned instead.
  34452. */
  34453. if (_.isUndefined(value)) {
  34454. return undefined;
  34455. } else if (_.isUndefined(default_value)) {
  34456. return value;
  34457. }
  34458. var resistance = 10;
  34459. if (value !== default_value && Math.abs(value - default_value) < resistance) {
  34460. return default_value;
  34461. }
  34462. return value;
  34463. };
  34464. }
  34465. });
  34466. });
  34467. /***/ }),
  34468. /***/ "./src/converse-embedded.js":
  34469. /*!**********************************!*\
  34470. !*** ./src/converse-embedded.js ***!
  34471. \**********************************/
  34472. /*! no static exports found */
  34473. /***/ (function(module, exports, __webpack_require__) {
  34474. "use strict";
  34475. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34476. // Converse.js
  34477. // http://conversejs.org
  34478. //
  34479. // Copyright (c) 2012-2018, the Converse.js developers
  34480. // Licensed under the Mozilla Public License (MPLv2)
  34481. (function (root, factory) {
  34482. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34483. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34484. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34485. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34486. })(void 0, function (converse) {
  34487. "use strict";
  34488. var _converse$env = converse.env,
  34489. Backbone = _converse$env.Backbone,
  34490. _ = _converse$env._;
  34491. converse.plugins.add('converse-embedded', {
  34492. enabled: function enabled(_converse) {
  34493. return _converse.view_mode === 'embedded';
  34494. },
  34495. initialize: function initialize() {
  34496. /* The initialize function gets called as soon as the plugin is
  34497. * loaded by converse.js's plugin machinery.
  34498. */
  34499. this._converse.api.settings.update({
  34500. 'allow_logout': false,
  34501. // No point in logging out when we have auto_login as true.
  34502. 'allow_muc_invitations': false,
  34503. // Doesn't make sense to allow because only
  34504. // roster contacts can be invited
  34505. 'hide_muc_server': true
  34506. });
  34507. var _converse = this._converse;
  34508. if (!_.isArray(_converse.auto_join_rooms) && !_.isArray(_converse.auto_join_private_chats)) {
  34509. throw new Error("converse-embedded: auto_join_rooms must be an Array");
  34510. }
  34511. if (_converse.auto_join_rooms.length > 1 && _converse.auto_join_private_chats.length > 1) {
  34512. throw new Error("converse-embedded: It doesn't make " + "sense to have the auto_join_rooms setting more then one, " + "since only one chat room can be open at any time.");
  34513. }
  34514. }
  34515. });
  34516. });
  34517. /***/ }),
  34518. /***/ "./src/converse-fullscreen.js":
  34519. /*!************************************!*\
  34520. !*** ./src/converse-fullscreen.js ***!
  34521. \************************************/
  34522. /*! no static exports found */
  34523. /***/ (function(module, exports, __webpack_require__) {
  34524. "use strict";
  34525. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34526. // Converse.js (A browser based XMPP chat client)
  34527. // http://conversejs.org
  34528. //
  34529. // Copyright (c) JC Brand <jc@opkode.com>
  34530. // Licensed under the Mozilla Public License (MPLv2)
  34531. //
  34532. /*global define */
  34533. (function (root, factory) {
  34534. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/inverse_brand_heading.html */ "./src/templates/inverse_brand_heading.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), __webpack_require__(/*! converse-singleton */ "./src/converse-singleton.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34535. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34536. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34537. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34538. })(void 0, function (converse, tpl_brand_heading) {
  34539. "use strict";
  34540. var _converse$env = converse.env,
  34541. Strophe = _converse$env.Strophe,
  34542. _ = _converse$env._;
  34543. converse.plugins.add('converse-fullscreen', {
  34544. enabled: function enabled(_converse) {
  34545. return _.includes(['fullscreen', 'embedded'], _converse.view_mode);
  34546. },
  34547. overrides: {
  34548. // overrides mentioned here will be picked up by converse.js's
  34549. // plugin architecture they will replace existing methods on the
  34550. // relevant objects or classes.
  34551. //
  34552. // new functions which don't exist yet can also be added.
  34553. ControlBoxView: {
  34554. createBrandHeadingHTML: function createBrandHeadingHTML() {
  34555. return tpl_brand_heading();
  34556. },
  34557. insertBrandHeading: function insertBrandHeading() {
  34558. var _converse = this.__super__._converse;
  34559. var el = _converse.root.getElementById('converse-login-panel');
  34560. el.parentNode.insertAdjacentHTML('afterbegin', this.createBrandHeadingHTML());
  34561. }
  34562. }
  34563. },
  34564. initialize: function initialize() {
  34565. this._converse.api.settings.update({
  34566. chatview_avatar_height: 50,
  34567. chatview_avatar_width: 50,
  34568. hide_open_bookmarks: true,
  34569. show_controlbox_by_default: true,
  34570. sticky_controlbox: true
  34571. });
  34572. }
  34573. });
  34574. });
  34575. /***/ }),
  34576. /***/ "./src/converse-headline.js":
  34577. /*!**********************************!*\
  34578. !*** ./src/converse-headline.js ***!
  34579. \**********************************/
  34580. /*! no static exports found */
  34581. /***/ (function(module, exports, __webpack_require__) {
  34582. "use strict";
  34583. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34584. // Converse.js (A browser based XMPP chat client)
  34585. // http://conversejs.org
  34586. //
  34587. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  34588. // Licensed under the Mozilla Public License (MPLv2)
  34589. //
  34590. /*global define */
  34591. (function (root, factory) {
  34592. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/chatbox.html */ "./src/templates/chatbox.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34593. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34594. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34595. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34596. })(void 0, function (converse, tpl_chatbox) {
  34597. "use strict";
  34598. var _converse$env = converse.env,
  34599. _ = _converse$env._,
  34600. utils = _converse$env.utils;
  34601. converse.plugins.add('converse-headline', {
  34602. /* Plugin dependencies are other plugins which might be
  34603. * overridden or relied upon, and therefore need to be loaded before
  34604. * this plugin.
  34605. *
  34606. * If the setting "strict_plugin_dependencies" is set to true,
  34607. * an error will be raised if the plugin is not found. By default it's
  34608. * false, which means these plugins are only loaded opportunistically.
  34609. *
  34610. * NB: These plugins need to have already been loaded via require.js.
  34611. */
  34612. dependencies: ["converse-chatview"],
  34613. overrides: {
  34614. // Overrides mentioned here will be picked up by converse.js's
  34615. // plugin architecture they will replace existing methods on the
  34616. // relevant objects or classes.
  34617. //
  34618. // New functions which don't exist yet can also be added.
  34619. ChatBoxes: {
  34620. model: function model(attrs, options) {
  34621. var _converse = this.__super__._converse;
  34622. if (attrs.type == _converse.HEADLINES_TYPE) {
  34623. return new _converse.HeadlinesBox(attrs, options);
  34624. } else {
  34625. return this.__super__.model.apply(this, arguments);
  34626. }
  34627. }
  34628. }
  34629. },
  34630. initialize: function initialize() {
  34631. /* The initialize function gets called as soon as the plugin is
  34632. * loaded by converse.js's plugin machinery.
  34633. */
  34634. var _converse = this._converse,
  34635. __ = _converse.__;
  34636. _converse.HeadlinesBox = _converse.ChatBox.extend({
  34637. defaults: {
  34638. 'type': _converse.HEADLINES_TYPE,
  34639. 'bookmarked': false,
  34640. 'chat_state': undefined,
  34641. 'num_unread': 0,
  34642. 'url': ''
  34643. }
  34644. });
  34645. _converse.HeadlinesBoxView = _converse.ChatBoxView.extend({
  34646. className: 'chatbox headlines',
  34647. events: {
  34648. 'click .close-chatbox-button': 'close',
  34649. 'click .toggle-chatbox-button': 'minimize',
  34650. 'keypress textarea.chat-textarea': 'keyPressed'
  34651. },
  34652. initialize: function initialize() {
  34653. this.initDebounced();
  34654. this.disable_mam = true; // Don't do MAM queries for this box
  34655. this.model.messages.on('add', this.onMessageAdded, this);
  34656. this.model.on('show', this.show, this);
  34657. this.model.on('destroy', this.hide, this);
  34658. this.model.on('change:minimized', this.onMinimizedChanged, this);
  34659. this.render().insertHeading().fetchMessages().insertIntoDOM().hide();
  34660. _converse.emit('chatBoxOpened', this);
  34661. _converse.emit('chatBoxInitialized', this);
  34662. },
  34663. render: function render() {
  34664. this.el.setAttribute('id', this.model.get('box_id'));
  34665. this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
  34666. info_close: '',
  34667. label_personal_message: '',
  34668. show_send_button: false,
  34669. show_toolbar: false,
  34670. unread_msgs: ''
  34671. }));
  34672. this.content = this.el.querySelector('.chat-content');
  34673. return this;
  34674. },
  34675. // Override to avoid the methods in converse-chatview.js
  34676. 'renderMessageForm': _.noop,
  34677. 'afterShown': _.noop
  34678. });
  34679. function onHeadlineMessage(message) {
  34680. /* Handler method for all incoming messages of type "headline". */
  34681. var from_jid = message.getAttribute('from');
  34682. if (utils.isHeadlineMessage(_converse, message)) {
  34683. if (_.includes(from_jid, '@') && !_converse.allow_non_roster_messaging) {
  34684. return;
  34685. }
  34686. var chatbox = _converse.chatboxes.create({
  34687. 'id': from_jid,
  34688. 'jid': from_jid,
  34689. 'type': _converse.HEADLINES_TYPE,
  34690. 'from': from_jid
  34691. });
  34692. chatbox.createMessage(message, message);
  34693. _converse.emit('message', {
  34694. 'chatbox': chatbox,
  34695. 'stanza': message
  34696. });
  34697. }
  34698. return true;
  34699. }
  34700. function registerHeadlineHandler() {
  34701. _converse.connection.addHandler(onHeadlineMessage, null, 'message');
  34702. }
  34703. _converse.on('connected', registerHeadlineHandler);
  34704. _converse.on('reconnected', registerHeadlineHandler);
  34705. _converse.on('chatBoxViewsInitialized', function () {
  34706. var that = _converse.chatboxviews;
  34707. _converse.chatboxes.on('add', function (item) {
  34708. if (!that.get(item.get('id')) && item.get('type') === _converse.HEADLINES_TYPE) {
  34709. that.add(item.get('id'), new _converse.HeadlinesBoxView({
  34710. model: item
  34711. }));
  34712. }
  34713. });
  34714. });
  34715. }
  34716. });
  34717. });
  34718. /***/ }),
  34719. /***/ "./src/converse-mam.js":
  34720. /*!*****************************!*\
  34721. !*** ./src/converse-mam.js ***!
  34722. \*****************************/
  34723. /*! no static exports found */
  34724. /***/ (function(module, exports, __webpack_require__) {
  34725. "use strict";
  34726. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34727. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  34728. // Converse.js (A browser based XMPP chat client)
  34729. // http://conversejs.org
  34730. //
  34731. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  34732. // Licensed under the Mozilla Public License (MPLv2)
  34733. //
  34734. /*global define */
  34735. // XEP-0059 Result Set Management
  34736. (function (root, factory) {
  34737. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-disco */ "./src/converse-disco.js"), __webpack_require__(/*! strophe.rsm */ "strophe.rsm")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34738. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34739. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34740. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34741. })(void 0, function (sizzle, converse) {
  34742. "use strict";
  34743. var CHATROOMS_TYPE = 'chatroom';
  34744. var _converse$env = converse.env,
  34745. Promise = _converse$env.Promise,
  34746. Strophe = _converse$env.Strophe,
  34747. $iq = _converse$env.$iq,
  34748. _ = _converse$env._,
  34749. moment = _converse$env.moment;
  34750. var u = converse.env.utils;
  34751. var RSM_ATTRIBUTES = ['max', 'first', 'last', 'after', 'before', 'index', 'count']; // XEP-0313 Message Archive Management
  34752. var MAM_ATTRIBUTES = ['with', 'start', 'end'];
  34753. function getMessageArchiveID(stanza) {
  34754. // See https://xmpp.org/extensions/xep-0313.html#results
  34755. //
  34756. // The result messages MUST contain a <result/> element with an 'id'
  34757. // attribute that gives the current message's archive UID
  34758. var result = sizzle("result[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), stanza).pop();
  34759. if (!_.isUndefined(result)) {
  34760. return result.getAttribute('id');
  34761. } // See: https://xmpp.org/extensions/xep-0313.html#archives_id
  34762. var stanza_id = sizzle("stanza-id[xmlns=\"".concat(Strophe.NS.SID, "\"]"), stanza).pop();
  34763. if (!_.isUndefined(stanza_id)) {
  34764. return stanza_id.getAttribute('id');
  34765. }
  34766. }
  34767. function queryForArchivedMessages(_converse, options, callback, errback) {
  34768. /* Internal function, called by the "archive.query" API method.
  34769. */
  34770. var date;
  34771. if (_.isFunction(options)) {
  34772. callback = options;
  34773. errback = callback;
  34774. options = null;
  34775. }
  34776. var queryid = _converse.connection.getUniqueId();
  34777. var attrs = {
  34778. 'type': 'set'
  34779. };
  34780. if (options && options.groupchat) {
  34781. if (!options['with']) {
  34782. // eslint-disable-line dot-notation
  34783. throw new Error('You need to specify a "with" value containing ' + 'the chat room JID, when querying groupchat messages.');
  34784. }
  34785. attrs.to = options['with']; // eslint-disable-line dot-notation
  34786. }
  34787. var stanza = $iq(attrs).c('query', {
  34788. 'xmlns': Strophe.NS.MAM,
  34789. 'queryid': queryid
  34790. });
  34791. if (options) {
  34792. stanza.c('x', {
  34793. 'xmlns': Strophe.NS.XFORM,
  34794. 'type': 'submit'
  34795. }).c('field', {
  34796. 'var': 'FORM_TYPE',
  34797. 'type': 'hidden'
  34798. }).c('value').t(Strophe.NS.MAM).up().up();
  34799. if (options['with'] && !options.groupchat) {
  34800. // eslint-disable-line dot-notation
  34801. stanza.c('field', {
  34802. 'var': 'with'
  34803. }).c('value').t(options['with']).up().up(); // eslint-disable-line dot-notation
  34804. }
  34805. _.each(['start', 'end'], function (t) {
  34806. if (options[t]) {
  34807. date = moment(options[t]);
  34808. if (date.isValid()) {
  34809. stanza.c('field', {
  34810. 'var': t
  34811. }).c('value').t(date.format()).up().up();
  34812. } else {
  34813. throw new TypeError("archive.query: invalid date provided for: ".concat(t));
  34814. }
  34815. }
  34816. });
  34817. stanza.up();
  34818. if (_instanceof(options, Strophe.RSM)) {
  34819. stanza.cnode(options.toXML());
  34820. } else if (_.intersection(RSM_ATTRIBUTES, _.keys(options)).length) {
  34821. stanza.cnode(new Strophe.RSM(options).toXML());
  34822. }
  34823. }
  34824. var messages = [];
  34825. var message_handler = _converse.connection.addHandler(function (message) {
  34826. if (options.groupchat && message.getAttribute('from') !== options['with']) {
  34827. // eslint-disable-line dot-notation
  34828. return true;
  34829. }
  34830. var result = message.querySelector('result');
  34831. if (!_.isNull(result) && result.getAttribute('queryid') === queryid) {
  34832. messages.push(message);
  34833. }
  34834. return true;
  34835. }, Strophe.NS.MAM);
  34836. _converse.connection.sendIQ(stanza, function (iq) {
  34837. _converse.connection.deleteHandler(message_handler);
  34838. if (_.isFunction(callback)) {
  34839. var set = iq.querySelector('set');
  34840. var rsm;
  34841. if (!_.isUndefined(set)) {
  34842. rsm = new Strophe.RSM({
  34843. xml: set
  34844. });
  34845. _.extend(rsm, _.pick(options, _.concat(MAM_ATTRIBUTES, ['max'])));
  34846. }
  34847. callback(messages, rsm);
  34848. }
  34849. }, function () {
  34850. _converse.connection.deleteHandler(message_handler);
  34851. if (_.isFunction(errback)) {
  34852. errback.apply(this, arguments);
  34853. }
  34854. }, _converse.message_archiving_timeout);
  34855. }
  34856. converse.plugins.add('converse-mam', {
  34857. dependencies: ['converse-chatview', 'converse-muc', 'converse-muc-views'],
  34858. overrides: {
  34859. // Overrides mentioned here will be picked up by converse.js's
  34860. // plugin architecture they will replace existing methods on the
  34861. // relevant objects or classes.
  34862. //
  34863. // New functions which don't exist yet can also be added.
  34864. ChatBox: {
  34865. getMessageAttributesFromStanza: function getMessageAttributesFromStanza(message, original_stanza) {
  34866. function _process(attrs) {
  34867. var archive_id = getMessageArchiveID(original_stanza);
  34868. if (archive_id) {
  34869. attrs.archive_id = archive_id;
  34870. }
  34871. return attrs;
  34872. }
  34873. var result = this.__super__.getMessageAttributesFromStanza.apply(this, arguments);
  34874. if (_instanceof(result, Promise)) {
  34875. return new Promise(function (resolve, reject) {
  34876. return result.then(function (attrs) {
  34877. return resolve(_process(attrs));
  34878. }).catch(reject);
  34879. });
  34880. } else {
  34881. return _process(result);
  34882. }
  34883. }
  34884. },
  34885. ChatBoxView: {
  34886. render: function render() {
  34887. var result = this.__super__.render.apply(this, arguments);
  34888. if (!this.disable_mam) {
  34889. this.content.addEventListener('scroll', _.debounce(this.onScroll.bind(this), 100));
  34890. }
  34891. return result;
  34892. },
  34893. fetchNewestMessages: function fetchNewestMessages() {
  34894. /* Fetches messages that might have been archived *after*
  34895. * the last archived message in our local cache.
  34896. */
  34897. if (this.disable_mam) {
  34898. return;
  34899. }
  34900. var _converse = this.__super__._converse,
  34901. most_recent_msg = u.getMostRecentMessage(this.model);
  34902. if (_.isNil(most_recent_msg)) {
  34903. this.fetchArchivedMessages();
  34904. } else {
  34905. var archive_id = most_recent_msg.get('archive_id');
  34906. if (archive_id) {
  34907. this.fetchArchivedMessages({
  34908. 'after': most_recent_msg.get('archive_id')
  34909. });
  34910. } else {
  34911. this.fetchArchivedMessages({
  34912. 'start': most_recent_msg.get('time')
  34913. });
  34914. }
  34915. }
  34916. },
  34917. fetchArchivedMessagesIfNecessary: function fetchArchivedMessagesIfNecessary() {
  34918. var _this = this;
  34919. /* Check if archived messages should be fetched, and if so, do so. */
  34920. if (this.disable_mam || this.model.get('mam_initialized')) {
  34921. return;
  34922. }
  34923. var _converse = this.__super__._converse;
  34924. _converse.api.disco.supports(Strophe.NS.MAM, _converse.bare_jid).then(function (result) {
  34925. // Success
  34926. if (result.length) {
  34927. _this.fetchArchivedMessages();
  34928. }
  34929. _this.model.save({
  34930. 'mam_initialized': true
  34931. });
  34932. }, function () {
  34933. // Error
  34934. _converse.log("Error or timeout while checking for MAM support", Strophe.LogLevel.ERROR);
  34935. }).catch(function (msg) {
  34936. _this.clearSpinner();
  34937. _converse.log(msg, Strophe.LogLevel.FATAL);
  34938. });
  34939. },
  34940. fetchArchivedMessages: function fetchArchivedMessages(options) {
  34941. var _this2 = this;
  34942. var _converse = this.__super__._converse;
  34943. if (this.disable_mam) {
  34944. return;
  34945. }
  34946. var is_groupchat = this.model.get('type') === CHATROOMS_TYPE;
  34947. var mam_jid, message_handler;
  34948. if (is_groupchat) {
  34949. mam_jid = this.model.get('jid');
  34950. message_handler = this.model.onMessage.bind(this.model);
  34951. } else {
  34952. mam_jid = _converse.bare_jid;
  34953. message_handler = _converse.chatboxes.onMessage.bind(_converse.chatboxes);
  34954. }
  34955. _converse.api.disco.supports(Strophe.NS.MAM, mam_jid).then(function (results) {
  34956. // Success
  34957. if (!results.length) {
  34958. return;
  34959. }
  34960. _this2.addSpinner();
  34961. _converse.api.archive.query(_.extend({
  34962. 'groupchat': is_groupchat,
  34963. 'before': '',
  34964. // Page backwards from the most recent message
  34965. 'max': _converse.archived_messages_page_size,
  34966. 'with': _this2.model.get('jid')
  34967. }, options), function (messages) {
  34968. // Success
  34969. _this2.clearSpinner();
  34970. _.each(messages, message_handler);
  34971. }, function () {
  34972. // Error
  34973. _this2.clearSpinner();
  34974. _converse.log("Error or timeout while trying to fetch " + "archived messages", Strophe.LogLevel.ERROR);
  34975. });
  34976. }, function () {
  34977. // Error
  34978. _converse.log("Error or timeout while checking for MAM support", Strophe.LogLevel.ERROR);
  34979. }).catch(function (msg) {
  34980. _this2.clearSpinner();
  34981. _converse.log(msg, Strophe.LogLevel.FATAL);
  34982. });
  34983. },
  34984. onScroll: function onScroll(ev) {
  34985. var _converse = this.__super__._converse;
  34986. if (this.content.scrollTop === 0 && this.model.messages.length) {
  34987. var oldest_message = this.model.messages.at(0);
  34988. var archive_id = oldest_message.get('archive_id');
  34989. if (archive_id) {
  34990. this.fetchArchivedMessages({
  34991. 'before': archive_id
  34992. });
  34993. } else {
  34994. this.fetchArchivedMessages({
  34995. 'end': oldest_message.get('time')
  34996. });
  34997. }
  34998. }
  34999. }
  35000. },
  35001. ChatRoom: {
  35002. isDuplicate: function isDuplicate(message, original_stanza) {
  35003. var result = this.__super__.isDuplicate.apply(this, arguments);
  35004. if (result) {
  35005. return result;
  35006. }
  35007. var archive_id = getMessageArchiveID(original_stanza);
  35008. if (archive_id) {
  35009. return this.messages.filter({
  35010. 'archive_id': archive_id
  35011. }).length > 0;
  35012. }
  35013. }
  35014. },
  35015. ChatRoomView: {
  35016. initialize: function initialize() {
  35017. var _converse = this.__super__._converse;
  35018. this.__super__.initialize.apply(this, arguments);
  35019. this.model.on('change:mam_enabled', this.fetchArchivedMessagesIfNecessary, this);
  35020. this.model.on('change:connection_status', this.fetchArchivedMessagesIfNecessary, this);
  35021. },
  35022. renderChatArea: function renderChatArea() {
  35023. var result = this.__super__.renderChatArea.apply(this, arguments);
  35024. if (!this.disable_mam) {
  35025. this.content.addEventListener('scroll', _.debounce(this.onScroll.bind(this), 100));
  35026. }
  35027. return result;
  35028. },
  35029. fetchArchivedMessagesIfNecessary: function fetchArchivedMessagesIfNecessary() {
  35030. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED || !this.model.get('mam_enabled') || this.model.get('mam_initialized')) {
  35031. return;
  35032. }
  35033. this.fetchArchivedMessages();
  35034. this.model.save({
  35035. 'mam_initialized': true
  35036. });
  35037. }
  35038. }
  35039. },
  35040. initialize: function initialize() {
  35041. /* The initialize function gets called as soon as the plugin is
  35042. * loaded by Converse.js's plugin machinery.
  35043. */
  35044. var _converse = this._converse;
  35045. _converse.api.settings.update({
  35046. archived_messages_page_size: '50',
  35047. message_archiving: undefined,
  35048. // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
  35049. message_archiving_timeout: 8000 // Time (in milliseconds) to wait before aborting MAM request
  35050. });
  35051. _converse.onMAMError = function (model, iq) {
  35052. if (iq.querySelectorAll('feature-not-implemented').length) {
  35053. _converse.log("Message Archive Management (XEP-0313) not supported by this server", Strophe.LogLevel.WARN);
  35054. } else {
  35055. _converse.log("An error occured while trying to set archiving preferences.", Strophe.LogLevel.ERROR);
  35056. _converse.log(iq);
  35057. }
  35058. };
  35059. _converse.onMAMPreferences = function (feature, iq) {
  35060. /* Handle returned IQ stanza containing Message Archive
  35061. * Management (XEP-0313) preferences.
  35062. *
  35063. * XXX: For now we only handle the global default preference.
  35064. * The XEP also provides for per-JID preferences, which is
  35065. * currently not supported in converse.js.
  35066. *
  35067. * Per JID preferences will be set in chat boxes, so it'll
  35068. * probbaly be handled elsewhere in any case.
  35069. */
  35070. var preference = sizzle("prefs[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), iq).pop();
  35071. var default_pref = preference.getAttribute('default');
  35072. if (default_pref !== _converse.message_archiving) {
  35073. var stanza = $iq({
  35074. 'type': 'set'
  35075. }).c('prefs', {
  35076. 'xmlns': Strophe.NS.MAM,
  35077. 'default': _converse.message_archiving
  35078. });
  35079. _.each(preference.children, function (child) {
  35080. stanza.cnode(child).up();
  35081. });
  35082. _converse.connection.sendIQ(stanza, _.partial(function (feature, iq) {
  35083. // XXX: Strictly speaking, the server should respond with the updated prefs
  35084. // (see example 18: https://xmpp.org/extensions/xep-0313.html#config)
  35085. // but Prosody doesn't do this, so we don't rely on it.
  35086. feature.save({
  35087. 'preferences': {
  35088. 'default': _converse.message_archiving
  35089. }
  35090. });
  35091. }, feature), _converse.onMAMError);
  35092. } else {
  35093. feature.save({
  35094. 'preferences': {
  35095. 'default': _converse.message_archiving
  35096. }
  35097. });
  35098. }
  35099. };
  35100. /* Event handlers */
  35101. _converse.on('serviceDiscovered', function (feature) {
  35102. var prefs = feature.get('preferences') || {};
  35103. if (feature.get('var') === Strophe.NS.MAM && prefs['default'] !== _converse.message_archiving && // eslint-disable-line dot-notation
  35104. !_.isUndefined(_converse.message_archiving)) {
  35105. // Ask the server for archiving preferences
  35106. _converse.connection.sendIQ($iq({
  35107. 'type': 'get'
  35108. }).c('prefs', {
  35109. 'xmlns': Strophe.NS.MAM
  35110. }), _.partial(_converse.onMAMPreferences, feature), _.partial(_converse.onMAMError, feature));
  35111. }
  35112. });
  35113. _converse.on('addClientFeatures', function () {
  35114. _converse.api.disco.own.features.add(Strophe.NS.MAM);
  35115. });
  35116. _converse.on('afterMessagesFetched', function (chatboxview) {
  35117. chatboxview.fetchNewestMessages();
  35118. });
  35119. _converse.on('reconnected', function () {
  35120. var private_chats = _converse.chatboxviews.filter(function (view) {
  35121. return _.at(view, 'model.attributes.type')[0] === 'chatbox';
  35122. });
  35123. _.each(private_chats, function (view) {
  35124. return view.fetchNewestMessages();
  35125. });
  35126. });
  35127. _.extend(_converse.api, {
  35128. /**
  35129. * The [XEP-0313](https://xmpp.org/extensions/xep-0313.html) Message Archive Management API
  35130. *
  35131. * Enables you to query an XMPP server for archived messages.
  35132. *
  35133. * See also the [message-archiving](/docs/html/configuration.html#message-archiving)
  35134. * option in the configuration settings section, which you'll
  35135. * usually want to use in conjunction with this API.
  35136. *
  35137. * @namespace _converse.api.archive
  35138. * @memberOf _converse.api
  35139. */
  35140. 'archive': {
  35141. /**
  35142. * Query for archived messages.
  35143. *
  35144. * The options parameter can also be an instance of
  35145. * Strophe.RSM to enable easy querying between results pages.
  35146. *
  35147. * @method _converse.api.archive.query
  35148. * @param {(Object|Strophe.RSM)} options Query parameters, either
  35149. * MAM-specific or also for Result Set Management.
  35150. * Can be either an object or an instance of Strophe.RSM.
  35151. * Valid query parameters are:
  35152. * * `with`
  35153. * * `start`
  35154. * * `end`
  35155. * * `first`
  35156. * * `last`
  35157. * * `after`
  35158. * * `before`
  35159. * * `index`
  35160. * * `count`
  35161. * @param {Function} callback A function to call whenever
  35162. * we receive query-relevant stanza.
  35163. * When the callback is called, a Strophe.RSM object is
  35164. * returned on which "next" or "previous" can be called
  35165. * before passing it in again to this method, to
  35166. * get the next or previous page in the result set.
  35167. * @param {Function} errback A function to call when an
  35168. * error stanza is received, for example when it
  35169. * doesn't support message archiving.
  35170. *
  35171. * @example
  35172. * // Requesting all archived messages
  35173. * // ================================
  35174. * //
  35175. * // The simplest query that can be made is to simply not pass in any parameters.
  35176. * // Such a query will return all archived messages for the current user.
  35177. * //
  35178. * // Generally, you'll however always want to pass in a callback method, to receive
  35179. * // the returned messages.
  35180. *
  35181. * this._converse.api.archive.query(
  35182. * (messages) => {
  35183. * // Do something with the messages, like showing them in your webpage.
  35184. * },
  35185. * (iq) => {
  35186. * // The query was not successful, perhaps inform the user?
  35187. * // The IQ stanza returned by the XMPP server is passed in, so that you
  35188. * // may inspect it and determine what the problem was.
  35189. * }
  35190. * )
  35191. * @example
  35192. * // Waiting until server support has been determined
  35193. * // ================================================
  35194. * //
  35195. * // The query method will only work if Converse has been able to determine that
  35196. * // the server supports MAM queries, otherwise the following error will be raised:
  35197. * //
  35198. * // "This server does not support XEP-0313, Message Archive Management"
  35199. * //
  35200. * // The very first time Converse loads in a browser tab, if you call the query
  35201. * // API too quickly, the above error might appear because service discovery has not
  35202. * // yet been completed.
  35203. * //
  35204. * // To work solve this problem, you can first listen for the `serviceDiscovered` event,
  35205. * // through which you can be informed once support for MAM has been determined.
  35206. *
  35207. * _converse.api.listen.on('serviceDiscovered', function (feature) {
  35208. * if (feature.get('var') === converse.env.Strophe.NS.MAM) {
  35209. * _converse.api.archive.query()
  35210. * }
  35211. * });
  35212. *
  35213. * @example
  35214. * // Requesting all archived messages for a particular contact or room
  35215. * // =================================================================
  35216. * //
  35217. * // To query for messages sent between the current user and another user or room,
  35218. * // the query options need to contain the the JID (Jabber ID) of the user or
  35219. * // room under the `with` key.
  35220. *
  35221. * // For a particular user
  35222. * this._converse.api.archive.query({'with': 'john@doe.net'}, callback, errback);)
  35223. *
  35224. * // For a particular room
  35225. * this._converse.api.archive.query({'with': 'discuss@conference.doglovers.net'}, callback, errback);)
  35226. *
  35227. * @example
  35228. * // Requesting all archived messages before or after a certain date
  35229. * // ===============================================================
  35230. * //
  35231. * // The `start` and `end` parameters are used to query for messages
  35232. * // within a certain timeframe. The passed in date values may either be ISO8601
  35233. * // formatted date strings, or JavaScript Date objects.
  35234. *
  35235. * const options = {
  35236. * 'with': 'john@doe.net',
  35237. * 'start': '2010-06-07T00:00:00Z',
  35238. * 'end': '2010-07-07T13:23:54Z'
  35239. * };
  35240. * this._converse.api.archive.query(options, callback, errback);
  35241. *
  35242. * @example
  35243. * // Limiting the amount of messages returned
  35244. * // ========================================
  35245. * //
  35246. * // The amount of returned messages may be limited with the `max` parameter.
  35247. * // By default, the messages are returned from oldest to newest.
  35248. *
  35249. * // Return maximum 10 archived messages
  35250. * this._converse.api.archive.query({'with': 'john@doe.net', 'max':10}, callback, errback);
  35251. *
  35252. * @example
  35253. * // Paging forwards through a set of archived messages
  35254. * // ==================================================
  35255. * //
  35256. * // When limiting the amount of messages returned per query, you might want to
  35257. * // repeatedly make a further query to fetch the next batch of messages.
  35258. * //
  35259. * // To simplify this usecase for you, the callback method receives not only an array
  35260. * // with the returned archived messages, but also a special RSM (*Result Set
  35261. * // Management*) object which contains the query parameters you passed in, as well
  35262. * // as two utility methods `next`, and `previous`.
  35263. * //
  35264. * // When you call one of these utility methods on the returned RSM object, and then
  35265. * // pass the result into a new query, you'll receive the next or previous batch of
  35266. * // archived messages. Please note, when calling these methods, pass in an integer
  35267. * // to limit your results.
  35268. *
  35269. * const callback = function (messages, rsm) {
  35270. * // Do something with the messages, like showing them in your webpage.
  35271. * // ...
  35272. * // You can now use the returned "rsm" object, to fetch the next batch of messages:
  35273. * _converse.api.archive.query(rsm.next(10), callback, errback))
  35274. *
  35275. * }
  35276. * _converse.api.archive.query({'with': 'john@doe.net', 'max':10}, callback, errback);
  35277. *
  35278. * @example
  35279. * // Paging backwards through a set of archived messages
  35280. * // ===================================================
  35281. * //
  35282. * // To page backwards through the archive, you need to know the UID of the message
  35283. * // which you'd like to page backwards from and then pass that as value for the
  35284. * // `before` parameter. If you simply want to page backwards from the most recent
  35285. * // message, pass in the `before` parameter with an empty string value `''`.
  35286. *
  35287. * _converse.api.archive.query({'before': '', 'max':5}, function (message, rsm) {
  35288. * // Do something with the messages, like showing them in your webpage.
  35289. * // ...
  35290. * // You can now use the returned "rsm" object, to fetch the previous batch of messages:
  35291. * rsm.previous(5); // Call previous method, to update the object's parameters,
  35292. * // passing in a limit value of 5.
  35293. * // Now we query again, to get the previous batch.
  35294. * _converse.api.archive.query(rsm, callback, errback);
  35295. * }
  35296. */
  35297. 'query': function query(options, callback, errback) {
  35298. if (!_converse.api.connection.connected()) {
  35299. throw new Error('Can\'t call `api.archive.query` before having established an XMPP session');
  35300. }
  35301. return queryForArchivedMessages(_converse, options, callback, errback);
  35302. }
  35303. }
  35304. });
  35305. }
  35306. });
  35307. });
  35308. /***/ }),
  35309. /***/ "./src/converse-message-view.js":
  35310. /*!**************************************!*\
  35311. !*** ./src/converse-message-view.js ***!
  35312. \**************************************/
  35313. /*! no static exports found */
  35314. /***/ (function(module, exports, __webpack_require__) {
  35315. "use strict";
  35316. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  35317. // Converse.js
  35318. // https://conversejs.org
  35319. //
  35320. // Copyright (c) 2013-2018, the Converse.js developers
  35321. // Licensed under the Mozilla Public License (MPLv2)
  35322. (function (root, factory) {
  35323. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! xss */ "./node_modules/xss/dist/xss.js"), __webpack_require__(/*! filesize */ "./node_modules/filesize/lib/filesize.js"), __webpack_require__(/*! templates/csn.html */ "./src/templates/csn.html"), __webpack_require__(/*! templates/file_progress.html */ "./src/templates/file_progress.html"), __webpack_require__(/*! templates/info.html */ "./src/templates/info.html"), __webpack_require__(/*! templates/message.html */ "./src/templates/message.html"), __webpack_require__(/*! templates/message_versions_modal.html */ "./src/templates/message_versions_modal.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  35324. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  35325. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  35326. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  35327. })(void 0, function (u, converse, xss, filesize, tpl_csn, tpl_file_progress, tpl_info, tpl_message, tpl_message_versions_modal) {
  35328. "use strict";
  35329. var _converse$env = converse.env,
  35330. Backbone = _converse$env.Backbone,
  35331. _ = _converse$env._,
  35332. moment = _converse$env.moment;
  35333. converse.plugins.add('converse-message-view', {
  35334. initialize: function initialize() {
  35335. /* The initialize function gets called as soon as the plugin is
  35336. * loaded by converse.js's plugin machinery.
  35337. */
  35338. var _converse = this._converse,
  35339. __ = _converse.__;
  35340. _converse.MessageVersionsModal = _converse.BootstrapModal.extend({
  35341. toHTML: function toHTML() {
  35342. return tpl_message_versions_modal(_.extend(this.model.toJSON(), {
  35343. '__': __
  35344. }));
  35345. }
  35346. });
  35347. _converse.MessageView = _converse.ViewWithAvatar.extend({
  35348. events: {
  35349. 'click .chat-msg__edit-modal': 'showMessageVersionsModal'
  35350. },
  35351. initialize: function initialize() {
  35352. if (this.model.vcard) {
  35353. this.model.vcard.on('change', this.render, this);
  35354. }
  35355. this.model.on('change:correcting', this.onMessageCorrection, this);
  35356. this.model.on('change:message', this.render, this);
  35357. this.model.on('change:progress', this.renderFileUploadProgresBar, this);
  35358. this.model.on('change:type', this.render, this);
  35359. this.model.on('change:upload', this.render, this);
  35360. this.model.on('destroy', this.remove, this);
  35361. this.render();
  35362. },
  35363. render: function render() {
  35364. var is_followup = u.hasClass('chat-msg--followup', this.el);
  35365. var msg;
  35366. if (this.model.isOnlyChatStateNotification()) {
  35367. this.renderChatStateNotification();
  35368. } else if (this.model.get('file') && !this.model.get('oob_url')) {
  35369. this.renderFileUploadProgresBar();
  35370. } else if (this.model.get('type') === 'error') {
  35371. this.renderErrorMessage();
  35372. } else {
  35373. this.renderChatMessage();
  35374. }
  35375. if (is_followup) {
  35376. u.addClass('chat-msg--followup', this.el);
  35377. }
  35378. return this.el;
  35379. },
  35380. onMessageCorrection: function onMessageCorrection() {
  35381. var _this = this;
  35382. this.render();
  35383. if (!this.model.get('correcting') && this.model.changed.message) {
  35384. this.el.addEventListener('animationend', function () {
  35385. return u.removeClass('onload', _this.el);
  35386. });
  35387. u.addClass('onload', this.el);
  35388. }
  35389. },
  35390. replaceElement: function replaceElement(msg) {
  35391. if (!_.isNil(this.el.parentElement)) {
  35392. this.el.parentElement.replaceChild(msg, this.el);
  35393. }
  35394. this.setElement(msg);
  35395. return this.el;
  35396. },
  35397. renderChatMessage: function renderChatMessage() {
  35398. var _this2 = this;
  35399. var is_me_message = this.isMeCommand(),
  35400. moment_time = moment(this.model.get('time')),
  35401. role = this.model.vcard ? this.model.vcard.get('role') : null,
  35402. roles = role ? role.split(',') : [];
  35403. var msg = u.stringToElement(tpl_message(_.extend(this.model.toJSON(), {
  35404. '__': __,
  35405. 'is_me_message': is_me_message,
  35406. 'roles': roles,
  35407. 'pretty_time': moment_time.format(_converse.time_format),
  35408. 'time': moment_time.format(),
  35409. 'extra_classes': this.getExtraMessageClasses(),
  35410. 'label_show': __('Show more'),
  35411. 'username': this.model.getDisplayName()
  35412. })));
  35413. var url = this.model.get('oob_url');
  35414. if (url) {
  35415. msg.querySelector('.chat-msg__media').innerHTML = _.flow(_.partial(u.renderFileURL, _converse), _.partial(u.renderMovieURL, _converse), _.partial(u.renderAudioURL, _converse), _.partial(u.renderImageURL, _converse))(url);
  35416. }
  35417. var text = this.getMessageText();
  35418. var msg_content = msg.querySelector('.chat-msg__text');
  35419. if (text && text !== url) {
  35420. if (is_me_message) {
  35421. text = text.replace(/^\/me/, '');
  35422. }
  35423. text = xss.filterXSS(text, {
  35424. 'whiteList': {}
  35425. });
  35426. msg_content.innerHTML = _.flow(_.partial(u.geoUriToHttp, _, _converse.geouri_replacement), _.partial(u.addMentionsMarkup, _, this.model.get('references'), this.model.collection.chatbox), u.addHyperlinks, u.renderNewLines, _.partial(u.addEmoji, _converse, _))(text);
  35427. }
  35428. u.renderImageURLs(_converse, msg_content).then(function () {
  35429. _this2.model.collection.trigger('rendered');
  35430. });
  35431. this.replaceElement(msg);
  35432. if (this.model.get('type') !== 'headline') {
  35433. this.renderAvatar();
  35434. }
  35435. },
  35436. renderErrorMessage: function renderErrorMessage() {
  35437. var moment_time = moment(this.model.get('time')),
  35438. msg = u.stringToElement(tpl_info(_.extend(this.model.toJSON(), {
  35439. 'extra_classes': 'chat-error',
  35440. 'isodate': moment_time.format(),
  35441. 'data': ''
  35442. })));
  35443. return this.replaceElement(msg);
  35444. },
  35445. renderChatStateNotification: function renderChatStateNotification() {
  35446. var text;
  35447. var from = this.model.get('from'),
  35448. name = this.model.getDisplayName();
  35449. if (this.model.get('chat_state') === _converse.COMPOSING) {
  35450. if (this.model.get('sender') === 'me') {
  35451. text = __('Typing from another device');
  35452. } else {
  35453. text = __('%1$s is typing', name);
  35454. }
  35455. } else if (this.model.get('chat_state') === _converse.PAUSED) {
  35456. if (this.model.get('sender') === 'me') {
  35457. text = __('Stopped typing on the other device');
  35458. } else {
  35459. text = __('%1$s has stopped typing', name);
  35460. }
  35461. } else if (this.model.get('chat_state') === _converse.GONE) {
  35462. text = __('%1$s has gone away', name);
  35463. } else {
  35464. return;
  35465. }
  35466. var isodate = moment().format();
  35467. this.replaceElement(u.stringToElement(tpl_csn({
  35468. 'message': text,
  35469. 'from': from,
  35470. 'isodate': isodate
  35471. })));
  35472. },
  35473. renderFileUploadProgresBar: function renderFileUploadProgresBar() {
  35474. var msg = u.stringToElement(tpl_file_progress(_.extend(this.model.toJSON(), {
  35475. 'filesize': filesize(this.model.get('file').size)
  35476. })));
  35477. this.replaceElement(msg);
  35478. this.renderAvatar();
  35479. },
  35480. showMessageVersionsModal: function showMessageVersionsModal(ev) {
  35481. ev.preventDefault();
  35482. if (_.isUndefined(this.model.message_versions_modal)) {
  35483. this.model.message_versions_modal = new _converse.MessageVersionsModal({
  35484. 'model': this.model
  35485. });
  35486. }
  35487. this.model.message_versions_modal.show(ev);
  35488. },
  35489. getMessageText: function getMessageText() {
  35490. if (this.model.get('is_encrypted')) {
  35491. return this.model.get('plaintext') || (_converse.debug ? __('Unencryptable OMEMO message') : null);
  35492. }
  35493. return this.model.get('message');
  35494. },
  35495. isMeCommand: function isMeCommand() {
  35496. var text = this.getMessageText();
  35497. if (!text) {
  35498. return false;
  35499. }
  35500. var match = text.match(/^\/(.*?)(?: (.*))?$/);
  35501. return match && match[1] === 'me';
  35502. },
  35503. processMessageText: function processMessageText() {
  35504. var text = this.get('message');
  35505. text = u.geoUriToHttp(text, _converse.geouri_replacement);
  35506. },
  35507. getExtraMessageClasses: function getExtraMessageClasses() {
  35508. var extra_classes = this.model.get('is_delayed') && 'delayed' || '';
  35509. if (this.model.get('type') === 'groupchat' && this.model.get('sender') === 'them') {
  35510. if (this.model.collection.chatbox.isUserMentioned(this.model)) {
  35511. // Add special class to mark groupchat messages
  35512. // in which we are mentioned.
  35513. extra_classes += ' mentioned';
  35514. }
  35515. }
  35516. if (this.model.get('correcting')) {
  35517. extra_classes += ' correcting';
  35518. }
  35519. return extra_classes;
  35520. }
  35521. });
  35522. }
  35523. });
  35524. return converse;
  35525. });
  35526. /***/ }),
  35527. /***/ "./src/converse-minimize.js":
  35528. /*!**********************************!*\
  35529. !*** ./src/converse-minimize.js ***!
  35530. \**********************************/
  35531. /*! no static exports found */
  35532. /***/ (function(module, exports, __webpack_require__) {
  35533. "use strict";
  35534. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  35535. // Converse.js (A browser based XMPP chat client)
  35536. // http://conversejs.org
  35537. //
  35538. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  35539. // Licensed under the Mozilla Public License (MPLv2)
  35540. //
  35541. /*global define, window, document */
  35542. (function (root, factory) {
  35543. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/chatbox_minimize.html */ "./src/templates/chatbox_minimize.html"), __webpack_require__(/*! templates/toggle_chats.html */ "./src/templates/toggle_chats.html"), __webpack_require__(/*! templates/trimmed_chat.html */ "./src/templates/trimmed_chat.html"), __webpack_require__(/*! templates/chats_panel.html */ "./src/templates/chats_panel.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  35544. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  35545. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  35546. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  35547. })(void 0, function (converse, tpl_chatbox_minimize, tpl_toggle_chats, tpl_trimmed_chat, tpl_chats_panel) {
  35548. "use strict";
  35549. var _converse$env = converse.env,
  35550. _ = _converse$env._,
  35551. Backbone = _converse$env.Backbone,
  35552. Promise = _converse$env.Promise,
  35553. Strophe = _converse$env.Strophe,
  35554. b64_sha1 = _converse$env.b64_sha1,
  35555. moment = _converse$env.moment;
  35556. var u = converse.env.utils;
  35557. converse.plugins.add('converse-minimize', {
  35558. /* Optional dependencies are other plugins which might be
  35559. * overridden or relied upon, and therefore need to be loaded before
  35560. * this plugin. They are called "optional" because they might not be
  35561. * available, in which case any overrides applicable to them will be
  35562. * ignored.
  35563. *
  35564. * It's possible however to make optional dependencies non-optional.
  35565. * If the setting "strict_plugin_dependencies" is set to true,
  35566. * an error will be raised if the plugin is not found.
  35567. *
  35568. * NB: These plugins need to have already been loaded via require.js.
  35569. */
  35570. dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-muc-views", "converse-headline"],
  35571. enabled: function enabled(_converse) {
  35572. return _converse.view_mode == 'overlayed';
  35573. },
  35574. overrides: {
  35575. // Overrides mentioned here will be picked up by converse.js's
  35576. // plugin architecture they will replace existing methods on the
  35577. // relevant objects or classes.
  35578. //
  35579. // New functions which don't exist yet can also be added.
  35580. ChatBox: {
  35581. initialize: function initialize() {
  35582. this.__super__.initialize.apply(this, arguments);
  35583. this.on('show', this.maximize, this);
  35584. if (this.get('id') === 'controlbox') {
  35585. return;
  35586. }
  35587. this.save({
  35588. 'minimized': this.get('minimized') || false,
  35589. 'time_minimized': this.get('time_minimized') || moment()
  35590. });
  35591. },
  35592. maximize: function maximize() {
  35593. u.safeSave(this, {
  35594. 'minimized': false,
  35595. 'time_opened': moment().valueOf()
  35596. });
  35597. },
  35598. minimize: function minimize() {
  35599. u.safeSave(this, {
  35600. 'minimized': true,
  35601. 'time_minimized': moment().format()
  35602. });
  35603. }
  35604. },
  35605. ChatBoxView: {
  35606. events: {
  35607. 'click .toggle-chatbox-button': 'minimize'
  35608. },
  35609. initialize: function initialize() {
  35610. this.model.on('change:minimized', this.onMinimizedChanged, this);
  35611. return this.__super__.initialize.apply(this, arguments);
  35612. },
  35613. _show: function _show() {
  35614. var _converse = this.__super__._converse;
  35615. if (!this.model.get('minimized')) {
  35616. this.__super__._show.apply(this, arguments);
  35617. _converse.chatboxviews.trimChats(this);
  35618. } else {
  35619. this.minimize();
  35620. }
  35621. },
  35622. isNewMessageHidden: function isNewMessageHidden() {
  35623. return this.model.get('minimized') || this.__super__.isNewMessageHidden.apply(this, arguments);
  35624. },
  35625. shouldShowOnTextMessage: function shouldShowOnTextMessage() {
  35626. return !this.model.get('minimized') && this.__super__.shouldShowOnTextMessage.apply(this, arguments);
  35627. },
  35628. setChatBoxHeight: function setChatBoxHeight(height) {
  35629. if (!this.model.get('minimized')) {
  35630. return this.__super__.setChatBoxHeight.apply(this, arguments);
  35631. }
  35632. },
  35633. setChatBoxWidth: function setChatBoxWidth(width) {
  35634. if (!this.model.get('minimized')) {
  35635. return this.__super__.setChatBoxWidth.apply(this, arguments);
  35636. }
  35637. },
  35638. onMinimizedChanged: function onMinimizedChanged(item) {
  35639. if (item.get('minimized')) {
  35640. this.minimize();
  35641. } else {
  35642. this.maximize();
  35643. }
  35644. },
  35645. maximize: function maximize() {
  35646. // Restores a minimized chat box
  35647. var _converse = this.__super__._converse;
  35648. this.insertIntoDOM();
  35649. if (!this.model.isScrolledUp()) {
  35650. this.model.clearUnreadMsgCounter();
  35651. }
  35652. this.show();
  35653. this.__super__._converse.emit('chatBoxMaximized', this);
  35654. return this;
  35655. },
  35656. minimize: function minimize(ev) {
  35657. var _converse = this.__super__._converse;
  35658. if (ev && ev.preventDefault) {
  35659. ev.preventDefault();
  35660. } // save the scroll position to restore it on maximize
  35661. if (this.model.collection && this.model.collection.browserStorage) {
  35662. this.model.save({
  35663. 'scroll': this.content.scrollTop
  35664. });
  35665. } else {
  35666. this.model.set({
  35667. 'scroll': this.content.scrollTop
  35668. });
  35669. }
  35670. this.setChatState(_converse.INACTIVE).model.minimize();
  35671. this.hide();
  35672. _converse.emit('chatBoxMinimized', this);
  35673. }
  35674. },
  35675. ChatBoxHeading: {
  35676. render: function render() {
  35677. var _converse = this.__super__._converse,
  35678. __ = _converse.__;
  35679. var result = this.__super__.render.apply(this, arguments);
  35680. var new_html = tpl_chatbox_minimize({
  35681. info_minimize: __('Minimize this chat box')
  35682. });
  35683. var el = this.el.querySelector('.toggle-chatbox-button');
  35684. if (el) {
  35685. el.outerHTML = new_html;
  35686. } else {
  35687. var button = this.el.querySelector('.close-chatbox-button');
  35688. button.insertAdjacentHTML('afterEnd', new_html);
  35689. }
  35690. }
  35691. },
  35692. ChatRoomView: {
  35693. events: {
  35694. 'click .toggle-chatbox-button': 'minimize'
  35695. },
  35696. initialize: function initialize() {
  35697. this.model.on('change:minimized', function (item) {
  35698. if (item.get('minimized')) {
  35699. this.hide();
  35700. } else {
  35701. this.maximize();
  35702. }
  35703. }, this);
  35704. var result = this.__super__.initialize.apply(this, arguments);
  35705. if (this.model.get('minimized')) {
  35706. this.hide();
  35707. }
  35708. return result;
  35709. },
  35710. generateHeadingHTML: function generateHeadingHTML() {
  35711. var _converse = this.__super__._converse,
  35712. __ = _converse.__;
  35713. var html = this.__super__.generateHeadingHTML.apply(this, arguments);
  35714. var div = document.createElement('div');
  35715. div.innerHTML = html;
  35716. var button = div.querySelector('.close-chatbox-button');
  35717. button.insertAdjacentHTML('afterend', tpl_chatbox_minimize({
  35718. 'info_minimize': __('Minimize this chat box')
  35719. }));
  35720. return div.innerHTML;
  35721. }
  35722. },
  35723. ChatBoxes: {
  35724. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  35725. return this.__super__.chatBoxMayBeShown.apply(this, arguments) && !chatbox.get('minimized');
  35726. }
  35727. },
  35728. ChatBoxViews: {
  35729. getChatBoxWidth: function getChatBoxWidth(view) {
  35730. if (!view.model.get('minimized') && u.isVisible(view.el)) {
  35731. return u.getOuterWidth(view.el, true);
  35732. }
  35733. return 0;
  35734. },
  35735. getShownChats: function getShownChats() {
  35736. return this.filter(function (view) {
  35737. return (// The controlbox can take a while to close,
  35738. // so we need to check its state. That's why we checked
  35739. // the 'closed' state.
  35740. !view.model.get('minimized') && !view.model.get('closed') && u.isVisible(view.el)
  35741. );
  35742. });
  35743. },
  35744. trimChats: function trimChats(newchat) {
  35745. var _this = this;
  35746. /* This method is called when a newly created chat box will
  35747. * be shown.
  35748. *
  35749. * It checks whether there is enough space on the page to show
  35750. * another chat box. Otherwise it minimizes the oldest chat box
  35751. * to create space.
  35752. */
  35753. var _converse = this.__super__._converse,
  35754. shown_chats = this.getShownChats(),
  35755. body_width = u.getOuterWidth(document.querySelector('body'), true);
  35756. if (_converse.no_trimming || shown_chats.length <= 1) {
  35757. return;
  35758. }
  35759. if (this.getChatBoxWidth(shown_chats[0]) === body_width) {
  35760. // If the chats shown are the same width as the body,
  35761. // then we're in responsive mode and the chats are
  35762. // fullscreen. In this case we don't trim.
  35763. return;
  35764. }
  35765. _converse.api.waitUntil('minimizedChatsInitialized').then(function () {
  35766. var minimized_el = _.get(_converse.minimized_chats, 'el'),
  35767. new_id = newchat ? newchat.model.get('id') : null;
  35768. if (minimized_el) {
  35769. var minimized_width = _.includes(_this.model.pluck('minimized'), true) ? u.getOuterWidth(minimized_el, true) : 0;
  35770. var boxes_width = _.reduce(_this.xget(new_id), function (memo, view) {
  35771. return memo + _this.getChatBoxWidth(view);
  35772. }, newchat ? u.getOuterWidth(newchat.el, true) : 0);
  35773. if (minimized_width + boxes_width > body_width) {
  35774. var oldest_chat = _this.getOldestMaximizedChat([new_id]);
  35775. if (oldest_chat) {
  35776. // We hide the chat immediately, because waiting
  35777. // for the event to fire (and letting the
  35778. // ChatBoxView hide it then) causes race
  35779. // conditions.
  35780. var view = _this.get(oldest_chat.get('id'));
  35781. if (view) {
  35782. view.hide();
  35783. }
  35784. oldest_chat.minimize();
  35785. }
  35786. }
  35787. }
  35788. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35789. },
  35790. getOldestMaximizedChat: function getOldestMaximizedChat(exclude_ids) {
  35791. // Get oldest view (if its id is not excluded)
  35792. exclude_ids.push('controlbox');
  35793. var i = 0;
  35794. var model = this.model.sort().at(i);
  35795. while (_.includes(exclude_ids, model.get('id')) || model.get('minimized') === true) {
  35796. i++;
  35797. model = this.model.at(i);
  35798. if (!model) {
  35799. return null;
  35800. }
  35801. }
  35802. return model;
  35803. }
  35804. }
  35805. },
  35806. initialize: function initialize() {
  35807. /* The initialize function gets called as soon as the plugin is
  35808. * loaded by Converse.js's plugin machinery.
  35809. */
  35810. var _converse = this._converse,
  35811. __ = _converse.__; // Add new HTML templates.
  35812. _converse.templates.chatbox_minimize = tpl_chatbox_minimize;
  35813. _converse.templates.toggle_chats = tpl_toggle_chats;
  35814. _converse.templates.trimmed_chat = tpl_trimmed_chat;
  35815. _converse.templates.chats_panel = tpl_chats_panel;
  35816. _converse.api.settings.update({
  35817. no_trimming: false // Set to true for phantomjs tests (where browser apparently has no width)
  35818. });
  35819. _converse.api.promises.add('minimizedChatsInitialized');
  35820. _converse.MinimizedChatBoxView = Backbone.NativeView.extend({
  35821. tagName: 'div',
  35822. className: 'chat-head row no-gutters',
  35823. events: {
  35824. 'click .close-chatbox-button': 'close',
  35825. 'click .restore-chat': 'restore'
  35826. },
  35827. initialize: function initialize() {
  35828. this.model.on('change:num_unread', this.render, this);
  35829. },
  35830. render: function render() {
  35831. var data = _.extend(this.model.toJSON(), {
  35832. 'tooltip': __('Click to restore this chat')
  35833. });
  35834. if (this.model.get('type') === 'chatroom') {
  35835. data.title = this.model.get('name');
  35836. u.addClass('chat-head-chatroom', this.el);
  35837. } else {
  35838. data.title = this.model.get('fullname');
  35839. u.addClass('chat-head-chatbox', this.el);
  35840. }
  35841. this.el.innerHTML = tpl_trimmed_chat(data);
  35842. return this.el;
  35843. },
  35844. close: function close(ev) {
  35845. if (ev && ev.preventDefault) {
  35846. ev.preventDefault();
  35847. }
  35848. this.remove();
  35849. var view = _converse.chatboxviews.get(this.model.get('id'));
  35850. if (view) {
  35851. // This will call model.destroy(), removing it from the
  35852. // collection and will also emit 'chatBoxClosed'
  35853. view.close();
  35854. } else {
  35855. this.model.destroy();
  35856. _converse.emit('chatBoxClosed', this);
  35857. }
  35858. return this;
  35859. },
  35860. restore: _.debounce(function (ev) {
  35861. if (ev && ev.preventDefault) {
  35862. ev.preventDefault();
  35863. }
  35864. this.model.off('change:num_unread', null, this);
  35865. this.remove();
  35866. this.model.maximize();
  35867. }, 200, {
  35868. 'leading': true
  35869. })
  35870. });
  35871. _converse.MinimizedChats = Backbone.Overview.extend({
  35872. tagName: 'div',
  35873. id: "minimized-chats",
  35874. className: 'hidden',
  35875. events: {
  35876. "click #toggle-minimized-chats": "toggle"
  35877. },
  35878. initialize: function initialize() {
  35879. this.render();
  35880. this.initToggle();
  35881. this.addMultipleChats(this.model.where({
  35882. 'minimized': true
  35883. }));
  35884. this.model.on("add", this.onChanged, this);
  35885. this.model.on("destroy", this.removeChat, this);
  35886. this.model.on("change:minimized", this.onChanged, this);
  35887. this.model.on('change:num_unread', this.updateUnreadMessagesCounter, this);
  35888. },
  35889. render: function render() {
  35890. if (!this.el.parentElement) {
  35891. this.el.innerHTML = tpl_chats_panel();
  35892. _converse.chatboxviews.insertRowColumn(this.el);
  35893. }
  35894. if (this.keys().length === 0) {
  35895. this.el.classList.add('hidden');
  35896. } else if (this.keys().length > 0 && !u.isVisible(this.el)) {
  35897. this.el.classList.remove('hidden');
  35898. _converse.chatboxviews.trimChats();
  35899. }
  35900. return this.el;
  35901. },
  35902. tearDown: function tearDown() {
  35903. this.model.off("add", this.onChanged);
  35904. this.model.off("destroy", this.removeChat);
  35905. this.model.off("change:minimized", this.onChanged);
  35906. this.model.off('change:num_unread', this.updateUnreadMessagesCounter);
  35907. return this;
  35908. },
  35909. initToggle: function initToggle() {
  35910. var storage = _converse.config.get('storage'),
  35911. id = b64_sha1("converse.minchatstoggle".concat(_converse.bare_jid));
  35912. this.toggleview = new _converse.MinimizedChatsToggleView({
  35913. 'model': new _converse.MinimizedChatsToggle({
  35914. 'id': id
  35915. })
  35916. });
  35917. this.toggleview.model.browserStorage = new Backbone.BrowserStorage[storage](id);
  35918. this.toggleview.model.fetch();
  35919. },
  35920. toggle: function toggle(ev) {
  35921. if (ev && ev.preventDefault) {
  35922. ev.preventDefault();
  35923. }
  35924. this.toggleview.model.save({
  35925. 'collapsed': !this.toggleview.model.get('collapsed')
  35926. });
  35927. u.slideToggleElement(this.el.querySelector('.minimized-chats-flyout'), 200);
  35928. },
  35929. onChanged: function onChanged(item) {
  35930. if (item.get('id') === 'controlbox') {
  35931. // The ControlBox has it's own minimize toggle
  35932. return;
  35933. }
  35934. if (item.get('minimized')) {
  35935. this.addChat(item);
  35936. } else if (this.get(item.get('id'))) {
  35937. this.removeChat(item);
  35938. }
  35939. },
  35940. addChatView: function addChatView(item) {
  35941. var existing = this.get(item.get('id'));
  35942. if (existing && existing.el.parentNode) {
  35943. return;
  35944. }
  35945. var view = new _converse.MinimizedChatBoxView({
  35946. model: item
  35947. });
  35948. this.el.querySelector('.minimized-chats-flyout').insertAdjacentElement('beforeEnd', view.render());
  35949. this.add(item.get('id'), view);
  35950. },
  35951. addMultipleChats: function addMultipleChats(items) {
  35952. _.each(items, this.addChatView.bind(this));
  35953. this.toggleview.model.set({
  35954. 'num_minimized': this.keys().length
  35955. });
  35956. this.render();
  35957. },
  35958. addChat: function addChat(item) {
  35959. this.addChatView(item);
  35960. this.toggleview.model.set({
  35961. 'num_minimized': this.keys().length
  35962. });
  35963. this.render();
  35964. },
  35965. removeChat: function removeChat(item) {
  35966. this.remove(item.get('id'));
  35967. this.toggleview.model.set({
  35968. 'num_minimized': this.keys().length
  35969. });
  35970. this.render();
  35971. },
  35972. updateUnreadMessagesCounter: function updateUnreadMessagesCounter() {
  35973. var ls = this.model.pluck('num_unread');
  35974. var count = 0,
  35975. i;
  35976. for (i = 0; i < ls.length; i++) {
  35977. count += ls[i];
  35978. }
  35979. this.toggleview.model.save({
  35980. 'num_unread': count
  35981. });
  35982. this.render();
  35983. }
  35984. });
  35985. _converse.MinimizedChatsToggle = Backbone.Model.extend({
  35986. defaults: {
  35987. 'collapsed': false,
  35988. 'num_minimized': 0,
  35989. 'num_unread': 0
  35990. }
  35991. });
  35992. _converse.MinimizedChatsToggleView = Backbone.NativeView.extend({
  35993. el: '#toggle-minimized-chats',
  35994. initialize: function initialize() {
  35995. this.model.on('change:num_minimized', this.render, this);
  35996. this.model.on('change:num_unread', this.render, this);
  35997. this.flyout = this.el.parentElement.querySelector('.minimized-chats-flyout');
  35998. },
  35999. render: function render() {
  36000. this.el.innerHTML = tpl_toggle_chats(_.extend(this.model.toJSON(), {
  36001. 'Minimized': __('Minimized')
  36002. }));
  36003. if (this.model.get('collapsed')) {
  36004. u.hideElement(this.flyout);
  36005. } else {
  36006. u.showElement(this.flyout);
  36007. }
  36008. return this.el;
  36009. }
  36010. });
  36011. Promise.all([_converse.api.waitUntil('connectionInitialized'), _converse.api.waitUntil('chatBoxViewsInitialized')]).then(function () {
  36012. _converse.minimized_chats = new _converse.MinimizedChats({
  36013. model: _converse.chatboxes
  36014. });
  36015. _converse.emit('minimizedChatsInitialized');
  36016. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  36017. _converse.on('registeredGlobalEventHandlers', function () {
  36018. window.addEventListener("resize", _.debounce(function (ev) {
  36019. if (_converse.connection.connected) {
  36020. _converse.chatboxviews.trimChats();
  36021. }
  36022. }, 200));
  36023. });
  36024. _converse.on('controlBoxOpened', function (chatbox) {
  36025. // Wrapped in anon method because at scan time, chatboxviews
  36026. // attr not set yet.
  36027. if (_converse.connection.connected) {
  36028. _converse.chatboxviews.trimChats(chatbox);
  36029. }
  36030. });
  36031. }
  36032. });
  36033. });
  36034. /***/ }),
  36035. /***/ "./src/converse-modal.js":
  36036. /*!*******************************!*\
  36037. !*** ./src/converse-modal.js ***!
  36038. \*******************************/
  36039. /*! no static exports found */
  36040. /***/ (function(module, exports, __webpack_require__) {
  36041. "use strict";
  36042. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  36043. // Converse.js
  36044. // http://conversejs.org
  36045. //
  36046. // Copyright (c) 2018, the Converse.js developers
  36047. // Licensed under the Mozilla Public License (MPLv2)
  36048. (function (root, factory) {
  36049. if (true) {
  36050. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/alert_modal.html */ "./src/templates/alert_modal.html"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! backbone.vdomview */ "./node_modules/backbone.vdomview/backbone.vdomview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  36051. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  36052. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  36053. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  36054. }
  36055. })(void 0, function (converse, tpl_alert_modal, bootstrap) {
  36056. "use strict";
  36057. var _converse$env = converse.env,
  36058. Strophe = _converse$env.Strophe,
  36059. Backbone = _converse$env.Backbone,
  36060. _ = _converse$env._;
  36061. converse.plugins.add('converse-modal', {
  36062. initialize: function initialize() {
  36063. var _converse = this._converse;
  36064. _converse.BootstrapModal = Backbone.VDOMView.extend({
  36065. initialize: function initialize() {
  36066. var _this = this;
  36067. this.render().insertIntoDOM();
  36068. this.modal = new bootstrap.Modal(this.el, {
  36069. backdrop: 'static',
  36070. keyboard: true
  36071. });
  36072. this.el.addEventListener('hide.bs.modal', function (event) {
  36073. if (!_.isNil(_this.trigger_el)) {
  36074. _this.trigger_el.classList.remove('selected');
  36075. }
  36076. }, false);
  36077. },
  36078. insertIntoDOM: function insertIntoDOM() {
  36079. var container_el = _converse.chatboxviews.el.querySelector("#converse-modals");
  36080. container_el.insertAdjacentElement('beforeEnd', this.el);
  36081. },
  36082. show: function show(ev) {
  36083. if (ev) {
  36084. ev.preventDefault();
  36085. this.trigger_el = ev.target;
  36086. this.trigger_el.classList.add('selected');
  36087. }
  36088. this.modal.show();
  36089. }
  36090. });
  36091. _converse.Alert = _converse.BootstrapModal.extend({
  36092. initialize: function initialize() {
  36093. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  36094. this.model.on('change', this.render, this);
  36095. },
  36096. toHTML: function toHTML() {
  36097. return tpl_alert_modal(this.model.toJSON());
  36098. }
  36099. });
  36100. _converse.api.listen.on('afterTearDown', function () {
  36101. if (!_converse.chatboxviews) {
  36102. return;
  36103. }
  36104. var container = _converse.chatboxviews.el.querySelector("#converse-modals");
  36105. if (container) {
  36106. container.innerHTML = '';
  36107. }
  36108. });
  36109. /************************ BEGIN API ************************/
  36110. // We extend the default converse.js API to add methods specific to MUC chat rooms.
  36111. var alert;
  36112. _.extend(_converse.api, {
  36113. 'alert': {
  36114. 'show': function show(type, title, messages) {
  36115. if (_.isString(messages)) {
  36116. messages = [messages];
  36117. }
  36118. if (type === Strophe.LogLevel.ERROR) {
  36119. type = 'alert-danger';
  36120. } else if (type === Strophe.LogLevel.INFO) {
  36121. type = 'alert-info';
  36122. } else if (type === Strophe.LogLevel.WARN) {
  36123. type = 'alert-warning';
  36124. }
  36125. if (_.isUndefined(alert)) {
  36126. var model = new Backbone.Model({
  36127. 'title': title,
  36128. 'messages': messages,
  36129. 'type': type
  36130. });
  36131. alert = new _converse.Alert({
  36132. 'model': model
  36133. });
  36134. } else {
  36135. alert.model.set({
  36136. 'title': title,
  36137. 'messages': messages,
  36138. 'type': type
  36139. });
  36140. }
  36141. alert.show();
  36142. }
  36143. }
  36144. });
  36145. }
  36146. });
  36147. });
  36148. /***/ }),
  36149. /***/ "./src/converse-muc-views.js":
  36150. /*!***********************************!*\
  36151. !*** ./src/converse-muc-views.js ***!
  36152. \***********************************/
  36153. /*! no static exports found */
  36154. /***/ (function(module, exports, __webpack_require__) {
  36155. "use strict";
  36156. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  36157. // Converse.js
  36158. // http://conversejs.org
  36159. //
  36160. // Copyright (c) 2013-2018, the Converse.js developers
  36161. // Licensed under the Mozilla Public License (MPLv2)
  36162. (function (root, factory) {
  36163. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! formdata-polyfill */ "./node_modules/formdata-polyfill/FormData.js"), __webpack_require__(/*! utils/muc */ "./src/utils/muc.js"), __webpack_require__(/*! xss */ "./node_modules/xss/dist/xss.js"), __webpack_require__(/*! templates/add_chatroom_modal.html */ "./src/templates/add_chatroom_modal.html"), __webpack_require__(/*! templates/chatarea.html */ "./src/templates/chatarea.html"), __webpack_require__(/*! templates/chatroom.html */ "./src/templates/chatroom.html"), __webpack_require__(/*! templates/chatroom_details_modal.html */ "./src/templates/chatroom_details_modal.html"), __webpack_require__(/*! templates/chatroom_disconnect.html */ "./src/templates/chatroom_disconnect.html"), __webpack_require__(/*! templates/chatroom_features.html */ "./src/templates/chatroom_features.html"), __webpack_require__(/*! templates/chatroom_form.html */ "./src/templates/chatroom_form.html"), __webpack_require__(/*! templates/chatroom_head.html */ "./src/templates/chatroom_head.html"), __webpack_require__(/*! templates/chatroom_invite.html */ "./src/templates/chatroom_invite.html"), __webpack_require__(/*! templates/chatroom_nickname_form.html */ "./src/templates/chatroom_nickname_form.html"), __webpack_require__(/*! templates/chatroom_password_form.html */ "./src/templates/chatroom_password_form.html"), __webpack_require__(/*! templates/chatroom_sidebar.html */ "./src/templates/chatroom_sidebar.html"), __webpack_require__(/*! templates/info.html */ "./src/templates/info.html"), __webpack_require__(/*! templates/list_chatrooms_modal.html */ "./src/templates/list_chatrooms_modal.html"), __webpack_require__(/*! templates/occupant.html */ "./src/templates/occupant.html"), __webpack_require__(/*! templates/room_description.html */ "./src/templates/room_description.html"), __webpack_require__(/*! templates/room_item.html */ "./src/templates/room_item.html"), __webpack_require__(/*! templates/room_panel.html */ "./src/templates/room_panel.html"), __webpack_require__(/*! templates/rooms_results.html */ "./src/templates/rooms_results.html"), __webpack_require__(/*! templates/spinner.html */ "./src/templates/spinner.html"), __webpack_require__(/*! awesomplete */ "awesomplete"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  36164. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  36165. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  36166. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  36167. })(void 0, function (converse, _FormData, muc_utils, xss, tpl_add_chatroom_modal, tpl_chatarea, tpl_chatroom, tpl_chatroom_details_modal, tpl_chatroom_disconnect, tpl_chatroom_features, tpl_chatroom_form, tpl_chatroom_head, tpl_chatroom_invite, tpl_chatroom_nickname_form, tpl_chatroom_password_form, tpl_chatroom_sidebar, tpl_info, tpl_list_chatrooms_modal, tpl_occupant, tpl_room_description, tpl_room_item, tpl_room_panel, tpl_rooms_results, tpl_spinner, Awesomplete) {
  36168. "use strict";
  36169. var _converse$env = converse.env,
  36170. Backbone = _converse$env.Backbone,
  36171. Promise = _converse$env.Promise,
  36172. Strophe = _converse$env.Strophe,
  36173. b64_sha1 = _converse$env.b64_sha1,
  36174. moment = _converse$env.moment,
  36175. f = _converse$env.f,
  36176. sizzle = _converse$env.sizzle,
  36177. _ = _converse$env._,
  36178. $build = _converse$env.$build,
  36179. $iq = _converse$env.$iq,
  36180. $msg = _converse$env.$msg,
  36181. $pres = _converse$env.$pres;
  36182. var u = converse.env.utils;
  36183. var ROOM_FEATURES_MAP = {
  36184. 'passwordprotected': 'unsecured',
  36185. 'unsecured': 'passwordprotected',
  36186. 'hidden': 'publicroom',
  36187. 'publicroom': 'hidden',
  36188. 'membersonly': 'open',
  36189. 'open': 'membersonly',
  36190. 'persistent': 'temporary',
  36191. 'temporary': 'persistent',
  36192. 'nonanonymous': 'semianonymous',
  36193. 'semianonymous': 'nonanonymous',
  36194. 'moderated': 'unmoderated',
  36195. 'unmoderated': 'moderated'
  36196. };
  36197. converse.plugins.add('converse-muc-views', {
  36198. /* Dependencies are other plugins which might be
  36199. * overridden or relied upon, and therefore need to be loaded before
  36200. * this plugin. They are "optional" because they might not be
  36201. * available, in which case any overrides applicable to them will be
  36202. * ignored.
  36203. *
  36204. * NB: These plugins need to have already been loaded via require.js.
  36205. *
  36206. * It's possible to make these dependencies "non-optional".
  36207. * If the setting "strict_plugin_dependencies" is set to true,
  36208. * an error will be raised if the plugin is not found.
  36209. */
  36210. dependencies: ["converse-autocomplete", "converse-modal", "converse-controlbox", "converse-chatview"],
  36211. overrides: {
  36212. ControlBoxView: {
  36213. renderRoomsPanel: function renderRoomsPanel() {
  36214. var _converse = this.__super__._converse;
  36215. this.roomspanel = new _converse.RoomsPanel({
  36216. 'model': new (_converse.RoomsPanelModel.extend({
  36217. 'id': b64_sha1("converse.roomspanel".concat(_converse.bare_jid)),
  36218. // Required by sessionStorage
  36219. 'browserStorage': new Backbone.BrowserStorage[_converse.config.get('storage')](b64_sha1("converse.roomspanel".concat(_converse.bare_jid)))
  36220. }))()
  36221. });
  36222. this.roomspanel.model.fetch();
  36223. this.el.querySelector('.controlbox-pane').insertAdjacentElement('beforeEnd', this.roomspanel.render().el);
  36224. if (!this.roomspanel.model.get('nick')) {
  36225. this.roomspanel.model.save({
  36226. nick: _converse.xmppstatus.vcard.get('nickname') || Strophe.getNodeFromJid(_converse.bare_jid)
  36227. });
  36228. }
  36229. _converse.emit('roomsPanelRendered');
  36230. },
  36231. renderControlBoxPane: function renderControlBoxPane() {
  36232. var _converse = this.__super__._converse;
  36233. this.__super__.renderControlBoxPane.apply(this, arguments);
  36234. if (_converse.allow_muc) {
  36235. this.renderRoomsPanel();
  36236. }
  36237. }
  36238. }
  36239. },
  36240. initialize: function initialize() {
  36241. var _converse = this._converse,
  36242. __ = _converse.__;
  36243. _converse.api.promises.add(['roomsPanelRendered']); // Configuration values for this plugin
  36244. // ====================================
  36245. // Refer to docs/source/configuration.rst for explanations of these
  36246. // configuration settings.
  36247. _converse.api.settings.update({
  36248. 'auto_list_rooms': false,
  36249. 'hide_muc_server': false,
  36250. // TODO: no longer implemented...
  36251. 'muc_disable_moderator_commands': false,
  36252. 'visible_toolbar_buttons': {
  36253. 'toggle_occupants': true
  36254. }
  36255. });
  36256. function ___(str) {
  36257. /* This is part of a hack to get gettext to scan strings to be
  36258. * translated. Strings we cannot send to the function above because
  36259. * they require variable interpolation and we don't yet have the
  36260. * variables at scan time.
  36261. *
  36262. * See actionInfoMessages further below.
  36263. */
  36264. return str;
  36265. }
  36266. /* http://xmpp.org/extensions/xep-0045.html
  36267. * ----------------------------------------
  36268. * 100 message Entering a groupchat Inform user that any occupant is allowed to see the user's full JID
  36269. * 101 message (out of band) Affiliation change Inform user that his or her affiliation changed while not in the groupchat
  36270. * 102 message Configuration change Inform occupants that groupchat now shows unavailable members
  36271. * 103 message Configuration change Inform occupants that groupchat now does not show unavailable members
  36272. * 104 message Configuration change Inform occupants that a non-privacy-related groupchat configuration change has occurred
  36273. * 110 presence Any groupchat presence Inform user that presence refers to one of its own groupchat occupants
  36274. * 170 message or initial presence Configuration change Inform occupants that groupchat logging is now enabled
  36275. * 171 message Configuration change Inform occupants that groupchat logging is now disabled
  36276. * 172 message Configuration change Inform occupants that the groupchat is now non-anonymous
  36277. * 173 message Configuration change Inform occupants that the groupchat is now semi-anonymous
  36278. * 174 message Configuration change Inform occupants that the groupchat is now fully-anonymous
  36279. * 201 presence Entering a groupchat Inform user that a new groupchat has been created
  36280. * 210 presence Entering a groupchat Inform user that the service has assigned or modified the occupant's roomnick
  36281. * 301 presence Removal from groupchat Inform user that he or she has been banned from the groupchat
  36282. * 303 presence Exiting a groupchat Inform all occupants of new groupchat nickname
  36283. * 307 presence Removal from groupchat Inform user that he or she has been kicked from the groupchat
  36284. * 321 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of an affiliation change
  36285. * 322 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because the groupchat has been changed to members-only and the user is not a member
  36286. * 332 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of a system shutdown
  36287. */
  36288. _converse.muc = {
  36289. info_messages: {
  36290. 100: __('This groupchat is not anonymous'),
  36291. 102: __('This groupchat now shows unavailable members'),
  36292. 103: __('This groupchat does not show unavailable members'),
  36293. 104: __('The groupchat configuration has changed'),
  36294. 170: __('groupchat logging is now enabled'),
  36295. 171: __('groupchat logging is now disabled'),
  36296. 172: __('This groupchat is now no longer anonymous'),
  36297. 173: __('This groupchat is now semi-anonymous'),
  36298. 174: __('This groupchat is now fully-anonymous'),
  36299. 201: __('A new groupchat has been created')
  36300. },
  36301. disconnect_messages: {
  36302. 301: __('You have been banned from this groupchat'),
  36303. 307: __('You have been kicked from this groupchat'),
  36304. 321: __("You have been removed from this groupchat because of an affiliation change"),
  36305. 322: __("You have been removed from this groupchat because the groupchat has changed to members-only and you're not a member"),
  36306. 332: __("You have been removed from this groupchat because the service hosting it is being shut down")
  36307. },
  36308. action_info_messages: {
  36309. /* XXX: Note the triple underscore function and not double
  36310. * underscore.
  36311. *
  36312. * This is a hack. We can't pass the strings to __ because we
  36313. * don't yet know what the variable to interpolate is.
  36314. *
  36315. * Triple underscore will just return the string again, but we
  36316. * can then at least tell gettext to scan for it so that these
  36317. * strings are picked up by the translation machinery.
  36318. */
  36319. 301: ___("%1$s has been banned"),
  36320. 303: ___("%1$s's nickname has changed"),
  36321. 307: ___("%1$s has been kicked out"),
  36322. 321: ___("%1$s has been removed because of an affiliation change"),
  36323. 322: ___("%1$s has been removed for not being a member")
  36324. },
  36325. new_nickname_messages: {
  36326. 210: ___('Your nickname has been automatically set to %1$s'),
  36327. 303: ___('Your nickname has been changed to %1$s')
  36328. }
  36329. };
  36330. function insertRoomInfo(el, stanza) {
  36331. /* Insert groupchat info (based on returned #disco IQ stanza)
  36332. *
  36333. * Parameters:
  36334. * (HTMLElement) el: The HTML DOM element that should
  36335. * contain the info.
  36336. * (XMLElement) stanza: The IQ stanza containing the groupchat
  36337. * info.
  36338. */
  36339. // All MUC features found here: http://xmpp.org/registrar/disco-features.html
  36340. el.querySelector('span.spinner').remove();
  36341. el.querySelector('a.room-info').classList.add('selected');
  36342. el.insertAdjacentHTML('beforeEnd', tpl_room_description({
  36343. 'jid': stanza.getAttribute('from'),
  36344. 'desc': _.get(_.head(sizzle('field[var="muc#roominfo_description"] value', stanza)), 'textContent'),
  36345. 'occ': _.get(_.head(sizzle('field[var="muc#roominfo_occupants"] value', stanza)), 'textContent'),
  36346. 'hidden': sizzle('feature[var="muc_hidden"]', stanza).length,
  36347. 'membersonly': sizzle('feature[var="muc_membersonly"]', stanza).length,
  36348. 'moderated': sizzle('feature[var="muc_moderated"]', stanza).length,
  36349. 'nonanonymous': sizzle('feature[var="muc_nonanonymous"]', stanza).length,
  36350. 'open': sizzle('feature[var="muc_open"]', stanza).length,
  36351. 'passwordprotected': sizzle('feature[var="muc_passwordprotected"]', stanza).length,
  36352. 'persistent': sizzle('feature[var="muc_persistent"]', stanza).length,
  36353. 'publicroom': sizzle('feature[var="muc_publicroom"]', stanza).length,
  36354. 'semianonymous': sizzle('feature[var="muc_semianonymous"]', stanza).length,
  36355. 'temporary': sizzle('feature[var="muc_temporary"]', stanza).length,
  36356. 'unmoderated': sizzle('feature[var="muc_unmoderated"]', stanza).length,
  36357. 'label_desc': __('Description:'),
  36358. 'label_jid': __('Groupchat Address (JID):'),
  36359. 'label_occ': __('Participants:'),
  36360. 'label_features': __('Features:'),
  36361. 'label_requires_auth': __('Requires authentication'),
  36362. 'label_hidden': __('Hidden'),
  36363. 'label_requires_invite': __('Requires an invitation'),
  36364. 'label_moderated': __('Moderated'),
  36365. 'label_non_anon': __('Non-anonymous'),
  36366. 'label_open_room': __('Open'),
  36367. 'label_permanent_room': __('Permanent'),
  36368. 'label_public': __('Public'),
  36369. 'label_semi_anon': __('Semi-anonymous'),
  36370. 'label_temp_room': __('Temporary'),
  36371. 'label_unmoderated': __('Unmoderated')
  36372. }));
  36373. }
  36374. function _toggleRoomInfo(ev) {
  36375. /* Show/hide extra information about a groupchat in a listing. */
  36376. var parent_el = u.ancestor(ev.target, '.room-item'),
  36377. div_el = parent_el.querySelector('div.room-info');
  36378. if (div_el) {
  36379. u.slideIn(div_el).then(u.removeElement);
  36380. parent_el.querySelector('a.room-info').classList.remove('selected');
  36381. } else {
  36382. parent_el.insertAdjacentHTML('beforeend', tpl_spinner());
  36383. _converse.api.disco.info(ev.target.getAttribute('data-room-jid'), null).then(function (stanza) {
  36384. return insertRoomInfo(parent_el, stanza);
  36385. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  36386. }
  36387. }
  36388. _converse.ListChatRoomsModal = _converse.BootstrapModal.extend({
  36389. events: {
  36390. 'submit form': 'showRooms',
  36391. 'click a.room-info': 'toggleRoomInfo',
  36392. 'change input[name=nick]': 'setNick',
  36393. 'change input[name=server]': 'setDomain',
  36394. 'click .open-room': 'openRoom'
  36395. },
  36396. initialize: function initialize() {
  36397. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  36398. this.model.on('change:muc_domain', this.onDomainChange, this);
  36399. },
  36400. toHTML: function toHTML() {
  36401. return tpl_list_chatrooms_modal(_.extend(this.model.toJSON(), {
  36402. 'heading_list_chatrooms': __('Query for Groupchats'),
  36403. 'label_server_address': __('Server address'),
  36404. 'label_query': __('Show groupchats'),
  36405. 'server_placeholder': __('conference.example.org')
  36406. }));
  36407. },
  36408. afterRender: function afterRender() {
  36409. var _this = this;
  36410. this.el.addEventListener('shown.bs.modal', function () {
  36411. _this.el.querySelector('input[name="server"]').focus();
  36412. }, false);
  36413. },
  36414. openRoom: function openRoom(ev) {
  36415. ev.preventDefault();
  36416. var jid = ev.target.getAttribute('data-room-jid');
  36417. var name = ev.target.getAttribute('data-room-name');
  36418. this.modal.hide();
  36419. _converse.api.rooms.open(jid, {
  36420. 'name': name
  36421. });
  36422. },
  36423. toggleRoomInfo: function toggleRoomInfo(ev) {
  36424. ev.preventDefault();
  36425. _toggleRoomInfo(ev);
  36426. },
  36427. onDomainChange: function onDomainChange(model) {
  36428. if (_converse.auto_list_rooms) {
  36429. this.updateRoomsList();
  36430. }
  36431. },
  36432. roomStanzaItemToHTMLElement: function roomStanzaItemToHTMLElement(groupchat) {
  36433. var name = Strophe.unescapeNode(groupchat.getAttribute('name') || groupchat.getAttribute('jid'));
  36434. var div = document.createElement('div');
  36435. div.innerHTML = tpl_room_item({
  36436. 'name': Strophe.xmlunescape(name),
  36437. 'jid': groupchat.getAttribute('jid'),
  36438. 'open_title': __('Click to open this groupchat'),
  36439. 'info_title': __('Show more information on this groupchat')
  36440. });
  36441. return div.firstElementChild;
  36442. },
  36443. removeSpinner: function removeSpinner() {
  36444. _.each(this.el.querySelectorAll('span.spinner'), function (el) {
  36445. return el.parentNode.removeChild(el);
  36446. });
  36447. },
  36448. informNoRoomsFound: function informNoRoomsFound() {
  36449. var chatrooms_el = this.el.querySelector('.available-chatrooms');
  36450. chatrooms_el.innerHTML = tpl_rooms_results({
  36451. 'feedback_text': __('No groupchats found')
  36452. });
  36453. var input_el = this.el.querySelector('input[name="server"]');
  36454. input_el.classList.remove('hidden');
  36455. this.removeSpinner();
  36456. },
  36457. onRoomsFound: function onRoomsFound(iq) {
  36458. /* Handle the IQ stanza returned from the server, containing
  36459. * all its public groupchats.
  36460. */
  36461. var available_chatrooms = this.el.querySelector('.available-chatrooms');
  36462. this.rooms = iq.querySelectorAll('query item');
  36463. if (this.rooms.length) {
  36464. // For translators: %1$s is a variable and will be
  36465. // replaced with the XMPP server name
  36466. available_chatrooms.innerHTML = tpl_rooms_results({
  36467. 'feedback_text': __('Groupchats found:')
  36468. });
  36469. var fragment = document.createDocumentFragment();
  36470. var children = _.reject(_.map(this.rooms, this.roomStanzaItemToHTMLElement), _.isNil);
  36471. _.each(children, function (child) {
  36472. return fragment.appendChild(child);
  36473. });
  36474. available_chatrooms.appendChild(fragment);
  36475. this.removeSpinner();
  36476. } else {
  36477. this.informNoRoomsFound();
  36478. }
  36479. return true;
  36480. },
  36481. updateRoomsList: function updateRoomsList() {
  36482. /* Send an IQ stanza to the server asking for all groupchats
  36483. */
  36484. _converse.connection.sendIQ($iq({
  36485. 'to': this.model.get('muc_domain'),
  36486. 'from': _converse.connection.jid,
  36487. 'type': "get"
  36488. }).c("query", {
  36489. xmlns: Strophe.NS.DISCO_ITEMS
  36490. }), this.onRoomsFound.bind(this), this.informNoRoomsFound.bind(this), 5000);
  36491. },
  36492. showRooms: function showRooms(ev) {
  36493. ev.preventDefault();
  36494. var data = new FormData(ev.target);
  36495. this.model.save('muc_domain', Strophe.getDomainFromJid(data.get('server')));
  36496. this.updateRoomsList();
  36497. },
  36498. setDomain: function setDomain(ev) {
  36499. this.model.save('muc_domain', Strophe.getDomainFromJid(ev.target.value));
  36500. },
  36501. setNick: function setNick(ev) {
  36502. this.model.save({
  36503. nick: ev.target.value
  36504. });
  36505. }
  36506. });
  36507. _converse.AddChatRoomModal = _converse.BootstrapModal.extend({
  36508. events: {
  36509. 'submit form.add-chatroom': 'openChatRoom'
  36510. },
  36511. toHTML: function toHTML() {
  36512. return tpl_add_chatroom_modal(_.extend(this.model.toJSON(), {
  36513. 'heading_new_chatroom': __('Enter a new Groupchat'),
  36514. 'label_room_address': __('Groupchat address'),
  36515. 'label_nickname': __('Optional nickname'),
  36516. 'chatroom_placeholder': __('name@conference.example.org'),
  36517. 'label_join': __('Join')
  36518. }));
  36519. },
  36520. afterRender: function afterRender() {
  36521. var _this2 = this;
  36522. this.el.addEventListener('shown.bs.modal', function () {
  36523. _this2.el.querySelector('input[name="chatroom"]').focus();
  36524. }, false);
  36525. },
  36526. parseRoomDataFromEvent: function parseRoomDataFromEvent(form) {
  36527. var data = new FormData(form);
  36528. var jid = data.get('chatroom');
  36529. this.model.save('muc_domain', Strophe.getDomainFromJid(jid));
  36530. return {
  36531. 'jid': jid,
  36532. 'nick': data.get('nickname')
  36533. };
  36534. },
  36535. openChatRoom: function openChatRoom(ev) {
  36536. ev.preventDefault();
  36537. var data = this.parseRoomDataFromEvent(ev.target);
  36538. if (data.nick === "") {
  36539. // Make sure defaults apply if no nick is provided.
  36540. data.nick = undefined;
  36541. }
  36542. _converse.api.rooms.open(data.jid, data);
  36543. this.modal.hide();
  36544. ev.target.reset();
  36545. }
  36546. });
  36547. _converse.RoomDetailsModal = _converse.BootstrapModal.extend({
  36548. initialize: function initialize() {
  36549. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  36550. this.model.on('change', this.render, this);
  36551. this.model.occupants.on('change', this.render, this);
  36552. },
  36553. toHTML: function toHTML() {
  36554. return tpl_chatroom_details_modal(_.extend(this.model.toJSON(), {
  36555. '_': _,
  36556. '__': __,
  36557. 'topic': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
  36558. 'whiteList': {}
  36559. })),
  36560. 'display_name': __('Groupchat info for %1$s', this.model.getDisplayName()),
  36561. 'num_occupants': this.model.occupants.length
  36562. }));
  36563. }
  36564. });
  36565. _converse.ChatRoomView = _converse.ChatBoxView.extend({
  36566. /* Backbone.NativeView which renders a groupchat, based upon the view
  36567. * for normal one-on-one chat boxes.
  36568. */
  36569. length: 300,
  36570. tagName: 'div',
  36571. className: 'chatbox chatroom hidden',
  36572. is_chatroom: true,
  36573. events: {
  36574. 'change input.fileupload': 'onFileSelection',
  36575. 'click .chat-msg__action-edit': 'onMessageEditButtonClicked',
  36576. 'click .chatbox-navback': 'showControlBox',
  36577. 'click .close-chatbox-button': 'close',
  36578. 'click .configure-chatroom-button': 'getAndRenderConfigurationForm',
  36579. 'click .show-room-details-modal': 'showRoomDetailsModal',
  36580. 'click .hide-occupants': 'hideOccupants',
  36581. 'click .new-msgs-indicator': 'viewUnreadMessages',
  36582. 'click .occupant-nick': 'onOccupantClicked',
  36583. 'click .send-button': 'onFormSubmitted',
  36584. 'click .toggle-call': 'toggleCall',
  36585. 'click .toggle-occupants': 'toggleOccupants',
  36586. 'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
  36587. 'click .toggle-smiley': 'toggleEmojiMenu',
  36588. 'click .upload-file': 'toggleFileUpload',
  36589. 'keydown .chat-textarea': 'keyPressed',
  36590. 'keyup .chat-textarea': 'keyUp',
  36591. 'input .chat-textarea': 'inputChanged'
  36592. },
  36593. initialize: function initialize() {
  36594. var _this3 = this;
  36595. this.initDebounced();
  36596. this.model.messages.on('add', this.onMessageAdded, this);
  36597. this.model.messages.on('rendered', this.scrollDown, this);
  36598. this.model.on('change:affiliation', this.renderHeading, this);
  36599. this.model.on('change:connection_status', this.afterConnected, this);
  36600. this.model.on('change:name', this.renderHeading, this);
  36601. this.model.on('change:subject', this.renderHeading, this);
  36602. this.model.on('change:subject', this.setChatRoomSubject, this);
  36603. this.model.on('configurationNeeded', this.getAndRenderConfigurationForm, this);
  36604. this.model.on('destroy', this.hide, this);
  36605. this.model.on('show', this.show, this);
  36606. this.model.occupants.on('add', this.showJoinNotification, this);
  36607. this.model.occupants.on('remove', this.showLeaveNotification, this);
  36608. this.model.occupants.on('change:show', this.showJoinOrLeaveNotification, this);
  36609. this.model.occupants.on('change:role', this.informOfOccupantsRoleChange, this);
  36610. this.model.occupants.on('change:affiliation', this.informOfOccupantsAffiliationChange, this);
  36611. this.createEmojiPicker();
  36612. this.createOccupantsView();
  36613. this.render().insertIntoDOM();
  36614. this.registerHandlers();
  36615. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  36616. var handler = function handler() {
  36617. if (!u.isPersistableModel(_this3.model)) {
  36618. // Happens during tests, nothing to do if this
  36619. // is a hanging chatbox (i.e. not in the collection anymore).
  36620. return;
  36621. }
  36622. _this3.populateAndJoin();
  36623. _converse.emit('chatRoomOpened', _this3);
  36624. };
  36625. this.model.getRoomFeatures().then(handler, handler);
  36626. } else {
  36627. this.fetchMessages();
  36628. _converse.emit('chatRoomOpened', this);
  36629. }
  36630. },
  36631. render: function render() {
  36632. this.el.setAttribute('id', this.model.get('box_id'));
  36633. this.el.innerHTML = tpl_chatroom();
  36634. this.renderHeading();
  36635. this.renderChatArea();
  36636. this.renderMessageForm();
  36637. this.initAutoComplete();
  36638. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  36639. this.showSpinner();
  36640. }
  36641. return this;
  36642. },
  36643. renderHeading: function renderHeading() {
  36644. /* Render the heading UI of the groupchat. */
  36645. this.el.querySelector('.chat-head-chatroom').innerHTML = this.generateHeadingHTML();
  36646. },
  36647. renderChatArea: function renderChatArea() {
  36648. /* Render the UI container in which groupchat messages will appear.
  36649. */
  36650. if (_.isNull(this.el.querySelector('.chat-area'))) {
  36651. var container_el = this.el.querySelector('.chatroom-body');
  36652. container_el.insertAdjacentHTML('beforeend', tpl_chatarea({
  36653. 'show_send_button': _converse.show_send_button
  36654. }));
  36655. container_el.insertAdjacentElement('beforeend', this.occupantsview.el);
  36656. this.content = this.el.querySelector('.chat-content');
  36657. this.toggleOccupants(null, true);
  36658. }
  36659. return this;
  36660. },
  36661. initAutoComplete: function initAutoComplete() {
  36662. var _this4 = this;
  36663. this.auto_complete = new _converse.AutoComplete(this.el, {
  36664. 'auto_first': true,
  36665. 'auto_evaluate': false,
  36666. 'min_chars': 1,
  36667. 'match_current_word': true,
  36668. 'match_on_tab': true,
  36669. 'list': function list() {
  36670. return _this4.model.occupants.map(function (o) {
  36671. return {
  36672. 'label': o.getDisplayName(),
  36673. 'value': "@".concat(o.getDisplayName())
  36674. };
  36675. });
  36676. },
  36677. 'filter': _converse.FILTER_STARTSWITH,
  36678. 'trigger_on_at': true
  36679. });
  36680. this.auto_complete.on('suggestion-box-selectcomplete', function () {
  36681. return _this4.auto_completing = false;
  36682. });
  36683. },
  36684. keyPressed: function keyPressed(ev) {
  36685. if (this.auto_complete.keyPressed(ev)) {
  36686. return;
  36687. }
  36688. return _converse.ChatBoxView.prototype.keyPressed.apply(this, arguments);
  36689. },
  36690. keyUp: function keyUp(ev) {
  36691. this.auto_complete.evaluate(ev);
  36692. },
  36693. showRoomDetailsModal: function showRoomDetailsModal(ev) {
  36694. ev.preventDefault();
  36695. if (_.isUndefined(this.model.room_details_modal)) {
  36696. this.model.room_details_modal = new _converse.RoomDetailsModal({
  36697. 'model': this.model
  36698. });
  36699. }
  36700. this.model.room_details_modal.show(ev);
  36701. },
  36702. showChatStateNotification: function showChatStateNotification(message) {
  36703. if (message.get('sender') === 'me') {
  36704. return;
  36705. }
  36706. return _converse.ChatBoxView.prototype.showChatStateNotification.apply(this, arguments);
  36707. },
  36708. createOccupantsView: function createOccupantsView() {
  36709. /* Create the ChatRoomOccupantsView Backbone.NativeView
  36710. */
  36711. this.model.occupants.chatroomview = this;
  36712. this.occupantsview = new _converse.ChatRoomOccupantsView({
  36713. 'model': this.model.occupants
  36714. });
  36715. return this;
  36716. },
  36717. informOfOccupantsAffiliationChange: function informOfOccupantsAffiliationChange(occupant, changed) {
  36718. var previous_affiliation = occupant._previousAttributes.affiliation,
  36719. current_affiliation = occupant.get('affiliation');
  36720. if (previous_affiliation === 'admin') {
  36721. this.showChatEvent(__("%1$s is no longer an admin of this groupchat", occupant.get('nick')));
  36722. } else if (previous_affiliation === 'owner') {
  36723. this.showChatEvent(__("%1$s is no longer an owner of this groupchat", occupant.get('nick')));
  36724. } else if (previous_affiliation === 'outcast') {
  36725. this.showChatEvent(__("%1$s is no longer banned from this groupchat", occupant.get('nick')));
  36726. }
  36727. if (current_affiliation === 'none' && previous_affiliation === 'member') {
  36728. this.showChatEvent(__("%1$s is no longer a permanent member of this groupchat", occupant.get('nick')));
  36729. }
  36730. if (current_affiliation === 'member') {
  36731. this.showChatEvent(__("%1$s is now a permanent member of this groupchat", occupant.get('nick')));
  36732. } else if (current_affiliation === 'outcast') {
  36733. this.showChatEvent(__("%1$s has been banned from this groupchat", occupant.get('nick')));
  36734. } else if (current_affiliation === 'admin' || current_affiliation == 'owner') {
  36735. this.showChatEvent(__("%1$s is now an ".concat(current_affiliation, " of this groupchat"), occupant.get('nick')));
  36736. }
  36737. },
  36738. informOfOccupantsRoleChange: function informOfOccupantsRoleChange(occupant, changed) {
  36739. var previous_role = occupant._previousAttributes.role;
  36740. if (previous_role === 'moderator') {
  36741. this.showChatEvent(__("%1$s is no longer a moderator", occupant.get('nick')));
  36742. }
  36743. if (previous_role === 'visitor') {
  36744. this.showChatEvent(__("%1$s has been given a voice again", occupant.get('nick')));
  36745. }
  36746. if (occupant.get('role') === 'visitor') {
  36747. this.showChatEvent(__("%1$s has been muted", occupant.get('nick')));
  36748. }
  36749. if (occupant.get('role') === 'moderator') {
  36750. this.showChatEvent(__("%1$s is now a moderator", occupant.get('nick')));
  36751. }
  36752. },
  36753. generateHeadingHTML: function generateHeadingHTML() {
  36754. /* Returns the heading HTML to be rendered.
  36755. */
  36756. return tpl_chatroom_head(_.extend(this.model.toJSON(), {
  36757. 'Strophe': Strophe,
  36758. 'info_close': __('Close and leave this groupchat'),
  36759. 'info_configure': __('Configure this groupchat'),
  36760. 'info_details': __('Show more details about this groupchat'),
  36761. 'description': _.get(this.model.get('subject'), 'text') || ''
  36762. }));
  36763. },
  36764. afterShown: function afterShown() {
  36765. /* Override from converse-chatview, specifically to avoid
  36766. * the 'active' chat state from being sent out prematurely.
  36767. *
  36768. * This is instead done in `afterConnected` below.
  36769. */
  36770. if (u.isPersistableModel(this.model)) {
  36771. this.model.clearUnreadMsgCounter();
  36772. this.model.save();
  36773. }
  36774. this.occupantsview.setOccupantsHeight();
  36775. this.scrollDown();
  36776. this.renderEmojiPicker();
  36777. },
  36778. show: function show() {
  36779. if (u.isVisible(this.el)) {
  36780. this.focus();
  36781. return;
  36782. } // Override from converse-chatview in order to not use
  36783. // "fadeIn", which causes flashing.
  36784. u.showElement(this.el);
  36785. this.afterShown();
  36786. },
  36787. afterConnected: function afterConnected() {
  36788. if (this.model.get('connection_status') === converse.ROOMSTATUS.ENTERED) {
  36789. this.hideSpinner();
  36790. this.setChatState(_converse.ACTIVE);
  36791. this.scrollDown();
  36792. this.focus();
  36793. }
  36794. },
  36795. getToolbarOptions: function getToolbarOptions() {
  36796. return _.extend(_converse.ChatBoxView.prototype.getToolbarOptions.apply(this, arguments), {
  36797. 'label_hide_occupants': __('Hide the list of participants'),
  36798. 'show_occupants_toggle': this.is_chatroom && _converse.visible_toolbar_buttons.toggle_occupants
  36799. });
  36800. },
  36801. close: function close(ev) {
  36802. /* Close this chat box, which implies leaving the groupchat as
  36803. * well.
  36804. */
  36805. this.hide();
  36806. if (Backbone.history.getFragment() === "converse/room?jid=" + this.model.get('jid')) {
  36807. _converse.router.navigate('');
  36808. }
  36809. this.model.leave();
  36810. _converse.ChatBoxView.prototype.close.apply(this, arguments);
  36811. },
  36812. setOccupantsVisibility: function setOccupantsVisibility() {
  36813. var icon_el = this.el.querySelector('.toggle-occupants');
  36814. if (this.model.get('hidden_occupants')) {
  36815. u.removeClass('fa-angle-double-right', icon_el);
  36816. u.addClass('fa-angle-double-left', icon_el);
  36817. u.addClass('full', this.el.querySelector('.chat-area'));
  36818. u.hideElement(this.el.querySelector('.occupants'));
  36819. } else {
  36820. u.addClass('fa-angle-double-right', icon_el);
  36821. u.removeClass('fa-angle-double-left', icon_el);
  36822. u.removeClass('full', this.el.querySelector('.chat-area'));
  36823. u.removeClass('hidden', this.el.querySelector('.occupants'));
  36824. }
  36825. this.occupantsview.setOccupantsHeight();
  36826. },
  36827. hideOccupants: function hideOccupants(ev, preserve_state) {
  36828. /* Show or hide the right sidebar containing the chat
  36829. * occupants (and the invite widget).
  36830. */
  36831. if (ev) {
  36832. ev.preventDefault();
  36833. ev.stopPropagation();
  36834. }
  36835. this.model.save({
  36836. 'hidden_occupants': true
  36837. });
  36838. this.setOccupantsVisibility();
  36839. this.scrollDown();
  36840. },
  36841. toggleOccupants: function toggleOccupants(ev, preserve_state) {
  36842. /* Show or hide the right sidebar containing the chat
  36843. * occupants (and the invite widget).
  36844. */
  36845. if (ev) {
  36846. ev.preventDefault();
  36847. ev.stopPropagation();
  36848. }
  36849. if (!preserve_state) {
  36850. this.model.set({
  36851. 'hidden_occupants': !this.model.get('hidden_occupants')
  36852. });
  36853. }
  36854. this.setOccupantsVisibility();
  36855. this.scrollDown();
  36856. },
  36857. onOccupantClicked: function onOccupantClicked(ev) {
  36858. /* When an occupant is clicked, insert their nickname into
  36859. * the chat textarea input.
  36860. */
  36861. this.insertIntoTextArea(ev.target.textContent);
  36862. },
  36863. handleChatStateNotification: function handleChatStateNotification(message) {
  36864. /* Override the method on the ChatBoxView base class to
  36865. * ignore <gone/> notifications in groupchats.
  36866. *
  36867. * As laid out in the business rules in XEP-0085
  36868. * http://xmpp.org/extensions/xep-0085.html#bizrules-groupchat
  36869. */
  36870. if (message.get('fullname') === this.model.get('nick')) {
  36871. // Don't know about other servers, but OpenFire sends
  36872. // back to you your own chat state notifications.
  36873. // We ignore them here...
  36874. return;
  36875. }
  36876. if (message.get('chat_state') !== _converse.GONE) {
  36877. _converse.ChatBoxView.prototype.handleChatStateNotification.apply(this, arguments);
  36878. }
  36879. },
  36880. modifyRole: function modifyRole(groupchat, nick, role, reason, onSuccess, onError) {
  36881. var item = $build("item", {
  36882. nick: nick,
  36883. role: role
  36884. });
  36885. var iq = $iq({
  36886. to: groupchat,
  36887. type: "set"
  36888. }).c("query", {
  36889. xmlns: Strophe.NS.MUC_ADMIN
  36890. }).cnode(item.node);
  36891. if (reason !== null) {
  36892. iq.c("reason", reason);
  36893. }
  36894. return _converse.connection.sendIQ(iq, onSuccess, onError);
  36895. },
  36896. verifyRoles: function verifyRoles(roles) {
  36897. var me = this.model.occupants.findWhere({
  36898. 'jid': _converse.bare_jid
  36899. });
  36900. if (!_.includes(roles, me.get('role'))) {
  36901. this.showErrorMessage(__("Forbidden: you do not have the necessary role in order to do that."));
  36902. return false;
  36903. }
  36904. return true;
  36905. },
  36906. verifyAffiliations: function verifyAffiliations(affiliations) {
  36907. var me = this.model.occupants.findWhere({
  36908. 'jid': _converse.bare_jid
  36909. });
  36910. if (!_.includes(affiliations, me.get('affiliation'))) {
  36911. this.showErrorMessage(__("Forbidden: you do not have the necessary affiliation in order to do that."));
  36912. return false;
  36913. }
  36914. return true;
  36915. },
  36916. validateRoleChangeCommand: function validateRoleChangeCommand(command, args) {
  36917. /* Check that a command to change a groupchat user's role or
  36918. * affiliation has anough arguments.
  36919. */
  36920. if (args.length < 1 || args.length > 2) {
  36921. this.showErrorMessage(__('Error: the "%1$s" command takes two arguments, the user\'s nickname and optionally a reason.', command));
  36922. return false;
  36923. }
  36924. if (!this.model.occupants.findWhere({
  36925. 'nick': args[0]
  36926. }) && !this.model.occupants.findWhere({
  36927. 'jid': args[0]
  36928. })) {
  36929. this.showErrorMessage(__('Error: couldn\'t find a groupchat participant "%1$s"', args[0]));
  36930. return false;
  36931. }
  36932. return true;
  36933. },
  36934. onCommandError: function onCommandError(err) {
  36935. _converse.log(err, Strophe.LogLevel.FATAL);
  36936. this.showErrorMessage(__("Sorry, an error happened while running the command. Check your browser's developer console for details."));
  36937. },
  36938. parseMessageForCommands: function parseMessageForCommands(text) {
  36939. var _this5 = this;
  36940. if (_converse.ChatBoxView.prototype.parseMessageForCommands.apply(this, arguments)) {
  36941. return true;
  36942. }
  36943. if (_converse.muc_disable_moderator_commands) {
  36944. return false;
  36945. }
  36946. var match = text.replace(/^\s*/, "").match(/^\/(.*?)(?: (.*))?$/) || [false, '', ''],
  36947. args = match[2] && match[2].splitOnce(' ').filter(function (s) {
  36948. return s;
  36949. }) || [],
  36950. command = match[1].toLowerCase();
  36951. switch (command) {
  36952. case 'admin':
  36953. if (!this.verifyAffiliations(['owner']) || !this.validateRoleChangeCommand(command, args)) {
  36954. break;
  36955. }
  36956. this.model.setAffiliation('admin', [{
  36957. 'jid': args[0],
  36958. 'reason': args[1]
  36959. }]).then(function () {
  36960. return _this5.model.occupants.fetchMembers();
  36961. }, function (err) {
  36962. return _this5.onCommandError(err);
  36963. });
  36964. break;
  36965. case 'ban':
  36966. if (!this.verifyAffiliations(['owner', 'admin']) || !this.validateRoleChangeCommand(command, args)) {
  36967. break;
  36968. }
  36969. this.model.setAffiliation('outcast', [{
  36970. 'jid': args[0],
  36971. 'reason': args[1]
  36972. }]).then(function () {
  36973. return _this5.model.occupants.fetchMembers();
  36974. }, function (err) {
  36975. return _this5.onCommandError(err);
  36976. });
  36977. break;
  36978. case 'deop':
  36979. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  36980. break;
  36981. }
  36982. this.modifyRole(this.model.get('jid'), args[0], 'participant', args[1], undefined, this.onCommandError.bind(this));
  36983. break;
  36984. case 'help':
  36985. this.showHelpMessages(["<strong>/admin</strong>: ".concat(__("Change user's affiliation to admin")), "<strong>/ban</strong>: ".concat(__('Ban user from groupchat')), "<strong>/clear</strong>: ".concat(__('Remove messages')), "<strong>/deop</strong>: ".concat(__('Change user role to participant')), "<strong>/help</strong>: ".concat(__('Show this menu')), "<strong>/kick</strong>: ".concat(__('Kick user from groupchat')), "<strong>/me</strong>: ".concat(__('Write in 3rd person')), "<strong>/member</strong>: ".concat(__('Grant membership to a user')), "<strong>/mute</strong>: ".concat(__("Remove user's ability to post messages")), "<strong>/nick</strong>: ".concat(__('Change your nickname')), "<strong>/op</strong>: ".concat(__('Grant moderator role to user')), "<strong>/owner</strong>: ".concat(__('Grant ownership of this groupchat')), "<strong>/register</strong>: ".concat(__("Register a nickname for this room")), "<strong>/revoke</strong>: ".concat(__("Revoke user's membership")), "<strong>/subject</strong>: ".concat(__('Set groupchat subject')), "<strong>/topic</strong>: ".concat(__('Set groupchat subject (alias for /subject)')), "<strong>/voice</strong>: ".concat(__('Allow muted user to post messages'))]);
  36986. break;
  36987. case 'kick':
  36988. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  36989. break;
  36990. }
  36991. this.modifyRole(this.model.get('jid'), args[0], 'none', args[1], undefined, this.onCommandError.bind(this));
  36992. break;
  36993. case 'mute':
  36994. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  36995. break;
  36996. }
  36997. this.modifyRole(this.model.get('jid'), args[0], 'visitor', args[1], undefined, this.onCommandError.bind(this));
  36998. break;
  36999. case 'member':
  37000. {
  37001. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  37002. break;
  37003. }
  37004. var occupant = this.model.occupants.findWhere({
  37005. 'nick': args[0]
  37006. }) || this.model.occupants.findWhere({
  37007. 'jid': args[0]
  37008. }),
  37009. attrs = {
  37010. 'jid': occupant.get('jid'),
  37011. 'reason': args[1]
  37012. };
  37013. if (_converse.auto_register_muc_nickname) {
  37014. attrs['nick'] = occupant.get('nick');
  37015. }
  37016. this.model.setAffiliation('member', [attrs]).then(function () {
  37017. return _this5.model.occupants.fetchMembers();
  37018. }).catch(function (err) {
  37019. return _this5.onCommandError(err);
  37020. });
  37021. break;
  37022. }
  37023. case 'nick':
  37024. if (!this.verifyRoles(['visitor', 'participant', 'moderator'])) {
  37025. break;
  37026. }
  37027. _converse.connection.send($pres({
  37028. from: _converse.connection.jid,
  37029. to: this.model.getRoomJIDAndNick(match[2]),
  37030. id: _converse.connection.getUniqueId()
  37031. }).tree());
  37032. break;
  37033. case 'owner':
  37034. if (!this.verifyAffiliations(['owner']) || !this.validateRoleChangeCommand(command, args)) {
  37035. break;
  37036. }
  37037. this.model.setAffiliation('owner', [{
  37038. 'jid': args[0],
  37039. 'reason': args[1]
  37040. }]).then(function () {
  37041. return _this5.model.occupants.fetchMembers();
  37042. }, function (err) {
  37043. return _this5.onCommandError(err);
  37044. });
  37045. break;
  37046. case 'op':
  37047. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  37048. break;
  37049. }
  37050. this.modifyRole(this.model.get('jid'), args[0], 'moderator', args[1], undefined, this.onCommandError.bind(this));
  37051. break;
  37052. case 'register':
  37053. if (args.length > 1) {
  37054. this.showErrorMessage(__("Error: invalid number of arguments"));
  37055. } else {
  37056. this.model.registerNickname().then(function (err_msg) {
  37057. if (err_msg) _this5.showErrorMessage(err_msg);
  37058. });
  37059. }
  37060. break;
  37061. case 'revoke':
  37062. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  37063. break;
  37064. }
  37065. this.model.setAffiliation('none', [{
  37066. 'jid': args[0],
  37067. 'reason': args[1]
  37068. }]).then(function () {
  37069. return _this5.model.occupants.fetchMembers();
  37070. }, function (err) {
  37071. return _this5.onCommandError(err);
  37072. });
  37073. break;
  37074. case 'topic':
  37075. case 'subject':
  37076. // TODO: should be done via API call to _converse.api.rooms
  37077. _converse.connection.send($msg({
  37078. to: this.model.get('jid'),
  37079. from: _converse.connection.jid,
  37080. type: "groupchat"
  37081. }).c("subject", {
  37082. xmlns: "jabber:client"
  37083. }).t(match[2] || "").tree());
  37084. break;
  37085. case 'voice':
  37086. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  37087. break;
  37088. }
  37089. this.modifyRole(this.model.get('jid'), args[0], 'participant', args[1], undefined, this.onCommandError.bind(this));
  37090. break;
  37091. default:
  37092. return false;
  37093. }
  37094. return true;
  37095. },
  37096. registerHandlers: function registerHandlers() {
  37097. /* Register presence and message handlers for this chat
  37098. * groupchat
  37099. */
  37100. // XXX: Ideally this can be refactored out so that we don't
  37101. // need to do stanza processing inside the views in this
  37102. // module. See the comment in "onPresence" for more info.
  37103. this.model.addHandler('presence', 'ChatRoomView.onPresence', this.onPresence.bind(this)); // XXX instead of having a method showStatusMessages, we could instead
  37104. // create message models in converse-muc.js and then give them views in this module.
  37105. this.model.addHandler('message', 'ChatRoomView.showStatusMessages', this.showStatusMessages.bind(this));
  37106. },
  37107. onPresence: function onPresence(pres) {
  37108. /* Handles all MUC presence stanzas.
  37109. *
  37110. * Parameters:
  37111. * (XMLElement) pres: The stanza
  37112. */
  37113. // XXX: Current thinking is that excessive stanza
  37114. // processing inside a view is a "code smell".
  37115. // Instead stanza processing should happen inside the
  37116. // models/collections.
  37117. if (pres.getAttribute('type') === 'error') {
  37118. this.showErrorMessageFromPresence(pres);
  37119. } else {
  37120. // Instead of doing it this way, we could perhaps rather
  37121. // create StatusMessage objects inside the messages
  37122. // Collection and then simply render those. Then stanza
  37123. // processing is done on the model and rendering in the
  37124. // view(s).
  37125. this.showStatusMessages(pres);
  37126. }
  37127. },
  37128. populateAndJoin: function populateAndJoin() {
  37129. this.model.occupants.fetchMembers();
  37130. this.join();
  37131. this.fetchMessages();
  37132. },
  37133. join: function join(nick, password) {
  37134. /* Join the groupchat.
  37135. *
  37136. * Parameters:
  37137. * (String) nick: The user's nickname
  37138. * (String) password: Optional password, if required by
  37139. * the groupchat.
  37140. */
  37141. if (!nick && !this.model.get('nick')) {
  37142. this.checkForReservedNick();
  37143. return this;
  37144. }
  37145. this.model.join(nick, password);
  37146. return this;
  37147. },
  37148. renderConfigurationForm: function renderConfigurationForm(stanza) {
  37149. var _this6 = this;
  37150. /* Renders a form given an IQ stanza containing the current
  37151. * groupchat configuration.
  37152. *
  37153. * Returns a promise which resolves once the user has
  37154. * either submitted the form, or canceled it.
  37155. *
  37156. * Parameters:
  37157. * (XMLElement) stanza: The IQ stanza containing the groupchat
  37158. * config.
  37159. */
  37160. var container_el = this.el.querySelector('.chatroom-body');
  37161. _.each(container_el.querySelectorAll('.chatroom-form-container'), u.removeElement);
  37162. _.each(container_el.children, u.hideElement);
  37163. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_form());
  37164. var form_el = container_el.querySelector('form.chatroom-form'),
  37165. fieldset_el = form_el.querySelector('fieldset'),
  37166. fields = stanza.querySelectorAll('field'),
  37167. title = _.get(stanza.querySelector('title'), 'textContent'),
  37168. instructions = _.get(stanza.querySelector('instructions'), 'textContent');
  37169. u.removeElement(fieldset_el.querySelector('span.spinner'));
  37170. fieldset_el.insertAdjacentHTML('beforeend', "<legend>".concat(title, "</legend>"));
  37171. if (instructions && instructions !== title) {
  37172. fieldset_el.insertAdjacentHTML('beforeend', "<p class=\"form-help\">".concat(instructions, "</p>"));
  37173. }
  37174. _.each(fields, function (field) {
  37175. fieldset_el.insertAdjacentHTML('beforeend', u.xForm2webForm(field, stanza));
  37176. }); // Render save/cancel buttons
  37177. var last_fieldset_el = document.createElement('fieldset');
  37178. last_fieldset_el.insertAdjacentHTML('beforeend', "<input type=\"submit\" class=\"btn btn-primary\" value=\"".concat(__('Save'), "\"/>"));
  37179. last_fieldset_el.insertAdjacentHTML('beforeend', "<input type=\"button\" class=\"btn btn-secondary\" value=\"".concat(__('Cancel'), "\"/>"));
  37180. form_el.insertAdjacentElement('beforeend', last_fieldset_el);
  37181. last_fieldset_el.querySelector('input[type=button]').addEventListener('click', function (ev) {
  37182. ev.preventDefault();
  37183. _this6.closeForm();
  37184. });
  37185. form_el.addEventListener('submit', function (ev) {
  37186. ev.preventDefault();
  37187. _this6.model.saveConfiguration(ev.target).then(function () {
  37188. return _this6.model.refreshRoomFeatures();
  37189. });
  37190. _this6.closeForm();
  37191. }, false);
  37192. },
  37193. closeForm: function closeForm() {
  37194. /* Remove the configuration form without submitting and
  37195. * return to the chat view.
  37196. */
  37197. u.removeElement(this.el.querySelector('.chatroom-form-container'));
  37198. this.renderAfterTransition();
  37199. },
  37200. getAndRenderConfigurationForm: function getAndRenderConfigurationForm(ev) {
  37201. /* Start the process of configuring a groupchat, either by
  37202. * rendering a configuration form, or by auto-configuring
  37203. * based on the "roomconfig" data stored on the
  37204. * Backbone.Model.
  37205. *
  37206. * Stores the new configuration on the Backbone.Model once
  37207. * completed.
  37208. *
  37209. * Paremeters:
  37210. * (Event) ev: DOM event that might be passed in if this
  37211. * method is called due to a user action. In this
  37212. * case, auto-configure won't happen, regardless of
  37213. * the settings.
  37214. */
  37215. this.showSpinner();
  37216. this.model.fetchRoomConfiguration().then(this.renderConfigurationForm.bind(this)).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  37217. },
  37218. submitNickname: function submitNickname(ev) {
  37219. /* Get the nickname value from the form and then join the
  37220. * groupchat with it.
  37221. */
  37222. ev.preventDefault();
  37223. var nick_el = ev.target.nick;
  37224. var nick = nick_el.value;
  37225. if (!nick) {
  37226. nick_el.classList.add('error');
  37227. return;
  37228. } else {
  37229. nick_el.classList.remove('error');
  37230. }
  37231. this.el.querySelector('.chatroom-form-container').outerHTML = tpl_spinner();
  37232. this.join(nick);
  37233. },
  37234. checkForReservedNick: function checkForReservedNick() {
  37235. /* User service-discovery to ask the XMPP server whether
  37236. * this user has a reserved nickname for this groupchat.
  37237. * If so, we'll use that, otherwise we render the nickname form.
  37238. */
  37239. this.showSpinner();
  37240. this.model.checkForReservedNick().then(this.onReservedNickFound.bind(this)).catch(this.onReservedNickNotFound.bind(this));
  37241. },
  37242. onReservedNickFound: function onReservedNickFound(iq) {
  37243. if (this.model.get('nick')) {
  37244. this.join();
  37245. } else {
  37246. this.onReservedNickNotFound();
  37247. }
  37248. },
  37249. onReservedNickNotFound: function onReservedNickNotFound(message) {
  37250. var nick = this.model.getDefaultNick();
  37251. if (nick) {
  37252. this.join(nick);
  37253. } else {
  37254. this.renderNicknameForm(message);
  37255. }
  37256. },
  37257. onNicknameClash: function onNicknameClash(presence) {
  37258. /* When the nickname is already taken, we either render a
  37259. * form for the user to choose a new nickname, or we
  37260. * try to make the nickname unique by adding an integer to
  37261. * it. So john will become john-2, and then john-3 and so on.
  37262. *
  37263. * Which option is take depends on the value of
  37264. * muc_nickname_from_jid.
  37265. */
  37266. if (_converse.muc_nickname_from_jid) {
  37267. var nick = presence.getAttribute('from').split('/')[1];
  37268. if (nick === this.model.getDefaultNick()) {
  37269. this.join(nick + '-2');
  37270. } else {
  37271. var del = nick.lastIndexOf("-");
  37272. var num = nick.substring(del + 1, nick.length);
  37273. this.join(nick.substring(0, del + 1) + String(Number(num) + 1));
  37274. }
  37275. } else {
  37276. this.renderNicknameForm(__("The nickname you chose is reserved or " + "currently in use, please choose a different one."));
  37277. }
  37278. },
  37279. hideChatRoomContents: function hideChatRoomContents() {
  37280. var container_el = this.el.querySelector('.chatroom-body');
  37281. if (!_.isNull(container_el)) {
  37282. _.each(container_el.children, function (child) {
  37283. child.classList.add('hidden');
  37284. });
  37285. }
  37286. },
  37287. renderNicknameForm: function renderNicknameForm(message) {
  37288. /* Render a form which allows the user to choose their
  37289. * nickname.
  37290. */
  37291. this.hideChatRoomContents();
  37292. _.each(this.el.querySelectorAll('span.centered.spinner'), u.removeElement);
  37293. if (!_.isString(message)) {
  37294. message = '';
  37295. }
  37296. var container_el = this.el.querySelector('.chatroom-body');
  37297. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_nickname_form({
  37298. heading: __('Please choose your nickname'),
  37299. label_nickname: __('Nickname'),
  37300. label_join: __('Enter groupchat'),
  37301. validation_message: message
  37302. }));
  37303. this.model.save('connection_status', converse.ROOMSTATUS.NICKNAME_REQUIRED);
  37304. var form_el = this.el.querySelector('.chatroom-form');
  37305. form_el.addEventListener('submit', this.submitNickname.bind(this), false);
  37306. },
  37307. submitPassword: function submitPassword(ev) {
  37308. ev.preventDefault();
  37309. var password = this.el.querySelector('.chatroom-form input[type=password]').value;
  37310. this.showSpinner();
  37311. this.join(this.model.get('nick'), password);
  37312. },
  37313. renderPasswordForm: function renderPasswordForm() {
  37314. var _this7 = this;
  37315. var container_el = this.el.querySelector('.chatroom-body');
  37316. _.each(container_el.children, u.hideElement);
  37317. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  37318. _.each(this.el.querySelectorAll('.chatroom-form-container'), u.removeElement);
  37319. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_password_form({
  37320. 'heading': __('This groupchat requires a password'),
  37321. 'label_password': __('Password: '),
  37322. 'label_submit': __('Submit')
  37323. }));
  37324. this.model.save('connection_status', converse.ROOMSTATUS.PASSWORD_REQUIRED);
  37325. this.el.querySelector('.chatroom-form').addEventListener('submit', function (ev) {
  37326. return _this7.submitPassword(ev);
  37327. }, false);
  37328. },
  37329. showDisconnectMessages: function showDisconnectMessages(msgs) {
  37330. if (_.isString(msgs)) {
  37331. msgs = [msgs];
  37332. }
  37333. u.hideElement(this.el.querySelector('.chat-area'));
  37334. u.hideElement(this.el.querySelector('.occupants'));
  37335. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  37336. var container = this.el.querySelector('.disconnect-container');
  37337. container.innerHTML = tpl_chatroom_disconnect({
  37338. '_': _,
  37339. 'disconnect_messages': msgs
  37340. });
  37341. u.showElement(container);
  37342. },
  37343. getMessageFromStatus: function getMessageFromStatus(stat, stanza, is_self) {
  37344. /* Parameters:
  37345. * (XMLElement) stat: A <status> element.
  37346. * (Boolean) is_self: Whether the element refers to the
  37347. * current user.
  37348. * (XMLElement) stanza: The original stanza received.
  37349. */
  37350. var code = stat.getAttribute('code');
  37351. if (code === '110' || code === '100' && !is_self) {
  37352. return;
  37353. }
  37354. if (code in _converse.muc.info_messages) {
  37355. return _converse.muc.info_messages[code];
  37356. }
  37357. var nick;
  37358. if (!is_self) {
  37359. if (code in _converse.muc.action_info_messages) {
  37360. nick = Strophe.getResourceFromJid(stanza.getAttribute('from'));
  37361. return __(_converse.muc.action_info_messages[code], nick);
  37362. }
  37363. } else if (code in _converse.muc.new_nickname_messages) {
  37364. if (is_self && code === "210") {
  37365. nick = Strophe.getResourceFromJid(stanza.getAttribute('from'));
  37366. } else if (is_self && code === "303") {
  37367. nick = stanza.querySelector('x item').getAttribute('nick');
  37368. }
  37369. return __(_converse.muc.new_nickname_messages[code], nick);
  37370. }
  37371. return;
  37372. },
  37373. parseXUserElement: function parseXUserElement(x, stanza, is_self) {
  37374. /* Parse the passed-in <x xmlns='http://jabber.org/protocol/muc#user'>
  37375. * element and construct a map containing relevant
  37376. * information.
  37377. */
  37378. // 1. Get notification messages based on the <status> elements.
  37379. var statuses = x.querySelectorAll('status');
  37380. var mapper = _.partial(this.getMessageFromStatus, _, stanza, is_self);
  37381. var notification = {};
  37382. var messages = _.reject(_.map(statuses, mapper), _.isUndefined);
  37383. if (messages.length) {
  37384. notification.messages = messages;
  37385. } // 2. Get disconnection messages based on the <status> elements
  37386. var codes = _.invokeMap(statuses, Element.prototype.getAttribute, 'code');
  37387. var disconnection_codes = _.intersection(codes, _.keys(_converse.muc.disconnect_messages));
  37388. var disconnected = is_self && disconnection_codes.length > 0;
  37389. if (disconnected) {
  37390. notification.disconnected = true;
  37391. notification.disconnection_message = _converse.muc.disconnect_messages[disconnection_codes[0]];
  37392. } // 3. Find the reason and actor from the <item> element
  37393. var item = x.querySelector('item'); // By using querySelector above, we assume here there is
  37394. // one <item> per <x xmlns='http://jabber.org/protocol/muc#user'>
  37395. // element. This appears to be a safe assumption, since
  37396. // each <x/> element pertains to a single user.
  37397. if (!_.isNull(item)) {
  37398. var reason = item.querySelector('reason');
  37399. if (reason) {
  37400. notification.reason = reason ? reason.textContent : undefined;
  37401. }
  37402. var actor = item.querySelector('actor');
  37403. if (actor) {
  37404. notification.actor = actor ? actor.getAttribute('nick') : undefined;
  37405. }
  37406. }
  37407. return notification;
  37408. },
  37409. showNotificationsforUser: function showNotificationsforUser(notification) {
  37410. var _this8 = this;
  37411. /* Given the notification object generated by
  37412. * parseXUserElement, display any relevant messages and
  37413. * information to the user.
  37414. */
  37415. if (notification.disconnected) {
  37416. var messages = [];
  37417. messages.push(notification.disconnection_message);
  37418. if (notification.actor) {
  37419. messages.push(__('This action was done by %1$s.', notification.actor));
  37420. }
  37421. if (notification.reason) {
  37422. messages.push(__('The reason given is: "%1$s".', notification.reason));
  37423. }
  37424. this.showDisconnectMessages(messages);
  37425. this.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  37426. return;
  37427. }
  37428. _.each(notification.messages, function (message) {
  37429. _this8.content.insertAdjacentHTML('beforeend', tpl_info({
  37430. 'data': '',
  37431. 'isodate': moment().format(),
  37432. 'extra_classes': 'chat-event',
  37433. 'message': message
  37434. }));
  37435. });
  37436. if (notification.reason) {
  37437. this.showChatEvent(__('The reason given is: "%1$s".', notification.reason));
  37438. }
  37439. if (_.get(notification.messages, 'length')) {
  37440. this.scrollDown();
  37441. }
  37442. },
  37443. showJoinOrLeaveNotification: function showJoinOrLeaveNotification(occupant) {
  37444. if (!occupant.isMember() || _.includes(occupant.get('states'), '303')) {
  37445. return;
  37446. }
  37447. if (occupant.get('show') === 'offline') {
  37448. this.showLeaveNotification(occupant);
  37449. } else if (occupant.get('show') === 'online') {
  37450. this.showJoinNotification(occupant);
  37451. }
  37452. },
  37453. showJoinNotification: function showJoinNotification(occupant) {
  37454. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  37455. return;
  37456. }
  37457. var nick = occupant.get('nick'),
  37458. stat = occupant.get('status'),
  37459. last_el = this.content.lastElementChild;
  37460. if (_.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).leave === "\"".concat(nick, "\"")) {
  37461. last_el.outerHTML = tpl_info({
  37462. 'data': "data-leavejoin=\"".concat(nick, "\""),
  37463. 'isodate': moment().format(),
  37464. 'extra_classes': 'chat-event',
  37465. 'message': __('%1$s has left and re-entered the groupchat', nick)
  37466. });
  37467. var el = this.content.lastElementChild;
  37468. setTimeout(function () {
  37469. return u.addClass('fade-out', el);
  37470. }, 5000);
  37471. setTimeout(function () {
  37472. return el.parentElement && el.parentElement.removeChild(el);
  37473. }, 5250);
  37474. } else {
  37475. var message;
  37476. if (_.isNil(stat)) {
  37477. message = __('%1$s has entered the groupchat', nick);
  37478. } else {
  37479. message = __('%1$s has entered the groupchat. "%2$s"', nick, stat);
  37480. }
  37481. var data = {
  37482. 'data': "data-join=\"".concat(nick, "\""),
  37483. 'isodate': moment().format(),
  37484. 'extra_classes': 'chat-event',
  37485. 'message': message
  37486. };
  37487. if (_.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).joinleave === "\"".concat(nick, "\"")) {
  37488. last_el.outerHTML = tpl_info(data);
  37489. } else {
  37490. var _el = u.stringToElement(tpl_info(data));
  37491. this.content.insertAdjacentElement('beforeend', _el);
  37492. this.insertDayIndicator(_el);
  37493. }
  37494. }
  37495. this.scrollDown();
  37496. },
  37497. showLeaveNotification: function showLeaveNotification(occupant) {
  37498. if (_.includes(occupant.get('states'), '303') || _.includes(occupant.get('states'), '307')) {
  37499. return;
  37500. }
  37501. var nick = occupant.get('nick'),
  37502. stat = occupant.get('status'),
  37503. last_el = this.content.lastElementChild;
  37504. if (last_el && _.includes(_.get(last_el, 'classList', []), 'chat-info') && moment(last_el.getAttribute('data-isodate')).isSame(new Date(), "day") && _.get(last_el, 'dataset', {}).join === "\"".concat(nick, "\"")) {
  37505. var message;
  37506. if (_.isNil(stat)) {
  37507. message = __('%1$s has entered and left the groupchat', nick);
  37508. } else {
  37509. message = __('%1$s has entered and left the groupchat. "%2$s"', nick, stat);
  37510. }
  37511. last_el.outerHTML = tpl_info({
  37512. 'data': "data-joinleave=\"".concat(nick, "\""),
  37513. 'isodate': moment().format(),
  37514. 'extra_classes': 'chat-event',
  37515. 'message': message
  37516. });
  37517. var el = this.content.lastElementChild;
  37518. setTimeout(function () {
  37519. return u.addClass('fade-out', el);
  37520. }, 5000);
  37521. setTimeout(function () {
  37522. return el.parentElement && el.parentElement.removeChild(el);
  37523. }, 5250);
  37524. } else {
  37525. var _message;
  37526. if (_.isNil(stat)) {
  37527. _message = __('%1$s has left the groupchat', nick);
  37528. } else {
  37529. _message = __('%1$s has left the groupchat. "%2$s"', nick, stat);
  37530. }
  37531. var data = {
  37532. 'message': _message,
  37533. 'isodate': moment().format(),
  37534. 'extra_classes': 'chat-event',
  37535. 'data': "data-leave=\"".concat(nick, "\"")
  37536. };
  37537. if (last_el && _.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).leavejoin === "\"".concat(nick, "\"")) {
  37538. last_el.outerHTML = tpl_info(data);
  37539. } else {
  37540. var _el2 = u.stringToElement(tpl_info(data));
  37541. this.content.insertAdjacentElement('beforeend', _el2);
  37542. this.insertDayIndicator(_el2);
  37543. }
  37544. }
  37545. this.scrollDown();
  37546. },
  37547. showStatusMessages: function showStatusMessages(stanza) {
  37548. /* Check for status codes and communicate their purpose to the user.
  37549. * See: http://xmpp.org/registrar/mucstatus.html
  37550. *
  37551. * Parameters:
  37552. * (XMLElement) stanza: The message or presence stanza
  37553. * containing the status codes.
  37554. */
  37555. var elements = sizzle("x[xmlns=\"".concat(Strophe.NS.MUC_USER, "\"]"), stanza);
  37556. var is_self = stanza.querySelectorAll("status[code='110']").length;
  37557. var iteratee = _.partial(this.parseXUserElement.bind(this), _, stanza, is_self);
  37558. var notifications = _.reject(_.map(elements, iteratee), _.isEmpty);
  37559. _.each(notifications, this.showNotificationsforUser.bind(this));
  37560. },
  37561. showErrorMessageFromPresence: function showErrorMessageFromPresence(presence) {
  37562. // We didn't enter the groupchat, so we must remove it from the MUC add-on
  37563. var error = presence.querySelector('error');
  37564. if (error.getAttribute('type') === 'auth') {
  37565. if (!_.isNull(error.querySelector('not-authorized'))) {
  37566. this.renderPasswordForm();
  37567. } else if (!_.isNull(error.querySelector('registration-required'))) {
  37568. this.showDisconnectMessages(__('You are not on the member list of this groupchat.'));
  37569. } else if (!_.isNull(error.querySelector('forbidden'))) {
  37570. this.showDisconnectMessages(__('You have been banned from this groupchat.'));
  37571. }
  37572. } else if (error.getAttribute('type') === 'modify') {
  37573. if (!_.isNull(error.querySelector('jid-malformed'))) {
  37574. this.showDisconnectMessages(__('No nickname was specified.'));
  37575. }
  37576. } else if (error.getAttribute('type') === 'cancel') {
  37577. if (!_.isNull(error.querySelector('not-allowed'))) {
  37578. this.showDisconnectMessages(__('You are not allowed to create new groupchats.'));
  37579. } else if (!_.isNull(error.querySelector('not-acceptable'))) {
  37580. this.showDisconnectMessages(__("Your nickname doesn't conform to this groupchat's policies."));
  37581. } else if (!_.isNull(error.querySelector('conflict'))) {
  37582. this.onNicknameClash(presence);
  37583. } else if (!_.isNull(error.querySelector('item-not-found'))) {
  37584. this.showDisconnectMessages(__("This groupchat does not (yet) exist."));
  37585. } else if (!_.isNull(error.querySelector('service-unavailable'))) {
  37586. this.showDisconnectMessages(__("This groupchat has reached its maximum number of participants."));
  37587. } else if (!_.isNull(error.querySelector('remote-server-not-found'))) {
  37588. var messages = [__("Remote server not found")];
  37589. var reason = _.get(error.querySelector('text'), 'textContent');
  37590. if (reason) {
  37591. messages.push(__('The explanation given is: "%1$s".', reason));
  37592. }
  37593. this.showDisconnectMessages(messages);
  37594. }
  37595. }
  37596. },
  37597. renderAfterTransition: function renderAfterTransition() {
  37598. /* Rerender the groupchat after some kind of transition. For
  37599. * example after the spinner has been removed or after a
  37600. * form has been submitted and removed.
  37601. */
  37602. if (this.model.get('connection_status') == converse.ROOMSTATUS.NICKNAME_REQUIRED) {
  37603. this.renderNicknameForm();
  37604. } else if (this.model.get('connection_status') == converse.ROOMSTATUS.PASSWORD_REQUIRED) {
  37605. this.renderPasswordForm();
  37606. } else {
  37607. this.el.querySelector('.chat-area').classList.remove('hidden');
  37608. this.setOccupantsVisibility();
  37609. this.scrollDown();
  37610. }
  37611. },
  37612. showSpinner: function showSpinner() {
  37613. u.removeElement(this.el.querySelector('.spinner'));
  37614. var container_el = this.el.querySelector('.chatroom-body');
  37615. var children = Array.prototype.slice.call(container_el.children, 0);
  37616. container_el.insertAdjacentHTML('afterbegin', tpl_spinner());
  37617. _.each(children, u.hideElement);
  37618. },
  37619. hideSpinner: function hideSpinner() {
  37620. /* Check if the spinner is being shown and if so, hide it.
  37621. * Also make sure then that the chat area and occupants
  37622. * list are both visible.
  37623. */
  37624. var spinner = this.el.querySelector('.spinner');
  37625. if (!_.isNull(spinner)) {
  37626. u.removeElement(spinner);
  37627. this.renderAfterTransition();
  37628. }
  37629. return this;
  37630. },
  37631. setChatRoomSubject: function setChatRoomSubject() {
  37632. // For translators: the %1$s and %2$s parts will get
  37633. // replaced by the user and topic text respectively
  37634. // Example: Topic set by JC Brand to: Hello World!
  37635. var subject = this.model.get('subject'),
  37636. message = subject.text ? __('Topic set by %1$s', subject.author) : __('Topic cleared by %1$s', subject.author),
  37637. date = moment().format();
  37638. this.content.insertAdjacentHTML('beforeend', tpl_info({
  37639. 'data': '',
  37640. 'isodate': date,
  37641. 'extra_classes': 'chat-event',
  37642. 'message': message
  37643. }));
  37644. if (subject.text) {
  37645. this.content.insertAdjacentHTML('beforeend', tpl_info({
  37646. 'data': '',
  37647. 'isodate': date,
  37648. 'extra_classes': 'chat-topic',
  37649. 'message': subject.text
  37650. }));
  37651. }
  37652. this.scrollDown();
  37653. }
  37654. });
  37655. _converse.RoomsPanel = Backbone.NativeView.extend({
  37656. /* Backbone.NativeView which renders MUC section of the control box.
  37657. */
  37658. tagName: 'div',
  37659. className: 'controlbox-section',
  37660. id: 'chatrooms',
  37661. events: {
  37662. 'click a.chatbox-btn.show-add-muc-modal': 'showAddRoomModal',
  37663. 'click a.chatbox-btn.show-list-muc-modal': 'showListRoomsModal'
  37664. },
  37665. render: function render() {
  37666. this.el.innerHTML = tpl_room_panel({
  37667. 'heading_chatrooms': __('Groupchats'),
  37668. 'title_new_room': __('Add a new groupchat'),
  37669. 'title_list_rooms': __('Query for groupchats')
  37670. });
  37671. return this;
  37672. },
  37673. showAddRoomModal: function showAddRoomModal(ev) {
  37674. if (_.isUndefined(this.add_room_modal)) {
  37675. this.add_room_modal = new _converse.AddChatRoomModal({
  37676. 'model': this.model
  37677. });
  37678. }
  37679. this.add_room_modal.show(ev);
  37680. },
  37681. showListRoomsModal: function showListRoomsModal(ev) {
  37682. if (_.isUndefined(this.list_rooms_modal)) {
  37683. this.list_rooms_modal = new _converse.ListChatRoomsModal({
  37684. 'model': this.model
  37685. });
  37686. }
  37687. this.list_rooms_modal.show(ev);
  37688. }
  37689. });
  37690. _converse.ChatRoomOccupantView = Backbone.VDOMView.extend({
  37691. tagName: 'li',
  37692. initialize: function initialize() {
  37693. this.model.on('change', this.render, this);
  37694. },
  37695. toHTML: function toHTML() {
  37696. var show = this.model.get('show');
  37697. return tpl_occupant(_.extend({
  37698. '_': _,
  37699. // XXX Normally this should already be included,
  37700. // but with the current webpack build,
  37701. // we only get a subset of the _ methods.
  37702. 'jid': '',
  37703. 'show': show,
  37704. 'hint_show': _converse.PRETTY_CHAT_STATUS[show],
  37705. 'hint_occupant': __('Click to mention %1$s in your message.', this.model.get('nick')),
  37706. 'desc_moderator': __('This user is a moderator.'),
  37707. 'desc_participant': __('This user can send messages in this groupchat.'),
  37708. 'desc_visitor': __('This user can NOT send messages in this groupchat.'),
  37709. 'label_moderator': __('Moderator'),
  37710. 'label_visitor': __('Visitor'),
  37711. 'label_owner': __('Owner'),
  37712. 'label_member': __('Member'),
  37713. 'label_admin': __('Admin')
  37714. }, this.model.toJSON()));
  37715. },
  37716. destroy: function destroy() {
  37717. this.el.parentElement.removeChild(this.el);
  37718. }
  37719. });
  37720. _converse.ChatRoomOccupantsView = Backbone.OrderedListView.extend({
  37721. tagName: 'div',
  37722. className: 'occupants col-md-3 col-4',
  37723. listItems: 'model',
  37724. sortEvent: 'change:role',
  37725. listSelector: '.occupant-list',
  37726. ItemView: _converse.ChatRoomOccupantView,
  37727. initialize: function initialize() {
  37728. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  37729. this.chatroomview = this.model.chatroomview;
  37730. this.chatroomview.model.on('change:open', this.renderInviteWidget, this);
  37731. this.chatroomview.model.on('change:affiliation', this.renderInviteWidget, this);
  37732. this.chatroomview.model.on('change:hidden', this.onFeatureChanged, this);
  37733. this.chatroomview.model.on('change:mam_enabled', this.onFeatureChanged, this);
  37734. this.chatroomview.model.on('change:membersonly', this.onFeatureChanged, this);
  37735. this.chatroomview.model.on('change:moderated', this.onFeatureChanged, this);
  37736. this.chatroomview.model.on('change:nonanonymous', this.onFeatureChanged, this);
  37737. this.chatroomview.model.on('change:open', this.onFeatureChanged, this);
  37738. this.chatroomview.model.on('change:passwordprotected', this.onFeatureChanged, this);
  37739. this.chatroomview.model.on('change:persistent', this.onFeatureChanged, this);
  37740. this.chatroomview.model.on('change:publicroom', this.onFeatureChanged, this);
  37741. this.chatroomview.model.on('change:semianonymous', this.onFeatureChanged, this);
  37742. this.chatroomview.model.on('change:temporary', this.onFeatureChanged, this);
  37743. this.chatroomview.model.on('change:unmoderated', this.onFeatureChanged, this);
  37744. this.chatroomview.model.on('change:unsecured', this.onFeatureChanged, this);
  37745. this.render();
  37746. this.model.fetch({
  37747. 'add': true,
  37748. 'silent': true,
  37749. 'success': this.sortAndPositionAllItems.bind(this)
  37750. });
  37751. },
  37752. render: function render() {
  37753. this.el.innerHTML = tpl_chatroom_sidebar(_.extend(this.chatroomview.model.toJSON(), {
  37754. 'allow_muc_invitations': _converse.allow_muc_invitations,
  37755. 'label_occupants': __('Participants')
  37756. }));
  37757. if (_converse.allow_muc_invitations) {
  37758. _converse.api.waitUntil('rosterContactsFetched').then(this.renderInviteWidget.bind(this));
  37759. }
  37760. return this.renderRoomFeatures();
  37761. },
  37762. renderInviteWidget: function renderInviteWidget() {
  37763. var form = this.el.querySelector('form.room-invite');
  37764. if (this.shouldInviteWidgetBeShown()) {
  37765. if (_.isNull(form)) {
  37766. var heading = this.el.querySelector('.occupants-heading');
  37767. heading.insertAdjacentHTML('afterend', tpl_chatroom_invite({
  37768. 'error_message': null,
  37769. 'label_invitation': __('Invite')
  37770. }));
  37771. this.initInviteWidget();
  37772. }
  37773. } else if (!_.isNull(form)) {
  37774. form.remove();
  37775. }
  37776. return this;
  37777. },
  37778. renderRoomFeatures: function renderRoomFeatures() {
  37779. var picks = _.pick(this.chatroomview.model.attributes, converse.ROOM_FEATURES),
  37780. iteratee = function iteratee(a, v) {
  37781. return a || v;
  37782. },
  37783. el = this.el.querySelector('.chatroom-features');
  37784. el.innerHTML = tpl_chatroom_features(_.extend(this.chatroomview.model.toJSON(), {
  37785. '__': __,
  37786. 'has_features': _.reduce(_.values(picks), iteratee)
  37787. }));
  37788. this.setOccupantsHeight();
  37789. return this;
  37790. },
  37791. onFeatureChanged: function onFeatureChanged(model) {
  37792. /* When a feature has been changed, it's logical opposite
  37793. * must be set to the opposite value.
  37794. *
  37795. * So for example, if "temporary" was set to "false", then
  37796. * "persistent" will be set to "true" in this method.
  37797. *
  37798. * Additionally a debounced render method is called to make
  37799. * sure the features widget gets updated.
  37800. */
  37801. if (_.isUndefined(this.debouncedRenderRoomFeatures)) {
  37802. this.debouncedRenderRoomFeatures = _.debounce(this.renderRoomFeatures, 100, {
  37803. 'leading': false
  37804. });
  37805. }
  37806. var changed_features = {};
  37807. _.each(_.keys(model.changed), function (k) {
  37808. if (!_.isNil(ROOM_FEATURES_MAP[k])) {
  37809. changed_features[ROOM_FEATURES_MAP[k]] = !model.changed[k];
  37810. }
  37811. });
  37812. this.chatroomview.model.save(changed_features, {
  37813. 'silent': true
  37814. });
  37815. this.debouncedRenderRoomFeatures();
  37816. },
  37817. setOccupantsHeight: function setOccupantsHeight() {
  37818. var el = this.el.querySelector('.chatroom-features');
  37819. this.el.querySelector('.occupant-list').style.cssText = "height: calc(100% - ".concat(el.offsetHeight, "px - 5em);");
  37820. },
  37821. promptForInvite: function promptForInvite(suggestion) {
  37822. var reason = prompt(__('You are about to invite %1$s to the groupchat "%2$s". ' + 'You may optionally include a message, explaining the reason for the invitation.', suggestion.text.label, this.model.get('id')));
  37823. if (reason !== null) {
  37824. this.chatroomview.model.directInvite(suggestion.text.value, reason);
  37825. }
  37826. var form = suggestion.target.form,
  37827. error = form.querySelector('.pure-form-message.error');
  37828. if (!_.isNull(error)) {
  37829. error.parentNode.removeChild(error);
  37830. }
  37831. suggestion.target.value = '';
  37832. },
  37833. inviteFormSubmitted: function inviteFormSubmitted(evt) {
  37834. evt.preventDefault();
  37835. var el = evt.target.querySelector('input.invited-contact'),
  37836. jid = el.value;
  37837. if (!jid || _.compact(jid.split('@')).length < 2) {
  37838. evt.target.outerHTML = tpl_chatroom_invite({
  37839. 'error_message': __('Please enter a valid XMPP username'),
  37840. 'label_invitation': __('Invite')
  37841. });
  37842. this.initInviteWidget();
  37843. return;
  37844. }
  37845. this.promptForInvite({
  37846. 'target': el,
  37847. 'text': {
  37848. 'label': jid,
  37849. 'value': jid
  37850. }
  37851. });
  37852. },
  37853. shouldInviteWidgetBeShown: function shouldInviteWidgetBeShown() {
  37854. return _converse.allow_muc_invitations && (this.chatroomview.model.get('open') || this.chatroomview.model.get('affiliation') === "owner");
  37855. },
  37856. initInviteWidget: function initInviteWidget() {
  37857. var form = this.el.querySelector('form.room-invite');
  37858. if (_.isNull(form)) {
  37859. return;
  37860. }
  37861. form.addEventListener('submit', this.inviteFormSubmitted.bind(this), false);
  37862. var el = this.el.querySelector('input.invited-contact');
  37863. var list = _converse.roster.map(function (item) {
  37864. var label = item.get('fullname') || item.get('jid');
  37865. return {
  37866. 'label': label,
  37867. 'value': item.get('jid')
  37868. };
  37869. });
  37870. var awesomplete = new Awesomplete(el, {
  37871. 'minChars': 1,
  37872. 'list': list
  37873. });
  37874. el.addEventListener('awesomplete-selectcomplete', this.promptForInvite.bind(this));
  37875. }
  37876. });
  37877. function setMUCDomain(domain, controlboxview) {
  37878. _converse.muc_domain = domain;
  37879. controlboxview.roomspanel.model.save('muc_domain', Strophe.getDomainFromJid(domain));
  37880. }
  37881. function setMUCDomainFromDisco(controlboxview) {
  37882. /* Check whether service discovery for the user's domain
  37883. * returned MUC information and use that to automatically
  37884. * set the MUC domain in the "Add groupchat" modal.
  37885. */
  37886. function featureAdded(feature) {
  37887. if (!feature) {
  37888. return;
  37889. }
  37890. if (feature.get('var') === Strophe.NS.MUC) {
  37891. feature.entity.getIdentity('conference', 'text').then(function (identity) {
  37892. if (identity) {
  37893. setMUCDomain(feature.get('from'), controlboxview);
  37894. }
  37895. });
  37896. }
  37897. }
  37898. _converse.api.waitUntil('discoInitialized').then(function () {
  37899. _converse.api.listen.on('serviceDiscovered', featureAdded); // Features could have been added before the controlbox was
  37900. // initialized. We're only interested in MUC
  37901. _converse.disco_entities.each(function (entity) {
  37902. return featureAdded(entity.features.findWhere({
  37903. 'var': Strophe.NS.MUC
  37904. }));
  37905. });
  37906. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  37907. }
  37908. function fetchAndSetMUCDomain(controlboxview) {
  37909. if (controlboxview.model.get('connected')) {
  37910. if (!controlboxview.roomspanel.model.get('muc_domain')) {
  37911. if (_.isUndefined(_converse.muc_domain)) {
  37912. setMUCDomainFromDisco(controlboxview);
  37913. } else {
  37914. setMUCDomain(_converse.muc_domain, controlboxview);
  37915. }
  37916. }
  37917. }
  37918. }
  37919. /************************ BEGIN Event Handlers ************************/
  37920. _converse.on('chatBoxViewsInitialized', function () {
  37921. var that = _converse.chatboxviews;
  37922. _converse.chatboxes.on('add', function (item) {
  37923. if (!that.get(item.get('id')) && item.get('type') === _converse.CHATROOMS_TYPE) {
  37924. return that.add(item.get('id'), new _converse.ChatRoomView({
  37925. 'model': item
  37926. }));
  37927. }
  37928. });
  37929. });
  37930. _converse.on('controlboxInitialized', function (view) {
  37931. if (!_converse.allow_muc) {
  37932. return;
  37933. }
  37934. fetchAndSetMUCDomain(view);
  37935. view.model.on('change:connected', _.partial(fetchAndSetMUCDomain, view));
  37936. });
  37937. function reconnectToChatRooms() {
  37938. /* Upon a reconnection event from converse, join again
  37939. * all the open groupchats.
  37940. */
  37941. _converse.chatboxviews.each(function (view) {
  37942. if (view.model.get('type') === _converse.CHATROOMS_TYPE) {
  37943. view.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  37944. view.model.registerHandlers();
  37945. view.populateAndJoin();
  37946. }
  37947. });
  37948. }
  37949. _converse.on('reconnected', reconnectToChatRooms);
  37950. /************************ END Event Handlers ************************/
  37951. /************************ BEGIN API ************************/
  37952. _.extend(_converse.api, {
  37953. /**
  37954. * The "roomviews" namespace groups methods relevant to chatroom
  37955. * (aka groupchats) views.
  37956. *
  37957. * @namespace _converse.api.roomviews
  37958. * @memberOf _converse.api
  37959. */
  37960. 'roomviews': {
  37961. /**
  37962. * Lets you close open chatrooms.
  37963. *
  37964. * You can call this method without any arguments to close
  37965. * all open chatrooms, or you can specify a single JID or
  37966. * an array of JIDs.
  37967. *
  37968. * @method _converse.api.roomviews.close
  37969. * @param {(String[]|String)} jids The JID or array of JIDs of the chatroom(s)
  37970. */
  37971. 'close': function close(jids) {
  37972. if (_.isUndefined(jids)) {
  37973. _converse.chatboxviews.each(function (view) {
  37974. if (view.is_chatroom && view.model) {
  37975. view.close();
  37976. }
  37977. });
  37978. } else if (_.isString(jids)) {
  37979. var view = _converse.chatboxviews.get(jids);
  37980. if (view) {
  37981. view.close();
  37982. }
  37983. } else {
  37984. _.each(jids, function (jid) {
  37985. var view = _converse.chatboxviews.get(jid);
  37986. if (view) {
  37987. view.close();
  37988. }
  37989. });
  37990. }
  37991. }
  37992. }
  37993. });
  37994. }
  37995. });
  37996. });
  37997. /***/ }),
  37998. /***/ "./src/converse-muc.js":
  37999. /*!*****************************!*\
  38000. !*** ./src/converse-muc.js ***!
  38001. \*****************************/
  38002. /*! no static exports found */
  38003. /***/ (function(module, exports, __webpack_require__) {
  38004. "use strict";
  38005. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  38006. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  38007. function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
  38008. function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
  38009. function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
  38010. function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
  38011. // Converse.js
  38012. // http://conversejs.org
  38013. //
  38014. // Copyright (c) 2013-2018, the Converse.js developers
  38015. // Licensed under the Mozilla Public License (MPLv2)
  38016. (function (root, factory) {
  38017. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/form */ "./src/utils/form.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-disco */ "./src/converse-disco.js"), __webpack_require__(/*! backbone.overview */ "backbone.overview"), __webpack_require__(/*! backbone.orderedlistview */ "./node_modules/backbone.overview/backbone.orderedlistview.js"), __webpack_require__(/*! backbone.vdomview */ "./node_modules/backbone.vdomview/backbone.vdomview.js"), __webpack_require__(/*! utils/muc */ "./src/utils/muc.js"), __webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  38018. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  38019. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  38020. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  38021. })(void 0, function (u, converse) {
  38022. "use strict";
  38023. var MUC_ROLE_WEIGHTS = {
  38024. 'moderator': 1,
  38025. 'participant': 2,
  38026. 'visitor': 3,
  38027. 'none': 2
  38028. };
  38029. var _converse$env = converse.env,
  38030. Strophe = _converse$env.Strophe,
  38031. Backbone = _converse$env.Backbone,
  38032. Promise = _converse$env.Promise,
  38033. $iq = _converse$env.$iq,
  38034. $build = _converse$env.$build,
  38035. $msg = _converse$env.$msg,
  38036. $pres = _converse$env.$pres,
  38037. b64_sha1 = _converse$env.b64_sha1,
  38038. sizzle = _converse$env.sizzle,
  38039. f = _converse$env.f,
  38040. moment = _converse$env.moment,
  38041. _ = _converse$env._; // Add Strophe Namespaces
  38042. Strophe.addNamespace('MUC_ADMIN', Strophe.NS.MUC + "#admin");
  38043. Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + "#owner");
  38044. Strophe.addNamespace('MUC_REGISTER', "jabber:iq:register");
  38045. Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + "#roomconfig");
  38046. Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + "#user");
  38047. converse.MUC_NICK_CHANGED_CODE = "303";
  38048. converse.ROOM_FEATURES = ['passwordprotected', 'unsecured', 'hidden', 'publicroom', 'membersonly', 'open', 'persistent', 'temporary', 'nonanonymous', 'semianonymous', 'moderated', 'unmoderated', 'mam_enabled'];
  38049. converse.ROOMSTATUS = {
  38050. CONNECTED: 0,
  38051. CONNECTING: 1,
  38052. NICKNAME_REQUIRED: 2,
  38053. PASSWORD_REQUIRED: 3,
  38054. DISCONNECTED: 4,
  38055. ENTERED: 5
  38056. };
  38057. converse.plugins.add('converse-muc', {
  38058. /* Optional dependencies are other plugins which might be
  38059. * overridden or relied upon, and therefore need to be loaded before
  38060. * this plugin. They are called "optional" because they might not be
  38061. * available, in which case any overrides applicable to them will be
  38062. * ignored.
  38063. *
  38064. * It's possible however to make optional dependencies non-optional.
  38065. * If the setting "strict_plugin_dependencies" is set to true,
  38066. * an error will be raised if the plugin is not found.
  38067. *
  38068. * NB: These plugins need to have already been loaded via require.js.
  38069. */
  38070. dependencies: ["converse-chatboxes", "converse-disco", "converse-controlbox"],
  38071. overrides: {
  38072. tearDown: function tearDown() {
  38073. var _converse = this.__super__._converse,
  38074. groupchats = this.chatboxes.where({
  38075. 'type': _converse.CHATROOMS_TYPE
  38076. });
  38077. _.each(groupchats, function (gc) {
  38078. return u.safeSave(gc, {
  38079. 'connection_status': converse.ROOMSTATUS.DISCONNECTED
  38080. });
  38081. });
  38082. this.__super__.tearDown.call(this, arguments);
  38083. },
  38084. ChatBoxes: {
  38085. model: function model(attrs, options) {
  38086. var _converse = this.__super__._converse;
  38087. if (attrs.type == _converse.CHATROOMS_TYPE) {
  38088. return new _converse.ChatRoom(attrs, options);
  38089. } else {
  38090. return this.__super__.model.apply(this, arguments);
  38091. }
  38092. }
  38093. }
  38094. },
  38095. initialize: function initialize() {
  38096. /* The initialize function gets called as soon as the plugin is
  38097. * loaded by converse.js's plugin machinery.
  38098. */
  38099. var _converse = this._converse,
  38100. __ = _converse.__; // Configuration values for this plugin
  38101. // ====================================
  38102. // Refer to docs/source/configuration.rst for explanations of these
  38103. // configuration settings.
  38104. _converse.api.settings.update({
  38105. allow_muc: true,
  38106. allow_muc_invitations: true,
  38107. auto_join_on_invite: false,
  38108. auto_join_rooms: [],
  38109. auto_register_muc_nickname: false,
  38110. muc_domain: undefined,
  38111. muc_history_max_stanzas: undefined,
  38112. muc_instant_rooms: true,
  38113. muc_nickname_from_jid: false
  38114. });
  38115. _converse.api.promises.add(['roomsAutoJoined']);
  38116. function openRoom(jid) {
  38117. if (!u.isValidMUCJID(jid)) {
  38118. return _converse.log("Invalid JID \"".concat(jid, "\" provided in URL fragment"), Strophe.LogLevel.WARN);
  38119. }
  38120. var promises = [_converse.api.waitUntil('roomsAutoJoined')];
  38121. if (_converse.allow_bookmarks) {
  38122. promises.push(_converse.api.waitUntil('bookmarksInitialized'));
  38123. }
  38124. Promise.all(promises).then(function () {
  38125. _converse.api.rooms.open(jid);
  38126. });
  38127. }
  38128. _converse.router.route('converse/room?jid=:jid', openRoom);
  38129. _converse.openChatRoom = function (jid, settings, bring_to_foreground) {
  38130. /* Opens a groupchat, making sure that certain attributes
  38131. * are correct, for example that the "type" is set to
  38132. * "chatroom".
  38133. */
  38134. settings.type = _converse.CHATROOMS_TYPE;
  38135. settings.id = jid;
  38136. settings.box_id = b64_sha1(jid);
  38137. var chatbox = _converse.chatboxes.getChatBox(jid, settings, true);
  38138. chatbox.trigger('show', true);
  38139. return chatbox;
  38140. };
  38141. _converse.ChatRoom = _converse.ChatBox.extend({
  38142. defaults: function defaults() {
  38143. return _.assign(_.clone(_converse.ChatBox.prototype.defaults), _.zipObject(converse.ROOM_FEATURES, _.map(converse.ROOM_FEATURES, _.stubFalse)), {
  38144. // For group chats, we distinguish between generally unread
  38145. // messages and those ones that specifically mention the
  38146. // user.
  38147. //
  38148. // To keep things simple, we reuse `num_unread` from
  38149. // _converse.ChatBox to indicate unread messages which
  38150. // mention the user and `num_unread_general` to indicate
  38151. // generally unread messages (which *includes* mentions!).
  38152. 'num_unread_general': 0,
  38153. 'affiliation': null,
  38154. 'connection_status': converse.ROOMSTATUS.DISCONNECTED,
  38155. 'name': '',
  38156. 'nick': _converse.xmppstatus.get('nickname') || _converse.nickname,
  38157. 'description': '',
  38158. 'features_fetched': false,
  38159. 'roomconfig': {},
  38160. 'type': _converse.CHATROOMS_TYPE,
  38161. 'message_type': 'groupchat'
  38162. });
  38163. },
  38164. initialize: function initialize() {
  38165. this.constructor.__super__.initialize.apply(this, arguments);
  38166. this.on('change:connection_status', this.onConnectionStatusChanged, this);
  38167. this.occupants = new _converse.ChatRoomOccupants();
  38168. this.occupants.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.occupants-".concat(_converse.bare_jid).concat(this.get('jid'))));
  38169. this.occupants.chatroom = this;
  38170. this.registerHandlers();
  38171. },
  38172. onConnectionStatusChanged: async function onConnectionStatusChanged() {
  38173. if (this.get('connection_status') === converse.ROOMSTATUS.ENTERED && _converse.auto_register_muc_nickname && !this.get('reserved_nick')) {
  38174. var result = await _converse.api.disco.supports(Strophe.NS.MUC_REGISTER, this.get('jid'));
  38175. if (result.length) {
  38176. this.registerNickname();
  38177. }
  38178. }
  38179. },
  38180. registerHandlers: function registerHandlers() {
  38181. var _this = this;
  38182. /* Register presence and message handlers for this chat
  38183. * groupchat
  38184. */
  38185. var room_jid = this.get('jid');
  38186. this.removeHandlers();
  38187. this.presence_handler = _converse.connection.addHandler(function (stanza) {
  38188. _.each(_.values(_this.handlers.presence), function (callback) {
  38189. return callback(stanza);
  38190. });
  38191. _this.onPresence(stanza);
  38192. return true;
  38193. }, null, 'presence', null, null, room_jid, {
  38194. 'ignoreNamespaceFragment': true,
  38195. 'matchBareFromJid': true
  38196. });
  38197. this.message_handler = _converse.connection.addHandler(function (stanza) {
  38198. _.each(_.values(_this.handlers.message), function (callback) {
  38199. return callback(stanza);
  38200. });
  38201. _this.onMessage(stanza);
  38202. return true;
  38203. }, null, 'message', 'groupchat', null, room_jid, {
  38204. 'matchBareFromJid': true
  38205. });
  38206. },
  38207. removeHandlers: function removeHandlers() {
  38208. /* Remove the presence and message handlers that were
  38209. * registered for this groupchat.
  38210. */
  38211. if (this.message_handler) {
  38212. _converse.connection.deleteHandler(this.message_handler);
  38213. delete this.message_handler;
  38214. }
  38215. if (this.presence_handler) {
  38216. _converse.connection.deleteHandler(this.presence_handler);
  38217. delete this.presence_handler;
  38218. }
  38219. return this;
  38220. },
  38221. addHandler: function addHandler(type, name, callback) {
  38222. /* Allows 'presence' and 'message' handlers to be
  38223. * registered. These will be executed once presence or
  38224. * message stanzas are received, and *before* this model's
  38225. * own handlers are executed.
  38226. */
  38227. if (_.isNil(this.handlers)) {
  38228. this.handlers = {};
  38229. }
  38230. if (_.isNil(this.handlers[type])) {
  38231. this.handlers[type] = {};
  38232. }
  38233. this.handlers[type][name] = callback;
  38234. },
  38235. getDisplayName: function getDisplayName() {
  38236. return this.get('name') || this.get('jid');
  38237. },
  38238. join: function join(nick, password) {
  38239. /* Join the groupchat.
  38240. *
  38241. * Parameters:
  38242. * (String) nick: The user's nickname
  38243. * (String) password: Optional password, if required by
  38244. * the groupchat.
  38245. */
  38246. nick = nick ? nick : this.get('nick');
  38247. if (!nick) {
  38248. throw new TypeError('join: You need to provide a valid nickname');
  38249. }
  38250. if (this.get('connection_status') === converse.ROOMSTATUS.ENTERED) {
  38251. // We have restored a groupchat from session storage,
  38252. // so we don't send out a presence stanza again.
  38253. return this;
  38254. }
  38255. var stanza = $pres({
  38256. 'from': _converse.connection.jid,
  38257. 'to': this.getRoomJIDAndNick(nick)
  38258. }).c("x", {
  38259. 'xmlns': Strophe.NS.MUC
  38260. }).c("history", {
  38261. 'maxstanzas': this.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas
  38262. }).up();
  38263. if (password) {
  38264. stanza.cnode(Strophe.xmlElement("password", [], password));
  38265. }
  38266. this.save('connection_status', converse.ROOMSTATUS.CONNECTING);
  38267. _converse.connection.send(stanza);
  38268. return this;
  38269. },
  38270. leave: function leave(exit_msg) {
  38271. /* Leave the groupchat.
  38272. *
  38273. * Parameters:
  38274. * (String) exit_msg: Optional message to indicate your
  38275. * reason for leaving.
  38276. */
  38277. this.occupants.browserStorage._clear();
  38278. this.occupants.reset();
  38279. var disco_entity = _converse.disco_entities.get(this.get('jid'));
  38280. if (disco_entity) {
  38281. disco_entity.destroy();
  38282. }
  38283. if (_converse.connection.connected) {
  38284. this.sendUnavailablePresence(exit_msg);
  38285. }
  38286. u.safeSave(this, {
  38287. 'connection_status': converse.ROOMSTATUS.DISCONNECTED
  38288. });
  38289. this.removeHandlers();
  38290. },
  38291. sendUnavailablePresence: function sendUnavailablePresence(exit_msg) {
  38292. var presence = $pres({
  38293. type: "unavailable",
  38294. from: _converse.connection.jid,
  38295. to: this.getRoomJIDAndNick()
  38296. });
  38297. if (exit_msg !== null) {
  38298. presence.c("status", exit_msg);
  38299. }
  38300. _converse.connection.sendPresence(presence);
  38301. },
  38302. getReferenceForMention: function getReferenceForMention(mention, index) {
  38303. var longest_match = u.getLongestSubstring(mention, this.occupants.map(function (o) {
  38304. return o.getDisplayName();
  38305. }));
  38306. if (!longest_match) {
  38307. return null;
  38308. }
  38309. if ((mention[longest_match.length] || '').match(/[A-Za-zäëïöüâêîôûáéíóúàèìòùÄËÏÖÜÂÊÎÔÛÁÉÍÓÚÀÈÌÒÙ]/i)) {
  38310. // avoid false positives, i.e. mentions that have
  38311. // further alphabetical characters than our longest
  38312. // match.
  38313. return null;
  38314. }
  38315. var occupant = this.occupants.findOccupant({
  38316. 'nick': longest_match
  38317. }) || this.occupants.findOccupant({
  38318. 'jid': longest_match
  38319. });
  38320. if (!occupant) {
  38321. return null;
  38322. }
  38323. var obj = {
  38324. 'begin': index,
  38325. 'end': index + longest_match.length,
  38326. 'value': longest_match,
  38327. 'type': 'mention'
  38328. };
  38329. if (occupant.get('jid')) {
  38330. obj.uri = "xmpp:".concat(occupant.get('jid'));
  38331. }
  38332. return obj;
  38333. },
  38334. extractReference: function extractReference(text, index) {
  38335. for (var i = index; i < text.length; i++) {
  38336. if (text[i] !== '@') {
  38337. continue;
  38338. } else {
  38339. var match = text.slice(i + 1),
  38340. ref = this.getReferenceForMention(match, i);
  38341. if (ref) {
  38342. return [text.slice(0, i) + match, ref, i];
  38343. }
  38344. }
  38345. }
  38346. return;
  38347. },
  38348. parseTextForReferences: function parseTextForReferences(text) {
  38349. var refs = [];
  38350. var index = 0;
  38351. while (index < (text || '').length) {
  38352. var result = this.extractReference(text, index);
  38353. if (result) {
  38354. text = result[0]; // @ gets filtered out
  38355. refs.push(result[1]);
  38356. index = result[2];
  38357. } else {
  38358. break;
  38359. }
  38360. }
  38361. return [text, refs];
  38362. },
  38363. getOutgoingMessageAttributes: function getOutgoingMessageAttributes(text, spoiler_hint) {
  38364. var is_spoiler = this.get('composing_spoiler');
  38365. var references;
  38366. var _this$parseTextForRef = this.parseTextForReferences(text);
  38367. var _this$parseTextForRef2 = _slicedToArray(_this$parseTextForRef, 2);
  38368. text = _this$parseTextForRef2[0];
  38369. references = _this$parseTextForRef2[1];
  38370. return {
  38371. 'from': "".concat(this.get('jid'), "/").concat(this.get('nick')),
  38372. 'fullname': this.get('nick'),
  38373. 'is_spoiler': is_spoiler,
  38374. 'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
  38375. 'nick': this.get('nick'),
  38376. 'references': references,
  38377. 'sender': 'me',
  38378. 'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
  38379. 'type': 'groupchat'
  38380. };
  38381. },
  38382. getRoomJIDAndNick: function getRoomJIDAndNick(nick) {
  38383. /* Utility method to construct the JID for the current user
  38384. * as occupant of the groupchat.
  38385. *
  38386. * This is the groupchat JID, with the user's nick added at the
  38387. * end.
  38388. *
  38389. * For example: groupchat@conference.example.org/nickname
  38390. */
  38391. if (nick) {
  38392. this.save({
  38393. 'nick': nick
  38394. });
  38395. } else {
  38396. nick = this.get('nick');
  38397. }
  38398. var groupchat = this.get('jid');
  38399. var jid = Strophe.getBareJidFromJid(groupchat);
  38400. return jid + (nick !== null ? "/".concat(nick) : "");
  38401. },
  38402. sendChatState: function sendChatState() {
  38403. /* Sends a message with the status of the user in this chat session
  38404. * as taken from the 'chat_state' attribute of the chat box.
  38405. * See XEP-0085 Chat State Notifications.
  38406. */
  38407. if (this.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  38408. return;
  38409. }
  38410. var chat_state = this.get('chat_state');
  38411. if (chat_state === _converse.GONE) {
  38412. // <gone/> is not applicable within MUC context
  38413. return;
  38414. }
  38415. _converse.connection.send($msg({
  38416. 'to': this.get('jid'),
  38417. 'type': 'groupchat'
  38418. }).c(chat_state, {
  38419. 'xmlns': Strophe.NS.CHATSTATES
  38420. }).up().c('no-store', {
  38421. 'xmlns': Strophe.NS.HINTS
  38422. }).up().c('no-permanent-store', {
  38423. 'xmlns': Strophe.NS.HINTS
  38424. }));
  38425. },
  38426. directInvite: function directInvite(recipient, reason) {
  38427. /* Send a direct invitation as per XEP-0249
  38428. *
  38429. * Parameters:
  38430. * (String) recipient - JID of the person being invited
  38431. * (String) reason - Optional reason for the invitation
  38432. */
  38433. if (this.get('membersonly')) {
  38434. // When inviting to a members-only groupchat, we first add
  38435. // the person to the member list by giving them an
  38436. // affiliation of 'member' (if they're not affiliated
  38437. // already), otherwise they won't be able to join.
  38438. var map = {};
  38439. map[recipient] = 'member';
  38440. var deltaFunc = _.partial(u.computeAffiliationsDelta, true, false);
  38441. this.updateMemberLists([{
  38442. 'jid': recipient,
  38443. 'affiliation': 'member',
  38444. 'reason': reason
  38445. }], ['member', 'owner', 'admin'], deltaFunc);
  38446. }
  38447. var attrs = {
  38448. 'xmlns': 'jabber:x:conference',
  38449. 'jid': this.get('jid')
  38450. };
  38451. if (reason !== null) {
  38452. attrs.reason = reason;
  38453. }
  38454. if (this.get('password')) {
  38455. attrs.password = this.get('password');
  38456. }
  38457. var invitation = $msg({
  38458. from: _converse.connection.jid,
  38459. to: recipient,
  38460. id: _converse.connection.getUniqueId()
  38461. }).c('x', attrs);
  38462. _converse.connection.send(invitation);
  38463. _converse.emit('roomInviteSent', {
  38464. 'room': this,
  38465. 'recipient': recipient,
  38466. 'reason': reason
  38467. });
  38468. },
  38469. refreshRoomFeatures: async function refreshRoomFeatures() {
  38470. await _converse.api.disco.refreshFeatures(this.get('jid'));
  38471. return this.getRoomFeatures();
  38472. },
  38473. getRoomFeatures: async function getRoomFeatures() {
  38474. var features = await _converse.api.disco.getFeatures(this.get('jid')),
  38475. fields = await _converse.api.disco.getFields(this.get('jid')),
  38476. identity = await _converse.api.disco.getIdentity('conference', 'text', this.get('jid')),
  38477. attrs = {
  38478. 'features_fetched': moment().format(),
  38479. 'name': identity && identity.get('name')
  38480. };
  38481. features.each(function (feature) {
  38482. var fieldname = feature.get('var');
  38483. if (!fieldname.startsWith('muc_')) {
  38484. if (fieldname === Strophe.NS.MAM) {
  38485. attrs.mam_enabled = true;
  38486. }
  38487. return;
  38488. }
  38489. attrs[fieldname.replace('muc_', '')] = true;
  38490. });
  38491. attrs.description = _.get(fields.findWhere({
  38492. 'var': "muc#roominfo_description"
  38493. }), 'attributes.value');
  38494. this.save(attrs);
  38495. },
  38496. requestMemberList: function requestMemberList(affiliation) {
  38497. /* Send an IQ stanza to the server, asking it for the
  38498. * member-list of this groupchat.
  38499. *
  38500. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  38501. *
  38502. * Parameters:
  38503. * (String) affiliation: The specific member list to
  38504. * fetch. 'admin', 'owner' or 'member'.
  38505. *
  38506. * Returns:
  38507. * A promise which resolves once the list has been
  38508. * retrieved.
  38509. */
  38510. affiliation = affiliation || 'member';
  38511. var iq = $iq({
  38512. to: this.get('jid'),
  38513. type: "get"
  38514. }).c("query", {
  38515. xmlns: Strophe.NS.MUC_ADMIN
  38516. }).c("item", {
  38517. 'affiliation': affiliation
  38518. });
  38519. return _converse.api.sendIQ(iq);
  38520. },
  38521. setAffiliation: function setAffiliation(affiliation, members) {
  38522. /* Send IQ stanzas to the server to set an affiliation for
  38523. * the provided JIDs.
  38524. *
  38525. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  38526. *
  38527. * XXX: Prosody doesn't accept multiple JIDs' affiliations
  38528. * being set in one IQ stanza, so as a workaround we send
  38529. * a separate stanza for each JID.
  38530. * Related ticket: https://issues.prosody.im/345
  38531. *
  38532. * Parameters:
  38533. * (String) affiliation: The affiliation
  38534. * (Object) members: A map of jids, affiliations and
  38535. * optionally reasons. Only those entries with the
  38536. * same affiliation as being currently set will be
  38537. * considered.
  38538. *
  38539. * Returns:
  38540. * A promise which resolves and fails depending on the
  38541. * XMPP server response.
  38542. */
  38543. members = _.filter(members, function (member) {
  38544. return (// We only want those members who have the right
  38545. // affiliation (or none, which implies the provided one).
  38546. _.isUndefined(member.affiliation) || member.affiliation === affiliation
  38547. );
  38548. });
  38549. var promises = _.map(members, _.bind(this.sendAffiliationIQ, this, affiliation));
  38550. return Promise.all(promises);
  38551. },
  38552. saveConfiguration: function saveConfiguration(form) {
  38553. var _this2 = this;
  38554. /* Submit the groupchat configuration form by sending an IQ
  38555. * stanza to the server.
  38556. *
  38557. * Returns a promise which resolves once the XMPP server
  38558. * has return a response IQ.
  38559. *
  38560. * Parameters:
  38561. * (HTMLElement) form: The configuration form DOM element.
  38562. * If no form is provided, the default configuration
  38563. * values will be used.
  38564. */
  38565. return new Promise(function (resolve, reject) {
  38566. var inputs = form ? sizzle(':input:not([type=button]):not([type=submit])', form) : [],
  38567. configArray = _.map(inputs, u.webForm2xForm);
  38568. _this2.sendConfiguration(configArray, resolve, reject);
  38569. });
  38570. },
  38571. autoConfigureChatRoom: function autoConfigureChatRoom() {
  38572. var _this3 = this;
  38573. /* Automatically configure groupchat based on this model's
  38574. * 'roomconfig' data.
  38575. *
  38576. * Returns a promise which resolves once a response IQ has
  38577. * been received.
  38578. */
  38579. return new Promise(function (resolve, reject) {
  38580. _this3.fetchRoomConfiguration().then(function (stanza) {
  38581. var configArray = [],
  38582. fields = stanza.querySelectorAll('field'),
  38583. config = _this3.get('roomconfig');
  38584. var count = fields.length;
  38585. _.each(fields, function (field) {
  38586. var fieldname = field.getAttribute('var').replace('muc#roomconfig_', ''),
  38587. type = field.getAttribute('type');
  38588. var value;
  38589. if (fieldname in config) {
  38590. switch (type) {
  38591. case 'boolean':
  38592. value = config[fieldname] ? 1 : 0;
  38593. break;
  38594. case 'list-multi':
  38595. // TODO: we don't yet handle "list-multi" types
  38596. value = field.innerHTML;
  38597. break;
  38598. default:
  38599. value = config[fieldname];
  38600. }
  38601. field.innerHTML = $build('value').t(value);
  38602. }
  38603. configArray.push(field);
  38604. if (! --count) {
  38605. _this3.sendConfiguration(configArray, resolve, reject);
  38606. }
  38607. });
  38608. });
  38609. });
  38610. },
  38611. fetchRoomConfiguration: function fetchRoomConfiguration() {
  38612. var _this4 = this;
  38613. /* Send an IQ stanza to fetch the groupchat configuration data.
  38614. * Returns a promise which resolves once the response IQ
  38615. * has been received.
  38616. */
  38617. return new Promise(function (resolve, reject) {
  38618. _converse.connection.sendIQ($iq({
  38619. 'to': _this4.get('jid'),
  38620. 'type': "get"
  38621. }).c("query", {
  38622. xmlns: Strophe.NS.MUC_OWNER
  38623. }), resolve, reject);
  38624. });
  38625. },
  38626. sendConfiguration: function sendConfiguration(config, callback, errback) {
  38627. /* Send an IQ stanza with the groupchat configuration.
  38628. *
  38629. * Parameters:
  38630. * (Array) config: The groupchat configuration
  38631. * (Function) callback: Callback upon succesful IQ response
  38632. * The first parameter passed in is IQ containing the
  38633. * groupchat configuration.
  38634. * The second is the response IQ from the server.
  38635. * (Function) errback: Callback upon error IQ response
  38636. * The first parameter passed in is IQ containing the
  38637. * groupchat configuration.
  38638. * The second is the response IQ from the server.
  38639. */
  38640. var iq = $iq({
  38641. to: this.get('jid'),
  38642. type: "set"
  38643. }).c("query", {
  38644. xmlns: Strophe.NS.MUC_OWNER
  38645. }).c("x", {
  38646. xmlns: Strophe.NS.XFORM,
  38647. type: "submit"
  38648. });
  38649. _.each(config || [], function (node) {
  38650. iq.cnode(node).up();
  38651. });
  38652. callback = _.isUndefined(callback) ? _.noop : _.partial(callback, iq.nodeTree);
  38653. errback = _.isUndefined(errback) ? _.noop : _.partial(errback, iq.nodeTree);
  38654. return _converse.connection.sendIQ(iq, callback, errback);
  38655. },
  38656. saveAffiliationAndRole: function saveAffiliationAndRole(pres) {
  38657. /* Parse the presence stanza for the current user's
  38658. * affiliation.
  38659. *
  38660. * Parameters:
  38661. * (XMLElement) pres: A <presence> stanza.
  38662. */
  38663. var item = sizzle("x[xmlns=\"".concat(Strophe.NS.MUC_USER, "\"] item"), pres).pop();
  38664. var is_self = pres.querySelector("status[code='110']");
  38665. if (is_self && !_.isNil(item)) {
  38666. var affiliation = item.getAttribute('affiliation');
  38667. var role = item.getAttribute('role');
  38668. if (affiliation) {
  38669. this.save({
  38670. 'affiliation': affiliation
  38671. });
  38672. }
  38673. if (role) {
  38674. this.save({
  38675. 'role': role
  38676. });
  38677. }
  38678. }
  38679. },
  38680. sendAffiliationIQ: function sendAffiliationIQ(affiliation, member) {
  38681. var _this5 = this;
  38682. /* Send an IQ stanza specifying an affiliation change.
  38683. *
  38684. * Paremeters:
  38685. * (String) affiliation: affiliation (could also be stored
  38686. * on the member object).
  38687. * (Object) member: Map containing the member's jid and
  38688. * optionally a reason and affiliation.
  38689. */
  38690. return new Promise(function (resolve, reject) {
  38691. var iq = $iq({
  38692. to: _this5.get('jid'),
  38693. type: "set"
  38694. }).c("query", {
  38695. xmlns: Strophe.NS.MUC_ADMIN
  38696. }).c("item", {
  38697. 'affiliation': member.affiliation || affiliation,
  38698. 'nick': member.nick,
  38699. 'jid': member.jid
  38700. });
  38701. if (!_.isUndefined(member.reason)) {
  38702. iq.c("reason", member.reason);
  38703. }
  38704. _converse.connection.sendIQ(iq, resolve, reject);
  38705. });
  38706. },
  38707. setAffiliations: function setAffiliations(members) {
  38708. /* Send IQ stanzas to the server to modify the
  38709. * affiliations in this groupchat.
  38710. *
  38711. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  38712. *
  38713. * Parameters:
  38714. * (Object) members: A map of jids, affiliations and optionally reasons
  38715. * (Function) onSuccess: callback for a succesful response
  38716. * (Function) onError: callback for an error response
  38717. */
  38718. var affiliations = _.uniq(_.map(members, 'affiliation'));
  38719. return Promise.all(_.map(affiliations, _.partial(this.setAffiliation.bind(this), _, members)));
  38720. },
  38721. getJidsWithAffiliations: async function getJidsWithAffiliations(affiliations) {
  38722. var _this6 = this;
  38723. /* Returns a map of JIDs that have the affiliations
  38724. * as provided.
  38725. */
  38726. if (_.isString(affiliations)) {
  38727. affiliations = [affiliations];
  38728. }
  38729. var result = await Promise.all(affiliations.map(function (a) {
  38730. return _this6.requestMemberList(a).then(function (iq) {
  38731. return u.parseMemberListIQ(iq);
  38732. }).catch(function (iq) {
  38733. _converse.log(iq, Strophe.LogLevel.ERROR);
  38734. });
  38735. }));
  38736. return [].concat.apply([], result).filter(function (p) {
  38737. return p;
  38738. });
  38739. },
  38740. updateMemberLists: function updateMemberLists(members, affiliations, deltaFunc) {
  38741. var _this7 = this;
  38742. /* Fetch the lists of users with the given affiliations.
  38743. * Then compute the delta between those users and
  38744. * the passed in members, and if it exists, send the delta
  38745. * to the XMPP server to update the member list.
  38746. *
  38747. * Parameters:
  38748. * (Object) members: Map of member jids and affiliations.
  38749. * (String|Array) affiliation: An array of affiliations or
  38750. * a string if only one affiliation.
  38751. * (Function) deltaFunc: The function to compute the delta
  38752. * between old and new member lists.
  38753. *
  38754. * Returns:
  38755. * A promise which is resolved once the list has been
  38756. * updated or once it's been established there's no need
  38757. * to update the list.
  38758. */
  38759. this.getJidsWithAffiliations(affiliations).then(function (old_members) {
  38760. return _this7.setAffiliations(deltaFunc(members, old_members));
  38761. }).then(function () {
  38762. return _this7.occupants.fetchMembers();
  38763. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  38764. },
  38765. getDefaultNick: function getDefaultNick() {
  38766. /* The default nickname (used when muc_nickname_from_jid is true)
  38767. * is the node part of the user's JID.
  38768. * We put this in a separate method so that it can be
  38769. * overridden by plugins.
  38770. */
  38771. var nick = _converse.xmppstatus.vcard.get('nickname');
  38772. if (nick) {
  38773. return nick;
  38774. } else if (_converse.muc_nickname_from_jid) {
  38775. return Strophe.unescapeNode(Strophe.getNodeFromJid(_converse.bare_jid));
  38776. }
  38777. },
  38778. checkForReservedNick: function checkForReservedNick() {
  38779. var _this8 = this;
  38780. /* Use service-discovery to ask the XMPP server whether
  38781. * this user has a reserved nickname for this groupchat.
  38782. * If so, we'll use that, otherwise we render the nickname form.
  38783. *
  38784. * Parameters:
  38785. * (Function) callback: Callback upon succesful IQ response
  38786. * (Function) errback: Callback upon error IQ response
  38787. */
  38788. return _converse.api.sendIQ($iq({
  38789. 'to': this.get('jid'),
  38790. 'from': _converse.connection.jid,
  38791. 'type': "get"
  38792. }).c("query", {
  38793. 'xmlns': Strophe.NS.DISCO_INFO,
  38794. 'node': 'x-roomuser-item'
  38795. })).then(function (iq) {
  38796. var identity_el = iq.querySelector('query[node="x-roomuser-item"] identity'),
  38797. nick = identity_el ? identity_el.getAttribute('name') : null;
  38798. _this8.save({
  38799. 'reserved_nick': nick,
  38800. 'nick': nick
  38801. }, {
  38802. 'silent': true
  38803. });
  38804. return iq;
  38805. });
  38806. },
  38807. registerNickname: async function registerNickname() {
  38808. // See https://xmpp.org/extensions/xep-0045.html#register
  38809. var nick = this.get('nick'),
  38810. jid = this.get('jid');
  38811. var iq, err_msg;
  38812. try {
  38813. iq = await _converse.api.sendIQ($iq({
  38814. 'to': jid,
  38815. 'from': _converse.connection.jid,
  38816. 'type': 'get'
  38817. }).c('query', {
  38818. 'xmlns': Strophe.NS.MUC_REGISTER
  38819. }));
  38820. } catch (e) {
  38821. if (sizzle('not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  38822. err_msg = __("You're not allowed to register yourself in this groupchat.");
  38823. } else if (sizzle('registration-required[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  38824. err_msg = __("You're not allowed to register in this groupchat because it's members-only.");
  38825. }
  38826. _converse.log(e, Strophe.LogLevel.ERROR);
  38827. return err_msg;
  38828. }
  38829. var required_fields = sizzle('field required', iq).map(function (f) {
  38830. return f.parentElement;
  38831. });
  38832. if (required_fields.length > 1 && required_fields[0].getAttribute('var') !== 'muc#register_roomnick') {
  38833. return _converse.log("Can't register the user register in the groupchat ".concat(jid, " due to the required fields"));
  38834. }
  38835. try {
  38836. await _converse.api.sendIQ($iq({
  38837. 'to': jid,
  38838. 'from': _converse.connection.jid,
  38839. 'type': 'set'
  38840. }).c('query', {
  38841. 'xmlns': Strophe.NS.MUC_REGISTER
  38842. }).c('x', {
  38843. 'xmlns': Strophe.NS.XFORM,
  38844. 'type': 'submit'
  38845. }).c('field', {
  38846. 'var': 'FORM_TYPE'
  38847. }).c('value').t('http://jabber.org/protocol/muc#register').up().up().c('field', {
  38848. 'var': 'muc#register_roomnick'
  38849. }).c('value').t(nick));
  38850. } catch (e) {
  38851. if (sizzle('service-unavailable[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  38852. err_msg = __("Can't register your nickname in this groupchat, it doesn't support registration.");
  38853. } else if (sizzle('bad-request[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  38854. err_msg = __("Can't register your nickname in this groupchat, invalid data form supplied.");
  38855. }
  38856. _converse.log(err_msg);
  38857. _converse.log(e, Strophe.LogLevel.ERROR);
  38858. return err_msg;
  38859. }
  38860. },
  38861. updateOccupantsOnPresence: function updateOccupantsOnPresence(pres) {
  38862. /* Given a presence stanza, update the occupant model
  38863. * based on its contents.
  38864. *
  38865. * Parameters:
  38866. * (XMLElement) pres: The presence stanza
  38867. */
  38868. var data = this.parsePresence(pres);
  38869. if (data.type === 'error' || !data.jid && !data.nick) {
  38870. return true;
  38871. }
  38872. var occupant = this.occupants.findOccupant(data);
  38873. if (data.type === 'unavailable' && occupant) {
  38874. if (!_.includes(data.states, converse.MUC_NICK_CHANGED_CODE) && !occupant.isMember()) {
  38875. // We only destroy the occupant if this is not a nickname change operation.
  38876. // and if they're not on the member lists.
  38877. // Before destroying we set the new data, so
  38878. // that we can show the disconnection message.
  38879. occupant.set(data);
  38880. occupant.destroy();
  38881. return;
  38882. }
  38883. }
  38884. var jid = Strophe.getBareJidFromJid(data.jid);
  38885. var attributes = _.extend(data, {
  38886. 'jid': jid ? jid : undefined,
  38887. 'resource': data.jid ? Strophe.getResourceFromJid(data.jid) : undefined
  38888. });
  38889. if (occupant) {
  38890. occupant.save(attributes);
  38891. } else {
  38892. this.occupants.create(attributes);
  38893. }
  38894. },
  38895. parsePresence: function parsePresence(pres) {
  38896. var from = pres.getAttribute("from"),
  38897. type = pres.getAttribute("type"),
  38898. data = {
  38899. 'from': from,
  38900. 'nick': Strophe.getResourceFromJid(from),
  38901. 'type': type,
  38902. 'states': [],
  38903. 'show': type !== 'unavailable' ? 'online' : 'offline'
  38904. };
  38905. _.each(pres.childNodes, function (child) {
  38906. switch (child.nodeName) {
  38907. case "status":
  38908. data.status = child.textContent || null;
  38909. break;
  38910. case "show":
  38911. data.show = child.textContent || 'online';
  38912. break;
  38913. case "x":
  38914. if (child.getAttribute("xmlns") === Strophe.NS.MUC_USER) {
  38915. _.each(child.childNodes, function (item) {
  38916. switch (item.nodeName) {
  38917. case "item":
  38918. data.affiliation = item.getAttribute("affiliation");
  38919. data.role = item.getAttribute("role");
  38920. data.jid = item.getAttribute("jid");
  38921. data.nick = item.getAttribute("nick") || data.nick;
  38922. break;
  38923. case "status":
  38924. if (item.getAttribute("code")) {
  38925. data.states.push(item.getAttribute("code"));
  38926. }
  38927. }
  38928. });
  38929. } else if (child.getAttribute("xmlns") === Strophe.NS.VCARDUPDATE) {
  38930. data.image_hash = _.get(child.querySelector('photo'), 'textContent');
  38931. }
  38932. }
  38933. });
  38934. return data;
  38935. },
  38936. isDuplicate: function isDuplicate(message, original_stanza) {
  38937. var msgid = message.getAttribute('id'),
  38938. jid = message.getAttribute('from');
  38939. if (msgid) {
  38940. return this.messages.where({
  38941. 'msgid': msgid,
  38942. 'from': jid
  38943. }).length;
  38944. }
  38945. return false;
  38946. },
  38947. fetchFeaturesIfConfigurationChanged: function fetchFeaturesIfConfigurationChanged(stanza) {
  38948. var configuration_changed = stanza.querySelector("status[code='104']"),
  38949. logging_enabled = stanza.querySelector("status[code='170']"),
  38950. logging_disabled = stanza.querySelector("status[code='171']"),
  38951. room_no_longer_anon = stanza.querySelector("status[code='172']"),
  38952. room_now_semi_anon = stanza.querySelector("status[code='173']"),
  38953. room_now_fully_anon = stanza.querySelector("status[code='173']");
  38954. if (configuration_changed || logging_enabled || logging_disabled || room_no_longer_anon || room_now_semi_anon || room_now_fully_anon) {
  38955. this.refreshRoomFeatures();
  38956. }
  38957. },
  38958. onMessage: function onMessage(stanza) {
  38959. var _this9 = this;
  38960. /* Handler for all MUC messages sent to this groupchat.
  38961. *
  38962. * Parameters:
  38963. * (XMLElement) stanza: The message stanza.
  38964. */
  38965. this.fetchFeaturesIfConfigurationChanged(stanza);
  38966. var original_stanza = stanza,
  38967. forwarded = stanza.querySelector('forwarded');
  38968. if (!_.isNull(forwarded)) {
  38969. stanza = forwarded.querySelector('message');
  38970. }
  38971. if (this.isDuplicate(stanza, original_stanza)) {
  38972. return;
  38973. }
  38974. var jid = stanza.getAttribute('from'),
  38975. resource = Strophe.getResourceFromJid(jid),
  38976. sender = resource && Strophe.unescapeNode(resource) || '';
  38977. if (!this.handleMessageCorrection(stanza)) {
  38978. if (sender === '') {
  38979. return;
  38980. }
  38981. var subject_el = stanza.querySelector('subject');
  38982. if (subject_el) {
  38983. var subject = _.propertyOf(subject_el)('textContent') || '';
  38984. u.safeSave(this, {
  38985. 'subject': {
  38986. 'author': sender,
  38987. 'text': subject
  38988. }
  38989. });
  38990. }
  38991. this.createMessage(stanza, original_stanza).then(function (msg) {
  38992. return _this9.incrementUnreadMsgCounter(msg);
  38993. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  38994. }
  38995. if (sender !== this.get('nick')) {
  38996. // We only emit an event if it's not our own message
  38997. _converse.emit('message', {
  38998. 'stanza': original_stanza,
  38999. 'chatbox': this
  39000. });
  39001. }
  39002. },
  39003. onPresence: function onPresence(pres) {
  39004. /* Handles all MUC presence stanzas.
  39005. *
  39006. * Parameters:
  39007. * (XMLElement) pres: The stanza
  39008. */
  39009. if (pres.getAttribute('type') === 'error') {
  39010. this.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  39011. return;
  39012. }
  39013. var is_self = pres.querySelector("status[code='110']");
  39014. if (is_self && pres.getAttribute('type') !== 'unavailable') {
  39015. this.onOwnPresence(pres);
  39016. }
  39017. this.updateOccupantsOnPresence(pres);
  39018. if (this.get('role') !== 'none' && this.get('connection_status') === converse.ROOMSTATUS.CONNECTING) {
  39019. this.save('connection_status', converse.ROOMSTATUS.CONNECTED);
  39020. }
  39021. },
  39022. onOwnPresence: function onOwnPresence(pres) {
  39023. var _this10 = this;
  39024. /* Handles a received presence relating to the current
  39025. * user.
  39026. *
  39027. * For locked groupchats (which are by definition "new"), the
  39028. * groupchat will either be auto-configured or created instantly
  39029. * (with default config) or a configuration groupchat will be
  39030. * rendered.
  39031. *
  39032. * If the groupchat is not locked, then the groupchat will be
  39033. * auto-configured only if applicable and if the current
  39034. * user is the groupchat's owner.
  39035. *
  39036. * Parameters:
  39037. * (XMLElement) pres: The stanza
  39038. */
  39039. this.saveAffiliationAndRole(pres);
  39040. var locked_room = pres.querySelector("status[code='201']");
  39041. if (locked_room) {
  39042. if (this.get('auto_configure')) {
  39043. this.autoConfigureChatRoom().then(function () {
  39044. return _this10.refreshRoomFeatures();
  39045. });
  39046. } else if (_converse.muc_instant_rooms) {
  39047. // Accept default configuration
  39048. this.saveConfiguration().then(function () {
  39049. return _this10.getRoomFeatures();
  39050. });
  39051. } else {
  39052. this.trigger('configurationNeeded');
  39053. return; // We haven't yet entered the groupchat, so bail here.
  39054. }
  39055. } else if (!this.get('features_fetched')) {
  39056. // The features for this groupchat weren't fetched.
  39057. // That must mean it's a new groupchat without locking
  39058. // (in which case Prosody doesn't send a 201 status),
  39059. // otherwise the features would have been fetched in
  39060. // the "initialize" method already.
  39061. if (this.get('affiliation') === 'owner' && this.get('auto_configure')) {
  39062. this.autoConfigureChatRoom().then(function () {
  39063. return _this10.refreshRoomFeatures();
  39064. });
  39065. } else {
  39066. this.getRoomFeatures();
  39067. }
  39068. }
  39069. this.save('connection_status', converse.ROOMSTATUS.ENTERED);
  39070. },
  39071. isUserMentioned: function isUserMentioned(message) {
  39072. /* Returns a boolean to indicate whether the current user
  39073. * was mentioned in a message.
  39074. *
  39075. * Parameters:
  39076. * (String): The text message
  39077. */
  39078. var nick = this.get('nick');
  39079. if (message.get('references').length) {
  39080. var mentions = message.get('references').filter(function (ref) {
  39081. return ref.type === 'mention';
  39082. }).map(function (ref) {
  39083. return ref.value;
  39084. });
  39085. return _.includes(mentions, nick);
  39086. } else {
  39087. return new RegExp("\\b".concat(nick, "\\b")).test(message.get('message'));
  39088. }
  39089. },
  39090. incrementUnreadMsgCounter: function incrementUnreadMsgCounter(message) {
  39091. /* Given a newly received message, update the unread counter if
  39092. * necessary.
  39093. *
  39094. * Parameters:
  39095. * (XMLElement): The <messsage> stanza
  39096. */
  39097. if (!message) {
  39098. return;
  39099. }
  39100. var body = message.get('message');
  39101. if (_.isNil(body)) {
  39102. return;
  39103. }
  39104. if (u.isNewMessage(message) && this.isHidden()) {
  39105. var settings = {
  39106. 'num_unread_general': this.get('num_unread_general') + 1
  39107. };
  39108. if (this.isUserMentioned(message)) {
  39109. settings.num_unread = this.get('num_unread') + 1;
  39110. _converse.incrementMsgCounter();
  39111. }
  39112. this.save(settings);
  39113. }
  39114. },
  39115. clearUnreadMsgCounter: function clearUnreadMsgCounter() {
  39116. u.safeSave(this, {
  39117. 'num_unread': 0,
  39118. 'num_unread_general': 0
  39119. });
  39120. }
  39121. });
  39122. _converse.ChatRoomOccupant = Backbone.Model.extend({
  39123. defaults: {
  39124. 'show': 'offline'
  39125. },
  39126. initialize: function initialize(attributes) {
  39127. this.set(_.extend({
  39128. 'id': _converse.connection.getUniqueId()
  39129. }, attributes));
  39130. this.on('change:image_hash', this.onAvatarChanged, this);
  39131. },
  39132. onAvatarChanged: function onAvatarChanged() {
  39133. var hash = this.get('image_hash');
  39134. var vcards = [];
  39135. if (this.get('jid')) {
  39136. vcards.push(_converse.vcards.findWhere({
  39137. 'jid': this.get('jid')
  39138. }));
  39139. }
  39140. vcards.push(_converse.vcards.findWhere({
  39141. 'jid': this.get('from')
  39142. }));
  39143. _.forEach(_.filter(vcards, undefined), function (vcard) {
  39144. if (hash && vcard.get('image_hash') !== hash) {
  39145. _converse.api.vcard.update(vcard);
  39146. }
  39147. });
  39148. },
  39149. getDisplayName: function getDisplayName() {
  39150. return this.get('nick') || this.get('jid');
  39151. },
  39152. isMember: function isMember() {
  39153. return _.includes(['admin', 'owner', 'member'], this.get('affiliation'));
  39154. }
  39155. });
  39156. _converse.ChatRoomOccupants = Backbone.Collection.extend({
  39157. model: _converse.ChatRoomOccupant,
  39158. comparator: function comparator(occupant1, occupant2) {
  39159. var role1 = occupant1.get('role') || 'none';
  39160. var role2 = occupant2.get('role') || 'none';
  39161. if (MUC_ROLE_WEIGHTS[role1] === MUC_ROLE_WEIGHTS[role2]) {
  39162. var nick1 = occupant1.getDisplayName().toLowerCase();
  39163. var nick2 = occupant2.getDisplayName().toLowerCase();
  39164. return nick1 < nick2 ? -1 : nick1 > nick2 ? 1 : 0;
  39165. } else {
  39166. return MUC_ROLE_WEIGHTS[role1] < MUC_ROLE_WEIGHTS[role2] ? -1 : 1;
  39167. }
  39168. },
  39169. fetchMembers: function fetchMembers() {
  39170. var _this11 = this;
  39171. this.chatroom.getJidsWithAffiliations(['member', 'owner', 'admin']).then(function (new_members) {
  39172. var new_jids = new_members.map(function (m) {
  39173. return m.jid;
  39174. }).filter(function (m) {
  39175. return !_.isUndefined(m);
  39176. }),
  39177. new_nicks = new_members.map(function (m) {
  39178. return !m.jid && m.nick || undefined;
  39179. }).filter(function (m) {
  39180. return !_.isUndefined(m);
  39181. }),
  39182. removed_members = _this11.filter(function (m) {
  39183. return f.includes(m.get('affiliation'), ['admin', 'member', 'owner']) && !f.includes(m.get('nick'), new_nicks) && !f.includes(m.get('jid'), new_jids);
  39184. });
  39185. _.each(removed_members, function (occupant) {
  39186. if (occupant.get('jid') === _converse.bare_jid) {
  39187. return;
  39188. }
  39189. if (occupant.get('show') === 'offline') {
  39190. occupant.destroy();
  39191. }
  39192. });
  39193. _.each(new_members, function (attrs) {
  39194. var occupant;
  39195. if (attrs.jid) {
  39196. occupant = _this11.findOccupant({
  39197. 'jid': attrs.jid
  39198. });
  39199. } else {
  39200. occupant = _this11.findOccupant({
  39201. 'nick': attrs.nick
  39202. });
  39203. }
  39204. if (occupant) {
  39205. occupant.save(attrs);
  39206. } else {
  39207. _this11.create(attrs);
  39208. }
  39209. });
  39210. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  39211. },
  39212. findOccupant: function findOccupant(data) {
  39213. /* Try to find an existing occupant based on the passed in
  39214. * data object.
  39215. *
  39216. * If we have a JID, we use that as lookup variable,
  39217. * otherwise we use the nick. We don't always have both,
  39218. * but should have at least one or the other.
  39219. */
  39220. var jid = Strophe.getBareJidFromJid(data.jid);
  39221. if (jid !== null) {
  39222. return this.where({
  39223. 'jid': jid
  39224. }).pop();
  39225. } else {
  39226. return this.where({
  39227. 'nick': data.nick
  39228. }).pop();
  39229. }
  39230. }
  39231. });
  39232. _converse.RoomsPanelModel = Backbone.Model.extend({
  39233. defaults: {
  39234. 'muc_domain': ''
  39235. }
  39236. });
  39237. _converse.onDirectMUCInvitation = function (message) {
  39238. /* A direct MUC invitation to join a groupchat has been received
  39239. * See XEP-0249: Direct MUC invitations.
  39240. *
  39241. * Parameters:
  39242. * (XMLElement) message: The message stanza containing the
  39243. * invitation.
  39244. */
  39245. var x_el = sizzle('x[xmlns="jabber:x:conference"]', message).pop(),
  39246. from = Strophe.getBareJidFromJid(message.getAttribute('from')),
  39247. room_jid = x_el.getAttribute('jid'),
  39248. reason = x_el.getAttribute('reason');
  39249. var contact = _converse.roster.get(from),
  39250. result;
  39251. if (_converse.auto_join_on_invite) {
  39252. result = true;
  39253. } else {
  39254. // Invite request might come from someone not your roster list
  39255. contact = contact ? contact.get('fullname') : Strophe.getNodeFromJid(from);
  39256. if (!reason) {
  39257. result = confirm(__("%1$s has invited you to join a groupchat: %2$s", contact, room_jid));
  39258. } else {
  39259. result = confirm(__('%1$s has invited you to join a groupchat: %2$s, and left the following reason: "%3$s"', contact, room_jid, reason));
  39260. }
  39261. }
  39262. if (result === true) {
  39263. var chatroom = _converse.openChatRoom(room_jid, {
  39264. 'password': x_el.getAttribute('password')
  39265. });
  39266. if (chatroom.get('connection_status') === converse.ROOMSTATUS.DISCONNECTED) {
  39267. _converse.chatboxviews.get(room_jid).join();
  39268. }
  39269. }
  39270. };
  39271. if (_converse.allow_muc_invitations) {
  39272. var registerDirectInvitationHandler = function registerDirectInvitationHandler() {
  39273. _converse.connection.addHandler(function (message) {
  39274. _converse.onDirectMUCInvitation(message);
  39275. return true;
  39276. }, 'jabber:x:conference', 'message');
  39277. };
  39278. _converse.on('connected', registerDirectInvitationHandler);
  39279. _converse.on('reconnected', registerDirectInvitationHandler);
  39280. }
  39281. var getChatRoom = function getChatRoom(jid, attrs, create) {
  39282. jid = jid.toLowerCase();
  39283. attrs.type = _converse.CHATROOMS_TYPE;
  39284. attrs.id = jid;
  39285. attrs.box_id = b64_sha1(jid);
  39286. return _converse.chatboxes.getChatBox(jid, attrs, create);
  39287. };
  39288. var createChatRoom = function createChatRoom(jid, attrs) {
  39289. return getChatRoom(jid, attrs, true);
  39290. };
  39291. function autoJoinRooms() {
  39292. /* Automatically join groupchats, based on the
  39293. * "auto_join_rooms" configuration setting, which is an array
  39294. * of strings (groupchat JIDs) or objects (with groupchat JID and other
  39295. * settings).
  39296. */
  39297. _.each(_converse.auto_join_rooms, function (groupchat) {
  39298. if (_converse.chatboxes.where({
  39299. 'jid': groupchat
  39300. }).length) {
  39301. return;
  39302. }
  39303. if (_.isString(groupchat)) {
  39304. _converse.api.rooms.open(groupchat);
  39305. } else if (_.isObject(groupchat)) {
  39306. _converse.api.rooms.open(groupchat.jid, groupchat.nick);
  39307. } else {
  39308. _converse.log('Invalid groupchat criteria specified for "auto_join_rooms"', Strophe.LogLevel.ERROR);
  39309. }
  39310. });
  39311. _converse.emit('roomsAutoJoined');
  39312. }
  39313. function disconnectChatRooms() {
  39314. /* When disconnecting, mark all groupchats as
  39315. * disconnected, so that they will be properly entered again
  39316. * when fetched from session storage.
  39317. */
  39318. _converse.chatboxes.each(function (model) {
  39319. if (model.get('type') === _converse.CHATROOMS_TYPE) {
  39320. model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  39321. }
  39322. });
  39323. }
  39324. function fetchRegistrationForm(room_jid, user_jid) {
  39325. var _this12 = this;
  39326. _converse.api.sendIQ($iq({
  39327. 'from': user_jid,
  39328. 'to': room_jid,
  39329. 'type': 'get'
  39330. }).c('query', {
  39331. 'xmlns': Strophe.NS.REGISTER
  39332. })).then(function (iq) {}).catch(function (iq) {
  39333. if (sizzle('item-not-found[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', iq).length) {
  39334. _this12.feedback.set('error', __("Error: the groupchat ".concat(_this12.model.getDisplayName(), " does not exist.")));
  39335. } else if (sizzle('not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]').length) {
  39336. _this12.feedback.set('error', __("Sorry, you're not allowed to registerd in this groupchat"));
  39337. }
  39338. });
  39339. }
  39340. /************************ BEGIN Event Handlers ************************/
  39341. _converse.on('addClientFeatures', function () {
  39342. if (_converse.allow_muc) {
  39343. _converse.api.disco.own.features.add(Strophe.NS.MUC);
  39344. }
  39345. if (_converse.allow_muc_invitations) {
  39346. _converse.api.disco.own.features.add('jabber:x:conference'); // Invites
  39347. }
  39348. });
  39349. _converse.api.listen.on('chatBoxesFetched', autoJoinRooms);
  39350. _converse.api.listen.on('disconnecting', disconnectChatRooms);
  39351. _converse.api.listen.on('statusInitialized', function () {
  39352. // XXX: For websocket connections, we disconnect from all
  39353. // chatrooms when the page reloads. This is a workaround for
  39354. // issue #1111 and should be removed once we support XEP-0198
  39355. var options = {
  39356. 'once': true,
  39357. 'passive': true
  39358. };
  39359. window.addEventListener(_converse.unloadevent, function () {
  39360. if (_instanceof(_converse.connection._proto, Strophe.Websocket)) {
  39361. disconnectChatRooms();
  39362. }
  39363. });
  39364. });
  39365. /************************ END Event Handlers ************************/
  39366. /************************ BEGIN API ************************/
  39367. // We extend the default converse.js API to add methods specific to MUC groupchats.
  39368. _.extend(_converse.api, {
  39369. /**
  39370. * The "rooms" namespace groups methods relevant to chatrooms
  39371. * (aka groupchats).
  39372. *
  39373. * @namespace _converse.api.rooms
  39374. * @memberOf _converse.api
  39375. */
  39376. 'rooms': {
  39377. /**
  39378. * Creates a new MUC chatroom (aka groupchat)
  39379. *
  39380. * Similar to {@link _converse.api.rooms.open}, but creates
  39381. * the chatroom in the background (i.e. doesn't cause a
  39382. * view to open).
  39383. *
  39384. * @method _converse.api.rooms.create
  39385. * @param {(string[]|string)} jid|jids The JID or array of
  39386. * JIDs of the chatroom(s) to create
  39387. * @param {object} [attrs] attrs The room attributes
  39388. */
  39389. 'create': function create(jids, attrs) {
  39390. if (_.isString(attrs)) {
  39391. attrs = {
  39392. 'nick': attrs
  39393. };
  39394. } else if (_.isUndefined(attrs)) {
  39395. attrs = {};
  39396. }
  39397. if (_.isUndefined(attrs.maximize)) {
  39398. attrs.maximize = false;
  39399. }
  39400. if (!attrs.nick && _converse.muc_nickname_from_jid) {
  39401. attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
  39402. }
  39403. if (_.isUndefined(jids)) {
  39404. throw new TypeError('rooms.create: You need to provide at least one JID');
  39405. } else if (_.isString(jids)) {
  39406. return createChatRoom(jids, attrs);
  39407. }
  39408. return _.map(jids, _.partial(createChatRoom, _, attrs));
  39409. },
  39410. /**
  39411. * Opens a MUC chatroom (aka groupchat)
  39412. *
  39413. * Similar to {@link _converse.api.chats.open}, but for groupchats.
  39414. *
  39415. * @method _converse.api.rooms.open
  39416. * @param {string} jid The room JID or JIDs (if not specified, all
  39417. * currently open rooms will be returned).
  39418. * @param {string} attrs A map containing any extra room attributes.
  39419. * @param {string} [attrs.nick] The current user's nickname for the MUC
  39420. * @param {boolean} [attrs.auto_configure] A boolean, indicating
  39421. * whether the room should be configured automatically or not.
  39422. * If set to `true`, then it makes sense to pass in configuration settings.
  39423. * @param {object} [attrs.roomconfig] A map of configuration settings to be used when the room gets
  39424. * configured automatically. Currently it doesn't make sense to specify
  39425. * `roomconfig` values if `auto_configure` is set to `false`.
  39426. * For a list of configuration values that can be passed in, refer to these values
  39427. * in the [XEP-0045 MUC specification](http://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
  39428. * The values should be named without the `muc#roomconfig_` prefix.
  39429. * @param {boolean} [attrs.maximize] A boolean, indicating whether minimized rooms should also be
  39430. * maximized, when opened. Set to `false` by default.
  39431. * @param {boolean} [attrs.bring_to_foreground] A boolean indicating whether the room should be
  39432. * brought to the foreground and therefore replace the currently shown chat.
  39433. * If there is no chat currently open, then this option is ineffective.
  39434. *
  39435. * @example
  39436. * this._converse.api.rooms.open('group@muc.example.com')
  39437. *
  39438. * @example
  39439. * // To return an array of rooms, provide an array of room JIDs:
  39440. * _converse.api.rooms.open(['group1@muc.example.com', 'group2@muc.example.com'])
  39441. *
  39442. * @example
  39443. * // To setup a custom nickname when joining the room, provide the optional nick argument:
  39444. * _converse.api.rooms.open('group@muc.example.com', {'nick': 'mycustomnick'})
  39445. *
  39446. * @example
  39447. * // For example, opening a room with a specific default configuration:
  39448. * _converse.api.rooms.open(
  39449. * 'myroom@conference.example.org',
  39450. * { 'nick': 'coolguy69',
  39451. * 'auto_configure': true,
  39452. * 'roomconfig': {
  39453. * 'changesubject': false,
  39454. * 'membersonly': true,
  39455. * 'persistentroom': true,
  39456. * 'publicroom': true,
  39457. * 'roomdesc': 'Comfy room for hanging out',
  39458. * 'whois': 'anyone'
  39459. * }
  39460. * },
  39461. * true
  39462. * );
  39463. */
  39464. 'open': function open(jids, attrs) {
  39465. return new Promise(function (resolve, reject) {
  39466. _converse.api.waitUntil('chatBoxesFetched').then(function () {
  39467. if (_.isUndefined(jids)) {
  39468. var err_msg = 'rooms.open: You need to provide at least one JID';
  39469. _converse.log(err_msg, Strophe.LogLevel.ERROR);
  39470. reject(new TypeError(err_msg));
  39471. } else if (_.isString(jids)) {
  39472. resolve(_converse.api.rooms.create(jids, attrs).trigger('show'));
  39473. } else {
  39474. resolve(_.map(jids, function (jid) {
  39475. return _converse.api.rooms.create(jid, attrs).trigger('show');
  39476. }));
  39477. }
  39478. });
  39479. });
  39480. },
  39481. /**
  39482. * Returns an object representing a MUC chatroom (aka groupchat)
  39483. *
  39484. * @method _converse.api.rooms.get
  39485. * @param {string} [jid] The room JID (if not specified, all rooms will be returned).
  39486. * @param {object} attrs A map containing any extra room attributes For example, if you want
  39487. * to specify the nickname, use `{'nick': 'bloodninja'}`. Previously (before
  39488. * version 1.0.7, the second parameter only accepted the nickname (as a string
  39489. * value). This is currently still accepted, but then you can't pass in any
  39490. * other room attributes. If the nickname is not specified then the node part of
  39491. * the user's JID will be used.
  39492. * @param {boolean} create A boolean indicating whether the room should be created
  39493. * if not found (default: `false`)
  39494. * @example
  39495. * _converse.api.waitUntil('roomsAutoJoined').then(() => {
  39496. * const create_if_not_found = true;
  39497. * _converse.api.rooms.get(
  39498. * 'group@muc.example.com',
  39499. * {'nick': 'dread-pirate-roberts'},
  39500. * create_if_not_found
  39501. * )
  39502. * });
  39503. */
  39504. 'get': function get(jids, attrs, create) {
  39505. if (_.isString(attrs)) {
  39506. attrs = {
  39507. 'nick': attrs
  39508. };
  39509. } else if (_.isUndefined(attrs)) {
  39510. attrs = {};
  39511. }
  39512. if (_.isUndefined(jids)) {
  39513. var result = [];
  39514. _converse.chatboxes.each(function (chatbox) {
  39515. if (chatbox.get('type') === _converse.CHATROOMS_TYPE) {
  39516. result.push(chatbox);
  39517. }
  39518. });
  39519. return result;
  39520. }
  39521. if (!attrs.nick) {
  39522. attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
  39523. }
  39524. if (_.isString(jids)) {
  39525. return getChatRoom(jids, attrs);
  39526. }
  39527. return _.map(jids, _.partial(getChatRoom, _, attrs));
  39528. }
  39529. }
  39530. });
  39531. /************************ END API ************************/
  39532. }
  39533. });
  39534. });
  39535. /***/ }),
  39536. /***/ "./src/converse-notification.js":
  39537. /*!**************************************!*\
  39538. !*** ./src/converse-notification.js ***!
  39539. \**************************************/
  39540. /*! no static exports found */
  39541. /***/ (function(module, exports, __webpack_require__) {
  39542. "use strict";
  39543. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  39544. // Converse.js (A browser based XMPP chat client)
  39545. // http://conversejs.org
  39546. //
  39547. // Copyright (c) 2013-2018, JC Brand <jc@opkode.com>
  39548. // Licensed under the Mozilla Public License (MPLv2)
  39549. //
  39550. /*global define */
  39551. (function (root, factory) {
  39552. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  39553. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39554. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39555. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39556. })(void 0, function (converse) {
  39557. "use strict";
  39558. var _converse$env = converse.env,
  39559. Strophe = _converse$env.Strophe,
  39560. _ = _converse$env._,
  39561. sizzle = _converse$env.sizzle,
  39562. u = converse.env.utils;
  39563. converse.plugins.add('converse-notification', {
  39564. dependencies: ["converse-chatboxes"],
  39565. initialize: function initialize() {
  39566. /* The initialize function gets called as soon as the plugin is
  39567. * loaded by converse.js's plugin machinery.
  39568. */
  39569. var _converse = this._converse;
  39570. var __ = _converse.__;
  39571. _converse.supports_html5_notification = "Notification" in window;
  39572. _converse.api.settings.update({
  39573. notify_all_room_messages: false,
  39574. show_desktop_notifications: true,
  39575. show_chatstate_notifications: false,
  39576. chatstate_notification_blacklist: [],
  39577. // ^ a list of JIDs to ignore concerning chat state notifications
  39578. play_sounds: true,
  39579. sounds_path: '/sounds/',
  39580. notification_icon: '/logo/conversejs-filled.svg'
  39581. });
  39582. _converse.isOnlyChatStateNotification = function (msg) {
  39583. return (// See XEP-0085 Chat State Notification
  39584. _.isNull(msg.querySelector('body')) && (_.isNull(msg.querySelector(_converse.ACTIVE)) || _.isNull(msg.querySelector(_converse.COMPOSING)) || _.isNull(msg.querySelector(_converse.INACTIVE)) || _.isNull(msg.querySelector(_converse.PAUSED)) || _.isNull(msg.querySelector(_converse.GONE)))
  39585. );
  39586. };
  39587. _converse.shouldNotifyOfGroupMessage = function (message) {
  39588. /* Is this a group message worthy of notification?
  39589. */
  39590. var notify_all = _converse.notify_all_room_messages;
  39591. var jid = message.getAttribute('from'),
  39592. resource = Strophe.getResourceFromJid(jid),
  39593. room_jid = Strophe.getBareJidFromJid(jid),
  39594. sender = resource && Strophe.unescapeNode(resource) || '';
  39595. if (sender === '' || message.querySelectorAll('delay').length > 0) {
  39596. return false;
  39597. }
  39598. var room = _converse.chatboxes.get(room_jid);
  39599. var body = message.querySelector('body');
  39600. if (_.isNull(body)) {
  39601. return false;
  39602. }
  39603. var mentioned = new RegExp("\\b".concat(room.get('nick'), "\\b")).test(body.textContent);
  39604. notify_all = notify_all === true || _.isArray(notify_all) && _.includes(notify_all, room_jid);
  39605. if (sender === room.get('nick') || !notify_all && !mentioned) {
  39606. return false;
  39607. }
  39608. return true;
  39609. };
  39610. _converse.isMessageToHiddenChat = function (message) {
  39611. if (_.includes(['mobile', 'fullscreen', 'embedded'], _converse.view_mode)) {
  39612. var jid = Strophe.getBareJidFromJid(message.getAttribute('from')),
  39613. view = _converse.chatboxviews.get(jid);
  39614. if (!_.isNil(view)) {
  39615. return view.model.get('hidden') || _converse.windowState === 'hidden' || !u.isVisible(view.el);
  39616. }
  39617. return true;
  39618. }
  39619. return _converse.windowState === 'hidden';
  39620. };
  39621. _converse.shouldNotifyOfMessage = function (message) {
  39622. var forwarded = message.querySelector('forwarded');
  39623. if (!_.isNull(forwarded)) {
  39624. return false;
  39625. } else if (message.getAttribute('type') === 'groupchat') {
  39626. return _converse.shouldNotifyOfGroupMessage(message);
  39627. } else if (u.isHeadlineMessage(_converse, message)) {
  39628. // We want to show notifications for headline messages.
  39629. return _converse.isMessageToHiddenChat(message);
  39630. }
  39631. var is_me = Strophe.getBareJidFromJid(message.getAttribute('from')) === _converse.bare_jid;
  39632. return !_converse.isOnlyChatStateNotification(message) && !is_me && _converse.isMessageToHiddenChat(message);
  39633. };
  39634. _converse.playSoundNotification = function () {
  39635. /* Plays a sound to notify that a new message was recieved.
  39636. */
  39637. // XXX Eventually this can be refactored to use Notification's sound
  39638. // feature, but no browser currently supports it.
  39639. // https://developer.mozilla.org/en-US/docs/Web/API/notification/sound
  39640. var audio;
  39641. if (_converse.play_sounds && !_.isUndefined(window.Audio)) {
  39642. audio = new Audio(_converse.sounds_path + "msg_received.ogg");
  39643. if (audio.canPlayType('audio/ogg')) {
  39644. audio.play();
  39645. } else {
  39646. audio = new Audio(_converse.sounds_path + "msg_received.mp3");
  39647. if (audio.canPlayType('audio/mp3')) {
  39648. audio.play();
  39649. }
  39650. }
  39651. }
  39652. };
  39653. _converse.areDesktopNotificationsEnabled = function () {
  39654. return _converse.supports_html5_notification && _converse.show_desktop_notifications && Notification.permission === "granted";
  39655. };
  39656. _converse.showMessageNotification = function (message) {
  39657. /* Shows an HTML5 Notification to indicate that a new chat
  39658. * message was received.
  39659. */
  39660. var title, roster_item;
  39661. var full_from_jid = message.getAttribute('from'),
  39662. from_jid = Strophe.getBareJidFromJid(full_from_jid);
  39663. if (message.getAttribute('type') === 'headline') {
  39664. if (!_.includes(from_jid, '@') || _converse.allow_non_roster_messaging) {
  39665. title = __("Notification from %1$s", from_jid);
  39666. } else {
  39667. return;
  39668. }
  39669. } else if (!_.includes(from_jid, '@')) {
  39670. // workaround for Prosody which doesn't give type "headline"
  39671. title = __("Notification from %1$s", from_jid);
  39672. } else if (message.getAttribute('type') === 'groupchat') {
  39673. title = __("%1$s says", Strophe.getResourceFromJid(full_from_jid));
  39674. } else {
  39675. if (_.isUndefined(_converse.roster)) {
  39676. _converse.log("Could not send notification, because roster is undefined", Strophe.LogLevel.ERROR);
  39677. return;
  39678. }
  39679. roster_item = _converse.roster.get(from_jid);
  39680. if (!_.isUndefined(roster_item)) {
  39681. title = __("%1$s says", roster_item.getDisplayName());
  39682. } else {
  39683. if (_converse.allow_non_roster_messaging) {
  39684. title = __("%1$s says", from_jid);
  39685. } else {
  39686. return;
  39687. }
  39688. }
  39689. } // TODO: we should suppress notifications if we cannot decrypt
  39690. // the message...
  39691. var body = sizzle("encrypted[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), message).length ? __('OMEMO Message received') : _.get(message.querySelector('body'), 'textContent');
  39692. if (!body) {
  39693. return;
  39694. }
  39695. var n = new Notification(title, {
  39696. 'body': body,
  39697. 'lang': _converse.locale,
  39698. 'icon': _converse.notification_icon
  39699. });
  39700. setTimeout(n.close.bind(n), 5000);
  39701. };
  39702. _converse.showChatStateNotification = function (contact) {
  39703. /* Creates an HTML5 Notification to inform of a change in a
  39704. * contact's chat state.
  39705. */
  39706. if (_.includes(_converse.chatstate_notification_blacklist, contact.jid)) {
  39707. // Don't notify if the user is being ignored.
  39708. return;
  39709. }
  39710. var chat_state = contact.chat_status;
  39711. var message = null;
  39712. if (chat_state === 'offline') {
  39713. message = __('has gone offline');
  39714. } else if (chat_state === 'away') {
  39715. message = __('has gone away');
  39716. } else if (chat_state === 'dnd') {
  39717. message = __('is busy');
  39718. } else if (chat_state === 'online') {
  39719. message = __('has come online');
  39720. }
  39721. if (message === null) {
  39722. return;
  39723. }
  39724. var n = new Notification(contact.getDisplayName(), {
  39725. body: message,
  39726. lang: _converse.locale,
  39727. icon: _converse.notification_icon
  39728. });
  39729. setTimeout(n.close.bind(n), 5000);
  39730. };
  39731. _converse.showContactRequestNotification = function (contact) {
  39732. var n = new Notification(contact.getDisplayName(), {
  39733. body: __('wants to be your contact'),
  39734. lang: _converse.locale,
  39735. icon: _converse.notification_icon
  39736. });
  39737. setTimeout(n.close.bind(n), 5000);
  39738. };
  39739. _converse.showFeedbackNotification = function (data) {
  39740. if (data.klass === 'error' || data.klass === 'warn') {
  39741. var n = new Notification(data.subject, {
  39742. body: data.message,
  39743. lang: _converse.locale,
  39744. icon: _converse.notification_icon
  39745. });
  39746. setTimeout(n.close.bind(n), 5000);
  39747. }
  39748. };
  39749. _converse.handleChatStateNotification = function (contact) {
  39750. /* Event handler for on('contactPresenceChanged').
  39751. * Will show an HTML5 notification to indicate that the chat
  39752. * status has changed.
  39753. */
  39754. if (_converse.areDesktopNotificationsEnabled() && _converse.show_chatstate_notifications) {
  39755. _converse.showChatStateNotification(contact);
  39756. }
  39757. };
  39758. _converse.handleMessageNotification = function (data) {
  39759. /* Event handler for the on('message') event. Will call methods
  39760. * to play sounds and show HTML5 notifications.
  39761. */
  39762. var message = data.stanza;
  39763. if (!_converse.shouldNotifyOfMessage(message)) {
  39764. return false;
  39765. }
  39766. _converse.playSoundNotification();
  39767. if (_converse.areDesktopNotificationsEnabled()) {
  39768. _converse.showMessageNotification(message);
  39769. }
  39770. };
  39771. _converse.handleContactRequestNotification = function (contact) {
  39772. if (_converse.areDesktopNotificationsEnabled(true)) {
  39773. _converse.showContactRequestNotification(contact);
  39774. }
  39775. };
  39776. _converse.handleFeedback = function (data) {
  39777. if (_converse.areDesktopNotificationsEnabled(true)) {
  39778. _converse.showFeedbackNotification(data);
  39779. }
  39780. };
  39781. _converse.requestPermission = function () {
  39782. if (_converse.supports_html5_notification && !_.includes(['denied', 'granted'], Notification.permission)) {
  39783. // Ask user to enable HTML5 notifications
  39784. Notification.requestPermission();
  39785. }
  39786. };
  39787. _converse.on('pluginsInitialized', function () {
  39788. // We only register event handlers after all plugins are
  39789. // registered, because other plugins might override some of our
  39790. // handlers.
  39791. _converse.on('contactRequest', _converse.handleContactRequestNotification);
  39792. _converse.on('contactPresenceChanged', _converse.handleChatStateNotification);
  39793. _converse.on('message', _converse.handleMessageNotification);
  39794. _converse.on('feedback', _converse.handleFeedback);
  39795. _converse.on('connected', _converse.requestPermission);
  39796. });
  39797. }
  39798. });
  39799. });
  39800. /***/ }),
  39801. /***/ "./src/converse-omemo.js":
  39802. /*!*******************************!*\
  39803. !*** ./src/converse-omemo.js ***!
  39804. \*******************************/
  39805. /*! no static exports found */
  39806. /***/ (function(module, exports, __webpack_require__) {
  39807. "use strict";
  39808. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  39809. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  39810. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  39811. // Converse.js
  39812. // http://conversejs.org
  39813. //
  39814. // Copyright (c) 2013-2018, the Converse.js developers
  39815. // Licensed under the Mozilla Public License (MPLv2)
  39816. /* global libsignal, ArrayBuffer, parseInt, crypto */
  39817. (function (root, factory) {
  39818. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/toolbar_omemo.html */ "./src/templates/toolbar_omemo.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  39819. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39820. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39821. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39822. })(void 0, function (converse, tpl_toolbar_omemo) {
  39823. var _converse$env = converse.env,
  39824. Backbone = _converse$env.Backbone,
  39825. Promise = _converse$env.Promise,
  39826. Strophe = _converse$env.Strophe,
  39827. moment = _converse$env.moment,
  39828. sizzle = _converse$env.sizzle,
  39829. $iq = _converse$env.$iq,
  39830. $msg = _converse$env.$msg,
  39831. _ = _converse$env._,
  39832. f = _converse$env.f,
  39833. b64_sha1 = _converse$env.b64_sha1;
  39834. var u = converse.env.utils;
  39835. Strophe.addNamespace('OMEMO', "eu.siacs.conversations.axolotl");
  39836. Strophe.addNamespace('OMEMO_DEVICELIST', Strophe.NS.OMEMO + ".devicelist");
  39837. Strophe.addNamespace('OMEMO_VERIFICATION', Strophe.NS.OMEMO + ".verification");
  39838. Strophe.addNamespace('OMEMO_WHITELISTED', Strophe.NS.OMEMO + ".whitelisted");
  39839. Strophe.addNamespace('OMEMO_BUNDLES', Strophe.NS.OMEMO + ".bundles");
  39840. var UNDECIDED = 0;
  39841. var TRUSTED = 1;
  39842. var UNTRUSTED = -1;
  39843. var TAG_LENGTH = 128;
  39844. var KEY_ALGO = {
  39845. 'name': "AES-GCM",
  39846. 'length': 128
  39847. };
  39848. function parseBundle(bundle_el) {
  39849. /* Given an XML element representing a user's OMEMO bundle, parse it
  39850. * and return a map.
  39851. */
  39852. var signed_prekey_public_el = bundle_el.querySelector('signedPreKeyPublic'),
  39853. signed_prekey_signature_el = bundle_el.querySelector('signedPreKeySignature'),
  39854. identity_key_el = bundle_el.querySelector('identityKey');
  39855. var prekeys = _.map(sizzle("prekeys > preKeyPublic", bundle_el), function (el) {
  39856. return {
  39857. 'id': parseInt(el.getAttribute('preKeyId'), 10),
  39858. 'key': el.textContent
  39859. };
  39860. });
  39861. return {
  39862. 'identity_key': bundle_el.querySelector('identityKey').textContent.trim(),
  39863. 'signed_prekey': {
  39864. 'id': parseInt(signed_prekey_public_el.getAttribute('signedPreKeyId'), 10),
  39865. 'public_key': signed_prekey_public_el.textContent,
  39866. 'signature': signed_prekey_signature_el.textContent
  39867. },
  39868. 'prekeys': prekeys
  39869. };
  39870. }
  39871. converse.plugins.add('converse-omemo', {
  39872. enabled: function enabled(_converse) {
  39873. return !_.isNil(window.libsignal) && !f.includes('converse-omemo', _converse.blacklisted_plugins);
  39874. },
  39875. dependencies: ["converse-chatview"],
  39876. overrides: {
  39877. ProfileModal: {
  39878. events: {
  39879. 'change input.select-all': 'selectAll',
  39880. 'submit .fingerprint-removal': 'removeSelectedFingerprints'
  39881. },
  39882. initialize: function initialize() {
  39883. var _converse = this.__super__._converse;
  39884. this.debouncedRender = _.debounce(this.render, 50);
  39885. this.devicelist = _converse.devicelists.get(_converse.bare_jid);
  39886. this.devicelist.devices.on('change:bundle', this.debouncedRender, this);
  39887. this.devicelist.devices.on('reset', this.debouncedRender, this);
  39888. this.devicelist.devices.on('remove', this.debouncedRender, this);
  39889. this.devicelist.devices.on('add', this.debouncedRender, this);
  39890. return this.__super__.initialize.apply(this, arguments);
  39891. },
  39892. beforeRender: function beforeRender() {
  39893. var _converse = this.__super__._converse,
  39894. device_id = _converse.omemo_store.get('device_id');
  39895. this.current_device = this.devicelist.devices.get(device_id);
  39896. this.other_devices = this.devicelist.devices.filter(function (d) {
  39897. return d.get('id') !== device_id;
  39898. });
  39899. if (this.__super__.beforeRender) {
  39900. return this.__super__.beforeRender.apply(this, arguments);
  39901. }
  39902. },
  39903. selectAll: function selectAll(ev) {
  39904. var sibling = u.ancestor(ev.target, 'li');
  39905. while (sibling) {
  39906. sibling.querySelector('input[type="checkbox"]').checked = ev.target.checked;
  39907. sibling = sibling.nextElementSibling;
  39908. }
  39909. },
  39910. removeSelectedFingerprints: function removeSelectedFingerprints(ev) {
  39911. var _this = this;
  39912. ev.preventDefault();
  39913. ev.stopPropagation();
  39914. ev.target.querySelector('.select-all').checked = false;
  39915. var checkboxes = ev.target.querySelectorAll('.fingerprint-removal-item input[type="checkbox"]:checked'),
  39916. device_ids = _.map(checkboxes, 'value');
  39917. this.devicelist.removeOwnDevices(device_ids).then(this.modal.hide).catch(function (err) {
  39918. var _converse = _this.__super__._converse,
  39919. __ = _converse.__;
  39920. _converse.log(err, Strophe.LogLevel.ERROR);
  39921. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__('Sorry, an error occurred while trying to remove the devices.')]);
  39922. });
  39923. }
  39924. },
  39925. UserDetailsModal: {
  39926. events: {
  39927. 'click .fingerprint-trust .btn input': 'toggleDeviceTrust'
  39928. },
  39929. initialize: function initialize() {
  39930. var _converse = this.__super__._converse;
  39931. var jid = this.model.get('jid');
  39932. this.devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  39933. 'jid': jid
  39934. });
  39935. this.devicelist.devices.on('change:bundle', this.render, this);
  39936. this.devicelist.devices.on('change:trusted', this.render, this);
  39937. this.devicelist.devices.on('remove', this.render, this);
  39938. this.devicelist.devices.on('add', this.render, this);
  39939. this.devicelist.devices.on('reset', this.render, this);
  39940. return this.__super__.initialize.apply(this, arguments);
  39941. },
  39942. toggleDeviceTrust: function toggleDeviceTrust(ev) {
  39943. var radio = ev.target;
  39944. var device = this.devicelist.devices.get(radio.getAttribute('name'));
  39945. device.save('trusted', parseInt(radio.value, 10));
  39946. }
  39947. },
  39948. ChatBox: {
  39949. getBundlesAndBuildSessions: function getBundlesAndBuildSessions() {
  39950. var _this2 = this;
  39951. var _converse = this.__super__._converse;
  39952. var devices;
  39953. return _converse.getDevicesForContact(this.get('jid')).then(function (their_devices) {
  39954. var device_id = _converse.omemo_store.get('device_id'),
  39955. devicelist = _converse.devicelists.get(_converse.bare_jid),
  39956. own_devices = devicelist.devices.filter(function (device) {
  39957. return device.get('id') !== device_id;
  39958. });
  39959. devices = _.concat(own_devices, their_devices.models);
  39960. return Promise.all(devices.map(function (device) {
  39961. return device.getBundle();
  39962. }));
  39963. }).then(function () {
  39964. return _this2.buildSessions(devices);
  39965. });
  39966. },
  39967. buildSession: function buildSession(device) {
  39968. var _converse = this.__super__._converse,
  39969. address = new libsignal.SignalProtocolAddress(device.get('jid'), device.get('id')),
  39970. sessionBuilder = new libsignal.SessionBuilder(_converse.omemo_store, address),
  39971. prekey = device.getRandomPreKey();
  39972. return device.getBundle().then(function (bundle) {
  39973. return sessionBuilder.processPreKey({
  39974. 'registrationId': parseInt(device.get('id'), 10),
  39975. 'identityKey': u.base64ToArrayBuffer(bundle.identity_key),
  39976. 'signedPreKey': {
  39977. 'keyId': bundle.signed_prekey.id,
  39978. // <Number>
  39979. 'publicKey': u.base64ToArrayBuffer(bundle.signed_prekey.public_key),
  39980. 'signature': u.base64ToArrayBuffer(bundle.signed_prekey.signature)
  39981. },
  39982. 'preKey': {
  39983. 'keyId': prekey.id,
  39984. // <Number>
  39985. 'publicKey': u.base64ToArrayBuffer(prekey.key)
  39986. }
  39987. });
  39988. });
  39989. },
  39990. getSession: function getSession(device) {
  39991. var _this3 = this;
  39992. var _converse = this.__super__._converse,
  39993. address = new libsignal.SignalProtocolAddress(device.get('jid'), device.get('id'));
  39994. return _converse.omemo_store.loadSession(address.toString()).then(function (session) {
  39995. if (session) {
  39996. return Promise.resolve();
  39997. } else {
  39998. return _this3.buildSession(device);
  39999. }
  40000. });
  40001. },
  40002. encryptMessage: async function encryptMessage(plaintext) {
  40003. // The client MUST use fresh, randomly generated key/IV pairs
  40004. // with AES-128 in Galois/Counter Mode (GCM).
  40005. // For GCM a 12 byte IV is strongly suggested as other IV lengths
  40006. // will require additional calculations. In principle any IV size
  40007. // can be used as long as the IV doesn't ever repeat. NIST however
  40008. // suggests that only an IV size of 12 bytes needs to be supported
  40009. // by implementations.
  40010. //
  40011. // https://crypto.stackexchange.com/questions/26783/ciphertext-and-tag-size-and-iv-transmission-with-aes-in-gcm-mode
  40012. var iv = crypto.getRandomValues(new window.Uint8Array(12)),
  40013. key = await crypto.subtle.generateKey(KEY_ALGO, true, ["encrypt", "decrypt"]),
  40014. algo = {
  40015. 'name': 'AES-GCM',
  40016. 'iv': iv,
  40017. 'tagLength': TAG_LENGTH
  40018. },
  40019. encrypted = await crypto.subtle.encrypt(algo, key, u.stringToArrayBuffer(plaintext)),
  40020. length = encrypted.byteLength - (128 + 7 >> 3),
  40021. ciphertext = encrypted.slice(0, length),
  40022. tag = encrypted.slice(length),
  40023. exported_key = await crypto.subtle.exportKey("raw", key);
  40024. return Promise.resolve({
  40025. 'key': exported_key,
  40026. 'tag': tag,
  40027. 'key_and_tag': u.appendArrayBuffer(exported_key, tag),
  40028. 'payload': u.arrayBufferToBase64(ciphertext),
  40029. 'iv': u.arrayBufferToBase64(iv)
  40030. });
  40031. },
  40032. decryptMessage: async function decryptMessage(obj) {
  40033. var key_obj = await crypto.subtle.importKey('raw', obj.key, KEY_ALGO, true, ['encrypt', 'decrypt']),
  40034. cipher = u.appendArrayBuffer(u.base64ToArrayBuffer(obj.payload), obj.tag),
  40035. algo = {
  40036. 'name': "AES-GCM",
  40037. 'iv': u.base64ToArrayBuffer(obj.iv),
  40038. 'tagLength': TAG_LENGTH
  40039. };
  40040. return u.arrayBufferToString((await crypto.subtle.decrypt(algo, key_obj, cipher)));
  40041. },
  40042. reportDecryptionError: function reportDecryptionError(e) {
  40043. var _converse = this.__super__._converse;
  40044. if (_converse.debug) {
  40045. var __ = _converse.__;
  40046. this.messages.create({
  40047. 'message': __("Sorry, could not decrypt a received OMEMO message due to an error.") + " ".concat(e.name, " ").concat(e.message),
  40048. 'type': 'error'
  40049. });
  40050. }
  40051. _converse.log("".concat(e.name, " ").concat(e.message), Strophe.LogLevel.ERROR);
  40052. },
  40053. decrypt: function decrypt(attrs) {
  40054. var _this4 = this;
  40055. var _converse = this.__super__._converse,
  40056. session_cipher = this.getSessionCipher(attrs.from, parseInt(attrs.encrypted.device_id, 10)); // https://xmpp.org/extensions/xep-0384.html#usecases-receiving
  40057. if (attrs.encrypted.prekey === 'true') {
  40058. var plaintext;
  40059. return session_cipher.decryptPreKeyWhisperMessage(u.base64ToArrayBuffer(attrs.encrypted.key), 'binary').then(function (key_and_tag) {
  40060. if (attrs.encrypted.payload) {
  40061. var key = key_and_tag.slice(0, 16),
  40062. tag = key_and_tag.slice(16);
  40063. return _this4.decryptMessage(_.extend(attrs.encrypted, {
  40064. 'key': key,
  40065. 'tag': tag
  40066. }));
  40067. }
  40068. return Promise.resolve();
  40069. }).then(function (pt) {
  40070. plaintext = pt;
  40071. return _converse.omemo_store.generateMissingPreKeys();
  40072. }).then(function () {
  40073. return _converse.omemo_store.publishBundle();
  40074. }).then(function () {
  40075. if (plaintext) {
  40076. return _.extend(attrs, {
  40077. 'plaintext': plaintext
  40078. });
  40079. } else {
  40080. return _.extend(attrs, {
  40081. 'is_only_key': true
  40082. });
  40083. }
  40084. }).catch(function (e) {
  40085. _this4.reportDecryptionError(e);
  40086. return attrs;
  40087. });
  40088. } else {
  40089. return session_cipher.decryptWhisperMessage(u.base64ToArrayBuffer(attrs.encrypted.key), 'binary').then(function (key_and_tag) {
  40090. var key = key_and_tag.slice(0, 16),
  40091. tag = key_and_tag.slice(16);
  40092. return _this4.decryptMessage(_.extend(attrs.encrypted, {
  40093. 'key': key,
  40094. 'tag': tag
  40095. }));
  40096. }).then(function (plaintext) {
  40097. return _.extend(attrs, {
  40098. 'plaintext': plaintext
  40099. });
  40100. }).catch(function (e) {
  40101. _this4.reportDecryptionError(e);
  40102. return attrs;
  40103. });
  40104. }
  40105. },
  40106. getEncryptionAttributesfromStanza: function getEncryptionAttributesfromStanza(stanza, original_stanza, attrs) {
  40107. var _converse = this.__super__._converse,
  40108. encrypted = sizzle("encrypted[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), original_stanza).pop(),
  40109. header = encrypted.querySelector('header'),
  40110. key = sizzle("key[rid=\"".concat(_converse.omemo_store.get('device_id'), "\"]"), encrypted).pop();
  40111. if (key) {
  40112. attrs['is_encrypted'] = true;
  40113. attrs['encrypted'] = {
  40114. 'device_id': header.getAttribute('sid'),
  40115. 'iv': header.querySelector('iv').textContent,
  40116. 'key': key.textContent,
  40117. 'payload': _.get(encrypted.querySelector('payload'), 'textContent', null),
  40118. 'prekey': key.getAttribute('prekey')
  40119. };
  40120. return this.decrypt(attrs);
  40121. } else {
  40122. return Promise.resolve(attrs);
  40123. }
  40124. },
  40125. getMessageAttributesFromStanza: function getMessageAttributesFromStanza(stanza, original_stanza) {
  40126. var encrypted = sizzle("encrypted[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), original_stanza).pop();
  40127. var attrs = this.__super__.getMessageAttributesFromStanza.apply(this, arguments);
  40128. if (!encrypted) {
  40129. return attrs;
  40130. } else {
  40131. return this.getEncryptionAttributesfromStanza(stanza, original_stanza, attrs);
  40132. }
  40133. },
  40134. buildSessions: function buildSessions(devices) {
  40135. var _this5 = this;
  40136. return Promise.all(devices.map(function (device) {
  40137. return _this5.getSession(device);
  40138. })).then(function () {
  40139. return devices;
  40140. });
  40141. },
  40142. getSessionCipher: function getSessionCipher(jid, id) {
  40143. var _converse = this.__super__._converse,
  40144. address = new libsignal.SignalProtocolAddress(jid, id);
  40145. this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
  40146. return this.session_cipher;
  40147. },
  40148. encryptKey: function encryptKey(plaintext, device) {
  40149. return this.getSessionCipher(device.get('jid'), device.get('id')).encrypt(plaintext).then(function (payload) {
  40150. return {
  40151. 'payload': payload,
  40152. 'device': device
  40153. };
  40154. });
  40155. },
  40156. addKeysToMessageStanza: function addKeysToMessageStanza(stanza, dicts, iv) {
  40157. for (var i in dicts) {
  40158. if (Object.prototype.hasOwnProperty.call(dicts, i)) {
  40159. var payload = dicts[i].payload,
  40160. device = dicts[i].device,
  40161. prekey = 3 == parseInt(payload.type, 10);
  40162. stanza.c('key', {
  40163. 'rid': device.get('id')
  40164. }).t(btoa(payload.body));
  40165. if (prekey) {
  40166. stanza.attrs({
  40167. 'prekey': prekey
  40168. });
  40169. }
  40170. stanza.up();
  40171. if (i == dicts.length - 1) {
  40172. stanza.c('iv').t(iv).up().up();
  40173. }
  40174. }
  40175. }
  40176. return Promise.resolve(stanza);
  40177. },
  40178. createOMEMOMessageStanza: function createOMEMOMessageStanza(message, devices) {
  40179. var _this6 = this;
  40180. var _converse = this.__super__._converse,
  40181. __ = _converse.__;
  40182. var body = __("This is an OMEMO encrypted message which your client doesn’t seem to support. " + "Find more information on https://conversations.im/omemo");
  40183. if (!message.get('message')) {
  40184. throw new Error("No message body to encrypt!");
  40185. }
  40186. var stanza = $msg({
  40187. 'from': _converse.connection.jid,
  40188. 'to': this.get('jid'),
  40189. 'type': this.get('message_type'),
  40190. 'id': message.get('msgid')
  40191. }).c('body').t(body).up() // An encrypted header is added to the message for
  40192. // each device that is supposed to receive it.
  40193. // These headers simply contain the key that the
  40194. // payload message is encrypted with,
  40195. // and they are separately encrypted using the
  40196. // session corresponding to the counterpart device.
  40197. .c('encrypted', {
  40198. 'xmlns': Strophe.NS.OMEMO
  40199. }).c('header', {
  40200. 'sid': _converse.omemo_store.get('device_id')
  40201. });
  40202. return this.encryptMessage(message.get('message')).then(function (obj) {
  40203. // The 16 bytes key and the GCM authentication tag (The tag
  40204. // SHOULD have at least 128 bit) are concatenated and for each
  40205. // intended recipient device, i.e. both own devices as well as
  40206. // devices associated with the contact, the result of this
  40207. // concatenation is encrypted using the corresponding
  40208. // long-standing SignalProtocol session.
  40209. var promises = devices.filter(function (device) {
  40210. return device.get('trusted') != UNTRUSTED;
  40211. }).map(function (device) {
  40212. return _this6.encryptKey(obj.key_and_tag, device);
  40213. });
  40214. return Promise.all(promises).then(function (dicts) {
  40215. return _this6.addKeysToMessageStanza(stanza, dicts, obj.iv);
  40216. }).then(function (stanza) {
  40217. stanza.c('payload').t(obj.payload).up().up();
  40218. stanza.c('store', {
  40219. 'xmlns': Strophe.NS.HINTS
  40220. });
  40221. return stanza;
  40222. });
  40223. });
  40224. },
  40225. sendMessage: function sendMessage(attrs) {
  40226. var _this7 = this;
  40227. var _converse = this.__super__._converse,
  40228. __ = _converse.__;
  40229. if (this.get('omemo_active') && attrs.message) {
  40230. attrs['is_encrypted'] = true;
  40231. attrs['plaintext'] = attrs.message;
  40232. var message = this.messages.create(attrs);
  40233. this.getBundlesAndBuildSessions().then(function (devices) {
  40234. return _this7.createOMEMOMessageStanza(message, devices);
  40235. }).then(function (stanza) {
  40236. return _this7.sendMessageStanza(stanza);
  40237. }).catch(function (e) {
  40238. _this7.messages.create({
  40239. 'message': __("Sorry, could not send the message due to an error.") + " ".concat(e.message),
  40240. 'type': 'error'
  40241. });
  40242. _converse.log(e, Strophe.LogLevel.ERROR);
  40243. });
  40244. } else {
  40245. return this.__super__.sendMessage.apply(this, arguments);
  40246. }
  40247. }
  40248. },
  40249. ChatBoxView: {
  40250. events: {
  40251. 'click .toggle-omemo': 'toggleOMEMO'
  40252. },
  40253. showMessage: function showMessage(message) {
  40254. // We don't show a message if it's only keying material
  40255. if (!message.get('is_only_key')) {
  40256. return this.__super__.showMessage.apply(this, arguments);
  40257. }
  40258. },
  40259. renderOMEMOToolbarButton: function renderOMEMOToolbarButton() {
  40260. var _this8 = this;
  40261. var _converse = this.__super__._converse,
  40262. __ = _converse.__;
  40263. _converse.contactHasOMEMOSupport(this.model.get('jid')).then(function (support) {
  40264. if (support) {
  40265. var icon = _this8.el.querySelector('.toggle-omemo'),
  40266. html = tpl_toolbar_omemo(_.extend(_this8.model.toJSON(), {
  40267. '__': __
  40268. }));
  40269. if (icon) {
  40270. icon.outerHTML = html;
  40271. } else {
  40272. _this8.el.querySelector('.chat-toolbar').insertAdjacentHTML('beforeend', html);
  40273. }
  40274. }
  40275. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40276. },
  40277. toggleOMEMO: function toggleOMEMO(ev) {
  40278. ev.preventDefault();
  40279. this.model.save({
  40280. 'omemo_active': !this.model.get('omemo_active')
  40281. });
  40282. this.renderOMEMOToolbarButton();
  40283. }
  40284. }
  40285. },
  40286. initialize: function initialize() {
  40287. /* The initialize function gets called as soon as the plugin is
  40288. * loaded by Converse.js's plugin machinery.
  40289. */
  40290. var _converse = this._converse;
  40291. _converse.api.promises.add(['OMEMOInitialized']);
  40292. _converse.NUM_PREKEYS = 100; // Set here so that tests can override
  40293. function generateFingerprint(device) {
  40294. if (_.get(device.get('bundle'), 'fingerprint')) {
  40295. return;
  40296. }
  40297. return device.getBundle().then(function (bundle) {
  40298. bundle['fingerprint'] = u.arrayBufferToHex(u.base64ToArrayBuffer(bundle['identity_key']));
  40299. device.save('bundle', bundle);
  40300. device.trigger('change:bundle'); // Doesn't get triggered automatically due to pass-by-reference
  40301. });
  40302. }
  40303. _converse.generateFingerprints = function (jid) {
  40304. return _converse.getDevicesForContact(jid).then(function (devices) {
  40305. return Promise.all(devices.map(function (d) {
  40306. return generateFingerprint(d);
  40307. }));
  40308. });
  40309. };
  40310. _converse.getDeviceForContact = function (jid, device_id) {
  40311. return _converse.getDevicesForContact(jid).then(function (devices) {
  40312. return devices.get(device_id);
  40313. });
  40314. };
  40315. _converse.getDevicesForContact = function (jid) {
  40316. var devicelist;
  40317. return _converse.api.waitUntil('OMEMOInitialized').then(function () {
  40318. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  40319. 'jid': jid
  40320. });
  40321. return devicelist.fetchDevices();
  40322. }).then(function () {
  40323. return devicelist.devices;
  40324. });
  40325. };
  40326. _converse.contactHasOMEMOSupport = function (jid) {
  40327. /* Checks whether the contact advertises any OMEMO-compatible devices. */
  40328. return new Promise(function (resolve, reject) {
  40329. _converse.getDevicesForContact(jid).then(function (devices) {
  40330. return resolve(devices.length > 0);
  40331. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40332. });
  40333. };
  40334. function generateDeviceID() {
  40335. /* Generates a device ID, making sure that it's unique */
  40336. var existing_ids = _converse.devicelists.get(_converse.bare_jid).devices.pluck('id');
  40337. var device_id = libsignal.KeyHelper.generateRegistrationId();
  40338. var i = 0;
  40339. while (_.includes(existing_ids, device_id)) {
  40340. device_id = libsignal.KeyHelper.generateRegistrationId();
  40341. i++;
  40342. if (i == 10) {
  40343. throw new Error("Unable to generate a unique device ID");
  40344. }
  40345. }
  40346. return device_id.toString();
  40347. }
  40348. _converse.OMEMOStore = Backbone.Model.extend({
  40349. Direction: {
  40350. SENDING: 1,
  40351. RECEIVING: 2
  40352. },
  40353. getIdentityKeyPair: function getIdentityKeyPair() {
  40354. var keypair = this.get('identity_keypair');
  40355. return Promise.resolve({
  40356. 'privKey': u.base64ToArrayBuffer(keypair.privKey),
  40357. 'pubKey': u.base64ToArrayBuffer(keypair.pubKey)
  40358. });
  40359. },
  40360. getLocalRegistrationId: function getLocalRegistrationId() {
  40361. return Promise.resolve(parseInt(this.get('device_id'), 10));
  40362. },
  40363. isTrustedIdentity: function isTrustedIdentity(identifier, identity_key, direction) {
  40364. if (_.isNil(identifier)) {
  40365. throw new Error("Can't check identity key for invalid key");
  40366. }
  40367. if (!_instanceof(identity_key, ArrayBuffer)) {
  40368. throw new Error("Expected identity_key to be an ArrayBuffer");
  40369. }
  40370. var trusted = this.get('identity_key' + identifier);
  40371. if (trusted === undefined) {
  40372. return Promise.resolve(true);
  40373. }
  40374. return Promise.resolve(u.arrayBufferToBase64(identity_key) === trusted);
  40375. },
  40376. loadIdentityKey: function loadIdentityKey(identifier) {
  40377. if (_.isNil(identifier)) {
  40378. throw new Error("Can't load identity_key for invalid identifier");
  40379. }
  40380. return Promise.resolve(u.base64ToArrayBuffer(this.get('identity_key' + identifier)));
  40381. },
  40382. saveIdentity: function saveIdentity(identifier, identity_key) {
  40383. if (_.isNil(identifier)) {
  40384. throw new Error("Can't save identity_key for invalid identifier");
  40385. }
  40386. var address = new libsignal.SignalProtocolAddress.fromString(identifier),
  40387. existing = this.get('identity_key' + address.getName());
  40388. var b64_idkey = u.arrayBufferToBase64(identity_key);
  40389. this.save('identity_key' + address.getName(), b64_idkey);
  40390. if (existing && b64_idkey !== existing) {
  40391. return Promise.resolve(true);
  40392. } else {
  40393. return Promise.resolve(false);
  40394. }
  40395. },
  40396. getPreKeys: function getPreKeys() {
  40397. return this.get('prekeys') || {};
  40398. },
  40399. loadPreKey: function loadPreKey(key_id) {
  40400. var res = this.getPreKeys()[key_id];
  40401. if (res) {
  40402. return Promise.resolve({
  40403. 'privKey': u.base64ToArrayBuffer(res.privKey),
  40404. 'pubKey': u.base64ToArrayBuffer(res.pubKey)
  40405. });
  40406. }
  40407. return Promise.resolve();
  40408. },
  40409. storePreKey: function storePreKey(key_id, key_pair) {
  40410. var prekey = {};
  40411. prekey[key_id] = {
  40412. 'pubKey': u.arrayBufferToBase64(key_pair.pubKey),
  40413. 'privKey': u.arrayBufferToBase64(key_pair.privKey)
  40414. };
  40415. this.save('prekeys', _.extend(this.getPreKeys(), prekey));
  40416. return Promise.resolve();
  40417. },
  40418. removePreKey: function removePreKey(key_id) {
  40419. this.save('prekeys', _.omit(this.getPreKeys(), key_id));
  40420. return Promise.resolve();
  40421. },
  40422. loadSignedPreKey: function loadSignedPreKey(keyId) {
  40423. var res = this.get('signed_prekey');
  40424. if (res) {
  40425. return Promise.resolve({
  40426. 'privKey': u.base64ToArrayBuffer(res.privKey),
  40427. 'pubKey': u.base64ToArrayBuffer(res.pubKey)
  40428. });
  40429. }
  40430. return Promise.resolve();
  40431. },
  40432. storeSignedPreKey: function storeSignedPreKey(spk) {
  40433. if (_typeof(spk) !== "object") {
  40434. // XXX: We've changed the signature of this method from the
  40435. // example given in InMemorySignalProtocolStore.
  40436. // Should be fine because the libsignal code doesn't
  40437. // actually call this method.
  40438. throw new Error("storeSignedPreKey: expected an object");
  40439. }
  40440. this.save('signed_prekey', {
  40441. 'id': spk.keyId,
  40442. 'privKey': u.arrayBufferToBase64(spk.keyPair.privKey),
  40443. 'pubKey': u.arrayBufferToBase64(spk.keyPair.pubKey),
  40444. // XXX: The InMemorySignalProtocolStore does not pass
  40445. // in or store the signature, but we need it when we
  40446. // publish out bundle and this method isn't called from
  40447. // within libsignal code, so we modify it to also store
  40448. // the signature.
  40449. 'signature': u.arrayBufferToBase64(spk.signature)
  40450. });
  40451. return Promise.resolve();
  40452. },
  40453. removeSignedPreKey: function removeSignedPreKey(key_id) {
  40454. if (this.get('signed_prekey')['id'] === key_id) {
  40455. this.unset('signed_prekey');
  40456. this.save();
  40457. }
  40458. return Promise.resolve();
  40459. },
  40460. loadSession: function loadSession(identifier) {
  40461. return Promise.resolve(this.get('session' + identifier));
  40462. },
  40463. storeSession: function storeSession(identifier, record) {
  40464. return Promise.resolve(this.save('session' + identifier, record));
  40465. },
  40466. removeSession: function removeSession(identifier) {
  40467. return Promise.resolve(this.unset('session' + identifier));
  40468. },
  40469. removeAllSessions: function removeAllSessions(identifier) {
  40470. var keys = _.filter(_.keys(this.attributes), function (key) {
  40471. if (key.startsWith('session' + identifier)) {
  40472. return key;
  40473. }
  40474. });
  40475. var attrs = {};
  40476. _.forEach(keys, function (key) {
  40477. attrs[key] = undefined;
  40478. });
  40479. this.save(attrs);
  40480. return Promise.resolve();
  40481. },
  40482. publishBundle: function publishBundle() {
  40483. var signed_prekey = this.get('signed_prekey');
  40484. var stanza = $iq({
  40485. 'from': _converse.bare_jid,
  40486. 'type': 'set'
  40487. }).c('pubsub', {
  40488. 'xmlns': Strophe.NS.PUBSUB
  40489. }).c('publish', {
  40490. 'node': "".concat(Strophe.NS.OMEMO_BUNDLES, ":").concat(this.get('device_id'))
  40491. }).c('item').c('bundle', {
  40492. 'xmlns': Strophe.NS.OMEMO
  40493. }).c('signedPreKeyPublic', {
  40494. 'signedPreKeyId': signed_prekey.id
  40495. }).t(signed_prekey.pubKey).up().c('signedPreKeySignature').t(signed_prekey.signature).up().c('identityKey').t(this.get('identity_keypair').pubKey).up().c('prekeys');
  40496. _.forEach(this.get('prekeys'), function (prekey, id) {
  40497. return stanza.c('preKeyPublic', {
  40498. 'preKeyId': id
  40499. }).t(prekey.pubKey).up();
  40500. });
  40501. return _converse.api.sendIQ(stanza);
  40502. },
  40503. generateMissingPreKeys: function generateMissingPreKeys() {
  40504. var _this9 = this;
  40505. var current_keys = this.getPreKeys(),
  40506. missing_keys = _.difference(_.invokeMap(_.range(0, _converse.NUM_PREKEYS), Number.prototype.toString), _.keys(current_keys));
  40507. if (missing_keys.length < 1) {
  40508. _converse.log("No missing prekeys to generate for our own device", Strophe.LogLevel.WARN);
  40509. return Promise.resolve();
  40510. }
  40511. return Promise.all(_.map(missing_keys, function (id) {
  40512. return libsignal.KeyHelper.generatePreKey(parseInt(id, 10));
  40513. })).then(function (keys) {
  40514. _.forEach(keys, function (k) {
  40515. return _this9.storePreKey(k.keyId, k.keyPair);
  40516. });
  40517. var marshalled_keys = _.map(_this9.getPreKeys(), function (k) {
  40518. return {
  40519. 'id': k.keyId,
  40520. 'key': u.arrayBufferToBase64(k.pubKey)
  40521. };
  40522. }),
  40523. devicelist = _converse.devicelists.get(_converse.bare_jid),
  40524. device = devicelist.devices.get(_this9.get('device_id'));
  40525. return device.getBundle().then(function (bundle) {
  40526. return device.save('bundle', _.extend(bundle, {
  40527. 'prekeys': marshalled_keys
  40528. }));
  40529. });
  40530. });
  40531. },
  40532. generateBundle: function generateBundle() {
  40533. var _this10 = this;
  40534. /* The first thing that needs to happen if a client wants to
  40535. * start using OMEMO is they need to generate an IdentityKey
  40536. * and a Device ID. The IdentityKey is a Curve25519 [6]
  40537. * public/private Key pair. The Device ID is a randomly
  40538. * generated integer between 1 and 2^31 - 1.
  40539. */
  40540. var bundle = {};
  40541. return libsignal.KeyHelper.generateIdentityKeyPair().then(function (identity_keypair) {
  40542. var identity_key = u.arrayBufferToBase64(identity_keypair.pubKey),
  40543. device_id = generateDeviceID();
  40544. bundle['identity_key'] = identity_key;
  40545. bundle['device_id'] = device_id;
  40546. _this10.save({
  40547. 'device_id': device_id,
  40548. 'identity_keypair': {
  40549. 'privKey': u.arrayBufferToBase64(identity_keypair.privKey),
  40550. 'pubKey': identity_key
  40551. },
  40552. 'identity_key': identity_key
  40553. });
  40554. return libsignal.KeyHelper.generateSignedPreKey(identity_keypair, 0);
  40555. }).then(function (signed_prekey) {
  40556. _converse.omemo_store.storeSignedPreKey(signed_prekey);
  40557. bundle['signed_prekey'] = {
  40558. 'id': signed_prekey.keyId,
  40559. 'public_key': u.arrayBufferToBase64(signed_prekey.keyPair.privKey),
  40560. 'signature': u.arrayBufferToBase64(signed_prekey.signature)
  40561. };
  40562. return Promise.all(_.map(_.range(0, _converse.NUM_PREKEYS), function (id) {
  40563. return libsignal.KeyHelper.generatePreKey(id);
  40564. }));
  40565. }).then(function (keys) {
  40566. _.forEach(keys, function (k) {
  40567. return _converse.omemo_store.storePreKey(k.keyId, k.keyPair);
  40568. });
  40569. var devicelist = _converse.devicelists.get(_converse.bare_jid),
  40570. device = devicelist.devices.create({
  40571. 'id': bundle.device_id,
  40572. 'jid': _converse.bare_jid
  40573. }),
  40574. marshalled_keys = _.map(keys, function (k) {
  40575. return {
  40576. 'id': k.keyId,
  40577. 'key': u.arrayBufferToBase64(k.keyPair.pubKey)
  40578. };
  40579. });
  40580. bundle['prekeys'] = marshalled_keys;
  40581. device.save('bundle', bundle);
  40582. });
  40583. },
  40584. fetchSession: function fetchSession() {
  40585. var _this11 = this;
  40586. if (_.isUndefined(this._setup_promise)) {
  40587. this._setup_promise = new Promise(function (resolve, reject) {
  40588. _this11.fetch({
  40589. 'success': function success() {
  40590. if (!_converse.omemo_store.get('device_id')) {
  40591. _this11.generateBundle().then(resolve).catch(resolve);
  40592. } else {
  40593. resolve();
  40594. }
  40595. },
  40596. 'error': function error() {
  40597. _this11.generateBundle().then(resolve).catch(resolve);
  40598. }
  40599. });
  40600. });
  40601. }
  40602. return this._setup_promise;
  40603. }
  40604. });
  40605. _converse.Device = Backbone.Model.extend({
  40606. defaults: {
  40607. 'trusted': UNDECIDED
  40608. },
  40609. getRandomPreKey: function getRandomPreKey() {
  40610. // XXX: assumes that the bundle has already been fetched
  40611. var bundle = this.get('bundle');
  40612. return bundle.prekeys[u.getRandomInt(bundle.prekeys.length)];
  40613. },
  40614. fetchBundleFromServer: function fetchBundleFromServer() {
  40615. var _this12 = this;
  40616. var stanza = $iq({
  40617. 'type': 'get',
  40618. 'from': _converse.bare_jid,
  40619. 'to': this.get('jid')
  40620. }).c('pubsub', {
  40621. 'xmlns': Strophe.NS.PUBSUB
  40622. }).c('items', {
  40623. 'node': "".concat(Strophe.NS.OMEMO_BUNDLES, ":").concat(this.get('id'))
  40624. });
  40625. return _converse.api.sendIQ(stanza).then(function (iq) {
  40626. var publish_el = sizzle("items[node=\"".concat(Strophe.NS.OMEMO_BUNDLES, ":").concat(_this12.get('id'), "\"]"), iq).pop(),
  40627. bundle_el = sizzle("bundle[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), publish_el).pop(),
  40628. bundle = parseBundle(bundle_el);
  40629. _this12.save('bundle', bundle);
  40630. return bundle;
  40631. }).catch(function (iq) {
  40632. _converse.log(iq.outerHTML, Strophe.LogLevel.ERROR);
  40633. });
  40634. },
  40635. getBundle: function getBundle() {
  40636. /* Fetch and save the bundle information associated with
  40637. * this device, if the information is not at hand already.
  40638. */
  40639. if (this.get('bundle')) {
  40640. return Promise.resolve(this.get('bundle'), this);
  40641. } else {
  40642. return this.fetchBundleFromServer();
  40643. }
  40644. }
  40645. });
  40646. _converse.Devices = Backbone.Collection.extend({
  40647. model: _converse.Device
  40648. });
  40649. _converse.DeviceList = Backbone.Model.extend({
  40650. idAttribute: 'jid',
  40651. initialize: function initialize() {
  40652. this.devices = new _converse.Devices();
  40653. var id = "converse.devicelist-".concat(_converse.bare_jid, "-").concat(this.get('jid'));
  40654. this.devices.browserStorage = new Backbone.BrowserStorage.session(id);
  40655. this.fetchDevices();
  40656. },
  40657. fetchDevices: function fetchDevices() {
  40658. var _this13 = this;
  40659. if (_.isUndefined(this._devices_promise)) {
  40660. this._devices_promise = new Promise(function (resolve, reject) {
  40661. _this13.devices.fetch({
  40662. 'success': function success(collection) {
  40663. if (collection.length === 0) {
  40664. _this13.fetchDevicesFromServer().then(function (ids) {
  40665. return _this13.publishCurrentDevice(ids);
  40666. }).then(resolve).catch(resolve);
  40667. } else {
  40668. resolve();
  40669. }
  40670. }
  40671. });
  40672. });
  40673. }
  40674. return this._devices_promise;
  40675. },
  40676. publishCurrentDevice: function publishCurrentDevice(device_ids) {
  40677. var _this14 = this;
  40678. if (this.get('jid') !== _converse.bare_jid) {
  40679. // We only publish for ourselves.
  40680. return Promise.resolve();
  40681. }
  40682. return restoreOMEMOSession().then(function () {
  40683. var device_id = _converse.omemo_store.get('device_id'),
  40684. own_device = _this14.devices.findWhere({
  40685. 'id': device_id
  40686. });
  40687. if (!_.includes(device_ids, device_id)) {
  40688. return _this14.publishDevices();
  40689. }
  40690. });
  40691. },
  40692. fetchDevicesFromServer: function fetchDevicesFromServer() {
  40693. var _this15 = this;
  40694. var stanza = $iq({
  40695. 'type': 'get',
  40696. 'from': _converse.bare_jid,
  40697. 'to': this.get('jid')
  40698. }).c('pubsub', {
  40699. 'xmlns': Strophe.NS.PUBSUB
  40700. }).c('items', {
  40701. 'node': Strophe.NS.OMEMO_DEVICELIST
  40702. });
  40703. return _converse.api.sendIQ(stanza).then(function (iq) {
  40704. var device_ids = _.map(sizzle("list[xmlns=\"".concat(Strophe.NS.OMEMO, "\"] device"), iq), function (dev) {
  40705. return dev.getAttribute('id');
  40706. });
  40707. _.forEach(device_ids, function (id) {
  40708. return _this15.devices.create({
  40709. 'id': id,
  40710. 'jid': _this15.get('jid')
  40711. });
  40712. });
  40713. return device_ids;
  40714. });
  40715. },
  40716. publishDevices: function publishDevices() {
  40717. var stanza = $iq({
  40718. 'from': _converse.bare_jid,
  40719. 'type': 'set'
  40720. }).c('pubsub', {
  40721. 'xmlns': Strophe.NS.PUBSUB
  40722. }).c('publish', {
  40723. 'node': Strophe.NS.OMEMO_DEVICELIST
  40724. }).c('item').c('list', {
  40725. 'xmlns': Strophe.NS.OMEMO
  40726. });
  40727. this.devices.each(function (device) {
  40728. return stanza.c('device', {
  40729. 'id': device.get('id')
  40730. }).up();
  40731. });
  40732. return _converse.api.sendIQ(stanza);
  40733. },
  40734. removeOwnDevices: function removeOwnDevices(device_ids) {
  40735. var _this16 = this;
  40736. if (this.get('jid') !== _converse.bare_jid) {
  40737. throw new Error("Cannot remove devices from someone else's device list");
  40738. }
  40739. _.forEach(device_ids, function (device_id) {
  40740. return _this16.devices.get(device_id).destroy();
  40741. });
  40742. return this.publishDevices();
  40743. }
  40744. });
  40745. _converse.DeviceLists = Backbone.Collection.extend({
  40746. model: _converse.DeviceList
  40747. });
  40748. function fetchDeviceLists() {
  40749. return new Promise(function (resolve, reject) {
  40750. return _converse.devicelists.fetch({
  40751. 'success': resolve
  40752. });
  40753. });
  40754. }
  40755. function fetchOwnDevices() {
  40756. return fetchDeviceLists().then(function () {
  40757. var own_devicelist = _converse.devicelists.get(_converse.bare_jid);
  40758. if (_.isNil(own_devicelist)) {
  40759. own_devicelist = _converse.devicelists.create({
  40760. 'jid': _converse.bare_jid
  40761. });
  40762. }
  40763. return own_devicelist.fetchDevices();
  40764. });
  40765. }
  40766. function updateBundleFromStanza(stanza) {
  40767. var items_el = sizzle("items", stanza).pop();
  40768. if (!items_el || !items_el.getAttribute('node').startsWith(Strophe.NS.OMEMO_BUNDLES)) {
  40769. return;
  40770. }
  40771. var device_id = items_el.getAttribute('node').split(':')[1],
  40772. jid = stanza.getAttribute('from'),
  40773. bundle_el = sizzle("item > bundle", items_el).pop(),
  40774. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  40775. 'jid': jid
  40776. }),
  40777. device = devicelist.devices.get(device_id) || devicelist.devices.create({
  40778. 'id': device_id,
  40779. 'jid': jid
  40780. });
  40781. device.save({
  40782. 'bundle': parseBundle(bundle_el)
  40783. });
  40784. }
  40785. function updateDevicesFromStanza(stanza) {
  40786. var items_el = sizzle("items[node=\"".concat(Strophe.NS.OMEMO_DEVICELIST, "\"]"), stanza).pop();
  40787. if (!items_el) {
  40788. return;
  40789. }
  40790. var device_ids = _.map(sizzle("item list[xmlns=\"".concat(Strophe.NS.OMEMO, "\"] device"), items_el), function (device) {
  40791. return device.getAttribute('id');
  40792. });
  40793. var jid = stanza.getAttribute('from'),
  40794. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  40795. 'jid': jid
  40796. }),
  40797. devices = devicelist.devices,
  40798. removed_ids = _.difference(devices.pluck('id'), device_ids);
  40799. _.forEach(removed_ids, function (id) {
  40800. if (jid === _converse.bare_jid && id === _converse.omemo_store.get('device_id')) {
  40801. // We don't remove the current device
  40802. return;
  40803. }
  40804. devices.get(id).destroy();
  40805. });
  40806. _.forEach(device_ids, function (device_id) {
  40807. if (!devices.get(device_id)) {
  40808. devices.create({
  40809. 'id': device_id,
  40810. 'jid': jid
  40811. });
  40812. }
  40813. });
  40814. if (Strophe.getBareJidFromJid(jid) === _converse.bare_jid) {
  40815. // Make sure our own device is on the list (i.e. if it was
  40816. // removed, add it again.
  40817. _converse.devicelists.get(_converse.bare_jid).publishCurrentDevice(device_ids);
  40818. }
  40819. }
  40820. function registerPEPPushHandler() {
  40821. // Add a handler for devices pushed from other connected clients
  40822. _converse.connection.addHandler(function (message) {
  40823. try {
  40824. if (sizzle("event[xmlns=\"".concat(Strophe.NS.PUBSUB, "#event\"]"), message).length) {
  40825. updateDevicesFromStanza(message);
  40826. updateBundleFromStanza(message);
  40827. }
  40828. } catch (e) {
  40829. _converse.log(e.message, Strophe.LogLevel.ERROR);
  40830. }
  40831. return true;
  40832. }, null, 'message', 'headline');
  40833. }
  40834. function restoreOMEMOSession() {
  40835. if (_.isUndefined(_converse.omemo_store)) {
  40836. var storage = _converse.config.get('storage'),
  40837. id = "converse.omemosession-".concat(_converse.bare_jid);
  40838. _converse.omemo_store = new _converse.OMEMOStore({
  40839. 'id': id
  40840. });
  40841. _converse.omemo_store.browserStorage = new Backbone.BrowserStorage[storage](id);
  40842. }
  40843. return _converse.omemo_store.fetchSession();
  40844. }
  40845. function initOMEMO() {
  40846. _converse.devicelists = new _converse.DeviceLists();
  40847. var storage = _converse.config.get('storage'),
  40848. id = "converse.devicelists-".concat(_converse.bare_jid);
  40849. _converse.devicelists.browserStorage = new Backbone.BrowserStorage[storage](id);
  40850. fetchOwnDevices().then(function () {
  40851. return restoreOMEMOSession();
  40852. }).then(function () {
  40853. return _converse.omemo_store.publishBundle();
  40854. }).then(function () {
  40855. return _converse.emit('OMEMOInitialized');
  40856. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40857. }
  40858. _converse.api.listen.on('afterTearDown', function () {
  40859. if (_converse.devicelists) {
  40860. _converse.devicelists.reset();
  40861. }
  40862. delete _converse.omemo_store;
  40863. });
  40864. _converse.api.listen.on('connected', registerPEPPushHandler);
  40865. _converse.api.listen.on('renderToolbar', function (view) {
  40866. return view.renderOMEMOToolbarButton();
  40867. });
  40868. _converse.api.listen.on('statusInitialized', initOMEMO);
  40869. _converse.api.listen.on('addClientFeatures', function () {
  40870. return _converse.api.disco.own.features.add("".concat(Strophe.NS.OMEMO_DEVICELIST, "+notify"));
  40871. });
  40872. _converse.api.listen.on('userDetailsModalInitialized', function (contact) {
  40873. var jid = contact.get('jid');
  40874. _converse.generateFingerprints(jid).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40875. });
  40876. _converse.api.listen.on('profileModalInitialized', function (contact) {
  40877. _converse.generateFingerprints(_converse.bare_jid).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40878. });
  40879. }
  40880. });
  40881. });
  40882. /***/ }),
  40883. /***/ "./src/converse-ping.js":
  40884. /*!******************************!*\
  40885. !*** ./src/converse-ping.js ***!
  40886. \******************************/
  40887. /*! no static exports found */
  40888. /***/ (function(module, exports, __webpack_require__) {
  40889. "use strict";
  40890. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  40891. // Converse.js
  40892. // https://conversejs.org
  40893. //
  40894. // Copyright (c) 2013-2018, the Converse.js developers
  40895. // Licensed under the Mozilla Public License (MPLv2)
  40896. /* This is a Converse.js plugin which add support for application-level pings
  40897. * as specified in XEP-0199 XMPP Ping.
  40898. */
  40899. (function (root, factory) {
  40900. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! strophe.ping */ "strophe.ping")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  40901. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40902. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40903. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40904. })(void 0, function (converse) {
  40905. "use strict"; // Strophe methods for building stanzas
  40906. var _converse$env = converse.env,
  40907. Strophe = _converse$env.Strophe,
  40908. _ = _converse$env._;
  40909. converse.plugins.add('converse-ping', {
  40910. initialize: function initialize() {
  40911. /* The initialize function gets called as soon as the plugin is
  40912. * loaded by converse.js's plugin machinery.
  40913. */
  40914. var _converse = this._converse;
  40915. _converse.api.settings.update({
  40916. ping_interval: 180 //in seconds
  40917. });
  40918. _converse.ping = function (jid, success, error, timeout) {
  40919. // XXX: We could first check here if the server advertised that
  40920. // it supports PING.
  40921. // However, some servers don't advertise while still keeping the
  40922. // connection option due to pings.
  40923. //
  40924. // var feature = _converse.disco_entities[_converse.domain].features.findWhere({'var': Strophe.NS.PING});
  40925. _converse.lastStanzaDate = new Date();
  40926. if (_.isNil(jid)) {
  40927. jid = Strophe.getDomainFromJid(_converse.bare_jid);
  40928. }
  40929. if (_.isUndefined(timeout)) {
  40930. timeout = null;
  40931. }
  40932. if (_.isUndefined(success)) {
  40933. success = null;
  40934. }
  40935. if (_.isUndefined(error)) {
  40936. error = null;
  40937. }
  40938. if (_converse.connection) {
  40939. _converse.connection.ping.ping(jid, success, error, timeout);
  40940. return true;
  40941. }
  40942. return false;
  40943. };
  40944. _converse.pong = function (ping) {
  40945. _converse.lastStanzaDate = new Date();
  40946. _converse.connection.ping.pong(ping);
  40947. return true;
  40948. };
  40949. _converse.registerPongHandler = function () {
  40950. if (!_.isUndefined(_converse.connection.disco)) {
  40951. _converse.api.disco.own.features.add(Strophe.NS.PING);
  40952. }
  40953. _converse.connection.ping.addPingHandler(_converse.pong);
  40954. };
  40955. _converse.registerPingHandler = function () {
  40956. _converse.registerPongHandler();
  40957. if (_converse.ping_interval > 0) {
  40958. _converse.connection.addHandler(function () {
  40959. /* Handler on each stanza, saves the received date
  40960. * in order to ping only when needed.
  40961. */
  40962. _converse.lastStanzaDate = new Date();
  40963. return true;
  40964. });
  40965. _converse.connection.addTimedHandler(1000, function () {
  40966. var now = new Date();
  40967. if (!_converse.lastStanzaDate) {
  40968. _converse.lastStanzaDate = now;
  40969. }
  40970. if ((now - _converse.lastStanzaDate) / 1000 > _converse.ping_interval) {
  40971. return _converse.ping();
  40972. }
  40973. return true;
  40974. });
  40975. }
  40976. };
  40977. var onConnected = function onConnected() {
  40978. // Wrapper so that we can spy on registerPingHandler in tests
  40979. _converse.registerPingHandler();
  40980. };
  40981. _converse.on('connected', onConnected);
  40982. _converse.on('reconnected', onConnected);
  40983. }
  40984. });
  40985. });
  40986. /***/ }),
  40987. /***/ "./src/converse-profile.js":
  40988. /*!*********************************!*\
  40989. !*** ./src/converse-profile.js ***!
  40990. \*********************************/
  40991. /*! no static exports found */
  40992. /***/ (function(module, exports, __webpack_require__) {
  40993. "use strict";
  40994. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  40995. // Converse.js (A browser based XMPP chat client)
  40996. // http://conversejs.org
  40997. //
  40998. // Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
  40999. // Licensed under the Mozilla Public License (MPLv2)
  41000. //
  41001. /*global define */
  41002. (function (root, factory) {
  41003. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! formdata-polyfill */ "./node_modules/formdata-polyfill/FormData.js"), __webpack_require__(/*! templates/alert.html */ "./src/templates/alert.html"), __webpack_require__(/*! templates/chat_status_modal.html */ "./src/templates/chat_status_modal.html"), __webpack_require__(/*! templates/profile_modal.html */ "./src/templates/profile_modal.html"), __webpack_require__(/*! templates/profile_view.html */ "./src/templates/profile_view.html"), __webpack_require__(/*! templates/status_option.html */ "./src/templates/status_option.html"), __webpack_require__(/*! converse-vcard */ "./src/converse-vcard.js"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  41004. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41005. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41006. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41007. })(void 0, function (converse, bootstrap, _FormData, tpl_alert, tpl_chat_status_modal, tpl_profile_modal, tpl_profile_view, tpl_status_option) {
  41008. "use strict";
  41009. var _converse$env = converse.env,
  41010. Strophe = _converse$env.Strophe,
  41011. Backbone = _converse$env.Backbone,
  41012. Promise = _converse$env.Promise,
  41013. utils = _converse$env.utils,
  41014. _ = _converse$env._,
  41015. moment = _converse$env.moment;
  41016. var u = converse.env.utils;
  41017. converse.plugins.add('converse-profile', {
  41018. dependencies: ["converse-modal", "converse-vcard", "converse-chatboxviews"],
  41019. initialize: function initialize() {
  41020. /* The initialize function gets called as soon as the plugin is
  41021. * loaded by converse.js's plugin machinery.
  41022. */
  41023. var _converse = this._converse,
  41024. __ = _converse.__;
  41025. _converse.ProfileModal = _converse.BootstrapModal.extend({
  41026. events: {
  41027. 'click .change-avatar': "openFileSelection",
  41028. 'change input[type="file"': "updateFilePreview",
  41029. 'submit .profile-form': 'onFormSubmitted'
  41030. },
  41031. initialize: function initialize() {
  41032. this.model.on('change', this.render, this);
  41033. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  41034. _converse.emit('profileModalInitialized', this.model);
  41035. },
  41036. toHTML: function toHTML() {
  41037. return tpl_profile_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  41038. '_': _,
  41039. '__': __,
  41040. '_converse': _converse,
  41041. 'alt_avatar': __('Your avatar image'),
  41042. 'heading_profile': __('Your Profile'),
  41043. 'label_close': __('Close'),
  41044. 'label_email': __('Email'),
  41045. 'label_fullname': __('Full Name'),
  41046. 'label_jid': __('XMPP Address (JID)'),
  41047. 'label_nickname': __('Nickname'),
  41048. 'label_role': __('Role'),
  41049. 'label_role_help': __('Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.'),
  41050. 'label_url': __('URL'),
  41051. 'utils': u,
  41052. 'view': this
  41053. }));
  41054. },
  41055. afterRender: function afterRender() {
  41056. this.tabs = _.map(this.el.querySelectorAll('.nav-item'), function (tab) {
  41057. return new bootstrap.Tab(tab);
  41058. });
  41059. },
  41060. openFileSelection: function openFileSelection(ev) {
  41061. ev.preventDefault();
  41062. this.el.querySelector('input[type="file"]').click();
  41063. },
  41064. updateFilePreview: function updateFilePreview(ev) {
  41065. var _this = this;
  41066. var file = ev.target.files[0],
  41067. reader = new FileReader();
  41068. reader.onloadend = function () {
  41069. _this.el.querySelector('.avatar').setAttribute('src', reader.result);
  41070. };
  41071. reader.readAsDataURL(file);
  41072. },
  41073. setVCard: function setVCard(data) {
  41074. var _this2 = this;
  41075. _converse.api.vcard.set(_converse.bare_jid, data).then(function () {
  41076. return _converse.api.vcard.update(_this2.model.vcard, true);
  41077. }).catch(function (err) {
  41078. _converse.log(err, Strophe.LogLevel.FATAL);
  41079. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__("Sorry, an error happened while trying to save your profile data."), __("You can check your browser's developer console for any error output.")]);
  41080. });
  41081. this.modal.hide();
  41082. },
  41083. onFormSubmitted: function onFormSubmitted(ev) {
  41084. var _this3 = this;
  41085. ev.preventDefault();
  41086. var reader = new FileReader(),
  41087. form_data = new FormData(ev.target),
  41088. image_file = form_data.get('image');
  41089. var data = {
  41090. 'fn': form_data.get('fn'),
  41091. 'nickname': form_data.get('nickname'),
  41092. 'role': form_data.get('role'),
  41093. 'email': form_data.get('email'),
  41094. 'url': form_data.get('url')
  41095. };
  41096. if (!image_file.size) {
  41097. _.extend(data, {
  41098. 'image': this.model.vcard.get('image'),
  41099. 'image_type': this.model.vcard.get('image_type')
  41100. });
  41101. this.setVCard(data);
  41102. } else {
  41103. reader.onloadend = function () {
  41104. _.extend(data, {
  41105. 'image': btoa(reader.result),
  41106. 'image_type': image_file.type
  41107. });
  41108. _this3.setVCard(data);
  41109. };
  41110. reader.readAsBinaryString(image_file);
  41111. }
  41112. }
  41113. });
  41114. _converse.ChatStatusModal = _converse.BootstrapModal.extend({
  41115. events: {
  41116. "submit form#set-xmpp-status": "onFormSubmitted",
  41117. "click .clear-input": "clearStatusMessage"
  41118. },
  41119. toHTML: function toHTML() {
  41120. return tpl_chat_status_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  41121. 'label_away': __('Away'),
  41122. 'label_close': __('Close'),
  41123. 'label_busy': __('Busy'),
  41124. 'label_cancel': __('Cancel'),
  41125. 'label_custom_status': __('Custom status'),
  41126. 'label_offline': __('Offline'),
  41127. 'label_online': __('Online'),
  41128. 'label_save': __('Save'),
  41129. 'label_xa': __('Away for long'),
  41130. 'modal_title': __('Change chat status'),
  41131. 'placeholder_status_message': __('Personal status message')
  41132. }));
  41133. },
  41134. afterRender: function afterRender() {
  41135. var _this4 = this;
  41136. this.el.addEventListener('shown.bs.modal', function () {
  41137. _this4.el.querySelector('input[name="status_message"]').focus();
  41138. }, false);
  41139. },
  41140. clearStatusMessage: function clearStatusMessage(ev) {
  41141. if (ev && ev.preventDefault) {
  41142. ev.preventDefault();
  41143. u.hideElement(this.el.querySelector('.clear-input'));
  41144. }
  41145. var roster_filter = this.el.querySelector('input[name="status_message"]');
  41146. roster_filter.value = '';
  41147. },
  41148. onFormSubmitted: function onFormSubmitted(ev) {
  41149. ev.preventDefault();
  41150. var data = new FormData(ev.target);
  41151. this.model.save({
  41152. 'status_message': data.get('status_message'),
  41153. 'status': data.get('chat_status')
  41154. });
  41155. this.modal.hide();
  41156. }
  41157. });
  41158. _converse.XMPPStatusView = _converse.VDOMViewWithAvatar.extend({
  41159. tagName: "div",
  41160. events: {
  41161. "click a.show-profile": "showProfileModal",
  41162. "click a.change-status": "showStatusChangeModal",
  41163. "click .logout": "logOut"
  41164. },
  41165. initialize: function initialize() {
  41166. this.model.on("change", this.render, this);
  41167. this.model.vcard.on("change", this.render, this);
  41168. },
  41169. toHTML: function toHTML() {
  41170. var chat_status = this.model.get('status') || 'offline';
  41171. return tpl_profile_view(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  41172. '__': __,
  41173. 'fullname': this.model.vcard.get('fullname') || _converse.bare_jid,
  41174. 'status_message': this.model.get('status_message') || __("I am %1$s", this.getPrettyStatus(chat_status)),
  41175. 'chat_status': chat_status,
  41176. '_converse': _converse,
  41177. 'title_change_settings': __('Change settings'),
  41178. 'title_change_status': __('Click to change your chat status'),
  41179. 'title_log_out': __('Log out'),
  41180. 'title_your_profile': __('Your profile')
  41181. }));
  41182. },
  41183. afterRender: function afterRender() {
  41184. this.renderAvatar();
  41185. },
  41186. showProfileModal: function showProfileModal(ev) {
  41187. if (_.isUndefined(this.profile_modal)) {
  41188. this.profile_modal = new _converse.ProfileModal({
  41189. model: this.model
  41190. });
  41191. }
  41192. this.profile_modal.show(ev);
  41193. },
  41194. showStatusChangeModal: function showStatusChangeModal(ev) {
  41195. if (_.isUndefined(this.status_modal)) {
  41196. this.status_modal = new _converse.ChatStatusModal({
  41197. model: this.model
  41198. });
  41199. }
  41200. this.status_modal.show(ev);
  41201. },
  41202. logOut: function logOut(ev) {
  41203. ev.preventDefault();
  41204. var result = confirm(__("Are you sure you want to log out?"));
  41205. if (result === true) {
  41206. _converse.logOut();
  41207. }
  41208. },
  41209. getPrettyStatus: function getPrettyStatus(stat) {
  41210. if (stat === 'chat') {
  41211. return __('online');
  41212. } else if (stat === 'dnd') {
  41213. return __('busy');
  41214. } else if (stat === 'xa') {
  41215. return __('away for long');
  41216. } else if (stat === 'away') {
  41217. return __('away');
  41218. } else if (stat === 'offline') {
  41219. return __('offline');
  41220. } else {
  41221. return __(stat) || __('online');
  41222. }
  41223. }
  41224. });
  41225. }
  41226. });
  41227. });
  41228. /***/ }),
  41229. /***/ "./src/converse-push.js":
  41230. /*!******************************!*\
  41231. !*** ./src/converse-push.js ***!
  41232. \******************************/
  41233. /*! no static exports found */
  41234. /***/ (function(module, exports, __webpack_require__) {
  41235. "use strict";
  41236. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  41237. // Converse.js
  41238. // https://conversejs.org
  41239. //
  41240. // Copyright (c) 2013-2018, the Converse.js developers
  41241. // Licensed under the Mozilla Public License (MPLv2)
  41242. /* This is a Converse.js plugin which add support for registering
  41243. * an "App Server" as defined in XEP-0357
  41244. */
  41245. (function (root, factory) {
  41246. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  41247. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41248. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41249. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41250. })(void 0, function (converse) {
  41251. "use strict";
  41252. var _converse$env = converse.env,
  41253. Strophe = _converse$env.Strophe,
  41254. $iq = _converse$env.$iq,
  41255. _ = _converse$env._;
  41256. Strophe.addNamespace('PUSH', 'urn:xmpp:push:0');
  41257. converse.plugins.add('converse-push', {
  41258. initialize: function initialize() {
  41259. /* The initialize function gets called as soon as the plugin is
  41260. * loaded by converse.js's plugin machinery.
  41261. */
  41262. var _converse = this._converse,
  41263. __ = _converse.__;
  41264. _converse.api.settings.update({
  41265. 'push_app_servers': [],
  41266. 'enable_muc_push': false
  41267. });
  41268. async function disablePushAppServer(domain, push_app_server) {
  41269. if (!push_app_server.jid) {
  41270. return;
  41271. }
  41272. var result = await _converse.api.disco.supports(Strophe.NS.PUSH, domain || _converse.bare_jid);
  41273. if (!result.length) {
  41274. return _converse.log("Not disabling push app server \"".concat(push_app_server.jid, "\", no disco support from your server."), Strophe.LogLevel.WARN);
  41275. }
  41276. var stanza = $iq({
  41277. 'type': 'set'
  41278. });
  41279. if (domain !== _converse.bare_jid) {
  41280. stanza.attrs({
  41281. 'to': domain
  41282. });
  41283. }
  41284. stanza.c('disable', {
  41285. 'xmlns': Strophe.NS.PUSH,
  41286. 'jid': push_app_server.jid
  41287. });
  41288. if (push_app_server.node) {
  41289. stanza.attrs({
  41290. 'node': push_app_server.node
  41291. });
  41292. }
  41293. _converse.api.sendIQ(stanza).catch(function (e) {
  41294. _converse.log("Could not disable push app server for ".concat(push_app_server.jid), Strophe.LogLevel.ERROR);
  41295. _converse.log(e, Strophe.LogLevel.ERROR);
  41296. });
  41297. }
  41298. async function enablePushAppServer(domain, push_app_server) {
  41299. if (!push_app_server.jid || !push_app_server.node) {
  41300. return;
  41301. }
  41302. var identity = await _converse.api.disco.getIdentity('pubsub', 'push', push_app_server.jid);
  41303. if (!identity) {
  41304. return _converse.log("Not enabling push the service \"".concat(push_app_server.jid, "\", it doesn't have the right disco identtiy."), Strophe.LogLevel.WARN);
  41305. }
  41306. var result = await Promise.all([_converse.api.disco.supports(Strophe.NS.PUSH, push_app_server.jid), _converse.api.disco.supports(Strophe.NS.PUSH, domain)]);
  41307. if (!result[0].length && !result[1].length) {
  41308. return _converse.log("Not enabling push app server \"".concat(push_app_server.jid, "\", no disco support from your server."), Strophe.LogLevel.WARN);
  41309. }
  41310. var stanza = $iq({
  41311. 'type': 'set'
  41312. });
  41313. if (domain !== _converse.bare_jid) {
  41314. stanza.attrs({
  41315. 'to': domain
  41316. });
  41317. }
  41318. stanza.c('enable', {
  41319. 'xmlns': Strophe.NS.PUSH,
  41320. 'jid': push_app_server.jid,
  41321. 'node': push_app_server.node
  41322. });
  41323. if (push_app_server.secret) {
  41324. stanza.c('x', {
  41325. 'xmlns': Strophe.NS.XFORM,
  41326. 'type': 'submit'
  41327. }).c('field', {
  41328. 'var': 'FORM_TYPE'
  41329. }).c('value').t("".concat(Strophe.NS.PUBSUB, "#publish-options")).up().up().c('field', {
  41330. 'var': 'secret'
  41331. }).c('value').t(push_app_server.secret);
  41332. }
  41333. return _converse.api.sendIQ(stanza);
  41334. }
  41335. async function enablePush(domain) {
  41336. domain = domain || _converse.bare_jid;
  41337. var push_enabled = _converse.session.get('push_enabled') || [];
  41338. if (_.includes(push_enabled, domain)) {
  41339. return;
  41340. }
  41341. var enabled_services = _.reject(_converse.push_app_servers, 'disable');
  41342. try {
  41343. await Promise.all(_.map(enabled_services, _.partial(enablePushAppServer, domain)));
  41344. } catch (e) {
  41345. _converse.log('Could not enable push App Server', Strophe.LogLevel.ERROR);
  41346. if (e) _converse.log(e, Strophe.LogLevel.ERROR);
  41347. } finally {
  41348. push_enabled.push(domain);
  41349. }
  41350. var disabled_services = _.filter(_converse.push_app_servers, 'disable');
  41351. _.each(disabled_services, _.partial(disablePushAppServer, domain));
  41352. _converse.session.save('push_enabled', push_enabled);
  41353. }
  41354. _converse.api.listen.on('statusInitialized', function () {
  41355. return enablePush();
  41356. });
  41357. function onChatBoxAdded(model) {
  41358. if (model.get('type') == _converse.CHATROOMS_TYPE) {
  41359. enablePush(Strophe.getDomainFromJid(model.get('jid')));
  41360. }
  41361. }
  41362. if (_converse.enable_muc_push) {
  41363. _converse.api.listen.on('chatBoxesInitialized', function () {
  41364. return _converse.chatboxes.on('add', onChatBoxAdded);
  41365. });
  41366. }
  41367. }
  41368. });
  41369. });
  41370. /***/ }),
  41371. /***/ "./src/converse-register.js":
  41372. /*!**********************************!*\
  41373. !*** ./src/converse-register.js ***!
  41374. \**********************************/
  41375. /*! no static exports found */
  41376. /***/ (function(module, exports, __webpack_require__) {
  41377. "use strict";
  41378. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  41379. // Converse.js (A browser based XMPP chat client)
  41380. // http://conversejs.org
  41381. //
  41382. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  41383. // Licensed under the Mozilla Public License (MPLv2)
  41384. //
  41385. /*global define */
  41386. /* This is a Converse.js plugin which add support for in-band registration
  41387. * as specified in XEP-0077.
  41388. */
  41389. (function (root, factory) {
  41390. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/form */ "./src/utils/form.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/form_username.html */ "./src/templates/form_username.html"), __webpack_require__(/*! templates/register_link.html */ "./src/templates/register_link.html"), __webpack_require__(/*! templates/register_panel.html */ "./src/templates/register_panel.html"), __webpack_require__(/*! templates/registration_form.html */ "./src/templates/registration_form.html"), __webpack_require__(/*! templates/registration_request.html */ "./src/templates/registration_request.html"), __webpack_require__(/*! templates/form_input.html */ "./src/templates/form_input.html"), __webpack_require__(/*! templates/spinner.html */ "./src/templates/spinner.html"), __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  41391. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41392. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41393. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41394. })(void 0, function (utils, converse, tpl_form_username, tpl_register_link, tpl_register_panel, tpl_registration_form, tpl_registration_request, tpl_form_input, tpl_spinner) {
  41395. "use strict"; // Strophe methods for building stanzas
  41396. var _converse$env = converse.env,
  41397. Strophe = _converse$env.Strophe,
  41398. Backbone = _converse$env.Backbone,
  41399. sizzle = _converse$env.sizzle,
  41400. $iq = _converse$env.$iq,
  41401. _ = _converse$env._; // Add Strophe Namespaces
  41402. Strophe.addNamespace('REGISTER', 'jabber:iq:register'); // Add Strophe Statuses
  41403. var i = 0;
  41404. _.each(_.keys(Strophe.Status), function (key) {
  41405. i = Math.max(i, Strophe.Status[key]);
  41406. });
  41407. Strophe.Status.REGIFAIL = i + 1;
  41408. Strophe.Status.REGISTERED = i + 2;
  41409. Strophe.Status.CONFLICT = i + 3;
  41410. Strophe.Status.NOTACCEPTABLE = i + 5;
  41411. converse.plugins.add('converse-register', {
  41412. 'overrides': {
  41413. // Overrides mentioned here will be picked up by converse.js's
  41414. // plugin architecture they will replace existing methods on the
  41415. // relevant objects or classes.
  41416. //
  41417. // New functions which don't exist yet can also be added.
  41418. LoginPanel: {
  41419. insertRegisterLink: function insertRegisterLink() {
  41420. var _converse = this.__super__._converse;
  41421. if (_.isUndefined(this.registerlinkview)) {
  41422. this.registerlinkview = new _converse.RegisterLinkView({
  41423. 'model': this.model
  41424. });
  41425. this.registerlinkview.render();
  41426. this.el.querySelector('.buttons').insertAdjacentElement('afterend', this.registerlinkview.el);
  41427. }
  41428. this.registerlinkview.render();
  41429. },
  41430. render: function render(cfg) {
  41431. var _converse = this.__super__._converse;
  41432. this.__super__.render.apply(this, arguments);
  41433. if (_converse.allow_registration && !_converse.auto_login) {
  41434. this.insertRegisterLink();
  41435. }
  41436. return this;
  41437. }
  41438. },
  41439. ControlBoxView: {
  41440. initialize: function initialize() {
  41441. this.__super__.initialize.apply(this, arguments);
  41442. this.model.on('change:active-form', this.showLoginOrRegisterForm.bind(this));
  41443. },
  41444. showLoginOrRegisterForm: function showLoginOrRegisterForm() {
  41445. var _converse = this.__super__._converse;
  41446. if (_.isNil(this.registerpanel)) {
  41447. return;
  41448. }
  41449. if (this.model.get('active-form') == "register") {
  41450. this.loginpanel.el.classList.add('hidden');
  41451. this.registerpanel.el.classList.remove('hidden');
  41452. } else {
  41453. this.loginpanel.el.classList.remove('hidden');
  41454. this.registerpanel.el.classList.add('hidden');
  41455. }
  41456. },
  41457. renderRegistrationPanel: function renderRegistrationPanel() {
  41458. var _converse = this.__super__._converse;
  41459. if (_converse.allow_registration) {
  41460. this.registerpanel = new _converse.RegisterPanel({
  41461. 'model': this.model
  41462. });
  41463. this.registerpanel.render();
  41464. this.registerpanel.el.classList.add('hidden');
  41465. this.el.querySelector('#converse-login-panel').insertAdjacentElement('afterend', this.registerpanel.el);
  41466. this.showLoginOrRegisterForm();
  41467. }
  41468. return this;
  41469. },
  41470. renderLoginPanel: function renderLoginPanel() {
  41471. /* Also render a registration panel, when rendering the
  41472. * login panel.
  41473. */
  41474. this.__super__.renderLoginPanel.apply(this, arguments);
  41475. this.renderRegistrationPanel();
  41476. return this;
  41477. }
  41478. }
  41479. },
  41480. initialize: function initialize() {
  41481. /* The initialize function gets called as soon as the plugin is
  41482. * loaded by converse.js's plugin machinery.
  41483. */
  41484. var _converse = this._converse,
  41485. __ = _converse.__;
  41486. _converse.CONNECTION_STATUS[Strophe.Status.REGIFAIL] = 'REGIFAIL';
  41487. _converse.CONNECTION_STATUS[Strophe.Status.REGISTERED] = 'REGISTERED';
  41488. _converse.CONNECTION_STATUS[Strophe.Status.CONFLICT] = 'CONFLICT';
  41489. _converse.CONNECTION_STATUS[Strophe.Status.NOTACCEPTABLE] = 'NOTACCEPTABLE';
  41490. _converse.api.settings.update({
  41491. 'allow_registration': true,
  41492. 'domain_placeholder': __(" e.g. conversejs.org"),
  41493. // Placeholder text shown in the domain input on the registration form
  41494. 'providers_link': 'https://compliance.conversations.im/',
  41495. // Link to XMPP providers shown on registration page
  41496. 'registration_domain': ''
  41497. });
  41498. function setActiveForm(value) {
  41499. _converse.api.waitUntil('controlboxInitialized').then(function () {
  41500. var controlbox = _converse.chatboxes.get('controlbox');
  41501. controlbox.set({
  41502. 'active-form': value
  41503. });
  41504. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  41505. }
  41506. _converse.router.route('converse/login', _.partial(setActiveForm, 'login'));
  41507. _converse.router.route('converse/register', _.partial(setActiveForm, 'register'));
  41508. _converse.RegisterLinkView = Backbone.VDOMView.extend({
  41509. toHTML: function toHTML() {
  41510. return tpl_register_link(_.extend(this.model.toJSON(), {
  41511. '__': _converse.__,
  41512. '_converse': _converse,
  41513. 'connection_status': _converse.connfeedback.get('connection_status')
  41514. }));
  41515. }
  41516. });
  41517. _converse.RegisterPanel = Backbone.NativeView.extend({
  41518. tagName: 'div',
  41519. id: "converse-register-panel",
  41520. className: 'controlbox-pane fade-in',
  41521. events: {
  41522. 'submit form#converse-register': 'onFormSubmission',
  41523. 'click .button-cancel': 'renderProviderChoiceForm'
  41524. },
  41525. initialize: function initialize(cfg) {
  41526. this.reset();
  41527. this.registerHooks();
  41528. },
  41529. render: function render() {
  41530. this.model.set('registration_form_rendered', false);
  41531. this.el.innerHTML = tpl_register_panel({
  41532. '__': __,
  41533. 'default_domain': _converse.registration_domain,
  41534. 'label_register': __('Fetch registration form'),
  41535. 'help_providers': __('Tip: A list of public XMPP providers is available'),
  41536. 'help_providers_link': __('here'),
  41537. 'href_providers': _converse.providers_link,
  41538. 'domain_placeholder': _converse.domain_placeholder
  41539. });
  41540. if (_converse.registration_domain) {
  41541. this.fetchRegistrationForm(_converse.registration_domain);
  41542. }
  41543. return this;
  41544. },
  41545. registerHooks: function registerHooks() {
  41546. var _this = this;
  41547. /* Hook into Strophe's _connect_cb, so that we can send an IQ
  41548. * requesting the registration fields.
  41549. */
  41550. var conn = _converse.connection;
  41551. var connect_cb = conn._connect_cb.bind(conn);
  41552. conn._connect_cb = function (req, callback, raw) {
  41553. if (!_this._registering) {
  41554. connect_cb(req, callback, raw);
  41555. } else {
  41556. if (_this.getRegistrationFields(req, callback, raw)) {
  41557. _this._registering = false;
  41558. }
  41559. }
  41560. };
  41561. },
  41562. getRegistrationFields: function getRegistrationFields(req, _callback, raw) {
  41563. /* Send an IQ stanza to the XMPP server asking for the
  41564. * registration fields.
  41565. * Parameters:
  41566. * (Strophe.Request) req - The current request
  41567. * (Function) callback
  41568. */
  41569. var conn = _converse.connection;
  41570. conn.connected = true;
  41571. var body = conn._proto._reqToData(req);
  41572. if (!body) {
  41573. return;
  41574. }
  41575. if (conn._proto._connect_cb(body) === Strophe.Status.CONNFAIL) {
  41576. this.showValidationError(__("Sorry, we're unable to connect to your chosen provider."));
  41577. return false;
  41578. }
  41579. var register = body.getElementsByTagName("register");
  41580. var mechanisms = body.getElementsByTagName("mechanism");
  41581. if (register.length === 0 && mechanisms.length === 0) {
  41582. conn._proto._no_auth_received(_callback);
  41583. return false;
  41584. }
  41585. if (register.length === 0) {
  41586. conn._changeConnectStatus(Strophe.Status.REGIFAIL);
  41587. this.showValidationError(__("Sorry, the given provider does not support in " + "band account registration. Please try with a " + "different provider."));
  41588. return true;
  41589. } // Send an IQ stanza to get all required data fields
  41590. conn._addSysHandler(this.onRegistrationFields.bind(this), null, "iq", null, null);
  41591. var stanza = $iq({
  41592. type: "get"
  41593. }).c("query", {
  41594. xmlns: Strophe.NS.REGISTER
  41595. }).tree();
  41596. stanza.setAttribute("id", conn.getUniqueId("sendIQ"));
  41597. conn.send(stanza);
  41598. conn.connected = false;
  41599. return true;
  41600. },
  41601. onRegistrationFields: function onRegistrationFields(stanza) {
  41602. /* Handler for Registration Fields Request.
  41603. *
  41604. * Parameters:
  41605. * (XMLElement) elem - The query stanza.
  41606. */
  41607. if (stanza.getAttribute("type") === "error") {
  41608. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, __('Something went wrong while establishing a connection with "%1$s". ' + 'Are you sure it exists?', this.domain));
  41609. return false;
  41610. }
  41611. if (stanza.getElementsByTagName("query").length !== 1) {
  41612. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, "unknown");
  41613. return false;
  41614. }
  41615. this.setFields(stanza);
  41616. if (!this.model.get('registration_form_rendered')) {
  41617. this.renderRegistrationForm(stanza);
  41618. }
  41619. return false;
  41620. },
  41621. reset: function reset(settings) {
  41622. var defaults = {
  41623. fields: {},
  41624. urls: [],
  41625. title: "",
  41626. instructions: "",
  41627. registered: false,
  41628. _registering: false,
  41629. domain: null,
  41630. form_type: null
  41631. };
  41632. _.extend(this, defaults);
  41633. if (settings) {
  41634. _.extend(this, _.pick(settings, _.keys(defaults)));
  41635. }
  41636. },
  41637. onFormSubmission: function onFormSubmission(ev) {
  41638. /* Event handler when the #converse-register form is
  41639. * submitted.
  41640. *
  41641. * Depending on the available input fields, we delegate to
  41642. * other methods.
  41643. */
  41644. if (ev && ev.preventDefault) {
  41645. ev.preventDefault();
  41646. }
  41647. if (_.isNull(ev.target.querySelector('input[name=domain]'))) {
  41648. this.submitRegistrationForm(ev.target);
  41649. } else {
  41650. this.onProviderChosen(ev.target);
  41651. }
  41652. },
  41653. onProviderChosen: function onProviderChosen(form) {
  41654. /* Callback method that gets called when the user has chosen an
  41655. * XMPP provider.
  41656. *
  41657. * Parameters:
  41658. * (HTMLElement) form - The form that was submitted
  41659. */
  41660. var domain_input = form.querySelector('input[name=domain]'),
  41661. domain = _.get(domain_input, 'value');
  41662. if (!domain) {
  41663. // TODO: add validation message
  41664. domain_input.classList.add('error');
  41665. return;
  41666. }
  41667. form.querySelector('input[type=submit]').classList.add('hidden');
  41668. this.fetchRegistrationForm(domain.trim());
  41669. },
  41670. fetchRegistrationForm: function fetchRegistrationForm(domain_name) {
  41671. /* This is called with a domain name based on which, it fetches a
  41672. * registration form from the requested domain.
  41673. *
  41674. * Parameters:
  41675. * (String) domain_name - XMPP server domain
  41676. */
  41677. if (!this.model.get('registration_form_rendered')) {
  41678. this.renderRegistrationRequest();
  41679. }
  41680. this.reset({
  41681. 'domain': Strophe.getDomainFromJid(domain_name),
  41682. '_registering': true
  41683. });
  41684. _converse.connection.connect(this.domain, "", this.onConnectStatusChanged.bind(this));
  41685. return false;
  41686. },
  41687. renderRegistrationRequest: function renderRegistrationRequest() {
  41688. /* Clear the form and inform the user that the registration
  41689. * form is being fetched.
  41690. */
  41691. this.clearRegistrationForm().insertAdjacentHTML('beforeend', tpl_registration_request({
  41692. '__': _converse.__,
  41693. 'cancel': _converse.registration_domain
  41694. }));
  41695. },
  41696. giveFeedback: function giveFeedback(message, klass) {
  41697. var feedback = this.el.querySelector('.reg-feedback');
  41698. if (!_.isNull(feedback)) {
  41699. feedback.parentNode.removeChild(feedback);
  41700. }
  41701. var form = this.el.querySelector('form');
  41702. form.insertAdjacentHTML('afterbegin', '<span class="reg-feedback"></span>');
  41703. feedback = form.querySelector('.reg-feedback');
  41704. feedback.textContent = message;
  41705. if (klass) {
  41706. feedback.classList.add(klass);
  41707. }
  41708. },
  41709. clearRegistrationForm: function clearRegistrationForm() {
  41710. var form = this.el.querySelector('form');
  41711. form.innerHTML = '';
  41712. this.model.set('registration_form_rendered', false);
  41713. return form;
  41714. },
  41715. showSpinner: function showSpinner() {
  41716. var form = this.el.querySelector('form');
  41717. form.innerHTML = tpl_spinner();
  41718. this.model.set('registration_form_rendered', false);
  41719. return this;
  41720. },
  41721. onConnectStatusChanged: function onConnectStatusChanged(status_code) {
  41722. /* Callback function called by Strophe whenever the
  41723. * connection status changes.
  41724. *
  41725. * Passed to Strophe specifically during a registration
  41726. * attempt.
  41727. *
  41728. * Parameters:
  41729. * (Integer) status_code - The Stroph.Status status code
  41730. */
  41731. _converse.log('converse-register: onConnectStatusChanged');
  41732. if (_.includes([Strophe.Status.DISCONNECTED, Strophe.Status.CONNFAIL, Strophe.Status.REGIFAIL, Strophe.Status.NOTACCEPTABLE, Strophe.Status.CONFLICT], status_code)) {
  41733. _converse.log("Problem during registration: Strophe.Status is ".concat(_converse.CONNECTION_STATUS[status_code]), Strophe.LogLevel.ERROR);
  41734. this.abortRegistration();
  41735. } else if (status_code === Strophe.Status.REGISTERED) {
  41736. _converse.log("Registered successfully.");
  41737. _converse.connection.reset();
  41738. this.showSpinner();
  41739. if (_.includes(["converse/login", "converse/register"], Backbone.history.getFragment())) {
  41740. _converse.router.navigate('', {
  41741. 'replace': true
  41742. });
  41743. }
  41744. if (this.fields.password && this.fields.username) {
  41745. // automatically log the user in
  41746. _converse.connection.connect(this.fields.username.toLowerCase() + '@' + this.domain.toLowerCase(), this.fields.password, _converse.onConnectStatusChanged);
  41747. this.giveFeedback(__('Now logging you in'), 'info');
  41748. } else {
  41749. _converse.chatboxviews.get('controlbox').renderLoginPanel();
  41750. _converse.giveFeedback(__('Registered successfully'));
  41751. }
  41752. this.reset();
  41753. }
  41754. },
  41755. renderLegacyRegistrationForm: function renderLegacyRegistrationForm(form) {
  41756. var _this2 = this;
  41757. _.each(_.keys(this.fields), function (key) {
  41758. if (key === "username") {
  41759. form.insertAdjacentHTML('beforeend', tpl_form_username({
  41760. 'domain': " @".concat(_this2.domain),
  41761. 'name': key,
  41762. 'type': "text",
  41763. 'label': key,
  41764. 'value': '',
  41765. 'required': true
  41766. }));
  41767. } else {
  41768. form.insertAdjacentHTML('beforeend', tpl_form_input({
  41769. 'label': key,
  41770. 'name': key,
  41771. 'placeholder': key,
  41772. 'required': true,
  41773. 'type': key === 'password' || key === 'email' ? key : "text",
  41774. 'value': ''
  41775. }));
  41776. }
  41777. }); // Show urls
  41778. _.each(this.urls, function (url) {
  41779. form.insertAdjacentHTML('afterend', '<a target="blank" rel="noopener" href="' + url + '">' + url + '</a>');
  41780. });
  41781. },
  41782. renderRegistrationForm: function renderRegistrationForm(stanza) {
  41783. var _this3 = this;
  41784. /* Renders the registration form based on the XForm fields
  41785. * received from the XMPP server.
  41786. *
  41787. * Parameters:
  41788. * (XMLElement) stanza - The IQ stanza received from the XMPP server.
  41789. */
  41790. var form = this.el.querySelector('form');
  41791. form.innerHTML = tpl_registration_form({
  41792. '__': _converse.__,
  41793. 'domain': this.domain,
  41794. 'title': this.title,
  41795. 'instructions': this.instructions,
  41796. 'registration_domain': _converse.registration_domain
  41797. });
  41798. var buttons = form.querySelector('fieldset.buttons');
  41799. if (this.form_type === 'xform') {
  41800. _.each(stanza.querySelectorAll('field'), function (field) {
  41801. buttons.insertAdjacentHTML('beforebegin', utils.xForm2webForm(field, stanza, _this3.domain));
  41802. });
  41803. } else {
  41804. this.renderLegacyRegistrationForm(form);
  41805. }
  41806. if (!this.fields) {
  41807. form.querySelector('.button-primary').classList.add('hidden');
  41808. }
  41809. form.classList.remove('hidden');
  41810. this.model.set('registration_form_rendered', true);
  41811. },
  41812. showValidationError: function showValidationError(message) {
  41813. var form = this.el.querySelector('form');
  41814. var flash = form.querySelector('.form-errors');
  41815. if (_.isNull(flash)) {
  41816. flash = '<div class="form-errors hidden"></div>';
  41817. var instructions = form.querySelector('p.instructions');
  41818. if (_.isNull(instructions)) {
  41819. form.insertAdjacentHTML('afterbegin', flash);
  41820. } else {
  41821. instructions.insertAdjacentHTML('afterend', flash);
  41822. }
  41823. flash = form.querySelector('.form-errors');
  41824. } else {
  41825. flash.innerHTML = '';
  41826. }
  41827. flash.insertAdjacentHTML('beforeend', '<p class="form-help error">' + message + '</p>');
  41828. flash.classList.remove('hidden');
  41829. },
  41830. reportErrors: function reportErrors(stanza) {
  41831. var _this4 = this;
  41832. /* Report back to the user any error messages received from the
  41833. * XMPP server after attempted registration.
  41834. *
  41835. * Parameters:
  41836. * (XMLElement) stanza - The IQ stanza received from the
  41837. * XMPP server.
  41838. */
  41839. var errors = stanza.querySelectorAll('error');
  41840. _.each(errors, function (error) {
  41841. _this4.showValidationError(error.textContent);
  41842. });
  41843. if (!errors.length) {
  41844. var message = __('The provider rejected your registration attempt. ' + 'Please check the values you entered for correctness.');
  41845. this.showValidationError(message);
  41846. }
  41847. },
  41848. renderProviderChoiceForm: function renderProviderChoiceForm(ev) {
  41849. if (ev && ev.preventDefault) {
  41850. ev.preventDefault();
  41851. }
  41852. _converse.connection._proto._abortAllRequests();
  41853. _converse.connection.reset();
  41854. this.render();
  41855. },
  41856. abortRegistration: function abortRegistration() {
  41857. _converse.connection._proto._abortAllRequests();
  41858. _converse.connection.reset();
  41859. if (this.model.get('registration_form_rendered')) {
  41860. if (_converse.registration_domain && this.model.get('registration_form_rendered')) {
  41861. this.fetchRegistrationForm(_converse.registration_domain);
  41862. }
  41863. } else {
  41864. this.render();
  41865. }
  41866. },
  41867. submitRegistrationForm: function submitRegistrationForm(form) {
  41868. /* Handler, when the user submits the registration form.
  41869. * Provides form error feedback or starts the registration
  41870. * process.
  41871. *
  41872. * Parameters:
  41873. * (HTMLElement) form - The HTML form that was submitted
  41874. */
  41875. var has_empty_inputs = _.reduce(this.el.querySelectorAll('input.required'), function (result, input) {
  41876. if (input.value === '') {
  41877. input.classList.add('error');
  41878. return result + 1;
  41879. }
  41880. return result;
  41881. }, 0);
  41882. if (has_empty_inputs) {
  41883. return;
  41884. }
  41885. var inputs = sizzle(':input:not([type=button]):not([type=submit])', form),
  41886. iq = $iq({
  41887. 'type': 'set',
  41888. 'id': _converse.connection.getUniqueId()
  41889. }).c("query", {
  41890. xmlns: Strophe.NS.REGISTER
  41891. });
  41892. if (this.form_type === 'xform') {
  41893. iq.c("x", {
  41894. xmlns: Strophe.NS.XFORM,
  41895. type: 'submit'
  41896. });
  41897. _.each(inputs, function (input) {
  41898. iq.cnode(utils.webForm2xForm(input)).up();
  41899. });
  41900. } else {
  41901. _.each(inputs, function (input) {
  41902. iq.c(input.getAttribute('name'), {}, input.value);
  41903. });
  41904. }
  41905. _converse.connection._addSysHandler(this._onRegisterIQ.bind(this), null, "iq", null, null);
  41906. _converse.connection.send(iq);
  41907. this.setFields(iq.tree());
  41908. },
  41909. setFields: function setFields(stanza) {
  41910. /* Stores the values that will be sent to the XMPP server
  41911. * during attempted registration.
  41912. *
  41913. * Parameters:
  41914. * (XMLElement) stanza - the IQ stanza that will be sent to the XMPP server.
  41915. */
  41916. var query = stanza.querySelector('query');
  41917. var xform = sizzle("x[xmlns=\"".concat(Strophe.NS.XFORM, "\"]"), query);
  41918. if (xform.length > 0) {
  41919. this._setFieldsFromXForm(xform.pop());
  41920. } else {
  41921. this._setFieldsFromLegacy(query);
  41922. }
  41923. },
  41924. _setFieldsFromLegacy: function _setFieldsFromLegacy(query) {
  41925. var _this5 = this;
  41926. _.each(query.children, function (field) {
  41927. if (field.tagName.toLowerCase() === 'instructions') {
  41928. _this5.instructions = Strophe.getText(field);
  41929. return;
  41930. } else if (field.tagName.toLowerCase() === 'x') {
  41931. if (field.getAttribute('xmlns') === 'jabber:x:oob') {
  41932. _this5.urls.concat(_.map(field.querySelectorAll('url'), 'textContent'));
  41933. }
  41934. return;
  41935. }
  41936. _this5.fields[field.tagName.toLowerCase()] = Strophe.getText(field);
  41937. });
  41938. this.form_type = 'legacy';
  41939. },
  41940. _setFieldsFromXForm: function _setFieldsFromXForm(xform) {
  41941. var _this6 = this;
  41942. this.title = _.get(xform.querySelector('title'), 'textContent');
  41943. this.instructions = _.get(xform.querySelector('instructions'), 'textContent');
  41944. _.each(xform.querySelectorAll('field'), function (field) {
  41945. var _var = field.getAttribute('var');
  41946. if (_var) {
  41947. _this6.fields[_var.toLowerCase()] = _.get(field.querySelector('value'), 'textContent', '');
  41948. } else {
  41949. // TODO: other option seems to be type="fixed"
  41950. _converse.log("Found field we couldn't parse", Strophe.LogLevel.WARN);
  41951. }
  41952. });
  41953. this.form_type = 'xform';
  41954. },
  41955. _onRegisterIQ: function _onRegisterIQ(stanza) {
  41956. /* Callback method that gets called when a return IQ stanza
  41957. * is received from the XMPP server, after attempting to
  41958. * register a new user.
  41959. *
  41960. * Parameters:
  41961. * (XMLElement) stanza - The IQ stanza.
  41962. */
  41963. if (stanza.getAttribute("type") === "error") {
  41964. _converse.log("Registration failed.", Strophe.LogLevel.ERROR);
  41965. this.reportErrors(stanza);
  41966. var error = stanza.getElementsByTagName("error");
  41967. if (error.length !== 1) {
  41968. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, "unknown");
  41969. return false;
  41970. }
  41971. error = error[0].firstChild.tagName.toLowerCase();
  41972. if (error === 'conflict') {
  41973. _converse.connection._changeConnectStatus(Strophe.Status.CONFLICT, error);
  41974. } else if (error === 'not-acceptable') {
  41975. _converse.connection._changeConnectStatus(Strophe.Status.NOTACCEPTABLE, error);
  41976. } else {
  41977. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, error);
  41978. }
  41979. } else {
  41980. _converse.connection._changeConnectStatus(Strophe.Status.REGISTERED, null);
  41981. }
  41982. return false;
  41983. }
  41984. });
  41985. }
  41986. });
  41987. });
  41988. /***/ }),
  41989. /***/ "./src/converse-roomslist.js":
  41990. /*!***********************************!*\
  41991. !*** ./src/converse-roomslist.js ***!
  41992. \***********************************/
  41993. /*! no static exports found */
  41994. /***/ (function(module, exports, __webpack_require__) {
  41995. "use strict";
  41996. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  41997. // Converse.js (A browser based XMPP chat client)
  41998. // http://conversejs.org
  41999. //
  42000. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  42001. // Licensed under the Mozilla Public License (MPLv2)
  42002. //
  42003. /*global define */
  42004. /* This is a non-core Converse.js plugin which shows a list of currently open
  42005. * rooms in the "Rooms Panel" of the ControlBox.
  42006. */
  42007. (function (root, factory) {
  42008. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), __webpack_require__(/*! templates/rooms_list.html */ "./src/templates/rooms_list.html"), __webpack_require__(/*! templates/rooms_list_item.html */ "./src/templates/rooms_list_item.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  42009. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  42010. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  42011. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  42012. })(void 0, function (converse, muc, tpl_rooms_list, tpl_rooms_list_item) {
  42013. var _converse$env = converse.env,
  42014. Backbone = _converse$env.Backbone,
  42015. Promise = _converse$env.Promise,
  42016. Strophe = _converse$env.Strophe,
  42017. b64_sha1 = _converse$env.b64_sha1,
  42018. sizzle = _converse$env.sizzle,
  42019. _ = _converse$env._;
  42020. var u = converse.env.utils;
  42021. converse.plugins.add('converse-roomslist', {
  42022. /* Optional dependencies are other plugins which might be
  42023. * overridden or relied upon, and therefore need to be loaded before
  42024. * this plugin. They are called "optional" because they might not be
  42025. * available, in which case any overrides applicable to them will be
  42026. * ignored.
  42027. *
  42028. * It's possible however to make optional dependencies non-optional.
  42029. * If the setting "strict_plugin_dependencies" is set to true,
  42030. * an error will be raised if the plugin is not found.
  42031. *
  42032. * NB: These plugins need to have already been loaded via require.js.
  42033. */
  42034. dependencies: ["converse-singleton", "converse-controlbox", "converse-muc", "converse-bookmarks"],
  42035. initialize: function initialize() {
  42036. /* The initialize function gets called as soon as the plugin is
  42037. * loaded by converse.js's plugin machinery.
  42038. */
  42039. var _converse = this._converse,
  42040. __ = _converse.__;
  42041. _converse.OpenRooms = Backbone.Collection.extend({
  42042. comparator: function comparator(room) {
  42043. if (room.get('bookmarked')) {
  42044. var bookmark = _.head(_converse.bookmarksview.model.where({
  42045. 'jid': room.get('jid')
  42046. }));
  42047. return bookmark.get('name');
  42048. } else {
  42049. return room.get('name');
  42050. }
  42051. },
  42052. initialize: function initialize() {
  42053. _converse.chatboxes.on('add', this.onChatBoxAdded, this);
  42054. _converse.chatboxes.on('change:hidden', this.onChatBoxChanged, this);
  42055. _converse.chatboxes.on('change:bookmarked', this.onChatBoxChanged, this);
  42056. _converse.chatboxes.on('change:name', this.onChatBoxChanged, this);
  42057. _converse.chatboxes.on('change:num_unread', this.onChatBoxChanged, this);
  42058. _converse.chatboxes.on('change:num_unread_general', this.onChatBoxChanged, this);
  42059. _converse.chatboxes.on('remove', this.onChatBoxRemoved, this);
  42060. this.reset(_.map(_converse.chatboxes.where({
  42061. 'type': 'chatroom'
  42062. }), 'attributes'));
  42063. },
  42064. onChatBoxAdded: function onChatBoxAdded(item) {
  42065. if (item.get('type') === 'chatroom') {
  42066. this.create(item.attributes);
  42067. }
  42068. },
  42069. onChatBoxChanged: function onChatBoxChanged(item) {
  42070. if (item.get('type') === 'chatroom') {
  42071. var room = this.get(item.get('jid'));
  42072. if (!_.isNil(room)) {
  42073. room.set(item.attributes);
  42074. }
  42075. }
  42076. },
  42077. onChatBoxRemoved: function onChatBoxRemoved(item) {
  42078. if (item.get('type') === 'chatroom') {
  42079. var room = this.get(item.get('jid'));
  42080. this.remove(room);
  42081. }
  42082. }
  42083. });
  42084. _converse.RoomsList = Backbone.Model.extend({
  42085. defaults: {
  42086. "toggle-state": _converse.OPENED
  42087. }
  42088. });
  42089. _converse.RoomsListElementView = Backbone.VDOMView.extend({
  42090. events: {
  42091. 'click .room-info': 'showRoomDetailsModal'
  42092. },
  42093. initialize: function initialize() {
  42094. this.model.on('destroy', this.remove, this);
  42095. this.model.on('remove', this.remove, this);
  42096. this.model.on('change:bookmarked', this.render, this);
  42097. this.model.on('change:hidden', this.render, this);
  42098. this.model.on('change:name', this.render, this);
  42099. this.model.on('change:num_unread', this.render, this);
  42100. this.model.on('change:num_unread_general', this.render, this);
  42101. },
  42102. toHTML: function toHTML() {
  42103. return tpl_rooms_list_item(_.extend(this.model.toJSON(), {
  42104. // XXX: By the time this renders, the _converse.bookmarks
  42105. // collection should already exist if bookmarks are
  42106. // supported by the XMPP server. So we can use it
  42107. // as a check for support (other ways of checking are async).
  42108. 'allow_bookmarks': _converse.allow_bookmarks && _converse.bookmarks,
  42109. 'currently_open': _converse.isSingleton() && !this.model.get('hidden'),
  42110. 'info_leave_room': __('Leave this groupchat'),
  42111. 'info_remove_bookmark': __('Unbookmark this groupchat'),
  42112. 'info_add_bookmark': __('Bookmark this groupchat'),
  42113. 'info_title': __('Show more information on this groupchat'),
  42114. 'name': this.getRoomsListElementName(),
  42115. 'open_title': __('Click to open this groupchat')
  42116. }));
  42117. },
  42118. showRoomDetailsModal: function showRoomDetailsModal(ev) {
  42119. var room = _converse.chatboxes.get(this.model.get('jid'));
  42120. ev.preventDefault();
  42121. if (_.isUndefined(room.room_details_modal)) {
  42122. room.room_details_modal = new _converse.RoomDetailsModal({
  42123. 'model': room
  42124. });
  42125. }
  42126. room.room_details_modal.show(ev);
  42127. },
  42128. getRoomsListElementName: function getRoomsListElementName() {
  42129. if (this.model.get('bookmarked') && _converse.bookmarksview) {
  42130. var bookmark = _.head(_converse.bookmarksview.model.where({
  42131. 'jid': this.model.get('jid')
  42132. }));
  42133. return bookmark.get('name');
  42134. } else {
  42135. return this.model.get('name');
  42136. }
  42137. }
  42138. });
  42139. _converse.RoomsListView = Backbone.OrderedListView.extend({
  42140. tagName: 'div',
  42141. className: 'open-rooms-list list-container rooms-list-container',
  42142. events: {
  42143. 'click .add-bookmark': 'addBookmark',
  42144. 'click .close-room': 'closeRoom',
  42145. 'click .list-toggle': 'toggleRoomsList',
  42146. 'click .remove-bookmark': 'removeBookmark',
  42147. 'click .open-room': 'openRoom'
  42148. },
  42149. listSelector: '.rooms-list',
  42150. ItemView: _converse.RoomsListElementView,
  42151. subviewIndex: 'jid',
  42152. initialize: function initialize() {
  42153. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  42154. this.model.on('add', this.showOrHide, this);
  42155. this.model.on('remove', this.showOrHide, this);
  42156. var storage = _converse.config.get('storage'),
  42157. id = b64_sha1("converse.roomslist".concat(_converse.bare_jid));
  42158. this.list_model = new _converse.RoomsList({
  42159. 'id': id
  42160. });
  42161. this.list_model.browserStorage = new Backbone.BrowserStorage[storage](id);
  42162. this.list_model.fetch();
  42163. this.render();
  42164. this.sortAndPositionAllItems();
  42165. },
  42166. render: function render() {
  42167. this.el.innerHTML = tpl_rooms_list({
  42168. 'toggle_state': this.list_model.get('toggle-state'),
  42169. 'desc_rooms': __('Click to toggle the list of open groupchats'),
  42170. 'label_rooms': __('Open Groupchats'),
  42171. '_converse': _converse
  42172. });
  42173. if (this.list_model.get('toggle-state') !== _converse.OPENED) {
  42174. this.el.querySelector('.open-rooms-list').classList.add('collapsed');
  42175. }
  42176. this.showOrHide();
  42177. this.insertIntoControlBox();
  42178. return this;
  42179. },
  42180. insertIntoControlBox: function insertIntoControlBox() {
  42181. var controlboxview = _converse.chatboxviews.get('controlbox');
  42182. if (!_.isUndefined(controlboxview) && !u.rootContains(_converse.root, this.el)) {
  42183. var el = controlboxview.el.querySelector('.open-rooms-list');
  42184. if (!_.isNull(el)) {
  42185. el.parentNode.replaceChild(this.el, el);
  42186. }
  42187. }
  42188. },
  42189. hide: function hide() {
  42190. u.hideElement(this.el);
  42191. },
  42192. show: function show() {
  42193. u.showElement(this.el);
  42194. },
  42195. openRoom: function openRoom(ev) {
  42196. ev.preventDefault();
  42197. var name = ev.target.textContent;
  42198. var jid = ev.target.getAttribute('data-room-jid');
  42199. var data = {
  42200. 'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
  42201. };
  42202. _converse.api.rooms.open(jid, data);
  42203. },
  42204. closeRoom: function closeRoom(ev) {
  42205. ev.preventDefault();
  42206. var name = ev.target.getAttribute('data-room-name');
  42207. var jid = ev.target.getAttribute('data-room-jid');
  42208. if (confirm(__("Are you sure you want to leave the groupchat %1$s?", name))) {
  42209. // TODO: replace with API call
  42210. _converse.chatboxviews.get(jid).close();
  42211. }
  42212. },
  42213. showOrHide: function showOrHide(item) {
  42214. if (!this.model.models.length) {
  42215. u.hideElement(this.el);
  42216. } else {
  42217. u.showElement(this.el);
  42218. }
  42219. },
  42220. removeBookmark: _converse.removeBookmarkViaEvent,
  42221. addBookmark: _converse.addBookmarkViaEvent,
  42222. toggleRoomsList: function toggleRoomsList(ev) {
  42223. var _this = this;
  42224. if (ev && ev.preventDefault) {
  42225. ev.preventDefault();
  42226. }
  42227. var icon_el = ev.target.querySelector('.fa');
  42228. if (icon_el.classList.contains("fa-caret-down")) {
  42229. u.slideIn(this.el.querySelector('.open-rooms-list')).then(function () {
  42230. _this.list_model.save({
  42231. 'toggle-state': _converse.CLOSED
  42232. });
  42233. icon_el.classList.remove("fa-caret-down");
  42234. icon_el.classList.add("fa-caret-right");
  42235. });
  42236. } else {
  42237. u.slideOut(this.el.querySelector('.open-rooms-list')).then(function () {
  42238. _this.list_model.save({
  42239. 'toggle-state': _converse.OPENED
  42240. });
  42241. icon_el.classList.remove("fa-caret-right");
  42242. icon_el.classList.add("fa-caret-down");
  42243. });
  42244. }
  42245. }
  42246. });
  42247. var initRoomsListView = function initRoomsListView() {
  42248. var storage = _converse.config.get('storage'),
  42249. id = b64_sha1("converse.open-rooms-{_converse.bare_jid}"),
  42250. model = new _converse.OpenRooms();
  42251. model.browserStorage = new Backbone.BrowserStorage[storage](id);
  42252. _converse.rooms_list_view = new _converse.RoomsListView({
  42253. 'model': model
  42254. });
  42255. };
  42256. if (_converse.allow_bookmarks) {
  42257. u.onMultipleEvents([{
  42258. 'object': _converse,
  42259. 'event': 'chatBoxesFetched'
  42260. }, {
  42261. 'object': _converse,
  42262. 'event': 'roomsPanelRendered'
  42263. }, {
  42264. 'object': _converse,
  42265. 'event': 'bookmarksInitialized'
  42266. }], initRoomsListView);
  42267. } else {
  42268. u.onMultipleEvents([{
  42269. 'object': _converse,
  42270. 'event': 'chatBoxesFetched'
  42271. }, {
  42272. 'object': _converse,
  42273. 'event': 'roomsPanelRendered'
  42274. }], initRoomsListView);
  42275. }
  42276. _converse.api.listen.on('reconnected', initRoomsListView);
  42277. }
  42278. });
  42279. });
  42280. /***/ }),
  42281. /***/ "./src/converse-roster.js":
  42282. /*!********************************!*\
  42283. !*** ./src/converse-roster.js ***!
  42284. \********************************/
  42285. /*! no static exports found */
  42286. /***/ (function(module, exports, __webpack_require__) {
  42287. "use strict";
  42288. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  42289. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  42290. // Converse.js
  42291. // http://conversejs.org
  42292. //
  42293. // Copyright (c) 2012-2018, the Converse.js developers
  42294. // Licensed under the Mozilla Public License (MPLv2)
  42295. (function (root, factory) {
  42296. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  42297. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  42298. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  42299. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  42300. })(void 0, function (converse) {
  42301. "use strict";
  42302. var _converse$env = converse.env,
  42303. Backbone = _converse$env.Backbone,
  42304. Promise = _converse$env.Promise,
  42305. Strophe = _converse$env.Strophe,
  42306. $iq = _converse$env.$iq,
  42307. $pres = _converse$env.$pres,
  42308. b64_sha1 = _converse$env.b64_sha1,
  42309. moment = _converse$env.moment,
  42310. sizzle = _converse$env.sizzle,
  42311. _ = _converse$env._;
  42312. var u = converse.env.utils;
  42313. converse.plugins.add('converse-roster', {
  42314. dependencies: ["converse-vcard"],
  42315. initialize: function initialize() {
  42316. /* The initialize function gets called as soon as the plugin is
  42317. * loaded by converse.js's plugin machinery.
  42318. */
  42319. var _converse = this._converse,
  42320. __ = _converse.__;
  42321. _converse.api.settings.update({
  42322. 'allow_contact_requests': true,
  42323. 'auto_subscribe': false,
  42324. 'synchronize_availability': true
  42325. });
  42326. _converse.api.promises.add(['cachedRoster', 'roster', 'rosterContactsFetched', 'rosterGroupsFetched', 'rosterInitialized']);
  42327. _converse.registerPresenceHandler = function () {
  42328. _converse.unregisterPresenceHandler();
  42329. _converse.presence_ref = _converse.connection.addHandler(function (presence) {
  42330. _converse.roster.presenceHandler(presence);
  42331. return true;
  42332. }, null, 'presence', null);
  42333. };
  42334. _converse.initRoster = function () {
  42335. /* Initialize the Bakcbone collections that represent the contats
  42336. * roster and the roster groups.
  42337. */
  42338. var storage = _converse.config.get('storage');
  42339. _converse.roster = new _converse.RosterContacts();
  42340. _converse.roster.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1("converse.contacts-".concat(_converse.bare_jid)));
  42341. _converse.roster.data = new Backbone.Model();
  42342. var id = b64_sha1("converse-roster-model-".concat(_converse.bare_jid));
  42343. _converse.roster.data.id = id;
  42344. _converse.roster.data.browserStorage = new Backbone.BrowserStorage[storage](id);
  42345. _converse.roster.data.fetch();
  42346. _converse.rostergroups = new _converse.RosterGroups();
  42347. _converse.rostergroups.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1("converse.roster.groups".concat(_converse.bare_jid)));
  42348. _converse.emit('rosterInitialized');
  42349. };
  42350. _converse.populateRoster = function () {
  42351. var ignore_cache = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  42352. /* Fetch all the roster groups, and then the roster contacts.
  42353. * Emit an event after fetching is done in each case.
  42354. *
  42355. * Parameters:
  42356. * (Bool) ignore_cache - If set to to true, the local cache
  42357. * will be ignored it's guaranteed that the XMPP server
  42358. * will be queried for the roster.
  42359. */
  42360. if (ignore_cache) {
  42361. _converse.send_initial_presence = true;
  42362. _converse.roster.fetchFromServer().then(function () {
  42363. _converse.emit('rosterContactsFetched');
  42364. _converse.sendInitialPresence();
  42365. }).catch(function (reason) {
  42366. _converse.log(reason, Strophe.LogLevel.ERROR);
  42367. _converse.sendInitialPresence();
  42368. });
  42369. } else {
  42370. _converse.rostergroups.fetchRosterGroups().then(function () {
  42371. _converse.emit('rosterGroupsFetched');
  42372. return _converse.roster.fetchRosterContacts();
  42373. }).then(function () {
  42374. _converse.emit('rosterContactsFetched');
  42375. _converse.sendInitialPresence();
  42376. }).catch(function (reason) {
  42377. _converse.log(reason, Strophe.LogLevel.ERROR);
  42378. _converse.sendInitialPresence();
  42379. });
  42380. }
  42381. };
  42382. _converse.Presence = Backbone.Model.extend({
  42383. defaults: function defaults() {
  42384. return {
  42385. 'show': 'offline',
  42386. 'resources': {}
  42387. };
  42388. },
  42389. getHighestPriorityResource: function getHighestPriorityResource() {
  42390. /* Return the resource with the highest priority.
  42391. *
  42392. * If multiple resources have the same priority, take the
  42393. * latest one.
  42394. */
  42395. var resources = this.get('resources');
  42396. if (_.isObject(resources) && _.size(resources)) {
  42397. var val = _.flow(_.values, _.partial(_.sortBy, _, ['priority', 'timestamp']), _.reverse)(resources)[0];
  42398. if (!_.isUndefined(val)) {
  42399. return val;
  42400. }
  42401. }
  42402. },
  42403. addResource: function addResource(presence) {
  42404. /* Adds a new resource and it's associated attributes as taken
  42405. * from the passed in presence stanza.
  42406. *
  42407. * Also updates the presence if the resource has higher priority (and is newer).
  42408. */
  42409. var jid = presence.getAttribute('from'),
  42410. show = _.propertyOf(presence.querySelector('show'))('textContent') || 'online',
  42411. resource = Strophe.getResourceFromJid(jid),
  42412. delay = sizzle("delay[xmlns=\"".concat(Strophe.NS.DELAY, "\"]"), presence).pop(),
  42413. timestamp = _.isNil(delay) ? moment().format() : moment(delay.getAttribute('stamp')).format();
  42414. var priority = _.propertyOf(presence.querySelector('priority'))('textContent') || 0;
  42415. priority = _.isNaN(parseInt(priority, 10)) ? 0 : parseInt(priority, 10);
  42416. var resources = _.isObject(this.get('resources')) ? this.get('resources') : {};
  42417. resources[resource] = {
  42418. 'name': resource,
  42419. 'priority': priority,
  42420. 'show': show,
  42421. 'timestamp': timestamp
  42422. };
  42423. var changed = {
  42424. 'resources': resources
  42425. };
  42426. var hpr = this.getHighestPriorityResource();
  42427. if (priority == hpr.priority && timestamp == hpr.timestamp) {
  42428. // Only set the "global" presence if this is the newest resource
  42429. // with the highest priority
  42430. changed.show = show;
  42431. }
  42432. this.save(changed);
  42433. return resources;
  42434. },
  42435. removeResource: function removeResource(resource) {
  42436. /* Remove the passed in resource from the resources map.
  42437. *
  42438. * Also redetermines the presence given that there's one less
  42439. * resource.
  42440. */
  42441. var resources = this.get('resources');
  42442. if (!_.isObject(resources)) {
  42443. resources = {};
  42444. } else {
  42445. delete resources[resource];
  42446. }
  42447. this.save({
  42448. 'resources': resources,
  42449. 'show': _.propertyOf(this.getHighestPriorityResource())('show') || 'offline'
  42450. });
  42451. }
  42452. });
  42453. _converse.Presences = Backbone.Collection.extend({
  42454. model: _converse.Presence
  42455. });
  42456. _converse.ModelWithVCardAndPresence = Backbone.Model.extend({
  42457. initialize: function initialize() {
  42458. this.setVCard();
  42459. this.setPresence();
  42460. },
  42461. setVCard: function setVCard() {
  42462. var jid = this.get('jid');
  42463. this.vcard = _converse.vcards.findWhere({
  42464. 'jid': jid
  42465. }) || _converse.vcards.create({
  42466. 'jid': jid
  42467. });
  42468. },
  42469. setPresence: function setPresence() {
  42470. var jid = this.get('jid');
  42471. this.presence = _converse.presences.findWhere({
  42472. 'jid': jid
  42473. }) || _converse.presences.create({
  42474. 'jid': jid
  42475. });
  42476. }
  42477. });
  42478. _converse.RosterContact = _converse.ModelWithVCardAndPresence.extend({
  42479. defaults: {
  42480. 'chat_state': undefined,
  42481. 'image': _converse.DEFAULT_IMAGE,
  42482. 'image_type': _converse.DEFAULT_IMAGE_TYPE,
  42483. 'num_unread': 0,
  42484. 'status': ''
  42485. },
  42486. initialize: function initialize(attributes) {
  42487. var _this = this;
  42488. _converse.ModelWithVCardAndPresence.prototype.initialize.apply(this, arguments);
  42489. var jid = attributes.jid,
  42490. bare_jid = Strophe.getBareJidFromJid(jid).toLowerCase(),
  42491. resource = Strophe.getResourceFromJid(jid);
  42492. attributes.jid = bare_jid;
  42493. this.set(_.assignIn({
  42494. 'groups': [],
  42495. 'id': bare_jid,
  42496. 'jid': bare_jid,
  42497. 'user_id': Strophe.getNodeFromJid(jid)
  42498. }, attributes));
  42499. this.setChatBox();
  42500. this.presence.on('change:show', function () {
  42501. return _converse.emit('contactPresenceChanged', _this);
  42502. });
  42503. this.presence.on('change:show', function () {
  42504. return _this.trigger('presenceChanged');
  42505. });
  42506. },
  42507. setChatBox: function setChatBox() {
  42508. var chatbox = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  42509. chatbox = chatbox || _converse.chatboxes.get(this.get('jid'));
  42510. if (chatbox) {
  42511. this.chatbox = chatbox;
  42512. this.chatbox.on('change:hidden', this.render, this);
  42513. }
  42514. },
  42515. getDisplayName: function getDisplayName() {
  42516. return this.get('nickname') || this.vcard.get('nickname') || this.vcard.get('fullname') || this.get('jid');
  42517. },
  42518. getFullname: function getFullname() {
  42519. return this.vcard.get('fullname');
  42520. },
  42521. subscribe: function subscribe(message) {
  42522. /* Send a presence subscription request to this roster contact
  42523. *
  42524. * Parameters:
  42525. * (String) message - An optional message to explain the
  42526. * reason for the subscription request.
  42527. */
  42528. var pres = $pres({
  42529. to: this.get('jid'),
  42530. type: "subscribe"
  42531. });
  42532. if (message && message !== "") {
  42533. pres.c("status").t(message).up();
  42534. }
  42535. var nick = _converse.xmppstatus.vcard.get('nickname') || _converse.xmppstatus.vcard.get('fullname');
  42536. if (nick) {
  42537. pres.c('nick', {
  42538. 'xmlns': Strophe.NS.NICK
  42539. }).t(nick).up();
  42540. }
  42541. _converse.connection.send(pres);
  42542. this.save('ask', "subscribe"); // ask === 'subscribe' Means we have asked to subscribe to them.
  42543. return this;
  42544. },
  42545. ackSubscribe: function ackSubscribe() {
  42546. /* Upon receiving the presence stanza of type "subscribed",
  42547. * the user SHOULD acknowledge receipt of that subscription
  42548. * state notification by sending a presence stanza of type
  42549. * "subscribe" to the contact
  42550. */
  42551. _converse.connection.send($pres({
  42552. 'type': 'subscribe',
  42553. 'to': this.get('jid')
  42554. }));
  42555. },
  42556. ackUnsubscribe: function ackUnsubscribe() {
  42557. /* Upon receiving the presence stanza of type "unsubscribed",
  42558. * the user SHOULD acknowledge receipt of that subscription state
  42559. * notification by sending a presence stanza of type "unsubscribe"
  42560. * this step lets the user's server know that it MUST no longer
  42561. * send notification of the subscription state change to the user.
  42562. * Parameters:
  42563. * (String) jid - The Jabber ID of the user who is unsubscribing
  42564. */
  42565. _converse.connection.send($pres({
  42566. 'type': 'unsubscribe',
  42567. 'to': this.get('jid')
  42568. }));
  42569. this.removeFromRoster();
  42570. this.destroy();
  42571. },
  42572. unauthorize: function unauthorize(message) {
  42573. /* Unauthorize this contact's presence subscription
  42574. * Parameters:
  42575. * (String) message - Optional message to send to the person being unauthorized
  42576. */
  42577. _converse.rejectPresenceSubscription(this.get('jid'), message);
  42578. return this;
  42579. },
  42580. authorize: function authorize(message) {
  42581. /* Authorize presence subscription
  42582. * Parameters:
  42583. * (String) message - Optional message to send to the person being authorized
  42584. */
  42585. var pres = $pres({
  42586. 'to': this.get('jid'),
  42587. 'type': "subscribed"
  42588. });
  42589. if (message && message !== "") {
  42590. pres.c("status").t(message);
  42591. }
  42592. _converse.connection.send(pres);
  42593. return this;
  42594. },
  42595. removeFromRoster: function removeFromRoster(callback, errback) {
  42596. /* Instruct the XMPP server to remove this contact from our roster
  42597. * Parameters:
  42598. * (Function) callback
  42599. */
  42600. var iq = $iq({
  42601. type: 'set'
  42602. }).c('query', {
  42603. xmlns: Strophe.NS.ROSTER
  42604. }).c('item', {
  42605. jid: this.get('jid'),
  42606. subscription: "remove"
  42607. });
  42608. _converse.connection.sendIQ(iq, callback, errback);
  42609. return this;
  42610. }
  42611. });
  42612. _converse.RosterContacts = Backbone.Collection.extend({
  42613. model: _converse.RosterContact,
  42614. comparator: function comparator(contact1, contact2) {
  42615. var status1 = contact1.presence.get('show') || 'offline';
  42616. var status2 = contact2.presence.get('show') || 'offline';
  42617. if (_converse.STATUS_WEIGHTS[status1] === _converse.STATUS_WEIGHTS[status2]) {
  42618. var name1 = contact1.getDisplayName().toLowerCase();
  42619. var name2 = contact2.getDisplayName().toLowerCase();
  42620. return name1 < name2 ? -1 : name1 > name2 ? 1 : 0;
  42621. } else {
  42622. return _converse.STATUS_WEIGHTS[status1] < _converse.STATUS_WEIGHTS[status2] ? -1 : 1;
  42623. }
  42624. },
  42625. onConnected: function onConnected() {
  42626. /* Called as soon as the connection has been established
  42627. * (either after initial login, or after reconnection).
  42628. *
  42629. * Use the opportunity to register stanza handlers.
  42630. */
  42631. this.registerRosterHandler();
  42632. this.registerRosterXHandler();
  42633. },
  42634. registerRosterHandler: function registerRosterHandler() {
  42635. /* Register a handler for roster IQ "set" stanzas, which update
  42636. * roster contacts.
  42637. */
  42638. _converse.connection.addHandler(function (iq) {
  42639. _converse.roster.onRosterPush(iq);
  42640. return true;
  42641. }, Strophe.NS.ROSTER, 'iq', "set");
  42642. },
  42643. registerRosterXHandler: function registerRosterXHandler() {
  42644. /* Register a handler for RosterX message stanzas, which are
  42645. * used to suggest roster contacts to a user.
  42646. */
  42647. var t = 0;
  42648. _converse.connection.addHandler(function (msg) {
  42649. window.setTimeout(function () {
  42650. _converse.connection.flush();
  42651. _converse.roster.subscribeToSuggestedItems.bind(_converse.roster)(msg);
  42652. }, t);
  42653. t += msg.querySelectorAll('item').length * 250;
  42654. return true;
  42655. }, Strophe.NS.ROSTERX, 'message', null);
  42656. },
  42657. fetchRosterContacts: function fetchRosterContacts() {
  42658. var _this2 = this;
  42659. /* Fetches the roster contacts, first by trying the
  42660. * sessionStorage cache, and if that's empty, then by querying
  42661. * the XMPP server.
  42662. *
  42663. * Returns a promise which resolves once the contacts have been
  42664. * fetched.
  42665. */
  42666. var that = this;
  42667. return new Promise(function (resolve, reject) {
  42668. _this2.fetch({
  42669. 'add': true,
  42670. 'silent': true,
  42671. success: function success(collection) {
  42672. if (collection.length === 0 || that.rosterVersioningSupported() && !_converse.session.get('roster_fetched')) {
  42673. _converse.send_initial_presence = true;
  42674. _converse.roster.fetchFromServer().then(resolve).catch(reject);
  42675. } else {
  42676. _converse.emit('cachedRoster', collection);
  42677. resolve();
  42678. }
  42679. }
  42680. });
  42681. });
  42682. },
  42683. subscribeToSuggestedItems: function subscribeToSuggestedItems(msg) {
  42684. _.each(msg.querySelectorAll('item'), function (item) {
  42685. if (item.getAttribute('action') === 'add') {
  42686. _converse.roster.addAndSubscribe(item.getAttribute('jid'), _converse.xmppstatus.vcard.get('nickname') || _converse.xmppstatus.vcard.get('fullname'));
  42687. }
  42688. });
  42689. return true;
  42690. },
  42691. isSelf: function isSelf(jid) {
  42692. return u.isSameBareJID(jid, _converse.connection.jid);
  42693. },
  42694. addAndSubscribe: function addAndSubscribe(jid, name, groups, message, attributes) {
  42695. /* Add a roster contact and then once we have confirmation from
  42696. * the XMPP server we subscribe to that contact's presence updates.
  42697. * Parameters:
  42698. * (String) jid - The Jabber ID of the user being added and subscribed to.
  42699. * (String) name - The name of that user
  42700. * (Array of Strings) groups - Any roster groups the user might belong to
  42701. * (String) message - An optional message to explain the
  42702. * reason for the subscription request.
  42703. * (Object) attributes - Any additional attributes to be stored on the user's model.
  42704. */
  42705. var handler = function handler(contact) {
  42706. if (_instanceof(contact, _converse.RosterContact)) {
  42707. contact.subscribe(message);
  42708. }
  42709. };
  42710. this.addContactToRoster(jid, name, groups, attributes).then(handler, handler);
  42711. },
  42712. sendContactAddIQ: function sendContactAddIQ(jid, name, groups, callback, errback) {
  42713. /* Send an IQ stanza to the XMPP server to add a new roster contact.
  42714. *
  42715. * Parameters:
  42716. * (String) jid - The Jabber ID of the user being added
  42717. * (String) name - The name of that user
  42718. * (Array of Strings) groups - Any roster groups the user might belong to
  42719. * (Function) callback - A function to call once the IQ is returned
  42720. * (Function) errback - A function to call if an error occurred
  42721. */
  42722. name = _.isEmpty(name) ? jid : name;
  42723. var iq = $iq({
  42724. type: 'set'
  42725. }).c('query', {
  42726. xmlns: Strophe.NS.ROSTER
  42727. }).c('item', {
  42728. jid: jid,
  42729. name: name
  42730. });
  42731. _.each(groups, function (group) {
  42732. iq.c('group').t(group).up();
  42733. });
  42734. _converse.connection.sendIQ(iq, callback, errback);
  42735. },
  42736. addContactToRoster: function addContactToRoster(jid, name, groups, attributes) {
  42737. var _this3 = this;
  42738. /* Adds a RosterContact instance to _converse.roster and
  42739. * registers the contact on the XMPP server.
  42740. * Returns a promise which is resolved once the XMPP server has
  42741. * responded.
  42742. *
  42743. * Parameters:
  42744. * (String) jid - The Jabber ID of the user being added and subscribed to.
  42745. * (String) name - The name of that user
  42746. * (Array of Strings) groups - Any roster groups the user might belong to
  42747. * (Object) attributes - Any additional attributes to be stored on the user's model.
  42748. */
  42749. return new Promise(function (resolve, reject) {
  42750. groups = groups || [];
  42751. _this3.sendContactAddIQ(jid, name, groups, function () {
  42752. var contact = _this3.create(_.assignIn({
  42753. 'ask': undefined,
  42754. 'nickname': name,
  42755. groups: groups,
  42756. jid: jid,
  42757. 'requesting': false,
  42758. 'subscription': 'none'
  42759. }, attributes), {
  42760. sort: false
  42761. });
  42762. resolve(contact);
  42763. }, function (err) {
  42764. alert(__('Sorry, there was an error while trying to add %1$s as a contact.', name));
  42765. _converse.log(err, Strophe.LogLevel.ERROR);
  42766. resolve(err);
  42767. });
  42768. });
  42769. },
  42770. subscribeBack: function subscribeBack(bare_jid, presence) {
  42771. var contact = this.get(bare_jid);
  42772. if (_instanceof(contact, _converse.RosterContact)) {
  42773. contact.authorize().subscribe();
  42774. } else {
  42775. // Can happen when a subscription is retried or roster was deleted
  42776. var handler = function handler(contact) {
  42777. if (_instanceof(contact, _converse.RosterContact)) {
  42778. contact.authorize().subscribe();
  42779. }
  42780. };
  42781. var nickname = _.get(sizzle("nick[xmlns=\"".concat(Strophe.NS.NICK, "\"]"), presence).pop(), 'textContent', null);
  42782. this.addContactToRoster(bare_jid, nickname, [], {
  42783. 'subscription': 'from'
  42784. }).then(handler, handler);
  42785. }
  42786. },
  42787. getNumOnlineContacts: function getNumOnlineContacts() {
  42788. var ignored = ['offline', 'unavailable'];
  42789. if (_converse.show_only_online_users) {
  42790. ignored = _.union(ignored, ['dnd', 'xa', 'away']);
  42791. }
  42792. return _.sum(this.models.filter(function (model) {
  42793. return !_.includes(ignored, model.presence.get('show'));
  42794. }));
  42795. },
  42796. onRosterPush: function onRosterPush(iq) {
  42797. /* Handle roster updates from the XMPP server.
  42798. * See: https://xmpp.org/rfcs/rfc6121.html#roster-syntax-actions-push
  42799. *
  42800. * Parameters:
  42801. * (XMLElement) IQ - The IQ stanza received from the XMPP server.
  42802. */
  42803. var id = iq.getAttribute('id');
  42804. var from = iq.getAttribute('from');
  42805. if (from && from !== _converse.connection.jid) {
  42806. // https://tools.ietf.org/html/rfc6121#page-15
  42807. //
  42808. // A receiving client MUST ignore the stanza unless it has no 'from'
  42809. // attribute (i.e., implicitly from the bare JID of the user's
  42810. // account) or it has a 'from' attribute whose value matches the
  42811. // user's bare JID <user@domainpart>.
  42812. return;
  42813. }
  42814. _converse.connection.send($iq({
  42815. type: 'result',
  42816. id: id,
  42817. from: _converse.connection.jid
  42818. }));
  42819. var query = sizzle("query[xmlns=\"".concat(Strophe.NS.ROSTER, "\"]"), iq).pop();
  42820. this.data.save('version', query.getAttribute('ver'));
  42821. var items = sizzle("item", query);
  42822. if (items.length > 1) {
  42823. _converse.log(iq, Strophe.LogLevel.ERROR);
  42824. throw new Error('Roster push query may not contain more than one "item" element.');
  42825. }
  42826. if (items.length === 0) {
  42827. _converse.log(iq, Strophe.LogLevel.WARN);
  42828. _converse.log('Received a roster push stanza without an "item" element.', Strophe.LogLevel.WARN);
  42829. return;
  42830. }
  42831. this.updateContact(items.pop());
  42832. _converse.emit('rosterPush', iq);
  42833. return;
  42834. },
  42835. rosterVersioningSupported: function rosterVersioningSupported() {
  42836. return _converse.api.disco.stream.getFeature('ver', 'urn:xmpp:features:rosterver') && this.data.get('version');
  42837. },
  42838. fetchFromServer: function fetchFromServer() {
  42839. var _this4 = this;
  42840. /* Fetch the roster from the XMPP server */
  42841. return new Promise(function (resolve, reject) {
  42842. var iq = $iq({
  42843. 'type': 'get',
  42844. 'id': _converse.connection.getUniqueId('roster')
  42845. }).c('query', {
  42846. xmlns: Strophe.NS.ROSTER
  42847. });
  42848. if (_this4.rosterVersioningSupported()) {
  42849. iq.attrs({
  42850. 'ver': _this4.data.get('version')
  42851. });
  42852. }
  42853. var callback = _.flow(_this4.onReceivedFromServer.bind(_this4), resolve);
  42854. var errback = function errback(iq) {
  42855. var errmsg = "Error while trying to fetch roster from the server";
  42856. _converse.log(errmsg, Strophe.LogLevel.ERROR);
  42857. reject(new Error(errmsg));
  42858. };
  42859. return _converse.connection.sendIQ(iq, callback, errback);
  42860. });
  42861. },
  42862. onReceivedFromServer: function onReceivedFromServer(iq) {
  42863. var _this5 = this;
  42864. /* An IQ stanza containing the roster has been received from
  42865. * the XMPP server.
  42866. */
  42867. var query = sizzle("query[xmlns=\"".concat(Strophe.NS.ROSTER, "\"]"), iq).pop();
  42868. if (query) {
  42869. var items = sizzle("item", query);
  42870. _.each(items, function (item) {
  42871. return _this5.updateContact(item);
  42872. });
  42873. this.data.save('version', query.getAttribute('ver'));
  42874. _converse.session.save('roster_fetched', true);
  42875. }
  42876. _converse.emit('roster', iq);
  42877. },
  42878. updateContact: function updateContact(item) {
  42879. /* Update or create RosterContact models based on items
  42880. * received in the IQ from the server.
  42881. */
  42882. var jid = item.getAttribute('jid');
  42883. if (this.isSelf(jid)) {
  42884. return;
  42885. }
  42886. var contact = this.get(jid),
  42887. subscription = item.getAttribute("subscription"),
  42888. ask = item.getAttribute("ask"),
  42889. groups = _.map(item.getElementsByTagName('group'), Strophe.getText);
  42890. if (!contact) {
  42891. if (subscription === "none" && ask === null || subscription === "remove") {
  42892. return; // We're lazy when adding contacts.
  42893. }
  42894. this.create({
  42895. 'ask': ask,
  42896. 'nickname': item.getAttribute("name"),
  42897. 'groups': groups,
  42898. 'jid': jid,
  42899. 'subscription': subscription
  42900. }, {
  42901. sort: false
  42902. });
  42903. } else {
  42904. if (subscription === "remove") {
  42905. return contact.destroy();
  42906. } // We only find out about requesting contacts via the
  42907. // presence handler, so if we receive a contact
  42908. // here, we know they aren't requesting anymore.
  42909. // see docs/DEVELOPER.rst
  42910. contact.save({
  42911. 'subscription': subscription,
  42912. 'ask': ask,
  42913. 'requesting': null,
  42914. 'groups': groups
  42915. });
  42916. }
  42917. },
  42918. createRequestingContact: function createRequestingContact(presence) {
  42919. var bare_jid = Strophe.getBareJidFromJid(presence.getAttribute('from')),
  42920. nickname = _.get(sizzle("nick[xmlns=\"".concat(Strophe.NS.NICK, "\"]"), presence).pop(), 'textContent', null);
  42921. var user_data = {
  42922. 'jid': bare_jid,
  42923. 'subscription': 'none',
  42924. 'ask': null,
  42925. 'requesting': true,
  42926. 'nickname': nickname
  42927. };
  42928. _converse.emit('contactRequest', this.create(user_data));
  42929. },
  42930. handleIncomingSubscription: function handleIncomingSubscription(presence) {
  42931. var jid = presence.getAttribute('from'),
  42932. bare_jid = Strophe.getBareJidFromJid(jid),
  42933. contact = this.get(bare_jid);
  42934. if (!_converse.allow_contact_requests) {
  42935. _converse.rejectPresenceSubscription(jid, __("This client does not allow presence subscriptions"));
  42936. }
  42937. if (_converse.auto_subscribe) {
  42938. if (!contact || contact.get('subscription') !== 'to') {
  42939. this.subscribeBack(bare_jid, presence);
  42940. } else {
  42941. contact.authorize();
  42942. }
  42943. } else {
  42944. if (contact) {
  42945. if (contact.get('subscription') !== 'none') {
  42946. contact.authorize();
  42947. } else if (contact.get('ask') === "subscribe") {
  42948. contact.authorize();
  42949. }
  42950. } else {
  42951. this.createRequestingContact(presence);
  42952. }
  42953. }
  42954. },
  42955. handleOwnPresence: function handleOwnPresence(presence) {
  42956. var jid = presence.getAttribute('from'),
  42957. resource = Strophe.getResourceFromJid(jid),
  42958. presence_type = presence.getAttribute('type');
  42959. if (_converse.connection.jid !== jid && presence_type !== 'unavailable' && (_converse.synchronize_availability === true || _converse.synchronize_availability === resource)) {
  42960. // Another resource has changed its status and
  42961. // synchronize_availability option set to update,
  42962. // we'll update ours as well.
  42963. var show = _.propertyOf(presence.querySelector('show'))('textContent') || 'online';
  42964. _converse.xmppstatus.save({
  42965. 'status': show
  42966. }, {
  42967. 'silent': true
  42968. });
  42969. var status_message = _.propertyOf(presence.querySelector('status'))('textContent');
  42970. if (status_message) {
  42971. _converse.xmppstatus.save({
  42972. 'status_message': status_message
  42973. });
  42974. }
  42975. }
  42976. if (_converse.jid === jid && presence_type === 'unavailable') {
  42977. // XXX: We've received an "unavailable" presence from our
  42978. // own resource. Apparently this happens due to a
  42979. // Prosody bug, whereby we send an IQ stanza to remove
  42980. // a roster contact, and Prosody then sends
  42981. // "unavailable" globally, instead of directed to the
  42982. // particular user that's removed.
  42983. //
  42984. // Here is the bug report: https://prosody.im/issues/1121
  42985. //
  42986. // I'm not sure whether this might legitimately happen
  42987. // in other cases.
  42988. //
  42989. // As a workaround for now we simply send our presence again,
  42990. // otherwise we're treated as offline.
  42991. _converse.xmppstatus.sendPresence();
  42992. }
  42993. },
  42994. presenceHandler: function presenceHandler(presence) {
  42995. var presence_type = presence.getAttribute('type');
  42996. if (presence_type === 'error') {
  42997. return true;
  42998. }
  42999. var jid = presence.getAttribute('from'),
  43000. bare_jid = Strophe.getBareJidFromJid(jid);
  43001. if (this.isSelf(bare_jid)) {
  43002. return this.handleOwnPresence(presence);
  43003. } else if (sizzle("query[xmlns=\"".concat(Strophe.NS.MUC, "\"]"), presence).length) {
  43004. return; // Ignore MUC
  43005. }
  43006. var status_message = _.propertyOf(presence.querySelector('status'))('textContent'),
  43007. contact = this.get(bare_jid);
  43008. if (contact && status_message !== contact.get('status')) {
  43009. contact.save({
  43010. 'status': status_message
  43011. });
  43012. }
  43013. if (presence_type === 'subscribed' && contact) {
  43014. contact.ackSubscribe();
  43015. } else if (presence_type === 'unsubscribed' && contact) {
  43016. contact.ackUnsubscribe();
  43017. } else if (presence_type === 'unsubscribe') {
  43018. return;
  43019. } else if (presence_type === 'subscribe') {
  43020. this.handleIncomingSubscription(presence);
  43021. } else if (presence_type === 'unavailable' && contact) {
  43022. var resource = Strophe.getResourceFromJid(jid);
  43023. contact.presence.removeResource(resource);
  43024. } else if (contact) {
  43025. // presence_type is undefined
  43026. contact.presence.addResource(presence);
  43027. }
  43028. }
  43029. });
  43030. _converse.RosterGroup = Backbone.Model.extend({
  43031. initialize: function initialize(attributes) {
  43032. this.set(_.assignIn({
  43033. description: __('Click to hide these contacts'),
  43034. state: _converse.OPENED
  43035. }, attributes)); // Collection of contacts belonging to this group.
  43036. this.contacts = new _converse.RosterContacts();
  43037. }
  43038. });
  43039. _converse.RosterGroups = Backbone.Collection.extend({
  43040. model: _converse.RosterGroup,
  43041. fetchRosterGroups: function fetchRosterGroups() {
  43042. var _this6 = this;
  43043. /* Fetches all the roster groups from sessionStorage.
  43044. *
  43045. * Returns a promise which resolves once the groups have been
  43046. * returned.
  43047. */
  43048. return new Promise(function (resolve, reject) {
  43049. _this6.fetch({
  43050. silent: true,
  43051. // We need to first have all groups before
  43052. // we can start positioning them, so we set
  43053. // 'silent' to true.
  43054. success: resolve
  43055. });
  43056. });
  43057. }
  43058. });
  43059. _converse.unregisterPresenceHandler = function () {
  43060. if (!_.isUndefined(_converse.presence_ref)) {
  43061. _converse.connection.deleteHandler(_converse.presence_ref);
  43062. delete _converse.presence_ref;
  43063. }
  43064. };
  43065. /********** Event Handlers *************/
  43066. function updateUnreadCounter(chatbox) {
  43067. var contact = _converse.roster.findWhere({
  43068. 'jid': chatbox.get('jid')
  43069. });
  43070. if (!_.isUndefined(contact)) {
  43071. contact.save({
  43072. 'num_unread': chatbox.get('num_unread')
  43073. });
  43074. }
  43075. }
  43076. _converse.api.listen.on('chatBoxesInitialized', function () {
  43077. _converse.chatboxes.on('change:num_unread', updateUnreadCounter);
  43078. });
  43079. _converse.api.listen.on('beforeTearDown', _converse.unregisterPresenceHandler());
  43080. _converse.api.listen.on('afterTearDown', function () {
  43081. if (_converse.presences) {
  43082. _converse.presences.off().reset(); // Remove presences
  43083. }
  43084. });
  43085. _converse.api.listen.on('clearSession', function () {
  43086. if (_converse.presences) {
  43087. _converse.presences.browserStorage._clear();
  43088. }
  43089. });
  43090. _converse.api.listen.on('statusInitialized', function (reconnecting) {
  43091. if (!reconnecting) {
  43092. _converse.presences = new _converse.Presences();
  43093. _converse.presences.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.presences-".concat(_converse.bare_jid)));
  43094. _converse.presences.fetch();
  43095. }
  43096. _converse.emit('presencesInitialized', reconnecting);
  43097. });
  43098. _converse.api.listen.on('presencesInitialized', function (reconnecting) {
  43099. if (reconnecting) {
  43100. // No need to recreate the roster, otherwise we lose our
  43101. // cached data. However we still emit an event, to give
  43102. // event handlers a chance to register views for the
  43103. // roster and its groups, before we start populating.
  43104. _converse.emit('rosterReadyAfterReconnection');
  43105. } else {
  43106. _converse.registerIntervalHandler();
  43107. _converse.initRoster();
  43108. }
  43109. _converse.roster.onConnected();
  43110. _converse.populateRoster(reconnecting);
  43111. _converse.registerPresenceHandler();
  43112. });
  43113. /************************ API ************************/
  43114. // API methods only available to plugins
  43115. _.extend(_converse.api, {
  43116. /**
  43117. * @namespace _converse.api.contacts
  43118. * @memberOf _converse.api
  43119. */
  43120. 'contacts': {
  43121. /**
  43122. * This method is used to retrieve roster contacts.
  43123. *
  43124. * @method _converse.api.contacts.get
  43125. * @params {(string[]|string)} jid|jids The JID or JIDs of
  43126. * the contacts to be returned.
  43127. * @returns {(RosterContact[]|RosterContact)} [Backbone.Model](http://backbonejs.org/#Model)
  43128. * (or an array of them) representing the contact.
  43129. *
  43130. * @example
  43131. * // Fetch a single contact
  43132. * _converse.api.listen.on('rosterContactsFetched', function () {
  43133. * const contact = _converse.api.contacts.get('buddy@example.com')
  43134. * // ...
  43135. * });
  43136. *
  43137. * @example
  43138. * // To get multiple contacts, pass in an array of JIDs:
  43139. * _converse.api.listen.on('rosterContactsFetched', function () {
  43140. * const contacts = _converse.api.contacts.get(
  43141. * ['buddy1@example.com', 'buddy2@example.com']
  43142. * )
  43143. * // ...
  43144. * });
  43145. *
  43146. * @example
  43147. * // To return all contacts, simply call ``get`` without any parameters:
  43148. * _converse.api.listen.on('rosterContactsFetched', function () {
  43149. * const contacts = _converse.api.contacts.get();
  43150. * // ...
  43151. * });
  43152. */
  43153. 'get': function get(jids) {
  43154. var _getter = function _getter(jid) {
  43155. return _converse.roster.get(Strophe.getBareJidFromJid(jid)) || null;
  43156. };
  43157. if (_.isUndefined(jids)) {
  43158. jids = _converse.roster.pluck('jid');
  43159. } else if (_.isString(jids)) {
  43160. return _getter(jids);
  43161. }
  43162. return _.map(jids, _getter);
  43163. },
  43164. /**
  43165. * Add a contact.
  43166. *
  43167. * @method _converse.api.contacts.add
  43168. * @param {string} jid The JID of the contact to be added
  43169. * @param {string} [name] A custom name to show the user by
  43170. * in the roster.
  43171. * @example
  43172. * _converse.api.contacts.add('buddy@example.com')
  43173. * @example
  43174. * _converse.api.contacts.add('buddy@example.com', 'Buddy')
  43175. */
  43176. 'add': function add(jid, name) {
  43177. if (!_.isString(jid) || !_.includes(jid, '@')) {
  43178. throw new TypeError('contacts.add: invalid jid');
  43179. }
  43180. _converse.roster.addAndSubscribe(jid, _.isEmpty(name) ? jid : name);
  43181. }
  43182. }
  43183. });
  43184. }
  43185. });
  43186. });
  43187. /***/ }),
  43188. /***/ "./src/converse-rosterview.js":
  43189. /*!************************************!*\
  43190. !*** ./src/converse-rosterview.js ***!
  43191. \************************************/
  43192. /*! no static exports found */
  43193. /***/ (function(module, exports, __webpack_require__) {
  43194. "use strict";
  43195. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43196. // Converse.js
  43197. // http://conversejs.org
  43198. //
  43199. // Copyright (c) 2012-2018, the Converse.js developers
  43200. // Licensed under the Mozilla Public License (MPLv2)
  43201. (function (root, factory) {
  43202. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! formdata-polyfill */ "./node_modules/formdata-polyfill/FormData.js"), __webpack_require__(/*! templates/add_contact_modal.html */ "./src/templates/add_contact_modal.html"), __webpack_require__(/*! templates/group_header.html */ "./src/templates/group_header.html"), __webpack_require__(/*! templates/pending_contact.html */ "./src/templates/pending_contact.html"), __webpack_require__(/*! templates/requesting_contact.html */ "./src/templates/requesting_contact.html"), __webpack_require__(/*! templates/roster.html */ "./src/templates/roster.html"), __webpack_require__(/*! templates/roster_filter.html */ "./src/templates/roster_filter.html"), __webpack_require__(/*! templates/roster_item.html */ "./src/templates/roster_item.html"), __webpack_require__(/*! templates/search_contact.html */ "./src/templates/search_contact.html"), __webpack_require__(/*! awesomplete */ "awesomplete"), __webpack_require__(/*! converse-chatboxes */ "./src/converse-chatboxes.js"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  43203. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  43204. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  43205. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43206. })(void 0, function (converse, _FormData, tpl_add_contact_modal, tpl_group_header, tpl_pending_contact, tpl_requesting_contact, tpl_roster, tpl_roster_filter, tpl_roster_item, tpl_search_contact, Awesomplete) {
  43207. "use strict";
  43208. var _converse$env = converse.env,
  43209. Backbone = _converse$env.Backbone,
  43210. Strophe = _converse$env.Strophe,
  43211. $iq = _converse$env.$iq,
  43212. b64_sha1 = _converse$env.b64_sha1,
  43213. sizzle = _converse$env.sizzle,
  43214. _ = _converse$env._;
  43215. var u = converse.env.utils;
  43216. converse.plugins.add('converse-rosterview', {
  43217. dependencies: ["converse-roster", "converse-modal"],
  43218. overrides: {
  43219. // Overrides mentioned here will be picked up by converse.js's
  43220. // plugin architecture they will replace existing methods on the
  43221. // relevant objects or classes.
  43222. //
  43223. // New functions which don't exist yet can also be added.
  43224. afterReconnected: function afterReconnected() {
  43225. this.__super__.afterReconnected.apply(this, arguments);
  43226. },
  43227. tearDown: function tearDown() {
  43228. /* Remove the rosterview when tearing down. It gets created
  43229. * anew when reconnecting or logging in.
  43230. */
  43231. this.__super__.tearDown.apply(this, arguments);
  43232. if (!_.isUndefined(this.rosterview)) {
  43233. this.rosterview.remove();
  43234. }
  43235. },
  43236. RosterGroups: {
  43237. comparator: function comparator() {
  43238. // RosterGroupsComparator only gets set later (once i18n is
  43239. // set up), so we need to wrap it in this nameless function.
  43240. var _converse = this.__super__._converse;
  43241. return _converse.RosterGroupsComparator.apply(this, arguments);
  43242. }
  43243. }
  43244. },
  43245. initialize: function initialize() {
  43246. /* The initialize function gets called as soon as the plugin is
  43247. * loaded by converse.js's plugin machinery.
  43248. */
  43249. var _converse = this._converse,
  43250. __ = _converse.__;
  43251. _converse.api.settings.update({
  43252. 'allow_chat_pending_contacts': true,
  43253. 'allow_contact_removal': true,
  43254. 'hide_offline_users': false,
  43255. 'roster_groups': true,
  43256. 'show_only_online_users': false,
  43257. 'show_toolbar': true,
  43258. 'xhr_user_search_url': null
  43259. });
  43260. _converse.api.promises.add('rosterViewInitialized');
  43261. var STATUSES = {
  43262. 'dnd': __('This contact is busy'),
  43263. 'online': __('This contact is online'),
  43264. 'offline': __('This contact is offline'),
  43265. 'unavailable': __('This contact is unavailable'),
  43266. 'xa': __('This contact is away for an extended period'),
  43267. 'away': __('This contact is away')
  43268. };
  43269. var LABEL_GROUPS = __('Groups');
  43270. var HEADER_CURRENT_CONTACTS = __('My contacts');
  43271. var HEADER_PENDING_CONTACTS = __('Pending contacts');
  43272. var HEADER_REQUESTING_CONTACTS = __('Contact requests');
  43273. var HEADER_UNGROUPED = __('Ungrouped');
  43274. var HEADER_WEIGHTS = {};
  43275. HEADER_WEIGHTS[HEADER_REQUESTING_CONTACTS] = 0;
  43276. HEADER_WEIGHTS[HEADER_CURRENT_CONTACTS] = 1;
  43277. HEADER_WEIGHTS[HEADER_UNGROUPED] = 2;
  43278. HEADER_WEIGHTS[HEADER_PENDING_CONTACTS] = 3;
  43279. _converse.RosterGroupsComparator = function (a, b) {
  43280. /* Groups are sorted alphabetically, ignoring case.
  43281. * However, Ungrouped, Requesting Contacts and Pending Contacts
  43282. * appear last and in that order.
  43283. */
  43284. a = a.get('name');
  43285. b = b.get('name');
  43286. var special_groups = _.keys(HEADER_WEIGHTS);
  43287. var a_is_special = _.includes(special_groups, a);
  43288. var b_is_special = _.includes(special_groups, b);
  43289. if (!a_is_special && !b_is_special) {
  43290. return a.toLowerCase() < b.toLowerCase() ? -1 : a.toLowerCase() > b.toLowerCase() ? 1 : 0;
  43291. } else if (a_is_special && b_is_special) {
  43292. return HEADER_WEIGHTS[a] < HEADER_WEIGHTS[b] ? -1 : HEADER_WEIGHTS[a] > HEADER_WEIGHTS[b] ? 1 : 0;
  43293. } else if (!a_is_special && b_is_special) {
  43294. return b === HEADER_REQUESTING_CONTACTS ? 1 : -1;
  43295. } else if (a_is_special && !b_is_special) {
  43296. return a === HEADER_REQUESTING_CONTACTS ? -1 : 1;
  43297. }
  43298. };
  43299. _converse.AddContactModal = _converse.BootstrapModal.extend({
  43300. events: {
  43301. 'submit form': 'addContactFromForm'
  43302. },
  43303. initialize: function initialize() {
  43304. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  43305. this.model.on('change', this.render, this);
  43306. },
  43307. toHTML: function toHTML() {
  43308. var label_nickname = _converse.xhr_user_search_url ? __('Contact name') : __('Optional nickname');
  43309. return tpl_add_contact_modal(_.extend(this.model.toJSON(), {
  43310. '_converse': _converse,
  43311. 'heading_new_contact': __('Add a Contact'),
  43312. 'label_xmpp_address': __('XMPP Address'),
  43313. 'label_nickname': label_nickname,
  43314. 'contact_placeholder': __('name@example.org'),
  43315. 'label_add': __('Add'),
  43316. 'error_message': __('Please enter a valid XMPP address')
  43317. }));
  43318. },
  43319. afterRender: function afterRender() {
  43320. if (_converse.xhr_user_search_url && _.isString(_converse.xhr_user_search_url)) {
  43321. this.initXHRAutoComplete(this.el);
  43322. } else {
  43323. this.initJIDAutoComplete(this.el);
  43324. }
  43325. var jid_input = this.el.querySelector('input[name="jid"]');
  43326. this.el.addEventListener('shown.bs.modal', function () {
  43327. jid_input.focus();
  43328. }, false);
  43329. },
  43330. initJIDAutoComplete: function initJIDAutoComplete(root) {
  43331. var jid_input = root.querySelector('input[name="jid"]');
  43332. var list = _.uniq(_converse.roster.map(function (item) {
  43333. return Strophe.getDomainFromJid(item.get('jid'));
  43334. }));
  43335. new Awesomplete(jid_input, {
  43336. 'list': list,
  43337. 'data': function data(text, input) {
  43338. return input.slice(0, input.indexOf("@")) + "@" + text;
  43339. },
  43340. 'filter': Awesomplete.FILTER_STARTSWITH
  43341. });
  43342. },
  43343. initXHRAutoComplete: function initXHRAutoComplete(root) {
  43344. var name_input = this.el.querySelector('input[name="name"]');
  43345. var jid_input = this.el.querySelector('input[name="jid"]');
  43346. var awesomplete = new Awesomplete(name_input, {
  43347. 'minChars': 1,
  43348. 'list': []
  43349. });
  43350. var xhr = new window.XMLHttpRequest(); // `open` must be called after `onload` for mock/testing purposes.
  43351. xhr.onload = function () {
  43352. if (xhr.responseText) {
  43353. awesomplete.list = JSON.parse(xhr.responseText).map(function (i) {
  43354. //eslint-disable-line arrow-body-style
  43355. return {
  43356. 'label': i.fullname || i.jid,
  43357. 'value': i.jid
  43358. };
  43359. });
  43360. awesomplete.evaluate();
  43361. }
  43362. };
  43363. name_input.addEventListener('input', _.debounce(function () {
  43364. xhr.open("GET", "".concat(_converse.xhr_user_search_url, "q=").concat(name_input.value), true);
  43365. xhr.send();
  43366. }, 300));
  43367. this.el.addEventListener('awesomplete-selectcomplete', function (ev) {
  43368. jid_input.value = ev.text.value;
  43369. name_input.value = ev.text.label;
  43370. });
  43371. },
  43372. addContactFromForm: function addContactFromForm(ev) {
  43373. ev.preventDefault();
  43374. var data = new FormData(ev.target),
  43375. jid = data.get('jid'),
  43376. name = data.get('name');
  43377. if (!jid || _.compact(jid.split('@')).length < 2) {
  43378. // XXX: we have to do this manually, instead of via
  43379. // toHTML because Awesomplete messes things up and
  43380. // confuses Snabbdom
  43381. u.addClass('is-invalid', this.el.querySelector('input[name="jid"]'));
  43382. u.addClass('d-block', this.el.querySelector('.invalid-feedback'));
  43383. } else {
  43384. ev.target.reset();
  43385. _converse.roster.addAndSubscribe(jid, name);
  43386. this.model.clear();
  43387. this.modal.hide();
  43388. }
  43389. }
  43390. });
  43391. _converse.RosterFilter = Backbone.Model.extend({
  43392. initialize: function initialize() {
  43393. this.set({
  43394. 'filter_text': '',
  43395. 'filter_type': 'contacts',
  43396. 'chat_state': ''
  43397. });
  43398. }
  43399. });
  43400. _converse.RosterFilterView = Backbone.VDOMView.extend({
  43401. tagName: 'form',
  43402. className: 'roster-filter-form',
  43403. events: {
  43404. "keydown .roster-filter": "liveFilter",
  43405. "submit form.roster-filter-form": "submitFilter",
  43406. "click .clear-input": "clearFilter",
  43407. "click .filter-by span": "changeTypeFilter",
  43408. "change .state-type": "changeChatStateFilter"
  43409. },
  43410. initialize: function initialize() {
  43411. this.model.on('change:filter_type', this.render, this);
  43412. this.model.on('change:filter_text', this.render, this);
  43413. },
  43414. toHTML: function toHTML() {
  43415. return tpl_roster_filter(_.extend(this.model.toJSON(), {
  43416. visible: this.shouldBeVisible(),
  43417. placeholder: __('Filter'),
  43418. title_contact_filter: __('Filter by contact name'),
  43419. title_group_filter: __('Filter by group name'),
  43420. title_status_filter: __('Filter by status'),
  43421. label_any: __('Any'),
  43422. label_unread_messages: __('Unread'),
  43423. label_online: __('Online'),
  43424. label_chatty: __('Chatty'),
  43425. label_busy: __('Busy'),
  43426. label_away: __('Away'),
  43427. label_xa: __('Extended Away'),
  43428. label_offline: __('Offline')
  43429. }));
  43430. },
  43431. changeChatStateFilter: function changeChatStateFilter(ev) {
  43432. if (ev && ev.preventDefault) {
  43433. ev.preventDefault();
  43434. }
  43435. this.model.save({
  43436. 'chat_state': this.el.querySelector('.state-type').value
  43437. });
  43438. },
  43439. changeTypeFilter: function changeTypeFilter(ev) {
  43440. if (ev && ev.preventDefault) {
  43441. ev.preventDefault();
  43442. }
  43443. var type = ev.target.dataset.type;
  43444. if (type === 'state') {
  43445. this.model.save({
  43446. 'filter_type': type,
  43447. 'chat_state': this.el.querySelector('.state-type').value
  43448. });
  43449. } else {
  43450. this.model.save({
  43451. 'filter_type': type,
  43452. 'filter_text': this.el.querySelector('.roster-filter').value
  43453. });
  43454. }
  43455. },
  43456. liveFilter: _.debounce(function (ev) {
  43457. this.model.save({
  43458. 'filter_text': this.el.querySelector('.roster-filter').value
  43459. });
  43460. }, 250),
  43461. submitFilter: function submitFilter(ev) {
  43462. if (ev && ev.preventDefault) {
  43463. ev.preventDefault();
  43464. }
  43465. this.liveFilter();
  43466. this.render();
  43467. },
  43468. isActive: function isActive() {
  43469. /* Returns true if the filter is enabled (i.e. if the user
  43470. * has added values to the filter).
  43471. */
  43472. if (this.model.get('filter_type') === 'state' || this.model.get('filter_text')) {
  43473. return true;
  43474. }
  43475. return false;
  43476. },
  43477. shouldBeVisible: function shouldBeVisible() {
  43478. return _converse.roster.length >= 5 || this.isActive();
  43479. },
  43480. showOrHide: function showOrHide() {
  43481. if (this.shouldBeVisible()) {
  43482. this.show();
  43483. } else {
  43484. this.hide();
  43485. }
  43486. },
  43487. show: function show() {
  43488. if (u.isVisible(this.el)) {
  43489. return this;
  43490. }
  43491. this.el.classList.add('fade-in');
  43492. this.el.classList.remove('hidden');
  43493. return this;
  43494. },
  43495. hide: function hide() {
  43496. if (!u.isVisible(this.el)) {
  43497. return this;
  43498. }
  43499. this.model.save({
  43500. 'filter_text': '',
  43501. 'chat_state': ''
  43502. });
  43503. this.el.classList.add('hidden');
  43504. return this;
  43505. },
  43506. clearFilter: function clearFilter(ev) {
  43507. if (ev && ev.preventDefault) {
  43508. ev.preventDefault();
  43509. u.hideElement(this.el.querySelector('.clear-input'));
  43510. }
  43511. var roster_filter = this.el.querySelector('.roster-filter');
  43512. roster_filter.value = '';
  43513. this.model.save({
  43514. 'filter_text': ''
  43515. });
  43516. }
  43517. });
  43518. _converse.RosterContactView = Backbone.NativeView.extend({
  43519. tagName: 'li',
  43520. className: 'list-item d-flex hidden controlbox-padded',
  43521. events: {
  43522. "click .accept-xmpp-request": "acceptRequest",
  43523. "click .decline-xmpp-request": "declineRequest",
  43524. "click .open-chat": "openChat",
  43525. "click .remove-xmpp-contact": "removeContact"
  43526. },
  43527. initialize: function initialize() {
  43528. this.model.on("change", this.render, this);
  43529. this.model.on("highlight", this.highlight, this);
  43530. this.model.on("destroy", this.remove, this);
  43531. this.model.on("open", this.openChat, this);
  43532. this.model.on("remove", this.remove, this);
  43533. this.model.presence.on("change:show", this.render, this);
  43534. this.model.vcard.on('change:fullname', this.render, this);
  43535. },
  43536. render: function render() {
  43537. var that = this;
  43538. if (!this.mayBeShown()) {
  43539. u.hideElement(this.el);
  43540. return this;
  43541. }
  43542. var ask = this.model.get('ask'),
  43543. show = this.model.presence.get('show'),
  43544. requesting = this.model.get('requesting'),
  43545. subscription = this.model.get('subscription');
  43546. var classes_to_remove = ['current-xmpp-contact', 'pending-xmpp-contact', 'requesting-xmpp-contact'].concat(_.keys(STATUSES));
  43547. _.each(classes_to_remove, function (cls) {
  43548. if (_.includes(that.el.className, cls)) {
  43549. that.el.classList.remove(cls);
  43550. }
  43551. });
  43552. this.el.classList.add(show);
  43553. this.el.setAttribute('data-status', show);
  43554. this.highlight();
  43555. if (_converse.isSingleton()) {
  43556. var chatbox = _converse.chatboxes.get(this.model.get('jid'));
  43557. if (chatbox) {
  43558. if (chatbox.get('hidden')) {
  43559. this.el.classList.remove('open');
  43560. } else {
  43561. this.el.classList.add('open');
  43562. }
  43563. }
  43564. }
  43565. if (ask === 'subscribe' || subscription === 'from') {
  43566. /* ask === 'subscribe'
  43567. * Means we have asked to subscribe to them.
  43568. *
  43569. * subscription === 'from'
  43570. * They are subscribed to use, but not vice versa.
  43571. * We assume that there is a pending subscription
  43572. * from us to them (otherwise we're in a state not
  43573. * supported by converse.js).
  43574. *
  43575. * So in both cases the user is a "pending" contact.
  43576. */
  43577. var display_name = this.model.getDisplayName();
  43578. this.el.classList.add('pending-xmpp-contact');
  43579. this.el.innerHTML = tpl_pending_contact(_.extend(this.model.toJSON(), {
  43580. 'display_name': display_name,
  43581. 'desc_remove': __('Click to remove %1$s as a contact', display_name),
  43582. 'allow_chat_pending_contacts': _converse.allow_chat_pending_contacts
  43583. }));
  43584. } else if (requesting === true) {
  43585. var _display_name = this.model.getDisplayName();
  43586. this.el.classList.add('requesting-xmpp-contact');
  43587. this.el.innerHTML = tpl_requesting_contact(_.extend(this.model.toJSON(), {
  43588. 'display_name': _display_name,
  43589. 'desc_accept': __("Click to accept the contact request from %1$s", _display_name),
  43590. 'desc_decline': __("Click to decline the contact request from %1$s", _display_name),
  43591. 'allow_chat_pending_contacts': _converse.allow_chat_pending_contacts
  43592. }));
  43593. } else if (subscription === 'both' || subscription === 'to') {
  43594. this.el.classList.add('current-xmpp-contact');
  43595. this.el.classList.remove(_.without(['both', 'to'], subscription)[0]);
  43596. this.el.classList.add(subscription);
  43597. this.renderRosterItem(this.model);
  43598. }
  43599. return this;
  43600. },
  43601. highlight: function highlight() {
  43602. /* If appropriate, highlight the contact (by adding the 'open' class).
  43603. */
  43604. if (_converse.isSingleton()) {
  43605. var chatbox = _converse.chatboxes.get(this.model.get('jid'));
  43606. if (chatbox) {
  43607. if (chatbox.get('hidden')) {
  43608. this.el.classList.remove('open');
  43609. } else {
  43610. this.el.classList.add('open');
  43611. }
  43612. }
  43613. }
  43614. },
  43615. renderRosterItem: function renderRosterItem(item) {
  43616. var status_icon = 'fa fa-times-circle';
  43617. var show = item.presence.get('show') || 'offline';
  43618. if (show === 'online') {
  43619. status_icon = 'fa fa-circle';
  43620. } else if (show === 'away') {
  43621. status_icon = 'fa fa-dot-circle';
  43622. } else if (show === 'xa') {
  43623. status_icon = 'far fa-circle';
  43624. } else if (show === 'dnd') {
  43625. status_icon = 'fa fa-minus-circle';
  43626. }
  43627. var display_name = item.getDisplayName();
  43628. this.el.innerHTML = tpl_roster_item(_.extend(item.toJSON(), {
  43629. 'display_name': display_name,
  43630. 'desc_status': STATUSES[show],
  43631. 'status_icon': status_icon,
  43632. 'desc_chat': __('Click to chat with %1$s (JID: %2$s)', display_name, item.get('jid')),
  43633. 'desc_remove': __('Click to remove %1$s as a contact', display_name),
  43634. 'allow_contact_removal': _converse.allow_contact_removal,
  43635. 'num_unread': item.get('num_unread') || 0
  43636. }));
  43637. return this;
  43638. },
  43639. mayBeShown: function mayBeShown() {
  43640. /* Return a boolean indicating whether this contact should
  43641. * generally be visible in the roster.
  43642. *
  43643. * It doesn't check for the more specific case of whether
  43644. * the group it's in is collapsed.
  43645. */
  43646. var chatStatus = this.model.presence.get('show');
  43647. if (_converse.show_only_online_users && chatStatus !== 'online' || _converse.hide_offline_users && chatStatus === 'offline') {
  43648. // If pending or requesting, show
  43649. if (this.model.get('ask') === 'subscribe' || this.model.get('subscription') === 'from' || this.model.get('requesting') === true) {
  43650. return true;
  43651. }
  43652. return false;
  43653. }
  43654. return true;
  43655. },
  43656. openChat: function openChat(ev) {
  43657. if (ev && ev.preventDefault) {
  43658. ev.preventDefault();
  43659. }
  43660. var attrs = this.model.attributes;
  43661. _converse.api.chats.open(attrs.jid, attrs);
  43662. },
  43663. removeContact: function removeContact(ev) {
  43664. var _this = this;
  43665. if (ev && ev.preventDefault) {
  43666. ev.preventDefault();
  43667. }
  43668. if (!_converse.allow_contact_removal) {
  43669. return;
  43670. }
  43671. var result = confirm(__("Are you sure you want to remove this contact?"));
  43672. if (result === true) {
  43673. this.model.removeFromRoster(function (iq) {
  43674. _this.model.destroy();
  43675. _this.remove();
  43676. }, function (err) {
  43677. alert(__('Sorry, there was an error while trying to remove %1$s as a contact.', name));
  43678. _converse.log(err, Strophe.LogLevel.ERROR);
  43679. });
  43680. }
  43681. },
  43682. acceptRequest: function acceptRequest(ev) {
  43683. var _this2 = this;
  43684. if (ev && ev.preventDefault) {
  43685. ev.preventDefault();
  43686. }
  43687. _converse.roster.sendContactAddIQ(this.model.get('jid'), this.model.getFullname(), [], function () {
  43688. _this2.model.authorize().subscribe();
  43689. });
  43690. },
  43691. declineRequest: function declineRequest(ev) {
  43692. if (ev && ev.preventDefault) {
  43693. ev.preventDefault();
  43694. }
  43695. var result = confirm(__("Are you sure you want to decline this contact request?"));
  43696. if (result === true) {
  43697. this.model.unauthorize().destroy();
  43698. }
  43699. return this;
  43700. }
  43701. });
  43702. _converse.RosterGroupView = Backbone.OrderedListView.extend({
  43703. tagName: 'div',
  43704. className: 'roster-group hidden',
  43705. events: {
  43706. "click a.group-toggle": "toggle"
  43707. },
  43708. ItemView: _converse.RosterContactView,
  43709. listItems: 'model.contacts',
  43710. listSelector: '.roster-group-contacts',
  43711. sortEvent: 'presenceChanged',
  43712. initialize: function initialize() {
  43713. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  43714. this.model.contacts.on("change:subscription", this.onContactSubscriptionChange, this);
  43715. this.model.contacts.on("change:requesting", this.onContactRequestChange, this);
  43716. this.model.contacts.on("remove", this.onRemove, this);
  43717. _converse.roster.on('change:groups', this.onContactGroupChange, this); // This event gets triggered once *all* contacts (i.e. not
  43718. // just this group's) have been fetched from browser
  43719. // storage or the XMPP server and once they've been
  43720. // assigned to their various groups.
  43721. _converse.rosterview.on('rosterContactsFetchedAndProcessed', this.sortAndPositionAllItems.bind(this));
  43722. },
  43723. render: function render() {
  43724. this.el.setAttribute('data-group', this.model.get('name'));
  43725. this.el.innerHTML = tpl_group_header({
  43726. 'label_group': this.model.get('name'),
  43727. 'desc_group_toggle': this.model.get('description'),
  43728. 'toggle_state': this.model.get('state'),
  43729. '_converse': _converse
  43730. });
  43731. this.contacts_el = this.el.querySelector('.roster-group-contacts');
  43732. return this;
  43733. },
  43734. show: function show() {
  43735. var _this3 = this;
  43736. u.showElement(this.el);
  43737. _.each(this.getAll(), function (contact_view) {
  43738. if (contact_view.mayBeShown() && _this3.model.get('state') === _converse.OPENED) {
  43739. u.showElement(contact_view.el);
  43740. }
  43741. });
  43742. return this;
  43743. },
  43744. collapse: function collapse() {
  43745. return u.slideIn(this.contacts_el);
  43746. },
  43747. filterOutContacts: function filterOutContacts() {
  43748. var _this4 = this;
  43749. var contacts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  43750. /* Given a list of contacts, make sure they're filtered out
  43751. * (aka hidden) and that all other contacts are visible.
  43752. *
  43753. * If all contacts are hidden, then also hide the group
  43754. * title.
  43755. */
  43756. var shown = 0;
  43757. var all_contact_views = this.getAll();
  43758. _.each(this.model.contacts.models, function (contact) {
  43759. var contact_view = _this4.get(contact.get('id'));
  43760. if (_.includes(contacts, contact)) {
  43761. u.hideElement(contact_view.el);
  43762. } else if (contact_view.mayBeShown()) {
  43763. u.showElement(contact_view.el);
  43764. shown += 1;
  43765. }
  43766. });
  43767. if (shown) {
  43768. u.showElement(this.el);
  43769. } else {
  43770. u.hideElement(this.el);
  43771. }
  43772. },
  43773. getFilterMatches: function getFilterMatches(q, type) {
  43774. /* Given the filter query "q" and the filter type "type",
  43775. * return a list of contacts that need to be filtered out.
  43776. */
  43777. if (q.length === 0) {
  43778. return [];
  43779. }
  43780. var matches;
  43781. q = q.toLowerCase();
  43782. if (type === 'state') {
  43783. if (this.model.get('name') === HEADER_REQUESTING_CONTACTS) {
  43784. // When filtering by chat state, we still want to
  43785. // show requesting contacts, even though they don't
  43786. // have the state in question.
  43787. matches = this.model.contacts.filter(function (contact) {
  43788. return !_.includes(contact.presence.get('show'), q) && !contact.get('requesting');
  43789. });
  43790. } else if (q === 'unread_messages') {
  43791. matches = this.model.contacts.filter({
  43792. 'num_unread': 0
  43793. });
  43794. } else {
  43795. matches = this.model.contacts.filter(function (contact) {
  43796. return !_.includes(contact.presence.get('show'), q);
  43797. });
  43798. }
  43799. } else {
  43800. matches = this.model.contacts.filter(function (contact) {
  43801. return !_.includes(contact.getDisplayName().toLowerCase(), q.toLowerCase());
  43802. });
  43803. }
  43804. return matches;
  43805. },
  43806. filter: function filter(q, type) {
  43807. /* Filter the group's contacts based on the query "q".
  43808. *
  43809. * If all contacts are filtered out (i.e. hidden), then the
  43810. * group must be filtered out as well.
  43811. */
  43812. if (_.isNil(q)) {
  43813. type = type || _converse.rosterview.filter_view.model.get('filter_type');
  43814. if (type === 'state') {
  43815. q = _converse.rosterview.filter_view.model.get('chat_state');
  43816. } else {
  43817. q = _converse.rosterview.filter_view.model.get('filter_text');
  43818. }
  43819. }
  43820. this.filterOutContacts(this.getFilterMatches(q, type));
  43821. },
  43822. toggle: function toggle(ev) {
  43823. if (ev && ev.preventDefault) {
  43824. ev.preventDefault();
  43825. }
  43826. var icon_el = ev.target.querySelector('.fa');
  43827. if (_.includes(icon_el.classList, "fa-caret-down")) {
  43828. this.model.save({
  43829. state: _converse.CLOSED
  43830. });
  43831. this.collapse().then(function () {
  43832. icon_el.classList.remove("fa-caret-down");
  43833. icon_el.classList.add("fa-caret-right");
  43834. });
  43835. } else {
  43836. icon_el.classList.remove("fa-caret-right");
  43837. icon_el.classList.add("fa-caret-down");
  43838. this.model.save({
  43839. state: _converse.OPENED
  43840. });
  43841. this.filter();
  43842. u.showElement(this.el);
  43843. u.slideOut(this.contacts_el);
  43844. }
  43845. },
  43846. onContactGroupChange: function onContactGroupChange(contact) {
  43847. var in_this_group = _.includes(contact.get('groups'), this.model.get('name'));
  43848. var cid = contact.get('id');
  43849. var in_this_overview = !this.get(cid);
  43850. if (in_this_group && !in_this_overview) {
  43851. this.items.trigger('add', contact);
  43852. } else if (!in_this_group) {
  43853. this.removeContact(contact);
  43854. }
  43855. },
  43856. onContactSubscriptionChange: function onContactSubscriptionChange(contact) {
  43857. if (this.model.get('name') === HEADER_PENDING_CONTACTS && contact.get('subscription') !== 'from') {
  43858. this.removeContact(contact);
  43859. }
  43860. },
  43861. onContactRequestChange: function onContactRequestChange(contact) {
  43862. if (this.model.get('name') === HEADER_REQUESTING_CONTACTS && !contact.get('requesting')) {
  43863. this.removeContact(contact);
  43864. }
  43865. },
  43866. removeContact: function removeContact(contact) {
  43867. // We suppress events, otherwise the remove event will
  43868. // also cause the contact's view to be removed from the
  43869. // "Pending Contacts" group.
  43870. this.model.contacts.remove(contact, {
  43871. 'silent': true
  43872. });
  43873. this.onRemove(contact);
  43874. },
  43875. onRemove: function onRemove(contact) {
  43876. this.remove(contact.get('jid'));
  43877. if (this.model.contacts.length === 0) {
  43878. this.remove();
  43879. }
  43880. }
  43881. });
  43882. _converse.RosterView = Backbone.OrderedListView.extend({
  43883. tagName: 'div',
  43884. id: 'converse-roster',
  43885. className: 'controlbox-section',
  43886. ItemView: _converse.RosterGroupView,
  43887. listItems: 'model',
  43888. listSelector: '.roster-contacts',
  43889. sortEvent: null,
  43890. // Groups are immutable, so they don't get re-sorted
  43891. subviewIndex: 'name',
  43892. events: {
  43893. 'click a.chatbox-btn.add-contact': 'showAddContactModal'
  43894. },
  43895. initialize: function initialize() {
  43896. var _this5 = this;
  43897. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  43898. _converse.roster.on("add", this.onContactAdded, this);
  43899. _converse.roster.on('change:groups', this.onContactAdded, this);
  43900. _converse.roster.on('change', this.onContactChange, this);
  43901. _converse.roster.on("destroy", this.update, this);
  43902. _converse.roster.on("remove", this.update, this);
  43903. _converse.presences.on('change:show', function () {
  43904. _this5.update();
  43905. _this5.updateFilter();
  43906. });
  43907. this.model.on("reset", this.reset, this); // This event gets triggered once *all* contacts (i.e. not
  43908. // just this group's) have been fetched from browser
  43909. // storage or the XMPP server and once they've been
  43910. // assigned to their various groups.
  43911. _converse.on('rosterGroupsFetched', this.sortAndPositionAllItems.bind(this));
  43912. _converse.on('rosterContactsFetched', function () {
  43913. _converse.roster.each(function (contact) {
  43914. return _this5.addRosterContact(contact, {
  43915. 'silent': true
  43916. });
  43917. });
  43918. _this5.update();
  43919. _this5.updateFilter();
  43920. _this5.trigger('rosterContactsFetchedAndProcessed');
  43921. });
  43922. this.createRosterFilter();
  43923. },
  43924. render: function render() {
  43925. this.el.innerHTML = tpl_roster({
  43926. 'allow_contact_requests': _converse.allow_contact_requests,
  43927. 'heading_contacts': __('Contacts'),
  43928. 'title_add_contact': __('Add a contact')
  43929. });
  43930. var form = this.el.querySelector('.roster-filter-form');
  43931. this.el.replaceChild(this.filter_view.render().el, form);
  43932. this.roster_el = this.el.querySelector('.roster-contacts');
  43933. return this;
  43934. },
  43935. showAddContactModal: function showAddContactModal(ev) {
  43936. if (_.isUndefined(this.add_contact_modal)) {
  43937. this.add_contact_modal = new _converse.AddContactModal({
  43938. 'model': new Backbone.Model()
  43939. });
  43940. }
  43941. this.add_contact_modal.show(ev);
  43942. },
  43943. createRosterFilter: function createRosterFilter() {
  43944. // Create a model on which we can store filter properties
  43945. var model = new _converse.RosterFilter();
  43946. model.id = b64_sha1("_converse.rosterfilter".concat(_converse.bare_jid));
  43947. model.browserStorage = new Backbone.BrowserStorage.local(this.filter.id);
  43948. this.filter_view = new _converse.RosterFilterView({
  43949. 'model': model
  43950. });
  43951. this.filter_view.model.on('change', this.updateFilter, this);
  43952. this.filter_view.model.fetch();
  43953. },
  43954. updateFilter: _.debounce(function () {
  43955. /* Filter the roster again.
  43956. * Called whenever the filter settings have been changed or
  43957. * when contacts have been added, removed or changed.
  43958. *
  43959. * Debounced so that it doesn't get called for every
  43960. * contact fetched from browser storage.
  43961. */
  43962. var type = this.filter_view.model.get('filter_type');
  43963. if (type === 'state') {
  43964. this.filter(this.filter_view.model.get('chat_state'), type);
  43965. } else {
  43966. this.filter(this.filter_view.model.get('filter_text'), type);
  43967. }
  43968. }, 100),
  43969. update: _.debounce(function () {
  43970. if (!u.isVisible(this.roster_el)) {
  43971. u.showElement(this.roster_el);
  43972. }
  43973. this.filter_view.showOrHide();
  43974. return this;
  43975. }, _converse.animate ? 100 : 0),
  43976. filter: function filter(query, type) {
  43977. // First we make sure the filter is restored to its
  43978. // original state
  43979. _.each(this.getAll(), function (view) {
  43980. if (view.model.contacts.length > 0) {
  43981. view.show().filter('');
  43982. }
  43983. }); // Now we can filter
  43984. query = query.toLowerCase();
  43985. if (type === 'groups') {
  43986. _.each(this.getAll(), function (view, idx) {
  43987. if (!_.includes(view.model.get('name').toLowerCase(), query.toLowerCase())) {
  43988. u.slideIn(view.el);
  43989. } else if (view.model.contacts.length > 0) {
  43990. u.slideOut(view.el);
  43991. }
  43992. });
  43993. } else {
  43994. _.each(this.getAll(), function (view) {
  43995. view.filter(query, type);
  43996. });
  43997. }
  43998. },
  43999. reset: function reset() {
  44000. _converse.roster.reset();
  44001. this.removeAll();
  44002. this.render().update();
  44003. return this;
  44004. },
  44005. onContactAdded: function onContactAdded(contact) {
  44006. this.addRosterContact(contact);
  44007. this.update();
  44008. this.updateFilter();
  44009. },
  44010. onContactChange: function onContactChange(contact) {
  44011. this.updateChatBox(contact);
  44012. this.update();
  44013. if (_.has(contact.changed, 'subscription')) {
  44014. if (contact.changed.subscription === 'from') {
  44015. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
  44016. } else if (_.includes(['both', 'to'], contact.get('subscription'))) {
  44017. this.addExistingContact(contact);
  44018. }
  44019. }
  44020. if (_.has(contact.changed, 'ask') && contact.changed.ask === 'subscribe') {
  44021. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
  44022. }
  44023. if (_.has(contact.changed, 'subscription') && contact.changed.requesting === 'true') {
  44024. this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS);
  44025. }
  44026. this.updateFilter();
  44027. },
  44028. updateChatBox: function updateChatBox(contact) {
  44029. if (!this.model.chatbox) {
  44030. return this;
  44031. }
  44032. var changes = {};
  44033. if (_.has(contact.changed, 'status')) {
  44034. changes.status = contact.get('status');
  44035. }
  44036. this.model.chatbox.save(changes);
  44037. return this;
  44038. },
  44039. getGroup: function getGroup(name) {
  44040. /* Returns the group as specified by name.
  44041. * Creates the group if it doesn't exist.
  44042. */
  44043. var view = this.get(name);
  44044. if (view) {
  44045. return view.model;
  44046. }
  44047. return this.model.create({
  44048. name: name,
  44049. id: b64_sha1(name)
  44050. });
  44051. },
  44052. addContactToGroup: function addContactToGroup(contact, name, options) {
  44053. this.getGroup(name).contacts.add(contact, options);
  44054. this.sortAndPositionAllItems();
  44055. },
  44056. addExistingContact: function addExistingContact(contact, options) {
  44057. var groups;
  44058. if (_converse.roster_groups) {
  44059. groups = contact.get('groups');
  44060. if (groups.length === 0) {
  44061. groups = [HEADER_UNGROUPED];
  44062. }
  44063. } else {
  44064. groups = [HEADER_CURRENT_CONTACTS];
  44065. }
  44066. _.each(groups, _.bind(this.addContactToGroup, this, contact, _, options));
  44067. },
  44068. addRosterContact: function addRosterContact(contact, options) {
  44069. if (contact.get('subscription') === 'both' || contact.get('subscription') === 'to') {
  44070. this.addExistingContact(contact, options);
  44071. } else {
  44072. if (!_converse.allow_contact_requests) {
  44073. _converse.log("Not adding requesting or pending contact ".concat(contact.get('jid'), " ") + "because allow_contact_requests is false", Strophe.LogLevel.DEBUG);
  44074. return;
  44075. }
  44076. if (contact.get('ask') === 'subscribe' || contact.get('subscription') === 'from') {
  44077. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS, options);
  44078. } else if (contact.get('requesting') === true) {
  44079. this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS, options);
  44080. }
  44081. }
  44082. return this;
  44083. }
  44084. });
  44085. /* -------- Event Handlers ----------- */
  44086. _converse.api.listen.on('chatBoxesInitialized', function () {
  44087. _converse.chatboxes.on('change:hidden', function (chatbox) {
  44088. var contact = _converse.roster.findWhere({
  44089. 'jid': chatbox.get('jid')
  44090. });
  44091. if (!_.isUndefined(contact)) {
  44092. contact.trigger('highlight', contact);
  44093. }
  44094. });
  44095. });
  44096. function initRoster() {
  44097. /* Create an instance of RosterView once the RosterGroups
  44098. * collection has been created (in converse-core.js)
  44099. */
  44100. if (_converse.authentication === _converse.ANONYMOUS) {
  44101. return;
  44102. }
  44103. _converse.rosterview = new _converse.RosterView({
  44104. 'model': _converse.rostergroups
  44105. });
  44106. _converse.rosterview.render();
  44107. _converse.emit('rosterViewInitialized');
  44108. }
  44109. _converse.api.listen.on('rosterInitialized', initRoster);
  44110. _converse.api.listen.on('rosterReadyAfterReconnection', initRoster);
  44111. }
  44112. });
  44113. });
  44114. /***/ }),
  44115. /***/ "./src/converse-singleton.js":
  44116. /*!***********************************!*\
  44117. !*** ./src/converse-singleton.js ***!
  44118. \***********************************/
  44119. /*! no static exports found */
  44120. /***/ (function(module, exports, __webpack_require__) {
  44121. "use strict";
  44122. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  44123. // Converse.js
  44124. // http://conversejs.org
  44125. //
  44126. // Copyright (c) 2012-2018, the Converse.js developers
  44127. // Licensed under the Mozilla Public License (MPLv2)
  44128. /* converse-singleton
  44129. * ******************
  44130. *
  44131. * A plugin which ensures that only one chat (private or groupchat) is
  44132. * visible at any one time. All other ongoing chats are hidden and kept in the
  44133. * background.
  44134. *
  44135. * This plugin makes sense in mobile or fullscreen chat environments (as
  44136. * configured by the `view_mode` setting).
  44137. *
  44138. */
  44139. (function (root, factory) {
  44140. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  44141. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  44142. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  44143. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44144. })(void 0, function (converse) {
  44145. "use strict";
  44146. var _converse$env = converse.env,
  44147. _ = _converse$env._,
  44148. Strophe = _converse$env.Strophe;
  44149. var u = converse.env.utils;
  44150. function hideChat(view) {
  44151. if (view.model.get('id') === 'controlbox') {
  44152. return;
  44153. }
  44154. u.safeSave(view.model, {
  44155. 'hidden': true
  44156. });
  44157. view.hide();
  44158. }
  44159. converse.plugins.add('converse-singleton', {
  44160. // It's possible however to make optional dependencies non-optional.
  44161. // If the setting "strict_plugin_dependencies" is set to true,
  44162. // an error will be raised if the plugin is not found.
  44163. //
  44164. // NB: These plugins need to have already been loaded via require.js.
  44165. dependencies: ['converse-chatboxes', 'converse-muc', 'converse-muc-views', 'converse-controlbox', 'converse-rosterview'],
  44166. overrides: {
  44167. // overrides mentioned here will be picked up by converse.js's
  44168. // plugin architecture they will replace existing methods on the
  44169. // relevant objects or classes.
  44170. //
  44171. // new functions which don't exist yet can also be added.
  44172. ChatBoxes: {
  44173. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  44174. var _converse = this.__super__._converse;
  44175. if (chatbox.get('id') === 'controlbox') {
  44176. return true;
  44177. }
  44178. if (_converse.isSingleton()) {
  44179. var any_chats_visible = _converse.chatboxes.filter(function (cb) {
  44180. return cb.get('id') != 'controlbox';
  44181. }).filter(function (cb) {
  44182. return !cb.get('hidden');
  44183. }).length > 0;
  44184. if (any_chats_visible) {
  44185. return !chatbox.get('hidden');
  44186. } else {
  44187. return true;
  44188. }
  44189. } else {
  44190. return this.__super__.chatBoxMayBeShown.apply(this, arguments);
  44191. }
  44192. },
  44193. createChatBox: function createChatBox(jid, attrs) {
  44194. /* Make sure new chat boxes are hidden by default. */
  44195. var _converse = this.__super__._converse;
  44196. if (_converse.isSingleton()) {
  44197. attrs = attrs || {};
  44198. attrs.hidden = true;
  44199. }
  44200. return this.__super__.createChatBox.call(this, jid, attrs);
  44201. }
  44202. },
  44203. ChatBoxView: {
  44204. shouldShowOnTextMessage: function shouldShowOnTextMessage() {
  44205. var _converse = this.__super__._converse;
  44206. if (_converse.isSingleton()) {
  44207. return false;
  44208. } else {
  44209. return this.__super__.shouldShowOnTextMessage.apply(this, arguments);
  44210. }
  44211. },
  44212. _show: function _show(focus) {
  44213. /* We only have one chat visible at any one
  44214. * time. So before opening a chat, we make sure all other
  44215. * chats are hidden.
  44216. */
  44217. var _converse = this.__super__._converse;
  44218. if (_converse.isSingleton()) {
  44219. _.each(this.__super__._converse.chatboxviews.xget(this.model.get('id')), hideChat);
  44220. u.safeSave(this.model, {
  44221. 'hidden': false
  44222. });
  44223. }
  44224. return this.__super__._show.apply(this, arguments);
  44225. }
  44226. },
  44227. ChatRoomView: {
  44228. show: function show(focus) {
  44229. var _converse = this.__super__._converse;
  44230. if (_converse.isSingleton()) {
  44231. _.each(this.__super__._converse.chatboxviews.xget(this.model.get('id')), hideChat);
  44232. u.safeSave(this.model, {
  44233. 'hidden': false
  44234. });
  44235. }
  44236. return this.__super__.show.apply(this, arguments);
  44237. }
  44238. }
  44239. }
  44240. });
  44241. });
  44242. /***/ }),
  44243. /***/ "./src/converse-vcard.js":
  44244. /*!*******************************!*\
  44245. !*** ./src/converse-vcard.js ***!
  44246. \*******************************/
  44247. /*! no static exports found */
  44248. /***/ (function(module, exports, __webpack_require__) {
  44249. "use strict";
  44250. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  44251. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  44252. // Converse.js
  44253. // http://conversejs.org
  44254. //
  44255. // Copyright (c) 2013-2018, the Converse.js developers
  44256. // Licensed under the Mozilla Public License (MPLv2)
  44257. (function (root, factory) {
  44258. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/vcard.html */ "./src/templates/vcard.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  44259. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  44260. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  44261. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44262. })(void 0, function (converse, tpl_vcard) {
  44263. "use strict";
  44264. var _converse$env = converse.env,
  44265. Backbone = _converse$env.Backbone,
  44266. Promise = _converse$env.Promise,
  44267. Strophe = _converse$env.Strophe,
  44268. _ = _converse$env._,
  44269. $iq = _converse$env.$iq,
  44270. $build = _converse$env.$build,
  44271. b64_sha1 = _converse$env.b64_sha1,
  44272. moment = _converse$env.moment,
  44273. sizzle = _converse$env.sizzle;
  44274. var u = converse.env.utils;
  44275. converse.plugins.add('converse-vcard', {
  44276. initialize: function initialize() {
  44277. /* The initialize function gets called as soon as the plugin is
  44278. * loaded by converse.js's plugin machinery.
  44279. */
  44280. var _converse = this._converse;
  44281. _converse.VCard = Backbone.Model.extend({
  44282. defaults: {
  44283. 'image': _converse.DEFAULT_IMAGE,
  44284. 'image_type': _converse.DEFAULT_IMAGE_TYPE
  44285. },
  44286. set: function set(key, val, options) {
  44287. // Override Backbone.Model.prototype.set to make sure that the
  44288. // default `image` and `image_type` values are maintained.
  44289. var attrs;
  44290. if (_typeof(key) === 'object') {
  44291. attrs = key;
  44292. options = val;
  44293. } else {
  44294. (attrs = {})[key] = val;
  44295. }
  44296. if (_.has(attrs, 'image') && !attrs['image']) {
  44297. attrs['image'] = _converse.DEFAULT_IMAGE;
  44298. attrs['image_type'] = _converse.DEFAULT_IMAGE_TYPE;
  44299. return Backbone.Model.prototype.set.call(this, attrs, options);
  44300. } else {
  44301. return Backbone.Model.prototype.set.apply(this, arguments);
  44302. }
  44303. }
  44304. });
  44305. _converse.VCards = Backbone.Collection.extend({
  44306. model: _converse.VCard,
  44307. initialize: function initialize() {
  44308. this.on('add', function (vcard) {
  44309. return _converse.api.vcard.update(vcard);
  44310. });
  44311. }
  44312. });
  44313. function onVCardData(jid, iq, callback) {
  44314. var vcard = iq.querySelector('vCard');
  44315. var result = {};
  44316. if (!_.isNull(vcard)) {
  44317. result = {
  44318. 'stanza': iq,
  44319. 'fullname': _.get(vcard.querySelector('FN'), 'textContent'),
  44320. 'nickname': _.get(vcard.querySelector('NICKNAME'), 'textContent'),
  44321. 'image': _.get(vcard.querySelector('PHOTO BINVAL'), 'textContent'),
  44322. 'image_type': _.get(vcard.querySelector('PHOTO TYPE'), 'textContent'),
  44323. 'url': _.get(vcard.querySelector('URL'), 'textContent'),
  44324. 'role': _.get(vcard.querySelector('ROLE'), 'textContent'),
  44325. 'email': _.get(vcard.querySelector('EMAIL USERID'), 'textContent'),
  44326. 'vcard_updated': moment().format(),
  44327. 'vcard_error': undefined
  44328. };
  44329. }
  44330. if (result.image) {
  44331. var buffer = u.base64ToArrayBuffer(result['image']);
  44332. crypto.subtle.digest('SHA-1', buffer).then(function (ab) {
  44333. result['image_hash'] = u.arrayBufferToHex(ab);
  44334. if (callback) callback(result);
  44335. });
  44336. } else {
  44337. if (callback) callback(result);
  44338. }
  44339. }
  44340. function onVCardError(jid, iq, errback) {
  44341. if (errback) {
  44342. errback({
  44343. 'stanza': iq,
  44344. 'jid': jid,
  44345. 'vcard_error': moment().format()
  44346. });
  44347. }
  44348. }
  44349. function createStanza(type, jid, vcard_el) {
  44350. var iq = $iq(jid ? {
  44351. 'type': type,
  44352. 'to': jid
  44353. } : {
  44354. 'type': type
  44355. });
  44356. if (!vcard_el) {
  44357. iq.c("vCard", {
  44358. 'xmlns': Strophe.NS.VCARD
  44359. });
  44360. } else {
  44361. iq.cnode(vcard_el);
  44362. }
  44363. return iq;
  44364. }
  44365. function setVCard(jid, data) {
  44366. if (!jid) {
  44367. throw Error("No jid provided for the VCard data");
  44368. }
  44369. var vcard_el = Strophe.xmlHtmlNode(tpl_vcard(data)).firstElementChild;
  44370. return _converse.api.sendIQ(createStanza("set", jid, vcard_el));
  44371. }
  44372. function getVCard(_converse, jid) {
  44373. /* Request the VCard of another user. Returns a promise.
  44374. *
  44375. * Parameters:
  44376. * (String) jid - The Jabber ID of the user whose VCard
  44377. * is being requested.
  44378. */
  44379. var to = Strophe.getBareJidFromJid(jid) === _converse.bare_jid ? null : jid;
  44380. return new Promise(function (resolve, reject) {
  44381. _converse.connection.sendIQ(createStanza("get", to), _.partial(onVCardData, jid, _, resolve), _.partial(onVCardError, jid, _, resolve), _converse.IQ_TIMEOUT);
  44382. });
  44383. }
  44384. /* Event handlers */
  44385. _converse.initVCardCollection = function () {
  44386. _converse.vcards = new _converse.VCards();
  44387. var id = b64_sha1("converse.vcards");
  44388. _converse.vcards.browserStorage = new Backbone.BrowserStorage[_converse.config.get('storage')](id);
  44389. _converse.vcards.fetch();
  44390. };
  44391. _converse.api.listen.on('sessionInitialized', _converse.initVCardCollection);
  44392. _converse.on('addClientFeatures', function () {
  44393. _converse.api.disco.own.features.add(Strophe.NS.VCARD);
  44394. });
  44395. _.extend(_converse.api, {
  44396. /**
  44397. * The XEP-0054 VCard API
  44398. *
  44399. * This API lets you access and update user VCards
  44400. *
  44401. * @namespace _converse.api.vcard
  44402. * @memberOf _converse.api
  44403. */
  44404. 'vcard': {
  44405. /**
  44406. * Enables setting new values for a VCard.
  44407. *
  44408. * @method _converse.api.vcard.set
  44409. * @param {string} jid The JID for which the VCard should be set
  44410. * @param {object} data A map of VCard keys and values
  44411. * @example
  44412. * _converse.api.vcard.set({
  44413. * 'jid': _converse.bare_jid,
  44414. * 'fn': 'John Doe',
  44415. * 'nickname': 'jdoe'
  44416. * }).then(() => {
  44417. * // Succes
  44418. * }).catch(() => {
  44419. * // Failure
  44420. * }).
  44421. */
  44422. 'set': function set(jid, data) {
  44423. return setVCard(jid, data);
  44424. },
  44425. /**
  44426. * @method _converse.api.vcard.get
  44427. * @param {Backbone.Model|string} model Either a `Backbone.Model` instance, or a string JID.
  44428. * If a `Backbone.Model` instance is passed in, then it must have either a `jid`
  44429. * attribute or a `muc_jid` attribute.
  44430. * @param {boolean} [force] A boolean indicating whether the vcard should be
  44431. * fetched even if it's been fetched before.
  44432. * @returns {promise} A Promise which resolves with the VCard data for a particular JID or for
  44433. * a `Backbone.Model` instance which represents an entity with a JID (such as a roster contact,
  44434. * chat or chatroom occupant).
  44435. *
  44436. * @example
  44437. * _converse.api.waitUntil('rosterContactsFetched').then(() => {
  44438. * _converse.api.vcard.get('someone@example.org').then(
  44439. * (vcard) => {
  44440. * // Do something with the vcard...
  44441. * }
  44442. * );
  44443. * });
  44444. */
  44445. 'get': function get(model, force) {
  44446. if (_.isString(model)) {
  44447. return getVCard(_converse, model);
  44448. } else if (force || !model.get('vcard_updated') || !moment(model.get('vcard_error')).isSame(new Date(), "day")) {
  44449. var jid = model.get('jid');
  44450. if (!jid) {
  44451. throw new Error("No JID to get vcard for!");
  44452. }
  44453. return getVCard(_converse, jid);
  44454. } else {
  44455. return Promise.resolve({});
  44456. }
  44457. },
  44458. /**
  44459. * Fetches the VCard associated with a particular `Backbone.Model` instance
  44460. * (by using its `jid` or `muc_jid` attribute) and then updates the model with the
  44461. * returned VCard data.
  44462. *
  44463. * @method _converse.api.vcard.update
  44464. * @param {Backbone.Model} model A `Backbone.Model` instance
  44465. * @param {boolean} [force] A boolean indicating whether the vcard should be
  44466. * fetched again even if it's been fetched before.
  44467. * @returns {promise} A promise which resolves once the update has completed.
  44468. * @example
  44469. * _converse.api.waitUntil('rosterContactsFetched').then(() => {
  44470. * const chatbox = _converse.chatboxes.getChatBox('someone@example.org');
  44471. * _converse.api.vcard.update(chatbox);
  44472. * });
  44473. */
  44474. 'update': function update(model, force) {
  44475. return this.get(model, force).then(function (vcard) {
  44476. delete vcard['stanza'];
  44477. model.save(vcard);
  44478. });
  44479. }
  44480. }
  44481. });
  44482. }
  44483. });
  44484. });
  44485. /***/ }),
  44486. /***/ "./src/converse.js":
  44487. /*!*************************!*\
  44488. !*** ./src/converse.js ***!
  44489. \*************************/
  44490. /*! no static exports found */
  44491. /***/ (function(module, exports, __webpack_require__) {
  44492. "use strict";
  44493. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  44494. /*global define */
  44495. if (true) {
  44496. // The section below determines which plugins will be included in a build
  44497. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"),
  44498. /* START: Removable components
  44499. * --------------------
  44500. * Any of the following components may be removed if they're not needed.
  44501. */
  44502. __webpack_require__(/*! converse-autocomplete */ "./src/converse-autocomplete.js"), __webpack_require__(/*! converse-bookmarks */ "./src/converse-bookmarks.js"), // XEP-0048 Bookmarks
  44503. __webpack_require__(/*! converse-caps */ "./src/converse-caps.js"), // XEP-0115 Entity Capabilities
  44504. __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), // Renders standalone chat boxes for single user chat
  44505. __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js"), // The control box
  44506. __webpack_require__(/*! converse-dragresize */ "./src/converse-dragresize.js"), // Allows chat boxes to be resized by dragging them
  44507. __webpack_require__(/*! converse-embedded */ "./src/converse-embedded.js"), __webpack_require__(/*! converse-fullscreen */ "./src/converse-fullscreen.js"), __webpack_require__(/*! converse-push */ "./src/converse-push.js"), // XEP-0357 Push Notifications
  44508. __webpack_require__(/*! converse-headline */ "./src/converse-headline.js"), // Support for headline messages
  44509. __webpack_require__(/*! converse-mam */ "./src/converse-mam.js"), // XEP-0313 Message Archive Management
  44510. __webpack_require__(/*! converse-minimize */ "./src/converse-minimize.js"), // Allows chat boxes to be minimized
  44511. __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), // XEP-0045 Multi-user chat
  44512. __webpack_require__(/*! converse-muc-views */ "./src/converse-muc-views.js"), // Views related to MUC
  44513. __webpack_require__(/*! converse-notification */ "./src/converse-notification.js"), // HTML5 Notifications
  44514. __webpack_require__(/*! converse-omemo */ "./src/converse-omemo.js"), __webpack_require__(/*! converse-ping */ "./src/converse-ping.js"), // XEP-0199 XMPP Ping
  44515. __webpack_require__(/*! converse-register */ "./src/converse-register.js"), // XEP-0077 In-band registration
  44516. __webpack_require__(/*! converse-roomslist */ "./src/converse-roomslist.js"), // Show currently open chat rooms
  44517. __webpack_require__(/*! converse-roster */ "./src/converse-roster.js"), __webpack_require__(/*! converse-vcard */ "./src/converse-vcard.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (converse) {
  44518. return converse;
  44519. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  44520. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44521. }
  44522. /***/ }),
  44523. /***/ "./src/i18n.js":
  44524. /*!*********************!*\
  44525. !*** ./src/i18n.js ***!
  44526. \*********************/
  44527. /*! no static exports found */
  44528. /***/ (function(module, exports, __webpack_require__) {
  44529. "use strict";
  44530. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  44531. // Converse.js (A browser based XMPP chat client)
  44532. // http://conversejs.org
  44533. //
  44534. // This is the internationalization module.
  44535. //
  44536. // Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
  44537. // Licensed under the Mozilla Public License (MPLv2)
  44538. //
  44539. /*global define */
  44540. (function (root, factory) {
  44541. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! es6-promise */ "es6-promise"), __webpack_require__(/*! jed */ "./node_modules/jed/jed.js"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! moment */ "moment"), __webpack_require__(/*! moment/locale/af */ "./node_modules/moment/locale/af.js"), __webpack_require__(/*! moment/locale/ar */ "./node_modules/moment/locale/ar.js"), __webpack_require__(/*! moment/locale/bg */ "./node_modules/moment/locale/bg.js"), __webpack_require__(/*! moment/locale/ca */ "./node_modules/moment/locale/ca.js"), __webpack_require__(/*! moment/locale/cs */ "./node_modules/moment/locale/cs.js"), __webpack_require__(/*! moment/locale/de */ "./node_modules/moment/locale/de.js"), __webpack_require__(/*! moment/locale/es */ "./node_modules/moment/locale/es.js"), __webpack_require__(/*! moment/locale/eu */ "./node_modules/moment/locale/eu.js"), __webpack_require__(/*! moment/locale/fr */ "./node_modules/moment/locale/fr.js"), __webpack_require__(/*! moment/locale/he */ "./node_modules/moment/locale/he.js"), __webpack_require__(/*! moment/locale/hi */ "./node_modules/moment/locale/hi.js"), __webpack_require__(/*! moment/locale/hu */ "./node_modules/moment/locale/hu.js"), __webpack_require__(/*! moment/locale/id */ "./node_modules/moment/locale/id.js"), __webpack_require__(/*! moment/locale/it */ "./node_modules/moment/locale/it.js"), __webpack_require__(/*! moment/locale/ja */ "./node_modules/moment/locale/ja.js"), __webpack_require__(/*! moment/locale/nb */ "./node_modules/moment/locale/nb.js"), __webpack_require__(/*! moment/locale/nl */ "./node_modules/moment/locale/nl.js"), __webpack_require__(/*! moment/locale/pl */ "./node_modules/moment/locale/pl.js"), __webpack_require__(/*! moment/locale/pt-br */ "./node_modules/moment/locale/pt-br.js"), __webpack_require__(/*! moment/locale/ro */ "./node_modules/moment/locale/ro.js"), __webpack_require__(/*! moment/locale/ru */ "./node_modules/moment/locale/ru.js"), __webpack_require__(/*! moment/locale/tr */ "./node_modules/moment/locale/tr.js"), __webpack_require__(/*! moment/locale/uk */ "./node_modules/moment/locale/uk.js"), __webpack_require__(/*! moment/locale/zh-cn */ "./node_modules/moment/locale/zh-cn.js"), __webpack_require__(/*! moment/locale/zh-tw */ "./node_modules/moment/locale/zh-tw.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  44542. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  44543. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  44544. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44545. })(void 0, function (Promise, Jed, _, moment) {
  44546. 'use strict';
  44547. function detectLocale(library_check) {
  44548. /* Determine which locale is supported by the user's system as well
  44549. * as by the relevant library (e.g. converse.js or moment.js).
  44550. *
  44551. * Parameters:
  44552. * (Function) library_check - Returns a boolean indicating whether
  44553. * the locale is supported.
  44554. */
  44555. var locale, i;
  44556. if (window.navigator.userLanguage) {
  44557. locale = isLocaleAvailable(window.navigator.userLanguage, library_check);
  44558. }
  44559. if (window.navigator.languages && !locale) {
  44560. for (i = 0; i < window.navigator.languages.length && !locale; i++) {
  44561. locale = isLocaleAvailable(window.navigator.languages[i], library_check);
  44562. }
  44563. }
  44564. if (window.navigator.browserLanguage && !locale) {
  44565. locale = isLocaleAvailable(window.navigator.browserLanguage, library_check);
  44566. }
  44567. if (window.navigator.language && !locale) {
  44568. locale = isLocaleAvailable(window.navigator.language, library_check);
  44569. }
  44570. if (window.navigator.systemLanguage && !locale) {
  44571. locale = isLocaleAvailable(window.navigator.systemLanguage, library_check);
  44572. }
  44573. return locale || 'en';
  44574. }
  44575. function isMomentLocale(locale) {
  44576. return _.includes(moment.locales(), locale);
  44577. }
  44578. function isConverseLocale(locale, supported_locales) {
  44579. return _.isString(locale) && _.includes(supported_locales, locale);
  44580. }
  44581. function getLocale(preferred_locale, isSupportedByLibrary) {
  44582. if (_.isString(preferred_locale)) {
  44583. if (preferred_locale === 'en' || isSupportedByLibrary(preferred_locale)) {
  44584. return preferred_locale;
  44585. }
  44586. }
  44587. return detectLocale(isSupportedByLibrary) || 'en';
  44588. }
  44589. function isLocaleAvailable(locale, available) {
  44590. /* Check whether the locale or sub locale (e.g. en-US, en) is supported.
  44591. *
  44592. * Parameters:
  44593. * (String) locale - The locale to check for
  44594. * (Function) available - returns a boolean indicating whether the locale is supported
  44595. */
  44596. if (available(locale)) {
  44597. return locale;
  44598. } else {
  44599. var sublocale = locale.split("-")[0];
  44600. if (sublocale !== locale && available(sublocale)) {
  44601. return sublocale;
  44602. }
  44603. }
  44604. }
  44605. var jed_instance;
  44606. return {
  44607. setLocales: function setLocales(preferred_locale, _converse) {
  44608. _converse.locale = getLocale(preferred_locale, _.partial(isConverseLocale, _, _converse.locales));
  44609. moment.locale(getLocale(preferred_locale, isMomentLocale));
  44610. },
  44611. translate: function translate(str) {
  44612. if (_.isNil(jed_instance)) {
  44613. return Jed.sprintf.apply(Jed, arguments);
  44614. }
  44615. var t = jed_instance.translate(str);
  44616. if (arguments.length > 1) {
  44617. return t.fetch.apply(t, [].slice.call(arguments, 1));
  44618. } else {
  44619. return t.fetch();
  44620. }
  44621. },
  44622. fetchTranslations: function fetchTranslations(locale, supported_locales, locale_url) {
  44623. /* Fetch the translations for the given local at the given URL.
  44624. *
  44625. * Parameters:
  44626. * (String) locale: The given i18n locale
  44627. * (Array) supported_locales: List of locales supported
  44628. * (String) locale_url: The URL from which the translations
  44629. * should be fetched.
  44630. */
  44631. return new Promise(function (resolve, reject) {
  44632. if (!isConverseLocale(locale, supported_locales) || locale === 'en') {
  44633. return resolve();
  44634. }
  44635. var xhr = new XMLHttpRequest();
  44636. xhr.open('GET', locale_url, true);
  44637. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  44638. xhr.onload = function () {
  44639. if (xhr.status >= 200 && xhr.status < 400) {
  44640. try {
  44641. var data = window.JSON.parse(xhr.responseText);
  44642. jed_instance = new Jed(data);
  44643. resolve();
  44644. } catch (e) {
  44645. xhr.onerror(e);
  44646. }
  44647. } else {
  44648. xhr.onerror();
  44649. }
  44650. };
  44651. xhr.onerror = function (e) {
  44652. var err_message = e ? " Error: ".concat(e.message) : '';
  44653. reject(new Error("Could not fetch translations. Status: ".concat(xhr.statusText, ". ").concat(err_message)));
  44654. };
  44655. xhr.send();
  44656. });
  44657. }
  44658. };
  44659. });
  44660. /***/ }),
  44661. /***/ "./src/jquery-stub.js":
  44662. /*!****************************!*\
  44663. !*** ./src/jquery-stub.js ***!
  44664. \****************************/
  44665. /*! no static exports found */
  44666. /***/ (function(module, exports, __webpack_require__) {
  44667. "use strict";
  44668. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  44669. /*global define */
  44670. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  44671. return Object;
  44672. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  44673. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44674. /***/ }),
  44675. /***/ "./src/lodash.fp.js":
  44676. /*!**************************!*\
  44677. !*** ./src/lodash.fp.js ***!
  44678. \**************************/
  44679. /*! no static exports found */
  44680. /***/ (function(module, exports, __webpack_require__) {
  44681. "use strict";
  44682. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  44683. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash */ "lodash"), __webpack_require__(/*! lodash.converter */ "lodash.converter")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (_, lodashConverter) {
  44684. var fp = lodashConverter(_.runInContext());
  44685. return fp;
  44686. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  44687. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44688. /***/ }),
  44689. /***/ "./src/polyfill.js":
  44690. /*!*************************!*\
  44691. !*** ./src/polyfill.js ***!
  44692. \*************************/
  44693. /*! no static exports found */
  44694. /***/ (function(module, exports, __webpack_require__) {
  44695. "use strict";
  44696. function CustomEvent(event, params) {
  44697. params = params || {
  44698. bubbles: false,
  44699. cancelable: false,
  44700. detail: undefined
  44701. };
  44702. var evt = document.createEvent('CustomEvent');
  44703. evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
  44704. return evt;
  44705. }
  44706. if (typeof window.CustomEvent !== "function") {
  44707. CustomEvent.prototype = window.Event.prototype;
  44708. window.CustomEvent = CustomEvent;
  44709. }
  44710. if (!String.prototype.includes) {
  44711. String.prototype.includes = function (search, start) {
  44712. 'use strict';
  44713. if (typeof start !== 'number') {
  44714. start = 0;
  44715. }
  44716. if (start + search.length > this.length) {
  44717. return false;
  44718. } else {
  44719. return this.indexOf(search, start) !== -1; // eslint-disable-line lodash/prefer-includes
  44720. }
  44721. };
  44722. }
  44723. if (!String.prototype.endsWith) {
  44724. String.prototype.endsWith = function (searchString, position) {
  44725. var subjectString = this.toString();
  44726. if (position === undefined || position > subjectString.length) {
  44727. position = subjectString.length;
  44728. }
  44729. position -= searchString.length;
  44730. var lastIndex = subjectString.indexOf(searchString, position);
  44731. return lastIndex !== -1 && lastIndex === position;
  44732. };
  44733. }
  44734. if (!String.prototype.startsWith) {
  44735. String.prototype.startsWith = function (searchString, position) {
  44736. position = position || 0;
  44737. return this.substr(position, searchString.length) === searchString;
  44738. };
  44739. }
  44740. if (!String.prototype.splitOnce) {
  44741. String.prototype.splitOnce = function (delimiter) {
  44742. var components = this.split(delimiter);
  44743. return [components.shift(), components.join(delimiter)];
  44744. };
  44745. }
  44746. if (!String.prototype.trim) {
  44747. String.prototype.trim = function () {
  44748. return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
  44749. };
  44750. }
  44751. /***/ }),
  44752. /***/ "./src/templates/add_chatroom_modal.html":
  44753. /*!***********************************************!*\
  44754. !*** ./src/templates/add_chatroom_modal.html ***!
  44755. \***********************************************/
  44756. /*! no static exports found */
  44757. /***/ (function(module, exports, __webpack_require__) {
  44758. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44759. module.exports = function(o) {
  44760. var __t, __p = '', __e = _.escape;
  44761. __p += '<!-- src/templates/add_chatroom_modal.html -->\n<div class="modal fade" id="add-chatroom-modal" tabindex="-1" role="dialog" aria-labelledby="add-chatroom-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title"\n id="add-chatroom-modal-label">' +
  44762. __e(o.heading_new_chatroom) +
  44763. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <div class="modal-body">\n <form class="converse-form add-chatroom">\n <div class="form-group">\n <label for="chatroom">' +
  44764. __e(o.label_room_address) +
  44765. ':</label>\n <input type="text" required="required" name="chatroom" class="form-control" placeholder="' +
  44766. __e(o.chatroom_placeholder) +
  44767. '">\n </div>\n <div class="form-group">\n <label for="nickname">' +
  44768. __e(o.label_nickname) +
  44769. ':</label>\n <input type="text" name="nickname" value="' +
  44770. __e(o.nick) +
  44771. '" class="form-control">\n </div>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  44772. __e(o.label_join) +
  44773. '">\n </form>\n </div>\n </div>\n </div>\n</div>\n';
  44774. return __p
  44775. };
  44776. /***/ }),
  44777. /***/ "./src/templates/add_contact_modal.html":
  44778. /*!**********************************************!*\
  44779. !*** ./src/templates/add_contact_modal.html ***!
  44780. \**********************************************/
  44781. /*! no static exports found */
  44782. /***/ (function(module, exports, __webpack_require__) {
  44783. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44784. module.exports = function(o) {
  44785. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44786. function print() { __p += __j.call(arguments, '') }
  44787. __p += '<!-- src/templates/add_contact_modal.html -->\n<!-- Add contact Modal -->\n<div class="modal fade" id="add-contact-modal" tabindex="-1" role="dialog" aria-labelledby="addContactModalLabel" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="addContactModalLabel">' +
  44788. __e(o.heading_new_contact) +
  44789. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n </div>\n <form class="converse-form add-xmpp-contact">\n <div class="modal-body">\n <div class="form-group ';
  44790. if (o._converse.xhr_user_search_url) { ;
  44791. __p += ' hidden ';
  44792. } ;
  44793. __p += '">\n <label class="clearfix" for="jid">' +
  44794. __e(o.label_xmpp_address) +
  44795. ':</label>\n <input type="text" name="jid" required="required" value="' +
  44796. __e(o.jid) +
  44797. '"\n class="form-control"\n placeholder="' +
  44798. __e(o.contact_placeholder) +
  44799. '"/>\n <div class="invalid-feedback">' +
  44800. __e(o.error_message) +
  44801. '</div>\n </div>\n <div class="form-group">\n <label class="clearfix" for="name">' +
  44802. __e(o.label_nickname) +
  44803. ':</label>\n <input type="text" name="name" value="' +
  44804. __e(o.nickname) +
  44805. '"\n class="form-control"\n placeholder="' +
  44806. __e(o.nickname_placeholder) +
  44807. '"/>\n </div>\n </div>\n <div class="modal-footer">\n <button type="submit" class="btn btn-primary">' +
  44808. __e(o.label_add) +
  44809. '</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
  44810. return __p
  44811. };
  44812. /***/ }),
  44813. /***/ "./src/templates/alert.html":
  44814. /*!**********************************!*\
  44815. !*** ./src/templates/alert.html ***!
  44816. \**********************************/
  44817. /*! no static exports found */
  44818. /***/ (function(module, exports, __webpack_require__) {
  44819. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44820. module.exports = function(o) {
  44821. var __t, __p = '', __e = _.escape;
  44822. __p += '<!-- src/templates/alert.html -->\n<div class="alert ' +
  44823. __e(o.type) +
  44824. '" role="alert">' +
  44825. __e(o.message) +
  44826. '</div>\n';
  44827. return __p
  44828. };
  44829. /***/ }),
  44830. /***/ "./src/templates/alert_modal.html":
  44831. /*!****************************************!*\
  44832. !*** ./src/templates/alert_modal.html ***!
  44833. \****************************************/
  44834. /*! no static exports found */
  44835. /***/ (function(module, exports, __webpack_require__) {
  44836. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44837. module.exports = function(o) {
  44838. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44839. function print() { __p += __j.call(arguments, '') }
  44840. __p += '<!-- src/templates/alert_modal.html -->\n<div class="modal" tabindex="-1" role="dialog">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header ' +
  44841. __e(o.type) +
  44842. '">\n <h5 class="modal-title">' +
  44843. __e(o.title) +
  44844. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <div class="modal-body">';
  44845. o.messages.forEach(function (message) { ;
  44846. __p += '\n <p>' +
  44847. __e(message) +
  44848. '</p>\n ';
  44849. }) ;
  44850. __p += '\n </div>\n </div>\n </div>\n</div>\n';
  44851. return __p
  44852. };
  44853. /***/ }),
  44854. /***/ "./src/templates/audio.html":
  44855. /*!**********************************!*\
  44856. !*** ./src/templates/audio.html ***!
  44857. \**********************************/
  44858. /*! no static exports found */
  44859. /***/ (function(module, exports, __webpack_require__) {
  44860. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44861. module.exports = function(o) {
  44862. var __t, __p = '', __e = _.escape;
  44863. __p += '<!-- src/templates/audio.html -->\n<audio controls src="' +
  44864. __e(o.url) +
  44865. '"></audio>\n<a target="_blank" rel="noopener" href="' +
  44866. __e(o.url) +
  44867. '">' +
  44868. __e(o.label_download) +
  44869. '</a>\n';
  44870. return __p
  44871. };
  44872. /***/ }),
  44873. /***/ "./src/templates/bookmark.html":
  44874. /*!*************************************!*\
  44875. !*** ./src/templates/bookmark.html ***!
  44876. \*************************************/
  44877. /*! no static exports found */
  44878. /***/ (function(module, exports, __webpack_require__) {
  44879. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44880. module.exports = function(o) {
  44881. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44882. function print() { __p += __j.call(arguments, '') }
  44883. __p += '<!-- src/templates/bookmark.html -->\n<div class="list-item controlbox-padded room-item available-chatroom d-flex flex-row ';
  44884. if (o.hidden) { ;
  44885. __p += ' hidden ';
  44886. } ;
  44887. __p += '" data-room-jid="' +
  44888. __e(o.jid) +
  44889. '">\n <a class="list-item-link open-room w-100" data-room-jid="' +
  44890. __e(o.jid) +
  44891. '" title="' +
  44892. __e(o.open_title) +
  44893. '" href="#">' +
  44894. __e(o.name) +
  44895. '</a>\n <a class="list-item-action remove-bookmark fa fa-bookmark align-self-center ';
  44896. if (o.bookmarked) { ;
  44897. __p += ' button-on ';
  44898. } ;
  44899. __p += '"\n data-room-jid="' +
  44900. __e(o.jid) +
  44901. '" data-bookmark-name="' +
  44902. __e(o.name) +
  44903. '"\n title="' +
  44904. __e(o.info_remove_bookmark) +
  44905. '" href="#">&nbsp;</a>\n</div>\n';
  44906. return __p
  44907. };
  44908. /***/ }),
  44909. /***/ "./src/templates/bookmarks_list.html":
  44910. /*!*******************************************!*\
  44911. !*** ./src/templates/bookmarks_list.html ***!
  44912. \*******************************************/
  44913. /*! no static exports found */
  44914. /***/ (function(module, exports, __webpack_require__) {
  44915. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44916. module.exports = function(o) {
  44917. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44918. function print() { __p += __j.call(arguments, '') }
  44919. __p += '<!-- src/templates/bookmarks_list.html -->\n<a href="#" class="list-toggle bookmarks-toggle controlbox-padded" title="' +
  44920. __e(o.desc_bookmarks) +
  44921. '">\n <span class="fa ';
  44922. if (o.toggle_state === o._converse.OPENED) { ;
  44923. __p += ' fa-caret-down ';
  44924. } else { ;
  44925. __p += ' fa-caret-right ';
  44926. } ;
  44927. __p += '">\n </span> ' +
  44928. __e(o.label_bookmarks) +
  44929. '</a>\n<div class="items-list bookmarks rooms-list ';
  44930. if (o.toggle_state !== o._converse.OPENED) { ;
  44931. __p += ' hidden ';
  44932. } ;
  44933. __p += '"></div>\n';
  44934. return __p
  44935. };
  44936. /***/ }),
  44937. /***/ "./src/templates/chat_status_modal.html":
  44938. /*!**********************************************!*\
  44939. !*** ./src/templates/chat_status_modal.html ***!
  44940. \**********************************************/
  44941. /*! no static exports found */
  44942. /***/ (function(module, exports, __webpack_require__) {
  44943. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44944. module.exports = function(o) {
  44945. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44946. function print() { __p += __j.call(arguments, '') }
  44947. __p += '<!-- src/templates/chat_status_modal.html -->\n<!-- Change status Modal -->\n<div class="modal fade" id="modal-status-change" tabindex="-1" role="dialog" aria-labelledby="changeStatusModalLabel" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="changeStatusModalLabel">' +
  44948. __e(o.modal_title) +
  44949. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  44950. __e(o.label_close) +
  44951. '">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <form class="set-xmpp-status" id="set-xmpp-status">\n <div class="modal-body">\n <div class="form-group">\n <div class="custom-control custom-radio">\n <input ';
  44952. if (o.status === 'online') { ;
  44953. __p += ' checked="checked" ';
  44954. } ;
  44955. __p += '\n type="radio" id="radio-online" value="online" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-online">\n <span class="fa fa-circle"></span>&nbsp;' +
  44956. __e(o.label_online) +
  44957. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  44958. if (o.status === 'busy') { ;
  44959. __p += ' checked="checked" ';
  44960. } ;
  44961. __p += '\n type="radio" id="radio-busy" value="dnd" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-busy">\n <span class="fa fa-minus-circle"></span>&nbsp;' +
  44962. __e(o.label_busy) +
  44963. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  44964. if (o.status === 'away') { ;
  44965. __p += ' checked="checked" ';
  44966. } ;
  44967. __p += '\n type="radio" id="radio-away" value="away" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-away">\n <span class="fa fa-dot-circle"></span>&nbsp;' +
  44968. __e(o.label_away) +
  44969. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  44970. if (o.status === 'xa') { ;
  44971. __p += ' checked="checked" ';
  44972. } ;
  44973. __p += '\n type="radio" id="radio-xa" value="xa" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-xa">\n <span class="far fa-circle"></span>&nbsp;' +
  44974. __e(o.label_xa) +
  44975. '</label>\n </div>\n </div>\n <div class="btn-group w-100">\n <input name="status_message" type="text" class="form-control" \n value="' +
  44976. __e(o.status_message) +
  44977. '" placeholder="' +
  44978. __e(o.placeholder_status_message) +
  44979. '">\n <span class="clear-input fa fa-times ';
  44980. if (!o.status_message) { ;
  44981. __p += ' hidden ';
  44982. } ;
  44983. __p += '"></span>\n </div>\n </div>\n <div class="modal-footer">\n <button type="submit" class="btn btn-primary">' +
  44984. __e(o.label_save) +
  44985. '</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
  44986. return __p
  44987. };
  44988. /***/ }),
  44989. /***/ "./src/templates/chatarea.html":
  44990. /*!*************************************!*\
  44991. !*** ./src/templates/chatarea.html ***!
  44992. \*************************************/
  44993. /*! no static exports found */
  44994. /***/ (function(module, exports, __webpack_require__) {
  44995. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44996. module.exports = function(o) {
  44997. var __t, __p = '', __j = Array.prototype.join;
  44998. function print() { __p += __j.call(arguments, '') }
  44999. __p += '<!-- src/templates/chatarea.html -->\n<div class="chat-area col-md-9 col-8">\n <div class="chat-content ';
  45000. if (o.show_send_button) { ;
  45001. __p += 'chat-content-sendbutton';
  45002. } ;
  45003. __p += '"></div>\n <div class="message-form-container"/>\n</div>\n';
  45004. return __p
  45005. };
  45006. /***/ }),
  45007. /***/ "./src/templates/chatbox.html":
  45008. /*!************************************!*\
  45009. !*** ./src/templates/chatbox.html ***!
  45010. \************************************/
  45011. /*! no static exports found */
  45012. /***/ (function(module, exports, __webpack_require__) {
  45013. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45014. module.exports = function(o) {
  45015. var __t, __p = '', __j = Array.prototype.join;
  45016. function print() { __p += __j.call(arguments, '') }
  45017. __p += '<!-- src/templates/chatbox.html -->\n<div class="flyout box-flyout">\n <div class="chat-body">\n <div class="chat-content ';
  45018. if (o.show_send_button) { ;
  45019. __p += 'chat-content-sendbutton';
  45020. } ;
  45021. __p += '"></div>\n <div class="message-form-container"/>\n </div>\n</div>\n';
  45022. return __p
  45023. };
  45024. /***/ }),
  45025. /***/ "./src/templates/chatbox_head.html":
  45026. /*!*****************************************!*\
  45027. !*** ./src/templates/chatbox_head.html ***!
  45028. \*****************************************/
  45029. /*! no static exports found */
  45030. /***/ (function(module, exports, __webpack_require__) {
  45031. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45032. module.exports = function(o) {
  45033. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45034. function print() { __p += __j.call(arguments, '') }
  45035. __p += '<!-- src/templates/chatbox_head.html -->\n<div class="chat-head chat-head-chatbox row no-gutters">\n <div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>\n <div class="chatbox-title">\n <div class="row no-gutters">\n <canvas class="avatar" height="36" width="36"></canvas>\n <div class="col chat-title" title="' +
  45036. __e(o.jid) +
  45037. '">\n ';
  45038. if (o.url) { ;
  45039. __p += '\n <a href="' +
  45040. __e(o.url) +
  45041. '" target="_blank" rel="noopener" class="user">\n ';
  45042. } ;
  45043. __p += '\n ' +
  45044. __e( o.nickname || o.fullname || o.jid ) +
  45045. '\n ';
  45046. if (o.url) { ;
  45047. __p += '\n </a>\n ';
  45048. } ;
  45049. __p += '\n <p class="user-custom-message">' +
  45050. __e( o.status ) +
  45051. '</p>\n </div>\n </div>\n </div>\n <div class="chatbox-buttons row no-gutters">\n <a class="chatbox-btn close-chatbox-button fa fa-times" title=' +
  45052. __e(o.info_close) +
  45053. '></a>\n <a class="chatbox-btn show-user-details-modal fa fa-id-card" title="' +
  45054. __e(o.info_details) +
  45055. '"></a>\n </div>\n</div>\n';
  45056. return __p
  45057. };
  45058. /***/ }),
  45059. /***/ "./src/templates/chatbox_message_form.html":
  45060. /*!*************************************************!*\
  45061. !*** ./src/templates/chatbox_message_form.html ***!
  45062. \*************************************************/
  45063. /*! no static exports found */
  45064. /***/ (function(module, exports, __webpack_require__) {
  45065. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45066. module.exports = function(o) {
  45067. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45068. function print() { __p += __j.call(arguments, '') }
  45069. __p += '<!-- src/templates/chatbox_message_form.html -->\n<div class="message-form-container">\n<div class="new-msgs-indicator hidden">▼ ' +
  45070. __e( o.unread_msgs ) +
  45071. ' ▼</div>\n<form class="sendXMPPMessage">\n ';
  45072. if (o.show_toolbar) { ;
  45073. __p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
  45074. } ;
  45075. __p += '\n <input type="text" placeholder="' +
  45076. ((__t = (o.label_spoiler_hint)) == null ? '' : __t) +
  45077. '" value="' +
  45078. ((__t = ( o.hint_value )) == null ? '' : __t) +
  45079. '"\n class="';
  45080. if (!o.composing_spoiler) { ;
  45081. __p += ' hidden ';
  45082. } ;
  45083. __p += ' spoiler-hint"/>\n\n <div class="suggestion-box">\n <ul class="suggestion-box__results suggestion-box__results--above" hidden></ul>\n <textarea\n type="text"\n class="chat-textarea suggestion-box__input\n ';
  45084. if (o.show_send_button) { ;
  45085. __p += ' chat-textarea-send-button ';
  45086. } ;
  45087. __p += '\n ';
  45088. if (o.composing_spoiler) { ;
  45089. __p += ' spoiler ';
  45090. } ;
  45091. __p += '"\n placeholder="' +
  45092. __e(o.label_message) +
  45093. '">' +
  45094. ((__t = ( o.message_value )) == null ? '' : __t) +
  45095. '</textarea>\n <span class="suggestion-box__additions visually-hidden" role="status" aria-live="assertive" aria-relevant="additions"></span>\n\n ';
  45096. if (o.show_send_button) { ;
  45097. __p += '\n <button type="submit" class="pure-button send-button">' +
  45098. __e( o.label_send ) +
  45099. '</button>\n ';
  45100. } ;
  45101. __p += '\n </div>\n</form>\n</div>\n';
  45102. return __p
  45103. };
  45104. /***/ }),
  45105. /***/ "./src/templates/chatbox_minimize.html":
  45106. /*!*********************************************!*\
  45107. !*** ./src/templates/chatbox_minimize.html ***!
  45108. \*********************************************/
  45109. /*! no static exports found */
  45110. /***/ (function(module, exports, __webpack_require__) {
  45111. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45112. module.exports = function(o) {
  45113. var __t, __p = '', __e = _.escape;
  45114. __p += '<!-- src/templates/chatbox_minimize.html -->\n<a class="chatbox-btn toggle-chatbox-button fa fa-minus" title="' +
  45115. __e(o.info_minimize) +
  45116. '"></a>\n';
  45117. return __p
  45118. };
  45119. /***/ }),
  45120. /***/ "./src/templates/chatboxes.html":
  45121. /*!**************************************!*\
  45122. !*** ./src/templates/chatboxes.html ***!
  45123. \**************************************/
  45124. /*! no static exports found */
  45125. /***/ (function(module, exports, __webpack_require__) {
  45126. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45127. module.exports = function(o) {
  45128. var __t, __p = '';
  45129. __p += '<!-- src/templates/chatboxes.html -->\n<div class="converse-chatboxes row no-gutters"></div>\n<div id="converse-modals" class="modals"></div>\n';
  45130. return __p
  45131. };
  45132. /***/ }),
  45133. /***/ "./src/templates/chatroom.html":
  45134. /*!*************************************!*\
  45135. !*** ./src/templates/chatroom.html ***!
  45136. \*************************************/
  45137. /*! no static exports found */
  45138. /***/ (function(module, exports, __webpack_require__) {
  45139. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45140. module.exports = function(o) {
  45141. var __t, __p = '';
  45142. __p += '<!-- src/templates/chatroom.html -->\n<div class="flyout box-flyout">\n <div class="chat-head chat-head-chatroom row no-gutters"></div>\n <div class="chat-body chatroom-body row no-gutters">\n <div class="disconnect-container hidden"></div>\n </div>\n</div>\n';
  45143. return __p
  45144. };
  45145. /***/ }),
  45146. /***/ "./src/templates/chatroom_bookmark_form.html":
  45147. /*!***************************************************!*\
  45148. !*** ./src/templates/chatroom_bookmark_form.html ***!
  45149. \***************************************************/
  45150. /*! no static exports found */
  45151. /***/ (function(module, exports, __webpack_require__) {
  45152. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45153. module.exports = function(o) {
  45154. var __t, __p = '', __e = _.escape;
  45155. __p += '<!-- src/templates/chatroom_bookmark_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form">\n <legend>' +
  45156. __e(o.heading) +
  45157. '</legend>\n <fieldset class="form-group">\n <label for="converse_muc_bookmark_name">' +
  45158. __e(o.label_name) +
  45159. '</label>\n <input class="form-control" type="text" value="' +
  45160. __e(o.name) +
  45161. '" name="name" required="required" id="converse_muc_bookmark_name"/>\n </fieldset>\n <fieldset class="form-group">\n <label for="converse_muc_bookmark_nick">' +
  45162. __e(o.label_nick) +
  45163. '</label>\n <input class="form-control" type="text" name="nick" value="' +
  45164. __e(o.default_nick) +
  45165. '" id="converse_muc_bookmark_nick"/>\n </fieldset>\n <fieldset class="form-group form-check">\n <input class="form-check-input" id="converse_muc_bookmark_autojoin" type="checkbox" name="autojoin"/>\n <label class="form-check-label" for="converse_muc_bookmark_autojoin">' +
  45166. __e(o.label_autojoin) +
  45167. '</label>\n </fieldset>\n <fieldset class="form-group">\n <input class="btn btn-primary" type="submit" value="' +
  45168. __e(o.label_submit) +
  45169. '"/>\n <input class="btn btn-secondary button-cancel" type="button" value="' +
  45170. __e(o.label_cancel) +
  45171. '"/>\n </fieldset>\n </form>\n</div>\n';
  45172. return __p
  45173. };
  45174. /***/ }),
  45175. /***/ "./src/templates/chatroom_bookmark_toggle.html":
  45176. /*!*****************************************************!*\
  45177. !*** ./src/templates/chatroom_bookmark_toggle.html ***!
  45178. \*****************************************************/
  45179. /*! no static exports found */
  45180. /***/ (function(module, exports, __webpack_require__) {
  45181. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45182. module.exports = function(o) {
  45183. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45184. function print() { __p += __j.call(arguments, '') }
  45185. __p += '<!-- src/templates/chatroom_bookmark_toggle.html -->\n<a class="chatbox-btn toggle-bookmark fa fa-bookmark\n ';
  45186. if (o.bookmarked) {;
  45187. __p += ' button-on ';
  45188. } ;
  45189. __p += '" title="' +
  45190. __e(o.info_toggle_bookmark) +
  45191. '"></a>\n';
  45192. return __p
  45193. };
  45194. /***/ }),
  45195. /***/ "./src/templates/chatroom_details_modal.html":
  45196. /*!***************************************************!*\
  45197. !*** ./src/templates/chatroom_details_modal.html ***!
  45198. \***************************************************/
  45199. /*! no static exports found */
  45200. /***/ (function(module, exports, __webpack_require__) {
  45201. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45202. module.exports = function(o) {
  45203. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45204. function print() { __p += __j.call(arguments, '') }
  45205. __p += '<!-- src/templates/chatroom_details_modal.html -->\n<div class="modal fade" id="room-details-modal" tabindex="-1" role="dialog" aria-labelledby="room-details-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="room-details-modal-label">' +
  45206. __e(o.display_name) +
  45207. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  45208. __e(o.label_close) +
  45209. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n <div class="room-info">\n <p class="room-info"><strong>' +
  45210. __e(o.__('Name')) +
  45211. '</strong>: ' +
  45212. __e(o.name) +
  45213. '</p>\n <p class="room-info"><strong>' +
  45214. __e(o.__('Groupchat address (JID)')) +
  45215. '</strong>: ' +
  45216. __e(o.jid) +
  45217. '</p>\n <p class="room-info"><strong>' +
  45218. __e(o.__('Description')) +
  45219. '</strong>: ' +
  45220. __e(o.description) +
  45221. '</p>\n ';
  45222. if (o.subject) { ;
  45223. __p += '\n <p class="room-info"><strong>' +
  45224. __e(o.__('Topic')) +
  45225. '</strong>: ' +
  45226. ((__t = (o.topic)) == null ? '' : __t) +
  45227. '</p> <!-- Sanitized in converse-muc-views. We want to render links. -->\n <p class="room-info"><strong>' +
  45228. __e(o.__('Topic author')) +
  45229. '</strong>: ' +
  45230. __e(o._.get(o.subject, 'author')) +
  45231. '</p>\n ';
  45232. } ;
  45233. __p += '\n <p class="room-info"><strong>' +
  45234. __e(o.__('Online users')) +
  45235. '</strong>: ' +
  45236. __e(o.num_occupants) +
  45237. '</p>\n <p class="room-info"><strong>' +
  45238. __e(o.__('Features')) +
  45239. '</strong>:\n <div class="chatroom-features">\n <ul class="features-list">\n ';
  45240. if (o.passwordprotected) { ;
  45241. __p += '\n <li class="feature" ><span class="fa fa-lock"></span>' +
  45242. __e( o.__('Password protected') ) +
  45243. ' - <em>' +
  45244. __e( o.__('This groupchat requires a password before entry') ) +
  45245. '</em></li>\n ';
  45246. } ;
  45247. __p += '\n ';
  45248. if (o.unsecured) { ;
  45249. __p += '\n <li class="feature" ><span class="fa fa-unlock"></span>' +
  45250. __e( o.__('No password required') ) +
  45251. ' - <em>' +
  45252. __e( o.__('This groupchat does not require a password upon entry') ) +
  45253. '</em></li>\n ';
  45254. } ;
  45255. __p += '\n ';
  45256. if (o.hidden) { ;
  45257. __p += '\n <li class="feature" ><span class="fa fa-eye-slash"></span>' +
  45258. __e( o.__('Hidden') ) +
  45259. ' - <em>' +
  45260. __e( o.__('This groupchat is not publicly searchable') ) +
  45261. '</em></li>\n ';
  45262. } ;
  45263. __p += '\n ';
  45264. if (o.public_room) { ;
  45265. __p += '\n <li class="feature" ><span class="fa fa-eye"></span>' +
  45266. __e( o.__('Public') ) +
  45267. ' - <em>' +
  45268. __e( o.__('This groupchat is publicly searchable') ) +
  45269. '</em></li>\n ';
  45270. } ;
  45271. __p += '\n ';
  45272. if (o.membersonly) { ;
  45273. __p += '\n <li class="feature" ><span class="fa fa-address-book"></span>' +
  45274. __e( o.__('Members only') ) +
  45275. ' - <em>' +
  45276. __e( o.__('This groupchat is restricted to members only') ) +
  45277. '</em></li>\n ';
  45278. } ;
  45279. __p += '\n ';
  45280. if (o.open) { ;
  45281. __p += '\n <li class="feature" ><span class="fa fa-globe"></span>' +
  45282. __e( o.__('Open') ) +
  45283. ' - <em>' +
  45284. __e( o.__('Anyone can join this groupchat') ) +
  45285. '</em></li>\n ';
  45286. } ;
  45287. __p += '\n ';
  45288. if (o.persistent) { ;
  45289. __p += '\n <li class="feature" ><span class="fa fa-save"></span>' +
  45290. __e( o.__('Persistent') ) +
  45291. ' - <em>' +
  45292. __e( o.__('This groupchat persists even if it\'s unoccupied') ) +
  45293. '</em></li>\n ';
  45294. } ;
  45295. __p += '\n ';
  45296. if (o.temporary) { ;
  45297. __p += '\n <li class="feature" ><span class="fa fa-snowflake-o"></span>' +
  45298. __e( o.__('Temporary') ) +
  45299. ' - <em>' +
  45300. __e( o.__('This groupchat will disappear once the last person leaves') ) +
  45301. '</em></li>\n ';
  45302. } ;
  45303. __p += '\n ';
  45304. if (o.nonanonymous) { ;
  45305. __p += '\n <li class="feature" ><span class="fa fa-id-card"></span>' +
  45306. __e( o.__('Not anonymous') ) +
  45307. ' - <em>' +
  45308. __e( o.__('All other groupchat participants can see your XMPP username') ) +
  45309. '</em></li>\n ';
  45310. } ;
  45311. __p += '\n ';
  45312. if (o.semianonymous) { ;
  45313. __p += '\n <li class="feature" ><span class="fa fa-user-secret"></span>' +
  45314. __e( o.__('Semi-anonymous') ) +
  45315. ' - <em>' +
  45316. __e( o.__('Only moderators can see your XMPP username') ) +
  45317. '</em></li>\n ';
  45318. } ;
  45319. __p += '\n ';
  45320. if (o.moderated) { ;
  45321. __p += '\n <li class="feature" ><span class="fa fa-gavel"></span>' +
  45322. __e( o.__('Moderated') ) +
  45323. ' - <em>' +
  45324. __e( o.__('This groupchat is being moderated') ) +
  45325. '</em></li>\n ';
  45326. } ;
  45327. __p += '\n ';
  45328. if (o.unmoderated) { ;
  45329. __p += '\n <li class="feature" ><span class="fa fa-info-circle"></span>' +
  45330. __e( o.__('Not moderated') ) +
  45331. ' - <em>' +
  45332. __e( o.__('This groupchat is not being moderated') ) +
  45333. '</em></li>\n ';
  45334. } ;
  45335. __p += '\n ';
  45336. if (o.mam_enabled) { ;
  45337. __p += '\n <li class="feature" ><span class="fa fa-database"></span>' +
  45338. __e( o.__('Message archiving') ) +
  45339. ' - <em>' +
  45340. __e( o.__('Messages are archived on the server') ) +
  45341. '</em></li>\n ';
  45342. } ;
  45343. __p += '\n </ul>\n </div>\n </p>\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  45344. __e(o.__('Close')) +
  45345. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  45346. return __p
  45347. };
  45348. /***/ }),
  45349. /***/ "./src/templates/chatroom_disconnect.html":
  45350. /*!************************************************!*\
  45351. !*** ./src/templates/chatroom_disconnect.html ***!
  45352. \************************************************/
  45353. /*! no static exports found */
  45354. /***/ (function(module, exports, __webpack_require__) {
  45355. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45356. module.exports = function(o) {
  45357. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45358. function print() { __p += __j.call(arguments, '') }
  45359. __p += '<!-- src/templates/chatroom_disconnect.html -->\n<div class="alert alert-danger">\n <h3 class="alert-heading disconnect-msg">' +
  45360. __e(o.disconnect_messages[0]) +
  45361. '</h3>\n\n ';
  45362. o._.forEach(o.disconnect_messages.slice(1), function (msg) { ;
  45363. __p += '\n <p class="disconnect-msg">' +
  45364. __e(msg) +
  45365. '</p>\n ';
  45366. }); ;
  45367. __p += '\n</div>\n';
  45368. return __p
  45369. };
  45370. /***/ }),
  45371. /***/ "./src/templates/chatroom_features.html":
  45372. /*!**********************************************!*\
  45373. !*** ./src/templates/chatroom_features.html ***!
  45374. \**********************************************/
  45375. /*! no static exports found */
  45376. /***/ (function(module, exports, __webpack_require__) {
  45377. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45378. module.exports = function(o) {
  45379. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45380. function print() { __p += __j.call(arguments, '') }
  45381. __p += '<!-- src/templates/chatroom_features.html -->\n';
  45382. if (o.has_features) { ;
  45383. __p += '\n<p class="occupants-heading">' +
  45384. __e(o.__('Features')) +
  45385. '</p>\n';
  45386. } ;
  45387. __p += '\n<ul class="features-list">\n';
  45388. if (o.passwordprotected) { ;
  45389. __p += '\n<li class="feature" title="' +
  45390. __e( o.__('This groupchat requires a password before entry') ) +
  45391. '"><span class="fa fa-lock"></span>' +
  45392. __e( o.__('Password protected') ) +
  45393. '</li>\n';
  45394. } ;
  45395. __p += '\n';
  45396. if (o.unsecured) { ;
  45397. __p += '\n<li class="feature" title="' +
  45398. __e( o.__('This groupchat does not require a password upon entry') ) +
  45399. '"><span class="fa fa-unlock"></span>' +
  45400. __e( o.__('No password') ) +
  45401. '</li>\n';
  45402. } ;
  45403. __p += '\n';
  45404. if (o.hidden) { ;
  45405. __p += '\n<li class="feature" title="' +
  45406. __e( o.__('This groupchat is not publicly searchable') ) +
  45407. '"><span class="fa fa-eye-slash"></span>' +
  45408. __e( o.__('Hidden') ) +
  45409. '</li>\n';
  45410. } ;
  45411. __p += '\n';
  45412. if (o.public_room) { ;
  45413. __p += '\n<li class="feature" title="' +
  45414. __e( o.__('This groupchat is publicly searchable') ) +
  45415. '"><span class="fa fa-eye"></span>' +
  45416. __e( o.__('Public') ) +
  45417. '</li>\n';
  45418. } ;
  45419. __p += '\n';
  45420. if (o.membersonly) { ;
  45421. __p += '\n<li class="feature" title="' +
  45422. __e( o.__('this groupchat is restricted to members only') ) +
  45423. '"><span class="fa fa-address-book"></span>' +
  45424. __e( o.__('Members only') ) +
  45425. '</li>\n';
  45426. } ;
  45427. __p += '\n';
  45428. if (o.open) { ;
  45429. __p += '\n<li class="feature" title="' +
  45430. __e( o.__('Anyone can join this groupchat') ) +
  45431. '"><span class="fa fa-globe"></span>' +
  45432. __e( o.__('Open') ) +
  45433. '</li>\n';
  45434. } ;
  45435. __p += '\n';
  45436. if (o.persistent) { ;
  45437. __p += '\n<li class="feature" title="' +
  45438. __e( o.__('This groupchat persists even if it\'s unoccupied') ) +
  45439. '"><span class="fa fa-save"></span>' +
  45440. __e( o.__('Persistent') ) +
  45441. '</li>\n';
  45442. } ;
  45443. __p += '\n';
  45444. if (o.temporary) { ;
  45445. __p += '\n<li class="feature" title="' +
  45446. __e( o.__('This groupchat will disappear once the last person leaves') ) +
  45447. '"><span class="fa fa-snowflake-o"></span>' +
  45448. __e( o.__('Temporary') ) +
  45449. '</li>\n';
  45450. } ;
  45451. __p += '\n';
  45452. if (o.nonanonymous) { ;
  45453. __p += '\n<li class="feature" title="' +
  45454. __e( o.__('All other groupchat participants can see your XMPP username') ) +
  45455. '"><span class="fa fa-id-card"></span>' +
  45456. __e( o.__('Not anonymous') ) +
  45457. '</li>\n';
  45458. } ;
  45459. __p += '\n';
  45460. if (o.semianonymous) { ;
  45461. __p += '\n<li class="feature" title="' +
  45462. __e( o.__('Only moderators can see your XMPP username') ) +
  45463. '"><span class="fa fa-user-secret"></span>' +
  45464. __e( o.__('Semi-anonymous') ) +
  45465. '</li>\n';
  45466. } ;
  45467. __p += '\n';
  45468. if (o.moderated) { ;
  45469. __p += '\n<li class="feature" title="' +
  45470. __e( o.__('This groupchat is being moderated') ) +
  45471. '"><span class="fa fa-gavel"></span>' +
  45472. __e( o.__('Moderated') ) +
  45473. '</li>\n';
  45474. } ;
  45475. __p += '\n';
  45476. if (o.unmoderated) { ;
  45477. __p += '\n<li class="feature" title="' +
  45478. __e( o.__('This groupchat is not being moderated') ) +
  45479. '"><span class="fa fa-info-circle"></span>' +
  45480. __e( o.__('Not moderated') ) +
  45481. '</li>\n';
  45482. } ;
  45483. __p += '\n';
  45484. if (o.mam_enabled) { ;
  45485. __p += '\n<li class="feature" title="' +
  45486. __e( o.__('Messages are archived on the server') ) +
  45487. '"><span class="fa fa-database"></span>' +
  45488. __e( o.__('Message archiving') ) +
  45489. '</li>\n';
  45490. } ;
  45491. __p += '\n</ul>\n';
  45492. return __p
  45493. };
  45494. /***/ }),
  45495. /***/ "./src/templates/chatroom_form.html":
  45496. /*!******************************************!*\
  45497. !*** ./src/templates/chatroom_form.html ***!
  45498. \******************************************/
  45499. /*! no static exports found */
  45500. /***/ (function(module, exports, __webpack_require__) {
  45501. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45502. module.exports = function(o) {
  45503. var __t, __p = '';
  45504. __p += '<!-- src/templates/chatroom_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form">\n <fieldset class="form-group">\n <span class="spinner fa fa-spinner centered"/>\n </fieldset>\n </form>\n</div>\n';
  45505. return __p
  45506. };
  45507. /***/ }),
  45508. /***/ "./src/templates/chatroom_head.html":
  45509. /*!******************************************!*\
  45510. !*** ./src/templates/chatroom_head.html ***!
  45511. \******************************************/
  45512. /*! no static exports found */
  45513. /***/ (function(module, exports, __webpack_require__) {
  45514. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45515. module.exports = function(o) {
  45516. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45517. function print() { __p += __j.call(arguments, '') }
  45518. __p += '<!-- src/templates/chatroom_head.html -->\n<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>\n<div class="chatbox-title">\n <div class="chat-title" title="' +
  45519. __e(o.jid) +
  45520. '">\n ';
  45521. if (o.name && o.name !== o.Strophe.getNodeFromJid(o.jid)) { ;
  45522. __p += '\n ' +
  45523. __e( o.name ) +
  45524. '\n ';
  45525. } else { ;
  45526. __p += '\n ' +
  45527. __e( o.Strophe.getNodeFromJid(o.jid) ) +
  45528. '@' +
  45529. __e( o.Strophe.getDomainFromJid(o.jid) ) +
  45530. '\n ';
  45531. } ;
  45532. __p += '\n </div>\n <p class="chatroom-description" title="' +
  45533. __e(o.description) +
  45534. '">' +
  45535. __e(o.description) +
  45536. '</p>\n</div>\n<div class="chatbox-buttons row no-gutters">\n <a class="chatbox-btn close-chatbox-button fa fa-sign-out-alt" title="' +
  45537. __e(o.info_close) +
  45538. '"></a>\n ';
  45539. if (o.affiliation == 'owner') { ;
  45540. __p += '\n <a class="chatbox-btn configure-chatroom-button fa fa-wrench" title="' +
  45541. __e(o.info_configure) +
  45542. ' "></a>\n ';
  45543. } ;
  45544. __p += '\n <a class="chatbox-btn show-room-details-modal fa fa-info-circle" title="' +
  45545. __e(o.info_details) +
  45546. '"></a>\n</div>\n';
  45547. return __p
  45548. };
  45549. /***/ }),
  45550. /***/ "./src/templates/chatroom_invite.html":
  45551. /*!********************************************!*\
  45552. !*** ./src/templates/chatroom_invite.html ***!
  45553. \********************************************/
  45554. /*! no static exports found */
  45555. /***/ (function(module, exports, __webpack_require__) {
  45556. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45557. module.exports = function(o) {
  45558. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45559. function print() { __p += __j.call(arguments, '') }
  45560. __p += '<!-- src/templates/chatroom_invite.html -->\n<form class="room-invite">\n ';
  45561. if (o.error_message) { ;
  45562. __p += '\n <span class="error">' +
  45563. __e(o.error_message) +
  45564. '</span>\n ';
  45565. } ;
  45566. __p += '\n <input class="form-control invited-contact" placeholder="' +
  45567. __e(o.label_invitation) +
  45568. '" type="text"/>\n</form>\n';
  45569. return __p
  45570. };
  45571. /***/ }),
  45572. /***/ "./src/templates/chatroom_nickname_form.html":
  45573. /*!***************************************************!*\
  45574. !*** ./src/templates/chatroom_nickname_form.html ***!
  45575. \***************************************************/
  45576. /*! no static exports found */
  45577. /***/ (function(module, exports, __webpack_require__) {
  45578. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45579. module.exports = function(o) {
  45580. var __t, __p = '', __e = _.escape;
  45581. __p += '<!-- src/templates/chatroom_nickname_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form converse-centered-form">\n <fieldset class="form-group">\n <label>' +
  45582. __e(o.heading) +
  45583. '</label>\n <p class="validation-message">' +
  45584. __e(o.validation_message) +
  45585. '</p>\n <input type="text" required="required" name="nick" class="form-control" placeholder="' +
  45586. __e(o.label_nickname) +
  45587. '"/>\n </fieldset>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  45588. __e(o.label_join) +
  45589. '"/>\n </form>\n</div>\n';
  45590. return __p
  45591. };
  45592. /***/ }),
  45593. /***/ "./src/templates/chatroom_password_form.html":
  45594. /*!***************************************************!*\
  45595. !*** ./src/templates/chatroom_password_form.html ***!
  45596. \***************************************************/
  45597. /*! no static exports found */
  45598. /***/ (function(module, exports, __webpack_require__) {
  45599. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45600. module.exports = function(o) {
  45601. var __t, __p = '', __e = _.escape;
  45602. __p += '<!-- src/templates/chatroom_password_form.html -->\n<div class="chatroom-form-container">\n <form class="pure-form converse-form chatroom-form">\n <fieldset class="form-group">\n <legend>' +
  45603. __e(o.heading) +
  45604. '</legend>\n <label>' +
  45605. __e(o.label_password) +
  45606. '</label>\n <input type="password" name="password"/>\n </fieldset>\n <input class="btn btn-primary" type="submit" value="' +
  45607. __e(o.label_submit) +
  45608. '"/>\n </form>\n</div>\n';
  45609. return __p
  45610. };
  45611. /***/ }),
  45612. /***/ "./src/templates/chatroom_sidebar.html":
  45613. /*!*********************************************!*\
  45614. !*** ./src/templates/chatroom_sidebar.html ***!
  45615. \*********************************************/
  45616. /*! no static exports found */
  45617. /***/ (function(module, exports, __webpack_require__) {
  45618. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45619. module.exports = function(o) {
  45620. var __t, __p = '', __e = _.escape;
  45621. __p += '<!-- src/templates/chatroom_sidebar.html -->\n<!-- <div class="occupants"> -->\n<div class="occupants-header">\n <i class="hide-occupants fa fa-times"></i>\n <p class="occupants-heading">' +
  45622. __e(o.label_occupants) +
  45623. '</p>\n</div>\n<ul class="occupant-list"></ul>\n<div class="chatroom-features"></div>\n<!-- </div> -->\n';
  45624. return __p
  45625. };
  45626. /***/ }),
  45627. /***/ "./src/templates/chats_panel.html":
  45628. /*!****************************************!*\
  45629. !*** ./src/templates/chats_panel.html ***!
  45630. \****************************************/
  45631. /*! no static exports found */
  45632. /***/ (function(module, exports, __webpack_require__) {
  45633. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45634. module.exports = function(o) {
  45635. var __t, __p = '';
  45636. __p += '<!-- src/templates/chats_panel.html -->\n<a id="toggle-minimized-chats" href="#" class="row no-gutters"></a>\n<div class="flyout minimized-chats-flyout row no-gutters"></div>\n';
  45637. return __p
  45638. };
  45639. /***/ }),
  45640. /***/ "./src/templates/controlbox.html":
  45641. /*!***************************************!*\
  45642. !*** ./src/templates/controlbox.html ***!
  45643. \***************************************/
  45644. /*! no static exports found */
  45645. /***/ (function(module, exports, __webpack_require__) {
  45646. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45647. module.exports = function(o) {
  45648. var __t, __p = '', __j = Array.prototype.join;
  45649. function print() { __p += __j.call(arguments, '') }
  45650. __p += '<!-- src/templates/controlbox.html -->\n<div class="flyout box-flyout">\n <div class="chat-head controlbox-head">\n ';
  45651. if (!o.sticky_controlbox) { ;
  45652. __p += '\n <a class="chatbox-btn close-chatbox-button fa fa-times"></a>\n ';
  45653. } ;
  45654. __p += '\n </div>\n <div class="controlbox-panes"></div>\n</div>\n';
  45655. return __p
  45656. };
  45657. /***/ }),
  45658. /***/ "./src/templates/controlbox_toggle.html":
  45659. /*!**********************************************!*\
  45660. !*** ./src/templates/controlbox_toggle.html ***!
  45661. \**********************************************/
  45662. /*! no static exports found */
  45663. /***/ (function(module, exports, __webpack_require__) {
  45664. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45665. module.exports = function(o) {
  45666. var __t, __p = '', __e = _.escape;
  45667. __p += '<!-- src/templates/controlbox_toggle.html -->\n<span class="toggle-feedback">' +
  45668. __e(o.label_toggle) +
  45669. '</span>\n';
  45670. return __p
  45671. };
  45672. /***/ }),
  45673. /***/ "./src/templates/converse_brand_heading.html":
  45674. /*!***************************************************!*\
  45675. !*** ./src/templates/converse_brand_heading.html ***!
  45676. \***************************************************/
  45677. /*! no static exports found */
  45678. /***/ (function(module, exports, __webpack_require__) {
  45679. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45680. module.exports = function(o) {
  45681. var __t, __p = '';
  45682. __p += '<!-- src/templates/converse_brand_heading.html -->\n<span class="brand-heading-container">\n <div class="brand-heading">\n <a href="https://conversejs.org" target="_blank" rel="noopener">\n <i class="icon-conversejs"></i><span class="brand-name">converse</span>\n </a>\n </div>\n</span>\n';
  45683. return __p
  45684. };
  45685. /***/ }),
  45686. /***/ "./src/templates/csn.html":
  45687. /*!********************************!*\
  45688. !*** ./src/templates/csn.html ***!
  45689. \********************************/
  45690. /*! no static exports found */
  45691. /***/ (function(module, exports, __webpack_require__) {
  45692. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45693. module.exports = function(o) {
  45694. var __t, __p = '', __e = _.escape;
  45695. __p += '<!-- src/templates/csn.html -->\n<div class="message chat-info chat-state-notification"\n data-isodate="' +
  45696. __e(o.isodate) +
  45697. '"\n data-csn="' +
  45698. __e(o.from) +
  45699. '">' +
  45700. __e(o.message) +
  45701. '</div>\n';
  45702. return __p
  45703. };
  45704. /***/ }),
  45705. /***/ "./src/templates/dragresize.html":
  45706. /*!***************************************!*\
  45707. !*** ./src/templates/dragresize.html ***!
  45708. \***************************************/
  45709. /*! no static exports found */
  45710. /***/ (function(module, exports, __webpack_require__) {
  45711. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45712. module.exports = function(o) {
  45713. var __t, __p = '';
  45714. __p += '<!-- src/templates/dragresize.html -->\n<div class="dragresize dragresize-top"></div>\n<div class="dragresize dragresize-topleft"></div>\n<div class="dragresize dragresize-left"></div>\n';
  45715. return __p
  45716. };
  45717. /***/ }),
  45718. /***/ "./src/templates/emojis.html":
  45719. /*!***********************************!*\
  45720. !*** ./src/templates/emojis.html ***!
  45721. \***********************************/
  45722. /*! no static exports found */
  45723. /***/ (function(module, exports, __webpack_require__) {
  45724. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45725. module.exports = function(o) {
  45726. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45727. function print() { __p += __j.call(arguments, '') }
  45728. __p += '<!-- src/templates/emojis.html -->\n<div class="emoji-picker-container">\n';
  45729. o._.forEach(o.emojis_by_category, function (obj, category) { ;
  45730. __p += '\n <ul class="emoji-picker emoji-picker-' +
  45731. __e(category) +
  45732. ' ';
  45733. if (o.current_category !== category) { ;
  45734. __p += ' hidden ';
  45735. } ;
  45736. __p += '">\n ';
  45737. o._.forEach(o.emojis_by_category[category], function (emoji) { ;
  45738. __p += '\n <li class="emoji insert-emoji ';
  45739. if (o.shouldBeHidden(emoji._shortname, o.current_skintone, o.toned_emojis)) { ;
  45740. __p += ' hidden ';
  45741. }; ;
  45742. __p += '"\n data-emoji="' +
  45743. __e(emoji._shortname) +
  45744. '">\n <a href="#" data-emoji="' +
  45745. __e(emoji._shortname) +
  45746. '"> ' +
  45747. ((__t = ( o.transform(emoji._shortname) )) == null ? '' : __t) +
  45748. ' </a>\n </li>\n ';
  45749. }); ;
  45750. __p += '\n </ul>\n';
  45751. }); ;
  45752. __p += '\n<ul class="emoji-toolbar">\n <li class="emoji-category-picker">\n <ul>\n ';
  45753. o._.forEach(o.emojis_by_category, function (obj, category) { ;
  45754. __p += '\n <li data-category="' +
  45755. __e(category) +
  45756. '" class="emoji-category ';
  45757. if (o.current_category === category) { ;
  45758. __p += ' picked ';
  45759. } ;
  45760. __p += '">\n <a class="pick-category" href="#" data-category="' +
  45761. __e(category) +
  45762. '"> ' +
  45763. ((__t = ( o.transform(o.emojis_by_category[category][0]._shortname) )) == null ? '' : __t) +
  45764. ' </a>\n </li>\n ';
  45765. }); ;
  45766. __p += '\n </ul>\n </li>\n <li class="emoji-skintone-picker">\n <ul>\n ';
  45767. o._.forEach(o.skintones, function (skintone) { ;
  45768. __p += '\n <li data-skintone="' +
  45769. __e(skintone) +
  45770. '" class="emoji-skintone ';
  45771. if (o.current_skintone === skintone) { ;
  45772. __p += ' picked ';
  45773. } ;
  45774. __p += '">\n <a class="pick-skintone" href="#" data-skintone="' +
  45775. __e(skintone) +
  45776. '"> ' +
  45777. ((__t = ( o.transform(':'+skintone+':') )) == null ? '' : __t) +
  45778. ' </a>\n </li>\n ';
  45779. }); ;
  45780. __p += '\n </ul>\n </li>\n</ul>\n</div>\n';
  45781. return __p
  45782. };
  45783. /***/ }),
  45784. /***/ "./src/templates/error_message.html":
  45785. /*!******************************************!*\
  45786. !*** ./src/templates/error_message.html ***!
  45787. \******************************************/
  45788. /*! no static exports found */
  45789. /***/ (function(module, exports, __webpack_require__) {
  45790. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45791. module.exports = function(o) {
  45792. var __t, __p = '', __e = _.escape;
  45793. __p += '<!-- src/templates/error_message.html -->\n<div class="message chat-info chat-error" data-isodate="' +
  45794. __e(o.isodate) +
  45795. '">' +
  45796. __e(o.message) +
  45797. '</div>\n';
  45798. return __p
  45799. };
  45800. /***/ }),
  45801. /***/ "./src/templates/field.html":
  45802. /*!**********************************!*\
  45803. !*** ./src/templates/field.html ***!
  45804. \**********************************/
  45805. /*! no static exports found */
  45806. /***/ (function(module, exports, __webpack_require__) {
  45807. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45808. module.exports = function(o) {
  45809. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45810. function print() { __p += __j.call(arguments, '') }
  45811. __p += '<!-- src/templates/field.html -->\n<field var="' +
  45812. __e(o.name) +
  45813. '">\n';
  45814. if (o.value.constructor === Array) { ;
  45815. __p += '\n ';
  45816. o.value.forEach(function (arrayValue) { ;
  45817. __p += '<value>' +
  45818. __e(arrayValue) +
  45819. '</value>';
  45820. }); ;
  45821. __p += '\n';
  45822. } else { ;
  45823. __p += '\n <value>' +
  45824. __e(o.value) +
  45825. '</value>\n';
  45826. } ;
  45827. __p += '</field>\n';
  45828. return __p
  45829. };
  45830. /***/ }),
  45831. /***/ "./src/templates/file.html":
  45832. /*!*********************************!*\
  45833. !*** ./src/templates/file.html ***!
  45834. \*********************************/
  45835. /*! no static exports found */
  45836. /***/ (function(module, exports, __webpack_require__) {
  45837. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45838. module.exports = function(o) {
  45839. var __t, __p = '', __e = _.escape;
  45840. __p += '<!-- src/templates/file.html -->\n<a target="_blank" rel="noopener" href="' +
  45841. __e(o.url) +
  45842. '">' +
  45843. __e(o.label_download) +
  45844. '</a>\n';
  45845. return __p
  45846. };
  45847. /***/ }),
  45848. /***/ "./src/templates/file_progress.html":
  45849. /*!******************************************!*\
  45850. !*** ./src/templates/file_progress.html ***!
  45851. \******************************************/
  45852. /*! no static exports found */
  45853. /***/ (function(module, exports, __webpack_require__) {
  45854. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45855. module.exports = function(o) {
  45856. var __t, __p = '', __e = _.escape;
  45857. __p += '<!-- src/templates/file_progress.html -->\n<div class="message chat-msg" data-isodate="' +
  45858. __e(o.time) +
  45859. '" data-msgid="' +
  45860. __e(o.msgid) +
  45861. '">\n <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n <div class="chat-msg__content">\n <span class="chat-msg__text">Uploading file: <strong>' +
  45862. __e(o.file.name) +
  45863. '</strong>, ' +
  45864. __e(o.filesize) +
  45865. '</span>\n <progress value="' +
  45866. __e(o.progress) +
  45867. '"/>\n </div>\n</div>\n';
  45868. return __p
  45869. };
  45870. /***/ }),
  45871. /***/ "./src/templates/form_captcha.html":
  45872. /*!*****************************************!*\
  45873. !*** ./src/templates/form_captcha.html ***!
  45874. \*****************************************/
  45875. /*! no static exports found */
  45876. /***/ (function(module, exports, __webpack_require__) {
  45877. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45878. module.exports = function(o) {
  45879. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45880. function print() { __p += __j.call(arguments, '') }
  45881. __p += '<!-- src/templates/form_captcha.html -->\n';
  45882. if (o.label) { ;
  45883. __p += '\n<label>\n ' +
  45884. __e(o.label) +
  45885. '\n</label>\n';
  45886. } ;
  45887. __p += '\n<img src="data:' +
  45888. __e(o.type) +
  45889. ';base64,' +
  45890. __e(o.data) +
  45891. '">\n<input name="' +
  45892. __e(o.name) +
  45893. '" type="text" ';
  45894. if (o.required) { ;
  45895. __p += ' class="required" ';
  45896. } ;
  45897. __p += ' >\n\n\n';
  45898. return __p
  45899. };
  45900. /***/ }),
  45901. /***/ "./src/templates/form_checkbox.html":
  45902. /*!******************************************!*\
  45903. !*** ./src/templates/form_checkbox.html ***!
  45904. \******************************************/
  45905. /*! no static exports found */
  45906. /***/ (function(module, exports, __webpack_require__) {
  45907. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45908. module.exports = function(o) {
  45909. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45910. function print() { __p += __j.call(arguments, '') }
  45911. __p += '<!-- src/templates/form_checkbox.html -->\n<div class="form-group">\n <input id="' +
  45912. __e(o.id) +
  45913. '" name="' +
  45914. __e(o.name) +
  45915. '" type="checkbox" ' +
  45916. __e(o.checked) +
  45917. ' ';
  45918. if (o.required) { ;
  45919. __p += ' required ';
  45920. } ;
  45921. __p += ' >\n <label class="form-check-label" for="' +
  45922. __e(o.id) +
  45923. '">' +
  45924. __e(o.label) +
  45925. '</label>\n</div>\n';
  45926. return __p
  45927. };
  45928. /***/ }),
  45929. /***/ "./src/templates/form_input.html":
  45930. /*!***************************************!*\
  45931. !*** ./src/templates/form_input.html ***!
  45932. \***************************************/
  45933. /*! no static exports found */
  45934. /***/ (function(module, exports, __webpack_require__) {
  45935. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45936. module.exports = function(o) {
  45937. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45938. function print() { __p += __j.call(arguments, '') }
  45939. __p += '<!-- src/templates/form_input.html -->\n<div class="form-group">\n ';
  45940. if (o.type !== 'hidden') { ;
  45941. __p += '\n <label for="' +
  45942. __e(o.id) +
  45943. '">' +
  45944. __e(o.label) +
  45945. '</label>\n ';
  45946. } ;
  45947. __p += '\n <input class="form-control" name="' +
  45948. __e(o.name) +
  45949. '" type="' +
  45950. __e(o.type) +
  45951. '" id="' +
  45952. __e(o.id) +
  45953. '"\n ';
  45954. if (o.placeholder) { ;
  45955. __p += ' placeholder="' +
  45956. __e(o.placeholder) +
  45957. '" ';
  45958. } ;
  45959. __p += '\n ';
  45960. if (o.value) { ;
  45961. __p += ' value="' +
  45962. __e(o.value) +
  45963. '" ';
  45964. } ;
  45965. __p += '\n ';
  45966. if (o.required) { ;
  45967. __p += ' required ';
  45968. } ;
  45969. __p += ' >\n</div>\n';
  45970. return __p
  45971. };
  45972. /***/ }),
  45973. /***/ "./src/templates/form_select.html":
  45974. /*!****************************************!*\
  45975. !*** ./src/templates/form_select.html ***!
  45976. \****************************************/
  45977. /*! no static exports found */
  45978. /***/ (function(module, exports, __webpack_require__) {
  45979. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45980. module.exports = function(o) {
  45981. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45982. function print() { __p += __j.call(arguments, '') }
  45983. __p += '<!-- src/templates/form_select.html -->\n<div class="form-group">\n <label for="' +
  45984. __e(o.id) +
  45985. '">' +
  45986. __e(o.label) +
  45987. '</label>\n <select class="form-control" id="' +
  45988. __e(o.id) +
  45989. '" name="' +
  45990. __e(o.name) +
  45991. '" ';
  45992. if (o.multiple) { ;
  45993. __p += ' multiple="multiple" ';
  45994. } ;
  45995. __p += '>' +
  45996. ((__t = (o.options)) == null ? '' : __t) +
  45997. '</select>\n</div>\n';
  45998. return __p
  45999. };
  46000. /***/ }),
  46001. /***/ "./src/templates/form_textarea.html":
  46002. /*!******************************************!*\
  46003. !*** ./src/templates/form_textarea.html ***!
  46004. \******************************************/
  46005. /*! no static exports found */
  46006. /***/ (function(module, exports, __webpack_require__) {
  46007. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46008. module.exports = function(o) {
  46009. var __t, __p = '', __e = _.escape;
  46010. __p += '<!-- src/templates/form_textarea.html -->\n<label class="label-ta">' +
  46011. __e(o.label) +
  46012. '</label>\n<textarea name="' +
  46013. __e(o.name) +
  46014. '">' +
  46015. __e(o.value) +
  46016. '</textarea>\n';
  46017. return __p
  46018. };
  46019. /***/ }),
  46020. /***/ "./src/templates/form_url.html":
  46021. /*!*************************************!*\
  46022. !*** ./src/templates/form_url.html ***!
  46023. \*************************************/
  46024. /*! no static exports found */
  46025. /***/ (function(module, exports, __webpack_require__) {
  46026. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46027. module.exports = function(o) {
  46028. var __t, __p = '', __e = _.escape;
  46029. __p += '<!-- src/templates/form_url.html -->\n<label>\n ' +
  46030. __e(o.label) +
  46031. '\n <a class="form-url" target="_blank" rel="noopener" href="' +
  46032. __e(o.value) +
  46033. '">' +
  46034. __e(o.value) +
  46035. '</a>\n</label>\n';
  46036. return __p
  46037. };
  46038. /***/ }),
  46039. /***/ "./src/templates/form_username.html":
  46040. /*!******************************************!*\
  46041. !*** ./src/templates/form_username.html ***!
  46042. \******************************************/
  46043. /*! no static exports found */
  46044. /***/ (function(module, exports, __webpack_require__) {
  46045. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46046. module.exports = function(o) {
  46047. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46048. function print() { __p += __j.call(arguments, '') }
  46049. __p += '<!-- src/templates/form_username.html -->\n<div class="form-group">\n ';
  46050. if (o.label) { ;
  46051. __p += '\n <label>\n ' +
  46052. __e(o.label) +
  46053. '\n </label>\n ';
  46054. } ;
  46055. __p += '\n <div class="input-group">\n <div class="input-group-prepend">\n <input name="' +
  46056. __e(o.name) +
  46057. '" type="' +
  46058. __e(o.type) +
  46059. '"\n ';
  46060. if (o.value) { ;
  46061. __p += ' value="' +
  46062. __e(o.value) +
  46063. '" ';
  46064. } ;
  46065. __p += '\n ';
  46066. if (o.required) { ;
  46067. __p += ' class="required" ';
  46068. } ;
  46069. __p += ' />\n <div class="input-group-text col" title="' +
  46070. __e(o.domain) +
  46071. '">' +
  46072. __e(o.domain) +
  46073. '</div>\n </div>\n </div>\n</div>\n';
  46074. return __p
  46075. };
  46076. /***/ }),
  46077. /***/ "./src/templates/group_header.html":
  46078. /*!*****************************************!*\
  46079. !*** ./src/templates/group_header.html ***!
  46080. \*****************************************/
  46081. /*! no static exports found */
  46082. /***/ (function(module, exports, __webpack_require__) {
  46083. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46084. module.exports = function(o) {
  46085. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46086. function print() { __p += __j.call(arguments, '') }
  46087. __p += '<!-- src/templates/group_header.html -->\n<a href="#" class="group-toggle controlbox-padded" title="' +
  46088. __e(o.desc_group_toggle) +
  46089. '">\n <span class="fa ';
  46090. if (o.toggle_state === o._converse.OPENED) { ;
  46091. __p += ' fa-caret-down ';
  46092. } else { ;
  46093. __p += ' fa-caret-right ';
  46094. } ;
  46095. __p += '">\n </span> ' +
  46096. __e(o.label_group) +
  46097. '</a>\n<ul class="items-list roster-group-contacts ';
  46098. if (o.toggle_state === o._converse.CLOSED) { ;
  46099. __p += ' collapsed ';
  46100. } ;
  46101. __p += '"></ul>\n';
  46102. return __p
  46103. };
  46104. /***/ }),
  46105. /***/ "./src/templates/help_message.html":
  46106. /*!*****************************************!*\
  46107. !*** ./src/templates/help_message.html ***!
  46108. \*****************************************/
  46109. /*! no static exports found */
  46110. /***/ (function(module, exports, __webpack_require__) {
  46111. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46112. module.exports = function(o) {
  46113. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46114. function print() { __p += __j.call(arguments, '') }
  46115. __p += '<!-- src/templates/help_message.html -->\n<div class="message chat-info ';
  46116. if (o.type !== 'info') { ;
  46117. __p += ' chat-' +
  46118. __e(o.type) +
  46119. ' ';
  46120. } ;
  46121. __p += '" data-isodate="' +
  46122. __e(o.isodate) +
  46123. '">' +
  46124. ((__t = (o.message)) == null ? '' : __t) +
  46125. '</div>\n';
  46126. return __p
  46127. };
  46128. /***/ }),
  46129. /***/ "./src/templates/image.html":
  46130. /*!**********************************!*\
  46131. !*** ./src/templates/image.html ***!
  46132. \**********************************/
  46133. /*! no static exports found */
  46134. /***/ (function(module, exports, __webpack_require__) {
  46135. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46136. module.exports = function(o) {
  46137. var __t, __p = '', __e = _.escape;
  46138. __p += '<!-- src/templates/image.html -->\n<a href="' +
  46139. __e(o.url) +
  46140. '" target="_blank" rel="noopener"><img class="chat-image img-thumbnail" src="' +
  46141. __e(o.url) +
  46142. '"></a>\n';
  46143. return __p
  46144. };
  46145. /***/ }),
  46146. /***/ "./src/templates/info.html":
  46147. /*!*********************************!*\
  46148. !*** ./src/templates/info.html ***!
  46149. \*********************************/
  46150. /*! no static exports found */
  46151. /***/ (function(module, exports, __webpack_require__) {
  46152. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46153. module.exports = function(o) {
  46154. var __t, __p = '', __e = _.escape;
  46155. __p += '<!-- src/templates/info.html -->\n<div class="message chat-info ' +
  46156. __e(o.extra_classes) +
  46157. '"\n data-isodate="' +
  46158. __e(o.isodate) +
  46159. '"\n ' +
  46160. __e(o.data) +
  46161. '>' +
  46162. __e(o.message) +
  46163. '</div>\n';
  46164. return __p
  46165. };
  46166. /***/ }),
  46167. /***/ "./src/templates/inverse_brand_heading.html":
  46168. /*!**************************************************!*\
  46169. !*** ./src/templates/inverse_brand_heading.html ***!
  46170. \**************************************************/
  46171. /*! no static exports found */
  46172. /***/ (function(module, exports, __webpack_require__) {
  46173. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46174. module.exports = function(o) {
  46175. var __t, __p = '';
  46176. __p += '<!-- src/templates/inverse_brand_heading.html -->\n<div class="row">\n <div class="container brand-heading-container">\n <h1 class="brand-heading"><i class="icon-conversejs"></i>Converse</h1>\n <p class="brand-subtitle"><a target="_blank" rel="nofollow" href="https://conversejs.org">Open Source</a> XMPP chat client brought to you by <a target="_blank" rel="nofollow" href="https://opkode.com">Opkode</a> </p>\n <p class="brand-subtitle"><a target="_blank" rel="nofollow" href="https://hosted.weblate.org/projects/conversejs/#languages">Translate</a> it into your own language</p>\n <div>\n</div>\n';
  46177. return __p
  46178. };
  46179. /***/ }),
  46180. /***/ "./src/templates/list_chatrooms_modal.html":
  46181. /*!*************************************************!*\
  46182. !*** ./src/templates/list_chatrooms_modal.html ***!
  46183. \*************************************************/
  46184. /*! no static exports found */
  46185. /***/ (function(module, exports, __webpack_require__) {
  46186. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46187. module.exports = function(o) {
  46188. var __t, __p = '', __e = _.escape;
  46189. __p += '<!-- src/templates/list_chatrooms_modal.html -->\n<div class="modal fade" id="list-chatrooms-modal" tabindex="-1" role="dialog" aria-labelledby="list-chatrooms-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title"\n id="list-chatrooms-modal-label">' +
  46190. __e(o.heading_list_chatrooms) +
  46191. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <div class="modal-body">\n <form class="converse-form list-chatrooms">\n <div class="form-group">\n <label for="chatroom">' +
  46192. __e(o.label_server_address) +
  46193. ':</label>\n <input type="text" value="' +
  46194. __e(o.muc_domain) +
  46195. '" required="required" name="server" class="form-control" placeholder="' +
  46196. __e(o.server_placeholder) +
  46197. '">\n </div>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  46198. __e(o.label_query) +
  46199. '">\n </form>\n <ul class="available-chatrooms list-group"></ul>\n </div>\n </div>\n </div>\n</div>\n';
  46200. return __p
  46201. };
  46202. /***/ }),
  46203. /***/ "./src/templates/login_panel.html":
  46204. /*!****************************************!*\
  46205. !*** ./src/templates/login_panel.html ***!
  46206. \****************************************/
  46207. /*! no static exports found */
  46208. /***/ (function(module, exports, __webpack_require__) {
  46209. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46210. module.exports = function(o) {
  46211. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46212. function print() { __p += __j.call(arguments, '') }
  46213. __p += '<!-- src/templates/login_panel.html -->\n<div id="converse-login-panel" class="controlbox-pane fade-in row no-gutters">\n <form id="converse-login" class="converse-form" method="post">\n <div class="conn-feedback fade-in ';
  46214. if (!o.conn_feedback_subject) { ;
  46215. __p += ' hidden ';
  46216. } ;
  46217. __p += ' ' +
  46218. __e(o.conn_feedback_class) +
  46219. '">\n <p class="feedback-subject">' +
  46220. __e( o.conn_feedback_subject ) +
  46221. '</p>\n <p class="feedback-message ';
  46222. if (!o.conn_feedback_message) { ;
  46223. __p += ' hidden ';
  46224. } ;
  46225. __p += '">' +
  46226. __e(o.conn_feedback_message) +
  46227. '</p>\n </div>\n ';
  46228. if (o.auto_login || o._converse.CONNECTION_STATUS[o.connection_status] === 'CONNECTING') { ;
  46229. __p += '\n <span class="spinner fa fa-spinner centered"/>\n ';
  46230. } else { ;
  46231. __p += '\n ';
  46232. if (o.authentication == o.LOGIN || o.authentication == o.EXTERNAL) { ;
  46233. __p += '\n <div class="form-group">\n <label for="converse-login-jid">' +
  46234. __e(o.__("XMPP Username:")) +
  46235. '</label>\n <input id="converse-login-jid" class="form-control" autofocus required="required" type="text" name="jid" placeholder="' +
  46236. __e(o.placeholder_username) +
  46237. '">\n </div>\n ';
  46238. if (o.authentication !== o.EXTERNAL) { ;
  46239. __p += '\n <div class="form-group">\n <label for="converse-login-password">' +
  46240. __e(o.__("Password:")) +
  46241. '</label>\n <input id="converse-login-password" class="form-control" required="required" type="password" name="password" placeholder="' +
  46242. __e(o.__('password')) +
  46243. '">\n </div>\n ';
  46244. } ;
  46245. __p += '\n <div class="form-group form-check login-trusted">\n <input id="converse-login-trusted" type="checkbox" class="form-check-input" name="trusted" ';
  46246. if (o._converse.config.get('trusted')) { ;
  46247. __p += ' checked="checked" ';
  46248. } ;
  46249. __p += '>\n <label for="converse-login-trusted" class="form-check-label login-trusted__desc">' +
  46250. __e(o.__('This is a trusted device')) +
  46251. '</label>\n <i class="fa fa-info-circle" data-toggle="popover"\n data-title="Trusted device?"\n data-content="' +
  46252. __e(o.__('To improve performance, we cache your data in this browser. Uncheck this box if this is a public computer or if you want your data to be deleted when you log out. It\'s important that you explicitly log out, otherwise not all cached data might be deleted.')) +
  46253. '"></i>\n </div>\n\n <fieldset class="buttons">\n <input class="btn btn-primary" type="submit" value="' +
  46254. __e(o.__('Log in')) +
  46255. '">\n </fieldset>\n ';
  46256. } ;
  46257. __p += '\n ';
  46258. if (o.authentication == o.ANONYMOUS) { ;
  46259. __p += '\n <input class="btn btn-primary login-anon" type="submit" value="' +
  46260. __e(o.__('Click here to log in anonymously')) +
  46261. '"/>\n ';
  46262. } ;
  46263. __p += '\n ';
  46264. if (o.authentication == o.PREBIND) { ;
  46265. __p += '\n <p>Disconnected.</p>\n ';
  46266. } ;
  46267. __p += '\n ';
  46268. } ;
  46269. __p += '\n </form>\n</div>\n';
  46270. return __p
  46271. };
  46272. /***/ }),
  46273. /***/ "./src/templates/message.html":
  46274. /*!************************************!*\
  46275. !*** ./src/templates/message.html ***!
  46276. \************************************/
  46277. /*! no static exports found */
  46278. /***/ (function(module, exports, __webpack_require__) {
  46279. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46280. module.exports = function(o) {
  46281. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46282. function print() { __p += __j.call(arguments, '') }
  46283. __p += '<!-- src/templates/message.html -->\n<div class="message chat-msg ' +
  46284. __e(o.type) +
  46285. ' ';
  46286. if (o.is_me_message) { ;
  46287. __p += ' chat-msg--action ';
  46288. } ;
  46289. __p += ' ' +
  46290. __e(o.extra_classes) +
  46291. '"\n data-isodate="' +
  46292. __e(o.time) +
  46293. '" data-msgid="' +
  46294. __e(o.msgid) +
  46295. '" data-from="' +
  46296. __e(o.from) +
  46297. '" data-encrypted="' +
  46298. __e(o.is_encrypted) +
  46299. '">\n ';
  46300. if (o.type !== 'headline' && !o.is_me_message) { ;
  46301. __p += '\n <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n ';
  46302. } ;
  46303. __p += '\n <div class="chat-msg__content ';
  46304. if (o.is_me_message) { ;
  46305. __p += 'chat-msg__content--action';
  46306. } ;
  46307. __p += '">\n <span class="chat-msg__heading">\n ';
  46308. if (o.is_me_message) { ;
  46309. __p += '<time timestamp="' +
  46310. __e(o.isodate) +
  46311. '" class="chat-msg__time">' +
  46312. __e(o.pretty_time) +
  46313. '</time>';
  46314. } ;
  46315. __p += '\n <span class="chat-msg__author">';
  46316. if (o.is_me_message) { ;
  46317. __p += '**';
  46318. }; ;
  46319. __p +=
  46320. __e(o.username) +
  46321. '</span>\n ';
  46322. o.roles.forEach(function (role) { ;
  46323. __p += ' <span class="badge badge-secondary">' +
  46324. __e(role) +
  46325. '</span> ';
  46326. }); ;
  46327. __p += '\n ';
  46328. if (!o.is_me_message) { ;
  46329. __p += '<time timestamp="' +
  46330. __e(o.isodate) +
  46331. '" class="chat-msg__time">' +
  46332. __e(o.pretty_time) +
  46333. '</time>';
  46334. } ;
  46335. __p += '\n ';
  46336. if (o.is_encrypted) { ;
  46337. __p += '<span class="fa fa-lock"></span>';
  46338. } ;
  46339. __p += '\n </span>\n ';
  46340. if (!o.is_me_message) { ;
  46341. __p += '<div class="chat-msg__body">';
  46342. } ;
  46343. __p += '\n ';
  46344. if (o.edited) { ;
  46345. __p += ' <i title="' +
  46346. __e(o.__('This message has been edited')) +
  46347. '" class="fa fa-edit chat-msg__edit-modal"></i> ';
  46348. } ;
  46349. __p += '\n ';
  46350. if (!o.is_me_message) { ;
  46351. __p += '<div class="chat-msg__message">';
  46352. } ;
  46353. __p += '\n ';
  46354. if (o.is_spoiler) { ;
  46355. __p += '\n <div class="chat-msg__spoiler-hint">\n <span class="spoiler-hint">' +
  46356. __e(o.spoiler_hint) +
  46357. '</span>\n <a class="badge badge-info spoiler-toggle" data-toggle-state="closed" href="#"><i class="fa fa-eye"></i>' +
  46358. __e(o.label_show) +
  46359. '</a>\n </div>\n ';
  46360. } ;
  46361. __p += '\n <div class="chat-msg__text';
  46362. if (o.is_spoiler) { ;
  46363. __p += ' spoiler collapsed';
  46364. } ;
  46365. __p += '"><!-- message gets added here via renderMessage --></div>\n <div class="chat-msg__media"></div>\n ';
  46366. if (!o.is_me_message) { ;
  46367. __p += '</div>';
  46368. } ;
  46369. __p += '\n ';
  46370. if (o.type !== 'headline' && !o.is_me_message && o.sender === 'me') { ;
  46371. __p += '\n <div class="chat-msg__actions">\n <button class="chat-msg__action chat-msg__action-edit fa fa-pencil-alt" title="' +
  46372. __e(o.__('Edit this message')) +
  46373. '">&nbsp;</button>\n </div>\n ';
  46374. } ;
  46375. __p += '\n\n ';
  46376. if (!o.is_me_message) { ;
  46377. __p += '</div>';
  46378. } ;
  46379. __p += '\n </div>\n</div>\n';
  46380. return __p
  46381. };
  46382. /***/ }),
  46383. /***/ "./src/templates/message_versions_modal.html":
  46384. /*!***************************************************!*\
  46385. !*** ./src/templates/message_versions_modal.html ***!
  46386. \***************************************************/
  46387. /*! no static exports found */
  46388. /***/ (function(module, exports, __webpack_require__) {
  46389. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46390. module.exports = function(o) {
  46391. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46392. function print() { __p += __j.call(arguments, '') }
  46393. __p += '<!-- src/templates/message_versions_modal.html -->\n<div class="modal fade" id="message-versions-modal" tabindex="-1" role="dialog" aria-labelledby="message-versions-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title" id="message-versions-modal-label">' +
  46394. __e(o.__('Message versions')) +
  46395. '</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  46396. __e(o.label_close) +
  46397. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n <h4>Older versions</h4>\n ';
  46398. o.older_versions.forEach(function (text) { ;
  46399. __p += ' <p class="older-msg">' +
  46400. __e(text) +
  46401. '</p> ';
  46402. }); ;
  46403. __p += '\n <hr>\n <h4>Current version</h4>\n <p>' +
  46404. __e(o.message) +
  46405. '</p>\n </div>\n <div class="modal-footer">\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  46406. __e(o.__('Close')) +
  46407. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  46408. return __p
  46409. };
  46410. /***/ }),
  46411. /***/ "./src/templates/new_day.html":
  46412. /*!************************************!*\
  46413. !*** ./src/templates/new_day.html ***!
  46414. \************************************/
  46415. /*! no static exports found */
  46416. /***/ (function(module, exports, __webpack_require__) {
  46417. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46418. module.exports = function(o) {
  46419. var __t, __p = '', __e = _.escape;
  46420. __p += '<!-- src/templates/new_day.html -->\n<div class="message date-separator" data-isodate="' +
  46421. __e(o.isodate) +
  46422. '">\n <hr class="separator">\n <time class="separator-text" datetime="' +
  46423. __e(o.isodate) +
  46424. '"><span>' +
  46425. __e(o.datestring) +
  46426. '</span></time>\n</div>\n';
  46427. return __p
  46428. };
  46429. /***/ }),
  46430. /***/ "./src/templates/occupant.html":
  46431. /*!*************************************!*\
  46432. !*** ./src/templates/occupant.html ***!
  46433. \*************************************/
  46434. /*! no static exports found */
  46435. /***/ (function(module, exports, __webpack_require__) {
  46436. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46437. module.exports = function(o) {
  46438. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46439. function print() { __p += __j.call(arguments, '') }
  46440. __p += '<!-- src/templates/occupant.html -->\n<li class="occupant" id="' +
  46441. __e( o.id ) +
  46442. '"\n ';
  46443. if (o.role === "moderator") { ;
  46444. __p += '\n title="' +
  46445. __e( o.jid ) +
  46446. ' ' +
  46447. __e( o.desc_moderator ) +
  46448. ' ' +
  46449. __e( o.hint_occupant ) +
  46450. '"\n ';
  46451. } ;
  46452. __p += '\n ';
  46453. if (o.role === "participant") { ;
  46454. __p += '\n title="' +
  46455. __e( o.jid ) +
  46456. ' ' +
  46457. __e( o.desc_participant ) +
  46458. ' ' +
  46459. __e( o.hint_occupant ) +
  46460. '"\n ';
  46461. } ;
  46462. __p += '\n ';
  46463. if (o.role === "visitor") { ;
  46464. __p += '\n title="' +
  46465. __e( o.jid ) +
  46466. ' ' +
  46467. __e( o.desc_visitor ) +
  46468. ' ' +
  46469. __e( o.hint_occupant ) +
  46470. '"\n ';
  46471. } ;
  46472. __p += '\n ';
  46473. if (!o._.includes(["visitor", "participant", "moderator"], o.role)) { ;
  46474. __p += '\n title="' +
  46475. __e( o.jid ) +
  46476. ' ' +
  46477. __e( o.hint_occupant ) +
  46478. '"\n ';
  46479. } ;
  46480. __p += '>\n <div class="row no-gutters">\n <div class="col-auto">\n <div class="occupant-status occupant-' +
  46481. __e(o.show) +
  46482. ' circle" title="' +
  46483. __e(o.hint_show) +
  46484. '"></div>\n </div>\n <div class="col">\n <span class="occupant-nick">' +
  46485. __e(o.nick || o.jid) +
  46486. '</span>\n ';
  46487. if (o.affiliation === "owner") { ;
  46488. __p += '\n <span class="badge badge-danger">' +
  46489. __e(o.label_owner) +
  46490. '</span>\n ';
  46491. } ;
  46492. __p += '\n ';
  46493. if (o.affiliation === "admin") { ;
  46494. __p += '\n <span class="badge badge-info">' +
  46495. __e(o.label_admin) +
  46496. '</span>\n ';
  46497. } ;
  46498. __p += '\n ';
  46499. if (o.affiliation === "member") { ;
  46500. __p += '\n <span class="badge badge-info">' +
  46501. __e(o.label_member) +
  46502. '</span>\n ';
  46503. } ;
  46504. __p += '\n\n ';
  46505. if (o.role === "moderator") { ;
  46506. __p += '\n <span class="badge badge-info">' +
  46507. __e(o.label_moderator) +
  46508. '</span>\n ';
  46509. } ;
  46510. __p += '\n ';
  46511. if (o.role === "visitor") { ;
  46512. __p += '\n <span class="badge badge-secondary">' +
  46513. __e(o.label_visitor) +
  46514. '</span>\n ';
  46515. } ;
  46516. __p += '\n </div>\n </div>\n</li>\n';
  46517. return __p
  46518. };
  46519. /***/ }),
  46520. /***/ "./src/templates/pending_contact.html":
  46521. /*!********************************************!*\
  46522. !*** ./src/templates/pending_contact.html ***!
  46523. \********************************************/
  46524. /*! no static exports found */
  46525. /***/ (function(module, exports, __webpack_require__) {
  46526. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46527. module.exports = function(o) {
  46528. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46529. function print() { __p += __j.call(arguments, '') }
  46530. __p += '<!-- src/templates/pending_contact.html -->\n';
  46531. if (o.allow_chat_pending_contacts) { ;
  46532. __p += '<a class="open-chat w-100" href="#">';
  46533. } ;
  46534. __p += '\n<span class="pending-contact-name w-100" title="JID: ' +
  46535. __e(o.jid) +
  46536. '">' +
  46537. __e(o.display_name) +
  46538. '</span> \n';
  46539. if (o.allow_chat_pending_contacts) { ;
  46540. __p += '</a>';
  46541. } ;
  46542. __p += '\n<a class="remove-xmpp-contact far fa-trash-alt" title="' +
  46543. __e(o.desc_remove) +
  46544. '" href="#"></a>\n';
  46545. return __p
  46546. };
  46547. /***/ }),
  46548. /***/ "./src/templates/profile_modal.html":
  46549. /*!******************************************!*\
  46550. !*** ./src/templates/profile_modal.html ***!
  46551. \******************************************/
  46552. /*! no static exports found */
  46553. /***/ (function(module, exports, __webpack_require__) {
  46554. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46555. module.exports = function(o) {
  46556. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46557. function print() { __p += __j.call(arguments, '') }
  46558. __p += '<!-- src/templates/profile_modal.html -->\n<div class="modal fade" id="user-profile-modal" tabindex="-1" role="dialog" aria-labelledby="user-profile-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="user-profile-modal-label">' +
  46559. __e(o.heading_profile) +
  46560. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  46561. __e(o.label_close) +
  46562. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n ';
  46563. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  46564. __p += '\n <ul class="nav nav-pills justify-content-center">\n <li role="presentation" class="nav-item">\n <a class="nav-link active" id="profile-tab" href="#profile-tabpanel" aria-controls="profile-tabpanel" role="tab" data-toggle="tab">Profile</a>\n </li>\n <li role="presentation" class="nav-item">\n <a class="nav-link" id="omemo-tab" href="#omemo-tabpanel" aria-controls="omemo-tabpanel" role="tab" data-toggle="tab">OMEMO</a>\n </li>\n </ul>\n ';
  46565. } ;
  46566. __p += '\n <div class="tab-content">\n <div class="tab-pane fade show active" id="profile-tabpanel" role="tabpanel" aria-labelledby="profile-tab">\n <form class="converse-form converse-form--modal profile-form" action="#">\n <div class="row">\n <div class="col-auto">\n <a class="change-avatar" href="#">\n ';
  46567. if (o.image) { ;
  46568. __p += '\n <img alt="' +
  46569. __e(o.alt_avatar) +
  46570. '" class="img-thumbnail avatar align-self-center" height="100px" width="100px" src="data:' +
  46571. __e(o.image_type) +
  46572. ';base64,' +
  46573. __e(o.image) +
  46574. '"/>\n ';
  46575. } ;
  46576. __p += '\n ';
  46577. if (!o.image) { ;
  46578. __p += '\n <canvas class="avatar" height="100px" width="100px"/>\n ';
  46579. } ;
  46580. __p += '\n </a>\n <input class="hidden" name="image" type="file">\n </div>\n <div class="col">\n <div class="form-group">\n <label class="col-form-label">' +
  46581. __e(o.label_jid) +
  46582. ':</label>\n <div>' +
  46583. __e(o.jid) +
  46584. '</div>\n </div>\n </div>\n </div>\n <div class="form-group">\n <label for="vcard-fullname" class="col-form-label">' +
  46585. __e(o.label_fullname) +
  46586. ':</label>\n <input id="vcard-fullname" type="text" class="form-control" name="fn" value="' +
  46587. __e(o.fullname) +
  46588. '">\n </div>\n <div class="form-group">\n <label for="vcard-nickname" class="col-form-label">' +
  46589. __e(o.label_nickname) +
  46590. ':</label>\n <input id="vcard-nickname" type="text" class="form-control" name="nickname" value="' +
  46591. __e(o.nickname) +
  46592. '">\n </div>\n <div class="form-group">\n <label for="vcard-url" class="col-form-label">' +
  46593. __e(o.label_url) +
  46594. ':</label>\n <input id="vcard-url" type="url" class="form-control" name="url" value="' +
  46595. __e(o.url) +
  46596. '">\n </div>\n <div class="form-group">\n <label for="vcard-email" class="col-form-label">' +
  46597. __e(o.label_email) +
  46598. ':</label>\n <input id="vcard-email" type="email" class="form-control" name="email" value="' +
  46599. __e(o.email) +
  46600. '">\n </div>\n <div class="form-group">\n <label for="vcard-role" class="col-form-label">' +
  46601. __e(o.label_role) +
  46602. ':</label>\n <input id="vcard-role" type="text" class="form-control" name="role" value="' +
  46603. __e(o.role) +
  46604. '" aria-describedby="vcard-role-help">\n <small id="vcard-role-help" class="form-text text-muted">' +
  46605. __e(o.label_role_help) +
  46606. '</small>\n </div>\n <hr/>\n <div class="form-group">\n <button type="submit" class="save-form btn btn-primary">' +
  46607. __e(o.__('Save and close')) +
  46608. '</button>\n </div>\n </form>\n </div>\n ';
  46609. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  46610. __p += '\n <div class="tab-pane fade" id="omemo-tabpanel" role="tabpanel" aria-labelledby="omemo-tab">\n <form class="converse-form fingerprint-removal">\n <ul class="list-group fingerprints">\n <li class="list-group-item active">' +
  46611. __e(o.__("This device's OMEMO fingerprint")) +
  46612. '</li>\n <li class="list-group-item">\n ';
  46613. if (o.view.current_device && o.view.current_device.get('bundle') && o.view.current_device.get('bundle').fingerprint) { ;
  46614. __p += '\n <span class="fingerprint">' +
  46615. __e(o.utils.formatFingerprint(o.view.current_device.get('bundle').fingerprint)) +
  46616. '</span>\n ';
  46617. } else {;
  46618. __p += '\n <span class="spinner fa fa-spinner centered"/>\n ';
  46619. } ;
  46620. __p += '\n </li>\n </ul>\n ';
  46621. if (o.view.other_devices.length) { ;
  46622. __p += '\n <ul class="list-group fingerprints">\n <li class="list-group-item nopadding active">\n <label>\n <input type="checkbox" class="select-all" title="' +
  46623. __e(o.__('Select all')) +
  46624. '"\n aria-label="' +
  46625. __e(o.__('Checkbox to select fingerprints of all other OMEMO devices')) +
  46626. '">\n ' +
  46627. __e(o.__('Other OMEMO-enabled devices')) +
  46628. '\n </label>\n </li>\n ';
  46629. o._.forEach(o.view.other_devices, function (device) { ;
  46630. __p += '\n ';
  46631. if (device.get('bundle') && device.get('bundle').fingerprint) { ;
  46632. __p += '\n <li class="fingerprint-removal-item list-group-item nopadding">\n <label>\n <input type="checkbox" value="' +
  46633. __e(device.get('id')) +
  46634. '"\n aria-label="' +
  46635. __e(o.__('Checkbox for selecting the following fingerprint')) +
  46636. '">\n <span class="fingerprint">' +
  46637. __e(o.utils.formatFingerprint(device.get('bundle').fingerprint)) +
  46638. '</span>\n </label>\n </li>\n ';
  46639. } else {;
  46640. __p += '\n <li class="fingerprint-removal-item list-group-item nopadding">\n <label>\n <input type="checkbox" value="' +
  46641. __e(device.get('id')) +
  46642. '"\n aria-label="' +
  46643. __e(o.__('Checkbox for selecting the following fingerprint')) +
  46644. '">\n <span>' +
  46645. __e(o.__('Device without a fingerprint')) +
  46646. '</span>\n </label>\n </li>\n ';
  46647. } ;
  46648. __p += '\n ';
  46649. }); ;
  46650. __p += '\n </ul>\n <div class="form-group">\n <button type="submit" class="save-form btn btn-primary">' +
  46651. __e(o.__('Remove checked devices and close')) +
  46652. '</button>\n </div>\n ';
  46653. } ;
  46654. __p += '\n </form>\n </div>\n ';
  46655. } ;
  46656. __p += '\n </div>\n </div>\n </div>\n </div>\n</div>\n';
  46657. return __p
  46658. };
  46659. /***/ }),
  46660. /***/ "./src/templates/profile_view.html":
  46661. /*!*****************************************!*\
  46662. !*** ./src/templates/profile_view.html ***!
  46663. \*****************************************/
  46664. /*! no static exports found */
  46665. /***/ (function(module, exports, __webpack_require__) {
  46666. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46667. module.exports = function(o) {
  46668. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46669. function print() { __p += __j.call(arguments, '') }
  46670. __p += '<!-- src/templates/profile_view.html -->\n<div class="userinfo controlbox-padded">\n<div class="profile d-flex">\n <a class="show-profile" href="#">\n <canvas alt="o.__(\'Your avatar\')" class="avatar align-self-center" height="40" width="40"></canvas>\n </a>\n <span class="username w-100 align-self-center">' +
  46671. __e(o.fullname) +
  46672. '</span>\n <!-- <a class="chatbox-btn fa fa-id-card align-self-center" title="' +
  46673. __e(o.title_your_profile) +
  46674. '" data-toggle="modal" data-target="#userProfileModal"></a> -->\n <!-- <a class="chatbox-btn fa fa-cog align-self-center" title="' +
  46675. __e(o.title_change_status) +
  46676. '" data-toggle="modal" data-target="#settingsModal"></a> -->\n ';
  46677. if (o._converse.allow_logout) { ;
  46678. __p += '\n <a class="chatbox-btn logout fa fa-sign-out-alt align-self-center" title="' +
  46679. __e(o.title_log_out) +
  46680. '"></a>\n ';
  46681. } ;
  46682. __p += '\n</div>\n<div class="d-flex xmpp-status">\n <span class="' +
  46683. __e(o.chat_status) +
  46684. ' w-100 align-self-center" data-value="' +
  46685. __e(o.chat_status) +
  46686. '">\n <span class="\n ';
  46687. if (o.chat_status === 'online') { ;
  46688. __p += ' fa fa-circle ';
  46689. } ;
  46690. __p += '\n ';
  46691. if (o.chat_status === 'dnd') { ;
  46692. __p += ' fa fa-minus-circle ';
  46693. } ;
  46694. __p += '\n ';
  46695. if (o.chat_status === 'away') { ;
  46696. __p += ' fa fa-dot-circle ';
  46697. } ;
  46698. __p += '\n ';
  46699. if (o.chat_status === 'xa') { ;
  46700. __p += ' far fa-circle ';
  46701. } ;
  46702. __p += '\n ';
  46703. if (o.chat_status === 'offline') { ;
  46704. __p += ' fa fa-times-circle ';
  46705. } ;
  46706. __p += '"></span> ' +
  46707. __e(o.status_message) +
  46708. '</span>\n <a class="chatbox-btn change-status fa fa-pencil-alt" title="' +
  46709. __e(o.title_change_status) +
  46710. '" data-toggle="modal" data-target="#changeStatusModal"></a>\n</div>\n</div>\n';
  46711. return __p
  46712. };
  46713. /***/ }),
  46714. /***/ "./src/templates/register_link.html":
  46715. /*!******************************************!*\
  46716. !*** ./src/templates/register_link.html ***!
  46717. \******************************************/
  46718. /*! no static exports found */
  46719. /***/ (function(module, exports, __webpack_require__) {
  46720. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46721. module.exports = function(o) {
  46722. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46723. function print() { __p += __j.call(arguments, '') }
  46724. __p += '<!-- src/templates/register_link.html -->\n<fieldset class="switch-form">\n ';
  46725. if (!o._converse.auto_login && o._converse.CONNECTION_STATUS[o.connection_status] !== 'CONNECTING') { ;
  46726. __p += '\n <p>' +
  46727. __e( o.__("Don't have a chat account?") ) +
  46728. '</p>\n <p><a class="register-account toggle-register-login" href="#converse/register">' +
  46729. __e(o.__("Create an account")) +
  46730. '</a></p>\n ';
  46731. } ;
  46732. __p += '\n</fieldset>\n';
  46733. return __p
  46734. };
  46735. /***/ }),
  46736. /***/ "./src/templates/register_panel.html":
  46737. /*!*******************************************!*\
  46738. !*** ./src/templates/register_panel.html ***!
  46739. \*******************************************/
  46740. /*! no static exports found */
  46741. /***/ (function(module, exports, __webpack_require__) {
  46742. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46743. module.exports = function(o) {
  46744. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46745. function print() { __p += __j.call(arguments, '') }
  46746. __p += '<!-- src/templates/register_panel.html -->\n<div class="row">\n <form id="converse-register" class="converse-form">\n <legend class="col-form-label">' +
  46747. __e(o.__("Create your account")) +
  46748. '</legend>\n\n <div class="form-group">\n <label>' +
  46749. __e(o.__("Please enter the XMPP provider to register with:")) +
  46750. '</label>\n <div class="form-errors hidden"></div>\n\n ';
  46751. if (o.default_domain) { ;
  46752. __p += '\n ' +
  46753. __e(o.default_domain) +
  46754. '\n </div>\n ';
  46755. } ;
  46756. __p += '\n ';
  46757. if (!o.default_domain) { ;
  46758. __p += '\n <input class="form-control" autofocus="autofocus" required="required" type="text" name="domain" placeholder="' +
  46759. __e(o.domain_placeholder) +
  46760. '">\n <p class="form-text text-muted">' +
  46761. __e(o.help_providers) +
  46762. ' <a href="' +
  46763. __e(o.href_providers) +
  46764. '" class="url" target="_blank" rel="noopener">' +
  46765. __e(o.help_providers_link) +
  46766. '</a>.</p>\n </div>\n <fieldset class="buttons">\n <input class="btn btn-primary" type="submit" value="' +
  46767. __e(o.label_register) +
  46768. '">\n <div class="switch-form">\n <p>' +
  46769. __e( o.__("Already have a chat account?") ) +
  46770. '</p>\n <p><a class="login-here toggle-register-login" href="#converse/login">' +
  46771. __e(o.__("Log in here")) +
  46772. '</a></p>\n </div>\n </fieldset>\n ';
  46773. } ;
  46774. __p += '\n </div>\n </form>\n</div>\n';
  46775. return __p
  46776. };
  46777. /***/ }),
  46778. /***/ "./src/templates/registration_form.html":
  46779. /*!**********************************************!*\
  46780. !*** ./src/templates/registration_form.html ***!
  46781. \**********************************************/
  46782. /*! no static exports found */
  46783. /***/ (function(module, exports, __webpack_require__) {
  46784. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46785. module.exports = function(o) {
  46786. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46787. function print() { __p += __j.call(arguments, '') }
  46788. __p += '<!-- src/templates/registration_form.html -->\n<legend class="col-form-label">' +
  46789. __e(o.__("Account Registration:")) +
  46790. ' ' +
  46791. __e(o.domain) +
  46792. '</legend>\n<p class="title">' +
  46793. __e(o.title) +
  46794. '</p>\n<p class="form-help instructions">' +
  46795. __e(o.instructions) +
  46796. '</p>\n<div class="form-errors hidden"></div>\n\n<fieldset class="buttons">\n <input type="submit" class="btn btn-primary" value="' +
  46797. __e(o.__('Register')) +
  46798. '"/>\n ';
  46799. if (!o.registration_domain) { ;
  46800. __p += '\n <input type="button" class="btn btn-secondary button-cancel" value="' +
  46801. __e(o.__('Choose a different provider')) +
  46802. '"/>\n ';
  46803. } ;
  46804. __p += '\n <div class="switch-form">\n <p>' +
  46805. __e( o.__("Already have a chat account?") ) +
  46806. '</p>\n <p><a class="login-here toggle-register-login" href="#converse/login">' +
  46807. __e(o.__("Log in here")) +
  46808. '</a></p>\n </div>\n</fieldset>\n';
  46809. return __p
  46810. };
  46811. /***/ }),
  46812. /***/ "./src/templates/registration_request.html":
  46813. /*!*************************************************!*\
  46814. !*** ./src/templates/registration_request.html ***!
  46815. \*************************************************/
  46816. /*! no static exports found */
  46817. /***/ (function(module, exports, __webpack_require__) {
  46818. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46819. module.exports = function(o) {
  46820. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46821. function print() { __p += __j.call(arguments, '') }
  46822. __p += '<!-- src/templates/registration_request.html -->\n<span class="spinner login-submit fa fa-spinner"></span>\n<p class="info">' +
  46823. __e(o.__("Hold tight, we're fetching the registration form…")) +
  46824. '</p>\n';
  46825. if (o.cancel) { ;
  46826. __p += '\n <button class="btn btn-secondary button-cancel hor_centered">' +
  46827. __e(o.__('Cancel')) +
  46828. '</button>\n';
  46829. } ;
  46830. __p += '\n';
  46831. return __p
  46832. };
  46833. /***/ }),
  46834. /***/ "./src/templates/requesting_contact.html":
  46835. /*!***********************************************!*\
  46836. !*** ./src/templates/requesting_contact.html ***!
  46837. \***********************************************/
  46838. /*! no static exports found */
  46839. /***/ (function(module, exports, __webpack_require__) {
  46840. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46841. module.exports = function(o) {
  46842. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46843. function print() { __p += __j.call(arguments, '') }
  46844. __p += '<!-- src/templates/requesting_contact.html -->\n';
  46845. if (o.allow_chat_pending_contacts) { ;
  46846. __p += '\n<a class="open-chat w-100"href="#">\n';
  46847. } ;
  46848. __p += '\n<span class="req-contact-name w-100" title="JID: ' +
  46849. __e(o.jid) +
  46850. '">' +
  46851. __e(o.display_name) +
  46852. '</span>\n';
  46853. if (o.allow_chat_pending_contacts) { ;
  46854. __p += '\n</a>\n';
  46855. } ;
  46856. __p += '\n<a class="accept-xmpp-request fa fa-check"\n aria-label="' +
  46857. __e(o.desc_accept) +
  46858. '" title="' +
  46859. __e(o.desc_accept) +
  46860. '" href="#"></a>\n<a class="decline-xmpp-request fa fa-times"\n aria-label="' +
  46861. __e(o.desc_decline) +
  46862. '" title="' +
  46863. __e(o.desc_decline) +
  46864. '" href="#"></a>\n';
  46865. return __p
  46866. };
  46867. /***/ }),
  46868. /***/ "./src/templates/room_description.html":
  46869. /*!*********************************************!*\
  46870. !*** ./src/templates/room_description.html ***!
  46871. \*********************************************/
  46872. /*! no static exports found */
  46873. /***/ (function(module, exports, __webpack_require__) {
  46874. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46875. module.exports = function(o) {
  46876. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46877. function print() { __p += __j.call(arguments, '') }
  46878. __p += '<!-- src/templates/room_description.html -->\n<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>' +
  46879. __e(o.label_jid) +
  46880. '</strong> ' +
  46881. __e(o.jid) +
  46882. '</p>\n<p class="room-info"><strong>' +
  46883. __e(o.label_desc) +
  46884. '</strong> ' +
  46885. __e(o.desc) +
  46886. '</p>\n<p class="room-info"><strong>' +
  46887. __e(o.label_occ) +
  46888. '</strong> ' +
  46889. __e(o.occ) +
  46890. '</p>\n<p class="room-info"><strong>' +
  46891. __e(o.label_features) +
  46892. '</strong>\n <ul>\n ';
  46893. if (o.passwordprotected) { ;
  46894. __p += '\n <li class="room-info locked">' +
  46895. __e(o.label_requires_auth) +
  46896. '</li>\n ';
  46897. } ;
  46898. __p += '\n ';
  46899. if (o.hidden) { ;
  46900. __p += '\n <li class="room-info">' +
  46901. __e(o.label_hidden) +
  46902. '</li>\n ';
  46903. } ;
  46904. __p += '\n ';
  46905. if (o.membersonly) { ;
  46906. __p += '\n <li class="room-info">' +
  46907. __e(o.label_requires_invite) +
  46908. '</li>\n ';
  46909. } ;
  46910. __p += '\n ';
  46911. if (o.moderated) { ;
  46912. __p += '\n <li class="room-info">' +
  46913. __e(o.label_moderated) +
  46914. '</li>\n ';
  46915. } ;
  46916. __p += '\n ';
  46917. if (o.nonanonymous) { ;
  46918. __p += '\n <li class="room-info">' +
  46919. __e(o.label_non_anon) +
  46920. '</li>\n ';
  46921. } ;
  46922. __p += '\n ';
  46923. if (o.open) { ;
  46924. __p += '\n <li class="room-info">' +
  46925. __e(o.label_open_room) +
  46926. '</li>\n ';
  46927. } ;
  46928. __p += '\n ';
  46929. if (o.persistent) { ;
  46930. __p += '\n <li class="room-info">' +
  46931. __e(o.label_permanent_room) +
  46932. '</li>\n ';
  46933. } ;
  46934. __p += '\n ';
  46935. if (o.publicroom) { ;
  46936. __p += '\n <li class="room-info">' +
  46937. __e(o.label_public) +
  46938. '</li>\n ';
  46939. } ;
  46940. __p += '\n ';
  46941. if (o.semianonymous) { ;
  46942. __p += '\n <li class="room-info">' +
  46943. __e(o.label_semi_anon) +
  46944. '</li>\n ';
  46945. } ;
  46946. __p += '\n ';
  46947. if (o.temporary) { ;
  46948. __p += '\n <li class="room-info">' +
  46949. __e(o.label_temp_room) +
  46950. '</li>\n ';
  46951. } ;
  46952. __p += '\n ';
  46953. if (o.unmoderated) { ;
  46954. __p += '\n <li class="room-info">' +
  46955. __e(o.label_unmoderated) +
  46956. '</li>\n ';
  46957. } ;
  46958. __p += '\n </ul>\n</p>\n</div>\n';
  46959. return __p
  46960. };
  46961. /***/ }),
  46962. /***/ "./src/templates/room_item.html":
  46963. /*!**************************************!*\
  46964. !*** ./src/templates/room_item.html ***!
  46965. \**************************************/
  46966. /*! no static exports found */
  46967. /***/ (function(module, exports, __webpack_require__) {
  46968. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46969. module.exports = function(o) {
  46970. var __t, __p = '', __e = _.escape;
  46971. __p += '<!-- src/templates/room_item.html -->\n<li class="room-item list-group-item">\n <div class="available-chatroom d-flex flex-row">\n <a class="open-room available-room w-100"\n data-room-jid="' +
  46972. __e(o.jid) +
  46973. '"\n data-room-name="' +
  46974. __e(o.name) +
  46975. '"\n title="' +
  46976. __e(o.open_title) +
  46977. '"\n href="#">' +
  46978. __e(o.name) +
  46979. '</a>\n <a class="right room-info icon-room-info"\n data-room-jid="' +
  46980. __e(o.jid) +
  46981. '"\n title="' +
  46982. __e(o.info_title) +
  46983. '" href="#">&nbsp;</a>\n </div>\n</li>\n';
  46984. return __p
  46985. };
  46986. /***/ }),
  46987. /***/ "./src/templates/room_panel.html":
  46988. /*!***************************************!*\
  46989. !*** ./src/templates/room_panel.html ***!
  46990. \***************************************/
  46991. /*! no static exports found */
  46992. /***/ (function(module, exports, __webpack_require__) {
  46993. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46994. module.exports = function(o) {
  46995. var __t, __p = '', __e = _.escape;
  46996. __p += '<!-- src/templates/room_panel.html -->\n<!-- <div id="chatrooms"> -->\n<div class="d-flex controlbox-padded">\n <span class="w-100 controlbox-heading">' +
  46997. __e(o.heading_chatrooms) +
  46998. '</span>\n <a class="chatbox-btn show-list-muc-modal fa fa-list-ul" title="' +
  46999. __e(o.title_list_rooms) +
  47000. '" data-toggle="modal" data-target="#list-chatrooms-modal"></a>\n <a class="chatbox-btn show-add-muc-modal fa fa-plus" title="' +
  47001. __e(o.title_new_room) +
  47002. '" data-toggle="modal" data-target="#add-chatrooms-modal"></a>\n</div>\n<div class="list-container open-rooms-list rooms-list-container"></div>\n<div class="list-container bookmarks-list rooms-list-container"></div>\n<!-- </div> -->\n';
  47003. return __p
  47004. };
  47005. /***/ }),
  47006. /***/ "./src/templates/rooms_list.html":
  47007. /*!***************************************!*\
  47008. !*** ./src/templates/rooms_list.html ***!
  47009. \***************************************/
  47010. /*! no static exports found */
  47011. /***/ (function(module, exports, __webpack_require__) {
  47012. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47013. module.exports = function(o) {
  47014. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47015. function print() { __p += __j.call(arguments, '') }
  47016. __p += '<!-- src/templates/rooms_list.html -->\n<a href="#" class="list-toggle open-rooms-toggle controlbox-padded" title="' +
  47017. __e(o.desc_rooms) +
  47018. '">\n <span class="fa ';
  47019. if (o.toggle_state === o._converse.OPENED) { ;
  47020. __p += ' fa-caret-down ';
  47021. } else { ;
  47022. __p += ' fa-caret-right ';
  47023. } ;
  47024. __p += '">\n </span> ' +
  47025. __e(o.label_rooms) +
  47026. '</a>\n<div class="items-list rooms-list open-rooms-list"></div>\n';
  47027. return __p
  47028. };
  47029. /***/ }),
  47030. /***/ "./src/templates/rooms_list_item.html":
  47031. /*!********************************************!*\
  47032. !*** ./src/templates/rooms_list_item.html ***!
  47033. \********************************************/
  47034. /*! no static exports found */
  47035. /***/ (function(module, exports, __webpack_require__) {
  47036. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47037. module.exports = function(o) {
  47038. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47039. function print() { __p += __j.call(arguments, '') }
  47040. __p += '<!-- src/templates/rooms_list_item.html -->\n<div class="list-item controlbox-padded available-chatroom d-flex flex-row\n ';
  47041. if (o.currently_open) { ;
  47042. __p += ' open ';
  47043. } ;
  47044. __p += '\n ';
  47045. if (o.num_unread_general) { ;
  47046. __p += ' unread-msgs ';
  47047. } ;
  47048. __p += '"\n data-room-jid="' +
  47049. __e(o.jid) +
  47050. '">\n';
  47051. if (o.num_unread) { ;
  47052. __p += '\n <span class="msgs-indicator badge badge-info">' +
  47053. __e( o.num_unread ) +
  47054. '</span>\n';
  47055. } ;
  47056. __p += '\n<a class="list-item-link open-room available-room w-100"\n data-room-jid="' +
  47057. __e(o.jid) +
  47058. '"\n title="' +
  47059. __e(o.open_title) +
  47060. '" href="#">' +
  47061. __e(o.name || o.jid) +
  47062. '</a>\n\n';
  47063. if (o.allow_bookmarks) { ;
  47064. __p += '\n<a class="list-item-action fa ';
  47065. if (o.bookmarked) { ;
  47066. __p += ' fa-bookmark remove-bookmark button-on ';
  47067. } else { ;
  47068. __p += ' add-bookmark fa-bookmark-o ';
  47069. } ;
  47070. __p += '"\n data-room-jid="' +
  47071. __e(o.jid) +
  47072. '" data-bookmark-name="' +
  47073. __e(o.name) +
  47074. '"\n title="';
  47075. if (o.bookmarked) { ;
  47076. __p += ' ' +
  47077. __e(o.info_remove_bookmark) +
  47078. ' ';
  47079. } else { ;
  47080. __p += ' ' +
  47081. __e(o.info_add_bookmark) +
  47082. ' ';
  47083. } ;
  47084. __p += '"\n href="#">&nbsp;</a>\n';
  47085. } ;
  47086. __p += '\n\n<a class="list-item-action room-info fa fa-info-circle" data-room-jid="' +
  47087. __e(o.jid) +
  47088. '"\n title="' +
  47089. __e(o.info_title) +
  47090. '" href="#">&nbsp;</a>\n\n<a class="list-item-action fa fa-times close-room"\n data-room-jid="' +
  47091. __e(o.jid) +
  47092. '"\n data-room-name="' +
  47093. __e(o.name || o.jid) +
  47094. '"\n title="' +
  47095. __e(o.info_leave_room) +
  47096. '" href="#">&nbsp;</a>\n\n</div>\n';
  47097. return __p
  47098. };
  47099. /***/ }),
  47100. /***/ "./src/templates/rooms_results.html":
  47101. /*!******************************************!*\
  47102. !*** ./src/templates/rooms_results.html ***!
  47103. \******************************************/
  47104. /*! no static exports found */
  47105. /***/ (function(module, exports, __webpack_require__) {
  47106. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47107. module.exports = function(o) {
  47108. var __t, __p = '', __e = _.escape;
  47109. __p += '<!-- src/templates/rooms_results.html -->\n<li class="list-group-item active">' +
  47110. __e( o.feedback_text ) +
  47111. '</dt>\n';
  47112. return __p
  47113. };
  47114. /***/ }),
  47115. /***/ "./src/templates/roster.html":
  47116. /*!***********************************!*\
  47117. !*** ./src/templates/roster.html ***!
  47118. \***********************************/
  47119. /*! no static exports found */
  47120. /***/ (function(module, exports, __webpack_require__) {
  47121. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47122. module.exports = function(o) {
  47123. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47124. function print() { __p += __j.call(arguments, '') }
  47125. __p += '<!-- src/templates/roster.html -->\n<div class="d-flex controlbox-padded">\n <span class="w-100 controlbox-heading">' +
  47126. __e(o.heading_contacts) +
  47127. '</span>\n ';
  47128. if (o.allow_contact_requests) { ;
  47129. __p += '\n <a class="chatbox-btn add-contact fa fa-user-plus"\n title="' +
  47130. __e(o.title_add_contact) +
  47131. '"\n data-toggle="modal"\n data-target="#add-contact-modal"></a>\n ';
  47132. } ;
  47133. __p += '\n</div>\n\n<form class="roster-filter-form"></form>\n\n<div class="roster-contacts"></div>\n';
  47134. return __p
  47135. };
  47136. /***/ }),
  47137. /***/ "./src/templates/roster_filter.html":
  47138. /*!******************************************!*\
  47139. !*** ./src/templates/roster_filter.html ***!
  47140. \******************************************/
  47141. /*! no static exports found */
  47142. /***/ (function(module, exports, __webpack_require__) {
  47143. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47144. module.exports = function(o) {
  47145. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47146. function print() { __p += __j.call(arguments, '') }
  47147. __p += '<!-- src/templates/roster_filter.html -->\n<form class="controlbox-padded roster-filter-form input-button-group ';
  47148. if (!o.visible) { ;
  47149. __p += ' hidden ';
  47150. } ;
  47151. __p += '">\n <div class="form-inline flex-nowrap">\n <div class="btn-group">\n <input ';
  47152. if (o.filter_text) { ;
  47153. __p += ' value="' +
  47154. __e(o.filter_text) +
  47155. '" ';
  47156. } ;
  47157. __p += '\n class="roster-filter form-control ';
  47158. if (o.filter_type === 'state') { ;
  47159. __p += ' hidden ';
  47160. } ;
  47161. __p += '"\n placeholder="' +
  47162. __e(o.placeholder) +
  47163. '">\n <span class="clear-input fa fa-times ';
  47164. if (!o.filter_text || o.filter_type === 'state') { ;
  47165. __p += ' hidden ';
  47166. } ;
  47167. __p += '"></span>\n </div>\n\n <select class="form-control state-type ';
  47168. if (o.filter_type !== 'state') { ;
  47169. __p += ' hidden ';
  47170. } ;
  47171. __p += '">\n <option value="">' +
  47172. __e(o.label_any) +
  47173. '</option>\n <option ';
  47174. if (o.chat_state === 'unread_messages') { ;
  47175. __p += ' selected="selected" ';
  47176. } ;
  47177. __p += '\n value="unread_messages">' +
  47178. __e(o.label_unread_messages) +
  47179. '</option>\n <option ';
  47180. if (o.chat_state === 'online') { ;
  47181. __p += ' selected="selected" ';
  47182. } ;
  47183. __p += '\n value="online">' +
  47184. __e(o.label_online) +
  47185. '</option>\n <option ';
  47186. if (o.chat_state === 'chat') { ;
  47187. __p += ' selected="selected" ';
  47188. } ;
  47189. __p += '\n value="chat">' +
  47190. __e(o.label_chatty) +
  47191. '</option>\n <option ';
  47192. if (o.chat_state === 'dnd') { ;
  47193. __p += ' selected="selected" ';
  47194. } ;
  47195. __p += '\n value="dnd">' +
  47196. __e(o.label_busy) +
  47197. '</option>\n <option ';
  47198. if (o.chat_state === 'away') { ;
  47199. __p += ' selected="selected" ';
  47200. } ;
  47201. __p += '\n value="away">' +
  47202. __e(o.label_away) +
  47203. '</option>\n <option ';
  47204. if (o.chat_state === 'xa') { ;
  47205. __p += ' selected="selected" ';
  47206. } ;
  47207. __p += '\n value="xa">' +
  47208. __e(o.label_xa) +
  47209. '</option>\n <option ';
  47210. if (o.chat_state === 'offline') { ;
  47211. __p += ' selected="selected" ';
  47212. } ;
  47213. __p += '\n value="offline">' +
  47214. __e(o.label_offline) +
  47215. '</option>\n </select>\n\n <div class="filter-by d-flex flex-nowrap">\n <span class="fa fa-user ';
  47216. if (o.filter_type === 'contacts') { ;
  47217. __p += ' selected ';
  47218. } ;
  47219. __p += '" data-type="contacts" title="' +
  47220. __e(o.title_contact_filter) +
  47221. '"></span>\n <span class="fa fa-users ';
  47222. if (o.filter_type === 'groups') { ;
  47223. __p += ' selected ';
  47224. } ;
  47225. __p += '" data-type="groups" title="' +
  47226. __e(o.title_group_filter) +
  47227. '"></span>\n <span class="fa fa-circle ';
  47228. if (o.filter_type === 'state') { ;
  47229. __p += ' selected ';
  47230. } ;
  47231. __p += '" data-type="state" title="' +
  47232. __e(o.title_status_filter) +
  47233. '"></span>\n </div>\n </div>\n</form>\n';
  47234. return __p
  47235. };
  47236. /***/ }),
  47237. /***/ "./src/templates/roster_item.html":
  47238. /*!****************************************!*\
  47239. !*** ./src/templates/roster_item.html ***!
  47240. \****************************************/
  47241. /*! no static exports found */
  47242. /***/ (function(module, exports, __webpack_require__) {
  47243. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47244. module.exports = function(o) {
  47245. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47246. function print() { __p += __j.call(arguments, '') }
  47247. __p += '<!-- src/templates/roster_item.html -->\n<a class="list-item-link cbox-list-item open-chat w-100 ';
  47248. if (o.num_unread) { ;
  47249. __p += ' unread-msgs ';
  47250. } ;
  47251. __p += '"\n title="' +
  47252. __e(o.desc_chat) +
  47253. '" href="#">\n <span class="' +
  47254. __e(o.status_icon) +
  47255. '" title="' +
  47256. __e(o.desc_status) +
  47257. '"></span>\n ';
  47258. if (o.num_unread) { ;
  47259. __p += '\n <span class="msgs-indicator">' +
  47260. __e( o.num_unread ) +
  47261. '</span>\n ';
  47262. } ;
  47263. __p += '\n <span class="contact-name ';
  47264. if (o.num_unread) { ;
  47265. __p += ' unread-msgs ';
  47266. } ;
  47267. __p += '">' +
  47268. __e(o.display_name) +
  47269. '</span></a>\n';
  47270. if (o.allow_contact_removal) { ;
  47271. __p += '\n<a class="list-item-action remove-xmpp-contact far fa-trash-alt" title="' +
  47272. __e(o.desc_remove) +
  47273. '" href="#"></a>\n';
  47274. } ;
  47275. __p += '\n';
  47276. return __p
  47277. };
  47278. /***/ }),
  47279. /***/ "./src/templates/search_contact.html":
  47280. /*!*******************************************!*\
  47281. !*** ./src/templates/search_contact.html ***!
  47282. \*******************************************/
  47283. /*! no static exports found */
  47284. /***/ (function(module, exports, __webpack_require__) {
  47285. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47286. module.exports = function(o) {
  47287. var __t, __p = '', __e = _.escape;
  47288. __p += '<!-- src/templates/search_contact.html -->\n<li>\n <form class="search-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
  47289. __e(o.label_contact_name) +
  47290. '"/>\n <button type="submit">' +
  47291. __e(o.label_search) +
  47292. '</button>\n </form>\n</li>\n';
  47293. return __p
  47294. };
  47295. /***/ }),
  47296. /***/ "./src/templates/select_option.html":
  47297. /*!******************************************!*\
  47298. !*** ./src/templates/select_option.html ***!
  47299. \******************************************/
  47300. /*! no static exports found */
  47301. /***/ (function(module, exports, __webpack_require__) {
  47302. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47303. module.exports = function(o) {
  47304. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47305. function print() { __p += __j.call(arguments, '') }
  47306. __p += '<!-- src/templates/select_option.html -->\n<option value="' +
  47307. __e(o.value) +
  47308. '" ';
  47309. if (o.selected) { ;
  47310. __p += ' selected="selected" ';
  47311. } ;
  47312. __p += ' >' +
  47313. __e(o.label) +
  47314. '</option>\n';
  47315. return __p
  47316. };
  47317. /***/ }),
  47318. /***/ "./src/templates/spinner.html":
  47319. /*!************************************!*\
  47320. !*** ./src/templates/spinner.html ***!
  47321. \************************************/
  47322. /*! no static exports found */
  47323. /***/ (function(module, exports, __webpack_require__) {
  47324. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47325. module.exports = function(o) {
  47326. var __t, __p = '';
  47327. __p += '<!-- src/templates/spinner.html -->\n<span class="spinner fa fa-spinner centered"/>\n';
  47328. return __p
  47329. };
  47330. /***/ }),
  47331. /***/ "./src/templates/spoiler_button.html":
  47332. /*!*******************************************!*\
  47333. !*** ./src/templates/spoiler_button.html ***!
  47334. \*******************************************/
  47335. /*! no static exports found */
  47336. /***/ (function(module, exports, __webpack_require__) {
  47337. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47338. module.exports = function(o) {
  47339. var __t, __p = '', __j = Array.prototype.join;
  47340. function print() { __p += __j.call(arguments, '') }
  47341. __p += '<!-- src/templates/spoiler_button.html -->\n<li class="toggle-compose-spoiler fa ';
  47342. if (o.composing_spoiler) { ;
  47343. __p += ' fa-eye-slash ';
  47344. } ;
  47345. __p += ' ';
  47346. if (!o.composing_spoiler) { ;
  47347. __p += ' fa-eye ';
  47348. } ;
  47349. __p += '"\n title="' +
  47350. ((__t = ( o.label_toggle_spoiler )) == null ? '' : __t) +
  47351. '"></a>\n</li>\n';
  47352. return __p
  47353. };
  47354. /***/ }),
  47355. /***/ "./src/templates/status_message.html":
  47356. /*!*******************************************!*\
  47357. !*** ./src/templates/status_message.html ***!
  47358. \*******************************************/
  47359. /*! no static exports found */
  47360. /***/ (function(module, exports, __webpack_require__) {
  47361. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47362. module.exports = function(o) {
  47363. var __t, __p = '', __e = _.escape;
  47364. __p += '<!-- src/templates/status_message.html -->\n<div class="message chat-info chat-status"\n data-isodate="' +
  47365. __e(o.isodate) +
  47366. '"\n data-status="' +
  47367. __e(o.from) +
  47368. '">' +
  47369. __e(o.message) +
  47370. '</div>\n';
  47371. return __p
  47372. };
  47373. /***/ }),
  47374. /***/ "./src/templates/status_option.html":
  47375. /*!******************************************!*\
  47376. !*** ./src/templates/status_option.html ***!
  47377. \******************************************/
  47378. /*! no static exports found */
  47379. /***/ (function(module, exports, __webpack_require__) {
  47380. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47381. module.exports = function(o) {
  47382. var __t, __p = '', __e = _.escape;
  47383. __p += '<!-- src/templates/status_option.html -->\n<li>\n <a href="#" class="' +
  47384. __e( o.value ) +
  47385. '" data-value="' +
  47386. __e( o.value ) +
  47387. '">\n <span class="icon-' +
  47388. __e( o.value ) +
  47389. '"></span>\n ' +
  47390. __e( o.text ) +
  47391. '\n </a>\n</li>\n';
  47392. return __p
  47393. };
  47394. /***/ }),
  47395. /***/ "./src/templates/toggle_chats.html":
  47396. /*!*****************************************!*\
  47397. !*** ./src/templates/toggle_chats.html ***!
  47398. \*****************************************/
  47399. /*! no static exports found */
  47400. /***/ (function(module, exports, __webpack_require__) {
  47401. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47402. module.exports = function(o) {
  47403. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47404. function print() { __p += __j.call(arguments, '') }
  47405. __p += '<!-- src/templates/toggle_chats.html -->\n' +
  47406. __e(o.num_minimized) +
  47407. ' ' +
  47408. __e(o.Minimized) +
  47409. '\n<span class="unread-message-count ';
  47410. if (!o.num_unread) { ;
  47411. __p += ' unread-message-count-hidden ';
  47412. } ;
  47413. __p += '" href="#">' +
  47414. __e(o.num_unread) +
  47415. '</span>\n';
  47416. return __p
  47417. };
  47418. /***/ }),
  47419. /***/ "./src/templates/toolbar.html":
  47420. /*!************************************!*\
  47421. !*** ./src/templates/toolbar.html ***!
  47422. \************************************/
  47423. /*! no static exports found */
  47424. /***/ (function(module, exports, __webpack_require__) {
  47425. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47426. module.exports = function(o) {
  47427. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47428. function print() { __p += __j.call(arguments, '') }
  47429. __p += '<!-- src/templates/toolbar.html -->\n';
  47430. if (o.use_emoji) { ;
  47431. __p += '\n<li class="toggle-toolbar-menu toggle-smiley dropup">\n <a class="toggle-smiley far fa-smile" title="' +
  47432. __e(o.tooltip_insert_smiley) +
  47433. '" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a> \n <div class="emoji-picker dropdown-menu toolbar-menu"></div>\n</li>\n';
  47434. } ;
  47435. __p += '\n';
  47436. if (o.show_call_button) { ;
  47437. __p += '\n<li class="toggle-call fa fa-phone" title="' +
  47438. __e(o.label_start_call) +
  47439. '"></li>\n';
  47440. } ;
  47441. __p += '\n';
  47442. if (o.show_occupants_toggle) { ;
  47443. __p += '\n<li class="toggle-occupants fa fa-angle-double-right" title="' +
  47444. __e(o.label_hide_occupants) +
  47445. '"></li>\n';
  47446. } ;
  47447. __p += '\n';
  47448. return __p
  47449. };
  47450. /***/ }),
  47451. /***/ "./src/templates/toolbar_fileupload.html":
  47452. /*!***********************************************!*\
  47453. !*** ./src/templates/toolbar_fileupload.html ***!
  47454. \***********************************************/
  47455. /*! no static exports found */
  47456. /***/ (function(module, exports, __webpack_require__) {
  47457. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47458. module.exports = function(o) {
  47459. var __t, __p = '', __e = _.escape;
  47460. __p += '<!-- src/templates/toolbar_fileupload.html -->\n<li class="upload-file">\n <a class="fa fa-paperclip" title="' +
  47461. __e(o.tooltip_upload_file) +
  47462. '"></a>\n <input type="file" class="fileupload" multiple style="display:none"/>\n</li> \n';
  47463. return __p
  47464. };
  47465. /***/ }),
  47466. /***/ "./src/templates/toolbar_omemo.html":
  47467. /*!******************************************!*\
  47468. !*** ./src/templates/toolbar_omemo.html ***!
  47469. \******************************************/
  47470. /*! no static exports found */
  47471. /***/ (function(module, exports, __webpack_require__) {
  47472. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47473. module.exports = function(o) {
  47474. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47475. function print() { __p += __j.call(arguments, '') }
  47476. __p += '<!-- src/templates/toolbar_omemo.html -->\n<li class="toggle-omemo fa ';
  47477. if (o.omemo_active) { ;
  47478. __p += ' fa-lock ';
  47479. } else { ;
  47480. __p += ' fa-unlock ';
  47481. } ;
  47482. __p += '" title="' +
  47483. __e(o.__('Messages are being sent in plaintext')) +
  47484. '"></li>\n';
  47485. return __p
  47486. };
  47487. /***/ }),
  47488. /***/ "./src/templates/trimmed_chat.html":
  47489. /*!*****************************************!*\
  47490. !*** ./src/templates/trimmed_chat.html ***!
  47491. \*****************************************/
  47492. /*! no static exports found */
  47493. /***/ (function(module, exports, __webpack_require__) {
  47494. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47495. module.exports = function(o) {
  47496. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47497. function print() { __p += __j.call(arguments, '') }
  47498. __p += '<!-- src/templates/trimmed_chat.html -->\n<a href="#" class="restore-chat w-100 align-self-center" title="' +
  47499. __e(o.tooltip) +
  47500. '">\n ';
  47501. if (o.num_unread) { ;
  47502. __p += ' \n <span class="message-count badge badge-light">' +
  47503. __e(o.num_unread) +
  47504. '</span>\n ';
  47505. } ;
  47506. __p += '\n ' +
  47507. __e(o.title || o.jid ) +
  47508. '\n</a>\n<a class="chatbox-btn close-chatbox-button fa fa-times"></a>\n';
  47509. return __p
  47510. };
  47511. /***/ }),
  47512. /***/ "./src/templates/user_details_modal.html":
  47513. /*!***********************************************!*\
  47514. !*** ./src/templates/user_details_modal.html ***!
  47515. \***********************************************/
  47516. /*! no static exports found */
  47517. /***/ (function(module, exports, __webpack_require__) {
  47518. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47519. module.exports = function(o) {
  47520. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  47521. function print() { __p += __j.call(arguments, '') }
  47522. __p += '<!-- src/templates/user_details_modal.html -->\n<div class="modal fade" id="user-details-modal" tabindex="-1" role="dialog" aria-labelledby="user-details-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="user-details-modal-label">' +
  47523. __e(o.display_name) +
  47524. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  47525. __e(o.__('Close')) +
  47526. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n ';
  47527. if (o.image) { ;
  47528. __p += '\n <img alt="' +
  47529. __e(o.__('The User\'s Profile Image')) +
  47530. '"\n class="img-thumbnail avatar align-self-center mb-3"\n height="100" width="100" src="data:' +
  47531. __e(o.image_type) +
  47532. ';base64,' +
  47533. __e(o.image) +
  47534. '"/>\n ';
  47535. } ;
  47536. __p += '\n ';
  47537. if (o.fullname) { ;
  47538. __p += '\n <p><label>' +
  47539. __e(o.__('Full Name')) +
  47540. ':</label>&nbsp;' +
  47541. __e(o.fullname) +
  47542. '</p>\n ';
  47543. } ;
  47544. __p += '\n <p><label>' +
  47545. __e(o.__('XMPP Address')) +
  47546. ':</label>&nbsp;' +
  47547. __e(o.jid) +
  47548. '</p>\n ';
  47549. if (o.nickname) { ;
  47550. __p += '\n <p><label>' +
  47551. __e(o.__('Nickname')) +
  47552. ':</label>&nbsp;' +
  47553. __e(o.nickname) +
  47554. '</p>\n ';
  47555. } ;
  47556. __p += '\n ';
  47557. if (o.url) { ;
  47558. __p += '\n <p><label>' +
  47559. __e(o.__('URL')) +
  47560. ':</label>&nbsp;<a target="_blank" rel="noopener" href="' +
  47561. __e(o.url) +
  47562. '">' +
  47563. __e(o.url) +
  47564. '</a></p>\n ';
  47565. } ;
  47566. __p += '\n ';
  47567. if (o.email) { ;
  47568. __p += '\n <p><label>' +
  47569. __e(o.__('Email')) +
  47570. ':</label>&nbsp;<a href="mailto:' +
  47571. __e(o.email) +
  47572. '">' +
  47573. __e(o.email) +
  47574. '</a></p>\n ';
  47575. } ;
  47576. __p += '\n ';
  47577. if (o.role) { ;
  47578. __p += '\n <p><label>' +
  47579. __e(o.__('Role')) +
  47580. ':</label>&nbsp;' +
  47581. __e(o.role) +
  47582. '</p>\n ';
  47583. } ;
  47584. __p += '\n\n ';
  47585. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  47586. __p += '\n <hr>\n <ul class="list-group fingerprints">\n <li class="list-group-item active">' +
  47587. __e(o.__('OMEMO Fingerprints')) +
  47588. '</li>\n ';
  47589. if (!o.view.devicelist.devices) { ;
  47590. __p += '\n <li class="list-group-item"><span class="spinner fa fa-spinner centered"/></li>\n ';
  47591. } ;
  47592. __p += '\n ';
  47593. if (o.view.devicelist.devices) { ;
  47594. __p += '\n ';
  47595. o.view.devicelist.devices.each(function (device) { ;
  47596. __p += '\n ';
  47597. if (device.get('bundle') && device.get('bundle').fingerprint) { ;
  47598. __p += '\n <li class="list-group-item">\n <form class="fingerprint-trust">\n <div class="btn-group btn-group-toggle">\n <label class="btn btn--small ';
  47599. if (device.get('trusted') !== -1) { ;
  47600. __p += ' btn-primary active ';
  47601. } else { ;
  47602. __p += ' btn-secondary ';
  47603. } ;
  47604. __p += '">\n <input type="radio" name="' +
  47605. __e(device.get('id')) +
  47606. '" value="1"\n ';
  47607. if (device.get('trusted') !== -1) { ;
  47608. __p += ' checked="checked" ';
  47609. } ;
  47610. __p += '>' +
  47611. __e(o.__('Trusted')) +
  47612. '\n </label>\n <label class="btn btn--small ';
  47613. if (device.get('trusted') === -1) { ;
  47614. __p += ' btn-primary active ';
  47615. } else { ;
  47616. __p += ' btn-secondary ';
  47617. } ;
  47618. __p += '">\n <input type="radio" name="' +
  47619. __e(device.get('id')) +
  47620. '" value="-1"\n ';
  47621. if (device.get('trusted') === -1) { ;
  47622. __p += ' checked="checked" ';
  47623. } ;
  47624. __p += '>' +
  47625. __e(o.__('Untrusted')) +
  47626. '\n </label>\n </div>\n <span class="fingerprint">' +
  47627. __e(o.utils.formatFingerprint(device.get('bundle').fingerprint)) +
  47628. '</span>\n </form>\n </li>\n ';
  47629. } ;
  47630. __p += '\n ';
  47631. }); ;
  47632. __p += '\n ';
  47633. } ;
  47634. __p += '\n </ul>\n ';
  47635. } ;
  47636. __p += '\n </div>\n <div class="modal-footer">\n ';
  47637. if (o.allow_contact_removal && o.is_roster_contact) { ;
  47638. __p += '\n <button type="button" class="btn btn-danger remove-contact"><i class="far fa-trash-alt"> </i>' +
  47639. __e(o.__('Remove as contact')) +
  47640. '</button>\n ';
  47641. } ;
  47642. __p += '\n <button type="button" class="btn btn-info refresh-contact"><i class="fa fa-refresh"> </i>' +
  47643. __e(o.__('Refresh')) +
  47644. '</button>\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  47645. __e(o.__('Close')) +
  47646. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  47647. return __p
  47648. };
  47649. /***/ }),
  47650. /***/ "./src/templates/vcard.html":
  47651. /*!**********************************!*\
  47652. !*** ./src/templates/vcard.html ***!
  47653. \**********************************/
  47654. /*! no static exports found */
  47655. /***/ (function(module, exports, __webpack_require__) {
  47656. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47657. module.exports = function(o) {
  47658. var __t, __p = '', __e = _.escape;
  47659. __p += '<!-- src/templates/vcard.html -->\n<vCard xmlns="vcard-temp">\n <FN>' +
  47660. __e(o.fn) +
  47661. '</FN>\n <NICKNAME>' +
  47662. __e(o.nickname) +
  47663. '</NICKNAME>\n <URL>' +
  47664. __e(o.url) +
  47665. '</URL>\n <ROLE>' +
  47666. __e(o.role) +
  47667. '</ROLE>\n <EMAIL><INTERNET/><PREF/><USERID>' +
  47668. __e(o.email) +
  47669. '</USERID></EMAIL>\n <PHOTO>\n <TYPE>' +
  47670. __e(o.image_type) +
  47671. '</TYPE>\n <BINVAL>' +
  47672. __e(o.image) +
  47673. '</BINVAL>\n </PHOTO>\n</vCard>\n';
  47674. return __p
  47675. };
  47676. /***/ }),
  47677. /***/ "./src/templates/video.html":
  47678. /*!**********************************!*\
  47679. !*** ./src/templates/video.html ***!
  47680. \**********************************/
  47681. /*! no static exports found */
  47682. /***/ (function(module, exports, __webpack_require__) {
  47683. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  47684. module.exports = function(o) {
  47685. var __t, __p = '', __e = _.escape;
  47686. __p += '<!-- src/templates/video.html -->\n<video controls src="' +
  47687. __e(o.url) +
  47688. '" style="max-height: 50vh"></video>\n<a target="_blank" rel="noopener" href="' +
  47689. __e(o.url) +
  47690. '">' +
  47691. __e(o.label_download) +
  47692. '</a>\n';
  47693. return __p
  47694. };
  47695. /***/ }),
  47696. /***/ "./src/underscore-shim.js":
  47697. /*!********************************!*\
  47698. !*** ./src/underscore-shim.js ***!
  47699. \********************************/
  47700. /*! no static exports found */
  47701. /***/ (function(module, exports, __webpack_require__) {
  47702. "use strict";
  47703. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  47704. /*global define */
  47705. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash */ "lodash")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (_) {
  47706. return _.noConflict();
  47707. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  47708. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  47709. /***/ }),
  47710. /***/ "./src/utils/core.js":
  47711. /*!***************************!*\
  47712. !*** ./src/utils/core.js ***!
  47713. \***************************/
  47714. /*! no static exports found */
  47715. /***/ (function(module, exports, __webpack_require__) {
  47716. "use strict";
  47717. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  47718. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  47719. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  47720. // Converse.js (A browser based XMPP chat client)
  47721. // http://conversejs.org
  47722. //
  47723. // This is the utilities module.
  47724. //
  47725. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  47726. // Licensed under the Mozilla Public License (MPLv2)
  47727. //
  47728. /*global define, escape, window, Uint8Array */
  47729. (function (root, factory) {
  47730. if (true) {
  47731. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! es6-promise */ "es6-promise"), __webpack_require__(/*! fast-text-encoding */ "./node_modules/fast-text-encoding/text.js"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js"), __webpack_require__(/*! strophe */ "strophe"), __webpack_require__(/*! uri */ "./node_modules/urijs/src/URI.js"), __webpack_require__(/*! templates/audio.html */ "./src/templates/audio.html"), __webpack_require__(/*! templates/file.html */ "./src/templates/file.html"), __webpack_require__(/*! templates/image.html */ "./src/templates/image.html"), __webpack_require__(/*! templates/video.html */ "./src/templates/video.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  47732. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  47733. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  47734. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  47735. } else { var Strophe; }
  47736. })(void 0, function (sizzle, Promise, FastTextEncoding, _, Backbone, Strophe, URI, tpl_audio, tpl_file, tpl_image, tpl_video) {
  47737. "use strict";
  47738. Strophe = Strophe.Strophe;
  47739. var URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b\/?/g;
  47740. var logger = _.assign({
  47741. 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  47742. 'error': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  47743. 'info': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  47744. 'warn': _.get(console, 'log') ? console.log.bind(console) : _.noop
  47745. }, console);
  47746. var isImage = function isImage(url) {
  47747. return new Promise(function (resolve, reject) {
  47748. var img = new Image();
  47749. var timer = window.setTimeout(function () {
  47750. reject(new Error("Could not determine whether it's an image"));
  47751. img = null;
  47752. }, 3000);
  47753. img.onerror = img.onabort = function () {
  47754. clearTimeout(timer);
  47755. reject(new Error("Could not determine whether it's an image"));
  47756. };
  47757. img.onload = function () {
  47758. clearTimeout(timer);
  47759. resolve(img);
  47760. };
  47761. img.src = url;
  47762. });
  47763. };
  47764. function slideOutWrapup(el) {
  47765. /* Wrapup function for slideOut. */
  47766. el.removeAttribute('data-slider-marker');
  47767. el.classList.remove('collapsed');
  47768. el.style.overflow = "";
  47769. el.style.height = "";
  47770. }
  47771. var u = {};
  47772. u.getLongestSubstring = function (string, candidates) {
  47773. function reducer(accumulator, current_value) {
  47774. if (string.startsWith(current_value)) {
  47775. if (current_value.length > accumulator.length) {
  47776. return current_value;
  47777. } else {
  47778. return accumulator;
  47779. }
  47780. } else {
  47781. return accumulator;
  47782. }
  47783. }
  47784. return candidates.reduce(reducer, '');
  47785. };
  47786. u.getNextElement = function (el) {
  47787. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47788. var next_el = el.nextElementSibling;
  47789. while (!_.isNull(next_el) && !sizzle.matchesSelector(next_el, selector)) {
  47790. next_el = next_el.nextElementSibling;
  47791. }
  47792. return next_el;
  47793. };
  47794. u.getPreviousElement = function (el) {
  47795. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47796. var prev_el = el.previousSibling;
  47797. while (!_.isNull(prev_el) && !sizzle.matchesSelector(prev_el, selector)) {
  47798. prev_el = prev_el.previousSibling;
  47799. }
  47800. return prev_el;
  47801. };
  47802. u.getFirstChildElement = function (el) {
  47803. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47804. var first_el = el.firstElementChild;
  47805. while (!_.isNull(first_el) && !sizzle.matchesSelector(first_el, selector)) {
  47806. first_el = first_el.nextSibling;
  47807. }
  47808. return first_el;
  47809. };
  47810. u.getLastChildElement = function (el) {
  47811. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47812. var last_el = el.lastElementChild;
  47813. while (!_.isNull(last_el) && !sizzle.matchesSelector(last_el, selector)) {
  47814. last_el = last_el.previousSibling;
  47815. }
  47816. return last_el;
  47817. };
  47818. u.calculateElementHeight = function (el) {
  47819. /* Return the height of the passed in DOM element,
  47820. * based on the heights of its children.
  47821. */
  47822. return _.reduce(el.children, function (result, child) {
  47823. return result + child.offsetHeight;
  47824. }, 0);
  47825. };
  47826. u.addClass = function (className, el) {
  47827. if (_instanceof(el, Element)) {
  47828. el.classList.add(className);
  47829. }
  47830. };
  47831. u.removeClass = function (className, el) {
  47832. if (_instanceof(el, Element)) {
  47833. el.classList.remove(className);
  47834. }
  47835. return el;
  47836. };
  47837. u.removeElement = function (el) {
  47838. if (!_.isNil(el) && !_.isNil(el.parentNode)) {
  47839. el.parentNode.removeChild(el);
  47840. }
  47841. };
  47842. u.showElement = _.flow(_.partial(u.removeClass, 'collapsed'), _.partial(u.removeClass, 'hidden'));
  47843. u.hideElement = function (el) {
  47844. if (!_.isNil(el)) {
  47845. el.classList.add('hidden');
  47846. }
  47847. return el;
  47848. };
  47849. u.ancestor = function (el, selector) {
  47850. var parent = el;
  47851. while (!_.isNil(parent) && !sizzle.matchesSelector(parent, selector)) {
  47852. parent = parent.parentElement;
  47853. }
  47854. return parent;
  47855. };
  47856. u.nextUntil = function (el, selector) {
  47857. var include_self = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  47858. /* Return the element's siblings until one matches the selector. */
  47859. var matches = [];
  47860. var sibling_el = el.nextElementSibling;
  47861. while (!_.isNil(sibling_el) && !sibling_el.matches(selector)) {
  47862. matches.push(sibling_el);
  47863. sibling_el = sibling_el.nextElementSibling;
  47864. }
  47865. return matches;
  47866. };
  47867. u.unescapeHTML = function (string) {
  47868. /* Helper method that replace HTML-escaped symbols with equivalent characters
  47869. * (e.g. transform occurrences of '&amp;' to '&')
  47870. *
  47871. * Parameters:
  47872. * (String) string: a String containing the HTML-escaped symbols.
  47873. */
  47874. var div = document.createElement('div');
  47875. div.innerHTML = string;
  47876. return div.innerText;
  47877. };
  47878. u.escapeHTML = function (string) {
  47879. return string.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
  47880. };
  47881. u.escapeURL = function (url) {
  47882. return encodeURI(decodeURI(url)).replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
  47883. };
  47884. u.prefixMentions = function (message) {
  47885. /* Given a message object, return its text with @ chars
  47886. * inserted before the mentioned nicknames.
  47887. */
  47888. var text = message.get('message');
  47889. (message.get('references') || []).sort(function (a, b) {
  47890. return b.begin - a.begin;
  47891. }).forEach(function (ref) {
  47892. text = "".concat(text.slice(0, ref.begin), "@").concat(text.slice(ref.begin));
  47893. });
  47894. return text;
  47895. };
  47896. u.addMentionsMarkup = function (text, references, chatbox) {
  47897. if (chatbox.get('message_type') !== 'groupchat') {
  47898. return text;
  47899. }
  47900. var nick = chatbox.get('nick');
  47901. references.sort(function (a, b) {
  47902. return b.begin - a.begin;
  47903. }).forEach(function (ref) {
  47904. var mention = text.slice(ref.begin, ref.end);
  47905. chatbox;
  47906. if (mention === nick) {
  47907. text = text.slice(0, ref.begin) + "<span class=\"mention mention--self badge badge-info\">".concat(mention, "</span>") + text.slice(ref.end);
  47908. } else {
  47909. text = text.slice(0, ref.begin) + "<span class=\"mention\">".concat(mention, "</span>") + text.slice(ref.end);
  47910. }
  47911. });
  47912. return text;
  47913. };
  47914. u.addHyperlinks = function (text) {
  47915. return URI.withinString(text, function (url) {
  47916. var uri = new URI(url);
  47917. uri.normalize();
  47918. if (!url.startsWith('http://') && !url.startsWith('https://')) {
  47919. url = 'http://' + url;
  47920. }
  47921. url = u.escapeHTML(u.escapeURL(url));
  47922. return "<a target=\"_blank\" rel=\"noopener\" href=\"".concat(url, "\">").concat(u.escapeHTML(uri.readable()), "</a>");
  47923. });
  47924. };
  47925. u.renderNewLines = function (text) {
  47926. return text.replace(/\n\n+/g, '<br/><br/>').replace(/\n/g, '<br/>');
  47927. };
  47928. u.renderImageURLs = function (_converse, obj) {
  47929. /* Returns a Promise which resolves once all images have been loaded.
  47930. */
  47931. var __ = _converse.__;
  47932. var list = obj.textContent.match(URL_REGEX) || [];
  47933. return Promise.all(_.map(list, function (url) {
  47934. return new Promise(function (resolve, reject) {
  47935. return isImage(url).then(function (img) {
  47936. var i = new Image();
  47937. i.src = img.src;
  47938. i.addEventListener('load', resolve); // We also resolve for non-images, otherwise the
  47939. // Promise.all resolves prematurely.
  47940. i.addEventListener('error', resolve);
  47941. _.each(sizzle("a[href=\"".concat(url, "\"]"), obj), function (a) {
  47942. a.outerHTML = tpl_image({
  47943. 'url': url,
  47944. 'label_download': __('Download')
  47945. });
  47946. });
  47947. }).catch(resolve);
  47948. });
  47949. }));
  47950. };
  47951. u.renderFileURL = function (_converse, url) {
  47952. var uri = new URI(url),
  47953. filename = uri.filename(),
  47954. lower_filename = filename.toLowerCase();
  47955. if (!_.includes(["https", "http"], uri.protocol().toLowerCase()) || lower_filename.endsWith('mp3') || lower_filename.endsWith('mp4') || lower_filename.endsWith('ogg') || lower_filename.endsWith('jpg') || lower_filename.endsWith('jpeg') || lower_filename.endsWith('png') || lower_filename.endsWith('gif') || lower_filename.endsWith('m4a') || lower_filename.endsWith('webm') || lower_filename.endsWith('svg')) {
  47956. return url;
  47957. }
  47958. var __ = _converse.__;
  47959. return tpl_file({
  47960. 'url': url,
  47961. 'label_download': __('Download file "%1$s"', decodeURI(filename))
  47962. });
  47963. };
  47964. u.renderImageURL = function (_converse, url) {
  47965. var lurl = url.toLowerCase();
  47966. if (lurl.endsWith('jpg') || lurl.endsWith('jpeg') || lurl.endsWith('png') || lurl.endsWith('gif') || lurl.endsWith('svg')) {
  47967. var __ = _converse.__,
  47968. uri = new URI(url);
  47969. return tpl_image({
  47970. 'url': url,
  47971. 'label_download': __('Download image "%1$s"', decodeURI(uri.filename()))
  47972. });
  47973. }
  47974. return url;
  47975. };
  47976. u.renderMovieURL = function (_converse, url) {
  47977. if (url.endsWith('mp4') || url.endsWith('webm')) {
  47978. var __ = _converse.__,
  47979. uri = new URI(url);
  47980. return tpl_video({
  47981. 'url': url,
  47982. 'label_download': __('Download video file "%1$s"', decodeURI(uri.filename()))
  47983. });
  47984. }
  47985. return url;
  47986. };
  47987. u.renderAudioURL = function (_converse, url) {
  47988. if (url.endsWith('mp3') || url.endsWith('m4a') || url.endsWith('ogg')) {
  47989. var __ = _converse.__,
  47990. uri = new URI(url);
  47991. return tpl_audio({
  47992. 'url': url,
  47993. 'label_download': __('Download audio file "%1$s"', decodeURI(uri.filename()))
  47994. });
  47995. }
  47996. return url;
  47997. };
  47998. u.slideInAllElements = function (elements) {
  47999. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
  48000. return Promise.all(_.map(elements, _.partial(u.slideIn, _, duration)));
  48001. };
  48002. u.slideToggleElement = function (el, duration) {
  48003. if (_.includes(el.classList, 'collapsed') || _.includes(el.classList, 'hidden')) {
  48004. return u.slideOut(el, duration);
  48005. } else {
  48006. return u.slideIn(el, duration);
  48007. }
  48008. };
  48009. u.hasClass = function (className, el) {
  48010. return _.includes(el.classList, className);
  48011. };
  48012. u.slideOut = function (el) {
  48013. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
  48014. /* Shows/expands an element by sliding it out of itself
  48015. *
  48016. * Parameters:
  48017. * (HTMLElement) el - The HTML string
  48018. * (Number) duration - The duration amount in milliseconds
  48019. */
  48020. return new Promise(function (resolve, reject) {
  48021. if (_.isNil(el)) {
  48022. var err = "Undefined or null element passed into slideOut";
  48023. logger.warn(err);
  48024. reject(new Error(err));
  48025. return;
  48026. }
  48027. var marker = el.getAttribute('data-slider-marker');
  48028. if (marker) {
  48029. el.removeAttribute('data-slider-marker');
  48030. window.cancelAnimationFrame(marker);
  48031. }
  48032. var end_height = u.calculateElementHeight(el);
  48033. if (window.converse_disable_effects) {
  48034. // Effects are disabled (for tests)
  48035. el.style.height = end_height + 'px';
  48036. slideOutWrapup(el);
  48037. resolve();
  48038. return;
  48039. }
  48040. if (!u.hasClass('collapsed', el) && !u.hasClass('hidden', el)) {
  48041. resolve();
  48042. return;
  48043. }
  48044. var steps = duration / 17; // We assume 17ms per animation which is ~60FPS
  48045. var height = 0;
  48046. function draw() {
  48047. height += end_height / steps;
  48048. if (height < end_height) {
  48049. el.style.height = height + 'px';
  48050. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  48051. } else {
  48052. // We recalculate the height to work around an apparent
  48053. // browser bug where browsers don't know the correct
  48054. // offsetHeight beforehand.
  48055. el.removeAttribute('data-slider-marker');
  48056. el.style.height = u.calculateElementHeight(el) + 'px';
  48057. el.style.overflow = "";
  48058. el.style.height = "";
  48059. resolve();
  48060. }
  48061. }
  48062. el.style.height = '0';
  48063. el.style.overflow = 'hidden';
  48064. el.classList.remove('hidden');
  48065. el.classList.remove('collapsed');
  48066. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  48067. });
  48068. };
  48069. u.slideIn = function (el) {
  48070. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
  48071. /* Hides/collapses an element by sliding it into itself. */
  48072. return new Promise(function (resolve, reject) {
  48073. if (_.isNil(el)) {
  48074. var err = "Undefined or null element passed into slideIn";
  48075. logger.warn(err);
  48076. return reject(new Error(err));
  48077. } else if (_.includes(el.classList, 'collapsed')) {
  48078. return resolve(el);
  48079. } else if (window.converse_disable_effects) {
  48080. // Effects are disabled (for tests)
  48081. el.classList.add('collapsed');
  48082. el.style.height = "";
  48083. return resolve(el);
  48084. }
  48085. var marker = el.getAttribute('data-slider-marker');
  48086. if (marker) {
  48087. el.removeAttribute('data-slider-marker');
  48088. window.cancelAnimationFrame(marker);
  48089. }
  48090. var original_height = el.offsetHeight,
  48091. steps = duration / 17; // We assume 17ms per animation which is ~60FPS
  48092. var height = original_height;
  48093. el.style.overflow = 'hidden';
  48094. function draw() {
  48095. height -= original_height / steps;
  48096. if (height > 0) {
  48097. el.style.height = height + 'px';
  48098. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  48099. } else {
  48100. el.removeAttribute('data-slider-marker');
  48101. el.classList.add('collapsed');
  48102. el.style.height = "";
  48103. resolve(el);
  48104. }
  48105. }
  48106. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  48107. });
  48108. };
  48109. function afterAnimationEnds(el, callback) {
  48110. el.classList.remove('visible');
  48111. if (_.isFunction(callback)) {
  48112. callback();
  48113. }
  48114. }
  48115. u.fadeIn = function (el, callback) {
  48116. if (_.isNil(el)) {
  48117. logger.warn("Undefined or null element passed into fadeIn");
  48118. }
  48119. if (window.converse_disable_effects) {
  48120. el.classList.remove('hidden');
  48121. return afterAnimationEnds(el, callback);
  48122. }
  48123. if (_.includes(el.classList, 'hidden')) {
  48124. el.classList.add('visible');
  48125. el.classList.remove('hidden');
  48126. el.addEventListener("webkitAnimationEnd", _.partial(afterAnimationEnds, el, callback));
  48127. el.addEventListener("animationend", _.partial(afterAnimationEnds, el, callback));
  48128. el.addEventListener("oanimationend", _.partial(afterAnimationEnds, el, callback));
  48129. } else {
  48130. afterAnimationEnds(el, callback);
  48131. }
  48132. };
  48133. u.isValidJID = function (jid) {
  48134. return _.compact(jid.split('@')).length === 2 && !jid.startsWith('@') && !jid.endsWith('@');
  48135. };
  48136. u.isValidMUCJID = function (jid) {
  48137. return !jid.startsWith('@') && !jid.endsWith('@');
  48138. };
  48139. u.isSameBareJID = function (jid1, jid2) {
  48140. return Strophe.getBareJidFromJid(jid1).toLowerCase() === Strophe.getBareJidFromJid(jid2).toLowerCase();
  48141. };
  48142. u.getMostRecentMessage = function (model) {
  48143. var messages = model.messages.filter('message');
  48144. return messages[messages.length - 1];
  48145. };
  48146. u.isNewMessage = function (message) {
  48147. /* Given a stanza, determine whether it's a new
  48148. * message, i.e. not a MAM archived one.
  48149. */
  48150. if (_instanceof(message, Element)) {
  48151. return !(sizzle("result[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), message).length && sizzle("delay[xmlns=\"".concat(Strophe.NS.DELAY, "\"]"), message).length);
  48152. } else {
  48153. return !(message.get('is_delayed') && message.get('is_archived'));
  48154. }
  48155. };
  48156. u.isOnlyChatStateNotification = function (attrs) {
  48157. if (_instanceof(attrs, Backbone.Model)) {
  48158. attrs = attrs.attributes;
  48159. }
  48160. return attrs['chat_state'] && !attrs['oob_url'] && !attrs['file'] && !attrs['message'];
  48161. };
  48162. u.isHeadlineMessage = function (_converse, message) {
  48163. var from_jid = message.getAttribute('from');
  48164. if (message.getAttribute('type') === 'headline') {
  48165. return true;
  48166. }
  48167. var chatbox = _converse.chatboxes.get(Strophe.getBareJidFromJid(from_jid));
  48168. if (chatbox && chatbox.get('type') === 'chatroom') {
  48169. return false;
  48170. }
  48171. if (message.getAttribute('type') !== 'error' && !_.isNil(from_jid) && !_.includes(from_jid, '@')) {
  48172. // Some servers (I'm looking at you Prosody) don't set the message
  48173. // type to "headline" when sending server messages. For now we
  48174. // check if an @ signal is included, and if not, we assume it's
  48175. // a headline message.
  48176. return true;
  48177. }
  48178. return false;
  48179. };
  48180. u.merge = function merge(first, second) {
  48181. /* Merge the second object into the first one.
  48182. */
  48183. for (var k in second) {
  48184. if (_.isObject(first[k])) {
  48185. merge(first[k], second[k]);
  48186. } else {
  48187. first[k] = second[k];
  48188. }
  48189. }
  48190. };
  48191. u.applyUserSettings = function applyUserSettings(context, settings, user_settings) {
  48192. /* Configuration settings might be nested objects. We only want to
  48193. * add settings which are whitelisted.
  48194. */
  48195. for (var k in settings) {
  48196. if (_.isUndefined(user_settings[k])) {
  48197. continue;
  48198. }
  48199. if (_.isObject(settings[k]) && !_.isArray(settings[k])) {
  48200. applyUserSettings(context[k], settings[k], user_settings[k]);
  48201. } else {
  48202. context[k] = user_settings[k];
  48203. }
  48204. }
  48205. };
  48206. u.stringToNode = function (s) {
  48207. /* Converts an HTML string into a DOM Node.
  48208. * Expects that the HTML string has only one top-level element,
  48209. * i.e. not multiple ones.
  48210. *
  48211. * Parameters:
  48212. * (String) s - The HTML string
  48213. */
  48214. var div = document.createElement('div');
  48215. div.innerHTML = s;
  48216. return div.firstElementChild;
  48217. };
  48218. u.getOuterWidth = function (el) {
  48219. var include_margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  48220. var width = el.offsetWidth;
  48221. if (!include_margin) {
  48222. return width;
  48223. }
  48224. var style = window.getComputedStyle(el);
  48225. width += parseInt(style.marginLeft, 10) + parseInt(style.marginRight, 10);
  48226. return width;
  48227. };
  48228. u.stringToElement = function (s) {
  48229. /* Converts an HTML string into a DOM element.
  48230. * Expects that the HTML string has only one top-level element,
  48231. * i.e. not multiple ones.
  48232. *
  48233. * Parameters:
  48234. * (String) s - The HTML string
  48235. */
  48236. var div = document.createElement('div');
  48237. div.innerHTML = s;
  48238. return div.firstElementChild;
  48239. };
  48240. u.matchesSelector = function (el, selector) {
  48241. /* Checks whether the DOM element matches the given selector.
  48242. *
  48243. * Parameters:
  48244. * (DOMElement) el - The DOM element
  48245. * (String) selector - The selector
  48246. */
  48247. return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector);
  48248. };
  48249. u.queryChildren = function (el, selector) {
  48250. /* Returns a list of children of the DOM element that match the
  48251. * selector.
  48252. *
  48253. * Parameters:
  48254. * (DOMElement) el - the DOM element
  48255. * (String) selector - the selector they should be matched
  48256. * against.
  48257. */
  48258. return _.filter(el.childNodes, _.partial(u.matchesSelector, _, selector));
  48259. };
  48260. u.contains = function (attr, query) {
  48261. return function (item) {
  48262. if (_typeof(attr) === 'object') {
  48263. var value = false;
  48264. _.forEach(attr, function (a) {
  48265. value = value || _.includes(item.get(a).toLowerCase(), query.toLowerCase());
  48266. });
  48267. return value;
  48268. } else if (typeof attr === 'string') {
  48269. return _.includes(item.get(attr).toLowerCase(), query.toLowerCase());
  48270. } else {
  48271. throw new TypeError('contains: wrong attribute type. Must be string or array.');
  48272. }
  48273. };
  48274. };
  48275. u.isOfType = function (type, item) {
  48276. return item.get('type') == type;
  48277. };
  48278. u.isInstance = function (type, item) {
  48279. return _instanceof(item, type);
  48280. };
  48281. u.getAttribute = function (key, item) {
  48282. return item.get(key);
  48283. };
  48284. u.contains.not = function (attr, query) {
  48285. return function (item) {
  48286. return !u.contains(attr, query)(item);
  48287. };
  48288. };
  48289. u.rootContains = function (root, el) {
  48290. // The document element does not have the contains method in IE.
  48291. if (root === document && !root.contains) {
  48292. return document.head.contains(el) || document.body.contains(el);
  48293. }
  48294. return root.contains ? root.contains(el) : window.HTMLElement.prototype.contains.call(root, el);
  48295. };
  48296. u.createFragmentFromText = function (markup) {
  48297. /* Returns a DocumentFragment containing DOM nodes based on the
  48298. * passed-in markup text.
  48299. */
  48300. // http://stackoverflow.com/questions/9334645/create-node-from-markup-string
  48301. var frag = document.createDocumentFragment(),
  48302. tmp = document.createElement('body'),
  48303. child;
  48304. tmp.innerHTML = markup; // Append elements in a loop to a DocumentFragment, so that the
  48305. // browser does not re-render the document for each node.
  48306. while (child = tmp.firstChild) {
  48307. // eslint-disable-line no-cond-assign
  48308. frag.appendChild(child);
  48309. }
  48310. return frag;
  48311. };
  48312. u.isPersistableModel = function (model) {
  48313. return model.collection && model.collection.browserStorage;
  48314. };
  48315. u.getResolveablePromise = function () {
  48316. /* Returns a promise object on which `resolve` or `reject` can be
  48317. * called.
  48318. */
  48319. var wrapper = {};
  48320. var promise = new Promise(function (resolve, reject) {
  48321. wrapper.resolve = resolve;
  48322. wrapper.reject = reject;
  48323. });
  48324. _.assign(promise, wrapper);
  48325. return promise;
  48326. };
  48327. u.interpolate = function (string, o) {
  48328. return string.replace(/{{{([^{}]*)}}}/g, function (a, b) {
  48329. var r = o[b];
  48330. return typeof r === 'string' || typeof r === 'number' ? r : a;
  48331. });
  48332. };
  48333. u.onMultipleEvents = function () {
  48334. var events = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  48335. var callback = arguments.length > 1 ? arguments[1] : undefined;
  48336. /* Call the callback once all the events have been triggered
  48337. *
  48338. * Parameters:
  48339. * (Array) events: An array of objects, with keys `object` and
  48340. * `event`, representing the event name and the object it's
  48341. * triggered upon.
  48342. * (Function) callback: The function to call once all events have
  48343. * been triggered.
  48344. */
  48345. var triggered = [];
  48346. function handler(result) {
  48347. triggered.push(result);
  48348. if (events.length === triggered.length) {
  48349. callback(triggered);
  48350. triggered = [];
  48351. }
  48352. }
  48353. _.each(events, function (map) {
  48354. return map.object.on(map.event, handler);
  48355. });
  48356. };
  48357. u.safeSave = function (model, attributes) {
  48358. if (u.isPersistableModel(model)) {
  48359. model.save(attributes);
  48360. } else {
  48361. model.set(attributes);
  48362. }
  48363. };
  48364. u.siblingIndex = function (el) {
  48365. /* eslint-disable no-cond-assign */
  48366. for (var i = 0; el = el.previousElementSibling; i++) {
  48367. ;
  48368. }
  48369. return i;
  48370. };
  48371. u.getCurrentWord = function (input) {
  48372. var cursor = input.selectionEnd || undefined;
  48373. return _.last(input.value.slice(0, cursor).split(' '));
  48374. };
  48375. u.replaceCurrentWord = function (input, new_value) {
  48376. var cursor = input.selectionEnd || undefined,
  48377. current_word = _.last(input.value.slice(0, cursor).split(' ')),
  48378. value = input.value;
  48379. input.value = value.slice(0, cursor - current_word.length) + "".concat(new_value, " ") + value.slice(cursor);
  48380. input.selectionEnd = cursor - current_word.length + new_value.length + 1;
  48381. };
  48382. u.isVisible = function (el) {
  48383. if (u.hasClass('hidden', el)) {
  48384. return false;
  48385. } // XXX: Taken from jQuery's "visible" implementation
  48386. return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;
  48387. };
  48388. u.triggerEvent = function (el, name) {
  48389. var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "Event";
  48390. var bubbles = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  48391. var cancelable = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
  48392. var evt = document.createEvent(type);
  48393. evt.initEvent(name, bubbles, cancelable);
  48394. el.dispatchEvent(evt);
  48395. };
  48396. u.geoUriToHttp = function (text, geouri_replacement) {
  48397. var regex = /geo:([\-0-9.]+),([\-0-9.]+)(?:,([\-0-9.]+))?(?:\?(.*))?/g;
  48398. return text.replace(regex, geouri_replacement);
  48399. };
  48400. u.httpToGeoUri = function (text, _converse) {
  48401. var replacement = 'geo:$1,$2';
  48402. return text.replace(_converse.geouri_regex, replacement);
  48403. };
  48404. u.getSelectValues = function (select) {
  48405. var result = [];
  48406. var options = select && select.options;
  48407. for (var i = 0, iLen = options.length; i < iLen; i++) {
  48408. var opt = options[i];
  48409. if (opt.selected) {
  48410. result.push(opt.value || opt.text);
  48411. }
  48412. }
  48413. return result;
  48414. };
  48415. u.formatFingerprint = function (fp) {
  48416. fp = fp.replace(/^05/, '');
  48417. var arr = [];
  48418. for (var i = 1; i < 8; i++) {
  48419. var idx = i * 8 + i - 1;
  48420. fp = fp.slice(0, idx) + ' ' + fp.slice(idx);
  48421. }
  48422. return fp;
  48423. };
  48424. u.appendArrayBuffer = function (buffer1, buffer2) {
  48425. var tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);
  48426. tmp.set(new Uint8Array(buffer1), 0);
  48427. tmp.set(new Uint8Array(buffer2), buffer1.byteLength);
  48428. return tmp.buffer;
  48429. };
  48430. u.arrayBufferToHex = function (ab) {
  48431. // https://stackoverflow.com/questions/40031688/javascript-arraybuffer-to-hex#40031979
  48432. return Array.prototype.map.call(new Uint8Array(ab), function (x) {
  48433. return ('00' + x.toString(16)).slice(-2);
  48434. }).join('');
  48435. };
  48436. u.arrayBufferToString = function (ab) {
  48437. return new TextDecoder("utf-8").decode(ab);
  48438. };
  48439. u.stringToArrayBuffer = function (string) {
  48440. var bytes = new TextEncoder("utf-8").encode(string);
  48441. return bytes.buffer;
  48442. };
  48443. u.arrayBufferToBase64 = function (ab) {
  48444. return btoa(new Uint8Array(ab).reduce(function (data, byte) {
  48445. return data + String.fromCharCode(byte);
  48446. }, ''));
  48447. };
  48448. u.base64ToArrayBuffer = function (b64) {
  48449. var binary_string = window.atob(b64),
  48450. len = binary_string.length,
  48451. bytes = new Uint8Array(len);
  48452. for (var i = 0; i < len; i++) {
  48453. bytes[i] = binary_string.charCodeAt(i);
  48454. }
  48455. return bytes.buffer;
  48456. };
  48457. u.getRandomInt = function (max) {
  48458. return Math.floor(Math.random() * Math.floor(max));
  48459. };
  48460. u.putCurserAtEnd = function (textarea) {
  48461. if (textarea !== document.activeElement) {
  48462. textarea.focus();
  48463. } // Double the length because Opera is inconsistent about whether a carriage return is one character or two.
  48464. var len = textarea.value.length * 2; // Timeout seems to be required for Blink
  48465. setTimeout(function () {
  48466. return textarea.setSelectionRange(len, len);
  48467. }, 1); // Scroll to the bottom, in case we're in a tall textarea
  48468. // (Necessary for Firefox and Chrome)
  48469. this.scrollTop = 999999;
  48470. };
  48471. u.getUniqueId = function () {
  48472. return 'xxxxxxxx-xxxx'.replace(/[x]/g, function (c) {
  48473. var r = Math.random() * 16 | 0,
  48474. v = c === 'x' ? r : r & 0x3 | 0x8;
  48475. return v.toString(16);
  48476. });
  48477. };
  48478. return u;
  48479. });
  48480. /***/ }),
  48481. /***/ "./src/utils/emoji.js":
  48482. /*!****************************!*\
  48483. !*** ./src/utils/emoji.js ***!
  48484. \****************************/
  48485. /*! no static exports found */
  48486. /***/ (function(module, exports, __webpack_require__) {
  48487. "use strict";
  48488. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  48489. (function (root, factory) {
  48490. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! utils/core */ "./src/utils/core.js"), __webpack_require__(/*! twemoji */ "./node_modules/twemoji/2/esm.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  48491. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  48492. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  48493. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  48494. })(void 0, function (_, u, twemoji) {
  48495. "use strict";
  48496. var emoji_list = {
  48497. ":kiss_mm:": {
  48498. "uc_base": "1f468-2764-1f48b-1f468",
  48499. "uc_output": "1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",
  48500. "uc_match": "1f468-2764-fe0f-1f48b-1f468",
  48501. "uc_greedy": "1f468-2764-1f48b-1f468",
  48502. "shortnames": [":couplekiss_mm:"],
  48503. "category": "people"
  48504. },
  48505. ":kiss_woman_man:": {
  48506. "uc_base": "1f469-2764-1f48b-1f468",
  48507. "uc_output": "1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",
  48508. "uc_match": "1f469-2764-fe0f-1f48b-1f468",
  48509. "uc_greedy": "1f469-2764-1f48b-1f468",
  48510. "shortnames": [],
  48511. "category": "people"
  48512. },
  48513. ":kiss_ww:": {
  48514. "uc_base": "1f469-2764-1f48b-1f469",
  48515. "uc_output": "1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",
  48516. "uc_match": "1f469-2764-fe0f-1f48b-1f469",
  48517. "uc_greedy": "1f469-2764-1f48b-1f469",
  48518. "shortnames": [":couplekiss_ww:"],
  48519. "category": "people"
  48520. },
  48521. ":england:": {
  48522. "uc_base": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  48523. "uc_output": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  48524. "uc_match": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  48525. "uc_greedy": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  48526. "shortnames": [],
  48527. "category": "flags"
  48528. },
  48529. ":scotland:": {
  48530. "uc_base": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  48531. "uc_output": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  48532. "uc_match": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  48533. "uc_greedy": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  48534. "shortnames": [],
  48535. "category": "flags"
  48536. },
  48537. ":wales:": {
  48538. "uc_base": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  48539. "uc_output": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  48540. "uc_match": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  48541. "uc_greedy": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  48542. "shortnames": [],
  48543. "category": "flags"
  48544. },
  48545. ":family_mmbb:": {
  48546. "uc_base": "1f468-1f468-1f466-1f466",
  48547. "uc_output": "1f468-200d-1f468-200d-1f466-200d-1f466",
  48548. "uc_match": "1f468-1f468-1f466-1f466",
  48549. "uc_greedy": "1f468-1f468-1f466-1f466",
  48550. "shortnames": [],
  48551. "category": "people"
  48552. },
  48553. ":family_mmgb:": {
  48554. "uc_base": "1f468-1f468-1f467-1f466",
  48555. "uc_output": "1f468-200d-1f468-200d-1f467-200d-1f466",
  48556. "uc_match": "1f468-1f468-1f467-1f466",
  48557. "uc_greedy": "1f468-1f468-1f467-1f466",
  48558. "shortnames": [],
  48559. "category": "people"
  48560. },
  48561. ":family_mmgg:": {
  48562. "uc_base": "1f468-1f468-1f467-1f467",
  48563. "uc_output": "1f468-200d-1f468-200d-1f467-200d-1f467",
  48564. "uc_match": "1f468-1f468-1f467-1f467",
  48565. "uc_greedy": "1f468-1f468-1f467-1f467",
  48566. "shortnames": [],
  48567. "category": "people"
  48568. },
  48569. ":family_mwbb:": {
  48570. "uc_base": "1f468-1f469-1f466-1f466",
  48571. "uc_output": "1f468-200d-1f469-200d-1f466-200d-1f466",
  48572. "uc_match": "1f468-1f469-1f466-1f466",
  48573. "uc_greedy": "1f468-1f469-1f466-1f466",
  48574. "shortnames": [],
  48575. "category": "people"
  48576. },
  48577. ":family_mwgb:": {
  48578. "uc_base": "1f468-1f469-1f467-1f466",
  48579. "uc_output": "1f468-200d-1f469-200d-1f467-200d-1f466",
  48580. "uc_match": "1f468-1f469-1f467-1f466",
  48581. "uc_greedy": "1f468-1f469-1f467-1f466",
  48582. "shortnames": [],
  48583. "category": "people"
  48584. },
  48585. ":family_mwgg:": {
  48586. "uc_base": "1f468-1f469-1f467-1f467",
  48587. "uc_output": "1f468-200d-1f469-200d-1f467-200d-1f467",
  48588. "uc_match": "1f468-1f469-1f467-1f467",
  48589. "uc_greedy": "1f468-1f469-1f467-1f467",
  48590. "shortnames": [],
  48591. "category": "people"
  48592. },
  48593. ":family_wwbb:": {
  48594. "uc_base": "1f469-1f469-1f466-1f466",
  48595. "uc_output": "1f469-200d-1f469-200d-1f466-200d-1f466",
  48596. "uc_match": "1f469-1f469-1f466-1f466",
  48597. "uc_greedy": "1f469-1f469-1f466-1f466",
  48598. "shortnames": [],
  48599. "category": "people"
  48600. },
  48601. ":family_wwgb:": {
  48602. "uc_base": "1f469-1f469-1f467-1f466",
  48603. "uc_output": "1f469-200d-1f469-200d-1f467-200d-1f466",
  48604. "uc_match": "1f469-1f469-1f467-1f466",
  48605. "uc_greedy": "1f469-1f469-1f467-1f466",
  48606. "shortnames": [],
  48607. "category": "people"
  48608. },
  48609. ":family_wwgg:": {
  48610. "uc_base": "1f469-1f469-1f467-1f467",
  48611. "uc_output": "1f469-200d-1f469-200d-1f467-200d-1f467",
  48612. "uc_match": "1f469-1f469-1f467-1f467",
  48613. "uc_greedy": "1f469-1f469-1f467-1f467",
  48614. "shortnames": [],
  48615. "category": "people"
  48616. },
  48617. ":couple_mm:": {
  48618. "uc_base": "1f468-2764-1f468",
  48619. "uc_output": "1f468-200d-2764-fe0f-200d-1f468",
  48620. "uc_match": "1f468-2764-fe0f-1f468",
  48621. "uc_greedy": "1f468-2764-1f468",
  48622. "shortnames": [":couple_with_heart_mm:"],
  48623. "category": "people"
  48624. },
  48625. ":couple_with_heart_woman_man:": {
  48626. "uc_base": "1f469-2764-1f468",
  48627. "uc_output": "1f469-200d-2764-fe0f-200d-1f468",
  48628. "uc_match": "1f469-2764-fe0f-1f468",
  48629. "uc_greedy": "1f469-2764-1f468",
  48630. "shortnames": [],
  48631. "category": "people"
  48632. },
  48633. ":couple_ww:": {
  48634. "uc_base": "1f469-2764-1f469",
  48635. "uc_output": "1f469-200d-2764-fe0f-200d-1f469",
  48636. "uc_match": "1f469-2764-fe0f-1f469",
  48637. "uc_greedy": "1f469-2764-1f469",
  48638. "shortnames": [":couple_with_heart_ww:"],
  48639. "category": "people"
  48640. },
  48641. ":family_man_boy_boy:": {
  48642. "uc_base": "1f468-1f466-1f466",
  48643. "uc_output": "1f468-200d-1f466-200d-1f466",
  48644. "uc_match": "1f468-1f466-1f466",
  48645. "uc_greedy": "1f468-1f466-1f466",
  48646. "shortnames": [],
  48647. "category": "people"
  48648. },
  48649. ":family_man_girl_boy:": {
  48650. "uc_base": "1f468-1f467-1f466",
  48651. "uc_output": "1f468-200d-1f467-200d-1f466",
  48652. "uc_match": "1f468-1f467-1f466",
  48653. "uc_greedy": "1f468-1f467-1f466",
  48654. "shortnames": [],
  48655. "category": "people"
  48656. },
  48657. ":family_man_girl_girl:": {
  48658. "uc_base": "1f468-1f467-1f467",
  48659. "uc_output": "1f468-200d-1f467-200d-1f467",
  48660. "uc_match": "1f468-1f467-1f467",
  48661. "uc_greedy": "1f468-1f467-1f467",
  48662. "shortnames": [],
  48663. "category": "people"
  48664. },
  48665. ":family_man_woman_boy:": {
  48666. "uc_base": "1f468-1f469-1f466",
  48667. "uc_output": "1f468-200d-1f469-200d-1f466",
  48668. "uc_match": "1f468-1f469-1f466",
  48669. "uc_greedy": "1f468-1f469-1f466",
  48670. "shortnames": [],
  48671. "category": "people"
  48672. },
  48673. ":family_mmb:": {
  48674. "uc_base": "1f468-1f468-1f466",
  48675. "uc_output": "1f468-200d-1f468-200d-1f466",
  48676. "uc_match": "1f468-1f468-1f466",
  48677. "uc_greedy": "1f468-1f468-1f466",
  48678. "shortnames": [],
  48679. "category": "people"
  48680. },
  48681. ":family_mmg:": {
  48682. "uc_base": "1f468-1f468-1f467",
  48683. "uc_output": "1f468-200d-1f468-200d-1f467",
  48684. "uc_match": "1f468-1f468-1f467",
  48685. "uc_greedy": "1f468-1f468-1f467",
  48686. "shortnames": [],
  48687. "category": "people"
  48688. },
  48689. ":family_mwg:": {
  48690. "uc_base": "1f468-1f469-1f467",
  48691. "uc_output": "1f468-200d-1f469-200d-1f467",
  48692. "uc_match": "1f468-1f469-1f467",
  48693. "uc_greedy": "1f468-1f469-1f467",
  48694. "shortnames": [],
  48695. "category": "people"
  48696. },
  48697. ":family_woman_boy_boy:": {
  48698. "uc_base": "1f469-1f466-1f466",
  48699. "uc_output": "1f469-200d-1f466-200d-1f466",
  48700. "uc_match": "1f469-1f466-1f466",
  48701. "uc_greedy": "1f469-1f466-1f466",
  48702. "shortnames": [],
  48703. "category": "people"
  48704. },
  48705. ":family_woman_girl_boy:": {
  48706. "uc_base": "1f469-1f467-1f466",
  48707. "uc_output": "1f469-200d-1f467-200d-1f466",
  48708. "uc_match": "1f469-1f467-1f466",
  48709. "uc_greedy": "1f469-1f467-1f466",
  48710. "shortnames": [],
  48711. "category": "people"
  48712. },
  48713. ":family_woman_girl_girl:": {
  48714. "uc_base": "1f469-1f467-1f467",
  48715. "uc_output": "1f469-200d-1f467-200d-1f467",
  48716. "uc_match": "1f469-1f467-1f467",
  48717. "uc_greedy": "1f469-1f467-1f467",
  48718. "shortnames": [],
  48719. "category": "people"
  48720. },
  48721. ":family_wwb:": {
  48722. "uc_base": "1f469-1f469-1f466",
  48723. "uc_output": "1f469-200d-1f469-200d-1f466",
  48724. "uc_match": "1f469-1f469-1f466",
  48725. "uc_greedy": "1f469-1f469-1f466",
  48726. "shortnames": [],
  48727. "category": "people"
  48728. },
  48729. ":family_wwg:": {
  48730. "uc_base": "1f469-1f469-1f467",
  48731. "uc_output": "1f469-200d-1f469-200d-1f467",
  48732. "uc_match": "1f469-1f469-1f467",
  48733. "uc_greedy": "1f469-1f469-1f467",
  48734. "shortnames": [],
  48735. "category": "people"
  48736. },
  48737. ":blond-haired_man_tone1:": {
  48738. "uc_base": "1f471-1f3fb-2642",
  48739. "uc_output": "1f471-1f3fb-200d-2642-fe0f",
  48740. "uc_match": "1f471-1f3fb-2642-fe0f",
  48741. "uc_greedy": "1f471-1f3fb-2642",
  48742. "shortnames": [":blond-haired_man_light_skin_tone:"],
  48743. "category": "people"
  48744. },
  48745. ":blond-haired_man_tone2:": {
  48746. "uc_base": "1f471-1f3fc-2642",
  48747. "uc_output": "1f471-1f3fc-200d-2642-fe0f",
  48748. "uc_match": "1f471-1f3fc-2642-fe0f",
  48749. "uc_greedy": "1f471-1f3fc-2642",
  48750. "shortnames": [":blond-haired_man_medium_light_skin_tone:"],
  48751. "category": "people"
  48752. },
  48753. ":blond-haired_man_tone3:": {
  48754. "uc_base": "1f471-1f3fd-2642",
  48755. "uc_output": "1f471-1f3fd-200d-2642-fe0f",
  48756. "uc_match": "1f471-1f3fd-2642-fe0f",
  48757. "uc_greedy": "1f471-1f3fd-2642",
  48758. "shortnames": [":blond-haired_man_medium_skin_tone:"],
  48759. "category": "people"
  48760. },
  48761. ":blond-haired_man_tone4:": {
  48762. "uc_base": "1f471-1f3fe-2642",
  48763. "uc_output": "1f471-1f3fe-200d-2642-fe0f",
  48764. "uc_match": "1f471-1f3fe-2642-fe0f",
  48765. "uc_greedy": "1f471-1f3fe-2642",
  48766. "shortnames": [":blond-haired_man_medium_dark_skin_tone:"],
  48767. "category": "people"
  48768. },
  48769. ":blond-haired_man_tone5:": {
  48770. "uc_base": "1f471-1f3ff-2642",
  48771. "uc_output": "1f471-1f3ff-200d-2642-fe0f",
  48772. "uc_match": "1f471-1f3ff-2642-fe0f",
  48773. "uc_greedy": "1f471-1f3ff-2642",
  48774. "shortnames": [":blond-haired_man_dark_skin_tone:"],
  48775. "category": "people"
  48776. },
  48777. ":blond-haired_woman_tone1:": {
  48778. "uc_base": "1f471-1f3fb-2640",
  48779. "uc_output": "1f471-1f3fb-200d-2640-fe0f",
  48780. "uc_match": "1f471-1f3fb-2640-fe0f",
  48781. "uc_greedy": "1f471-1f3fb-2640",
  48782. "shortnames": [":blond-haired_woman_light_skin_tone:"],
  48783. "category": "people"
  48784. },
  48785. ":blond-haired_woman_tone2:": {
  48786. "uc_base": "1f471-1f3fc-2640",
  48787. "uc_output": "1f471-1f3fc-200d-2640-fe0f",
  48788. "uc_match": "1f471-1f3fc-2640-fe0f",
  48789. "uc_greedy": "1f471-1f3fc-2640",
  48790. "shortnames": [":blond-haired_woman_medium_light_skin_tone:"],
  48791. "category": "people"
  48792. },
  48793. ":blond-haired_woman_tone3:": {
  48794. "uc_base": "1f471-1f3fd-2640",
  48795. "uc_output": "1f471-1f3fd-200d-2640-fe0f",
  48796. "uc_match": "1f471-1f3fd-2640-fe0f",
  48797. "uc_greedy": "1f471-1f3fd-2640",
  48798. "shortnames": [":blond-haired_woman_medium_skin_tone:"],
  48799. "category": "people"
  48800. },
  48801. ":blond-haired_woman_tone4:": {
  48802. "uc_base": "1f471-1f3fe-2640",
  48803. "uc_output": "1f471-1f3fe-200d-2640-fe0f",
  48804. "uc_match": "1f471-1f3fe-2640-fe0f",
  48805. "uc_greedy": "1f471-1f3fe-2640",
  48806. "shortnames": [":blond-haired_woman_medium_dark_skin_tone:"],
  48807. "category": "people"
  48808. },
  48809. ":blond-haired_woman_tone5:": {
  48810. "uc_base": "1f471-1f3ff-2640",
  48811. "uc_output": "1f471-1f3ff-200d-2640-fe0f",
  48812. "uc_match": "1f471-1f3ff-2640-fe0f",
  48813. "uc_greedy": "1f471-1f3ff-2640",
  48814. "shortnames": [":blond-haired_woman_dark_skin_tone:"],
  48815. "category": "people"
  48816. },
  48817. ":eye_in_speech_bubble:": {
  48818. "uc_base": "1f441-1f5e8",
  48819. "uc_output": "1f441-fe0f-200d-1f5e8-fe0f",
  48820. "uc_match": "1f441-fe0f-200d-1f5e8",
  48821. "uc_greedy": "1f441-1f5e8",
  48822. "shortnames": [],
  48823. "category": "symbols"
  48824. },
  48825. ":man_biking_tone1:": {
  48826. "uc_base": "1f6b4-1f3fb-2642",
  48827. "uc_output": "1f6b4-1f3fb-200d-2642-fe0f",
  48828. "uc_match": "1f6b4-1f3fb-2642-fe0f",
  48829. "uc_greedy": "1f6b4-1f3fb-2642",
  48830. "shortnames": [":man_biking_light_skin_tone:"],
  48831. "category": "activity"
  48832. },
  48833. ":man_biking_tone2:": {
  48834. "uc_base": "1f6b4-1f3fc-2642",
  48835. "uc_output": "1f6b4-1f3fc-200d-2642-fe0f",
  48836. "uc_match": "1f6b4-1f3fc-2642-fe0f",
  48837. "uc_greedy": "1f6b4-1f3fc-2642",
  48838. "shortnames": [":man_biking_medium_light_skin_tone:"],
  48839. "category": "activity"
  48840. },
  48841. ":man_biking_tone3:": {
  48842. "uc_base": "1f6b4-1f3fd-2642",
  48843. "uc_output": "1f6b4-1f3fd-200d-2642-fe0f",
  48844. "uc_match": "1f6b4-1f3fd-2642-fe0f",
  48845. "uc_greedy": "1f6b4-1f3fd-2642",
  48846. "shortnames": [":man_biking_medium_skin_tone:"],
  48847. "category": "activity"
  48848. },
  48849. ":man_biking_tone4:": {
  48850. "uc_base": "1f6b4-1f3fe-2642",
  48851. "uc_output": "1f6b4-1f3fe-200d-2642-fe0f",
  48852. "uc_match": "1f6b4-1f3fe-2642-fe0f",
  48853. "uc_greedy": "1f6b4-1f3fe-2642",
  48854. "shortnames": [":man_biking_medium_dark_skin_tone:"],
  48855. "category": "activity"
  48856. },
  48857. ":man_biking_tone5:": {
  48858. "uc_base": "1f6b4-1f3ff-2642",
  48859. "uc_output": "1f6b4-1f3ff-200d-2642-fe0f",
  48860. "uc_match": "1f6b4-1f3ff-2642-fe0f",
  48861. "uc_greedy": "1f6b4-1f3ff-2642",
  48862. "shortnames": [":man_biking_dark_skin_tone:"],
  48863. "category": "activity"
  48864. },
  48865. ":man_bowing_tone1:": {
  48866. "uc_base": "1f647-1f3fb-2642",
  48867. "uc_output": "1f647-1f3fb-200d-2642-fe0f",
  48868. "uc_match": "1f647-1f3fb-2642-fe0f",
  48869. "uc_greedy": "1f647-1f3fb-2642",
  48870. "shortnames": [":man_bowing_light_skin_tone:"],
  48871. "category": "people"
  48872. },
  48873. ":man_bowing_tone2:": {
  48874. "uc_base": "1f647-1f3fc-2642",
  48875. "uc_output": "1f647-1f3fc-200d-2642-fe0f",
  48876. "uc_match": "1f647-1f3fc-2642-fe0f",
  48877. "uc_greedy": "1f647-1f3fc-2642",
  48878. "shortnames": [":man_bowing_medium_light_skin_tone:"],
  48879. "category": "people"
  48880. },
  48881. ":man_bowing_tone3:": {
  48882. "uc_base": "1f647-1f3fd-2642",
  48883. "uc_output": "1f647-1f3fd-200d-2642-fe0f",
  48884. "uc_match": "1f647-1f3fd-2642-fe0f",
  48885. "uc_greedy": "1f647-1f3fd-2642",
  48886. "shortnames": [":man_bowing_medium_skin_tone:"],
  48887. "category": "people"
  48888. },
  48889. ":man_bowing_tone4:": {
  48890. "uc_base": "1f647-1f3fe-2642",
  48891. "uc_output": "1f647-1f3fe-200d-2642-fe0f",
  48892. "uc_match": "1f647-1f3fe-2642-fe0f",
  48893. "uc_greedy": "1f647-1f3fe-2642",
  48894. "shortnames": [":man_bowing_medium_dark_skin_tone:"],
  48895. "category": "people"
  48896. },
  48897. ":man_bowing_tone5:": {
  48898. "uc_base": "1f647-1f3ff-2642",
  48899. "uc_output": "1f647-1f3ff-200d-2642-fe0f",
  48900. "uc_match": "1f647-1f3ff-2642-fe0f",
  48901. "uc_greedy": "1f647-1f3ff-2642",
  48902. "shortnames": [":man_bowing_dark_skin_tone:"],
  48903. "category": "people"
  48904. },
  48905. ":man_cartwheeling_tone1:": {
  48906. "uc_base": "1f938-1f3fb-2642",
  48907. "uc_output": "1f938-1f3fb-200d-2642-fe0f",
  48908. "uc_match": "1f938-1f3fb-2642-fe0f",
  48909. "uc_greedy": "1f938-1f3fb-2642",
  48910. "shortnames": [":man_cartwheeling_light_skin_tone:"],
  48911. "category": "activity"
  48912. },
  48913. ":man_cartwheeling_tone2:": {
  48914. "uc_base": "1f938-1f3fc-2642",
  48915. "uc_output": "1f938-1f3fc-200d-2642-fe0f",
  48916. "uc_match": "1f938-1f3fc-2642-fe0f",
  48917. "uc_greedy": "1f938-1f3fc-2642",
  48918. "shortnames": [":man_cartwheeling_medium_light_skin_tone:"],
  48919. "category": "activity"
  48920. },
  48921. ":man_cartwheeling_tone3:": {
  48922. "uc_base": "1f938-1f3fd-2642",
  48923. "uc_output": "1f938-1f3fd-200d-2642-fe0f",
  48924. "uc_match": "1f938-1f3fd-2642-fe0f",
  48925. "uc_greedy": "1f938-1f3fd-2642",
  48926. "shortnames": [":man_cartwheeling_medium_skin_tone:"],
  48927. "category": "activity"
  48928. },
  48929. ":man_cartwheeling_tone4:": {
  48930. "uc_base": "1f938-1f3fe-2642",
  48931. "uc_output": "1f938-1f3fe-200d-2642-fe0f",
  48932. "uc_match": "1f938-1f3fe-2642-fe0f",
  48933. "uc_greedy": "1f938-1f3fe-2642",
  48934. "shortnames": [":man_cartwheeling_medium_dark_skin_tone:"],
  48935. "category": "activity"
  48936. },
  48937. ":man_cartwheeling_tone5:": {
  48938. "uc_base": "1f938-1f3ff-2642",
  48939. "uc_output": "1f938-1f3ff-200d-2642-fe0f",
  48940. "uc_match": "1f938-1f3ff-2642-fe0f",
  48941. "uc_greedy": "1f938-1f3ff-2642",
  48942. "shortnames": [":man_cartwheeling_dark_skin_tone:"],
  48943. "category": "activity"
  48944. },
  48945. ":man_climbing_tone1:": {
  48946. "uc_base": "1f9d7-1f3fb-2642",
  48947. "uc_output": "1f9d7-1f3fb-200d-2642-fe0f",
  48948. "uc_match": "1f9d7-1f3fb-2642-fe0f",
  48949. "uc_greedy": "1f9d7-1f3fb-2642",
  48950. "shortnames": [":man_climbing_light_skin_tone:"],
  48951. "category": "activity"
  48952. },
  48953. ":man_climbing_tone2:": {
  48954. "uc_base": "1f9d7-1f3fc-2642",
  48955. "uc_output": "1f9d7-1f3fc-200d-2642-fe0f",
  48956. "uc_match": "1f9d7-1f3fc-2642-fe0f",
  48957. "uc_greedy": "1f9d7-1f3fc-2642",
  48958. "shortnames": [":man_climbing_medium_light_skin_tone:"],
  48959. "category": "activity"
  48960. },
  48961. ":man_climbing_tone3:": {
  48962. "uc_base": "1f9d7-1f3fd-2642",
  48963. "uc_output": "1f9d7-1f3fd-200d-2642-fe0f",
  48964. "uc_match": "1f9d7-1f3fd-2642-fe0f",
  48965. "uc_greedy": "1f9d7-1f3fd-2642",
  48966. "shortnames": [":man_climbing_medium_skin_tone:"],
  48967. "category": "activity"
  48968. },
  48969. ":man_climbing_tone4:": {
  48970. "uc_base": "1f9d7-1f3fe-2642",
  48971. "uc_output": "1f9d7-1f3fe-200d-2642-fe0f",
  48972. "uc_match": "1f9d7-1f3fe-2642-fe0f",
  48973. "uc_greedy": "1f9d7-1f3fe-2642",
  48974. "shortnames": [":man_climbing_medium_dark_skin_tone:"],
  48975. "category": "activity"
  48976. },
  48977. ":man_climbing_tone5:": {
  48978. "uc_base": "1f9d7-1f3ff-2642",
  48979. "uc_output": "1f9d7-1f3ff-200d-2642-fe0f",
  48980. "uc_match": "1f9d7-1f3ff-2642-fe0f",
  48981. "uc_greedy": "1f9d7-1f3ff-2642",
  48982. "shortnames": [":man_climbing_dark_skin_tone:"],
  48983. "category": "activity"
  48984. },
  48985. ":man_construction_worker_tone1:": {
  48986. "uc_base": "1f477-1f3fb-2642",
  48987. "uc_output": "1f477-1f3fb-200d-2642-fe0f",
  48988. "uc_match": "1f477-1f3fb-2642-fe0f",
  48989. "uc_greedy": "1f477-1f3fb-2642",
  48990. "shortnames": [":man_construction_worker_light_skin_tone:"],
  48991. "category": "people"
  48992. },
  48993. ":man_construction_worker_tone2:": {
  48994. "uc_base": "1f477-1f3fc-2642",
  48995. "uc_output": "1f477-1f3fc-200d-2642-fe0f",
  48996. "uc_match": "1f477-1f3fc-2642-fe0f",
  48997. "uc_greedy": "1f477-1f3fc-2642",
  48998. "shortnames": [":man_construction_worker_medium_light_skin_tone:"],
  48999. "category": "people"
  49000. },
  49001. ":man_construction_worker_tone3:": {
  49002. "uc_base": "1f477-1f3fd-2642",
  49003. "uc_output": "1f477-1f3fd-200d-2642-fe0f",
  49004. "uc_match": "1f477-1f3fd-2642-fe0f",
  49005. "uc_greedy": "1f477-1f3fd-2642",
  49006. "shortnames": [":man_construction_worker_medium_skin_tone:"],
  49007. "category": "people"
  49008. },
  49009. ":man_construction_worker_tone4:": {
  49010. "uc_base": "1f477-1f3fe-2642",
  49011. "uc_output": "1f477-1f3fe-200d-2642-fe0f",
  49012. "uc_match": "1f477-1f3fe-2642-fe0f",
  49013. "uc_greedy": "1f477-1f3fe-2642",
  49014. "shortnames": [":man_construction_worker_medium_dark_skin_tone:"],
  49015. "category": "people"
  49016. },
  49017. ":man_construction_worker_tone5:": {
  49018. "uc_base": "1f477-1f3ff-2642",
  49019. "uc_output": "1f477-1f3ff-200d-2642-fe0f",
  49020. "uc_match": "1f477-1f3ff-2642-fe0f",
  49021. "uc_greedy": "1f477-1f3ff-2642",
  49022. "shortnames": [":man_construction_worker_dark_skin_tone:"],
  49023. "category": "people"
  49024. },
  49025. ":man_detective_tone1:": {
  49026. "uc_base": "1f575-1f3fb-2642",
  49027. "uc_output": "1f575-1f3fb-200d-2642-fe0f",
  49028. "uc_match": "1f575-fe0f-1f3fb-2642-fe0f",
  49029. "uc_greedy": "1f575-1f3fb-2642",
  49030. "shortnames": [":man_detective_light_skin_tone:"],
  49031. "category": "people"
  49032. },
  49033. ":man_detective_tone2:": {
  49034. "uc_base": "1f575-1f3fc-2642",
  49035. "uc_output": "1f575-1f3fc-200d-2642-fe0f",
  49036. "uc_match": "1f575-fe0f-1f3fc-2642-fe0f",
  49037. "uc_greedy": "1f575-1f3fc-2642",
  49038. "shortnames": [":man_detective_medium_light_skin_tone:"],
  49039. "category": "people"
  49040. },
  49041. ":man_detective_tone3:": {
  49042. "uc_base": "1f575-1f3fd-2642",
  49043. "uc_output": "1f575-1f3fd-200d-2642-fe0f",
  49044. "uc_match": "1f575-fe0f-1f3fd-2642-fe0f",
  49045. "uc_greedy": "1f575-1f3fd-2642",
  49046. "shortnames": [":man_detective_medium_skin_tone:"],
  49047. "category": "people"
  49048. },
  49049. ":man_detective_tone4:": {
  49050. "uc_base": "1f575-1f3fe-2642",
  49051. "uc_output": "1f575-1f3fe-200d-2642-fe0f",
  49052. "uc_match": "1f575-fe0f-1f3fe-2642-fe0f",
  49053. "uc_greedy": "1f575-1f3fe-2642",
  49054. "shortnames": [":man_detective_medium_dark_skin_tone:"],
  49055. "category": "people"
  49056. },
  49057. ":man_detective_tone5:": {
  49058. "uc_base": "1f575-1f3ff-2642",
  49059. "uc_output": "1f575-1f3ff-200d-2642-fe0f",
  49060. "uc_match": "1f575-fe0f-1f3ff-2642-fe0f",
  49061. "uc_greedy": "1f575-1f3ff-2642",
  49062. "shortnames": [":man_detective_dark_skin_tone:"],
  49063. "category": "people"
  49064. },
  49065. ":man_elf_tone1:": {
  49066. "uc_base": "1f9dd-1f3fb-2642",
  49067. "uc_output": "1f9dd-1f3fb-200d-2642-fe0f",
  49068. "uc_match": "1f9dd-1f3fb-2642-fe0f",
  49069. "uc_greedy": "1f9dd-1f3fb-2642",
  49070. "shortnames": [":man_elf_light_skin_tone:"],
  49071. "category": "people"
  49072. },
  49073. ":man_elf_tone2:": {
  49074. "uc_base": "1f9dd-1f3fc-2642",
  49075. "uc_output": "1f9dd-1f3fc-200d-2642-fe0f",
  49076. "uc_match": "1f9dd-1f3fc-2642-fe0f",
  49077. "uc_greedy": "1f9dd-1f3fc-2642",
  49078. "shortnames": [":man_elf_medium_light_skin_tone:"],
  49079. "category": "people"
  49080. },
  49081. ":man_elf_tone3:": {
  49082. "uc_base": "1f9dd-1f3fd-2642",
  49083. "uc_output": "1f9dd-1f3fd-200d-2642-fe0f",
  49084. "uc_match": "1f9dd-1f3fd-2642-fe0f",
  49085. "uc_greedy": "1f9dd-1f3fd-2642",
  49086. "shortnames": [":man_elf_medium_skin_tone:"],
  49087. "category": "people"
  49088. },
  49089. ":man_elf_tone4:": {
  49090. "uc_base": "1f9dd-1f3fe-2642",
  49091. "uc_output": "1f9dd-1f3fe-200d-2642-fe0f",
  49092. "uc_match": "1f9dd-1f3fe-2642-fe0f",
  49093. "uc_greedy": "1f9dd-1f3fe-2642",
  49094. "shortnames": [":man_elf_medium_dark_skin_tone:"],
  49095. "category": "people"
  49096. },
  49097. ":man_elf_tone5:": {
  49098. "uc_base": "1f9dd-1f3ff-2642",
  49099. "uc_output": "1f9dd-1f3ff-200d-2642-fe0f",
  49100. "uc_match": "1f9dd-1f3ff-2642-fe0f",
  49101. "uc_greedy": "1f9dd-1f3ff-2642",
  49102. "shortnames": [":man_elf_dark_skin_tone:"],
  49103. "category": "people"
  49104. },
  49105. ":man_facepalming_tone1:": {
  49106. "uc_base": "1f926-1f3fb-2642",
  49107. "uc_output": "1f926-1f3fb-200d-2642-fe0f",
  49108. "uc_match": "1f926-1f3fb-2642-fe0f",
  49109. "uc_greedy": "1f926-1f3fb-2642",
  49110. "shortnames": [":man_facepalming_light_skin_tone:"],
  49111. "category": "people"
  49112. },
  49113. ":man_facepalming_tone2:": {
  49114. "uc_base": "1f926-1f3fc-2642",
  49115. "uc_output": "1f926-1f3fc-200d-2642-fe0f",
  49116. "uc_match": "1f926-1f3fc-2642-fe0f",
  49117. "uc_greedy": "1f926-1f3fc-2642",
  49118. "shortnames": [":man_facepalming_medium_light_skin_tone:"],
  49119. "category": "people"
  49120. },
  49121. ":man_facepalming_tone3:": {
  49122. "uc_base": "1f926-1f3fd-2642",
  49123. "uc_output": "1f926-1f3fd-200d-2642-fe0f",
  49124. "uc_match": "1f926-1f3fd-2642-fe0f",
  49125. "uc_greedy": "1f926-1f3fd-2642",
  49126. "shortnames": [":man_facepalming_medium_skin_tone:"],
  49127. "category": "people"
  49128. },
  49129. ":man_facepalming_tone4:": {
  49130. "uc_base": "1f926-1f3fe-2642",
  49131. "uc_output": "1f926-1f3fe-200d-2642-fe0f",
  49132. "uc_match": "1f926-1f3fe-2642-fe0f",
  49133. "uc_greedy": "1f926-1f3fe-2642",
  49134. "shortnames": [":man_facepalming_medium_dark_skin_tone:"],
  49135. "category": "people"
  49136. },
  49137. ":man_facepalming_tone5:": {
  49138. "uc_base": "1f926-1f3ff-2642",
  49139. "uc_output": "1f926-1f3ff-200d-2642-fe0f",
  49140. "uc_match": "1f926-1f3ff-2642-fe0f",
  49141. "uc_greedy": "1f926-1f3ff-2642",
  49142. "shortnames": [":man_facepalming_dark_skin_tone:"],
  49143. "category": "people"
  49144. },
  49145. ":man_fairy_tone1:": {
  49146. "uc_base": "1f9da-1f3fb-2642",
  49147. "uc_output": "1f9da-1f3fb-200d-2642-fe0f",
  49148. "uc_match": "1f9da-1f3fb-2642-fe0f",
  49149. "uc_greedy": "1f9da-1f3fb-2642",
  49150. "shortnames": [":man_fairy_light_skin_tone:"],
  49151. "category": "people"
  49152. },
  49153. ":man_fairy_tone2:": {
  49154. "uc_base": "1f9da-1f3fc-2642",
  49155. "uc_output": "1f9da-1f3fc-200d-2642-fe0f",
  49156. "uc_match": "1f9da-1f3fc-2642-fe0f",
  49157. "uc_greedy": "1f9da-1f3fc-2642",
  49158. "shortnames": [":man_fairy_medium_light_skin_tone:"],
  49159. "category": "people"
  49160. },
  49161. ":man_fairy_tone3:": {
  49162. "uc_base": "1f9da-1f3fd-2642",
  49163. "uc_output": "1f9da-1f3fd-200d-2642-fe0f",
  49164. "uc_match": "1f9da-1f3fd-2642-fe0f",
  49165. "uc_greedy": "1f9da-1f3fd-2642",
  49166. "shortnames": [":man_fairy_medium_skin_tone:"],
  49167. "category": "people"
  49168. },
  49169. ":man_fairy_tone4:": {
  49170. "uc_base": "1f9da-1f3fe-2642",
  49171. "uc_output": "1f9da-1f3fe-200d-2642-fe0f",
  49172. "uc_match": "1f9da-1f3fe-2642-fe0f",
  49173. "uc_greedy": "1f9da-1f3fe-2642",
  49174. "shortnames": [":man_fairy_medium_dark_skin_tone:"],
  49175. "category": "people"
  49176. },
  49177. ":man_fairy_tone5:": {
  49178. "uc_base": "1f9da-1f3ff-2642",
  49179. "uc_output": "1f9da-1f3ff-200d-2642-fe0f",
  49180. "uc_match": "1f9da-1f3ff-2642-fe0f",
  49181. "uc_greedy": "1f9da-1f3ff-2642",
  49182. "shortnames": [":man_fairy_dark_skin_tone:"],
  49183. "category": "people"
  49184. },
  49185. ":man_frowning_tone1:": {
  49186. "uc_base": "1f64d-1f3fb-2642",
  49187. "uc_output": "1f64d-1f3fb-200d-2642-fe0f",
  49188. "uc_match": "1f64d-1f3fb-2642-fe0f",
  49189. "uc_greedy": "1f64d-1f3fb-2642",
  49190. "shortnames": [":man_frowning_light_skin_tone:"],
  49191. "category": "people"
  49192. },
  49193. ":man_frowning_tone2:": {
  49194. "uc_base": "1f64d-1f3fc-2642",
  49195. "uc_output": "1f64d-1f3fc-200d-2642-fe0f",
  49196. "uc_match": "1f64d-1f3fc-2642-fe0f",
  49197. "uc_greedy": "1f64d-1f3fc-2642",
  49198. "shortnames": [":man_frowning_medium_light_skin_tone:"],
  49199. "category": "people"
  49200. },
  49201. ":man_frowning_tone3:": {
  49202. "uc_base": "1f64d-1f3fd-2642",
  49203. "uc_output": "1f64d-1f3fd-200d-2642-fe0f",
  49204. "uc_match": "1f64d-1f3fd-2642-fe0f",
  49205. "uc_greedy": "1f64d-1f3fd-2642",
  49206. "shortnames": [":man_frowning_medium_skin_tone:"],
  49207. "category": "people"
  49208. },
  49209. ":man_frowning_tone4:": {
  49210. "uc_base": "1f64d-1f3fe-2642",
  49211. "uc_output": "1f64d-1f3fe-200d-2642-fe0f",
  49212. "uc_match": "1f64d-1f3fe-2642-fe0f",
  49213. "uc_greedy": "1f64d-1f3fe-2642",
  49214. "shortnames": [":man_frowning_medium_dark_skin_tone:"],
  49215. "category": "people"
  49216. },
  49217. ":man_frowning_tone5:": {
  49218. "uc_base": "1f64d-1f3ff-2642",
  49219. "uc_output": "1f64d-1f3ff-200d-2642-fe0f",
  49220. "uc_match": "1f64d-1f3ff-2642-fe0f",
  49221. "uc_greedy": "1f64d-1f3ff-2642",
  49222. "shortnames": [":man_frowning_dark_skin_tone:"],
  49223. "category": "people"
  49224. },
  49225. ":man_gesturing_no_tone1:": {
  49226. "uc_base": "1f645-1f3fb-2642",
  49227. "uc_output": "1f645-1f3fb-200d-2642-fe0f",
  49228. "uc_match": "1f645-1f3fb-2642-fe0f",
  49229. "uc_greedy": "1f645-1f3fb-2642",
  49230. "shortnames": [":man_gesturing_no_light_skin_tone:"],
  49231. "category": "people"
  49232. },
  49233. ":man_gesturing_no_tone2:": {
  49234. "uc_base": "1f645-1f3fc-2642",
  49235. "uc_output": "1f645-1f3fc-200d-2642-fe0f",
  49236. "uc_match": "1f645-1f3fc-2642-fe0f",
  49237. "uc_greedy": "1f645-1f3fc-2642",
  49238. "shortnames": [":man_gesturing_no_medium_light_skin_tone:"],
  49239. "category": "people"
  49240. },
  49241. ":man_gesturing_no_tone3:": {
  49242. "uc_base": "1f645-1f3fd-2642",
  49243. "uc_output": "1f645-1f3fd-200d-2642-fe0f",
  49244. "uc_match": "1f645-1f3fd-2642-fe0f",
  49245. "uc_greedy": "1f645-1f3fd-2642",
  49246. "shortnames": [":man_gesturing_no_medium_skin_tone:"],
  49247. "category": "people"
  49248. },
  49249. ":man_gesturing_no_tone4:": {
  49250. "uc_base": "1f645-1f3fe-2642",
  49251. "uc_output": "1f645-1f3fe-200d-2642-fe0f",
  49252. "uc_match": "1f645-1f3fe-2642-fe0f",
  49253. "uc_greedy": "1f645-1f3fe-2642",
  49254. "shortnames": [":man_gesturing_no_medium_dark_skin_tone:"],
  49255. "category": "people"
  49256. },
  49257. ":man_gesturing_no_tone5:": {
  49258. "uc_base": "1f645-1f3ff-2642",
  49259. "uc_output": "1f645-1f3ff-200d-2642-fe0f",
  49260. "uc_match": "1f645-1f3ff-2642-fe0f",
  49261. "uc_greedy": "1f645-1f3ff-2642",
  49262. "shortnames": [":man_gesturing_no_dark_skin_tone:"],
  49263. "category": "people"
  49264. },
  49265. ":man_gesturing_ok_tone1:": {
  49266. "uc_base": "1f646-1f3fb-2642",
  49267. "uc_output": "1f646-1f3fb-200d-2642-fe0f",
  49268. "uc_match": "1f646-1f3fb-2642-fe0f",
  49269. "uc_greedy": "1f646-1f3fb-2642",
  49270. "shortnames": [":man_gesturing_ok_light_skin_tone:"],
  49271. "category": "people"
  49272. },
  49273. ":man_gesturing_ok_tone2:": {
  49274. "uc_base": "1f646-1f3fc-2642",
  49275. "uc_output": "1f646-1f3fc-200d-2642-fe0f",
  49276. "uc_match": "1f646-1f3fc-2642-fe0f",
  49277. "uc_greedy": "1f646-1f3fc-2642",
  49278. "shortnames": [":man_gesturing_ok_medium_light_skin_tone:"],
  49279. "category": "people"
  49280. },
  49281. ":man_gesturing_ok_tone3:": {
  49282. "uc_base": "1f646-1f3fd-2642",
  49283. "uc_output": "1f646-1f3fd-200d-2642-fe0f",
  49284. "uc_match": "1f646-1f3fd-2642-fe0f",
  49285. "uc_greedy": "1f646-1f3fd-2642",
  49286. "shortnames": [":man_gesturing_ok_medium_skin_tone:"],
  49287. "category": "people"
  49288. },
  49289. ":man_gesturing_ok_tone4:": {
  49290. "uc_base": "1f646-1f3fe-2642",
  49291. "uc_output": "1f646-1f3fe-200d-2642-fe0f",
  49292. "uc_match": "1f646-1f3fe-2642-fe0f",
  49293. "uc_greedy": "1f646-1f3fe-2642",
  49294. "shortnames": [":man_gesturing_ok_medium_dark_skin_tone:"],
  49295. "category": "people"
  49296. },
  49297. ":man_gesturing_ok_tone5:": {
  49298. "uc_base": "1f646-1f3ff-2642",
  49299. "uc_output": "1f646-1f3ff-200d-2642-fe0f",
  49300. "uc_match": "1f646-1f3ff-2642-fe0f",
  49301. "uc_greedy": "1f646-1f3ff-2642",
  49302. "shortnames": [":man_gesturing_ok_dark_skin_tone:"],
  49303. "category": "people"
  49304. },
  49305. ":man_getting_face_massage_tone1:": {
  49306. "uc_base": "1f486-1f3fb-2642",
  49307. "uc_output": "1f486-1f3fb-200d-2642-fe0f",
  49308. "uc_match": "1f486-1f3fb-2642-fe0f",
  49309. "uc_greedy": "1f486-1f3fb-2642",
  49310. "shortnames": [":man_getting_face_massage_light_skin_tone:"],
  49311. "category": "people"
  49312. },
  49313. ":man_getting_face_massage_tone2:": {
  49314. "uc_base": "1f486-1f3fc-2642",
  49315. "uc_output": "1f486-1f3fc-200d-2642-fe0f",
  49316. "uc_match": "1f486-1f3fc-2642-fe0f",
  49317. "uc_greedy": "1f486-1f3fc-2642",
  49318. "shortnames": [":man_getting_face_massage_medium_light_skin_tone:"],
  49319. "category": "people"
  49320. },
  49321. ":man_getting_face_massage_tone3:": {
  49322. "uc_base": "1f486-1f3fd-2642",
  49323. "uc_output": "1f486-1f3fd-200d-2642-fe0f",
  49324. "uc_match": "1f486-1f3fd-2642-fe0f",
  49325. "uc_greedy": "1f486-1f3fd-2642",
  49326. "shortnames": [":man_getting_face_massage_medium_skin_tone:"],
  49327. "category": "people"
  49328. },
  49329. ":man_getting_face_massage_tone4:": {
  49330. "uc_base": "1f486-1f3fe-2642",
  49331. "uc_output": "1f486-1f3fe-200d-2642-fe0f",
  49332. "uc_match": "1f486-1f3fe-2642-fe0f",
  49333. "uc_greedy": "1f486-1f3fe-2642",
  49334. "shortnames": [":man_getting_face_massage_medium_dark_skin_tone:"],
  49335. "category": "people"
  49336. },
  49337. ":man_getting_face_massage_tone5:": {
  49338. "uc_base": "1f486-1f3ff-2642",
  49339. "uc_output": "1f486-1f3ff-200d-2642-fe0f",
  49340. "uc_match": "1f486-1f3ff-2642-fe0f",
  49341. "uc_greedy": "1f486-1f3ff-2642",
  49342. "shortnames": [":man_getting_face_massage_dark_skin_tone:"],
  49343. "category": "people"
  49344. },
  49345. ":man_getting_haircut_tone1:": {
  49346. "uc_base": "1f487-1f3fb-2642",
  49347. "uc_output": "1f487-1f3fb-200d-2642-fe0f",
  49348. "uc_match": "1f487-1f3fb-2642-fe0f",
  49349. "uc_greedy": "1f487-1f3fb-2642",
  49350. "shortnames": [":man_getting_haircut_light_skin_tone:"],
  49351. "category": "people"
  49352. },
  49353. ":man_getting_haircut_tone2:": {
  49354. "uc_base": "1f487-1f3fc-2642",
  49355. "uc_output": "1f487-1f3fc-200d-2642-fe0f",
  49356. "uc_match": "1f487-1f3fc-2642-fe0f",
  49357. "uc_greedy": "1f487-1f3fc-2642",
  49358. "shortnames": [":man_getting_haircut_medium_light_skin_tone:"],
  49359. "category": "people"
  49360. },
  49361. ":man_getting_haircut_tone3:": {
  49362. "uc_base": "1f487-1f3fd-2642",
  49363. "uc_output": "1f487-1f3fd-200d-2642-fe0f",
  49364. "uc_match": "1f487-1f3fd-2642-fe0f",
  49365. "uc_greedy": "1f487-1f3fd-2642",
  49366. "shortnames": [":man_getting_haircut_medium_skin_tone:"],
  49367. "category": "people"
  49368. },
  49369. ":man_getting_haircut_tone4:": {
  49370. "uc_base": "1f487-1f3fe-2642",
  49371. "uc_output": "1f487-1f3fe-200d-2642-fe0f",
  49372. "uc_match": "1f487-1f3fe-2642-fe0f",
  49373. "uc_greedy": "1f487-1f3fe-2642",
  49374. "shortnames": [":man_getting_haircut_medium_dark_skin_tone:"],
  49375. "category": "people"
  49376. },
  49377. ":man_getting_haircut_tone5:": {
  49378. "uc_base": "1f487-1f3ff-2642",
  49379. "uc_output": "1f487-1f3ff-200d-2642-fe0f",
  49380. "uc_match": "1f487-1f3ff-2642-fe0f",
  49381. "uc_greedy": "1f487-1f3ff-2642",
  49382. "shortnames": [":man_getting_haircut_dark_skin_tone:"],
  49383. "category": "people"
  49384. },
  49385. ":man_golfing_tone1:": {
  49386. "uc_base": "1f3cc-1f3fb-2642",
  49387. "uc_output": "1f3cc-1f3fb-200d-2642-fe0f",
  49388. "uc_match": "1f3cc-fe0f-1f3fb-2642-fe0f",
  49389. "uc_greedy": "1f3cc-1f3fb-2642",
  49390. "shortnames": [":man_golfing_light_skin_tone:"],
  49391. "category": "activity"
  49392. },
  49393. ":man_golfing_tone2:": {
  49394. "uc_base": "1f3cc-1f3fc-2642",
  49395. "uc_output": "1f3cc-1f3fc-200d-2642-fe0f",
  49396. "uc_match": "1f3cc-fe0f-1f3fc-2642-fe0f",
  49397. "uc_greedy": "1f3cc-1f3fc-2642",
  49398. "shortnames": [":man_golfing_medium_light_skin_tone:"],
  49399. "category": "activity"
  49400. },
  49401. ":man_golfing_tone3:": {
  49402. "uc_base": "1f3cc-1f3fd-2642",
  49403. "uc_output": "1f3cc-1f3fd-200d-2642-fe0f",
  49404. "uc_match": "1f3cc-fe0f-1f3fd-2642-fe0f",
  49405. "uc_greedy": "1f3cc-1f3fd-2642",
  49406. "shortnames": [":man_golfing_medium_skin_tone:"],
  49407. "category": "activity"
  49408. },
  49409. ":man_golfing_tone4:": {
  49410. "uc_base": "1f3cc-1f3fe-2642",
  49411. "uc_output": "1f3cc-1f3fe-200d-2642-fe0f",
  49412. "uc_match": "1f3cc-fe0f-1f3fe-2642-fe0f",
  49413. "uc_greedy": "1f3cc-1f3fe-2642",
  49414. "shortnames": [":man_golfing_medium_dark_skin_tone:"],
  49415. "category": "activity"
  49416. },
  49417. ":man_golfing_tone5:": {
  49418. "uc_base": "1f3cc-1f3ff-2642",
  49419. "uc_output": "1f3cc-1f3ff-200d-2642-fe0f",
  49420. "uc_match": "1f3cc-fe0f-1f3ff-2642-fe0f",
  49421. "uc_greedy": "1f3cc-1f3ff-2642",
  49422. "shortnames": [":man_golfing_dark_skin_tone:"],
  49423. "category": "activity"
  49424. },
  49425. ":man_guard_tone1:": {
  49426. "uc_base": "1f482-1f3fb-2642",
  49427. "uc_output": "1f482-1f3fb-200d-2642-fe0f",
  49428. "uc_match": "1f482-1f3fb-2642-fe0f",
  49429. "uc_greedy": "1f482-1f3fb-2642",
  49430. "shortnames": [":man_guard_light_skin_tone:"],
  49431. "category": "people"
  49432. },
  49433. ":man_guard_tone2:": {
  49434. "uc_base": "1f482-1f3fc-2642",
  49435. "uc_output": "1f482-1f3fc-200d-2642-fe0f",
  49436. "uc_match": "1f482-1f3fc-2642-fe0f",
  49437. "uc_greedy": "1f482-1f3fc-2642",
  49438. "shortnames": [":man_guard_medium_light_skin_tone:"],
  49439. "category": "people"
  49440. },
  49441. ":man_guard_tone3:": {
  49442. "uc_base": "1f482-1f3fd-2642",
  49443. "uc_output": "1f482-1f3fd-200d-2642-fe0f",
  49444. "uc_match": "1f482-1f3fd-2642-fe0f",
  49445. "uc_greedy": "1f482-1f3fd-2642",
  49446. "shortnames": [":man_guard_medium_skin_tone:"],
  49447. "category": "people"
  49448. },
  49449. ":man_guard_tone4:": {
  49450. "uc_base": "1f482-1f3fe-2642",
  49451. "uc_output": "1f482-1f3fe-200d-2642-fe0f",
  49452. "uc_match": "1f482-1f3fe-2642-fe0f",
  49453. "uc_greedy": "1f482-1f3fe-2642",
  49454. "shortnames": [":man_guard_medium_dark_skin_tone:"],
  49455. "category": "people"
  49456. },
  49457. ":man_guard_tone5:": {
  49458. "uc_base": "1f482-1f3ff-2642",
  49459. "uc_output": "1f482-1f3ff-200d-2642-fe0f",
  49460. "uc_match": "1f482-1f3ff-2642-fe0f",
  49461. "uc_greedy": "1f482-1f3ff-2642",
  49462. "shortnames": [":man_guard_dark_skin_tone:"],
  49463. "category": "people"
  49464. },
  49465. ":man_health_worker_tone1:": {
  49466. "uc_base": "1f468-1f3fb-2695",
  49467. "uc_output": "1f468-1f3fb-200d-2695-fe0f",
  49468. "uc_match": "1f468-1f3fb-2695-fe0f",
  49469. "uc_greedy": "1f468-1f3fb-2695",
  49470. "shortnames": [":man_health_worker_light_skin_tone:"],
  49471. "category": "people"
  49472. },
  49473. ":man_health_worker_tone2:": {
  49474. "uc_base": "1f468-1f3fc-2695",
  49475. "uc_output": "1f468-1f3fc-200d-2695-fe0f",
  49476. "uc_match": "1f468-1f3fc-2695-fe0f",
  49477. "uc_greedy": "1f468-1f3fc-2695",
  49478. "shortnames": [":man_health_worker_medium_light_skin_tone:"],
  49479. "category": "people"
  49480. },
  49481. ":man_health_worker_tone3:": {
  49482. "uc_base": "1f468-1f3fd-2695",
  49483. "uc_output": "1f468-1f3fd-200d-2695-fe0f",
  49484. "uc_match": "1f468-1f3fd-2695-fe0f",
  49485. "uc_greedy": "1f468-1f3fd-2695",
  49486. "shortnames": [":man_health_worker_medium_skin_tone:"],
  49487. "category": "people"
  49488. },
  49489. ":man_health_worker_tone4:": {
  49490. "uc_base": "1f468-1f3fe-2695",
  49491. "uc_output": "1f468-1f3fe-200d-2695-fe0f",
  49492. "uc_match": "1f468-1f3fe-2695-fe0f",
  49493. "uc_greedy": "1f468-1f3fe-2695",
  49494. "shortnames": [":man_health_worker_medium_dark_skin_tone:"],
  49495. "category": "people"
  49496. },
  49497. ":man_health_worker_tone5:": {
  49498. "uc_base": "1f468-1f3ff-2695",
  49499. "uc_output": "1f468-1f3ff-200d-2695-fe0f",
  49500. "uc_match": "1f468-1f3ff-2695-fe0f",
  49501. "uc_greedy": "1f468-1f3ff-2695",
  49502. "shortnames": [":man_health_worker_dark_skin_tone:"],
  49503. "category": "people"
  49504. },
  49505. ":man_in_lotus_position_tone1:": {
  49506. "uc_base": "1f9d8-1f3fb-2642",
  49507. "uc_output": "1f9d8-1f3fb-200d-2642-fe0f",
  49508. "uc_match": "1f9d8-1f3fb-2642-fe0f",
  49509. "uc_greedy": "1f9d8-1f3fb-2642",
  49510. "shortnames": [":man_in_lotus_position_light_skin_tone:"],
  49511. "category": "activity"
  49512. },
  49513. ":man_in_lotus_position_tone2:": {
  49514. "uc_base": "1f9d8-1f3fc-2642",
  49515. "uc_output": "1f9d8-1f3fc-200d-2642-fe0f",
  49516. "uc_match": "1f9d8-1f3fc-2642-fe0f",
  49517. "uc_greedy": "1f9d8-1f3fc-2642",
  49518. "shortnames": [":man_in_lotus_position_medium_light_skin_tone:"],
  49519. "category": "activity"
  49520. },
  49521. ":man_in_lotus_position_tone3:": {
  49522. "uc_base": "1f9d8-1f3fd-2642",
  49523. "uc_output": "1f9d8-1f3fd-200d-2642-fe0f",
  49524. "uc_match": "1f9d8-1f3fd-2642-fe0f",
  49525. "uc_greedy": "1f9d8-1f3fd-2642",
  49526. "shortnames": [":man_in_lotus_position_medium_skin_tone:"],
  49527. "category": "activity"
  49528. },
  49529. ":man_in_lotus_position_tone4:": {
  49530. "uc_base": "1f9d8-1f3fe-2642",
  49531. "uc_output": "1f9d8-1f3fe-200d-2642-fe0f",
  49532. "uc_match": "1f9d8-1f3fe-2642-fe0f",
  49533. "uc_greedy": "1f9d8-1f3fe-2642",
  49534. "shortnames": [":man_in_lotus_position_medium_dark_skin_tone:"],
  49535. "category": "activity"
  49536. },
  49537. ":man_in_lotus_position_tone5:": {
  49538. "uc_base": "1f9d8-1f3ff-2642",
  49539. "uc_output": "1f9d8-1f3ff-200d-2642-fe0f",
  49540. "uc_match": "1f9d8-1f3ff-2642-fe0f",
  49541. "uc_greedy": "1f9d8-1f3ff-2642",
  49542. "shortnames": [":man_in_lotus_position_dark_skin_tone:"],
  49543. "category": "activity"
  49544. },
  49545. ":man_in_steamy_room_tone1:": {
  49546. "uc_base": "1f9d6-1f3fb-2642",
  49547. "uc_output": "1f9d6-1f3fb-200d-2642-fe0f",
  49548. "uc_match": "1f9d6-1f3fb-2642-fe0f",
  49549. "uc_greedy": "1f9d6-1f3fb-2642",
  49550. "shortnames": [":man_in_steamy_room_light_skin_tone:"],
  49551. "category": "people"
  49552. },
  49553. ":man_in_steamy_room_tone2:": {
  49554. "uc_base": "1f9d6-1f3fc-2642",
  49555. "uc_output": "1f9d6-1f3fc-200d-2642-fe0f",
  49556. "uc_match": "1f9d6-1f3fc-2642-fe0f",
  49557. "uc_greedy": "1f9d6-1f3fc-2642",
  49558. "shortnames": [":man_in_steamy_room_medium_light_skin_tone:"],
  49559. "category": "people"
  49560. },
  49561. ":man_in_steamy_room_tone3:": {
  49562. "uc_base": "1f9d6-1f3fd-2642",
  49563. "uc_output": "1f9d6-1f3fd-200d-2642-fe0f",
  49564. "uc_match": "1f9d6-1f3fd-2642-fe0f",
  49565. "uc_greedy": "1f9d6-1f3fd-2642",
  49566. "shortnames": [":man_in_steamy_room_medium_skin_tone:"],
  49567. "category": "people"
  49568. },
  49569. ":man_in_steamy_room_tone4:": {
  49570. "uc_base": "1f9d6-1f3fe-2642",
  49571. "uc_output": "1f9d6-1f3fe-200d-2642-fe0f",
  49572. "uc_match": "1f9d6-1f3fe-2642-fe0f",
  49573. "uc_greedy": "1f9d6-1f3fe-2642",
  49574. "shortnames": [":man_in_steamy_room_medium_dark_skin_tone:"],
  49575. "category": "people"
  49576. },
  49577. ":man_in_steamy_room_tone5:": {
  49578. "uc_base": "1f9d6-1f3ff-2642",
  49579. "uc_output": "1f9d6-1f3ff-200d-2642-fe0f",
  49580. "uc_match": "1f9d6-1f3ff-2642-fe0f",
  49581. "uc_greedy": "1f9d6-1f3ff-2642",
  49582. "shortnames": [":man_in_steamy_room_dark_skin_tone:"],
  49583. "category": "people"
  49584. },
  49585. ":man_judge_tone1:": {
  49586. "uc_base": "1f468-1f3fb-2696",
  49587. "uc_output": "1f468-1f3fb-200d-2696-fe0f",
  49588. "uc_match": "1f468-1f3fb-2696-fe0f",
  49589. "uc_greedy": "1f468-1f3fb-2696",
  49590. "shortnames": [":man_judge_light_skin_tone:"],
  49591. "category": "people"
  49592. },
  49593. ":man_judge_tone2:": {
  49594. "uc_base": "1f468-1f3fc-2696",
  49595. "uc_output": "1f468-1f3fc-200d-2696-fe0f",
  49596. "uc_match": "1f468-1f3fc-2696-fe0f",
  49597. "uc_greedy": "1f468-1f3fc-2696",
  49598. "shortnames": [":man_judge_medium_light_skin_tone:"],
  49599. "category": "people"
  49600. },
  49601. ":man_judge_tone3:": {
  49602. "uc_base": "1f468-1f3fd-2696",
  49603. "uc_output": "1f468-1f3fd-200d-2696-fe0f",
  49604. "uc_match": "1f468-1f3fd-2696-fe0f",
  49605. "uc_greedy": "1f468-1f3fd-2696",
  49606. "shortnames": [":man_judge_medium_skin_tone:"],
  49607. "category": "people"
  49608. },
  49609. ":man_judge_tone4:": {
  49610. "uc_base": "1f468-1f3fe-2696",
  49611. "uc_output": "1f468-1f3fe-200d-2696-fe0f",
  49612. "uc_match": "1f468-1f3fe-2696-fe0f",
  49613. "uc_greedy": "1f468-1f3fe-2696",
  49614. "shortnames": [":man_judge_medium_dark_skin_tone:"],
  49615. "category": "people"
  49616. },
  49617. ":man_judge_tone5:": {
  49618. "uc_base": "1f468-1f3ff-2696",
  49619. "uc_output": "1f468-1f3ff-200d-2696-fe0f",
  49620. "uc_match": "1f468-1f3ff-2696-fe0f",
  49621. "uc_greedy": "1f468-1f3ff-2696",
  49622. "shortnames": [":man_judge_dark_skin_tone:"],
  49623. "category": "people"
  49624. },
  49625. ":man_juggling_tone1:": {
  49626. "uc_base": "1f939-1f3fb-2642",
  49627. "uc_output": "1f939-1f3fb-200d-2642-fe0f",
  49628. "uc_match": "1f939-1f3fb-2642-fe0f",
  49629. "uc_greedy": "1f939-1f3fb-2642",
  49630. "shortnames": [":man_juggling_light_skin_tone:"],
  49631. "category": "activity"
  49632. },
  49633. ":man_juggling_tone2:": {
  49634. "uc_base": "1f939-1f3fc-2642",
  49635. "uc_output": "1f939-1f3fc-200d-2642-fe0f",
  49636. "uc_match": "1f939-1f3fc-2642-fe0f",
  49637. "uc_greedy": "1f939-1f3fc-2642",
  49638. "shortnames": [":man_juggling_medium_light_skin_tone:"],
  49639. "category": "activity"
  49640. },
  49641. ":man_juggling_tone3:": {
  49642. "uc_base": "1f939-1f3fd-2642",
  49643. "uc_output": "1f939-1f3fd-200d-2642-fe0f",
  49644. "uc_match": "1f939-1f3fd-2642-fe0f",
  49645. "uc_greedy": "1f939-1f3fd-2642",
  49646. "shortnames": [":man_juggling_medium_skin_tone:"],
  49647. "category": "activity"
  49648. },
  49649. ":man_juggling_tone4:": {
  49650. "uc_base": "1f939-1f3fe-2642",
  49651. "uc_output": "1f939-1f3fe-200d-2642-fe0f",
  49652. "uc_match": "1f939-1f3fe-2642-fe0f",
  49653. "uc_greedy": "1f939-1f3fe-2642",
  49654. "shortnames": [":man_juggling_medium_dark_skin_tone:"],
  49655. "category": "activity"
  49656. },
  49657. ":man_juggling_tone5:": {
  49658. "uc_base": "1f939-1f3ff-2642",
  49659. "uc_output": "1f939-1f3ff-200d-2642-fe0f",
  49660. "uc_match": "1f939-1f3ff-2642-fe0f",
  49661. "uc_greedy": "1f939-1f3ff-2642",
  49662. "shortnames": [":man_juggling_dark_skin_tone:"],
  49663. "category": "activity"
  49664. },
  49665. ":man_lifting_weights_tone1:": {
  49666. "uc_base": "1f3cb-1f3fb-2642",
  49667. "uc_output": "1f3cb-1f3fb-200d-2642-fe0f",
  49668. "uc_match": "1f3cb-fe0f-1f3fb-2642-fe0f",
  49669. "uc_greedy": "1f3cb-1f3fb-2642",
  49670. "shortnames": [":man_lifting_weights_light_skin_tone:"],
  49671. "category": "activity"
  49672. },
  49673. ":man_lifting_weights_tone2:": {
  49674. "uc_base": "1f3cb-1f3fc-2642",
  49675. "uc_output": "1f3cb-1f3fc-200d-2642-fe0f",
  49676. "uc_match": "1f3cb-fe0f-1f3fc-2642-fe0f",
  49677. "uc_greedy": "1f3cb-1f3fc-2642",
  49678. "shortnames": [":man_lifting_weights_medium_light_skin_tone:"],
  49679. "category": "activity"
  49680. },
  49681. ":man_lifting_weights_tone3:": {
  49682. "uc_base": "1f3cb-1f3fd-2642",
  49683. "uc_output": "1f3cb-1f3fd-200d-2642-fe0f",
  49684. "uc_match": "1f3cb-fe0f-1f3fd-2642-fe0f",
  49685. "uc_greedy": "1f3cb-1f3fd-2642",
  49686. "shortnames": [":man_lifting_weights_medium_skin_tone:"],
  49687. "category": "activity"
  49688. },
  49689. ":man_lifting_weights_tone4:": {
  49690. "uc_base": "1f3cb-1f3fe-2642",
  49691. "uc_output": "1f3cb-1f3fe-200d-2642-fe0f",
  49692. "uc_match": "1f3cb-fe0f-1f3fe-2642-fe0f",
  49693. "uc_greedy": "1f3cb-1f3fe-2642",
  49694. "shortnames": [":man_lifting_weights_medium_dark_skin_tone:"],
  49695. "category": "activity"
  49696. },
  49697. ":man_lifting_weights_tone5:": {
  49698. "uc_base": "1f3cb-1f3ff-2642",
  49699. "uc_output": "1f3cb-1f3ff-200d-2642-fe0f",
  49700. "uc_match": "1f3cb-fe0f-1f3ff-2642-fe0f",
  49701. "uc_greedy": "1f3cb-1f3ff-2642",
  49702. "shortnames": [":man_lifting_weights_dark_skin_tone:"],
  49703. "category": "activity"
  49704. },
  49705. ":man_mage_tone1:": {
  49706. "uc_base": "1f9d9-1f3fb-2642",
  49707. "uc_output": "1f9d9-1f3fb-200d-2642-fe0f",
  49708. "uc_match": "1f9d9-1f3fb-2642-fe0f",
  49709. "uc_greedy": "1f9d9-1f3fb-2642",
  49710. "shortnames": [":man_mage_light_skin_tone:"],
  49711. "category": "people"
  49712. },
  49713. ":man_mage_tone2:": {
  49714. "uc_base": "1f9d9-1f3fc-2642",
  49715. "uc_output": "1f9d9-1f3fc-200d-2642-fe0f",
  49716. "uc_match": "1f9d9-1f3fc-2642-fe0f",
  49717. "uc_greedy": "1f9d9-1f3fc-2642",
  49718. "shortnames": [":man_mage_medium_light_skin_tone:"],
  49719. "category": "people"
  49720. },
  49721. ":man_mage_tone3:": {
  49722. "uc_base": "1f9d9-1f3fd-2642",
  49723. "uc_output": "1f9d9-1f3fd-200d-2642-fe0f",
  49724. "uc_match": "1f9d9-1f3fd-2642-fe0f",
  49725. "uc_greedy": "1f9d9-1f3fd-2642",
  49726. "shortnames": [":man_mage_medium_skin_tone:"],
  49727. "category": "people"
  49728. },
  49729. ":man_mage_tone4:": {
  49730. "uc_base": "1f9d9-1f3fe-2642",
  49731. "uc_output": "1f9d9-1f3fe-200d-2642-fe0f",
  49732. "uc_match": "1f9d9-1f3fe-2642-fe0f",
  49733. "uc_greedy": "1f9d9-1f3fe-2642",
  49734. "shortnames": [":man_mage_medium_dark_skin_tone:"],
  49735. "category": "people"
  49736. },
  49737. ":man_mage_tone5:": {
  49738. "uc_base": "1f9d9-1f3ff-2642",
  49739. "uc_output": "1f9d9-1f3ff-200d-2642-fe0f",
  49740. "uc_match": "1f9d9-1f3ff-2642-fe0f",
  49741. "uc_greedy": "1f9d9-1f3ff-2642",
  49742. "shortnames": [":man_mage_dark_skin_tone:"],
  49743. "category": "people"
  49744. },
  49745. ":man_mountain_biking_tone1:": {
  49746. "uc_base": "1f6b5-1f3fb-2642",
  49747. "uc_output": "1f6b5-1f3fb-200d-2642-fe0f",
  49748. "uc_match": "1f6b5-1f3fb-2642-fe0f",
  49749. "uc_greedy": "1f6b5-1f3fb-2642",
  49750. "shortnames": [":man_mountain_biking_light_skin_tone:"],
  49751. "category": "activity"
  49752. },
  49753. ":man_mountain_biking_tone2:": {
  49754. "uc_base": "1f6b5-1f3fc-2642",
  49755. "uc_output": "1f6b5-1f3fc-200d-2642-fe0f",
  49756. "uc_match": "1f6b5-1f3fc-2642-fe0f",
  49757. "uc_greedy": "1f6b5-1f3fc-2642",
  49758. "shortnames": [":man_mountain_biking_medium_light_skin_tone:"],
  49759. "category": "activity"
  49760. },
  49761. ":man_mountain_biking_tone3:": {
  49762. "uc_base": "1f6b5-1f3fd-2642",
  49763. "uc_output": "1f6b5-1f3fd-200d-2642-fe0f",
  49764. "uc_match": "1f6b5-1f3fd-2642-fe0f",
  49765. "uc_greedy": "1f6b5-1f3fd-2642",
  49766. "shortnames": [":man_mountain_biking_medium_skin_tone:"],
  49767. "category": "activity"
  49768. },
  49769. ":man_mountain_biking_tone4:": {
  49770. "uc_base": "1f6b5-1f3fe-2642",
  49771. "uc_output": "1f6b5-1f3fe-200d-2642-fe0f",
  49772. "uc_match": "1f6b5-1f3fe-2642-fe0f",
  49773. "uc_greedy": "1f6b5-1f3fe-2642",
  49774. "shortnames": [":man_mountain_biking_medium_dark_skin_tone:"],
  49775. "category": "activity"
  49776. },
  49777. ":man_mountain_biking_tone5:": {
  49778. "uc_base": "1f6b5-1f3ff-2642",
  49779. "uc_output": "1f6b5-1f3ff-200d-2642-fe0f",
  49780. "uc_match": "1f6b5-1f3ff-2642-fe0f",
  49781. "uc_greedy": "1f6b5-1f3ff-2642",
  49782. "shortnames": [":man_mountain_biking_dark_skin_tone:"],
  49783. "category": "activity"
  49784. },
  49785. ":man_pilot_tone1:": {
  49786. "uc_base": "1f468-1f3fb-2708",
  49787. "uc_output": "1f468-1f3fb-200d-2708-fe0f",
  49788. "uc_match": "1f468-1f3fb-2708-fe0f",
  49789. "uc_greedy": "1f468-1f3fb-2708",
  49790. "shortnames": [":man_pilot_light_skin_tone:"],
  49791. "category": "people"
  49792. },
  49793. ":man_pilot_tone2:": {
  49794. "uc_base": "1f468-1f3fc-2708",
  49795. "uc_output": "1f468-1f3fc-200d-2708-fe0f",
  49796. "uc_match": "1f468-1f3fc-2708-fe0f",
  49797. "uc_greedy": "1f468-1f3fc-2708",
  49798. "shortnames": [":man_pilot_medium_light_skin_tone:"],
  49799. "category": "people"
  49800. },
  49801. ":man_pilot_tone3:": {
  49802. "uc_base": "1f468-1f3fd-2708",
  49803. "uc_output": "1f468-1f3fd-200d-2708-fe0f",
  49804. "uc_match": "1f468-1f3fd-2708-fe0f",
  49805. "uc_greedy": "1f468-1f3fd-2708",
  49806. "shortnames": [":man_pilot_medium_skin_tone:"],
  49807. "category": "people"
  49808. },
  49809. ":man_pilot_tone4:": {
  49810. "uc_base": "1f468-1f3fe-2708",
  49811. "uc_output": "1f468-1f3fe-200d-2708-fe0f",
  49812. "uc_match": "1f468-1f3fe-2708-fe0f",
  49813. "uc_greedy": "1f468-1f3fe-2708",
  49814. "shortnames": [":man_pilot_medium_dark_skin_tone:"],
  49815. "category": "people"
  49816. },
  49817. ":man_pilot_tone5:": {
  49818. "uc_base": "1f468-1f3ff-2708",
  49819. "uc_output": "1f468-1f3ff-200d-2708-fe0f",
  49820. "uc_match": "1f468-1f3ff-2708-fe0f",
  49821. "uc_greedy": "1f468-1f3ff-2708",
  49822. "shortnames": [":man_pilot_dark_skin_tone:"],
  49823. "category": "people"
  49824. },
  49825. ":man_playing_handball_tone1:": {
  49826. "uc_base": "1f93e-1f3fb-2642",
  49827. "uc_output": "1f93e-1f3fb-200d-2642-fe0f",
  49828. "uc_match": "1f93e-1f3fb-2642-fe0f",
  49829. "uc_greedy": "1f93e-1f3fb-2642",
  49830. "shortnames": [":man_playing_handball_light_skin_tone:"],
  49831. "category": "activity"
  49832. },
  49833. ":man_playing_handball_tone2:": {
  49834. "uc_base": "1f93e-1f3fc-2642",
  49835. "uc_output": "1f93e-1f3fc-200d-2642-fe0f",
  49836. "uc_match": "1f93e-1f3fc-2642-fe0f",
  49837. "uc_greedy": "1f93e-1f3fc-2642",
  49838. "shortnames": [":man_playing_handball_medium_light_skin_tone:"],
  49839. "category": "activity"
  49840. },
  49841. ":man_playing_handball_tone3:": {
  49842. "uc_base": "1f93e-1f3fd-2642",
  49843. "uc_output": "1f93e-1f3fd-200d-2642-fe0f",
  49844. "uc_match": "1f93e-1f3fd-2642-fe0f",
  49845. "uc_greedy": "1f93e-1f3fd-2642",
  49846. "shortnames": [":man_playing_handball_medium_skin_tone:"],
  49847. "category": "activity"
  49848. },
  49849. ":man_playing_handball_tone4:": {
  49850. "uc_base": "1f93e-1f3fe-2642",
  49851. "uc_output": "1f93e-1f3fe-200d-2642-fe0f",
  49852. "uc_match": "1f93e-1f3fe-2642-fe0f",
  49853. "uc_greedy": "1f93e-1f3fe-2642",
  49854. "shortnames": [":man_playing_handball_medium_dark_skin_tone:"],
  49855. "category": "activity"
  49856. },
  49857. ":man_playing_handball_tone5:": {
  49858. "uc_base": "1f93e-1f3ff-2642",
  49859. "uc_output": "1f93e-1f3ff-200d-2642-fe0f",
  49860. "uc_match": "1f93e-1f3ff-2642-fe0f",
  49861. "uc_greedy": "1f93e-1f3ff-2642",
  49862. "shortnames": [":man_playing_handball_dark_skin_tone:"],
  49863. "category": "activity"
  49864. },
  49865. ":man_playing_water_polo_tone1:": {
  49866. "uc_base": "1f93d-1f3fb-2642",
  49867. "uc_output": "1f93d-1f3fb-200d-2642-fe0f",
  49868. "uc_match": "1f93d-1f3fb-2642-fe0f",
  49869. "uc_greedy": "1f93d-1f3fb-2642",
  49870. "shortnames": [":man_playing_water_polo_light_skin_tone:"],
  49871. "category": "activity"
  49872. },
  49873. ":man_playing_water_polo_tone2:": {
  49874. "uc_base": "1f93d-1f3fc-2642",
  49875. "uc_output": "1f93d-1f3fc-200d-2642-fe0f",
  49876. "uc_match": "1f93d-1f3fc-2642-fe0f",
  49877. "uc_greedy": "1f93d-1f3fc-2642",
  49878. "shortnames": [":man_playing_water_polo_medium_light_skin_tone:"],
  49879. "category": "activity"
  49880. },
  49881. ":man_playing_water_polo_tone3:": {
  49882. "uc_base": "1f93d-1f3fd-2642",
  49883. "uc_output": "1f93d-1f3fd-200d-2642-fe0f",
  49884. "uc_match": "1f93d-1f3fd-2642-fe0f",
  49885. "uc_greedy": "1f93d-1f3fd-2642",
  49886. "shortnames": [":man_playing_water_polo_medium_skin_tone:"],
  49887. "category": "activity"
  49888. },
  49889. ":man_playing_water_polo_tone4:": {
  49890. "uc_base": "1f93d-1f3fe-2642",
  49891. "uc_output": "1f93d-1f3fe-200d-2642-fe0f",
  49892. "uc_match": "1f93d-1f3fe-2642-fe0f",
  49893. "uc_greedy": "1f93d-1f3fe-2642",
  49894. "shortnames": [":man_playing_water_polo_medium_dark_skin_tone:"],
  49895. "category": "activity"
  49896. },
  49897. ":man_playing_water_polo_tone5:": {
  49898. "uc_base": "1f93d-1f3ff-2642",
  49899. "uc_output": "1f93d-1f3ff-200d-2642-fe0f",
  49900. "uc_match": "1f93d-1f3ff-2642-fe0f",
  49901. "uc_greedy": "1f93d-1f3ff-2642",
  49902. "shortnames": [":man_playing_water_polo_dark_skin_tone:"],
  49903. "category": "activity"
  49904. },
  49905. ":man_police_officer_tone1:": {
  49906. "uc_base": "1f46e-1f3fb-2642",
  49907. "uc_output": "1f46e-1f3fb-200d-2642-fe0f",
  49908. "uc_match": "1f46e-1f3fb-2642-fe0f",
  49909. "uc_greedy": "1f46e-1f3fb-2642",
  49910. "shortnames": [":man_police_officer_light_skin_tone:"],
  49911. "category": "people"
  49912. },
  49913. ":man_police_officer_tone2:": {
  49914. "uc_base": "1f46e-1f3fc-2642",
  49915. "uc_output": "1f46e-1f3fc-200d-2642-fe0f",
  49916. "uc_match": "1f46e-1f3fc-2642-fe0f",
  49917. "uc_greedy": "1f46e-1f3fc-2642",
  49918. "shortnames": [":man_police_officer_medium_light_skin_tone:"],
  49919. "category": "people"
  49920. },
  49921. ":man_police_officer_tone3:": {
  49922. "uc_base": "1f46e-1f3fd-2642",
  49923. "uc_output": "1f46e-1f3fd-200d-2642-fe0f",
  49924. "uc_match": "1f46e-1f3fd-2642-fe0f",
  49925. "uc_greedy": "1f46e-1f3fd-2642",
  49926. "shortnames": [":man_police_officer_medium_skin_tone:"],
  49927. "category": "people"
  49928. },
  49929. ":man_police_officer_tone4:": {
  49930. "uc_base": "1f46e-1f3fe-2642",
  49931. "uc_output": "1f46e-1f3fe-200d-2642-fe0f",
  49932. "uc_match": "1f46e-1f3fe-2642-fe0f",
  49933. "uc_greedy": "1f46e-1f3fe-2642",
  49934. "shortnames": [":man_police_officer_medium_dark_skin_tone:"],
  49935. "category": "people"
  49936. },
  49937. ":man_police_officer_tone5:": {
  49938. "uc_base": "1f46e-1f3ff-2642",
  49939. "uc_output": "1f46e-1f3ff-200d-2642-fe0f",
  49940. "uc_match": "1f46e-1f3ff-2642-fe0f",
  49941. "uc_greedy": "1f46e-1f3ff-2642",
  49942. "shortnames": [":man_police_officer_dark_skin_tone:"],
  49943. "category": "people"
  49944. },
  49945. ":man_pouting_tone1:": {
  49946. "uc_base": "1f64e-1f3fb-2642",
  49947. "uc_output": "1f64e-1f3fb-200d-2642-fe0f",
  49948. "uc_match": "1f64e-1f3fb-2642-fe0f",
  49949. "uc_greedy": "1f64e-1f3fb-2642",
  49950. "shortnames": [":man_pouting_light_skin_tone:"],
  49951. "category": "people"
  49952. },
  49953. ":man_pouting_tone2:": {
  49954. "uc_base": "1f64e-1f3fc-2642",
  49955. "uc_output": "1f64e-1f3fc-200d-2642-fe0f",
  49956. "uc_match": "1f64e-1f3fc-2642-fe0f",
  49957. "uc_greedy": "1f64e-1f3fc-2642",
  49958. "shortnames": [":man_pouting_medium_light_skin_tone:"],
  49959. "category": "people"
  49960. },
  49961. ":man_pouting_tone3:": {
  49962. "uc_base": "1f64e-1f3fd-2642",
  49963. "uc_output": "1f64e-1f3fd-200d-2642-fe0f",
  49964. "uc_match": "1f64e-1f3fd-2642-fe0f",
  49965. "uc_greedy": "1f64e-1f3fd-2642",
  49966. "shortnames": [":man_pouting_medium_skin_tone:"],
  49967. "category": "people"
  49968. },
  49969. ":man_pouting_tone4:": {
  49970. "uc_base": "1f64e-1f3fe-2642",
  49971. "uc_output": "1f64e-1f3fe-200d-2642-fe0f",
  49972. "uc_match": "1f64e-1f3fe-2642-fe0f",
  49973. "uc_greedy": "1f64e-1f3fe-2642",
  49974. "shortnames": [":man_pouting_medium_dark_skin_tone:"],
  49975. "category": "people"
  49976. },
  49977. ":man_pouting_tone5:": {
  49978. "uc_base": "1f64e-1f3ff-2642",
  49979. "uc_output": "1f64e-1f3ff-200d-2642-fe0f",
  49980. "uc_match": "1f64e-1f3ff-2642-fe0f",
  49981. "uc_greedy": "1f64e-1f3ff-2642",
  49982. "shortnames": [":man_pouting_dark_skin_tone:"],
  49983. "category": "people"
  49984. },
  49985. ":man_raising_hand_tone1:": {
  49986. "uc_base": "1f64b-1f3fb-2642",
  49987. "uc_output": "1f64b-1f3fb-200d-2642-fe0f",
  49988. "uc_match": "1f64b-1f3fb-2642-fe0f",
  49989. "uc_greedy": "1f64b-1f3fb-2642",
  49990. "shortnames": [":man_raising_hand_light_skin_tone:"],
  49991. "category": "people"
  49992. },
  49993. ":man_raising_hand_tone2:": {
  49994. "uc_base": "1f64b-1f3fc-2642",
  49995. "uc_output": "1f64b-1f3fc-200d-2642-fe0f",
  49996. "uc_match": "1f64b-1f3fc-2642-fe0f",
  49997. "uc_greedy": "1f64b-1f3fc-2642",
  49998. "shortnames": [":man_raising_hand_medium_light_skin_tone:"],
  49999. "category": "people"
  50000. },
  50001. ":man_raising_hand_tone3:": {
  50002. "uc_base": "1f64b-1f3fd-2642",
  50003. "uc_output": "1f64b-1f3fd-200d-2642-fe0f",
  50004. "uc_match": "1f64b-1f3fd-2642-fe0f",
  50005. "uc_greedy": "1f64b-1f3fd-2642",
  50006. "shortnames": [":man_raising_hand_medium_skin_tone:"],
  50007. "category": "people"
  50008. },
  50009. ":man_raising_hand_tone4:": {
  50010. "uc_base": "1f64b-1f3fe-2642",
  50011. "uc_output": "1f64b-1f3fe-200d-2642-fe0f",
  50012. "uc_match": "1f64b-1f3fe-2642-fe0f",
  50013. "uc_greedy": "1f64b-1f3fe-2642",
  50014. "shortnames": [":man_raising_hand_medium_dark_skin_tone:"],
  50015. "category": "people"
  50016. },
  50017. ":man_raising_hand_tone5:": {
  50018. "uc_base": "1f64b-1f3ff-2642",
  50019. "uc_output": "1f64b-1f3ff-200d-2642-fe0f",
  50020. "uc_match": "1f64b-1f3ff-2642-fe0f",
  50021. "uc_greedy": "1f64b-1f3ff-2642",
  50022. "shortnames": [":man_raising_hand_dark_skin_tone:"],
  50023. "category": "people"
  50024. },
  50025. ":man_rowing_boat_tone1:": {
  50026. "uc_base": "1f6a3-1f3fb-2642",
  50027. "uc_output": "1f6a3-1f3fb-200d-2642-fe0f",
  50028. "uc_match": "1f6a3-1f3fb-2642-fe0f",
  50029. "uc_greedy": "1f6a3-1f3fb-2642",
  50030. "shortnames": [":man_rowing_boat_light_skin_tone:"],
  50031. "category": "activity"
  50032. },
  50033. ":man_rowing_boat_tone2:": {
  50034. "uc_base": "1f6a3-1f3fc-2642",
  50035. "uc_output": "1f6a3-1f3fc-200d-2642-fe0f",
  50036. "uc_match": "1f6a3-1f3fc-2642-fe0f",
  50037. "uc_greedy": "1f6a3-1f3fc-2642",
  50038. "shortnames": [":man_rowing_boat_medium_light_skin_tone:"],
  50039. "category": "activity"
  50040. },
  50041. ":man_rowing_boat_tone3:": {
  50042. "uc_base": "1f6a3-1f3fd-2642",
  50043. "uc_output": "1f6a3-1f3fd-200d-2642-fe0f",
  50044. "uc_match": "1f6a3-1f3fd-2642-fe0f",
  50045. "uc_greedy": "1f6a3-1f3fd-2642",
  50046. "shortnames": [":man_rowing_boat_medium_skin_tone:"],
  50047. "category": "activity"
  50048. },
  50049. ":man_rowing_boat_tone4:": {
  50050. "uc_base": "1f6a3-1f3fe-2642",
  50051. "uc_output": "1f6a3-1f3fe-200d-2642-fe0f",
  50052. "uc_match": "1f6a3-1f3fe-2642-fe0f",
  50053. "uc_greedy": "1f6a3-1f3fe-2642",
  50054. "shortnames": [":man_rowing_boat_medium_dark_skin_tone:"],
  50055. "category": "activity"
  50056. },
  50057. ":man_rowing_boat_tone5:": {
  50058. "uc_base": "1f6a3-1f3ff-2642",
  50059. "uc_output": "1f6a3-1f3ff-200d-2642-fe0f",
  50060. "uc_match": "1f6a3-1f3ff-2642-fe0f",
  50061. "uc_greedy": "1f6a3-1f3ff-2642",
  50062. "shortnames": [":man_rowing_boat_dark_skin_tone:"],
  50063. "category": "activity"
  50064. },
  50065. ":man_running_tone1:": {
  50066. "uc_base": "1f3c3-1f3fb-2642",
  50067. "uc_output": "1f3c3-1f3fb-200d-2642-fe0f",
  50068. "uc_match": "1f3c3-1f3fb-2642-fe0f",
  50069. "uc_greedy": "1f3c3-1f3fb-2642",
  50070. "shortnames": [":man_running_light_skin_tone:"],
  50071. "category": "people"
  50072. },
  50073. ":man_running_tone2:": {
  50074. "uc_base": "1f3c3-1f3fc-2642",
  50075. "uc_output": "1f3c3-1f3fc-200d-2642-fe0f",
  50076. "uc_match": "1f3c3-1f3fc-2642-fe0f",
  50077. "uc_greedy": "1f3c3-1f3fc-2642",
  50078. "shortnames": [":man_running_medium_light_skin_tone:"],
  50079. "category": "people"
  50080. },
  50081. ":man_running_tone3:": {
  50082. "uc_base": "1f3c3-1f3fd-2642",
  50083. "uc_output": "1f3c3-1f3fd-200d-2642-fe0f",
  50084. "uc_match": "1f3c3-1f3fd-2642-fe0f",
  50085. "uc_greedy": "1f3c3-1f3fd-2642",
  50086. "shortnames": [":man_running_medium_skin_tone:"],
  50087. "category": "people"
  50088. },
  50089. ":man_running_tone4:": {
  50090. "uc_base": "1f3c3-1f3fe-2642",
  50091. "uc_output": "1f3c3-1f3fe-200d-2642-fe0f",
  50092. "uc_match": "1f3c3-1f3fe-2642-fe0f",
  50093. "uc_greedy": "1f3c3-1f3fe-2642",
  50094. "shortnames": [":man_running_medium_dark_skin_tone:"],
  50095. "category": "people"
  50096. },
  50097. ":man_running_tone5:": {
  50098. "uc_base": "1f3c3-1f3ff-2642",
  50099. "uc_output": "1f3c3-1f3ff-200d-2642-fe0f",
  50100. "uc_match": "1f3c3-1f3ff-2642-fe0f",
  50101. "uc_greedy": "1f3c3-1f3ff-2642",
  50102. "shortnames": [":man_running_dark_skin_tone:"],
  50103. "category": "people"
  50104. },
  50105. ":man_shrugging_tone1:": {
  50106. "uc_base": "1f937-1f3fb-2642",
  50107. "uc_output": "1f937-1f3fb-200d-2642-fe0f",
  50108. "uc_match": "1f937-1f3fb-2642-fe0f",
  50109. "uc_greedy": "1f937-1f3fb-2642",
  50110. "shortnames": [":man_shrugging_light_skin_tone:"],
  50111. "category": "people"
  50112. },
  50113. ":man_shrugging_tone2:": {
  50114. "uc_base": "1f937-1f3fc-2642",
  50115. "uc_output": "1f937-1f3fc-200d-2642-fe0f",
  50116. "uc_match": "1f937-1f3fc-2642-fe0f",
  50117. "uc_greedy": "1f937-1f3fc-2642",
  50118. "shortnames": [":man_shrugging_medium_light_skin_tone:"],
  50119. "category": "people"
  50120. },
  50121. ":man_shrugging_tone3:": {
  50122. "uc_base": "1f937-1f3fd-2642",
  50123. "uc_output": "1f937-1f3fd-200d-2642-fe0f",
  50124. "uc_match": "1f937-1f3fd-2642-fe0f",
  50125. "uc_greedy": "1f937-1f3fd-2642",
  50126. "shortnames": [":man_shrugging_medium_skin_tone:"],
  50127. "category": "people"
  50128. },
  50129. ":man_shrugging_tone4:": {
  50130. "uc_base": "1f937-1f3fe-2642",
  50131. "uc_output": "1f937-1f3fe-200d-2642-fe0f",
  50132. "uc_match": "1f937-1f3fe-2642-fe0f",
  50133. "uc_greedy": "1f937-1f3fe-2642",
  50134. "shortnames": [":man_shrugging_medium_dark_skin_tone:"],
  50135. "category": "people"
  50136. },
  50137. ":man_shrugging_tone5:": {
  50138. "uc_base": "1f937-1f3ff-2642",
  50139. "uc_output": "1f937-1f3ff-200d-2642-fe0f",
  50140. "uc_match": "1f937-1f3ff-2642-fe0f",
  50141. "uc_greedy": "1f937-1f3ff-2642",
  50142. "shortnames": [":man_shrugging_dark_skin_tone:"],
  50143. "category": "people"
  50144. },
  50145. ":man_surfing_tone1:": {
  50146. "uc_base": "1f3c4-1f3fb-2642",
  50147. "uc_output": "1f3c4-1f3fb-200d-2642-fe0f",
  50148. "uc_match": "1f3c4-1f3fb-2642-fe0f",
  50149. "uc_greedy": "1f3c4-1f3fb-2642",
  50150. "shortnames": [":man_surfing_light_skin_tone:"],
  50151. "category": "activity"
  50152. },
  50153. ":man_surfing_tone2:": {
  50154. "uc_base": "1f3c4-1f3fc-2642",
  50155. "uc_output": "1f3c4-1f3fc-200d-2642-fe0f",
  50156. "uc_match": "1f3c4-1f3fc-2642-fe0f",
  50157. "uc_greedy": "1f3c4-1f3fc-2642",
  50158. "shortnames": [":man_surfing_medium_light_skin_tone:"],
  50159. "category": "activity"
  50160. },
  50161. ":man_surfing_tone3:": {
  50162. "uc_base": "1f3c4-1f3fd-2642",
  50163. "uc_output": "1f3c4-1f3fd-200d-2642-fe0f",
  50164. "uc_match": "1f3c4-1f3fd-2642-fe0f",
  50165. "uc_greedy": "1f3c4-1f3fd-2642",
  50166. "shortnames": [":man_surfing_medium_skin_tone:"],
  50167. "category": "activity"
  50168. },
  50169. ":man_surfing_tone4:": {
  50170. "uc_base": "1f3c4-1f3fe-2642",
  50171. "uc_output": "1f3c4-1f3fe-200d-2642-fe0f",
  50172. "uc_match": "1f3c4-1f3fe-2642-fe0f",
  50173. "uc_greedy": "1f3c4-1f3fe-2642",
  50174. "shortnames": [":man_surfing_medium_dark_skin_tone:"],
  50175. "category": "activity"
  50176. },
  50177. ":man_surfing_tone5:": {
  50178. "uc_base": "1f3c4-1f3ff-2642",
  50179. "uc_output": "1f3c4-1f3ff-200d-2642-fe0f",
  50180. "uc_match": "1f3c4-1f3ff-2642-fe0f",
  50181. "uc_greedy": "1f3c4-1f3ff-2642",
  50182. "shortnames": [":man_surfing_dark_skin_tone:"],
  50183. "category": "activity"
  50184. },
  50185. ":man_swimming_tone1:": {
  50186. "uc_base": "1f3ca-1f3fb-2642",
  50187. "uc_output": "1f3ca-1f3fb-200d-2642-fe0f",
  50188. "uc_match": "1f3ca-1f3fb-2642-fe0f",
  50189. "uc_greedy": "1f3ca-1f3fb-2642",
  50190. "shortnames": [":man_swimming_light_skin_tone:"],
  50191. "category": "activity"
  50192. },
  50193. ":man_swimming_tone2:": {
  50194. "uc_base": "1f3ca-1f3fc-2642",
  50195. "uc_output": "1f3ca-1f3fc-200d-2642-fe0f",
  50196. "uc_match": "1f3ca-1f3fc-2642-fe0f",
  50197. "uc_greedy": "1f3ca-1f3fc-2642",
  50198. "shortnames": [":man_swimming_medium_light_skin_tone:"],
  50199. "category": "activity"
  50200. },
  50201. ":man_swimming_tone3:": {
  50202. "uc_base": "1f3ca-1f3fd-2642",
  50203. "uc_output": "1f3ca-1f3fd-200d-2642-fe0f",
  50204. "uc_match": "1f3ca-1f3fd-2642-fe0f",
  50205. "uc_greedy": "1f3ca-1f3fd-2642",
  50206. "shortnames": [":man_swimming_medium_skin_tone:"],
  50207. "category": "activity"
  50208. },
  50209. ":man_swimming_tone4:": {
  50210. "uc_base": "1f3ca-1f3fe-2642",
  50211. "uc_output": "1f3ca-1f3fe-200d-2642-fe0f",
  50212. "uc_match": "1f3ca-1f3fe-2642-fe0f",
  50213. "uc_greedy": "1f3ca-1f3fe-2642",
  50214. "shortnames": [":man_swimming_medium_dark_skin_tone:"],
  50215. "category": "activity"
  50216. },
  50217. ":man_swimming_tone5:": {
  50218. "uc_base": "1f3ca-1f3ff-2642",
  50219. "uc_output": "1f3ca-1f3ff-200d-2642-fe0f",
  50220. "uc_match": "1f3ca-1f3ff-2642-fe0f",
  50221. "uc_greedy": "1f3ca-1f3ff-2642",
  50222. "shortnames": [":man_swimming_dark_skin_tone:"],
  50223. "category": "activity"
  50224. },
  50225. ":man_tipping_hand_tone1:": {
  50226. "uc_base": "1f481-1f3fb-2642",
  50227. "uc_output": "1f481-1f3fb-200d-2642-fe0f",
  50228. "uc_match": "1f481-1f3fb-2642-fe0f",
  50229. "uc_greedy": "1f481-1f3fb-2642",
  50230. "shortnames": [":man_tipping_hand_light_skin_tone:"],
  50231. "category": "people"
  50232. },
  50233. ":man_tipping_hand_tone2:": {
  50234. "uc_base": "1f481-1f3fc-2642",
  50235. "uc_output": "1f481-1f3fc-200d-2642-fe0f",
  50236. "uc_match": "1f481-1f3fc-2642-fe0f",
  50237. "uc_greedy": "1f481-1f3fc-2642",
  50238. "shortnames": [":man_tipping_hand_medium_light_skin_tone:"],
  50239. "category": "people"
  50240. },
  50241. ":man_tipping_hand_tone3:": {
  50242. "uc_base": "1f481-1f3fd-2642",
  50243. "uc_output": "1f481-1f3fd-200d-2642-fe0f",
  50244. "uc_match": "1f481-1f3fd-2642-fe0f",
  50245. "uc_greedy": "1f481-1f3fd-2642",
  50246. "shortnames": [":man_tipping_hand_medium_skin_tone:"],
  50247. "category": "people"
  50248. },
  50249. ":man_tipping_hand_tone4:": {
  50250. "uc_base": "1f481-1f3fe-2642",
  50251. "uc_output": "1f481-1f3fe-200d-2642-fe0f",
  50252. "uc_match": "1f481-1f3fe-2642-fe0f",
  50253. "uc_greedy": "1f481-1f3fe-2642",
  50254. "shortnames": [":man_tipping_hand_medium_dark_skin_tone:"],
  50255. "category": "people"
  50256. },
  50257. ":man_tipping_hand_tone5:": {
  50258. "uc_base": "1f481-1f3ff-2642",
  50259. "uc_output": "1f481-1f3ff-200d-2642-fe0f",
  50260. "uc_match": "1f481-1f3ff-2642-fe0f",
  50261. "uc_greedy": "1f481-1f3ff-2642",
  50262. "shortnames": [":man_tipping_hand_dark_skin_tone:"],
  50263. "category": "people"
  50264. },
  50265. ":man_vampire_tone1:": {
  50266. "uc_base": "1f9db-1f3fb-2642",
  50267. "uc_output": "1f9db-1f3fb-200d-2642-fe0f",
  50268. "uc_match": "1f9db-1f3fb-2642-fe0f",
  50269. "uc_greedy": "1f9db-1f3fb-2642",
  50270. "shortnames": [":man_vampire_light_skin_tone:"],
  50271. "category": "people"
  50272. },
  50273. ":man_vampire_tone2:": {
  50274. "uc_base": "1f9db-1f3fc-2642",
  50275. "uc_output": "1f9db-1f3fc-200d-2642-fe0f",
  50276. "uc_match": "1f9db-1f3fc-2642-fe0f",
  50277. "uc_greedy": "1f9db-1f3fc-2642",
  50278. "shortnames": [":man_vampire_medium_light_skin_tone:"],
  50279. "category": "people"
  50280. },
  50281. ":man_vampire_tone3:": {
  50282. "uc_base": "1f9db-1f3fd-2642",
  50283. "uc_output": "1f9db-1f3fd-200d-2642-fe0f",
  50284. "uc_match": "1f9db-1f3fd-2642-fe0f",
  50285. "uc_greedy": "1f9db-1f3fd-2642",
  50286. "shortnames": [":man_vampire_medium_skin_tone:"],
  50287. "category": "people"
  50288. },
  50289. ":man_vampire_tone4:": {
  50290. "uc_base": "1f9db-1f3fe-2642",
  50291. "uc_output": "1f9db-1f3fe-200d-2642-fe0f",
  50292. "uc_match": "1f9db-1f3fe-2642-fe0f",
  50293. "uc_greedy": "1f9db-1f3fe-2642",
  50294. "shortnames": [":man_vampire_medium_dark_skin_tone:"],
  50295. "category": "people"
  50296. },
  50297. ":man_vampire_tone5:": {
  50298. "uc_base": "1f9db-1f3ff-2642",
  50299. "uc_output": "1f9db-1f3ff-200d-2642-fe0f",
  50300. "uc_match": "1f9db-1f3ff-2642-fe0f",
  50301. "uc_greedy": "1f9db-1f3ff-2642",
  50302. "shortnames": [":man_vampire_dark_skin_tone:"],
  50303. "category": "people"
  50304. },
  50305. ":man_walking_tone1:": {
  50306. "uc_base": "1f6b6-1f3fb-2642",
  50307. "uc_output": "1f6b6-1f3fb-200d-2642-fe0f",
  50308. "uc_match": "1f6b6-1f3fb-2642-fe0f",
  50309. "uc_greedy": "1f6b6-1f3fb-2642",
  50310. "shortnames": [":man_walking_light_skin_tone:"],
  50311. "category": "people"
  50312. },
  50313. ":man_walking_tone2:": {
  50314. "uc_base": "1f6b6-1f3fc-2642",
  50315. "uc_output": "1f6b6-1f3fc-200d-2642-fe0f",
  50316. "uc_match": "1f6b6-1f3fc-2642-fe0f",
  50317. "uc_greedy": "1f6b6-1f3fc-2642",
  50318. "shortnames": [":man_walking_medium_light_skin_tone:"],
  50319. "category": "people"
  50320. },
  50321. ":man_walking_tone3:": {
  50322. "uc_base": "1f6b6-1f3fd-2642",
  50323. "uc_output": "1f6b6-1f3fd-200d-2642-fe0f",
  50324. "uc_match": "1f6b6-1f3fd-2642-fe0f",
  50325. "uc_greedy": "1f6b6-1f3fd-2642",
  50326. "shortnames": [":man_walking_medium_skin_tone:"],
  50327. "category": "people"
  50328. },
  50329. ":man_walking_tone4:": {
  50330. "uc_base": "1f6b6-1f3fe-2642",
  50331. "uc_output": "1f6b6-1f3fe-200d-2642-fe0f",
  50332. "uc_match": "1f6b6-1f3fe-2642-fe0f",
  50333. "uc_greedy": "1f6b6-1f3fe-2642",
  50334. "shortnames": [":man_walking_medium_dark_skin_tone:"],
  50335. "category": "people"
  50336. },
  50337. ":man_walking_tone5:": {
  50338. "uc_base": "1f6b6-1f3ff-2642",
  50339. "uc_output": "1f6b6-1f3ff-200d-2642-fe0f",
  50340. "uc_match": "1f6b6-1f3ff-2642-fe0f",
  50341. "uc_greedy": "1f6b6-1f3ff-2642",
  50342. "shortnames": [":man_walking_dark_skin_tone:"],
  50343. "category": "people"
  50344. },
  50345. ":man_wearing_turban_tone1:": {
  50346. "uc_base": "1f473-1f3fb-2642",
  50347. "uc_output": "1f473-1f3fb-200d-2642-fe0f",
  50348. "uc_match": "1f473-1f3fb-2642-fe0f",
  50349. "uc_greedy": "1f473-1f3fb-2642",
  50350. "shortnames": [":man_wearing_turban_light_skin_tone:"],
  50351. "category": "people"
  50352. },
  50353. ":man_wearing_turban_tone2:": {
  50354. "uc_base": "1f473-1f3fc-2642",
  50355. "uc_output": "1f473-1f3fc-200d-2642-fe0f",
  50356. "uc_match": "1f473-1f3fc-2642-fe0f",
  50357. "uc_greedy": "1f473-1f3fc-2642",
  50358. "shortnames": [":man_wearing_turban_medium_light_skin_tone:"],
  50359. "category": "people"
  50360. },
  50361. ":man_wearing_turban_tone3:": {
  50362. "uc_base": "1f473-1f3fd-2642",
  50363. "uc_output": "1f473-1f3fd-200d-2642-fe0f",
  50364. "uc_match": "1f473-1f3fd-2642-fe0f",
  50365. "uc_greedy": "1f473-1f3fd-2642",
  50366. "shortnames": [":man_wearing_turban_medium_skin_tone:"],
  50367. "category": "people"
  50368. },
  50369. ":man_wearing_turban_tone4:": {
  50370. "uc_base": "1f473-1f3fe-2642",
  50371. "uc_output": "1f473-1f3fe-200d-2642-fe0f",
  50372. "uc_match": "1f473-1f3fe-2642-fe0f",
  50373. "uc_greedy": "1f473-1f3fe-2642",
  50374. "shortnames": [":man_wearing_turban_medium_dark_skin_tone:"],
  50375. "category": "people"
  50376. },
  50377. ":man_wearing_turban_tone5:": {
  50378. "uc_base": "1f473-1f3ff-2642",
  50379. "uc_output": "1f473-1f3ff-200d-2642-fe0f",
  50380. "uc_match": "1f473-1f3ff-2642-fe0f",
  50381. "uc_greedy": "1f473-1f3ff-2642",
  50382. "shortnames": [":man_wearing_turban_dark_skin_tone:"],
  50383. "category": "people"
  50384. },
  50385. ":mermaid_tone1:": {
  50386. "uc_base": "1f9dc-1f3fb-2640",
  50387. "uc_output": "1f9dc-1f3fb-200d-2640-fe0f",
  50388. "uc_match": "1f9dc-1f3fb-2640-fe0f",
  50389. "uc_greedy": "1f9dc-1f3fb-2640",
  50390. "shortnames": [":mermaid_light_skin_tone:"],
  50391. "category": "people"
  50392. },
  50393. ":mermaid_tone2:": {
  50394. "uc_base": "1f9dc-1f3fc-2640",
  50395. "uc_output": "1f9dc-1f3fc-200d-2640-fe0f",
  50396. "uc_match": "1f9dc-1f3fc-2640-fe0f",
  50397. "uc_greedy": "1f9dc-1f3fc-2640",
  50398. "shortnames": [":mermaid_medium_light_skin_tone:"],
  50399. "category": "people"
  50400. },
  50401. ":mermaid_tone3:": {
  50402. "uc_base": "1f9dc-1f3fd-2640",
  50403. "uc_output": "1f9dc-1f3fd-200d-2640-fe0f",
  50404. "uc_match": "1f9dc-1f3fd-2640-fe0f",
  50405. "uc_greedy": "1f9dc-1f3fd-2640",
  50406. "shortnames": [":mermaid_medium_skin_tone:"],
  50407. "category": "people"
  50408. },
  50409. ":mermaid_tone4:": {
  50410. "uc_base": "1f9dc-1f3fe-2640",
  50411. "uc_output": "1f9dc-1f3fe-200d-2640-fe0f",
  50412. "uc_match": "1f9dc-1f3fe-2640-fe0f",
  50413. "uc_greedy": "1f9dc-1f3fe-2640",
  50414. "shortnames": [":mermaid_medium_dark_skin_tone:"],
  50415. "category": "people"
  50416. },
  50417. ":mermaid_tone5:": {
  50418. "uc_base": "1f9dc-1f3ff-2640",
  50419. "uc_output": "1f9dc-1f3ff-200d-2640-fe0f",
  50420. "uc_match": "1f9dc-1f3ff-2640-fe0f",
  50421. "uc_greedy": "1f9dc-1f3ff-2640",
  50422. "shortnames": [":mermaid_dark_skin_tone:"],
  50423. "category": "people"
  50424. },
  50425. ":merman_tone1:": {
  50426. "uc_base": "1f9dc-1f3fb-2642",
  50427. "uc_output": "1f9dc-1f3fb-200d-2642-fe0f",
  50428. "uc_match": "1f9dc-1f3fb-2642-fe0f",
  50429. "uc_greedy": "1f9dc-1f3fb-2642",
  50430. "shortnames": [":merman_light_skin_tone:"],
  50431. "category": "people"
  50432. },
  50433. ":merman_tone2:": {
  50434. "uc_base": "1f9dc-1f3fc-2642",
  50435. "uc_output": "1f9dc-1f3fc-200d-2642-fe0f",
  50436. "uc_match": "1f9dc-1f3fc-2642-fe0f",
  50437. "uc_greedy": "1f9dc-1f3fc-2642",
  50438. "shortnames": [":merman_medium_light_skin_tone:"],
  50439. "category": "people"
  50440. },
  50441. ":merman_tone3:": {
  50442. "uc_base": "1f9dc-1f3fd-2642",
  50443. "uc_output": "1f9dc-1f3fd-200d-2642-fe0f",
  50444. "uc_match": "1f9dc-1f3fd-2642-fe0f",
  50445. "uc_greedy": "1f9dc-1f3fd-2642",
  50446. "shortnames": [":merman_medium_skin_tone:"],
  50447. "category": "people"
  50448. },
  50449. ":merman_tone4:": {
  50450. "uc_base": "1f9dc-1f3fe-2642",
  50451. "uc_output": "1f9dc-1f3fe-200d-2642-fe0f",
  50452. "uc_match": "1f9dc-1f3fe-2642-fe0f",
  50453. "uc_greedy": "1f9dc-1f3fe-2642",
  50454. "shortnames": [":merman_medium_dark_skin_tone:"],
  50455. "category": "people"
  50456. },
  50457. ":merman_tone5:": {
  50458. "uc_base": "1f9dc-1f3ff-2642",
  50459. "uc_output": "1f9dc-1f3ff-200d-2642-fe0f",
  50460. "uc_match": "1f9dc-1f3ff-2642-fe0f",
  50461. "uc_greedy": "1f9dc-1f3ff-2642",
  50462. "shortnames": [":merman_dark_skin_tone:"],
  50463. "category": "people"
  50464. },
  50465. ":woman_biking_tone1:": {
  50466. "uc_base": "1f6b4-1f3fb-2640",
  50467. "uc_output": "1f6b4-1f3fb-200d-2640-fe0f",
  50468. "uc_match": "1f6b4-1f3fb-2640-fe0f",
  50469. "uc_greedy": "1f6b4-1f3fb-2640",
  50470. "shortnames": [":woman_biking_light_skin_tone:"],
  50471. "category": "activity"
  50472. },
  50473. ":woman_biking_tone2:": {
  50474. "uc_base": "1f6b4-1f3fc-2640",
  50475. "uc_output": "1f6b4-1f3fc-200d-2640-fe0f",
  50476. "uc_match": "1f6b4-1f3fc-2640-fe0f",
  50477. "uc_greedy": "1f6b4-1f3fc-2640",
  50478. "shortnames": [":woman_biking_medium_light_skin_tone:"],
  50479. "category": "activity"
  50480. },
  50481. ":woman_biking_tone3:": {
  50482. "uc_base": "1f6b4-1f3fd-2640",
  50483. "uc_output": "1f6b4-1f3fd-200d-2640-fe0f",
  50484. "uc_match": "1f6b4-1f3fd-2640-fe0f",
  50485. "uc_greedy": "1f6b4-1f3fd-2640",
  50486. "shortnames": [":woman_biking_medium_skin_tone:"],
  50487. "category": "activity"
  50488. },
  50489. ":woman_biking_tone4:": {
  50490. "uc_base": "1f6b4-1f3fe-2640",
  50491. "uc_output": "1f6b4-1f3fe-200d-2640-fe0f",
  50492. "uc_match": "1f6b4-1f3fe-2640-fe0f",
  50493. "uc_greedy": "1f6b4-1f3fe-2640",
  50494. "shortnames": [":woman_biking_medium_dark_skin_tone:"],
  50495. "category": "activity"
  50496. },
  50497. ":woman_biking_tone5:": {
  50498. "uc_base": "1f6b4-1f3ff-2640",
  50499. "uc_output": "1f6b4-1f3ff-200d-2640-fe0f",
  50500. "uc_match": "1f6b4-1f3ff-2640-fe0f",
  50501. "uc_greedy": "1f6b4-1f3ff-2640",
  50502. "shortnames": [":woman_biking_dark_skin_tone:"],
  50503. "category": "activity"
  50504. },
  50505. ":woman_bowing_tone1:": {
  50506. "uc_base": "1f647-1f3fb-2640",
  50507. "uc_output": "1f647-1f3fb-200d-2640-fe0f",
  50508. "uc_match": "1f647-1f3fb-2640-fe0f",
  50509. "uc_greedy": "1f647-1f3fb-2640",
  50510. "shortnames": [":woman_bowing_light_skin_tone:"],
  50511. "category": "people"
  50512. },
  50513. ":woman_bowing_tone2:": {
  50514. "uc_base": "1f647-1f3fc-2640",
  50515. "uc_output": "1f647-1f3fc-200d-2640-fe0f",
  50516. "uc_match": "1f647-1f3fc-2640-fe0f",
  50517. "uc_greedy": "1f647-1f3fc-2640",
  50518. "shortnames": [":woman_bowing_medium_light_skin_tone:"],
  50519. "category": "people"
  50520. },
  50521. ":woman_bowing_tone3:": {
  50522. "uc_base": "1f647-1f3fd-2640",
  50523. "uc_output": "1f647-1f3fd-200d-2640-fe0f",
  50524. "uc_match": "1f647-1f3fd-2640-fe0f",
  50525. "uc_greedy": "1f647-1f3fd-2640",
  50526. "shortnames": [":woman_bowing_medium_skin_tone:"],
  50527. "category": "people"
  50528. },
  50529. ":woman_bowing_tone4:": {
  50530. "uc_base": "1f647-1f3fe-2640",
  50531. "uc_output": "1f647-1f3fe-200d-2640-fe0f",
  50532. "uc_match": "1f647-1f3fe-2640-fe0f",
  50533. "uc_greedy": "1f647-1f3fe-2640",
  50534. "shortnames": [":woman_bowing_medium_dark_skin_tone:"],
  50535. "category": "people"
  50536. },
  50537. ":woman_bowing_tone5:": {
  50538. "uc_base": "1f647-1f3ff-2640",
  50539. "uc_output": "1f647-1f3ff-200d-2640-fe0f",
  50540. "uc_match": "1f647-1f3ff-2640-fe0f",
  50541. "uc_greedy": "1f647-1f3ff-2640",
  50542. "shortnames": [":woman_bowing_dark_skin_tone:"],
  50543. "category": "people"
  50544. },
  50545. ":woman_cartwheeling_tone1:": {
  50546. "uc_base": "1f938-1f3fb-2640",
  50547. "uc_output": "1f938-1f3fb-200d-2640-fe0f",
  50548. "uc_match": "1f938-1f3fb-2640-fe0f",
  50549. "uc_greedy": "1f938-1f3fb-2640",
  50550. "shortnames": [":woman_cartwheeling_light_skin_tone:"],
  50551. "category": "activity"
  50552. },
  50553. ":woman_cartwheeling_tone2:": {
  50554. "uc_base": "1f938-1f3fc-2640",
  50555. "uc_output": "1f938-1f3fc-200d-2640-fe0f",
  50556. "uc_match": "1f938-1f3fc-2640-fe0f",
  50557. "uc_greedy": "1f938-1f3fc-2640",
  50558. "shortnames": [":woman_cartwheeling_medium_light_skin_tone:"],
  50559. "category": "activity"
  50560. },
  50561. ":woman_cartwheeling_tone3:": {
  50562. "uc_base": "1f938-1f3fd-2640",
  50563. "uc_output": "1f938-1f3fd-200d-2640-fe0f",
  50564. "uc_match": "1f938-1f3fd-2640-fe0f",
  50565. "uc_greedy": "1f938-1f3fd-2640",
  50566. "shortnames": [":woman_cartwheeling_medium_skin_tone:"],
  50567. "category": "activity"
  50568. },
  50569. ":woman_cartwheeling_tone4:": {
  50570. "uc_base": "1f938-1f3fe-2640",
  50571. "uc_output": "1f938-1f3fe-200d-2640-fe0f",
  50572. "uc_match": "1f938-1f3fe-2640-fe0f",
  50573. "uc_greedy": "1f938-1f3fe-2640",
  50574. "shortnames": [":woman_cartwheeling_medium_dark_skin_tone:"],
  50575. "category": "activity"
  50576. },
  50577. ":woman_cartwheeling_tone5:": {
  50578. "uc_base": "1f938-1f3ff-2640",
  50579. "uc_output": "1f938-1f3ff-200d-2640-fe0f",
  50580. "uc_match": "1f938-1f3ff-2640-fe0f",
  50581. "uc_greedy": "1f938-1f3ff-2640",
  50582. "shortnames": [":woman_cartwheeling_dark_skin_tone:"],
  50583. "category": "activity"
  50584. },
  50585. ":woman_climbing_tone1:": {
  50586. "uc_base": "1f9d7-1f3fb-2640",
  50587. "uc_output": "1f9d7-1f3fb-200d-2640-fe0f",
  50588. "uc_match": "1f9d7-1f3fb-2640-fe0f",
  50589. "uc_greedy": "1f9d7-1f3fb-2640",
  50590. "shortnames": [":woman_climbing_light_skin_tone:"],
  50591. "category": "activity"
  50592. },
  50593. ":woman_climbing_tone2:": {
  50594. "uc_base": "1f9d7-1f3fc-2640",
  50595. "uc_output": "1f9d7-1f3fc-200d-2640-fe0f",
  50596. "uc_match": "1f9d7-1f3fc-2640-fe0f",
  50597. "uc_greedy": "1f9d7-1f3fc-2640",
  50598. "shortnames": [":woman_climbing_medium_light_skin_tone:"],
  50599. "category": "activity"
  50600. },
  50601. ":woman_climbing_tone3:": {
  50602. "uc_base": "1f9d7-1f3fd-2640",
  50603. "uc_output": "1f9d7-1f3fd-200d-2640-fe0f",
  50604. "uc_match": "1f9d7-1f3fd-2640-fe0f",
  50605. "uc_greedy": "1f9d7-1f3fd-2640",
  50606. "shortnames": [":woman_climbing_medium_skin_tone:"],
  50607. "category": "activity"
  50608. },
  50609. ":woman_climbing_tone4:": {
  50610. "uc_base": "1f9d7-1f3fe-2640",
  50611. "uc_output": "1f9d7-1f3fe-200d-2640-fe0f",
  50612. "uc_match": "1f9d7-1f3fe-2640-fe0f",
  50613. "uc_greedy": "1f9d7-1f3fe-2640",
  50614. "shortnames": [":woman_climbing_medium_dark_skin_tone:"],
  50615. "category": "activity"
  50616. },
  50617. ":woman_climbing_tone5:": {
  50618. "uc_base": "1f9d7-1f3ff-2640",
  50619. "uc_output": "1f9d7-1f3ff-200d-2640-fe0f",
  50620. "uc_match": "1f9d7-1f3ff-2640-fe0f",
  50621. "uc_greedy": "1f9d7-1f3ff-2640",
  50622. "shortnames": [":woman_climbing_dark_skin_tone:"],
  50623. "category": "activity"
  50624. },
  50625. ":woman_construction_worker_tone1:": {
  50626. "uc_base": "1f477-1f3fb-2640",
  50627. "uc_output": "1f477-1f3fb-200d-2640-fe0f",
  50628. "uc_match": "1f477-1f3fb-2640-fe0f",
  50629. "uc_greedy": "1f477-1f3fb-2640",
  50630. "shortnames": [":woman_construction_worker_light_skin_tone:"],
  50631. "category": "people"
  50632. },
  50633. ":woman_construction_worker_tone2:": {
  50634. "uc_base": "1f477-1f3fc-2640",
  50635. "uc_output": "1f477-1f3fc-200d-2640-fe0f",
  50636. "uc_match": "1f477-1f3fc-2640-fe0f",
  50637. "uc_greedy": "1f477-1f3fc-2640",
  50638. "shortnames": [":woman_construction_worker_medium_light_skin_tone:"],
  50639. "category": "people"
  50640. },
  50641. ":woman_construction_worker_tone3:": {
  50642. "uc_base": "1f477-1f3fd-2640",
  50643. "uc_output": "1f477-1f3fd-200d-2640-fe0f",
  50644. "uc_match": "1f477-1f3fd-2640-fe0f",
  50645. "uc_greedy": "1f477-1f3fd-2640",
  50646. "shortnames": [":woman_construction_worker_medium_skin_tone:"],
  50647. "category": "people"
  50648. },
  50649. ":woman_construction_worker_tone4:": {
  50650. "uc_base": "1f477-1f3fe-2640",
  50651. "uc_output": "1f477-1f3fe-200d-2640-fe0f",
  50652. "uc_match": "1f477-1f3fe-2640-fe0f",
  50653. "uc_greedy": "1f477-1f3fe-2640",
  50654. "shortnames": [":woman_construction_worker_medium_dark_skin_tone:"],
  50655. "category": "people"
  50656. },
  50657. ":woman_construction_worker_tone5:": {
  50658. "uc_base": "1f477-1f3ff-2640",
  50659. "uc_output": "1f477-1f3ff-200d-2640-fe0f",
  50660. "uc_match": "1f477-1f3ff-2640-fe0f",
  50661. "uc_greedy": "1f477-1f3ff-2640",
  50662. "shortnames": [":woman_construction_worker_dark_skin_tone:"],
  50663. "category": "people"
  50664. },
  50665. ":woman_detective_tone1:": {
  50666. "uc_base": "1f575-1f3fb-2640",
  50667. "uc_output": "1f575-1f3fb-200d-2640-fe0f",
  50668. "uc_match": "1f575-fe0f-1f3fb-2640-fe0f",
  50669. "uc_greedy": "1f575-1f3fb-2640",
  50670. "shortnames": [":woman_detective_light_skin_tone:"],
  50671. "category": "people"
  50672. },
  50673. ":woman_detective_tone2:": {
  50674. "uc_base": "1f575-1f3fc-2640",
  50675. "uc_output": "1f575-1f3fc-200d-2640-fe0f",
  50676. "uc_match": "1f575-fe0f-1f3fc-2640-fe0f",
  50677. "uc_greedy": "1f575-1f3fc-2640",
  50678. "shortnames": [":woman_detective_medium_light_skin_tone:"],
  50679. "category": "people"
  50680. },
  50681. ":woman_detective_tone3:": {
  50682. "uc_base": "1f575-1f3fd-2640",
  50683. "uc_output": "1f575-1f3fd-200d-2640-fe0f",
  50684. "uc_match": "1f575-fe0f-1f3fd-2640-fe0f",
  50685. "uc_greedy": "1f575-1f3fd-2640",
  50686. "shortnames": [":woman_detective_medium_skin_tone:"],
  50687. "category": "people"
  50688. },
  50689. ":woman_detective_tone4:": {
  50690. "uc_base": "1f575-1f3fe-2640",
  50691. "uc_output": "1f575-1f3fe-200d-2640-fe0f",
  50692. "uc_match": "1f575-fe0f-1f3fe-2640-fe0f",
  50693. "uc_greedy": "1f575-1f3fe-2640",
  50694. "shortnames": [":woman_detective_medium_dark_skin_tone:"],
  50695. "category": "people"
  50696. },
  50697. ":woman_detective_tone5:": {
  50698. "uc_base": "1f575-1f3ff-2640",
  50699. "uc_output": "1f575-1f3ff-200d-2640-fe0f",
  50700. "uc_match": "1f575-fe0f-1f3ff-2640-fe0f",
  50701. "uc_greedy": "1f575-1f3ff-2640",
  50702. "shortnames": [":woman_detective_dark_skin_tone:"],
  50703. "category": "people"
  50704. },
  50705. ":woman_elf_tone1:": {
  50706. "uc_base": "1f9dd-1f3fb-2640",
  50707. "uc_output": "1f9dd-1f3fb-200d-2640-fe0f",
  50708. "uc_match": "1f9dd-1f3fb-2640-fe0f",
  50709. "uc_greedy": "1f9dd-1f3fb-2640",
  50710. "shortnames": [":woman_elf_light_skin_tone:"],
  50711. "category": "people"
  50712. },
  50713. ":woman_elf_tone2:": {
  50714. "uc_base": "1f9dd-1f3fc-2640",
  50715. "uc_output": "1f9dd-1f3fc-200d-2640-fe0f",
  50716. "uc_match": "1f9dd-1f3fc-2640-fe0f",
  50717. "uc_greedy": "1f9dd-1f3fc-2640",
  50718. "shortnames": [":woman_elf_medium_light_skin_tone:"],
  50719. "category": "people"
  50720. },
  50721. ":woman_elf_tone3:": {
  50722. "uc_base": "1f9dd-1f3fd-2640",
  50723. "uc_output": "1f9dd-1f3fd-200d-2640-fe0f",
  50724. "uc_match": "1f9dd-1f3fd-2640-fe0f",
  50725. "uc_greedy": "1f9dd-1f3fd-2640",
  50726. "shortnames": [":woman_elf_medium_skin_tone:"],
  50727. "category": "people"
  50728. },
  50729. ":woman_elf_tone4:": {
  50730. "uc_base": "1f9dd-1f3fe-2640",
  50731. "uc_output": "1f9dd-1f3fe-200d-2640-fe0f",
  50732. "uc_match": "1f9dd-1f3fe-2640-fe0f",
  50733. "uc_greedy": "1f9dd-1f3fe-2640",
  50734. "shortnames": [":woman_elf_medium_dark_skin_tone:"],
  50735. "category": "people"
  50736. },
  50737. ":woman_elf_tone5:": {
  50738. "uc_base": "1f9dd-1f3ff-2640",
  50739. "uc_output": "1f9dd-1f3ff-200d-2640-fe0f",
  50740. "uc_match": "1f9dd-1f3ff-2640-fe0f",
  50741. "uc_greedy": "1f9dd-1f3ff-2640",
  50742. "shortnames": [":woman_elf_dark_skin_tone:"],
  50743. "category": "people"
  50744. },
  50745. ":woman_facepalming_tone1:": {
  50746. "uc_base": "1f926-1f3fb-2640",
  50747. "uc_output": "1f926-1f3fb-200d-2640-fe0f",
  50748. "uc_match": "1f926-1f3fb-2640-fe0f",
  50749. "uc_greedy": "1f926-1f3fb-2640",
  50750. "shortnames": [":woman_facepalming_light_skin_tone:"],
  50751. "category": "people"
  50752. },
  50753. ":woman_facepalming_tone2:": {
  50754. "uc_base": "1f926-1f3fc-2640",
  50755. "uc_output": "1f926-1f3fc-200d-2640-fe0f",
  50756. "uc_match": "1f926-1f3fc-2640-fe0f",
  50757. "uc_greedy": "1f926-1f3fc-2640",
  50758. "shortnames": [":woman_facepalming_medium_light_skin_tone:"],
  50759. "category": "people"
  50760. },
  50761. ":woman_facepalming_tone3:": {
  50762. "uc_base": "1f926-1f3fd-2640",
  50763. "uc_output": "1f926-1f3fd-200d-2640-fe0f",
  50764. "uc_match": "1f926-1f3fd-2640-fe0f",
  50765. "uc_greedy": "1f926-1f3fd-2640",
  50766. "shortnames": [":woman_facepalming_medium_skin_tone:"],
  50767. "category": "people"
  50768. },
  50769. ":woman_facepalming_tone4:": {
  50770. "uc_base": "1f926-1f3fe-2640",
  50771. "uc_output": "1f926-1f3fe-200d-2640-fe0f",
  50772. "uc_match": "1f926-1f3fe-2640-fe0f",
  50773. "uc_greedy": "1f926-1f3fe-2640",
  50774. "shortnames": [":woman_facepalming_medium_dark_skin_tone:"],
  50775. "category": "people"
  50776. },
  50777. ":woman_facepalming_tone5:": {
  50778. "uc_base": "1f926-1f3ff-2640",
  50779. "uc_output": "1f926-1f3ff-200d-2640-fe0f",
  50780. "uc_match": "1f926-1f3ff-2640-fe0f",
  50781. "uc_greedy": "1f926-1f3ff-2640",
  50782. "shortnames": [":woman_facepalming_dark_skin_tone:"],
  50783. "category": "people"
  50784. },
  50785. ":woman_fairy_tone1:": {
  50786. "uc_base": "1f9da-1f3fb-2640",
  50787. "uc_output": "1f9da-1f3fb-200d-2640-fe0f",
  50788. "uc_match": "1f9da-1f3fb-2640-fe0f",
  50789. "uc_greedy": "1f9da-1f3fb-2640",
  50790. "shortnames": [":woman_fairy_light_skin_tone:"],
  50791. "category": "people"
  50792. },
  50793. ":woman_fairy_tone2:": {
  50794. "uc_base": "1f9da-1f3fc-2640",
  50795. "uc_output": "1f9da-1f3fc-200d-2640-fe0f",
  50796. "uc_match": "1f9da-1f3fc-2640-fe0f",
  50797. "uc_greedy": "1f9da-1f3fc-2640",
  50798. "shortnames": [":woman_fairy_medium_light_skin_tone:"],
  50799. "category": "people"
  50800. },
  50801. ":woman_fairy_tone3:": {
  50802. "uc_base": "1f9da-1f3fd-2640",
  50803. "uc_output": "1f9da-1f3fd-200d-2640-fe0f",
  50804. "uc_match": "1f9da-1f3fd-2640-fe0f",
  50805. "uc_greedy": "1f9da-1f3fd-2640",
  50806. "shortnames": [":woman_fairy_medium_skin_tone:"],
  50807. "category": "people"
  50808. },
  50809. ":woman_fairy_tone4:": {
  50810. "uc_base": "1f9da-1f3fe-2640",
  50811. "uc_output": "1f9da-1f3fe-200d-2640-fe0f",
  50812. "uc_match": "1f9da-1f3fe-2640-fe0f",
  50813. "uc_greedy": "1f9da-1f3fe-2640",
  50814. "shortnames": [":woman_fairy_medium_dark_skin_tone:"],
  50815. "category": "people"
  50816. },
  50817. ":woman_fairy_tone5:": {
  50818. "uc_base": "1f9da-1f3ff-2640",
  50819. "uc_output": "1f9da-1f3ff-200d-2640-fe0f",
  50820. "uc_match": "1f9da-1f3ff-2640-fe0f",
  50821. "uc_greedy": "1f9da-1f3ff-2640",
  50822. "shortnames": [":woman_fairy_dark_skin_tone:"],
  50823. "category": "people"
  50824. },
  50825. ":woman_frowning_tone1:": {
  50826. "uc_base": "1f64d-1f3fb-2640",
  50827. "uc_output": "1f64d-1f3fb-200d-2640-fe0f",
  50828. "uc_match": "1f64d-1f3fb-2640-fe0f",
  50829. "uc_greedy": "1f64d-1f3fb-2640",
  50830. "shortnames": [":woman_frowning_light_skin_tone:"],
  50831. "category": "people"
  50832. },
  50833. ":woman_frowning_tone2:": {
  50834. "uc_base": "1f64d-1f3fc-2640",
  50835. "uc_output": "1f64d-1f3fc-200d-2640-fe0f",
  50836. "uc_match": "1f64d-1f3fc-2640-fe0f",
  50837. "uc_greedy": "1f64d-1f3fc-2640",
  50838. "shortnames": [":woman_frowning_medium_light_skin_tone:"],
  50839. "category": "people"
  50840. },
  50841. ":woman_frowning_tone3:": {
  50842. "uc_base": "1f64d-1f3fd-2640",
  50843. "uc_output": "1f64d-1f3fd-200d-2640-fe0f",
  50844. "uc_match": "1f64d-1f3fd-2640-fe0f",
  50845. "uc_greedy": "1f64d-1f3fd-2640",
  50846. "shortnames": [":woman_frowning_medium_skin_tone:"],
  50847. "category": "people"
  50848. },
  50849. ":woman_frowning_tone4:": {
  50850. "uc_base": "1f64d-1f3fe-2640",
  50851. "uc_output": "1f64d-1f3fe-200d-2640-fe0f",
  50852. "uc_match": "1f64d-1f3fe-2640-fe0f",
  50853. "uc_greedy": "1f64d-1f3fe-2640",
  50854. "shortnames": [":woman_frowning_medium_dark_skin_tone:"],
  50855. "category": "people"
  50856. },
  50857. ":woman_frowning_tone5:": {
  50858. "uc_base": "1f64d-1f3ff-2640",
  50859. "uc_output": "1f64d-1f3ff-200d-2640-fe0f",
  50860. "uc_match": "1f64d-1f3ff-2640-fe0f",
  50861. "uc_greedy": "1f64d-1f3ff-2640",
  50862. "shortnames": [":woman_frowning_dark_skin_tone:"],
  50863. "category": "people"
  50864. },
  50865. ":woman_gesturing_no_tone1:": {
  50866. "uc_base": "1f645-1f3fb-2640",
  50867. "uc_output": "1f645-1f3fb-200d-2640-fe0f",
  50868. "uc_match": "1f645-1f3fb-2640-fe0f",
  50869. "uc_greedy": "1f645-1f3fb-2640",
  50870. "shortnames": [":woman_gesturing_no_light_skin_tone:"],
  50871. "category": "people"
  50872. },
  50873. ":woman_gesturing_no_tone2:": {
  50874. "uc_base": "1f645-1f3fc-2640",
  50875. "uc_output": "1f645-1f3fc-200d-2640-fe0f",
  50876. "uc_match": "1f645-1f3fc-2640-fe0f",
  50877. "uc_greedy": "1f645-1f3fc-2640",
  50878. "shortnames": [":woman_gesturing_no_medium_light_skin_tone:"],
  50879. "category": "people"
  50880. },
  50881. ":woman_gesturing_no_tone3:": {
  50882. "uc_base": "1f645-1f3fd-2640",
  50883. "uc_output": "1f645-1f3fd-200d-2640-fe0f",
  50884. "uc_match": "1f645-1f3fd-2640-fe0f",
  50885. "uc_greedy": "1f645-1f3fd-2640",
  50886. "shortnames": [":woman_gesturing_no_medium_skin_tone:"],
  50887. "category": "people"
  50888. },
  50889. ":woman_gesturing_no_tone4:": {
  50890. "uc_base": "1f645-1f3fe-2640",
  50891. "uc_output": "1f645-1f3fe-200d-2640-fe0f",
  50892. "uc_match": "1f645-1f3fe-2640-fe0f",
  50893. "uc_greedy": "1f645-1f3fe-2640",
  50894. "shortnames": [":woman_gesturing_no_medium_dark_skin_tone:"],
  50895. "category": "people"
  50896. },
  50897. ":woman_gesturing_no_tone5:": {
  50898. "uc_base": "1f645-1f3ff-2640",
  50899. "uc_output": "1f645-1f3ff-200d-2640-fe0f",
  50900. "uc_match": "1f645-1f3ff-2640-fe0f",
  50901. "uc_greedy": "1f645-1f3ff-2640",
  50902. "shortnames": [":woman_gesturing_no_dark_skin_tone:"],
  50903. "category": "people"
  50904. },
  50905. ":woman_gesturing_ok_tone1:": {
  50906. "uc_base": "1f646-1f3fb-2640",
  50907. "uc_output": "1f646-1f3fb-200d-2640-fe0f",
  50908. "uc_match": "1f646-1f3fb-2640-fe0f",
  50909. "uc_greedy": "1f646-1f3fb-2640",
  50910. "shortnames": [":woman_gesturing_ok_light_skin_tone:"],
  50911. "category": "people"
  50912. },
  50913. ":woman_gesturing_ok_tone2:": {
  50914. "uc_base": "1f646-1f3fc-2640",
  50915. "uc_output": "1f646-1f3fc-200d-2640-fe0f",
  50916. "uc_match": "1f646-1f3fc-2640-fe0f",
  50917. "uc_greedy": "1f646-1f3fc-2640",
  50918. "shortnames": [":woman_gesturing_ok_medium_light_skin_tone:"],
  50919. "category": "people"
  50920. },
  50921. ":woman_gesturing_ok_tone3:": {
  50922. "uc_base": "1f646-1f3fd-2640",
  50923. "uc_output": "1f646-1f3fd-200d-2640-fe0f",
  50924. "uc_match": "1f646-1f3fd-2640-fe0f",
  50925. "uc_greedy": "1f646-1f3fd-2640",
  50926. "shortnames": [":woman_gesturing_ok_medium_skin_tone:"],
  50927. "category": "people"
  50928. },
  50929. ":woman_gesturing_ok_tone4:": {
  50930. "uc_base": "1f646-1f3fe-2640",
  50931. "uc_output": "1f646-1f3fe-200d-2640-fe0f",
  50932. "uc_match": "1f646-1f3fe-2640-fe0f",
  50933. "uc_greedy": "1f646-1f3fe-2640",
  50934. "shortnames": [":woman_gesturing_ok_medium_dark_skin_tone:"],
  50935. "category": "people"
  50936. },
  50937. ":woman_gesturing_ok_tone5:": {
  50938. "uc_base": "1f646-1f3ff-2640",
  50939. "uc_output": "1f646-1f3ff-200d-2640-fe0f",
  50940. "uc_match": "1f646-1f3ff-2640-fe0f",
  50941. "uc_greedy": "1f646-1f3ff-2640",
  50942. "shortnames": [":woman_gesturing_ok_dark_skin_tone:"],
  50943. "category": "people"
  50944. },
  50945. ":woman_getting_face_massage_tone1:": {
  50946. "uc_base": "1f486-1f3fb-2640",
  50947. "uc_output": "1f486-1f3fb-200d-2640-fe0f",
  50948. "uc_match": "1f486-1f3fb-2640-fe0f",
  50949. "uc_greedy": "1f486-1f3fb-2640",
  50950. "shortnames": [":woman_getting_face_massage_light_skin_tone:"],
  50951. "category": "people"
  50952. },
  50953. ":woman_getting_face_massage_tone2:": {
  50954. "uc_base": "1f486-1f3fc-2640",
  50955. "uc_output": "1f486-1f3fc-200d-2640-fe0f",
  50956. "uc_match": "1f486-1f3fc-2640-fe0f",
  50957. "uc_greedy": "1f486-1f3fc-2640",
  50958. "shortnames": [":woman_getting_face_massage_medium_light_skin_tone:"],
  50959. "category": "people"
  50960. },
  50961. ":woman_getting_face_massage_tone3:": {
  50962. "uc_base": "1f486-1f3fd-2640",
  50963. "uc_output": "1f486-1f3fd-200d-2640-fe0f",
  50964. "uc_match": "1f486-1f3fd-2640-fe0f",
  50965. "uc_greedy": "1f486-1f3fd-2640",
  50966. "shortnames": [":woman_getting_face_massage_medium_skin_tone:"],
  50967. "category": "people"
  50968. },
  50969. ":woman_getting_face_massage_tone4:": {
  50970. "uc_base": "1f486-1f3fe-2640",
  50971. "uc_output": "1f486-1f3fe-200d-2640-fe0f",
  50972. "uc_match": "1f486-1f3fe-2640-fe0f",
  50973. "uc_greedy": "1f486-1f3fe-2640",
  50974. "shortnames": [":woman_getting_face_massage_medium_dark_skin_tone:"],
  50975. "category": "people"
  50976. },
  50977. ":woman_getting_face_massage_tone5:": {
  50978. "uc_base": "1f486-1f3ff-2640",
  50979. "uc_output": "1f486-1f3ff-200d-2640-fe0f",
  50980. "uc_match": "1f486-1f3ff-2640-fe0f",
  50981. "uc_greedy": "1f486-1f3ff-2640",
  50982. "shortnames": [":woman_getting_face_massage_dark_skin_tone:"],
  50983. "category": "people"
  50984. },
  50985. ":woman_getting_haircut_tone1:": {
  50986. "uc_base": "1f487-1f3fb-2640",
  50987. "uc_output": "1f487-1f3fb-200d-2640-fe0f",
  50988. "uc_match": "1f487-1f3fb-2640-fe0f",
  50989. "uc_greedy": "1f487-1f3fb-2640",
  50990. "shortnames": [":woman_getting_haircut_light_skin_tone:"],
  50991. "category": "people"
  50992. },
  50993. ":woman_getting_haircut_tone2:": {
  50994. "uc_base": "1f487-1f3fc-2640",
  50995. "uc_output": "1f487-1f3fc-200d-2640-fe0f",
  50996. "uc_match": "1f487-1f3fc-2640-fe0f",
  50997. "uc_greedy": "1f487-1f3fc-2640",
  50998. "shortnames": [":woman_getting_haircut_medium_light_skin_tone:"],
  50999. "category": "people"
  51000. },
  51001. ":woman_getting_haircut_tone3:": {
  51002. "uc_base": "1f487-1f3fd-2640",
  51003. "uc_output": "1f487-1f3fd-200d-2640-fe0f",
  51004. "uc_match": "1f487-1f3fd-2640-fe0f",
  51005. "uc_greedy": "1f487-1f3fd-2640",
  51006. "shortnames": [":woman_getting_haircut_medium_skin_tone:"],
  51007. "category": "people"
  51008. },
  51009. ":woman_getting_haircut_tone4:": {
  51010. "uc_base": "1f487-1f3fe-2640",
  51011. "uc_output": "1f487-1f3fe-200d-2640-fe0f",
  51012. "uc_match": "1f487-1f3fe-2640-fe0f",
  51013. "uc_greedy": "1f487-1f3fe-2640",
  51014. "shortnames": [":woman_getting_haircut_medium_dark_skin_tone:"],
  51015. "category": "people"
  51016. },
  51017. ":woman_getting_haircut_tone5:": {
  51018. "uc_base": "1f487-1f3ff-2640",
  51019. "uc_output": "1f487-1f3ff-200d-2640-fe0f",
  51020. "uc_match": "1f487-1f3ff-2640-fe0f",
  51021. "uc_greedy": "1f487-1f3ff-2640",
  51022. "shortnames": [":woman_getting_haircut_dark_skin_tone:"],
  51023. "category": "people"
  51024. },
  51025. ":woman_golfing_tone1:": {
  51026. "uc_base": "1f3cc-1f3fb-2640",
  51027. "uc_output": "1f3cc-1f3fb-200d-2640-fe0f",
  51028. "uc_match": "1f3cc-fe0f-1f3fb-2640-fe0f",
  51029. "uc_greedy": "1f3cc-1f3fb-2640",
  51030. "shortnames": [":woman_golfing_light_skin_tone:"],
  51031. "category": "activity"
  51032. },
  51033. ":woman_golfing_tone2:": {
  51034. "uc_base": "1f3cc-1f3fc-2640",
  51035. "uc_output": "1f3cc-1f3fc-200d-2640-fe0f",
  51036. "uc_match": "1f3cc-fe0f-1f3fc-2640-fe0f",
  51037. "uc_greedy": "1f3cc-1f3fc-2640",
  51038. "shortnames": [":woman_golfing_medium_light_skin_tone:"],
  51039. "category": "activity"
  51040. },
  51041. ":woman_golfing_tone3:": {
  51042. "uc_base": "1f3cc-1f3fd-2640",
  51043. "uc_output": "1f3cc-1f3fd-200d-2640-fe0f",
  51044. "uc_match": "1f3cc-fe0f-1f3fd-2640-fe0f",
  51045. "uc_greedy": "1f3cc-1f3fd-2640",
  51046. "shortnames": [":woman_golfing_medium_skin_tone:"],
  51047. "category": "activity"
  51048. },
  51049. ":woman_golfing_tone4:": {
  51050. "uc_base": "1f3cc-1f3fe-2640",
  51051. "uc_output": "1f3cc-1f3fe-200d-2640-fe0f",
  51052. "uc_match": "1f3cc-fe0f-1f3fe-2640-fe0f",
  51053. "uc_greedy": "1f3cc-1f3fe-2640",
  51054. "shortnames": [":woman_golfing_medium_dark_skin_tone:"],
  51055. "category": "activity"
  51056. },
  51057. ":woman_golfing_tone5:": {
  51058. "uc_base": "1f3cc-1f3ff-2640",
  51059. "uc_output": "1f3cc-1f3ff-200d-2640-fe0f",
  51060. "uc_match": "1f3cc-fe0f-1f3ff-2640-fe0f",
  51061. "uc_greedy": "1f3cc-1f3ff-2640",
  51062. "shortnames": [":woman_golfing_dark_skin_tone:"],
  51063. "category": "activity"
  51064. },
  51065. ":woman_guard_tone1:": {
  51066. "uc_base": "1f482-1f3fb-2640",
  51067. "uc_output": "1f482-1f3fb-200d-2640-fe0f",
  51068. "uc_match": "1f482-1f3fb-2640-fe0f",
  51069. "uc_greedy": "1f482-1f3fb-2640",
  51070. "shortnames": [":woman_guard_light_skin_tone:"],
  51071. "category": "people"
  51072. },
  51073. ":woman_guard_tone2:": {
  51074. "uc_base": "1f482-1f3fc-2640",
  51075. "uc_output": "1f482-1f3fc-200d-2640-fe0f",
  51076. "uc_match": "1f482-1f3fc-2640-fe0f",
  51077. "uc_greedy": "1f482-1f3fc-2640",
  51078. "shortnames": [":woman_guard_medium_light_skin_tone:"],
  51079. "category": "people"
  51080. },
  51081. ":woman_guard_tone3:": {
  51082. "uc_base": "1f482-1f3fd-2640",
  51083. "uc_output": "1f482-1f3fd-200d-2640-fe0f",
  51084. "uc_match": "1f482-1f3fd-2640-fe0f",
  51085. "uc_greedy": "1f482-1f3fd-2640",
  51086. "shortnames": [":woman_guard_medium_skin_tone:"],
  51087. "category": "people"
  51088. },
  51089. ":woman_guard_tone4:": {
  51090. "uc_base": "1f482-1f3fe-2640",
  51091. "uc_output": "1f482-1f3fe-200d-2640-fe0f",
  51092. "uc_match": "1f482-1f3fe-2640-fe0f",
  51093. "uc_greedy": "1f482-1f3fe-2640",
  51094. "shortnames": [":woman_guard_medium_dark_skin_tone:"],
  51095. "category": "people"
  51096. },
  51097. ":woman_guard_tone5:": {
  51098. "uc_base": "1f482-1f3ff-2640",
  51099. "uc_output": "1f482-1f3ff-200d-2640-fe0f",
  51100. "uc_match": "1f482-1f3ff-2640-fe0f",
  51101. "uc_greedy": "1f482-1f3ff-2640",
  51102. "shortnames": [":woman_guard_dark_skin_tone:"],
  51103. "category": "people"
  51104. },
  51105. ":woman_health_worker_tone1:": {
  51106. "uc_base": "1f469-1f3fb-2695",
  51107. "uc_output": "1f469-1f3fb-200d-2695-fe0f",
  51108. "uc_match": "1f469-1f3fb-2695-fe0f",
  51109. "uc_greedy": "1f469-1f3fb-2695",
  51110. "shortnames": [":woman_health_worker_light_skin_tone:"],
  51111. "category": "people"
  51112. },
  51113. ":woman_health_worker_tone2:": {
  51114. "uc_base": "1f469-1f3fc-2695",
  51115. "uc_output": "1f469-1f3fc-200d-2695-fe0f",
  51116. "uc_match": "1f469-1f3fc-2695-fe0f",
  51117. "uc_greedy": "1f469-1f3fc-2695",
  51118. "shortnames": [":woman_health_worker_medium_light_skin_tone:"],
  51119. "category": "people"
  51120. },
  51121. ":woman_health_worker_tone3:": {
  51122. "uc_base": "1f469-1f3fd-2695",
  51123. "uc_output": "1f469-1f3fd-200d-2695-fe0f",
  51124. "uc_match": "1f469-1f3fd-2695-fe0f",
  51125. "uc_greedy": "1f469-1f3fd-2695",
  51126. "shortnames": [":woman_health_worker_medium_skin_tone:"],
  51127. "category": "people"
  51128. },
  51129. ":woman_health_worker_tone4:": {
  51130. "uc_base": "1f469-1f3fe-2695",
  51131. "uc_output": "1f469-1f3fe-200d-2695-fe0f",
  51132. "uc_match": "1f469-1f3fe-2695-fe0f",
  51133. "uc_greedy": "1f469-1f3fe-2695",
  51134. "shortnames": [":woman_health_worker_medium_dark_skin_tone:"],
  51135. "category": "people"
  51136. },
  51137. ":woman_health_worker_tone5:": {
  51138. "uc_base": "1f469-1f3ff-2695",
  51139. "uc_output": "1f469-1f3ff-200d-2695-fe0f",
  51140. "uc_match": "1f469-1f3ff-2695-fe0f",
  51141. "uc_greedy": "1f469-1f3ff-2695",
  51142. "shortnames": [":woman_health_worker_dark_skin_tone:"],
  51143. "category": "people"
  51144. },
  51145. ":woman_in_lotus_position_tone1:": {
  51146. "uc_base": "1f9d8-1f3fb-2640",
  51147. "uc_output": "1f9d8-1f3fb-200d-2640-fe0f",
  51148. "uc_match": "1f9d8-1f3fb-2640-fe0f",
  51149. "uc_greedy": "1f9d8-1f3fb-2640",
  51150. "shortnames": [":woman_in_lotus_position_light_skin_tone:"],
  51151. "category": "activity"
  51152. },
  51153. ":woman_in_lotus_position_tone2:": {
  51154. "uc_base": "1f9d8-1f3fc-2640",
  51155. "uc_output": "1f9d8-1f3fc-200d-2640-fe0f",
  51156. "uc_match": "1f9d8-1f3fc-2640-fe0f",
  51157. "uc_greedy": "1f9d8-1f3fc-2640",
  51158. "shortnames": [":woman_in_lotus_position_medium_light_skin_tone:"],
  51159. "category": "activity"
  51160. },
  51161. ":woman_in_lotus_position_tone3:": {
  51162. "uc_base": "1f9d8-1f3fd-2640",
  51163. "uc_output": "1f9d8-1f3fd-200d-2640-fe0f",
  51164. "uc_match": "1f9d8-1f3fd-2640-fe0f",
  51165. "uc_greedy": "1f9d8-1f3fd-2640",
  51166. "shortnames": [":woman_in_lotus_position_medium_skin_tone:"],
  51167. "category": "activity"
  51168. },
  51169. ":woman_in_lotus_position_tone4:": {
  51170. "uc_base": "1f9d8-1f3fe-2640",
  51171. "uc_output": "1f9d8-1f3fe-200d-2640-fe0f",
  51172. "uc_match": "1f9d8-1f3fe-2640-fe0f",
  51173. "uc_greedy": "1f9d8-1f3fe-2640",
  51174. "shortnames": [":woman_in_lotus_position_medium_dark_skin_tone:"],
  51175. "category": "activity"
  51176. },
  51177. ":woman_in_lotus_position_tone5:": {
  51178. "uc_base": "1f9d8-1f3ff-2640",
  51179. "uc_output": "1f9d8-1f3ff-200d-2640-fe0f",
  51180. "uc_match": "1f9d8-1f3ff-2640-fe0f",
  51181. "uc_greedy": "1f9d8-1f3ff-2640",
  51182. "shortnames": [":woman_in_lotus_position_dark_skin_tone:"],
  51183. "category": "activity"
  51184. },
  51185. ":woman_in_steamy_room_tone1:": {
  51186. "uc_base": "1f9d6-1f3fb-2640",
  51187. "uc_output": "1f9d6-1f3fb-200d-2640-fe0f",
  51188. "uc_match": "1f9d6-1f3fb-2640-fe0f",
  51189. "uc_greedy": "1f9d6-1f3fb-2640",
  51190. "shortnames": [":woman_in_steamy_room_light_skin_tone:"],
  51191. "category": "people"
  51192. },
  51193. ":woman_in_steamy_room_tone2:": {
  51194. "uc_base": "1f9d6-1f3fc-2640",
  51195. "uc_output": "1f9d6-1f3fc-200d-2640-fe0f",
  51196. "uc_match": "1f9d6-1f3fc-2640-fe0f",
  51197. "uc_greedy": "1f9d6-1f3fc-2640",
  51198. "shortnames": [":woman_in_steamy_room_medium_light_skin_tone:"],
  51199. "category": "people"
  51200. },
  51201. ":woman_in_steamy_room_tone3:": {
  51202. "uc_base": "1f9d6-1f3fd-2640",
  51203. "uc_output": "1f9d6-1f3fd-200d-2640-fe0f",
  51204. "uc_match": "1f9d6-1f3fd-2640-fe0f",
  51205. "uc_greedy": "1f9d6-1f3fd-2640",
  51206. "shortnames": [":woman_in_steamy_room_medium_skin_tone:"],
  51207. "category": "people"
  51208. },
  51209. ":woman_in_steamy_room_tone4:": {
  51210. "uc_base": "1f9d6-1f3fe-2640",
  51211. "uc_output": "1f9d6-1f3fe-200d-2640-fe0f",
  51212. "uc_match": "1f9d6-1f3fe-2640-fe0f",
  51213. "uc_greedy": "1f9d6-1f3fe-2640",
  51214. "shortnames": [":woman_in_steamy_room_medium_dark_skin_tone:"],
  51215. "category": "people"
  51216. },
  51217. ":woman_in_steamy_room_tone5:": {
  51218. "uc_base": "1f9d6-1f3ff-2640",
  51219. "uc_output": "1f9d6-1f3ff-200d-2640-fe0f",
  51220. "uc_match": "1f9d6-1f3ff-2640-fe0f",
  51221. "uc_greedy": "1f9d6-1f3ff-2640",
  51222. "shortnames": [":woman_in_steamy_room_dark_skin_tone:"],
  51223. "category": "people"
  51224. },
  51225. ":woman_judge_tone1:": {
  51226. "uc_base": "1f469-1f3fb-2696",
  51227. "uc_output": "1f469-1f3fb-200d-2696-fe0f",
  51228. "uc_match": "1f469-1f3fb-2696-fe0f",
  51229. "uc_greedy": "1f469-1f3fb-2696",
  51230. "shortnames": [":woman_judge_light_skin_tone:"],
  51231. "category": "people"
  51232. },
  51233. ":woman_judge_tone2:": {
  51234. "uc_base": "1f469-1f3fc-2696",
  51235. "uc_output": "1f469-1f3fc-200d-2696-fe0f",
  51236. "uc_match": "1f469-1f3fc-2696-fe0f",
  51237. "uc_greedy": "1f469-1f3fc-2696",
  51238. "shortnames": [":woman_judge_medium_light_skin_tone:"],
  51239. "category": "people"
  51240. },
  51241. ":woman_judge_tone3:": {
  51242. "uc_base": "1f469-1f3fd-2696",
  51243. "uc_output": "1f469-1f3fd-200d-2696-fe0f",
  51244. "uc_match": "1f469-1f3fd-2696-fe0f",
  51245. "uc_greedy": "1f469-1f3fd-2696",
  51246. "shortnames": [":woman_judge_medium_skin_tone:"],
  51247. "category": "people"
  51248. },
  51249. ":woman_judge_tone4:": {
  51250. "uc_base": "1f469-1f3fe-2696",
  51251. "uc_output": "1f469-1f3fe-200d-2696-fe0f",
  51252. "uc_match": "1f469-1f3fe-2696-fe0f",
  51253. "uc_greedy": "1f469-1f3fe-2696",
  51254. "shortnames": [":woman_judge_medium_dark_skin_tone:"],
  51255. "category": "people"
  51256. },
  51257. ":woman_judge_tone5:": {
  51258. "uc_base": "1f469-1f3ff-2696",
  51259. "uc_output": "1f469-1f3ff-200d-2696-fe0f",
  51260. "uc_match": "1f469-1f3ff-2696-fe0f",
  51261. "uc_greedy": "1f469-1f3ff-2696",
  51262. "shortnames": [":woman_judge_dark_skin_tone:"],
  51263. "category": "people"
  51264. },
  51265. ":woman_juggling_tone1:": {
  51266. "uc_base": "1f939-1f3fb-2640",
  51267. "uc_output": "1f939-1f3fb-200d-2640-fe0f",
  51268. "uc_match": "1f939-1f3fb-2640-fe0f",
  51269. "uc_greedy": "1f939-1f3fb-2640",
  51270. "shortnames": [":woman_juggling_light_skin_tone:"],
  51271. "category": "activity"
  51272. },
  51273. ":woman_juggling_tone2:": {
  51274. "uc_base": "1f939-1f3fc-2640",
  51275. "uc_output": "1f939-1f3fc-200d-2640-fe0f",
  51276. "uc_match": "1f939-1f3fc-2640-fe0f",
  51277. "uc_greedy": "1f939-1f3fc-2640",
  51278. "shortnames": [":woman_juggling_medium_light_skin_tone:"],
  51279. "category": "activity"
  51280. },
  51281. ":woman_juggling_tone3:": {
  51282. "uc_base": "1f939-1f3fd-2640",
  51283. "uc_output": "1f939-1f3fd-200d-2640-fe0f",
  51284. "uc_match": "1f939-1f3fd-2640-fe0f",
  51285. "uc_greedy": "1f939-1f3fd-2640",
  51286. "shortnames": [":woman_juggling_medium_skin_tone:"],
  51287. "category": "activity"
  51288. },
  51289. ":woman_juggling_tone4:": {
  51290. "uc_base": "1f939-1f3fe-2640",
  51291. "uc_output": "1f939-1f3fe-200d-2640-fe0f",
  51292. "uc_match": "1f939-1f3fe-2640-fe0f",
  51293. "uc_greedy": "1f939-1f3fe-2640",
  51294. "shortnames": [":woman_juggling_medium_dark_skin_tone:"],
  51295. "category": "activity"
  51296. },
  51297. ":woman_juggling_tone5:": {
  51298. "uc_base": "1f939-1f3ff-2640",
  51299. "uc_output": "1f939-1f3ff-200d-2640-fe0f",
  51300. "uc_match": "1f939-1f3ff-2640-fe0f",
  51301. "uc_greedy": "1f939-1f3ff-2640",
  51302. "shortnames": [":woman_juggling_dark_skin_tone:"],
  51303. "category": "activity"
  51304. },
  51305. ":woman_lifting_weights_tone1:": {
  51306. "uc_base": "1f3cb-1f3fb-2640",
  51307. "uc_output": "1f3cb-1f3fb-200d-2640-fe0f",
  51308. "uc_match": "1f3cb-fe0f-1f3fb-2640-fe0f",
  51309. "uc_greedy": "1f3cb-1f3fb-2640",
  51310. "shortnames": [":woman_lifting_weights_light_skin_tone:"],
  51311. "category": "activity"
  51312. },
  51313. ":woman_lifting_weights_tone2:": {
  51314. "uc_base": "1f3cb-1f3fc-2640",
  51315. "uc_output": "1f3cb-1f3fc-200d-2640-fe0f",
  51316. "uc_match": "1f3cb-fe0f-1f3fc-2640-fe0f",
  51317. "uc_greedy": "1f3cb-1f3fc-2640",
  51318. "shortnames": [":woman_lifting_weights_medium_light_skin_tone:"],
  51319. "category": "activity"
  51320. },
  51321. ":woman_lifting_weights_tone3:": {
  51322. "uc_base": "1f3cb-1f3fd-2640",
  51323. "uc_output": "1f3cb-1f3fd-200d-2640-fe0f",
  51324. "uc_match": "1f3cb-fe0f-1f3fd-2640-fe0f",
  51325. "uc_greedy": "1f3cb-1f3fd-2640",
  51326. "shortnames": [":woman_lifting_weights_medium_skin_tone:"],
  51327. "category": "activity"
  51328. },
  51329. ":woman_lifting_weights_tone4:": {
  51330. "uc_base": "1f3cb-1f3fe-2640",
  51331. "uc_output": "1f3cb-1f3fe-200d-2640-fe0f",
  51332. "uc_match": "1f3cb-fe0f-1f3fe-2640-fe0f",
  51333. "uc_greedy": "1f3cb-1f3fe-2640",
  51334. "shortnames": [":woman_lifting_weights_medium_dark_skin_tone:"],
  51335. "category": "activity"
  51336. },
  51337. ":woman_lifting_weights_tone5:": {
  51338. "uc_base": "1f3cb-1f3ff-2640",
  51339. "uc_output": "1f3cb-1f3ff-200d-2640-fe0f",
  51340. "uc_match": "1f3cb-fe0f-1f3ff-2640-fe0f",
  51341. "uc_greedy": "1f3cb-1f3ff-2640",
  51342. "shortnames": [":woman_lifting_weights_dark_skin_tone:"],
  51343. "category": "activity"
  51344. },
  51345. ":woman_mage_tone1:": {
  51346. "uc_base": "1f9d9-1f3fb-2640",
  51347. "uc_output": "1f9d9-1f3fb-200d-2640-fe0f",
  51348. "uc_match": "1f9d9-1f3fb-2640-fe0f",
  51349. "uc_greedy": "1f9d9-1f3fb-2640",
  51350. "shortnames": [":woman_mage_light_skin_tone:"],
  51351. "category": "people"
  51352. },
  51353. ":woman_mage_tone2:": {
  51354. "uc_base": "1f9d9-1f3fc-2640",
  51355. "uc_output": "1f9d9-1f3fc-200d-2640-fe0f",
  51356. "uc_match": "1f9d9-1f3fc-2640-fe0f",
  51357. "uc_greedy": "1f9d9-1f3fc-2640",
  51358. "shortnames": [":woman_mage_medium_light_skin_tone:"],
  51359. "category": "people"
  51360. },
  51361. ":woman_mage_tone3:": {
  51362. "uc_base": "1f9d9-1f3fd-2640",
  51363. "uc_output": "1f9d9-1f3fd-200d-2640-fe0f",
  51364. "uc_match": "1f9d9-1f3fd-2640-fe0f",
  51365. "uc_greedy": "1f9d9-1f3fd-2640",
  51366. "shortnames": [":woman_mage_medium_skin_tone:"],
  51367. "category": "people"
  51368. },
  51369. ":woman_mage_tone4:": {
  51370. "uc_base": "1f9d9-1f3fe-2640",
  51371. "uc_output": "1f9d9-1f3fe-200d-2640-fe0f",
  51372. "uc_match": "1f9d9-1f3fe-2640-fe0f",
  51373. "uc_greedy": "1f9d9-1f3fe-2640",
  51374. "shortnames": [":woman_mage_medium_dark_skin_tone:"],
  51375. "category": "people"
  51376. },
  51377. ":woman_mage_tone5:": {
  51378. "uc_base": "1f9d9-1f3ff-2640",
  51379. "uc_output": "1f9d9-1f3ff-200d-2640-fe0f",
  51380. "uc_match": "1f9d9-1f3ff-2640-fe0f",
  51381. "uc_greedy": "1f9d9-1f3ff-2640",
  51382. "shortnames": [":woman_mage_dark_skin_tone:"],
  51383. "category": "people"
  51384. },
  51385. ":woman_mountain_biking_tone1:": {
  51386. "uc_base": "1f6b5-1f3fb-2640",
  51387. "uc_output": "1f6b5-1f3fb-200d-2640-fe0f",
  51388. "uc_match": "1f6b5-1f3fb-2640-fe0f",
  51389. "uc_greedy": "1f6b5-1f3fb-2640",
  51390. "shortnames": [":woman_mountain_biking_light_skin_tone:"],
  51391. "category": "activity"
  51392. },
  51393. ":woman_mountain_biking_tone2:": {
  51394. "uc_base": "1f6b5-1f3fc-2640",
  51395. "uc_output": "1f6b5-1f3fc-200d-2640-fe0f",
  51396. "uc_match": "1f6b5-1f3fc-2640-fe0f",
  51397. "uc_greedy": "1f6b5-1f3fc-2640",
  51398. "shortnames": [":woman_mountain_biking_medium_light_skin_tone:"],
  51399. "category": "activity"
  51400. },
  51401. ":woman_mountain_biking_tone3:": {
  51402. "uc_base": "1f6b5-1f3fd-2640",
  51403. "uc_output": "1f6b5-1f3fd-200d-2640-fe0f",
  51404. "uc_match": "1f6b5-1f3fd-2640-fe0f",
  51405. "uc_greedy": "1f6b5-1f3fd-2640",
  51406. "shortnames": [":woman_mountain_biking_medium_skin_tone:"],
  51407. "category": "activity"
  51408. },
  51409. ":woman_mountain_biking_tone4:": {
  51410. "uc_base": "1f6b5-1f3fe-2640",
  51411. "uc_output": "1f6b5-1f3fe-200d-2640-fe0f",
  51412. "uc_match": "1f6b5-1f3fe-2640-fe0f",
  51413. "uc_greedy": "1f6b5-1f3fe-2640",
  51414. "shortnames": [":woman_mountain_biking_medium_dark_skin_tone:"],
  51415. "category": "activity"
  51416. },
  51417. ":woman_mountain_biking_tone5:": {
  51418. "uc_base": "1f6b5-1f3ff-2640",
  51419. "uc_output": "1f6b5-1f3ff-200d-2640-fe0f",
  51420. "uc_match": "1f6b5-1f3ff-2640-fe0f",
  51421. "uc_greedy": "1f6b5-1f3ff-2640",
  51422. "shortnames": [":woman_mountain_biking_dark_skin_tone:"],
  51423. "category": "activity"
  51424. },
  51425. ":woman_pilot_tone1:": {
  51426. "uc_base": "1f469-1f3fb-2708",
  51427. "uc_output": "1f469-1f3fb-200d-2708-fe0f",
  51428. "uc_match": "1f469-1f3fb-2708-fe0f",
  51429. "uc_greedy": "1f469-1f3fb-2708",
  51430. "shortnames": [":woman_pilot_light_skin_tone:"],
  51431. "category": "people"
  51432. },
  51433. ":woman_pilot_tone2:": {
  51434. "uc_base": "1f469-1f3fc-2708",
  51435. "uc_output": "1f469-1f3fc-200d-2708-fe0f",
  51436. "uc_match": "1f469-1f3fc-2708-fe0f",
  51437. "uc_greedy": "1f469-1f3fc-2708",
  51438. "shortnames": [":woman_pilot_medium_light_skin_tone:"],
  51439. "category": "people"
  51440. },
  51441. ":woman_pilot_tone3:": {
  51442. "uc_base": "1f469-1f3fd-2708",
  51443. "uc_output": "1f469-1f3fd-200d-2708-fe0f",
  51444. "uc_match": "1f469-1f3fd-2708-fe0f",
  51445. "uc_greedy": "1f469-1f3fd-2708",
  51446. "shortnames": [":woman_pilot_medium_skin_tone:"],
  51447. "category": "people"
  51448. },
  51449. ":woman_pilot_tone4:": {
  51450. "uc_base": "1f469-1f3fe-2708",
  51451. "uc_output": "1f469-1f3fe-200d-2708-fe0f",
  51452. "uc_match": "1f469-1f3fe-2708-fe0f",
  51453. "uc_greedy": "1f469-1f3fe-2708",
  51454. "shortnames": [":woman_pilot_medium_dark_skin_tone:"],
  51455. "category": "people"
  51456. },
  51457. ":woman_pilot_tone5:": {
  51458. "uc_base": "1f469-1f3ff-2708",
  51459. "uc_output": "1f469-1f3ff-200d-2708-fe0f",
  51460. "uc_match": "1f469-1f3ff-2708-fe0f",
  51461. "uc_greedy": "1f469-1f3ff-2708",
  51462. "shortnames": [":woman_pilot_dark_skin_tone:"],
  51463. "category": "people"
  51464. },
  51465. ":woman_playing_handball_tone1:": {
  51466. "uc_base": "1f93e-1f3fb-2640",
  51467. "uc_output": "1f93e-1f3fb-200d-2640-fe0f",
  51468. "uc_match": "1f93e-1f3fb-2640-fe0f",
  51469. "uc_greedy": "1f93e-1f3fb-2640",
  51470. "shortnames": [":woman_playing_handball_light_skin_tone:"],
  51471. "category": "activity"
  51472. },
  51473. ":woman_playing_handball_tone2:": {
  51474. "uc_base": "1f93e-1f3fc-2640",
  51475. "uc_output": "1f93e-1f3fc-200d-2640-fe0f",
  51476. "uc_match": "1f93e-1f3fc-2640-fe0f",
  51477. "uc_greedy": "1f93e-1f3fc-2640",
  51478. "shortnames": [":woman_playing_handball_medium_light_skin_tone:"],
  51479. "category": "activity"
  51480. },
  51481. ":woman_playing_handball_tone3:": {
  51482. "uc_base": "1f93e-1f3fd-2640",
  51483. "uc_output": "1f93e-1f3fd-200d-2640-fe0f",
  51484. "uc_match": "1f93e-1f3fd-2640-fe0f",
  51485. "uc_greedy": "1f93e-1f3fd-2640",
  51486. "shortnames": [":woman_playing_handball_medium_skin_tone:"],
  51487. "category": "activity"
  51488. },
  51489. ":woman_playing_handball_tone4:": {
  51490. "uc_base": "1f93e-1f3fe-2640",
  51491. "uc_output": "1f93e-1f3fe-200d-2640-fe0f",
  51492. "uc_match": "1f93e-1f3fe-2640-fe0f",
  51493. "uc_greedy": "1f93e-1f3fe-2640",
  51494. "shortnames": [":woman_playing_handball_medium_dark_skin_tone:"],
  51495. "category": "activity"
  51496. },
  51497. ":woman_playing_handball_tone5:": {
  51498. "uc_base": "1f93e-1f3ff-2640",
  51499. "uc_output": "1f93e-1f3ff-200d-2640-fe0f",
  51500. "uc_match": "1f93e-1f3ff-2640-fe0f",
  51501. "uc_greedy": "1f93e-1f3ff-2640",
  51502. "shortnames": [":woman_playing_handball_dark_skin_tone:"],
  51503. "category": "activity"
  51504. },
  51505. ":woman_playing_water_polo_tone1:": {
  51506. "uc_base": "1f93d-1f3fb-2640",
  51507. "uc_output": "1f93d-1f3fb-200d-2640-fe0f",
  51508. "uc_match": "1f93d-1f3fb-2640-fe0f",
  51509. "uc_greedy": "1f93d-1f3fb-2640",
  51510. "shortnames": [":woman_playing_water_polo_light_skin_tone:"],
  51511. "category": "activity"
  51512. },
  51513. ":woman_playing_water_polo_tone2:": {
  51514. "uc_base": "1f93d-1f3fc-2640",
  51515. "uc_output": "1f93d-1f3fc-200d-2640-fe0f",
  51516. "uc_match": "1f93d-1f3fc-2640-fe0f",
  51517. "uc_greedy": "1f93d-1f3fc-2640",
  51518. "shortnames": [":woman_playing_water_polo_medium_light_skin_tone:"],
  51519. "category": "activity"
  51520. },
  51521. ":woman_playing_water_polo_tone3:": {
  51522. "uc_base": "1f93d-1f3fd-2640",
  51523. "uc_output": "1f93d-1f3fd-200d-2640-fe0f",
  51524. "uc_match": "1f93d-1f3fd-2640-fe0f",
  51525. "uc_greedy": "1f93d-1f3fd-2640",
  51526. "shortnames": [":woman_playing_water_polo_medium_skin_tone:"],
  51527. "category": "activity"
  51528. },
  51529. ":woman_playing_water_polo_tone4:": {
  51530. "uc_base": "1f93d-1f3fe-2640",
  51531. "uc_output": "1f93d-1f3fe-200d-2640-fe0f",
  51532. "uc_match": "1f93d-1f3fe-2640-fe0f",
  51533. "uc_greedy": "1f93d-1f3fe-2640",
  51534. "shortnames": [":woman_playing_water_polo_medium_dark_skin_tone:"],
  51535. "category": "activity"
  51536. },
  51537. ":woman_playing_water_polo_tone5:": {
  51538. "uc_base": "1f93d-1f3ff-2640",
  51539. "uc_output": "1f93d-1f3ff-200d-2640-fe0f",
  51540. "uc_match": "1f93d-1f3ff-2640-fe0f",
  51541. "uc_greedy": "1f93d-1f3ff-2640",
  51542. "shortnames": [":woman_playing_water_polo_dark_skin_tone:"],
  51543. "category": "activity"
  51544. },
  51545. ":woman_police_officer_tone1:": {
  51546. "uc_base": "1f46e-1f3fb-2640",
  51547. "uc_output": "1f46e-1f3fb-200d-2640-fe0f",
  51548. "uc_match": "1f46e-1f3fb-2640-fe0f",
  51549. "uc_greedy": "1f46e-1f3fb-2640",
  51550. "shortnames": [":woman_police_officer_light_skin_tone:"],
  51551. "category": "people"
  51552. },
  51553. ":woman_police_officer_tone2:": {
  51554. "uc_base": "1f46e-1f3fc-2640",
  51555. "uc_output": "1f46e-1f3fc-200d-2640-fe0f",
  51556. "uc_match": "1f46e-1f3fc-2640-fe0f",
  51557. "uc_greedy": "1f46e-1f3fc-2640",
  51558. "shortnames": [":woman_police_officer_medium_light_skin_tone:"],
  51559. "category": "people"
  51560. },
  51561. ":woman_police_officer_tone3:": {
  51562. "uc_base": "1f46e-1f3fd-2640",
  51563. "uc_output": "1f46e-1f3fd-200d-2640-fe0f",
  51564. "uc_match": "1f46e-1f3fd-2640-fe0f",
  51565. "uc_greedy": "1f46e-1f3fd-2640",
  51566. "shortnames": [":woman_police_officer_medium_skin_tone:"],
  51567. "category": "people"
  51568. },
  51569. ":woman_police_officer_tone4:": {
  51570. "uc_base": "1f46e-1f3fe-2640",
  51571. "uc_output": "1f46e-1f3fe-200d-2640-fe0f",
  51572. "uc_match": "1f46e-1f3fe-2640-fe0f",
  51573. "uc_greedy": "1f46e-1f3fe-2640",
  51574. "shortnames": [":woman_police_officer_medium_dark_skin_tone:"],
  51575. "category": "people"
  51576. },
  51577. ":woman_police_officer_tone5:": {
  51578. "uc_base": "1f46e-1f3ff-2640",
  51579. "uc_output": "1f46e-1f3ff-200d-2640-fe0f",
  51580. "uc_match": "1f46e-1f3ff-2640-fe0f",
  51581. "uc_greedy": "1f46e-1f3ff-2640",
  51582. "shortnames": [":woman_police_officer_dark_skin_tone:"],
  51583. "category": "people"
  51584. },
  51585. ":woman_pouting_tone1:": {
  51586. "uc_base": "1f64e-1f3fb-2640",
  51587. "uc_output": "1f64e-1f3fb-200d-2640-fe0f",
  51588. "uc_match": "1f64e-1f3fb-2640-fe0f",
  51589. "uc_greedy": "1f64e-1f3fb-2640",
  51590. "shortnames": [":woman_pouting_light_skin_tone:"],
  51591. "category": "people"
  51592. },
  51593. ":woman_pouting_tone2:": {
  51594. "uc_base": "1f64e-1f3fc-2640",
  51595. "uc_output": "1f64e-1f3fc-200d-2640-fe0f",
  51596. "uc_match": "1f64e-1f3fc-2640-fe0f",
  51597. "uc_greedy": "1f64e-1f3fc-2640",
  51598. "shortnames": [":woman_pouting_medium_light_skin_tone:"],
  51599. "category": "people"
  51600. },
  51601. ":woman_pouting_tone3:": {
  51602. "uc_base": "1f64e-1f3fd-2640",
  51603. "uc_output": "1f64e-1f3fd-200d-2640-fe0f",
  51604. "uc_match": "1f64e-1f3fd-2640-fe0f",
  51605. "uc_greedy": "1f64e-1f3fd-2640",
  51606. "shortnames": [":woman_pouting_medium_skin_tone:"],
  51607. "category": "people"
  51608. },
  51609. ":woman_pouting_tone4:": {
  51610. "uc_base": "1f64e-1f3fe-2640",
  51611. "uc_output": "1f64e-1f3fe-200d-2640-fe0f",
  51612. "uc_match": "1f64e-1f3fe-2640-fe0f",
  51613. "uc_greedy": "1f64e-1f3fe-2640",
  51614. "shortnames": [":woman_pouting_medium_dark_skin_tone:"],
  51615. "category": "people"
  51616. },
  51617. ":woman_pouting_tone5:": {
  51618. "uc_base": "1f64e-1f3ff-2640",
  51619. "uc_output": "1f64e-1f3ff-200d-2640-fe0f",
  51620. "uc_match": "1f64e-1f3ff-2640-fe0f",
  51621. "uc_greedy": "1f64e-1f3ff-2640",
  51622. "shortnames": [":woman_pouting_dark_skin_tone:"],
  51623. "category": "people"
  51624. },
  51625. ":woman_raising_hand_tone1:": {
  51626. "uc_base": "1f64b-1f3fb-2640",
  51627. "uc_output": "1f64b-1f3fb-200d-2640-fe0f",
  51628. "uc_match": "1f64b-1f3fb-2640-fe0f",
  51629. "uc_greedy": "1f64b-1f3fb-2640",
  51630. "shortnames": [":woman_raising_hand_light_skin_tone:"],
  51631. "category": "people"
  51632. },
  51633. ":woman_raising_hand_tone2:": {
  51634. "uc_base": "1f64b-1f3fc-2640",
  51635. "uc_output": "1f64b-1f3fc-200d-2640-fe0f",
  51636. "uc_match": "1f64b-1f3fc-2640-fe0f",
  51637. "uc_greedy": "1f64b-1f3fc-2640",
  51638. "shortnames": [":woman_raising_hand_medium_light_skin_tone:"],
  51639. "category": "people"
  51640. },
  51641. ":woman_raising_hand_tone3:": {
  51642. "uc_base": "1f64b-1f3fd-2640",
  51643. "uc_output": "1f64b-1f3fd-200d-2640-fe0f",
  51644. "uc_match": "1f64b-1f3fd-2640-fe0f",
  51645. "uc_greedy": "1f64b-1f3fd-2640",
  51646. "shortnames": [":woman_raising_hand_medium_skin_tone:"],
  51647. "category": "people"
  51648. },
  51649. ":woman_raising_hand_tone4:": {
  51650. "uc_base": "1f64b-1f3fe-2640",
  51651. "uc_output": "1f64b-1f3fe-200d-2640-fe0f",
  51652. "uc_match": "1f64b-1f3fe-2640-fe0f",
  51653. "uc_greedy": "1f64b-1f3fe-2640",
  51654. "shortnames": [":woman_raising_hand_medium_dark_skin_tone:"],
  51655. "category": "people"
  51656. },
  51657. ":woman_raising_hand_tone5:": {
  51658. "uc_base": "1f64b-1f3ff-2640",
  51659. "uc_output": "1f64b-1f3ff-200d-2640-fe0f",
  51660. "uc_match": "1f64b-1f3ff-2640-fe0f",
  51661. "uc_greedy": "1f64b-1f3ff-2640",
  51662. "shortnames": [":woman_raising_hand_dark_skin_tone:"],
  51663. "category": "people"
  51664. },
  51665. ":woman_rowing_boat_tone1:": {
  51666. "uc_base": "1f6a3-1f3fb-2640",
  51667. "uc_output": "1f6a3-1f3fb-200d-2640-fe0f",
  51668. "uc_match": "1f6a3-1f3fb-2640-fe0f",
  51669. "uc_greedy": "1f6a3-1f3fb-2640",
  51670. "shortnames": [":woman_rowing_boat_light_skin_tone:"],
  51671. "category": "activity"
  51672. },
  51673. ":woman_rowing_boat_tone2:": {
  51674. "uc_base": "1f6a3-1f3fc-2640",
  51675. "uc_output": "1f6a3-1f3fc-200d-2640-fe0f",
  51676. "uc_match": "1f6a3-1f3fc-2640-fe0f",
  51677. "uc_greedy": "1f6a3-1f3fc-2640",
  51678. "shortnames": [":woman_rowing_boat_medium_light_skin_tone:"],
  51679. "category": "activity"
  51680. },
  51681. ":woman_rowing_boat_tone3:": {
  51682. "uc_base": "1f6a3-1f3fd-2640",
  51683. "uc_output": "1f6a3-1f3fd-200d-2640-fe0f",
  51684. "uc_match": "1f6a3-1f3fd-2640-fe0f",
  51685. "uc_greedy": "1f6a3-1f3fd-2640",
  51686. "shortnames": [":woman_rowing_boat_medium_skin_tone:"],
  51687. "category": "activity"
  51688. },
  51689. ":woman_rowing_boat_tone4:": {
  51690. "uc_base": "1f6a3-1f3fe-2640",
  51691. "uc_output": "1f6a3-1f3fe-200d-2640-fe0f",
  51692. "uc_match": "1f6a3-1f3fe-2640-fe0f",
  51693. "uc_greedy": "1f6a3-1f3fe-2640",
  51694. "shortnames": [":woman_rowing_boat_medium_dark_skin_tone:"],
  51695. "category": "activity"
  51696. },
  51697. ":woman_rowing_boat_tone5:": {
  51698. "uc_base": "1f6a3-1f3ff-2640",
  51699. "uc_output": "1f6a3-1f3ff-200d-2640-fe0f",
  51700. "uc_match": "1f6a3-1f3ff-2640-fe0f",
  51701. "uc_greedy": "1f6a3-1f3ff-2640",
  51702. "shortnames": [":woman_rowing_boat_dark_skin_tone:"],
  51703. "category": "activity"
  51704. },
  51705. ":woman_running_tone1:": {
  51706. "uc_base": "1f3c3-1f3fb-2640",
  51707. "uc_output": "1f3c3-1f3fb-200d-2640-fe0f",
  51708. "uc_match": "1f3c3-1f3fb-2640-fe0f",
  51709. "uc_greedy": "1f3c3-1f3fb-2640",
  51710. "shortnames": [":woman_running_light_skin_tone:"],
  51711. "category": "people"
  51712. },
  51713. ":woman_running_tone2:": {
  51714. "uc_base": "1f3c3-1f3fc-2640",
  51715. "uc_output": "1f3c3-1f3fc-200d-2640-fe0f",
  51716. "uc_match": "1f3c3-1f3fc-2640-fe0f",
  51717. "uc_greedy": "1f3c3-1f3fc-2640",
  51718. "shortnames": [":woman_running_medium_light_skin_tone:"],
  51719. "category": "people"
  51720. },
  51721. ":woman_running_tone3:": {
  51722. "uc_base": "1f3c3-1f3fd-2640",
  51723. "uc_output": "1f3c3-1f3fd-200d-2640-fe0f",
  51724. "uc_match": "1f3c3-1f3fd-2640-fe0f",
  51725. "uc_greedy": "1f3c3-1f3fd-2640",
  51726. "shortnames": [":woman_running_medium_skin_tone:"],
  51727. "category": "people"
  51728. },
  51729. ":woman_running_tone4:": {
  51730. "uc_base": "1f3c3-1f3fe-2640",
  51731. "uc_output": "1f3c3-1f3fe-200d-2640-fe0f",
  51732. "uc_match": "1f3c3-1f3fe-2640-fe0f",
  51733. "uc_greedy": "1f3c3-1f3fe-2640",
  51734. "shortnames": [":woman_running_medium_dark_skin_tone:"],
  51735. "category": "people"
  51736. },
  51737. ":woman_running_tone5:": {
  51738. "uc_base": "1f3c3-1f3ff-2640",
  51739. "uc_output": "1f3c3-1f3ff-200d-2640-fe0f",
  51740. "uc_match": "1f3c3-1f3ff-2640-fe0f",
  51741. "uc_greedy": "1f3c3-1f3ff-2640",
  51742. "shortnames": [":woman_running_dark_skin_tone:"],
  51743. "category": "people"
  51744. },
  51745. ":woman_shrugging_tone1:": {
  51746. "uc_base": "1f937-1f3fb-2640",
  51747. "uc_output": "1f937-1f3fb-200d-2640-fe0f",
  51748. "uc_match": "1f937-1f3fb-2640-fe0f",
  51749. "uc_greedy": "1f937-1f3fb-2640",
  51750. "shortnames": [":woman_shrugging_light_skin_tone:"],
  51751. "category": "people"
  51752. },
  51753. ":woman_shrugging_tone2:": {
  51754. "uc_base": "1f937-1f3fc-2640",
  51755. "uc_output": "1f937-1f3fc-200d-2640-fe0f",
  51756. "uc_match": "1f937-1f3fc-2640-fe0f",
  51757. "uc_greedy": "1f937-1f3fc-2640",
  51758. "shortnames": [":woman_shrugging_medium_light_skin_tone:"],
  51759. "category": "people"
  51760. },
  51761. ":woman_shrugging_tone3:": {
  51762. "uc_base": "1f937-1f3fd-2640",
  51763. "uc_output": "1f937-1f3fd-200d-2640-fe0f",
  51764. "uc_match": "1f937-1f3fd-2640-fe0f",
  51765. "uc_greedy": "1f937-1f3fd-2640",
  51766. "shortnames": [":woman_shrugging_medium_skin_tone:"],
  51767. "category": "people"
  51768. },
  51769. ":woman_shrugging_tone4:": {
  51770. "uc_base": "1f937-1f3fe-2640",
  51771. "uc_output": "1f937-1f3fe-200d-2640-fe0f",
  51772. "uc_match": "1f937-1f3fe-2640-fe0f",
  51773. "uc_greedy": "1f937-1f3fe-2640",
  51774. "shortnames": [":woman_shrugging_medium_dark_skin_tone:"],
  51775. "category": "people"
  51776. },
  51777. ":woman_shrugging_tone5:": {
  51778. "uc_base": "1f937-1f3ff-2640",
  51779. "uc_output": "1f937-1f3ff-200d-2640-fe0f",
  51780. "uc_match": "1f937-1f3ff-2640-fe0f",
  51781. "uc_greedy": "1f937-1f3ff-2640",
  51782. "shortnames": [":woman_shrugging_dark_skin_tone:"],
  51783. "category": "people"
  51784. },
  51785. ":woman_surfing_tone1:": {
  51786. "uc_base": "1f3c4-1f3fb-2640",
  51787. "uc_output": "1f3c4-1f3fb-200d-2640-fe0f",
  51788. "uc_match": "1f3c4-1f3fb-2640-fe0f",
  51789. "uc_greedy": "1f3c4-1f3fb-2640",
  51790. "shortnames": [":woman_surfing_light_skin_tone:"],
  51791. "category": "activity"
  51792. },
  51793. ":woman_surfing_tone2:": {
  51794. "uc_base": "1f3c4-1f3fc-2640",
  51795. "uc_output": "1f3c4-1f3fc-200d-2640-fe0f",
  51796. "uc_match": "1f3c4-1f3fc-2640-fe0f",
  51797. "uc_greedy": "1f3c4-1f3fc-2640",
  51798. "shortnames": [":woman_surfing_medium_light_skin_tone:"],
  51799. "category": "activity"
  51800. },
  51801. ":woman_surfing_tone3:": {
  51802. "uc_base": "1f3c4-1f3fd-2640",
  51803. "uc_output": "1f3c4-1f3fd-200d-2640-fe0f",
  51804. "uc_match": "1f3c4-1f3fd-2640-fe0f",
  51805. "uc_greedy": "1f3c4-1f3fd-2640",
  51806. "shortnames": [":woman_surfing_medium_skin_tone:"],
  51807. "category": "activity"
  51808. },
  51809. ":woman_surfing_tone4:": {
  51810. "uc_base": "1f3c4-1f3fe-2640",
  51811. "uc_output": "1f3c4-1f3fe-200d-2640-fe0f",
  51812. "uc_match": "1f3c4-1f3fe-2640-fe0f",
  51813. "uc_greedy": "1f3c4-1f3fe-2640",
  51814. "shortnames": [":woman_surfing_medium_dark_skin_tone:"],
  51815. "category": "activity"
  51816. },
  51817. ":woman_surfing_tone5:": {
  51818. "uc_base": "1f3c4-1f3ff-2640",
  51819. "uc_output": "1f3c4-1f3ff-200d-2640-fe0f",
  51820. "uc_match": "1f3c4-1f3ff-2640-fe0f",
  51821. "uc_greedy": "1f3c4-1f3ff-2640",
  51822. "shortnames": [":woman_surfing_dark_skin_tone:"],
  51823. "category": "activity"
  51824. },
  51825. ":woman_swimming_tone1:": {
  51826. "uc_base": "1f3ca-1f3fb-2640",
  51827. "uc_output": "1f3ca-1f3fb-200d-2640-fe0f",
  51828. "uc_match": "1f3ca-1f3fb-2640-fe0f",
  51829. "uc_greedy": "1f3ca-1f3fb-2640",
  51830. "shortnames": [":woman_swimming_light_skin_tone:"],
  51831. "category": "activity"
  51832. },
  51833. ":woman_swimming_tone2:": {
  51834. "uc_base": "1f3ca-1f3fc-2640",
  51835. "uc_output": "1f3ca-1f3fc-200d-2640-fe0f",
  51836. "uc_match": "1f3ca-1f3fc-2640-fe0f",
  51837. "uc_greedy": "1f3ca-1f3fc-2640",
  51838. "shortnames": [":woman_swimming_medium_light_skin_tone:"],
  51839. "category": "activity"
  51840. },
  51841. ":woman_swimming_tone3:": {
  51842. "uc_base": "1f3ca-1f3fd-2640",
  51843. "uc_output": "1f3ca-1f3fd-200d-2640-fe0f",
  51844. "uc_match": "1f3ca-1f3fd-2640-fe0f",
  51845. "uc_greedy": "1f3ca-1f3fd-2640",
  51846. "shortnames": [":woman_swimming_medium_skin_tone:"],
  51847. "category": "activity"
  51848. },
  51849. ":woman_swimming_tone4:": {
  51850. "uc_base": "1f3ca-1f3fe-2640",
  51851. "uc_output": "1f3ca-1f3fe-200d-2640-fe0f",
  51852. "uc_match": "1f3ca-1f3fe-2640-fe0f",
  51853. "uc_greedy": "1f3ca-1f3fe-2640",
  51854. "shortnames": [":woman_swimming_medium_dark_skin_tone:"],
  51855. "category": "activity"
  51856. },
  51857. ":woman_swimming_tone5:": {
  51858. "uc_base": "1f3ca-1f3ff-2640",
  51859. "uc_output": "1f3ca-1f3ff-200d-2640-fe0f",
  51860. "uc_match": "1f3ca-1f3ff-2640-fe0f",
  51861. "uc_greedy": "1f3ca-1f3ff-2640",
  51862. "shortnames": [":woman_swimming_dark_skin_tone:"],
  51863. "category": "activity"
  51864. },
  51865. ":woman_tipping_hand_tone1:": {
  51866. "uc_base": "1f481-1f3fb-2640",
  51867. "uc_output": "1f481-1f3fb-200d-2640-fe0f",
  51868. "uc_match": "1f481-1f3fb-2640-fe0f",
  51869. "uc_greedy": "1f481-1f3fb-2640",
  51870. "shortnames": [":woman_tipping_hand_light_skin_tone:"],
  51871. "category": "people"
  51872. },
  51873. ":woman_tipping_hand_tone2:": {
  51874. "uc_base": "1f481-1f3fc-2640",
  51875. "uc_output": "1f481-1f3fc-200d-2640-fe0f",
  51876. "uc_match": "1f481-1f3fc-2640-fe0f",
  51877. "uc_greedy": "1f481-1f3fc-2640",
  51878. "shortnames": [":woman_tipping_hand_medium_light_skin_tone:"],
  51879. "category": "people"
  51880. },
  51881. ":woman_tipping_hand_tone3:": {
  51882. "uc_base": "1f481-1f3fd-2640",
  51883. "uc_output": "1f481-1f3fd-200d-2640-fe0f",
  51884. "uc_match": "1f481-1f3fd-2640-fe0f",
  51885. "uc_greedy": "1f481-1f3fd-2640",
  51886. "shortnames": [":woman_tipping_hand_medium_skin_tone:"],
  51887. "category": "people"
  51888. },
  51889. ":woman_tipping_hand_tone4:": {
  51890. "uc_base": "1f481-1f3fe-2640",
  51891. "uc_output": "1f481-1f3fe-200d-2640-fe0f",
  51892. "uc_match": "1f481-1f3fe-2640-fe0f",
  51893. "uc_greedy": "1f481-1f3fe-2640",
  51894. "shortnames": [":woman_tipping_hand_medium_dark_skin_tone:"],
  51895. "category": "people"
  51896. },
  51897. ":woman_tipping_hand_tone5:": {
  51898. "uc_base": "1f481-1f3ff-2640",
  51899. "uc_output": "1f481-1f3ff-200d-2640-fe0f",
  51900. "uc_match": "1f481-1f3ff-2640-fe0f",
  51901. "uc_greedy": "1f481-1f3ff-2640",
  51902. "shortnames": [":woman_tipping_hand_dark_skin_tone:"],
  51903. "category": "people"
  51904. },
  51905. ":woman_vampire_tone1:": {
  51906. "uc_base": "1f9db-1f3fb-2640",
  51907. "uc_output": "1f9db-1f3fb-200d-2640-fe0f",
  51908. "uc_match": "1f9db-1f3fb-2640-fe0f",
  51909. "uc_greedy": "1f9db-1f3fb-2640",
  51910. "shortnames": [":woman_vampire_light_skin_tone:"],
  51911. "category": "people"
  51912. },
  51913. ":woman_vampire_tone2:": {
  51914. "uc_base": "1f9db-1f3fc-2640",
  51915. "uc_output": "1f9db-1f3fc-200d-2640-fe0f",
  51916. "uc_match": "1f9db-1f3fc-2640-fe0f",
  51917. "uc_greedy": "1f9db-1f3fc-2640",
  51918. "shortnames": [":woman_vampire_medium_light_skin_tone:"],
  51919. "category": "people"
  51920. },
  51921. ":woman_vampire_tone3:": {
  51922. "uc_base": "1f9db-1f3fd-2640",
  51923. "uc_output": "1f9db-1f3fd-200d-2640-fe0f",
  51924. "uc_match": "1f9db-1f3fd-2640-fe0f",
  51925. "uc_greedy": "1f9db-1f3fd-2640",
  51926. "shortnames": [":woman_vampire_medium_skin_tone:"],
  51927. "category": "people"
  51928. },
  51929. ":woman_vampire_tone4:": {
  51930. "uc_base": "1f9db-1f3fe-2640",
  51931. "uc_output": "1f9db-1f3fe-200d-2640-fe0f",
  51932. "uc_match": "1f9db-1f3fe-2640-fe0f",
  51933. "uc_greedy": "1f9db-1f3fe-2640",
  51934. "shortnames": [":woman_vampire_medium_dark_skin_tone:"],
  51935. "category": "people"
  51936. },
  51937. ":woman_vampire_tone5:": {
  51938. "uc_base": "1f9db-1f3ff-2640",
  51939. "uc_output": "1f9db-1f3ff-200d-2640-fe0f",
  51940. "uc_match": "1f9db-1f3ff-2640-fe0f",
  51941. "uc_greedy": "1f9db-1f3ff-2640",
  51942. "shortnames": [":woman_vampire_dark_skin_tone:"],
  51943. "category": "people"
  51944. },
  51945. ":woman_walking_tone1:": {
  51946. "uc_base": "1f6b6-1f3fb-2640",
  51947. "uc_output": "1f6b6-1f3fb-200d-2640-fe0f",
  51948. "uc_match": "1f6b6-1f3fb-2640-fe0f",
  51949. "uc_greedy": "1f6b6-1f3fb-2640",
  51950. "shortnames": [":woman_walking_light_skin_tone:"],
  51951. "category": "people"
  51952. },
  51953. ":woman_walking_tone2:": {
  51954. "uc_base": "1f6b6-1f3fc-2640",
  51955. "uc_output": "1f6b6-1f3fc-200d-2640-fe0f",
  51956. "uc_match": "1f6b6-1f3fc-2640-fe0f",
  51957. "uc_greedy": "1f6b6-1f3fc-2640",
  51958. "shortnames": [":woman_walking_medium_light_skin_tone:"],
  51959. "category": "people"
  51960. },
  51961. ":woman_walking_tone3:": {
  51962. "uc_base": "1f6b6-1f3fd-2640",
  51963. "uc_output": "1f6b6-1f3fd-200d-2640-fe0f",
  51964. "uc_match": "1f6b6-1f3fd-2640-fe0f",
  51965. "uc_greedy": "1f6b6-1f3fd-2640",
  51966. "shortnames": [":woman_walking_medium_skin_tone:"],
  51967. "category": "people"
  51968. },
  51969. ":woman_walking_tone4:": {
  51970. "uc_base": "1f6b6-1f3fe-2640",
  51971. "uc_output": "1f6b6-1f3fe-200d-2640-fe0f",
  51972. "uc_match": "1f6b6-1f3fe-2640-fe0f",
  51973. "uc_greedy": "1f6b6-1f3fe-2640",
  51974. "shortnames": [":woman_walking_medium_dark_skin_tone:"],
  51975. "category": "people"
  51976. },
  51977. ":woman_walking_tone5:": {
  51978. "uc_base": "1f6b6-1f3ff-2640",
  51979. "uc_output": "1f6b6-1f3ff-200d-2640-fe0f",
  51980. "uc_match": "1f6b6-1f3ff-2640-fe0f",
  51981. "uc_greedy": "1f6b6-1f3ff-2640",
  51982. "shortnames": [":woman_walking_dark_skin_tone:"],
  51983. "category": "people"
  51984. },
  51985. ":woman_wearing_turban_tone1:": {
  51986. "uc_base": "1f473-1f3fb-2640",
  51987. "uc_output": "1f473-1f3fb-200d-2640-fe0f",
  51988. "uc_match": "1f473-1f3fb-2640-fe0f",
  51989. "uc_greedy": "1f473-1f3fb-2640",
  51990. "shortnames": [":woman_wearing_turban_light_skin_tone:"],
  51991. "category": "people"
  51992. },
  51993. ":woman_wearing_turban_tone2:": {
  51994. "uc_base": "1f473-1f3fc-2640",
  51995. "uc_output": "1f473-1f3fc-200d-2640-fe0f",
  51996. "uc_match": "1f473-1f3fc-2640-fe0f",
  51997. "uc_greedy": "1f473-1f3fc-2640",
  51998. "shortnames": [":woman_wearing_turban_medium_light_skin_tone:"],
  51999. "category": "people"
  52000. },
  52001. ":woman_wearing_turban_tone3:": {
  52002. "uc_base": "1f473-1f3fd-2640",
  52003. "uc_output": "1f473-1f3fd-200d-2640-fe0f",
  52004. "uc_match": "1f473-1f3fd-2640-fe0f",
  52005. "uc_greedy": "1f473-1f3fd-2640",
  52006. "shortnames": [":woman_wearing_turban_medium_skin_tone:"],
  52007. "category": "people"
  52008. },
  52009. ":woman_wearing_turban_tone4:": {
  52010. "uc_base": "1f473-1f3fe-2640",
  52011. "uc_output": "1f473-1f3fe-200d-2640-fe0f",
  52012. "uc_match": "1f473-1f3fe-2640-fe0f",
  52013. "uc_greedy": "1f473-1f3fe-2640",
  52014. "shortnames": [":woman_wearing_turban_medium_dark_skin_tone:"],
  52015. "category": "people"
  52016. },
  52017. ":woman_wearing_turban_tone5:": {
  52018. "uc_base": "1f473-1f3ff-2640",
  52019. "uc_output": "1f473-1f3ff-200d-2640-fe0f",
  52020. "uc_match": "1f473-1f3ff-2640-fe0f",
  52021. "uc_greedy": "1f473-1f3ff-2640",
  52022. "shortnames": [":woman_wearing_turban_dark_skin_tone:"],
  52023. "category": "people"
  52024. },
  52025. ":man_bouncing_ball_tone1:": {
  52026. "uc_base": "26f9-1f3fb-2642",
  52027. "uc_output": "26f9-1f3fb-200d-2642-fe0f",
  52028. "uc_match": "26f9-fe0f-1f3fb-2642-fe0f",
  52029. "uc_greedy": "26f9-1f3fb-2642",
  52030. "shortnames": [":man_bouncing_ball_light_skin_tone:"],
  52031. "category": "activity"
  52032. },
  52033. ":man_bouncing_ball_tone2:": {
  52034. "uc_base": "26f9-1f3fc-2642",
  52035. "uc_output": "26f9-1f3fc-200d-2642-fe0f",
  52036. "uc_match": "26f9-fe0f-1f3fc-2642-fe0f",
  52037. "uc_greedy": "26f9-1f3fc-2642",
  52038. "shortnames": [":man_bouncing_ball_medium_light_skin_tone:"],
  52039. "category": "activity"
  52040. },
  52041. ":man_bouncing_ball_tone3:": {
  52042. "uc_base": "26f9-1f3fd-2642",
  52043. "uc_output": "26f9-1f3fd-200d-2642-fe0f",
  52044. "uc_match": "26f9-fe0f-1f3fd-2642-fe0f",
  52045. "uc_greedy": "26f9-1f3fd-2642",
  52046. "shortnames": [":man_bouncing_ball_medium_skin_tone:"],
  52047. "category": "activity"
  52048. },
  52049. ":man_bouncing_ball_tone4:": {
  52050. "uc_base": "26f9-1f3fe-2642",
  52051. "uc_output": "26f9-1f3fe-200d-2642-fe0f",
  52052. "uc_match": "26f9-fe0f-1f3fe-2642-fe0f",
  52053. "uc_greedy": "26f9-1f3fe-2642",
  52054. "shortnames": [":man_bouncing_ball_medium_dark_skin_tone:"],
  52055. "category": "activity"
  52056. },
  52057. ":man_bouncing_ball_tone5:": {
  52058. "uc_base": "26f9-1f3ff-2642",
  52059. "uc_output": "26f9-1f3ff-200d-2642-fe0f",
  52060. "uc_match": "26f9-fe0f-1f3ff-2642-fe0f",
  52061. "uc_greedy": "26f9-1f3ff-2642",
  52062. "shortnames": [":man_bouncing_ball_dark_skin_tone:"],
  52063. "category": "activity"
  52064. },
  52065. ":man_detective:": {
  52066. "uc_base": "1f575-2642",
  52067. "uc_output": "1f575-fe0f-200d-2642-fe0f",
  52068. "uc_match": "1f575-fe0f-200d-2642",
  52069. "uc_greedy": "1f575-2642",
  52070. "shortnames": [],
  52071. "category": "people"
  52072. },
  52073. ":man_golfing:": {
  52074. "uc_base": "1f3cc-2642",
  52075. "uc_output": "1f3cc-fe0f-200d-2642-fe0f",
  52076. "uc_match": "1f3cc-fe0f-200d-2642",
  52077. "uc_greedy": "1f3cc-2642",
  52078. "shortnames": [],
  52079. "category": "activity"
  52080. },
  52081. ":man_lifting_weights:": {
  52082. "uc_base": "1f3cb-2642",
  52083. "uc_output": "1f3cb-fe0f-200d-2642-fe0f",
  52084. "uc_match": "1f3cb-fe0f-200d-2642",
  52085. "uc_greedy": "1f3cb-2642",
  52086. "shortnames": [],
  52087. "category": "activity"
  52088. },
  52089. ":woman_bouncing_ball_tone1:": {
  52090. "uc_base": "26f9-1f3fb-2640",
  52091. "uc_output": "26f9-1f3fb-200d-2640-fe0f",
  52092. "uc_match": "26f9-fe0f-1f3fb-2640-fe0f",
  52093. "uc_greedy": "26f9-1f3fb-2640",
  52094. "shortnames": [":woman_bouncing_ball_light_skin_tone:"],
  52095. "category": "activity"
  52096. },
  52097. ":woman_bouncing_ball_tone2:": {
  52098. "uc_base": "26f9-1f3fc-2640",
  52099. "uc_output": "26f9-1f3fc-200d-2640-fe0f",
  52100. "uc_match": "26f9-fe0f-1f3fc-2640-fe0f",
  52101. "uc_greedy": "26f9-1f3fc-2640",
  52102. "shortnames": [":woman_bouncing_ball_medium_light_skin_tone:"],
  52103. "category": "activity"
  52104. },
  52105. ":woman_bouncing_ball_tone3:": {
  52106. "uc_base": "26f9-1f3fd-2640",
  52107. "uc_output": "26f9-1f3fd-200d-2640-fe0f",
  52108. "uc_match": "26f9-fe0f-1f3fd-2640-fe0f",
  52109. "uc_greedy": "26f9-1f3fd-2640",
  52110. "shortnames": [":woman_bouncing_ball_medium_skin_tone:"],
  52111. "category": "activity"
  52112. },
  52113. ":woman_bouncing_ball_tone4:": {
  52114. "uc_base": "26f9-1f3fe-2640",
  52115. "uc_output": "26f9-1f3fe-200d-2640-fe0f",
  52116. "uc_match": "26f9-fe0f-1f3fe-2640-fe0f",
  52117. "uc_greedy": "26f9-1f3fe-2640",
  52118. "shortnames": [":woman_bouncing_ball_medium_dark_skin_tone:"],
  52119. "category": "activity"
  52120. },
  52121. ":woman_bouncing_ball_tone5:": {
  52122. "uc_base": "26f9-1f3ff-2640",
  52123. "uc_output": "26f9-1f3ff-200d-2640-fe0f",
  52124. "uc_match": "26f9-fe0f-1f3ff-2640-fe0f",
  52125. "uc_greedy": "26f9-1f3ff-2640",
  52126. "shortnames": [":woman_bouncing_ball_dark_skin_tone:"],
  52127. "category": "activity"
  52128. },
  52129. ":woman_detective:": {
  52130. "uc_base": "1f575-2640",
  52131. "uc_output": "1f575-fe0f-200d-2640-fe0f",
  52132. "uc_match": "1f575-fe0f-200d-2640",
  52133. "uc_greedy": "1f575-2640",
  52134. "shortnames": [],
  52135. "category": "people"
  52136. },
  52137. ":woman_golfing:": {
  52138. "uc_base": "1f3cc-2640",
  52139. "uc_output": "1f3cc-fe0f-200d-2640-fe0f",
  52140. "uc_match": "1f3cc-fe0f-200d-2640",
  52141. "uc_greedy": "1f3cc-2640",
  52142. "shortnames": [],
  52143. "category": "activity"
  52144. },
  52145. ":woman_lifting_weights:": {
  52146. "uc_base": "1f3cb-2640",
  52147. "uc_output": "1f3cb-fe0f-200d-2640-fe0f",
  52148. "uc_match": "1f3cb-fe0f-200d-2640",
  52149. "uc_greedy": "1f3cb-2640",
  52150. "shortnames": [],
  52151. "category": "activity"
  52152. },
  52153. ":man_bouncing_ball:": {
  52154. "uc_base": "26f9-2642",
  52155. "uc_output": "26f9-fe0f-200d-2642-fe0f",
  52156. "uc_match": "26f9-fe0f-200d-2642",
  52157. "uc_greedy": "26f9-2642",
  52158. "shortnames": [],
  52159. "category": "activity"
  52160. },
  52161. ":woman_bouncing_ball:": {
  52162. "uc_base": "26f9-2640",
  52163. "uc_output": "26f9-fe0f-200d-2640-fe0f",
  52164. "uc_match": "26f9-fe0f-200d-2640",
  52165. "uc_greedy": "26f9-2640",
  52166. "shortnames": [],
  52167. "category": "activity"
  52168. },
  52169. ":man_artist_tone1:": {
  52170. "uc_base": "1f468-1f3fb-1f3a8",
  52171. "uc_output": "1f468-1f3fb-200d-1f3a8",
  52172. "uc_match": "1f468-1f3fb-1f3a8",
  52173. "uc_greedy": "1f468-1f3fb-1f3a8",
  52174. "shortnames": [":man_artist_light_skin_tone:"],
  52175. "category": "people"
  52176. },
  52177. ":man_artist_tone2:": {
  52178. "uc_base": "1f468-1f3fc-1f3a8",
  52179. "uc_output": "1f468-1f3fc-200d-1f3a8",
  52180. "uc_match": "1f468-1f3fc-1f3a8",
  52181. "uc_greedy": "1f468-1f3fc-1f3a8",
  52182. "shortnames": [":man_artist_medium_light_skin_tone:"],
  52183. "category": "people"
  52184. },
  52185. ":man_artist_tone3:": {
  52186. "uc_base": "1f468-1f3fd-1f3a8",
  52187. "uc_output": "1f468-1f3fd-200d-1f3a8",
  52188. "uc_match": "1f468-1f3fd-1f3a8",
  52189. "uc_greedy": "1f468-1f3fd-1f3a8",
  52190. "shortnames": [":man_artist_medium_skin_tone:"],
  52191. "category": "people"
  52192. },
  52193. ":man_artist_tone4:": {
  52194. "uc_base": "1f468-1f3fe-1f3a8",
  52195. "uc_output": "1f468-1f3fe-200d-1f3a8",
  52196. "uc_match": "1f468-1f3fe-1f3a8",
  52197. "uc_greedy": "1f468-1f3fe-1f3a8",
  52198. "shortnames": [":man_artist_medium_dark_skin_tone:"],
  52199. "category": "people"
  52200. },
  52201. ":man_artist_tone5:": {
  52202. "uc_base": "1f468-1f3ff-1f3a8",
  52203. "uc_output": "1f468-1f3ff-200d-1f3a8",
  52204. "uc_match": "1f468-1f3ff-1f3a8",
  52205. "uc_greedy": "1f468-1f3ff-1f3a8",
  52206. "shortnames": [":man_artist_dark_skin_tone:"],
  52207. "category": "people"
  52208. },
  52209. ":man_astronaut_tone1:": {
  52210. "uc_base": "1f468-1f3fb-1f680",
  52211. "uc_output": "1f468-1f3fb-200d-1f680",
  52212. "uc_match": "1f468-1f3fb-1f680",
  52213. "uc_greedy": "1f468-1f3fb-1f680",
  52214. "shortnames": [":man_astronaut_light_skin_tone:"],
  52215. "category": "people"
  52216. },
  52217. ":man_astronaut_tone2:": {
  52218. "uc_base": "1f468-1f3fc-1f680",
  52219. "uc_output": "1f468-1f3fc-200d-1f680",
  52220. "uc_match": "1f468-1f3fc-1f680",
  52221. "uc_greedy": "1f468-1f3fc-1f680",
  52222. "shortnames": [":man_astronaut_medium_light_skin_tone:"],
  52223. "category": "people"
  52224. },
  52225. ":man_astronaut_tone3:": {
  52226. "uc_base": "1f468-1f3fd-1f680",
  52227. "uc_output": "1f468-1f3fd-200d-1f680",
  52228. "uc_match": "1f468-1f3fd-1f680",
  52229. "uc_greedy": "1f468-1f3fd-1f680",
  52230. "shortnames": [":man_astronaut_medium_skin_tone:"],
  52231. "category": "people"
  52232. },
  52233. ":man_astronaut_tone4:": {
  52234. "uc_base": "1f468-1f3fe-1f680",
  52235. "uc_output": "1f468-1f3fe-200d-1f680",
  52236. "uc_match": "1f468-1f3fe-1f680",
  52237. "uc_greedy": "1f468-1f3fe-1f680",
  52238. "shortnames": [":man_astronaut_medium_dark_skin_tone:"],
  52239. "category": "people"
  52240. },
  52241. ":man_astronaut_tone5:": {
  52242. "uc_base": "1f468-1f3ff-1f680",
  52243. "uc_output": "1f468-1f3ff-200d-1f680",
  52244. "uc_match": "1f468-1f3ff-1f680",
  52245. "uc_greedy": "1f468-1f3ff-1f680",
  52246. "shortnames": [":man_astronaut_dark_skin_tone:"],
  52247. "category": "people"
  52248. },
  52249. ":man_cook_tone1:": {
  52250. "uc_base": "1f468-1f3fb-1f373",
  52251. "uc_output": "1f468-1f3fb-200d-1f373",
  52252. "uc_match": "1f468-1f3fb-1f373",
  52253. "uc_greedy": "1f468-1f3fb-1f373",
  52254. "shortnames": [":man_cook_light_skin_tone:"],
  52255. "category": "people"
  52256. },
  52257. ":man_cook_tone2:": {
  52258. "uc_base": "1f468-1f3fc-1f373",
  52259. "uc_output": "1f468-1f3fc-200d-1f373",
  52260. "uc_match": "1f468-1f3fc-1f373",
  52261. "uc_greedy": "1f468-1f3fc-1f373",
  52262. "shortnames": [":man_cook_medium_light_skin_tone:"],
  52263. "category": "people"
  52264. },
  52265. ":man_cook_tone3:": {
  52266. "uc_base": "1f468-1f3fd-1f373",
  52267. "uc_output": "1f468-1f3fd-200d-1f373",
  52268. "uc_match": "1f468-1f3fd-1f373",
  52269. "uc_greedy": "1f468-1f3fd-1f373",
  52270. "shortnames": [":man_cook_medium_skin_tone:"],
  52271. "category": "people"
  52272. },
  52273. ":man_cook_tone4:": {
  52274. "uc_base": "1f468-1f3fe-1f373",
  52275. "uc_output": "1f468-1f3fe-200d-1f373",
  52276. "uc_match": "1f468-1f3fe-1f373",
  52277. "uc_greedy": "1f468-1f3fe-1f373",
  52278. "shortnames": [":man_cook_medium_dark_skin_tone:"],
  52279. "category": "people"
  52280. },
  52281. ":man_cook_tone5:": {
  52282. "uc_base": "1f468-1f3ff-1f373",
  52283. "uc_output": "1f468-1f3ff-200d-1f373",
  52284. "uc_match": "1f468-1f3ff-1f373",
  52285. "uc_greedy": "1f468-1f3ff-1f373",
  52286. "shortnames": [":man_cook_dark_skin_tone:"],
  52287. "category": "people"
  52288. },
  52289. ":man_factory_worker_tone1:": {
  52290. "uc_base": "1f468-1f3fb-1f3ed",
  52291. "uc_output": "1f468-1f3fb-200d-1f3ed",
  52292. "uc_match": "1f468-1f3fb-1f3ed",
  52293. "uc_greedy": "1f468-1f3fb-1f3ed",
  52294. "shortnames": [":man_factory_worker_light_skin_tone:"],
  52295. "category": "people"
  52296. },
  52297. ":man_factory_worker_tone2:": {
  52298. "uc_base": "1f468-1f3fc-1f3ed",
  52299. "uc_output": "1f468-1f3fc-200d-1f3ed",
  52300. "uc_match": "1f468-1f3fc-1f3ed",
  52301. "uc_greedy": "1f468-1f3fc-1f3ed",
  52302. "shortnames": [":man_factory_worker_medium_light_skin_tone:"],
  52303. "category": "people"
  52304. },
  52305. ":man_factory_worker_tone3:": {
  52306. "uc_base": "1f468-1f3fd-1f3ed",
  52307. "uc_output": "1f468-1f3fd-200d-1f3ed",
  52308. "uc_match": "1f468-1f3fd-1f3ed",
  52309. "uc_greedy": "1f468-1f3fd-1f3ed",
  52310. "shortnames": [":man_factory_worker_medium_skin_tone:"],
  52311. "category": "people"
  52312. },
  52313. ":man_factory_worker_tone4:": {
  52314. "uc_base": "1f468-1f3fe-1f3ed",
  52315. "uc_output": "1f468-1f3fe-200d-1f3ed",
  52316. "uc_match": "1f468-1f3fe-1f3ed",
  52317. "uc_greedy": "1f468-1f3fe-1f3ed",
  52318. "shortnames": [":man_factory_worker_medium_dark_skin_tone:"],
  52319. "category": "people"
  52320. },
  52321. ":man_factory_worker_tone5:": {
  52322. "uc_base": "1f468-1f3ff-1f3ed",
  52323. "uc_output": "1f468-1f3ff-200d-1f3ed",
  52324. "uc_match": "1f468-1f3ff-1f3ed",
  52325. "uc_greedy": "1f468-1f3ff-1f3ed",
  52326. "shortnames": [":man_factory_worker_dark_skin_tone:"],
  52327. "category": "people"
  52328. },
  52329. ":man_farmer_tone1:": {
  52330. "uc_base": "1f468-1f3fb-1f33e",
  52331. "uc_output": "1f468-1f3fb-200d-1f33e",
  52332. "uc_match": "1f468-1f3fb-1f33e",
  52333. "uc_greedy": "1f468-1f3fb-1f33e",
  52334. "shortnames": [":man_farmer_light_skin_tone:"],
  52335. "category": "people"
  52336. },
  52337. ":man_farmer_tone2:": {
  52338. "uc_base": "1f468-1f3fc-1f33e",
  52339. "uc_output": "1f468-1f3fc-200d-1f33e",
  52340. "uc_match": "1f468-1f3fc-1f33e",
  52341. "uc_greedy": "1f468-1f3fc-1f33e",
  52342. "shortnames": [":man_farmer_medium_light_skin_tone:"],
  52343. "category": "people"
  52344. },
  52345. ":man_farmer_tone3:": {
  52346. "uc_base": "1f468-1f3fd-1f33e",
  52347. "uc_output": "1f468-1f3fd-200d-1f33e",
  52348. "uc_match": "1f468-1f3fd-1f33e",
  52349. "uc_greedy": "1f468-1f3fd-1f33e",
  52350. "shortnames": [":man_farmer_medium_skin_tone:"],
  52351. "category": "people"
  52352. },
  52353. ":man_farmer_tone4:": {
  52354. "uc_base": "1f468-1f3fe-1f33e",
  52355. "uc_output": "1f468-1f3fe-200d-1f33e",
  52356. "uc_match": "1f468-1f3fe-1f33e",
  52357. "uc_greedy": "1f468-1f3fe-1f33e",
  52358. "shortnames": [":man_farmer_medium_dark_skin_tone:"],
  52359. "category": "people"
  52360. },
  52361. ":man_farmer_tone5:": {
  52362. "uc_base": "1f468-1f3ff-1f33e",
  52363. "uc_output": "1f468-1f3ff-200d-1f33e",
  52364. "uc_match": "1f468-1f3ff-1f33e",
  52365. "uc_greedy": "1f468-1f3ff-1f33e",
  52366. "shortnames": [":man_farmer_dark_skin_tone:"],
  52367. "category": "people"
  52368. },
  52369. ":man_firefighter_tone1:": {
  52370. "uc_base": "1f468-1f3fb-1f692",
  52371. "uc_output": "1f468-1f3fb-200d-1f692",
  52372. "uc_match": "1f468-1f3fb-1f692",
  52373. "uc_greedy": "1f468-1f3fb-1f692",
  52374. "shortnames": [":man_firefighter_light_skin_tone:"],
  52375. "category": "people"
  52376. },
  52377. ":man_firefighter_tone2:": {
  52378. "uc_base": "1f468-1f3fc-1f692",
  52379. "uc_output": "1f468-1f3fc-200d-1f692",
  52380. "uc_match": "1f468-1f3fc-1f692",
  52381. "uc_greedy": "1f468-1f3fc-1f692",
  52382. "shortnames": [":man_firefighter_medium_light_skin_tone:"],
  52383. "category": "people"
  52384. },
  52385. ":man_firefighter_tone3:": {
  52386. "uc_base": "1f468-1f3fd-1f692",
  52387. "uc_output": "1f468-1f3fd-200d-1f692",
  52388. "uc_match": "1f468-1f3fd-1f692",
  52389. "uc_greedy": "1f468-1f3fd-1f692",
  52390. "shortnames": [":man_firefighter_medium_skin_tone:"],
  52391. "category": "people"
  52392. },
  52393. ":man_firefighter_tone4:": {
  52394. "uc_base": "1f468-1f3fe-1f692",
  52395. "uc_output": "1f468-1f3fe-200d-1f692",
  52396. "uc_match": "1f468-1f3fe-1f692",
  52397. "uc_greedy": "1f468-1f3fe-1f692",
  52398. "shortnames": [":man_firefighter_medium_dark_skin_tone:"],
  52399. "category": "people"
  52400. },
  52401. ":man_firefighter_tone5:": {
  52402. "uc_base": "1f468-1f3ff-1f692",
  52403. "uc_output": "1f468-1f3ff-200d-1f692",
  52404. "uc_match": "1f468-1f3ff-1f692",
  52405. "uc_greedy": "1f468-1f3ff-1f692",
  52406. "shortnames": [":man_firefighter_dark_skin_tone:"],
  52407. "category": "people"
  52408. },
  52409. ":man_mechanic_tone1:": {
  52410. "uc_base": "1f468-1f3fb-1f527",
  52411. "uc_output": "1f468-1f3fb-200d-1f527",
  52412. "uc_match": "1f468-1f3fb-1f527",
  52413. "uc_greedy": "1f468-1f3fb-1f527",
  52414. "shortnames": [":man_mechanic_light_skin_tone:"],
  52415. "category": "people"
  52416. },
  52417. ":man_mechanic_tone2:": {
  52418. "uc_base": "1f468-1f3fc-1f527",
  52419. "uc_output": "1f468-1f3fc-200d-1f527",
  52420. "uc_match": "1f468-1f3fc-1f527",
  52421. "uc_greedy": "1f468-1f3fc-1f527",
  52422. "shortnames": [":man_mechanic_medium_light_skin_tone:"],
  52423. "category": "people"
  52424. },
  52425. ":man_mechanic_tone3:": {
  52426. "uc_base": "1f468-1f3fd-1f527",
  52427. "uc_output": "1f468-1f3fd-200d-1f527",
  52428. "uc_match": "1f468-1f3fd-1f527",
  52429. "uc_greedy": "1f468-1f3fd-1f527",
  52430. "shortnames": [":man_mechanic_medium_skin_tone:"],
  52431. "category": "people"
  52432. },
  52433. ":man_mechanic_tone4:": {
  52434. "uc_base": "1f468-1f3fe-1f527",
  52435. "uc_output": "1f468-1f3fe-200d-1f527",
  52436. "uc_match": "1f468-1f3fe-1f527",
  52437. "uc_greedy": "1f468-1f3fe-1f527",
  52438. "shortnames": [":man_mechanic_medium_dark_skin_tone:"],
  52439. "category": "people"
  52440. },
  52441. ":man_mechanic_tone5:": {
  52442. "uc_base": "1f468-1f3ff-1f527",
  52443. "uc_output": "1f468-1f3ff-200d-1f527",
  52444. "uc_match": "1f468-1f3ff-1f527",
  52445. "uc_greedy": "1f468-1f3ff-1f527",
  52446. "shortnames": [":man_mechanic_dark_skin_tone:"],
  52447. "category": "people"
  52448. },
  52449. ":man_office_worker_tone1:": {
  52450. "uc_base": "1f468-1f3fb-1f4bc",
  52451. "uc_output": "1f468-1f3fb-200d-1f4bc",
  52452. "uc_match": "1f468-1f3fb-1f4bc",
  52453. "uc_greedy": "1f468-1f3fb-1f4bc",
  52454. "shortnames": [":man_office_worker_light_skin_tone:"],
  52455. "category": "people"
  52456. },
  52457. ":man_office_worker_tone2:": {
  52458. "uc_base": "1f468-1f3fc-1f4bc",
  52459. "uc_output": "1f468-1f3fc-200d-1f4bc",
  52460. "uc_match": "1f468-1f3fc-1f4bc",
  52461. "uc_greedy": "1f468-1f3fc-1f4bc",
  52462. "shortnames": [":man_office_worker_medium_light_skin_tone:"],
  52463. "category": "people"
  52464. },
  52465. ":man_office_worker_tone3:": {
  52466. "uc_base": "1f468-1f3fd-1f4bc",
  52467. "uc_output": "1f468-1f3fd-200d-1f4bc",
  52468. "uc_match": "1f468-1f3fd-1f4bc",
  52469. "uc_greedy": "1f468-1f3fd-1f4bc",
  52470. "shortnames": [":man_office_worker_medium_skin_tone:"],
  52471. "category": "people"
  52472. },
  52473. ":man_office_worker_tone4:": {
  52474. "uc_base": "1f468-1f3fe-1f4bc",
  52475. "uc_output": "1f468-1f3fe-200d-1f4bc",
  52476. "uc_match": "1f468-1f3fe-1f4bc",
  52477. "uc_greedy": "1f468-1f3fe-1f4bc",
  52478. "shortnames": [":man_office_worker_medium_dark_skin_tone:"],
  52479. "category": "people"
  52480. },
  52481. ":man_office_worker_tone5:": {
  52482. "uc_base": "1f468-1f3ff-1f4bc",
  52483. "uc_output": "1f468-1f3ff-200d-1f4bc",
  52484. "uc_match": "1f468-1f3ff-1f4bc",
  52485. "uc_greedy": "1f468-1f3ff-1f4bc",
  52486. "shortnames": [":man_office_worker_dark_skin_tone:"],
  52487. "category": "people"
  52488. },
  52489. ":man_scientist_tone1:": {
  52490. "uc_base": "1f468-1f3fb-1f52c",
  52491. "uc_output": "1f468-1f3fb-200d-1f52c",
  52492. "uc_match": "1f468-1f3fb-1f52c",
  52493. "uc_greedy": "1f468-1f3fb-1f52c",
  52494. "shortnames": [":man_scientist_light_skin_tone:"],
  52495. "category": "people"
  52496. },
  52497. ":man_scientist_tone2:": {
  52498. "uc_base": "1f468-1f3fc-1f52c",
  52499. "uc_output": "1f468-1f3fc-200d-1f52c",
  52500. "uc_match": "1f468-1f3fc-1f52c",
  52501. "uc_greedy": "1f468-1f3fc-1f52c",
  52502. "shortnames": [":man_scientist_medium_light_skin_tone:"],
  52503. "category": "people"
  52504. },
  52505. ":man_scientist_tone3:": {
  52506. "uc_base": "1f468-1f3fd-1f52c",
  52507. "uc_output": "1f468-1f3fd-200d-1f52c",
  52508. "uc_match": "1f468-1f3fd-1f52c",
  52509. "uc_greedy": "1f468-1f3fd-1f52c",
  52510. "shortnames": [":man_scientist_medium_skin_tone:"],
  52511. "category": "people"
  52512. },
  52513. ":man_scientist_tone4:": {
  52514. "uc_base": "1f468-1f3fe-1f52c",
  52515. "uc_output": "1f468-1f3fe-200d-1f52c",
  52516. "uc_match": "1f468-1f3fe-1f52c",
  52517. "uc_greedy": "1f468-1f3fe-1f52c",
  52518. "shortnames": [":man_scientist_medium_dark_skin_tone:"],
  52519. "category": "people"
  52520. },
  52521. ":man_scientist_tone5:": {
  52522. "uc_base": "1f468-1f3ff-1f52c",
  52523. "uc_output": "1f468-1f3ff-200d-1f52c",
  52524. "uc_match": "1f468-1f3ff-1f52c",
  52525. "uc_greedy": "1f468-1f3ff-1f52c",
  52526. "shortnames": [":man_scientist_dark_skin_tone:"],
  52527. "category": "people"
  52528. },
  52529. ":man_singer_tone1:": {
  52530. "uc_base": "1f468-1f3fb-1f3a4",
  52531. "uc_output": "1f468-1f3fb-200d-1f3a4",
  52532. "uc_match": "1f468-1f3fb-1f3a4",
  52533. "uc_greedy": "1f468-1f3fb-1f3a4",
  52534. "shortnames": [":man_singer_light_skin_tone:"],
  52535. "category": "people"
  52536. },
  52537. ":man_singer_tone2:": {
  52538. "uc_base": "1f468-1f3fc-1f3a4",
  52539. "uc_output": "1f468-1f3fc-200d-1f3a4",
  52540. "uc_match": "1f468-1f3fc-1f3a4",
  52541. "uc_greedy": "1f468-1f3fc-1f3a4",
  52542. "shortnames": [":man_singer_medium_light_skin_tone:"],
  52543. "category": "people"
  52544. },
  52545. ":man_singer_tone3:": {
  52546. "uc_base": "1f468-1f3fd-1f3a4",
  52547. "uc_output": "1f468-1f3fd-200d-1f3a4",
  52548. "uc_match": "1f468-1f3fd-1f3a4",
  52549. "uc_greedy": "1f468-1f3fd-1f3a4",
  52550. "shortnames": [":man_singer_medium_skin_tone:"],
  52551. "category": "people"
  52552. },
  52553. ":man_singer_tone4:": {
  52554. "uc_base": "1f468-1f3fe-1f3a4",
  52555. "uc_output": "1f468-1f3fe-200d-1f3a4",
  52556. "uc_match": "1f468-1f3fe-1f3a4",
  52557. "uc_greedy": "1f468-1f3fe-1f3a4",
  52558. "shortnames": [":man_singer_medium_dark_skin_tone:"],
  52559. "category": "people"
  52560. },
  52561. ":man_singer_tone5:": {
  52562. "uc_base": "1f468-1f3ff-1f3a4",
  52563. "uc_output": "1f468-1f3ff-200d-1f3a4",
  52564. "uc_match": "1f468-1f3ff-1f3a4",
  52565. "uc_greedy": "1f468-1f3ff-1f3a4",
  52566. "shortnames": [":man_singer_dark_skin_tone:"],
  52567. "category": "people"
  52568. },
  52569. ":man_student_tone1:": {
  52570. "uc_base": "1f468-1f3fb-1f393",
  52571. "uc_output": "1f468-1f3fb-200d-1f393",
  52572. "uc_match": "1f468-1f3fb-1f393",
  52573. "uc_greedy": "1f468-1f3fb-1f393",
  52574. "shortnames": [":man_student_light_skin_tone:"],
  52575. "category": "people"
  52576. },
  52577. ":man_student_tone2:": {
  52578. "uc_base": "1f468-1f3fc-1f393",
  52579. "uc_output": "1f468-1f3fc-200d-1f393",
  52580. "uc_match": "1f468-1f3fc-1f393",
  52581. "uc_greedy": "1f468-1f3fc-1f393",
  52582. "shortnames": [":man_student_medium_light_skin_tone:"],
  52583. "category": "people"
  52584. },
  52585. ":man_student_tone3:": {
  52586. "uc_base": "1f468-1f3fd-1f393",
  52587. "uc_output": "1f468-1f3fd-200d-1f393",
  52588. "uc_match": "1f468-1f3fd-1f393",
  52589. "uc_greedy": "1f468-1f3fd-1f393",
  52590. "shortnames": [":man_student_medium_skin_tone:"],
  52591. "category": "people"
  52592. },
  52593. ":man_student_tone4:": {
  52594. "uc_base": "1f468-1f3fe-1f393",
  52595. "uc_output": "1f468-1f3fe-200d-1f393",
  52596. "uc_match": "1f468-1f3fe-1f393",
  52597. "uc_greedy": "1f468-1f3fe-1f393",
  52598. "shortnames": [":man_student_medium_dark_skin_tone:"],
  52599. "category": "people"
  52600. },
  52601. ":man_student_tone5:": {
  52602. "uc_base": "1f468-1f3ff-1f393",
  52603. "uc_output": "1f468-1f3ff-200d-1f393",
  52604. "uc_match": "1f468-1f3ff-1f393",
  52605. "uc_greedy": "1f468-1f3ff-1f393",
  52606. "shortnames": [":man_student_dark_skin_tone:"],
  52607. "category": "people"
  52608. },
  52609. ":man_teacher_tone1:": {
  52610. "uc_base": "1f468-1f3fb-1f3eb",
  52611. "uc_output": "1f468-1f3fb-200d-1f3eb",
  52612. "uc_match": "1f468-1f3fb-1f3eb",
  52613. "uc_greedy": "1f468-1f3fb-1f3eb",
  52614. "shortnames": [":man_teacher_light_skin_tone:"],
  52615. "category": "people"
  52616. },
  52617. ":man_teacher_tone2:": {
  52618. "uc_base": "1f468-1f3fc-1f3eb",
  52619. "uc_output": "1f468-1f3fc-200d-1f3eb",
  52620. "uc_match": "1f468-1f3fc-1f3eb",
  52621. "uc_greedy": "1f468-1f3fc-1f3eb",
  52622. "shortnames": [":man_teacher_medium_light_skin_tone:"],
  52623. "category": "people"
  52624. },
  52625. ":man_teacher_tone3:": {
  52626. "uc_base": "1f468-1f3fd-1f3eb",
  52627. "uc_output": "1f468-1f3fd-200d-1f3eb",
  52628. "uc_match": "1f468-1f3fd-1f3eb",
  52629. "uc_greedy": "1f468-1f3fd-1f3eb",
  52630. "shortnames": [":man_teacher_medium_skin_tone:"],
  52631. "category": "people"
  52632. },
  52633. ":man_teacher_tone4:": {
  52634. "uc_base": "1f468-1f3fe-1f3eb",
  52635. "uc_output": "1f468-1f3fe-200d-1f3eb",
  52636. "uc_match": "1f468-1f3fe-1f3eb",
  52637. "uc_greedy": "1f468-1f3fe-1f3eb",
  52638. "shortnames": [":man_teacher_medium_dark_skin_tone:"],
  52639. "category": "people"
  52640. },
  52641. ":man_teacher_tone5:": {
  52642. "uc_base": "1f468-1f3ff-1f3eb",
  52643. "uc_output": "1f468-1f3ff-200d-1f3eb",
  52644. "uc_match": "1f468-1f3ff-1f3eb",
  52645. "uc_greedy": "1f468-1f3ff-1f3eb",
  52646. "shortnames": [":man_teacher_dark_skin_tone:"],
  52647. "category": "people"
  52648. },
  52649. ":man_technologist_tone1:": {
  52650. "uc_base": "1f468-1f3fb-1f4bb",
  52651. "uc_output": "1f468-1f3fb-200d-1f4bb",
  52652. "uc_match": "1f468-1f3fb-1f4bb",
  52653. "uc_greedy": "1f468-1f3fb-1f4bb",
  52654. "shortnames": [":man_technologist_light_skin_tone:"],
  52655. "category": "people"
  52656. },
  52657. ":man_technologist_tone2:": {
  52658. "uc_base": "1f468-1f3fc-1f4bb",
  52659. "uc_output": "1f468-1f3fc-200d-1f4bb",
  52660. "uc_match": "1f468-1f3fc-1f4bb",
  52661. "uc_greedy": "1f468-1f3fc-1f4bb",
  52662. "shortnames": [":man_technologist_medium_light_skin_tone:"],
  52663. "category": "people"
  52664. },
  52665. ":man_technologist_tone3:": {
  52666. "uc_base": "1f468-1f3fd-1f4bb",
  52667. "uc_output": "1f468-1f3fd-200d-1f4bb",
  52668. "uc_match": "1f468-1f3fd-1f4bb",
  52669. "uc_greedy": "1f468-1f3fd-1f4bb",
  52670. "shortnames": [":man_technologist_medium_skin_tone:"],
  52671. "category": "people"
  52672. },
  52673. ":man_technologist_tone4:": {
  52674. "uc_base": "1f468-1f3fe-1f4bb",
  52675. "uc_output": "1f468-1f3fe-200d-1f4bb",
  52676. "uc_match": "1f468-1f3fe-1f4bb",
  52677. "uc_greedy": "1f468-1f3fe-1f4bb",
  52678. "shortnames": [":man_technologist_medium_dark_skin_tone:"],
  52679. "category": "people"
  52680. },
  52681. ":man_technologist_tone5:": {
  52682. "uc_base": "1f468-1f3ff-1f4bb",
  52683. "uc_output": "1f468-1f3ff-200d-1f4bb",
  52684. "uc_match": "1f468-1f3ff-1f4bb",
  52685. "uc_greedy": "1f468-1f3ff-1f4bb",
  52686. "shortnames": [":man_technologist_dark_skin_tone:"],
  52687. "category": "people"
  52688. },
  52689. ":woman_artist_tone1:": {
  52690. "uc_base": "1f469-1f3fb-1f3a8",
  52691. "uc_output": "1f469-1f3fb-200d-1f3a8",
  52692. "uc_match": "1f469-1f3fb-1f3a8",
  52693. "uc_greedy": "1f469-1f3fb-1f3a8",
  52694. "shortnames": [":woman_artist_light_skin_tone:"],
  52695. "category": "people"
  52696. },
  52697. ":woman_artist_tone2:": {
  52698. "uc_base": "1f469-1f3fc-1f3a8",
  52699. "uc_output": "1f469-1f3fc-200d-1f3a8",
  52700. "uc_match": "1f469-1f3fc-1f3a8",
  52701. "uc_greedy": "1f469-1f3fc-1f3a8",
  52702. "shortnames": [":woman_artist_medium_light_skin_tone:"],
  52703. "category": "people"
  52704. },
  52705. ":woman_artist_tone3:": {
  52706. "uc_base": "1f469-1f3fd-1f3a8",
  52707. "uc_output": "1f469-1f3fd-200d-1f3a8",
  52708. "uc_match": "1f469-1f3fd-1f3a8",
  52709. "uc_greedy": "1f469-1f3fd-1f3a8",
  52710. "shortnames": [":woman_artist_medium_skin_tone:"],
  52711. "category": "people"
  52712. },
  52713. ":woman_artist_tone4:": {
  52714. "uc_base": "1f469-1f3fe-1f3a8",
  52715. "uc_output": "1f469-1f3fe-200d-1f3a8",
  52716. "uc_match": "1f469-1f3fe-1f3a8",
  52717. "uc_greedy": "1f469-1f3fe-1f3a8",
  52718. "shortnames": [":woman_artist_medium_dark_skin_tone:"],
  52719. "category": "people"
  52720. },
  52721. ":woman_artist_tone5:": {
  52722. "uc_base": "1f469-1f3ff-1f3a8",
  52723. "uc_output": "1f469-1f3ff-200d-1f3a8",
  52724. "uc_match": "1f469-1f3ff-1f3a8",
  52725. "uc_greedy": "1f469-1f3ff-1f3a8",
  52726. "shortnames": [":woman_artist_dark_skin_tone:"],
  52727. "category": "people"
  52728. },
  52729. ":woman_astronaut_tone1:": {
  52730. "uc_base": "1f469-1f3fb-1f680",
  52731. "uc_output": "1f469-1f3fb-200d-1f680",
  52732. "uc_match": "1f469-1f3fb-1f680",
  52733. "uc_greedy": "1f469-1f3fb-1f680",
  52734. "shortnames": [":woman_astronaut_light_skin_tone:"],
  52735. "category": "people"
  52736. },
  52737. ":woman_astronaut_tone2:": {
  52738. "uc_base": "1f469-1f3fc-1f680",
  52739. "uc_output": "1f469-1f3fc-200d-1f680",
  52740. "uc_match": "1f469-1f3fc-1f680",
  52741. "uc_greedy": "1f469-1f3fc-1f680",
  52742. "shortnames": [":woman_astronaut_medium_light_skin_tone:"],
  52743. "category": "people"
  52744. },
  52745. ":woman_astronaut_tone3:": {
  52746. "uc_base": "1f469-1f3fd-1f680",
  52747. "uc_output": "1f469-1f3fd-200d-1f680",
  52748. "uc_match": "1f469-1f3fd-1f680",
  52749. "uc_greedy": "1f469-1f3fd-1f680",
  52750. "shortnames": [":woman_astronaut_medium_skin_tone:"],
  52751. "category": "people"
  52752. },
  52753. ":woman_astronaut_tone4:": {
  52754. "uc_base": "1f469-1f3fe-1f680",
  52755. "uc_output": "1f469-1f3fe-200d-1f680",
  52756. "uc_match": "1f469-1f3fe-1f680",
  52757. "uc_greedy": "1f469-1f3fe-1f680",
  52758. "shortnames": [":woman_astronaut_medium_dark_skin_tone:"],
  52759. "category": "people"
  52760. },
  52761. ":woman_astronaut_tone5:": {
  52762. "uc_base": "1f469-1f3ff-1f680",
  52763. "uc_output": "1f469-1f3ff-200d-1f680",
  52764. "uc_match": "1f469-1f3ff-1f680",
  52765. "uc_greedy": "1f469-1f3ff-1f680",
  52766. "shortnames": [":woman_astronaut_dark_skin_tone:"],
  52767. "category": "people"
  52768. },
  52769. ":woman_cook_tone1:": {
  52770. "uc_base": "1f469-1f3fb-1f373",
  52771. "uc_output": "1f469-1f3fb-200d-1f373",
  52772. "uc_match": "1f469-1f3fb-1f373",
  52773. "uc_greedy": "1f469-1f3fb-1f373",
  52774. "shortnames": [":woman_cook_light_skin_tone:"],
  52775. "category": "people"
  52776. },
  52777. ":woman_cook_tone2:": {
  52778. "uc_base": "1f469-1f3fc-1f373",
  52779. "uc_output": "1f469-1f3fc-200d-1f373",
  52780. "uc_match": "1f469-1f3fc-1f373",
  52781. "uc_greedy": "1f469-1f3fc-1f373",
  52782. "shortnames": [":woman_cook_medium_light_skin_tone:"],
  52783. "category": "people"
  52784. },
  52785. ":woman_cook_tone3:": {
  52786. "uc_base": "1f469-1f3fd-1f373",
  52787. "uc_output": "1f469-1f3fd-200d-1f373",
  52788. "uc_match": "1f469-1f3fd-1f373",
  52789. "uc_greedy": "1f469-1f3fd-1f373",
  52790. "shortnames": [":woman_cook_medium_skin_tone:"],
  52791. "category": "people"
  52792. },
  52793. ":woman_cook_tone4:": {
  52794. "uc_base": "1f469-1f3fe-1f373",
  52795. "uc_output": "1f469-1f3fe-200d-1f373",
  52796. "uc_match": "1f469-1f3fe-1f373",
  52797. "uc_greedy": "1f469-1f3fe-1f373",
  52798. "shortnames": [":woman_cook_medium_dark_skin_tone:"],
  52799. "category": "people"
  52800. },
  52801. ":woman_cook_tone5:": {
  52802. "uc_base": "1f469-1f3ff-1f373",
  52803. "uc_output": "1f469-1f3ff-200d-1f373",
  52804. "uc_match": "1f469-1f3ff-1f373",
  52805. "uc_greedy": "1f469-1f3ff-1f373",
  52806. "shortnames": [":woman_cook_dark_skin_tone:"],
  52807. "category": "people"
  52808. },
  52809. ":woman_factory_worker_tone1:": {
  52810. "uc_base": "1f469-1f3fb-1f3ed",
  52811. "uc_output": "1f469-1f3fb-200d-1f3ed",
  52812. "uc_match": "1f469-1f3fb-1f3ed",
  52813. "uc_greedy": "1f469-1f3fb-1f3ed",
  52814. "shortnames": [":woman_factory_worker_light_skin_tone:"],
  52815. "category": "people"
  52816. },
  52817. ":woman_factory_worker_tone2:": {
  52818. "uc_base": "1f469-1f3fc-1f3ed",
  52819. "uc_output": "1f469-1f3fc-200d-1f3ed",
  52820. "uc_match": "1f469-1f3fc-1f3ed",
  52821. "uc_greedy": "1f469-1f3fc-1f3ed",
  52822. "shortnames": [":woman_factory_worker_medium_light_skin_tone:"],
  52823. "category": "people"
  52824. },
  52825. ":woman_factory_worker_tone3:": {
  52826. "uc_base": "1f469-1f3fd-1f3ed",
  52827. "uc_output": "1f469-1f3fd-200d-1f3ed",
  52828. "uc_match": "1f469-1f3fd-1f3ed",
  52829. "uc_greedy": "1f469-1f3fd-1f3ed",
  52830. "shortnames": [":woman_factory_worker_medium_skin_tone:"],
  52831. "category": "people"
  52832. },
  52833. ":woman_factory_worker_tone4:": {
  52834. "uc_base": "1f469-1f3fe-1f3ed",
  52835. "uc_output": "1f469-1f3fe-200d-1f3ed",
  52836. "uc_match": "1f469-1f3fe-1f3ed",
  52837. "uc_greedy": "1f469-1f3fe-1f3ed",
  52838. "shortnames": [":woman_factory_worker_medium_dark_skin_tone:"],
  52839. "category": "people"
  52840. },
  52841. ":woman_factory_worker_tone5:": {
  52842. "uc_base": "1f469-1f3ff-1f3ed",
  52843. "uc_output": "1f469-1f3ff-200d-1f3ed",
  52844. "uc_match": "1f469-1f3ff-1f3ed",
  52845. "uc_greedy": "1f469-1f3ff-1f3ed",
  52846. "shortnames": [":woman_factory_worker_dark_skin_tone:"],
  52847. "category": "people"
  52848. },
  52849. ":woman_farmer_tone1:": {
  52850. "uc_base": "1f469-1f3fb-1f33e",
  52851. "uc_output": "1f469-1f3fb-200d-1f33e",
  52852. "uc_match": "1f469-1f3fb-1f33e",
  52853. "uc_greedy": "1f469-1f3fb-1f33e",
  52854. "shortnames": [":woman_farmer_light_skin_tone:"],
  52855. "category": "people"
  52856. },
  52857. ":woman_farmer_tone2:": {
  52858. "uc_base": "1f469-1f3fc-1f33e",
  52859. "uc_output": "1f469-1f3fc-200d-1f33e",
  52860. "uc_match": "1f469-1f3fc-1f33e",
  52861. "uc_greedy": "1f469-1f3fc-1f33e",
  52862. "shortnames": [":woman_farmer_medium_light_skin_tone:"],
  52863. "category": "people"
  52864. },
  52865. ":woman_farmer_tone3:": {
  52866. "uc_base": "1f469-1f3fd-1f33e",
  52867. "uc_output": "1f469-1f3fd-200d-1f33e",
  52868. "uc_match": "1f469-1f3fd-1f33e",
  52869. "uc_greedy": "1f469-1f3fd-1f33e",
  52870. "shortnames": [":woman_farmer_medium_skin_tone:"],
  52871. "category": "people"
  52872. },
  52873. ":woman_farmer_tone4:": {
  52874. "uc_base": "1f469-1f3fe-1f33e",
  52875. "uc_output": "1f469-1f3fe-200d-1f33e",
  52876. "uc_match": "1f469-1f3fe-1f33e",
  52877. "uc_greedy": "1f469-1f3fe-1f33e",
  52878. "shortnames": [":woman_farmer_medium_dark_skin_tone:"],
  52879. "category": "people"
  52880. },
  52881. ":woman_farmer_tone5:": {
  52882. "uc_base": "1f469-1f3ff-1f33e",
  52883. "uc_output": "1f469-1f3ff-200d-1f33e",
  52884. "uc_match": "1f469-1f3ff-1f33e",
  52885. "uc_greedy": "1f469-1f3ff-1f33e",
  52886. "shortnames": [":woman_farmer_dark_skin_tone:"],
  52887. "category": "people"
  52888. },
  52889. ":woman_firefighter_tone1:": {
  52890. "uc_base": "1f469-1f3fb-1f692",
  52891. "uc_output": "1f469-1f3fb-200d-1f692",
  52892. "uc_match": "1f469-1f3fb-1f692",
  52893. "uc_greedy": "1f469-1f3fb-1f692",
  52894. "shortnames": [":woman_firefighter_light_skin_tone:"],
  52895. "category": "people"
  52896. },
  52897. ":woman_firefighter_tone2:": {
  52898. "uc_base": "1f469-1f3fc-1f692",
  52899. "uc_output": "1f469-1f3fc-200d-1f692",
  52900. "uc_match": "1f469-1f3fc-1f692",
  52901. "uc_greedy": "1f469-1f3fc-1f692",
  52902. "shortnames": [":woman_firefighter_medium_light_skin_tone:"],
  52903. "category": "people"
  52904. },
  52905. ":woman_firefighter_tone3:": {
  52906. "uc_base": "1f469-1f3fd-1f692",
  52907. "uc_output": "1f469-1f3fd-200d-1f692",
  52908. "uc_match": "1f469-1f3fd-1f692",
  52909. "uc_greedy": "1f469-1f3fd-1f692",
  52910. "shortnames": [":woman_firefighter_medium_skin_tone:"],
  52911. "category": "people"
  52912. },
  52913. ":woman_firefighter_tone4:": {
  52914. "uc_base": "1f469-1f3fe-1f692",
  52915. "uc_output": "1f469-1f3fe-200d-1f692",
  52916. "uc_match": "1f469-1f3fe-1f692",
  52917. "uc_greedy": "1f469-1f3fe-1f692",
  52918. "shortnames": [":woman_firefighter_medium_dark_skin_tone:"],
  52919. "category": "people"
  52920. },
  52921. ":woman_firefighter_tone5:": {
  52922. "uc_base": "1f469-1f3ff-1f692",
  52923. "uc_output": "1f469-1f3ff-200d-1f692",
  52924. "uc_match": "1f469-1f3ff-1f692",
  52925. "uc_greedy": "1f469-1f3ff-1f692",
  52926. "shortnames": [":woman_firefighter_dark_skin_tone:"],
  52927. "category": "people"
  52928. },
  52929. ":woman_mechanic_tone1:": {
  52930. "uc_base": "1f469-1f3fb-1f527",
  52931. "uc_output": "1f469-1f3fb-200d-1f527",
  52932. "uc_match": "1f469-1f3fb-1f527",
  52933. "uc_greedy": "1f469-1f3fb-1f527",
  52934. "shortnames": [":woman_mechanic_light_skin_tone:"],
  52935. "category": "people"
  52936. },
  52937. ":woman_mechanic_tone2:": {
  52938. "uc_base": "1f469-1f3fc-1f527",
  52939. "uc_output": "1f469-1f3fc-200d-1f527",
  52940. "uc_match": "1f469-1f3fc-1f527",
  52941. "uc_greedy": "1f469-1f3fc-1f527",
  52942. "shortnames": [":woman_mechanic_medium_light_skin_tone:"],
  52943. "category": "people"
  52944. },
  52945. ":woman_mechanic_tone3:": {
  52946. "uc_base": "1f469-1f3fd-1f527",
  52947. "uc_output": "1f469-1f3fd-200d-1f527",
  52948. "uc_match": "1f469-1f3fd-1f527",
  52949. "uc_greedy": "1f469-1f3fd-1f527",
  52950. "shortnames": [":woman_mechanic_medium_skin_tone:"],
  52951. "category": "people"
  52952. },
  52953. ":woman_mechanic_tone4:": {
  52954. "uc_base": "1f469-1f3fe-1f527",
  52955. "uc_output": "1f469-1f3fe-200d-1f527",
  52956. "uc_match": "1f469-1f3fe-1f527",
  52957. "uc_greedy": "1f469-1f3fe-1f527",
  52958. "shortnames": [":woman_mechanic_medium_dark_skin_tone:"],
  52959. "category": "people"
  52960. },
  52961. ":woman_mechanic_tone5:": {
  52962. "uc_base": "1f469-1f3ff-1f527",
  52963. "uc_output": "1f469-1f3ff-200d-1f527",
  52964. "uc_match": "1f469-1f3ff-1f527",
  52965. "uc_greedy": "1f469-1f3ff-1f527",
  52966. "shortnames": [":woman_mechanic_dark_skin_tone:"],
  52967. "category": "people"
  52968. },
  52969. ":woman_office_worker_tone1:": {
  52970. "uc_base": "1f469-1f3fb-1f4bc",
  52971. "uc_output": "1f469-1f3fb-200d-1f4bc",
  52972. "uc_match": "1f469-1f3fb-1f4bc",
  52973. "uc_greedy": "1f469-1f3fb-1f4bc",
  52974. "shortnames": [":woman_office_worker_light_skin_tone:"],
  52975. "category": "people"
  52976. },
  52977. ":woman_office_worker_tone2:": {
  52978. "uc_base": "1f469-1f3fc-1f4bc",
  52979. "uc_output": "1f469-1f3fc-200d-1f4bc",
  52980. "uc_match": "1f469-1f3fc-1f4bc",
  52981. "uc_greedy": "1f469-1f3fc-1f4bc",
  52982. "shortnames": [":woman_office_worker_medium_light_skin_tone:"],
  52983. "category": "people"
  52984. },
  52985. ":woman_office_worker_tone3:": {
  52986. "uc_base": "1f469-1f3fd-1f4bc",
  52987. "uc_output": "1f469-1f3fd-200d-1f4bc",
  52988. "uc_match": "1f469-1f3fd-1f4bc",
  52989. "uc_greedy": "1f469-1f3fd-1f4bc",
  52990. "shortnames": [":woman_office_worker_medium_skin_tone:"],
  52991. "category": "people"
  52992. },
  52993. ":woman_office_worker_tone4:": {
  52994. "uc_base": "1f469-1f3fe-1f4bc",
  52995. "uc_output": "1f469-1f3fe-200d-1f4bc",
  52996. "uc_match": "1f469-1f3fe-1f4bc",
  52997. "uc_greedy": "1f469-1f3fe-1f4bc",
  52998. "shortnames": [":woman_office_worker_medium_dark_skin_tone:"],
  52999. "category": "people"
  53000. },
  53001. ":woman_office_worker_tone5:": {
  53002. "uc_base": "1f469-1f3ff-1f4bc",
  53003. "uc_output": "1f469-1f3ff-200d-1f4bc",
  53004. "uc_match": "1f469-1f3ff-1f4bc",
  53005. "uc_greedy": "1f469-1f3ff-1f4bc",
  53006. "shortnames": [":woman_office_worker_dark_skin_tone:"],
  53007. "category": "people"
  53008. },
  53009. ":woman_scientist_tone1:": {
  53010. "uc_base": "1f469-1f3fb-1f52c",
  53011. "uc_output": "1f469-1f3fb-200d-1f52c",
  53012. "uc_match": "1f469-1f3fb-1f52c",
  53013. "uc_greedy": "1f469-1f3fb-1f52c",
  53014. "shortnames": [":woman_scientist_light_skin_tone:"],
  53015. "category": "people"
  53016. },
  53017. ":woman_scientist_tone2:": {
  53018. "uc_base": "1f469-1f3fc-1f52c",
  53019. "uc_output": "1f469-1f3fc-200d-1f52c",
  53020. "uc_match": "1f469-1f3fc-1f52c",
  53021. "uc_greedy": "1f469-1f3fc-1f52c",
  53022. "shortnames": [":woman_scientist_medium_light_skin_tone:"],
  53023. "category": "people"
  53024. },
  53025. ":woman_scientist_tone3:": {
  53026. "uc_base": "1f469-1f3fd-1f52c",
  53027. "uc_output": "1f469-1f3fd-200d-1f52c",
  53028. "uc_match": "1f469-1f3fd-1f52c",
  53029. "uc_greedy": "1f469-1f3fd-1f52c",
  53030. "shortnames": [":woman_scientist_medium_skin_tone:"],
  53031. "category": "people"
  53032. },
  53033. ":woman_scientist_tone4:": {
  53034. "uc_base": "1f469-1f3fe-1f52c",
  53035. "uc_output": "1f469-1f3fe-200d-1f52c",
  53036. "uc_match": "1f469-1f3fe-1f52c",
  53037. "uc_greedy": "1f469-1f3fe-1f52c",
  53038. "shortnames": [":woman_scientist_medium_dark_skin_tone:"],
  53039. "category": "people"
  53040. },
  53041. ":woman_scientist_tone5:": {
  53042. "uc_base": "1f469-1f3ff-1f52c",
  53043. "uc_output": "1f469-1f3ff-200d-1f52c",
  53044. "uc_match": "1f469-1f3ff-1f52c",
  53045. "uc_greedy": "1f469-1f3ff-1f52c",
  53046. "shortnames": [":woman_scientist_dark_skin_tone:"],
  53047. "category": "people"
  53048. },
  53049. ":woman_singer_tone1:": {
  53050. "uc_base": "1f469-1f3fb-1f3a4",
  53051. "uc_output": "1f469-1f3fb-200d-1f3a4",
  53052. "uc_match": "1f469-1f3fb-1f3a4",
  53053. "uc_greedy": "1f469-1f3fb-1f3a4",
  53054. "shortnames": [":woman_singer_light_skin_tone:"],
  53055. "category": "people"
  53056. },
  53057. ":woman_singer_tone2:": {
  53058. "uc_base": "1f469-1f3fc-1f3a4",
  53059. "uc_output": "1f469-1f3fc-200d-1f3a4",
  53060. "uc_match": "1f469-1f3fc-1f3a4",
  53061. "uc_greedy": "1f469-1f3fc-1f3a4",
  53062. "shortnames": [":woman_singer_medium_light_skin_tone:"],
  53063. "category": "people"
  53064. },
  53065. ":woman_singer_tone3:": {
  53066. "uc_base": "1f469-1f3fd-1f3a4",
  53067. "uc_output": "1f469-1f3fd-200d-1f3a4",
  53068. "uc_match": "1f469-1f3fd-1f3a4",
  53069. "uc_greedy": "1f469-1f3fd-1f3a4",
  53070. "shortnames": [":woman_singer_medium_skin_tone:"],
  53071. "category": "people"
  53072. },
  53073. ":woman_singer_tone4:": {
  53074. "uc_base": "1f469-1f3fe-1f3a4",
  53075. "uc_output": "1f469-1f3fe-200d-1f3a4",
  53076. "uc_match": "1f469-1f3fe-1f3a4",
  53077. "uc_greedy": "1f469-1f3fe-1f3a4",
  53078. "shortnames": [":woman_singer_medium_dark_skin_tone:"],
  53079. "category": "people"
  53080. },
  53081. ":woman_singer_tone5:": {
  53082. "uc_base": "1f469-1f3ff-1f3a4",
  53083. "uc_output": "1f469-1f3ff-200d-1f3a4",
  53084. "uc_match": "1f469-1f3ff-1f3a4",
  53085. "uc_greedy": "1f469-1f3ff-1f3a4",
  53086. "shortnames": [":woman_singer_dark_skin_tone:"],
  53087. "category": "people"
  53088. },
  53089. ":woman_student_tone1:": {
  53090. "uc_base": "1f469-1f3fb-1f393",
  53091. "uc_output": "1f469-1f3fb-200d-1f393",
  53092. "uc_match": "1f469-1f3fb-1f393",
  53093. "uc_greedy": "1f469-1f3fb-1f393",
  53094. "shortnames": [":woman_student_light_skin_tone:"],
  53095. "category": "people"
  53096. },
  53097. ":woman_student_tone2:": {
  53098. "uc_base": "1f469-1f3fc-1f393",
  53099. "uc_output": "1f469-1f3fc-200d-1f393",
  53100. "uc_match": "1f469-1f3fc-1f393",
  53101. "uc_greedy": "1f469-1f3fc-1f393",
  53102. "shortnames": [":woman_student_medium_light_skin_tone:"],
  53103. "category": "people"
  53104. },
  53105. ":woman_student_tone3:": {
  53106. "uc_base": "1f469-1f3fd-1f393",
  53107. "uc_output": "1f469-1f3fd-200d-1f393",
  53108. "uc_match": "1f469-1f3fd-1f393",
  53109. "uc_greedy": "1f469-1f3fd-1f393",
  53110. "shortnames": [":woman_student_medium_skin_tone:"],
  53111. "category": "people"
  53112. },
  53113. ":woman_student_tone4:": {
  53114. "uc_base": "1f469-1f3fe-1f393",
  53115. "uc_output": "1f469-1f3fe-200d-1f393",
  53116. "uc_match": "1f469-1f3fe-1f393",
  53117. "uc_greedy": "1f469-1f3fe-1f393",
  53118. "shortnames": [":woman_student_medium_dark_skin_tone:"],
  53119. "category": "people"
  53120. },
  53121. ":woman_student_tone5:": {
  53122. "uc_base": "1f469-1f3ff-1f393",
  53123. "uc_output": "1f469-1f3ff-200d-1f393",
  53124. "uc_match": "1f469-1f3ff-1f393",
  53125. "uc_greedy": "1f469-1f3ff-1f393",
  53126. "shortnames": [":woman_student_dark_skin_tone:"],
  53127. "category": "people"
  53128. },
  53129. ":woman_teacher_tone1:": {
  53130. "uc_base": "1f469-1f3fb-1f3eb",
  53131. "uc_output": "1f469-1f3fb-200d-1f3eb",
  53132. "uc_match": "1f469-1f3fb-1f3eb",
  53133. "uc_greedy": "1f469-1f3fb-1f3eb",
  53134. "shortnames": [":woman_teacher_light_skin_tone:"],
  53135. "category": "people"
  53136. },
  53137. ":woman_teacher_tone2:": {
  53138. "uc_base": "1f469-1f3fc-1f3eb",
  53139. "uc_output": "1f469-1f3fc-200d-1f3eb",
  53140. "uc_match": "1f469-1f3fc-1f3eb",
  53141. "uc_greedy": "1f469-1f3fc-1f3eb",
  53142. "shortnames": [":woman_teacher_medium_light_skin_tone:"],
  53143. "category": "people"
  53144. },
  53145. ":woman_teacher_tone3:": {
  53146. "uc_base": "1f469-1f3fd-1f3eb",
  53147. "uc_output": "1f469-1f3fd-200d-1f3eb",
  53148. "uc_match": "1f469-1f3fd-1f3eb",
  53149. "uc_greedy": "1f469-1f3fd-1f3eb",
  53150. "shortnames": [":woman_teacher_medium_skin_tone:"],
  53151. "category": "people"
  53152. },
  53153. ":woman_teacher_tone4:": {
  53154. "uc_base": "1f469-1f3fe-1f3eb",
  53155. "uc_output": "1f469-1f3fe-200d-1f3eb",
  53156. "uc_match": "1f469-1f3fe-1f3eb",
  53157. "uc_greedy": "1f469-1f3fe-1f3eb",
  53158. "shortnames": [":woman_teacher_medium_dark_skin_tone:"],
  53159. "category": "people"
  53160. },
  53161. ":woman_teacher_tone5:": {
  53162. "uc_base": "1f469-1f3ff-1f3eb",
  53163. "uc_output": "1f469-1f3ff-200d-1f3eb",
  53164. "uc_match": "1f469-1f3ff-1f3eb",
  53165. "uc_greedy": "1f469-1f3ff-1f3eb",
  53166. "shortnames": [":woman_teacher_dark_skin_tone:"],
  53167. "category": "people"
  53168. },
  53169. ":woman_technologist_tone1:": {
  53170. "uc_base": "1f469-1f3fb-1f4bb",
  53171. "uc_output": "1f469-1f3fb-200d-1f4bb",
  53172. "uc_match": "1f469-1f3fb-1f4bb",
  53173. "uc_greedy": "1f469-1f3fb-1f4bb",
  53174. "shortnames": [":woman_technologist_light_skin_tone:"],
  53175. "category": "people"
  53176. },
  53177. ":woman_technologist_tone2:": {
  53178. "uc_base": "1f469-1f3fc-1f4bb",
  53179. "uc_output": "1f469-1f3fc-200d-1f4bb",
  53180. "uc_match": "1f469-1f3fc-1f4bb",
  53181. "uc_greedy": "1f469-1f3fc-1f4bb",
  53182. "shortnames": [":woman_technologist_medium_light_skin_tone:"],
  53183. "category": "people"
  53184. },
  53185. ":woman_technologist_tone3:": {
  53186. "uc_base": "1f469-1f3fd-1f4bb",
  53187. "uc_output": "1f469-1f3fd-200d-1f4bb",
  53188. "uc_match": "1f469-1f3fd-1f4bb",
  53189. "uc_greedy": "1f469-1f3fd-1f4bb",
  53190. "shortnames": [":woman_technologist_medium_skin_tone:"],
  53191. "category": "people"
  53192. },
  53193. ":woman_technologist_tone4:": {
  53194. "uc_base": "1f469-1f3fe-1f4bb",
  53195. "uc_output": "1f469-1f3fe-200d-1f4bb",
  53196. "uc_match": "1f469-1f3fe-1f4bb",
  53197. "uc_greedy": "1f469-1f3fe-1f4bb",
  53198. "shortnames": [":woman_technologist_medium_dark_skin_tone:"],
  53199. "category": "people"
  53200. },
  53201. ":woman_technologist_tone5:": {
  53202. "uc_base": "1f469-1f3ff-1f4bb",
  53203. "uc_output": "1f469-1f3ff-200d-1f4bb",
  53204. "uc_match": "1f469-1f3ff-1f4bb",
  53205. "uc_greedy": "1f469-1f3ff-1f4bb",
  53206. "shortnames": [":woman_technologist_dark_skin_tone:"],
  53207. "category": "people"
  53208. },
  53209. ":rainbow_flag:": {
  53210. "uc_base": "1f3f3-1f308",
  53211. "uc_output": "1f3f3-fe0f-200d-1f308",
  53212. "uc_match": "1f3f3-fe0f-1f308",
  53213. "uc_greedy": "1f3f3-1f308",
  53214. "shortnames": [":gay_pride_flag:"],
  53215. "category": "flags"
  53216. },
  53217. ":blond-haired_man:": {
  53218. "uc_base": "1f471-2642",
  53219. "uc_output": "1f471-200d-2642-fe0f",
  53220. "uc_match": "1f471-2642-fe0f",
  53221. "uc_greedy": "1f471-2642",
  53222. "shortnames": [],
  53223. "category": "people"
  53224. },
  53225. ":blond-haired_woman:": {
  53226. "uc_base": "1f471-2640",
  53227. "uc_output": "1f471-200d-2640-fe0f",
  53228. "uc_match": "1f471-2640-fe0f",
  53229. "uc_greedy": "1f471-2640",
  53230. "shortnames": [],
  53231. "category": "people"
  53232. },
  53233. ":man_biking:": {
  53234. "uc_base": "1f6b4-2642",
  53235. "uc_output": "1f6b4-200d-2642-fe0f",
  53236. "uc_match": "1f6b4-2642-fe0f",
  53237. "uc_greedy": "1f6b4-2642",
  53238. "shortnames": [],
  53239. "category": "activity"
  53240. },
  53241. ":man_bowing:": {
  53242. "uc_base": "1f647-2642",
  53243. "uc_output": "1f647-200d-2642-fe0f",
  53244. "uc_match": "1f647-2642-fe0f",
  53245. "uc_greedy": "1f647-2642",
  53246. "shortnames": [],
  53247. "category": "people"
  53248. },
  53249. ":man_cartwheeling:": {
  53250. "uc_base": "1f938-2642",
  53251. "uc_output": "1f938-200d-2642-fe0f",
  53252. "uc_match": "1f938-2642-fe0f",
  53253. "uc_greedy": "1f938-2642",
  53254. "shortnames": [],
  53255. "category": "activity"
  53256. },
  53257. ":man_climbing:": {
  53258. "uc_base": "1f9d7-2642",
  53259. "uc_output": "1f9d7-200d-2642-fe0f",
  53260. "uc_match": "1f9d7-2642-fe0f",
  53261. "uc_greedy": "1f9d7-2642",
  53262. "shortnames": [],
  53263. "category": "activity"
  53264. },
  53265. ":man_construction_worker:": {
  53266. "uc_base": "1f477-2642",
  53267. "uc_output": "1f477-200d-2642-fe0f",
  53268. "uc_match": "1f477-2642-fe0f",
  53269. "uc_greedy": "1f477-2642",
  53270. "shortnames": [],
  53271. "category": "people"
  53272. },
  53273. ":man_elf:": {
  53274. "uc_base": "1f9dd-2642",
  53275. "uc_output": "1f9dd-200d-2642-fe0f",
  53276. "uc_match": "1f9dd-2642-fe0f",
  53277. "uc_greedy": "1f9dd-2642",
  53278. "shortnames": [],
  53279. "category": "people"
  53280. },
  53281. ":man_facepalming:": {
  53282. "uc_base": "1f926-2642",
  53283. "uc_output": "1f926-200d-2642-fe0f",
  53284. "uc_match": "1f926-2642-fe0f",
  53285. "uc_greedy": "1f926-2642",
  53286. "shortnames": [],
  53287. "category": "people"
  53288. },
  53289. ":man_fairy:": {
  53290. "uc_base": "1f9da-2642",
  53291. "uc_output": "1f9da-200d-2642-fe0f",
  53292. "uc_match": "1f9da-2642-fe0f",
  53293. "uc_greedy": "1f9da-2642",
  53294. "shortnames": [],
  53295. "category": "people"
  53296. },
  53297. ":man_frowning:": {
  53298. "uc_base": "1f64d-2642",
  53299. "uc_output": "1f64d-200d-2642-fe0f",
  53300. "uc_match": "1f64d-2642-fe0f",
  53301. "uc_greedy": "1f64d-2642",
  53302. "shortnames": [],
  53303. "category": "people"
  53304. },
  53305. ":man_genie:": {
  53306. "uc_base": "1f9de-2642",
  53307. "uc_output": "1f9de-200d-2642-fe0f",
  53308. "uc_match": "1f9de-2642-fe0f",
  53309. "uc_greedy": "1f9de-2642",
  53310. "shortnames": [],
  53311. "category": "people"
  53312. },
  53313. ":man_gesturing_no:": {
  53314. "uc_base": "1f645-2642",
  53315. "uc_output": "1f645-200d-2642-fe0f",
  53316. "uc_match": "1f645-2642-fe0f",
  53317. "uc_greedy": "1f645-2642",
  53318. "shortnames": [],
  53319. "category": "people"
  53320. },
  53321. ":man_gesturing_ok:": {
  53322. "uc_base": "1f646-2642",
  53323. "uc_output": "1f646-200d-2642-fe0f",
  53324. "uc_match": "1f646-2642-fe0f",
  53325. "uc_greedy": "1f646-2642",
  53326. "shortnames": [],
  53327. "category": "people"
  53328. },
  53329. ":man_getting_face_massage:": {
  53330. "uc_base": "1f486-2642",
  53331. "uc_output": "1f486-200d-2642-fe0f",
  53332. "uc_match": "1f486-2642-fe0f",
  53333. "uc_greedy": "1f486-2642",
  53334. "shortnames": [],
  53335. "category": "people"
  53336. },
  53337. ":man_getting_haircut:": {
  53338. "uc_base": "1f487-2642",
  53339. "uc_output": "1f487-200d-2642-fe0f",
  53340. "uc_match": "1f487-2642-fe0f",
  53341. "uc_greedy": "1f487-2642",
  53342. "shortnames": [],
  53343. "category": "people"
  53344. },
  53345. ":man_guard:": {
  53346. "uc_base": "1f482-2642",
  53347. "uc_output": "1f482-200d-2642-fe0f",
  53348. "uc_match": "1f482-2642-fe0f",
  53349. "uc_greedy": "1f482-2642",
  53350. "shortnames": [],
  53351. "category": "people"
  53352. },
  53353. ":man_health_worker:": {
  53354. "uc_base": "1f468-2695",
  53355. "uc_output": "1f468-200d-2695-fe0f",
  53356. "uc_match": "1f468-2695-fe0f",
  53357. "uc_greedy": "1f468-2695",
  53358. "shortnames": [],
  53359. "category": "people"
  53360. },
  53361. ":man_in_lotus_position:": {
  53362. "uc_base": "1f9d8-2642",
  53363. "uc_output": "1f9d8-200d-2642-fe0f",
  53364. "uc_match": "1f9d8-2642-fe0f",
  53365. "uc_greedy": "1f9d8-2642",
  53366. "shortnames": [],
  53367. "category": "activity"
  53368. },
  53369. ":man_in_steamy_room:": {
  53370. "uc_base": "1f9d6-2642",
  53371. "uc_output": "1f9d6-200d-2642-fe0f",
  53372. "uc_match": "1f9d6-2642-fe0f",
  53373. "uc_greedy": "1f9d6-2642",
  53374. "shortnames": [],
  53375. "category": "people"
  53376. },
  53377. ":man_judge:": {
  53378. "uc_base": "1f468-2696",
  53379. "uc_output": "1f468-200d-2696-fe0f",
  53380. "uc_match": "1f468-2696-fe0f",
  53381. "uc_greedy": "1f468-2696",
  53382. "shortnames": [],
  53383. "category": "people"
  53384. },
  53385. ":man_juggling:": {
  53386. "uc_base": "1f939-2642",
  53387. "uc_output": "1f939-200d-2642-fe0f",
  53388. "uc_match": "1f939-2642-fe0f",
  53389. "uc_greedy": "1f939-2642",
  53390. "shortnames": [],
  53391. "category": "activity"
  53392. },
  53393. ":man_mage:": {
  53394. "uc_base": "1f9d9-2642",
  53395. "uc_output": "1f9d9-200d-2642-fe0f",
  53396. "uc_match": "1f9d9-2642-fe0f",
  53397. "uc_greedy": "1f9d9-2642",
  53398. "shortnames": [],
  53399. "category": "people"
  53400. },
  53401. ":man_mountain_biking:": {
  53402. "uc_base": "1f6b5-2642",
  53403. "uc_output": "1f6b5-200d-2642-fe0f",
  53404. "uc_match": "1f6b5-2642-fe0f",
  53405. "uc_greedy": "1f6b5-2642",
  53406. "shortnames": [],
  53407. "category": "activity"
  53408. },
  53409. ":man_pilot:": {
  53410. "uc_base": "1f468-2708",
  53411. "uc_output": "1f468-200d-2708-fe0f",
  53412. "uc_match": "1f468-2708-fe0f",
  53413. "uc_greedy": "1f468-2708",
  53414. "shortnames": [],
  53415. "category": "people"
  53416. },
  53417. ":man_playing_handball:": {
  53418. "uc_base": "1f93e-2642",
  53419. "uc_output": "1f93e-200d-2642-fe0f",
  53420. "uc_match": "1f93e-2642-fe0f",
  53421. "uc_greedy": "1f93e-2642",
  53422. "shortnames": [],
  53423. "category": "activity"
  53424. },
  53425. ":man_playing_water_polo:": {
  53426. "uc_base": "1f93d-2642",
  53427. "uc_output": "1f93d-200d-2642-fe0f",
  53428. "uc_match": "1f93d-2642-fe0f",
  53429. "uc_greedy": "1f93d-2642",
  53430. "shortnames": [],
  53431. "category": "activity"
  53432. },
  53433. ":man_police_officer:": {
  53434. "uc_base": "1f46e-2642",
  53435. "uc_output": "1f46e-200d-2642-fe0f",
  53436. "uc_match": "1f46e-2642-fe0f",
  53437. "uc_greedy": "1f46e-2642",
  53438. "shortnames": [],
  53439. "category": "people"
  53440. },
  53441. ":man_pouting:": {
  53442. "uc_base": "1f64e-2642",
  53443. "uc_output": "1f64e-200d-2642-fe0f",
  53444. "uc_match": "1f64e-2642-fe0f",
  53445. "uc_greedy": "1f64e-2642",
  53446. "shortnames": [],
  53447. "category": "people"
  53448. },
  53449. ":man_raising_hand:": {
  53450. "uc_base": "1f64b-2642",
  53451. "uc_output": "1f64b-200d-2642-fe0f",
  53452. "uc_match": "1f64b-2642-fe0f",
  53453. "uc_greedy": "1f64b-2642",
  53454. "shortnames": [],
  53455. "category": "people"
  53456. },
  53457. ":man_rowing_boat:": {
  53458. "uc_base": "1f6a3-2642",
  53459. "uc_output": "1f6a3-200d-2642-fe0f",
  53460. "uc_match": "1f6a3-2642-fe0f",
  53461. "uc_greedy": "1f6a3-2642",
  53462. "shortnames": [],
  53463. "category": "activity"
  53464. },
  53465. ":man_running:": {
  53466. "uc_base": "1f3c3-2642",
  53467. "uc_output": "1f3c3-200d-2642-fe0f",
  53468. "uc_match": "1f3c3-2642-fe0f",
  53469. "uc_greedy": "1f3c3-2642",
  53470. "shortnames": [],
  53471. "category": "people"
  53472. },
  53473. ":man_shrugging:": {
  53474. "uc_base": "1f937-2642",
  53475. "uc_output": "1f937-200d-2642-fe0f",
  53476. "uc_match": "1f937-2642-fe0f",
  53477. "uc_greedy": "1f937-2642",
  53478. "shortnames": [],
  53479. "category": "people"
  53480. },
  53481. ":man_surfing:": {
  53482. "uc_base": "1f3c4-2642",
  53483. "uc_output": "1f3c4-200d-2642-fe0f",
  53484. "uc_match": "1f3c4-2642-fe0f",
  53485. "uc_greedy": "1f3c4-2642",
  53486. "shortnames": [],
  53487. "category": "activity"
  53488. },
  53489. ":man_swimming:": {
  53490. "uc_base": "1f3ca-2642",
  53491. "uc_output": "1f3ca-200d-2642-fe0f",
  53492. "uc_match": "1f3ca-2642-fe0f",
  53493. "uc_greedy": "1f3ca-2642",
  53494. "shortnames": [],
  53495. "category": "activity"
  53496. },
  53497. ":man_tipping_hand:": {
  53498. "uc_base": "1f481-2642",
  53499. "uc_output": "1f481-200d-2642-fe0f",
  53500. "uc_match": "1f481-2642-fe0f",
  53501. "uc_greedy": "1f481-2642",
  53502. "shortnames": [],
  53503. "category": "people"
  53504. },
  53505. ":man_vampire:": {
  53506. "uc_base": "1f9db-2642",
  53507. "uc_output": "1f9db-200d-2642-fe0f",
  53508. "uc_match": "1f9db-2642-fe0f",
  53509. "uc_greedy": "1f9db-2642",
  53510. "shortnames": [],
  53511. "category": "people"
  53512. },
  53513. ":man_walking:": {
  53514. "uc_base": "1f6b6-2642",
  53515. "uc_output": "1f6b6-200d-2642-fe0f",
  53516. "uc_match": "1f6b6-2642-fe0f",
  53517. "uc_greedy": "1f6b6-2642",
  53518. "shortnames": [],
  53519. "category": "people"
  53520. },
  53521. ":man_wearing_turban:": {
  53522. "uc_base": "1f473-2642",
  53523. "uc_output": "1f473-200d-2642-fe0f",
  53524. "uc_match": "1f473-2642-fe0f",
  53525. "uc_greedy": "1f473-2642",
  53526. "shortnames": [],
  53527. "category": "people"
  53528. },
  53529. ":man_zombie:": {
  53530. "uc_base": "1f9df-2642",
  53531. "uc_output": "1f9df-200d-2642-fe0f",
  53532. "uc_match": "1f9df-2642-fe0f",
  53533. "uc_greedy": "1f9df-2642",
  53534. "shortnames": [],
  53535. "category": "people"
  53536. },
  53537. ":men_with_bunny_ears_partying:": {
  53538. "uc_base": "1f46f-2642",
  53539. "uc_output": "1f46f-200d-2642-fe0f",
  53540. "uc_match": "1f46f-2642-fe0f",
  53541. "uc_greedy": "1f46f-2642",
  53542. "shortnames": [],
  53543. "category": "people"
  53544. },
  53545. ":men_wrestling:": {
  53546. "uc_base": "1f93c-2642",
  53547. "uc_output": "1f93c-200d-2642-fe0f",
  53548. "uc_match": "1f93c-2642-fe0f",
  53549. "uc_greedy": "1f93c-2642",
  53550. "shortnames": [],
  53551. "category": "activity"
  53552. },
  53553. ":mermaid:": {
  53554. "uc_base": "1f9dc-2640",
  53555. "uc_output": "1f9dc-200d-2640-fe0f",
  53556. "uc_match": "1f9dc-2640-fe0f",
  53557. "uc_greedy": "1f9dc-2640",
  53558. "shortnames": [],
  53559. "category": "people"
  53560. },
  53561. ":merman:": {
  53562. "uc_base": "1f9dc-2642",
  53563. "uc_output": "1f9dc-200d-2642-fe0f",
  53564. "uc_match": "1f9dc-2642-fe0f",
  53565. "uc_greedy": "1f9dc-2642",
  53566. "shortnames": [],
  53567. "category": "people"
  53568. },
  53569. ":woman_biking:": {
  53570. "uc_base": "1f6b4-2640",
  53571. "uc_output": "1f6b4-200d-2640-fe0f",
  53572. "uc_match": "1f6b4-2640-fe0f",
  53573. "uc_greedy": "1f6b4-2640",
  53574. "shortnames": [],
  53575. "category": "activity"
  53576. },
  53577. ":woman_bowing:": {
  53578. "uc_base": "1f647-2640",
  53579. "uc_output": "1f647-200d-2640-fe0f",
  53580. "uc_match": "1f647-2640-fe0f",
  53581. "uc_greedy": "1f647-2640",
  53582. "shortnames": [],
  53583. "category": "people"
  53584. },
  53585. ":woman_cartwheeling:": {
  53586. "uc_base": "1f938-2640",
  53587. "uc_output": "1f938-200d-2640-fe0f",
  53588. "uc_match": "1f938-2640-fe0f",
  53589. "uc_greedy": "1f938-2640",
  53590. "shortnames": [],
  53591. "category": "activity"
  53592. },
  53593. ":woman_climbing:": {
  53594. "uc_base": "1f9d7-2640",
  53595. "uc_output": "1f9d7-200d-2640-fe0f",
  53596. "uc_match": "1f9d7-2640-fe0f",
  53597. "uc_greedy": "1f9d7-2640",
  53598. "shortnames": [],
  53599. "category": "activity"
  53600. },
  53601. ":woman_construction_worker:": {
  53602. "uc_base": "1f477-2640",
  53603. "uc_output": "1f477-200d-2640-fe0f",
  53604. "uc_match": "1f477-2640-fe0f",
  53605. "uc_greedy": "1f477-2640",
  53606. "shortnames": [],
  53607. "category": "people"
  53608. },
  53609. ":woman_elf:": {
  53610. "uc_base": "1f9dd-2640",
  53611. "uc_output": "1f9dd-200d-2640-fe0f",
  53612. "uc_match": "1f9dd-2640-fe0f",
  53613. "uc_greedy": "1f9dd-2640",
  53614. "shortnames": [],
  53615. "category": "people"
  53616. },
  53617. ":woman_facepalming:": {
  53618. "uc_base": "1f926-2640",
  53619. "uc_output": "1f926-200d-2640-fe0f",
  53620. "uc_match": "1f926-2640-fe0f",
  53621. "uc_greedy": "1f926-2640",
  53622. "shortnames": [],
  53623. "category": "people"
  53624. },
  53625. ":woman_fairy:": {
  53626. "uc_base": "1f9da-2640",
  53627. "uc_output": "1f9da-200d-2640-fe0f",
  53628. "uc_match": "1f9da-2640-fe0f",
  53629. "uc_greedy": "1f9da-2640",
  53630. "shortnames": [],
  53631. "category": "people"
  53632. },
  53633. ":woman_frowning:": {
  53634. "uc_base": "1f64d-2640",
  53635. "uc_output": "1f64d-200d-2640-fe0f",
  53636. "uc_match": "1f64d-2640-fe0f",
  53637. "uc_greedy": "1f64d-2640",
  53638. "shortnames": [],
  53639. "category": "people"
  53640. },
  53641. ":woman_genie:": {
  53642. "uc_base": "1f9de-2640",
  53643. "uc_output": "1f9de-200d-2640-fe0f",
  53644. "uc_match": "1f9de-2640-fe0f",
  53645. "uc_greedy": "1f9de-2640",
  53646. "shortnames": [],
  53647. "category": "people"
  53648. },
  53649. ":woman_gesturing_no:": {
  53650. "uc_base": "1f645-2640",
  53651. "uc_output": "1f645-200d-2640-fe0f",
  53652. "uc_match": "1f645-2640-fe0f",
  53653. "uc_greedy": "1f645-2640",
  53654. "shortnames": [],
  53655. "category": "people"
  53656. },
  53657. ":woman_gesturing_ok:": {
  53658. "uc_base": "1f646-2640",
  53659. "uc_output": "1f646-200d-2640-fe0f",
  53660. "uc_match": "1f646-2640-fe0f",
  53661. "uc_greedy": "1f646-2640",
  53662. "shortnames": [],
  53663. "category": "people"
  53664. },
  53665. ":woman_getting_face_massage:": {
  53666. "uc_base": "1f486-2640",
  53667. "uc_output": "1f486-200d-2640-fe0f",
  53668. "uc_match": "1f486-2640-fe0f",
  53669. "uc_greedy": "1f486-2640",
  53670. "shortnames": [],
  53671. "category": "people"
  53672. },
  53673. ":woman_getting_haircut:": {
  53674. "uc_base": "1f487-2640",
  53675. "uc_output": "1f487-200d-2640-fe0f",
  53676. "uc_match": "1f487-2640-fe0f",
  53677. "uc_greedy": "1f487-2640",
  53678. "shortnames": [],
  53679. "category": "people"
  53680. },
  53681. ":woman_guard:": {
  53682. "uc_base": "1f482-2640",
  53683. "uc_output": "1f482-200d-2640-fe0f",
  53684. "uc_match": "1f482-2640-fe0f",
  53685. "uc_greedy": "1f482-2640",
  53686. "shortnames": [],
  53687. "category": "people"
  53688. },
  53689. ":woman_health_worker:": {
  53690. "uc_base": "1f469-2695",
  53691. "uc_output": "1f469-200d-2695-fe0f",
  53692. "uc_match": "1f469-2695-fe0f",
  53693. "uc_greedy": "1f469-2695",
  53694. "shortnames": [],
  53695. "category": "people"
  53696. },
  53697. ":woman_in_lotus_position:": {
  53698. "uc_base": "1f9d8-2640",
  53699. "uc_output": "1f9d8-200d-2640-fe0f",
  53700. "uc_match": "1f9d8-2640-fe0f",
  53701. "uc_greedy": "1f9d8-2640",
  53702. "shortnames": [],
  53703. "category": "activity"
  53704. },
  53705. ":woman_in_steamy_room:": {
  53706. "uc_base": "1f9d6-2640",
  53707. "uc_output": "1f9d6-200d-2640-fe0f",
  53708. "uc_match": "1f9d6-2640-fe0f",
  53709. "uc_greedy": "1f9d6-2640",
  53710. "shortnames": [],
  53711. "category": "people"
  53712. },
  53713. ":woman_judge:": {
  53714. "uc_base": "1f469-2696",
  53715. "uc_output": "1f469-200d-2696-fe0f",
  53716. "uc_match": "1f469-2696-fe0f",
  53717. "uc_greedy": "1f469-2696",
  53718. "shortnames": [],
  53719. "category": "people"
  53720. },
  53721. ":woman_juggling:": {
  53722. "uc_base": "1f939-2640",
  53723. "uc_output": "1f939-200d-2640-fe0f",
  53724. "uc_match": "1f939-2640-fe0f",
  53725. "uc_greedy": "1f939-2640",
  53726. "shortnames": [],
  53727. "category": "activity"
  53728. },
  53729. ":woman_mage:": {
  53730. "uc_base": "1f9d9-2640",
  53731. "uc_output": "1f9d9-200d-2640-fe0f",
  53732. "uc_match": "1f9d9-2640-fe0f",
  53733. "uc_greedy": "1f9d9-2640",
  53734. "shortnames": [],
  53735. "category": "people"
  53736. },
  53737. ":woman_mountain_biking:": {
  53738. "uc_base": "1f6b5-2640",
  53739. "uc_output": "1f6b5-200d-2640-fe0f",
  53740. "uc_match": "1f6b5-2640-fe0f",
  53741. "uc_greedy": "1f6b5-2640",
  53742. "shortnames": [],
  53743. "category": "activity"
  53744. },
  53745. ":woman_pilot:": {
  53746. "uc_base": "1f469-2708",
  53747. "uc_output": "1f469-200d-2708-fe0f",
  53748. "uc_match": "1f469-2708-fe0f",
  53749. "uc_greedy": "1f469-2708",
  53750. "shortnames": [],
  53751. "category": "people"
  53752. },
  53753. ":woman_playing_handball:": {
  53754. "uc_base": "1f93e-2640",
  53755. "uc_output": "1f93e-200d-2640-fe0f",
  53756. "uc_match": "1f93e-2640-fe0f",
  53757. "uc_greedy": "1f93e-2640",
  53758. "shortnames": [],
  53759. "category": "activity"
  53760. },
  53761. ":woman_playing_water_polo:": {
  53762. "uc_base": "1f93d-2640",
  53763. "uc_output": "1f93d-200d-2640-fe0f",
  53764. "uc_match": "1f93d-2640-fe0f",
  53765. "uc_greedy": "1f93d-2640",
  53766. "shortnames": [],
  53767. "category": "activity"
  53768. },
  53769. ":woman_police_officer:": {
  53770. "uc_base": "1f46e-2640",
  53771. "uc_output": "1f46e-200d-2640-fe0f",
  53772. "uc_match": "1f46e-2640-fe0f",
  53773. "uc_greedy": "1f46e-2640",
  53774. "shortnames": [],
  53775. "category": "people"
  53776. },
  53777. ":woman_pouting:": {
  53778. "uc_base": "1f64e-2640",
  53779. "uc_output": "1f64e-200d-2640-fe0f",
  53780. "uc_match": "1f64e-2640-fe0f",
  53781. "uc_greedy": "1f64e-2640",
  53782. "shortnames": [],
  53783. "category": "people"
  53784. },
  53785. ":woman_raising_hand:": {
  53786. "uc_base": "1f64b-2640",
  53787. "uc_output": "1f64b-200d-2640-fe0f",
  53788. "uc_match": "1f64b-2640-fe0f",
  53789. "uc_greedy": "1f64b-2640",
  53790. "shortnames": [],
  53791. "category": "people"
  53792. },
  53793. ":woman_rowing_boat:": {
  53794. "uc_base": "1f6a3-2640",
  53795. "uc_output": "1f6a3-200d-2640-fe0f",
  53796. "uc_match": "1f6a3-2640-fe0f",
  53797. "uc_greedy": "1f6a3-2640",
  53798. "shortnames": [],
  53799. "category": "activity"
  53800. },
  53801. ":woman_running:": {
  53802. "uc_base": "1f3c3-2640",
  53803. "uc_output": "1f3c3-200d-2640-fe0f",
  53804. "uc_match": "1f3c3-2640-fe0f",
  53805. "uc_greedy": "1f3c3-2640",
  53806. "shortnames": [],
  53807. "category": "people"
  53808. },
  53809. ":woman_shrugging:": {
  53810. "uc_base": "1f937-2640",
  53811. "uc_output": "1f937-200d-2640-fe0f",
  53812. "uc_match": "1f937-2640-fe0f",
  53813. "uc_greedy": "1f937-2640",
  53814. "shortnames": [],
  53815. "category": "people"
  53816. },
  53817. ":woman_surfing:": {
  53818. "uc_base": "1f3c4-2640",
  53819. "uc_output": "1f3c4-200d-2640-fe0f",
  53820. "uc_match": "1f3c4-2640-fe0f",
  53821. "uc_greedy": "1f3c4-2640",
  53822. "shortnames": [],
  53823. "category": "activity"
  53824. },
  53825. ":woman_swimming:": {
  53826. "uc_base": "1f3ca-2640",
  53827. "uc_output": "1f3ca-200d-2640-fe0f",
  53828. "uc_match": "1f3ca-2640-fe0f",
  53829. "uc_greedy": "1f3ca-2640",
  53830. "shortnames": [],
  53831. "category": "activity"
  53832. },
  53833. ":woman_tipping_hand:": {
  53834. "uc_base": "1f481-2640",
  53835. "uc_output": "1f481-200d-2640-fe0f",
  53836. "uc_match": "1f481-2640-fe0f",
  53837. "uc_greedy": "1f481-2640",
  53838. "shortnames": [],
  53839. "category": "people"
  53840. },
  53841. ":woman_vampire:": {
  53842. "uc_base": "1f9db-2640",
  53843. "uc_output": "1f9db-200d-2640-fe0f",
  53844. "uc_match": "1f9db-2640-fe0f",
  53845. "uc_greedy": "1f9db-2640",
  53846. "shortnames": [],
  53847. "category": "people"
  53848. },
  53849. ":woman_walking:": {
  53850. "uc_base": "1f6b6-2640",
  53851. "uc_output": "1f6b6-200d-2640-fe0f",
  53852. "uc_match": "1f6b6-2640-fe0f",
  53853. "uc_greedy": "1f6b6-2640",
  53854. "shortnames": [],
  53855. "category": "people"
  53856. },
  53857. ":woman_wearing_turban:": {
  53858. "uc_base": "1f473-2640",
  53859. "uc_output": "1f473-200d-2640-fe0f",
  53860. "uc_match": "1f473-2640-fe0f",
  53861. "uc_greedy": "1f473-2640",
  53862. "shortnames": [],
  53863. "category": "people"
  53864. },
  53865. ":woman_zombie:": {
  53866. "uc_base": "1f9df-2640",
  53867. "uc_output": "1f9df-200d-2640-fe0f",
  53868. "uc_match": "1f9df-2640-fe0f",
  53869. "uc_greedy": "1f9df-2640",
  53870. "shortnames": [],
  53871. "category": "people"
  53872. },
  53873. ":women_with_bunny_ears_partying:": {
  53874. "uc_base": "1f46f-2640",
  53875. "uc_output": "1f46f-200d-2640-fe0f",
  53876. "uc_match": "1f46f-2640-fe0f",
  53877. "uc_greedy": "1f46f-2640",
  53878. "shortnames": [],
  53879. "category": "people"
  53880. },
  53881. ":women_wrestling:": {
  53882. "uc_base": "1f93c-2640",
  53883. "uc_output": "1f93c-200d-2640-fe0f",
  53884. "uc_match": "1f93c-2640-fe0f",
  53885. "uc_greedy": "1f93c-2640",
  53886. "shortnames": [],
  53887. "category": "activity"
  53888. },
  53889. ":family_man_boy:": {
  53890. "uc_base": "1f468-1f466",
  53891. "uc_output": "1f468-200d-1f466",
  53892. "uc_match": "1f468-1f466",
  53893. "uc_greedy": "1f468-1f466",
  53894. "shortnames": [],
  53895. "category": "people"
  53896. },
  53897. ":family_man_girl:": {
  53898. "uc_base": "1f468-1f467",
  53899. "uc_output": "1f468-200d-1f467",
  53900. "uc_match": "1f468-1f467",
  53901. "uc_greedy": "1f468-1f467",
  53902. "shortnames": [],
  53903. "category": "people"
  53904. },
  53905. ":family_woman_boy:": {
  53906. "uc_base": "1f469-1f466",
  53907. "uc_output": "1f469-200d-1f466",
  53908. "uc_match": "1f469-1f466",
  53909. "uc_greedy": "1f469-1f466",
  53910. "shortnames": [],
  53911. "category": "people"
  53912. },
  53913. ":family_woman_girl:": {
  53914. "uc_base": "1f469-1f467",
  53915. "uc_output": "1f469-200d-1f467",
  53916. "uc_match": "1f469-1f467",
  53917. "uc_greedy": "1f469-1f467",
  53918. "shortnames": [],
  53919. "category": "people"
  53920. },
  53921. ":man_artist:": {
  53922. "uc_base": "1f468-1f3a8",
  53923. "uc_output": "1f468-200d-1f3a8",
  53924. "uc_match": "1f468-1f3a8",
  53925. "uc_greedy": "1f468-1f3a8",
  53926. "shortnames": [],
  53927. "category": "people"
  53928. },
  53929. ":man_astronaut:": {
  53930. "uc_base": "1f468-1f680",
  53931. "uc_output": "1f468-200d-1f680",
  53932. "uc_match": "1f468-1f680",
  53933. "uc_greedy": "1f468-1f680",
  53934. "shortnames": [],
  53935. "category": "people"
  53936. },
  53937. ":man_cook:": {
  53938. "uc_base": "1f468-1f373",
  53939. "uc_output": "1f468-200d-1f373",
  53940. "uc_match": "1f468-1f373",
  53941. "uc_greedy": "1f468-1f373",
  53942. "shortnames": [],
  53943. "category": "people"
  53944. },
  53945. ":man_factory_worker:": {
  53946. "uc_base": "1f468-1f3ed",
  53947. "uc_output": "1f468-200d-1f3ed",
  53948. "uc_match": "1f468-1f3ed",
  53949. "uc_greedy": "1f468-1f3ed",
  53950. "shortnames": [],
  53951. "category": "people"
  53952. },
  53953. ":man_farmer:": {
  53954. "uc_base": "1f468-1f33e",
  53955. "uc_output": "1f468-200d-1f33e",
  53956. "uc_match": "1f468-1f33e",
  53957. "uc_greedy": "1f468-1f33e",
  53958. "shortnames": [],
  53959. "category": "people"
  53960. },
  53961. ":man_firefighter:": {
  53962. "uc_base": "1f468-1f692",
  53963. "uc_output": "1f468-200d-1f692",
  53964. "uc_match": "1f468-1f692",
  53965. "uc_greedy": "1f468-1f692",
  53966. "shortnames": [],
  53967. "category": "people"
  53968. },
  53969. ":man_mechanic:": {
  53970. "uc_base": "1f468-1f527",
  53971. "uc_output": "1f468-200d-1f527",
  53972. "uc_match": "1f468-1f527",
  53973. "uc_greedy": "1f468-1f527",
  53974. "shortnames": [],
  53975. "category": "people"
  53976. },
  53977. ":man_office_worker:": {
  53978. "uc_base": "1f468-1f4bc",
  53979. "uc_output": "1f468-200d-1f4bc",
  53980. "uc_match": "1f468-1f4bc",
  53981. "uc_greedy": "1f468-1f4bc",
  53982. "shortnames": [],
  53983. "category": "people"
  53984. },
  53985. ":man_scientist:": {
  53986. "uc_base": "1f468-1f52c",
  53987. "uc_output": "1f468-200d-1f52c",
  53988. "uc_match": "1f468-1f52c",
  53989. "uc_greedy": "1f468-1f52c",
  53990. "shortnames": [],
  53991. "category": "people"
  53992. },
  53993. ":man_singer:": {
  53994. "uc_base": "1f468-1f3a4",
  53995. "uc_output": "1f468-200d-1f3a4",
  53996. "uc_match": "1f468-1f3a4",
  53997. "uc_greedy": "1f468-1f3a4",
  53998. "shortnames": [],
  53999. "category": "people"
  54000. },
  54001. ":man_student:": {
  54002. "uc_base": "1f468-1f393",
  54003. "uc_output": "1f468-200d-1f393",
  54004. "uc_match": "1f468-1f393",
  54005. "uc_greedy": "1f468-1f393",
  54006. "shortnames": [],
  54007. "category": "people"
  54008. },
  54009. ":man_teacher:": {
  54010. "uc_base": "1f468-1f3eb",
  54011. "uc_output": "1f468-200d-1f3eb",
  54012. "uc_match": "1f468-1f3eb",
  54013. "uc_greedy": "1f468-1f3eb",
  54014. "shortnames": [],
  54015. "category": "people"
  54016. },
  54017. ":man_technologist:": {
  54018. "uc_base": "1f468-1f4bb",
  54019. "uc_output": "1f468-200d-1f4bb",
  54020. "uc_match": "1f468-1f4bb",
  54021. "uc_greedy": "1f468-1f4bb",
  54022. "shortnames": [],
  54023. "category": "people"
  54024. },
  54025. ":woman_artist:": {
  54026. "uc_base": "1f469-1f3a8",
  54027. "uc_output": "1f469-200d-1f3a8",
  54028. "uc_match": "1f469-1f3a8",
  54029. "uc_greedy": "1f469-1f3a8",
  54030. "shortnames": [],
  54031. "category": "people"
  54032. },
  54033. ":woman_astronaut:": {
  54034. "uc_base": "1f469-1f680",
  54035. "uc_output": "1f469-200d-1f680",
  54036. "uc_match": "1f469-1f680",
  54037. "uc_greedy": "1f469-1f680",
  54038. "shortnames": [],
  54039. "category": "people"
  54040. },
  54041. ":woman_cook:": {
  54042. "uc_base": "1f469-1f373",
  54043. "uc_output": "1f469-200d-1f373",
  54044. "uc_match": "1f469-1f373",
  54045. "uc_greedy": "1f469-1f373",
  54046. "shortnames": [],
  54047. "category": "people"
  54048. },
  54049. ":woman_factory_worker:": {
  54050. "uc_base": "1f469-1f3ed",
  54051. "uc_output": "1f469-200d-1f3ed",
  54052. "uc_match": "1f469-1f3ed",
  54053. "uc_greedy": "1f469-1f3ed",
  54054. "shortnames": [],
  54055. "category": "people"
  54056. },
  54057. ":woman_farmer:": {
  54058. "uc_base": "1f469-1f33e",
  54059. "uc_output": "1f469-200d-1f33e",
  54060. "uc_match": "1f469-1f33e",
  54061. "uc_greedy": "1f469-1f33e",
  54062. "shortnames": [],
  54063. "category": "people"
  54064. },
  54065. ":woman_firefighter:": {
  54066. "uc_base": "1f469-1f692",
  54067. "uc_output": "1f469-200d-1f692",
  54068. "uc_match": "1f469-1f692",
  54069. "uc_greedy": "1f469-1f692",
  54070. "shortnames": [],
  54071. "category": "people"
  54072. },
  54073. ":woman_mechanic:": {
  54074. "uc_base": "1f469-1f527",
  54075. "uc_output": "1f469-200d-1f527",
  54076. "uc_match": "1f469-1f527",
  54077. "uc_greedy": "1f469-1f527",
  54078. "shortnames": [],
  54079. "category": "people"
  54080. },
  54081. ":woman_office_worker:": {
  54082. "uc_base": "1f469-1f4bc",
  54083. "uc_output": "1f469-200d-1f4bc",
  54084. "uc_match": "1f469-1f4bc",
  54085. "uc_greedy": "1f469-1f4bc",
  54086. "shortnames": [],
  54087. "category": "people"
  54088. },
  54089. ":woman_scientist:": {
  54090. "uc_base": "1f469-1f52c",
  54091. "uc_output": "1f469-200d-1f52c",
  54092. "uc_match": "1f469-1f52c",
  54093. "uc_greedy": "1f469-1f52c",
  54094. "shortnames": [],
  54095. "category": "people"
  54096. },
  54097. ":woman_singer:": {
  54098. "uc_base": "1f469-1f3a4",
  54099. "uc_output": "1f469-200d-1f3a4",
  54100. "uc_match": "1f469-1f3a4",
  54101. "uc_greedy": "1f469-1f3a4",
  54102. "shortnames": [],
  54103. "category": "people"
  54104. },
  54105. ":woman_student:": {
  54106. "uc_base": "1f469-1f393",
  54107. "uc_output": "1f469-200d-1f393",
  54108. "uc_match": "1f469-1f393",
  54109. "uc_greedy": "1f469-1f393",
  54110. "shortnames": [],
  54111. "category": "people"
  54112. },
  54113. ":woman_teacher:": {
  54114. "uc_base": "1f469-1f3eb",
  54115. "uc_output": "1f469-200d-1f3eb",
  54116. "uc_match": "1f469-1f3eb",
  54117. "uc_greedy": "1f469-1f3eb",
  54118. "shortnames": [],
  54119. "category": "people"
  54120. },
  54121. ":woman_technologist:": {
  54122. "uc_base": "1f469-1f4bb",
  54123. "uc_output": "1f469-200d-1f4bb",
  54124. "uc_match": "1f469-1f4bb",
  54125. "uc_greedy": "1f469-1f4bb",
  54126. "shortnames": [],
  54127. "category": "people"
  54128. },
  54129. ":asterisk:": {
  54130. "uc_base": "002a-20e3",
  54131. "uc_output": "002a-fe0f-20e3",
  54132. "uc_match": "002a-20e3",
  54133. "uc_greedy": "002a-20e3",
  54134. "shortnames": [":keycap_asterisk:"],
  54135. "category": "symbols"
  54136. },
  54137. ":eight:": {
  54138. "uc_base": "0038-20e3",
  54139. "uc_output": "0038-fe0f-20e3",
  54140. "uc_match": "0038-20e3",
  54141. "uc_greedy": "0038-20e3",
  54142. "shortnames": [],
  54143. "category": "symbols"
  54144. },
  54145. ":five:": {
  54146. "uc_base": "0035-20e3",
  54147. "uc_output": "0035-fe0f-20e3",
  54148. "uc_match": "0035-20e3",
  54149. "uc_greedy": "0035-20e3",
  54150. "shortnames": [],
  54151. "category": "symbols"
  54152. },
  54153. ":four:": {
  54154. "uc_base": "0034-20e3",
  54155. "uc_output": "0034-fe0f-20e3",
  54156. "uc_match": "0034-20e3",
  54157. "uc_greedy": "0034-20e3",
  54158. "shortnames": [],
  54159. "category": "symbols"
  54160. },
  54161. ":hash:": {
  54162. "uc_base": "0023-20e3",
  54163. "uc_output": "0023-fe0f-20e3",
  54164. "uc_match": "0023-20e3",
  54165. "uc_greedy": "0023-20e3",
  54166. "shortnames": [],
  54167. "category": "symbols"
  54168. },
  54169. ":nine:": {
  54170. "uc_base": "0039-20e3",
  54171. "uc_output": "0039-fe0f-20e3",
  54172. "uc_match": "0039-20e3",
  54173. "uc_greedy": "0039-20e3",
  54174. "shortnames": [],
  54175. "category": "symbols"
  54176. },
  54177. ":one:": {
  54178. "uc_base": "0031-20e3",
  54179. "uc_output": "0031-fe0f-20e3",
  54180. "uc_match": "0031-20e3",
  54181. "uc_greedy": "0031-20e3",
  54182. "shortnames": [],
  54183. "category": "symbols"
  54184. },
  54185. ":seven:": {
  54186. "uc_base": "0037-20e3",
  54187. "uc_output": "0037-fe0f-20e3",
  54188. "uc_match": "0037-20e3",
  54189. "uc_greedy": "0037-20e3",
  54190. "shortnames": [],
  54191. "category": "symbols"
  54192. },
  54193. ":six:": {
  54194. "uc_base": "0036-20e3",
  54195. "uc_output": "0036-fe0f-20e3",
  54196. "uc_match": "0036-20e3",
  54197. "uc_greedy": "0036-20e3",
  54198. "shortnames": [],
  54199. "category": "symbols"
  54200. },
  54201. ":three:": {
  54202. "uc_base": "0033-20e3",
  54203. "uc_output": "0033-fe0f-20e3",
  54204. "uc_match": "0033-20e3",
  54205. "uc_greedy": "0033-20e3",
  54206. "shortnames": [],
  54207. "category": "symbols"
  54208. },
  54209. ":two:": {
  54210. "uc_base": "0032-20e3",
  54211. "uc_output": "0032-fe0f-20e3",
  54212. "uc_match": "0032-20e3",
  54213. "uc_greedy": "0032-20e3",
  54214. "shortnames": [],
  54215. "category": "symbols"
  54216. },
  54217. ":zero:": {
  54218. "uc_base": "0030-20e3",
  54219. "uc_output": "0030-fe0f-20e3",
  54220. "uc_match": "0030-20e3",
  54221. "uc_greedy": "0030-20e3",
  54222. "shortnames": [],
  54223. "category": "symbols"
  54224. },
  54225. ":adult_tone1:": {
  54226. "uc_base": "1f9d1-1f3fb",
  54227. "uc_output": "1f9d1-1f3fb",
  54228. "uc_match": "1f9d1-1f3fb",
  54229. "uc_greedy": "1f9d1-1f3fb",
  54230. "shortnames": [":adult_light_skin_tone:"],
  54231. "category": "people"
  54232. },
  54233. ":adult_tone2:": {
  54234. "uc_base": "1f9d1-1f3fc",
  54235. "uc_output": "1f9d1-1f3fc",
  54236. "uc_match": "1f9d1-1f3fc",
  54237. "uc_greedy": "1f9d1-1f3fc",
  54238. "shortnames": [":adult_medium_light_skin_tone:"],
  54239. "category": "people"
  54240. },
  54241. ":adult_tone3:": {
  54242. "uc_base": "1f9d1-1f3fd",
  54243. "uc_output": "1f9d1-1f3fd",
  54244. "uc_match": "1f9d1-1f3fd",
  54245. "uc_greedy": "1f9d1-1f3fd",
  54246. "shortnames": [":adult_medium_skin_tone:"],
  54247. "category": "people"
  54248. },
  54249. ":adult_tone4:": {
  54250. "uc_base": "1f9d1-1f3fe",
  54251. "uc_output": "1f9d1-1f3fe",
  54252. "uc_match": "1f9d1-1f3fe",
  54253. "uc_greedy": "1f9d1-1f3fe",
  54254. "shortnames": [":adult_medium_dark_skin_tone:"],
  54255. "category": "people"
  54256. },
  54257. ":adult_tone5:": {
  54258. "uc_base": "1f9d1-1f3ff",
  54259. "uc_output": "1f9d1-1f3ff",
  54260. "uc_match": "1f9d1-1f3ff",
  54261. "uc_greedy": "1f9d1-1f3ff",
  54262. "shortnames": [":adult_dark_skin_tone:"],
  54263. "category": "people"
  54264. },
  54265. ":angel_tone1:": {
  54266. "uc_base": "1f47c-1f3fb",
  54267. "uc_output": "1f47c-1f3fb",
  54268. "uc_match": "1f47c-1f3fb",
  54269. "uc_greedy": "1f47c-1f3fb",
  54270. "shortnames": [],
  54271. "category": "people"
  54272. },
  54273. ":angel_tone2:": {
  54274. "uc_base": "1f47c-1f3fc",
  54275. "uc_output": "1f47c-1f3fc",
  54276. "uc_match": "1f47c-1f3fc",
  54277. "uc_greedy": "1f47c-1f3fc",
  54278. "shortnames": [],
  54279. "category": "people"
  54280. },
  54281. ":angel_tone3:": {
  54282. "uc_base": "1f47c-1f3fd",
  54283. "uc_output": "1f47c-1f3fd",
  54284. "uc_match": "1f47c-1f3fd",
  54285. "uc_greedy": "1f47c-1f3fd",
  54286. "shortnames": [],
  54287. "category": "people"
  54288. },
  54289. ":angel_tone4:": {
  54290. "uc_base": "1f47c-1f3fe",
  54291. "uc_output": "1f47c-1f3fe",
  54292. "uc_match": "1f47c-1f3fe",
  54293. "uc_greedy": "1f47c-1f3fe",
  54294. "shortnames": [],
  54295. "category": "people"
  54296. },
  54297. ":angel_tone5:": {
  54298. "uc_base": "1f47c-1f3ff",
  54299. "uc_output": "1f47c-1f3ff",
  54300. "uc_match": "1f47c-1f3ff",
  54301. "uc_greedy": "1f47c-1f3ff",
  54302. "shortnames": [],
  54303. "category": "people"
  54304. },
  54305. ":baby_tone1:": {
  54306. "uc_base": "1f476-1f3fb",
  54307. "uc_output": "1f476-1f3fb",
  54308. "uc_match": "1f476-1f3fb",
  54309. "uc_greedy": "1f476-1f3fb",
  54310. "shortnames": [],
  54311. "category": "people"
  54312. },
  54313. ":baby_tone2:": {
  54314. "uc_base": "1f476-1f3fc",
  54315. "uc_output": "1f476-1f3fc",
  54316. "uc_match": "1f476-1f3fc",
  54317. "uc_greedy": "1f476-1f3fc",
  54318. "shortnames": [],
  54319. "category": "people"
  54320. },
  54321. ":baby_tone3:": {
  54322. "uc_base": "1f476-1f3fd",
  54323. "uc_output": "1f476-1f3fd",
  54324. "uc_match": "1f476-1f3fd",
  54325. "uc_greedy": "1f476-1f3fd",
  54326. "shortnames": [],
  54327. "category": "people"
  54328. },
  54329. ":baby_tone4:": {
  54330. "uc_base": "1f476-1f3fe",
  54331. "uc_output": "1f476-1f3fe",
  54332. "uc_match": "1f476-1f3fe",
  54333. "uc_greedy": "1f476-1f3fe",
  54334. "shortnames": [],
  54335. "category": "people"
  54336. },
  54337. ":baby_tone5:": {
  54338. "uc_base": "1f476-1f3ff",
  54339. "uc_output": "1f476-1f3ff",
  54340. "uc_match": "1f476-1f3ff",
  54341. "uc_greedy": "1f476-1f3ff",
  54342. "shortnames": [],
  54343. "category": "people"
  54344. },
  54345. ":bath_tone1:": {
  54346. "uc_base": "1f6c0-1f3fb",
  54347. "uc_output": "1f6c0-1f3fb",
  54348. "uc_match": "1f6c0-1f3fb",
  54349. "uc_greedy": "1f6c0-1f3fb",
  54350. "shortnames": [],
  54351. "category": "objects"
  54352. },
  54353. ":bath_tone2:": {
  54354. "uc_base": "1f6c0-1f3fc",
  54355. "uc_output": "1f6c0-1f3fc",
  54356. "uc_match": "1f6c0-1f3fc",
  54357. "uc_greedy": "1f6c0-1f3fc",
  54358. "shortnames": [],
  54359. "category": "objects"
  54360. },
  54361. ":bath_tone3:": {
  54362. "uc_base": "1f6c0-1f3fd",
  54363. "uc_output": "1f6c0-1f3fd",
  54364. "uc_match": "1f6c0-1f3fd",
  54365. "uc_greedy": "1f6c0-1f3fd",
  54366. "shortnames": [],
  54367. "category": "objects"
  54368. },
  54369. ":bath_tone4:": {
  54370. "uc_base": "1f6c0-1f3fe",
  54371. "uc_output": "1f6c0-1f3fe",
  54372. "uc_match": "1f6c0-1f3fe",
  54373. "uc_greedy": "1f6c0-1f3fe",
  54374. "shortnames": [],
  54375. "category": "objects"
  54376. },
  54377. ":bath_tone5:": {
  54378. "uc_base": "1f6c0-1f3ff",
  54379. "uc_output": "1f6c0-1f3ff",
  54380. "uc_match": "1f6c0-1f3ff",
  54381. "uc_greedy": "1f6c0-1f3ff",
  54382. "shortnames": [],
  54383. "category": "objects"
  54384. },
  54385. ":bearded_person_tone1:": {
  54386. "uc_base": "1f9d4-1f3fb",
  54387. "uc_output": "1f9d4-1f3fb",
  54388. "uc_match": "1f9d4-1f3fb",
  54389. "uc_greedy": "1f9d4-1f3fb",
  54390. "shortnames": [":bearded_person_light_skin_tone:"],
  54391. "category": "people"
  54392. },
  54393. ":bearded_person_tone2:": {
  54394. "uc_base": "1f9d4-1f3fc",
  54395. "uc_output": "1f9d4-1f3fc",
  54396. "uc_match": "1f9d4-1f3fc",
  54397. "uc_greedy": "1f9d4-1f3fc",
  54398. "shortnames": [":bearded_person_medium_light_skin_tone:"],
  54399. "category": "people"
  54400. },
  54401. ":bearded_person_tone3:": {
  54402. "uc_base": "1f9d4-1f3fd",
  54403. "uc_output": "1f9d4-1f3fd",
  54404. "uc_match": "1f9d4-1f3fd",
  54405. "uc_greedy": "1f9d4-1f3fd",
  54406. "shortnames": [":bearded_person_medium_skin_tone:"],
  54407. "category": "people"
  54408. },
  54409. ":bearded_person_tone4:": {
  54410. "uc_base": "1f9d4-1f3fe",
  54411. "uc_output": "1f9d4-1f3fe",
  54412. "uc_match": "1f9d4-1f3fe",
  54413. "uc_greedy": "1f9d4-1f3fe",
  54414. "shortnames": [":bearded_person_medium_dark_skin_tone:"],
  54415. "category": "people"
  54416. },
  54417. ":bearded_person_tone5:": {
  54418. "uc_base": "1f9d4-1f3ff",
  54419. "uc_output": "1f9d4-1f3ff",
  54420. "uc_match": "1f9d4-1f3ff",
  54421. "uc_greedy": "1f9d4-1f3ff",
  54422. "shortnames": [":bearded_person_dark_skin_tone:"],
  54423. "category": "people"
  54424. },
  54425. ":blond_haired_person_tone1:": {
  54426. "uc_base": "1f471-1f3fb",
  54427. "uc_output": "1f471-1f3fb",
  54428. "uc_match": "1f471-1f3fb",
  54429. "uc_greedy": "1f471-1f3fb",
  54430. "shortnames": [":person_with_blond_hair_tone1:"],
  54431. "category": "people"
  54432. },
  54433. ":blond_haired_person_tone2:": {
  54434. "uc_base": "1f471-1f3fc",
  54435. "uc_output": "1f471-1f3fc",
  54436. "uc_match": "1f471-1f3fc",
  54437. "uc_greedy": "1f471-1f3fc",
  54438. "shortnames": [":person_with_blond_hair_tone2:"],
  54439. "category": "people"
  54440. },
  54441. ":blond_haired_person_tone3:": {
  54442. "uc_base": "1f471-1f3fd",
  54443. "uc_output": "1f471-1f3fd",
  54444. "uc_match": "1f471-1f3fd",
  54445. "uc_greedy": "1f471-1f3fd",
  54446. "shortnames": [":person_with_blond_hair_tone3:"],
  54447. "category": "people"
  54448. },
  54449. ":blond_haired_person_tone4:": {
  54450. "uc_base": "1f471-1f3fe",
  54451. "uc_output": "1f471-1f3fe",
  54452. "uc_match": "1f471-1f3fe",
  54453. "uc_greedy": "1f471-1f3fe",
  54454. "shortnames": [":person_with_blond_hair_tone4:"],
  54455. "category": "people"
  54456. },
  54457. ":blond_haired_person_tone5:": {
  54458. "uc_base": "1f471-1f3ff",
  54459. "uc_output": "1f471-1f3ff",
  54460. "uc_match": "1f471-1f3ff",
  54461. "uc_greedy": "1f471-1f3ff",
  54462. "shortnames": [":person_with_blond_hair_tone5:"],
  54463. "category": "people"
  54464. },
  54465. ":boy_tone1:": {
  54466. "uc_base": "1f466-1f3fb",
  54467. "uc_output": "1f466-1f3fb",
  54468. "uc_match": "1f466-1f3fb",
  54469. "uc_greedy": "1f466-1f3fb",
  54470. "shortnames": [],
  54471. "category": "people"
  54472. },
  54473. ":boy_tone2:": {
  54474. "uc_base": "1f466-1f3fc",
  54475. "uc_output": "1f466-1f3fc",
  54476. "uc_match": "1f466-1f3fc",
  54477. "uc_greedy": "1f466-1f3fc",
  54478. "shortnames": [],
  54479. "category": "people"
  54480. },
  54481. ":boy_tone3:": {
  54482. "uc_base": "1f466-1f3fd",
  54483. "uc_output": "1f466-1f3fd",
  54484. "uc_match": "1f466-1f3fd",
  54485. "uc_greedy": "1f466-1f3fd",
  54486. "shortnames": [],
  54487. "category": "people"
  54488. },
  54489. ":boy_tone4:": {
  54490. "uc_base": "1f466-1f3fe",
  54491. "uc_output": "1f466-1f3fe",
  54492. "uc_match": "1f466-1f3fe",
  54493. "uc_greedy": "1f466-1f3fe",
  54494. "shortnames": [],
  54495. "category": "people"
  54496. },
  54497. ":boy_tone5:": {
  54498. "uc_base": "1f466-1f3ff",
  54499. "uc_output": "1f466-1f3ff",
  54500. "uc_match": "1f466-1f3ff",
  54501. "uc_greedy": "1f466-1f3ff",
  54502. "shortnames": [],
  54503. "category": "people"
  54504. },
  54505. ":breast_feeding_tone1:": {
  54506. "uc_base": "1f931-1f3fb",
  54507. "uc_output": "1f931-1f3fb",
  54508. "uc_match": "1f931-1f3fb",
  54509. "uc_greedy": "1f931-1f3fb",
  54510. "shortnames": [":breast_feeding_light_skin_tone:"],
  54511. "category": "people"
  54512. },
  54513. ":breast_feeding_tone2:": {
  54514. "uc_base": "1f931-1f3fc",
  54515. "uc_output": "1f931-1f3fc",
  54516. "uc_match": "1f931-1f3fc",
  54517. "uc_greedy": "1f931-1f3fc",
  54518. "shortnames": [":breast_feeding_medium_light_skin_tone:"],
  54519. "category": "people"
  54520. },
  54521. ":breast_feeding_tone3:": {
  54522. "uc_base": "1f931-1f3fd",
  54523. "uc_output": "1f931-1f3fd",
  54524. "uc_match": "1f931-1f3fd",
  54525. "uc_greedy": "1f931-1f3fd",
  54526. "shortnames": [":breast_feeding_medium_skin_tone:"],
  54527. "category": "people"
  54528. },
  54529. ":breast_feeding_tone4:": {
  54530. "uc_base": "1f931-1f3fe",
  54531. "uc_output": "1f931-1f3fe",
  54532. "uc_match": "1f931-1f3fe",
  54533. "uc_greedy": "1f931-1f3fe",
  54534. "shortnames": [":breast_feeding_medium_dark_skin_tone:"],
  54535. "category": "people"
  54536. },
  54537. ":breast_feeding_tone5:": {
  54538. "uc_base": "1f931-1f3ff",
  54539. "uc_output": "1f931-1f3ff",
  54540. "uc_match": "1f931-1f3ff",
  54541. "uc_greedy": "1f931-1f3ff",
  54542. "shortnames": [":breast_feeding_dark_skin_tone:"],
  54543. "category": "people"
  54544. },
  54545. ":bride_with_veil_tone1:": {
  54546. "uc_base": "1f470-1f3fb",
  54547. "uc_output": "1f470-1f3fb",
  54548. "uc_match": "1f470-1f3fb",
  54549. "uc_greedy": "1f470-1f3fb",
  54550. "shortnames": [],
  54551. "category": "people"
  54552. },
  54553. ":bride_with_veil_tone2:": {
  54554. "uc_base": "1f470-1f3fc",
  54555. "uc_output": "1f470-1f3fc",
  54556. "uc_match": "1f470-1f3fc",
  54557. "uc_greedy": "1f470-1f3fc",
  54558. "shortnames": [],
  54559. "category": "people"
  54560. },
  54561. ":bride_with_veil_tone3:": {
  54562. "uc_base": "1f470-1f3fd",
  54563. "uc_output": "1f470-1f3fd",
  54564. "uc_match": "1f470-1f3fd",
  54565. "uc_greedy": "1f470-1f3fd",
  54566. "shortnames": [],
  54567. "category": "people"
  54568. },
  54569. ":bride_with_veil_tone4:": {
  54570. "uc_base": "1f470-1f3fe",
  54571. "uc_output": "1f470-1f3fe",
  54572. "uc_match": "1f470-1f3fe",
  54573. "uc_greedy": "1f470-1f3fe",
  54574. "shortnames": [],
  54575. "category": "people"
  54576. },
  54577. ":bride_with_veil_tone5:": {
  54578. "uc_base": "1f470-1f3ff",
  54579. "uc_output": "1f470-1f3ff",
  54580. "uc_match": "1f470-1f3ff",
  54581. "uc_greedy": "1f470-1f3ff",
  54582. "shortnames": [],
  54583. "category": "people"
  54584. },
  54585. ":call_me_tone1:": {
  54586. "uc_base": "1f919-1f3fb",
  54587. "uc_output": "1f919-1f3fb",
  54588. "uc_match": "1f919-1f3fb",
  54589. "uc_greedy": "1f919-1f3fb",
  54590. "shortnames": [":call_me_hand_tone1:"],
  54591. "category": "people"
  54592. },
  54593. ":call_me_tone2:": {
  54594. "uc_base": "1f919-1f3fc",
  54595. "uc_output": "1f919-1f3fc",
  54596. "uc_match": "1f919-1f3fc",
  54597. "uc_greedy": "1f919-1f3fc",
  54598. "shortnames": [":call_me_hand_tone2:"],
  54599. "category": "people"
  54600. },
  54601. ":call_me_tone3:": {
  54602. "uc_base": "1f919-1f3fd",
  54603. "uc_output": "1f919-1f3fd",
  54604. "uc_match": "1f919-1f3fd",
  54605. "uc_greedy": "1f919-1f3fd",
  54606. "shortnames": [":call_me_hand_tone3:"],
  54607. "category": "people"
  54608. },
  54609. ":call_me_tone4:": {
  54610. "uc_base": "1f919-1f3fe",
  54611. "uc_output": "1f919-1f3fe",
  54612. "uc_match": "1f919-1f3fe",
  54613. "uc_greedy": "1f919-1f3fe",
  54614. "shortnames": [":call_me_hand_tone4:"],
  54615. "category": "people"
  54616. },
  54617. ":call_me_tone5:": {
  54618. "uc_base": "1f919-1f3ff",
  54619. "uc_output": "1f919-1f3ff",
  54620. "uc_match": "1f919-1f3ff",
  54621. "uc_greedy": "1f919-1f3ff",
  54622. "shortnames": [":call_me_hand_tone5:"],
  54623. "category": "people"
  54624. },
  54625. ":child_tone1:": {
  54626. "uc_base": "1f9d2-1f3fb",
  54627. "uc_output": "1f9d2-1f3fb",
  54628. "uc_match": "1f9d2-1f3fb",
  54629. "uc_greedy": "1f9d2-1f3fb",
  54630. "shortnames": [":child_light_skin_tone:"],
  54631. "category": "people"
  54632. },
  54633. ":child_tone2:": {
  54634. "uc_base": "1f9d2-1f3fc",
  54635. "uc_output": "1f9d2-1f3fc",
  54636. "uc_match": "1f9d2-1f3fc",
  54637. "uc_greedy": "1f9d2-1f3fc",
  54638. "shortnames": [":child_medium_light_skin_tone:"],
  54639. "category": "people"
  54640. },
  54641. ":child_tone3:": {
  54642. "uc_base": "1f9d2-1f3fd",
  54643. "uc_output": "1f9d2-1f3fd",
  54644. "uc_match": "1f9d2-1f3fd",
  54645. "uc_greedy": "1f9d2-1f3fd",
  54646. "shortnames": [":child_medium_skin_tone:"],
  54647. "category": "people"
  54648. },
  54649. ":child_tone4:": {
  54650. "uc_base": "1f9d2-1f3fe",
  54651. "uc_output": "1f9d2-1f3fe",
  54652. "uc_match": "1f9d2-1f3fe",
  54653. "uc_greedy": "1f9d2-1f3fe",
  54654. "shortnames": [":child_medium_dark_skin_tone:"],
  54655. "category": "people"
  54656. },
  54657. ":child_tone5:": {
  54658. "uc_base": "1f9d2-1f3ff",
  54659. "uc_output": "1f9d2-1f3ff",
  54660. "uc_match": "1f9d2-1f3ff",
  54661. "uc_greedy": "1f9d2-1f3ff",
  54662. "shortnames": [":child_dark_skin_tone:"],
  54663. "category": "people"
  54664. },
  54665. ":clap_tone1:": {
  54666. "uc_base": "1f44f-1f3fb",
  54667. "uc_output": "1f44f-1f3fb",
  54668. "uc_match": "1f44f-1f3fb",
  54669. "uc_greedy": "1f44f-1f3fb",
  54670. "shortnames": [],
  54671. "category": "people"
  54672. },
  54673. ":clap_tone2:": {
  54674. "uc_base": "1f44f-1f3fc",
  54675. "uc_output": "1f44f-1f3fc",
  54676. "uc_match": "1f44f-1f3fc",
  54677. "uc_greedy": "1f44f-1f3fc",
  54678. "shortnames": [],
  54679. "category": "people"
  54680. },
  54681. ":clap_tone3:": {
  54682. "uc_base": "1f44f-1f3fd",
  54683. "uc_output": "1f44f-1f3fd",
  54684. "uc_match": "1f44f-1f3fd",
  54685. "uc_greedy": "1f44f-1f3fd",
  54686. "shortnames": [],
  54687. "category": "people"
  54688. },
  54689. ":clap_tone4:": {
  54690. "uc_base": "1f44f-1f3fe",
  54691. "uc_output": "1f44f-1f3fe",
  54692. "uc_match": "1f44f-1f3fe",
  54693. "uc_greedy": "1f44f-1f3fe",
  54694. "shortnames": [],
  54695. "category": "people"
  54696. },
  54697. ":clap_tone5:": {
  54698. "uc_base": "1f44f-1f3ff",
  54699. "uc_output": "1f44f-1f3ff",
  54700. "uc_match": "1f44f-1f3ff",
  54701. "uc_greedy": "1f44f-1f3ff",
  54702. "shortnames": [],
  54703. "category": "people"
  54704. },
  54705. ":construction_worker_tone1:": {
  54706. "uc_base": "1f477-1f3fb",
  54707. "uc_output": "1f477-1f3fb",
  54708. "uc_match": "1f477-1f3fb",
  54709. "uc_greedy": "1f477-1f3fb",
  54710. "shortnames": [],
  54711. "category": "people"
  54712. },
  54713. ":construction_worker_tone2:": {
  54714. "uc_base": "1f477-1f3fc",
  54715. "uc_output": "1f477-1f3fc",
  54716. "uc_match": "1f477-1f3fc",
  54717. "uc_greedy": "1f477-1f3fc",
  54718. "shortnames": [],
  54719. "category": "people"
  54720. },
  54721. ":construction_worker_tone3:": {
  54722. "uc_base": "1f477-1f3fd",
  54723. "uc_output": "1f477-1f3fd",
  54724. "uc_match": "1f477-1f3fd",
  54725. "uc_greedy": "1f477-1f3fd",
  54726. "shortnames": [],
  54727. "category": "people"
  54728. },
  54729. ":construction_worker_tone4:": {
  54730. "uc_base": "1f477-1f3fe",
  54731. "uc_output": "1f477-1f3fe",
  54732. "uc_match": "1f477-1f3fe",
  54733. "uc_greedy": "1f477-1f3fe",
  54734. "shortnames": [],
  54735. "category": "people"
  54736. },
  54737. ":construction_worker_tone5:": {
  54738. "uc_base": "1f477-1f3ff",
  54739. "uc_output": "1f477-1f3ff",
  54740. "uc_match": "1f477-1f3ff",
  54741. "uc_greedy": "1f477-1f3ff",
  54742. "shortnames": [],
  54743. "category": "people"
  54744. },
  54745. ":dancer_tone1:": {
  54746. "uc_base": "1f483-1f3fb",
  54747. "uc_output": "1f483-1f3fb",
  54748. "uc_match": "1f483-1f3fb",
  54749. "uc_greedy": "1f483-1f3fb",
  54750. "shortnames": [],
  54751. "category": "people"
  54752. },
  54753. ":dancer_tone2:": {
  54754. "uc_base": "1f483-1f3fc",
  54755. "uc_output": "1f483-1f3fc",
  54756. "uc_match": "1f483-1f3fc",
  54757. "uc_greedy": "1f483-1f3fc",
  54758. "shortnames": [],
  54759. "category": "people"
  54760. },
  54761. ":dancer_tone3:": {
  54762. "uc_base": "1f483-1f3fd",
  54763. "uc_output": "1f483-1f3fd",
  54764. "uc_match": "1f483-1f3fd",
  54765. "uc_greedy": "1f483-1f3fd",
  54766. "shortnames": [],
  54767. "category": "people"
  54768. },
  54769. ":dancer_tone4:": {
  54770. "uc_base": "1f483-1f3fe",
  54771. "uc_output": "1f483-1f3fe",
  54772. "uc_match": "1f483-1f3fe",
  54773. "uc_greedy": "1f483-1f3fe",
  54774. "shortnames": [],
  54775. "category": "people"
  54776. },
  54777. ":dancer_tone5:": {
  54778. "uc_base": "1f483-1f3ff",
  54779. "uc_output": "1f483-1f3ff",
  54780. "uc_match": "1f483-1f3ff",
  54781. "uc_greedy": "1f483-1f3ff",
  54782. "shortnames": [],
  54783. "category": "people"
  54784. },
  54785. ":detective_tone1:": {
  54786. "uc_base": "1f575-1f3fb",
  54787. "uc_output": "1f575-1f3fb",
  54788. "uc_match": "1f575-fe0f-1f3fb",
  54789. "uc_greedy": "1f575-fe0f-1f3fb",
  54790. "shortnames": [":spy_tone1:", ":sleuth_or_spy_tone1:"],
  54791. "category": "people"
  54792. },
  54793. ":detective_tone2:": {
  54794. "uc_base": "1f575-1f3fc",
  54795. "uc_output": "1f575-1f3fc",
  54796. "uc_match": "1f575-fe0f-1f3fc",
  54797. "uc_greedy": "1f575-fe0f-1f3fc",
  54798. "shortnames": [":spy_tone2:", ":sleuth_or_spy_tone2:"],
  54799. "category": "people"
  54800. },
  54801. ":detective_tone3:": {
  54802. "uc_base": "1f575-1f3fd",
  54803. "uc_output": "1f575-1f3fd",
  54804. "uc_match": "1f575-fe0f-1f3fd",
  54805. "uc_greedy": "1f575-fe0f-1f3fd",
  54806. "shortnames": [":spy_tone3:", ":sleuth_or_spy_tone3:"],
  54807. "category": "people"
  54808. },
  54809. ":detective_tone4:": {
  54810. "uc_base": "1f575-1f3fe",
  54811. "uc_output": "1f575-1f3fe",
  54812. "uc_match": "1f575-fe0f-1f3fe",
  54813. "uc_greedy": "1f575-fe0f-1f3fe",
  54814. "shortnames": [":spy_tone4:", ":sleuth_or_spy_tone4:"],
  54815. "category": "people"
  54816. },
  54817. ":detective_tone5:": {
  54818. "uc_base": "1f575-1f3ff",
  54819. "uc_output": "1f575-1f3ff",
  54820. "uc_match": "1f575-fe0f-1f3ff",
  54821. "uc_greedy": "1f575-fe0f-1f3ff",
  54822. "shortnames": [":spy_tone5:", ":sleuth_or_spy_tone5:"],
  54823. "category": "people"
  54824. },
  54825. ":ear_tone1:": {
  54826. "uc_base": "1f442-1f3fb",
  54827. "uc_output": "1f442-1f3fb",
  54828. "uc_match": "1f442-1f3fb",
  54829. "uc_greedy": "1f442-1f3fb",
  54830. "shortnames": [],
  54831. "category": "people"
  54832. },
  54833. ":ear_tone2:": {
  54834. "uc_base": "1f442-1f3fc",
  54835. "uc_output": "1f442-1f3fc",
  54836. "uc_match": "1f442-1f3fc",
  54837. "uc_greedy": "1f442-1f3fc",
  54838. "shortnames": [],
  54839. "category": "people"
  54840. },
  54841. ":ear_tone3:": {
  54842. "uc_base": "1f442-1f3fd",
  54843. "uc_output": "1f442-1f3fd",
  54844. "uc_match": "1f442-1f3fd",
  54845. "uc_greedy": "1f442-1f3fd",
  54846. "shortnames": [],
  54847. "category": "people"
  54848. },
  54849. ":ear_tone4:": {
  54850. "uc_base": "1f442-1f3fe",
  54851. "uc_output": "1f442-1f3fe",
  54852. "uc_match": "1f442-1f3fe",
  54853. "uc_greedy": "1f442-1f3fe",
  54854. "shortnames": [],
  54855. "category": "people"
  54856. },
  54857. ":ear_tone5:": {
  54858. "uc_base": "1f442-1f3ff",
  54859. "uc_output": "1f442-1f3ff",
  54860. "uc_match": "1f442-1f3ff",
  54861. "uc_greedy": "1f442-1f3ff",
  54862. "shortnames": [],
  54863. "category": "people"
  54864. },
  54865. ":elf_tone1:": {
  54866. "uc_base": "1f9dd-1f3fb",
  54867. "uc_output": "1f9dd-1f3fb",
  54868. "uc_match": "1f9dd-1f3fb",
  54869. "uc_greedy": "1f9dd-1f3fb",
  54870. "shortnames": [":elf_light_skin_tone:"],
  54871. "category": "people"
  54872. },
  54873. ":elf_tone2:": {
  54874. "uc_base": "1f9dd-1f3fc",
  54875. "uc_output": "1f9dd-1f3fc",
  54876. "uc_match": "1f9dd-1f3fc",
  54877. "uc_greedy": "1f9dd-1f3fc",
  54878. "shortnames": [":elf_medium_light_skin_tone:"],
  54879. "category": "people"
  54880. },
  54881. ":elf_tone3:": {
  54882. "uc_base": "1f9dd-1f3fd",
  54883. "uc_output": "1f9dd-1f3fd",
  54884. "uc_match": "1f9dd-1f3fd",
  54885. "uc_greedy": "1f9dd-1f3fd",
  54886. "shortnames": [":elf_medium_skin_tone:"],
  54887. "category": "people"
  54888. },
  54889. ":elf_tone4:": {
  54890. "uc_base": "1f9dd-1f3fe",
  54891. "uc_output": "1f9dd-1f3fe",
  54892. "uc_match": "1f9dd-1f3fe",
  54893. "uc_greedy": "1f9dd-1f3fe",
  54894. "shortnames": [":elf_medium_dark_skin_tone:"],
  54895. "category": "people"
  54896. },
  54897. ":elf_tone5:": {
  54898. "uc_base": "1f9dd-1f3ff",
  54899. "uc_output": "1f9dd-1f3ff",
  54900. "uc_match": "1f9dd-1f3ff",
  54901. "uc_greedy": "1f9dd-1f3ff",
  54902. "shortnames": [":elf_dark_skin_tone:"],
  54903. "category": "people"
  54904. },
  54905. ":fairy_tone1:": {
  54906. "uc_base": "1f9da-1f3fb",
  54907. "uc_output": "1f9da-1f3fb",
  54908. "uc_match": "1f9da-1f3fb",
  54909. "uc_greedy": "1f9da-1f3fb",
  54910. "shortnames": [":fairy_light_skin_tone:"],
  54911. "category": "people"
  54912. },
  54913. ":fairy_tone2:": {
  54914. "uc_base": "1f9da-1f3fc",
  54915. "uc_output": "1f9da-1f3fc",
  54916. "uc_match": "1f9da-1f3fc",
  54917. "uc_greedy": "1f9da-1f3fc",
  54918. "shortnames": [":fairy_medium_light_skin_tone:"],
  54919. "category": "people"
  54920. },
  54921. ":fairy_tone3:": {
  54922. "uc_base": "1f9da-1f3fd",
  54923. "uc_output": "1f9da-1f3fd",
  54924. "uc_match": "1f9da-1f3fd",
  54925. "uc_greedy": "1f9da-1f3fd",
  54926. "shortnames": [":fairy_medium_skin_tone:"],
  54927. "category": "people"
  54928. },
  54929. ":fairy_tone4:": {
  54930. "uc_base": "1f9da-1f3fe",
  54931. "uc_output": "1f9da-1f3fe",
  54932. "uc_match": "1f9da-1f3fe",
  54933. "uc_greedy": "1f9da-1f3fe",
  54934. "shortnames": [":fairy_medium_dark_skin_tone:"],
  54935. "category": "people"
  54936. },
  54937. ":fairy_tone5:": {
  54938. "uc_base": "1f9da-1f3ff",
  54939. "uc_output": "1f9da-1f3ff",
  54940. "uc_match": "1f9da-1f3ff",
  54941. "uc_greedy": "1f9da-1f3ff",
  54942. "shortnames": [":fairy_dark_skin_tone:"],
  54943. "category": "people"
  54944. },
  54945. ":fingers_crossed_tone1:": {
  54946. "uc_base": "1f91e-1f3fb",
  54947. "uc_output": "1f91e-1f3fb",
  54948. "uc_match": "1f91e-1f3fb",
  54949. "uc_greedy": "1f91e-1f3fb",
  54950. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone1:"],
  54951. "category": "people"
  54952. },
  54953. ":fingers_crossed_tone2:": {
  54954. "uc_base": "1f91e-1f3fc",
  54955. "uc_output": "1f91e-1f3fc",
  54956. "uc_match": "1f91e-1f3fc",
  54957. "uc_greedy": "1f91e-1f3fc",
  54958. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone2:"],
  54959. "category": "people"
  54960. },
  54961. ":fingers_crossed_tone3:": {
  54962. "uc_base": "1f91e-1f3fd",
  54963. "uc_output": "1f91e-1f3fd",
  54964. "uc_match": "1f91e-1f3fd",
  54965. "uc_greedy": "1f91e-1f3fd",
  54966. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone3:"],
  54967. "category": "people"
  54968. },
  54969. ":fingers_crossed_tone4:": {
  54970. "uc_base": "1f91e-1f3fe",
  54971. "uc_output": "1f91e-1f3fe",
  54972. "uc_match": "1f91e-1f3fe",
  54973. "uc_greedy": "1f91e-1f3fe",
  54974. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone4:"],
  54975. "category": "people"
  54976. },
  54977. ":fingers_crossed_tone5:": {
  54978. "uc_base": "1f91e-1f3ff",
  54979. "uc_output": "1f91e-1f3ff",
  54980. "uc_match": "1f91e-1f3ff",
  54981. "uc_greedy": "1f91e-1f3ff",
  54982. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone5:"],
  54983. "category": "people"
  54984. },
  54985. ":flag_ac:": {
  54986. "uc_base": "1f1e6-1f1e8",
  54987. "uc_output": "1f1e6-1f1e8",
  54988. "uc_match": "1f1e6-1f1e8",
  54989. "uc_greedy": "1f1e6-1f1e8",
  54990. "shortnames": [":ac:"],
  54991. "category": "flags"
  54992. },
  54993. ":flag_ad:": {
  54994. "uc_base": "1f1e6-1f1e9",
  54995. "uc_output": "1f1e6-1f1e9",
  54996. "uc_match": "1f1e6-1f1e9",
  54997. "uc_greedy": "1f1e6-1f1e9",
  54998. "shortnames": [":ad:"],
  54999. "category": "flags"
  55000. },
  55001. ":flag_ae:": {
  55002. "uc_base": "1f1e6-1f1ea",
  55003. "uc_output": "1f1e6-1f1ea",
  55004. "uc_match": "1f1e6-1f1ea",
  55005. "uc_greedy": "1f1e6-1f1ea",
  55006. "shortnames": [":ae:"],
  55007. "category": "flags"
  55008. },
  55009. ":flag_af:": {
  55010. "uc_base": "1f1e6-1f1eb",
  55011. "uc_output": "1f1e6-1f1eb",
  55012. "uc_match": "1f1e6-1f1eb",
  55013. "uc_greedy": "1f1e6-1f1eb",
  55014. "shortnames": [":af:"],
  55015. "category": "flags"
  55016. },
  55017. ":flag_ag:": {
  55018. "uc_base": "1f1e6-1f1ec",
  55019. "uc_output": "1f1e6-1f1ec",
  55020. "uc_match": "1f1e6-1f1ec",
  55021. "uc_greedy": "1f1e6-1f1ec",
  55022. "shortnames": [":ag:"],
  55023. "category": "flags"
  55024. },
  55025. ":flag_ai:": {
  55026. "uc_base": "1f1e6-1f1ee",
  55027. "uc_output": "1f1e6-1f1ee",
  55028. "uc_match": "1f1e6-1f1ee",
  55029. "uc_greedy": "1f1e6-1f1ee",
  55030. "shortnames": [":ai:"],
  55031. "category": "flags"
  55032. },
  55033. ":flag_al:": {
  55034. "uc_base": "1f1e6-1f1f1",
  55035. "uc_output": "1f1e6-1f1f1",
  55036. "uc_match": "1f1e6-1f1f1",
  55037. "uc_greedy": "1f1e6-1f1f1",
  55038. "shortnames": [":al:"],
  55039. "category": "flags"
  55040. },
  55041. ":flag_am:": {
  55042. "uc_base": "1f1e6-1f1f2",
  55043. "uc_output": "1f1e6-1f1f2",
  55044. "uc_match": "1f1e6-1f1f2",
  55045. "uc_greedy": "1f1e6-1f1f2",
  55046. "shortnames": [":am:"],
  55047. "category": "flags"
  55048. },
  55049. ":flag_ao:": {
  55050. "uc_base": "1f1e6-1f1f4",
  55051. "uc_output": "1f1e6-1f1f4",
  55052. "uc_match": "1f1e6-1f1f4",
  55053. "uc_greedy": "1f1e6-1f1f4",
  55054. "shortnames": [":ao:"],
  55055. "category": "flags"
  55056. },
  55057. ":flag_aq:": {
  55058. "uc_base": "1f1e6-1f1f6",
  55059. "uc_output": "1f1e6-1f1f6",
  55060. "uc_match": "1f1e6-1f1f6",
  55061. "uc_greedy": "1f1e6-1f1f6",
  55062. "shortnames": [":aq:"],
  55063. "category": "flags"
  55064. },
  55065. ":flag_ar:": {
  55066. "uc_base": "1f1e6-1f1f7",
  55067. "uc_output": "1f1e6-1f1f7",
  55068. "uc_match": "1f1e6-1f1f7",
  55069. "uc_greedy": "1f1e6-1f1f7",
  55070. "shortnames": [":ar:"],
  55071. "category": "flags"
  55072. },
  55073. ":flag_as:": {
  55074. "uc_base": "1f1e6-1f1f8",
  55075. "uc_output": "1f1e6-1f1f8",
  55076. "uc_match": "1f1e6-1f1f8",
  55077. "uc_greedy": "1f1e6-1f1f8",
  55078. "shortnames": [":as:"],
  55079. "category": "flags"
  55080. },
  55081. ":flag_at:": {
  55082. "uc_base": "1f1e6-1f1f9",
  55083. "uc_output": "1f1e6-1f1f9",
  55084. "uc_match": "1f1e6-1f1f9",
  55085. "uc_greedy": "1f1e6-1f1f9",
  55086. "shortnames": [":at:"],
  55087. "category": "flags"
  55088. },
  55089. ":flag_au:": {
  55090. "uc_base": "1f1e6-1f1fa",
  55091. "uc_output": "1f1e6-1f1fa",
  55092. "uc_match": "1f1e6-1f1fa",
  55093. "uc_greedy": "1f1e6-1f1fa",
  55094. "shortnames": [":au:"],
  55095. "category": "flags"
  55096. },
  55097. ":flag_aw:": {
  55098. "uc_base": "1f1e6-1f1fc",
  55099. "uc_output": "1f1e6-1f1fc",
  55100. "uc_match": "1f1e6-1f1fc",
  55101. "uc_greedy": "1f1e6-1f1fc",
  55102. "shortnames": [":aw:"],
  55103. "category": "flags"
  55104. },
  55105. ":flag_ax:": {
  55106. "uc_base": "1f1e6-1f1fd",
  55107. "uc_output": "1f1e6-1f1fd",
  55108. "uc_match": "1f1e6-1f1fd",
  55109. "uc_greedy": "1f1e6-1f1fd",
  55110. "shortnames": [":ax:"],
  55111. "category": "flags"
  55112. },
  55113. ":flag_az:": {
  55114. "uc_base": "1f1e6-1f1ff",
  55115. "uc_output": "1f1e6-1f1ff",
  55116. "uc_match": "1f1e6-1f1ff",
  55117. "uc_greedy": "1f1e6-1f1ff",
  55118. "shortnames": [":az:"],
  55119. "category": "flags"
  55120. },
  55121. ":flag_ba:": {
  55122. "uc_base": "1f1e7-1f1e6",
  55123. "uc_output": "1f1e7-1f1e6",
  55124. "uc_match": "1f1e7-1f1e6",
  55125. "uc_greedy": "1f1e7-1f1e6",
  55126. "shortnames": [":ba:"],
  55127. "category": "flags"
  55128. },
  55129. ":flag_bb:": {
  55130. "uc_base": "1f1e7-1f1e7",
  55131. "uc_output": "1f1e7-1f1e7",
  55132. "uc_match": "1f1e7-1f1e7",
  55133. "uc_greedy": "1f1e7-1f1e7",
  55134. "shortnames": [":bb:"],
  55135. "category": "flags"
  55136. },
  55137. ":flag_bd:": {
  55138. "uc_base": "1f1e7-1f1e9",
  55139. "uc_output": "1f1e7-1f1e9",
  55140. "uc_match": "1f1e7-1f1e9",
  55141. "uc_greedy": "1f1e7-1f1e9",
  55142. "shortnames": [":bd:"],
  55143. "category": "flags"
  55144. },
  55145. ":flag_be:": {
  55146. "uc_base": "1f1e7-1f1ea",
  55147. "uc_output": "1f1e7-1f1ea",
  55148. "uc_match": "1f1e7-1f1ea",
  55149. "uc_greedy": "1f1e7-1f1ea",
  55150. "shortnames": [":be:"],
  55151. "category": "flags"
  55152. },
  55153. ":flag_bf:": {
  55154. "uc_base": "1f1e7-1f1eb",
  55155. "uc_output": "1f1e7-1f1eb",
  55156. "uc_match": "1f1e7-1f1eb",
  55157. "uc_greedy": "1f1e7-1f1eb",
  55158. "shortnames": [":bf:"],
  55159. "category": "flags"
  55160. },
  55161. ":flag_bg:": {
  55162. "uc_base": "1f1e7-1f1ec",
  55163. "uc_output": "1f1e7-1f1ec",
  55164. "uc_match": "1f1e7-1f1ec",
  55165. "uc_greedy": "1f1e7-1f1ec",
  55166. "shortnames": [":bg:"],
  55167. "category": "flags"
  55168. },
  55169. ":flag_bh:": {
  55170. "uc_base": "1f1e7-1f1ed",
  55171. "uc_output": "1f1e7-1f1ed",
  55172. "uc_match": "1f1e7-1f1ed",
  55173. "uc_greedy": "1f1e7-1f1ed",
  55174. "shortnames": [":bh:"],
  55175. "category": "flags"
  55176. },
  55177. ":flag_bi:": {
  55178. "uc_base": "1f1e7-1f1ee",
  55179. "uc_output": "1f1e7-1f1ee",
  55180. "uc_match": "1f1e7-1f1ee",
  55181. "uc_greedy": "1f1e7-1f1ee",
  55182. "shortnames": [":bi:"],
  55183. "category": "flags"
  55184. },
  55185. ":flag_bj:": {
  55186. "uc_base": "1f1e7-1f1ef",
  55187. "uc_output": "1f1e7-1f1ef",
  55188. "uc_match": "1f1e7-1f1ef",
  55189. "uc_greedy": "1f1e7-1f1ef",
  55190. "shortnames": [":bj:"],
  55191. "category": "flags"
  55192. },
  55193. ":flag_bl:": {
  55194. "uc_base": "1f1e7-1f1f1",
  55195. "uc_output": "1f1e7-1f1f1",
  55196. "uc_match": "1f1e7-1f1f1",
  55197. "uc_greedy": "1f1e7-1f1f1",
  55198. "shortnames": [":bl:"],
  55199. "category": "flags"
  55200. },
  55201. ":flag_bm:": {
  55202. "uc_base": "1f1e7-1f1f2",
  55203. "uc_output": "1f1e7-1f1f2",
  55204. "uc_match": "1f1e7-1f1f2",
  55205. "uc_greedy": "1f1e7-1f1f2",
  55206. "shortnames": [":bm:"],
  55207. "category": "flags"
  55208. },
  55209. ":flag_bn:": {
  55210. "uc_base": "1f1e7-1f1f3",
  55211. "uc_output": "1f1e7-1f1f3",
  55212. "uc_match": "1f1e7-1f1f3",
  55213. "uc_greedy": "1f1e7-1f1f3",
  55214. "shortnames": [":bn:"],
  55215. "category": "flags"
  55216. },
  55217. ":flag_bo:": {
  55218. "uc_base": "1f1e7-1f1f4",
  55219. "uc_output": "1f1e7-1f1f4",
  55220. "uc_match": "1f1e7-1f1f4",
  55221. "uc_greedy": "1f1e7-1f1f4",
  55222. "shortnames": [":bo:"],
  55223. "category": "flags"
  55224. },
  55225. ":flag_bq:": {
  55226. "uc_base": "1f1e7-1f1f6",
  55227. "uc_output": "1f1e7-1f1f6",
  55228. "uc_match": "1f1e7-1f1f6",
  55229. "uc_greedy": "1f1e7-1f1f6",
  55230. "shortnames": [":bq:"],
  55231. "category": "flags"
  55232. },
  55233. ":flag_br:": {
  55234. "uc_base": "1f1e7-1f1f7",
  55235. "uc_output": "1f1e7-1f1f7",
  55236. "uc_match": "1f1e7-1f1f7",
  55237. "uc_greedy": "1f1e7-1f1f7",
  55238. "shortnames": [":br:"],
  55239. "category": "flags"
  55240. },
  55241. ":flag_bs:": {
  55242. "uc_base": "1f1e7-1f1f8",
  55243. "uc_output": "1f1e7-1f1f8",
  55244. "uc_match": "1f1e7-1f1f8",
  55245. "uc_greedy": "1f1e7-1f1f8",
  55246. "shortnames": [":bs:"],
  55247. "category": "flags"
  55248. },
  55249. ":flag_bt:": {
  55250. "uc_base": "1f1e7-1f1f9",
  55251. "uc_output": "1f1e7-1f1f9",
  55252. "uc_match": "1f1e7-1f1f9",
  55253. "uc_greedy": "1f1e7-1f1f9",
  55254. "shortnames": [":bt:"],
  55255. "category": "flags"
  55256. },
  55257. ":flag_bv:": {
  55258. "uc_base": "1f1e7-1f1fb",
  55259. "uc_output": "1f1e7-1f1fb",
  55260. "uc_match": "1f1e7-1f1fb",
  55261. "uc_greedy": "1f1e7-1f1fb",
  55262. "shortnames": [":bv:"],
  55263. "category": "flags"
  55264. },
  55265. ":flag_bw:": {
  55266. "uc_base": "1f1e7-1f1fc",
  55267. "uc_output": "1f1e7-1f1fc",
  55268. "uc_match": "1f1e7-1f1fc",
  55269. "uc_greedy": "1f1e7-1f1fc",
  55270. "shortnames": [":bw:"],
  55271. "category": "flags"
  55272. },
  55273. ":flag_by:": {
  55274. "uc_base": "1f1e7-1f1fe",
  55275. "uc_output": "1f1e7-1f1fe",
  55276. "uc_match": "1f1e7-1f1fe",
  55277. "uc_greedy": "1f1e7-1f1fe",
  55278. "shortnames": [":by:"],
  55279. "category": "flags"
  55280. },
  55281. ":flag_bz:": {
  55282. "uc_base": "1f1e7-1f1ff",
  55283. "uc_output": "1f1e7-1f1ff",
  55284. "uc_match": "1f1e7-1f1ff",
  55285. "uc_greedy": "1f1e7-1f1ff",
  55286. "shortnames": [":bz:"],
  55287. "category": "flags"
  55288. },
  55289. ":flag_ca:": {
  55290. "uc_base": "1f1e8-1f1e6",
  55291. "uc_output": "1f1e8-1f1e6",
  55292. "uc_match": "1f1e8-1f1e6",
  55293. "uc_greedy": "1f1e8-1f1e6",
  55294. "shortnames": [":ca:"],
  55295. "category": "flags"
  55296. },
  55297. ":flag_cc:": {
  55298. "uc_base": "1f1e8-1f1e8",
  55299. "uc_output": "1f1e8-1f1e8",
  55300. "uc_match": "1f1e8-1f1e8",
  55301. "uc_greedy": "1f1e8-1f1e8",
  55302. "shortnames": [":cc:"],
  55303. "category": "flags"
  55304. },
  55305. ":flag_cd:": {
  55306. "uc_base": "1f1e8-1f1e9",
  55307. "uc_output": "1f1e8-1f1e9",
  55308. "uc_match": "1f1e8-1f1e9",
  55309. "uc_greedy": "1f1e8-1f1e9",
  55310. "shortnames": [":congo:"],
  55311. "category": "flags"
  55312. },
  55313. ":flag_cf:": {
  55314. "uc_base": "1f1e8-1f1eb",
  55315. "uc_output": "1f1e8-1f1eb",
  55316. "uc_match": "1f1e8-1f1eb",
  55317. "uc_greedy": "1f1e8-1f1eb",
  55318. "shortnames": [":cf:"],
  55319. "category": "flags"
  55320. },
  55321. ":flag_cg:": {
  55322. "uc_base": "1f1e8-1f1ec",
  55323. "uc_output": "1f1e8-1f1ec",
  55324. "uc_match": "1f1e8-1f1ec",
  55325. "uc_greedy": "1f1e8-1f1ec",
  55326. "shortnames": [":cg:"],
  55327. "category": "flags"
  55328. },
  55329. ":flag_ch:": {
  55330. "uc_base": "1f1e8-1f1ed",
  55331. "uc_output": "1f1e8-1f1ed",
  55332. "uc_match": "1f1e8-1f1ed",
  55333. "uc_greedy": "1f1e8-1f1ed",
  55334. "shortnames": [":ch:"],
  55335. "category": "flags"
  55336. },
  55337. ":flag_ci:": {
  55338. "uc_base": "1f1e8-1f1ee",
  55339. "uc_output": "1f1e8-1f1ee",
  55340. "uc_match": "1f1e8-1f1ee",
  55341. "uc_greedy": "1f1e8-1f1ee",
  55342. "shortnames": [":ci:"],
  55343. "category": "flags"
  55344. },
  55345. ":flag_ck:": {
  55346. "uc_base": "1f1e8-1f1f0",
  55347. "uc_output": "1f1e8-1f1f0",
  55348. "uc_match": "1f1e8-1f1f0",
  55349. "uc_greedy": "1f1e8-1f1f0",
  55350. "shortnames": [":ck:"],
  55351. "category": "flags"
  55352. },
  55353. ":flag_cl:": {
  55354. "uc_base": "1f1e8-1f1f1",
  55355. "uc_output": "1f1e8-1f1f1",
  55356. "uc_match": "1f1e8-1f1f1",
  55357. "uc_greedy": "1f1e8-1f1f1",
  55358. "shortnames": [":chile:"],
  55359. "category": "flags"
  55360. },
  55361. ":flag_cm:": {
  55362. "uc_base": "1f1e8-1f1f2",
  55363. "uc_output": "1f1e8-1f1f2",
  55364. "uc_match": "1f1e8-1f1f2",
  55365. "uc_greedy": "1f1e8-1f1f2",
  55366. "shortnames": [":cm:"],
  55367. "category": "flags"
  55368. },
  55369. ":flag_cn:": {
  55370. "uc_base": "1f1e8-1f1f3",
  55371. "uc_output": "1f1e8-1f1f3",
  55372. "uc_match": "1f1e8-1f1f3",
  55373. "uc_greedy": "1f1e8-1f1f3",
  55374. "shortnames": [":cn:"],
  55375. "category": "flags"
  55376. },
  55377. ":flag_co:": {
  55378. "uc_base": "1f1e8-1f1f4",
  55379. "uc_output": "1f1e8-1f1f4",
  55380. "uc_match": "1f1e8-1f1f4",
  55381. "uc_greedy": "1f1e8-1f1f4",
  55382. "shortnames": [":co:"],
  55383. "category": "flags"
  55384. },
  55385. ":flag_cp:": {
  55386. "uc_base": "1f1e8-1f1f5",
  55387. "uc_output": "1f1e8-1f1f5",
  55388. "uc_match": "1f1e8-1f1f5",
  55389. "uc_greedy": "1f1e8-1f1f5",
  55390. "shortnames": [":cp:"],
  55391. "category": "flags"
  55392. },
  55393. ":flag_cr:": {
  55394. "uc_base": "1f1e8-1f1f7",
  55395. "uc_output": "1f1e8-1f1f7",
  55396. "uc_match": "1f1e8-1f1f7",
  55397. "uc_greedy": "1f1e8-1f1f7",
  55398. "shortnames": [":cr:"],
  55399. "category": "flags"
  55400. },
  55401. ":flag_cu:": {
  55402. "uc_base": "1f1e8-1f1fa",
  55403. "uc_output": "1f1e8-1f1fa",
  55404. "uc_match": "1f1e8-1f1fa",
  55405. "uc_greedy": "1f1e8-1f1fa",
  55406. "shortnames": [":cu:"],
  55407. "category": "flags"
  55408. },
  55409. ":flag_cv:": {
  55410. "uc_base": "1f1e8-1f1fb",
  55411. "uc_output": "1f1e8-1f1fb",
  55412. "uc_match": "1f1e8-1f1fb",
  55413. "uc_greedy": "1f1e8-1f1fb",
  55414. "shortnames": [":cv:"],
  55415. "category": "flags"
  55416. },
  55417. ":flag_cw:": {
  55418. "uc_base": "1f1e8-1f1fc",
  55419. "uc_output": "1f1e8-1f1fc",
  55420. "uc_match": "1f1e8-1f1fc",
  55421. "uc_greedy": "1f1e8-1f1fc",
  55422. "shortnames": [":cw:"],
  55423. "category": "flags"
  55424. },
  55425. ":flag_cx:": {
  55426. "uc_base": "1f1e8-1f1fd",
  55427. "uc_output": "1f1e8-1f1fd",
  55428. "uc_match": "1f1e8-1f1fd",
  55429. "uc_greedy": "1f1e8-1f1fd",
  55430. "shortnames": [":cx:"],
  55431. "category": "flags"
  55432. },
  55433. ":flag_cy:": {
  55434. "uc_base": "1f1e8-1f1fe",
  55435. "uc_output": "1f1e8-1f1fe",
  55436. "uc_match": "1f1e8-1f1fe",
  55437. "uc_greedy": "1f1e8-1f1fe",
  55438. "shortnames": [":cy:"],
  55439. "category": "flags"
  55440. },
  55441. ":flag_cz:": {
  55442. "uc_base": "1f1e8-1f1ff",
  55443. "uc_output": "1f1e8-1f1ff",
  55444. "uc_match": "1f1e8-1f1ff",
  55445. "uc_greedy": "1f1e8-1f1ff",
  55446. "shortnames": [":cz:"],
  55447. "category": "flags"
  55448. },
  55449. ":flag_de:": {
  55450. "uc_base": "1f1e9-1f1ea",
  55451. "uc_output": "1f1e9-1f1ea",
  55452. "uc_match": "1f1e9-1f1ea",
  55453. "uc_greedy": "1f1e9-1f1ea",
  55454. "shortnames": [":de:"],
  55455. "category": "flags"
  55456. },
  55457. ":flag_dg:": {
  55458. "uc_base": "1f1e9-1f1ec",
  55459. "uc_output": "1f1e9-1f1ec",
  55460. "uc_match": "1f1e9-1f1ec",
  55461. "uc_greedy": "1f1e9-1f1ec",
  55462. "shortnames": [":dg:"],
  55463. "category": "flags"
  55464. },
  55465. ":flag_dj:": {
  55466. "uc_base": "1f1e9-1f1ef",
  55467. "uc_output": "1f1e9-1f1ef",
  55468. "uc_match": "1f1e9-1f1ef",
  55469. "uc_greedy": "1f1e9-1f1ef",
  55470. "shortnames": [":dj:"],
  55471. "category": "flags"
  55472. },
  55473. ":flag_dk:": {
  55474. "uc_base": "1f1e9-1f1f0",
  55475. "uc_output": "1f1e9-1f1f0",
  55476. "uc_match": "1f1e9-1f1f0",
  55477. "uc_greedy": "1f1e9-1f1f0",
  55478. "shortnames": [":dk:"],
  55479. "category": "flags"
  55480. },
  55481. ":flag_dm:": {
  55482. "uc_base": "1f1e9-1f1f2",
  55483. "uc_output": "1f1e9-1f1f2",
  55484. "uc_match": "1f1e9-1f1f2",
  55485. "uc_greedy": "1f1e9-1f1f2",
  55486. "shortnames": [":dm:"],
  55487. "category": "flags"
  55488. },
  55489. ":flag_do:": {
  55490. "uc_base": "1f1e9-1f1f4",
  55491. "uc_output": "1f1e9-1f1f4",
  55492. "uc_match": "1f1e9-1f1f4",
  55493. "uc_greedy": "1f1e9-1f1f4",
  55494. "shortnames": [":do:"],
  55495. "category": "flags"
  55496. },
  55497. ":flag_dz:": {
  55498. "uc_base": "1f1e9-1f1ff",
  55499. "uc_output": "1f1e9-1f1ff",
  55500. "uc_match": "1f1e9-1f1ff",
  55501. "uc_greedy": "1f1e9-1f1ff",
  55502. "shortnames": [":dz:"],
  55503. "category": "flags"
  55504. },
  55505. ":flag_ea:": {
  55506. "uc_base": "1f1ea-1f1e6",
  55507. "uc_output": "1f1ea-1f1e6",
  55508. "uc_match": "1f1ea-1f1e6",
  55509. "uc_greedy": "1f1ea-1f1e6",
  55510. "shortnames": [":ea:"],
  55511. "category": "flags"
  55512. },
  55513. ":flag_ec:": {
  55514. "uc_base": "1f1ea-1f1e8",
  55515. "uc_output": "1f1ea-1f1e8",
  55516. "uc_match": "1f1ea-1f1e8",
  55517. "uc_greedy": "1f1ea-1f1e8",
  55518. "shortnames": [":ec:"],
  55519. "category": "flags"
  55520. },
  55521. ":flag_ee:": {
  55522. "uc_base": "1f1ea-1f1ea",
  55523. "uc_output": "1f1ea-1f1ea",
  55524. "uc_match": "1f1ea-1f1ea",
  55525. "uc_greedy": "1f1ea-1f1ea",
  55526. "shortnames": [":ee:"],
  55527. "category": "flags"
  55528. },
  55529. ":flag_eg:": {
  55530. "uc_base": "1f1ea-1f1ec",
  55531. "uc_output": "1f1ea-1f1ec",
  55532. "uc_match": "1f1ea-1f1ec",
  55533. "uc_greedy": "1f1ea-1f1ec",
  55534. "shortnames": [":eg:"],
  55535. "category": "flags"
  55536. },
  55537. ":flag_eh:": {
  55538. "uc_base": "1f1ea-1f1ed",
  55539. "uc_output": "1f1ea-1f1ed",
  55540. "uc_match": "1f1ea-1f1ed",
  55541. "uc_greedy": "1f1ea-1f1ed",
  55542. "shortnames": [":eh:"],
  55543. "category": "flags"
  55544. },
  55545. ":flag_er:": {
  55546. "uc_base": "1f1ea-1f1f7",
  55547. "uc_output": "1f1ea-1f1f7",
  55548. "uc_match": "1f1ea-1f1f7",
  55549. "uc_greedy": "1f1ea-1f1f7",
  55550. "shortnames": [":er:"],
  55551. "category": "flags"
  55552. },
  55553. ":flag_es:": {
  55554. "uc_base": "1f1ea-1f1f8",
  55555. "uc_output": "1f1ea-1f1f8",
  55556. "uc_match": "1f1ea-1f1f8",
  55557. "uc_greedy": "1f1ea-1f1f8",
  55558. "shortnames": [":es:"],
  55559. "category": "flags"
  55560. },
  55561. ":flag_et:": {
  55562. "uc_base": "1f1ea-1f1f9",
  55563. "uc_output": "1f1ea-1f1f9",
  55564. "uc_match": "1f1ea-1f1f9",
  55565. "uc_greedy": "1f1ea-1f1f9",
  55566. "shortnames": [":et:"],
  55567. "category": "flags"
  55568. },
  55569. ":flag_eu:": {
  55570. "uc_base": "1f1ea-1f1fa",
  55571. "uc_output": "1f1ea-1f1fa",
  55572. "uc_match": "1f1ea-1f1fa",
  55573. "uc_greedy": "1f1ea-1f1fa",
  55574. "shortnames": [":eu:"],
  55575. "category": "flags"
  55576. },
  55577. ":flag_fi:": {
  55578. "uc_base": "1f1eb-1f1ee",
  55579. "uc_output": "1f1eb-1f1ee",
  55580. "uc_match": "1f1eb-1f1ee",
  55581. "uc_greedy": "1f1eb-1f1ee",
  55582. "shortnames": [":fi:"],
  55583. "category": "flags"
  55584. },
  55585. ":flag_fj:": {
  55586. "uc_base": "1f1eb-1f1ef",
  55587. "uc_output": "1f1eb-1f1ef",
  55588. "uc_match": "1f1eb-1f1ef",
  55589. "uc_greedy": "1f1eb-1f1ef",
  55590. "shortnames": [":fj:"],
  55591. "category": "flags"
  55592. },
  55593. ":flag_fk:": {
  55594. "uc_base": "1f1eb-1f1f0",
  55595. "uc_output": "1f1eb-1f1f0",
  55596. "uc_match": "1f1eb-1f1f0",
  55597. "uc_greedy": "1f1eb-1f1f0",
  55598. "shortnames": [":fk:"],
  55599. "category": "flags"
  55600. },
  55601. ":flag_fm:": {
  55602. "uc_base": "1f1eb-1f1f2",
  55603. "uc_output": "1f1eb-1f1f2",
  55604. "uc_match": "1f1eb-1f1f2",
  55605. "uc_greedy": "1f1eb-1f1f2",
  55606. "shortnames": [":fm:"],
  55607. "category": "flags"
  55608. },
  55609. ":flag_fo:": {
  55610. "uc_base": "1f1eb-1f1f4",
  55611. "uc_output": "1f1eb-1f1f4",
  55612. "uc_match": "1f1eb-1f1f4",
  55613. "uc_greedy": "1f1eb-1f1f4",
  55614. "shortnames": [":fo:"],
  55615. "category": "flags"
  55616. },
  55617. ":flag_fr:": {
  55618. "uc_base": "1f1eb-1f1f7",
  55619. "uc_output": "1f1eb-1f1f7",
  55620. "uc_match": "1f1eb-1f1f7",
  55621. "uc_greedy": "1f1eb-1f1f7",
  55622. "shortnames": [":fr:"],
  55623. "category": "flags"
  55624. },
  55625. ":flag_ga:": {
  55626. "uc_base": "1f1ec-1f1e6",
  55627. "uc_output": "1f1ec-1f1e6",
  55628. "uc_match": "1f1ec-1f1e6",
  55629. "uc_greedy": "1f1ec-1f1e6",
  55630. "shortnames": [":ga:"],
  55631. "category": "flags"
  55632. },
  55633. ":flag_gb:": {
  55634. "uc_base": "1f1ec-1f1e7",
  55635. "uc_output": "1f1ec-1f1e7",
  55636. "uc_match": "1f1ec-1f1e7",
  55637. "uc_greedy": "1f1ec-1f1e7",
  55638. "shortnames": [":gb:"],
  55639. "category": "flags"
  55640. },
  55641. ":flag_gd:": {
  55642. "uc_base": "1f1ec-1f1e9",
  55643. "uc_output": "1f1ec-1f1e9",
  55644. "uc_match": "1f1ec-1f1e9",
  55645. "uc_greedy": "1f1ec-1f1e9",
  55646. "shortnames": [":gd:"],
  55647. "category": "flags"
  55648. },
  55649. ":flag_ge:": {
  55650. "uc_base": "1f1ec-1f1ea",
  55651. "uc_output": "1f1ec-1f1ea",
  55652. "uc_match": "1f1ec-1f1ea",
  55653. "uc_greedy": "1f1ec-1f1ea",
  55654. "shortnames": [":ge:"],
  55655. "category": "flags"
  55656. },
  55657. ":flag_gf:": {
  55658. "uc_base": "1f1ec-1f1eb",
  55659. "uc_output": "1f1ec-1f1eb",
  55660. "uc_match": "1f1ec-1f1eb",
  55661. "uc_greedy": "1f1ec-1f1eb",
  55662. "shortnames": [":gf:"],
  55663. "category": "flags"
  55664. },
  55665. ":flag_gg:": {
  55666. "uc_base": "1f1ec-1f1ec",
  55667. "uc_output": "1f1ec-1f1ec",
  55668. "uc_match": "1f1ec-1f1ec",
  55669. "uc_greedy": "1f1ec-1f1ec",
  55670. "shortnames": [":gg:"],
  55671. "category": "flags"
  55672. },
  55673. ":flag_gh:": {
  55674. "uc_base": "1f1ec-1f1ed",
  55675. "uc_output": "1f1ec-1f1ed",
  55676. "uc_match": "1f1ec-1f1ed",
  55677. "uc_greedy": "1f1ec-1f1ed",
  55678. "shortnames": [":gh:"],
  55679. "category": "flags"
  55680. },
  55681. ":flag_gi:": {
  55682. "uc_base": "1f1ec-1f1ee",
  55683. "uc_output": "1f1ec-1f1ee",
  55684. "uc_match": "1f1ec-1f1ee",
  55685. "uc_greedy": "1f1ec-1f1ee",
  55686. "shortnames": [":gi:"],
  55687. "category": "flags"
  55688. },
  55689. ":flag_gl:": {
  55690. "uc_base": "1f1ec-1f1f1",
  55691. "uc_output": "1f1ec-1f1f1",
  55692. "uc_match": "1f1ec-1f1f1",
  55693. "uc_greedy": "1f1ec-1f1f1",
  55694. "shortnames": [":gl:"],
  55695. "category": "flags"
  55696. },
  55697. ":flag_gm:": {
  55698. "uc_base": "1f1ec-1f1f2",
  55699. "uc_output": "1f1ec-1f1f2",
  55700. "uc_match": "1f1ec-1f1f2",
  55701. "uc_greedy": "1f1ec-1f1f2",
  55702. "shortnames": [":gm:"],
  55703. "category": "flags"
  55704. },
  55705. ":flag_gn:": {
  55706. "uc_base": "1f1ec-1f1f3",
  55707. "uc_output": "1f1ec-1f1f3",
  55708. "uc_match": "1f1ec-1f1f3",
  55709. "uc_greedy": "1f1ec-1f1f3",
  55710. "shortnames": [":gn:"],
  55711. "category": "flags"
  55712. },
  55713. ":flag_gp:": {
  55714. "uc_base": "1f1ec-1f1f5",
  55715. "uc_output": "1f1ec-1f1f5",
  55716. "uc_match": "1f1ec-1f1f5",
  55717. "uc_greedy": "1f1ec-1f1f5",
  55718. "shortnames": [":gp:"],
  55719. "category": "flags"
  55720. },
  55721. ":flag_gq:": {
  55722. "uc_base": "1f1ec-1f1f6",
  55723. "uc_output": "1f1ec-1f1f6",
  55724. "uc_match": "1f1ec-1f1f6",
  55725. "uc_greedy": "1f1ec-1f1f6",
  55726. "shortnames": [":gq:"],
  55727. "category": "flags"
  55728. },
  55729. ":flag_gr:": {
  55730. "uc_base": "1f1ec-1f1f7",
  55731. "uc_output": "1f1ec-1f1f7",
  55732. "uc_match": "1f1ec-1f1f7",
  55733. "uc_greedy": "1f1ec-1f1f7",
  55734. "shortnames": [":gr:"],
  55735. "category": "flags"
  55736. },
  55737. ":flag_gs:": {
  55738. "uc_base": "1f1ec-1f1f8",
  55739. "uc_output": "1f1ec-1f1f8",
  55740. "uc_match": "1f1ec-1f1f8",
  55741. "uc_greedy": "1f1ec-1f1f8",
  55742. "shortnames": [":gs:"],
  55743. "category": "flags"
  55744. },
  55745. ":flag_gt:": {
  55746. "uc_base": "1f1ec-1f1f9",
  55747. "uc_output": "1f1ec-1f1f9",
  55748. "uc_match": "1f1ec-1f1f9",
  55749. "uc_greedy": "1f1ec-1f1f9",
  55750. "shortnames": [":gt:"],
  55751. "category": "flags"
  55752. },
  55753. ":flag_gu:": {
  55754. "uc_base": "1f1ec-1f1fa",
  55755. "uc_output": "1f1ec-1f1fa",
  55756. "uc_match": "1f1ec-1f1fa",
  55757. "uc_greedy": "1f1ec-1f1fa",
  55758. "shortnames": [":gu:"],
  55759. "category": "flags"
  55760. },
  55761. ":flag_gw:": {
  55762. "uc_base": "1f1ec-1f1fc",
  55763. "uc_output": "1f1ec-1f1fc",
  55764. "uc_match": "1f1ec-1f1fc",
  55765. "uc_greedy": "1f1ec-1f1fc",
  55766. "shortnames": [":gw:"],
  55767. "category": "flags"
  55768. },
  55769. ":flag_gy:": {
  55770. "uc_base": "1f1ec-1f1fe",
  55771. "uc_output": "1f1ec-1f1fe",
  55772. "uc_match": "1f1ec-1f1fe",
  55773. "uc_greedy": "1f1ec-1f1fe",
  55774. "shortnames": [":gy:"],
  55775. "category": "flags"
  55776. },
  55777. ":flag_hk:": {
  55778. "uc_base": "1f1ed-1f1f0",
  55779. "uc_output": "1f1ed-1f1f0",
  55780. "uc_match": "1f1ed-1f1f0",
  55781. "uc_greedy": "1f1ed-1f1f0",
  55782. "shortnames": [":hk:"],
  55783. "category": "flags"
  55784. },
  55785. ":flag_hm:": {
  55786. "uc_base": "1f1ed-1f1f2",
  55787. "uc_output": "1f1ed-1f1f2",
  55788. "uc_match": "1f1ed-1f1f2",
  55789. "uc_greedy": "1f1ed-1f1f2",
  55790. "shortnames": [":hm:"],
  55791. "category": "flags"
  55792. },
  55793. ":flag_hn:": {
  55794. "uc_base": "1f1ed-1f1f3",
  55795. "uc_output": "1f1ed-1f1f3",
  55796. "uc_match": "1f1ed-1f1f3",
  55797. "uc_greedy": "1f1ed-1f1f3",
  55798. "shortnames": [":hn:"],
  55799. "category": "flags"
  55800. },
  55801. ":flag_hr:": {
  55802. "uc_base": "1f1ed-1f1f7",
  55803. "uc_output": "1f1ed-1f1f7",
  55804. "uc_match": "1f1ed-1f1f7",
  55805. "uc_greedy": "1f1ed-1f1f7",
  55806. "shortnames": [":hr:"],
  55807. "category": "flags"
  55808. },
  55809. ":flag_ht:": {
  55810. "uc_base": "1f1ed-1f1f9",
  55811. "uc_output": "1f1ed-1f1f9",
  55812. "uc_match": "1f1ed-1f1f9",
  55813. "uc_greedy": "1f1ed-1f1f9",
  55814. "shortnames": [":ht:"],
  55815. "category": "flags"
  55816. },
  55817. ":flag_hu:": {
  55818. "uc_base": "1f1ed-1f1fa",
  55819. "uc_output": "1f1ed-1f1fa",
  55820. "uc_match": "1f1ed-1f1fa",
  55821. "uc_greedy": "1f1ed-1f1fa",
  55822. "shortnames": [":hu:"],
  55823. "category": "flags"
  55824. },
  55825. ":flag_ic:": {
  55826. "uc_base": "1f1ee-1f1e8",
  55827. "uc_output": "1f1ee-1f1e8",
  55828. "uc_match": "1f1ee-1f1e8",
  55829. "uc_greedy": "1f1ee-1f1e8",
  55830. "shortnames": [":ic:"],
  55831. "category": "flags"
  55832. },
  55833. ":flag_id:": {
  55834. "uc_base": "1f1ee-1f1e9",
  55835. "uc_output": "1f1ee-1f1e9",
  55836. "uc_match": "1f1ee-1f1e9",
  55837. "uc_greedy": "1f1ee-1f1e9",
  55838. "shortnames": [":indonesia:"],
  55839. "category": "flags"
  55840. },
  55841. ":flag_ie:": {
  55842. "uc_base": "1f1ee-1f1ea",
  55843. "uc_output": "1f1ee-1f1ea",
  55844. "uc_match": "1f1ee-1f1ea",
  55845. "uc_greedy": "1f1ee-1f1ea",
  55846. "shortnames": [":ie:"],
  55847. "category": "flags"
  55848. },
  55849. ":flag_il:": {
  55850. "uc_base": "1f1ee-1f1f1",
  55851. "uc_output": "1f1ee-1f1f1",
  55852. "uc_match": "1f1ee-1f1f1",
  55853. "uc_greedy": "1f1ee-1f1f1",
  55854. "shortnames": [":il:"],
  55855. "category": "flags"
  55856. },
  55857. ":flag_im:": {
  55858. "uc_base": "1f1ee-1f1f2",
  55859. "uc_output": "1f1ee-1f1f2",
  55860. "uc_match": "1f1ee-1f1f2",
  55861. "uc_greedy": "1f1ee-1f1f2",
  55862. "shortnames": [":im:"],
  55863. "category": "flags"
  55864. },
  55865. ":flag_in:": {
  55866. "uc_base": "1f1ee-1f1f3",
  55867. "uc_output": "1f1ee-1f1f3",
  55868. "uc_match": "1f1ee-1f1f3",
  55869. "uc_greedy": "1f1ee-1f1f3",
  55870. "shortnames": [":in:"],
  55871. "category": "flags"
  55872. },
  55873. ":flag_io:": {
  55874. "uc_base": "1f1ee-1f1f4",
  55875. "uc_output": "1f1ee-1f1f4",
  55876. "uc_match": "1f1ee-1f1f4",
  55877. "uc_greedy": "1f1ee-1f1f4",
  55878. "shortnames": [":io:"],
  55879. "category": "flags"
  55880. },
  55881. ":flag_iq:": {
  55882. "uc_base": "1f1ee-1f1f6",
  55883. "uc_output": "1f1ee-1f1f6",
  55884. "uc_match": "1f1ee-1f1f6",
  55885. "uc_greedy": "1f1ee-1f1f6",
  55886. "shortnames": [":iq:"],
  55887. "category": "flags"
  55888. },
  55889. ":flag_ir:": {
  55890. "uc_base": "1f1ee-1f1f7",
  55891. "uc_output": "1f1ee-1f1f7",
  55892. "uc_match": "1f1ee-1f1f7",
  55893. "uc_greedy": "1f1ee-1f1f7",
  55894. "shortnames": [":ir:"],
  55895. "category": "flags"
  55896. },
  55897. ":flag_is:": {
  55898. "uc_base": "1f1ee-1f1f8",
  55899. "uc_output": "1f1ee-1f1f8",
  55900. "uc_match": "1f1ee-1f1f8",
  55901. "uc_greedy": "1f1ee-1f1f8",
  55902. "shortnames": [":is:"],
  55903. "category": "flags"
  55904. },
  55905. ":flag_it:": {
  55906. "uc_base": "1f1ee-1f1f9",
  55907. "uc_output": "1f1ee-1f1f9",
  55908. "uc_match": "1f1ee-1f1f9",
  55909. "uc_greedy": "1f1ee-1f1f9",
  55910. "shortnames": [":it:"],
  55911. "category": "flags"
  55912. },
  55913. ":flag_je:": {
  55914. "uc_base": "1f1ef-1f1ea",
  55915. "uc_output": "1f1ef-1f1ea",
  55916. "uc_match": "1f1ef-1f1ea",
  55917. "uc_greedy": "1f1ef-1f1ea",
  55918. "shortnames": [":je:"],
  55919. "category": "flags"
  55920. },
  55921. ":flag_jm:": {
  55922. "uc_base": "1f1ef-1f1f2",
  55923. "uc_output": "1f1ef-1f1f2",
  55924. "uc_match": "1f1ef-1f1f2",
  55925. "uc_greedy": "1f1ef-1f1f2",
  55926. "shortnames": [":jm:"],
  55927. "category": "flags"
  55928. },
  55929. ":flag_jo:": {
  55930. "uc_base": "1f1ef-1f1f4",
  55931. "uc_output": "1f1ef-1f1f4",
  55932. "uc_match": "1f1ef-1f1f4",
  55933. "uc_greedy": "1f1ef-1f1f4",
  55934. "shortnames": [":jo:"],
  55935. "category": "flags"
  55936. },
  55937. ":flag_jp:": {
  55938. "uc_base": "1f1ef-1f1f5",
  55939. "uc_output": "1f1ef-1f1f5",
  55940. "uc_match": "1f1ef-1f1f5",
  55941. "uc_greedy": "1f1ef-1f1f5",
  55942. "shortnames": [":jp:"],
  55943. "category": "flags"
  55944. },
  55945. ":flag_ke:": {
  55946. "uc_base": "1f1f0-1f1ea",
  55947. "uc_output": "1f1f0-1f1ea",
  55948. "uc_match": "1f1f0-1f1ea",
  55949. "uc_greedy": "1f1f0-1f1ea",
  55950. "shortnames": [":ke:"],
  55951. "category": "flags"
  55952. },
  55953. ":flag_kg:": {
  55954. "uc_base": "1f1f0-1f1ec",
  55955. "uc_output": "1f1f0-1f1ec",
  55956. "uc_match": "1f1f0-1f1ec",
  55957. "uc_greedy": "1f1f0-1f1ec",
  55958. "shortnames": [":kg:"],
  55959. "category": "flags"
  55960. },
  55961. ":flag_kh:": {
  55962. "uc_base": "1f1f0-1f1ed",
  55963. "uc_output": "1f1f0-1f1ed",
  55964. "uc_match": "1f1f0-1f1ed",
  55965. "uc_greedy": "1f1f0-1f1ed",
  55966. "shortnames": [":kh:"],
  55967. "category": "flags"
  55968. },
  55969. ":flag_ki:": {
  55970. "uc_base": "1f1f0-1f1ee",
  55971. "uc_output": "1f1f0-1f1ee",
  55972. "uc_match": "1f1f0-1f1ee",
  55973. "uc_greedy": "1f1f0-1f1ee",
  55974. "shortnames": [":ki:"],
  55975. "category": "flags"
  55976. },
  55977. ":flag_km:": {
  55978. "uc_base": "1f1f0-1f1f2",
  55979. "uc_output": "1f1f0-1f1f2",
  55980. "uc_match": "1f1f0-1f1f2",
  55981. "uc_greedy": "1f1f0-1f1f2",
  55982. "shortnames": [":km:"],
  55983. "category": "flags"
  55984. },
  55985. ":flag_kn:": {
  55986. "uc_base": "1f1f0-1f1f3",
  55987. "uc_output": "1f1f0-1f1f3",
  55988. "uc_match": "1f1f0-1f1f3",
  55989. "uc_greedy": "1f1f0-1f1f3",
  55990. "shortnames": [":kn:"],
  55991. "category": "flags"
  55992. },
  55993. ":flag_kp:": {
  55994. "uc_base": "1f1f0-1f1f5",
  55995. "uc_output": "1f1f0-1f1f5",
  55996. "uc_match": "1f1f0-1f1f5",
  55997. "uc_greedy": "1f1f0-1f1f5",
  55998. "shortnames": [":kp:"],
  55999. "category": "flags"
  56000. },
  56001. ":flag_kr:": {
  56002. "uc_base": "1f1f0-1f1f7",
  56003. "uc_output": "1f1f0-1f1f7",
  56004. "uc_match": "1f1f0-1f1f7",
  56005. "uc_greedy": "1f1f0-1f1f7",
  56006. "shortnames": [":kr:"],
  56007. "category": "flags"
  56008. },
  56009. ":flag_kw:": {
  56010. "uc_base": "1f1f0-1f1fc",
  56011. "uc_output": "1f1f0-1f1fc",
  56012. "uc_match": "1f1f0-1f1fc",
  56013. "uc_greedy": "1f1f0-1f1fc",
  56014. "shortnames": [":kw:"],
  56015. "category": "flags"
  56016. },
  56017. ":flag_ky:": {
  56018. "uc_base": "1f1f0-1f1fe",
  56019. "uc_output": "1f1f0-1f1fe",
  56020. "uc_match": "1f1f0-1f1fe",
  56021. "uc_greedy": "1f1f0-1f1fe",
  56022. "shortnames": [":ky:"],
  56023. "category": "flags"
  56024. },
  56025. ":flag_kz:": {
  56026. "uc_base": "1f1f0-1f1ff",
  56027. "uc_output": "1f1f0-1f1ff",
  56028. "uc_match": "1f1f0-1f1ff",
  56029. "uc_greedy": "1f1f0-1f1ff",
  56030. "shortnames": [":kz:"],
  56031. "category": "flags"
  56032. },
  56033. ":flag_la:": {
  56034. "uc_base": "1f1f1-1f1e6",
  56035. "uc_output": "1f1f1-1f1e6",
  56036. "uc_match": "1f1f1-1f1e6",
  56037. "uc_greedy": "1f1f1-1f1e6",
  56038. "shortnames": [":la:"],
  56039. "category": "flags"
  56040. },
  56041. ":flag_lb:": {
  56042. "uc_base": "1f1f1-1f1e7",
  56043. "uc_output": "1f1f1-1f1e7",
  56044. "uc_match": "1f1f1-1f1e7",
  56045. "uc_greedy": "1f1f1-1f1e7",
  56046. "shortnames": [":lb:"],
  56047. "category": "flags"
  56048. },
  56049. ":flag_lc:": {
  56050. "uc_base": "1f1f1-1f1e8",
  56051. "uc_output": "1f1f1-1f1e8",
  56052. "uc_match": "1f1f1-1f1e8",
  56053. "uc_greedy": "1f1f1-1f1e8",
  56054. "shortnames": [":lc:"],
  56055. "category": "flags"
  56056. },
  56057. ":flag_li:": {
  56058. "uc_base": "1f1f1-1f1ee",
  56059. "uc_output": "1f1f1-1f1ee",
  56060. "uc_match": "1f1f1-1f1ee",
  56061. "uc_greedy": "1f1f1-1f1ee",
  56062. "shortnames": [":li:"],
  56063. "category": "flags"
  56064. },
  56065. ":flag_lk:": {
  56066. "uc_base": "1f1f1-1f1f0",
  56067. "uc_output": "1f1f1-1f1f0",
  56068. "uc_match": "1f1f1-1f1f0",
  56069. "uc_greedy": "1f1f1-1f1f0",
  56070. "shortnames": [":lk:"],
  56071. "category": "flags"
  56072. },
  56073. ":flag_lr:": {
  56074. "uc_base": "1f1f1-1f1f7",
  56075. "uc_output": "1f1f1-1f1f7",
  56076. "uc_match": "1f1f1-1f1f7",
  56077. "uc_greedy": "1f1f1-1f1f7",
  56078. "shortnames": [":lr:"],
  56079. "category": "flags"
  56080. },
  56081. ":flag_ls:": {
  56082. "uc_base": "1f1f1-1f1f8",
  56083. "uc_output": "1f1f1-1f1f8",
  56084. "uc_match": "1f1f1-1f1f8",
  56085. "uc_greedy": "1f1f1-1f1f8",
  56086. "shortnames": [":ls:"],
  56087. "category": "flags"
  56088. },
  56089. ":flag_lt:": {
  56090. "uc_base": "1f1f1-1f1f9",
  56091. "uc_output": "1f1f1-1f1f9",
  56092. "uc_match": "1f1f1-1f1f9",
  56093. "uc_greedy": "1f1f1-1f1f9",
  56094. "shortnames": [":lt:"],
  56095. "category": "flags"
  56096. },
  56097. ":flag_lu:": {
  56098. "uc_base": "1f1f1-1f1fa",
  56099. "uc_output": "1f1f1-1f1fa",
  56100. "uc_match": "1f1f1-1f1fa",
  56101. "uc_greedy": "1f1f1-1f1fa",
  56102. "shortnames": [":lu:"],
  56103. "category": "flags"
  56104. },
  56105. ":flag_lv:": {
  56106. "uc_base": "1f1f1-1f1fb",
  56107. "uc_output": "1f1f1-1f1fb",
  56108. "uc_match": "1f1f1-1f1fb",
  56109. "uc_greedy": "1f1f1-1f1fb",
  56110. "shortnames": [":lv:"],
  56111. "category": "flags"
  56112. },
  56113. ":flag_ly:": {
  56114. "uc_base": "1f1f1-1f1fe",
  56115. "uc_output": "1f1f1-1f1fe",
  56116. "uc_match": "1f1f1-1f1fe",
  56117. "uc_greedy": "1f1f1-1f1fe",
  56118. "shortnames": [":ly:"],
  56119. "category": "flags"
  56120. },
  56121. ":flag_ma:": {
  56122. "uc_base": "1f1f2-1f1e6",
  56123. "uc_output": "1f1f2-1f1e6",
  56124. "uc_match": "1f1f2-1f1e6",
  56125. "uc_greedy": "1f1f2-1f1e6",
  56126. "shortnames": [":ma:"],
  56127. "category": "flags"
  56128. },
  56129. ":flag_mc:": {
  56130. "uc_base": "1f1f2-1f1e8",
  56131. "uc_output": "1f1f2-1f1e8",
  56132. "uc_match": "1f1f2-1f1e8",
  56133. "uc_greedy": "1f1f2-1f1e8",
  56134. "shortnames": [":mc:"],
  56135. "category": "flags"
  56136. },
  56137. ":flag_md:": {
  56138. "uc_base": "1f1f2-1f1e9",
  56139. "uc_output": "1f1f2-1f1e9",
  56140. "uc_match": "1f1f2-1f1e9",
  56141. "uc_greedy": "1f1f2-1f1e9",
  56142. "shortnames": [":md:"],
  56143. "category": "flags"
  56144. },
  56145. ":flag_me:": {
  56146. "uc_base": "1f1f2-1f1ea",
  56147. "uc_output": "1f1f2-1f1ea",
  56148. "uc_match": "1f1f2-1f1ea",
  56149. "uc_greedy": "1f1f2-1f1ea",
  56150. "shortnames": [":me:"],
  56151. "category": "flags"
  56152. },
  56153. ":flag_mf:": {
  56154. "uc_base": "1f1f2-1f1eb",
  56155. "uc_output": "1f1f2-1f1eb",
  56156. "uc_match": "1f1f2-1f1eb",
  56157. "uc_greedy": "1f1f2-1f1eb",
  56158. "shortnames": [":mf:"],
  56159. "category": "flags"
  56160. },
  56161. ":flag_mg:": {
  56162. "uc_base": "1f1f2-1f1ec",
  56163. "uc_output": "1f1f2-1f1ec",
  56164. "uc_match": "1f1f2-1f1ec",
  56165. "uc_greedy": "1f1f2-1f1ec",
  56166. "shortnames": [":mg:"],
  56167. "category": "flags"
  56168. },
  56169. ":flag_mh:": {
  56170. "uc_base": "1f1f2-1f1ed",
  56171. "uc_output": "1f1f2-1f1ed",
  56172. "uc_match": "1f1f2-1f1ed",
  56173. "uc_greedy": "1f1f2-1f1ed",
  56174. "shortnames": [":mh:"],
  56175. "category": "flags"
  56176. },
  56177. ":flag_mk:": {
  56178. "uc_base": "1f1f2-1f1f0",
  56179. "uc_output": "1f1f2-1f1f0",
  56180. "uc_match": "1f1f2-1f1f0",
  56181. "uc_greedy": "1f1f2-1f1f0",
  56182. "shortnames": [":mk:"],
  56183. "category": "flags"
  56184. },
  56185. ":flag_ml:": {
  56186. "uc_base": "1f1f2-1f1f1",
  56187. "uc_output": "1f1f2-1f1f1",
  56188. "uc_match": "1f1f2-1f1f1",
  56189. "uc_greedy": "1f1f2-1f1f1",
  56190. "shortnames": [":ml:"],
  56191. "category": "flags"
  56192. },
  56193. ":flag_mm:": {
  56194. "uc_base": "1f1f2-1f1f2",
  56195. "uc_output": "1f1f2-1f1f2",
  56196. "uc_match": "1f1f2-1f1f2",
  56197. "uc_greedy": "1f1f2-1f1f2",
  56198. "shortnames": [":mm:"],
  56199. "category": "flags"
  56200. },
  56201. ":flag_mn:": {
  56202. "uc_base": "1f1f2-1f1f3",
  56203. "uc_output": "1f1f2-1f1f3",
  56204. "uc_match": "1f1f2-1f1f3",
  56205. "uc_greedy": "1f1f2-1f1f3",
  56206. "shortnames": [":mn:"],
  56207. "category": "flags"
  56208. },
  56209. ":flag_mo:": {
  56210. "uc_base": "1f1f2-1f1f4",
  56211. "uc_output": "1f1f2-1f1f4",
  56212. "uc_match": "1f1f2-1f1f4",
  56213. "uc_greedy": "1f1f2-1f1f4",
  56214. "shortnames": [":mo:"],
  56215. "category": "flags"
  56216. },
  56217. ":flag_mp:": {
  56218. "uc_base": "1f1f2-1f1f5",
  56219. "uc_output": "1f1f2-1f1f5",
  56220. "uc_match": "1f1f2-1f1f5",
  56221. "uc_greedy": "1f1f2-1f1f5",
  56222. "shortnames": [":mp:"],
  56223. "category": "flags"
  56224. },
  56225. ":flag_mq:": {
  56226. "uc_base": "1f1f2-1f1f6",
  56227. "uc_output": "1f1f2-1f1f6",
  56228. "uc_match": "1f1f2-1f1f6",
  56229. "uc_greedy": "1f1f2-1f1f6",
  56230. "shortnames": [":mq:"],
  56231. "category": "flags"
  56232. },
  56233. ":flag_mr:": {
  56234. "uc_base": "1f1f2-1f1f7",
  56235. "uc_output": "1f1f2-1f1f7",
  56236. "uc_match": "1f1f2-1f1f7",
  56237. "uc_greedy": "1f1f2-1f1f7",
  56238. "shortnames": [":mr:"],
  56239. "category": "flags"
  56240. },
  56241. ":flag_ms:": {
  56242. "uc_base": "1f1f2-1f1f8",
  56243. "uc_output": "1f1f2-1f1f8",
  56244. "uc_match": "1f1f2-1f1f8",
  56245. "uc_greedy": "1f1f2-1f1f8",
  56246. "shortnames": [":ms:"],
  56247. "category": "flags"
  56248. },
  56249. ":flag_mt:": {
  56250. "uc_base": "1f1f2-1f1f9",
  56251. "uc_output": "1f1f2-1f1f9",
  56252. "uc_match": "1f1f2-1f1f9",
  56253. "uc_greedy": "1f1f2-1f1f9",
  56254. "shortnames": [":mt:"],
  56255. "category": "flags"
  56256. },
  56257. ":flag_mu:": {
  56258. "uc_base": "1f1f2-1f1fa",
  56259. "uc_output": "1f1f2-1f1fa",
  56260. "uc_match": "1f1f2-1f1fa",
  56261. "uc_greedy": "1f1f2-1f1fa",
  56262. "shortnames": [":mu:"],
  56263. "category": "flags"
  56264. },
  56265. ":flag_mv:": {
  56266. "uc_base": "1f1f2-1f1fb",
  56267. "uc_output": "1f1f2-1f1fb",
  56268. "uc_match": "1f1f2-1f1fb",
  56269. "uc_greedy": "1f1f2-1f1fb",
  56270. "shortnames": [":mv:"],
  56271. "category": "flags"
  56272. },
  56273. ":flag_mw:": {
  56274. "uc_base": "1f1f2-1f1fc",
  56275. "uc_output": "1f1f2-1f1fc",
  56276. "uc_match": "1f1f2-1f1fc",
  56277. "uc_greedy": "1f1f2-1f1fc",
  56278. "shortnames": [":mw:"],
  56279. "category": "flags"
  56280. },
  56281. ":flag_mx:": {
  56282. "uc_base": "1f1f2-1f1fd",
  56283. "uc_output": "1f1f2-1f1fd",
  56284. "uc_match": "1f1f2-1f1fd",
  56285. "uc_greedy": "1f1f2-1f1fd",
  56286. "shortnames": [":mx:"],
  56287. "category": "flags"
  56288. },
  56289. ":flag_my:": {
  56290. "uc_base": "1f1f2-1f1fe",
  56291. "uc_output": "1f1f2-1f1fe",
  56292. "uc_match": "1f1f2-1f1fe",
  56293. "uc_greedy": "1f1f2-1f1fe",
  56294. "shortnames": [":my:"],
  56295. "category": "flags"
  56296. },
  56297. ":flag_mz:": {
  56298. "uc_base": "1f1f2-1f1ff",
  56299. "uc_output": "1f1f2-1f1ff",
  56300. "uc_match": "1f1f2-1f1ff",
  56301. "uc_greedy": "1f1f2-1f1ff",
  56302. "shortnames": [":mz:"],
  56303. "category": "flags"
  56304. },
  56305. ":flag_na:": {
  56306. "uc_base": "1f1f3-1f1e6",
  56307. "uc_output": "1f1f3-1f1e6",
  56308. "uc_match": "1f1f3-1f1e6",
  56309. "uc_greedy": "1f1f3-1f1e6",
  56310. "shortnames": [":na:"],
  56311. "category": "flags"
  56312. },
  56313. ":flag_nc:": {
  56314. "uc_base": "1f1f3-1f1e8",
  56315. "uc_output": "1f1f3-1f1e8",
  56316. "uc_match": "1f1f3-1f1e8",
  56317. "uc_greedy": "1f1f3-1f1e8",
  56318. "shortnames": [":nc:"],
  56319. "category": "flags"
  56320. },
  56321. ":flag_ne:": {
  56322. "uc_base": "1f1f3-1f1ea",
  56323. "uc_output": "1f1f3-1f1ea",
  56324. "uc_match": "1f1f3-1f1ea",
  56325. "uc_greedy": "1f1f3-1f1ea",
  56326. "shortnames": [":ne:"],
  56327. "category": "flags"
  56328. },
  56329. ":flag_nf:": {
  56330. "uc_base": "1f1f3-1f1eb",
  56331. "uc_output": "1f1f3-1f1eb",
  56332. "uc_match": "1f1f3-1f1eb",
  56333. "uc_greedy": "1f1f3-1f1eb",
  56334. "shortnames": [":nf:"],
  56335. "category": "flags"
  56336. },
  56337. ":flag_ng:": {
  56338. "uc_base": "1f1f3-1f1ec",
  56339. "uc_output": "1f1f3-1f1ec",
  56340. "uc_match": "1f1f3-1f1ec",
  56341. "uc_greedy": "1f1f3-1f1ec",
  56342. "shortnames": [":nigeria:"],
  56343. "category": "flags"
  56344. },
  56345. ":flag_ni:": {
  56346. "uc_base": "1f1f3-1f1ee",
  56347. "uc_output": "1f1f3-1f1ee",
  56348. "uc_match": "1f1f3-1f1ee",
  56349. "uc_greedy": "1f1f3-1f1ee",
  56350. "shortnames": [":ni:"],
  56351. "category": "flags"
  56352. },
  56353. ":flag_nl:": {
  56354. "uc_base": "1f1f3-1f1f1",
  56355. "uc_output": "1f1f3-1f1f1",
  56356. "uc_match": "1f1f3-1f1f1",
  56357. "uc_greedy": "1f1f3-1f1f1",
  56358. "shortnames": [":nl:"],
  56359. "category": "flags"
  56360. },
  56361. ":flag_no:": {
  56362. "uc_base": "1f1f3-1f1f4",
  56363. "uc_output": "1f1f3-1f1f4",
  56364. "uc_match": "1f1f3-1f1f4",
  56365. "uc_greedy": "1f1f3-1f1f4",
  56366. "shortnames": [":no:"],
  56367. "category": "flags"
  56368. },
  56369. ":flag_np:": {
  56370. "uc_base": "1f1f3-1f1f5",
  56371. "uc_output": "1f1f3-1f1f5",
  56372. "uc_match": "1f1f3-1f1f5",
  56373. "uc_greedy": "1f1f3-1f1f5",
  56374. "shortnames": [":np:"],
  56375. "category": "flags"
  56376. },
  56377. ":flag_nr:": {
  56378. "uc_base": "1f1f3-1f1f7",
  56379. "uc_output": "1f1f3-1f1f7",
  56380. "uc_match": "1f1f3-1f1f7",
  56381. "uc_greedy": "1f1f3-1f1f7",
  56382. "shortnames": [":nr:"],
  56383. "category": "flags"
  56384. },
  56385. ":flag_nu:": {
  56386. "uc_base": "1f1f3-1f1fa",
  56387. "uc_output": "1f1f3-1f1fa",
  56388. "uc_match": "1f1f3-1f1fa",
  56389. "uc_greedy": "1f1f3-1f1fa",
  56390. "shortnames": [":nu:"],
  56391. "category": "flags"
  56392. },
  56393. ":flag_nz:": {
  56394. "uc_base": "1f1f3-1f1ff",
  56395. "uc_output": "1f1f3-1f1ff",
  56396. "uc_match": "1f1f3-1f1ff",
  56397. "uc_greedy": "1f1f3-1f1ff",
  56398. "shortnames": [":nz:"],
  56399. "category": "flags"
  56400. },
  56401. ":flag_om:": {
  56402. "uc_base": "1f1f4-1f1f2",
  56403. "uc_output": "1f1f4-1f1f2",
  56404. "uc_match": "1f1f4-1f1f2",
  56405. "uc_greedy": "1f1f4-1f1f2",
  56406. "shortnames": [":om:"],
  56407. "category": "flags"
  56408. },
  56409. ":flag_pa:": {
  56410. "uc_base": "1f1f5-1f1e6",
  56411. "uc_output": "1f1f5-1f1e6",
  56412. "uc_match": "1f1f5-1f1e6",
  56413. "uc_greedy": "1f1f5-1f1e6",
  56414. "shortnames": [":pa:"],
  56415. "category": "flags"
  56416. },
  56417. ":flag_pe:": {
  56418. "uc_base": "1f1f5-1f1ea",
  56419. "uc_output": "1f1f5-1f1ea",
  56420. "uc_match": "1f1f5-1f1ea",
  56421. "uc_greedy": "1f1f5-1f1ea",
  56422. "shortnames": [":pe:"],
  56423. "category": "flags"
  56424. },
  56425. ":flag_pf:": {
  56426. "uc_base": "1f1f5-1f1eb",
  56427. "uc_output": "1f1f5-1f1eb",
  56428. "uc_match": "1f1f5-1f1eb",
  56429. "uc_greedy": "1f1f5-1f1eb",
  56430. "shortnames": [":pf:"],
  56431. "category": "flags"
  56432. },
  56433. ":flag_pg:": {
  56434. "uc_base": "1f1f5-1f1ec",
  56435. "uc_output": "1f1f5-1f1ec",
  56436. "uc_match": "1f1f5-1f1ec",
  56437. "uc_greedy": "1f1f5-1f1ec",
  56438. "shortnames": [":pg:"],
  56439. "category": "flags"
  56440. },
  56441. ":flag_ph:": {
  56442. "uc_base": "1f1f5-1f1ed",
  56443. "uc_output": "1f1f5-1f1ed",
  56444. "uc_match": "1f1f5-1f1ed",
  56445. "uc_greedy": "1f1f5-1f1ed",
  56446. "shortnames": [":ph:"],
  56447. "category": "flags"
  56448. },
  56449. ":flag_pk:": {
  56450. "uc_base": "1f1f5-1f1f0",
  56451. "uc_output": "1f1f5-1f1f0",
  56452. "uc_match": "1f1f5-1f1f0",
  56453. "uc_greedy": "1f1f5-1f1f0",
  56454. "shortnames": [":pk:"],
  56455. "category": "flags"
  56456. },
  56457. ":flag_pl:": {
  56458. "uc_base": "1f1f5-1f1f1",
  56459. "uc_output": "1f1f5-1f1f1",
  56460. "uc_match": "1f1f5-1f1f1",
  56461. "uc_greedy": "1f1f5-1f1f1",
  56462. "shortnames": [":pl:"],
  56463. "category": "flags"
  56464. },
  56465. ":flag_pm:": {
  56466. "uc_base": "1f1f5-1f1f2",
  56467. "uc_output": "1f1f5-1f1f2",
  56468. "uc_match": "1f1f5-1f1f2",
  56469. "uc_greedy": "1f1f5-1f1f2",
  56470. "shortnames": [":pm:"],
  56471. "category": "flags"
  56472. },
  56473. ":flag_pn:": {
  56474. "uc_base": "1f1f5-1f1f3",
  56475. "uc_output": "1f1f5-1f1f3",
  56476. "uc_match": "1f1f5-1f1f3",
  56477. "uc_greedy": "1f1f5-1f1f3",
  56478. "shortnames": [":pn:"],
  56479. "category": "flags"
  56480. },
  56481. ":flag_pr:": {
  56482. "uc_base": "1f1f5-1f1f7",
  56483. "uc_output": "1f1f5-1f1f7",
  56484. "uc_match": "1f1f5-1f1f7",
  56485. "uc_greedy": "1f1f5-1f1f7",
  56486. "shortnames": [":pr:"],
  56487. "category": "flags"
  56488. },
  56489. ":flag_ps:": {
  56490. "uc_base": "1f1f5-1f1f8",
  56491. "uc_output": "1f1f5-1f1f8",
  56492. "uc_match": "1f1f5-1f1f8",
  56493. "uc_greedy": "1f1f5-1f1f8",
  56494. "shortnames": [":ps:"],
  56495. "category": "flags"
  56496. },
  56497. ":flag_pt:": {
  56498. "uc_base": "1f1f5-1f1f9",
  56499. "uc_output": "1f1f5-1f1f9",
  56500. "uc_match": "1f1f5-1f1f9",
  56501. "uc_greedy": "1f1f5-1f1f9",
  56502. "shortnames": [":pt:"],
  56503. "category": "flags"
  56504. },
  56505. ":flag_pw:": {
  56506. "uc_base": "1f1f5-1f1fc",
  56507. "uc_output": "1f1f5-1f1fc",
  56508. "uc_match": "1f1f5-1f1fc",
  56509. "uc_greedy": "1f1f5-1f1fc",
  56510. "shortnames": [":pw:"],
  56511. "category": "flags"
  56512. },
  56513. ":flag_py:": {
  56514. "uc_base": "1f1f5-1f1fe",
  56515. "uc_output": "1f1f5-1f1fe",
  56516. "uc_match": "1f1f5-1f1fe",
  56517. "uc_greedy": "1f1f5-1f1fe",
  56518. "shortnames": [":py:"],
  56519. "category": "flags"
  56520. },
  56521. ":flag_qa:": {
  56522. "uc_base": "1f1f6-1f1e6",
  56523. "uc_output": "1f1f6-1f1e6",
  56524. "uc_match": "1f1f6-1f1e6",
  56525. "uc_greedy": "1f1f6-1f1e6",
  56526. "shortnames": [":qa:"],
  56527. "category": "flags"
  56528. },
  56529. ":flag_re:": {
  56530. "uc_base": "1f1f7-1f1ea",
  56531. "uc_output": "1f1f7-1f1ea",
  56532. "uc_match": "1f1f7-1f1ea",
  56533. "uc_greedy": "1f1f7-1f1ea",
  56534. "shortnames": [":re:"],
  56535. "category": "flags"
  56536. },
  56537. ":flag_ro:": {
  56538. "uc_base": "1f1f7-1f1f4",
  56539. "uc_output": "1f1f7-1f1f4",
  56540. "uc_match": "1f1f7-1f1f4",
  56541. "uc_greedy": "1f1f7-1f1f4",
  56542. "shortnames": [":ro:"],
  56543. "category": "flags"
  56544. },
  56545. ":flag_rs:": {
  56546. "uc_base": "1f1f7-1f1f8",
  56547. "uc_output": "1f1f7-1f1f8",
  56548. "uc_match": "1f1f7-1f1f8",
  56549. "uc_greedy": "1f1f7-1f1f8",
  56550. "shortnames": [":rs:"],
  56551. "category": "flags"
  56552. },
  56553. ":flag_ru:": {
  56554. "uc_base": "1f1f7-1f1fa",
  56555. "uc_output": "1f1f7-1f1fa",
  56556. "uc_match": "1f1f7-1f1fa",
  56557. "uc_greedy": "1f1f7-1f1fa",
  56558. "shortnames": [":ru:"],
  56559. "category": "flags"
  56560. },
  56561. ":flag_rw:": {
  56562. "uc_base": "1f1f7-1f1fc",
  56563. "uc_output": "1f1f7-1f1fc",
  56564. "uc_match": "1f1f7-1f1fc",
  56565. "uc_greedy": "1f1f7-1f1fc",
  56566. "shortnames": [":rw:"],
  56567. "category": "flags"
  56568. },
  56569. ":flag_sa:": {
  56570. "uc_base": "1f1f8-1f1e6",
  56571. "uc_output": "1f1f8-1f1e6",
  56572. "uc_match": "1f1f8-1f1e6",
  56573. "uc_greedy": "1f1f8-1f1e6",
  56574. "shortnames": [":saudiarabia:", ":saudi:"],
  56575. "category": "flags"
  56576. },
  56577. ":flag_sb:": {
  56578. "uc_base": "1f1f8-1f1e7",
  56579. "uc_output": "1f1f8-1f1e7",
  56580. "uc_match": "1f1f8-1f1e7",
  56581. "uc_greedy": "1f1f8-1f1e7",
  56582. "shortnames": [":sb:"],
  56583. "category": "flags"
  56584. },
  56585. ":flag_sc:": {
  56586. "uc_base": "1f1f8-1f1e8",
  56587. "uc_output": "1f1f8-1f1e8",
  56588. "uc_match": "1f1f8-1f1e8",
  56589. "uc_greedy": "1f1f8-1f1e8",
  56590. "shortnames": [":sc:"],
  56591. "category": "flags"
  56592. },
  56593. ":flag_sd:": {
  56594. "uc_base": "1f1f8-1f1e9",
  56595. "uc_output": "1f1f8-1f1e9",
  56596. "uc_match": "1f1f8-1f1e9",
  56597. "uc_greedy": "1f1f8-1f1e9",
  56598. "shortnames": [":sd:"],
  56599. "category": "flags"
  56600. },
  56601. ":flag_se:": {
  56602. "uc_base": "1f1f8-1f1ea",
  56603. "uc_output": "1f1f8-1f1ea",
  56604. "uc_match": "1f1f8-1f1ea",
  56605. "uc_greedy": "1f1f8-1f1ea",
  56606. "shortnames": [":se:"],
  56607. "category": "flags"
  56608. },
  56609. ":flag_sg:": {
  56610. "uc_base": "1f1f8-1f1ec",
  56611. "uc_output": "1f1f8-1f1ec",
  56612. "uc_match": "1f1f8-1f1ec",
  56613. "uc_greedy": "1f1f8-1f1ec",
  56614. "shortnames": [":sg:"],
  56615. "category": "flags"
  56616. },
  56617. ":flag_sh:": {
  56618. "uc_base": "1f1f8-1f1ed",
  56619. "uc_output": "1f1f8-1f1ed",
  56620. "uc_match": "1f1f8-1f1ed",
  56621. "uc_greedy": "1f1f8-1f1ed",
  56622. "shortnames": [":sh:"],
  56623. "category": "flags"
  56624. },
  56625. ":flag_si:": {
  56626. "uc_base": "1f1f8-1f1ee",
  56627. "uc_output": "1f1f8-1f1ee",
  56628. "uc_match": "1f1f8-1f1ee",
  56629. "uc_greedy": "1f1f8-1f1ee",
  56630. "shortnames": [":si:"],
  56631. "category": "flags"
  56632. },
  56633. ":flag_sj:": {
  56634. "uc_base": "1f1f8-1f1ef",
  56635. "uc_output": "1f1f8-1f1ef",
  56636. "uc_match": "1f1f8-1f1ef",
  56637. "uc_greedy": "1f1f8-1f1ef",
  56638. "shortnames": [":sj:"],
  56639. "category": "flags"
  56640. },
  56641. ":flag_sk:": {
  56642. "uc_base": "1f1f8-1f1f0",
  56643. "uc_output": "1f1f8-1f1f0",
  56644. "uc_match": "1f1f8-1f1f0",
  56645. "uc_greedy": "1f1f8-1f1f0",
  56646. "shortnames": [":sk:"],
  56647. "category": "flags"
  56648. },
  56649. ":flag_sl:": {
  56650. "uc_base": "1f1f8-1f1f1",
  56651. "uc_output": "1f1f8-1f1f1",
  56652. "uc_match": "1f1f8-1f1f1",
  56653. "uc_greedy": "1f1f8-1f1f1",
  56654. "shortnames": [":sl:"],
  56655. "category": "flags"
  56656. },
  56657. ":flag_sm:": {
  56658. "uc_base": "1f1f8-1f1f2",
  56659. "uc_output": "1f1f8-1f1f2",
  56660. "uc_match": "1f1f8-1f1f2",
  56661. "uc_greedy": "1f1f8-1f1f2",
  56662. "shortnames": [":sm:"],
  56663. "category": "flags"
  56664. },
  56665. ":flag_sn:": {
  56666. "uc_base": "1f1f8-1f1f3",
  56667. "uc_output": "1f1f8-1f1f3",
  56668. "uc_match": "1f1f8-1f1f3",
  56669. "uc_greedy": "1f1f8-1f1f3",
  56670. "shortnames": [":sn:"],
  56671. "category": "flags"
  56672. },
  56673. ":flag_so:": {
  56674. "uc_base": "1f1f8-1f1f4",
  56675. "uc_output": "1f1f8-1f1f4",
  56676. "uc_match": "1f1f8-1f1f4",
  56677. "uc_greedy": "1f1f8-1f1f4",
  56678. "shortnames": [":so:"],
  56679. "category": "flags"
  56680. },
  56681. ":flag_sr:": {
  56682. "uc_base": "1f1f8-1f1f7",
  56683. "uc_output": "1f1f8-1f1f7",
  56684. "uc_match": "1f1f8-1f1f7",
  56685. "uc_greedy": "1f1f8-1f1f7",
  56686. "shortnames": [":sr:"],
  56687. "category": "flags"
  56688. },
  56689. ":flag_ss:": {
  56690. "uc_base": "1f1f8-1f1f8",
  56691. "uc_output": "1f1f8-1f1f8",
  56692. "uc_match": "1f1f8-1f1f8",
  56693. "uc_greedy": "1f1f8-1f1f8",
  56694. "shortnames": [":ss:"],
  56695. "category": "flags"
  56696. },
  56697. ":flag_st:": {
  56698. "uc_base": "1f1f8-1f1f9",
  56699. "uc_output": "1f1f8-1f1f9",
  56700. "uc_match": "1f1f8-1f1f9",
  56701. "uc_greedy": "1f1f8-1f1f9",
  56702. "shortnames": [":st:"],
  56703. "category": "flags"
  56704. },
  56705. ":flag_sv:": {
  56706. "uc_base": "1f1f8-1f1fb",
  56707. "uc_output": "1f1f8-1f1fb",
  56708. "uc_match": "1f1f8-1f1fb",
  56709. "uc_greedy": "1f1f8-1f1fb",
  56710. "shortnames": [":sv:"],
  56711. "category": "flags"
  56712. },
  56713. ":flag_sx:": {
  56714. "uc_base": "1f1f8-1f1fd",
  56715. "uc_output": "1f1f8-1f1fd",
  56716. "uc_match": "1f1f8-1f1fd",
  56717. "uc_greedy": "1f1f8-1f1fd",
  56718. "shortnames": [":sx:"],
  56719. "category": "flags"
  56720. },
  56721. ":flag_sy:": {
  56722. "uc_base": "1f1f8-1f1fe",
  56723. "uc_output": "1f1f8-1f1fe",
  56724. "uc_match": "1f1f8-1f1fe",
  56725. "uc_greedy": "1f1f8-1f1fe",
  56726. "shortnames": [":sy:"],
  56727. "category": "flags"
  56728. },
  56729. ":flag_sz:": {
  56730. "uc_base": "1f1f8-1f1ff",
  56731. "uc_output": "1f1f8-1f1ff",
  56732. "uc_match": "1f1f8-1f1ff",
  56733. "uc_greedy": "1f1f8-1f1ff",
  56734. "shortnames": [":sz:"],
  56735. "category": "flags"
  56736. },
  56737. ":flag_ta:": {
  56738. "uc_base": "1f1f9-1f1e6",
  56739. "uc_output": "1f1f9-1f1e6",
  56740. "uc_match": "1f1f9-1f1e6",
  56741. "uc_greedy": "1f1f9-1f1e6",
  56742. "shortnames": [":ta:"],
  56743. "category": "flags"
  56744. },
  56745. ":flag_tc:": {
  56746. "uc_base": "1f1f9-1f1e8",
  56747. "uc_output": "1f1f9-1f1e8",
  56748. "uc_match": "1f1f9-1f1e8",
  56749. "uc_greedy": "1f1f9-1f1e8",
  56750. "shortnames": [":tc:"],
  56751. "category": "flags"
  56752. },
  56753. ":flag_td:": {
  56754. "uc_base": "1f1f9-1f1e9",
  56755. "uc_output": "1f1f9-1f1e9",
  56756. "uc_match": "1f1f9-1f1e9",
  56757. "uc_greedy": "1f1f9-1f1e9",
  56758. "shortnames": [":td:"],
  56759. "category": "flags"
  56760. },
  56761. ":flag_tf:": {
  56762. "uc_base": "1f1f9-1f1eb",
  56763. "uc_output": "1f1f9-1f1eb",
  56764. "uc_match": "1f1f9-1f1eb",
  56765. "uc_greedy": "1f1f9-1f1eb",
  56766. "shortnames": [":tf:"],
  56767. "category": "flags"
  56768. },
  56769. ":flag_tg:": {
  56770. "uc_base": "1f1f9-1f1ec",
  56771. "uc_output": "1f1f9-1f1ec",
  56772. "uc_match": "1f1f9-1f1ec",
  56773. "uc_greedy": "1f1f9-1f1ec",
  56774. "shortnames": [":tg:"],
  56775. "category": "flags"
  56776. },
  56777. ":flag_th:": {
  56778. "uc_base": "1f1f9-1f1ed",
  56779. "uc_output": "1f1f9-1f1ed",
  56780. "uc_match": "1f1f9-1f1ed",
  56781. "uc_greedy": "1f1f9-1f1ed",
  56782. "shortnames": [":th:"],
  56783. "category": "flags"
  56784. },
  56785. ":flag_tj:": {
  56786. "uc_base": "1f1f9-1f1ef",
  56787. "uc_output": "1f1f9-1f1ef",
  56788. "uc_match": "1f1f9-1f1ef",
  56789. "uc_greedy": "1f1f9-1f1ef",
  56790. "shortnames": [":tj:"],
  56791. "category": "flags"
  56792. },
  56793. ":flag_tk:": {
  56794. "uc_base": "1f1f9-1f1f0",
  56795. "uc_output": "1f1f9-1f1f0",
  56796. "uc_match": "1f1f9-1f1f0",
  56797. "uc_greedy": "1f1f9-1f1f0",
  56798. "shortnames": [":tk:"],
  56799. "category": "flags"
  56800. },
  56801. ":flag_tl:": {
  56802. "uc_base": "1f1f9-1f1f1",
  56803. "uc_output": "1f1f9-1f1f1",
  56804. "uc_match": "1f1f9-1f1f1",
  56805. "uc_greedy": "1f1f9-1f1f1",
  56806. "shortnames": [":tl:"],
  56807. "category": "flags"
  56808. },
  56809. ":flag_tm:": {
  56810. "uc_base": "1f1f9-1f1f2",
  56811. "uc_output": "1f1f9-1f1f2",
  56812. "uc_match": "1f1f9-1f1f2",
  56813. "uc_greedy": "1f1f9-1f1f2",
  56814. "shortnames": [":turkmenistan:"],
  56815. "category": "flags"
  56816. },
  56817. ":flag_tn:": {
  56818. "uc_base": "1f1f9-1f1f3",
  56819. "uc_output": "1f1f9-1f1f3",
  56820. "uc_match": "1f1f9-1f1f3",
  56821. "uc_greedy": "1f1f9-1f1f3",
  56822. "shortnames": [":tn:"],
  56823. "category": "flags"
  56824. },
  56825. ":flag_to:": {
  56826. "uc_base": "1f1f9-1f1f4",
  56827. "uc_output": "1f1f9-1f1f4",
  56828. "uc_match": "1f1f9-1f1f4",
  56829. "uc_greedy": "1f1f9-1f1f4",
  56830. "shortnames": [":to:"],
  56831. "category": "flags"
  56832. },
  56833. ":flag_tr:": {
  56834. "uc_base": "1f1f9-1f1f7",
  56835. "uc_output": "1f1f9-1f1f7",
  56836. "uc_match": "1f1f9-1f1f7",
  56837. "uc_greedy": "1f1f9-1f1f7",
  56838. "shortnames": [":tr:"],
  56839. "category": "flags"
  56840. },
  56841. ":flag_tt:": {
  56842. "uc_base": "1f1f9-1f1f9",
  56843. "uc_output": "1f1f9-1f1f9",
  56844. "uc_match": "1f1f9-1f1f9",
  56845. "uc_greedy": "1f1f9-1f1f9",
  56846. "shortnames": [":tt:"],
  56847. "category": "flags"
  56848. },
  56849. ":flag_tv:": {
  56850. "uc_base": "1f1f9-1f1fb",
  56851. "uc_output": "1f1f9-1f1fb",
  56852. "uc_match": "1f1f9-1f1fb",
  56853. "uc_greedy": "1f1f9-1f1fb",
  56854. "shortnames": [":tuvalu:"],
  56855. "category": "flags"
  56856. },
  56857. ":flag_tw:": {
  56858. "uc_base": "1f1f9-1f1fc",
  56859. "uc_output": "1f1f9-1f1fc",
  56860. "uc_match": "1f1f9-1f1fc",
  56861. "uc_greedy": "1f1f9-1f1fc",
  56862. "shortnames": [":tw:"],
  56863. "category": "flags"
  56864. },
  56865. ":flag_tz:": {
  56866. "uc_base": "1f1f9-1f1ff",
  56867. "uc_output": "1f1f9-1f1ff",
  56868. "uc_match": "1f1f9-1f1ff",
  56869. "uc_greedy": "1f1f9-1f1ff",
  56870. "shortnames": [":tz:"],
  56871. "category": "flags"
  56872. },
  56873. ":flag_ua:": {
  56874. "uc_base": "1f1fa-1f1e6",
  56875. "uc_output": "1f1fa-1f1e6",
  56876. "uc_match": "1f1fa-1f1e6",
  56877. "uc_greedy": "1f1fa-1f1e6",
  56878. "shortnames": [":ua:"],
  56879. "category": "flags"
  56880. },
  56881. ":flag_ug:": {
  56882. "uc_base": "1f1fa-1f1ec",
  56883. "uc_output": "1f1fa-1f1ec",
  56884. "uc_match": "1f1fa-1f1ec",
  56885. "uc_greedy": "1f1fa-1f1ec",
  56886. "shortnames": [":ug:"],
  56887. "category": "flags"
  56888. },
  56889. ":flag_um:": {
  56890. "uc_base": "1f1fa-1f1f2",
  56891. "uc_output": "1f1fa-1f1f2",
  56892. "uc_match": "1f1fa-1f1f2",
  56893. "uc_greedy": "1f1fa-1f1f2",
  56894. "shortnames": [":um:"],
  56895. "category": "flags"
  56896. },
  56897. ":flag_us:": {
  56898. "uc_base": "1f1fa-1f1f8",
  56899. "uc_output": "1f1fa-1f1f8",
  56900. "uc_match": "1f1fa-1f1f8",
  56901. "uc_greedy": "1f1fa-1f1f8",
  56902. "shortnames": [":us:"],
  56903. "category": "flags"
  56904. },
  56905. ":flag_uy:": {
  56906. "uc_base": "1f1fa-1f1fe",
  56907. "uc_output": "1f1fa-1f1fe",
  56908. "uc_match": "1f1fa-1f1fe",
  56909. "uc_greedy": "1f1fa-1f1fe",
  56910. "shortnames": [":uy:"],
  56911. "category": "flags"
  56912. },
  56913. ":flag_uz:": {
  56914. "uc_base": "1f1fa-1f1ff",
  56915. "uc_output": "1f1fa-1f1ff",
  56916. "uc_match": "1f1fa-1f1ff",
  56917. "uc_greedy": "1f1fa-1f1ff",
  56918. "shortnames": [":uz:"],
  56919. "category": "flags"
  56920. },
  56921. ":flag_va:": {
  56922. "uc_base": "1f1fb-1f1e6",
  56923. "uc_output": "1f1fb-1f1e6",
  56924. "uc_match": "1f1fb-1f1e6",
  56925. "uc_greedy": "1f1fb-1f1e6",
  56926. "shortnames": [":va:"],
  56927. "category": "flags"
  56928. },
  56929. ":flag_vc:": {
  56930. "uc_base": "1f1fb-1f1e8",
  56931. "uc_output": "1f1fb-1f1e8",
  56932. "uc_match": "1f1fb-1f1e8",
  56933. "uc_greedy": "1f1fb-1f1e8",
  56934. "shortnames": [":vc:"],
  56935. "category": "flags"
  56936. },
  56937. ":flag_ve:": {
  56938. "uc_base": "1f1fb-1f1ea",
  56939. "uc_output": "1f1fb-1f1ea",
  56940. "uc_match": "1f1fb-1f1ea",
  56941. "uc_greedy": "1f1fb-1f1ea",
  56942. "shortnames": [":ve:"],
  56943. "category": "flags"
  56944. },
  56945. ":flag_vg:": {
  56946. "uc_base": "1f1fb-1f1ec",
  56947. "uc_output": "1f1fb-1f1ec",
  56948. "uc_match": "1f1fb-1f1ec",
  56949. "uc_greedy": "1f1fb-1f1ec",
  56950. "shortnames": [":vg:"],
  56951. "category": "flags"
  56952. },
  56953. ":flag_vi:": {
  56954. "uc_base": "1f1fb-1f1ee",
  56955. "uc_output": "1f1fb-1f1ee",
  56956. "uc_match": "1f1fb-1f1ee",
  56957. "uc_greedy": "1f1fb-1f1ee",
  56958. "shortnames": [":vi:"],
  56959. "category": "flags"
  56960. },
  56961. ":flag_vn:": {
  56962. "uc_base": "1f1fb-1f1f3",
  56963. "uc_output": "1f1fb-1f1f3",
  56964. "uc_match": "1f1fb-1f1f3",
  56965. "uc_greedy": "1f1fb-1f1f3",
  56966. "shortnames": [":vn:"],
  56967. "category": "flags"
  56968. },
  56969. ":flag_vu:": {
  56970. "uc_base": "1f1fb-1f1fa",
  56971. "uc_output": "1f1fb-1f1fa",
  56972. "uc_match": "1f1fb-1f1fa",
  56973. "uc_greedy": "1f1fb-1f1fa",
  56974. "shortnames": [":vu:"],
  56975. "category": "flags"
  56976. },
  56977. ":flag_wf:": {
  56978. "uc_base": "1f1fc-1f1eb",
  56979. "uc_output": "1f1fc-1f1eb",
  56980. "uc_match": "1f1fc-1f1eb",
  56981. "uc_greedy": "1f1fc-1f1eb",
  56982. "shortnames": [":wf:"],
  56983. "category": "flags"
  56984. },
  56985. ":flag_ws:": {
  56986. "uc_base": "1f1fc-1f1f8",
  56987. "uc_output": "1f1fc-1f1f8",
  56988. "uc_match": "1f1fc-1f1f8",
  56989. "uc_greedy": "1f1fc-1f1f8",
  56990. "shortnames": [":ws:"],
  56991. "category": "flags"
  56992. },
  56993. ":flag_xk:": {
  56994. "uc_base": "1f1fd-1f1f0",
  56995. "uc_output": "1f1fd-1f1f0",
  56996. "uc_match": "1f1fd-1f1f0",
  56997. "uc_greedy": "1f1fd-1f1f0",
  56998. "shortnames": [":xk:"],
  56999. "category": "flags"
  57000. },
  57001. ":flag_ye:": {
  57002. "uc_base": "1f1fe-1f1ea",
  57003. "uc_output": "1f1fe-1f1ea",
  57004. "uc_match": "1f1fe-1f1ea",
  57005. "uc_greedy": "1f1fe-1f1ea",
  57006. "shortnames": [":ye:"],
  57007. "category": "flags"
  57008. },
  57009. ":flag_yt:": {
  57010. "uc_base": "1f1fe-1f1f9",
  57011. "uc_output": "1f1fe-1f1f9",
  57012. "uc_match": "1f1fe-1f1f9",
  57013. "uc_greedy": "1f1fe-1f1f9",
  57014. "shortnames": [":yt:"],
  57015. "category": "flags"
  57016. },
  57017. ":flag_za:": {
  57018. "uc_base": "1f1ff-1f1e6",
  57019. "uc_output": "1f1ff-1f1e6",
  57020. "uc_match": "1f1ff-1f1e6",
  57021. "uc_greedy": "1f1ff-1f1e6",
  57022. "shortnames": [":za:"],
  57023. "category": "flags"
  57024. },
  57025. ":flag_zm:": {
  57026. "uc_base": "1f1ff-1f1f2",
  57027. "uc_output": "1f1ff-1f1f2",
  57028. "uc_match": "1f1ff-1f1f2",
  57029. "uc_greedy": "1f1ff-1f1f2",
  57030. "shortnames": [":zm:"],
  57031. "category": "flags"
  57032. },
  57033. ":flag_zw:": {
  57034. "uc_base": "1f1ff-1f1fc",
  57035. "uc_output": "1f1ff-1f1fc",
  57036. "uc_match": "1f1ff-1f1fc",
  57037. "uc_greedy": "1f1ff-1f1fc",
  57038. "shortnames": [":zw:"],
  57039. "category": "flags"
  57040. },
  57041. ":girl_tone1:": {
  57042. "uc_base": "1f467-1f3fb",
  57043. "uc_output": "1f467-1f3fb",
  57044. "uc_match": "1f467-1f3fb",
  57045. "uc_greedy": "1f467-1f3fb",
  57046. "shortnames": [],
  57047. "category": "people"
  57048. },
  57049. ":girl_tone2:": {
  57050. "uc_base": "1f467-1f3fc",
  57051. "uc_output": "1f467-1f3fc",
  57052. "uc_match": "1f467-1f3fc",
  57053. "uc_greedy": "1f467-1f3fc",
  57054. "shortnames": [],
  57055. "category": "people"
  57056. },
  57057. ":girl_tone3:": {
  57058. "uc_base": "1f467-1f3fd",
  57059. "uc_output": "1f467-1f3fd",
  57060. "uc_match": "1f467-1f3fd",
  57061. "uc_greedy": "1f467-1f3fd",
  57062. "shortnames": [],
  57063. "category": "people"
  57064. },
  57065. ":girl_tone4:": {
  57066. "uc_base": "1f467-1f3fe",
  57067. "uc_output": "1f467-1f3fe",
  57068. "uc_match": "1f467-1f3fe",
  57069. "uc_greedy": "1f467-1f3fe",
  57070. "shortnames": [],
  57071. "category": "people"
  57072. },
  57073. ":girl_tone5:": {
  57074. "uc_base": "1f467-1f3ff",
  57075. "uc_output": "1f467-1f3ff",
  57076. "uc_match": "1f467-1f3ff",
  57077. "uc_greedy": "1f467-1f3ff",
  57078. "shortnames": [],
  57079. "category": "people"
  57080. },
  57081. ":guard_tone1:": {
  57082. "uc_base": "1f482-1f3fb",
  57083. "uc_output": "1f482-1f3fb",
  57084. "uc_match": "1f482-1f3fb",
  57085. "uc_greedy": "1f482-1f3fb",
  57086. "shortnames": [":guardsman_tone1:"],
  57087. "category": "people"
  57088. },
  57089. ":guard_tone2:": {
  57090. "uc_base": "1f482-1f3fc",
  57091. "uc_output": "1f482-1f3fc",
  57092. "uc_match": "1f482-1f3fc",
  57093. "uc_greedy": "1f482-1f3fc",
  57094. "shortnames": [":guardsman_tone2:"],
  57095. "category": "people"
  57096. },
  57097. ":guard_tone3:": {
  57098. "uc_base": "1f482-1f3fd",
  57099. "uc_output": "1f482-1f3fd",
  57100. "uc_match": "1f482-1f3fd",
  57101. "uc_greedy": "1f482-1f3fd",
  57102. "shortnames": [":guardsman_tone3:"],
  57103. "category": "people"
  57104. },
  57105. ":guard_tone4:": {
  57106. "uc_base": "1f482-1f3fe",
  57107. "uc_output": "1f482-1f3fe",
  57108. "uc_match": "1f482-1f3fe",
  57109. "uc_greedy": "1f482-1f3fe",
  57110. "shortnames": [":guardsman_tone4:"],
  57111. "category": "people"
  57112. },
  57113. ":guard_tone5:": {
  57114. "uc_base": "1f482-1f3ff",
  57115. "uc_output": "1f482-1f3ff",
  57116. "uc_match": "1f482-1f3ff",
  57117. "uc_greedy": "1f482-1f3ff",
  57118. "shortnames": [":guardsman_tone5:"],
  57119. "category": "people"
  57120. },
  57121. ":hand_splayed_tone1:": {
  57122. "uc_base": "1f590-1f3fb",
  57123. "uc_output": "1f590-1f3fb",
  57124. "uc_match": "1f590-fe0f-1f3fb",
  57125. "uc_greedy": "1f590-fe0f-1f3fb",
  57126. "shortnames": [":raised_hand_with_fingers_splayed_tone1:"],
  57127. "category": "people"
  57128. },
  57129. ":hand_splayed_tone2:": {
  57130. "uc_base": "1f590-1f3fc",
  57131. "uc_output": "1f590-1f3fc",
  57132. "uc_match": "1f590-fe0f-1f3fc",
  57133. "uc_greedy": "1f590-fe0f-1f3fc",
  57134. "shortnames": [":raised_hand_with_fingers_splayed_tone2:"],
  57135. "category": "people"
  57136. },
  57137. ":hand_splayed_tone3:": {
  57138. "uc_base": "1f590-1f3fd",
  57139. "uc_output": "1f590-1f3fd",
  57140. "uc_match": "1f590-fe0f-1f3fd",
  57141. "uc_greedy": "1f590-fe0f-1f3fd",
  57142. "shortnames": [":raised_hand_with_fingers_splayed_tone3:"],
  57143. "category": "people"
  57144. },
  57145. ":hand_splayed_tone4:": {
  57146. "uc_base": "1f590-1f3fe",
  57147. "uc_output": "1f590-1f3fe",
  57148. "uc_match": "1f590-fe0f-1f3fe",
  57149. "uc_greedy": "1f590-fe0f-1f3fe",
  57150. "shortnames": [":raised_hand_with_fingers_splayed_tone4:"],
  57151. "category": "people"
  57152. },
  57153. ":hand_splayed_tone5:": {
  57154. "uc_base": "1f590-1f3ff",
  57155. "uc_output": "1f590-1f3ff",
  57156. "uc_match": "1f590-fe0f-1f3ff",
  57157. "uc_greedy": "1f590-fe0f-1f3ff",
  57158. "shortnames": [":raised_hand_with_fingers_splayed_tone5:"],
  57159. "category": "people"
  57160. },
  57161. ":horse_racing_tone1:": {
  57162. "uc_base": "1f3c7-1f3fb",
  57163. "uc_output": "1f3c7-1f3fb",
  57164. "uc_match": "1f3c7-1f3fb",
  57165. "uc_greedy": "1f3c7-1f3fb",
  57166. "shortnames": [],
  57167. "category": "activity"
  57168. },
  57169. ":horse_racing_tone2:": {
  57170. "uc_base": "1f3c7-1f3fc",
  57171. "uc_output": "1f3c7-1f3fc",
  57172. "uc_match": "1f3c7-1f3fc",
  57173. "uc_greedy": "1f3c7-1f3fc",
  57174. "shortnames": [],
  57175. "category": "activity"
  57176. },
  57177. ":horse_racing_tone3:": {
  57178. "uc_base": "1f3c7-1f3fd",
  57179. "uc_output": "1f3c7-1f3fd",
  57180. "uc_match": "1f3c7-1f3fd",
  57181. "uc_greedy": "1f3c7-1f3fd",
  57182. "shortnames": [],
  57183. "category": "activity"
  57184. },
  57185. ":horse_racing_tone4:": {
  57186. "uc_base": "1f3c7-1f3fe",
  57187. "uc_output": "1f3c7-1f3fe",
  57188. "uc_match": "1f3c7-1f3fe",
  57189. "uc_greedy": "1f3c7-1f3fe",
  57190. "shortnames": [],
  57191. "category": "activity"
  57192. },
  57193. ":horse_racing_tone5:": {
  57194. "uc_base": "1f3c7-1f3ff",
  57195. "uc_output": "1f3c7-1f3ff",
  57196. "uc_match": "1f3c7-1f3ff",
  57197. "uc_greedy": "1f3c7-1f3ff",
  57198. "shortnames": [],
  57199. "category": "activity"
  57200. },
  57201. ":left_facing_fist_tone1:": {
  57202. "uc_base": "1f91b-1f3fb",
  57203. "uc_output": "1f91b-1f3fb",
  57204. "uc_match": "1f91b-1f3fb",
  57205. "uc_greedy": "1f91b-1f3fb",
  57206. "shortnames": [":left_fist_tone1:"],
  57207. "category": "people"
  57208. },
  57209. ":left_facing_fist_tone2:": {
  57210. "uc_base": "1f91b-1f3fc",
  57211. "uc_output": "1f91b-1f3fc",
  57212. "uc_match": "1f91b-1f3fc",
  57213. "uc_greedy": "1f91b-1f3fc",
  57214. "shortnames": [":left_fist_tone2:"],
  57215. "category": "people"
  57216. },
  57217. ":left_facing_fist_tone3:": {
  57218. "uc_base": "1f91b-1f3fd",
  57219. "uc_output": "1f91b-1f3fd",
  57220. "uc_match": "1f91b-1f3fd",
  57221. "uc_greedy": "1f91b-1f3fd",
  57222. "shortnames": [":left_fist_tone3:"],
  57223. "category": "people"
  57224. },
  57225. ":left_facing_fist_tone4:": {
  57226. "uc_base": "1f91b-1f3fe",
  57227. "uc_output": "1f91b-1f3fe",
  57228. "uc_match": "1f91b-1f3fe",
  57229. "uc_greedy": "1f91b-1f3fe",
  57230. "shortnames": [":left_fist_tone4:"],
  57231. "category": "people"
  57232. },
  57233. ":left_facing_fist_tone5:": {
  57234. "uc_base": "1f91b-1f3ff",
  57235. "uc_output": "1f91b-1f3ff",
  57236. "uc_match": "1f91b-1f3ff",
  57237. "uc_greedy": "1f91b-1f3ff",
  57238. "shortnames": [":left_fist_tone5:"],
  57239. "category": "people"
  57240. },
  57241. ":levitate_tone1:": {
  57242. "uc_base": "1f574-1f3fb",
  57243. "uc_output": "1f574-1f3fb",
  57244. "uc_match": "1f574-fe0f-1f3fb",
  57245. "uc_greedy": "1f574-fe0f-1f3fb",
  57246. "shortnames": [":man_in_business_suit_levitating_tone1:", ":man_in_business_suit_levitating_light_skin_tone:"],
  57247. "category": "people"
  57248. },
  57249. ":levitate_tone2:": {
  57250. "uc_base": "1f574-1f3fc",
  57251. "uc_output": "1f574-1f3fc",
  57252. "uc_match": "1f574-fe0f-1f3fc",
  57253. "uc_greedy": "1f574-fe0f-1f3fc",
  57254. "shortnames": [":man_in_business_suit_levitating_tone2:", ":man_in_business_suit_levitating_medium_light_skin_tone:"],
  57255. "category": "people"
  57256. },
  57257. ":levitate_tone3:": {
  57258. "uc_base": "1f574-1f3fd",
  57259. "uc_output": "1f574-1f3fd",
  57260. "uc_match": "1f574-fe0f-1f3fd",
  57261. "uc_greedy": "1f574-fe0f-1f3fd",
  57262. "shortnames": [":man_in_business_suit_levitating_tone3:", ":man_in_business_suit_levitating_medium_skin_tone:"],
  57263. "category": "people"
  57264. },
  57265. ":levitate_tone4:": {
  57266. "uc_base": "1f574-1f3fe",
  57267. "uc_output": "1f574-1f3fe",
  57268. "uc_match": "1f574-fe0f-1f3fe",
  57269. "uc_greedy": "1f574-fe0f-1f3fe",
  57270. "shortnames": [":man_in_business_suit_levitating_tone4:", ":man_in_business_suit_levitating_medium_dark_skin_tone:"],
  57271. "category": "people"
  57272. },
  57273. ":levitate_tone5:": {
  57274. "uc_base": "1f574-1f3ff",
  57275. "uc_output": "1f574-1f3ff",
  57276. "uc_match": "1f574-fe0f-1f3ff",
  57277. "uc_greedy": "1f574-fe0f-1f3ff",
  57278. "shortnames": [":man_in_business_suit_levitating_tone5:", ":man_in_business_suit_levitating_dark_skin_tone:"],
  57279. "category": "people"
  57280. },
  57281. ":love_you_gesture_tone1:": {
  57282. "uc_base": "1f91f-1f3fb",
  57283. "uc_output": "1f91f-1f3fb",
  57284. "uc_match": "1f91f-1f3fb",
  57285. "uc_greedy": "1f91f-1f3fb",
  57286. "shortnames": [":love_you_gesture_light_skin_tone:"],
  57287. "category": "people"
  57288. },
  57289. ":love_you_gesture_tone2:": {
  57290. "uc_base": "1f91f-1f3fc",
  57291. "uc_output": "1f91f-1f3fc",
  57292. "uc_match": "1f91f-1f3fc",
  57293. "uc_greedy": "1f91f-1f3fc",
  57294. "shortnames": [":love_you_gesture_medium_light_skin_tone:"],
  57295. "category": "people"
  57296. },
  57297. ":love_you_gesture_tone3:": {
  57298. "uc_base": "1f91f-1f3fd",
  57299. "uc_output": "1f91f-1f3fd",
  57300. "uc_match": "1f91f-1f3fd",
  57301. "uc_greedy": "1f91f-1f3fd",
  57302. "shortnames": [":love_you_gesture_medium_skin_tone:"],
  57303. "category": "people"
  57304. },
  57305. ":love_you_gesture_tone4:": {
  57306. "uc_base": "1f91f-1f3fe",
  57307. "uc_output": "1f91f-1f3fe",
  57308. "uc_match": "1f91f-1f3fe",
  57309. "uc_greedy": "1f91f-1f3fe",
  57310. "shortnames": [":love_you_gesture_medium_dark_skin_tone:"],
  57311. "category": "people"
  57312. },
  57313. ":love_you_gesture_tone5:": {
  57314. "uc_base": "1f91f-1f3ff",
  57315. "uc_output": "1f91f-1f3ff",
  57316. "uc_match": "1f91f-1f3ff",
  57317. "uc_greedy": "1f91f-1f3ff",
  57318. "shortnames": [":love_you_gesture_dark_skin_tone:"],
  57319. "category": "people"
  57320. },
  57321. ":mage_tone1:": {
  57322. "uc_base": "1f9d9-1f3fb",
  57323. "uc_output": "1f9d9-1f3fb",
  57324. "uc_match": "1f9d9-1f3fb",
  57325. "uc_greedy": "1f9d9-1f3fb",
  57326. "shortnames": [":mage_light_skin_tone:"],
  57327. "category": "people"
  57328. },
  57329. ":mage_tone2:": {
  57330. "uc_base": "1f9d9-1f3fc",
  57331. "uc_output": "1f9d9-1f3fc",
  57332. "uc_match": "1f9d9-1f3fc",
  57333. "uc_greedy": "1f9d9-1f3fc",
  57334. "shortnames": [":mage_medium_light_skin_tone:"],
  57335. "category": "people"
  57336. },
  57337. ":mage_tone3:": {
  57338. "uc_base": "1f9d9-1f3fd",
  57339. "uc_output": "1f9d9-1f3fd",
  57340. "uc_match": "1f9d9-1f3fd",
  57341. "uc_greedy": "1f9d9-1f3fd",
  57342. "shortnames": [":mage_medium_skin_tone:"],
  57343. "category": "people"
  57344. },
  57345. ":mage_tone4:": {
  57346. "uc_base": "1f9d9-1f3fe",
  57347. "uc_output": "1f9d9-1f3fe",
  57348. "uc_match": "1f9d9-1f3fe",
  57349. "uc_greedy": "1f9d9-1f3fe",
  57350. "shortnames": [":mage_medium_dark_skin_tone:"],
  57351. "category": "people"
  57352. },
  57353. ":mage_tone5:": {
  57354. "uc_base": "1f9d9-1f3ff",
  57355. "uc_output": "1f9d9-1f3ff",
  57356. "uc_match": "1f9d9-1f3ff",
  57357. "uc_greedy": "1f9d9-1f3ff",
  57358. "shortnames": [":mage_dark_skin_tone:"],
  57359. "category": "people"
  57360. },
  57361. ":man_dancing_tone1:": {
  57362. "uc_base": "1f57a-1f3fb",
  57363. "uc_output": "1f57a-1f3fb",
  57364. "uc_match": "1f57a-1f3fb",
  57365. "uc_greedy": "1f57a-1f3fb",
  57366. "shortnames": [":male_dancer_tone1:"],
  57367. "category": "people"
  57368. },
  57369. ":man_dancing_tone2:": {
  57370. "uc_base": "1f57a-1f3fc",
  57371. "uc_output": "1f57a-1f3fc",
  57372. "uc_match": "1f57a-1f3fc",
  57373. "uc_greedy": "1f57a-1f3fc",
  57374. "shortnames": [":male_dancer_tone2:"],
  57375. "category": "people"
  57376. },
  57377. ":man_dancing_tone3:": {
  57378. "uc_base": "1f57a-1f3fd",
  57379. "uc_output": "1f57a-1f3fd",
  57380. "uc_match": "1f57a-1f3fd",
  57381. "uc_greedy": "1f57a-1f3fd",
  57382. "shortnames": [":male_dancer_tone3:"],
  57383. "category": "people"
  57384. },
  57385. ":man_dancing_tone4:": {
  57386. "uc_base": "1f57a-1f3fe",
  57387. "uc_output": "1f57a-1f3fe",
  57388. "uc_match": "1f57a-1f3fe",
  57389. "uc_greedy": "1f57a-1f3fe",
  57390. "shortnames": [":male_dancer_tone4:"],
  57391. "category": "people"
  57392. },
  57393. ":man_dancing_tone5:": {
  57394. "uc_base": "1f57a-1f3ff",
  57395. "uc_output": "1f57a-1f3ff",
  57396. "uc_match": "1f57a-1f3ff",
  57397. "uc_greedy": "1f57a-1f3ff",
  57398. "shortnames": [":male_dancer_tone5:"],
  57399. "category": "people"
  57400. },
  57401. ":man_in_tuxedo_tone1:": {
  57402. "uc_base": "1f935-1f3fb",
  57403. "uc_output": "1f935-1f3fb",
  57404. "uc_match": "1f935-1f3fb",
  57405. "uc_greedy": "1f935-1f3fb",
  57406. "shortnames": [":tuxedo_tone1:"],
  57407. "category": "people"
  57408. },
  57409. ":man_in_tuxedo_tone2:": {
  57410. "uc_base": "1f935-1f3fc",
  57411. "uc_output": "1f935-1f3fc",
  57412. "uc_match": "1f935-1f3fc",
  57413. "uc_greedy": "1f935-1f3fc",
  57414. "shortnames": [":tuxedo_tone2:"],
  57415. "category": "people"
  57416. },
  57417. ":man_in_tuxedo_tone3:": {
  57418. "uc_base": "1f935-1f3fd",
  57419. "uc_output": "1f935-1f3fd",
  57420. "uc_match": "1f935-1f3fd",
  57421. "uc_greedy": "1f935-1f3fd",
  57422. "shortnames": [":tuxedo_tone3:"],
  57423. "category": "people"
  57424. },
  57425. ":man_in_tuxedo_tone4:": {
  57426. "uc_base": "1f935-1f3fe",
  57427. "uc_output": "1f935-1f3fe",
  57428. "uc_match": "1f935-1f3fe",
  57429. "uc_greedy": "1f935-1f3fe",
  57430. "shortnames": [":tuxedo_tone4:"],
  57431. "category": "people"
  57432. },
  57433. ":man_in_tuxedo_tone5:": {
  57434. "uc_base": "1f935-1f3ff",
  57435. "uc_output": "1f935-1f3ff",
  57436. "uc_match": "1f935-1f3ff",
  57437. "uc_greedy": "1f935-1f3ff",
  57438. "shortnames": [":tuxedo_tone5:"],
  57439. "category": "people"
  57440. },
  57441. ":man_tone1:": {
  57442. "uc_base": "1f468-1f3fb",
  57443. "uc_output": "1f468-1f3fb",
  57444. "uc_match": "1f468-1f3fb",
  57445. "uc_greedy": "1f468-1f3fb",
  57446. "shortnames": [],
  57447. "category": "people"
  57448. },
  57449. ":man_tone2:": {
  57450. "uc_base": "1f468-1f3fc",
  57451. "uc_output": "1f468-1f3fc",
  57452. "uc_match": "1f468-1f3fc",
  57453. "uc_greedy": "1f468-1f3fc",
  57454. "shortnames": [],
  57455. "category": "people"
  57456. },
  57457. ":man_tone3:": {
  57458. "uc_base": "1f468-1f3fd",
  57459. "uc_output": "1f468-1f3fd",
  57460. "uc_match": "1f468-1f3fd",
  57461. "uc_greedy": "1f468-1f3fd",
  57462. "shortnames": [],
  57463. "category": "people"
  57464. },
  57465. ":man_tone4:": {
  57466. "uc_base": "1f468-1f3fe",
  57467. "uc_output": "1f468-1f3fe",
  57468. "uc_match": "1f468-1f3fe",
  57469. "uc_greedy": "1f468-1f3fe",
  57470. "shortnames": [],
  57471. "category": "people"
  57472. },
  57473. ":man_tone5:": {
  57474. "uc_base": "1f468-1f3ff",
  57475. "uc_output": "1f468-1f3ff",
  57476. "uc_match": "1f468-1f3ff",
  57477. "uc_greedy": "1f468-1f3ff",
  57478. "shortnames": [],
  57479. "category": "people"
  57480. },
  57481. ":man_with_chinese_cap_tone1:": {
  57482. "uc_base": "1f472-1f3fb",
  57483. "uc_output": "1f472-1f3fb",
  57484. "uc_match": "1f472-1f3fb",
  57485. "uc_greedy": "1f472-1f3fb",
  57486. "shortnames": [":man_with_gua_pi_mao_tone1:"],
  57487. "category": "people"
  57488. },
  57489. ":man_with_chinese_cap_tone2:": {
  57490. "uc_base": "1f472-1f3fc",
  57491. "uc_output": "1f472-1f3fc",
  57492. "uc_match": "1f472-1f3fc",
  57493. "uc_greedy": "1f472-1f3fc",
  57494. "shortnames": [":man_with_gua_pi_mao_tone2:"],
  57495. "category": "people"
  57496. },
  57497. ":man_with_chinese_cap_tone3:": {
  57498. "uc_base": "1f472-1f3fd",
  57499. "uc_output": "1f472-1f3fd",
  57500. "uc_match": "1f472-1f3fd",
  57501. "uc_greedy": "1f472-1f3fd",
  57502. "shortnames": [":man_with_gua_pi_mao_tone3:"],
  57503. "category": "people"
  57504. },
  57505. ":man_with_chinese_cap_tone4:": {
  57506. "uc_base": "1f472-1f3fe",
  57507. "uc_output": "1f472-1f3fe",
  57508. "uc_match": "1f472-1f3fe",
  57509. "uc_greedy": "1f472-1f3fe",
  57510. "shortnames": [":man_with_gua_pi_mao_tone4:"],
  57511. "category": "people"
  57512. },
  57513. ":man_with_chinese_cap_tone5:": {
  57514. "uc_base": "1f472-1f3ff",
  57515. "uc_output": "1f472-1f3ff",
  57516. "uc_match": "1f472-1f3ff",
  57517. "uc_greedy": "1f472-1f3ff",
  57518. "shortnames": [":man_with_gua_pi_mao_tone5:"],
  57519. "category": "people"
  57520. },
  57521. ":merperson_tone1:": {
  57522. "uc_base": "1f9dc-1f3fb",
  57523. "uc_output": "1f9dc-1f3fb",
  57524. "uc_match": "1f9dc-1f3fb",
  57525. "uc_greedy": "1f9dc-1f3fb",
  57526. "shortnames": [":merperson_light_skin_tone:"],
  57527. "category": "people"
  57528. },
  57529. ":merperson_tone2:": {
  57530. "uc_base": "1f9dc-1f3fc",
  57531. "uc_output": "1f9dc-1f3fc",
  57532. "uc_match": "1f9dc-1f3fc",
  57533. "uc_greedy": "1f9dc-1f3fc",
  57534. "shortnames": [":merperson_medium_light_skin_tone:"],
  57535. "category": "people"
  57536. },
  57537. ":merperson_tone3:": {
  57538. "uc_base": "1f9dc-1f3fd",
  57539. "uc_output": "1f9dc-1f3fd",
  57540. "uc_match": "1f9dc-1f3fd",
  57541. "uc_greedy": "1f9dc-1f3fd",
  57542. "shortnames": [":merperson_medium_skin_tone:"],
  57543. "category": "people"
  57544. },
  57545. ":merperson_tone4:": {
  57546. "uc_base": "1f9dc-1f3fe",
  57547. "uc_output": "1f9dc-1f3fe",
  57548. "uc_match": "1f9dc-1f3fe",
  57549. "uc_greedy": "1f9dc-1f3fe",
  57550. "shortnames": [":merperson_medium_dark_skin_tone:"],
  57551. "category": "people"
  57552. },
  57553. ":merperson_tone5:": {
  57554. "uc_base": "1f9dc-1f3ff",
  57555. "uc_output": "1f9dc-1f3ff",
  57556. "uc_match": "1f9dc-1f3ff",
  57557. "uc_greedy": "1f9dc-1f3ff",
  57558. "shortnames": [":merperson_dark_skin_tone:"],
  57559. "category": "people"
  57560. },
  57561. ":metal_tone1:": {
  57562. "uc_base": "1f918-1f3fb",
  57563. "uc_output": "1f918-1f3fb",
  57564. "uc_match": "1f918-1f3fb",
  57565. "uc_greedy": "1f918-1f3fb",
  57566. "shortnames": [":sign_of_the_horns_tone1:"],
  57567. "category": "people"
  57568. },
  57569. ":metal_tone2:": {
  57570. "uc_base": "1f918-1f3fc",
  57571. "uc_output": "1f918-1f3fc",
  57572. "uc_match": "1f918-1f3fc",
  57573. "uc_greedy": "1f918-1f3fc",
  57574. "shortnames": [":sign_of_the_horns_tone2:"],
  57575. "category": "people"
  57576. },
  57577. ":metal_tone3:": {
  57578. "uc_base": "1f918-1f3fd",
  57579. "uc_output": "1f918-1f3fd",
  57580. "uc_match": "1f918-1f3fd",
  57581. "uc_greedy": "1f918-1f3fd",
  57582. "shortnames": [":sign_of_the_horns_tone3:"],
  57583. "category": "people"
  57584. },
  57585. ":metal_tone4:": {
  57586. "uc_base": "1f918-1f3fe",
  57587. "uc_output": "1f918-1f3fe",
  57588. "uc_match": "1f918-1f3fe",
  57589. "uc_greedy": "1f918-1f3fe",
  57590. "shortnames": [":sign_of_the_horns_tone4:"],
  57591. "category": "people"
  57592. },
  57593. ":metal_tone5:": {
  57594. "uc_base": "1f918-1f3ff",
  57595. "uc_output": "1f918-1f3ff",
  57596. "uc_match": "1f918-1f3ff",
  57597. "uc_greedy": "1f918-1f3ff",
  57598. "shortnames": [":sign_of_the_horns_tone5:"],
  57599. "category": "people"
  57600. },
  57601. ":middle_finger_tone1:": {
  57602. "uc_base": "1f595-1f3fb",
  57603. "uc_output": "1f595-1f3fb",
  57604. "uc_match": "1f595-1f3fb",
  57605. "uc_greedy": "1f595-1f3fb",
  57606. "shortnames": [":reversed_hand_with_middle_finger_extended_tone1:"],
  57607. "category": "people"
  57608. },
  57609. ":middle_finger_tone2:": {
  57610. "uc_base": "1f595-1f3fc",
  57611. "uc_output": "1f595-1f3fc",
  57612. "uc_match": "1f595-1f3fc",
  57613. "uc_greedy": "1f595-1f3fc",
  57614. "shortnames": [":reversed_hand_with_middle_finger_extended_tone2:"],
  57615. "category": "people"
  57616. },
  57617. ":middle_finger_tone3:": {
  57618. "uc_base": "1f595-1f3fd",
  57619. "uc_output": "1f595-1f3fd",
  57620. "uc_match": "1f595-1f3fd",
  57621. "uc_greedy": "1f595-1f3fd",
  57622. "shortnames": [":reversed_hand_with_middle_finger_extended_tone3:"],
  57623. "category": "people"
  57624. },
  57625. ":middle_finger_tone4:": {
  57626. "uc_base": "1f595-1f3fe",
  57627. "uc_output": "1f595-1f3fe",
  57628. "uc_match": "1f595-1f3fe",
  57629. "uc_greedy": "1f595-1f3fe",
  57630. "shortnames": [":reversed_hand_with_middle_finger_extended_tone4:"],
  57631. "category": "people"
  57632. },
  57633. ":middle_finger_tone5:": {
  57634. "uc_base": "1f595-1f3ff",
  57635. "uc_output": "1f595-1f3ff",
  57636. "uc_match": "1f595-1f3ff",
  57637. "uc_greedy": "1f595-1f3ff",
  57638. "shortnames": [":reversed_hand_with_middle_finger_extended_tone5:"],
  57639. "category": "people"
  57640. },
  57641. ":mrs_claus_tone1:": {
  57642. "uc_base": "1f936-1f3fb",
  57643. "uc_output": "1f936-1f3fb",
  57644. "uc_match": "1f936-1f3fb",
  57645. "uc_greedy": "1f936-1f3fb",
  57646. "shortnames": [":mother_christmas_tone1:"],
  57647. "category": "people"
  57648. },
  57649. ":mrs_claus_tone2:": {
  57650. "uc_base": "1f936-1f3fc",
  57651. "uc_output": "1f936-1f3fc",
  57652. "uc_match": "1f936-1f3fc",
  57653. "uc_greedy": "1f936-1f3fc",
  57654. "shortnames": [":mother_christmas_tone2:"],
  57655. "category": "people"
  57656. },
  57657. ":mrs_claus_tone3:": {
  57658. "uc_base": "1f936-1f3fd",
  57659. "uc_output": "1f936-1f3fd",
  57660. "uc_match": "1f936-1f3fd",
  57661. "uc_greedy": "1f936-1f3fd",
  57662. "shortnames": [":mother_christmas_tone3:"],
  57663. "category": "people"
  57664. },
  57665. ":mrs_claus_tone4:": {
  57666. "uc_base": "1f936-1f3fe",
  57667. "uc_output": "1f936-1f3fe",
  57668. "uc_match": "1f936-1f3fe",
  57669. "uc_greedy": "1f936-1f3fe",
  57670. "shortnames": [":mother_christmas_tone4:"],
  57671. "category": "people"
  57672. },
  57673. ":mrs_claus_tone5:": {
  57674. "uc_base": "1f936-1f3ff",
  57675. "uc_output": "1f936-1f3ff",
  57676. "uc_match": "1f936-1f3ff",
  57677. "uc_greedy": "1f936-1f3ff",
  57678. "shortnames": [":mother_christmas_tone5:"],
  57679. "category": "people"
  57680. },
  57681. ":muscle_tone1:": {
  57682. "uc_base": "1f4aa-1f3fb",
  57683. "uc_output": "1f4aa-1f3fb",
  57684. "uc_match": "1f4aa-1f3fb",
  57685. "uc_greedy": "1f4aa-1f3fb",
  57686. "shortnames": [],
  57687. "category": "people"
  57688. },
  57689. ":muscle_tone2:": {
  57690. "uc_base": "1f4aa-1f3fc",
  57691. "uc_output": "1f4aa-1f3fc",
  57692. "uc_match": "1f4aa-1f3fc",
  57693. "uc_greedy": "1f4aa-1f3fc",
  57694. "shortnames": [],
  57695. "category": "people"
  57696. },
  57697. ":muscle_tone3:": {
  57698. "uc_base": "1f4aa-1f3fd",
  57699. "uc_output": "1f4aa-1f3fd",
  57700. "uc_match": "1f4aa-1f3fd",
  57701. "uc_greedy": "1f4aa-1f3fd",
  57702. "shortnames": [],
  57703. "category": "people"
  57704. },
  57705. ":muscle_tone4:": {
  57706. "uc_base": "1f4aa-1f3fe",
  57707. "uc_output": "1f4aa-1f3fe",
  57708. "uc_match": "1f4aa-1f3fe",
  57709. "uc_greedy": "1f4aa-1f3fe",
  57710. "shortnames": [],
  57711. "category": "people"
  57712. },
  57713. ":muscle_tone5:": {
  57714. "uc_base": "1f4aa-1f3ff",
  57715. "uc_output": "1f4aa-1f3ff",
  57716. "uc_match": "1f4aa-1f3ff",
  57717. "uc_greedy": "1f4aa-1f3ff",
  57718. "shortnames": [],
  57719. "category": "people"
  57720. },
  57721. ":nail_care_tone1:": {
  57722. "uc_base": "1f485-1f3fb",
  57723. "uc_output": "1f485-1f3fb",
  57724. "uc_match": "1f485-1f3fb",
  57725. "uc_greedy": "1f485-1f3fb",
  57726. "shortnames": [],
  57727. "category": "people"
  57728. },
  57729. ":nail_care_tone2:": {
  57730. "uc_base": "1f485-1f3fc",
  57731. "uc_output": "1f485-1f3fc",
  57732. "uc_match": "1f485-1f3fc",
  57733. "uc_greedy": "1f485-1f3fc",
  57734. "shortnames": [],
  57735. "category": "people"
  57736. },
  57737. ":nail_care_tone3:": {
  57738. "uc_base": "1f485-1f3fd",
  57739. "uc_output": "1f485-1f3fd",
  57740. "uc_match": "1f485-1f3fd",
  57741. "uc_greedy": "1f485-1f3fd",
  57742. "shortnames": [],
  57743. "category": "people"
  57744. },
  57745. ":nail_care_tone4:": {
  57746. "uc_base": "1f485-1f3fe",
  57747. "uc_output": "1f485-1f3fe",
  57748. "uc_match": "1f485-1f3fe",
  57749. "uc_greedy": "1f485-1f3fe",
  57750. "shortnames": [],
  57751. "category": "people"
  57752. },
  57753. ":nail_care_tone5:": {
  57754. "uc_base": "1f485-1f3ff",
  57755. "uc_output": "1f485-1f3ff",
  57756. "uc_match": "1f485-1f3ff",
  57757. "uc_greedy": "1f485-1f3ff",
  57758. "shortnames": [],
  57759. "category": "people"
  57760. },
  57761. ":nose_tone1:": {
  57762. "uc_base": "1f443-1f3fb",
  57763. "uc_output": "1f443-1f3fb",
  57764. "uc_match": "1f443-1f3fb",
  57765. "uc_greedy": "1f443-1f3fb",
  57766. "shortnames": [],
  57767. "category": "people"
  57768. },
  57769. ":nose_tone2:": {
  57770. "uc_base": "1f443-1f3fc",
  57771. "uc_output": "1f443-1f3fc",
  57772. "uc_match": "1f443-1f3fc",
  57773. "uc_greedy": "1f443-1f3fc",
  57774. "shortnames": [],
  57775. "category": "people"
  57776. },
  57777. ":nose_tone3:": {
  57778. "uc_base": "1f443-1f3fd",
  57779. "uc_output": "1f443-1f3fd",
  57780. "uc_match": "1f443-1f3fd",
  57781. "uc_greedy": "1f443-1f3fd",
  57782. "shortnames": [],
  57783. "category": "people"
  57784. },
  57785. ":nose_tone4:": {
  57786. "uc_base": "1f443-1f3fe",
  57787. "uc_output": "1f443-1f3fe",
  57788. "uc_match": "1f443-1f3fe",
  57789. "uc_greedy": "1f443-1f3fe",
  57790. "shortnames": [],
  57791. "category": "people"
  57792. },
  57793. ":nose_tone5:": {
  57794. "uc_base": "1f443-1f3ff",
  57795. "uc_output": "1f443-1f3ff",
  57796. "uc_match": "1f443-1f3ff",
  57797. "uc_greedy": "1f443-1f3ff",
  57798. "shortnames": [],
  57799. "category": "people"
  57800. },
  57801. ":ok_hand_tone1:": {
  57802. "uc_base": "1f44c-1f3fb",
  57803. "uc_output": "1f44c-1f3fb",
  57804. "uc_match": "1f44c-1f3fb",
  57805. "uc_greedy": "1f44c-1f3fb",
  57806. "shortnames": [],
  57807. "category": "people"
  57808. },
  57809. ":ok_hand_tone2:": {
  57810. "uc_base": "1f44c-1f3fc",
  57811. "uc_output": "1f44c-1f3fc",
  57812. "uc_match": "1f44c-1f3fc",
  57813. "uc_greedy": "1f44c-1f3fc",
  57814. "shortnames": [],
  57815. "category": "people"
  57816. },
  57817. ":ok_hand_tone3:": {
  57818. "uc_base": "1f44c-1f3fd",
  57819. "uc_output": "1f44c-1f3fd",
  57820. "uc_match": "1f44c-1f3fd",
  57821. "uc_greedy": "1f44c-1f3fd",
  57822. "shortnames": [],
  57823. "category": "people"
  57824. },
  57825. ":ok_hand_tone4:": {
  57826. "uc_base": "1f44c-1f3fe",
  57827. "uc_output": "1f44c-1f3fe",
  57828. "uc_match": "1f44c-1f3fe",
  57829. "uc_greedy": "1f44c-1f3fe",
  57830. "shortnames": [],
  57831. "category": "people"
  57832. },
  57833. ":ok_hand_tone5:": {
  57834. "uc_base": "1f44c-1f3ff",
  57835. "uc_output": "1f44c-1f3ff",
  57836. "uc_match": "1f44c-1f3ff",
  57837. "uc_greedy": "1f44c-1f3ff",
  57838. "shortnames": [],
  57839. "category": "people"
  57840. },
  57841. ":older_adult_tone1:": {
  57842. "uc_base": "1f9d3-1f3fb",
  57843. "uc_output": "1f9d3-1f3fb",
  57844. "uc_match": "1f9d3-1f3fb",
  57845. "uc_greedy": "1f9d3-1f3fb",
  57846. "shortnames": [":older_adult_light_skin_tone:"],
  57847. "category": "people"
  57848. },
  57849. ":older_adult_tone2:": {
  57850. "uc_base": "1f9d3-1f3fc",
  57851. "uc_output": "1f9d3-1f3fc",
  57852. "uc_match": "1f9d3-1f3fc",
  57853. "uc_greedy": "1f9d3-1f3fc",
  57854. "shortnames": [":older_adult_medium_light_skin_tone:"],
  57855. "category": "people"
  57856. },
  57857. ":older_adult_tone3:": {
  57858. "uc_base": "1f9d3-1f3fd",
  57859. "uc_output": "1f9d3-1f3fd",
  57860. "uc_match": "1f9d3-1f3fd",
  57861. "uc_greedy": "1f9d3-1f3fd",
  57862. "shortnames": [":older_adult_medium_skin_tone:"],
  57863. "category": "people"
  57864. },
  57865. ":older_adult_tone4:": {
  57866. "uc_base": "1f9d3-1f3fe",
  57867. "uc_output": "1f9d3-1f3fe",
  57868. "uc_match": "1f9d3-1f3fe",
  57869. "uc_greedy": "1f9d3-1f3fe",
  57870. "shortnames": [":older_adult_medium_dark_skin_tone:"],
  57871. "category": "people"
  57872. },
  57873. ":older_adult_tone5:": {
  57874. "uc_base": "1f9d3-1f3ff",
  57875. "uc_output": "1f9d3-1f3ff",
  57876. "uc_match": "1f9d3-1f3ff",
  57877. "uc_greedy": "1f9d3-1f3ff",
  57878. "shortnames": [":older_adult_dark_skin_tone:"],
  57879. "category": "people"
  57880. },
  57881. ":older_man_tone1:": {
  57882. "uc_base": "1f474-1f3fb",
  57883. "uc_output": "1f474-1f3fb",
  57884. "uc_match": "1f474-1f3fb",
  57885. "uc_greedy": "1f474-1f3fb",
  57886. "shortnames": [],
  57887. "category": "people"
  57888. },
  57889. ":older_man_tone2:": {
  57890. "uc_base": "1f474-1f3fc",
  57891. "uc_output": "1f474-1f3fc",
  57892. "uc_match": "1f474-1f3fc",
  57893. "uc_greedy": "1f474-1f3fc",
  57894. "shortnames": [],
  57895. "category": "people"
  57896. },
  57897. ":older_man_tone3:": {
  57898. "uc_base": "1f474-1f3fd",
  57899. "uc_output": "1f474-1f3fd",
  57900. "uc_match": "1f474-1f3fd",
  57901. "uc_greedy": "1f474-1f3fd",
  57902. "shortnames": [],
  57903. "category": "people"
  57904. },
  57905. ":older_man_tone4:": {
  57906. "uc_base": "1f474-1f3fe",
  57907. "uc_output": "1f474-1f3fe",
  57908. "uc_match": "1f474-1f3fe",
  57909. "uc_greedy": "1f474-1f3fe",
  57910. "shortnames": [],
  57911. "category": "people"
  57912. },
  57913. ":older_man_tone5:": {
  57914. "uc_base": "1f474-1f3ff",
  57915. "uc_output": "1f474-1f3ff",
  57916. "uc_match": "1f474-1f3ff",
  57917. "uc_greedy": "1f474-1f3ff",
  57918. "shortnames": [],
  57919. "category": "people"
  57920. },
  57921. ":older_woman_tone1:": {
  57922. "uc_base": "1f475-1f3fb",
  57923. "uc_output": "1f475-1f3fb",
  57924. "uc_match": "1f475-1f3fb",
  57925. "uc_greedy": "1f475-1f3fb",
  57926. "shortnames": [":grandma_tone1:"],
  57927. "category": "people"
  57928. },
  57929. ":older_woman_tone2:": {
  57930. "uc_base": "1f475-1f3fc",
  57931. "uc_output": "1f475-1f3fc",
  57932. "uc_match": "1f475-1f3fc",
  57933. "uc_greedy": "1f475-1f3fc",
  57934. "shortnames": [":grandma_tone2:"],
  57935. "category": "people"
  57936. },
  57937. ":older_woman_tone3:": {
  57938. "uc_base": "1f475-1f3fd",
  57939. "uc_output": "1f475-1f3fd",
  57940. "uc_match": "1f475-1f3fd",
  57941. "uc_greedy": "1f475-1f3fd",
  57942. "shortnames": [":grandma_tone3:"],
  57943. "category": "people"
  57944. },
  57945. ":older_woman_tone4:": {
  57946. "uc_base": "1f475-1f3fe",
  57947. "uc_output": "1f475-1f3fe",
  57948. "uc_match": "1f475-1f3fe",
  57949. "uc_greedy": "1f475-1f3fe",
  57950. "shortnames": [":grandma_tone4:"],
  57951. "category": "people"
  57952. },
  57953. ":older_woman_tone5:": {
  57954. "uc_base": "1f475-1f3ff",
  57955. "uc_output": "1f475-1f3ff",
  57956. "uc_match": "1f475-1f3ff",
  57957. "uc_greedy": "1f475-1f3ff",
  57958. "shortnames": [":grandma_tone5:"],
  57959. "category": "people"
  57960. },
  57961. ":open_hands_tone1:": {
  57962. "uc_base": "1f450-1f3fb",
  57963. "uc_output": "1f450-1f3fb",
  57964. "uc_match": "1f450-1f3fb",
  57965. "uc_greedy": "1f450-1f3fb",
  57966. "shortnames": [],
  57967. "category": "people"
  57968. },
  57969. ":open_hands_tone2:": {
  57970. "uc_base": "1f450-1f3fc",
  57971. "uc_output": "1f450-1f3fc",
  57972. "uc_match": "1f450-1f3fc",
  57973. "uc_greedy": "1f450-1f3fc",
  57974. "shortnames": [],
  57975. "category": "people"
  57976. },
  57977. ":open_hands_tone3:": {
  57978. "uc_base": "1f450-1f3fd",
  57979. "uc_output": "1f450-1f3fd",
  57980. "uc_match": "1f450-1f3fd",
  57981. "uc_greedy": "1f450-1f3fd",
  57982. "shortnames": [],
  57983. "category": "people"
  57984. },
  57985. ":open_hands_tone4:": {
  57986. "uc_base": "1f450-1f3fe",
  57987. "uc_output": "1f450-1f3fe",
  57988. "uc_match": "1f450-1f3fe",
  57989. "uc_greedy": "1f450-1f3fe",
  57990. "shortnames": [],
  57991. "category": "people"
  57992. },
  57993. ":open_hands_tone5:": {
  57994. "uc_base": "1f450-1f3ff",
  57995. "uc_output": "1f450-1f3ff",
  57996. "uc_match": "1f450-1f3ff",
  57997. "uc_greedy": "1f450-1f3ff",
  57998. "shortnames": [],
  57999. "category": "people"
  58000. },
  58001. ":palms_up_together_tone1:": {
  58002. "uc_base": "1f932-1f3fb",
  58003. "uc_output": "1f932-1f3fb",
  58004. "uc_match": "1f932-1f3fb",
  58005. "uc_greedy": "1f932-1f3fb",
  58006. "shortnames": [":palms_up_together_light_skin_tone:"],
  58007. "category": "people"
  58008. },
  58009. ":palms_up_together_tone2:": {
  58010. "uc_base": "1f932-1f3fc",
  58011. "uc_output": "1f932-1f3fc",
  58012. "uc_match": "1f932-1f3fc",
  58013. "uc_greedy": "1f932-1f3fc",
  58014. "shortnames": [":palms_up_together_medium_light_skin_tone:"],
  58015. "category": "people"
  58016. },
  58017. ":palms_up_together_tone3:": {
  58018. "uc_base": "1f932-1f3fd",
  58019. "uc_output": "1f932-1f3fd",
  58020. "uc_match": "1f932-1f3fd",
  58021. "uc_greedy": "1f932-1f3fd",
  58022. "shortnames": [":palms_up_together_medium_skin_tone:"],
  58023. "category": "people"
  58024. },
  58025. ":palms_up_together_tone4:": {
  58026. "uc_base": "1f932-1f3fe",
  58027. "uc_output": "1f932-1f3fe",
  58028. "uc_match": "1f932-1f3fe",
  58029. "uc_greedy": "1f932-1f3fe",
  58030. "shortnames": [":palms_up_together_medium_dark_skin_tone:"],
  58031. "category": "people"
  58032. },
  58033. ":palms_up_together_tone5:": {
  58034. "uc_base": "1f932-1f3ff",
  58035. "uc_output": "1f932-1f3ff",
  58036. "uc_match": "1f932-1f3ff",
  58037. "uc_greedy": "1f932-1f3ff",
  58038. "shortnames": [":palms_up_together_dark_skin_tone:"],
  58039. "category": "people"
  58040. },
  58041. ":person_biking_tone1:": {
  58042. "uc_base": "1f6b4-1f3fb",
  58043. "uc_output": "1f6b4-1f3fb",
  58044. "uc_match": "1f6b4-1f3fb",
  58045. "uc_greedy": "1f6b4-1f3fb",
  58046. "shortnames": [":bicyclist_tone1:"],
  58047. "category": "activity"
  58048. },
  58049. ":person_biking_tone2:": {
  58050. "uc_base": "1f6b4-1f3fc",
  58051. "uc_output": "1f6b4-1f3fc",
  58052. "uc_match": "1f6b4-1f3fc",
  58053. "uc_greedy": "1f6b4-1f3fc",
  58054. "shortnames": [":bicyclist_tone2:"],
  58055. "category": "activity"
  58056. },
  58057. ":person_biking_tone3:": {
  58058. "uc_base": "1f6b4-1f3fd",
  58059. "uc_output": "1f6b4-1f3fd",
  58060. "uc_match": "1f6b4-1f3fd",
  58061. "uc_greedy": "1f6b4-1f3fd",
  58062. "shortnames": [":bicyclist_tone3:"],
  58063. "category": "activity"
  58064. },
  58065. ":person_biking_tone4:": {
  58066. "uc_base": "1f6b4-1f3fe",
  58067. "uc_output": "1f6b4-1f3fe",
  58068. "uc_match": "1f6b4-1f3fe",
  58069. "uc_greedy": "1f6b4-1f3fe",
  58070. "shortnames": [":bicyclist_tone4:"],
  58071. "category": "activity"
  58072. },
  58073. ":person_biking_tone5:": {
  58074. "uc_base": "1f6b4-1f3ff",
  58075. "uc_output": "1f6b4-1f3ff",
  58076. "uc_match": "1f6b4-1f3ff",
  58077. "uc_greedy": "1f6b4-1f3ff",
  58078. "shortnames": [":bicyclist_tone5:"],
  58079. "category": "activity"
  58080. },
  58081. ":person_bowing_tone1:": {
  58082. "uc_base": "1f647-1f3fb",
  58083. "uc_output": "1f647-1f3fb",
  58084. "uc_match": "1f647-1f3fb",
  58085. "uc_greedy": "1f647-1f3fb",
  58086. "shortnames": [":bow_tone1:"],
  58087. "category": "people"
  58088. },
  58089. ":person_bowing_tone2:": {
  58090. "uc_base": "1f647-1f3fc",
  58091. "uc_output": "1f647-1f3fc",
  58092. "uc_match": "1f647-1f3fc",
  58093. "uc_greedy": "1f647-1f3fc",
  58094. "shortnames": [":bow_tone2:"],
  58095. "category": "people"
  58096. },
  58097. ":person_bowing_tone3:": {
  58098. "uc_base": "1f647-1f3fd",
  58099. "uc_output": "1f647-1f3fd",
  58100. "uc_match": "1f647-1f3fd",
  58101. "uc_greedy": "1f647-1f3fd",
  58102. "shortnames": [":bow_tone3:"],
  58103. "category": "people"
  58104. },
  58105. ":person_bowing_tone4:": {
  58106. "uc_base": "1f647-1f3fe",
  58107. "uc_output": "1f647-1f3fe",
  58108. "uc_match": "1f647-1f3fe",
  58109. "uc_greedy": "1f647-1f3fe",
  58110. "shortnames": [":bow_tone4:"],
  58111. "category": "people"
  58112. },
  58113. ":person_bowing_tone5:": {
  58114. "uc_base": "1f647-1f3ff",
  58115. "uc_output": "1f647-1f3ff",
  58116. "uc_match": "1f647-1f3ff",
  58117. "uc_greedy": "1f647-1f3ff",
  58118. "shortnames": [":bow_tone5:"],
  58119. "category": "people"
  58120. },
  58121. ":person_climbing_tone1:": {
  58122. "uc_base": "1f9d7-1f3fb",
  58123. "uc_output": "1f9d7-1f3fb",
  58124. "uc_match": "1f9d7-1f3fb",
  58125. "uc_greedy": "1f9d7-1f3fb",
  58126. "shortnames": [":person_climbing_light_skin_tone:"],
  58127. "category": "activity"
  58128. },
  58129. ":person_climbing_tone2:": {
  58130. "uc_base": "1f9d7-1f3fc",
  58131. "uc_output": "1f9d7-1f3fc",
  58132. "uc_match": "1f9d7-1f3fc",
  58133. "uc_greedy": "1f9d7-1f3fc",
  58134. "shortnames": [":person_climbing_medium_light_skin_tone:"],
  58135. "category": "activity"
  58136. },
  58137. ":person_climbing_tone3:": {
  58138. "uc_base": "1f9d7-1f3fd",
  58139. "uc_output": "1f9d7-1f3fd",
  58140. "uc_match": "1f9d7-1f3fd",
  58141. "uc_greedy": "1f9d7-1f3fd",
  58142. "shortnames": [":person_climbing_medium_skin_tone:"],
  58143. "category": "activity"
  58144. },
  58145. ":person_climbing_tone4:": {
  58146. "uc_base": "1f9d7-1f3fe",
  58147. "uc_output": "1f9d7-1f3fe",
  58148. "uc_match": "1f9d7-1f3fe",
  58149. "uc_greedy": "1f9d7-1f3fe",
  58150. "shortnames": [":person_climbing_medium_dark_skin_tone:"],
  58151. "category": "activity"
  58152. },
  58153. ":person_climbing_tone5:": {
  58154. "uc_base": "1f9d7-1f3ff",
  58155. "uc_output": "1f9d7-1f3ff",
  58156. "uc_match": "1f9d7-1f3ff",
  58157. "uc_greedy": "1f9d7-1f3ff",
  58158. "shortnames": [":person_climbing_dark_skin_tone:"],
  58159. "category": "activity"
  58160. },
  58161. ":person_doing_cartwheel_tone1:": {
  58162. "uc_base": "1f938-1f3fb",
  58163. "uc_output": "1f938-1f3fb",
  58164. "uc_match": "1f938-1f3fb",
  58165. "uc_greedy": "1f938-1f3fb",
  58166. "shortnames": [":cartwheel_tone1:"],
  58167. "category": "activity"
  58168. },
  58169. ":person_doing_cartwheel_tone2:": {
  58170. "uc_base": "1f938-1f3fc",
  58171. "uc_output": "1f938-1f3fc",
  58172. "uc_match": "1f938-1f3fc",
  58173. "uc_greedy": "1f938-1f3fc",
  58174. "shortnames": [":cartwheel_tone2:"],
  58175. "category": "activity"
  58176. },
  58177. ":person_doing_cartwheel_tone3:": {
  58178. "uc_base": "1f938-1f3fd",
  58179. "uc_output": "1f938-1f3fd",
  58180. "uc_match": "1f938-1f3fd",
  58181. "uc_greedy": "1f938-1f3fd",
  58182. "shortnames": [":cartwheel_tone3:"],
  58183. "category": "activity"
  58184. },
  58185. ":person_doing_cartwheel_tone4:": {
  58186. "uc_base": "1f938-1f3fe",
  58187. "uc_output": "1f938-1f3fe",
  58188. "uc_match": "1f938-1f3fe",
  58189. "uc_greedy": "1f938-1f3fe",
  58190. "shortnames": [":cartwheel_tone4:"],
  58191. "category": "activity"
  58192. },
  58193. ":person_doing_cartwheel_tone5:": {
  58194. "uc_base": "1f938-1f3ff",
  58195. "uc_output": "1f938-1f3ff",
  58196. "uc_match": "1f938-1f3ff",
  58197. "uc_greedy": "1f938-1f3ff",
  58198. "shortnames": [":cartwheel_tone5:"],
  58199. "category": "activity"
  58200. },
  58201. ":person_facepalming_tone1:": {
  58202. "uc_base": "1f926-1f3fb",
  58203. "uc_output": "1f926-1f3fb",
  58204. "uc_match": "1f926-1f3fb",
  58205. "uc_greedy": "1f926-1f3fb",
  58206. "shortnames": [":face_palm_tone1:", ":facepalm_tone1:"],
  58207. "category": "people"
  58208. },
  58209. ":person_facepalming_tone2:": {
  58210. "uc_base": "1f926-1f3fc",
  58211. "uc_output": "1f926-1f3fc",
  58212. "uc_match": "1f926-1f3fc",
  58213. "uc_greedy": "1f926-1f3fc",
  58214. "shortnames": [":face_palm_tone2:", ":facepalm_tone2:"],
  58215. "category": "people"
  58216. },
  58217. ":person_facepalming_tone3:": {
  58218. "uc_base": "1f926-1f3fd",
  58219. "uc_output": "1f926-1f3fd",
  58220. "uc_match": "1f926-1f3fd",
  58221. "uc_greedy": "1f926-1f3fd",
  58222. "shortnames": [":face_palm_tone3:", ":facepalm_tone3:"],
  58223. "category": "people"
  58224. },
  58225. ":person_facepalming_tone4:": {
  58226. "uc_base": "1f926-1f3fe",
  58227. "uc_output": "1f926-1f3fe",
  58228. "uc_match": "1f926-1f3fe",
  58229. "uc_greedy": "1f926-1f3fe",
  58230. "shortnames": [":face_palm_tone4:", ":facepalm_tone4:"],
  58231. "category": "people"
  58232. },
  58233. ":person_facepalming_tone5:": {
  58234. "uc_base": "1f926-1f3ff",
  58235. "uc_output": "1f926-1f3ff",
  58236. "uc_match": "1f926-1f3ff",
  58237. "uc_greedy": "1f926-1f3ff",
  58238. "shortnames": [":face_palm_tone5:", ":facepalm_tone5:"],
  58239. "category": "people"
  58240. },
  58241. ":person_frowning_tone1:": {
  58242. "uc_base": "1f64d-1f3fb",
  58243. "uc_output": "1f64d-1f3fb",
  58244. "uc_match": "1f64d-1f3fb",
  58245. "uc_greedy": "1f64d-1f3fb",
  58246. "shortnames": [],
  58247. "category": "people"
  58248. },
  58249. ":person_frowning_tone2:": {
  58250. "uc_base": "1f64d-1f3fc",
  58251. "uc_output": "1f64d-1f3fc",
  58252. "uc_match": "1f64d-1f3fc",
  58253. "uc_greedy": "1f64d-1f3fc",
  58254. "shortnames": [],
  58255. "category": "people"
  58256. },
  58257. ":person_frowning_tone3:": {
  58258. "uc_base": "1f64d-1f3fd",
  58259. "uc_output": "1f64d-1f3fd",
  58260. "uc_match": "1f64d-1f3fd",
  58261. "uc_greedy": "1f64d-1f3fd",
  58262. "shortnames": [],
  58263. "category": "people"
  58264. },
  58265. ":person_frowning_tone4:": {
  58266. "uc_base": "1f64d-1f3fe",
  58267. "uc_output": "1f64d-1f3fe",
  58268. "uc_match": "1f64d-1f3fe",
  58269. "uc_greedy": "1f64d-1f3fe",
  58270. "shortnames": [],
  58271. "category": "people"
  58272. },
  58273. ":person_frowning_tone5:": {
  58274. "uc_base": "1f64d-1f3ff",
  58275. "uc_output": "1f64d-1f3ff",
  58276. "uc_match": "1f64d-1f3ff",
  58277. "uc_greedy": "1f64d-1f3ff",
  58278. "shortnames": [],
  58279. "category": "people"
  58280. },
  58281. ":person_gesturing_no_tone1:": {
  58282. "uc_base": "1f645-1f3fb",
  58283. "uc_output": "1f645-1f3fb",
  58284. "uc_match": "1f645-1f3fb",
  58285. "uc_greedy": "1f645-1f3fb",
  58286. "shortnames": [":no_good_tone1:"],
  58287. "category": "people"
  58288. },
  58289. ":person_gesturing_no_tone2:": {
  58290. "uc_base": "1f645-1f3fc",
  58291. "uc_output": "1f645-1f3fc",
  58292. "uc_match": "1f645-1f3fc",
  58293. "uc_greedy": "1f645-1f3fc",
  58294. "shortnames": [":no_good_tone2:"],
  58295. "category": "people"
  58296. },
  58297. ":person_gesturing_no_tone3:": {
  58298. "uc_base": "1f645-1f3fd",
  58299. "uc_output": "1f645-1f3fd",
  58300. "uc_match": "1f645-1f3fd",
  58301. "uc_greedy": "1f645-1f3fd",
  58302. "shortnames": [":no_good_tone3:"],
  58303. "category": "people"
  58304. },
  58305. ":person_gesturing_no_tone4:": {
  58306. "uc_base": "1f645-1f3fe",
  58307. "uc_output": "1f645-1f3fe",
  58308. "uc_match": "1f645-1f3fe",
  58309. "uc_greedy": "1f645-1f3fe",
  58310. "shortnames": [":no_good_tone4:"],
  58311. "category": "people"
  58312. },
  58313. ":person_gesturing_no_tone5:": {
  58314. "uc_base": "1f645-1f3ff",
  58315. "uc_output": "1f645-1f3ff",
  58316. "uc_match": "1f645-1f3ff",
  58317. "uc_greedy": "1f645-1f3ff",
  58318. "shortnames": [":no_good_tone5:"],
  58319. "category": "people"
  58320. },
  58321. ":person_gesturing_ok_tone1:": {
  58322. "uc_base": "1f646-1f3fb",
  58323. "uc_output": "1f646-1f3fb",
  58324. "uc_match": "1f646-1f3fb",
  58325. "uc_greedy": "1f646-1f3fb",
  58326. "shortnames": [":ok_woman_tone1:"],
  58327. "category": "people"
  58328. },
  58329. ":person_gesturing_ok_tone2:": {
  58330. "uc_base": "1f646-1f3fc",
  58331. "uc_output": "1f646-1f3fc",
  58332. "uc_match": "1f646-1f3fc",
  58333. "uc_greedy": "1f646-1f3fc",
  58334. "shortnames": [":ok_woman_tone2:"],
  58335. "category": "people"
  58336. },
  58337. ":person_gesturing_ok_tone3:": {
  58338. "uc_base": "1f646-1f3fd",
  58339. "uc_output": "1f646-1f3fd",
  58340. "uc_match": "1f646-1f3fd",
  58341. "uc_greedy": "1f646-1f3fd",
  58342. "shortnames": [":ok_woman_tone3:"],
  58343. "category": "people"
  58344. },
  58345. ":person_gesturing_ok_tone4:": {
  58346. "uc_base": "1f646-1f3fe",
  58347. "uc_output": "1f646-1f3fe",
  58348. "uc_match": "1f646-1f3fe",
  58349. "uc_greedy": "1f646-1f3fe",
  58350. "shortnames": [":ok_woman_tone4:"],
  58351. "category": "people"
  58352. },
  58353. ":person_gesturing_ok_tone5:": {
  58354. "uc_base": "1f646-1f3ff",
  58355. "uc_output": "1f646-1f3ff",
  58356. "uc_match": "1f646-1f3ff",
  58357. "uc_greedy": "1f646-1f3ff",
  58358. "shortnames": [":ok_woman_tone5:"],
  58359. "category": "people"
  58360. },
  58361. ":person_getting_haircut_tone1:": {
  58362. "uc_base": "1f487-1f3fb",
  58363. "uc_output": "1f487-1f3fb",
  58364. "uc_match": "1f487-1f3fb",
  58365. "uc_greedy": "1f487-1f3fb",
  58366. "shortnames": [":haircut_tone1:"],
  58367. "category": "people"
  58368. },
  58369. ":person_getting_haircut_tone2:": {
  58370. "uc_base": "1f487-1f3fc",
  58371. "uc_output": "1f487-1f3fc",
  58372. "uc_match": "1f487-1f3fc",
  58373. "uc_greedy": "1f487-1f3fc",
  58374. "shortnames": [":haircut_tone2:"],
  58375. "category": "people"
  58376. },
  58377. ":person_getting_haircut_tone3:": {
  58378. "uc_base": "1f487-1f3fd",
  58379. "uc_output": "1f487-1f3fd",
  58380. "uc_match": "1f487-1f3fd",
  58381. "uc_greedy": "1f487-1f3fd",
  58382. "shortnames": [":haircut_tone3:"],
  58383. "category": "people"
  58384. },
  58385. ":person_getting_haircut_tone4:": {
  58386. "uc_base": "1f487-1f3fe",
  58387. "uc_output": "1f487-1f3fe",
  58388. "uc_match": "1f487-1f3fe",
  58389. "uc_greedy": "1f487-1f3fe",
  58390. "shortnames": [":haircut_tone4:"],
  58391. "category": "people"
  58392. },
  58393. ":person_getting_haircut_tone5:": {
  58394. "uc_base": "1f487-1f3ff",
  58395. "uc_output": "1f487-1f3ff",
  58396. "uc_match": "1f487-1f3ff",
  58397. "uc_greedy": "1f487-1f3ff",
  58398. "shortnames": [":haircut_tone5:"],
  58399. "category": "people"
  58400. },
  58401. ":person_getting_massage_tone1:": {
  58402. "uc_base": "1f486-1f3fb",
  58403. "uc_output": "1f486-1f3fb",
  58404. "uc_match": "1f486-1f3fb",
  58405. "uc_greedy": "1f486-1f3fb",
  58406. "shortnames": [":massage_tone1:"],
  58407. "category": "people"
  58408. },
  58409. ":person_getting_massage_tone2:": {
  58410. "uc_base": "1f486-1f3fc",
  58411. "uc_output": "1f486-1f3fc",
  58412. "uc_match": "1f486-1f3fc",
  58413. "uc_greedy": "1f486-1f3fc",
  58414. "shortnames": [":massage_tone2:"],
  58415. "category": "people"
  58416. },
  58417. ":person_getting_massage_tone3:": {
  58418. "uc_base": "1f486-1f3fd",
  58419. "uc_output": "1f486-1f3fd",
  58420. "uc_match": "1f486-1f3fd",
  58421. "uc_greedy": "1f486-1f3fd",
  58422. "shortnames": [":massage_tone3:"],
  58423. "category": "people"
  58424. },
  58425. ":person_getting_massage_tone4:": {
  58426. "uc_base": "1f486-1f3fe",
  58427. "uc_output": "1f486-1f3fe",
  58428. "uc_match": "1f486-1f3fe",
  58429. "uc_greedy": "1f486-1f3fe",
  58430. "shortnames": [":massage_tone4:"],
  58431. "category": "people"
  58432. },
  58433. ":person_getting_massage_tone5:": {
  58434. "uc_base": "1f486-1f3ff",
  58435. "uc_output": "1f486-1f3ff",
  58436. "uc_match": "1f486-1f3ff",
  58437. "uc_greedy": "1f486-1f3ff",
  58438. "shortnames": [":massage_tone5:"],
  58439. "category": "people"
  58440. },
  58441. ":person_golfing_tone1:": {
  58442. "uc_base": "1f3cc-1f3fb",
  58443. "uc_output": "1f3cc-1f3fb",
  58444. "uc_match": "1f3cc-fe0f-1f3fb",
  58445. "uc_greedy": "1f3cc-fe0f-1f3fb",
  58446. "shortnames": [":person_golfing_light_skin_tone:"],
  58447. "category": "activity"
  58448. },
  58449. ":person_golfing_tone2:": {
  58450. "uc_base": "1f3cc-1f3fc",
  58451. "uc_output": "1f3cc-1f3fc",
  58452. "uc_match": "1f3cc-fe0f-1f3fc",
  58453. "uc_greedy": "1f3cc-fe0f-1f3fc",
  58454. "shortnames": [":person_golfing_medium_light_skin_tone:"],
  58455. "category": "activity"
  58456. },
  58457. ":person_golfing_tone3:": {
  58458. "uc_base": "1f3cc-1f3fd",
  58459. "uc_output": "1f3cc-1f3fd",
  58460. "uc_match": "1f3cc-fe0f-1f3fd",
  58461. "uc_greedy": "1f3cc-fe0f-1f3fd",
  58462. "shortnames": [":person_golfing_medium_skin_tone:"],
  58463. "category": "activity"
  58464. },
  58465. ":person_golfing_tone4:": {
  58466. "uc_base": "1f3cc-1f3fe",
  58467. "uc_output": "1f3cc-1f3fe",
  58468. "uc_match": "1f3cc-fe0f-1f3fe",
  58469. "uc_greedy": "1f3cc-fe0f-1f3fe",
  58470. "shortnames": [":person_golfing_medium_dark_skin_tone:"],
  58471. "category": "activity"
  58472. },
  58473. ":person_golfing_tone5:": {
  58474. "uc_base": "1f3cc-1f3ff",
  58475. "uc_output": "1f3cc-1f3ff",
  58476. "uc_match": "1f3cc-fe0f-1f3ff",
  58477. "uc_greedy": "1f3cc-fe0f-1f3ff",
  58478. "shortnames": [":person_golfing_dark_skin_tone:"],
  58479. "category": "activity"
  58480. },
  58481. ":person_in_bed_tone1:": {
  58482. "uc_base": "1f6cc-1f3fb",
  58483. "uc_output": "1f6cc-1f3fb",
  58484. "uc_match": "1f6cc-1f3fb",
  58485. "uc_greedy": "1f6cc-1f3fb",
  58486. "shortnames": [":person_in_bed_light_skin_tone:"],
  58487. "category": "objects"
  58488. },
  58489. ":person_in_bed_tone2:": {
  58490. "uc_base": "1f6cc-1f3fc",
  58491. "uc_output": "1f6cc-1f3fc",
  58492. "uc_match": "1f6cc-1f3fc",
  58493. "uc_greedy": "1f6cc-1f3fc",
  58494. "shortnames": [":person_in_bed_medium_light_skin_tone:"],
  58495. "category": "objects"
  58496. },
  58497. ":person_in_bed_tone3:": {
  58498. "uc_base": "1f6cc-1f3fd",
  58499. "uc_output": "1f6cc-1f3fd",
  58500. "uc_match": "1f6cc-1f3fd",
  58501. "uc_greedy": "1f6cc-1f3fd",
  58502. "shortnames": [":person_in_bed_medium_skin_tone:"],
  58503. "category": "objects"
  58504. },
  58505. ":person_in_bed_tone4:": {
  58506. "uc_base": "1f6cc-1f3fe",
  58507. "uc_output": "1f6cc-1f3fe",
  58508. "uc_match": "1f6cc-1f3fe",
  58509. "uc_greedy": "1f6cc-1f3fe",
  58510. "shortnames": [":person_in_bed_medium_dark_skin_tone:"],
  58511. "category": "objects"
  58512. },
  58513. ":person_in_bed_tone5:": {
  58514. "uc_base": "1f6cc-1f3ff",
  58515. "uc_output": "1f6cc-1f3ff",
  58516. "uc_match": "1f6cc-1f3ff",
  58517. "uc_greedy": "1f6cc-1f3ff",
  58518. "shortnames": [":person_in_bed_dark_skin_tone:"],
  58519. "category": "objects"
  58520. },
  58521. ":person_in_lotus_position_tone1:": {
  58522. "uc_base": "1f9d8-1f3fb",
  58523. "uc_output": "1f9d8-1f3fb",
  58524. "uc_match": "1f9d8-1f3fb",
  58525. "uc_greedy": "1f9d8-1f3fb",
  58526. "shortnames": [":person_in_lotus_position_light_skin_tone:"],
  58527. "category": "activity"
  58528. },
  58529. ":person_in_lotus_position_tone2:": {
  58530. "uc_base": "1f9d8-1f3fc",
  58531. "uc_output": "1f9d8-1f3fc",
  58532. "uc_match": "1f9d8-1f3fc",
  58533. "uc_greedy": "1f9d8-1f3fc",
  58534. "shortnames": [":person_in_lotus_position_medium_light_skin_tone:"],
  58535. "category": "activity"
  58536. },
  58537. ":person_in_lotus_position_tone3:": {
  58538. "uc_base": "1f9d8-1f3fd",
  58539. "uc_output": "1f9d8-1f3fd",
  58540. "uc_match": "1f9d8-1f3fd",
  58541. "uc_greedy": "1f9d8-1f3fd",
  58542. "shortnames": [":person_in_lotus_position_medium_skin_tone:"],
  58543. "category": "activity"
  58544. },
  58545. ":person_in_lotus_position_tone4:": {
  58546. "uc_base": "1f9d8-1f3fe",
  58547. "uc_output": "1f9d8-1f3fe",
  58548. "uc_match": "1f9d8-1f3fe",
  58549. "uc_greedy": "1f9d8-1f3fe",
  58550. "shortnames": [":person_in_lotus_position_medium_dark_skin_tone:"],
  58551. "category": "activity"
  58552. },
  58553. ":person_in_lotus_position_tone5:": {
  58554. "uc_base": "1f9d8-1f3ff",
  58555. "uc_output": "1f9d8-1f3ff",
  58556. "uc_match": "1f9d8-1f3ff",
  58557. "uc_greedy": "1f9d8-1f3ff",
  58558. "shortnames": [":person_in_lotus_position_dark_skin_tone:"],
  58559. "category": "activity"
  58560. },
  58561. ":person_in_steamy_room_tone1:": {
  58562. "uc_base": "1f9d6-1f3fb",
  58563. "uc_output": "1f9d6-1f3fb",
  58564. "uc_match": "1f9d6-1f3fb",
  58565. "uc_greedy": "1f9d6-1f3fb",
  58566. "shortnames": [":person_in_steamy_room_light_skin_tone:"],
  58567. "category": "people"
  58568. },
  58569. ":person_in_steamy_room_tone2:": {
  58570. "uc_base": "1f9d6-1f3fc",
  58571. "uc_output": "1f9d6-1f3fc",
  58572. "uc_match": "1f9d6-1f3fc",
  58573. "uc_greedy": "1f9d6-1f3fc",
  58574. "shortnames": [":person_in_steamy_room_medium_light_skin_tone:"],
  58575. "category": "people"
  58576. },
  58577. ":person_in_steamy_room_tone3:": {
  58578. "uc_base": "1f9d6-1f3fd",
  58579. "uc_output": "1f9d6-1f3fd",
  58580. "uc_match": "1f9d6-1f3fd",
  58581. "uc_greedy": "1f9d6-1f3fd",
  58582. "shortnames": [":person_in_steamy_room_medium_skin_tone:"],
  58583. "category": "people"
  58584. },
  58585. ":person_in_steamy_room_tone4:": {
  58586. "uc_base": "1f9d6-1f3fe",
  58587. "uc_output": "1f9d6-1f3fe",
  58588. "uc_match": "1f9d6-1f3fe",
  58589. "uc_greedy": "1f9d6-1f3fe",
  58590. "shortnames": [":person_in_steamy_room_medium_dark_skin_tone:"],
  58591. "category": "people"
  58592. },
  58593. ":person_in_steamy_room_tone5:": {
  58594. "uc_base": "1f9d6-1f3ff",
  58595. "uc_output": "1f9d6-1f3ff",
  58596. "uc_match": "1f9d6-1f3ff",
  58597. "uc_greedy": "1f9d6-1f3ff",
  58598. "shortnames": [":person_in_steamy_room_dark_skin_tone:"],
  58599. "category": "people"
  58600. },
  58601. ":person_juggling_tone1:": {
  58602. "uc_base": "1f939-1f3fb",
  58603. "uc_output": "1f939-1f3fb",
  58604. "uc_match": "1f939-1f3fb",
  58605. "uc_greedy": "1f939-1f3fb",
  58606. "shortnames": [":juggling_tone1:", ":juggler_tone1:"],
  58607. "category": "activity"
  58608. },
  58609. ":person_juggling_tone2:": {
  58610. "uc_base": "1f939-1f3fc",
  58611. "uc_output": "1f939-1f3fc",
  58612. "uc_match": "1f939-1f3fc",
  58613. "uc_greedy": "1f939-1f3fc",
  58614. "shortnames": [":juggling_tone2:", ":juggler_tone2:"],
  58615. "category": "activity"
  58616. },
  58617. ":person_juggling_tone3:": {
  58618. "uc_base": "1f939-1f3fd",
  58619. "uc_output": "1f939-1f3fd",
  58620. "uc_match": "1f939-1f3fd",
  58621. "uc_greedy": "1f939-1f3fd",
  58622. "shortnames": [":juggling_tone3:", ":juggler_tone3:"],
  58623. "category": "activity"
  58624. },
  58625. ":person_juggling_tone4:": {
  58626. "uc_base": "1f939-1f3fe",
  58627. "uc_output": "1f939-1f3fe",
  58628. "uc_match": "1f939-1f3fe",
  58629. "uc_greedy": "1f939-1f3fe",
  58630. "shortnames": [":juggling_tone4:", ":juggler_tone4:"],
  58631. "category": "activity"
  58632. },
  58633. ":person_juggling_tone5:": {
  58634. "uc_base": "1f939-1f3ff",
  58635. "uc_output": "1f939-1f3ff",
  58636. "uc_match": "1f939-1f3ff",
  58637. "uc_greedy": "1f939-1f3ff",
  58638. "shortnames": [":juggling_tone5:", ":juggler_tone5:"],
  58639. "category": "activity"
  58640. },
  58641. ":person_lifting_weights_tone1:": {
  58642. "uc_base": "1f3cb-1f3fb",
  58643. "uc_output": "1f3cb-1f3fb",
  58644. "uc_match": "1f3cb-fe0f-1f3fb",
  58645. "uc_greedy": "1f3cb-fe0f-1f3fb",
  58646. "shortnames": [":lifter_tone1:", ":weight_lifter_tone1:"],
  58647. "category": "activity"
  58648. },
  58649. ":person_lifting_weights_tone2:": {
  58650. "uc_base": "1f3cb-1f3fc",
  58651. "uc_output": "1f3cb-1f3fc",
  58652. "uc_match": "1f3cb-fe0f-1f3fc",
  58653. "uc_greedy": "1f3cb-fe0f-1f3fc",
  58654. "shortnames": [":lifter_tone2:", ":weight_lifter_tone2:"],
  58655. "category": "activity"
  58656. },
  58657. ":person_lifting_weights_tone3:": {
  58658. "uc_base": "1f3cb-1f3fd",
  58659. "uc_output": "1f3cb-1f3fd",
  58660. "uc_match": "1f3cb-fe0f-1f3fd",
  58661. "uc_greedy": "1f3cb-fe0f-1f3fd",
  58662. "shortnames": [":lifter_tone3:", ":weight_lifter_tone3:"],
  58663. "category": "activity"
  58664. },
  58665. ":person_lifting_weights_tone4:": {
  58666. "uc_base": "1f3cb-1f3fe",
  58667. "uc_output": "1f3cb-1f3fe",
  58668. "uc_match": "1f3cb-fe0f-1f3fe",
  58669. "uc_greedy": "1f3cb-fe0f-1f3fe",
  58670. "shortnames": [":lifter_tone4:", ":weight_lifter_tone4:"],
  58671. "category": "activity"
  58672. },
  58673. ":person_lifting_weights_tone5:": {
  58674. "uc_base": "1f3cb-1f3ff",
  58675. "uc_output": "1f3cb-1f3ff",
  58676. "uc_match": "1f3cb-fe0f-1f3ff",
  58677. "uc_greedy": "1f3cb-fe0f-1f3ff",
  58678. "shortnames": [":lifter_tone5:", ":weight_lifter_tone5:"],
  58679. "category": "activity"
  58680. },
  58681. ":person_mountain_biking_tone1:": {
  58682. "uc_base": "1f6b5-1f3fb",
  58683. "uc_output": "1f6b5-1f3fb",
  58684. "uc_match": "1f6b5-1f3fb",
  58685. "uc_greedy": "1f6b5-1f3fb",
  58686. "shortnames": [":mountain_bicyclist_tone1:"],
  58687. "category": "activity"
  58688. },
  58689. ":person_mountain_biking_tone2:": {
  58690. "uc_base": "1f6b5-1f3fc",
  58691. "uc_output": "1f6b5-1f3fc",
  58692. "uc_match": "1f6b5-1f3fc",
  58693. "uc_greedy": "1f6b5-1f3fc",
  58694. "shortnames": [":mountain_bicyclist_tone2:"],
  58695. "category": "activity"
  58696. },
  58697. ":person_mountain_biking_tone3:": {
  58698. "uc_base": "1f6b5-1f3fd",
  58699. "uc_output": "1f6b5-1f3fd",
  58700. "uc_match": "1f6b5-1f3fd",
  58701. "uc_greedy": "1f6b5-1f3fd",
  58702. "shortnames": [":mountain_bicyclist_tone3:"],
  58703. "category": "activity"
  58704. },
  58705. ":person_mountain_biking_tone4:": {
  58706. "uc_base": "1f6b5-1f3fe",
  58707. "uc_output": "1f6b5-1f3fe",
  58708. "uc_match": "1f6b5-1f3fe",
  58709. "uc_greedy": "1f6b5-1f3fe",
  58710. "shortnames": [":mountain_bicyclist_tone4:"],
  58711. "category": "activity"
  58712. },
  58713. ":person_mountain_biking_tone5:": {
  58714. "uc_base": "1f6b5-1f3ff",
  58715. "uc_output": "1f6b5-1f3ff",
  58716. "uc_match": "1f6b5-1f3ff",
  58717. "uc_greedy": "1f6b5-1f3ff",
  58718. "shortnames": [":mountain_bicyclist_tone5:"],
  58719. "category": "activity"
  58720. },
  58721. ":person_playing_handball_tone1:": {
  58722. "uc_base": "1f93e-1f3fb",
  58723. "uc_output": "1f93e-1f3fb",
  58724. "uc_match": "1f93e-1f3fb",
  58725. "uc_greedy": "1f93e-1f3fb",
  58726. "shortnames": [":handball_tone1:"],
  58727. "category": "activity"
  58728. },
  58729. ":person_playing_handball_tone2:": {
  58730. "uc_base": "1f93e-1f3fc",
  58731. "uc_output": "1f93e-1f3fc",
  58732. "uc_match": "1f93e-1f3fc",
  58733. "uc_greedy": "1f93e-1f3fc",
  58734. "shortnames": [":handball_tone2:"],
  58735. "category": "activity"
  58736. },
  58737. ":person_playing_handball_tone3:": {
  58738. "uc_base": "1f93e-1f3fd",
  58739. "uc_output": "1f93e-1f3fd",
  58740. "uc_match": "1f93e-1f3fd",
  58741. "uc_greedy": "1f93e-1f3fd",
  58742. "shortnames": [":handball_tone3:"],
  58743. "category": "activity"
  58744. },
  58745. ":person_playing_handball_tone4:": {
  58746. "uc_base": "1f93e-1f3fe",
  58747. "uc_output": "1f93e-1f3fe",
  58748. "uc_match": "1f93e-1f3fe",
  58749. "uc_greedy": "1f93e-1f3fe",
  58750. "shortnames": [":handball_tone4:"],
  58751. "category": "activity"
  58752. },
  58753. ":person_playing_handball_tone5:": {
  58754. "uc_base": "1f93e-1f3ff",
  58755. "uc_output": "1f93e-1f3ff",
  58756. "uc_match": "1f93e-1f3ff",
  58757. "uc_greedy": "1f93e-1f3ff",
  58758. "shortnames": [":handball_tone5:"],
  58759. "category": "activity"
  58760. },
  58761. ":person_playing_water_polo_tone1:": {
  58762. "uc_base": "1f93d-1f3fb",
  58763. "uc_output": "1f93d-1f3fb",
  58764. "uc_match": "1f93d-1f3fb",
  58765. "uc_greedy": "1f93d-1f3fb",
  58766. "shortnames": [":water_polo_tone1:"],
  58767. "category": "activity"
  58768. },
  58769. ":person_playing_water_polo_tone2:": {
  58770. "uc_base": "1f93d-1f3fc",
  58771. "uc_output": "1f93d-1f3fc",
  58772. "uc_match": "1f93d-1f3fc",
  58773. "uc_greedy": "1f93d-1f3fc",
  58774. "shortnames": [":water_polo_tone2:"],
  58775. "category": "activity"
  58776. },
  58777. ":person_playing_water_polo_tone3:": {
  58778. "uc_base": "1f93d-1f3fd",
  58779. "uc_output": "1f93d-1f3fd",
  58780. "uc_match": "1f93d-1f3fd",
  58781. "uc_greedy": "1f93d-1f3fd",
  58782. "shortnames": [":water_polo_tone3:"],
  58783. "category": "activity"
  58784. },
  58785. ":person_playing_water_polo_tone4:": {
  58786. "uc_base": "1f93d-1f3fe",
  58787. "uc_output": "1f93d-1f3fe",
  58788. "uc_match": "1f93d-1f3fe",
  58789. "uc_greedy": "1f93d-1f3fe",
  58790. "shortnames": [":water_polo_tone4:"],
  58791. "category": "activity"
  58792. },
  58793. ":person_playing_water_polo_tone5:": {
  58794. "uc_base": "1f93d-1f3ff",
  58795. "uc_output": "1f93d-1f3ff",
  58796. "uc_match": "1f93d-1f3ff",
  58797. "uc_greedy": "1f93d-1f3ff",
  58798. "shortnames": [":water_polo_tone5:"],
  58799. "category": "activity"
  58800. },
  58801. ":person_pouting_tone1:": {
  58802. "uc_base": "1f64e-1f3fb",
  58803. "uc_output": "1f64e-1f3fb",
  58804. "uc_match": "1f64e-1f3fb",
  58805. "uc_greedy": "1f64e-1f3fb",
  58806. "shortnames": [":person_with_pouting_face_tone1:"],
  58807. "category": "people"
  58808. },
  58809. ":person_pouting_tone2:": {
  58810. "uc_base": "1f64e-1f3fc",
  58811. "uc_output": "1f64e-1f3fc",
  58812. "uc_match": "1f64e-1f3fc",
  58813. "uc_greedy": "1f64e-1f3fc",
  58814. "shortnames": [":person_with_pouting_face_tone2:"],
  58815. "category": "people"
  58816. },
  58817. ":person_pouting_tone3:": {
  58818. "uc_base": "1f64e-1f3fd",
  58819. "uc_output": "1f64e-1f3fd",
  58820. "uc_match": "1f64e-1f3fd",
  58821. "uc_greedy": "1f64e-1f3fd",
  58822. "shortnames": [":person_with_pouting_face_tone3:"],
  58823. "category": "people"
  58824. },
  58825. ":person_pouting_tone4:": {
  58826. "uc_base": "1f64e-1f3fe",
  58827. "uc_output": "1f64e-1f3fe",
  58828. "uc_match": "1f64e-1f3fe",
  58829. "uc_greedy": "1f64e-1f3fe",
  58830. "shortnames": [":person_with_pouting_face_tone4:"],
  58831. "category": "people"
  58832. },
  58833. ":person_pouting_tone5:": {
  58834. "uc_base": "1f64e-1f3ff",
  58835. "uc_output": "1f64e-1f3ff",
  58836. "uc_match": "1f64e-1f3ff",
  58837. "uc_greedy": "1f64e-1f3ff",
  58838. "shortnames": [":person_with_pouting_face_tone5:"],
  58839. "category": "people"
  58840. },
  58841. ":person_raising_hand_tone1:": {
  58842. "uc_base": "1f64b-1f3fb",
  58843. "uc_output": "1f64b-1f3fb",
  58844. "uc_match": "1f64b-1f3fb",
  58845. "uc_greedy": "1f64b-1f3fb",
  58846. "shortnames": [":raising_hand_tone1:"],
  58847. "category": "people"
  58848. },
  58849. ":person_raising_hand_tone2:": {
  58850. "uc_base": "1f64b-1f3fc",
  58851. "uc_output": "1f64b-1f3fc",
  58852. "uc_match": "1f64b-1f3fc",
  58853. "uc_greedy": "1f64b-1f3fc",
  58854. "shortnames": [":raising_hand_tone2:"],
  58855. "category": "people"
  58856. },
  58857. ":person_raising_hand_tone3:": {
  58858. "uc_base": "1f64b-1f3fd",
  58859. "uc_output": "1f64b-1f3fd",
  58860. "uc_match": "1f64b-1f3fd",
  58861. "uc_greedy": "1f64b-1f3fd",
  58862. "shortnames": [":raising_hand_tone3:"],
  58863. "category": "people"
  58864. },
  58865. ":person_raising_hand_tone4:": {
  58866. "uc_base": "1f64b-1f3fe",
  58867. "uc_output": "1f64b-1f3fe",
  58868. "uc_match": "1f64b-1f3fe",
  58869. "uc_greedy": "1f64b-1f3fe",
  58870. "shortnames": [":raising_hand_tone4:"],
  58871. "category": "people"
  58872. },
  58873. ":person_raising_hand_tone5:": {
  58874. "uc_base": "1f64b-1f3ff",
  58875. "uc_output": "1f64b-1f3ff",
  58876. "uc_match": "1f64b-1f3ff",
  58877. "uc_greedy": "1f64b-1f3ff",
  58878. "shortnames": [":raising_hand_tone5:"],
  58879. "category": "people"
  58880. },
  58881. ":person_rowing_boat_tone1:": {
  58882. "uc_base": "1f6a3-1f3fb",
  58883. "uc_output": "1f6a3-1f3fb",
  58884. "uc_match": "1f6a3-1f3fb",
  58885. "uc_greedy": "1f6a3-1f3fb",
  58886. "shortnames": [":rowboat_tone1:"],
  58887. "category": "activity"
  58888. },
  58889. ":person_rowing_boat_tone2:": {
  58890. "uc_base": "1f6a3-1f3fc",
  58891. "uc_output": "1f6a3-1f3fc",
  58892. "uc_match": "1f6a3-1f3fc",
  58893. "uc_greedy": "1f6a3-1f3fc",
  58894. "shortnames": [":rowboat_tone2:"],
  58895. "category": "activity"
  58896. },
  58897. ":person_rowing_boat_tone3:": {
  58898. "uc_base": "1f6a3-1f3fd",
  58899. "uc_output": "1f6a3-1f3fd",
  58900. "uc_match": "1f6a3-1f3fd",
  58901. "uc_greedy": "1f6a3-1f3fd",
  58902. "shortnames": [":rowboat_tone3:"],
  58903. "category": "activity"
  58904. },
  58905. ":person_rowing_boat_tone4:": {
  58906. "uc_base": "1f6a3-1f3fe",
  58907. "uc_output": "1f6a3-1f3fe",
  58908. "uc_match": "1f6a3-1f3fe",
  58909. "uc_greedy": "1f6a3-1f3fe",
  58910. "shortnames": [":rowboat_tone4:"],
  58911. "category": "activity"
  58912. },
  58913. ":person_rowing_boat_tone5:": {
  58914. "uc_base": "1f6a3-1f3ff",
  58915. "uc_output": "1f6a3-1f3ff",
  58916. "uc_match": "1f6a3-1f3ff",
  58917. "uc_greedy": "1f6a3-1f3ff",
  58918. "shortnames": [":rowboat_tone5:"],
  58919. "category": "activity"
  58920. },
  58921. ":person_running_tone1:": {
  58922. "uc_base": "1f3c3-1f3fb",
  58923. "uc_output": "1f3c3-1f3fb",
  58924. "uc_match": "1f3c3-1f3fb",
  58925. "uc_greedy": "1f3c3-1f3fb",
  58926. "shortnames": [":runner_tone1:"],
  58927. "category": "people"
  58928. },
  58929. ":person_running_tone2:": {
  58930. "uc_base": "1f3c3-1f3fc",
  58931. "uc_output": "1f3c3-1f3fc",
  58932. "uc_match": "1f3c3-1f3fc",
  58933. "uc_greedy": "1f3c3-1f3fc",
  58934. "shortnames": [":runner_tone2:"],
  58935. "category": "people"
  58936. },
  58937. ":person_running_tone3:": {
  58938. "uc_base": "1f3c3-1f3fd",
  58939. "uc_output": "1f3c3-1f3fd",
  58940. "uc_match": "1f3c3-1f3fd",
  58941. "uc_greedy": "1f3c3-1f3fd",
  58942. "shortnames": [":runner_tone3:"],
  58943. "category": "people"
  58944. },
  58945. ":person_running_tone4:": {
  58946. "uc_base": "1f3c3-1f3fe",
  58947. "uc_output": "1f3c3-1f3fe",
  58948. "uc_match": "1f3c3-1f3fe",
  58949. "uc_greedy": "1f3c3-1f3fe",
  58950. "shortnames": [":runner_tone4:"],
  58951. "category": "people"
  58952. },
  58953. ":person_running_tone5:": {
  58954. "uc_base": "1f3c3-1f3ff",
  58955. "uc_output": "1f3c3-1f3ff",
  58956. "uc_match": "1f3c3-1f3ff",
  58957. "uc_greedy": "1f3c3-1f3ff",
  58958. "shortnames": [":runner_tone5:"],
  58959. "category": "people"
  58960. },
  58961. ":person_shrugging_tone1:": {
  58962. "uc_base": "1f937-1f3fb",
  58963. "uc_output": "1f937-1f3fb",
  58964. "uc_match": "1f937-1f3fb",
  58965. "uc_greedy": "1f937-1f3fb",
  58966. "shortnames": [":shrug_tone1:"],
  58967. "category": "people"
  58968. },
  58969. ":person_shrugging_tone2:": {
  58970. "uc_base": "1f937-1f3fc",
  58971. "uc_output": "1f937-1f3fc",
  58972. "uc_match": "1f937-1f3fc",
  58973. "uc_greedy": "1f937-1f3fc",
  58974. "shortnames": [":shrug_tone2:"],
  58975. "category": "people"
  58976. },
  58977. ":person_shrugging_tone3:": {
  58978. "uc_base": "1f937-1f3fd",
  58979. "uc_output": "1f937-1f3fd",
  58980. "uc_match": "1f937-1f3fd",
  58981. "uc_greedy": "1f937-1f3fd",
  58982. "shortnames": [":shrug_tone3:"],
  58983. "category": "people"
  58984. },
  58985. ":person_shrugging_tone4:": {
  58986. "uc_base": "1f937-1f3fe",
  58987. "uc_output": "1f937-1f3fe",
  58988. "uc_match": "1f937-1f3fe",
  58989. "uc_greedy": "1f937-1f3fe",
  58990. "shortnames": [":shrug_tone4:"],
  58991. "category": "people"
  58992. },
  58993. ":person_shrugging_tone5:": {
  58994. "uc_base": "1f937-1f3ff",
  58995. "uc_output": "1f937-1f3ff",
  58996. "uc_match": "1f937-1f3ff",
  58997. "uc_greedy": "1f937-1f3ff",
  58998. "shortnames": [":shrug_tone5:"],
  58999. "category": "people"
  59000. },
  59001. ":person_surfing_tone1:": {
  59002. "uc_base": "1f3c4-1f3fb",
  59003. "uc_output": "1f3c4-1f3fb",
  59004. "uc_match": "1f3c4-1f3fb",
  59005. "uc_greedy": "1f3c4-1f3fb",
  59006. "shortnames": [":surfer_tone1:"],
  59007. "category": "activity"
  59008. },
  59009. ":person_surfing_tone2:": {
  59010. "uc_base": "1f3c4-1f3fc",
  59011. "uc_output": "1f3c4-1f3fc",
  59012. "uc_match": "1f3c4-1f3fc",
  59013. "uc_greedy": "1f3c4-1f3fc",
  59014. "shortnames": [":surfer_tone2:"],
  59015. "category": "activity"
  59016. },
  59017. ":person_surfing_tone3:": {
  59018. "uc_base": "1f3c4-1f3fd",
  59019. "uc_output": "1f3c4-1f3fd",
  59020. "uc_match": "1f3c4-1f3fd",
  59021. "uc_greedy": "1f3c4-1f3fd",
  59022. "shortnames": [":surfer_tone3:"],
  59023. "category": "activity"
  59024. },
  59025. ":person_surfing_tone4:": {
  59026. "uc_base": "1f3c4-1f3fe",
  59027. "uc_output": "1f3c4-1f3fe",
  59028. "uc_match": "1f3c4-1f3fe",
  59029. "uc_greedy": "1f3c4-1f3fe",
  59030. "shortnames": [":surfer_tone4:"],
  59031. "category": "activity"
  59032. },
  59033. ":person_surfing_tone5:": {
  59034. "uc_base": "1f3c4-1f3ff",
  59035. "uc_output": "1f3c4-1f3ff",
  59036. "uc_match": "1f3c4-1f3ff",
  59037. "uc_greedy": "1f3c4-1f3ff",
  59038. "shortnames": [":surfer_tone5:"],
  59039. "category": "activity"
  59040. },
  59041. ":person_swimming_tone1:": {
  59042. "uc_base": "1f3ca-1f3fb",
  59043. "uc_output": "1f3ca-1f3fb",
  59044. "uc_match": "1f3ca-1f3fb",
  59045. "uc_greedy": "1f3ca-1f3fb",
  59046. "shortnames": [":swimmer_tone1:"],
  59047. "category": "activity"
  59048. },
  59049. ":person_swimming_tone2:": {
  59050. "uc_base": "1f3ca-1f3fc",
  59051. "uc_output": "1f3ca-1f3fc",
  59052. "uc_match": "1f3ca-1f3fc",
  59053. "uc_greedy": "1f3ca-1f3fc",
  59054. "shortnames": [":swimmer_tone2:"],
  59055. "category": "activity"
  59056. },
  59057. ":person_swimming_tone3:": {
  59058. "uc_base": "1f3ca-1f3fd",
  59059. "uc_output": "1f3ca-1f3fd",
  59060. "uc_match": "1f3ca-1f3fd",
  59061. "uc_greedy": "1f3ca-1f3fd",
  59062. "shortnames": [":swimmer_tone3:"],
  59063. "category": "activity"
  59064. },
  59065. ":person_swimming_tone4:": {
  59066. "uc_base": "1f3ca-1f3fe",
  59067. "uc_output": "1f3ca-1f3fe",
  59068. "uc_match": "1f3ca-1f3fe",
  59069. "uc_greedy": "1f3ca-1f3fe",
  59070. "shortnames": [":swimmer_tone4:"],
  59071. "category": "activity"
  59072. },
  59073. ":person_swimming_tone5:": {
  59074. "uc_base": "1f3ca-1f3ff",
  59075. "uc_output": "1f3ca-1f3ff",
  59076. "uc_match": "1f3ca-1f3ff",
  59077. "uc_greedy": "1f3ca-1f3ff",
  59078. "shortnames": [":swimmer_tone5:"],
  59079. "category": "activity"
  59080. },
  59081. ":person_tipping_hand_tone1:": {
  59082. "uc_base": "1f481-1f3fb",
  59083. "uc_output": "1f481-1f3fb",
  59084. "uc_match": "1f481-1f3fb",
  59085. "uc_greedy": "1f481-1f3fb",
  59086. "shortnames": [":information_desk_person_tone1:"],
  59087. "category": "people"
  59088. },
  59089. ":person_tipping_hand_tone2:": {
  59090. "uc_base": "1f481-1f3fc",
  59091. "uc_output": "1f481-1f3fc",
  59092. "uc_match": "1f481-1f3fc",
  59093. "uc_greedy": "1f481-1f3fc",
  59094. "shortnames": [":information_desk_person_tone2:"],
  59095. "category": "people"
  59096. },
  59097. ":person_tipping_hand_tone3:": {
  59098. "uc_base": "1f481-1f3fd",
  59099. "uc_output": "1f481-1f3fd",
  59100. "uc_match": "1f481-1f3fd",
  59101. "uc_greedy": "1f481-1f3fd",
  59102. "shortnames": [":information_desk_person_tone3:"],
  59103. "category": "people"
  59104. },
  59105. ":person_tipping_hand_tone4:": {
  59106. "uc_base": "1f481-1f3fe",
  59107. "uc_output": "1f481-1f3fe",
  59108. "uc_match": "1f481-1f3fe",
  59109. "uc_greedy": "1f481-1f3fe",
  59110. "shortnames": [":information_desk_person_tone4:"],
  59111. "category": "people"
  59112. },
  59113. ":person_tipping_hand_tone5:": {
  59114. "uc_base": "1f481-1f3ff",
  59115. "uc_output": "1f481-1f3ff",
  59116. "uc_match": "1f481-1f3ff",
  59117. "uc_greedy": "1f481-1f3ff",
  59118. "shortnames": [":information_desk_person_tone5:"],
  59119. "category": "people"
  59120. },
  59121. ":person_walking_tone1:": {
  59122. "uc_base": "1f6b6-1f3fb",
  59123. "uc_output": "1f6b6-1f3fb",
  59124. "uc_match": "1f6b6-1f3fb",
  59125. "uc_greedy": "1f6b6-1f3fb",
  59126. "shortnames": [":walking_tone1:"],
  59127. "category": "people"
  59128. },
  59129. ":person_walking_tone2:": {
  59130. "uc_base": "1f6b6-1f3fc",
  59131. "uc_output": "1f6b6-1f3fc",
  59132. "uc_match": "1f6b6-1f3fc",
  59133. "uc_greedy": "1f6b6-1f3fc",
  59134. "shortnames": [":walking_tone2:"],
  59135. "category": "people"
  59136. },
  59137. ":person_walking_tone3:": {
  59138. "uc_base": "1f6b6-1f3fd",
  59139. "uc_output": "1f6b6-1f3fd",
  59140. "uc_match": "1f6b6-1f3fd",
  59141. "uc_greedy": "1f6b6-1f3fd",
  59142. "shortnames": [":walking_tone3:"],
  59143. "category": "people"
  59144. },
  59145. ":person_walking_tone4:": {
  59146. "uc_base": "1f6b6-1f3fe",
  59147. "uc_output": "1f6b6-1f3fe",
  59148. "uc_match": "1f6b6-1f3fe",
  59149. "uc_greedy": "1f6b6-1f3fe",
  59150. "shortnames": [":walking_tone4:"],
  59151. "category": "people"
  59152. },
  59153. ":person_walking_tone5:": {
  59154. "uc_base": "1f6b6-1f3ff",
  59155. "uc_output": "1f6b6-1f3ff",
  59156. "uc_match": "1f6b6-1f3ff",
  59157. "uc_greedy": "1f6b6-1f3ff",
  59158. "shortnames": [":walking_tone5:"],
  59159. "category": "people"
  59160. },
  59161. ":person_wearing_turban_tone1:": {
  59162. "uc_base": "1f473-1f3fb",
  59163. "uc_output": "1f473-1f3fb",
  59164. "uc_match": "1f473-1f3fb",
  59165. "uc_greedy": "1f473-1f3fb",
  59166. "shortnames": [":man_with_turban_tone1:"],
  59167. "category": "people"
  59168. },
  59169. ":person_wearing_turban_tone2:": {
  59170. "uc_base": "1f473-1f3fc",
  59171. "uc_output": "1f473-1f3fc",
  59172. "uc_match": "1f473-1f3fc",
  59173. "uc_greedy": "1f473-1f3fc",
  59174. "shortnames": [":man_with_turban_tone2:"],
  59175. "category": "people"
  59176. },
  59177. ":person_wearing_turban_tone3:": {
  59178. "uc_base": "1f473-1f3fd",
  59179. "uc_output": "1f473-1f3fd",
  59180. "uc_match": "1f473-1f3fd",
  59181. "uc_greedy": "1f473-1f3fd",
  59182. "shortnames": [":man_with_turban_tone3:"],
  59183. "category": "people"
  59184. },
  59185. ":person_wearing_turban_tone4:": {
  59186. "uc_base": "1f473-1f3fe",
  59187. "uc_output": "1f473-1f3fe",
  59188. "uc_match": "1f473-1f3fe",
  59189. "uc_greedy": "1f473-1f3fe",
  59190. "shortnames": [":man_with_turban_tone4:"],
  59191. "category": "people"
  59192. },
  59193. ":person_wearing_turban_tone5:": {
  59194. "uc_base": "1f473-1f3ff",
  59195. "uc_output": "1f473-1f3ff",
  59196. "uc_match": "1f473-1f3ff",
  59197. "uc_greedy": "1f473-1f3ff",
  59198. "shortnames": [":man_with_turban_tone5:"],
  59199. "category": "people"
  59200. },
  59201. ":point_down_tone1:": {
  59202. "uc_base": "1f447-1f3fb",
  59203. "uc_output": "1f447-1f3fb",
  59204. "uc_match": "1f447-1f3fb",
  59205. "uc_greedy": "1f447-1f3fb",
  59206. "shortnames": [],
  59207. "category": "people"
  59208. },
  59209. ":point_down_tone2:": {
  59210. "uc_base": "1f447-1f3fc",
  59211. "uc_output": "1f447-1f3fc",
  59212. "uc_match": "1f447-1f3fc",
  59213. "uc_greedy": "1f447-1f3fc",
  59214. "shortnames": [],
  59215. "category": "people"
  59216. },
  59217. ":point_down_tone3:": {
  59218. "uc_base": "1f447-1f3fd",
  59219. "uc_output": "1f447-1f3fd",
  59220. "uc_match": "1f447-1f3fd",
  59221. "uc_greedy": "1f447-1f3fd",
  59222. "shortnames": [],
  59223. "category": "people"
  59224. },
  59225. ":point_down_tone4:": {
  59226. "uc_base": "1f447-1f3fe",
  59227. "uc_output": "1f447-1f3fe",
  59228. "uc_match": "1f447-1f3fe",
  59229. "uc_greedy": "1f447-1f3fe",
  59230. "shortnames": [],
  59231. "category": "people"
  59232. },
  59233. ":point_down_tone5:": {
  59234. "uc_base": "1f447-1f3ff",
  59235. "uc_output": "1f447-1f3ff",
  59236. "uc_match": "1f447-1f3ff",
  59237. "uc_greedy": "1f447-1f3ff",
  59238. "shortnames": [],
  59239. "category": "people"
  59240. },
  59241. ":point_left_tone1:": {
  59242. "uc_base": "1f448-1f3fb",
  59243. "uc_output": "1f448-1f3fb",
  59244. "uc_match": "1f448-1f3fb",
  59245. "uc_greedy": "1f448-1f3fb",
  59246. "shortnames": [],
  59247. "category": "people"
  59248. },
  59249. ":point_left_tone2:": {
  59250. "uc_base": "1f448-1f3fc",
  59251. "uc_output": "1f448-1f3fc",
  59252. "uc_match": "1f448-1f3fc",
  59253. "uc_greedy": "1f448-1f3fc",
  59254. "shortnames": [],
  59255. "category": "people"
  59256. },
  59257. ":point_left_tone3:": {
  59258. "uc_base": "1f448-1f3fd",
  59259. "uc_output": "1f448-1f3fd",
  59260. "uc_match": "1f448-1f3fd",
  59261. "uc_greedy": "1f448-1f3fd",
  59262. "shortnames": [],
  59263. "category": "people"
  59264. },
  59265. ":point_left_tone4:": {
  59266. "uc_base": "1f448-1f3fe",
  59267. "uc_output": "1f448-1f3fe",
  59268. "uc_match": "1f448-1f3fe",
  59269. "uc_greedy": "1f448-1f3fe",
  59270. "shortnames": [],
  59271. "category": "people"
  59272. },
  59273. ":point_left_tone5:": {
  59274. "uc_base": "1f448-1f3ff",
  59275. "uc_output": "1f448-1f3ff",
  59276. "uc_match": "1f448-1f3ff",
  59277. "uc_greedy": "1f448-1f3ff",
  59278. "shortnames": [],
  59279. "category": "people"
  59280. },
  59281. ":point_right_tone1:": {
  59282. "uc_base": "1f449-1f3fb",
  59283. "uc_output": "1f449-1f3fb",
  59284. "uc_match": "1f449-1f3fb",
  59285. "uc_greedy": "1f449-1f3fb",
  59286. "shortnames": [],
  59287. "category": "people"
  59288. },
  59289. ":point_right_tone2:": {
  59290. "uc_base": "1f449-1f3fc",
  59291. "uc_output": "1f449-1f3fc",
  59292. "uc_match": "1f449-1f3fc",
  59293. "uc_greedy": "1f449-1f3fc",
  59294. "shortnames": [],
  59295. "category": "people"
  59296. },
  59297. ":point_right_tone3:": {
  59298. "uc_base": "1f449-1f3fd",
  59299. "uc_output": "1f449-1f3fd",
  59300. "uc_match": "1f449-1f3fd",
  59301. "uc_greedy": "1f449-1f3fd",
  59302. "shortnames": [],
  59303. "category": "people"
  59304. },
  59305. ":point_right_tone4:": {
  59306. "uc_base": "1f449-1f3fe",
  59307. "uc_output": "1f449-1f3fe",
  59308. "uc_match": "1f449-1f3fe",
  59309. "uc_greedy": "1f449-1f3fe",
  59310. "shortnames": [],
  59311. "category": "people"
  59312. },
  59313. ":point_right_tone5:": {
  59314. "uc_base": "1f449-1f3ff",
  59315. "uc_output": "1f449-1f3ff",
  59316. "uc_match": "1f449-1f3ff",
  59317. "uc_greedy": "1f449-1f3ff",
  59318. "shortnames": [],
  59319. "category": "people"
  59320. },
  59321. ":point_up_2_tone1:": {
  59322. "uc_base": "1f446-1f3fb",
  59323. "uc_output": "1f446-1f3fb",
  59324. "uc_match": "1f446-1f3fb",
  59325. "uc_greedy": "1f446-1f3fb",
  59326. "shortnames": [],
  59327. "category": "people"
  59328. },
  59329. ":point_up_2_tone2:": {
  59330. "uc_base": "1f446-1f3fc",
  59331. "uc_output": "1f446-1f3fc",
  59332. "uc_match": "1f446-1f3fc",
  59333. "uc_greedy": "1f446-1f3fc",
  59334. "shortnames": [],
  59335. "category": "people"
  59336. },
  59337. ":point_up_2_tone3:": {
  59338. "uc_base": "1f446-1f3fd",
  59339. "uc_output": "1f446-1f3fd",
  59340. "uc_match": "1f446-1f3fd",
  59341. "uc_greedy": "1f446-1f3fd",
  59342. "shortnames": [],
  59343. "category": "people"
  59344. },
  59345. ":point_up_2_tone4:": {
  59346. "uc_base": "1f446-1f3fe",
  59347. "uc_output": "1f446-1f3fe",
  59348. "uc_match": "1f446-1f3fe",
  59349. "uc_greedy": "1f446-1f3fe",
  59350. "shortnames": [],
  59351. "category": "people"
  59352. },
  59353. ":point_up_2_tone5:": {
  59354. "uc_base": "1f446-1f3ff",
  59355. "uc_output": "1f446-1f3ff",
  59356. "uc_match": "1f446-1f3ff",
  59357. "uc_greedy": "1f446-1f3ff",
  59358. "shortnames": [],
  59359. "category": "people"
  59360. },
  59361. ":police_officer_tone1:": {
  59362. "uc_base": "1f46e-1f3fb",
  59363. "uc_output": "1f46e-1f3fb",
  59364. "uc_match": "1f46e-1f3fb",
  59365. "uc_greedy": "1f46e-1f3fb",
  59366. "shortnames": [":cop_tone1:"],
  59367. "category": "people"
  59368. },
  59369. ":police_officer_tone2:": {
  59370. "uc_base": "1f46e-1f3fc",
  59371. "uc_output": "1f46e-1f3fc",
  59372. "uc_match": "1f46e-1f3fc",
  59373. "uc_greedy": "1f46e-1f3fc",
  59374. "shortnames": [":cop_tone2:"],
  59375. "category": "people"
  59376. },
  59377. ":police_officer_tone3:": {
  59378. "uc_base": "1f46e-1f3fd",
  59379. "uc_output": "1f46e-1f3fd",
  59380. "uc_match": "1f46e-1f3fd",
  59381. "uc_greedy": "1f46e-1f3fd",
  59382. "shortnames": [":cop_tone3:"],
  59383. "category": "people"
  59384. },
  59385. ":police_officer_tone4:": {
  59386. "uc_base": "1f46e-1f3fe",
  59387. "uc_output": "1f46e-1f3fe",
  59388. "uc_match": "1f46e-1f3fe",
  59389. "uc_greedy": "1f46e-1f3fe",
  59390. "shortnames": [":cop_tone4:"],
  59391. "category": "people"
  59392. },
  59393. ":police_officer_tone5:": {
  59394. "uc_base": "1f46e-1f3ff",
  59395. "uc_output": "1f46e-1f3ff",
  59396. "uc_match": "1f46e-1f3ff",
  59397. "uc_greedy": "1f46e-1f3ff",
  59398. "shortnames": [":cop_tone5:"],
  59399. "category": "people"
  59400. },
  59401. ":pray_tone1:": {
  59402. "uc_base": "1f64f-1f3fb",
  59403. "uc_output": "1f64f-1f3fb",
  59404. "uc_match": "1f64f-1f3fb",
  59405. "uc_greedy": "1f64f-1f3fb",
  59406. "shortnames": [],
  59407. "category": "people"
  59408. },
  59409. ":pray_tone2:": {
  59410. "uc_base": "1f64f-1f3fc",
  59411. "uc_output": "1f64f-1f3fc",
  59412. "uc_match": "1f64f-1f3fc",
  59413. "uc_greedy": "1f64f-1f3fc",
  59414. "shortnames": [],
  59415. "category": "people"
  59416. },
  59417. ":pray_tone3:": {
  59418. "uc_base": "1f64f-1f3fd",
  59419. "uc_output": "1f64f-1f3fd",
  59420. "uc_match": "1f64f-1f3fd",
  59421. "uc_greedy": "1f64f-1f3fd",
  59422. "shortnames": [],
  59423. "category": "people"
  59424. },
  59425. ":pray_tone4:": {
  59426. "uc_base": "1f64f-1f3fe",
  59427. "uc_output": "1f64f-1f3fe",
  59428. "uc_match": "1f64f-1f3fe",
  59429. "uc_greedy": "1f64f-1f3fe",
  59430. "shortnames": [],
  59431. "category": "people"
  59432. },
  59433. ":pray_tone5:": {
  59434. "uc_base": "1f64f-1f3ff",
  59435. "uc_output": "1f64f-1f3ff",
  59436. "uc_match": "1f64f-1f3ff",
  59437. "uc_greedy": "1f64f-1f3ff",
  59438. "shortnames": [],
  59439. "category": "people"
  59440. },
  59441. ":pregnant_woman_tone1:": {
  59442. "uc_base": "1f930-1f3fb",
  59443. "uc_output": "1f930-1f3fb",
  59444. "uc_match": "1f930-1f3fb",
  59445. "uc_greedy": "1f930-1f3fb",
  59446. "shortnames": [":expecting_woman_tone1:"],
  59447. "category": "people"
  59448. },
  59449. ":pregnant_woman_tone2:": {
  59450. "uc_base": "1f930-1f3fc",
  59451. "uc_output": "1f930-1f3fc",
  59452. "uc_match": "1f930-1f3fc",
  59453. "uc_greedy": "1f930-1f3fc",
  59454. "shortnames": [":expecting_woman_tone2:"],
  59455. "category": "people"
  59456. },
  59457. ":pregnant_woman_tone3:": {
  59458. "uc_base": "1f930-1f3fd",
  59459. "uc_output": "1f930-1f3fd",
  59460. "uc_match": "1f930-1f3fd",
  59461. "uc_greedy": "1f930-1f3fd",
  59462. "shortnames": [":expecting_woman_tone3:"],
  59463. "category": "people"
  59464. },
  59465. ":pregnant_woman_tone4:": {
  59466. "uc_base": "1f930-1f3fe",
  59467. "uc_output": "1f930-1f3fe",
  59468. "uc_match": "1f930-1f3fe",
  59469. "uc_greedy": "1f930-1f3fe",
  59470. "shortnames": [":expecting_woman_tone4:"],
  59471. "category": "people"
  59472. },
  59473. ":pregnant_woman_tone5:": {
  59474. "uc_base": "1f930-1f3ff",
  59475. "uc_output": "1f930-1f3ff",
  59476. "uc_match": "1f930-1f3ff",
  59477. "uc_greedy": "1f930-1f3ff",
  59478. "shortnames": [":expecting_woman_tone5:"],
  59479. "category": "people"
  59480. },
  59481. ":prince_tone1:": {
  59482. "uc_base": "1f934-1f3fb",
  59483. "uc_output": "1f934-1f3fb",
  59484. "uc_match": "1f934-1f3fb",
  59485. "uc_greedy": "1f934-1f3fb",
  59486. "shortnames": [],
  59487. "category": "people"
  59488. },
  59489. ":prince_tone2:": {
  59490. "uc_base": "1f934-1f3fc",
  59491. "uc_output": "1f934-1f3fc",
  59492. "uc_match": "1f934-1f3fc",
  59493. "uc_greedy": "1f934-1f3fc",
  59494. "shortnames": [],
  59495. "category": "people"
  59496. },
  59497. ":prince_tone3:": {
  59498. "uc_base": "1f934-1f3fd",
  59499. "uc_output": "1f934-1f3fd",
  59500. "uc_match": "1f934-1f3fd",
  59501. "uc_greedy": "1f934-1f3fd",
  59502. "shortnames": [],
  59503. "category": "people"
  59504. },
  59505. ":prince_tone4:": {
  59506. "uc_base": "1f934-1f3fe",
  59507. "uc_output": "1f934-1f3fe",
  59508. "uc_match": "1f934-1f3fe",
  59509. "uc_greedy": "1f934-1f3fe",
  59510. "shortnames": [],
  59511. "category": "people"
  59512. },
  59513. ":prince_tone5:": {
  59514. "uc_base": "1f934-1f3ff",
  59515. "uc_output": "1f934-1f3ff",
  59516. "uc_match": "1f934-1f3ff",
  59517. "uc_greedy": "1f934-1f3ff",
  59518. "shortnames": [],
  59519. "category": "people"
  59520. },
  59521. ":princess_tone1:": {
  59522. "uc_base": "1f478-1f3fb",
  59523. "uc_output": "1f478-1f3fb",
  59524. "uc_match": "1f478-1f3fb",
  59525. "uc_greedy": "1f478-1f3fb",
  59526. "shortnames": [],
  59527. "category": "people"
  59528. },
  59529. ":princess_tone2:": {
  59530. "uc_base": "1f478-1f3fc",
  59531. "uc_output": "1f478-1f3fc",
  59532. "uc_match": "1f478-1f3fc",
  59533. "uc_greedy": "1f478-1f3fc",
  59534. "shortnames": [],
  59535. "category": "people"
  59536. },
  59537. ":princess_tone3:": {
  59538. "uc_base": "1f478-1f3fd",
  59539. "uc_output": "1f478-1f3fd",
  59540. "uc_match": "1f478-1f3fd",
  59541. "uc_greedy": "1f478-1f3fd",
  59542. "shortnames": [],
  59543. "category": "people"
  59544. },
  59545. ":princess_tone4:": {
  59546. "uc_base": "1f478-1f3fe",
  59547. "uc_output": "1f478-1f3fe",
  59548. "uc_match": "1f478-1f3fe",
  59549. "uc_greedy": "1f478-1f3fe",
  59550. "shortnames": [],
  59551. "category": "people"
  59552. },
  59553. ":princess_tone5:": {
  59554. "uc_base": "1f478-1f3ff",
  59555. "uc_output": "1f478-1f3ff",
  59556. "uc_match": "1f478-1f3ff",
  59557. "uc_greedy": "1f478-1f3ff",
  59558. "shortnames": [],
  59559. "category": "people"
  59560. },
  59561. ":punch_tone1:": {
  59562. "uc_base": "1f44a-1f3fb",
  59563. "uc_output": "1f44a-1f3fb",
  59564. "uc_match": "1f44a-1f3fb",
  59565. "uc_greedy": "1f44a-1f3fb",
  59566. "shortnames": [],
  59567. "category": "people"
  59568. },
  59569. ":punch_tone2:": {
  59570. "uc_base": "1f44a-1f3fc",
  59571. "uc_output": "1f44a-1f3fc",
  59572. "uc_match": "1f44a-1f3fc",
  59573. "uc_greedy": "1f44a-1f3fc",
  59574. "shortnames": [],
  59575. "category": "people"
  59576. },
  59577. ":punch_tone3:": {
  59578. "uc_base": "1f44a-1f3fd",
  59579. "uc_output": "1f44a-1f3fd",
  59580. "uc_match": "1f44a-1f3fd",
  59581. "uc_greedy": "1f44a-1f3fd",
  59582. "shortnames": [],
  59583. "category": "people"
  59584. },
  59585. ":punch_tone4:": {
  59586. "uc_base": "1f44a-1f3fe",
  59587. "uc_output": "1f44a-1f3fe",
  59588. "uc_match": "1f44a-1f3fe",
  59589. "uc_greedy": "1f44a-1f3fe",
  59590. "shortnames": [],
  59591. "category": "people"
  59592. },
  59593. ":punch_tone5:": {
  59594. "uc_base": "1f44a-1f3ff",
  59595. "uc_output": "1f44a-1f3ff",
  59596. "uc_match": "1f44a-1f3ff",
  59597. "uc_greedy": "1f44a-1f3ff",
  59598. "shortnames": [],
  59599. "category": "people"
  59600. },
  59601. ":raised_back_of_hand_tone1:": {
  59602. "uc_base": "1f91a-1f3fb",
  59603. "uc_output": "1f91a-1f3fb",
  59604. "uc_match": "1f91a-1f3fb",
  59605. "uc_greedy": "1f91a-1f3fb",
  59606. "shortnames": [":back_of_hand_tone1:"],
  59607. "category": "people"
  59608. },
  59609. ":raised_back_of_hand_tone2:": {
  59610. "uc_base": "1f91a-1f3fc",
  59611. "uc_output": "1f91a-1f3fc",
  59612. "uc_match": "1f91a-1f3fc",
  59613. "uc_greedy": "1f91a-1f3fc",
  59614. "shortnames": [":back_of_hand_tone2:"],
  59615. "category": "people"
  59616. },
  59617. ":raised_back_of_hand_tone3:": {
  59618. "uc_base": "1f91a-1f3fd",
  59619. "uc_output": "1f91a-1f3fd",
  59620. "uc_match": "1f91a-1f3fd",
  59621. "uc_greedy": "1f91a-1f3fd",
  59622. "shortnames": [":back_of_hand_tone3:"],
  59623. "category": "people"
  59624. },
  59625. ":raised_back_of_hand_tone4:": {
  59626. "uc_base": "1f91a-1f3fe",
  59627. "uc_output": "1f91a-1f3fe",
  59628. "uc_match": "1f91a-1f3fe",
  59629. "uc_greedy": "1f91a-1f3fe",
  59630. "shortnames": [":back_of_hand_tone4:"],
  59631. "category": "people"
  59632. },
  59633. ":raised_back_of_hand_tone5:": {
  59634. "uc_base": "1f91a-1f3ff",
  59635. "uc_output": "1f91a-1f3ff",
  59636. "uc_match": "1f91a-1f3ff",
  59637. "uc_greedy": "1f91a-1f3ff",
  59638. "shortnames": [":back_of_hand_tone5:"],
  59639. "category": "people"
  59640. },
  59641. ":raised_hands_tone1:": {
  59642. "uc_base": "1f64c-1f3fb",
  59643. "uc_output": "1f64c-1f3fb",
  59644. "uc_match": "1f64c-1f3fb",
  59645. "uc_greedy": "1f64c-1f3fb",
  59646. "shortnames": [],
  59647. "category": "people"
  59648. },
  59649. ":raised_hands_tone2:": {
  59650. "uc_base": "1f64c-1f3fc",
  59651. "uc_output": "1f64c-1f3fc",
  59652. "uc_match": "1f64c-1f3fc",
  59653. "uc_greedy": "1f64c-1f3fc",
  59654. "shortnames": [],
  59655. "category": "people"
  59656. },
  59657. ":raised_hands_tone3:": {
  59658. "uc_base": "1f64c-1f3fd",
  59659. "uc_output": "1f64c-1f3fd",
  59660. "uc_match": "1f64c-1f3fd",
  59661. "uc_greedy": "1f64c-1f3fd",
  59662. "shortnames": [],
  59663. "category": "people"
  59664. },
  59665. ":raised_hands_tone4:": {
  59666. "uc_base": "1f64c-1f3fe",
  59667. "uc_output": "1f64c-1f3fe",
  59668. "uc_match": "1f64c-1f3fe",
  59669. "uc_greedy": "1f64c-1f3fe",
  59670. "shortnames": [],
  59671. "category": "people"
  59672. },
  59673. ":raised_hands_tone5:": {
  59674. "uc_base": "1f64c-1f3ff",
  59675. "uc_output": "1f64c-1f3ff",
  59676. "uc_match": "1f64c-1f3ff",
  59677. "uc_greedy": "1f64c-1f3ff",
  59678. "shortnames": [],
  59679. "category": "people"
  59680. },
  59681. ":right_facing_fist_tone1:": {
  59682. "uc_base": "1f91c-1f3fb",
  59683. "uc_output": "1f91c-1f3fb",
  59684. "uc_match": "1f91c-1f3fb",
  59685. "uc_greedy": "1f91c-1f3fb",
  59686. "shortnames": [":right_fist_tone1:"],
  59687. "category": "people"
  59688. },
  59689. ":right_facing_fist_tone2:": {
  59690. "uc_base": "1f91c-1f3fc",
  59691. "uc_output": "1f91c-1f3fc",
  59692. "uc_match": "1f91c-1f3fc",
  59693. "uc_greedy": "1f91c-1f3fc",
  59694. "shortnames": [":right_fist_tone2:"],
  59695. "category": "people"
  59696. },
  59697. ":right_facing_fist_tone3:": {
  59698. "uc_base": "1f91c-1f3fd",
  59699. "uc_output": "1f91c-1f3fd",
  59700. "uc_match": "1f91c-1f3fd",
  59701. "uc_greedy": "1f91c-1f3fd",
  59702. "shortnames": [":right_fist_tone3:"],
  59703. "category": "people"
  59704. },
  59705. ":right_facing_fist_tone4:": {
  59706. "uc_base": "1f91c-1f3fe",
  59707. "uc_output": "1f91c-1f3fe",
  59708. "uc_match": "1f91c-1f3fe",
  59709. "uc_greedy": "1f91c-1f3fe",
  59710. "shortnames": [":right_fist_tone4:"],
  59711. "category": "people"
  59712. },
  59713. ":right_facing_fist_tone5:": {
  59714. "uc_base": "1f91c-1f3ff",
  59715. "uc_output": "1f91c-1f3ff",
  59716. "uc_match": "1f91c-1f3ff",
  59717. "uc_greedy": "1f91c-1f3ff",
  59718. "shortnames": [":right_fist_tone5:"],
  59719. "category": "people"
  59720. },
  59721. ":santa_tone1:": {
  59722. "uc_base": "1f385-1f3fb",
  59723. "uc_output": "1f385-1f3fb",
  59724. "uc_match": "1f385-1f3fb",
  59725. "uc_greedy": "1f385-1f3fb",
  59726. "shortnames": [],
  59727. "category": "people"
  59728. },
  59729. ":santa_tone2:": {
  59730. "uc_base": "1f385-1f3fc",
  59731. "uc_output": "1f385-1f3fc",
  59732. "uc_match": "1f385-1f3fc",
  59733. "uc_greedy": "1f385-1f3fc",
  59734. "shortnames": [],
  59735. "category": "people"
  59736. },
  59737. ":santa_tone3:": {
  59738. "uc_base": "1f385-1f3fd",
  59739. "uc_output": "1f385-1f3fd",
  59740. "uc_match": "1f385-1f3fd",
  59741. "uc_greedy": "1f385-1f3fd",
  59742. "shortnames": [],
  59743. "category": "people"
  59744. },
  59745. ":santa_tone4:": {
  59746. "uc_base": "1f385-1f3fe",
  59747. "uc_output": "1f385-1f3fe",
  59748. "uc_match": "1f385-1f3fe",
  59749. "uc_greedy": "1f385-1f3fe",
  59750. "shortnames": [],
  59751. "category": "people"
  59752. },
  59753. ":santa_tone5:": {
  59754. "uc_base": "1f385-1f3ff",
  59755. "uc_output": "1f385-1f3ff",
  59756. "uc_match": "1f385-1f3ff",
  59757. "uc_greedy": "1f385-1f3ff",
  59758. "shortnames": [],
  59759. "category": "people"
  59760. },
  59761. ":selfie_tone1:": {
  59762. "uc_base": "1f933-1f3fb",
  59763. "uc_output": "1f933-1f3fb",
  59764. "uc_match": "1f933-1f3fb",
  59765. "uc_greedy": "1f933-1f3fb",
  59766. "shortnames": [],
  59767. "category": "people"
  59768. },
  59769. ":selfie_tone2:": {
  59770. "uc_base": "1f933-1f3fc",
  59771. "uc_output": "1f933-1f3fc",
  59772. "uc_match": "1f933-1f3fc",
  59773. "uc_greedy": "1f933-1f3fc",
  59774. "shortnames": [],
  59775. "category": "people"
  59776. },
  59777. ":selfie_tone3:": {
  59778. "uc_base": "1f933-1f3fd",
  59779. "uc_output": "1f933-1f3fd",
  59780. "uc_match": "1f933-1f3fd",
  59781. "uc_greedy": "1f933-1f3fd",
  59782. "shortnames": [],
  59783. "category": "people"
  59784. },
  59785. ":selfie_tone4:": {
  59786. "uc_base": "1f933-1f3fe",
  59787. "uc_output": "1f933-1f3fe",
  59788. "uc_match": "1f933-1f3fe",
  59789. "uc_greedy": "1f933-1f3fe",
  59790. "shortnames": [],
  59791. "category": "people"
  59792. },
  59793. ":selfie_tone5:": {
  59794. "uc_base": "1f933-1f3ff",
  59795. "uc_output": "1f933-1f3ff",
  59796. "uc_match": "1f933-1f3ff",
  59797. "uc_greedy": "1f933-1f3ff",
  59798. "shortnames": [],
  59799. "category": "people"
  59800. },
  59801. ":snowboarder_tone1:": {
  59802. "uc_base": "1f3c2-1f3fb",
  59803. "uc_output": "1f3c2-1f3fb",
  59804. "uc_match": "1f3c2-1f3fb",
  59805. "uc_greedy": "1f3c2-1f3fb",
  59806. "shortnames": [":snowboarder_light_skin_tone:"],
  59807. "category": "activity"
  59808. },
  59809. ":snowboarder_tone2:": {
  59810. "uc_base": "1f3c2-1f3fc",
  59811. "uc_output": "1f3c2-1f3fc",
  59812. "uc_match": "1f3c2-1f3fc",
  59813. "uc_greedy": "1f3c2-1f3fc",
  59814. "shortnames": [":snowboarder_medium_light_skin_tone:"],
  59815. "category": "activity"
  59816. },
  59817. ":snowboarder_tone3:": {
  59818. "uc_base": "1f3c2-1f3fd",
  59819. "uc_output": "1f3c2-1f3fd",
  59820. "uc_match": "1f3c2-1f3fd",
  59821. "uc_greedy": "1f3c2-1f3fd",
  59822. "shortnames": [":snowboarder_medium_skin_tone:"],
  59823. "category": "activity"
  59824. },
  59825. ":snowboarder_tone4:": {
  59826. "uc_base": "1f3c2-1f3fe",
  59827. "uc_output": "1f3c2-1f3fe",
  59828. "uc_match": "1f3c2-1f3fe",
  59829. "uc_greedy": "1f3c2-1f3fe",
  59830. "shortnames": [":snowboarder_medium_dark_skin_tone:"],
  59831. "category": "activity"
  59832. },
  59833. ":snowboarder_tone5:": {
  59834. "uc_base": "1f3c2-1f3ff",
  59835. "uc_output": "1f3c2-1f3ff",
  59836. "uc_match": "1f3c2-1f3ff",
  59837. "uc_greedy": "1f3c2-1f3ff",
  59838. "shortnames": [":snowboarder_dark_skin_tone:"],
  59839. "category": "activity"
  59840. },
  59841. ":thumbsdown_tone1:": {
  59842. "uc_base": "1f44e-1f3fb",
  59843. "uc_output": "1f44e-1f3fb",
  59844. "uc_match": "1f44e-1f3fb",
  59845. "uc_greedy": "1f44e-1f3fb",
  59846. "shortnames": [":-1_tone1:", ":thumbdown_tone1:"],
  59847. "category": "people"
  59848. },
  59849. ":thumbsdown_tone2:": {
  59850. "uc_base": "1f44e-1f3fc",
  59851. "uc_output": "1f44e-1f3fc",
  59852. "uc_match": "1f44e-1f3fc",
  59853. "uc_greedy": "1f44e-1f3fc",
  59854. "shortnames": [":-1_tone2:", ":thumbdown_tone2:"],
  59855. "category": "people"
  59856. },
  59857. ":thumbsdown_tone3:": {
  59858. "uc_base": "1f44e-1f3fd",
  59859. "uc_output": "1f44e-1f3fd",
  59860. "uc_match": "1f44e-1f3fd",
  59861. "uc_greedy": "1f44e-1f3fd",
  59862. "shortnames": [":-1_tone3:", ":thumbdown_tone3:"],
  59863. "category": "people"
  59864. },
  59865. ":thumbsdown_tone4:": {
  59866. "uc_base": "1f44e-1f3fe",
  59867. "uc_output": "1f44e-1f3fe",
  59868. "uc_match": "1f44e-1f3fe",
  59869. "uc_greedy": "1f44e-1f3fe",
  59870. "shortnames": [":-1_tone4:", ":thumbdown_tone4:"],
  59871. "category": "people"
  59872. },
  59873. ":thumbsdown_tone5:": {
  59874. "uc_base": "1f44e-1f3ff",
  59875. "uc_output": "1f44e-1f3ff",
  59876. "uc_match": "1f44e-1f3ff",
  59877. "uc_greedy": "1f44e-1f3ff",
  59878. "shortnames": [":-1_tone5:", ":thumbdown_tone5:"],
  59879. "category": "people"
  59880. },
  59881. ":thumbsup_tone1:": {
  59882. "uc_base": "1f44d-1f3fb",
  59883. "uc_output": "1f44d-1f3fb",
  59884. "uc_match": "1f44d-1f3fb",
  59885. "uc_greedy": "1f44d-1f3fb",
  59886. "shortnames": [":+1_tone1:", ":thumbup_tone1:"],
  59887. "category": "people"
  59888. },
  59889. ":thumbsup_tone2:": {
  59890. "uc_base": "1f44d-1f3fc",
  59891. "uc_output": "1f44d-1f3fc",
  59892. "uc_match": "1f44d-1f3fc",
  59893. "uc_greedy": "1f44d-1f3fc",
  59894. "shortnames": [":+1_tone2:", ":thumbup_tone2:"],
  59895. "category": "people"
  59896. },
  59897. ":thumbsup_tone3:": {
  59898. "uc_base": "1f44d-1f3fd",
  59899. "uc_output": "1f44d-1f3fd",
  59900. "uc_match": "1f44d-1f3fd",
  59901. "uc_greedy": "1f44d-1f3fd",
  59902. "shortnames": [":+1_tone3:", ":thumbup_tone3:"],
  59903. "category": "people"
  59904. },
  59905. ":thumbsup_tone4:": {
  59906. "uc_base": "1f44d-1f3fe",
  59907. "uc_output": "1f44d-1f3fe",
  59908. "uc_match": "1f44d-1f3fe",
  59909. "uc_greedy": "1f44d-1f3fe",
  59910. "shortnames": [":+1_tone4:", ":thumbup_tone4:"],
  59911. "category": "people"
  59912. },
  59913. ":thumbsup_tone5:": {
  59914. "uc_base": "1f44d-1f3ff",
  59915. "uc_output": "1f44d-1f3ff",
  59916. "uc_match": "1f44d-1f3ff",
  59917. "uc_greedy": "1f44d-1f3ff",
  59918. "shortnames": [":+1_tone5:", ":thumbup_tone5:"],
  59919. "category": "people"
  59920. },
  59921. ":united_nations:": {
  59922. "uc_base": "1f1fa-1f1f3",
  59923. "uc_output": "1f1fa-1f1f3",
  59924. "uc_match": "1f1fa-1f1f3",
  59925. "uc_greedy": "1f1fa-1f1f3",
  59926. "shortnames": [],
  59927. "category": "flags"
  59928. },
  59929. ":vampire_tone1:": {
  59930. "uc_base": "1f9db-1f3fb",
  59931. "uc_output": "1f9db-1f3fb",
  59932. "uc_match": "1f9db-1f3fb",
  59933. "uc_greedy": "1f9db-1f3fb",
  59934. "shortnames": [":vampire_light_skin_tone:"],
  59935. "category": "people"
  59936. },
  59937. ":vampire_tone2:": {
  59938. "uc_base": "1f9db-1f3fc",
  59939. "uc_output": "1f9db-1f3fc",
  59940. "uc_match": "1f9db-1f3fc",
  59941. "uc_greedy": "1f9db-1f3fc",
  59942. "shortnames": [":vampire_medium_light_skin_tone:"],
  59943. "category": "people"
  59944. },
  59945. ":vampire_tone3:": {
  59946. "uc_base": "1f9db-1f3fd",
  59947. "uc_output": "1f9db-1f3fd",
  59948. "uc_match": "1f9db-1f3fd",
  59949. "uc_greedy": "1f9db-1f3fd",
  59950. "shortnames": [":vampire_medium_skin_tone:"],
  59951. "category": "people"
  59952. },
  59953. ":vampire_tone4:": {
  59954. "uc_base": "1f9db-1f3fe",
  59955. "uc_output": "1f9db-1f3fe",
  59956. "uc_match": "1f9db-1f3fe",
  59957. "uc_greedy": "1f9db-1f3fe",
  59958. "shortnames": [":vampire_medium_dark_skin_tone:"],
  59959. "category": "people"
  59960. },
  59961. ":vampire_tone5:": {
  59962. "uc_base": "1f9db-1f3ff",
  59963. "uc_output": "1f9db-1f3ff",
  59964. "uc_match": "1f9db-1f3ff",
  59965. "uc_greedy": "1f9db-1f3ff",
  59966. "shortnames": [":vampire_dark_skin_tone:"],
  59967. "category": "people"
  59968. },
  59969. ":vulcan_tone1:": {
  59970. "uc_base": "1f596-1f3fb",
  59971. "uc_output": "1f596-1f3fb",
  59972. "uc_match": "1f596-1f3fb",
  59973. "uc_greedy": "1f596-1f3fb",
  59974. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone1:"],
  59975. "category": "people"
  59976. },
  59977. ":vulcan_tone2:": {
  59978. "uc_base": "1f596-1f3fc",
  59979. "uc_output": "1f596-1f3fc",
  59980. "uc_match": "1f596-1f3fc",
  59981. "uc_greedy": "1f596-1f3fc",
  59982. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone2:"],
  59983. "category": "people"
  59984. },
  59985. ":vulcan_tone3:": {
  59986. "uc_base": "1f596-1f3fd",
  59987. "uc_output": "1f596-1f3fd",
  59988. "uc_match": "1f596-1f3fd",
  59989. "uc_greedy": "1f596-1f3fd",
  59990. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone3:"],
  59991. "category": "people"
  59992. },
  59993. ":vulcan_tone4:": {
  59994. "uc_base": "1f596-1f3fe",
  59995. "uc_output": "1f596-1f3fe",
  59996. "uc_match": "1f596-1f3fe",
  59997. "uc_greedy": "1f596-1f3fe",
  59998. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone4:"],
  59999. "category": "people"
  60000. },
  60001. ":vulcan_tone5:": {
  60002. "uc_base": "1f596-1f3ff",
  60003. "uc_output": "1f596-1f3ff",
  60004. "uc_match": "1f596-1f3ff",
  60005. "uc_greedy": "1f596-1f3ff",
  60006. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone5:"],
  60007. "category": "people"
  60008. },
  60009. ":wave_tone1:": {
  60010. "uc_base": "1f44b-1f3fb",
  60011. "uc_output": "1f44b-1f3fb",
  60012. "uc_match": "1f44b-1f3fb",
  60013. "uc_greedy": "1f44b-1f3fb",
  60014. "shortnames": [],
  60015. "category": "people"
  60016. },
  60017. ":wave_tone2:": {
  60018. "uc_base": "1f44b-1f3fc",
  60019. "uc_output": "1f44b-1f3fc",
  60020. "uc_match": "1f44b-1f3fc",
  60021. "uc_greedy": "1f44b-1f3fc",
  60022. "shortnames": [],
  60023. "category": "people"
  60024. },
  60025. ":wave_tone3:": {
  60026. "uc_base": "1f44b-1f3fd",
  60027. "uc_output": "1f44b-1f3fd",
  60028. "uc_match": "1f44b-1f3fd",
  60029. "uc_greedy": "1f44b-1f3fd",
  60030. "shortnames": [],
  60031. "category": "people"
  60032. },
  60033. ":wave_tone4:": {
  60034. "uc_base": "1f44b-1f3fe",
  60035. "uc_output": "1f44b-1f3fe",
  60036. "uc_match": "1f44b-1f3fe",
  60037. "uc_greedy": "1f44b-1f3fe",
  60038. "shortnames": [],
  60039. "category": "people"
  60040. },
  60041. ":wave_tone5:": {
  60042. "uc_base": "1f44b-1f3ff",
  60043. "uc_output": "1f44b-1f3ff",
  60044. "uc_match": "1f44b-1f3ff",
  60045. "uc_greedy": "1f44b-1f3ff",
  60046. "shortnames": [],
  60047. "category": "people"
  60048. },
  60049. ":woman_tone1:": {
  60050. "uc_base": "1f469-1f3fb",
  60051. "uc_output": "1f469-1f3fb",
  60052. "uc_match": "1f469-1f3fb",
  60053. "uc_greedy": "1f469-1f3fb",
  60054. "shortnames": [],
  60055. "category": "people"
  60056. },
  60057. ":woman_tone2:": {
  60058. "uc_base": "1f469-1f3fc",
  60059. "uc_output": "1f469-1f3fc",
  60060. "uc_match": "1f469-1f3fc",
  60061. "uc_greedy": "1f469-1f3fc",
  60062. "shortnames": [],
  60063. "category": "people"
  60064. },
  60065. ":woman_tone3:": {
  60066. "uc_base": "1f469-1f3fd",
  60067. "uc_output": "1f469-1f3fd",
  60068. "uc_match": "1f469-1f3fd",
  60069. "uc_greedy": "1f469-1f3fd",
  60070. "shortnames": [],
  60071. "category": "people"
  60072. },
  60073. ":woman_tone4:": {
  60074. "uc_base": "1f469-1f3fe",
  60075. "uc_output": "1f469-1f3fe",
  60076. "uc_match": "1f469-1f3fe",
  60077. "uc_greedy": "1f469-1f3fe",
  60078. "shortnames": [],
  60079. "category": "people"
  60080. },
  60081. ":woman_tone5:": {
  60082. "uc_base": "1f469-1f3ff",
  60083. "uc_output": "1f469-1f3ff",
  60084. "uc_match": "1f469-1f3ff",
  60085. "uc_greedy": "1f469-1f3ff",
  60086. "shortnames": [],
  60087. "category": "people"
  60088. },
  60089. ":woman_with_headscarf_tone1:": {
  60090. "uc_base": "1f9d5-1f3fb",
  60091. "uc_output": "1f9d5-1f3fb",
  60092. "uc_match": "1f9d5-1f3fb",
  60093. "uc_greedy": "1f9d5-1f3fb",
  60094. "shortnames": [":woman_with_headscarf_light_skin_tone:"],
  60095. "category": "people"
  60096. },
  60097. ":woman_with_headscarf_tone2:": {
  60098. "uc_base": "1f9d5-1f3fc",
  60099. "uc_output": "1f9d5-1f3fc",
  60100. "uc_match": "1f9d5-1f3fc",
  60101. "uc_greedy": "1f9d5-1f3fc",
  60102. "shortnames": [":woman_with_headscarf_medium_light_skin_tone:"],
  60103. "category": "people"
  60104. },
  60105. ":woman_with_headscarf_tone3:": {
  60106. "uc_base": "1f9d5-1f3fd",
  60107. "uc_output": "1f9d5-1f3fd",
  60108. "uc_match": "1f9d5-1f3fd",
  60109. "uc_greedy": "1f9d5-1f3fd",
  60110. "shortnames": [":woman_with_headscarf_medium_skin_tone:"],
  60111. "category": "people"
  60112. },
  60113. ":woman_with_headscarf_tone4:": {
  60114. "uc_base": "1f9d5-1f3fe",
  60115. "uc_output": "1f9d5-1f3fe",
  60116. "uc_match": "1f9d5-1f3fe",
  60117. "uc_greedy": "1f9d5-1f3fe",
  60118. "shortnames": [":woman_with_headscarf_medium_dark_skin_tone:"],
  60119. "category": "people"
  60120. },
  60121. ":woman_with_headscarf_tone5:": {
  60122. "uc_base": "1f9d5-1f3ff",
  60123. "uc_output": "1f9d5-1f3ff",
  60124. "uc_match": "1f9d5-1f3ff",
  60125. "uc_greedy": "1f9d5-1f3ff",
  60126. "shortnames": [":woman_with_headscarf_dark_skin_tone:"],
  60127. "category": "people"
  60128. },
  60129. ":fist_tone1:": {
  60130. "uc_base": "270a-1f3fb",
  60131. "uc_output": "270a-1f3fb",
  60132. "uc_match": "270a-1f3fb",
  60133. "uc_greedy": "270a-1f3fb",
  60134. "shortnames": [],
  60135. "category": "people"
  60136. },
  60137. ":fist_tone2:": {
  60138. "uc_base": "270a-1f3fc",
  60139. "uc_output": "270a-1f3fc",
  60140. "uc_match": "270a-1f3fc",
  60141. "uc_greedy": "270a-1f3fc",
  60142. "shortnames": [],
  60143. "category": "people"
  60144. },
  60145. ":fist_tone3:": {
  60146. "uc_base": "270a-1f3fd",
  60147. "uc_output": "270a-1f3fd",
  60148. "uc_match": "270a-1f3fd",
  60149. "uc_greedy": "270a-1f3fd",
  60150. "shortnames": [],
  60151. "category": "people"
  60152. },
  60153. ":fist_tone4:": {
  60154. "uc_base": "270a-1f3fe",
  60155. "uc_output": "270a-1f3fe",
  60156. "uc_match": "270a-1f3fe",
  60157. "uc_greedy": "270a-1f3fe",
  60158. "shortnames": [],
  60159. "category": "people"
  60160. },
  60161. ":fist_tone5:": {
  60162. "uc_base": "270a-1f3ff",
  60163. "uc_output": "270a-1f3ff",
  60164. "uc_match": "270a-1f3ff",
  60165. "uc_greedy": "270a-1f3ff",
  60166. "shortnames": [],
  60167. "category": "people"
  60168. },
  60169. ":person_bouncing_ball_tone1:": {
  60170. "uc_base": "26f9-1f3fb",
  60171. "uc_output": "26f9-1f3fb",
  60172. "uc_match": "26f9-fe0f-1f3fb",
  60173. "uc_greedy": "26f9-fe0f-1f3fb",
  60174. "shortnames": [":basketball_player_tone1:", ":person_with_ball_tone1:"],
  60175. "category": "activity"
  60176. },
  60177. ":person_bouncing_ball_tone2:": {
  60178. "uc_base": "26f9-1f3fc",
  60179. "uc_output": "26f9-1f3fc",
  60180. "uc_match": "26f9-fe0f-1f3fc",
  60181. "uc_greedy": "26f9-fe0f-1f3fc",
  60182. "shortnames": [":basketball_player_tone2:", ":person_with_ball_tone2:"],
  60183. "category": "activity"
  60184. },
  60185. ":person_bouncing_ball_tone3:": {
  60186. "uc_base": "26f9-1f3fd",
  60187. "uc_output": "26f9-1f3fd",
  60188. "uc_match": "26f9-fe0f-1f3fd",
  60189. "uc_greedy": "26f9-fe0f-1f3fd",
  60190. "shortnames": [":basketball_player_tone3:", ":person_with_ball_tone3:"],
  60191. "category": "activity"
  60192. },
  60193. ":person_bouncing_ball_tone4:": {
  60194. "uc_base": "26f9-1f3fe",
  60195. "uc_output": "26f9-1f3fe",
  60196. "uc_match": "26f9-fe0f-1f3fe",
  60197. "uc_greedy": "26f9-fe0f-1f3fe",
  60198. "shortnames": [":basketball_player_tone4:", ":person_with_ball_tone4:"],
  60199. "category": "activity"
  60200. },
  60201. ":person_bouncing_ball_tone5:": {
  60202. "uc_base": "26f9-1f3ff",
  60203. "uc_output": "26f9-1f3ff",
  60204. "uc_match": "26f9-fe0f-1f3ff",
  60205. "uc_greedy": "26f9-fe0f-1f3ff",
  60206. "shortnames": [":basketball_player_tone5:", ":person_with_ball_tone5:"],
  60207. "category": "activity"
  60208. },
  60209. ":point_up_tone1:": {
  60210. "uc_base": "261d-1f3fb",
  60211. "uc_output": "261d-1f3fb",
  60212. "uc_match": "261d-fe0f-1f3fb",
  60213. "uc_greedy": "261d-fe0f-1f3fb",
  60214. "shortnames": [],
  60215. "category": "people"
  60216. },
  60217. ":point_up_tone2:": {
  60218. "uc_base": "261d-1f3fc",
  60219. "uc_output": "261d-1f3fc",
  60220. "uc_match": "261d-fe0f-1f3fc",
  60221. "uc_greedy": "261d-fe0f-1f3fc",
  60222. "shortnames": [],
  60223. "category": "people"
  60224. },
  60225. ":point_up_tone3:": {
  60226. "uc_base": "261d-1f3fd",
  60227. "uc_output": "261d-1f3fd",
  60228. "uc_match": "261d-fe0f-1f3fd",
  60229. "uc_greedy": "261d-fe0f-1f3fd",
  60230. "shortnames": [],
  60231. "category": "people"
  60232. },
  60233. ":point_up_tone4:": {
  60234. "uc_base": "261d-1f3fe",
  60235. "uc_output": "261d-1f3fe",
  60236. "uc_match": "261d-fe0f-1f3fe",
  60237. "uc_greedy": "261d-fe0f-1f3fe",
  60238. "shortnames": [],
  60239. "category": "people"
  60240. },
  60241. ":point_up_tone5:": {
  60242. "uc_base": "261d-1f3ff",
  60243. "uc_output": "261d-1f3ff",
  60244. "uc_match": "261d-fe0f-1f3ff",
  60245. "uc_greedy": "261d-fe0f-1f3ff",
  60246. "shortnames": [],
  60247. "category": "people"
  60248. },
  60249. ":raised_hand_tone1:": {
  60250. "uc_base": "270b-1f3fb",
  60251. "uc_output": "270b-1f3fb",
  60252. "uc_match": "270b-1f3fb",
  60253. "uc_greedy": "270b-1f3fb",
  60254. "shortnames": [],
  60255. "category": "people"
  60256. },
  60257. ":raised_hand_tone2:": {
  60258. "uc_base": "270b-1f3fc",
  60259. "uc_output": "270b-1f3fc",
  60260. "uc_match": "270b-1f3fc",
  60261. "uc_greedy": "270b-1f3fc",
  60262. "shortnames": [],
  60263. "category": "people"
  60264. },
  60265. ":raised_hand_tone3:": {
  60266. "uc_base": "270b-1f3fd",
  60267. "uc_output": "270b-1f3fd",
  60268. "uc_match": "270b-1f3fd",
  60269. "uc_greedy": "270b-1f3fd",
  60270. "shortnames": [],
  60271. "category": "people"
  60272. },
  60273. ":raised_hand_tone4:": {
  60274. "uc_base": "270b-1f3fe",
  60275. "uc_output": "270b-1f3fe",
  60276. "uc_match": "270b-1f3fe",
  60277. "uc_greedy": "270b-1f3fe",
  60278. "shortnames": [],
  60279. "category": "people"
  60280. },
  60281. ":raised_hand_tone5:": {
  60282. "uc_base": "270b-1f3ff",
  60283. "uc_output": "270b-1f3ff",
  60284. "uc_match": "270b-1f3ff",
  60285. "uc_greedy": "270b-1f3ff",
  60286. "shortnames": [],
  60287. "category": "people"
  60288. },
  60289. ":v_tone1:": {
  60290. "uc_base": "270c-1f3fb",
  60291. "uc_output": "270c-1f3fb",
  60292. "uc_match": "270c-fe0f-1f3fb",
  60293. "uc_greedy": "270c-fe0f-1f3fb",
  60294. "shortnames": [],
  60295. "category": "people"
  60296. },
  60297. ":v_tone2:": {
  60298. "uc_base": "270c-1f3fc",
  60299. "uc_output": "270c-1f3fc",
  60300. "uc_match": "270c-fe0f-1f3fc",
  60301. "uc_greedy": "270c-fe0f-1f3fc",
  60302. "shortnames": [],
  60303. "category": "people"
  60304. },
  60305. ":v_tone3:": {
  60306. "uc_base": "270c-1f3fd",
  60307. "uc_output": "270c-1f3fd",
  60308. "uc_match": "270c-fe0f-1f3fd",
  60309. "uc_greedy": "270c-fe0f-1f3fd",
  60310. "shortnames": [],
  60311. "category": "people"
  60312. },
  60313. ":v_tone4:": {
  60314. "uc_base": "270c-1f3fe",
  60315. "uc_output": "270c-1f3fe",
  60316. "uc_match": "270c-fe0f-1f3fe",
  60317. "uc_greedy": "270c-fe0f-1f3fe",
  60318. "shortnames": [],
  60319. "category": "people"
  60320. },
  60321. ":v_tone5:": {
  60322. "uc_base": "270c-1f3ff",
  60323. "uc_output": "270c-1f3ff",
  60324. "uc_match": "270c-fe0f-1f3ff",
  60325. "uc_greedy": "270c-fe0f-1f3ff",
  60326. "shortnames": [],
  60327. "category": "people"
  60328. },
  60329. ":writing_hand_tone1:": {
  60330. "uc_base": "270d-1f3fb",
  60331. "uc_output": "270d-1f3fb",
  60332. "uc_match": "270d-fe0f-1f3fb",
  60333. "uc_greedy": "270d-fe0f-1f3fb",
  60334. "shortnames": [],
  60335. "category": "people"
  60336. },
  60337. ":writing_hand_tone2:": {
  60338. "uc_base": "270d-1f3fc",
  60339. "uc_output": "270d-1f3fc",
  60340. "uc_match": "270d-fe0f-1f3fc",
  60341. "uc_greedy": "270d-fe0f-1f3fc",
  60342. "shortnames": [],
  60343. "category": "people"
  60344. },
  60345. ":writing_hand_tone3:": {
  60346. "uc_base": "270d-1f3fd",
  60347. "uc_output": "270d-1f3fd",
  60348. "uc_match": "270d-fe0f-1f3fd",
  60349. "uc_greedy": "270d-fe0f-1f3fd",
  60350. "shortnames": [],
  60351. "category": "people"
  60352. },
  60353. ":writing_hand_tone4:": {
  60354. "uc_base": "270d-1f3fe",
  60355. "uc_output": "270d-1f3fe",
  60356. "uc_match": "270d-fe0f-1f3fe",
  60357. "uc_greedy": "270d-fe0f-1f3fe",
  60358. "shortnames": [],
  60359. "category": "people"
  60360. },
  60361. ":writing_hand_tone5:": {
  60362. "uc_base": "270d-1f3ff",
  60363. "uc_output": "270d-1f3ff",
  60364. "uc_match": "270d-fe0f-1f3ff",
  60365. "uc_greedy": "270d-fe0f-1f3ff",
  60366. "shortnames": [],
  60367. "category": "people"
  60368. },
  60369. ":100:": {
  60370. "uc_base": "1f4af",
  60371. "uc_output": "1f4af",
  60372. "uc_match": "1f4af",
  60373. "uc_greedy": "1f4af",
  60374. "shortnames": [],
  60375. "category": "symbols"
  60376. },
  60377. ":1234:": {
  60378. "uc_base": "1f522",
  60379. "uc_output": "1f522",
  60380. "uc_match": "1f522",
  60381. "uc_greedy": "1f522",
  60382. "shortnames": [],
  60383. "category": "symbols"
  60384. },
  60385. ":8ball:": {
  60386. "uc_base": "1f3b1",
  60387. "uc_output": "1f3b1",
  60388. "uc_match": "1f3b1",
  60389. "uc_greedy": "1f3b1",
  60390. "shortnames": [],
  60391. "category": "activity"
  60392. },
  60393. ":a:": {
  60394. "uc_base": "1f170",
  60395. "uc_output": "1f170",
  60396. "uc_match": "1f170-fe0f",
  60397. "uc_greedy": "1f170-fe0f",
  60398. "shortnames": [],
  60399. "category": "symbols"
  60400. },
  60401. ":ab:": {
  60402. "uc_base": "1f18e",
  60403. "uc_output": "1f18e",
  60404. "uc_match": "1f18e",
  60405. "uc_greedy": "1f18e",
  60406. "shortnames": [],
  60407. "category": "symbols"
  60408. },
  60409. ":abc:": {
  60410. "uc_base": "1f524",
  60411. "uc_output": "1f524",
  60412. "uc_match": "1f524",
  60413. "uc_greedy": "1f524",
  60414. "shortnames": [],
  60415. "category": "symbols"
  60416. },
  60417. ":abcd:": {
  60418. "uc_base": "1f521",
  60419. "uc_output": "1f521",
  60420. "uc_match": "1f521",
  60421. "uc_greedy": "1f521",
  60422. "shortnames": [],
  60423. "category": "symbols"
  60424. },
  60425. ":accept:": {
  60426. "uc_base": "1f251",
  60427. "uc_output": "1f251",
  60428. "uc_match": "1f251",
  60429. "uc_greedy": "1f251",
  60430. "shortnames": [],
  60431. "category": "symbols"
  60432. },
  60433. ":adult:": {
  60434. "uc_base": "1f9d1",
  60435. "uc_output": "1f9d1",
  60436. "uc_match": "1f9d1",
  60437. "uc_greedy": "1f9d1",
  60438. "shortnames": [],
  60439. "category": "people"
  60440. },
  60441. ":aerial_tramway:": {
  60442. "uc_base": "1f6a1",
  60443. "uc_output": "1f6a1",
  60444. "uc_match": "1f6a1",
  60445. "uc_greedy": "1f6a1",
  60446. "shortnames": [],
  60447. "category": "travel"
  60448. },
  60449. ":airplane_arriving:": {
  60450. "uc_base": "1f6ec",
  60451. "uc_output": "1f6ec",
  60452. "uc_match": "1f6ec",
  60453. "uc_greedy": "1f6ec",
  60454. "shortnames": [],
  60455. "category": "travel"
  60456. },
  60457. ":airplane_departure:": {
  60458. "uc_base": "1f6eb",
  60459. "uc_output": "1f6eb",
  60460. "uc_match": "1f6eb",
  60461. "uc_greedy": "1f6eb",
  60462. "shortnames": [],
  60463. "category": "travel"
  60464. },
  60465. ":airplane_small:": {
  60466. "uc_base": "1f6e9",
  60467. "uc_output": "1f6e9",
  60468. "uc_match": "1f6e9-fe0f",
  60469. "uc_greedy": "1f6e9-fe0f",
  60470. "shortnames": [":small_airplane:"],
  60471. "category": "travel"
  60472. },
  60473. ":alien:": {
  60474. "uc_base": "1f47d",
  60475. "uc_output": "1f47d",
  60476. "uc_match": "1f47d-fe0f",
  60477. "uc_greedy": "1f47d-fe0f",
  60478. "shortnames": [],
  60479. "category": "people"
  60480. },
  60481. ":ambulance:": {
  60482. "uc_base": "1f691",
  60483. "uc_output": "1f691",
  60484. "uc_match": "1f691-fe0f",
  60485. "uc_greedy": "1f691-fe0f",
  60486. "shortnames": [],
  60487. "category": "travel"
  60488. },
  60489. ":amphora:": {
  60490. "uc_base": "1f3fa",
  60491. "uc_output": "1f3fa",
  60492. "uc_match": "1f3fa",
  60493. "uc_greedy": "1f3fa",
  60494. "shortnames": [],
  60495. "category": "objects"
  60496. },
  60497. ":angel:": {
  60498. "uc_base": "1f47c",
  60499. "uc_output": "1f47c",
  60500. "uc_match": "1f47c",
  60501. "uc_greedy": "1f47c",
  60502. "shortnames": [],
  60503. "category": "people"
  60504. },
  60505. ":anger:": {
  60506. "uc_base": "1f4a2",
  60507. "uc_output": "1f4a2",
  60508. "uc_match": "1f4a2",
  60509. "uc_greedy": "1f4a2",
  60510. "shortnames": [],
  60511. "category": "symbols"
  60512. },
  60513. ":anger_right:": {
  60514. "uc_base": "1f5ef",
  60515. "uc_output": "1f5ef",
  60516. "uc_match": "1f5ef-fe0f",
  60517. "uc_greedy": "1f5ef-fe0f",
  60518. "shortnames": [":right_anger_bubble:"],
  60519. "category": "symbols"
  60520. },
  60521. ":angry:": {
  60522. "uc_base": "1f620",
  60523. "uc_output": "1f620",
  60524. "uc_match": "1f620",
  60525. "uc_greedy": "1f620",
  60526. "shortnames": [],
  60527. "category": "people"
  60528. },
  60529. ":anguished:": {
  60530. "uc_base": "1f627",
  60531. "uc_output": "1f627",
  60532. "uc_match": "1f627",
  60533. "uc_greedy": "1f627",
  60534. "shortnames": [],
  60535. "category": "people"
  60536. },
  60537. ":ant:": {
  60538. "uc_base": "1f41c",
  60539. "uc_output": "1f41c",
  60540. "uc_match": "1f41c",
  60541. "uc_greedy": "1f41c",
  60542. "shortnames": [],
  60543. "category": "nature"
  60544. },
  60545. ":apple:": {
  60546. "uc_base": "1f34e",
  60547. "uc_output": "1f34e",
  60548. "uc_match": "1f34e",
  60549. "uc_greedy": "1f34e",
  60550. "shortnames": [],
  60551. "category": "food"
  60552. },
  60553. ":arrow_down_small:": {
  60554. "uc_base": "1f53d",
  60555. "uc_output": "1f53d",
  60556. "uc_match": "1f53d",
  60557. "uc_greedy": "1f53d",
  60558. "shortnames": [],
  60559. "category": "symbols"
  60560. },
  60561. ":arrow_up_small:": {
  60562. "uc_base": "1f53c",
  60563. "uc_output": "1f53c",
  60564. "uc_match": "1f53c",
  60565. "uc_greedy": "1f53c",
  60566. "shortnames": [],
  60567. "category": "symbols"
  60568. },
  60569. ":arrows_clockwise:": {
  60570. "uc_base": "1f503",
  60571. "uc_output": "1f503",
  60572. "uc_match": "1f503",
  60573. "uc_greedy": "1f503",
  60574. "shortnames": [],
  60575. "category": "symbols"
  60576. },
  60577. ":arrows_counterclockwise:": {
  60578. "uc_base": "1f504",
  60579. "uc_output": "1f504",
  60580. "uc_match": "1f504",
  60581. "uc_greedy": "1f504",
  60582. "shortnames": [],
  60583. "category": "symbols"
  60584. },
  60585. ":art:": {
  60586. "uc_base": "1f3a8",
  60587. "uc_output": "1f3a8",
  60588. "uc_match": "1f3a8",
  60589. "uc_greedy": "1f3a8",
  60590. "shortnames": [],
  60591. "category": "activity"
  60592. },
  60593. ":articulated_lorry:": {
  60594. "uc_base": "1f69b",
  60595. "uc_output": "1f69b",
  60596. "uc_match": "1f69b",
  60597. "uc_greedy": "1f69b",
  60598. "shortnames": [],
  60599. "category": "travel"
  60600. },
  60601. ":astonished:": {
  60602. "uc_base": "1f632",
  60603. "uc_output": "1f632",
  60604. "uc_match": "1f632",
  60605. "uc_greedy": "1f632",
  60606. "shortnames": [],
  60607. "category": "people"
  60608. },
  60609. ":athletic_shoe:": {
  60610. "uc_base": "1f45f",
  60611. "uc_output": "1f45f",
  60612. "uc_match": "1f45f",
  60613. "uc_greedy": "1f45f",
  60614. "shortnames": [],
  60615. "category": "people"
  60616. },
  60617. ":atm:": {
  60618. "uc_base": "1f3e7",
  60619. "uc_output": "1f3e7",
  60620. "uc_match": "1f3e7",
  60621. "uc_greedy": "1f3e7",
  60622. "shortnames": [],
  60623. "category": "symbols"
  60624. },
  60625. ":avocado:": {
  60626. "uc_base": "1f951",
  60627. "uc_output": "1f951",
  60628. "uc_match": "1f951",
  60629. "uc_greedy": "1f951",
  60630. "shortnames": [],
  60631. "category": "food"
  60632. },
  60633. ":b:": {
  60634. "uc_base": "1f171",
  60635. "uc_output": "1f171",
  60636. "uc_match": "1f171-fe0f",
  60637. "uc_greedy": "1f171-fe0f",
  60638. "shortnames": [],
  60639. "category": "symbols"
  60640. },
  60641. ":baby:": {
  60642. "uc_base": "1f476",
  60643. "uc_output": "1f476",
  60644. "uc_match": "1f476",
  60645. "uc_greedy": "1f476",
  60646. "shortnames": [],
  60647. "category": "people"
  60648. },
  60649. ":baby_bottle:": {
  60650. "uc_base": "1f37c",
  60651. "uc_output": "1f37c",
  60652. "uc_match": "1f37c",
  60653. "uc_greedy": "1f37c",
  60654. "shortnames": [],
  60655. "category": "food"
  60656. },
  60657. ":baby_chick:": {
  60658. "uc_base": "1f424",
  60659. "uc_output": "1f424",
  60660. "uc_match": "1f424",
  60661. "uc_greedy": "1f424",
  60662. "shortnames": [],
  60663. "category": "nature"
  60664. },
  60665. ":baby_symbol:": {
  60666. "uc_base": "1f6bc",
  60667. "uc_output": "1f6bc",
  60668. "uc_match": "1f6bc-fe0f",
  60669. "uc_greedy": "1f6bc-fe0f",
  60670. "shortnames": [],
  60671. "category": "symbols"
  60672. },
  60673. ":back:": {
  60674. "uc_base": "1f519",
  60675. "uc_output": "1f519",
  60676. "uc_match": "1f519",
  60677. "uc_greedy": "1f519",
  60678. "shortnames": [],
  60679. "category": "symbols"
  60680. },
  60681. ":bacon:": {
  60682. "uc_base": "1f953",
  60683. "uc_output": "1f953",
  60684. "uc_match": "1f953",
  60685. "uc_greedy": "1f953",
  60686. "shortnames": [],
  60687. "category": "food"
  60688. },
  60689. ":badminton:": {
  60690. "uc_base": "1f3f8",
  60691. "uc_output": "1f3f8",
  60692. "uc_match": "1f3f8",
  60693. "uc_greedy": "1f3f8",
  60694. "shortnames": [],
  60695. "category": "activity"
  60696. },
  60697. ":baggage_claim:": {
  60698. "uc_base": "1f6c4",
  60699. "uc_output": "1f6c4",
  60700. "uc_match": "1f6c4",
  60701. "uc_greedy": "1f6c4",
  60702. "shortnames": [],
  60703. "category": "symbols"
  60704. },
  60705. ":balloon:": {
  60706. "uc_base": "1f388",
  60707. "uc_output": "1f388",
  60708. "uc_match": "1f388",
  60709. "uc_greedy": "1f388",
  60710. "shortnames": [],
  60711. "category": "objects"
  60712. },
  60713. ":ballot_box:": {
  60714. "uc_base": "1f5f3",
  60715. "uc_output": "1f5f3",
  60716. "uc_match": "1f5f3-fe0f",
  60717. "uc_greedy": "1f5f3-fe0f",
  60718. "shortnames": [":ballot_box_with_ballot:"],
  60719. "category": "objects"
  60720. },
  60721. ":bamboo:": {
  60722. "uc_base": "1f38d",
  60723. "uc_output": "1f38d",
  60724. "uc_match": "1f38d",
  60725. "uc_greedy": "1f38d",
  60726. "shortnames": [],
  60727. "category": "nature"
  60728. },
  60729. ":banana:": {
  60730. "uc_base": "1f34c",
  60731. "uc_output": "1f34c",
  60732. "uc_match": "1f34c",
  60733. "uc_greedy": "1f34c",
  60734. "shortnames": [],
  60735. "category": "food"
  60736. },
  60737. ":bank:": {
  60738. "uc_base": "1f3e6",
  60739. "uc_output": "1f3e6",
  60740. "uc_match": "1f3e6",
  60741. "uc_greedy": "1f3e6",
  60742. "shortnames": [],
  60743. "category": "travel"
  60744. },
  60745. ":bar_chart:": {
  60746. "uc_base": "1f4ca",
  60747. "uc_output": "1f4ca",
  60748. "uc_match": "1f4ca",
  60749. "uc_greedy": "1f4ca",
  60750. "shortnames": [],
  60751. "category": "objects"
  60752. },
  60753. ":barber:": {
  60754. "uc_base": "1f488",
  60755. "uc_output": "1f488",
  60756. "uc_match": "1f488",
  60757. "uc_greedy": "1f488",
  60758. "shortnames": [],
  60759. "category": "objects"
  60760. },
  60761. ":basketball:": {
  60762. "uc_base": "1f3c0",
  60763. "uc_output": "1f3c0",
  60764. "uc_match": "1f3c0",
  60765. "uc_greedy": "1f3c0",
  60766. "shortnames": [],
  60767. "category": "activity"
  60768. },
  60769. ":bat:": {
  60770. "uc_base": "1f987",
  60771. "uc_output": "1f987",
  60772. "uc_match": "1f987",
  60773. "uc_greedy": "1f987",
  60774. "shortnames": [],
  60775. "category": "nature"
  60776. },
  60777. ":bath:": {
  60778. "uc_base": "1f6c0",
  60779. "uc_output": "1f6c0",
  60780. "uc_match": "1f6c0",
  60781. "uc_greedy": "1f6c0",
  60782. "shortnames": [],
  60783. "category": "objects"
  60784. },
  60785. ":bathtub:": {
  60786. "uc_base": "1f6c1",
  60787. "uc_output": "1f6c1",
  60788. "uc_match": "1f6c1",
  60789. "uc_greedy": "1f6c1",
  60790. "shortnames": [],
  60791. "category": "objects"
  60792. },
  60793. ":battery:": {
  60794. "uc_base": "1f50b",
  60795. "uc_output": "1f50b",
  60796. "uc_match": "1f50b",
  60797. "uc_greedy": "1f50b",
  60798. "shortnames": [],
  60799. "category": "objects"
  60800. },
  60801. ":beach:": {
  60802. "uc_base": "1f3d6",
  60803. "uc_output": "1f3d6",
  60804. "uc_match": "1f3d6-fe0f",
  60805. "uc_greedy": "1f3d6-fe0f",
  60806. "shortnames": [":beach_with_umbrella:"],
  60807. "category": "travel"
  60808. },
  60809. ":bear:": {
  60810. "uc_base": "1f43b",
  60811. "uc_output": "1f43b",
  60812. "uc_match": "1f43b",
  60813. "uc_greedy": "1f43b",
  60814. "shortnames": [],
  60815. "category": "nature"
  60816. },
  60817. ":bearded_person:": {
  60818. "uc_base": "1f9d4",
  60819. "uc_output": "1f9d4",
  60820. "uc_match": "1f9d4",
  60821. "uc_greedy": "1f9d4",
  60822. "shortnames": [],
  60823. "category": "people"
  60824. },
  60825. ":bed:": {
  60826. "uc_base": "1f6cf",
  60827. "uc_output": "1f6cf",
  60828. "uc_match": "1f6cf-fe0f",
  60829. "uc_greedy": "1f6cf-fe0f",
  60830. "shortnames": [],
  60831. "category": "objects"
  60832. },
  60833. ":bee:": {
  60834. "uc_base": "1f41d",
  60835. "uc_output": "1f41d",
  60836. "uc_match": "1f41d",
  60837. "uc_greedy": "1f41d",
  60838. "shortnames": [],
  60839. "category": "nature"
  60840. },
  60841. ":beer:": {
  60842. "uc_base": "1f37a",
  60843. "uc_output": "1f37a",
  60844. "uc_match": "1f37a",
  60845. "uc_greedy": "1f37a",
  60846. "shortnames": [],
  60847. "category": "food"
  60848. },
  60849. ":beers:": {
  60850. "uc_base": "1f37b",
  60851. "uc_output": "1f37b",
  60852. "uc_match": "1f37b",
  60853. "uc_greedy": "1f37b",
  60854. "shortnames": [],
  60855. "category": "food"
  60856. },
  60857. ":beetle:": {
  60858. "uc_base": "1f41e",
  60859. "uc_output": "1f41e",
  60860. "uc_match": "1f41e",
  60861. "uc_greedy": "1f41e",
  60862. "shortnames": [],
  60863. "category": "nature"
  60864. },
  60865. ":beginner:": {
  60866. "uc_base": "1f530",
  60867. "uc_output": "1f530",
  60868. "uc_match": "1f530",
  60869. "uc_greedy": "1f530",
  60870. "shortnames": [],
  60871. "category": "symbols"
  60872. },
  60873. ":bell:": {
  60874. "uc_base": "1f514",
  60875. "uc_output": "1f514",
  60876. "uc_match": "1f514",
  60877. "uc_greedy": "1f514",
  60878. "shortnames": [],
  60879. "category": "symbols"
  60880. },
  60881. ":bellhop:": {
  60882. "uc_base": "1f6ce",
  60883. "uc_output": "1f6ce",
  60884. "uc_match": "1f6ce-fe0f",
  60885. "uc_greedy": "1f6ce-fe0f",
  60886. "shortnames": [":bellhop_bell:"],
  60887. "category": "objects"
  60888. },
  60889. ":bento:": {
  60890. "uc_base": "1f371",
  60891. "uc_output": "1f371",
  60892. "uc_match": "1f371",
  60893. "uc_greedy": "1f371",
  60894. "shortnames": [],
  60895. "category": "food"
  60896. },
  60897. ":bike:": {
  60898. "uc_base": "1f6b2",
  60899. "uc_output": "1f6b2",
  60900. "uc_match": "1f6b2-fe0f",
  60901. "uc_greedy": "1f6b2-fe0f",
  60902. "shortnames": [],
  60903. "category": "travel"
  60904. },
  60905. ":bikini:": {
  60906. "uc_base": "1f459",
  60907. "uc_output": "1f459",
  60908. "uc_match": "1f459",
  60909. "uc_greedy": "1f459",
  60910. "shortnames": [],
  60911. "category": "people"
  60912. },
  60913. ":billed_cap:": {
  60914. "uc_base": "1f9e2",
  60915. "uc_output": "1f9e2",
  60916. "uc_match": "1f9e2",
  60917. "uc_greedy": "1f9e2",
  60918. "shortnames": [],
  60919. "category": "people"
  60920. },
  60921. ":bird:": {
  60922. "uc_base": "1f426",
  60923. "uc_output": "1f426",
  60924. "uc_match": "1f426-fe0f",
  60925. "uc_greedy": "1f426-fe0f",
  60926. "shortnames": [],
  60927. "category": "nature"
  60928. },
  60929. ":birthday:": {
  60930. "uc_base": "1f382",
  60931. "uc_output": "1f382",
  60932. "uc_match": "1f382",
  60933. "uc_greedy": "1f382",
  60934. "shortnames": [],
  60935. "category": "food"
  60936. },
  60937. ":black_heart:": {
  60938. "uc_base": "1f5a4",
  60939. "uc_output": "1f5a4",
  60940. "uc_match": "1f5a4",
  60941. "uc_greedy": "1f5a4",
  60942. "shortnames": [],
  60943. "category": "symbols"
  60944. },
  60945. ":black_joker:": {
  60946. "uc_base": "1f0cf",
  60947. "uc_output": "1f0cf",
  60948. "uc_match": "1f0cf",
  60949. "uc_greedy": "1f0cf",
  60950. "shortnames": [],
  60951. "category": "symbols"
  60952. },
  60953. ":black_square_button:": {
  60954. "uc_base": "1f532",
  60955. "uc_output": "1f532",
  60956. "uc_match": "1f532",
  60957. "uc_greedy": "1f532",
  60958. "shortnames": [],
  60959. "category": "symbols"
  60960. },
  60961. ":blond_haired_person:": {
  60962. "uc_base": "1f471",
  60963. "uc_output": "1f471",
  60964. "uc_match": "1f471",
  60965. "uc_greedy": "1f471",
  60966. "shortnames": [":person_with_blond_hair:"],
  60967. "category": "people"
  60968. },
  60969. ":blossom:": {
  60970. "uc_base": "1f33c",
  60971. "uc_output": "1f33c",
  60972. "uc_match": "1f33c",
  60973. "uc_greedy": "1f33c",
  60974. "shortnames": [],
  60975. "category": "nature"
  60976. },
  60977. ":blowfish:": {
  60978. "uc_base": "1f421",
  60979. "uc_output": "1f421",
  60980. "uc_match": "1f421",
  60981. "uc_greedy": "1f421",
  60982. "shortnames": [],
  60983. "category": "nature"
  60984. },
  60985. ":blue_book:": {
  60986. "uc_base": "1f4d8",
  60987. "uc_output": "1f4d8",
  60988. "uc_match": "1f4d8",
  60989. "uc_greedy": "1f4d8",
  60990. "shortnames": [],
  60991. "category": "objects"
  60992. },
  60993. ":blue_car:": {
  60994. "uc_base": "1f699",
  60995. "uc_output": "1f699",
  60996. "uc_match": "1f699",
  60997. "uc_greedy": "1f699",
  60998. "shortnames": [],
  60999. "category": "travel"
  61000. },
  61001. ":blue_circle:": {
  61002. "uc_base": "1f535",
  61003. "uc_output": "1f535",
  61004. "uc_match": "1f535",
  61005. "uc_greedy": "1f535",
  61006. "shortnames": [],
  61007. "category": "symbols"
  61008. },
  61009. ":blue_heart:": {
  61010. "uc_base": "1f499",
  61011. "uc_output": "1f499",
  61012. "uc_match": "1f499",
  61013. "uc_greedy": "1f499",
  61014. "shortnames": [],
  61015. "category": "symbols"
  61016. },
  61017. ":blush:": {
  61018. "uc_base": "1f60a",
  61019. "uc_output": "1f60a",
  61020. "uc_match": "1f60a",
  61021. "uc_greedy": "1f60a",
  61022. "shortnames": [],
  61023. "category": "people"
  61024. },
  61025. ":boar:": {
  61026. "uc_base": "1f417",
  61027. "uc_output": "1f417",
  61028. "uc_match": "1f417",
  61029. "uc_greedy": "1f417",
  61030. "shortnames": [],
  61031. "category": "nature"
  61032. },
  61033. ":bomb:": {
  61034. "uc_base": "1f4a3",
  61035. "uc_output": "1f4a3",
  61036. "uc_match": "1f4a3-fe0f",
  61037. "uc_greedy": "1f4a3-fe0f",
  61038. "shortnames": [],
  61039. "category": "objects"
  61040. },
  61041. ":book:": {
  61042. "uc_base": "1f4d6",
  61043. "uc_output": "1f4d6",
  61044. "uc_match": "1f4d6",
  61045. "uc_greedy": "1f4d6",
  61046. "shortnames": [],
  61047. "category": "objects"
  61048. },
  61049. ":bookmark:": {
  61050. "uc_base": "1f516",
  61051. "uc_output": "1f516",
  61052. "uc_match": "1f516",
  61053. "uc_greedy": "1f516",
  61054. "shortnames": [],
  61055. "category": "objects"
  61056. },
  61057. ":bookmark_tabs:": {
  61058. "uc_base": "1f4d1",
  61059. "uc_output": "1f4d1",
  61060. "uc_match": "1f4d1",
  61061. "uc_greedy": "1f4d1",
  61062. "shortnames": [],
  61063. "category": "objects"
  61064. },
  61065. ":books:": {
  61066. "uc_base": "1f4da",
  61067. "uc_output": "1f4da",
  61068. "uc_match": "1f4da-fe0f",
  61069. "uc_greedy": "1f4da-fe0f",
  61070. "shortnames": [],
  61071. "category": "objects"
  61072. },
  61073. ":boom:": {
  61074. "uc_base": "1f4a5",
  61075. "uc_output": "1f4a5",
  61076. "uc_match": "1f4a5",
  61077. "uc_greedy": "1f4a5",
  61078. "shortnames": [],
  61079. "category": "nature"
  61080. },
  61081. ":boot:": {
  61082. "uc_base": "1f462",
  61083. "uc_output": "1f462",
  61084. "uc_match": "1f462",
  61085. "uc_greedy": "1f462",
  61086. "shortnames": [],
  61087. "category": "people"
  61088. },
  61089. ":bouquet:": {
  61090. "uc_base": "1f490",
  61091. "uc_output": "1f490",
  61092. "uc_match": "1f490",
  61093. "uc_greedy": "1f490",
  61094. "shortnames": [],
  61095. "category": "nature"
  61096. },
  61097. ":bow_and_arrow:": {
  61098. "uc_base": "1f3f9",
  61099. "uc_output": "1f3f9",
  61100. "uc_match": "1f3f9",
  61101. "uc_greedy": "1f3f9",
  61102. "shortnames": [":archery:"],
  61103. "category": "activity"
  61104. },
  61105. ":bowl_with_spoon:": {
  61106. "uc_base": "1f963",
  61107. "uc_output": "1f963",
  61108. "uc_match": "1f963",
  61109. "uc_greedy": "1f963",
  61110. "shortnames": [],
  61111. "category": "food"
  61112. },
  61113. ":bowling:": {
  61114. "uc_base": "1f3b3",
  61115. "uc_output": "1f3b3",
  61116. "uc_match": "1f3b3",
  61117. "uc_greedy": "1f3b3",
  61118. "shortnames": [],
  61119. "category": "activity"
  61120. },
  61121. ":boxing_glove:": {
  61122. "uc_base": "1f94a",
  61123. "uc_output": "1f94a",
  61124. "uc_match": "1f94a",
  61125. "uc_greedy": "1f94a",
  61126. "shortnames": [":boxing_gloves:"],
  61127. "category": "activity"
  61128. },
  61129. ":boy:": {
  61130. "uc_base": "1f466",
  61131. "uc_output": "1f466",
  61132. "uc_match": "1f466",
  61133. "uc_greedy": "1f466",
  61134. "shortnames": [],
  61135. "category": "people"
  61136. },
  61137. ":brain:": {
  61138. "uc_base": "1f9e0",
  61139. "uc_output": "1f9e0",
  61140. "uc_match": "1f9e0",
  61141. "uc_greedy": "1f9e0",
  61142. "shortnames": [],
  61143. "category": "people"
  61144. },
  61145. ":bread:": {
  61146. "uc_base": "1f35e",
  61147. "uc_output": "1f35e",
  61148. "uc_match": "1f35e",
  61149. "uc_greedy": "1f35e",
  61150. "shortnames": [],
  61151. "category": "food"
  61152. },
  61153. ":breast_feeding:": {
  61154. "uc_base": "1f931",
  61155. "uc_output": "1f931",
  61156. "uc_match": "1f931",
  61157. "uc_greedy": "1f931",
  61158. "shortnames": [],
  61159. "category": "people"
  61160. },
  61161. ":bride_with_veil:": {
  61162. "uc_base": "1f470",
  61163. "uc_output": "1f470",
  61164. "uc_match": "1f470",
  61165. "uc_greedy": "1f470",
  61166. "shortnames": [],
  61167. "category": "people"
  61168. },
  61169. ":bridge_at_night:": {
  61170. "uc_base": "1f309",
  61171. "uc_output": "1f309",
  61172. "uc_match": "1f309",
  61173. "uc_greedy": "1f309",
  61174. "shortnames": [],
  61175. "category": "travel"
  61176. },
  61177. ":briefcase:": {
  61178. "uc_base": "1f4bc",
  61179. "uc_output": "1f4bc",
  61180. "uc_match": "1f4bc",
  61181. "uc_greedy": "1f4bc",
  61182. "shortnames": [],
  61183. "category": "people"
  61184. },
  61185. ":broccoli:": {
  61186. "uc_base": "1f966",
  61187. "uc_output": "1f966",
  61188. "uc_match": "1f966",
  61189. "uc_greedy": "1f966",
  61190. "shortnames": [],
  61191. "category": "food"
  61192. },
  61193. ":broken_heart:": {
  61194. "uc_base": "1f494",
  61195. "uc_output": "1f494",
  61196. "uc_match": "1f494",
  61197. "uc_greedy": "1f494",
  61198. "shortnames": [],
  61199. "category": "symbols"
  61200. },
  61201. ":bug:": {
  61202. "uc_base": "1f41b",
  61203. "uc_output": "1f41b",
  61204. "uc_match": "1f41b",
  61205. "uc_greedy": "1f41b",
  61206. "shortnames": [],
  61207. "category": "nature"
  61208. },
  61209. ":bulb:": {
  61210. "uc_base": "1f4a1",
  61211. "uc_output": "1f4a1",
  61212. "uc_match": "1f4a1",
  61213. "uc_greedy": "1f4a1",
  61214. "shortnames": [],
  61215. "category": "objects"
  61216. },
  61217. ":bullettrain_front:": {
  61218. "uc_base": "1f685",
  61219. "uc_output": "1f685",
  61220. "uc_match": "1f685",
  61221. "uc_greedy": "1f685",
  61222. "shortnames": [],
  61223. "category": "travel"
  61224. },
  61225. ":bullettrain_side:": {
  61226. "uc_base": "1f684",
  61227. "uc_output": "1f684",
  61228. "uc_match": "1f684",
  61229. "uc_greedy": "1f684",
  61230. "shortnames": [],
  61231. "category": "travel"
  61232. },
  61233. ":burrito:": {
  61234. "uc_base": "1f32f",
  61235. "uc_output": "1f32f",
  61236. "uc_match": "1f32f",
  61237. "uc_greedy": "1f32f",
  61238. "shortnames": [],
  61239. "category": "food"
  61240. },
  61241. ":bus:": {
  61242. "uc_base": "1f68c",
  61243. "uc_output": "1f68c",
  61244. "uc_match": "1f68c",
  61245. "uc_greedy": "1f68c",
  61246. "shortnames": [],
  61247. "category": "travel"
  61248. },
  61249. ":busstop:": {
  61250. "uc_base": "1f68f",
  61251. "uc_output": "1f68f",
  61252. "uc_match": "1f68f",
  61253. "uc_greedy": "1f68f",
  61254. "shortnames": [],
  61255. "category": "travel"
  61256. },
  61257. ":bust_in_silhouette:": {
  61258. "uc_base": "1f464",
  61259. "uc_output": "1f464",
  61260. "uc_match": "1f464",
  61261. "uc_greedy": "1f464",
  61262. "shortnames": [],
  61263. "category": "people"
  61264. },
  61265. ":busts_in_silhouette:": {
  61266. "uc_base": "1f465",
  61267. "uc_output": "1f465",
  61268. "uc_match": "1f465",
  61269. "uc_greedy": "1f465",
  61270. "shortnames": [],
  61271. "category": "people"
  61272. },
  61273. ":butterfly:": {
  61274. "uc_base": "1f98b",
  61275. "uc_output": "1f98b",
  61276. "uc_match": "1f98b",
  61277. "uc_greedy": "1f98b",
  61278. "shortnames": [],
  61279. "category": "nature"
  61280. },
  61281. ":cactus:": {
  61282. "uc_base": "1f335",
  61283. "uc_output": "1f335",
  61284. "uc_match": "1f335",
  61285. "uc_greedy": "1f335",
  61286. "shortnames": [],
  61287. "category": "nature"
  61288. },
  61289. ":cake:": {
  61290. "uc_base": "1f370",
  61291. "uc_output": "1f370",
  61292. "uc_match": "1f370",
  61293. "uc_greedy": "1f370",
  61294. "shortnames": [],
  61295. "category": "food"
  61296. },
  61297. ":calendar:": {
  61298. "uc_base": "1f4c6",
  61299. "uc_output": "1f4c6",
  61300. "uc_match": "1f4c6",
  61301. "uc_greedy": "1f4c6",
  61302. "shortnames": [],
  61303. "category": "objects"
  61304. },
  61305. ":calendar_spiral:": {
  61306. "uc_base": "1f5d3",
  61307. "uc_output": "1f5d3",
  61308. "uc_match": "1f5d3-fe0f",
  61309. "uc_greedy": "1f5d3-fe0f",
  61310. "shortnames": [":spiral_calendar_pad:"],
  61311. "category": "objects"
  61312. },
  61313. ":call_me:": {
  61314. "uc_base": "1f919",
  61315. "uc_output": "1f919",
  61316. "uc_match": "1f919",
  61317. "uc_greedy": "1f919",
  61318. "shortnames": [":call_me_hand:"],
  61319. "category": "people"
  61320. },
  61321. ":calling:": {
  61322. "uc_base": "1f4f2",
  61323. "uc_output": "1f4f2",
  61324. "uc_match": "1f4f2",
  61325. "uc_greedy": "1f4f2",
  61326. "shortnames": [],
  61327. "category": "objects"
  61328. },
  61329. ":camel:": {
  61330. "uc_base": "1f42b",
  61331. "uc_output": "1f42b",
  61332. "uc_match": "1f42b",
  61333. "uc_greedy": "1f42b",
  61334. "shortnames": [],
  61335. "category": "nature"
  61336. },
  61337. ":camera:": {
  61338. "uc_base": "1f4f7",
  61339. "uc_output": "1f4f7",
  61340. "uc_match": "1f4f7-fe0f",
  61341. "uc_greedy": "1f4f7-fe0f",
  61342. "shortnames": [],
  61343. "category": "objects"
  61344. },
  61345. ":camera_with_flash:": {
  61346. "uc_base": "1f4f8",
  61347. "uc_output": "1f4f8",
  61348. "uc_match": "1f4f8",
  61349. "uc_greedy": "1f4f8",
  61350. "shortnames": [],
  61351. "category": "objects"
  61352. },
  61353. ":camping:": {
  61354. "uc_base": "1f3d5",
  61355. "uc_output": "1f3d5",
  61356. "uc_match": "1f3d5-fe0f",
  61357. "uc_greedy": "1f3d5-fe0f",
  61358. "shortnames": [],
  61359. "category": "travel"
  61360. },
  61361. ":candle:": {
  61362. "uc_base": "1f56f",
  61363. "uc_output": "1f56f",
  61364. "uc_match": "1f56f-fe0f",
  61365. "uc_greedy": "1f56f-fe0f",
  61366. "shortnames": [],
  61367. "category": "objects"
  61368. },
  61369. ":candy:": {
  61370. "uc_base": "1f36c",
  61371. "uc_output": "1f36c",
  61372. "uc_match": "1f36c",
  61373. "uc_greedy": "1f36c",
  61374. "shortnames": [],
  61375. "category": "food"
  61376. },
  61377. ":canned_food:": {
  61378. "uc_base": "1f96b",
  61379. "uc_output": "1f96b",
  61380. "uc_match": "1f96b",
  61381. "uc_greedy": "1f96b",
  61382. "shortnames": [],
  61383. "category": "food"
  61384. },
  61385. ":canoe:": {
  61386. "uc_base": "1f6f6",
  61387. "uc_output": "1f6f6",
  61388. "uc_match": "1f6f6",
  61389. "uc_greedy": "1f6f6",
  61390. "shortnames": [":kayak:"],
  61391. "category": "travel"
  61392. },
  61393. ":capital_abcd:": {
  61394. "uc_base": "1f520",
  61395. "uc_output": "1f520",
  61396. "uc_match": "1f520",
  61397. "uc_greedy": "1f520",
  61398. "shortnames": [],
  61399. "category": "symbols"
  61400. },
  61401. ":card_box:": {
  61402. "uc_base": "1f5c3",
  61403. "uc_output": "1f5c3",
  61404. "uc_match": "1f5c3-fe0f",
  61405. "uc_greedy": "1f5c3-fe0f",
  61406. "shortnames": [":card_file_box:"],
  61407. "category": "objects"
  61408. },
  61409. ":card_index:": {
  61410. "uc_base": "1f4c7",
  61411. "uc_output": "1f4c7",
  61412. "uc_match": "1f4c7",
  61413. "uc_greedy": "1f4c7",
  61414. "shortnames": [],
  61415. "category": "objects"
  61416. },
  61417. ":carousel_horse:": {
  61418. "uc_base": "1f3a0",
  61419. "uc_output": "1f3a0",
  61420. "uc_match": "1f3a0",
  61421. "uc_greedy": "1f3a0",
  61422. "shortnames": [],
  61423. "category": "travel"
  61424. },
  61425. ":carrot:": {
  61426. "uc_base": "1f955",
  61427. "uc_output": "1f955",
  61428. "uc_match": "1f955",
  61429. "uc_greedy": "1f955",
  61430. "shortnames": [],
  61431. "category": "food"
  61432. },
  61433. ":cat2:": {
  61434. "uc_base": "1f408",
  61435. "uc_output": "1f408",
  61436. "uc_match": "1f408-fe0f",
  61437. "uc_greedy": "1f408-fe0f",
  61438. "shortnames": [],
  61439. "category": "nature"
  61440. },
  61441. ":cat:": {
  61442. "uc_base": "1f431",
  61443. "uc_output": "1f431",
  61444. "uc_match": "1f431",
  61445. "uc_greedy": "1f431",
  61446. "shortnames": [],
  61447. "category": "nature"
  61448. },
  61449. ":cd:": {
  61450. "uc_base": "1f4bf",
  61451. "uc_output": "1f4bf",
  61452. "uc_match": "1f4bf-fe0f",
  61453. "uc_greedy": "1f4bf-fe0f",
  61454. "shortnames": [],
  61455. "category": "objects"
  61456. },
  61457. ":champagne:": {
  61458. "uc_base": "1f37e",
  61459. "uc_output": "1f37e",
  61460. "uc_match": "1f37e",
  61461. "uc_greedy": "1f37e",
  61462. "shortnames": [":bottle_with_popping_cork:"],
  61463. "category": "food"
  61464. },
  61465. ":champagne_glass:": {
  61466. "uc_base": "1f942",
  61467. "uc_output": "1f942",
  61468. "uc_match": "1f942",
  61469. "uc_greedy": "1f942",
  61470. "shortnames": [":clinking_glass:"],
  61471. "category": "food"
  61472. },
  61473. ":chart:": {
  61474. "uc_base": "1f4b9",
  61475. "uc_output": "1f4b9",
  61476. "uc_match": "1f4b9",
  61477. "uc_greedy": "1f4b9",
  61478. "shortnames": [],
  61479. "category": "symbols"
  61480. },
  61481. ":chart_with_downwards_trend:": {
  61482. "uc_base": "1f4c9",
  61483. "uc_output": "1f4c9",
  61484. "uc_match": "1f4c9",
  61485. "uc_greedy": "1f4c9",
  61486. "shortnames": [],
  61487. "category": "objects"
  61488. },
  61489. ":chart_with_upwards_trend:": {
  61490. "uc_base": "1f4c8",
  61491. "uc_output": "1f4c8",
  61492. "uc_match": "1f4c8",
  61493. "uc_greedy": "1f4c8",
  61494. "shortnames": [],
  61495. "category": "objects"
  61496. },
  61497. ":checkered_flag:": {
  61498. "uc_base": "1f3c1",
  61499. "uc_output": "1f3c1",
  61500. "uc_match": "1f3c1",
  61501. "uc_greedy": "1f3c1",
  61502. "shortnames": [],
  61503. "category": "flags"
  61504. },
  61505. ":cheese:": {
  61506. "uc_base": "1f9c0",
  61507. "uc_output": "1f9c0",
  61508. "uc_match": "1f9c0",
  61509. "uc_greedy": "1f9c0",
  61510. "shortnames": [":cheese_wedge:"],
  61511. "category": "food"
  61512. },
  61513. ":cherries:": {
  61514. "uc_base": "1f352",
  61515. "uc_output": "1f352",
  61516. "uc_match": "1f352",
  61517. "uc_greedy": "1f352",
  61518. "shortnames": [],
  61519. "category": "food"
  61520. },
  61521. ":cherry_blossom:": {
  61522. "uc_base": "1f338",
  61523. "uc_output": "1f338",
  61524. "uc_match": "1f338",
  61525. "uc_greedy": "1f338",
  61526. "shortnames": [],
  61527. "category": "nature"
  61528. },
  61529. ":chestnut:": {
  61530. "uc_base": "1f330",
  61531. "uc_output": "1f330",
  61532. "uc_match": "1f330",
  61533. "uc_greedy": "1f330",
  61534. "shortnames": [],
  61535. "category": "food"
  61536. },
  61537. ":chicken:": {
  61538. "uc_base": "1f414",
  61539. "uc_output": "1f414",
  61540. "uc_match": "1f414",
  61541. "uc_greedy": "1f414",
  61542. "shortnames": [],
  61543. "category": "nature"
  61544. },
  61545. ":child:": {
  61546. "uc_base": "1f9d2",
  61547. "uc_output": "1f9d2",
  61548. "uc_match": "1f9d2",
  61549. "uc_greedy": "1f9d2",
  61550. "shortnames": [],
  61551. "category": "people"
  61552. },
  61553. ":children_crossing:": {
  61554. "uc_base": "1f6b8",
  61555. "uc_output": "1f6b8",
  61556. "uc_match": "1f6b8",
  61557. "uc_greedy": "1f6b8",
  61558. "shortnames": [],
  61559. "category": "symbols"
  61560. },
  61561. ":chipmunk:": {
  61562. "uc_base": "1f43f",
  61563. "uc_output": "1f43f",
  61564. "uc_match": "1f43f-fe0f",
  61565. "uc_greedy": "1f43f-fe0f",
  61566. "shortnames": [],
  61567. "category": "nature"
  61568. },
  61569. ":chocolate_bar:": {
  61570. "uc_base": "1f36b",
  61571. "uc_output": "1f36b",
  61572. "uc_match": "1f36b",
  61573. "uc_greedy": "1f36b",
  61574. "shortnames": [],
  61575. "category": "food"
  61576. },
  61577. ":chopsticks:": {
  61578. "uc_base": "1f962",
  61579. "uc_output": "1f962",
  61580. "uc_match": "1f962",
  61581. "uc_greedy": "1f962",
  61582. "shortnames": [],
  61583. "category": "food"
  61584. },
  61585. ":christmas_tree:": {
  61586. "uc_base": "1f384",
  61587. "uc_output": "1f384",
  61588. "uc_match": "1f384",
  61589. "uc_greedy": "1f384",
  61590. "shortnames": [],
  61591. "category": "nature"
  61592. },
  61593. ":cinema:": {
  61594. "uc_base": "1f3a6",
  61595. "uc_output": "1f3a6",
  61596. "uc_match": "1f3a6",
  61597. "uc_greedy": "1f3a6",
  61598. "shortnames": [],
  61599. "category": "symbols"
  61600. },
  61601. ":circus_tent:": {
  61602. "uc_base": "1f3aa",
  61603. "uc_output": "1f3aa",
  61604. "uc_match": "1f3aa",
  61605. "uc_greedy": "1f3aa",
  61606. "shortnames": [],
  61607. "category": "activity"
  61608. },
  61609. ":city_dusk:": {
  61610. "uc_base": "1f306",
  61611. "uc_output": "1f306",
  61612. "uc_match": "1f306",
  61613. "uc_greedy": "1f306",
  61614. "shortnames": [],
  61615. "category": "travel"
  61616. },
  61617. ":city_sunset:": {
  61618. "uc_base": "1f307",
  61619. "uc_output": "1f307",
  61620. "uc_match": "1f307",
  61621. "uc_greedy": "1f307",
  61622. "shortnames": [":city_sunrise:"],
  61623. "category": "travel"
  61624. },
  61625. ":cityscape:": {
  61626. "uc_base": "1f3d9",
  61627. "uc_output": "1f3d9",
  61628. "uc_match": "1f3d9-fe0f",
  61629. "uc_greedy": "1f3d9-fe0f",
  61630. "shortnames": [],
  61631. "category": "travel"
  61632. },
  61633. ":cl:": {
  61634. "uc_base": "1f191",
  61635. "uc_output": "1f191",
  61636. "uc_match": "1f191",
  61637. "uc_greedy": "1f191",
  61638. "shortnames": [],
  61639. "category": "symbols"
  61640. },
  61641. ":clap:": {
  61642. "uc_base": "1f44f",
  61643. "uc_output": "1f44f",
  61644. "uc_match": "1f44f",
  61645. "uc_greedy": "1f44f",
  61646. "shortnames": [],
  61647. "category": "people"
  61648. },
  61649. ":clapper:": {
  61650. "uc_base": "1f3ac",
  61651. "uc_output": "1f3ac",
  61652. "uc_match": "1f3ac-fe0f",
  61653. "uc_greedy": "1f3ac-fe0f",
  61654. "shortnames": [],
  61655. "category": "activity"
  61656. },
  61657. ":classical_building:": {
  61658. "uc_base": "1f3db",
  61659. "uc_output": "1f3db",
  61660. "uc_match": "1f3db-fe0f",
  61661. "uc_greedy": "1f3db-fe0f",
  61662. "shortnames": [],
  61663. "category": "travel"
  61664. },
  61665. ":clipboard:": {
  61666. "uc_base": "1f4cb",
  61667. "uc_output": "1f4cb",
  61668. "uc_match": "1f4cb-fe0f",
  61669. "uc_greedy": "1f4cb-fe0f",
  61670. "shortnames": [],
  61671. "category": "objects"
  61672. },
  61673. ":clock1030:": {
  61674. "uc_base": "1f565",
  61675. "uc_output": "1f565",
  61676. "uc_match": "1f565-fe0f",
  61677. "uc_greedy": "1f565-fe0f",
  61678. "shortnames": [],
  61679. "category": "symbols"
  61680. },
  61681. ":clock10:": {
  61682. "uc_base": "1f559",
  61683. "uc_output": "1f559",
  61684. "uc_match": "1f559-fe0f",
  61685. "uc_greedy": "1f559-fe0f",
  61686. "shortnames": [],
  61687. "category": "symbols"
  61688. },
  61689. ":clock1130:": {
  61690. "uc_base": "1f566",
  61691. "uc_output": "1f566",
  61692. "uc_match": "1f566-fe0f",
  61693. "uc_greedy": "1f566-fe0f",
  61694. "shortnames": [],
  61695. "category": "symbols"
  61696. },
  61697. ":clock11:": {
  61698. "uc_base": "1f55a",
  61699. "uc_output": "1f55a",
  61700. "uc_match": "1f55a-fe0f",
  61701. "uc_greedy": "1f55a-fe0f",
  61702. "shortnames": [],
  61703. "category": "symbols"
  61704. },
  61705. ":clock1230:": {
  61706. "uc_base": "1f567",
  61707. "uc_output": "1f567",
  61708. "uc_match": "1f567-fe0f",
  61709. "uc_greedy": "1f567-fe0f",
  61710. "shortnames": [],
  61711. "category": "symbols"
  61712. },
  61713. ":clock12:": {
  61714. "uc_base": "1f55b",
  61715. "uc_output": "1f55b",
  61716. "uc_match": "1f55b-fe0f",
  61717. "uc_greedy": "1f55b-fe0f",
  61718. "shortnames": [],
  61719. "category": "symbols"
  61720. },
  61721. ":clock130:": {
  61722. "uc_base": "1f55c",
  61723. "uc_output": "1f55c",
  61724. "uc_match": "1f55c-fe0f",
  61725. "uc_greedy": "1f55c-fe0f",
  61726. "shortnames": [],
  61727. "category": "symbols"
  61728. },
  61729. ":clock1:": {
  61730. "uc_base": "1f550",
  61731. "uc_output": "1f550",
  61732. "uc_match": "1f550-fe0f",
  61733. "uc_greedy": "1f550-fe0f",
  61734. "shortnames": [],
  61735. "category": "symbols"
  61736. },
  61737. ":clock230:": {
  61738. "uc_base": "1f55d",
  61739. "uc_output": "1f55d",
  61740. "uc_match": "1f55d-fe0f",
  61741. "uc_greedy": "1f55d-fe0f",
  61742. "shortnames": [],
  61743. "category": "symbols"
  61744. },
  61745. ":clock2:": {
  61746. "uc_base": "1f551",
  61747. "uc_output": "1f551",
  61748. "uc_match": "1f551-fe0f",
  61749. "uc_greedy": "1f551-fe0f",
  61750. "shortnames": [],
  61751. "category": "symbols"
  61752. },
  61753. ":clock330:": {
  61754. "uc_base": "1f55e",
  61755. "uc_output": "1f55e",
  61756. "uc_match": "1f55e-fe0f",
  61757. "uc_greedy": "1f55e-fe0f",
  61758. "shortnames": [],
  61759. "category": "symbols"
  61760. },
  61761. ":clock3:": {
  61762. "uc_base": "1f552",
  61763. "uc_output": "1f552",
  61764. "uc_match": "1f552-fe0f",
  61765. "uc_greedy": "1f552-fe0f",
  61766. "shortnames": [],
  61767. "category": "symbols"
  61768. },
  61769. ":clock430:": {
  61770. "uc_base": "1f55f",
  61771. "uc_output": "1f55f",
  61772. "uc_match": "1f55f-fe0f",
  61773. "uc_greedy": "1f55f-fe0f",
  61774. "shortnames": [],
  61775. "category": "symbols"
  61776. },
  61777. ":clock4:": {
  61778. "uc_base": "1f553",
  61779. "uc_output": "1f553",
  61780. "uc_match": "1f553-fe0f",
  61781. "uc_greedy": "1f553-fe0f",
  61782. "shortnames": [],
  61783. "category": "symbols"
  61784. },
  61785. ":clock530:": {
  61786. "uc_base": "1f560",
  61787. "uc_output": "1f560",
  61788. "uc_match": "1f560-fe0f",
  61789. "uc_greedy": "1f560-fe0f",
  61790. "shortnames": [],
  61791. "category": "symbols"
  61792. },
  61793. ":clock5:": {
  61794. "uc_base": "1f554",
  61795. "uc_output": "1f554",
  61796. "uc_match": "1f554-fe0f",
  61797. "uc_greedy": "1f554-fe0f",
  61798. "shortnames": [],
  61799. "category": "symbols"
  61800. },
  61801. ":clock630:": {
  61802. "uc_base": "1f561",
  61803. "uc_output": "1f561",
  61804. "uc_match": "1f561-fe0f",
  61805. "uc_greedy": "1f561-fe0f",
  61806. "shortnames": [],
  61807. "category": "symbols"
  61808. },
  61809. ":clock6:": {
  61810. "uc_base": "1f555",
  61811. "uc_output": "1f555",
  61812. "uc_match": "1f555-fe0f",
  61813. "uc_greedy": "1f555-fe0f",
  61814. "shortnames": [],
  61815. "category": "symbols"
  61816. },
  61817. ":clock730:": {
  61818. "uc_base": "1f562",
  61819. "uc_output": "1f562",
  61820. "uc_match": "1f562-fe0f",
  61821. "uc_greedy": "1f562-fe0f",
  61822. "shortnames": [],
  61823. "category": "symbols"
  61824. },
  61825. ":clock7:": {
  61826. "uc_base": "1f556",
  61827. "uc_output": "1f556",
  61828. "uc_match": "1f556-fe0f",
  61829. "uc_greedy": "1f556-fe0f",
  61830. "shortnames": [],
  61831. "category": "symbols"
  61832. },
  61833. ":clock830:": {
  61834. "uc_base": "1f563",
  61835. "uc_output": "1f563",
  61836. "uc_match": "1f563-fe0f",
  61837. "uc_greedy": "1f563-fe0f",
  61838. "shortnames": [],
  61839. "category": "symbols"
  61840. },
  61841. ":clock8:": {
  61842. "uc_base": "1f557",
  61843. "uc_output": "1f557",
  61844. "uc_match": "1f557-fe0f",
  61845. "uc_greedy": "1f557-fe0f",
  61846. "shortnames": [],
  61847. "category": "symbols"
  61848. },
  61849. ":clock930:": {
  61850. "uc_base": "1f564",
  61851. "uc_output": "1f564",
  61852. "uc_match": "1f564-fe0f",
  61853. "uc_greedy": "1f564-fe0f",
  61854. "shortnames": [],
  61855. "category": "symbols"
  61856. },
  61857. ":clock9:": {
  61858. "uc_base": "1f558",
  61859. "uc_output": "1f558",
  61860. "uc_match": "1f558-fe0f",
  61861. "uc_greedy": "1f558-fe0f",
  61862. "shortnames": [],
  61863. "category": "symbols"
  61864. },
  61865. ":clock:": {
  61866. "uc_base": "1f570",
  61867. "uc_output": "1f570",
  61868. "uc_match": "1f570-fe0f",
  61869. "uc_greedy": "1f570-fe0f",
  61870. "shortnames": [":mantlepiece_clock:"],
  61871. "category": "objects"
  61872. },
  61873. ":closed_book:": {
  61874. "uc_base": "1f4d5",
  61875. "uc_output": "1f4d5",
  61876. "uc_match": "1f4d5",
  61877. "uc_greedy": "1f4d5",
  61878. "shortnames": [],
  61879. "category": "objects"
  61880. },
  61881. ":closed_lock_with_key:": {
  61882. "uc_base": "1f510",
  61883. "uc_output": "1f510",
  61884. "uc_match": "1f510",
  61885. "uc_greedy": "1f510",
  61886. "shortnames": [],
  61887. "category": "objects"
  61888. },
  61889. ":closed_umbrella:": {
  61890. "uc_base": "1f302",
  61891. "uc_output": "1f302",
  61892. "uc_match": "1f302",
  61893. "uc_greedy": "1f302",
  61894. "shortnames": [],
  61895. "category": "people"
  61896. },
  61897. ":cloud_lightning:": {
  61898. "uc_base": "1f329",
  61899. "uc_output": "1f329",
  61900. "uc_match": "1f329-fe0f",
  61901. "uc_greedy": "1f329-fe0f",
  61902. "shortnames": [":cloud_with_lightning:"],
  61903. "category": "nature"
  61904. },
  61905. ":cloud_rain:": {
  61906. "uc_base": "1f327",
  61907. "uc_output": "1f327",
  61908. "uc_match": "1f327-fe0f",
  61909. "uc_greedy": "1f327-fe0f",
  61910. "shortnames": [":cloud_with_rain:"],
  61911. "category": "nature"
  61912. },
  61913. ":cloud_snow:": {
  61914. "uc_base": "1f328",
  61915. "uc_output": "1f328",
  61916. "uc_match": "1f328-fe0f",
  61917. "uc_greedy": "1f328-fe0f",
  61918. "shortnames": [":cloud_with_snow:"],
  61919. "category": "nature"
  61920. },
  61921. ":cloud_tornado:": {
  61922. "uc_base": "1f32a",
  61923. "uc_output": "1f32a",
  61924. "uc_match": "1f32a-fe0f",
  61925. "uc_greedy": "1f32a-fe0f",
  61926. "shortnames": [":cloud_with_tornado:"],
  61927. "category": "nature"
  61928. },
  61929. ":clown:": {
  61930. "uc_base": "1f921",
  61931. "uc_output": "1f921",
  61932. "uc_match": "1f921",
  61933. "uc_greedy": "1f921",
  61934. "shortnames": [":clown_face:"],
  61935. "category": "people"
  61936. },
  61937. ":coat:": {
  61938. "uc_base": "1f9e5",
  61939. "uc_output": "1f9e5",
  61940. "uc_match": "1f9e5",
  61941. "uc_greedy": "1f9e5",
  61942. "shortnames": [],
  61943. "category": "people"
  61944. },
  61945. ":cocktail:": {
  61946. "uc_base": "1f378",
  61947. "uc_output": "1f378",
  61948. "uc_match": "1f378-fe0f",
  61949. "uc_greedy": "1f378-fe0f",
  61950. "shortnames": [],
  61951. "category": "food"
  61952. },
  61953. ":coconut:": {
  61954. "uc_base": "1f965",
  61955. "uc_output": "1f965",
  61956. "uc_match": "1f965",
  61957. "uc_greedy": "1f965",
  61958. "shortnames": [],
  61959. "category": "food"
  61960. },
  61961. ":cold_sweat:": {
  61962. "uc_base": "1f630",
  61963. "uc_output": "1f630",
  61964. "uc_match": "1f630",
  61965. "uc_greedy": "1f630",
  61966. "shortnames": [],
  61967. "category": "people"
  61968. },
  61969. ":compression:": {
  61970. "uc_base": "1f5dc",
  61971. "uc_output": "1f5dc",
  61972. "uc_match": "1f5dc-fe0f",
  61973. "uc_greedy": "1f5dc-fe0f",
  61974. "shortnames": [],
  61975. "category": "objects"
  61976. },
  61977. ":computer:": {
  61978. "uc_base": "1f4bb",
  61979. "uc_output": "1f4bb",
  61980. "uc_match": "1f4bb-fe0f",
  61981. "uc_greedy": "1f4bb-fe0f",
  61982. "shortnames": [],
  61983. "category": "objects"
  61984. },
  61985. ":confetti_ball:": {
  61986. "uc_base": "1f38a",
  61987. "uc_output": "1f38a",
  61988. "uc_match": "1f38a",
  61989. "uc_greedy": "1f38a",
  61990. "shortnames": [],
  61991. "category": "objects"
  61992. },
  61993. ":confounded:": {
  61994. "uc_base": "1f616",
  61995. "uc_output": "1f616",
  61996. "uc_match": "1f616",
  61997. "uc_greedy": "1f616",
  61998. "shortnames": [],
  61999. "category": "people"
  62000. },
  62001. ":confused:": {
  62002. "uc_base": "1f615",
  62003. "uc_output": "1f615",
  62004. "uc_match": "1f615",
  62005. "uc_greedy": "1f615",
  62006. "shortnames": [],
  62007. "category": "people"
  62008. },
  62009. ":construction:": {
  62010. "uc_base": "1f6a7",
  62011. "uc_output": "1f6a7",
  62012. "uc_match": "1f6a7",
  62013. "uc_greedy": "1f6a7",
  62014. "shortnames": [],
  62015. "category": "travel"
  62016. },
  62017. ":construction_site:": {
  62018. "uc_base": "1f3d7",
  62019. "uc_output": "1f3d7",
  62020. "uc_match": "1f3d7-fe0f",
  62021. "uc_greedy": "1f3d7-fe0f",
  62022. "shortnames": [":building_construction:"],
  62023. "category": "travel"
  62024. },
  62025. ":construction_worker:": {
  62026. "uc_base": "1f477",
  62027. "uc_output": "1f477",
  62028. "uc_match": "1f477",
  62029. "uc_greedy": "1f477",
  62030. "shortnames": [],
  62031. "category": "people"
  62032. },
  62033. ":control_knobs:": {
  62034. "uc_base": "1f39b",
  62035. "uc_output": "1f39b",
  62036. "uc_match": "1f39b-fe0f",
  62037. "uc_greedy": "1f39b-fe0f",
  62038. "shortnames": [],
  62039. "category": "objects"
  62040. },
  62041. ":convenience_store:": {
  62042. "uc_base": "1f3ea",
  62043. "uc_output": "1f3ea",
  62044. "uc_match": "1f3ea",
  62045. "uc_greedy": "1f3ea",
  62046. "shortnames": [],
  62047. "category": "travel"
  62048. },
  62049. ":cookie:": {
  62050. "uc_base": "1f36a",
  62051. "uc_output": "1f36a",
  62052. "uc_match": "1f36a",
  62053. "uc_greedy": "1f36a",
  62054. "shortnames": [],
  62055. "category": "food"
  62056. },
  62057. ":cooking:": {
  62058. "uc_base": "1f373",
  62059. "uc_output": "1f373",
  62060. "uc_match": "1f373",
  62061. "uc_greedy": "1f373",
  62062. "shortnames": [],
  62063. "category": "food"
  62064. },
  62065. ":cool:": {
  62066. "uc_base": "1f192",
  62067. "uc_output": "1f192",
  62068. "uc_match": "1f192",
  62069. "uc_greedy": "1f192",
  62070. "shortnames": [],
  62071. "category": "symbols"
  62072. },
  62073. ":corn:": {
  62074. "uc_base": "1f33d",
  62075. "uc_output": "1f33d",
  62076. "uc_match": "1f33d",
  62077. "uc_greedy": "1f33d",
  62078. "shortnames": [],
  62079. "category": "food"
  62080. },
  62081. ":couch:": {
  62082. "uc_base": "1f6cb",
  62083. "uc_output": "1f6cb",
  62084. "uc_match": "1f6cb-fe0f",
  62085. "uc_greedy": "1f6cb-fe0f",
  62086. "shortnames": [":couch_and_lamp:"],
  62087. "category": "objects"
  62088. },
  62089. ":couple:": {
  62090. "uc_base": "1f46b",
  62091. "uc_output": "1f46b",
  62092. "uc_match": "1f46b",
  62093. "uc_greedy": "1f46b",
  62094. "shortnames": [],
  62095. "category": "people"
  62096. },
  62097. ":couple_with_heart:": {
  62098. "uc_base": "1f491",
  62099. "uc_output": "1f491",
  62100. "uc_match": "1f491",
  62101. "uc_greedy": "1f491",
  62102. "shortnames": [],
  62103. "category": "people"
  62104. },
  62105. ":couplekiss:": {
  62106. "uc_base": "1f48f",
  62107. "uc_output": "1f48f",
  62108. "uc_match": "1f48f",
  62109. "uc_greedy": "1f48f",
  62110. "shortnames": [],
  62111. "category": "people"
  62112. },
  62113. ":cow2:": {
  62114. "uc_base": "1f404",
  62115. "uc_output": "1f404",
  62116. "uc_match": "1f404",
  62117. "uc_greedy": "1f404",
  62118. "shortnames": [],
  62119. "category": "nature"
  62120. },
  62121. ":cow:": {
  62122. "uc_base": "1f42e",
  62123. "uc_output": "1f42e",
  62124. "uc_match": "1f42e",
  62125. "uc_greedy": "1f42e",
  62126. "shortnames": [],
  62127. "category": "nature"
  62128. },
  62129. ":cowboy:": {
  62130. "uc_base": "1f920",
  62131. "uc_output": "1f920",
  62132. "uc_match": "1f920",
  62133. "uc_greedy": "1f920",
  62134. "shortnames": [":face_with_cowboy_hat:"],
  62135. "category": "people"
  62136. },
  62137. ":crab:": {
  62138. "uc_base": "1f980",
  62139. "uc_output": "1f980",
  62140. "uc_match": "1f980",
  62141. "uc_greedy": "1f980",
  62142. "shortnames": [],
  62143. "category": "nature"
  62144. },
  62145. ":crayon:": {
  62146. "uc_base": "1f58d",
  62147. "uc_output": "1f58d",
  62148. "uc_match": "1f58d-fe0f",
  62149. "uc_greedy": "1f58d-fe0f",
  62150. "shortnames": [":lower_left_crayon:"],
  62151. "category": "objects"
  62152. },
  62153. ":crazy_face:": {
  62154. "uc_base": "1f92a",
  62155. "uc_output": "1f92a",
  62156. "uc_match": "1f92a",
  62157. "uc_greedy": "1f92a",
  62158. "shortnames": [],
  62159. "category": "people"
  62160. },
  62161. ":credit_card:": {
  62162. "uc_base": "1f4b3",
  62163. "uc_output": "1f4b3",
  62164. "uc_match": "1f4b3-fe0f",
  62165. "uc_greedy": "1f4b3-fe0f",
  62166. "shortnames": [],
  62167. "category": "objects"
  62168. },
  62169. ":crescent_moon:": {
  62170. "uc_base": "1f319",
  62171. "uc_output": "1f319",
  62172. "uc_match": "1f319",
  62173. "uc_greedy": "1f319",
  62174. "shortnames": [],
  62175. "category": "nature"
  62176. },
  62177. ":cricket:": {
  62178. "uc_base": "1f997",
  62179. "uc_output": "1f997",
  62180. "uc_match": "1f997",
  62181. "uc_greedy": "1f997",
  62182. "shortnames": [],
  62183. "category": "nature"
  62184. },
  62185. ":cricket_game:": {
  62186. "uc_base": "1f3cf",
  62187. "uc_output": "1f3cf",
  62188. "uc_match": "1f3cf",
  62189. "uc_greedy": "1f3cf",
  62190. "shortnames": [":cricket_bat_ball:"],
  62191. "category": "activity"
  62192. },
  62193. ":crocodile:": {
  62194. "uc_base": "1f40a",
  62195. "uc_output": "1f40a",
  62196. "uc_match": "1f40a",
  62197. "uc_greedy": "1f40a",
  62198. "shortnames": [],
  62199. "category": "nature"
  62200. },
  62201. ":croissant:": {
  62202. "uc_base": "1f950",
  62203. "uc_output": "1f950",
  62204. "uc_match": "1f950",
  62205. "uc_greedy": "1f950",
  62206. "shortnames": [],
  62207. "category": "food"
  62208. },
  62209. ":crossed_flags:": {
  62210. "uc_base": "1f38c",
  62211. "uc_output": "1f38c",
  62212. "uc_match": "1f38c",
  62213. "uc_greedy": "1f38c",
  62214. "shortnames": [],
  62215. "category": "flags"
  62216. },
  62217. ":crown:": {
  62218. "uc_base": "1f451",
  62219. "uc_output": "1f451",
  62220. "uc_match": "1f451",
  62221. "uc_greedy": "1f451",
  62222. "shortnames": [],
  62223. "category": "people"
  62224. },
  62225. ":cruise_ship:": {
  62226. "uc_base": "1f6f3",
  62227. "uc_output": "1f6f3",
  62228. "uc_match": "1f6f3-fe0f",
  62229. "uc_greedy": "1f6f3-fe0f",
  62230. "shortnames": [":passenger_ship:"],
  62231. "category": "travel"
  62232. },
  62233. ":cry:": {
  62234. "uc_base": "1f622",
  62235. "uc_output": "1f622",
  62236. "uc_match": "1f622",
  62237. "uc_greedy": "1f622",
  62238. "shortnames": [],
  62239. "category": "people"
  62240. },
  62241. ":crying_cat_face:": {
  62242. "uc_base": "1f63f",
  62243. "uc_output": "1f63f",
  62244. "uc_match": "1f63f",
  62245. "uc_greedy": "1f63f",
  62246. "shortnames": [],
  62247. "category": "people"
  62248. },
  62249. ":crystal_ball:": {
  62250. "uc_base": "1f52e",
  62251. "uc_output": "1f52e",
  62252. "uc_match": "1f52e",
  62253. "uc_greedy": "1f52e",
  62254. "shortnames": [],
  62255. "category": "objects"
  62256. },
  62257. ":cucumber:": {
  62258. "uc_base": "1f952",
  62259. "uc_output": "1f952",
  62260. "uc_match": "1f952",
  62261. "uc_greedy": "1f952",
  62262. "shortnames": [],
  62263. "category": "food"
  62264. },
  62265. ":cup_with_straw:": {
  62266. "uc_base": "1f964",
  62267. "uc_output": "1f964",
  62268. "uc_match": "1f964",
  62269. "uc_greedy": "1f964",
  62270. "shortnames": [],
  62271. "category": "food"
  62272. },
  62273. ":cupid:": {
  62274. "uc_base": "1f498",
  62275. "uc_output": "1f498",
  62276. "uc_match": "1f498",
  62277. "uc_greedy": "1f498",
  62278. "shortnames": [],
  62279. "category": "symbols"
  62280. },
  62281. ":curling_stone:": {
  62282. "uc_base": "1f94c",
  62283. "uc_output": "1f94c",
  62284. "uc_match": "1f94c",
  62285. "uc_greedy": "1f94c",
  62286. "shortnames": [],
  62287. "category": "activity"
  62288. },
  62289. ":currency_exchange:": {
  62290. "uc_base": "1f4b1",
  62291. "uc_output": "1f4b1",
  62292. "uc_match": "1f4b1",
  62293. "uc_greedy": "1f4b1",
  62294. "shortnames": [],
  62295. "category": "symbols"
  62296. },
  62297. ":curry:": {
  62298. "uc_base": "1f35b",
  62299. "uc_output": "1f35b",
  62300. "uc_match": "1f35b",
  62301. "uc_greedy": "1f35b",
  62302. "shortnames": [],
  62303. "category": "food"
  62304. },
  62305. ":custard:": {
  62306. "uc_base": "1f36e",
  62307. "uc_output": "1f36e",
  62308. "uc_match": "1f36e",
  62309. "uc_greedy": "1f36e",
  62310. "shortnames": [":pudding:", ":flan:"],
  62311. "category": "food"
  62312. },
  62313. ":customs:": {
  62314. "uc_base": "1f6c3",
  62315. "uc_output": "1f6c3",
  62316. "uc_match": "1f6c3",
  62317. "uc_greedy": "1f6c3",
  62318. "shortnames": [],
  62319. "category": "symbols"
  62320. },
  62321. ":cut_of_meat:": {
  62322. "uc_base": "1f969",
  62323. "uc_output": "1f969",
  62324. "uc_match": "1f969",
  62325. "uc_greedy": "1f969",
  62326. "shortnames": [],
  62327. "category": "food"
  62328. },
  62329. ":cyclone:": {
  62330. "uc_base": "1f300",
  62331. "uc_output": "1f300",
  62332. "uc_match": "1f300",
  62333. "uc_greedy": "1f300",
  62334. "shortnames": [],
  62335. "category": "symbols"
  62336. },
  62337. ":dagger:": {
  62338. "uc_base": "1f5e1",
  62339. "uc_output": "1f5e1",
  62340. "uc_match": "1f5e1-fe0f",
  62341. "uc_greedy": "1f5e1-fe0f",
  62342. "shortnames": [":dagger_knife:"],
  62343. "category": "objects"
  62344. },
  62345. ":dancer:": {
  62346. "uc_base": "1f483",
  62347. "uc_output": "1f483",
  62348. "uc_match": "1f483",
  62349. "uc_greedy": "1f483",
  62350. "shortnames": [],
  62351. "category": "people"
  62352. },
  62353. ":dango:": {
  62354. "uc_base": "1f361",
  62355. "uc_output": "1f361",
  62356. "uc_match": "1f361",
  62357. "uc_greedy": "1f361",
  62358. "shortnames": [],
  62359. "category": "food"
  62360. },
  62361. ":dark_sunglasses:": {
  62362. "uc_base": "1f576",
  62363. "uc_output": "1f576",
  62364. "uc_match": "1f576-fe0f",
  62365. "uc_greedy": "1f576-fe0f",
  62366. "shortnames": [],
  62367. "category": "people"
  62368. },
  62369. ":dart:": {
  62370. "uc_base": "1f3af",
  62371. "uc_output": "1f3af",
  62372. "uc_match": "1f3af",
  62373. "uc_greedy": "1f3af",
  62374. "shortnames": [],
  62375. "category": "activity"
  62376. },
  62377. ":dash:": {
  62378. "uc_base": "1f4a8",
  62379. "uc_output": "1f4a8",
  62380. "uc_match": "1f4a8",
  62381. "uc_greedy": "1f4a8",
  62382. "shortnames": [],
  62383. "category": "nature"
  62384. },
  62385. ":date:": {
  62386. "uc_base": "1f4c5",
  62387. "uc_output": "1f4c5",
  62388. "uc_match": "1f4c5",
  62389. "uc_greedy": "1f4c5",
  62390. "shortnames": [],
  62391. "category": "objects"
  62392. },
  62393. ":deciduous_tree:": {
  62394. "uc_base": "1f333",
  62395. "uc_output": "1f333",
  62396. "uc_match": "1f333",
  62397. "uc_greedy": "1f333",
  62398. "shortnames": [],
  62399. "category": "nature"
  62400. },
  62401. ":deer:": {
  62402. "uc_base": "1f98c",
  62403. "uc_output": "1f98c",
  62404. "uc_match": "1f98c",
  62405. "uc_greedy": "1f98c",
  62406. "shortnames": [],
  62407. "category": "nature"
  62408. },
  62409. ":department_store:": {
  62410. "uc_base": "1f3ec",
  62411. "uc_output": "1f3ec",
  62412. "uc_match": "1f3ec",
  62413. "uc_greedy": "1f3ec",
  62414. "shortnames": [],
  62415. "category": "travel"
  62416. },
  62417. ":desert:": {
  62418. "uc_base": "1f3dc",
  62419. "uc_output": "1f3dc",
  62420. "uc_match": "1f3dc-fe0f",
  62421. "uc_greedy": "1f3dc-fe0f",
  62422. "shortnames": [],
  62423. "category": "travel"
  62424. },
  62425. ":desktop:": {
  62426. "uc_base": "1f5a5",
  62427. "uc_output": "1f5a5",
  62428. "uc_match": "1f5a5-fe0f",
  62429. "uc_greedy": "1f5a5-fe0f",
  62430. "shortnames": [":desktop_computer:"],
  62431. "category": "objects"
  62432. },
  62433. ":detective:": {
  62434. "uc_base": "1f575",
  62435. "uc_output": "1f575",
  62436. "uc_match": "1f575-fe0f",
  62437. "uc_greedy": "1f575-fe0f",
  62438. "shortnames": [":spy:", ":sleuth_or_spy:"],
  62439. "category": "people"
  62440. },
  62441. ":diamond_shape_with_a_dot_inside:": {
  62442. "uc_base": "1f4a0",
  62443. "uc_output": "1f4a0",
  62444. "uc_match": "1f4a0",
  62445. "uc_greedy": "1f4a0",
  62446. "shortnames": [],
  62447. "category": "symbols"
  62448. },
  62449. ":disappointed:": {
  62450. "uc_base": "1f61e",
  62451. "uc_output": "1f61e",
  62452. "uc_match": "1f61e",
  62453. "uc_greedy": "1f61e",
  62454. "shortnames": [],
  62455. "category": "people"
  62456. },
  62457. ":disappointed_relieved:": {
  62458. "uc_base": "1f625",
  62459. "uc_output": "1f625",
  62460. "uc_match": "1f625",
  62461. "uc_greedy": "1f625",
  62462. "shortnames": [],
  62463. "category": "people"
  62464. },
  62465. ":dividers:": {
  62466. "uc_base": "1f5c2",
  62467. "uc_output": "1f5c2",
  62468. "uc_match": "1f5c2-fe0f",
  62469. "uc_greedy": "1f5c2-fe0f",
  62470. "shortnames": [":card_index_dividers:"],
  62471. "category": "objects"
  62472. },
  62473. ":dizzy:": {
  62474. "uc_base": "1f4ab",
  62475. "uc_output": "1f4ab",
  62476. "uc_match": "1f4ab",
  62477. "uc_greedy": "1f4ab",
  62478. "shortnames": [],
  62479. "category": "nature"
  62480. },
  62481. ":dizzy_face:": {
  62482. "uc_base": "1f635",
  62483. "uc_output": "1f635",
  62484. "uc_match": "1f635",
  62485. "uc_greedy": "1f635",
  62486. "shortnames": [],
  62487. "category": "people"
  62488. },
  62489. ":do_not_litter:": {
  62490. "uc_base": "1f6af",
  62491. "uc_output": "1f6af",
  62492. "uc_match": "1f6af",
  62493. "uc_greedy": "1f6af",
  62494. "shortnames": [],
  62495. "category": "symbols"
  62496. },
  62497. ":dog2:": {
  62498. "uc_base": "1f415",
  62499. "uc_output": "1f415",
  62500. "uc_match": "1f415-fe0f",
  62501. "uc_greedy": "1f415-fe0f",
  62502. "shortnames": [],
  62503. "category": "nature"
  62504. },
  62505. ":dog:": {
  62506. "uc_base": "1f436",
  62507. "uc_output": "1f436",
  62508. "uc_match": "1f436",
  62509. "uc_greedy": "1f436",
  62510. "shortnames": [],
  62511. "category": "nature"
  62512. },
  62513. ":dollar:": {
  62514. "uc_base": "1f4b5",
  62515. "uc_output": "1f4b5",
  62516. "uc_match": "1f4b5",
  62517. "uc_greedy": "1f4b5",
  62518. "shortnames": [],
  62519. "category": "objects"
  62520. },
  62521. ":dolls:": {
  62522. "uc_base": "1f38e",
  62523. "uc_output": "1f38e",
  62524. "uc_match": "1f38e",
  62525. "uc_greedy": "1f38e",
  62526. "shortnames": [],
  62527. "category": "objects"
  62528. },
  62529. ":dolphin:": {
  62530. "uc_base": "1f42c",
  62531. "uc_output": "1f42c",
  62532. "uc_match": "1f42c",
  62533. "uc_greedy": "1f42c",
  62534. "shortnames": [],
  62535. "category": "nature"
  62536. },
  62537. ":door:": {
  62538. "uc_base": "1f6aa",
  62539. "uc_output": "1f6aa",
  62540. "uc_match": "1f6aa",
  62541. "uc_greedy": "1f6aa",
  62542. "shortnames": [],
  62543. "category": "objects"
  62544. },
  62545. ":doughnut:": {
  62546. "uc_base": "1f369",
  62547. "uc_output": "1f369",
  62548. "uc_match": "1f369",
  62549. "uc_greedy": "1f369",
  62550. "shortnames": [],
  62551. "category": "food"
  62552. },
  62553. ":dove:": {
  62554. "uc_base": "1f54a",
  62555. "uc_output": "1f54a",
  62556. "uc_match": "1f54a-fe0f",
  62557. "uc_greedy": "1f54a-fe0f",
  62558. "shortnames": [":dove_of_peace:"],
  62559. "category": "nature"
  62560. },
  62561. ":dragon:": {
  62562. "uc_base": "1f409",
  62563. "uc_output": "1f409",
  62564. "uc_match": "1f409",
  62565. "uc_greedy": "1f409",
  62566. "shortnames": [],
  62567. "category": "nature"
  62568. },
  62569. ":dragon_face:": {
  62570. "uc_base": "1f432",
  62571. "uc_output": "1f432",
  62572. "uc_match": "1f432",
  62573. "uc_greedy": "1f432",
  62574. "shortnames": [],
  62575. "category": "nature"
  62576. },
  62577. ":dress:": {
  62578. "uc_base": "1f457",
  62579. "uc_output": "1f457",
  62580. "uc_match": "1f457",
  62581. "uc_greedy": "1f457",
  62582. "shortnames": [],
  62583. "category": "people"
  62584. },
  62585. ":dromedary_camel:": {
  62586. "uc_base": "1f42a",
  62587. "uc_output": "1f42a",
  62588. "uc_match": "1f42a",
  62589. "uc_greedy": "1f42a",
  62590. "shortnames": [],
  62591. "category": "nature"
  62592. },
  62593. ":drooling_face:": {
  62594. "uc_base": "1f924",
  62595. "uc_output": "1f924",
  62596. "uc_match": "1f924",
  62597. "uc_greedy": "1f924",
  62598. "shortnames": [":drool:"],
  62599. "category": "people"
  62600. },
  62601. ":droplet:": {
  62602. "uc_base": "1f4a7",
  62603. "uc_output": "1f4a7",
  62604. "uc_match": "1f4a7",
  62605. "uc_greedy": "1f4a7",
  62606. "shortnames": [],
  62607. "category": "nature"
  62608. },
  62609. ":drum:": {
  62610. "uc_base": "1f941",
  62611. "uc_output": "1f941",
  62612. "uc_match": "1f941",
  62613. "uc_greedy": "1f941",
  62614. "shortnames": [":drum_with_drumsticks:"],
  62615. "category": "activity"
  62616. },
  62617. ":duck:": {
  62618. "uc_base": "1f986",
  62619. "uc_output": "1f986",
  62620. "uc_match": "1f986",
  62621. "uc_greedy": "1f986",
  62622. "shortnames": [],
  62623. "category": "nature"
  62624. },
  62625. ":dumpling:": {
  62626. "uc_base": "1f95f",
  62627. "uc_output": "1f95f",
  62628. "uc_match": "1f95f",
  62629. "uc_greedy": "1f95f",
  62630. "shortnames": [],
  62631. "category": "food"
  62632. },
  62633. ":dvd:": {
  62634. "uc_base": "1f4c0",
  62635. "uc_output": "1f4c0",
  62636. "uc_match": "1f4c0",
  62637. "uc_greedy": "1f4c0",
  62638. "shortnames": [],
  62639. "category": "objects"
  62640. },
  62641. ":e-mail:": {
  62642. "uc_base": "1f4e7",
  62643. "uc_output": "1f4e7",
  62644. "uc_match": "1f4e7",
  62645. "uc_greedy": "1f4e7",
  62646. "shortnames": [":email:"],
  62647. "category": "objects"
  62648. },
  62649. ":eagle:": {
  62650. "uc_base": "1f985",
  62651. "uc_output": "1f985",
  62652. "uc_match": "1f985",
  62653. "uc_greedy": "1f985",
  62654. "shortnames": [],
  62655. "category": "nature"
  62656. },
  62657. ":ear:": {
  62658. "uc_base": "1f442",
  62659. "uc_output": "1f442",
  62660. "uc_match": "1f442-fe0f",
  62661. "uc_greedy": "1f442-fe0f",
  62662. "shortnames": [],
  62663. "category": "people"
  62664. },
  62665. ":ear_of_rice:": {
  62666. "uc_base": "1f33e",
  62667. "uc_output": "1f33e",
  62668. "uc_match": "1f33e",
  62669. "uc_greedy": "1f33e",
  62670. "shortnames": [],
  62671. "category": "nature"
  62672. },
  62673. ":earth_africa:": {
  62674. "uc_base": "1f30d",
  62675. "uc_output": "1f30d",
  62676. "uc_match": "1f30d-fe0f",
  62677. "uc_greedy": "1f30d-fe0f",
  62678. "shortnames": [],
  62679. "category": "nature"
  62680. },
  62681. ":earth_americas:": {
  62682. "uc_base": "1f30e",
  62683. "uc_output": "1f30e",
  62684. "uc_match": "1f30e-fe0f",
  62685. "uc_greedy": "1f30e-fe0f",
  62686. "shortnames": [],
  62687. "category": "nature"
  62688. },
  62689. ":earth_asia:": {
  62690. "uc_base": "1f30f",
  62691. "uc_output": "1f30f",
  62692. "uc_match": "1f30f-fe0f",
  62693. "uc_greedy": "1f30f-fe0f",
  62694. "shortnames": [],
  62695. "category": "nature"
  62696. },
  62697. ":egg:": {
  62698. "uc_base": "1f95a",
  62699. "uc_output": "1f95a",
  62700. "uc_match": "1f95a",
  62701. "uc_greedy": "1f95a",
  62702. "shortnames": [],
  62703. "category": "food"
  62704. },
  62705. ":eggplant:": {
  62706. "uc_base": "1f346",
  62707. "uc_output": "1f346",
  62708. "uc_match": "1f346",
  62709. "uc_greedy": "1f346",
  62710. "shortnames": [],
  62711. "category": "food"
  62712. },
  62713. ":electric_plug:": {
  62714. "uc_base": "1f50c",
  62715. "uc_output": "1f50c",
  62716. "uc_match": "1f50c",
  62717. "uc_greedy": "1f50c",
  62718. "shortnames": [],
  62719. "category": "objects"
  62720. },
  62721. ":elephant:": {
  62722. "uc_base": "1f418",
  62723. "uc_output": "1f418",
  62724. "uc_match": "1f418",
  62725. "uc_greedy": "1f418",
  62726. "shortnames": [],
  62727. "category": "nature"
  62728. },
  62729. ":elf:": {
  62730. "uc_base": "1f9dd",
  62731. "uc_output": "1f9dd",
  62732. "uc_match": "1f9dd",
  62733. "uc_greedy": "1f9dd",
  62734. "shortnames": [],
  62735. "category": "people"
  62736. },
  62737. ":end:": {
  62738. "uc_base": "1f51a",
  62739. "uc_output": "1f51a",
  62740. "uc_match": "1f51a",
  62741. "uc_greedy": "1f51a",
  62742. "shortnames": [],
  62743. "category": "symbols"
  62744. },
  62745. ":envelope_with_arrow:": {
  62746. "uc_base": "1f4e9",
  62747. "uc_output": "1f4e9",
  62748. "uc_match": "1f4e9",
  62749. "uc_greedy": "1f4e9",
  62750. "shortnames": [],
  62751. "category": "objects"
  62752. },
  62753. ":euro:": {
  62754. "uc_base": "1f4b6",
  62755. "uc_output": "1f4b6",
  62756. "uc_match": "1f4b6",
  62757. "uc_greedy": "1f4b6",
  62758. "shortnames": [],
  62759. "category": "objects"
  62760. },
  62761. ":european_castle:": {
  62762. "uc_base": "1f3f0",
  62763. "uc_output": "1f3f0",
  62764. "uc_match": "1f3f0",
  62765. "uc_greedy": "1f3f0",
  62766. "shortnames": [],
  62767. "category": "travel"
  62768. },
  62769. ":european_post_office:": {
  62770. "uc_base": "1f3e4",
  62771. "uc_output": "1f3e4",
  62772. "uc_match": "1f3e4",
  62773. "uc_greedy": "1f3e4",
  62774. "shortnames": [],
  62775. "category": "travel"
  62776. },
  62777. ":evergreen_tree:": {
  62778. "uc_base": "1f332",
  62779. "uc_output": "1f332",
  62780. "uc_match": "1f332",
  62781. "uc_greedy": "1f332",
  62782. "shortnames": [],
  62783. "category": "nature"
  62784. },
  62785. ":exploding_head:": {
  62786. "uc_base": "1f92f",
  62787. "uc_output": "1f92f",
  62788. "uc_match": "1f92f",
  62789. "uc_greedy": "1f92f",
  62790. "shortnames": [],
  62791. "category": "people"
  62792. },
  62793. ":expressionless:": {
  62794. "uc_base": "1f611",
  62795. "uc_output": "1f611",
  62796. "uc_match": "1f611",
  62797. "uc_greedy": "1f611",
  62798. "shortnames": [],
  62799. "category": "people"
  62800. },
  62801. ":eye:": {
  62802. "uc_base": "1f441",
  62803. "uc_output": "1f441",
  62804. "uc_match": "1f441-fe0f",
  62805. "uc_greedy": "1f441-fe0f",
  62806. "shortnames": [],
  62807. "category": "people"
  62808. },
  62809. ":eyeglasses:": {
  62810. "uc_base": "1f453",
  62811. "uc_output": "1f453",
  62812. "uc_match": "1f453-fe0f",
  62813. "uc_greedy": "1f453-fe0f",
  62814. "shortnames": [],
  62815. "category": "people"
  62816. },
  62817. ":eyes:": {
  62818. "uc_base": "1f440",
  62819. "uc_output": "1f440",
  62820. "uc_match": "1f440",
  62821. "uc_greedy": "1f440",
  62822. "shortnames": [],
  62823. "category": "people"
  62824. },
  62825. ":face_vomiting:": {
  62826. "uc_base": "1f92e",
  62827. "uc_output": "1f92e",
  62828. "uc_match": "1f92e",
  62829. "uc_greedy": "1f92e",
  62830. "shortnames": [],
  62831. "category": "people"
  62832. },
  62833. ":face_with_hand_over_mouth:": {
  62834. "uc_base": "1f92d",
  62835. "uc_output": "1f92d",
  62836. "uc_match": "1f92d",
  62837. "uc_greedy": "1f92d",
  62838. "shortnames": [],
  62839. "category": "people"
  62840. },
  62841. ":face_with_monocle:": {
  62842. "uc_base": "1f9d0",
  62843. "uc_output": "1f9d0",
  62844. "uc_match": "1f9d0",
  62845. "uc_greedy": "1f9d0",
  62846. "shortnames": [],
  62847. "category": "people"
  62848. },
  62849. ":face_with_raised_eyebrow:": {
  62850. "uc_base": "1f928",
  62851. "uc_output": "1f928",
  62852. "uc_match": "1f928",
  62853. "uc_greedy": "1f928",
  62854. "shortnames": [],
  62855. "category": "people"
  62856. },
  62857. ":face_with_symbols_over_mouth:": {
  62858. "uc_base": "1f92c",
  62859. "uc_output": "1f92c",
  62860. "uc_match": "1f92c",
  62861. "uc_greedy": "1f92c",
  62862. "shortnames": [],
  62863. "category": "people"
  62864. },
  62865. ":factory:": {
  62866. "uc_base": "1f3ed",
  62867. "uc_output": "1f3ed",
  62868. "uc_match": "1f3ed-fe0f",
  62869. "uc_greedy": "1f3ed-fe0f",
  62870. "shortnames": [],
  62871. "category": "travel"
  62872. },
  62873. ":fairy:": {
  62874. "uc_base": "1f9da",
  62875. "uc_output": "1f9da",
  62876. "uc_match": "1f9da",
  62877. "uc_greedy": "1f9da",
  62878. "shortnames": [],
  62879. "category": "people"
  62880. },
  62881. ":fallen_leaf:": {
  62882. "uc_base": "1f342",
  62883. "uc_output": "1f342",
  62884. "uc_match": "1f342",
  62885. "uc_greedy": "1f342",
  62886. "shortnames": [],
  62887. "category": "nature"
  62888. },
  62889. ":family:": {
  62890. "uc_base": "1f46a",
  62891. "uc_output": "1f46a",
  62892. "uc_match": "1f46a-fe0f",
  62893. "uc_greedy": "1f46a-fe0f",
  62894. "shortnames": [],
  62895. "category": "people"
  62896. },
  62897. ":fax:": {
  62898. "uc_base": "1f4e0",
  62899. "uc_output": "1f4e0",
  62900. "uc_match": "1f4e0",
  62901. "uc_greedy": "1f4e0",
  62902. "shortnames": [],
  62903. "category": "objects"
  62904. },
  62905. ":fearful:": {
  62906. "uc_base": "1f628",
  62907. "uc_output": "1f628",
  62908. "uc_match": "1f628",
  62909. "uc_greedy": "1f628",
  62910. "shortnames": [],
  62911. "category": "people"
  62912. },
  62913. ":feet:": {
  62914. "uc_base": "1f43e",
  62915. "uc_output": "1f43e",
  62916. "uc_match": "1f43e",
  62917. "uc_greedy": "1f43e",
  62918. "shortnames": [":paw_prints:"],
  62919. "category": "nature"
  62920. },
  62921. ":ferris_wheel:": {
  62922. "uc_base": "1f3a1",
  62923. "uc_output": "1f3a1",
  62924. "uc_match": "1f3a1",
  62925. "uc_greedy": "1f3a1",
  62926. "shortnames": [],
  62927. "category": "travel"
  62928. },
  62929. ":field_hockey:": {
  62930. "uc_base": "1f3d1",
  62931. "uc_output": "1f3d1",
  62932. "uc_match": "1f3d1",
  62933. "uc_greedy": "1f3d1",
  62934. "shortnames": [],
  62935. "category": "activity"
  62936. },
  62937. ":file_cabinet:": {
  62938. "uc_base": "1f5c4",
  62939. "uc_output": "1f5c4",
  62940. "uc_match": "1f5c4-fe0f",
  62941. "uc_greedy": "1f5c4-fe0f",
  62942. "shortnames": [],
  62943. "category": "objects"
  62944. },
  62945. ":file_folder:": {
  62946. "uc_base": "1f4c1",
  62947. "uc_output": "1f4c1",
  62948. "uc_match": "1f4c1",
  62949. "uc_greedy": "1f4c1",
  62950. "shortnames": [],
  62951. "category": "objects"
  62952. },
  62953. ":film_frames:": {
  62954. "uc_base": "1f39e",
  62955. "uc_output": "1f39e",
  62956. "uc_match": "1f39e-fe0f",
  62957. "uc_greedy": "1f39e-fe0f",
  62958. "shortnames": [],
  62959. "category": "objects"
  62960. },
  62961. ":fingers_crossed:": {
  62962. "uc_base": "1f91e",
  62963. "uc_output": "1f91e",
  62964. "uc_match": "1f91e",
  62965. "uc_greedy": "1f91e",
  62966. "shortnames": [":hand_with_index_and_middle_finger_crossed:"],
  62967. "category": "people"
  62968. },
  62969. ":fire:": {
  62970. "uc_base": "1f525",
  62971. "uc_output": "1f525",
  62972. "uc_match": "1f525",
  62973. "uc_greedy": "1f525",
  62974. "shortnames": [":flame:"],
  62975. "category": "nature"
  62976. },
  62977. ":fire_engine:": {
  62978. "uc_base": "1f692",
  62979. "uc_output": "1f692",
  62980. "uc_match": "1f692",
  62981. "uc_greedy": "1f692",
  62982. "shortnames": [],
  62983. "category": "travel"
  62984. },
  62985. ":fireworks:": {
  62986. "uc_base": "1f386",
  62987. "uc_output": "1f386",
  62988. "uc_match": "1f386",
  62989. "uc_greedy": "1f386",
  62990. "shortnames": [],
  62991. "category": "travel"
  62992. },
  62993. ":first_place:": {
  62994. "uc_base": "1f947",
  62995. "uc_output": "1f947",
  62996. "uc_match": "1f947",
  62997. "uc_greedy": "1f947",
  62998. "shortnames": [":first_place_medal:"],
  62999. "category": "activity"
  63000. },
  63001. ":first_quarter_moon:": {
  63002. "uc_base": "1f313",
  63003. "uc_output": "1f313",
  63004. "uc_match": "1f313",
  63005. "uc_greedy": "1f313",
  63006. "shortnames": [],
  63007. "category": "nature"
  63008. },
  63009. ":first_quarter_moon_with_face:": {
  63010. "uc_base": "1f31b",
  63011. "uc_output": "1f31b",
  63012. "uc_match": "1f31b",
  63013. "uc_greedy": "1f31b",
  63014. "shortnames": [],
  63015. "category": "nature"
  63016. },
  63017. ":fish:": {
  63018. "uc_base": "1f41f",
  63019. "uc_output": "1f41f",
  63020. "uc_match": "1f41f-fe0f",
  63021. "uc_greedy": "1f41f-fe0f",
  63022. "shortnames": [],
  63023. "category": "nature"
  63024. },
  63025. ":fish_cake:": {
  63026. "uc_base": "1f365",
  63027. "uc_output": "1f365",
  63028. "uc_match": "1f365",
  63029. "uc_greedy": "1f365",
  63030. "shortnames": [],
  63031. "category": "food"
  63032. },
  63033. ":fishing_pole_and_fish:": {
  63034. "uc_base": "1f3a3",
  63035. "uc_output": "1f3a3",
  63036. "uc_match": "1f3a3",
  63037. "uc_greedy": "1f3a3",
  63038. "shortnames": [],
  63039. "category": "activity"
  63040. },
  63041. ":flag_black:": {
  63042. "uc_base": "1f3f4",
  63043. "uc_output": "1f3f4",
  63044. "uc_match": "1f3f4",
  63045. "uc_greedy": "1f3f4",
  63046. "shortnames": [":waving_black_flag:"],
  63047. "category": "flags"
  63048. },
  63049. ":flag_white:": {
  63050. "uc_base": "1f3f3",
  63051. "uc_output": "1f3f3",
  63052. "uc_match": "1f3f3-fe0f",
  63053. "uc_greedy": "1f3f3-fe0f",
  63054. "shortnames": [":waving_white_flag:"],
  63055. "category": "flags"
  63056. },
  63057. ":flags:": {
  63058. "uc_base": "1f38f",
  63059. "uc_output": "1f38f",
  63060. "uc_match": "1f38f",
  63061. "uc_greedy": "1f38f",
  63062. "shortnames": [],
  63063. "category": "objects"
  63064. },
  63065. ":flashlight:": {
  63066. "uc_base": "1f526",
  63067. "uc_output": "1f526",
  63068. "uc_match": "1f526",
  63069. "uc_greedy": "1f526",
  63070. "shortnames": [],
  63071. "category": "objects"
  63072. },
  63073. ":floppy_disk:": {
  63074. "uc_base": "1f4be",
  63075. "uc_output": "1f4be",
  63076. "uc_match": "1f4be",
  63077. "uc_greedy": "1f4be",
  63078. "shortnames": [],
  63079. "category": "objects"
  63080. },
  63081. ":flower_playing_cards:": {
  63082. "uc_base": "1f3b4",
  63083. "uc_output": "1f3b4",
  63084. "uc_match": "1f3b4",
  63085. "uc_greedy": "1f3b4",
  63086. "shortnames": [],
  63087. "category": "symbols"
  63088. },
  63089. ":flushed:": {
  63090. "uc_base": "1f633",
  63091. "uc_output": "1f633",
  63092. "uc_match": "1f633",
  63093. "uc_greedy": "1f633",
  63094. "shortnames": [],
  63095. "category": "people"
  63096. },
  63097. ":flying_saucer:": {
  63098. "uc_base": "1f6f8",
  63099. "uc_output": "1f6f8",
  63100. "uc_match": "1f6f8",
  63101. "uc_greedy": "1f6f8",
  63102. "shortnames": [],
  63103. "category": "travel"
  63104. },
  63105. ":fog:": {
  63106. "uc_base": "1f32b",
  63107. "uc_output": "1f32b",
  63108. "uc_match": "1f32b-fe0f",
  63109. "uc_greedy": "1f32b-fe0f",
  63110. "shortnames": [],
  63111. "category": "nature"
  63112. },
  63113. ":foggy:": {
  63114. "uc_base": "1f301",
  63115. "uc_output": "1f301",
  63116. "uc_match": "1f301",
  63117. "uc_greedy": "1f301",
  63118. "shortnames": [],
  63119. "category": "travel"
  63120. },
  63121. ":football:": {
  63122. "uc_base": "1f3c8",
  63123. "uc_output": "1f3c8",
  63124. "uc_match": "1f3c8",
  63125. "uc_greedy": "1f3c8",
  63126. "shortnames": [],
  63127. "category": "activity"
  63128. },
  63129. ":footprints:": {
  63130. "uc_base": "1f463",
  63131. "uc_output": "1f463",
  63132. "uc_match": "1f463",
  63133. "uc_greedy": "1f463",
  63134. "shortnames": [],
  63135. "category": "people"
  63136. },
  63137. ":fork_and_knife:": {
  63138. "uc_base": "1f374",
  63139. "uc_output": "1f374",
  63140. "uc_match": "1f374",
  63141. "uc_greedy": "1f374",
  63142. "shortnames": [],
  63143. "category": "food"
  63144. },
  63145. ":fork_knife_plate:": {
  63146. "uc_base": "1f37d",
  63147. "uc_output": "1f37d",
  63148. "uc_match": "1f37d-fe0f",
  63149. "uc_greedy": "1f37d-fe0f",
  63150. "shortnames": [":fork_and_knife_with_plate:"],
  63151. "category": "food"
  63152. },
  63153. ":fortune_cookie:": {
  63154. "uc_base": "1f960",
  63155. "uc_output": "1f960",
  63156. "uc_match": "1f960",
  63157. "uc_greedy": "1f960",
  63158. "shortnames": [],
  63159. "category": "food"
  63160. },
  63161. ":four_leaf_clover:": {
  63162. "uc_base": "1f340",
  63163. "uc_output": "1f340",
  63164. "uc_match": "1f340",
  63165. "uc_greedy": "1f340",
  63166. "shortnames": [],
  63167. "category": "nature"
  63168. },
  63169. ":fox:": {
  63170. "uc_base": "1f98a",
  63171. "uc_output": "1f98a",
  63172. "uc_match": "1f98a",
  63173. "uc_greedy": "1f98a",
  63174. "shortnames": [":fox_face:"],
  63175. "category": "nature"
  63176. },
  63177. ":frame_photo:": {
  63178. "uc_base": "1f5bc",
  63179. "uc_output": "1f5bc",
  63180. "uc_match": "1f5bc-fe0f",
  63181. "uc_greedy": "1f5bc-fe0f",
  63182. "shortnames": [":frame_with_picture:"],
  63183. "category": "objects"
  63184. },
  63185. ":free:": {
  63186. "uc_base": "1f193",
  63187. "uc_output": "1f193",
  63188. "uc_match": "1f193",
  63189. "uc_greedy": "1f193",
  63190. "shortnames": [],
  63191. "category": "symbols"
  63192. },
  63193. ":french_bread:": {
  63194. "uc_base": "1f956",
  63195. "uc_output": "1f956",
  63196. "uc_match": "1f956",
  63197. "uc_greedy": "1f956",
  63198. "shortnames": [":baguette_bread:"],
  63199. "category": "food"
  63200. },
  63201. ":fried_shrimp:": {
  63202. "uc_base": "1f364",
  63203. "uc_output": "1f364",
  63204. "uc_match": "1f364",
  63205. "uc_greedy": "1f364",
  63206. "shortnames": [],
  63207. "category": "food"
  63208. },
  63209. ":fries:": {
  63210. "uc_base": "1f35f",
  63211. "uc_output": "1f35f",
  63212. "uc_match": "1f35f",
  63213. "uc_greedy": "1f35f",
  63214. "shortnames": [],
  63215. "category": "food"
  63216. },
  63217. ":frog:": {
  63218. "uc_base": "1f438",
  63219. "uc_output": "1f438",
  63220. "uc_match": "1f438",
  63221. "uc_greedy": "1f438",
  63222. "shortnames": [],
  63223. "category": "nature"
  63224. },
  63225. ":frowning:": {
  63226. "uc_base": "1f626",
  63227. "uc_output": "1f626",
  63228. "uc_match": "1f626",
  63229. "uc_greedy": "1f626",
  63230. "shortnames": [],
  63231. "category": "people"
  63232. },
  63233. ":full_moon:": {
  63234. "uc_base": "1f315",
  63235. "uc_output": "1f315",
  63236. "uc_match": "1f315-fe0f",
  63237. "uc_greedy": "1f315-fe0f",
  63238. "shortnames": [],
  63239. "category": "nature"
  63240. },
  63241. ":full_moon_with_face:": {
  63242. "uc_base": "1f31d",
  63243. "uc_output": "1f31d",
  63244. "uc_match": "1f31d",
  63245. "uc_greedy": "1f31d",
  63246. "shortnames": [],
  63247. "category": "nature"
  63248. },
  63249. ":game_die:": {
  63250. "uc_base": "1f3b2",
  63251. "uc_output": "1f3b2",
  63252. "uc_match": "1f3b2",
  63253. "uc_greedy": "1f3b2",
  63254. "shortnames": [],
  63255. "category": "activity"
  63256. },
  63257. ":gem:": {
  63258. "uc_base": "1f48e",
  63259. "uc_output": "1f48e",
  63260. "uc_match": "1f48e",
  63261. "uc_greedy": "1f48e",
  63262. "shortnames": [],
  63263. "category": "objects"
  63264. },
  63265. ":genie:": {
  63266. "uc_base": "1f9de",
  63267. "uc_output": "1f9de",
  63268. "uc_match": "1f9de",
  63269. "uc_greedy": "1f9de",
  63270. "shortnames": [],
  63271. "category": "people"
  63272. },
  63273. ":ghost:": {
  63274. "uc_base": "1f47b",
  63275. "uc_output": "1f47b",
  63276. "uc_match": "1f47b",
  63277. "uc_greedy": "1f47b",
  63278. "shortnames": [],
  63279. "category": "people"
  63280. },
  63281. ":gift:": {
  63282. "uc_base": "1f381",
  63283. "uc_output": "1f381",
  63284. "uc_match": "1f381",
  63285. "uc_greedy": "1f381",
  63286. "shortnames": [],
  63287. "category": "objects"
  63288. },
  63289. ":gift_heart:": {
  63290. "uc_base": "1f49d",
  63291. "uc_output": "1f49d",
  63292. "uc_match": "1f49d",
  63293. "uc_greedy": "1f49d",
  63294. "shortnames": [],
  63295. "category": "symbols"
  63296. },
  63297. ":giraffe:": {
  63298. "uc_base": "1f992",
  63299. "uc_output": "1f992",
  63300. "uc_match": "1f992",
  63301. "uc_greedy": "1f992",
  63302. "shortnames": [],
  63303. "category": "nature"
  63304. },
  63305. ":girl:": {
  63306. "uc_base": "1f467",
  63307. "uc_output": "1f467",
  63308. "uc_match": "1f467",
  63309. "uc_greedy": "1f467",
  63310. "shortnames": [],
  63311. "category": "people"
  63312. },
  63313. ":globe_with_meridians:": {
  63314. "uc_base": "1f310",
  63315. "uc_output": "1f310",
  63316. "uc_match": "1f310",
  63317. "uc_greedy": "1f310",
  63318. "shortnames": [],
  63319. "category": "symbols"
  63320. },
  63321. ":gloves:": {
  63322. "uc_base": "1f9e4",
  63323. "uc_output": "1f9e4",
  63324. "uc_match": "1f9e4",
  63325. "uc_greedy": "1f9e4",
  63326. "shortnames": [],
  63327. "category": "people"
  63328. },
  63329. ":goal:": {
  63330. "uc_base": "1f945",
  63331. "uc_output": "1f945",
  63332. "uc_match": "1f945",
  63333. "uc_greedy": "1f945",
  63334. "shortnames": [":goal_net:"],
  63335. "category": "activity"
  63336. },
  63337. ":goat:": {
  63338. "uc_base": "1f410",
  63339. "uc_output": "1f410",
  63340. "uc_match": "1f410",
  63341. "uc_greedy": "1f410",
  63342. "shortnames": [],
  63343. "category": "nature"
  63344. },
  63345. ":gorilla:": {
  63346. "uc_base": "1f98d",
  63347. "uc_output": "1f98d",
  63348. "uc_match": "1f98d",
  63349. "uc_greedy": "1f98d",
  63350. "shortnames": [],
  63351. "category": "nature"
  63352. },
  63353. ":grapes:": {
  63354. "uc_base": "1f347",
  63355. "uc_output": "1f347",
  63356. "uc_match": "1f347",
  63357. "uc_greedy": "1f347",
  63358. "shortnames": [],
  63359. "category": "food"
  63360. },
  63361. ":green_apple:": {
  63362. "uc_base": "1f34f",
  63363. "uc_output": "1f34f",
  63364. "uc_match": "1f34f",
  63365. "uc_greedy": "1f34f",
  63366. "shortnames": [],
  63367. "category": "food"
  63368. },
  63369. ":green_book:": {
  63370. "uc_base": "1f4d7",
  63371. "uc_output": "1f4d7",
  63372. "uc_match": "1f4d7",
  63373. "uc_greedy": "1f4d7",
  63374. "shortnames": [],
  63375. "category": "objects"
  63376. },
  63377. ":green_heart:": {
  63378. "uc_base": "1f49a",
  63379. "uc_output": "1f49a",
  63380. "uc_match": "1f49a",
  63381. "uc_greedy": "1f49a",
  63382. "shortnames": [],
  63383. "category": "symbols"
  63384. },
  63385. ":grimacing:": {
  63386. "uc_base": "1f62c",
  63387. "uc_output": "1f62c",
  63388. "uc_match": "1f62c",
  63389. "uc_greedy": "1f62c",
  63390. "shortnames": [],
  63391. "category": "people"
  63392. },
  63393. ":grin:": {
  63394. "uc_base": "1f601",
  63395. "uc_output": "1f601",
  63396. "uc_match": "1f601",
  63397. "uc_greedy": "1f601",
  63398. "shortnames": [],
  63399. "category": "people"
  63400. },
  63401. ":grinning:": {
  63402. "uc_base": "1f600",
  63403. "uc_output": "1f600",
  63404. "uc_match": "1f600",
  63405. "uc_greedy": "1f600",
  63406. "shortnames": [],
  63407. "category": "people"
  63408. },
  63409. ":guard:": {
  63410. "uc_base": "1f482",
  63411. "uc_output": "1f482",
  63412. "uc_match": "1f482",
  63413. "uc_greedy": "1f482",
  63414. "shortnames": [":guardsman:"],
  63415. "category": "people"
  63416. },
  63417. ":guitar:": {
  63418. "uc_base": "1f3b8",
  63419. "uc_output": "1f3b8",
  63420. "uc_match": "1f3b8",
  63421. "uc_greedy": "1f3b8",
  63422. "shortnames": [],
  63423. "category": "activity"
  63424. },
  63425. ":gun:": {
  63426. "uc_base": "1f52b",
  63427. "uc_output": "1f52b",
  63428. "uc_match": "1f52b",
  63429. "uc_greedy": "1f52b",
  63430. "shortnames": [],
  63431. "category": "objects"
  63432. },
  63433. ":hamburger:": {
  63434. "uc_base": "1f354",
  63435. "uc_output": "1f354",
  63436. "uc_match": "1f354",
  63437. "uc_greedy": "1f354",
  63438. "shortnames": [],
  63439. "category": "food"
  63440. },
  63441. ":hammer:": {
  63442. "uc_base": "1f528",
  63443. "uc_output": "1f528",
  63444. "uc_match": "1f528",
  63445. "uc_greedy": "1f528",
  63446. "shortnames": [],
  63447. "category": "objects"
  63448. },
  63449. ":hamster:": {
  63450. "uc_base": "1f439",
  63451. "uc_output": "1f439",
  63452. "uc_match": "1f439",
  63453. "uc_greedy": "1f439",
  63454. "shortnames": [],
  63455. "category": "nature"
  63456. },
  63457. ":hand_splayed:": {
  63458. "uc_base": "1f590",
  63459. "uc_output": "1f590",
  63460. "uc_match": "1f590-fe0f",
  63461. "uc_greedy": "1f590-fe0f",
  63462. "shortnames": [":raised_hand_with_fingers_splayed:"],
  63463. "category": "people"
  63464. },
  63465. ":handbag:": {
  63466. "uc_base": "1f45c",
  63467. "uc_output": "1f45c",
  63468. "uc_match": "1f45c",
  63469. "uc_greedy": "1f45c",
  63470. "shortnames": [],
  63471. "category": "people"
  63472. },
  63473. ":handshake:": {
  63474. "uc_base": "1f91d",
  63475. "uc_output": "1f91d",
  63476. "uc_match": "1f91d",
  63477. "uc_greedy": "1f91d",
  63478. "shortnames": [":shaking_hands:"],
  63479. "category": "people"
  63480. },
  63481. ":hatched_chick:": {
  63482. "uc_base": "1f425",
  63483. "uc_output": "1f425",
  63484. "uc_match": "1f425",
  63485. "uc_greedy": "1f425",
  63486. "shortnames": [],
  63487. "category": "nature"
  63488. },
  63489. ":hatching_chick:": {
  63490. "uc_base": "1f423",
  63491. "uc_output": "1f423",
  63492. "uc_match": "1f423",
  63493. "uc_greedy": "1f423",
  63494. "shortnames": [],
  63495. "category": "nature"
  63496. },
  63497. ":head_bandage:": {
  63498. "uc_base": "1f915",
  63499. "uc_output": "1f915",
  63500. "uc_match": "1f915",
  63501. "uc_greedy": "1f915",
  63502. "shortnames": [":face_with_head_bandage:"],
  63503. "category": "people"
  63504. },
  63505. ":headphones:": {
  63506. "uc_base": "1f3a7",
  63507. "uc_output": "1f3a7",
  63508. "uc_match": "1f3a7-fe0f",
  63509. "uc_greedy": "1f3a7-fe0f",
  63510. "shortnames": [],
  63511. "category": "activity"
  63512. },
  63513. ":hear_no_evil:": {
  63514. "uc_base": "1f649",
  63515. "uc_output": "1f649",
  63516. "uc_match": "1f649",
  63517. "uc_greedy": "1f649",
  63518. "shortnames": [],
  63519. "category": "nature"
  63520. },
  63521. ":heart_decoration:": {
  63522. "uc_base": "1f49f",
  63523. "uc_output": "1f49f",
  63524. "uc_match": "1f49f",
  63525. "uc_greedy": "1f49f",
  63526. "shortnames": [],
  63527. "category": "symbols"
  63528. },
  63529. ":heart_eyes:": {
  63530. "uc_base": "1f60d",
  63531. "uc_output": "1f60d",
  63532. "uc_match": "1f60d",
  63533. "uc_greedy": "1f60d",
  63534. "shortnames": [],
  63535. "category": "people"
  63536. },
  63537. ":heart_eyes_cat:": {
  63538. "uc_base": "1f63b",
  63539. "uc_output": "1f63b",
  63540. "uc_match": "1f63b",
  63541. "uc_greedy": "1f63b",
  63542. "shortnames": [],
  63543. "category": "people"
  63544. },
  63545. ":heartbeat:": {
  63546. "uc_base": "1f493",
  63547. "uc_output": "1f493",
  63548. "uc_match": "1f493",
  63549. "uc_greedy": "1f493",
  63550. "shortnames": [],
  63551. "category": "symbols"
  63552. },
  63553. ":heartpulse:": {
  63554. "uc_base": "1f497",
  63555. "uc_output": "1f497",
  63556. "uc_match": "1f497",
  63557. "uc_greedy": "1f497",
  63558. "shortnames": [],
  63559. "category": "symbols"
  63560. },
  63561. ":heavy_dollar_sign:": {
  63562. "uc_base": "1f4b2",
  63563. "uc_output": "1f4b2",
  63564. "uc_match": "1f4b2",
  63565. "uc_greedy": "1f4b2",
  63566. "shortnames": [],
  63567. "category": "symbols"
  63568. },
  63569. ":hedgehog:": {
  63570. "uc_base": "1f994",
  63571. "uc_output": "1f994",
  63572. "uc_match": "1f994",
  63573. "uc_greedy": "1f994",
  63574. "shortnames": [],
  63575. "category": "nature"
  63576. },
  63577. ":helicopter:": {
  63578. "uc_base": "1f681",
  63579. "uc_output": "1f681",
  63580. "uc_match": "1f681",
  63581. "uc_greedy": "1f681",
  63582. "shortnames": [],
  63583. "category": "travel"
  63584. },
  63585. ":herb:": {
  63586. "uc_base": "1f33f",
  63587. "uc_output": "1f33f",
  63588. "uc_match": "1f33f",
  63589. "uc_greedy": "1f33f",
  63590. "shortnames": [],
  63591. "category": "nature"
  63592. },
  63593. ":hibiscus:": {
  63594. "uc_base": "1f33a",
  63595. "uc_output": "1f33a",
  63596. "uc_match": "1f33a",
  63597. "uc_greedy": "1f33a",
  63598. "shortnames": [],
  63599. "category": "nature"
  63600. },
  63601. ":high_brightness:": {
  63602. "uc_base": "1f506",
  63603. "uc_output": "1f506",
  63604. "uc_match": "1f506",
  63605. "uc_greedy": "1f506",
  63606. "shortnames": [],
  63607. "category": "symbols"
  63608. },
  63609. ":high_heel:": {
  63610. "uc_base": "1f460",
  63611. "uc_output": "1f460",
  63612. "uc_match": "1f460",
  63613. "uc_greedy": "1f460",
  63614. "shortnames": [],
  63615. "category": "people"
  63616. },
  63617. ":hockey:": {
  63618. "uc_base": "1f3d2",
  63619. "uc_output": "1f3d2",
  63620. "uc_match": "1f3d2",
  63621. "uc_greedy": "1f3d2",
  63622. "shortnames": [],
  63623. "category": "activity"
  63624. },
  63625. ":hole:": {
  63626. "uc_base": "1f573",
  63627. "uc_output": "1f573",
  63628. "uc_match": "1f573-fe0f",
  63629. "uc_greedy": "1f573-fe0f",
  63630. "shortnames": [],
  63631. "category": "objects"
  63632. },
  63633. ":homes:": {
  63634. "uc_base": "1f3d8",
  63635. "uc_output": "1f3d8",
  63636. "uc_match": "1f3d8-fe0f",
  63637. "uc_greedy": "1f3d8-fe0f",
  63638. "shortnames": [":house_buildings:"],
  63639. "category": "travel"
  63640. },
  63641. ":honey_pot:": {
  63642. "uc_base": "1f36f",
  63643. "uc_output": "1f36f",
  63644. "uc_match": "1f36f",
  63645. "uc_greedy": "1f36f",
  63646. "shortnames": [],
  63647. "category": "food"
  63648. },
  63649. ":horse:": {
  63650. "uc_base": "1f434",
  63651. "uc_output": "1f434",
  63652. "uc_match": "1f434",
  63653. "uc_greedy": "1f434",
  63654. "shortnames": [],
  63655. "category": "nature"
  63656. },
  63657. ":horse_racing:": {
  63658. "uc_base": "1f3c7",
  63659. "uc_output": "1f3c7",
  63660. "uc_match": "1f3c7",
  63661. "uc_greedy": "1f3c7",
  63662. "shortnames": [],
  63663. "category": "activity"
  63664. },
  63665. ":hospital:": {
  63666. "uc_base": "1f3e5",
  63667. "uc_output": "1f3e5",
  63668. "uc_match": "1f3e5",
  63669. "uc_greedy": "1f3e5",
  63670. "shortnames": [],
  63671. "category": "travel"
  63672. },
  63673. ":hot_pepper:": {
  63674. "uc_base": "1f336",
  63675. "uc_output": "1f336",
  63676. "uc_match": "1f336-fe0f",
  63677. "uc_greedy": "1f336-fe0f",
  63678. "shortnames": [],
  63679. "category": "food"
  63680. },
  63681. ":hotdog:": {
  63682. "uc_base": "1f32d",
  63683. "uc_output": "1f32d",
  63684. "uc_match": "1f32d",
  63685. "uc_greedy": "1f32d",
  63686. "shortnames": [":hot_dog:"],
  63687. "category": "food"
  63688. },
  63689. ":hotel:": {
  63690. "uc_base": "1f3e8",
  63691. "uc_output": "1f3e8",
  63692. "uc_match": "1f3e8",
  63693. "uc_greedy": "1f3e8",
  63694. "shortnames": [],
  63695. "category": "travel"
  63696. },
  63697. ":house:": {
  63698. "uc_base": "1f3e0",
  63699. "uc_output": "1f3e0",
  63700. "uc_match": "1f3e0-fe0f",
  63701. "uc_greedy": "1f3e0-fe0f",
  63702. "shortnames": [],
  63703. "category": "travel"
  63704. },
  63705. ":house_abandoned:": {
  63706. "uc_base": "1f3da",
  63707. "uc_output": "1f3da",
  63708. "uc_match": "1f3da-fe0f",
  63709. "uc_greedy": "1f3da-fe0f",
  63710. "shortnames": [":derelict_house_building:"],
  63711. "category": "travel"
  63712. },
  63713. ":house_with_garden:": {
  63714. "uc_base": "1f3e1",
  63715. "uc_output": "1f3e1",
  63716. "uc_match": "1f3e1",
  63717. "uc_greedy": "1f3e1",
  63718. "shortnames": [],
  63719. "category": "travel"
  63720. },
  63721. ":hugging:": {
  63722. "uc_base": "1f917",
  63723. "uc_output": "1f917",
  63724. "uc_match": "1f917",
  63725. "uc_greedy": "1f917",
  63726. "shortnames": [":hugging_face:"],
  63727. "category": "people"
  63728. },
  63729. ":hushed:": {
  63730. "uc_base": "1f62f",
  63731. "uc_output": "1f62f",
  63732. "uc_match": "1f62f",
  63733. "uc_greedy": "1f62f",
  63734. "shortnames": [],
  63735. "category": "people"
  63736. },
  63737. ":ice_cream:": {
  63738. "uc_base": "1f368",
  63739. "uc_output": "1f368",
  63740. "uc_match": "1f368",
  63741. "uc_greedy": "1f368",
  63742. "shortnames": [],
  63743. "category": "food"
  63744. },
  63745. ":icecream:": {
  63746. "uc_base": "1f366",
  63747. "uc_output": "1f366",
  63748. "uc_match": "1f366",
  63749. "uc_greedy": "1f366",
  63750. "shortnames": [],
  63751. "category": "food"
  63752. },
  63753. ":id:": {
  63754. "uc_base": "1f194",
  63755. "uc_output": "1f194",
  63756. "uc_match": "1f194",
  63757. "uc_greedy": "1f194",
  63758. "shortnames": [],
  63759. "category": "symbols"
  63760. },
  63761. ":ideograph_advantage:": {
  63762. "uc_base": "1f250",
  63763. "uc_output": "1f250",
  63764. "uc_match": "1f250",
  63765. "uc_greedy": "1f250",
  63766. "shortnames": [],
  63767. "category": "symbols"
  63768. },
  63769. ":imp:": {
  63770. "uc_base": "1f47f",
  63771. "uc_output": "1f47f",
  63772. "uc_match": "1f47f",
  63773. "uc_greedy": "1f47f",
  63774. "shortnames": [],
  63775. "category": "people"
  63776. },
  63777. ":inbox_tray:": {
  63778. "uc_base": "1f4e5",
  63779. "uc_output": "1f4e5",
  63780. "uc_match": "1f4e5-fe0f",
  63781. "uc_greedy": "1f4e5-fe0f",
  63782. "shortnames": [],
  63783. "category": "objects"
  63784. },
  63785. ":incoming_envelope:": {
  63786. "uc_base": "1f4e8",
  63787. "uc_output": "1f4e8",
  63788. "uc_match": "1f4e8",
  63789. "uc_greedy": "1f4e8",
  63790. "shortnames": [],
  63791. "category": "objects"
  63792. },
  63793. ":innocent:": {
  63794. "uc_base": "1f607",
  63795. "uc_output": "1f607",
  63796. "uc_match": "1f607",
  63797. "uc_greedy": "1f607",
  63798. "shortnames": [],
  63799. "category": "people"
  63800. },
  63801. ":iphone:": {
  63802. "uc_base": "1f4f1",
  63803. "uc_output": "1f4f1",
  63804. "uc_match": "1f4f1",
  63805. "uc_greedy": "1f4f1",
  63806. "shortnames": [],
  63807. "category": "objects"
  63808. },
  63809. ":island:": {
  63810. "uc_base": "1f3dd",
  63811. "uc_output": "1f3dd",
  63812. "uc_match": "1f3dd-fe0f",
  63813. "uc_greedy": "1f3dd-fe0f",
  63814. "shortnames": [":desert_island:"],
  63815. "category": "travel"
  63816. },
  63817. ":izakaya_lantern:": {
  63818. "uc_base": "1f3ee",
  63819. "uc_output": "1f3ee",
  63820. "uc_match": "1f3ee",
  63821. "uc_greedy": "1f3ee",
  63822. "shortnames": [],
  63823. "category": "objects"
  63824. },
  63825. ":jack_o_lantern:": {
  63826. "uc_base": "1f383",
  63827. "uc_output": "1f383",
  63828. "uc_match": "1f383",
  63829. "uc_greedy": "1f383",
  63830. "shortnames": [],
  63831. "category": "people"
  63832. },
  63833. ":japan:": {
  63834. "uc_base": "1f5fe",
  63835. "uc_output": "1f5fe",
  63836. "uc_match": "1f5fe",
  63837. "uc_greedy": "1f5fe",
  63838. "shortnames": [],
  63839. "category": "travel"
  63840. },
  63841. ":japanese_castle:": {
  63842. "uc_base": "1f3ef",
  63843. "uc_output": "1f3ef",
  63844. "uc_match": "1f3ef",
  63845. "uc_greedy": "1f3ef",
  63846. "shortnames": [],
  63847. "category": "travel"
  63848. },
  63849. ":japanese_goblin:": {
  63850. "uc_base": "1f47a",
  63851. "uc_output": "1f47a",
  63852. "uc_match": "1f47a",
  63853. "uc_greedy": "1f47a",
  63854. "shortnames": [],
  63855. "category": "people"
  63856. },
  63857. ":japanese_ogre:": {
  63858. "uc_base": "1f479",
  63859. "uc_output": "1f479",
  63860. "uc_match": "1f479",
  63861. "uc_greedy": "1f479",
  63862. "shortnames": [],
  63863. "category": "people"
  63864. },
  63865. ":jeans:": {
  63866. "uc_base": "1f456",
  63867. "uc_output": "1f456",
  63868. "uc_match": "1f456",
  63869. "uc_greedy": "1f456",
  63870. "shortnames": [],
  63871. "category": "people"
  63872. },
  63873. ":joy:": {
  63874. "uc_base": "1f602",
  63875. "uc_output": "1f602",
  63876. "uc_match": "1f602",
  63877. "uc_greedy": "1f602",
  63878. "shortnames": [],
  63879. "category": "people"
  63880. },
  63881. ":joy_cat:": {
  63882. "uc_base": "1f639",
  63883. "uc_output": "1f639",
  63884. "uc_match": "1f639",
  63885. "uc_greedy": "1f639",
  63886. "shortnames": [],
  63887. "category": "people"
  63888. },
  63889. ":joystick:": {
  63890. "uc_base": "1f579",
  63891. "uc_output": "1f579",
  63892. "uc_match": "1f579-fe0f",
  63893. "uc_greedy": "1f579-fe0f",
  63894. "shortnames": [],
  63895. "category": "objects"
  63896. },
  63897. ":kaaba:": {
  63898. "uc_base": "1f54b",
  63899. "uc_output": "1f54b",
  63900. "uc_match": "1f54b",
  63901. "uc_greedy": "1f54b",
  63902. "shortnames": [],
  63903. "category": "travel"
  63904. },
  63905. ":key2:": {
  63906. "uc_base": "1f5dd",
  63907. "uc_output": "1f5dd",
  63908. "uc_match": "1f5dd-fe0f",
  63909. "uc_greedy": "1f5dd",
  63910. "shortnames": [":old_key:"],
  63911. "category": "objects"
  63912. },
  63913. ":key:": {
  63914. "uc_base": "1f511",
  63915. "uc_output": "1f511",
  63916. "uc_match": "1f511",
  63917. "uc_greedy": "1f511",
  63918. "shortnames": [],
  63919. "category": "objects"
  63920. },
  63921. ":keycap_ten:": {
  63922. "uc_base": "1f51f",
  63923. "uc_output": "1f51f",
  63924. "uc_match": "1f51f",
  63925. "uc_greedy": "1f51f",
  63926. "shortnames": [],
  63927. "category": "symbols"
  63928. },
  63929. ":kimono:": {
  63930. "uc_base": "1f458",
  63931. "uc_output": "1f458",
  63932. "uc_match": "1f458",
  63933. "uc_greedy": "1f458",
  63934. "shortnames": [],
  63935. "category": "people"
  63936. },
  63937. ":kiss:": {
  63938. "uc_base": "1f48b",
  63939. "uc_output": "1f48b",
  63940. "uc_match": "1f48b",
  63941. "uc_greedy": "1f48b",
  63942. "shortnames": [],
  63943. "category": "people"
  63944. },
  63945. ":kissing:": {
  63946. "uc_base": "1f617",
  63947. "uc_output": "1f617",
  63948. "uc_match": "1f617",
  63949. "uc_greedy": "1f617",
  63950. "shortnames": [],
  63951. "category": "people"
  63952. },
  63953. ":kissing_cat:": {
  63954. "uc_base": "1f63d",
  63955. "uc_output": "1f63d",
  63956. "uc_match": "1f63d",
  63957. "uc_greedy": "1f63d",
  63958. "shortnames": [],
  63959. "category": "people"
  63960. },
  63961. ":kissing_closed_eyes:": {
  63962. "uc_base": "1f61a",
  63963. "uc_output": "1f61a",
  63964. "uc_match": "1f61a",
  63965. "uc_greedy": "1f61a",
  63966. "shortnames": [],
  63967. "category": "people"
  63968. },
  63969. ":kissing_heart:": {
  63970. "uc_base": "1f618",
  63971. "uc_output": "1f618",
  63972. "uc_match": "1f618",
  63973. "uc_greedy": "1f618",
  63974. "shortnames": [],
  63975. "category": "people"
  63976. },
  63977. ":kissing_smiling_eyes:": {
  63978. "uc_base": "1f619",
  63979. "uc_output": "1f619",
  63980. "uc_match": "1f619",
  63981. "uc_greedy": "1f619",
  63982. "shortnames": [],
  63983. "category": "people"
  63984. },
  63985. ":kiwi:": {
  63986. "uc_base": "1f95d",
  63987. "uc_output": "1f95d",
  63988. "uc_match": "1f95d",
  63989. "uc_greedy": "1f95d",
  63990. "shortnames": [":kiwifruit:"],
  63991. "category": "food"
  63992. },
  63993. ":knife:": {
  63994. "uc_base": "1f52a",
  63995. "uc_output": "1f52a",
  63996. "uc_match": "1f52a",
  63997. "uc_greedy": "1f52a",
  63998. "shortnames": [],
  63999. "category": "objects"
  64000. },
  64001. ":koala:": {
  64002. "uc_base": "1f428",
  64003. "uc_output": "1f428",
  64004. "uc_match": "1f428",
  64005. "uc_greedy": "1f428",
  64006. "shortnames": [],
  64007. "category": "nature"
  64008. },
  64009. ":koko:": {
  64010. "uc_base": "1f201",
  64011. "uc_output": "1f201",
  64012. "uc_match": "1f201",
  64013. "uc_greedy": "1f201",
  64014. "shortnames": [],
  64015. "category": "symbols"
  64016. },
  64017. ":label:": {
  64018. "uc_base": "1f3f7",
  64019. "uc_output": "1f3f7",
  64020. "uc_match": "1f3f7-fe0f",
  64021. "uc_greedy": "1f3f7-fe0f",
  64022. "shortnames": [],
  64023. "category": "objects"
  64024. },
  64025. ":large_blue_diamond:": {
  64026. "uc_base": "1f537",
  64027. "uc_output": "1f537",
  64028. "uc_match": "1f537",
  64029. "uc_greedy": "1f537",
  64030. "shortnames": [],
  64031. "category": "symbols"
  64032. },
  64033. ":large_orange_diamond:": {
  64034. "uc_base": "1f536",
  64035. "uc_output": "1f536",
  64036. "uc_match": "1f536",
  64037. "uc_greedy": "1f536",
  64038. "shortnames": [],
  64039. "category": "symbols"
  64040. },
  64041. ":last_quarter_moon:": {
  64042. "uc_base": "1f317",
  64043. "uc_output": "1f317",
  64044. "uc_match": "1f317",
  64045. "uc_greedy": "1f317",
  64046. "shortnames": [],
  64047. "category": "nature"
  64048. },
  64049. ":last_quarter_moon_with_face:": {
  64050. "uc_base": "1f31c",
  64051. "uc_output": "1f31c",
  64052. "uc_match": "1f31c-fe0f",
  64053. "uc_greedy": "1f31c-fe0f",
  64054. "shortnames": [],
  64055. "category": "nature"
  64056. },
  64057. ":laughing:": {
  64058. "uc_base": "1f606",
  64059. "uc_output": "1f606",
  64060. "uc_match": "1f606",
  64061. "uc_greedy": "1f606",
  64062. "shortnames": [":satisfied:"],
  64063. "category": "people"
  64064. },
  64065. ":leaves:": {
  64066. "uc_base": "1f343",
  64067. "uc_output": "1f343",
  64068. "uc_match": "1f343",
  64069. "uc_greedy": "1f343",
  64070. "shortnames": [],
  64071. "category": "nature"
  64072. },
  64073. ":ledger:": {
  64074. "uc_base": "1f4d2",
  64075. "uc_output": "1f4d2",
  64076. "uc_match": "1f4d2",
  64077. "uc_greedy": "1f4d2",
  64078. "shortnames": [],
  64079. "category": "objects"
  64080. },
  64081. ":left_facing_fist:": {
  64082. "uc_base": "1f91b",
  64083. "uc_output": "1f91b",
  64084. "uc_match": "1f91b",
  64085. "uc_greedy": "1f91b",
  64086. "shortnames": [":left_fist:"],
  64087. "category": "people"
  64088. },
  64089. ":left_luggage:": {
  64090. "uc_base": "1f6c5",
  64091. "uc_output": "1f6c5",
  64092. "uc_match": "1f6c5",
  64093. "uc_greedy": "1f6c5",
  64094. "shortnames": [],
  64095. "category": "symbols"
  64096. },
  64097. ":lemon:": {
  64098. "uc_base": "1f34b",
  64099. "uc_output": "1f34b",
  64100. "uc_match": "1f34b",
  64101. "uc_greedy": "1f34b",
  64102. "shortnames": [],
  64103. "category": "food"
  64104. },
  64105. ":leopard:": {
  64106. "uc_base": "1f406",
  64107. "uc_output": "1f406",
  64108. "uc_match": "1f406",
  64109. "uc_greedy": "1f406",
  64110. "shortnames": [],
  64111. "category": "nature"
  64112. },
  64113. ":level_slider:": {
  64114. "uc_base": "1f39a",
  64115. "uc_output": "1f39a",
  64116. "uc_match": "1f39a-fe0f",
  64117. "uc_greedy": "1f39a-fe0f",
  64118. "shortnames": [],
  64119. "category": "objects"
  64120. },
  64121. ":levitate:": {
  64122. "uc_base": "1f574",
  64123. "uc_output": "1f574",
  64124. "uc_match": "1f574-fe0f",
  64125. "uc_greedy": "1f574-fe0f",
  64126. "shortnames": [":man_in_business_suit_levitating:"],
  64127. "category": "people"
  64128. },
  64129. ":light_rail:": {
  64130. "uc_base": "1f688",
  64131. "uc_output": "1f688",
  64132. "uc_match": "1f688",
  64133. "uc_greedy": "1f688",
  64134. "shortnames": [],
  64135. "category": "travel"
  64136. },
  64137. ":link:": {
  64138. "uc_base": "1f517",
  64139. "uc_output": "1f517",
  64140. "uc_match": "1f517",
  64141. "uc_greedy": "1f517",
  64142. "shortnames": [],
  64143. "category": "objects"
  64144. },
  64145. ":lion_face:": {
  64146. "uc_base": "1f981",
  64147. "uc_output": "1f981",
  64148. "uc_match": "1f981",
  64149. "uc_greedy": "1f981",
  64150. "shortnames": [":lion:"],
  64151. "category": "nature"
  64152. },
  64153. ":lips:": {
  64154. "uc_base": "1f444",
  64155. "uc_output": "1f444",
  64156. "uc_match": "1f444",
  64157. "uc_greedy": "1f444",
  64158. "shortnames": [],
  64159. "category": "people"
  64160. },
  64161. ":lipstick:": {
  64162. "uc_base": "1f484",
  64163. "uc_output": "1f484",
  64164. "uc_match": "1f484",
  64165. "uc_greedy": "1f484",
  64166. "shortnames": [],
  64167. "category": "people"
  64168. },
  64169. ":lizard:": {
  64170. "uc_base": "1f98e",
  64171. "uc_output": "1f98e",
  64172. "uc_match": "1f98e",
  64173. "uc_greedy": "1f98e",
  64174. "shortnames": [],
  64175. "category": "nature"
  64176. },
  64177. ":lock:": {
  64178. "uc_base": "1f512",
  64179. "uc_output": "1f512",
  64180. "uc_match": "1f512-fe0f",
  64181. "uc_greedy": "1f512-fe0f",
  64182. "shortnames": [],
  64183. "category": "objects"
  64184. },
  64185. ":lock_with_ink_pen:": {
  64186. "uc_base": "1f50f",
  64187. "uc_output": "1f50f",
  64188. "uc_match": "1f50f",
  64189. "uc_greedy": "1f50f",
  64190. "shortnames": [],
  64191. "category": "objects"
  64192. },
  64193. ":lollipop:": {
  64194. "uc_base": "1f36d",
  64195. "uc_output": "1f36d",
  64196. "uc_match": "1f36d",
  64197. "uc_greedy": "1f36d",
  64198. "shortnames": [],
  64199. "category": "food"
  64200. },
  64201. ":loud_sound:": {
  64202. "uc_base": "1f50a",
  64203. "uc_output": "1f50a",
  64204. "uc_match": "1f50a",
  64205. "uc_greedy": "1f50a",
  64206. "shortnames": [],
  64207. "category": "symbols"
  64208. },
  64209. ":loudspeaker:": {
  64210. "uc_base": "1f4e2",
  64211. "uc_output": "1f4e2",
  64212. "uc_match": "1f4e2",
  64213. "uc_greedy": "1f4e2",
  64214. "shortnames": [],
  64215. "category": "symbols"
  64216. },
  64217. ":love_hotel:": {
  64218. "uc_base": "1f3e9",
  64219. "uc_output": "1f3e9",
  64220. "uc_match": "1f3e9",
  64221. "uc_greedy": "1f3e9",
  64222. "shortnames": [],
  64223. "category": "travel"
  64224. },
  64225. ":love_letter:": {
  64226. "uc_base": "1f48c",
  64227. "uc_output": "1f48c",
  64228. "uc_match": "1f48c",
  64229. "uc_greedy": "1f48c",
  64230. "shortnames": [],
  64231. "category": "objects"
  64232. },
  64233. ":love_you_gesture:": {
  64234. "uc_base": "1f91f",
  64235. "uc_output": "1f91f",
  64236. "uc_match": "1f91f",
  64237. "uc_greedy": "1f91f",
  64238. "shortnames": [],
  64239. "category": "people"
  64240. },
  64241. ":low_brightness:": {
  64242. "uc_base": "1f505",
  64243. "uc_output": "1f505",
  64244. "uc_match": "1f505",
  64245. "uc_greedy": "1f505",
  64246. "shortnames": [],
  64247. "category": "symbols"
  64248. },
  64249. ":lying_face:": {
  64250. "uc_base": "1f925",
  64251. "uc_output": "1f925",
  64252. "uc_match": "1f925",
  64253. "uc_greedy": "1f925",
  64254. "shortnames": [":liar:"],
  64255. "category": "people"
  64256. },
  64257. ":mag:": {
  64258. "uc_base": "1f50d",
  64259. "uc_output": "1f50d",
  64260. "uc_match": "1f50d-fe0f",
  64261. "uc_greedy": "1f50d-fe0f",
  64262. "shortnames": [],
  64263. "category": "objects"
  64264. },
  64265. ":mag_right:": {
  64266. "uc_base": "1f50e",
  64267. "uc_output": "1f50e",
  64268. "uc_match": "1f50e",
  64269. "uc_greedy": "1f50e",
  64270. "shortnames": [],
  64271. "category": "objects"
  64272. },
  64273. ":mage:": {
  64274. "uc_base": "1f9d9",
  64275. "uc_output": "1f9d9",
  64276. "uc_match": "1f9d9",
  64277. "uc_greedy": "1f9d9",
  64278. "shortnames": [],
  64279. "category": "people"
  64280. },
  64281. ":mahjong:": {
  64282. "uc_base": "1f004",
  64283. "uc_output": "1f004",
  64284. "uc_match": "1f004-fe0f",
  64285. "uc_greedy": "1f004-fe0f",
  64286. "shortnames": [],
  64287. "category": "symbols"
  64288. },
  64289. ":mailbox:": {
  64290. "uc_base": "1f4eb",
  64291. "uc_output": "1f4eb",
  64292. "uc_match": "1f4eb-fe0f",
  64293. "uc_greedy": "1f4eb-fe0f",
  64294. "shortnames": [],
  64295. "category": "objects"
  64296. },
  64297. ":mailbox_closed:": {
  64298. "uc_base": "1f4ea",
  64299. "uc_output": "1f4ea",
  64300. "uc_match": "1f4ea-fe0f",
  64301. "uc_greedy": "1f4ea-fe0f",
  64302. "shortnames": [],
  64303. "category": "objects"
  64304. },
  64305. ":mailbox_with_mail:": {
  64306. "uc_base": "1f4ec",
  64307. "uc_output": "1f4ec",
  64308. "uc_match": "1f4ec-fe0f",
  64309. "uc_greedy": "1f4ec-fe0f",
  64310. "shortnames": [],
  64311. "category": "objects"
  64312. },
  64313. ":mailbox_with_no_mail:": {
  64314. "uc_base": "1f4ed",
  64315. "uc_output": "1f4ed",
  64316. "uc_match": "1f4ed-fe0f",
  64317. "uc_greedy": "1f4ed-fe0f",
  64318. "shortnames": [],
  64319. "category": "objects"
  64320. },
  64321. ":man:": {
  64322. "uc_base": "1f468",
  64323. "uc_output": "1f468",
  64324. "uc_match": "1f468",
  64325. "uc_greedy": "1f468",
  64326. "shortnames": [],
  64327. "category": "people"
  64328. },
  64329. ":man_dancing:": {
  64330. "uc_base": "1f57a",
  64331. "uc_output": "1f57a",
  64332. "uc_match": "1f57a",
  64333. "uc_greedy": "1f57a",
  64334. "shortnames": [":male_dancer:"],
  64335. "category": "people"
  64336. },
  64337. ":man_in_tuxedo:": {
  64338. "uc_base": "1f935",
  64339. "uc_output": "1f935",
  64340. "uc_match": "1f935",
  64341. "uc_greedy": "1f935",
  64342. "shortnames": [],
  64343. "category": "people"
  64344. },
  64345. ":man_with_chinese_cap:": {
  64346. "uc_base": "1f472",
  64347. "uc_output": "1f472",
  64348. "uc_match": "1f472",
  64349. "uc_greedy": "1f472",
  64350. "shortnames": [":man_with_gua_pi_mao:"],
  64351. "category": "people"
  64352. },
  64353. ":mans_shoe:": {
  64354. "uc_base": "1f45e",
  64355. "uc_output": "1f45e",
  64356. "uc_match": "1f45e",
  64357. "uc_greedy": "1f45e",
  64358. "shortnames": [],
  64359. "category": "people"
  64360. },
  64361. ":map:": {
  64362. "uc_base": "1f5fa",
  64363. "uc_output": "1f5fa",
  64364. "uc_match": "1f5fa-fe0f",
  64365. "uc_greedy": "1f5fa-fe0f",
  64366. "shortnames": [":world_map:"],
  64367. "category": "travel"
  64368. },
  64369. ":maple_leaf:": {
  64370. "uc_base": "1f341",
  64371. "uc_output": "1f341",
  64372. "uc_match": "1f341",
  64373. "uc_greedy": "1f341",
  64374. "shortnames": [],
  64375. "category": "nature"
  64376. },
  64377. ":martial_arts_uniform:": {
  64378. "uc_base": "1f94b",
  64379. "uc_output": "1f94b",
  64380. "uc_match": "1f94b",
  64381. "uc_greedy": "1f94b",
  64382. "shortnames": [":karate_uniform:"],
  64383. "category": "activity"
  64384. },
  64385. ":mask:": {
  64386. "uc_base": "1f637",
  64387. "uc_output": "1f637",
  64388. "uc_match": "1f637",
  64389. "uc_greedy": "1f637",
  64390. "shortnames": [],
  64391. "category": "people"
  64392. },
  64393. ":meat_on_bone:": {
  64394. "uc_base": "1f356",
  64395. "uc_output": "1f356",
  64396. "uc_match": "1f356",
  64397. "uc_greedy": "1f356",
  64398. "shortnames": [],
  64399. "category": "food"
  64400. },
  64401. ":medal:": {
  64402. "uc_base": "1f3c5",
  64403. "uc_output": "1f3c5",
  64404. "uc_match": "1f3c5",
  64405. "uc_greedy": "1f3c5",
  64406. "shortnames": [":sports_medal:"],
  64407. "category": "activity"
  64408. },
  64409. ":mega:": {
  64410. "uc_base": "1f4e3",
  64411. "uc_output": "1f4e3",
  64412. "uc_match": "1f4e3",
  64413. "uc_greedy": "1f4e3",
  64414. "shortnames": [],
  64415. "category": "symbols"
  64416. },
  64417. ":melon:": {
  64418. "uc_base": "1f348",
  64419. "uc_output": "1f348",
  64420. "uc_match": "1f348",
  64421. "uc_greedy": "1f348",
  64422. "shortnames": [],
  64423. "category": "food"
  64424. },
  64425. ":menorah:": {
  64426. "uc_base": "1f54e",
  64427. "uc_output": "1f54e",
  64428. "uc_match": "1f54e",
  64429. "uc_greedy": "1f54e",
  64430. "shortnames": [],
  64431. "category": "symbols"
  64432. },
  64433. ":mens:": {
  64434. "uc_base": "1f6b9",
  64435. "uc_output": "1f6b9",
  64436. "uc_match": "1f6b9-fe0f",
  64437. "uc_greedy": "1f6b9-fe0f",
  64438. "shortnames": [],
  64439. "category": "symbols"
  64440. },
  64441. ":merperson:": {
  64442. "uc_base": "1f9dc",
  64443. "uc_output": "1f9dc",
  64444. "uc_match": "1f9dc",
  64445. "uc_greedy": "1f9dc",
  64446. "shortnames": [],
  64447. "category": "people"
  64448. },
  64449. ":metal:": {
  64450. "uc_base": "1f918",
  64451. "uc_output": "1f918",
  64452. "uc_match": "1f918",
  64453. "uc_greedy": "1f918",
  64454. "shortnames": [":sign_of_the_horns:"],
  64455. "category": "people"
  64456. },
  64457. ":metro:": {
  64458. "uc_base": "1f687",
  64459. "uc_output": "1f687",
  64460. "uc_match": "1f687-fe0f",
  64461. "uc_greedy": "1f687-fe0f",
  64462. "shortnames": [],
  64463. "category": "travel"
  64464. },
  64465. ":microphone2:": {
  64466. "uc_base": "1f399",
  64467. "uc_output": "1f399",
  64468. "uc_match": "1f399-fe0f",
  64469. "uc_greedy": "1f399-fe0f",
  64470. "shortnames": [":studio_microphone:"],
  64471. "category": "objects"
  64472. },
  64473. ":microphone:": {
  64474. "uc_base": "1f3a4",
  64475. "uc_output": "1f3a4",
  64476. "uc_match": "1f3a4",
  64477. "uc_greedy": "1f3a4",
  64478. "shortnames": [],
  64479. "category": "activity"
  64480. },
  64481. ":microscope:": {
  64482. "uc_base": "1f52c",
  64483. "uc_output": "1f52c",
  64484. "uc_match": "1f52c",
  64485. "uc_greedy": "1f52c",
  64486. "shortnames": [],
  64487. "category": "objects"
  64488. },
  64489. ":middle_finger:": {
  64490. "uc_base": "1f595",
  64491. "uc_output": "1f595",
  64492. "uc_match": "1f595",
  64493. "uc_greedy": "1f595",
  64494. "shortnames": [":reversed_hand_with_middle_finger_extended:"],
  64495. "category": "people"
  64496. },
  64497. ":military_medal:": {
  64498. "uc_base": "1f396",
  64499. "uc_output": "1f396",
  64500. "uc_match": "1f396-fe0f",
  64501. "uc_greedy": "1f396-fe0f",
  64502. "shortnames": [],
  64503. "category": "activity"
  64504. },
  64505. ":milk:": {
  64506. "uc_base": "1f95b",
  64507. "uc_output": "1f95b",
  64508. "uc_match": "1f95b",
  64509. "uc_greedy": "1f95b",
  64510. "shortnames": [":glass_of_milk:"],
  64511. "category": "food"
  64512. },
  64513. ":milky_way:": {
  64514. "uc_base": "1f30c",
  64515. "uc_output": "1f30c",
  64516. "uc_match": "1f30c",
  64517. "uc_greedy": "1f30c",
  64518. "shortnames": [],
  64519. "category": "travel"
  64520. },
  64521. ":minibus:": {
  64522. "uc_base": "1f690",
  64523. "uc_output": "1f690",
  64524. "uc_match": "1f690",
  64525. "uc_greedy": "1f690",
  64526. "shortnames": [],
  64527. "category": "travel"
  64528. },
  64529. ":minidisc:": {
  64530. "uc_base": "1f4bd",
  64531. "uc_output": "1f4bd",
  64532. "uc_match": "1f4bd",
  64533. "uc_greedy": "1f4bd",
  64534. "shortnames": [],
  64535. "category": "objects"
  64536. },
  64537. ":mobile_phone_off:": {
  64538. "uc_base": "1f4f4",
  64539. "uc_output": "1f4f4",
  64540. "uc_match": "1f4f4",
  64541. "uc_greedy": "1f4f4",
  64542. "shortnames": [],
  64543. "category": "symbols"
  64544. },
  64545. ":money_mouth:": {
  64546. "uc_base": "1f911",
  64547. "uc_output": "1f911",
  64548. "uc_match": "1f911",
  64549. "uc_greedy": "1f911",
  64550. "shortnames": [":money_mouth_face:"],
  64551. "category": "people"
  64552. },
  64553. ":money_with_wings:": {
  64554. "uc_base": "1f4b8",
  64555. "uc_output": "1f4b8",
  64556. "uc_match": "1f4b8",
  64557. "uc_greedy": "1f4b8",
  64558. "shortnames": [],
  64559. "category": "objects"
  64560. },
  64561. ":moneybag:": {
  64562. "uc_base": "1f4b0",
  64563. "uc_output": "1f4b0",
  64564. "uc_match": "1f4b0-fe0f",
  64565. "uc_greedy": "1f4b0-fe0f",
  64566. "shortnames": [],
  64567. "category": "objects"
  64568. },
  64569. ":monkey:": {
  64570. "uc_base": "1f412",
  64571. "uc_output": "1f412",
  64572. "uc_match": "1f412",
  64573. "uc_greedy": "1f412",
  64574. "shortnames": [],
  64575. "category": "nature"
  64576. },
  64577. ":monkey_face:": {
  64578. "uc_base": "1f435",
  64579. "uc_output": "1f435",
  64580. "uc_match": "1f435",
  64581. "uc_greedy": "1f435",
  64582. "shortnames": [],
  64583. "category": "nature"
  64584. },
  64585. ":monorail:": {
  64586. "uc_base": "1f69d",
  64587. "uc_output": "1f69d",
  64588. "uc_match": "1f69d",
  64589. "uc_greedy": "1f69d",
  64590. "shortnames": [],
  64591. "category": "travel"
  64592. },
  64593. ":mortar_board:": {
  64594. "uc_base": "1f393",
  64595. "uc_output": "1f393",
  64596. "uc_match": "1f393-fe0f",
  64597. "uc_greedy": "1f393-fe0f",
  64598. "shortnames": [],
  64599. "category": "people"
  64600. },
  64601. ":mosque:": {
  64602. "uc_base": "1f54c",
  64603. "uc_output": "1f54c",
  64604. "uc_match": "1f54c",
  64605. "uc_greedy": "1f54c",
  64606. "shortnames": [],
  64607. "category": "travel"
  64608. },
  64609. ":motor_scooter:": {
  64610. "uc_base": "1f6f5",
  64611. "uc_output": "1f6f5",
  64612. "uc_match": "1f6f5",
  64613. "uc_greedy": "1f6f5",
  64614. "shortnames": [":motorbike:"],
  64615. "category": "travel"
  64616. },
  64617. ":motorboat:": {
  64618. "uc_base": "1f6e5",
  64619. "uc_output": "1f6e5",
  64620. "uc_match": "1f6e5-fe0f",
  64621. "uc_greedy": "1f6e5-fe0f",
  64622. "shortnames": [],
  64623. "category": "travel"
  64624. },
  64625. ":motorcycle:": {
  64626. "uc_base": "1f3cd",
  64627. "uc_output": "1f3cd",
  64628. "uc_match": "1f3cd-fe0f",
  64629. "uc_greedy": "1f3cd-fe0f",
  64630. "shortnames": [":racing_motorcycle:"],
  64631. "category": "travel"
  64632. },
  64633. ":motorway:": {
  64634. "uc_base": "1f6e3",
  64635. "uc_output": "1f6e3",
  64636. "uc_match": "1f6e3-fe0f",
  64637. "uc_greedy": "1f6e3-fe0f",
  64638. "shortnames": [],
  64639. "category": "travel"
  64640. },
  64641. ":mount_fuji:": {
  64642. "uc_base": "1f5fb",
  64643. "uc_output": "1f5fb",
  64644. "uc_match": "1f5fb",
  64645. "uc_greedy": "1f5fb",
  64646. "shortnames": [],
  64647. "category": "travel"
  64648. },
  64649. ":mountain_cableway:": {
  64650. "uc_base": "1f6a0",
  64651. "uc_output": "1f6a0",
  64652. "uc_match": "1f6a0",
  64653. "uc_greedy": "1f6a0",
  64654. "shortnames": [],
  64655. "category": "travel"
  64656. },
  64657. ":mountain_railway:": {
  64658. "uc_base": "1f69e",
  64659. "uc_output": "1f69e",
  64660. "uc_match": "1f69e",
  64661. "uc_greedy": "1f69e",
  64662. "shortnames": [],
  64663. "category": "travel"
  64664. },
  64665. ":mountain_snow:": {
  64666. "uc_base": "1f3d4",
  64667. "uc_output": "1f3d4",
  64668. "uc_match": "1f3d4-fe0f",
  64669. "uc_greedy": "1f3d4-fe0f",
  64670. "shortnames": [":snow_capped_mountain:"],
  64671. "category": "travel"
  64672. },
  64673. ":mouse2:": {
  64674. "uc_base": "1f401",
  64675. "uc_output": "1f401",
  64676. "uc_match": "1f401",
  64677. "uc_greedy": "1f401",
  64678. "shortnames": [],
  64679. "category": "nature"
  64680. },
  64681. ":mouse:": {
  64682. "uc_base": "1f42d",
  64683. "uc_output": "1f42d",
  64684. "uc_match": "1f42d",
  64685. "uc_greedy": "1f42d",
  64686. "shortnames": [],
  64687. "category": "nature"
  64688. },
  64689. ":mouse_three_button:": {
  64690. "uc_base": "1f5b1",
  64691. "uc_output": "1f5b1",
  64692. "uc_match": "1f5b1-fe0f",
  64693. "uc_greedy": "1f5b1-fe0f",
  64694. "shortnames": [":three_button_mouse:"],
  64695. "category": "objects"
  64696. },
  64697. ":movie_camera:": {
  64698. "uc_base": "1f3a5",
  64699. "uc_output": "1f3a5",
  64700. "uc_match": "1f3a5",
  64701. "uc_greedy": "1f3a5",
  64702. "shortnames": [],
  64703. "category": "objects"
  64704. },
  64705. ":moyai:": {
  64706. "uc_base": "1f5ff",
  64707. "uc_output": "1f5ff",
  64708. "uc_match": "1f5ff",
  64709. "uc_greedy": "1f5ff",
  64710. "shortnames": [],
  64711. "category": "travel"
  64712. },
  64713. ":mrs_claus:": {
  64714. "uc_base": "1f936",
  64715. "uc_output": "1f936",
  64716. "uc_match": "1f936",
  64717. "uc_greedy": "1f936",
  64718. "shortnames": [":mother_christmas:"],
  64719. "category": "people"
  64720. },
  64721. ":muscle:": {
  64722. "uc_base": "1f4aa",
  64723. "uc_output": "1f4aa",
  64724. "uc_match": "1f4aa",
  64725. "uc_greedy": "1f4aa",
  64726. "shortnames": [],
  64727. "category": "people"
  64728. },
  64729. ":mushroom:": {
  64730. "uc_base": "1f344",
  64731. "uc_output": "1f344",
  64732. "uc_match": "1f344",
  64733. "uc_greedy": "1f344",
  64734. "shortnames": [],
  64735. "category": "nature"
  64736. },
  64737. ":musical_keyboard:": {
  64738. "uc_base": "1f3b9",
  64739. "uc_output": "1f3b9",
  64740. "uc_match": "1f3b9",
  64741. "uc_greedy": "1f3b9",
  64742. "shortnames": [],
  64743. "category": "activity"
  64744. },
  64745. ":musical_note:": {
  64746. "uc_base": "1f3b5",
  64747. "uc_output": "1f3b5",
  64748. "uc_match": "1f3b5",
  64749. "uc_greedy": "1f3b5",
  64750. "shortnames": [],
  64751. "category": "symbols"
  64752. },
  64753. ":musical_score:": {
  64754. "uc_base": "1f3bc",
  64755. "uc_output": "1f3bc",
  64756. "uc_match": "1f3bc",
  64757. "uc_greedy": "1f3bc",
  64758. "shortnames": [],
  64759. "category": "activity"
  64760. },
  64761. ":mute:": {
  64762. "uc_base": "1f507",
  64763. "uc_output": "1f507",
  64764. "uc_match": "1f507",
  64765. "uc_greedy": "1f507",
  64766. "shortnames": [],
  64767. "category": "symbols"
  64768. },
  64769. ":nail_care:": {
  64770. "uc_base": "1f485",
  64771. "uc_output": "1f485",
  64772. "uc_match": "1f485",
  64773. "uc_greedy": "1f485",
  64774. "shortnames": [],
  64775. "category": "people"
  64776. },
  64777. ":name_badge:": {
  64778. "uc_base": "1f4db",
  64779. "uc_output": "1f4db",
  64780. "uc_match": "1f4db",
  64781. "uc_greedy": "1f4db",
  64782. "shortnames": [],
  64783. "category": "symbols"
  64784. },
  64785. ":nauseated_face:": {
  64786. "uc_base": "1f922",
  64787. "uc_output": "1f922",
  64788. "uc_match": "1f922",
  64789. "uc_greedy": "1f922",
  64790. "shortnames": [":sick:"],
  64791. "category": "people"
  64792. },
  64793. ":necktie:": {
  64794. "uc_base": "1f454",
  64795. "uc_output": "1f454",
  64796. "uc_match": "1f454",
  64797. "uc_greedy": "1f454",
  64798. "shortnames": [],
  64799. "category": "people"
  64800. },
  64801. ":nerd:": {
  64802. "uc_base": "1f913",
  64803. "uc_output": "1f913",
  64804. "uc_match": "1f913",
  64805. "uc_greedy": "1f913",
  64806. "shortnames": [":nerd_face:"],
  64807. "category": "people"
  64808. },
  64809. ":neutral_face:": {
  64810. "uc_base": "1f610",
  64811. "uc_output": "1f610",
  64812. "uc_match": "1f610-fe0f",
  64813. "uc_greedy": "1f610-fe0f",
  64814. "shortnames": [],
  64815. "category": "people"
  64816. },
  64817. ":new:": {
  64818. "uc_base": "1f195",
  64819. "uc_output": "1f195",
  64820. "uc_match": "1f195",
  64821. "uc_greedy": "1f195",
  64822. "shortnames": [],
  64823. "category": "symbols"
  64824. },
  64825. ":new_moon:": {
  64826. "uc_base": "1f311",
  64827. "uc_output": "1f311",
  64828. "uc_match": "1f311",
  64829. "uc_greedy": "1f311",
  64830. "shortnames": [],
  64831. "category": "nature"
  64832. },
  64833. ":new_moon_with_face:": {
  64834. "uc_base": "1f31a",
  64835. "uc_output": "1f31a",
  64836. "uc_match": "1f31a",
  64837. "uc_greedy": "1f31a",
  64838. "shortnames": [],
  64839. "category": "nature"
  64840. },
  64841. ":newspaper2:": {
  64842. "uc_base": "1f5de",
  64843. "uc_output": "1f5de",
  64844. "uc_match": "1f5de-fe0f",
  64845. "uc_greedy": "1f5de-fe0f",
  64846. "shortnames": [":rolled_up_newspaper:"],
  64847. "category": "objects"
  64848. },
  64849. ":newspaper:": {
  64850. "uc_base": "1f4f0",
  64851. "uc_output": "1f4f0",
  64852. "uc_match": "1f4f0",
  64853. "uc_greedy": "1f4f0",
  64854. "shortnames": [],
  64855. "category": "objects"
  64856. },
  64857. ":ng:": {
  64858. "uc_base": "1f196",
  64859. "uc_output": "1f196",
  64860. "uc_match": "1f196",
  64861. "uc_greedy": "1f196",
  64862. "shortnames": [],
  64863. "category": "symbols"
  64864. },
  64865. ":night_with_stars:": {
  64866. "uc_base": "1f303",
  64867. "uc_output": "1f303",
  64868. "uc_match": "1f303",
  64869. "uc_greedy": "1f303",
  64870. "shortnames": [],
  64871. "category": "travel"
  64872. },
  64873. ":no_bell:": {
  64874. "uc_base": "1f515",
  64875. "uc_output": "1f515",
  64876. "uc_match": "1f515",
  64877. "uc_greedy": "1f515",
  64878. "shortnames": [],
  64879. "category": "symbols"
  64880. },
  64881. ":no_bicycles:": {
  64882. "uc_base": "1f6b3",
  64883. "uc_output": "1f6b3",
  64884. "uc_match": "1f6b3",
  64885. "uc_greedy": "1f6b3",
  64886. "shortnames": [],
  64887. "category": "symbols"
  64888. },
  64889. ":no_entry_sign:": {
  64890. "uc_base": "1f6ab",
  64891. "uc_output": "1f6ab",
  64892. "uc_match": "1f6ab",
  64893. "uc_greedy": "1f6ab",
  64894. "shortnames": [],
  64895. "category": "symbols"
  64896. },
  64897. ":no_mobile_phones:": {
  64898. "uc_base": "1f4f5",
  64899. "uc_output": "1f4f5",
  64900. "uc_match": "1f4f5",
  64901. "uc_greedy": "1f4f5",
  64902. "shortnames": [],
  64903. "category": "symbols"
  64904. },
  64905. ":no_mouth:": {
  64906. "uc_base": "1f636",
  64907. "uc_output": "1f636",
  64908. "uc_match": "1f636",
  64909. "uc_greedy": "1f636",
  64910. "shortnames": [],
  64911. "category": "people"
  64912. },
  64913. ":no_pedestrians:": {
  64914. "uc_base": "1f6b7",
  64915. "uc_output": "1f6b7",
  64916. "uc_match": "1f6b7",
  64917. "uc_greedy": "1f6b7",
  64918. "shortnames": [],
  64919. "category": "symbols"
  64920. },
  64921. ":no_smoking:": {
  64922. "uc_base": "1f6ad",
  64923. "uc_output": "1f6ad",
  64924. "uc_match": "1f6ad-fe0f",
  64925. "uc_greedy": "1f6ad-fe0f",
  64926. "shortnames": [],
  64927. "category": "symbols"
  64928. },
  64929. ":non-potable_water:": {
  64930. "uc_base": "1f6b1",
  64931. "uc_output": "1f6b1",
  64932. "uc_match": "1f6b1",
  64933. "uc_greedy": "1f6b1",
  64934. "shortnames": [],
  64935. "category": "symbols"
  64936. },
  64937. ":nose:": {
  64938. "uc_base": "1f443",
  64939. "uc_output": "1f443",
  64940. "uc_match": "1f443",
  64941. "uc_greedy": "1f443",
  64942. "shortnames": [],
  64943. "category": "people"
  64944. },
  64945. ":notebook:": {
  64946. "uc_base": "1f4d3",
  64947. "uc_output": "1f4d3",
  64948. "uc_match": "1f4d3",
  64949. "uc_greedy": "1f4d3",
  64950. "shortnames": [],
  64951. "category": "objects"
  64952. },
  64953. ":notebook_with_decorative_cover:": {
  64954. "uc_base": "1f4d4",
  64955. "uc_output": "1f4d4",
  64956. "uc_match": "1f4d4",
  64957. "uc_greedy": "1f4d4",
  64958. "shortnames": [],
  64959. "category": "objects"
  64960. },
  64961. ":notepad_spiral:": {
  64962. "uc_base": "1f5d2",
  64963. "uc_output": "1f5d2",
  64964. "uc_match": "1f5d2-fe0f",
  64965. "uc_greedy": "1f5d2-fe0f",
  64966. "shortnames": [":spiral_note_pad:"],
  64967. "category": "objects"
  64968. },
  64969. ":notes:": {
  64970. "uc_base": "1f3b6",
  64971. "uc_output": "1f3b6",
  64972. "uc_match": "1f3b6",
  64973. "uc_greedy": "1f3b6",
  64974. "shortnames": [],
  64975. "category": "symbols"
  64976. },
  64977. ":nut_and_bolt:": {
  64978. "uc_base": "1f529",
  64979. "uc_output": "1f529",
  64980. "uc_match": "1f529",
  64981. "uc_greedy": "1f529",
  64982. "shortnames": [],
  64983. "category": "objects"
  64984. },
  64985. ":o2:": {
  64986. "uc_base": "1f17e",
  64987. "uc_output": "1f17e",
  64988. "uc_match": "1f17e-fe0f",
  64989. "uc_greedy": "1f17e-fe0f",
  64990. "shortnames": [],
  64991. "category": "symbols"
  64992. },
  64993. ":ocean:": {
  64994. "uc_base": "1f30a",
  64995. "uc_output": "1f30a",
  64996. "uc_match": "1f30a",
  64997. "uc_greedy": "1f30a",
  64998. "shortnames": [],
  64999. "category": "nature"
  65000. },
  65001. ":octagonal_sign:": {
  65002. "uc_base": "1f6d1",
  65003. "uc_output": "1f6d1",
  65004. "uc_match": "1f6d1",
  65005. "uc_greedy": "1f6d1",
  65006. "shortnames": [":stop_sign:"],
  65007. "category": "symbols"
  65008. },
  65009. ":octopus:": {
  65010. "uc_base": "1f419",
  65011. "uc_output": "1f419",
  65012. "uc_match": "1f419",
  65013. "uc_greedy": "1f419",
  65014. "shortnames": [],
  65015. "category": "nature"
  65016. },
  65017. ":oden:": {
  65018. "uc_base": "1f362",
  65019. "uc_output": "1f362",
  65020. "uc_match": "1f362",
  65021. "uc_greedy": "1f362",
  65022. "shortnames": [],
  65023. "category": "food"
  65024. },
  65025. ":office:": {
  65026. "uc_base": "1f3e2",
  65027. "uc_output": "1f3e2",
  65028. "uc_match": "1f3e2",
  65029. "uc_greedy": "1f3e2",
  65030. "shortnames": [],
  65031. "category": "travel"
  65032. },
  65033. ":oil:": {
  65034. "uc_base": "1f6e2",
  65035. "uc_output": "1f6e2",
  65036. "uc_match": "1f6e2-fe0f",
  65037. "uc_greedy": "1f6e2-fe0f",
  65038. "shortnames": [":oil_drum:"],
  65039. "category": "objects"
  65040. },
  65041. ":ok:": {
  65042. "uc_base": "1f197",
  65043. "uc_output": "1f197",
  65044. "uc_match": "1f197",
  65045. "uc_greedy": "1f197",
  65046. "shortnames": [],
  65047. "category": "symbols"
  65048. },
  65049. ":ok_hand:": {
  65050. "uc_base": "1f44c",
  65051. "uc_output": "1f44c",
  65052. "uc_match": "1f44c",
  65053. "uc_greedy": "1f44c",
  65054. "shortnames": [],
  65055. "category": "people"
  65056. },
  65057. ":older_adult:": {
  65058. "uc_base": "1f9d3",
  65059. "uc_output": "1f9d3",
  65060. "uc_match": "1f9d3",
  65061. "uc_greedy": "1f9d3",
  65062. "shortnames": [],
  65063. "category": "people"
  65064. },
  65065. ":older_man:": {
  65066. "uc_base": "1f474",
  65067. "uc_output": "1f474",
  65068. "uc_match": "1f474",
  65069. "uc_greedy": "1f474",
  65070. "shortnames": [],
  65071. "category": "people"
  65072. },
  65073. ":older_woman:": {
  65074. "uc_base": "1f475",
  65075. "uc_output": "1f475",
  65076. "uc_match": "1f475",
  65077. "uc_greedy": "1f475",
  65078. "shortnames": [":grandma:"],
  65079. "category": "people"
  65080. },
  65081. ":om_symbol:": {
  65082. "uc_base": "1f549",
  65083. "uc_output": "1f549",
  65084. "uc_match": "1f549-fe0f",
  65085. "uc_greedy": "1f549",
  65086. "shortnames": [],
  65087. "category": "symbols"
  65088. },
  65089. ":on:": {
  65090. "uc_base": "1f51b",
  65091. "uc_output": "1f51b",
  65092. "uc_match": "1f51b",
  65093. "uc_greedy": "1f51b",
  65094. "shortnames": [],
  65095. "category": "symbols"
  65096. },
  65097. ":oncoming_automobile:": {
  65098. "uc_base": "1f698",
  65099. "uc_output": "1f698",
  65100. "uc_match": "1f698-fe0f",
  65101. "uc_greedy": "1f698-fe0f",
  65102. "shortnames": [],
  65103. "category": "travel"
  65104. },
  65105. ":oncoming_bus:": {
  65106. "uc_base": "1f68d",
  65107. "uc_output": "1f68d",
  65108. "uc_match": "1f68d-fe0f",
  65109. "uc_greedy": "1f68d-fe0f",
  65110. "shortnames": [],
  65111. "category": "travel"
  65112. },
  65113. ":oncoming_police_car:": {
  65114. "uc_base": "1f694",
  65115. "uc_output": "1f694",
  65116. "uc_match": "1f694-fe0f",
  65117. "uc_greedy": "1f694-fe0f",
  65118. "shortnames": [],
  65119. "category": "travel"
  65120. },
  65121. ":oncoming_taxi:": {
  65122. "uc_base": "1f696",
  65123. "uc_output": "1f696",
  65124. "uc_match": "1f696",
  65125. "uc_greedy": "1f696",
  65126. "shortnames": [],
  65127. "category": "travel"
  65128. },
  65129. ":open_file_folder:": {
  65130. "uc_base": "1f4c2",
  65131. "uc_output": "1f4c2",
  65132. "uc_match": "1f4c2",
  65133. "uc_greedy": "1f4c2",
  65134. "shortnames": [],
  65135. "category": "objects"
  65136. },
  65137. ":open_hands:": {
  65138. "uc_base": "1f450",
  65139. "uc_output": "1f450",
  65140. "uc_match": "1f450",
  65141. "uc_greedy": "1f450",
  65142. "shortnames": [],
  65143. "category": "people"
  65144. },
  65145. ":open_mouth:": {
  65146. "uc_base": "1f62e",
  65147. "uc_output": "1f62e",
  65148. "uc_match": "1f62e",
  65149. "uc_greedy": "1f62e",
  65150. "shortnames": [],
  65151. "category": "people"
  65152. },
  65153. ":orange_book:": {
  65154. "uc_base": "1f4d9",
  65155. "uc_output": "1f4d9",
  65156. "uc_match": "1f4d9",
  65157. "uc_greedy": "1f4d9",
  65158. "shortnames": [],
  65159. "category": "objects"
  65160. },
  65161. ":orange_heart:": {
  65162. "uc_base": "1f9e1",
  65163. "uc_output": "1f9e1",
  65164. "uc_match": "1f9e1",
  65165. "uc_greedy": "1f9e1",
  65166. "shortnames": [],
  65167. "category": "symbols"
  65168. },
  65169. ":outbox_tray:": {
  65170. "uc_base": "1f4e4",
  65171. "uc_output": "1f4e4",
  65172. "uc_match": "1f4e4-fe0f",
  65173. "uc_greedy": "1f4e4-fe0f",
  65174. "shortnames": [],
  65175. "category": "objects"
  65176. },
  65177. ":owl:": {
  65178. "uc_base": "1f989",
  65179. "uc_output": "1f989",
  65180. "uc_match": "1f989",
  65181. "uc_greedy": "1f989",
  65182. "shortnames": [],
  65183. "category": "nature"
  65184. },
  65185. ":ox:": {
  65186. "uc_base": "1f402",
  65187. "uc_output": "1f402",
  65188. "uc_match": "1f402",
  65189. "uc_greedy": "1f402",
  65190. "shortnames": [],
  65191. "category": "nature"
  65192. },
  65193. ":package:": {
  65194. "uc_base": "1f4e6",
  65195. "uc_output": "1f4e6",
  65196. "uc_match": "1f4e6-fe0f",
  65197. "uc_greedy": "1f4e6-fe0f",
  65198. "shortnames": [],
  65199. "category": "objects"
  65200. },
  65201. ":page_facing_up:": {
  65202. "uc_base": "1f4c4",
  65203. "uc_output": "1f4c4",
  65204. "uc_match": "1f4c4",
  65205. "uc_greedy": "1f4c4",
  65206. "shortnames": [],
  65207. "category": "objects"
  65208. },
  65209. ":page_with_curl:": {
  65210. "uc_base": "1f4c3",
  65211. "uc_output": "1f4c3",
  65212. "uc_match": "1f4c3",
  65213. "uc_greedy": "1f4c3",
  65214. "shortnames": [],
  65215. "category": "objects"
  65216. },
  65217. ":pager:": {
  65218. "uc_base": "1f4df",
  65219. "uc_output": "1f4df",
  65220. "uc_match": "1f4df-fe0f",
  65221. "uc_greedy": "1f4df-fe0f",
  65222. "shortnames": [],
  65223. "category": "objects"
  65224. },
  65225. ":paintbrush:": {
  65226. "uc_base": "1f58c",
  65227. "uc_output": "1f58c",
  65228. "uc_match": "1f58c-fe0f",
  65229. "uc_greedy": "1f58c-fe0f",
  65230. "shortnames": [":lower_left_paintbrush:"],
  65231. "category": "objects"
  65232. },
  65233. ":palm_tree:": {
  65234. "uc_base": "1f334",
  65235. "uc_output": "1f334",
  65236. "uc_match": "1f334",
  65237. "uc_greedy": "1f334",
  65238. "shortnames": [],
  65239. "category": "nature"
  65240. },
  65241. ":palms_up_together:": {
  65242. "uc_base": "1f932",
  65243. "uc_output": "1f932",
  65244. "uc_match": "1f932",
  65245. "uc_greedy": "1f932",
  65246. "shortnames": [],
  65247. "category": "people"
  65248. },
  65249. ":pancakes:": {
  65250. "uc_base": "1f95e",
  65251. "uc_output": "1f95e",
  65252. "uc_match": "1f95e",
  65253. "uc_greedy": "1f95e",
  65254. "shortnames": [],
  65255. "category": "food"
  65256. },
  65257. ":panda_face:": {
  65258. "uc_base": "1f43c",
  65259. "uc_output": "1f43c",
  65260. "uc_match": "1f43c",
  65261. "uc_greedy": "1f43c",
  65262. "shortnames": [],
  65263. "category": "nature"
  65264. },
  65265. ":paperclip:": {
  65266. "uc_base": "1f4ce",
  65267. "uc_output": "1f4ce",
  65268. "uc_match": "1f4ce",
  65269. "uc_greedy": "1f4ce",
  65270. "shortnames": [],
  65271. "category": "objects"
  65272. },
  65273. ":paperclips:": {
  65274. "uc_base": "1f587",
  65275. "uc_output": "1f587",
  65276. "uc_match": "1f587-fe0f",
  65277. "uc_greedy": "1f587-fe0f",
  65278. "shortnames": [":linked_paperclips:"],
  65279. "category": "objects"
  65280. },
  65281. ":park:": {
  65282. "uc_base": "1f3de",
  65283. "uc_output": "1f3de",
  65284. "uc_match": "1f3de-fe0f",
  65285. "uc_greedy": "1f3de-fe0f",
  65286. "shortnames": [":national_park:"],
  65287. "category": "travel"
  65288. },
  65289. ":parking:": {
  65290. "uc_base": "1f17f",
  65291. "uc_output": "1f17f",
  65292. "uc_match": "1f17f-fe0f",
  65293. "uc_greedy": "1f17f-fe0f",
  65294. "shortnames": [],
  65295. "category": "symbols"
  65296. },
  65297. ":passport_control:": {
  65298. "uc_base": "1f6c2",
  65299. "uc_output": "1f6c2",
  65300. "uc_match": "1f6c2",
  65301. "uc_greedy": "1f6c2",
  65302. "shortnames": [],
  65303. "category": "symbols"
  65304. },
  65305. ":peach:": {
  65306. "uc_base": "1f351",
  65307. "uc_output": "1f351",
  65308. "uc_match": "1f351",
  65309. "uc_greedy": "1f351",
  65310. "shortnames": [],
  65311. "category": "food"
  65312. },
  65313. ":peanuts:": {
  65314. "uc_base": "1f95c",
  65315. "uc_output": "1f95c",
  65316. "uc_match": "1f95c",
  65317. "uc_greedy": "1f95c",
  65318. "shortnames": [":shelled_peanut:"],
  65319. "category": "food"
  65320. },
  65321. ":pear:": {
  65322. "uc_base": "1f350",
  65323. "uc_output": "1f350",
  65324. "uc_match": "1f350",
  65325. "uc_greedy": "1f350",
  65326. "shortnames": [],
  65327. "category": "food"
  65328. },
  65329. ":pen_ballpoint:": {
  65330. "uc_base": "1f58a",
  65331. "uc_output": "1f58a",
  65332. "uc_match": "1f58a-fe0f",
  65333. "uc_greedy": "1f58a-fe0f",
  65334. "shortnames": [":lower_left_ballpoint_pen:"],
  65335. "category": "objects"
  65336. },
  65337. ":pen_fountain:": {
  65338. "uc_base": "1f58b",
  65339. "uc_output": "1f58b",
  65340. "uc_match": "1f58b-fe0f",
  65341. "uc_greedy": "1f58b-fe0f",
  65342. "shortnames": [":lower_left_fountain_pen:"],
  65343. "category": "objects"
  65344. },
  65345. ":pencil:": {
  65346. "uc_base": "1f4dd",
  65347. "uc_output": "1f4dd",
  65348. "uc_match": "1f4dd",
  65349. "uc_greedy": "1f4dd",
  65350. "shortnames": [":memo:"],
  65351. "category": "objects"
  65352. },
  65353. ":penguin:": {
  65354. "uc_base": "1f427",
  65355. "uc_output": "1f427",
  65356. "uc_match": "1f427",
  65357. "uc_greedy": "1f427",
  65358. "shortnames": [],
  65359. "category": "nature"
  65360. },
  65361. ":pensive:": {
  65362. "uc_base": "1f614",
  65363. "uc_output": "1f614",
  65364. "uc_match": "1f614",
  65365. "uc_greedy": "1f614",
  65366. "shortnames": [],
  65367. "category": "people"
  65368. },
  65369. ":people_with_bunny_ears_partying:": {
  65370. "uc_base": "1f46f",
  65371. "uc_output": "1f46f",
  65372. "uc_match": "1f46f",
  65373. "uc_greedy": "1f46f",
  65374. "shortnames": [":dancers:"],
  65375. "category": "people"
  65376. },
  65377. ":people_wrestling:": {
  65378. "uc_base": "1f93c",
  65379. "uc_output": "1f93c",
  65380. "uc_match": "1f93c",
  65381. "uc_greedy": "1f93c",
  65382. "shortnames": [":wrestlers:", ":wrestling:"],
  65383. "category": "activity"
  65384. },
  65385. ":performing_arts:": {
  65386. "uc_base": "1f3ad",
  65387. "uc_output": "1f3ad",
  65388. "uc_match": "1f3ad-fe0f",
  65389. "uc_greedy": "1f3ad-fe0f",
  65390. "shortnames": [],
  65391. "category": "activity"
  65392. },
  65393. ":persevere:": {
  65394. "uc_base": "1f623",
  65395. "uc_output": "1f623",
  65396. "uc_match": "1f623",
  65397. "uc_greedy": "1f623",
  65398. "shortnames": [],
  65399. "category": "people"
  65400. },
  65401. ":person_biking:": {
  65402. "uc_base": "1f6b4",
  65403. "uc_output": "1f6b4",
  65404. "uc_match": "1f6b4",
  65405. "uc_greedy": "1f6b4",
  65406. "shortnames": [":bicyclist:"],
  65407. "category": "activity"
  65408. },
  65409. ":person_bowing:": {
  65410. "uc_base": "1f647",
  65411. "uc_output": "1f647",
  65412. "uc_match": "1f647",
  65413. "uc_greedy": "1f647",
  65414. "shortnames": [":bow:"],
  65415. "category": "people"
  65416. },
  65417. ":person_climbing:": {
  65418. "uc_base": "1f9d7",
  65419. "uc_output": "1f9d7",
  65420. "uc_match": "1f9d7",
  65421. "uc_greedy": "1f9d7",
  65422. "shortnames": [],
  65423. "category": "activity"
  65424. },
  65425. ":person_doing_cartwheel:": {
  65426. "uc_base": "1f938",
  65427. "uc_output": "1f938",
  65428. "uc_match": "1f938",
  65429. "uc_greedy": "1f938",
  65430. "shortnames": [":cartwheel:"],
  65431. "category": "activity"
  65432. },
  65433. ":person_facepalming:": {
  65434. "uc_base": "1f926",
  65435. "uc_output": "1f926",
  65436. "uc_match": "1f926",
  65437. "uc_greedy": "1f926",
  65438. "shortnames": [":face_palm:", ":facepalm:"],
  65439. "category": "people"
  65440. },
  65441. ":person_fencing:": {
  65442. "uc_base": "1f93a",
  65443. "uc_output": "1f93a",
  65444. "uc_match": "1f93a",
  65445. "uc_greedy": "1f93a",
  65446. "shortnames": [":fencer:", ":fencing:"],
  65447. "category": "activity"
  65448. },
  65449. ":person_frowning:": {
  65450. "uc_base": "1f64d",
  65451. "uc_output": "1f64d",
  65452. "uc_match": "1f64d",
  65453. "uc_greedy": "1f64d",
  65454. "shortnames": [],
  65455. "category": "people"
  65456. },
  65457. ":person_gesturing_no:": {
  65458. "uc_base": "1f645",
  65459. "uc_output": "1f645",
  65460. "uc_match": "1f645",
  65461. "uc_greedy": "1f645",
  65462. "shortnames": [":no_good:"],
  65463. "category": "people"
  65464. },
  65465. ":person_gesturing_ok:": {
  65466. "uc_base": "1f646",
  65467. "uc_output": "1f646",
  65468. "uc_match": "1f646",
  65469. "uc_greedy": "1f646",
  65470. "shortnames": [":ok_woman:"],
  65471. "category": "people"
  65472. },
  65473. ":person_getting_haircut:": {
  65474. "uc_base": "1f487",
  65475. "uc_output": "1f487",
  65476. "uc_match": "1f487",
  65477. "uc_greedy": "1f487",
  65478. "shortnames": [":haircut:"],
  65479. "category": "people"
  65480. },
  65481. ":person_getting_massage:": {
  65482. "uc_base": "1f486",
  65483. "uc_output": "1f486",
  65484. "uc_match": "1f486",
  65485. "uc_greedy": "1f486",
  65486. "shortnames": [":massage:"],
  65487. "category": "people"
  65488. },
  65489. ":person_golfing:": {
  65490. "uc_base": "1f3cc",
  65491. "uc_output": "1f3cc",
  65492. "uc_match": "1f3cc-fe0f",
  65493. "uc_greedy": "1f3cc-fe0f",
  65494. "shortnames": [":golfer:"],
  65495. "category": "activity"
  65496. },
  65497. ":person_in_lotus_position:": {
  65498. "uc_base": "1f9d8",
  65499. "uc_output": "1f9d8",
  65500. "uc_match": "1f9d8",
  65501. "uc_greedy": "1f9d8",
  65502. "shortnames": [],
  65503. "category": "activity"
  65504. },
  65505. ":person_in_steamy_room:": {
  65506. "uc_base": "1f9d6",
  65507. "uc_output": "1f9d6",
  65508. "uc_match": "1f9d6",
  65509. "uc_greedy": "1f9d6",
  65510. "shortnames": [],
  65511. "category": "people"
  65512. },
  65513. ":person_juggling:": {
  65514. "uc_base": "1f939",
  65515. "uc_output": "1f939",
  65516. "uc_match": "1f939",
  65517. "uc_greedy": "1f939",
  65518. "shortnames": [":juggling:", ":juggler:"],
  65519. "category": "activity"
  65520. },
  65521. ":person_lifting_weights:": {
  65522. "uc_base": "1f3cb",
  65523. "uc_output": "1f3cb",
  65524. "uc_match": "1f3cb-fe0f",
  65525. "uc_greedy": "1f3cb-fe0f",
  65526. "shortnames": [":lifter:", ":weight_lifter:"],
  65527. "category": "activity"
  65528. },
  65529. ":person_mountain_biking:": {
  65530. "uc_base": "1f6b5",
  65531. "uc_output": "1f6b5",
  65532. "uc_match": "1f6b5",
  65533. "uc_greedy": "1f6b5",
  65534. "shortnames": [":mountain_bicyclist:"],
  65535. "category": "activity"
  65536. },
  65537. ":person_playing_handball:": {
  65538. "uc_base": "1f93e",
  65539. "uc_output": "1f93e",
  65540. "uc_match": "1f93e",
  65541. "uc_greedy": "1f93e",
  65542. "shortnames": [":handball:"],
  65543. "category": "activity"
  65544. },
  65545. ":person_playing_water_polo:": {
  65546. "uc_base": "1f93d",
  65547. "uc_output": "1f93d",
  65548. "uc_match": "1f93d",
  65549. "uc_greedy": "1f93d",
  65550. "shortnames": [":water_polo:"],
  65551. "category": "activity"
  65552. },
  65553. ":person_pouting:": {
  65554. "uc_base": "1f64e",
  65555. "uc_output": "1f64e",
  65556. "uc_match": "1f64e",
  65557. "uc_greedy": "1f64e",
  65558. "shortnames": [":person_with_pouting_face:"],
  65559. "category": "people"
  65560. },
  65561. ":person_raising_hand:": {
  65562. "uc_base": "1f64b",
  65563. "uc_output": "1f64b",
  65564. "uc_match": "1f64b",
  65565. "uc_greedy": "1f64b",
  65566. "shortnames": [":raising_hand:"],
  65567. "category": "people"
  65568. },
  65569. ":person_rowing_boat:": {
  65570. "uc_base": "1f6a3",
  65571. "uc_output": "1f6a3",
  65572. "uc_match": "1f6a3",
  65573. "uc_greedy": "1f6a3",
  65574. "shortnames": [":rowboat:"],
  65575. "category": "activity"
  65576. },
  65577. ":person_running:": {
  65578. "uc_base": "1f3c3",
  65579. "uc_output": "1f3c3",
  65580. "uc_match": "1f3c3",
  65581. "uc_greedy": "1f3c3",
  65582. "shortnames": [":runner:"],
  65583. "category": "people"
  65584. },
  65585. ":person_shrugging:": {
  65586. "uc_base": "1f937",
  65587. "uc_output": "1f937",
  65588. "uc_match": "1f937",
  65589. "uc_greedy": "1f937",
  65590. "shortnames": [":shrug:"],
  65591. "category": "people"
  65592. },
  65593. ":person_surfing:": {
  65594. "uc_base": "1f3c4",
  65595. "uc_output": "1f3c4",
  65596. "uc_match": "1f3c4-fe0f",
  65597. "uc_greedy": "1f3c4-fe0f",
  65598. "shortnames": [":surfer:"],
  65599. "category": "activity"
  65600. },
  65601. ":person_swimming:": {
  65602. "uc_base": "1f3ca",
  65603. "uc_output": "1f3ca",
  65604. "uc_match": "1f3ca-fe0f",
  65605. "uc_greedy": "1f3ca-fe0f",
  65606. "shortnames": [":swimmer:"],
  65607. "category": "activity"
  65608. },
  65609. ":person_tipping_hand:": {
  65610. "uc_base": "1f481",
  65611. "uc_output": "1f481",
  65612. "uc_match": "1f481",
  65613. "uc_greedy": "1f481",
  65614. "shortnames": [":information_desk_person:"],
  65615. "category": "people"
  65616. },
  65617. ":person_walking:": {
  65618. "uc_base": "1f6b6",
  65619. "uc_output": "1f6b6",
  65620. "uc_match": "1f6b6",
  65621. "uc_greedy": "1f6b6",
  65622. "shortnames": [":walking:"],
  65623. "category": "people"
  65624. },
  65625. ":person_wearing_turban:": {
  65626. "uc_base": "1f473",
  65627. "uc_output": "1f473",
  65628. "uc_match": "1f473",
  65629. "uc_greedy": "1f473",
  65630. "shortnames": [":man_with_turban:"],
  65631. "category": "people"
  65632. },
  65633. ":pie:": {
  65634. "uc_base": "1f967",
  65635. "uc_output": "1f967",
  65636. "uc_match": "1f967",
  65637. "uc_greedy": "1f967",
  65638. "shortnames": [],
  65639. "category": "food"
  65640. },
  65641. ":pig2:": {
  65642. "uc_base": "1f416",
  65643. "uc_output": "1f416",
  65644. "uc_match": "1f416",
  65645. "uc_greedy": "1f416",
  65646. "shortnames": [],
  65647. "category": "nature"
  65648. },
  65649. ":pig:": {
  65650. "uc_base": "1f437",
  65651. "uc_output": "1f437",
  65652. "uc_match": "1f437",
  65653. "uc_greedy": "1f437",
  65654. "shortnames": [],
  65655. "category": "nature"
  65656. },
  65657. ":pig_nose:": {
  65658. "uc_base": "1f43d",
  65659. "uc_output": "1f43d",
  65660. "uc_match": "1f43d",
  65661. "uc_greedy": "1f43d",
  65662. "shortnames": [],
  65663. "category": "nature"
  65664. },
  65665. ":pill:": {
  65666. "uc_base": "1f48a",
  65667. "uc_output": "1f48a",
  65668. "uc_match": "1f48a",
  65669. "uc_greedy": "1f48a",
  65670. "shortnames": [],
  65671. "category": "objects"
  65672. },
  65673. ":pineapple:": {
  65674. "uc_base": "1f34d",
  65675. "uc_output": "1f34d",
  65676. "uc_match": "1f34d",
  65677. "uc_greedy": "1f34d",
  65678. "shortnames": [],
  65679. "category": "food"
  65680. },
  65681. ":ping_pong:": {
  65682. "uc_base": "1f3d3",
  65683. "uc_output": "1f3d3",
  65684. "uc_match": "1f3d3",
  65685. "uc_greedy": "1f3d3",
  65686. "shortnames": [":table_tennis:"],
  65687. "category": "activity"
  65688. },
  65689. ":pizza:": {
  65690. "uc_base": "1f355",
  65691. "uc_output": "1f355",
  65692. "uc_match": "1f355",
  65693. "uc_greedy": "1f355",
  65694. "shortnames": [],
  65695. "category": "food"
  65696. },
  65697. ":place_of_worship:": {
  65698. "uc_base": "1f6d0",
  65699. "uc_output": "1f6d0",
  65700. "uc_match": "1f6d0",
  65701. "uc_greedy": "1f6d0",
  65702. "shortnames": [":worship_symbol:"],
  65703. "category": "symbols"
  65704. },
  65705. ":point_down:": {
  65706. "uc_base": "1f447",
  65707. "uc_output": "1f447",
  65708. "uc_match": "1f447-fe0f",
  65709. "uc_greedy": "1f447-fe0f",
  65710. "shortnames": [],
  65711. "category": "people"
  65712. },
  65713. ":point_left:": {
  65714. "uc_base": "1f448",
  65715. "uc_output": "1f448",
  65716. "uc_match": "1f448-fe0f",
  65717. "uc_greedy": "1f448-fe0f",
  65718. "shortnames": [],
  65719. "category": "people"
  65720. },
  65721. ":point_right:": {
  65722. "uc_base": "1f449",
  65723. "uc_output": "1f449",
  65724. "uc_match": "1f449-fe0f",
  65725. "uc_greedy": "1f449-fe0f",
  65726. "shortnames": [],
  65727. "category": "people"
  65728. },
  65729. ":point_up_2:": {
  65730. "uc_base": "1f446",
  65731. "uc_output": "1f446",
  65732. "uc_match": "1f446-fe0f",
  65733. "uc_greedy": "1f446-fe0f",
  65734. "shortnames": [],
  65735. "category": "people"
  65736. },
  65737. ":police_car:": {
  65738. "uc_base": "1f693",
  65739. "uc_output": "1f693",
  65740. "uc_match": "1f693",
  65741. "uc_greedy": "1f693",
  65742. "shortnames": [],
  65743. "category": "travel"
  65744. },
  65745. ":police_officer:": {
  65746. "uc_base": "1f46e",
  65747. "uc_output": "1f46e",
  65748. "uc_match": "1f46e",
  65749. "uc_greedy": "1f46e",
  65750. "shortnames": [":cop:"],
  65751. "category": "people"
  65752. },
  65753. ":poodle:": {
  65754. "uc_base": "1f429",
  65755. "uc_output": "1f429",
  65756. "uc_match": "1f429",
  65757. "uc_greedy": "1f429",
  65758. "shortnames": [],
  65759. "category": "nature"
  65760. },
  65761. ":poop:": {
  65762. "uc_base": "1f4a9",
  65763. "uc_output": "1f4a9",
  65764. "uc_match": "1f4a9",
  65765. "uc_greedy": "1f4a9",
  65766. "shortnames": [":shit:", ":hankey:", ":poo:"],
  65767. "category": "people"
  65768. },
  65769. ":popcorn:": {
  65770. "uc_base": "1f37f",
  65771. "uc_output": "1f37f",
  65772. "uc_match": "1f37f",
  65773. "uc_greedy": "1f37f",
  65774. "shortnames": [],
  65775. "category": "food"
  65776. },
  65777. ":post_office:": {
  65778. "uc_base": "1f3e3",
  65779. "uc_output": "1f3e3",
  65780. "uc_match": "1f3e3",
  65781. "uc_greedy": "1f3e3",
  65782. "shortnames": [],
  65783. "category": "travel"
  65784. },
  65785. ":postal_horn:": {
  65786. "uc_base": "1f4ef",
  65787. "uc_output": "1f4ef",
  65788. "uc_match": "1f4ef",
  65789. "uc_greedy": "1f4ef",
  65790. "shortnames": [],
  65791. "category": "objects"
  65792. },
  65793. ":postbox:": {
  65794. "uc_base": "1f4ee",
  65795. "uc_output": "1f4ee",
  65796. "uc_match": "1f4ee",
  65797. "uc_greedy": "1f4ee",
  65798. "shortnames": [],
  65799. "category": "objects"
  65800. },
  65801. ":potable_water:": {
  65802. "uc_base": "1f6b0",
  65803. "uc_output": "1f6b0",
  65804. "uc_match": "1f6b0",
  65805. "uc_greedy": "1f6b0",
  65806. "shortnames": [],
  65807. "category": "objects"
  65808. },
  65809. ":potato:": {
  65810. "uc_base": "1f954",
  65811. "uc_output": "1f954",
  65812. "uc_match": "1f954",
  65813. "uc_greedy": "1f954",
  65814. "shortnames": [],
  65815. "category": "food"
  65816. },
  65817. ":pouch:": {
  65818. "uc_base": "1f45d",
  65819. "uc_output": "1f45d",
  65820. "uc_match": "1f45d",
  65821. "uc_greedy": "1f45d",
  65822. "shortnames": [],
  65823. "category": "people"
  65824. },
  65825. ":poultry_leg:": {
  65826. "uc_base": "1f357",
  65827. "uc_output": "1f357",
  65828. "uc_match": "1f357",
  65829. "uc_greedy": "1f357",
  65830. "shortnames": [],
  65831. "category": "food"
  65832. },
  65833. ":pound:": {
  65834. "uc_base": "1f4b7",
  65835. "uc_output": "1f4b7",
  65836. "uc_match": "1f4b7",
  65837. "uc_greedy": "1f4b7",
  65838. "shortnames": [],
  65839. "category": "objects"
  65840. },
  65841. ":pouting_cat:": {
  65842. "uc_base": "1f63e",
  65843. "uc_output": "1f63e",
  65844. "uc_match": "1f63e",
  65845. "uc_greedy": "1f63e",
  65846. "shortnames": [],
  65847. "category": "people"
  65848. },
  65849. ":pray:": {
  65850. "uc_base": "1f64f",
  65851. "uc_output": "1f64f",
  65852. "uc_match": "1f64f",
  65853. "uc_greedy": "1f64f",
  65854. "shortnames": [],
  65855. "category": "people"
  65856. },
  65857. ":prayer_beads:": {
  65858. "uc_base": "1f4ff",
  65859. "uc_output": "1f4ff",
  65860. "uc_match": "1f4ff",
  65861. "uc_greedy": "1f4ff",
  65862. "shortnames": [],
  65863. "category": "objects"
  65864. },
  65865. ":pregnant_woman:": {
  65866. "uc_base": "1f930",
  65867. "uc_output": "1f930",
  65868. "uc_match": "1f930",
  65869. "uc_greedy": "1f930",
  65870. "shortnames": [":expecting_woman:"],
  65871. "category": "people"
  65872. },
  65873. ":pretzel:": {
  65874. "uc_base": "1f968",
  65875. "uc_output": "1f968",
  65876. "uc_match": "1f968",
  65877. "uc_greedy": "1f968",
  65878. "shortnames": [],
  65879. "category": "food"
  65880. },
  65881. ":prince:": {
  65882. "uc_base": "1f934",
  65883. "uc_output": "1f934",
  65884. "uc_match": "1f934",
  65885. "uc_greedy": "1f934",
  65886. "shortnames": [],
  65887. "category": "people"
  65888. },
  65889. ":princess:": {
  65890. "uc_base": "1f478",
  65891. "uc_output": "1f478",
  65892. "uc_match": "1f478",
  65893. "uc_greedy": "1f478",
  65894. "shortnames": [],
  65895. "category": "people"
  65896. },
  65897. ":printer:": {
  65898. "uc_base": "1f5a8",
  65899. "uc_output": "1f5a8",
  65900. "uc_match": "1f5a8-fe0f",
  65901. "uc_greedy": "1f5a8-fe0f",
  65902. "shortnames": [],
  65903. "category": "objects"
  65904. },
  65905. ":projector:": {
  65906. "uc_base": "1f4fd",
  65907. "uc_output": "1f4fd",
  65908. "uc_match": "1f4fd-fe0f",
  65909. "uc_greedy": "1f4fd-fe0f",
  65910. "shortnames": [":film_projector:"],
  65911. "category": "objects"
  65912. },
  65913. ":punch:": {
  65914. "uc_base": "1f44a",
  65915. "uc_output": "1f44a",
  65916. "uc_match": "1f44a",
  65917. "uc_greedy": "1f44a",
  65918. "shortnames": [],
  65919. "category": "people"
  65920. },
  65921. ":purple_heart:": {
  65922. "uc_base": "1f49c",
  65923. "uc_output": "1f49c",
  65924. "uc_match": "1f49c",
  65925. "uc_greedy": "1f49c",
  65926. "shortnames": [],
  65927. "category": "symbols"
  65928. },
  65929. ":purse:": {
  65930. "uc_base": "1f45b",
  65931. "uc_output": "1f45b",
  65932. "uc_match": "1f45b",
  65933. "uc_greedy": "1f45b",
  65934. "shortnames": [],
  65935. "category": "people"
  65936. },
  65937. ":pushpin:": {
  65938. "uc_base": "1f4cc",
  65939. "uc_output": "1f4cc",
  65940. "uc_match": "1f4cc",
  65941. "uc_greedy": "1f4cc",
  65942. "shortnames": [],
  65943. "category": "objects"
  65944. },
  65945. ":put_litter_in_its_place:": {
  65946. "uc_base": "1f6ae",
  65947. "uc_output": "1f6ae",
  65948. "uc_match": "1f6ae",
  65949. "uc_greedy": "1f6ae",
  65950. "shortnames": [],
  65951. "category": "symbols"
  65952. },
  65953. ":rabbit2:": {
  65954. "uc_base": "1f407",
  65955. "uc_output": "1f407",
  65956. "uc_match": "1f407",
  65957. "uc_greedy": "1f407",
  65958. "shortnames": [],
  65959. "category": "nature"
  65960. },
  65961. ":rabbit:": {
  65962. "uc_base": "1f430",
  65963. "uc_output": "1f430",
  65964. "uc_match": "1f430",
  65965. "uc_greedy": "1f430",
  65966. "shortnames": [],
  65967. "category": "nature"
  65968. },
  65969. ":race_car:": {
  65970. "uc_base": "1f3ce",
  65971. "uc_output": "1f3ce",
  65972. "uc_match": "1f3ce-fe0f",
  65973. "uc_greedy": "1f3ce-fe0f",
  65974. "shortnames": [":racing_car:"],
  65975. "category": "travel"
  65976. },
  65977. ":racehorse:": {
  65978. "uc_base": "1f40e",
  65979. "uc_output": "1f40e",
  65980. "uc_match": "1f40e",
  65981. "uc_greedy": "1f40e",
  65982. "shortnames": [],
  65983. "category": "nature"
  65984. },
  65985. ":radio:": {
  65986. "uc_base": "1f4fb",
  65987. "uc_output": "1f4fb",
  65988. "uc_match": "1f4fb-fe0f",
  65989. "uc_greedy": "1f4fb-fe0f",
  65990. "shortnames": [],
  65991. "category": "objects"
  65992. },
  65993. ":radio_button:": {
  65994. "uc_base": "1f518",
  65995. "uc_output": "1f518",
  65996. "uc_match": "1f518",
  65997. "uc_greedy": "1f518",
  65998. "shortnames": [],
  65999. "category": "symbols"
  66000. },
  66001. ":rage:": {
  66002. "uc_base": "1f621",
  66003. "uc_output": "1f621",
  66004. "uc_match": "1f621",
  66005. "uc_greedy": "1f621",
  66006. "shortnames": [],
  66007. "category": "people"
  66008. },
  66009. ":railway_car:": {
  66010. "uc_base": "1f683",
  66011. "uc_output": "1f683",
  66012. "uc_match": "1f683",
  66013. "uc_greedy": "1f683",
  66014. "shortnames": [],
  66015. "category": "travel"
  66016. },
  66017. ":railway_track:": {
  66018. "uc_base": "1f6e4",
  66019. "uc_output": "1f6e4",
  66020. "uc_match": "1f6e4-fe0f",
  66021. "uc_greedy": "1f6e4-fe0f",
  66022. "shortnames": [":railroad_track:"],
  66023. "category": "travel"
  66024. },
  66025. ":rainbow:": {
  66026. "uc_base": "1f308",
  66027. "uc_output": "1f308",
  66028. "uc_match": "1f308",
  66029. "uc_greedy": "1f308",
  66030. "shortnames": [],
  66031. "category": "nature"
  66032. },
  66033. ":raised_back_of_hand:": {
  66034. "uc_base": "1f91a",
  66035. "uc_output": "1f91a",
  66036. "uc_match": "1f91a",
  66037. "uc_greedy": "1f91a",
  66038. "shortnames": [":back_of_hand:"],
  66039. "category": "people"
  66040. },
  66041. ":raised_hands:": {
  66042. "uc_base": "1f64c",
  66043. "uc_output": "1f64c",
  66044. "uc_match": "1f64c",
  66045. "uc_greedy": "1f64c",
  66046. "shortnames": [],
  66047. "category": "people"
  66048. },
  66049. ":ram:": {
  66050. "uc_base": "1f40f",
  66051. "uc_output": "1f40f",
  66052. "uc_match": "1f40f",
  66053. "uc_greedy": "1f40f",
  66054. "shortnames": [],
  66055. "category": "nature"
  66056. },
  66057. ":ramen:": {
  66058. "uc_base": "1f35c",
  66059. "uc_output": "1f35c",
  66060. "uc_match": "1f35c",
  66061. "uc_greedy": "1f35c",
  66062. "shortnames": [],
  66063. "category": "food"
  66064. },
  66065. ":rat:": {
  66066. "uc_base": "1f400",
  66067. "uc_output": "1f400",
  66068. "uc_match": "1f400",
  66069. "uc_greedy": "1f400",
  66070. "shortnames": [],
  66071. "category": "nature"
  66072. },
  66073. ":red_car:": {
  66074. "uc_base": "1f697",
  66075. "uc_output": "1f697",
  66076. "uc_match": "1f697",
  66077. "uc_greedy": "1f697",
  66078. "shortnames": [],
  66079. "category": "travel"
  66080. },
  66081. ":red_circle:": {
  66082. "uc_base": "1f534",
  66083. "uc_output": "1f534",
  66084. "uc_match": "1f534",
  66085. "uc_greedy": "1f534",
  66086. "shortnames": [],
  66087. "category": "symbols"
  66088. },
  66089. ":regional_indicator_a:": {
  66090. "uc_base": "1f1e6",
  66091. "uc_output": "1f1e6",
  66092. "uc_match": "1f1e6",
  66093. "uc_greedy": "1f1e6",
  66094. "shortnames": [],
  66095. "category": "regional"
  66096. },
  66097. ":regional_indicator_b:": {
  66098. "uc_base": "1f1e7",
  66099. "uc_output": "1f1e7",
  66100. "uc_match": "1f1e7",
  66101. "uc_greedy": "1f1e7",
  66102. "shortnames": [],
  66103. "category": "regional"
  66104. },
  66105. ":regional_indicator_c:": {
  66106. "uc_base": "1f1e8",
  66107. "uc_output": "1f1e8",
  66108. "uc_match": "1f1e8",
  66109. "uc_greedy": "1f1e8",
  66110. "shortnames": [],
  66111. "category": "regional"
  66112. },
  66113. ":regional_indicator_d:": {
  66114. "uc_base": "1f1e9",
  66115. "uc_output": "1f1e9",
  66116. "uc_match": "1f1e9",
  66117. "uc_greedy": "1f1e9",
  66118. "shortnames": [],
  66119. "category": "regional"
  66120. },
  66121. ":regional_indicator_e:": {
  66122. "uc_base": "1f1ea",
  66123. "uc_output": "1f1ea",
  66124. "uc_match": "1f1ea",
  66125. "uc_greedy": "1f1ea",
  66126. "shortnames": [],
  66127. "category": "regional"
  66128. },
  66129. ":regional_indicator_f:": {
  66130. "uc_base": "1f1eb",
  66131. "uc_output": "1f1eb",
  66132. "uc_match": "1f1eb",
  66133. "uc_greedy": "1f1eb",
  66134. "shortnames": [],
  66135. "category": "regional"
  66136. },
  66137. ":regional_indicator_g:": {
  66138. "uc_base": "1f1ec",
  66139. "uc_output": "1f1ec",
  66140. "uc_match": "1f1ec",
  66141. "uc_greedy": "1f1ec",
  66142. "shortnames": [],
  66143. "category": "regional"
  66144. },
  66145. ":regional_indicator_h:": {
  66146. "uc_base": "1f1ed",
  66147. "uc_output": "1f1ed",
  66148. "uc_match": "1f1ed",
  66149. "uc_greedy": "1f1ed",
  66150. "shortnames": [],
  66151. "category": "regional"
  66152. },
  66153. ":regional_indicator_i:": {
  66154. "uc_base": "1f1ee",
  66155. "uc_output": "1f1ee",
  66156. "uc_match": "1f1ee",
  66157. "uc_greedy": "1f1ee",
  66158. "shortnames": [],
  66159. "category": "regional"
  66160. },
  66161. ":regional_indicator_j:": {
  66162. "uc_base": "1f1ef",
  66163. "uc_output": "1f1ef",
  66164. "uc_match": "1f1ef",
  66165. "uc_greedy": "1f1ef",
  66166. "shortnames": [],
  66167. "category": "regional"
  66168. },
  66169. ":regional_indicator_k:": {
  66170. "uc_base": "1f1f0",
  66171. "uc_output": "1f1f0",
  66172. "uc_match": "1f1f0",
  66173. "uc_greedy": "1f1f0",
  66174. "shortnames": [],
  66175. "category": "regional"
  66176. },
  66177. ":regional_indicator_l:": {
  66178. "uc_base": "1f1f1",
  66179. "uc_output": "1f1f1",
  66180. "uc_match": "1f1f1",
  66181. "uc_greedy": "1f1f1",
  66182. "shortnames": [],
  66183. "category": "regional"
  66184. },
  66185. ":regional_indicator_m:": {
  66186. "uc_base": "1f1f2",
  66187. "uc_output": "1f1f2",
  66188. "uc_match": "1f1f2",
  66189. "uc_greedy": "1f1f2",
  66190. "shortnames": [],
  66191. "category": "regional"
  66192. },
  66193. ":regional_indicator_n:": {
  66194. "uc_base": "1f1f3",
  66195. "uc_output": "1f1f3",
  66196. "uc_match": "1f1f3",
  66197. "uc_greedy": "1f1f3",
  66198. "shortnames": [],
  66199. "category": "regional"
  66200. },
  66201. ":regional_indicator_o:": {
  66202. "uc_base": "1f1f4",
  66203. "uc_output": "1f1f4",
  66204. "uc_match": "1f1f4",
  66205. "uc_greedy": "1f1f4",
  66206. "shortnames": [],
  66207. "category": "regional"
  66208. },
  66209. ":regional_indicator_p:": {
  66210. "uc_base": "1f1f5",
  66211. "uc_output": "1f1f5",
  66212. "uc_match": "1f1f5",
  66213. "uc_greedy": "1f1f5",
  66214. "shortnames": [],
  66215. "category": "regional"
  66216. },
  66217. ":regional_indicator_q:": {
  66218. "uc_base": "1f1f6",
  66219. "uc_output": "1f1f6",
  66220. "uc_match": "1f1f6",
  66221. "uc_greedy": "1f1f6",
  66222. "shortnames": [],
  66223. "category": "regional"
  66224. },
  66225. ":regional_indicator_r:": {
  66226. "uc_base": "1f1f7",
  66227. "uc_output": "1f1f7",
  66228. "uc_match": "1f1f7",
  66229. "uc_greedy": "1f1f7",
  66230. "shortnames": [],
  66231. "category": "regional"
  66232. },
  66233. ":regional_indicator_s:": {
  66234. "uc_base": "1f1f8",
  66235. "uc_output": "1f1f8",
  66236. "uc_match": "1f1f8",
  66237. "uc_greedy": "1f1f8",
  66238. "shortnames": [],
  66239. "category": "regional"
  66240. },
  66241. ":regional_indicator_t:": {
  66242. "uc_base": "1f1f9",
  66243. "uc_output": "1f1f9",
  66244. "uc_match": "1f1f9",
  66245. "uc_greedy": "1f1f9",
  66246. "shortnames": [],
  66247. "category": "regional"
  66248. },
  66249. ":regional_indicator_u:": {
  66250. "uc_base": "1f1fa",
  66251. "uc_output": "1f1fa",
  66252. "uc_match": "1f1fa",
  66253. "uc_greedy": "1f1fa",
  66254. "shortnames": [],
  66255. "category": "regional"
  66256. },
  66257. ":regional_indicator_v:": {
  66258. "uc_base": "1f1fb",
  66259. "uc_output": "1f1fb",
  66260. "uc_match": "1f1fb",
  66261. "uc_greedy": "1f1fb",
  66262. "shortnames": [],
  66263. "category": "regional"
  66264. },
  66265. ":regional_indicator_w:": {
  66266. "uc_base": "1f1fc",
  66267. "uc_output": "1f1fc",
  66268. "uc_match": "1f1fc",
  66269. "uc_greedy": "1f1fc",
  66270. "shortnames": [],
  66271. "category": "regional"
  66272. },
  66273. ":regional_indicator_x:": {
  66274. "uc_base": "1f1fd",
  66275. "uc_output": "1f1fd",
  66276. "uc_match": "1f1fd",
  66277. "uc_greedy": "1f1fd",
  66278. "shortnames": [],
  66279. "category": "regional"
  66280. },
  66281. ":regional_indicator_y:": {
  66282. "uc_base": "1f1fe",
  66283. "uc_output": "1f1fe",
  66284. "uc_match": "1f1fe",
  66285. "uc_greedy": "1f1fe",
  66286. "shortnames": [],
  66287. "category": "regional"
  66288. },
  66289. ":regional_indicator_z:": {
  66290. "uc_base": "1f1ff",
  66291. "uc_output": "1f1ff",
  66292. "uc_match": "1f1ff",
  66293. "uc_greedy": "1f1ff",
  66294. "shortnames": [],
  66295. "category": "regional"
  66296. },
  66297. ":relieved:": {
  66298. "uc_base": "1f60c",
  66299. "uc_output": "1f60c",
  66300. "uc_match": "1f60c",
  66301. "uc_greedy": "1f60c",
  66302. "shortnames": [],
  66303. "category": "people"
  66304. },
  66305. ":reminder_ribbon:": {
  66306. "uc_base": "1f397",
  66307. "uc_output": "1f397",
  66308. "uc_match": "1f397-fe0f",
  66309. "uc_greedy": "1f397-fe0f",
  66310. "shortnames": [],
  66311. "category": "activity"
  66312. },
  66313. ":repeat:": {
  66314. "uc_base": "1f501",
  66315. "uc_output": "1f501",
  66316. "uc_match": "1f501",
  66317. "uc_greedy": "1f501",
  66318. "shortnames": [],
  66319. "category": "symbols"
  66320. },
  66321. ":repeat_one:": {
  66322. "uc_base": "1f502",
  66323. "uc_output": "1f502",
  66324. "uc_match": "1f502",
  66325. "uc_greedy": "1f502",
  66326. "shortnames": [],
  66327. "category": "symbols"
  66328. },
  66329. ":restroom:": {
  66330. "uc_base": "1f6bb",
  66331. "uc_output": "1f6bb",
  66332. "uc_match": "1f6bb",
  66333. "uc_greedy": "1f6bb",
  66334. "shortnames": [],
  66335. "category": "symbols"
  66336. },
  66337. ":revolving_hearts:": {
  66338. "uc_base": "1f49e",
  66339. "uc_output": "1f49e",
  66340. "uc_match": "1f49e",
  66341. "uc_greedy": "1f49e",
  66342. "shortnames": [],
  66343. "category": "symbols"
  66344. },
  66345. ":rhino:": {
  66346. "uc_base": "1f98f",
  66347. "uc_output": "1f98f",
  66348. "uc_match": "1f98f",
  66349. "uc_greedy": "1f98f",
  66350. "shortnames": [":rhinoceros:"],
  66351. "category": "nature"
  66352. },
  66353. ":ribbon:": {
  66354. "uc_base": "1f380",
  66355. "uc_output": "1f380",
  66356. "uc_match": "1f380",
  66357. "uc_greedy": "1f380",
  66358. "shortnames": [],
  66359. "category": "objects"
  66360. },
  66361. ":rice:": {
  66362. "uc_base": "1f35a",
  66363. "uc_output": "1f35a",
  66364. "uc_match": "1f35a",
  66365. "uc_greedy": "1f35a",
  66366. "shortnames": [],
  66367. "category": "food"
  66368. },
  66369. ":rice_ball:": {
  66370. "uc_base": "1f359",
  66371. "uc_output": "1f359",
  66372. "uc_match": "1f359",
  66373. "uc_greedy": "1f359",
  66374. "shortnames": [],
  66375. "category": "food"
  66376. },
  66377. ":rice_cracker:": {
  66378. "uc_base": "1f358",
  66379. "uc_output": "1f358",
  66380. "uc_match": "1f358",
  66381. "uc_greedy": "1f358",
  66382. "shortnames": [],
  66383. "category": "food"
  66384. },
  66385. ":rice_scene:": {
  66386. "uc_base": "1f391",
  66387. "uc_output": "1f391",
  66388. "uc_match": "1f391",
  66389. "uc_greedy": "1f391",
  66390. "shortnames": [],
  66391. "category": "travel"
  66392. },
  66393. ":right_facing_fist:": {
  66394. "uc_base": "1f91c",
  66395. "uc_output": "1f91c",
  66396. "uc_match": "1f91c",
  66397. "uc_greedy": "1f91c",
  66398. "shortnames": [":right_fist:"],
  66399. "category": "people"
  66400. },
  66401. ":ring:": {
  66402. "uc_base": "1f48d",
  66403. "uc_output": "1f48d",
  66404. "uc_match": "1f48d",
  66405. "uc_greedy": "1f48d",
  66406. "shortnames": [],
  66407. "category": "people"
  66408. },
  66409. ":robot:": {
  66410. "uc_base": "1f916",
  66411. "uc_output": "1f916",
  66412. "uc_match": "1f916",
  66413. "uc_greedy": "1f916",
  66414. "shortnames": [":robot_face:"],
  66415. "category": "people"
  66416. },
  66417. ":rocket:": {
  66418. "uc_base": "1f680",
  66419. "uc_output": "1f680",
  66420. "uc_match": "1f680",
  66421. "uc_greedy": "1f680",
  66422. "shortnames": [],
  66423. "category": "travel"
  66424. },
  66425. ":rofl:": {
  66426. "uc_base": "1f923",
  66427. "uc_output": "1f923",
  66428. "uc_match": "1f923",
  66429. "uc_greedy": "1f923",
  66430. "shortnames": [":rolling_on_the_floor_laughing:"],
  66431. "category": "people"
  66432. },
  66433. ":roller_coaster:": {
  66434. "uc_base": "1f3a2",
  66435. "uc_output": "1f3a2",
  66436. "uc_match": "1f3a2",
  66437. "uc_greedy": "1f3a2",
  66438. "shortnames": [],
  66439. "category": "travel"
  66440. },
  66441. ":rolling_eyes:": {
  66442. "uc_base": "1f644",
  66443. "uc_output": "1f644",
  66444. "uc_match": "1f644",
  66445. "uc_greedy": "1f644",
  66446. "shortnames": [":face_with_rolling_eyes:"],
  66447. "category": "people"
  66448. },
  66449. ":rooster:": {
  66450. "uc_base": "1f413",
  66451. "uc_output": "1f413",
  66452. "uc_match": "1f413",
  66453. "uc_greedy": "1f413",
  66454. "shortnames": [],
  66455. "category": "nature"
  66456. },
  66457. ":rose:": {
  66458. "uc_base": "1f339",
  66459. "uc_output": "1f339",
  66460. "uc_match": "1f339",
  66461. "uc_greedy": "1f339",
  66462. "shortnames": [],
  66463. "category": "nature"
  66464. },
  66465. ":rosette:": {
  66466. "uc_base": "1f3f5",
  66467. "uc_output": "1f3f5",
  66468. "uc_match": "1f3f5-fe0f",
  66469. "uc_greedy": "1f3f5-fe0f",
  66470. "shortnames": [],
  66471. "category": "activity"
  66472. },
  66473. ":rotating_light:": {
  66474. "uc_base": "1f6a8",
  66475. "uc_output": "1f6a8",
  66476. "uc_match": "1f6a8",
  66477. "uc_greedy": "1f6a8",
  66478. "shortnames": [],
  66479. "category": "travel"
  66480. },
  66481. ":round_pushpin:": {
  66482. "uc_base": "1f4cd",
  66483. "uc_output": "1f4cd",
  66484. "uc_match": "1f4cd",
  66485. "uc_greedy": "1f4cd",
  66486. "shortnames": [],
  66487. "category": "objects"
  66488. },
  66489. ":rugby_football:": {
  66490. "uc_base": "1f3c9",
  66491. "uc_output": "1f3c9",
  66492. "uc_match": "1f3c9",
  66493. "uc_greedy": "1f3c9",
  66494. "shortnames": [],
  66495. "category": "activity"
  66496. },
  66497. ":running_shirt_with_sash:": {
  66498. "uc_base": "1f3bd",
  66499. "uc_output": "1f3bd",
  66500. "uc_match": "1f3bd",
  66501. "uc_greedy": "1f3bd",
  66502. "shortnames": [],
  66503. "category": "activity"
  66504. },
  66505. ":sa:": {
  66506. "uc_base": "1f202",
  66507. "uc_output": "1f202",
  66508. "uc_match": "1f202-fe0f",
  66509. "uc_greedy": "1f202-fe0f",
  66510. "shortnames": [],
  66511. "category": "symbols"
  66512. },
  66513. ":sake:": {
  66514. "uc_base": "1f376",
  66515. "uc_output": "1f376",
  66516. "uc_match": "1f376",
  66517. "uc_greedy": "1f376",
  66518. "shortnames": [],
  66519. "category": "food"
  66520. },
  66521. ":salad:": {
  66522. "uc_base": "1f957",
  66523. "uc_output": "1f957",
  66524. "uc_match": "1f957",
  66525. "uc_greedy": "1f957",
  66526. "shortnames": [":green_salad:"],
  66527. "category": "food"
  66528. },
  66529. ":sandal:": {
  66530. "uc_base": "1f461",
  66531. "uc_output": "1f461",
  66532. "uc_match": "1f461",
  66533. "uc_greedy": "1f461",
  66534. "shortnames": [],
  66535. "category": "people"
  66536. },
  66537. ":sandwich:": {
  66538. "uc_base": "1f96a",
  66539. "uc_output": "1f96a",
  66540. "uc_match": "1f96a",
  66541. "uc_greedy": "1f96a",
  66542. "shortnames": [],
  66543. "category": "food"
  66544. },
  66545. ":santa:": {
  66546. "uc_base": "1f385",
  66547. "uc_output": "1f385",
  66548. "uc_match": "1f385",
  66549. "uc_greedy": "1f385",
  66550. "shortnames": [],
  66551. "category": "people"
  66552. },
  66553. ":satellite:": {
  66554. "uc_base": "1f4e1",
  66555. "uc_output": "1f4e1",
  66556. "uc_match": "1f4e1",
  66557. "uc_greedy": "1f4e1",
  66558. "shortnames": [],
  66559. "category": "objects"
  66560. },
  66561. ":satellite_orbital:": {
  66562. "uc_base": "1f6f0",
  66563. "uc_output": "1f6f0",
  66564. "uc_match": "1f6f0-fe0f",
  66565. "uc_greedy": "1f6f0-fe0f",
  66566. "shortnames": [],
  66567. "category": "travel"
  66568. },
  66569. ":sauropod:": {
  66570. "uc_base": "1f995",
  66571. "uc_output": "1f995",
  66572. "uc_match": "1f995",
  66573. "uc_greedy": "1f995",
  66574. "shortnames": [],
  66575. "category": "nature"
  66576. },
  66577. ":saxophone:": {
  66578. "uc_base": "1f3b7",
  66579. "uc_output": "1f3b7",
  66580. "uc_match": "1f3b7",
  66581. "uc_greedy": "1f3b7",
  66582. "shortnames": [],
  66583. "category": "activity"
  66584. },
  66585. ":scarf:": {
  66586. "uc_base": "1f9e3",
  66587. "uc_output": "1f9e3",
  66588. "uc_match": "1f9e3",
  66589. "uc_greedy": "1f9e3",
  66590. "shortnames": [],
  66591. "category": "people"
  66592. },
  66593. ":school:": {
  66594. "uc_base": "1f3eb",
  66595. "uc_output": "1f3eb",
  66596. "uc_match": "1f3eb",
  66597. "uc_greedy": "1f3eb",
  66598. "shortnames": [],
  66599. "category": "travel"
  66600. },
  66601. ":school_satchel:": {
  66602. "uc_base": "1f392",
  66603. "uc_output": "1f392",
  66604. "uc_match": "1f392",
  66605. "uc_greedy": "1f392",
  66606. "shortnames": [],
  66607. "category": "people"
  66608. },
  66609. ":scooter:": {
  66610. "uc_base": "1f6f4",
  66611. "uc_output": "1f6f4",
  66612. "uc_match": "1f6f4",
  66613. "uc_greedy": "1f6f4",
  66614. "shortnames": [],
  66615. "category": "travel"
  66616. },
  66617. ":scorpion:": {
  66618. "uc_base": "1f982",
  66619. "uc_output": "1f982",
  66620. "uc_match": "1f982",
  66621. "uc_greedy": "1f982",
  66622. "shortnames": [],
  66623. "category": "nature"
  66624. },
  66625. ":scream:": {
  66626. "uc_base": "1f631",
  66627. "uc_output": "1f631",
  66628. "uc_match": "1f631",
  66629. "uc_greedy": "1f631",
  66630. "shortnames": [],
  66631. "category": "people"
  66632. },
  66633. ":scream_cat:": {
  66634. "uc_base": "1f640",
  66635. "uc_output": "1f640",
  66636. "uc_match": "1f640",
  66637. "uc_greedy": "1f640",
  66638. "shortnames": [],
  66639. "category": "people"
  66640. },
  66641. ":scroll:": {
  66642. "uc_base": "1f4dc",
  66643. "uc_output": "1f4dc",
  66644. "uc_match": "1f4dc",
  66645. "uc_greedy": "1f4dc",
  66646. "shortnames": [],
  66647. "category": "objects"
  66648. },
  66649. ":seat:": {
  66650. "uc_base": "1f4ba",
  66651. "uc_output": "1f4ba",
  66652. "uc_match": "1f4ba",
  66653. "uc_greedy": "1f4ba",
  66654. "shortnames": [],
  66655. "category": "travel"
  66656. },
  66657. ":second_place:": {
  66658. "uc_base": "1f948",
  66659. "uc_output": "1f948",
  66660. "uc_match": "1f948",
  66661. "uc_greedy": "1f948",
  66662. "shortnames": [":second_place_medal:"],
  66663. "category": "activity"
  66664. },
  66665. ":see_no_evil:": {
  66666. "uc_base": "1f648",
  66667. "uc_output": "1f648",
  66668. "uc_match": "1f648",
  66669. "uc_greedy": "1f648",
  66670. "shortnames": [],
  66671. "category": "nature"
  66672. },
  66673. ":seedling:": {
  66674. "uc_base": "1f331",
  66675. "uc_output": "1f331",
  66676. "uc_match": "1f331",
  66677. "uc_greedy": "1f331",
  66678. "shortnames": [],
  66679. "category": "nature"
  66680. },
  66681. ":selfie:": {
  66682. "uc_base": "1f933",
  66683. "uc_output": "1f933",
  66684. "uc_match": "1f933",
  66685. "uc_greedy": "1f933",
  66686. "shortnames": [],
  66687. "category": "people"
  66688. },
  66689. ":shallow_pan_of_food:": {
  66690. "uc_base": "1f958",
  66691. "uc_output": "1f958",
  66692. "uc_match": "1f958",
  66693. "uc_greedy": "1f958",
  66694. "shortnames": [":paella:"],
  66695. "category": "food"
  66696. },
  66697. ":shark:": {
  66698. "uc_base": "1f988",
  66699. "uc_output": "1f988",
  66700. "uc_match": "1f988",
  66701. "uc_greedy": "1f988",
  66702. "shortnames": [],
  66703. "category": "nature"
  66704. },
  66705. ":shaved_ice:": {
  66706. "uc_base": "1f367",
  66707. "uc_output": "1f367",
  66708. "uc_match": "1f367",
  66709. "uc_greedy": "1f367",
  66710. "shortnames": [],
  66711. "category": "food"
  66712. },
  66713. ":sheep:": {
  66714. "uc_base": "1f411",
  66715. "uc_output": "1f411",
  66716. "uc_match": "1f411",
  66717. "uc_greedy": "1f411",
  66718. "shortnames": [],
  66719. "category": "nature"
  66720. },
  66721. ":shell:": {
  66722. "uc_base": "1f41a",
  66723. "uc_output": "1f41a",
  66724. "uc_match": "1f41a",
  66725. "uc_greedy": "1f41a",
  66726. "shortnames": [],
  66727. "category": "nature"
  66728. },
  66729. ":shield:": {
  66730. "uc_base": "1f6e1",
  66731. "uc_output": "1f6e1",
  66732. "uc_match": "1f6e1-fe0f",
  66733. "uc_greedy": "1f6e1-fe0f",
  66734. "shortnames": [],
  66735. "category": "objects"
  66736. },
  66737. ":ship:": {
  66738. "uc_base": "1f6a2",
  66739. "uc_output": "1f6a2",
  66740. "uc_match": "1f6a2",
  66741. "uc_greedy": "1f6a2",
  66742. "shortnames": [],
  66743. "category": "travel"
  66744. },
  66745. ":shirt:": {
  66746. "uc_base": "1f455",
  66747. "uc_output": "1f455",
  66748. "uc_match": "1f455",
  66749. "uc_greedy": "1f455",
  66750. "shortnames": [],
  66751. "category": "people"
  66752. },
  66753. ":shopping_bags:": {
  66754. "uc_base": "1f6cd",
  66755. "uc_output": "1f6cd",
  66756. "uc_match": "1f6cd-fe0f",
  66757. "uc_greedy": "1f6cd-fe0f",
  66758. "shortnames": [],
  66759. "category": "objects"
  66760. },
  66761. ":shopping_cart:": {
  66762. "uc_base": "1f6d2",
  66763. "uc_output": "1f6d2",
  66764. "uc_match": "1f6d2",
  66765. "uc_greedy": "1f6d2",
  66766. "shortnames": [":shopping_trolley:"],
  66767. "category": "objects"
  66768. },
  66769. ":shower:": {
  66770. "uc_base": "1f6bf",
  66771. "uc_output": "1f6bf",
  66772. "uc_match": "1f6bf",
  66773. "uc_greedy": "1f6bf",
  66774. "shortnames": [],
  66775. "category": "objects"
  66776. },
  66777. ":shrimp:": {
  66778. "uc_base": "1f990",
  66779. "uc_output": "1f990",
  66780. "uc_match": "1f990",
  66781. "uc_greedy": "1f990",
  66782. "shortnames": [],
  66783. "category": "nature"
  66784. },
  66785. ":shushing_face:": {
  66786. "uc_base": "1f92b",
  66787. "uc_output": "1f92b",
  66788. "uc_match": "1f92b",
  66789. "uc_greedy": "1f92b",
  66790. "shortnames": [],
  66791. "category": "people"
  66792. },
  66793. ":signal_strength:": {
  66794. "uc_base": "1f4f6",
  66795. "uc_output": "1f4f6",
  66796. "uc_match": "1f4f6",
  66797. "uc_greedy": "1f4f6",
  66798. "shortnames": [],
  66799. "category": "symbols"
  66800. },
  66801. ":six_pointed_star:": {
  66802. "uc_base": "1f52f",
  66803. "uc_output": "1f52f",
  66804. "uc_match": "1f52f",
  66805. "uc_greedy": "1f52f",
  66806. "shortnames": [],
  66807. "category": "symbols"
  66808. },
  66809. ":ski:": {
  66810. "uc_base": "1f3bf",
  66811. "uc_output": "1f3bf",
  66812. "uc_match": "1f3bf",
  66813. "uc_greedy": "1f3bf",
  66814. "shortnames": [],
  66815. "category": "activity"
  66816. },
  66817. ":skull:": {
  66818. "uc_base": "1f480",
  66819. "uc_output": "1f480",
  66820. "uc_match": "1f480",
  66821. "uc_greedy": "1f480",
  66822. "shortnames": [":skeleton:"],
  66823. "category": "people"
  66824. },
  66825. ":sled:": {
  66826. "uc_base": "1f6f7",
  66827. "uc_output": "1f6f7",
  66828. "uc_match": "1f6f7",
  66829. "uc_greedy": "1f6f7",
  66830. "shortnames": [],
  66831. "category": "activity"
  66832. },
  66833. ":sleeping:": {
  66834. "uc_base": "1f634",
  66835. "uc_output": "1f634",
  66836. "uc_match": "1f634",
  66837. "uc_greedy": "1f634",
  66838. "shortnames": [],
  66839. "category": "people"
  66840. },
  66841. ":sleeping_accommodation:": {
  66842. "uc_base": "1f6cc",
  66843. "uc_output": "1f6cc",
  66844. "uc_match": "1f6cc",
  66845. "uc_greedy": "1f6cc",
  66846. "shortnames": [],
  66847. "category": "objects"
  66848. },
  66849. ":sleepy:": {
  66850. "uc_base": "1f62a",
  66851. "uc_output": "1f62a",
  66852. "uc_match": "1f62a",
  66853. "uc_greedy": "1f62a",
  66854. "shortnames": [],
  66855. "category": "people"
  66856. },
  66857. ":slight_frown:": {
  66858. "uc_base": "1f641",
  66859. "uc_output": "1f641",
  66860. "uc_match": "1f641",
  66861. "uc_greedy": "1f641",
  66862. "shortnames": [":slightly_frowning_face:"],
  66863. "category": "people"
  66864. },
  66865. ":slight_smile:": {
  66866. "uc_base": "1f642",
  66867. "uc_output": "1f642",
  66868. "uc_match": "1f642",
  66869. "uc_greedy": "1f642",
  66870. "shortnames": [":slightly_smiling_face:"],
  66871. "category": "people"
  66872. },
  66873. ":slot_machine:": {
  66874. "uc_base": "1f3b0",
  66875. "uc_output": "1f3b0",
  66876. "uc_match": "1f3b0",
  66877. "uc_greedy": "1f3b0",
  66878. "shortnames": [],
  66879. "category": "activity"
  66880. },
  66881. ":small_blue_diamond:": {
  66882. "uc_base": "1f539",
  66883. "uc_output": "1f539",
  66884. "uc_match": "1f539",
  66885. "uc_greedy": "1f539",
  66886. "shortnames": [],
  66887. "category": "symbols"
  66888. },
  66889. ":small_orange_diamond:": {
  66890. "uc_base": "1f538",
  66891. "uc_output": "1f538",
  66892. "uc_match": "1f538",
  66893. "uc_greedy": "1f538",
  66894. "shortnames": [],
  66895. "category": "symbols"
  66896. },
  66897. ":small_red_triangle:": {
  66898. "uc_base": "1f53a",
  66899. "uc_output": "1f53a",
  66900. "uc_match": "1f53a",
  66901. "uc_greedy": "1f53a",
  66902. "shortnames": [],
  66903. "category": "symbols"
  66904. },
  66905. ":small_red_triangle_down:": {
  66906. "uc_base": "1f53b",
  66907. "uc_output": "1f53b",
  66908. "uc_match": "1f53b",
  66909. "uc_greedy": "1f53b",
  66910. "shortnames": [],
  66911. "category": "symbols"
  66912. },
  66913. ":smile:": {
  66914. "uc_base": "1f604",
  66915. "uc_output": "1f604",
  66916. "uc_match": "1f604",
  66917. "uc_greedy": "1f604",
  66918. "shortnames": [],
  66919. "category": "people"
  66920. },
  66921. ":smile_cat:": {
  66922. "uc_base": "1f638",
  66923. "uc_output": "1f638",
  66924. "uc_match": "1f638",
  66925. "uc_greedy": "1f638",
  66926. "shortnames": [],
  66927. "category": "people"
  66928. },
  66929. ":smiley:": {
  66930. "uc_base": "1f603",
  66931. "uc_output": "1f603",
  66932. "uc_match": "1f603",
  66933. "uc_greedy": "1f603",
  66934. "shortnames": [],
  66935. "category": "people"
  66936. },
  66937. ":smiley_cat:": {
  66938. "uc_base": "1f63a",
  66939. "uc_output": "1f63a",
  66940. "uc_match": "1f63a",
  66941. "uc_greedy": "1f63a",
  66942. "shortnames": [],
  66943. "category": "people"
  66944. },
  66945. ":smiling_imp:": {
  66946. "uc_base": "1f608",
  66947. "uc_output": "1f608",
  66948. "uc_match": "1f608",
  66949. "uc_greedy": "1f608",
  66950. "shortnames": [],
  66951. "category": "people"
  66952. },
  66953. ":smirk:": {
  66954. "uc_base": "1f60f",
  66955. "uc_output": "1f60f",
  66956. "uc_match": "1f60f",
  66957. "uc_greedy": "1f60f",
  66958. "shortnames": [],
  66959. "category": "people"
  66960. },
  66961. ":smirk_cat:": {
  66962. "uc_base": "1f63c",
  66963. "uc_output": "1f63c",
  66964. "uc_match": "1f63c",
  66965. "uc_greedy": "1f63c",
  66966. "shortnames": [],
  66967. "category": "people"
  66968. },
  66969. ":smoking:": {
  66970. "uc_base": "1f6ac",
  66971. "uc_output": "1f6ac",
  66972. "uc_match": "1f6ac",
  66973. "uc_greedy": "1f6ac",
  66974. "shortnames": [],
  66975. "category": "objects"
  66976. },
  66977. ":snail:": {
  66978. "uc_base": "1f40c",
  66979. "uc_output": "1f40c",
  66980. "uc_match": "1f40c",
  66981. "uc_greedy": "1f40c",
  66982. "shortnames": [],
  66983. "category": "nature"
  66984. },
  66985. ":snake:": {
  66986. "uc_base": "1f40d",
  66987. "uc_output": "1f40d",
  66988. "uc_match": "1f40d",
  66989. "uc_greedy": "1f40d",
  66990. "shortnames": [],
  66991. "category": "nature"
  66992. },
  66993. ":sneezing_face:": {
  66994. "uc_base": "1f927",
  66995. "uc_output": "1f927",
  66996. "uc_match": "1f927",
  66997. "uc_greedy": "1f927",
  66998. "shortnames": [":sneeze:"],
  66999. "category": "people"
  67000. },
  67001. ":snowboarder:": {
  67002. "uc_base": "1f3c2",
  67003. "uc_output": "1f3c2",
  67004. "uc_match": "1f3c2-fe0f",
  67005. "uc_greedy": "1f3c2-fe0f",
  67006. "shortnames": [],
  67007. "category": "activity"
  67008. },
  67009. ":sob:": {
  67010. "uc_base": "1f62d",
  67011. "uc_output": "1f62d",
  67012. "uc_match": "1f62d",
  67013. "uc_greedy": "1f62d",
  67014. "shortnames": [],
  67015. "category": "people"
  67016. },
  67017. ":socks:": {
  67018. "uc_base": "1f9e6",
  67019. "uc_output": "1f9e6",
  67020. "uc_match": "1f9e6",
  67021. "uc_greedy": "1f9e6",
  67022. "shortnames": [],
  67023. "category": "people"
  67024. },
  67025. ":soon:": {
  67026. "uc_base": "1f51c",
  67027. "uc_output": "1f51c",
  67028. "uc_match": "1f51c",
  67029. "uc_greedy": "1f51c",
  67030. "shortnames": [],
  67031. "category": "symbols"
  67032. },
  67033. ":sos:": {
  67034. "uc_base": "1f198",
  67035. "uc_output": "1f198",
  67036. "uc_match": "1f198",
  67037. "uc_greedy": "1f198",
  67038. "shortnames": [],
  67039. "category": "symbols"
  67040. },
  67041. ":sound:": {
  67042. "uc_base": "1f509",
  67043. "uc_output": "1f509",
  67044. "uc_match": "1f509",
  67045. "uc_greedy": "1f509",
  67046. "shortnames": [],
  67047. "category": "symbols"
  67048. },
  67049. ":space_invader:": {
  67050. "uc_base": "1f47e",
  67051. "uc_output": "1f47e",
  67052. "uc_match": "1f47e",
  67053. "uc_greedy": "1f47e",
  67054. "shortnames": [],
  67055. "category": "people"
  67056. },
  67057. ":spaghetti:": {
  67058. "uc_base": "1f35d",
  67059. "uc_output": "1f35d",
  67060. "uc_match": "1f35d",
  67061. "uc_greedy": "1f35d",
  67062. "shortnames": [],
  67063. "category": "food"
  67064. },
  67065. ":sparkler:": {
  67066. "uc_base": "1f387",
  67067. "uc_output": "1f387",
  67068. "uc_match": "1f387",
  67069. "uc_greedy": "1f387",
  67070. "shortnames": [],
  67071. "category": "travel"
  67072. },
  67073. ":sparkling_heart:": {
  67074. "uc_base": "1f496",
  67075. "uc_output": "1f496",
  67076. "uc_match": "1f496",
  67077. "uc_greedy": "1f496",
  67078. "shortnames": [],
  67079. "category": "symbols"
  67080. },
  67081. ":speak_no_evil:": {
  67082. "uc_base": "1f64a",
  67083. "uc_output": "1f64a",
  67084. "uc_match": "1f64a",
  67085. "uc_greedy": "1f64a",
  67086. "shortnames": [],
  67087. "category": "nature"
  67088. },
  67089. ":speaker:": {
  67090. "uc_base": "1f508",
  67091. "uc_output": "1f508",
  67092. "uc_match": "1f508-fe0f",
  67093. "uc_greedy": "1f508-fe0f",
  67094. "shortnames": [],
  67095. "category": "symbols"
  67096. },
  67097. ":speaking_head:": {
  67098. "uc_base": "1f5e3",
  67099. "uc_output": "1f5e3",
  67100. "uc_match": "1f5e3-fe0f",
  67101. "uc_greedy": "1f5e3-fe0f",
  67102. "shortnames": [":speaking_head_in_silhouette:"],
  67103. "category": "people"
  67104. },
  67105. ":speech_balloon:": {
  67106. "uc_base": "1f4ac",
  67107. "uc_output": "1f4ac",
  67108. "uc_match": "1f4ac",
  67109. "uc_greedy": "1f4ac",
  67110. "shortnames": [],
  67111. "category": "symbols"
  67112. },
  67113. ":speech_left:": {
  67114. "uc_base": "1f5e8",
  67115. "uc_output": "1f5e8",
  67116. "uc_match": "1f5e8-fe0f",
  67117. "uc_greedy": "1f5e8-fe0f",
  67118. "shortnames": [":left_speech_bubble:"],
  67119. "category": "symbols"
  67120. },
  67121. ":speedboat:": {
  67122. "uc_base": "1f6a4",
  67123. "uc_output": "1f6a4",
  67124. "uc_match": "1f6a4",
  67125. "uc_greedy": "1f6a4",
  67126. "shortnames": [],
  67127. "category": "travel"
  67128. },
  67129. ":spider:": {
  67130. "uc_base": "1f577",
  67131. "uc_output": "1f577",
  67132. "uc_match": "1f577-fe0f",
  67133. "uc_greedy": "1f577-fe0f",
  67134. "shortnames": [],
  67135. "category": "nature"
  67136. },
  67137. ":spider_web:": {
  67138. "uc_base": "1f578",
  67139. "uc_output": "1f578",
  67140. "uc_match": "1f578-fe0f",
  67141. "uc_greedy": "1f578-fe0f",
  67142. "shortnames": [],
  67143. "category": "nature"
  67144. },
  67145. ":spoon:": {
  67146. "uc_base": "1f944",
  67147. "uc_output": "1f944",
  67148. "uc_match": "1f944",
  67149. "uc_greedy": "1f944",
  67150. "shortnames": [],
  67151. "category": "food"
  67152. },
  67153. ":squid:": {
  67154. "uc_base": "1f991",
  67155. "uc_output": "1f991",
  67156. "uc_match": "1f991",
  67157. "uc_greedy": "1f991",
  67158. "shortnames": [],
  67159. "category": "nature"
  67160. },
  67161. ":stadium:": {
  67162. "uc_base": "1f3df",
  67163. "uc_output": "1f3df",
  67164. "uc_match": "1f3df-fe0f",
  67165. "uc_greedy": "1f3df-fe0f",
  67166. "shortnames": [],
  67167. "category": "travel"
  67168. },
  67169. ":star2:": {
  67170. "uc_base": "1f31f",
  67171. "uc_output": "1f31f",
  67172. "uc_match": "1f31f",
  67173. "uc_greedy": "1f31f",
  67174. "shortnames": [],
  67175. "category": "nature"
  67176. },
  67177. ":star_struck:": {
  67178. "uc_base": "1f929",
  67179. "uc_output": "1f929",
  67180. "uc_match": "1f929",
  67181. "uc_greedy": "1f929",
  67182. "shortnames": [],
  67183. "category": "people"
  67184. },
  67185. ":stars:": {
  67186. "uc_base": "1f320",
  67187. "uc_output": "1f320",
  67188. "uc_match": "1f320",
  67189. "uc_greedy": "1f320",
  67190. "shortnames": [],
  67191. "category": "travel"
  67192. },
  67193. ":station:": {
  67194. "uc_base": "1f689",
  67195. "uc_output": "1f689",
  67196. "uc_match": "1f689",
  67197. "uc_greedy": "1f689",
  67198. "shortnames": [],
  67199. "category": "travel"
  67200. },
  67201. ":statue_of_liberty:": {
  67202. "uc_base": "1f5fd",
  67203. "uc_output": "1f5fd",
  67204. "uc_match": "1f5fd",
  67205. "uc_greedy": "1f5fd",
  67206. "shortnames": [],
  67207. "category": "travel"
  67208. },
  67209. ":steam_locomotive:": {
  67210. "uc_base": "1f682",
  67211. "uc_output": "1f682",
  67212. "uc_match": "1f682",
  67213. "uc_greedy": "1f682",
  67214. "shortnames": [],
  67215. "category": "travel"
  67216. },
  67217. ":stew:": {
  67218. "uc_base": "1f372",
  67219. "uc_output": "1f372",
  67220. "uc_match": "1f372",
  67221. "uc_greedy": "1f372",
  67222. "shortnames": [],
  67223. "category": "food"
  67224. },
  67225. ":straight_ruler:": {
  67226. "uc_base": "1f4cf",
  67227. "uc_output": "1f4cf",
  67228. "uc_match": "1f4cf",
  67229. "uc_greedy": "1f4cf",
  67230. "shortnames": [],
  67231. "category": "objects"
  67232. },
  67233. ":strawberry:": {
  67234. "uc_base": "1f353",
  67235. "uc_output": "1f353",
  67236. "uc_match": "1f353",
  67237. "uc_greedy": "1f353",
  67238. "shortnames": [],
  67239. "category": "food"
  67240. },
  67241. ":stuck_out_tongue:": {
  67242. "uc_base": "1f61b",
  67243. "uc_output": "1f61b",
  67244. "uc_match": "1f61b",
  67245. "uc_greedy": "1f61b",
  67246. "shortnames": [],
  67247. "category": "people"
  67248. },
  67249. ":stuck_out_tongue_closed_eyes:": {
  67250. "uc_base": "1f61d",
  67251. "uc_output": "1f61d",
  67252. "uc_match": "1f61d",
  67253. "uc_greedy": "1f61d",
  67254. "shortnames": [],
  67255. "category": "people"
  67256. },
  67257. ":stuck_out_tongue_winking_eye:": {
  67258. "uc_base": "1f61c",
  67259. "uc_output": "1f61c",
  67260. "uc_match": "1f61c",
  67261. "uc_greedy": "1f61c",
  67262. "shortnames": [],
  67263. "category": "people"
  67264. },
  67265. ":stuffed_flatbread:": {
  67266. "uc_base": "1f959",
  67267. "uc_output": "1f959",
  67268. "uc_match": "1f959",
  67269. "uc_greedy": "1f959",
  67270. "shortnames": [":stuffed_pita:"],
  67271. "category": "food"
  67272. },
  67273. ":sun_with_face:": {
  67274. "uc_base": "1f31e",
  67275. "uc_output": "1f31e",
  67276. "uc_match": "1f31e",
  67277. "uc_greedy": "1f31e",
  67278. "shortnames": [],
  67279. "category": "nature"
  67280. },
  67281. ":sunflower:": {
  67282. "uc_base": "1f33b",
  67283. "uc_output": "1f33b",
  67284. "uc_match": "1f33b",
  67285. "uc_greedy": "1f33b",
  67286. "shortnames": [],
  67287. "category": "nature"
  67288. },
  67289. ":sunglasses:": {
  67290. "uc_base": "1f60e",
  67291. "uc_output": "1f60e",
  67292. "uc_match": "1f60e",
  67293. "uc_greedy": "1f60e",
  67294. "shortnames": [],
  67295. "category": "people"
  67296. },
  67297. ":sunrise:": {
  67298. "uc_base": "1f305",
  67299. "uc_output": "1f305",
  67300. "uc_match": "1f305",
  67301. "uc_greedy": "1f305",
  67302. "shortnames": [],
  67303. "category": "travel"
  67304. },
  67305. ":sunrise_over_mountains:": {
  67306. "uc_base": "1f304",
  67307. "uc_output": "1f304",
  67308. "uc_match": "1f304",
  67309. "uc_greedy": "1f304",
  67310. "shortnames": [],
  67311. "category": "travel"
  67312. },
  67313. ":sushi:": {
  67314. "uc_base": "1f363",
  67315. "uc_output": "1f363",
  67316. "uc_match": "1f363",
  67317. "uc_greedy": "1f363",
  67318. "shortnames": [],
  67319. "category": "food"
  67320. },
  67321. ":suspension_railway:": {
  67322. "uc_base": "1f69f",
  67323. "uc_output": "1f69f",
  67324. "uc_match": "1f69f",
  67325. "uc_greedy": "1f69f",
  67326. "shortnames": [],
  67327. "category": "travel"
  67328. },
  67329. ":sweat:": {
  67330. "uc_base": "1f613",
  67331. "uc_output": "1f613",
  67332. "uc_match": "1f613",
  67333. "uc_greedy": "1f613",
  67334. "shortnames": [],
  67335. "category": "people"
  67336. },
  67337. ":sweat_drops:": {
  67338. "uc_base": "1f4a6",
  67339. "uc_output": "1f4a6",
  67340. "uc_match": "1f4a6",
  67341. "uc_greedy": "1f4a6",
  67342. "shortnames": [],
  67343. "category": "nature"
  67344. },
  67345. ":sweat_smile:": {
  67346. "uc_base": "1f605",
  67347. "uc_output": "1f605",
  67348. "uc_match": "1f605",
  67349. "uc_greedy": "1f605",
  67350. "shortnames": [],
  67351. "category": "people"
  67352. },
  67353. ":sweet_potato:": {
  67354. "uc_base": "1f360",
  67355. "uc_output": "1f360",
  67356. "uc_match": "1f360",
  67357. "uc_greedy": "1f360",
  67358. "shortnames": [],
  67359. "category": "food"
  67360. },
  67361. ":symbols:": {
  67362. "uc_base": "1f523",
  67363. "uc_output": "1f523",
  67364. "uc_match": "1f523",
  67365. "uc_greedy": "1f523",
  67366. "shortnames": [],
  67367. "category": "symbols"
  67368. },
  67369. ":synagogue:": {
  67370. "uc_base": "1f54d",
  67371. "uc_output": "1f54d",
  67372. "uc_match": "1f54d",
  67373. "uc_greedy": "1f54d",
  67374. "shortnames": [],
  67375. "category": "travel"
  67376. },
  67377. ":syringe:": {
  67378. "uc_base": "1f489",
  67379. "uc_output": "1f489",
  67380. "uc_match": "1f489",
  67381. "uc_greedy": "1f489",
  67382. "shortnames": [],
  67383. "category": "objects"
  67384. },
  67385. ":t_rex:": {
  67386. "uc_base": "1f996",
  67387. "uc_output": "1f996",
  67388. "uc_match": "1f996",
  67389. "uc_greedy": "1f996",
  67390. "shortnames": [],
  67391. "category": "nature"
  67392. },
  67393. ":taco:": {
  67394. "uc_base": "1f32e",
  67395. "uc_output": "1f32e",
  67396. "uc_match": "1f32e",
  67397. "uc_greedy": "1f32e",
  67398. "shortnames": [],
  67399. "category": "food"
  67400. },
  67401. ":tada:": {
  67402. "uc_base": "1f389",
  67403. "uc_output": "1f389",
  67404. "uc_match": "1f389",
  67405. "uc_greedy": "1f389",
  67406. "shortnames": [],
  67407. "category": "objects"
  67408. },
  67409. ":takeout_box:": {
  67410. "uc_base": "1f961",
  67411. "uc_output": "1f961",
  67412. "uc_match": "1f961",
  67413. "uc_greedy": "1f961",
  67414. "shortnames": [],
  67415. "category": "food"
  67416. },
  67417. ":tanabata_tree:": {
  67418. "uc_base": "1f38b",
  67419. "uc_output": "1f38b",
  67420. "uc_match": "1f38b",
  67421. "uc_greedy": "1f38b",
  67422. "shortnames": [],
  67423. "category": "nature"
  67424. },
  67425. ":tangerine:": {
  67426. "uc_base": "1f34a",
  67427. "uc_output": "1f34a",
  67428. "uc_match": "1f34a",
  67429. "uc_greedy": "1f34a",
  67430. "shortnames": [],
  67431. "category": "food"
  67432. },
  67433. ":taxi:": {
  67434. "uc_base": "1f695",
  67435. "uc_output": "1f695",
  67436. "uc_match": "1f695",
  67437. "uc_greedy": "1f695",
  67438. "shortnames": [],
  67439. "category": "travel"
  67440. },
  67441. ":tea:": {
  67442. "uc_base": "1f375",
  67443. "uc_output": "1f375",
  67444. "uc_match": "1f375",
  67445. "uc_greedy": "1f375",
  67446. "shortnames": [],
  67447. "category": "food"
  67448. },
  67449. ":telephone_receiver:": {
  67450. "uc_base": "1f4de",
  67451. "uc_output": "1f4de",
  67452. "uc_match": "1f4de",
  67453. "uc_greedy": "1f4de",
  67454. "shortnames": [],
  67455. "category": "objects"
  67456. },
  67457. ":telescope:": {
  67458. "uc_base": "1f52d",
  67459. "uc_output": "1f52d",
  67460. "uc_match": "1f52d",
  67461. "uc_greedy": "1f52d",
  67462. "shortnames": [],
  67463. "category": "objects"
  67464. },
  67465. ":tennis:": {
  67466. "uc_base": "1f3be",
  67467. "uc_output": "1f3be",
  67468. "uc_match": "1f3be",
  67469. "uc_greedy": "1f3be",
  67470. "shortnames": [],
  67471. "category": "activity"
  67472. },
  67473. ":thermometer:": {
  67474. "uc_base": "1f321",
  67475. "uc_output": "1f321",
  67476. "uc_match": "1f321-fe0f",
  67477. "uc_greedy": "1f321-fe0f",
  67478. "shortnames": [],
  67479. "category": "objects"
  67480. },
  67481. ":thermometer_face:": {
  67482. "uc_base": "1f912",
  67483. "uc_output": "1f912",
  67484. "uc_match": "1f912",
  67485. "uc_greedy": "1f912",
  67486. "shortnames": [":face_with_thermometer:"],
  67487. "category": "people"
  67488. },
  67489. ":thinking:": {
  67490. "uc_base": "1f914",
  67491. "uc_output": "1f914",
  67492. "uc_match": "1f914",
  67493. "uc_greedy": "1f914",
  67494. "shortnames": [":thinking_face:"],
  67495. "category": "people"
  67496. },
  67497. ":third_place:": {
  67498. "uc_base": "1f949",
  67499. "uc_output": "1f949",
  67500. "uc_match": "1f949",
  67501. "uc_greedy": "1f949",
  67502. "shortnames": [":third_place_medal:"],
  67503. "category": "activity"
  67504. },
  67505. ":thought_balloon:": {
  67506. "uc_base": "1f4ad",
  67507. "uc_output": "1f4ad",
  67508. "uc_match": "1f4ad",
  67509. "uc_greedy": "1f4ad",
  67510. "shortnames": [],
  67511. "category": "symbols"
  67512. },
  67513. ":thumbsdown:": {
  67514. "uc_base": "1f44e",
  67515. "uc_output": "1f44e",
  67516. "uc_match": "1f44e-fe0f",
  67517. "uc_greedy": "1f44e-fe0f",
  67518. "shortnames": [":-1:", ":thumbdown:"],
  67519. "category": "people"
  67520. },
  67521. ":thumbsup:": {
  67522. "uc_base": "1f44d",
  67523. "uc_output": "1f44d",
  67524. "uc_match": "1f44d-fe0f",
  67525. "uc_greedy": "1f44d-fe0f",
  67526. "shortnames": [":+1:", ":thumbup:"],
  67527. "category": "people"
  67528. },
  67529. ":ticket:": {
  67530. "uc_base": "1f3ab",
  67531. "uc_output": "1f3ab",
  67532. "uc_match": "1f3ab",
  67533. "uc_greedy": "1f3ab",
  67534. "shortnames": [],
  67535. "category": "activity"
  67536. },
  67537. ":tickets:": {
  67538. "uc_base": "1f39f",
  67539. "uc_output": "1f39f",
  67540. "uc_match": "1f39f-fe0f",
  67541. "uc_greedy": "1f39f-fe0f",
  67542. "shortnames": [":admission_tickets:"],
  67543. "category": "activity"
  67544. },
  67545. ":tiger2:": {
  67546. "uc_base": "1f405",
  67547. "uc_output": "1f405",
  67548. "uc_match": "1f405",
  67549. "uc_greedy": "1f405",
  67550. "shortnames": [],
  67551. "category": "nature"
  67552. },
  67553. ":tiger:": {
  67554. "uc_base": "1f42f",
  67555. "uc_output": "1f42f",
  67556. "uc_match": "1f42f",
  67557. "uc_greedy": "1f42f",
  67558. "shortnames": [],
  67559. "category": "nature"
  67560. },
  67561. ":tired_face:": {
  67562. "uc_base": "1f62b",
  67563. "uc_output": "1f62b",
  67564. "uc_match": "1f62b",
  67565. "uc_greedy": "1f62b",
  67566. "shortnames": [],
  67567. "category": "people"
  67568. },
  67569. ":toilet:": {
  67570. "uc_base": "1f6bd",
  67571. "uc_output": "1f6bd",
  67572. "uc_match": "1f6bd",
  67573. "uc_greedy": "1f6bd",
  67574. "shortnames": [],
  67575. "category": "objects"
  67576. },
  67577. ":tokyo_tower:": {
  67578. "uc_base": "1f5fc",
  67579. "uc_output": "1f5fc",
  67580. "uc_match": "1f5fc",
  67581. "uc_greedy": "1f5fc",
  67582. "shortnames": [],
  67583. "category": "travel"
  67584. },
  67585. ":tomato:": {
  67586. "uc_base": "1f345",
  67587. "uc_output": "1f345",
  67588. "uc_match": "1f345",
  67589. "uc_greedy": "1f345",
  67590. "shortnames": [],
  67591. "category": "food"
  67592. },
  67593. ":tone1:": {
  67594. "uc_base": "1f3fb",
  67595. "uc_output": "1f3fb",
  67596. "uc_match": "1f3fb",
  67597. "uc_greedy": "1f3fb",
  67598. "shortnames": [],
  67599. "category": "modifier"
  67600. },
  67601. ":tone2:": {
  67602. "uc_base": "1f3fc",
  67603. "uc_output": "1f3fc",
  67604. "uc_match": "1f3fc",
  67605. "uc_greedy": "1f3fc",
  67606. "shortnames": [],
  67607. "category": "modifier"
  67608. },
  67609. ":tone3:": {
  67610. "uc_base": "1f3fd",
  67611. "uc_output": "1f3fd",
  67612. "uc_match": "1f3fd",
  67613. "uc_greedy": "1f3fd",
  67614. "shortnames": [],
  67615. "category": "modifier"
  67616. },
  67617. ":tone4:": {
  67618. "uc_base": "1f3fe",
  67619. "uc_output": "1f3fe",
  67620. "uc_match": "1f3fe",
  67621. "uc_greedy": "1f3fe",
  67622. "shortnames": [],
  67623. "category": "modifier"
  67624. },
  67625. ":tone5:": {
  67626. "uc_base": "1f3ff",
  67627. "uc_output": "1f3ff",
  67628. "uc_match": "1f3ff",
  67629. "uc_greedy": "1f3ff",
  67630. "shortnames": [],
  67631. "category": "modifier"
  67632. },
  67633. ":tongue:": {
  67634. "uc_base": "1f445",
  67635. "uc_output": "1f445",
  67636. "uc_match": "1f445",
  67637. "uc_greedy": "1f445",
  67638. "shortnames": [],
  67639. "category": "people"
  67640. },
  67641. ":tools:": {
  67642. "uc_base": "1f6e0",
  67643. "uc_output": "1f6e0",
  67644. "uc_match": "1f6e0-fe0f",
  67645. "uc_greedy": "1f6e0-fe0f",
  67646. "shortnames": [":hammer_and_wrench:"],
  67647. "category": "objects"
  67648. },
  67649. ":top:": {
  67650. "uc_base": "1f51d",
  67651. "uc_output": "1f51d",
  67652. "uc_match": "1f51d",
  67653. "uc_greedy": "1f51d",
  67654. "shortnames": [],
  67655. "category": "symbols"
  67656. },
  67657. ":tophat:": {
  67658. "uc_base": "1f3a9",
  67659. "uc_output": "1f3a9",
  67660. "uc_match": "1f3a9",
  67661. "uc_greedy": "1f3a9",
  67662. "shortnames": [],
  67663. "category": "people"
  67664. },
  67665. ":trackball:": {
  67666. "uc_base": "1f5b2",
  67667. "uc_output": "1f5b2",
  67668. "uc_match": "1f5b2-fe0f",
  67669. "uc_greedy": "1f5b2-fe0f",
  67670. "shortnames": [],
  67671. "category": "objects"
  67672. },
  67673. ":tractor:": {
  67674. "uc_base": "1f69c",
  67675. "uc_output": "1f69c",
  67676. "uc_match": "1f69c",
  67677. "uc_greedy": "1f69c",
  67678. "shortnames": [],
  67679. "category": "travel"
  67680. },
  67681. ":traffic_light:": {
  67682. "uc_base": "1f6a5",
  67683. "uc_output": "1f6a5",
  67684. "uc_match": "1f6a5",
  67685. "uc_greedy": "1f6a5",
  67686. "shortnames": [],
  67687. "category": "travel"
  67688. },
  67689. ":train2:": {
  67690. "uc_base": "1f686",
  67691. "uc_output": "1f686",
  67692. "uc_match": "1f686",
  67693. "uc_greedy": "1f686",
  67694. "shortnames": [],
  67695. "category": "travel"
  67696. },
  67697. ":train:": {
  67698. "uc_base": "1f68b",
  67699. "uc_output": "1f68b",
  67700. "uc_match": "1f68b",
  67701. "uc_greedy": "1f68b",
  67702. "shortnames": [],
  67703. "category": "travel"
  67704. },
  67705. ":tram:": {
  67706. "uc_base": "1f68a",
  67707. "uc_output": "1f68a",
  67708. "uc_match": "1f68a",
  67709. "uc_greedy": "1f68a",
  67710. "shortnames": [],
  67711. "category": "travel"
  67712. },
  67713. ":triangular_flag_on_post:": {
  67714. "uc_base": "1f6a9",
  67715. "uc_output": "1f6a9",
  67716. "uc_match": "1f6a9",
  67717. "uc_greedy": "1f6a9",
  67718. "shortnames": [],
  67719. "category": "flags"
  67720. },
  67721. ":triangular_ruler:": {
  67722. "uc_base": "1f4d0",
  67723. "uc_output": "1f4d0",
  67724. "uc_match": "1f4d0",
  67725. "uc_greedy": "1f4d0",
  67726. "shortnames": [],
  67727. "category": "objects"
  67728. },
  67729. ":trident:": {
  67730. "uc_base": "1f531",
  67731. "uc_output": "1f531",
  67732. "uc_match": "1f531",
  67733. "uc_greedy": "1f531",
  67734. "shortnames": [],
  67735. "category": "symbols"
  67736. },
  67737. ":triumph:": {
  67738. "uc_base": "1f624",
  67739. "uc_output": "1f624",
  67740. "uc_match": "1f624",
  67741. "uc_greedy": "1f624",
  67742. "shortnames": [],
  67743. "category": "people"
  67744. },
  67745. ":trolleybus:": {
  67746. "uc_base": "1f68e",
  67747. "uc_output": "1f68e",
  67748. "uc_match": "1f68e",
  67749. "uc_greedy": "1f68e",
  67750. "shortnames": [],
  67751. "category": "travel"
  67752. },
  67753. ":trophy:": {
  67754. "uc_base": "1f3c6",
  67755. "uc_output": "1f3c6",
  67756. "uc_match": "1f3c6-fe0f",
  67757. "uc_greedy": "1f3c6-fe0f",
  67758. "shortnames": [],
  67759. "category": "activity"
  67760. },
  67761. ":tropical_drink:": {
  67762. "uc_base": "1f379",
  67763. "uc_output": "1f379",
  67764. "uc_match": "1f379",
  67765. "uc_greedy": "1f379",
  67766. "shortnames": [],
  67767. "category": "food"
  67768. },
  67769. ":tropical_fish:": {
  67770. "uc_base": "1f420",
  67771. "uc_output": "1f420",
  67772. "uc_match": "1f420",
  67773. "uc_greedy": "1f420",
  67774. "shortnames": [],
  67775. "category": "nature"
  67776. },
  67777. ":truck:": {
  67778. "uc_base": "1f69a",
  67779. "uc_output": "1f69a",
  67780. "uc_match": "1f69a",
  67781. "uc_greedy": "1f69a",
  67782. "shortnames": [],
  67783. "category": "travel"
  67784. },
  67785. ":trumpet:": {
  67786. "uc_base": "1f3ba",
  67787. "uc_output": "1f3ba",
  67788. "uc_match": "1f3ba",
  67789. "uc_greedy": "1f3ba",
  67790. "shortnames": [],
  67791. "category": "activity"
  67792. },
  67793. ":tulip:": {
  67794. "uc_base": "1f337",
  67795. "uc_output": "1f337",
  67796. "uc_match": "1f337",
  67797. "uc_greedy": "1f337",
  67798. "shortnames": [],
  67799. "category": "nature"
  67800. },
  67801. ":tumbler_glass:": {
  67802. "uc_base": "1f943",
  67803. "uc_output": "1f943",
  67804. "uc_match": "1f943",
  67805. "uc_greedy": "1f943",
  67806. "shortnames": [":whisky:"],
  67807. "category": "food"
  67808. },
  67809. ":turkey:": {
  67810. "uc_base": "1f983",
  67811. "uc_output": "1f983",
  67812. "uc_match": "1f983",
  67813. "uc_greedy": "1f983",
  67814. "shortnames": [],
  67815. "category": "nature"
  67816. },
  67817. ":turtle:": {
  67818. "uc_base": "1f422",
  67819. "uc_output": "1f422",
  67820. "uc_match": "1f422",
  67821. "uc_greedy": "1f422",
  67822. "shortnames": [],
  67823. "category": "nature"
  67824. },
  67825. ":tv:": {
  67826. "uc_base": "1f4fa",
  67827. "uc_output": "1f4fa",
  67828. "uc_match": "1f4fa-fe0f",
  67829. "uc_greedy": "1f4fa-fe0f",
  67830. "shortnames": [],
  67831. "category": "objects"
  67832. },
  67833. ":twisted_rightwards_arrows:": {
  67834. "uc_base": "1f500",
  67835. "uc_output": "1f500",
  67836. "uc_match": "1f500",
  67837. "uc_greedy": "1f500",
  67838. "shortnames": [],
  67839. "category": "symbols"
  67840. },
  67841. ":two_hearts:": {
  67842. "uc_base": "1f495",
  67843. "uc_output": "1f495",
  67844. "uc_match": "1f495",
  67845. "uc_greedy": "1f495",
  67846. "shortnames": [],
  67847. "category": "symbols"
  67848. },
  67849. ":two_men_holding_hands:": {
  67850. "uc_base": "1f46c",
  67851. "uc_output": "1f46c",
  67852. "uc_match": "1f46c",
  67853. "uc_greedy": "1f46c",
  67854. "shortnames": [],
  67855. "category": "people"
  67856. },
  67857. ":two_women_holding_hands:": {
  67858. "uc_base": "1f46d",
  67859. "uc_output": "1f46d",
  67860. "uc_match": "1f46d",
  67861. "uc_greedy": "1f46d",
  67862. "shortnames": [],
  67863. "category": "people"
  67864. },
  67865. ":u5272:": {
  67866. "uc_base": "1f239",
  67867. "uc_output": "1f239",
  67868. "uc_match": "1f239",
  67869. "uc_greedy": "1f239",
  67870. "shortnames": [],
  67871. "category": "symbols"
  67872. },
  67873. ":u5408:": {
  67874. "uc_base": "1f234",
  67875. "uc_output": "1f234",
  67876. "uc_match": "1f234",
  67877. "uc_greedy": "1f234",
  67878. "shortnames": [],
  67879. "category": "symbols"
  67880. },
  67881. ":u55b6:": {
  67882. "uc_base": "1f23a",
  67883. "uc_output": "1f23a",
  67884. "uc_match": "1f23a",
  67885. "uc_greedy": "1f23a",
  67886. "shortnames": [],
  67887. "category": "symbols"
  67888. },
  67889. ":u6307:": {
  67890. "uc_base": "1f22f",
  67891. "uc_output": "1f22f",
  67892. "uc_match": "1f22f-fe0f",
  67893. "uc_greedy": "1f22f-fe0f",
  67894. "shortnames": [],
  67895. "category": "symbols"
  67896. },
  67897. ":u6708:": {
  67898. "uc_base": "1f237",
  67899. "uc_output": "1f237",
  67900. "uc_match": "1f237-fe0f",
  67901. "uc_greedy": "1f237-fe0f",
  67902. "shortnames": [],
  67903. "category": "symbols"
  67904. },
  67905. ":u6709:": {
  67906. "uc_base": "1f236",
  67907. "uc_output": "1f236",
  67908. "uc_match": "1f236",
  67909. "uc_greedy": "1f236",
  67910. "shortnames": [],
  67911. "category": "symbols"
  67912. },
  67913. ":u6e80:": {
  67914. "uc_base": "1f235",
  67915. "uc_output": "1f235",
  67916. "uc_match": "1f235",
  67917. "uc_greedy": "1f235",
  67918. "shortnames": [],
  67919. "category": "symbols"
  67920. },
  67921. ":u7121:": {
  67922. "uc_base": "1f21a",
  67923. "uc_output": "1f21a",
  67924. "uc_match": "1f21a-fe0f",
  67925. "uc_greedy": "1f21a-fe0f",
  67926. "shortnames": [],
  67927. "category": "symbols"
  67928. },
  67929. ":u7533:": {
  67930. "uc_base": "1f238",
  67931. "uc_output": "1f238",
  67932. "uc_match": "1f238",
  67933. "uc_greedy": "1f238",
  67934. "shortnames": [],
  67935. "category": "symbols"
  67936. },
  67937. ":u7981:": {
  67938. "uc_base": "1f232",
  67939. "uc_output": "1f232",
  67940. "uc_match": "1f232",
  67941. "uc_greedy": "1f232",
  67942. "shortnames": [],
  67943. "category": "symbols"
  67944. },
  67945. ":u7a7a:": {
  67946. "uc_base": "1f233",
  67947. "uc_output": "1f233",
  67948. "uc_match": "1f233",
  67949. "uc_greedy": "1f233",
  67950. "shortnames": [],
  67951. "category": "symbols"
  67952. },
  67953. ":unamused:": {
  67954. "uc_base": "1f612",
  67955. "uc_output": "1f612",
  67956. "uc_match": "1f612",
  67957. "uc_greedy": "1f612",
  67958. "shortnames": [],
  67959. "category": "people"
  67960. },
  67961. ":underage:": {
  67962. "uc_base": "1f51e",
  67963. "uc_output": "1f51e",
  67964. "uc_match": "1f51e",
  67965. "uc_greedy": "1f51e",
  67966. "shortnames": [],
  67967. "category": "symbols"
  67968. },
  67969. ":unicorn:": {
  67970. "uc_base": "1f984",
  67971. "uc_output": "1f984",
  67972. "uc_match": "1f984",
  67973. "uc_greedy": "1f984",
  67974. "shortnames": [":unicorn_face:"],
  67975. "category": "nature"
  67976. },
  67977. ":unlock:": {
  67978. "uc_base": "1f513",
  67979. "uc_output": "1f513",
  67980. "uc_match": "1f513-fe0f",
  67981. "uc_greedy": "1f513-fe0f",
  67982. "shortnames": [],
  67983. "category": "objects"
  67984. },
  67985. ":up:": {
  67986. "uc_base": "1f199",
  67987. "uc_output": "1f199",
  67988. "uc_match": "1f199",
  67989. "uc_greedy": "1f199",
  67990. "shortnames": [],
  67991. "category": "symbols"
  67992. },
  67993. ":upside_down:": {
  67994. "uc_base": "1f643",
  67995. "uc_output": "1f643",
  67996. "uc_match": "1f643",
  67997. "uc_greedy": "1f643",
  67998. "shortnames": [":upside_down_face:"],
  67999. "category": "people"
  68000. },
  68001. ":vampire:": {
  68002. "uc_base": "1f9db",
  68003. "uc_output": "1f9db",
  68004. "uc_match": "1f9db",
  68005. "uc_greedy": "1f9db",
  68006. "shortnames": [],
  68007. "category": "people"
  68008. },
  68009. ":vertical_traffic_light:": {
  68010. "uc_base": "1f6a6",
  68011. "uc_output": "1f6a6",
  68012. "uc_match": "1f6a6",
  68013. "uc_greedy": "1f6a6",
  68014. "shortnames": [],
  68015. "category": "travel"
  68016. },
  68017. ":vhs:": {
  68018. "uc_base": "1f4fc",
  68019. "uc_output": "1f4fc",
  68020. "uc_match": "1f4fc",
  68021. "uc_greedy": "1f4fc",
  68022. "shortnames": [],
  68023. "category": "objects"
  68024. },
  68025. ":vibration_mode:": {
  68026. "uc_base": "1f4f3",
  68027. "uc_output": "1f4f3",
  68028. "uc_match": "1f4f3",
  68029. "uc_greedy": "1f4f3",
  68030. "shortnames": [],
  68031. "category": "symbols"
  68032. },
  68033. ":video_camera:": {
  68034. "uc_base": "1f4f9",
  68035. "uc_output": "1f4f9",
  68036. "uc_match": "1f4f9-fe0f",
  68037. "uc_greedy": "1f4f9-fe0f",
  68038. "shortnames": [],
  68039. "category": "objects"
  68040. },
  68041. ":video_game:": {
  68042. "uc_base": "1f3ae",
  68043. "uc_output": "1f3ae",
  68044. "uc_match": "1f3ae-fe0f",
  68045. "uc_greedy": "1f3ae-fe0f",
  68046. "shortnames": [],
  68047. "category": "activity"
  68048. },
  68049. ":violin:": {
  68050. "uc_base": "1f3bb",
  68051. "uc_output": "1f3bb",
  68052. "uc_match": "1f3bb",
  68053. "uc_greedy": "1f3bb",
  68054. "shortnames": [],
  68055. "category": "activity"
  68056. },
  68057. ":volcano:": {
  68058. "uc_base": "1f30b",
  68059. "uc_output": "1f30b",
  68060. "uc_match": "1f30b",
  68061. "uc_greedy": "1f30b",
  68062. "shortnames": [],
  68063. "category": "travel"
  68064. },
  68065. ":volleyball:": {
  68066. "uc_base": "1f3d0",
  68067. "uc_output": "1f3d0",
  68068. "uc_match": "1f3d0",
  68069. "uc_greedy": "1f3d0",
  68070. "shortnames": [],
  68071. "category": "activity"
  68072. },
  68073. ":vs:": {
  68074. "uc_base": "1f19a",
  68075. "uc_output": "1f19a",
  68076. "uc_match": "1f19a",
  68077. "uc_greedy": "1f19a",
  68078. "shortnames": [],
  68079. "category": "symbols"
  68080. },
  68081. ":vulcan:": {
  68082. "uc_base": "1f596",
  68083. "uc_output": "1f596",
  68084. "uc_match": "1f596",
  68085. "uc_greedy": "1f596",
  68086. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers:"],
  68087. "category": "people"
  68088. },
  68089. ":waning_crescent_moon:": {
  68090. "uc_base": "1f318",
  68091. "uc_output": "1f318",
  68092. "uc_match": "1f318",
  68093. "uc_greedy": "1f318",
  68094. "shortnames": [],
  68095. "category": "nature"
  68096. },
  68097. ":waning_gibbous_moon:": {
  68098. "uc_base": "1f316",
  68099. "uc_output": "1f316",
  68100. "uc_match": "1f316",
  68101. "uc_greedy": "1f316",
  68102. "shortnames": [],
  68103. "category": "nature"
  68104. },
  68105. ":wastebasket:": {
  68106. "uc_base": "1f5d1",
  68107. "uc_output": "1f5d1",
  68108. "uc_match": "1f5d1-fe0f",
  68109. "uc_greedy": "1f5d1-fe0f",
  68110. "shortnames": [],
  68111. "category": "objects"
  68112. },
  68113. ":water_buffalo:": {
  68114. "uc_base": "1f403",
  68115. "uc_output": "1f403",
  68116. "uc_match": "1f403",
  68117. "uc_greedy": "1f403",
  68118. "shortnames": [],
  68119. "category": "nature"
  68120. },
  68121. ":watermelon:": {
  68122. "uc_base": "1f349",
  68123. "uc_output": "1f349",
  68124. "uc_match": "1f349",
  68125. "uc_greedy": "1f349",
  68126. "shortnames": [],
  68127. "category": "food"
  68128. },
  68129. ":wave:": {
  68130. "uc_base": "1f44b",
  68131. "uc_output": "1f44b",
  68132. "uc_match": "1f44b",
  68133. "uc_greedy": "1f44b",
  68134. "shortnames": [],
  68135. "category": "people"
  68136. },
  68137. ":waxing_crescent_moon:": {
  68138. "uc_base": "1f312",
  68139. "uc_output": "1f312",
  68140. "uc_match": "1f312",
  68141. "uc_greedy": "1f312",
  68142. "shortnames": [],
  68143. "category": "nature"
  68144. },
  68145. ":waxing_gibbous_moon:": {
  68146. "uc_base": "1f314",
  68147. "uc_output": "1f314",
  68148. "uc_match": "1f314",
  68149. "uc_greedy": "1f314",
  68150. "shortnames": [],
  68151. "category": "nature"
  68152. },
  68153. ":wc:": {
  68154. "uc_base": "1f6be",
  68155. "uc_output": "1f6be",
  68156. "uc_match": "1f6be",
  68157. "uc_greedy": "1f6be",
  68158. "shortnames": [],
  68159. "category": "symbols"
  68160. },
  68161. ":weary:": {
  68162. "uc_base": "1f629",
  68163. "uc_output": "1f629",
  68164. "uc_match": "1f629",
  68165. "uc_greedy": "1f629",
  68166. "shortnames": [],
  68167. "category": "people"
  68168. },
  68169. ":wedding:": {
  68170. "uc_base": "1f492",
  68171. "uc_output": "1f492",
  68172. "uc_match": "1f492",
  68173. "uc_greedy": "1f492",
  68174. "shortnames": [],
  68175. "category": "travel"
  68176. },
  68177. ":whale2:": {
  68178. "uc_base": "1f40b",
  68179. "uc_output": "1f40b",
  68180. "uc_match": "1f40b",
  68181. "uc_greedy": "1f40b",
  68182. "shortnames": [],
  68183. "category": "nature"
  68184. },
  68185. ":whale:": {
  68186. "uc_base": "1f433",
  68187. "uc_output": "1f433",
  68188. "uc_match": "1f433",
  68189. "uc_greedy": "1f433",
  68190. "shortnames": [],
  68191. "category": "nature"
  68192. },
  68193. ":white_flower:": {
  68194. "uc_base": "1f4ae",
  68195. "uc_output": "1f4ae",
  68196. "uc_match": "1f4ae",
  68197. "uc_greedy": "1f4ae",
  68198. "shortnames": [],
  68199. "category": "symbols"
  68200. },
  68201. ":white_square_button:": {
  68202. "uc_base": "1f533",
  68203. "uc_output": "1f533",
  68204. "uc_match": "1f533",
  68205. "uc_greedy": "1f533",
  68206. "shortnames": [],
  68207. "category": "symbols"
  68208. },
  68209. ":white_sun_cloud:": {
  68210. "uc_base": "1f325",
  68211. "uc_output": "1f325",
  68212. "uc_match": "1f325-fe0f",
  68213. "uc_greedy": "1f325-fe0f",
  68214. "shortnames": [":white_sun_behind_cloud:"],
  68215. "category": "nature"
  68216. },
  68217. ":white_sun_rain_cloud:": {
  68218. "uc_base": "1f326",
  68219. "uc_output": "1f326",
  68220. "uc_match": "1f326-fe0f",
  68221. "uc_greedy": "1f326-fe0f",
  68222. "shortnames": [":white_sun_behind_cloud_with_rain:"],
  68223. "category": "nature"
  68224. },
  68225. ":white_sun_small_cloud:": {
  68226. "uc_base": "1f324",
  68227. "uc_output": "1f324",
  68228. "uc_match": "1f324-fe0f",
  68229. "uc_greedy": "1f324-fe0f",
  68230. "shortnames": [":white_sun_with_small_cloud:"],
  68231. "category": "nature"
  68232. },
  68233. ":wilted_rose:": {
  68234. "uc_base": "1f940",
  68235. "uc_output": "1f940",
  68236. "uc_match": "1f940",
  68237. "uc_greedy": "1f940",
  68238. "shortnames": [":wilted_flower:"],
  68239. "category": "nature"
  68240. },
  68241. ":wind_blowing_face:": {
  68242. "uc_base": "1f32c",
  68243. "uc_output": "1f32c",
  68244. "uc_match": "1f32c-fe0f",
  68245. "uc_greedy": "1f32c-fe0f",
  68246. "shortnames": [],
  68247. "category": "nature"
  68248. },
  68249. ":wind_chime:": {
  68250. "uc_base": "1f390",
  68251. "uc_output": "1f390",
  68252. "uc_match": "1f390",
  68253. "uc_greedy": "1f390",
  68254. "shortnames": [],
  68255. "category": "objects"
  68256. },
  68257. ":wine_glass:": {
  68258. "uc_base": "1f377",
  68259. "uc_output": "1f377",
  68260. "uc_match": "1f377",
  68261. "uc_greedy": "1f377",
  68262. "shortnames": [],
  68263. "category": "food"
  68264. },
  68265. ":wink:": {
  68266. "uc_base": "1f609",
  68267. "uc_output": "1f609",
  68268. "uc_match": "1f609",
  68269. "uc_greedy": "1f609",
  68270. "shortnames": [],
  68271. "category": "people"
  68272. },
  68273. ":wolf:": {
  68274. "uc_base": "1f43a",
  68275. "uc_output": "1f43a",
  68276. "uc_match": "1f43a",
  68277. "uc_greedy": "1f43a",
  68278. "shortnames": [],
  68279. "category": "nature"
  68280. },
  68281. ":woman:": {
  68282. "uc_base": "1f469",
  68283. "uc_output": "1f469",
  68284. "uc_match": "1f469",
  68285. "uc_greedy": "1f469",
  68286. "shortnames": [],
  68287. "category": "people"
  68288. },
  68289. ":woman_with_headscarf:": {
  68290. "uc_base": "1f9d5",
  68291. "uc_output": "1f9d5",
  68292. "uc_match": "1f9d5",
  68293. "uc_greedy": "1f9d5",
  68294. "shortnames": [],
  68295. "category": "people"
  68296. },
  68297. ":womans_clothes:": {
  68298. "uc_base": "1f45a",
  68299. "uc_output": "1f45a",
  68300. "uc_match": "1f45a",
  68301. "uc_greedy": "1f45a",
  68302. "shortnames": [],
  68303. "category": "people"
  68304. },
  68305. ":womans_hat:": {
  68306. "uc_base": "1f452",
  68307. "uc_output": "1f452",
  68308. "uc_match": "1f452",
  68309. "uc_greedy": "1f452",
  68310. "shortnames": [],
  68311. "category": "people"
  68312. },
  68313. ":womens:": {
  68314. "uc_base": "1f6ba",
  68315. "uc_output": "1f6ba",
  68316. "uc_match": "1f6ba-fe0f",
  68317. "uc_greedy": "1f6ba-fe0f",
  68318. "shortnames": [],
  68319. "category": "symbols"
  68320. },
  68321. ":worried:": {
  68322. "uc_base": "1f61f",
  68323. "uc_output": "1f61f",
  68324. "uc_match": "1f61f",
  68325. "uc_greedy": "1f61f",
  68326. "shortnames": [],
  68327. "category": "people"
  68328. },
  68329. ":wrench:": {
  68330. "uc_base": "1f527",
  68331. "uc_output": "1f527",
  68332. "uc_match": "1f527",
  68333. "uc_greedy": "1f527",
  68334. "shortnames": [],
  68335. "category": "objects"
  68336. },
  68337. ":yellow_heart:": {
  68338. "uc_base": "1f49b",
  68339. "uc_output": "1f49b",
  68340. "uc_match": "1f49b",
  68341. "uc_greedy": "1f49b",
  68342. "shortnames": [],
  68343. "category": "symbols"
  68344. },
  68345. ":yen:": {
  68346. "uc_base": "1f4b4",
  68347. "uc_output": "1f4b4",
  68348. "uc_match": "1f4b4",
  68349. "uc_greedy": "1f4b4",
  68350. "shortnames": [],
  68351. "category": "objects"
  68352. },
  68353. ":yum:": {
  68354. "uc_base": "1f60b",
  68355. "uc_output": "1f60b",
  68356. "uc_match": "1f60b",
  68357. "uc_greedy": "1f60b",
  68358. "shortnames": [],
  68359. "category": "people"
  68360. },
  68361. ":zebra:": {
  68362. "uc_base": "1f993",
  68363. "uc_output": "1f993",
  68364. "uc_match": "1f993",
  68365. "uc_greedy": "1f993",
  68366. "shortnames": [],
  68367. "category": "nature"
  68368. },
  68369. ":zipper_mouth:": {
  68370. "uc_base": "1f910",
  68371. "uc_output": "1f910",
  68372. "uc_match": "1f910",
  68373. "uc_greedy": "1f910",
  68374. "shortnames": [":zipper_mouth_face:"],
  68375. "category": "people"
  68376. },
  68377. ":zombie:": {
  68378. "uc_base": "1f9df",
  68379. "uc_output": "1f9df",
  68380. "uc_match": "1f9df",
  68381. "uc_greedy": "1f9df",
  68382. "shortnames": [],
  68383. "category": "people"
  68384. },
  68385. ":zzz:": {
  68386. "uc_base": "1f4a4",
  68387. "uc_output": "1f4a4",
  68388. "uc_match": "1f4a4",
  68389. "uc_greedy": "1f4a4",
  68390. "shortnames": [],
  68391. "category": "symbols"
  68392. },
  68393. ":airplane:": {
  68394. "uc_base": "2708",
  68395. "uc_output": "2708",
  68396. "uc_match": "2708-fe0f",
  68397. "uc_greedy": "2708-fe0f",
  68398. "shortnames": [],
  68399. "category": "travel"
  68400. },
  68401. ":alarm_clock:": {
  68402. "uc_base": "23f0",
  68403. "uc_output": "23f0",
  68404. "uc_match": "23f0",
  68405. "uc_greedy": "23f0",
  68406. "shortnames": [],
  68407. "category": "objects"
  68408. },
  68409. ":alembic:": {
  68410. "uc_base": "2697",
  68411. "uc_output": "2697",
  68412. "uc_match": "2697-fe0f",
  68413. "uc_greedy": "2697-fe0f",
  68414. "shortnames": [],
  68415. "category": "objects"
  68416. },
  68417. ":anchor:": {
  68418. "uc_base": "2693",
  68419. "uc_output": "2693",
  68420. "uc_match": "2693-fe0f",
  68421. "uc_greedy": "2693-fe0f",
  68422. "shortnames": [],
  68423. "category": "travel"
  68424. },
  68425. ":aquarius:": {
  68426. "uc_base": "2652",
  68427. "uc_output": "2652",
  68428. "uc_match": "2652-fe0f",
  68429. "uc_greedy": "2652-fe0f",
  68430. "shortnames": [],
  68431. "category": "symbols"
  68432. },
  68433. ":aries:": {
  68434. "uc_base": "2648",
  68435. "uc_output": "2648",
  68436. "uc_match": "2648-fe0f",
  68437. "uc_greedy": "2648-fe0f",
  68438. "shortnames": [],
  68439. "category": "symbols"
  68440. },
  68441. ":arrow_backward:": {
  68442. "uc_base": "25c0",
  68443. "uc_output": "25c0",
  68444. "uc_match": "25c0-fe0f",
  68445. "uc_greedy": "25c0",
  68446. "shortnames": [],
  68447. "category": "symbols"
  68448. },
  68449. ":arrow_double_down:": {
  68450. "uc_base": "23ec",
  68451. "uc_output": "23ec",
  68452. "uc_match": "23ec",
  68453. "uc_greedy": "23ec",
  68454. "shortnames": [],
  68455. "category": "symbols"
  68456. },
  68457. ":arrow_double_up:": {
  68458. "uc_base": "23eb",
  68459. "uc_output": "23eb",
  68460. "uc_match": "23eb",
  68461. "uc_greedy": "23eb",
  68462. "shortnames": [],
  68463. "category": "symbols"
  68464. },
  68465. ":arrow_down:": {
  68466. "uc_base": "2b07",
  68467. "uc_output": "2b07",
  68468. "uc_match": "2b07-fe0f",
  68469. "uc_greedy": "2b07",
  68470. "shortnames": [],
  68471. "category": "symbols"
  68472. },
  68473. ":arrow_forward:": {
  68474. "uc_base": "25b6",
  68475. "uc_output": "25b6",
  68476. "uc_match": "25b6-fe0f",
  68477. "uc_greedy": "25b6",
  68478. "shortnames": [],
  68479. "category": "symbols"
  68480. },
  68481. ":arrow_heading_down:": {
  68482. "uc_base": "2935",
  68483. "uc_output": "2935",
  68484. "uc_match": "2935-fe0f",
  68485. "uc_greedy": "2935",
  68486. "shortnames": [],
  68487. "category": "symbols"
  68488. },
  68489. ":arrow_heading_up:": {
  68490. "uc_base": "2934",
  68491. "uc_output": "2934",
  68492. "uc_match": "2934-fe0f",
  68493. "uc_greedy": "2934",
  68494. "shortnames": [],
  68495. "category": "symbols"
  68496. },
  68497. ":arrow_left:": {
  68498. "uc_base": "2b05",
  68499. "uc_output": "2b05",
  68500. "uc_match": "2b05-fe0f",
  68501. "uc_greedy": "2b05",
  68502. "shortnames": [],
  68503. "category": "symbols"
  68504. },
  68505. ":arrow_lower_left:": {
  68506. "uc_base": "2199",
  68507. "uc_output": "2199",
  68508. "uc_match": "2199-fe0f",
  68509. "uc_greedy": "2199",
  68510. "shortnames": [],
  68511. "category": "symbols"
  68512. },
  68513. ":arrow_lower_right:": {
  68514. "uc_base": "2198",
  68515. "uc_output": "2198",
  68516. "uc_match": "2198-fe0f",
  68517. "uc_greedy": "2198",
  68518. "shortnames": [],
  68519. "category": "symbols"
  68520. },
  68521. ":arrow_right:": {
  68522. "uc_base": "27a1",
  68523. "uc_output": "27a1",
  68524. "uc_match": "27a1-fe0f",
  68525. "uc_greedy": "27a1",
  68526. "shortnames": [],
  68527. "category": "symbols"
  68528. },
  68529. ":arrow_right_hook:": {
  68530. "uc_base": "21aa",
  68531. "uc_output": "21aa",
  68532. "uc_match": "21aa-fe0f",
  68533. "uc_greedy": "21aa",
  68534. "shortnames": [],
  68535. "category": "symbols"
  68536. },
  68537. ":arrow_up:": {
  68538. "uc_base": "2b06",
  68539. "uc_output": "2b06",
  68540. "uc_match": "2b06-fe0f",
  68541. "uc_greedy": "2b06",
  68542. "shortnames": [],
  68543. "category": "symbols"
  68544. },
  68545. ":arrow_up_down:": {
  68546. "uc_base": "2195",
  68547. "uc_output": "2195",
  68548. "uc_match": "2195-fe0f",
  68549. "uc_greedy": "2195",
  68550. "shortnames": [],
  68551. "category": "symbols"
  68552. },
  68553. ":arrow_upper_left:": {
  68554. "uc_base": "2196",
  68555. "uc_output": "2196",
  68556. "uc_match": "2196-fe0f",
  68557. "uc_greedy": "2196",
  68558. "shortnames": [],
  68559. "category": "symbols"
  68560. },
  68561. ":arrow_upper_right:": {
  68562. "uc_base": "2197",
  68563. "uc_output": "2197",
  68564. "uc_match": "2197-fe0f",
  68565. "uc_greedy": "2197",
  68566. "shortnames": [],
  68567. "category": "symbols"
  68568. },
  68569. ":atom:": {
  68570. "uc_base": "269b",
  68571. "uc_output": "269b",
  68572. "uc_match": "269b-fe0f",
  68573. "uc_greedy": "269b",
  68574. "shortnames": [":atom_symbol:"],
  68575. "category": "symbols"
  68576. },
  68577. ":ballot_box_with_check:": {
  68578. "uc_base": "2611",
  68579. "uc_output": "2611",
  68580. "uc_match": "2611-fe0f",
  68581. "uc_greedy": "2611",
  68582. "shortnames": [],
  68583. "category": "symbols"
  68584. },
  68585. ":bangbang:": {
  68586. "uc_base": "203c",
  68587. "uc_output": "203c",
  68588. "uc_match": "203c-fe0f",
  68589. "uc_greedy": "203c",
  68590. "shortnames": [],
  68591. "category": "symbols"
  68592. },
  68593. ":baseball:": {
  68594. "uc_base": "26be",
  68595. "uc_output": "26be",
  68596. "uc_match": "26be-fe0f",
  68597. "uc_greedy": "26be-fe0f",
  68598. "shortnames": [],
  68599. "category": "activity"
  68600. },
  68601. ":beach_umbrella:": {
  68602. "uc_base": "26f1",
  68603. "uc_output": "26f1",
  68604. "uc_match": "26f1-fe0f",
  68605. "uc_greedy": "26f1-fe0f",
  68606. "shortnames": [":umbrella_on_ground:"],
  68607. "category": "travel"
  68608. },
  68609. ":biohazard:": {
  68610. "uc_base": "2623",
  68611. "uc_output": "2623",
  68612. "uc_match": "2623-fe0f",
  68613. "uc_greedy": "2623",
  68614. "shortnames": [":biohazard_sign:"],
  68615. "category": "symbols"
  68616. },
  68617. ":black_circle:": {
  68618. "uc_base": "26ab",
  68619. "uc_output": "26ab",
  68620. "uc_match": "26ab-fe0f",
  68621. "uc_greedy": "26ab-fe0f",
  68622. "shortnames": [],
  68623. "category": "symbols"
  68624. },
  68625. ":black_large_square:": {
  68626. "uc_base": "2b1b",
  68627. "uc_output": "2b1b",
  68628. "uc_match": "2b1b-fe0f",
  68629. "uc_greedy": "2b1b-fe0f",
  68630. "shortnames": [],
  68631. "category": "symbols"
  68632. },
  68633. ":black_medium_small_square:": {
  68634. "uc_base": "25fe",
  68635. "uc_output": "25fe",
  68636. "uc_match": "25fe-fe0f",
  68637. "uc_greedy": "25fe-fe0f",
  68638. "shortnames": [],
  68639. "category": "symbols"
  68640. },
  68641. ":black_medium_square:": {
  68642. "uc_base": "25fc",
  68643. "uc_output": "25fc",
  68644. "uc_match": "25fc-fe0f",
  68645. "uc_greedy": "25fc",
  68646. "shortnames": [],
  68647. "category": "symbols"
  68648. },
  68649. ":black_nib:": {
  68650. "uc_base": "2712",
  68651. "uc_output": "2712",
  68652. "uc_match": "2712-fe0f",
  68653. "uc_greedy": "2712-fe0f",
  68654. "shortnames": [],
  68655. "category": "objects"
  68656. },
  68657. ":black_small_square:": {
  68658. "uc_base": "25aa",
  68659. "uc_output": "25aa",
  68660. "uc_match": "25aa-fe0f",
  68661. "uc_greedy": "25aa",
  68662. "shortnames": [],
  68663. "category": "symbols"
  68664. },
  68665. ":cancer:": {
  68666. "uc_base": "264b",
  68667. "uc_output": "264b",
  68668. "uc_match": "264b-fe0f",
  68669. "uc_greedy": "264b-fe0f",
  68670. "shortnames": [],
  68671. "category": "symbols"
  68672. },
  68673. ":capricorn:": {
  68674. "uc_base": "2651",
  68675. "uc_output": "2651",
  68676. "uc_match": "2651-fe0f",
  68677. "uc_greedy": "2651-fe0f",
  68678. "shortnames": [],
  68679. "category": "symbols"
  68680. },
  68681. ":chains:": {
  68682. "uc_base": "26d3",
  68683. "uc_output": "26d3",
  68684. "uc_match": "26d3-fe0f",
  68685. "uc_greedy": "26d3-fe0f",
  68686. "shortnames": [],
  68687. "category": "objects"
  68688. },
  68689. ":church:": {
  68690. "uc_base": "26ea",
  68691. "uc_output": "26ea",
  68692. "uc_match": "26ea-fe0f",
  68693. "uc_greedy": "26ea-fe0f",
  68694. "shortnames": [],
  68695. "category": "travel"
  68696. },
  68697. ":cloud:": {
  68698. "uc_base": "2601",
  68699. "uc_output": "2601",
  68700. "uc_match": "2601-fe0f",
  68701. "uc_greedy": "2601-fe0f",
  68702. "shortnames": [],
  68703. "category": "nature"
  68704. },
  68705. ":clubs:": {
  68706. "uc_base": "2663",
  68707. "uc_output": "2663",
  68708. "uc_match": "2663-fe0f",
  68709. "uc_greedy": "2663-fe0f",
  68710. "shortnames": [],
  68711. "category": "symbols"
  68712. },
  68713. ":coffee:": {
  68714. "uc_base": "2615",
  68715. "uc_output": "2615",
  68716. "uc_match": "2615-fe0f",
  68717. "uc_greedy": "2615-fe0f",
  68718. "shortnames": [],
  68719. "category": "food"
  68720. },
  68721. ":coffin:": {
  68722. "uc_base": "26b0",
  68723. "uc_output": "26b0",
  68724. "uc_match": "26b0-fe0f",
  68725. "uc_greedy": "26b0-fe0f",
  68726. "shortnames": [],
  68727. "category": "objects"
  68728. },
  68729. ":comet:": {
  68730. "uc_base": "2604",
  68731. "uc_output": "2604",
  68732. "uc_match": "2604-fe0f",
  68733. "uc_greedy": "2604-fe0f",
  68734. "shortnames": [],
  68735. "category": "nature"
  68736. },
  68737. ":congratulations:": {
  68738. "uc_base": "3297",
  68739. "uc_output": "3297",
  68740. "uc_match": "3297-fe0f",
  68741. "uc_greedy": "3297-fe0f",
  68742. "shortnames": [],
  68743. "category": "symbols"
  68744. },
  68745. ":copyright:": {
  68746. "uc_base": "00a9",
  68747. "uc_output": "00a9",
  68748. "uc_match": "00a9-fe0f",
  68749. "uc_greedy": "00a9",
  68750. "shortnames": [],
  68751. "category": "symbols"
  68752. },
  68753. ":cross:": {
  68754. "uc_base": "271d",
  68755. "uc_output": "271d",
  68756. "uc_match": "271d-fe0f",
  68757. "uc_greedy": "271d",
  68758. "shortnames": [":latin_cross:"],
  68759. "category": "symbols"
  68760. },
  68761. ":crossed_swords:": {
  68762. "uc_base": "2694",
  68763. "uc_output": "2694",
  68764. "uc_match": "2694-fe0f",
  68765. "uc_greedy": "2694-fe0f",
  68766. "shortnames": [],
  68767. "category": "objects"
  68768. },
  68769. ":curly_loop:": {
  68770. "uc_base": "27b0",
  68771. "uc_output": "27b0",
  68772. "uc_match": "27b0",
  68773. "uc_greedy": "27b0",
  68774. "shortnames": [],
  68775. "category": "symbols"
  68776. },
  68777. ":diamonds:": {
  68778. "uc_base": "2666",
  68779. "uc_output": "2666",
  68780. "uc_match": "2666-fe0f",
  68781. "uc_greedy": "2666-fe0f",
  68782. "shortnames": [],
  68783. "category": "symbols"
  68784. },
  68785. ":eight_pointed_black_star:": {
  68786. "uc_base": "2734",
  68787. "uc_output": "2734",
  68788. "uc_match": "2734-fe0f",
  68789. "uc_greedy": "2734-fe0f",
  68790. "shortnames": [],
  68791. "category": "symbols"
  68792. },
  68793. ":eight_spoked_asterisk:": {
  68794. "uc_base": "2733",
  68795. "uc_output": "2733",
  68796. "uc_match": "2733-fe0f",
  68797. "uc_greedy": "2733-fe0f",
  68798. "shortnames": [],
  68799. "category": "symbols"
  68800. },
  68801. ":eject:": {
  68802. "uc_base": "23cf",
  68803. "uc_output": "23cf",
  68804. "uc_match": "23cf-fe0f",
  68805. "uc_greedy": "23cf",
  68806. "shortnames": [":eject_symbol:"],
  68807. "category": "symbols"
  68808. },
  68809. ":envelope:": {
  68810. "uc_base": "2709",
  68811. "uc_output": "2709",
  68812. "uc_match": "2709-fe0f",
  68813. "uc_greedy": "2709-fe0f",
  68814. "shortnames": [],
  68815. "category": "objects"
  68816. },
  68817. ":exclamation:": {
  68818. "uc_base": "2757",
  68819. "uc_output": "2757",
  68820. "uc_match": "2757-fe0f",
  68821. "uc_greedy": "2757-fe0f",
  68822. "shortnames": [],
  68823. "category": "symbols"
  68824. },
  68825. ":fast_forward:": {
  68826. "uc_base": "23e9",
  68827. "uc_output": "23e9",
  68828. "uc_match": "23e9-fe0f",
  68829. "uc_greedy": "23e9-fe0f",
  68830. "shortnames": [],
  68831. "category": "symbols"
  68832. },
  68833. ":female_sign:": {
  68834. "uc_base": "2640",
  68835. "uc_output": "2640",
  68836. "uc_match": "2640-fe0f",
  68837. "uc_greedy": "2640",
  68838. "shortnames": [],
  68839. "category": "symbols"
  68840. },
  68841. ":ferry:": {
  68842. "uc_base": "26f4",
  68843. "uc_output": "26f4",
  68844. "uc_match": "26f4-fe0f",
  68845. "uc_greedy": "26f4-fe0f",
  68846. "shortnames": [],
  68847. "category": "travel"
  68848. },
  68849. ":fist:": {
  68850. "uc_base": "270a",
  68851. "uc_output": "270a",
  68852. "uc_match": "270a",
  68853. "uc_greedy": "270a",
  68854. "shortnames": [],
  68855. "category": "people"
  68856. },
  68857. ":fleur-de-lis:": {
  68858. "uc_base": "269c",
  68859. "uc_output": "269c",
  68860. "uc_match": "269c-fe0f",
  68861. "uc_greedy": "269c-fe0f",
  68862. "shortnames": [],
  68863. "category": "symbols"
  68864. },
  68865. ":fountain:": {
  68866. "uc_base": "26f2",
  68867. "uc_output": "26f2",
  68868. "uc_match": "26f2-fe0f",
  68869. "uc_greedy": "26f2-fe0f",
  68870. "shortnames": [],
  68871. "category": "travel"
  68872. },
  68873. ":frowning2:": {
  68874. "uc_base": "2639",
  68875. "uc_output": "2639",
  68876. "uc_match": "2639-fe0f",
  68877. "uc_greedy": "2639-fe0f",
  68878. "shortnames": [":white_frowning_face:"],
  68879. "category": "people"
  68880. },
  68881. ":fuelpump:": {
  68882. "uc_base": "26fd",
  68883. "uc_output": "26fd",
  68884. "uc_match": "26fd-fe0f",
  68885. "uc_greedy": "26fd-fe0f",
  68886. "shortnames": [],
  68887. "category": "travel"
  68888. },
  68889. ":gear:": {
  68890. "uc_base": "2699",
  68891. "uc_output": "2699",
  68892. "uc_match": "2699-fe0f",
  68893. "uc_greedy": "2699-fe0f",
  68894. "shortnames": [],
  68895. "category": "objects"
  68896. },
  68897. ":gemini:": {
  68898. "uc_base": "264a",
  68899. "uc_output": "264a",
  68900. "uc_match": "264a-fe0f",
  68901. "uc_greedy": "264a-fe0f",
  68902. "shortnames": [],
  68903. "category": "symbols"
  68904. },
  68905. ":golf:": {
  68906. "uc_base": "26f3",
  68907. "uc_output": "26f3",
  68908. "uc_match": "26f3-fe0f",
  68909. "uc_greedy": "26f3-fe0f",
  68910. "shortnames": [],
  68911. "category": "activity"
  68912. },
  68913. ":grey_exclamation:": {
  68914. "uc_base": "2755",
  68915. "uc_output": "2755",
  68916. "uc_match": "2755",
  68917. "uc_greedy": "2755",
  68918. "shortnames": [],
  68919. "category": "symbols"
  68920. },
  68921. ":grey_question:": {
  68922. "uc_base": "2754",
  68923. "uc_output": "2754",
  68924. "uc_match": "2754",
  68925. "uc_greedy": "2754",
  68926. "shortnames": [],
  68927. "category": "symbols"
  68928. },
  68929. ":hammer_pick:": {
  68930. "uc_base": "2692",
  68931. "uc_output": "2692",
  68932. "uc_match": "2692-fe0f",
  68933. "uc_greedy": "2692-fe0f",
  68934. "shortnames": [":hammer_and_pick:"],
  68935. "category": "objects"
  68936. },
  68937. ":heart:": {
  68938. "uc_base": "2764",
  68939. "uc_output": "2764",
  68940. "uc_match": "2764-fe0f",
  68941. "uc_greedy": "2764-fe0f",
  68942. "shortnames": [],
  68943. "category": "symbols"
  68944. },
  68945. ":heart_exclamation:": {
  68946. "uc_base": "2763",
  68947. "uc_output": "2763",
  68948. "uc_match": "2763-fe0f",
  68949. "uc_greedy": "2763-fe0f",
  68950. "shortnames": [":heavy_heart_exclamation_mark_ornament:"],
  68951. "category": "symbols"
  68952. },
  68953. ":hearts:": {
  68954. "uc_base": "2665",
  68955. "uc_output": "2665",
  68956. "uc_match": "2665-fe0f",
  68957. "uc_greedy": "2665-fe0f",
  68958. "shortnames": [],
  68959. "category": "symbols"
  68960. },
  68961. ":heavy_check_mark:": {
  68962. "uc_base": "2714",
  68963. "uc_output": "2714",
  68964. "uc_match": "2714-fe0f",
  68965. "uc_greedy": "2714",
  68966. "shortnames": [],
  68967. "category": "symbols"
  68968. },
  68969. ":heavy_division_sign:": {
  68970. "uc_base": "2797",
  68971. "uc_output": "2797",
  68972. "uc_match": "2797",
  68973. "uc_greedy": "2797",
  68974. "shortnames": [],
  68975. "category": "symbols"
  68976. },
  68977. ":heavy_minus_sign:": {
  68978. "uc_base": "2796",
  68979. "uc_output": "2796",
  68980. "uc_match": "2796",
  68981. "uc_greedy": "2796",
  68982. "shortnames": [],
  68983. "category": "symbols"
  68984. },
  68985. ":heavy_multiplication_x:": {
  68986. "uc_base": "2716",
  68987. "uc_output": "2716",
  68988. "uc_match": "2716-fe0f",
  68989. "uc_greedy": "2716",
  68990. "shortnames": [],
  68991. "category": "symbols"
  68992. },
  68993. ":heavy_plus_sign:": {
  68994. "uc_base": "2795",
  68995. "uc_output": "2795",
  68996. "uc_match": "2795",
  68997. "uc_greedy": "2795",
  68998. "shortnames": [],
  68999. "category": "symbols"
  69000. },
  69001. ":helmet_with_cross:": {
  69002. "uc_base": "26d1",
  69003. "uc_output": "26d1",
  69004. "uc_match": "26d1-fe0f",
  69005. "uc_greedy": "26d1-fe0f",
  69006. "shortnames": [":helmet_with_white_cross:"],
  69007. "category": "people"
  69008. },
  69009. ":hotsprings:": {
  69010. "uc_base": "2668",
  69011. "uc_output": "2668",
  69012. "uc_match": "2668-fe0f",
  69013. "uc_greedy": "2668-fe0f",
  69014. "shortnames": [],
  69015. "category": "symbols"
  69016. },
  69017. ":hourglass:": {
  69018. "uc_base": "231b",
  69019. "uc_output": "231b",
  69020. "uc_match": "231b-fe0f",
  69021. "uc_greedy": "231b-fe0f",
  69022. "shortnames": [],
  69023. "category": "objects"
  69024. },
  69025. ":hourglass_flowing_sand:": {
  69026. "uc_base": "23f3",
  69027. "uc_output": "23f3",
  69028. "uc_match": "23f3-fe0f",
  69029. "uc_greedy": "23f3-fe0f",
  69030. "shortnames": [],
  69031. "category": "objects"
  69032. },
  69033. ":ice_skate:": {
  69034. "uc_base": "26f8",
  69035. "uc_output": "26f8",
  69036. "uc_match": "26f8-fe0f",
  69037. "uc_greedy": "26f8-fe0f",
  69038. "shortnames": [],
  69039. "category": "activity"
  69040. },
  69041. ":information_source:": {
  69042. "uc_base": "2139",
  69043. "uc_output": "2139",
  69044. "uc_match": "2139-fe0f",
  69045. "uc_greedy": "2139",
  69046. "shortnames": [],
  69047. "category": "symbols"
  69048. },
  69049. ":interrobang:": {
  69050. "uc_base": "2049",
  69051. "uc_output": "2049",
  69052. "uc_match": "2049-fe0f",
  69053. "uc_greedy": "2049",
  69054. "shortnames": [],
  69055. "category": "symbols"
  69056. },
  69057. ":keyboard:": {
  69058. "uc_base": "2328",
  69059. "uc_output": "2328",
  69060. "uc_match": "2328-fe0f",
  69061. "uc_greedy": "2328-fe0f",
  69062. "shortnames": [],
  69063. "category": "objects"
  69064. },
  69065. ":left_right_arrow:": {
  69066. "uc_base": "2194",
  69067. "uc_output": "2194",
  69068. "uc_match": "2194-fe0f",
  69069. "uc_greedy": "2194",
  69070. "shortnames": [],
  69071. "category": "symbols"
  69072. },
  69073. ":leftwards_arrow_with_hook:": {
  69074. "uc_base": "21a9",
  69075. "uc_output": "21a9",
  69076. "uc_match": "21a9-fe0f",
  69077. "uc_greedy": "21a9",
  69078. "shortnames": [],
  69079. "category": "symbols"
  69080. },
  69081. ":leo:": {
  69082. "uc_base": "264c",
  69083. "uc_output": "264c",
  69084. "uc_match": "264c-fe0f",
  69085. "uc_greedy": "264c-fe0f",
  69086. "shortnames": [],
  69087. "category": "symbols"
  69088. },
  69089. ":libra:": {
  69090. "uc_base": "264e",
  69091. "uc_output": "264e",
  69092. "uc_match": "264e-fe0f",
  69093. "uc_greedy": "264e-fe0f",
  69094. "shortnames": [],
  69095. "category": "symbols"
  69096. },
  69097. ":loop:": {
  69098. "uc_base": "27bf",
  69099. "uc_output": "27bf",
  69100. "uc_match": "27bf",
  69101. "uc_greedy": "27bf",
  69102. "shortnames": [],
  69103. "category": "symbols"
  69104. },
  69105. ":m:": {
  69106. "uc_base": "24c2",
  69107. "uc_output": "24c2",
  69108. "uc_match": "24c2-fe0f",
  69109. "uc_greedy": "24c2-fe0f",
  69110. "shortnames": [],
  69111. "category": "symbols"
  69112. },
  69113. ":male_sign:": {
  69114. "uc_base": "2642",
  69115. "uc_output": "2642",
  69116. "uc_match": "2642-fe0f",
  69117. "uc_greedy": "2642",
  69118. "shortnames": [],
  69119. "category": "symbols"
  69120. },
  69121. ":medical_symbol:": {
  69122. "uc_base": "2695",
  69123. "uc_output": "2695",
  69124. "uc_match": "2695-fe0f",
  69125. "uc_greedy": "2695",
  69126. "shortnames": [],
  69127. "category": "symbols"
  69128. },
  69129. ":mountain:": {
  69130. "uc_base": "26f0",
  69131. "uc_output": "26f0",
  69132. "uc_match": "26f0-fe0f",
  69133. "uc_greedy": "26f0-fe0f",
  69134. "shortnames": [],
  69135. "category": "travel"
  69136. },
  69137. ":negative_squared_cross_mark:": {
  69138. "uc_base": "274e",
  69139. "uc_output": "274e",
  69140. "uc_match": "274e",
  69141. "uc_greedy": "274e",
  69142. "shortnames": [],
  69143. "category": "symbols"
  69144. },
  69145. ":no_entry:": {
  69146. "uc_base": "26d4",
  69147. "uc_output": "26d4",
  69148. "uc_match": "26d4-fe0f",
  69149. "uc_greedy": "26d4-fe0f",
  69150. "shortnames": [],
  69151. "category": "symbols"
  69152. },
  69153. ":o:": {
  69154. "uc_base": "2b55",
  69155. "uc_output": "2b55",
  69156. "uc_match": "2b55-fe0f",
  69157. "uc_greedy": "2b55-fe0f",
  69158. "shortnames": [],
  69159. "category": "symbols"
  69160. },
  69161. ":ophiuchus:": {
  69162. "uc_base": "26ce",
  69163. "uc_output": "26ce",
  69164. "uc_match": "26ce",
  69165. "uc_greedy": "26ce",
  69166. "shortnames": [],
  69167. "category": "symbols"
  69168. },
  69169. ":orthodox_cross:": {
  69170. "uc_base": "2626",
  69171. "uc_output": "2626",
  69172. "uc_match": "2626-fe0f",
  69173. "uc_greedy": "2626",
  69174. "shortnames": [],
  69175. "category": "symbols"
  69176. },
  69177. ":part_alternation_mark:": {
  69178. "uc_base": "303d",
  69179. "uc_output": "303d",
  69180. "uc_match": "303d-fe0f",
  69181. "uc_greedy": "303d-fe0f",
  69182. "shortnames": [],
  69183. "category": "symbols"
  69184. },
  69185. ":partly_sunny:": {
  69186. "uc_base": "26c5",
  69187. "uc_output": "26c5",
  69188. "uc_match": "26c5-fe0f",
  69189. "uc_greedy": "26c5-fe0f",
  69190. "shortnames": [],
  69191. "category": "nature"
  69192. },
  69193. ":pause_button:": {
  69194. "uc_base": "23f8",
  69195. "uc_output": "23f8",
  69196. "uc_match": "23f8-fe0f",
  69197. "uc_greedy": "23f8",
  69198. "shortnames": [":double_vertical_bar:"],
  69199. "category": "symbols"
  69200. },
  69201. ":peace:": {
  69202. "uc_base": "262e",
  69203. "uc_output": "262e",
  69204. "uc_match": "262e-fe0f",
  69205. "uc_greedy": "262e",
  69206. "shortnames": [":peace_symbol:"],
  69207. "category": "symbols"
  69208. },
  69209. ":pencil2:": {
  69210. "uc_base": "270f",
  69211. "uc_output": "270f",
  69212. "uc_match": "270f-fe0f",
  69213. "uc_greedy": "270f-fe0f",
  69214. "shortnames": [],
  69215. "category": "objects"
  69216. },
  69217. ":person_bouncing_ball:": {
  69218. "uc_base": "26f9",
  69219. "uc_output": "26f9",
  69220. "uc_match": "26f9-fe0f",
  69221. "uc_greedy": "26f9-fe0f",
  69222. "shortnames": [":basketball_player:", ":person_with_ball:"],
  69223. "category": "activity"
  69224. },
  69225. ":pick:": {
  69226. "uc_base": "26cf",
  69227. "uc_output": "26cf",
  69228. "uc_match": "26cf-fe0f",
  69229. "uc_greedy": "26cf-fe0f",
  69230. "shortnames": [],
  69231. "category": "objects"
  69232. },
  69233. ":pisces:": {
  69234. "uc_base": "2653",
  69235. "uc_output": "2653",
  69236. "uc_match": "2653-fe0f",
  69237. "uc_greedy": "2653-fe0f",
  69238. "shortnames": [],
  69239. "category": "symbols"
  69240. },
  69241. ":play_pause:": {
  69242. "uc_base": "23ef",
  69243. "uc_output": "23ef",
  69244. "uc_match": "23ef-fe0f",
  69245. "uc_greedy": "23ef",
  69246. "shortnames": [],
  69247. "category": "symbols"
  69248. },
  69249. ":point_up:": {
  69250. "uc_base": "261d",
  69251. "uc_output": "261d",
  69252. "uc_match": "261d-fe0f",
  69253. "uc_greedy": "261d-fe0f",
  69254. "shortnames": [],
  69255. "category": "people"
  69256. },
  69257. ":question:": {
  69258. "uc_base": "2753",
  69259. "uc_output": "2753",
  69260. "uc_match": "2753-fe0f",
  69261. "uc_greedy": "2753-fe0f",
  69262. "shortnames": [],
  69263. "category": "symbols"
  69264. },
  69265. ":radioactive:": {
  69266. "uc_base": "2622",
  69267. "uc_output": "2622",
  69268. "uc_match": "2622-fe0f",
  69269. "uc_greedy": "2622",
  69270. "shortnames": [":radioactive_sign:"],
  69271. "category": "symbols"
  69272. },
  69273. ":raised_hand:": {
  69274. "uc_base": "270b",
  69275. "uc_output": "270b",
  69276. "uc_match": "270b",
  69277. "uc_greedy": "270b",
  69278. "shortnames": [],
  69279. "category": "people"
  69280. },
  69281. ":record_button:": {
  69282. "uc_base": "23fa",
  69283. "uc_output": "23fa",
  69284. "uc_match": "23fa-fe0f",
  69285. "uc_greedy": "23fa",
  69286. "shortnames": [],
  69287. "category": "symbols"
  69288. },
  69289. ":recycle:": {
  69290. "uc_base": "267b",
  69291. "uc_output": "267b",
  69292. "uc_match": "267b-fe0f",
  69293. "uc_greedy": "267b-fe0f",
  69294. "shortnames": [],
  69295. "category": "symbols"
  69296. },
  69297. ":registered:": {
  69298. "uc_base": "00ae",
  69299. "uc_output": "00ae",
  69300. "uc_match": "00ae-fe0f",
  69301. "uc_greedy": "00ae",
  69302. "shortnames": [],
  69303. "category": "symbols"
  69304. },
  69305. ":relaxed:": {
  69306. "uc_base": "263a",
  69307. "uc_output": "263a",
  69308. "uc_match": "263a-fe0f",
  69309. "uc_greedy": "263a-fe0f",
  69310. "shortnames": [],
  69311. "category": "people"
  69312. },
  69313. ":rewind:": {
  69314. "uc_base": "23ea",
  69315. "uc_output": "23ea",
  69316. "uc_match": "23ea-fe0f",
  69317. "uc_greedy": "23ea-fe0f",
  69318. "shortnames": [],
  69319. "category": "symbols"
  69320. },
  69321. ":sagittarius:": {
  69322. "uc_base": "2650",
  69323. "uc_output": "2650",
  69324. "uc_match": "2650-fe0f",
  69325. "uc_greedy": "2650-fe0f",
  69326. "shortnames": [],
  69327. "category": "symbols"
  69328. },
  69329. ":sailboat:": {
  69330. "uc_base": "26f5",
  69331. "uc_output": "26f5",
  69332. "uc_match": "26f5-fe0f",
  69333. "uc_greedy": "26f5-fe0f",
  69334. "shortnames": [],
  69335. "category": "travel"
  69336. },
  69337. ":scales:": {
  69338. "uc_base": "2696",
  69339. "uc_output": "2696",
  69340. "uc_match": "2696-fe0f",
  69341. "uc_greedy": "2696-fe0f",
  69342. "shortnames": [],
  69343. "category": "objects"
  69344. },
  69345. ":scissors:": {
  69346. "uc_base": "2702",
  69347. "uc_output": "2702",
  69348. "uc_match": "2702-fe0f",
  69349. "uc_greedy": "2702-fe0f",
  69350. "shortnames": [],
  69351. "category": "objects"
  69352. },
  69353. ":scorpius:": {
  69354. "uc_base": "264f",
  69355. "uc_output": "264f",
  69356. "uc_match": "264f-fe0f",
  69357. "uc_greedy": "264f-fe0f",
  69358. "shortnames": [],
  69359. "category": "symbols"
  69360. },
  69361. ":secret:": {
  69362. "uc_base": "3299",
  69363. "uc_output": "3299",
  69364. "uc_match": "3299-fe0f",
  69365. "uc_greedy": "3299-fe0f",
  69366. "shortnames": [],
  69367. "category": "symbols"
  69368. },
  69369. ":shamrock:": {
  69370. "uc_base": "2618",
  69371. "uc_output": "2618",
  69372. "uc_match": "2618-fe0f",
  69373. "uc_greedy": "2618-fe0f",
  69374. "shortnames": [],
  69375. "category": "nature"
  69376. },
  69377. ":shinto_shrine:": {
  69378. "uc_base": "26e9",
  69379. "uc_output": "26e9",
  69380. "uc_match": "26e9-fe0f",
  69381. "uc_greedy": "26e9-fe0f",
  69382. "shortnames": [],
  69383. "category": "travel"
  69384. },
  69385. ":skier:": {
  69386. "uc_base": "26f7",
  69387. "uc_output": "26f7",
  69388. "uc_match": "26f7-fe0f",
  69389. "uc_greedy": "26f7-fe0f",
  69390. "shortnames": [],
  69391. "category": "activity"
  69392. },
  69393. ":skull_crossbones:": {
  69394. "uc_base": "2620",
  69395. "uc_output": "2620",
  69396. "uc_match": "2620-fe0f",
  69397. "uc_greedy": "2620-fe0f",
  69398. "shortnames": [":skull_and_crossbones:"],
  69399. "category": "people"
  69400. },
  69401. ":snowflake:": {
  69402. "uc_base": "2744",
  69403. "uc_output": "2744",
  69404. "uc_match": "2744-fe0f",
  69405. "uc_greedy": "2744-fe0f",
  69406. "shortnames": [],
  69407. "category": "nature"
  69408. },
  69409. ":snowman2:": {
  69410. "uc_base": "2603",
  69411. "uc_output": "2603",
  69412. "uc_match": "2603-fe0f",
  69413. "uc_greedy": "2603-fe0f",
  69414. "shortnames": [],
  69415. "category": "nature"
  69416. },
  69417. ":snowman:": {
  69418. "uc_base": "26c4",
  69419. "uc_output": "26c4",
  69420. "uc_match": "26c4-fe0f",
  69421. "uc_greedy": "26c4-fe0f",
  69422. "shortnames": [],
  69423. "category": "nature"
  69424. },
  69425. ":soccer:": {
  69426. "uc_base": "26bd",
  69427. "uc_output": "26bd",
  69428. "uc_match": "26bd-fe0f",
  69429. "uc_greedy": "26bd-fe0f",
  69430. "shortnames": [],
  69431. "category": "activity"
  69432. },
  69433. ":spades:": {
  69434. "uc_base": "2660",
  69435. "uc_output": "2660",
  69436. "uc_match": "2660-fe0f",
  69437. "uc_greedy": "2660-fe0f",
  69438. "shortnames": [],
  69439. "category": "symbols"
  69440. },
  69441. ":sparkle:": {
  69442. "uc_base": "2747",
  69443. "uc_output": "2747",
  69444. "uc_match": "2747-fe0f",
  69445. "uc_greedy": "2747-fe0f",
  69446. "shortnames": [],
  69447. "category": "symbols"
  69448. },
  69449. ":sparkles:": {
  69450. "uc_base": "2728",
  69451. "uc_output": "2728",
  69452. "uc_match": "2728",
  69453. "uc_greedy": "2728",
  69454. "shortnames": [],
  69455. "category": "nature"
  69456. },
  69457. ":star:": {
  69458. "uc_base": "2b50",
  69459. "uc_output": "2b50",
  69460. "uc_match": "2b50-fe0f",
  69461. "uc_greedy": "2b50-fe0f",
  69462. "shortnames": [],
  69463. "category": "nature"
  69464. },
  69465. ":star_and_crescent:": {
  69466. "uc_base": "262a",
  69467. "uc_output": "262a",
  69468. "uc_match": "262a-fe0f",
  69469. "uc_greedy": "262a",
  69470. "shortnames": [],
  69471. "category": "symbols"
  69472. },
  69473. ":star_of_david:": {
  69474. "uc_base": "2721",
  69475. "uc_output": "2721",
  69476. "uc_match": "2721-fe0f",
  69477. "uc_greedy": "2721",
  69478. "shortnames": [],
  69479. "category": "symbols"
  69480. },
  69481. ":stop_button:": {
  69482. "uc_base": "23f9",
  69483. "uc_output": "23f9",
  69484. "uc_match": "23f9-fe0f",
  69485. "uc_greedy": "23f9",
  69486. "shortnames": [],
  69487. "category": "symbols"
  69488. },
  69489. ":stopwatch:": {
  69490. "uc_base": "23f1",
  69491. "uc_output": "23f1",
  69492. "uc_match": "23f1-fe0f",
  69493. "uc_greedy": "23f1-fe0f",
  69494. "shortnames": [],
  69495. "category": "objects"
  69496. },
  69497. ":sunny:": {
  69498. "uc_base": "2600",
  69499. "uc_output": "2600",
  69500. "uc_match": "2600-fe0f",
  69501. "uc_greedy": "2600-fe0f",
  69502. "shortnames": [],
  69503. "category": "nature"
  69504. },
  69505. ":taurus:": {
  69506. "uc_base": "2649",
  69507. "uc_output": "2649",
  69508. "uc_match": "2649-fe0f",
  69509. "uc_greedy": "2649-fe0f",
  69510. "shortnames": [],
  69511. "category": "symbols"
  69512. },
  69513. ":telephone:": {
  69514. "uc_base": "260e",
  69515. "uc_output": "260e",
  69516. "uc_match": "260e-fe0f",
  69517. "uc_greedy": "260e-fe0f",
  69518. "shortnames": [],
  69519. "category": "objects"
  69520. },
  69521. ":tent:": {
  69522. "uc_base": "26fa",
  69523. "uc_output": "26fa",
  69524. "uc_match": "26fa-fe0f",
  69525. "uc_greedy": "26fa-fe0f",
  69526. "shortnames": [],
  69527. "category": "travel"
  69528. },
  69529. ":thunder_cloud_rain:": {
  69530. "uc_base": "26c8",
  69531. "uc_output": "26c8",
  69532. "uc_match": "26c8-fe0f",
  69533. "uc_greedy": "26c8-fe0f",
  69534. "shortnames": [":thunder_cloud_and_rain:"],
  69535. "category": "nature"
  69536. },
  69537. ":timer:": {
  69538. "uc_base": "23f2",
  69539. "uc_output": "23f2",
  69540. "uc_match": "23f2-fe0f",
  69541. "uc_greedy": "23f2-fe0f",
  69542. "shortnames": [":timer_clock:"],
  69543. "category": "objects"
  69544. },
  69545. ":tm:": {
  69546. "uc_base": "2122",
  69547. "uc_output": "2122",
  69548. "uc_match": "2122-fe0f",
  69549. "uc_greedy": "2122",
  69550. "shortnames": [],
  69551. "category": "symbols"
  69552. },
  69553. ":track_next:": {
  69554. "uc_base": "23ed",
  69555. "uc_output": "23ed",
  69556. "uc_match": "23ed-fe0f",
  69557. "uc_greedy": "23ed",
  69558. "shortnames": [":next_track:"],
  69559. "category": "symbols"
  69560. },
  69561. ":track_previous:": {
  69562. "uc_base": "23ee",
  69563. "uc_output": "23ee",
  69564. "uc_match": "23ee-fe0f",
  69565. "uc_greedy": "23ee",
  69566. "shortnames": [":previous_track:"],
  69567. "category": "symbols"
  69568. },
  69569. ":umbrella2:": {
  69570. "uc_base": "2602",
  69571. "uc_output": "2602",
  69572. "uc_match": "2602-fe0f",
  69573. "uc_greedy": "2602-fe0f",
  69574. "shortnames": [],
  69575. "category": "nature"
  69576. },
  69577. ":umbrella:": {
  69578. "uc_base": "2614",
  69579. "uc_output": "2614",
  69580. "uc_match": "2614-fe0f",
  69581. "uc_greedy": "2614-fe0f",
  69582. "shortnames": [],
  69583. "category": "nature"
  69584. },
  69585. ":urn:": {
  69586. "uc_base": "26b1",
  69587. "uc_output": "26b1",
  69588. "uc_match": "26b1-fe0f",
  69589. "uc_greedy": "26b1-fe0f",
  69590. "shortnames": [":funeral_urn:"],
  69591. "category": "objects"
  69592. },
  69593. ":v:": {
  69594. "uc_base": "270c",
  69595. "uc_output": "270c",
  69596. "uc_match": "270c-fe0f",
  69597. "uc_greedy": "270c-fe0f",
  69598. "shortnames": [],
  69599. "category": "people"
  69600. },
  69601. ":virgo:": {
  69602. "uc_base": "264d",
  69603. "uc_output": "264d",
  69604. "uc_match": "264d-fe0f",
  69605. "uc_greedy": "264d-fe0f",
  69606. "shortnames": [],
  69607. "category": "symbols"
  69608. },
  69609. ":warning:": {
  69610. "uc_base": "26a0",
  69611. "uc_output": "26a0",
  69612. "uc_match": "26a0-fe0f",
  69613. "uc_greedy": "26a0",
  69614. "shortnames": [],
  69615. "category": "symbols"
  69616. },
  69617. ":watch:": {
  69618. "uc_base": "231a",
  69619. "uc_output": "231a",
  69620. "uc_match": "231a-fe0f",
  69621. "uc_greedy": "231a-fe0f",
  69622. "shortnames": [],
  69623. "category": "objects"
  69624. },
  69625. ":wavy_dash:": {
  69626. "uc_base": "3030",
  69627. "uc_output": "3030",
  69628. "uc_match": "3030-fe0f",
  69629. "uc_greedy": "3030",
  69630. "shortnames": [],
  69631. "category": "symbols"
  69632. },
  69633. ":wheel_of_dharma:": {
  69634. "uc_base": "2638",
  69635. "uc_output": "2638",
  69636. "uc_match": "2638-fe0f",
  69637. "uc_greedy": "2638",
  69638. "shortnames": [],
  69639. "category": "symbols"
  69640. },
  69641. ":wheelchair:": {
  69642. "uc_base": "267f",
  69643. "uc_output": "267f",
  69644. "uc_match": "267f-fe0f",
  69645. "uc_greedy": "267f-fe0f",
  69646. "shortnames": [],
  69647. "category": "symbols"
  69648. },
  69649. ":white_check_mark:": {
  69650. "uc_base": "2705",
  69651. "uc_output": "2705",
  69652. "uc_match": "2705",
  69653. "uc_greedy": "2705",
  69654. "shortnames": [],
  69655. "category": "symbols"
  69656. },
  69657. ":white_circle:": {
  69658. "uc_base": "26aa",
  69659. "uc_output": "26aa",
  69660. "uc_match": "26aa-fe0f",
  69661. "uc_greedy": "26aa-fe0f",
  69662. "shortnames": [],
  69663. "category": "symbols"
  69664. },
  69665. ":white_large_square:": {
  69666. "uc_base": "2b1c",
  69667. "uc_output": "2b1c",
  69668. "uc_match": "2b1c-fe0f",
  69669. "uc_greedy": "2b1c-fe0f",
  69670. "shortnames": [],
  69671. "category": "symbols"
  69672. },
  69673. ":white_medium_small_square:": {
  69674. "uc_base": "25fd",
  69675. "uc_output": "25fd",
  69676. "uc_match": "25fd-fe0f",
  69677. "uc_greedy": "25fd-fe0f",
  69678. "shortnames": [],
  69679. "category": "symbols"
  69680. },
  69681. ":white_medium_square:": {
  69682. "uc_base": "25fb",
  69683. "uc_output": "25fb",
  69684. "uc_match": "25fb-fe0f",
  69685. "uc_greedy": "25fb",
  69686. "shortnames": [],
  69687. "category": "symbols"
  69688. },
  69689. ":white_small_square:": {
  69690. "uc_base": "25ab",
  69691. "uc_output": "25ab",
  69692. "uc_match": "25ab-fe0f",
  69693. "uc_greedy": "25ab",
  69694. "shortnames": [],
  69695. "category": "symbols"
  69696. },
  69697. ":writing_hand:": {
  69698. "uc_base": "270d",
  69699. "uc_output": "270d",
  69700. "uc_match": "270d-fe0f",
  69701. "uc_greedy": "270d-fe0f",
  69702. "shortnames": [],
  69703. "category": "people"
  69704. },
  69705. ":x:": {
  69706. "uc_base": "274c",
  69707. "uc_output": "274c",
  69708. "uc_match": "274c",
  69709. "uc_greedy": "274c",
  69710. "shortnames": [],
  69711. "category": "symbols"
  69712. },
  69713. ":yin_yang:": {
  69714. "uc_base": "262f",
  69715. "uc_output": "262f",
  69716. "uc_match": "262f-fe0f",
  69717. "uc_greedy": "262f",
  69718. "shortnames": [],
  69719. "category": "symbols"
  69720. },
  69721. ":zap:": {
  69722. "uc_base": "26a1",
  69723. "uc_output": "26a1",
  69724. "uc_match": "26a1-fe0f",
  69725. "uc_greedy": "26a1-fe0f",
  69726. "shortnames": [],
  69727. "category": "nature"
  69728. }
  69729. };
  69730. var ascii_list = {
  69731. '*\\0/*': '1f646',
  69732. '*\\O/*': '1f646',
  69733. '-___-': '1f611',
  69734. ':\'-)': '1f602',
  69735. '\':-)': '1f605',
  69736. '\':-D': '1f605',
  69737. '>:-)': '1f606',
  69738. '\':-(': '1f613',
  69739. '>:-(': '1f620',
  69740. ':\'-(': '1f622',
  69741. 'O:-)': '1f607',
  69742. '0:-3': '1f607',
  69743. '0:-)': '1f607',
  69744. '0;^)': '1f607',
  69745. 'O;-)': '1f607',
  69746. '0;-)': '1f607',
  69747. 'O:-3': '1f607',
  69748. '-__-': '1f611',
  69749. ':-Þ': '1f61b',
  69750. '</3': '1f494',
  69751. ':\')': '1f602',
  69752. ':-D': '1f603',
  69753. '\':)': '1f605',
  69754. '\'=)': '1f605',
  69755. '\':D': '1f605',
  69756. '\'=D': '1f605',
  69757. '>:)': '1f606',
  69758. '>;)': '1f606',
  69759. '>=)': '1f606',
  69760. ';-)': '1f609',
  69761. '*-)': '1f609',
  69762. ';-]': '1f609',
  69763. ';^)': '1f609',
  69764. '\':(': '1f613',
  69765. '\'=(': '1f613',
  69766. ':-*': '1f618',
  69767. ':^*': '1f618',
  69768. '>:P': '1f61c',
  69769. 'X-P': '1f61c',
  69770. '>:[': '1f61e',
  69771. ':-(': '1f61e',
  69772. ':-[': '1f61e',
  69773. '>:(': '1f620',
  69774. ':\'(': '1f622',
  69775. ';-(': '1f622',
  69776. '>.<': '1f623',
  69777. '#-)': '1f635',
  69778. '%-)': '1f635',
  69779. 'X-)': '1f635',
  69780. '\\0/': '1f646',
  69781. '\\O/': '1f646',
  69782. '0:3': '1f607',
  69783. '0:)': '1f607',
  69784. 'O:)': '1f607',
  69785. 'O=)': '1f607',
  69786. 'O:3': '1f607',
  69787. 'B-)': '1f60e',
  69788. '8-)': '1f60e',
  69789. 'B-D': '1f60e',
  69790. '8-D': '1f60e',
  69791. '-_-': '1f611',
  69792. '>:\\': '1f615',
  69793. '>:/': '1f615',
  69794. ':-/': '1f615',
  69795. ':-.': '1f615',
  69796. ':-P': '1f61b',
  69797. ':Þ': '1f61b',
  69798. ':-b': '1f61b',
  69799. ':-O': '1f62e',
  69800. 'O_O': '1f62e',
  69801. '>:O': '1f62e',
  69802. ':-X': '1f636',
  69803. ':-#': '1f636',
  69804. ':-)': '1f642',
  69805. '(y)': '1f44d',
  69806. '<3': '2764',
  69807. ':D': '1f603',
  69808. '=D': '1f603',
  69809. ';)': '1f609',
  69810. '*)': '1f609',
  69811. ';]': '1f609',
  69812. ';D': '1f609',
  69813. ':*': '1f618',
  69814. '=*': '1f618',
  69815. ':(': '1f61e',
  69816. ':[': '1f61e',
  69817. '=(': '1f61e',
  69818. ':@': '1f620',
  69819. ';(': '1f622',
  69820. 'D:': '1f628',
  69821. ':$': '1f633',
  69822. '=$': '1f633',
  69823. '#)': '1f635',
  69824. '%)': '1f635',
  69825. 'X)': '1f635',
  69826. 'B)': '1f60e',
  69827. '8)': '1f60e',
  69828. ':/': '1f615',
  69829. ':\\': '1f615',
  69830. '=/': '1f615',
  69831. '=\\': '1f615',
  69832. ':L': '1f615',
  69833. '=L': '1f615',
  69834. ':P': '1f61b',
  69835. '=P': '1f61b',
  69836. ':b': '1f61b',
  69837. ':O': '1f62e',
  69838. ':X': '1f636',
  69839. ':#': '1f636',
  69840. '=X': '1f636',
  69841. '=#': '1f636',
  69842. ':)': '1f642',
  69843. '=]': '1f642',
  69844. '=)': '1f642',
  69845. ':]': '1f642'
  69846. };
  69847. var shortnames = [];
  69848. for (var emoji in emoji_list) {
  69849. if (!Object.prototype.hasOwnProperty.call(emoji_list, emoji) || emoji === '') continue;
  69850. shortnames.push(emoji.replace(/[+]/g, "\\$&"));
  69851. for (var i = 0; i < emoji_list[emoji].shortnames.length; i++) {
  69852. shortnames.push(emoji_list[emoji].shortnames[i].replace(/[+]/g, "\\$&"));
  69853. }
  69854. }
  69855. shortnames = shortnames.join('|');
  69856. var SHORTNAMES_REGEX = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(" + shortnames + ")", "gi");
  69857. var ASCII_REGEX = '(\\*\\\\0\\/\\*|\\*\\\\O\\/\\*|\\-___\\-|\\:\'\\-\\)|\'\\:\\-\\)|\'\\:\\-D|\\>\\:\\-\\)|>\\:\\-\\)|\'\\:\\-\\(|\\>\\:\\-\\(|>\\:\\-\\(|\\:\'\\-\\(|O\\:\\-\\)|0\\:\\-3|0\\:\\-\\)|0;\\^\\)|O;\\-\\)|0;\\-\\)|O\\:\\-3|\\-__\\-|\\:\\-Þ|\\:\\-Þ|\\<\\/3|<\\/3|\\:\'\\)|\\:\\-D|\'\\:\\)|\'\\=\\)|\'\\:D|\'\\=D|\\>\\:\\)|>\\:\\)|\\>;\\)|>;\\)|\\>\\=\\)|>\\=\\)|;\\-\\)|\\*\\-\\)|;\\-\\]|;\\^\\)|\'\\:\\(|\'\\=\\(|\\:\\-\\*|\\:\\^\\*|\\>\\:P|>\\:P|X\\-P|\\>\\:\\[|>\\:\\[|\\:\\-\\(|\\:\\-\\[|\\>\\:\\(|>\\:\\(|\\:\'\\(|;\\-\\(|\\>\\.\\<|>\\.<|#\\-\\)|%\\-\\)|X\\-\\)|\\\\0\\/|\\\\O\\/|0\\:3|0\\:\\)|O\\:\\)|O\\=\\)|O\\:3|B\\-\\)|8\\-\\)|B\\-D|8\\-D|\\-_\\-|\\>\\:\\\\|>\\:\\\\|\\>\\:\\/|>\\:\\/|\\:\\-\\/|\\:\\-\\.|\\:\\-P|\\:Þ|\\:Þ|\\:\\-b|\\:\\-O|O_O|\\>\\:O|>\\:O|\\:\\-X|\\:\\-#|\\:\\-\\)|\\(y\\)|\\<3|<3|\\:D|\\=D|;\\)|\\*\\)|;\\]|;D|\\:\\*|\\=\\*|\\:\\(|\\:\\[|\\=\\(|\\:@|;\\(|D\\:|\\:\\$|\\=\\$|#\\)|%\\)|X\\)|B\\)|8\\)|\\:\\/|\\:\\\\|\\=\\/|\\=\\\\|\\:L|\\=L|\\:P|\\=P|\\:b|\\:O|\\:X|\\:#|\\=X|\\=#|\\:\\)|\\=\\]|\\=\\)|\\:\\])';
  69858. var ASCII_REPLACE_REGEX = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)" + ASCII_REGEX + "(?=\\s|$|[!,.?]))", "gi");
  69859. function convert(unicode) {
  69860. /* For converting unicode code points and code pairs
  69861. * to their respective characters
  69862. */
  69863. if (unicode.indexOf("-") > -1) {
  69864. var parts = [],
  69865. s = unicode.split('-');
  69866. for (var _i = 0; _i < s.length; _i++) {
  69867. var part = parseInt(s[_i], 16);
  69868. if (part >= 0x10000 && part <= 0x10FFFF) {
  69869. var hi = Math.floor((part - 0x10000) / 0x400) + 0xD800;
  69870. var lo = (part - 0x10000) % 0x400 + 0xDC00;
  69871. part = String.fromCharCode(hi) + String.fromCharCode(lo);
  69872. } else {
  69873. part = String.fromCharCode(part);
  69874. }
  69875. parts.push(part);
  69876. }
  69877. return parts.join('');
  69878. }
  69879. return twemoji.default.convert.fromCodePoint(unicode);
  69880. }
  69881. u.shortnameToUnicode = function (str) {
  69882. /* will output unicode from shortname
  69883. * useful for sending emojis back to mobile devices
  69884. */
  69885. // Replace regular shortnames first
  69886. str = str.replace(SHORTNAMES_REGEX, function (shortname) {
  69887. if (typeof shortname === 'undefined' || shortname === '' || !(shortname in emoji_list)) {
  69888. // if the shortname doesnt exist just return the entire matchhju
  69889. return shortname;
  69890. }
  69891. var unicode = emoji_list[shortname].uc_output.toUpperCase();
  69892. return convert(unicode);
  69893. }); // Also replace ASCII smileys
  69894. str = str.replace(ASCII_REPLACE_REGEX, function (entire, m1, m2, m3) {
  69895. if (typeof m3 === 'undefined' || m3 === '' || !(u.unescapeHTML(m3) in ascii_list)) {
  69896. // if the ascii doesnt exist just return the entire match
  69897. return entire;
  69898. }
  69899. m3 = u.unescapeHTML(m3);
  69900. var unicode = ascii_list[m3].toUpperCase();
  69901. return m2 + convert(unicode);
  69902. });
  69903. return str;
  69904. };
  69905. u.addEmoji = function (_converse, text) {
  69906. if (_converse.use_system_emojis) {
  69907. return u.shortnameToUnicode(text);
  69908. } else {
  69909. return twemoji.default.parse(text);
  69910. }
  69911. };
  69912. u.getEmojisByCategory = function (_converse) {
  69913. /* Return a dict of emojis with the categories as keys and
  69914. * lists of emojis in that category as values.
  69915. */
  69916. if (_.isUndefined(_converse.emojis_by_category)) {
  69917. var emojis = _.values(_.mapValues(emoji_list, function (value, key, o) {
  69918. value._shortname = key;
  69919. return value;
  69920. }));
  69921. var tones = [':tone1:', ':tone2:', ':tone3:', ':tone4:', ':tone5:'];
  69922. var excluded = [':kiss_ww:', ':kiss_mm:', ':kiss_woman_man:'];
  69923. var excluded_substrings = [':woman', ':man', ':women_', ':men_', '_man_', '_woman_', '_woman:', '_man:'];
  69924. var excluded_categories = ['modifier', 'regional'];
  69925. var categories = _.difference(_.uniq(_.map(emojis, _.partial(_.get, _, 'category'))), excluded_categories);
  69926. var emojis_by_category = {};
  69927. _.forEach(categories, function (cat) {
  69928. var list = _.sortBy(_.filter(emojis, ['category', cat]), ['uc_base']);
  69929. list = _.filter(list, function (item) {
  69930. return !_.includes(_.concat(tones, excluded), item._shortname) && !_.some(excluded_substrings, _.partial(_.includes, item._shortname));
  69931. });
  69932. if (cat === 'people') {
  69933. var idx = _.findIndex(list, ['uc_base', '1f600']);
  69934. list = _.union(_.slice(list, idx), _.slice(list, 0, idx + 1));
  69935. } else if (cat === 'activity') {
  69936. list = _.union(_.slice(list, 27 - 1), _.slice(list, 0, 27));
  69937. } else if (cat === 'objects') {
  69938. list = _.union(_.slice(list, 24 - 1), _.slice(list, 0, 24));
  69939. } else if (cat === 'travel') {
  69940. list = _.union(_.slice(list, 17 - 1), _.slice(list, 0, 17));
  69941. } else if (cat === 'symbols') {
  69942. list = _.union(_.slice(list, 60 - 1), _.slice(list, 0, 60));
  69943. }
  69944. emojis_by_category[cat] = list;
  69945. });
  69946. _converse.emojis_by_category = emojis_by_category;
  69947. }
  69948. return _converse.emojis_by_category;
  69949. };
  69950. u.getTonedEmojis = function (_converse) {
  69951. _converse.toned_emojis = _.uniq(_.map(_.filter(u.getEmojisByCategory(_converse).people, function (person) {
  69952. return _.includes(person._shortname, '_tone');
  69953. }), function (person) {
  69954. return person._shortname.replace(/_tone[1-5]/, '');
  69955. }));
  69956. return _converse.toned_emojis;
  69957. };
  69958. u.getEmojiRenderer = function (_converse) {
  69959. return _converse.use_system_emojis ? u.shortnameToUnicode : _.flow(u.shortnameToUnicode, twemoji.default.parse);
  69960. };
  69961. return u;
  69962. });
  69963. /***/ }),
  69964. /***/ "./src/utils/form.js":
  69965. /*!***************************!*\
  69966. !*** ./src/utils/form.js ***!
  69967. \***************************/
  69968. /*! no static exports found */
  69969. /***/ (function(module, exports, __webpack_require__) {
  69970. "use strict";
  69971. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  69972. // Converse.js (A browser based XMPP chat client)
  69973. // http://conversejs.org
  69974. //
  69975. // This is the utilities module.
  69976. //
  69977. // Copyright (c) 2013-2018, Jan-Carel Brand <jc@opkode.com>
  69978. // Licensed under the Mozilla Public License (MPLv2)
  69979. //
  69980. /*global define, escape, Jed */
  69981. (function (root, factory) {
  69982. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! utils/core */ "./src/utils/core.js"), __webpack_require__(/*! templates/field.html */ "./src/templates/field.html"), __webpack_require__(/*! templates/select_option.html */ "./src/templates/select_option.html"), __webpack_require__(/*! templates/form_select.html */ "./src/templates/form_select.html"), __webpack_require__(/*! templates/form_textarea.html */ "./src/templates/form_textarea.html"), __webpack_require__(/*! templates/form_checkbox.html */ "./src/templates/form_checkbox.html"), __webpack_require__(/*! templates/form_username.html */ "./src/templates/form_username.html"), __webpack_require__(/*! templates/form_input.html */ "./src/templates/form_input.html"), __webpack_require__(/*! templates/form_captcha.html */ "./src/templates/form_captcha.html"), __webpack_require__(/*! templates/form_url.html */ "./src/templates/form_url.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  69983. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  69984. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  69985. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  69986. })(void 0, function (sizzle, _, u, tpl_field, tpl_select_option, tpl_form_select, tpl_form_textarea, tpl_form_checkbox, tpl_form_username, tpl_form_input, tpl_form_captcha, tpl_form_url) {
  69987. "use strict";
  69988. var XFORM_TYPE_MAP = {
  69989. 'text-private': 'password',
  69990. 'text-single': 'text',
  69991. 'fixed': 'label',
  69992. 'boolean': 'checkbox',
  69993. 'hidden': 'hidden',
  69994. 'jid-multi': 'textarea',
  69995. 'list-single': 'dropdown',
  69996. 'list-multi': 'dropdown'
  69997. };
  69998. u.webForm2xForm = function (field) {
  69999. /* Takes an HTML DOM and turns it into an XForm field.
  70000. *
  70001. * Parameters:
  70002. * (DOMElement) field - the field to convert
  70003. */
  70004. var value;
  70005. if (field.getAttribute('type') === 'checkbox') {
  70006. value = field.checked && 1 || 0;
  70007. } else if (field.tagName == "TEXTAREA") {
  70008. value = _.filter(field.value.split('\n'), _.trim);
  70009. } else if (field.tagName == "SELECT") {
  70010. value = u.getSelectValues(field);
  70011. } else {
  70012. value = field.value;
  70013. }
  70014. return u.stringToNode(tpl_field({
  70015. 'name': field.getAttribute('name'),
  70016. 'value': value
  70017. }));
  70018. };
  70019. u.xForm2webForm = function (field, stanza, domain) {
  70020. /* Takes a field in XMPP XForm (XEP-004: Data Forms) format
  70021. * and turns it into an HTML field.
  70022. *
  70023. * Returns either text or a DOM element (which is not ideal, but fine
  70024. * for now).
  70025. *
  70026. * Parameters:
  70027. * (XMLElement) field - the field to convert
  70028. */
  70029. if (field.getAttribute('type')) {
  70030. if (field.getAttribute('type') === 'list-single' || field.getAttribute('type') === 'list-multi') {
  70031. var values = _.map(u.queryChildren(field, 'value'), _.partial(_.get, _, 'textContent'));
  70032. var options = _.map(u.queryChildren(field, 'option'), function (option) {
  70033. var value = _.get(option.querySelector('value'), 'textContent');
  70034. return tpl_select_option({
  70035. 'value': value,
  70036. 'label': option.getAttribute('label'),
  70037. 'selected': _.includes(values, value),
  70038. 'required': !_.isNil(field.querySelector('required'))
  70039. });
  70040. });
  70041. return tpl_form_select({
  70042. 'id': u.getUniqueId(),
  70043. 'name': field.getAttribute('var'),
  70044. 'label': field.getAttribute('label'),
  70045. 'options': options.join(''),
  70046. 'multiple': field.getAttribute('type') === 'list-multi',
  70047. 'required': !_.isNil(field.querySelector('required'))
  70048. });
  70049. } else if (field.getAttribute('type') === 'fixed') {
  70050. var text = _.get(field.querySelector('value'), 'textContent');
  70051. return '<p class="form-help">' + text + '</p>';
  70052. } else if (field.getAttribute('type') === 'jid-multi') {
  70053. return tpl_form_textarea({
  70054. 'name': field.getAttribute('var'),
  70055. 'label': field.getAttribute('label') || '',
  70056. 'value': _.get(field.querySelector('value'), 'textContent'),
  70057. 'required': !_.isNil(field.querySelector('required'))
  70058. });
  70059. } else if (field.getAttribute('type') === 'boolean') {
  70060. return tpl_form_checkbox({
  70061. 'id': u.getUniqueId(),
  70062. 'name': field.getAttribute('var'),
  70063. 'label': field.getAttribute('label') || '',
  70064. 'checked': _.get(field.querySelector('value'), 'textContent') === "1" && 'checked="1"' || '',
  70065. 'required': !_.isNil(field.querySelector('required'))
  70066. });
  70067. } else if (field.getAttribute('var') === 'url') {
  70068. return tpl_form_url({
  70069. 'label': field.getAttribute('label') || '',
  70070. 'value': _.get(field.querySelector('value'), 'textContent')
  70071. });
  70072. } else if (field.getAttribute('var') === 'username') {
  70073. return tpl_form_username({
  70074. 'domain': ' @' + domain,
  70075. 'name': field.getAttribute('var'),
  70076. 'type': XFORM_TYPE_MAP[field.getAttribute('type')],
  70077. 'label': field.getAttribute('label') || '',
  70078. 'value': _.get(field.querySelector('value'), 'textContent'),
  70079. 'required': !_.isNil(field.querySelector('required'))
  70080. });
  70081. } else {
  70082. return tpl_form_input({
  70083. 'id': u.getUniqueId(),
  70084. 'label': field.getAttribute('label') || '',
  70085. 'name': field.getAttribute('var'),
  70086. 'placeholder': null,
  70087. 'required': !_.isNil(field.querySelector('required')),
  70088. 'type': XFORM_TYPE_MAP[field.getAttribute('type')],
  70089. 'value': _.get(field.querySelector('value'), 'textContent')
  70090. });
  70091. }
  70092. } else {
  70093. if (field.getAttribute('var') === 'ocr') {
  70094. // Captcha
  70095. var uri = field.querySelector('uri');
  70096. var el = sizzle('data[cid="' + uri.textContent.replace(/^cid:/, '') + '"]', stanza)[0];
  70097. return tpl_form_captcha({
  70098. 'label': field.getAttribute('label'),
  70099. 'name': field.getAttribute('var'),
  70100. 'data': _.get(el, 'textContent'),
  70101. 'type': uri.getAttribute('type'),
  70102. 'required': !_.isNil(field.querySelector('required'))
  70103. });
  70104. }
  70105. }
  70106. };
  70107. return u;
  70108. });
  70109. /***/ }),
  70110. /***/ "./src/utils/muc.js":
  70111. /*!**************************!*\
  70112. !*** ./src/utils/muc.js ***!
  70113. \**************************/
  70114. /*! no static exports found */
  70115. /***/ (function(module, exports, __webpack_require__) {
  70116. "use strict";
  70117. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  70118. // Converse.js (A browser based XMPP chat client)
  70119. // http://conversejs.org
  70120. //
  70121. // This is the utilities module.
  70122. //
  70123. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  70124. // Licensed under the Mozilla Public License (MPLv2)
  70125. //
  70126. /*global define, escape, Jed */
  70127. (function (root, factory) {
  70128. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! utils/core */ "./src/utils/core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  70129. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  70130. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  70131. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  70132. })(void 0, function (converse, u) {
  70133. "use strict";
  70134. var _converse$env = converse.env,
  70135. Strophe = _converse$env.Strophe,
  70136. sizzle = _converse$env.sizzle,
  70137. _ = _converse$env._;
  70138. u.computeAffiliationsDelta = function computeAffiliationsDelta(exclude_existing, remove_absentees, new_list, old_list) {
  70139. /* Given two lists of objects with 'jid', 'affiliation' and
  70140. * 'reason' properties, return a new list containing
  70141. * those objects that are new, changed or removed
  70142. * (depending on the 'remove_absentees' boolean).
  70143. *
  70144. * The affiliations for new and changed members stay the
  70145. * same, for removed members, the affiliation is set to 'none'.
  70146. *
  70147. * The 'reason' property is not taken into account when
  70148. * comparing whether affiliations have been changed.
  70149. *
  70150. * Parameters:
  70151. * (Boolean) exclude_existing: Indicates whether JIDs from
  70152. * the new list which are also in the old list
  70153. * (regardless of affiliation) should be excluded
  70154. * from the delta. One reason to do this
  70155. * would be when you want to add a JID only if it
  70156. * doesn't have *any* existing affiliation at all.
  70157. * (Boolean) remove_absentees: Indicates whether JIDs
  70158. * from the old list which are not in the new list
  70159. * should be considered removed and therefore be
  70160. * included in the delta with affiliation set
  70161. * to 'none'.
  70162. * (Array) new_list: Array containing the new affiliations
  70163. * (Array) old_list: Array containing the old affiliations
  70164. */
  70165. var new_jids = _.map(new_list, 'jid');
  70166. var old_jids = _.map(old_list, 'jid'); // Get the new affiliations
  70167. var delta = _.map(_.difference(new_jids, old_jids), function (jid) {
  70168. return new_list[_.indexOf(new_jids, jid)];
  70169. });
  70170. if (!exclude_existing) {
  70171. // Get the changed affiliations
  70172. delta = delta.concat(_.filter(new_list, function (item) {
  70173. var idx = _.indexOf(old_jids, item.jid);
  70174. if (idx >= 0) {
  70175. return item.affiliation !== old_list[idx].affiliation;
  70176. }
  70177. return false;
  70178. }));
  70179. }
  70180. if (remove_absentees) {
  70181. // Get the removed affiliations
  70182. delta = delta.concat(_.map(_.difference(old_jids, new_jids), function (jid) {
  70183. return {
  70184. 'jid': jid,
  70185. 'affiliation': 'none'
  70186. };
  70187. }));
  70188. }
  70189. return delta;
  70190. };
  70191. u.parseMemberListIQ = function parseMemberListIQ(iq) {
  70192. /* Given an IQ stanza with a member list, create an array of member objects.
  70193. */
  70194. return _.map(sizzle("query[xmlns=\"".concat(Strophe.NS.MUC_ADMIN, "\"] item"), iq), function (item) {
  70195. var data = {
  70196. 'affiliation': item.getAttribute('affiliation')
  70197. };
  70198. var jid = item.getAttribute('jid');
  70199. if (u.isValidJID(jid)) {
  70200. data['jid'] = jid;
  70201. } else {
  70202. // XXX: Prosody sends nick for the jid attribute value
  70203. // Perhaps for anonymous room?
  70204. data['nick'] = jid;
  70205. }
  70206. var nick = item.getAttribute('nick');
  70207. if (nick) {
  70208. data['nick'] = nick;
  70209. }
  70210. var role = item.getAttribute('role');
  70211. if (role) {
  70212. data['role'] = nick;
  70213. }
  70214. return data;
  70215. });
  70216. };
  70217. });
  70218. /***/ }),
  70219. /***/ "awesomplete":
  70220. /*!******************************!*\
  70221. !*** external "awesomplete" ***!
  70222. \******************************/
  70223. /*! no static exports found */
  70224. /***/ (function(module, exports) {
  70225. module.exports = awesomplete;
  70226. /***/ }),
  70227. /***/ "backbone.browserStorage":
  70228. /*!******************************************!*\
  70229. !*** external "backbone.browserStorage" ***!
  70230. \******************************************/
  70231. /*! no static exports found */
  70232. /***/ (function(module, exports) {
  70233. module.exports = backbone.browserStorage;
  70234. /***/ }),
  70235. /***/ "backbone.overview":
  70236. /*!************************************!*\
  70237. !*** external "backbone.overview" ***!
  70238. \************************************/
  70239. /*! no static exports found */
  70240. /***/ (function(module, exports) {
  70241. module.exports = backbone.overview;
  70242. /***/ }),
  70243. /***/ "es6-promise":
  70244. /*!******************************!*\
  70245. !*** external "es6-promise" ***!
  70246. \******************************/
  70247. /*! no static exports found */
  70248. /***/ (function(module, exports) {
  70249. module.exports = es6-promise;
  70250. /***/ }),
  70251. /***/ "lodash":
  70252. /*!*************************!*\
  70253. !*** external "lodash" ***!
  70254. \*************************/
  70255. /*! no static exports found */
  70256. /***/ (function(module, exports) {
  70257. module.exports = lodash;
  70258. /***/ }),
  70259. /***/ "lodash.converter":
  70260. /*!***********************************!*\
  70261. !*** external "lodash.converter" ***!
  70262. \***********************************/
  70263. /*! no static exports found */
  70264. /***/ (function(module, exports) {
  70265. module.exports = lodash.converter;
  70266. /***/ }),
  70267. /***/ "lodash.noconflict":
  70268. /*!************************************!*\
  70269. !*** external "lodash.noconflict" ***!
  70270. \************************************/
  70271. /*! no static exports found */
  70272. /***/ (function(module, exports) {
  70273. module.exports = lodash.noconflict;
  70274. /***/ }),
  70275. /***/ "moment":
  70276. /*!*************************!*\
  70277. !*** external "moment" ***!
  70278. \*************************/
  70279. /*! no static exports found */
  70280. /***/ (function(module, exports) {
  70281. module.exports = moment;
  70282. /***/ }),
  70283. /***/ "strophe":
  70284. /*!**************************!*\
  70285. !*** external "strophe" ***!
  70286. \**************************/
  70287. /*! no static exports found */
  70288. /***/ (function(module, exports) {
  70289. module.exports = strophe;
  70290. /***/ }),
  70291. /***/ "strophe.ping":
  70292. /*!*******************************!*\
  70293. !*** external "strophe.ping" ***!
  70294. \*******************************/
  70295. /*! no static exports found */
  70296. /***/ (function(module, exports) {
  70297. module.exports = strophe.ping;
  70298. /***/ }),
  70299. /***/ "strophe.rsm":
  70300. /*!******************************!*\
  70301. !*** external "strophe.rsm" ***!
  70302. \******************************/
  70303. /*! no static exports found */
  70304. /***/ (function(module, exports) {
  70305. module.exports = strophe.rsm;
  70306. /***/ })
  70307. /******/ });
  70308. //# sourceMappingURL=converse-no-dependencies.js.map