2
0

converse-no-dependencies.js 2.7 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688816898169081691816928169381694816958169681697816988169981700817018170281703817048170581706817078170881709817108171181712817138171481715817168171781718817198172081721817228172381724817258172681727817288172981730817318173281733817348173581736817378173881739817408174181742817438174481745817468174781748817498175081751817528175381754817558175681757817588175981760817618176281763817648176581766817678176881769817708177181772817738177481775817768177781778817798178081781817828178381784817858178681787817888178981790817918179281793817948179581796817978179881799818008180181802818038180481805818068180781808818098181081811818128181381814818158181681817818188181981820818218182281823818248182581826818278182881829818308183181832818338183481835818368183781838818398184081841818428184381844818458184681847818488184981850818518185281853818548185581856818578185881859818608186181862818638186481865818668186781868818698187081871818728187381874818758187681877818788187981880818818188281883818848188581886818878188881889818908189181892818938189481895818968189781898818998190081901819028190381904819058190681907819088190981910819118191281913819148191581916819178191881919819208192181922819238192481925819268192781928819298193081931819328193381934819358193681937819388193981940819418194281943819448194581946819478194881949819508195181952819538195481955819568195781958819598196081961819628196381964819658196681967819688196981970819718197281973819748197581976819778197881979819808198181982819838198481985819868198781988819898199081991819928199381994819958199681997819988199982000820018200282003820048200582006820078200882009820108201182012820138201482015820168201782018820198202082021820228202382024820258202682027820288202982030820318203282033820348203582036820378203882039820408204182042820438204482045820468204782048820498205082051820528205382054820558205682057820588205982060820618206282063820648206582066820678206882069820708207182072820738207482075820768207782078820798208082081820828208382084820858208682087820888208982090820918209282093820948209582096820978209882099821008210182102821038210482105821068210782108821098211082111821128211382114821158211682117821188211982120821218212282123821248212582126821278212882129821308213182132821338213482135821368213782138821398214082141821428214382144821458214682147821488214982150821518215282153821548215582156821578215882159821608216182162821638216482165821668216782168821698217082171821728217382174821758217682177821788217982180821818218282183821848218582186821878218882189821908219182192821938219482195821968219782198821998220082201822028220382204822058220682207822088220982210822118221282213822148221582216822178221882219822208222182222822238222482225822268222782228822298223082231822328223382234822358223682237822388223982240822418224282243822448224582246822478224882249822508225182252822538225482255822568225782258822598226082261822628226382264822658226682267822688226982270822718227282273822748227582276822778227882279822808228182282822838228482285822868228782288822898229082291822928229382294822958229682297822988229982300823018230282303823048230582306823078230882309823108231182312823138231482315823168231782318823198232082321823228232382324823258232682327823288232982330823318233282333823348233582336823378233882339823408234182342823438234482345823468234782348823498235082351823528235382354823558235682357823588235982360823618236282363823648236582366823678236882369823708237182372823738237482375823768237782378823798238082381823828238382384823858238682387823888238982390823918239282393823948239582396823978239882399824008240182402824038240482405824068240782408824098241082411824128241382414824158241682417824188241982420824218242282423824248242582426824278242882429824308243182432824338243482435824368243782438824398244082441824428244382444824458244682447824488244982450824518245282453824548245582456824578245882459824608246182462824638246482465824668246782468824698247082471824728247382474824758247682477824788247982480824818248282483824848248582486824878248882489824908249182492824938249482495824968249782498824998250082501825028250382504825058250682507825088250982510825118251282513825148251582516825178251882519825208252182522825238252482525825268252782528825298253082531825328253382534825358253682537825388253982540825418254282543825448254582546825478254882549825508255182552825538255482555825568255782558825598256082561825628256382564825658256682567825688256982570825718257282573825748257582576825778257882579825808258182582825838258482585825868258782588825898259082591825928259382594825958259682597825988259982600826018260282603826048260582606826078260882609826108261182612826138261482615826168261782618826198262082621826228262382624826258262682627826288262982630826318263282633826348263582636826378263882639826408264182642826438264482645826468264782648826498265082651826528265382654826558265682657826588265982660826618266282663826648266582666826678266882669826708267182672826738267482675826768267782678826798268082681826828268382684826858268682687826888268982690826918269282693826948269582696826978269882699827008270182702827038270482705827068270782708827098271082711827128271382714827158271682717827188271982720827218272282723827248272582726827278272882729827308273182732827338273482735827368273782738827398274082741827428274382744827458274682747827488274982750827518275282753827548275582756827578275882759827608276182762827638276482765827668276782768827698277082771827728277382774827758277682777827788277982780827818278282783827848278582786827878278882789827908279182792827938279482795827968279782798827998280082801828028280382804828058280682807828088280982810828118281282813828148281582816828178281882819828208282182822828238282482825828268282782828828298283082831828328283382834828358283682837828388283982840828418284282843828448284582846828478284882849828508285182852828538285482855828568285782858828598286082861828628286382864828658286682867828688286982870828718287282873828748287582876828778287882879828808288182882828838288482885828868288782888828898289082891828928289382894828958289682897828988289982900829018290282903829048290582906829078290882909829108291182912829138291482915829168291782918829198292082921829228292382924829258292682927829288292982930829318293282933829348293582936829378293882939829408294182942829438294482945829468294782948829498295082951829528295382954829558295682957829588295982960829618296282963829648296582966829678296882969829708297182972829738297482975829768297782978829798298082981829828298382984829858298682987829888298982990829918299282993829948299582996829978299882999830008300183002830038300483005830068300783008830098301083011830128301383014830158301683017830188301983020830218302283023830248302583026830278302883029830308303183032830338303483035830368303783038830398304083041830428304383044830458304683047830488304983050830518305283053830548305583056830578305883059830608306183062830638306483065830668306783068830698307083071830728307383074830758307683077830788307983080830818308283083830848308583086830878308883089830908309183092830938309483095830968309783098830998310083101831028310383104831058310683107831088310983110831118311283113831148311583116831178311883119831208312183122831238312483125831268312783128831298313083131831328313383134831358313683137831388313983140831418314283143831448314583146831478314883149831508315183152831538315483155831568315783158831598316083161831628316383164831658316683167831688316983170831718317283173831748317583176831778317883179831808318183182831838318483185831868318783188831898319083191831928319383194831958319683197831988319983200832018320283203832048320583206832078320883209832108321183212832138321483215832168321783218832198322083221832228322383224832258322683227832288322983230832318323283233832348323583236832378323883239832408324183242832438324483245832468324783248832498325083251832528325383254832558325683257832588325983260832618326283263832648326583266832678326883269832708327183272832738327483275832768327783278832798328083281832828328383284832858328683287832888328983290832918329283293832948329583296832978329883299833008330183302833038330483305833068330783308833098331083311833128331383314833158331683317833188331983320833218332283323833248332583326833278332883329833308333183332833338333483335833368333783338833398334083341833428334383344833458334683347833488334983350833518335283353833548335583356833578335883359833608336183362833638336483365833668336783368833698337083371833728337383374833758337683377833788337983380833818338283383833848338583386833878338883389833908339183392833938339483395833968339783398833998340083401834028340383404834058340683407834088340983410834118341283413834148341583416834178341883419834208342183422834238342483425834268342783428834298343083431834328343383434834358343683437834388343983440834418344283443834448344583446834478344883449834508345183452834538345483455834568345783458834598346083461834628346383464834658346683467834688346983470834718347283473834748347583476834778347883479834808348183482834838348483485834868348783488834898349083491834928349383494834958349683497834988349983500835018350283503835048350583506835078350883509835108351183512835138351483515835168351783518835198352083521835228352383524835258352683527835288352983530835318353283533835348353583536835378353883539835408354183542835438354483545835468354783548835498355083551835528355383554835558355683557835588355983560835618356283563835648356583566835678356883569835708357183572835738357483575835768357783578835798358083581835828358383584835858358683587835888358983590835918359283593835948359583596835978359883599836008360183602836038360483605836068360783608836098361083611836128361383614836158361683617836188361983620836218362283623836248362583626836278362883629836308363183632836338363483635836368363783638836398364083641836428364383644836458364683647836488364983650836518365283653836548365583656836578365883659836608366183662836638366483665836668366783668836698367083671836728367383674836758367683677836788367983680836818368283683836848368583686836878368883689836908369183692836938369483695836968369783698
  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/strophe.js/dist/strophe.js":
  23515. /*!*************************************************!*\
  23516. !*** ./node_modules/strophe.js/dist/strophe.js ***!
  23517. \*************************************************/
  23518. /*! no static exports found */
  23519. /***/ (function(module, exports, __webpack_require__) {
  23520. (function webpackUniversalModuleDefinition(root, factory) {
  23521. if(true)
  23522. module.exports = factory();
  23523. else {}
  23524. })(window, function() {
  23525. return /******/ (function(modules) { // webpackBootstrap
  23526. /******/ // The module cache
  23527. /******/ var installedModules = {};
  23528. /******/
  23529. /******/ // The require function
  23530. /******/ function __webpack_require__(moduleId) {
  23531. /******/
  23532. /******/ // Check if module is in cache
  23533. /******/ if(installedModules[moduleId]) {
  23534. /******/ return installedModules[moduleId].exports;
  23535. /******/ }
  23536. /******/ // Create a new module (and put it into the cache)
  23537. /******/ var module = installedModules[moduleId] = {
  23538. /******/ i: moduleId,
  23539. /******/ l: false,
  23540. /******/ exports: {}
  23541. /******/ };
  23542. /******/
  23543. /******/ // Execute the module function
  23544. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  23545. /******/
  23546. /******/ // Flag the module as loaded
  23547. /******/ module.l = true;
  23548. /******/
  23549. /******/ // Return the exports of the module
  23550. /******/ return module.exports;
  23551. /******/ }
  23552. /******/
  23553. /******/
  23554. /******/ // expose the modules object (__webpack_modules__)
  23555. /******/ __webpack_require__.m = modules;
  23556. /******/
  23557. /******/ // expose the module cache
  23558. /******/ __webpack_require__.c = installedModules;
  23559. /******/
  23560. /******/ // define getter function for harmony exports
  23561. /******/ __webpack_require__.d = function(exports, name, getter) {
  23562. /******/ if(!__webpack_require__.o(exports, name)) {
  23563. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  23564. /******/ }
  23565. /******/ };
  23566. /******/
  23567. /******/ // define __esModule on exports
  23568. /******/ __webpack_require__.r = function(exports) {
  23569. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  23570. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  23571. /******/ }
  23572. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  23573. /******/ };
  23574. /******/
  23575. /******/ // create a fake namespace object
  23576. /******/ // mode & 1: value is a module id, require it
  23577. /******/ // mode & 2: merge all properties of value into the ns
  23578. /******/ // mode & 4: return value when already ns object
  23579. /******/ // mode & 8|1: behave like require
  23580. /******/ __webpack_require__.t = function(value, mode) {
  23581. /******/ if(mode & 1) value = __webpack_require__(value);
  23582. /******/ if(mode & 8) return value;
  23583. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  23584. /******/ var ns = Object.create(null);
  23585. /******/ __webpack_require__.r(ns);
  23586. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  23587. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  23588. /******/ return ns;
  23589. /******/ };
  23590. /******/
  23591. /******/ // getDefaultExport function for compatibility with non-harmony modules
  23592. /******/ __webpack_require__.n = function(module) {
  23593. /******/ var getter = module && module.__esModule ?
  23594. /******/ function getDefault() { return module['default']; } :
  23595. /******/ function getModuleExports() { return module; };
  23596. /******/ __webpack_require__.d(getter, 'a', getter);
  23597. /******/ return getter;
  23598. /******/ };
  23599. /******/
  23600. /******/ // Object.prototype.hasOwnProperty.call
  23601. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  23602. /******/
  23603. /******/ // __webpack_public_path__
  23604. /******/ __webpack_require__.p = "";
  23605. /******/
  23606. /******/
  23607. /******/ // Load entry module and return exports
  23608. /******/ return __webpack_require__(__webpack_require__.s = "./src/strophe.js");
  23609. /******/ })
  23610. /************************************************************************/
  23611. /******/ ({
  23612. /***/ "./src/bosh.js":
  23613. /*!*********************!*\
  23614. !*** ./src/bosh.js ***!
  23615. \*********************/
  23616. /*! no exports provided */
  23617. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23618. "use strict";
  23619. __webpack_require__.r(__webpack_exports__);
  23620. /* harmony import */ var core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core */ "./src/core.js");
  23621. /*
  23622. This program is distributed under the terms of the MIT license.
  23623. Please see the LICENSE file for details.
  23624. Copyright 2006-2008, OGG, LLC
  23625. */
  23626. /* global window, setTimeout, clearTimeout, XMLHttpRequest, ActiveXObject */
  23627. var Strophe = core__WEBPACK_IMPORTED_MODULE_0__["default"].Strophe;
  23628. var $build = core__WEBPACK_IMPORTED_MODULE_0__["default"].$build;
  23629. /** PrivateClass: Strophe.Request
  23630. * _Private_ helper class that provides a cross implementation abstraction
  23631. * for a BOSH related XMLHttpRequest.
  23632. *
  23633. * The Strophe.Request class is used internally to encapsulate BOSH request
  23634. * information. It is not meant to be used from user's code.
  23635. */
  23636. /** PrivateConstructor: Strophe.Request
  23637. * Create and initialize a new Strophe.Request object.
  23638. *
  23639. * Parameters:
  23640. * (XMLElement) elem - The XML data to be sent in the request.
  23641. * (Function) func - The function that will be called when the
  23642. * XMLHttpRequest readyState changes.
  23643. * (Integer) rid - The BOSH rid attribute associated with this request.
  23644. * (Integer) sends - The number of times this same request has been sent.
  23645. */
  23646. Strophe.Request = function (elem, func, rid, sends) {
  23647. this.id = ++Strophe._requestId;
  23648. this.xmlData = elem;
  23649. this.data = Strophe.serialize(elem); // save original function in case we need to make a new request
  23650. // from this one.
  23651. this.origFunc = func;
  23652. this.func = func;
  23653. this.rid = rid;
  23654. this.date = NaN;
  23655. this.sends = sends || 0;
  23656. this.abort = false;
  23657. this.dead = null;
  23658. this.age = function () {
  23659. if (!this.date) {
  23660. return 0;
  23661. }
  23662. var now = new Date();
  23663. return (now - this.date) / 1000;
  23664. };
  23665. this.timeDead = function () {
  23666. if (!this.dead) {
  23667. return 0;
  23668. }
  23669. var now = new Date();
  23670. return (now - this.dead) / 1000;
  23671. };
  23672. this.xhr = this._newXHR();
  23673. };
  23674. Strophe.Request.prototype = {
  23675. /** PrivateFunction: getResponse
  23676. * Get a response from the underlying XMLHttpRequest.
  23677. *
  23678. * This function attempts to get a response from the request and checks
  23679. * for errors.
  23680. *
  23681. * Throws:
  23682. * "parsererror" - A parser error occured.
  23683. * "bad-format" - The entity has sent XML that cannot be processed.
  23684. *
  23685. * Returns:
  23686. * The DOM element tree of the response.
  23687. */
  23688. getResponse: function getResponse() {
  23689. var node = null;
  23690. if (this.xhr.responseXML && this.xhr.responseXML.documentElement) {
  23691. node = this.xhr.responseXML.documentElement;
  23692. if (node.tagName === "parsererror") {
  23693. Strophe.error("invalid response received");
  23694. Strophe.error("responseText: " + this.xhr.responseText);
  23695. Strophe.error("responseXML: " + Strophe.serialize(this.xhr.responseXML));
  23696. throw new Error("parsererror");
  23697. }
  23698. } else if (this.xhr.responseText) {
  23699. // In React Native, we may get responseText but no responseXML. We can try to parse it manually.
  23700. Strophe.debug("Got responseText but no responseXML; attempting to parse it with DOMParser...");
  23701. node = new DOMParser().parseFromString(this.xhr.responseText, 'application/xml').documentElement;
  23702. if (!node) {
  23703. throw new Error('Parsing produced null node');
  23704. } else if (node.querySelector('parsererror')) {
  23705. Strophe.error("invalid response received: " + node.querySelector('parsererror').textContent);
  23706. Strophe.error("responseText: " + this.xhr.responseText);
  23707. var error = new Error();
  23708. error.name = Strophe.ErrorCondition.BAD_FORMAT;
  23709. throw error;
  23710. }
  23711. }
  23712. return node;
  23713. },
  23714. /** PrivateFunction: _newXHR
  23715. * _Private_ helper function to create XMLHttpRequests.
  23716. *
  23717. * This function creates XMLHttpRequests across all implementations.
  23718. *
  23719. * Returns:
  23720. * A new XMLHttpRequest.
  23721. */
  23722. _newXHR: function _newXHR() {
  23723. var xhr = null;
  23724. if (window.XMLHttpRequest) {
  23725. xhr = new XMLHttpRequest();
  23726. if (xhr.overrideMimeType) {
  23727. xhr.overrideMimeType("text/xml; charset=utf-8");
  23728. }
  23729. } else if (window.ActiveXObject) {
  23730. xhr = new ActiveXObject("Microsoft.XMLHTTP");
  23731. } // use Function.bind() to prepend ourselves as an argument
  23732. xhr.onreadystatechange = this.func.bind(null, this);
  23733. return xhr;
  23734. }
  23735. };
  23736. /** Class: Strophe.Bosh
  23737. * _Private_ helper class that handles BOSH Connections
  23738. *
  23739. * The Strophe.Bosh class is used internally by Strophe.Connection
  23740. * to encapsulate BOSH sessions. It is not meant to be used from user's code.
  23741. */
  23742. /** File: bosh.js
  23743. * A JavaScript library to enable BOSH in Strophejs.
  23744. *
  23745. * this library uses Bidirectional-streams Over Synchronous HTTP (BOSH)
  23746. * to emulate a persistent, stateful, two-way connection to an XMPP server.
  23747. * More information on BOSH can be found in XEP 124.
  23748. */
  23749. /** PrivateConstructor: Strophe.Bosh
  23750. * Create and initialize a Strophe.Bosh object.
  23751. *
  23752. * Parameters:
  23753. * (Strophe.Connection) connection - The Strophe.Connection that will use BOSH.
  23754. *
  23755. * Returns:
  23756. * A new Strophe.Bosh object.
  23757. */
  23758. Strophe.Bosh = function (connection) {
  23759. this._conn = connection;
  23760. /* request id for body tags */
  23761. this.rid = Math.floor(Math.random() * 4294967295);
  23762. /* The current session ID. */
  23763. this.sid = null; // default BOSH values
  23764. this.hold = 1;
  23765. this.wait = 60;
  23766. this.window = 5;
  23767. this.errors = 0;
  23768. this.inactivity = null;
  23769. this.lastResponseHeaders = null;
  23770. this._requests = [];
  23771. };
  23772. Strophe.Bosh.prototype = {
  23773. /** Variable: strip
  23774. *
  23775. * BOSH-Connections will have all stanzas wrapped in a <body> tag when
  23776. * passed to <Strophe.Connection.xmlInput> or <Strophe.Connection.xmlOutput>.
  23777. * To strip this tag, User code can set <Strophe.Bosh.strip> to "body":
  23778. *
  23779. * > Strophe.Bosh.prototype.strip = "body";
  23780. *
  23781. * This will enable stripping of the body tag in both
  23782. * <Strophe.Connection.xmlInput> and <Strophe.Connection.xmlOutput>.
  23783. */
  23784. strip: null,
  23785. /** PrivateFunction: _buildBody
  23786. * _Private_ helper function to generate the <body/> wrapper for BOSH.
  23787. *
  23788. * Returns:
  23789. * A Strophe.Builder with a <body/> element.
  23790. */
  23791. _buildBody: function _buildBody() {
  23792. var bodyWrap = $build('body', {
  23793. 'rid': this.rid++,
  23794. 'xmlns': Strophe.NS.HTTPBIND
  23795. });
  23796. if (this.sid !== null) {
  23797. bodyWrap.attrs({
  23798. 'sid': this.sid
  23799. });
  23800. }
  23801. if (this._conn.options.keepalive && this._conn._sessionCachingSupported()) {
  23802. this._cacheSession();
  23803. }
  23804. return bodyWrap;
  23805. },
  23806. /** PrivateFunction: _reset
  23807. * Reset the connection.
  23808. *
  23809. * This function is called by the reset function of the Strophe Connection
  23810. */
  23811. _reset: function _reset() {
  23812. this.rid = Math.floor(Math.random() * 4294967295);
  23813. this.sid = null;
  23814. this.errors = 0;
  23815. if (this._conn._sessionCachingSupported()) {
  23816. window.sessionStorage.removeItem('strophe-bosh-session');
  23817. }
  23818. this._conn.nextValidRid(this.rid);
  23819. },
  23820. /** PrivateFunction: _connect
  23821. * _Private_ function that initializes the BOSH connection.
  23822. *
  23823. * Creates and sends the Request that initializes the BOSH connection.
  23824. */
  23825. _connect: function _connect(wait, hold, route) {
  23826. this.wait = wait || this.wait;
  23827. this.hold = hold || this.hold;
  23828. this.errors = 0;
  23829. var body = this._buildBody().attrs({
  23830. "to": this._conn.domain,
  23831. "xml:lang": "en",
  23832. "wait": this.wait,
  23833. "hold": this.hold,
  23834. "content": "text/xml; charset=utf-8",
  23835. "ver": "1.6",
  23836. "xmpp:version": "1.0",
  23837. "xmlns:xmpp": Strophe.NS.BOSH
  23838. });
  23839. if (route) {
  23840. body.attrs({
  23841. 'route': route
  23842. });
  23843. }
  23844. var _connect_cb = this._conn._connect_cb;
  23845. this._requests.push(new Strophe.Request(body.tree(), this._onRequestStateChange.bind(this, _connect_cb.bind(this._conn)), body.tree().getAttribute("rid")));
  23846. this._throttledRequestHandler();
  23847. },
  23848. /** PrivateFunction: _attach
  23849. * Attach to an already created and authenticated BOSH session.
  23850. *
  23851. * This function is provided to allow Strophe to attach to BOSH
  23852. * sessions which have been created externally, perhaps by a Web
  23853. * application. This is often used to support auto-login type features
  23854. * without putting user credentials into the page.
  23855. *
  23856. * Parameters:
  23857. * (String) jid - The full JID that is bound by the session.
  23858. * (String) sid - The SID of the BOSH session.
  23859. * (String) rid - The current RID of the BOSH session. This RID
  23860. * will be used by the next request.
  23861. * (Function) callback The connect callback function.
  23862. * (Integer) wait - The optional HTTPBIND wait value. This is the
  23863. * time the server will wait before returning an empty result for
  23864. * a request. The default setting of 60 seconds is recommended.
  23865. * Other settings will require tweaks to the Strophe.TIMEOUT value.
  23866. * (Integer) hold - The optional HTTPBIND hold value. This is the
  23867. * number of connections the server will hold at one time. This
  23868. * should almost always be set to 1 (the default).
  23869. * (Integer) wind - The optional HTTBIND window value. This is the
  23870. * allowed range of request ids that are valid. The default is 5.
  23871. */
  23872. _attach: function _attach(jid, sid, rid, callback, wait, hold, wind) {
  23873. this._conn.jid = jid;
  23874. this.sid = sid;
  23875. this.rid = rid;
  23876. this._conn.connect_callback = callback;
  23877. this._conn.domain = Strophe.getDomainFromJid(this._conn.jid);
  23878. this._conn.authenticated = true;
  23879. this._conn.connected = true;
  23880. this.wait = wait || this.wait;
  23881. this.hold = hold || this.hold;
  23882. this.window = wind || this.window;
  23883. this._conn._changeConnectStatus(Strophe.Status.ATTACHED, null);
  23884. },
  23885. /** PrivateFunction: _restore
  23886. * Attempt to restore a cached BOSH session
  23887. *
  23888. * Parameters:
  23889. * (String) jid - The full JID that is bound by the session.
  23890. * This parameter is optional but recommended, specifically in cases
  23891. * where prebinded BOSH sessions are used where it's important to know
  23892. * that the right session is being restored.
  23893. * (Function) callback The connect callback function.
  23894. * (Integer) wait - The optional HTTPBIND wait value. This is the
  23895. * time the server will wait before returning an empty result for
  23896. * a request. The default setting of 60 seconds is recommended.
  23897. * Other settings will require tweaks to the Strophe.TIMEOUT value.
  23898. * (Integer) hold - The optional HTTPBIND hold value. This is the
  23899. * number of connections the server will hold at one time. This
  23900. * should almost always be set to 1 (the default).
  23901. * (Integer) wind - The optional HTTBIND window value. This is the
  23902. * allowed range of request ids that are valid. The default is 5.
  23903. */
  23904. _restore: function _restore(jid, callback, wait, hold, wind) {
  23905. var session = JSON.parse(window.sessionStorage.getItem('strophe-bosh-session'));
  23906. if (typeof session !== "undefined" && session !== null && session.rid && session.sid && session.jid && (typeof jid === "undefined" || jid === null || Strophe.getBareJidFromJid(session.jid) === Strophe.getBareJidFromJid(jid) || // If authcid is null, then it's an anonymous login, so
  23907. // we compare only the domains:
  23908. Strophe.getNodeFromJid(jid) === null && Strophe.getDomainFromJid(session.jid) === jid)) {
  23909. this._conn.restored = true;
  23910. this._attach(session.jid, session.sid, session.rid, callback, wait, hold, wind);
  23911. } else {
  23912. var error = new Error("_restore: no restoreable session.");
  23913. error.name = "StropheSessionError";
  23914. throw error;
  23915. }
  23916. },
  23917. /** PrivateFunction: _cacheSession
  23918. * _Private_ handler for the beforeunload event.
  23919. *
  23920. * This handler is used to process the Bosh-part of the initial request.
  23921. * Parameters:
  23922. * (Strophe.Request) bodyWrap - The received stanza.
  23923. */
  23924. _cacheSession: function _cacheSession() {
  23925. if (this._conn.authenticated) {
  23926. if (this._conn.jid && this.rid && this.sid) {
  23927. window.sessionStorage.setItem('strophe-bosh-session', JSON.stringify({
  23928. 'jid': this._conn.jid,
  23929. 'rid': this.rid,
  23930. 'sid': this.sid
  23931. }));
  23932. }
  23933. } else {
  23934. window.sessionStorage.removeItem('strophe-bosh-session');
  23935. }
  23936. },
  23937. /** PrivateFunction: _connect_cb
  23938. * _Private_ handler for initial connection request.
  23939. *
  23940. * This handler is used to process the Bosh-part of the initial request.
  23941. * Parameters:
  23942. * (Strophe.Request) bodyWrap - The received stanza.
  23943. */
  23944. _connect_cb: function _connect_cb(bodyWrap) {
  23945. var typ = bodyWrap.getAttribute("type");
  23946. if (typ !== null && typ === "terminate") {
  23947. // an error occurred
  23948. var cond = bodyWrap.getAttribute("condition");
  23949. Strophe.error("BOSH-Connection failed: " + cond);
  23950. var conflict = bodyWrap.getElementsByTagName("conflict");
  23951. if (cond !== null) {
  23952. if (cond === "remote-stream-error" && conflict.length > 0) {
  23953. cond = "conflict";
  23954. }
  23955. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, cond);
  23956. } else {
  23957. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown");
  23958. }
  23959. this._conn._doDisconnect(cond);
  23960. return Strophe.Status.CONNFAIL;
  23961. } // check to make sure we don't overwrite these if _connect_cb is
  23962. // called multiple times in the case of missing stream:features
  23963. if (!this.sid) {
  23964. this.sid = bodyWrap.getAttribute("sid");
  23965. }
  23966. var wind = bodyWrap.getAttribute('requests');
  23967. if (wind) {
  23968. this.window = parseInt(wind, 10);
  23969. }
  23970. var hold = bodyWrap.getAttribute('hold');
  23971. if (hold) {
  23972. this.hold = parseInt(hold, 10);
  23973. }
  23974. var wait = bodyWrap.getAttribute('wait');
  23975. if (wait) {
  23976. this.wait = parseInt(wait, 10);
  23977. }
  23978. var inactivity = bodyWrap.getAttribute('inactivity');
  23979. if (inactivity) {
  23980. this.inactivity = parseInt(inactivity, 10);
  23981. }
  23982. },
  23983. /** PrivateFunction: _disconnect
  23984. * _Private_ part of Connection.disconnect for Bosh
  23985. *
  23986. * Parameters:
  23987. * (Request) pres - This stanza will be sent before disconnecting.
  23988. */
  23989. _disconnect: function _disconnect(pres) {
  23990. this._sendTerminate(pres);
  23991. },
  23992. /** PrivateFunction: _doDisconnect
  23993. * _Private_ function to disconnect.
  23994. *
  23995. * Resets the SID and RID.
  23996. */
  23997. _doDisconnect: function _doDisconnect() {
  23998. this.sid = null;
  23999. this.rid = Math.floor(Math.random() * 4294967295);
  24000. if (this._conn._sessionCachingSupported()) {
  24001. window.sessionStorage.removeItem('strophe-bosh-session');
  24002. }
  24003. this._conn.nextValidRid(this.rid);
  24004. },
  24005. /** PrivateFunction: _emptyQueue
  24006. * _Private_ function to check if the Request queue is empty.
  24007. *
  24008. * Returns:
  24009. * True, if there are no Requests queued, False otherwise.
  24010. */
  24011. _emptyQueue: function _emptyQueue() {
  24012. return this._requests.length === 0;
  24013. },
  24014. /** PrivateFunction: _callProtocolErrorHandlers
  24015. * _Private_ function to call error handlers registered for HTTP errors.
  24016. *
  24017. * Parameters:
  24018. * (Strophe.Request) req - The request that is changing readyState.
  24019. */
  24020. _callProtocolErrorHandlers: function _callProtocolErrorHandlers(req) {
  24021. var reqStatus = this._getRequestStatus(req);
  24022. var err_callback = this._conn.protocolErrorHandlers.HTTP[reqStatus];
  24023. if (err_callback) {
  24024. err_callback.call(this, reqStatus);
  24025. }
  24026. },
  24027. /** PrivateFunction: _hitError
  24028. * _Private_ function to handle the error count.
  24029. *
  24030. * Requests are resent automatically until their error count reaches
  24031. * 5. Each time an error is encountered, this function is called to
  24032. * increment the count and disconnect if the count is too high.
  24033. *
  24034. * Parameters:
  24035. * (Integer) reqStatus - The request status.
  24036. */
  24037. _hitError: function _hitError(reqStatus) {
  24038. this.errors++;
  24039. Strophe.warn("request errored, status: " + reqStatus + ", number of errors: " + this.errors);
  24040. if (this.errors > 4) {
  24041. this._conn._onDisconnectTimeout();
  24042. }
  24043. },
  24044. /** PrivateFunction: _no_auth_received
  24045. *
  24046. * Called on stream start/restart when no stream:features
  24047. * has been received and sends a blank poll request.
  24048. */
  24049. _no_auth_received: function _no_auth_received(callback) {
  24050. Strophe.warn("Server did not yet offer a supported authentication " + "mechanism. Sending a blank poll request.");
  24051. if (callback) {
  24052. callback = callback.bind(this._conn);
  24053. } else {
  24054. callback = this._conn._connect_cb.bind(this._conn);
  24055. }
  24056. var body = this._buildBody();
  24057. this._requests.push(new Strophe.Request(body.tree(), this._onRequestStateChange.bind(this, callback), body.tree().getAttribute("rid")));
  24058. this._throttledRequestHandler();
  24059. },
  24060. /** PrivateFunction: _onDisconnectTimeout
  24061. * _Private_ timeout handler for handling non-graceful disconnection.
  24062. *
  24063. * Cancels all remaining Requests and clears the queue.
  24064. */
  24065. _onDisconnectTimeout: function _onDisconnectTimeout() {
  24066. this._abortAllRequests();
  24067. },
  24068. /** PrivateFunction: _abortAllRequests
  24069. * _Private_ helper function that makes sure all pending requests are aborted.
  24070. */
  24071. _abortAllRequests: function _abortAllRequests() {
  24072. while (this._requests.length > 0) {
  24073. var req = this._requests.pop();
  24074. req.abort = true;
  24075. req.xhr.abort(); // jslint complains, but this is fine. setting to empty func
  24076. // is necessary for IE6
  24077. req.xhr.onreadystatechange = function () {}; // jshint ignore:line
  24078. }
  24079. },
  24080. /** PrivateFunction: _onIdle
  24081. * _Private_ handler called by Strophe.Connection._onIdle
  24082. *
  24083. * Sends all queued Requests or polls with empty Request if there are none.
  24084. */
  24085. _onIdle: function _onIdle() {
  24086. var data = this._conn._data; // if no requests are in progress, poll
  24087. if (this._conn.authenticated && this._requests.length === 0 && data.length === 0 && !this._conn.disconnecting) {
  24088. Strophe.info("no requests during idle cycle, sending " + "blank request");
  24089. data.push(null);
  24090. }
  24091. if (this._conn.paused) {
  24092. return;
  24093. }
  24094. if (this._requests.length < 2 && data.length > 0) {
  24095. var body = this._buildBody();
  24096. for (var i = 0; i < data.length; i++) {
  24097. if (data[i] !== null) {
  24098. if (data[i] === "restart") {
  24099. body.attrs({
  24100. "to": this._conn.domain,
  24101. "xml:lang": "en",
  24102. "xmpp:restart": "true",
  24103. "xmlns:xmpp": Strophe.NS.BOSH
  24104. });
  24105. } else {
  24106. body.cnode(data[i]).up();
  24107. }
  24108. }
  24109. }
  24110. delete this._conn._data;
  24111. this._conn._data = [];
  24112. this._requests.push(new Strophe.Request(body.tree(), this._onRequestStateChange.bind(this, this._conn._dataRecv.bind(this._conn)), body.tree().getAttribute("rid")));
  24113. this._throttledRequestHandler();
  24114. }
  24115. if (this._requests.length > 0) {
  24116. var time_elapsed = this._requests[0].age();
  24117. if (this._requests[0].dead !== null) {
  24118. if (this._requests[0].timeDead() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)) {
  24119. this._throttledRequestHandler();
  24120. }
  24121. }
  24122. if (time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)) {
  24123. Strophe.warn("Request " + this._requests[0].id + " timed out, over " + Math.floor(Strophe.TIMEOUT * this.wait) + " seconds since last activity");
  24124. this._throttledRequestHandler();
  24125. }
  24126. }
  24127. },
  24128. /** PrivateFunction: _getRequestStatus
  24129. *
  24130. * Returns the HTTP status code from a Strophe.Request
  24131. *
  24132. * Parameters:
  24133. * (Strophe.Request) req - The Strophe.Request instance.
  24134. * (Integer) def - The default value that should be returned if no
  24135. * status value was found.
  24136. */
  24137. _getRequestStatus: function _getRequestStatus(req, def) {
  24138. var reqStatus;
  24139. if (req.xhr.readyState === 4) {
  24140. try {
  24141. reqStatus = req.xhr.status;
  24142. } catch (e) {
  24143. // ignore errors from undefined status attribute. Works
  24144. // around a browser bug
  24145. Strophe.error("Caught an error while retrieving a request's status, " + "reqStatus: " + reqStatus);
  24146. }
  24147. }
  24148. if (typeof reqStatus === "undefined") {
  24149. reqStatus = typeof def === 'number' ? def : 0;
  24150. }
  24151. return reqStatus;
  24152. },
  24153. /** PrivateFunction: _onRequestStateChange
  24154. * _Private_ handler for Strophe.Request state changes.
  24155. *
  24156. * This function is called when the XMLHttpRequest readyState changes.
  24157. * It contains a lot of error handling logic for the many ways that
  24158. * requests can fail, and calls the request callback when requests
  24159. * succeed.
  24160. *
  24161. * Parameters:
  24162. * (Function) func - The handler for the request.
  24163. * (Strophe.Request) req - The request that is changing readyState.
  24164. */
  24165. _onRequestStateChange: function _onRequestStateChange(func, req) {
  24166. Strophe.debug("request id " + req.id + "." + req.sends + " state changed to " + req.xhr.readyState);
  24167. if (req.abort) {
  24168. req.abort = false;
  24169. return;
  24170. }
  24171. if (req.xhr.readyState !== 4) {
  24172. // The request is not yet complete
  24173. return;
  24174. }
  24175. var reqStatus = this._getRequestStatus(req);
  24176. this.lastResponseHeaders = req.xhr.getAllResponseHeaders();
  24177. if (this.disconnecting && reqStatus >= 400) {
  24178. this._hitError(reqStatus);
  24179. this._callProtocolErrorHandlers(req);
  24180. return;
  24181. }
  24182. var valid_request = reqStatus > 0 && reqStatus < 500;
  24183. var too_many_retries = req.sends > this._conn.maxRetries;
  24184. if (valid_request || too_many_retries) {
  24185. // remove from internal queue
  24186. this._removeRequest(req);
  24187. Strophe.debug("request id " + req.id + " should now be removed");
  24188. }
  24189. if (reqStatus === 200) {
  24190. // request succeeded
  24191. var reqIs0 = this._requests[0] === req;
  24192. var reqIs1 = this._requests[1] === req; // if request 1 finished, or request 0 finished and request
  24193. // 1 is over Strophe.SECONDARY_TIMEOUT seconds old, we need to
  24194. // restart the other - both will be in the first spot, as the
  24195. // completed request has been removed from the queue already
  24196. if (reqIs1 || reqIs0 && this._requests.length > 0 && this._requests[0].age() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)) {
  24197. this._restartRequest(0);
  24198. }
  24199. this._conn.nextValidRid(Number(req.rid) + 1);
  24200. Strophe.debug("request id " + req.id + "." + req.sends + " got 200");
  24201. func(req); // call handler
  24202. this.errors = 0;
  24203. } else if (reqStatus === 0 || reqStatus >= 400 && reqStatus < 600 || reqStatus >= 12000) {
  24204. // request failed
  24205. Strophe.error("request id " + req.id + "." + req.sends + " error " + reqStatus + " happened");
  24206. this._hitError(reqStatus);
  24207. this._callProtocolErrorHandlers(req);
  24208. if (reqStatus >= 400 && reqStatus < 500) {
  24209. this._conn._changeConnectStatus(Strophe.Status.DISCONNECTING, null);
  24210. this._conn._doDisconnect();
  24211. }
  24212. } else {
  24213. Strophe.error("request id " + req.id + "." + req.sends + " error " + reqStatus + " happened");
  24214. }
  24215. if (!valid_request && !too_many_retries) {
  24216. this._throttledRequestHandler();
  24217. } else if (too_many_retries && !this._conn.connected) {
  24218. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "giving-up");
  24219. }
  24220. },
  24221. /** PrivateFunction: _processRequest
  24222. * _Private_ function to process a request in the queue.
  24223. *
  24224. * This function takes requests off the queue and sends them and
  24225. * restarts dead requests.
  24226. *
  24227. * Parameters:
  24228. * (Integer) i - The index of the request in the queue.
  24229. */
  24230. _processRequest: function _processRequest(i) {
  24231. var _this = this;
  24232. var req = this._requests[i];
  24233. var reqStatus = this._getRequestStatus(req, -1); // make sure we limit the number of retries
  24234. if (req.sends > this._conn.maxRetries) {
  24235. this._conn._onDisconnectTimeout();
  24236. return;
  24237. }
  24238. var time_elapsed = req.age();
  24239. var primary_timeout = !isNaN(time_elapsed) && time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait);
  24240. var secondary_timeout = req.dead !== null && req.timeDead() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait);
  24241. var server_error = req.xhr.readyState === 4 && (reqStatus < 1 || reqStatus >= 500);
  24242. if (primary_timeout || secondary_timeout || server_error) {
  24243. if (secondary_timeout) {
  24244. Strophe.error("Request ".concat(this._requests[i].id, " timed out (secondary), restarting"));
  24245. }
  24246. req.abort = true;
  24247. req.xhr.abort(); // setting to null fails on IE6, so set to empty function
  24248. req.xhr.onreadystatechange = function () {};
  24249. this._requests[i] = new Strophe.Request(req.xmlData, req.origFunc, req.rid, req.sends);
  24250. req = this._requests[i];
  24251. }
  24252. if (req.xhr.readyState === 0) {
  24253. Strophe.debug("request id " + req.id + "." + req.sends + " posting");
  24254. try {
  24255. var content_type = this._conn.options.contentType || "text/xml; charset=utf-8";
  24256. req.xhr.open("POST", this._conn.service, this._conn.options.sync ? false : true);
  24257. if (typeof req.xhr.setRequestHeader !== 'undefined') {
  24258. // IE9 doesn't have setRequestHeader
  24259. req.xhr.setRequestHeader("Content-Type", content_type);
  24260. }
  24261. if (this._conn.options.withCredentials) {
  24262. req.xhr.withCredentials = true;
  24263. }
  24264. } catch (e2) {
  24265. Strophe.error("XHR open failed: " + e2.toString());
  24266. if (!this._conn.connected) {
  24267. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "bad-service");
  24268. }
  24269. this._conn.disconnect();
  24270. return;
  24271. } // Fires the XHR request -- may be invoked immediately
  24272. // or on a gradually expanding retry window for reconnects
  24273. var sendFunc = function sendFunc() {
  24274. req.date = new Date();
  24275. if (_this._conn.options.customHeaders) {
  24276. var headers = _this._conn.options.customHeaders;
  24277. for (var header in headers) {
  24278. if (Object.prototype.hasOwnProperty.call(headers, header)) {
  24279. req.xhr.setRequestHeader(header, headers[header]);
  24280. }
  24281. }
  24282. }
  24283. req.xhr.send(req.data);
  24284. }; // Implement progressive backoff for reconnects --
  24285. // First retry (send === 1) should also be instantaneous
  24286. if (req.sends > 1) {
  24287. // Using a cube of the retry number creates a nicely
  24288. // expanding retry window
  24289. var backoff = Math.min(Math.floor(Strophe.TIMEOUT * this.wait), Math.pow(req.sends, 3)) * 1000;
  24290. setTimeout(function () {
  24291. // XXX: setTimeout should be called only with function expressions (23974bc1)
  24292. sendFunc();
  24293. }, backoff);
  24294. } else {
  24295. sendFunc();
  24296. }
  24297. req.sends++;
  24298. if (this._conn.xmlOutput !== Strophe.Connection.prototype.xmlOutput) {
  24299. if (req.xmlData.nodeName === this.strip && req.xmlData.childNodes.length) {
  24300. this._conn.xmlOutput(req.xmlData.childNodes[0]);
  24301. } else {
  24302. this._conn.xmlOutput(req.xmlData);
  24303. }
  24304. }
  24305. if (this._conn.rawOutput !== Strophe.Connection.prototype.rawOutput) {
  24306. this._conn.rawOutput(req.data);
  24307. }
  24308. } else {
  24309. Strophe.debug("_processRequest: " + (i === 0 ? "first" : "second") + " request has readyState of " + req.xhr.readyState);
  24310. }
  24311. },
  24312. /** PrivateFunction: _removeRequest
  24313. * _Private_ function to remove a request from the queue.
  24314. *
  24315. * Parameters:
  24316. * (Strophe.Request) req - The request to remove.
  24317. */
  24318. _removeRequest: function _removeRequest(req) {
  24319. Strophe.debug("removing request");
  24320. for (var i = this._requests.length - 1; i >= 0; i--) {
  24321. if (req === this._requests[i]) {
  24322. this._requests.splice(i, 1);
  24323. }
  24324. } // IE6 fails on setting to null, so set to empty function
  24325. req.xhr.onreadystatechange = function () {};
  24326. this._throttledRequestHandler();
  24327. },
  24328. /** PrivateFunction: _restartRequest
  24329. * _Private_ function to restart a request that is presumed dead.
  24330. *
  24331. * Parameters:
  24332. * (Integer) i - The index of the request in the queue.
  24333. */
  24334. _restartRequest: function _restartRequest(i) {
  24335. var req = this._requests[i];
  24336. if (req.dead === null) {
  24337. req.dead = new Date();
  24338. }
  24339. this._processRequest(i);
  24340. },
  24341. /** PrivateFunction: _reqToData
  24342. * _Private_ function to get a stanza out of a request.
  24343. *
  24344. * Tries to extract a stanza out of a Request Object.
  24345. * When this fails the current connection will be disconnected.
  24346. *
  24347. * Parameters:
  24348. * (Object) req - The Request.
  24349. *
  24350. * Returns:
  24351. * The stanza that was passed.
  24352. */
  24353. _reqToData: function _reqToData(req) {
  24354. try {
  24355. return req.getResponse();
  24356. } catch (e) {
  24357. if (e.message !== "parsererror") {
  24358. throw e;
  24359. }
  24360. this._conn.disconnect("strophe-parsererror");
  24361. }
  24362. },
  24363. /** PrivateFunction: _sendTerminate
  24364. * _Private_ function to send initial disconnect sequence.
  24365. *
  24366. * This is the first step in a graceful disconnect. It sends
  24367. * the BOSH server a terminate body and includes an unavailable
  24368. * presence if authentication has completed.
  24369. */
  24370. _sendTerminate: function _sendTerminate(pres) {
  24371. Strophe.info("_sendTerminate was called");
  24372. var body = this._buildBody().attrs({
  24373. type: "terminate"
  24374. });
  24375. if (pres) {
  24376. body.cnode(pres.tree());
  24377. }
  24378. var req = new Strophe.Request(body.tree(), this._onRequestStateChange.bind(this, this._conn._dataRecv.bind(this._conn)), body.tree().getAttribute("rid"));
  24379. this._requests.push(req);
  24380. this._throttledRequestHandler();
  24381. },
  24382. /** PrivateFunction: _send
  24383. * _Private_ part of the Connection.send function for BOSH
  24384. *
  24385. * Just triggers the RequestHandler to send the messages that are in the queue
  24386. */
  24387. _send: function _send() {
  24388. var _this2 = this;
  24389. clearTimeout(this._conn._idleTimeout);
  24390. this._throttledRequestHandler();
  24391. this._conn._idleTimeout = setTimeout(function () {
  24392. return _this2._conn._onIdle();
  24393. }, 100);
  24394. },
  24395. /** PrivateFunction: _sendRestart
  24396. *
  24397. * Send an xmpp:restart stanza.
  24398. */
  24399. _sendRestart: function _sendRestart() {
  24400. this._throttledRequestHandler();
  24401. clearTimeout(this._conn._idleTimeout);
  24402. },
  24403. /** PrivateFunction: _throttledRequestHandler
  24404. * _Private_ function to throttle requests to the connection window.
  24405. *
  24406. * This function makes sure we don't send requests so fast that the
  24407. * request ids overflow the connection window in the case that one
  24408. * request died.
  24409. */
  24410. _throttledRequestHandler: function _throttledRequestHandler() {
  24411. if (!this._requests) {
  24412. Strophe.debug("_throttledRequestHandler called with " + "undefined requests");
  24413. } else {
  24414. Strophe.debug("_throttledRequestHandler called with " + this._requests.length + " requests");
  24415. }
  24416. if (!this._requests || this._requests.length === 0) {
  24417. return;
  24418. }
  24419. if (this._requests.length > 0) {
  24420. this._processRequest(0);
  24421. }
  24422. if (this._requests.length > 1 && Math.abs(this._requests[0].rid - this._requests[1].rid) < this.window) {
  24423. this._processRequest(1);
  24424. }
  24425. }
  24426. };
  24427. /***/ }),
  24428. /***/ "./src/core.js":
  24429. /*!*********************!*\
  24430. !*** ./src/core.js ***!
  24431. \*********************/
  24432. /*! exports provided: default */
  24433. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  24434. "use strict";
  24435. __webpack_require__.r(__webpack_exports__);
  24436. /* harmony import */ var md5__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! md5 */ "./src/md5.js");
  24437. /* harmony import */ var sha1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sha1 */ "./src/sha1.js");
  24438. /* harmony import */ var utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils */ "./src/utils.js");
  24439. function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
  24440. function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
  24441. function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
  24442. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
  24443. 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); }
  24444. /*
  24445. This program is distributed under the terms of the MIT license.
  24446. Please see the LICENSE file for details.
  24447. Copyright 2006-2018, OGG, LLC
  24448. */
  24449. /*global define, document, sessionStorage, setTimeout, clearTimeout, ActiveXObject, DOMParser, btoa, atob, module */
  24450. /** Function: $build
  24451. * Create a Strophe.Builder.
  24452. * This is an alias for 'new Strophe.Builder(name, attrs)'.
  24453. *
  24454. * Parameters:
  24455. * (String) name - The root element name.
  24456. * (Object) attrs - The attributes for the root element in object notation.
  24457. *
  24458. * Returns:
  24459. * A new Strophe.Builder object.
  24460. */
  24461. function $build(name, attrs) {
  24462. return new Strophe.Builder(name, attrs);
  24463. }
  24464. /** Function: $msg
  24465. * Create a Strophe.Builder with a <message/> element as the root.
  24466. *
  24467. * Parameters:
  24468. * (Object) attrs - The <message/> element attributes in object notation.
  24469. *
  24470. * Returns:
  24471. * A new Strophe.Builder object.
  24472. */
  24473. function $msg(attrs) {
  24474. return new Strophe.Builder("message", attrs);
  24475. }
  24476. /** Function: $iq
  24477. * Create a Strophe.Builder with an <iq/> element as the root.
  24478. *
  24479. * Parameters:
  24480. * (Object) attrs - The <iq/> element attributes in object notation.
  24481. *
  24482. * Returns:
  24483. * A new Strophe.Builder object.
  24484. */
  24485. function $iq(attrs) {
  24486. return new Strophe.Builder("iq", attrs);
  24487. }
  24488. /** Function: $pres
  24489. * Create a Strophe.Builder with a <presence/> element as the root.
  24490. *
  24491. * Parameters:
  24492. * (Object) attrs - The <presence/> element attributes in object notation.
  24493. *
  24494. * Returns:
  24495. * A new Strophe.Builder object.
  24496. */
  24497. function $pres(attrs) {
  24498. return new Strophe.Builder("presence", attrs);
  24499. }
  24500. /** Class: Strophe
  24501. * An object container for all Strophe library functions.
  24502. *
  24503. * This class is just a container for all the objects and constants
  24504. * used in the library. It is not meant to be instantiated, but to
  24505. * provide a namespace for library objects, constants, and functions.
  24506. */
  24507. var Strophe = {
  24508. /** Constant: VERSION */
  24509. VERSION: "1.3.0",
  24510. /** Constants: XMPP Namespace Constants
  24511. * Common namespace constants from the XMPP RFCs and XEPs.
  24512. *
  24513. * NS.HTTPBIND - HTTP BIND namespace from XEP 124.
  24514. * NS.BOSH - BOSH namespace from XEP 206.
  24515. * NS.CLIENT - Main XMPP client namespace.
  24516. * NS.AUTH - Legacy authentication namespace.
  24517. * NS.ROSTER - Roster operations namespace.
  24518. * NS.PROFILE - Profile namespace.
  24519. * NS.DISCO_INFO - Service discovery info namespace from XEP 30.
  24520. * NS.DISCO_ITEMS - Service discovery items namespace from XEP 30.
  24521. * NS.MUC - Multi-User Chat namespace from XEP 45.
  24522. * NS.SASL - XMPP SASL namespace from RFC 3920.
  24523. * NS.STREAM - XMPP Streams namespace from RFC 3920.
  24524. * NS.BIND - XMPP Binding namespace from RFC 3920.
  24525. * NS.SESSION - XMPP Session namespace from RFC 3920.
  24526. * NS.XHTML_IM - XHTML-IM namespace from XEP 71.
  24527. * NS.XHTML - XHTML body namespace from XEP 71.
  24528. */
  24529. NS: {
  24530. HTTPBIND: "http://jabber.org/protocol/httpbind",
  24531. BOSH: "urn:xmpp:xbosh",
  24532. CLIENT: "jabber:client",
  24533. AUTH: "jabber:iq:auth",
  24534. ROSTER: "jabber:iq:roster",
  24535. PROFILE: "jabber:iq:profile",
  24536. DISCO_INFO: "http://jabber.org/protocol/disco#info",
  24537. DISCO_ITEMS: "http://jabber.org/protocol/disco#items",
  24538. MUC: "http://jabber.org/protocol/muc",
  24539. SASL: "urn:ietf:params:xml:ns:xmpp-sasl",
  24540. STREAM: "http://etherx.jabber.org/streams",
  24541. FRAMING: "urn:ietf:params:xml:ns:xmpp-framing",
  24542. BIND: "urn:ietf:params:xml:ns:xmpp-bind",
  24543. SESSION: "urn:ietf:params:xml:ns:xmpp-session",
  24544. VERSION: "jabber:iq:version",
  24545. STANZAS: "urn:ietf:params:xml:ns:xmpp-stanzas",
  24546. XHTML_IM: "http://jabber.org/protocol/xhtml-im",
  24547. XHTML: "http://www.w3.org/1999/xhtml"
  24548. },
  24549. /** Constants: XHTML_IM Namespace
  24550. * contains allowed tags, tag attributes, and css properties.
  24551. * Used in the createHtml function to filter incoming html into the allowed XHTML-IM subset.
  24552. * See http://xmpp.org/extensions/xep-0071.html#profile-summary for the list of recommended
  24553. * allowed tags and their attributes.
  24554. */
  24555. XHTML: {
  24556. tags: ['a', 'blockquote', 'br', 'cite', 'em', 'img', 'li', 'ol', 'p', 'span', 'strong', 'ul', 'body'],
  24557. attributes: {
  24558. 'a': ['href'],
  24559. 'blockquote': ['style'],
  24560. 'br': [],
  24561. 'cite': ['style'],
  24562. 'em': [],
  24563. 'img': ['src', 'alt', 'style', 'height', 'width'],
  24564. 'li': ['style'],
  24565. 'ol': ['style'],
  24566. 'p': ['style'],
  24567. 'span': ['style'],
  24568. 'strong': [],
  24569. 'ul': ['style'],
  24570. 'body': []
  24571. },
  24572. css: ['background-color', 'color', 'font-family', 'font-size', 'font-style', 'font-weight', 'margin-left', 'margin-right', 'text-align', 'text-decoration'],
  24573. /** Function: XHTML.validTag
  24574. *
  24575. * Utility method to determine whether a tag is allowed
  24576. * in the XHTML_IM namespace.
  24577. *
  24578. * XHTML tag names are case sensitive and must be lower case.
  24579. */
  24580. validTag: function validTag(tag) {
  24581. for (var i = 0; i < Strophe.XHTML.tags.length; i++) {
  24582. if (tag === Strophe.XHTML.tags[i]) {
  24583. return true;
  24584. }
  24585. }
  24586. return false;
  24587. },
  24588. /** Function: XHTML.validAttribute
  24589. *
  24590. * Utility method to determine whether an attribute is allowed
  24591. * as recommended per XEP-0071
  24592. *
  24593. * XHTML attribute names are case sensitive and must be lower case.
  24594. */
  24595. validAttribute: function validAttribute(tag, attribute) {
  24596. if (typeof Strophe.XHTML.attributes[tag] !== 'undefined' && Strophe.XHTML.attributes[tag].length > 0) {
  24597. for (var i = 0; i < Strophe.XHTML.attributes[tag].length; i++) {
  24598. if (attribute === Strophe.XHTML.attributes[tag][i]) {
  24599. return true;
  24600. }
  24601. }
  24602. }
  24603. return false;
  24604. },
  24605. validCSS: function validCSS(style) {
  24606. for (var i = 0; i < Strophe.XHTML.css.length; i++) {
  24607. if (style === Strophe.XHTML.css[i]) {
  24608. return true;
  24609. }
  24610. }
  24611. return false;
  24612. }
  24613. },
  24614. /** Constants: Connection Status Constants
  24615. * Connection status constants for use by the connection handler
  24616. * callback.
  24617. *
  24618. * Status.ERROR - An error has occurred
  24619. * Status.CONNECTING - The connection is currently being made
  24620. * Status.CONNFAIL - The connection attempt failed
  24621. * Status.AUTHENTICATING - The connection is authenticating
  24622. * Status.AUTHFAIL - The authentication attempt failed
  24623. * Status.CONNECTED - The connection has succeeded
  24624. * Status.DISCONNECTED - The connection has been terminated
  24625. * Status.DISCONNECTING - The connection is currently being terminated
  24626. * Status.ATTACHED - The connection has been attached
  24627. * Status.REDIRECT - The connection has been redirected
  24628. * Status.CONNTIMEOUT - The connection has timed out
  24629. */
  24630. Status: {
  24631. ERROR: 0,
  24632. CONNECTING: 1,
  24633. CONNFAIL: 2,
  24634. AUTHENTICATING: 3,
  24635. AUTHFAIL: 4,
  24636. CONNECTED: 5,
  24637. DISCONNECTED: 6,
  24638. DISCONNECTING: 7,
  24639. ATTACHED: 8,
  24640. REDIRECT: 9,
  24641. CONNTIMEOUT: 10
  24642. },
  24643. ErrorCondition: {
  24644. BAD_FORMAT: "bad-format",
  24645. CONFLICT: "conflict",
  24646. MISSING_JID_NODE: "x-strophe-bad-non-anon-jid",
  24647. NO_AUTH_MECH: "no-auth-mech",
  24648. UNKNOWN_REASON: "unknown"
  24649. },
  24650. /** Constants: Log Level Constants
  24651. * Logging level indicators.
  24652. *
  24653. * LogLevel.DEBUG - Debug output
  24654. * LogLevel.INFO - Informational output
  24655. * LogLevel.WARN - Warnings
  24656. * LogLevel.ERROR - Errors
  24657. * LogLevel.FATAL - Fatal errors
  24658. */
  24659. LogLevel: {
  24660. DEBUG: 0,
  24661. INFO: 1,
  24662. WARN: 2,
  24663. ERROR: 3,
  24664. FATAL: 4
  24665. },
  24666. /** PrivateConstants: DOM Element Type Constants
  24667. * DOM element types.
  24668. *
  24669. * ElementType.NORMAL - Normal element.
  24670. * ElementType.TEXT - Text data element.
  24671. * ElementType.FRAGMENT - XHTML fragment element.
  24672. */
  24673. ElementType: {
  24674. NORMAL: 1,
  24675. TEXT: 3,
  24676. CDATA: 4,
  24677. FRAGMENT: 11
  24678. },
  24679. /** PrivateConstants: Timeout Values
  24680. * Timeout values for error states. These values are in seconds.
  24681. * These should not be changed unless you know exactly what you are
  24682. * doing.
  24683. *
  24684. * TIMEOUT - Timeout multiplier. A waiting request will be considered
  24685. * failed after Math.floor(TIMEOUT * wait) seconds have elapsed.
  24686. * This defaults to 1.1, and with default wait, 66 seconds.
  24687. * SECONDARY_TIMEOUT - Secondary timeout multiplier. In cases where
  24688. * Strophe can detect early failure, it will consider the request
  24689. * failed if it doesn't return after
  24690. * Math.floor(SECONDARY_TIMEOUT * wait) seconds have elapsed.
  24691. * This defaults to 0.1, and with default wait, 6 seconds.
  24692. */
  24693. TIMEOUT: 1.1,
  24694. SECONDARY_TIMEOUT: 0.1,
  24695. /** Function: addNamespace
  24696. * This function is used to extend the current namespaces in
  24697. * Strophe.NS. It takes a key and a value with the key being the
  24698. * name of the new namespace, with its actual value.
  24699. * For example:
  24700. * Strophe.addNamespace('PUBSUB', "http://jabber.org/protocol/pubsub");
  24701. *
  24702. * Parameters:
  24703. * (String) name - The name under which the namespace will be
  24704. * referenced under Strophe.NS
  24705. * (String) value - The actual namespace.
  24706. */
  24707. addNamespace: function addNamespace(name, value) {
  24708. Strophe.NS[name] = value;
  24709. },
  24710. /** Function: forEachChild
  24711. * Map a function over some or all child elements of a given element.
  24712. *
  24713. * This is a small convenience function for mapping a function over
  24714. * some or all of the children of an element. If elemName is null, all
  24715. * children will be passed to the function, otherwise only children
  24716. * whose tag names match elemName will be passed.
  24717. *
  24718. * Parameters:
  24719. * (XMLElement) elem - The element to operate on.
  24720. * (String) elemName - The child element tag name filter.
  24721. * (Function) func - The function to apply to each child. This
  24722. * function should take a single argument, a DOM element.
  24723. */
  24724. forEachChild: function forEachChild(elem, elemName, func) {
  24725. for (var i = 0; i < elem.childNodes.length; i++) {
  24726. var childNode = elem.childNodes[i];
  24727. if (childNode.nodeType === Strophe.ElementType.NORMAL && (!elemName || this.isTagEqual(childNode, elemName))) {
  24728. func(childNode);
  24729. }
  24730. }
  24731. },
  24732. /** Function: isTagEqual
  24733. * Compare an element's tag name with a string.
  24734. *
  24735. * This function is case sensitive.
  24736. *
  24737. * Parameters:
  24738. * (XMLElement) el - A DOM element.
  24739. * (String) name - The element name.
  24740. *
  24741. * Returns:
  24742. * true if the element's tag name matches _el_, and false
  24743. * otherwise.
  24744. */
  24745. isTagEqual: function isTagEqual(el, name) {
  24746. return el.tagName === name;
  24747. },
  24748. /** PrivateVariable: _xmlGenerator
  24749. * _Private_ variable that caches a DOM document to
  24750. * generate elements.
  24751. */
  24752. _xmlGenerator: null,
  24753. /** PrivateFunction: _makeGenerator
  24754. * _Private_ function that creates a dummy XML DOM document to serve as
  24755. * an element and text node generator.
  24756. */
  24757. _makeGenerator: function _makeGenerator() {
  24758. var doc; // IE9 does implement createDocument(); however, using it will cause the browser to leak memory on page unload.
  24759. // Here, we test for presence of createDocument() plus IE's proprietary documentMode attribute, which would be
  24760. // less than 10 in the case of IE9 and below.
  24761. if (document.implementation.createDocument === undefined || document.implementation.createDocument && document.documentMode && document.documentMode < 10) {
  24762. doc = this._getIEXmlDom();
  24763. doc.appendChild(doc.createElement('strophe'));
  24764. } else {
  24765. doc = document.implementation.createDocument('jabber:client', 'strophe', null);
  24766. }
  24767. return doc;
  24768. },
  24769. /** Function: xmlGenerator
  24770. * Get the DOM document to generate elements.
  24771. *
  24772. * Returns:
  24773. * The currently used DOM document.
  24774. */
  24775. xmlGenerator: function xmlGenerator() {
  24776. if (!Strophe._xmlGenerator) {
  24777. Strophe._xmlGenerator = Strophe._makeGenerator();
  24778. }
  24779. return Strophe._xmlGenerator;
  24780. },
  24781. /** PrivateFunction: _getIEXmlDom
  24782. * Gets IE xml doc object
  24783. *
  24784. * Returns:
  24785. * A Microsoft XML DOM Object
  24786. * See Also:
  24787. * http://msdn.microsoft.com/en-us/library/ms757837%28VS.85%29.aspx
  24788. */
  24789. _getIEXmlDom: function _getIEXmlDom() {
  24790. var doc = null;
  24791. var docStrings = ["Msxml2.DOMDocument.6.0", "Msxml2.DOMDocument.5.0", "Msxml2.DOMDocument.4.0", "MSXML2.DOMDocument.3.0", "MSXML2.DOMDocument", "MSXML.DOMDocument", "Microsoft.XMLDOM"];
  24792. for (var d = 0; d < docStrings.length; d++) {
  24793. if (doc === null) {
  24794. try {
  24795. doc = new ActiveXObject(docStrings[d]);
  24796. } catch (e) {
  24797. doc = null;
  24798. }
  24799. } else {
  24800. break;
  24801. }
  24802. }
  24803. return doc;
  24804. },
  24805. /** Function: xmlElement
  24806. * Create an XML DOM element.
  24807. *
  24808. * This function creates an XML DOM element correctly across all
  24809. * implementations. Note that these are not HTML DOM elements, which
  24810. * aren't appropriate for XMPP stanzas.
  24811. *
  24812. * Parameters:
  24813. * (String) name - The name for the element.
  24814. * (Array|Object) attrs - An optional array or object containing
  24815. * key/value pairs to use as element attributes. The object should
  24816. * be in the format {'key': 'value'} or {key: 'value'}. The array
  24817. * should have the format [['key1', 'value1'], ['key2', 'value2']].
  24818. * (String) text - The text child data for the element.
  24819. *
  24820. * Returns:
  24821. * A new XML DOM element.
  24822. */
  24823. xmlElement: function xmlElement(name) {
  24824. if (!name) {
  24825. return null;
  24826. }
  24827. var node = Strophe.xmlGenerator().createElement(name); // FIXME: this should throw errors if args are the wrong type or
  24828. // there are more than two optional args
  24829. for (var a = 1; a < arguments.length; a++) {
  24830. var arg = arguments[a];
  24831. if (!arg) {
  24832. continue;
  24833. }
  24834. if (typeof arg === "string" || typeof arg === "number") {
  24835. node.appendChild(Strophe.xmlTextNode(arg));
  24836. } else if (_typeof(arg) === "object" && typeof arg.sort === "function") {
  24837. for (var i = 0; i < arg.length; i++) {
  24838. var attr = arg[i];
  24839. if (_typeof(attr) === "object" && typeof attr.sort === "function" && attr[1] !== undefined && attr[1] !== null) {
  24840. node.setAttribute(attr[0], attr[1]);
  24841. }
  24842. }
  24843. } else if (_typeof(arg) === "object") {
  24844. for (var k in arg) {
  24845. if (Object.prototype.hasOwnProperty.call(arg, k) && arg[k] !== undefined && arg[k] !== null) {
  24846. node.setAttribute(k, arg[k]);
  24847. }
  24848. }
  24849. }
  24850. }
  24851. return node;
  24852. },
  24853. /* Function: xmlescape
  24854. * Excapes invalid xml characters.
  24855. *
  24856. * Parameters:
  24857. * (String) text - text to escape.
  24858. *
  24859. * Returns:
  24860. * Escaped text.
  24861. */
  24862. xmlescape: function xmlescape(text) {
  24863. text = text.replace(/\&/g, "&amp;");
  24864. text = text.replace(/</g, "&lt;");
  24865. text = text.replace(/>/g, "&gt;");
  24866. text = text.replace(/'/g, "&apos;");
  24867. text = text.replace(/"/g, "&quot;");
  24868. return text;
  24869. },
  24870. /* Function: xmlunescape
  24871. * Unexcapes invalid xml characters.
  24872. *
  24873. * Parameters:
  24874. * (String) text - text to unescape.
  24875. *
  24876. * Returns:
  24877. * Unescaped text.
  24878. */
  24879. xmlunescape: function xmlunescape(text) {
  24880. text = text.replace(/\&amp;/g, "&");
  24881. text = text.replace(/&lt;/g, "<");
  24882. text = text.replace(/&gt;/g, ">");
  24883. text = text.replace(/&apos;/g, "'");
  24884. text = text.replace(/&quot;/g, "\"");
  24885. return text;
  24886. },
  24887. /** Function: xmlTextNode
  24888. * Creates an XML DOM text node.
  24889. *
  24890. * Provides a cross implementation version of document.createTextNode.
  24891. *
  24892. * Parameters:
  24893. * (String) text - The content of the text node.
  24894. *
  24895. * Returns:
  24896. * A new XML DOM text node.
  24897. */
  24898. xmlTextNode: function xmlTextNode(text) {
  24899. return Strophe.xmlGenerator().createTextNode(text);
  24900. },
  24901. /** Function: xmlHtmlNode
  24902. * Creates an XML DOM html node.
  24903. *
  24904. * Parameters:
  24905. * (String) html - The content of the html node.
  24906. *
  24907. * Returns:
  24908. * A new XML DOM text node.
  24909. */
  24910. xmlHtmlNode: function xmlHtmlNode(html) {
  24911. var node; //ensure text is escaped
  24912. if (DOMParser) {
  24913. var parser = new DOMParser();
  24914. node = parser.parseFromString(html, "text/xml");
  24915. } else {
  24916. node = new ActiveXObject("Microsoft.XMLDOM");
  24917. node.async = "false";
  24918. node.loadXML(html);
  24919. }
  24920. return node;
  24921. },
  24922. /** Function: getText
  24923. * Get the concatenation of all text children of an element.
  24924. *
  24925. * Parameters:
  24926. * (XMLElement) elem - A DOM element.
  24927. *
  24928. * Returns:
  24929. * A String with the concatenated text of all text element children.
  24930. */
  24931. getText: function getText(elem) {
  24932. if (!elem) {
  24933. return null;
  24934. }
  24935. var str = "";
  24936. if (elem.childNodes.length === 0 && elem.nodeType === Strophe.ElementType.TEXT) {
  24937. str += elem.nodeValue;
  24938. }
  24939. for (var i = 0; i < elem.childNodes.length; i++) {
  24940. if (elem.childNodes[i].nodeType === Strophe.ElementType.TEXT) {
  24941. str += elem.childNodes[i].nodeValue;
  24942. }
  24943. }
  24944. return Strophe.xmlescape(str);
  24945. },
  24946. /** Function: copyElement
  24947. * Copy an XML DOM element.
  24948. *
  24949. * This function copies a DOM element and all its descendants and returns
  24950. * the new copy.
  24951. *
  24952. * Parameters:
  24953. * (XMLElement) elem - A DOM element.
  24954. *
  24955. * Returns:
  24956. * A new, copied DOM element tree.
  24957. */
  24958. copyElement: function copyElement(elem) {
  24959. var el;
  24960. if (elem.nodeType === Strophe.ElementType.NORMAL) {
  24961. el = Strophe.xmlElement(elem.tagName);
  24962. for (var i = 0; i < elem.attributes.length; i++) {
  24963. el.setAttribute(elem.attributes[i].nodeName, elem.attributes[i].value);
  24964. }
  24965. for (var _i = 0; _i < elem.childNodes.length; _i++) {
  24966. el.appendChild(Strophe.copyElement(elem.childNodes[_i]));
  24967. }
  24968. } else if (elem.nodeType === Strophe.ElementType.TEXT) {
  24969. el = Strophe.xmlGenerator().createTextNode(elem.nodeValue);
  24970. }
  24971. return el;
  24972. },
  24973. /** Function: createHtml
  24974. * Copy an HTML DOM element into an XML DOM.
  24975. *
  24976. * This function copies a DOM element and all its descendants and returns
  24977. * the new copy.
  24978. *
  24979. * Parameters:
  24980. * (HTMLElement) elem - A DOM element.
  24981. *
  24982. * Returns:
  24983. * A new, copied DOM element tree.
  24984. */
  24985. createHtml: function createHtml(elem) {
  24986. var el;
  24987. if (elem.nodeType === Strophe.ElementType.NORMAL) {
  24988. var tag = elem.nodeName.toLowerCase(); // XHTML tags must be lower case.
  24989. if (Strophe.XHTML.validTag(tag)) {
  24990. try {
  24991. el = Strophe.xmlElement(tag);
  24992. for (var i = 0; i < Strophe.XHTML.attributes[tag].length; i++) {
  24993. var attribute = Strophe.XHTML.attributes[tag][i];
  24994. var value = elem.getAttribute(attribute);
  24995. if (typeof value === 'undefined' || value === null || value === '' || value === false || value === 0) {
  24996. continue;
  24997. }
  24998. if (attribute === 'style' && _typeof(value) === 'object' && typeof value.cssText !== 'undefined') {
  24999. value = value.cssText; // we're dealing with IE, need to get CSS out
  25000. } // filter out invalid css styles
  25001. if (attribute === 'style') {
  25002. var css = [];
  25003. var cssAttrs = value.split(';');
  25004. for (var j = 0; j < cssAttrs.length; j++) {
  25005. var attr = cssAttrs[j].split(':');
  25006. var cssName = attr[0].replace(/^\s*/, "").replace(/\s*$/, "").toLowerCase();
  25007. if (Strophe.XHTML.validCSS(cssName)) {
  25008. var cssValue = attr[1].replace(/^\s*/, "").replace(/\s*$/, "");
  25009. css.push(cssName + ': ' + cssValue);
  25010. }
  25011. }
  25012. if (css.length > 0) {
  25013. value = css.join('; ');
  25014. el.setAttribute(attribute, value);
  25015. }
  25016. } else {
  25017. el.setAttribute(attribute, value);
  25018. }
  25019. }
  25020. for (var _i2 = 0; _i2 < elem.childNodes.length; _i2++) {
  25021. el.appendChild(Strophe.createHtml(elem.childNodes[_i2]));
  25022. }
  25023. } catch (e) {
  25024. // invalid elements
  25025. el = Strophe.xmlTextNode('');
  25026. }
  25027. } else {
  25028. el = Strophe.xmlGenerator().createDocumentFragment();
  25029. for (var _i3 = 0; _i3 < elem.childNodes.length; _i3++) {
  25030. el.appendChild(Strophe.createHtml(elem.childNodes[_i3]));
  25031. }
  25032. }
  25033. } else if (elem.nodeType === Strophe.ElementType.FRAGMENT) {
  25034. el = Strophe.xmlGenerator().createDocumentFragment();
  25035. for (var _i4 = 0; _i4 < elem.childNodes.length; _i4++) {
  25036. el.appendChild(Strophe.createHtml(elem.childNodes[_i4]));
  25037. }
  25038. } else if (elem.nodeType === Strophe.ElementType.TEXT) {
  25039. el = Strophe.xmlTextNode(elem.nodeValue);
  25040. }
  25041. return el;
  25042. },
  25043. /** Function: escapeNode
  25044. * Escape the node part (also called local part) of a JID.
  25045. *
  25046. * Parameters:
  25047. * (String) node - A node (or local part).
  25048. *
  25049. * Returns:
  25050. * An escaped node (or local part).
  25051. */
  25052. escapeNode: function escapeNode(node) {
  25053. if (typeof node !== "string") {
  25054. return node;
  25055. }
  25056. return node.replace(/^\s+|\s+$/g, '').replace(/\\/g, "\\5c").replace(/ /g, "\\20").replace(/\"/g, "\\22").replace(/\&/g, "\\26").replace(/\'/g, "\\27").replace(/\//g, "\\2f").replace(/:/g, "\\3a").replace(/</g, "\\3c").replace(/>/g, "\\3e").replace(/@/g, "\\40");
  25057. },
  25058. /** Function: unescapeNode
  25059. * Unescape a node part (also called local part) of a JID.
  25060. *
  25061. * Parameters:
  25062. * (String) node - A node (or local part).
  25063. *
  25064. * Returns:
  25065. * An unescaped node (or local part).
  25066. */
  25067. unescapeNode: function unescapeNode(node) {
  25068. if (typeof node !== "string") {
  25069. return node;
  25070. }
  25071. return node.replace(/\\20/g, " ").replace(/\\22/g, '"').replace(/\\26/g, "&").replace(/\\27/g, "'").replace(/\\2f/g, "/").replace(/\\3a/g, ":").replace(/\\3c/g, "<").replace(/\\3e/g, ">").replace(/\\40/g, "@").replace(/\\5c/g, "\\");
  25072. },
  25073. /** Function: getNodeFromJid
  25074. * Get the node portion of a JID String.
  25075. *
  25076. * Parameters:
  25077. * (String) jid - A JID.
  25078. *
  25079. * Returns:
  25080. * A String containing the node.
  25081. */
  25082. getNodeFromJid: function getNodeFromJid(jid) {
  25083. if (jid.indexOf("@") < 0) {
  25084. return null;
  25085. }
  25086. return jid.split("@")[0];
  25087. },
  25088. /** Function: getDomainFromJid
  25089. * Get the domain portion of a JID String.
  25090. *
  25091. * Parameters:
  25092. * (String) jid - A JID.
  25093. *
  25094. * Returns:
  25095. * A String containing the domain.
  25096. */
  25097. getDomainFromJid: function getDomainFromJid(jid) {
  25098. var bare = Strophe.getBareJidFromJid(jid);
  25099. if (bare.indexOf("@") < 0) {
  25100. return bare;
  25101. } else {
  25102. var parts = bare.split("@");
  25103. parts.splice(0, 1);
  25104. return parts.join('@');
  25105. }
  25106. },
  25107. /** Function: getResourceFromJid
  25108. * Get the resource portion of a JID String.
  25109. *
  25110. * Parameters:
  25111. * (String) jid - A JID.
  25112. *
  25113. * Returns:
  25114. * A String containing the resource.
  25115. */
  25116. getResourceFromJid: function getResourceFromJid(jid) {
  25117. var s = jid.split("/");
  25118. if (s.length < 2) {
  25119. return null;
  25120. }
  25121. s.splice(0, 1);
  25122. return s.join('/');
  25123. },
  25124. /** Function: getBareJidFromJid
  25125. * Get the bare JID from a JID String.
  25126. *
  25127. * Parameters:
  25128. * (String) jid - A JID.
  25129. *
  25130. * Returns:
  25131. * A String containing the bare JID.
  25132. */
  25133. getBareJidFromJid: function getBareJidFromJid(jid) {
  25134. return jid ? jid.split("/")[0] : null;
  25135. },
  25136. /** PrivateFunction: _handleError
  25137. * _Private_ function that properly logs an error to the console
  25138. */
  25139. _handleError: function _handleError(e) {
  25140. if (typeof e.stack !== "undefined") {
  25141. Strophe.fatal(e.stack);
  25142. }
  25143. if (e.sourceURL) {
  25144. Strophe.fatal("error: " + this.handler + " " + e.sourceURL + ":" + e.line + " - " + e.name + ": " + e.message);
  25145. } else if (e.fileName) {
  25146. Strophe.fatal("error: " + this.handler + " " + e.fileName + ":" + e.lineNumber + " - " + e.name + ": " + e.message);
  25147. } else {
  25148. Strophe.fatal("error: " + e.message);
  25149. }
  25150. },
  25151. /** Function: log
  25152. * User overrideable logging function.
  25153. *
  25154. * This function is called whenever the Strophe library calls any
  25155. * of the logging functions. The default implementation of this
  25156. * function logs only fatal errors. If client code wishes to handle the logging
  25157. * messages, it should override this with
  25158. * > Strophe.log = function (level, msg) {
  25159. * > (user code here)
  25160. * > };
  25161. *
  25162. * Please note that data sent and received over the wire is logged
  25163. * via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().
  25164. *
  25165. * The different levels and their meanings are
  25166. *
  25167. * DEBUG - Messages useful for debugging purposes.
  25168. * INFO - Informational messages. This is mostly information like
  25169. * 'disconnect was called' or 'SASL auth succeeded'.
  25170. * WARN - Warnings about potential problems. This is mostly used
  25171. * to report transient connection errors like request timeouts.
  25172. * ERROR - Some error occurred.
  25173. * FATAL - A non-recoverable fatal error occurred.
  25174. *
  25175. * Parameters:
  25176. * (Integer) level - The log level of the log message. This will
  25177. * be one of the values in Strophe.LogLevel.
  25178. * (String) msg - The log message.
  25179. */
  25180. log: function log(level, msg) {
  25181. if (level === this.LogLevel.FATAL && _typeof(window.console) === 'object' && typeof window.console.error === 'function') {
  25182. window.console.error(msg);
  25183. }
  25184. },
  25185. /** Function: debug
  25186. * Log a message at the Strophe.LogLevel.DEBUG level.
  25187. *
  25188. * Parameters:
  25189. * (String) msg - The log message.
  25190. */
  25191. debug: function debug(msg) {
  25192. this.log(this.LogLevel.DEBUG, msg);
  25193. },
  25194. /** Function: info
  25195. * Log a message at the Strophe.LogLevel.INFO level.
  25196. *
  25197. * Parameters:
  25198. * (String) msg - The log message.
  25199. */
  25200. info: function info(msg) {
  25201. this.log(this.LogLevel.INFO, msg);
  25202. },
  25203. /** Function: warn
  25204. * Log a message at the Strophe.LogLevel.WARN level.
  25205. *
  25206. * Parameters:
  25207. * (String) msg - The log message.
  25208. */
  25209. warn: function warn(msg) {
  25210. this.log(this.LogLevel.WARN, msg);
  25211. },
  25212. /** Function: error
  25213. * Log a message at the Strophe.LogLevel.ERROR level.
  25214. *
  25215. * Parameters:
  25216. * (String) msg - The log message.
  25217. */
  25218. error: function error(msg) {
  25219. this.log(this.LogLevel.ERROR, msg);
  25220. },
  25221. /** Function: fatal
  25222. * Log a message at the Strophe.LogLevel.FATAL level.
  25223. *
  25224. * Parameters:
  25225. * (String) msg - The log message.
  25226. */
  25227. fatal: function fatal(msg) {
  25228. this.log(this.LogLevel.FATAL, msg);
  25229. },
  25230. /** Function: serialize
  25231. * Render a DOM element and all descendants to a String.
  25232. *
  25233. * Parameters:
  25234. * (XMLElement) elem - A DOM element.
  25235. *
  25236. * Returns:
  25237. * The serialized element tree as a String.
  25238. */
  25239. serialize: function serialize(elem) {
  25240. if (!elem) {
  25241. return null;
  25242. }
  25243. if (typeof elem.tree === "function") {
  25244. elem = elem.tree();
  25245. }
  25246. var names = _toConsumableArray(Array(elem.attributes.length).keys()).map(function (i) {
  25247. return elem.attributes[i].nodeName;
  25248. });
  25249. names.sort();
  25250. var result = names.reduce(function (a, n) {
  25251. return "".concat(a, " ").concat(n, "=\"").concat(Strophe.xmlescape(elem.attributes.getNamedItem(n).value), "\"");
  25252. }, "<".concat(elem.nodeName));
  25253. if (elem.childNodes.length > 0) {
  25254. result += ">";
  25255. for (var i = 0; i < elem.childNodes.length; i++) {
  25256. var child = elem.childNodes[i];
  25257. switch (child.nodeType) {
  25258. case Strophe.ElementType.NORMAL:
  25259. // normal element, so recurse
  25260. result += Strophe.serialize(child);
  25261. break;
  25262. case Strophe.ElementType.TEXT:
  25263. // text element to escape values
  25264. result += Strophe.xmlescape(child.nodeValue);
  25265. break;
  25266. case Strophe.ElementType.CDATA:
  25267. // cdata section so don't escape values
  25268. result += "<![CDATA[" + child.nodeValue + "]]>";
  25269. }
  25270. }
  25271. result += "</" + elem.nodeName + ">";
  25272. } else {
  25273. result += "/>";
  25274. }
  25275. return result;
  25276. },
  25277. /** PrivateVariable: _requestId
  25278. * _Private_ variable that keeps track of the request ids for
  25279. * connections.
  25280. */
  25281. _requestId: 0,
  25282. /** PrivateVariable: Strophe.connectionPlugins
  25283. * _Private_ variable Used to store plugin names that need
  25284. * initialization on Strophe.Connection construction.
  25285. */
  25286. _connectionPlugins: {},
  25287. /** Function: addConnectionPlugin
  25288. * Extends the Strophe.Connection object with the given plugin.
  25289. *
  25290. * Parameters:
  25291. * (String) name - The name of the extension.
  25292. * (Object) ptype - The plugin's prototype.
  25293. */
  25294. addConnectionPlugin: function addConnectionPlugin(name, ptype) {
  25295. Strophe._connectionPlugins[name] = ptype;
  25296. }
  25297. };
  25298. /** Class: Strophe.Builder
  25299. * XML DOM builder.
  25300. *
  25301. * This object provides an interface similar to JQuery but for building
  25302. * DOM elements easily and rapidly. All the functions except for toString()
  25303. * and tree() return the object, so calls can be chained. Here's an
  25304. * example using the $iq() builder helper.
  25305. * > $iq({to: 'you', from: 'me', type: 'get', id: '1'})
  25306. * > .c('query', {xmlns: 'strophe:example'})
  25307. * > .c('example')
  25308. * > .toString()
  25309. *
  25310. * The above generates this XML fragment
  25311. * > <iq to='you' from='me' type='get' id='1'>
  25312. * > <query xmlns='strophe:example'>
  25313. * > <example/>
  25314. * > </query>
  25315. * > </iq>
  25316. * The corresponding DOM manipulations to get a similar fragment would be
  25317. * a lot more tedious and probably involve several helper variables.
  25318. *
  25319. * Since adding children makes new operations operate on the child, up()
  25320. * is provided to traverse up the tree. To add two children, do
  25321. * > builder.c('child1', ...).up().c('child2', ...)
  25322. * The next operation on the Builder will be relative to the second child.
  25323. */
  25324. /** Constructor: Strophe.Builder
  25325. * Create a Strophe.Builder object.
  25326. *
  25327. * The attributes should be passed in object notation. For example
  25328. * > let b = new Builder('message', {to: 'you', from: 'me'});
  25329. * or
  25330. * > let b = new Builder('messsage', {'xml:lang': 'en'});
  25331. *
  25332. * Parameters:
  25333. * (String) name - The name of the root element.
  25334. * (Object) attrs - The attributes for the root element in object notation.
  25335. *
  25336. * Returns:
  25337. * A new Strophe.Builder.
  25338. */
  25339. Strophe.Builder = function (name, attrs) {
  25340. // Set correct namespace for jabber:client elements
  25341. if (name === "presence" || name === "message" || name === "iq") {
  25342. if (attrs && !attrs.xmlns) {
  25343. attrs.xmlns = Strophe.NS.CLIENT;
  25344. } else if (!attrs) {
  25345. attrs = {
  25346. xmlns: Strophe.NS.CLIENT
  25347. };
  25348. }
  25349. } // Holds the tree being built.
  25350. this.nodeTree = Strophe.xmlElement(name, attrs); // Points to the current operation node.
  25351. this.node = this.nodeTree;
  25352. };
  25353. Strophe.Builder.prototype = {
  25354. /** Function: tree
  25355. * Return the DOM tree.
  25356. *
  25357. * This function returns the current DOM tree as an element object. This
  25358. * is suitable for passing to functions like Strophe.Connection.send().
  25359. *
  25360. * Returns:
  25361. * The DOM tree as a element object.
  25362. */
  25363. tree: function tree() {
  25364. return this.nodeTree;
  25365. },
  25366. /** Function: toString
  25367. * Serialize the DOM tree to a String.
  25368. *
  25369. * This function returns a string serialization of the current DOM
  25370. * tree. It is often used internally to pass data to a
  25371. * Strophe.Request object.
  25372. *
  25373. * Returns:
  25374. * The serialized DOM tree in a String.
  25375. */
  25376. toString: function toString() {
  25377. return Strophe.serialize(this.nodeTree);
  25378. },
  25379. /** Function: up
  25380. * Make the current parent element the new current element.
  25381. *
  25382. * This function is often used after c() to traverse back up the tree.
  25383. * For example, to add two children to the same element
  25384. * > builder.c('child1', {}).up().c('child2', {});
  25385. *
  25386. * Returns:
  25387. * The Stophe.Builder object.
  25388. */
  25389. up: function up() {
  25390. this.node = this.node.parentNode;
  25391. return this;
  25392. },
  25393. /** Function: root
  25394. * Make the root element the new current element.
  25395. *
  25396. * When at a deeply nested element in the tree, this function can be used
  25397. * to jump back to the root of the tree, instead of having to repeatedly
  25398. * call up().
  25399. *
  25400. * Returns:
  25401. * The Stophe.Builder object.
  25402. */
  25403. root: function root() {
  25404. this.node = this.nodeTree;
  25405. return this;
  25406. },
  25407. /** Function: attrs
  25408. * Add or modify attributes of the current element.
  25409. *
  25410. * The attributes should be passed in object notation. This function
  25411. * does not move the current element pointer.
  25412. *
  25413. * Parameters:
  25414. * (Object) moreattrs - The attributes to add/modify in object notation.
  25415. *
  25416. * Returns:
  25417. * The Strophe.Builder object.
  25418. */
  25419. attrs: function attrs(moreattrs) {
  25420. for (var k in moreattrs) {
  25421. if (Object.prototype.hasOwnProperty.call(moreattrs, k)) {
  25422. if (moreattrs[k] === undefined) {
  25423. this.node.removeAttribute(k);
  25424. } else {
  25425. this.node.setAttribute(k, moreattrs[k]);
  25426. }
  25427. }
  25428. }
  25429. return this;
  25430. },
  25431. /** Function: c
  25432. * Add a child to the current element and make it the new current
  25433. * element.
  25434. *
  25435. * This function moves the current element pointer to the child,
  25436. * unless text is provided. If you need to add another child, it
  25437. * is necessary to use up() to go back to the parent in the tree.
  25438. *
  25439. * Parameters:
  25440. * (String) name - The name of the child.
  25441. * (Object) attrs - The attributes of the child in object notation.
  25442. * (String) text - The text to add to the child.
  25443. *
  25444. * Returns:
  25445. * The Strophe.Builder object.
  25446. */
  25447. c: function c(name, attrs, text) {
  25448. var child = Strophe.xmlElement(name, attrs, text);
  25449. this.node.appendChild(child);
  25450. if (typeof text !== "string" && typeof text !== "number") {
  25451. this.node = child;
  25452. }
  25453. return this;
  25454. },
  25455. /** Function: cnode
  25456. * Add a child to the current element and make it the new current
  25457. * element.
  25458. *
  25459. * This function is the same as c() except that instead of using a
  25460. * name and an attributes object to create the child it uses an
  25461. * existing DOM element object.
  25462. *
  25463. * Parameters:
  25464. * (XMLElement) elem - A DOM element.
  25465. *
  25466. * Returns:
  25467. * The Strophe.Builder object.
  25468. */
  25469. cnode: function cnode(elem) {
  25470. var impNode;
  25471. var xmlGen = Strophe.xmlGenerator();
  25472. try {
  25473. impNode = xmlGen.importNode !== undefined;
  25474. } catch (e) {
  25475. impNode = false;
  25476. }
  25477. var newElem = impNode ? xmlGen.importNode(elem, true) : Strophe.copyElement(elem);
  25478. this.node.appendChild(newElem);
  25479. this.node = newElem;
  25480. return this;
  25481. },
  25482. /** Function: t
  25483. * Add a child text element.
  25484. *
  25485. * This *does not* make the child the new current element since there
  25486. * are no children of text elements.
  25487. *
  25488. * Parameters:
  25489. * (String) text - The text data to append to the current element.
  25490. *
  25491. * Returns:
  25492. * The Strophe.Builder object.
  25493. */
  25494. t: function t(text) {
  25495. var child = Strophe.xmlTextNode(text);
  25496. this.node.appendChild(child);
  25497. return this;
  25498. },
  25499. /** Function: h
  25500. * Replace current element contents with the HTML passed in.
  25501. *
  25502. * This *does not* make the child the new current element
  25503. *
  25504. * Parameters:
  25505. * (String) html - The html to insert as contents of current element.
  25506. *
  25507. * Returns:
  25508. * The Strophe.Builder object.
  25509. */
  25510. h: function h(html) {
  25511. var fragment = document.createElement('body'); // force the browser to try and fix any invalid HTML tags
  25512. fragment.innerHTML = html; // copy cleaned html into an xml dom
  25513. var xhtml = Strophe.createHtml(fragment);
  25514. while (xhtml.childNodes.length > 0) {
  25515. this.node.appendChild(xhtml.childNodes[0]);
  25516. }
  25517. return this;
  25518. }
  25519. };
  25520. /** PrivateClass: Strophe.Handler
  25521. * _Private_ helper class for managing stanza handlers.
  25522. *
  25523. * A Strophe.Handler encapsulates a user provided callback function to be
  25524. * executed when matching stanzas are received by the connection.
  25525. * Handlers can be either one-off or persistant depending on their
  25526. * return value. Returning true will cause a Handler to remain active, and
  25527. * returning false will remove the Handler.
  25528. *
  25529. * Users will not use Strophe.Handler objects directly, but instead they
  25530. * will use Strophe.Connection.addHandler() and
  25531. * Strophe.Connection.deleteHandler().
  25532. */
  25533. /** PrivateConstructor: Strophe.Handler
  25534. * Create and initialize a new Strophe.Handler.
  25535. *
  25536. * Parameters:
  25537. * (Function) handler - A function to be executed when the handler is run.
  25538. * (String) ns - The namespace to match.
  25539. * (String) name - The element name to match.
  25540. * (String) type - The element type to match.
  25541. * (String) id - The element id attribute to match.
  25542. * (String) from - The element from attribute to match.
  25543. * (Object) options - Handler options
  25544. *
  25545. * Returns:
  25546. * A new Strophe.Handler object.
  25547. */
  25548. Strophe.Handler = function (handler, ns, name, type, id, from, options) {
  25549. this.handler = handler;
  25550. this.ns = ns;
  25551. this.name = name;
  25552. this.type = type;
  25553. this.id = id;
  25554. this.options = options || {
  25555. 'matchBareFromJid': false,
  25556. 'ignoreNamespaceFragment': false
  25557. }; // BBB: Maintain backward compatibility with old `matchBare` option
  25558. if (this.options.matchBare) {
  25559. Strophe.warn('The "matchBare" option is deprecated, use "matchBareFromJid" instead.');
  25560. this.options.matchBareFromJid = this.options.matchBare;
  25561. delete this.options.matchBare;
  25562. }
  25563. if (this.options.matchBareFromJid) {
  25564. this.from = from ? Strophe.getBareJidFromJid(from) : null;
  25565. } else {
  25566. this.from = from;
  25567. } // whether the handler is a user handler or a system handler
  25568. this.user = true;
  25569. };
  25570. Strophe.Handler.prototype = {
  25571. /** PrivateFunction: getNamespace
  25572. * Returns the XML namespace attribute on an element.
  25573. * If `ignoreNamespaceFragment` was passed in for this handler, then the
  25574. * URL fragment will be stripped.
  25575. *
  25576. * Parameters:
  25577. * (XMLElement) elem - The XML element with the namespace.
  25578. *
  25579. * Returns:
  25580. * The namespace, with optionally the fragment stripped.
  25581. */
  25582. getNamespace: function getNamespace(elem) {
  25583. var elNamespace = elem.getAttribute("xmlns");
  25584. if (elNamespace && this.options.ignoreNamespaceFragment) {
  25585. elNamespace = elNamespace.split('#')[0];
  25586. }
  25587. return elNamespace;
  25588. },
  25589. /** PrivateFunction: namespaceMatch
  25590. * Tests if a stanza matches the namespace set for this Strophe.Handler.
  25591. *
  25592. * Parameters:
  25593. * (XMLElement) elem - The XML element to test.
  25594. *
  25595. * Returns:
  25596. * true if the stanza matches and false otherwise.
  25597. */
  25598. namespaceMatch: function namespaceMatch(elem) {
  25599. var _this = this;
  25600. var nsMatch = false;
  25601. if (!this.ns) {
  25602. return true;
  25603. } else {
  25604. Strophe.forEachChild(elem, null, function (elem) {
  25605. if (_this.getNamespace(elem) === _this.ns) {
  25606. nsMatch = true;
  25607. }
  25608. });
  25609. return nsMatch || this.getNamespace(elem) === this.ns;
  25610. }
  25611. },
  25612. /** PrivateFunction: isMatch
  25613. * Tests if a stanza matches the Strophe.Handler.
  25614. *
  25615. * Parameters:
  25616. * (XMLElement) elem - The XML element to test.
  25617. *
  25618. * Returns:
  25619. * true if the stanza matches and false otherwise.
  25620. */
  25621. isMatch: function isMatch(elem) {
  25622. var from = elem.getAttribute('from');
  25623. if (this.options.matchBareFromJid) {
  25624. from = Strophe.getBareJidFromJid(from);
  25625. }
  25626. var elem_type = elem.getAttribute("type");
  25627. if (this.namespaceMatch(elem) && (!this.name || Strophe.isTagEqual(elem, this.name)) && (!this.type || (Array.isArray(this.type) ? this.type.indexOf(elem_type) !== -1 : elem_type === this.type)) && (!this.id || elem.getAttribute("id") === this.id) && (!this.from || from === this.from)) {
  25628. return true;
  25629. }
  25630. return false;
  25631. },
  25632. /** PrivateFunction: run
  25633. * Run the callback on a matching stanza.
  25634. *
  25635. * Parameters:
  25636. * (XMLElement) elem - The DOM element that triggered the
  25637. * Strophe.Handler.
  25638. *
  25639. * Returns:
  25640. * A boolean indicating if the handler should remain active.
  25641. */
  25642. run: function run(elem) {
  25643. var result = null;
  25644. try {
  25645. result = this.handler(elem);
  25646. } catch (e) {
  25647. Strophe._handleError(e);
  25648. throw e;
  25649. }
  25650. return result;
  25651. },
  25652. /** PrivateFunction: toString
  25653. * Get a String representation of the Strophe.Handler object.
  25654. *
  25655. * Returns:
  25656. * A String.
  25657. */
  25658. toString: function toString() {
  25659. return "{Handler: " + this.handler + "(" + this.name + "," + this.id + "," + this.ns + ")}";
  25660. }
  25661. };
  25662. /** PrivateClass: Strophe.TimedHandler
  25663. * _Private_ helper class for managing timed handlers.
  25664. *
  25665. * A Strophe.TimedHandler encapsulates a user provided callback that
  25666. * should be called after a certain period of time or at regular
  25667. * intervals. The return value of the callback determines whether the
  25668. * Strophe.TimedHandler will continue to fire.
  25669. *
  25670. * Users will not use Strophe.TimedHandler objects directly, but instead
  25671. * they will use Strophe.Connection.addTimedHandler() and
  25672. * Strophe.Connection.deleteTimedHandler().
  25673. */
  25674. /** PrivateConstructor: Strophe.TimedHandler
  25675. * Create and initialize a new Strophe.TimedHandler object.
  25676. *
  25677. * Parameters:
  25678. * (Integer) period - The number of milliseconds to wait before the
  25679. * handler is called.
  25680. * (Function) handler - The callback to run when the handler fires. This
  25681. * function should take no arguments.
  25682. *
  25683. * Returns:
  25684. * A new Strophe.TimedHandler object.
  25685. */
  25686. Strophe.TimedHandler = function (period, handler) {
  25687. this.period = period;
  25688. this.handler = handler;
  25689. this.lastCalled = new Date().getTime();
  25690. this.user = true;
  25691. };
  25692. Strophe.TimedHandler.prototype = {
  25693. /** PrivateFunction: run
  25694. * Run the callback for the Strophe.TimedHandler.
  25695. *
  25696. * Returns:
  25697. * true if the Strophe.TimedHandler should be called again, and false
  25698. * otherwise.
  25699. */
  25700. run: function run() {
  25701. this.lastCalled = new Date().getTime();
  25702. return this.handler();
  25703. },
  25704. /** PrivateFunction: reset
  25705. * Reset the last called time for the Strophe.TimedHandler.
  25706. */
  25707. reset: function reset() {
  25708. this.lastCalled = new Date().getTime();
  25709. },
  25710. /** PrivateFunction: toString
  25711. * Get a string representation of the Strophe.TimedHandler object.
  25712. *
  25713. * Returns:
  25714. * The string representation.
  25715. */
  25716. toString: function toString() {
  25717. return "{TimedHandler: " + this.handler + "(" + this.period + ")}";
  25718. }
  25719. };
  25720. /** Class: Strophe.Connection
  25721. * XMPP Connection manager.
  25722. *
  25723. * This class is the main part of Strophe. It manages a BOSH or websocket
  25724. * connection to an XMPP server and dispatches events to the user callbacks
  25725. * as data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, SASL SCRAM-SHA1
  25726. * and legacy authentication.
  25727. *
  25728. * After creating a Strophe.Connection object, the user will typically
  25729. * call connect() with a user supplied callback to handle connection level
  25730. * events like authentication failure, disconnection, or connection
  25731. * complete.
  25732. *
  25733. * The user will also have several event handlers defined by using
  25734. * addHandler() and addTimedHandler(). These will allow the user code to
  25735. * respond to interesting stanzas or do something periodically with the
  25736. * connection. These handlers will be active once authentication is
  25737. * finished.
  25738. *
  25739. * To send data to the connection, use send().
  25740. */
  25741. /** Constructor: Strophe.Connection
  25742. * Create and initialize a Strophe.Connection object.
  25743. *
  25744. * The transport-protocol for this connection will be chosen automatically
  25745. * based on the given service parameter. URLs starting with "ws://" or
  25746. * "wss://" will use WebSockets, URLs starting with "http://", "https://"
  25747. * or without a protocol will use BOSH.
  25748. *
  25749. * To make Strophe connect to the current host you can leave out the protocol
  25750. * and host part and just pass the path, e.g.
  25751. *
  25752. * > let conn = new Strophe.Connection("/http-bind/");
  25753. *
  25754. * Options common to both Websocket and BOSH:
  25755. * ------------------------------------------
  25756. *
  25757. * cookies:
  25758. *
  25759. * The *cookies* option allows you to pass in cookies to be added to the
  25760. * document. These cookies will then be included in the BOSH XMLHttpRequest
  25761. * or in the websocket connection.
  25762. *
  25763. * The passed in value must be a map of cookie names and string values.
  25764. *
  25765. * > { "myCookie": {
  25766. * > "value": "1234",
  25767. * > "domain": ".example.org",
  25768. * > "path": "/",
  25769. * > "expires": expirationDate
  25770. * > }
  25771. * > }
  25772. *
  25773. * Note that cookies can't be set in this way for other domains (i.e. cross-domain).
  25774. * Those cookies need to be set under those domains, for example they can be
  25775. * set server-side by making a XHR call to that domain to ask it to set any
  25776. * necessary cookies.
  25777. *
  25778. * mechanisms:
  25779. *
  25780. * The *mechanisms* option allows you to specify the SASL mechanisms that this
  25781. * instance of Strophe.Connection (and therefore your XMPP client) will
  25782. * support.
  25783. *
  25784. * The value must be an array of objects with Strophe.SASLMechanism
  25785. * prototypes.
  25786. *
  25787. * If nothing is specified, then the following mechanisms (and their
  25788. * priorities) are registered:
  25789. *
  25790. * SCRAM-SHA1 - 70
  25791. * DIGEST-MD5 - 60
  25792. * PLAIN - 50
  25793. * OAUTH-BEARER - 40
  25794. * OAUTH-2 - 30
  25795. * ANONYMOUS - 20
  25796. * EXTERNAL - 10
  25797. *
  25798. * WebSocket options:
  25799. * ------------------
  25800. *
  25801. * If you want to connect to the current host with a WebSocket connection you
  25802. * can tell Strophe to use WebSockets through a "protocol" attribute in the
  25803. * optional options parameter. Valid values are "ws" for WebSocket and "wss"
  25804. * for Secure WebSocket.
  25805. * So to connect to "wss://CURRENT_HOSTNAME/xmpp-websocket" you would call
  25806. *
  25807. * > let conn = new Strophe.Connection("/xmpp-websocket/", {protocol: "wss"});
  25808. *
  25809. * Note that relative URLs _NOT_ starting with a "/" will also include the path
  25810. * of the current site.
  25811. *
  25812. * Also because downgrading security is not permitted by browsers, when using
  25813. * relative URLs both BOSH and WebSocket connections will use their secure
  25814. * variants if the current connection to the site is also secure (https).
  25815. *
  25816. * BOSH options:
  25817. * -------------
  25818. *
  25819. * By adding "sync" to the options, you can control if requests will
  25820. * be made synchronously or not. The default behaviour is asynchronous.
  25821. * If you want to make requests synchronous, make "sync" evaluate to true.
  25822. * > let conn = new Strophe.Connection("/http-bind/", {sync: true});
  25823. *
  25824. * You can also toggle this on an already established connection.
  25825. * > conn.options.sync = true;
  25826. *
  25827. * The *customHeaders* option can be used to provide custom HTTP headers to be
  25828. * included in the XMLHttpRequests made.
  25829. *
  25830. * The *keepalive* option can be used to instruct Strophe to maintain the
  25831. * current BOSH session across interruptions such as webpage reloads.
  25832. *
  25833. * It will do this by caching the sessions tokens in sessionStorage, and when
  25834. * "restore" is called it will check whether there are cached tokens with
  25835. * which it can resume an existing session.
  25836. *
  25837. * The *withCredentials* option should receive a Boolean value and is used to
  25838. * indicate wether cookies should be included in ajax requests (by default
  25839. * they're not).
  25840. * Set this value to true if you are connecting to a BOSH service
  25841. * and for some reason need to send cookies to it.
  25842. * In order for this to work cross-domain, the server must also enable
  25843. * credentials by setting the Access-Control-Allow-Credentials response header
  25844. * to "true". For most usecases however this setting should be false (which
  25845. * is the default).
  25846. * Additionally, when using Access-Control-Allow-Credentials, the
  25847. * Access-Control-Allow-Origin header can't be set to the wildcard "*", but
  25848. * instead must be restricted to actual domains.
  25849. *
  25850. * The *contentType* option can be set to change the default Content-Type
  25851. * of "text/xml; charset=utf-8", which can be useful to reduce the amount of
  25852. * CORS preflight requests that are sent to the server.
  25853. *
  25854. * Parameters:
  25855. * (String) service - The BOSH or WebSocket service URL.
  25856. * (Object) options - A hash of configuration options
  25857. *
  25858. * Returns:
  25859. * A new Strophe.Connection object.
  25860. */
  25861. Strophe.Connection = function (service, options) {
  25862. var _this2 = this;
  25863. // The service URL
  25864. this.service = service; // Configuration options
  25865. this.options = options || {};
  25866. var proto = this.options.protocol || ""; // Select protocal based on service or options
  25867. if (service.indexOf("ws:") === 0 || service.indexOf("wss:") === 0 || proto.indexOf("ws") === 0) {
  25868. this._proto = new Strophe.Websocket(this);
  25869. } else {
  25870. this._proto = new Strophe.Bosh(this);
  25871. }
  25872. /* The connected JID. */
  25873. this.jid = "";
  25874. /* the JIDs domain */
  25875. this.domain = null;
  25876. /* stream:features */
  25877. this.features = null; // SASL
  25878. this._sasl_data = {};
  25879. this.do_session = false;
  25880. this.do_bind = false; // handler lists
  25881. this.timedHandlers = [];
  25882. this.handlers = [];
  25883. this.removeTimeds = [];
  25884. this.removeHandlers = [];
  25885. this.addTimeds = [];
  25886. this.addHandlers = [];
  25887. this.protocolErrorHandlers = {
  25888. 'HTTP': {},
  25889. 'websocket': {}
  25890. };
  25891. this._idleTimeout = null;
  25892. this._disconnectTimeout = null;
  25893. this.authenticated = false;
  25894. this.connected = false;
  25895. this.disconnecting = false;
  25896. this.do_authentication = true;
  25897. this.paused = false;
  25898. this.restored = false;
  25899. this._data = [];
  25900. this._uniqueId = 0;
  25901. this._sasl_success_handler = null;
  25902. this._sasl_failure_handler = null;
  25903. this._sasl_challenge_handler = null; // Max retries before disconnecting
  25904. this.maxRetries = 5; // Call onIdle callback every 1/10th of a second
  25905. this._idleTimeout = setTimeout(function () {
  25906. return _this2._onIdle();
  25907. }, 100);
  25908. utils__WEBPACK_IMPORTED_MODULE_2__["default"].addCookies(this.options.cookies);
  25909. this.registerSASLMechanisms(this.options.mechanisms); // initialize plugins
  25910. for (var k in Strophe._connectionPlugins) {
  25911. if (Object.prototype.hasOwnProperty.call(Strophe._connectionPlugins, k)) {
  25912. var F = function F() {};
  25913. F.prototype = Strophe._connectionPlugins[k];
  25914. this[k] = new F();
  25915. this[k].init(this);
  25916. }
  25917. }
  25918. };
  25919. Strophe.Connection.prototype = {
  25920. /** Function: reset
  25921. * Reset the connection.
  25922. *
  25923. * This function should be called after a connection is disconnected
  25924. * before that connection is reused.
  25925. */
  25926. reset: function reset() {
  25927. this._proto._reset(); // SASL
  25928. this.do_session = false;
  25929. this.do_bind = false; // handler lists
  25930. this.timedHandlers = [];
  25931. this.handlers = [];
  25932. this.removeTimeds = [];
  25933. this.removeHandlers = [];
  25934. this.addTimeds = [];
  25935. this.addHandlers = [];
  25936. this.authenticated = false;
  25937. this.connected = false;
  25938. this.disconnecting = false;
  25939. this.restored = false;
  25940. this._data = [];
  25941. this._requests = [];
  25942. this._uniqueId = 0;
  25943. },
  25944. /** Function: pause
  25945. * Pause the request manager.
  25946. *
  25947. * This will prevent Strophe from sending any more requests to the
  25948. * server. This is very useful for temporarily pausing
  25949. * BOSH-Connections while a lot of send() calls are happening quickly.
  25950. * This causes Strophe to send the data in a single request, saving
  25951. * many request trips.
  25952. */
  25953. pause: function pause() {
  25954. this.paused = true;
  25955. },
  25956. /** Function: resume
  25957. * Resume the request manager.
  25958. *
  25959. * This resumes after pause() has been called.
  25960. */
  25961. resume: function resume() {
  25962. this.paused = false;
  25963. },
  25964. /** Function: getUniqueId
  25965. * Generate a unique ID for use in <iq/> elements.
  25966. *
  25967. * All <iq/> stanzas are required to have unique id attributes. This
  25968. * function makes creating these easy. Each connection instance has
  25969. * a counter which starts from zero, and the value of this counter
  25970. * plus a colon followed by the suffix becomes the unique id. If no
  25971. * suffix is supplied, the counter is used as the unique id.
  25972. *
  25973. * Suffixes are used to make debugging easier when reading the stream
  25974. * data, and their use is recommended. The counter resets to 0 for
  25975. * every new connection for the same reason. For connections to the
  25976. * same server that authenticate the same way, all the ids should be
  25977. * the same, which makes it easy to see changes. This is useful for
  25978. * automated testing as well.
  25979. *
  25980. * Parameters:
  25981. * (String) suffix - A optional suffix to append to the id.
  25982. *
  25983. * Returns:
  25984. * A unique string to be used for the id attribute.
  25985. */
  25986. getUniqueId: function getUniqueId(suffix) {
  25987. var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  25988. var r = Math.random() * 16 | 0,
  25989. v = c === 'x' ? r : r & 0x3 | 0x8;
  25990. return v.toString(16);
  25991. });
  25992. if (typeof suffix === "string" || typeof suffix === "number") {
  25993. return uuid + ":" + suffix;
  25994. } else {
  25995. return uuid + "";
  25996. }
  25997. },
  25998. /** Function: addProtocolErrorHandler
  25999. * Register a handler function for when a protocol (websocker or HTTP)
  26000. * error occurs.
  26001. *
  26002. * NOTE: Currently only HTTP errors for BOSH requests are handled.
  26003. * Patches that handle websocket errors would be very welcome.
  26004. *
  26005. * Parameters:
  26006. * (String) protocol - 'HTTP' or 'websocket'
  26007. * (Integer) status_code - Error status code (e.g 500, 400 or 404)
  26008. * (Function) callback - Function that will fire on Http error
  26009. *
  26010. * Example:
  26011. * function onError(err_code){
  26012. * //do stuff
  26013. * }
  26014. *
  26015. * let conn = Strophe.connect('http://example.com/http-bind');
  26016. * conn.addProtocolErrorHandler('HTTP', 500, onError);
  26017. * // Triggers HTTP 500 error and onError handler will be called
  26018. * conn.connect('user_jid@incorrect_jabber_host', 'secret', onConnect);
  26019. */
  26020. addProtocolErrorHandler: function addProtocolErrorHandler(protocol, status_code, callback) {
  26021. this.protocolErrorHandlers[protocol][status_code] = callback;
  26022. },
  26023. /** Function: connect
  26024. * Starts the connection process.
  26025. *
  26026. * As the connection process proceeds, the user supplied callback will
  26027. * be triggered multiple times with status updates. The callback
  26028. * should take two arguments - the status code and the error condition.
  26029. *
  26030. * The status code will be one of the values in the Strophe.Status
  26031. * constants. The error condition will be one of the conditions
  26032. * defined in RFC 3920 or the condition 'strophe-parsererror'.
  26033. *
  26034. * The Parameters _wait_, _hold_ and _route_ are optional and only relevant
  26035. * for BOSH connections. Please see XEP 124 for a more detailed explanation
  26036. * of the optional parameters.
  26037. *
  26038. * Parameters:
  26039. * (String) jid - The user's JID. This may be a bare JID,
  26040. * or a full JID. If a node is not supplied, SASL OAUTHBEARER or
  26041. * SASL ANONYMOUS authentication will be attempted (OAUTHBEARER will
  26042. * process the provided password value as an access token).
  26043. * (String) pass - The user's password.
  26044. * (Function) callback - The connect callback function.
  26045. * (Integer) wait - The optional HTTPBIND wait value. This is the
  26046. * time the server will wait before returning an empty result for
  26047. * a request. The default setting of 60 seconds is recommended.
  26048. * (Integer) hold - The optional HTTPBIND hold value. This is the
  26049. * number of connections the server will hold at one time. This
  26050. * should almost always be set to 1 (the default).
  26051. * (String) route - The optional route value.
  26052. * (String) authcid - The optional alternative authentication identity
  26053. * (username) if intending to impersonate another user.
  26054. * When using the SASL-EXTERNAL authentication mechanism, for example
  26055. * with client certificates, then the authcid value is used to
  26056. * determine whether an authorization JID (authzid) should be sent to
  26057. * the server. The authzid should not be sent to the server if the
  26058. * authzid and authcid are the same. So to prevent it from being sent
  26059. * (for example when the JID is already contained in the client
  26060. * certificate), set authcid to that same JID. See XEP-178 for more
  26061. * details.
  26062. */
  26063. connect: function connect(jid, pass, callback, wait, hold, route, authcid) {
  26064. this.jid = jid;
  26065. /** Variable: authzid
  26066. * Authorization identity.
  26067. */
  26068. this.authzid = Strophe.getBareJidFromJid(this.jid);
  26069. /** Variable: authcid
  26070. * Authentication identity (User name).
  26071. */
  26072. this.authcid = authcid || Strophe.getNodeFromJid(this.jid);
  26073. /** Variable: pass
  26074. * Authentication identity (User password).
  26075. */
  26076. this.pass = pass;
  26077. /** Variable: servtype
  26078. * Digest MD5 compatibility.
  26079. */
  26080. this.servtype = "xmpp";
  26081. this.connect_callback = callback;
  26082. this.disconnecting = false;
  26083. this.connected = false;
  26084. this.authenticated = false;
  26085. this.restored = false; // parse jid for domain
  26086. this.domain = Strophe.getDomainFromJid(this.jid);
  26087. this._changeConnectStatus(Strophe.Status.CONNECTING, null);
  26088. this._proto._connect(wait, hold, route);
  26089. },
  26090. /** Function: attach
  26091. * Attach to an already created and authenticated BOSH session.
  26092. *
  26093. * This function is provided to allow Strophe to attach to BOSH
  26094. * sessions which have been created externally, perhaps by a Web
  26095. * application. This is often used to support auto-login type features
  26096. * without putting user credentials into the page.
  26097. *
  26098. * Parameters:
  26099. * (String) jid - The full JID that is bound by the session.
  26100. * (String) sid - The SID of the BOSH session.
  26101. * (String) rid - The current RID of the BOSH session. This RID
  26102. * will be used by the next request.
  26103. * (Function) callback The connect callback function.
  26104. * (Integer) wait - The optional HTTPBIND wait value. This is the
  26105. * time the server will wait before returning an empty result for
  26106. * a request. The default setting of 60 seconds is recommended.
  26107. * Other settings will require tweaks to the Strophe.TIMEOUT value.
  26108. * (Integer) hold - The optional HTTPBIND hold value. This is the
  26109. * number of connections the server will hold at one time. This
  26110. * should almost always be set to 1 (the default).
  26111. * (Integer) wind - The optional HTTBIND window value. This is the
  26112. * allowed range of request ids that are valid. The default is 5.
  26113. */
  26114. attach: function attach(jid, sid, rid, callback, wait, hold, wind) {
  26115. if (this._proto instanceof Strophe.Bosh) {
  26116. this._proto._attach(jid, sid, rid, callback, wait, hold, wind);
  26117. } else {
  26118. var error = new Error('The "attach" method can only be used with a BOSH connection.');
  26119. error.name = 'StropheSessionError';
  26120. throw error;
  26121. }
  26122. },
  26123. /** Function: restore
  26124. * Attempt to restore a cached BOSH session.
  26125. *
  26126. * This function is only useful in conjunction with providing the
  26127. * "keepalive":true option when instantiating a new Strophe.Connection.
  26128. *
  26129. * When "keepalive" is set to true, Strophe will cache the BOSH tokens
  26130. * RID (Request ID) and SID (Session ID) and then when this function is
  26131. * called, it will attempt to restore the session from those cached
  26132. * tokens.
  26133. *
  26134. * This function must therefore be called instead of connect or attach.
  26135. *
  26136. * For an example on how to use it, please see examples/restore.js
  26137. *
  26138. * Parameters:
  26139. * (String) jid - The user's JID. This may be a bare JID or a full JID.
  26140. * (Function) callback - The connect callback function.
  26141. * (Integer) wait - The optional HTTPBIND wait value. This is the
  26142. * time the server will wait before returning an empty result for
  26143. * a request. The default setting of 60 seconds is recommended.
  26144. * (Integer) hold - The optional HTTPBIND hold value. This is the
  26145. * number of connections the server will hold at one time. This
  26146. * should almost always be set to 1 (the default).
  26147. * (Integer) wind - The optional HTTBIND window value. This is the
  26148. * allowed range of request ids that are valid. The default is 5.
  26149. */
  26150. restore: function restore(jid, callback, wait, hold, wind) {
  26151. if (this._sessionCachingSupported()) {
  26152. this._proto._restore(jid, callback, wait, hold, wind);
  26153. } else {
  26154. var error = new Error('The "restore" method can only be used with a BOSH connection.');
  26155. error.name = 'StropheSessionError';
  26156. throw error;
  26157. }
  26158. },
  26159. /** PrivateFunction: _sessionCachingSupported
  26160. * Checks whether sessionStorage and JSON are supported and whether we're
  26161. * using BOSH.
  26162. */
  26163. _sessionCachingSupported: function _sessionCachingSupported() {
  26164. if (this._proto instanceof Strophe.Bosh) {
  26165. if (!JSON) {
  26166. return false;
  26167. }
  26168. try {
  26169. sessionStorage.setItem('_strophe_', '_strophe_');
  26170. sessionStorage.removeItem('_strophe_');
  26171. } catch (e) {
  26172. return false;
  26173. }
  26174. return true;
  26175. }
  26176. return false;
  26177. },
  26178. /** Function: xmlInput
  26179. * User overrideable function that receives XML data coming into the
  26180. * connection.
  26181. *
  26182. * The default function does nothing. User code can override this with
  26183. * > Strophe.Connection.xmlInput = function (elem) {
  26184. * > (user code)
  26185. * > };
  26186. *
  26187. * Due to limitations of current Browsers' XML-Parsers the opening and closing
  26188. * <stream> tag for WebSocket-Connoctions will be passed as selfclosing here.
  26189. *
  26190. * BOSH-Connections will have all stanzas wrapped in a <body> tag. See
  26191. * <Strophe.Bosh.strip> if you want to strip this tag.
  26192. *
  26193. * Parameters:
  26194. * (XMLElement) elem - The XML data received by the connection.
  26195. */
  26196. /* jshint unused:false */
  26197. xmlInput: function xmlInput(elem) {
  26198. return;
  26199. },
  26200. /* jshint unused:true */
  26201. /** Function: xmlOutput
  26202. * User overrideable function that receives XML data sent to the
  26203. * connection.
  26204. *
  26205. * The default function does nothing. User code can override this with
  26206. * > Strophe.Connection.xmlOutput = function (elem) {
  26207. * > (user code)
  26208. * > };
  26209. *
  26210. * Due to limitations of current Browsers' XML-Parsers the opening and closing
  26211. * <stream> tag for WebSocket-Connoctions will be passed as selfclosing here.
  26212. *
  26213. * BOSH-Connections will have all stanzas wrapped in a <body> tag. See
  26214. * <Strophe.Bosh.strip> if you want to strip this tag.
  26215. *
  26216. * Parameters:
  26217. * (XMLElement) elem - The XMLdata sent by the connection.
  26218. */
  26219. /* jshint unused:false */
  26220. xmlOutput: function xmlOutput(elem) {
  26221. return;
  26222. },
  26223. /* jshint unused:true */
  26224. /** Function: rawInput
  26225. * User overrideable function that receives raw data coming into the
  26226. * connection.
  26227. *
  26228. * The default function does nothing. User code can override this with
  26229. * > Strophe.Connection.rawInput = function (data) {
  26230. * > (user code)
  26231. * > };
  26232. *
  26233. * Parameters:
  26234. * (String) data - The data received by the connection.
  26235. */
  26236. /* jshint unused:false */
  26237. rawInput: function rawInput(data) {
  26238. return;
  26239. },
  26240. /* jshint unused:true */
  26241. /** Function: rawOutput
  26242. * User overrideable function that receives raw data sent to the
  26243. * connection.
  26244. *
  26245. * The default function does nothing. User code can override this with
  26246. * > Strophe.Connection.rawOutput = function (data) {
  26247. * > (user code)
  26248. * > };
  26249. *
  26250. * Parameters:
  26251. * (String) data - The data sent by the connection.
  26252. */
  26253. /* jshint unused:false */
  26254. rawOutput: function rawOutput(data) {
  26255. return;
  26256. },
  26257. /* jshint unused:true */
  26258. /** Function: nextValidRid
  26259. * User overrideable function that receives the new valid rid.
  26260. *
  26261. * The default function does nothing. User code can override this with
  26262. * > Strophe.Connection.nextValidRid = function (rid) {
  26263. * > (user code)
  26264. * > };
  26265. *
  26266. * Parameters:
  26267. * (Number) rid - The next valid rid
  26268. */
  26269. /* jshint unused:false */
  26270. nextValidRid: function nextValidRid(rid) {
  26271. return;
  26272. },
  26273. /* jshint unused:true */
  26274. /** Function: send
  26275. * Send a stanza.
  26276. *
  26277. * This function is called to push data onto the send queue to
  26278. * go out over the wire. Whenever a request is sent to the BOSH
  26279. * server, all pending data is sent and the queue is flushed.
  26280. *
  26281. * Parameters:
  26282. * (XMLElement |
  26283. * [XMLElement] |
  26284. * Strophe.Builder) elem - The stanza to send.
  26285. */
  26286. send: function send(elem) {
  26287. if (elem === null) {
  26288. return;
  26289. }
  26290. if (typeof elem.sort === "function") {
  26291. for (var i = 0; i < elem.length; i++) {
  26292. this._queueData(elem[i]);
  26293. }
  26294. } else if (typeof elem.tree === "function") {
  26295. this._queueData(elem.tree());
  26296. } else {
  26297. this._queueData(elem);
  26298. }
  26299. this._proto._send();
  26300. },
  26301. /** Function: flush
  26302. * Immediately send any pending outgoing data.
  26303. *
  26304. * Normally send() queues outgoing data until the next idle period
  26305. * (100ms), which optimizes network use in the common cases when
  26306. * several send()s are called in succession. flush() can be used to
  26307. * immediately send all pending data.
  26308. */
  26309. flush: function flush() {
  26310. // cancel the pending idle period and run the idle function
  26311. // immediately
  26312. clearTimeout(this._idleTimeout);
  26313. this._onIdle();
  26314. },
  26315. /** Function: sendPresence
  26316. * Helper function to send presence stanzas. The main benefit is for
  26317. * sending presence stanzas for which you expect a responding presence
  26318. * stanza with the same id (for example when leaving a chat room).
  26319. *
  26320. * Parameters:
  26321. * (XMLElement) elem - The stanza to send.
  26322. * (Function) callback - The callback function for a successful request.
  26323. * (Function) errback - The callback function for a failed or timed
  26324. * out request. On timeout, the stanza will be null.
  26325. * (Integer) timeout - The time specified in milliseconds for a
  26326. * timeout to occur.
  26327. *
  26328. * Returns:
  26329. * The id used to send the presence.
  26330. */
  26331. sendPresence: function sendPresence(elem, callback, errback, timeout) {
  26332. var _this3 = this;
  26333. var timeoutHandler = null;
  26334. if (typeof elem.tree === "function") {
  26335. elem = elem.tree();
  26336. }
  26337. var id = elem.getAttribute('id');
  26338. if (!id) {
  26339. // inject id if not found
  26340. id = this.getUniqueId("sendPresence");
  26341. elem.setAttribute("id", id);
  26342. }
  26343. if (typeof callback === "function" || typeof errback === "function") {
  26344. var handler = this.addHandler(function (stanza) {
  26345. // remove timeout handler if there is one
  26346. if (timeoutHandler) {
  26347. _this3.deleteTimedHandler(timeoutHandler);
  26348. }
  26349. if (stanza.getAttribute('type') === 'error') {
  26350. if (errback) {
  26351. errback(stanza);
  26352. }
  26353. } else if (callback) {
  26354. callback(stanza);
  26355. }
  26356. }, null, 'presence', null, id); // if timeout specified, set up a timeout handler.
  26357. if (timeout) {
  26358. timeoutHandler = this.addTimedHandler(timeout, function () {
  26359. // get rid of normal handler
  26360. _this3.deleteHandler(handler); // call errback on timeout with null stanza
  26361. if (errback) {
  26362. errback(null);
  26363. }
  26364. return false;
  26365. });
  26366. }
  26367. }
  26368. this.send(elem);
  26369. return id;
  26370. },
  26371. /** Function: sendIQ
  26372. * Helper function to send IQ stanzas.
  26373. *
  26374. * Parameters:
  26375. * (XMLElement) elem - The stanza to send.
  26376. * (Function) callback - The callback function for a successful request.
  26377. * (Function) errback - The callback function for a failed or timed
  26378. * out request. On timeout, the stanza will be null.
  26379. * (Integer) timeout - The time specified in milliseconds for a
  26380. * timeout to occur.
  26381. *
  26382. * Returns:
  26383. * The id used to send the IQ.
  26384. */
  26385. sendIQ: function sendIQ(elem, callback, errback, timeout) {
  26386. var _this4 = this;
  26387. var timeoutHandler = null;
  26388. if (typeof elem.tree === "function") {
  26389. elem = elem.tree();
  26390. }
  26391. var id = elem.getAttribute('id');
  26392. if (!id) {
  26393. // inject id if not found
  26394. id = this.getUniqueId("sendIQ");
  26395. elem.setAttribute("id", id);
  26396. }
  26397. if (typeof callback === "function" || typeof errback === "function") {
  26398. var handler = this.addHandler(function (stanza) {
  26399. // remove timeout handler if there is one
  26400. if (timeoutHandler) {
  26401. _this4.deleteTimedHandler(timeoutHandler);
  26402. }
  26403. var iqtype = stanza.getAttribute('type');
  26404. if (iqtype === 'result') {
  26405. if (callback) {
  26406. callback(stanza);
  26407. }
  26408. } else if (iqtype === 'error') {
  26409. if (errback) {
  26410. errback(stanza);
  26411. }
  26412. } else {
  26413. var error = new Error("Got bad IQ type of ".concat(iqtype));
  26414. error.name = "StropheError";
  26415. throw error;
  26416. }
  26417. }, null, 'iq', ['error', 'result'], id); // if timeout specified, set up a timeout handler.
  26418. if (timeout) {
  26419. timeoutHandler = this.addTimedHandler(timeout, function () {
  26420. // get rid of normal handler
  26421. _this4.deleteHandler(handler); // call errback on timeout with null stanza
  26422. if (errback) {
  26423. errback(null);
  26424. }
  26425. return false;
  26426. });
  26427. }
  26428. }
  26429. this.send(elem);
  26430. return id;
  26431. },
  26432. /** PrivateFunction: _queueData
  26433. * Queue outgoing data for later sending. Also ensures that the data
  26434. * is a DOMElement.
  26435. */
  26436. _queueData: function _queueData(element) {
  26437. if (element === null || !element.tagName || !element.childNodes) {
  26438. var error = new Error("Cannot queue non-DOMElement.");
  26439. error.name = "StropheError";
  26440. throw error;
  26441. }
  26442. this._data.push(element);
  26443. },
  26444. /** PrivateFunction: _sendRestart
  26445. * Send an xmpp:restart stanza.
  26446. */
  26447. _sendRestart: function _sendRestart() {
  26448. var _this5 = this;
  26449. this._data.push("restart");
  26450. this._proto._sendRestart();
  26451. this._idleTimeout = setTimeout(function () {
  26452. return _this5._onIdle();
  26453. }, 100);
  26454. },
  26455. /** Function: addTimedHandler
  26456. * Add a timed handler to the connection.
  26457. *
  26458. * This function adds a timed handler. The provided handler will
  26459. * be called every period milliseconds until it returns false,
  26460. * the connection is terminated, or the handler is removed. Handlers
  26461. * that wish to continue being invoked should return true.
  26462. *
  26463. * Because of method binding it is necessary to save the result of
  26464. * this function if you wish to remove a handler with
  26465. * deleteTimedHandler().
  26466. *
  26467. * Note that user handlers are not active until authentication is
  26468. * successful.
  26469. *
  26470. * Parameters:
  26471. * (Integer) period - The period of the handler.
  26472. * (Function) handler - The callback function.
  26473. *
  26474. * Returns:
  26475. * A reference to the handler that can be used to remove it.
  26476. */
  26477. addTimedHandler: function addTimedHandler(period, handler) {
  26478. var thand = new Strophe.TimedHandler(period, handler);
  26479. this.addTimeds.push(thand);
  26480. return thand;
  26481. },
  26482. /** Function: deleteTimedHandler
  26483. * Delete a timed handler for a connection.
  26484. *
  26485. * This function removes a timed handler from the connection. The
  26486. * handRef parameter is *not* the function passed to addTimedHandler(),
  26487. * but is the reference returned from addTimedHandler().
  26488. *
  26489. * Parameters:
  26490. * (Strophe.TimedHandler) handRef - The handler reference.
  26491. */
  26492. deleteTimedHandler: function deleteTimedHandler(handRef) {
  26493. // this must be done in the Idle loop so that we don't change
  26494. // the handlers during iteration
  26495. this.removeTimeds.push(handRef);
  26496. },
  26497. /** Function: addHandler
  26498. * Add a stanza handler for the connection.
  26499. *
  26500. * This function adds a stanza handler to the connection. The
  26501. * handler callback will be called for any stanza that matches
  26502. * the parameters. Note that if multiple parameters are supplied,
  26503. * they must all match for the handler to be invoked.
  26504. *
  26505. * The handler will receive the stanza that triggered it as its argument.
  26506. * *The handler should return true if it is to be invoked again;
  26507. * returning false will remove the handler after it returns.*
  26508. *
  26509. * As a convenience, the ns parameters applies to the top level element
  26510. * and also any of its immediate children. This is primarily to make
  26511. * matching /iq/query elements easy.
  26512. *
  26513. * Options
  26514. * ~~~~~~~
  26515. * With the options argument, you can specify boolean flags that affect how
  26516. * matches are being done.
  26517. *
  26518. * Currently two flags exist:
  26519. *
  26520. * - matchBareFromJid:
  26521. * When set to true, the from parameter and the
  26522. * from attribute on the stanza will be matched as bare JIDs instead
  26523. * of full JIDs. To use this, pass {matchBareFromJid: true} as the
  26524. * value of options. The default value for matchBareFromJid is false.
  26525. *
  26526. * - ignoreNamespaceFragment:
  26527. * When set to true, a fragment specified on the stanza's namespace
  26528. * URL will be ignored when it's matched with the one configured for
  26529. * the handler.
  26530. *
  26531. * This means that if you register like this:
  26532. * > connection.addHandler(
  26533. * > handler,
  26534. * > 'http://jabber.org/protocol/muc',
  26535. * > null, null, null, null,
  26536. * > {'ignoreNamespaceFragment': true}
  26537. * > );
  26538. *
  26539. * Then a stanza with XML namespace of
  26540. * 'http://jabber.org/protocol/muc#user' will also be matched. If
  26541. * 'ignoreNamespaceFragment' is false, then only stanzas with
  26542. * 'http://jabber.org/protocol/muc' will be matched.
  26543. *
  26544. * Deleting the handler
  26545. * ~~~~~~~~~~~~~~~~~~~~
  26546. * The return value should be saved if you wish to remove the handler
  26547. * with deleteHandler().
  26548. *
  26549. * Parameters:
  26550. * (Function) handler - The user callback.
  26551. * (String) ns - The namespace to match.
  26552. * (String) name - The stanza name to match.
  26553. * (String|Array) type - The stanza type (or types if an array) to match.
  26554. * (String) id - The stanza id attribute to match.
  26555. * (String) from - The stanza from attribute to match.
  26556. * (String) options - The handler options
  26557. *
  26558. * Returns:
  26559. * A reference to the handler that can be used to remove it.
  26560. */
  26561. addHandler: function addHandler(handler, ns, name, type, id, from, options) {
  26562. var hand = new Strophe.Handler(handler, ns, name, type, id, from, options);
  26563. this.addHandlers.push(hand);
  26564. return hand;
  26565. },
  26566. /** Function: deleteHandler
  26567. * Delete a stanza handler for a connection.
  26568. *
  26569. * This function removes a stanza handler from the connection. The
  26570. * handRef parameter is *not* the function passed to addHandler(),
  26571. * but is the reference returned from addHandler().
  26572. *
  26573. * Parameters:
  26574. * (Strophe.Handler) handRef - The handler reference.
  26575. */
  26576. deleteHandler: function deleteHandler(handRef) {
  26577. // this must be done in the Idle loop so that we don't change
  26578. // the handlers during iteration
  26579. this.removeHandlers.push(handRef); // If a handler is being deleted while it is being added,
  26580. // prevent it from getting added
  26581. var i = this.addHandlers.indexOf(handRef);
  26582. if (i >= 0) {
  26583. this.addHandlers.splice(i, 1);
  26584. }
  26585. },
  26586. /** Function: registerSASLMechanisms
  26587. *
  26588. * Register the SASL mechanisms which will be supported by this instance of
  26589. * Strophe.Connection (i.e. which this XMPP client will support).
  26590. *
  26591. * Parameters:
  26592. * (Array) mechanisms - Array of objects with Strophe.SASLMechanism prototypes
  26593. *
  26594. */
  26595. registerSASLMechanisms: function registerSASLMechanisms(mechanisms) {
  26596. this.mechanisms = {};
  26597. mechanisms = mechanisms || [Strophe.SASLAnonymous, Strophe.SASLExternal, Strophe.SASLMD5, Strophe.SASLOAuthBearer, Strophe.SASLXOAuth2, Strophe.SASLPlain, Strophe.SASLSHA1];
  26598. mechanisms.forEach(this.registerSASLMechanism.bind(this));
  26599. },
  26600. /** Function: registerSASLMechanism
  26601. *
  26602. * Register a single SASL mechanism, to be supported by this client.
  26603. *
  26604. * Parameters:
  26605. * (Object) mechanism - Object with a Strophe.SASLMechanism prototype
  26606. *
  26607. */
  26608. registerSASLMechanism: function registerSASLMechanism(mechanism) {
  26609. this.mechanisms[mechanism.prototype.name] = mechanism;
  26610. },
  26611. /** Function: disconnect
  26612. * Start the graceful disconnection process.
  26613. *
  26614. * This function starts the disconnection process. This process starts
  26615. * by sending unavailable presence and sending BOSH body of type
  26616. * terminate. A timeout handler makes sure that disconnection happens
  26617. * even if the BOSH server does not respond.
  26618. * If the Connection object isn't connected, at least tries to abort all pending requests
  26619. * so the connection object won't generate successful requests (which were already opened).
  26620. *
  26621. * The user supplied connection callback will be notified of the
  26622. * progress as this process happens.
  26623. *
  26624. * Parameters:
  26625. * (String) reason - The reason the disconnect is occuring.
  26626. */
  26627. disconnect: function disconnect(reason) {
  26628. this._changeConnectStatus(Strophe.Status.DISCONNECTING, reason);
  26629. Strophe.info("Disconnect was called because: " + reason);
  26630. if (this.connected) {
  26631. var pres = false;
  26632. this.disconnecting = true;
  26633. if (this.authenticated) {
  26634. pres = $pres({
  26635. 'xmlns': Strophe.NS.CLIENT,
  26636. 'type': 'unavailable'
  26637. });
  26638. } // setup timeout handler
  26639. this._disconnectTimeout = this._addSysTimedHandler(3000, this._onDisconnectTimeout.bind(this));
  26640. this._proto._disconnect(pres);
  26641. } else {
  26642. Strophe.info("Disconnect was called before Strophe connected to the server");
  26643. this._proto._abortAllRequests();
  26644. this._doDisconnect();
  26645. }
  26646. },
  26647. /** PrivateFunction: _changeConnectStatus
  26648. * _Private_ helper function that makes sure plugins and the user's
  26649. * callback are notified of connection status changes.
  26650. *
  26651. * Parameters:
  26652. * (Integer) status - the new connection status, one of the values
  26653. * in Strophe.Status
  26654. * (String) condition - the error condition or null
  26655. * (XMLElement) elem - The triggering stanza.
  26656. */
  26657. _changeConnectStatus: function _changeConnectStatus(status, condition, elem) {
  26658. // notify all plugins listening for status changes
  26659. for (var k in Strophe._connectionPlugins) {
  26660. if (Object.prototype.hasOwnProperty.call(Strophe._connectionPlugins, k)) {
  26661. var plugin = this[k];
  26662. if (plugin.statusChanged) {
  26663. try {
  26664. plugin.statusChanged(status, condition);
  26665. } catch (err) {
  26666. Strophe.error("".concat(k, " plugin caused an exception changing status: ").concat(err));
  26667. }
  26668. }
  26669. }
  26670. } // notify the user's callback
  26671. if (this.connect_callback) {
  26672. try {
  26673. this.connect_callback(status, condition, elem);
  26674. } catch (e) {
  26675. Strophe._handleError(e);
  26676. Strophe.error("User connection callback caused an exception: ".concat(e));
  26677. }
  26678. }
  26679. },
  26680. /** PrivateFunction: _doDisconnect
  26681. * _Private_ function to disconnect.
  26682. *
  26683. * This is the last piece of the disconnection logic. This resets the
  26684. * connection and alerts the user's connection callback.
  26685. */
  26686. _doDisconnect: function _doDisconnect(condition) {
  26687. if (typeof this._idleTimeout === "number") {
  26688. clearTimeout(this._idleTimeout);
  26689. } // Cancel Disconnect Timeout
  26690. if (this._disconnectTimeout !== null) {
  26691. this.deleteTimedHandler(this._disconnectTimeout);
  26692. this._disconnectTimeout = null;
  26693. }
  26694. Strophe.info("_doDisconnect was called");
  26695. this._proto._doDisconnect();
  26696. this.authenticated = false;
  26697. this.disconnecting = false;
  26698. this.restored = false; // delete handlers
  26699. this.handlers = [];
  26700. this.timedHandlers = [];
  26701. this.removeTimeds = [];
  26702. this.removeHandlers = [];
  26703. this.addTimeds = [];
  26704. this.addHandlers = []; // tell the parent we disconnected
  26705. this._changeConnectStatus(Strophe.Status.DISCONNECTED, condition);
  26706. this.connected = false;
  26707. },
  26708. /** PrivateFunction: _dataRecv
  26709. * _Private_ handler to processes incoming data from the the connection.
  26710. *
  26711. * Except for _connect_cb handling the initial connection request,
  26712. * this function handles the incoming data for all requests. This
  26713. * function also fires stanza handlers that match each incoming
  26714. * stanza.
  26715. *
  26716. * Parameters:
  26717. * (Strophe.Request) req - The request that has data ready.
  26718. * (string) req - The stanza a raw string (optiona).
  26719. */
  26720. _dataRecv: function _dataRecv(req, raw) {
  26721. var _this6 = this;
  26722. Strophe.info("_dataRecv called");
  26723. var elem = this._proto._reqToData(req);
  26724. if (elem === null) {
  26725. return;
  26726. }
  26727. if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) {
  26728. if (elem.nodeName === this._proto.strip && elem.childNodes.length) {
  26729. this.xmlInput(elem.childNodes[0]);
  26730. } else {
  26731. this.xmlInput(elem);
  26732. }
  26733. }
  26734. if (this.rawInput !== Strophe.Connection.prototype.rawInput) {
  26735. if (raw) {
  26736. this.rawInput(raw);
  26737. } else {
  26738. this.rawInput(Strophe.serialize(elem));
  26739. }
  26740. } // remove handlers scheduled for deletion
  26741. while (this.removeHandlers.length > 0) {
  26742. var hand = this.removeHandlers.pop();
  26743. var i = this.handlers.indexOf(hand);
  26744. if (i >= 0) {
  26745. this.handlers.splice(i, 1);
  26746. }
  26747. } // add handlers scheduled for addition
  26748. while (this.addHandlers.length > 0) {
  26749. this.handlers.push(this.addHandlers.pop());
  26750. } // handle graceful disconnect
  26751. if (this.disconnecting && this._proto._emptyQueue()) {
  26752. this._doDisconnect();
  26753. return;
  26754. }
  26755. var type = elem.getAttribute("type");
  26756. if (type !== null && type === "terminate") {
  26757. // Don't process stanzas that come in after disconnect
  26758. if (this.disconnecting) {
  26759. return;
  26760. } // an error occurred
  26761. var cond = elem.getAttribute("condition");
  26762. var conflict = elem.getElementsByTagName("conflict");
  26763. if (cond !== null) {
  26764. if (cond === "remote-stream-error" && conflict.length > 0) {
  26765. cond = "conflict";
  26766. }
  26767. this._changeConnectStatus(Strophe.Status.CONNFAIL, cond);
  26768. } else {
  26769. this._changeConnectStatus(Strophe.Status.CONNFAIL, Strophe.ErrorCondition.UNKOWN_REASON);
  26770. }
  26771. this._doDisconnect(cond);
  26772. return;
  26773. } // send each incoming stanza through the handler chain
  26774. Strophe.forEachChild(elem, null, function (child) {
  26775. // process handlers
  26776. var newList = _this6.handlers;
  26777. _this6.handlers = [];
  26778. for (var _i5 = 0; _i5 < newList.length; _i5++) {
  26779. var _hand = newList[_i5]; // encapsulate 'handler.run' not to lose the whole handler list if
  26780. // one of the handlers throws an exception
  26781. try {
  26782. if (_hand.isMatch(child) && (_this6.authenticated || !_hand.user)) {
  26783. if (_hand.run(child)) {
  26784. _this6.handlers.push(_hand);
  26785. }
  26786. } else {
  26787. _this6.handlers.push(_hand);
  26788. }
  26789. } catch (e) {
  26790. // if the handler throws an exception, we consider it as false
  26791. Strophe.warn('Removing Strophe handlers due to uncaught exception: ' + e.message);
  26792. }
  26793. }
  26794. });
  26795. },
  26796. /** Attribute: mechanisms
  26797. * SASL Mechanisms available for Connection.
  26798. */
  26799. mechanisms: {},
  26800. /** PrivateFunction: _connect_cb
  26801. * _Private_ handler for initial connection request.
  26802. *
  26803. * This handler is used to process the initial connection request
  26804. * response from the BOSH server. It is used to set up authentication
  26805. * handlers and start the authentication process.
  26806. *
  26807. * SASL authentication will be attempted if available, otherwise
  26808. * the code will fall back to legacy authentication.
  26809. *
  26810. * Parameters:
  26811. * (Strophe.Request) req - The current request.
  26812. * (Function) _callback - low level (xmpp) connect callback function.
  26813. * Useful for plugins with their own xmpp connect callback (when they
  26814. * want to do something special).
  26815. */
  26816. _connect_cb: function _connect_cb(req, _callback, raw) {
  26817. Strophe.info("_connect_cb was called");
  26818. this.connected = true;
  26819. var bodyWrap;
  26820. try {
  26821. bodyWrap = this._proto._reqToData(req);
  26822. } catch (e) {
  26823. if (e.name !== Strophe.ErrorCondition.BAD_FORMAT) {
  26824. throw e;
  26825. }
  26826. this._changeConnectStatus(Strophe.Status.CONNFAIL, Strophe.ErrorCondition.BAD_FORMAT);
  26827. this._doDisconnect(Strophe.ErrorCondition.BAD_FORMAT);
  26828. }
  26829. if (!bodyWrap) {
  26830. return;
  26831. }
  26832. if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) {
  26833. if (bodyWrap.nodeName === this._proto.strip && bodyWrap.childNodes.length) {
  26834. this.xmlInput(bodyWrap.childNodes[0]);
  26835. } else {
  26836. this.xmlInput(bodyWrap);
  26837. }
  26838. }
  26839. if (this.rawInput !== Strophe.Connection.prototype.rawInput) {
  26840. if (raw) {
  26841. this.rawInput(raw);
  26842. } else {
  26843. this.rawInput(Strophe.serialize(bodyWrap));
  26844. }
  26845. }
  26846. var conncheck = this._proto._connect_cb(bodyWrap);
  26847. if (conncheck === Strophe.Status.CONNFAIL) {
  26848. return;
  26849. } // Check for the stream:features tag
  26850. var hasFeatures;
  26851. if (bodyWrap.getElementsByTagNameNS) {
  26852. hasFeatures = bodyWrap.getElementsByTagNameNS(Strophe.NS.STREAM, "features").length > 0;
  26853. } else {
  26854. hasFeatures = bodyWrap.getElementsByTagName("stream:features").length > 0 || bodyWrap.getElementsByTagName("features").length > 0;
  26855. }
  26856. if (!hasFeatures) {
  26857. this._proto._no_auth_received(_callback);
  26858. return;
  26859. }
  26860. var matched = [];
  26861. var mechanisms = bodyWrap.getElementsByTagName("mechanism");
  26862. if (mechanisms.length > 0) {
  26863. for (var i = 0; i < mechanisms.length; i++) {
  26864. var mech = Strophe.getText(mechanisms[i]);
  26865. if (this.mechanisms[mech]) matched.push(this.mechanisms[mech]);
  26866. }
  26867. }
  26868. if (matched.length === 0) {
  26869. if (bodyWrap.getElementsByTagName("auth").length === 0) {
  26870. // There are no matching SASL mechanisms and also no legacy
  26871. // auth available.
  26872. this._proto._no_auth_received(_callback);
  26873. return;
  26874. }
  26875. }
  26876. if (this.do_authentication !== false) {
  26877. this.authenticate(matched);
  26878. }
  26879. },
  26880. /** Function: sortMechanismsByPriority
  26881. *
  26882. * Sorts an array of objects with prototype SASLMechanism according to
  26883. * their priorities.
  26884. *
  26885. * Parameters:
  26886. * (Array) mechanisms - Array of SASL mechanisms.
  26887. *
  26888. */
  26889. sortMechanismsByPriority: function sortMechanismsByPriority(mechanisms) {
  26890. // Sorting mechanisms according to priority.
  26891. for (var i = 0; i < mechanisms.length - 1; ++i) {
  26892. var higher = i;
  26893. for (var j = i + 1; j < mechanisms.length; ++j) {
  26894. if (mechanisms[j].prototype.priority > mechanisms[higher].prototype.priority) {
  26895. higher = j;
  26896. }
  26897. }
  26898. if (higher !== i) {
  26899. var swap = mechanisms[i];
  26900. mechanisms[i] = mechanisms[higher];
  26901. mechanisms[higher] = swap;
  26902. }
  26903. }
  26904. return mechanisms;
  26905. },
  26906. /** PrivateFunction: _attemptSASLAuth
  26907. *
  26908. * Iterate through an array of SASL mechanisms and attempt authentication
  26909. * with the highest priority (enabled) mechanism.
  26910. *
  26911. * Parameters:
  26912. * (Array) mechanisms - Array of SASL mechanisms.
  26913. *
  26914. * Returns:
  26915. * (Boolean) mechanism_found - true or false, depending on whether a
  26916. * valid SASL mechanism was found with which authentication could be
  26917. * started.
  26918. */
  26919. _attemptSASLAuth: function _attemptSASLAuth(mechanisms) {
  26920. mechanisms = this.sortMechanismsByPriority(mechanisms || []);
  26921. var mechanism_found = false;
  26922. for (var i = 0; i < mechanisms.length; ++i) {
  26923. if (!mechanisms[i].prototype.test(this)) {
  26924. continue;
  26925. }
  26926. this._sasl_success_handler = this._addSysHandler(this._sasl_success_cb.bind(this), null, "success", null, null);
  26927. this._sasl_failure_handler = this._addSysHandler(this._sasl_failure_cb.bind(this), null, "failure", null, null);
  26928. this._sasl_challenge_handler = this._addSysHandler(this._sasl_challenge_cb.bind(this), null, "challenge", null, null);
  26929. this._sasl_mechanism = new mechanisms[i]();
  26930. this._sasl_mechanism.onStart(this);
  26931. var request_auth_exchange = $build("auth", {
  26932. 'xmlns': Strophe.NS.SASL,
  26933. 'mechanism': this._sasl_mechanism.name
  26934. });
  26935. if (this._sasl_mechanism.isClientFirst) {
  26936. var response = this._sasl_mechanism.onChallenge(this, null);
  26937. request_auth_exchange.t(btoa(response));
  26938. }
  26939. this.send(request_auth_exchange.tree());
  26940. mechanism_found = true;
  26941. break;
  26942. }
  26943. return mechanism_found;
  26944. },
  26945. /** PrivateFunction: _attemptLegacyAuth
  26946. *
  26947. * Attempt legacy (i.e. non-SASL) authentication.
  26948. *
  26949. */
  26950. _attemptLegacyAuth: function _attemptLegacyAuth() {
  26951. if (Strophe.getNodeFromJid(this.jid) === null) {
  26952. // we don't have a node, which is required for non-anonymous
  26953. // client connections
  26954. this._changeConnectStatus(Strophe.Status.CONNFAIL, Strophe.ErrorCondition.MISSING_JID_NODE);
  26955. this.disconnect(Strophe.ErrorCondition.MISSING_JID_NODE);
  26956. } else {
  26957. // Fall back to legacy authentication
  26958. this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
  26959. this._addSysHandler(this._auth1_cb.bind(this), null, null, null, "_auth_1");
  26960. this.send($iq({
  26961. 'type': "get",
  26962. 'to': this.domain,
  26963. 'id': "_auth_1"
  26964. }).c("query", {
  26965. xmlns: Strophe.NS.AUTH
  26966. }).c("username", {}).t(Strophe.getNodeFromJid(this.jid)).tree());
  26967. }
  26968. },
  26969. /** Function: authenticate
  26970. * Set up authentication
  26971. *
  26972. * Continues the initial connection request by setting up authentication
  26973. * handlers and starting the authentication process.
  26974. *
  26975. * SASL authentication will be attempted if available, otherwise
  26976. * the code will fall back to legacy authentication.
  26977. *
  26978. * Parameters:
  26979. * (Array) matched - Array of SASL mechanisms supported.
  26980. *
  26981. */
  26982. authenticate: function authenticate(matched) {
  26983. if (!this._attemptSASLAuth(matched)) {
  26984. this._attemptLegacyAuth();
  26985. }
  26986. },
  26987. /** PrivateFunction: _sasl_challenge_cb
  26988. * _Private_ handler for the SASL challenge
  26989. *
  26990. */
  26991. _sasl_challenge_cb: function _sasl_challenge_cb(elem) {
  26992. var challenge = atob(Strophe.getText(elem));
  26993. var response = this._sasl_mechanism.onChallenge(this, challenge);
  26994. var stanza = $build('response', {
  26995. 'xmlns': Strophe.NS.SASL
  26996. });
  26997. if (response !== "") {
  26998. stanza.t(btoa(response));
  26999. }
  27000. this.send(stanza.tree());
  27001. return true;
  27002. },
  27003. /** PrivateFunction: _auth1_cb
  27004. * _Private_ handler for legacy authentication.
  27005. *
  27006. * This handler is called in response to the initial <iq type='get'/>
  27007. * for legacy authentication. It builds an authentication <iq/> and
  27008. * sends it, creating a handler (calling back to _auth2_cb()) to
  27009. * handle the result
  27010. *
  27011. * Parameters:
  27012. * (XMLElement) elem - The stanza that triggered the callback.
  27013. *
  27014. * Returns:
  27015. * false to remove the handler.
  27016. */
  27017. /* jshint unused:false */
  27018. _auth1_cb: function _auth1_cb(elem) {
  27019. // build plaintext auth iq
  27020. var iq = $iq({
  27021. type: "set",
  27022. id: "_auth_2"
  27023. }).c('query', {
  27024. xmlns: Strophe.NS.AUTH
  27025. }).c('username', {}).t(Strophe.getNodeFromJid(this.jid)).up().c('password').t(this.pass);
  27026. if (!Strophe.getResourceFromJid(this.jid)) {
  27027. // since the user has not supplied a resource, we pick
  27028. // a default one here. unlike other auth methods, the server
  27029. // cannot do this for us.
  27030. this.jid = Strophe.getBareJidFromJid(this.jid) + '/strophe';
  27031. }
  27032. iq.up().c('resource', {}).t(Strophe.getResourceFromJid(this.jid));
  27033. this._addSysHandler(this._auth2_cb.bind(this), null, null, null, "_auth_2");
  27034. this.send(iq.tree());
  27035. return false;
  27036. },
  27037. /* jshint unused:true */
  27038. /** PrivateFunction: _sasl_success_cb
  27039. * _Private_ handler for succesful SASL authentication.
  27040. *
  27041. * Parameters:
  27042. * (XMLElement) elem - The matching stanza.
  27043. *
  27044. * Returns:
  27045. * false to remove the handler.
  27046. */
  27047. _sasl_success_cb: function _sasl_success_cb(elem) {
  27048. var _this7 = this;
  27049. if (this._sasl_data["server-signature"]) {
  27050. var serverSignature;
  27051. var success = atob(Strophe.getText(elem));
  27052. var attribMatch = /([a-z]+)=([^,]+)(,|$)/;
  27053. var matches = success.match(attribMatch);
  27054. if (matches[1] === "v") {
  27055. serverSignature = matches[2];
  27056. }
  27057. if (serverSignature !== this._sasl_data["server-signature"]) {
  27058. // remove old handlers
  27059. this.deleteHandler(this._sasl_failure_handler);
  27060. this._sasl_failure_handler = null;
  27061. if (this._sasl_challenge_handler) {
  27062. this.deleteHandler(this._sasl_challenge_handler);
  27063. this._sasl_challenge_handler = null;
  27064. }
  27065. this._sasl_data = {};
  27066. return this._sasl_failure_cb(null);
  27067. }
  27068. }
  27069. Strophe.info("SASL authentication succeeded.");
  27070. if (this._sasl_mechanism) {
  27071. this._sasl_mechanism.onSuccess();
  27072. } // remove old handlers
  27073. this.deleteHandler(this._sasl_failure_handler);
  27074. this._sasl_failure_handler = null;
  27075. if (this._sasl_challenge_handler) {
  27076. this.deleteHandler(this._sasl_challenge_handler);
  27077. this._sasl_challenge_handler = null;
  27078. }
  27079. var streamfeature_handlers = [];
  27080. var wrapper = function wrapper(handlers, elem) {
  27081. while (handlers.length) {
  27082. _this7.deleteHandler(handlers.pop());
  27083. }
  27084. _this7._sasl_auth1_cb(elem);
  27085. return false;
  27086. };
  27087. streamfeature_handlers.push(this._addSysHandler(function (elem) {
  27088. return wrapper(streamfeature_handlers, elem);
  27089. }, null, "stream:features", null, null));
  27090. streamfeature_handlers.push(this._addSysHandler(function (elem) {
  27091. return wrapper(streamfeature_handlers, elem);
  27092. }, Strophe.NS.STREAM, "features", null, null)); // we must send an xmpp:restart now
  27093. this._sendRestart();
  27094. return false;
  27095. },
  27096. /** PrivateFunction: _sasl_auth1_cb
  27097. * _Private_ handler to start stream binding.
  27098. *
  27099. * Parameters:
  27100. * (XMLElement) elem - The matching stanza.
  27101. *
  27102. * Returns:
  27103. * false to remove the handler.
  27104. */
  27105. _sasl_auth1_cb: function _sasl_auth1_cb(elem) {
  27106. // save stream:features for future usage
  27107. this.features = elem;
  27108. for (var i = 0; i < elem.childNodes.length; i++) {
  27109. var child = elem.childNodes[i];
  27110. if (child.nodeName === 'bind') {
  27111. this.do_bind = true;
  27112. }
  27113. if (child.nodeName === 'session') {
  27114. this.do_session = true;
  27115. }
  27116. }
  27117. if (!this.do_bind) {
  27118. this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
  27119. return false;
  27120. } else {
  27121. this._addSysHandler(this._sasl_bind_cb.bind(this), null, null, null, "_bind_auth_2");
  27122. var resource = Strophe.getResourceFromJid(this.jid);
  27123. if (resource) {
  27124. this.send($iq({
  27125. type: "set",
  27126. id: "_bind_auth_2"
  27127. }).c('bind', {
  27128. xmlns: Strophe.NS.BIND
  27129. }).c('resource', {}).t(resource).tree());
  27130. } else {
  27131. this.send($iq({
  27132. type: "set",
  27133. id: "_bind_auth_2"
  27134. }).c('bind', {
  27135. xmlns: Strophe.NS.BIND
  27136. }).tree());
  27137. }
  27138. }
  27139. return false;
  27140. },
  27141. /** PrivateFunction: _sasl_bind_cb
  27142. * _Private_ handler for binding result and session start.
  27143. *
  27144. * Parameters:
  27145. * (XMLElement) elem - The matching stanza.
  27146. *
  27147. * Returns:
  27148. * false to remove the handler.
  27149. */
  27150. _sasl_bind_cb: function _sasl_bind_cb(elem) {
  27151. if (elem.getAttribute("type") === "error") {
  27152. Strophe.info("SASL binding failed.");
  27153. var conflict = elem.getElementsByTagName("conflict");
  27154. var condition;
  27155. if (conflict.length > 0) {
  27156. condition = Strophe.ErrorCondition.CONFLICT;
  27157. }
  27158. this._changeConnectStatus(Strophe.Status.AUTHFAIL, condition, elem);
  27159. return false;
  27160. } // TODO - need to grab errors
  27161. var bind = elem.getElementsByTagName("bind");
  27162. if (bind.length > 0) {
  27163. var jidNode = bind[0].getElementsByTagName("jid");
  27164. if (jidNode.length > 0) {
  27165. this.jid = Strophe.getText(jidNode[0]);
  27166. if (this.do_session) {
  27167. this._addSysHandler(this._sasl_session_cb.bind(this), null, null, null, "_session_auth_2");
  27168. this.send($iq({
  27169. type: "set",
  27170. id: "_session_auth_2"
  27171. }).c('session', {
  27172. xmlns: Strophe.NS.SESSION
  27173. }).tree());
  27174. } else {
  27175. this.authenticated = true;
  27176. this._changeConnectStatus(Strophe.Status.CONNECTED, null);
  27177. }
  27178. }
  27179. } else {
  27180. Strophe.info("SASL binding failed.");
  27181. this._changeConnectStatus(Strophe.Status.AUTHFAIL, null, elem);
  27182. return false;
  27183. }
  27184. },
  27185. /** PrivateFunction: _sasl_session_cb
  27186. * _Private_ handler to finish successful SASL connection.
  27187. *
  27188. * This sets Connection.authenticated to true on success, which
  27189. * starts the processing of user handlers.
  27190. *
  27191. * Parameters:
  27192. * (XMLElement) elem - The matching stanza.
  27193. *
  27194. * Returns:
  27195. * false to remove the handler.
  27196. */
  27197. _sasl_session_cb: function _sasl_session_cb(elem) {
  27198. if (elem.getAttribute("type") === "result") {
  27199. this.authenticated = true;
  27200. this._changeConnectStatus(Strophe.Status.CONNECTED, null);
  27201. } else if (elem.getAttribute("type") === "error") {
  27202. Strophe.info("Session creation failed.");
  27203. this._changeConnectStatus(Strophe.Status.AUTHFAIL, null, elem);
  27204. return false;
  27205. }
  27206. return false;
  27207. },
  27208. /** PrivateFunction: _sasl_failure_cb
  27209. * _Private_ handler for SASL authentication failure.
  27210. *
  27211. * Parameters:
  27212. * (XMLElement) elem - The matching stanza.
  27213. *
  27214. * Returns:
  27215. * false to remove the handler.
  27216. */
  27217. /* jshint unused:false */
  27218. _sasl_failure_cb: function _sasl_failure_cb(elem) {
  27219. // delete unneeded handlers
  27220. if (this._sasl_success_handler) {
  27221. this.deleteHandler(this._sasl_success_handler);
  27222. this._sasl_success_handler = null;
  27223. }
  27224. if (this._sasl_challenge_handler) {
  27225. this.deleteHandler(this._sasl_challenge_handler);
  27226. this._sasl_challenge_handler = null;
  27227. }
  27228. if (this._sasl_mechanism) this._sasl_mechanism.onFailure();
  27229. this._changeConnectStatus(Strophe.Status.AUTHFAIL, null, elem);
  27230. return false;
  27231. },
  27232. /* jshint unused:true */
  27233. /** PrivateFunction: _auth2_cb
  27234. * _Private_ handler to finish legacy authentication.
  27235. *
  27236. * This handler is called when the result from the jabber:iq:auth
  27237. * <iq/> stanza is returned.
  27238. *
  27239. * Parameters:
  27240. * (XMLElement) elem - The stanza that triggered the callback.
  27241. *
  27242. * Returns:
  27243. * false to remove the handler.
  27244. */
  27245. _auth2_cb: function _auth2_cb(elem) {
  27246. if (elem.getAttribute("type") === "result") {
  27247. this.authenticated = true;
  27248. this._changeConnectStatus(Strophe.Status.CONNECTED, null);
  27249. } else if (elem.getAttribute("type") === "error") {
  27250. this._changeConnectStatus(Strophe.Status.AUTHFAIL, null, elem);
  27251. this.disconnect('authentication failed');
  27252. }
  27253. return false;
  27254. },
  27255. /** PrivateFunction: _addSysTimedHandler
  27256. * _Private_ function to add a system level timed handler.
  27257. *
  27258. * This function is used to add a Strophe.TimedHandler for the
  27259. * library code. System timed handlers are allowed to run before
  27260. * authentication is complete.
  27261. *
  27262. * Parameters:
  27263. * (Integer) period - The period of the handler.
  27264. * (Function) handler - The callback function.
  27265. */
  27266. _addSysTimedHandler: function _addSysTimedHandler(period, handler) {
  27267. var thand = new Strophe.TimedHandler(period, handler);
  27268. thand.user = false;
  27269. this.addTimeds.push(thand);
  27270. return thand;
  27271. },
  27272. /** PrivateFunction: _addSysHandler
  27273. * _Private_ function to add a system level stanza handler.
  27274. *
  27275. * This function is used to add a Strophe.Handler for the
  27276. * library code. System stanza handlers are allowed to run before
  27277. * authentication is complete.
  27278. *
  27279. * Parameters:
  27280. * (Function) handler - The callback function.
  27281. * (String) ns - The namespace to match.
  27282. * (String) name - The stanza name to match.
  27283. * (String) type - The stanza type attribute to match.
  27284. * (String) id - The stanza id attribute to match.
  27285. */
  27286. _addSysHandler: function _addSysHandler(handler, ns, name, type, id) {
  27287. var hand = new Strophe.Handler(handler, ns, name, type, id);
  27288. hand.user = false;
  27289. this.addHandlers.push(hand);
  27290. return hand;
  27291. },
  27292. /** PrivateFunction: _onDisconnectTimeout
  27293. * _Private_ timeout handler for handling non-graceful disconnection.
  27294. *
  27295. * If the graceful disconnect process does not complete within the
  27296. * time allotted, this handler finishes the disconnect anyway.
  27297. *
  27298. * Returns:
  27299. * false to remove the handler.
  27300. */
  27301. _onDisconnectTimeout: function _onDisconnectTimeout() {
  27302. Strophe.info("_onDisconnectTimeout was called");
  27303. this._changeConnectStatus(Strophe.Status.CONNTIMEOUT, null);
  27304. this._proto._onDisconnectTimeout(); // actually disconnect
  27305. this._doDisconnect();
  27306. return false;
  27307. },
  27308. /** PrivateFunction: _onIdle
  27309. * _Private_ handler to process events during idle cycle.
  27310. *
  27311. * This handler is called every 100ms to fire timed handlers that
  27312. * are ready and keep poll requests going.
  27313. */
  27314. _onIdle: function _onIdle() {
  27315. var _this8 = this;
  27316. // add timed handlers scheduled for addition
  27317. // NOTE: we add before remove in the case a timed handler is
  27318. // added and then deleted before the next _onIdle() call.
  27319. while (this.addTimeds.length > 0) {
  27320. this.timedHandlers.push(this.addTimeds.pop());
  27321. } // remove timed handlers that have been scheduled for deletion
  27322. while (this.removeTimeds.length > 0) {
  27323. var thand = this.removeTimeds.pop();
  27324. var i = this.timedHandlers.indexOf(thand);
  27325. if (i >= 0) {
  27326. this.timedHandlers.splice(i, 1);
  27327. }
  27328. } // call ready timed handlers
  27329. var now = new Date().getTime();
  27330. var newList = [];
  27331. for (var _i6 = 0; _i6 < this.timedHandlers.length; _i6++) {
  27332. var _thand = this.timedHandlers[_i6];
  27333. if (this.authenticated || !_thand.user) {
  27334. var since = _thand.lastCalled + _thand.period;
  27335. if (since - now <= 0) {
  27336. if (_thand.run()) {
  27337. newList.push(_thand);
  27338. }
  27339. } else {
  27340. newList.push(_thand);
  27341. }
  27342. }
  27343. }
  27344. this.timedHandlers = newList;
  27345. clearTimeout(this._idleTimeout);
  27346. this._proto._onIdle(); // reactivate the timer only if connected
  27347. if (this.connected) {
  27348. this._idleTimeout = setTimeout(function () {
  27349. return _this8._onIdle();
  27350. }, 100);
  27351. }
  27352. }
  27353. };
  27354. /** Class: Strophe.SASLMechanism
  27355. *
  27356. * encapsulates SASL authentication mechanisms.
  27357. *
  27358. * User code may override the priority for each mechanism or disable it completely.
  27359. * See <priority> for information about changing priority and <test> for informatian on
  27360. * how to disable a mechanism.
  27361. *
  27362. * By default, all mechanisms are enabled and the priorities are
  27363. *
  27364. * OAUTHBEARER - 60
  27365. * SCRAM-SHA1 - 50
  27366. * DIGEST-MD5 - 40
  27367. * PLAIN - 30
  27368. * ANONYMOUS - 20
  27369. * EXTERNAL - 10
  27370. *
  27371. * See: Strophe.Connection.addSupportedSASLMechanisms
  27372. */
  27373. /**
  27374. * PrivateConstructor: Strophe.SASLMechanism
  27375. * SASL auth mechanism abstraction.
  27376. *
  27377. * Parameters:
  27378. * (String) name - SASL Mechanism name.
  27379. * (Boolean) isClientFirst - If client should send response first without challenge.
  27380. * (Number) priority - Priority.
  27381. *
  27382. * Returns:
  27383. * A new Strophe.SASLMechanism object.
  27384. */
  27385. Strophe.SASLMechanism = function (name, isClientFirst, priority) {
  27386. /** PrivateVariable: name
  27387. * Mechanism name.
  27388. */
  27389. this.name = name;
  27390. /** PrivateVariable: isClientFirst
  27391. * If client sends response without initial server challenge.
  27392. */
  27393. this.isClientFirst = isClientFirst;
  27394. /** Variable: priority
  27395. * Determines which <SASLMechanism> is chosen for authentication (Higher is better).
  27396. * Users may override this to prioritize mechanisms differently.
  27397. *
  27398. * In the default configuration the priorities are
  27399. *
  27400. * SCRAM-SHA1 - 40
  27401. * DIGEST-MD5 - 30
  27402. * Plain - 20
  27403. *
  27404. * Example: (This will cause Strophe to choose the mechanism that the server sent first)
  27405. *
  27406. * > Strophe.SASLMD5.priority = Strophe.SASLSHA1.priority;
  27407. *
  27408. * See <SASL mechanisms> for a list of available mechanisms.
  27409. *
  27410. */
  27411. this.priority = priority;
  27412. };
  27413. Strophe.SASLMechanism.prototype = {
  27414. /**
  27415. * Function: test
  27416. * Checks if mechanism able to run.
  27417. * To disable a mechanism, make this return false;
  27418. *
  27419. * To disable plain authentication run
  27420. * > Strophe.SASLPlain.test = function() {
  27421. * > return false;
  27422. * > }
  27423. *
  27424. * See <SASL mechanisms> for a list of available mechanisms.
  27425. *
  27426. * Parameters:
  27427. * (Strophe.Connection) connection - Target Connection.
  27428. *
  27429. * Returns:
  27430. * (Boolean) If mechanism was able to run.
  27431. */
  27432. /* jshint unused:false */
  27433. test: function test(connection) {
  27434. return true;
  27435. },
  27436. /* jshint unused:true */
  27437. /** PrivateFunction: onStart
  27438. * Called before starting mechanism on some connection.
  27439. *
  27440. * Parameters:
  27441. * (Strophe.Connection) connection - Target Connection.
  27442. */
  27443. onStart: function onStart(connection) {
  27444. this._connection = connection;
  27445. },
  27446. /** PrivateFunction: onChallenge
  27447. * Called by protocol implementation on incoming challenge. If client is
  27448. * first (isClientFirst === true) challenge will be null on the first call.
  27449. *
  27450. * Parameters:
  27451. * (Strophe.Connection) connection - Target Connection.
  27452. * (String) challenge - current challenge to handle.
  27453. *
  27454. * Returns:
  27455. * (String) Mechanism response.
  27456. */
  27457. /* jshint unused:false */
  27458. onChallenge: function onChallenge(connection, challenge) {
  27459. throw new Error("You should implement challenge handling!");
  27460. },
  27461. /* jshint unused:true */
  27462. /** PrivateFunction: onFailure
  27463. * Protocol informs mechanism implementation about SASL failure.
  27464. */
  27465. onFailure: function onFailure() {
  27466. this._connection = null;
  27467. },
  27468. /** PrivateFunction: onSuccess
  27469. * Protocol informs mechanism implementation about SASL success.
  27470. */
  27471. onSuccess: function onSuccess() {
  27472. this._connection = null;
  27473. }
  27474. };
  27475. /** Constants: SASL mechanisms
  27476. * Available authentication mechanisms
  27477. *
  27478. * Strophe.SASLAnonymous - SASL ANONYMOUS authentication.
  27479. * Strophe.SASLPlain - SASL PLAIN authentication.
  27480. * Strophe.SASLMD5 - SASL DIGEST-MD5 authentication
  27481. * Strophe.SASLSHA1 - SASL SCRAM-SHA1 authentication
  27482. * Strophe.SASLOAuthBearer - SASL OAuth Bearer authentication
  27483. * Strophe.SASLExternal - SASL EXTERNAL authentication
  27484. * Strophe.SASLXOAuth2 - SASL X-OAuth2 authentication
  27485. */
  27486. // Building SASL callbacks
  27487. /** PrivateConstructor: SASLAnonymous
  27488. * SASL ANONYMOUS authentication.
  27489. */
  27490. Strophe.SASLAnonymous = function () {};
  27491. Strophe.SASLAnonymous.prototype = new Strophe.SASLMechanism("ANONYMOUS", false, 20);
  27492. Strophe.SASLAnonymous.prototype.test = function (connection) {
  27493. return connection.authcid === null;
  27494. };
  27495. /** PrivateConstructor: SASLPlain
  27496. * SASL PLAIN authentication.
  27497. */
  27498. Strophe.SASLPlain = function () {};
  27499. Strophe.SASLPlain.prototype = new Strophe.SASLMechanism("PLAIN", true, 50);
  27500. Strophe.SASLPlain.prototype.test = function (connection) {
  27501. return connection.authcid !== null;
  27502. };
  27503. Strophe.SASLPlain.prototype.onChallenge = function (connection) {
  27504. var auth_str = connection.authzid;
  27505. auth_str = auth_str + "\0";
  27506. auth_str = auth_str + connection.authcid;
  27507. auth_str = auth_str + "\0";
  27508. auth_str = auth_str + connection.pass;
  27509. return utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(auth_str);
  27510. };
  27511. /** PrivateConstructor: SASLSHA1
  27512. * SASL SCRAM SHA 1 authentication.
  27513. */
  27514. Strophe.SASLSHA1 = function () {};
  27515. Strophe.SASLSHA1.prototype = new Strophe.SASLMechanism("SCRAM-SHA-1", true, 70);
  27516. Strophe.SASLSHA1.prototype.test = function (connection) {
  27517. return connection.authcid !== null;
  27518. };
  27519. Strophe.SASLSHA1.prototype.onChallenge = function (connection, challenge, test_cnonce) {
  27520. var cnonce = test_cnonce || md5__WEBPACK_IMPORTED_MODULE_0__["default"].hexdigest(Math.random() * 1234567890);
  27521. var auth_str = "n=" + utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(connection.authcid);
  27522. auth_str += ",r=";
  27523. auth_str += cnonce;
  27524. connection._sasl_data.cnonce = cnonce;
  27525. connection._sasl_data["client-first-message-bare"] = auth_str;
  27526. auth_str = "n,," + auth_str;
  27527. this.onChallenge = function (connection, challenge) {
  27528. var nonce, salt, iter, Hi, U, U_old, i, k;
  27529. var responseText = "c=biws,";
  27530. var authMessage = "".concat(connection._sasl_data["client-first-message-bare"], ",").concat(challenge, ",");
  27531. var cnonce = connection._sasl_data.cnonce;
  27532. var attribMatch = /([a-z]+)=([^,]+)(,|$)/;
  27533. while (challenge.match(attribMatch)) {
  27534. var matches = challenge.match(attribMatch);
  27535. challenge = challenge.replace(matches[0], "");
  27536. switch (matches[1]) {
  27537. case "r":
  27538. nonce = matches[2];
  27539. break;
  27540. case "s":
  27541. salt = matches[2];
  27542. break;
  27543. case "i":
  27544. iter = matches[2];
  27545. break;
  27546. }
  27547. }
  27548. if (nonce.substr(0, cnonce.length) !== cnonce) {
  27549. connection._sasl_data = {};
  27550. return connection._sasl_failure_cb();
  27551. }
  27552. responseText += "r=" + nonce;
  27553. authMessage += responseText;
  27554. salt = atob(salt);
  27555. salt += "\x00\x00\x00\x01";
  27556. var pass = utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(connection.pass);
  27557. Hi = U_old = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].core_hmac_sha1(pass, salt);
  27558. for (i = 1; i < iter; i++) {
  27559. U = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].core_hmac_sha1(pass, sha1__WEBPACK_IMPORTED_MODULE_1__["default"].binb2str(U_old));
  27560. for (k = 0; k < 5; k++) {
  27561. Hi[k] ^= U[k];
  27562. }
  27563. U_old = U;
  27564. }
  27565. Hi = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].binb2str(Hi);
  27566. var clientKey = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].core_hmac_sha1(Hi, "Client Key");
  27567. var serverKey = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].str_hmac_sha1(Hi, "Server Key");
  27568. var clientSignature = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].core_hmac_sha1(sha1__WEBPACK_IMPORTED_MODULE_1__["default"].str_sha1(sha1__WEBPACK_IMPORTED_MODULE_1__["default"].binb2str(clientKey)), authMessage);
  27569. connection._sasl_data["server-signature"] = sha1__WEBPACK_IMPORTED_MODULE_1__["default"].b64_hmac_sha1(serverKey, authMessage);
  27570. for (k = 0; k < 5; k++) {
  27571. clientKey[k] ^= clientSignature[k];
  27572. }
  27573. responseText += ",p=" + btoa(sha1__WEBPACK_IMPORTED_MODULE_1__["default"].binb2str(clientKey));
  27574. return responseText;
  27575. };
  27576. return auth_str;
  27577. };
  27578. /** PrivateConstructor: SASLMD5
  27579. * SASL DIGEST MD5 authentication.
  27580. */
  27581. Strophe.SASLMD5 = function () {};
  27582. Strophe.SASLMD5.prototype = new Strophe.SASLMechanism("DIGEST-MD5", false, 60);
  27583. Strophe.SASLMD5.prototype.test = function (connection) {
  27584. return connection.authcid !== null;
  27585. };
  27586. /** PrivateFunction: _quote
  27587. * _Private_ utility function to backslash escape and quote strings.
  27588. *
  27589. * Parameters:
  27590. * (String) str - The string to be quoted.
  27591. *
  27592. * Returns:
  27593. * quoted string
  27594. */
  27595. Strophe.SASLMD5.prototype._quote = function (str) {
  27596. return '"' + str.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"'; //" end string workaround for emacs
  27597. };
  27598. Strophe.SASLMD5.prototype.onChallenge = function (connection, challenge, test_cnonce) {
  27599. var attribMatch = /([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/;
  27600. var cnonce = test_cnonce || md5__WEBPACK_IMPORTED_MODULE_0__["default"].hexdigest("" + Math.random() * 1234567890);
  27601. var realm = "";
  27602. var host = null;
  27603. var nonce = "";
  27604. var qop = "";
  27605. while (challenge.match(attribMatch)) {
  27606. var matches = challenge.match(attribMatch);
  27607. challenge = challenge.replace(matches[0], "");
  27608. matches[2] = matches[2].replace(/^"(.+)"$/, "$1");
  27609. switch (matches[1]) {
  27610. case "realm":
  27611. realm = matches[2];
  27612. break;
  27613. case "nonce":
  27614. nonce = matches[2];
  27615. break;
  27616. case "qop":
  27617. qop = matches[2];
  27618. break;
  27619. case "host":
  27620. host = matches[2];
  27621. break;
  27622. }
  27623. }
  27624. var digest_uri = connection.servtype + "/" + connection.domain;
  27625. if (host !== null) {
  27626. digest_uri = digest_uri + "/" + host;
  27627. }
  27628. var cred = utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(connection.authcid + ":" + realm + ":" + this._connection.pass);
  27629. var A1 = md5__WEBPACK_IMPORTED_MODULE_0__["default"].hash(cred) + ":" + nonce + ":" + cnonce;
  27630. var A2 = 'AUTHENTICATE:' + digest_uri;
  27631. var responseText = "";
  27632. responseText += 'charset=utf-8,';
  27633. responseText += 'username=' + this._quote(utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(connection.authcid)) + ',';
  27634. responseText += 'realm=' + this._quote(realm) + ',';
  27635. responseText += 'nonce=' + this._quote(nonce) + ',';
  27636. responseText += 'nc=00000001,';
  27637. responseText += 'cnonce=' + this._quote(cnonce) + ',';
  27638. responseText += 'digest-uri=' + this._quote(digest_uri) + ',';
  27639. responseText += 'response=' + md5__WEBPACK_IMPORTED_MODULE_0__["default"].hexdigest(md5__WEBPACK_IMPORTED_MODULE_0__["default"].hexdigest(A1) + ":" + nonce + ":00000001:" + cnonce + ":auth:" + md5__WEBPACK_IMPORTED_MODULE_0__["default"].hexdigest(A2)) + ",";
  27640. responseText += 'qop=auth';
  27641. this.onChallenge = function () {
  27642. return "";
  27643. };
  27644. return responseText;
  27645. };
  27646. /** PrivateConstructor: SASLOAuthBearer
  27647. * SASL OAuth Bearer authentication.
  27648. */
  27649. Strophe.SASLOAuthBearer = function () {};
  27650. Strophe.SASLOAuthBearer.prototype = new Strophe.SASLMechanism("OAUTHBEARER", true, 40);
  27651. Strophe.SASLOAuthBearer.prototype.test = function (connection) {
  27652. return connection.pass !== null;
  27653. };
  27654. Strophe.SASLOAuthBearer.prototype.onChallenge = function (connection) {
  27655. var auth_str = 'n,';
  27656. if (connection.authcid !== null) {
  27657. auth_str = auth_str + 'a=' + connection.authzid;
  27658. }
  27659. auth_str = auth_str + ',';
  27660. auth_str = auth_str + "\x01";
  27661. auth_str = auth_str + 'auth=Bearer ';
  27662. auth_str = auth_str + connection.pass;
  27663. auth_str = auth_str + "\x01";
  27664. auth_str = auth_str + "\x01";
  27665. return utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(auth_str);
  27666. };
  27667. /** PrivateConstructor: SASLExternal
  27668. * SASL EXTERNAL authentication.
  27669. *
  27670. * The EXTERNAL mechanism allows a client to request the server to use
  27671. * credentials established by means external to the mechanism to
  27672. * authenticate the client. The external means may be, for instance,
  27673. * TLS services.
  27674. */
  27675. Strophe.SASLExternal = function () {};
  27676. Strophe.SASLExternal.prototype = new Strophe.SASLMechanism("EXTERNAL", true, 10);
  27677. Strophe.SASLExternal.prototype.onChallenge = function (connection) {
  27678. /** According to XEP-178, an authzid SHOULD NOT be presented when the
  27679. * authcid contained or implied in the client certificate is the JID (i.e.
  27680. * authzid) with which the user wants to log in as.
  27681. *
  27682. * To NOT send the authzid, the user should therefore set the authcid equal
  27683. * to the JID when instantiating a new Strophe.Connection object.
  27684. */
  27685. return connection.authcid === connection.authzid ? '' : connection.authzid;
  27686. };
  27687. /** PrivateConstructor: SASLXOAuth2
  27688. * SASL X-OAuth2 authentication.
  27689. */
  27690. Strophe.SASLXOAuth2 = function () {};
  27691. Strophe.SASLXOAuth2.prototype = new Strophe.SASLMechanism("X-OAUTH2", true, 30);
  27692. Strophe.SASLXOAuth2.prototype.test = function (connection) {
  27693. return connection.pass !== null;
  27694. };
  27695. Strophe.SASLXOAuth2.prototype.onChallenge = function (connection) {
  27696. var auth_str = "\0";
  27697. if (connection.authcid !== null) {
  27698. auth_str = auth_str + connection.authzid;
  27699. }
  27700. auth_str = auth_str + "\0";
  27701. auth_str = auth_str + connection.pass;
  27702. return utils__WEBPACK_IMPORTED_MODULE_2__["default"].utf16to8(auth_str);
  27703. };
  27704. /* harmony default export */ __webpack_exports__["default"] = ({
  27705. 'Strophe': Strophe,
  27706. '$build': $build,
  27707. '$iq': $iq,
  27708. '$msg': $msg,
  27709. '$pres': $pres,
  27710. 'SHA1': sha1__WEBPACK_IMPORTED_MODULE_1__["default"],
  27711. 'MD5': md5__WEBPACK_IMPORTED_MODULE_0__["default"],
  27712. 'b64_hmac_sha1': sha1__WEBPACK_IMPORTED_MODULE_1__["default"].b64_hmac_sha1,
  27713. 'b64_sha1': sha1__WEBPACK_IMPORTED_MODULE_1__["default"].b64_sha1,
  27714. 'str_hmac_sha1': sha1__WEBPACK_IMPORTED_MODULE_1__["default"].str_hmac_sha1,
  27715. 'str_sha1': sha1__WEBPACK_IMPORTED_MODULE_1__["default"].str_sha1
  27716. });
  27717. /***/ }),
  27718. /***/ "./src/md5.js":
  27719. /*!********************!*\
  27720. !*** ./src/md5.js ***!
  27721. \********************/
  27722. /*! exports provided: default */
  27723. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27724. "use strict";
  27725. __webpack_require__.r(__webpack_exports__);
  27726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MD5; });
  27727. /*
  27728. * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
  27729. * Digest Algorithm, as defined in RFC 1321.
  27730. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
  27731. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
  27732. * Distributed under the BSD License
  27733. * See http://pajhome.org.uk/crypt/md5 for more info.
  27734. */
  27735. /*
  27736. * Everything that isn't used by Strophe has been stripped here!
  27737. */
  27738. /*
  27739. * Add integers, wrapping at 2^32. This uses 16-bit operations internally
  27740. * to work around bugs in some JS interpreters.
  27741. */
  27742. var safe_add = function safe_add(x, y) {
  27743. var lsw = (x & 0xFFFF) + (y & 0xFFFF);
  27744. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  27745. return msw << 16 | lsw & 0xFFFF;
  27746. };
  27747. /*
  27748. * Bitwise rotate a 32-bit number to the left.
  27749. */
  27750. var bit_rol = function bit_rol(num, cnt) {
  27751. return num << cnt | num >>> 32 - cnt;
  27752. };
  27753. /*
  27754. * Convert a string to an array of little-endian words
  27755. */
  27756. var str2binl = function str2binl(str) {
  27757. var bin = [];
  27758. for (var i = 0; i < str.length * 8; i += 8) {
  27759. bin[i >> 5] |= (str.charCodeAt(i / 8) & 255) << i % 32;
  27760. }
  27761. return bin;
  27762. };
  27763. /*
  27764. * Convert an array of little-endian words to a string
  27765. */
  27766. var binl2str = function binl2str(bin) {
  27767. var str = "";
  27768. for (var i = 0; i < bin.length * 32; i += 8) {
  27769. str += String.fromCharCode(bin[i >> 5] >>> i % 32 & 255);
  27770. }
  27771. return str;
  27772. };
  27773. /*
  27774. * Convert an array of little-endian words to a hex string.
  27775. */
  27776. var binl2hex = function binl2hex(binarray) {
  27777. var hex_tab = "0123456789abcdef";
  27778. var str = "";
  27779. for (var i = 0; i < binarray.length * 4; i++) {
  27780. str += hex_tab.charAt(binarray[i >> 2] >> i % 4 * 8 + 4 & 0xF) + hex_tab.charAt(binarray[i >> 2] >> i % 4 * 8 & 0xF);
  27781. }
  27782. return str;
  27783. };
  27784. /*
  27785. * These functions implement the four basic operations the algorithm uses.
  27786. */
  27787. var md5_cmn = function md5_cmn(q, a, b, x, s, t) {
  27788. return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b);
  27789. };
  27790. var md5_ff = function md5_ff(a, b, c, d, x, s, t) {
  27791. return md5_cmn(b & c | ~b & d, a, b, x, s, t);
  27792. };
  27793. var md5_gg = function md5_gg(a, b, c, d, x, s, t) {
  27794. return md5_cmn(b & d | c & ~d, a, b, x, s, t);
  27795. };
  27796. var md5_hh = function md5_hh(a, b, c, d, x, s, t) {
  27797. return md5_cmn(b ^ c ^ d, a, b, x, s, t);
  27798. };
  27799. var md5_ii = function md5_ii(a, b, c, d, x, s, t) {
  27800. return md5_cmn(c ^ (b | ~d), a, b, x, s, t);
  27801. };
  27802. /*
  27803. * Calculate the MD5 of an array of little-endian words, and a bit length
  27804. */
  27805. var core_md5 = function core_md5(x, len) {
  27806. /* append padding */
  27807. x[len >> 5] |= 0x80 << len % 32;
  27808. x[(len + 64 >>> 9 << 4) + 14] = len;
  27809. var a = 1732584193;
  27810. var b = -271733879;
  27811. var c = -1732584194;
  27812. var d = 271733878;
  27813. var olda, oldb, oldc, oldd;
  27814. for (var i = 0; i < x.length; i += 16) {
  27815. olda = a;
  27816. oldb = b;
  27817. oldc = c;
  27818. oldd = d;
  27819. a = md5_ff(a, b, c, d, x[i + 0], 7, -680876936);
  27820. d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586);
  27821. c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819);
  27822. b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330);
  27823. a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897);
  27824. d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426);
  27825. c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341);
  27826. b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983);
  27827. a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416);
  27828. d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417);
  27829. c = md5_ff(c, d, a, b, x[i + 10], 17, -42063);
  27830. b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162);
  27831. a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682);
  27832. d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101);
  27833. c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290);
  27834. b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329);
  27835. a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510);
  27836. d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632);
  27837. c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713);
  27838. b = md5_gg(b, c, d, a, x[i + 0], 20, -373897302);
  27839. a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691);
  27840. d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083);
  27841. c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335);
  27842. b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848);
  27843. a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438);
  27844. d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690);
  27845. c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961);
  27846. b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501);
  27847. a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467);
  27848. d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784);
  27849. c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473);
  27850. b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734);
  27851. a = md5_hh(a, b, c, d, x[i + 5], 4, -378558);
  27852. d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463);
  27853. c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562);
  27854. b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556);
  27855. a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060);
  27856. d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353);
  27857. c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632);
  27858. b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640);
  27859. a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174);
  27860. d = md5_hh(d, a, b, c, x[i + 0], 11, -358537222);
  27861. c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979);
  27862. b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189);
  27863. a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487);
  27864. d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835);
  27865. c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520);
  27866. b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651);
  27867. a = md5_ii(a, b, c, d, x[i + 0], 6, -198630844);
  27868. d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415);
  27869. c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905);
  27870. b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055);
  27871. a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571);
  27872. d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606);
  27873. c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523);
  27874. b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799);
  27875. a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359);
  27876. d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744);
  27877. c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380);
  27878. b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649);
  27879. a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070);
  27880. d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379);
  27881. c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259);
  27882. b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551);
  27883. a = safe_add(a, olda);
  27884. b = safe_add(b, oldb);
  27885. c = safe_add(c, oldc);
  27886. d = safe_add(d, oldd);
  27887. }
  27888. return [a, b, c, d];
  27889. };
  27890. /*
  27891. * These are the functions you'll usually want to call.
  27892. * They take string arguments and return either hex or base-64 encoded
  27893. * strings.
  27894. */
  27895. var MD5 = {
  27896. hexdigest: function hexdigest(s) {
  27897. return binl2hex(core_md5(str2binl(s), s.length * 8));
  27898. },
  27899. hash: function hash(s) {
  27900. return binl2str(core_md5(str2binl(s), s.length * 8));
  27901. }
  27902. };
  27903. /***/ }),
  27904. /***/ "./src/sha1.js":
  27905. /*!*********************!*\
  27906. !*** ./src/sha1.js ***!
  27907. \*********************/
  27908. /*! exports provided: default */
  27909. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27910. "use strict";
  27911. __webpack_require__.r(__webpack_exports__);
  27912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SHA1; });
  27913. /*
  27914. * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
  27915. * in FIPS PUB 180-1
  27916. * Version 2.1a Copyright Paul Johnston 2000 - 2002.
  27917. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
  27918. * Distributed under the BSD License
  27919. * See http://pajhome.org.uk/crypt/md5 for details.
  27920. */
  27921. /* jshint undef: true, unused: true:, noarg: true, latedef: false */
  27922. /* global define */
  27923. /* Some functions and variables have been stripped for use with Strophe */
  27924. /*
  27925. * Calculate the SHA-1 of an array of big-endian words, and a bit length
  27926. */
  27927. function core_sha1(x, len) {
  27928. /* append padding */
  27929. x[len >> 5] |= 0x80 << 24 - len % 32;
  27930. x[(len + 64 >> 9 << 4) + 15] = len;
  27931. var w = new Array(80);
  27932. var a = 1732584193;
  27933. var b = -271733879;
  27934. var c = -1732584194;
  27935. var d = 271733878;
  27936. var e = -1009589776;
  27937. var i, j, t, olda, oldb, oldc, oldd, olde;
  27938. for (i = 0; i < x.length; i += 16) {
  27939. olda = a;
  27940. oldb = b;
  27941. oldc = c;
  27942. oldd = d;
  27943. olde = e;
  27944. for (j = 0; j < 80; j++) {
  27945. if (j < 16) {
  27946. w[j] = x[i + j];
  27947. } else {
  27948. w[j] = rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);
  27949. }
  27950. t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j)));
  27951. e = d;
  27952. d = c;
  27953. c = rol(b, 30);
  27954. b = a;
  27955. a = t;
  27956. }
  27957. a = safe_add(a, olda);
  27958. b = safe_add(b, oldb);
  27959. c = safe_add(c, oldc);
  27960. d = safe_add(d, oldd);
  27961. e = safe_add(e, olde);
  27962. }
  27963. return [a, b, c, d, e];
  27964. }
  27965. /*
  27966. * Perform the appropriate triplet combination function for the current
  27967. * iteration
  27968. */
  27969. function sha1_ft(t, b, c, d) {
  27970. if (t < 20) {
  27971. return b & c | ~b & d;
  27972. }
  27973. if (t < 40) {
  27974. return b ^ c ^ d;
  27975. }
  27976. if (t < 60) {
  27977. return b & c | b & d | c & d;
  27978. }
  27979. return b ^ c ^ d;
  27980. }
  27981. /*
  27982. * Determine the appropriate additive constant for the current iteration
  27983. */
  27984. function sha1_kt(t) {
  27985. return t < 20 ? 1518500249 : t < 40 ? 1859775393 : t < 60 ? -1894007588 : -899497514;
  27986. }
  27987. /*
  27988. * Calculate the HMAC-SHA1 of a key and some data
  27989. */
  27990. function core_hmac_sha1(key, data) {
  27991. var bkey = str2binb(key);
  27992. if (bkey.length > 16) {
  27993. bkey = core_sha1(bkey, key.length * 8);
  27994. }
  27995. var ipad = new Array(16),
  27996. opad = new Array(16);
  27997. for (var i = 0; i < 16; i++) {
  27998. ipad[i] = bkey[i] ^ 0x36363636;
  27999. opad[i] = bkey[i] ^ 0x5C5C5C5C;
  28000. }
  28001. var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * 8);
  28002. return core_sha1(opad.concat(hash), 512 + 160);
  28003. }
  28004. /*
  28005. * Add integers, wrapping at 2^32. This uses 16-bit operations internally
  28006. * to work around bugs in some JS interpreters.
  28007. */
  28008. function safe_add(x, y) {
  28009. var lsw = (x & 0xFFFF) + (y & 0xFFFF);
  28010. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  28011. return msw << 16 | lsw & 0xFFFF;
  28012. }
  28013. /*
  28014. * Bitwise rotate a 32-bit number to the left.
  28015. */
  28016. function rol(num, cnt) {
  28017. return num << cnt | num >>> 32 - cnt;
  28018. }
  28019. /*
  28020. * Convert an 8-bit or 16-bit string to an array of big-endian words
  28021. * In 8-bit function, characters >255 have their hi-byte silently ignored.
  28022. */
  28023. function str2binb(str) {
  28024. var bin = [];
  28025. var mask = 255;
  28026. for (var i = 0; i < str.length * 8; i += 8) {
  28027. bin[i >> 5] |= (str.charCodeAt(i / 8) & mask) << 24 - i % 32;
  28028. }
  28029. return bin;
  28030. }
  28031. /*
  28032. * Convert an array of big-endian words to a base-64 string
  28033. */
  28034. function binb2b64(binarray) {
  28035. var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  28036. var str = "";
  28037. var triplet, j;
  28038. for (var i = 0; i < binarray.length * 4; i += 3) {
  28039. triplet = (binarray[i >> 2] >> 8 * (3 - i % 4) & 0xFF) << 16 | (binarray[i + 1 >> 2] >> 8 * (3 - (i + 1) % 4) & 0xFF) << 8 | binarray[i + 2 >> 2] >> 8 * (3 - (i + 2) % 4) & 0xFF;
  28040. for (j = 0; j < 4; j++) {
  28041. if (i * 8 + j * 6 > binarray.length * 32) {
  28042. str += "=";
  28043. } else {
  28044. str += tab.charAt(triplet >> 6 * (3 - j) & 0x3F);
  28045. }
  28046. }
  28047. }
  28048. return str;
  28049. }
  28050. /*
  28051. * Convert an array of big-endian words to a string
  28052. */
  28053. function binb2str(bin) {
  28054. var str = "";
  28055. var mask = 255;
  28056. for (var i = 0; i < bin.length * 32; i += 8) {
  28057. str += String.fromCharCode(bin[i >> 5] >>> 24 - i % 32 & mask);
  28058. }
  28059. return str;
  28060. }
  28061. /*
  28062. * These are the functions you'll usually want to call
  28063. * They take string arguments and return either hex or base-64 encoded strings
  28064. */
  28065. var SHA1 = {
  28066. b64_hmac_sha1: function b64_hmac_sha1(key, data) {
  28067. return binb2b64(core_hmac_sha1(key, data));
  28068. },
  28069. b64_sha1: function b64_sha1(s) {
  28070. return binb2b64(core_sha1(str2binb(s), s.length * 8));
  28071. },
  28072. binb2str: binb2str,
  28073. core_hmac_sha1: core_hmac_sha1,
  28074. str_hmac_sha1: function str_hmac_sha1(key, data) {
  28075. return binb2str(core_hmac_sha1(key, data));
  28076. },
  28077. str_sha1: function str_sha1(s) {
  28078. return binb2str(core_sha1(str2binb(s), s.length * 8));
  28079. }
  28080. };
  28081. /***/ }),
  28082. /***/ "./src/strophe.js":
  28083. /*!************************!*\
  28084. !*** ./src/strophe.js ***!
  28085. \************************/
  28086. /*! exports provided: default */
  28087. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28088. "use strict";
  28089. __webpack_require__.r(__webpack_exports__);
  28090. /* harmony import */ var bosh__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! bosh */ "./src/bosh.js");
  28091. /* harmony import */ var websocket__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! websocket */ "./src/websocket.js");
  28092. /* harmony import */ var core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core */ "./src/core.js");
  28093. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return core__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  28094. /***/ }),
  28095. /***/ "./src/utils.js":
  28096. /*!**********************!*\
  28097. !*** ./src/utils.js ***!
  28098. \**********************/
  28099. /*! exports provided: default */
  28100. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28101. "use strict";
  28102. __webpack_require__.r(__webpack_exports__);
  28103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return utils; });
  28104. 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); }
  28105. var utils = {
  28106. utf16to8: function utf16to8(str) {
  28107. var i, c;
  28108. var out = "";
  28109. var len = str.length;
  28110. for (i = 0; i < len; i++) {
  28111. c = str.charCodeAt(i);
  28112. if (c >= 0x0000 && c <= 0x007F) {
  28113. out += str.charAt(i);
  28114. } else if (c > 0x07FF) {
  28115. out += String.fromCharCode(0xE0 | c >> 12 & 0x0F);
  28116. out += String.fromCharCode(0x80 | c >> 6 & 0x3F);
  28117. out += String.fromCharCode(0x80 | c >> 0 & 0x3F);
  28118. } else {
  28119. out += String.fromCharCode(0xC0 | c >> 6 & 0x1F);
  28120. out += String.fromCharCode(0x80 | c >> 0 & 0x3F);
  28121. }
  28122. }
  28123. return out;
  28124. },
  28125. addCookies: function addCookies(cookies) {
  28126. /* Parameters:
  28127. * (Object) cookies - either a map of cookie names
  28128. * to string values or to maps of cookie values.
  28129. *
  28130. * For example:
  28131. * { "myCookie": "1234" }
  28132. *
  28133. * or:
  28134. * { "myCookie": {
  28135. * "value": "1234",
  28136. * "domain": ".example.org",
  28137. * "path": "/",
  28138. * "expires": expirationDate
  28139. * }
  28140. * }
  28141. *
  28142. * These values get passed to Strophe.Connection via
  28143. * options.cookies
  28144. */
  28145. cookies = cookies || {};
  28146. for (var cookieName in cookies) {
  28147. if (Object.prototype.hasOwnProperty.call(cookies, cookieName)) {
  28148. var expires = '';
  28149. var domain = '';
  28150. var path = '';
  28151. var cookieObj = cookies[cookieName];
  28152. var isObj = _typeof(cookieObj) === "object";
  28153. var cookieValue = escape(unescape(isObj ? cookieObj.value : cookieObj));
  28154. if (isObj) {
  28155. expires = cookieObj.expires ? ";expires=" + cookieObj.expires : '';
  28156. domain = cookieObj.domain ? ";domain=" + cookieObj.domain : '';
  28157. path = cookieObj.path ? ";path=" + cookieObj.path : '';
  28158. }
  28159. document.cookie = cookieName + '=' + cookieValue + expires + domain + path;
  28160. }
  28161. }
  28162. }
  28163. };
  28164. /***/ }),
  28165. /***/ "./src/websocket.js":
  28166. /*!**************************!*\
  28167. !*** ./src/websocket.js ***!
  28168. \**************************/
  28169. /*! no exports provided */
  28170. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28171. "use strict";
  28172. __webpack_require__.r(__webpack_exports__);
  28173. /* harmony import */ var core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core */ "./src/core.js");
  28174. /*
  28175. This program is distributed under the terms of the MIT license.
  28176. Please see the LICENSE file for details.
  28177. Copyright 2006-2008, OGG, LLC
  28178. */
  28179. /* global window, clearTimeout, WebSocket, DOMParser */
  28180. var Strophe = core__WEBPACK_IMPORTED_MODULE_0__["default"].Strophe;
  28181. var $build = core__WEBPACK_IMPORTED_MODULE_0__["default"].$build;
  28182. /** Class: Strophe.WebSocket
  28183. * _Private_ helper class that handles WebSocket Connections
  28184. *
  28185. * The Strophe.WebSocket class is used internally by Strophe.Connection
  28186. * to encapsulate WebSocket sessions. It is not meant to be used from user's code.
  28187. */
  28188. /** File: websocket.js
  28189. * A JavaScript library to enable XMPP over Websocket in Strophejs.
  28190. *
  28191. * This file implements XMPP over WebSockets for Strophejs.
  28192. * If a Connection is established with a Websocket url (ws://...)
  28193. * Strophe will use WebSockets.
  28194. * For more information on XMPP-over-WebSocket see RFC 7395:
  28195. * http://tools.ietf.org/html/rfc7395
  28196. *
  28197. * WebSocket support implemented by Andreas Guth (andreas.guth@rwth-aachen.de)
  28198. */
  28199. /** PrivateConstructor: Strophe.Websocket
  28200. * Create and initialize a Strophe.WebSocket object.
  28201. * Currently only sets the connection Object.
  28202. *
  28203. * Parameters:
  28204. * (Strophe.Connection) connection - The Strophe.Connection that will use WebSockets.
  28205. *
  28206. * Returns:
  28207. * A new Strophe.WebSocket object.
  28208. */
  28209. Strophe.Websocket = function (connection) {
  28210. this._conn = connection;
  28211. this.strip = "wrapper";
  28212. var service = connection.service;
  28213. if (service.indexOf("ws:") !== 0 && service.indexOf("wss:") !== 0) {
  28214. // If the service is not an absolute URL, assume it is a path and put the absolute
  28215. // URL together from options, current URL and the path.
  28216. var new_service = "";
  28217. if (connection.options.protocol === "ws" && window.location.protocol !== "https:") {
  28218. new_service += "ws";
  28219. } else {
  28220. new_service += "wss";
  28221. }
  28222. new_service += "://" + window.location.host;
  28223. if (service.indexOf("/") !== 0) {
  28224. new_service += window.location.pathname + service;
  28225. } else {
  28226. new_service += service;
  28227. }
  28228. connection.service = new_service;
  28229. }
  28230. };
  28231. Strophe.Websocket.prototype = {
  28232. /** PrivateFunction: _buildStream
  28233. * _Private_ helper function to generate the <stream> start tag for WebSockets
  28234. *
  28235. * Returns:
  28236. * A Strophe.Builder with a <stream> element.
  28237. */
  28238. _buildStream: function _buildStream() {
  28239. return $build("open", {
  28240. "xmlns": Strophe.NS.FRAMING,
  28241. "to": this._conn.domain,
  28242. "version": '1.0'
  28243. });
  28244. },
  28245. /** PrivateFunction: _check_streamerror
  28246. * _Private_ checks a message for stream:error
  28247. *
  28248. * Parameters:
  28249. * (Strophe.Request) bodyWrap - The received stanza.
  28250. * connectstatus - The ConnectStatus that will be set on error.
  28251. * Returns:
  28252. * true if there was a streamerror, false otherwise.
  28253. */
  28254. _check_streamerror: function _check_streamerror(bodyWrap, connectstatus) {
  28255. var errors;
  28256. if (bodyWrap.getElementsByTagNameNS) {
  28257. errors = bodyWrap.getElementsByTagNameNS(Strophe.NS.STREAM, "error");
  28258. } else {
  28259. errors = bodyWrap.getElementsByTagName("stream:error");
  28260. }
  28261. if (errors.length === 0) {
  28262. return false;
  28263. }
  28264. var error = errors[0];
  28265. var condition = "";
  28266. var text = "";
  28267. var ns = "urn:ietf:params:xml:ns:xmpp-streams";
  28268. for (var i = 0; i < error.childNodes.length; i++) {
  28269. var e = error.childNodes[i];
  28270. if (e.getAttribute("xmlns") !== ns) {
  28271. break;
  28272. }
  28273. if (e.nodeName === "text") {
  28274. text = e.textContent;
  28275. } else {
  28276. condition = e.nodeName;
  28277. }
  28278. }
  28279. var errorString = "WebSocket stream error: ";
  28280. if (condition) {
  28281. errorString += condition;
  28282. } else {
  28283. errorString += "unknown";
  28284. }
  28285. if (text) {
  28286. errorString += " - " + text;
  28287. }
  28288. Strophe.error(errorString); // close the connection on stream_error
  28289. this._conn._changeConnectStatus(connectstatus, condition);
  28290. this._conn._doDisconnect();
  28291. return true;
  28292. },
  28293. /** PrivateFunction: _reset
  28294. * Reset the connection.
  28295. *
  28296. * This function is called by the reset function of the Strophe Connection.
  28297. * Is not needed by WebSockets.
  28298. */
  28299. _reset: function _reset() {
  28300. return;
  28301. },
  28302. /** PrivateFunction: _connect
  28303. * _Private_ function called by Strophe.Connection.connect
  28304. *
  28305. * Creates a WebSocket for a connection and assigns Callbacks to it.
  28306. * Does nothing if there already is a WebSocket.
  28307. */
  28308. _connect: function _connect() {
  28309. // Ensure that there is no open WebSocket from a previous Connection.
  28310. this._closeSocket(); // Create the new WobSocket
  28311. this.socket = new WebSocket(this._conn.service, "xmpp");
  28312. this.socket.onopen = this._onOpen.bind(this);
  28313. this.socket.onerror = this._onError.bind(this);
  28314. this.socket.onclose = this._onClose.bind(this);
  28315. this.socket.onmessage = this._connect_cb_wrapper.bind(this);
  28316. },
  28317. /** PrivateFunction: _connect_cb
  28318. * _Private_ function called by Strophe.Connection._connect_cb
  28319. *
  28320. * checks for stream:error
  28321. *
  28322. * Parameters:
  28323. * (Strophe.Request) bodyWrap - The received stanza.
  28324. */
  28325. _connect_cb: function _connect_cb(bodyWrap) {
  28326. var error = this._check_streamerror(bodyWrap, Strophe.Status.CONNFAIL);
  28327. if (error) {
  28328. return Strophe.Status.CONNFAIL;
  28329. }
  28330. },
  28331. /** PrivateFunction: _handleStreamStart
  28332. * _Private_ function that checks the opening <open /> tag for errors.
  28333. *
  28334. * Disconnects if there is an error and returns false, true otherwise.
  28335. *
  28336. * Parameters:
  28337. * (Node) message - Stanza containing the <open /> tag.
  28338. */
  28339. _handleStreamStart: function _handleStreamStart(message) {
  28340. var error = false; // Check for errors in the <open /> tag
  28341. var ns = message.getAttribute("xmlns");
  28342. if (typeof ns !== "string") {
  28343. error = "Missing xmlns in <open />";
  28344. } else if (ns !== Strophe.NS.FRAMING) {
  28345. error = "Wrong xmlns in <open />: " + ns;
  28346. }
  28347. var ver = message.getAttribute("version");
  28348. if (typeof ver !== "string") {
  28349. error = "Missing version in <open />";
  28350. } else if (ver !== "1.0") {
  28351. error = "Wrong version in <open />: " + ver;
  28352. }
  28353. if (error) {
  28354. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, error);
  28355. this._conn._doDisconnect();
  28356. return false;
  28357. }
  28358. return true;
  28359. },
  28360. /** PrivateFunction: _connect_cb_wrapper
  28361. * _Private_ function that handles the first connection messages.
  28362. *
  28363. * On receiving an opening stream tag this callback replaces itself with the real
  28364. * message handler. On receiving a stream error the connection is terminated.
  28365. */
  28366. _connect_cb_wrapper: function _connect_cb_wrapper(message) {
  28367. if (message.data.indexOf("<open ") === 0 || message.data.indexOf("<?xml") === 0) {
  28368. // Strip the XML Declaration, if there is one
  28369. var data = message.data.replace(/^(<\?.*?\?>\s*)*/, "");
  28370. if (data === '') return;
  28371. var streamStart = new DOMParser().parseFromString(data, "text/xml").documentElement;
  28372. this._conn.xmlInput(streamStart);
  28373. this._conn.rawInput(message.data); //_handleStreamSteart will check for XML errors and disconnect on error
  28374. if (this._handleStreamStart(streamStart)) {
  28375. //_connect_cb will check for stream:error and disconnect on error
  28376. this._connect_cb(streamStart);
  28377. }
  28378. } else if (message.data.indexOf("<close ") === 0) {
  28379. // <close xmlns="urn:ietf:params:xml:ns:xmpp-framing />
  28380. // Parse the raw string to an XML element
  28381. var parsedMessage = new DOMParser().parseFromString(message.data, "text/xml").documentElement; // Report this input to the raw and xml handlers
  28382. this._conn.xmlInput(parsedMessage);
  28383. this._conn.rawInput(message.data);
  28384. var see_uri = parsedMessage.getAttribute("see-other-uri");
  28385. if (see_uri) {
  28386. var service = this._conn.service; // Valid scenarios: WSS->WSS, WS->ANY
  28387. var isSecureRedirect = service.indexOf("wss:") >= 0 && see_uri.indexOf("wss:") >= 0 || service.indexOf("ws:") >= 0;
  28388. if (isSecureRedirect) {
  28389. this._conn._changeConnectStatus(Strophe.Status.REDIRECT, "Received see-other-uri, resetting connection");
  28390. this._conn.reset();
  28391. this._conn.service = see_uri;
  28392. this._connect();
  28393. }
  28394. } else {
  28395. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "Received closing stream");
  28396. this._conn._doDisconnect();
  28397. }
  28398. } else {
  28399. var string = this._streamWrap(message.data);
  28400. var elem = new DOMParser().parseFromString(string, "text/xml").documentElement;
  28401. this.socket.onmessage = this._onMessage.bind(this);
  28402. this._conn._connect_cb(elem, null, message.data);
  28403. }
  28404. },
  28405. /** PrivateFunction: _disconnect
  28406. * _Private_ function called by Strophe.Connection.disconnect
  28407. *
  28408. * Disconnects and sends a last stanza if one is given
  28409. *
  28410. * Parameters:
  28411. * (Request) pres - This stanza will be sent before disconnecting.
  28412. */
  28413. _disconnect: function _disconnect(pres) {
  28414. if (this.socket && this.socket.readyState !== WebSocket.CLOSED) {
  28415. if (pres) {
  28416. this._conn.send(pres);
  28417. }
  28418. var close = $build("close", {
  28419. "xmlns": Strophe.NS.FRAMING
  28420. });
  28421. this._conn.xmlOutput(close.tree());
  28422. var closeString = Strophe.serialize(close);
  28423. this._conn.rawOutput(closeString);
  28424. try {
  28425. this.socket.send(closeString);
  28426. } catch (e) {
  28427. Strophe.info("Couldn't send <close /> tag.");
  28428. }
  28429. }
  28430. this._conn._doDisconnect();
  28431. },
  28432. /** PrivateFunction: _doDisconnect
  28433. * _Private_ function to disconnect.
  28434. *
  28435. * Just closes the Socket for WebSockets
  28436. */
  28437. _doDisconnect: function _doDisconnect() {
  28438. Strophe.info("WebSockets _doDisconnect was called");
  28439. this._closeSocket();
  28440. },
  28441. /** PrivateFunction _streamWrap
  28442. * _Private_ helper function to wrap a stanza in a <stream> tag.
  28443. * This is used so Strophe can process stanzas from WebSockets like BOSH
  28444. */
  28445. _streamWrap: function _streamWrap(stanza) {
  28446. return "<wrapper>" + stanza + '</wrapper>';
  28447. },
  28448. /** PrivateFunction: _closeSocket
  28449. * _Private_ function to close the WebSocket.
  28450. *
  28451. * Closes the socket if it is still open and deletes it
  28452. */
  28453. _closeSocket: function _closeSocket() {
  28454. if (this.socket) {
  28455. try {
  28456. this.socket.onerror = null;
  28457. this.socket.close();
  28458. } catch (e) {
  28459. Strophe.debug(e.message);
  28460. }
  28461. }
  28462. this.socket = null;
  28463. },
  28464. /** PrivateFunction: _emptyQueue
  28465. * _Private_ function to check if the message queue is empty.
  28466. *
  28467. * Returns:
  28468. * True, because WebSocket messages are send immediately after queueing.
  28469. */
  28470. _emptyQueue: function _emptyQueue() {
  28471. return true;
  28472. },
  28473. /** PrivateFunction: _onClose
  28474. * _Private_ function to handle websockets closing.
  28475. *
  28476. * Nothing to do here for WebSockets
  28477. */
  28478. _onClose: function _onClose(e) {
  28479. if (this._conn.connected && !this._conn.disconnecting) {
  28480. Strophe.error("Websocket closed unexpectedly");
  28481. this._conn._doDisconnect();
  28482. } else if (e && e.code === 1006 && !this._conn.connected && this.socket) {
  28483. // in case the onError callback was not called (Safari 10 does not
  28484. // call onerror when the initial connection fails) we need to
  28485. // dispatch a CONNFAIL status update to be consistent with the
  28486. // behavior on other browsers.
  28487. Strophe.error("Websocket closed unexcectedly");
  28488. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established or was disconnected.");
  28489. this._conn._doDisconnect();
  28490. } else {
  28491. Strophe.info("Websocket closed");
  28492. }
  28493. },
  28494. /** PrivateFunction: _no_auth_received
  28495. *
  28496. * Called on stream start/restart when no stream:features
  28497. * has been received.
  28498. */
  28499. _no_auth_received: function _no_auth_received(callback) {
  28500. Strophe.error("Server did not offer a supported authentication mechanism");
  28501. this._changeConnectStatus(Strophe.Status.CONNFAIL, Strophe.ErrorCondition.NO_AUTH_MECH);
  28502. if (callback) {
  28503. callback.call(this._conn);
  28504. }
  28505. this._conn._doDisconnect();
  28506. },
  28507. /** PrivateFunction: _onDisconnectTimeout
  28508. * _Private_ timeout handler for handling non-graceful disconnection.
  28509. *
  28510. * This does nothing for WebSockets
  28511. */
  28512. _onDisconnectTimeout: function _onDisconnectTimeout() {},
  28513. /** PrivateFunction: _abortAllRequests
  28514. * _Private_ helper function that makes sure all pending requests are aborted.
  28515. */
  28516. _abortAllRequests: function _abortAllRequests() {},
  28517. /** PrivateFunction: _onError
  28518. * _Private_ function to handle websockets errors.
  28519. *
  28520. * Parameters:
  28521. * (Object) error - The websocket error.
  28522. */
  28523. _onError: function _onError(error) {
  28524. Strophe.error("Websocket error " + error);
  28525. this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established or was disconnected.");
  28526. this._disconnect();
  28527. },
  28528. /** PrivateFunction: _onIdle
  28529. * _Private_ function called by Strophe.Connection._onIdle
  28530. *
  28531. * sends all queued stanzas
  28532. */
  28533. _onIdle: function _onIdle() {
  28534. var data = this._conn._data;
  28535. if (data.length > 0 && !this._conn.paused) {
  28536. for (var i = 0; i < data.length; i++) {
  28537. if (data[i] !== null) {
  28538. var stanza = void 0;
  28539. if (data[i] === "restart") {
  28540. stanza = this._buildStream().tree();
  28541. } else {
  28542. stanza = data[i];
  28543. }
  28544. var rawStanza = Strophe.serialize(stanza);
  28545. this._conn.xmlOutput(stanza);
  28546. this._conn.rawOutput(rawStanza);
  28547. this.socket.send(rawStanza);
  28548. }
  28549. }
  28550. this._conn._data = [];
  28551. }
  28552. },
  28553. /** PrivateFunction: _onMessage
  28554. * _Private_ function to handle websockets messages.
  28555. *
  28556. * This function parses each of the messages as if they are full documents.
  28557. * [TODO : We may actually want to use a SAX Push parser].
  28558. *
  28559. * Since all XMPP traffic starts with
  28560. * <stream:stream version='1.0'
  28561. * xml:lang='en'
  28562. * xmlns='jabber:client'
  28563. * xmlns:stream='http://etherx.jabber.org/streams'
  28564. * id='3697395463'
  28565. * from='SERVER'>
  28566. *
  28567. * The first stanza will always fail to be parsed.
  28568. *
  28569. * Additionally, the seconds stanza will always be <stream:features> with
  28570. * the stream NS defined in the previous stanza, so we need to 'force'
  28571. * the inclusion of the NS in this stanza.
  28572. *
  28573. * Parameters:
  28574. * (string) message - The websocket message.
  28575. */
  28576. _onMessage: function _onMessage(message) {
  28577. var elem; // check for closing stream
  28578. var close = '<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />';
  28579. if (message.data === close) {
  28580. this._conn.rawInput(close);
  28581. this._conn.xmlInput(message);
  28582. if (!this._conn.disconnecting) {
  28583. this._conn._doDisconnect();
  28584. }
  28585. return;
  28586. } else if (message.data.search("<open ") === 0) {
  28587. // This handles stream restarts
  28588. elem = new DOMParser().parseFromString(message.data, "text/xml").documentElement;
  28589. if (!this._handleStreamStart(elem)) {
  28590. return;
  28591. }
  28592. } else {
  28593. var data = this._streamWrap(message.data);
  28594. elem = new DOMParser().parseFromString(data, "text/xml").documentElement;
  28595. }
  28596. if (this._check_streamerror(elem, Strophe.Status.ERROR)) {
  28597. return;
  28598. } //handle unavailable presence stanza before disconnecting
  28599. if (this._conn.disconnecting && elem.firstChild.nodeName === "presence" && elem.firstChild.getAttribute("type") === "unavailable") {
  28600. this._conn.xmlInput(elem);
  28601. this._conn.rawInput(Strophe.serialize(elem)); // if we are already disconnecting we will ignore the unavailable stanza and
  28602. // wait for the </stream:stream> tag before we close the connection
  28603. return;
  28604. }
  28605. this._conn._dataRecv(elem, message.data);
  28606. },
  28607. /** PrivateFunction: _onOpen
  28608. * _Private_ function to handle websockets connection setup.
  28609. *
  28610. * The opening stream tag is sent here.
  28611. */
  28612. _onOpen: function _onOpen() {
  28613. Strophe.info("Websocket open");
  28614. var start = this._buildStream();
  28615. this._conn.xmlOutput(start.tree());
  28616. var startString = Strophe.serialize(start);
  28617. this._conn.rawOutput(startString);
  28618. this.socket.send(startString);
  28619. },
  28620. /** PrivateFunction: _reqToData
  28621. * _Private_ function to get a stanza out of a request.
  28622. *
  28623. * WebSockets don't use requests, so the passed argument is just returned.
  28624. *
  28625. * Parameters:
  28626. * (Object) stanza - The stanza.
  28627. *
  28628. * Returns:
  28629. * The stanza that was passed.
  28630. */
  28631. _reqToData: function _reqToData(stanza) {
  28632. return stanza;
  28633. },
  28634. /** PrivateFunction: _send
  28635. * _Private_ part of the Connection.send function for WebSocket
  28636. *
  28637. * Just flushes the messages that are in the queue
  28638. */
  28639. _send: function _send() {
  28640. this._conn.flush();
  28641. },
  28642. /** PrivateFunction: _sendRestart
  28643. *
  28644. * Send an xmpp:restart stanza.
  28645. */
  28646. _sendRestart: function _sendRestart() {
  28647. clearTimeout(this._conn._idleTimeout);
  28648. this._conn._onIdle.bind(this._conn)();
  28649. }
  28650. };
  28651. /***/ })
  28652. /******/ })["default"];
  28653. });
  28654. //# sourceMappingURL=strophe.js.map
  28655. /***/ }),
  28656. /***/ "./node_modules/strophejs-plugin-ping/strophe.ping.js":
  28657. /*!************************************************************!*\
  28658. !*** ./node_modules/strophejs-plugin-ping/strophe.ping.js ***!
  28659. \************************************************************/
  28660. /*! no static exports found */
  28661. /***/ (function(module, exports, __webpack_require__) {
  28662. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
  28663. * Based on Ping Strophejs plugins (https://github.com/metajack/strophejs-plugins/tree/master/ping)
  28664. * This plugin is distributed under the terms of the MIT licence.
  28665. * Please see the LICENCE file for details.
  28666. *
  28667. * Copyright (c) Markus Kohlhase, 2010
  28668. * Refactored by Pavel Lang, 2011
  28669. * AMD Support added by Thierry
  28670. */
  28671. /**
  28672. * File: strophe.ping.js
  28673. * A Strophe plugin for XMPP Ping ( http://xmpp.org/extensions/xep-0199.html )
  28674. */
  28675. (function (root, factory) {
  28676. if (true) {
  28677. // AMD. Register as an anonymous module.
  28678. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
  28679. __webpack_require__(/*! strophe.js */ "./node_modules/strophe.js/dist/strophe.js")
  28680. ], __WEBPACK_AMD_DEFINE_RESULT__ = (function (Strophe) {
  28681. factory(
  28682. Strophe.Strophe,
  28683. Strophe.$build,
  28684. Strophe.$iq ,
  28685. Strophe.$msg,
  28686. Strophe.$pres
  28687. );
  28688. return Strophe;
  28689. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  28690. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  28691. } else {}
  28692. }(this, function (Strophe, $build, $iq, $msg, $pres) {
  28693. Strophe.addConnectionPlugin('ping', {
  28694. _c: null,
  28695. // called by the Strophe.Connection constructor
  28696. init: function(conn) {
  28697. this._c = conn;
  28698. Strophe.addNamespace('PING', "urn:xmpp:ping");
  28699. },
  28700. /**
  28701. * Function: ping
  28702. *
  28703. * Parameters:
  28704. * (String) to - The JID you want to ping
  28705. * (Function) success - Callback function on success
  28706. * (Function) error - Callback function on error
  28707. * (Integer) timeout - Timeout in milliseconds
  28708. */
  28709. ping: function(jid, success, error, timeout) {
  28710. var id = this._c.getUniqueId('ping');
  28711. var iq = $iq({type: 'get', to: jid, id: id}).c(
  28712. 'ping', {xmlns: Strophe.NS.PING});
  28713. this._c.sendIQ(iq, success, error, timeout);
  28714. },
  28715. /**
  28716. * Function: pong
  28717. *
  28718. * Parameters:
  28719. * (Object) ping - The ping stanza from the server.
  28720. */
  28721. pong: function(ping) {
  28722. var from = ping.getAttribute('from');
  28723. var id = ping.getAttribute('id');
  28724. var iq = $iq({type: 'result', to: from,id: id});
  28725. this._c.sendIQ(iq);
  28726. },
  28727. /**
  28728. * Function: addPingHandler
  28729. *
  28730. * Parameters:
  28731. * (Function) handler - Ping handler
  28732. *
  28733. * Returns:
  28734. * A reference to the handler that can be used to remove it.
  28735. */
  28736. addPingHandler: function(handler) {
  28737. return this._c.addHandler(handler, Strophe.NS.PING, "iq", "get");
  28738. }
  28739. });
  28740. }));
  28741. /***/ }),
  28742. /***/ "./node_modules/strophejs-plugin-rsm/lib/strophe.rsm.js":
  28743. /*!**************************************************************!*\
  28744. !*** ./node_modules/strophejs-plugin-rsm/lib/strophe.rsm.js ***!
  28745. \**************************************************************/
  28746. /*! no static exports found */
  28747. /***/ (function(module, exports, __webpack_require__) {
  28748. (function (global, factory) {
  28749. true ? factory(__webpack_require__(/*! strophe.js */ "./node_modules/strophe.js/dist/strophe.js")) :
  28750. undefined;
  28751. }(this, (function (strophe_js) { 'use strict';
  28752. strophe_js.Strophe.addNamespace('RSM', 'http://jabber.org/protocol/rsm');
  28753. strophe_js.Strophe.RSM = function(options) {
  28754. this.attribs = ['max', 'first', 'last', 'after', 'before', 'index', 'count'];
  28755. if (typeof options.xml != 'undefined') {
  28756. this.fromXMLElement(options.xml);
  28757. } else {
  28758. for (var ii = 0; ii < this.attribs.length; ii++) {
  28759. var attrib = this.attribs[ii];
  28760. this[attrib] = options[attrib];
  28761. }
  28762. }
  28763. };
  28764. strophe_js.Strophe.RSM.prototype = {
  28765. toXML: function() {
  28766. var xml = strophe_js.$build('set', {xmlns: strophe_js.Strophe.NS.RSM});
  28767. for (var ii = 0; ii < this.attribs.length; ii++) {
  28768. var attrib = this.attribs[ii];
  28769. if (typeof this[attrib] != 'undefined') {
  28770. xml = xml.c(attrib).t(this[attrib].toString()).up();
  28771. }
  28772. }
  28773. return xml.tree();
  28774. },
  28775. next: function(max) {
  28776. var newSet = new strophe_js.Strophe.RSM({max: max, after: this.last});
  28777. return newSet;
  28778. },
  28779. previous: function(max) {
  28780. var newSet = new strophe_js.Strophe.RSM({max: max, before: this.first});
  28781. return newSet;
  28782. },
  28783. fromXMLElement: function(xmlElement) {
  28784. for (var ii = 0; ii < this.attribs.length; ii++) {
  28785. var attrib = this.attribs[ii];
  28786. var elem = xmlElement.getElementsByTagName(attrib)[0];
  28787. if (typeof elem != 'undefined' && elem !== null) {
  28788. this[attrib] = strophe_js.Strophe.getText(elem);
  28789. if (attrib == 'first') {
  28790. this.index = elem.getAttribute('index');
  28791. }
  28792. }
  28793. }
  28794. }
  28795. };
  28796. })));
  28797. //# sourceMappingURL=strophe.rsm.js.map
  28798. /***/ }),
  28799. /***/ "./node_modules/twemoji/2/esm.js":
  28800. /*!***************************************!*\
  28801. !*** ./node_modules/twemoji/2/esm.js ***!
  28802. \***************************************/
  28803. /*! exports provided: default */
  28804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28805. "use strict";
  28806. __webpack_require__.r(__webpack_exports__);
  28807. /*! Copyright Twitter Inc. and other contributors. Licensed under MIT */
  28808. 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||"-")}}();
  28809. /* harmony default export */ __webpack_exports__["default"] = (twemoji);
  28810. /***/ }),
  28811. /***/ "./node_modules/urijs/src/IPv6.js":
  28812. /*!****************************************!*\
  28813. !*** ./node_modules/urijs/src/IPv6.js ***!
  28814. \****************************************/
  28815. /*! no static exports found */
  28816. /***/ (function(module, exports, __webpack_require__) {
  28817. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  28818. * URI.js - Mutating URLs
  28819. * IPv6 Support
  28820. *
  28821. * Version: 1.19.1
  28822. *
  28823. * Author: Rodney Rehm
  28824. * Web: http://medialize.github.io/URI.js/
  28825. *
  28826. * Licensed under
  28827. * MIT License http://www.opensource.org/licenses/mit-license
  28828. *
  28829. */
  28830. (function (root, factory) {
  28831. 'use strict';
  28832. // https://github.com/umdjs/umd/blob/master/returnExports.js
  28833. if (typeof module === 'object' && module.exports) {
  28834. // Node
  28835. module.exports = factory();
  28836. } else if (true) {
  28837. // AMD. Register as an anonymous module.
  28838. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28839. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28840. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  28841. __WEBPACK_AMD_DEFINE_FACTORY__),
  28842. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  28843. } else {}
  28844. }(this, function (root) {
  28845. 'use strict';
  28846. /*
  28847. var _in = "fe80:0000:0000:0000:0204:61ff:fe9d:f156";
  28848. var _out = IPv6.best(_in);
  28849. var _expected = "fe80::204:61ff:fe9d:f156";
  28850. console.log(_in, _out, _expected, _out === _expected);
  28851. */
  28852. // save current IPv6 variable, if any
  28853. var _IPv6 = root && root.IPv6;
  28854. function bestPresentation(address) {
  28855. // based on:
  28856. // Javascript to test an IPv6 address for proper format, and to
  28857. // present the "best text representation" according to IETF Draft RFC at
  28858. // http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04
  28859. // 8 Feb 2010 Rich Brown, Dartware, LLC
  28860. // Please feel free to use this code as long as you provide a link to
  28861. // http://www.intermapper.com
  28862. // http://intermapper.com/support/tools/IPV6-Validator.aspx
  28863. // http://download.dartware.com/thirdparty/ipv6validator.js
  28864. var _address = address.toLowerCase();
  28865. var segments = _address.split(':');
  28866. var length = segments.length;
  28867. var total = 8;
  28868. // trim colons (:: or ::a:b:c… or …a:b:c::)
  28869. if (segments[0] === '' && segments[1] === '' && segments[2] === '') {
  28870. // must have been ::
  28871. // remove first two items
  28872. segments.shift();
  28873. segments.shift();
  28874. } else if (segments[0] === '' && segments[1] === '') {
  28875. // must have been ::xxxx
  28876. // remove the first item
  28877. segments.shift();
  28878. } else if (segments[length - 1] === '' && segments[length - 2] === '') {
  28879. // must have been xxxx::
  28880. segments.pop();
  28881. }
  28882. length = segments.length;
  28883. // adjust total segments for IPv4 trailer
  28884. if (segments[length - 1].indexOf('.') !== -1) {
  28885. // found a "." which means IPv4
  28886. total = 7;
  28887. }
  28888. // fill empty segments them with "0000"
  28889. var pos;
  28890. for (pos = 0; pos < length; pos++) {
  28891. if (segments[pos] === '') {
  28892. break;
  28893. }
  28894. }
  28895. if (pos < total) {
  28896. segments.splice(pos, 1, '0000');
  28897. while (segments.length < total) {
  28898. segments.splice(pos, 0, '0000');
  28899. }
  28900. }
  28901. // strip leading zeros
  28902. var _segments;
  28903. for (var i = 0; i < total; i++) {
  28904. _segments = segments[i].split('');
  28905. for (var j = 0; j < 3 ; j++) {
  28906. if (_segments[0] === '0' && _segments.length > 1) {
  28907. _segments.splice(0,1);
  28908. } else {
  28909. break;
  28910. }
  28911. }
  28912. segments[i] = _segments.join('');
  28913. }
  28914. // find longest sequence of zeroes and coalesce them into one segment
  28915. var best = -1;
  28916. var _best = 0;
  28917. var _current = 0;
  28918. var current = -1;
  28919. var inzeroes = false;
  28920. // i; already declared
  28921. for (i = 0; i < total; i++) {
  28922. if (inzeroes) {
  28923. if (segments[i] === '0') {
  28924. _current += 1;
  28925. } else {
  28926. inzeroes = false;
  28927. if (_current > _best) {
  28928. best = current;
  28929. _best = _current;
  28930. }
  28931. }
  28932. } else {
  28933. if (segments[i] === '0') {
  28934. inzeroes = true;
  28935. current = i;
  28936. _current = 1;
  28937. }
  28938. }
  28939. }
  28940. if (_current > _best) {
  28941. best = current;
  28942. _best = _current;
  28943. }
  28944. if (_best > 1) {
  28945. segments.splice(best, _best, '');
  28946. }
  28947. length = segments.length;
  28948. // assemble remaining segments
  28949. var result = '';
  28950. if (segments[0] === '') {
  28951. result = ':';
  28952. }
  28953. for (i = 0; i < length; i++) {
  28954. result += segments[i];
  28955. if (i === length - 1) {
  28956. break;
  28957. }
  28958. result += ':';
  28959. }
  28960. if (segments[length - 1] === '') {
  28961. result += ':';
  28962. }
  28963. return result;
  28964. }
  28965. function noConflict() {
  28966. /*jshint validthis: true */
  28967. if (root.IPv6 === this) {
  28968. root.IPv6 = _IPv6;
  28969. }
  28970. return this;
  28971. }
  28972. return {
  28973. best: bestPresentation,
  28974. noConflict: noConflict
  28975. };
  28976. }));
  28977. /***/ }),
  28978. /***/ "./node_modules/urijs/src/SecondLevelDomains.js":
  28979. /*!******************************************************!*\
  28980. !*** ./node_modules/urijs/src/SecondLevelDomains.js ***!
  28981. \******************************************************/
  28982. /*! no static exports found */
  28983. /***/ (function(module, exports, __webpack_require__) {
  28984. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  28985. * URI.js - Mutating URLs
  28986. * Second Level Domain (SLD) Support
  28987. *
  28988. * Version: 1.19.1
  28989. *
  28990. * Author: Rodney Rehm
  28991. * Web: http://medialize.github.io/URI.js/
  28992. *
  28993. * Licensed under
  28994. * MIT License http://www.opensource.org/licenses/mit-license
  28995. *
  28996. */
  28997. (function (root, factory) {
  28998. 'use strict';
  28999. // https://github.com/umdjs/umd/blob/master/returnExports.js
  29000. if (typeof module === 'object' && module.exports) {
  29001. // Node
  29002. module.exports = factory();
  29003. } else if (true) {
  29004. // AMD. Register as an anonymous module.
  29005. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  29006. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29007. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  29008. __WEBPACK_AMD_DEFINE_FACTORY__),
  29009. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29010. } else {}
  29011. }(this, function (root) {
  29012. 'use strict';
  29013. // save current SecondLevelDomains variable, if any
  29014. var _SecondLevelDomains = root && root.SecondLevelDomains;
  29015. var SLD = {
  29016. // list of known Second Level Domains
  29017. // converted list of SLDs from https://github.com/gavingmiller/second-level-domains
  29018. // ----
  29019. // publicsuffix.org is more current and actually used by a couple of browsers internally.
  29020. // downside is it also contains domains like "dyndns.org" - which is fine for the security
  29021. // issues browser have to deal with (SOP for cookies, etc) - but is way overboard for URI.js
  29022. // ----
  29023. list: {
  29024. 'ac':' com gov mil net org ',
  29025. 'ae':' ac co gov mil name net org pro sch ',
  29026. 'af':' com edu gov net org ',
  29027. 'al':' com edu gov mil net org ',
  29028. 'ao':' co ed gv it og pb ',
  29029. 'ar':' com edu gob gov int mil net org tur ',
  29030. 'at':' ac co gv or ',
  29031. 'au':' asn com csiro edu gov id net org ',
  29032. 'ba':' co com edu gov mil net org rs unbi unmo unsa untz unze ',
  29033. 'bb':' biz co com edu gov info net org store tv ',
  29034. 'bh':' biz cc com edu gov info net org ',
  29035. 'bn':' com edu gov net org ',
  29036. 'bo':' com edu gob gov int mil net org tv ',
  29037. '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 ',
  29038. 'bs':' com edu gov net org ',
  29039. 'bz':' du et om ov rg ',
  29040. 'ca':' ab bc mb nb nf nl ns nt nu on pe qc sk yk ',
  29041. 'ck':' biz co edu gen gov info net org ',
  29042. '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 ',
  29043. 'co':' com edu gov mil net nom org ',
  29044. 'cr':' ac c co ed fi go or sa ',
  29045. 'cy':' ac biz com ekloges gov ltd name net org parliament press pro tm ',
  29046. 'do':' art com edu gob gov mil net org sld web ',
  29047. 'dz':' art asso com edu gov net org pol ',
  29048. 'ec':' com edu fin gov info med mil net org pro ',
  29049. 'eg':' com edu eun gov mil name net org sci ',
  29050. 'er':' com edu gov ind mil net org rochest w ',
  29051. 'es':' com edu gob nom org ',
  29052. 'et':' biz com edu gov info name net org ',
  29053. 'fj':' ac biz com info mil name net org pro ',
  29054. 'fk':' ac co gov net nom org ',
  29055. 'fr':' asso com f gouv nom prd presse tm ',
  29056. 'gg':' co net org ',
  29057. 'gh':' com edu gov mil org ',
  29058. 'gn':' ac com gov net org ',
  29059. 'gr':' com edu gov mil net org ',
  29060. 'gt':' com edu gob ind mil net org ',
  29061. 'gu':' com edu gov net org ',
  29062. 'hk':' com edu gov idv net org ',
  29063. '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 ',
  29064. 'id':' ac co go mil net or sch web ',
  29065. 'il':' ac co gov idf k12 muni net org ',
  29066. 'in':' ac co edu ernet firm gen gov i ind mil net nic org res ',
  29067. 'iq':' com edu gov i mil net org ',
  29068. 'ir':' ac co dnssec gov i id net org sch ',
  29069. 'it':' edu gov ',
  29070. 'je':' co net org ',
  29071. 'jo':' com edu gov mil name net org sch ',
  29072. 'jp':' ac ad co ed go gr lg ne or ',
  29073. 'ke':' ac co go info me mobi ne or sc ',
  29074. 'kh':' com edu gov mil net org per ',
  29075. 'ki':' biz com de edu gov info mob net org tel ',
  29076. 'km':' asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ',
  29077. 'kn':' edu gov net org ',
  29078. '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 ',
  29079. 'kw':' com edu gov net org ',
  29080. 'ky':' com edu gov net org ',
  29081. 'kz':' com edu gov mil net org ',
  29082. 'lb':' com edu gov net org ',
  29083. 'lk':' assn com edu gov grp hotel int ltd net ngo org sch soc web ',
  29084. 'lr':' com edu gov net org ',
  29085. 'lv':' asn com conf edu gov id mil net org ',
  29086. 'ly':' com edu gov id med net org plc sch ',
  29087. 'ma':' ac co gov m net org press ',
  29088. 'mc':' asso tm ',
  29089. 'me':' ac co edu gov its net org priv ',
  29090. 'mg':' com edu gov mil nom org prd tm ',
  29091. 'mk':' com edu gov inf name net org pro ',
  29092. 'ml':' com edu gov net org presse ',
  29093. 'mn':' edu gov org ',
  29094. 'mo':' com edu gov net org ',
  29095. 'mt':' com edu gov net org ',
  29096. 'mv':' aero biz com coop edu gov info int mil museum name net org pro ',
  29097. 'mw':' ac co com coop edu gov int museum net org ',
  29098. 'mx':' com edu gob net org ',
  29099. 'my':' com edu gov mil name net org sch ',
  29100. 'nf':' arts com firm info net other per rec store web ',
  29101. 'ng':' biz com edu gov mil mobi name net org sch ',
  29102. 'ni':' ac co com edu gob mil net nom org ',
  29103. 'np':' com edu gov mil net org ',
  29104. 'nr':' biz com edu gov info net org ',
  29105. 'om':' ac biz co com edu gov med mil museum net org pro sch ',
  29106. 'pe':' com edu gob mil net nom org sld ',
  29107. 'ph':' com edu gov i mil net ngo org ',
  29108. 'pk':' biz com edu fam gob gok gon gop gos gov net org web ',
  29109. '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 ',
  29110. 'pr':' ac biz com edu est gov info isla name net org pro prof ',
  29111. 'ps':' com edu gov net org plo sec ',
  29112. 'pw':' belau co ed go ne or ',
  29113. 'ro':' arts com firm info nom nt org rec store tm www ',
  29114. 'rs':' ac co edu gov in org ',
  29115. 'sb':' com edu gov net org ',
  29116. 'sc':' com edu gov net org ',
  29117. 'sh':' co com edu gov net nom org ',
  29118. 'sl':' com edu gov net org ',
  29119. 'st':' co com consulado edu embaixada gov mil net org principe saotome store ',
  29120. 'sv':' com edu gob org red ',
  29121. 'sz':' ac co org ',
  29122. 'tr':' av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ',
  29123. 'tt':' aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ',
  29124. 'tw':' club com ebiz edu game gov idv mil net org ',
  29125. 'mu':' ac co com gov net or org ',
  29126. 'mz':' ac co edu gov org ',
  29127. 'na':' co com ',
  29128. 'nz':' ac co cri geek gen govt health iwi maori mil net org parliament school ',
  29129. 'pa':' abo ac com edu gob ing med net nom org sld ',
  29130. 'pt':' com edu gov int net nome org publ ',
  29131. 'py':' com edu gov mil net org ',
  29132. 'qa':' com edu gov mil net org ',
  29133. 're':' asso com nom ',
  29134. '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 ',
  29135. 'rw':' ac co com edu gouv gov int mil net ',
  29136. 'sa':' com edu gov med net org pub sch ',
  29137. 'sd':' com edu gov info med net org tv ',
  29138. '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 ',
  29139. 'sg':' com edu gov idn net org per ',
  29140. 'sn':' art com edu gouv org perso univ ',
  29141. 'sy':' com edu gov mil net news org ',
  29142. 'th':' ac co go in mi net or ',
  29143. 'tj':' ac biz co com edu go gov info int mil name net nic org test web ',
  29144. 'tn':' agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ',
  29145. 'tz':' ac co go ne or ',
  29146. '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 ',
  29147. 'ug':' ac co go ne or org sc ',
  29148. '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 ',
  29149. 'us':' dni fed isa kids nsn ',
  29150. 'uy':' com edu gub mil net org ',
  29151. 've':' co com edu gob info mil net org web ',
  29152. 'vi':' co com k12 net org ',
  29153. 'vn':' ac biz com edu gov health info int name net org pro ',
  29154. 'ye':' co com gov ltd me net org plc ',
  29155. 'yu':' ac co edu gov org ',
  29156. '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 ',
  29157. 'zm':' ac co com edu gov net org sch ',
  29158. // https://en.wikipedia.org/wiki/CentralNic#Second-level_domains
  29159. 'com': 'ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ',
  29160. 'net': 'gb jp se uk ',
  29161. 'org': 'ae',
  29162. 'de': 'com '
  29163. },
  29164. // gorhill 2013-10-25: Using indexOf() instead Regexp(). Significant boost
  29165. // in both performance and memory footprint. No initialization required.
  29166. // http://jsperf.com/uri-js-sld-regex-vs-binary-search/4
  29167. // Following methods use lastIndexOf() rather than array.split() in order
  29168. // to avoid any memory allocations.
  29169. has: function(domain) {
  29170. var tldOffset = domain.lastIndexOf('.');
  29171. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  29172. return false;
  29173. }
  29174. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  29175. if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
  29176. return false;
  29177. }
  29178. var sldList = SLD.list[domain.slice(tldOffset+1)];
  29179. if (!sldList) {
  29180. return false;
  29181. }
  29182. return sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') >= 0;
  29183. },
  29184. is: function(domain) {
  29185. var tldOffset = domain.lastIndexOf('.');
  29186. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  29187. return false;
  29188. }
  29189. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  29190. if (sldOffset >= 0) {
  29191. return false;
  29192. }
  29193. var sldList = SLD.list[domain.slice(tldOffset+1)];
  29194. if (!sldList) {
  29195. return false;
  29196. }
  29197. return sldList.indexOf(' ' + domain.slice(0, tldOffset) + ' ') >= 0;
  29198. },
  29199. get: function(domain) {
  29200. var tldOffset = domain.lastIndexOf('.');
  29201. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  29202. return null;
  29203. }
  29204. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  29205. if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
  29206. return null;
  29207. }
  29208. var sldList = SLD.list[domain.slice(tldOffset+1)];
  29209. if (!sldList) {
  29210. return null;
  29211. }
  29212. if (sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') < 0) {
  29213. return null;
  29214. }
  29215. return domain.slice(sldOffset+1);
  29216. },
  29217. noConflict: function(){
  29218. if (root.SecondLevelDomains === this) {
  29219. root.SecondLevelDomains = _SecondLevelDomains;
  29220. }
  29221. return this;
  29222. }
  29223. };
  29224. return SLD;
  29225. }));
  29226. /***/ }),
  29227. /***/ "./node_modules/urijs/src/URI.js":
  29228. /*!***************************************!*\
  29229. !*** ./node_modules/urijs/src/URI.js ***!
  29230. \***************************************/
  29231. /*! no static exports found */
  29232. /***/ (function(module, exports, __webpack_require__) {
  29233. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  29234. * URI.js - Mutating URLs
  29235. *
  29236. * Version: 1.19.1
  29237. *
  29238. * Author: Rodney Rehm
  29239. * Web: http://medialize.github.io/URI.js/
  29240. *
  29241. * Licensed under
  29242. * MIT License http://www.opensource.org/licenses/mit-license
  29243. *
  29244. */
  29245. (function (root, factory) {
  29246. 'use strict';
  29247. // https://github.com/umdjs/umd/blob/master/returnExports.js
  29248. if (typeof module === 'object' && module.exports) {
  29249. // Node
  29250. 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"));
  29251. } else if (true) {
  29252. // AMD. Register as an anonymous module.
  29253. !(__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),
  29254. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29255. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  29256. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29257. } else {}
  29258. }(this, function (punycode, IPv6, SLD, root) {
  29259. 'use strict';
  29260. /*global location, escape, unescape */
  29261. // FIXME: v2.0.0 renamce non-camelCase properties to uppercase
  29262. /*jshint camelcase: false */
  29263. // save current URI variable, if any
  29264. var _URI = root && root.URI;
  29265. function URI(url, base) {
  29266. var _urlSupplied = arguments.length >= 1;
  29267. var _baseSupplied = arguments.length >= 2;
  29268. // Allow instantiation without the 'new' keyword
  29269. if (!(this instanceof URI)) {
  29270. if (_urlSupplied) {
  29271. if (_baseSupplied) {
  29272. return new URI(url, base);
  29273. }
  29274. return new URI(url);
  29275. }
  29276. return new URI();
  29277. }
  29278. if (url === undefined) {
  29279. if (_urlSupplied) {
  29280. throw new TypeError('undefined is not a valid argument for URI');
  29281. }
  29282. if (typeof location !== 'undefined') {
  29283. url = location.href + '';
  29284. } else {
  29285. url = '';
  29286. }
  29287. }
  29288. if (url === null) {
  29289. if (_urlSupplied) {
  29290. throw new TypeError('null is not a valid argument for URI');
  29291. }
  29292. }
  29293. this.href(url);
  29294. // resolve to base according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#constructor
  29295. if (base !== undefined) {
  29296. return this.absoluteTo(base);
  29297. }
  29298. return this;
  29299. }
  29300. function isInteger(value) {
  29301. return /^[0-9]+$/.test(value);
  29302. }
  29303. URI.version = '1.19.1';
  29304. var p = URI.prototype;
  29305. var hasOwn = Object.prototype.hasOwnProperty;
  29306. function escapeRegEx(string) {
  29307. // https://github.com/medialize/URI.js/commit/85ac21783c11f8ccab06106dba9735a31a86924d#commitcomment-821963
  29308. return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
  29309. }
  29310. function getType(value) {
  29311. // IE8 doesn't return [Object Undefined] but [Object Object] for undefined value
  29312. if (value === undefined) {
  29313. return 'Undefined';
  29314. }
  29315. return String(Object.prototype.toString.call(value)).slice(8, -1);
  29316. }
  29317. function isArray(obj) {
  29318. return getType(obj) === 'Array';
  29319. }
  29320. function filterArrayValues(data, value) {
  29321. var lookup = {};
  29322. var i, length;
  29323. if (getType(value) === 'RegExp') {
  29324. lookup = null;
  29325. } else if (isArray(value)) {
  29326. for (i = 0, length = value.length; i < length; i++) {
  29327. lookup[value[i]] = true;
  29328. }
  29329. } else {
  29330. lookup[value] = true;
  29331. }
  29332. for (i = 0, length = data.length; i < length; i++) {
  29333. /*jshint laxbreak: true */
  29334. var _match = lookup && lookup[data[i]] !== undefined
  29335. || !lookup && value.test(data[i]);
  29336. /*jshint laxbreak: false */
  29337. if (_match) {
  29338. data.splice(i, 1);
  29339. length--;
  29340. i--;
  29341. }
  29342. }
  29343. return data;
  29344. }
  29345. function arrayContains(list, value) {
  29346. var i, length;
  29347. // value may be string, number, array, regexp
  29348. if (isArray(value)) {
  29349. // Note: this can be optimized to O(n) (instead of current O(m * n))
  29350. for (i = 0, length = value.length; i < length; i++) {
  29351. if (!arrayContains(list, value[i])) {
  29352. return false;
  29353. }
  29354. }
  29355. return true;
  29356. }
  29357. var _type = getType(value);
  29358. for (i = 0, length = list.length; i < length; i++) {
  29359. if (_type === 'RegExp') {
  29360. if (typeof list[i] === 'string' && list[i].match(value)) {
  29361. return true;
  29362. }
  29363. } else if (list[i] === value) {
  29364. return true;
  29365. }
  29366. }
  29367. return false;
  29368. }
  29369. function arraysEqual(one, two) {
  29370. if (!isArray(one) || !isArray(two)) {
  29371. return false;
  29372. }
  29373. // arrays can't be equal if they have different amount of content
  29374. if (one.length !== two.length) {
  29375. return false;
  29376. }
  29377. one.sort();
  29378. two.sort();
  29379. for (var i = 0, l = one.length; i < l; i++) {
  29380. if (one[i] !== two[i]) {
  29381. return false;
  29382. }
  29383. }
  29384. return true;
  29385. }
  29386. function trimSlashes(text) {
  29387. var trim_expression = /^\/+|\/+$/g;
  29388. return text.replace(trim_expression, '');
  29389. }
  29390. URI._parts = function() {
  29391. return {
  29392. protocol: null,
  29393. username: null,
  29394. password: null,
  29395. hostname: null,
  29396. urn: null,
  29397. port: null,
  29398. path: null,
  29399. query: null,
  29400. fragment: null,
  29401. // state
  29402. preventInvalidHostname: URI.preventInvalidHostname,
  29403. duplicateQueryParameters: URI.duplicateQueryParameters,
  29404. escapeQuerySpace: URI.escapeQuerySpace
  29405. };
  29406. };
  29407. // state: throw on invalid hostname
  29408. // see https://github.com/medialize/URI.js/pull/345
  29409. // and https://github.com/medialize/URI.js/issues/354
  29410. URI.preventInvalidHostname = false;
  29411. // state: allow duplicate query parameters (a=1&a=1)
  29412. URI.duplicateQueryParameters = false;
  29413. // state: replaces + with %20 (space in query strings)
  29414. URI.escapeQuerySpace = true;
  29415. // static properties
  29416. URI.protocol_expression = /^[a-z][a-z0-9.+-]*$/i;
  29417. URI.idn_expression = /[^a-z0-9\._-]/i;
  29418. URI.punycode_expression = /(xn--)/i;
  29419. // well, 333.444.555.666 matches, but it sure ain't no IPv4 - do we care?
  29420. URI.ip4_expression = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
  29421. // credits to Rich Brown
  29422. // source: http://forums.intermapper.com/viewtopic.php?p=1096#1096
  29423. // specification: http://www.ietf.org/rfc/rfc4291.txt
  29424. 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*$/;
  29425. // expression used is "gruber revised" (@gruber v2) determined to be the
  29426. // best solution in a regex-golf we did a couple of ages ago at
  29427. // * http://mathiasbynens.be/demo/url-regex
  29428. // * http://rodneyrehm.de/t/url-regex.html
  29429. 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;
  29430. URI.findUri = {
  29431. // valid "scheme://" or "www."
  29432. start: /\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,
  29433. // everything up to the next whitespace
  29434. end: /[\s\r\n]|$/,
  29435. // trim trailing punctuation captured by end RegExp
  29436. trim: /[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,
  29437. // balanced parens inclusion (), [], {}, <>
  29438. parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
  29439. };
  29440. // http://www.iana.org/assignments/uri-schemes.html
  29441. // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
  29442. URI.defaultPorts = {
  29443. http: '80',
  29444. https: '443',
  29445. ftp: '21',
  29446. gopher: '70',
  29447. ws: '80',
  29448. wss: '443'
  29449. };
  29450. // list of protocols which always require a hostname
  29451. URI.hostProtocols = [
  29452. 'http',
  29453. 'https'
  29454. ];
  29455. // allowed hostname characters according to RFC 3986
  29456. // ALPHA DIGIT "-" "." "_" "~" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" %encoded
  29457. // I've never seen a (non-IDN) hostname other than: ALPHA DIGIT . - _
  29458. URI.invalid_hostname_characters = /[^a-zA-Z0-9\.\-:_]/;
  29459. // map DOM Elements to their URI attribute
  29460. URI.domAttributes = {
  29461. 'a': 'href',
  29462. 'blockquote': 'cite',
  29463. 'link': 'href',
  29464. 'base': 'href',
  29465. 'script': 'src',
  29466. 'form': 'action',
  29467. 'img': 'src',
  29468. 'area': 'href',
  29469. 'iframe': 'src',
  29470. 'embed': 'src',
  29471. 'source': 'src',
  29472. 'track': 'src',
  29473. 'input': 'src', // but only if type="image"
  29474. 'audio': 'src',
  29475. 'video': 'src'
  29476. };
  29477. URI.getDomAttribute = function(node) {
  29478. if (!node || !node.nodeName) {
  29479. return undefined;
  29480. }
  29481. var nodeName = node.nodeName.toLowerCase();
  29482. // <input> should only expose src for type="image"
  29483. if (nodeName === 'input' && node.type !== 'image') {
  29484. return undefined;
  29485. }
  29486. return URI.domAttributes[nodeName];
  29487. };
  29488. function escapeForDumbFirefox36(value) {
  29489. // https://github.com/medialize/URI.js/issues/91
  29490. return escape(value);
  29491. }
  29492. // encoding / decoding according to RFC3986
  29493. function strictEncodeURIComponent(string) {
  29494. // see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent
  29495. return encodeURIComponent(string)
  29496. .replace(/[!'()*]/g, escapeForDumbFirefox36)
  29497. .replace(/\*/g, '%2A');
  29498. }
  29499. URI.encode = strictEncodeURIComponent;
  29500. URI.decode = decodeURIComponent;
  29501. URI.iso8859 = function() {
  29502. URI.encode = escape;
  29503. URI.decode = unescape;
  29504. };
  29505. URI.unicode = function() {
  29506. URI.encode = strictEncodeURIComponent;
  29507. URI.decode = decodeURIComponent;
  29508. };
  29509. URI.characters = {
  29510. pathname: {
  29511. encode: {
  29512. // RFC3986 2.1: For consistency, URI producers and normalizers should
  29513. // use uppercase hexadecimal digits for all percent-encodings.
  29514. expression: /%(24|26|2B|2C|3B|3D|3A|40)/ig,
  29515. map: {
  29516. // -._~!'()*
  29517. '%24': '$',
  29518. '%26': '&',
  29519. '%2B': '+',
  29520. '%2C': ',',
  29521. '%3B': ';',
  29522. '%3D': '=',
  29523. '%3A': ':',
  29524. '%40': '@'
  29525. }
  29526. },
  29527. decode: {
  29528. expression: /[\/\?#]/g,
  29529. map: {
  29530. '/': '%2F',
  29531. '?': '%3F',
  29532. '#': '%23'
  29533. }
  29534. }
  29535. },
  29536. reserved: {
  29537. encode: {
  29538. // RFC3986 2.1: For consistency, URI producers and normalizers should
  29539. // use uppercase hexadecimal digits for all percent-encodings.
  29540. expression: /%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,
  29541. map: {
  29542. // gen-delims
  29543. '%3A': ':',
  29544. '%2F': '/',
  29545. '%3F': '?',
  29546. '%23': '#',
  29547. '%5B': '[',
  29548. '%5D': ']',
  29549. '%40': '@',
  29550. // sub-delims
  29551. '%21': '!',
  29552. '%24': '$',
  29553. '%26': '&',
  29554. '%27': '\'',
  29555. '%28': '(',
  29556. '%29': ')',
  29557. '%2A': '*',
  29558. '%2B': '+',
  29559. '%2C': ',',
  29560. '%3B': ';',
  29561. '%3D': '='
  29562. }
  29563. }
  29564. },
  29565. urnpath: {
  29566. // The characters under `encode` are the characters called out by RFC 2141 as being acceptable
  29567. // for usage in a URN. RFC2141 also calls out "-", ".", and "_" as acceptable characters, but
  29568. // these aren't encoded by encodeURIComponent, so we don't have to call them out here. Also
  29569. // note that the colon character is not featured in the encoding map; this is because URI.js
  29570. // gives the colons in URNs semantic meaning as the delimiters of path segements, and so it
  29571. // should not appear unencoded in a segment itself.
  29572. // See also the note above about RFC3986 and capitalalized hex digits.
  29573. encode: {
  29574. expression: /%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,
  29575. map: {
  29576. '%21': '!',
  29577. '%24': '$',
  29578. '%27': '\'',
  29579. '%28': '(',
  29580. '%29': ')',
  29581. '%2A': '*',
  29582. '%2B': '+',
  29583. '%2C': ',',
  29584. '%3B': ';',
  29585. '%3D': '=',
  29586. '%40': '@'
  29587. }
  29588. },
  29589. // These characters are the characters called out by RFC2141 as "reserved" characters that
  29590. // should never appear in a URN, plus the colon character (see note above).
  29591. decode: {
  29592. expression: /[\/\?#:]/g,
  29593. map: {
  29594. '/': '%2F',
  29595. '?': '%3F',
  29596. '#': '%23',
  29597. ':': '%3A'
  29598. }
  29599. }
  29600. }
  29601. };
  29602. URI.encodeQuery = function(string, escapeQuerySpace) {
  29603. var escaped = URI.encode(string + '');
  29604. if (escapeQuerySpace === undefined) {
  29605. escapeQuerySpace = URI.escapeQuerySpace;
  29606. }
  29607. return escapeQuerySpace ? escaped.replace(/%20/g, '+') : escaped;
  29608. };
  29609. URI.decodeQuery = function(string, escapeQuerySpace) {
  29610. string += '';
  29611. if (escapeQuerySpace === undefined) {
  29612. escapeQuerySpace = URI.escapeQuerySpace;
  29613. }
  29614. try {
  29615. return URI.decode(escapeQuerySpace ? string.replace(/\+/g, '%20') : string);
  29616. } catch(e) {
  29617. // we're not going to mess with weird encodings,
  29618. // give up and return the undecoded original string
  29619. // see https://github.com/medialize/URI.js/issues/87
  29620. // see https://github.com/medialize/URI.js/issues/92
  29621. return string;
  29622. }
  29623. };
  29624. // generate encode/decode path functions
  29625. var _parts = {'encode':'encode', 'decode':'decode'};
  29626. var _part;
  29627. var generateAccessor = function(_group, _part) {
  29628. return function(string) {
  29629. try {
  29630. return URI[_part](string + '').replace(URI.characters[_group][_part].expression, function(c) {
  29631. return URI.characters[_group][_part].map[c];
  29632. });
  29633. } catch (e) {
  29634. // we're not going to mess with weird encodings,
  29635. // give up and return the undecoded original string
  29636. // see https://github.com/medialize/URI.js/issues/87
  29637. // see https://github.com/medialize/URI.js/issues/92
  29638. return string;
  29639. }
  29640. };
  29641. };
  29642. for (_part in _parts) {
  29643. URI[_part + 'PathSegment'] = generateAccessor('pathname', _parts[_part]);
  29644. URI[_part + 'UrnPathSegment'] = generateAccessor('urnpath', _parts[_part]);
  29645. }
  29646. var generateSegmentedPathFunction = function(_sep, _codingFuncName, _innerCodingFuncName) {
  29647. return function(string) {
  29648. // Why pass in names of functions, rather than the function objects themselves? The
  29649. // definitions of some functions (but in particular, URI.decode) will occasionally change due
  29650. // to URI.js having ISO8859 and Unicode modes. Passing in the name and getting it will ensure
  29651. // that the functions we use here are "fresh".
  29652. var actualCodingFunc;
  29653. if (!_innerCodingFuncName) {
  29654. actualCodingFunc = URI[_codingFuncName];
  29655. } else {
  29656. actualCodingFunc = function(string) {
  29657. return URI[_codingFuncName](URI[_innerCodingFuncName](string));
  29658. };
  29659. }
  29660. var segments = (string + '').split(_sep);
  29661. for (var i = 0, length = segments.length; i < length; i++) {
  29662. segments[i] = actualCodingFunc(segments[i]);
  29663. }
  29664. return segments.join(_sep);
  29665. };
  29666. };
  29667. // This takes place outside the above loop because we don't want, e.g., encodeUrnPath functions.
  29668. URI.decodePath = generateSegmentedPathFunction('/', 'decodePathSegment');
  29669. URI.decodeUrnPath = generateSegmentedPathFunction(':', 'decodeUrnPathSegment');
  29670. URI.recodePath = generateSegmentedPathFunction('/', 'encodePathSegment', 'decode');
  29671. URI.recodeUrnPath = generateSegmentedPathFunction(':', 'encodeUrnPathSegment', 'decode');
  29672. URI.encodeReserved = generateAccessor('reserved', 'encode');
  29673. URI.parse = function(string, parts) {
  29674. var pos;
  29675. if (!parts) {
  29676. parts = {
  29677. preventInvalidHostname: URI.preventInvalidHostname
  29678. };
  29679. }
  29680. // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
  29681. // extract fragment
  29682. pos = string.indexOf('#');
  29683. if (pos > -1) {
  29684. // escaping?
  29685. parts.fragment = string.substring(pos + 1) || null;
  29686. string = string.substring(0, pos);
  29687. }
  29688. // extract query
  29689. pos = string.indexOf('?');
  29690. if (pos > -1) {
  29691. // escaping?
  29692. parts.query = string.substring(pos + 1) || null;
  29693. string = string.substring(0, pos);
  29694. }
  29695. // extract protocol
  29696. if (string.substring(0, 2) === '//') {
  29697. // relative-scheme
  29698. parts.protocol = null;
  29699. string = string.substring(2);
  29700. // extract "user:pass@host:port"
  29701. string = URI.parseAuthority(string, parts);
  29702. } else {
  29703. pos = string.indexOf(':');
  29704. if (pos > -1) {
  29705. parts.protocol = string.substring(0, pos) || null;
  29706. if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
  29707. // : may be within the path
  29708. parts.protocol = undefined;
  29709. } else if (string.substring(pos + 1, pos + 3) === '//') {
  29710. string = string.substring(pos + 3);
  29711. // extract "user:pass@host:port"
  29712. string = URI.parseAuthority(string, parts);
  29713. } else {
  29714. string = string.substring(pos + 1);
  29715. parts.urn = true;
  29716. }
  29717. }
  29718. }
  29719. // what's left must be the path
  29720. parts.path = string;
  29721. // and we're done
  29722. return parts;
  29723. };
  29724. URI.parseHost = function(string, parts) {
  29725. if (!string) {
  29726. string = '';
  29727. }
  29728. // Copy chrome, IE, opera backslash-handling behavior.
  29729. // Back slashes before the query string get converted to forward slashes
  29730. // See: https://github.com/joyent/node/blob/386fd24f49b0e9d1a8a076592a404168faeecc34/lib/url.js#L115-L124
  29731. // See: https://code.google.com/p/chromium/issues/detail?id=25916
  29732. // https://github.com/medialize/URI.js/pull/233
  29733. string = string.replace(/\\/g, '/');
  29734. // extract host:port
  29735. var pos = string.indexOf('/');
  29736. var bracketPos;
  29737. var t;
  29738. if (pos === -1) {
  29739. pos = string.length;
  29740. }
  29741. if (string.charAt(0) === '[') {
  29742. // IPv6 host - http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04#section-6
  29743. // I claim most client software breaks on IPv6 anyways. To simplify things, URI only accepts
  29744. // IPv6+port in the format [2001:db8::1]:80 (for the time being)
  29745. bracketPos = string.indexOf(']');
  29746. parts.hostname = string.substring(1, bracketPos) || null;
  29747. parts.port = string.substring(bracketPos + 2, pos) || null;
  29748. if (parts.port === '/') {
  29749. parts.port = null;
  29750. }
  29751. } else {
  29752. var firstColon = string.indexOf(':');
  29753. var firstSlash = string.indexOf('/');
  29754. var nextColon = string.indexOf(':', firstColon + 1);
  29755. if (nextColon !== -1 && (firstSlash === -1 || nextColon < firstSlash)) {
  29756. // IPv6 host contains multiple colons - but no port
  29757. // this notation is actually not allowed by RFC 3986, but we're a liberal parser
  29758. parts.hostname = string.substring(0, pos) || null;
  29759. parts.port = null;
  29760. } else {
  29761. t = string.substring(0, pos).split(':');
  29762. parts.hostname = t[0] || null;
  29763. parts.port = t[1] || null;
  29764. }
  29765. }
  29766. if (parts.hostname && string.substring(pos).charAt(0) !== '/') {
  29767. pos++;
  29768. string = '/' + string;
  29769. }
  29770. if (parts.preventInvalidHostname) {
  29771. URI.ensureValidHostname(parts.hostname, parts.protocol);
  29772. }
  29773. if (parts.port) {
  29774. URI.ensureValidPort(parts.port);
  29775. }
  29776. return string.substring(pos) || '/';
  29777. };
  29778. URI.parseAuthority = function(string, parts) {
  29779. string = URI.parseUserinfo(string, parts);
  29780. return URI.parseHost(string, parts);
  29781. };
  29782. URI.parseUserinfo = function(string, parts) {
  29783. // extract username:password
  29784. var firstSlash = string.indexOf('/');
  29785. var pos = string.lastIndexOf('@', firstSlash > -1 ? firstSlash : string.length - 1);
  29786. var t;
  29787. // authority@ must come before /path
  29788. if (pos > -1 && (firstSlash === -1 || pos < firstSlash)) {
  29789. t = string.substring(0, pos).split(':');
  29790. parts.username = t[0] ? URI.decode(t[0]) : null;
  29791. t.shift();
  29792. parts.password = t[0] ? URI.decode(t.join(':')) : null;
  29793. string = string.substring(pos + 1);
  29794. } else {
  29795. parts.username = null;
  29796. parts.password = null;
  29797. }
  29798. return string;
  29799. };
  29800. URI.parseQuery = function(string, escapeQuerySpace) {
  29801. if (!string) {
  29802. return {};
  29803. }
  29804. // throw out the funky business - "?"[name"="value"&"]+
  29805. string = string.replace(/&+/g, '&').replace(/^\?*&*|&+$/g, '');
  29806. if (!string) {
  29807. return {};
  29808. }
  29809. var items = {};
  29810. var splits = string.split('&');
  29811. var length = splits.length;
  29812. var v, name, value;
  29813. for (var i = 0; i < length; i++) {
  29814. v = splits[i].split('=');
  29815. name = URI.decodeQuery(v.shift(), escapeQuerySpace);
  29816. // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
  29817. value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
  29818. if (hasOwn.call(items, name)) {
  29819. if (typeof items[name] === 'string' || items[name] === null) {
  29820. items[name] = [items[name]];
  29821. }
  29822. items[name].push(value);
  29823. } else {
  29824. items[name] = value;
  29825. }
  29826. }
  29827. return items;
  29828. };
  29829. URI.build = function(parts) {
  29830. var t = '';
  29831. if (parts.protocol) {
  29832. t += parts.protocol + ':';
  29833. }
  29834. if (!parts.urn && (t || parts.hostname)) {
  29835. t += '//';
  29836. }
  29837. t += (URI.buildAuthority(parts) || '');
  29838. if (typeof parts.path === 'string') {
  29839. if (parts.path.charAt(0) !== '/' && typeof parts.hostname === 'string') {
  29840. t += '/';
  29841. }
  29842. t += parts.path;
  29843. }
  29844. if (typeof parts.query === 'string' && parts.query) {
  29845. t += '?' + parts.query;
  29846. }
  29847. if (typeof parts.fragment === 'string' && parts.fragment) {
  29848. t += '#' + parts.fragment;
  29849. }
  29850. return t;
  29851. };
  29852. URI.buildHost = function(parts) {
  29853. var t = '';
  29854. if (!parts.hostname) {
  29855. return '';
  29856. } else if (URI.ip6_expression.test(parts.hostname)) {
  29857. t += '[' + parts.hostname + ']';
  29858. } else {
  29859. t += parts.hostname;
  29860. }
  29861. if (parts.port) {
  29862. t += ':' + parts.port;
  29863. }
  29864. return t;
  29865. };
  29866. URI.buildAuthority = function(parts) {
  29867. return URI.buildUserinfo(parts) + URI.buildHost(parts);
  29868. };
  29869. URI.buildUserinfo = function(parts) {
  29870. var t = '';
  29871. if (parts.username) {
  29872. t += URI.encode(parts.username);
  29873. }
  29874. if (parts.password) {
  29875. t += ':' + URI.encode(parts.password);
  29876. }
  29877. if (t) {
  29878. t += '@';
  29879. }
  29880. return t;
  29881. };
  29882. URI.buildQuery = function(data, duplicateQueryParameters, escapeQuerySpace) {
  29883. // according to http://tools.ietf.org/html/rfc3986 or http://labs.apache.org/webarch/uri/rfc/rfc3986.html
  29884. // being »-._~!$&'()*+,;=:@/?« %HEX and alnum are allowed
  29885. // the RFC explicitly states ?/foo being a valid use case, no mention of parameter syntax!
  29886. // URI.js treats the query string as being application/x-www-form-urlencoded
  29887. // see http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type
  29888. var t = '';
  29889. var unique, key, i, length;
  29890. for (key in data) {
  29891. if (hasOwn.call(data, key) && key) {
  29892. if (isArray(data[key])) {
  29893. unique = {};
  29894. for (i = 0, length = data[key].length; i < length; i++) {
  29895. if (data[key][i] !== undefined && unique[data[key][i] + ''] === undefined) {
  29896. t += '&' + URI.buildQueryParameter(key, data[key][i], escapeQuerySpace);
  29897. if (duplicateQueryParameters !== true) {
  29898. unique[data[key][i] + ''] = true;
  29899. }
  29900. }
  29901. }
  29902. } else if (data[key] !== undefined) {
  29903. t += '&' + URI.buildQueryParameter(key, data[key], escapeQuerySpace);
  29904. }
  29905. }
  29906. }
  29907. return t.substring(1);
  29908. };
  29909. URI.buildQueryParameter = function(name, value, escapeQuerySpace) {
  29910. // http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type -- application/x-www-form-urlencoded
  29911. // don't append "=" for null values, according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#url-parameter-serialization
  29912. return URI.encodeQuery(name, escapeQuerySpace) + (value !== null ? '=' + URI.encodeQuery(value, escapeQuerySpace) : '');
  29913. };
  29914. URI.addQuery = function(data, name, value) {
  29915. if (typeof name === 'object') {
  29916. for (var key in name) {
  29917. if (hasOwn.call(name, key)) {
  29918. URI.addQuery(data, key, name[key]);
  29919. }
  29920. }
  29921. } else if (typeof name === 'string') {
  29922. if (data[name] === undefined) {
  29923. data[name] = value;
  29924. return;
  29925. } else if (typeof data[name] === 'string') {
  29926. data[name] = [data[name]];
  29927. }
  29928. if (!isArray(value)) {
  29929. value = [value];
  29930. }
  29931. data[name] = (data[name] || []).concat(value);
  29932. } else {
  29933. throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
  29934. }
  29935. };
  29936. URI.setQuery = function(data, name, value) {
  29937. if (typeof name === 'object') {
  29938. for (var key in name) {
  29939. if (hasOwn.call(name, key)) {
  29940. URI.setQuery(data, key, name[key]);
  29941. }
  29942. }
  29943. } else if (typeof name === 'string') {
  29944. data[name] = value === undefined ? null : value;
  29945. } else {
  29946. throw new TypeError('URI.setQuery() accepts an object, string as the name parameter');
  29947. }
  29948. };
  29949. URI.removeQuery = function(data, name, value) {
  29950. var i, length, key;
  29951. if (isArray(name)) {
  29952. for (i = 0, length = name.length; i < length; i++) {
  29953. data[name[i]] = undefined;
  29954. }
  29955. } else if (getType(name) === 'RegExp') {
  29956. for (key in data) {
  29957. if (name.test(key)) {
  29958. data[key] = undefined;
  29959. }
  29960. }
  29961. } else if (typeof name === 'object') {
  29962. for (key in name) {
  29963. if (hasOwn.call(name, key)) {
  29964. URI.removeQuery(data, key, name[key]);
  29965. }
  29966. }
  29967. } else if (typeof name === 'string') {
  29968. if (value !== undefined) {
  29969. if (getType(value) === 'RegExp') {
  29970. if (!isArray(data[name]) && value.test(data[name])) {
  29971. data[name] = undefined;
  29972. } else {
  29973. data[name] = filterArrayValues(data[name], value);
  29974. }
  29975. } else if (data[name] === String(value) && (!isArray(value) || value.length === 1)) {
  29976. data[name] = undefined;
  29977. } else if (isArray(data[name])) {
  29978. data[name] = filterArrayValues(data[name], value);
  29979. }
  29980. } else {
  29981. data[name] = undefined;
  29982. }
  29983. } else {
  29984. throw new TypeError('URI.removeQuery() accepts an object, string, RegExp as the first parameter');
  29985. }
  29986. };
  29987. URI.hasQuery = function(data, name, value, withinArray) {
  29988. switch (getType(name)) {
  29989. case 'String':
  29990. // Nothing to do here
  29991. break;
  29992. case 'RegExp':
  29993. for (var key in data) {
  29994. if (hasOwn.call(data, key)) {
  29995. if (name.test(key) && (value === undefined || URI.hasQuery(data, key, value))) {
  29996. return true;
  29997. }
  29998. }
  29999. }
  30000. return false;
  30001. case 'Object':
  30002. for (var _key in name) {
  30003. if (hasOwn.call(name, _key)) {
  30004. if (!URI.hasQuery(data, _key, name[_key])) {
  30005. return false;
  30006. }
  30007. }
  30008. }
  30009. return true;
  30010. default:
  30011. throw new TypeError('URI.hasQuery() accepts a string, regular expression or object as the name parameter');
  30012. }
  30013. switch (getType(value)) {
  30014. case 'Undefined':
  30015. // true if exists (but may be empty)
  30016. return name in data; // data[name] !== undefined;
  30017. case 'Boolean':
  30018. // true if exists and non-empty
  30019. var _booly = Boolean(isArray(data[name]) ? data[name].length : data[name]);
  30020. return value === _booly;
  30021. case 'Function':
  30022. // allow complex comparison
  30023. return !!value(data[name], name, data);
  30024. case 'Array':
  30025. if (!isArray(data[name])) {
  30026. return false;
  30027. }
  30028. var op = withinArray ? arrayContains : arraysEqual;
  30029. return op(data[name], value);
  30030. case 'RegExp':
  30031. if (!isArray(data[name])) {
  30032. return Boolean(data[name] && data[name].match(value));
  30033. }
  30034. if (!withinArray) {
  30035. return false;
  30036. }
  30037. return arrayContains(data[name], value);
  30038. case 'Number':
  30039. value = String(value);
  30040. /* falls through */
  30041. case 'String':
  30042. if (!isArray(data[name])) {
  30043. return data[name] === value;
  30044. }
  30045. if (!withinArray) {
  30046. return false;
  30047. }
  30048. return arrayContains(data[name], value);
  30049. default:
  30050. throw new TypeError('URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter');
  30051. }
  30052. };
  30053. URI.joinPaths = function() {
  30054. var input = [];
  30055. var segments = [];
  30056. var nonEmptySegments = 0;
  30057. for (var i = 0; i < arguments.length; i++) {
  30058. var url = new URI(arguments[i]);
  30059. input.push(url);
  30060. var _segments = url.segment();
  30061. for (var s = 0; s < _segments.length; s++) {
  30062. if (typeof _segments[s] === 'string') {
  30063. segments.push(_segments[s]);
  30064. }
  30065. if (_segments[s]) {
  30066. nonEmptySegments++;
  30067. }
  30068. }
  30069. }
  30070. if (!segments.length || !nonEmptySegments) {
  30071. return new URI('');
  30072. }
  30073. var uri = new URI('').segment(segments);
  30074. if (input[0].path() === '' || input[0].path().slice(0, 1) === '/') {
  30075. uri.path('/' + uri.path());
  30076. }
  30077. return uri.normalize();
  30078. };
  30079. URI.commonPath = function(one, two) {
  30080. var length = Math.min(one.length, two.length);
  30081. var pos;
  30082. // find first non-matching character
  30083. for (pos = 0; pos < length; pos++) {
  30084. if (one.charAt(pos) !== two.charAt(pos)) {
  30085. pos--;
  30086. break;
  30087. }
  30088. }
  30089. if (pos < 1) {
  30090. return one.charAt(0) === two.charAt(0) && one.charAt(0) === '/' ? '/' : '';
  30091. }
  30092. // revert to last /
  30093. if (one.charAt(pos) !== '/' || two.charAt(pos) !== '/') {
  30094. pos = one.substring(0, pos).lastIndexOf('/');
  30095. }
  30096. return one.substring(0, pos + 1);
  30097. };
  30098. URI.withinString = function(string, callback, options) {
  30099. options || (options = {});
  30100. var _start = options.start || URI.findUri.start;
  30101. var _end = options.end || URI.findUri.end;
  30102. var _trim = options.trim || URI.findUri.trim;
  30103. var _parens = options.parens || URI.findUri.parens;
  30104. var _attributeOpen = /[a-z0-9-]=["']?$/i;
  30105. _start.lastIndex = 0;
  30106. while (true) {
  30107. var match = _start.exec(string);
  30108. if (!match) {
  30109. break;
  30110. }
  30111. var start = match.index;
  30112. if (options.ignoreHtml) {
  30113. // attribut(e=["']?$)
  30114. var attributeOpen = string.slice(Math.max(start - 3, 0), start);
  30115. if (attributeOpen && _attributeOpen.test(attributeOpen)) {
  30116. continue;
  30117. }
  30118. }
  30119. var end = start + string.slice(start).search(_end);
  30120. var slice = string.slice(start, end);
  30121. // make sure we include well balanced parens
  30122. var parensEnd = -1;
  30123. while (true) {
  30124. var parensMatch = _parens.exec(slice);
  30125. if (!parensMatch) {
  30126. break;
  30127. }
  30128. var parensMatchEnd = parensMatch.index + parensMatch[0].length;
  30129. parensEnd = Math.max(parensEnd, parensMatchEnd);
  30130. }
  30131. if (parensEnd > -1) {
  30132. slice = slice.slice(0, parensEnd) + slice.slice(parensEnd).replace(_trim, '');
  30133. } else {
  30134. slice = slice.replace(_trim, '');
  30135. }
  30136. if (slice.length <= match[0].length) {
  30137. // the extract only contains the starting marker of a URI,
  30138. // e.g. "www" or "http://"
  30139. continue;
  30140. }
  30141. if (options.ignore && options.ignore.test(slice)) {
  30142. continue;
  30143. }
  30144. end = start + slice.length;
  30145. var result = callback(slice, start, end, string);
  30146. if (result === undefined) {
  30147. _start.lastIndex = end;
  30148. continue;
  30149. }
  30150. result = String(result);
  30151. string = string.slice(0, start) + result + string.slice(end);
  30152. _start.lastIndex = start + result.length;
  30153. }
  30154. _start.lastIndex = 0;
  30155. return string;
  30156. };
  30157. URI.ensureValidHostname = function(v, protocol) {
  30158. // Theoretically URIs allow percent-encoding in Hostnames (according to RFC 3986)
  30159. // they are not part of DNS and therefore ignored by URI.js
  30160. var hasHostname = !!v; // not null and not an empty string
  30161. var hasProtocol = !!protocol;
  30162. var rejectEmptyHostname = false;
  30163. if (hasProtocol) {
  30164. rejectEmptyHostname = arrayContains(URI.hostProtocols, protocol);
  30165. }
  30166. if (rejectEmptyHostname && !hasHostname) {
  30167. throw new TypeError('Hostname cannot be empty, if protocol is ' + protocol);
  30168. } else if (v && v.match(URI.invalid_hostname_characters)) {
  30169. // test punycode
  30170. if (!punycode) {
  30171. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');
  30172. }
  30173. if (punycode.toASCII(v).match(URI.invalid_hostname_characters)) {
  30174. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-:_]');
  30175. }
  30176. }
  30177. };
  30178. URI.ensureValidPort = function (v) {
  30179. if (!v) {
  30180. return;
  30181. }
  30182. var port = Number(v);
  30183. if (isInteger(port) && (port > 0) && (port < 65536)) {
  30184. return;
  30185. }
  30186. throw new TypeError('Port "' + v + '" is not a valid port');
  30187. };
  30188. // noConflict
  30189. URI.noConflict = function(removeAll) {
  30190. if (removeAll) {
  30191. var unconflicted = {
  30192. URI: this.noConflict()
  30193. };
  30194. if (root.URITemplate && typeof root.URITemplate.noConflict === 'function') {
  30195. unconflicted.URITemplate = root.URITemplate.noConflict();
  30196. }
  30197. if (root.IPv6 && typeof root.IPv6.noConflict === 'function') {
  30198. unconflicted.IPv6 = root.IPv6.noConflict();
  30199. }
  30200. if (root.SecondLevelDomains && typeof root.SecondLevelDomains.noConflict === 'function') {
  30201. unconflicted.SecondLevelDomains = root.SecondLevelDomains.noConflict();
  30202. }
  30203. return unconflicted;
  30204. } else if (root.URI === this) {
  30205. root.URI = _URI;
  30206. }
  30207. return this;
  30208. };
  30209. p.build = function(deferBuild) {
  30210. if (deferBuild === true) {
  30211. this._deferred_build = true;
  30212. } else if (deferBuild === undefined || this._deferred_build) {
  30213. this._string = URI.build(this._parts);
  30214. this._deferred_build = false;
  30215. }
  30216. return this;
  30217. };
  30218. p.clone = function() {
  30219. return new URI(this);
  30220. };
  30221. p.valueOf = p.toString = function() {
  30222. return this.build(false)._string;
  30223. };
  30224. function generateSimpleAccessor(_part){
  30225. return function(v, build) {
  30226. if (v === undefined) {
  30227. return this._parts[_part] || '';
  30228. } else {
  30229. this._parts[_part] = v || null;
  30230. this.build(!build);
  30231. return this;
  30232. }
  30233. };
  30234. }
  30235. function generatePrefixAccessor(_part, _key){
  30236. return function(v, build) {
  30237. if (v === undefined) {
  30238. return this._parts[_part] || '';
  30239. } else {
  30240. if (v !== null) {
  30241. v = v + '';
  30242. if (v.charAt(0) === _key) {
  30243. v = v.substring(1);
  30244. }
  30245. }
  30246. this._parts[_part] = v;
  30247. this.build(!build);
  30248. return this;
  30249. }
  30250. };
  30251. }
  30252. p.protocol = generateSimpleAccessor('protocol');
  30253. p.username = generateSimpleAccessor('username');
  30254. p.password = generateSimpleAccessor('password');
  30255. p.hostname = generateSimpleAccessor('hostname');
  30256. p.port = generateSimpleAccessor('port');
  30257. p.query = generatePrefixAccessor('query', '?');
  30258. p.fragment = generatePrefixAccessor('fragment', '#');
  30259. p.search = function(v, build) {
  30260. var t = this.query(v, build);
  30261. return typeof t === 'string' && t.length ? ('?' + t) : t;
  30262. };
  30263. p.hash = function(v, build) {
  30264. var t = this.fragment(v, build);
  30265. return typeof t === 'string' && t.length ? ('#' + t) : t;
  30266. };
  30267. p.pathname = function(v, build) {
  30268. if (v === undefined || v === true) {
  30269. var res = this._parts.path || (this._parts.hostname ? '/' : '');
  30270. return v ? (this._parts.urn ? URI.decodeUrnPath : URI.decodePath)(res) : res;
  30271. } else {
  30272. if (this._parts.urn) {
  30273. this._parts.path = v ? URI.recodeUrnPath(v) : '';
  30274. } else {
  30275. this._parts.path = v ? URI.recodePath(v) : '/';
  30276. }
  30277. this.build(!build);
  30278. return this;
  30279. }
  30280. };
  30281. p.path = p.pathname;
  30282. p.href = function(href, build) {
  30283. var key;
  30284. if (href === undefined) {
  30285. return this.toString();
  30286. }
  30287. this._string = '';
  30288. this._parts = URI._parts();
  30289. var _URI = href instanceof URI;
  30290. var _object = typeof href === 'object' && (href.hostname || href.path || href.pathname);
  30291. if (href.nodeName) {
  30292. var attribute = URI.getDomAttribute(href);
  30293. href = href[attribute] || '';
  30294. _object = false;
  30295. }
  30296. // window.location is reported to be an object, but it's not the sort
  30297. // of object we're looking for:
  30298. // * location.protocol ends with a colon
  30299. // * location.query != object.search
  30300. // * location.hash != object.fragment
  30301. // simply serializing the unknown object should do the trick
  30302. // (for location, not for everything...)
  30303. if (!_URI && _object && href.pathname !== undefined) {
  30304. href = href.toString();
  30305. }
  30306. if (typeof href === 'string' || href instanceof String) {
  30307. this._parts = URI.parse(String(href), this._parts);
  30308. } else if (_URI || _object) {
  30309. var src = _URI ? href._parts : href;
  30310. for (key in src) {
  30311. if (key === 'query') { continue; }
  30312. if (hasOwn.call(this._parts, key)) {
  30313. this._parts[key] = src[key];
  30314. }
  30315. }
  30316. if (src.query) {
  30317. this.query(src.query, false);
  30318. }
  30319. } else {
  30320. throw new TypeError('invalid input');
  30321. }
  30322. this.build(!build);
  30323. return this;
  30324. };
  30325. // identification accessors
  30326. p.is = function(what) {
  30327. var ip = false;
  30328. var ip4 = false;
  30329. var ip6 = false;
  30330. var name = false;
  30331. var sld = false;
  30332. var idn = false;
  30333. var punycode = false;
  30334. var relative = !this._parts.urn;
  30335. if (this._parts.hostname) {
  30336. relative = false;
  30337. ip4 = URI.ip4_expression.test(this._parts.hostname);
  30338. ip6 = URI.ip6_expression.test(this._parts.hostname);
  30339. ip = ip4 || ip6;
  30340. name = !ip;
  30341. sld = name && SLD && SLD.has(this._parts.hostname);
  30342. idn = name && URI.idn_expression.test(this._parts.hostname);
  30343. punycode = name && URI.punycode_expression.test(this._parts.hostname);
  30344. }
  30345. switch (what.toLowerCase()) {
  30346. case 'relative':
  30347. return relative;
  30348. case 'absolute':
  30349. return !relative;
  30350. // hostname identification
  30351. case 'domain':
  30352. case 'name':
  30353. return name;
  30354. case 'sld':
  30355. return sld;
  30356. case 'ip':
  30357. return ip;
  30358. case 'ip4':
  30359. case 'ipv4':
  30360. case 'inet4':
  30361. return ip4;
  30362. case 'ip6':
  30363. case 'ipv6':
  30364. case 'inet6':
  30365. return ip6;
  30366. case 'idn':
  30367. return idn;
  30368. case 'url':
  30369. return !this._parts.urn;
  30370. case 'urn':
  30371. return !!this._parts.urn;
  30372. case 'punycode':
  30373. return punycode;
  30374. }
  30375. return null;
  30376. };
  30377. // component specific input validation
  30378. var _protocol = p.protocol;
  30379. var _port = p.port;
  30380. var _hostname = p.hostname;
  30381. p.protocol = function(v, build) {
  30382. if (v) {
  30383. // accept trailing ://
  30384. v = v.replace(/:(\/\/)?$/, '');
  30385. if (!v.match(URI.protocol_expression)) {
  30386. throw new TypeError('Protocol "' + v + '" contains characters other than [A-Z0-9.+-] or doesn\'t start with [A-Z]');
  30387. }
  30388. }
  30389. return _protocol.call(this, v, build);
  30390. };
  30391. p.scheme = p.protocol;
  30392. p.port = function(v, build) {
  30393. if (this._parts.urn) {
  30394. return v === undefined ? '' : this;
  30395. }
  30396. if (v !== undefined) {
  30397. if (v === 0) {
  30398. v = null;
  30399. }
  30400. if (v) {
  30401. v += '';
  30402. if (v.charAt(0) === ':') {
  30403. v = v.substring(1);
  30404. }
  30405. URI.ensureValidPort(v);
  30406. }
  30407. }
  30408. return _port.call(this, v, build);
  30409. };
  30410. p.hostname = function(v, build) {
  30411. if (this._parts.urn) {
  30412. return v === undefined ? '' : this;
  30413. }
  30414. if (v !== undefined) {
  30415. var x = { preventInvalidHostname: this._parts.preventInvalidHostname };
  30416. var res = URI.parseHost(v, x);
  30417. if (res !== '/') {
  30418. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  30419. }
  30420. v = x.hostname;
  30421. if (this._parts.preventInvalidHostname) {
  30422. URI.ensureValidHostname(v, this._parts.protocol);
  30423. }
  30424. }
  30425. return _hostname.call(this, v, build);
  30426. };
  30427. // compound accessors
  30428. p.origin = function(v, build) {
  30429. if (this._parts.urn) {
  30430. return v === undefined ? '' : this;
  30431. }
  30432. if (v === undefined) {
  30433. var protocol = this.protocol();
  30434. var authority = this.authority();
  30435. if (!authority) {
  30436. return '';
  30437. }
  30438. return (protocol ? protocol + '://' : '') + this.authority();
  30439. } else {
  30440. var origin = URI(v);
  30441. this
  30442. .protocol(origin.protocol())
  30443. .authority(origin.authority())
  30444. .build(!build);
  30445. return this;
  30446. }
  30447. };
  30448. p.host = function(v, build) {
  30449. if (this._parts.urn) {
  30450. return v === undefined ? '' : this;
  30451. }
  30452. if (v === undefined) {
  30453. return this._parts.hostname ? URI.buildHost(this._parts) : '';
  30454. } else {
  30455. var res = URI.parseHost(v, this._parts);
  30456. if (res !== '/') {
  30457. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  30458. }
  30459. this.build(!build);
  30460. return this;
  30461. }
  30462. };
  30463. p.authority = function(v, build) {
  30464. if (this._parts.urn) {
  30465. return v === undefined ? '' : this;
  30466. }
  30467. if (v === undefined) {
  30468. return this._parts.hostname ? URI.buildAuthority(this._parts) : '';
  30469. } else {
  30470. var res = URI.parseAuthority(v, this._parts);
  30471. if (res !== '/') {
  30472. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  30473. }
  30474. this.build(!build);
  30475. return this;
  30476. }
  30477. };
  30478. p.userinfo = function(v, build) {
  30479. if (this._parts.urn) {
  30480. return v === undefined ? '' : this;
  30481. }
  30482. if (v === undefined) {
  30483. var t = URI.buildUserinfo(this._parts);
  30484. return t ? t.substring(0, t.length -1) : t;
  30485. } else {
  30486. if (v[v.length-1] !== '@') {
  30487. v += '@';
  30488. }
  30489. URI.parseUserinfo(v, this._parts);
  30490. this.build(!build);
  30491. return this;
  30492. }
  30493. };
  30494. p.resource = function(v, build) {
  30495. var parts;
  30496. if (v === undefined) {
  30497. return this.path() + this.search() + this.hash();
  30498. }
  30499. parts = URI.parse(v);
  30500. this._parts.path = parts.path;
  30501. this._parts.query = parts.query;
  30502. this._parts.fragment = parts.fragment;
  30503. this.build(!build);
  30504. return this;
  30505. };
  30506. // fraction accessors
  30507. p.subdomain = function(v, build) {
  30508. if (this._parts.urn) {
  30509. return v === undefined ? '' : this;
  30510. }
  30511. // convenience, return "www" from "www.example.org"
  30512. if (v === undefined) {
  30513. if (!this._parts.hostname || this.is('IP')) {
  30514. return '';
  30515. }
  30516. // grab domain and add another segment
  30517. var end = this._parts.hostname.length - this.domain().length - 1;
  30518. return this._parts.hostname.substring(0, end) || '';
  30519. } else {
  30520. var e = this._parts.hostname.length - this.domain().length;
  30521. var sub = this._parts.hostname.substring(0, e);
  30522. var replace = new RegExp('^' + escapeRegEx(sub));
  30523. if (v && v.charAt(v.length - 1) !== '.') {
  30524. v += '.';
  30525. }
  30526. if (v.indexOf(':') !== -1) {
  30527. throw new TypeError('Domains cannot contain colons');
  30528. }
  30529. if (v) {
  30530. URI.ensureValidHostname(v, this._parts.protocol);
  30531. }
  30532. this._parts.hostname = this._parts.hostname.replace(replace, v);
  30533. this.build(!build);
  30534. return this;
  30535. }
  30536. };
  30537. p.domain = function(v, build) {
  30538. if (this._parts.urn) {
  30539. return v === undefined ? '' : this;
  30540. }
  30541. if (typeof v === 'boolean') {
  30542. build = v;
  30543. v = undefined;
  30544. }
  30545. // convenience, return "example.org" from "www.example.org"
  30546. if (v === undefined) {
  30547. if (!this._parts.hostname || this.is('IP')) {
  30548. return '';
  30549. }
  30550. // if hostname consists of 1 or 2 segments, it must be the domain
  30551. var t = this._parts.hostname.match(/\./g);
  30552. if (t && t.length < 2) {
  30553. return this._parts.hostname;
  30554. }
  30555. // grab tld and add another segment
  30556. var end = this._parts.hostname.length - this.tld(build).length - 1;
  30557. end = this._parts.hostname.lastIndexOf('.', end -1) + 1;
  30558. return this._parts.hostname.substring(end) || '';
  30559. } else {
  30560. if (!v) {
  30561. throw new TypeError('cannot set domain empty');
  30562. }
  30563. if (v.indexOf(':') !== -1) {
  30564. throw new TypeError('Domains cannot contain colons');
  30565. }
  30566. URI.ensureValidHostname(v, this._parts.protocol);
  30567. if (!this._parts.hostname || this.is('IP')) {
  30568. this._parts.hostname = v;
  30569. } else {
  30570. var replace = new RegExp(escapeRegEx(this.domain()) + '$');
  30571. this._parts.hostname = this._parts.hostname.replace(replace, v);
  30572. }
  30573. this.build(!build);
  30574. return this;
  30575. }
  30576. };
  30577. p.tld = function(v, build) {
  30578. if (this._parts.urn) {
  30579. return v === undefined ? '' : this;
  30580. }
  30581. if (typeof v === 'boolean') {
  30582. build = v;
  30583. v = undefined;
  30584. }
  30585. // return "org" from "www.example.org"
  30586. if (v === undefined) {
  30587. if (!this._parts.hostname || this.is('IP')) {
  30588. return '';
  30589. }
  30590. var pos = this._parts.hostname.lastIndexOf('.');
  30591. var tld = this._parts.hostname.substring(pos + 1);
  30592. if (build !== true && SLD && SLD.list[tld.toLowerCase()]) {
  30593. return SLD.get(this._parts.hostname) || tld;
  30594. }
  30595. return tld;
  30596. } else {
  30597. var replace;
  30598. if (!v) {
  30599. throw new TypeError('cannot set TLD empty');
  30600. } else if (v.match(/[^a-zA-Z0-9-]/)) {
  30601. if (SLD && SLD.is(v)) {
  30602. replace = new RegExp(escapeRegEx(this.tld()) + '$');
  30603. this._parts.hostname = this._parts.hostname.replace(replace, v);
  30604. } else {
  30605. throw new TypeError('TLD "' + v + '" contains characters other than [A-Z0-9]');
  30606. }
  30607. } else if (!this._parts.hostname || this.is('IP')) {
  30608. throw new ReferenceError('cannot set TLD on non-domain host');
  30609. } else {
  30610. replace = new RegExp(escapeRegEx(this.tld()) + '$');
  30611. this._parts.hostname = this._parts.hostname.replace(replace, v);
  30612. }
  30613. this.build(!build);
  30614. return this;
  30615. }
  30616. };
  30617. p.directory = function(v, build) {
  30618. if (this._parts.urn) {
  30619. return v === undefined ? '' : this;
  30620. }
  30621. if (v === undefined || v === true) {
  30622. if (!this._parts.path && !this._parts.hostname) {
  30623. return '';
  30624. }
  30625. if (this._parts.path === '/') {
  30626. return '/';
  30627. }
  30628. var end = this._parts.path.length - this.filename().length - 1;
  30629. var res = this._parts.path.substring(0, end) || (this._parts.hostname ? '/' : '');
  30630. return v ? URI.decodePath(res) : res;
  30631. } else {
  30632. var e = this._parts.path.length - this.filename().length;
  30633. var directory = this._parts.path.substring(0, e);
  30634. var replace = new RegExp('^' + escapeRegEx(directory));
  30635. // fully qualifier directories begin with a slash
  30636. if (!this.is('relative')) {
  30637. if (!v) {
  30638. v = '/';
  30639. }
  30640. if (v.charAt(0) !== '/') {
  30641. v = '/' + v;
  30642. }
  30643. }
  30644. // directories always end with a slash
  30645. if (v && v.charAt(v.length - 1) !== '/') {
  30646. v += '/';
  30647. }
  30648. v = URI.recodePath(v);
  30649. this._parts.path = this._parts.path.replace(replace, v);
  30650. this.build(!build);
  30651. return this;
  30652. }
  30653. };
  30654. p.filename = function(v, build) {
  30655. if (this._parts.urn) {
  30656. return v === undefined ? '' : this;
  30657. }
  30658. if (typeof v !== 'string') {
  30659. if (!this._parts.path || this._parts.path === '/') {
  30660. return '';
  30661. }
  30662. var pos = this._parts.path.lastIndexOf('/');
  30663. var res = this._parts.path.substring(pos+1);
  30664. return v ? URI.decodePathSegment(res) : res;
  30665. } else {
  30666. var mutatedDirectory = false;
  30667. if (v.charAt(0) === '/') {
  30668. v = v.substring(1);
  30669. }
  30670. if (v.match(/\.?\//)) {
  30671. mutatedDirectory = true;
  30672. }
  30673. var replace = new RegExp(escapeRegEx(this.filename()) + '$');
  30674. v = URI.recodePath(v);
  30675. this._parts.path = this._parts.path.replace(replace, v);
  30676. if (mutatedDirectory) {
  30677. this.normalizePath(build);
  30678. } else {
  30679. this.build(!build);
  30680. }
  30681. return this;
  30682. }
  30683. };
  30684. p.suffix = function(v, build) {
  30685. if (this._parts.urn) {
  30686. return v === undefined ? '' : this;
  30687. }
  30688. if (v === undefined || v === true) {
  30689. if (!this._parts.path || this._parts.path === '/') {
  30690. return '';
  30691. }
  30692. var filename = this.filename();
  30693. var pos = filename.lastIndexOf('.');
  30694. var s, res;
  30695. if (pos === -1) {
  30696. return '';
  30697. }
  30698. // suffix may only contain alnum characters (yup, I made this up.)
  30699. s = filename.substring(pos+1);
  30700. res = (/^[a-z0-9%]+$/i).test(s) ? s : '';
  30701. return v ? URI.decodePathSegment(res) : res;
  30702. } else {
  30703. if (v.charAt(0) === '.') {
  30704. v = v.substring(1);
  30705. }
  30706. var suffix = this.suffix();
  30707. var replace;
  30708. if (!suffix) {
  30709. if (!v) {
  30710. return this;
  30711. }
  30712. this._parts.path += '.' + URI.recodePath(v);
  30713. } else if (!v) {
  30714. replace = new RegExp(escapeRegEx('.' + suffix) + '$');
  30715. } else {
  30716. replace = new RegExp(escapeRegEx(suffix) + '$');
  30717. }
  30718. if (replace) {
  30719. v = URI.recodePath(v);
  30720. this._parts.path = this._parts.path.replace(replace, v);
  30721. }
  30722. this.build(!build);
  30723. return this;
  30724. }
  30725. };
  30726. p.segment = function(segment, v, build) {
  30727. var separator = this._parts.urn ? ':' : '/';
  30728. var path = this.path();
  30729. var absolute = path.substring(0, 1) === '/';
  30730. var segments = path.split(separator);
  30731. if (segment !== undefined && typeof segment !== 'number') {
  30732. build = v;
  30733. v = segment;
  30734. segment = undefined;
  30735. }
  30736. if (segment !== undefined && typeof segment !== 'number') {
  30737. throw new Error('Bad segment "' + segment + '", must be 0-based integer');
  30738. }
  30739. if (absolute) {
  30740. segments.shift();
  30741. }
  30742. if (segment < 0) {
  30743. // allow negative indexes to address from the end
  30744. segment = Math.max(segments.length + segment, 0);
  30745. }
  30746. if (v === undefined) {
  30747. /*jshint laxbreak: true */
  30748. return segment === undefined
  30749. ? segments
  30750. : segments[segment];
  30751. /*jshint laxbreak: false */
  30752. } else if (segment === null || segments[segment] === undefined) {
  30753. if (isArray(v)) {
  30754. segments = [];
  30755. // collapse empty elements within array
  30756. for (var i=0, l=v.length; i < l; i++) {
  30757. if (!v[i].length && (!segments.length || !segments[segments.length -1].length)) {
  30758. continue;
  30759. }
  30760. if (segments.length && !segments[segments.length -1].length) {
  30761. segments.pop();
  30762. }
  30763. segments.push(trimSlashes(v[i]));
  30764. }
  30765. } else if (v || typeof v === 'string') {
  30766. v = trimSlashes(v);
  30767. if (segments[segments.length -1] === '') {
  30768. // empty trailing elements have to be overwritten
  30769. // to prevent results such as /foo//bar
  30770. segments[segments.length -1] = v;
  30771. } else {
  30772. segments.push(v);
  30773. }
  30774. }
  30775. } else {
  30776. if (v) {
  30777. segments[segment] = trimSlashes(v);
  30778. } else {
  30779. segments.splice(segment, 1);
  30780. }
  30781. }
  30782. if (absolute) {
  30783. segments.unshift('');
  30784. }
  30785. return this.path(segments.join(separator), build);
  30786. };
  30787. p.segmentCoded = function(segment, v, build) {
  30788. var segments, i, l;
  30789. if (typeof segment !== 'number') {
  30790. build = v;
  30791. v = segment;
  30792. segment = undefined;
  30793. }
  30794. if (v === undefined) {
  30795. segments = this.segment(segment, v, build);
  30796. if (!isArray(segments)) {
  30797. segments = segments !== undefined ? URI.decode(segments) : undefined;
  30798. } else {
  30799. for (i = 0, l = segments.length; i < l; i++) {
  30800. segments[i] = URI.decode(segments[i]);
  30801. }
  30802. }
  30803. return segments;
  30804. }
  30805. if (!isArray(v)) {
  30806. v = (typeof v === 'string' || v instanceof String) ? URI.encode(v) : v;
  30807. } else {
  30808. for (i = 0, l = v.length; i < l; i++) {
  30809. v[i] = URI.encode(v[i]);
  30810. }
  30811. }
  30812. return this.segment(segment, v, build);
  30813. };
  30814. // mutating query string
  30815. var q = p.query;
  30816. p.query = function(v, build) {
  30817. if (v === true) {
  30818. return URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  30819. } else if (typeof v === 'function') {
  30820. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  30821. var result = v.call(this, data);
  30822. this._parts.query = URI.buildQuery(result || data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  30823. this.build(!build);
  30824. return this;
  30825. } else if (v !== undefined && typeof v !== 'string') {
  30826. this._parts.query = URI.buildQuery(v, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  30827. this.build(!build);
  30828. return this;
  30829. } else {
  30830. return q.call(this, v, build);
  30831. }
  30832. };
  30833. p.setQuery = function(name, value, build) {
  30834. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  30835. if (typeof name === 'string' || name instanceof String) {
  30836. data[name] = value !== undefined ? value : null;
  30837. } else if (typeof name === 'object') {
  30838. for (var key in name) {
  30839. if (hasOwn.call(name, key)) {
  30840. data[key] = name[key];
  30841. }
  30842. }
  30843. } else {
  30844. throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
  30845. }
  30846. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  30847. if (typeof name !== 'string') {
  30848. build = value;
  30849. }
  30850. this.build(!build);
  30851. return this;
  30852. };
  30853. p.addQuery = function(name, value, build) {
  30854. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  30855. URI.addQuery(data, name, value === undefined ? null : value);
  30856. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  30857. if (typeof name !== 'string') {
  30858. build = value;
  30859. }
  30860. this.build(!build);
  30861. return this;
  30862. };
  30863. p.removeQuery = function(name, value, build) {
  30864. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  30865. URI.removeQuery(data, name, value);
  30866. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  30867. if (typeof name !== 'string') {
  30868. build = value;
  30869. }
  30870. this.build(!build);
  30871. return this;
  30872. };
  30873. p.hasQuery = function(name, value, withinArray) {
  30874. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  30875. return URI.hasQuery(data, name, value, withinArray);
  30876. };
  30877. p.setSearch = p.setQuery;
  30878. p.addSearch = p.addQuery;
  30879. p.removeSearch = p.removeQuery;
  30880. p.hasSearch = p.hasQuery;
  30881. // sanitizing URLs
  30882. p.normalize = function() {
  30883. if (this._parts.urn) {
  30884. return this
  30885. .normalizeProtocol(false)
  30886. .normalizePath(false)
  30887. .normalizeQuery(false)
  30888. .normalizeFragment(false)
  30889. .build();
  30890. }
  30891. return this
  30892. .normalizeProtocol(false)
  30893. .normalizeHostname(false)
  30894. .normalizePort(false)
  30895. .normalizePath(false)
  30896. .normalizeQuery(false)
  30897. .normalizeFragment(false)
  30898. .build();
  30899. };
  30900. p.normalizeProtocol = function(build) {
  30901. if (typeof this._parts.protocol === 'string') {
  30902. this._parts.protocol = this._parts.protocol.toLowerCase();
  30903. this.build(!build);
  30904. }
  30905. return this;
  30906. };
  30907. p.normalizeHostname = function(build) {
  30908. if (this._parts.hostname) {
  30909. if (this.is('IDN') && punycode) {
  30910. this._parts.hostname = punycode.toASCII(this._parts.hostname);
  30911. } else if (this.is('IPv6') && IPv6) {
  30912. this._parts.hostname = IPv6.best(this._parts.hostname);
  30913. }
  30914. this._parts.hostname = this._parts.hostname.toLowerCase();
  30915. this.build(!build);
  30916. }
  30917. return this;
  30918. };
  30919. p.normalizePort = function(build) {
  30920. // remove port of it's the protocol's default
  30921. if (typeof this._parts.protocol === 'string' && this._parts.port === URI.defaultPorts[this._parts.protocol]) {
  30922. this._parts.port = null;
  30923. this.build(!build);
  30924. }
  30925. return this;
  30926. };
  30927. p.normalizePath = function(build) {
  30928. var _path = this._parts.path;
  30929. if (!_path) {
  30930. return this;
  30931. }
  30932. if (this._parts.urn) {
  30933. this._parts.path = URI.recodeUrnPath(this._parts.path);
  30934. this.build(!build);
  30935. return this;
  30936. }
  30937. if (this._parts.path === '/') {
  30938. return this;
  30939. }
  30940. _path = URI.recodePath(_path);
  30941. var _was_relative;
  30942. var _leadingParents = '';
  30943. var _parent, _pos;
  30944. // handle relative paths
  30945. if (_path.charAt(0) !== '/') {
  30946. _was_relative = true;
  30947. _path = '/' + _path;
  30948. }
  30949. // handle relative files (as opposed to directories)
  30950. if (_path.slice(-3) === '/..' || _path.slice(-2) === '/.') {
  30951. _path += '/';
  30952. }
  30953. // resolve simples
  30954. _path = _path
  30955. .replace(/(\/(\.\/)+)|(\/\.$)/g, '/')
  30956. .replace(/\/{2,}/g, '/');
  30957. // remember leading parents
  30958. if (_was_relative) {
  30959. _leadingParents = _path.substring(1).match(/^(\.\.\/)+/) || '';
  30960. if (_leadingParents) {
  30961. _leadingParents = _leadingParents[0];
  30962. }
  30963. }
  30964. // resolve parents
  30965. while (true) {
  30966. _parent = _path.search(/\/\.\.(\/|$)/);
  30967. if (_parent === -1) {
  30968. // no more ../ to resolve
  30969. break;
  30970. } else if (_parent === 0) {
  30971. // top level cannot be relative, skip it
  30972. _path = _path.substring(3);
  30973. continue;
  30974. }
  30975. _pos = _path.substring(0, _parent).lastIndexOf('/');
  30976. if (_pos === -1) {
  30977. _pos = _parent;
  30978. }
  30979. _path = _path.substring(0, _pos) + _path.substring(_parent + 3);
  30980. }
  30981. // revert to relative
  30982. if (_was_relative && this.is('relative')) {
  30983. _path = _leadingParents + _path.substring(1);
  30984. }
  30985. this._parts.path = _path;
  30986. this.build(!build);
  30987. return this;
  30988. };
  30989. p.normalizePathname = p.normalizePath;
  30990. p.normalizeQuery = function(build) {
  30991. if (typeof this._parts.query === 'string') {
  30992. if (!this._parts.query.length) {
  30993. this._parts.query = null;
  30994. } else {
  30995. this.query(URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace));
  30996. }
  30997. this.build(!build);
  30998. }
  30999. return this;
  31000. };
  31001. p.normalizeFragment = function(build) {
  31002. if (!this._parts.fragment) {
  31003. this._parts.fragment = null;
  31004. this.build(!build);
  31005. }
  31006. return this;
  31007. };
  31008. p.normalizeSearch = p.normalizeQuery;
  31009. p.normalizeHash = p.normalizeFragment;
  31010. p.iso8859 = function() {
  31011. // expect unicode input, iso8859 output
  31012. var e = URI.encode;
  31013. var d = URI.decode;
  31014. URI.encode = escape;
  31015. URI.decode = decodeURIComponent;
  31016. try {
  31017. this.normalize();
  31018. } finally {
  31019. URI.encode = e;
  31020. URI.decode = d;
  31021. }
  31022. return this;
  31023. };
  31024. p.unicode = function() {
  31025. // expect iso8859 input, unicode output
  31026. var e = URI.encode;
  31027. var d = URI.decode;
  31028. URI.encode = strictEncodeURIComponent;
  31029. URI.decode = unescape;
  31030. try {
  31031. this.normalize();
  31032. } finally {
  31033. URI.encode = e;
  31034. URI.decode = d;
  31035. }
  31036. return this;
  31037. };
  31038. p.readable = function() {
  31039. var uri = this.clone();
  31040. // removing username, password, because they shouldn't be displayed according to RFC 3986
  31041. uri.username('').password('').normalize();
  31042. var t = '';
  31043. if (uri._parts.protocol) {
  31044. t += uri._parts.protocol + '://';
  31045. }
  31046. if (uri._parts.hostname) {
  31047. if (uri.is('punycode') && punycode) {
  31048. t += punycode.toUnicode(uri._parts.hostname);
  31049. if (uri._parts.port) {
  31050. t += ':' + uri._parts.port;
  31051. }
  31052. } else {
  31053. t += uri.host();
  31054. }
  31055. }
  31056. if (uri._parts.hostname && uri._parts.path && uri._parts.path.charAt(0) !== '/') {
  31057. t += '/';
  31058. }
  31059. t += uri.path(true);
  31060. if (uri._parts.query) {
  31061. var q = '';
  31062. for (var i = 0, qp = uri._parts.query.split('&'), l = qp.length; i < l; i++) {
  31063. var kv = (qp[i] || '').split('=');
  31064. q += '&' + URI.decodeQuery(kv[0], this._parts.escapeQuerySpace)
  31065. .replace(/&/g, '%26');
  31066. if (kv[1] !== undefined) {
  31067. q += '=' + URI.decodeQuery(kv[1], this._parts.escapeQuerySpace)
  31068. .replace(/&/g, '%26');
  31069. }
  31070. }
  31071. t += '?' + q.substring(1);
  31072. }
  31073. t += URI.decodeQuery(uri.hash(), true);
  31074. return t;
  31075. };
  31076. // resolving relative and absolute URLs
  31077. p.absoluteTo = function(base) {
  31078. var resolved = this.clone();
  31079. var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
  31080. var basedir, i, p;
  31081. if (this._parts.urn) {
  31082. throw new Error('URNs do not have any generally defined hierarchical components');
  31083. }
  31084. if (!(base instanceof URI)) {
  31085. base = new URI(base);
  31086. }
  31087. if (resolved._parts.protocol) {
  31088. // Directly returns even if this._parts.hostname is empty.
  31089. return resolved;
  31090. } else {
  31091. resolved._parts.protocol = base._parts.protocol;
  31092. }
  31093. if (this._parts.hostname) {
  31094. return resolved;
  31095. }
  31096. for (i = 0; (p = properties[i]); i++) {
  31097. resolved._parts[p] = base._parts[p];
  31098. }
  31099. if (!resolved._parts.path) {
  31100. resolved._parts.path = base._parts.path;
  31101. if (!resolved._parts.query) {
  31102. resolved._parts.query = base._parts.query;
  31103. }
  31104. } else {
  31105. if (resolved._parts.path.substring(-2) === '..') {
  31106. resolved._parts.path += '/';
  31107. }
  31108. if (resolved.path().charAt(0) !== '/') {
  31109. basedir = base.directory();
  31110. basedir = basedir ? basedir : base.path().indexOf('/') === 0 ? '/' : '';
  31111. resolved._parts.path = (basedir ? (basedir + '/') : '') + resolved._parts.path;
  31112. resolved.normalizePath();
  31113. }
  31114. }
  31115. resolved.build();
  31116. return resolved;
  31117. };
  31118. p.relativeTo = function(base) {
  31119. var relative = this.clone().normalize();
  31120. var relativeParts, baseParts, common, relativePath, basePath;
  31121. if (relative._parts.urn) {
  31122. throw new Error('URNs do not have any generally defined hierarchical components');
  31123. }
  31124. base = new URI(base).normalize();
  31125. relativeParts = relative._parts;
  31126. baseParts = base._parts;
  31127. relativePath = relative.path();
  31128. basePath = base.path();
  31129. if (relativePath.charAt(0) !== '/') {
  31130. throw new Error('URI is already relative');
  31131. }
  31132. if (basePath.charAt(0) !== '/') {
  31133. throw new Error('Cannot calculate a URI relative to another relative URI');
  31134. }
  31135. if (relativeParts.protocol === baseParts.protocol) {
  31136. relativeParts.protocol = null;
  31137. }
  31138. if (relativeParts.username !== baseParts.username || relativeParts.password !== baseParts.password) {
  31139. return relative.build();
  31140. }
  31141. if (relativeParts.protocol !== null || relativeParts.username !== null || relativeParts.password !== null) {
  31142. return relative.build();
  31143. }
  31144. if (relativeParts.hostname === baseParts.hostname && relativeParts.port === baseParts.port) {
  31145. relativeParts.hostname = null;
  31146. relativeParts.port = null;
  31147. } else {
  31148. return relative.build();
  31149. }
  31150. if (relativePath === basePath) {
  31151. relativeParts.path = '';
  31152. return relative.build();
  31153. }
  31154. // determine common sub path
  31155. common = URI.commonPath(relativePath, basePath);
  31156. // If the paths have nothing in common, return a relative URL with the absolute path.
  31157. if (!common) {
  31158. return relative.build();
  31159. }
  31160. var parents = baseParts.path
  31161. .substring(common.length)
  31162. .replace(/[^\/]*$/, '')
  31163. .replace(/.*?\//g, '../');
  31164. relativeParts.path = (parents + relativeParts.path.substring(common.length)) || './';
  31165. return relative.build();
  31166. };
  31167. // comparing URIs
  31168. p.equals = function(uri) {
  31169. var one = this.clone();
  31170. var two = new URI(uri);
  31171. var one_map = {};
  31172. var two_map = {};
  31173. var checked = {};
  31174. var one_query, two_query, key;
  31175. one.normalize();
  31176. two.normalize();
  31177. // exact match
  31178. if (one.toString() === two.toString()) {
  31179. return true;
  31180. }
  31181. // extract query string
  31182. one_query = one.query();
  31183. two_query = two.query();
  31184. one.query('');
  31185. two.query('');
  31186. // definitely not equal if not even non-query parts match
  31187. if (one.toString() !== two.toString()) {
  31188. return false;
  31189. }
  31190. // query parameters have the same length, even if they're permuted
  31191. if (one_query.length !== two_query.length) {
  31192. return false;
  31193. }
  31194. one_map = URI.parseQuery(one_query, this._parts.escapeQuerySpace);
  31195. two_map = URI.parseQuery(two_query, this._parts.escapeQuerySpace);
  31196. for (key in one_map) {
  31197. if (hasOwn.call(one_map, key)) {
  31198. if (!isArray(one_map[key])) {
  31199. if (one_map[key] !== two_map[key]) {
  31200. return false;
  31201. }
  31202. } else if (!arraysEqual(one_map[key], two_map[key])) {
  31203. return false;
  31204. }
  31205. checked[key] = true;
  31206. }
  31207. }
  31208. for (key in two_map) {
  31209. if (hasOwn.call(two_map, key)) {
  31210. if (!checked[key]) {
  31211. // two contains a parameter not present in one
  31212. return false;
  31213. }
  31214. }
  31215. }
  31216. return true;
  31217. };
  31218. // state
  31219. p.preventInvalidHostname = function(v) {
  31220. this._parts.preventInvalidHostname = !!v;
  31221. return this;
  31222. };
  31223. p.duplicateQueryParameters = function(v) {
  31224. this._parts.duplicateQueryParameters = !!v;
  31225. return this;
  31226. };
  31227. p.escapeQuerySpace = function(v) {
  31228. this._parts.escapeQuerySpace = !!v;
  31229. return this;
  31230. };
  31231. return URI;
  31232. }));
  31233. /***/ }),
  31234. /***/ "./node_modules/urijs/src/punycode.js":
  31235. /*!********************************************!*\
  31236. !*** ./node_modules/urijs/src/punycode.js ***!
  31237. \********************************************/
  31238. /*! no static exports found */
  31239. /***/ (function(module, exports, __webpack_require__) {
  31240. /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.0 by @mathias */
  31241. ;(function(root) {
  31242. /** Detect free variables */
  31243. var freeExports = typeof exports == 'object' && exports &&
  31244. !exports.nodeType && exports;
  31245. var freeModule = typeof module == 'object' && module &&
  31246. !module.nodeType && module;
  31247. var freeGlobal = typeof global == 'object' && global;
  31248. if (
  31249. freeGlobal.global === freeGlobal ||
  31250. freeGlobal.window === freeGlobal ||
  31251. freeGlobal.self === freeGlobal
  31252. ) {
  31253. root = freeGlobal;
  31254. }
  31255. /**
  31256. * The `punycode` object.
  31257. * @name punycode
  31258. * @type Object
  31259. */
  31260. var punycode,
  31261. /** Highest positive signed 32-bit float value */
  31262. maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
  31263. /** Bootstring parameters */
  31264. base = 36,
  31265. tMin = 1,
  31266. tMax = 26,
  31267. skew = 38,
  31268. damp = 700,
  31269. initialBias = 72,
  31270. initialN = 128, // 0x80
  31271. delimiter = '-', // '\x2D'
  31272. /** Regular expressions */
  31273. regexPunycode = /^xn--/,
  31274. regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
  31275. regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
  31276. /** Error messages */
  31277. errors = {
  31278. 'overflow': 'Overflow: input needs wider integers to process',
  31279. 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
  31280. 'invalid-input': 'Invalid input'
  31281. },
  31282. /** Convenience shortcuts */
  31283. baseMinusTMin = base - tMin,
  31284. floor = Math.floor,
  31285. stringFromCharCode = String.fromCharCode,
  31286. /** Temporary variable */
  31287. key;
  31288. /*--------------------------------------------------------------------------*/
  31289. /**
  31290. * A generic error utility function.
  31291. * @private
  31292. * @param {String} type The error type.
  31293. * @returns {Error} Throws a `RangeError` with the applicable error message.
  31294. */
  31295. function error(type) {
  31296. throw new RangeError(errors[type]);
  31297. }
  31298. /**
  31299. * A generic `Array#map` utility function.
  31300. * @private
  31301. * @param {Array} array The array to iterate over.
  31302. * @param {Function} callback The function that gets called for every array
  31303. * item.
  31304. * @returns {Array} A new array of values returned by the callback function.
  31305. */
  31306. function map(array, fn) {
  31307. var length = array.length;
  31308. var result = [];
  31309. while (length--) {
  31310. result[length] = fn(array[length]);
  31311. }
  31312. return result;
  31313. }
  31314. /**
  31315. * A simple `Array#map`-like wrapper to work with domain name strings or email
  31316. * addresses.
  31317. * @private
  31318. * @param {String} domain The domain name or email address.
  31319. * @param {Function} callback The function that gets called for every
  31320. * character.
  31321. * @returns {Array} A new string of characters returned by the callback
  31322. * function.
  31323. */
  31324. function mapDomain(string, fn) {
  31325. var parts = string.split('@');
  31326. var result = '';
  31327. if (parts.length > 1) {
  31328. // In email addresses, only the domain name should be punycoded. Leave
  31329. // the local part (i.e. everything up to `@`) intact.
  31330. result = parts[0] + '@';
  31331. string = parts[1];
  31332. }
  31333. // Avoid `split(regex)` for IE8 compatibility. See #17.
  31334. string = string.replace(regexSeparators, '\x2E');
  31335. var labels = string.split('.');
  31336. var encoded = map(labels, fn).join('.');
  31337. return result + encoded;
  31338. }
  31339. /**
  31340. * Creates an array containing the numeric code points of each Unicode
  31341. * character in the string. While JavaScript uses UCS-2 internally,
  31342. * this function will convert a pair of surrogate halves (each of which
  31343. * UCS-2 exposes as separate characters) into a single code point,
  31344. * matching UTF-16.
  31345. * @see `punycode.ucs2.encode`
  31346. * @see <https://mathiasbynens.be/notes/javascript-encoding>
  31347. * @memberOf punycode.ucs2
  31348. * @name decode
  31349. * @param {String} string The Unicode input string (UCS-2).
  31350. * @returns {Array} The new array of code points.
  31351. */
  31352. function ucs2decode(string) {
  31353. var output = [],
  31354. counter = 0,
  31355. length = string.length,
  31356. value,
  31357. extra;
  31358. while (counter < length) {
  31359. value = string.charCodeAt(counter++);
  31360. if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
  31361. // high surrogate, and there is a next character
  31362. extra = string.charCodeAt(counter++);
  31363. if ((extra & 0xFC00) == 0xDC00) { // low surrogate
  31364. output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
  31365. } else {
  31366. // unmatched surrogate; only append this code unit, in case the next
  31367. // code unit is the high surrogate of a surrogate pair
  31368. output.push(value);
  31369. counter--;
  31370. }
  31371. } else {
  31372. output.push(value);
  31373. }
  31374. }
  31375. return output;
  31376. }
  31377. /**
  31378. * Creates a string based on an array of numeric code points.
  31379. * @see `punycode.ucs2.decode`
  31380. * @memberOf punycode.ucs2
  31381. * @name encode
  31382. * @param {Array} codePoints The array of numeric code points.
  31383. * @returns {String} The new Unicode string (UCS-2).
  31384. */
  31385. function ucs2encode(array) {
  31386. return map(array, function(value) {
  31387. var output = '';
  31388. if (value > 0xFFFF) {
  31389. value -= 0x10000;
  31390. output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
  31391. value = 0xDC00 | value & 0x3FF;
  31392. }
  31393. output += stringFromCharCode(value);
  31394. return output;
  31395. }).join('');
  31396. }
  31397. /**
  31398. * Converts a basic code point into a digit/integer.
  31399. * @see `digitToBasic()`
  31400. * @private
  31401. * @param {Number} codePoint The basic numeric code point value.
  31402. * @returns {Number} The numeric value of a basic code point (for use in
  31403. * representing integers) in the range `0` to `base - 1`, or `base` if
  31404. * the code point does not represent a value.
  31405. */
  31406. function basicToDigit(codePoint) {
  31407. if (codePoint - 48 < 10) {
  31408. return codePoint - 22;
  31409. }
  31410. if (codePoint - 65 < 26) {
  31411. return codePoint - 65;
  31412. }
  31413. if (codePoint - 97 < 26) {
  31414. return codePoint - 97;
  31415. }
  31416. return base;
  31417. }
  31418. /**
  31419. * Converts a digit/integer into a basic code point.
  31420. * @see `basicToDigit()`
  31421. * @private
  31422. * @param {Number} digit The numeric value of a basic code point.
  31423. * @returns {Number} The basic code point whose value (when used for
  31424. * representing integers) is `digit`, which needs to be in the range
  31425. * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
  31426. * used; else, the lowercase form is used. The behavior is undefined
  31427. * if `flag` is non-zero and `digit` has no uppercase form.
  31428. */
  31429. function digitToBasic(digit, flag) {
  31430. // 0..25 map to ASCII a..z or A..Z
  31431. // 26..35 map to ASCII 0..9
  31432. return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
  31433. }
  31434. /**
  31435. * Bias adaptation function as per section 3.4 of RFC 3492.
  31436. * https://tools.ietf.org/html/rfc3492#section-3.4
  31437. * @private
  31438. */
  31439. function adapt(delta, numPoints, firstTime) {
  31440. var k = 0;
  31441. delta = firstTime ? floor(delta / damp) : delta >> 1;
  31442. delta += floor(delta / numPoints);
  31443. for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
  31444. delta = floor(delta / baseMinusTMin);
  31445. }
  31446. return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
  31447. }
  31448. /**
  31449. * Converts a Punycode string of ASCII-only symbols to a string of Unicode
  31450. * symbols.
  31451. * @memberOf punycode
  31452. * @param {String} input The Punycode string of ASCII-only symbols.
  31453. * @returns {String} The resulting string of Unicode symbols.
  31454. */
  31455. function decode(input) {
  31456. // Don't use UCS-2
  31457. var output = [],
  31458. inputLength = input.length,
  31459. out,
  31460. i = 0,
  31461. n = initialN,
  31462. bias = initialBias,
  31463. basic,
  31464. j,
  31465. index,
  31466. oldi,
  31467. w,
  31468. k,
  31469. digit,
  31470. t,
  31471. /** Cached calculation results */
  31472. baseMinusT;
  31473. // Handle the basic code points: let `basic` be the number of input code
  31474. // points before the last delimiter, or `0` if there is none, then copy
  31475. // the first basic code points to the output.
  31476. basic = input.lastIndexOf(delimiter);
  31477. if (basic < 0) {
  31478. basic = 0;
  31479. }
  31480. for (j = 0; j < basic; ++j) {
  31481. // if it's not a basic code point
  31482. if (input.charCodeAt(j) >= 0x80) {
  31483. error('not-basic');
  31484. }
  31485. output.push(input.charCodeAt(j));
  31486. }
  31487. // Main decoding loop: start just after the last delimiter if any basic code
  31488. // points were copied; start at the beginning otherwise.
  31489. for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
  31490. // `index` is the index of the next character to be consumed.
  31491. // Decode a generalized variable-length integer into `delta`,
  31492. // which gets added to `i`. The overflow checking is easier
  31493. // if we increase `i` as we go, then subtract off its starting
  31494. // value at the end to obtain `delta`.
  31495. for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
  31496. if (index >= inputLength) {
  31497. error('invalid-input');
  31498. }
  31499. digit = basicToDigit(input.charCodeAt(index++));
  31500. if (digit >= base || digit > floor((maxInt - i) / w)) {
  31501. error('overflow');
  31502. }
  31503. i += digit * w;
  31504. t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
  31505. if (digit < t) {
  31506. break;
  31507. }
  31508. baseMinusT = base - t;
  31509. if (w > floor(maxInt / baseMinusT)) {
  31510. error('overflow');
  31511. }
  31512. w *= baseMinusT;
  31513. }
  31514. out = output.length + 1;
  31515. bias = adapt(i - oldi, out, oldi == 0);
  31516. // `i` was supposed to wrap around from `out` to `0`,
  31517. // incrementing `n` each time, so we'll fix that now:
  31518. if (floor(i / out) > maxInt - n) {
  31519. error('overflow');
  31520. }
  31521. n += floor(i / out);
  31522. i %= out;
  31523. // Insert `n` at position `i` of the output
  31524. output.splice(i++, 0, n);
  31525. }
  31526. return ucs2encode(output);
  31527. }
  31528. /**
  31529. * Converts a string of Unicode symbols (e.g. a domain name label) to a
  31530. * Punycode string of ASCII-only symbols.
  31531. * @memberOf punycode
  31532. * @param {String} input The string of Unicode symbols.
  31533. * @returns {String} The resulting Punycode string of ASCII-only symbols.
  31534. */
  31535. function encode(input) {
  31536. var n,
  31537. delta,
  31538. handledCPCount,
  31539. basicLength,
  31540. bias,
  31541. j,
  31542. m,
  31543. q,
  31544. k,
  31545. t,
  31546. currentValue,
  31547. output = [],
  31548. /** `inputLength` will hold the number of code points in `input`. */
  31549. inputLength,
  31550. /** Cached calculation results */
  31551. handledCPCountPlusOne,
  31552. baseMinusT,
  31553. qMinusT;
  31554. // Convert the input in UCS-2 to Unicode
  31555. input = ucs2decode(input);
  31556. // Cache the length
  31557. inputLength = input.length;
  31558. // Initialize the state
  31559. n = initialN;
  31560. delta = 0;
  31561. bias = initialBias;
  31562. // Handle the basic code points
  31563. for (j = 0; j < inputLength; ++j) {
  31564. currentValue = input[j];
  31565. if (currentValue < 0x80) {
  31566. output.push(stringFromCharCode(currentValue));
  31567. }
  31568. }
  31569. handledCPCount = basicLength = output.length;
  31570. // `handledCPCount` is the number of code points that have been handled;
  31571. // `basicLength` is the number of basic code points.
  31572. // Finish the basic string - if it is not empty - with a delimiter
  31573. if (basicLength) {
  31574. output.push(delimiter);
  31575. }
  31576. // Main encoding loop:
  31577. while (handledCPCount < inputLength) {
  31578. // All non-basic code points < n have been handled already. Find the next
  31579. // larger one:
  31580. for (m = maxInt, j = 0; j < inputLength; ++j) {
  31581. currentValue = input[j];
  31582. if (currentValue >= n && currentValue < m) {
  31583. m = currentValue;
  31584. }
  31585. }
  31586. // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
  31587. // but guard against overflow
  31588. handledCPCountPlusOne = handledCPCount + 1;
  31589. if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
  31590. error('overflow');
  31591. }
  31592. delta += (m - n) * handledCPCountPlusOne;
  31593. n = m;
  31594. for (j = 0; j < inputLength; ++j) {
  31595. currentValue = input[j];
  31596. if (currentValue < n && ++delta > maxInt) {
  31597. error('overflow');
  31598. }
  31599. if (currentValue == n) {
  31600. // Represent delta as a generalized variable-length integer
  31601. for (q = delta, k = base; /* no condition */; k += base) {
  31602. t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
  31603. if (q < t) {
  31604. break;
  31605. }
  31606. qMinusT = q - t;
  31607. baseMinusT = base - t;
  31608. output.push(
  31609. stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
  31610. );
  31611. q = floor(qMinusT / baseMinusT);
  31612. }
  31613. output.push(stringFromCharCode(digitToBasic(q, 0)));
  31614. bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
  31615. delta = 0;
  31616. ++handledCPCount;
  31617. }
  31618. }
  31619. ++delta;
  31620. ++n;
  31621. }
  31622. return output.join('');
  31623. }
  31624. /**
  31625. * Converts a Punycode string representing a domain name or an email address
  31626. * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
  31627. * it doesn't matter if you call it on a string that has already been
  31628. * converted to Unicode.
  31629. * @memberOf punycode
  31630. * @param {String} input The Punycoded domain name or email address to
  31631. * convert to Unicode.
  31632. * @returns {String} The Unicode representation of the given Punycode
  31633. * string.
  31634. */
  31635. function toUnicode(input) {
  31636. return mapDomain(input, function(string) {
  31637. return regexPunycode.test(string)
  31638. ? decode(string.slice(4).toLowerCase())
  31639. : string;
  31640. });
  31641. }
  31642. /**
  31643. * Converts a Unicode string representing a domain name or an email address to
  31644. * Punycode. Only the non-ASCII parts of the domain name will be converted,
  31645. * i.e. it doesn't matter if you call it with a domain that's already in
  31646. * ASCII.
  31647. * @memberOf punycode
  31648. * @param {String} input The domain name or email address to convert, as a
  31649. * Unicode string.
  31650. * @returns {String} The Punycode representation of the given domain name or
  31651. * email address.
  31652. */
  31653. function toASCII(input) {
  31654. return mapDomain(input, function(string) {
  31655. return regexNonASCII.test(string)
  31656. ? 'xn--' + encode(string)
  31657. : string;
  31658. });
  31659. }
  31660. /*--------------------------------------------------------------------------*/
  31661. /** Define the public API */
  31662. punycode = {
  31663. /**
  31664. * A string representing the current Punycode.js version number.
  31665. * @memberOf punycode
  31666. * @type String
  31667. */
  31668. 'version': '1.3.2',
  31669. /**
  31670. * An object of methods to convert from JavaScript's internal character
  31671. * representation (UCS-2) to Unicode code points, and back.
  31672. * @see <https://mathiasbynens.be/notes/javascript-encoding>
  31673. * @memberOf punycode
  31674. * @type Object
  31675. */
  31676. 'ucs2': {
  31677. 'decode': ucs2decode,
  31678. 'encode': ucs2encode
  31679. },
  31680. 'decode': decode,
  31681. 'encode': encode,
  31682. 'toASCII': toASCII,
  31683. 'toUnicode': toUnicode
  31684. };
  31685. /** Expose `punycode` */
  31686. // Some AMD build optimizers, like r.js, check for specific condition patterns
  31687. // like the following:
  31688. if (
  31689. true
  31690. ) {
  31691. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  31692. return punycode;
  31693. }).call(exports, __webpack_require__, exports, module),
  31694. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31695. } else {}
  31696. }(this));
  31697. /* 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")))
  31698. /***/ }),
  31699. /***/ "./node_modules/webpack/buildin/global.js":
  31700. /*!***********************************!*\
  31701. !*** (webpack)/buildin/global.js ***!
  31702. \***********************************/
  31703. /*! no static exports found */
  31704. /***/ (function(module, exports) {
  31705. var g;
  31706. // This works in non-strict mode
  31707. g = (function() {
  31708. return this;
  31709. })();
  31710. try {
  31711. // This works if eval is allowed (see CSP)
  31712. g = g || Function("return this")() || (1, eval)("this");
  31713. } catch (e) {
  31714. // This works if the window reference is available
  31715. if (typeof window === "object") g = window;
  31716. }
  31717. // g can still be undefined, but nothing to do about it...
  31718. // We return undefined, instead of nothing here, so it's
  31719. // easier to handle this case. if(!global) { ...}
  31720. module.exports = g;
  31721. /***/ }),
  31722. /***/ "./node_modules/webpack/buildin/module.js":
  31723. /*!***********************************!*\
  31724. !*** (webpack)/buildin/module.js ***!
  31725. \***********************************/
  31726. /*! no static exports found */
  31727. /***/ (function(module, exports) {
  31728. module.exports = function(module) {
  31729. if (!module.webpackPolyfill) {
  31730. module.deprecate = function() {};
  31731. module.paths = [];
  31732. // module.parent = undefined by default
  31733. if (!module.children) module.children = [];
  31734. Object.defineProperty(module, "loaded", {
  31735. enumerable: true,
  31736. get: function() {
  31737. return module.l;
  31738. }
  31739. });
  31740. Object.defineProperty(module, "id", {
  31741. enumerable: true,
  31742. get: function() {
  31743. return module.i;
  31744. }
  31745. });
  31746. module.webpackPolyfill = 1;
  31747. }
  31748. return module;
  31749. };
  31750. /***/ }),
  31751. /***/ "./node_modules/xss/dist/xss.js":
  31752. /*!**************************************!*\
  31753. !*** ./node_modules/xss/dist/xss.js ***!
  31754. \**************************************/
  31755. /*! no static exports found */
  31756. /***/ (function(module, exports, __webpack_require__) {
  31757. 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){
  31758. /**
  31759. * default settings
  31760. *
  31761. * @author Zongmin Lei<leizongmin@gmail.com>
  31762. */
  31763. var FilterCSS = require("cssfilter").FilterCSS;
  31764. var getDefaultCSSWhiteList = require("cssfilter").getDefaultWhiteList;
  31765. var _ = require("./util");
  31766. function getDefaultWhiteList() {
  31767. return {
  31768. a: ["target", "href", "title"],
  31769. abbr: ["title"],
  31770. address: [],
  31771. area: ["shape", "coords", "href", "alt"],
  31772. article: [],
  31773. aside: [],
  31774. audio: ["autoplay", "controls", "loop", "preload", "src"],
  31775. b: [],
  31776. bdi: ["dir"],
  31777. bdo: ["dir"],
  31778. big: [],
  31779. blockquote: ["cite"],
  31780. br: [],
  31781. caption: [],
  31782. center: [],
  31783. cite: [],
  31784. code: [],
  31785. col: ["align", "valign", "span", "width"],
  31786. colgroup: ["align", "valign", "span", "width"],
  31787. dd: [],
  31788. del: ["datetime"],
  31789. details: ["open"],
  31790. div: [],
  31791. dl: [],
  31792. dt: [],
  31793. em: [],
  31794. font: ["color", "size", "face"],
  31795. footer: [],
  31796. h1: [],
  31797. h2: [],
  31798. h3: [],
  31799. h4: [],
  31800. h5: [],
  31801. h6: [],
  31802. header: [],
  31803. hr: [],
  31804. i: [],
  31805. img: ["src", "alt", "title", "width", "height"],
  31806. ins: ["datetime"],
  31807. li: [],
  31808. mark: [],
  31809. nav: [],
  31810. ol: [],
  31811. p: [],
  31812. pre: [],
  31813. s: [],
  31814. section: [],
  31815. small: [],
  31816. span: [],
  31817. sub: [],
  31818. sup: [],
  31819. strong: [],
  31820. table: ["width", "border", "align", "valign"],
  31821. tbody: ["align", "valign"],
  31822. td: ["width", "rowspan", "colspan", "align", "valign"],
  31823. tfoot: ["align", "valign"],
  31824. th: ["width", "rowspan", "colspan", "align", "valign"],
  31825. thead: ["align", "valign"],
  31826. tr: ["rowspan", "align", "valign"],
  31827. tt: [],
  31828. u: [],
  31829. ul: [],
  31830. video: ["autoplay", "controls", "loop", "preload", "src", "height", "width"]
  31831. };
  31832. }
  31833. var defaultCSSFilter = new FilterCSS();
  31834. /**
  31835. * default onTag function
  31836. *
  31837. * @param {String} tag
  31838. * @param {String} html
  31839. * @param {Object} options
  31840. * @return {String}
  31841. */
  31842. function onTag(tag, html, options) {
  31843. // do nothing
  31844. }
  31845. /**
  31846. * default onIgnoreTag function
  31847. *
  31848. * @param {String} tag
  31849. * @param {String} html
  31850. * @param {Object} options
  31851. * @return {String}
  31852. */
  31853. function onIgnoreTag(tag, html, options) {
  31854. // do nothing
  31855. }
  31856. /**
  31857. * default onTagAttr function
  31858. *
  31859. * @param {String} tag
  31860. * @param {String} name
  31861. * @param {String} value
  31862. * @return {String}
  31863. */
  31864. function onTagAttr(tag, name, value) {
  31865. // do nothing
  31866. }
  31867. /**
  31868. * default onIgnoreTagAttr function
  31869. *
  31870. * @param {String} tag
  31871. * @param {String} name
  31872. * @param {String} value
  31873. * @return {String}
  31874. */
  31875. function onIgnoreTagAttr(tag, name, value) {
  31876. // do nothing
  31877. }
  31878. /**
  31879. * default escapeHtml function
  31880. *
  31881. * @param {String} html
  31882. */
  31883. function escapeHtml(html) {
  31884. return html.replace(REGEXP_LT, "&lt;").replace(REGEXP_GT, "&gt;");
  31885. }
  31886. /**
  31887. * default safeAttrValue function
  31888. *
  31889. * @param {String} tag
  31890. * @param {String} name
  31891. * @param {String} value
  31892. * @param {Object} cssFilter
  31893. * @return {String}
  31894. */
  31895. function safeAttrValue(tag, name, value, cssFilter) {
  31896. // unescape attribute value firstly
  31897. value = friendlyAttrValue(value);
  31898. if (name === "href" || name === "src") {
  31899. // filter `href` and `src` attribute
  31900. // only allow the value that starts with `http://` | `https://` | `mailto:` | `/` | `#`
  31901. value = _.trim(value);
  31902. if (value === "#") return "#";
  31903. if (
  31904. !(
  31905. value.substr(0, 7) === "http://" ||
  31906. value.substr(0, 8) === "https://" ||
  31907. value.substr(0, 7) === "mailto:" ||
  31908. value.substr(0, 4) === "tel:" ||
  31909. value[0] === "#" ||
  31910. value[0] === "/"
  31911. )
  31912. ) {
  31913. return "";
  31914. }
  31915. } else if (name === "background") {
  31916. // filter `background` attribute (maybe no use)
  31917. // `javascript:`
  31918. REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
  31919. if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
  31920. return "";
  31921. }
  31922. } else if (name === "style") {
  31923. // `expression()`
  31924. REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex = 0;
  31925. if (REGEXP_DEFAULT_ON_TAG_ATTR_7.test(value)) {
  31926. return "";
  31927. }
  31928. // `url()`
  31929. REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex = 0;
  31930. if (REGEXP_DEFAULT_ON_TAG_ATTR_8.test(value)) {
  31931. REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
  31932. if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
  31933. return "";
  31934. }
  31935. }
  31936. if (cssFilter !== false) {
  31937. cssFilter = cssFilter || defaultCSSFilter;
  31938. value = cssFilter.process(value);
  31939. }
  31940. }
  31941. // escape `<>"` before returns
  31942. value = escapeAttrValue(value);
  31943. return value;
  31944. }
  31945. // RegExp list
  31946. var REGEXP_LT = /</g;
  31947. var REGEXP_GT = />/g;
  31948. var REGEXP_QUOTE = /"/g;
  31949. var REGEXP_QUOTE_2 = /&quot;/g;
  31950. var REGEXP_ATTR_VALUE_1 = /&#([a-zA-Z0-9]*);?/gim;
  31951. var REGEXP_ATTR_VALUE_COLON = /&colon;?/gim;
  31952. var REGEXP_ATTR_VALUE_NEWLINE = /&newline;?/gim;
  31953. var REGEXP_DEFAULT_ON_TAG_ATTR_3 = /\/\*|\*\//gm;
  31954. 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;
  31955. var REGEXP_DEFAULT_ON_TAG_ATTR_5 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:/gi;
  31956. var REGEXP_DEFAULT_ON_TAG_ATTR_6 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:\s*image\//gi;
  31957. 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;
  31958. var REGEXP_DEFAULT_ON_TAG_ATTR_8 = /u\s*r\s*l\s*\(.*/gi;
  31959. /**
  31960. * escape doube quote
  31961. *
  31962. * @param {String} str
  31963. * @return {String} str
  31964. */
  31965. function escapeQuote(str) {
  31966. return str.replace(REGEXP_QUOTE, "&quot;");
  31967. }
  31968. /**
  31969. * unescape double quote
  31970. *
  31971. * @param {String} str
  31972. * @return {String} str
  31973. */
  31974. function unescapeQuote(str) {
  31975. return str.replace(REGEXP_QUOTE_2, '"');
  31976. }
  31977. /**
  31978. * escape html entities
  31979. *
  31980. * @param {String} str
  31981. * @return {String}
  31982. */
  31983. function escapeHtmlEntities(str) {
  31984. return str.replace(REGEXP_ATTR_VALUE_1, function replaceUnicode(str, code) {
  31985. return code[0] === "x" || code[0] === "X"
  31986. ? String.fromCharCode(parseInt(code.substr(1), 16))
  31987. : String.fromCharCode(parseInt(code, 10));
  31988. });
  31989. }
  31990. /**
  31991. * escape html5 new danger entities
  31992. *
  31993. * @param {String} str
  31994. * @return {String}
  31995. */
  31996. function escapeDangerHtml5Entities(str) {
  31997. return str
  31998. .replace(REGEXP_ATTR_VALUE_COLON, ":")
  31999. .replace(REGEXP_ATTR_VALUE_NEWLINE, " ");
  32000. }
  32001. /**
  32002. * clear nonprintable characters
  32003. *
  32004. * @param {String} str
  32005. * @return {String}
  32006. */
  32007. function clearNonPrintableCharacter(str) {
  32008. var str2 = "";
  32009. for (var i = 0, len = str.length; i < len; i++) {
  32010. str2 += str.charCodeAt(i) < 32 ? " " : str.charAt(i);
  32011. }
  32012. return _.trim(str2);
  32013. }
  32014. /**
  32015. * get friendly attribute value
  32016. *
  32017. * @param {String} str
  32018. * @return {String}
  32019. */
  32020. function friendlyAttrValue(str) {
  32021. str = unescapeQuote(str);
  32022. str = escapeHtmlEntities(str);
  32023. str = escapeDangerHtml5Entities(str);
  32024. str = clearNonPrintableCharacter(str);
  32025. return str;
  32026. }
  32027. /**
  32028. * unescape attribute value
  32029. *
  32030. * @param {String} str
  32031. * @return {String}
  32032. */
  32033. function escapeAttrValue(str) {
  32034. str = escapeQuote(str);
  32035. str = escapeHtml(str);
  32036. return str;
  32037. }
  32038. /**
  32039. * `onIgnoreTag` function for removing all the tags that are not in whitelist
  32040. */
  32041. function onIgnoreTagStripAll() {
  32042. return "";
  32043. }
  32044. /**
  32045. * remove tag body
  32046. * specify a `tags` list, if the tag is not in the `tags` list then process by the specify function (optional)
  32047. *
  32048. * @param {array} tags
  32049. * @param {function} next
  32050. */
  32051. function StripTagBody(tags, next) {
  32052. if (typeof next !== "function") {
  32053. next = function() {};
  32054. }
  32055. var isRemoveAllTag = !Array.isArray(tags);
  32056. function isRemoveTag(tag) {
  32057. if (isRemoveAllTag) return true;
  32058. return _.indexOf(tags, tag) !== -1;
  32059. }
  32060. var removeList = [];
  32061. var posStart = false;
  32062. return {
  32063. onIgnoreTag: function(tag, html, options) {
  32064. if (isRemoveTag(tag)) {
  32065. if (options.isClosing) {
  32066. var ret = "[/removed]";
  32067. var end = options.position + ret.length;
  32068. removeList.push([
  32069. posStart !== false ? posStart : options.position,
  32070. end
  32071. ]);
  32072. posStart = false;
  32073. return ret;
  32074. } else {
  32075. if (!posStart) {
  32076. posStart = options.position;
  32077. }
  32078. return "[removed]";
  32079. }
  32080. } else {
  32081. return next(tag, html, options);
  32082. }
  32083. },
  32084. remove: function(html) {
  32085. var rethtml = "";
  32086. var lastPos = 0;
  32087. _.forEach(removeList, function(pos) {
  32088. rethtml += html.slice(lastPos, pos[0]);
  32089. lastPos = pos[1];
  32090. });
  32091. rethtml += html.slice(lastPos);
  32092. return rethtml;
  32093. }
  32094. };
  32095. }
  32096. /**
  32097. * remove html comments
  32098. *
  32099. * @param {String} html
  32100. * @return {String}
  32101. */
  32102. function stripCommentTag(html) {
  32103. return html.replace(STRIP_COMMENT_TAG_REGEXP, "");
  32104. }
  32105. var STRIP_COMMENT_TAG_REGEXP = /<!--[\s\S]*?-->/g;
  32106. /**
  32107. * remove invisible characters
  32108. *
  32109. * @param {String} html
  32110. * @return {String}
  32111. */
  32112. function stripBlankChar(html) {
  32113. var chars = html.split("");
  32114. chars = chars.filter(function(char) {
  32115. var c = char.charCodeAt(0);
  32116. if (c === 127) return false;
  32117. if (c <= 31) {
  32118. if (c === 10 || c === 13) return true;
  32119. return false;
  32120. }
  32121. return true;
  32122. });
  32123. return chars.join("");
  32124. }
  32125. exports.whiteList = getDefaultWhiteList();
  32126. exports.getDefaultWhiteList = getDefaultWhiteList;
  32127. exports.onTag = onTag;
  32128. exports.onIgnoreTag = onIgnoreTag;
  32129. exports.onTagAttr = onTagAttr;
  32130. exports.onIgnoreTagAttr = onIgnoreTagAttr;
  32131. exports.safeAttrValue = safeAttrValue;
  32132. exports.escapeHtml = escapeHtml;
  32133. exports.escapeQuote = escapeQuote;
  32134. exports.unescapeQuote = unescapeQuote;
  32135. exports.escapeHtmlEntities = escapeHtmlEntities;
  32136. exports.escapeDangerHtml5Entities = escapeDangerHtml5Entities;
  32137. exports.clearNonPrintableCharacter = clearNonPrintableCharacter;
  32138. exports.friendlyAttrValue = friendlyAttrValue;
  32139. exports.escapeAttrValue = escapeAttrValue;
  32140. exports.onIgnoreTagStripAll = onIgnoreTagStripAll;
  32141. exports.StripTagBody = StripTagBody;
  32142. exports.stripCommentTag = stripCommentTag;
  32143. exports.stripBlankChar = stripBlankChar;
  32144. exports.cssFilter = defaultCSSFilter;
  32145. exports.getDefaultCSSWhiteList = getDefaultCSSWhiteList;
  32146. },{"./util":4,"cssfilter":8}],2:[function(require,module,exports){
  32147. /**
  32148. * xss
  32149. *
  32150. * @author Zongmin Lei<leizongmin@gmail.com>
  32151. */
  32152. var DEFAULT = require("./default");
  32153. var parser = require("./parser");
  32154. var FilterXSS = require("./xss");
  32155. /**
  32156. * filter xss function
  32157. *
  32158. * @param {String} html
  32159. * @param {Object} options { whiteList, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr, safeAttrValue, escapeHtml }
  32160. * @return {String}
  32161. */
  32162. function filterXSS(html, options) {
  32163. var xss = new FilterXSS(options);
  32164. return xss.process(html);
  32165. }
  32166. exports = module.exports = filterXSS;
  32167. exports.FilterXSS = FilterXSS;
  32168. for (var i in DEFAULT) exports[i] = DEFAULT[i];
  32169. for (var i in parser) exports[i] = parser[i];
  32170. // using `xss` on the browser, output `filterXSS` to the globals
  32171. if (typeof window !== "undefined") {
  32172. window.filterXSS = module.exports;
  32173. }
  32174. },{"./default":1,"./parser":3,"./xss":5}],3:[function(require,module,exports){
  32175. /**
  32176. * Simple HTML Parser
  32177. *
  32178. * @author Zongmin Lei<leizongmin@gmail.com>
  32179. */
  32180. var _ = require("./util");
  32181. /**
  32182. * get tag name
  32183. *
  32184. * @param {String} html e.g. '<a hef="#">'
  32185. * @return {String}
  32186. */
  32187. function getTagName(html) {
  32188. var i = _.spaceIndex(html);
  32189. if (i === -1) {
  32190. var tagName = html.slice(1, -1);
  32191. } else {
  32192. var tagName = html.slice(1, i + 1);
  32193. }
  32194. tagName = _.trim(tagName).toLowerCase();
  32195. if (tagName.slice(0, 1) === "/") tagName = tagName.slice(1);
  32196. if (tagName.slice(-1) === "/") tagName = tagName.slice(0, -1);
  32197. return tagName;
  32198. }
  32199. /**
  32200. * is close tag?
  32201. *
  32202. * @param {String} html 如:'<a hef="#">'
  32203. * @return {Boolean}
  32204. */
  32205. function isClosing(html) {
  32206. return html.slice(0, 2) === "</";
  32207. }
  32208. /**
  32209. * parse input html and returns processed html
  32210. *
  32211. * @param {String} html
  32212. * @param {Function} onTag e.g. function (sourcePosition, position, tag, html, isClosing)
  32213. * @param {Function} escapeHtml
  32214. * @return {String}
  32215. */
  32216. function parseTag(html, onTag, escapeHtml) {
  32217. "user strict";
  32218. var rethtml = "";
  32219. var lastPos = 0;
  32220. var tagStart = false;
  32221. var quoteStart = false;
  32222. var currentPos = 0;
  32223. var len = html.length;
  32224. var currentTagName = "";
  32225. var currentHtml = "";
  32226. for (currentPos = 0; currentPos < len; currentPos++) {
  32227. var c = html.charAt(currentPos);
  32228. if (tagStart === false) {
  32229. if (c === "<") {
  32230. tagStart = currentPos;
  32231. continue;
  32232. }
  32233. } else {
  32234. if (quoteStart === false) {
  32235. if (c === "<") {
  32236. rethtml += escapeHtml(html.slice(lastPos, currentPos));
  32237. tagStart = currentPos;
  32238. lastPos = currentPos;
  32239. continue;
  32240. }
  32241. if (c === ">") {
  32242. rethtml += escapeHtml(html.slice(lastPos, tagStart));
  32243. currentHtml = html.slice(tagStart, currentPos + 1);
  32244. currentTagName = getTagName(currentHtml);
  32245. rethtml += onTag(
  32246. tagStart,
  32247. rethtml.length,
  32248. currentTagName,
  32249. currentHtml,
  32250. isClosing(currentHtml)
  32251. );
  32252. lastPos = currentPos + 1;
  32253. tagStart = false;
  32254. continue;
  32255. }
  32256. if ((c === '"' || c === "'") && html.charAt(currentPos - 1) === "=") {
  32257. quoteStart = c;
  32258. continue;
  32259. }
  32260. } else {
  32261. if (c === quoteStart) {
  32262. quoteStart = false;
  32263. continue;
  32264. }
  32265. }
  32266. }
  32267. }
  32268. if (lastPos < html.length) {
  32269. rethtml += escapeHtml(html.substr(lastPos));
  32270. }
  32271. return rethtml;
  32272. }
  32273. var REGEXP_ILLEGAL_ATTR_NAME = /[^a-zA-Z0-9_:\.\-]/gim;
  32274. /**
  32275. * parse input attributes and returns processed attributes
  32276. *
  32277. * @param {String} html e.g. `href="#" target="_blank"`
  32278. * @param {Function} onAttr e.g. `function (name, value)`
  32279. * @return {String}
  32280. */
  32281. function parseAttr(html, onAttr) {
  32282. "user strict";
  32283. var lastPos = 0;
  32284. var retAttrs = [];
  32285. var tmpName = false;
  32286. var len = html.length;
  32287. function addAttr(name, value) {
  32288. name = _.trim(name);
  32289. name = name.replace(REGEXP_ILLEGAL_ATTR_NAME, "").toLowerCase();
  32290. if (name.length < 1) return;
  32291. var ret = onAttr(name, value || "");
  32292. if (ret) retAttrs.push(ret);
  32293. }
  32294. // 逐个分析字符
  32295. for (var i = 0; i < len; i++) {
  32296. var c = html.charAt(i);
  32297. var v, j;
  32298. if (tmpName === false && c === "=") {
  32299. tmpName = html.slice(lastPos, i);
  32300. lastPos = i + 1;
  32301. continue;
  32302. }
  32303. if (tmpName !== false) {
  32304. if (
  32305. i === lastPos &&
  32306. (c === '"' || c === "'") &&
  32307. html.charAt(i - 1) === "="
  32308. ) {
  32309. j = html.indexOf(c, i + 1);
  32310. if (j === -1) {
  32311. break;
  32312. } else {
  32313. v = _.trim(html.slice(lastPos + 1, j));
  32314. addAttr(tmpName, v);
  32315. tmpName = false;
  32316. i = j;
  32317. lastPos = i + 1;
  32318. continue;
  32319. }
  32320. }
  32321. }
  32322. if (/\s|\n|\t/.test(c)) {
  32323. html = html.replace(/\s|\n|\t/g, " ");
  32324. if (tmpName === false) {
  32325. j = findNextEqual(html, i);
  32326. if (j === -1) {
  32327. v = _.trim(html.slice(lastPos, i));
  32328. addAttr(v);
  32329. tmpName = false;
  32330. lastPos = i + 1;
  32331. continue;
  32332. } else {
  32333. i = j - 1;
  32334. continue;
  32335. }
  32336. } else {
  32337. j = findBeforeEqual(html, i - 1);
  32338. if (j === -1) {
  32339. v = _.trim(html.slice(lastPos, i));
  32340. v = stripQuoteWrap(v);
  32341. addAttr(tmpName, v);
  32342. tmpName = false;
  32343. lastPos = i + 1;
  32344. continue;
  32345. } else {
  32346. continue;
  32347. }
  32348. }
  32349. }
  32350. }
  32351. if (lastPos < html.length) {
  32352. if (tmpName === false) {
  32353. addAttr(html.slice(lastPos));
  32354. } else {
  32355. addAttr(tmpName, stripQuoteWrap(_.trim(html.slice(lastPos))));
  32356. }
  32357. }
  32358. return _.trim(retAttrs.join(" "));
  32359. }
  32360. function findNextEqual(str, i) {
  32361. for (; i < str.length; i++) {
  32362. var c = str[i];
  32363. if (c === " ") continue;
  32364. if (c === "=") return i;
  32365. return -1;
  32366. }
  32367. }
  32368. function findBeforeEqual(str, i) {
  32369. for (; i > 0; i--) {
  32370. var c = str[i];
  32371. if (c === " ") continue;
  32372. if (c === "=") return i;
  32373. return -1;
  32374. }
  32375. }
  32376. function isQuoteWrapString(text) {
  32377. if (
  32378. (text[0] === '"' && text[text.length - 1] === '"') ||
  32379. (text[0] === "'" && text[text.length - 1] === "'")
  32380. ) {
  32381. return true;
  32382. } else {
  32383. return false;
  32384. }
  32385. }
  32386. function stripQuoteWrap(text) {
  32387. if (isQuoteWrapString(text)) {
  32388. return text.substr(1, text.length - 2);
  32389. } else {
  32390. return text;
  32391. }
  32392. }
  32393. exports.parseTag = parseTag;
  32394. exports.parseAttr = parseAttr;
  32395. },{"./util":4}],4:[function(require,module,exports){
  32396. module.exports = {
  32397. indexOf: function(arr, item) {
  32398. var i, j;
  32399. if (Array.prototype.indexOf) {
  32400. return arr.indexOf(item);
  32401. }
  32402. for (i = 0, j = arr.length; i < j; i++) {
  32403. if (arr[i] === item) {
  32404. return i;
  32405. }
  32406. }
  32407. return -1;
  32408. },
  32409. forEach: function(arr, fn, scope) {
  32410. var i, j;
  32411. if (Array.prototype.forEach) {
  32412. return arr.forEach(fn, scope);
  32413. }
  32414. for (i = 0, j = arr.length; i < j; i++) {
  32415. fn.call(scope, arr[i], i, arr);
  32416. }
  32417. },
  32418. trim: function(str) {
  32419. if (String.prototype.trim) {
  32420. return str.trim();
  32421. }
  32422. return str.replace(/(^\s*)|(\s*$)/g, "");
  32423. },
  32424. spaceIndex: function(str) {
  32425. var reg = /\s|\n|\t/;
  32426. var match = reg.exec(str);
  32427. return match ? match.index : -1;
  32428. }
  32429. };
  32430. },{}],5:[function(require,module,exports){
  32431. /**
  32432. * filter xss
  32433. *
  32434. * @author Zongmin Lei<leizongmin@gmail.com>
  32435. */
  32436. var FilterCSS = require("cssfilter").FilterCSS;
  32437. var DEFAULT = require("./default");
  32438. var parser = require("./parser");
  32439. var parseTag = parser.parseTag;
  32440. var parseAttr = parser.parseAttr;
  32441. var _ = require("./util");
  32442. /**
  32443. * returns `true` if the input value is `undefined` or `null`
  32444. *
  32445. * @param {Object} obj
  32446. * @return {Boolean}
  32447. */
  32448. function isNull(obj) {
  32449. return obj === undefined || obj === null;
  32450. }
  32451. /**
  32452. * get attributes for a tag
  32453. *
  32454. * @param {String} html
  32455. * @return {Object}
  32456. * - {String} html
  32457. * - {Boolean} closing
  32458. */
  32459. function getAttrs(html) {
  32460. var i = _.spaceIndex(html);
  32461. if (i === -1) {
  32462. return {
  32463. html: "",
  32464. closing: html[html.length - 2] === "/"
  32465. };
  32466. }
  32467. html = _.trim(html.slice(i + 1, -1));
  32468. var isClosing = html[html.length - 1] === "/";
  32469. if (isClosing) html = _.trim(html.slice(0, -1));
  32470. return {
  32471. html: html,
  32472. closing: isClosing
  32473. };
  32474. }
  32475. /**
  32476. * shallow copy
  32477. *
  32478. * @param {Object} obj
  32479. * @return {Object}
  32480. */
  32481. function shallowCopyObject(obj) {
  32482. var ret = {};
  32483. for (var i in obj) {
  32484. ret[i] = obj[i];
  32485. }
  32486. return ret;
  32487. }
  32488. /**
  32489. * FilterXSS class
  32490. *
  32491. * @param {Object} options
  32492. * whiteList, onTag, onTagAttr, onIgnoreTag,
  32493. * onIgnoreTagAttr, safeAttrValue, escapeHtml
  32494. * stripIgnoreTagBody, allowCommentTag, stripBlankChar
  32495. * css{whiteList, onAttr, onIgnoreAttr} `css=false` means don't use `cssfilter`
  32496. */
  32497. function FilterXSS(options) {
  32498. options = shallowCopyObject(options || {});
  32499. if (options.stripIgnoreTag) {
  32500. if (options.onIgnoreTag) {
  32501. console.error(
  32502. 'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
  32503. );
  32504. }
  32505. options.onIgnoreTag = DEFAULT.onIgnoreTagStripAll;
  32506. }
  32507. options.whiteList = options.whiteList || DEFAULT.whiteList;
  32508. options.onTag = options.onTag || DEFAULT.onTag;
  32509. options.onTagAttr = options.onTagAttr || DEFAULT.onTagAttr;
  32510. options.onIgnoreTag = options.onIgnoreTag || DEFAULT.onIgnoreTag;
  32511. options.onIgnoreTagAttr = options.onIgnoreTagAttr || DEFAULT.onIgnoreTagAttr;
  32512. options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
  32513. options.escapeHtml = options.escapeHtml || DEFAULT.escapeHtml;
  32514. this.options = options;
  32515. if (options.css === false) {
  32516. this.cssFilter = false;
  32517. } else {
  32518. options.css = options.css || {};
  32519. this.cssFilter = new FilterCSS(options.css);
  32520. }
  32521. }
  32522. /**
  32523. * start process and returns result
  32524. *
  32525. * @param {String} html
  32526. * @return {String}
  32527. */
  32528. FilterXSS.prototype.process = function(html) {
  32529. // compatible with the input
  32530. html = html || "";
  32531. html = html.toString();
  32532. if (!html) return "";
  32533. var me = this;
  32534. var options = me.options;
  32535. var whiteList = options.whiteList;
  32536. var onTag = options.onTag;
  32537. var onIgnoreTag = options.onIgnoreTag;
  32538. var onTagAttr = options.onTagAttr;
  32539. var onIgnoreTagAttr = options.onIgnoreTagAttr;
  32540. var safeAttrValue = options.safeAttrValue;
  32541. var escapeHtml = options.escapeHtml;
  32542. var cssFilter = me.cssFilter;
  32543. // remove invisible characters
  32544. if (options.stripBlankChar) {
  32545. html = DEFAULT.stripBlankChar(html);
  32546. }
  32547. // remove html comments
  32548. if (!options.allowCommentTag) {
  32549. html = DEFAULT.stripCommentTag(html);
  32550. }
  32551. // if enable stripIgnoreTagBody
  32552. var stripIgnoreTagBody = false;
  32553. if (options.stripIgnoreTagBody) {
  32554. var stripIgnoreTagBody = DEFAULT.StripTagBody(
  32555. options.stripIgnoreTagBody,
  32556. onIgnoreTag
  32557. );
  32558. onIgnoreTag = stripIgnoreTagBody.onIgnoreTag;
  32559. }
  32560. var retHtml = parseTag(
  32561. html,
  32562. function(sourcePosition, position, tag, html, isClosing) {
  32563. var info = {
  32564. sourcePosition: sourcePosition,
  32565. position: position,
  32566. isClosing: isClosing,
  32567. isWhite: whiteList.hasOwnProperty(tag)
  32568. };
  32569. // call `onTag()`
  32570. var ret = onTag(tag, html, info);
  32571. if (!isNull(ret)) return ret;
  32572. if (info.isWhite) {
  32573. if (info.isClosing) {
  32574. return "</" + tag + ">";
  32575. }
  32576. var attrs = getAttrs(html);
  32577. var whiteAttrList = whiteList[tag];
  32578. var attrsHtml = parseAttr(attrs.html, function(name, value) {
  32579. // call `onTagAttr()`
  32580. var isWhiteAttr = _.indexOf(whiteAttrList, name) !== -1;
  32581. var ret = onTagAttr(tag, name, value, isWhiteAttr);
  32582. if (!isNull(ret)) return ret;
  32583. if (isWhiteAttr) {
  32584. // call `safeAttrValue()`
  32585. value = safeAttrValue(tag, name, value, cssFilter);
  32586. if (value) {
  32587. return name + '="' + value + '"';
  32588. } else {
  32589. return name;
  32590. }
  32591. } else {
  32592. // call `onIgnoreTagAttr()`
  32593. var ret = onIgnoreTagAttr(tag, name, value, isWhiteAttr);
  32594. if (!isNull(ret)) return ret;
  32595. return;
  32596. }
  32597. });
  32598. // build new tag html
  32599. var html = "<" + tag;
  32600. if (attrsHtml) html += " " + attrsHtml;
  32601. if (attrs.closing) html += " /";
  32602. html += ">";
  32603. return html;
  32604. } else {
  32605. // call `onIgnoreTag()`
  32606. var ret = onIgnoreTag(tag, html, info);
  32607. if (!isNull(ret)) return ret;
  32608. return escapeHtml(html);
  32609. }
  32610. },
  32611. escapeHtml
  32612. );
  32613. // if enable stripIgnoreTagBody
  32614. if (stripIgnoreTagBody) {
  32615. retHtml = stripIgnoreTagBody.remove(retHtml);
  32616. }
  32617. return retHtml;
  32618. };
  32619. module.exports = FilterXSS;
  32620. },{"./default":1,"./parser":3,"./util":4,"cssfilter":8}],6:[function(require,module,exports){
  32621. /**
  32622. * cssfilter
  32623. *
  32624. * @author 老雷<leizongmin@gmail.com>
  32625. */
  32626. var DEFAULT = require('./default');
  32627. var parseStyle = require('./parser');
  32628. var _ = require('./util');
  32629. /**
  32630. * 返回值是否为空
  32631. *
  32632. * @param {Object} obj
  32633. * @return {Boolean}
  32634. */
  32635. function isNull (obj) {
  32636. return (obj === undefined || obj === null);
  32637. }
  32638. /**
  32639. * 浅拷贝对象
  32640. *
  32641. * @param {Object} obj
  32642. * @return {Object}
  32643. */
  32644. function shallowCopyObject (obj) {
  32645. var ret = {};
  32646. for (var i in obj) {
  32647. ret[i] = obj[i];
  32648. }
  32649. return ret;
  32650. }
  32651. /**
  32652. * 创建CSS过滤器
  32653. *
  32654. * @param {Object} options
  32655. * - {Object} whiteList
  32656. * - {Function} onAttr
  32657. * - {Function} onIgnoreAttr
  32658. * - {Function} safeAttrValue
  32659. */
  32660. function FilterCSS (options) {
  32661. options = shallowCopyObject(options || {});
  32662. options.whiteList = options.whiteList || DEFAULT.whiteList;
  32663. options.onAttr = options.onAttr || DEFAULT.onAttr;
  32664. options.onIgnoreAttr = options.onIgnoreAttr || DEFAULT.onIgnoreAttr;
  32665. options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
  32666. this.options = options;
  32667. }
  32668. FilterCSS.prototype.process = function (css) {
  32669. // 兼容各种奇葩输入
  32670. css = css || '';
  32671. css = css.toString();
  32672. if (!css) return '';
  32673. var me = this;
  32674. var options = me.options;
  32675. var whiteList = options.whiteList;
  32676. var onAttr = options.onAttr;
  32677. var onIgnoreAttr = options.onIgnoreAttr;
  32678. var safeAttrValue = options.safeAttrValue;
  32679. var retCSS = parseStyle(css, function (sourcePosition, position, name, value, source) {
  32680. var check = whiteList[name];
  32681. var isWhite = false;
  32682. if (check === true) isWhite = check;
  32683. else if (typeof check === 'function') isWhite = check(value);
  32684. else if (check instanceof RegExp) isWhite = check.test(value);
  32685. if (isWhite !== true) isWhite = false;
  32686. // 如果过滤后 value 为空则直接忽略
  32687. value = safeAttrValue(name, value);
  32688. if (!value) return;
  32689. var opts = {
  32690. position: position,
  32691. sourcePosition: sourcePosition,
  32692. source: source,
  32693. isWhite: isWhite
  32694. };
  32695. if (isWhite) {
  32696. var ret = onAttr(name, value, opts);
  32697. if (isNull(ret)) {
  32698. return name + ':' + value;
  32699. } else {
  32700. return ret;
  32701. }
  32702. } else {
  32703. var ret = onIgnoreAttr(name, value, opts);
  32704. if (!isNull(ret)) {
  32705. return ret;
  32706. }
  32707. }
  32708. });
  32709. return retCSS;
  32710. };
  32711. module.exports = FilterCSS;
  32712. },{"./default":7,"./parser":9,"./util":10}],7:[function(require,module,exports){
  32713. /**
  32714. * cssfilter
  32715. *
  32716. * @author 老雷<leizongmin@gmail.com>
  32717. */
  32718. function getDefaultWhiteList () {
  32719. // 白名单值说明:
  32720. // true: 允许该属性
  32721. // Function: function (val) { } 返回true表示允许该属性,其他值均表示不允许
  32722. // RegExp: regexp.test(val) 返回true表示允许该属性,其他值均表示不允许
  32723. // 除上面列出的值外均表示不允许
  32724. var whiteList = {};
  32725. whiteList['align-content'] = false; // default: auto
  32726. whiteList['align-items'] = false; // default: auto
  32727. whiteList['align-self'] = false; // default: auto
  32728. whiteList['alignment-adjust'] = false; // default: auto
  32729. whiteList['alignment-baseline'] = false; // default: baseline
  32730. whiteList['all'] = false; // default: depending on individual properties
  32731. whiteList['anchor-point'] = false; // default: none
  32732. whiteList['animation'] = false; // default: depending on individual properties
  32733. whiteList['animation-delay'] = false; // default: 0
  32734. whiteList['animation-direction'] = false; // default: normal
  32735. whiteList['animation-duration'] = false; // default: 0
  32736. whiteList['animation-fill-mode'] = false; // default: none
  32737. whiteList['animation-iteration-count'] = false; // default: 1
  32738. whiteList['animation-name'] = false; // default: none
  32739. whiteList['animation-play-state'] = false; // default: running
  32740. whiteList['animation-timing-function'] = false; // default: ease
  32741. whiteList['azimuth'] = false; // default: center
  32742. whiteList['backface-visibility'] = false; // default: visible
  32743. whiteList['background'] = true; // default: depending on individual properties
  32744. whiteList['background-attachment'] = true; // default: scroll
  32745. whiteList['background-clip'] = true; // default: border-box
  32746. whiteList['background-color'] = true; // default: transparent
  32747. whiteList['background-image'] = true; // default: none
  32748. whiteList['background-origin'] = true; // default: padding-box
  32749. whiteList['background-position'] = true; // default: 0% 0%
  32750. whiteList['background-repeat'] = true; // default: repeat
  32751. whiteList['background-size'] = true; // default: auto
  32752. whiteList['baseline-shift'] = false; // default: baseline
  32753. whiteList['binding'] = false; // default: none
  32754. whiteList['bleed'] = false; // default: 6pt
  32755. whiteList['bookmark-label'] = false; // default: content()
  32756. whiteList['bookmark-level'] = false; // default: none
  32757. whiteList['bookmark-state'] = false; // default: open
  32758. whiteList['border'] = true; // default: depending on individual properties
  32759. whiteList['border-bottom'] = true; // default: depending on individual properties
  32760. whiteList['border-bottom-color'] = true; // default: current color
  32761. whiteList['border-bottom-left-radius'] = true; // default: 0
  32762. whiteList['border-bottom-right-radius'] = true; // default: 0
  32763. whiteList['border-bottom-style'] = true; // default: none
  32764. whiteList['border-bottom-width'] = true; // default: medium
  32765. whiteList['border-collapse'] = true; // default: separate
  32766. whiteList['border-color'] = true; // default: depending on individual properties
  32767. whiteList['border-image'] = true; // default: none
  32768. whiteList['border-image-outset'] = true; // default: 0
  32769. whiteList['border-image-repeat'] = true; // default: stretch
  32770. whiteList['border-image-slice'] = true; // default: 100%
  32771. whiteList['border-image-source'] = true; // default: none
  32772. whiteList['border-image-width'] = true; // default: 1
  32773. whiteList['border-left'] = true; // default: depending on individual properties
  32774. whiteList['border-left-color'] = true; // default: current color
  32775. whiteList['border-left-style'] = true; // default: none
  32776. whiteList['border-left-width'] = true; // default: medium
  32777. whiteList['border-radius'] = true; // default: 0
  32778. whiteList['border-right'] = true; // default: depending on individual properties
  32779. whiteList['border-right-color'] = true; // default: current color
  32780. whiteList['border-right-style'] = true; // default: none
  32781. whiteList['border-right-width'] = true; // default: medium
  32782. whiteList['border-spacing'] = true; // default: 0
  32783. whiteList['border-style'] = true; // default: depending on individual properties
  32784. whiteList['border-top'] = true; // default: depending on individual properties
  32785. whiteList['border-top-color'] = true; // default: current color
  32786. whiteList['border-top-left-radius'] = true; // default: 0
  32787. whiteList['border-top-right-radius'] = true; // default: 0
  32788. whiteList['border-top-style'] = true; // default: none
  32789. whiteList['border-top-width'] = true; // default: medium
  32790. whiteList['border-width'] = true; // default: depending on individual properties
  32791. whiteList['bottom'] = false; // default: auto
  32792. whiteList['box-decoration-break'] = true; // default: slice
  32793. whiteList['box-shadow'] = true; // default: none
  32794. whiteList['box-sizing'] = true; // default: content-box
  32795. whiteList['box-snap'] = true; // default: none
  32796. whiteList['box-suppress'] = true; // default: show
  32797. whiteList['break-after'] = true; // default: auto
  32798. whiteList['break-before'] = true; // default: auto
  32799. whiteList['break-inside'] = true; // default: auto
  32800. whiteList['caption-side'] = false; // default: top
  32801. whiteList['chains'] = false; // default: none
  32802. whiteList['clear'] = true; // default: none
  32803. whiteList['clip'] = false; // default: auto
  32804. whiteList['clip-path'] = false; // default: none
  32805. whiteList['clip-rule'] = false; // default: nonzero
  32806. whiteList['color'] = true; // default: implementation dependent
  32807. whiteList['color-interpolation-filters'] = true; // default: auto
  32808. whiteList['column-count'] = false; // default: auto
  32809. whiteList['column-fill'] = false; // default: balance
  32810. whiteList['column-gap'] = false; // default: normal
  32811. whiteList['column-rule'] = false; // default: depending on individual properties
  32812. whiteList['column-rule-color'] = false; // default: current color
  32813. whiteList['column-rule-style'] = false; // default: medium
  32814. whiteList['column-rule-width'] = false; // default: medium
  32815. whiteList['column-span'] = false; // default: none
  32816. whiteList['column-width'] = false; // default: auto
  32817. whiteList['columns'] = false; // default: depending on individual properties
  32818. whiteList['contain'] = false; // default: none
  32819. whiteList['content'] = false; // default: normal
  32820. whiteList['counter-increment'] = false; // default: none
  32821. whiteList['counter-reset'] = false; // default: none
  32822. whiteList['counter-set'] = false; // default: none
  32823. whiteList['crop'] = false; // default: auto
  32824. whiteList['cue'] = false; // default: depending on individual properties
  32825. whiteList['cue-after'] = false; // default: none
  32826. whiteList['cue-before'] = false; // default: none
  32827. whiteList['cursor'] = false; // default: auto
  32828. whiteList['direction'] = false; // default: ltr
  32829. whiteList['display'] = true; // default: depending on individual properties
  32830. whiteList['display-inside'] = true; // default: auto
  32831. whiteList['display-list'] = true; // default: none
  32832. whiteList['display-outside'] = true; // default: inline-level
  32833. whiteList['dominant-baseline'] = false; // default: auto
  32834. whiteList['elevation'] = false; // default: level
  32835. whiteList['empty-cells'] = false; // default: show
  32836. whiteList['filter'] = false; // default: none
  32837. whiteList['flex'] = false; // default: depending on individual properties
  32838. whiteList['flex-basis'] = false; // default: auto
  32839. whiteList['flex-direction'] = false; // default: row
  32840. whiteList['flex-flow'] = false; // default: depending on individual properties
  32841. whiteList['flex-grow'] = false; // default: 0
  32842. whiteList['flex-shrink'] = false; // default: 1
  32843. whiteList['flex-wrap'] = false; // default: nowrap
  32844. whiteList['float'] = false; // default: none
  32845. whiteList['float-offset'] = false; // default: 0 0
  32846. whiteList['flood-color'] = false; // default: black
  32847. whiteList['flood-opacity'] = false; // default: 1
  32848. whiteList['flow-from'] = false; // default: none
  32849. whiteList['flow-into'] = false; // default: none
  32850. whiteList['font'] = true; // default: depending on individual properties
  32851. whiteList['font-family'] = true; // default: implementation dependent
  32852. whiteList['font-feature-settings'] = true; // default: normal
  32853. whiteList['font-kerning'] = true; // default: auto
  32854. whiteList['font-language-override'] = true; // default: normal
  32855. whiteList['font-size'] = true; // default: medium
  32856. whiteList['font-size-adjust'] = true; // default: none
  32857. whiteList['font-stretch'] = true; // default: normal
  32858. whiteList['font-style'] = true; // default: normal
  32859. whiteList['font-synthesis'] = true; // default: weight style
  32860. whiteList['font-variant'] = true; // default: normal
  32861. whiteList['font-variant-alternates'] = true; // default: normal
  32862. whiteList['font-variant-caps'] = true; // default: normal
  32863. whiteList['font-variant-east-asian'] = true; // default: normal
  32864. whiteList['font-variant-ligatures'] = true; // default: normal
  32865. whiteList['font-variant-numeric'] = true; // default: normal
  32866. whiteList['font-variant-position'] = true; // default: normal
  32867. whiteList['font-weight'] = true; // default: normal
  32868. whiteList['grid'] = false; // default: depending on individual properties
  32869. whiteList['grid-area'] = false; // default: depending on individual properties
  32870. whiteList['grid-auto-columns'] = false; // default: auto
  32871. whiteList['grid-auto-flow'] = false; // default: none
  32872. whiteList['grid-auto-rows'] = false; // default: auto
  32873. whiteList['grid-column'] = false; // default: depending on individual properties
  32874. whiteList['grid-column-end'] = false; // default: auto
  32875. whiteList['grid-column-start'] = false; // default: auto
  32876. whiteList['grid-row'] = false; // default: depending on individual properties
  32877. whiteList['grid-row-end'] = false; // default: auto
  32878. whiteList['grid-row-start'] = false; // default: auto
  32879. whiteList['grid-template'] = false; // default: depending on individual properties
  32880. whiteList['grid-template-areas'] = false; // default: none
  32881. whiteList['grid-template-columns'] = false; // default: none
  32882. whiteList['grid-template-rows'] = false; // default: none
  32883. whiteList['hanging-punctuation'] = false; // default: none
  32884. whiteList['height'] = true; // default: auto
  32885. whiteList['hyphens'] = false; // default: manual
  32886. whiteList['icon'] = false; // default: auto
  32887. whiteList['image-orientation'] = false; // default: auto
  32888. whiteList['image-resolution'] = false; // default: normal
  32889. whiteList['ime-mode'] = false; // default: auto
  32890. whiteList['initial-letters'] = false; // default: normal
  32891. whiteList['inline-box-align'] = false; // default: last
  32892. whiteList['justify-content'] = false; // default: auto
  32893. whiteList['justify-items'] = false; // default: auto
  32894. whiteList['justify-self'] = false; // default: auto
  32895. whiteList['left'] = false; // default: auto
  32896. whiteList['letter-spacing'] = true; // default: normal
  32897. whiteList['lighting-color'] = true; // default: white
  32898. whiteList['line-box-contain'] = false; // default: block inline replaced
  32899. whiteList['line-break'] = false; // default: auto
  32900. whiteList['line-grid'] = false; // default: match-parent
  32901. whiteList['line-height'] = false; // default: normal
  32902. whiteList['line-snap'] = false; // default: none
  32903. whiteList['line-stacking'] = false; // default: depending on individual properties
  32904. whiteList['line-stacking-ruby'] = false; // default: exclude-ruby
  32905. whiteList['line-stacking-shift'] = false; // default: consider-shifts
  32906. whiteList['line-stacking-strategy'] = false; // default: inline-line-height
  32907. whiteList['list-style'] = true; // default: depending on individual properties
  32908. whiteList['list-style-image'] = true; // default: none
  32909. whiteList['list-style-position'] = true; // default: outside
  32910. whiteList['list-style-type'] = true; // default: disc
  32911. whiteList['margin'] = true; // default: depending on individual properties
  32912. whiteList['margin-bottom'] = true; // default: 0
  32913. whiteList['margin-left'] = true; // default: 0
  32914. whiteList['margin-right'] = true; // default: 0
  32915. whiteList['margin-top'] = true; // default: 0
  32916. whiteList['marker-offset'] = false; // default: auto
  32917. whiteList['marker-side'] = false; // default: list-item
  32918. whiteList['marks'] = false; // default: none
  32919. whiteList['mask'] = false; // default: border-box
  32920. whiteList['mask-box'] = false; // default: see individual properties
  32921. whiteList['mask-box-outset'] = false; // default: 0
  32922. whiteList['mask-box-repeat'] = false; // default: stretch
  32923. whiteList['mask-box-slice'] = false; // default: 0 fill
  32924. whiteList['mask-box-source'] = false; // default: none
  32925. whiteList['mask-box-width'] = false; // default: auto
  32926. whiteList['mask-clip'] = false; // default: border-box
  32927. whiteList['mask-image'] = false; // default: none
  32928. whiteList['mask-origin'] = false; // default: border-box
  32929. whiteList['mask-position'] = false; // default: center
  32930. whiteList['mask-repeat'] = false; // default: no-repeat
  32931. whiteList['mask-size'] = false; // default: border-box
  32932. whiteList['mask-source-type'] = false; // default: auto
  32933. whiteList['mask-type'] = false; // default: luminance
  32934. whiteList['max-height'] = true; // default: none
  32935. whiteList['max-lines'] = false; // default: none
  32936. whiteList['max-width'] = true; // default: none
  32937. whiteList['min-height'] = true; // default: 0
  32938. whiteList['min-width'] = true; // default: 0
  32939. whiteList['move-to'] = false; // default: normal
  32940. whiteList['nav-down'] = false; // default: auto
  32941. whiteList['nav-index'] = false; // default: auto
  32942. whiteList['nav-left'] = false; // default: auto
  32943. whiteList['nav-right'] = false; // default: auto
  32944. whiteList['nav-up'] = false; // default: auto
  32945. whiteList['object-fit'] = false; // default: fill
  32946. whiteList['object-position'] = false; // default: 50% 50%
  32947. whiteList['opacity'] = false; // default: 1
  32948. whiteList['order'] = false; // default: 0
  32949. whiteList['orphans'] = false; // default: 2
  32950. whiteList['outline'] = false; // default: depending on individual properties
  32951. whiteList['outline-color'] = false; // default: invert
  32952. whiteList['outline-offset'] = false; // default: 0
  32953. whiteList['outline-style'] = false; // default: none
  32954. whiteList['outline-width'] = false; // default: medium
  32955. whiteList['overflow'] = false; // default: depending on individual properties
  32956. whiteList['overflow-wrap'] = false; // default: normal
  32957. whiteList['overflow-x'] = false; // default: visible
  32958. whiteList['overflow-y'] = false; // default: visible
  32959. whiteList['padding'] = true; // default: depending on individual properties
  32960. whiteList['padding-bottom'] = true; // default: 0
  32961. whiteList['padding-left'] = true; // default: 0
  32962. whiteList['padding-right'] = true; // default: 0
  32963. whiteList['padding-top'] = true; // default: 0
  32964. whiteList['page'] = false; // default: auto
  32965. whiteList['page-break-after'] = false; // default: auto
  32966. whiteList['page-break-before'] = false; // default: auto
  32967. whiteList['page-break-inside'] = false; // default: auto
  32968. whiteList['page-policy'] = false; // default: start
  32969. whiteList['pause'] = false; // default: implementation dependent
  32970. whiteList['pause-after'] = false; // default: implementation dependent
  32971. whiteList['pause-before'] = false; // default: implementation dependent
  32972. whiteList['perspective'] = false; // default: none
  32973. whiteList['perspective-origin'] = false; // default: 50% 50%
  32974. whiteList['pitch'] = false; // default: medium
  32975. whiteList['pitch-range'] = false; // default: 50
  32976. whiteList['play-during'] = false; // default: auto
  32977. whiteList['position'] = false; // default: static
  32978. whiteList['presentation-level'] = false; // default: 0
  32979. whiteList['quotes'] = false; // default: text
  32980. whiteList['region-fragment'] = false; // default: auto
  32981. whiteList['resize'] = false; // default: none
  32982. whiteList['rest'] = false; // default: depending on individual properties
  32983. whiteList['rest-after'] = false; // default: none
  32984. whiteList['rest-before'] = false; // default: none
  32985. whiteList['richness'] = false; // default: 50
  32986. whiteList['right'] = false; // default: auto
  32987. whiteList['rotation'] = false; // default: 0
  32988. whiteList['rotation-point'] = false; // default: 50% 50%
  32989. whiteList['ruby-align'] = false; // default: auto
  32990. whiteList['ruby-merge'] = false; // default: separate
  32991. whiteList['ruby-position'] = false; // default: before
  32992. whiteList['shape-image-threshold'] = false; // default: 0.0
  32993. whiteList['shape-outside'] = false; // default: none
  32994. whiteList['shape-margin'] = false; // default: 0
  32995. whiteList['size'] = false; // default: auto
  32996. whiteList['speak'] = false; // default: auto
  32997. whiteList['speak-as'] = false; // default: normal
  32998. whiteList['speak-header'] = false; // default: once
  32999. whiteList['speak-numeral'] = false; // default: continuous
  33000. whiteList['speak-punctuation'] = false; // default: none
  33001. whiteList['speech-rate'] = false; // default: medium
  33002. whiteList['stress'] = false; // default: 50
  33003. whiteList['string-set'] = false; // default: none
  33004. whiteList['tab-size'] = false; // default: 8
  33005. whiteList['table-layout'] = false; // default: auto
  33006. whiteList['text-align'] = true; // default: start
  33007. whiteList['text-align-last'] = true; // default: auto
  33008. whiteList['text-combine-upright'] = true; // default: none
  33009. whiteList['text-decoration'] = true; // default: none
  33010. whiteList['text-decoration-color'] = true; // default: currentColor
  33011. whiteList['text-decoration-line'] = true; // default: none
  33012. whiteList['text-decoration-skip'] = true; // default: objects
  33013. whiteList['text-decoration-style'] = true; // default: solid
  33014. whiteList['text-emphasis'] = true; // default: depending on individual properties
  33015. whiteList['text-emphasis-color'] = true; // default: currentColor
  33016. whiteList['text-emphasis-position'] = true; // default: over right
  33017. whiteList['text-emphasis-style'] = true; // default: none
  33018. whiteList['text-height'] = true; // default: auto
  33019. whiteList['text-indent'] = true; // default: 0
  33020. whiteList['text-justify'] = true; // default: auto
  33021. whiteList['text-orientation'] = true; // default: mixed
  33022. whiteList['text-overflow'] = true; // default: clip
  33023. whiteList['text-shadow'] = true; // default: none
  33024. whiteList['text-space-collapse'] = true; // default: collapse
  33025. whiteList['text-transform'] = true; // default: none
  33026. whiteList['text-underline-position'] = true; // default: auto
  33027. whiteList['text-wrap'] = true; // default: normal
  33028. whiteList['top'] = false; // default: auto
  33029. whiteList['transform'] = false; // default: none
  33030. whiteList['transform-origin'] = false; // default: 50% 50% 0
  33031. whiteList['transform-style'] = false; // default: flat
  33032. whiteList['transition'] = false; // default: depending on individual properties
  33033. whiteList['transition-delay'] = false; // default: 0s
  33034. whiteList['transition-duration'] = false; // default: 0s
  33035. whiteList['transition-property'] = false; // default: all
  33036. whiteList['transition-timing-function'] = false; // default: ease
  33037. whiteList['unicode-bidi'] = false; // default: normal
  33038. whiteList['vertical-align'] = false; // default: baseline
  33039. whiteList['visibility'] = false; // default: visible
  33040. whiteList['voice-balance'] = false; // default: center
  33041. whiteList['voice-duration'] = false; // default: auto
  33042. whiteList['voice-family'] = false; // default: implementation dependent
  33043. whiteList['voice-pitch'] = false; // default: medium
  33044. whiteList['voice-range'] = false; // default: medium
  33045. whiteList['voice-rate'] = false; // default: normal
  33046. whiteList['voice-stress'] = false; // default: normal
  33047. whiteList['voice-volume'] = false; // default: medium
  33048. whiteList['volume'] = false; // default: medium
  33049. whiteList['white-space'] = false; // default: normal
  33050. whiteList['widows'] = false; // default: 2
  33051. whiteList['width'] = true; // default: auto
  33052. whiteList['will-change'] = false; // default: auto
  33053. whiteList['word-break'] = true; // default: normal
  33054. whiteList['word-spacing'] = true; // default: normal
  33055. whiteList['word-wrap'] = true; // default: normal
  33056. whiteList['wrap-flow'] = false; // default: auto
  33057. whiteList['wrap-through'] = false; // default: wrap
  33058. whiteList['writing-mode'] = false; // default: horizontal-tb
  33059. whiteList['z-index'] = false; // default: auto
  33060. return whiteList;
  33061. }
  33062. /**
  33063. * 匹配到白名单上的一个属性时
  33064. *
  33065. * @param {String} name
  33066. * @param {String} value
  33067. * @param {Object} options
  33068. * @return {String}
  33069. */
  33070. function onAttr (name, value, options) {
  33071. // do nothing
  33072. }
  33073. /**
  33074. * 匹配到不在白名单上的一个属性时
  33075. *
  33076. * @param {String} name
  33077. * @param {String} value
  33078. * @param {Object} options
  33079. * @return {String}
  33080. */
  33081. function onIgnoreAttr (name, value, options) {
  33082. // do nothing
  33083. }
  33084. var REGEXP_URL_JAVASCRIPT = /javascript\s*\:/img;
  33085. /**
  33086. * 过滤属性值
  33087. *
  33088. * @param {String} name
  33089. * @param {String} value
  33090. * @return {String}
  33091. */
  33092. function safeAttrValue(name, value) {
  33093. if (REGEXP_URL_JAVASCRIPT.test(value)) return '';
  33094. return value;
  33095. }
  33096. exports.whiteList = getDefaultWhiteList();
  33097. exports.getDefaultWhiteList = getDefaultWhiteList;
  33098. exports.onAttr = onAttr;
  33099. exports.onIgnoreAttr = onIgnoreAttr;
  33100. exports.safeAttrValue = safeAttrValue;
  33101. },{}],8:[function(require,module,exports){
  33102. /**
  33103. * cssfilter
  33104. *
  33105. * @author 老雷<leizongmin@gmail.com>
  33106. */
  33107. var DEFAULT = require('./default');
  33108. var FilterCSS = require('./css');
  33109. /**
  33110. * XSS过滤
  33111. *
  33112. * @param {String} css 要过滤的CSS代码
  33113. * @param {Object} options 选项:whiteList, onAttr, onIgnoreAttr
  33114. * @return {String}
  33115. */
  33116. function filterCSS (html, options) {
  33117. var xss = new FilterCSS(options);
  33118. return xss.process(html);
  33119. }
  33120. // 输出
  33121. exports = module.exports = filterCSS;
  33122. exports.FilterCSS = FilterCSS;
  33123. for (var i in DEFAULT) exports[i] = DEFAULT[i];
  33124. // 在浏览器端使用
  33125. if (typeof window !== 'undefined') {
  33126. window.filterCSS = module.exports;
  33127. }
  33128. },{"./css":6,"./default":7}],9:[function(require,module,exports){
  33129. /**
  33130. * cssfilter
  33131. *
  33132. * @author 老雷<leizongmin@gmail.com>
  33133. */
  33134. var _ = require('./util');
  33135. /**
  33136. * 解析style
  33137. *
  33138. * @param {String} css
  33139. * @param {Function} onAttr 处理属性的函数
  33140. * 参数格式: function (sourcePosition, position, name, value, source)
  33141. * @return {String}
  33142. */
  33143. function parseStyle (css, onAttr) {
  33144. css = _.trimRight(css);
  33145. if (css[css.length - 1] !== ';') css += ';';
  33146. var cssLength = css.length;
  33147. var isParenthesisOpen = false;
  33148. var lastPos = 0;
  33149. var i = 0;
  33150. var retCSS = '';
  33151. function addNewAttr () {
  33152. // 如果没有正常的闭合圆括号,则直接忽略当前属性
  33153. if (!isParenthesisOpen) {
  33154. var source = _.trim(css.slice(lastPos, i));
  33155. var j = source.indexOf(':');
  33156. if (j !== -1) {
  33157. var name = _.trim(source.slice(0, j));
  33158. var value = _.trim(source.slice(j + 1));
  33159. // 必须有属性名称
  33160. if (name) {
  33161. var ret = onAttr(lastPos, retCSS.length, name, value, source);
  33162. if (ret) retCSS += ret + '; ';
  33163. }
  33164. }
  33165. }
  33166. lastPos = i + 1;
  33167. }
  33168. for (; i < cssLength; i++) {
  33169. var c = css[i];
  33170. if (c === '/' && css[i + 1] === '*') {
  33171. // 备注开始
  33172. var j = css.indexOf('*/', i + 2);
  33173. // 如果没有正常的备注结束,则后面的部分全部跳过
  33174. if (j === -1) break;
  33175. // 直接将当前位置调到备注结尾,并且初始化状态
  33176. i = j + 1;
  33177. lastPos = i + 1;
  33178. isParenthesisOpen = false;
  33179. } else if (c === '(') {
  33180. isParenthesisOpen = true;
  33181. } else if (c === ')') {
  33182. isParenthesisOpen = false;
  33183. } else if (c === ';') {
  33184. if (isParenthesisOpen) {
  33185. // 在圆括号里面,忽略
  33186. } else {
  33187. addNewAttr();
  33188. }
  33189. } else if (c === '\n') {
  33190. addNewAttr();
  33191. }
  33192. }
  33193. return _.trim(retCSS);
  33194. }
  33195. module.exports = parseStyle;
  33196. },{"./util":10}],10:[function(require,module,exports){
  33197. module.exports = {
  33198. indexOf: function (arr, item) {
  33199. var i, j;
  33200. if (Array.prototype.indexOf) {
  33201. return arr.indexOf(item);
  33202. }
  33203. for (i = 0, j = arr.length; i < j; i++) {
  33204. if (arr[i] === item) {
  33205. return i;
  33206. }
  33207. }
  33208. return -1;
  33209. },
  33210. forEach: function (arr, fn, scope) {
  33211. var i, j;
  33212. if (Array.prototype.forEach) {
  33213. return arr.forEach(fn, scope);
  33214. }
  33215. for (i = 0, j = arr.length; i < j; i++) {
  33216. fn.call(scope, arr[i], i, arr);
  33217. }
  33218. },
  33219. trim: function (str) {
  33220. if (String.prototype.trim) {
  33221. return str.trim();
  33222. }
  33223. return str.replace(/(^\s*)|(\s*$)/g, '');
  33224. },
  33225. trimRight: function (str) {
  33226. if (String.prototype.trimRight) {
  33227. return str.trimRight();
  33228. }
  33229. return str.replace(/(\s*$)/g, '');
  33230. }
  33231. };
  33232. },{}]},{},[2]);
  33233. /*** EXPORTS FROM exports-loader ***/
  33234. exports["filterXSS"] = (filterXSS);
  33235. exports["filterCSS"] = (filterCSS);
  33236. /***/ }),
  33237. /***/ "./src/backbone.noconflict.js":
  33238. /*!************************************!*\
  33239. !*** ./src/backbone.noconflict.js ***!
  33240. \************************************/
  33241. /*! no static exports found */
  33242. /***/ (function(module, exports, __webpack_require__) {
  33243. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*global define */
  33244. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (Backbone) {
  33245. return Backbone.noConflict();
  33246. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  33247. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33248. /***/ }),
  33249. /***/ "./src/converse-autocomplete.js":
  33250. /*!**************************************!*\
  33251. !*** ./src/converse-autocomplete.js ***!
  33252. \**************************************/
  33253. /*! no static exports found */
  33254. /***/ (function(module, exports, __webpack_require__) {
  33255. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  33256. // http://conversejs.org
  33257. //
  33258. // Copyright (c) 2013-2018, the Converse.js developers
  33259. // Licensed under the Mozilla Public License (MPLv2)
  33260. // This plugin started as a fork of Lea Verou's Awesomplete
  33261. // https://leaverou.github.io/awesomplete/
  33262. (function (root, factory) {
  33263. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  33264. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33265. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33266. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33267. })(this, function (converse) {
  33268. const _converse$env = converse.env,
  33269. _ = _converse$env._,
  33270. Backbone = _converse$env.Backbone,
  33271. u = converse.env.utils;
  33272. converse.plugins.add("converse-autocomplete", {
  33273. initialize() {
  33274. const _converse = this._converse;
  33275. _converse.FILTER_CONTAINS = function (text, input) {
  33276. return RegExp(helpers.regExpEscape(input.trim()), "i").test(text);
  33277. };
  33278. _converse.FILTER_STARTSWITH = function (text, input) {
  33279. return RegExp("^" + helpers.regExpEscape(input.trim()), "i").test(text);
  33280. };
  33281. const SORT_BYLENGTH = function SORT_BYLENGTH(a, b) {
  33282. if (a.length !== b.length) {
  33283. return a.length - b.length;
  33284. }
  33285. return a < b ? -1 : 1;
  33286. };
  33287. const ITEM = (text, input) => {
  33288. input = input.trim();
  33289. const element = document.createElement("li");
  33290. element.setAttribute("aria-selected", "false");
  33291. const regex = new RegExp("(" + input + ")", "ig");
  33292. const parts = input ? text.split(regex) : [text];
  33293. parts.forEach(txt => {
  33294. if (input && txt.match(regex)) {
  33295. const match = document.createElement("mark");
  33296. match.textContent = txt;
  33297. element.appendChild(match);
  33298. } else {
  33299. element.appendChild(document.createTextNode(txt));
  33300. }
  33301. });
  33302. return element;
  33303. };
  33304. class AutoComplete {
  33305. constructor(el, config = {}) {
  33306. this.is_opened = false;
  33307. if (u.hasClass('.suggestion-box', el)) {
  33308. this.container = el;
  33309. } else {
  33310. this.container = el.querySelector('.suggestion-box');
  33311. }
  33312. this.input = this.container.querySelector('.suggestion-box__input');
  33313. this.input.setAttribute("autocomplete", "off");
  33314. this.input.setAttribute("aria-autocomplete", "list");
  33315. this.ul = this.container.querySelector('.suggestion-box__results');
  33316. this.status = this.container.querySelector('.suggestion-box__additions');
  33317. _.assignIn(this, {
  33318. 'match_current_word': false,
  33319. // Match only the current word, otherwise all input is matched
  33320. 'match_on_tab': false,
  33321. // Whether matching should only start when tab's pressed
  33322. 'trigger_on_at': false,
  33323. // Whether @ should trigger autocomplete
  33324. 'min_chars': 2,
  33325. 'max_items': 10,
  33326. 'auto_evaluate': true,
  33327. 'auto_first': false,
  33328. 'data': _.identity,
  33329. 'filter': _converse.FILTER_CONTAINS,
  33330. 'sort': config.sort === false ? false : SORT_BYLENGTH,
  33331. 'item': ITEM
  33332. }, config);
  33333. this.index = -1;
  33334. this.bindEvents();
  33335. if (this.input.hasAttribute("list")) {
  33336. this.list = "#" + this.input.getAttribute("list");
  33337. this.input.removeAttribute("list");
  33338. } else {
  33339. this.list = this.input.getAttribute("data-list") || config.list || [];
  33340. }
  33341. }
  33342. bindEvents() {
  33343. // Bind events
  33344. const input = {
  33345. "blur": () => this.close({
  33346. 'reason': 'blur'
  33347. })
  33348. };
  33349. if (this.auto_evaluate) {
  33350. input["input"] = () => this.evaluate();
  33351. }
  33352. this._events = {
  33353. 'input': input,
  33354. 'form': {
  33355. "submit": () => this.close({
  33356. 'reason': 'submit'
  33357. })
  33358. },
  33359. 'ul': {
  33360. "mousedown": ev => this.onMouseDown(ev),
  33361. "mouseover": ev => this.onMouseOver(ev)
  33362. }
  33363. };
  33364. helpers.bind(this.input, this._events.input);
  33365. helpers.bind(this.input.form, this._events.form);
  33366. helpers.bind(this.ul, this._events.ul);
  33367. }
  33368. set list(list) {
  33369. if (Array.isArray(list) || typeof list === "function") {
  33370. this._list = list;
  33371. } else if (typeof list === "string" && _.includes(list, ",")) {
  33372. this._list = list.split(/\s*,\s*/);
  33373. } else {
  33374. // Element or CSS selector
  33375. list = helpers.getElement(list);
  33376. if (list && list.children) {
  33377. const items = [];
  33378. slice.apply(list.children).forEach(function (el) {
  33379. if (!el.disabled) {
  33380. const text = el.textContent.trim(),
  33381. value = el.value || text,
  33382. label = el.label || text;
  33383. if (value !== "") {
  33384. items.push({
  33385. label: label,
  33386. value: value
  33387. });
  33388. }
  33389. }
  33390. });
  33391. this._list = items;
  33392. }
  33393. }
  33394. if (document.activeElement === this.input) {
  33395. this.evaluate();
  33396. }
  33397. }
  33398. get selected() {
  33399. return this.index > -1;
  33400. }
  33401. get opened() {
  33402. return this.is_opened;
  33403. }
  33404. close(o) {
  33405. if (!this.opened) {
  33406. return;
  33407. }
  33408. this.ul.setAttribute("hidden", "");
  33409. this.is_opened = false;
  33410. this.index = -1;
  33411. this.trigger("suggestion-box-close", o || {});
  33412. }
  33413. insertValue(suggestion) {
  33414. let value;
  33415. if (this.match_current_word) {
  33416. u.replaceCurrentWord(this.input, suggestion.value);
  33417. } else {
  33418. this.input.value = suggestion.value;
  33419. }
  33420. }
  33421. open() {
  33422. this.ul.removeAttribute("hidden");
  33423. this.is_opened = true;
  33424. if (this.auto_first && this.index === -1) {
  33425. this.goto(0);
  33426. }
  33427. this.trigger("suggestion-box-open");
  33428. }
  33429. destroy() {
  33430. //remove events from the input and its form
  33431. helpers.unbind(this.input, this._events.input);
  33432. helpers.unbind(this.input.form, this._events.form); //move the input out of the suggestion-box container and remove the container and its children
  33433. const parentNode = this.container.parentNode;
  33434. parentNode.insertBefore(this.input, this.container);
  33435. parentNode.removeChild(this.container); //remove autocomplete and aria-autocomplete attributes
  33436. this.input.removeAttribute("autocomplete");
  33437. this.input.removeAttribute("aria-autocomplete");
  33438. }
  33439. next() {
  33440. const count = this.ul.children.length;
  33441. this.goto(this.index < count - 1 ? this.index + 1 : count ? 0 : -1);
  33442. }
  33443. previous() {
  33444. const count = this.ul.children.length,
  33445. pos = this.index - 1;
  33446. this.goto(this.selected && pos !== -1 ? pos : count - 1);
  33447. }
  33448. goto(i) {
  33449. // Should not be used directly, highlights specific item without any checks!
  33450. const list = this.ul.children;
  33451. if (this.selected) {
  33452. list[this.index].setAttribute("aria-selected", "false");
  33453. }
  33454. this.index = i;
  33455. if (i > -1 && list.length > 0) {
  33456. list[i].setAttribute("aria-selected", "true");
  33457. list[i].focus();
  33458. this.status.textContent = list[i].textContent; // scroll to highlighted element in case parent's height is fixed
  33459. this.ul.scrollTop = list[i].offsetTop - this.ul.clientHeight + list[i].clientHeight;
  33460. this.trigger("suggestion-box-highlight", {
  33461. 'text': this.suggestions[this.index]
  33462. });
  33463. }
  33464. }
  33465. select(selected, origin) {
  33466. if (selected) {
  33467. this.index = u.siblingIndex(selected);
  33468. } else {
  33469. selected = this.ul.children[this.index];
  33470. }
  33471. if (selected) {
  33472. const suggestion = this.suggestions[this.index];
  33473. this.insertValue(suggestion);
  33474. this.close({
  33475. 'reason': 'select'
  33476. });
  33477. this.auto_completing = false;
  33478. this.trigger("suggestion-box-selectcomplete", {
  33479. 'text': suggestion
  33480. });
  33481. }
  33482. }
  33483. onMouseOver(ev) {
  33484. const li = u.ancestor(ev.target, 'li');
  33485. if (li) {
  33486. this.goto(Array.prototype.slice.call(this.ul.children).indexOf(li));
  33487. }
  33488. }
  33489. onMouseDown(ev) {
  33490. if (ev.button !== 0) {
  33491. return; // Only select on left click
  33492. }
  33493. const li = u.ancestor(ev.target, 'li');
  33494. if (li) {
  33495. ev.preventDefault();
  33496. this.select(li, ev.target);
  33497. }
  33498. }
  33499. keyPressed(ev) {
  33500. if (this.opened) {
  33501. if (_.includes([_converse.keycodes.ENTER, _converse.keycodes.TAB], ev.keyCode) && this.selected) {
  33502. ev.preventDefault();
  33503. ev.stopPropagation();
  33504. this.select();
  33505. return true;
  33506. } else if (ev.keyCode === _converse.keycodes.ESCAPE) {
  33507. this.close({
  33508. 'reason': 'esc'
  33509. });
  33510. return true;
  33511. } else if (_.includes([_converse.keycodes.UP_ARROW, _converse.keycodes.DOWN_ARROW], ev.keyCode)) {
  33512. ev.preventDefault();
  33513. ev.stopPropagation();
  33514. this[ev.keyCode === _converse.keycodes.UP_ARROW ? "previous" : "next"]();
  33515. return true;
  33516. }
  33517. }
  33518. if (_.includes([_converse.keycodes.SHIFT, _converse.keycodes.META, _converse.keycodes.META_RIGHT, _converse.keycodes.ESCAPE, _converse.keycodes.ALT], ev.keyCode)) {
  33519. return;
  33520. }
  33521. if (this.match_on_tab && ev.keyCode === _converse.keycodes.TAB) {
  33522. ev.preventDefault();
  33523. this.auto_completing = true;
  33524. } else if (this.trigger_on_at && ev.keyCode === _converse.keycodes.AT) {
  33525. this.auto_completing = true;
  33526. }
  33527. }
  33528. evaluate(ev) {
  33529. const arrow_pressed = ev.keyCode === _converse.keycodes.UP_ARROW || ev.keyCode === _converse.keycodes.DOWN_ARROW;
  33530. if (!this.auto_completing || this.selected && arrow_pressed) {
  33531. return;
  33532. }
  33533. const list = typeof this._list === "function" ? this._list() : this._list;
  33534. if (list.length === 0) {
  33535. return;
  33536. }
  33537. let value = this.match_current_word ? u.getCurrentWord(this.input) : this.input.value;
  33538. let ignore_min_chars = false;
  33539. if (this.trigger_on_at && value.startsWith('@')) {
  33540. ignore_min_chars = true;
  33541. value = value.slice('1');
  33542. }
  33543. if (value.length >= this.min_chars || ignore_min_chars) {
  33544. this.index = -1; // Populate list with options that match
  33545. this.ul.innerHTML = "";
  33546. this.suggestions = list.map(item => new Suggestion(this.data(item, value))).filter(item => this.filter(item, value));
  33547. if (this.sort !== false) {
  33548. this.suggestions = this.suggestions.sort(this.sort);
  33549. }
  33550. this.suggestions = this.suggestions.slice(0, this.max_items);
  33551. this.suggestions.forEach(text => this.ul.appendChild(this.item(text, value)));
  33552. if (this.ul.children.length === 0) {
  33553. this.close({
  33554. 'reason': 'nomatches'
  33555. });
  33556. } else {
  33557. this.open();
  33558. }
  33559. } else {
  33560. this.close({
  33561. 'reason': 'nomatches'
  33562. });
  33563. this.auto_completing = false;
  33564. }
  33565. }
  33566. } // Make it an event emitter
  33567. _.extend(AutoComplete.prototype, Backbone.Events); // Private functions
  33568. function Suggestion(data) {
  33569. const o = Array.isArray(data) ? {
  33570. label: data[0],
  33571. value: data[1]
  33572. } : typeof data === "object" && "label" in data && "value" in data ? data : {
  33573. label: data,
  33574. value: data
  33575. };
  33576. this.label = o.label || o.value;
  33577. this.value = o.value;
  33578. }
  33579. Object.defineProperty(Suggestion.prototype = Object.create(String.prototype), "length", {
  33580. get: function get() {
  33581. return this.label.length;
  33582. }
  33583. });
  33584. Suggestion.prototype.toString = Suggestion.prototype.valueOf = function () {
  33585. return "" + this.label;
  33586. }; // Helpers
  33587. var slice = Array.prototype.slice;
  33588. const helpers = {
  33589. getElement(expr, el) {
  33590. return typeof expr === "string" ? (el || document).querySelector(expr) : expr || null;
  33591. },
  33592. bind(element, o) {
  33593. if (element) {
  33594. for (var event in o) {
  33595. if (!Object.prototype.hasOwnProperty.call(o, event)) {
  33596. continue;
  33597. }
  33598. const callback = o[event];
  33599. event.split(/\s+/).forEach(event => element.addEventListener(event, callback));
  33600. }
  33601. }
  33602. },
  33603. unbind(element, o) {
  33604. if (element) {
  33605. for (var event in o) {
  33606. if (!Object.prototype.hasOwnProperty.call(o, event)) {
  33607. continue;
  33608. }
  33609. const callback = o[event];
  33610. event.split(/\s+/).forEach(event => element.removeEventListener(event, callback));
  33611. }
  33612. }
  33613. },
  33614. regExpEscape(s) {
  33615. return s.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&");
  33616. }
  33617. };
  33618. _converse.AutoComplete = AutoComplete;
  33619. }
  33620. });
  33621. });
  33622. /***/ }),
  33623. /***/ "./src/converse-bookmarks.js":
  33624. /*!***********************************!*\
  33625. !*** ./src/converse-bookmarks.js ***!
  33626. \***********************************/
  33627. /*! no static exports found */
  33628. /***/ (function(module, exports, __webpack_require__) {
  33629. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  33630. // http://conversejs.org
  33631. //
  33632. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  33633. // Licensed under the Mozilla Public License (MPLv2)
  33634. //
  33635. /*global define */
  33636. /* This is a Converse.js plugin which add support for bookmarks specified
  33637. * in XEP-0048.
  33638. */
  33639. (function (root, factory) {
  33640. !(__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),
  33641. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33642. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33643. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33644. })(this, function (converse, muc, tpl_chatroom_bookmark_form, tpl_chatroom_bookmark_toggle, tpl_bookmark, tpl_bookmarks_list) {
  33645. const _converse$env = converse.env,
  33646. Backbone = _converse$env.Backbone,
  33647. Promise = _converse$env.Promise,
  33648. Strophe = _converse$env.Strophe,
  33649. $iq = _converse$env.$iq,
  33650. b64_sha1 = _converse$env.b64_sha1,
  33651. sizzle = _converse$env.sizzle,
  33652. _ = _converse$env._;
  33653. const u = converse.env.utils;
  33654. converse.plugins.add('converse-bookmarks', {
  33655. /* Plugin dependencies are other plugins which might be
  33656. * overridden or relied upon, and therefore need to be loaded before
  33657. * this plugin.
  33658. *
  33659. * If the setting "strict_plugin_dependencies" is set to true,
  33660. * an error will be raised if the plugin is not found. By default it's
  33661. * false, which means these plugins are only loaded opportunistically.
  33662. *
  33663. * NB: These plugins need to have already been loaded via require.js.
  33664. */
  33665. dependencies: ["converse-chatboxes", "converse-muc", "converse-muc-views"],
  33666. overrides: {
  33667. // Overrides mentioned here will be picked up by converse.js's
  33668. // plugin architecture they will replace existing methods on the
  33669. // relevant objects or classes.
  33670. //
  33671. // New functions which don't exist yet can also be added.
  33672. ChatRoomView: {
  33673. events: {
  33674. 'click .toggle-bookmark': 'toggleBookmark'
  33675. },
  33676. initialize() {
  33677. this.__super__.initialize.apply(this, arguments);
  33678. this.model.on('change:bookmarked', this.onBookmarked, this);
  33679. this.setBookmarkState();
  33680. },
  33681. renderBookmarkToggle() {
  33682. if (this.el.querySelector('.chat-head .toggle-bookmark')) {
  33683. return;
  33684. }
  33685. const _converse = this.__super__._converse,
  33686. __ = _converse.__;
  33687. const bookmark_button = tpl_chatroom_bookmark_toggle(_.assignIn(this.model.toJSON(), {
  33688. info_toggle_bookmark: __('Bookmark this groupchat'),
  33689. bookmarked: this.model.get('bookmarked')
  33690. }));
  33691. const close_button = this.el.querySelector('.close-chatbox-button');
  33692. close_button.insertAdjacentHTML('afterend', bookmark_button);
  33693. },
  33694. renderHeading() {
  33695. this.__super__.renderHeading.apply(this, arguments);
  33696. const _converse = this.__super__._converse;
  33697. if (_converse.allow_bookmarks) {
  33698. _converse.checkBookmarksSupport().then(supported => {
  33699. if (supported) {
  33700. this.renderBookmarkToggle();
  33701. }
  33702. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33703. }
  33704. },
  33705. checkForReservedNick() {
  33706. /* Check if the user has a bookmark with a saved nickanme
  33707. * for this groupchat, and if so use it.
  33708. * Otherwise delegate to the super method.
  33709. */
  33710. const _converse = this.__super__._converse;
  33711. if (_.isUndefined(_converse.bookmarks) || !_converse.allow_bookmarks) {
  33712. return this.__super__.checkForReservedNick.apply(this, arguments);
  33713. }
  33714. const model = _converse.bookmarks.findWhere({
  33715. 'jid': this.model.get('jid')
  33716. });
  33717. if (!_.isUndefined(model) && model.get('nick')) {
  33718. this.join(model.get('nick'));
  33719. } else {
  33720. return this.__super__.checkForReservedNick.apply(this, arguments);
  33721. }
  33722. },
  33723. onBookmarked() {
  33724. const icon = this.el.querySelector('.toggle-bookmark');
  33725. if (_.isNull(icon)) {
  33726. return;
  33727. }
  33728. if (this.model.get('bookmarked')) {
  33729. icon.classList.add('button-on');
  33730. } else {
  33731. icon.classList.remove('button-on');
  33732. }
  33733. },
  33734. setBookmarkState() {
  33735. /* Set whether the groupchat is bookmarked or not.
  33736. */
  33737. const _converse = this.__super__._converse;
  33738. if (!_.isUndefined(_converse.bookmarks)) {
  33739. const models = _converse.bookmarks.where({
  33740. 'jid': this.model.get('jid')
  33741. });
  33742. if (!models.length) {
  33743. this.model.save('bookmarked', false);
  33744. } else {
  33745. this.model.save('bookmarked', true);
  33746. }
  33747. }
  33748. },
  33749. renderBookmarkForm() {
  33750. const _converse = this.__super__._converse,
  33751. __ = _converse.__,
  33752. body = this.el.querySelector('.chatroom-body');
  33753. _.each(body.children, child => child.classList.add('hidden'));
  33754. _.each(body.querySelectorAll('.chatroom-form-container'), u.removeElement);
  33755. body.insertAdjacentHTML('beforeend', tpl_chatroom_bookmark_form({
  33756. 'default_nick': this.model.get('nick'),
  33757. 'heading': __('Bookmark this groupchat'),
  33758. 'label_autojoin': __('Would you like this groupchat to be automatically joined upon startup?'),
  33759. 'label_cancel': __('Cancel'),
  33760. 'label_name': __('The name for this bookmark:'),
  33761. 'label_nick': __('What should your nickname for this groupchat be?'),
  33762. 'label_submit': __('Save'),
  33763. 'name': this.model.get('name')
  33764. }));
  33765. const form = body.querySelector('form.chatroom-form');
  33766. form.addEventListener('submit', ev => this.onBookmarkFormSubmitted(ev));
  33767. form.querySelector('.button-cancel').addEventListener('click', () => this.closeForm());
  33768. },
  33769. onBookmarkFormSubmitted(ev) {
  33770. ev.preventDefault();
  33771. const _converse = this.__super__._converse;
  33772. _converse.bookmarks.createBookmark({
  33773. 'jid': this.model.get('jid'),
  33774. 'autojoin': _.get(ev.target.querySelector('input[name="autojoin"]'), 'checked') || false,
  33775. 'name': _.get(ev.target.querySelector('input[name=name]'), 'value'),
  33776. 'nick': _.get(ev.target.querySelector('input[name=nick]'), 'value')
  33777. });
  33778. u.removeElement(this.el.querySelector('div.chatroom-form-container'));
  33779. this.renderAfterTransition();
  33780. },
  33781. toggleBookmark(ev) {
  33782. if (ev) {
  33783. ev.preventDefault();
  33784. ev.stopPropagation();
  33785. }
  33786. const _converse = this.__super__._converse;
  33787. const models = _converse.bookmarks.where({
  33788. 'jid': this.model.get('jid')
  33789. });
  33790. if (!models.length) {
  33791. this.renderBookmarkForm();
  33792. } else {
  33793. _.forEach(models, function (model) {
  33794. model.destroy();
  33795. });
  33796. this.el.querySelector('.toggle-bookmark').classList.remove('button-on');
  33797. }
  33798. }
  33799. }
  33800. },
  33801. initialize() {
  33802. /* The initialize function gets called as soon as the plugin is
  33803. * loaded by converse.js's plugin machinery.
  33804. */
  33805. const _converse = this._converse,
  33806. __ = _converse.__; // Configuration values for this plugin
  33807. // ====================================
  33808. // Refer to docs/source/configuration.rst for explanations of these
  33809. // configuration settings.
  33810. _converse.api.settings.update({
  33811. allow_bookmarks: true,
  33812. allow_public_bookmarks: false,
  33813. hide_open_bookmarks: true
  33814. }); // Promises exposed by this plugin
  33815. _converse.api.promises.add('bookmarksInitialized'); // Pure functions on the _converse object
  33816. _.extend(_converse, {
  33817. removeBookmarkViaEvent(ev) {
  33818. /* Remove a bookmark as determined by the passed in
  33819. * event.
  33820. */
  33821. ev.preventDefault();
  33822. const name = ev.target.getAttribute('data-bookmark-name');
  33823. const jid = ev.target.getAttribute('data-room-jid');
  33824. if (confirm(__("Are you sure you want to remove the bookmark \"%1$s\"?", name))) {
  33825. _.invokeMap(_converse.bookmarks.where({
  33826. 'jid': jid
  33827. }), Backbone.Model.prototype.destroy);
  33828. }
  33829. },
  33830. addBookmarkViaEvent(ev) {
  33831. /* Add a bookmark as determined by the passed in
  33832. * event.
  33833. */
  33834. ev.preventDefault();
  33835. const jid = ev.target.getAttribute('data-room-jid');
  33836. const chatroom = _converse.api.rooms.open(jid, {
  33837. 'bring_to_foreground': true
  33838. });
  33839. _converse.chatboxviews.get(jid).renderBookmarkForm();
  33840. }
  33841. });
  33842. _converse.Bookmark = Backbone.Model;
  33843. _converse.Bookmarks = Backbone.Collection.extend({
  33844. model: _converse.Bookmark,
  33845. comparator: item => item.get('name').toLowerCase(),
  33846. initialize() {
  33847. this.on('add', _.flow(this.openBookmarkedRoom, this.markRoomAsBookmarked));
  33848. this.on('remove', this.markRoomAsUnbookmarked, this);
  33849. this.on('remove', this.sendBookmarkStanza, this);
  33850. const storage = _converse.config.get('storage'),
  33851. cache_key = `converse.room-bookmarks${_converse.bare_jid}`;
  33852. this.fetched_flag = b64_sha1(cache_key + 'fetched');
  33853. this.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1(cache_key));
  33854. },
  33855. openBookmarkedRoom(bookmark) {
  33856. if (bookmark.get('autojoin')) {
  33857. const groupchat = _converse.api.rooms.create(bookmark.get('jid'), bookmark.get('nick'));
  33858. if (!groupchat.get('hidden')) {
  33859. groupchat.trigger('show');
  33860. }
  33861. }
  33862. return bookmark;
  33863. },
  33864. fetchBookmarks() {
  33865. const deferred = u.getResolveablePromise();
  33866. if (this.browserStorage.records.length > 0) {
  33867. this.fetch({
  33868. 'success': _.bind(this.onCachedBookmarksFetched, this, deferred),
  33869. 'error': _.bind(this.onCachedBookmarksFetched, this, deferred)
  33870. });
  33871. } else if (!window.sessionStorage.getItem(this.fetched_flag)) {
  33872. // There aren't any cached bookmarks and the
  33873. // `fetched_flag` is off, so we query the XMPP server.
  33874. // If nothing is returned from the XMPP server, we set
  33875. // the `fetched_flag` to avoid calling the server again.
  33876. this.fetchBookmarksFromServer(deferred);
  33877. } else {
  33878. deferred.resolve();
  33879. }
  33880. return deferred;
  33881. },
  33882. onCachedBookmarksFetched(deferred) {
  33883. return deferred.resolve();
  33884. },
  33885. createBookmark(options) {
  33886. this.create(options);
  33887. this.sendBookmarkStanza().catch(iq => this.onBookmarkError(iq, options));
  33888. },
  33889. sendBookmarkStanza() {
  33890. const stanza = $iq({
  33891. 'type': 'set',
  33892. 'from': _converse.connection.jid
  33893. }).c('pubsub', {
  33894. 'xmlns': Strophe.NS.PUBSUB
  33895. }).c('publish', {
  33896. 'node': 'storage:bookmarks'
  33897. }).c('item', {
  33898. 'id': 'current'
  33899. }).c('storage', {
  33900. 'xmlns': 'storage:bookmarks'
  33901. });
  33902. this.each(model => {
  33903. stanza.c('conference', {
  33904. 'name': model.get('name'),
  33905. 'autojoin': model.get('autojoin'),
  33906. 'jid': model.get('jid')
  33907. }).c('nick').t(model.get('nick')).up().up();
  33908. });
  33909. stanza.up().up().up();
  33910. stanza.c('publish-options').c('x', {
  33911. 'xmlns': Strophe.NS.XFORM,
  33912. 'type': 'submit'
  33913. }).c('field', {
  33914. 'var': 'FORM_TYPE',
  33915. 'type': 'hidden'
  33916. }).c('value').t('http://jabber.org/protocol/pubsub#publish-options').up().up().c('field', {
  33917. 'var': 'pubsub#persist_items'
  33918. }).c('value').t('true').up().up().c('field', {
  33919. 'var': 'pubsub#access_model'
  33920. }).c('value').t('whitelist');
  33921. return _converse.api.sendIQ(stanza);
  33922. },
  33923. onBookmarkError(iq, options) {
  33924. _converse.log("Error while trying to add bookmark", Strophe.LogLevel.ERROR);
  33925. _converse.log(iq);
  33926. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__("Sorry, something went wrong while trying to save your bookmark.")]);
  33927. this.findWhere({
  33928. 'jid': options.jid
  33929. }).destroy();
  33930. },
  33931. fetchBookmarksFromServer(deferred) {
  33932. const stanza = $iq({
  33933. 'from': _converse.connection.jid,
  33934. 'type': 'get'
  33935. }).c('pubsub', {
  33936. 'xmlns': Strophe.NS.PUBSUB
  33937. }).c('items', {
  33938. 'node': 'storage:bookmarks'
  33939. });
  33940. _converse.api.sendIQ(stanza).then(iq => this.onBookmarksReceived(deferred, iq)).catch(iq => this.onBookmarksReceivedError(deferred, iq));
  33941. },
  33942. markRoomAsBookmarked(bookmark) {
  33943. const groupchat = _converse.chatboxes.get(bookmark.get('jid'));
  33944. if (!_.isUndefined(groupchat)) {
  33945. groupchat.save('bookmarked', true);
  33946. }
  33947. },
  33948. markRoomAsUnbookmarked(bookmark) {
  33949. const groupchat = _converse.chatboxes.get(bookmark.get('jid'));
  33950. if (!_.isUndefined(groupchat)) {
  33951. groupchat.save('bookmarked', false);
  33952. }
  33953. },
  33954. createBookmarksFromStanza(stanza) {
  33955. const bookmarks = sizzle('items[node="storage:bookmarks"] ' + 'item#current ' + 'storage[xmlns="storage:bookmarks"] ' + 'conference', stanza);
  33956. _.forEach(bookmarks, bookmark => {
  33957. const jid = bookmark.getAttribute('jid');
  33958. this.create({
  33959. 'jid': jid,
  33960. 'name': bookmark.getAttribute('name') || jid,
  33961. 'autojoin': bookmark.getAttribute('autojoin') === 'true',
  33962. 'nick': _.get(bookmark.querySelector('nick'), 'textContent')
  33963. });
  33964. });
  33965. },
  33966. onBookmarksReceived(deferred, iq) {
  33967. this.createBookmarksFromStanza(iq);
  33968. if (!_.isUndefined(deferred)) {
  33969. return deferred.resolve();
  33970. }
  33971. },
  33972. onBookmarksReceivedError(deferred, iq) {
  33973. window.sessionStorage.setItem(this.fetched_flag, true);
  33974. _converse.log('Error while fetching bookmarks', Strophe.LogLevel.WARN);
  33975. _converse.log(iq.outerHTML, Strophe.LogLevel.DEBUG);
  33976. if (!_.isNil(deferred)) {
  33977. if (iq.querySelector('error[type="cancel"] item-not-found')) {
  33978. // Not an exception, the user simply doesn't have
  33979. // any bookmarks.
  33980. return deferred.resolve();
  33981. } else {
  33982. return deferred.reject(new Error("Could not fetch bookmarks"));
  33983. }
  33984. }
  33985. }
  33986. });
  33987. _converse.BookmarksList = Backbone.Model.extend({
  33988. defaults: {
  33989. "toggle-state": _converse.OPENED
  33990. }
  33991. });
  33992. _converse.BookmarkView = Backbone.VDOMView.extend({
  33993. toHTML() {
  33994. return tpl_bookmark({
  33995. 'hidden': _converse.hide_open_bookmarks && _converse.chatboxes.where({
  33996. 'jid': this.model.get('jid')
  33997. }).length,
  33998. 'bookmarked': true,
  33999. 'info_leave_room': __('Leave this groupchat'),
  34000. 'info_remove': __('Remove this bookmark'),
  34001. 'info_remove_bookmark': __('Unbookmark this groupchat'),
  34002. 'info_title': __('Show more information on this groupchat'),
  34003. 'jid': this.model.get('jid'),
  34004. 'name': Strophe.xmlunescape(this.model.get('name')),
  34005. 'open_title': __('Click to open this groupchat')
  34006. });
  34007. }
  34008. });
  34009. _converse.BookmarksView = Backbone.OrderedListView.extend({
  34010. tagName: 'div',
  34011. className: 'bookmarks-list list-container rooms-list-container',
  34012. events: {
  34013. 'click .add-bookmark': 'addBookmark',
  34014. 'click .bookmarks-toggle': 'toggleBookmarksList',
  34015. 'click .remove-bookmark': 'removeBookmark',
  34016. 'click .open-room': 'openRoom'
  34017. },
  34018. listSelector: '.rooms-list',
  34019. ItemView: _converse.BookmarkView,
  34020. subviewIndex: 'jid',
  34021. initialize() {
  34022. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  34023. this.model.on('add', this.showOrHide, this);
  34024. this.model.on('remove', this.showOrHide, this);
  34025. _converse.chatboxes.on('add', this.renderBookmarkListElement, this);
  34026. _converse.chatboxes.on('remove', this.renderBookmarkListElement, this);
  34027. const storage = _converse.config.get('storage'),
  34028. id = b64_sha1(`converse.room-bookmarks${_converse.bare_jid}-list-model`);
  34029. this.list_model = new _converse.BookmarksList({
  34030. 'id': id
  34031. });
  34032. this.list_model.browserStorage = new Backbone.BrowserStorage[storage](id);
  34033. this.list_model.fetch();
  34034. this.render();
  34035. this.sortAndPositionAllItems();
  34036. },
  34037. render() {
  34038. this.el.innerHTML = tpl_bookmarks_list({
  34039. 'toggle_state': this.list_model.get('toggle-state'),
  34040. 'desc_bookmarks': __('Click to toggle the bookmarks list'),
  34041. 'label_bookmarks': __('Bookmarks'),
  34042. '_converse': _converse
  34043. });
  34044. this.showOrHide();
  34045. this.insertIntoControlBox();
  34046. return this;
  34047. },
  34048. insertIntoControlBox() {
  34049. const controlboxview = _converse.chatboxviews.get('controlbox');
  34050. if (!_.isUndefined(controlboxview) && !u.rootContains(_converse.root, this.el)) {
  34051. const el = controlboxview.el.querySelector('.bookmarks-list');
  34052. if (!_.isNull(el)) {
  34053. el.parentNode.replaceChild(this.el, el);
  34054. }
  34055. }
  34056. },
  34057. openRoom(ev) {
  34058. ev.preventDefault();
  34059. const name = ev.target.textContent;
  34060. const jid = ev.target.getAttribute('data-room-jid');
  34061. const data = {
  34062. 'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
  34063. };
  34064. _converse.api.rooms.open(jid, data);
  34065. },
  34066. removeBookmark: _converse.removeBookmarkViaEvent,
  34067. addBookmark: _converse.addBookmarkViaEvent,
  34068. renderBookmarkListElement(chatbox) {
  34069. const bookmarkview = this.get(chatbox.get('jid'));
  34070. if (_.isNil(bookmarkview)) {
  34071. // A chat box has been closed, but we don't have a
  34072. // bookmark for it, so nothing further to do here.
  34073. return;
  34074. }
  34075. bookmarkview.render();
  34076. this.showOrHide();
  34077. },
  34078. showOrHide(item) {
  34079. if (_converse.hide_open_bookmarks) {
  34080. const bookmarks = this.model.filter(bookmark => !_converse.chatboxes.get(bookmark.get('jid')));
  34081. if (!bookmarks.length) {
  34082. u.hideElement(this.el);
  34083. return;
  34084. }
  34085. }
  34086. if (this.model.models.length) {
  34087. u.showElement(this.el);
  34088. }
  34089. },
  34090. toggleBookmarksList(ev) {
  34091. if (ev && ev.preventDefault) {
  34092. ev.preventDefault();
  34093. }
  34094. const icon_el = ev.target.querySelector('.fa');
  34095. if (u.hasClass('fa-caret-down', icon_el)) {
  34096. u.slideIn(this.el.querySelector('.bookmarks'));
  34097. this.list_model.save({
  34098. 'toggle-state': _converse.CLOSED
  34099. });
  34100. icon_el.classList.remove("fa-caret-down");
  34101. icon_el.classList.add("fa-caret-right");
  34102. } else {
  34103. icon_el.classList.remove("fa-caret-right");
  34104. icon_el.classList.add("fa-caret-down");
  34105. u.slideOut(this.el.querySelector('.bookmarks'));
  34106. this.list_model.save({
  34107. 'toggle-state': _converse.OPENED
  34108. });
  34109. }
  34110. }
  34111. });
  34112. _converse.checkBookmarksSupport = function () {
  34113. return new Promise((resolve, reject) => {
  34114. Promise.all([_converse.api.disco.getIdentity('pubsub', 'pep', _converse.bare_jid), _converse.api.disco.supports(Strophe.NS.PUBSUB + '#publish-options', _converse.bare_jid)]).then(args => {
  34115. resolve(args[0] && (args[1].length || _converse.allow_public_bookmarks));
  34116. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34117. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34118. };
  34119. const initBookmarks = function initBookmarks() {
  34120. if (!_converse.allow_bookmarks) {
  34121. return;
  34122. }
  34123. _converse.checkBookmarksSupport().then(supported => {
  34124. if (supported) {
  34125. _converse.bookmarks = new _converse.Bookmarks();
  34126. _converse.bookmarksview = new _converse.BookmarksView({
  34127. 'model': _converse.bookmarks
  34128. });
  34129. _converse.bookmarks.fetchBookmarks().catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL)).then(() => _converse.emit('bookmarksInitialized'));
  34130. } else {
  34131. _converse.emit('bookmarksInitialized');
  34132. }
  34133. });
  34134. };
  34135. u.onMultipleEvents([{
  34136. 'object': _converse,
  34137. 'event': 'chatBoxesFetched'
  34138. }, {
  34139. 'object': _converse,
  34140. 'event': 'roomsPanelRendered'
  34141. }], initBookmarks);
  34142. _converse.on('clearSession', () => {
  34143. if (!_.isUndefined(_converse.bookmarks)) {
  34144. _converse.bookmarks.browserStorage._clear();
  34145. window.sessionStorage.removeItem(_converse.bookmarks.fetched_flag);
  34146. }
  34147. });
  34148. _converse.on('reconnected', initBookmarks);
  34149. _converse.on('connected', () => {
  34150. // Add a handler for bookmarks pushed from other connected clients
  34151. // (from the same user obviously)
  34152. _converse.connection.addHandler(message => {
  34153. if (sizzle('event[xmlns="' + Strophe.NS.PUBSUB + '#event"] items[node="storage:bookmarks"]', message).length) {
  34154. _converse.api.waitUntil('bookmarksInitialized').then(() => _converse.bookmarks.createBookmarksFromStanza(message)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34155. }
  34156. }, null, 'message', 'headline', null, _converse.bare_jid);
  34157. });
  34158. }
  34159. });
  34160. });
  34161. /***/ }),
  34162. /***/ "./src/converse-caps.js":
  34163. /*!******************************!*\
  34164. !*** ./src/converse-caps.js ***!
  34165. \******************************/
  34166. /*! no static exports found */
  34167. /***/ (function(module, exports, __webpack_require__) {
  34168. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  34169. // http://conversejs.org
  34170. //
  34171. // Copyright (c) 2013-2018, the Converse.js developers
  34172. // Licensed under the Mozilla Public License (MPLv2)
  34173. (function (root, factory) {
  34174. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34175. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34176. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34177. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34178. })(this, function (converse) {
  34179. const _converse$env = converse.env,
  34180. Strophe = _converse$env.Strophe,
  34181. $build = _converse$env.$build,
  34182. _ = _converse$env._,
  34183. b64_sha1 = _converse$env.b64_sha1;
  34184. Strophe.addNamespace('CAPS', "http://jabber.org/protocol/caps");
  34185. function propertySort(array, property) {
  34186. return array.sort((a, b) => {
  34187. return a[property] > b[property] ? -1 : 1;
  34188. });
  34189. }
  34190. function generateVerificationString(_converse) {
  34191. const identities = _converse.api.disco.own.identities.get(),
  34192. features = _converse.api.disco.own.features.get();
  34193. if (identities.length > 1) {
  34194. propertySort(identities, "category");
  34195. propertySort(identities, "type");
  34196. propertySort(identities, "lang");
  34197. }
  34198. let S = _.reduce(identities, (result, id) => `${result}${id.category}/${id.type}/${_.get(id, 'lang', '')}/${id.name}<`, "");
  34199. features.sort();
  34200. S = _.reduce(features, (result, feature) => `${result}${feature}<`, S);
  34201. return b64_sha1(S);
  34202. }
  34203. function createCapsNode(_converse) {
  34204. return $build("c", {
  34205. 'xmlns': Strophe.NS.CAPS,
  34206. 'hash': "sha-1",
  34207. 'node': "https://conversejs.org",
  34208. 'ver': generateVerificationString(_converse)
  34209. }).nodeTree;
  34210. }
  34211. converse.plugins.add('converse-caps', {
  34212. overrides: {
  34213. // Overrides mentioned here will be picked up by converse.js's
  34214. // plugin architecture they will replace existing methods on the
  34215. // relevant objects or classes.
  34216. XMPPStatus: {
  34217. constructPresence() {
  34218. const presence = this.__super__.constructPresence.apply(this, arguments);
  34219. presence.root().cnode(createCapsNode(this.__super__._converse));
  34220. return presence;
  34221. }
  34222. }
  34223. }
  34224. });
  34225. });
  34226. /***/ }),
  34227. /***/ "./src/converse-chatboxes.js":
  34228. /*!***********************************!*\
  34229. !*** ./src/converse-chatboxes.js ***!
  34230. \***********************************/
  34231. /*! no static exports found */
  34232. /***/ (function(module, exports, __webpack_require__) {
  34233. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  34234. // http://conversejs.org
  34235. //
  34236. // Copyright (c) 2012-2018, the Converse.js developers
  34237. // Licensed under the Mozilla Public License (MPLv2)
  34238. (function (root, factory) {
  34239. !(__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),
  34240. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34241. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34242. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34243. })(this, function (converse, filesize) {
  34244. "use strict";
  34245. const _converse$env = converse.env,
  34246. $msg = _converse$env.$msg,
  34247. Backbone = _converse$env.Backbone,
  34248. Promise = _converse$env.Promise,
  34249. Strophe = _converse$env.Strophe,
  34250. b64_sha1 = _converse$env.b64_sha1,
  34251. moment = _converse$env.moment,
  34252. sizzle = _converse$env.sizzle,
  34253. utils = _converse$env.utils,
  34254. _ = _converse$env._;
  34255. const u = converse.env.utils;
  34256. Strophe.addNamespace('MESSAGE_CORRECT', 'urn:xmpp:message-correct:0');
  34257. Strophe.addNamespace('REFERENCE', 'urn:xmpp:reference:0');
  34258. converse.plugins.add('converse-chatboxes', {
  34259. dependencies: ["converse-roster", "converse-vcard"],
  34260. initialize() {
  34261. /* The initialize function gets called as soon as the plugin is
  34262. * loaded by converse.js's plugin machinery.
  34263. */
  34264. const _converse = this._converse,
  34265. __ = _converse.__; // Configuration values for this plugin
  34266. // ====================================
  34267. // Refer to docs/source/configuration.rst for explanations of these
  34268. // configuration settings.
  34269. _converse.api.settings.update({
  34270. 'auto_join_private_chats': [],
  34271. 'filter_by_resource': false,
  34272. 'forward_messages': false,
  34273. 'send_chat_state_notifications': true
  34274. });
  34275. _converse.api.promises.add(['chatBoxesFetched', 'chatBoxesInitialized', 'privateChatsAutoJoined']);
  34276. function openChat(jid) {
  34277. if (!utils.isValidJID(jid)) {
  34278. return _converse.log(`Invalid JID "${jid}" provided in URL fragment`, Strophe.LogLevel.WARN);
  34279. }
  34280. _converse.api.chats.open(jid);
  34281. }
  34282. _converse.router.route('converse/chat?jid=:jid', openChat);
  34283. _converse.Message = Backbone.Model.extend({
  34284. defaults() {
  34285. return {
  34286. 'msgid': _converse.connection.getUniqueId(),
  34287. 'time': moment().format()
  34288. };
  34289. },
  34290. initialize() {
  34291. this.setVCard();
  34292. if (this.get('file')) {
  34293. this.on('change:put', this.uploadFile, this);
  34294. if (!_.includes([_converse.SUCCESS, _converse.FAILURE], this.get('upload'))) {
  34295. this.getRequestSlotURL();
  34296. }
  34297. }
  34298. if (this.isOnlyChatStateNotification()) {
  34299. window.setTimeout(this.destroy.bind(this), 20000);
  34300. }
  34301. },
  34302. getVCardForChatroomOccupant() {
  34303. const chatbox = this.collection.chatbox,
  34304. nick = Strophe.getResourceFromJid(this.get('from'));
  34305. if (chatbox.get('nick') === nick) {
  34306. return _converse.xmppstatus.vcard;
  34307. } else {
  34308. let vcard;
  34309. if (this.get('vcard_jid')) {
  34310. vcard = _converse.vcards.findWhere({
  34311. 'jid': this.get('vcard_jid')
  34312. });
  34313. }
  34314. if (!vcard) {
  34315. let jid;
  34316. const occupant = chatbox.occupants.findWhere({
  34317. 'nick': nick
  34318. });
  34319. if (occupant && occupant.get('jid')) {
  34320. jid = occupant.get('jid');
  34321. this.save({
  34322. 'vcard_jid': jid
  34323. }, {
  34324. 'silent': true
  34325. });
  34326. } else {
  34327. jid = this.get('from');
  34328. }
  34329. vcard = _converse.vcards.findWhere({
  34330. 'jid': jid
  34331. }) || _converse.vcards.create({
  34332. 'jid': jid
  34333. });
  34334. }
  34335. return vcard;
  34336. }
  34337. },
  34338. setVCard() {
  34339. if (this.get('type') === 'error') {
  34340. return;
  34341. } else if (this.get('type') === 'groupchat') {
  34342. this.vcard = this.getVCardForChatroomOccupant();
  34343. } else {
  34344. const jid = this.get('from');
  34345. this.vcard = _converse.vcards.findWhere({
  34346. 'jid': jid
  34347. }) || _converse.vcards.create({
  34348. 'jid': jid
  34349. });
  34350. }
  34351. },
  34352. isOnlyChatStateNotification() {
  34353. return u.isOnlyChatStateNotification(this);
  34354. },
  34355. getDisplayName() {
  34356. if (this.get('type') === 'groupchat') {
  34357. return this.get('nick');
  34358. } else {
  34359. return this.vcard.get('fullname') || this.get('from');
  34360. }
  34361. },
  34362. sendSlotRequestStanza() {
  34363. /* Send out an IQ stanza to request a file upload slot.
  34364. *
  34365. * https://xmpp.org/extensions/xep-0363.html#request
  34366. */
  34367. const file = this.get('file');
  34368. return new Promise((resolve, reject) => {
  34369. const iq = converse.env.$iq({
  34370. 'from': _converse.jid,
  34371. 'to': this.get('slot_request_url'),
  34372. 'type': 'get'
  34373. }).c('request', {
  34374. 'xmlns': Strophe.NS.HTTPUPLOAD,
  34375. 'filename': file.name,
  34376. 'size': file.size,
  34377. 'content-type': file.type
  34378. });
  34379. _converse.connection.sendIQ(iq, resolve, reject);
  34380. });
  34381. },
  34382. getRequestSlotURL() {
  34383. this.sendSlotRequestStanza().then(stanza => {
  34384. const slot = stanza.querySelector('slot');
  34385. if (slot) {
  34386. this.save({
  34387. 'get': slot.querySelector('get').getAttribute('url'),
  34388. 'put': slot.querySelector('put').getAttribute('url')
  34389. });
  34390. } else {
  34391. return this.save({
  34392. 'type': 'error',
  34393. 'message': __("Sorry, could not determine file upload URL.")
  34394. });
  34395. }
  34396. }).catch(e => {
  34397. _converse.log(e, Strophe.LogLevel.ERROR);
  34398. return this.save({
  34399. 'type': 'error',
  34400. 'message': __("Sorry, could not determine upload URL.")
  34401. });
  34402. });
  34403. },
  34404. uploadFile() {
  34405. const xhr = new XMLHttpRequest();
  34406. xhr.onreadystatechange = () => {
  34407. if (xhr.readyState === XMLHttpRequest.DONE) {
  34408. _converse.log("Status: " + xhr.status, Strophe.LogLevel.INFO);
  34409. if (xhr.status === 200 || xhr.status === 201) {
  34410. this.save({
  34411. 'upload': _converse.SUCCESS,
  34412. 'oob_url': this.get('get'),
  34413. 'message': this.get('get')
  34414. });
  34415. } else {
  34416. xhr.onerror();
  34417. }
  34418. }
  34419. };
  34420. xhr.upload.addEventListener("progress", evt => {
  34421. if (evt.lengthComputable) {
  34422. this.set('progress', evt.loaded / evt.total);
  34423. }
  34424. }, false);
  34425. xhr.onerror = () => {
  34426. let message;
  34427. if (xhr.responseText) {
  34428. message = __('Sorry, could not succesfully upload your file. Your server’s response: "%1$s"', xhr.responseText);
  34429. } else {
  34430. message = __('Sorry, could not succesfully upload your file.');
  34431. }
  34432. this.save({
  34433. 'type': 'error',
  34434. 'upload': _converse.FAILURE,
  34435. 'message': message
  34436. });
  34437. };
  34438. xhr.open('PUT', this.get('put'), true);
  34439. xhr.setRequestHeader("Content-type", this.get('file').type);
  34440. xhr.send(this.get('file'));
  34441. }
  34442. });
  34443. _converse.Messages = Backbone.Collection.extend({
  34444. model: _converse.Message,
  34445. comparator: 'time'
  34446. });
  34447. _converse.ChatBox = _converse.ModelWithVCardAndPresence.extend({
  34448. defaults() {
  34449. return {
  34450. 'bookmarked': false,
  34451. 'chat_state': undefined,
  34452. 'num_unread': 0,
  34453. 'type': _converse.PRIVATE_CHAT_TYPE,
  34454. 'message_type': 'chat',
  34455. 'url': '',
  34456. 'hidden': _.includes(['mobile', 'fullscreen'], _converse.view_mode)
  34457. };
  34458. },
  34459. initialize() {
  34460. _converse.ModelWithVCardAndPresence.prototype.initialize.apply(this, arguments);
  34461. _converse.api.waitUntil('rosterContactsFetched').then(() => {
  34462. this.addRelatedContact(_converse.roster.findWhere({
  34463. 'jid': this.get('jid')
  34464. }));
  34465. });
  34466. this.messages = new _converse.Messages();
  34467. const storage = _converse.config.get('storage');
  34468. this.messages.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1(`converse.messages${this.get('jid')}${_converse.bare_jid}`));
  34469. this.messages.chatbox = this;
  34470. this.messages.on('change:upload', message => {
  34471. if (message.get('upload') === _converse.SUCCESS) {
  34472. this.sendMessageStanza(this.createMessageStanza(message));
  34473. }
  34474. });
  34475. this.on('change:chat_state', this.sendChatState, this);
  34476. this.save({
  34477. // The chat_state will be set to ACTIVE once the chat box is opened
  34478. // and we listen for change:chat_state, so shouldn't set it to ACTIVE here.
  34479. 'box_id': b64_sha1(this.get('jid')),
  34480. 'time_opened': this.get('time_opened') || moment().valueOf(),
  34481. 'user_id': Strophe.getNodeFromJid(this.get('jid'))
  34482. });
  34483. },
  34484. addRelatedContact(contact) {
  34485. if (!_.isUndefined(contact)) {
  34486. this.contact = contact;
  34487. this.trigger('contactAdded', contact);
  34488. }
  34489. },
  34490. getDisplayName() {
  34491. return this.vcard.get('fullname') || this.get('jid');
  34492. },
  34493. handleMessageCorrection(stanza) {
  34494. const replace = sizzle(`replace[xmlns="${Strophe.NS.MESSAGE_CORRECT}"]`, stanza).pop();
  34495. if (replace) {
  34496. const msgid = replace && replace.getAttribute('id') || stanza.getAttribute('id'),
  34497. message = msgid && this.messages.findWhere({
  34498. msgid
  34499. });
  34500. if (!message) {
  34501. // XXX: Looks like we received a correction for a
  34502. // non-existing message, probably due to MAM.
  34503. // Not clear what can be done about this... we'll
  34504. // just create it as a separate message for now.
  34505. return false;
  34506. }
  34507. const older_versions = message.get('older_versions') || [];
  34508. older_versions.push(message.get('message'));
  34509. message.save({
  34510. 'message': _converse.chatboxes.getMessageBody(stanza),
  34511. 'references': this.getReferencesFromStanza(stanza),
  34512. 'older_versions': older_versions,
  34513. 'edited': moment().format()
  34514. });
  34515. return true;
  34516. }
  34517. return false;
  34518. },
  34519. createMessageStanza(message) {
  34520. /* Given a _converse.Message Backbone.Model, return the XML
  34521. * stanza that represents it.
  34522. *
  34523. * Parameters:
  34524. * (Object) message - The Backbone.Model representing the message
  34525. */
  34526. const stanza = $msg({
  34527. 'from': _converse.connection.jid,
  34528. 'to': this.get('jid'),
  34529. 'type': this.get('message_type'),
  34530. 'id': message.get('edited') && _converse.connection.getUniqueId() || message.get('msgid')
  34531. }).c('body').t(message.get('message')).up().c(_converse.ACTIVE, {
  34532. 'xmlns': Strophe.NS.CHATSTATES
  34533. }).up();
  34534. if (message.get('is_spoiler')) {
  34535. if (message.get('spoiler_hint')) {
  34536. stanza.c('spoiler', {
  34537. 'xmlns': Strophe.NS.SPOILER
  34538. }, message.get('spoiler_hint')).up();
  34539. } else {
  34540. stanza.c('spoiler', {
  34541. 'xmlns': Strophe.NS.SPOILER
  34542. }).up();
  34543. }
  34544. }
  34545. (message.get('references') || []).forEach(reference => {
  34546. const attrs = {
  34547. 'xmlns': Strophe.NS.REFERENCE,
  34548. 'begin': reference.begin,
  34549. 'end': reference.end,
  34550. 'type': reference.type
  34551. };
  34552. if (reference.uri) {
  34553. attrs.uri = reference.uri;
  34554. }
  34555. stanza.c('reference', attrs).up();
  34556. });
  34557. if (message.get('file')) {
  34558. stanza.c('x', {
  34559. 'xmlns': Strophe.NS.OUTOFBAND
  34560. }).c('url').t(message.get('message')).up();
  34561. }
  34562. if (message.get('edited')) {
  34563. stanza.c('replace', {
  34564. 'xmlns': Strophe.NS.MESSAGE_CORRECT,
  34565. 'id': message.get('msgid')
  34566. }).up();
  34567. }
  34568. return stanza;
  34569. },
  34570. sendMessageStanza(stanza) {
  34571. _converse.connection.send(stanza);
  34572. if (_converse.forward_messages) {
  34573. // Forward the message, so that other connected resources are also aware of it.
  34574. _converse.connection.send($msg({
  34575. 'to': _converse.bare_jid,
  34576. 'type': this.get('message_type')
  34577. }).c('forwarded', {
  34578. 'xmlns': Strophe.NS.FORWARD
  34579. }).c('delay', {
  34580. 'xmns': Strophe.NS.DELAY,
  34581. 'stamp': moment().format()
  34582. }).up().cnode(stanza.tree()));
  34583. }
  34584. },
  34585. getOutgoingMessageAttributes(text, spoiler_hint) {
  34586. const is_spoiler = this.get('composing_spoiler');
  34587. return _.extend(this.toJSON(), {
  34588. 'id': _converse.connection.getUniqueId(),
  34589. 'fullname': _converse.xmppstatus.get('fullname'),
  34590. 'from': _converse.bare_jid,
  34591. 'sender': 'me',
  34592. 'time': moment().format(),
  34593. 'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
  34594. 'is_spoiler': is_spoiler,
  34595. 'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
  34596. 'type': this.get('message_type')
  34597. });
  34598. },
  34599. sendMessage(attrs) {
  34600. /* Responsible for sending off a text message.
  34601. *
  34602. * Parameters:
  34603. * (Message) message - The chat message
  34604. */
  34605. let message = this.messages.findWhere('correcting');
  34606. if (message) {
  34607. const older_versions = message.get('older_versions') || [];
  34608. older_versions.push(message.get('message'));
  34609. message.save({
  34610. 'correcting': false,
  34611. 'edited': moment().format(),
  34612. 'message': attrs.message,
  34613. 'older_versions': older_versions,
  34614. 'references': attrs.references
  34615. });
  34616. } else {
  34617. message = this.messages.create(attrs);
  34618. }
  34619. return this.sendMessageStanza(this.createMessageStanza(message));
  34620. },
  34621. sendChatState() {
  34622. /* Sends a message with the status of the user in this chat session
  34623. * as taken from the 'chat_state' attribute of the chat box.
  34624. * See XEP-0085 Chat State Notifications.
  34625. */
  34626. if (_converse.send_chat_state_notifications) {
  34627. _converse.connection.send($msg({
  34628. 'to': this.get('jid'),
  34629. 'type': 'chat'
  34630. }).c(this.get('chat_state'), {
  34631. 'xmlns': Strophe.NS.CHATSTATES
  34632. }).up().c('no-store', {
  34633. 'xmlns': Strophe.NS.HINTS
  34634. }).up().c('no-permanent-store', {
  34635. 'xmlns': Strophe.NS.HINTS
  34636. }));
  34637. }
  34638. },
  34639. sendFiles(files) {
  34640. _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain).then(result => {
  34641. const item = result.pop(),
  34642. data = item.dataforms.where({
  34643. 'FORM_TYPE': {
  34644. 'value': Strophe.NS.HTTPUPLOAD,
  34645. 'type': "hidden"
  34646. }
  34647. }).pop(),
  34648. max_file_size = window.parseInt(_.get(data, 'attributes.max-file-size.value')),
  34649. slot_request_url = _.get(item, 'id');
  34650. if (!slot_request_url) {
  34651. this.messages.create({
  34652. 'message': __("Sorry, looks like file upload is not supported by your server."),
  34653. 'type': 'error'
  34654. });
  34655. return;
  34656. }
  34657. _.each(files, file => {
  34658. if (!window.isNaN(max_file_size) && window.parseInt(file.size) > max_file_size) {
  34659. return this.messages.create({
  34660. '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)),
  34661. 'type': 'error'
  34662. });
  34663. } else {
  34664. this.messages.create(_.extend(this.getOutgoingMessageAttributes(), {
  34665. 'file': file,
  34666. 'progress': 0,
  34667. 'slot_request_url': slot_request_url
  34668. }));
  34669. }
  34670. });
  34671. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34672. },
  34673. getReferencesFromStanza(stanza) {
  34674. const text = _.propertyOf(stanza.querySelector('body'))('textContent');
  34675. return sizzle(`reference[xmlns="${Strophe.NS.REFERENCE}"]`, stanza).map(ref => {
  34676. const begin = ref.getAttribute('begin'),
  34677. end = ref.getAttribute('end');
  34678. return {
  34679. 'begin': begin,
  34680. 'end': end,
  34681. 'type': ref.getAttribute('type'),
  34682. 'value': text.slice(begin, end),
  34683. 'uri': ref.getAttribute('uri')
  34684. };
  34685. });
  34686. },
  34687. getMessageAttributesFromStanza(stanza, original_stanza) {
  34688. /* Parses a passed in message stanza and returns an object
  34689. * of attributes.
  34690. *
  34691. * Parameters:
  34692. * (XMLElement) stanza - The message stanza
  34693. * (XMLElement) delay - The <delay> node from the
  34694. * stanza, if there was one.
  34695. * (XMLElement) original_stanza - The original stanza,
  34696. * that contains the message stanza, if it was
  34697. * contained, otherwise it's the message stanza itself.
  34698. */
  34699. const archive = sizzle(`result[xmlns="${Strophe.NS.MAM}"]`, original_stanza).pop(),
  34700. spoiler = sizzle(`spoiler[xmlns="${Strophe.NS.SPOILER}"]`, original_stanza).pop(),
  34701. delay = sizzle(`delay[xmlns="${Strophe.NS.DELAY}"]`, original_stanza).pop(),
  34702. 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;
  34703. const attrs = {
  34704. 'chat_state': chat_state,
  34705. 'is_archived': !_.isNil(archive),
  34706. 'is_delayed': !_.isNil(delay),
  34707. 'is_spoiler': !_.isNil(spoiler),
  34708. 'message': _converse.chatboxes.getMessageBody(stanza) || undefined,
  34709. 'references': this.getReferencesFromStanza(stanza),
  34710. 'msgid': stanza.getAttribute('id'),
  34711. 'time': delay ? delay.getAttribute('stamp') : moment().format(),
  34712. 'type': stanza.getAttribute('type')
  34713. };
  34714. if (attrs.type === 'groupchat') {
  34715. attrs.from = stanza.getAttribute('from');
  34716. attrs.nick = Strophe.unescapeNode(Strophe.getResourceFromJid(attrs.from));
  34717. attrs.sender = attrs.nick === this.get('nick') ? 'me' : 'them';
  34718. } else {
  34719. attrs.from = Strophe.getBareJidFromJid(stanza.getAttribute('from'));
  34720. if (attrs.from === _converse.bare_jid) {
  34721. attrs.sender = 'me';
  34722. attrs.fullname = _converse.xmppstatus.get('fullname');
  34723. } else {
  34724. attrs.sender = 'them';
  34725. attrs.fullname = this.get('fullname');
  34726. }
  34727. }
  34728. _.each(sizzle(`x[xmlns="${Strophe.NS.OUTOFBAND}"]`, stanza), xform => {
  34729. attrs['oob_url'] = xform.querySelector('url').textContent;
  34730. attrs['oob_desc'] = xform.querySelector('url').textContent;
  34731. });
  34732. if (spoiler) {
  34733. attrs.spoiler_hint = spoiler.textContent.length > 0 ? spoiler.textContent : '';
  34734. }
  34735. return attrs;
  34736. },
  34737. createMessage(message, original_stanza) {
  34738. /* Create a Backbone.Message object inside this chat box
  34739. * based on the identified message stanza.
  34740. */
  34741. const that = this;
  34742. function _create(attrs) {
  34743. const is_csn = u.isOnlyChatStateNotification(attrs);
  34744. if (is_csn && (attrs.is_delayed || attrs.type === 'groupchat' && Strophe.getResourceFromJid(attrs.from) == that.get('nick'))) {
  34745. // XXX: MUC leakage
  34746. // No need showing delayed or our own CSN messages
  34747. return;
  34748. } else if (!is_csn && !attrs.file && !attrs.plaintext && !attrs.message && !attrs.oob_url && attrs.type !== 'error') {
  34749. // TODO: handle <subject> messages (currently being done by ChatRoom)
  34750. return;
  34751. } else {
  34752. return that.messages.create(attrs);
  34753. }
  34754. }
  34755. const result = this.getMessageAttributesFromStanza(message, original_stanza);
  34756. if (typeof result.then === "function") {
  34757. return new Promise((resolve, reject) => result.then(attrs => resolve(_create(attrs))));
  34758. } else {
  34759. const message = _create(result);
  34760. return Promise.resolve(message);
  34761. }
  34762. },
  34763. isHidden() {
  34764. /* Returns a boolean to indicate whether a newly received
  34765. * message will be visible to the user or not.
  34766. */
  34767. return this.get('hidden') || this.get('minimized') || this.isScrolledUp() || _converse.windowState === 'hidden';
  34768. },
  34769. incrementUnreadMsgCounter(message) {
  34770. /* Given a newly received message, update the unread counter if
  34771. * necessary.
  34772. */
  34773. if (!message) {
  34774. return;
  34775. }
  34776. if (_.isNil(message.get('message'))) {
  34777. return;
  34778. }
  34779. if (utils.isNewMessage(message) && this.isHidden()) {
  34780. this.save({
  34781. 'num_unread': this.get('num_unread') + 1
  34782. });
  34783. _converse.incrementMsgCounter();
  34784. }
  34785. },
  34786. clearUnreadMsgCounter() {
  34787. u.safeSave(this, {
  34788. 'num_unread': 0
  34789. });
  34790. },
  34791. isScrolledUp() {
  34792. return this.get('scrolled', true);
  34793. }
  34794. });
  34795. _converse.ChatBoxes = Backbone.Collection.extend({
  34796. comparator: 'time_opened',
  34797. model(attrs, options) {
  34798. return new _converse.ChatBox(attrs, options);
  34799. },
  34800. registerMessageHandler() {
  34801. _converse.connection.addHandler(stanza => {
  34802. this.onMessage(stanza);
  34803. return true;
  34804. }, null, 'message', 'chat');
  34805. _converse.connection.addHandler(stanza => {
  34806. this.onErrorMessage(stanza);
  34807. return true;
  34808. }, null, 'message', 'error');
  34809. },
  34810. chatBoxMayBeShown(chatbox) {
  34811. return true;
  34812. },
  34813. onChatBoxesFetched(collection) {
  34814. /* Show chat boxes upon receiving them from sessionStorage */
  34815. collection.each(chatbox => {
  34816. if (this.chatBoxMayBeShown(chatbox)) {
  34817. chatbox.trigger('show');
  34818. }
  34819. });
  34820. _converse.emit('chatBoxesFetched');
  34821. },
  34822. onConnected() {
  34823. this.browserStorage = new Backbone.BrowserStorage.session(`converse.chatboxes-${_converse.bare_jid}`);
  34824. this.registerMessageHandler();
  34825. this.fetch({
  34826. 'add': true,
  34827. 'success': this.onChatBoxesFetched.bind(this)
  34828. });
  34829. },
  34830. onErrorMessage(message) {
  34831. /* Handler method for all incoming error message stanzas
  34832. */
  34833. const from_jid = Strophe.getBareJidFromJid(message.getAttribute('from'));
  34834. if (utils.isSameBareJID(from_jid, _converse.bare_jid)) {
  34835. return true;
  34836. }
  34837. const chatbox = this.getChatBox(from_jid);
  34838. if (!chatbox) {
  34839. return true;
  34840. }
  34841. chatbox.createMessage(message, message);
  34842. return true;
  34843. },
  34844. getMessageBody(stanza) {
  34845. /* Given a message stanza, return the text contained in its body.
  34846. */
  34847. const type = stanza.getAttribute('type');
  34848. if (type === 'error') {
  34849. const error = stanza.querySelector('error');
  34850. return _.propertyOf(error.querySelector('text'))('textContent') || __('Sorry, an error occurred:') + ' ' + error.innerHTML;
  34851. } else {
  34852. return _.propertyOf(stanza.querySelector('body'))('textContent');
  34853. }
  34854. },
  34855. onMessage(stanza) {
  34856. /* Handler method for all incoming single-user chat "message"
  34857. * stanzas.
  34858. *
  34859. * Parameters:
  34860. * (XMLElement) stanza - The incoming message stanza
  34861. */
  34862. let to_jid = stanza.getAttribute('to');
  34863. const to_resource = Strophe.getResourceFromJid(to_jid);
  34864. if (_converse.filter_by_resource && to_resource && to_resource !== _converse.resource) {
  34865. _converse.log(`onMessage: Ignoring incoming message intended for a different resource: ${to_jid}`, Strophe.LogLevel.INFO);
  34866. return true;
  34867. } else if (utils.isHeadlineMessage(_converse, stanza)) {
  34868. // XXX: Ideally we wouldn't have to check for headline
  34869. // messages, but Prosody sends headline messages with the
  34870. // wrong type ('chat'), so we need to filter them out here.
  34871. _converse.log(`onMessage: Ignoring incoming headline message sent with type 'chat' from JID: ${stanza.getAttribute('from')}`, Strophe.LogLevel.INFO);
  34872. return true;
  34873. }
  34874. let from_jid = stanza.getAttribute('from');
  34875. const forwarded = stanza.querySelector('forwarded'),
  34876. original_stanza = stanza;
  34877. if (!_.isNull(forwarded)) {
  34878. const forwarded_message = forwarded.querySelector('message'),
  34879. forwarded_from = forwarded_message.getAttribute('from'),
  34880. is_carbon = !_.isNull(stanza.querySelector(`received[xmlns="${Strophe.NS.CARBONS}"]`));
  34881. if (is_carbon && Strophe.getBareJidFromJid(forwarded_from) !== from_jid) {
  34882. // Prevent message forging via carbons
  34883. // https://xmpp.org/extensions/xep-0280.html#security
  34884. return true;
  34885. }
  34886. stanza = forwarded_message;
  34887. from_jid = stanza.getAttribute('from');
  34888. to_jid = stanza.getAttribute('to');
  34889. }
  34890. const from_bare_jid = Strophe.getBareJidFromJid(from_jid),
  34891. from_resource = Strophe.getResourceFromJid(from_jid),
  34892. is_me = from_bare_jid === _converse.bare_jid;
  34893. let contact_jid;
  34894. if (is_me) {
  34895. // I am the sender, so this must be a forwarded message...
  34896. if (_.isNull(to_jid)) {
  34897. return _converse.log(`Don't know how to handle message stanza without 'to' attribute. ${stanza.outerHTML}`, Strophe.LogLevel.ERROR);
  34898. }
  34899. contact_jid = Strophe.getBareJidFromJid(to_jid);
  34900. } else {
  34901. contact_jid = from_bare_jid;
  34902. }
  34903. const attrs = {
  34904. 'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname') // Get chat box, but only create a new one when the message has a body.
  34905. };
  34906. const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}`).length > 0;
  34907. const chatbox = this.getChatBox(contact_jid, attrs, has_body);
  34908. if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
  34909. const msgid = stanza.getAttribute('id'),
  34910. message = msgid && chatbox.messages.findWhere({
  34911. msgid
  34912. });
  34913. if (!message) {
  34914. // Only create the message when we're sure it's not a duplicate
  34915. chatbox.createMessage(stanza, original_stanza).then(msg => chatbox.incrementUnreadMsgCounter(msg)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  34916. }
  34917. }
  34918. _converse.emit('message', {
  34919. 'stanza': original_stanza,
  34920. 'chatbox': chatbox
  34921. });
  34922. return true;
  34923. },
  34924. getChatBox(jid, attrs = {}, create) {
  34925. /* Returns a chat box or optionally return a newly
  34926. * created one if one doesn't exist.
  34927. *
  34928. * Parameters:
  34929. * (String) jid - The JID of the user whose chat box we want
  34930. * (Boolean) create - Should a new chat box be created if none exists?
  34931. * (Object) attrs - Optional chat box atributes.
  34932. */
  34933. if (_.isObject(jid)) {
  34934. create = attrs;
  34935. attrs = jid;
  34936. jid = attrs.jid;
  34937. }
  34938. jid = Strophe.getBareJidFromJid(jid.toLowerCase());
  34939. let chatbox = this.get(Strophe.getBareJidFromJid(jid));
  34940. if (!chatbox && create) {
  34941. _.extend(attrs, {
  34942. 'jid': jid,
  34943. 'id': jid
  34944. });
  34945. chatbox = this.create(attrs, {
  34946. 'error'(model, response) {
  34947. _converse.log(response.responseText);
  34948. }
  34949. });
  34950. }
  34951. return chatbox;
  34952. }
  34953. });
  34954. function autoJoinChats() {
  34955. /* Automatically join private chats, based on the
  34956. * "auto_join_private_chats" configuration setting.
  34957. */
  34958. _.each(_converse.auto_join_private_chats, function (jid) {
  34959. if (_converse.chatboxes.where({
  34960. 'jid': jid
  34961. }).length) {
  34962. return;
  34963. }
  34964. if (_.isString(jid)) {
  34965. _converse.api.chats.open(jid);
  34966. } else {
  34967. _converse.log('Invalid jid criteria specified for "auto_join_private_chats"', Strophe.LogLevel.ERROR);
  34968. }
  34969. });
  34970. _converse.emit('privateChatsAutoJoined');
  34971. }
  34972. /************************ BEGIN Event Handlers ************************/
  34973. _converse.on('chatBoxesFetched', autoJoinChats);
  34974. _converse.api.waitUntil('rosterContactsFetched').then(() => {
  34975. _converse.roster.on('add', contact => {
  34976. /* When a new contact is added, check if we already have a
  34977. * chatbox open for it, and if so attach it to the chatbox.
  34978. */
  34979. const chatbox = _converse.chatboxes.findWhere({
  34980. 'jid': contact.get('jid')
  34981. });
  34982. if (chatbox) {
  34983. chatbox.addRelatedContact(contact);
  34984. }
  34985. });
  34986. });
  34987. _converse.on('addClientFeatures', () => {
  34988. _converse.api.disco.own.features.add(Strophe.NS.MESSAGE_CORRECT);
  34989. _converse.api.disco.own.features.add(Strophe.NS.HTTPUPLOAD);
  34990. _converse.api.disco.own.features.add(Strophe.NS.OUTOFBAND);
  34991. });
  34992. _converse.api.listen.on('pluginsInitialized', () => {
  34993. _converse.chatboxes = new _converse.ChatBoxes();
  34994. _converse.emit('chatBoxesInitialized');
  34995. });
  34996. _converse.api.listen.on('presencesInitialized', () => _converse.chatboxes.onConnected());
  34997. /************************ END Event Handlers ************************/
  34998. /************************ BEGIN API ************************/
  34999. _.extend(_converse.api, {
  35000. /**
  35001. * The "chats" namespace (used for one-on-one chats)
  35002. *
  35003. * @namespace _converse.api.chats
  35004. * @memberOf _converse.api
  35005. */
  35006. 'chats': {
  35007. /**
  35008. * @method _converse.api.chats.create
  35009. * @param {string|string[]} jid|jids An jid or array of jids
  35010. * @param {object} attrs An object containing configuration attributes.
  35011. */
  35012. 'create'(jids, attrs) {
  35013. if (_.isUndefined(jids)) {
  35014. _converse.log("chats.create: You need to provide at least one JID", Strophe.LogLevel.ERROR);
  35015. return null;
  35016. }
  35017. if (_.isString(jids)) {
  35018. if (attrs && !_.get(attrs, 'fullname')) {
  35019. attrs.fullname = _.get(_converse.api.contacts.get(jids), 'attributes.fullname');
  35020. }
  35021. const chatbox = _converse.chatboxes.getChatBox(jids, attrs, true);
  35022. if (_.isNil(chatbox)) {
  35023. _converse.log("Could not open chatbox for JID: " + jids, Strophe.LogLevel.ERROR);
  35024. return;
  35025. }
  35026. return chatbox;
  35027. }
  35028. return _.map(jids, jid => {
  35029. attrs.fullname = _.get(_converse.api.contacts.get(jid), 'attributes.fullname');
  35030. return _converse.chatboxes.getChatBox(jid, attrs, true).trigger('show');
  35031. });
  35032. },
  35033. /**
  35034. * Opens a new one-on-one chat.
  35035. *
  35036. * @method _converse.api.chats.open
  35037. * @param {String|string[]} name - e.g. 'buddy@example.com' or ['buddy1@example.com', 'buddy2@example.com']
  35038. * @returns {Promise} Promise which resolves with the Backbone.Model representing the chat.
  35039. *
  35040. * @example
  35041. * // To open a single chat, provide the JID of the contact you're chatting with in that chat:
  35042. * converse.plugins.add('myplugin', {
  35043. * initialize: function() {
  35044. * var _converse = this._converse;
  35045. * // Note, buddy@example.org must be in your contacts roster!
  35046. * _converse.api.chats.open('buddy@example.com').then((chat) => {
  35047. * // Now you can do something with the chat model
  35048. * });
  35049. * }
  35050. * });
  35051. *
  35052. * @example
  35053. * // To open an array of chats, provide an array of JIDs:
  35054. * converse.plugins.add('myplugin', {
  35055. * initialize: function () {
  35056. * var _converse = this._converse;
  35057. * // Note, these users must first be in your contacts roster!
  35058. * _converse.api.chats.open(['buddy1@example.com', 'buddy2@example.com']).then((chats) => {
  35059. * // Now you can do something with the chat models
  35060. * });
  35061. * }
  35062. * });
  35063. *
  35064. */
  35065. 'open'(jids, attrs) {
  35066. return new Promise((resolve, reject) => {
  35067. Promise.all([_converse.api.waitUntil('rosterContactsFetched'), _converse.api.waitUntil('chatBoxesFetched')]).then(() => {
  35068. if (_.isUndefined(jids)) {
  35069. const err_msg = "chats.open: You need to provide at least one JID";
  35070. _converse.log(err_msg, Strophe.LogLevel.ERROR);
  35071. reject(new Error(err_msg));
  35072. } else if (_.isString(jids)) {
  35073. resolve(_converse.api.chats.create(jids, attrs).trigger('show'));
  35074. } else {
  35075. resolve(_.map(jids, jid => _converse.api.chats.create(jid, attrs).trigger('show')));
  35076. }
  35077. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35078. });
  35079. },
  35080. /**
  35081. * Returns a chat model. The chat should already be open.
  35082. *
  35083. * @method _converse.api.chats.get
  35084. * @param {String|string[]} name - e.g. 'buddy@example.com' or ['buddy1@example.com', 'buddy2@example.com']
  35085. * @returns {Backbone.Model}
  35086. *
  35087. * @example
  35088. * // To return a single chat, provide the JID of the contact you're chatting with in that chat:
  35089. * const model = _converse.api.chats.get('buddy@example.com');
  35090. *
  35091. * @example
  35092. * // To return an array of chats, provide an array of JIDs:
  35093. * const models = _converse.api.chats.get(['buddy1@example.com', 'buddy2@example.com']);
  35094. *
  35095. * @example
  35096. * // To return all open chats, call the method without any parameters::
  35097. * const models = _converse.api.chats.get();
  35098. *
  35099. */
  35100. 'get'(jids) {
  35101. if (_.isUndefined(jids)) {
  35102. const result = [];
  35103. _converse.chatboxes.each(function (chatbox) {
  35104. // FIXME: Leaky abstraction from MUC. We need to add a
  35105. // base type for chat boxes, and check for that.
  35106. if (chatbox.get('type') !== _converse.CHATROOMS_TYPE) {
  35107. result.push(chatbox);
  35108. }
  35109. });
  35110. return result;
  35111. } else if (_.isString(jids)) {
  35112. return _converse.chatboxes.getChatBox(jids);
  35113. }
  35114. return _.map(jids, _.partial(_converse.chatboxes.getChatBox.bind(_converse.chatboxes), _, {}, true));
  35115. }
  35116. }
  35117. });
  35118. /************************ END API ************************/
  35119. }
  35120. });
  35121. return converse;
  35122. });
  35123. /***/ }),
  35124. /***/ "./src/converse-chatboxviews.js":
  35125. /*!**************************************!*\
  35126. !*** ./src/converse-chatboxviews.js ***!
  35127. \**************************************/
  35128. /*! no static exports found */
  35129. /***/ (function(module, exports, __webpack_require__) {
  35130. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  35131. // http://conversejs.org
  35132. //
  35133. // Copyright (c) 2012-2018, the Converse.js developers
  35134. // Licensed under the Mozilla Public License (MPLv2)
  35135. (function (root, factory) {
  35136. !(__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),
  35137. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  35138. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  35139. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  35140. })(this, function (converse, tpl_chatboxes) {
  35141. "use strict";
  35142. const _converse$env = converse.env,
  35143. Backbone = _converse$env.Backbone,
  35144. _ = _converse$env._;
  35145. const AvatarMixin = {
  35146. renderAvatar(el) {
  35147. el = el || this.el;
  35148. const canvas_el = el.querySelector('canvas');
  35149. if (_.isNull(canvas_el)) {
  35150. return;
  35151. }
  35152. const image_type = this.model.vcard.get('image_type'),
  35153. image = this.model.vcard.get('image'),
  35154. img_src = "data:" + image_type + ";base64," + image,
  35155. img = new Image();
  35156. return new Promise((resolve, reject) => {
  35157. img.onload = () => {
  35158. const ctx = canvas_el.getContext('2d'),
  35159. ratio = img.width / img.height;
  35160. ctx.clearRect(0, 0, canvas_el.width, canvas_el.height);
  35161. if (ratio < 1) {
  35162. const scaled_img_with = canvas_el.width * ratio,
  35163. x = Math.floor((canvas_el.width - scaled_img_with) / 2);
  35164. ctx.drawImage(img, x, 0, scaled_img_with, canvas_el.height);
  35165. } else {
  35166. ctx.drawImage(img, 0, 0, canvas_el.width, canvas_el.height * ratio);
  35167. }
  35168. resolve();
  35169. };
  35170. img.src = img_src;
  35171. });
  35172. }
  35173. };
  35174. converse.plugins.add('converse-chatboxviews', {
  35175. dependencies: ["converse-chatboxes"],
  35176. overrides: {
  35177. // Overrides mentioned here will be picked up by converse.js's
  35178. // plugin architecture they will replace existing methods on the
  35179. // relevant objects or classes.
  35180. initStatus: function initStatus(reconnecting) {
  35181. const _converse = this.__super__._converse;
  35182. if (!reconnecting) {
  35183. _converse.chatboxviews.closeAllChatBoxes();
  35184. }
  35185. return this.__super__.initStatus.apply(this, arguments);
  35186. }
  35187. },
  35188. initialize() {
  35189. /* The initialize function gets called as soon as the plugin is
  35190. * loaded by converse.js's plugin machinery.
  35191. */
  35192. const _converse = this._converse,
  35193. __ = _converse.__;
  35194. _converse.api.promises.add(['chatBoxViewsInitialized']);
  35195. _converse.ViewWithAvatar = Backbone.NativeView.extend(AvatarMixin);
  35196. _converse.VDOMViewWithAvatar = Backbone.VDOMView.extend(AvatarMixin);
  35197. _converse.ChatBoxViews = Backbone.Overview.extend({
  35198. _ensureElement() {
  35199. /* Override method from backbone.js
  35200. * If the #conversejs element doesn't exist, create it.
  35201. */
  35202. if (!this.el) {
  35203. let el = _converse.root.querySelector('#conversejs');
  35204. if (_.isNull(el)) {
  35205. el = document.createElement('div');
  35206. el.setAttribute('id', 'conversejs');
  35207. const body = _converse.root.querySelector('body');
  35208. if (body) {
  35209. body.appendChild(el);
  35210. } else {
  35211. // Perhaps inside a web component?
  35212. _converse.root.appendChild(el);
  35213. }
  35214. }
  35215. el.innerHTML = '';
  35216. this.setElement(el, false);
  35217. } else {
  35218. this.setElement(_.result(this, 'el'), false);
  35219. }
  35220. },
  35221. initialize() {
  35222. this.model.on("destroy", this.removeChat, this);
  35223. this.el.classList.add(`converse-${_converse.view_mode}`);
  35224. this.render();
  35225. },
  35226. render() {
  35227. try {
  35228. this.el.innerHTML = tpl_chatboxes();
  35229. } catch (e) {
  35230. this._ensureElement();
  35231. this.el.innerHTML = tpl_chatboxes();
  35232. }
  35233. this.row_el = this.el.querySelector('.row');
  35234. },
  35235. insertRowColumn(el) {
  35236. /* Add a new DOM element (likely a chat box) into the
  35237. * the row managed by this overview.
  35238. */
  35239. this.row_el.insertAdjacentElement('afterBegin', el);
  35240. },
  35241. removeChat(item) {
  35242. this.remove(item.get('id'));
  35243. },
  35244. closeAllChatBoxes() {
  35245. /* This method gets overridden in src/converse-controlbox.js if
  35246. * the controlbox plugin is active.
  35247. */
  35248. this.each(function (view) {
  35249. view.close();
  35250. });
  35251. return this;
  35252. },
  35253. chatBoxMayBeShown(chatbox) {
  35254. return this.model.chatBoxMayBeShown(chatbox);
  35255. }
  35256. });
  35257. /************************ BEGIN Event Handlers ************************/
  35258. _converse.api.waitUntil('rosterContactsFetched').then(() => {
  35259. _converse.roster.on('add', contact => {
  35260. /* When a new contact is added, check if we already have a
  35261. * chatbox open for it, and if so attach it to the chatbox.
  35262. */
  35263. const chatbox = _converse.chatboxes.findWhere({
  35264. 'jid': contact.get('jid')
  35265. });
  35266. if (chatbox) {
  35267. chatbox.addRelatedContact(contact);
  35268. }
  35269. });
  35270. });
  35271. _converse.api.listen.on('chatBoxesInitialized', () => {
  35272. _converse.chatboxviews = new _converse.ChatBoxViews({
  35273. 'model': _converse.chatboxes
  35274. });
  35275. _converse.emit('chatBoxViewsInitialized');
  35276. });
  35277. _converse.api.listen.on('clearSession', () => _converse.chatboxviews.closeAllChatBoxes());
  35278. /************************ END Event Handlers ************************/
  35279. }
  35280. });
  35281. return converse;
  35282. });
  35283. /***/ }),
  35284. /***/ "./src/converse-chatview.js":
  35285. /*!**********************************!*\
  35286. !*** ./src/converse-chatview.js ***!
  35287. \**********************************/
  35288. /*! no static exports found */
  35289. /***/ (function(module, exports, __webpack_require__) {
  35290. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  35291. // http://conversejs.org
  35292. //
  35293. // Copyright (c) 2012-2018, the Converse.js developers
  35294. // Licensed under the Mozilla Public License (MPLv2)
  35295. (function (root, factory) {
  35296. !(__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),
  35297. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  35298. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  35299. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  35300. })(this, 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) {
  35301. "use strict";
  35302. const _converse$env = converse.env,
  35303. $msg = _converse$env.$msg,
  35304. Backbone = _converse$env.Backbone,
  35305. Promise = _converse$env.Promise,
  35306. Strophe = _converse$env.Strophe,
  35307. _ = _converse$env._,
  35308. b64_sha1 = _converse$env.b64_sha1,
  35309. f = _converse$env.f,
  35310. sizzle = _converse$env.sizzle,
  35311. moment = _converse$env.moment;
  35312. converse.plugins.add('converse-chatview', {
  35313. /* Plugin dependencies are other plugins which might be
  35314. * overridden or relied upon, and therefore need to be loaded before
  35315. * this plugin.
  35316. *
  35317. * If the setting "strict_plugin_dependencies" is set to true,
  35318. * an error will be raised if the plugin is not found. By default it's
  35319. * false, which means these plugins are only loaded opportunistically.
  35320. *
  35321. * NB: These plugins need to have already been loaded via require.js.
  35322. */
  35323. dependencies: ["converse-chatboxviews", "converse-disco", "converse-message-view", "converse-modal"],
  35324. initialize() {
  35325. /* The initialize function gets called as soon as the plugin is
  35326. * loaded by converse.js's plugin machinery.
  35327. */
  35328. const _converse = this._converse,
  35329. __ = _converse.__;
  35330. _converse.api.settings.update({
  35331. 'emoji_image_path': twemoji.default.base,
  35332. 'show_send_button': false,
  35333. 'show_toolbar': true,
  35334. 'time_format': 'HH:mm',
  35335. 'use_system_emojis': true,
  35336. 'visible_toolbar_buttons': {
  35337. 'call': false,
  35338. 'clear': true,
  35339. 'emoji': true,
  35340. 'spoiler': true
  35341. }
  35342. });
  35343. twemoji.default.base = _converse.emoji_image_path;
  35344. function onWindowStateChanged(data) {
  35345. if (_converse.chatboxviews) {
  35346. _converse.chatboxviews.each(view => {
  35347. if (view.model.get('id') !== 'controlbox') {
  35348. view.onWindowStateChanged(data.state);
  35349. }
  35350. });
  35351. }
  35352. }
  35353. _converse.api.listen.on('windowStateChanged', onWindowStateChanged);
  35354. _converse.EmojiPicker = Backbone.Model.extend({
  35355. defaults: {
  35356. 'current_category': 'people',
  35357. 'current_skintone': '',
  35358. 'scroll_position': 0
  35359. }
  35360. });
  35361. _converse.EmojiPickerView = Backbone.VDOMView.extend({
  35362. className: 'emoji-picker-container',
  35363. events: {
  35364. 'click .emoji-category-picker li.emoji-category': 'chooseCategory',
  35365. 'click .emoji-skintone-picker li.emoji-skintone': 'chooseSkinTone'
  35366. },
  35367. initialize() {
  35368. this.model.on('change:current_skintone', this.render, this);
  35369. this.model.on('change:current_category', this.render, this);
  35370. },
  35371. toHTML() {
  35372. return tpl_emojis(_.extend(this.model.toJSON(), {
  35373. '_': _,
  35374. 'transform': u.getEmojiRenderer(_converse),
  35375. 'emojis_by_category': u.getEmojisByCategory(_converse),
  35376. 'toned_emojis': u.getTonedEmojis(_converse),
  35377. 'skintones': ['tone1', 'tone2', 'tone3', 'tone4', 'tone5'],
  35378. 'shouldBeHidden': this.shouldBeHidden
  35379. }));
  35380. },
  35381. shouldBeHidden(shortname, current_skintone, toned_emojis) {
  35382. /* Helper method for the template which decides whether an
  35383. * emoji should be hidden, based on which skin tone is
  35384. * currently being applied.
  35385. */
  35386. if (_.includes(shortname, '_tone')) {
  35387. if (!current_skintone || !_.includes(shortname, current_skintone)) {
  35388. return true;
  35389. }
  35390. } else {
  35391. if (current_skintone && _.includes(toned_emojis, shortname)) {
  35392. return true;
  35393. }
  35394. }
  35395. return false;
  35396. },
  35397. chooseSkinTone(ev) {
  35398. ev.preventDefault();
  35399. ev.stopPropagation();
  35400. const target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  35401. const skintone = target.getAttribute("data-skintone").trim();
  35402. if (this.model.get('current_skintone') === skintone) {
  35403. this.model.save({
  35404. 'current_skintone': ''
  35405. });
  35406. } else {
  35407. this.model.save({
  35408. 'current_skintone': skintone
  35409. });
  35410. }
  35411. },
  35412. chooseCategory(ev) {
  35413. ev.preventDefault();
  35414. ev.stopPropagation();
  35415. const target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  35416. const category = target.getAttribute("data-category").trim();
  35417. this.model.save({
  35418. 'current_category': category,
  35419. 'scroll_position': 0
  35420. });
  35421. }
  35422. });
  35423. _converse.ChatBoxHeading = _converse.ViewWithAvatar.extend({
  35424. initialize() {
  35425. this.model.on('change:status', this.onStatusMessageChanged, this);
  35426. this.model.vcard.on('change', this.render, this);
  35427. },
  35428. render() {
  35429. this.el.innerHTML = tpl_chatbox_head(_.extend(this.model.vcard.toJSON(), this.model.toJSON(), {
  35430. '_converse': _converse,
  35431. 'info_close': __('Close this chat box')
  35432. }));
  35433. this.renderAvatar();
  35434. return this;
  35435. },
  35436. onStatusMessageChanged(item) {
  35437. this.render();
  35438. _converse.emit('contactStatusMessageChanged', {
  35439. 'contact': item.attributes,
  35440. 'message': item.get('status')
  35441. });
  35442. }
  35443. });
  35444. _converse.UserDetailsModal = _converse.BootstrapModal.extend({
  35445. events: {
  35446. 'click button.remove-contact': 'removeContact',
  35447. 'click button.refresh-contact': 'refreshContact',
  35448. 'click .fingerprint-trust .btn input': 'toggleDeviceTrust'
  35449. },
  35450. initialize() {
  35451. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  35452. this.model.on('contactAdded', this.registerContactEventHandlers, this);
  35453. this.model.on('change', this.render, this);
  35454. this.registerContactEventHandlers();
  35455. _converse.emit('userDetailsModalInitialized', this.model);
  35456. },
  35457. toHTML() {
  35458. return tpl_user_details_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  35459. '_': _,
  35460. '__': __,
  35461. 'view': this,
  35462. '_converse': _converse,
  35463. 'allow_contact_removal': _converse.allow_contact_removal,
  35464. 'display_name': this.model.getDisplayName(),
  35465. 'is_roster_contact': !_.isUndefined(this.model.contact),
  35466. 'utils': u
  35467. }));
  35468. },
  35469. registerContactEventHandlers() {
  35470. if (!_.isUndefined(this.model.contact)) {
  35471. this.model.contact.on('change', this.render, this);
  35472. this.model.contact.vcard.on('change', this.render, this);
  35473. this.model.contact.on('destroy', () => {
  35474. delete this.model.contact;
  35475. this.render();
  35476. });
  35477. }
  35478. },
  35479. refreshContact(ev) {
  35480. if (ev && ev.preventDefault) {
  35481. ev.preventDefault();
  35482. }
  35483. const refresh_icon = this.el.querySelector('.fa-refresh');
  35484. u.addClass('fa-spin', refresh_icon);
  35485. _converse.api.vcard.update(this.model.contact.vcard, true).then(() => u.removeClass('fa-spin', refresh_icon)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35486. },
  35487. removeContact(ev) {
  35488. if (ev && ev.preventDefault) {
  35489. ev.preventDefault();
  35490. }
  35491. if (!_converse.allow_contact_removal) {
  35492. return;
  35493. }
  35494. const result = confirm(__("Are you sure you want to remove this contact?"));
  35495. if (result === true) {
  35496. this.modal.hide();
  35497. this.model.contact.removeFromRoster(iq => {
  35498. this.model.contact.destroy();
  35499. }, err => {
  35500. _converse.log(err, Strophe.LogLevel.ERROR);
  35501. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__('Sorry, there was an error while trying to remove %1$s as a contact.', this.model.contact.getDisplayName())]);
  35502. });
  35503. }
  35504. }
  35505. });
  35506. _converse.ChatBoxView = Backbone.NativeView.extend({
  35507. length: 200,
  35508. className: 'chatbox hidden',
  35509. is_chatroom: false,
  35510. // Leaky abstraction from MUC
  35511. events: {
  35512. 'change input.fileupload': 'onFileSelection',
  35513. 'click .chat-msg__action-edit': 'onMessageEditButtonClicked',
  35514. 'click .chatbox-navback': 'showControlBox',
  35515. 'click .close-chatbox-button': 'close',
  35516. 'click .new-msgs-indicator': 'viewUnreadMessages',
  35517. 'click .send-button': 'onFormSubmitted',
  35518. 'click .show-user-details-modal': 'showUserDetailsModal',
  35519. 'click .spoiler-toggle': 'toggleSpoilerMessage',
  35520. 'click .toggle-call': 'toggleCall',
  35521. 'click .toggle-clear': 'clearMessages',
  35522. 'click .toggle-compose-spoiler': 'toggleComposeSpoilerMessage',
  35523. 'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
  35524. 'click .toggle-smiley': 'toggleEmojiMenu',
  35525. 'click .upload-file': 'toggleFileUpload',
  35526. 'input .chat-textarea': 'inputChanged',
  35527. 'keydown .chat-textarea': 'keyPressed'
  35528. },
  35529. initialize() {
  35530. this.initDebounced();
  35531. this.model.messages.on('add', this.onMessageAdded, this);
  35532. this.model.messages.on('rendered', this.scrollDown, this);
  35533. this.model.on('show', this.show, this);
  35534. this.model.on('destroy', this.remove, this);
  35535. this.model.presence.on('change:show', this.onPresenceChanged, this);
  35536. this.model.on('showHelpMessages', this.showHelpMessages, this);
  35537. this.render();
  35538. this.fetchMessages();
  35539. _converse.emit('chatBoxOpened', this);
  35540. _converse.emit('chatBoxInitialized', this);
  35541. },
  35542. initDebounced() {
  35543. this.scrollDown = _.debounce(this._scrollDown, 250);
  35544. this.markScrolled = _.debounce(this._markScrolled, 100);
  35545. this.show = _.debounce(this._show, 250, {
  35546. 'leading': true
  35547. });
  35548. },
  35549. render() {
  35550. // XXX: Is this still needed?
  35551. this.el.setAttribute('id', this.model.get('box_id'));
  35552. this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
  35553. 'unread_msgs': __('You have unread messages')
  35554. }));
  35555. this.content = this.el.querySelector('.chat-content');
  35556. this.renderMessageForm();
  35557. this.insertHeading();
  35558. return this;
  35559. },
  35560. renderToolbar(toolbar, options) {
  35561. if (!_converse.show_toolbar) {
  35562. return this;
  35563. }
  35564. toolbar = toolbar || tpl_toolbar;
  35565. options = _.assign(this.model.toJSON(), this.getToolbarOptions(options || {}));
  35566. this.el.querySelector('.chat-toolbar').innerHTML = toolbar(options);
  35567. this.addSpoilerButton(options);
  35568. this.addFileUploadButton();
  35569. _converse.emit('renderToolbar', this);
  35570. return this;
  35571. },
  35572. renderMessageForm() {
  35573. let placeholder;
  35574. if (this.model.get('composing_spoiler')) {
  35575. placeholder = __('Hidden message');
  35576. } else {
  35577. placeholder = __('Message');
  35578. }
  35579. const form_container = this.el.querySelector('.message-form-container');
  35580. form_container.innerHTML = tpl_chatbox_message_form(_.extend(this.model.toJSON(), {
  35581. 'hint_value': _.get(this.el.querySelector('.spoiler-hint'), 'value'),
  35582. 'label_message': placeholder,
  35583. 'label_send': __('Send'),
  35584. 'label_spoiler_hint': __('Optional hint'),
  35585. 'message_value': _.get(this.el.querySelector('.chat-textarea'), 'value'),
  35586. 'show_send_button': _converse.show_send_button,
  35587. 'show_toolbar': _converse.show_toolbar,
  35588. 'unread_msgs': __('You have unread messages')
  35589. }));
  35590. this.renderToolbar();
  35591. },
  35592. showControlBox() {
  35593. // Used in mobile view, to navigate back to the controlbox
  35594. const view = _converse.chatboxviews.get('controlbox');
  35595. view.show();
  35596. this.hide();
  35597. },
  35598. showUserDetailsModal(ev) {
  35599. ev.preventDefault();
  35600. if (_.isUndefined(this.user_details_modal)) {
  35601. this.user_details_modal = new _converse.UserDetailsModal({
  35602. model: this.model
  35603. });
  35604. }
  35605. this.user_details_modal.show(ev);
  35606. },
  35607. toggleFileUpload(ev) {
  35608. this.el.querySelector('input.fileupload').click();
  35609. },
  35610. onFileSelection(evt) {
  35611. this.model.sendFiles(evt.target.files);
  35612. },
  35613. addFileUploadButton(options) {
  35614. _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain).then(result => {
  35615. if (result.length) {
  35616. this.el.querySelector('.chat-toolbar').insertAdjacentHTML('beforeend', tpl_toolbar_fileupload({
  35617. 'tooltip_upload_file': __('Choose a file to send')
  35618. }));
  35619. }
  35620. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35621. },
  35622. addSpoilerButton(options) {
  35623. /* Asynchronously adds a button for writing spoiler
  35624. * messages, based on whether the contact's client supports
  35625. * it.
  35626. */
  35627. if (!options.show_spoiler_button || this.model.get('type') === 'chatroom') {
  35628. return;
  35629. }
  35630. const contact_jid = this.model.get('jid');
  35631. const resources = this.model.presence.get('resources');
  35632. if (_.isEmpty(resources)) {
  35633. return;
  35634. }
  35635. Promise.all(_.map(_.keys(resources), resource => _converse.api.disco.supports(Strophe.NS.SPOILER, `${contact_jid}/${resource}`))).then(results => {
  35636. if (_.filter(results, 'length').length) {
  35637. const html = tpl_spoiler_button(this.model.toJSON());
  35638. if (_converse.visible_toolbar_buttons.emoji) {
  35639. this.el.querySelector('.toggle-smiley').insertAdjacentHTML('afterEnd', html);
  35640. } else {
  35641. this.el.querySelector('.chat-toolbar').insertAdjacentHTML('afterBegin', html);
  35642. }
  35643. }
  35644. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35645. },
  35646. insertHeading() {
  35647. this.heading = new _converse.ChatBoxHeading({
  35648. 'model': this.model
  35649. });
  35650. this.heading.render();
  35651. this.heading.chatview = this;
  35652. if (!_.isUndefined(this.model.contact)) {
  35653. this.model.contact.on('destroy', this.heading.render, this);
  35654. }
  35655. const flyout = this.el.querySelector('.flyout');
  35656. flyout.insertBefore(this.heading.el, flyout.querySelector('.chat-body'));
  35657. return this;
  35658. },
  35659. getToolbarOptions(options) {
  35660. let label_toggle_spoiler;
  35661. if (this.model.get('composing_spoiler')) {
  35662. label_toggle_spoiler = __('Click to write as a normal (non-spoiler) message');
  35663. } else {
  35664. label_toggle_spoiler = __('Click to write your message as a spoiler');
  35665. }
  35666. return _.extend(options || {}, {
  35667. 'label_clear': __('Clear all messages'),
  35668. 'tooltip_insert_smiley': __('Insert emojis'),
  35669. 'tooltip_start_call': __('Start a call'),
  35670. 'label_toggle_spoiler': label_toggle_spoiler,
  35671. 'show_call_button': _converse.visible_toolbar_buttons.call,
  35672. 'show_spoiler_button': _converse.visible_toolbar_buttons.spoiler,
  35673. 'use_emoji': _converse.visible_toolbar_buttons.emoji
  35674. });
  35675. },
  35676. afterMessagesFetched() {
  35677. this.insertIntoDOM();
  35678. this.scrollDown();
  35679. this.content.addEventListener('scroll', this.markScrolled.bind(this));
  35680. _converse.emit('afterMessagesFetched', this);
  35681. },
  35682. fetchMessages() {
  35683. this.model.messages.fetch({
  35684. 'add': true,
  35685. 'success': this.afterMessagesFetched.bind(this),
  35686. 'error': this.afterMessagesFetched.bind(this)
  35687. });
  35688. return this;
  35689. },
  35690. insertIntoDOM() {
  35691. /* This method gets overridden in src/converse-controlbox.js
  35692. * as well as src/converse-muc.js (if those plugins are
  35693. * enabled).
  35694. */
  35695. _converse.chatboxviews.insertRowColumn(this.el);
  35696. return this;
  35697. },
  35698. showChatEvent(message) {
  35699. const isodate = moment().format();
  35700. this.content.insertAdjacentHTML('beforeend', tpl_info({
  35701. 'extra_classes': 'chat-event',
  35702. 'message': message,
  35703. 'isodate': isodate
  35704. }));
  35705. this.insertDayIndicator(this.content.lastElementChild);
  35706. this.scrollDown();
  35707. return isodate;
  35708. },
  35709. showErrorMessage(message) {
  35710. this.content.insertAdjacentHTML('beforeend', tpl_error_message({
  35711. 'message': message,
  35712. 'isodate': moment().format()
  35713. }));
  35714. this.scrollDown();
  35715. },
  35716. addSpinner(append = false) {
  35717. if (_.isNull(this.el.querySelector('.spinner'))) {
  35718. if (append) {
  35719. this.content.insertAdjacentHTML('beforeend', tpl_spinner());
  35720. this.scrollDown();
  35721. } else {
  35722. this.content.insertAdjacentHTML('afterbegin', tpl_spinner());
  35723. }
  35724. }
  35725. },
  35726. clearSpinner() {
  35727. _.each(this.content.querySelectorAll('span.spinner'), el => el.parentNode.removeChild(el));
  35728. },
  35729. insertDayIndicator(next_msg_el) {
  35730. /* Inserts an indicator into the chat area, showing the
  35731. * day as given by the passed in date.
  35732. *
  35733. * The indicator is only inserted if necessary.
  35734. *
  35735. * Parameters:
  35736. * (HTMLElement) next_msg_el - The message element before
  35737. * which the day indicator element must be inserted.
  35738. * This element must have a "data-isodate" attribute
  35739. * which specifies its creation date.
  35740. */
  35741. const prev_msg_el = u.getPreviousElement(next_msg_el, ".message:not(.chat-state-notification)"),
  35742. prev_msg_date = _.isNull(prev_msg_el) ? null : prev_msg_el.getAttribute('data-isodate'),
  35743. next_msg_date = next_msg_el.getAttribute('data-isodate');
  35744. if (_.isNull(prev_msg_date) || moment(next_msg_date).isAfter(prev_msg_date, 'day')) {
  35745. const day_date = moment(next_msg_date).startOf('day');
  35746. next_msg_el.insertAdjacentHTML('beforeBegin', tpl_new_day({
  35747. 'isodate': day_date.format(),
  35748. 'datestring': day_date.format("dddd MMM Do YYYY")
  35749. }));
  35750. }
  35751. },
  35752. getLastMessageDate(cutoff) {
  35753. /* Return the ISO8601 format date of the latest message.
  35754. *
  35755. * Parameters:
  35756. * (Object) cutoff: Moment Date cutoff date. The last
  35757. * message received cutoff this date will be returned.
  35758. */
  35759. const first_msg = u.getFirstChildElement(this.content, '.message:not(.chat-state-notification)'),
  35760. oldest_date = first_msg ? first_msg.getAttribute('data-isodate') : null;
  35761. if (!_.isNull(oldest_date) && moment(oldest_date).isAfter(cutoff)) {
  35762. return null;
  35763. }
  35764. const last_msg = u.getLastChildElement(this.content, '.message:not(.chat-state-notification)'),
  35765. most_recent_date = last_msg ? last_msg.getAttribute('data-isodate') : null;
  35766. if (_.isNull(most_recent_date) || moment(most_recent_date).isBefore(cutoff)) {
  35767. return most_recent_date;
  35768. }
  35769. /* XXX: We avoid .chat-state-notification messages, since they are
  35770. * temporary and get removed once a new element is
  35771. * inserted into the chat area, so we don't query for
  35772. * them here, otherwise we get a null reference later
  35773. * upon element insertion.
  35774. */
  35775. const msg_dates = _.invokeMap(sizzle('.message:not(.chat-state-notification)', this.content), Element.prototype.getAttribute, 'data-isodate');
  35776. if (_.isObject(cutoff)) {
  35777. cutoff = cutoff.format();
  35778. }
  35779. msg_dates.push(cutoff);
  35780. msg_dates.sort();
  35781. const idx = msg_dates.lastIndexOf(cutoff);
  35782. if (idx === 0) {
  35783. return null;
  35784. } else {
  35785. return msg_dates[idx - 1];
  35786. }
  35787. },
  35788. setScrollPosition(message_el) {
  35789. /* Given a newly inserted message, determine whether we
  35790. * should keep the scrollbar in place (so as to not scroll
  35791. * up when using infinite scroll).
  35792. */
  35793. if (this.model.get('scrolled')) {
  35794. const next_msg_el = u.getNextElement(message_el, ".chat-msg");
  35795. if (next_msg_el) {
  35796. // The currently received message is not new, there
  35797. // are newer messages after it. So let's see if we
  35798. // should maintain our current scroll position.
  35799. if (this.content.scrollTop === 0 || this.model.get('top_visible_message')) {
  35800. const top_visible_message = this.model.get('top_visible_message') || next_msg_el;
  35801. this.model.set('top_visible_message', top_visible_message);
  35802. this.content.scrollTop = top_visible_message.offsetTop - 30;
  35803. }
  35804. }
  35805. } else {
  35806. this.scrollDown();
  35807. }
  35808. },
  35809. showHelpMessages(msgs, type, spinner) {
  35810. _.each(msgs, msg => {
  35811. this.content.insertAdjacentHTML('beforeend', tpl_help_message({
  35812. 'isodate': moment().format(),
  35813. 'type': type,
  35814. 'message': xss.filterXSS(msg, {
  35815. 'whiteList': {
  35816. 'strong': []
  35817. }
  35818. })
  35819. }));
  35820. });
  35821. if (spinner === true) {
  35822. this.addSpinner();
  35823. } else if (spinner === false) {
  35824. this.clearSpinner();
  35825. }
  35826. return this.scrollDown();
  35827. },
  35828. clearChatStateNotification(message, isodate) {
  35829. if (isodate) {
  35830. _.each(sizzle(`.chat-state-notification[data-csn="${message.get('from')}"][data-isodate="${isodate}"]`, this.content), u.removeElement);
  35831. } else {
  35832. _.each(sizzle(`.chat-state-notification[data-csn="${message.get('from')}"]`, this.content), u.removeElement);
  35833. }
  35834. },
  35835. shouldShowOnTextMessage() {
  35836. return !u.isVisible(this.el);
  35837. },
  35838. insertMessage(view) {
  35839. /* Given a view representing a message, insert it into the
  35840. * content area of the chat box.
  35841. *
  35842. * Parameters:
  35843. * (Backbone.View) message: The message Backbone.View
  35844. */
  35845. if (view.model.get('type') === 'error') {
  35846. const previous_msg_el = this.content.querySelector(`[data-msgid="${view.model.get('msgid')}"]`);
  35847. if (previous_msg_el) {
  35848. previous_msg_el.insertAdjacentElement('afterend', view.el);
  35849. return this.trigger('messageInserted', view.el);
  35850. }
  35851. }
  35852. const current_msg_date = moment(view.model.get('time')) || moment,
  35853. previous_msg_date = this.getLastMessageDate(current_msg_date);
  35854. if (_.isNull(previous_msg_date)) {
  35855. this.content.insertAdjacentElement('afterbegin', view.el);
  35856. } else {
  35857. const previous_msg_el = sizzle(`[data-isodate="${previous_msg_date}"]:last`, this.content).pop();
  35858. if (view.model.get('type') === 'error' && u.hasClass('chat-error', previous_msg_el) && previous_msg_el.textContent === view.model.get('message')) {
  35859. // We don't show a duplicate error message
  35860. return;
  35861. }
  35862. previous_msg_el.insertAdjacentElement('afterend', view.el);
  35863. this.markFollowups(view.el);
  35864. }
  35865. return this.trigger('messageInserted', view.el);
  35866. },
  35867. markFollowups(el) {
  35868. /* Given a message element, determine wether it should be
  35869. * marked as a followup message to the previous element.
  35870. *
  35871. * Also determine whether the element following it is a
  35872. * followup message or not.
  35873. *
  35874. * Followup messages are subsequent ones written by the same
  35875. * author with no other conversation elements inbetween and
  35876. * posted within 10 minutes of one another.
  35877. *
  35878. * Parameters:
  35879. * (HTMLElement) el - The message element.
  35880. */
  35881. const from = el.getAttribute('data-from'),
  35882. previous_el = el.previousElementSibling,
  35883. date = moment(el.getAttribute('data-isodate')),
  35884. next_el = el.nextElementSibling;
  35885. 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')) {
  35886. u.addClass('chat-msg--followup', el);
  35887. }
  35888. if (!next_el) {
  35889. return;
  35890. }
  35891. 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')) {
  35892. u.addClass('chat-msg--followup', next_el);
  35893. } else {
  35894. u.removeClass('chat-msg--followup', next_el);
  35895. }
  35896. },
  35897. async showMessage(message) {
  35898. /* Inserts a chat message into the content area of the chat box.
  35899. *
  35900. * Will also insert a new day indicator if the message is on a
  35901. * different day.
  35902. *
  35903. * Parameters:
  35904. * (Backbone.Model) message: The message object
  35905. */
  35906. const view = new _converse.MessageView({
  35907. 'model': message
  35908. });
  35909. await view.render();
  35910. this.clearChatStateNotification(message);
  35911. this.insertMessage(view);
  35912. this.insertDayIndicator(view.el);
  35913. this.setScrollPosition(view.el);
  35914. if (u.isNewMessage(message)) {
  35915. if (message.get('sender') === 'me') {
  35916. // We remove the "scrolled" flag so that the chat area
  35917. // gets scrolled down. We always want to scroll down
  35918. // when the user writes a message as opposed to when a
  35919. // message is received.
  35920. this.model.set('scrolled', false);
  35921. } else if (this.model.get('scrolled', true) && !u.isOnlyChatStateNotification(message)) {
  35922. this.showNewMessagesIndicator();
  35923. }
  35924. }
  35925. if (this.shouldShowOnTextMessage()) {
  35926. this.show();
  35927. } else {
  35928. this.scrollDown();
  35929. }
  35930. },
  35931. onMessageAdded(message) {
  35932. /* Handler that gets called when a new message object is created.
  35933. *
  35934. * Parameters:
  35935. * (Object) message - The message Backbone object that was added.
  35936. */
  35937. this.showMessage(message);
  35938. if (message.get('correcting')) {
  35939. this.insertIntoTextArea(message.get('message'), true, true);
  35940. }
  35941. _converse.emit('messageAdded', {
  35942. 'message': message,
  35943. 'chatbox': this.model
  35944. });
  35945. },
  35946. parseMessageForCommands(text) {
  35947. const match = text.replace(/^\s*/, "").match(/^\/(.*)\s*$/);
  35948. if (match) {
  35949. if (match[1] === "clear") {
  35950. this.clearMessages();
  35951. return true;
  35952. } else if (match[1] === "help") {
  35953. const msgs = [`<strong>/clear</strong>: ${__('Remove messages')}`, `<strong>/me</strong>: ${__('Write in the third person')}`, `<strong>/help</strong>: ${__('Show this menu')}`];
  35954. this.showHelpMessages(msgs);
  35955. return true;
  35956. }
  35957. }
  35958. },
  35959. onMessageSubmitted(text, spoiler_hint) {
  35960. /* This method gets called once the user has typed a message
  35961. * and then pressed enter in a chat box.
  35962. *
  35963. * Parameters:
  35964. * (String) text - The chat message text.
  35965. * (String) spoiler_hint - A hint in case the message
  35966. * text is a hidden/spoiler message. See XEP-0382
  35967. */
  35968. if (!_converse.connection.authenticated) {
  35969. return this.showHelpMessages(['Sorry, the connection has been lost, ' + 'and your message could not be sent'], 'error');
  35970. }
  35971. if (this.parseMessageForCommands(text)) {
  35972. return;
  35973. }
  35974. const attrs = this.model.getOutgoingMessageAttributes(text, spoiler_hint);
  35975. this.model.sendMessage(attrs);
  35976. },
  35977. setChatState(state, options) {
  35978. /* Mutator for setting the chat state of this chat session.
  35979. * Handles clearing of any chat state notification timeouts and
  35980. * setting new ones if necessary.
  35981. * Timeouts are set when the state being set is COMPOSING or PAUSED.
  35982. * After the timeout, COMPOSING will become PAUSED and PAUSED will become INACTIVE.
  35983. * See XEP-0085 Chat State Notifications.
  35984. *
  35985. * Parameters:
  35986. * (string) state - The chat state (consts ACTIVE, COMPOSING, PAUSED, INACTIVE, GONE)
  35987. */
  35988. if (!_.isUndefined(this.chat_state_timeout)) {
  35989. window.clearTimeout(this.chat_state_timeout);
  35990. delete this.chat_state_timeout;
  35991. }
  35992. if (state === _converse.COMPOSING) {
  35993. this.chat_state_timeout = window.setTimeout(this.setChatState.bind(this), _converse.TIMEOUTS.PAUSED, _converse.PAUSED);
  35994. } else if (state === _converse.PAUSED) {
  35995. this.chat_state_timeout = window.setTimeout(this.setChatState.bind(this), _converse.TIMEOUTS.INACTIVE, _converse.INACTIVE);
  35996. }
  35997. this.model.set('chat_state', state, options);
  35998. return this;
  35999. },
  36000. onFormSubmitted(ev) {
  36001. ev.preventDefault();
  36002. const textarea = this.el.querySelector('.chat-textarea'),
  36003. message = textarea.value;
  36004. if (!message.replace(/\s/g, '').length) {
  36005. return;
  36006. }
  36007. let spoiler_hint;
  36008. if (this.model.get('composing_spoiler')) {
  36009. const hint_el = this.el.querySelector('form.sendXMPPMessage input.spoiler-hint');
  36010. spoiler_hint = hint_el.value;
  36011. hint_el.value = '';
  36012. }
  36013. textarea.value = '';
  36014. u.removeClass('correcting', textarea);
  36015. textarea.focus(); // Trigger input event, so that the textarea resizes
  36016. const event = document.createEvent('Event');
  36017. event.initEvent('input', true, true);
  36018. textarea.dispatchEvent(event);
  36019. this.onMessageSubmitted(message, spoiler_hint);
  36020. _converse.emit('messageSend', message); // Suppress events, otherwise superfluous CSN gets set
  36021. // immediately after the message, causing rate-limiting issues.
  36022. this.setChatState(_converse.ACTIVE, {
  36023. 'silent': true
  36024. });
  36025. },
  36026. keyPressed(ev) {
  36027. /* Event handler for when a key is pressed in a chat box textarea.
  36028. */
  36029. if (ev.ctrlKey) {
  36030. // When ctrl is pressed, no chars are entered into the textarea.
  36031. return;
  36032. }
  36033. if (!ev.shiftKey && !ev.altKey) {
  36034. if (ev.keyCode === _converse.keycodes.FORWARD_SLASH) {
  36035. // Forward slash is used to run commands. Nothing to do here.
  36036. return;
  36037. } else if (ev.keyCode === _converse.keycodes.ESCAPE) {
  36038. return this.onEscapePressed(ev);
  36039. } else if (ev.keyCode === _converse.keycodes.ENTER) {
  36040. if (this.emoji_dropdown && u.isVisible(this.emoji_dropdown.el.querySelector('.emoji-picker'))) {
  36041. this.emoji_dropdown.toggle();
  36042. }
  36043. return this.onFormSubmitted(ev);
  36044. } else if (ev.keyCode === _converse.keycodes.UP_ARROW && !ev.target.selectionEnd) {
  36045. return this.editEarlierMessage();
  36046. } else if (ev.keyCode === _converse.keycodes.DOWN_ARROW && ev.target.selectionEnd === ev.target.value.length) {
  36047. return this.editLaterMessage();
  36048. }
  36049. }
  36050. if (_.includes([_converse.keycodes.SHIFT, _converse.keycodes.META, _converse.keycodes.META_RIGHT, _converse.keycodes.ESCAPE, _converse.keycodes.ALT], ev.keyCode)) {
  36051. return;
  36052. }
  36053. if (this.model.get('chat_state') !== _converse.COMPOSING) {
  36054. // Set chat state to composing if keyCode is not a forward-slash
  36055. // (which would imply an internal command and not a message).
  36056. this.setChatState(_converse.COMPOSING);
  36057. }
  36058. },
  36059. getOwnMessages() {
  36060. return f(this.model.messages.filter({
  36061. 'sender': 'me'
  36062. }));
  36063. },
  36064. onEscapePressed(ev) {
  36065. ev.preventDefault();
  36066. const idx = this.model.messages.findLastIndex('correcting'),
  36067. message = idx >= 0 ? this.model.messages.at(idx) : null;
  36068. if (message) {
  36069. message.save('correcting', false);
  36070. }
  36071. this.insertIntoTextArea('', true, false);
  36072. },
  36073. onMessageEditButtonClicked(ev) {
  36074. ev.preventDefault();
  36075. const idx = this.model.messages.findLastIndex('correcting'),
  36076. currently_correcting = idx >= 0 ? this.model.messages.at(idx) : null,
  36077. message_el = u.ancestor(ev.target, '.chat-msg'),
  36078. message = this.model.messages.findWhere({
  36079. 'msgid': message_el.getAttribute('data-msgid')
  36080. });
  36081. if (currently_correcting !== message) {
  36082. if (!_.isNil(currently_correcting)) {
  36083. currently_correcting.save('correcting', false);
  36084. }
  36085. message.save('correcting', true);
  36086. this.insertIntoTextArea(u.prefixMentions(message), true, true);
  36087. } else {
  36088. message.save('correcting', false);
  36089. this.insertIntoTextArea('', true, false);
  36090. }
  36091. },
  36092. editLaterMessage() {
  36093. let message;
  36094. let idx = this.model.messages.findLastIndex('correcting');
  36095. if (idx >= 0) {
  36096. this.model.messages.at(idx).save('correcting', false);
  36097. while (idx < this.model.messages.length - 1) {
  36098. idx += 1;
  36099. const candidate = this.model.messages.at(idx);
  36100. if (candidate.get('sender') === 'me' && candidate.get('message')) {
  36101. message = candidate;
  36102. break;
  36103. }
  36104. }
  36105. }
  36106. if (message) {
  36107. this.insertIntoTextArea(message.get('message'), true, true);
  36108. message.save('correcting', true);
  36109. } else {
  36110. this.insertIntoTextArea('', true, false);
  36111. }
  36112. },
  36113. editEarlierMessage() {
  36114. let message;
  36115. let idx = this.model.messages.findLastIndex('correcting');
  36116. if (idx >= 0) {
  36117. this.model.messages.at(idx).save('correcting', false);
  36118. while (idx > 0) {
  36119. idx -= 1;
  36120. const candidate = this.model.messages.at(idx);
  36121. if (candidate.get('sender') === 'me' && candidate.get('message')) {
  36122. message = candidate;
  36123. break;
  36124. }
  36125. }
  36126. }
  36127. message = message || this.getOwnMessages().findLast(msg => msg.get('message'));
  36128. if (message) {
  36129. this.insertIntoTextArea(message.get('message'), true, true);
  36130. message.save('correcting', true);
  36131. }
  36132. },
  36133. inputChanged(ev) {
  36134. ev.target.style.height = 'auto'; // Fixes weirdness
  36135. ev.target.style.height = ev.target.scrollHeight + 'px';
  36136. },
  36137. clearMessages(ev) {
  36138. if (ev && ev.preventDefault) {
  36139. ev.preventDefault();
  36140. }
  36141. const result = confirm(__("Are you sure you want to clear the messages from this conversation?"));
  36142. if (result === true) {
  36143. this.content.innerHTML = '';
  36144. this.model.messages.reset();
  36145. this.model.messages.browserStorage._clear();
  36146. }
  36147. return this;
  36148. },
  36149. insertIntoTextArea(value, replace = false, correcting = false) {
  36150. const textarea = this.el.querySelector('.chat-textarea');
  36151. if (correcting) {
  36152. u.addClass('correcting', textarea);
  36153. } else {
  36154. u.removeClass('correcting', textarea);
  36155. }
  36156. if (replace) {
  36157. textarea.value = '';
  36158. textarea.value = value;
  36159. } else {
  36160. let existing = textarea.value;
  36161. if (existing && existing[existing.length - 1] !== ' ') {
  36162. existing = existing + ' ';
  36163. }
  36164. textarea.value = '';
  36165. textarea.value = existing + value + ' ';
  36166. }
  36167. u.putCurserAtEnd(textarea);
  36168. },
  36169. createEmojiPicker() {
  36170. if (_.isUndefined(_converse.emojipicker)) {
  36171. const storage = _converse.config.get('storage'),
  36172. id = `converse.emoji-${_converse.bare_jid}`;
  36173. _converse.emojipicker = new _converse.EmojiPicker({
  36174. 'id': id
  36175. });
  36176. _converse.emojipicker.browserStorage = new Backbone.BrowserStorage[storage](id);
  36177. _converse.emojipicker.fetch();
  36178. }
  36179. this.emoji_picker_view = new _converse.EmojiPickerView({
  36180. 'model': _converse.emojipicker
  36181. });
  36182. },
  36183. insertEmoji(ev) {
  36184. ev.preventDefault();
  36185. ev.stopPropagation();
  36186. const target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  36187. this.insertIntoTextArea(target.getAttribute('data-emoji'));
  36188. },
  36189. toggleEmojiMenu(ev) {
  36190. if (_.isUndefined(this.emoji_dropdown)) {
  36191. ev.stopPropagation();
  36192. this.createEmojiPicker();
  36193. this.insertEmojiPicker();
  36194. this.renderEmojiPicker();
  36195. const dropdown_el = this.el.querySelector('.toggle-smiley.dropup');
  36196. this.emoji_dropdown = new bootstrap.Dropdown(dropdown_el, true);
  36197. this.emoji_dropdown.el = dropdown_el;
  36198. this.emoji_dropdown.toggle();
  36199. }
  36200. },
  36201. toggleCall(ev) {
  36202. ev.stopPropagation();
  36203. _converse.emit('callButtonClicked', {
  36204. connection: _converse.connection,
  36205. model: this.model
  36206. });
  36207. },
  36208. toggleComposeSpoilerMessage() {
  36209. this.model.set('composing_spoiler', !this.model.get('composing_spoiler'));
  36210. this.renderMessageForm();
  36211. this.focus();
  36212. },
  36213. toggleSpoilerMessage(ev) {
  36214. if (ev && ev.preventDefault) {
  36215. ev.preventDefault();
  36216. }
  36217. const toggle_el = ev.target,
  36218. icon_el = toggle_el.firstElementChild;
  36219. u.slideToggleElement(toggle_el.parentElement.parentElement.querySelector('.spoiler'));
  36220. if (toggle_el.getAttribute("data-toggle-state") == "closed") {
  36221. toggle_el.textContent = 'Show less';
  36222. icon_el.classList.remove("fa-eye");
  36223. icon_el.classList.add("fa-eye-slash");
  36224. toggle_el.insertAdjacentElement('afterBegin', icon_el);
  36225. toggle_el.setAttribute("data-toggle-state", "open");
  36226. } else {
  36227. toggle_el.textContent = 'Show more';
  36228. icon_el.classList.remove("fa-eye-slash");
  36229. icon_el.classList.add("fa-eye");
  36230. toggle_el.insertAdjacentElement('afterBegin', icon_el);
  36231. toggle_el.setAttribute("data-toggle-state", "closed");
  36232. }
  36233. },
  36234. onPresenceChanged(item) {
  36235. const show = item.get('show'),
  36236. fullname = this.model.getDisplayName();
  36237. let text;
  36238. if (u.isVisible(this.el)) {
  36239. if (show === 'offline') {
  36240. text = __('%1$s has gone offline', fullname);
  36241. } else if (show === 'away') {
  36242. text = __('%1$s has gone away', fullname);
  36243. } else if (show === 'dnd') {
  36244. text = __('%1$s is busy', fullname);
  36245. } else if (show === 'online') {
  36246. text = __('%1$s is online', fullname);
  36247. }
  36248. if (text) {
  36249. this.content.insertAdjacentHTML('beforeend', tpl_status_message({
  36250. 'message': text,
  36251. 'isodate': moment().format()
  36252. }));
  36253. this.scrollDown();
  36254. }
  36255. }
  36256. },
  36257. close(ev) {
  36258. if (ev && ev.preventDefault) {
  36259. ev.preventDefault();
  36260. }
  36261. if (Backbone.history.getFragment() === "converse/chat?jid=" + this.model.get('jid')) {
  36262. _converse.router.navigate('');
  36263. }
  36264. if (_converse.connection.connected) {
  36265. // Immediately sending the chat state, because the
  36266. // model is going to be destroyed afterwards.
  36267. this.setChatState(_converse.INACTIVE);
  36268. this.model.sendChatState();
  36269. }
  36270. try {
  36271. this.model.destroy();
  36272. } catch (e) {
  36273. _converse.log(e, Strophe.LogLevel.ERROR);
  36274. }
  36275. this.remove();
  36276. _converse.emit('chatBoxClosed', this);
  36277. return this;
  36278. },
  36279. renderEmojiPicker() {
  36280. this.emoji_picker_view.render();
  36281. },
  36282. insertEmojiPicker() {
  36283. var picker_el = this.el.querySelector('.emoji-picker');
  36284. if (!_.isNull(picker_el)) {
  36285. picker_el.innerHTML = '';
  36286. picker_el.appendChild(this.emoji_picker_view.el);
  36287. }
  36288. },
  36289. focus() {
  36290. const textarea_el = this.el.querySelector('.chat-textarea');
  36291. if (!_.isNull(textarea_el)) {
  36292. textarea_el.focus();
  36293. _converse.emit('chatBoxFocused', this);
  36294. }
  36295. return this;
  36296. },
  36297. hide() {
  36298. this.el.classList.add('hidden');
  36299. return this;
  36300. },
  36301. afterShown() {
  36302. this.model.clearUnreadMsgCounter();
  36303. this.setChatState(_converse.ACTIVE);
  36304. this.scrollDown();
  36305. this.focus();
  36306. },
  36307. _show(f) {
  36308. /* Inner show method that gets debounced */
  36309. if (u.isVisible(this.el)) {
  36310. this.focus();
  36311. return;
  36312. }
  36313. u.fadeIn(this.el, _.bind(this.afterShown, this));
  36314. },
  36315. showNewMessagesIndicator() {
  36316. u.showElement(this.el.querySelector('.new-msgs-indicator'));
  36317. },
  36318. hideNewMessagesIndicator() {
  36319. const new_msgs_indicator = this.el.querySelector('.new-msgs-indicator');
  36320. if (!_.isNull(new_msgs_indicator)) {
  36321. new_msgs_indicator.classList.add('hidden');
  36322. }
  36323. },
  36324. _markScrolled: function _markScrolled(ev) {
  36325. /* Called when the chat content is scrolled up or down.
  36326. * We want to record when the user has scrolled away from
  36327. * the bottom, so that we don't automatically scroll away
  36328. * from what the user is reading when new messages are
  36329. * received.
  36330. */
  36331. if (ev && ev.preventDefault) {
  36332. ev.preventDefault();
  36333. }
  36334. let scrolled = true;
  36335. const is_at_bottom = this.content.scrollTop + this.content.clientHeight >= this.content.scrollHeight - 62; // sigh...
  36336. if (is_at_bottom) {
  36337. scrolled = false;
  36338. this.onScrolledDown();
  36339. }
  36340. u.safeSave(this.model, {
  36341. 'scrolled': scrolled,
  36342. 'top_visible_message': null
  36343. });
  36344. },
  36345. viewUnreadMessages() {
  36346. this.model.save({
  36347. 'scrolled': false,
  36348. 'top_visible_message': null
  36349. });
  36350. this.scrollDown();
  36351. },
  36352. _scrollDown() {
  36353. /* Inner method that gets debounced */
  36354. if (_.isUndefined(this.content)) {
  36355. return;
  36356. }
  36357. if (u.isVisible(this.content) && !this.model.get('scrolled')) {
  36358. this.content.scrollTop = this.content.scrollHeight;
  36359. }
  36360. },
  36361. onScrolledDown() {
  36362. this.hideNewMessagesIndicator();
  36363. if (_converse.windowState !== 'hidden') {
  36364. this.model.clearUnreadMsgCounter();
  36365. }
  36366. _converse.emit('chatBoxScrolledDown', {
  36367. 'chatbox': this.model
  36368. });
  36369. },
  36370. onWindowStateChanged(state) {
  36371. if (state === 'visible') {
  36372. if (!this.model.isHidden()) {
  36373. this.setChatState(_converse.ACTIVE);
  36374. if (this.model.get('num_unread', 0)) {
  36375. this.model.clearUnreadMsgCounter();
  36376. }
  36377. }
  36378. } else if (state === 'hidden') {
  36379. this.setChatState(_converse.INACTIVE, {
  36380. 'silent': true
  36381. });
  36382. this.model.sendChatState();
  36383. _converse.connection.flush();
  36384. }
  36385. }
  36386. });
  36387. _converse.on('chatBoxViewsInitialized', () => {
  36388. const that = _converse.chatboxviews;
  36389. _converse.chatboxes.on('add', item => {
  36390. if (!that.get(item.get('id')) && item.get('type') === _converse.PRIVATE_CHAT_TYPE) {
  36391. that.add(item.get('id'), new _converse.ChatBoxView({
  36392. model: item
  36393. }));
  36394. }
  36395. });
  36396. });
  36397. _converse.on('connected', () => {
  36398. // Advertise that we support XEP-0382 Message Spoilers
  36399. _converse.api.disco.own.features.add(Strophe.NS.SPOILER);
  36400. });
  36401. /************************ BEGIN API ************************/
  36402. _.extend(_converse.api, {
  36403. /**
  36404. * The "chatview" namespace groups methods pertaining to views
  36405. * for one-on-one chats.
  36406. *
  36407. * @namespace _converse.api.chatviews
  36408. * @memberOf _converse.api
  36409. */
  36410. 'chatviews': {
  36411. /**
  36412. * Get the view of an already open chat.
  36413. *
  36414. * @method _converse.api.chatviews.get
  36415. * @returns {ChatBoxView} A [Backbone.View](http://backbonejs.org/#View) instance.
  36416. * The chat should already be open, otherwise `undefined` will be returned.
  36417. *
  36418. * @example
  36419. * // To return a single view, provide the JID of the contact:
  36420. * _converse.api.chatviews.get('buddy@example.com')
  36421. *
  36422. * @example
  36423. * // To return an array of views, provide an array of JIDs:
  36424. * _converse.api.chatviews.get(['buddy1@example.com', 'buddy2@example.com'])
  36425. */
  36426. 'get'(jids) {
  36427. if (_.isUndefined(jids)) {
  36428. _converse.log("chats.create: You need to provide at least one JID", Strophe.LogLevel.ERROR);
  36429. return null;
  36430. }
  36431. if (_.isString(jids)) {
  36432. return _converse.chatboxviews.get(jids);
  36433. }
  36434. return _.map(jids, jid => _converse.chatboxviews.get(jids));
  36435. }
  36436. }
  36437. });
  36438. /************************ END API ************************/
  36439. }
  36440. });
  36441. return converse;
  36442. });
  36443. /***/ }),
  36444. /***/ "./src/converse-controlbox.js":
  36445. /*!************************************!*\
  36446. !*** ./src/converse-controlbox.js ***!
  36447. \************************************/
  36448. /*! no static exports found */
  36449. /***/ (function(module, exports, __webpack_require__) {
  36450. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  36451. // http://conversejs.org
  36452. //
  36453. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  36454. // Licensed under the Mozilla Public License (MPLv2)
  36455. //
  36456. /*global define */
  36457. (function (root, factory) {
  36458. !(__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),
  36459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  36460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  36461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  36462. })(this, function (converse, bootstrap, _FormData, fp, tpl_brand_heading, tpl_controlbox, tpl_controlbox_toggle, tpl_login_panel) {
  36463. "use strict";
  36464. const CHATBOX_TYPE = 'chatbox';
  36465. const _converse$env = converse.env,
  36466. Strophe = _converse$env.Strophe,
  36467. Backbone = _converse$env.Backbone,
  36468. Promise = _converse$env.Promise,
  36469. _ = _converse$env._,
  36470. moment = _converse$env.moment;
  36471. const u = converse.env.utils;
  36472. const CONNECTION_STATUS_CSS_CLASS = {
  36473. 'Error': 'error',
  36474. 'Connecting': 'info',
  36475. 'Connection failure': 'error',
  36476. 'Authenticating': 'info',
  36477. 'Authentication failure': 'error',
  36478. 'Connected': 'info',
  36479. 'Disconnected': 'error',
  36480. 'Disconnecting': 'warn',
  36481. 'Attached': 'info',
  36482. 'Redirect': 'info',
  36483. 'Reconnecting': 'warn'
  36484. };
  36485. const PRETTY_CONNECTION_STATUS = {
  36486. 0: 'Error',
  36487. 1: 'Connecting',
  36488. 2: 'Connection failure',
  36489. 3: 'Authenticating',
  36490. 4: 'Authentication failure',
  36491. 5: 'Connected',
  36492. 6: 'Disconnected',
  36493. 7: 'Disconnecting',
  36494. 8: 'Attached',
  36495. 9: 'Redirect',
  36496. 10: 'Reconnecting'
  36497. };
  36498. const REPORTABLE_STATUSES = [0, // ERROR'
  36499. 1, // CONNECTING
  36500. 2, // CONNFAIL
  36501. 3, // AUTHENTICATING
  36502. 4, // AUTHFAIL
  36503. 7, // DISCONNECTING
  36504. 10 // RECONNECTING
  36505. ];
  36506. converse.plugins.add('converse-controlbox', {
  36507. /* Plugin dependencies are other plugins which might be
  36508. * overridden or relied upon, and therefore need to be loaded before
  36509. * this plugin.
  36510. *
  36511. * If the setting "strict_plugin_dependencies" is set to true,
  36512. * an error will be raised if the plugin is not found. By default it's
  36513. * false, which means these plugins are only loaded opportunistically.
  36514. *
  36515. * NB: These plugins need to have already been loaded via require.js.
  36516. */
  36517. dependencies: ["converse-modal", "converse-chatboxes", "converse-rosterview", "converse-chatview"],
  36518. overrides: {
  36519. // Overrides mentioned here will be picked up by converse.js's
  36520. // plugin architecture they will replace existing methods on the
  36521. // relevant objects or classes.
  36522. //
  36523. // New functions which don't exist yet can also be added.
  36524. tearDown() {
  36525. this.__super__.tearDown.apply(this, arguments);
  36526. if (this.rosterview) {
  36527. // Removes roster groups
  36528. this.rosterview.model.off().reset();
  36529. this.rosterview.each(function (groupview) {
  36530. groupview.removeAll();
  36531. groupview.remove();
  36532. });
  36533. this.rosterview.removeAll().remove();
  36534. }
  36535. },
  36536. ChatBoxes: {
  36537. chatBoxMayBeShown(chatbox) {
  36538. return this.__super__.chatBoxMayBeShown.apply(this, arguments) && chatbox.get('id') !== 'controlbox';
  36539. }
  36540. },
  36541. ChatBoxViews: {
  36542. closeAllChatBoxes() {
  36543. const _converse = this.__super__._converse;
  36544. this.each(function (view) {
  36545. if (view.model.get('id') === 'controlbox' && (_converse.disconnection_cause !== _converse.LOGOUT || _converse.show_controlbox_by_default)) {
  36546. return;
  36547. }
  36548. view.close();
  36549. });
  36550. return this;
  36551. },
  36552. getChatBoxWidth(view) {
  36553. const _converse = this.__super__._converse;
  36554. const controlbox = this.get('controlbox');
  36555. if (view.model.get('id') === 'controlbox') {
  36556. /* We return the width of the controlbox or its toggle,
  36557. * depending on which is visible.
  36558. */
  36559. if (!controlbox || !u.isVisible(controlbox.el)) {
  36560. return u.getOuterWidth(_converse.controlboxtoggle.el, true);
  36561. } else {
  36562. return u.getOuterWidth(controlbox.el, true);
  36563. }
  36564. } else {
  36565. return this.__super__.getChatBoxWidth.apply(this, arguments);
  36566. }
  36567. }
  36568. },
  36569. ChatBox: {
  36570. initialize() {
  36571. if (this.get('id') === 'controlbox') {
  36572. this.set({
  36573. 'time_opened': moment(0).valueOf()
  36574. });
  36575. } else {
  36576. this.__super__.initialize.apply(this, arguments);
  36577. }
  36578. }
  36579. },
  36580. ChatBoxView: {
  36581. insertIntoDOM() {
  36582. const view = this.__super__._converse.chatboxviews.get("controlbox");
  36583. if (view) {
  36584. view.el.insertAdjacentElement('afterend', this.el);
  36585. } else {
  36586. this.__super__.insertIntoDOM.apply(this, arguments);
  36587. }
  36588. return this;
  36589. }
  36590. }
  36591. },
  36592. initialize() {
  36593. /* The initialize function gets called as soon as the plugin is
  36594. * loaded by converse.js's plugin machinery.
  36595. */
  36596. const _converse = this._converse,
  36597. __ = _converse.__;
  36598. _converse.api.settings.update({
  36599. allow_logout: true,
  36600. default_domain: undefined,
  36601. locked_domain: undefined,
  36602. show_controlbox_by_default: false,
  36603. sticky_controlbox: false
  36604. });
  36605. _converse.api.promises.add('controlboxInitialized');
  36606. _converse.addControlBox = () => {
  36607. return _converse.chatboxes.add({
  36608. 'id': 'controlbox',
  36609. 'box_id': 'controlbox',
  36610. 'type': _converse.CONTROLBOX_TYPE,
  36611. 'closed': !_converse.show_controlbox_by_default
  36612. });
  36613. };
  36614. _converse.ControlBoxView = _converse.ChatBoxView.extend({
  36615. tagName: 'div',
  36616. className: 'chatbox',
  36617. id: 'controlbox',
  36618. events: {
  36619. 'click a.close-chatbox-button': 'close'
  36620. },
  36621. initialize() {
  36622. if (_.isUndefined(_converse.controlboxtoggle)) {
  36623. _converse.controlboxtoggle = new _converse.ControlBoxToggle();
  36624. }
  36625. _converse.controlboxtoggle.el.insertAdjacentElement('afterend', this.el);
  36626. this.model.on('change:connected', this.onConnected, this);
  36627. this.model.on('destroy', this.hide, this);
  36628. this.model.on('hide', this.hide, this);
  36629. this.model.on('show', this.show, this);
  36630. this.model.on('change:closed', this.ensureClosedState, this);
  36631. this.render();
  36632. if (this.model.get('connected')) {
  36633. this.insertRoster();
  36634. }
  36635. _converse.emit('controlboxInitialized', this);
  36636. },
  36637. render() {
  36638. if (this.model.get('connected')) {
  36639. if (_.isUndefined(this.model.get('closed'))) {
  36640. this.model.set('closed', !_converse.show_controlbox_by_default);
  36641. }
  36642. }
  36643. this.el.innerHTML = tpl_controlbox(_.extend(this.model.toJSON()));
  36644. if (!this.model.get('closed')) {
  36645. this.show();
  36646. } else {
  36647. this.hide();
  36648. }
  36649. if (!_converse.connection.connected || !_converse.connection.authenticated || _converse.connection.disconnecting) {
  36650. this.renderLoginPanel();
  36651. } else if (this.model.get('connected') && (!this.controlbox_pane || !u.isVisible(this.controlbox_pane.el))) {
  36652. this.renderControlBoxPane();
  36653. }
  36654. return this;
  36655. },
  36656. onConnected() {
  36657. if (this.model.get('connected')) {
  36658. this.render();
  36659. this.insertRoster();
  36660. }
  36661. },
  36662. insertRoster() {
  36663. if (_converse.authentication === _converse.ANONYMOUS) {
  36664. return;
  36665. }
  36666. /* Place the rosterview inside the "Contacts" panel. */
  36667. _converse.api.waitUntil('rosterViewInitialized').then(() => this.controlbox_pane.el.insertAdjacentElement('beforeEnd', _converse.rosterview.el)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  36668. },
  36669. createBrandHeadingHTML() {
  36670. return tpl_brand_heading({
  36671. 'sticky_controlbox': _converse.sticky_controlbox
  36672. });
  36673. },
  36674. insertBrandHeading() {
  36675. const heading_el = this.el.querySelector('.brand-heading-container');
  36676. if (_.isNull(heading_el)) {
  36677. const el = this.el.querySelector('.controlbox-head');
  36678. el.insertAdjacentHTML('beforeend', this.createBrandHeadingHTML());
  36679. } else {
  36680. heading_el.outerHTML = this.createBrandHeadingHTML();
  36681. }
  36682. },
  36683. renderLoginPanel() {
  36684. this.el.classList.add("logged-out");
  36685. if (_.isNil(this.loginpanel)) {
  36686. this.loginpanel = new _converse.LoginPanel({
  36687. 'model': new _converse.LoginPanelModel()
  36688. });
  36689. const panes = this.el.querySelector('.controlbox-panes');
  36690. panes.innerHTML = '';
  36691. panes.appendChild(this.loginpanel.render().el);
  36692. this.insertBrandHeading();
  36693. } else {
  36694. this.loginpanel.render();
  36695. }
  36696. this.loginpanel.initPopovers();
  36697. return this;
  36698. },
  36699. renderControlBoxPane() {
  36700. /* Renders the "Contacts" panel of the controlbox.
  36701. *
  36702. * This will only be called after the user has already been
  36703. * logged in.
  36704. */
  36705. if (this.loginpanel) {
  36706. this.loginpanel.remove();
  36707. delete this.loginpanel;
  36708. }
  36709. this.el.classList.remove("logged-out");
  36710. this.controlbox_pane = new _converse.ControlBoxPane();
  36711. this.el.querySelector('.controlbox-panes').insertAdjacentElement('afterBegin', this.controlbox_pane.el);
  36712. },
  36713. close(ev) {
  36714. if (ev && ev.preventDefault) {
  36715. ev.preventDefault();
  36716. }
  36717. if (_converse.sticky_controlbox) {
  36718. return;
  36719. }
  36720. if (_converse.connection.connected && !_converse.connection.disconnecting) {
  36721. this.model.save({
  36722. 'closed': true
  36723. });
  36724. } else {
  36725. this.model.trigger('hide');
  36726. }
  36727. _converse.emit('controlBoxClosed', this);
  36728. return this;
  36729. },
  36730. ensureClosedState() {
  36731. if (this.model.get('closed')) {
  36732. this.hide();
  36733. } else {
  36734. this.show();
  36735. }
  36736. },
  36737. hide(callback) {
  36738. if (_converse.sticky_controlbox) {
  36739. return;
  36740. }
  36741. u.addClass('hidden', this.el);
  36742. _converse.emit('chatBoxClosed', this);
  36743. if (!_converse.connection.connected) {
  36744. _converse.controlboxtoggle.render();
  36745. }
  36746. _converse.controlboxtoggle.show(callback);
  36747. return this;
  36748. },
  36749. onControlBoxToggleHidden() {
  36750. this.model.set('closed', false);
  36751. this.el.classList.remove('hidden');
  36752. _converse.emit('controlBoxOpened', this);
  36753. },
  36754. show() {
  36755. _converse.controlboxtoggle.hide(this.onControlBoxToggleHidden.bind(this));
  36756. return this;
  36757. },
  36758. showHelpMessages() {
  36759. /* Override showHelpMessages in ChatBoxView, for now do nothing.
  36760. *
  36761. * Parameters:
  36762. * (Array) msgs: Array of messages
  36763. */
  36764. return;
  36765. }
  36766. });
  36767. _converse.LoginPanelModel = Backbone.Model.extend({
  36768. defaults: {
  36769. // Passed-by-reference. Fine in this case because there's
  36770. // only one such model.
  36771. 'errors': []
  36772. }
  36773. });
  36774. _converse.LoginPanel = Backbone.VDOMView.extend({
  36775. tagName: 'div',
  36776. id: "converse-login-panel",
  36777. className: 'controlbox-pane fade-in',
  36778. events: {
  36779. 'submit form#converse-login': 'authenticate',
  36780. 'change input': 'validate'
  36781. },
  36782. initialize(cfg) {
  36783. this.model.on('change', this.render, this);
  36784. this.listenTo(_converse.connfeedback, 'change', this.render);
  36785. this.render();
  36786. },
  36787. toHTML() {
  36788. const connection_status = _converse.connfeedback.get('connection_status');
  36789. let feedback_class, pretty_status;
  36790. if (_.includes(REPORTABLE_STATUSES, connection_status)) {
  36791. pretty_status = PRETTY_CONNECTION_STATUS[connection_status];
  36792. feedback_class = CONNECTION_STATUS_CSS_CLASS[pretty_status];
  36793. }
  36794. return tpl_login_panel(_.extend(this.model.toJSON(), {
  36795. '__': __,
  36796. '_converse': _converse,
  36797. 'ANONYMOUS': _converse.ANONYMOUS,
  36798. 'EXTERNAL': _converse.EXTERNAL,
  36799. 'LOGIN': _converse.LOGIN,
  36800. 'PREBIND': _converse.PREBIND,
  36801. 'auto_login': _converse.auto_login,
  36802. 'authentication': _converse.authentication,
  36803. 'connection_status': connection_status,
  36804. 'conn_feedback_class': feedback_class,
  36805. 'conn_feedback_subject': pretty_status,
  36806. 'conn_feedback_message': _converse.connfeedback.get('message'),
  36807. 'placeholder_username': (_converse.locked_domain || _converse.default_domain) && __('Username') || __('user@domain')
  36808. }));
  36809. },
  36810. initPopovers() {
  36811. _.forEach(this.el.querySelectorAll('[data-title]'), el => {
  36812. const popover = new bootstrap.Popover(el, {
  36813. 'trigger': _converse.view_mode === 'mobile' && 'click' || 'hover',
  36814. 'dismissible': _converse.view_mode === 'mobile' && true || false,
  36815. 'container': this.el.parentElement.parentElement.parentElement
  36816. });
  36817. });
  36818. },
  36819. validate() {
  36820. const form = this.el.querySelector('form');
  36821. const jid_element = form.querySelector('input[name=jid]');
  36822. if (jid_element.value && !_converse.locked_domain && !_converse.default_domain && !u.isValidJID(jid_element.value)) {
  36823. jid_element.setCustomValidity(__('Please enter a valid XMPP address'));
  36824. return false;
  36825. }
  36826. jid_element.setCustomValidity('');
  36827. return true;
  36828. },
  36829. authenticate(ev) {
  36830. /* Authenticate the user based on a form submission event.
  36831. */
  36832. if (ev && ev.preventDefault) {
  36833. ev.preventDefault();
  36834. }
  36835. if (_converse.authentication === _converse.ANONYMOUS) {
  36836. this.connect(_converse.jid, null);
  36837. return;
  36838. }
  36839. if (!this.validate()) {
  36840. return;
  36841. }
  36842. const form_data = new FormData(ev.target);
  36843. _converse.config.save({
  36844. 'trusted': form_data.get('trusted') && true || false,
  36845. 'storage': form_data.get('trusted') ? 'local' : 'session'
  36846. });
  36847. let jid = form_data.get('jid');
  36848. if (_converse.locked_domain) {
  36849. const last_part = '@' + _converse.locked_domain;
  36850. if (jid.endsWith(last_part)) {
  36851. jid = jid.substr(0, jid.length - last_part.length);
  36852. }
  36853. jid = Strophe.escapeNode(jid) + last_part;
  36854. } else if (_converse.default_domain && !_.includes(jid, '@')) {
  36855. jid = jid + '@' + _converse.default_domain;
  36856. }
  36857. this.connect(jid, form_data.get('password'));
  36858. },
  36859. connect(jid, password) {
  36860. if (jid) {
  36861. const resource = Strophe.getResourceFromJid(jid);
  36862. if (!resource) {
  36863. jid = jid.toLowerCase() + _converse.generateResource();
  36864. } else {
  36865. jid = Strophe.getBareJidFromJid(jid).toLowerCase() + '/' + resource;
  36866. }
  36867. }
  36868. if (_.includes(["converse/login", "converse/register"], Backbone.history.getFragment())) {
  36869. _converse.router.navigate('', {
  36870. 'replace': true
  36871. });
  36872. }
  36873. _converse.connection.reset();
  36874. _converse.connection.connect(jid, password, _converse.onConnectStatusChanged);
  36875. }
  36876. });
  36877. _converse.ControlBoxPane = Backbone.NativeView.extend({
  36878. tagName: 'div',
  36879. className: 'controlbox-pane',
  36880. initialize() {
  36881. _converse.xmppstatusview = new _converse.XMPPStatusView({
  36882. 'model': _converse.xmppstatus
  36883. });
  36884. this.el.insertAdjacentElement('afterBegin', _converse.xmppstatusview.render().el);
  36885. }
  36886. });
  36887. _converse.ControlBoxToggle = Backbone.NativeView.extend({
  36888. tagName: 'a',
  36889. className: 'toggle-controlbox hidden',
  36890. id: 'toggle-controlbox',
  36891. events: {
  36892. 'click': 'onClick'
  36893. },
  36894. attributes: {
  36895. 'href': "#"
  36896. },
  36897. initialize() {
  36898. _converse.chatboxviews.insertRowColumn(this.render().el);
  36899. _converse.api.waitUntil('initialized').then(this.render.bind(this)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  36900. },
  36901. render() {
  36902. // We let the render method of ControlBoxView decide whether
  36903. // the ControlBox or the Toggle must be shown. This prevents
  36904. // artifacts (i.e. on page load the toggle is shown only to then
  36905. // seconds later be hidden in favor of the control box).
  36906. this.el.innerHTML = tpl_controlbox_toggle({
  36907. 'label_toggle': _converse.connection.connected ? __('Chat Contacts') : __('Toggle chat')
  36908. });
  36909. return this;
  36910. },
  36911. hide(callback) {
  36912. u.hideElement(this.el);
  36913. callback();
  36914. },
  36915. show(callback) {
  36916. u.fadeIn(this.el, callback);
  36917. },
  36918. showControlBox() {
  36919. let controlbox = _converse.chatboxes.get('controlbox');
  36920. if (!controlbox) {
  36921. controlbox = _converse.addControlBox();
  36922. }
  36923. if (_converse.connection.connected) {
  36924. controlbox.save({
  36925. closed: false
  36926. });
  36927. } else {
  36928. controlbox.trigger('show');
  36929. }
  36930. },
  36931. onClick(e) {
  36932. e.preventDefault();
  36933. if (u.isVisible(_converse.root.querySelector("#controlbox"))) {
  36934. const controlbox = _converse.chatboxes.get('controlbox');
  36935. if (_converse.connection.connected) {
  36936. controlbox.save({
  36937. closed: true
  36938. });
  36939. } else {
  36940. controlbox.trigger('hide');
  36941. }
  36942. } else {
  36943. this.showControlBox();
  36944. }
  36945. }
  36946. });
  36947. _converse.on('chatBoxViewsInitialized', () => {
  36948. const that = _converse.chatboxviews;
  36949. _converse.chatboxes.on('add', item => {
  36950. if (item.get('type') === _converse.CONTROLBOX_TYPE) {
  36951. const view = that.get(item.get('id'));
  36952. if (view) {
  36953. view.model = item;
  36954. view.initialize();
  36955. } else {
  36956. that.add(item.get('id'), new _converse.ControlBoxView({
  36957. model: item
  36958. }));
  36959. }
  36960. }
  36961. });
  36962. });
  36963. _converse.on('clearSession', () => {
  36964. if (_converse.config.get('trusted')) {
  36965. const chatboxes = _.get(_converse, 'chatboxes', null);
  36966. if (!_.isNil(chatboxes)) {
  36967. const controlbox = chatboxes.get('controlbox');
  36968. if (controlbox && controlbox.collection && controlbox.collection.browserStorage) {
  36969. controlbox.save({
  36970. 'connected': false
  36971. });
  36972. }
  36973. }
  36974. }
  36975. });
  36976. Promise.all([_converse.api.waitUntil('connectionInitialized'), _converse.api.waitUntil('chatBoxViewsInitialized')]).then(_converse.addControlBox).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  36977. _converse.on('chatBoxesFetched', () => {
  36978. const controlbox = _converse.chatboxes.get('controlbox') || _converse.addControlBox();
  36979. controlbox.save({
  36980. connected: true
  36981. });
  36982. });
  36983. const disconnect = function disconnect() {
  36984. /* Upon disconnection, set connected to `false`, so that if
  36985. * we reconnect, "onConnected" will be called,
  36986. * to fetch the roster again and to send out a presence stanza.
  36987. */
  36988. const view = _converse.chatboxviews.get('controlbox');
  36989. view.model.set({
  36990. 'connected': false
  36991. });
  36992. return view;
  36993. };
  36994. _converse.on('disconnected', () => disconnect().renderLoginPanel());
  36995. _converse.on('will-reconnect', disconnect);
  36996. }
  36997. });
  36998. });
  36999. /***/ }),
  37000. /***/ "./src/converse-core.js":
  37001. /*!******************************!*\
  37002. !*** ./src/converse-core.js ***!
  37003. \******************************/
  37004. /*! no static exports found */
  37005. /***/ (function(module, exports, __webpack_require__) {
  37006. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  37007. // https://conversejs.org
  37008. //
  37009. // Copyright (c) 2013-2018, the Converse.js developers
  37010. // Licensed under the Mozilla Public License (MPLv2)
  37011. (function (root, factory) {
  37012. !(__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.js */ "./node_modules/strophe.js/dist/strophe.js"), __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),
  37013. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  37014. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  37015. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  37016. })(this, function (sizzle, Promise, _, f, polyfill, i18n, u, moment, Strophe, pluggable, Backbone) {
  37017. "use strict"; // Strophe globals
  37018. const _Strophe = Strophe,
  37019. $build = _Strophe.$build,
  37020. $iq = _Strophe.$iq,
  37021. $msg = _Strophe.$msg,
  37022. $pres = _Strophe.$pres;
  37023. const b64_sha1 = Strophe.SHA1.b64_sha1;
  37024. Strophe = Strophe.Strophe; // Add Strophe Namespaces
  37025. Strophe.addNamespace('CARBONS', 'urn:xmpp:carbons:2');
  37026. Strophe.addNamespace('CHATSTATES', 'http://jabber.org/protocol/chatstates');
  37027. Strophe.addNamespace('CSI', 'urn:xmpp:csi:0');
  37028. Strophe.addNamespace('DELAY', 'urn:xmpp:delay');
  37029. Strophe.addNamespace('FORWARD', 'urn:xmpp:forward:0');
  37030. Strophe.addNamespace('HINTS', 'urn:xmpp:hints');
  37031. Strophe.addNamespace('HTTPUPLOAD', 'urn:xmpp:http:upload:0');
  37032. Strophe.addNamespace('MAM', 'urn:xmpp:mam:2');
  37033. Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick');
  37034. Strophe.addNamespace('OMEMO', "eu.siacs.conversations.axolotl");
  37035. Strophe.addNamespace('OUTOFBAND', 'jabber:x:oob');
  37036. Strophe.addNamespace('PUBSUB', 'http://jabber.org/protocol/pubsub');
  37037. Strophe.addNamespace('REGISTER', 'jabber:iq:register');
  37038. Strophe.addNamespace('ROSTERX', 'http://jabber.org/protocol/rosterx');
  37039. Strophe.addNamespace('RSM', 'http://jabber.org/protocol/rsm');
  37040. Strophe.addNamespace('SID', 'urn:xmpp:sid:0');
  37041. Strophe.addNamespace('SPOILER', 'urn:xmpp:spoiler:0');
  37042. Strophe.addNamespace('VCARD', 'vcard-temp');
  37043. Strophe.addNamespace('VCARDUPDATE', 'vcard-temp:x:update');
  37044. Strophe.addNamespace('XFORM', 'jabber:x:data'); // Use Mustache style syntax for variable interpolation
  37045. /* Configuration of Lodash templates (this config is distinct to the
  37046. * config of requirejs-tpl in main.js). This one is for normal inline templates.
  37047. */
  37048. _.templateSettings = {
  37049. 'escape': /\{\{\{([\s\S]+?)\}\}\}/g,
  37050. 'evaluate': /\{\[([\s\S]+?)\]\}/g,
  37051. 'interpolate': /\{\{([\s\S]+?)\}\}/g,
  37052. 'imports': {
  37053. '_': _
  37054. }
  37055. };
  37056. /**
  37057. * A private, closured object containing the private api (via `_converse.api`)
  37058. * as well as private methods and internal data-structures.
  37059. *
  37060. * @namespace _converse
  37061. */
  37062. const _converse = {
  37063. 'templates': {},
  37064. 'promises': {}
  37065. };
  37066. _.extend(_converse, Backbone.Events); // Core plugins are whitelisted automatically
  37067. _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
  37068. // webserver, which is often also set to 60 and might therefore sometimes
  37069. // return a 504 error page instead of passing through to the BOSH proxy.
  37070. const BOSH_WAIT = 59; // Make converse pluggable
  37071. pluggable.enable(_converse, '_converse', 'pluggable');
  37072. _converse.keycodes = {
  37073. TAB: 9,
  37074. ENTER: 13,
  37075. SHIFT: 16,
  37076. CTRL: 17,
  37077. ALT: 18,
  37078. ESCAPE: 27,
  37079. UP_ARROW: 38,
  37080. DOWN_ARROW: 40,
  37081. FORWARD_SLASH: 47,
  37082. AT: 50,
  37083. META: 91,
  37084. META_RIGHT: 93
  37085. }; // Module-level constants
  37086. _converse.STATUS_WEIGHTS = {
  37087. 'offline': 6,
  37088. 'unavailable': 5,
  37089. 'xa': 4,
  37090. 'away': 3,
  37091. 'dnd': 2,
  37092. 'chat': 1,
  37093. // We currently don't differentiate between "chat" and "online"
  37094. 'online': 1
  37095. };
  37096. _converse.PRETTY_CHAT_STATUS = {
  37097. 'offline': 'Offline',
  37098. 'unavailable': 'Unavailable',
  37099. 'xa': 'Extended Away',
  37100. 'away': 'Away',
  37101. 'dnd': 'Do not disturb',
  37102. 'chat': 'Chattty',
  37103. 'online': 'Online'
  37104. };
  37105. _converse.ANONYMOUS = "anonymous";
  37106. _converse.CLOSED = 'closed';
  37107. _converse.EXTERNAL = "external";
  37108. _converse.LOGIN = "login";
  37109. _converse.LOGOUT = "logout";
  37110. _converse.OPENED = 'opened';
  37111. _converse.PREBIND = "prebind";
  37112. _converse.IQ_TIMEOUT = 20000;
  37113. _converse.CONNECTION_STATUS = {
  37114. 0: 'ERROR',
  37115. 1: 'CONNECTING',
  37116. 2: 'CONNFAIL',
  37117. 3: 'AUTHENTICATING',
  37118. 4: 'AUTHFAIL',
  37119. 5: 'CONNECTED',
  37120. 6: 'DISCONNECTED',
  37121. 7: 'DISCONNECTING',
  37122. 8: 'ATTACHED',
  37123. 9: 'REDIRECT',
  37124. 10: 'RECONNECTING'
  37125. };
  37126. _converse.SUCCESS = 'success';
  37127. _converse.FAILURE = 'failure';
  37128. _converse.DEFAULT_IMAGE_TYPE = 'image/png';
  37129. _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==";
  37130. _converse.TIMEOUTS = {
  37131. // Set as module attr so that we can override in tests.
  37132. 'PAUSED': 10000,
  37133. 'INACTIVE': 90000
  37134. }; // XEP-0085 Chat states
  37135. // http://xmpp.org/extensions/xep-0085.html
  37136. _converse.INACTIVE = 'inactive';
  37137. _converse.ACTIVE = 'active';
  37138. _converse.COMPOSING = 'composing';
  37139. _converse.PAUSED = 'paused';
  37140. _converse.GONE = 'gone'; // Chat types
  37141. _converse.PRIVATE_CHAT_TYPE = 'chatbox';
  37142. _converse.CHATROOMS_TYPE = 'chatroom';
  37143. _converse.HEADLINES_TYPE = 'headline';
  37144. _converse.CONTROLBOX_TYPE = 'controlbox'; // Default configuration values
  37145. // ----------------------------
  37146. _converse.default_settings = {
  37147. allow_non_roster_messaging: false,
  37148. animate: true,
  37149. authentication: 'login',
  37150. // Available values are "login", "prebind", "anonymous" and "external".
  37151. auto_away: 0,
  37152. // Seconds after which user status is set to 'away'
  37153. auto_login: false,
  37154. // Currently only used in connection with anonymous login
  37155. auto_reconnect: true,
  37156. auto_xa: 0,
  37157. // Seconds after which user status is set to 'xa'
  37158. blacklisted_plugins: [],
  37159. bosh_service_url: undefined,
  37160. connection_options: {},
  37161. credentials_url: null,
  37162. // URL from where login credentials can be fetched
  37163. csi_waiting_time: 0,
  37164. // Support for XEP-0352. Seconds before client is considered idle and CSI is sent out.
  37165. debug: false,
  37166. default_state: 'online',
  37167. expose_rid_and_sid: false,
  37168. geouri_regex: /https:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
  37169. geouri_replacement: 'https://www.openstreetmap.org/?mlat=$1&mlon=$2#map=18/$1/$2',
  37170. jid: undefined,
  37171. keepalive: true,
  37172. locales_url: 'locale/{{{locale}}}/LC_MESSAGES/converse.json',
  37173. 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'],
  37174. message_carbons: true,
  37175. nickname: undefined,
  37176. password: undefined,
  37177. prebind_url: null,
  37178. priority: 0,
  37179. rid: undefined,
  37180. root: window.document,
  37181. sid: undefined,
  37182. strict_plugin_dependencies: false,
  37183. trusted: true,
  37184. view_mode: 'overlayed',
  37185. // Choices are 'overlayed', 'fullscreen', 'mobile'
  37186. websocket_url: undefined,
  37187. whitelisted_plugins: []
  37188. };
  37189. _converse.log = function (message, level, style = '') {
  37190. /* Logs messages to the browser's developer console.
  37191. *
  37192. * Parameters:
  37193. * (String) message - The message to be logged.
  37194. * (Integer) level - The loglevel which allows for filtering of log
  37195. * messages.
  37196. *
  37197. * Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn',
  37198. * 3 for 'error' and 4 for 'fatal'.
  37199. *
  37200. * When using the 'error' or 'warn' loglevels, a full stacktrace will be
  37201. * logged as well.
  37202. */
  37203. if (level === Strophe.LogLevel.ERROR || level === Strophe.LogLevel.FATAL) {
  37204. style = style || 'color: maroon';
  37205. }
  37206. if (message instanceof Error) {
  37207. message = message.stack;
  37208. } else if (_.isElement(message)) {
  37209. message = message.outerHTML;
  37210. }
  37211. const prefix = style ? '%c' : '';
  37212. const logger = _.assign({
  37213. 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  37214. 'error': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  37215. 'info': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  37216. 'warn': _.get(console, 'log') ? console.log.bind(console) : _.noop
  37217. }, console);
  37218. if (level === Strophe.LogLevel.ERROR) {
  37219. logger.error(`${prefix} ERROR: ${message}`, style);
  37220. } else if (level === Strophe.LogLevel.WARN) {
  37221. if (_converse.debug) {
  37222. logger.warn(`${prefix} ${moment().format()} WARNING: ${message}`, style);
  37223. }
  37224. } else if (level === Strophe.LogLevel.FATAL) {
  37225. logger.error(`${prefix} FATAL: ${message}`, style);
  37226. } else if (_converse.debug) {
  37227. if (level === Strophe.LogLevel.DEBUG) {
  37228. logger.debug(`${prefix} ${moment().format()} DEBUG: ${message}`, style);
  37229. } else {
  37230. logger.info(`${prefix} ${moment().format()} INFO: ${message}`, style);
  37231. }
  37232. }
  37233. };
  37234. Strophe.log = function (level, msg) {
  37235. _converse.log(level + ' ' + msg, level);
  37236. };
  37237. Strophe.error = function (msg) {
  37238. _converse.log(msg, Strophe.LogLevel.ERROR);
  37239. };
  37240. _converse.__ = function (str) {
  37241. /* Translate the given string based on the current locale.
  37242. *
  37243. * Parameters:
  37244. * (String) str - The string to translate.
  37245. */
  37246. if (_.isUndefined(i18n)) {
  37247. return str;
  37248. }
  37249. return i18n.translate.apply(i18n, arguments);
  37250. };
  37251. const __ = _converse.__;
  37252. const PROMISES = ['initialized', 'connectionInitialized', 'pluginsInitialized', 'statusInitialized'];
  37253. function addPromise(promise) {
  37254. /* Private function, used to add a new promise to the ones already
  37255. * available via the `waitUntil` api method.
  37256. */
  37257. _converse.promises[promise] = u.getResolveablePromise();
  37258. }
  37259. _converse.emit = function (name) {
  37260. /* Event emitter and promise resolver */
  37261. _converse.trigger.apply(this, arguments);
  37262. const promise = _converse.promises[name];
  37263. if (!_.isUndefined(promise)) {
  37264. promise.resolve();
  37265. }
  37266. };
  37267. _converse.isSingleton = function () {
  37268. return _.includes(['mobile', 'fullscreen', 'embedded'], _converse.view_mode);
  37269. };
  37270. _converse.router = new Backbone.Router();
  37271. _converse.initialize = function (settings, callback) {
  37272. settings = !_.isUndefined(settings) ? settings : {};
  37273. const init_promise = u.getResolveablePromise();
  37274. _.each(PROMISES, addPromise);
  37275. if (!_.isUndefined(_converse.connection)) {
  37276. // Looks like _converse.initialized was called again without logging
  37277. // out or disconnecting in the previous session.
  37278. // This happens in tests. We therefore first clean up.
  37279. Backbone.history.stop();
  37280. _converse.chatboxviews.closeAllChatBoxes();
  37281. if (_converse.bookmarks) {
  37282. _converse.bookmarks.reset();
  37283. }
  37284. delete _converse.controlboxtoggle;
  37285. delete _converse.chatboxviews;
  37286. _converse.connection.reset();
  37287. _converse.stopListening();
  37288. _converse.tearDown();
  37289. delete _converse.config;
  37290. _converse.initClientConfig();
  37291. _converse.off();
  37292. }
  37293. if ('onpagehide' in window) {
  37294. // Pagehide gets thrown in more cases than unload. Specifically it
  37295. // gets thrown when the page is cached and not just
  37296. // closed/destroyed. It's the only viable event on mobile Safari.
  37297. // https://www.webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/
  37298. _converse.unloadevent = 'pagehide';
  37299. } else if ('onbeforeunload' in window) {
  37300. _converse.unloadevent = 'beforeunload';
  37301. } else if ('onunload' in window) {
  37302. _converse.unloadevent = 'unload';
  37303. }
  37304. _.assignIn(this, this.default_settings); // Allow only whitelisted configuration attributes to be overwritten
  37305. _.assignIn(this, _.pick(settings, _.keys(this.default_settings)));
  37306. if (this.authentication === _converse.ANONYMOUS) {
  37307. if (this.auto_login && !this.jid) {
  37308. throw new Error("Config Error: you need to provide the server's " + "domain via the 'jid' option when using anonymous " + "authentication with auto_login.");
  37309. }
  37310. }
  37311. /* Localisation */
  37312. if (!_.isUndefined(i18n)) {
  37313. i18n.setLocales(settings.i18n, _converse);
  37314. } else {
  37315. _converse.locale = 'en';
  37316. } // Module-level variables
  37317. // ----------------------
  37318. this.callback = callback || _.noop;
  37319. /* When reloading the page:
  37320. * For new sessions, we need to send out a presence stanza to notify
  37321. * the server/network that we're online.
  37322. * When re-attaching to an existing session (e.g. via the keepalive
  37323. * option), we don't need to again send out a presence stanza, because
  37324. * it's as if "we never left" (see onConnectStatusChanged).
  37325. * https://github.com/jcbrand/converse.js/issues/521
  37326. */
  37327. this.send_initial_presence = true;
  37328. this.msg_counter = 0;
  37329. this.user_settings = settings; // Save the user settings so that they can be used by plugins
  37330. // Module-level functions
  37331. // ----------------------
  37332. this.generateResource = () => `/converse.js-${Math.floor(Math.random() * 139749528).toString()}`;
  37333. this.sendCSI = function (stat) {
  37334. /* Send out a Chat Status Notification (XEP-0352)
  37335. *
  37336. * Parameters:
  37337. * (String) stat: The user's chat status
  37338. */
  37339. /* Send out a Chat Status Notification (XEP-0352) */
  37340. // XXX if (converse.features[Strophe.NS.CSI] || true) {
  37341. _converse.connection.send($build(stat, {
  37342. xmlns: Strophe.NS.CSI
  37343. }));
  37344. _converse.inactive = stat === _converse.INACTIVE ? true : false;
  37345. };
  37346. this.onUserActivity = function () {
  37347. /* Resets counters and flags relating to CSI and auto_away/auto_xa */
  37348. if (_converse.idle_seconds > 0) {
  37349. _converse.idle_seconds = 0;
  37350. }
  37351. if (!_converse.connection.authenticated) {
  37352. // We can't send out any stanzas when there's no authenticated connection.
  37353. // converse can happen when the connection reconnects.
  37354. return;
  37355. }
  37356. if (_converse.inactive) {
  37357. _converse.sendCSI(_converse.ACTIVE);
  37358. }
  37359. if (_converse.auto_changed_status === true) {
  37360. _converse.auto_changed_status = false; // XXX: we should really remember the original state here, and
  37361. // then set it back to that...
  37362. _converse.xmppstatus.set('status', _converse.default_state);
  37363. }
  37364. };
  37365. this.onEverySecond = function () {
  37366. /* An interval handler running every second.
  37367. * Used for CSI and the auto_away and auto_xa features.
  37368. */
  37369. if (!_converse.connection.authenticated) {
  37370. // We can't send out any stanzas when there's no authenticated connection.
  37371. // This can happen when the connection reconnects.
  37372. return;
  37373. }
  37374. const stat = _converse.xmppstatus.get('status');
  37375. _converse.idle_seconds++;
  37376. if (_converse.csi_waiting_time > 0 && _converse.idle_seconds > _converse.csi_waiting_time && !_converse.inactive) {
  37377. _converse.sendCSI(_converse.INACTIVE);
  37378. }
  37379. if (_converse.auto_away > 0 && _converse.idle_seconds > _converse.auto_away && stat !== 'away' && stat !== 'xa' && stat !== 'dnd') {
  37380. _converse.auto_changed_status = true;
  37381. _converse.xmppstatus.set('status', 'away');
  37382. } else if (_converse.auto_xa > 0 && _converse.idle_seconds > _converse.auto_xa && stat !== 'xa' && stat !== 'dnd') {
  37383. _converse.auto_changed_status = true;
  37384. _converse.xmppstatus.set('status', 'xa');
  37385. }
  37386. };
  37387. this.registerIntervalHandler = function () {
  37388. /* Set an interval of one second and register a handler for it.
  37389. * Required for the auto_away, auto_xa and csi_waiting_time features.
  37390. */
  37391. if (_converse.auto_away < 1 && _converse.auto_xa < 1 && _converse.csi_waiting_time < 1) {
  37392. // Waiting time of less then one second means features aren't used.
  37393. return;
  37394. }
  37395. _converse.idle_seconds = 0;
  37396. _converse.auto_changed_status = false; // Was the user's status changed by _converse.js?
  37397. window.addEventListener('click', _converse.onUserActivity);
  37398. window.addEventListener('focus', _converse.onUserActivity);
  37399. window.addEventListener('keypress', _converse.onUserActivity);
  37400. window.addEventListener('mousemove', _converse.onUserActivity);
  37401. const options = {
  37402. 'once': true,
  37403. 'passive': true
  37404. };
  37405. window.addEventListener(_converse.unloadevent, _converse.onUserActivity, options);
  37406. _converse.everySecondTrigger = window.setInterval(_converse.onEverySecond, 1000);
  37407. };
  37408. this.setConnectionStatus = function (connection_status, message) {
  37409. _converse.connfeedback.set({
  37410. 'connection_status': connection_status,
  37411. 'message': message
  37412. });
  37413. };
  37414. this.rejectPresenceSubscription = function (jid, message) {
  37415. /* Reject or cancel another user's subscription to our presence updates.
  37416. *
  37417. * Parameters:
  37418. * (String) jid - The Jabber ID of the user whose subscription
  37419. * is being canceled.
  37420. * (String) message - An optional message to the user
  37421. */
  37422. const pres = $pres({
  37423. to: jid,
  37424. type: "unsubscribed"
  37425. });
  37426. if (message && message !== "") {
  37427. pres.c("status").t(message);
  37428. }
  37429. _converse.connection.send(pres);
  37430. };
  37431. this.reconnect = _.debounce(function () {
  37432. _converse.log('RECONNECTING');
  37433. _converse.log('The connection has dropped, attempting to reconnect.');
  37434. _converse.setConnectionStatus(Strophe.Status.RECONNECTING, __('The connection has dropped, attempting to reconnect.'));
  37435. _converse.connection.reconnecting = true;
  37436. _converse.tearDown();
  37437. _converse.logIn(null, true);
  37438. }, 3000, {
  37439. 'leading': true
  37440. });
  37441. this.disconnect = function () {
  37442. _converse.log('DISCONNECTED');
  37443. delete _converse.connection.reconnecting;
  37444. _converse.connection.reset();
  37445. _converse.tearDown();
  37446. _converse.clearSession();
  37447. _converse.emit('disconnected');
  37448. };
  37449. this.onDisconnected = function () {
  37450. /* Gets called once strophe's status reaches Strophe.Status.DISCONNECTED.
  37451. * Will either start a teardown process for converse.js or attempt
  37452. * to reconnect.
  37453. */
  37454. const reason = _converse.disconnection_reason;
  37455. if (_converse.disconnection_cause === Strophe.Status.AUTHFAIL) {
  37456. if (_converse.credentials_url && _converse.auto_reconnect) {
  37457. /* In this case, we reconnect, because we might be receiving
  37458. * expirable tokens from the credentials_url.
  37459. */
  37460. _converse.emit('will-reconnect');
  37461. return _converse.reconnect();
  37462. } else {
  37463. return _converse.disconnect();
  37464. }
  37465. } 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) {
  37466. return _converse.disconnect();
  37467. }
  37468. _converse.emit('will-reconnect');
  37469. _converse.reconnect();
  37470. };
  37471. this.setDisconnectionCause = function (cause, reason, override) {
  37472. /* Used to keep track of why we got disconnected, so that we can
  37473. * decide on what the next appropriate action is (in onDisconnected)
  37474. */
  37475. if (_.isUndefined(cause)) {
  37476. delete _converse.disconnection_cause;
  37477. delete _converse.disconnection_reason;
  37478. } else if (_.isUndefined(_converse.disconnection_cause) || override) {
  37479. _converse.disconnection_cause = cause;
  37480. _converse.disconnection_reason = reason;
  37481. }
  37482. };
  37483. this.onConnectStatusChanged = function (status, message) {
  37484. /* Callback method called by Strophe as the Strophe.Connection goes
  37485. * through various states while establishing or tearing down a
  37486. * connection.
  37487. */
  37488. _converse.log(`Status changed to: ${_converse.CONNECTION_STATUS[status]}`);
  37489. if (status === Strophe.Status.CONNECTED || status === Strophe.Status.ATTACHED) {
  37490. _converse.setConnectionStatus(status); // By default we always want to send out an initial presence stanza.
  37491. _converse.send_initial_presence = true;
  37492. _converse.setDisconnectionCause();
  37493. if (_converse.connection.reconnecting) {
  37494. _converse.log(status === Strophe.Status.CONNECTED ? 'Reconnected' : 'Reattached');
  37495. _converse.onConnected(true);
  37496. } else {
  37497. _converse.log(status === Strophe.Status.CONNECTED ? 'Connected' : 'Attached');
  37498. if (_converse.connection.restored) {
  37499. // No need to send an initial presence stanza when
  37500. // we're restoring an existing session.
  37501. _converse.send_initial_presence = false;
  37502. }
  37503. _converse.onConnected();
  37504. }
  37505. } else if (status === Strophe.Status.DISCONNECTED) {
  37506. _converse.setDisconnectionCause(status, message);
  37507. _converse.onDisconnected();
  37508. } else if (status === Strophe.Status.ERROR) {
  37509. _converse.setConnectionStatus(status, __('An error occurred while connecting to the chat server.'));
  37510. } else if (status === Strophe.Status.CONNECTING) {
  37511. _converse.setConnectionStatus(status);
  37512. } else if (status === Strophe.Status.AUTHENTICATING) {
  37513. _converse.setConnectionStatus(status);
  37514. } else if (status === Strophe.Status.AUTHFAIL) {
  37515. if (!message) {
  37516. message = __('Your Jabber ID and/or password is incorrect. Please try again.');
  37517. }
  37518. _converse.setConnectionStatus(status, message);
  37519. _converse.setDisconnectionCause(status, message, true);
  37520. _converse.onDisconnected();
  37521. } else if (status === Strophe.Status.CONNFAIL) {
  37522. let feedback = message;
  37523. if (message === "host-unknown" || message == "remote-connection-failed") {
  37524. feedback = __("Sorry, we could not connect to the XMPP host with domain: %1$s", `\"${Strophe.getDomainFromJid(_converse.connection.jid)}\"`);
  37525. } else if (!_.isUndefined(message) && message === _.get(Strophe, 'ErrorCondition.NO_AUTH_MECH')) {
  37526. feedback = __("The XMPP server did not offer a supported authentication mechanism");
  37527. }
  37528. _converse.setConnectionStatus(status, feedback);
  37529. _converse.setDisconnectionCause(status, message);
  37530. } else if (status === Strophe.Status.DISCONNECTING) {
  37531. _converse.setDisconnectionCause(status, message);
  37532. }
  37533. };
  37534. this.incrementMsgCounter = function () {
  37535. this.msg_counter += 1;
  37536. const unreadMsgCount = this.msg_counter;
  37537. let title = document.title;
  37538. if (_.isNil(title)) {
  37539. return;
  37540. }
  37541. if (title.search(/^Messages \(\d+\) /) === -1) {
  37542. title = `Messages (${unreadMsgCount}) ${title}`;
  37543. } else {
  37544. title = title.replace(/^Messages \(\d+\) /, `Messages (${unreadMsgCount})`);
  37545. }
  37546. };
  37547. this.clearMsgCounter = function () {
  37548. this.msg_counter = 0;
  37549. let title = document.title;
  37550. if (_.isNil(title)) {
  37551. return;
  37552. }
  37553. if (title.search(/^Messages \(\d+\) /) !== -1) {
  37554. title = title.replace(/^Messages \(\d+\) /, "");
  37555. }
  37556. };
  37557. this.initStatus = reconnecting => {
  37558. // If there's no xmppstatus obj, then we were never connected to
  37559. // begin with, so we set reconnecting to false.
  37560. reconnecting = _.isUndefined(_converse.xmppstatus) ? false : reconnecting;
  37561. if (reconnecting) {
  37562. _converse.onStatusInitialized(reconnecting);
  37563. } else {
  37564. const id = `converse.xmppstatus-${_converse.bare_jid}`;
  37565. this.xmppstatus = new this.XMPPStatus({
  37566. 'id': id
  37567. });
  37568. this.xmppstatus.browserStorage = new Backbone.BrowserStorage.session(id);
  37569. this.xmppstatus.fetch({
  37570. 'success': _.partial(_converse.onStatusInitialized, reconnecting),
  37571. 'error': _.partial(_converse.onStatusInitialized, reconnecting)
  37572. });
  37573. }
  37574. };
  37575. this.initClientConfig = function () {
  37576. /* The client config refers to configuration of the client which is
  37577. * independent of any particular user.
  37578. * What this means is that config values need to persist across
  37579. * user sessions.
  37580. */
  37581. const id = b64_sha1('converse.client-config');
  37582. _converse.config = new Backbone.Model({
  37583. 'id': id,
  37584. 'trusted': _converse.trusted && true || false,
  37585. 'storage': _converse.trusted ? 'local' : 'session'
  37586. });
  37587. _converse.config.browserStorage = new Backbone.BrowserStorage.session(id);
  37588. _converse.config.fetch();
  37589. _converse.emit('clientConfigInitialized');
  37590. };
  37591. this.initSession = function () {
  37592. const id = b64_sha1('converse.bosh-session');
  37593. _converse.session = new Backbone.Model({
  37594. 'id': id
  37595. });
  37596. _converse.session.browserStorage = new Backbone.BrowserStorage.session(id);
  37597. _converse.session.fetch();
  37598. _converse.emit('sessionInitialized');
  37599. };
  37600. this.clearSession = function () {
  37601. if (!_converse.config.get('trusted')) {
  37602. window.localStorage.clear();
  37603. window.sessionStorage.clear();
  37604. } else if (!_.isUndefined(this.session) && this.session.browserStorage) {
  37605. this.session.browserStorage._clear();
  37606. }
  37607. _converse.emit('clearSession');
  37608. };
  37609. this.logOut = function () {
  37610. _converse.clearSession();
  37611. _converse.setDisconnectionCause(_converse.LOGOUT, undefined, true);
  37612. if (!_.isUndefined(_converse.connection)) {
  37613. _converse.connection.disconnect();
  37614. } else {
  37615. _converse.tearDown();
  37616. } // Recreate all the promises
  37617. _.each(_.keys(_converse.promises), addPromise);
  37618. _converse.emit('logout');
  37619. };
  37620. this.saveWindowState = function (ev, hidden) {
  37621. // XXX: eventually we should be able to just use
  37622. // document.visibilityState (when we drop support for older
  37623. // browsers).
  37624. let state;
  37625. const event_map = {
  37626. 'focus': "visible",
  37627. 'focusin': "visible",
  37628. 'pageshow': "visible",
  37629. 'blur': "hidden",
  37630. 'focusout': "hidden",
  37631. 'pagehide': "hidden"
  37632. };
  37633. ev = ev || document.createEvent('Events');
  37634. if (ev.type in event_map) {
  37635. state = event_map[ev.type];
  37636. } else {
  37637. state = document[hidden] ? "hidden" : "visible";
  37638. }
  37639. if (state === 'visible') {
  37640. _converse.clearMsgCounter();
  37641. }
  37642. _converse.windowState = state;
  37643. _converse.emit('windowStateChanged', {
  37644. state
  37645. });
  37646. };
  37647. this.registerGlobalEventHandlers = function () {
  37648. // Taken from:
  37649. // http://stackoverflow.com/questions/1060008/is-there-a-way-to-detect-if-a-browser-window-is-not-currently-active
  37650. let hidden = "hidden"; // Standards:
  37651. if (hidden in document) {
  37652. document.addEventListener("visibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  37653. } else if ((hidden = "mozHidden") in document) {
  37654. document.addEventListener("mozvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  37655. } else if ((hidden = "webkitHidden") in document) {
  37656. document.addEventListener("webkitvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  37657. } else if ((hidden = "msHidden") in document) {
  37658. document.addEventListener("msvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  37659. } else if ("onfocusin" in document) {
  37660. // IE 9 and lower:
  37661. document.onfocusin = document.onfocusout = _.partial(_converse.saveWindowState, _, hidden);
  37662. } else {
  37663. // All others:
  37664. window.onpageshow = window.onpagehide = window.onfocus = window.onblur = _.partial(_converse.saveWindowState, _, hidden);
  37665. } // set the initial state (but only if browser supports the Page Visibility API)
  37666. if (document[hidden] !== undefined) {
  37667. _.partial(_converse.saveWindowState, _, hidden)({
  37668. type: document[hidden] ? "blur" : "focus"
  37669. });
  37670. }
  37671. _converse.emit('registeredGlobalEventHandlers');
  37672. };
  37673. this.enableCarbons = function () {
  37674. /* Ask the XMPP server to enable Message Carbons
  37675. * See XEP-0280 https://xmpp.org/extensions/xep-0280.html#enabling
  37676. */
  37677. if (!this.message_carbons || this.session.get('carbons_enabled')) {
  37678. return;
  37679. }
  37680. const carbons_iq = new Strophe.Builder('iq', {
  37681. 'from': this.connection.jid,
  37682. 'id': 'enablecarbons',
  37683. 'type': 'set'
  37684. }).c('enable', {
  37685. xmlns: Strophe.NS.CARBONS
  37686. });
  37687. this.connection.addHandler(iq => {
  37688. if (iq.querySelectorAll('error').length > 0) {
  37689. _converse.log('An error occurred while trying to enable message carbons.', Strophe.LogLevel.WARN);
  37690. } else {
  37691. this.session.save({
  37692. 'carbons_enabled': true
  37693. });
  37694. _converse.log('Message carbons have been enabled.');
  37695. }
  37696. }, null, "iq", null, "enablecarbons");
  37697. this.connection.send(carbons_iq);
  37698. };
  37699. this.sendInitialPresence = function () {
  37700. if (_converse.send_initial_presence) {
  37701. _converse.xmppstatus.sendPresence();
  37702. }
  37703. };
  37704. this.onStatusInitialized = function (reconnecting) {
  37705. _converse.emit('statusInitialized', reconnecting);
  37706. if (reconnecting) {
  37707. _converse.emit('reconnected');
  37708. } else {
  37709. init_promise.resolve();
  37710. _converse.emit('initialized');
  37711. _converse.emit('connected');
  37712. }
  37713. };
  37714. this.setUserJID = function () {
  37715. _converse.jid = _converse.connection.jid;
  37716. _converse.bare_jid = Strophe.getBareJidFromJid(_converse.connection.jid);
  37717. _converse.resource = Strophe.getResourceFromJid(_converse.connection.jid);
  37718. _converse.domain = Strophe.getDomainFromJid(_converse.connection.jid);
  37719. _converse.emit('setUserJID');
  37720. };
  37721. this.onConnected = function (reconnecting) {
  37722. /* Called as soon as a new connection has been established, either
  37723. * by logging in or by attaching to an existing BOSH session.
  37724. */
  37725. _converse.connection.flush(); // Solves problem of returned PubSub BOSH response not received by browser
  37726. _converse.setUserJID();
  37727. _converse.initSession();
  37728. _converse.enableCarbons();
  37729. _converse.initStatus(reconnecting);
  37730. };
  37731. this.ConnectionFeedback = Backbone.Model.extend({
  37732. defaults: {
  37733. 'connection_status': Strophe.Status.DISCONNECTED,
  37734. 'message': ''
  37735. },
  37736. initialize() {
  37737. this.on('change', () => {
  37738. _converse.emit('connfeedback', _converse.connfeedback);
  37739. });
  37740. }
  37741. });
  37742. this.connfeedback = new this.ConnectionFeedback();
  37743. this.XMPPStatus = Backbone.Model.extend({
  37744. defaults() {
  37745. return {
  37746. "jid": _converse.bare_jid,
  37747. "status": _converse.default_state
  37748. };
  37749. },
  37750. initialize() {
  37751. this.vcard = _converse.vcards.findWhere({
  37752. 'jid': this.get('jid')
  37753. });
  37754. if (_.isNil(this.vcard)) {
  37755. this.vcard = _converse.vcards.create({
  37756. 'jid': this.get('jid')
  37757. });
  37758. }
  37759. this.on('change:status', item => {
  37760. const status = this.get('status');
  37761. this.sendPresence(status);
  37762. _converse.emit('statusChanged', status);
  37763. });
  37764. this.on('change:status_message', () => {
  37765. const status_message = this.get('status_message');
  37766. this.sendPresence(this.get('status'), status_message);
  37767. _converse.emit('statusMessageChanged', status_message);
  37768. });
  37769. },
  37770. constructPresence(type, status_message) {
  37771. let presence;
  37772. type = _.isString(type) ? type : this.get('status') || _converse.default_state;
  37773. status_message = _.isString(status_message) ? status_message : this.get('status_message'); // Most of these presence types are actually not explicitly sent,
  37774. // but I add all of them here for reference and future proofing.
  37775. if (type === 'unavailable' || type === 'probe' || type === 'error' || type === 'unsubscribe' || type === 'unsubscribed' || type === 'subscribe' || type === 'subscribed') {
  37776. presence = $pres({
  37777. 'type': type
  37778. });
  37779. } else if (type === 'offline') {
  37780. presence = $pres({
  37781. 'type': 'unavailable'
  37782. });
  37783. } else if (type === 'online') {
  37784. presence = $pres();
  37785. } else {
  37786. presence = $pres().c('show').t(type).up();
  37787. }
  37788. if (status_message) {
  37789. presence.c('status').t(status_message).up();
  37790. }
  37791. presence.c('priority').t(_.isNaN(Number(_converse.priority)) ? 0 : _converse.priority);
  37792. return presence;
  37793. },
  37794. sendPresence(type, status_message) {
  37795. _converse.connection.send(this.constructPresence(type, status_message));
  37796. }
  37797. });
  37798. this.setUpXMLLogging = function () {
  37799. Strophe.log = function (level, msg) {
  37800. _converse.log(msg, level);
  37801. };
  37802. if (this.debug) {
  37803. this.connection.xmlInput = function (body) {
  37804. _converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkgoldenrod');
  37805. };
  37806. this.connection.xmlOutput = function (body) {
  37807. _converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkcyan');
  37808. };
  37809. }
  37810. };
  37811. this.fetchLoginCredentials = () => new Promise((resolve, reject) => {
  37812. const xhr = new XMLHttpRequest();
  37813. xhr.open('GET', _converse.credentials_url, true);
  37814. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  37815. xhr.onload = function () {
  37816. if (xhr.status >= 200 && xhr.status < 400) {
  37817. const data = JSON.parse(xhr.responseText);
  37818. resolve({
  37819. 'jid': data.jid,
  37820. 'password': data.password
  37821. });
  37822. } else {
  37823. xhr.onerror();
  37824. }
  37825. };
  37826. xhr.onerror = function () {
  37827. delete _converse.connection;
  37828. _converse.emit('noResumeableSession', this);
  37829. reject(xhr.responseText);
  37830. };
  37831. xhr.send();
  37832. });
  37833. this.startNewBOSHSession = function () {
  37834. const xhr = new XMLHttpRequest();
  37835. xhr.open('GET', _converse.prebind_url, true);
  37836. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  37837. xhr.onload = function () {
  37838. if (xhr.status >= 200 && xhr.status < 400) {
  37839. const data = JSON.parse(xhr.responseText);
  37840. _converse.connection.attach(data.jid, data.sid, data.rid, _converse.onConnectStatusChanged);
  37841. } else {
  37842. xhr.onerror();
  37843. }
  37844. };
  37845. xhr.onerror = function () {
  37846. delete _converse.connection;
  37847. _converse.emit('noResumeableSession', this);
  37848. };
  37849. xhr.send();
  37850. };
  37851. this.restoreBOSHSession = function (jid_is_required) {
  37852. /* Tries to restore a cached BOSH session. */
  37853. if (!this.jid) {
  37854. const msg = "restoreBOSHSession: tried to restore a \"keepalive\" session " + "but we don't have the JID for the user!";
  37855. if (jid_is_required) {
  37856. throw new Error(msg);
  37857. } else {
  37858. _converse.log(msg);
  37859. }
  37860. }
  37861. try {
  37862. this.connection.restore(this.jid, this.onConnectStatusChanged);
  37863. return true;
  37864. } catch (e) {
  37865. _converse.log("Could not restore session for jid: " + this.jid + " Error message: " + e.message, Strophe.LogLevel.WARN);
  37866. this.clearSession(); // We want to clear presences (see #555)
  37867. return false;
  37868. }
  37869. };
  37870. this.attemptPreboundSession = function (reconnecting) {
  37871. /* Handle session resumption or initialization when prebind is
  37872. * being used.
  37873. */
  37874. if (!reconnecting) {
  37875. if (this.keepalive && this.restoreBOSHSession(true)) {
  37876. return;
  37877. } // No keepalive, or session resumption has failed.
  37878. if (this.jid && this.sid && this.rid) {
  37879. return this.connection.attach(this.jid, this.sid, this.rid, this.onConnectStatusChanged);
  37880. }
  37881. }
  37882. if (this.prebind_url) {
  37883. return this.startNewBOSHSession();
  37884. } else {
  37885. throw new Error("attemptPreboundSession: If you use prebind and not keepalive, " + "then you MUST supply JID, RID and SID values or a prebind_url.");
  37886. }
  37887. };
  37888. this.attemptNonPreboundSession = function (credentials, reconnecting) {
  37889. /* Handle session resumption or initialization when prebind is not being used.
  37890. *
  37891. * Two potential options exist and are handled in this method:
  37892. * 1. keepalive
  37893. * 2. auto_login
  37894. */
  37895. if (!reconnecting && this.keepalive && this.restoreBOSHSession()) {
  37896. return;
  37897. }
  37898. if (credentials) {
  37899. // When credentials are passed in, they override prebinding
  37900. // or credentials fetching via HTTP
  37901. this.autoLogin(credentials);
  37902. } else if (this.auto_login) {
  37903. if (this.credentials_url) {
  37904. this.fetchLoginCredentials().then(this.autoLogin.bind(this), this.autoLogin.bind(this));
  37905. } else if (!this.jid) {
  37906. 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).");
  37907. } else {
  37908. this.autoLogin(); // Could be ANONYMOUS or EXTERNAL
  37909. }
  37910. } else if (reconnecting) {
  37911. this.autoLogin();
  37912. }
  37913. };
  37914. this.autoLogin = function (credentials) {
  37915. if (credentials) {
  37916. // If passed in, the credentials come from credentials_url,
  37917. // so we set them on the converse object.
  37918. this.jid = credentials.jid;
  37919. }
  37920. if (this.authentication === _converse.ANONYMOUS || this.authentication === _converse.EXTERNAL) {
  37921. if (!this.jid) {
  37922. 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.");
  37923. }
  37924. if (!this.connection.reconnecting) {
  37925. this.connection.reset();
  37926. }
  37927. this.connection.connect(this.jid.toLowerCase(), null, this.onConnectStatusChanged, BOSH_WAIT);
  37928. } else if (this.authentication === _converse.LOGIN) {
  37929. const password = _.isNil(credentials) ? _converse.connection.pass || this.password : credentials.password;
  37930. if (!password) {
  37931. if (this.auto_login) {
  37932. throw new Error("initConnection: If you use auto_login and " + "authentication='login' then you also need to provide a password.");
  37933. }
  37934. _converse.setDisconnectionCause(Strophe.Status.AUTHFAIL, undefined, true);
  37935. _converse.disconnect();
  37936. return;
  37937. }
  37938. const resource = Strophe.getResourceFromJid(this.jid);
  37939. if (!resource) {
  37940. this.jid = this.jid.toLowerCase() + _converse.generateResource();
  37941. } else {
  37942. this.jid = Strophe.getBareJidFromJid(this.jid).toLowerCase() + '/' + resource;
  37943. }
  37944. if (!this.connection.reconnecting) {
  37945. this.connection.reset();
  37946. }
  37947. this.connection.connect(this.jid, password, this.onConnectStatusChanged, BOSH_WAIT);
  37948. }
  37949. };
  37950. this.logIn = function (credentials, reconnecting) {
  37951. // We now try to resume or automatically set up a new session.
  37952. // Otherwise the user will be shown a login form.
  37953. if (this.authentication === _converse.PREBIND) {
  37954. this.attemptPreboundSession(reconnecting);
  37955. } else {
  37956. this.attemptNonPreboundSession(credentials, reconnecting);
  37957. }
  37958. };
  37959. this.initConnection = function () {
  37960. /* Creates a new Strophe.Connection instance if we don't already have one.
  37961. */
  37962. if (!this.connection) {
  37963. if (!this.bosh_service_url && !this.websocket_url) {
  37964. throw new Error("initConnection: you must supply a value for either the bosh_service_url or websocket_url or both.");
  37965. }
  37966. if (('WebSocket' in window || 'MozWebSocket' in window) && this.websocket_url) {
  37967. this.connection = new Strophe.Connection(this.websocket_url, this.connection_options);
  37968. } else if (this.bosh_service_url) {
  37969. this.connection = new Strophe.Connection(this.bosh_service_url, _.assignIn(this.connection_options, {
  37970. 'keepalive': this.keepalive
  37971. }));
  37972. } else {
  37973. throw new Error("initConnection: this browser does not support websockets and bosh_service_url wasn't specified.");
  37974. }
  37975. }
  37976. _converse.emit('connectionInitialized');
  37977. };
  37978. this.tearDown = function () {
  37979. /* Remove those views which are only allowed with a valid
  37980. * connection.
  37981. */
  37982. _converse.emit('beforeTearDown');
  37983. if (!_.isUndefined(_converse.session)) {
  37984. _converse.session.destroy();
  37985. }
  37986. window.removeEventListener('click', _converse.onUserActivity);
  37987. window.removeEventListener('focus', _converse.onUserActivity);
  37988. window.removeEventListener('keypress', _converse.onUserActivity);
  37989. window.removeEventListener('mousemove', _converse.onUserActivity);
  37990. window.removeEventListener(_converse.unloadevent, _converse.onUserActivity);
  37991. window.clearInterval(_converse.everySecondTrigger);
  37992. _converse.emit('afterTearDown');
  37993. return _converse;
  37994. };
  37995. this.initPlugins = function () {
  37996. // If initialize gets called a second time (e.g. during tests), then we
  37997. // need to re-apply all plugins (for a new converse instance), and we
  37998. // therefore need to clear this array that prevents plugins from being
  37999. // initialized twice.
  38000. // If initialize is called for the first time, then this array is empty
  38001. // in any case.
  38002. _converse.pluggable.initialized_plugins = [];
  38003. const whitelist = _converse.core_plugins.concat(_converse.whitelisted_plugins);
  38004. if (_converse.view_mode === 'embedded') {
  38005. _.forEach([// eslint-disable-line lodash/prefer-map
  38006. "converse-bookmarks", "converse-controlbox", "converse-headline", "converse-register"], name => {
  38007. _converse.blacklisted_plugins.push(name);
  38008. });
  38009. }
  38010. _converse.pluggable.initializePlugins({
  38011. 'updateSettings'() {
  38012. _converse.log("(DEPRECATION) " + "The `updateSettings` method has been deprecated. " + "Please use `_converse.api.settings.update` instead.", Strophe.LogLevel.WARN);
  38013. _converse.api.settings.update.apply(_converse, arguments);
  38014. },
  38015. '_converse': _converse
  38016. }, whitelist, _converse.blacklisted_plugins);
  38017. _converse.emit('pluginsInitialized');
  38018. }; // Initialization
  38019. // --------------
  38020. // This is the end of the initialize method.
  38021. if (settings.connection) {
  38022. this.connection = settings.connection;
  38023. }
  38024. function finishInitialization() {
  38025. _converse.initPlugins();
  38026. _converse.initClientConfig();
  38027. _converse.initConnection();
  38028. _converse.setUpXMLLogging();
  38029. _converse.logIn();
  38030. _converse.registerGlobalEventHandlers();
  38031. if (!Backbone.history.started) {
  38032. Backbone.history.start();
  38033. }
  38034. }
  38035. if (!_.isUndefined(_converse.connection) && _converse.connection.service === 'jasmine tests') {
  38036. finishInitialization();
  38037. return _converse;
  38038. } else if (_.isUndefined(i18n)) {
  38039. finishInitialization();
  38040. } else {
  38041. i18n.fetchTranslations(_converse.locale, _converse.locales, u.interpolate(_converse.locales_url, {
  38042. 'locale': _converse.locale
  38043. })).catch(e => _converse.log(e.message, Strophe.LogLevel.FATAL)).then(finishInitialization).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  38044. }
  38045. return init_promise;
  38046. };
  38047. /**
  38048. * ### The private API
  38049. *
  38050. * The private API methods are only accessible via the closured {@link _converse}
  38051. * object, which is only available to plugins.
  38052. *
  38053. * These methods are kept private (i.e. not global) because they may return
  38054. * sensitive data which should be kept off-limits to other 3rd-party scripts
  38055. * that might be running in the page.
  38056. *
  38057. * @namespace _converse.api
  38058. * @memberOf _converse
  38059. */
  38060. _converse.api = {
  38061. /**
  38062. * This grouping collects API functions related to the XMPP connection.
  38063. *
  38064. * @namespace _converse.api.connection
  38065. * @memberOf _converse.api
  38066. */
  38067. 'connection': {
  38068. /**
  38069. * @method _converse.api.connection.connected
  38070. * @memberOf _converse.api.connection
  38071. * @returns {boolean} Whether there is an established connection or not.
  38072. */
  38073. 'connected'() {
  38074. return _converse.connection && _converse.connection.connected || false;
  38075. },
  38076. /**
  38077. * Terminates the connection.
  38078. *
  38079. * @method _converse.api.connection.disconnect
  38080. * @memberOf _converse.api.connection
  38081. */
  38082. 'disconnect'() {
  38083. _converse.connection.disconnect();
  38084. }
  38085. },
  38086. /**
  38087. * Lets you emit (i.e. trigger) events, which can be listened to via
  38088. * {@link _converse.api.listen.on} or {@link _converse.api.listen.once}
  38089. * (see [_converse.api.listen](http://localhost:8000/docs/html/api/-_converse.api.listen.html)).
  38090. *
  38091. * @method _converse.api.emit
  38092. */
  38093. 'emit'() {
  38094. _converse.emit.apply(_converse, arguments);
  38095. },
  38096. /**
  38097. * This grouping collects API functions related to the current logged in user.
  38098. *
  38099. * @namespace _converse.api.user
  38100. * @memberOf _converse.api
  38101. */
  38102. 'user': {
  38103. /**
  38104. * @method _converse.api.user.jid
  38105. * @returns {string} The current user's full JID (Jabber ID)
  38106. * @example _converse.api.user.jid())
  38107. */
  38108. 'jid'() {
  38109. return _converse.connection.jid;
  38110. },
  38111. /**
  38112. * Logs the user in.
  38113. *
  38114. * If called without any parameters, Converse will try
  38115. * to log the user in by calling the `prebind_url` or `credentials_url` depending
  38116. * on whether prebinding is used or not.
  38117. *
  38118. * @method _converse.api.user.login
  38119. * @param {object} [credentials] An object with the credentials.
  38120. * @example
  38121. * converse.plugins.add('myplugin', {
  38122. * initialize: function () {
  38123. *
  38124. * this._converse.api.user.login({
  38125. * 'jid': 'dummy@example.com',
  38126. * 'password': 'secret'
  38127. * });
  38128. *
  38129. * }
  38130. * });
  38131. */
  38132. 'login'(credentials) {
  38133. _converse.logIn(credentials);
  38134. },
  38135. /**
  38136. * Logs the user out of the current XMPP session.
  38137. *
  38138. * @method _converse.api.user.logout
  38139. * @example _converse.api.user.logout();
  38140. */
  38141. 'logout'() {
  38142. _converse.logOut();
  38143. },
  38144. /**
  38145. * Set and get the user's chat status, also called their *availability*.
  38146. *
  38147. * @namespace _converse.api.user.status
  38148. * @memberOf _converse.api.user
  38149. */
  38150. 'status': {
  38151. /** Return the current user's availability status.
  38152. *
  38153. * @method _converse.api.user.status.get
  38154. * @example _converse.api.user.status.get();
  38155. */
  38156. 'get'() {
  38157. return _converse.xmppstatus.get('status');
  38158. },
  38159. /**
  38160. * The user's status can be set to one of the following values:
  38161. *
  38162. * @method _converse.api.user.status.set
  38163. * @param {string} value The user's chat status (e.g. 'away', 'dnd', 'offline', 'online', 'unavailable' or 'xa')
  38164. * @param {string} [message] A custom status message
  38165. *
  38166. * @example this._converse.api.user.status.set('dnd');
  38167. * @example this._converse.api.user.status.set('dnd', 'In a meeting');
  38168. */
  38169. 'set'(value, message) {
  38170. const data = {
  38171. 'status': value
  38172. };
  38173. if (!_.includes(_.keys(_converse.STATUS_WEIGHTS), value)) {
  38174. throw new Error('Invalid availability value. See https://xmpp.org/rfcs/rfc3921.html#rfc.section.2.2.2.1');
  38175. }
  38176. if (_.isString(message)) {
  38177. data.status_message = message;
  38178. }
  38179. _converse.xmppstatus.sendPresence(value);
  38180. _converse.xmppstatus.save(data);
  38181. },
  38182. /**
  38183. * Set and retrieve the user's custom status message.
  38184. *
  38185. * @namespace _converse.api.user.status.message
  38186. * @memberOf _converse.api.user.status
  38187. */
  38188. 'message': {
  38189. /**
  38190. * @method _converse.api.user.status.message.get
  38191. * @returns {string} The status message
  38192. * @example const message = _converse.api.user.status.message.get()
  38193. */
  38194. 'get'() {
  38195. return _converse.xmppstatus.get('status_message');
  38196. },
  38197. /**
  38198. * @method _converse.api.user.status.message.set
  38199. * @param {string} status The status message
  38200. * @example _converse.api.user.status.message.set('In a meeting');
  38201. */
  38202. 'set'(status) {
  38203. _converse.xmppstatus.save({
  38204. 'status_message': status
  38205. });
  38206. }
  38207. }
  38208. }
  38209. },
  38210. /**
  38211. * This grouping allows access to the
  38212. * [configuration settings](/docs/html/configuration.html#configuration-settings)
  38213. * of Converse.
  38214. *
  38215. * @namespace _converse.api.settings
  38216. * @memberOf _converse.api
  38217. */
  38218. 'settings': {
  38219. /**
  38220. * Allows new configuration settings to be specified, or new default values for
  38221. * existing configuration settings to be specified.
  38222. *
  38223. * @method _converse.api.settings.update
  38224. * @param {object} settings The configuration settings
  38225. * @example
  38226. * _converse.api.settings.update({
  38227. * 'enable_foo': true
  38228. * });
  38229. *
  38230. * // The user can then override the default value of the configuration setting when
  38231. * // calling `converse.initialize`.
  38232. * converse.initialize({
  38233. * 'enable_foo': false
  38234. * });
  38235. */
  38236. 'update'(settings) {
  38237. u.merge(_converse.default_settings, settings);
  38238. u.merge(_converse, settings);
  38239. u.applyUserSettings(_converse, settings, _converse.user_settings);
  38240. },
  38241. /**
  38242. * @method _converse.api.settings.get
  38243. * @returns {*} Value of the particular configuration setting.
  38244. * @example _converse.api.settings.get("play_sounds");
  38245. */
  38246. 'get'(key) {
  38247. if (_.includes(_.keys(_converse.default_settings), key)) {
  38248. return _converse[key];
  38249. }
  38250. },
  38251. /**
  38252. * Set one or many configuration settings.
  38253. *
  38254. * Note, this is not an alternative to calling {@link converse.initialize}, which still needs
  38255. * to be called. Generally, you'd use this method after Converse is already
  38256. * running and you want to change the configuration on-the-fly.
  38257. *
  38258. * @method _converse.api.settings.set
  38259. * @param {Object} [settings] An object containing configuration settings.
  38260. * @param {string} [key] Alternatively to passing in an object, you can pass in a key and a value.
  38261. * @param {string} [value]
  38262. * @example _converse.api.settings.set("play_sounds", true);
  38263. * @example
  38264. * _converse.api.settings.set({
  38265. * "play_sounds", true,
  38266. * "hide_offline_users" true
  38267. * });
  38268. */
  38269. 'set'(key, val) {
  38270. const o = {};
  38271. if (_.isObject(key)) {
  38272. _.assignIn(_converse, _.pick(key, _.keys(_converse.default_settings)));
  38273. } else if (_.isString("string")) {
  38274. o[key] = val;
  38275. _.assignIn(_converse, _.pick(o, _.keys(_converse.default_settings)));
  38276. }
  38277. }
  38278. },
  38279. /**
  38280. * Converse and its plugins emit various events which you can listen to via the
  38281. * {@link _converse.api.listen} namespace.
  38282. *
  38283. * Some of these events are also available as [ES2015 Promises](http://es6-features.org/#PromiseUsage)
  38284. * although not all of them could logically act as promises, since some events
  38285. * might be fired multpile times whereas promises are to be resolved (or
  38286. * rejected) only once.
  38287. *
  38288. * Events which are also promises include:
  38289. *
  38290. * * [cachedRoster](/docs/html/events.html#cachedroster)
  38291. * * [chatBoxesFetched](/docs/html/events.html#chatBoxesFetched)
  38292. * * [pluginsInitialized](/docs/html/events.html#pluginsInitialized)
  38293. * * [roster](/docs/html/events.html#roster)
  38294. * * [rosterContactsFetched](/docs/html/events.html#rosterContactsFetched)
  38295. * * [rosterGroupsFetched](/docs/html/events.html#rosterGroupsFetched)
  38296. * * [rosterInitialized](/docs/html/events.html#rosterInitialized)
  38297. * * [statusInitialized](/docs/html/events.html#statusInitialized)
  38298. * * [roomsPanelRendered](/docs/html/events.html#roomsPanelRendered)
  38299. *
  38300. * The various plugins might also provide promises, and they do this by using the
  38301. * `promises.add` api method.
  38302. *
  38303. * @namespace _converse.api.promises
  38304. * @memberOf _converse.api
  38305. */
  38306. 'promises': {
  38307. /**
  38308. * By calling `promises.add`, a new [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
  38309. * is made available for other code or plugins to depend on via the
  38310. * {@link _converse.api.waitUntil} method.
  38311. *
  38312. * Generally, it's the responsibility of the plugin which adds the promise to
  38313. * also resolve it.
  38314. *
  38315. * This is done by calling {@link _converse.api.emit}, which not only resolves the
  38316. * promise, but also emits an event with the same name (which can be listened to
  38317. * via {@link _converse.api.listen}).
  38318. *
  38319. * @method _converse.api.promises.add
  38320. * @param {string|array} [name|names] The name or an array of names for the promise(s) to be added
  38321. * @example _converse.api.promises.add('foo-completed');
  38322. */
  38323. 'add'(promises) {
  38324. promises = _.isArray(promises) ? promises : [promises];
  38325. _.each(promises, addPromise);
  38326. }
  38327. },
  38328. /**
  38329. * This namespace lets you access the BOSH tokens
  38330. *
  38331. * @namespace _converse.api.tokens
  38332. * @memberOf _converse.api
  38333. */
  38334. 'tokens': {
  38335. /**
  38336. * @method _converse.api.tokens.get
  38337. * @param {string} [id] The type of token to return ('rid' or 'sid').
  38338. * @returns 'string' A token, either the RID or SID token depending on what's asked for.
  38339. * @example _converse.api.tokens.get('rid');
  38340. */
  38341. 'get'(id) {
  38342. if (!_converse.expose_rid_and_sid || _.isUndefined(_converse.connection)) {
  38343. return null;
  38344. }
  38345. if (id.toLowerCase() === 'rid') {
  38346. return _converse.connection.rid || _converse.connection._proto.rid;
  38347. } else if (id.toLowerCase() === 'sid') {
  38348. return _converse.connection.sid || _converse.connection._proto.sid;
  38349. }
  38350. }
  38351. },
  38352. /**
  38353. * Converse emits events to which you can subscribe to.
  38354. *
  38355. * The `listen` namespace exposes methods for creating event listeners
  38356. * (aka handlers) for these events.
  38357. *
  38358. * @namespace _converse.api.listen
  38359. * @memberOf _converse
  38360. */
  38361. 'listen': {
  38362. /**
  38363. * Lets you listen to an event exactly once.
  38364. *
  38365. * @method _converse.api.listen.once
  38366. * @param {string} name The event's name
  38367. * @param {function} callback The callback method to be called when the event is emitted.
  38368. * @param {object} [context] The value of the `this` parameter for the callback.
  38369. * @example _converse.api.listen.once('message', function (messageXML) { ... });
  38370. */
  38371. 'once': _converse.once.bind(_converse),
  38372. /**
  38373. * Lets you subscribe to an event.
  38374. *
  38375. * Every time the event fires, the callback method specified by `callback` will be called.
  38376. *
  38377. * @method _converse.api.listen.on
  38378. * @param {string} name The event's name
  38379. * @param {function} callback The callback method to be called when the event is emitted.
  38380. * @param {object} [context] The value of the `this` parameter for the callback.
  38381. * @example _converse.api.listen.on('message', function (messageXML) { ... });
  38382. */
  38383. 'on': _converse.on.bind(_converse),
  38384. /**
  38385. * To stop listening to an event, you can use the `not` method.
  38386. *
  38387. * Every time the event fires, the callback method specified by `callback` will be called.
  38388. *
  38389. * @method _converse.api.listen.not
  38390. * @param {string} name The event's name
  38391. * @param {function} callback The callback method that is to no longer be called when the event fires
  38392. * @example _converse.api.listen.not('message', function (messageXML);
  38393. */
  38394. 'not': _converse.off.bind(_converse),
  38395. /**
  38396. * Subscribe to an incoming stanza
  38397. *
  38398. * Every a matched stanza is received, the callback method specified by `callback` will be called.
  38399. *
  38400. * @method _converse.api.listen.stanza
  38401. * @param {string} name The stanza's name
  38402. * @param {object} options Matching options
  38403. * (e.g. 'ns' for namespace, 'type' for stanza type, also 'id' and 'from');
  38404. * @param {function} handler The callback method to be called when the stanza appears
  38405. */
  38406. 'stanza'(name, options, handler) {
  38407. if (_.isFunction(options)) {
  38408. handler = options;
  38409. options = {};
  38410. } else {
  38411. options = options || {};
  38412. }
  38413. _converse.connection.addHandler(handler, options.ns, name, options.type, options.id, options.from, options);
  38414. }
  38415. },
  38416. /**
  38417. * Wait until a promise is resolved
  38418. *
  38419. * @method _converse.api.waitUntil
  38420. * @param {string} name The name of the promise
  38421. * @returns {Promise}
  38422. */
  38423. 'waitUntil'(name) {
  38424. const promise = _converse.promises[name];
  38425. if (_.isUndefined(promise)) {
  38426. return null;
  38427. }
  38428. return promise;
  38429. },
  38430. /**
  38431. * Allows you to send XML stanzas.
  38432. *
  38433. * @method _converse.api.send
  38434. * @example
  38435. * const msg = converse.env.$msg({
  38436. * 'from': 'juliet@example.com/balcony',
  38437. * 'to': 'romeo@example.net',
  38438. * 'type':'chat'
  38439. * });
  38440. * _converse.api.send(msg);
  38441. */
  38442. 'send'(stanza) {
  38443. _converse.connection.send(stanza);
  38444. },
  38445. /**
  38446. * Send an IQ stanza and receive a promise
  38447. *
  38448. * @method _converse.api.sendIQ
  38449. * @returns {Promise} A promise which resolves when we receive a `result` stanza
  38450. * or is rejected when we receive an `error` stanza.
  38451. */
  38452. 'sendIQ'(stanza) {
  38453. return new Promise((resolve, reject) => {
  38454. _converse.connection.sendIQ(stanza, resolve, reject, _converse.IQ_TIMEOUT);
  38455. });
  38456. }
  38457. };
  38458. /**
  38459. * ### The Public API
  38460. *
  38461. * This namespace contains public API methods which are are
  38462. * accessible on the global `converse` object.
  38463. * They are public, because any JavaScript in the
  38464. * page can call them. Public methods therefore don’t expose any sensitive
  38465. * or closured data. To do that, you’ll need to create a plugin, which has
  38466. * access to the private API method.
  38467. *
  38468. * @namespace converse
  38469. */
  38470. const converse = {
  38471. /**
  38472. * Public API method which initializes Converse.
  38473. * This method must always be called when using Converse.
  38474. *
  38475. * @memberOf converse
  38476. * @method initialize
  38477. * @param {object} config A map of [configuration-settings](https://conversejs.org/docs/html/configuration.html#configuration-settings).
  38478. *
  38479. * @example
  38480. * converse.initialize({
  38481. * allow_otr: true,
  38482. * auto_list_rooms: false,
  38483. * auto_subscribe: false,
  38484. * bosh_service_url: 'https://bind.example.com',
  38485. * hide_muc_server: false,
  38486. * i18n: locales['en'],
  38487. * keepalive: true,
  38488. * play_sounds: true,
  38489. * prebind: false,
  38490. * show_controlbox_by_default: true,
  38491. * debug: false,
  38492. * roster_groups: true
  38493. * });
  38494. */
  38495. 'initialize'(settings, callback) {
  38496. return _converse.initialize(settings, callback);
  38497. },
  38498. /**
  38499. * Exposes methods for adding and removing plugins. You'll need to write a plugin
  38500. * if you want to have access to the private API methods defined further down below.
  38501. *
  38502. * For more information on plugins, read the documentation on [writing a plugin](/docs/html/plugin_development.html).
  38503. *
  38504. * @namespace plugins
  38505. * @memberOf converse
  38506. */
  38507. 'plugins': {
  38508. /** Registers a new plugin.
  38509. *
  38510. * @method converse.plugins.add
  38511. * @param {string} name The name of the plugin
  38512. * @param {object} plugin The plugin object
  38513. *
  38514. * @example
  38515. *
  38516. * const plugin = {
  38517. * initialize: function () {
  38518. * // Gets called as soon as the plugin has been loaded.
  38519. *
  38520. * // Inside this method, you have access to the private
  38521. * // API via `_covnerse.api`.
  38522. *
  38523. * // The private _converse object contains the core logic
  38524. * // and data-structures of Converse.
  38525. * }
  38526. * }
  38527. * converse.plugins.add('myplugin', plugin);
  38528. */
  38529. 'add'(name, plugin) {
  38530. plugin.__name__ = name;
  38531. if (!_.isUndefined(_converse.pluggable.plugins[name])) {
  38532. throw new TypeError(`Error: plugin with name "${name}" has already been ` + 'registered!');
  38533. } else {
  38534. _converse.pluggable.plugins[name] = plugin;
  38535. }
  38536. }
  38537. },
  38538. /**
  38539. * Utility methods and globals from bundled 3rd party libraries.
  38540. * @memberOf converse
  38541. *
  38542. * @property {function} converse.env.$build - Creates a Strophe.Builder, for creating stanza objects.
  38543. * @property {function} converse.env.$iq - Creates a Strophe.Builder with an <iq/> element as the root.
  38544. * @property {function} converse.env.$msg - Creates a Strophe.Builder with an <message/> element as the root.
  38545. * @property {function} converse.env.$pres - Creates a Strophe.Builder with an <presence/> element as the root.
  38546. * @property {object} converse.env.Backbone - The [Backbone](http://backbonejs.org) object used by Converse to create models and views.
  38547. * @property {function} converse.env.Promise - The Promise implementation used by Converse.
  38548. * @property {function} converse.env.Strophe - The [Strophe](http://strophe.im/strophejs) XMPP library used by Converse.
  38549. * @property {object} converse.env._ - The instance of [lodash](http://lodash.com) used by Converse.
  38550. * @property {function} converse.env.f - And instance of Lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.
  38551. * @property {function} converse.env.b64_sha1 - Utility method from Strophe for creating base64 encoded sha1 hashes.
  38552. * @property {object} converse.env.moment - [Moment](https://momentjs.com) date manipulation library.
  38553. * @property {function} converse.env.sizzle - [Sizzle](https://sizzlejs.com) CSS selector engine.
  38554. * @property {object} converse.env.utils - Module containing common utility methods used by Converse.
  38555. */
  38556. 'env': {
  38557. '$build': $build,
  38558. '$iq': $iq,
  38559. '$msg': $msg,
  38560. '$pres': $pres,
  38561. 'Backbone': Backbone,
  38562. 'Promise': Promise,
  38563. 'Strophe': Strophe,
  38564. '_': _,
  38565. 'f': f,
  38566. 'b64_sha1': b64_sha1,
  38567. 'moment': moment,
  38568. 'sizzle': sizzle,
  38569. 'utils': u
  38570. }
  38571. };
  38572. window.converse = converse;
  38573. window.dispatchEvent(new CustomEvent('converse-loaded'));
  38574. return converse;
  38575. });
  38576. /***/ }),
  38577. /***/ "./src/converse-disco.js":
  38578. /*!*******************************!*\
  38579. !*** ./src/converse-disco.js ***!
  38580. \*******************************/
  38581. /*! no static exports found */
  38582. /***/ (function(module, exports, __webpack_require__) {
  38583. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  38584. // http://conversejs.org
  38585. //
  38586. // Copyright (c) 2013-2018, the Converse developers
  38587. // Licensed under the Mozilla Public License (MPLv2)
  38588. /* This is a Converse plugin which add support for XEP-0030: Service Discovery */
  38589. (function (root, factory) {
  38590. !(__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),
  38591. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  38592. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  38593. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  38594. })(this, function (converse, sizzle) {
  38595. const _converse$env = converse.env,
  38596. Backbone = _converse$env.Backbone,
  38597. Promise = _converse$env.Promise,
  38598. Strophe = _converse$env.Strophe,
  38599. $iq = _converse$env.$iq,
  38600. b64_sha1 = _converse$env.b64_sha1,
  38601. utils = _converse$env.utils,
  38602. _ = _converse$env._,
  38603. f = _converse$env.f;
  38604. converse.plugins.add('converse-disco', {
  38605. initialize() {
  38606. /* The initialize function gets called as soon as the plugin is
  38607. * loaded by converse.js's plugin machinery.
  38608. */
  38609. const _converse = this._converse; // Promises exposed by this plugin
  38610. _converse.api.promises.add('discoInitialized');
  38611. _converse.DiscoEntity = Backbone.Model.extend({
  38612. /* A Disco Entity is a JID addressable entity that can be queried
  38613. * for features.
  38614. *
  38615. * See XEP-0030: https://xmpp.org/extensions/xep-0030.html
  38616. */
  38617. idAttribute: 'jid',
  38618. initialize() {
  38619. this.waitUntilFeaturesDiscovered = utils.getResolveablePromise();
  38620. this.dataforms = new Backbone.Collection();
  38621. this.dataforms.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.dataforms-{this.get('jid')}`));
  38622. this.features = new Backbone.Collection();
  38623. this.features.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.features-${this.get('jid')}`));
  38624. this.features.on('add', this.onFeatureAdded, this);
  38625. this.fields = new Backbone.Collection();
  38626. this.fields.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.fields-${this.get('jid')}`));
  38627. this.fields.on('add', this.onFieldAdded, this);
  38628. this.identities = new Backbone.Collection();
  38629. this.identities.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.identities-${this.get('jid')}`));
  38630. this.fetchFeatures();
  38631. this.items = new _converse.DiscoEntities();
  38632. this.items.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.disco-items-${this.get('jid')}`));
  38633. this.items.fetch();
  38634. },
  38635. getIdentity(category, type) {
  38636. /* Returns a Promise which resolves with a map indicating
  38637. * whether a given identity is provided.
  38638. *
  38639. * Parameters:
  38640. * (String) category - The identity category
  38641. * (String) type - The identity type
  38642. */
  38643. const entity = this;
  38644. return new Promise((resolve, reject) => {
  38645. function fulfillPromise() {
  38646. const model = entity.identities.findWhere({
  38647. 'category': category,
  38648. 'type': type
  38649. });
  38650. resolve(model);
  38651. }
  38652. entity.waitUntilFeaturesDiscovered.then(fulfillPromise).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  38653. });
  38654. },
  38655. hasFeature(feature) {
  38656. /* Returns a Promise which resolves with a map indicating
  38657. * whether a given feature is supported.
  38658. *
  38659. * Parameters:
  38660. * (String) feature - The feature that might be supported.
  38661. */
  38662. const entity = this;
  38663. return new Promise((resolve, reject) => {
  38664. function fulfillPromise() {
  38665. if (entity.features.findWhere({
  38666. 'var': feature
  38667. })) {
  38668. resolve(entity);
  38669. } else {
  38670. resolve();
  38671. }
  38672. }
  38673. entity.waitUntilFeaturesDiscovered.then(fulfillPromise).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  38674. });
  38675. },
  38676. onFeatureAdded(feature) {
  38677. feature.entity = this;
  38678. _converse.emit('serviceDiscovered', feature);
  38679. },
  38680. onFieldAdded(field) {
  38681. field.entity = this;
  38682. _converse.emit('discoExtensionFieldDiscovered', field);
  38683. },
  38684. fetchFeatures() {
  38685. if (this.features.browserStorage.records.length === 0) {
  38686. this.queryInfo();
  38687. } else {
  38688. this.features.fetch({
  38689. add: true,
  38690. success: () => {
  38691. this.waitUntilFeaturesDiscovered.resolve(this);
  38692. this.trigger('featuresDiscovered');
  38693. }
  38694. });
  38695. this.identities.fetch({
  38696. add: true
  38697. });
  38698. }
  38699. },
  38700. queryInfo() {
  38701. _converse.api.disco.info(this.get('jid'), null).then(stanza => this.onInfo(stanza)).catch(iq => {
  38702. this.waitUntilFeaturesDiscovered.resolve(this);
  38703. _converse.log(iq, Strophe.LogLevel.ERROR);
  38704. });
  38705. },
  38706. onDiscoItems(stanza) {
  38707. _.each(sizzle(`query[xmlns="${Strophe.NS.DISCO_ITEMS}"] item`, stanza), item => {
  38708. if (item.getAttribute("node")) {
  38709. // XXX: ignore nodes for now.
  38710. // See: https://xmpp.org/extensions/xep-0030.html#items-nodes
  38711. return;
  38712. }
  38713. const jid = item.getAttribute('jid');
  38714. if (_.isUndefined(this.items.get(jid))) {
  38715. const entity = _converse.disco_entities.get(jid);
  38716. if (entity) {
  38717. this.items.add(entity);
  38718. } else {
  38719. this.items.create({
  38720. 'jid': jid
  38721. });
  38722. }
  38723. }
  38724. });
  38725. },
  38726. queryForItems() {
  38727. if (_.isEmpty(this.identities.where({
  38728. 'category': 'server'
  38729. }))) {
  38730. // Don't fetch features and items if this is not a
  38731. // server or a conference component.
  38732. return;
  38733. }
  38734. _converse.api.disco.items(this.get('jid')).then(stanza => this.onDiscoItems(stanza));
  38735. },
  38736. onInfo(stanza) {
  38737. _.forEach(stanza.querySelectorAll('identity'), identity => {
  38738. this.identities.create({
  38739. 'category': identity.getAttribute('category'),
  38740. 'type': identity.getAttribute('type'),
  38741. 'name': identity.getAttribute('name')
  38742. });
  38743. });
  38744. _.each(sizzle(`x[type="result"][xmlns="${Strophe.NS.XFORM}"]`, stanza), form => {
  38745. const data = {};
  38746. _.each(form.querySelectorAll('field'), field => {
  38747. data[field.getAttribute('var')] = {
  38748. 'value': _.get(field.querySelector('value'), 'textContent'),
  38749. 'type': field.getAttribute('type')
  38750. };
  38751. });
  38752. this.dataforms.create(data);
  38753. });
  38754. if (stanza.querySelector(`feature[var="${Strophe.NS.DISCO_ITEMS}"]`)) {
  38755. this.queryForItems();
  38756. }
  38757. _.forEach(stanza.querySelectorAll('feature'), feature => {
  38758. this.features.create({
  38759. 'var': feature.getAttribute('var'),
  38760. 'from': stanza.getAttribute('from')
  38761. });
  38762. }); // XEP-0128 Service Discovery Extensions
  38763. _.forEach(sizzle('x[type="result"][xmlns="jabber:x:data"] field', stanza), field => {
  38764. this.fields.create({
  38765. 'var': field.getAttribute('var'),
  38766. 'value': _.get(field.querySelector('value'), 'textContent'),
  38767. 'from': stanza.getAttribute('from')
  38768. });
  38769. });
  38770. this.waitUntilFeaturesDiscovered.resolve(this);
  38771. this.trigger('featuresDiscovered');
  38772. }
  38773. });
  38774. _converse.DiscoEntities = Backbone.Collection.extend({
  38775. model: _converse.DiscoEntity,
  38776. fetchEntities() {
  38777. return new Promise((resolve, reject) => {
  38778. this.fetch({
  38779. add: true,
  38780. success: resolve,
  38781. error() {
  38782. reject(new Error("Could not fetch disco entities"));
  38783. }
  38784. });
  38785. });
  38786. }
  38787. });
  38788. function addClientFeatures() {
  38789. // See http://xmpp.org/registrar/disco-categories.html
  38790. _converse.api.disco.own.identities.add('client', 'web', 'Converse');
  38791. _converse.api.disco.own.features.add(Strophe.NS.BOSH);
  38792. _converse.api.disco.own.features.add(Strophe.NS.CHATSTATES);
  38793. _converse.api.disco.own.features.add(Strophe.NS.DISCO_INFO);
  38794. _converse.api.disco.own.features.add(Strophe.NS.ROSTERX); // Limited support
  38795. if (_converse.message_carbons) {
  38796. _converse.api.disco.own.features.add(Strophe.NS.CARBONS);
  38797. }
  38798. _converse.emit('addClientFeatures');
  38799. return this;
  38800. }
  38801. function initStreamFeatures() {
  38802. _converse.stream_features = new Backbone.Collection();
  38803. _converse.stream_features.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.stream-features-${_converse.bare_jid}`));
  38804. _converse.stream_features.fetch({
  38805. success(collection) {
  38806. if (collection.length === 0 && _converse.connection.features) {
  38807. _.forEach(_converse.connection.features.childNodes, feature => {
  38808. _converse.stream_features.create({
  38809. 'name': feature.nodeName,
  38810. 'xmlns': feature.getAttribute('xmlns')
  38811. });
  38812. });
  38813. }
  38814. }
  38815. });
  38816. _converse.emit('streamFeaturesAdded');
  38817. }
  38818. function initializeDisco() {
  38819. addClientFeatures();
  38820. _converse.connection.addHandler(onDiscoInfoRequest, Strophe.NS.DISCO_INFO, 'iq', 'get', null, null);
  38821. _converse.disco_entities = new _converse.DiscoEntities();
  38822. _converse.disco_entities.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.disco-entities-${_converse.bare_jid}`));
  38823. _converse.disco_entities.fetchEntities().then(collection => {
  38824. if (collection.length === 0 || !collection.get(_converse.domain)) {
  38825. // If we don't have an entity for our own XMPP server,
  38826. // create one.
  38827. _converse.disco_entities.create({
  38828. 'jid': _converse.domain
  38829. });
  38830. }
  38831. _converse.emit('discoInitialized');
  38832. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  38833. }
  38834. _converse.api.listen.on('sessionInitialized', initStreamFeatures);
  38835. _converse.api.listen.on('reconnected', initializeDisco);
  38836. _converse.api.listen.on('connected', initializeDisco);
  38837. _converse.api.listen.on('beforeTearDown', () => {
  38838. if (_converse.disco_entities) {
  38839. _converse.disco_entities.each(entity => {
  38840. entity.features.reset();
  38841. entity.features.browserStorage._clear();
  38842. });
  38843. _converse.disco_entities.reset();
  38844. _converse.disco_entities.browserStorage._clear();
  38845. }
  38846. });
  38847. const plugin = this;
  38848. plugin._identities = [];
  38849. plugin._features = [];
  38850. function onDiscoInfoRequest(stanza) {
  38851. const node = stanza.getElementsByTagName('query')[0].getAttribute('node');
  38852. const attrs = {
  38853. xmlns: Strophe.NS.DISCO_INFO
  38854. };
  38855. if (node) {
  38856. attrs.node = node;
  38857. }
  38858. const iqresult = $iq({
  38859. 'type': 'result',
  38860. 'id': stanza.getAttribute('id')
  38861. });
  38862. const from = stanza.getAttribute('from');
  38863. if (from !== null) {
  38864. iqresult.attrs({
  38865. 'to': from
  38866. });
  38867. }
  38868. iqresult.c('query', attrs);
  38869. _.each(plugin._identities, identity => {
  38870. const attrs = {
  38871. 'category': identity.category,
  38872. 'type': identity.type
  38873. };
  38874. if (identity.name) {
  38875. attrs.name = identity.name;
  38876. }
  38877. if (identity.lang) {
  38878. attrs['xml:lang'] = identity.lang;
  38879. }
  38880. iqresult.c('identity', attrs).up();
  38881. });
  38882. _.each(plugin._features, feature => {
  38883. iqresult.c('feature', {
  38884. 'var': feature
  38885. }).up();
  38886. });
  38887. _converse.connection.send(iqresult.tree());
  38888. return true;
  38889. }
  38890. _.extend(_converse.api, {
  38891. /**
  38892. * The XEP-0030 service discovery API
  38893. *
  38894. * This API lets you discover information about entities on the
  38895. * XMPP network.
  38896. *
  38897. * @namespace _converse.api.disco
  38898. * @memberOf _converse.api
  38899. */
  38900. 'disco': {
  38901. /**
  38902. * @namespace _converse.api.disco.stream
  38903. * @memberOf _converse.api.disco
  38904. */
  38905. 'stream': {
  38906. /**
  38907. * @method _converse.api.disco.stream.getFeature
  38908. * @param {String} name The feature name
  38909. * @param {String} xmlns The XML namespace
  38910. * @example _converse.api.disco.stream.getFeature('ver', 'urn:xmpp:features:rosterver')
  38911. */
  38912. 'getFeature': function getFeature(name, xmlns) {
  38913. if (_.isNil(name) || _.isNil(xmlns)) {
  38914. throw new Error("name and xmlns need to be provided when calling disco.stream.getFeature");
  38915. }
  38916. return _converse.stream_features.findWhere({
  38917. 'name': name,
  38918. 'xmlns': xmlns
  38919. });
  38920. }
  38921. },
  38922. /**
  38923. * @namespace _converse.api.disco.own
  38924. * @memberOf _converse.api.disco
  38925. */
  38926. 'own': {
  38927. /**
  38928. * @namespace _converse.api.disco.own.identities
  38929. * @memberOf _converse.api.disco.own
  38930. */
  38931. 'identities': {
  38932. /**
  38933. * Lets you add new identities for this client (i.e. instance of Converse)
  38934. * @method _converse.api.disco.own.identities.add
  38935. *
  38936. * @param {String} category - server, client, gateway, directory, etc.
  38937. * @param {String} type - phone, pc, web, etc.
  38938. * @param {String} name - "Converse"
  38939. * @param {String} lang - en, el, de, etc.
  38940. *
  38941. * @example _converse.api.disco.own.identities.clear();
  38942. */
  38943. add(category, type, name, lang) {
  38944. for (var i = 0; i < plugin._identities.length; i++) {
  38945. if (plugin._identities[i].category == category && plugin._identities[i].type == type && plugin._identities[i].name == name && plugin._identities[i].lang == lang) {
  38946. return false;
  38947. }
  38948. }
  38949. plugin._identities.push({
  38950. category: category,
  38951. type: type,
  38952. name: name,
  38953. lang: lang
  38954. });
  38955. },
  38956. /**
  38957. * Clears all previously registered identities.
  38958. * @method _converse.api.disco.own.identities.clear
  38959. * @example _converse.api.disco.own.identities.clear();
  38960. */
  38961. clear() {
  38962. plugin._identities = [];
  38963. },
  38964. /**
  38965. * Returns all of the identities registered for this client
  38966. * (i.e. instance of Converse).
  38967. * @method _converse.api.disco.identities.get
  38968. * @example const identities = _converse.api.disco.own.identities.get();
  38969. */
  38970. get() {
  38971. return plugin._identities;
  38972. }
  38973. },
  38974. /**
  38975. * @namespace _converse.api.disco.own.features
  38976. * @memberOf _converse.api.disco.own
  38977. */
  38978. 'features': {
  38979. /**
  38980. * Lets you register new disco features for this client (i.e. instance of Converse)
  38981. * @method _converse.api.disco.own.features.add
  38982. * @param {String} name - e.g. http://jabber.org/protocol/caps
  38983. * @example _converse.api.disco.own.features.add("http://jabber.org/protocol/caps");
  38984. */
  38985. add(name) {
  38986. for (var i = 0; i < plugin._features.length; i++) {
  38987. if (plugin._features[i] == name) {
  38988. return false;
  38989. }
  38990. }
  38991. plugin._features.push(name);
  38992. },
  38993. /**
  38994. * Clears all previously registered features.
  38995. * @method _converse.api.disco.own.features.clear
  38996. * @example _converse.api.disco.own.features.clear();
  38997. */
  38998. clear() {
  38999. plugin._features = [];
  39000. },
  39001. /**
  39002. * Returns all of the features registered for this client (i.e. instance of Converse).
  39003. * @method _converse.api.disco.own.features.get
  39004. * @example const features = _converse.api.disco.own.features.get();
  39005. */
  39006. get() {
  39007. return plugin._features;
  39008. }
  39009. }
  39010. },
  39011. /**
  39012. * Query for information about an XMPP entity
  39013. *
  39014. * @method _converse.api.disco.info
  39015. * @param {string} jid The Jabber ID of the entity to query
  39016. * @param {string} [node] A specific node identifier associated with the JID
  39017. * @returns {promise} Promise which resolves once we have a result from the server.
  39018. */
  39019. 'info'(jid, node) {
  39020. const attrs = {
  39021. xmlns: Strophe.NS.DISCO_INFO
  39022. };
  39023. if (node) {
  39024. attrs.node = node;
  39025. }
  39026. const info = $iq({
  39027. 'from': _converse.connection.jid,
  39028. 'to': jid,
  39029. 'type': 'get'
  39030. }).c('query', attrs);
  39031. return _converse.api.sendIQ(info);
  39032. },
  39033. /**
  39034. * Query for items associated with an XMPP entity
  39035. *
  39036. * @method _converse.api.disco.items
  39037. * @param {string} jid The Jabber ID of the entity to query for items
  39038. * @param {string} [node] A specific node identifier associated with the JID
  39039. * @returns {promise} Promise which resolves once we have a result from the server.
  39040. */
  39041. 'items'(jid, node) {
  39042. const attrs = {
  39043. 'xmlns': Strophe.NS.DISCO_ITEMS
  39044. };
  39045. if (node) {
  39046. attrs.node = node;
  39047. }
  39048. return _converse.api.sendIQ($iq({
  39049. 'from': _converse.connection.jid,
  39050. 'to': jid,
  39051. 'type': 'get'
  39052. }).c('query', attrs));
  39053. },
  39054. /**
  39055. * Namespace for methods associated with disco entities
  39056. *
  39057. * @namespace _converse.api.disco.entities
  39058. * @memberOf _converse.api.disco
  39059. */
  39060. 'entities': {
  39061. /**
  39062. * Get the the corresponding `DiscoEntity` instance.
  39063. *
  39064. * @method _converse.api.disco.entities.get
  39065. * @param {string} jid The Jabber ID of the entity
  39066. * @param {boolean} [create] Whether the entity should be created if it doesn't exist.
  39067. * @example _converse.api.disco.entities.get(jid);
  39068. */
  39069. 'get'(jid, create = false) {
  39070. return _converse.api.waitUntil('discoInitialized').then(() => {
  39071. if (_.isNil(jid)) {
  39072. return _converse.disco_entities;
  39073. }
  39074. const entity = _converse.disco_entities.get(jid);
  39075. if (entity || !create) {
  39076. return entity;
  39077. }
  39078. return _converse.disco_entities.create({
  39079. 'jid': jid
  39080. });
  39081. });
  39082. }
  39083. },
  39084. /**
  39085. * Used to determine whether an entity supports a given feature.
  39086. *
  39087. * @method _converse.api.disco.supports
  39088. * @param {string} feature The feature that might be
  39089. * supported. In the XML stanza, this is the `var`
  39090. * attribute of the `<feature>` element. For
  39091. * example: `http://jabber.org/protocol/muc`
  39092. * @param {string} jid The JID of the entity
  39093. * (and its associated items) which should be queried
  39094. * @returns {promise} A promise which resolves with a list containing
  39095. * _converse.Entity instances representing the entity
  39096. * itself or those items associated with the entity if
  39097. * they support the given feature.
  39098. *
  39099. * @example
  39100. * _converse.api.disco.supports(Strophe.NS.MAM, _converse.bare_jid)
  39101. * .then(value => {
  39102. * // `value` is a map with two keys, `supported` and `feature`.
  39103. * if (value.supported) {
  39104. * // The feature is supported
  39105. * } else {
  39106. * // The feature is not supported
  39107. * }
  39108. * }).catch(() => {
  39109. * _converse.log(
  39110. * "Error or timeout while checking for feature support",
  39111. * Strophe.LogLevel.ERROR
  39112. * );
  39113. * });
  39114. */
  39115. 'supports'(feature, jid) {
  39116. if (_.isNil(jid)) {
  39117. throw new TypeError('api.disco.supports: You need to provide an entity JID');
  39118. }
  39119. return _converse.api.waitUntil('discoInitialized').then(() => _converse.api.disco.entities.get(jid, true)).then(entity => entity.waitUntilFeaturesDiscovered).then(entity => {
  39120. const promises = _.concat(entity.items.map(item => item.hasFeature(feature)), entity.hasFeature(feature));
  39121. return Promise.all(promises);
  39122. }).then(result => f.filter(f.isObject, result));
  39123. },
  39124. /**
  39125. * Refresh the features (and fields and identities) associated with a
  39126. * disco entity by refetching them from the server
  39127. *
  39128. * @method _converse.api.disco.refreshFeatures
  39129. * @param {string} jid The JID of the entity whose features are refreshed.
  39130. * @returns {promise} A promise which resolves once the features have been refreshed
  39131. * @example
  39132. * await _converse.api.disco.refreshFeatures('room@conference.example.org');
  39133. */
  39134. 'refreshFeatures'(jid) {
  39135. if (_.isNil(jid)) {
  39136. throw new TypeError('api.disco.refreshFeatures: You need to provide an entity JID');
  39137. }
  39138. return _converse.api.waitUntil('discoInitialized').then(() => _converse.api.disco.entities.get(jid, true)).then(entity => {
  39139. entity.features.reset();
  39140. entity.fields.reset();
  39141. entity.identities.reset();
  39142. entity.waitUntilFeaturesDiscovered = utils.getResolveablePromise();
  39143. entity.queryInfo();
  39144. return entity.waitUntilFeaturesDiscovered;
  39145. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  39146. },
  39147. /**
  39148. * Return all the features associated with a disco entity
  39149. *
  39150. * @method _converse.api.disco.getFeatures
  39151. * @param {string} jid The JID of the entity whose features are returned.
  39152. * @returns {promise} A promise which resolves with the returned features
  39153. * @example
  39154. * const features = await _converse.api.disco.getFeatures('room@conference.example.org');
  39155. */
  39156. 'getFeatures'(jid) {
  39157. if (_.isNil(jid)) {
  39158. throw new TypeError('api.disco.getFeatures: You need to provide an entity JID');
  39159. }
  39160. return _converse.api.waitUntil('discoInitialized').then(() => _converse.api.disco.entities.get(jid, true)).then(entity => entity.waitUntilFeaturesDiscovered).then(entity => entity.features).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  39161. },
  39162. /**
  39163. * Return all the service discovery extensions fields
  39164. * associated with an entity.
  39165. *
  39166. * See [XEP-0129: Service Discovery Extensions](https://xmpp.org/extensions/xep-0128.html)
  39167. *
  39168. * @method _converse.api.disco.getFields
  39169. * @param {string} jid The JID of the entity whose fields are returned.
  39170. * @example
  39171. * const fields = await _converse.api.disco.getFields('room@conference.example.org');
  39172. */
  39173. 'getFields'(jid) {
  39174. if (_.isNil(jid)) {
  39175. throw new TypeError('api.disco.getFields: You need to provide an entity JID');
  39176. }
  39177. return _converse.api.waitUntil('discoInitialized').then(() => _converse.api.disco.entities.get(jid, true)).then(entity => entity.waitUntilFeaturesDiscovered).then(entity => entity.fields).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  39178. },
  39179. /**
  39180. * Get the identity (with the given category and type) for a given disco entity.
  39181. *
  39182. * For example, when determining support for PEP (personal eventing protocol), you
  39183. * want to know whether the user's own JID has an identity with
  39184. * `category='pubsub'` and `type='pep'` as explained in this section of
  39185. * XEP-0163: https://xmpp.org/extensions/xep-0163.html#support
  39186. *
  39187. * @method _converse.api.disco.getIdentity
  39188. * @param {string} The identity category.
  39189. * In the XML stanza, this is the `category`
  39190. * attribute of the `<identity>` element.
  39191. * For example: 'pubsub'
  39192. * @param {string} type The identity type.
  39193. * In the XML stanza, this is the `type`
  39194. * attribute of the `<identity>` element.
  39195. * For example: 'pep'
  39196. * @param {string} jid The JID of the entity which might have the identity
  39197. * @returns {promise} A promise which resolves with a map indicating
  39198. * whether an identity with a given type is provided by the entity.
  39199. * @example
  39200. * _converse.api.disco.getIdentity('pubsub', 'pep', _converse.bare_jid).then(
  39201. * function (identity) {
  39202. * if (_.isNil(identity)) {
  39203. * // The entity DOES NOT have this identity
  39204. * } else {
  39205. * // The entity DOES have this identity
  39206. * }
  39207. * }
  39208. * ).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  39209. */
  39210. 'getIdentity'(category, type, jid) {
  39211. return _converse.api.disco.entities.get(jid, true).then(e => e.getIdentity(category, type));
  39212. }
  39213. }
  39214. });
  39215. }
  39216. });
  39217. });
  39218. /***/ }),
  39219. /***/ "./src/converse-dragresize.js":
  39220. /*!************************************!*\
  39221. !*** ./src/converse-dragresize.js ***!
  39222. \************************************/
  39223. /*! no static exports found */
  39224. /***/ (function(module, exports, __webpack_require__) {
  39225. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  39226. // http://conversejs.org
  39227. //
  39228. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  39229. // Licensed under the Mozilla Public License (MPLv2)
  39230. //
  39231. /*global define, window, document */
  39232. (function (root, factory) {
  39233. !(__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),
  39234. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39235. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39236. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39237. })(this, function (converse, tpl_dragresize) {
  39238. "use strict";
  39239. const _ = converse.env._;
  39240. function renderDragResizeHandles(_converse, view) {
  39241. const flyout = view.el.querySelector('.box-flyout');
  39242. const div = document.createElement('div');
  39243. div.innerHTML = tpl_dragresize();
  39244. flyout.insertBefore(div, flyout.firstChild);
  39245. }
  39246. converse.plugins.add('converse-dragresize', {
  39247. /* Plugin dependencies are other plugins which might be
  39248. * overridden or relied upon, and therefore need to be loaded before
  39249. * this plugin.
  39250. *
  39251. * If the setting "strict_plugin_dependencies" is set to true,
  39252. * an error will be raised if the plugin is not found. By default it's
  39253. * false, which means these plugins are only loaded opportunistically.
  39254. *
  39255. * NB: These plugins need to have already been loaded via require.js.
  39256. */
  39257. dependencies: ["converse-chatview", "converse-headline", "converse-muc-views"],
  39258. enabled(_converse) {
  39259. return _converse.view_mode == 'overlayed';
  39260. },
  39261. overrides: {
  39262. // Overrides mentioned here will be picked up by converse.js's
  39263. // plugin architecture they will replace existing methods on the
  39264. // relevant objects or classes.
  39265. //
  39266. // New functions which don't exist yet can also be added.
  39267. registerGlobalEventHandlers() {
  39268. const that = this;
  39269. document.addEventListener('mousemove', function (ev) {
  39270. if (!that.resizing || !that.allow_dragresize) {
  39271. return true;
  39272. }
  39273. ev.preventDefault();
  39274. that.resizing.chatbox.resizeChatBox(ev);
  39275. });
  39276. document.addEventListener('mouseup', function (ev) {
  39277. if (!that.resizing || !that.allow_dragresize) {
  39278. return true;
  39279. }
  39280. ev.preventDefault();
  39281. const height = that.applyDragResistance(that.resizing.chatbox.height, that.resizing.chatbox.model.get('default_height'));
  39282. const width = that.applyDragResistance(that.resizing.chatbox.width, that.resizing.chatbox.model.get('default_width'));
  39283. if (that.connection.connected) {
  39284. that.resizing.chatbox.model.save({
  39285. 'height': height
  39286. });
  39287. that.resizing.chatbox.model.save({
  39288. 'width': width
  39289. });
  39290. } else {
  39291. that.resizing.chatbox.model.set({
  39292. 'height': height
  39293. });
  39294. that.resizing.chatbox.model.set({
  39295. 'width': width
  39296. });
  39297. }
  39298. that.resizing = null;
  39299. });
  39300. return this.__super__.registerGlobalEventHandlers.apply(this, arguments);
  39301. },
  39302. ChatBox: {
  39303. initialize() {
  39304. const _converse = this.__super__._converse;
  39305. const result = this.__super__.initialize.apply(this, arguments),
  39306. height = this.get('height'),
  39307. width = this.get('width'),
  39308. save = this.get('id') === 'controlbox' ? this.set.bind(this) : this.save.bind(this);
  39309. save({
  39310. 'height': _converse.applyDragResistance(height, this.get('default_height')),
  39311. 'width': _converse.applyDragResistance(width, this.get('default_width'))
  39312. });
  39313. return result;
  39314. }
  39315. },
  39316. ChatBoxView: {
  39317. events: {
  39318. 'mousedown .dragresize-top': 'onStartVerticalResize',
  39319. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  39320. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  39321. },
  39322. initialize() {
  39323. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  39324. this.__super__.initialize.apply(this, arguments);
  39325. },
  39326. render() {
  39327. const result = this.__super__.render.apply(this, arguments);
  39328. renderDragResizeHandles(this.__super__._converse, this);
  39329. this.setWidth();
  39330. return result;
  39331. },
  39332. setWidth() {
  39333. // If a custom width is applied (due to drag-resizing),
  39334. // then we need to set the width of the .chatbox element as well.
  39335. if (this.model.get('width')) {
  39336. this.el.style.width = this.model.get('width');
  39337. }
  39338. },
  39339. _show() {
  39340. this.initDragResize().setDimensions();
  39341. this.__super__._show.apply(this, arguments);
  39342. },
  39343. initDragResize() {
  39344. /* Determine and store the default box size.
  39345. * We need this information for the drag-resizing feature.
  39346. */
  39347. const _converse = this.__super__._converse,
  39348. flyout = this.el.querySelector('.box-flyout'),
  39349. style = window.getComputedStyle(flyout);
  39350. if (_.isUndefined(this.model.get('height'))) {
  39351. const height = parseInt(style.height.replace(/px$/, ''), 10),
  39352. width = parseInt(style.width.replace(/px$/, ''), 10);
  39353. this.model.set('height', height);
  39354. this.model.set('default_height', height);
  39355. this.model.set('width', width);
  39356. this.model.set('default_width', width);
  39357. }
  39358. const min_width = style['min-width'];
  39359. const min_height = style['min-height'];
  39360. this.model.set('min_width', min_width.endsWith('px') ? Number(min_width.replace(/px$/, '')) : 0);
  39361. this.model.set('min_height', min_height.endsWith('px') ? Number(min_height.replace(/px$/, '')) : 0); // Initialize last known mouse position
  39362. this.prev_pageY = 0;
  39363. this.prev_pageX = 0;
  39364. if (_converse.connection.connected) {
  39365. this.height = this.model.get('height');
  39366. this.width = this.model.get('width');
  39367. }
  39368. return this;
  39369. },
  39370. setDimensions() {
  39371. // Make sure the chat box has the right height and width.
  39372. this.adjustToViewport();
  39373. this.setChatBoxHeight(this.model.get('height'));
  39374. this.setChatBoxWidth(this.model.get('width'));
  39375. },
  39376. setChatBoxHeight(height) {
  39377. const _converse = this.__super__._converse;
  39378. if (height) {
  39379. height = _converse.applyDragResistance(height, this.model.get('default_height')) + 'px';
  39380. } else {
  39381. height = "";
  39382. }
  39383. const flyout_el = this.el.querySelector('.box-flyout');
  39384. if (!_.isNull(flyout_el)) {
  39385. flyout_el.style.height = height;
  39386. }
  39387. },
  39388. setChatBoxWidth(width) {
  39389. const _converse = this.__super__._converse;
  39390. if (width) {
  39391. width = _converse.applyDragResistance(width, this.model.get('default_width')) + 'px';
  39392. } else {
  39393. width = "";
  39394. }
  39395. this.el.style.width = width;
  39396. const flyout_el = this.el.querySelector('.box-flyout');
  39397. if (!_.isNull(flyout_el)) {
  39398. flyout_el.style.width = width;
  39399. }
  39400. },
  39401. adjustToViewport() {
  39402. /* Event handler called when viewport gets resized. We remove
  39403. * custom width/height from chat boxes.
  39404. */
  39405. const viewport_width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
  39406. const viewport_height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
  39407. if (viewport_width <= 480) {
  39408. this.model.set('height', undefined);
  39409. this.model.set('width', undefined);
  39410. } else if (viewport_width <= this.model.get('width')) {
  39411. this.model.set('width', undefined);
  39412. } else if (viewport_height <= this.model.get('height')) {
  39413. this.model.set('height', undefined);
  39414. }
  39415. },
  39416. onStartVerticalResize(ev) {
  39417. const _converse = this.__super__._converse;
  39418. if (!_converse.allow_dragresize) {
  39419. return true;
  39420. } // Record element attributes for mouseMove().
  39421. const flyout = this.el.querySelector('.box-flyout'),
  39422. style = window.getComputedStyle(flyout);
  39423. this.height = parseInt(style.height.replace(/px$/, ''), 10);
  39424. _converse.resizing = {
  39425. 'chatbox': this,
  39426. 'direction': 'top'
  39427. };
  39428. this.prev_pageY = ev.pageY;
  39429. },
  39430. onStartHorizontalResize(ev) {
  39431. const _converse = this.__super__._converse;
  39432. if (!_converse.allow_dragresize) {
  39433. return true;
  39434. }
  39435. const flyout = this.el.querySelector('.box-flyout'),
  39436. style = window.getComputedStyle(flyout);
  39437. this.width = parseInt(style.width.replace(/px$/, ''), 10);
  39438. _converse.resizing = {
  39439. 'chatbox': this,
  39440. 'direction': 'left'
  39441. };
  39442. this.prev_pageX = ev.pageX;
  39443. },
  39444. onStartDiagonalResize(ev) {
  39445. const _converse = this.__super__._converse;
  39446. this.onStartHorizontalResize(ev);
  39447. this.onStartVerticalResize(ev);
  39448. _converse.resizing.direction = 'topleft';
  39449. },
  39450. resizeChatBox(ev) {
  39451. let diff;
  39452. const _converse = this.__super__._converse;
  39453. if (_converse.resizing.direction.indexOf('top') === 0) {
  39454. diff = ev.pageY - this.prev_pageY;
  39455. if (diff) {
  39456. this.height = this.height - diff > (this.model.get('min_height') || 0) ? this.height - diff : this.model.get('min_height');
  39457. this.prev_pageY = ev.pageY;
  39458. this.setChatBoxHeight(this.height);
  39459. }
  39460. }
  39461. if (_.includes(_converse.resizing.direction, 'left')) {
  39462. diff = this.prev_pageX - ev.pageX;
  39463. if (diff) {
  39464. this.width = this.width + diff > (this.model.get('min_width') || 0) ? this.width + diff : this.model.get('min_width');
  39465. this.prev_pageX = ev.pageX;
  39466. this.setChatBoxWidth(this.width);
  39467. }
  39468. }
  39469. }
  39470. },
  39471. HeadlinesBoxView: {
  39472. events: {
  39473. 'mousedown .dragresize-top': 'onStartVerticalResize',
  39474. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  39475. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  39476. },
  39477. initialize() {
  39478. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  39479. return this.__super__.initialize.apply(this, arguments);
  39480. },
  39481. render() {
  39482. const result = this.__super__.render.apply(this, arguments);
  39483. renderDragResizeHandles(this.__super__._converse, this);
  39484. this.setWidth();
  39485. return result;
  39486. }
  39487. },
  39488. ControlBoxView: {
  39489. events: {
  39490. 'mousedown .dragresize-top': 'onStartVerticalResize',
  39491. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  39492. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  39493. },
  39494. initialize() {
  39495. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  39496. this.__super__.initialize.apply(this, arguments);
  39497. },
  39498. render() {
  39499. const result = this.__super__.render.apply(this, arguments);
  39500. renderDragResizeHandles(this.__super__._converse, this);
  39501. this.setWidth();
  39502. return result;
  39503. },
  39504. renderLoginPanel() {
  39505. const result = this.__super__.renderLoginPanel.apply(this, arguments);
  39506. this.initDragResize().setDimensions();
  39507. return result;
  39508. },
  39509. renderControlBoxPane() {
  39510. const result = this.__super__.renderControlBoxPane.apply(this, arguments);
  39511. this.initDragResize().setDimensions();
  39512. return result;
  39513. }
  39514. },
  39515. ChatRoomView: {
  39516. events: {
  39517. 'mousedown .dragresize-top': 'onStartVerticalResize',
  39518. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  39519. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  39520. },
  39521. initialize() {
  39522. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  39523. this.__super__.initialize.apply(this, arguments);
  39524. },
  39525. render() {
  39526. const result = this.__super__.render.apply(this, arguments);
  39527. renderDragResizeHandles(this.__super__._converse, this);
  39528. this.setWidth();
  39529. return result;
  39530. }
  39531. }
  39532. },
  39533. initialize() {
  39534. /* The initialize function gets called as soon as the plugin is
  39535. * loaded by converse.js's plugin machinery.
  39536. */
  39537. const _converse = this._converse;
  39538. _converse.api.settings.update({
  39539. allow_dragresize: true
  39540. });
  39541. _converse.applyDragResistance = function (value, default_value) {
  39542. /* This method applies some resistance around the
  39543. * default_value. If value is close enough to
  39544. * default_value, then default_value is returned instead.
  39545. */
  39546. if (_.isUndefined(value)) {
  39547. return undefined;
  39548. } else if (_.isUndefined(default_value)) {
  39549. return value;
  39550. }
  39551. const resistance = 10;
  39552. if (value !== default_value && Math.abs(value - default_value) < resistance) {
  39553. return default_value;
  39554. }
  39555. return value;
  39556. };
  39557. }
  39558. });
  39559. });
  39560. /***/ }),
  39561. /***/ "./src/converse-embedded.js":
  39562. /*!**********************************!*\
  39563. !*** ./src/converse-embedded.js ***!
  39564. \**********************************/
  39565. /*! no static exports found */
  39566. /***/ (function(module, exports, __webpack_require__) {
  39567. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  39568. // http://conversejs.org
  39569. //
  39570. // Copyright (c) 2012-2018, the Converse.js developers
  39571. // Licensed under the Mozilla Public License (MPLv2)
  39572. (function (root, factory) {
  39573. !(__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),
  39574. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39575. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39576. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39577. })(this, function (converse) {
  39578. "use strict";
  39579. const _converse$env = converse.env,
  39580. Backbone = _converse$env.Backbone,
  39581. _ = _converse$env._;
  39582. converse.plugins.add('converse-embedded', {
  39583. enabled(_converse) {
  39584. return _converse.view_mode === 'embedded';
  39585. },
  39586. initialize() {
  39587. /* The initialize function gets called as soon as the plugin is
  39588. * loaded by converse.js's plugin machinery.
  39589. */
  39590. this._converse.api.settings.update({
  39591. 'allow_logout': false,
  39592. // No point in logging out when we have auto_login as true.
  39593. 'allow_muc_invitations': false,
  39594. // Doesn't make sense to allow because only
  39595. // roster contacts can be invited
  39596. 'hide_muc_server': true
  39597. });
  39598. const _converse = this._converse;
  39599. if (!_.isArray(_converse.auto_join_rooms) && !_.isArray(_converse.auto_join_private_chats)) {
  39600. throw new Error("converse-embedded: auto_join_rooms must be an Array");
  39601. }
  39602. if (_converse.auto_join_rooms.length > 1 && _converse.auto_join_private_chats.length > 1) {
  39603. 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.");
  39604. }
  39605. }
  39606. });
  39607. });
  39608. /***/ }),
  39609. /***/ "./src/converse-fullscreen.js":
  39610. /*!************************************!*\
  39611. !*** ./src/converse-fullscreen.js ***!
  39612. \************************************/
  39613. /*! no static exports found */
  39614. /***/ (function(module, exports, __webpack_require__) {
  39615. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  39616. // http://conversejs.org
  39617. //
  39618. // Copyright (c) JC Brand <jc@opkode.com>
  39619. // Licensed under the Mozilla Public License (MPLv2)
  39620. //
  39621. /*global define */
  39622. (function (root, factory) {
  39623. !(__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),
  39624. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39625. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39626. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39627. })(this, function (converse, tpl_brand_heading) {
  39628. "use strict";
  39629. const _converse$env = converse.env,
  39630. Strophe = _converse$env.Strophe,
  39631. _ = _converse$env._;
  39632. converse.plugins.add('converse-fullscreen', {
  39633. enabled(_converse) {
  39634. return _.includes(['fullscreen', 'embedded'], _converse.view_mode);
  39635. },
  39636. overrides: {
  39637. // overrides mentioned here will be picked up by converse.js's
  39638. // plugin architecture they will replace existing methods on the
  39639. // relevant objects or classes.
  39640. //
  39641. // new functions which don't exist yet can also be added.
  39642. ControlBoxView: {
  39643. createBrandHeadingHTML() {
  39644. return tpl_brand_heading();
  39645. },
  39646. insertBrandHeading() {
  39647. const _converse = this.__super__._converse;
  39648. const el = _converse.root.getElementById('converse-login-panel');
  39649. el.parentNode.insertAdjacentHTML('afterbegin', this.createBrandHeadingHTML());
  39650. }
  39651. }
  39652. },
  39653. initialize() {
  39654. this._converse.api.settings.update({
  39655. chatview_avatar_height: 50,
  39656. chatview_avatar_width: 50,
  39657. hide_open_bookmarks: true,
  39658. show_controlbox_by_default: true,
  39659. sticky_controlbox: true
  39660. });
  39661. }
  39662. });
  39663. });
  39664. /***/ }),
  39665. /***/ "./src/converse-headline.js":
  39666. /*!**********************************!*\
  39667. !*** ./src/converse-headline.js ***!
  39668. \**********************************/
  39669. /*! no static exports found */
  39670. /***/ (function(module, exports, __webpack_require__) {
  39671. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  39672. // http://conversejs.org
  39673. //
  39674. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  39675. // Licensed under the Mozilla Public License (MPLv2)
  39676. //
  39677. /*global define */
  39678. (function (root, factory) {
  39679. !(__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),
  39680. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39681. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39682. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39683. })(this, function (converse, tpl_chatbox) {
  39684. "use strict";
  39685. const _converse$env = converse.env,
  39686. _ = _converse$env._,
  39687. utils = _converse$env.utils;
  39688. converse.plugins.add('converse-headline', {
  39689. /* Plugin dependencies are other plugins which might be
  39690. * overridden or relied upon, and therefore need to be loaded before
  39691. * this plugin.
  39692. *
  39693. * If the setting "strict_plugin_dependencies" is set to true,
  39694. * an error will be raised if the plugin is not found. By default it's
  39695. * false, which means these plugins are only loaded opportunistically.
  39696. *
  39697. * NB: These plugins need to have already been loaded via require.js.
  39698. */
  39699. dependencies: ["converse-chatview"],
  39700. overrides: {
  39701. // Overrides mentioned here will be picked up by converse.js's
  39702. // plugin architecture they will replace existing methods on the
  39703. // relevant objects or classes.
  39704. //
  39705. // New functions which don't exist yet can also be added.
  39706. ChatBoxes: {
  39707. model(attrs, options) {
  39708. const _converse = this.__super__._converse;
  39709. if (attrs.type == _converse.HEADLINES_TYPE) {
  39710. return new _converse.HeadlinesBox(attrs, options);
  39711. } else {
  39712. return this.__super__.model.apply(this, arguments);
  39713. }
  39714. }
  39715. }
  39716. },
  39717. initialize() {
  39718. /* The initialize function gets called as soon as the plugin is
  39719. * loaded by converse.js's plugin machinery.
  39720. */
  39721. const _converse = this._converse,
  39722. __ = _converse.__;
  39723. _converse.HeadlinesBox = _converse.ChatBox.extend({
  39724. defaults: {
  39725. 'type': _converse.HEADLINES_TYPE,
  39726. 'bookmarked': false,
  39727. 'chat_state': undefined,
  39728. 'num_unread': 0,
  39729. 'url': ''
  39730. }
  39731. });
  39732. _converse.HeadlinesBoxView = _converse.ChatBoxView.extend({
  39733. className: 'chatbox headlines',
  39734. events: {
  39735. 'click .close-chatbox-button': 'close',
  39736. 'click .toggle-chatbox-button': 'minimize',
  39737. 'keypress textarea.chat-textarea': 'keyPressed'
  39738. },
  39739. initialize() {
  39740. this.initDebounced();
  39741. this.disable_mam = true; // Don't do MAM queries for this box
  39742. this.model.messages.on('add', this.onMessageAdded, this);
  39743. this.model.on('show', this.show, this);
  39744. this.model.on('destroy', this.hide, this);
  39745. this.model.on('change:minimized', this.onMinimizedChanged, this);
  39746. this.render().insertHeading().fetchMessages().insertIntoDOM().hide();
  39747. _converse.emit('chatBoxOpened', this);
  39748. _converse.emit('chatBoxInitialized', this);
  39749. },
  39750. render() {
  39751. this.el.setAttribute('id', this.model.get('box_id'));
  39752. this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
  39753. info_close: '',
  39754. label_personal_message: '',
  39755. show_send_button: false,
  39756. show_toolbar: false,
  39757. unread_msgs: ''
  39758. }));
  39759. this.content = this.el.querySelector('.chat-content');
  39760. return this;
  39761. },
  39762. // Override to avoid the methods in converse-chatview.js
  39763. 'renderMessageForm': _.noop,
  39764. 'afterShown': _.noop
  39765. });
  39766. function onHeadlineMessage(message) {
  39767. /* Handler method for all incoming messages of type "headline". */
  39768. const from_jid = message.getAttribute('from');
  39769. if (utils.isHeadlineMessage(_converse, message)) {
  39770. if (_.includes(from_jid, '@') && !_converse.api.contacts.get(from_jid) && !_converse.allow_non_roster_messaging) {
  39771. return;
  39772. }
  39773. if (_.isNull(message.querySelector('body'))) {
  39774. // Avoid creating a chat box if we have nothing to show
  39775. // inside it.
  39776. return;
  39777. }
  39778. const chatbox = _converse.chatboxes.create({
  39779. 'id': from_jid,
  39780. 'jid': from_jid,
  39781. 'type': _converse.HEADLINES_TYPE,
  39782. 'from': from_jid
  39783. });
  39784. chatbox.createMessage(message, message);
  39785. _converse.emit('message', {
  39786. 'chatbox': chatbox,
  39787. 'stanza': message
  39788. });
  39789. }
  39790. return true;
  39791. }
  39792. function registerHeadlineHandler() {
  39793. _converse.connection.addHandler(onHeadlineMessage, null, 'message');
  39794. }
  39795. _converse.on('connected', registerHeadlineHandler);
  39796. _converse.on('reconnected', registerHeadlineHandler);
  39797. _converse.on('chatBoxViewsInitialized', () => {
  39798. const that = _converse.chatboxviews;
  39799. _converse.chatboxes.on('add', item => {
  39800. if (!that.get(item.get('id')) && item.get('type') === _converse.HEADLINES_TYPE) {
  39801. that.add(item.get('id'), new _converse.HeadlinesBoxView({
  39802. model: item
  39803. }));
  39804. }
  39805. });
  39806. });
  39807. }
  39808. });
  39809. });
  39810. /***/ }),
  39811. /***/ "./src/converse-mam.js":
  39812. /*!*****************************!*\
  39813. !*** ./src/converse-mam.js ***!
  39814. \*****************************/
  39815. /*! no static exports found */
  39816. /***/ (function(module, exports, __webpack_require__) {
  39817. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  39818. // http://conversejs.org
  39819. //
  39820. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  39821. // Licensed under the Mozilla Public License (MPLv2)
  39822. //
  39823. /*global define */
  39824. // XEP-0059 Result Set Management
  39825. (function (root, factory) {
  39826. !(__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__(/*! strophejs-plugin-rsm */ "./node_modules/strophejs-plugin-rsm/lib/strophe.rsm.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  39827. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39828. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39829. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39830. })(this, function (sizzle, converse) {
  39831. "use strict";
  39832. const CHATROOMS_TYPE = 'chatroom';
  39833. const _converse$env = converse.env,
  39834. Promise = _converse$env.Promise,
  39835. Strophe = _converse$env.Strophe,
  39836. $iq = _converse$env.$iq,
  39837. _ = _converse$env._,
  39838. moment = _converse$env.moment;
  39839. const u = converse.env.utils;
  39840. const RSM_ATTRIBUTES = ['max', 'first', 'last', 'after', 'before', 'index', 'count']; // XEP-0313 Message Archive Management
  39841. const MAM_ATTRIBUTES = ['with', 'start', 'end'];
  39842. function getMessageArchiveID(stanza) {
  39843. // See https://xmpp.org/extensions/xep-0313.html#results
  39844. //
  39845. // The result messages MUST contain a <result/> element with an 'id'
  39846. // attribute that gives the current message's archive UID
  39847. const result = sizzle(`result[xmlns="${Strophe.NS.MAM}"]`, stanza).pop();
  39848. if (!_.isUndefined(result)) {
  39849. return result.getAttribute('id');
  39850. } // See: https://xmpp.org/extensions/xep-0313.html#archives_id
  39851. const stanza_id = sizzle(`stanza-id[xmlns="${Strophe.NS.SID}"]`, stanza).pop();
  39852. if (!_.isUndefined(stanza_id)) {
  39853. return stanza_id.getAttribute('id');
  39854. }
  39855. }
  39856. function queryForArchivedMessages(_converse, options, callback, errback) {
  39857. /* Internal function, called by the "archive.query" API method.
  39858. */
  39859. let date;
  39860. if (_.isFunction(options)) {
  39861. callback = options;
  39862. errback = callback;
  39863. options = null;
  39864. }
  39865. const queryid = _converse.connection.getUniqueId();
  39866. const attrs = {
  39867. 'type': 'set'
  39868. };
  39869. if (options && options.groupchat) {
  39870. if (!options['with']) {
  39871. // eslint-disable-line dot-notation
  39872. throw new Error('You need to specify a "with" value containing ' + 'the chat room JID, when querying groupchat messages.');
  39873. }
  39874. attrs.to = options['with']; // eslint-disable-line dot-notation
  39875. }
  39876. const stanza = $iq(attrs).c('query', {
  39877. 'xmlns': Strophe.NS.MAM,
  39878. 'queryid': queryid
  39879. });
  39880. if (options) {
  39881. stanza.c('x', {
  39882. 'xmlns': Strophe.NS.XFORM,
  39883. 'type': 'submit'
  39884. }).c('field', {
  39885. 'var': 'FORM_TYPE',
  39886. 'type': 'hidden'
  39887. }).c('value').t(Strophe.NS.MAM).up().up();
  39888. if (options['with'] && !options.groupchat) {
  39889. // eslint-disable-line dot-notation
  39890. stanza.c('field', {
  39891. 'var': 'with'
  39892. }).c('value').t(options['with']).up().up(); // eslint-disable-line dot-notation
  39893. }
  39894. _.each(['start', 'end'], function (t) {
  39895. if (options[t]) {
  39896. date = moment(options[t]);
  39897. if (date.isValid()) {
  39898. stanza.c('field', {
  39899. 'var': t
  39900. }).c('value').t(date.format()).up().up();
  39901. } else {
  39902. throw new TypeError(`archive.query: invalid date provided for: ${t}`);
  39903. }
  39904. }
  39905. });
  39906. stanza.up();
  39907. if (options instanceof Strophe.RSM) {
  39908. stanza.cnode(options.toXML());
  39909. } else if (_.intersection(RSM_ATTRIBUTES, _.keys(options)).length) {
  39910. stanza.cnode(new Strophe.RSM(options).toXML());
  39911. }
  39912. }
  39913. const messages = [];
  39914. const message_handler = _converse.connection.addHandler(message => {
  39915. if (options.groupchat && message.getAttribute('from') !== options['with']) {
  39916. // eslint-disable-line dot-notation
  39917. return true;
  39918. }
  39919. const result = message.querySelector('result');
  39920. if (!_.isNull(result) && result.getAttribute('queryid') === queryid) {
  39921. messages.push(message);
  39922. }
  39923. return true;
  39924. }, Strophe.NS.MAM);
  39925. _converse.connection.sendIQ(stanza, function (iq) {
  39926. _converse.connection.deleteHandler(message_handler);
  39927. if (_.isFunction(callback)) {
  39928. const set = iq.querySelector('set');
  39929. let rsm;
  39930. if (!_.isUndefined(set)) {
  39931. rsm = new Strophe.RSM({
  39932. xml: set
  39933. });
  39934. _.extend(rsm, _.pick(options, _.concat(MAM_ATTRIBUTES, ['max'])));
  39935. }
  39936. callback(messages, rsm);
  39937. }
  39938. }, function () {
  39939. _converse.connection.deleteHandler(message_handler);
  39940. if (_.isFunction(errback)) {
  39941. errback.apply(this, arguments);
  39942. }
  39943. }, _converse.message_archiving_timeout);
  39944. }
  39945. converse.plugins.add('converse-mam', {
  39946. dependencies: ['converse-chatview', 'converse-muc', 'converse-muc-views'],
  39947. overrides: {
  39948. // Overrides mentioned here will be picked up by converse.js's
  39949. // plugin architecture they will replace existing methods on the
  39950. // relevant objects or classes.
  39951. //
  39952. // New functions which don't exist yet can also be added.
  39953. ChatBox: {
  39954. getMessageAttributesFromStanza(message, original_stanza) {
  39955. function _process(attrs) {
  39956. const archive_id = getMessageArchiveID(original_stanza);
  39957. if (archive_id) {
  39958. attrs.archive_id = archive_id;
  39959. }
  39960. return attrs;
  39961. }
  39962. const result = this.__super__.getMessageAttributesFromStanza.apply(this, arguments);
  39963. if (result instanceof Promise) {
  39964. return new Promise((resolve, reject) => result.then(attrs => resolve(_process(attrs))).catch(reject));
  39965. } else {
  39966. return _process(result);
  39967. }
  39968. }
  39969. },
  39970. ChatBoxView: {
  39971. render() {
  39972. const result = this.__super__.render.apply(this, arguments);
  39973. if (!this.disable_mam) {
  39974. this.content.addEventListener('scroll', _.debounce(this.onScroll.bind(this), 100));
  39975. }
  39976. return result;
  39977. },
  39978. fetchNewestMessages() {
  39979. /* Fetches messages that might have been archived *after*
  39980. * the last archived message in our local cache.
  39981. */
  39982. if (this.disable_mam) {
  39983. return;
  39984. }
  39985. const _converse = this.__super__._converse,
  39986. most_recent_msg = u.getMostRecentMessage(this.model);
  39987. if (_.isNil(most_recent_msg)) {
  39988. this.fetchArchivedMessages();
  39989. } else {
  39990. const archive_id = most_recent_msg.get('archive_id');
  39991. if (archive_id) {
  39992. this.fetchArchivedMessages({
  39993. 'after': most_recent_msg.get('archive_id')
  39994. });
  39995. } else {
  39996. this.fetchArchivedMessages({
  39997. 'start': most_recent_msg.get('time')
  39998. });
  39999. }
  40000. }
  40001. },
  40002. fetchArchivedMessagesIfNecessary() {
  40003. /* Check if archived messages should be fetched, and if so, do so. */
  40004. if (this.disable_mam || this.model.get('mam_initialized')) {
  40005. return;
  40006. }
  40007. const _converse = this.__super__._converse;
  40008. _converse.api.disco.supports(Strophe.NS.MAM, _converse.bare_jid).then(result => {
  40009. // Success
  40010. if (result.length) {
  40011. this.fetchArchivedMessages();
  40012. }
  40013. this.model.save({
  40014. 'mam_initialized': true
  40015. });
  40016. }, () => {
  40017. // Error
  40018. _converse.log("Error or timeout while checking for MAM support", Strophe.LogLevel.ERROR);
  40019. }).catch(msg => {
  40020. this.clearSpinner();
  40021. _converse.log(msg, Strophe.LogLevel.FATAL);
  40022. });
  40023. },
  40024. fetchArchivedMessages(options) {
  40025. const _converse = this.__super__._converse;
  40026. if (this.disable_mam) {
  40027. return;
  40028. }
  40029. const is_groupchat = this.model.get('type') === CHATROOMS_TYPE;
  40030. let mam_jid, message_handler;
  40031. if (is_groupchat) {
  40032. mam_jid = this.model.get('jid');
  40033. message_handler = this.model.onMessage.bind(this.model);
  40034. } else {
  40035. mam_jid = _converse.bare_jid;
  40036. message_handler = _converse.chatboxes.onMessage.bind(_converse.chatboxes);
  40037. }
  40038. _converse.api.disco.supports(Strophe.NS.MAM, mam_jid).then(results => {
  40039. // Success
  40040. if (!results.length) {
  40041. return;
  40042. }
  40043. this.addSpinner();
  40044. _converse.api.archive.query(_.extend({
  40045. 'groupchat': is_groupchat,
  40046. 'before': '',
  40047. // Page backwards from the most recent message
  40048. 'max': _converse.archived_messages_page_size,
  40049. 'with': this.model.get('jid')
  40050. }, options), messages => {
  40051. // Success
  40052. this.clearSpinner();
  40053. _.each(messages, message_handler);
  40054. }, () => {
  40055. // Error
  40056. this.clearSpinner();
  40057. _converse.log("Error or timeout while trying to fetch " + "archived messages", Strophe.LogLevel.ERROR);
  40058. });
  40059. }, () => {
  40060. // Error
  40061. _converse.log("Error or timeout while checking for MAM support", Strophe.LogLevel.ERROR);
  40062. }).catch(msg => {
  40063. this.clearSpinner();
  40064. _converse.log(msg, Strophe.LogLevel.FATAL);
  40065. });
  40066. },
  40067. onScroll(ev) {
  40068. const _converse = this.__super__._converse;
  40069. if (this.content.scrollTop === 0 && this.model.messages.length) {
  40070. const oldest_message = this.model.messages.at(0);
  40071. const archive_id = oldest_message.get('archive_id');
  40072. if (archive_id) {
  40073. this.fetchArchivedMessages({
  40074. 'before': archive_id
  40075. });
  40076. } else {
  40077. this.fetchArchivedMessages({
  40078. 'end': oldest_message.get('time')
  40079. });
  40080. }
  40081. }
  40082. }
  40083. },
  40084. ChatRoom: {
  40085. isDuplicate(message, original_stanza) {
  40086. const result = this.__super__.isDuplicate.apply(this, arguments);
  40087. if (result) {
  40088. return result;
  40089. }
  40090. const archive_id = getMessageArchiveID(original_stanza);
  40091. if (archive_id) {
  40092. return this.messages.filter({
  40093. 'archive_id': archive_id
  40094. }).length > 0;
  40095. }
  40096. }
  40097. },
  40098. ChatRoomView: {
  40099. initialize() {
  40100. const _converse = this.__super__._converse;
  40101. this.__super__.initialize.apply(this, arguments);
  40102. this.model.on('change:mam_enabled', this.fetchArchivedMessagesIfNecessary, this);
  40103. this.model.on('change:connection_status', this.fetchArchivedMessagesIfNecessary, this);
  40104. },
  40105. renderChatArea() {
  40106. const result = this.__super__.renderChatArea.apply(this, arguments);
  40107. if (!this.disable_mam) {
  40108. this.content.addEventListener('scroll', _.debounce(this.onScroll.bind(this), 100));
  40109. }
  40110. return result;
  40111. },
  40112. fetchArchivedMessagesIfNecessary() {
  40113. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED || !this.model.get('mam_enabled') || this.model.get('mam_initialized')) {
  40114. return;
  40115. }
  40116. this.fetchArchivedMessages();
  40117. this.model.save({
  40118. 'mam_initialized': true
  40119. });
  40120. }
  40121. }
  40122. },
  40123. initialize() {
  40124. /* The initialize function gets called as soon as the plugin is
  40125. * loaded by Converse.js's plugin machinery.
  40126. */
  40127. const _converse = this._converse;
  40128. _converse.api.settings.update({
  40129. archived_messages_page_size: '50',
  40130. message_archiving: undefined,
  40131. // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
  40132. message_archiving_timeout: 8000 // Time (in milliseconds) to wait before aborting MAM request
  40133. });
  40134. _converse.onMAMError = function (model, iq) {
  40135. if (iq.querySelectorAll('feature-not-implemented').length) {
  40136. _converse.log("Message Archive Management (XEP-0313) not supported by this server", Strophe.LogLevel.WARN);
  40137. } else {
  40138. _converse.log("An error occured while trying to set archiving preferences.", Strophe.LogLevel.ERROR);
  40139. _converse.log(iq);
  40140. }
  40141. };
  40142. _converse.onMAMPreferences = function (feature, iq) {
  40143. /* Handle returned IQ stanza containing Message Archive
  40144. * Management (XEP-0313) preferences.
  40145. *
  40146. * XXX: For now we only handle the global default preference.
  40147. * The XEP also provides for per-JID preferences, which is
  40148. * currently not supported in converse.js.
  40149. *
  40150. * Per JID preferences will be set in chat boxes, so it'll
  40151. * probbaly be handled elsewhere in any case.
  40152. */
  40153. const preference = sizzle(`prefs[xmlns="${Strophe.NS.MAM}"]`, iq).pop();
  40154. const default_pref = preference.getAttribute('default');
  40155. if (default_pref !== _converse.message_archiving) {
  40156. const stanza = $iq({
  40157. 'type': 'set'
  40158. }).c('prefs', {
  40159. 'xmlns': Strophe.NS.MAM,
  40160. 'default': _converse.message_archiving
  40161. });
  40162. _.each(preference.children, function (child) {
  40163. stanza.cnode(child).up();
  40164. });
  40165. _converse.connection.sendIQ(stanza, _.partial(function (feature, iq) {
  40166. // XXX: Strictly speaking, the server should respond with the updated prefs
  40167. // (see example 18: https://xmpp.org/extensions/xep-0313.html#config)
  40168. // but Prosody doesn't do this, so we don't rely on it.
  40169. feature.save({
  40170. 'preferences': {
  40171. 'default': _converse.message_archiving
  40172. }
  40173. });
  40174. }, feature), _converse.onMAMError);
  40175. } else {
  40176. feature.save({
  40177. 'preferences': {
  40178. 'default': _converse.message_archiving
  40179. }
  40180. });
  40181. }
  40182. };
  40183. /* Event handlers */
  40184. _converse.on('serviceDiscovered', feature => {
  40185. const prefs = feature.get('preferences') || {};
  40186. if (feature.get('var') === Strophe.NS.MAM && prefs['default'] !== _converse.message_archiving && // eslint-disable-line dot-notation
  40187. !_.isUndefined(_converse.message_archiving)) {
  40188. // Ask the server for archiving preferences
  40189. _converse.connection.sendIQ($iq({
  40190. 'type': 'get'
  40191. }).c('prefs', {
  40192. 'xmlns': Strophe.NS.MAM
  40193. }), _.partial(_converse.onMAMPreferences, feature), _.partial(_converse.onMAMError, feature));
  40194. }
  40195. });
  40196. _converse.on('addClientFeatures', () => {
  40197. _converse.api.disco.own.features.add(Strophe.NS.MAM);
  40198. });
  40199. _converse.on('afterMessagesFetched', chatboxview => {
  40200. chatboxview.fetchNewestMessages();
  40201. });
  40202. _converse.on('reconnected', () => {
  40203. const private_chats = _converse.chatboxviews.filter(view => _.at(view, 'model.attributes.type')[0] === 'chatbox');
  40204. _.each(private_chats, view => view.fetchNewestMessages());
  40205. });
  40206. _.extend(_converse.api, {
  40207. /**
  40208. * The [XEP-0313](https://xmpp.org/extensions/xep-0313.html) Message Archive Management API
  40209. *
  40210. * Enables you to query an XMPP server for archived messages.
  40211. *
  40212. * See also the [message-archiving](/docs/html/configuration.html#message-archiving)
  40213. * option in the configuration settings section, which you'll
  40214. * usually want to use in conjunction with this API.
  40215. *
  40216. * @namespace _converse.api.archive
  40217. * @memberOf _converse.api
  40218. */
  40219. 'archive': {
  40220. /**
  40221. * Query for archived messages.
  40222. *
  40223. * The options parameter can also be an instance of
  40224. * Strophe.RSM to enable easy querying between results pages.
  40225. *
  40226. * @method _converse.api.archive.query
  40227. * @param {(Object|Strophe.RSM)} options Query parameters, either
  40228. * MAM-specific or also for Result Set Management.
  40229. * Can be either an object or an instance of Strophe.RSM.
  40230. * Valid query parameters are:
  40231. * * `with`
  40232. * * `start`
  40233. * * `end`
  40234. * * `first`
  40235. * * `last`
  40236. * * `after`
  40237. * * `before`
  40238. * * `index`
  40239. * * `count`
  40240. * @param {Function} callback A function to call whenever
  40241. * we receive query-relevant stanza.
  40242. * When the callback is called, a Strophe.RSM object is
  40243. * returned on which "next" or "previous" can be called
  40244. * before passing it in again to this method, to
  40245. * get the next or previous page in the result set.
  40246. * @param {Function} errback A function to call when an
  40247. * error stanza is received, for example when it
  40248. * doesn't support message archiving.
  40249. *
  40250. * @example
  40251. * // Requesting all archived messages
  40252. * // ================================
  40253. * //
  40254. * // The simplest query that can be made is to simply not pass in any parameters.
  40255. * // Such a query will return all archived messages for the current user.
  40256. * //
  40257. * // Generally, you'll however always want to pass in a callback method, to receive
  40258. * // the returned messages.
  40259. *
  40260. * this._converse.api.archive.query(
  40261. * (messages) => {
  40262. * // Do something with the messages, like showing them in your webpage.
  40263. * },
  40264. * (iq) => {
  40265. * // The query was not successful, perhaps inform the user?
  40266. * // The IQ stanza returned by the XMPP server is passed in, so that you
  40267. * // may inspect it and determine what the problem was.
  40268. * }
  40269. * )
  40270. * @example
  40271. * // Waiting until server support has been determined
  40272. * // ================================================
  40273. * //
  40274. * // The query method will only work if Converse has been able to determine that
  40275. * // the server supports MAM queries, otherwise the following error will be raised:
  40276. * //
  40277. * // "This server does not support XEP-0313, Message Archive Management"
  40278. * //
  40279. * // The very first time Converse loads in a browser tab, if you call the query
  40280. * // API too quickly, the above error might appear because service discovery has not
  40281. * // yet been completed.
  40282. * //
  40283. * // To work solve this problem, you can first listen for the `serviceDiscovered` event,
  40284. * // through which you can be informed once support for MAM has been determined.
  40285. *
  40286. * _converse.api.listen.on('serviceDiscovered', function (feature) {
  40287. * if (feature.get('var') === converse.env.Strophe.NS.MAM) {
  40288. * _converse.api.archive.query()
  40289. * }
  40290. * });
  40291. *
  40292. * @example
  40293. * // Requesting all archived messages for a particular contact or room
  40294. * // =================================================================
  40295. * //
  40296. * // To query for messages sent between the current user and another user or room,
  40297. * // the query options need to contain the the JID (Jabber ID) of the user or
  40298. * // room under the `with` key.
  40299. *
  40300. * // For a particular user
  40301. * this._converse.api.archive.query({'with': 'john@doe.net'}, callback, errback);)
  40302. *
  40303. * // For a particular room
  40304. * this._converse.api.archive.query({'with': 'discuss@conference.doglovers.net'}, callback, errback);)
  40305. *
  40306. * @example
  40307. * // Requesting all archived messages before or after a certain date
  40308. * // ===============================================================
  40309. * //
  40310. * // The `start` and `end` parameters are used to query for messages
  40311. * // within a certain timeframe. The passed in date values may either be ISO8601
  40312. * // formatted date strings, or JavaScript Date objects.
  40313. *
  40314. * const options = {
  40315. * 'with': 'john@doe.net',
  40316. * 'start': '2010-06-07T00:00:00Z',
  40317. * 'end': '2010-07-07T13:23:54Z'
  40318. * };
  40319. * this._converse.api.archive.query(options, callback, errback);
  40320. *
  40321. * @example
  40322. * // Limiting the amount of messages returned
  40323. * // ========================================
  40324. * //
  40325. * // The amount of returned messages may be limited with the `max` parameter.
  40326. * // By default, the messages are returned from oldest to newest.
  40327. *
  40328. * // Return maximum 10 archived messages
  40329. * this._converse.api.archive.query({'with': 'john@doe.net', 'max':10}, callback, errback);
  40330. *
  40331. * @example
  40332. * // Paging forwards through a set of archived messages
  40333. * // ==================================================
  40334. * //
  40335. * // When limiting the amount of messages returned per query, you might want to
  40336. * // repeatedly make a further query to fetch the next batch of messages.
  40337. * //
  40338. * // To simplify this usecase for you, the callback method receives not only an array
  40339. * // with the returned archived messages, but also a special RSM (*Result Set
  40340. * // Management*) object which contains the query parameters you passed in, as well
  40341. * // as two utility methods `next`, and `previous`.
  40342. * //
  40343. * // When you call one of these utility methods on the returned RSM object, and then
  40344. * // pass the result into a new query, you'll receive the next or previous batch of
  40345. * // archived messages. Please note, when calling these methods, pass in an integer
  40346. * // to limit your results.
  40347. *
  40348. * const callback = function (messages, rsm) {
  40349. * // Do something with the messages, like showing them in your webpage.
  40350. * // ...
  40351. * // You can now use the returned "rsm" object, to fetch the next batch of messages:
  40352. * _converse.api.archive.query(rsm.next(10), callback, errback))
  40353. *
  40354. * }
  40355. * _converse.api.archive.query({'with': 'john@doe.net', 'max':10}, callback, errback);
  40356. *
  40357. * @example
  40358. * // Paging backwards through a set of archived messages
  40359. * // ===================================================
  40360. * //
  40361. * // To page backwards through the archive, you need to know the UID of the message
  40362. * // which you'd like to page backwards from and then pass that as value for the
  40363. * // `before` parameter. If you simply want to page backwards from the most recent
  40364. * // message, pass in the `before` parameter with an empty string value `''`.
  40365. *
  40366. * _converse.api.archive.query({'before': '', 'max':5}, function (message, rsm) {
  40367. * // Do something with the messages, like showing them in your webpage.
  40368. * // ...
  40369. * // You can now use the returned "rsm" object, to fetch the previous batch of messages:
  40370. * rsm.previous(5); // Call previous method, to update the object's parameters,
  40371. * // passing in a limit value of 5.
  40372. * // Now we query again, to get the previous batch.
  40373. * _converse.api.archive.query(rsm, callback, errback);
  40374. * }
  40375. */
  40376. 'query': function query(options, callback, errback) {
  40377. if (!_converse.api.connection.connected()) {
  40378. throw new Error('Can\'t call `api.archive.query` before having established an XMPP session');
  40379. }
  40380. return queryForArchivedMessages(_converse, options, callback, errback);
  40381. }
  40382. }
  40383. });
  40384. }
  40385. });
  40386. });
  40387. /***/ }),
  40388. /***/ "./src/converse-message-view.js":
  40389. /*!**************************************!*\
  40390. !*** ./src/converse-message-view.js ***!
  40391. \**************************************/
  40392. /*! no static exports found */
  40393. /***/ (function(module, exports, __webpack_require__) {
  40394. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  40395. // https://conversejs.org
  40396. //
  40397. // Copyright (c) 2013-2018, the Converse.js developers
  40398. // Licensed under the Mozilla Public License (MPLv2)
  40399. (function (root, factory) {
  40400. !(__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),
  40401. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40402. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40403. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40404. })(this, function (u, converse, xss, filesize, tpl_csn, tpl_file_progress, tpl_info, tpl_message, tpl_message_versions_modal) {
  40405. "use strict";
  40406. const _converse$env = converse.env,
  40407. Backbone = _converse$env.Backbone,
  40408. _ = _converse$env._,
  40409. moment = _converse$env.moment;
  40410. converse.plugins.add('converse-message-view', {
  40411. initialize() {
  40412. /* The initialize function gets called as soon as the plugin is
  40413. * loaded by converse.js's plugin machinery.
  40414. */
  40415. const _converse = this._converse,
  40416. __ = _converse.__;
  40417. _converse.api.settings.update({
  40418. 'show_images_inline': true
  40419. });
  40420. _converse.MessageVersionsModal = _converse.BootstrapModal.extend({
  40421. toHTML() {
  40422. return tpl_message_versions_modal(_.extend(this.model.toJSON(), {
  40423. '__': __
  40424. }));
  40425. }
  40426. });
  40427. _converse.MessageView = _converse.ViewWithAvatar.extend({
  40428. events: {
  40429. 'click .chat-msg__edit-modal': 'showMessageVersionsModal'
  40430. },
  40431. initialize() {
  40432. if (this.model.vcard) {
  40433. this.model.vcard.on('change', this.render, this);
  40434. }
  40435. this.model.on('change', this.onChanged, this);
  40436. this.model.on('destroy', this.remove, this);
  40437. },
  40438. async render() {
  40439. const is_followup = u.hasClass('chat-msg--followup', this.el);
  40440. if (this.model.isOnlyChatStateNotification()) {
  40441. this.renderChatStateNotification();
  40442. } else if (this.model.get('file') && !this.model.get('oob_url')) {
  40443. this.renderFileUploadProgresBar();
  40444. } else if (this.model.get('type') === 'error') {
  40445. this.renderErrorMessage();
  40446. } else {
  40447. await this.renderChatMessage();
  40448. }
  40449. if (is_followup) {
  40450. u.addClass('chat-msg--followup', this.el);
  40451. }
  40452. return this.el;
  40453. },
  40454. async onChanged(item) {
  40455. // Jot down whether it was edited because the `changed`
  40456. // attr gets removed when this.render() gets called further
  40457. // down.
  40458. const edited = item.changed.edited;
  40459. if (this.model.changed.progress) {
  40460. return this.renderFileUploadProgresBar();
  40461. }
  40462. if (_.filter(['correcting', 'message', 'type', 'upload'], prop => Object.prototype.hasOwnProperty.call(this.model.changed, prop)).length) {
  40463. await this.render();
  40464. }
  40465. if (edited) {
  40466. this.onMessageEdited();
  40467. }
  40468. },
  40469. onMessageEdited() {
  40470. if (this.model.get('is_archived')) {
  40471. return;
  40472. }
  40473. this.el.addEventListener('animationend', () => u.removeClass('onload', this.el));
  40474. u.addClass('onload', this.el);
  40475. },
  40476. replaceElement(msg) {
  40477. if (!_.isNil(this.el.parentElement)) {
  40478. this.el.parentElement.replaceChild(msg, this.el);
  40479. }
  40480. this.setElement(msg);
  40481. return this.el;
  40482. },
  40483. async renderChatMessage() {
  40484. const is_me_message = this.isMeCommand(),
  40485. moment_time = moment(this.model.get('time')),
  40486. role = this.model.vcard ? this.model.vcard.get('role') : null,
  40487. roles = role ? role.split(',') : [];
  40488. const msg = u.stringToElement(tpl_message(_.extend(this.model.toJSON(), {
  40489. '__': __,
  40490. 'is_me_message': is_me_message,
  40491. 'roles': roles,
  40492. 'pretty_time': moment_time.format(_converse.time_format),
  40493. 'time': moment_time.format(),
  40494. 'extra_classes': this.getExtraMessageClasses(),
  40495. 'label_show': __('Show more'),
  40496. 'username': this.model.getDisplayName()
  40497. })));
  40498. const url = this.model.get('oob_url');
  40499. if (url) {
  40500. msg.querySelector('.chat-msg__media').innerHTML = _.flow(_.partial(u.renderFileURL, _converse), _.partial(u.renderMovieURL, _converse), _.partial(u.renderAudioURL, _converse), _.partial(u.renderImageURL, _converse))(url);
  40501. }
  40502. let text = this.getMessageText();
  40503. const msg_content = msg.querySelector('.chat-msg__text');
  40504. if (text && text !== url) {
  40505. if (is_me_message) {
  40506. text = text.replace(/^\/me/, '');
  40507. }
  40508. text = xss.filterXSS(text, {
  40509. 'whiteList': {}
  40510. });
  40511. 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);
  40512. }
  40513. const promises = [];
  40514. promises.push(u.renderImageURLs(_converse, msg_content));
  40515. if (this.model.get('type') !== 'headline') {
  40516. promises.push(this.renderAvatar(msg));
  40517. }
  40518. await Promise.all(promises);
  40519. this.replaceElement(msg);
  40520. this.model.collection.trigger('rendered', this);
  40521. },
  40522. renderErrorMessage() {
  40523. const moment_time = moment(this.model.get('time')),
  40524. msg = u.stringToElement(tpl_info(_.extend(this.model.toJSON(), {
  40525. 'extra_classes': 'chat-error',
  40526. 'isodate': moment_time.format()
  40527. })));
  40528. return this.replaceElement(msg);
  40529. },
  40530. renderChatStateNotification() {
  40531. let text;
  40532. const from = this.model.get('from'),
  40533. name = this.model.getDisplayName();
  40534. if (this.model.get('chat_state') === _converse.COMPOSING) {
  40535. if (this.model.get('sender') === 'me') {
  40536. text = __('Typing from another device');
  40537. } else {
  40538. text = __('%1$s is typing', name);
  40539. }
  40540. } else if (this.model.get('chat_state') === _converse.PAUSED) {
  40541. if (this.model.get('sender') === 'me') {
  40542. text = __('Stopped typing on the other device');
  40543. } else {
  40544. text = __('%1$s has stopped typing', name);
  40545. }
  40546. } else if (this.model.get('chat_state') === _converse.GONE) {
  40547. text = __('%1$s has gone away', name);
  40548. } else {
  40549. return;
  40550. }
  40551. const isodate = moment().format();
  40552. this.replaceElement(u.stringToElement(tpl_csn({
  40553. 'message': text,
  40554. 'from': from,
  40555. 'isodate': isodate
  40556. })));
  40557. },
  40558. renderFileUploadProgresBar() {
  40559. const msg = u.stringToElement(tpl_file_progress(_.extend(this.model.toJSON(), {
  40560. 'filesize': filesize(this.model.get('file').size)
  40561. })));
  40562. this.replaceElement(msg);
  40563. this.renderAvatar();
  40564. },
  40565. showMessageVersionsModal(ev) {
  40566. ev.preventDefault();
  40567. if (_.isUndefined(this.model.message_versions_modal)) {
  40568. this.model.message_versions_modal = new _converse.MessageVersionsModal({
  40569. 'model': this.model
  40570. });
  40571. }
  40572. this.model.message_versions_modal.show(ev);
  40573. },
  40574. getMessageText() {
  40575. if (this.model.get('is_encrypted')) {
  40576. return this.model.get('plaintext') || (_converse.debug ? __('Unencryptable OMEMO message') : null);
  40577. }
  40578. return this.model.get('message');
  40579. },
  40580. isMeCommand() {
  40581. const text = this.getMessageText();
  40582. if (!text) {
  40583. return false;
  40584. }
  40585. const match = text.match(/^\/(.*?)(?: (.*))?$/);
  40586. return match && match[1] === 'me';
  40587. },
  40588. processMessageText() {
  40589. var text = this.get('message');
  40590. text = u.geoUriToHttp(text, _converse.geouri_replacement);
  40591. },
  40592. getExtraMessageClasses() {
  40593. let extra_classes = this.model.get('is_delayed') && 'delayed' || '';
  40594. if (this.model.get('type') === 'groupchat' && this.model.get('sender') === 'them') {
  40595. if (this.model.collection.chatbox.isUserMentioned(this.model)) {
  40596. // Add special class to mark groupchat messages
  40597. // in which we are mentioned.
  40598. extra_classes += ' mentioned';
  40599. }
  40600. }
  40601. if (this.model.get('correcting')) {
  40602. extra_classes += ' correcting';
  40603. }
  40604. return extra_classes;
  40605. }
  40606. });
  40607. }
  40608. });
  40609. return converse;
  40610. });
  40611. /***/ }),
  40612. /***/ "./src/converse-minimize.js":
  40613. /*!**********************************!*\
  40614. !*** ./src/converse-minimize.js ***!
  40615. \**********************************/
  40616. /*! no static exports found */
  40617. /***/ (function(module, exports, __webpack_require__) {
  40618. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  40619. // http://conversejs.org
  40620. //
  40621. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  40622. // Licensed under the Mozilla Public License (MPLv2)
  40623. //
  40624. /*global define, window, document */
  40625. (function (root, factory) {
  40626. !(__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),
  40627. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40628. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40629. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40630. })(this, function (converse, tpl_chatbox_minimize, tpl_toggle_chats, tpl_trimmed_chat, tpl_chats_panel) {
  40631. "use strict";
  40632. const _converse$env = converse.env,
  40633. _ = _converse$env._,
  40634. Backbone = _converse$env.Backbone,
  40635. Promise = _converse$env.Promise,
  40636. Strophe = _converse$env.Strophe,
  40637. b64_sha1 = _converse$env.b64_sha1,
  40638. moment = _converse$env.moment;
  40639. const u = converse.env.utils;
  40640. converse.plugins.add('converse-minimize', {
  40641. /* Optional dependencies are other plugins which might be
  40642. * overridden or relied upon, and therefore need to be loaded before
  40643. * this plugin. They are called "optional" because they might not be
  40644. * available, in which case any overrides applicable to them will be
  40645. * ignored.
  40646. *
  40647. * It's possible however to make optional dependencies non-optional.
  40648. * If the setting "strict_plugin_dependencies" is set to true,
  40649. * an error will be raised if the plugin is not found.
  40650. *
  40651. * NB: These plugins need to have already been loaded via require.js.
  40652. */
  40653. dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-muc-views", "converse-headline"],
  40654. enabled(_converse) {
  40655. return _converse.view_mode == 'overlayed';
  40656. },
  40657. overrides: {
  40658. // Overrides mentioned here will be picked up by converse.js's
  40659. // plugin architecture they will replace existing methods on the
  40660. // relevant objects or classes.
  40661. //
  40662. // New functions which don't exist yet can also be added.
  40663. ChatBox: {
  40664. initialize() {
  40665. this.__super__.initialize.apply(this, arguments);
  40666. this.on('show', this.maximize, this);
  40667. if (this.get('id') === 'controlbox') {
  40668. return;
  40669. }
  40670. this.save({
  40671. 'minimized': this.get('minimized') || false,
  40672. 'time_minimized': this.get('time_minimized') || moment()
  40673. });
  40674. },
  40675. maximize() {
  40676. u.safeSave(this, {
  40677. 'minimized': false,
  40678. 'time_opened': moment().valueOf()
  40679. });
  40680. },
  40681. minimize() {
  40682. u.safeSave(this, {
  40683. 'minimized': true,
  40684. 'time_minimized': moment().format()
  40685. });
  40686. }
  40687. },
  40688. ChatBoxView: {
  40689. events: {
  40690. 'click .toggle-chatbox-button': 'minimize'
  40691. },
  40692. initialize() {
  40693. this.model.on('change:minimized', this.onMinimizedChanged, this);
  40694. return this.__super__.initialize.apply(this, arguments);
  40695. },
  40696. _show() {
  40697. const _converse = this.__super__._converse;
  40698. if (!this.model.get('minimized')) {
  40699. this.__super__._show.apply(this, arguments);
  40700. _converse.chatboxviews.trimChats(this);
  40701. } else {
  40702. this.minimize();
  40703. }
  40704. },
  40705. isNewMessageHidden() {
  40706. return this.model.get('minimized') || this.__super__.isNewMessageHidden.apply(this, arguments);
  40707. },
  40708. shouldShowOnTextMessage() {
  40709. return !this.model.get('minimized') && this.__super__.shouldShowOnTextMessage.apply(this, arguments);
  40710. },
  40711. setChatBoxHeight(height) {
  40712. if (!this.model.get('minimized')) {
  40713. return this.__super__.setChatBoxHeight.apply(this, arguments);
  40714. }
  40715. },
  40716. setChatBoxWidth(width) {
  40717. if (!this.model.get('minimized')) {
  40718. return this.__super__.setChatBoxWidth.apply(this, arguments);
  40719. }
  40720. },
  40721. onMinimizedChanged(item) {
  40722. if (item.get('minimized')) {
  40723. this.minimize();
  40724. } else {
  40725. this.maximize();
  40726. }
  40727. },
  40728. maximize() {
  40729. // Restores a minimized chat box
  40730. const _converse = this.__super__._converse;
  40731. this.insertIntoDOM();
  40732. if (!this.model.isScrolledUp()) {
  40733. this.model.clearUnreadMsgCounter();
  40734. }
  40735. this.show();
  40736. this.__super__._converse.emit('chatBoxMaximized', this);
  40737. return this;
  40738. },
  40739. minimize(ev) {
  40740. const _converse = this.__super__._converse;
  40741. if (ev && ev.preventDefault) {
  40742. ev.preventDefault();
  40743. } // save the scroll position to restore it on maximize
  40744. if (this.model.collection && this.model.collection.browserStorage) {
  40745. this.model.save({
  40746. 'scroll': this.content.scrollTop
  40747. });
  40748. } else {
  40749. this.model.set({
  40750. 'scroll': this.content.scrollTop
  40751. });
  40752. }
  40753. this.setChatState(_converse.INACTIVE).model.minimize();
  40754. this.hide();
  40755. _converse.emit('chatBoxMinimized', this);
  40756. }
  40757. },
  40758. ChatBoxHeading: {
  40759. render() {
  40760. const _converse = this.__super__._converse,
  40761. __ = _converse.__;
  40762. const result = this.__super__.render.apply(this, arguments);
  40763. const new_html = tpl_chatbox_minimize({
  40764. info_minimize: __('Minimize this chat box')
  40765. });
  40766. const el = this.el.querySelector('.toggle-chatbox-button');
  40767. if (el) {
  40768. el.outerHTML = new_html;
  40769. } else {
  40770. const button = this.el.querySelector('.close-chatbox-button');
  40771. button.insertAdjacentHTML('afterEnd', new_html);
  40772. }
  40773. }
  40774. },
  40775. ChatRoomView: {
  40776. events: {
  40777. 'click .toggle-chatbox-button': 'minimize'
  40778. },
  40779. initialize() {
  40780. this.model.on('change:minimized', function (item) {
  40781. if (item.get('minimized')) {
  40782. this.hide();
  40783. } else {
  40784. this.maximize();
  40785. }
  40786. }, this);
  40787. const result = this.__super__.initialize.apply(this, arguments);
  40788. if (this.model.get('minimized')) {
  40789. this.hide();
  40790. }
  40791. return result;
  40792. },
  40793. generateHeadingHTML() {
  40794. const _converse = this.__super__._converse,
  40795. __ = _converse.__;
  40796. const html = this.__super__.generateHeadingHTML.apply(this, arguments);
  40797. const div = document.createElement('div');
  40798. div.innerHTML = html;
  40799. const button = div.querySelector('.close-chatbox-button');
  40800. button.insertAdjacentHTML('afterend', tpl_chatbox_minimize({
  40801. 'info_minimize': __('Minimize this chat box')
  40802. }));
  40803. return div.innerHTML;
  40804. }
  40805. },
  40806. ChatBoxes: {
  40807. chatBoxMayBeShown(chatbox) {
  40808. return this.__super__.chatBoxMayBeShown.apply(this, arguments) && !chatbox.get('minimized');
  40809. }
  40810. },
  40811. ChatBoxViews: {
  40812. getChatBoxWidth(view) {
  40813. if (!view.model.get('minimized') && u.isVisible(view.el)) {
  40814. return u.getOuterWidth(view.el, true);
  40815. }
  40816. return 0;
  40817. },
  40818. getShownChats() {
  40819. return this.filter(view => // The controlbox can take a while to close,
  40820. // so we need to check its state. That's why we checked
  40821. // the 'closed' state.
  40822. !view.model.get('minimized') && !view.model.get('closed') && u.isVisible(view.el));
  40823. },
  40824. trimChats(newchat) {
  40825. /* This method is called when a newly created chat box will
  40826. * be shown.
  40827. *
  40828. * It checks whether there is enough space on the page to show
  40829. * another chat box. Otherwise it minimizes the oldest chat box
  40830. * to create space.
  40831. */
  40832. const _converse = this.__super__._converse,
  40833. shown_chats = this.getShownChats(),
  40834. body_width = u.getOuterWidth(document.querySelector('body'), true);
  40835. if (_converse.no_trimming || shown_chats.length <= 1) {
  40836. return;
  40837. }
  40838. if (this.getChatBoxWidth(shown_chats[0]) === body_width) {
  40839. // If the chats shown are the same width as the body,
  40840. // then we're in responsive mode and the chats are
  40841. // fullscreen. In this case we don't trim.
  40842. return;
  40843. }
  40844. _converse.api.waitUntil('minimizedChatsInitialized').then(() => {
  40845. const minimized_el = _.get(_converse.minimized_chats, 'el'),
  40846. new_id = newchat ? newchat.model.get('id') : null;
  40847. if (minimized_el) {
  40848. const minimized_width = _.includes(this.model.pluck('minimized'), true) ? u.getOuterWidth(minimized_el, true) : 0;
  40849. const boxes_width = _.reduce(this.xget(new_id), (memo, view) => memo + this.getChatBoxWidth(view), newchat ? u.getOuterWidth(newchat.el, true) : 0);
  40850. if (minimized_width + boxes_width > body_width) {
  40851. const oldest_chat = this.getOldestMaximizedChat([new_id]);
  40852. if (oldest_chat) {
  40853. // We hide the chat immediately, because waiting
  40854. // for the event to fire (and letting the
  40855. // ChatBoxView hide it then) causes race
  40856. // conditions.
  40857. const view = this.get(oldest_chat.get('id'));
  40858. if (view) {
  40859. view.hide();
  40860. }
  40861. oldest_chat.minimize();
  40862. }
  40863. }
  40864. }
  40865. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  40866. },
  40867. getOldestMaximizedChat(exclude_ids) {
  40868. // Get oldest view (if its id is not excluded)
  40869. exclude_ids.push('controlbox');
  40870. let i = 0;
  40871. let model = this.model.sort().at(i);
  40872. while (_.includes(exclude_ids, model.get('id')) || model.get('minimized') === true) {
  40873. i++;
  40874. model = this.model.at(i);
  40875. if (!model) {
  40876. return null;
  40877. }
  40878. }
  40879. return model;
  40880. }
  40881. }
  40882. },
  40883. initialize() {
  40884. /* The initialize function gets called as soon as the plugin is
  40885. * loaded by Converse.js's plugin machinery.
  40886. */
  40887. const _converse = this._converse,
  40888. __ = _converse.__; // Add new HTML templates.
  40889. _converse.templates.chatbox_minimize = tpl_chatbox_minimize;
  40890. _converse.templates.toggle_chats = tpl_toggle_chats;
  40891. _converse.templates.trimmed_chat = tpl_trimmed_chat;
  40892. _converse.templates.chats_panel = tpl_chats_panel;
  40893. _converse.api.settings.update({
  40894. no_trimming: false // Set to true for phantomjs tests (where browser apparently has no width)
  40895. });
  40896. _converse.api.promises.add('minimizedChatsInitialized');
  40897. _converse.MinimizedChatBoxView = Backbone.NativeView.extend({
  40898. tagName: 'div',
  40899. className: 'chat-head row no-gutters',
  40900. events: {
  40901. 'click .close-chatbox-button': 'close',
  40902. 'click .restore-chat': 'restore'
  40903. },
  40904. initialize() {
  40905. this.model.on('change:num_unread', this.render, this);
  40906. },
  40907. render() {
  40908. const data = _.extend(this.model.toJSON(), {
  40909. 'tooltip': __('Click to restore this chat')
  40910. });
  40911. if (this.model.get('type') === 'chatroom') {
  40912. data.title = this.model.get('name');
  40913. u.addClass('chat-head-chatroom', this.el);
  40914. } else {
  40915. data.title = this.model.get('fullname');
  40916. u.addClass('chat-head-chatbox', this.el);
  40917. }
  40918. this.el.innerHTML = tpl_trimmed_chat(data);
  40919. return this.el;
  40920. },
  40921. close(ev) {
  40922. if (ev && ev.preventDefault) {
  40923. ev.preventDefault();
  40924. }
  40925. this.remove();
  40926. const view = _converse.chatboxviews.get(this.model.get('id'));
  40927. if (view) {
  40928. // This will call model.destroy(), removing it from the
  40929. // collection and will also emit 'chatBoxClosed'
  40930. view.close();
  40931. } else {
  40932. this.model.destroy();
  40933. _converse.emit('chatBoxClosed', this);
  40934. }
  40935. return this;
  40936. },
  40937. restore: _.debounce(function (ev) {
  40938. if (ev && ev.preventDefault) {
  40939. ev.preventDefault();
  40940. }
  40941. this.model.off('change:num_unread', null, this);
  40942. this.remove();
  40943. this.model.maximize();
  40944. }, 200, {
  40945. 'leading': true
  40946. })
  40947. });
  40948. _converse.MinimizedChats = Backbone.Overview.extend({
  40949. tagName: 'div',
  40950. id: "minimized-chats",
  40951. className: 'hidden',
  40952. events: {
  40953. "click #toggle-minimized-chats": "toggle"
  40954. },
  40955. initialize() {
  40956. this.render();
  40957. this.initToggle();
  40958. this.addMultipleChats(this.model.where({
  40959. 'minimized': true
  40960. }));
  40961. this.model.on("add", this.onChanged, this);
  40962. this.model.on("destroy", this.removeChat, this);
  40963. this.model.on("change:minimized", this.onChanged, this);
  40964. this.model.on('change:num_unread', this.updateUnreadMessagesCounter, this);
  40965. },
  40966. render() {
  40967. if (!this.el.parentElement) {
  40968. this.el.innerHTML = tpl_chats_panel();
  40969. _converse.chatboxviews.insertRowColumn(this.el);
  40970. }
  40971. if (this.keys().length === 0) {
  40972. this.el.classList.add('hidden');
  40973. } else if (this.keys().length > 0 && !u.isVisible(this.el)) {
  40974. this.el.classList.remove('hidden');
  40975. _converse.chatboxviews.trimChats();
  40976. }
  40977. return this.el;
  40978. },
  40979. tearDown() {
  40980. this.model.off("add", this.onChanged);
  40981. this.model.off("destroy", this.removeChat);
  40982. this.model.off("change:minimized", this.onChanged);
  40983. this.model.off('change:num_unread', this.updateUnreadMessagesCounter);
  40984. return this;
  40985. },
  40986. initToggle() {
  40987. const storage = _converse.config.get('storage'),
  40988. id = b64_sha1(`converse.minchatstoggle${_converse.bare_jid}`);
  40989. this.toggleview = new _converse.MinimizedChatsToggleView({
  40990. 'model': new _converse.MinimizedChatsToggle({
  40991. 'id': id
  40992. })
  40993. });
  40994. this.toggleview.model.browserStorage = new Backbone.BrowserStorage[storage](id);
  40995. this.toggleview.model.fetch();
  40996. },
  40997. toggle(ev) {
  40998. if (ev && ev.preventDefault) {
  40999. ev.preventDefault();
  41000. }
  41001. this.toggleview.model.save({
  41002. 'collapsed': !this.toggleview.model.get('collapsed')
  41003. });
  41004. u.slideToggleElement(this.el.querySelector('.minimized-chats-flyout'), 200);
  41005. },
  41006. onChanged(item) {
  41007. if (item.get('id') === 'controlbox') {
  41008. // The ControlBox has it's own minimize toggle
  41009. return;
  41010. }
  41011. if (item.get('minimized')) {
  41012. this.addChat(item);
  41013. } else if (this.get(item.get('id'))) {
  41014. this.removeChat(item);
  41015. }
  41016. },
  41017. addChatView(item) {
  41018. const existing = this.get(item.get('id'));
  41019. if (existing && existing.el.parentNode) {
  41020. return;
  41021. }
  41022. const view = new _converse.MinimizedChatBoxView({
  41023. model: item
  41024. });
  41025. this.el.querySelector('.minimized-chats-flyout').insertAdjacentElement('beforeEnd', view.render());
  41026. this.add(item.get('id'), view);
  41027. },
  41028. addMultipleChats(items) {
  41029. _.each(items, this.addChatView.bind(this));
  41030. this.toggleview.model.set({
  41031. 'num_minimized': this.keys().length
  41032. });
  41033. this.render();
  41034. },
  41035. addChat(item) {
  41036. this.addChatView(item);
  41037. this.toggleview.model.set({
  41038. 'num_minimized': this.keys().length
  41039. });
  41040. this.render();
  41041. },
  41042. removeChat(item) {
  41043. this.remove(item.get('id'));
  41044. this.toggleview.model.set({
  41045. 'num_minimized': this.keys().length
  41046. });
  41047. this.render();
  41048. },
  41049. updateUnreadMessagesCounter() {
  41050. const ls = this.model.pluck('num_unread');
  41051. let count = 0,
  41052. i;
  41053. for (i = 0; i < ls.length; i++) {
  41054. count += ls[i];
  41055. }
  41056. this.toggleview.model.save({
  41057. 'num_unread': count
  41058. });
  41059. this.render();
  41060. }
  41061. });
  41062. _converse.MinimizedChatsToggle = Backbone.Model.extend({
  41063. defaults: {
  41064. 'collapsed': false,
  41065. 'num_minimized': 0,
  41066. 'num_unread': 0
  41067. }
  41068. });
  41069. _converse.MinimizedChatsToggleView = Backbone.NativeView.extend({
  41070. el: '#toggle-minimized-chats',
  41071. initialize() {
  41072. this.model.on('change:num_minimized', this.render, this);
  41073. this.model.on('change:num_unread', this.render, this);
  41074. this.flyout = this.el.parentElement.querySelector('.minimized-chats-flyout');
  41075. },
  41076. render() {
  41077. this.el.innerHTML = tpl_toggle_chats(_.extend(this.model.toJSON(), {
  41078. 'Minimized': __('Minimized')
  41079. }));
  41080. if (this.model.get('collapsed')) {
  41081. u.hideElement(this.flyout);
  41082. } else {
  41083. u.showElement(this.flyout);
  41084. }
  41085. return this.el;
  41086. }
  41087. });
  41088. Promise.all([_converse.api.waitUntil('connectionInitialized'), _converse.api.waitUntil('chatBoxViewsInitialized')]).then(() => {
  41089. _converse.minimized_chats = new _converse.MinimizedChats({
  41090. model: _converse.chatboxes
  41091. });
  41092. _converse.emit('minimizedChatsInitialized');
  41093. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  41094. _converse.on('registeredGlobalEventHandlers', function () {
  41095. window.addEventListener("resize", _.debounce(function (ev) {
  41096. if (_converse.connection.connected) {
  41097. _converse.chatboxviews.trimChats();
  41098. }
  41099. }, 200));
  41100. });
  41101. _converse.on('controlBoxOpened', function (chatbox) {
  41102. // Wrapped in anon method because at scan time, chatboxviews
  41103. // attr not set yet.
  41104. if (_converse.connection.connected) {
  41105. _converse.chatboxviews.trimChats(chatbox);
  41106. }
  41107. });
  41108. }
  41109. });
  41110. });
  41111. /***/ }),
  41112. /***/ "./src/converse-modal.js":
  41113. /*!*******************************!*\
  41114. !*** ./src/converse-modal.js ***!
  41115. \*******************************/
  41116. /*! no static exports found */
  41117. /***/ (function(module, exports, __webpack_require__) {
  41118. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  41119. // http://conversejs.org
  41120. //
  41121. // Copyright (c) 2018, the Converse.js developers
  41122. // Licensed under the Mozilla Public License (MPLv2)
  41123. (function (root, factory) {
  41124. if (true) {
  41125. !(__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),
  41126. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41127. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41128. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41129. }
  41130. })(this, function (converse, tpl_alert_modal, bootstrap) {
  41131. "use strict";
  41132. const _converse$env = converse.env,
  41133. Strophe = _converse$env.Strophe,
  41134. Backbone = _converse$env.Backbone,
  41135. _ = _converse$env._;
  41136. converse.plugins.add('converse-modal', {
  41137. initialize() {
  41138. const _converse = this._converse;
  41139. _converse.BootstrapModal = Backbone.VDOMView.extend({
  41140. initialize() {
  41141. this.render().insertIntoDOM();
  41142. this.modal = new bootstrap.Modal(this.el, {
  41143. backdrop: 'static',
  41144. keyboard: true
  41145. });
  41146. this.el.addEventListener('hide.bs.modal', event => {
  41147. if (!_.isNil(this.trigger_el)) {
  41148. this.trigger_el.classList.remove('selected');
  41149. }
  41150. }, false);
  41151. },
  41152. insertIntoDOM() {
  41153. const container_el = _converse.chatboxviews.el.querySelector("#converse-modals");
  41154. container_el.insertAdjacentElement('beforeEnd', this.el);
  41155. },
  41156. show(ev) {
  41157. if (ev) {
  41158. ev.preventDefault();
  41159. this.trigger_el = ev.target;
  41160. this.trigger_el.classList.add('selected');
  41161. }
  41162. this.modal.show();
  41163. }
  41164. });
  41165. _converse.Alert = _converse.BootstrapModal.extend({
  41166. initialize() {
  41167. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  41168. this.model.on('change', this.render, this);
  41169. },
  41170. toHTML() {
  41171. return tpl_alert_modal(this.model.toJSON());
  41172. }
  41173. });
  41174. _converse.api.listen.on('afterTearDown', () => {
  41175. if (!_converse.chatboxviews) {
  41176. return;
  41177. }
  41178. const container = _converse.chatboxviews.el.querySelector("#converse-modals");
  41179. if (container) {
  41180. container.innerHTML = '';
  41181. }
  41182. });
  41183. /************************ BEGIN API ************************/
  41184. // We extend the default converse.js API to add methods specific to MUC chat rooms.
  41185. let alert;
  41186. _.extend(_converse.api, {
  41187. 'alert': {
  41188. 'show'(type, title, messages) {
  41189. if (_.isString(messages)) {
  41190. messages = [messages];
  41191. }
  41192. if (type === Strophe.LogLevel.ERROR) {
  41193. type = 'alert-danger';
  41194. } else if (type === Strophe.LogLevel.INFO) {
  41195. type = 'alert-info';
  41196. } else if (type === Strophe.LogLevel.WARN) {
  41197. type = 'alert-warning';
  41198. }
  41199. if (_.isUndefined(alert)) {
  41200. const model = new Backbone.Model({
  41201. 'title': title,
  41202. 'messages': messages,
  41203. 'type': type
  41204. });
  41205. alert = new _converse.Alert({
  41206. 'model': model
  41207. });
  41208. } else {
  41209. alert.model.set({
  41210. 'title': title,
  41211. 'messages': messages,
  41212. 'type': type
  41213. });
  41214. }
  41215. alert.show();
  41216. }
  41217. }
  41218. });
  41219. }
  41220. });
  41221. });
  41222. /***/ }),
  41223. /***/ "./src/converse-muc-views.js":
  41224. /*!***********************************!*\
  41225. !*** ./src/converse-muc-views.js ***!
  41226. \***********************************/
  41227. /*! no static exports found */
  41228. /***/ (function(module, exports, __webpack_require__) {
  41229. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  41230. // http://conversejs.org
  41231. //
  41232. // Copyright (c) 2013-2018, the Converse.js developers
  41233. // Licensed under the Mozilla Public License (MPLv2)
  41234. (function (root, factory) {
  41235. !(__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_destroyed.html */ "./src/templates/chatroom_destroyed.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),
  41236. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41237. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41238. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41239. })(this, function (converse, _FormData, muc_utils, xss, tpl_add_chatroom_modal, tpl_chatarea, tpl_chatroom, tpl_chatroom_details_modal, tpl_chatroom_destroyed, 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) {
  41240. "use strict";
  41241. const _converse$env = converse.env,
  41242. Backbone = _converse$env.Backbone,
  41243. Promise = _converse$env.Promise,
  41244. Strophe = _converse$env.Strophe,
  41245. b64_sha1 = _converse$env.b64_sha1,
  41246. moment = _converse$env.moment,
  41247. f = _converse$env.f,
  41248. sizzle = _converse$env.sizzle,
  41249. _ = _converse$env._,
  41250. $build = _converse$env.$build,
  41251. $iq = _converse$env.$iq,
  41252. $msg = _converse$env.$msg,
  41253. $pres = _converse$env.$pres;
  41254. const u = converse.env.utils;
  41255. const ROOM_FEATURES_MAP = {
  41256. 'passwordprotected': 'unsecured',
  41257. 'unsecured': 'passwordprotected',
  41258. 'hidden': 'publicroom',
  41259. 'publicroom': 'hidden',
  41260. 'membersonly': 'open',
  41261. 'open': 'membersonly',
  41262. 'persistent': 'temporary',
  41263. 'temporary': 'persistent',
  41264. 'nonanonymous': 'semianonymous',
  41265. 'semianonymous': 'nonanonymous',
  41266. 'moderated': 'unmoderated',
  41267. 'unmoderated': 'moderated'
  41268. };
  41269. converse.plugins.add('converse-muc-views', {
  41270. /* Dependencies are other plugins which might be
  41271. * overridden or relied upon, and therefore need to be loaded before
  41272. * this plugin. They are "optional" because they might not be
  41273. * available, in which case any overrides applicable to them will be
  41274. * ignored.
  41275. *
  41276. * NB: These plugins need to have already been loaded via require.js.
  41277. *
  41278. * It's possible to make these dependencies "non-optional".
  41279. * If the setting "strict_plugin_dependencies" is set to true,
  41280. * an error will be raised if the plugin is not found.
  41281. */
  41282. dependencies: ["converse-autocomplete", "converse-modal", "converse-controlbox", "converse-chatview"],
  41283. overrides: {
  41284. ControlBoxView: {
  41285. renderRoomsPanel() {
  41286. const _converse = this.__super__._converse;
  41287. this.roomspanel = new _converse.RoomsPanel({
  41288. 'model': new (_converse.RoomsPanelModel.extend({
  41289. 'id': b64_sha1(`converse.roomspanel${_converse.bare_jid}`),
  41290. // Required by sessionStorage
  41291. 'browserStorage': new Backbone.BrowserStorage[_converse.config.get('storage')](b64_sha1(`converse.roomspanel${_converse.bare_jid}`))
  41292. }))()
  41293. });
  41294. this.roomspanel.model.fetch();
  41295. this.el.querySelector('.controlbox-pane').insertAdjacentElement('beforeEnd', this.roomspanel.render().el);
  41296. if (!this.roomspanel.model.get('nick')) {
  41297. this.roomspanel.model.save({
  41298. nick: _converse.xmppstatus.vcard.get('nickname') || Strophe.getNodeFromJid(_converse.bare_jid)
  41299. });
  41300. }
  41301. _converse.emit('roomsPanelRendered');
  41302. },
  41303. renderControlBoxPane() {
  41304. const _converse = this.__super__._converse;
  41305. this.__super__.renderControlBoxPane.apply(this, arguments);
  41306. if (_converse.allow_muc) {
  41307. this.renderRoomsPanel();
  41308. }
  41309. }
  41310. }
  41311. },
  41312. initialize() {
  41313. const _converse = this._converse,
  41314. __ = _converse.__;
  41315. _converse.api.promises.add(['roomsPanelRendered']); // Configuration values for this plugin
  41316. // ====================================
  41317. // Refer to docs/source/configuration.rst for explanations of these
  41318. // configuration settings.
  41319. _converse.api.settings.update({
  41320. 'auto_list_rooms': false,
  41321. 'hide_muc_server': false,
  41322. // TODO: no longer implemented...
  41323. 'muc_disable_moderator_commands': false,
  41324. 'visible_toolbar_buttons': {
  41325. 'toggle_occupants': true
  41326. }
  41327. });
  41328. function ___(str) {
  41329. /* This is part of a hack to get gettext to scan strings to be
  41330. * translated. Strings we cannot send to the function above because
  41331. * they require variable interpolation and we don't yet have the
  41332. * variables at scan time.
  41333. *
  41334. * See actionInfoMessages further below.
  41335. */
  41336. return str;
  41337. }
  41338. /* http://xmpp.org/extensions/xep-0045.html
  41339. * ----------------------------------------
  41340. * 100 message Entering a groupchat Inform user that any occupant is allowed to see the user's full JID
  41341. * 101 message (out of band) Affiliation change Inform user that his or her affiliation changed while not in the groupchat
  41342. * 102 message Configuration change Inform occupants that groupchat now shows unavailable members
  41343. * 103 message Configuration change Inform occupants that groupchat now does not show unavailable members
  41344. * 104 message Configuration change Inform occupants that a non-privacy-related groupchat configuration change has occurred
  41345. * 110 presence Any groupchat presence Inform user that presence refers to one of its own groupchat occupants
  41346. * 170 message or initial presence Configuration change Inform occupants that groupchat logging is now enabled
  41347. * 171 message Configuration change Inform occupants that groupchat logging is now disabled
  41348. * 172 message Configuration change Inform occupants that the groupchat is now non-anonymous
  41349. * 173 message Configuration change Inform occupants that the groupchat is now semi-anonymous
  41350. * 174 message Configuration change Inform occupants that the groupchat is now fully-anonymous
  41351. * 201 presence Entering a groupchat Inform user that a new groupchat has been created
  41352. * 210 presence Entering a groupchat Inform user that the service has assigned or modified the occupant's roomnick
  41353. * 301 presence Removal from groupchat Inform user that he or she has been banned from the groupchat
  41354. * 303 presence Exiting a groupchat Inform all occupants of new groupchat nickname
  41355. * 307 presence Removal from groupchat Inform user that he or she has been kicked from the groupchat
  41356. * 321 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of an affiliation change
  41357. * 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
  41358. * 332 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of a system shutdown
  41359. */
  41360. _converse.muc = {
  41361. info_messages: {
  41362. 100: __('This groupchat is not anonymous'),
  41363. 102: __('This groupchat now shows unavailable members'),
  41364. 103: __('This groupchat does not show unavailable members'),
  41365. 104: __('The groupchat configuration has changed'),
  41366. 170: __('groupchat logging is now enabled'),
  41367. 171: __('groupchat logging is now disabled'),
  41368. 172: __('This groupchat is now no longer anonymous'),
  41369. 173: __('This groupchat is now semi-anonymous'),
  41370. 174: __('This groupchat is now fully-anonymous'),
  41371. 201: __('A new groupchat has been created')
  41372. },
  41373. disconnect_messages: {
  41374. 301: __('You have been banned from this groupchat'),
  41375. 307: __('You have been kicked from this groupchat'),
  41376. 321: __("You have been removed from this groupchat because of an affiliation change"),
  41377. 322: __("You have been removed from this groupchat because the groupchat has changed to members-only and you're not a member"),
  41378. 332: __("You have been removed from this groupchat because the service hosting it is being shut down")
  41379. },
  41380. action_info_messages: {
  41381. /* XXX: Note the triple underscore function and not double
  41382. * underscore.
  41383. *
  41384. * This is a hack. We can't pass the strings to __ because we
  41385. * don't yet know what the variable to interpolate is.
  41386. *
  41387. * Triple underscore will just return the string again, but we
  41388. * can then at least tell gettext to scan for it so that these
  41389. * strings are picked up by the translation machinery.
  41390. */
  41391. 301: ___("%1$s has been banned"),
  41392. 303: ___("%1$s's nickname has changed"),
  41393. 307: ___("%1$s has been kicked out"),
  41394. 321: ___("%1$s has been removed because of an affiliation change"),
  41395. 322: ___("%1$s has been removed for not being a member")
  41396. },
  41397. new_nickname_messages: {
  41398. 210: ___('Your nickname has been automatically set to %1$s'),
  41399. 303: ___('Your nickname has been changed to %1$s')
  41400. }
  41401. };
  41402. function insertRoomInfo(el, stanza) {
  41403. /* Insert groupchat info (based on returned #disco IQ stanza)
  41404. *
  41405. * Parameters:
  41406. * (HTMLElement) el: The HTML DOM element that should
  41407. * contain the info.
  41408. * (XMLElement) stanza: The IQ stanza containing the groupchat
  41409. * info.
  41410. */
  41411. // All MUC features found here: http://xmpp.org/registrar/disco-features.html
  41412. el.querySelector('span.spinner').remove();
  41413. el.querySelector('a.room-info').classList.add('selected');
  41414. el.insertAdjacentHTML('beforeEnd', tpl_room_description({
  41415. 'jid': stanza.getAttribute('from'),
  41416. 'desc': _.get(_.head(sizzle('field[var="muc#roominfo_description"] value', stanza)), 'textContent'),
  41417. 'occ': _.get(_.head(sizzle('field[var="muc#roominfo_occupants"] value', stanza)), 'textContent'),
  41418. 'hidden': sizzle('feature[var="muc_hidden"]', stanza).length,
  41419. 'membersonly': sizzle('feature[var="muc_membersonly"]', stanza).length,
  41420. 'moderated': sizzle('feature[var="muc_moderated"]', stanza).length,
  41421. 'nonanonymous': sizzle('feature[var="muc_nonanonymous"]', stanza).length,
  41422. 'open': sizzle('feature[var="muc_open"]', stanza).length,
  41423. 'passwordprotected': sizzle('feature[var="muc_passwordprotected"]', stanza).length,
  41424. 'persistent': sizzle('feature[var="muc_persistent"]', stanza).length,
  41425. 'publicroom': sizzle('feature[var="muc_publicroom"]', stanza).length,
  41426. 'semianonymous': sizzle('feature[var="muc_semianonymous"]', stanza).length,
  41427. 'temporary': sizzle('feature[var="muc_temporary"]', stanza).length,
  41428. 'unmoderated': sizzle('feature[var="muc_unmoderated"]', stanza).length,
  41429. 'label_desc': __('Description:'),
  41430. 'label_jid': __('Groupchat Address (JID):'),
  41431. 'label_occ': __('Participants:'),
  41432. 'label_features': __('Features:'),
  41433. 'label_requires_auth': __('Requires authentication'),
  41434. 'label_hidden': __('Hidden'),
  41435. 'label_requires_invite': __('Requires an invitation'),
  41436. 'label_moderated': __('Moderated'),
  41437. 'label_non_anon': __('Non-anonymous'),
  41438. 'label_open_room': __('Open'),
  41439. 'label_permanent_room': __('Permanent'),
  41440. 'label_public': __('Public'),
  41441. 'label_semi_anon': __('Semi-anonymous'),
  41442. 'label_temp_room': __('Temporary'),
  41443. 'label_unmoderated': __('Unmoderated')
  41444. }));
  41445. }
  41446. function toggleRoomInfo(ev) {
  41447. /* Show/hide extra information about a groupchat in a listing. */
  41448. const parent_el = u.ancestor(ev.target, '.room-item'),
  41449. div_el = parent_el.querySelector('div.room-info');
  41450. if (div_el) {
  41451. u.slideIn(div_el).then(u.removeElement);
  41452. parent_el.querySelector('a.room-info').classList.remove('selected');
  41453. } else {
  41454. parent_el.insertAdjacentHTML('beforeend', tpl_spinner());
  41455. _converse.api.disco.info(ev.target.getAttribute('data-room-jid'), null).then(stanza => insertRoomInfo(parent_el, stanza)).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  41456. }
  41457. }
  41458. _converse.ListChatRoomsModal = _converse.BootstrapModal.extend({
  41459. events: {
  41460. 'submit form': 'showRooms',
  41461. 'click a.room-info': 'toggleRoomInfo',
  41462. 'change input[name=nick]': 'setNick',
  41463. 'change input[name=server]': 'setDomain',
  41464. 'click .open-room': 'openRoom'
  41465. },
  41466. initialize() {
  41467. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  41468. this.model.on('change:muc_domain', this.onDomainChange, this);
  41469. },
  41470. toHTML() {
  41471. return tpl_list_chatrooms_modal(_.extend(this.model.toJSON(), {
  41472. 'heading_list_chatrooms': __('Query for Groupchats'),
  41473. 'label_server_address': __('Server address'),
  41474. 'label_query': __('Show groupchats'),
  41475. 'server_placeholder': __('conference.example.org')
  41476. }));
  41477. },
  41478. afterRender() {
  41479. this.el.addEventListener('shown.bs.modal', () => {
  41480. this.el.querySelector('input[name="server"]').focus();
  41481. }, false);
  41482. },
  41483. openRoom(ev) {
  41484. ev.preventDefault();
  41485. const jid = ev.target.getAttribute('data-room-jid');
  41486. const name = ev.target.getAttribute('data-room-name');
  41487. this.modal.hide();
  41488. _converse.api.rooms.open(jid, {
  41489. 'name': name
  41490. });
  41491. },
  41492. toggleRoomInfo(ev) {
  41493. ev.preventDefault();
  41494. toggleRoomInfo(ev);
  41495. },
  41496. onDomainChange(model) {
  41497. if (_converse.auto_list_rooms) {
  41498. this.updateRoomsList();
  41499. }
  41500. },
  41501. roomStanzaItemToHTMLElement(groupchat) {
  41502. const name = Strophe.unescapeNode(groupchat.getAttribute('name') || groupchat.getAttribute('jid'));
  41503. const div = document.createElement('div');
  41504. div.innerHTML = tpl_room_item({
  41505. 'name': Strophe.xmlunescape(name),
  41506. 'jid': groupchat.getAttribute('jid'),
  41507. 'open_title': __('Click to open this groupchat'),
  41508. 'info_title': __('Show more information on this groupchat')
  41509. });
  41510. return div.firstElementChild;
  41511. },
  41512. removeSpinner() {
  41513. _.each(this.el.querySelectorAll('span.spinner'), el => el.parentNode.removeChild(el));
  41514. },
  41515. informNoRoomsFound() {
  41516. const chatrooms_el = this.el.querySelector('.available-chatrooms');
  41517. chatrooms_el.innerHTML = tpl_rooms_results({
  41518. 'feedback_text': __('No groupchats found')
  41519. });
  41520. const input_el = this.el.querySelector('input[name="server"]');
  41521. input_el.classList.remove('hidden');
  41522. this.removeSpinner();
  41523. },
  41524. onRoomsFound(iq) {
  41525. /* Handle the IQ stanza returned from the server, containing
  41526. * all its public groupchats.
  41527. */
  41528. const available_chatrooms = this.el.querySelector('.available-chatrooms');
  41529. this.rooms = iq.querySelectorAll('query item');
  41530. if (this.rooms.length) {
  41531. // For translators: %1$s is a variable and will be
  41532. // replaced with the XMPP server name
  41533. available_chatrooms.innerHTML = tpl_rooms_results({
  41534. 'feedback_text': __('Groupchats found:')
  41535. });
  41536. const fragment = document.createDocumentFragment();
  41537. const children = _.reject(_.map(this.rooms, this.roomStanzaItemToHTMLElement), _.isNil);
  41538. _.each(children, child => fragment.appendChild(child));
  41539. available_chatrooms.appendChild(fragment);
  41540. this.removeSpinner();
  41541. } else {
  41542. this.informNoRoomsFound();
  41543. }
  41544. return true;
  41545. },
  41546. updateRoomsList() {
  41547. /* Send an IQ stanza to the server asking for all groupchats
  41548. */
  41549. _converse.connection.sendIQ($iq({
  41550. 'to': this.model.get('muc_domain'),
  41551. 'from': _converse.connection.jid,
  41552. 'type': "get"
  41553. }).c("query", {
  41554. xmlns: Strophe.NS.DISCO_ITEMS
  41555. }), this.onRoomsFound.bind(this), this.informNoRoomsFound.bind(this), 5000);
  41556. },
  41557. showRooms(ev) {
  41558. ev.preventDefault();
  41559. const data = new FormData(ev.target);
  41560. this.model.save('muc_domain', Strophe.getDomainFromJid(data.get('server')));
  41561. this.updateRoomsList();
  41562. },
  41563. setDomain(ev) {
  41564. this.model.save('muc_domain', Strophe.getDomainFromJid(ev.target.value));
  41565. },
  41566. setNick(ev) {
  41567. this.model.save({
  41568. nick: ev.target.value
  41569. });
  41570. }
  41571. });
  41572. _converse.AddChatRoomModal = _converse.BootstrapModal.extend({
  41573. events: {
  41574. 'submit form.add-chatroom': 'openChatRoom'
  41575. },
  41576. toHTML() {
  41577. return tpl_add_chatroom_modal(_.extend(this.model.toJSON(), {
  41578. 'heading_new_chatroom': __('Enter a new Groupchat'),
  41579. 'label_room_address': __('Groupchat address'),
  41580. 'label_nickname': __('Optional nickname'),
  41581. 'chatroom_placeholder': __('name@conference.example.org'),
  41582. 'label_join': __('Join')
  41583. }));
  41584. },
  41585. afterRender() {
  41586. this.el.addEventListener('shown.bs.modal', () => {
  41587. this.el.querySelector('input[name="chatroom"]').focus();
  41588. }, false);
  41589. },
  41590. parseRoomDataFromEvent(form) {
  41591. const data = new FormData(form);
  41592. const jid = data.get('chatroom');
  41593. this.model.save('muc_domain', Strophe.getDomainFromJid(jid));
  41594. return {
  41595. 'jid': jid,
  41596. 'nick': data.get('nickname')
  41597. };
  41598. },
  41599. openChatRoom(ev) {
  41600. ev.preventDefault();
  41601. const data = this.parseRoomDataFromEvent(ev.target);
  41602. if (data.nick === "") {
  41603. // Make sure defaults apply if no nick is provided.
  41604. data.nick = undefined;
  41605. }
  41606. _converse.api.rooms.open(data.jid, data);
  41607. this.modal.hide();
  41608. ev.target.reset();
  41609. }
  41610. });
  41611. _converse.RoomDetailsModal = _converse.BootstrapModal.extend({
  41612. initialize() {
  41613. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  41614. this.model.on('change', this.render, this);
  41615. this.model.occupants.on('add', this.render, this);
  41616. this.model.occupants.on('change', this.render, this);
  41617. },
  41618. toHTML() {
  41619. return tpl_chatroom_details_modal(_.extend(this.model.toJSON(), {
  41620. '_': _,
  41621. '__': __,
  41622. 'topic': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
  41623. 'whiteList': {}
  41624. })),
  41625. 'display_name': __('Groupchat info for %1$s', this.model.getDisplayName()),
  41626. 'num_occupants': this.model.occupants.length
  41627. }));
  41628. }
  41629. });
  41630. _converse.ChatRoomView = _converse.ChatBoxView.extend({
  41631. /* Backbone.NativeView which renders a groupchat, based upon the view
  41632. * for normal one-on-one chat boxes.
  41633. */
  41634. length: 300,
  41635. tagName: 'div',
  41636. className: 'chatbox chatroom hidden',
  41637. is_chatroom: true,
  41638. events: {
  41639. 'change input.fileupload': 'onFileSelection',
  41640. 'click .chat-msg__action-edit': 'onMessageEditButtonClicked',
  41641. 'click .chatbox-navback': 'showControlBox',
  41642. 'click .close-chatbox-button': 'close',
  41643. 'click .configure-chatroom-button': 'getAndRenderConfigurationForm',
  41644. 'click .hide-occupants': 'hideOccupants',
  41645. 'click .new-msgs-indicator': 'viewUnreadMessages',
  41646. 'click .occupant-nick': 'onOccupantClicked',
  41647. 'click .send-button': 'onFormSubmitted',
  41648. 'click .show-room-details-modal': 'showRoomDetailsModal',
  41649. 'click .toggle-call': 'toggleCall',
  41650. 'click .toggle-occupants': 'toggleOccupants',
  41651. 'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
  41652. 'click .toggle-smiley': 'toggleEmojiMenu',
  41653. 'click .upload-file': 'toggleFileUpload',
  41654. 'keydown .chat-textarea': 'keyPressed',
  41655. 'keyup .chat-textarea': 'keyUp',
  41656. 'input .chat-textarea': 'inputChanged'
  41657. },
  41658. initialize() {
  41659. this.initDebounced();
  41660. this.model.messages.on('add', this.onMessageAdded, this);
  41661. this.model.messages.on('rendered', this.scrollDown, this);
  41662. this.model.on('change:affiliation', this.renderHeading, this);
  41663. this.model.on('change:connection_status', this.afterConnected, this);
  41664. this.model.on('change:jid', this.renderHeading, this);
  41665. this.model.on('change:name', this.renderHeading, this);
  41666. this.model.on('change:subject', this.renderHeading, this);
  41667. this.model.on('change:subject', this.setChatRoomSubject, this);
  41668. this.model.on('configurationNeeded', this.getAndRenderConfigurationForm, this);
  41669. this.model.on('destroy', this.hide, this);
  41670. this.model.on('show', this.show, this);
  41671. this.model.occupants.on('add', this.onOccupantAdded, this);
  41672. this.model.occupants.on('remove', this.onOccupantRemoved, this);
  41673. this.model.occupants.on('change:show', this.showJoinOrLeaveNotification, this);
  41674. this.model.occupants.on('change:role', this.informOfOccupantsRoleChange, this);
  41675. this.model.occupants.on('change:affiliation', this.informOfOccupantsAffiliationChange, this);
  41676. this.createEmojiPicker();
  41677. this.createOccupantsView();
  41678. this.render().insertIntoDOM();
  41679. this.registerHandlers();
  41680. this.enterRoom();
  41681. },
  41682. enterRoom(ev) {
  41683. if (ev) {
  41684. ev.preventDefault();
  41685. }
  41686. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  41687. const handler = () => {
  41688. if (!u.isPersistableModel(this.model)) {
  41689. // Happens during tests, nothing to do if this
  41690. // is a hanging chatbox (i.e. not in the collection anymore).
  41691. return;
  41692. }
  41693. this.populateAndJoin();
  41694. _converse.emit('chatRoomOpened', this);
  41695. };
  41696. this.model.getRoomFeatures().then(handler, handler);
  41697. } else {
  41698. this.fetchMessages();
  41699. _converse.emit('chatRoomOpened', this);
  41700. }
  41701. },
  41702. render() {
  41703. this.el.setAttribute('id', this.model.get('box_id'));
  41704. this.el.innerHTML = tpl_chatroom();
  41705. this.renderHeading();
  41706. this.renderChatArea();
  41707. this.renderMessageForm();
  41708. this.initAutoComplete();
  41709. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  41710. this.showSpinner();
  41711. }
  41712. return this;
  41713. },
  41714. renderHeading() {
  41715. /* Render the heading UI of the groupchat. */
  41716. this.el.querySelector('.chat-head-chatroom').innerHTML = this.generateHeadingHTML();
  41717. },
  41718. renderChatArea() {
  41719. /* Render the UI container in which groupchat messages will appear.
  41720. */
  41721. if (_.isNull(this.el.querySelector('.chat-area'))) {
  41722. const container_el = this.el.querySelector('.chatroom-body');
  41723. container_el.insertAdjacentHTML('beforeend', tpl_chatarea({
  41724. 'show_send_button': _converse.show_send_button
  41725. }));
  41726. container_el.insertAdjacentElement('beforeend', this.occupantsview.el);
  41727. this.content = this.el.querySelector('.chat-content');
  41728. this.toggleOccupants(null, true);
  41729. }
  41730. return this;
  41731. },
  41732. initAutoComplete() {
  41733. this.auto_complete = new _converse.AutoComplete(this.el, {
  41734. 'auto_first': true,
  41735. 'auto_evaluate': false,
  41736. 'min_chars': 1,
  41737. 'match_current_word': true,
  41738. 'match_on_tab': true,
  41739. 'list': () => this.model.occupants.map(o => ({
  41740. 'label': o.getDisplayName(),
  41741. 'value': `@${o.getDisplayName()}`
  41742. })),
  41743. 'filter': _converse.FILTER_STARTSWITH,
  41744. 'trigger_on_at': true
  41745. });
  41746. this.auto_complete.on('suggestion-box-selectcomplete', () => this.auto_completing = false);
  41747. },
  41748. keyPressed(ev) {
  41749. if (this.auto_complete.keyPressed(ev)) {
  41750. return;
  41751. }
  41752. return _converse.ChatBoxView.prototype.keyPressed.apply(this, arguments);
  41753. },
  41754. keyUp(ev) {
  41755. this.auto_complete.evaluate(ev);
  41756. },
  41757. showRoomDetailsModal(ev) {
  41758. ev.preventDefault();
  41759. if (_.isUndefined(this.model.room_details_modal)) {
  41760. this.model.room_details_modal = new _converse.RoomDetailsModal({
  41761. 'model': this.model
  41762. });
  41763. }
  41764. this.model.room_details_modal.show(ev);
  41765. },
  41766. showChatStateNotification(message) {
  41767. if (message.get('sender') === 'me') {
  41768. return;
  41769. }
  41770. return _converse.ChatBoxView.prototype.showChatStateNotification.apply(this, arguments);
  41771. },
  41772. createOccupantsView() {
  41773. /* Create the ChatRoomOccupantsView Backbone.NativeView
  41774. */
  41775. this.model.occupants.chatroomview = this;
  41776. this.occupantsview = new _converse.ChatRoomOccupantsView({
  41777. 'model': this.model.occupants
  41778. });
  41779. return this;
  41780. },
  41781. informOfOccupantsAffiliationChange(occupant, changed) {
  41782. const previous_affiliation = occupant._previousAttributes.affiliation,
  41783. current_affiliation = occupant.get('affiliation');
  41784. if (previous_affiliation === 'admin') {
  41785. this.showChatEvent(__("%1$s is no longer an admin of this groupchat", occupant.get('nick')));
  41786. } else if (previous_affiliation === 'owner') {
  41787. this.showChatEvent(__("%1$s is no longer an owner of this groupchat", occupant.get('nick')));
  41788. } else if (previous_affiliation === 'outcast') {
  41789. this.showChatEvent(__("%1$s is no longer banned from this groupchat", occupant.get('nick')));
  41790. }
  41791. if (current_affiliation === 'none' && previous_affiliation === 'member') {
  41792. this.showChatEvent(__("%1$s is no longer a permanent member of this groupchat", occupant.get('nick')));
  41793. }
  41794. if (current_affiliation === 'member') {
  41795. this.showChatEvent(__("%1$s is now a permanent member of this groupchat", occupant.get('nick')));
  41796. } else if (current_affiliation === 'outcast') {
  41797. this.showChatEvent(__("%1$s has been banned from this groupchat", occupant.get('nick')));
  41798. } else if (current_affiliation === 'admin' || current_affiliation == 'owner') {
  41799. this.showChatEvent(__(`%1$s is now an ${current_affiliation} of this groupchat`, occupant.get('nick')));
  41800. }
  41801. },
  41802. informOfOccupantsRoleChange(occupant, changed) {
  41803. const previous_role = occupant._previousAttributes.role;
  41804. if (previous_role === 'moderator') {
  41805. this.showChatEvent(__("%1$s is no longer a moderator", occupant.get('nick')));
  41806. }
  41807. if (previous_role === 'visitor') {
  41808. this.showChatEvent(__("%1$s has been given a voice again", occupant.get('nick')));
  41809. }
  41810. if (occupant.get('role') === 'visitor') {
  41811. this.showChatEvent(__("%1$s has been muted", occupant.get('nick')));
  41812. }
  41813. if (occupant.get('role') === 'moderator') {
  41814. this.showChatEvent(__("%1$s is now a moderator", occupant.get('nick')));
  41815. }
  41816. },
  41817. generateHeadingHTML() {
  41818. /* Returns the heading HTML to be rendered.
  41819. */
  41820. return tpl_chatroom_head(_.extend(this.model.toJSON(), {
  41821. 'Strophe': Strophe,
  41822. 'info_close': __('Close and leave this groupchat'),
  41823. 'info_configure': __('Configure this groupchat'),
  41824. 'info_details': __('Show more details about this groupchat'),
  41825. 'description': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
  41826. 'whiteList': {}
  41827. }))
  41828. }));
  41829. },
  41830. afterShown() {
  41831. /* Override from converse-chatview, specifically to avoid
  41832. * the 'active' chat state from being sent out prematurely.
  41833. *
  41834. * This is instead done in `afterConnected` below.
  41835. */
  41836. if (u.isPersistableModel(this.model)) {
  41837. this.model.clearUnreadMsgCounter();
  41838. this.model.save();
  41839. }
  41840. this.occupantsview.setOccupantsHeight();
  41841. this.scrollDown();
  41842. this.renderEmojiPicker();
  41843. },
  41844. show() {
  41845. if (u.isVisible(this.el)) {
  41846. this.focus();
  41847. return;
  41848. } // Override from converse-chatview in order to not use
  41849. // "fadeIn", which causes flashing.
  41850. u.showElement(this.el);
  41851. this.afterShown();
  41852. },
  41853. afterConnected() {
  41854. if (this.model.get('connection_status') === converse.ROOMSTATUS.ENTERED) {
  41855. this.hideSpinner();
  41856. this.setChatState(_converse.ACTIVE);
  41857. this.scrollDown();
  41858. this.focus();
  41859. }
  41860. },
  41861. getToolbarOptions() {
  41862. return _.extend(_converse.ChatBoxView.prototype.getToolbarOptions.apply(this, arguments), {
  41863. 'label_hide_occupants': __('Hide the list of participants'),
  41864. 'show_occupants_toggle': this.is_chatroom && _converse.visible_toolbar_buttons.toggle_occupants
  41865. });
  41866. },
  41867. close(ev) {
  41868. /* Close this chat box, which implies leaving the groupchat as
  41869. * well.
  41870. */
  41871. this.hide();
  41872. if (Backbone.history.getFragment() === "converse/room?jid=" + this.model.get('jid')) {
  41873. _converse.router.navigate('');
  41874. }
  41875. this.model.leave();
  41876. _converse.ChatBoxView.prototype.close.apply(this, arguments);
  41877. },
  41878. setOccupantsVisibility() {
  41879. const icon_el = this.el.querySelector('.toggle-occupants');
  41880. if (this.model.get('hidden_occupants')) {
  41881. u.removeClass('fa-angle-double-right', icon_el);
  41882. u.addClass('fa-angle-double-left', icon_el);
  41883. u.addClass('full', this.el.querySelector('.chat-area'));
  41884. u.hideElement(this.el.querySelector('.occupants'));
  41885. } else {
  41886. u.addClass('fa-angle-double-right', icon_el);
  41887. u.removeClass('fa-angle-double-left', icon_el);
  41888. u.removeClass('full', this.el.querySelector('.chat-area'));
  41889. u.removeClass('hidden', this.el.querySelector('.occupants'));
  41890. }
  41891. this.occupantsview.setOccupantsHeight();
  41892. },
  41893. hideOccupants(ev, preserve_state) {
  41894. /* Show or hide the right sidebar containing the chat
  41895. * occupants (and the invite widget).
  41896. */
  41897. if (ev) {
  41898. ev.preventDefault();
  41899. ev.stopPropagation();
  41900. }
  41901. this.model.save({
  41902. 'hidden_occupants': true
  41903. });
  41904. this.setOccupantsVisibility();
  41905. this.scrollDown();
  41906. },
  41907. toggleOccupants(ev, preserve_state) {
  41908. /* Show or hide the right sidebar containing the chat
  41909. * occupants (and the invite widget).
  41910. */
  41911. if (ev) {
  41912. ev.preventDefault();
  41913. ev.stopPropagation();
  41914. }
  41915. if (!preserve_state) {
  41916. this.model.set({
  41917. 'hidden_occupants': !this.model.get('hidden_occupants')
  41918. });
  41919. }
  41920. this.setOccupantsVisibility();
  41921. this.scrollDown();
  41922. },
  41923. onOccupantClicked(ev) {
  41924. /* When an occupant is clicked, insert their nickname into
  41925. * the chat textarea input.
  41926. */
  41927. this.insertIntoTextArea(ev.target.textContent);
  41928. },
  41929. handleChatStateNotification(message) {
  41930. /* Override the method on the ChatBoxView base class to
  41931. * ignore <gone/> notifications in groupchats.
  41932. *
  41933. * As laid out in the business rules in XEP-0085
  41934. * http://xmpp.org/extensions/xep-0085.html#bizrules-groupchat
  41935. */
  41936. if (message.get('fullname') === this.model.get('nick')) {
  41937. // Don't know about other servers, but OpenFire sends
  41938. // back to you your own chat state notifications.
  41939. // We ignore them here...
  41940. return;
  41941. }
  41942. if (message.get('chat_state') !== _converse.GONE) {
  41943. _converse.ChatBoxView.prototype.handleChatStateNotification.apply(this, arguments);
  41944. }
  41945. },
  41946. modifyRole(groupchat, nick, role, reason, onSuccess, onError) {
  41947. const item = $build("item", {
  41948. nick,
  41949. role
  41950. });
  41951. const iq = $iq({
  41952. to: groupchat,
  41953. type: "set"
  41954. }).c("query", {
  41955. xmlns: Strophe.NS.MUC_ADMIN
  41956. }).cnode(item.node);
  41957. if (reason !== null) {
  41958. iq.c("reason", reason);
  41959. }
  41960. return _converse.connection.sendIQ(iq, onSuccess, onError);
  41961. },
  41962. verifyRoles(roles) {
  41963. const me = this.model.occupants.findWhere({
  41964. 'jid': _converse.bare_jid
  41965. });
  41966. if (!_.includes(roles, me.get('role'))) {
  41967. this.showErrorMessage(__(`Forbidden: you do not have the necessary role in order to do that.`));
  41968. return false;
  41969. }
  41970. return true;
  41971. },
  41972. verifyAffiliations(affiliations) {
  41973. const me = this.model.occupants.findWhere({
  41974. 'jid': _converse.bare_jid
  41975. });
  41976. if (!_.includes(affiliations, me.get('affiliation'))) {
  41977. this.showErrorMessage(__(`Forbidden: you do not have the necessary affiliation in order to do that.`));
  41978. return false;
  41979. }
  41980. return true;
  41981. },
  41982. validateRoleChangeCommand(command, args) {
  41983. /* Check that a command to change a groupchat user's role or
  41984. * affiliation has anough arguments.
  41985. */
  41986. if (args.length < 1 || args.length > 2) {
  41987. this.showErrorMessage(__('Error: the "%1$s" command takes two arguments, the user\'s nickname and optionally a reason.', command));
  41988. return false;
  41989. }
  41990. if (!this.model.occupants.findWhere({
  41991. 'nick': args[0]
  41992. }) && !this.model.occupants.findWhere({
  41993. 'jid': args[0]
  41994. })) {
  41995. this.showErrorMessage(__('Error: couldn\'t find a groupchat participant "%1$s"', args[0]));
  41996. return false;
  41997. }
  41998. return true;
  41999. },
  42000. onCommandError(err) {
  42001. _converse.log(err, Strophe.LogLevel.FATAL);
  42002. this.showErrorMessage(__("Sorry, an error happened while running the command. Check your browser's developer console for details."));
  42003. },
  42004. parseMessageForCommands(text) {
  42005. if (_converse.ChatBoxView.prototype.parseMessageForCommands.apply(this, arguments)) {
  42006. return true;
  42007. }
  42008. if (_converse.muc_disable_moderator_commands) {
  42009. return false;
  42010. }
  42011. const match = text.replace(/^\s*/, "").match(/^\/(.*?)(?: (.*))?$/) || [false, '', ''],
  42012. args = match[2] && match[2].splitOnce(' ').filter(s => s) || [],
  42013. command = match[1].toLowerCase();
  42014. switch (command) {
  42015. case 'admin':
  42016. if (!this.verifyAffiliations(['owner']) || !this.validateRoleChangeCommand(command, args)) {
  42017. break;
  42018. }
  42019. this.model.setAffiliation('admin', [{
  42020. 'jid': args[0],
  42021. 'reason': args[1]
  42022. }]).then(() => this.model.occupants.fetchMembers(), err => this.onCommandError(err));
  42023. break;
  42024. case 'ban':
  42025. if (!this.verifyAffiliations(['owner', 'admin']) || !this.validateRoleChangeCommand(command, args)) {
  42026. break;
  42027. }
  42028. this.model.setAffiliation('outcast', [{
  42029. 'jid': args[0],
  42030. 'reason': args[1]
  42031. }]).then(() => this.model.occupants.fetchMembers(), err => this.onCommandError(err));
  42032. break;
  42033. case 'deop':
  42034. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  42035. break;
  42036. }
  42037. this.modifyRole(this.model.get('jid'), args[0], 'participant', args[1], undefined, this.onCommandError.bind(this));
  42038. break;
  42039. case 'help':
  42040. this.showHelpMessages([`<strong>/admin</strong>: ${__("Change user's affiliation to admin")}`, `<strong>/ban</strong>: ${__('Ban user from groupchat')}`, `<strong>/clear</strong>: ${__('Remove messages')}`, `<strong>/deop</strong>: ${__('Change user role to participant')}`, `<strong>/help</strong>: ${__('Show this menu')}`, `<strong>/kick</strong>: ${__('Kick user from groupchat')}`, `<strong>/me</strong>: ${__('Write in 3rd person')}`, `<strong>/member</strong>: ${__('Grant membership to a user')}`, `<strong>/mute</strong>: ${__("Remove user's ability to post messages")}`, `<strong>/nick</strong>: ${__('Change your nickname')}`, `<strong>/op</strong>: ${__('Grant moderator role to user')}`, `<strong>/owner</strong>: ${__('Grant ownership of this groupchat')}`, `<strong>/register</strong>: ${__("Register a nickname for this room")}`, `<strong>/revoke</strong>: ${__("Revoke user's membership")}`, `<strong>/subject</strong>: ${__('Set groupchat subject')}`, `<strong>/topic</strong>: ${__('Set groupchat subject (alias for /subject)')}`, `<strong>/voice</strong>: ${__('Allow muted user to post messages')}`]);
  42041. break;
  42042. case 'kick':
  42043. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  42044. break;
  42045. }
  42046. this.modifyRole(this.model.get('jid'), args[0], 'none', args[1], undefined, this.onCommandError.bind(this));
  42047. break;
  42048. case 'mute':
  42049. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  42050. break;
  42051. }
  42052. this.modifyRole(this.model.get('jid'), args[0], 'visitor', args[1], undefined, this.onCommandError.bind(this));
  42053. break;
  42054. case 'member':
  42055. {
  42056. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  42057. break;
  42058. }
  42059. const occupant = this.model.occupants.findWhere({
  42060. 'nick': args[0]
  42061. }) || this.model.occupants.findWhere({
  42062. 'jid': args[0]
  42063. }),
  42064. attrs = {
  42065. 'jid': occupant.get('jid'),
  42066. 'reason': args[1]
  42067. };
  42068. if (_converse.auto_register_muc_nickname) {
  42069. attrs['nick'] = occupant.get('nick');
  42070. }
  42071. this.model.setAffiliation('member', [attrs]).then(() => this.model.occupants.fetchMembers()).catch(err => this.onCommandError(err));
  42072. break;
  42073. }
  42074. case 'nick':
  42075. if (!this.verifyRoles(['visitor', 'participant', 'moderator'])) {
  42076. break;
  42077. }
  42078. _converse.connection.send($pres({
  42079. from: _converse.connection.jid,
  42080. to: this.model.getRoomJIDAndNick(match[2]),
  42081. id: _converse.connection.getUniqueId()
  42082. }).tree());
  42083. break;
  42084. case 'owner':
  42085. if (!this.verifyAffiliations(['owner']) || !this.validateRoleChangeCommand(command, args)) {
  42086. break;
  42087. }
  42088. this.model.setAffiliation('owner', [{
  42089. 'jid': args[0],
  42090. 'reason': args[1]
  42091. }]).then(() => this.model.occupants.fetchMembers(), err => this.onCommandError(err));
  42092. break;
  42093. case 'op':
  42094. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  42095. break;
  42096. }
  42097. this.modifyRole(this.model.get('jid'), args[0], 'moderator', args[1], undefined, this.onCommandError.bind(this));
  42098. break;
  42099. case 'register':
  42100. if (args.length > 1) {
  42101. this.showErrorMessage(__(`Error: invalid number of arguments`));
  42102. } else {
  42103. this.model.registerNickname().then(err_msg => {
  42104. if (err_msg) this.showErrorMessage(err_msg);
  42105. });
  42106. }
  42107. break;
  42108. case 'revoke':
  42109. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  42110. break;
  42111. }
  42112. this.model.setAffiliation('none', [{
  42113. 'jid': args[0],
  42114. 'reason': args[1]
  42115. }]).then(() => this.model.occupants.fetchMembers(), err => this.onCommandError(err));
  42116. break;
  42117. case 'topic':
  42118. case 'subject':
  42119. // TODO: should be done via API call to _converse.api.rooms
  42120. _converse.connection.send($msg({
  42121. to: this.model.get('jid'),
  42122. from: _converse.connection.jid,
  42123. type: "groupchat"
  42124. }).c("subject", {
  42125. xmlns: "jabber:client"
  42126. }).t(match[2] || "").tree());
  42127. break;
  42128. case 'voice':
  42129. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  42130. break;
  42131. }
  42132. this.modifyRole(this.model.get('jid'), args[0], 'participant', args[1], undefined, this.onCommandError.bind(this));
  42133. break;
  42134. default:
  42135. return false;
  42136. }
  42137. return true;
  42138. },
  42139. registerHandlers() {
  42140. /* Register presence and message handlers for this chat
  42141. * groupchat
  42142. */
  42143. // XXX: Ideally this can be refactored out so that we don't
  42144. // need to do stanza processing inside the views in this
  42145. // module. See the comment in "onPresence" for more info.
  42146. this.model.addHandler('presence', 'ChatRoomView.onPresence', this.onPresence.bind(this)); // XXX instead of having a method showStatusMessages, we could instead
  42147. // create message models in converse-muc.js and then give them views in this module.
  42148. this.model.addHandler('message', 'ChatRoomView.showStatusMessages', this.showStatusMessages.bind(this));
  42149. },
  42150. onPresence(pres) {
  42151. /* Handles all MUC presence stanzas.
  42152. *
  42153. * Parameters:
  42154. * (XMLElement) pres: The stanza
  42155. */
  42156. // XXX: Current thinking is that excessive stanza
  42157. // processing inside a view is a "code smell".
  42158. // Instead stanza processing should happen inside the
  42159. // models/collections.
  42160. if (pres.getAttribute('type') === 'error') {
  42161. this.showErrorMessageFromPresence(pres);
  42162. } else {
  42163. // Instead of doing it this way, we could perhaps rather
  42164. // create StatusMessage objects inside the messages
  42165. // Collection and then simply render those. Then stanza
  42166. // processing is done on the model and rendering in the
  42167. // view(s).
  42168. this.showStatusMessages(pres);
  42169. }
  42170. },
  42171. populateAndJoin() {
  42172. this.model.occupants.fetchMembers();
  42173. this.join();
  42174. this.fetchMessages();
  42175. },
  42176. join(nick, password) {
  42177. /* Join the groupchat.
  42178. *
  42179. * Parameters:
  42180. * (String) nick: The user's nickname
  42181. * (String) password: Optional password, if required by
  42182. * the groupchat.
  42183. */
  42184. if (!nick && !this.model.get('nick')) {
  42185. this.checkForReservedNick();
  42186. return this;
  42187. }
  42188. this.model.join(nick, password);
  42189. return this;
  42190. },
  42191. renderConfigurationForm(stanza) {
  42192. /* Renders a form given an IQ stanza containing the current
  42193. * groupchat configuration.
  42194. *
  42195. * Returns a promise which resolves once the user has
  42196. * either submitted the form, or canceled it.
  42197. *
  42198. * Parameters:
  42199. * (XMLElement) stanza: The IQ stanza containing the groupchat
  42200. * config.
  42201. */
  42202. const container_el = this.el.querySelector('.chatroom-body');
  42203. _.each(container_el.querySelectorAll('.chatroom-form-container'), u.removeElement);
  42204. _.each(container_el.children, u.hideElement);
  42205. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_form());
  42206. const form_el = container_el.querySelector('form.chatroom-form'),
  42207. fieldset_el = form_el.querySelector('fieldset'),
  42208. fields = stanza.querySelectorAll('field'),
  42209. title = _.get(stanza.querySelector('title'), 'textContent'),
  42210. instructions = _.get(stanza.querySelector('instructions'), 'textContent');
  42211. u.removeElement(fieldset_el.querySelector('span.spinner'));
  42212. fieldset_el.insertAdjacentHTML('beforeend', `<legend>${title}</legend>`);
  42213. if (instructions && instructions !== title) {
  42214. fieldset_el.insertAdjacentHTML('beforeend', `<p class="form-help">${instructions}</p>`);
  42215. }
  42216. _.each(fields, function (field) {
  42217. fieldset_el.insertAdjacentHTML('beforeend', u.xForm2webForm(field, stanza));
  42218. }); // Render save/cancel buttons
  42219. const last_fieldset_el = document.createElement('fieldset');
  42220. last_fieldset_el.insertAdjacentHTML('beforeend', `<input type="submit" class="btn btn-primary" value="${__('Save')}"/>`);
  42221. last_fieldset_el.insertAdjacentHTML('beforeend', `<input type="button" class="btn btn-secondary" value="${__('Cancel')}"/>`);
  42222. form_el.insertAdjacentElement('beforeend', last_fieldset_el);
  42223. last_fieldset_el.querySelector('input[type=button]').addEventListener('click', ev => {
  42224. ev.preventDefault();
  42225. this.closeForm();
  42226. });
  42227. form_el.addEventListener('submit', ev => {
  42228. ev.preventDefault();
  42229. this.model.saveConfiguration(ev.target).then(() => this.model.refreshRoomFeatures());
  42230. this.closeForm();
  42231. }, false);
  42232. },
  42233. closeForm() {
  42234. /* Remove the configuration form without submitting and
  42235. * return to the chat view.
  42236. */
  42237. u.removeElement(this.el.querySelector('.chatroom-form-container'));
  42238. this.renderAfterTransition();
  42239. },
  42240. getAndRenderConfigurationForm(ev) {
  42241. /* Start the process of configuring a groupchat, either by
  42242. * rendering a configuration form, or by auto-configuring
  42243. * based on the "roomconfig" data stored on the
  42244. * Backbone.Model.
  42245. *
  42246. * Stores the new configuration on the Backbone.Model once
  42247. * completed.
  42248. *
  42249. * Paremeters:
  42250. * (Event) ev: DOM event that might be passed in if this
  42251. * method is called due to a user action. In this
  42252. * case, auto-configure won't happen, regardless of
  42253. * the settings.
  42254. */
  42255. this.showSpinner();
  42256. this.model.fetchRoomConfiguration().then(this.renderConfigurationForm.bind(this)).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  42257. },
  42258. submitNickname(ev) {
  42259. /* Get the nickname value from the form and then join the
  42260. * groupchat with it.
  42261. */
  42262. ev.preventDefault();
  42263. const nick_el = ev.target.nick;
  42264. const nick = nick_el.value;
  42265. if (!nick) {
  42266. nick_el.classList.add('error');
  42267. return;
  42268. } else {
  42269. nick_el.classList.remove('error');
  42270. }
  42271. this.el.querySelector('.chatroom-form-container').outerHTML = tpl_spinner();
  42272. this.join(nick);
  42273. },
  42274. checkForReservedNick() {
  42275. /* User service-discovery to ask the XMPP server whether
  42276. * this user has a reserved nickname for this groupchat.
  42277. * If so, we'll use that, otherwise we render the nickname form.
  42278. */
  42279. this.showSpinner();
  42280. this.model.checkForReservedNick().then(this.onReservedNickFound.bind(this)).catch(this.onReservedNickNotFound.bind(this));
  42281. },
  42282. onReservedNickFound(iq) {
  42283. if (this.model.get('nick')) {
  42284. this.join();
  42285. } else {
  42286. this.onReservedNickNotFound();
  42287. }
  42288. },
  42289. onReservedNickNotFound(message) {
  42290. const nick = this.model.getDefaultNick();
  42291. if (nick) {
  42292. this.join(nick);
  42293. } else {
  42294. this.renderNicknameForm(message);
  42295. }
  42296. },
  42297. onNicknameClash(presence) {
  42298. /* When the nickname is already taken, we either render a
  42299. * form for the user to choose a new nickname, or we
  42300. * try to make the nickname unique by adding an integer to
  42301. * it. So john will become john-2, and then john-3 and so on.
  42302. *
  42303. * Which option is take depends on the value of
  42304. * muc_nickname_from_jid.
  42305. */
  42306. if (_converse.muc_nickname_from_jid) {
  42307. const nick = presence.getAttribute('from').split('/')[1];
  42308. if (nick === this.model.getDefaultNick()) {
  42309. this.join(nick + '-2');
  42310. } else {
  42311. const del = nick.lastIndexOf("-");
  42312. const num = nick.substring(del + 1, nick.length);
  42313. this.join(nick.substring(0, del + 1) + String(Number(num) + 1));
  42314. }
  42315. } else {
  42316. this.renderNicknameForm(__("The nickname you chose is reserved or " + "currently in use, please choose a different one."));
  42317. }
  42318. },
  42319. hideChatRoomContents() {
  42320. const container_el = this.el.querySelector('.chatroom-body');
  42321. if (!_.isNull(container_el)) {
  42322. _.each(container_el.children, child => {
  42323. child.classList.add('hidden');
  42324. });
  42325. }
  42326. },
  42327. renderNicknameForm(message) {
  42328. /* Render a form which allows the user to choose their
  42329. * nickname.
  42330. */
  42331. this.hideChatRoomContents();
  42332. _.each(this.el.querySelectorAll('span.centered.spinner'), u.removeElement);
  42333. if (!_.isString(message)) {
  42334. message = '';
  42335. }
  42336. const container_el = this.el.querySelector('.chatroom-body');
  42337. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_nickname_form({
  42338. heading: __('Please choose your nickname'),
  42339. label_nickname: __('Nickname'),
  42340. label_join: __('Enter groupchat'),
  42341. validation_message: message
  42342. }));
  42343. this.model.save('connection_status', converse.ROOMSTATUS.NICKNAME_REQUIRED);
  42344. const form_el = this.el.querySelector('.chatroom-form');
  42345. form_el.addEventListener('submit', this.submitNickname.bind(this), false);
  42346. },
  42347. submitPassword(ev) {
  42348. ev.preventDefault();
  42349. const password = this.el.querySelector('.chatroom-form input[type=password]').value;
  42350. this.showSpinner();
  42351. this.join(this.model.get('nick'), password);
  42352. },
  42353. renderPasswordForm() {
  42354. const container_el = this.el.querySelector('.chatroom-body');
  42355. _.each(container_el.children, u.hideElement);
  42356. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  42357. _.each(this.el.querySelectorAll('.chatroom-form-container'), u.removeElement);
  42358. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_password_form({
  42359. 'heading': __('This groupchat requires a password'),
  42360. 'label_password': __('Password: '),
  42361. 'label_submit': __('Submit')
  42362. }));
  42363. this.model.save('connection_status', converse.ROOMSTATUS.PASSWORD_REQUIRED);
  42364. this.el.querySelector('.chatroom-form').addEventListener('submit', ev => this.submitPassword(ev), false);
  42365. },
  42366. showDestroyedMessage(error) {
  42367. u.hideElement(this.el.querySelector('.chat-area'));
  42368. u.hideElement(this.el.querySelector('.occupants'));
  42369. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  42370. const container = this.el.querySelector('.disconnect-container');
  42371. const moved_jid = _.get(sizzle('gone[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', error).pop(), 'textContent').replace(/^xmpp:/, '').replace(/\?join$/, '');
  42372. const reason = _.get(sizzle('text[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', error).pop(), 'textContent');
  42373. container.innerHTML = tpl_chatroom_destroyed({
  42374. '_': _,
  42375. '__': __,
  42376. 'jid': moved_jid,
  42377. 'reason': reason ? `"${reason}"` : null
  42378. });
  42379. const switch_el = container.querySelector('a.switch-chat');
  42380. if (switch_el) {
  42381. switch_el.addEventListener('click', ev => {
  42382. ev.preventDefault();
  42383. this.model.save('jid', moved_jid);
  42384. container.innerHTML = '';
  42385. this.showSpinner();
  42386. this.enterRoom();
  42387. });
  42388. }
  42389. u.showElement(container);
  42390. },
  42391. showDisconnectMessages(msgs) {
  42392. if (_.isString(msgs)) {
  42393. msgs = [msgs];
  42394. }
  42395. u.hideElement(this.el.querySelector('.chat-area'));
  42396. u.hideElement(this.el.querySelector('.occupants'));
  42397. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  42398. const container = this.el.querySelector('.disconnect-container');
  42399. container.innerHTML = tpl_chatroom_disconnect({
  42400. '_': _,
  42401. 'disconnect_messages': msgs
  42402. });
  42403. u.showElement(container);
  42404. },
  42405. getMessageFromStatus(stat, stanza, is_self) {
  42406. /* Parameters:
  42407. * (XMLElement) stat: A <status> element.
  42408. * (Boolean) is_self: Whether the element refers to the
  42409. * current user.
  42410. * (XMLElement) stanza: The original stanza received.
  42411. */
  42412. const code = stat.getAttribute('code');
  42413. if (code === '110' || code === '100' && !is_self) {
  42414. return;
  42415. }
  42416. if (code in _converse.muc.info_messages) {
  42417. return _converse.muc.info_messages[code];
  42418. }
  42419. let nick;
  42420. if (!is_self) {
  42421. if (code in _converse.muc.action_info_messages) {
  42422. nick = Strophe.getResourceFromJid(stanza.getAttribute('from'));
  42423. return __(_converse.muc.action_info_messages[code], nick);
  42424. }
  42425. } else if (code in _converse.muc.new_nickname_messages) {
  42426. if (is_self && code === "210") {
  42427. nick = Strophe.getResourceFromJid(stanza.getAttribute('from'));
  42428. } else if (is_self && code === "303") {
  42429. nick = stanza.querySelector('x item').getAttribute('nick');
  42430. }
  42431. return __(_converse.muc.new_nickname_messages[code], nick);
  42432. }
  42433. return;
  42434. },
  42435. getNotificationWithMessage(message) {
  42436. let el = this.content.lastElementChild;
  42437. while (!_.isNil(el)) {
  42438. const data = _.get(el, 'dataset', {});
  42439. if (!_.includes(_.get(el, 'classList', []), 'chat-info')) {
  42440. return;
  42441. }
  42442. if (el.textContent === message) {
  42443. return el;
  42444. }
  42445. el = el.previousElementSibling;
  42446. }
  42447. },
  42448. parseXUserElement(x, stanza, is_self) {
  42449. /* Parse the passed-in <x xmlns='http://jabber.org/protocol/muc#user'>
  42450. * element and construct a map containing relevant
  42451. * information.
  42452. */
  42453. // 1. Get notification messages based on the <status> elements.
  42454. const statuses = x.querySelectorAll('status');
  42455. const mapper = _.partial(this.getMessageFromStatus, _, stanza, is_self);
  42456. const notification = {};
  42457. const messages = _.reject(_.reject(_.map(statuses, mapper), _.isUndefined), message => this.getNotificationWithMessage(message));
  42458. if (messages.length) {
  42459. notification.messages = messages;
  42460. } // 2. Get disconnection messages based on the <status> elements
  42461. const codes = _.invokeMap(statuses, Element.prototype.getAttribute, 'code');
  42462. const disconnection_codes = _.intersection(codes, _.keys(_converse.muc.disconnect_messages));
  42463. const disconnected = is_self && disconnection_codes.length > 0;
  42464. if (disconnected) {
  42465. notification.disconnected = true;
  42466. notification.disconnection_message = _converse.muc.disconnect_messages[disconnection_codes[0]];
  42467. } // 3. Find the reason and actor from the <item> element
  42468. const item = x.querySelector('item'); // By using querySelector above, we assume here there is
  42469. // one <item> per <x xmlns='http://jabber.org/protocol/muc#user'>
  42470. // element. This appears to be a safe assumption, since
  42471. // each <x/> element pertains to a single user.
  42472. if (!_.isNull(item)) {
  42473. const reason = item.querySelector('reason');
  42474. if (reason) {
  42475. notification.reason = reason ? reason.textContent : undefined;
  42476. }
  42477. const actor = item.querySelector('actor');
  42478. if (actor) {
  42479. notification.actor = actor ? actor.getAttribute('nick') : undefined;
  42480. }
  42481. }
  42482. return notification;
  42483. },
  42484. showNotificationsforUser(notification) {
  42485. /* Given the notification object generated by
  42486. * parseXUserElement, display any relevant messages and
  42487. * information to the user.
  42488. */
  42489. if (notification.disconnected) {
  42490. const messages = [];
  42491. messages.push(notification.disconnection_message);
  42492. if (notification.actor) {
  42493. messages.push(__('This action was done by %1$s.', notification.actor));
  42494. }
  42495. if (notification.reason) {
  42496. messages.push(__('The reason given is: "%1$s".', notification.reason));
  42497. }
  42498. this.showDisconnectMessages(messages);
  42499. this.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  42500. return;
  42501. }
  42502. _.each(notification.messages, message => {
  42503. this.content.insertAdjacentHTML('beforeend', tpl_info({
  42504. 'isodate': moment().format(),
  42505. 'extra_classes': 'chat-event',
  42506. 'message': message
  42507. }));
  42508. });
  42509. if (notification.reason) {
  42510. this.showChatEvent(__('The reason given is: "%1$s".', notification.reason));
  42511. }
  42512. if (_.get(notification.messages, 'length')) {
  42513. this.scrollDown();
  42514. }
  42515. },
  42516. onOccupantAdded(occupant) {
  42517. if (occupant.get('show') === 'online') {
  42518. this.showJoinNotification(occupant);
  42519. }
  42520. },
  42521. onOccupantRemoved(occupant) {
  42522. if (occupant.get('show') === 'online') {
  42523. this.showLeaveNotification(occupant);
  42524. }
  42525. },
  42526. showJoinOrLeaveNotification(occupant) {
  42527. if (_.includes(occupant.get('states'), '303')) {
  42528. return;
  42529. }
  42530. if (occupant.get('show') === 'offline') {
  42531. this.showLeaveNotification(occupant);
  42532. } else if (occupant.get('show') === 'online') {
  42533. this.showJoinNotification(occupant);
  42534. }
  42535. },
  42536. getPreviousJoinOrLeaveNotification(el, nick) {
  42537. /* Working backwards, get the first join/leave notification
  42538. * from the same user, on the same day and BEFORE any chat
  42539. * messages were received.
  42540. */
  42541. while (!_.isNil(el)) {
  42542. const data = _.get(el, 'dataset', {});
  42543. if (!_.includes(_.get(el, 'classList', []), 'chat-info')) {
  42544. return;
  42545. }
  42546. if (!moment(el.getAttribute('data-isodate')).isSame(new Date(), "day")) {
  42547. el = el.previousElementSibling;
  42548. continue;
  42549. }
  42550. if (data.join === nick || data.leave === nick || data.leavejoin === nick || data.joinleave === nick) {
  42551. return el;
  42552. }
  42553. el = el.previousElementSibling;
  42554. }
  42555. },
  42556. showJoinNotification(occupant) {
  42557. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  42558. return;
  42559. }
  42560. const nick = occupant.get('nick'),
  42561. stat = occupant.get('status'),
  42562. prev_info_el = this.getPreviousJoinOrLeaveNotification(this.content.lastElementChild, nick),
  42563. data = _.get(prev_info_el, 'dataset', {});
  42564. if (data.leave === nick) {
  42565. let message;
  42566. if (_.isNil(stat)) {
  42567. message = __('%1$s has left and re-entered the groupchat', nick);
  42568. } else {
  42569. message = __('%1$s has left and re-entered the groupchat. "%2$s"', nick, stat);
  42570. }
  42571. const data = {
  42572. 'data_name': 'leavejoin',
  42573. 'data_value': nick,
  42574. 'isodate': moment().format(),
  42575. 'extra_classes': 'chat-event',
  42576. 'message': message
  42577. };
  42578. this.content.removeChild(prev_info_el);
  42579. this.content.insertAdjacentHTML('beforeend', tpl_info(data));
  42580. const el = this.content.lastElementChild;
  42581. setTimeout(() => u.addClass('fade-out', el), 5000);
  42582. setTimeout(() => el.parentElement && el.parentElement.removeChild(el), 5500);
  42583. } else {
  42584. let message;
  42585. if (_.isNil(stat)) {
  42586. message = __('%1$s has entered the groupchat', nick);
  42587. } else {
  42588. message = __('%1$s has entered the groupchat. "%2$s"', nick, stat);
  42589. }
  42590. const data = {
  42591. 'data_name': 'join',
  42592. 'data_value': nick,
  42593. 'isodate': moment().format(),
  42594. 'extra_classes': 'chat-event',
  42595. 'message': message
  42596. };
  42597. if (prev_info_el) {
  42598. this.content.removeChild(prev_info_el);
  42599. this.content.insertAdjacentHTML('beforeend', tpl_info(data));
  42600. } else {
  42601. this.content.insertAdjacentHTML('beforeend', tpl_info(data));
  42602. this.insertDayIndicator(this.content.lastElementChild);
  42603. }
  42604. }
  42605. this.scrollDown();
  42606. },
  42607. showLeaveNotification(occupant) {
  42608. if (_.includes(occupant.get('states'), '303') || _.includes(occupant.get('states'), '307')) {
  42609. return;
  42610. }
  42611. const nick = occupant.get('nick'),
  42612. stat = occupant.get('status'),
  42613. prev_info_el = this.getPreviousJoinOrLeaveNotification(this.content.lastElementChild, nick),
  42614. dataset = _.get(prev_info_el, 'dataset', {});
  42615. if (dataset.join === nick) {
  42616. let message;
  42617. if (_.isNil(stat)) {
  42618. message = __('%1$s has entered and left the groupchat', nick);
  42619. } else {
  42620. message = __('%1$s has entered and left the groupchat. "%2$s"', nick, stat);
  42621. }
  42622. const data = {
  42623. 'data_name': 'joinleave',
  42624. 'data_value': nick,
  42625. 'isodate': moment().format(),
  42626. 'extra_classes': 'chat-event',
  42627. 'message': message
  42628. };
  42629. this.content.removeChild(prev_info_el);
  42630. this.content.insertAdjacentHTML('beforeend', tpl_info(data));
  42631. const el = this.content.lastElementChild;
  42632. setTimeout(() => u.addClass('fade-out', el), 5000);
  42633. setTimeout(() => el.parentElement && el.parentElement.removeChild(el), 5500);
  42634. } else {
  42635. let message;
  42636. if (_.isNil(stat)) {
  42637. message = __('%1$s has left the groupchat', nick);
  42638. } else {
  42639. message = __('%1$s has left the groupchat. "%2$s"', nick, stat);
  42640. }
  42641. const data = {
  42642. 'message': message,
  42643. 'isodate': moment().format(),
  42644. 'extra_classes': 'chat-event',
  42645. 'data_name': 'leave',
  42646. 'data_value': nick
  42647. };
  42648. if (prev_info_el) {
  42649. this.content.removeChild(prev_info_el);
  42650. this.content.insertAdjacentHTML('beforeend', tpl_info(data));
  42651. } else {
  42652. this.content.insertAdjacentHTML('beforeend', tpl_info(data));
  42653. this.insertDayIndicator(this.content.lastElementChild);
  42654. }
  42655. }
  42656. this.scrollDown();
  42657. },
  42658. showStatusMessages(stanza) {
  42659. /* Check for status codes and communicate their purpose to the user.
  42660. * See: http://xmpp.org/registrar/mucstatus.html
  42661. *
  42662. * Parameters:
  42663. * (XMLElement) stanza: The message or presence stanza
  42664. * containing the status codes.
  42665. */
  42666. const elements = sizzle(`x[xmlns="${Strophe.NS.MUC_USER}"]`, stanza);
  42667. const is_self = stanza.querySelectorAll("status[code='110']").length;
  42668. const iteratee = _.partial(this.parseXUserElement.bind(this), _, stanza, is_self);
  42669. const notifications = _.reject(_.map(elements, iteratee), _.isEmpty);
  42670. _.each(notifications, this.showNotificationsforUser.bind(this));
  42671. },
  42672. showErrorMessageFromPresence(presence) {
  42673. // We didn't enter the groupchat, so we must remove it from the MUC add-on
  42674. const error = presence.querySelector('error');
  42675. if (error.getAttribute('type') === 'auth') {
  42676. if (!_.isNull(error.querySelector('not-authorized'))) {
  42677. this.renderPasswordForm();
  42678. } else if (!_.isNull(error.querySelector('registration-required'))) {
  42679. this.showDisconnectMessages(__('You are not on the member list of this groupchat.'));
  42680. } else if (!_.isNull(error.querySelector('forbidden'))) {
  42681. this.showDisconnectMessages(__('You have been banned from this groupchat.'));
  42682. }
  42683. } else if (error.getAttribute('type') === 'modify') {
  42684. if (!_.isNull(error.querySelector('jid-malformed'))) {
  42685. this.showDisconnectMessages(__('No nickname was specified.'));
  42686. }
  42687. } else if (error.getAttribute('type') === 'cancel') {
  42688. if (!_.isNull(error.querySelector('not-allowed'))) {
  42689. this.showDisconnectMessages(__('You are not allowed to create new groupchats.'));
  42690. } else if (!_.isNull(error.querySelector('not-acceptable'))) {
  42691. this.showDisconnectMessages(__("Your nickname doesn't conform to this groupchat's policies."));
  42692. } else if (sizzle('gone[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', error).length) {
  42693. this.showDestroyedMessage(error);
  42694. } else if (!_.isNull(error.querySelector('conflict'))) {
  42695. this.onNicknameClash(presence);
  42696. } else if (!_.isNull(error.querySelector('item-not-found'))) {
  42697. this.showDisconnectMessages(__("This groupchat does not (yet) exist."));
  42698. } else if (!_.isNull(error.querySelector('service-unavailable'))) {
  42699. this.showDisconnectMessages(__("This groupchat has reached its maximum number of participants."));
  42700. } else if (!_.isNull(error.querySelector('remote-server-not-found'))) {
  42701. const messages = [__("Remote server not found")];
  42702. const reason = _.get(error.querySelector('text'), 'textContent');
  42703. if (reason) {
  42704. messages.push(__('The explanation given is: "%1$s".', reason));
  42705. }
  42706. this.showDisconnectMessages(messages);
  42707. }
  42708. }
  42709. },
  42710. renderAfterTransition() {
  42711. /* Rerender the groupchat after some kind of transition. For
  42712. * example after the spinner has been removed or after a
  42713. * form has been submitted and removed.
  42714. */
  42715. if (this.model.get('connection_status') == converse.ROOMSTATUS.NICKNAME_REQUIRED) {
  42716. this.renderNicknameForm();
  42717. } else if (this.model.get('connection_status') == converse.ROOMSTATUS.PASSWORD_REQUIRED) {
  42718. this.renderPasswordForm();
  42719. } else {
  42720. this.el.querySelector('.chat-area').classList.remove('hidden');
  42721. this.setOccupantsVisibility();
  42722. this.scrollDown();
  42723. }
  42724. },
  42725. showSpinner() {
  42726. u.removeElement(this.el.querySelector('.spinner'));
  42727. const container_el = this.el.querySelector('.chatroom-body');
  42728. const children = Array.prototype.slice.call(container_el.children, 0);
  42729. container_el.insertAdjacentHTML('afterbegin', tpl_spinner());
  42730. _.each(children, u.hideElement);
  42731. },
  42732. hideSpinner() {
  42733. /* Check if the spinner is being shown and if so, hide it.
  42734. * Also make sure then that the chat area and occupants
  42735. * list are both visible.
  42736. */
  42737. const spinner = this.el.querySelector('.spinner');
  42738. if (!_.isNull(spinner)) {
  42739. u.removeElement(spinner);
  42740. this.renderAfterTransition();
  42741. }
  42742. return this;
  42743. },
  42744. setChatRoomSubject() {
  42745. // For translators: the %1$s and %2$s parts will get
  42746. // replaced by the user and topic text respectively
  42747. // Example: Topic set by JC Brand to: Hello World!
  42748. const subject = this.model.get('subject'),
  42749. message = subject.text ? __('Topic set by %1$s', subject.author) : __('Topic cleared by %1$s', subject.author),
  42750. date = moment().format();
  42751. this.content.insertAdjacentHTML('beforeend', tpl_info({
  42752. 'isodate': date,
  42753. 'extra_classes': 'chat-event',
  42754. 'message': message
  42755. }));
  42756. if (subject.text) {
  42757. this.content.insertAdjacentHTML('beforeend', tpl_info({
  42758. 'isodate': date,
  42759. 'extra_classes': 'chat-topic',
  42760. 'message': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
  42761. 'whiteList': {}
  42762. })),
  42763. 'render_message': true
  42764. }));
  42765. }
  42766. this.scrollDown();
  42767. }
  42768. });
  42769. _converse.RoomsPanel = Backbone.NativeView.extend({
  42770. /* Backbone.NativeView which renders MUC section of the control box.
  42771. */
  42772. tagName: 'div',
  42773. className: 'controlbox-section',
  42774. id: 'chatrooms',
  42775. events: {
  42776. 'click a.chatbox-btn.show-add-muc-modal': 'showAddRoomModal',
  42777. 'click a.chatbox-btn.show-list-muc-modal': 'showListRoomsModal'
  42778. },
  42779. render() {
  42780. this.el.innerHTML = tpl_room_panel({
  42781. 'heading_chatrooms': __('Groupchats'),
  42782. 'title_new_room': __('Add a new groupchat'),
  42783. 'title_list_rooms': __('Query for groupchats')
  42784. });
  42785. return this;
  42786. },
  42787. showAddRoomModal(ev) {
  42788. if (_.isUndefined(this.add_room_modal)) {
  42789. this.add_room_modal = new _converse.AddChatRoomModal({
  42790. 'model': this.model
  42791. });
  42792. }
  42793. this.add_room_modal.show(ev);
  42794. },
  42795. showListRoomsModal(ev) {
  42796. if (_.isUndefined(this.list_rooms_modal)) {
  42797. this.list_rooms_modal = new _converse.ListChatRoomsModal({
  42798. 'model': this.model
  42799. });
  42800. }
  42801. this.list_rooms_modal.show(ev);
  42802. }
  42803. });
  42804. _converse.ChatRoomOccupantView = Backbone.VDOMView.extend({
  42805. tagName: 'li',
  42806. initialize() {
  42807. this.model.on('change', this.render, this);
  42808. },
  42809. toHTML() {
  42810. const show = this.model.get('show');
  42811. return tpl_occupant(_.extend({
  42812. '_': _,
  42813. // XXX Normally this should already be included,
  42814. // but with the current webpack build,
  42815. // we only get a subset of the _ methods.
  42816. 'jid': '',
  42817. 'show': show,
  42818. 'hint_show': _converse.PRETTY_CHAT_STATUS[show],
  42819. 'hint_occupant': __('Click to mention %1$s in your message.', this.model.get('nick')),
  42820. 'desc_moderator': __('This user is a moderator.'),
  42821. 'desc_participant': __('This user can send messages in this groupchat.'),
  42822. 'desc_visitor': __('This user can NOT send messages in this groupchat.'),
  42823. 'label_moderator': __('Moderator'),
  42824. 'label_visitor': __('Visitor'),
  42825. 'label_owner': __('Owner'),
  42826. 'label_member': __('Member'),
  42827. 'label_admin': __('Admin')
  42828. }, this.model.toJSON()));
  42829. },
  42830. destroy() {
  42831. this.el.parentElement.removeChild(this.el);
  42832. }
  42833. });
  42834. _converse.ChatRoomOccupantsView = Backbone.OrderedListView.extend({
  42835. tagName: 'div',
  42836. className: 'occupants col-md-3 col-4',
  42837. listItems: 'model',
  42838. sortEvent: 'change:role',
  42839. listSelector: '.occupant-list',
  42840. ItemView: _converse.ChatRoomOccupantView,
  42841. initialize() {
  42842. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  42843. this.chatroomview = this.model.chatroomview;
  42844. this.chatroomview.model.on('change:open', this.renderInviteWidget, this);
  42845. this.chatroomview.model.on('change:affiliation', this.renderInviteWidget, this);
  42846. this.chatroomview.model.on('change:hidden', this.onFeatureChanged, this);
  42847. this.chatroomview.model.on('change:mam_enabled', this.onFeatureChanged, this);
  42848. this.chatroomview.model.on('change:membersonly', this.onFeatureChanged, this);
  42849. this.chatroomview.model.on('change:moderated', this.onFeatureChanged, this);
  42850. this.chatroomview.model.on('change:nonanonymous', this.onFeatureChanged, this);
  42851. this.chatroomview.model.on('change:open', this.onFeatureChanged, this);
  42852. this.chatroomview.model.on('change:passwordprotected', this.onFeatureChanged, this);
  42853. this.chatroomview.model.on('change:persistent', this.onFeatureChanged, this);
  42854. this.chatroomview.model.on('change:publicroom', this.onFeatureChanged, this);
  42855. this.chatroomview.model.on('change:semianonymous', this.onFeatureChanged, this);
  42856. this.chatroomview.model.on('change:temporary', this.onFeatureChanged, this);
  42857. this.chatroomview.model.on('change:unmoderated', this.onFeatureChanged, this);
  42858. this.chatroomview.model.on('change:unsecured', this.onFeatureChanged, this);
  42859. this.render();
  42860. this.model.fetch({
  42861. 'add': true,
  42862. 'silent': true,
  42863. 'success': this.sortAndPositionAllItems.bind(this)
  42864. });
  42865. },
  42866. render() {
  42867. this.el.innerHTML = tpl_chatroom_sidebar(_.extend(this.chatroomview.model.toJSON(), {
  42868. 'allow_muc_invitations': _converse.allow_muc_invitations,
  42869. 'label_occupants': __('Participants')
  42870. }));
  42871. if (_converse.allow_muc_invitations) {
  42872. _converse.api.waitUntil('rosterContactsFetched').then(this.renderInviteWidget.bind(this));
  42873. }
  42874. return this.renderRoomFeatures();
  42875. },
  42876. renderInviteWidget() {
  42877. const form = this.el.querySelector('form.room-invite');
  42878. if (this.shouldInviteWidgetBeShown()) {
  42879. if (_.isNull(form)) {
  42880. const heading = this.el.querySelector('.occupants-heading');
  42881. heading.insertAdjacentHTML('afterend', tpl_chatroom_invite({
  42882. 'error_message': null,
  42883. 'label_invitation': __('Invite')
  42884. }));
  42885. this.initInviteWidget();
  42886. }
  42887. } else if (!_.isNull(form)) {
  42888. form.remove();
  42889. }
  42890. return this;
  42891. },
  42892. renderRoomFeatures() {
  42893. const picks = _.pick(this.chatroomview.model.attributes, converse.ROOM_FEATURES),
  42894. iteratee = (a, v) => a || v,
  42895. el = this.el.querySelector('.chatroom-features');
  42896. el.innerHTML = tpl_chatroom_features(_.extend(this.chatroomview.model.toJSON(), {
  42897. '__': __,
  42898. 'has_features': _.reduce(_.values(picks), iteratee)
  42899. }));
  42900. this.setOccupantsHeight();
  42901. return this;
  42902. },
  42903. onFeatureChanged(model) {
  42904. /* When a feature has been changed, it's logical opposite
  42905. * must be set to the opposite value.
  42906. *
  42907. * So for example, if "temporary" was set to "false", then
  42908. * "persistent" will be set to "true" in this method.
  42909. *
  42910. * Additionally a debounced render method is called to make
  42911. * sure the features widget gets updated.
  42912. */
  42913. if (_.isUndefined(this.debouncedRenderRoomFeatures)) {
  42914. this.debouncedRenderRoomFeatures = _.debounce(this.renderRoomFeatures, 100, {
  42915. 'leading': false
  42916. });
  42917. }
  42918. const changed_features = {};
  42919. _.each(_.keys(model.changed), function (k) {
  42920. if (!_.isNil(ROOM_FEATURES_MAP[k])) {
  42921. changed_features[ROOM_FEATURES_MAP[k]] = !model.changed[k];
  42922. }
  42923. });
  42924. this.chatroomview.model.save(changed_features, {
  42925. 'silent': true
  42926. });
  42927. this.debouncedRenderRoomFeatures();
  42928. },
  42929. setOccupantsHeight() {
  42930. const el = this.el.querySelector('.chatroom-features');
  42931. this.el.querySelector('.occupant-list').style.cssText = `height: calc(100% - ${el.offsetHeight}px - 5em);`;
  42932. },
  42933. promptForInvite(suggestion) {
  42934. const 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')));
  42935. if (reason !== null) {
  42936. this.chatroomview.model.directInvite(suggestion.text.value, reason);
  42937. }
  42938. const form = suggestion.target.form,
  42939. error = form.querySelector('.pure-form-message.error');
  42940. if (!_.isNull(error)) {
  42941. error.parentNode.removeChild(error);
  42942. }
  42943. suggestion.target.value = '';
  42944. },
  42945. inviteFormSubmitted(evt) {
  42946. evt.preventDefault();
  42947. const el = evt.target.querySelector('input.invited-contact'),
  42948. jid = el.value;
  42949. if (!jid || _.compact(jid.split('@')).length < 2) {
  42950. evt.target.outerHTML = tpl_chatroom_invite({
  42951. 'error_message': __('Please enter a valid XMPP username'),
  42952. 'label_invitation': __('Invite')
  42953. });
  42954. this.initInviteWidget();
  42955. return;
  42956. }
  42957. this.promptForInvite({
  42958. 'target': el,
  42959. 'text': {
  42960. 'label': jid,
  42961. 'value': jid
  42962. }
  42963. });
  42964. },
  42965. shouldInviteWidgetBeShown() {
  42966. return _converse.allow_muc_invitations && (this.chatroomview.model.get('open') || this.chatroomview.model.get('affiliation') === "owner");
  42967. },
  42968. initInviteWidget() {
  42969. const form = this.el.querySelector('form.room-invite');
  42970. if (_.isNull(form)) {
  42971. return;
  42972. }
  42973. form.addEventListener('submit', this.inviteFormSubmitted.bind(this), false);
  42974. const el = this.el.querySelector('input.invited-contact');
  42975. const list = _converse.roster.map(function (item) {
  42976. const label = item.get('fullname') || item.get('jid');
  42977. return {
  42978. 'label': label,
  42979. 'value': item.get('jid')
  42980. };
  42981. });
  42982. const awesomplete = new Awesomplete(el, {
  42983. 'minChars': 1,
  42984. 'list': list
  42985. });
  42986. el.addEventListener('awesomplete-selectcomplete', this.promptForInvite.bind(this));
  42987. }
  42988. });
  42989. function setMUCDomain(domain, controlboxview) {
  42990. _converse.muc_domain = domain;
  42991. controlboxview.roomspanel.model.save('muc_domain', Strophe.getDomainFromJid(domain));
  42992. }
  42993. function setMUCDomainFromDisco(controlboxview) {
  42994. /* Check whether service discovery for the user's domain
  42995. * returned MUC information and use that to automatically
  42996. * set the MUC domain in the "Add groupchat" modal.
  42997. */
  42998. function featureAdded(feature) {
  42999. if (!feature) {
  43000. return;
  43001. }
  43002. if (feature.get('var') === Strophe.NS.MUC) {
  43003. feature.entity.getIdentity('conference', 'text').then(identity => {
  43004. if (identity) {
  43005. setMUCDomain(feature.get('from'), controlboxview);
  43006. }
  43007. });
  43008. }
  43009. }
  43010. _converse.api.waitUntil('discoInitialized').then(() => {
  43011. _converse.api.listen.on('serviceDiscovered', featureAdded); // Features could have been added before the controlbox was
  43012. // initialized. We're only interested in MUC
  43013. _converse.disco_entities.each(entity => featureAdded(entity.features.findWhere({
  43014. 'var': Strophe.NS.MUC
  43015. })));
  43016. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  43017. }
  43018. function fetchAndSetMUCDomain(controlboxview) {
  43019. if (controlboxview.model.get('connected')) {
  43020. if (!controlboxview.roomspanel.model.get('muc_domain')) {
  43021. if (_.isUndefined(_converse.muc_domain)) {
  43022. setMUCDomainFromDisco(controlboxview);
  43023. } else {
  43024. setMUCDomain(_converse.muc_domain, controlboxview);
  43025. }
  43026. }
  43027. }
  43028. }
  43029. /************************ BEGIN Event Handlers ************************/
  43030. _converse.on('chatBoxViewsInitialized', () => {
  43031. function openChatRoomFromURIClicked(ev) {
  43032. ev.preventDefault();
  43033. _converse.api.rooms.open(ev.target.href);
  43034. }
  43035. _converse.chatboxviews.delegate('click', 'a.open-chatroom', openChatRoomFromURIClicked);
  43036. const that = _converse.chatboxviews;
  43037. _converse.chatboxes.on('add', item => {
  43038. if (!that.get(item.get('id')) && item.get('type') === _converse.CHATROOMS_TYPE) {
  43039. return that.add(item.get('id'), new _converse.ChatRoomView({
  43040. 'model': item
  43041. }));
  43042. }
  43043. });
  43044. });
  43045. _converse.on('controlboxInitialized', view => {
  43046. if (!_converse.allow_muc) {
  43047. return;
  43048. }
  43049. fetchAndSetMUCDomain(view);
  43050. view.model.on('change:connected', _.partial(fetchAndSetMUCDomain, view));
  43051. });
  43052. function reconnectToChatRooms() {
  43053. /* Upon a reconnection event from converse, join again
  43054. * all the open groupchats.
  43055. */
  43056. _converse.chatboxviews.each(function (view) {
  43057. if (view.model.get('type') === _converse.CHATROOMS_TYPE) {
  43058. view.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  43059. view.model.registerHandlers();
  43060. view.populateAndJoin();
  43061. }
  43062. });
  43063. }
  43064. _converse.on('reconnected', reconnectToChatRooms);
  43065. /************************ END Event Handlers ************************/
  43066. /************************ BEGIN API ************************/
  43067. _.extend(_converse.api, {
  43068. /**
  43069. * The "roomviews" namespace groups methods relevant to chatroom
  43070. * (aka groupchats) views.
  43071. *
  43072. * @namespace _converse.api.roomviews
  43073. * @memberOf _converse.api
  43074. */
  43075. 'roomviews': {
  43076. /**
  43077. * Lets you close open chatrooms.
  43078. *
  43079. * You can call this method without any arguments to close
  43080. * all open chatrooms, or you can specify a single JID or
  43081. * an array of JIDs.
  43082. *
  43083. * @method _converse.api.roomviews.close
  43084. * @param {(String[]|String)} jids The JID or array of JIDs of the chatroom(s)
  43085. */
  43086. 'close'(jids) {
  43087. if (_.isUndefined(jids)) {
  43088. _converse.chatboxviews.each(function (view) {
  43089. if (view.is_chatroom && view.model) {
  43090. view.close();
  43091. }
  43092. });
  43093. } else if (_.isString(jids)) {
  43094. const view = _converse.chatboxviews.get(jids);
  43095. if (view) {
  43096. view.close();
  43097. }
  43098. } else {
  43099. _.each(jids, function (jid) {
  43100. const view = _converse.chatboxviews.get(jid);
  43101. if (view) {
  43102. view.close();
  43103. }
  43104. });
  43105. }
  43106. }
  43107. }
  43108. });
  43109. }
  43110. });
  43111. });
  43112. /***/ }),
  43113. /***/ "./src/converse-muc.js":
  43114. /*!*****************************!*\
  43115. !*** ./src/converse-muc.js ***!
  43116. \*****************************/
  43117. /*! no static exports found */
  43118. /***/ (function(module, exports, __webpack_require__) {
  43119. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
  43120. function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
  43121. 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; }
  43122. function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
  43123. // Converse.js
  43124. // http://conversejs.org
  43125. //
  43126. // Copyright (c) 2013-2018, the Converse.js developers
  43127. // Licensed under the Mozilla Public License (MPLv2)
  43128. (function (root, factory) {
  43129. !(__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),
  43130. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  43131. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  43132. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43133. })(this, function (u, converse) {
  43134. "use strict";
  43135. const MUC_ROLE_WEIGHTS = {
  43136. 'moderator': 1,
  43137. 'participant': 2,
  43138. 'visitor': 3,
  43139. 'none': 2
  43140. };
  43141. const _converse$env = converse.env,
  43142. Strophe = _converse$env.Strophe,
  43143. Backbone = _converse$env.Backbone,
  43144. Promise = _converse$env.Promise,
  43145. $iq = _converse$env.$iq,
  43146. $build = _converse$env.$build,
  43147. $msg = _converse$env.$msg,
  43148. $pres = _converse$env.$pres,
  43149. b64_sha1 = _converse$env.b64_sha1,
  43150. sizzle = _converse$env.sizzle,
  43151. f = _converse$env.f,
  43152. moment = _converse$env.moment,
  43153. _ = _converse$env._; // Add Strophe Namespaces
  43154. Strophe.addNamespace('MUC_ADMIN', Strophe.NS.MUC + "#admin");
  43155. Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + "#owner");
  43156. Strophe.addNamespace('MUC_REGISTER', "jabber:iq:register");
  43157. Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + "#roomconfig");
  43158. Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + "#user");
  43159. converse.MUC_NICK_CHANGED_CODE = "303";
  43160. converse.ROOM_FEATURES = ['passwordprotected', 'unsecured', 'hidden', 'publicroom', 'membersonly', 'open', 'persistent', 'temporary', 'nonanonymous', 'semianonymous', 'moderated', 'unmoderated', 'mam_enabled'];
  43161. converse.ROOMSTATUS = {
  43162. CONNECTED: 0,
  43163. CONNECTING: 1,
  43164. NICKNAME_REQUIRED: 2,
  43165. PASSWORD_REQUIRED: 3,
  43166. DISCONNECTED: 4,
  43167. ENTERED: 5
  43168. };
  43169. converse.plugins.add('converse-muc', {
  43170. /* Optional dependencies are other plugins which might be
  43171. * overridden or relied upon, and therefore need to be loaded before
  43172. * this plugin. They are called "optional" because they might not be
  43173. * available, in which case any overrides applicable to them will be
  43174. * ignored.
  43175. *
  43176. * It's possible however to make optional dependencies non-optional.
  43177. * If the setting "strict_plugin_dependencies" is set to true,
  43178. * an error will be raised if the plugin is not found.
  43179. *
  43180. * NB: These plugins need to have already been loaded via require.js.
  43181. */
  43182. dependencies: ["converse-chatboxes", "converse-disco", "converse-controlbox"],
  43183. overrides: {
  43184. tearDown() {
  43185. const _converse = this.__super__._converse,
  43186. groupchats = this.chatboxes.where({
  43187. 'type': _converse.CHATROOMS_TYPE
  43188. });
  43189. _.each(groupchats, gc => u.safeSave(gc, {
  43190. 'connection_status': converse.ROOMSTATUS.DISCONNECTED
  43191. }));
  43192. this.__super__.tearDown.call(this, arguments);
  43193. },
  43194. ChatBoxes: {
  43195. model(attrs, options) {
  43196. const _converse = this.__super__._converse;
  43197. if (attrs.type == _converse.CHATROOMS_TYPE) {
  43198. return new _converse.ChatRoom(attrs, options);
  43199. } else {
  43200. return this.__super__.model.apply(this, arguments);
  43201. }
  43202. }
  43203. }
  43204. },
  43205. initialize() {
  43206. /* The initialize function gets called as soon as the plugin is
  43207. * loaded by converse.js's plugin machinery.
  43208. */
  43209. const _converse = this._converse,
  43210. __ = _converse.__; // Configuration values for this plugin
  43211. // ====================================
  43212. // Refer to docs/source/configuration.rst for explanations of these
  43213. // configuration settings.
  43214. _converse.api.settings.update({
  43215. allow_muc: true,
  43216. allow_muc_invitations: true,
  43217. auto_join_on_invite: false,
  43218. auto_join_rooms: [],
  43219. auto_register_muc_nickname: false,
  43220. muc_domain: undefined,
  43221. muc_history_max_stanzas: undefined,
  43222. muc_instant_rooms: true,
  43223. muc_nickname_from_jid: false
  43224. });
  43225. _converse.api.promises.add(['roomsAutoJoined']);
  43226. function openRoom(jid) {
  43227. if (!u.isValidMUCJID(jid)) {
  43228. return _converse.log(`Invalid JID "${jid}" provided in URL fragment`, Strophe.LogLevel.WARN);
  43229. }
  43230. const promises = [_converse.api.waitUntil('roomsAutoJoined')];
  43231. if (_converse.allow_bookmarks) {
  43232. promises.push(_converse.api.waitUntil('bookmarksInitialized'));
  43233. }
  43234. Promise.all(promises).then(() => {
  43235. _converse.api.rooms.open(jid);
  43236. });
  43237. }
  43238. _converse.router.route('converse/room?jid=:jid', openRoom);
  43239. _converse.openChatRoom = function (jid, settings, bring_to_foreground) {
  43240. /* Opens a groupchat, making sure that certain attributes
  43241. * are correct, for example that the "type" is set to
  43242. * "chatroom".
  43243. */
  43244. settings.type = _converse.CHATROOMS_TYPE;
  43245. settings.id = jid;
  43246. settings.box_id = b64_sha1(jid);
  43247. const chatbox = _converse.chatboxes.getChatBox(jid, settings, true);
  43248. chatbox.trigger('show', true);
  43249. return chatbox;
  43250. };
  43251. _converse.ChatRoom = _converse.ChatBox.extend({
  43252. defaults() {
  43253. return _.assign(_.clone(_converse.ChatBox.prototype.defaults), _.zipObject(converse.ROOM_FEATURES, _.map(converse.ROOM_FEATURES, _.stubFalse)), {
  43254. // For group chats, we distinguish between generally unread
  43255. // messages and those ones that specifically mention the
  43256. // user.
  43257. //
  43258. // To keep things simple, we reuse `num_unread` from
  43259. // _converse.ChatBox to indicate unread messages which
  43260. // mention the user and `num_unread_general` to indicate
  43261. // generally unread messages (which *includes* mentions!).
  43262. 'num_unread_general': 0,
  43263. 'affiliation': null,
  43264. 'connection_status': converse.ROOMSTATUS.DISCONNECTED,
  43265. 'name': '',
  43266. 'nick': _converse.xmppstatus.get('nickname') || _converse.nickname,
  43267. 'description': '',
  43268. 'features_fetched': false,
  43269. 'roomconfig': {},
  43270. 'type': _converse.CHATROOMS_TYPE,
  43271. 'message_type': 'groupchat'
  43272. });
  43273. },
  43274. initialize() {
  43275. this.constructor.__super__.initialize.apply(this, arguments);
  43276. this.on('change:connection_status', this.onConnectionStatusChanged, this);
  43277. this.occupants = new _converse.ChatRoomOccupants();
  43278. this.occupants.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.occupants-${_converse.bare_jid}${this.get('jid')}`));
  43279. this.occupants.chatroom = this;
  43280. this.registerHandlers();
  43281. },
  43282. async onConnectionStatusChanged() {
  43283. if (this.get('connection_status') === converse.ROOMSTATUS.ENTERED && _converse.auto_register_muc_nickname && !this.get('reserved_nick')) {
  43284. const result = await _converse.api.disco.supports(Strophe.NS.MUC_REGISTER, this.get('jid'));
  43285. if (result.length) {
  43286. this.registerNickname();
  43287. }
  43288. }
  43289. },
  43290. registerHandlers() {
  43291. /* Register presence and message handlers for this chat
  43292. * groupchat
  43293. */
  43294. const room_jid = this.get('jid');
  43295. this.removeHandlers();
  43296. this.presence_handler = _converse.connection.addHandler(stanza => {
  43297. _.each(_.values(this.handlers.presence), callback => callback(stanza));
  43298. this.onPresence(stanza);
  43299. return true;
  43300. }, null, 'presence', null, null, room_jid, {
  43301. 'ignoreNamespaceFragment': true,
  43302. 'matchBareFromJid': true
  43303. });
  43304. this.message_handler = _converse.connection.addHandler(stanza => {
  43305. _.each(_.values(this.handlers.message), callback => callback(stanza));
  43306. this.onMessage(stanza);
  43307. return true;
  43308. }, null, 'message', 'groupchat', null, room_jid, {
  43309. 'matchBareFromJid': true
  43310. });
  43311. },
  43312. removeHandlers() {
  43313. /* Remove the presence and message handlers that were
  43314. * registered for this groupchat.
  43315. */
  43316. if (this.message_handler) {
  43317. _converse.connection.deleteHandler(this.message_handler);
  43318. delete this.message_handler;
  43319. }
  43320. if (this.presence_handler) {
  43321. _converse.connection.deleteHandler(this.presence_handler);
  43322. delete this.presence_handler;
  43323. }
  43324. return this;
  43325. },
  43326. addHandler(type, name, callback) {
  43327. /* Allows 'presence' and 'message' handlers to be
  43328. * registered. These will be executed once presence or
  43329. * message stanzas are received, and *before* this model's
  43330. * own handlers are executed.
  43331. */
  43332. if (_.isNil(this.handlers)) {
  43333. this.handlers = {};
  43334. }
  43335. if (_.isNil(this.handlers[type])) {
  43336. this.handlers[type] = {};
  43337. }
  43338. this.handlers[type][name] = callback;
  43339. },
  43340. getDisplayName() {
  43341. return this.get('name') || this.get('jid');
  43342. },
  43343. join(nick, password) {
  43344. /* Join the groupchat.
  43345. *
  43346. * Parameters:
  43347. * (String) nick: The user's nickname
  43348. * (String) password: Optional password, if required by
  43349. * the groupchat.
  43350. */
  43351. nick = nick ? nick : this.get('nick');
  43352. if (!nick) {
  43353. throw new TypeError('join: You need to provide a valid nickname');
  43354. }
  43355. if (this.get('connection_status') === converse.ROOMSTATUS.ENTERED) {
  43356. // We have restored a groupchat from session storage,
  43357. // so we don't send out a presence stanza again.
  43358. return this;
  43359. }
  43360. const stanza = $pres({
  43361. 'from': _converse.connection.jid,
  43362. 'to': this.getRoomJIDAndNick(nick)
  43363. }).c("x", {
  43364. 'xmlns': Strophe.NS.MUC
  43365. }).c("history", {
  43366. 'maxstanzas': this.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas
  43367. }).up();
  43368. if (password) {
  43369. stanza.cnode(Strophe.xmlElement("password", [], password));
  43370. }
  43371. this.save('connection_status', converse.ROOMSTATUS.CONNECTING);
  43372. _converse.connection.send(stanza);
  43373. return this;
  43374. },
  43375. leave(exit_msg) {
  43376. /* Leave the groupchat.
  43377. *
  43378. * Parameters:
  43379. * (String) exit_msg: Optional message to indicate your
  43380. * reason for leaving.
  43381. */
  43382. this.occupants.browserStorage._clear();
  43383. this.occupants.reset();
  43384. const disco_entity = _converse.disco_entities.get(this.get('jid'));
  43385. if (disco_entity) {
  43386. disco_entity.destroy();
  43387. }
  43388. if (_converse.connection.connected) {
  43389. this.sendUnavailablePresence(exit_msg);
  43390. }
  43391. u.safeSave(this, {
  43392. 'connection_status': converse.ROOMSTATUS.DISCONNECTED
  43393. });
  43394. this.removeHandlers();
  43395. },
  43396. sendUnavailablePresence(exit_msg) {
  43397. const presence = $pres({
  43398. type: "unavailable",
  43399. from: _converse.connection.jid,
  43400. to: this.getRoomJIDAndNick()
  43401. });
  43402. if (exit_msg !== null) {
  43403. presence.c("status", exit_msg);
  43404. }
  43405. _converse.connection.sendPresence(presence);
  43406. },
  43407. getReferenceForMention(mention, index) {
  43408. const longest_match = u.getLongestSubstring(mention, this.occupants.map(o => o.getDisplayName()));
  43409. if (!longest_match) {
  43410. return null;
  43411. }
  43412. if ((mention[longest_match.length] || '').match(/[A-Za-zäëïöüâêîôûáéíóúàèìòùÄËÏÖÜÂÊÎÔÛÁÉÍÓÚÀÈÌÒÙ]/i)) {
  43413. // avoid false positives, i.e. mentions that have
  43414. // further alphabetical characters than our longest
  43415. // match.
  43416. return null;
  43417. }
  43418. const occupant = this.occupants.findOccupant({
  43419. 'nick': longest_match
  43420. }) || this.occupants.findOccupant({
  43421. 'jid': longest_match
  43422. });
  43423. if (!occupant) {
  43424. return null;
  43425. }
  43426. const obj = {
  43427. 'begin': index,
  43428. 'end': index + longest_match.length,
  43429. 'value': longest_match,
  43430. 'type': 'mention'
  43431. };
  43432. if (occupant.get('jid')) {
  43433. obj.uri = `xmpp:${occupant.get('jid')}`;
  43434. }
  43435. return obj;
  43436. },
  43437. extractReference(text, index) {
  43438. for (let i = index; i < text.length; i++) {
  43439. if (text[i] !== '@') {
  43440. continue;
  43441. } else {
  43442. const match = text.slice(i + 1),
  43443. ref = this.getReferenceForMention(match, i);
  43444. if (ref) {
  43445. return [text.slice(0, i) + match, ref, i];
  43446. }
  43447. }
  43448. }
  43449. return;
  43450. },
  43451. parseTextForReferences(text) {
  43452. const refs = [];
  43453. let index = 0;
  43454. while (index < (text || '').length) {
  43455. const result = this.extractReference(text, index);
  43456. if (result) {
  43457. text = result[0]; // @ gets filtered out
  43458. refs.push(result[1]);
  43459. index = result[2];
  43460. } else {
  43461. break;
  43462. }
  43463. }
  43464. return [text, refs];
  43465. },
  43466. getOutgoingMessageAttributes(text, spoiler_hint) {
  43467. const is_spoiler = this.get('composing_spoiler');
  43468. var references;
  43469. var _this$parseTextForRef = this.parseTextForReferences(text);
  43470. var _this$parseTextForRef2 = _slicedToArray(_this$parseTextForRef, 2);
  43471. text = _this$parseTextForRef2[0];
  43472. references = _this$parseTextForRef2[1];
  43473. return {
  43474. 'from': `${this.get('jid')}/${this.get('nick')}`,
  43475. 'fullname': this.get('nick'),
  43476. 'is_spoiler': is_spoiler,
  43477. 'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
  43478. 'nick': this.get('nick'),
  43479. 'references': references,
  43480. 'sender': 'me',
  43481. 'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
  43482. 'type': 'groupchat'
  43483. };
  43484. },
  43485. getRoomJIDAndNick(nick) {
  43486. /* Utility method to construct the JID for the current user
  43487. * as occupant of the groupchat.
  43488. *
  43489. * This is the groupchat JID, with the user's nick added at the
  43490. * end.
  43491. *
  43492. * For example: groupchat@conference.example.org/nickname
  43493. */
  43494. if (nick) {
  43495. this.save({
  43496. 'nick': nick
  43497. });
  43498. } else {
  43499. nick = this.get('nick');
  43500. }
  43501. const groupchat = this.get('jid');
  43502. const jid = Strophe.getBareJidFromJid(groupchat);
  43503. return jid + (nick !== null ? `/${nick}` : "");
  43504. },
  43505. sendChatState() {
  43506. /* Sends a message with the status of the user in this chat session
  43507. * as taken from the 'chat_state' attribute of the chat box.
  43508. * See XEP-0085 Chat State Notifications.
  43509. */
  43510. if (this.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  43511. return;
  43512. }
  43513. const chat_state = this.get('chat_state');
  43514. if (chat_state === _converse.GONE) {
  43515. // <gone/> is not applicable within MUC context
  43516. return;
  43517. }
  43518. _converse.connection.send($msg({
  43519. 'to': this.get('jid'),
  43520. 'type': 'groupchat'
  43521. }).c(chat_state, {
  43522. 'xmlns': Strophe.NS.CHATSTATES
  43523. }).up().c('no-store', {
  43524. 'xmlns': Strophe.NS.HINTS
  43525. }).up().c('no-permanent-store', {
  43526. 'xmlns': Strophe.NS.HINTS
  43527. }));
  43528. },
  43529. directInvite(recipient, reason) {
  43530. /* Send a direct invitation as per XEP-0249
  43531. *
  43532. * Parameters:
  43533. * (String) recipient - JID of the person being invited
  43534. * (String) reason - Optional reason for the invitation
  43535. */
  43536. if (this.get('membersonly')) {
  43537. // When inviting to a members-only groupchat, we first add
  43538. // the person to the member list by giving them an
  43539. // affiliation of 'member' (if they're not affiliated
  43540. // already), otherwise they won't be able to join.
  43541. const map = {};
  43542. map[recipient] = 'member';
  43543. const deltaFunc = _.partial(u.computeAffiliationsDelta, true, false);
  43544. this.updateMemberLists([{
  43545. 'jid': recipient,
  43546. 'affiliation': 'member',
  43547. 'reason': reason
  43548. }], ['member', 'owner', 'admin'], deltaFunc);
  43549. }
  43550. const attrs = {
  43551. 'xmlns': 'jabber:x:conference',
  43552. 'jid': this.get('jid')
  43553. };
  43554. if (reason !== null) {
  43555. attrs.reason = reason;
  43556. }
  43557. if (this.get('password')) {
  43558. attrs.password = this.get('password');
  43559. }
  43560. const invitation = $msg({
  43561. from: _converse.connection.jid,
  43562. to: recipient,
  43563. id: _converse.connection.getUniqueId()
  43564. }).c('x', attrs);
  43565. _converse.connection.send(invitation);
  43566. _converse.emit('roomInviteSent', {
  43567. 'room': this,
  43568. 'recipient': recipient,
  43569. 'reason': reason
  43570. });
  43571. },
  43572. async refreshRoomFeatures() {
  43573. await _converse.api.disco.refreshFeatures(this.get('jid'));
  43574. return this.getRoomFeatures();
  43575. },
  43576. async getRoomFeatures() {
  43577. const features = await _converse.api.disco.getFeatures(this.get('jid')),
  43578. fields = await _converse.api.disco.getFields(this.get('jid')),
  43579. identity = await _converse.api.disco.getIdentity('conference', 'text', this.get('jid')),
  43580. attrs = {
  43581. 'features_fetched': moment().format(),
  43582. 'name': identity && identity.get('name')
  43583. };
  43584. features.each(feature => {
  43585. const fieldname = feature.get('var');
  43586. if (!fieldname.startsWith('muc_')) {
  43587. if (fieldname === Strophe.NS.MAM) {
  43588. attrs.mam_enabled = true;
  43589. }
  43590. return;
  43591. }
  43592. attrs[fieldname.replace('muc_', '')] = true;
  43593. });
  43594. attrs.description = _.get(fields.findWhere({
  43595. 'var': "muc#roominfo_description"
  43596. }), 'attributes.value');
  43597. this.save(attrs);
  43598. },
  43599. requestMemberList(affiliation) {
  43600. /* Send an IQ stanza to the server, asking it for the
  43601. * member-list of this groupchat.
  43602. *
  43603. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  43604. *
  43605. * Parameters:
  43606. * (String) affiliation: The specific member list to
  43607. * fetch. 'admin', 'owner' or 'member'.
  43608. *
  43609. * Returns:
  43610. * A promise which resolves once the list has been
  43611. * retrieved.
  43612. */
  43613. affiliation = affiliation || 'member';
  43614. const iq = $iq({
  43615. to: this.get('jid'),
  43616. type: "get"
  43617. }).c("query", {
  43618. xmlns: Strophe.NS.MUC_ADMIN
  43619. }).c("item", {
  43620. 'affiliation': affiliation
  43621. });
  43622. return _converse.api.sendIQ(iq);
  43623. },
  43624. setAffiliation(affiliation, members) {
  43625. /* Send IQ stanzas to the server to set an affiliation for
  43626. * the provided JIDs.
  43627. *
  43628. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  43629. *
  43630. * XXX: Prosody doesn't accept multiple JIDs' affiliations
  43631. * being set in one IQ stanza, so as a workaround we send
  43632. * a separate stanza for each JID.
  43633. * Related ticket: https://issues.prosody.im/345
  43634. *
  43635. * Parameters:
  43636. * (String) affiliation: The affiliation
  43637. * (Object) members: A map of jids, affiliations and
  43638. * optionally reasons. Only those entries with the
  43639. * same affiliation as being currently set will be
  43640. * considered.
  43641. *
  43642. * Returns:
  43643. * A promise which resolves and fails depending on the
  43644. * XMPP server response.
  43645. */
  43646. members = _.filter(members, member => // We only want those members who have the right
  43647. // affiliation (or none, which implies the provided one).
  43648. _.isUndefined(member.affiliation) || member.affiliation === affiliation);
  43649. const promises = _.map(members, _.bind(this.sendAffiliationIQ, this, affiliation));
  43650. return Promise.all(promises);
  43651. },
  43652. saveConfiguration(form) {
  43653. /* Submit the groupchat configuration form by sending an IQ
  43654. * stanza to the server.
  43655. *
  43656. * Returns a promise which resolves once the XMPP server
  43657. * has return a response IQ.
  43658. *
  43659. * Parameters:
  43660. * (HTMLElement) form: The configuration form DOM element.
  43661. * If no form is provided, the default configuration
  43662. * values will be used.
  43663. */
  43664. return new Promise((resolve, reject) => {
  43665. const inputs = form ? sizzle(':input:not([type=button]):not([type=submit])', form) : [],
  43666. configArray = _.map(inputs, u.webForm2xForm);
  43667. this.sendConfiguration(configArray, resolve, reject);
  43668. });
  43669. },
  43670. autoConfigureChatRoom() {
  43671. /* Automatically configure groupchat based on this model's
  43672. * 'roomconfig' data.
  43673. *
  43674. * Returns a promise which resolves once a response IQ has
  43675. * been received.
  43676. */
  43677. return new Promise((resolve, reject) => {
  43678. this.fetchRoomConfiguration().then(stanza => {
  43679. const configArray = [],
  43680. fields = stanza.querySelectorAll('field'),
  43681. config = this.get('roomconfig');
  43682. let count = fields.length;
  43683. _.each(fields, field => {
  43684. const fieldname = field.getAttribute('var').replace('muc#roomconfig_', ''),
  43685. type = field.getAttribute('type');
  43686. let value;
  43687. if (fieldname in config) {
  43688. switch (type) {
  43689. case 'boolean':
  43690. value = config[fieldname] ? 1 : 0;
  43691. break;
  43692. case 'list-multi':
  43693. // TODO: we don't yet handle "list-multi" types
  43694. value = field.innerHTML;
  43695. break;
  43696. default:
  43697. value = config[fieldname];
  43698. }
  43699. field.innerHTML = $build('value').t(value);
  43700. }
  43701. configArray.push(field);
  43702. if (! --count) {
  43703. this.sendConfiguration(configArray, resolve, reject);
  43704. }
  43705. });
  43706. });
  43707. });
  43708. },
  43709. fetchRoomConfiguration() {
  43710. /* Send an IQ stanza to fetch the groupchat configuration data.
  43711. * Returns a promise which resolves once the response IQ
  43712. * has been received.
  43713. */
  43714. return new Promise((resolve, reject) => {
  43715. _converse.connection.sendIQ($iq({
  43716. 'to': this.get('jid'),
  43717. 'type': "get"
  43718. }).c("query", {
  43719. xmlns: Strophe.NS.MUC_OWNER
  43720. }), resolve, reject);
  43721. });
  43722. },
  43723. sendConfiguration(config, callback, errback) {
  43724. /* Send an IQ stanza with the groupchat configuration.
  43725. *
  43726. * Parameters:
  43727. * (Array) config: The groupchat configuration
  43728. * (Function) callback: Callback upon succesful IQ response
  43729. * The first parameter passed in is IQ containing the
  43730. * groupchat configuration.
  43731. * The second is the response IQ from the server.
  43732. * (Function) errback: Callback upon error IQ response
  43733. * The first parameter passed in is IQ containing the
  43734. * groupchat configuration.
  43735. * The second is the response IQ from the server.
  43736. */
  43737. const iq = $iq({
  43738. to: this.get('jid'),
  43739. type: "set"
  43740. }).c("query", {
  43741. xmlns: Strophe.NS.MUC_OWNER
  43742. }).c("x", {
  43743. xmlns: Strophe.NS.XFORM,
  43744. type: "submit"
  43745. });
  43746. _.each(config || [], function (node) {
  43747. iq.cnode(node).up();
  43748. });
  43749. callback = _.isUndefined(callback) ? _.noop : _.partial(callback, iq.nodeTree);
  43750. errback = _.isUndefined(errback) ? _.noop : _.partial(errback, iq.nodeTree);
  43751. return _converse.connection.sendIQ(iq, callback, errback);
  43752. },
  43753. saveAffiliationAndRole(pres) {
  43754. /* Parse the presence stanza for the current user's
  43755. * affiliation.
  43756. *
  43757. * Parameters:
  43758. * (XMLElement) pres: A <presence> stanza.
  43759. */
  43760. const item = sizzle(`x[xmlns="${Strophe.NS.MUC_USER}"] item`, pres).pop();
  43761. const is_self = pres.querySelector("status[code='110']");
  43762. if (is_self && !_.isNil(item)) {
  43763. const affiliation = item.getAttribute('affiliation');
  43764. const role = item.getAttribute('role');
  43765. if (affiliation) {
  43766. this.save({
  43767. 'affiliation': affiliation
  43768. });
  43769. }
  43770. if (role) {
  43771. this.save({
  43772. 'role': role
  43773. });
  43774. }
  43775. }
  43776. },
  43777. sendAffiliationIQ(affiliation, member) {
  43778. /* Send an IQ stanza specifying an affiliation change.
  43779. *
  43780. * Paremeters:
  43781. * (String) affiliation: affiliation (could also be stored
  43782. * on the member object).
  43783. * (Object) member: Map containing the member's jid and
  43784. * optionally a reason and affiliation.
  43785. */
  43786. return new Promise((resolve, reject) => {
  43787. const iq = $iq({
  43788. to: this.get('jid'),
  43789. type: "set"
  43790. }).c("query", {
  43791. xmlns: Strophe.NS.MUC_ADMIN
  43792. }).c("item", {
  43793. 'affiliation': member.affiliation || affiliation,
  43794. 'nick': member.nick,
  43795. 'jid': member.jid
  43796. });
  43797. if (!_.isUndefined(member.reason)) {
  43798. iq.c("reason", member.reason);
  43799. }
  43800. _converse.connection.sendIQ(iq, resolve, reject);
  43801. });
  43802. },
  43803. setAffiliations(members) {
  43804. /* Send IQ stanzas to the server to modify the
  43805. * affiliations in this groupchat.
  43806. *
  43807. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  43808. *
  43809. * Parameters:
  43810. * (Object) members: A map of jids, affiliations and optionally reasons
  43811. * (Function) onSuccess: callback for a succesful response
  43812. * (Function) onError: callback for an error response
  43813. */
  43814. const affiliations = _.uniq(_.map(members, 'affiliation'));
  43815. return Promise.all(_.map(affiliations, _.partial(this.setAffiliation.bind(this), _, members)));
  43816. },
  43817. async getJidsWithAffiliations(affiliations) {
  43818. /* Returns a map of JIDs that have the affiliations
  43819. * as provided.
  43820. */
  43821. if (_.isString(affiliations)) {
  43822. affiliations = [affiliations];
  43823. }
  43824. const result = await Promise.all(affiliations.map(a => this.requestMemberList(a).then(iq => u.parseMemberListIQ(iq)).catch(iq => {
  43825. _converse.log(iq, Strophe.LogLevel.ERROR);
  43826. })));
  43827. return [].concat.apply([], result).filter(p => p);
  43828. },
  43829. updateMemberLists(members, affiliations, deltaFunc) {
  43830. /* Fetch the lists of users with the given affiliations.
  43831. * Then compute the delta between those users and
  43832. * the passed in members, and if it exists, send the delta
  43833. * to the XMPP server to update the member list.
  43834. *
  43835. * Parameters:
  43836. * (Object) members: Map of member jids and affiliations.
  43837. * (String|Array) affiliation: An array of affiliations or
  43838. * a string if only one affiliation.
  43839. * (Function) deltaFunc: The function to compute the delta
  43840. * between old and new member lists.
  43841. *
  43842. * Returns:
  43843. * A promise which is resolved once the list has been
  43844. * updated or once it's been established there's no need
  43845. * to update the list.
  43846. */
  43847. this.getJidsWithAffiliations(affiliations).then(old_members => this.setAffiliations(deltaFunc(members, old_members))).then(() => this.occupants.fetchMembers()).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  43848. },
  43849. getDefaultNick() {
  43850. /* The default nickname (used when muc_nickname_from_jid is true)
  43851. * is the node part of the user's JID.
  43852. * We put this in a separate method so that it can be
  43853. * overridden by plugins.
  43854. */
  43855. const nick = _converse.xmppstatus.vcard.get('nickname');
  43856. if (nick) {
  43857. return nick;
  43858. } else if (_converse.muc_nickname_from_jid) {
  43859. return Strophe.unescapeNode(Strophe.getNodeFromJid(_converse.bare_jid));
  43860. }
  43861. },
  43862. checkForReservedNick() {
  43863. /* Use service-discovery to ask the XMPP server whether
  43864. * this user has a reserved nickname for this groupchat.
  43865. * If so, we'll use that, otherwise we render the nickname form.
  43866. *
  43867. * Parameters:
  43868. * (Function) callback: Callback upon succesful IQ response
  43869. * (Function) errback: Callback upon error IQ response
  43870. */
  43871. return _converse.api.sendIQ($iq({
  43872. 'to': this.get('jid'),
  43873. 'from': _converse.connection.jid,
  43874. 'type': "get"
  43875. }).c("query", {
  43876. 'xmlns': Strophe.NS.DISCO_INFO,
  43877. 'node': 'x-roomuser-item'
  43878. })).then(iq => {
  43879. const identity_el = iq.querySelector('query[node="x-roomuser-item"] identity'),
  43880. nick = identity_el ? identity_el.getAttribute('name') : null;
  43881. this.save({
  43882. 'reserved_nick': nick,
  43883. 'nick': nick
  43884. }, {
  43885. 'silent': true
  43886. });
  43887. return iq;
  43888. });
  43889. },
  43890. async registerNickname() {
  43891. // See https://xmpp.org/extensions/xep-0045.html#register
  43892. const nick = this.get('nick'),
  43893. jid = this.get('jid');
  43894. let iq, err_msg;
  43895. try {
  43896. iq = await _converse.api.sendIQ($iq({
  43897. 'to': jid,
  43898. 'from': _converse.connection.jid,
  43899. 'type': 'get'
  43900. }).c('query', {
  43901. 'xmlns': Strophe.NS.MUC_REGISTER
  43902. }));
  43903. } catch (e) {
  43904. if (sizzle('not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  43905. err_msg = __("You're not allowed to register yourself in this groupchat.");
  43906. } else if (sizzle('registration-required[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  43907. err_msg = __("You're not allowed to register in this groupchat because it's members-only.");
  43908. }
  43909. _converse.log(e, Strophe.LogLevel.ERROR);
  43910. return err_msg;
  43911. }
  43912. const required_fields = sizzle('field required', iq).map(f => f.parentElement);
  43913. if (required_fields.length > 1 && required_fields[0].getAttribute('var') !== 'muc#register_roomnick') {
  43914. return _converse.log(`Can't register the user register in the groupchat ${jid} due to the required fields`);
  43915. }
  43916. try {
  43917. await _converse.api.sendIQ($iq({
  43918. 'to': jid,
  43919. 'from': _converse.connection.jid,
  43920. 'type': 'set'
  43921. }).c('query', {
  43922. 'xmlns': Strophe.NS.MUC_REGISTER
  43923. }).c('x', {
  43924. 'xmlns': Strophe.NS.XFORM,
  43925. 'type': 'submit'
  43926. }).c('field', {
  43927. 'var': 'FORM_TYPE'
  43928. }).c('value').t('http://jabber.org/protocol/muc#register').up().up().c('field', {
  43929. 'var': 'muc#register_roomnick'
  43930. }).c('value').t(nick));
  43931. } catch (e) {
  43932. if (sizzle('service-unavailable[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  43933. err_msg = __("Can't register your nickname in this groupchat, it doesn't support registration.");
  43934. } else if (sizzle('bad-request[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', e).length) {
  43935. err_msg = __("Can't register your nickname in this groupchat, invalid data form supplied.");
  43936. }
  43937. _converse.log(err_msg);
  43938. _converse.log(e, Strophe.LogLevel.ERROR);
  43939. return err_msg;
  43940. }
  43941. },
  43942. updateOccupantsOnPresence(pres) {
  43943. /* Given a presence stanza, update the occupant model
  43944. * based on its contents.
  43945. *
  43946. * Parameters:
  43947. * (XMLElement) pres: The presence stanza
  43948. */
  43949. const data = this.parsePresence(pres);
  43950. if (data.type === 'error' || !data.jid && !data.nick) {
  43951. return true;
  43952. }
  43953. const occupant = this.occupants.findOccupant(data);
  43954. if (data.type === 'unavailable' && occupant) {
  43955. if (!_.includes(data.states, converse.MUC_NICK_CHANGED_CODE) && !occupant.isMember()) {
  43956. // We only destroy the occupant if this is not a nickname change operation.
  43957. // and if they're not on the member lists.
  43958. // Before destroying we set the new data, so
  43959. // that we can show the disconnection message.
  43960. occupant.set(data);
  43961. occupant.destroy();
  43962. return;
  43963. }
  43964. }
  43965. const jid = Strophe.getBareJidFromJid(data.jid);
  43966. const attributes = _.extend(data, {
  43967. 'jid': jid ? jid : undefined,
  43968. 'resource': data.jid ? Strophe.getResourceFromJid(data.jid) : undefined
  43969. });
  43970. if (occupant) {
  43971. occupant.save(attributes);
  43972. } else {
  43973. this.occupants.create(attributes);
  43974. }
  43975. },
  43976. parsePresence(pres) {
  43977. const from = pres.getAttribute("from"),
  43978. type = pres.getAttribute("type"),
  43979. data = {
  43980. 'from': from,
  43981. 'nick': Strophe.getResourceFromJid(from),
  43982. 'type': type,
  43983. 'states': [],
  43984. 'show': type !== 'unavailable' ? 'online' : 'offline'
  43985. };
  43986. _.each(pres.childNodes, function (child) {
  43987. switch (child.nodeName) {
  43988. case "status":
  43989. data.status = child.textContent || null;
  43990. break;
  43991. case "show":
  43992. data.show = child.textContent || 'online';
  43993. break;
  43994. case "x":
  43995. if (child.getAttribute("xmlns") === Strophe.NS.MUC_USER) {
  43996. _.each(child.childNodes, function (item) {
  43997. switch (item.nodeName) {
  43998. case "item":
  43999. data.affiliation = item.getAttribute("affiliation");
  44000. data.role = item.getAttribute("role");
  44001. data.jid = item.getAttribute("jid");
  44002. data.nick = item.getAttribute("nick") || data.nick;
  44003. break;
  44004. case "status":
  44005. if (item.getAttribute("code")) {
  44006. data.states.push(item.getAttribute("code"));
  44007. }
  44008. }
  44009. });
  44010. } else if (child.getAttribute("xmlns") === Strophe.NS.VCARDUPDATE) {
  44011. data.image_hash = _.get(child.querySelector('photo'), 'textContent');
  44012. }
  44013. }
  44014. });
  44015. return data;
  44016. },
  44017. isDuplicate(message, original_stanza) {
  44018. const msgid = message.getAttribute('id'),
  44019. jid = message.getAttribute('from');
  44020. if (msgid) {
  44021. return this.messages.where({
  44022. 'msgid': msgid,
  44023. 'from': jid
  44024. }).length;
  44025. }
  44026. return false;
  44027. },
  44028. fetchFeaturesIfConfigurationChanged(stanza) {
  44029. const configuration_changed = stanza.querySelector("status[code='104']"),
  44030. logging_enabled = stanza.querySelector("status[code='170']"),
  44031. logging_disabled = stanza.querySelector("status[code='171']"),
  44032. room_no_longer_anon = stanza.querySelector("status[code='172']"),
  44033. room_now_semi_anon = stanza.querySelector("status[code='173']"),
  44034. room_now_fully_anon = stanza.querySelector("status[code='173']");
  44035. if (configuration_changed || logging_enabled || logging_disabled || room_no_longer_anon || room_now_semi_anon || room_now_fully_anon) {
  44036. this.refreshRoomFeatures();
  44037. }
  44038. },
  44039. onMessage(stanza) {
  44040. /* Handler for all MUC messages sent to this groupchat.
  44041. *
  44042. * Parameters:
  44043. * (XMLElement) stanza: The message stanza.
  44044. */
  44045. this.fetchFeaturesIfConfigurationChanged(stanza);
  44046. const original_stanza = stanza,
  44047. forwarded = stanza.querySelector('forwarded');
  44048. if (!_.isNull(forwarded)) {
  44049. stanza = forwarded.querySelector('message');
  44050. }
  44051. if (this.isDuplicate(stanza, original_stanza)) {
  44052. return;
  44053. }
  44054. const jid = stanza.getAttribute('from'),
  44055. resource = Strophe.getResourceFromJid(jid),
  44056. sender = resource && Strophe.unescapeNode(resource) || '';
  44057. if (!this.handleMessageCorrection(stanza)) {
  44058. if (sender === '') {
  44059. return;
  44060. }
  44061. const subject_el = stanza.querySelector('subject');
  44062. if (subject_el) {
  44063. const subject = _.propertyOf(subject_el)('textContent') || '';
  44064. u.safeSave(this, {
  44065. 'subject': {
  44066. 'author': sender,
  44067. 'text': subject
  44068. }
  44069. });
  44070. }
  44071. this.createMessage(stanza, original_stanza).then(msg => this.incrementUnreadMsgCounter(msg)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  44072. }
  44073. if (sender !== this.get('nick')) {
  44074. // We only emit an event if it's not our own message
  44075. _converse.emit('message', {
  44076. 'stanza': original_stanza,
  44077. 'chatbox': this
  44078. });
  44079. }
  44080. },
  44081. onPresence(pres) {
  44082. /* Handles all MUC presence stanzas.
  44083. *
  44084. * Parameters:
  44085. * (XMLElement) pres: The stanza
  44086. */
  44087. if (pres.getAttribute('type') === 'error') {
  44088. this.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  44089. return;
  44090. }
  44091. const is_self = pres.querySelector("status[code='110']");
  44092. if (is_self && pres.getAttribute('type') !== 'unavailable') {
  44093. this.onOwnPresence(pres);
  44094. }
  44095. this.updateOccupantsOnPresence(pres);
  44096. if (this.get('role') !== 'none' && this.get('connection_status') === converse.ROOMSTATUS.CONNECTING) {
  44097. this.save('connection_status', converse.ROOMSTATUS.CONNECTED);
  44098. }
  44099. },
  44100. onOwnPresence(pres) {
  44101. /* Handles a received presence relating to the current
  44102. * user.
  44103. *
  44104. * For locked groupchats (which are by definition "new"), the
  44105. * groupchat will either be auto-configured or created instantly
  44106. * (with default config) or a configuration groupchat will be
  44107. * rendered.
  44108. *
  44109. * If the groupchat is not locked, then the groupchat will be
  44110. * auto-configured only if applicable and if the current
  44111. * user is the groupchat's owner.
  44112. *
  44113. * Parameters:
  44114. * (XMLElement) pres: The stanza
  44115. */
  44116. this.saveAffiliationAndRole(pres);
  44117. const locked_room = pres.querySelector("status[code='201']");
  44118. if (locked_room) {
  44119. if (this.get('auto_configure')) {
  44120. this.autoConfigureChatRoom().then(() => this.refreshRoomFeatures());
  44121. } else if (_converse.muc_instant_rooms) {
  44122. // Accept default configuration
  44123. this.saveConfiguration().then(() => this.getRoomFeatures());
  44124. } else {
  44125. this.trigger('configurationNeeded');
  44126. return; // We haven't yet entered the groupchat, so bail here.
  44127. }
  44128. } else if (!this.get('features_fetched')) {
  44129. // The features for this groupchat weren't fetched.
  44130. // That must mean it's a new groupchat without locking
  44131. // (in which case Prosody doesn't send a 201 status),
  44132. // otherwise the features would have been fetched in
  44133. // the "initialize" method already.
  44134. if (this.get('affiliation') === 'owner' && this.get('auto_configure')) {
  44135. this.autoConfigureChatRoom().then(() => this.refreshRoomFeatures());
  44136. } else {
  44137. this.getRoomFeatures();
  44138. }
  44139. }
  44140. this.save('connection_status', converse.ROOMSTATUS.ENTERED);
  44141. },
  44142. isUserMentioned(message) {
  44143. /* Returns a boolean to indicate whether the current user
  44144. * was mentioned in a message.
  44145. *
  44146. * Parameters:
  44147. * (String): The text message
  44148. */
  44149. const nick = this.get('nick');
  44150. if (message.get('references').length) {
  44151. const mentions = message.get('references').filter(ref => ref.type === 'mention').map(ref => ref.value);
  44152. return _.includes(mentions, nick);
  44153. } else {
  44154. return new RegExp(`\\b${nick}\\b`).test(message.get('message'));
  44155. }
  44156. },
  44157. incrementUnreadMsgCounter(message) {
  44158. /* Given a newly received message, update the unread counter if
  44159. * necessary.
  44160. *
  44161. * Parameters:
  44162. * (XMLElement): The <messsage> stanza
  44163. */
  44164. if (!message) {
  44165. return;
  44166. }
  44167. const body = message.get('message');
  44168. if (_.isNil(body)) {
  44169. return;
  44170. }
  44171. if (u.isNewMessage(message) && this.isHidden()) {
  44172. const settings = {
  44173. 'num_unread_general': this.get('num_unread_general') + 1
  44174. };
  44175. if (this.isUserMentioned(message)) {
  44176. settings.num_unread = this.get('num_unread') + 1;
  44177. _converse.incrementMsgCounter();
  44178. }
  44179. this.save(settings);
  44180. }
  44181. },
  44182. clearUnreadMsgCounter() {
  44183. u.safeSave(this, {
  44184. 'num_unread': 0,
  44185. 'num_unread_general': 0
  44186. });
  44187. }
  44188. });
  44189. _converse.ChatRoomOccupant = Backbone.Model.extend({
  44190. defaults: {
  44191. 'show': 'offline'
  44192. },
  44193. initialize(attributes) {
  44194. this.set(_.extend({
  44195. 'id': _converse.connection.getUniqueId()
  44196. }, attributes));
  44197. this.on('change:image_hash', this.onAvatarChanged, this);
  44198. },
  44199. onAvatarChanged() {
  44200. const hash = this.get('image_hash');
  44201. const vcards = [];
  44202. if (this.get('jid')) {
  44203. vcards.push(_converse.vcards.findWhere({
  44204. 'jid': this.get('jid')
  44205. }));
  44206. }
  44207. vcards.push(_converse.vcards.findWhere({
  44208. 'jid': this.get('from')
  44209. }));
  44210. _.forEach(_.filter(vcards, undefined), vcard => {
  44211. if (hash && vcard.get('image_hash') !== hash) {
  44212. _converse.api.vcard.update(vcard);
  44213. }
  44214. });
  44215. },
  44216. getDisplayName() {
  44217. return this.get('nick') || this.get('jid');
  44218. },
  44219. isMember() {
  44220. return _.includes(['admin', 'owner', 'member'], this.get('affiliation'));
  44221. }
  44222. });
  44223. _converse.ChatRoomOccupants = Backbone.Collection.extend({
  44224. model: _converse.ChatRoomOccupant,
  44225. comparator(occupant1, occupant2) {
  44226. const role1 = occupant1.get('role') || 'none';
  44227. const role2 = occupant2.get('role') || 'none';
  44228. if (MUC_ROLE_WEIGHTS[role1] === MUC_ROLE_WEIGHTS[role2]) {
  44229. const nick1 = occupant1.getDisplayName().toLowerCase();
  44230. const nick2 = occupant2.getDisplayName().toLowerCase();
  44231. return nick1 < nick2 ? -1 : nick1 > nick2 ? 1 : 0;
  44232. } else {
  44233. return MUC_ROLE_WEIGHTS[role1] < MUC_ROLE_WEIGHTS[role2] ? -1 : 1;
  44234. }
  44235. },
  44236. fetchMembers() {
  44237. this.chatroom.getJidsWithAffiliations(['member', 'owner', 'admin']).then(new_members => {
  44238. const new_jids = new_members.map(m => m.jid).filter(m => !_.isUndefined(m)),
  44239. new_nicks = new_members.map(m => !m.jid && m.nick || undefined).filter(m => !_.isUndefined(m)),
  44240. removed_members = this.filter(m => {
  44241. return f.includes(m.get('affiliation'), ['admin', 'member', 'owner']) && !f.includes(m.get('nick'), new_nicks) && !f.includes(m.get('jid'), new_jids);
  44242. });
  44243. _.each(removed_members, occupant => {
  44244. if (occupant.get('jid') === _converse.bare_jid) {
  44245. return;
  44246. }
  44247. if (occupant.get('show') === 'offline') {
  44248. occupant.destroy();
  44249. }
  44250. });
  44251. _.each(new_members, attrs => {
  44252. let occupant;
  44253. if (attrs.jid) {
  44254. occupant = this.findOccupant({
  44255. 'jid': attrs.jid
  44256. });
  44257. } else {
  44258. occupant = this.findOccupant({
  44259. 'nick': attrs.nick
  44260. });
  44261. }
  44262. if (occupant) {
  44263. occupant.save(attrs);
  44264. } else {
  44265. this.create(attrs);
  44266. }
  44267. });
  44268. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  44269. },
  44270. findOccupant(data) {
  44271. /* Try to find an existing occupant based on the passed in
  44272. * data object.
  44273. *
  44274. * If we have a JID, we use that as lookup variable,
  44275. * otherwise we use the nick. We don't always have both,
  44276. * but should have at least one or the other.
  44277. */
  44278. const jid = Strophe.getBareJidFromJid(data.jid);
  44279. if (jid !== null) {
  44280. return this.where({
  44281. 'jid': jid
  44282. }).pop();
  44283. } else {
  44284. return this.where({
  44285. 'nick': data.nick
  44286. }).pop();
  44287. }
  44288. }
  44289. });
  44290. _converse.RoomsPanelModel = Backbone.Model.extend({
  44291. defaults: {
  44292. 'muc_domain': ''
  44293. }
  44294. });
  44295. _converse.onDirectMUCInvitation = function (message) {
  44296. /* A direct MUC invitation to join a groupchat has been received
  44297. * See XEP-0249: Direct MUC invitations.
  44298. *
  44299. * Parameters:
  44300. * (XMLElement) message: The message stanza containing the
  44301. * invitation.
  44302. */
  44303. const x_el = sizzle('x[xmlns="jabber:x:conference"]', message).pop(),
  44304. from = Strophe.getBareJidFromJid(message.getAttribute('from')),
  44305. room_jid = x_el.getAttribute('jid'),
  44306. reason = x_el.getAttribute('reason');
  44307. let contact = _converse.roster.get(from),
  44308. result;
  44309. if (_converse.auto_join_on_invite) {
  44310. result = true;
  44311. } else {
  44312. // Invite request might come from someone not your roster list
  44313. contact = contact ? contact.get('fullname') : Strophe.getNodeFromJid(from);
  44314. if (!reason) {
  44315. result = confirm(__("%1$s has invited you to join a groupchat: %2$s", contact, room_jid));
  44316. } else {
  44317. result = confirm(__('%1$s has invited you to join a groupchat: %2$s, and left the following reason: "%3$s"', contact, room_jid, reason));
  44318. }
  44319. }
  44320. if (result === true) {
  44321. const chatroom = _converse.openChatRoom(room_jid, {
  44322. 'password': x_el.getAttribute('password')
  44323. });
  44324. if (chatroom.get('connection_status') === converse.ROOMSTATUS.DISCONNECTED) {
  44325. _converse.chatboxviews.get(room_jid).join();
  44326. }
  44327. }
  44328. };
  44329. if (_converse.allow_muc_invitations) {
  44330. const registerDirectInvitationHandler = function registerDirectInvitationHandler() {
  44331. _converse.connection.addHandler(message => {
  44332. _converse.onDirectMUCInvitation(message);
  44333. return true;
  44334. }, 'jabber:x:conference', 'message');
  44335. };
  44336. _converse.on('connected', registerDirectInvitationHandler);
  44337. _converse.on('reconnected', registerDirectInvitationHandler);
  44338. }
  44339. const getChatRoom = function getChatRoom(jid, attrs, create) {
  44340. jid = jid.toLowerCase();
  44341. attrs.type = _converse.CHATROOMS_TYPE;
  44342. attrs.id = jid;
  44343. attrs.box_id = b64_sha1(jid);
  44344. return _converse.chatboxes.getChatBox(jid, attrs, create);
  44345. };
  44346. const createChatRoom = function createChatRoom(jid, attrs) {
  44347. if (jid.startsWith('xmpp:') && jid.endsWith('?join')) {
  44348. jid = jid.replace(/^xmpp:/, '').replace(/\?join$/, '');
  44349. }
  44350. return getChatRoom(jid, attrs, true);
  44351. };
  44352. function autoJoinRooms() {
  44353. /* Automatically join groupchats, based on the
  44354. * "auto_join_rooms" configuration setting, which is an array
  44355. * of strings (groupchat JIDs) or objects (with groupchat JID and other
  44356. * settings).
  44357. */
  44358. _.each(_converse.auto_join_rooms, function (groupchat) {
  44359. if (_converse.chatboxes.where({
  44360. 'jid': groupchat
  44361. }).length) {
  44362. return;
  44363. }
  44364. if (_.isString(groupchat)) {
  44365. _converse.api.rooms.open(groupchat);
  44366. } else if (_.isObject(groupchat)) {
  44367. _converse.api.rooms.open(groupchat.jid, groupchat.nick);
  44368. } else {
  44369. _converse.log('Invalid groupchat criteria specified for "auto_join_rooms"', Strophe.LogLevel.ERROR);
  44370. }
  44371. });
  44372. _converse.emit('roomsAutoJoined');
  44373. }
  44374. function disconnectChatRooms() {
  44375. /* When disconnecting, mark all groupchats as
  44376. * disconnected, so that they will be properly entered again
  44377. * when fetched from session storage.
  44378. */
  44379. _converse.chatboxes.each(function (model) {
  44380. if (model.get('type') === _converse.CHATROOMS_TYPE) {
  44381. model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  44382. }
  44383. });
  44384. }
  44385. function fetchRegistrationForm(room_jid, user_jid) {
  44386. _converse.api.sendIQ($iq({
  44387. 'from': user_jid,
  44388. 'to': room_jid,
  44389. 'type': 'get'
  44390. }).c('query', {
  44391. 'xmlns': Strophe.NS.REGISTER
  44392. })).then(iq => {}).catch(iq => {
  44393. if (sizzle('item-not-found[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]', iq).length) {
  44394. this.feedback.set('error', __(`Error: the groupchat ${this.model.getDisplayName()} does not exist.`));
  44395. } else if (sizzle('not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]').length) {
  44396. this.feedback.set('error', __(`Sorry, you're not allowed to register in this groupchat`));
  44397. }
  44398. });
  44399. }
  44400. /************************ BEGIN Event Handlers ************************/
  44401. _converse.on('addClientFeatures', () => {
  44402. if (_converse.allow_muc) {
  44403. _converse.api.disco.own.features.add(Strophe.NS.MUC);
  44404. }
  44405. if (_converse.allow_muc_invitations) {
  44406. _converse.api.disco.own.features.add('jabber:x:conference'); // Invites
  44407. }
  44408. });
  44409. _converse.api.listen.on('chatBoxesFetched', autoJoinRooms);
  44410. _converse.api.listen.on('disconnecting', disconnectChatRooms);
  44411. _converse.api.listen.on('statusInitialized', () => {
  44412. // XXX: For websocket connections, we disconnect from all
  44413. // chatrooms when the page reloads. This is a workaround for
  44414. // issue #1111 and should be removed once we support XEP-0198
  44415. const options = {
  44416. 'once': true,
  44417. 'passive': true
  44418. };
  44419. window.addEventListener(_converse.unloadevent, () => {
  44420. if (_converse.connection._proto instanceof Strophe.Websocket) {
  44421. disconnectChatRooms();
  44422. }
  44423. });
  44424. });
  44425. /************************ END Event Handlers ************************/
  44426. /************************ BEGIN API ************************/
  44427. // We extend the default converse.js API to add methods specific to MUC groupchats.
  44428. _.extend(_converse.api, {
  44429. /**
  44430. * The "rooms" namespace groups methods relevant to chatrooms
  44431. * (aka groupchats).
  44432. *
  44433. * @namespace _converse.api.rooms
  44434. * @memberOf _converse.api
  44435. */
  44436. 'rooms': {
  44437. /**
  44438. * Creates a new MUC chatroom (aka groupchat)
  44439. *
  44440. * Similar to {@link _converse.api.rooms.open}, but creates
  44441. * the chatroom in the background (i.e. doesn't cause a
  44442. * view to open).
  44443. *
  44444. * @method _converse.api.rooms.create
  44445. * @param {(string[]|string)} jid|jids The JID or array of
  44446. * JIDs of the chatroom(s) to create
  44447. * @param {object} [attrs] attrs The room attributes
  44448. */
  44449. 'create'(jids, attrs) {
  44450. if (_.isString(attrs)) {
  44451. attrs = {
  44452. 'nick': attrs
  44453. };
  44454. } else if (_.isUndefined(attrs)) {
  44455. attrs = {};
  44456. }
  44457. if (_.isUndefined(attrs.maximize)) {
  44458. attrs.maximize = false;
  44459. }
  44460. if (!attrs.nick && _converse.muc_nickname_from_jid) {
  44461. attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
  44462. }
  44463. if (_.isUndefined(jids)) {
  44464. throw new TypeError('rooms.create: You need to provide at least one JID');
  44465. } else if (_.isString(jids)) {
  44466. return createChatRoom(jids, attrs);
  44467. }
  44468. return _.map(jids, _.partial(createChatRoom, _, attrs));
  44469. },
  44470. /**
  44471. * Opens a MUC chatroom (aka groupchat)
  44472. *
  44473. * Similar to {@link _converse.api.chats.open}, but for groupchats.
  44474. *
  44475. * @method _converse.api.rooms.open
  44476. * @param {string} jid The room JID or JIDs (if not specified, all
  44477. * currently open rooms will be returned).
  44478. * @param {string} attrs A map containing any extra room attributes.
  44479. * @param {string} [attrs.nick] The current user's nickname for the MUC
  44480. * @param {boolean} [attrs.auto_configure] A boolean, indicating
  44481. * whether the room should be configured automatically or not.
  44482. * If set to `true`, then it makes sense to pass in configuration settings.
  44483. * @param {object} [attrs.roomconfig] A map of configuration settings to be used when the room gets
  44484. * configured automatically. Currently it doesn't make sense to specify
  44485. * `roomconfig` values if `auto_configure` is set to `false`.
  44486. * For a list of configuration values that can be passed in, refer to these values
  44487. * in the [XEP-0045 MUC specification](http://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
  44488. * The values should be named without the `muc#roomconfig_` prefix.
  44489. * @param {boolean} [attrs.maximize] A boolean, indicating whether minimized rooms should also be
  44490. * maximized, when opened. Set to `false` by default.
  44491. * @param {boolean} [attrs.bring_to_foreground] A boolean indicating whether the room should be
  44492. * brought to the foreground and therefore replace the currently shown chat.
  44493. * If there is no chat currently open, then this option is ineffective.
  44494. *
  44495. * @example
  44496. * this._converse.api.rooms.open('group@muc.example.com')
  44497. *
  44498. * @example
  44499. * // To return an array of rooms, provide an array of room JIDs:
  44500. * _converse.api.rooms.open(['group1@muc.example.com', 'group2@muc.example.com'])
  44501. *
  44502. * @example
  44503. * // To setup a custom nickname when joining the room, provide the optional nick argument:
  44504. * _converse.api.rooms.open('group@muc.example.com', {'nick': 'mycustomnick'})
  44505. *
  44506. * @example
  44507. * // For example, opening a room with a specific default configuration:
  44508. * _converse.api.rooms.open(
  44509. * 'myroom@conference.example.org',
  44510. * { 'nick': 'coolguy69',
  44511. * 'auto_configure': true,
  44512. * 'roomconfig': {
  44513. * 'changesubject': false,
  44514. * 'membersonly': true,
  44515. * 'persistentroom': true,
  44516. * 'publicroom': true,
  44517. * 'roomdesc': 'Comfy room for hanging out',
  44518. * 'whois': 'anyone'
  44519. * }
  44520. * },
  44521. * true
  44522. * );
  44523. */
  44524. 'open'(jids, attrs) {
  44525. return new Promise((resolve, reject) => {
  44526. _converse.api.waitUntil('chatBoxesFetched').then(() => {
  44527. if (_.isUndefined(jids)) {
  44528. const err_msg = 'rooms.open: You need to provide at least one JID';
  44529. _converse.log(err_msg, Strophe.LogLevel.ERROR);
  44530. reject(new TypeError(err_msg));
  44531. } else if (_.isString(jids)) {
  44532. resolve(_converse.api.rooms.create(jids, attrs).trigger('show'));
  44533. } else {
  44534. resolve(_.map(jids, jid => _converse.api.rooms.create(jid, attrs).trigger('show')));
  44535. }
  44536. });
  44537. });
  44538. },
  44539. /**
  44540. * Returns an object representing a MUC chatroom (aka groupchat)
  44541. *
  44542. * @method _converse.api.rooms.get
  44543. * @param {string} [jid] The room JID (if not specified, all rooms will be returned).
  44544. * @param {object} attrs A map containing any extra room attributes For example, if you want
  44545. * to specify the nickname, use `{'nick': 'bloodninja'}`. Previously (before
  44546. * version 1.0.7, the second parameter only accepted the nickname (as a string
  44547. * value). This is currently still accepted, but then you can't pass in any
  44548. * other room attributes. If the nickname is not specified then the node part of
  44549. * the user's JID will be used.
  44550. * @param {boolean} create A boolean indicating whether the room should be created
  44551. * if not found (default: `false`)
  44552. * @example
  44553. * _converse.api.waitUntil('roomsAutoJoined').then(() => {
  44554. * const create_if_not_found = true;
  44555. * _converse.api.rooms.get(
  44556. * 'group@muc.example.com',
  44557. * {'nick': 'dread-pirate-roberts'},
  44558. * create_if_not_found
  44559. * )
  44560. * });
  44561. */
  44562. 'get'(jids, attrs, create) {
  44563. if (_.isString(attrs)) {
  44564. attrs = {
  44565. 'nick': attrs
  44566. };
  44567. } else if (_.isUndefined(attrs)) {
  44568. attrs = {};
  44569. }
  44570. if (_.isUndefined(jids)) {
  44571. const result = [];
  44572. _converse.chatboxes.each(function (chatbox) {
  44573. if (chatbox.get('type') === _converse.CHATROOMS_TYPE) {
  44574. result.push(chatbox);
  44575. }
  44576. });
  44577. return result;
  44578. }
  44579. if (!attrs.nick) {
  44580. attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
  44581. }
  44582. if (_.isString(jids)) {
  44583. return getChatRoom(jids, attrs);
  44584. }
  44585. return _.map(jids, _.partial(getChatRoom, _, attrs));
  44586. }
  44587. }
  44588. });
  44589. /************************ END API ************************/
  44590. }
  44591. });
  44592. });
  44593. /***/ }),
  44594. /***/ "./src/converse-notification.js":
  44595. /*!**************************************!*\
  44596. !*** ./src/converse-notification.js ***!
  44597. \**************************************/
  44598. /*! no static exports found */
  44599. /***/ (function(module, exports, __webpack_require__) {
  44600. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  44601. // http://conversejs.org
  44602. //
  44603. // Copyright (c) 2013-2018, JC Brand <jc@opkode.com>
  44604. // Licensed under the Mozilla Public License (MPLv2)
  44605. //
  44606. /*global define */
  44607. (function (root, factory) {
  44608. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  44609. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  44610. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  44611. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44612. })(this, function (converse) {
  44613. "use strict";
  44614. const _converse$env = converse.env,
  44615. Strophe = _converse$env.Strophe,
  44616. _ = _converse$env._,
  44617. sizzle = _converse$env.sizzle,
  44618. u = converse.env.utils;
  44619. converse.plugins.add('converse-notification', {
  44620. dependencies: ["converse-chatboxes"],
  44621. initialize() {
  44622. /* The initialize function gets called as soon as the plugin is
  44623. * loaded by converse.js's plugin machinery.
  44624. */
  44625. const _converse = this._converse;
  44626. const __ = _converse.__;
  44627. _converse.supports_html5_notification = "Notification" in window;
  44628. _converse.api.settings.update({
  44629. notify_all_room_messages: false,
  44630. show_desktop_notifications: true,
  44631. show_chatstate_notifications: false,
  44632. chatstate_notification_blacklist: [],
  44633. // ^ a list of JIDs to ignore concerning chat state notifications
  44634. play_sounds: true,
  44635. sounds_path: '/sounds/',
  44636. notification_icon: '/logo/conversejs-filled.svg'
  44637. });
  44638. _converse.isOnlyChatStateNotification = msg => // See XEP-0085 Chat State Notification
  44639. _.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)));
  44640. _converse.shouldNotifyOfGroupMessage = function (message) {
  44641. /* Is this a group message worthy of notification?
  44642. */
  44643. let notify_all = _converse.notify_all_room_messages;
  44644. const jid = message.getAttribute('from'),
  44645. resource = Strophe.getResourceFromJid(jid),
  44646. room_jid = Strophe.getBareJidFromJid(jid),
  44647. sender = resource && Strophe.unescapeNode(resource) || '';
  44648. if (sender === '' || message.querySelectorAll('delay').length > 0) {
  44649. return false;
  44650. }
  44651. const room = _converse.chatboxes.get(room_jid);
  44652. const body = message.querySelector('body');
  44653. if (_.isNull(body)) {
  44654. return false;
  44655. }
  44656. const mentioned = new RegExp(`\\b${room.get('nick')}\\b`).test(body.textContent);
  44657. notify_all = notify_all === true || _.isArray(notify_all) && _.includes(notify_all, room_jid);
  44658. if (sender === room.get('nick') || !notify_all && !mentioned) {
  44659. return false;
  44660. }
  44661. return true;
  44662. };
  44663. _converse.isMessageToHiddenChat = function (message) {
  44664. if (_.includes(['mobile', 'fullscreen', 'embedded'], _converse.view_mode)) {
  44665. const jid = Strophe.getBareJidFromJid(message.getAttribute('from')),
  44666. view = _converse.chatboxviews.get(jid);
  44667. if (!_.isNil(view)) {
  44668. return view.model.get('hidden') || _converse.windowState === 'hidden' || !u.isVisible(view.el);
  44669. }
  44670. return true;
  44671. }
  44672. return _converse.windowState === 'hidden';
  44673. };
  44674. _converse.shouldNotifyOfMessage = function (message) {
  44675. const forwarded = message.querySelector('forwarded');
  44676. if (!_.isNull(forwarded)) {
  44677. return false;
  44678. } else if (message.getAttribute('type') === 'groupchat') {
  44679. return _converse.shouldNotifyOfGroupMessage(message);
  44680. } else if (u.isHeadlineMessage(_converse, message)) {
  44681. // We want to show notifications for headline messages.
  44682. return _converse.isMessageToHiddenChat(message);
  44683. }
  44684. const is_me = Strophe.getBareJidFromJid(message.getAttribute('from')) === _converse.bare_jid;
  44685. return !_converse.isOnlyChatStateNotification(message) && !is_me && _converse.isMessageToHiddenChat(message);
  44686. };
  44687. _converse.playSoundNotification = function () {
  44688. /* Plays a sound to notify that a new message was recieved.
  44689. */
  44690. // XXX Eventually this can be refactored to use Notification's sound
  44691. // feature, but no browser currently supports it.
  44692. // https://developer.mozilla.org/en-US/docs/Web/API/notification/sound
  44693. let audio;
  44694. if (_converse.play_sounds && !_.isUndefined(window.Audio)) {
  44695. audio = new Audio(_converse.sounds_path + "msg_received.ogg");
  44696. if (audio.canPlayType('audio/ogg')) {
  44697. audio.play();
  44698. } else {
  44699. audio = new Audio(_converse.sounds_path + "msg_received.mp3");
  44700. if (audio.canPlayType('audio/mp3')) {
  44701. audio.play();
  44702. }
  44703. }
  44704. }
  44705. };
  44706. _converse.areDesktopNotificationsEnabled = function () {
  44707. return _converse.supports_html5_notification && _converse.show_desktop_notifications && Notification.permission === "granted";
  44708. };
  44709. _converse.showMessageNotification = function (message) {
  44710. /* Shows an HTML5 Notification to indicate that a new chat
  44711. * message was received.
  44712. */
  44713. let title, roster_item;
  44714. const full_from_jid = message.getAttribute('from'),
  44715. from_jid = Strophe.getBareJidFromJid(full_from_jid);
  44716. if (message.getAttribute('type') === 'headline') {
  44717. if (!_.includes(from_jid, '@') || _converse.allow_non_roster_messaging) {
  44718. title = __("Notification from %1$s", from_jid);
  44719. } else {
  44720. return;
  44721. }
  44722. } else if (!_.includes(from_jid, '@')) {
  44723. // workaround for Prosody which doesn't give type "headline"
  44724. title = __("Notification from %1$s", from_jid);
  44725. } else if (message.getAttribute('type') === 'groupchat') {
  44726. title = __("%1$s says", Strophe.getResourceFromJid(full_from_jid));
  44727. } else {
  44728. if (_.isUndefined(_converse.roster)) {
  44729. _converse.log("Could not send notification, because roster is undefined", Strophe.LogLevel.ERROR);
  44730. return;
  44731. }
  44732. roster_item = _converse.roster.get(from_jid);
  44733. if (!_.isUndefined(roster_item)) {
  44734. title = __("%1$s says", roster_item.getDisplayName());
  44735. } else {
  44736. if (_converse.allow_non_roster_messaging) {
  44737. title = __("%1$s says", from_jid);
  44738. } else {
  44739. return;
  44740. }
  44741. }
  44742. } // TODO: we should suppress notifications if we cannot decrypt
  44743. // the message...
  44744. const body = sizzle(`encrypted[xmlns="${Strophe.NS.OMEMO}"]`, message).length ? __('OMEMO Message received') : _.get(message.querySelector('body'), 'textContent');
  44745. if (!body) {
  44746. return;
  44747. }
  44748. const n = new Notification(title, {
  44749. 'body': body,
  44750. 'lang': _converse.locale,
  44751. 'icon': _converse.notification_icon
  44752. });
  44753. setTimeout(n.close.bind(n), 5000);
  44754. };
  44755. _converse.showChatStateNotification = function (contact) {
  44756. /* Creates an HTML5 Notification to inform of a change in a
  44757. * contact's chat state.
  44758. */
  44759. if (_.includes(_converse.chatstate_notification_blacklist, contact.jid)) {
  44760. // Don't notify if the user is being ignored.
  44761. return;
  44762. }
  44763. const chat_state = contact.chat_status;
  44764. let message = null;
  44765. if (chat_state === 'offline') {
  44766. message = __('has gone offline');
  44767. } else if (chat_state === 'away') {
  44768. message = __('has gone away');
  44769. } else if (chat_state === 'dnd') {
  44770. message = __('is busy');
  44771. } else if (chat_state === 'online') {
  44772. message = __('has come online');
  44773. }
  44774. if (message === null) {
  44775. return;
  44776. }
  44777. const n = new Notification(contact.getDisplayName(), {
  44778. body: message,
  44779. lang: _converse.locale,
  44780. icon: _converse.notification_icon
  44781. });
  44782. setTimeout(n.close.bind(n), 5000);
  44783. };
  44784. _converse.showContactRequestNotification = function (contact) {
  44785. const n = new Notification(contact.getDisplayName(), {
  44786. body: __('wants to be your contact'),
  44787. lang: _converse.locale,
  44788. icon: _converse.notification_icon
  44789. });
  44790. setTimeout(n.close.bind(n), 5000);
  44791. };
  44792. _converse.showFeedbackNotification = function (data) {
  44793. if (data.klass === 'error' || data.klass === 'warn') {
  44794. const n = new Notification(data.subject, {
  44795. body: data.message,
  44796. lang: _converse.locale,
  44797. icon: _converse.notification_icon
  44798. });
  44799. setTimeout(n.close.bind(n), 5000);
  44800. }
  44801. };
  44802. _converse.handleChatStateNotification = function (contact) {
  44803. /* Event handler for on('contactPresenceChanged').
  44804. * Will show an HTML5 notification to indicate that the chat
  44805. * status has changed.
  44806. */
  44807. if (_converse.areDesktopNotificationsEnabled() && _converse.show_chatstate_notifications) {
  44808. _converse.showChatStateNotification(contact);
  44809. }
  44810. };
  44811. _converse.handleMessageNotification = function (data) {
  44812. /* Event handler for the on('message') event. Will call methods
  44813. * to play sounds and show HTML5 notifications.
  44814. */
  44815. const message = data.stanza;
  44816. if (!_converse.shouldNotifyOfMessage(message)) {
  44817. return false;
  44818. }
  44819. _converse.playSoundNotification();
  44820. if (_converse.areDesktopNotificationsEnabled()) {
  44821. _converse.showMessageNotification(message);
  44822. }
  44823. };
  44824. _converse.handleContactRequestNotification = function (contact) {
  44825. if (_converse.areDesktopNotificationsEnabled(true)) {
  44826. _converse.showContactRequestNotification(contact);
  44827. }
  44828. };
  44829. _converse.handleFeedback = function (data) {
  44830. if (_converse.areDesktopNotificationsEnabled(true)) {
  44831. _converse.showFeedbackNotification(data);
  44832. }
  44833. };
  44834. _converse.requestPermission = function () {
  44835. if (_converse.supports_html5_notification && !_.includes(['denied', 'granted'], Notification.permission)) {
  44836. // Ask user to enable HTML5 notifications
  44837. Notification.requestPermission();
  44838. }
  44839. };
  44840. _converse.on('pluginsInitialized', function () {
  44841. // We only register event handlers after all plugins are
  44842. // registered, because other plugins might override some of our
  44843. // handlers.
  44844. _converse.on('contactRequest', _converse.handleContactRequestNotification);
  44845. _converse.on('contactPresenceChanged', _converse.handleChatStateNotification);
  44846. _converse.on('message', _converse.handleMessageNotification);
  44847. _converse.on('feedback', _converse.handleFeedback);
  44848. _converse.on('connected', _converse.requestPermission);
  44849. });
  44850. }
  44851. });
  44852. });
  44853. /***/ }),
  44854. /***/ "./src/converse-omemo.js":
  44855. /*!*******************************!*\
  44856. !*** ./src/converse-omemo.js ***!
  44857. \*******************************/
  44858. /*! no static exports found */
  44859. /***/ (function(module, exports, __webpack_require__) {
  44860. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  44861. // http://conversejs.org
  44862. //
  44863. // Copyright (c) 2013-2018, the Converse.js developers
  44864. // Licensed under the Mozilla Public License (MPLv2)
  44865. /* global libsignal, ArrayBuffer, parseInt, crypto */
  44866. (function (root, factory) {
  44867. !(__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),
  44868. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  44869. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  44870. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  44871. })(this, function (converse, tpl_toolbar_omemo) {
  44872. const _converse$env = converse.env,
  44873. Backbone = _converse$env.Backbone,
  44874. Promise = _converse$env.Promise,
  44875. Strophe = _converse$env.Strophe,
  44876. moment = _converse$env.moment,
  44877. sizzle = _converse$env.sizzle,
  44878. $iq = _converse$env.$iq,
  44879. $msg = _converse$env.$msg,
  44880. _ = _converse$env._,
  44881. f = _converse$env.f,
  44882. b64_sha1 = _converse$env.b64_sha1;
  44883. const u = converse.env.utils;
  44884. Strophe.addNamespace('OMEMO_DEVICELIST', Strophe.NS.OMEMO + ".devicelist");
  44885. Strophe.addNamespace('OMEMO_VERIFICATION', Strophe.NS.OMEMO + ".verification");
  44886. Strophe.addNamespace('OMEMO_WHITELISTED', Strophe.NS.OMEMO + ".whitelisted");
  44887. Strophe.addNamespace('OMEMO_BUNDLES', Strophe.NS.OMEMO + ".bundles");
  44888. const UNDECIDED = 0;
  44889. const TRUSTED = 1;
  44890. const UNTRUSTED = -1;
  44891. const TAG_LENGTH = 128;
  44892. const KEY_ALGO = {
  44893. 'name': "AES-GCM",
  44894. 'length': 128
  44895. };
  44896. function parseBundle(bundle_el) {
  44897. /* Given an XML element representing a user's OMEMO bundle, parse it
  44898. * and return a map.
  44899. */
  44900. const signed_prekey_public_el = bundle_el.querySelector('signedPreKeyPublic'),
  44901. signed_prekey_signature_el = bundle_el.querySelector('signedPreKeySignature'),
  44902. identity_key_el = bundle_el.querySelector('identityKey');
  44903. const prekeys = _.map(sizzle(`prekeys > preKeyPublic`, bundle_el), el => {
  44904. return {
  44905. 'id': parseInt(el.getAttribute('preKeyId'), 10),
  44906. 'key': el.textContent
  44907. };
  44908. });
  44909. return {
  44910. 'identity_key': bundle_el.querySelector('identityKey').textContent.trim(),
  44911. 'signed_prekey': {
  44912. 'id': parseInt(signed_prekey_public_el.getAttribute('signedPreKeyId'), 10),
  44913. 'public_key': signed_prekey_public_el.textContent,
  44914. 'signature': signed_prekey_signature_el.textContent
  44915. },
  44916. 'prekeys': prekeys
  44917. };
  44918. }
  44919. converse.plugins.add('converse-omemo', {
  44920. enabled(_converse) {
  44921. return !_.isNil(window.libsignal) && !f.includes('converse-omemo', _converse.blacklisted_plugins);
  44922. },
  44923. dependencies: ["converse-chatview"],
  44924. overrides: {
  44925. ProfileModal: {
  44926. events: {
  44927. 'change input.select-all': 'selectAll',
  44928. 'submit .fingerprint-removal': 'removeSelectedFingerprints'
  44929. },
  44930. initialize() {
  44931. const _converse = this.__super__._converse;
  44932. this.debouncedRender = _.debounce(this.render, 50);
  44933. this.devicelist = _converse.devicelists.get(_converse.bare_jid);
  44934. this.devicelist.devices.on('change:bundle', this.debouncedRender, this);
  44935. this.devicelist.devices.on('reset', this.debouncedRender, this);
  44936. this.devicelist.devices.on('remove', this.debouncedRender, this);
  44937. this.devicelist.devices.on('add', this.debouncedRender, this);
  44938. return this.__super__.initialize.apply(this, arguments);
  44939. },
  44940. beforeRender() {
  44941. const _converse = this.__super__._converse,
  44942. device_id = _converse.omemo_store.get('device_id');
  44943. this.current_device = this.devicelist.devices.get(device_id);
  44944. this.other_devices = this.devicelist.devices.filter(d => d.get('id') !== device_id);
  44945. if (this.__super__.beforeRender) {
  44946. return this.__super__.beforeRender.apply(this, arguments);
  44947. }
  44948. },
  44949. selectAll(ev) {
  44950. let sibling = u.ancestor(ev.target, 'li');
  44951. while (sibling) {
  44952. sibling.querySelector('input[type="checkbox"]').checked = ev.target.checked;
  44953. sibling = sibling.nextElementSibling;
  44954. }
  44955. },
  44956. removeSelectedFingerprints(ev) {
  44957. ev.preventDefault();
  44958. ev.stopPropagation();
  44959. ev.target.querySelector('.select-all').checked = false;
  44960. const checkboxes = ev.target.querySelectorAll('.fingerprint-removal-item input[type="checkbox"]:checked'),
  44961. device_ids = _.map(checkboxes, 'value');
  44962. this.devicelist.removeOwnDevices(device_ids).then(this.modal.hide).catch(err => {
  44963. const _converse = this.__super__._converse,
  44964. __ = _converse.__;
  44965. _converse.log(err, Strophe.LogLevel.ERROR);
  44966. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__('Sorry, an error occurred while trying to remove the devices.')]);
  44967. });
  44968. }
  44969. },
  44970. UserDetailsModal: {
  44971. events: {
  44972. 'click .fingerprint-trust .btn input': 'toggleDeviceTrust'
  44973. },
  44974. initialize() {
  44975. const _converse = this.__super__._converse;
  44976. const jid = this.model.get('jid');
  44977. this.devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  44978. 'jid': jid
  44979. });
  44980. this.devicelist.devices.on('change:bundle', this.render, this);
  44981. this.devicelist.devices.on('change:trusted', this.render, this);
  44982. this.devicelist.devices.on('remove', this.render, this);
  44983. this.devicelist.devices.on('add', this.render, this);
  44984. this.devicelist.devices.on('reset', this.render, this);
  44985. return this.__super__.initialize.apply(this, arguments);
  44986. },
  44987. toggleDeviceTrust(ev) {
  44988. const radio = ev.target;
  44989. const device = this.devicelist.devices.get(radio.getAttribute('name'));
  44990. device.save('trusted', parseInt(radio.value, 10));
  44991. }
  44992. },
  44993. ChatBox: {
  44994. getBundlesAndBuildSessions() {
  44995. const _converse = this.__super__._converse;
  44996. let devices;
  44997. return _converse.getDevicesForContact(this.get('jid')).then(their_devices => {
  44998. const device_id = _converse.omemo_store.get('device_id'),
  44999. devicelist = _converse.devicelists.get(_converse.bare_jid),
  45000. own_devices = devicelist.devices.filter(device => device.get('id') !== device_id);
  45001. devices = _.concat(own_devices, their_devices.models);
  45002. return Promise.all(devices.map(device => device.getBundle()));
  45003. }).then(() => this.buildSessions(devices));
  45004. },
  45005. buildSession(device) {
  45006. const _converse = this.__super__._converse,
  45007. address = new libsignal.SignalProtocolAddress(device.get('jid'), device.get('id')),
  45008. sessionBuilder = new libsignal.SessionBuilder(_converse.omemo_store, address),
  45009. prekey = device.getRandomPreKey();
  45010. return device.getBundle().then(bundle => {
  45011. return sessionBuilder.processPreKey({
  45012. 'registrationId': parseInt(device.get('id'), 10),
  45013. 'identityKey': u.base64ToArrayBuffer(bundle.identity_key),
  45014. 'signedPreKey': {
  45015. 'keyId': bundle.signed_prekey.id,
  45016. // <Number>
  45017. 'publicKey': u.base64ToArrayBuffer(bundle.signed_prekey.public_key),
  45018. 'signature': u.base64ToArrayBuffer(bundle.signed_prekey.signature)
  45019. },
  45020. 'preKey': {
  45021. 'keyId': prekey.id,
  45022. // <Number>
  45023. 'publicKey': u.base64ToArrayBuffer(prekey.key)
  45024. }
  45025. });
  45026. });
  45027. },
  45028. getSession(device) {
  45029. const _converse = this.__super__._converse,
  45030. address = new libsignal.SignalProtocolAddress(device.get('jid'), device.get('id'));
  45031. return _converse.omemo_store.loadSession(address.toString()).then(session => {
  45032. if (session) {
  45033. return Promise.resolve();
  45034. } else {
  45035. return this.buildSession(device);
  45036. }
  45037. });
  45038. },
  45039. async encryptMessage(plaintext) {
  45040. // The client MUST use fresh, randomly generated key/IV pairs
  45041. // with AES-128 in Galois/Counter Mode (GCM).
  45042. // For GCM a 12 byte IV is strongly suggested as other IV lengths
  45043. // will require additional calculations. In principle any IV size
  45044. // can be used as long as the IV doesn't ever repeat. NIST however
  45045. // suggests that only an IV size of 12 bytes needs to be supported
  45046. // by implementations.
  45047. //
  45048. // https://crypto.stackexchange.com/questions/26783/ciphertext-and-tag-size-and-iv-transmission-with-aes-in-gcm-mode
  45049. const iv = crypto.getRandomValues(new window.Uint8Array(12)),
  45050. key = await crypto.subtle.generateKey(KEY_ALGO, true, ["encrypt", "decrypt"]),
  45051. algo = {
  45052. 'name': 'AES-GCM',
  45053. 'iv': iv,
  45054. 'tagLength': TAG_LENGTH
  45055. },
  45056. encrypted = await crypto.subtle.encrypt(algo, key, u.stringToArrayBuffer(plaintext)),
  45057. length = encrypted.byteLength - (128 + 7 >> 3),
  45058. ciphertext = encrypted.slice(0, length),
  45059. tag = encrypted.slice(length),
  45060. exported_key = await crypto.subtle.exportKey("raw", key);
  45061. return Promise.resolve({
  45062. 'key': exported_key,
  45063. 'tag': tag,
  45064. 'key_and_tag': u.appendArrayBuffer(exported_key, tag),
  45065. 'payload': u.arrayBufferToBase64(ciphertext),
  45066. 'iv': u.arrayBufferToBase64(iv)
  45067. });
  45068. },
  45069. async decryptMessage(obj) {
  45070. const key_obj = await crypto.subtle.importKey('raw', obj.key, KEY_ALGO, true, ['encrypt', 'decrypt']),
  45071. cipher = u.appendArrayBuffer(u.base64ToArrayBuffer(obj.payload), obj.tag),
  45072. algo = {
  45073. 'name': "AES-GCM",
  45074. 'iv': u.base64ToArrayBuffer(obj.iv),
  45075. 'tagLength': TAG_LENGTH
  45076. };
  45077. return u.arrayBufferToString((await crypto.subtle.decrypt(algo, key_obj, cipher)));
  45078. },
  45079. reportDecryptionError(e) {
  45080. const _converse = this.__super__._converse;
  45081. if (_converse.debug) {
  45082. const __ = _converse.__;
  45083. this.messages.create({
  45084. 'message': __("Sorry, could not decrypt a received OMEMO message due to an error.") + ` ${e.name} ${e.message}`,
  45085. 'type': 'error'
  45086. });
  45087. }
  45088. _converse.log(`${e.name} ${e.message}`, Strophe.LogLevel.ERROR);
  45089. },
  45090. decrypt(attrs) {
  45091. const _converse = this.__super__._converse,
  45092. session_cipher = this.getSessionCipher(attrs.from, parseInt(attrs.encrypted.device_id, 10)); // https://xmpp.org/extensions/xep-0384.html#usecases-receiving
  45093. if (attrs.encrypted.prekey === 'true') {
  45094. let plaintext;
  45095. return session_cipher.decryptPreKeyWhisperMessage(u.base64ToArrayBuffer(attrs.encrypted.key), 'binary').then(key_and_tag => {
  45096. if (attrs.encrypted.payload) {
  45097. const key = key_and_tag.slice(0, 16),
  45098. tag = key_and_tag.slice(16);
  45099. return this.decryptMessage(_.extend(attrs.encrypted, {
  45100. 'key': key,
  45101. 'tag': tag
  45102. }));
  45103. }
  45104. return Promise.resolve();
  45105. }).then(pt => {
  45106. plaintext = pt;
  45107. return _converse.omemo_store.generateMissingPreKeys();
  45108. }).then(() => _converse.omemo_store.publishBundle()).then(() => {
  45109. if (plaintext) {
  45110. return _.extend(attrs, {
  45111. 'plaintext': plaintext
  45112. });
  45113. } else {
  45114. return _.extend(attrs, {
  45115. 'is_only_key': true
  45116. });
  45117. }
  45118. }).catch(e => {
  45119. this.reportDecryptionError(e);
  45120. return attrs;
  45121. });
  45122. } else {
  45123. return session_cipher.decryptWhisperMessage(u.base64ToArrayBuffer(attrs.encrypted.key), 'binary').then(key_and_tag => {
  45124. const key = key_and_tag.slice(0, 16),
  45125. tag = key_and_tag.slice(16);
  45126. return this.decryptMessage(_.extend(attrs.encrypted, {
  45127. 'key': key,
  45128. 'tag': tag
  45129. }));
  45130. }).then(plaintext => _.extend(attrs, {
  45131. 'plaintext': plaintext
  45132. })).catch(e => {
  45133. this.reportDecryptionError(e);
  45134. return attrs;
  45135. });
  45136. }
  45137. },
  45138. getEncryptionAttributesfromStanza(stanza, original_stanza, attrs) {
  45139. const _converse = this.__super__._converse,
  45140. encrypted = sizzle(`encrypted[xmlns="${Strophe.NS.OMEMO}"]`, original_stanza).pop(),
  45141. header = encrypted.querySelector('header'),
  45142. key = sizzle(`key[rid="${_converse.omemo_store.get('device_id')}"]`, encrypted).pop();
  45143. if (key) {
  45144. attrs['is_encrypted'] = true;
  45145. attrs['encrypted'] = {
  45146. 'device_id': header.getAttribute('sid'),
  45147. 'iv': header.querySelector('iv').textContent,
  45148. 'key': key.textContent,
  45149. 'payload': _.get(encrypted.querySelector('payload'), 'textContent', null),
  45150. 'prekey': key.getAttribute('prekey')
  45151. };
  45152. return this.decrypt(attrs);
  45153. } else {
  45154. return Promise.resolve(attrs);
  45155. }
  45156. },
  45157. getMessageAttributesFromStanza(stanza, original_stanza) {
  45158. const _converse = this.__super__._converse,
  45159. encrypted = sizzle(`encrypted[xmlns="${Strophe.NS.OMEMO}"]`, original_stanza).pop(),
  45160. attrs = this.__super__.getMessageAttributesFromStanza.apply(this, arguments);
  45161. if (!encrypted || !_converse.config.get('trusted')) {
  45162. return attrs;
  45163. } else {
  45164. return this.getEncryptionAttributesfromStanza(stanza, original_stanza, attrs);
  45165. }
  45166. },
  45167. buildSessions(devices) {
  45168. return Promise.all(devices.map(device => this.getSession(device))).then(() => devices);
  45169. },
  45170. getSessionCipher(jid, id) {
  45171. const _converse = this.__super__._converse,
  45172. address = new libsignal.SignalProtocolAddress(jid, id);
  45173. this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
  45174. return this.session_cipher;
  45175. },
  45176. encryptKey(plaintext, device) {
  45177. return this.getSessionCipher(device.get('jid'), device.get('id')).encrypt(plaintext).then(payload => ({
  45178. 'payload': payload,
  45179. 'device': device
  45180. }));
  45181. },
  45182. addKeysToMessageStanza(stanza, dicts, iv) {
  45183. for (var i in dicts) {
  45184. if (Object.prototype.hasOwnProperty.call(dicts, i)) {
  45185. const payload = dicts[i].payload,
  45186. device = dicts[i].device,
  45187. prekey = 3 == parseInt(payload.type, 10);
  45188. stanza.c('key', {
  45189. 'rid': device.get('id')
  45190. }).t(btoa(payload.body));
  45191. if (prekey) {
  45192. stanza.attrs({
  45193. 'prekey': prekey
  45194. });
  45195. }
  45196. stanza.up();
  45197. if (i == dicts.length - 1) {
  45198. stanza.c('iv').t(iv).up().up();
  45199. }
  45200. }
  45201. }
  45202. return Promise.resolve(stanza);
  45203. },
  45204. createOMEMOMessageStanza(message, devices) {
  45205. const _converse = this.__super__._converse,
  45206. __ = _converse.__;
  45207. const body = __("This is an OMEMO encrypted message which your client doesn’t seem to support. " + "Find more information on https://conversations.im/omemo");
  45208. if (!message.get('message')) {
  45209. throw new Error("No message body to encrypt!");
  45210. }
  45211. const stanza = $msg({
  45212. 'from': _converse.connection.jid,
  45213. 'to': this.get('jid'),
  45214. 'type': this.get('message_type'),
  45215. 'id': message.get('msgid')
  45216. }).c('body').t(body).up() // An encrypted header is added to the message for
  45217. // each device that is supposed to receive it.
  45218. // These headers simply contain the key that the
  45219. // payload message is encrypted with,
  45220. // and they are separately encrypted using the
  45221. // session corresponding to the counterpart device.
  45222. .c('encrypted', {
  45223. 'xmlns': Strophe.NS.OMEMO
  45224. }).c('header', {
  45225. 'sid': _converse.omemo_store.get('device_id')
  45226. });
  45227. return this.encryptMessage(message.get('message')).then(obj => {
  45228. // The 16 bytes key and the GCM authentication tag (The tag
  45229. // SHOULD have at least 128 bit) are concatenated and for each
  45230. // intended recipient device, i.e. both own devices as well as
  45231. // devices associated with the contact, the result of this
  45232. // concatenation is encrypted using the corresponding
  45233. // long-standing SignalProtocol session.
  45234. const promises = devices.filter(device => device.get('trusted') != UNTRUSTED).map(device => this.encryptKey(obj.key_and_tag, device));
  45235. return Promise.all(promises).then(dicts => this.addKeysToMessageStanza(stanza, dicts, obj.iv)).then(stanza => {
  45236. stanza.c('payload').t(obj.payload).up().up();
  45237. stanza.c('store', {
  45238. 'xmlns': Strophe.NS.HINTS
  45239. });
  45240. return stanza;
  45241. });
  45242. });
  45243. },
  45244. sendMessage(attrs) {
  45245. const _converse = this.__super__._converse,
  45246. __ = _converse.__;
  45247. if (this.get('omemo_active') && attrs.message) {
  45248. attrs['is_encrypted'] = true;
  45249. attrs['plaintext'] = attrs.message;
  45250. const message = this.messages.create(attrs);
  45251. this.getBundlesAndBuildSessions().then(devices => this.createOMEMOMessageStanza(message, devices)).then(stanza => this.sendMessageStanza(stanza)).catch(e => {
  45252. this.messages.create({
  45253. 'message': __("Sorry, could not send the message due to an error.") + ` ${e.message}`,
  45254. 'type': 'error'
  45255. });
  45256. _converse.log(e, Strophe.LogLevel.ERROR);
  45257. });
  45258. } else {
  45259. return this.__super__.sendMessage.apply(this, arguments);
  45260. }
  45261. }
  45262. },
  45263. ChatBoxView: {
  45264. events: {
  45265. 'click .toggle-omemo': 'toggleOMEMO'
  45266. },
  45267. showMessage(message) {
  45268. // We don't show a message if it's only keying material
  45269. if (!message.get('is_only_key')) {
  45270. return this.__super__.showMessage.apply(this, arguments);
  45271. }
  45272. },
  45273. async renderOMEMOToolbarButton() {
  45274. const _converse = this.__super__._converse,
  45275. __ = _converse.__;
  45276. const support = await _converse.contactHasOMEMOSupport(this.model.get('jid'));
  45277. if (support) {
  45278. const icon = this.el.querySelector('.toggle-omemo'),
  45279. html = tpl_toolbar_omemo(_.extend(this.model.toJSON(), {
  45280. '__': __
  45281. }));
  45282. if (icon) {
  45283. icon.outerHTML = html;
  45284. } else {
  45285. this.el.querySelector('.chat-toolbar').insertAdjacentHTML('beforeend', html);
  45286. }
  45287. }
  45288. },
  45289. toggleOMEMO(ev) {
  45290. ev.preventDefault();
  45291. this.model.save({
  45292. 'omemo_active': !this.model.get('omemo_active')
  45293. });
  45294. this.renderOMEMOToolbarButton();
  45295. }
  45296. }
  45297. },
  45298. initialize() {
  45299. /* The initialize function gets called as soon as the plugin is
  45300. * loaded by Converse.js's plugin machinery.
  45301. */
  45302. const _converse = this._converse;
  45303. _converse.api.promises.add(['OMEMOInitialized']);
  45304. _converse.NUM_PREKEYS = 100; // Set here so that tests can override
  45305. function generateFingerprint(device) {
  45306. if (_.get(device.get('bundle'), 'fingerprint')) {
  45307. return;
  45308. }
  45309. return device.getBundle().then(bundle => {
  45310. bundle['fingerprint'] = u.arrayBufferToHex(u.base64ToArrayBuffer(bundle['identity_key']));
  45311. device.save('bundle', bundle);
  45312. device.trigger('change:bundle'); // Doesn't get triggered automatically due to pass-by-reference
  45313. });
  45314. }
  45315. _converse.generateFingerprints = function (jid) {
  45316. return _converse.getDevicesForContact(jid).then(devices => Promise.all(devices.map(d => generateFingerprint(d))));
  45317. };
  45318. _converse.getDeviceForContact = function (jid, device_id) {
  45319. return _converse.getDevicesForContact(jid).then(devices => devices.get(device_id));
  45320. };
  45321. _converse.getDevicesForContact = function (jid) {
  45322. let devicelist;
  45323. return _converse.api.waitUntil('OMEMOInitialized').then(() => {
  45324. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  45325. 'jid': jid
  45326. });
  45327. return devicelist.fetchDevices();
  45328. }).then(() => devicelist.devices);
  45329. };
  45330. _converse.contactHasOMEMOSupport = function (jid) {
  45331. /* Checks whether the contact advertises any OMEMO-compatible devices. */
  45332. return new Promise((resolve, reject) => {
  45333. _converse.getDevicesForContact(jid).then(devices => resolve(devices.length > 0)).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  45334. });
  45335. };
  45336. function generateDeviceID() {
  45337. /* Generates a device ID, making sure that it's unique */
  45338. const existing_ids = _converse.devicelists.get(_converse.bare_jid).devices.pluck('id');
  45339. let device_id = libsignal.KeyHelper.generateRegistrationId();
  45340. let i = 0;
  45341. while (_.includes(existing_ids, device_id)) {
  45342. device_id = libsignal.KeyHelper.generateRegistrationId();
  45343. i++;
  45344. if (i == 10) {
  45345. throw new Error("Unable to generate a unique device ID");
  45346. }
  45347. }
  45348. return device_id.toString();
  45349. }
  45350. _converse.OMEMOStore = Backbone.Model.extend({
  45351. Direction: {
  45352. SENDING: 1,
  45353. RECEIVING: 2
  45354. },
  45355. getIdentityKeyPair() {
  45356. const keypair = this.get('identity_keypair');
  45357. return Promise.resolve({
  45358. 'privKey': u.base64ToArrayBuffer(keypair.privKey),
  45359. 'pubKey': u.base64ToArrayBuffer(keypair.pubKey)
  45360. });
  45361. },
  45362. getLocalRegistrationId() {
  45363. return Promise.resolve(parseInt(this.get('device_id'), 10));
  45364. },
  45365. isTrustedIdentity(identifier, identity_key, direction) {
  45366. if (_.isNil(identifier)) {
  45367. throw new Error("Can't check identity key for invalid key");
  45368. }
  45369. if (!(identity_key instanceof ArrayBuffer)) {
  45370. throw new Error("Expected identity_key to be an ArrayBuffer");
  45371. }
  45372. const trusted = this.get('identity_key' + identifier);
  45373. if (trusted === undefined) {
  45374. return Promise.resolve(true);
  45375. }
  45376. return Promise.resolve(u.arrayBufferToBase64(identity_key) === trusted);
  45377. },
  45378. loadIdentityKey(identifier) {
  45379. if (_.isNil(identifier)) {
  45380. throw new Error("Can't load identity_key for invalid identifier");
  45381. }
  45382. return Promise.resolve(u.base64ToArrayBuffer(this.get('identity_key' + identifier)));
  45383. },
  45384. saveIdentity(identifier, identity_key) {
  45385. if (_.isNil(identifier)) {
  45386. throw new Error("Can't save identity_key for invalid identifier");
  45387. }
  45388. const address = new libsignal.SignalProtocolAddress.fromString(identifier),
  45389. existing = this.get('identity_key' + address.getName());
  45390. const b64_idkey = u.arrayBufferToBase64(identity_key);
  45391. this.save('identity_key' + address.getName(), b64_idkey);
  45392. if (existing && b64_idkey !== existing) {
  45393. return Promise.resolve(true);
  45394. } else {
  45395. return Promise.resolve(false);
  45396. }
  45397. },
  45398. getPreKeys() {
  45399. return this.get('prekeys') || {};
  45400. },
  45401. loadPreKey(key_id) {
  45402. const res = this.getPreKeys()[key_id];
  45403. if (res) {
  45404. return Promise.resolve({
  45405. 'privKey': u.base64ToArrayBuffer(res.privKey),
  45406. 'pubKey': u.base64ToArrayBuffer(res.pubKey)
  45407. });
  45408. }
  45409. return Promise.resolve();
  45410. },
  45411. storePreKey(key_id, key_pair) {
  45412. const prekey = {};
  45413. prekey[key_id] = {
  45414. 'pubKey': u.arrayBufferToBase64(key_pair.pubKey),
  45415. 'privKey': u.arrayBufferToBase64(key_pair.privKey)
  45416. };
  45417. this.save('prekeys', _.extend(this.getPreKeys(), prekey));
  45418. return Promise.resolve();
  45419. },
  45420. removePreKey(key_id) {
  45421. this.save('prekeys', _.omit(this.getPreKeys(), key_id));
  45422. return Promise.resolve();
  45423. },
  45424. loadSignedPreKey(keyId) {
  45425. const res = this.get('signed_prekey');
  45426. if (res) {
  45427. return Promise.resolve({
  45428. 'privKey': u.base64ToArrayBuffer(res.privKey),
  45429. 'pubKey': u.base64ToArrayBuffer(res.pubKey)
  45430. });
  45431. }
  45432. return Promise.resolve();
  45433. },
  45434. storeSignedPreKey(spk) {
  45435. if (typeof spk !== "object") {
  45436. // XXX: We've changed the signature of this method from the
  45437. // example given in InMemorySignalProtocolStore.
  45438. // Should be fine because the libsignal code doesn't
  45439. // actually call this method.
  45440. throw new Error("storeSignedPreKey: expected an object");
  45441. }
  45442. this.save('signed_prekey', {
  45443. 'id': spk.keyId,
  45444. 'privKey': u.arrayBufferToBase64(spk.keyPair.privKey),
  45445. 'pubKey': u.arrayBufferToBase64(spk.keyPair.pubKey),
  45446. // XXX: The InMemorySignalProtocolStore does not pass
  45447. // in or store the signature, but we need it when we
  45448. // publish out bundle and this method isn't called from
  45449. // within libsignal code, so we modify it to also store
  45450. // the signature.
  45451. 'signature': u.arrayBufferToBase64(spk.signature)
  45452. });
  45453. return Promise.resolve();
  45454. },
  45455. removeSignedPreKey(key_id) {
  45456. if (this.get('signed_prekey')['id'] === key_id) {
  45457. this.unset('signed_prekey');
  45458. this.save();
  45459. }
  45460. return Promise.resolve();
  45461. },
  45462. loadSession(identifier) {
  45463. return Promise.resolve(this.get('session' + identifier));
  45464. },
  45465. storeSession(identifier, record) {
  45466. return Promise.resolve(this.save('session' + identifier, record));
  45467. },
  45468. removeSession(identifier) {
  45469. return Promise.resolve(this.unset('session' + identifier));
  45470. },
  45471. removeAllSessions(identifier) {
  45472. const keys = _.filter(_.keys(this.attributes), key => {
  45473. if (key.startsWith('session' + identifier)) {
  45474. return key;
  45475. }
  45476. });
  45477. const attrs = {};
  45478. _.forEach(keys, key => {
  45479. attrs[key] = undefined;
  45480. });
  45481. this.save(attrs);
  45482. return Promise.resolve();
  45483. },
  45484. publishBundle() {
  45485. const signed_prekey = this.get('signed_prekey');
  45486. const stanza = $iq({
  45487. 'from': _converse.bare_jid,
  45488. 'type': 'set'
  45489. }).c('pubsub', {
  45490. 'xmlns': Strophe.NS.PUBSUB
  45491. }).c('publish', {
  45492. 'node': `${Strophe.NS.OMEMO_BUNDLES}:${this.get('device_id')}`
  45493. }).c('item').c('bundle', {
  45494. 'xmlns': Strophe.NS.OMEMO
  45495. }).c('signedPreKeyPublic', {
  45496. 'signedPreKeyId': signed_prekey.id
  45497. }).t(signed_prekey.pubKey).up().c('signedPreKeySignature').t(signed_prekey.signature).up().c('identityKey').t(this.get('identity_keypair').pubKey).up().c('prekeys');
  45498. _.forEach(this.get('prekeys'), (prekey, id) => stanza.c('preKeyPublic', {
  45499. 'preKeyId': id
  45500. }).t(prekey.pubKey).up());
  45501. return _converse.api.sendIQ(stanza);
  45502. },
  45503. generateMissingPreKeys() {
  45504. const current_keys = this.getPreKeys(),
  45505. missing_keys = _.difference(_.invokeMap(_.range(0, _converse.NUM_PREKEYS), Number.prototype.toString), _.keys(current_keys));
  45506. if (missing_keys.length < 1) {
  45507. _converse.log("No missing prekeys to generate for our own device", Strophe.LogLevel.WARN);
  45508. return Promise.resolve();
  45509. }
  45510. return Promise.all(_.map(missing_keys, id => libsignal.KeyHelper.generatePreKey(parseInt(id, 10)))).then(keys => {
  45511. _.forEach(keys, k => this.storePreKey(k.keyId, k.keyPair));
  45512. const marshalled_keys = _.map(this.getPreKeys(), k => ({
  45513. 'id': k.keyId,
  45514. 'key': u.arrayBufferToBase64(k.pubKey)
  45515. })),
  45516. devicelist = _converse.devicelists.get(_converse.bare_jid),
  45517. device = devicelist.devices.get(this.get('device_id'));
  45518. return device.getBundle().then(bundle => device.save('bundle', _.extend(bundle, {
  45519. 'prekeys': marshalled_keys
  45520. })));
  45521. });
  45522. },
  45523. async generateBundle() {
  45524. /* The first thing that needs to happen if a client wants to
  45525. * start using OMEMO is they need to generate an IdentityKey
  45526. * and a Device ID. The IdentityKey is a Curve25519 [6]
  45527. * public/private Key pair. The Device ID is a randomly
  45528. * generated integer between 1 and 2^31 - 1.
  45529. */
  45530. const identity_keypair = await libsignal.KeyHelper.generateIdentityKeyPair();
  45531. const bundle = {},
  45532. identity_key = u.arrayBufferToBase64(identity_keypair.pubKey),
  45533. device_id = generateDeviceID();
  45534. bundle['identity_key'] = identity_key;
  45535. bundle['device_id'] = device_id;
  45536. this.save({
  45537. 'device_id': device_id,
  45538. 'identity_keypair': {
  45539. 'privKey': u.arrayBufferToBase64(identity_keypair.privKey),
  45540. 'pubKey': identity_key
  45541. },
  45542. 'identity_key': identity_key
  45543. });
  45544. const signed_prekey = await libsignal.KeyHelper.generateSignedPreKey(identity_keypair, 0);
  45545. _converse.omemo_store.storeSignedPreKey(signed_prekey);
  45546. bundle['signed_prekey'] = {
  45547. 'id': signed_prekey.keyId,
  45548. 'public_key': u.arrayBufferToBase64(signed_prekey.keyPair.privKey),
  45549. 'signature': u.arrayBufferToBase64(signed_prekey.signature)
  45550. };
  45551. const keys = await Promise.all(_.map(_.range(0, _converse.NUM_PREKEYS), id => libsignal.KeyHelper.generatePreKey(id)));
  45552. _.forEach(keys, k => _converse.omemo_store.storePreKey(k.keyId, k.keyPair));
  45553. const devicelist = _converse.devicelists.get(_converse.bare_jid),
  45554. device = devicelist.devices.create({
  45555. 'id': bundle.device_id,
  45556. 'jid': _converse.bare_jid
  45557. }),
  45558. marshalled_keys = _.map(keys, k => ({
  45559. 'id': k.keyId,
  45560. 'key': u.arrayBufferToBase64(k.keyPair.pubKey)
  45561. }));
  45562. bundle['prekeys'] = marshalled_keys;
  45563. device.save('bundle', bundle);
  45564. },
  45565. fetchSession() {
  45566. if (_.isUndefined(this._setup_promise)) {
  45567. this._setup_promise = new Promise((resolve, reject) => {
  45568. this.fetch({
  45569. 'success': () => {
  45570. if (!_converse.omemo_store.get('device_id')) {
  45571. this.generateBundle().then(resolve).catch(resolve);
  45572. } else {
  45573. resolve();
  45574. }
  45575. },
  45576. 'error': () => {
  45577. this.generateBundle().then(resolve).catch(resolve);
  45578. }
  45579. });
  45580. });
  45581. }
  45582. return this._setup_promise;
  45583. }
  45584. });
  45585. _converse.Device = Backbone.Model.extend({
  45586. defaults: {
  45587. 'trusted': UNDECIDED
  45588. },
  45589. getRandomPreKey() {
  45590. // XXX: assumes that the bundle has already been fetched
  45591. const bundle = this.get('bundle');
  45592. return bundle.prekeys[u.getRandomInt(bundle.prekeys.length)];
  45593. },
  45594. fetchBundleFromServer() {
  45595. const stanza = $iq({
  45596. 'type': 'get',
  45597. 'from': _converse.bare_jid,
  45598. 'to': this.get('jid')
  45599. }).c('pubsub', {
  45600. 'xmlns': Strophe.NS.PUBSUB
  45601. }).c('items', {
  45602. 'node': `${Strophe.NS.OMEMO_BUNDLES}:${this.get('id')}`
  45603. });
  45604. return _converse.api.sendIQ(stanza).then(iq => {
  45605. const publish_el = sizzle(`items[node="${Strophe.NS.OMEMO_BUNDLES}:${this.get('id')}"]`, iq).pop(),
  45606. bundle_el = sizzle(`bundle[xmlns="${Strophe.NS.OMEMO}"]`, publish_el).pop(),
  45607. bundle = parseBundle(bundle_el);
  45608. this.save('bundle', bundle);
  45609. return bundle;
  45610. }).catch(iq => {
  45611. _converse.log(iq.outerHTML, Strophe.LogLevel.ERROR);
  45612. });
  45613. },
  45614. getBundle() {
  45615. /* Fetch and save the bundle information associated with
  45616. * this device, if the information is not at hand already.
  45617. */
  45618. if (this.get('bundle')) {
  45619. return Promise.resolve(this.get('bundle'), this);
  45620. } else {
  45621. return this.fetchBundleFromServer();
  45622. }
  45623. }
  45624. });
  45625. _converse.Devices = Backbone.Collection.extend({
  45626. model: _converse.Device
  45627. });
  45628. _converse.DeviceList = Backbone.Model.extend({
  45629. idAttribute: 'jid',
  45630. initialize() {
  45631. this.devices = new _converse.Devices();
  45632. const id = `converse.devicelist-${_converse.bare_jid}-${this.get('jid')}`;
  45633. this.devices.browserStorage = new Backbone.BrowserStorage.session(id);
  45634. this.fetchDevices();
  45635. },
  45636. fetchDevices() {
  45637. if (_.isUndefined(this._devices_promise)) {
  45638. this._devices_promise = new Promise((resolve, reject) => {
  45639. this.devices.fetch({
  45640. 'success': collection => {
  45641. if (collection.length === 0) {
  45642. this.fetchDevicesFromServer().then(ids => this.publishCurrentDevice(ids)).finally(resolve);
  45643. } else {
  45644. resolve();
  45645. }
  45646. }
  45647. });
  45648. });
  45649. }
  45650. return this._devices_promise;
  45651. },
  45652. async publishCurrentDevice(device_ids) {
  45653. if (this.get('jid') !== _converse.bare_jid) {
  45654. // We only publish for ourselves.
  45655. return;
  45656. }
  45657. await restoreOMEMOSession();
  45658. let device_id = _converse.omemo_store.get('device_id');
  45659. if (!this.devices.findWhere({
  45660. 'id': device_id
  45661. })) {
  45662. // Generate a new bundle if we cannot find our device
  45663. await _converse.omemo_store.generateBundle();
  45664. device_id = _converse.omemo_store.get('device_id');
  45665. }
  45666. if (!_.includes(device_ids, device_id)) {
  45667. return this.publishDevices();
  45668. }
  45669. },
  45670. fetchDevicesFromServer() {
  45671. const stanza = $iq({
  45672. 'type': 'get',
  45673. 'from': _converse.bare_jid,
  45674. 'to': this.get('jid')
  45675. }).c('pubsub', {
  45676. 'xmlns': Strophe.NS.PUBSUB
  45677. }).c('items', {
  45678. 'node': Strophe.NS.OMEMO_DEVICELIST
  45679. });
  45680. return _converse.api.sendIQ(stanza).then(iq => {
  45681. const device_ids = _.map(sizzle(`list[xmlns="${Strophe.NS.OMEMO}"] device`, iq), dev => dev.getAttribute('id'));
  45682. _.forEach(device_ids, id => this.devices.create({
  45683. 'id': id,
  45684. 'jid': this.get('jid')
  45685. }));
  45686. return device_ids;
  45687. });
  45688. },
  45689. publishDevices() {
  45690. const stanza = $iq({
  45691. 'from': _converse.bare_jid,
  45692. 'type': 'set'
  45693. }).c('pubsub', {
  45694. 'xmlns': Strophe.NS.PUBSUB
  45695. }).c('publish', {
  45696. 'node': Strophe.NS.OMEMO_DEVICELIST
  45697. }).c('item').c('list', {
  45698. 'xmlns': Strophe.NS.OMEMO
  45699. });
  45700. this.devices.each(device => stanza.c('device', {
  45701. 'id': device.get('id')
  45702. }).up());
  45703. return _converse.api.sendIQ(stanza);
  45704. },
  45705. removeOwnDevices(device_ids) {
  45706. if (this.get('jid') !== _converse.bare_jid) {
  45707. throw new Error("Cannot remove devices from someone else's device list");
  45708. }
  45709. _.forEach(device_ids, device_id => this.devices.get(device_id).destroy());
  45710. return this.publishDevices();
  45711. }
  45712. });
  45713. _converse.DeviceLists = Backbone.Collection.extend({
  45714. model: _converse.DeviceList
  45715. });
  45716. function fetchDeviceLists() {
  45717. return new Promise((resolve, reject) => _converse.devicelists.fetch({
  45718. 'success': resolve
  45719. }));
  45720. }
  45721. function fetchOwnDevices() {
  45722. return fetchDeviceLists().then(() => {
  45723. let own_devicelist = _converse.devicelists.get(_converse.bare_jid);
  45724. if (_.isNil(own_devicelist)) {
  45725. own_devicelist = _converse.devicelists.create({
  45726. 'jid': _converse.bare_jid
  45727. });
  45728. }
  45729. return own_devicelist.fetchDevices();
  45730. });
  45731. }
  45732. function updateBundleFromStanza(stanza) {
  45733. const items_el = sizzle(`items`, stanza).pop();
  45734. if (!items_el || !items_el.getAttribute('node').startsWith(Strophe.NS.OMEMO_BUNDLES)) {
  45735. return;
  45736. }
  45737. const device_id = items_el.getAttribute('node').split(':')[1],
  45738. jid = stanza.getAttribute('from'),
  45739. bundle_el = sizzle(`item > bundle`, items_el).pop(),
  45740. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  45741. 'jid': jid
  45742. }),
  45743. device = devicelist.devices.get(device_id) || devicelist.devices.create({
  45744. 'id': device_id,
  45745. 'jid': jid
  45746. });
  45747. device.save({
  45748. 'bundle': parseBundle(bundle_el)
  45749. });
  45750. }
  45751. function updateDevicesFromStanza(stanza) {
  45752. const items_el = sizzle(`items[node="${Strophe.NS.OMEMO_DEVICELIST}"]`, stanza).pop();
  45753. if (!items_el) {
  45754. return;
  45755. }
  45756. const device_ids = _.map(sizzle(`item list[xmlns="${Strophe.NS.OMEMO}"] device`, items_el), device => device.getAttribute('id'));
  45757. const jid = stanza.getAttribute('from'),
  45758. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  45759. 'jid': jid
  45760. }),
  45761. devices = devicelist.devices,
  45762. removed_ids = _.difference(devices.pluck('id'), device_ids);
  45763. _.forEach(removed_ids, id => {
  45764. if (jid === _converse.bare_jid && id === _converse.omemo_store.get('device_id')) {
  45765. // We don't remove the current device
  45766. return;
  45767. }
  45768. devices.get(id).destroy();
  45769. });
  45770. _.forEach(device_ids, device_id => {
  45771. if (!devices.get(device_id)) {
  45772. devices.create({
  45773. 'id': device_id,
  45774. 'jid': jid
  45775. });
  45776. }
  45777. });
  45778. if (Strophe.getBareJidFromJid(jid) === _converse.bare_jid) {
  45779. // Make sure our own device is on the list (i.e. if it was
  45780. // removed, add it again.
  45781. _converse.devicelists.get(_converse.bare_jid).publishCurrentDevice(device_ids);
  45782. }
  45783. }
  45784. function registerPEPPushHandler() {
  45785. // Add a handler for devices pushed from other connected clients
  45786. _converse.connection.addHandler(message => {
  45787. try {
  45788. if (sizzle(`event[xmlns="${Strophe.NS.PUBSUB}#event"]`, message).length) {
  45789. updateDevicesFromStanza(message);
  45790. updateBundleFromStanza(message);
  45791. }
  45792. } catch (e) {
  45793. _converse.log(e.message, Strophe.LogLevel.ERROR);
  45794. }
  45795. return true;
  45796. }, null, 'message', 'headline');
  45797. }
  45798. function restoreOMEMOSession() {
  45799. if (_.isUndefined(_converse.omemo_store)) {
  45800. const storage = _converse.config.get('storage'),
  45801. id = `converse.omemosession-${_converse.bare_jid}`;
  45802. _converse.omemo_store = new _converse.OMEMOStore({
  45803. 'id': id
  45804. });
  45805. _converse.omemo_store.browserStorage = new Backbone.BrowserStorage[storage](id);
  45806. }
  45807. return _converse.omemo_store.fetchSession();
  45808. }
  45809. function initOMEMO() {
  45810. if (!_converse.config.get('trusted')) {
  45811. return;
  45812. }
  45813. _converse.devicelists = new _converse.DeviceLists();
  45814. const storage = _converse.config.get('storage'),
  45815. id = `converse.devicelists-${_converse.bare_jid}`;
  45816. _converse.devicelists.browserStorage = new Backbone.BrowserStorage[storage](id);
  45817. fetchOwnDevices().then(() => restoreOMEMOSession()).then(() => _converse.omemo_store.publishBundle()).then(() => _converse.emit('OMEMOInitialized')).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  45818. }
  45819. _converse.api.listen.on('afterTearDown', () => {
  45820. if (_converse.devicelists) {
  45821. _converse.devicelists.reset();
  45822. }
  45823. delete _converse.omemo_store;
  45824. });
  45825. _converse.api.listen.on('connected', registerPEPPushHandler);
  45826. _converse.api.listen.on('renderToolbar', view => view.renderOMEMOToolbarButton());
  45827. _converse.api.listen.on('statusInitialized', initOMEMO);
  45828. _converse.api.listen.on('addClientFeatures', () => _converse.api.disco.own.features.add(`${Strophe.NS.OMEMO_DEVICELIST}+notify`));
  45829. _converse.api.listen.on('userDetailsModalInitialized', contact => {
  45830. const jid = contact.get('jid');
  45831. _converse.generateFingerprints(jid).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  45832. });
  45833. _converse.api.listen.on('profileModalInitialized', contact => {
  45834. _converse.generateFingerprints(_converse.bare_jid).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  45835. });
  45836. }
  45837. });
  45838. });
  45839. /***/ }),
  45840. /***/ "./src/converse-ping.js":
  45841. /*!******************************!*\
  45842. !*** ./src/converse-ping.js ***!
  45843. \******************************/
  45844. /*! no static exports found */
  45845. /***/ (function(module, exports, __webpack_require__) {
  45846. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  45847. // https://conversejs.org
  45848. //
  45849. // Copyright (c) 2013-2018, the Converse.js developers
  45850. // Licensed under the Mozilla Public License (MPLv2)
  45851. /* This is a Converse.js plugin which add support for application-level pings
  45852. * as specified in XEP-0199 XMPP Ping.
  45853. */
  45854. (function (root, factory) {
  45855. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! strophejs-plugin-ping */ "./node_modules/strophejs-plugin-ping/strophe.ping.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  45856. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  45857. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  45858. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  45859. })(this, function (converse) {
  45860. "use strict"; // Strophe methods for building stanzas
  45861. const _converse$env = converse.env,
  45862. Strophe = _converse$env.Strophe,
  45863. _ = _converse$env._;
  45864. converse.plugins.add('converse-ping', {
  45865. initialize() {
  45866. /* The initialize function gets called as soon as the plugin is
  45867. * loaded by converse.js's plugin machinery.
  45868. */
  45869. const _converse = this._converse;
  45870. _converse.api.settings.update({
  45871. ping_interval: 180 //in seconds
  45872. });
  45873. _converse.ping = function (jid, success, error, timeout) {
  45874. // XXX: We could first check here if the server advertised that
  45875. // it supports PING.
  45876. // However, some servers don't advertise while still keeping the
  45877. // connection option due to pings.
  45878. //
  45879. // var feature = _converse.disco_entities[_converse.domain].features.findWhere({'var': Strophe.NS.PING});
  45880. _converse.lastStanzaDate = new Date();
  45881. if (_.isNil(jid)) {
  45882. jid = Strophe.getDomainFromJid(_converse.bare_jid);
  45883. }
  45884. if (_.isUndefined(timeout)) {
  45885. timeout = null;
  45886. }
  45887. if (_.isUndefined(success)) {
  45888. success = null;
  45889. }
  45890. if (_.isUndefined(error)) {
  45891. error = null;
  45892. }
  45893. if (_converse.connection) {
  45894. _converse.connection.ping.ping(jid, success, error, timeout);
  45895. return true;
  45896. }
  45897. return false;
  45898. };
  45899. _converse.pong = function (ping) {
  45900. _converse.lastStanzaDate = new Date();
  45901. _converse.connection.ping.pong(ping);
  45902. return true;
  45903. };
  45904. _converse.registerPongHandler = function () {
  45905. if (!_.isUndefined(_converse.connection.disco)) {
  45906. _converse.api.disco.own.features.add(Strophe.NS.PING);
  45907. }
  45908. _converse.connection.ping.addPingHandler(_converse.pong);
  45909. };
  45910. _converse.registerPingHandler = function () {
  45911. _converse.registerPongHandler();
  45912. if (_converse.ping_interval > 0) {
  45913. _converse.connection.addHandler(function () {
  45914. /* Handler on each stanza, saves the received date
  45915. * in order to ping only when needed.
  45916. */
  45917. _converse.lastStanzaDate = new Date();
  45918. return true;
  45919. });
  45920. _converse.connection.addTimedHandler(1000, function () {
  45921. const now = new Date();
  45922. if (!_converse.lastStanzaDate) {
  45923. _converse.lastStanzaDate = now;
  45924. }
  45925. if ((now - _converse.lastStanzaDate) / 1000 > _converse.ping_interval) {
  45926. return _converse.ping();
  45927. }
  45928. return true;
  45929. });
  45930. }
  45931. };
  45932. const onConnected = function onConnected() {
  45933. // Wrapper so that we can spy on registerPingHandler in tests
  45934. _converse.registerPingHandler();
  45935. };
  45936. _converse.on('connected', onConnected);
  45937. _converse.on('reconnected', onConnected);
  45938. }
  45939. });
  45940. });
  45941. /***/ }),
  45942. /***/ "./src/converse-profile.js":
  45943. /*!*********************************!*\
  45944. !*** ./src/converse-profile.js ***!
  45945. \*********************************/
  45946. /*! no static exports found */
  45947. /***/ (function(module, exports, __webpack_require__) {
  45948. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  45949. // http://conversejs.org
  45950. //
  45951. // Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
  45952. // Licensed under the Mozilla Public License (MPLv2)
  45953. //
  45954. /*global define */
  45955. (function (root, factory) {
  45956. !(__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),
  45957. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  45958. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  45959. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  45960. })(this, function (converse, bootstrap, _FormData, tpl_alert, tpl_chat_status_modal, tpl_profile_modal, tpl_profile_view, tpl_status_option) {
  45961. "use strict";
  45962. const _converse$env = converse.env,
  45963. Strophe = _converse$env.Strophe,
  45964. Backbone = _converse$env.Backbone,
  45965. Promise = _converse$env.Promise,
  45966. utils = _converse$env.utils,
  45967. _ = _converse$env._,
  45968. moment = _converse$env.moment;
  45969. const u = converse.env.utils;
  45970. converse.plugins.add('converse-profile', {
  45971. dependencies: ["converse-modal", "converse-vcard", "converse-chatboxviews"],
  45972. initialize() {
  45973. /* The initialize function gets called as soon as the plugin is
  45974. * loaded by converse.js's plugin machinery.
  45975. */
  45976. const _converse = this._converse,
  45977. __ = _converse.__;
  45978. _converse.ProfileModal = _converse.BootstrapModal.extend({
  45979. events: {
  45980. 'click .change-avatar': "openFileSelection",
  45981. 'change input[type="file"': "updateFilePreview",
  45982. 'submit .profile-form': 'onFormSubmitted'
  45983. },
  45984. initialize() {
  45985. this.model.on('change', this.render, this);
  45986. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  45987. _converse.emit('profileModalInitialized', this.model);
  45988. },
  45989. toHTML() {
  45990. return tpl_profile_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  45991. '_': _,
  45992. '__': __,
  45993. '_converse': _converse,
  45994. 'alt_avatar': __('Your avatar image'),
  45995. 'heading_profile': __('Your Profile'),
  45996. 'label_close': __('Close'),
  45997. 'label_email': __('Email'),
  45998. 'label_fullname': __('Full Name'),
  45999. 'label_jid': __('XMPP Address (JID)'),
  46000. 'label_nickname': __('Nickname'),
  46001. 'label_role': __('Role'),
  46002. 'label_role_help': __('Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.'),
  46003. 'label_url': __('URL'),
  46004. 'utils': u,
  46005. 'view': this
  46006. }));
  46007. },
  46008. afterRender() {
  46009. this.tabs = _.map(this.el.querySelectorAll('.nav-item'), tab => new bootstrap.Tab(tab));
  46010. },
  46011. openFileSelection(ev) {
  46012. ev.preventDefault();
  46013. this.el.querySelector('input[type="file"]').click();
  46014. },
  46015. updateFilePreview(ev) {
  46016. const file = ev.target.files[0],
  46017. reader = new FileReader();
  46018. reader.onloadend = () => {
  46019. this.el.querySelector('.avatar').setAttribute('src', reader.result);
  46020. };
  46021. reader.readAsDataURL(file);
  46022. },
  46023. setVCard(data) {
  46024. _converse.api.vcard.set(_converse.bare_jid, data).then(() => _converse.api.vcard.update(this.model.vcard, true)).catch(err => {
  46025. _converse.log(err, Strophe.LogLevel.FATAL);
  46026. _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.")]);
  46027. });
  46028. this.modal.hide();
  46029. },
  46030. onFormSubmitted(ev) {
  46031. ev.preventDefault();
  46032. const reader = new FileReader(),
  46033. form_data = new FormData(ev.target),
  46034. image_file = form_data.get('image');
  46035. const data = {
  46036. 'fn': form_data.get('fn'),
  46037. 'nickname': form_data.get('nickname'),
  46038. 'role': form_data.get('role'),
  46039. 'email': form_data.get('email'),
  46040. 'url': form_data.get('url')
  46041. };
  46042. if (!image_file.size) {
  46043. _.extend(data, {
  46044. 'image': this.model.vcard.get('image'),
  46045. 'image_type': this.model.vcard.get('image_type')
  46046. });
  46047. this.setVCard(data);
  46048. } else {
  46049. reader.onloadend = () => {
  46050. _.extend(data, {
  46051. 'image': btoa(reader.result),
  46052. 'image_type': image_file.type
  46053. });
  46054. this.setVCard(data);
  46055. };
  46056. reader.readAsBinaryString(image_file);
  46057. }
  46058. }
  46059. });
  46060. _converse.ChatStatusModal = _converse.BootstrapModal.extend({
  46061. events: {
  46062. "submit form#set-xmpp-status": "onFormSubmitted",
  46063. "click .clear-input": "clearStatusMessage"
  46064. },
  46065. toHTML() {
  46066. return tpl_chat_status_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  46067. 'label_away': __('Away'),
  46068. 'label_close': __('Close'),
  46069. 'label_busy': __('Busy'),
  46070. 'label_cancel': __('Cancel'),
  46071. 'label_custom_status': __('Custom status'),
  46072. 'label_offline': __('Offline'),
  46073. 'label_online': __('Online'),
  46074. 'label_save': __('Save'),
  46075. 'label_xa': __('Away for long'),
  46076. 'modal_title': __('Change chat status'),
  46077. 'placeholder_status_message': __('Personal status message')
  46078. }));
  46079. },
  46080. afterRender() {
  46081. this.el.addEventListener('shown.bs.modal', () => {
  46082. this.el.querySelector('input[name="status_message"]').focus();
  46083. }, false);
  46084. },
  46085. clearStatusMessage(ev) {
  46086. if (ev && ev.preventDefault) {
  46087. ev.preventDefault();
  46088. u.hideElement(this.el.querySelector('.clear-input'));
  46089. }
  46090. const roster_filter = this.el.querySelector('input[name="status_message"]');
  46091. roster_filter.value = '';
  46092. },
  46093. onFormSubmitted(ev) {
  46094. ev.preventDefault();
  46095. const data = new FormData(ev.target);
  46096. this.model.save({
  46097. 'status_message': data.get('status_message'),
  46098. 'status': data.get('chat_status')
  46099. });
  46100. this.modal.hide();
  46101. }
  46102. });
  46103. _converse.XMPPStatusView = _converse.VDOMViewWithAvatar.extend({
  46104. tagName: "div",
  46105. events: {
  46106. "click a.show-profile": "showProfileModal",
  46107. "click a.change-status": "showStatusChangeModal",
  46108. "click .logout": "logOut"
  46109. },
  46110. initialize() {
  46111. this.model.on("change", this.render, this);
  46112. this.model.vcard.on("change", this.render, this);
  46113. },
  46114. toHTML() {
  46115. const chat_status = this.model.get('status') || 'offline';
  46116. return tpl_profile_view(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  46117. '__': __,
  46118. 'fullname': this.model.vcard.get('fullname') || _converse.bare_jid,
  46119. 'status_message': this.model.get('status_message') || __("I am %1$s", this.getPrettyStatus(chat_status)),
  46120. 'chat_status': chat_status,
  46121. '_converse': _converse,
  46122. 'title_change_settings': __('Change settings'),
  46123. 'title_change_status': __('Click to change your chat status'),
  46124. 'title_log_out': __('Log out'),
  46125. 'title_your_profile': __('Your profile')
  46126. }));
  46127. },
  46128. afterRender() {
  46129. this.renderAvatar();
  46130. },
  46131. showProfileModal(ev) {
  46132. if (_.isUndefined(this.profile_modal)) {
  46133. this.profile_modal = new _converse.ProfileModal({
  46134. model: this.model
  46135. });
  46136. }
  46137. this.profile_modal.show(ev);
  46138. },
  46139. showStatusChangeModal(ev) {
  46140. if (_.isUndefined(this.status_modal)) {
  46141. this.status_modal = new _converse.ChatStatusModal({
  46142. model: this.model
  46143. });
  46144. }
  46145. this.status_modal.show(ev);
  46146. },
  46147. logOut(ev) {
  46148. ev.preventDefault();
  46149. const result = confirm(__("Are you sure you want to log out?"));
  46150. if (result === true) {
  46151. _converse.logOut();
  46152. }
  46153. },
  46154. getPrettyStatus(stat) {
  46155. if (stat === 'chat') {
  46156. return __('online');
  46157. } else if (stat === 'dnd') {
  46158. return __('busy');
  46159. } else if (stat === 'xa') {
  46160. return __('away for long');
  46161. } else if (stat === 'away') {
  46162. return __('away');
  46163. } else if (stat === 'offline') {
  46164. return __('offline');
  46165. } else {
  46166. return __(stat) || __('online');
  46167. }
  46168. }
  46169. });
  46170. }
  46171. });
  46172. });
  46173. /***/ }),
  46174. /***/ "./src/converse-push.js":
  46175. /*!******************************!*\
  46176. !*** ./src/converse-push.js ***!
  46177. \******************************/
  46178. /*! no static exports found */
  46179. /***/ (function(module, exports, __webpack_require__) {
  46180. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  46181. // https://conversejs.org
  46182. //
  46183. // Copyright (c) 2013-2018, the Converse.js developers
  46184. // Licensed under the Mozilla Public License (MPLv2)
  46185. /* This is a Converse.js plugin which add support for registering
  46186. * an "App Server" as defined in XEP-0357
  46187. */
  46188. (function (root, factory) {
  46189. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  46190. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  46191. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  46192. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  46193. })(this, function (converse) {
  46194. "use strict";
  46195. const _converse$env = converse.env,
  46196. Strophe = _converse$env.Strophe,
  46197. $iq = _converse$env.$iq,
  46198. _ = _converse$env._;
  46199. Strophe.addNamespace('PUSH', 'urn:xmpp:push:0');
  46200. converse.plugins.add('converse-push', {
  46201. initialize() {
  46202. /* The initialize function gets called as soon as the plugin is
  46203. * loaded by converse.js's plugin machinery.
  46204. */
  46205. const _converse = this._converse,
  46206. __ = _converse.__;
  46207. _converse.api.settings.update({
  46208. 'push_app_servers': [],
  46209. 'enable_muc_push': false
  46210. });
  46211. async function disablePushAppServer(domain, push_app_server) {
  46212. if (!push_app_server.jid) {
  46213. return;
  46214. }
  46215. const result = await _converse.api.disco.supports(Strophe.NS.PUSH, domain || _converse.bare_jid);
  46216. if (!result.length) {
  46217. return _converse.log(`Not disabling push app server "${push_app_server.jid}", no disco support from your server.`, Strophe.LogLevel.WARN);
  46218. }
  46219. const stanza = $iq({
  46220. 'type': 'set'
  46221. });
  46222. if (domain !== _converse.bare_jid) {
  46223. stanza.attrs({
  46224. 'to': domain
  46225. });
  46226. }
  46227. stanza.c('disable', {
  46228. 'xmlns': Strophe.NS.PUSH,
  46229. 'jid': push_app_server.jid
  46230. });
  46231. if (push_app_server.node) {
  46232. stanza.attrs({
  46233. 'node': push_app_server.node
  46234. });
  46235. }
  46236. _converse.api.sendIQ(stanza).catch(e => {
  46237. _converse.log(`Could not disable push app server for ${push_app_server.jid}`, Strophe.LogLevel.ERROR);
  46238. _converse.log(e, Strophe.LogLevel.ERROR);
  46239. });
  46240. }
  46241. async function enablePushAppServer(domain, push_app_server) {
  46242. if (!push_app_server.jid || !push_app_server.node) {
  46243. return;
  46244. }
  46245. const identity = await _converse.api.disco.getIdentity('pubsub', 'push', push_app_server.jid);
  46246. if (!identity) {
  46247. return _converse.log(`Not enabling push the service "${push_app_server.jid}", it doesn't have the right disco identtiy.`, Strophe.LogLevel.WARN);
  46248. }
  46249. const result = await Promise.all([_converse.api.disco.supports(Strophe.NS.PUSH, push_app_server.jid), _converse.api.disco.supports(Strophe.NS.PUSH, domain)]);
  46250. if (!result[0].length && !result[1].length) {
  46251. return _converse.log(`Not enabling push app server "${push_app_server.jid}", no disco support from your server.`, Strophe.LogLevel.WARN);
  46252. }
  46253. const stanza = $iq({
  46254. 'type': 'set'
  46255. });
  46256. if (domain !== _converse.bare_jid) {
  46257. stanza.attrs({
  46258. 'to': domain
  46259. });
  46260. }
  46261. stanza.c('enable', {
  46262. 'xmlns': Strophe.NS.PUSH,
  46263. 'jid': push_app_server.jid,
  46264. 'node': push_app_server.node
  46265. });
  46266. if (push_app_server.secret) {
  46267. stanza.c('x', {
  46268. 'xmlns': Strophe.NS.XFORM,
  46269. 'type': 'submit'
  46270. }).c('field', {
  46271. 'var': 'FORM_TYPE'
  46272. }).c('value').t(`${Strophe.NS.PUBSUB}#publish-options`).up().up().c('field', {
  46273. 'var': 'secret'
  46274. }).c('value').t(push_app_server.secret);
  46275. }
  46276. return _converse.api.sendIQ(stanza);
  46277. }
  46278. async function enablePush(domain) {
  46279. domain = domain || _converse.bare_jid;
  46280. const push_enabled = _converse.session.get('push_enabled') || [];
  46281. if (_.includes(push_enabled, domain)) {
  46282. return;
  46283. }
  46284. const enabled_services = _.reject(_converse.push_app_servers, 'disable');
  46285. try {
  46286. await Promise.all(_.map(enabled_services, _.partial(enablePushAppServer, domain)));
  46287. } catch (e) {
  46288. _converse.log('Could not enable push App Server', Strophe.LogLevel.ERROR);
  46289. if (e) _converse.log(e, Strophe.LogLevel.ERROR);
  46290. } finally {
  46291. push_enabled.push(domain);
  46292. }
  46293. const disabled_services = _.filter(_converse.push_app_servers, 'disable');
  46294. _.each(disabled_services, _.partial(disablePushAppServer, domain));
  46295. _converse.session.save('push_enabled', push_enabled);
  46296. }
  46297. _converse.api.listen.on('statusInitialized', () => enablePush());
  46298. function onChatBoxAdded(model) {
  46299. if (model.get('type') == _converse.CHATROOMS_TYPE) {
  46300. enablePush(Strophe.getDomainFromJid(model.get('jid')));
  46301. }
  46302. }
  46303. if (_converse.enable_muc_push) {
  46304. _converse.api.listen.on('chatBoxesInitialized', () => _converse.chatboxes.on('add', onChatBoxAdded));
  46305. }
  46306. }
  46307. });
  46308. });
  46309. /***/ }),
  46310. /***/ "./src/converse-register.js":
  46311. /*!**********************************!*\
  46312. !*** ./src/converse-register.js ***!
  46313. \**********************************/
  46314. /*! no static exports found */
  46315. /***/ (function(module, exports, __webpack_require__) {
  46316. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  46317. // http://conversejs.org
  46318. //
  46319. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  46320. // Licensed under the Mozilla Public License (MPLv2)
  46321. //
  46322. /*global define */
  46323. /* This is a Converse.js plugin which add support for in-band registration
  46324. * as specified in XEP-0077.
  46325. */
  46326. (function (root, factory) {
  46327. !(__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),
  46328. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  46329. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  46330. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  46331. })(this, function (utils, converse, tpl_form_username, tpl_register_link, tpl_register_panel, tpl_registration_form, tpl_registration_request, tpl_form_input, tpl_spinner) {
  46332. "use strict"; // Strophe methods for building stanzas
  46333. const _converse$env = converse.env,
  46334. Strophe = _converse$env.Strophe,
  46335. Backbone = _converse$env.Backbone,
  46336. sizzle = _converse$env.sizzle,
  46337. $iq = _converse$env.$iq,
  46338. _ = _converse$env._; // Add Strophe Namespaces
  46339. Strophe.addNamespace('REGISTER', 'jabber:iq:register'); // Add Strophe Statuses
  46340. let i = 0;
  46341. _.each(_.keys(Strophe.Status), function (key) {
  46342. i = Math.max(i, Strophe.Status[key]);
  46343. });
  46344. Strophe.Status.REGIFAIL = i + 1;
  46345. Strophe.Status.REGISTERED = i + 2;
  46346. Strophe.Status.CONFLICT = i + 3;
  46347. Strophe.Status.NOTACCEPTABLE = i + 5;
  46348. converse.plugins.add('converse-register', {
  46349. 'overrides': {
  46350. // Overrides mentioned here will be picked up by converse.js's
  46351. // plugin architecture they will replace existing methods on the
  46352. // relevant objects or classes.
  46353. //
  46354. // New functions which don't exist yet can also be added.
  46355. LoginPanel: {
  46356. insertRegisterLink() {
  46357. const _converse = this.__super__._converse;
  46358. if (_.isUndefined(this.registerlinkview)) {
  46359. this.registerlinkview = new _converse.RegisterLinkView({
  46360. 'model': this.model
  46361. });
  46362. this.registerlinkview.render();
  46363. this.el.querySelector('.buttons').insertAdjacentElement('afterend', this.registerlinkview.el);
  46364. }
  46365. this.registerlinkview.render();
  46366. },
  46367. render(cfg) {
  46368. const _converse = this.__super__._converse;
  46369. this.__super__.render.apply(this, arguments);
  46370. if (_converse.allow_registration && !_converse.auto_login) {
  46371. this.insertRegisterLink();
  46372. }
  46373. return this;
  46374. }
  46375. },
  46376. ControlBoxView: {
  46377. initialize() {
  46378. this.__super__.initialize.apply(this, arguments);
  46379. this.model.on('change:active-form', this.showLoginOrRegisterForm.bind(this));
  46380. },
  46381. showLoginOrRegisterForm() {
  46382. const _converse = this.__super__._converse;
  46383. if (_.isNil(this.registerpanel)) {
  46384. return;
  46385. }
  46386. if (this.model.get('active-form') == "register") {
  46387. this.loginpanel.el.classList.add('hidden');
  46388. this.registerpanel.el.classList.remove('hidden');
  46389. } else {
  46390. this.loginpanel.el.classList.remove('hidden');
  46391. this.registerpanel.el.classList.add('hidden');
  46392. }
  46393. },
  46394. renderRegistrationPanel() {
  46395. const _converse = this.__super__._converse;
  46396. if (_converse.allow_registration) {
  46397. this.registerpanel = new _converse.RegisterPanel({
  46398. 'model': this.model
  46399. });
  46400. this.registerpanel.render();
  46401. this.registerpanel.el.classList.add('hidden');
  46402. this.el.querySelector('#converse-login-panel').insertAdjacentElement('afterend', this.registerpanel.el);
  46403. this.showLoginOrRegisterForm();
  46404. }
  46405. return this;
  46406. },
  46407. renderLoginPanel() {
  46408. /* Also render a registration panel, when rendering the
  46409. * login panel.
  46410. */
  46411. this.__super__.renderLoginPanel.apply(this, arguments);
  46412. this.renderRegistrationPanel();
  46413. return this;
  46414. }
  46415. }
  46416. },
  46417. initialize() {
  46418. /* The initialize function gets called as soon as the plugin is
  46419. * loaded by converse.js's plugin machinery.
  46420. */
  46421. const _converse = this._converse,
  46422. __ = _converse.__;
  46423. _converse.CONNECTION_STATUS[Strophe.Status.REGIFAIL] = 'REGIFAIL';
  46424. _converse.CONNECTION_STATUS[Strophe.Status.REGISTERED] = 'REGISTERED';
  46425. _converse.CONNECTION_STATUS[Strophe.Status.CONFLICT] = 'CONFLICT';
  46426. _converse.CONNECTION_STATUS[Strophe.Status.NOTACCEPTABLE] = 'NOTACCEPTABLE';
  46427. _converse.api.settings.update({
  46428. 'allow_registration': true,
  46429. 'domain_placeholder': __(" e.g. conversejs.org"),
  46430. // Placeholder text shown in the domain input on the registration form
  46431. 'providers_link': 'https://compliance.conversations.im/',
  46432. // Link to XMPP providers shown on registration page
  46433. 'registration_domain': ''
  46434. });
  46435. function setActiveForm(value) {
  46436. _converse.api.waitUntil('controlboxInitialized').then(() => {
  46437. const controlbox = _converse.chatboxes.get('controlbox');
  46438. controlbox.set({
  46439. 'active-form': value
  46440. });
  46441. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  46442. }
  46443. _converse.router.route('converse/login', _.partial(setActiveForm, 'login'));
  46444. _converse.router.route('converse/register', _.partial(setActiveForm, 'register'));
  46445. _converse.RegisterLinkView = Backbone.VDOMView.extend({
  46446. toHTML() {
  46447. return tpl_register_link(_.extend(this.model.toJSON(), {
  46448. '__': _converse.__,
  46449. '_converse': _converse,
  46450. 'connection_status': _converse.connfeedback.get('connection_status')
  46451. }));
  46452. }
  46453. });
  46454. _converse.RegisterPanel = Backbone.NativeView.extend({
  46455. tagName: 'div',
  46456. id: "converse-register-panel",
  46457. className: 'controlbox-pane fade-in',
  46458. events: {
  46459. 'submit form#converse-register': 'onFormSubmission',
  46460. 'click .button-cancel': 'renderProviderChoiceForm'
  46461. },
  46462. initialize(cfg) {
  46463. this.reset();
  46464. this.registerHooks();
  46465. },
  46466. render() {
  46467. this.model.set('registration_form_rendered', false);
  46468. this.el.innerHTML = tpl_register_panel({
  46469. '__': __,
  46470. 'default_domain': _converse.registration_domain,
  46471. 'label_register': __('Fetch registration form'),
  46472. 'help_providers': __('Tip: A list of public XMPP providers is available'),
  46473. 'help_providers_link': __('here'),
  46474. 'href_providers': _converse.providers_link,
  46475. 'domain_placeholder': _converse.domain_placeholder
  46476. });
  46477. if (_converse.registration_domain) {
  46478. this.fetchRegistrationForm(_converse.registration_domain);
  46479. }
  46480. return this;
  46481. },
  46482. registerHooks() {
  46483. /* Hook into Strophe's _connect_cb, so that we can send an IQ
  46484. * requesting the registration fields.
  46485. */
  46486. const conn = _converse.connection;
  46487. const connect_cb = conn._connect_cb.bind(conn);
  46488. conn._connect_cb = (req, callback, raw) => {
  46489. if (!this._registering) {
  46490. connect_cb(req, callback, raw);
  46491. } else {
  46492. if (this.getRegistrationFields(req, callback, raw)) {
  46493. this._registering = false;
  46494. }
  46495. }
  46496. };
  46497. },
  46498. getRegistrationFields(req, _callback, raw) {
  46499. /* Send an IQ stanza to the XMPP server asking for the
  46500. * registration fields.
  46501. * Parameters:
  46502. * (Strophe.Request) req - The current request
  46503. * (Function) callback
  46504. */
  46505. const conn = _converse.connection;
  46506. conn.connected = true;
  46507. const body = conn._proto._reqToData(req);
  46508. if (!body) {
  46509. return;
  46510. }
  46511. if (conn._proto._connect_cb(body) === Strophe.Status.CONNFAIL) {
  46512. this.showValidationError(__("Sorry, we're unable to connect to your chosen provider."));
  46513. return false;
  46514. }
  46515. const register = body.getElementsByTagName("register");
  46516. const mechanisms = body.getElementsByTagName("mechanism");
  46517. if (register.length === 0 && mechanisms.length === 0) {
  46518. conn._proto._no_auth_received(_callback);
  46519. return false;
  46520. }
  46521. if (register.length === 0) {
  46522. conn._changeConnectStatus(Strophe.Status.REGIFAIL);
  46523. this.showValidationError(__("Sorry, the given provider does not support in " + "band account registration. Please try with a " + "different provider."));
  46524. return true;
  46525. } // Send an IQ stanza to get all required data fields
  46526. conn._addSysHandler(this.onRegistrationFields.bind(this), null, "iq", null, null);
  46527. const stanza = $iq({
  46528. type: "get"
  46529. }).c("query", {
  46530. xmlns: Strophe.NS.REGISTER
  46531. }).tree();
  46532. stanza.setAttribute("id", conn.getUniqueId("sendIQ"));
  46533. conn.send(stanza);
  46534. conn.connected = false;
  46535. return true;
  46536. },
  46537. onRegistrationFields(stanza) {
  46538. /* Handler for Registration Fields Request.
  46539. *
  46540. * Parameters:
  46541. * (XMLElement) elem - The query stanza.
  46542. */
  46543. if (stanza.getAttribute("type") === "error") {
  46544. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, __('Something went wrong while establishing a connection with "%1$s". ' + 'Are you sure it exists?', this.domain));
  46545. return false;
  46546. }
  46547. if (stanza.getElementsByTagName("query").length !== 1) {
  46548. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, "unknown");
  46549. return false;
  46550. }
  46551. this.setFields(stanza);
  46552. if (!this.model.get('registration_form_rendered')) {
  46553. this.renderRegistrationForm(stanza);
  46554. }
  46555. return false;
  46556. },
  46557. reset(settings) {
  46558. const defaults = {
  46559. fields: {},
  46560. urls: [],
  46561. title: "",
  46562. instructions: "",
  46563. registered: false,
  46564. _registering: false,
  46565. domain: null,
  46566. form_type: null
  46567. };
  46568. _.extend(this, defaults);
  46569. if (settings) {
  46570. _.extend(this, _.pick(settings, _.keys(defaults)));
  46571. }
  46572. },
  46573. onFormSubmission(ev) {
  46574. /* Event handler when the #converse-register form is
  46575. * submitted.
  46576. *
  46577. * Depending on the available input fields, we delegate to
  46578. * other methods.
  46579. */
  46580. if (ev && ev.preventDefault) {
  46581. ev.preventDefault();
  46582. }
  46583. if (_.isNull(ev.target.querySelector('input[name=domain]'))) {
  46584. this.submitRegistrationForm(ev.target);
  46585. } else {
  46586. this.onProviderChosen(ev.target);
  46587. }
  46588. },
  46589. onProviderChosen(form) {
  46590. /* Callback method that gets called when the user has chosen an
  46591. * XMPP provider.
  46592. *
  46593. * Parameters:
  46594. * (HTMLElement) form - The form that was submitted
  46595. */
  46596. const domain_input = form.querySelector('input[name=domain]'),
  46597. domain = _.get(domain_input, 'value');
  46598. if (!domain) {
  46599. // TODO: add validation message
  46600. domain_input.classList.add('error');
  46601. return;
  46602. }
  46603. form.querySelector('input[type=submit]').classList.add('hidden');
  46604. this.fetchRegistrationForm(domain.trim());
  46605. },
  46606. fetchRegistrationForm(domain_name) {
  46607. /* This is called with a domain name based on which, it fetches a
  46608. * registration form from the requested domain.
  46609. *
  46610. * Parameters:
  46611. * (String) domain_name - XMPP server domain
  46612. */
  46613. if (!this.model.get('registration_form_rendered')) {
  46614. this.renderRegistrationRequest();
  46615. }
  46616. this.reset({
  46617. 'domain': Strophe.getDomainFromJid(domain_name),
  46618. '_registering': true
  46619. });
  46620. _converse.connection.connect(this.domain, "", this.onConnectStatusChanged.bind(this));
  46621. return false;
  46622. },
  46623. renderRegistrationRequest() {
  46624. /* Clear the form and inform the user that the registration
  46625. * form is being fetched.
  46626. */
  46627. this.clearRegistrationForm().insertAdjacentHTML('beforeend', tpl_registration_request({
  46628. '__': _converse.__,
  46629. 'cancel': _converse.registration_domain
  46630. }));
  46631. },
  46632. giveFeedback(message, klass) {
  46633. let feedback = this.el.querySelector('.reg-feedback');
  46634. if (!_.isNull(feedback)) {
  46635. feedback.parentNode.removeChild(feedback);
  46636. }
  46637. const form = this.el.querySelector('form');
  46638. form.insertAdjacentHTML('afterbegin', '<span class="reg-feedback"></span>');
  46639. feedback = form.querySelector('.reg-feedback');
  46640. feedback.textContent = message;
  46641. if (klass) {
  46642. feedback.classList.add(klass);
  46643. }
  46644. },
  46645. clearRegistrationForm() {
  46646. const form = this.el.querySelector('form');
  46647. form.innerHTML = '';
  46648. this.model.set('registration_form_rendered', false);
  46649. return form;
  46650. },
  46651. showSpinner() {
  46652. const form = this.el.querySelector('form');
  46653. form.innerHTML = tpl_spinner();
  46654. this.model.set('registration_form_rendered', false);
  46655. return this;
  46656. },
  46657. onConnectStatusChanged(status_code) {
  46658. /* Callback function called by Strophe whenever the
  46659. * connection status changes.
  46660. *
  46661. * Passed to Strophe specifically during a registration
  46662. * attempt.
  46663. *
  46664. * Parameters:
  46665. * (Integer) status_code - The Stroph.Status status code
  46666. */
  46667. _converse.log('converse-register: onConnectStatusChanged');
  46668. if (_.includes([Strophe.Status.DISCONNECTED, Strophe.Status.CONNFAIL, Strophe.Status.REGIFAIL, Strophe.Status.NOTACCEPTABLE, Strophe.Status.CONFLICT], status_code)) {
  46669. _converse.log(`Problem during registration: Strophe.Status is ${_converse.CONNECTION_STATUS[status_code]}`, Strophe.LogLevel.ERROR);
  46670. this.abortRegistration();
  46671. } else if (status_code === Strophe.Status.REGISTERED) {
  46672. _converse.log("Registered successfully.");
  46673. _converse.connection.reset();
  46674. this.showSpinner();
  46675. if (_.includes(["converse/login", "converse/register"], Backbone.history.getFragment())) {
  46676. _converse.router.navigate('', {
  46677. 'replace': true
  46678. });
  46679. }
  46680. if (this.fields.password && this.fields.username) {
  46681. // automatically log the user in
  46682. _converse.connection.connect(this.fields.username.toLowerCase() + '@' + this.domain.toLowerCase(), this.fields.password, _converse.onConnectStatusChanged);
  46683. this.giveFeedback(__('Now logging you in'), 'info');
  46684. } else {
  46685. _converse.chatboxviews.get('controlbox').renderLoginPanel();
  46686. _converse.giveFeedback(__('Registered successfully'));
  46687. }
  46688. this.reset();
  46689. }
  46690. },
  46691. renderLegacyRegistrationForm(form) {
  46692. _.each(_.keys(this.fields), key => {
  46693. if (key === "username") {
  46694. form.insertAdjacentHTML('beforeend', tpl_form_username({
  46695. 'domain': ` @${this.domain}`,
  46696. 'name': key,
  46697. 'type': "text",
  46698. 'label': key,
  46699. 'value': '',
  46700. 'required': true
  46701. }));
  46702. } else {
  46703. form.insertAdjacentHTML('beforeend', tpl_form_input({
  46704. 'label': key,
  46705. 'name': key,
  46706. 'placeholder': key,
  46707. 'required': true,
  46708. 'type': key === 'password' || key === 'email' ? key : "text",
  46709. 'value': ''
  46710. }));
  46711. }
  46712. }); // Show urls
  46713. _.each(this.urls, url => {
  46714. form.insertAdjacentHTML('afterend', '<a target="blank" rel="noopener" href="' + url + '">' + url + '</a>');
  46715. });
  46716. },
  46717. renderRegistrationForm(stanza) {
  46718. /* Renders the registration form based on the XForm fields
  46719. * received from the XMPP server.
  46720. *
  46721. * Parameters:
  46722. * (XMLElement) stanza - The IQ stanza received from the XMPP server.
  46723. */
  46724. const form = this.el.querySelector('form');
  46725. form.innerHTML = tpl_registration_form({
  46726. '__': _converse.__,
  46727. 'domain': this.domain,
  46728. 'title': this.title,
  46729. 'instructions': this.instructions,
  46730. 'registration_domain': _converse.registration_domain
  46731. });
  46732. const buttons = form.querySelector('fieldset.buttons');
  46733. if (this.form_type === 'xform') {
  46734. _.each(stanza.querySelectorAll('field'), field => {
  46735. buttons.insertAdjacentHTML('beforebegin', utils.xForm2webForm(field, stanza, this.domain));
  46736. });
  46737. } else {
  46738. this.renderLegacyRegistrationForm(form);
  46739. }
  46740. if (!this.fields) {
  46741. form.querySelector('.button-primary').classList.add('hidden');
  46742. }
  46743. form.classList.remove('hidden');
  46744. this.model.set('registration_form_rendered', true);
  46745. },
  46746. showValidationError(message) {
  46747. const form = this.el.querySelector('form');
  46748. let flash = form.querySelector('.form-errors');
  46749. if (_.isNull(flash)) {
  46750. flash = '<div class="form-errors hidden"></div>';
  46751. const instructions = form.querySelector('p.instructions');
  46752. if (_.isNull(instructions)) {
  46753. form.insertAdjacentHTML('afterbegin', flash);
  46754. } else {
  46755. instructions.insertAdjacentHTML('afterend', flash);
  46756. }
  46757. flash = form.querySelector('.form-errors');
  46758. } else {
  46759. flash.innerHTML = '';
  46760. }
  46761. flash.insertAdjacentHTML('beforeend', '<p class="form-help error">' + message + '</p>');
  46762. flash.classList.remove('hidden');
  46763. },
  46764. reportErrors(stanza) {
  46765. /* Report back to the user any error messages received from the
  46766. * XMPP server after attempted registration.
  46767. *
  46768. * Parameters:
  46769. * (XMLElement) stanza - The IQ stanza received from the
  46770. * XMPP server.
  46771. */
  46772. const errors = stanza.querySelectorAll('error');
  46773. _.each(errors, error => {
  46774. this.showValidationError(error.textContent);
  46775. });
  46776. if (!errors.length) {
  46777. const message = __('The provider rejected your registration attempt. ' + 'Please check the values you entered for correctness.');
  46778. this.showValidationError(message);
  46779. }
  46780. },
  46781. renderProviderChoiceForm(ev) {
  46782. if (ev && ev.preventDefault) {
  46783. ev.preventDefault();
  46784. }
  46785. _converse.connection._proto._abortAllRequests();
  46786. _converse.connection.reset();
  46787. this.render();
  46788. },
  46789. abortRegistration() {
  46790. _converse.connection._proto._abortAllRequests();
  46791. _converse.connection.reset();
  46792. if (this.model.get('registration_form_rendered')) {
  46793. if (_converse.registration_domain && this.model.get('registration_form_rendered')) {
  46794. this.fetchRegistrationForm(_converse.registration_domain);
  46795. }
  46796. } else {
  46797. this.render();
  46798. }
  46799. },
  46800. submitRegistrationForm(form) {
  46801. /* Handler, when the user submits the registration form.
  46802. * Provides form error feedback or starts the registration
  46803. * process.
  46804. *
  46805. * Parameters:
  46806. * (HTMLElement) form - The HTML form that was submitted
  46807. */
  46808. const has_empty_inputs = _.reduce(this.el.querySelectorAll('input.required'), function (result, input) {
  46809. if (input.value === '') {
  46810. input.classList.add('error');
  46811. return result + 1;
  46812. }
  46813. return result;
  46814. }, 0);
  46815. if (has_empty_inputs) {
  46816. return;
  46817. }
  46818. const inputs = sizzle(':input:not([type=button]):not([type=submit])', form),
  46819. iq = $iq({
  46820. 'type': 'set',
  46821. 'id': _converse.connection.getUniqueId()
  46822. }).c("query", {
  46823. xmlns: Strophe.NS.REGISTER
  46824. });
  46825. if (this.form_type === 'xform') {
  46826. iq.c("x", {
  46827. xmlns: Strophe.NS.XFORM,
  46828. type: 'submit'
  46829. });
  46830. _.each(inputs, input => {
  46831. iq.cnode(utils.webForm2xForm(input)).up();
  46832. });
  46833. } else {
  46834. _.each(inputs, input => {
  46835. iq.c(input.getAttribute('name'), {}, input.value);
  46836. });
  46837. }
  46838. _converse.connection._addSysHandler(this._onRegisterIQ.bind(this), null, "iq", null, null);
  46839. _converse.connection.send(iq);
  46840. this.setFields(iq.tree());
  46841. },
  46842. setFields(stanza) {
  46843. /* Stores the values that will be sent to the XMPP server
  46844. * during attempted registration.
  46845. *
  46846. * Parameters:
  46847. * (XMLElement) stanza - the IQ stanza that will be sent to the XMPP server.
  46848. */
  46849. const query = stanza.querySelector('query');
  46850. const xform = sizzle(`x[xmlns="${Strophe.NS.XFORM}"]`, query);
  46851. if (xform.length > 0) {
  46852. this._setFieldsFromXForm(xform.pop());
  46853. } else {
  46854. this._setFieldsFromLegacy(query);
  46855. }
  46856. },
  46857. _setFieldsFromLegacy(query) {
  46858. _.each(query.children, field => {
  46859. if (field.tagName.toLowerCase() === 'instructions') {
  46860. this.instructions = Strophe.getText(field);
  46861. return;
  46862. } else if (field.tagName.toLowerCase() === 'x') {
  46863. if (field.getAttribute('xmlns') === 'jabber:x:oob') {
  46864. this.urls.concat(_.map(field.querySelectorAll('url'), 'textContent'));
  46865. }
  46866. return;
  46867. }
  46868. this.fields[field.tagName.toLowerCase()] = Strophe.getText(field);
  46869. });
  46870. this.form_type = 'legacy';
  46871. },
  46872. _setFieldsFromXForm(xform) {
  46873. this.title = _.get(xform.querySelector('title'), 'textContent');
  46874. this.instructions = _.get(xform.querySelector('instructions'), 'textContent');
  46875. _.each(xform.querySelectorAll('field'), field => {
  46876. const _var = field.getAttribute('var');
  46877. if (_var) {
  46878. this.fields[_var.toLowerCase()] = _.get(field.querySelector('value'), 'textContent', '');
  46879. } else {
  46880. // TODO: other option seems to be type="fixed"
  46881. _converse.log("Found field we couldn't parse", Strophe.LogLevel.WARN);
  46882. }
  46883. });
  46884. this.form_type = 'xform';
  46885. },
  46886. _onRegisterIQ(stanza) {
  46887. /* Callback method that gets called when a return IQ stanza
  46888. * is received from the XMPP server, after attempting to
  46889. * register a new user.
  46890. *
  46891. * Parameters:
  46892. * (XMLElement) stanza - The IQ stanza.
  46893. */
  46894. if (stanza.getAttribute("type") === "error") {
  46895. _converse.log("Registration failed.", Strophe.LogLevel.ERROR);
  46896. this.reportErrors(stanza);
  46897. let error = stanza.getElementsByTagName("error");
  46898. if (error.length !== 1) {
  46899. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, "unknown");
  46900. return false;
  46901. }
  46902. error = error[0].firstChild.tagName.toLowerCase();
  46903. if (error === 'conflict') {
  46904. _converse.connection._changeConnectStatus(Strophe.Status.CONFLICT, error);
  46905. } else if (error === 'not-acceptable') {
  46906. _converse.connection._changeConnectStatus(Strophe.Status.NOTACCEPTABLE, error);
  46907. } else {
  46908. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, error);
  46909. }
  46910. } else {
  46911. _converse.connection._changeConnectStatus(Strophe.Status.REGISTERED, null);
  46912. }
  46913. return false;
  46914. }
  46915. });
  46916. }
  46917. });
  46918. });
  46919. /***/ }),
  46920. /***/ "./src/converse-roomslist.js":
  46921. /*!***********************************!*\
  46922. !*** ./src/converse-roomslist.js ***!
  46923. \***********************************/
  46924. /*! no static exports found */
  46925. /***/ (function(module, exports, __webpack_require__) {
  46926. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  46927. // http://conversejs.org
  46928. //
  46929. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  46930. // Licensed under the Mozilla Public License (MPLv2)
  46931. //
  46932. /*global define */
  46933. /* This is a non-core Converse.js plugin which shows a list of currently open
  46934. * rooms in the "Rooms Panel" of the ControlBox.
  46935. */
  46936. (function (root, factory) {
  46937. !(__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),
  46938. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  46939. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  46940. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  46941. })(this, function (converse, muc, tpl_rooms_list, tpl_rooms_list_item) {
  46942. const _converse$env = converse.env,
  46943. Backbone = _converse$env.Backbone,
  46944. Promise = _converse$env.Promise,
  46945. Strophe = _converse$env.Strophe,
  46946. b64_sha1 = _converse$env.b64_sha1,
  46947. sizzle = _converse$env.sizzle,
  46948. _ = _converse$env._;
  46949. const u = converse.env.utils;
  46950. converse.plugins.add('converse-roomslist', {
  46951. /* Optional dependencies are other plugins which might be
  46952. * overridden or relied upon, and therefore need to be loaded before
  46953. * this plugin. They are called "optional" because they might not be
  46954. * available, in which case any overrides applicable to them will be
  46955. * ignored.
  46956. *
  46957. * It's possible however to make optional dependencies non-optional.
  46958. * If the setting "strict_plugin_dependencies" is set to true,
  46959. * an error will be raised if the plugin is not found.
  46960. *
  46961. * NB: These plugins need to have already been loaded via require.js.
  46962. */
  46963. dependencies: ["converse-singleton", "converse-controlbox", "converse-muc", "converse-bookmarks"],
  46964. initialize() {
  46965. /* The initialize function gets called as soon as the plugin is
  46966. * loaded by converse.js's plugin machinery.
  46967. */
  46968. const _converse = this._converse,
  46969. __ = _converse.__;
  46970. _converse.OpenRooms = Backbone.Collection.extend({
  46971. comparator(room) {
  46972. if (room.get('bookmarked')) {
  46973. const bookmark = _.head(_converse.bookmarksview.model.where({
  46974. 'jid': room.get('jid')
  46975. }));
  46976. return bookmark.get('name');
  46977. } else {
  46978. return room.get('name');
  46979. }
  46980. },
  46981. initialize() {
  46982. _converse.chatboxes.on('add', this.onChatBoxAdded, this);
  46983. _converse.chatboxes.on('change:hidden', this.onChatBoxChanged, this);
  46984. _converse.chatboxes.on('change:bookmarked', this.onChatBoxChanged, this);
  46985. _converse.chatboxes.on('change:name', this.onChatBoxChanged, this);
  46986. _converse.chatboxes.on('change:num_unread', this.onChatBoxChanged, this);
  46987. _converse.chatboxes.on('change:num_unread_general', this.onChatBoxChanged, this);
  46988. _converse.chatboxes.on('remove', this.onChatBoxRemoved, this);
  46989. this.reset(_.map(_converse.chatboxes.where({
  46990. 'type': 'chatroom'
  46991. }), 'attributes'));
  46992. },
  46993. onChatBoxAdded(item) {
  46994. if (item.get('type') === 'chatroom') {
  46995. this.create(item.attributes);
  46996. }
  46997. },
  46998. onChatBoxChanged(item) {
  46999. if (item.get('type') === 'chatroom') {
  47000. const room = this.get(item.get('jid'));
  47001. if (!_.isNil(room)) {
  47002. room.set(item.attributes);
  47003. }
  47004. }
  47005. },
  47006. onChatBoxRemoved(item) {
  47007. if (item.get('type') === 'chatroom') {
  47008. const room = this.get(item.get('jid'));
  47009. this.remove(room);
  47010. }
  47011. }
  47012. });
  47013. _converse.RoomsList = Backbone.Model.extend({
  47014. defaults: {
  47015. "toggle-state": _converse.OPENED
  47016. }
  47017. });
  47018. _converse.RoomsListElementView = Backbone.VDOMView.extend({
  47019. events: {
  47020. 'click .room-info': 'showRoomDetailsModal'
  47021. },
  47022. initialize() {
  47023. this.model.on('destroy', this.remove, this);
  47024. this.model.on('remove', this.remove, this);
  47025. this.model.on('change:bookmarked', this.render, this);
  47026. this.model.on('change:hidden', this.render, this);
  47027. this.model.on('change:name', this.render, this);
  47028. this.model.on('change:num_unread', this.render, this);
  47029. this.model.on('change:num_unread_general', this.render, this);
  47030. },
  47031. toHTML() {
  47032. return tpl_rooms_list_item(_.extend(this.model.toJSON(), {
  47033. // XXX: By the time this renders, the _converse.bookmarks
  47034. // collection should already exist if bookmarks are
  47035. // supported by the XMPP server. So we can use it
  47036. // as a check for support (other ways of checking are async).
  47037. 'allow_bookmarks': _converse.allow_bookmarks && _converse.bookmarks,
  47038. 'currently_open': _converse.isSingleton() && !this.model.get('hidden'),
  47039. 'info_leave_room': __('Leave this groupchat'),
  47040. 'info_remove_bookmark': __('Unbookmark this groupchat'),
  47041. 'info_add_bookmark': __('Bookmark this groupchat'),
  47042. 'info_title': __('Show more information on this groupchat'),
  47043. 'name': this.getRoomsListElementName(),
  47044. 'open_title': __('Click to open this groupchat')
  47045. }));
  47046. },
  47047. showRoomDetailsModal(ev) {
  47048. const room = _converse.chatboxes.get(this.model.get('jid'));
  47049. ev.preventDefault();
  47050. if (_.isUndefined(room.room_details_modal)) {
  47051. room.room_details_modal = new _converse.RoomDetailsModal({
  47052. 'model': room
  47053. });
  47054. }
  47055. room.room_details_modal.show(ev);
  47056. },
  47057. getRoomsListElementName() {
  47058. if (this.model.get('bookmarked') && _converse.bookmarksview) {
  47059. const bookmark = _.head(_converse.bookmarksview.model.where({
  47060. 'jid': this.model.get('jid')
  47061. }));
  47062. return bookmark.get('name');
  47063. } else {
  47064. return this.model.get('name');
  47065. }
  47066. }
  47067. });
  47068. _converse.RoomsListView = Backbone.OrderedListView.extend({
  47069. tagName: 'div',
  47070. className: 'open-rooms-list list-container rooms-list-container',
  47071. events: {
  47072. 'click .add-bookmark': 'addBookmark',
  47073. 'click .close-room': 'closeRoom',
  47074. 'click .list-toggle': 'toggleRoomsList',
  47075. 'click .remove-bookmark': 'removeBookmark',
  47076. 'click .open-room': 'openRoom'
  47077. },
  47078. listSelector: '.rooms-list',
  47079. ItemView: _converse.RoomsListElementView,
  47080. subviewIndex: 'jid',
  47081. initialize() {
  47082. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  47083. this.model.on('add', this.showOrHide, this);
  47084. this.model.on('remove', this.showOrHide, this);
  47085. const storage = _converse.config.get('storage'),
  47086. id = b64_sha1(`converse.roomslist${_converse.bare_jid}`);
  47087. this.list_model = new _converse.RoomsList({
  47088. 'id': id
  47089. });
  47090. this.list_model.browserStorage = new Backbone.BrowserStorage[storage](id);
  47091. this.list_model.fetch();
  47092. this.render();
  47093. this.sortAndPositionAllItems();
  47094. },
  47095. render() {
  47096. this.el.innerHTML = tpl_rooms_list({
  47097. 'toggle_state': this.list_model.get('toggle-state'),
  47098. 'desc_rooms': __('Click to toggle the list of open groupchats'),
  47099. 'label_rooms': __('Open Groupchats'),
  47100. '_converse': _converse
  47101. });
  47102. if (this.list_model.get('toggle-state') !== _converse.OPENED) {
  47103. this.el.querySelector('.open-rooms-list').classList.add('collapsed');
  47104. }
  47105. this.showOrHide();
  47106. this.insertIntoControlBox();
  47107. return this;
  47108. },
  47109. insertIntoControlBox() {
  47110. const controlboxview = _converse.chatboxviews.get('controlbox');
  47111. if (!_.isUndefined(controlboxview) && !u.rootContains(_converse.root, this.el)) {
  47112. const el = controlboxview.el.querySelector('.open-rooms-list');
  47113. if (!_.isNull(el)) {
  47114. el.parentNode.replaceChild(this.el, el);
  47115. }
  47116. }
  47117. },
  47118. hide() {
  47119. u.hideElement(this.el);
  47120. },
  47121. show() {
  47122. u.showElement(this.el);
  47123. },
  47124. openRoom(ev) {
  47125. ev.preventDefault();
  47126. const name = ev.target.textContent;
  47127. const jid = ev.target.getAttribute('data-room-jid');
  47128. const data = {
  47129. 'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
  47130. };
  47131. _converse.api.rooms.open(jid, data);
  47132. },
  47133. closeRoom(ev) {
  47134. ev.preventDefault();
  47135. const name = ev.target.getAttribute('data-room-name');
  47136. const jid = ev.target.getAttribute('data-room-jid');
  47137. if (confirm(__("Are you sure you want to leave the groupchat %1$s?", name))) {
  47138. // TODO: replace with API call
  47139. _converse.chatboxviews.get(jid).close();
  47140. }
  47141. },
  47142. showOrHide(item) {
  47143. if (!this.model.models.length) {
  47144. u.hideElement(this.el);
  47145. } else {
  47146. u.showElement(this.el);
  47147. }
  47148. },
  47149. removeBookmark: _converse.removeBookmarkViaEvent,
  47150. addBookmark: _converse.addBookmarkViaEvent,
  47151. toggleRoomsList(ev) {
  47152. if (ev && ev.preventDefault) {
  47153. ev.preventDefault();
  47154. }
  47155. const icon_el = ev.target.querySelector('.fa');
  47156. if (icon_el.classList.contains("fa-caret-down")) {
  47157. u.slideIn(this.el.querySelector('.open-rooms-list')).then(() => {
  47158. this.list_model.save({
  47159. 'toggle-state': _converse.CLOSED
  47160. });
  47161. icon_el.classList.remove("fa-caret-down");
  47162. icon_el.classList.add("fa-caret-right");
  47163. });
  47164. } else {
  47165. u.slideOut(this.el.querySelector('.open-rooms-list')).then(() => {
  47166. this.list_model.save({
  47167. 'toggle-state': _converse.OPENED
  47168. });
  47169. icon_el.classList.remove("fa-caret-right");
  47170. icon_el.classList.add("fa-caret-down");
  47171. });
  47172. }
  47173. }
  47174. });
  47175. const initRoomsListView = function initRoomsListView() {
  47176. const storage = _converse.config.get('storage'),
  47177. id = b64_sha1(`converse.open-rooms-{_converse.bare_jid}`),
  47178. model = new _converse.OpenRooms();
  47179. model.browserStorage = new Backbone.BrowserStorage[storage](id);
  47180. _converse.rooms_list_view = new _converse.RoomsListView({
  47181. 'model': model
  47182. });
  47183. };
  47184. if (_converse.allow_bookmarks) {
  47185. u.onMultipleEvents([{
  47186. 'object': _converse,
  47187. 'event': 'chatBoxesFetched'
  47188. }, {
  47189. 'object': _converse,
  47190. 'event': 'roomsPanelRendered'
  47191. }, {
  47192. 'object': _converse,
  47193. 'event': 'bookmarksInitialized'
  47194. }], initRoomsListView);
  47195. } else {
  47196. u.onMultipleEvents([{
  47197. 'object': _converse,
  47198. 'event': 'chatBoxesFetched'
  47199. }, {
  47200. 'object': _converse,
  47201. 'event': 'roomsPanelRendered'
  47202. }], initRoomsListView);
  47203. }
  47204. _converse.api.listen.on('reconnected', initRoomsListView);
  47205. }
  47206. });
  47207. });
  47208. /***/ }),
  47209. /***/ "./src/converse-roster.js":
  47210. /*!********************************!*\
  47211. !*** ./src/converse-roster.js ***!
  47212. \********************************/
  47213. /*! no static exports found */
  47214. /***/ (function(module, exports, __webpack_require__) {
  47215. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  47216. // http://conversejs.org
  47217. //
  47218. // Copyright (c) 2012-2018, the Converse.js developers
  47219. // Licensed under the Mozilla Public License (MPLv2)
  47220. (function (root, factory) {
  47221. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  47222. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  47223. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  47224. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  47225. })(this, function (converse) {
  47226. "use strict";
  47227. const _converse$env = converse.env,
  47228. Backbone = _converse$env.Backbone,
  47229. Promise = _converse$env.Promise,
  47230. Strophe = _converse$env.Strophe,
  47231. $iq = _converse$env.$iq,
  47232. $pres = _converse$env.$pres,
  47233. b64_sha1 = _converse$env.b64_sha1,
  47234. moment = _converse$env.moment,
  47235. sizzle = _converse$env.sizzle,
  47236. _ = _converse$env._;
  47237. const u = converse.env.utils;
  47238. converse.plugins.add('converse-roster', {
  47239. dependencies: ["converse-vcard"],
  47240. initialize() {
  47241. /* The initialize function gets called as soon as the plugin is
  47242. * loaded by converse.js's plugin machinery.
  47243. */
  47244. const _converse = this._converse,
  47245. __ = _converse.__;
  47246. _converse.api.settings.update({
  47247. 'allow_contact_requests': true,
  47248. 'auto_subscribe': false,
  47249. 'synchronize_availability': true
  47250. });
  47251. _converse.api.promises.add(['cachedRoster', 'roster', 'rosterContactsFetched', 'rosterGroupsFetched', 'rosterInitialized']);
  47252. _converse.registerPresenceHandler = function () {
  47253. _converse.unregisterPresenceHandler();
  47254. _converse.presence_ref = _converse.connection.addHandler(function (presence) {
  47255. _converse.roster.presenceHandler(presence);
  47256. return true;
  47257. }, null, 'presence', null);
  47258. };
  47259. _converse.initRoster = function () {
  47260. /* Initialize the Bakcbone collections that represent the contats
  47261. * roster and the roster groups.
  47262. */
  47263. const storage = _converse.config.get('storage');
  47264. _converse.roster = new _converse.RosterContacts();
  47265. _converse.roster.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1(`converse.contacts-${_converse.bare_jid}`));
  47266. _converse.roster.data = new Backbone.Model();
  47267. const id = b64_sha1(`converse-roster-model-${_converse.bare_jid}`);
  47268. _converse.roster.data.id = id;
  47269. _converse.roster.data.browserStorage = new Backbone.BrowserStorage[storage](id);
  47270. _converse.roster.data.fetch();
  47271. _converse.rostergroups = new _converse.RosterGroups();
  47272. _converse.rostergroups.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1(`converse.roster.groups${_converse.bare_jid}`));
  47273. _converse.emit('rosterInitialized');
  47274. };
  47275. _converse.populateRoster = function (ignore_cache = false) {
  47276. /* Fetch all the roster groups, and then the roster contacts.
  47277. * Emit an event after fetching is done in each case.
  47278. *
  47279. * Parameters:
  47280. * (Bool) ignore_cache - If set to to true, the local cache
  47281. * will be ignored it's guaranteed that the XMPP server
  47282. * will be queried for the roster.
  47283. */
  47284. if (ignore_cache) {
  47285. _converse.send_initial_presence = true;
  47286. _converse.roster.fetchFromServer().then(() => {
  47287. _converse.emit('rosterContactsFetched');
  47288. _converse.sendInitialPresence();
  47289. }).catch(reason => {
  47290. _converse.log(reason, Strophe.LogLevel.ERROR);
  47291. _converse.sendInitialPresence();
  47292. });
  47293. } else {
  47294. _converse.rostergroups.fetchRosterGroups().then(() => {
  47295. _converse.emit('rosterGroupsFetched');
  47296. return _converse.roster.fetchRosterContacts();
  47297. }).then(() => {
  47298. _converse.emit('rosterContactsFetched');
  47299. _converse.sendInitialPresence();
  47300. }).catch(reason => {
  47301. _converse.log(reason, Strophe.LogLevel.ERROR);
  47302. _converse.sendInitialPresence();
  47303. });
  47304. }
  47305. };
  47306. _converse.Presence = Backbone.Model.extend({
  47307. defaults() {
  47308. return {
  47309. 'show': 'offline',
  47310. 'resources': {}
  47311. };
  47312. },
  47313. getHighestPriorityResource() {
  47314. /* Return the resource with the highest priority.
  47315. *
  47316. * If multiple resources have the same priority, take the
  47317. * latest one.
  47318. */
  47319. const resources = this.get('resources');
  47320. if (_.isObject(resources) && _.size(resources)) {
  47321. const val = _.flow(_.values, _.partial(_.sortBy, _, ['priority', 'timestamp']), _.reverse)(resources)[0];
  47322. if (!_.isUndefined(val)) {
  47323. return val;
  47324. }
  47325. }
  47326. },
  47327. addResource(presence) {
  47328. /* Adds a new resource and it's associated attributes as taken
  47329. * from the passed in presence stanza.
  47330. *
  47331. * Also updates the presence if the resource has higher priority (and is newer).
  47332. */
  47333. const jid = presence.getAttribute('from'),
  47334. show = _.propertyOf(presence.querySelector('show'))('textContent') || 'online',
  47335. resource = Strophe.getResourceFromJid(jid),
  47336. delay = sizzle(`delay[xmlns="${Strophe.NS.DELAY}"]`, presence).pop(),
  47337. timestamp = _.isNil(delay) ? moment().format() : moment(delay.getAttribute('stamp')).format();
  47338. let priority = _.propertyOf(presence.querySelector('priority'))('textContent') || 0;
  47339. priority = _.isNaN(parseInt(priority, 10)) ? 0 : parseInt(priority, 10);
  47340. const resources = _.isObject(this.get('resources')) ? this.get('resources') : {};
  47341. resources[resource] = {
  47342. 'name': resource,
  47343. 'priority': priority,
  47344. 'show': show,
  47345. 'timestamp': timestamp
  47346. };
  47347. const changed = {
  47348. 'resources': resources
  47349. };
  47350. const hpr = this.getHighestPriorityResource();
  47351. if (priority == hpr.priority && timestamp == hpr.timestamp) {
  47352. // Only set the "global" presence if this is the newest resource
  47353. // with the highest priority
  47354. changed.show = show;
  47355. }
  47356. this.save(changed);
  47357. return resources;
  47358. },
  47359. removeResource(resource) {
  47360. /* Remove the passed in resource from the resources map.
  47361. *
  47362. * Also redetermines the presence given that there's one less
  47363. * resource.
  47364. */
  47365. let resources = this.get('resources');
  47366. if (!_.isObject(resources)) {
  47367. resources = {};
  47368. } else {
  47369. delete resources[resource];
  47370. }
  47371. this.save({
  47372. 'resources': resources,
  47373. 'show': _.propertyOf(this.getHighestPriorityResource())('show') || 'offline'
  47374. });
  47375. }
  47376. });
  47377. _converse.Presences = Backbone.Collection.extend({
  47378. model: _converse.Presence
  47379. });
  47380. _converse.ModelWithVCardAndPresence = Backbone.Model.extend({
  47381. initialize() {
  47382. this.setVCard();
  47383. this.setPresence();
  47384. },
  47385. setVCard() {
  47386. const jid = this.get('jid');
  47387. this.vcard = _converse.vcards.findWhere({
  47388. 'jid': jid
  47389. }) || _converse.vcards.create({
  47390. 'jid': jid
  47391. });
  47392. },
  47393. setPresence() {
  47394. const jid = this.get('jid');
  47395. this.presence = _converse.presences.findWhere({
  47396. 'jid': jid
  47397. }) || _converse.presences.create({
  47398. 'jid': jid
  47399. });
  47400. }
  47401. });
  47402. _converse.RosterContact = _converse.ModelWithVCardAndPresence.extend({
  47403. defaults: {
  47404. 'chat_state': undefined,
  47405. 'image': _converse.DEFAULT_IMAGE,
  47406. 'image_type': _converse.DEFAULT_IMAGE_TYPE,
  47407. 'num_unread': 0,
  47408. 'status': ''
  47409. },
  47410. initialize(attributes) {
  47411. _converse.ModelWithVCardAndPresence.prototype.initialize.apply(this, arguments);
  47412. const jid = attributes.jid,
  47413. bare_jid = Strophe.getBareJidFromJid(jid).toLowerCase(),
  47414. resource = Strophe.getResourceFromJid(jid);
  47415. attributes.jid = bare_jid;
  47416. this.set(_.assignIn({
  47417. 'groups': [],
  47418. 'id': bare_jid,
  47419. 'jid': bare_jid,
  47420. 'user_id': Strophe.getNodeFromJid(jid)
  47421. }, attributes));
  47422. this.setChatBox();
  47423. this.presence.on('change:show', () => _converse.emit('contactPresenceChanged', this));
  47424. this.presence.on('change:show', () => this.trigger('presenceChanged'));
  47425. },
  47426. setChatBox(chatbox = null) {
  47427. chatbox = chatbox || _converse.chatboxes.get(this.get('jid'));
  47428. if (chatbox) {
  47429. this.chatbox = chatbox;
  47430. this.chatbox.on('change:hidden', this.render, this);
  47431. }
  47432. },
  47433. getDisplayName() {
  47434. return this.get('nickname') || this.vcard.get('nickname') || this.vcard.get('fullname') || this.get('jid');
  47435. },
  47436. getFullname() {
  47437. return this.vcard.get('fullname');
  47438. },
  47439. subscribe(message) {
  47440. /* Send a presence subscription request to this roster contact
  47441. *
  47442. * Parameters:
  47443. * (String) message - An optional message to explain the
  47444. * reason for the subscription request.
  47445. */
  47446. const pres = $pres({
  47447. to: this.get('jid'),
  47448. type: "subscribe"
  47449. });
  47450. if (message && message !== "") {
  47451. pres.c("status").t(message).up();
  47452. }
  47453. const nick = _converse.xmppstatus.vcard.get('nickname') || _converse.xmppstatus.vcard.get('fullname');
  47454. if (nick) {
  47455. pres.c('nick', {
  47456. 'xmlns': Strophe.NS.NICK
  47457. }).t(nick).up();
  47458. }
  47459. _converse.connection.send(pres);
  47460. this.save('ask', "subscribe"); // ask === 'subscribe' Means we have asked to subscribe to them.
  47461. return this;
  47462. },
  47463. ackSubscribe() {
  47464. /* Upon receiving the presence stanza of type "subscribed",
  47465. * the user SHOULD acknowledge receipt of that subscription
  47466. * state notification by sending a presence stanza of type
  47467. * "subscribe" to the contact
  47468. */
  47469. _converse.connection.send($pres({
  47470. 'type': 'subscribe',
  47471. 'to': this.get('jid')
  47472. }));
  47473. },
  47474. ackUnsubscribe() {
  47475. /* Upon receiving the presence stanza of type "unsubscribed",
  47476. * the user SHOULD acknowledge receipt of that subscription state
  47477. * notification by sending a presence stanza of type "unsubscribe"
  47478. * this step lets the user's server know that it MUST no longer
  47479. * send notification of the subscription state change to the user.
  47480. * Parameters:
  47481. * (String) jid - The Jabber ID of the user who is unsubscribing
  47482. */
  47483. _converse.connection.send($pres({
  47484. 'type': 'unsubscribe',
  47485. 'to': this.get('jid')
  47486. }));
  47487. this.removeFromRoster();
  47488. this.destroy();
  47489. },
  47490. unauthorize(message) {
  47491. /* Unauthorize this contact's presence subscription
  47492. * Parameters:
  47493. * (String) message - Optional message to send to the person being unauthorized
  47494. */
  47495. _converse.rejectPresenceSubscription(this.get('jid'), message);
  47496. return this;
  47497. },
  47498. authorize(message) {
  47499. /* Authorize presence subscription
  47500. * Parameters:
  47501. * (String) message - Optional message to send to the person being authorized
  47502. */
  47503. const pres = $pres({
  47504. 'to': this.get('jid'),
  47505. 'type': "subscribed"
  47506. });
  47507. if (message && message !== "") {
  47508. pres.c("status").t(message);
  47509. }
  47510. _converse.connection.send(pres);
  47511. return this;
  47512. },
  47513. removeFromRoster(callback, errback) {
  47514. /* Instruct the XMPP server to remove this contact from our roster
  47515. * Parameters:
  47516. * (Function) callback
  47517. */
  47518. const iq = $iq({
  47519. type: 'set'
  47520. }).c('query', {
  47521. xmlns: Strophe.NS.ROSTER
  47522. }).c('item', {
  47523. jid: this.get('jid'),
  47524. subscription: "remove"
  47525. });
  47526. _converse.connection.sendIQ(iq, callback, errback);
  47527. return this;
  47528. }
  47529. });
  47530. _converse.RosterContacts = Backbone.Collection.extend({
  47531. model: _converse.RosterContact,
  47532. comparator(contact1, contact2) {
  47533. const status1 = contact1.presence.get('show') || 'offline';
  47534. const status2 = contact2.presence.get('show') || 'offline';
  47535. if (_converse.STATUS_WEIGHTS[status1] === _converse.STATUS_WEIGHTS[status2]) {
  47536. const name1 = contact1.getDisplayName().toLowerCase();
  47537. const name2 = contact2.getDisplayName().toLowerCase();
  47538. return name1 < name2 ? -1 : name1 > name2 ? 1 : 0;
  47539. } else {
  47540. return _converse.STATUS_WEIGHTS[status1] < _converse.STATUS_WEIGHTS[status2] ? -1 : 1;
  47541. }
  47542. },
  47543. onConnected() {
  47544. /* Called as soon as the connection has been established
  47545. * (either after initial login, or after reconnection).
  47546. *
  47547. * Use the opportunity to register stanza handlers.
  47548. */
  47549. this.registerRosterHandler();
  47550. this.registerRosterXHandler();
  47551. },
  47552. registerRosterHandler() {
  47553. /* Register a handler for roster IQ "set" stanzas, which update
  47554. * roster contacts.
  47555. */
  47556. _converse.connection.addHandler(iq => {
  47557. _converse.roster.onRosterPush(iq);
  47558. return true;
  47559. }, Strophe.NS.ROSTER, 'iq', "set");
  47560. },
  47561. registerRosterXHandler() {
  47562. /* Register a handler for RosterX message stanzas, which are
  47563. * used to suggest roster contacts to a user.
  47564. */
  47565. let t = 0;
  47566. _converse.connection.addHandler(function (msg) {
  47567. window.setTimeout(function () {
  47568. _converse.connection.flush();
  47569. _converse.roster.subscribeToSuggestedItems.bind(_converse.roster)(msg);
  47570. }, t);
  47571. t += msg.querySelectorAll('item').length * 250;
  47572. return true;
  47573. }, Strophe.NS.ROSTERX, 'message', null);
  47574. },
  47575. fetchRosterContacts() {
  47576. /* Fetches the roster contacts, first by trying the
  47577. * sessionStorage cache, and if that's empty, then by querying
  47578. * the XMPP server.
  47579. *
  47580. * Returns a promise which resolves once the contacts have been
  47581. * fetched.
  47582. */
  47583. const that = this;
  47584. return new Promise((resolve, reject) => {
  47585. this.fetch({
  47586. 'add': true,
  47587. 'silent': true,
  47588. success(collection) {
  47589. if (collection.length === 0 || that.rosterVersioningSupported() && !_converse.session.get('roster_fetched')) {
  47590. _converse.send_initial_presence = true;
  47591. _converse.roster.fetchFromServer().then(resolve).catch(reject);
  47592. } else {
  47593. _converse.emit('cachedRoster', collection);
  47594. resolve();
  47595. }
  47596. }
  47597. });
  47598. });
  47599. },
  47600. subscribeToSuggestedItems(msg) {
  47601. _.each(msg.querySelectorAll('item'), function (item) {
  47602. if (item.getAttribute('action') === 'add') {
  47603. _converse.roster.addAndSubscribe(item.getAttribute('jid'), _converse.xmppstatus.vcard.get('nickname') || _converse.xmppstatus.vcard.get('fullname'));
  47604. }
  47605. });
  47606. return true;
  47607. },
  47608. isSelf(jid) {
  47609. return u.isSameBareJID(jid, _converse.connection.jid);
  47610. },
  47611. addAndSubscribe(jid, name, groups, message, attributes) {
  47612. /* Add a roster contact and then once we have confirmation from
  47613. * the XMPP server we subscribe to that contact's presence updates.
  47614. * Parameters:
  47615. * (String) jid - The Jabber ID of the user being added and subscribed to.
  47616. * (String) name - The name of that user
  47617. * (Array of Strings) groups - Any roster groups the user might belong to
  47618. * (String) message - An optional message to explain the
  47619. * reason for the subscription request.
  47620. * (Object) attributes - Any additional attributes to be stored on the user's model.
  47621. */
  47622. const handler = contact => {
  47623. if (contact instanceof _converse.RosterContact) {
  47624. contact.subscribe(message);
  47625. }
  47626. };
  47627. this.addContactToRoster(jid, name, groups, attributes).then(handler, handler);
  47628. },
  47629. sendContactAddIQ(jid, name, groups, callback, errback) {
  47630. /* Send an IQ stanza to the XMPP server to add a new roster contact.
  47631. *
  47632. * Parameters:
  47633. * (String) jid - The Jabber ID of the user being added
  47634. * (String) name - The name of that user
  47635. * (Array of Strings) groups - Any roster groups the user might belong to
  47636. * (Function) callback - A function to call once the IQ is returned
  47637. * (Function) errback - A function to call if an error occurred
  47638. */
  47639. name = _.isEmpty(name) ? jid : name;
  47640. const iq = $iq({
  47641. type: 'set'
  47642. }).c('query', {
  47643. xmlns: Strophe.NS.ROSTER
  47644. }).c('item', {
  47645. jid,
  47646. name
  47647. });
  47648. _.each(groups, function (group) {
  47649. iq.c('group').t(group).up();
  47650. });
  47651. _converse.connection.sendIQ(iq, callback, errback);
  47652. },
  47653. addContactToRoster(jid, name, groups, attributes) {
  47654. /* Adds a RosterContact instance to _converse.roster and
  47655. * registers the contact on the XMPP server.
  47656. * Returns a promise which is resolved once the XMPP server has
  47657. * responded.
  47658. *
  47659. * Parameters:
  47660. * (String) jid - The Jabber ID of the user being added and subscribed to.
  47661. * (String) name - The name of that user
  47662. * (Array of Strings) groups - Any roster groups the user might belong to
  47663. * (Object) attributes - Any additional attributes to be stored on the user's model.
  47664. */
  47665. return new Promise((resolve, reject) => {
  47666. groups = groups || [];
  47667. this.sendContactAddIQ(jid, name, groups, () => {
  47668. const contact = this.create(_.assignIn({
  47669. 'ask': undefined,
  47670. 'nickname': name,
  47671. groups,
  47672. jid,
  47673. 'requesting': false,
  47674. 'subscription': 'none'
  47675. }, attributes), {
  47676. sort: false
  47677. });
  47678. resolve(contact);
  47679. }, function (err) {
  47680. alert(__('Sorry, there was an error while trying to add %1$s as a contact.', name));
  47681. _converse.log(err, Strophe.LogLevel.ERROR);
  47682. resolve(err);
  47683. });
  47684. });
  47685. },
  47686. subscribeBack(bare_jid, presence) {
  47687. const contact = this.get(bare_jid);
  47688. if (contact instanceof _converse.RosterContact) {
  47689. contact.authorize().subscribe();
  47690. } else {
  47691. // Can happen when a subscription is retried or roster was deleted
  47692. const handler = contact => {
  47693. if (contact instanceof _converse.RosterContact) {
  47694. contact.authorize().subscribe();
  47695. }
  47696. };
  47697. const nickname = _.get(sizzle(`nick[xmlns="${Strophe.NS.NICK}"]`, presence).pop(), 'textContent', null);
  47698. this.addContactToRoster(bare_jid, nickname, [], {
  47699. 'subscription': 'from'
  47700. }).then(handler, handler);
  47701. }
  47702. },
  47703. getNumOnlineContacts() {
  47704. let ignored = ['offline', 'unavailable'];
  47705. if (_converse.show_only_online_users) {
  47706. ignored = _.union(ignored, ['dnd', 'xa', 'away']);
  47707. }
  47708. return _.sum(this.models.filter(model => !_.includes(ignored, model.presence.get('show'))));
  47709. },
  47710. onRosterPush(iq) {
  47711. /* Handle roster updates from the XMPP server.
  47712. * See: https://xmpp.org/rfcs/rfc6121.html#roster-syntax-actions-push
  47713. *
  47714. * Parameters:
  47715. * (XMLElement) IQ - The IQ stanza received from the XMPP server.
  47716. */
  47717. const id = iq.getAttribute('id');
  47718. const from = iq.getAttribute('from');
  47719. if (from && from !== _converse.bare_jid) {
  47720. // https://tools.ietf.org/html/rfc6121#page-15
  47721. //
  47722. // A receiving client MUST ignore the stanza unless it has no 'from'
  47723. // attribute (i.e., implicitly from the bare JID of the user's
  47724. // account) or it has a 'from' attribute whose value matches the
  47725. // user's bare JID <user@domainpart>.
  47726. return;
  47727. }
  47728. _converse.connection.send($iq({
  47729. type: 'result',
  47730. id,
  47731. from: _converse.connection.jid
  47732. }));
  47733. const query = sizzle(`query[xmlns="${Strophe.NS.ROSTER}"]`, iq).pop();
  47734. this.data.save('version', query.getAttribute('ver'));
  47735. const items = sizzle(`item`, query);
  47736. if (items.length > 1) {
  47737. _converse.log(iq, Strophe.LogLevel.ERROR);
  47738. throw new Error('Roster push query may not contain more than one "item" element.');
  47739. }
  47740. if (items.length === 0) {
  47741. _converse.log(iq, Strophe.LogLevel.WARN);
  47742. _converse.log('Received a roster push stanza without an "item" element.', Strophe.LogLevel.WARN);
  47743. return;
  47744. }
  47745. this.updateContact(items.pop());
  47746. _converse.emit('rosterPush', iq);
  47747. return;
  47748. },
  47749. rosterVersioningSupported() {
  47750. return _converse.api.disco.stream.getFeature('ver', 'urn:xmpp:features:rosterver') && this.data.get('version');
  47751. },
  47752. fetchFromServer() {
  47753. /* Fetch the roster from the XMPP server */
  47754. return new Promise((resolve, reject) => {
  47755. const iq = $iq({
  47756. 'type': 'get',
  47757. 'id': _converse.connection.getUniqueId('roster')
  47758. }).c('query', {
  47759. xmlns: Strophe.NS.ROSTER
  47760. });
  47761. if (this.rosterVersioningSupported()) {
  47762. iq.attrs({
  47763. 'ver': this.data.get('version')
  47764. });
  47765. }
  47766. const callback = _.flow(this.onReceivedFromServer.bind(this), resolve);
  47767. const errback = function errback(iq) {
  47768. const errmsg = "Error while trying to fetch roster from the server";
  47769. _converse.log(errmsg, Strophe.LogLevel.ERROR);
  47770. reject(new Error(errmsg));
  47771. };
  47772. return _converse.connection.sendIQ(iq, callback, errback);
  47773. });
  47774. },
  47775. onReceivedFromServer(iq) {
  47776. /* An IQ stanza containing the roster has been received from
  47777. * the XMPP server.
  47778. */
  47779. const query = sizzle(`query[xmlns="${Strophe.NS.ROSTER}"]`, iq).pop();
  47780. if (query) {
  47781. const items = sizzle(`item`, query);
  47782. _.each(items, item => this.updateContact(item));
  47783. this.data.save('version', query.getAttribute('ver'));
  47784. _converse.session.save('roster_fetched', true);
  47785. }
  47786. _converse.emit('roster', iq);
  47787. },
  47788. updateContact(item) {
  47789. /* Update or create RosterContact models based on items
  47790. * received in the IQ from the server.
  47791. */
  47792. const jid = item.getAttribute('jid');
  47793. if (this.isSelf(jid)) {
  47794. return;
  47795. }
  47796. const contact = this.get(jid),
  47797. subscription = item.getAttribute("subscription"),
  47798. ask = item.getAttribute("ask"),
  47799. groups = _.map(item.getElementsByTagName('group'), Strophe.getText);
  47800. if (!contact) {
  47801. if (subscription === "none" && ask === null || subscription === "remove") {
  47802. return; // We're lazy when adding contacts.
  47803. }
  47804. this.create({
  47805. 'ask': ask,
  47806. 'nickname': item.getAttribute("name"),
  47807. 'groups': groups,
  47808. 'jid': jid,
  47809. 'subscription': subscription
  47810. }, {
  47811. sort: false
  47812. });
  47813. } else {
  47814. if (subscription === "remove") {
  47815. return contact.destroy();
  47816. } // We only find out about requesting contacts via the
  47817. // presence handler, so if we receive a contact
  47818. // here, we know they aren't requesting anymore.
  47819. // see docs/DEVELOPER.rst
  47820. contact.save({
  47821. 'subscription': subscription,
  47822. 'ask': ask,
  47823. 'requesting': null,
  47824. 'groups': groups
  47825. });
  47826. }
  47827. },
  47828. createRequestingContact(presence) {
  47829. const bare_jid = Strophe.getBareJidFromJid(presence.getAttribute('from')),
  47830. nickname = _.get(sizzle(`nick[xmlns="${Strophe.NS.NICK}"]`, presence).pop(), 'textContent', null);
  47831. const user_data = {
  47832. 'jid': bare_jid,
  47833. 'subscription': 'none',
  47834. 'ask': null,
  47835. 'requesting': true,
  47836. 'nickname': nickname
  47837. };
  47838. _converse.emit('contactRequest', this.create(user_data));
  47839. },
  47840. handleIncomingSubscription(presence) {
  47841. const jid = presence.getAttribute('from'),
  47842. bare_jid = Strophe.getBareJidFromJid(jid),
  47843. contact = this.get(bare_jid);
  47844. if (!_converse.allow_contact_requests) {
  47845. _converse.rejectPresenceSubscription(jid, __("This client does not allow presence subscriptions"));
  47846. }
  47847. if (_converse.auto_subscribe) {
  47848. if (!contact || contact.get('subscription') !== 'to') {
  47849. this.subscribeBack(bare_jid, presence);
  47850. } else {
  47851. contact.authorize();
  47852. }
  47853. } else {
  47854. if (contact) {
  47855. if (contact.get('subscription') !== 'none') {
  47856. contact.authorize();
  47857. } else if (contact.get('ask') === "subscribe") {
  47858. contact.authorize();
  47859. }
  47860. } else {
  47861. this.createRequestingContact(presence);
  47862. }
  47863. }
  47864. },
  47865. handleOwnPresence(presence) {
  47866. const jid = presence.getAttribute('from'),
  47867. resource = Strophe.getResourceFromJid(jid),
  47868. presence_type = presence.getAttribute('type');
  47869. if (_converse.connection.jid !== jid && presence_type !== 'unavailable' && (_converse.synchronize_availability === true || _converse.synchronize_availability === resource)) {
  47870. // Another resource has changed its status and
  47871. // synchronize_availability option set to update,
  47872. // we'll update ours as well.
  47873. const show = _.propertyOf(presence.querySelector('show'))('textContent') || 'online';
  47874. _converse.xmppstatus.save({
  47875. 'status': show
  47876. }, {
  47877. 'silent': true
  47878. });
  47879. const status_message = _.propertyOf(presence.querySelector('status'))('textContent');
  47880. if (status_message) {
  47881. _converse.xmppstatus.save({
  47882. 'status_message': status_message
  47883. });
  47884. }
  47885. }
  47886. if (_converse.jid === jid && presence_type === 'unavailable') {
  47887. // XXX: We've received an "unavailable" presence from our
  47888. // own resource. Apparently this happens due to a
  47889. // Prosody bug, whereby we send an IQ stanza to remove
  47890. // a roster contact, and Prosody then sends
  47891. // "unavailable" globally, instead of directed to the
  47892. // particular user that's removed.
  47893. //
  47894. // Here is the bug report: https://prosody.im/issues/1121
  47895. //
  47896. // I'm not sure whether this might legitimately happen
  47897. // in other cases.
  47898. //
  47899. // As a workaround for now we simply send our presence again,
  47900. // otherwise we're treated as offline.
  47901. _converse.xmppstatus.sendPresence();
  47902. }
  47903. },
  47904. presenceHandler(presence) {
  47905. const presence_type = presence.getAttribute('type');
  47906. if (presence_type === 'error') {
  47907. return true;
  47908. }
  47909. const jid = presence.getAttribute('from'),
  47910. bare_jid = Strophe.getBareJidFromJid(jid);
  47911. if (this.isSelf(bare_jid)) {
  47912. return this.handleOwnPresence(presence);
  47913. } else if (sizzle(`query[xmlns="${Strophe.NS.MUC}"]`, presence).length) {
  47914. return; // Ignore MUC
  47915. }
  47916. const status_message = _.propertyOf(presence.querySelector('status'))('textContent'),
  47917. contact = this.get(bare_jid);
  47918. if (contact && status_message !== contact.get('status')) {
  47919. contact.save({
  47920. 'status': status_message
  47921. });
  47922. }
  47923. if (presence_type === 'subscribed' && contact) {
  47924. contact.ackSubscribe();
  47925. } else if (presence_type === 'unsubscribed' && contact) {
  47926. contact.ackUnsubscribe();
  47927. } else if (presence_type === 'unsubscribe') {
  47928. return;
  47929. } else if (presence_type === 'subscribe') {
  47930. this.handleIncomingSubscription(presence);
  47931. } else if (presence_type === 'unavailable' && contact) {
  47932. const resource = Strophe.getResourceFromJid(jid);
  47933. contact.presence.removeResource(resource);
  47934. } else if (contact) {
  47935. // presence_type is undefined
  47936. contact.presence.addResource(presence);
  47937. }
  47938. }
  47939. });
  47940. _converse.RosterGroup = Backbone.Model.extend({
  47941. initialize(attributes) {
  47942. this.set(_.assignIn({
  47943. description: __('Click to hide these contacts'),
  47944. state: _converse.OPENED
  47945. }, attributes)); // Collection of contacts belonging to this group.
  47946. this.contacts = new _converse.RosterContacts();
  47947. }
  47948. });
  47949. _converse.RosterGroups = Backbone.Collection.extend({
  47950. model: _converse.RosterGroup,
  47951. fetchRosterGroups() {
  47952. /* Fetches all the roster groups from sessionStorage.
  47953. *
  47954. * Returns a promise which resolves once the groups have been
  47955. * returned.
  47956. */
  47957. return new Promise((resolve, reject) => {
  47958. this.fetch({
  47959. silent: true,
  47960. // We need to first have all groups before
  47961. // we can start positioning them, so we set
  47962. // 'silent' to true.
  47963. success: resolve
  47964. });
  47965. });
  47966. }
  47967. });
  47968. _converse.unregisterPresenceHandler = function () {
  47969. if (!_.isUndefined(_converse.presence_ref)) {
  47970. _converse.connection.deleteHandler(_converse.presence_ref);
  47971. delete _converse.presence_ref;
  47972. }
  47973. };
  47974. /********** Event Handlers *************/
  47975. function updateUnreadCounter(chatbox) {
  47976. const contact = _converse.roster.findWhere({
  47977. 'jid': chatbox.get('jid')
  47978. });
  47979. if (!_.isUndefined(contact)) {
  47980. contact.save({
  47981. 'num_unread': chatbox.get('num_unread')
  47982. });
  47983. }
  47984. }
  47985. _converse.api.listen.on('chatBoxesInitialized', () => {
  47986. _converse.chatboxes.on('change:num_unread', updateUnreadCounter);
  47987. });
  47988. _converse.api.listen.on('beforeTearDown', _converse.unregisterPresenceHandler());
  47989. _converse.api.listen.on('afterTearDown', () => {
  47990. if (_converse.presences) {
  47991. _converse.presences.off().reset(); // Remove presences
  47992. }
  47993. });
  47994. _converse.api.listen.on('clearSession', () => {
  47995. if (_converse.presences) {
  47996. _converse.presences.browserStorage._clear();
  47997. }
  47998. });
  47999. _converse.api.listen.on('statusInitialized', reconnecting => {
  48000. if (!reconnecting) {
  48001. _converse.presences = new _converse.Presences();
  48002. _converse.presences.browserStorage = new Backbone.BrowserStorage.session(b64_sha1(`converse.presences-${_converse.bare_jid}`));
  48003. _converse.presences.fetch();
  48004. }
  48005. _converse.emit('presencesInitialized', reconnecting);
  48006. });
  48007. _converse.api.listen.on('presencesInitialized', reconnecting => {
  48008. if (reconnecting) {
  48009. // No need to recreate the roster, otherwise we lose our
  48010. // cached data. However we still emit an event, to give
  48011. // event handlers a chance to register views for the
  48012. // roster and its groups, before we start populating.
  48013. _converse.emit('rosterReadyAfterReconnection');
  48014. } else {
  48015. _converse.registerIntervalHandler();
  48016. _converse.initRoster();
  48017. }
  48018. _converse.roster.onConnected();
  48019. _converse.populateRoster(reconnecting);
  48020. _converse.registerPresenceHandler();
  48021. });
  48022. /************************ API ************************/
  48023. // API methods only available to plugins
  48024. _.extend(_converse.api, {
  48025. /**
  48026. * @namespace _converse.api.contacts
  48027. * @memberOf _converse.api
  48028. */
  48029. 'contacts': {
  48030. /**
  48031. * This method is used to retrieve roster contacts.
  48032. *
  48033. * @method _converse.api.contacts.get
  48034. * @params {(string[]|string)} jid|jids The JID or JIDs of
  48035. * the contacts to be returned.
  48036. * @returns {(RosterContact[]|RosterContact)} [Backbone.Model](http://backbonejs.org/#Model)
  48037. * (or an array of them) representing the contact.
  48038. *
  48039. * @example
  48040. * // Fetch a single contact
  48041. * _converse.api.listen.on('rosterContactsFetched', function () {
  48042. * const contact = _converse.api.contacts.get('buddy@example.com')
  48043. * // ...
  48044. * });
  48045. *
  48046. * @example
  48047. * // To get multiple contacts, pass in an array of JIDs:
  48048. * _converse.api.listen.on('rosterContactsFetched', function () {
  48049. * const contacts = _converse.api.contacts.get(
  48050. * ['buddy1@example.com', 'buddy2@example.com']
  48051. * )
  48052. * // ...
  48053. * });
  48054. *
  48055. * @example
  48056. * // To return all contacts, simply call ``get`` without any parameters:
  48057. * _converse.api.listen.on('rosterContactsFetched', function () {
  48058. * const contacts = _converse.api.contacts.get();
  48059. * // ...
  48060. * });
  48061. */
  48062. 'get'(jids) {
  48063. const _getter = function _getter(jid) {
  48064. return _converse.roster.get(Strophe.getBareJidFromJid(jid)) || null;
  48065. };
  48066. if (_.isUndefined(jids)) {
  48067. jids = _converse.roster.pluck('jid');
  48068. } else if (_.isString(jids)) {
  48069. return _getter(jids);
  48070. }
  48071. return _.map(jids, _getter);
  48072. },
  48073. /**
  48074. * Add a contact.
  48075. *
  48076. * @method _converse.api.contacts.add
  48077. * @param {string} jid The JID of the contact to be added
  48078. * @param {string} [name] A custom name to show the user by
  48079. * in the roster.
  48080. * @example
  48081. * _converse.api.contacts.add('buddy@example.com')
  48082. * @example
  48083. * _converse.api.contacts.add('buddy@example.com', 'Buddy')
  48084. */
  48085. 'add'(jid, name) {
  48086. if (!_.isString(jid) || !_.includes(jid, '@')) {
  48087. throw new TypeError('contacts.add: invalid jid');
  48088. }
  48089. _converse.roster.addAndSubscribe(jid, _.isEmpty(name) ? jid : name);
  48090. }
  48091. }
  48092. });
  48093. }
  48094. });
  48095. });
  48096. /***/ }),
  48097. /***/ "./src/converse-rosterview.js":
  48098. /*!************************************!*\
  48099. !*** ./src/converse-rosterview.js ***!
  48100. \************************************/
  48101. /*! no static exports found */
  48102. /***/ (function(module, exports, __webpack_require__) {
  48103. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  48104. // http://conversejs.org
  48105. //
  48106. // Copyright (c) 2012-2018, the Converse.js developers
  48107. // Licensed under the Mozilla Public License (MPLv2)
  48108. (function (root, factory) {
  48109. !(__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),
  48110. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  48111. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  48112. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  48113. })(this, 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) {
  48114. "use strict";
  48115. const _converse$env = converse.env,
  48116. Backbone = _converse$env.Backbone,
  48117. Strophe = _converse$env.Strophe,
  48118. $iq = _converse$env.$iq,
  48119. b64_sha1 = _converse$env.b64_sha1,
  48120. sizzle = _converse$env.sizzle,
  48121. _ = _converse$env._;
  48122. const u = converse.env.utils;
  48123. converse.plugins.add('converse-rosterview', {
  48124. dependencies: ["converse-roster", "converse-modal"],
  48125. overrides: {
  48126. // Overrides mentioned here will be picked up by converse.js's
  48127. // plugin architecture they will replace existing methods on the
  48128. // relevant objects or classes.
  48129. //
  48130. // New functions which don't exist yet can also be added.
  48131. afterReconnected() {
  48132. this.__super__.afterReconnected.apply(this, arguments);
  48133. },
  48134. tearDown() {
  48135. /* Remove the rosterview when tearing down. It gets created
  48136. * anew when reconnecting or logging in.
  48137. */
  48138. this.__super__.tearDown.apply(this, arguments);
  48139. if (!_.isUndefined(this.rosterview)) {
  48140. this.rosterview.remove();
  48141. }
  48142. },
  48143. RosterGroups: {
  48144. comparator() {
  48145. // RosterGroupsComparator only gets set later (once i18n is
  48146. // set up), so we need to wrap it in this nameless function.
  48147. const _converse = this.__super__._converse;
  48148. return _converse.RosterGroupsComparator.apply(this, arguments);
  48149. }
  48150. }
  48151. },
  48152. initialize() {
  48153. /* The initialize function gets called as soon as the plugin is
  48154. * loaded by converse.js's plugin machinery.
  48155. */
  48156. const _converse = this._converse,
  48157. __ = _converse.__;
  48158. _converse.api.settings.update({
  48159. 'allow_chat_pending_contacts': true,
  48160. 'allow_contact_removal': true,
  48161. 'hide_offline_users': false,
  48162. 'roster_groups': true,
  48163. 'show_only_online_users': false,
  48164. 'show_toolbar': true,
  48165. 'xhr_user_search_url': null
  48166. });
  48167. _converse.api.promises.add('rosterViewInitialized');
  48168. const STATUSES = {
  48169. 'dnd': __('This contact is busy'),
  48170. 'online': __('This contact is online'),
  48171. 'offline': __('This contact is offline'),
  48172. 'unavailable': __('This contact is unavailable'),
  48173. 'xa': __('This contact is away for an extended period'),
  48174. 'away': __('This contact is away')
  48175. };
  48176. const LABEL_GROUPS = __('Groups');
  48177. const HEADER_CURRENT_CONTACTS = __('My contacts');
  48178. const HEADER_PENDING_CONTACTS = __('Pending contacts');
  48179. const HEADER_REQUESTING_CONTACTS = __('Contact requests');
  48180. const HEADER_UNGROUPED = __('Ungrouped');
  48181. const HEADER_WEIGHTS = {};
  48182. HEADER_WEIGHTS[HEADER_REQUESTING_CONTACTS] = 0;
  48183. HEADER_WEIGHTS[HEADER_CURRENT_CONTACTS] = 1;
  48184. HEADER_WEIGHTS[HEADER_UNGROUPED] = 2;
  48185. HEADER_WEIGHTS[HEADER_PENDING_CONTACTS] = 3;
  48186. _converse.RosterGroupsComparator = function (a, b) {
  48187. /* Groups are sorted alphabetically, ignoring case.
  48188. * However, Ungrouped, Requesting Contacts and Pending Contacts
  48189. * appear last and in that order.
  48190. */
  48191. a = a.get('name');
  48192. b = b.get('name');
  48193. const special_groups = _.keys(HEADER_WEIGHTS);
  48194. const a_is_special = _.includes(special_groups, a);
  48195. const b_is_special = _.includes(special_groups, b);
  48196. if (!a_is_special && !b_is_special) {
  48197. return a.toLowerCase() < b.toLowerCase() ? -1 : a.toLowerCase() > b.toLowerCase() ? 1 : 0;
  48198. } else if (a_is_special && b_is_special) {
  48199. return HEADER_WEIGHTS[a] < HEADER_WEIGHTS[b] ? -1 : HEADER_WEIGHTS[a] > HEADER_WEIGHTS[b] ? 1 : 0;
  48200. } else if (!a_is_special && b_is_special) {
  48201. return b === HEADER_REQUESTING_CONTACTS ? 1 : -1;
  48202. } else if (a_is_special && !b_is_special) {
  48203. return a === HEADER_REQUESTING_CONTACTS ? -1 : 1;
  48204. }
  48205. };
  48206. _converse.AddContactModal = _converse.BootstrapModal.extend({
  48207. events: {
  48208. 'submit form': 'addContactFromForm'
  48209. },
  48210. initialize() {
  48211. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  48212. this.model.on('change', this.render, this);
  48213. },
  48214. toHTML() {
  48215. const label_nickname = _converse.xhr_user_search_url ? __('Contact name') : __('Optional nickname');
  48216. return tpl_add_contact_modal(_.extend(this.model.toJSON(), {
  48217. '_converse': _converse,
  48218. 'heading_new_contact': __('Add a Contact'),
  48219. 'label_xmpp_address': __('XMPP Address'),
  48220. 'label_nickname': label_nickname,
  48221. 'contact_placeholder': __('name@example.org'),
  48222. 'label_add': __('Add'),
  48223. 'error_message': __('Please enter a valid XMPP address')
  48224. }));
  48225. },
  48226. afterRender() {
  48227. if (_converse.xhr_user_search_url && _.isString(_converse.xhr_user_search_url)) {
  48228. this.initXHRAutoComplete(this.el);
  48229. } else {
  48230. this.initJIDAutoComplete(this.el);
  48231. }
  48232. const jid_input = this.el.querySelector('input[name="jid"]');
  48233. this.el.addEventListener('shown.bs.modal', () => {
  48234. jid_input.focus();
  48235. }, false);
  48236. },
  48237. initJIDAutoComplete(root) {
  48238. const jid_input = root.querySelector('input[name="jid"]');
  48239. const list = _.uniq(_converse.roster.map(item => Strophe.getDomainFromJid(item.get('jid'))));
  48240. new Awesomplete(jid_input, {
  48241. 'list': list,
  48242. 'data': function data(text, input) {
  48243. return input.slice(0, input.indexOf("@")) + "@" + text;
  48244. },
  48245. 'filter': Awesomplete.FILTER_STARTSWITH
  48246. });
  48247. },
  48248. initXHRAutoComplete(root) {
  48249. const name_input = this.el.querySelector('input[name="name"]');
  48250. const jid_input = this.el.querySelector('input[name="jid"]');
  48251. const awesomplete = new Awesomplete(name_input, {
  48252. 'minChars': 1,
  48253. 'list': []
  48254. });
  48255. const xhr = new window.XMLHttpRequest(); // `open` must be called after `onload` for mock/testing purposes.
  48256. xhr.onload = function () {
  48257. if (xhr.responseText) {
  48258. awesomplete.list = JSON.parse(xhr.responseText).map(i => {
  48259. //eslint-disable-line arrow-body-style
  48260. return {
  48261. 'label': i.fullname || i.jid,
  48262. 'value': i.jid
  48263. };
  48264. });
  48265. awesomplete.evaluate();
  48266. }
  48267. };
  48268. name_input.addEventListener('input', _.debounce(() => {
  48269. xhr.open("GET", `${_converse.xhr_user_search_url}q=${name_input.value}`, true);
  48270. xhr.send();
  48271. }, 300));
  48272. this.el.addEventListener('awesomplete-selectcomplete', ev => {
  48273. jid_input.value = ev.text.value;
  48274. name_input.value = ev.text.label;
  48275. });
  48276. },
  48277. addContactFromForm(ev) {
  48278. ev.preventDefault();
  48279. const data = new FormData(ev.target),
  48280. jid = data.get('jid'),
  48281. name = data.get('name');
  48282. if (!jid || _.compact(jid.split('@')).length < 2) {
  48283. // XXX: we have to do this manually, instead of via
  48284. // toHTML because Awesomplete messes things up and
  48285. // confuses Snabbdom
  48286. u.addClass('is-invalid', this.el.querySelector('input[name="jid"]'));
  48287. u.addClass('d-block', this.el.querySelector('.invalid-feedback'));
  48288. } else {
  48289. ev.target.reset();
  48290. _converse.roster.addAndSubscribe(jid, name);
  48291. this.model.clear();
  48292. this.modal.hide();
  48293. }
  48294. }
  48295. });
  48296. _converse.RosterFilter = Backbone.Model.extend({
  48297. initialize() {
  48298. this.set({
  48299. 'filter_text': '',
  48300. 'filter_type': 'contacts',
  48301. 'chat_state': ''
  48302. });
  48303. }
  48304. });
  48305. _converse.RosterFilterView = Backbone.VDOMView.extend({
  48306. tagName: 'form',
  48307. className: 'roster-filter-form',
  48308. events: {
  48309. "keydown .roster-filter": "liveFilter",
  48310. "submit form.roster-filter-form": "submitFilter",
  48311. "click .clear-input": "clearFilter",
  48312. "click .filter-by span": "changeTypeFilter",
  48313. "change .state-type": "changeChatStateFilter"
  48314. },
  48315. initialize() {
  48316. this.model.on('change:filter_type', this.render, this);
  48317. this.model.on('change:filter_text', this.render, this);
  48318. },
  48319. toHTML() {
  48320. return tpl_roster_filter(_.extend(this.model.toJSON(), {
  48321. visible: this.shouldBeVisible(),
  48322. placeholder: __('Filter'),
  48323. title_contact_filter: __('Filter by contact name'),
  48324. title_group_filter: __('Filter by group name'),
  48325. title_status_filter: __('Filter by status'),
  48326. label_any: __('Any'),
  48327. label_unread_messages: __('Unread'),
  48328. label_online: __('Online'),
  48329. label_chatty: __('Chatty'),
  48330. label_busy: __('Busy'),
  48331. label_away: __('Away'),
  48332. label_xa: __('Extended Away'),
  48333. label_offline: __('Offline')
  48334. }));
  48335. },
  48336. changeChatStateFilter(ev) {
  48337. if (ev && ev.preventDefault) {
  48338. ev.preventDefault();
  48339. }
  48340. this.model.save({
  48341. 'chat_state': this.el.querySelector('.state-type').value
  48342. });
  48343. },
  48344. changeTypeFilter(ev) {
  48345. if (ev && ev.preventDefault) {
  48346. ev.preventDefault();
  48347. }
  48348. const type = ev.target.dataset.type;
  48349. if (type === 'state') {
  48350. this.model.save({
  48351. 'filter_type': type,
  48352. 'chat_state': this.el.querySelector('.state-type').value
  48353. });
  48354. } else {
  48355. this.model.save({
  48356. 'filter_type': type,
  48357. 'filter_text': this.el.querySelector('.roster-filter').value
  48358. });
  48359. }
  48360. },
  48361. liveFilter: _.debounce(function (ev) {
  48362. this.model.save({
  48363. 'filter_text': this.el.querySelector('.roster-filter').value
  48364. });
  48365. }, 250),
  48366. submitFilter(ev) {
  48367. if (ev && ev.preventDefault) {
  48368. ev.preventDefault();
  48369. }
  48370. this.liveFilter();
  48371. this.render();
  48372. },
  48373. isActive() {
  48374. /* Returns true if the filter is enabled (i.e. if the user
  48375. * has added values to the filter).
  48376. */
  48377. if (this.model.get('filter_type') === 'state' || this.model.get('filter_text')) {
  48378. return true;
  48379. }
  48380. return false;
  48381. },
  48382. shouldBeVisible() {
  48383. return _converse.roster.length >= 5 || this.isActive();
  48384. },
  48385. showOrHide() {
  48386. if (this.shouldBeVisible()) {
  48387. this.show();
  48388. } else {
  48389. this.hide();
  48390. }
  48391. },
  48392. show() {
  48393. if (u.isVisible(this.el)) {
  48394. return this;
  48395. }
  48396. this.el.classList.add('fade-in');
  48397. this.el.classList.remove('hidden');
  48398. return this;
  48399. },
  48400. hide() {
  48401. if (!u.isVisible(this.el)) {
  48402. return this;
  48403. }
  48404. this.model.save({
  48405. 'filter_text': '',
  48406. 'chat_state': ''
  48407. });
  48408. this.el.classList.add('hidden');
  48409. return this;
  48410. },
  48411. clearFilter(ev) {
  48412. if (ev && ev.preventDefault) {
  48413. ev.preventDefault();
  48414. u.hideElement(this.el.querySelector('.clear-input'));
  48415. }
  48416. const roster_filter = this.el.querySelector('.roster-filter');
  48417. roster_filter.value = '';
  48418. this.model.save({
  48419. 'filter_text': ''
  48420. });
  48421. }
  48422. });
  48423. _converse.RosterContactView = Backbone.NativeView.extend({
  48424. tagName: 'li',
  48425. className: 'list-item d-flex hidden controlbox-padded',
  48426. events: {
  48427. "click .accept-xmpp-request": "acceptRequest",
  48428. "click .decline-xmpp-request": "declineRequest",
  48429. "click .open-chat": "openChat",
  48430. "click .remove-xmpp-contact": "removeContact"
  48431. },
  48432. initialize() {
  48433. this.model.on("change", this.render, this);
  48434. this.model.on("highlight", this.highlight, this);
  48435. this.model.on("destroy", this.remove, this);
  48436. this.model.on("open", this.openChat, this);
  48437. this.model.on("remove", this.remove, this);
  48438. this.model.presence.on("change:show", this.render, this);
  48439. this.model.vcard.on('change:fullname', this.render, this);
  48440. },
  48441. render() {
  48442. const that = this;
  48443. if (!this.mayBeShown()) {
  48444. u.hideElement(this.el);
  48445. return this;
  48446. }
  48447. const ask = this.model.get('ask'),
  48448. show = this.model.presence.get('show'),
  48449. requesting = this.model.get('requesting'),
  48450. subscription = this.model.get('subscription');
  48451. const classes_to_remove = ['current-xmpp-contact', 'pending-xmpp-contact', 'requesting-xmpp-contact'].concat(_.keys(STATUSES));
  48452. _.each(classes_to_remove, function (cls) {
  48453. if (_.includes(that.el.className, cls)) {
  48454. that.el.classList.remove(cls);
  48455. }
  48456. });
  48457. this.el.classList.add(show);
  48458. this.el.setAttribute('data-status', show);
  48459. this.highlight();
  48460. if (_converse.isSingleton()) {
  48461. const chatbox = _converse.chatboxes.get(this.model.get('jid'));
  48462. if (chatbox) {
  48463. if (chatbox.get('hidden')) {
  48464. this.el.classList.remove('open');
  48465. } else {
  48466. this.el.classList.add('open');
  48467. }
  48468. }
  48469. }
  48470. if (ask === 'subscribe' || subscription === 'from') {
  48471. /* ask === 'subscribe'
  48472. * Means we have asked to subscribe to them.
  48473. *
  48474. * subscription === 'from'
  48475. * They are subscribed to use, but not vice versa.
  48476. * We assume that there is a pending subscription
  48477. * from us to them (otherwise we're in a state not
  48478. * supported by converse.js).
  48479. *
  48480. * So in both cases the user is a "pending" contact.
  48481. */
  48482. const display_name = this.model.getDisplayName();
  48483. this.el.classList.add('pending-xmpp-contact');
  48484. this.el.innerHTML = tpl_pending_contact(_.extend(this.model.toJSON(), {
  48485. 'display_name': display_name,
  48486. 'desc_remove': __('Click to remove %1$s as a contact', display_name),
  48487. 'allow_chat_pending_contacts': _converse.allow_chat_pending_contacts
  48488. }));
  48489. } else if (requesting === true) {
  48490. const display_name = this.model.getDisplayName();
  48491. this.el.classList.add('requesting-xmpp-contact');
  48492. this.el.innerHTML = tpl_requesting_contact(_.extend(this.model.toJSON(), {
  48493. 'display_name': display_name,
  48494. 'desc_accept': __("Click to accept the contact request from %1$s", display_name),
  48495. 'desc_decline': __("Click to decline the contact request from %1$s", display_name),
  48496. 'allow_chat_pending_contacts': _converse.allow_chat_pending_contacts
  48497. }));
  48498. } else if (subscription === 'both' || subscription === 'to') {
  48499. this.el.classList.add('current-xmpp-contact');
  48500. this.el.classList.remove(_.without(['both', 'to'], subscription)[0]);
  48501. this.el.classList.add(subscription);
  48502. this.renderRosterItem(this.model);
  48503. }
  48504. return this;
  48505. },
  48506. highlight() {
  48507. /* If appropriate, highlight the contact (by adding the 'open' class).
  48508. */
  48509. if (_converse.isSingleton()) {
  48510. const chatbox = _converse.chatboxes.get(this.model.get('jid'));
  48511. if (chatbox) {
  48512. if (chatbox.get('hidden')) {
  48513. this.el.classList.remove('open');
  48514. } else {
  48515. this.el.classList.add('open');
  48516. }
  48517. }
  48518. }
  48519. },
  48520. renderRosterItem(item) {
  48521. let status_icon = 'fa fa-times-circle';
  48522. const show = item.presence.get('show') || 'offline';
  48523. if (show === 'online') {
  48524. status_icon = 'fa fa-circle chat-status chat-status--online';
  48525. } else if (show === 'away') {
  48526. status_icon = 'fa fa-circle chat-status chat-status--away';
  48527. } else if (show === 'xa') {
  48528. status_icon = 'far fa-circle chat-status';
  48529. } else if (show === 'dnd') {
  48530. status_icon = 'fa fa-minus-circle chat-status chat-status--busy';
  48531. }
  48532. const display_name = item.getDisplayName();
  48533. this.el.innerHTML = tpl_roster_item(_.extend(item.toJSON(), {
  48534. 'display_name': display_name,
  48535. 'desc_status': STATUSES[show],
  48536. 'status_icon': status_icon,
  48537. 'desc_chat': __('Click to chat with %1$s (JID: %2$s)', display_name, item.get('jid')),
  48538. 'desc_remove': __('Click to remove %1$s as a contact', display_name),
  48539. 'allow_contact_removal': _converse.allow_contact_removal,
  48540. 'num_unread': item.get('num_unread') || 0
  48541. }));
  48542. return this;
  48543. },
  48544. mayBeShown() {
  48545. /* Return a boolean indicating whether this contact should
  48546. * generally be visible in the roster.
  48547. *
  48548. * It doesn't check for the more specific case of whether
  48549. * the group it's in is collapsed.
  48550. */
  48551. const chatStatus = this.model.presence.get('show');
  48552. if (_converse.show_only_online_users && chatStatus !== 'online' || _converse.hide_offline_users && chatStatus === 'offline') {
  48553. // If pending or requesting, show
  48554. if (this.model.get('ask') === 'subscribe' || this.model.get('subscription') === 'from' || this.model.get('requesting') === true) {
  48555. return true;
  48556. }
  48557. return false;
  48558. }
  48559. return true;
  48560. },
  48561. openChat(ev) {
  48562. if (ev && ev.preventDefault) {
  48563. ev.preventDefault();
  48564. }
  48565. const attrs = this.model.attributes;
  48566. _converse.api.chats.open(attrs.jid, attrs);
  48567. },
  48568. removeContact(ev) {
  48569. if (ev && ev.preventDefault) {
  48570. ev.preventDefault();
  48571. }
  48572. if (!_converse.allow_contact_removal) {
  48573. return;
  48574. }
  48575. const result = confirm(__("Are you sure you want to remove this contact?"));
  48576. if (result === true) {
  48577. this.model.removeFromRoster(iq => {
  48578. this.model.destroy();
  48579. this.remove();
  48580. }, function (err) {
  48581. alert(__('Sorry, there was an error while trying to remove %1$s as a contact.', name));
  48582. _converse.log(err, Strophe.LogLevel.ERROR);
  48583. });
  48584. }
  48585. },
  48586. acceptRequest(ev) {
  48587. if (ev && ev.preventDefault) {
  48588. ev.preventDefault();
  48589. }
  48590. _converse.roster.sendContactAddIQ(this.model.get('jid'), this.model.getFullname(), [], () => {
  48591. this.model.authorize().subscribe();
  48592. });
  48593. },
  48594. declineRequest(ev) {
  48595. if (ev && ev.preventDefault) {
  48596. ev.preventDefault();
  48597. }
  48598. const result = confirm(__("Are you sure you want to decline this contact request?"));
  48599. if (result === true) {
  48600. this.model.unauthorize().destroy();
  48601. }
  48602. return this;
  48603. }
  48604. });
  48605. _converse.RosterGroupView = Backbone.OrderedListView.extend({
  48606. tagName: 'div',
  48607. className: 'roster-group hidden',
  48608. events: {
  48609. "click a.group-toggle": "toggle"
  48610. },
  48611. ItemView: _converse.RosterContactView,
  48612. listItems: 'model.contacts',
  48613. listSelector: '.roster-group-contacts',
  48614. sortEvent: 'presenceChanged',
  48615. initialize() {
  48616. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  48617. this.model.contacts.on("change:subscription", this.onContactSubscriptionChange, this);
  48618. this.model.contacts.on("change:requesting", this.onContactRequestChange, this);
  48619. this.model.contacts.on("remove", this.onRemove, this);
  48620. _converse.roster.on('change:groups', this.onContactGroupChange, this); // This event gets triggered once *all* contacts (i.e. not
  48621. // just this group's) have been fetched from browser
  48622. // storage or the XMPP server and once they've been
  48623. // assigned to their various groups.
  48624. _converse.rosterview.on('rosterContactsFetchedAndProcessed', this.sortAndPositionAllItems.bind(this));
  48625. },
  48626. render() {
  48627. this.el.setAttribute('data-group', this.model.get('name'));
  48628. this.el.innerHTML = tpl_group_header({
  48629. 'label_group': this.model.get('name'),
  48630. 'desc_group_toggle': this.model.get('description'),
  48631. 'toggle_state': this.model.get('state'),
  48632. '_converse': _converse
  48633. });
  48634. this.contacts_el = this.el.querySelector('.roster-group-contacts');
  48635. return this;
  48636. },
  48637. show() {
  48638. u.showElement(this.el);
  48639. _.each(this.getAll(), contact_view => {
  48640. if (contact_view.mayBeShown() && this.model.get('state') === _converse.OPENED) {
  48641. u.showElement(contact_view.el);
  48642. }
  48643. });
  48644. return this;
  48645. },
  48646. collapse() {
  48647. return u.slideIn(this.contacts_el);
  48648. },
  48649. filterOutContacts(contacts = []) {
  48650. /* Given a list of contacts, make sure they're filtered out
  48651. * (aka hidden) and that all other contacts are visible.
  48652. *
  48653. * If all contacts are hidden, then also hide the group
  48654. * title.
  48655. */
  48656. let shown = 0;
  48657. const all_contact_views = this.getAll();
  48658. _.each(this.model.contacts.models, contact => {
  48659. const contact_view = this.get(contact.get('id'));
  48660. if (_.includes(contacts, contact)) {
  48661. u.hideElement(contact_view.el);
  48662. } else if (contact_view.mayBeShown()) {
  48663. u.showElement(contact_view.el);
  48664. shown += 1;
  48665. }
  48666. });
  48667. if (shown) {
  48668. u.showElement(this.el);
  48669. } else {
  48670. u.hideElement(this.el);
  48671. }
  48672. },
  48673. getFilterMatches(q, type) {
  48674. /* Given the filter query "q" and the filter type "type",
  48675. * return a list of contacts that need to be filtered out.
  48676. */
  48677. if (q.length === 0) {
  48678. return [];
  48679. }
  48680. let matches;
  48681. q = q.toLowerCase();
  48682. if (type === 'state') {
  48683. if (this.model.get('name') === HEADER_REQUESTING_CONTACTS) {
  48684. // When filtering by chat state, we still want to
  48685. // show requesting contacts, even though they don't
  48686. // have the state in question.
  48687. matches = this.model.contacts.filter(contact => !_.includes(contact.presence.get('show'), q) && !contact.get('requesting'));
  48688. } else if (q === 'unread_messages') {
  48689. matches = this.model.contacts.filter({
  48690. 'num_unread': 0
  48691. });
  48692. } else {
  48693. matches = this.model.contacts.filter(contact => !_.includes(contact.presence.get('show'), q));
  48694. }
  48695. } else {
  48696. matches = this.model.contacts.filter(contact => {
  48697. return !_.includes(contact.getDisplayName().toLowerCase(), q.toLowerCase());
  48698. });
  48699. }
  48700. return matches;
  48701. },
  48702. filter(q, type) {
  48703. /* Filter the group's contacts based on the query "q".
  48704. *
  48705. * If all contacts are filtered out (i.e. hidden), then the
  48706. * group must be filtered out as well.
  48707. */
  48708. if (_.isNil(q)) {
  48709. type = type || _converse.rosterview.filter_view.model.get('filter_type');
  48710. if (type === 'state') {
  48711. q = _converse.rosterview.filter_view.model.get('chat_state');
  48712. } else {
  48713. q = _converse.rosterview.filter_view.model.get('filter_text');
  48714. }
  48715. }
  48716. this.filterOutContacts(this.getFilterMatches(q, type));
  48717. },
  48718. toggle(ev) {
  48719. if (ev && ev.preventDefault) {
  48720. ev.preventDefault();
  48721. }
  48722. const icon_el = ev.target.querySelector('.fa');
  48723. if (_.includes(icon_el.classList, "fa-caret-down")) {
  48724. this.model.save({
  48725. state: _converse.CLOSED
  48726. });
  48727. this.collapse().then(() => {
  48728. icon_el.classList.remove("fa-caret-down");
  48729. icon_el.classList.add("fa-caret-right");
  48730. });
  48731. } else {
  48732. icon_el.classList.remove("fa-caret-right");
  48733. icon_el.classList.add("fa-caret-down");
  48734. this.model.save({
  48735. state: _converse.OPENED
  48736. });
  48737. this.filter();
  48738. u.showElement(this.el);
  48739. u.slideOut(this.contacts_el);
  48740. }
  48741. },
  48742. onContactGroupChange(contact) {
  48743. const in_this_group = _.includes(contact.get('groups'), this.model.get('name'));
  48744. const cid = contact.get('id');
  48745. const in_this_overview = !this.get(cid);
  48746. if (in_this_group && !in_this_overview) {
  48747. this.items.trigger('add', contact);
  48748. } else if (!in_this_group) {
  48749. this.removeContact(contact);
  48750. }
  48751. },
  48752. onContactSubscriptionChange(contact) {
  48753. if (this.model.get('name') === HEADER_PENDING_CONTACTS && contact.get('subscription') !== 'from') {
  48754. this.removeContact(contact);
  48755. }
  48756. },
  48757. onContactRequestChange(contact) {
  48758. if (this.model.get('name') === HEADER_REQUESTING_CONTACTS && !contact.get('requesting')) {
  48759. this.removeContact(contact);
  48760. }
  48761. },
  48762. removeContact(contact) {
  48763. // We suppress events, otherwise the remove event will
  48764. // also cause the contact's view to be removed from the
  48765. // "Pending Contacts" group.
  48766. this.model.contacts.remove(contact, {
  48767. 'silent': true
  48768. });
  48769. this.onRemove(contact);
  48770. },
  48771. onRemove(contact) {
  48772. this.remove(contact.get('jid'));
  48773. if (this.model.contacts.length === 0) {
  48774. this.remove();
  48775. }
  48776. }
  48777. });
  48778. _converse.RosterView = Backbone.OrderedListView.extend({
  48779. tagName: 'div',
  48780. id: 'converse-roster',
  48781. className: 'controlbox-section',
  48782. ItemView: _converse.RosterGroupView,
  48783. listItems: 'model',
  48784. listSelector: '.roster-contacts',
  48785. sortEvent: null,
  48786. // Groups are immutable, so they don't get re-sorted
  48787. subviewIndex: 'name',
  48788. events: {
  48789. 'click a.chatbox-btn.add-contact': 'showAddContactModal'
  48790. },
  48791. initialize() {
  48792. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  48793. _converse.roster.on("add", this.onContactAdded, this);
  48794. _converse.roster.on('change:groups', this.onContactAdded, this);
  48795. _converse.roster.on('change', this.onContactChange, this);
  48796. _converse.roster.on("destroy", this.update, this);
  48797. _converse.roster.on("remove", this.update, this);
  48798. _converse.presences.on('change:show', () => {
  48799. this.update();
  48800. this.updateFilter();
  48801. });
  48802. this.model.on("reset", this.reset, this); // This event gets triggered once *all* contacts (i.e. not
  48803. // just this group's) have been fetched from browser
  48804. // storage or the XMPP server and once they've been
  48805. // assigned to their various groups.
  48806. _converse.on('rosterGroupsFetched', this.sortAndPositionAllItems.bind(this));
  48807. _converse.on('rosterContactsFetched', () => {
  48808. _converse.roster.each(contact => this.addRosterContact(contact, {
  48809. 'silent': true
  48810. }));
  48811. this.update();
  48812. this.updateFilter();
  48813. this.trigger('rosterContactsFetchedAndProcessed');
  48814. });
  48815. this.createRosterFilter();
  48816. },
  48817. render() {
  48818. this.el.innerHTML = tpl_roster({
  48819. 'allow_contact_requests': _converse.allow_contact_requests,
  48820. 'heading_contacts': __('Contacts'),
  48821. 'title_add_contact': __('Add a contact')
  48822. });
  48823. const form = this.el.querySelector('.roster-filter-form');
  48824. this.el.replaceChild(this.filter_view.render().el, form);
  48825. this.roster_el = this.el.querySelector('.roster-contacts');
  48826. return this;
  48827. },
  48828. showAddContactModal(ev) {
  48829. if (_.isUndefined(this.add_contact_modal)) {
  48830. this.add_contact_modal = new _converse.AddContactModal({
  48831. 'model': new Backbone.Model()
  48832. });
  48833. }
  48834. this.add_contact_modal.show(ev);
  48835. },
  48836. createRosterFilter() {
  48837. // Create a model on which we can store filter properties
  48838. const model = new _converse.RosterFilter();
  48839. model.id = b64_sha1(`_converse.rosterfilter${_converse.bare_jid}`);
  48840. model.browserStorage = new Backbone.BrowserStorage.local(this.filter.id);
  48841. this.filter_view = new _converse.RosterFilterView({
  48842. 'model': model
  48843. });
  48844. this.filter_view.model.on('change', this.updateFilter, this);
  48845. this.filter_view.model.fetch();
  48846. },
  48847. updateFilter: _.debounce(function () {
  48848. /* Filter the roster again.
  48849. * Called whenever the filter settings have been changed or
  48850. * when contacts have been added, removed or changed.
  48851. *
  48852. * Debounced so that it doesn't get called for every
  48853. * contact fetched from browser storage.
  48854. */
  48855. const type = this.filter_view.model.get('filter_type');
  48856. if (type === 'state') {
  48857. this.filter(this.filter_view.model.get('chat_state'), type);
  48858. } else {
  48859. this.filter(this.filter_view.model.get('filter_text'), type);
  48860. }
  48861. }, 100),
  48862. update: _.debounce(function () {
  48863. if (!u.isVisible(this.roster_el)) {
  48864. u.showElement(this.roster_el);
  48865. }
  48866. this.filter_view.showOrHide();
  48867. return this;
  48868. }, _converse.animate ? 100 : 0),
  48869. filter(query, type) {
  48870. // First we make sure the filter is restored to its
  48871. // original state
  48872. _.each(this.getAll(), function (view) {
  48873. if (view.model.contacts.length > 0) {
  48874. view.show().filter('');
  48875. }
  48876. }); // Now we can filter
  48877. query = query.toLowerCase();
  48878. if (type === 'groups') {
  48879. _.each(this.getAll(), function (view, idx) {
  48880. if (!_.includes(view.model.get('name').toLowerCase(), query.toLowerCase())) {
  48881. u.slideIn(view.el);
  48882. } else if (view.model.contacts.length > 0) {
  48883. u.slideOut(view.el);
  48884. }
  48885. });
  48886. } else {
  48887. _.each(this.getAll(), function (view) {
  48888. view.filter(query, type);
  48889. });
  48890. }
  48891. },
  48892. reset() {
  48893. _converse.roster.reset();
  48894. this.removeAll();
  48895. this.render().update();
  48896. return this;
  48897. },
  48898. onContactAdded(contact) {
  48899. this.addRosterContact(contact);
  48900. this.update();
  48901. this.updateFilter();
  48902. },
  48903. onContactChange(contact) {
  48904. this.updateChatBox(contact);
  48905. this.update();
  48906. if (_.has(contact.changed, 'subscription')) {
  48907. if (contact.changed.subscription === 'from') {
  48908. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
  48909. } else if (_.includes(['both', 'to'], contact.get('subscription'))) {
  48910. this.addExistingContact(contact);
  48911. }
  48912. }
  48913. if (_.has(contact.changed, 'ask') && contact.changed.ask === 'subscribe') {
  48914. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
  48915. }
  48916. if (_.has(contact.changed, 'subscription') && contact.changed.requesting === 'true') {
  48917. this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS);
  48918. }
  48919. this.updateFilter();
  48920. },
  48921. updateChatBox(contact) {
  48922. if (!this.model.chatbox) {
  48923. return this;
  48924. }
  48925. const changes = {};
  48926. if (_.has(contact.changed, 'status')) {
  48927. changes.status = contact.get('status');
  48928. }
  48929. this.model.chatbox.save(changes);
  48930. return this;
  48931. },
  48932. getGroup(name) {
  48933. /* Returns the group as specified by name.
  48934. * Creates the group if it doesn't exist.
  48935. */
  48936. const view = this.get(name);
  48937. if (view) {
  48938. return view.model;
  48939. }
  48940. return this.model.create({
  48941. name,
  48942. id: b64_sha1(name)
  48943. });
  48944. },
  48945. addContactToGroup(contact, name, options) {
  48946. this.getGroup(name).contacts.add(contact, options);
  48947. this.sortAndPositionAllItems();
  48948. },
  48949. addExistingContact(contact, options) {
  48950. let groups;
  48951. if (_converse.roster_groups) {
  48952. groups = contact.get('groups');
  48953. if (groups.length === 0) {
  48954. groups = [HEADER_UNGROUPED];
  48955. }
  48956. } else {
  48957. groups = [HEADER_CURRENT_CONTACTS];
  48958. }
  48959. _.each(groups, _.bind(this.addContactToGroup, this, contact, _, options));
  48960. },
  48961. addRosterContact(contact, options) {
  48962. if (contact.get('subscription') === 'both' || contact.get('subscription') === 'to') {
  48963. this.addExistingContact(contact, options);
  48964. } else {
  48965. if (!_converse.allow_contact_requests) {
  48966. _converse.log(`Not adding requesting or pending contact ${contact.get('jid')} ` + `because allow_contact_requests is false`, Strophe.LogLevel.DEBUG);
  48967. return;
  48968. }
  48969. if (contact.get('ask') === 'subscribe' || contact.get('subscription') === 'from') {
  48970. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS, options);
  48971. } else if (contact.get('requesting') === true) {
  48972. this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS, options);
  48973. }
  48974. }
  48975. return this;
  48976. }
  48977. });
  48978. /* -------- Event Handlers ----------- */
  48979. _converse.api.listen.on('chatBoxesInitialized', () => {
  48980. _converse.chatboxes.on('change:hidden', chatbox => {
  48981. const contact = _converse.roster.findWhere({
  48982. 'jid': chatbox.get('jid')
  48983. });
  48984. if (!_.isUndefined(contact)) {
  48985. contact.trigger('highlight', contact);
  48986. }
  48987. });
  48988. });
  48989. function initRoster() {
  48990. /* Create an instance of RosterView once the RosterGroups
  48991. * collection has been created (in converse-core.js)
  48992. */
  48993. if (_converse.authentication === _converse.ANONYMOUS) {
  48994. return;
  48995. }
  48996. _converse.rosterview = new _converse.RosterView({
  48997. 'model': _converse.rostergroups
  48998. });
  48999. _converse.rosterview.render();
  49000. _converse.emit('rosterViewInitialized');
  49001. }
  49002. _converse.api.listen.on('rosterInitialized', initRoster);
  49003. _converse.api.listen.on('rosterReadyAfterReconnection', initRoster);
  49004. }
  49005. });
  49006. });
  49007. /***/ }),
  49008. /***/ "./src/converse-singleton.js":
  49009. /*!***********************************!*\
  49010. !*** ./src/converse-singleton.js ***!
  49011. \***********************************/
  49012. /*! no static exports found */
  49013. /***/ (function(module, exports, __webpack_require__) {
  49014. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  49015. // http://conversejs.org
  49016. //
  49017. // Copyright (c) 2012-2018, the Converse.js developers
  49018. // Licensed under the Mozilla Public License (MPLv2)
  49019. /* converse-singleton
  49020. * ******************
  49021. *
  49022. * A plugin which ensures that only one chat (private or groupchat) is
  49023. * visible at any one time. All other ongoing chats are hidden and kept in the
  49024. * background.
  49025. *
  49026. * This plugin makes sense in mobile or fullscreen chat environments (as
  49027. * configured by the `view_mode` setting).
  49028. *
  49029. */
  49030. (function (root, factory) {
  49031. !(__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),
  49032. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  49033. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  49034. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  49035. })(this, function (converse) {
  49036. "use strict";
  49037. const _converse$env = converse.env,
  49038. _ = _converse$env._,
  49039. Strophe = _converse$env.Strophe;
  49040. const u = converse.env.utils;
  49041. function hideChat(view) {
  49042. if (view.model.get('id') === 'controlbox') {
  49043. return;
  49044. }
  49045. u.safeSave(view.model, {
  49046. 'hidden': true
  49047. });
  49048. view.hide();
  49049. }
  49050. converse.plugins.add('converse-singleton', {
  49051. // It's possible however to make optional dependencies non-optional.
  49052. // If the setting "strict_plugin_dependencies" is set to true,
  49053. // an error will be raised if the plugin is not found.
  49054. //
  49055. // NB: These plugins need to have already been loaded via require.js.
  49056. dependencies: ['converse-chatboxes', 'converse-muc', 'converse-muc-views', 'converse-controlbox', 'converse-rosterview'],
  49057. overrides: {
  49058. // overrides mentioned here will be picked up by converse.js's
  49059. // plugin architecture they will replace existing methods on the
  49060. // relevant objects or classes.
  49061. //
  49062. // new functions which don't exist yet can also be added.
  49063. ChatBoxes: {
  49064. chatBoxMayBeShown(chatbox) {
  49065. const _converse = this.__super__._converse;
  49066. if (chatbox.get('id') === 'controlbox') {
  49067. return true;
  49068. }
  49069. if (_converse.isSingleton()) {
  49070. const any_chats_visible = _converse.chatboxes.filter(cb => cb.get('id') != 'controlbox').filter(cb => !cb.get('hidden')).length > 0;
  49071. if (any_chats_visible) {
  49072. return !chatbox.get('hidden');
  49073. } else {
  49074. return true;
  49075. }
  49076. } else {
  49077. return this.__super__.chatBoxMayBeShown.apply(this, arguments);
  49078. }
  49079. },
  49080. createChatBox(jid, attrs) {
  49081. /* Make sure new chat boxes are hidden by default. */
  49082. const _converse = this.__super__._converse;
  49083. if (_converse.isSingleton()) {
  49084. attrs = attrs || {};
  49085. attrs.hidden = true;
  49086. }
  49087. return this.__super__.createChatBox.call(this, jid, attrs);
  49088. }
  49089. },
  49090. ChatBoxView: {
  49091. shouldShowOnTextMessage() {
  49092. const _converse = this.__super__._converse;
  49093. if (_converse.isSingleton()) {
  49094. return false;
  49095. } else {
  49096. return this.__super__.shouldShowOnTextMessage.apply(this, arguments);
  49097. }
  49098. },
  49099. _show(focus) {
  49100. /* We only have one chat visible at any one
  49101. * time. So before opening a chat, we make sure all other
  49102. * chats are hidden.
  49103. */
  49104. const _converse = this.__super__._converse;
  49105. if (_converse.isSingleton()) {
  49106. _.each(this.__super__._converse.chatboxviews.xget(this.model.get('id')), hideChat);
  49107. u.safeSave(this.model, {
  49108. 'hidden': false
  49109. });
  49110. }
  49111. return this.__super__._show.apply(this, arguments);
  49112. }
  49113. },
  49114. ChatRoomView: {
  49115. show(focus) {
  49116. const _converse = this.__super__._converse;
  49117. if (_converse.isSingleton()) {
  49118. _.each(this.__super__._converse.chatboxviews.xget(this.model.get('id')), hideChat);
  49119. u.safeSave(this.model, {
  49120. 'hidden': false
  49121. });
  49122. }
  49123. return this.__super__.show.apply(this, arguments);
  49124. }
  49125. }
  49126. }
  49127. });
  49128. });
  49129. /***/ }),
  49130. /***/ "./src/converse-vcard.js":
  49131. /*!*******************************!*\
  49132. !*** ./src/converse-vcard.js ***!
  49133. \*******************************/
  49134. /*! no static exports found */
  49135. /***/ (function(module, exports, __webpack_require__) {
  49136. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js
  49137. // http://conversejs.org
  49138. //
  49139. // Copyright (c) 2013-2018, the Converse.js developers
  49140. // Licensed under the Mozilla Public License (MPLv2)
  49141. (function (root, factory) {
  49142. !(__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),
  49143. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  49144. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  49145. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  49146. })(this, function (converse, tpl_vcard) {
  49147. "use strict";
  49148. const _converse$env = converse.env,
  49149. Backbone = _converse$env.Backbone,
  49150. Promise = _converse$env.Promise,
  49151. Strophe = _converse$env.Strophe,
  49152. _ = _converse$env._,
  49153. $iq = _converse$env.$iq,
  49154. $build = _converse$env.$build,
  49155. b64_sha1 = _converse$env.b64_sha1,
  49156. moment = _converse$env.moment,
  49157. sizzle = _converse$env.sizzle;
  49158. const u = converse.env.utils;
  49159. converse.plugins.add('converse-vcard', {
  49160. initialize() {
  49161. /* The initialize function gets called as soon as the plugin is
  49162. * loaded by converse.js's plugin machinery.
  49163. */
  49164. const _converse = this._converse;
  49165. _converse.VCard = Backbone.Model.extend({
  49166. defaults: {
  49167. 'image': _converse.DEFAULT_IMAGE,
  49168. 'image_type': _converse.DEFAULT_IMAGE_TYPE
  49169. },
  49170. set(key, val, options) {
  49171. // Override Backbone.Model.prototype.set to make sure that the
  49172. // default `image` and `image_type` values are maintained.
  49173. let attrs;
  49174. if (typeof key === 'object') {
  49175. attrs = key;
  49176. options = val;
  49177. } else {
  49178. (attrs = {})[key] = val;
  49179. }
  49180. if (_.has(attrs, 'image') && !attrs['image']) {
  49181. attrs['image'] = _converse.DEFAULT_IMAGE;
  49182. attrs['image_type'] = _converse.DEFAULT_IMAGE_TYPE;
  49183. return Backbone.Model.prototype.set.call(this, attrs, options);
  49184. } else {
  49185. return Backbone.Model.prototype.set.apply(this, arguments);
  49186. }
  49187. }
  49188. });
  49189. _converse.VCards = Backbone.Collection.extend({
  49190. model: _converse.VCard,
  49191. initialize() {
  49192. this.on('add', vcard => _converse.api.vcard.update(vcard));
  49193. }
  49194. });
  49195. function onVCardData(jid, iq, callback) {
  49196. const vcard = iq.querySelector('vCard');
  49197. let result = {};
  49198. if (!_.isNull(vcard)) {
  49199. result = {
  49200. 'stanza': iq,
  49201. 'fullname': _.get(vcard.querySelector('FN'), 'textContent'),
  49202. 'nickname': _.get(vcard.querySelector('NICKNAME'), 'textContent'),
  49203. 'image': _.get(vcard.querySelector('PHOTO BINVAL'), 'textContent'),
  49204. 'image_type': _.get(vcard.querySelector('PHOTO TYPE'), 'textContent'),
  49205. 'url': _.get(vcard.querySelector('URL'), 'textContent'),
  49206. 'role': _.get(vcard.querySelector('ROLE'), 'textContent'),
  49207. 'email': _.get(vcard.querySelector('EMAIL USERID'), 'textContent'),
  49208. 'vcard_updated': moment().format(),
  49209. 'vcard_error': undefined
  49210. };
  49211. }
  49212. if (result.image) {
  49213. const buffer = u.base64ToArrayBuffer(result['image']);
  49214. crypto.subtle.digest('SHA-1', buffer).then(ab => {
  49215. result['image_hash'] = u.arrayBufferToHex(ab);
  49216. if (callback) callback(result);
  49217. });
  49218. } else {
  49219. if (callback) callback(result);
  49220. }
  49221. }
  49222. function onVCardError(jid, iq, errback) {
  49223. if (errback) {
  49224. errback({
  49225. 'stanza': iq,
  49226. 'jid': jid,
  49227. 'vcard_error': moment().format()
  49228. });
  49229. }
  49230. }
  49231. function createStanza(type, jid, vcard_el) {
  49232. const iq = $iq(jid ? {
  49233. 'type': type,
  49234. 'to': jid
  49235. } : {
  49236. 'type': type
  49237. });
  49238. if (!vcard_el) {
  49239. iq.c("vCard", {
  49240. 'xmlns': Strophe.NS.VCARD
  49241. });
  49242. } else {
  49243. iq.cnode(vcard_el);
  49244. }
  49245. return iq;
  49246. }
  49247. function setVCard(jid, data) {
  49248. if (!jid) {
  49249. throw Error("No jid provided for the VCard data");
  49250. }
  49251. const vcard_el = Strophe.xmlHtmlNode(tpl_vcard(data)).firstElementChild;
  49252. return _converse.api.sendIQ(createStanza("set", jid, vcard_el));
  49253. }
  49254. function getVCard(_converse, jid) {
  49255. /* Request the VCard of another user. Returns a promise.
  49256. *
  49257. * Parameters:
  49258. * (String) jid - The Jabber ID of the user whose VCard
  49259. * is being requested.
  49260. */
  49261. const to = Strophe.getBareJidFromJid(jid) === _converse.bare_jid ? null : jid;
  49262. return new Promise((resolve, reject) => {
  49263. _converse.connection.sendIQ(createStanza("get", to), _.partial(onVCardData, jid, _, resolve), _.partial(onVCardError, jid, _, resolve), _converse.IQ_TIMEOUT);
  49264. });
  49265. }
  49266. /* Event handlers */
  49267. _converse.initVCardCollection = function () {
  49268. _converse.vcards = new _converse.VCards();
  49269. const id = b64_sha1(`converse.vcards`);
  49270. _converse.vcards.browserStorage = new Backbone.BrowserStorage[_converse.config.get('storage')](id);
  49271. _converse.vcards.fetch();
  49272. };
  49273. _converse.api.listen.on('sessionInitialized', _converse.initVCardCollection);
  49274. _converse.on('addClientFeatures', () => {
  49275. _converse.api.disco.own.features.add(Strophe.NS.VCARD);
  49276. });
  49277. _.extend(_converse.api, {
  49278. /**
  49279. * The XEP-0054 VCard API
  49280. *
  49281. * This API lets you access and update user VCards
  49282. *
  49283. * @namespace _converse.api.vcard
  49284. * @memberOf _converse.api
  49285. */
  49286. 'vcard': {
  49287. /**
  49288. * Enables setting new values for a VCard.
  49289. *
  49290. * @method _converse.api.vcard.set
  49291. * @param {string} jid The JID for which the VCard should be set
  49292. * @param {object} data A map of VCard keys and values
  49293. * @example
  49294. * _converse.api.vcard.set({
  49295. * 'jid': _converse.bare_jid,
  49296. * 'fn': 'John Doe',
  49297. * 'nickname': 'jdoe'
  49298. * }).then(() => {
  49299. * // Succes
  49300. * }).catch(() => {
  49301. * // Failure
  49302. * }).
  49303. */
  49304. 'set'(jid, data) {
  49305. return setVCard(jid, data);
  49306. },
  49307. /**
  49308. * @method _converse.api.vcard.get
  49309. * @param {Backbone.Model|string} model Either a `Backbone.Model` instance, or a string JID.
  49310. * If a `Backbone.Model` instance is passed in, then it must have either a `jid`
  49311. * attribute or a `muc_jid` attribute.
  49312. * @param {boolean} [force] A boolean indicating whether the vcard should be
  49313. * fetched even if it's been fetched before.
  49314. * @returns {promise} A Promise which resolves with the VCard data for a particular JID or for
  49315. * a `Backbone.Model` instance which represents an entity with a JID (such as a roster contact,
  49316. * chat or chatroom occupant).
  49317. *
  49318. * @example
  49319. * _converse.api.waitUntil('rosterContactsFetched').then(() => {
  49320. * _converse.api.vcard.get('someone@example.org').then(
  49321. * (vcard) => {
  49322. * // Do something with the vcard...
  49323. * }
  49324. * );
  49325. * });
  49326. */
  49327. 'get'(model, force) {
  49328. if (_.isString(model)) {
  49329. return getVCard(_converse, model);
  49330. } else if (force || !model.get('vcard_updated') || !moment(model.get('vcard_error')).isSame(new Date(), "day")) {
  49331. const jid = model.get('jid');
  49332. if (!jid) {
  49333. throw new Error("No JID to get vcard for!");
  49334. }
  49335. return getVCard(_converse, jid);
  49336. } else {
  49337. return Promise.resolve({});
  49338. }
  49339. },
  49340. /**
  49341. * Fetches the VCard associated with a particular `Backbone.Model` instance
  49342. * (by using its `jid` or `muc_jid` attribute) and then updates the model with the
  49343. * returned VCard data.
  49344. *
  49345. * @method _converse.api.vcard.update
  49346. * @param {Backbone.Model} model A `Backbone.Model` instance
  49347. * @param {boolean} [force] A boolean indicating whether the vcard should be
  49348. * fetched again even if it's been fetched before.
  49349. * @returns {promise} A promise which resolves once the update has completed.
  49350. * @example
  49351. * _converse.api.waitUntil('rosterContactsFetched').then(() => {
  49352. * const chatbox = _converse.chatboxes.getChatBox('someone@example.org');
  49353. * _converse.api.vcard.update(chatbox);
  49354. * });
  49355. */
  49356. 'update'(model, force) {
  49357. return this.get(model, force).then(vcard => {
  49358. delete vcard['stanza'];
  49359. model.save(vcard);
  49360. });
  49361. }
  49362. }
  49363. });
  49364. }
  49365. });
  49366. });
  49367. /***/ }),
  49368. /***/ "./src/converse.js":
  49369. /*!*************************!*\
  49370. !*** ./src/converse.js ***!
  49371. \*************************/
  49372. /*! no static exports found */
  49373. /***/ (function(module, exports, __webpack_require__) {
  49374. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*global define */
  49375. if (true) {
  49376. // The section below determines which plugins will be included in a build
  49377. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"),
  49378. /* START: Removable components
  49379. * --------------------
  49380. * Any of the following components may be removed if they're not needed.
  49381. */
  49382. __webpack_require__(/*! converse-autocomplete */ "./src/converse-autocomplete.js"), __webpack_require__(/*! converse-bookmarks */ "./src/converse-bookmarks.js"), // XEP-0048 Bookmarks
  49383. __webpack_require__(/*! converse-caps */ "./src/converse-caps.js"), // XEP-0115 Entity Capabilities
  49384. __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), // Renders standalone chat boxes for single user chat
  49385. __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js"), // The control box
  49386. __webpack_require__(/*! converse-dragresize */ "./src/converse-dragresize.js"), // Allows chat boxes to be resized by dragging them
  49387. __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
  49388. __webpack_require__(/*! converse-headline */ "./src/converse-headline.js"), // Support for headline messages
  49389. __webpack_require__(/*! converse-mam */ "./src/converse-mam.js"), // XEP-0313 Message Archive Management
  49390. __webpack_require__(/*! converse-minimize */ "./src/converse-minimize.js"), // Allows chat boxes to be minimized
  49391. __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), // XEP-0045 Multi-user chat
  49392. __webpack_require__(/*! converse-muc-views */ "./src/converse-muc-views.js"), // Views related to MUC
  49393. __webpack_require__(/*! converse-notification */ "./src/converse-notification.js"), // HTML5 Notifications
  49394. __webpack_require__(/*! converse-omemo */ "./src/converse-omemo.js"), __webpack_require__(/*! converse-ping */ "./src/converse-ping.js"), // XEP-0199 XMPP Ping
  49395. __webpack_require__(/*! converse-register */ "./src/converse-register.js"), // XEP-0077 In-band registration
  49396. __webpack_require__(/*! converse-roomslist */ "./src/converse-roomslist.js"), // Show currently open chat rooms
  49397. __webpack_require__(/*! converse-roster */ "./src/converse-roster.js"), __webpack_require__(/*! converse-vcard */ "./src/converse-vcard.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (converse) {
  49398. return converse;
  49399. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  49400. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  49401. }
  49402. /***/ }),
  49403. /***/ "./src/i18n.js":
  49404. /*!*********************!*\
  49405. !*** ./src/i18n.js ***!
  49406. \*********************/
  49407. /*! no static exports found */
  49408. /***/ (function(module, exports, __webpack_require__) {
  49409. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  49410. // http://conversejs.org
  49411. //
  49412. // This is the internationalization module.
  49413. //
  49414. // Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
  49415. // Licensed under the Mozilla Public License (MPLv2)
  49416. //
  49417. /*global define */
  49418. (function (root, factory) {
  49419. !(__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),
  49420. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  49421. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  49422. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  49423. })(this, function (Promise, Jed, _, moment) {
  49424. 'use strict';
  49425. function detectLocale(library_check) {
  49426. /* Determine which locale is supported by the user's system as well
  49427. * as by the relevant library (e.g. converse.js or moment.js).
  49428. *
  49429. * Parameters:
  49430. * (Function) library_check - Returns a boolean indicating whether
  49431. * the locale is supported.
  49432. */
  49433. var locale, i;
  49434. if (window.navigator.userLanguage) {
  49435. locale = isLocaleAvailable(window.navigator.userLanguage, library_check);
  49436. }
  49437. if (window.navigator.languages && !locale) {
  49438. for (i = 0; i < window.navigator.languages.length && !locale; i++) {
  49439. locale = isLocaleAvailable(window.navigator.languages[i], library_check);
  49440. }
  49441. }
  49442. if (window.navigator.browserLanguage && !locale) {
  49443. locale = isLocaleAvailable(window.navigator.browserLanguage, library_check);
  49444. }
  49445. if (window.navigator.language && !locale) {
  49446. locale = isLocaleAvailable(window.navigator.language, library_check);
  49447. }
  49448. if (window.navigator.systemLanguage && !locale) {
  49449. locale = isLocaleAvailable(window.navigator.systemLanguage, library_check);
  49450. }
  49451. return locale || 'en';
  49452. }
  49453. function isMomentLocale(locale) {
  49454. return _.includes(moment.locales(), locale);
  49455. }
  49456. function isConverseLocale(locale, supported_locales) {
  49457. return _.isString(locale) && _.includes(supported_locales, locale);
  49458. }
  49459. function getLocale(preferred_locale, isSupportedByLibrary) {
  49460. if (_.isString(preferred_locale)) {
  49461. if (preferred_locale === 'en' || isSupportedByLibrary(preferred_locale)) {
  49462. return preferred_locale;
  49463. }
  49464. }
  49465. return detectLocale(isSupportedByLibrary) || 'en';
  49466. }
  49467. function isLocaleAvailable(locale, available) {
  49468. /* Check whether the locale or sub locale (e.g. en-US, en) is supported.
  49469. *
  49470. * Parameters:
  49471. * (String) locale - The locale to check for
  49472. * (Function) available - returns a boolean indicating whether the locale is supported
  49473. */
  49474. if (available(locale)) {
  49475. return locale;
  49476. } else {
  49477. var sublocale = locale.split("-")[0];
  49478. if (sublocale !== locale && available(sublocale)) {
  49479. return sublocale;
  49480. }
  49481. }
  49482. }
  49483. let jed_instance;
  49484. return {
  49485. setLocales(preferred_locale, _converse) {
  49486. _converse.locale = getLocale(preferred_locale, _.partial(isConverseLocale, _, _converse.locales));
  49487. moment.locale(getLocale(preferred_locale, isMomentLocale));
  49488. },
  49489. translate(str) {
  49490. if (_.isNil(jed_instance)) {
  49491. return Jed.sprintf.apply(Jed, arguments);
  49492. }
  49493. var t = jed_instance.translate(str);
  49494. if (arguments.length > 1) {
  49495. return t.fetch.apply(t, [].slice.call(arguments, 1));
  49496. } else {
  49497. return t.fetch();
  49498. }
  49499. },
  49500. fetchTranslations(locale, supported_locales, locale_url) {
  49501. /* Fetch the translations for the given local at the given URL.
  49502. *
  49503. * Parameters:
  49504. * (String) locale: The given i18n locale
  49505. * (Array) supported_locales: List of locales supported
  49506. * (String) locale_url: The URL from which the translations
  49507. * should be fetched.
  49508. */
  49509. return new Promise((resolve, reject) => {
  49510. if (!isConverseLocale(locale, supported_locales) || locale === 'en') {
  49511. return resolve();
  49512. }
  49513. const xhr = new XMLHttpRequest();
  49514. xhr.open('GET', locale_url, true);
  49515. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  49516. xhr.onload = function () {
  49517. if (xhr.status >= 200 && xhr.status < 400) {
  49518. try {
  49519. const data = window.JSON.parse(xhr.responseText);
  49520. jed_instance = new Jed(data);
  49521. resolve();
  49522. } catch (e) {
  49523. xhr.onerror(e);
  49524. }
  49525. } else {
  49526. xhr.onerror();
  49527. }
  49528. };
  49529. xhr.onerror = e => {
  49530. const err_message = e ? ` Error: ${e.message}` : '';
  49531. reject(new Error(`Could not fetch translations. Status: ${xhr.statusText}. ${err_message}`));
  49532. };
  49533. xhr.send();
  49534. });
  49535. }
  49536. };
  49537. });
  49538. /***/ }),
  49539. /***/ "./src/jquery-stub.js":
  49540. /*!****************************!*\
  49541. !*** ./src/jquery-stub.js ***!
  49542. \****************************/
  49543. /*! no static exports found */
  49544. /***/ (function(module, exports, __webpack_require__) {
  49545. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*global define */
  49546. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  49547. return Object;
  49548. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  49549. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  49550. /***/ }),
  49551. /***/ "./src/lodash.fp.js":
  49552. /*!**************************!*\
  49553. !*** ./src/lodash.fp.js ***!
  49554. \**************************/
  49555. /*! no static exports found */
  49556. /***/ (function(module, exports, __webpack_require__) {
  49557. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash */ "lodash"), __webpack_require__(/*! lodash.converter */ "lodash.converter")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (_, lodashConverter) {
  49558. var fp = lodashConverter(_.runInContext());
  49559. return fp;
  49560. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  49561. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  49562. /***/ }),
  49563. /***/ "./src/polyfill.js":
  49564. /*!*************************!*\
  49565. !*** ./src/polyfill.js ***!
  49566. \*************************/
  49567. /*! no static exports found */
  49568. /***/ (function(module, exports) {
  49569. function CustomEvent(event, params) {
  49570. params = params || {
  49571. bubbles: false,
  49572. cancelable: false,
  49573. detail: undefined
  49574. };
  49575. var evt = document.createEvent('CustomEvent');
  49576. evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
  49577. return evt;
  49578. }
  49579. if (typeof window.CustomEvent !== "function") {
  49580. CustomEvent.prototype = window.Event.prototype;
  49581. window.CustomEvent = CustomEvent;
  49582. }
  49583. if (!String.prototype.includes) {
  49584. String.prototype.includes = function (search, start) {
  49585. 'use strict';
  49586. if (typeof start !== 'number') {
  49587. start = 0;
  49588. }
  49589. if (start + search.length > this.length) {
  49590. return false;
  49591. } else {
  49592. return this.indexOf(search, start) !== -1; // eslint-disable-line lodash/prefer-includes
  49593. }
  49594. };
  49595. }
  49596. if (!String.prototype.endsWith) {
  49597. String.prototype.endsWith = function (searchString, position) {
  49598. var subjectString = this.toString();
  49599. if (position === undefined || position > subjectString.length) {
  49600. position = subjectString.length;
  49601. }
  49602. position -= searchString.length;
  49603. var lastIndex = subjectString.indexOf(searchString, position);
  49604. return lastIndex !== -1 && lastIndex === position;
  49605. };
  49606. }
  49607. if (!String.prototype.startsWith) {
  49608. String.prototype.startsWith = function (searchString, position) {
  49609. position = position || 0;
  49610. return this.substr(position, searchString.length) === searchString;
  49611. };
  49612. }
  49613. if (!String.prototype.splitOnce) {
  49614. String.prototype.splitOnce = function (delimiter) {
  49615. var components = this.split(delimiter);
  49616. return [components.shift(), components.join(delimiter)];
  49617. };
  49618. }
  49619. if (!String.prototype.trim) {
  49620. String.prototype.trim = function () {
  49621. return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
  49622. };
  49623. }
  49624. /***/ }),
  49625. /***/ "./src/templates/add_chatroom_modal.html":
  49626. /*!***********************************************!*\
  49627. !*** ./src/templates/add_chatroom_modal.html ***!
  49628. \***********************************************/
  49629. /*! no static exports found */
  49630. /***/ (function(module, exports, __webpack_require__) {
  49631. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49632. module.exports = function(o) {
  49633. var __t, __p = '', __e = _.escape;
  49634. __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">' +
  49635. __e(o.heading_new_chatroom) +
  49636. '</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">' +
  49637. __e(o.label_room_address) +
  49638. ':</label>\n <input type="text" required="required" name="chatroom" class="form-control" placeholder="' +
  49639. __e(o.chatroom_placeholder) +
  49640. '">\n </div>\n <div class="form-group">\n <label for="nickname">' +
  49641. __e(o.label_nickname) +
  49642. ':</label>\n <input type="text" name="nickname" value="' +
  49643. __e(o.nick) +
  49644. '" class="form-control">\n </div>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  49645. __e(o.label_join) +
  49646. '">\n </form>\n </div>\n </div>\n </div>\n</div>\n';
  49647. return __p
  49648. };
  49649. /***/ }),
  49650. /***/ "./src/templates/add_contact_modal.html":
  49651. /*!**********************************************!*\
  49652. !*** ./src/templates/add_contact_modal.html ***!
  49653. \**********************************************/
  49654. /*! no static exports found */
  49655. /***/ (function(module, exports, __webpack_require__) {
  49656. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49657. module.exports = function(o) {
  49658. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49659. function print() { __p += __j.call(arguments, '') }
  49660. __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">' +
  49661. __e(o.heading_new_contact) +
  49662. '</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 ';
  49663. if (o._converse.xhr_user_search_url) { ;
  49664. __p += ' hidden ';
  49665. } ;
  49666. __p += '">\n <label class="clearfix" for="jid">' +
  49667. __e(o.label_xmpp_address) +
  49668. ':</label>\n <input type="text" name="jid" required="required" value="' +
  49669. __e(o.jid) +
  49670. '"\n class="form-control"\n placeholder="' +
  49671. __e(o.contact_placeholder) +
  49672. '"/>\n <div class="invalid-feedback">' +
  49673. __e(o.error_message) +
  49674. '</div>\n </div>\n <div class="form-group">\n <label class="clearfix" for="name">' +
  49675. __e(o.label_nickname) +
  49676. ':</label>\n <input type="text" name="name" value="' +
  49677. __e(o.nickname) +
  49678. '"\n class="form-control"\n placeholder="' +
  49679. __e(o.nickname_placeholder) +
  49680. '"/>\n </div>\n </div>\n <div class="modal-footer">\n <button type="submit" class="btn btn-primary">' +
  49681. __e(o.label_add) +
  49682. '</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
  49683. return __p
  49684. };
  49685. /***/ }),
  49686. /***/ "./src/templates/alert.html":
  49687. /*!**********************************!*\
  49688. !*** ./src/templates/alert.html ***!
  49689. \**********************************/
  49690. /*! no static exports found */
  49691. /***/ (function(module, exports, __webpack_require__) {
  49692. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49693. module.exports = function(o) {
  49694. var __t, __p = '', __e = _.escape;
  49695. __p += '<!-- src/templates/alert.html -->\n<div class="alert ' +
  49696. __e(o.type) +
  49697. '" role="alert">' +
  49698. __e(o.message) +
  49699. '</div>\n';
  49700. return __p
  49701. };
  49702. /***/ }),
  49703. /***/ "./src/templates/alert_modal.html":
  49704. /*!****************************************!*\
  49705. !*** ./src/templates/alert_modal.html ***!
  49706. \****************************************/
  49707. /*! no static exports found */
  49708. /***/ (function(module, exports, __webpack_require__) {
  49709. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49710. module.exports = function(o) {
  49711. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49712. function print() { __p += __j.call(arguments, '') }
  49713. __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 ' +
  49714. __e(o.type) +
  49715. '">\n <h5 class="modal-title">' +
  49716. __e(o.title) +
  49717. '</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">';
  49718. o.messages.forEach(function (message) { ;
  49719. __p += '\n <p>' +
  49720. __e(message) +
  49721. '</p>\n ';
  49722. }) ;
  49723. __p += '\n </div>\n </div>\n </div>\n</div>\n';
  49724. return __p
  49725. };
  49726. /***/ }),
  49727. /***/ "./src/templates/audio.html":
  49728. /*!**********************************!*\
  49729. !*** ./src/templates/audio.html ***!
  49730. \**********************************/
  49731. /*! no static exports found */
  49732. /***/ (function(module, exports, __webpack_require__) {
  49733. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49734. module.exports = function(o) {
  49735. var __t, __p = '', __e = _.escape;
  49736. __p += '<!-- src/templates/audio.html -->\n<audio controls src="' +
  49737. __e(o.url) +
  49738. '"></audio>\n<a target="_blank" rel="noopener" href="' +
  49739. __e(o.url) +
  49740. '">' +
  49741. __e(o.label_download) +
  49742. '</a>\n';
  49743. return __p
  49744. };
  49745. /***/ }),
  49746. /***/ "./src/templates/bookmark.html":
  49747. /*!*************************************!*\
  49748. !*** ./src/templates/bookmark.html ***!
  49749. \*************************************/
  49750. /*! no static exports found */
  49751. /***/ (function(module, exports, __webpack_require__) {
  49752. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49753. module.exports = function(o) {
  49754. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49755. function print() { __p += __j.call(arguments, '') }
  49756. __p += '<!-- src/templates/bookmark.html -->\n<div class="list-item controlbox-padded room-item available-chatroom d-flex flex-row ';
  49757. if (o.hidden) { ;
  49758. __p += ' hidden ';
  49759. } ;
  49760. __p += '" data-room-jid="' +
  49761. __e(o.jid) +
  49762. '">\n <a class="list-item-link open-room w-100" data-room-jid="' +
  49763. __e(o.jid) +
  49764. '" title="' +
  49765. __e(o.open_title) +
  49766. '" href="#">' +
  49767. __e(o.name) +
  49768. '</a>\n <a class="list-item-action remove-bookmark fa fa-bookmark align-self-center ';
  49769. if (o.bookmarked) { ;
  49770. __p += ' button-on ';
  49771. } ;
  49772. __p += '"\n data-room-jid="' +
  49773. __e(o.jid) +
  49774. '" data-bookmark-name="' +
  49775. __e(o.name) +
  49776. '"\n title="' +
  49777. __e(o.info_remove_bookmark) +
  49778. '" href="#">&nbsp;</a>\n</div>\n';
  49779. return __p
  49780. };
  49781. /***/ }),
  49782. /***/ "./src/templates/bookmarks_list.html":
  49783. /*!*******************************************!*\
  49784. !*** ./src/templates/bookmarks_list.html ***!
  49785. \*******************************************/
  49786. /*! no static exports found */
  49787. /***/ (function(module, exports, __webpack_require__) {
  49788. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49789. module.exports = function(o) {
  49790. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49791. function print() { __p += __j.call(arguments, '') }
  49792. __p += '<!-- src/templates/bookmarks_list.html -->\n<a href="#" class="list-toggle bookmarks-toggle controlbox-padded" title="' +
  49793. __e(o.desc_bookmarks) +
  49794. '">\n <span class="fa ';
  49795. if (o.toggle_state === o._converse.OPENED) { ;
  49796. __p += ' fa-caret-down ';
  49797. } else { ;
  49798. __p += ' fa-caret-right ';
  49799. } ;
  49800. __p += '">\n </span> ' +
  49801. __e(o.label_bookmarks) +
  49802. '</a>\n<div class="items-list bookmarks rooms-list ';
  49803. if (o.toggle_state !== o._converse.OPENED) { ;
  49804. __p += ' hidden ';
  49805. } ;
  49806. __p += '"></div>\n';
  49807. return __p
  49808. };
  49809. /***/ }),
  49810. /***/ "./src/templates/chat_status_modal.html":
  49811. /*!**********************************************!*\
  49812. !*** ./src/templates/chat_status_modal.html ***!
  49813. \**********************************************/
  49814. /*! no static exports found */
  49815. /***/ (function(module, exports, __webpack_require__) {
  49816. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49817. module.exports = function(o) {
  49818. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49819. function print() { __p += __j.call(arguments, '') }
  49820. __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">' +
  49821. __e(o.modal_title) +
  49822. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  49823. __e(o.label_close) +
  49824. '">\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 ';
  49825. if (o.status === 'online') { ;
  49826. __p += ' checked="checked" ';
  49827. } ;
  49828. __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 chat-status chat-status--online"></span>&nbsp;' +
  49829. __e(o.label_online) +
  49830. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  49831. if (o.status === 'busy') { ;
  49832. __p += ' checked="checked" ';
  49833. } ;
  49834. __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 chat-status chat-status--busy"></span>&nbsp;' +
  49835. __e(o.label_busy) +
  49836. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  49837. if (o.status === 'away') { ;
  49838. __p += ' checked="checked" ';
  49839. } ;
  49840. __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-circle chat-status chat-status--away"></span>&nbsp;' +
  49841. __e(o.label_away) +
  49842. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  49843. if (o.status === 'xa') { ;
  49844. __p += ' checked="checked" ';
  49845. } ;
  49846. __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 chat-status chat-status--xa"></span>&nbsp;' +
  49847. __e(o.label_xa) +
  49848. '</label>\n </div>\n </div>\n <div class="btn-group w-100">\n <input name="status_message" type="text" class="form-control" \n value="' +
  49849. __e(o.status_message) +
  49850. '" placeholder="' +
  49851. __e(o.placeholder_status_message) +
  49852. '">\n <span class="clear-input fa fa-times ';
  49853. if (!o.status_message) { ;
  49854. __p += ' hidden ';
  49855. } ;
  49856. __p += '"></span>\n </div>\n </div>\n <div class="modal-footer">\n <button type="submit" class="btn btn-primary">' +
  49857. __e(o.label_save) +
  49858. '</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
  49859. return __p
  49860. };
  49861. /***/ }),
  49862. /***/ "./src/templates/chatarea.html":
  49863. /*!*************************************!*\
  49864. !*** ./src/templates/chatarea.html ***!
  49865. \*************************************/
  49866. /*! no static exports found */
  49867. /***/ (function(module, exports, __webpack_require__) {
  49868. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49869. module.exports = function(o) {
  49870. var __t, __p = '', __j = Array.prototype.join;
  49871. function print() { __p += __j.call(arguments, '') }
  49872. __p += '<!-- src/templates/chatarea.html -->\n<div class="chat-area col-md-9 col-8">\n <div class="chat-content ';
  49873. if (o.show_send_button) { ;
  49874. __p += 'chat-content-sendbutton';
  49875. } ;
  49876. __p += '"></div>\n <div class="message-form-container"/>\n</div>\n';
  49877. return __p
  49878. };
  49879. /***/ }),
  49880. /***/ "./src/templates/chatbox.html":
  49881. /*!************************************!*\
  49882. !*** ./src/templates/chatbox.html ***!
  49883. \************************************/
  49884. /*! no static exports found */
  49885. /***/ (function(module, exports, __webpack_require__) {
  49886. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49887. module.exports = function(o) {
  49888. var __t, __p = '', __j = Array.prototype.join;
  49889. function print() { __p += __j.call(arguments, '') }
  49890. __p += '<!-- src/templates/chatbox.html -->\n<div class="flyout box-flyout">\n <div class="chat-body">\n <div class="chat-content ';
  49891. if (o.show_send_button) { ;
  49892. __p += 'chat-content-sendbutton';
  49893. } ;
  49894. __p += '"></div>\n <div class="message-form-container"/>\n </div>\n</div>\n';
  49895. return __p
  49896. };
  49897. /***/ }),
  49898. /***/ "./src/templates/chatbox_head.html":
  49899. /*!*****************************************!*\
  49900. !*** ./src/templates/chatbox_head.html ***!
  49901. \*****************************************/
  49902. /*! no static exports found */
  49903. /***/ (function(module, exports, __webpack_require__) {
  49904. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49905. module.exports = function(o) {
  49906. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49907. function print() { __p += __j.call(arguments, '') }
  49908. __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="' +
  49909. __e(o.jid) +
  49910. '">\n ';
  49911. if (o.url) { ;
  49912. __p += '\n <a href="' +
  49913. __e(o.url) +
  49914. '" target="_blank" rel="noopener" class="user">\n ';
  49915. } ;
  49916. __p += '\n ' +
  49917. __e( o.nickname || o.fullname || o.jid ) +
  49918. '\n ';
  49919. if (o.url) { ;
  49920. __p += '\n </a>\n ';
  49921. } ;
  49922. __p += '\n <p class="user-custom-message">' +
  49923. __e( o.status ) +
  49924. '</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=' +
  49925. __e(o.info_close) +
  49926. '></a>\n <a class="chatbox-btn show-user-details-modal fa fa-id-card" title="' +
  49927. __e(o.info_details) +
  49928. '"></a>\n </div>\n</div>\n';
  49929. return __p
  49930. };
  49931. /***/ }),
  49932. /***/ "./src/templates/chatbox_message_form.html":
  49933. /*!*************************************************!*\
  49934. !*** ./src/templates/chatbox_message_form.html ***!
  49935. \*************************************************/
  49936. /*! no static exports found */
  49937. /***/ (function(module, exports, __webpack_require__) {
  49938. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49939. module.exports = function(o) {
  49940. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  49941. function print() { __p += __j.call(arguments, '') }
  49942. __p += '<!-- src/templates/chatbox_message_form.html -->\n<div class="message-form-container">\n<div class="new-msgs-indicator hidden">▼ ' +
  49943. __e( o.unread_msgs ) +
  49944. ' ▼</div>\n<form class="sendXMPPMessage">\n ';
  49945. if (o.show_toolbar) { ;
  49946. __p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
  49947. } ;
  49948. __p += '\n <input type="text" placeholder="' +
  49949. ((__t = (o.label_spoiler_hint)) == null ? '' : __t) +
  49950. '" value="' +
  49951. ((__t = ( o.hint_value )) == null ? '' : __t) +
  49952. '"\n class="';
  49953. if (!o.composing_spoiler) { ;
  49954. __p += ' hidden ';
  49955. } ;
  49956. __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 ';
  49957. if (o.show_send_button) { ;
  49958. __p += ' chat-textarea-send-button ';
  49959. } ;
  49960. __p += '\n ';
  49961. if (o.composing_spoiler) { ;
  49962. __p += ' spoiler ';
  49963. } ;
  49964. __p += '"\n placeholder="' +
  49965. __e(o.label_message) +
  49966. '">' +
  49967. ((__t = ( o.message_value )) == null ? '' : __t) +
  49968. '</textarea>\n <span class="suggestion-box__additions visually-hidden" role="status" aria-live="assertive" aria-relevant="additions"></span>\n\n ';
  49969. if (o.show_send_button) { ;
  49970. __p += '\n <button type="submit" class="pure-button send-button">' +
  49971. __e( o.label_send ) +
  49972. '</button>\n ';
  49973. } ;
  49974. __p += '\n </div>\n</form>\n</div>\n';
  49975. return __p
  49976. };
  49977. /***/ }),
  49978. /***/ "./src/templates/chatbox_minimize.html":
  49979. /*!*********************************************!*\
  49980. !*** ./src/templates/chatbox_minimize.html ***!
  49981. \*********************************************/
  49982. /*! no static exports found */
  49983. /***/ (function(module, exports, __webpack_require__) {
  49984. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  49985. module.exports = function(o) {
  49986. var __t, __p = '', __e = _.escape;
  49987. __p += '<!-- src/templates/chatbox_minimize.html -->\n<a class="chatbox-btn toggle-chatbox-button fa fa-minus" title="' +
  49988. __e(o.info_minimize) +
  49989. '"></a>\n';
  49990. return __p
  49991. };
  49992. /***/ }),
  49993. /***/ "./src/templates/chatboxes.html":
  49994. /*!**************************************!*\
  49995. !*** ./src/templates/chatboxes.html ***!
  49996. \**************************************/
  49997. /*! no static exports found */
  49998. /***/ (function(module, exports, __webpack_require__) {
  49999. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50000. module.exports = function(o) {
  50001. var __t, __p = '';
  50002. __p += '<!-- src/templates/chatboxes.html -->\n<div class="converse-chatboxes row no-gutters"></div>\n<div id="converse-modals" class="modals"></div>\n';
  50003. return __p
  50004. };
  50005. /***/ }),
  50006. /***/ "./src/templates/chatroom.html":
  50007. /*!*************************************!*\
  50008. !*** ./src/templates/chatroom.html ***!
  50009. \*************************************/
  50010. /*! no static exports found */
  50011. /***/ (function(module, exports, __webpack_require__) {
  50012. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50013. module.exports = function(o) {
  50014. var __t, __p = '';
  50015. __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';
  50016. return __p
  50017. };
  50018. /***/ }),
  50019. /***/ "./src/templates/chatroom_bookmark_form.html":
  50020. /*!***************************************************!*\
  50021. !*** ./src/templates/chatroom_bookmark_form.html ***!
  50022. \***************************************************/
  50023. /*! no static exports found */
  50024. /***/ (function(module, exports, __webpack_require__) {
  50025. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50026. module.exports = function(o) {
  50027. var __t, __p = '', __e = _.escape;
  50028. __p += '<!-- src/templates/chatroom_bookmark_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form">\n <legend>' +
  50029. __e(o.heading) +
  50030. '</legend>\n <fieldset class="form-group">\n <label for="converse_muc_bookmark_name">' +
  50031. __e(o.label_name) +
  50032. '</label>\n <input class="form-control" type="text" value="' +
  50033. __e(o.name) +
  50034. '" name="name" required="required" id="converse_muc_bookmark_name"/>\n </fieldset>\n <fieldset class="form-group">\n <label for="converse_muc_bookmark_nick">' +
  50035. __e(o.label_nick) +
  50036. '</label>\n <input class="form-control" type="text" name="nick" value="' +
  50037. __e(o.default_nick) +
  50038. '" 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">' +
  50039. __e(o.label_autojoin) +
  50040. '</label>\n </fieldset>\n <fieldset class="form-group">\n <input class="btn btn-primary" type="submit" value="' +
  50041. __e(o.label_submit) +
  50042. '"/>\n <input class="btn btn-secondary button-cancel" type="button" value="' +
  50043. __e(o.label_cancel) +
  50044. '"/>\n </fieldset>\n </form>\n</div>\n';
  50045. return __p
  50046. };
  50047. /***/ }),
  50048. /***/ "./src/templates/chatroom_bookmark_toggle.html":
  50049. /*!*****************************************************!*\
  50050. !*** ./src/templates/chatroom_bookmark_toggle.html ***!
  50051. \*****************************************************/
  50052. /*! no static exports found */
  50053. /***/ (function(module, exports, __webpack_require__) {
  50054. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50055. module.exports = function(o) {
  50056. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50057. function print() { __p += __j.call(arguments, '') }
  50058. __p += '<!-- src/templates/chatroom_bookmark_toggle.html -->\n<a class="chatbox-btn toggle-bookmark fa fa-bookmark\n ';
  50059. if (o.bookmarked) {;
  50060. __p += ' button-on ';
  50061. } ;
  50062. __p += '" title="' +
  50063. __e(o.info_toggle_bookmark) +
  50064. '"></a>\n';
  50065. return __p
  50066. };
  50067. /***/ }),
  50068. /***/ "./src/templates/chatroom_destroyed.html":
  50069. /*!***********************************************!*\
  50070. !*** ./src/templates/chatroom_destroyed.html ***!
  50071. \***********************************************/
  50072. /*! no static exports found */
  50073. /***/ (function(module, exports, __webpack_require__) {
  50074. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50075. module.exports = function(o) {
  50076. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50077. function print() { __p += __j.call(arguments, '') }
  50078. __p += '<!-- src/templates/chatroom_destroyed.html -->\n<div class="alert alert-danger">\n <h3 class="alert-heading disconnect-msg">' +
  50079. __e(o.__('This room no longer exists')) +
  50080. '</h3>\n\n <p class="destroyed-reason">' +
  50081. __e(o.reason) +
  50082. '</p>\n\n ';
  50083. if (o.jid) { ;
  50084. __p += '\n <p class="moved-label">\n ' +
  50085. __e(o.__('The conversation has moved. Click below to enter.') ) +
  50086. '\n </p>\n <p class="moved-link"><a class="switch-chat" href="#">' +
  50087. __e(o.jid) +
  50088. '</a></p>\n ';
  50089. } ;
  50090. __p += '\n</div>\n';
  50091. return __p
  50092. };
  50093. /***/ }),
  50094. /***/ "./src/templates/chatroom_details_modal.html":
  50095. /*!***************************************************!*\
  50096. !*** ./src/templates/chatroom_details_modal.html ***!
  50097. \***************************************************/
  50098. /*! no static exports found */
  50099. /***/ (function(module, exports, __webpack_require__) {
  50100. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50101. module.exports = function(o) {
  50102. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50103. function print() { __p += __j.call(arguments, '') }
  50104. __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">' +
  50105. __e(o.display_name) +
  50106. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  50107. __e(o.label_close) +
  50108. '"><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>' +
  50109. __e(o.__('Name')) +
  50110. '</strong>: ' +
  50111. __e(o.name) +
  50112. '</p>\n <p class="room-info"><strong>' +
  50113. __e(o.__('Groupchat address (JID)')) +
  50114. '</strong>: ' +
  50115. __e(o.jid) +
  50116. '</p>\n <p class="room-info"><strong>' +
  50117. __e(o.__('Description')) +
  50118. '</strong>: ' +
  50119. __e(o.description) +
  50120. '</p>\n ';
  50121. if (o.subject) { ;
  50122. __p += '\n <p class="room-info"><strong>' +
  50123. __e(o.__('Topic')) +
  50124. '</strong>: ' +
  50125. ((__t = (o.topic)) == null ? '' : __t) +
  50126. '</p> <!-- Sanitized in converse-muc-views. We want to render links. -->\n <p class="room-info"><strong>' +
  50127. __e(o.__('Topic author')) +
  50128. '</strong>: ' +
  50129. __e(o._.get(o.subject, 'author')) +
  50130. '</p>\n ';
  50131. } ;
  50132. __p += '\n <p class="room-info"><strong>' +
  50133. __e(o.__('Online users')) +
  50134. '</strong>: ' +
  50135. __e(o.num_occupants) +
  50136. '</p>\n <p class="room-info"><strong>' +
  50137. __e(o.__('Features')) +
  50138. '</strong>:\n <div class="chatroom-features">\n <ul class="features-list">\n ';
  50139. if (o.passwordprotected) { ;
  50140. __p += '\n <li class="feature" ><span class="fa fa-lock"></span>' +
  50141. __e( o.__('Password protected') ) +
  50142. ' - <em>' +
  50143. __e( o.__('This groupchat requires a password before entry') ) +
  50144. '</em></li>\n ';
  50145. } ;
  50146. __p += '\n ';
  50147. if (o.unsecured) { ;
  50148. __p += '\n <li class="feature" ><span class="fa fa-unlock"></span>' +
  50149. __e( o.__('No password required') ) +
  50150. ' - <em>' +
  50151. __e( o.__('This groupchat does not require a password upon entry') ) +
  50152. '</em></li>\n ';
  50153. } ;
  50154. __p += '\n ';
  50155. if (o.hidden) { ;
  50156. __p += '\n <li class="feature" ><span class="fa fa-eye-slash"></span>' +
  50157. __e( o.__('Hidden') ) +
  50158. ' - <em>' +
  50159. __e( o.__('This groupchat is not publicly searchable') ) +
  50160. '</em></li>\n ';
  50161. } ;
  50162. __p += '\n ';
  50163. if (o.public_room) { ;
  50164. __p += '\n <li class="feature" ><span class="fa fa-eye"></span>' +
  50165. __e( o.__('Public') ) +
  50166. ' - <em>' +
  50167. __e( o.__('This groupchat is publicly searchable') ) +
  50168. '</em></li>\n ';
  50169. } ;
  50170. __p += '\n ';
  50171. if (o.membersonly) { ;
  50172. __p += '\n <li class="feature" ><span class="fa fa-address-book"></span>' +
  50173. __e( o.__('Members only') ) +
  50174. ' - <em>' +
  50175. __e( o.__('This groupchat is restricted to members only') ) +
  50176. '</em></li>\n ';
  50177. } ;
  50178. __p += '\n ';
  50179. if (o.open) { ;
  50180. __p += '\n <li class="feature" ><span class="fa fa-globe"></span>' +
  50181. __e( o.__('Open') ) +
  50182. ' - <em>' +
  50183. __e( o.__('Anyone can join this groupchat') ) +
  50184. '</em></li>\n ';
  50185. } ;
  50186. __p += '\n ';
  50187. if (o.persistent) { ;
  50188. __p += '\n <li class="feature" ><span class="fa fa-save"></span>' +
  50189. __e( o.__('Persistent') ) +
  50190. ' - <em>' +
  50191. __e( o.__('This groupchat persists even if it\'s unoccupied') ) +
  50192. '</em></li>\n ';
  50193. } ;
  50194. __p += '\n ';
  50195. if (o.temporary) { ;
  50196. __p += '\n <li class="feature" ><span class="fa fa-snowflake-o"></span>' +
  50197. __e( o.__('Temporary') ) +
  50198. ' - <em>' +
  50199. __e( o.__('This groupchat will disappear once the last person leaves') ) +
  50200. '</em></li>\n ';
  50201. } ;
  50202. __p += '\n ';
  50203. if (o.nonanonymous) { ;
  50204. __p += '\n <li class="feature" ><span class="fa fa-id-card"></span>' +
  50205. __e( o.__('Not anonymous') ) +
  50206. ' - <em>' +
  50207. __e( o.__('All other groupchat participants can see your XMPP username') ) +
  50208. '</em></li>\n ';
  50209. } ;
  50210. __p += '\n ';
  50211. if (o.semianonymous) { ;
  50212. __p += '\n <li class="feature" ><span class="fa fa-user-secret"></span>' +
  50213. __e( o.__('Semi-anonymous') ) +
  50214. ' - <em>' +
  50215. __e( o.__('Only moderators can see your XMPP username') ) +
  50216. '</em></li>\n ';
  50217. } ;
  50218. __p += '\n ';
  50219. if (o.moderated) { ;
  50220. __p += '\n <li class="feature" ><span class="fa fa-gavel"></span>' +
  50221. __e( o.__('Moderated') ) +
  50222. ' - <em>' +
  50223. __e( o.__('Participants entering this groupchat need to request permission to write') ) +
  50224. '</em></li>\n ';
  50225. } ;
  50226. __p += '\n ';
  50227. if (o.unmoderated) { ;
  50228. __p += '\n <li class="feature" ><span class="fa fa-info-circle"></span>' +
  50229. __e( o.__('Not moderated') ) +
  50230. ' - <em>' +
  50231. __e( o.__('Participants entering this groupchat can write right away') ) +
  50232. '</em></li>\n ';
  50233. } ;
  50234. __p += '\n ';
  50235. if (o.mam_enabled) { ;
  50236. __p += '\n <li class="feature" ><span class="fa fa-database"></span>' +
  50237. __e( o.__('Message archiving') ) +
  50238. ' - <em>' +
  50239. __e( o.__('Messages are archived on the server') ) +
  50240. '</em></li>\n ';
  50241. } ;
  50242. __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">' +
  50243. __e(o.__('Close')) +
  50244. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  50245. return __p
  50246. };
  50247. /***/ }),
  50248. /***/ "./src/templates/chatroom_disconnect.html":
  50249. /*!************************************************!*\
  50250. !*** ./src/templates/chatroom_disconnect.html ***!
  50251. \************************************************/
  50252. /*! no static exports found */
  50253. /***/ (function(module, exports, __webpack_require__) {
  50254. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50255. module.exports = function(o) {
  50256. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50257. function print() { __p += __j.call(arguments, '') }
  50258. __p += '<!-- src/templates/chatroom_disconnect.html -->\n<div class="alert alert-danger">\n <h3 class="alert-heading disconnect-msg">' +
  50259. __e(o.disconnect_messages[0]) +
  50260. '</h3>\n\n ';
  50261. o._.forEach(o.disconnect_messages.slice(1), function (msg) { ;
  50262. __p += '\n <p class="disconnect-msg">' +
  50263. __e(msg) +
  50264. '</p>\n ';
  50265. }); ;
  50266. __p += '\n</div>\n';
  50267. return __p
  50268. };
  50269. /***/ }),
  50270. /***/ "./src/templates/chatroom_features.html":
  50271. /*!**********************************************!*\
  50272. !*** ./src/templates/chatroom_features.html ***!
  50273. \**********************************************/
  50274. /*! no static exports found */
  50275. /***/ (function(module, exports, __webpack_require__) {
  50276. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50277. module.exports = function(o) {
  50278. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50279. function print() { __p += __j.call(arguments, '') }
  50280. __p += '<!-- src/templates/chatroom_features.html -->\n';
  50281. if (o.has_features) { ;
  50282. __p += '\n<p class="occupants-heading">' +
  50283. __e(o.__('Features')) +
  50284. '</p>\n';
  50285. } ;
  50286. __p += '\n<ul class="features-list">\n';
  50287. if (o.passwordprotected) { ;
  50288. __p += '\n<li class="feature" title="' +
  50289. __e( o.__('This groupchat requires a password before entry') ) +
  50290. '"><span class="fa fa-lock"></span>' +
  50291. __e( o.__('Password protected') ) +
  50292. '</li>\n';
  50293. } ;
  50294. __p += '\n';
  50295. if (o.unsecured) { ;
  50296. __p += '\n<li class="feature" title="' +
  50297. __e( o.__('This groupchat does not require a password upon entry') ) +
  50298. '"><span class="fa fa-unlock"></span>' +
  50299. __e( o.__('No password') ) +
  50300. '</li>\n';
  50301. } ;
  50302. __p += '\n';
  50303. if (o.hidden) { ;
  50304. __p += '\n<li class="feature" title="' +
  50305. __e( o.__('This groupchat is not publicly searchable') ) +
  50306. '"><span class="fa fa-eye-slash"></span>' +
  50307. __e( o.__('Hidden') ) +
  50308. '</li>\n';
  50309. } ;
  50310. __p += '\n';
  50311. if (o.public_room) { ;
  50312. __p += '\n<li class="feature" title="' +
  50313. __e( o.__('This groupchat is publicly searchable') ) +
  50314. '"><span class="fa fa-eye"></span>' +
  50315. __e( o.__('Public') ) +
  50316. '</li>\n';
  50317. } ;
  50318. __p += '\n';
  50319. if (o.membersonly) { ;
  50320. __p += '\n<li class="feature" title="' +
  50321. __e( o.__('this groupchat is restricted to members only') ) +
  50322. '"><span class="fa fa-address-book"></span>' +
  50323. __e( o.__('Members only') ) +
  50324. '</li>\n';
  50325. } ;
  50326. __p += '\n';
  50327. if (o.open) { ;
  50328. __p += '\n<li class="feature" title="' +
  50329. __e( o.__('Anyone can join this groupchat') ) +
  50330. '"><span class="fa fa-globe"></span>' +
  50331. __e( o.__('Open') ) +
  50332. '</li>\n';
  50333. } ;
  50334. __p += '\n';
  50335. if (o.persistent) { ;
  50336. __p += '\n<li class="feature" title="' +
  50337. __e( o.__('This groupchat persists even if it\'s unoccupied') ) +
  50338. '"><span class="fa fa-save"></span>' +
  50339. __e( o.__('Persistent') ) +
  50340. '</li>\n';
  50341. } ;
  50342. __p += '\n';
  50343. if (o.temporary) { ;
  50344. __p += '\n<li class="feature" title="' +
  50345. __e( o.__('This groupchat will disappear once the last person leaves') ) +
  50346. '"><span class="fa fa-snowflake-o"></span>' +
  50347. __e( o.__('Temporary') ) +
  50348. '</li>\n';
  50349. } ;
  50350. __p += '\n';
  50351. if (o.nonanonymous) { ;
  50352. __p += '\n<li class="feature" title="' +
  50353. __e( o.__('All other groupchat participants can see your XMPP username') ) +
  50354. '"><span class="fa fa-id-card"></span>' +
  50355. __e( o.__('Not anonymous') ) +
  50356. '</li>\n';
  50357. } ;
  50358. __p += '\n';
  50359. if (o.semianonymous) { ;
  50360. __p += '\n<li class="feature" title="' +
  50361. __e( o.__('Only moderators can see your XMPP username') ) +
  50362. '"><span class="fa fa-user-secret"></span>' +
  50363. __e( o.__('Semi-anonymous') ) +
  50364. '</li>\n';
  50365. } ;
  50366. __p += '\n';
  50367. if (o.moderated) { ;
  50368. __p += '\n<li class="feature" title="' +
  50369. __e( o.__('Participants entering this groupchat need to request permission to write') ) +
  50370. '"><span class="fa fa-gavel"></span>' +
  50371. __e( o.__('Moderated') ) +
  50372. '</li>\n';
  50373. } ;
  50374. __p += '\n';
  50375. if (o.unmoderated) { ;
  50376. __p += '\n<li class="feature" title="' +
  50377. __e( o.__('Participants entering this groupchat can write right away') ) +
  50378. '"><span class="fa fa-info-circle"></span>' +
  50379. __e( o.__('Not moderated') ) +
  50380. '</li>\n';
  50381. } ;
  50382. __p += '\n';
  50383. if (o.mam_enabled) { ;
  50384. __p += '\n<li class="feature" title="' +
  50385. __e( o.__('Messages are archived on the server') ) +
  50386. '"><span class="fa fa-database"></span>' +
  50387. __e( o.__('Message archiving') ) +
  50388. '</li>\n';
  50389. } ;
  50390. __p += '\n</ul>\n';
  50391. return __p
  50392. };
  50393. /***/ }),
  50394. /***/ "./src/templates/chatroom_form.html":
  50395. /*!******************************************!*\
  50396. !*** ./src/templates/chatroom_form.html ***!
  50397. \******************************************/
  50398. /*! no static exports found */
  50399. /***/ (function(module, exports, __webpack_require__) {
  50400. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50401. module.exports = function(o) {
  50402. var __t, __p = '';
  50403. __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';
  50404. return __p
  50405. };
  50406. /***/ }),
  50407. /***/ "./src/templates/chatroom_head.html":
  50408. /*!******************************************!*\
  50409. !*** ./src/templates/chatroom_head.html ***!
  50410. \******************************************/
  50411. /*! no static exports found */
  50412. /***/ (function(module, exports, __webpack_require__) {
  50413. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50414. module.exports = function(o) {
  50415. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50416. function print() { __p += __j.call(arguments, '') }
  50417. __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="' +
  50418. __e(o.jid) +
  50419. '">\n ';
  50420. if (o.name && o.name !== o.Strophe.getNodeFromJid(o.jid)) { ;
  50421. __p += '\n ' +
  50422. __e( o.name ) +
  50423. '\n ';
  50424. } else { ;
  50425. __p += '\n ' +
  50426. __e( o.Strophe.getNodeFromJid(o.jid) ) +
  50427. '@' +
  50428. __e( o.Strophe.getDomainFromJid(o.jid) ) +
  50429. '\n ';
  50430. } ;
  50431. __p += '\n </div>\n <!-- Sanitized in converse-muc-views. We want to render links. -->\n <p class="chatroom-description">' +
  50432. ((__t = (o.description)) == null ? '' : __t) +
  50433. '</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="' +
  50434. __e(o.info_close) +
  50435. '"></a>\n ';
  50436. if (o.affiliation == 'owner') { ;
  50437. __p += '\n <a class="chatbox-btn configure-chatroom-button fa fa-wrench" title="' +
  50438. __e(o.info_configure) +
  50439. ' "></a>\n ';
  50440. } ;
  50441. __p += '\n <a class="chatbox-btn show-room-details-modal fa fa-info-circle" title="' +
  50442. __e(o.info_details) +
  50443. '"></a>\n</div>\n';
  50444. return __p
  50445. };
  50446. /***/ }),
  50447. /***/ "./src/templates/chatroom_invite.html":
  50448. /*!********************************************!*\
  50449. !*** ./src/templates/chatroom_invite.html ***!
  50450. \********************************************/
  50451. /*! no static exports found */
  50452. /***/ (function(module, exports, __webpack_require__) {
  50453. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50454. module.exports = function(o) {
  50455. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50456. function print() { __p += __j.call(arguments, '') }
  50457. __p += '<!-- src/templates/chatroom_invite.html -->\n<form class="room-invite">\n ';
  50458. if (o.error_message) { ;
  50459. __p += '\n <span class="error">' +
  50460. __e(o.error_message) +
  50461. '</span>\n ';
  50462. } ;
  50463. __p += '\n <input class="form-control invited-contact" placeholder="' +
  50464. __e(o.label_invitation) +
  50465. '" type="text"/>\n</form>\n';
  50466. return __p
  50467. };
  50468. /***/ }),
  50469. /***/ "./src/templates/chatroom_nickname_form.html":
  50470. /*!***************************************************!*\
  50471. !*** ./src/templates/chatroom_nickname_form.html ***!
  50472. \***************************************************/
  50473. /*! no static exports found */
  50474. /***/ (function(module, exports, __webpack_require__) {
  50475. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50476. module.exports = function(o) {
  50477. var __t, __p = '', __e = _.escape;
  50478. __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>' +
  50479. __e(o.heading) +
  50480. '</label>\n <p class="validation-message">' +
  50481. __e(o.validation_message) +
  50482. '</p>\n <input type="text" required="required" name="nick" class="form-control" placeholder="' +
  50483. __e(o.label_nickname) +
  50484. '"/>\n </fieldset>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  50485. __e(o.label_join) +
  50486. '"/>\n </form>\n</div>\n';
  50487. return __p
  50488. };
  50489. /***/ }),
  50490. /***/ "./src/templates/chatroom_password_form.html":
  50491. /*!***************************************************!*\
  50492. !*** ./src/templates/chatroom_password_form.html ***!
  50493. \***************************************************/
  50494. /*! no static exports found */
  50495. /***/ (function(module, exports, __webpack_require__) {
  50496. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50497. module.exports = function(o) {
  50498. var __t, __p = '', __e = _.escape;
  50499. __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>' +
  50500. __e(o.heading) +
  50501. '</legend>\n <label>' +
  50502. __e(o.label_password) +
  50503. '</label>\n <input type="password" name="password"/>\n </fieldset>\n <input class="btn btn-primary" type="submit" value="' +
  50504. __e(o.label_submit) +
  50505. '"/>\n </form>\n</div>\n';
  50506. return __p
  50507. };
  50508. /***/ }),
  50509. /***/ "./src/templates/chatroom_sidebar.html":
  50510. /*!*********************************************!*\
  50511. !*** ./src/templates/chatroom_sidebar.html ***!
  50512. \*********************************************/
  50513. /*! no static exports found */
  50514. /***/ (function(module, exports, __webpack_require__) {
  50515. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50516. module.exports = function(o) {
  50517. var __t, __p = '', __e = _.escape;
  50518. __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">' +
  50519. __e(o.label_occupants) +
  50520. '</p>\n</div>\n<ul class="occupant-list"></ul>\n<div class="chatroom-features"></div>\n<!-- </div> -->\n';
  50521. return __p
  50522. };
  50523. /***/ }),
  50524. /***/ "./src/templates/chats_panel.html":
  50525. /*!****************************************!*\
  50526. !*** ./src/templates/chats_panel.html ***!
  50527. \****************************************/
  50528. /*! no static exports found */
  50529. /***/ (function(module, exports, __webpack_require__) {
  50530. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50531. module.exports = function(o) {
  50532. var __t, __p = '';
  50533. __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';
  50534. return __p
  50535. };
  50536. /***/ }),
  50537. /***/ "./src/templates/controlbox.html":
  50538. /*!***************************************!*\
  50539. !*** ./src/templates/controlbox.html ***!
  50540. \***************************************/
  50541. /*! no static exports found */
  50542. /***/ (function(module, exports, __webpack_require__) {
  50543. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50544. module.exports = function(o) {
  50545. var __t, __p = '', __j = Array.prototype.join;
  50546. function print() { __p += __j.call(arguments, '') }
  50547. __p += '<!-- src/templates/controlbox.html -->\n<div class="flyout box-flyout">\n <div class="chat-head controlbox-head">\n ';
  50548. if (!o.sticky_controlbox) { ;
  50549. __p += '\n <a class="chatbox-btn close-chatbox-button fa fa-times"></a>\n ';
  50550. } ;
  50551. __p += '\n </div>\n <div class="controlbox-panes"></div>\n</div>\n';
  50552. return __p
  50553. };
  50554. /***/ }),
  50555. /***/ "./src/templates/controlbox_toggle.html":
  50556. /*!**********************************************!*\
  50557. !*** ./src/templates/controlbox_toggle.html ***!
  50558. \**********************************************/
  50559. /*! no static exports found */
  50560. /***/ (function(module, exports, __webpack_require__) {
  50561. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50562. module.exports = function(o) {
  50563. var __t, __p = '', __e = _.escape;
  50564. __p += '<!-- src/templates/controlbox_toggle.html -->\n<span class="toggle-feedback">' +
  50565. __e(o.label_toggle) +
  50566. '</span>\n';
  50567. return __p
  50568. };
  50569. /***/ }),
  50570. /***/ "./src/templates/converse_brand_heading.html":
  50571. /*!***************************************************!*\
  50572. !*** ./src/templates/converse_brand_heading.html ***!
  50573. \***************************************************/
  50574. /*! no static exports found */
  50575. /***/ (function(module, exports, __webpack_require__) {
  50576. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50577. module.exports = function(o) {
  50578. var __t, __p = '';
  50579. __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';
  50580. return __p
  50581. };
  50582. /***/ }),
  50583. /***/ "./src/templates/csn.html":
  50584. /*!********************************!*\
  50585. !*** ./src/templates/csn.html ***!
  50586. \********************************/
  50587. /*! no static exports found */
  50588. /***/ (function(module, exports, __webpack_require__) {
  50589. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50590. module.exports = function(o) {
  50591. var __t, __p = '', __e = _.escape;
  50592. __p += '<!-- src/templates/csn.html -->\n<div class="message chat-info chat-state-notification"\n data-isodate="' +
  50593. __e(o.isodate) +
  50594. '"\n data-csn="' +
  50595. __e(o.from) +
  50596. '">' +
  50597. __e(o.message) +
  50598. '</div>\n';
  50599. return __p
  50600. };
  50601. /***/ }),
  50602. /***/ "./src/templates/dragresize.html":
  50603. /*!***************************************!*\
  50604. !*** ./src/templates/dragresize.html ***!
  50605. \***************************************/
  50606. /*! no static exports found */
  50607. /***/ (function(module, exports, __webpack_require__) {
  50608. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50609. module.exports = function(o) {
  50610. var __t, __p = '';
  50611. __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';
  50612. return __p
  50613. };
  50614. /***/ }),
  50615. /***/ "./src/templates/emojis.html":
  50616. /*!***********************************!*\
  50617. !*** ./src/templates/emojis.html ***!
  50618. \***********************************/
  50619. /*! no static exports found */
  50620. /***/ (function(module, exports, __webpack_require__) {
  50621. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50622. module.exports = function(o) {
  50623. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50624. function print() { __p += __j.call(arguments, '') }
  50625. __p += '<!-- src/templates/emojis.html -->\n<div class="emoji-picker-container">\n';
  50626. o._.forEach(o.emojis_by_category, function (obj, category) { ;
  50627. __p += '\n <ul class="emoji-picker emoji-picker-' +
  50628. __e(category) +
  50629. ' ';
  50630. if (o.current_category !== category) { ;
  50631. __p += ' hidden ';
  50632. } ;
  50633. __p += '">\n ';
  50634. o._.forEach(o.emojis_by_category[category], function (emoji) { ;
  50635. __p += '\n <li class="emoji insert-emoji ';
  50636. if (o.shouldBeHidden(emoji._shortname, o.current_skintone, o.toned_emojis)) { ;
  50637. __p += ' hidden ';
  50638. }; ;
  50639. __p += '"\n data-emoji="' +
  50640. __e(emoji._shortname) +
  50641. '">\n <a href="#" data-emoji="' +
  50642. __e(emoji._shortname) +
  50643. '"> ' +
  50644. ((__t = ( o.transform(emoji._shortname) )) == null ? '' : __t) +
  50645. ' </a>\n </li>\n ';
  50646. }); ;
  50647. __p += '\n </ul>\n';
  50648. }); ;
  50649. __p += '\n<ul class="emoji-toolbar">\n <li class="emoji-category-picker">\n <ul>\n ';
  50650. o._.forEach(o.emojis_by_category, function (obj, category) { ;
  50651. __p += '\n <li data-category="' +
  50652. __e(category) +
  50653. '" class="emoji-category ';
  50654. if (o.current_category === category) { ;
  50655. __p += ' picked ';
  50656. } ;
  50657. __p += '">\n <a class="pick-category" href="#" data-category="' +
  50658. __e(category) +
  50659. '"> ' +
  50660. ((__t = ( o.transform(o.emojis_by_category[category][0]._shortname) )) == null ? '' : __t) +
  50661. ' </a>\n </li>\n ';
  50662. }); ;
  50663. __p += '\n </ul>\n </li>\n <li class="emoji-skintone-picker">\n <ul>\n ';
  50664. o._.forEach(o.skintones, function (skintone) { ;
  50665. __p += '\n <li data-skintone="' +
  50666. __e(skintone) +
  50667. '" class="emoji-skintone ';
  50668. if (o.current_skintone === skintone) { ;
  50669. __p += ' picked ';
  50670. } ;
  50671. __p += '">\n <a class="pick-skintone" href="#" data-skintone="' +
  50672. __e(skintone) +
  50673. '"> ' +
  50674. ((__t = ( o.transform(':'+skintone+':') )) == null ? '' : __t) +
  50675. ' </a>\n </li>\n ';
  50676. }); ;
  50677. __p += '\n </ul>\n </li>\n</ul>\n</div>\n';
  50678. return __p
  50679. };
  50680. /***/ }),
  50681. /***/ "./src/templates/error_message.html":
  50682. /*!******************************************!*\
  50683. !*** ./src/templates/error_message.html ***!
  50684. \******************************************/
  50685. /*! no static exports found */
  50686. /***/ (function(module, exports, __webpack_require__) {
  50687. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50688. module.exports = function(o) {
  50689. var __t, __p = '', __e = _.escape;
  50690. __p += '<!-- src/templates/error_message.html -->\n<div class="message chat-info chat-error" data-isodate="' +
  50691. __e(o.isodate) +
  50692. '">' +
  50693. __e(o.message) +
  50694. '</div>\n';
  50695. return __p
  50696. };
  50697. /***/ }),
  50698. /***/ "./src/templates/field.html":
  50699. /*!**********************************!*\
  50700. !*** ./src/templates/field.html ***!
  50701. \**********************************/
  50702. /*! no static exports found */
  50703. /***/ (function(module, exports, __webpack_require__) {
  50704. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50705. module.exports = function(o) {
  50706. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50707. function print() { __p += __j.call(arguments, '') }
  50708. __p += '<!-- src/templates/field.html -->\n<field var="' +
  50709. __e(o.name) +
  50710. '">\n';
  50711. if (o.value.constructor === Array) { ;
  50712. __p += '\n ';
  50713. o.value.forEach(function (arrayValue) { ;
  50714. __p += '<value>' +
  50715. __e(arrayValue) +
  50716. '</value>';
  50717. }); ;
  50718. __p += '\n';
  50719. } else { ;
  50720. __p += '\n <value>' +
  50721. __e(o.value) +
  50722. '</value>\n';
  50723. } ;
  50724. __p += '</field>\n';
  50725. return __p
  50726. };
  50727. /***/ }),
  50728. /***/ "./src/templates/file.html":
  50729. /*!*********************************!*\
  50730. !*** ./src/templates/file.html ***!
  50731. \*********************************/
  50732. /*! no static exports found */
  50733. /***/ (function(module, exports, __webpack_require__) {
  50734. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50735. module.exports = function(o) {
  50736. var __t, __p = '', __e = _.escape;
  50737. __p += '<!-- src/templates/file.html -->\n<a target="_blank" rel="noopener" href="' +
  50738. __e(o.url) +
  50739. '">' +
  50740. __e(o.label_download) +
  50741. '</a>\n';
  50742. return __p
  50743. };
  50744. /***/ }),
  50745. /***/ "./src/templates/file_progress.html":
  50746. /*!******************************************!*\
  50747. !*** ./src/templates/file_progress.html ***!
  50748. \******************************************/
  50749. /*! no static exports found */
  50750. /***/ (function(module, exports, __webpack_require__) {
  50751. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50752. module.exports = function(o) {
  50753. var __t, __p = '', __e = _.escape;
  50754. __p += '<!-- src/templates/file_progress.html -->\n<div class="message chat-msg" data-isodate="' +
  50755. __e(o.time) +
  50756. '" data-msgid="' +
  50757. __e(o.msgid) +
  50758. '">\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>' +
  50759. __e(o.file.name) +
  50760. '</strong>, ' +
  50761. __e(o.filesize) +
  50762. '</span>\n <progress value="' +
  50763. __e(o.progress) +
  50764. '"/>\n </div>\n</div>\n';
  50765. return __p
  50766. };
  50767. /***/ }),
  50768. /***/ "./src/templates/form_captcha.html":
  50769. /*!*****************************************!*\
  50770. !*** ./src/templates/form_captcha.html ***!
  50771. \*****************************************/
  50772. /*! no static exports found */
  50773. /***/ (function(module, exports, __webpack_require__) {
  50774. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50775. module.exports = function(o) {
  50776. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50777. function print() { __p += __j.call(arguments, '') }
  50778. __p += '<!-- src/templates/form_captcha.html -->\n';
  50779. if (o.label) { ;
  50780. __p += '\n<label>\n ' +
  50781. __e(o.label) +
  50782. '\n</label>\n';
  50783. } ;
  50784. __p += '\n<img src="data:' +
  50785. __e(o.type) +
  50786. ';base64,' +
  50787. __e(o.data) +
  50788. '">\n<input name="' +
  50789. __e(o.name) +
  50790. '" type="text" ';
  50791. if (o.required) { ;
  50792. __p += ' class="required" ';
  50793. } ;
  50794. __p += ' >\n\n\n';
  50795. return __p
  50796. };
  50797. /***/ }),
  50798. /***/ "./src/templates/form_checkbox.html":
  50799. /*!******************************************!*\
  50800. !*** ./src/templates/form_checkbox.html ***!
  50801. \******************************************/
  50802. /*! no static exports found */
  50803. /***/ (function(module, exports, __webpack_require__) {
  50804. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50805. module.exports = function(o) {
  50806. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50807. function print() { __p += __j.call(arguments, '') }
  50808. __p += '<!-- src/templates/form_checkbox.html -->\n<div class="form-group">\n <input id="' +
  50809. __e(o.id) +
  50810. '" name="' +
  50811. __e(o.name) +
  50812. '" type="checkbox" ' +
  50813. __e(o.checked) +
  50814. ' ';
  50815. if (o.required) { ;
  50816. __p += ' required ';
  50817. } ;
  50818. __p += ' >\n <label class="form-check-label" for="' +
  50819. __e(o.id) +
  50820. '">' +
  50821. __e(o.label) +
  50822. '</label>\n</div>\n';
  50823. return __p
  50824. };
  50825. /***/ }),
  50826. /***/ "./src/templates/form_input.html":
  50827. /*!***************************************!*\
  50828. !*** ./src/templates/form_input.html ***!
  50829. \***************************************/
  50830. /*! no static exports found */
  50831. /***/ (function(module, exports, __webpack_require__) {
  50832. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50833. module.exports = function(o) {
  50834. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50835. function print() { __p += __j.call(arguments, '') }
  50836. __p += '<!-- src/templates/form_input.html -->\n<div class="form-group">\n ';
  50837. if (o.type !== 'hidden') { ;
  50838. __p += '\n <label for="' +
  50839. __e(o.id) +
  50840. '">' +
  50841. __e(o.label) +
  50842. '</label>\n ';
  50843. } ;
  50844. __p += '\n <input class="form-control" name="' +
  50845. __e(o.name) +
  50846. '" type="' +
  50847. __e(o.type) +
  50848. '" id="' +
  50849. __e(o.id) +
  50850. '"\n ';
  50851. if (o.placeholder) { ;
  50852. __p += ' placeholder="' +
  50853. __e(o.placeholder) +
  50854. '" ';
  50855. } ;
  50856. __p += '\n ';
  50857. if (o.value) { ;
  50858. __p += ' value="' +
  50859. __e(o.value) +
  50860. '" ';
  50861. } ;
  50862. __p += '\n ';
  50863. if (o.required) { ;
  50864. __p += ' required ';
  50865. } ;
  50866. __p += ' >\n</div>\n';
  50867. return __p
  50868. };
  50869. /***/ }),
  50870. /***/ "./src/templates/form_select.html":
  50871. /*!****************************************!*\
  50872. !*** ./src/templates/form_select.html ***!
  50873. \****************************************/
  50874. /*! no static exports found */
  50875. /***/ (function(module, exports, __webpack_require__) {
  50876. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50877. module.exports = function(o) {
  50878. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50879. function print() { __p += __j.call(arguments, '') }
  50880. __p += '<!-- src/templates/form_select.html -->\n<div class="form-group">\n <label for="' +
  50881. __e(o.id) +
  50882. '">' +
  50883. __e(o.label) +
  50884. '</label>\n <select class="form-control" id="' +
  50885. __e(o.id) +
  50886. '" name="' +
  50887. __e(o.name) +
  50888. '" ';
  50889. if (o.multiple) { ;
  50890. __p += ' multiple="multiple" ';
  50891. } ;
  50892. __p += '>' +
  50893. ((__t = (o.options)) == null ? '' : __t) +
  50894. '</select>\n</div>\n';
  50895. return __p
  50896. };
  50897. /***/ }),
  50898. /***/ "./src/templates/form_textarea.html":
  50899. /*!******************************************!*\
  50900. !*** ./src/templates/form_textarea.html ***!
  50901. \******************************************/
  50902. /*! no static exports found */
  50903. /***/ (function(module, exports, __webpack_require__) {
  50904. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50905. module.exports = function(o) {
  50906. var __t, __p = '', __e = _.escape;
  50907. __p += '<!-- src/templates/form_textarea.html -->\n<label class="label-ta">' +
  50908. __e(o.label) +
  50909. '</label>\n<textarea name="' +
  50910. __e(o.name) +
  50911. '">' +
  50912. __e(o.value) +
  50913. '</textarea>\n';
  50914. return __p
  50915. };
  50916. /***/ }),
  50917. /***/ "./src/templates/form_url.html":
  50918. /*!*************************************!*\
  50919. !*** ./src/templates/form_url.html ***!
  50920. \*************************************/
  50921. /*! no static exports found */
  50922. /***/ (function(module, exports, __webpack_require__) {
  50923. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50924. module.exports = function(o) {
  50925. var __t, __p = '', __e = _.escape;
  50926. __p += '<!-- src/templates/form_url.html -->\n<label>\n ' +
  50927. __e(o.label) +
  50928. '\n <a class="form-url" target="_blank" rel="noopener" href="' +
  50929. __e(o.value) +
  50930. '">' +
  50931. __e(o.value) +
  50932. '</a>\n</label>\n';
  50933. return __p
  50934. };
  50935. /***/ }),
  50936. /***/ "./src/templates/form_username.html":
  50937. /*!******************************************!*\
  50938. !*** ./src/templates/form_username.html ***!
  50939. \******************************************/
  50940. /*! no static exports found */
  50941. /***/ (function(module, exports, __webpack_require__) {
  50942. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50943. module.exports = function(o) {
  50944. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50945. function print() { __p += __j.call(arguments, '') }
  50946. __p += '<!-- src/templates/form_username.html -->\n<div class="form-group">\n ';
  50947. if (o.label) { ;
  50948. __p += '\n <label>\n ' +
  50949. __e(o.label) +
  50950. '\n </label>\n ';
  50951. } ;
  50952. __p += '\n <div class="input-group">\n <div class="input-group-prepend">\n <input name="' +
  50953. __e(o.name) +
  50954. '" type="' +
  50955. __e(o.type) +
  50956. '"\n ';
  50957. if (o.value) { ;
  50958. __p += ' value="' +
  50959. __e(o.value) +
  50960. '" ';
  50961. } ;
  50962. __p += '\n ';
  50963. if (o.required) { ;
  50964. __p += ' class="required" ';
  50965. } ;
  50966. __p += ' />\n <div class="input-group-text col" title="' +
  50967. __e(o.domain) +
  50968. '">' +
  50969. __e(o.domain) +
  50970. '</div>\n </div>\n </div>\n</div>\n';
  50971. return __p
  50972. };
  50973. /***/ }),
  50974. /***/ "./src/templates/group_header.html":
  50975. /*!*****************************************!*\
  50976. !*** ./src/templates/group_header.html ***!
  50977. \*****************************************/
  50978. /*! no static exports found */
  50979. /***/ (function(module, exports, __webpack_require__) {
  50980. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  50981. module.exports = function(o) {
  50982. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  50983. function print() { __p += __j.call(arguments, '') }
  50984. __p += '<!-- src/templates/group_header.html -->\n<a href="#" class="group-toggle controlbox-padded" title="' +
  50985. __e(o.desc_group_toggle) +
  50986. '">\n <span class="fa ';
  50987. if (o.toggle_state === o._converse.OPENED) { ;
  50988. __p += ' fa-caret-down ';
  50989. } else { ;
  50990. __p += ' fa-caret-right ';
  50991. } ;
  50992. __p += '">\n </span> ' +
  50993. __e(o.label_group) +
  50994. '</a>\n<ul class="items-list roster-group-contacts ';
  50995. if (o.toggle_state === o._converse.CLOSED) { ;
  50996. __p += ' collapsed ';
  50997. } ;
  50998. __p += '"></ul>\n';
  50999. return __p
  51000. };
  51001. /***/ }),
  51002. /***/ "./src/templates/help_message.html":
  51003. /*!*****************************************!*\
  51004. !*** ./src/templates/help_message.html ***!
  51005. \*****************************************/
  51006. /*! no static exports found */
  51007. /***/ (function(module, exports, __webpack_require__) {
  51008. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51009. module.exports = function(o) {
  51010. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51011. function print() { __p += __j.call(arguments, '') }
  51012. __p += '<!-- src/templates/help_message.html -->\n<div class="message chat-info ';
  51013. if (o.type !== 'info') { ;
  51014. __p += ' chat-' +
  51015. __e(o.type) +
  51016. ' ';
  51017. } ;
  51018. __p += '" data-isodate="' +
  51019. __e(o.isodate) +
  51020. '">' +
  51021. ((__t = (o.message)) == null ? '' : __t) +
  51022. '</div>\n';
  51023. return __p
  51024. };
  51025. /***/ }),
  51026. /***/ "./src/templates/image.html":
  51027. /*!**********************************!*\
  51028. !*** ./src/templates/image.html ***!
  51029. \**********************************/
  51030. /*! no static exports found */
  51031. /***/ (function(module, exports, __webpack_require__) {
  51032. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51033. module.exports = function(o) {
  51034. var __t, __p = '', __e = _.escape;
  51035. __p += '<!-- src/templates/image.html -->\n<a href="' +
  51036. __e(o.url) +
  51037. '" target="_blank" rel="noopener"><img class="chat-image img-thumbnail" src="' +
  51038. __e(o.url) +
  51039. '"></a>\n';
  51040. return __p
  51041. };
  51042. /***/ }),
  51043. /***/ "./src/templates/info.html":
  51044. /*!*********************************!*\
  51045. !*** ./src/templates/info.html ***!
  51046. \*********************************/
  51047. /*! no static exports found */
  51048. /***/ (function(module, exports, __webpack_require__) {
  51049. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51050. module.exports = function(o) {
  51051. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51052. function print() { __p += __j.call(arguments, '') }
  51053. __p += '<!-- src/templates/info.html -->\n';
  51054. if (o.render_message) { ;
  51055. __p += '\n <!-- XXX: Should only ever be rendered if the message text has been sanitized already -->\n <div class="message chat-info ' +
  51056. __e(o.extra_classes) +
  51057. '"\n data-isodate="' +
  51058. __e(o.isodate) +
  51059. '" ';
  51060. if (o.data_name) { ;
  51061. __p += ' data-' +
  51062. __e(o.data_name) +
  51063. '="' +
  51064. __e(o.data_value) +
  51065. '"';
  51066. } ;
  51067. __p += '>' +
  51068. ((__t = (o.message)) == null ? '' : __t) +
  51069. '</div>\n';
  51070. } else { ;
  51071. __p += '\n <div class="message chat-info ' +
  51072. __e(o.extra_classes) +
  51073. '"\n data-isodate="' +
  51074. __e(o.isodate) +
  51075. '" ';
  51076. if (o.data_name) { ;
  51077. __p += ' data-' +
  51078. __e(o.data_name) +
  51079. '="' +
  51080. __e(o.data_value) +
  51081. '"';
  51082. } ;
  51083. __p += '>' +
  51084. __e(o.message) +
  51085. '</div>\n';
  51086. } ;
  51087. __p += '\n';
  51088. return __p
  51089. };
  51090. /***/ }),
  51091. /***/ "./src/templates/inverse_brand_heading.html":
  51092. /*!**************************************************!*\
  51093. !*** ./src/templates/inverse_brand_heading.html ***!
  51094. \**************************************************/
  51095. /*! no static exports found */
  51096. /***/ (function(module, exports, __webpack_require__) {
  51097. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51098. module.exports = function(o) {
  51099. var __t, __p = '';
  51100. __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';
  51101. return __p
  51102. };
  51103. /***/ }),
  51104. /***/ "./src/templates/list_chatrooms_modal.html":
  51105. /*!*************************************************!*\
  51106. !*** ./src/templates/list_chatrooms_modal.html ***!
  51107. \*************************************************/
  51108. /*! no static exports found */
  51109. /***/ (function(module, exports, __webpack_require__) {
  51110. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51111. module.exports = function(o) {
  51112. var __t, __p = '', __e = _.escape;
  51113. __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">' +
  51114. __e(o.heading_list_chatrooms) +
  51115. '</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">' +
  51116. __e(o.label_server_address) +
  51117. ':</label>\n <input type="text" value="' +
  51118. __e(o.muc_domain) +
  51119. '" required="required" name="server" class="form-control" placeholder="' +
  51120. __e(o.server_placeholder) +
  51121. '">\n </div>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  51122. __e(o.label_query) +
  51123. '">\n </form>\n <ul class="available-chatrooms list-group"></ul>\n </div>\n </div>\n </div>\n</div>\n';
  51124. return __p
  51125. };
  51126. /***/ }),
  51127. /***/ "./src/templates/login_panel.html":
  51128. /*!****************************************!*\
  51129. !*** ./src/templates/login_panel.html ***!
  51130. \****************************************/
  51131. /*! no static exports found */
  51132. /***/ (function(module, exports, __webpack_require__) {
  51133. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51134. module.exports = function(o) {
  51135. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51136. function print() { __p += __j.call(arguments, '') }
  51137. __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 ';
  51138. if (!o.conn_feedback_subject) { ;
  51139. __p += ' hidden ';
  51140. } ;
  51141. __p += ' ' +
  51142. __e(o.conn_feedback_class) +
  51143. '">\n <p class="feedback-subject">' +
  51144. __e( o.conn_feedback_subject ) +
  51145. '</p>\n <p class="feedback-message ';
  51146. if (!o.conn_feedback_message) { ;
  51147. __p += ' hidden ';
  51148. } ;
  51149. __p += '">' +
  51150. __e(o.conn_feedback_message) +
  51151. '</p>\n </div>\n ';
  51152. if (o.auto_login || o._converse.CONNECTION_STATUS[o.connection_status] === 'CONNECTING') { ;
  51153. __p += '\n <span class="spinner fa fa-spinner centered"/>\n ';
  51154. } else { ;
  51155. __p += '\n ';
  51156. if (o.authentication == o.LOGIN || o.authentication == o.EXTERNAL) { ;
  51157. __p += '\n <div class="form-group">\n <label for="converse-login-jid">' +
  51158. __e(o.__("XMPP Username:")) +
  51159. '</label>\n <input id="converse-login-jid" class="form-control" autofocus required="required" type="text" name="jid" placeholder="' +
  51160. __e(o.placeholder_username) +
  51161. '">\n </div>\n ';
  51162. if (o.authentication !== o.EXTERNAL) { ;
  51163. __p += '\n <div class="form-group">\n <label for="converse-login-password">' +
  51164. __e(o.__("Password:")) +
  51165. '</label>\n <input id="converse-login-password" class="form-control" required="required" type="password" name="password" placeholder="' +
  51166. __e(o.__('password')) +
  51167. '">\n </div>\n ';
  51168. } ;
  51169. __p += '\n <div class="form-group form-check login-trusted">\n <input id="converse-login-trusted" type="checkbox" class="form-check-input" name="trusted" ';
  51170. if (o._converse.config.get('trusted')) { ;
  51171. __p += ' checked="checked" ';
  51172. } ;
  51173. __p += '>\n <label for="converse-login-trusted" class="form-check-label login-trusted__desc">' +
  51174. __e(o.__('This is a trusted device')) +
  51175. '</label>\n <i class="fa fa-info-circle" data-toggle="popover"\n data-title="Trusted device?"\n data-content="' +
  51176. __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. Please note, when using an untrusted device, OMEMO encryption is be supported.')) +
  51177. '"></i>\n </div>\n\n <fieldset class="buttons">\n <input class="btn btn-primary" type="submit" value="' +
  51178. __e(o.__('Log in')) +
  51179. '">\n </fieldset>\n ';
  51180. } ;
  51181. __p += '\n ';
  51182. if (o.authentication == o.ANONYMOUS) { ;
  51183. __p += '\n <input class="btn btn-primary login-anon" type="submit" value="' +
  51184. __e(o.__('Click here to log in anonymously')) +
  51185. '"/>\n ';
  51186. } ;
  51187. __p += '\n ';
  51188. if (o.authentication == o.PREBIND) { ;
  51189. __p += '\n <p>Disconnected.</p>\n ';
  51190. } ;
  51191. __p += '\n ';
  51192. } ;
  51193. __p += '\n </form>\n</div>\n';
  51194. return __p
  51195. };
  51196. /***/ }),
  51197. /***/ "./src/templates/message.html":
  51198. /*!************************************!*\
  51199. !*** ./src/templates/message.html ***!
  51200. \************************************/
  51201. /*! no static exports found */
  51202. /***/ (function(module, exports, __webpack_require__) {
  51203. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51204. module.exports = function(o) {
  51205. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51206. function print() { __p += __j.call(arguments, '') }
  51207. __p += '<!-- src/templates/message.html -->\n<div class="message chat-msg ' +
  51208. __e(o.type) +
  51209. ' ';
  51210. if (o.is_me_message) { ;
  51211. __p += ' chat-msg--action ';
  51212. } ;
  51213. __p += ' ' +
  51214. __e(o.extra_classes) +
  51215. '"\n data-isodate="' +
  51216. __e(o.time) +
  51217. '" data-msgid="' +
  51218. __e(o.msgid) +
  51219. '" data-from="' +
  51220. __e(o.from) +
  51221. '" data-encrypted="' +
  51222. __e(o.is_encrypted) +
  51223. '">\n ';
  51224. if (o.type !== 'headline' && !o.is_me_message) { ;
  51225. __p += '\n <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n ';
  51226. } ;
  51227. __p += '\n <div class="chat-msg__content ';
  51228. if (o.is_me_message) { ;
  51229. __p += 'chat-msg__content--action';
  51230. } ;
  51231. __p += '">\n <span class="chat-msg__heading">\n ';
  51232. if (o.is_me_message) { ;
  51233. __p += '<time timestamp="' +
  51234. __e(o.isodate) +
  51235. '" class="chat-msg__time">' +
  51236. __e(o.pretty_time) +
  51237. '</time>';
  51238. } ;
  51239. __p += '\n <span class="chat-msg__author">';
  51240. if (o.is_me_message) { ;
  51241. __p += '**';
  51242. }; ;
  51243. __p +=
  51244. __e(o.username) +
  51245. '</span>\n ';
  51246. o.roles.forEach(function (role) { ;
  51247. __p += ' <span class="badge badge-secondary">' +
  51248. __e(role) +
  51249. '</span> ';
  51250. }); ;
  51251. __p += '\n ';
  51252. if (!o.is_me_message) { ;
  51253. __p += '<time timestamp="' +
  51254. __e(o.isodate) +
  51255. '" class="chat-msg__time">' +
  51256. __e(o.pretty_time) +
  51257. '</time>';
  51258. } ;
  51259. __p += '\n ';
  51260. if (o.is_encrypted) { ;
  51261. __p += '<span class="fa fa-lock"></span>';
  51262. } ;
  51263. __p += '\n </span>\n ';
  51264. if (!o.is_me_message) { ;
  51265. __p += '<div class="chat-msg__body">';
  51266. } ;
  51267. __p += '\n ';
  51268. if (o.edited) { ;
  51269. __p += ' <i title="' +
  51270. __e(o.__('This message has been edited')) +
  51271. '" class="fa fa-edit chat-msg__edit-modal"></i> ';
  51272. } ;
  51273. __p += '\n ';
  51274. if (!o.is_me_message) { ;
  51275. __p += '<div class="chat-msg__message">';
  51276. } ;
  51277. __p += '\n ';
  51278. if (o.is_spoiler) { ;
  51279. __p += '\n <div class="chat-msg__spoiler-hint">\n <span class="spoiler-hint">' +
  51280. __e(o.spoiler_hint) +
  51281. '</span>\n <a class="badge badge-info spoiler-toggle" data-toggle-state="closed" href="#"><i class="fa fa-eye"></i>' +
  51282. __e(o.label_show) +
  51283. '</a>\n </div>\n ';
  51284. } ;
  51285. __p += '\n <div class="chat-msg__text';
  51286. if (o.is_spoiler) { ;
  51287. __p += ' spoiler collapsed';
  51288. } ;
  51289. __p += '"><!-- message gets added here via renderMessage --></div>\n <div class="chat-msg__media"></div>\n ';
  51290. if (!o.is_me_message) { ;
  51291. __p += '</div>';
  51292. } ;
  51293. __p += '\n ';
  51294. if (o.type !== 'headline' && !o.is_me_message && o.sender === 'me') { ;
  51295. __p += '\n <div class="chat-msg__actions">\n <button class="chat-msg__action chat-msg__action-edit fa fa-pencil-alt" title="' +
  51296. __e(o.__('Edit this message')) +
  51297. '">&nbsp;</button>\n </div>\n ';
  51298. } ;
  51299. __p += '\n\n ';
  51300. if (!o.is_me_message) { ;
  51301. __p += '</div>';
  51302. } ;
  51303. __p += '\n </div>\n</div>\n';
  51304. return __p
  51305. };
  51306. /***/ }),
  51307. /***/ "./src/templates/message_versions_modal.html":
  51308. /*!***************************************************!*\
  51309. !*** ./src/templates/message_versions_modal.html ***!
  51310. \***************************************************/
  51311. /*! no static exports found */
  51312. /***/ (function(module, exports, __webpack_require__) {
  51313. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51314. module.exports = function(o) {
  51315. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51316. function print() { __p += __j.call(arguments, '') }
  51317. __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">' +
  51318. __e(o.__('Message versions')) +
  51319. '</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  51320. __e(o.label_close) +
  51321. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n <h4>Older versions</h4>\n ';
  51322. o.older_versions.forEach(function (text) { ;
  51323. __p += ' <p class="older-msg">' +
  51324. __e(text) +
  51325. '</p> ';
  51326. }); ;
  51327. __p += '\n <hr>\n <h4>Current version</h4>\n <p>' +
  51328. __e(o.message) +
  51329. '</p>\n </div>\n <div class="modal-footer">\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  51330. __e(o.__('Close')) +
  51331. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  51332. return __p
  51333. };
  51334. /***/ }),
  51335. /***/ "./src/templates/new_day.html":
  51336. /*!************************************!*\
  51337. !*** ./src/templates/new_day.html ***!
  51338. \************************************/
  51339. /*! no static exports found */
  51340. /***/ (function(module, exports, __webpack_require__) {
  51341. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51342. module.exports = function(o) {
  51343. var __t, __p = '', __e = _.escape;
  51344. __p += '<!-- src/templates/new_day.html -->\n<div class="message date-separator" data-isodate="' +
  51345. __e(o.isodate) +
  51346. '">\n <hr class="separator">\n <time class="separator-text" datetime="' +
  51347. __e(o.isodate) +
  51348. '"><span>' +
  51349. __e(o.datestring) +
  51350. '</span></time>\n</div>\n';
  51351. return __p
  51352. };
  51353. /***/ }),
  51354. /***/ "./src/templates/occupant.html":
  51355. /*!*************************************!*\
  51356. !*** ./src/templates/occupant.html ***!
  51357. \*************************************/
  51358. /*! no static exports found */
  51359. /***/ (function(module, exports, __webpack_require__) {
  51360. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51361. module.exports = function(o) {
  51362. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51363. function print() { __p += __j.call(arguments, '') }
  51364. __p += '<!-- src/templates/occupant.html -->\n<li class="occupant" id="' +
  51365. __e( o.id ) +
  51366. '"\n ';
  51367. if (o.role === "moderator") { ;
  51368. __p += '\n title="' +
  51369. __e( o.jid ) +
  51370. ' ' +
  51371. __e( o.desc_moderator ) +
  51372. ' ' +
  51373. __e( o.hint_occupant ) +
  51374. '"\n ';
  51375. } ;
  51376. __p += '\n ';
  51377. if (o.role === "participant") { ;
  51378. __p += '\n title="' +
  51379. __e( o.jid ) +
  51380. ' ' +
  51381. __e( o.desc_participant ) +
  51382. ' ' +
  51383. __e( o.hint_occupant ) +
  51384. '"\n ';
  51385. } ;
  51386. __p += '\n ';
  51387. if (o.role === "visitor") { ;
  51388. __p += '\n title="' +
  51389. __e( o.jid ) +
  51390. ' ' +
  51391. __e( o.desc_visitor ) +
  51392. ' ' +
  51393. __e( o.hint_occupant ) +
  51394. '"\n ';
  51395. } ;
  51396. __p += '\n ';
  51397. if (!o._.includes(["visitor", "participant", "moderator"], o.role)) { ;
  51398. __p += '\n title="' +
  51399. __e( o.jid ) +
  51400. ' ' +
  51401. __e( o.hint_occupant ) +
  51402. '"\n ';
  51403. } ;
  51404. __p += '>\n <div class="row no-gutters">\n <div class="col-auto">\n <div class="occupant-status occupant-' +
  51405. __e(o.show) +
  51406. ' circle" title="' +
  51407. __e(o.hint_show) +
  51408. '"></div>\n </div>\n <div class="col">\n <span class="occupant-nick">' +
  51409. __e(o.nick || o.jid) +
  51410. '</span>\n ';
  51411. if (o.affiliation === "owner") { ;
  51412. __p += '\n <span class="badge badge-danger">' +
  51413. __e(o.label_owner) +
  51414. '</span>\n ';
  51415. } ;
  51416. __p += '\n ';
  51417. if (o.affiliation === "admin") { ;
  51418. __p += '\n <span class="badge badge-info">' +
  51419. __e(o.label_admin) +
  51420. '</span>\n ';
  51421. } ;
  51422. __p += '\n ';
  51423. if (o.affiliation === "member") { ;
  51424. __p += '\n <span class="badge badge-info">' +
  51425. __e(o.label_member) +
  51426. '</span>\n ';
  51427. } ;
  51428. __p += '\n\n ';
  51429. if (o.role === "moderator") { ;
  51430. __p += '\n <span class="badge badge-info">' +
  51431. __e(o.label_moderator) +
  51432. '</span>\n ';
  51433. } ;
  51434. __p += '\n ';
  51435. if (o.role === "visitor") { ;
  51436. __p += '\n <span class="badge badge-secondary">' +
  51437. __e(o.label_visitor) +
  51438. '</span>\n ';
  51439. } ;
  51440. __p += '\n </div>\n </div>\n</li>\n';
  51441. return __p
  51442. };
  51443. /***/ }),
  51444. /***/ "./src/templates/pending_contact.html":
  51445. /*!********************************************!*\
  51446. !*** ./src/templates/pending_contact.html ***!
  51447. \********************************************/
  51448. /*! no static exports found */
  51449. /***/ (function(module, exports, __webpack_require__) {
  51450. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51451. module.exports = function(o) {
  51452. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51453. function print() { __p += __j.call(arguments, '') }
  51454. __p += '<!-- src/templates/pending_contact.html -->\n';
  51455. if (o.allow_chat_pending_contacts) { ;
  51456. __p += '<a class="open-chat w-100" href="#">';
  51457. } ;
  51458. __p += '\n<span class="pending-contact-name w-100" title="JID: ' +
  51459. __e(o.jid) +
  51460. '">' +
  51461. __e(o.display_name) +
  51462. '</span> \n';
  51463. if (o.allow_chat_pending_contacts) { ;
  51464. __p += '</a>';
  51465. } ;
  51466. __p += '\n<a class="remove-xmpp-contact far fa-trash-alt" title="' +
  51467. __e(o.desc_remove) +
  51468. '" href="#"></a>\n';
  51469. return __p
  51470. };
  51471. /***/ }),
  51472. /***/ "./src/templates/profile_modal.html":
  51473. /*!******************************************!*\
  51474. !*** ./src/templates/profile_modal.html ***!
  51475. \******************************************/
  51476. /*! no static exports found */
  51477. /***/ (function(module, exports, __webpack_require__) {
  51478. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51479. module.exports = function(o) {
  51480. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51481. function print() { __p += __j.call(arguments, '') }
  51482. __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">' +
  51483. __e(o.heading_profile) +
  51484. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  51485. __e(o.label_close) +
  51486. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n ';
  51487. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  51488. __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 ';
  51489. } ;
  51490. __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 ';
  51491. if (o.image) { ;
  51492. __p += '\n <img alt="' +
  51493. __e(o.alt_avatar) +
  51494. '" class="img-thumbnail avatar align-self-center" height="100px" width="100px" src="data:' +
  51495. __e(o.image_type) +
  51496. ';base64,' +
  51497. __e(o.image) +
  51498. '"/>\n ';
  51499. } ;
  51500. __p += '\n ';
  51501. if (!o.image) { ;
  51502. __p += '\n <canvas class="avatar" height="100px" width="100px"/>\n ';
  51503. } ;
  51504. __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">' +
  51505. __e(o.label_jid) +
  51506. ':</label>\n <div>' +
  51507. __e(o.jid) +
  51508. '</div>\n </div>\n </div>\n </div>\n <div class="form-group">\n <label for="vcard-fullname" class="col-form-label">' +
  51509. __e(o.label_fullname) +
  51510. ':</label>\n <input id="vcard-fullname" type="text" class="form-control" name="fn" value="' +
  51511. __e(o.fullname) +
  51512. '">\n </div>\n <div class="form-group">\n <label for="vcard-nickname" class="col-form-label">' +
  51513. __e(o.label_nickname) +
  51514. ':</label>\n <input id="vcard-nickname" type="text" class="form-control" name="nickname" value="' +
  51515. __e(o.nickname) +
  51516. '">\n </div>\n <div class="form-group">\n <label for="vcard-url" class="col-form-label">' +
  51517. __e(o.label_url) +
  51518. ':</label>\n <input id="vcard-url" type="url" class="form-control" name="url" value="' +
  51519. __e(o.url) +
  51520. '">\n </div>\n <div class="form-group">\n <label for="vcard-email" class="col-form-label">' +
  51521. __e(o.label_email) +
  51522. ':</label>\n <input id="vcard-email" type="email" class="form-control" name="email" value="' +
  51523. __e(o.email) +
  51524. '">\n </div>\n <div class="form-group">\n <label for="vcard-role" class="col-form-label">' +
  51525. __e(o.label_role) +
  51526. ':</label>\n <input id="vcard-role" type="text" class="form-control" name="role" value="' +
  51527. __e(o.role) +
  51528. '" aria-describedby="vcard-role-help">\n <small id="vcard-role-help" class="form-text text-muted">' +
  51529. __e(o.label_role_help) +
  51530. '</small>\n </div>\n <hr/>\n <div class="form-group">\n <button type="submit" class="save-form btn btn-primary">' +
  51531. __e(o.__('Save and close')) +
  51532. '</button>\n </div>\n </form>\n </div>\n ';
  51533. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  51534. __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">' +
  51535. __e(o.__("This device's OMEMO fingerprint")) +
  51536. '</li>\n <li class="list-group-item">\n ';
  51537. if (o.view.current_device && o.view.current_device.get('bundle') && o.view.current_device.get('bundle').fingerprint) { ;
  51538. __p += '\n <span class="fingerprint">' +
  51539. __e(o.utils.formatFingerprint(o.view.current_device.get('bundle').fingerprint)) +
  51540. '</span>\n ';
  51541. } else {;
  51542. __p += '\n <span class="spinner fa fa-spinner centered"/>\n ';
  51543. } ;
  51544. __p += '\n </li>\n </ul>\n ';
  51545. if (o.view.other_devices.length) { ;
  51546. __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="' +
  51547. __e(o.__('Select all')) +
  51548. '"\n aria-label="' +
  51549. __e(o.__('Checkbox to select fingerprints of all other OMEMO devices')) +
  51550. '">\n ' +
  51551. __e(o.__('Other OMEMO-enabled devices')) +
  51552. '\n </label>\n </li>\n ';
  51553. o._.forEach(o.view.other_devices, function (device) { ;
  51554. __p += '\n ';
  51555. if (device.get('bundle') && device.get('bundle').fingerprint) { ;
  51556. __p += '\n <li class="fingerprint-removal-item list-group-item nopadding">\n <label>\n <input type="checkbox" value="' +
  51557. __e(device.get('id')) +
  51558. '"\n aria-label="' +
  51559. __e(o.__('Checkbox for selecting the following fingerprint')) +
  51560. '">\n <span class="fingerprint">' +
  51561. __e(o.utils.formatFingerprint(device.get('bundle').fingerprint)) +
  51562. '</span>\n </label>\n </li>\n ';
  51563. } else {;
  51564. __p += '\n <li class="fingerprint-removal-item list-group-item nopadding">\n <label>\n <input type="checkbox" value="' +
  51565. __e(device.get('id')) +
  51566. '"\n aria-label="' +
  51567. __e(o.__('Checkbox for selecting the following fingerprint')) +
  51568. '">\n <span>' +
  51569. __e(o.__('Device without a fingerprint')) +
  51570. '</span>\n </label>\n </li>\n ';
  51571. } ;
  51572. __p += '\n ';
  51573. }); ;
  51574. __p += '\n </ul>\n <div class="form-group">\n <button type="submit" class="save-form btn btn-primary">' +
  51575. __e(o.__('Remove checked devices and close')) +
  51576. '</button>\n </div>\n ';
  51577. } ;
  51578. __p += '\n </form>\n </div>\n ';
  51579. } ;
  51580. __p += '\n </div>\n </div>\n </div>\n </div>\n</div>\n';
  51581. return __p
  51582. };
  51583. /***/ }),
  51584. /***/ "./src/templates/profile_view.html":
  51585. /*!*****************************************!*\
  51586. !*** ./src/templates/profile_view.html ***!
  51587. \*****************************************/
  51588. /*! no static exports found */
  51589. /***/ (function(module, exports, __webpack_require__) {
  51590. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51591. module.exports = function(o) {
  51592. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51593. function print() { __p += __j.call(arguments, '') }
  51594. __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">' +
  51595. __e(o.fullname) +
  51596. '</span>\n <!-- <a class="chatbox-btn fa fa-id-card align-self-center" title="' +
  51597. __e(o.title_your_profile) +
  51598. '" data-toggle="modal" data-target="#userProfileModal"></a> -->\n <!-- <a class="chatbox-btn fa fa-cog align-self-center" title="' +
  51599. __e(o.title_change_status) +
  51600. '" data-toggle="modal" data-target="#settingsModal"></a> -->\n ';
  51601. if (o._converse.allow_logout) { ;
  51602. __p += '\n <a class="chatbox-btn logout fa fa-sign-out-alt align-self-center" title="' +
  51603. __e(o.title_log_out) +
  51604. '"></a>\n ';
  51605. } ;
  51606. __p += '\n</div>\n<div class="d-flex xmpp-status">\n <span class="' +
  51607. __e(o.chat_status) +
  51608. ' w-100 align-self-center" data-value="' +
  51609. __e(o.chat_status) +
  51610. '">\n <span class="\n ';
  51611. if (o.chat_status === 'online') { ;
  51612. __p += ' fa fa-circle chat-status chat-status--online';
  51613. } ;
  51614. __p += '\n ';
  51615. if (o.chat_status === 'dnd') { ;
  51616. __p += ' fa fa-minus-circle chat-status chat-status--busy ';
  51617. } ;
  51618. __p += '\n ';
  51619. if (o.chat_status === 'away') { ;
  51620. __p += ' fa fa-circle chat-status chat-status--away';
  51621. } ;
  51622. __p += '\n ';
  51623. if (o.chat_status === 'xa') { ;
  51624. __p += ' far fa-circle chat-status chat-status--xa ';
  51625. } ;
  51626. __p += '\n ';
  51627. if (o.chat_status === 'offline') { ;
  51628. __p += ' fa fa-circle chat-status chat-status--offline';
  51629. } ;
  51630. __p += '"></span> ' +
  51631. __e(o.status_message) +
  51632. '</span>\n <a class="chatbox-btn change-status fa fa-pencil-alt" title="' +
  51633. __e(o.title_change_status) +
  51634. '" data-toggle="modal" data-target="#changeStatusModal"></a>\n</div>\n</div>\n';
  51635. return __p
  51636. };
  51637. /***/ }),
  51638. /***/ "./src/templates/register_link.html":
  51639. /*!******************************************!*\
  51640. !*** ./src/templates/register_link.html ***!
  51641. \******************************************/
  51642. /*! no static exports found */
  51643. /***/ (function(module, exports, __webpack_require__) {
  51644. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51645. module.exports = function(o) {
  51646. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51647. function print() { __p += __j.call(arguments, '') }
  51648. __p += '<!-- src/templates/register_link.html -->\n<fieldset class="switch-form">\n ';
  51649. if (!o._converse.auto_login && o._converse.CONNECTION_STATUS[o.connection_status] !== 'CONNECTING') { ;
  51650. __p += '\n <p>' +
  51651. __e( o.__("Don't have a chat account?") ) +
  51652. '</p>\n <p><a class="register-account toggle-register-login" href="#converse/register">' +
  51653. __e(o.__("Create an account")) +
  51654. '</a></p>\n ';
  51655. } ;
  51656. __p += '\n</fieldset>\n';
  51657. return __p
  51658. };
  51659. /***/ }),
  51660. /***/ "./src/templates/register_panel.html":
  51661. /*!*******************************************!*\
  51662. !*** ./src/templates/register_panel.html ***!
  51663. \*******************************************/
  51664. /*! no static exports found */
  51665. /***/ (function(module, exports, __webpack_require__) {
  51666. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51667. module.exports = function(o) {
  51668. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51669. function print() { __p += __j.call(arguments, '') }
  51670. __p += '<!-- src/templates/register_panel.html -->\n<div class="row">\n <form id="converse-register" class="converse-form">\n <legend class="col-form-label">' +
  51671. __e(o.__("Create your account")) +
  51672. '</legend>\n\n <div class="form-group">\n <label>' +
  51673. __e(o.__("Please enter the XMPP provider to register with:")) +
  51674. '</label>\n <div class="form-errors hidden"></div>\n\n ';
  51675. if (o.default_domain) { ;
  51676. __p += '\n ' +
  51677. __e(o.default_domain) +
  51678. '\n </div>\n ';
  51679. } ;
  51680. __p += '\n ';
  51681. if (!o.default_domain) { ;
  51682. __p += '\n <input class="form-control" autofocus="autofocus" required="required" type="text" name="domain" placeholder="' +
  51683. __e(o.domain_placeholder) +
  51684. '">\n <p class="form-text text-muted">' +
  51685. __e(o.help_providers) +
  51686. ' <a href="' +
  51687. __e(o.href_providers) +
  51688. '" class="url" target="_blank" rel="noopener">' +
  51689. __e(o.help_providers_link) +
  51690. '</a>.</p>\n </div>\n <fieldset class="buttons">\n <input class="btn btn-primary" type="submit" value="' +
  51691. __e(o.label_register) +
  51692. '">\n <div class="switch-form">\n <p>' +
  51693. __e( o.__("Already have a chat account?") ) +
  51694. '</p>\n <p><a class="login-here toggle-register-login" href="#converse/login">' +
  51695. __e(o.__("Log in here")) +
  51696. '</a></p>\n </div>\n </fieldset>\n ';
  51697. } ;
  51698. __p += '\n </div>\n </form>\n</div>\n';
  51699. return __p
  51700. };
  51701. /***/ }),
  51702. /***/ "./src/templates/registration_form.html":
  51703. /*!**********************************************!*\
  51704. !*** ./src/templates/registration_form.html ***!
  51705. \**********************************************/
  51706. /*! no static exports found */
  51707. /***/ (function(module, exports, __webpack_require__) {
  51708. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51709. module.exports = function(o) {
  51710. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51711. function print() { __p += __j.call(arguments, '') }
  51712. __p += '<!-- src/templates/registration_form.html -->\n<legend class="col-form-label">' +
  51713. __e(o.__("Account Registration:")) +
  51714. ' ' +
  51715. __e(o.domain) +
  51716. '</legend>\n<p class="title">' +
  51717. __e(o.title) +
  51718. '</p>\n<p class="form-help instructions">' +
  51719. __e(o.instructions) +
  51720. '</p>\n<div class="form-errors hidden"></div>\n\n<fieldset class="buttons">\n <input type="submit" class="btn btn-primary" value="' +
  51721. __e(o.__('Register')) +
  51722. '"/>\n ';
  51723. if (!o.registration_domain) { ;
  51724. __p += '\n <input type="button" class="btn btn-secondary button-cancel" value="' +
  51725. __e(o.__('Choose a different provider')) +
  51726. '"/>\n ';
  51727. } ;
  51728. __p += '\n <div class="switch-form">\n <p>' +
  51729. __e( o.__("Already have a chat account?") ) +
  51730. '</p>\n <p><a class="login-here toggle-register-login" href="#converse/login">' +
  51731. __e(o.__("Log in here")) +
  51732. '</a></p>\n </div>\n</fieldset>\n';
  51733. return __p
  51734. };
  51735. /***/ }),
  51736. /***/ "./src/templates/registration_request.html":
  51737. /*!*************************************************!*\
  51738. !*** ./src/templates/registration_request.html ***!
  51739. \*************************************************/
  51740. /*! no static exports found */
  51741. /***/ (function(module, exports, __webpack_require__) {
  51742. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51743. module.exports = function(o) {
  51744. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51745. function print() { __p += __j.call(arguments, '') }
  51746. __p += '<!-- src/templates/registration_request.html -->\n<span class="spinner login-submit fa fa-spinner"></span>\n<p class="info">' +
  51747. __e(o.__("Hold tight, we're fetching the registration form…")) +
  51748. '</p>\n';
  51749. if (o.cancel) { ;
  51750. __p += '\n <button class="btn btn-secondary button-cancel hor_centered">' +
  51751. __e(o.__('Cancel')) +
  51752. '</button>\n';
  51753. } ;
  51754. __p += '\n';
  51755. return __p
  51756. };
  51757. /***/ }),
  51758. /***/ "./src/templates/requesting_contact.html":
  51759. /*!***********************************************!*\
  51760. !*** ./src/templates/requesting_contact.html ***!
  51761. \***********************************************/
  51762. /*! no static exports found */
  51763. /***/ (function(module, exports, __webpack_require__) {
  51764. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51765. module.exports = function(o) {
  51766. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51767. function print() { __p += __j.call(arguments, '') }
  51768. __p += '<!-- src/templates/requesting_contact.html -->\n';
  51769. if (o.allow_chat_pending_contacts) { ;
  51770. __p += '\n<a class="open-chat w-100"href="#">\n';
  51771. } ;
  51772. __p += '\n<span class="req-contact-name w-100" title="JID: ' +
  51773. __e(o.jid) +
  51774. '">' +
  51775. __e(o.display_name) +
  51776. '</span>\n';
  51777. if (o.allow_chat_pending_contacts) { ;
  51778. __p += '\n</a>\n';
  51779. } ;
  51780. __p += '\n<a class="accept-xmpp-request fa fa-check"\n aria-label="' +
  51781. __e(o.desc_accept) +
  51782. '" title="' +
  51783. __e(o.desc_accept) +
  51784. '" href="#"></a>\n<a class="decline-xmpp-request fa fa-times"\n aria-label="' +
  51785. __e(o.desc_decline) +
  51786. '" title="' +
  51787. __e(o.desc_decline) +
  51788. '" href="#"></a>\n';
  51789. return __p
  51790. };
  51791. /***/ }),
  51792. /***/ "./src/templates/room_description.html":
  51793. /*!*********************************************!*\
  51794. !*** ./src/templates/room_description.html ***!
  51795. \*********************************************/
  51796. /*! no static exports found */
  51797. /***/ (function(module, exports, __webpack_require__) {
  51798. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51799. module.exports = function(o) {
  51800. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51801. function print() { __p += __j.call(arguments, '') }
  51802. __p += '<!-- src/templates/room_description.html -->\n<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>' +
  51803. __e(o.label_jid) +
  51804. '</strong> ' +
  51805. __e(o.jid) +
  51806. '</p>\n<p class="room-info"><strong>' +
  51807. __e(o.label_desc) +
  51808. '</strong> ' +
  51809. __e(o.desc) +
  51810. '</p>\n<p class="room-info"><strong>' +
  51811. __e(o.label_occ) +
  51812. '</strong> ' +
  51813. __e(o.occ) +
  51814. '</p>\n<p class="room-info"><strong>' +
  51815. __e(o.label_features) +
  51816. '</strong>\n <ul>\n ';
  51817. if (o.passwordprotected) { ;
  51818. __p += '\n <li class="room-info locked">' +
  51819. __e(o.label_requires_auth) +
  51820. '</li>\n ';
  51821. } ;
  51822. __p += '\n ';
  51823. if (o.hidden) { ;
  51824. __p += '\n <li class="room-info">' +
  51825. __e(o.label_hidden) +
  51826. '</li>\n ';
  51827. } ;
  51828. __p += '\n ';
  51829. if (o.membersonly) { ;
  51830. __p += '\n <li class="room-info">' +
  51831. __e(o.label_requires_invite) +
  51832. '</li>\n ';
  51833. } ;
  51834. __p += '\n ';
  51835. if (o.moderated) { ;
  51836. __p += '\n <li class="room-info">' +
  51837. __e(o.label_moderated) +
  51838. '</li>\n ';
  51839. } ;
  51840. __p += '\n ';
  51841. if (o.nonanonymous) { ;
  51842. __p += '\n <li class="room-info">' +
  51843. __e(o.label_non_anon) +
  51844. '</li>\n ';
  51845. } ;
  51846. __p += '\n ';
  51847. if (o.open) { ;
  51848. __p += '\n <li class="room-info">' +
  51849. __e(o.label_open_room) +
  51850. '</li>\n ';
  51851. } ;
  51852. __p += '\n ';
  51853. if (o.persistent) { ;
  51854. __p += '\n <li class="room-info">' +
  51855. __e(o.label_permanent_room) +
  51856. '</li>\n ';
  51857. } ;
  51858. __p += '\n ';
  51859. if (o.publicroom) { ;
  51860. __p += '\n <li class="room-info">' +
  51861. __e(o.label_public) +
  51862. '</li>\n ';
  51863. } ;
  51864. __p += '\n ';
  51865. if (o.semianonymous) { ;
  51866. __p += '\n <li class="room-info">' +
  51867. __e(o.label_semi_anon) +
  51868. '</li>\n ';
  51869. } ;
  51870. __p += '\n ';
  51871. if (o.temporary) { ;
  51872. __p += '\n <li class="room-info">' +
  51873. __e(o.label_temp_room) +
  51874. '</li>\n ';
  51875. } ;
  51876. __p += '\n ';
  51877. if (o.unmoderated) { ;
  51878. __p += '\n <li class="room-info">' +
  51879. __e(o.label_unmoderated) +
  51880. '</li>\n ';
  51881. } ;
  51882. __p += '\n </ul>\n</p>\n</div>\n';
  51883. return __p
  51884. };
  51885. /***/ }),
  51886. /***/ "./src/templates/room_item.html":
  51887. /*!**************************************!*\
  51888. !*** ./src/templates/room_item.html ***!
  51889. \**************************************/
  51890. /*! no static exports found */
  51891. /***/ (function(module, exports, __webpack_require__) {
  51892. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51893. module.exports = function(o) {
  51894. var __t, __p = '', __e = _.escape;
  51895. __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="' +
  51896. __e(o.jid) +
  51897. '"\n data-room-name="' +
  51898. __e(o.name) +
  51899. '"\n title="' +
  51900. __e(o.open_title) +
  51901. '"\n href="#">' +
  51902. __e(o.name) +
  51903. '</a>\n <a class="right room-info icon-room-info"\n data-room-jid="' +
  51904. __e(o.jid) +
  51905. '"\n title="' +
  51906. __e(o.info_title) +
  51907. '" href="#">&nbsp;</a>\n </div>\n</li>\n';
  51908. return __p
  51909. };
  51910. /***/ }),
  51911. /***/ "./src/templates/room_panel.html":
  51912. /*!***************************************!*\
  51913. !*** ./src/templates/room_panel.html ***!
  51914. \***************************************/
  51915. /*! no static exports found */
  51916. /***/ (function(module, exports, __webpack_require__) {
  51917. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51918. module.exports = function(o) {
  51919. var __t, __p = '', __e = _.escape;
  51920. __p += '<!-- src/templates/room_panel.html -->\n<!-- <div id="chatrooms"> -->\n<div class="d-flex controlbox-padded">\n <span class="w-100 controlbox-heading">' +
  51921. __e(o.heading_chatrooms) +
  51922. '</span>\n <a class="chatbox-btn show-list-muc-modal fa fa-list-ul" title="' +
  51923. __e(o.title_list_rooms) +
  51924. '" data-toggle="modal" data-target="#list-chatrooms-modal"></a>\n <a class="chatbox-btn show-add-muc-modal fa fa-plus" title="' +
  51925. __e(o.title_new_room) +
  51926. '" 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';
  51927. return __p
  51928. };
  51929. /***/ }),
  51930. /***/ "./src/templates/rooms_list.html":
  51931. /*!***************************************!*\
  51932. !*** ./src/templates/rooms_list.html ***!
  51933. \***************************************/
  51934. /*! no static exports found */
  51935. /***/ (function(module, exports, __webpack_require__) {
  51936. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51937. module.exports = function(o) {
  51938. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51939. function print() { __p += __j.call(arguments, '') }
  51940. __p += '<!-- src/templates/rooms_list.html -->\n<a href="#" class="list-toggle open-rooms-toggle controlbox-padded" title="' +
  51941. __e(o.desc_rooms) +
  51942. '">\n <span class="fa ';
  51943. if (o.toggle_state === o._converse.OPENED) { ;
  51944. __p += ' fa-caret-down ';
  51945. } else { ;
  51946. __p += ' fa-caret-right ';
  51947. } ;
  51948. __p += '">\n </span> ' +
  51949. __e(o.label_rooms) +
  51950. '</a>\n<div class="items-list rooms-list open-rooms-list"></div>\n';
  51951. return __p
  51952. };
  51953. /***/ }),
  51954. /***/ "./src/templates/rooms_list_item.html":
  51955. /*!********************************************!*\
  51956. !*** ./src/templates/rooms_list_item.html ***!
  51957. \********************************************/
  51958. /*! no static exports found */
  51959. /***/ (function(module, exports, __webpack_require__) {
  51960. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  51961. module.exports = function(o) {
  51962. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  51963. function print() { __p += __j.call(arguments, '') }
  51964. __p += '<!-- src/templates/rooms_list_item.html -->\n<div class="list-item controlbox-padded available-chatroom d-flex flex-row\n ';
  51965. if (o.currently_open) { ;
  51966. __p += ' open ';
  51967. } ;
  51968. __p += '\n ';
  51969. if (o.num_unread_general) { ;
  51970. __p += ' unread-msgs ';
  51971. } ;
  51972. __p += '"\n data-room-jid="' +
  51973. __e(o.jid) +
  51974. '">\n';
  51975. if (o.num_unread) { ;
  51976. __p += '\n <span class="msgs-indicator badge badge-info">' +
  51977. __e( o.num_unread ) +
  51978. '</span>\n';
  51979. } ;
  51980. __p += '\n<a class="list-item-link open-room available-room w-100"\n data-room-jid="' +
  51981. __e(o.jid) +
  51982. '"\n title="' +
  51983. __e(o.open_title) +
  51984. '" href="#">' +
  51985. __e(o.name || o.jid) +
  51986. '</a>\n\n';
  51987. if (o.allow_bookmarks) { ;
  51988. __p += '\n<a class="list-item-action fa ';
  51989. if (o.bookmarked) { ;
  51990. __p += ' fa-bookmark remove-bookmark button-on ';
  51991. } else { ;
  51992. __p += ' add-bookmark fa-bookmark-o ';
  51993. } ;
  51994. __p += '"\n data-room-jid="' +
  51995. __e(o.jid) +
  51996. '" data-bookmark-name="' +
  51997. __e(o.name) +
  51998. '"\n title="';
  51999. if (o.bookmarked) { ;
  52000. __p += ' ' +
  52001. __e(o.info_remove_bookmark) +
  52002. ' ';
  52003. } else { ;
  52004. __p += ' ' +
  52005. __e(o.info_add_bookmark) +
  52006. ' ';
  52007. } ;
  52008. __p += '"\n href="#">&nbsp;</a>\n';
  52009. } ;
  52010. __p += '\n\n<a class="list-item-action room-info fa fa-info-circle" data-room-jid="' +
  52011. __e(o.jid) +
  52012. '"\n title="' +
  52013. __e(o.info_title) +
  52014. '" href="#">&nbsp;</a>\n\n<a class="list-item-action fa fa-times close-room"\n data-room-jid="' +
  52015. __e(o.jid) +
  52016. '"\n data-room-name="' +
  52017. __e(o.name || o.jid) +
  52018. '"\n title="' +
  52019. __e(o.info_leave_room) +
  52020. '" href="#">&nbsp;</a>\n\n</div>\n';
  52021. return __p
  52022. };
  52023. /***/ }),
  52024. /***/ "./src/templates/rooms_results.html":
  52025. /*!******************************************!*\
  52026. !*** ./src/templates/rooms_results.html ***!
  52027. \******************************************/
  52028. /*! no static exports found */
  52029. /***/ (function(module, exports, __webpack_require__) {
  52030. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52031. module.exports = function(o) {
  52032. var __t, __p = '', __e = _.escape;
  52033. __p += '<!-- src/templates/rooms_results.html -->\n<li class="list-group-item active">' +
  52034. __e( o.feedback_text ) +
  52035. '</dt>\n';
  52036. return __p
  52037. };
  52038. /***/ }),
  52039. /***/ "./src/templates/roster.html":
  52040. /*!***********************************!*\
  52041. !*** ./src/templates/roster.html ***!
  52042. \***********************************/
  52043. /*! no static exports found */
  52044. /***/ (function(module, exports, __webpack_require__) {
  52045. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52046. module.exports = function(o) {
  52047. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52048. function print() { __p += __j.call(arguments, '') }
  52049. __p += '<!-- src/templates/roster.html -->\n<div class="d-flex controlbox-padded">\n <span class="w-100 controlbox-heading">' +
  52050. __e(o.heading_contacts) +
  52051. '</span>\n ';
  52052. if (o.allow_contact_requests) { ;
  52053. __p += '\n <a class="chatbox-btn add-contact fa fa-user-plus"\n title="' +
  52054. __e(o.title_add_contact) +
  52055. '"\n data-toggle="modal"\n data-target="#add-contact-modal"></a>\n ';
  52056. } ;
  52057. __p += '\n</div>\n\n<form class="roster-filter-form"></form>\n\n<div class="roster-contacts"></div>\n';
  52058. return __p
  52059. };
  52060. /***/ }),
  52061. /***/ "./src/templates/roster_filter.html":
  52062. /*!******************************************!*\
  52063. !*** ./src/templates/roster_filter.html ***!
  52064. \******************************************/
  52065. /*! no static exports found */
  52066. /***/ (function(module, exports, __webpack_require__) {
  52067. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52068. module.exports = function(o) {
  52069. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52070. function print() { __p += __j.call(arguments, '') }
  52071. __p += '<!-- src/templates/roster_filter.html -->\n<form class="controlbox-padded roster-filter-form input-button-group ';
  52072. if (!o.visible) { ;
  52073. __p += ' hidden ';
  52074. } ;
  52075. __p += '">\n <div class="form-inline flex-nowrap">\n <div class="btn-group">\n <input ';
  52076. if (o.filter_text) { ;
  52077. __p += ' value="' +
  52078. __e(o.filter_text) +
  52079. '" ';
  52080. } ;
  52081. __p += '\n class="roster-filter form-control ';
  52082. if (o.filter_type === 'state') { ;
  52083. __p += ' hidden ';
  52084. } ;
  52085. __p += '"\n placeholder="' +
  52086. __e(o.placeholder) +
  52087. '">\n <span class="clear-input fa fa-times ';
  52088. if (!o.filter_text || o.filter_type === 'state') { ;
  52089. __p += ' hidden ';
  52090. } ;
  52091. __p += '"></span>\n </div>\n\n <select class="form-control state-type ';
  52092. if (o.filter_type !== 'state') { ;
  52093. __p += ' hidden ';
  52094. } ;
  52095. __p += '">\n <option value="">' +
  52096. __e(o.label_any) +
  52097. '</option>\n <option ';
  52098. if (o.chat_state === 'unread_messages') { ;
  52099. __p += ' selected="selected" ';
  52100. } ;
  52101. __p += '\n value="unread_messages">' +
  52102. __e(o.label_unread_messages) +
  52103. '</option>\n <option ';
  52104. if (o.chat_state === 'online') { ;
  52105. __p += ' selected="selected" ';
  52106. } ;
  52107. __p += '\n value="online">' +
  52108. __e(o.label_online) +
  52109. '</option>\n <option ';
  52110. if (o.chat_state === 'chat') { ;
  52111. __p += ' selected="selected" ';
  52112. } ;
  52113. __p += '\n value="chat">' +
  52114. __e(o.label_chatty) +
  52115. '</option>\n <option ';
  52116. if (o.chat_state === 'dnd') { ;
  52117. __p += ' selected="selected" ';
  52118. } ;
  52119. __p += '\n value="dnd">' +
  52120. __e(o.label_busy) +
  52121. '</option>\n <option ';
  52122. if (o.chat_state === 'away') { ;
  52123. __p += ' selected="selected" ';
  52124. } ;
  52125. __p += '\n value="away">' +
  52126. __e(o.label_away) +
  52127. '</option>\n <option ';
  52128. if (o.chat_state === 'xa') { ;
  52129. __p += ' selected="selected" ';
  52130. } ;
  52131. __p += '\n value="xa">' +
  52132. __e(o.label_xa) +
  52133. '</option>\n <option ';
  52134. if (o.chat_state === 'offline') { ;
  52135. __p += ' selected="selected" ';
  52136. } ;
  52137. __p += '\n value="offline">' +
  52138. __e(o.label_offline) +
  52139. '</option>\n </select>\n\n <div class="filter-by d-flex flex-nowrap">\n <span class="fa fa-user ';
  52140. if (o.filter_type === 'contacts') { ;
  52141. __p += ' selected ';
  52142. } ;
  52143. __p += '" data-type="contacts" title="' +
  52144. __e(o.title_contact_filter) +
  52145. '"></span>\n <span class="fa fa-users ';
  52146. if (o.filter_type === 'groups') { ;
  52147. __p += ' selected ';
  52148. } ;
  52149. __p += '" data-type="groups" title="' +
  52150. __e(o.title_group_filter) +
  52151. '"></span>\n <span class="fa fa-circle ';
  52152. if (o.filter_type === 'state') { ;
  52153. __p += ' selected ';
  52154. } ;
  52155. __p += '" data-type="state" title="' +
  52156. __e(o.title_status_filter) +
  52157. '"></span>\n </div>\n </div>\n</form>\n';
  52158. return __p
  52159. };
  52160. /***/ }),
  52161. /***/ "./src/templates/roster_item.html":
  52162. /*!****************************************!*\
  52163. !*** ./src/templates/roster_item.html ***!
  52164. \****************************************/
  52165. /*! no static exports found */
  52166. /***/ (function(module, exports, __webpack_require__) {
  52167. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52168. module.exports = function(o) {
  52169. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52170. function print() { __p += __j.call(arguments, '') }
  52171. __p += '<!-- src/templates/roster_item.html -->\n<a class="list-item-link cbox-list-item open-chat w-100 ';
  52172. if (o.num_unread) { ;
  52173. __p += ' unread-msgs ';
  52174. } ;
  52175. __p += '"\n title="' +
  52176. __e(o.desc_chat) +
  52177. '" href="#">\n <span class="' +
  52178. __e(o.status_icon) +
  52179. '" title="' +
  52180. __e(o.desc_status) +
  52181. '"></span>\n ';
  52182. if (o.num_unread) { ;
  52183. __p += '\n <span class="msgs-indicator">' +
  52184. __e( o.num_unread ) +
  52185. '</span>\n ';
  52186. } ;
  52187. __p += '\n <span class="contact-name ';
  52188. if (o.num_unread) { ;
  52189. __p += ' unread-msgs ';
  52190. } ;
  52191. __p += '">' +
  52192. __e(o.display_name) +
  52193. '</span></a>\n';
  52194. if (o.allow_contact_removal) { ;
  52195. __p += '\n<a class="list-item-action remove-xmpp-contact far fa-trash-alt" title="' +
  52196. __e(o.desc_remove) +
  52197. '" href="#"></a>\n';
  52198. } ;
  52199. __p += '\n';
  52200. return __p
  52201. };
  52202. /***/ }),
  52203. /***/ "./src/templates/search_contact.html":
  52204. /*!*******************************************!*\
  52205. !*** ./src/templates/search_contact.html ***!
  52206. \*******************************************/
  52207. /*! no static exports found */
  52208. /***/ (function(module, exports, __webpack_require__) {
  52209. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52210. module.exports = function(o) {
  52211. var __t, __p = '', __e = _.escape;
  52212. __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="' +
  52213. __e(o.label_contact_name) +
  52214. '"/>\n <button type="submit">' +
  52215. __e(o.label_search) +
  52216. '</button>\n </form>\n</li>\n';
  52217. return __p
  52218. };
  52219. /***/ }),
  52220. /***/ "./src/templates/select_option.html":
  52221. /*!******************************************!*\
  52222. !*** ./src/templates/select_option.html ***!
  52223. \******************************************/
  52224. /*! no static exports found */
  52225. /***/ (function(module, exports, __webpack_require__) {
  52226. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52227. module.exports = function(o) {
  52228. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52229. function print() { __p += __j.call(arguments, '') }
  52230. __p += '<!-- src/templates/select_option.html -->\n<option value="' +
  52231. __e(o.value) +
  52232. '" ';
  52233. if (o.selected) { ;
  52234. __p += ' selected="selected" ';
  52235. } ;
  52236. __p += ' >' +
  52237. __e(o.label) +
  52238. '</option>\n';
  52239. return __p
  52240. };
  52241. /***/ }),
  52242. /***/ "./src/templates/spinner.html":
  52243. /*!************************************!*\
  52244. !*** ./src/templates/spinner.html ***!
  52245. \************************************/
  52246. /*! no static exports found */
  52247. /***/ (function(module, exports, __webpack_require__) {
  52248. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52249. module.exports = function(o) {
  52250. var __t, __p = '';
  52251. __p += '<!-- src/templates/spinner.html -->\n<span class="spinner fa fa-spinner centered"/>\n';
  52252. return __p
  52253. };
  52254. /***/ }),
  52255. /***/ "./src/templates/spoiler_button.html":
  52256. /*!*******************************************!*\
  52257. !*** ./src/templates/spoiler_button.html ***!
  52258. \*******************************************/
  52259. /*! no static exports found */
  52260. /***/ (function(module, exports, __webpack_require__) {
  52261. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52262. module.exports = function(o) {
  52263. var __t, __p = '', __j = Array.prototype.join;
  52264. function print() { __p += __j.call(arguments, '') }
  52265. __p += '<!-- src/templates/spoiler_button.html -->\n<li class="toggle-compose-spoiler fa ';
  52266. if (o.composing_spoiler) { ;
  52267. __p += ' fa-eye-slash ';
  52268. } ;
  52269. __p += ' ';
  52270. if (!o.composing_spoiler) { ;
  52271. __p += ' fa-eye ';
  52272. } ;
  52273. __p += '"\n title="' +
  52274. ((__t = ( o.label_toggle_spoiler )) == null ? '' : __t) +
  52275. '"></a>\n</li>\n';
  52276. return __p
  52277. };
  52278. /***/ }),
  52279. /***/ "./src/templates/status_message.html":
  52280. /*!*******************************************!*\
  52281. !*** ./src/templates/status_message.html ***!
  52282. \*******************************************/
  52283. /*! no static exports found */
  52284. /***/ (function(module, exports, __webpack_require__) {
  52285. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52286. module.exports = function(o) {
  52287. var __t, __p = '', __e = _.escape;
  52288. __p += '<!-- src/templates/status_message.html -->\n<div class="message chat-info chat-status"\n data-isodate="' +
  52289. __e(o.isodate) +
  52290. '"\n data-status="' +
  52291. __e(o.from) +
  52292. '">' +
  52293. __e(o.message) +
  52294. '</div>\n';
  52295. return __p
  52296. };
  52297. /***/ }),
  52298. /***/ "./src/templates/status_option.html":
  52299. /*!******************************************!*\
  52300. !*** ./src/templates/status_option.html ***!
  52301. \******************************************/
  52302. /*! no static exports found */
  52303. /***/ (function(module, exports, __webpack_require__) {
  52304. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52305. module.exports = function(o) {
  52306. var __t, __p = '', __e = _.escape;
  52307. __p += '<!-- src/templates/status_option.html -->\n<li>\n <a href="#" class="' +
  52308. __e( o.value ) +
  52309. '" data-value="' +
  52310. __e( o.value ) +
  52311. '">\n <span class="icon-' +
  52312. __e( o.value ) +
  52313. '"></span>\n ' +
  52314. __e( o.text ) +
  52315. '\n </a>\n</li>\n';
  52316. return __p
  52317. };
  52318. /***/ }),
  52319. /***/ "./src/templates/toggle_chats.html":
  52320. /*!*****************************************!*\
  52321. !*** ./src/templates/toggle_chats.html ***!
  52322. \*****************************************/
  52323. /*! no static exports found */
  52324. /***/ (function(module, exports, __webpack_require__) {
  52325. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52326. module.exports = function(o) {
  52327. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52328. function print() { __p += __j.call(arguments, '') }
  52329. __p += '<!-- src/templates/toggle_chats.html -->\n' +
  52330. __e(o.num_minimized) +
  52331. ' ' +
  52332. __e(o.Minimized) +
  52333. '\n<span class="unread-message-count ';
  52334. if (!o.num_unread) { ;
  52335. __p += ' unread-message-count-hidden ';
  52336. } ;
  52337. __p += '" href="#">' +
  52338. __e(o.num_unread) +
  52339. '</span>\n';
  52340. return __p
  52341. };
  52342. /***/ }),
  52343. /***/ "./src/templates/toolbar.html":
  52344. /*!************************************!*\
  52345. !*** ./src/templates/toolbar.html ***!
  52346. \************************************/
  52347. /*! no static exports found */
  52348. /***/ (function(module, exports, __webpack_require__) {
  52349. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52350. module.exports = function(o) {
  52351. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52352. function print() { __p += __j.call(arguments, '') }
  52353. __p += '<!-- src/templates/toolbar.html -->\n';
  52354. if (o.use_emoji) { ;
  52355. __p += '\n<li class="toggle-toolbar-menu toggle-smiley dropup">\n <a class="toggle-smiley far fa-smile" title="' +
  52356. __e(o.tooltip_insert_smiley) +
  52357. '" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a> \n <div class="emoji-picker dropdown-menu toolbar-menu"></div>\n</li>\n';
  52358. } ;
  52359. __p += '\n';
  52360. if (o.show_call_button) { ;
  52361. __p += '\n<li class="toggle-call fa fa-phone" title="' +
  52362. __e(o.label_start_call) +
  52363. '"></li>\n';
  52364. } ;
  52365. __p += '\n';
  52366. if (o.show_occupants_toggle) { ;
  52367. __p += '\n<li class="toggle-occupants fa fa-angle-double-right" title="' +
  52368. __e(o.label_hide_occupants) +
  52369. '"></li>\n';
  52370. } ;
  52371. __p += '\n';
  52372. return __p
  52373. };
  52374. /***/ }),
  52375. /***/ "./src/templates/toolbar_fileupload.html":
  52376. /*!***********************************************!*\
  52377. !*** ./src/templates/toolbar_fileupload.html ***!
  52378. \***********************************************/
  52379. /*! no static exports found */
  52380. /***/ (function(module, exports, __webpack_require__) {
  52381. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52382. module.exports = function(o) {
  52383. var __t, __p = '', __e = _.escape;
  52384. __p += '<!-- src/templates/toolbar_fileupload.html -->\n<li class="upload-file">\n <a class="fa fa-paperclip" title="' +
  52385. __e(o.tooltip_upload_file) +
  52386. '"></a>\n <input type="file" class="fileupload" multiple style="display:none"/>\n</li> \n';
  52387. return __p
  52388. };
  52389. /***/ }),
  52390. /***/ "./src/templates/toolbar_omemo.html":
  52391. /*!******************************************!*\
  52392. !*** ./src/templates/toolbar_omemo.html ***!
  52393. \******************************************/
  52394. /*! no static exports found */
  52395. /***/ (function(module, exports, __webpack_require__) {
  52396. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52397. module.exports = function(o) {
  52398. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52399. function print() { __p += __j.call(arguments, '') }
  52400. __p += '<!-- src/templates/toolbar_omemo.html -->\n<li class="toggle-omemo fa ';
  52401. if (o.omemo_active) { ;
  52402. __p += ' fa-lock ';
  52403. } else { ;
  52404. __p += ' fa-unlock ';
  52405. } ;
  52406. __p += '" title="' +
  52407. __e(o.__('Messages are being sent in plaintext')) +
  52408. '"></li>\n';
  52409. return __p
  52410. };
  52411. /***/ }),
  52412. /***/ "./src/templates/trimmed_chat.html":
  52413. /*!*****************************************!*\
  52414. !*** ./src/templates/trimmed_chat.html ***!
  52415. \*****************************************/
  52416. /*! no static exports found */
  52417. /***/ (function(module, exports, __webpack_require__) {
  52418. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52419. module.exports = function(o) {
  52420. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52421. function print() { __p += __j.call(arguments, '') }
  52422. __p += '<!-- src/templates/trimmed_chat.html -->\n<a href="#" class="restore-chat w-100 align-self-center" title="' +
  52423. __e(o.tooltip) +
  52424. '">\n ';
  52425. if (o.num_unread) { ;
  52426. __p += ' \n <span class="message-count badge badge-light">' +
  52427. __e(o.num_unread) +
  52428. '</span>\n ';
  52429. } ;
  52430. __p += '\n ' +
  52431. __e(o.title || o.jid ) +
  52432. '\n</a>\n<a class="chatbox-btn close-chatbox-button fa fa-times"></a>\n';
  52433. return __p
  52434. };
  52435. /***/ }),
  52436. /***/ "./src/templates/user_details_modal.html":
  52437. /*!***********************************************!*\
  52438. !*** ./src/templates/user_details_modal.html ***!
  52439. \***********************************************/
  52440. /*! no static exports found */
  52441. /***/ (function(module, exports, __webpack_require__) {
  52442. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52443. module.exports = function(o) {
  52444. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  52445. function print() { __p += __j.call(arguments, '') }
  52446. __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">' +
  52447. __e(o.display_name) +
  52448. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  52449. __e(o.__('Close')) +
  52450. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n ';
  52451. if (o.image) { ;
  52452. __p += '\n <img alt="' +
  52453. __e(o.__('The User\'s Profile Image')) +
  52454. '"\n class="img-thumbnail avatar align-self-center mb-3"\n height="100" width="100" src="data:' +
  52455. __e(o.image_type) +
  52456. ';base64,' +
  52457. __e(o.image) +
  52458. '"/>\n ';
  52459. } ;
  52460. __p += '\n ';
  52461. if (o.fullname) { ;
  52462. __p += '\n <p><label>' +
  52463. __e(o.__('Full Name')) +
  52464. ':</label>&nbsp;' +
  52465. __e(o.fullname) +
  52466. '</p>\n ';
  52467. } ;
  52468. __p += '\n <p><label>' +
  52469. __e(o.__('XMPP Address')) +
  52470. ':</label>&nbsp;' +
  52471. __e(o.jid) +
  52472. '</p>\n ';
  52473. if (o.nickname) { ;
  52474. __p += '\n <p><label>' +
  52475. __e(o.__('Nickname')) +
  52476. ':</label>&nbsp;' +
  52477. __e(o.nickname) +
  52478. '</p>\n ';
  52479. } ;
  52480. __p += '\n ';
  52481. if (o.url) { ;
  52482. __p += '\n <p><label>' +
  52483. __e(o.__('URL')) +
  52484. ':</label>&nbsp;<a target="_blank" rel="noopener" href="' +
  52485. __e(o.url) +
  52486. '">' +
  52487. __e(o.url) +
  52488. '</a></p>\n ';
  52489. } ;
  52490. __p += '\n ';
  52491. if (o.email) { ;
  52492. __p += '\n <p><label>' +
  52493. __e(o.__('Email')) +
  52494. ':</label>&nbsp;<a href="mailto:' +
  52495. __e(o.email) +
  52496. '">' +
  52497. __e(o.email) +
  52498. '</a></p>\n ';
  52499. } ;
  52500. __p += '\n ';
  52501. if (o.role) { ;
  52502. __p += '\n <p><label>' +
  52503. __e(o.__('Role')) +
  52504. ':</label>&nbsp;' +
  52505. __e(o.role) +
  52506. '</p>\n ';
  52507. } ;
  52508. __p += '\n\n ';
  52509. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  52510. __p += '\n <hr>\n <ul class="list-group fingerprints">\n <li class="list-group-item active">' +
  52511. __e(o.__('OMEMO Fingerprints')) +
  52512. '</li>\n ';
  52513. if (!o.view.devicelist.devices) { ;
  52514. __p += '\n <li class="list-group-item"><span class="spinner fa fa-spinner centered"/></li>\n ';
  52515. } ;
  52516. __p += '\n ';
  52517. if (o.view.devicelist.devices) { ;
  52518. __p += '\n ';
  52519. o.view.devicelist.devices.each(function (device) { ;
  52520. __p += '\n ';
  52521. if (device.get('bundle') && device.get('bundle').fingerprint) { ;
  52522. __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 ';
  52523. if (device.get('trusted') !== -1) { ;
  52524. __p += ' btn-primary active ';
  52525. } else { ;
  52526. __p += ' btn-secondary ';
  52527. } ;
  52528. __p += '">\n <input type="radio" name="' +
  52529. __e(device.get('id')) +
  52530. '" value="1"\n ';
  52531. if (device.get('trusted') !== -1) { ;
  52532. __p += ' checked="checked" ';
  52533. } ;
  52534. __p += '>' +
  52535. __e(o.__('Trusted')) +
  52536. '\n </label>\n <label class="btn btn--small ';
  52537. if (device.get('trusted') === -1) { ;
  52538. __p += ' btn-primary active ';
  52539. } else { ;
  52540. __p += ' btn-secondary ';
  52541. } ;
  52542. __p += '">\n <input type="radio" name="' +
  52543. __e(device.get('id')) +
  52544. '" value="-1"\n ';
  52545. if (device.get('trusted') === -1) { ;
  52546. __p += ' checked="checked" ';
  52547. } ;
  52548. __p += '>' +
  52549. __e(o.__('Untrusted')) +
  52550. '\n </label>\n </div>\n <span class="fingerprint">' +
  52551. __e(o.utils.formatFingerprint(device.get('bundle').fingerprint)) +
  52552. '</span>\n </form>\n </li>\n ';
  52553. } ;
  52554. __p += '\n ';
  52555. }); ;
  52556. __p += '\n ';
  52557. } ;
  52558. __p += '\n </ul>\n ';
  52559. } ;
  52560. __p += '\n </div>\n <div class="modal-footer">\n ';
  52561. if (o.allow_contact_removal && o.is_roster_contact) { ;
  52562. __p += '\n <button type="button" class="btn btn-danger remove-contact"><i class="far fa-trash-alt"> </i>' +
  52563. __e(o.__('Remove as contact')) +
  52564. '</button>\n ';
  52565. } ;
  52566. __p += '\n <button type="button" class="btn btn-info refresh-contact"><i class="fa fa-refresh"> </i>' +
  52567. __e(o.__('Refresh')) +
  52568. '</button>\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  52569. __e(o.__('Close')) +
  52570. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  52571. return __p
  52572. };
  52573. /***/ }),
  52574. /***/ "./src/templates/vcard.html":
  52575. /*!**********************************!*\
  52576. !*** ./src/templates/vcard.html ***!
  52577. \**********************************/
  52578. /*! no static exports found */
  52579. /***/ (function(module, exports, __webpack_require__) {
  52580. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52581. module.exports = function(o) {
  52582. var __t, __p = '', __e = _.escape;
  52583. __p += '<!-- src/templates/vcard.html -->\n<vCard xmlns="vcard-temp">\n <FN>' +
  52584. __e(o.fn) +
  52585. '</FN>\n <NICKNAME>' +
  52586. __e(o.nickname) +
  52587. '</NICKNAME>\n <URL>' +
  52588. __e(o.url) +
  52589. '</URL>\n <ROLE>' +
  52590. __e(o.role) +
  52591. '</ROLE>\n <EMAIL><INTERNET/><PREF/><USERID>' +
  52592. __e(o.email) +
  52593. '</USERID></EMAIL>\n <PHOTO>\n <TYPE>' +
  52594. __e(o.image_type) +
  52595. '</TYPE>\n <BINVAL>' +
  52596. __e(o.image) +
  52597. '</BINVAL>\n </PHOTO>\n</vCard>\n';
  52598. return __p
  52599. };
  52600. /***/ }),
  52601. /***/ "./src/templates/video.html":
  52602. /*!**********************************!*\
  52603. !*** ./src/templates/video.html ***!
  52604. \**********************************/
  52605. /*! no static exports found */
  52606. /***/ (function(module, exports, __webpack_require__) {
  52607. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  52608. module.exports = function(o) {
  52609. var __t, __p = '', __e = _.escape;
  52610. __p += '<!-- src/templates/video.html -->\n<video controls src="' +
  52611. __e(o.url) +
  52612. '" style="max-height: 50vh"></video>\n<a target="_blank" rel="noopener" href="' +
  52613. __e(o.url) +
  52614. '">' +
  52615. __e(o.label_download) +
  52616. '</a>\n';
  52617. return __p
  52618. };
  52619. /***/ }),
  52620. /***/ "./src/underscore-shim.js":
  52621. /*!********************************!*\
  52622. !*** ./src/underscore-shim.js ***!
  52623. \********************************/
  52624. /*! no static exports found */
  52625. /***/ (function(module, exports, __webpack_require__) {
  52626. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*global define */
  52627. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash */ "lodash")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (_) {
  52628. return _.noConflict();
  52629. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  52630. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  52631. /***/ }),
  52632. /***/ "./src/utils/core.js":
  52633. /*!***************************!*\
  52634. !*** ./src/utils/core.js ***!
  52635. \***************************/
  52636. /*! no static exports found */
  52637. /***/ (function(module, exports, __webpack_require__) {
  52638. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  52639. // http://conversejs.org
  52640. //
  52641. // This is the utilities module.
  52642. //
  52643. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  52644. // Licensed under the Mozilla Public License (MPLv2)
  52645. //
  52646. /*global define, escape, window, Uint8Array */
  52647. (function (root, factory) {
  52648. if (true) {
  52649. !(__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.js */ "./node_modules/strophe.js/dist/strophe.js"), __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),
  52650. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  52651. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  52652. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  52653. } else {}
  52654. })(this, function (sizzle, Promise, FastTextEncoding, _, Backbone, Strophe, URI, tpl_audio, tpl_file, tpl_image, tpl_video) {
  52655. "use strict";
  52656. Strophe = Strophe.Strophe;
  52657. const URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b\/?/g;
  52658. const logger = _.assign({
  52659. 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  52660. 'error': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  52661. 'info': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  52662. 'warn': _.get(console, 'log') ? console.log.bind(console) : _.noop
  52663. }, console);
  52664. const isImage = function isImage(url) {
  52665. return new Promise((resolve, reject) => {
  52666. var img = new Image();
  52667. var timer = window.setTimeout(function () {
  52668. reject(new Error("Could not determine whether it's an image"));
  52669. img = null;
  52670. }, 3000);
  52671. img.onerror = img.onabort = function () {
  52672. clearTimeout(timer);
  52673. reject(new Error("Could not determine whether it's an image"));
  52674. };
  52675. img.onload = function () {
  52676. clearTimeout(timer);
  52677. resolve(img);
  52678. };
  52679. img.src = url;
  52680. });
  52681. };
  52682. function slideOutWrapup(el) {
  52683. /* Wrapup function for slideOut. */
  52684. el.removeAttribute('data-slider-marker');
  52685. el.classList.remove('collapsed');
  52686. el.style.overflow = "";
  52687. el.style.height = "";
  52688. }
  52689. var u = {};
  52690. u.getLongestSubstring = function (string, candidates) {
  52691. function reducer(accumulator, current_value) {
  52692. if (string.startsWith(current_value)) {
  52693. if (current_value.length > accumulator.length) {
  52694. return current_value;
  52695. } else {
  52696. return accumulator;
  52697. }
  52698. } else {
  52699. return accumulator;
  52700. }
  52701. }
  52702. return candidates.reduce(reducer, '');
  52703. };
  52704. u.getNextElement = function (el, selector = '*') {
  52705. let next_el = el.nextElementSibling;
  52706. while (!_.isNull(next_el) && !sizzle.matchesSelector(next_el, selector)) {
  52707. next_el = next_el.nextElementSibling;
  52708. }
  52709. return next_el;
  52710. };
  52711. u.getPreviousElement = function (el, selector = '*') {
  52712. let prev_el = el.previousSibling;
  52713. while (!_.isNull(prev_el) && !sizzle.matchesSelector(prev_el, selector)) {
  52714. prev_el = prev_el.previousSibling;
  52715. }
  52716. return prev_el;
  52717. };
  52718. u.getFirstChildElement = function (el, selector = '*') {
  52719. let first_el = el.firstElementChild;
  52720. while (!_.isNull(first_el) && !sizzle.matchesSelector(first_el, selector)) {
  52721. first_el = first_el.nextSibling;
  52722. }
  52723. return first_el;
  52724. };
  52725. u.getLastChildElement = function (el, selector = '*') {
  52726. let last_el = el.lastElementChild;
  52727. while (!_.isNull(last_el) && !sizzle.matchesSelector(last_el, selector)) {
  52728. last_el = last_el.previousSibling;
  52729. }
  52730. return last_el;
  52731. };
  52732. u.calculateElementHeight = function (el) {
  52733. /* Return the height of the passed in DOM element,
  52734. * based on the heights of its children.
  52735. */
  52736. return _.reduce(el.children, (result, child) => result + child.offsetHeight, 0);
  52737. };
  52738. u.addClass = function (className, el) {
  52739. if (el instanceof Element) {
  52740. el.classList.add(className);
  52741. }
  52742. };
  52743. u.removeClass = function (className, el) {
  52744. if (el instanceof Element) {
  52745. el.classList.remove(className);
  52746. }
  52747. return el;
  52748. };
  52749. u.removeElement = function (el) {
  52750. if (!_.isNil(el) && !_.isNil(el.parentNode)) {
  52751. el.parentNode.removeChild(el);
  52752. }
  52753. };
  52754. u.showElement = _.flow(_.partial(u.removeClass, 'collapsed'), _.partial(u.removeClass, 'hidden'));
  52755. u.hideElement = function (el) {
  52756. if (!_.isNil(el)) {
  52757. el.classList.add('hidden');
  52758. }
  52759. return el;
  52760. };
  52761. u.ancestor = function (el, selector) {
  52762. let parent = el;
  52763. while (!_.isNil(parent) && !sizzle.matchesSelector(parent, selector)) {
  52764. parent = parent.parentElement;
  52765. }
  52766. return parent;
  52767. };
  52768. u.nextUntil = function (el, selector, include_self = false) {
  52769. /* Return the element's siblings until one matches the selector. */
  52770. const matches = [];
  52771. let sibling_el = el.nextElementSibling;
  52772. while (!_.isNil(sibling_el) && !sibling_el.matches(selector)) {
  52773. matches.push(sibling_el);
  52774. sibling_el = sibling_el.nextElementSibling;
  52775. }
  52776. return matches;
  52777. };
  52778. u.unescapeHTML = function (string) {
  52779. /* Helper method that replace HTML-escaped symbols with equivalent characters
  52780. * (e.g. transform occurrences of '&amp;' to '&')
  52781. *
  52782. * Parameters:
  52783. * (String) string: a String containing the HTML-escaped symbols.
  52784. */
  52785. var div = document.createElement('div');
  52786. div.innerHTML = string;
  52787. return div.innerText;
  52788. };
  52789. u.escapeHTML = function (string) {
  52790. return string.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
  52791. };
  52792. u.prefixMentions = function (message) {
  52793. /* Given a message object, return its text with @ chars
  52794. * inserted before the mentioned nicknames.
  52795. */
  52796. let text = message.get('message');
  52797. (message.get('references') || []).sort((a, b) => b.begin - a.begin).forEach(ref => {
  52798. text = `${text.slice(0, ref.begin)}@${text.slice(ref.begin)}`;
  52799. });
  52800. return text;
  52801. };
  52802. u.addMentionsMarkup = function (text, references, chatbox) {
  52803. if (chatbox.get('message_type') !== 'groupchat') {
  52804. return text;
  52805. }
  52806. const nick = chatbox.get('nick');
  52807. references.sort((a, b) => b.begin - a.begin).forEach(ref => {
  52808. const mention = text.slice(ref.begin, ref.end);
  52809. chatbox;
  52810. if (mention === nick) {
  52811. text = text.slice(0, ref.begin) + `<span class="mention mention--self badge badge-info">${mention}</span>` + text.slice(ref.end);
  52812. } else {
  52813. text = text.slice(0, ref.begin) + `<span class="mention">${mention}</span>` + text.slice(ref.end);
  52814. }
  52815. });
  52816. return text;
  52817. };
  52818. u.addHyperlinks = function (text) {
  52819. return URI.withinString(text, url => {
  52820. const uri = new URI(url);
  52821. url = uri.normalize()._string;
  52822. const pretty_url = uri._parts.urn ? url : uri.readable();
  52823. if (!uri._parts.protocol && !url.startsWith('http://') && !url.startsWith('https://')) {
  52824. url = 'http://' + url;
  52825. }
  52826. if (uri._parts.protocol === 'xmpp' && uri._parts.query === 'join') {
  52827. return `<a target="_blank" rel="noopener" class="open-chatroom" href="${url}">${u.escapeHTML(pretty_url)}</a>`;
  52828. }
  52829. return `<a target="_blank" rel="noopener" href="${url}">${u.escapeHTML(pretty_url)}</a>`;
  52830. }, {
  52831. 'start': /\b(?:([a-z][a-z0-9.+-]*:\/\/)|xmpp:|mailto:|www\.)/gi
  52832. });
  52833. };
  52834. u.renderNewLines = function (text) {
  52835. return text.replace(/\n\n+/g, '<br/><br/>').replace(/\n/g, '<br/>');
  52836. };
  52837. u.renderImageURLs = function (_converse, el) {
  52838. /* Returns a Promise which resolves once all images have been loaded.
  52839. */
  52840. if (!_converse.show_images_inline) {
  52841. return Promise.resolve();
  52842. }
  52843. const __ = _converse.__;
  52844. const list = el.textContent.match(URL_REGEX) || [];
  52845. return Promise.all(_.map(list, url => new Promise((resolve, reject) => {
  52846. if (u.isImageURL(url)) {
  52847. return isImage(url).then(img => {
  52848. const i = new Image();
  52849. i.src = img.src;
  52850. i.addEventListener('load', resolve); // We also resolve for non-images, otherwise the
  52851. // Promise.all resolves prematurely.
  52852. i.addEventListener('error', resolve);
  52853. const __ = _converse.__;
  52854. _.each(sizzle(`a[href="${url}"]`, el), a => {
  52855. a.outerHTML = tpl_image({
  52856. 'url': url,
  52857. 'label_download': __('Download')
  52858. });
  52859. });
  52860. }).catch(resolve);
  52861. } else {
  52862. return resolve();
  52863. }
  52864. })));
  52865. };
  52866. u.renderFileURL = function (_converse, url) {
  52867. const uri = new URI(url);
  52868. if (u.isImageURL(uri) || u.isVideoURL(uri) || u.isAudioURL(uri)) {
  52869. return url;
  52870. }
  52871. const __ = _converse.__,
  52872. filename = uri.filename();
  52873. return tpl_file({
  52874. 'url': url,
  52875. 'label_download': __('Download file "%1$s"', decodeURI(filename))
  52876. });
  52877. };
  52878. u.isAudioURL = function (url) {
  52879. if (!(url instanceof URI)) {
  52880. url = new URI(url);
  52881. }
  52882. const filename = url.filename().toLowerCase();
  52883. if (!_.includes(["https", "http"], url.protocol().toLowerCase())) {
  52884. return false;
  52885. }
  52886. return filename.endsWith('.ogg') || filename.endsWith('.mp3') || filename.endsWith('.m4a');
  52887. };
  52888. u.isVideoURL = function (url) {
  52889. if (!(url instanceof URI)) {
  52890. url = new URI(url);
  52891. }
  52892. const filename = url.filename().toLowerCase();
  52893. if (!_.includes(["https", "http"], url.protocol().toLowerCase())) {
  52894. return false;
  52895. }
  52896. return filename.endsWith('.mp4') || filename.endsWith('.webm');
  52897. };
  52898. u.isImageURL = function (url) {
  52899. if (!(url instanceof URI)) {
  52900. url = new URI(url);
  52901. }
  52902. const filename = url.filename().toLowerCase();
  52903. if (!_.includes(["https", "http"], url.protocol().toLowerCase())) {
  52904. return false;
  52905. }
  52906. return filename.endsWith('.jpg') || filename.endsWith('.jpeg') || filename.endsWith('.png') || filename.endsWith('.gif') || filename.endsWith('.bmp') || filename.endsWith('.tiff') || filename.endsWith('.svg');
  52907. };
  52908. u.renderImageURL = function (_converse, url) {
  52909. if (!_converse.show_images_inline) {
  52910. return u.addHyperlinks(url);
  52911. }
  52912. const uri = new URI(url);
  52913. if (u.isImageURL(uri)) {
  52914. const __ = _converse.__;
  52915. return tpl_image({
  52916. 'url': url,
  52917. 'label_download': __('Download image "%1$s"', decodeURI(uri.filename()))
  52918. });
  52919. }
  52920. return url;
  52921. };
  52922. u.renderMovieURL = function (_converse, url) {
  52923. const uri = new URI(url);
  52924. if (u.isVideoURL(uri)) {
  52925. const __ = _converse.__;
  52926. return tpl_video({
  52927. 'url': url,
  52928. 'label_download': __('Download video file "%1$s"', decodeURI(uri.filename()))
  52929. });
  52930. }
  52931. return url;
  52932. };
  52933. u.renderAudioURL = function (_converse, url) {
  52934. const uri = new URI(url);
  52935. if (u.isAudioURL(uri)) {
  52936. const __ = _converse.__;
  52937. return tpl_audio({
  52938. 'url': url,
  52939. 'label_download': __('Download audio file "%1$s"', decodeURI(uri.filename()))
  52940. });
  52941. }
  52942. return url;
  52943. };
  52944. u.slideInAllElements = function (elements, duration = 300) {
  52945. return Promise.all(_.map(elements, _.partial(u.slideIn, _, duration)));
  52946. };
  52947. u.slideToggleElement = function (el, duration) {
  52948. if (_.includes(el.classList, 'collapsed') || _.includes(el.classList, 'hidden')) {
  52949. return u.slideOut(el, duration);
  52950. } else {
  52951. return u.slideIn(el, duration);
  52952. }
  52953. };
  52954. u.hasClass = function (className, el) {
  52955. return _.includes(el.classList, className);
  52956. };
  52957. u.slideOut = function (el, duration = 200) {
  52958. /* Shows/expands an element by sliding it out of itself
  52959. *
  52960. * Parameters:
  52961. * (HTMLElement) el - The HTML string
  52962. * (Number) duration - The duration amount in milliseconds
  52963. */
  52964. return new Promise((resolve, reject) => {
  52965. if (_.isNil(el)) {
  52966. const err = "Undefined or null element passed into slideOut";
  52967. logger.warn(err);
  52968. reject(new Error(err));
  52969. return;
  52970. }
  52971. const marker = el.getAttribute('data-slider-marker');
  52972. if (marker) {
  52973. el.removeAttribute('data-slider-marker');
  52974. window.cancelAnimationFrame(marker);
  52975. }
  52976. const end_height = u.calculateElementHeight(el);
  52977. if (window.converse_disable_effects) {
  52978. // Effects are disabled (for tests)
  52979. el.style.height = end_height + 'px';
  52980. slideOutWrapup(el);
  52981. resolve();
  52982. return;
  52983. }
  52984. if (!u.hasClass('collapsed', el) && !u.hasClass('hidden', el)) {
  52985. resolve();
  52986. return;
  52987. }
  52988. const steps = duration / 17; // We assume 17ms per animation which is ~60FPS
  52989. let height = 0;
  52990. function draw() {
  52991. height += end_height / steps;
  52992. if (height < end_height) {
  52993. el.style.height = height + 'px';
  52994. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  52995. } else {
  52996. // We recalculate the height to work around an apparent
  52997. // browser bug where browsers don't know the correct
  52998. // offsetHeight beforehand.
  52999. el.removeAttribute('data-slider-marker');
  53000. el.style.height = u.calculateElementHeight(el) + 'px';
  53001. el.style.overflow = "";
  53002. el.style.height = "";
  53003. resolve();
  53004. }
  53005. }
  53006. el.style.height = '0';
  53007. el.style.overflow = 'hidden';
  53008. el.classList.remove('hidden');
  53009. el.classList.remove('collapsed');
  53010. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  53011. });
  53012. };
  53013. u.slideIn = function (el, duration = 200) {
  53014. /* Hides/collapses an element by sliding it into itself. */
  53015. return new Promise((resolve, reject) => {
  53016. if (_.isNil(el)) {
  53017. const err = "Undefined or null element passed into slideIn";
  53018. logger.warn(err);
  53019. return reject(new Error(err));
  53020. } else if (_.includes(el.classList, 'collapsed')) {
  53021. return resolve(el);
  53022. } else if (window.converse_disable_effects) {
  53023. // Effects are disabled (for tests)
  53024. el.classList.add('collapsed');
  53025. el.style.height = "";
  53026. return resolve(el);
  53027. }
  53028. const marker = el.getAttribute('data-slider-marker');
  53029. if (marker) {
  53030. el.removeAttribute('data-slider-marker');
  53031. window.cancelAnimationFrame(marker);
  53032. }
  53033. const original_height = el.offsetHeight,
  53034. steps = duration / 17; // We assume 17ms per animation which is ~60FPS
  53035. let height = original_height;
  53036. el.style.overflow = 'hidden';
  53037. function draw() {
  53038. height -= original_height / steps;
  53039. if (height > 0) {
  53040. el.style.height = height + 'px';
  53041. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  53042. } else {
  53043. el.removeAttribute('data-slider-marker');
  53044. el.classList.add('collapsed');
  53045. el.style.height = "";
  53046. resolve(el);
  53047. }
  53048. }
  53049. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  53050. });
  53051. };
  53052. function afterAnimationEnds(el, callback) {
  53053. el.classList.remove('visible');
  53054. if (_.isFunction(callback)) {
  53055. callback();
  53056. }
  53057. }
  53058. u.fadeIn = function (el, callback) {
  53059. if (_.isNil(el)) {
  53060. logger.warn("Undefined or null element passed into fadeIn");
  53061. }
  53062. if (window.converse_disable_effects) {
  53063. el.classList.remove('hidden');
  53064. return afterAnimationEnds(el, callback);
  53065. }
  53066. if (_.includes(el.classList, 'hidden')) {
  53067. el.classList.add('visible');
  53068. el.classList.remove('hidden');
  53069. el.addEventListener("webkitAnimationEnd", _.partial(afterAnimationEnds, el, callback));
  53070. el.addEventListener("animationend", _.partial(afterAnimationEnds, el, callback));
  53071. el.addEventListener("oanimationend", _.partial(afterAnimationEnds, el, callback));
  53072. } else {
  53073. afterAnimationEnds(el, callback);
  53074. }
  53075. };
  53076. u.isValidJID = function (jid) {
  53077. return _.compact(jid.split('@')).length === 2 && !jid.startsWith('@') && !jid.endsWith('@');
  53078. };
  53079. u.isValidMUCJID = function (jid) {
  53080. return !jid.startsWith('@') && !jid.endsWith('@');
  53081. };
  53082. u.isSameBareJID = function (jid1, jid2) {
  53083. return Strophe.getBareJidFromJid(jid1).toLowerCase() === Strophe.getBareJidFromJid(jid2).toLowerCase();
  53084. };
  53085. u.getMostRecentMessage = function (model) {
  53086. const messages = model.messages.filter('message');
  53087. return messages[messages.length - 1];
  53088. };
  53089. u.isNewMessage = function (message) {
  53090. /* Given a stanza, determine whether it's a new
  53091. * message, i.e. not a MAM archived one.
  53092. */
  53093. if (message instanceof Element) {
  53094. return !(sizzle(`result[xmlns="${Strophe.NS.MAM}"]`, message).length && sizzle(`delay[xmlns="${Strophe.NS.DELAY}"]`, message).length);
  53095. } else {
  53096. return !(message.get('is_delayed') && message.get('is_archived'));
  53097. }
  53098. };
  53099. u.isOnlyChatStateNotification = function (attrs) {
  53100. if (attrs instanceof Backbone.Model) {
  53101. attrs = attrs.attributes;
  53102. }
  53103. return attrs['chat_state'] && !attrs['oob_url'] && !attrs['file'] && !(attrs['is_encrypted'] && attrs['plaintext']) && !attrs['message'];
  53104. };
  53105. u.isHeadlineMessage = function (_converse, message) {
  53106. var from_jid = message.getAttribute('from');
  53107. if (message.getAttribute('type') === 'headline') {
  53108. return true;
  53109. }
  53110. const chatbox = _converse.chatboxes.get(Strophe.getBareJidFromJid(from_jid));
  53111. if (chatbox && chatbox.get('type') === 'chatroom') {
  53112. return false;
  53113. }
  53114. if (message.getAttribute('type') !== 'error' && !_.isNil(from_jid) && !_.includes(from_jid, '@')) {
  53115. // Some servers (I'm looking at you Prosody) don't set the message
  53116. // type to "headline" when sending server messages. For now we
  53117. // check if an @ signal is included, and if not, we assume it's
  53118. // a headline message.
  53119. return true;
  53120. }
  53121. return false;
  53122. };
  53123. u.merge = function merge(first, second) {
  53124. /* Merge the second object into the first one.
  53125. */
  53126. for (var k in second) {
  53127. if (_.isObject(first[k])) {
  53128. merge(first[k], second[k]);
  53129. } else {
  53130. first[k] = second[k];
  53131. }
  53132. }
  53133. };
  53134. u.applyUserSettings = function applyUserSettings(context, settings, user_settings) {
  53135. /* Configuration settings might be nested objects. We only want to
  53136. * add settings which are whitelisted.
  53137. */
  53138. for (var k in settings) {
  53139. if (_.isUndefined(user_settings[k])) {
  53140. continue;
  53141. }
  53142. if (_.isObject(settings[k]) && !_.isArray(settings[k])) {
  53143. applyUserSettings(context[k], settings[k], user_settings[k]);
  53144. } else {
  53145. context[k] = user_settings[k];
  53146. }
  53147. }
  53148. };
  53149. u.stringToNode = function (s) {
  53150. /* Converts an HTML string into a DOM Node.
  53151. * Expects that the HTML string has only one top-level element,
  53152. * i.e. not multiple ones.
  53153. *
  53154. * Parameters:
  53155. * (String) s - The HTML string
  53156. */
  53157. var div = document.createElement('div');
  53158. div.innerHTML = s;
  53159. return div.firstElementChild;
  53160. };
  53161. u.getOuterWidth = function (el, include_margin = false) {
  53162. var width = el.offsetWidth;
  53163. if (!include_margin) {
  53164. return width;
  53165. }
  53166. var style = window.getComputedStyle(el);
  53167. width += parseInt(style.marginLeft, 10) + parseInt(style.marginRight, 10);
  53168. return width;
  53169. };
  53170. u.stringToElement = function (s) {
  53171. /* Converts an HTML string into a DOM element.
  53172. * Expects that the HTML string has only one top-level element,
  53173. * i.e. not multiple ones.
  53174. *
  53175. * Parameters:
  53176. * (String) s - The HTML string
  53177. */
  53178. var div = document.createElement('div');
  53179. div.innerHTML = s;
  53180. return div.firstElementChild;
  53181. };
  53182. u.matchesSelector = function (el, selector) {
  53183. /* Checks whether the DOM element matches the given selector.
  53184. *
  53185. * Parameters:
  53186. * (DOMElement) el - The DOM element
  53187. * (String) selector - The selector
  53188. */
  53189. return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector);
  53190. };
  53191. u.queryChildren = function (el, selector) {
  53192. /* Returns a list of children of the DOM element that match the
  53193. * selector.
  53194. *
  53195. * Parameters:
  53196. * (DOMElement) el - the DOM element
  53197. * (String) selector - the selector they should be matched
  53198. * against.
  53199. */
  53200. return _.filter(el.childNodes, _.partial(u.matchesSelector, _, selector));
  53201. };
  53202. u.contains = function (attr, query) {
  53203. return function (item) {
  53204. if (typeof attr === 'object') {
  53205. var value = false;
  53206. _.forEach(attr, function (a) {
  53207. value = value || _.includes(item.get(a).toLowerCase(), query.toLowerCase());
  53208. });
  53209. return value;
  53210. } else if (typeof attr === 'string') {
  53211. return _.includes(item.get(attr).toLowerCase(), query.toLowerCase());
  53212. } else {
  53213. throw new TypeError('contains: wrong attribute type. Must be string or array.');
  53214. }
  53215. };
  53216. };
  53217. u.isOfType = function (type, item) {
  53218. return item.get('type') == type;
  53219. };
  53220. u.isInstance = function (type, item) {
  53221. return item instanceof type;
  53222. };
  53223. u.getAttribute = function (key, item) {
  53224. return item.get(key);
  53225. };
  53226. u.contains.not = function (attr, query) {
  53227. return function (item) {
  53228. return !u.contains(attr, query)(item);
  53229. };
  53230. };
  53231. u.rootContains = function (root, el) {
  53232. // The document element does not have the contains method in IE.
  53233. if (root === document && !root.contains) {
  53234. return document.head.contains(el) || document.body.contains(el);
  53235. }
  53236. return root.contains ? root.contains(el) : window.HTMLElement.prototype.contains.call(root, el);
  53237. };
  53238. u.createFragmentFromText = function (markup) {
  53239. /* Returns a DocumentFragment containing DOM nodes based on the
  53240. * passed-in markup text.
  53241. */
  53242. // http://stackoverflow.com/questions/9334645/create-node-from-markup-string
  53243. var frag = document.createDocumentFragment(),
  53244. tmp = document.createElement('body'),
  53245. child;
  53246. tmp.innerHTML = markup; // Append elements in a loop to a DocumentFragment, so that the
  53247. // browser does not re-render the document for each node.
  53248. while (child = tmp.firstChild) {
  53249. // eslint-disable-line no-cond-assign
  53250. frag.appendChild(child);
  53251. }
  53252. return frag;
  53253. };
  53254. u.isPersistableModel = function (model) {
  53255. return model.collection && model.collection.browserStorage;
  53256. };
  53257. u.getResolveablePromise = function () {
  53258. /* Returns a promise object on which `resolve` or `reject` can be
  53259. * called.
  53260. */
  53261. const wrapper = {};
  53262. const promise = new Promise((resolve, reject) => {
  53263. wrapper.resolve = resolve;
  53264. wrapper.reject = reject;
  53265. });
  53266. _.assign(promise, wrapper);
  53267. return promise;
  53268. };
  53269. u.interpolate = function (string, o) {
  53270. return string.replace(/{{{([^{}]*)}}}/g, (a, b) => {
  53271. var r = o[b];
  53272. return typeof r === 'string' || typeof r === 'number' ? r : a;
  53273. });
  53274. };
  53275. u.onMultipleEvents = function (events = [], callback) {
  53276. /* Call the callback once all the events have been triggered
  53277. *
  53278. * Parameters:
  53279. * (Array) events: An array of objects, with keys `object` and
  53280. * `event`, representing the event name and the object it's
  53281. * triggered upon.
  53282. * (Function) callback: The function to call once all events have
  53283. * been triggered.
  53284. */
  53285. let triggered = [];
  53286. function handler(result) {
  53287. triggered.push(result);
  53288. if (events.length === triggered.length) {
  53289. callback(triggered);
  53290. triggered = [];
  53291. }
  53292. }
  53293. _.each(events, map => map.object.on(map.event, handler));
  53294. };
  53295. u.safeSave = function (model, attributes) {
  53296. if (u.isPersistableModel(model)) {
  53297. model.save(attributes);
  53298. } else {
  53299. model.set(attributes);
  53300. }
  53301. };
  53302. u.siblingIndex = function (el) {
  53303. /* eslint-disable no-cond-assign */
  53304. for (var i = 0; el = el.previousElementSibling; i++);
  53305. return i;
  53306. };
  53307. u.getCurrentWord = function (input) {
  53308. const cursor = input.selectionEnd || undefined;
  53309. return _.last(input.value.slice(0, cursor).split(' '));
  53310. };
  53311. u.replaceCurrentWord = function (input, new_value) {
  53312. const cursor = input.selectionEnd || undefined,
  53313. current_word = _.last(input.value.slice(0, cursor).split(' ')),
  53314. value = input.value;
  53315. input.value = value.slice(0, cursor - current_word.length) + `${new_value} ` + value.slice(cursor);
  53316. input.selectionEnd = cursor - current_word.length + new_value.length + 1;
  53317. };
  53318. u.isVisible = function (el) {
  53319. if (u.hasClass('hidden', el)) {
  53320. return false;
  53321. } // XXX: Taken from jQuery's "visible" implementation
  53322. return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;
  53323. };
  53324. u.triggerEvent = function (el, name, type = "Event", bubbles = true, cancelable = true) {
  53325. const evt = document.createEvent(type);
  53326. evt.initEvent(name, bubbles, cancelable);
  53327. el.dispatchEvent(evt);
  53328. };
  53329. u.geoUriToHttp = function (text, geouri_replacement) {
  53330. const regex = /geo:([\-0-9.]+),([\-0-9.]+)(?:,([\-0-9.]+))?(?:\?(.*))?/g;
  53331. return text.replace(regex, geouri_replacement);
  53332. };
  53333. u.httpToGeoUri = function (text, _converse) {
  53334. const replacement = 'geo:$1,$2';
  53335. return text.replace(_converse.geouri_regex, replacement);
  53336. };
  53337. u.getSelectValues = function (select) {
  53338. const result = [];
  53339. const options = select && select.options;
  53340. for (var i = 0, iLen = options.length; i < iLen; i++) {
  53341. const opt = options[i];
  53342. if (opt.selected) {
  53343. result.push(opt.value || opt.text);
  53344. }
  53345. }
  53346. return result;
  53347. };
  53348. u.formatFingerprint = function (fp) {
  53349. fp = fp.replace(/^05/, '');
  53350. const arr = [];
  53351. for (let i = 1; i < 8; i++) {
  53352. const idx = i * 8 + i - 1;
  53353. fp = fp.slice(0, idx) + ' ' + fp.slice(idx);
  53354. }
  53355. return fp;
  53356. };
  53357. u.appendArrayBuffer = function (buffer1, buffer2) {
  53358. const tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);
  53359. tmp.set(new Uint8Array(buffer1), 0);
  53360. tmp.set(new Uint8Array(buffer2), buffer1.byteLength);
  53361. return tmp.buffer;
  53362. };
  53363. u.arrayBufferToHex = function (ab) {
  53364. // https://stackoverflow.com/questions/40031688/javascript-arraybuffer-to-hex#40031979
  53365. return Array.prototype.map.call(new Uint8Array(ab), x => ('00' + x.toString(16)).slice(-2)).join('');
  53366. };
  53367. u.arrayBufferToString = function (ab) {
  53368. return new TextDecoder("utf-8").decode(ab);
  53369. };
  53370. u.stringToArrayBuffer = function (string) {
  53371. const bytes = new TextEncoder("utf-8").encode(string);
  53372. return bytes.buffer;
  53373. };
  53374. u.arrayBufferToBase64 = function (ab) {
  53375. return btoa(new Uint8Array(ab).reduce((data, byte) => data + String.fromCharCode(byte), ''));
  53376. };
  53377. u.base64ToArrayBuffer = function (b64) {
  53378. const binary_string = window.atob(b64),
  53379. len = binary_string.length,
  53380. bytes = new Uint8Array(len);
  53381. for (let i = 0; i < len; i++) {
  53382. bytes[i] = binary_string.charCodeAt(i);
  53383. }
  53384. return bytes.buffer;
  53385. };
  53386. u.getRandomInt = function (max) {
  53387. return Math.floor(Math.random() * Math.floor(max));
  53388. };
  53389. u.putCurserAtEnd = function (textarea) {
  53390. if (textarea !== document.activeElement) {
  53391. textarea.focus();
  53392. } // Double the length because Opera is inconsistent about whether a carriage return is one character or two.
  53393. const len = textarea.value.length * 2; // Timeout seems to be required for Blink
  53394. setTimeout(() => textarea.setSelectionRange(len, len), 1); // Scroll to the bottom, in case we're in a tall textarea
  53395. // (Necessary for Firefox and Chrome)
  53396. this.scrollTop = 999999;
  53397. };
  53398. u.getUniqueId = function () {
  53399. return 'xxxxxxxx-xxxx'.replace(/[x]/g, function (c) {
  53400. var r = Math.random() * 16 | 0,
  53401. v = c === 'x' ? r : r & 0x3 | 0x8;
  53402. return v.toString(16);
  53403. });
  53404. };
  53405. return u;
  53406. });
  53407. /***/ }),
  53408. /***/ "./src/utils/emoji.js":
  53409. /*!****************************!*\
  53410. !*** ./src/utils/emoji.js ***!
  53411. \****************************/
  53412. /*! no static exports found */
  53413. /***/ (function(module, exports, __webpack_require__) {
  53414. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {
  53415. !(__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),
  53416. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  53417. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  53418. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  53419. })(this, function (_, u, twemoji) {
  53420. "use strict";
  53421. const emoji_list = {
  53422. ":kiss_mm:": {
  53423. "uc_base": "1f468-2764-1f48b-1f468",
  53424. "uc_output": "1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",
  53425. "uc_match": "1f468-2764-fe0f-1f48b-1f468",
  53426. "uc_greedy": "1f468-2764-1f48b-1f468",
  53427. "shortnames": [":couplekiss_mm:"],
  53428. "category": "people"
  53429. },
  53430. ":kiss_woman_man:": {
  53431. "uc_base": "1f469-2764-1f48b-1f468",
  53432. "uc_output": "1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",
  53433. "uc_match": "1f469-2764-fe0f-1f48b-1f468",
  53434. "uc_greedy": "1f469-2764-1f48b-1f468",
  53435. "shortnames": [],
  53436. "category": "people"
  53437. },
  53438. ":kiss_ww:": {
  53439. "uc_base": "1f469-2764-1f48b-1f469",
  53440. "uc_output": "1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",
  53441. "uc_match": "1f469-2764-fe0f-1f48b-1f469",
  53442. "uc_greedy": "1f469-2764-1f48b-1f469",
  53443. "shortnames": [":couplekiss_ww:"],
  53444. "category": "people"
  53445. },
  53446. ":england:": {
  53447. "uc_base": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  53448. "uc_output": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  53449. "uc_match": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  53450. "uc_greedy": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  53451. "shortnames": [],
  53452. "category": "flags"
  53453. },
  53454. ":scotland:": {
  53455. "uc_base": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  53456. "uc_output": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  53457. "uc_match": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  53458. "uc_greedy": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  53459. "shortnames": [],
  53460. "category": "flags"
  53461. },
  53462. ":wales:": {
  53463. "uc_base": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  53464. "uc_output": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  53465. "uc_match": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  53466. "uc_greedy": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  53467. "shortnames": [],
  53468. "category": "flags"
  53469. },
  53470. ":family_mmbb:": {
  53471. "uc_base": "1f468-1f468-1f466-1f466",
  53472. "uc_output": "1f468-200d-1f468-200d-1f466-200d-1f466",
  53473. "uc_match": "1f468-1f468-1f466-1f466",
  53474. "uc_greedy": "1f468-1f468-1f466-1f466",
  53475. "shortnames": [],
  53476. "category": "people"
  53477. },
  53478. ":family_mmgb:": {
  53479. "uc_base": "1f468-1f468-1f467-1f466",
  53480. "uc_output": "1f468-200d-1f468-200d-1f467-200d-1f466",
  53481. "uc_match": "1f468-1f468-1f467-1f466",
  53482. "uc_greedy": "1f468-1f468-1f467-1f466",
  53483. "shortnames": [],
  53484. "category": "people"
  53485. },
  53486. ":family_mmgg:": {
  53487. "uc_base": "1f468-1f468-1f467-1f467",
  53488. "uc_output": "1f468-200d-1f468-200d-1f467-200d-1f467",
  53489. "uc_match": "1f468-1f468-1f467-1f467",
  53490. "uc_greedy": "1f468-1f468-1f467-1f467",
  53491. "shortnames": [],
  53492. "category": "people"
  53493. },
  53494. ":family_mwbb:": {
  53495. "uc_base": "1f468-1f469-1f466-1f466",
  53496. "uc_output": "1f468-200d-1f469-200d-1f466-200d-1f466",
  53497. "uc_match": "1f468-1f469-1f466-1f466",
  53498. "uc_greedy": "1f468-1f469-1f466-1f466",
  53499. "shortnames": [],
  53500. "category": "people"
  53501. },
  53502. ":family_mwgb:": {
  53503. "uc_base": "1f468-1f469-1f467-1f466",
  53504. "uc_output": "1f468-200d-1f469-200d-1f467-200d-1f466",
  53505. "uc_match": "1f468-1f469-1f467-1f466",
  53506. "uc_greedy": "1f468-1f469-1f467-1f466",
  53507. "shortnames": [],
  53508. "category": "people"
  53509. },
  53510. ":family_mwgg:": {
  53511. "uc_base": "1f468-1f469-1f467-1f467",
  53512. "uc_output": "1f468-200d-1f469-200d-1f467-200d-1f467",
  53513. "uc_match": "1f468-1f469-1f467-1f467",
  53514. "uc_greedy": "1f468-1f469-1f467-1f467",
  53515. "shortnames": [],
  53516. "category": "people"
  53517. },
  53518. ":family_wwbb:": {
  53519. "uc_base": "1f469-1f469-1f466-1f466",
  53520. "uc_output": "1f469-200d-1f469-200d-1f466-200d-1f466",
  53521. "uc_match": "1f469-1f469-1f466-1f466",
  53522. "uc_greedy": "1f469-1f469-1f466-1f466",
  53523. "shortnames": [],
  53524. "category": "people"
  53525. },
  53526. ":family_wwgb:": {
  53527. "uc_base": "1f469-1f469-1f467-1f466",
  53528. "uc_output": "1f469-200d-1f469-200d-1f467-200d-1f466",
  53529. "uc_match": "1f469-1f469-1f467-1f466",
  53530. "uc_greedy": "1f469-1f469-1f467-1f466",
  53531. "shortnames": [],
  53532. "category": "people"
  53533. },
  53534. ":family_wwgg:": {
  53535. "uc_base": "1f469-1f469-1f467-1f467",
  53536. "uc_output": "1f469-200d-1f469-200d-1f467-200d-1f467",
  53537. "uc_match": "1f469-1f469-1f467-1f467",
  53538. "uc_greedy": "1f469-1f469-1f467-1f467",
  53539. "shortnames": [],
  53540. "category": "people"
  53541. },
  53542. ":couple_mm:": {
  53543. "uc_base": "1f468-2764-1f468",
  53544. "uc_output": "1f468-200d-2764-fe0f-200d-1f468",
  53545. "uc_match": "1f468-2764-fe0f-1f468",
  53546. "uc_greedy": "1f468-2764-1f468",
  53547. "shortnames": [":couple_with_heart_mm:"],
  53548. "category": "people"
  53549. },
  53550. ":couple_with_heart_woman_man:": {
  53551. "uc_base": "1f469-2764-1f468",
  53552. "uc_output": "1f469-200d-2764-fe0f-200d-1f468",
  53553. "uc_match": "1f469-2764-fe0f-1f468",
  53554. "uc_greedy": "1f469-2764-1f468",
  53555. "shortnames": [],
  53556. "category": "people"
  53557. },
  53558. ":couple_ww:": {
  53559. "uc_base": "1f469-2764-1f469",
  53560. "uc_output": "1f469-200d-2764-fe0f-200d-1f469",
  53561. "uc_match": "1f469-2764-fe0f-1f469",
  53562. "uc_greedy": "1f469-2764-1f469",
  53563. "shortnames": [":couple_with_heart_ww:"],
  53564. "category": "people"
  53565. },
  53566. ":family_man_boy_boy:": {
  53567. "uc_base": "1f468-1f466-1f466",
  53568. "uc_output": "1f468-200d-1f466-200d-1f466",
  53569. "uc_match": "1f468-1f466-1f466",
  53570. "uc_greedy": "1f468-1f466-1f466",
  53571. "shortnames": [],
  53572. "category": "people"
  53573. },
  53574. ":family_man_girl_boy:": {
  53575. "uc_base": "1f468-1f467-1f466",
  53576. "uc_output": "1f468-200d-1f467-200d-1f466",
  53577. "uc_match": "1f468-1f467-1f466",
  53578. "uc_greedy": "1f468-1f467-1f466",
  53579. "shortnames": [],
  53580. "category": "people"
  53581. },
  53582. ":family_man_girl_girl:": {
  53583. "uc_base": "1f468-1f467-1f467",
  53584. "uc_output": "1f468-200d-1f467-200d-1f467",
  53585. "uc_match": "1f468-1f467-1f467",
  53586. "uc_greedy": "1f468-1f467-1f467",
  53587. "shortnames": [],
  53588. "category": "people"
  53589. },
  53590. ":family_man_woman_boy:": {
  53591. "uc_base": "1f468-1f469-1f466",
  53592. "uc_output": "1f468-200d-1f469-200d-1f466",
  53593. "uc_match": "1f468-1f469-1f466",
  53594. "uc_greedy": "1f468-1f469-1f466",
  53595. "shortnames": [],
  53596. "category": "people"
  53597. },
  53598. ":family_mmb:": {
  53599. "uc_base": "1f468-1f468-1f466",
  53600. "uc_output": "1f468-200d-1f468-200d-1f466",
  53601. "uc_match": "1f468-1f468-1f466",
  53602. "uc_greedy": "1f468-1f468-1f466",
  53603. "shortnames": [],
  53604. "category": "people"
  53605. },
  53606. ":family_mmg:": {
  53607. "uc_base": "1f468-1f468-1f467",
  53608. "uc_output": "1f468-200d-1f468-200d-1f467",
  53609. "uc_match": "1f468-1f468-1f467",
  53610. "uc_greedy": "1f468-1f468-1f467",
  53611. "shortnames": [],
  53612. "category": "people"
  53613. },
  53614. ":family_mwg:": {
  53615. "uc_base": "1f468-1f469-1f467",
  53616. "uc_output": "1f468-200d-1f469-200d-1f467",
  53617. "uc_match": "1f468-1f469-1f467",
  53618. "uc_greedy": "1f468-1f469-1f467",
  53619. "shortnames": [],
  53620. "category": "people"
  53621. },
  53622. ":family_woman_boy_boy:": {
  53623. "uc_base": "1f469-1f466-1f466",
  53624. "uc_output": "1f469-200d-1f466-200d-1f466",
  53625. "uc_match": "1f469-1f466-1f466",
  53626. "uc_greedy": "1f469-1f466-1f466",
  53627. "shortnames": [],
  53628. "category": "people"
  53629. },
  53630. ":family_woman_girl_boy:": {
  53631. "uc_base": "1f469-1f467-1f466",
  53632. "uc_output": "1f469-200d-1f467-200d-1f466",
  53633. "uc_match": "1f469-1f467-1f466",
  53634. "uc_greedy": "1f469-1f467-1f466",
  53635. "shortnames": [],
  53636. "category": "people"
  53637. },
  53638. ":family_woman_girl_girl:": {
  53639. "uc_base": "1f469-1f467-1f467",
  53640. "uc_output": "1f469-200d-1f467-200d-1f467",
  53641. "uc_match": "1f469-1f467-1f467",
  53642. "uc_greedy": "1f469-1f467-1f467",
  53643. "shortnames": [],
  53644. "category": "people"
  53645. },
  53646. ":family_wwb:": {
  53647. "uc_base": "1f469-1f469-1f466",
  53648. "uc_output": "1f469-200d-1f469-200d-1f466",
  53649. "uc_match": "1f469-1f469-1f466",
  53650. "uc_greedy": "1f469-1f469-1f466",
  53651. "shortnames": [],
  53652. "category": "people"
  53653. },
  53654. ":family_wwg:": {
  53655. "uc_base": "1f469-1f469-1f467",
  53656. "uc_output": "1f469-200d-1f469-200d-1f467",
  53657. "uc_match": "1f469-1f469-1f467",
  53658. "uc_greedy": "1f469-1f469-1f467",
  53659. "shortnames": [],
  53660. "category": "people"
  53661. },
  53662. ":blond-haired_man_tone1:": {
  53663. "uc_base": "1f471-1f3fb-2642",
  53664. "uc_output": "1f471-1f3fb-200d-2642-fe0f",
  53665. "uc_match": "1f471-1f3fb-2642-fe0f",
  53666. "uc_greedy": "1f471-1f3fb-2642",
  53667. "shortnames": [":blond-haired_man_light_skin_tone:"],
  53668. "category": "people"
  53669. },
  53670. ":blond-haired_man_tone2:": {
  53671. "uc_base": "1f471-1f3fc-2642",
  53672. "uc_output": "1f471-1f3fc-200d-2642-fe0f",
  53673. "uc_match": "1f471-1f3fc-2642-fe0f",
  53674. "uc_greedy": "1f471-1f3fc-2642",
  53675. "shortnames": [":blond-haired_man_medium_light_skin_tone:"],
  53676. "category": "people"
  53677. },
  53678. ":blond-haired_man_tone3:": {
  53679. "uc_base": "1f471-1f3fd-2642",
  53680. "uc_output": "1f471-1f3fd-200d-2642-fe0f",
  53681. "uc_match": "1f471-1f3fd-2642-fe0f",
  53682. "uc_greedy": "1f471-1f3fd-2642",
  53683. "shortnames": [":blond-haired_man_medium_skin_tone:"],
  53684. "category": "people"
  53685. },
  53686. ":blond-haired_man_tone4:": {
  53687. "uc_base": "1f471-1f3fe-2642",
  53688. "uc_output": "1f471-1f3fe-200d-2642-fe0f",
  53689. "uc_match": "1f471-1f3fe-2642-fe0f",
  53690. "uc_greedy": "1f471-1f3fe-2642",
  53691. "shortnames": [":blond-haired_man_medium_dark_skin_tone:"],
  53692. "category": "people"
  53693. },
  53694. ":blond-haired_man_tone5:": {
  53695. "uc_base": "1f471-1f3ff-2642",
  53696. "uc_output": "1f471-1f3ff-200d-2642-fe0f",
  53697. "uc_match": "1f471-1f3ff-2642-fe0f",
  53698. "uc_greedy": "1f471-1f3ff-2642",
  53699. "shortnames": [":blond-haired_man_dark_skin_tone:"],
  53700. "category": "people"
  53701. },
  53702. ":blond-haired_woman_tone1:": {
  53703. "uc_base": "1f471-1f3fb-2640",
  53704. "uc_output": "1f471-1f3fb-200d-2640-fe0f",
  53705. "uc_match": "1f471-1f3fb-2640-fe0f",
  53706. "uc_greedy": "1f471-1f3fb-2640",
  53707. "shortnames": [":blond-haired_woman_light_skin_tone:"],
  53708. "category": "people"
  53709. },
  53710. ":blond-haired_woman_tone2:": {
  53711. "uc_base": "1f471-1f3fc-2640",
  53712. "uc_output": "1f471-1f3fc-200d-2640-fe0f",
  53713. "uc_match": "1f471-1f3fc-2640-fe0f",
  53714. "uc_greedy": "1f471-1f3fc-2640",
  53715. "shortnames": [":blond-haired_woman_medium_light_skin_tone:"],
  53716. "category": "people"
  53717. },
  53718. ":blond-haired_woman_tone3:": {
  53719. "uc_base": "1f471-1f3fd-2640",
  53720. "uc_output": "1f471-1f3fd-200d-2640-fe0f",
  53721. "uc_match": "1f471-1f3fd-2640-fe0f",
  53722. "uc_greedy": "1f471-1f3fd-2640",
  53723. "shortnames": [":blond-haired_woman_medium_skin_tone:"],
  53724. "category": "people"
  53725. },
  53726. ":blond-haired_woman_tone4:": {
  53727. "uc_base": "1f471-1f3fe-2640",
  53728. "uc_output": "1f471-1f3fe-200d-2640-fe0f",
  53729. "uc_match": "1f471-1f3fe-2640-fe0f",
  53730. "uc_greedy": "1f471-1f3fe-2640",
  53731. "shortnames": [":blond-haired_woman_medium_dark_skin_tone:"],
  53732. "category": "people"
  53733. },
  53734. ":blond-haired_woman_tone5:": {
  53735. "uc_base": "1f471-1f3ff-2640",
  53736. "uc_output": "1f471-1f3ff-200d-2640-fe0f",
  53737. "uc_match": "1f471-1f3ff-2640-fe0f",
  53738. "uc_greedy": "1f471-1f3ff-2640",
  53739. "shortnames": [":blond-haired_woman_dark_skin_tone:"],
  53740. "category": "people"
  53741. },
  53742. ":eye_in_speech_bubble:": {
  53743. "uc_base": "1f441-1f5e8",
  53744. "uc_output": "1f441-fe0f-200d-1f5e8-fe0f",
  53745. "uc_match": "1f441-fe0f-200d-1f5e8",
  53746. "uc_greedy": "1f441-1f5e8",
  53747. "shortnames": [],
  53748. "category": "symbols"
  53749. },
  53750. ":man_biking_tone1:": {
  53751. "uc_base": "1f6b4-1f3fb-2642",
  53752. "uc_output": "1f6b4-1f3fb-200d-2642-fe0f",
  53753. "uc_match": "1f6b4-1f3fb-2642-fe0f",
  53754. "uc_greedy": "1f6b4-1f3fb-2642",
  53755. "shortnames": [":man_biking_light_skin_tone:"],
  53756. "category": "activity"
  53757. },
  53758. ":man_biking_tone2:": {
  53759. "uc_base": "1f6b4-1f3fc-2642",
  53760. "uc_output": "1f6b4-1f3fc-200d-2642-fe0f",
  53761. "uc_match": "1f6b4-1f3fc-2642-fe0f",
  53762. "uc_greedy": "1f6b4-1f3fc-2642",
  53763. "shortnames": [":man_biking_medium_light_skin_tone:"],
  53764. "category": "activity"
  53765. },
  53766. ":man_biking_tone3:": {
  53767. "uc_base": "1f6b4-1f3fd-2642",
  53768. "uc_output": "1f6b4-1f3fd-200d-2642-fe0f",
  53769. "uc_match": "1f6b4-1f3fd-2642-fe0f",
  53770. "uc_greedy": "1f6b4-1f3fd-2642",
  53771. "shortnames": [":man_biking_medium_skin_tone:"],
  53772. "category": "activity"
  53773. },
  53774. ":man_biking_tone4:": {
  53775. "uc_base": "1f6b4-1f3fe-2642",
  53776. "uc_output": "1f6b4-1f3fe-200d-2642-fe0f",
  53777. "uc_match": "1f6b4-1f3fe-2642-fe0f",
  53778. "uc_greedy": "1f6b4-1f3fe-2642",
  53779. "shortnames": [":man_biking_medium_dark_skin_tone:"],
  53780. "category": "activity"
  53781. },
  53782. ":man_biking_tone5:": {
  53783. "uc_base": "1f6b4-1f3ff-2642",
  53784. "uc_output": "1f6b4-1f3ff-200d-2642-fe0f",
  53785. "uc_match": "1f6b4-1f3ff-2642-fe0f",
  53786. "uc_greedy": "1f6b4-1f3ff-2642",
  53787. "shortnames": [":man_biking_dark_skin_tone:"],
  53788. "category": "activity"
  53789. },
  53790. ":man_bowing_tone1:": {
  53791. "uc_base": "1f647-1f3fb-2642",
  53792. "uc_output": "1f647-1f3fb-200d-2642-fe0f",
  53793. "uc_match": "1f647-1f3fb-2642-fe0f",
  53794. "uc_greedy": "1f647-1f3fb-2642",
  53795. "shortnames": [":man_bowing_light_skin_tone:"],
  53796. "category": "people"
  53797. },
  53798. ":man_bowing_tone2:": {
  53799. "uc_base": "1f647-1f3fc-2642",
  53800. "uc_output": "1f647-1f3fc-200d-2642-fe0f",
  53801. "uc_match": "1f647-1f3fc-2642-fe0f",
  53802. "uc_greedy": "1f647-1f3fc-2642",
  53803. "shortnames": [":man_bowing_medium_light_skin_tone:"],
  53804. "category": "people"
  53805. },
  53806. ":man_bowing_tone3:": {
  53807. "uc_base": "1f647-1f3fd-2642",
  53808. "uc_output": "1f647-1f3fd-200d-2642-fe0f",
  53809. "uc_match": "1f647-1f3fd-2642-fe0f",
  53810. "uc_greedy": "1f647-1f3fd-2642",
  53811. "shortnames": [":man_bowing_medium_skin_tone:"],
  53812. "category": "people"
  53813. },
  53814. ":man_bowing_tone4:": {
  53815. "uc_base": "1f647-1f3fe-2642",
  53816. "uc_output": "1f647-1f3fe-200d-2642-fe0f",
  53817. "uc_match": "1f647-1f3fe-2642-fe0f",
  53818. "uc_greedy": "1f647-1f3fe-2642",
  53819. "shortnames": [":man_bowing_medium_dark_skin_tone:"],
  53820. "category": "people"
  53821. },
  53822. ":man_bowing_tone5:": {
  53823. "uc_base": "1f647-1f3ff-2642",
  53824. "uc_output": "1f647-1f3ff-200d-2642-fe0f",
  53825. "uc_match": "1f647-1f3ff-2642-fe0f",
  53826. "uc_greedy": "1f647-1f3ff-2642",
  53827. "shortnames": [":man_bowing_dark_skin_tone:"],
  53828. "category": "people"
  53829. },
  53830. ":man_cartwheeling_tone1:": {
  53831. "uc_base": "1f938-1f3fb-2642",
  53832. "uc_output": "1f938-1f3fb-200d-2642-fe0f",
  53833. "uc_match": "1f938-1f3fb-2642-fe0f",
  53834. "uc_greedy": "1f938-1f3fb-2642",
  53835. "shortnames": [":man_cartwheeling_light_skin_tone:"],
  53836. "category": "activity"
  53837. },
  53838. ":man_cartwheeling_tone2:": {
  53839. "uc_base": "1f938-1f3fc-2642",
  53840. "uc_output": "1f938-1f3fc-200d-2642-fe0f",
  53841. "uc_match": "1f938-1f3fc-2642-fe0f",
  53842. "uc_greedy": "1f938-1f3fc-2642",
  53843. "shortnames": [":man_cartwheeling_medium_light_skin_tone:"],
  53844. "category": "activity"
  53845. },
  53846. ":man_cartwheeling_tone3:": {
  53847. "uc_base": "1f938-1f3fd-2642",
  53848. "uc_output": "1f938-1f3fd-200d-2642-fe0f",
  53849. "uc_match": "1f938-1f3fd-2642-fe0f",
  53850. "uc_greedy": "1f938-1f3fd-2642",
  53851. "shortnames": [":man_cartwheeling_medium_skin_tone:"],
  53852. "category": "activity"
  53853. },
  53854. ":man_cartwheeling_tone4:": {
  53855. "uc_base": "1f938-1f3fe-2642",
  53856. "uc_output": "1f938-1f3fe-200d-2642-fe0f",
  53857. "uc_match": "1f938-1f3fe-2642-fe0f",
  53858. "uc_greedy": "1f938-1f3fe-2642",
  53859. "shortnames": [":man_cartwheeling_medium_dark_skin_tone:"],
  53860. "category": "activity"
  53861. },
  53862. ":man_cartwheeling_tone5:": {
  53863. "uc_base": "1f938-1f3ff-2642",
  53864. "uc_output": "1f938-1f3ff-200d-2642-fe0f",
  53865. "uc_match": "1f938-1f3ff-2642-fe0f",
  53866. "uc_greedy": "1f938-1f3ff-2642",
  53867. "shortnames": [":man_cartwheeling_dark_skin_tone:"],
  53868. "category": "activity"
  53869. },
  53870. ":man_climbing_tone1:": {
  53871. "uc_base": "1f9d7-1f3fb-2642",
  53872. "uc_output": "1f9d7-1f3fb-200d-2642-fe0f",
  53873. "uc_match": "1f9d7-1f3fb-2642-fe0f",
  53874. "uc_greedy": "1f9d7-1f3fb-2642",
  53875. "shortnames": [":man_climbing_light_skin_tone:"],
  53876. "category": "activity"
  53877. },
  53878. ":man_climbing_tone2:": {
  53879. "uc_base": "1f9d7-1f3fc-2642",
  53880. "uc_output": "1f9d7-1f3fc-200d-2642-fe0f",
  53881. "uc_match": "1f9d7-1f3fc-2642-fe0f",
  53882. "uc_greedy": "1f9d7-1f3fc-2642",
  53883. "shortnames": [":man_climbing_medium_light_skin_tone:"],
  53884. "category": "activity"
  53885. },
  53886. ":man_climbing_tone3:": {
  53887. "uc_base": "1f9d7-1f3fd-2642",
  53888. "uc_output": "1f9d7-1f3fd-200d-2642-fe0f",
  53889. "uc_match": "1f9d7-1f3fd-2642-fe0f",
  53890. "uc_greedy": "1f9d7-1f3fd-2642",
  53891. "shortnames": [":man_climbing_medium_skin_tone:"],
  53892. "category": "activity"
  53893. },
  53894. ":man_climbing_tone4:": {
  53895. "uc_base": "1f9d7-1f3fe-2642",
  53896. "uc_output": "1f9d7-1f3fe-200d-2642-fe0f",
  53897. "uc_match": "1f9d7-1f3fe-2642-fe0f",
  53898. "uc_greedy": "1f9d7-1f3fe-2642",
  53899. "shortnames": [":man_climbing_medium_dark_skin_tone:"],
  53900. "category": "activity"
  53901. },
  53902. ":man_climbing_tone5:": {
  53903. "uc_base": "1f9d7-1f3ff-2642",
  53904. "uc_output": "1f9d7-1f3ff-200d-2642-fe0f",
  53905. "uc_match": "1f9d7-1f3ff-2642-fe0f",
  53906. "uc_greedy": "1f9d7-1f3ff-2642",
  53907. "shortnames": [":man_climbing_dark_skin_tone:"],
  53908. "category": "activity"
  53909. },
  53910. ":man_construction_worker_tone1:": {
  53911. "uc_base": "1f477-1f3fb-2642",
  53912. "uc_output": "1f477-1f3fb-200d-2642-fe0f",
  53913. "uc_match": "1f477-1f3fb-2642-fe0f",
  53914. "uc_greedy": "1f477-1f3fb-2642",
  53915. "shortnames": [":man_construction_worker_light_skin_tone:"],
  53916. "category": "people"
  53917. },
  53918. ":man_construction_worker_tone2:": {
  53919. "uc_base": "1f477-1f3fc-2642",
  53920. "uc_output": "1f477-1f3fc-200d-2642-fe0f",
  53921. "uc_match": "1f477-1f3fc-2642-fe0f",
  53922. "uc_greedy": "1f477-1f3fc-2642",
  53923. "shortnames": [":man_construction_worker_medium_light_skin_tone:"],
  53924. "category": "people"
  53925. },
  53926. ":man_construction_worker_tone3:": {
  53927. "uc_base": "1f477-1f3fd-2642",
  53928. "uc_output": "1f477-1f3fd-200d-2642-fe0f",
  53929. "uc_match": "1f477-1f3fd-2642-fe0f",
  53930. "uc_greedy": "1f477-1f3fd-2642",
  53931. "shortnames": [":man_construction_worker_medium_skin_tone:"],
  53932. "category": "people"
  53933. },
  53934. ":man_construction_worker_tone4:": {
  53935. "uc_base": "1f477-1f3fe-2642",
  53936. "uc_output": "1f477-1f3fe-200d-2642-fe0f",
  53937. "uc_match": "1f477-1f3fe-2642-fe0f",
  53938. "uc_greedy": "1f477-1f3fe-2642",
  53939. "shortnames": [":man_construction_worker_medium_dark_skin_tone:"],
  53940. "category": "people"
  53941. },
  53942. ":man_construction_worker_tone5:": {
  53943. "uc_base": "1f477-1f3ff-2642",
  53944. "uc_output": "1f477-1f3ff-200d-2642-fe0f",
  53945. "uc_match": "1f477-1f3ff-2642-fe0f",
  53946. "uc_greedy": "1f477-1f3ff-2642",
  53947. "shortnames": [":man_construction_worker_dark_skin_tone:"],
  53948. "category": "people"
  53949. },
  53950. ":man_detective_tone1:": {
  53951. "uc_base": "1f575-1f3fb-2642",
  53952. "uc_output": "1f575-1f3fb-200d-2642-fe0f",
  53953. "uc_match": "1f575-fe0f-1f3fb-2642-fe0f",
  53954. "uc_greedy": "1f575-1f3fb-2642",
  53955. "shortnames": [":man_detective_light_skin_tone:"],
  53956. "category": "people"
  53957. },
  53958. ":man_detective_tone2:": {
  53959. "uc_base": "1f575-1f3fc-2642",
  53960. "uc_output": "1f575-1f3fc-200d-2642-fe0f",
  53961. "uc_match": "1f575-fe0f-1f3fc-2642-fe0f",
  53962. "uc_greedy": "1f575-1f3fc-2642",
  53963. "shortnames": [":man_detective_medium_light_skin_tone:"],
  53964. "category": "people"
  53965. },
  53966. ":man_detective_tone3:": {
  53967. "uc_base": "1f575-1f3fd-2642",
  53968. "uc_output": "1f575-1f3fd-200d-2642-fe0f",
  53969. "uc_match": "1f575-fe0f-1f3fd-2642-fe0f",
  53970. "uc_greedy": "1f575-1f3fd-2642",
  53971. "shortnames": [":man_detective_medium_skin_tone:"],
  53972. "category": "people"
  53973. },
  53974. ":man_detective_tone4:": {
  53975. "uc_base": "1f575-1f3fe-2642",
  53976. "uc_output": "1f575-1f3fe-200d-2642-fe0f",
  53977. "uc_match": "1f575-fe0f-1f3fe-2642-fe0f",
  53978. "uc_greedy": "1f575-1f3fe-2642",
  53979. "shortnames": [":man_detective_medium_dark_skin_tone:"],
  53980. "category": "people"
  53981. },
  53982. ":man_detective_tone5:": {
  53983. "uc_base": "1f575-1f3ff-2642",
  53984. "uc_output": "1f575-1f3ff-200d-2642-fe0f",
  53985. "uc_match": "1f575-fe0f-1f3ff-2642-fe0f",
  53986. "uc_greedy": "1f575-1f3ff-2642",
  53987. "shortnames": [":man_detective_dark_skin_tone:"],
  53988. "category": "people"
  53989. },
  53990. ":man_elf_tone1:": {
  53991. "uc_base": "1f9dd-1f3fb-2642",
  53992. "uc_output": "1f9dd-1f3fb-200d-2642-fe0f",
  53993. "uc_match": "1f9dd-1f3fb-2642-fe0f",
  53994. "uc_greedy": "1f9dd-1f3fb-2642",
  53995. "shortnames": [":man_elf_light_skin_tone:"],
  53996. "category": "people"
  53997. },
  53998. ":man_elf_tone2:": {
  53999. "uc_base": "1f9dd-1f3fc-2642",
  54000. "uc_output": "1f9dd-1f3fc-200d-2642-fe0f",
  54001. "uc_match": "1f9dd-1f3fc-2642-fe0f",
  54002. "uc_greedy": "1f9dd-1f3fc-2642",
  54003. "shortnames": [":man_elf_medium_light_skin_tone:"],
  54004. "category": "people"
  54005. },
  54006. ":man_elf_tone3:": {
  54007. "uc_base": "1f9dd-1f3fd-2642",
  54008. "uc_output": "1f9dd-1f3fd-200d-2642-fe0f",
  54009. "uc_match": "1f9dd-1f3fd-2642-fe0f",
  54010. "uc_greedy": "1f9dd-1f3fd-2642",
  54011. "shortnames": [":man_elf_medium_skin_tone:"],
  54012. "category": "people"
  54013. },
  54014. ":man_elf_tone4:": {
  54015. "uc_base": "1f9dd-1f3fe-2642",
  54016. "uc_output": "1f9dd-1f3fe-200d-2642-fe0f",
  54017. "uc_match": "1f9dd-1f3fe-2642-fe0f",
  54018. "uc_greedy": "1f9dd-1f3fe-2642",
  54019. "shortnames": [":man_elf_medium_dark_skin_tone:"],
  54020. "category": "people"
  54021. },
  54022. ":man_elf_tone5:": {
  54023. "uc_base": "1f9dd-1f3ff-2642",
  54024. "uc_output": "1f9dd-1f3ff-200d-2642-fe0f",
  54025. "uc_match": "1f9dd-1f3ff-2642-fe0f",
  54026. "uc_greedy": "1f9dd-1f3ff-2642",
  54027. "shortnames": [":man_elf_dark_skin_tone:"],
  54028. "category": "people"
  54029. },
  54030. ":man_facepalming_tone1:": {
  54031. "uc_base": "1f926-1f3fb-2642",
  54032. "uc_output": "1f926-1f3fb-200d-2642-fe0f",
  54033. "uc_match": "1f926-1f3fb-2642-fe0f",
  54034. "uc_greedy": "1f926-1f3fb-2642",
  54035. "shortnames": [":man_facepalming_light_skin_tone:"],
  54036. "category": "people"
  54037. },
  54038. ":man_facepalming_tone2:": {
  54039. "uc_base": "1f926-1f3fc-2642",
  54040. "uc_output": "1f926-1f3fc-200d-2642-fe0f",
  54041. "uc_match": "1f926-1f3fc-2642-fe0f",
  54042. "uc_greedy": "1f926-1f3fc-2642",
  54043. "shortnames": [":man_facepalming_medium_light_skin_tone:"],
  54044. "category": "people"
  54045. },
  54046. ":man_facepalming_tone3:": {
  54047. "uc_base": "1f926-1f3fd-2642",
  54048. "uc_output": "1f926-1f3fd-200d-2642-fe0f",
  54049. "uc_match": "1f926-1f3fd-2642-fe0f",
  54050. "uc_greedy": "1f926-1f3fd-2642",
  54051. "shortnames": [":man_facepalming_medium_skin_tone:"],
  54052. "category": "people"
  54053. },
  54054. ":man_facepalming_tone4:": {
  54055. "uc_base": "1f926-1f3fe-2642",
  54056. "uc_output": "1f926-1f3fe-200d-2642-fe0f",
  54057. "uc_match": "1f926-1f3fe-2642-fe0f",
  54058. "uc_greedy": "1f926-1f3fe-2642",
  54059. "shortnames": [":man_facepalming_medium_dark_skin_tone:"],
  54060. "category": "people"
  54061. },
  54062. ":man_facepalming_tone5:": {
  54063. "uc_base": "1f926-1f3ff-2642",
  54064. "uc_output": "1f926-1f3ff-200d-2642-fe0f",
  54065. "uc_match": "1f926-1f3ff-2642-fe0f",
  54066. "uc_greedy": "1f926-1f3ff-2642",
  54067. "shortnames": [":man_facepalming_dark_skin_tone:"],
  54068. "category": "people"
  54069. },
  54070. ":man_fairy_tone1:": {
  54071. "uc_base": "1f9da-1f3fb-2642",
  54072. "uc_output": "1f9da-1f3fb-200d-2642-fe0f",
  54073. "uc_match": "1f9da-1f3fb-2642-fe0f",
  54074. "uc_greedy": "1f9da-1f3fb-2642",
  54075. "shortnames": [":man_fairy_light_skin_tone:"],
  54076. "category": "people"
  54077. },
  54078. ":man_fairy_tone2:": {
  54079. "uc_base": "1f9da-1f3fc-2642",
  54080. "uc_output": "1f9da-1f3fc-200d-2642-fe0f",
  54081. "uc_match": "1f9da-1f3fc-2642-fe0f",
  54082. "uc_greedy": "1f9da-1f3fc-2642",
  54083. "shortnames": [":man_fairy_medium_light_skin_tone:"],
  54084. "category": "people"
  54085. },
  54086. ":man_fairy_tone3:": {
  54087. "uc_base": "1f9da-1f3fd-2642",
  54088. "uc_output": "1f9da-1f3fd-200d-2642-fe0f",
  54089. "uc_match": "1f9da-1f3fd-2642-fe0f",
  54090. "uc_greedy": "1f9da-1f3fd-2642",
  54091. "shortnames": [":man_fairy_medium_skin_tone:"],
  54092. "category": "people"
  54093. },
  54094. ":man_fairy_tone4:": {
  54095. "uc_base": "1f9da-1f3fe-2642",
  54096. "uc_output": "1f9da-1f3fe-200d-2642-fe0f",
  54097. "uc_match": "1f9da-1f3fe-2642-fe0f",
  54098. "uc_greedy": "1f9da-1f3fe-2642",
  54099. "shortnames": [":man_fairy_medium_dark_skin_tone:"],
  54100. "category": "people"
  54101. },
  54102. ":man_fairy_tone5:": {
  54103. "uc_base": "1f9da-1f3ff-2642",
  54104. "uc_output": "1f9da-1f3ff-200d-2642-fe0f",
  54105. "uc_match": "1f9da-1f3ff-2642-fe0f",
  54106. "uc_greedy": "1f9da-1f3ff-2642",
  54107. "shortnames": [":man_fairy_dark_skin_tone:"],
  54108. "category": "people"
  54109. },
  54110. ":man_frowning_tone1:": {
  54111. "uc_base": "1f64d-1f3fb-2642",
  54112. "uc_output": "1f64d-1f3fb-200d-2642-fe0f",
  54113. "uc_match": "1f64d-1f3fb-2642-fe0f",
  54114. "uc_greedy": "1f64d-1f3fb-2642",
  54115. "shortnames": [":man_frowning_light_skin_tone:"],
  54116. "category": "people"
  54117. },
  54118. ":man_frowning_tone2:": {
  54119. "uc_base": "1f64d-1f3fc-2642",
  54120. "uc_output": "1f64d-1f3fc-200d-2642-fe0f",
  54121. "uc_match": "1f64d-1f3fc-2642-fe0f",
  54122. "uc_greedy": "1f64d-1f3fc-2642",
  54123. "shortnames": [":man_frowning_medium_light_skin_tone:"],
  54124. "category": "people"
  54125. },
  54126. ":man_frowning_tone3:": {
  54127. "uc_base": "1f64d-1f3fd-2642",
  54128. "uc_output": "1f64d-1f3fd-200d-2642-fe0f",
  54129. "uc_match": "1f64d-1f3fd-2642-fe0f",
  54130. "uc_greedy": "1f64d-1f3fd-2642",
  54131. "shortnames": [":man_frowning_medium_skin_tone:"],
  54132. "category": "people"
  54133. },
  54134. ":man_frowning_tone4:": {
  54135. "uc_base": "1f64d-1f3fe-2642",
  54136. "uc_output": "1f64d-1f3fe-200d-2642-fe0f",
  54137. "uc_match": "1f64d-1f3fe-2642-fe0f",
  54138. "uc_greedy": "1f64d-1f3fe-2642",
  54139. "shortnames": [":man_frowning_medium_dark_skin_tone:"],
  54140. "category": "people"
  54141. },
  54142. ":man_frowning_tone5:": {
  54143. "uc_base": "1f64d-1f3ff-2642",
  54144. "uc_output": "1f64d-1f3ff-200d-2642-fe0f",
  54145. "uc_match": "1f64d-1f3ff-2642-fe0f",
  54146. "uc_greedy": "1f64d-1f3ff-2642",
  54147. "shortnames": [":man_frowning_dark_skin_tone:"],
  54148. "category": "people"
  54149. },
  54150. ":man_gesturing_no_tone1:": {
  54151. "uc_base": "1f645-1f3fb-2642",
  54152. "uc_output": "1f645-1f3fb-200d-2642-fe0f",
  54153. "uc_match": "1f645-1f3fb-2642-fe0f",
  54154. "uc_greedy": "1f645-1f3fb-2642",
  54155. "shortnames": [":man_gesturing_no_light_skin_tone:"],
  54156. "category": "people"
  54157. },
  54158. ":man_gesturing_no_tone2:": {
  54159. "uc_base": "1f645-1f3fc-2642",
  54160. "uc_output": "1f645-1f3fc-200d-2642-fe0f",
  54161. "uc_match": "1f645-1f3fc-2642-fe0f",
  54162. "uc_greedy": "1f645-1f3fc-2642",
  54163. "shortnames": [":man_gesturing_no_medium_light_skin_tone:"],
  54164. "category": "people"
  54165. },
  54166. ":man_gesturing_no_tone3:": {
  54167. "uc_base": "1f645-1f3fd-2642",
  54168. "uc_output": "1f645-1f3fd-200d-2642-fe0f",
  54169. "uc_match": "1f645-1f3fd-2642-fe0f",
  54170. "uc_greedy": "1f645-1f3fd-2642",
  54171. "shortnames": [":man_gesturing_no_medium_skin_tone:"],
  54172. "category": "people"
  54173. },
  54174. ":man_gesturing_no_tone4:": {
  54175. "uc_base": "1f645-1f3fe-2642",
  54176. "uc_output": "1f645-1f3fe-200d-2642-fe0f",
  54177. "uc_match": "1f645-1f3fe-2642-fe0f",
  54178. "uc_greedy": "1f645-1f3fe-2642",
  54179. "shortnames": [":man_gesturing_no_medium_dark_skin_tone:"],
  54180. "category": "people"
  54181. },
  54182. ":man_gesturing_no_tone5:": {
  54183. "uc_base": "1f645-1f3ff-2642",
  54184. "uc_output": "1f645-1f3ff-200d-2642-fe0f",
  54185. "uc_match": "1f645-1f3ff-2642-fe0f",
  54186. "uc_greedy": "1f645-1f3ff-2642",
  54187. "shortnames": [":man_gesturing_no_dark_skin_tone:"],
  54188. "category": "people"
  54189. },
  54190. ":man_gesturing_ok_tone1:": {
  54191. "uc_base": "1f646-1f3fb-2642",
  54192. "uc_output": "1f646-1f3fb-200d-2642-fe0f",
  54193. "uc_match": "1f646-1f3fb-2642-fe0f",
  54194. "uc_greedy": "1f646-1f3fb-2642",
  54195. "shortnames": [":man_gesturing_ok_light_skin_tone:"],
  54196. "category": "people"
  54197. },
  54198. ":man_gesturing_ok_tone2:": {
  54199. "uc_base": "1f646-1f3fc-2642",
  54200. "uc_output": "1f646-1f3fc-200d-2642-fe0f",
  54201. "uc_match": "1f646-1f3fc-2642-fe0f",
  54202. "uc_greedy": "1f646-1f3fc-2642",
  54203. "shortnames": [":man_gesturing_ok_medium_light_skin_tone:"],
  54204. "category": "people"
  54205. },
  54206. ":man_gesturing_ok_tone3:": {
  54207. "uc_base": "1f646-1f3fd-2642",
  54208. "uc_output": "1f646-1f3fd-200d-2642-fe0f",
  54209. "uc_match": "1f646-1f3fd-2642-fe0f",
  54210. "uc_greedy": "1f646-1f3fd-2642",
  54211. "shortnames": [":man_gesturing_ok_medium_skin_tone:"],
  54212. "category": "people"
  54213. },
  54214. ":man_gesturing_ok_tone4:": {
  54215. "uc_base": "1f646-1f3fe-2642",
  54216. "uc_output": "1f646-1f3fe-200d-2642-fe0f",
  54217. "uc_match": "1f646-1f3fe-2642-fe0f",
  54218. "uc_greedy": "1f646-1f3fe-2642",
  54219. "shortnames": [":man_gesturing_ok_medium_dark_skin_tone:"],
  54220. "category": "people"
  54221. },
  54222. ":man_gesturing_ok_tone5:": {
  54223. "uc_base": "1f646-1f3ff-2642",
  54224. "uc_output": "1f646-1f3ff-200d-2642-fe0f",
  54225. "uc_match": "1f646-1f3ff-2642-fe0f",
  54226. "uc_greedy": "1f646-1f3ff-2642",
  54227. "shortnames": [":man_gesturing_ok_dark_skin_tone:"],
  54228. "category": "people"
  54229. },
  54230. ":man_getting_face_massage_tone1:": {
  54231. "uc_base": "1f486-1f3fb-2642",
  54232. "uc_output": "1f486-1f3fb-200d-2642-fe0f",
  54233. "uc_match": "1f486-1f3fb-2642-fe0f",
  54234. "uc_greedy": "1f486-1f3fb-2642",
  54235. "shortnames": [":man_getting_face_massage_light_skin_tone:"],
  54236. "category": "people"
  54237. },
  54238. ":man_getting_face_massage_tone2:": {
  54239. "uc_base": "1f486-1f3fc-2642",
  54240. "uc_output": "1f486-1f3fc-200d-2642-fe0f",
  54241. "uc_match": "1f486-1f3fc-2642-fe0f",
  54242. "uc_greedy": "1f486-1f3fc-2642",
  54243. "shortnames": [":man_getting_face_massage_medium_light_skin_tone:"],
  54244. "category": "people"
  54245. },
  54246. ":man_getting_face_massage_tone3:": {
  54247. "uc_base": "1f486-1f3fd-2642",
  54248. "uc_output": "1f486-1f3fd-200d-2642-fe0f",
  54249. "uc_match": "1f486-1f3fd-2642-fe0f",
  54250. "uc_greedy": "1f486-1f3fd-2642",
  54251. "shortnames": [":man_getting_face_massage_medium_skin_tone:"],
  54252. "category": "people"
  54253. },
  54254. ":man_getting_face_massage_tone4:": {
  54255. "uc_base": "1f486-1f3fe-2642",
  54256. "uc_output": "1f486-1f3fe-200d-2642-fe0f",
  54257. "uc_match": "1f486-1f3fe-2642-fe0f",
  54258. "uc_greedy": "1f486-1f3fe-2642",
  54259. "shortnames": [":man_getting_face_massage_medium_dark_skin_tone:"],
  54260. "category": "people"
  54261. },
  54262. ":man_getting_face_massage_tone5:": {
  54263. "uc_base": "1f486-1f3ff-2642",
  54264. "uc_output": "1f486-1f3ff-200d-2642-fe0f",
  54265. "uc_match": "1f486-1f3ff-2642-fe0f",
  54266. "uc_greedy": "1f486-1f3ff-2642",
  54267. "shortnames": [":man_getting_face_massage_dark_skin_tone:"],
  54268. "category": "people"
  54269. },
  54270. ":man_getting_haircut_tone1:": {
  54271. "uc_base": "1f487-1f3fb-2642",
  54272. "uc_output": "1f487-1f3fb-200d-2642-fe0f",
  54273. "uc_match": "1f487-1f3fb-2642-fe0f",
  54274. "uc_greedy": "1f487-1f3fb-2642",
  54275. "shortnames": [":man_getting_haircut_light_skin_tone:"],
  54276. "category": "people"
  54277. },
  54278. ":man_getting_haircut_tone2:": {
  54279. "uc_base": "1f487-1f3fc-2642",
  54280. "uc_output": "1f487-1f3fc-200d-2642-fe0f",
  54281. "uc_match": "1f487-1f3fc-2642-fe0f",
  54282. "uc_greedy": "1f487-1f3fc-2642",
  54283. "shortnames": [":man_getting_haircut_medium_light_skin_tone:"],
  54284. "category": "people"
  54285. },
  54286. ":man_getting_haircut_tone3:": {
  54287. "uc_base": "1f487-1f3fd-2642",
  54288. "uc_output": "1f487-1f3fd-200d-2642-fe0f",
  54289. "uc_match": "1f487-1f3fd-2642-fe0f",
  54290. "uc_greedy": "1f487-1f3fd-2642",
  54291. "shortnames": [":man_getting_haircut_medium_skin_tone:"],
  54292. "category": "people"
  54293. },
  54294. ":man_getting_haircut_tone4:": {
  54295. "uc_base": "1f487-1f3fe-2642",
  54296. "uc_output": "1f487-1f3fe-200d-2642-fe0f",
  54297. "uc_match": "1f487-1f3fe-2642-fe0f",
  54298. "uc_greedy": "1f487-1f3fe-2642",
  54299. "shortnames": [":man_getting_haircut_medium_dark_skin_tone:"],
  54300. "category": "people"
  54301. },
  54302. ":man_getting_haircut_tone5:": {
  54303. "uc_base": "1f487-1f3ff-2642",
  54304. "uc_output": "1f487-1f3ff-200d-2642-fe0f",
  54305. "uc_match": "1f487-1f3ff-2642-fe0f",
  54306. "uc_greedy": "1f487-1f3ff-2642",
  54307. "shortnames": [":man_getting_haircut_dark_skin_tone:"],
  54308. "category": "people"
  54309. },
  54310. ":man_golfing_tone1:": {
  54311. "uc_base": "1f3cc-1f3fb-2642",
  54312. "uc_output": "1f3cc-1f3fb-200d-2642-fe0f",
  54313. "uc_match": "1f3cc-fe0f-1f3fb-2642-fe0f",
  54314. "uc_greedy": "1f3cc-1f3fb-2642",
  54315. "shortnames": [":man_golfing_light_skin_tone:"],
  54316. "category": "activity"
  54317. },
  54318. ":man_golfing_tone2:": {
  54319. "uc_base": "1f3cc-1f3fc-2642",
  54320. "uc_output": "1f3cc-1f3fc-200d-2642-fe0f",
  54321. "uc_match": "1f3cc-fe0f-1f3fc-2642-fe0f",
  54322. "uc_greedy": "1f3cc-1f3fc-2642",
  54323. "shortnames": [":man_golfing_medium_light_skin_tone:"],
  54324. "category": "activity"
  54325. },
  54326. ":man_golfing_tone3:": {
  54327. "uc_base": "1f3cc-1f3fd-2642",
  54328. "uc_output": "1f3cc-1f3fd-200d-2642-fe0f",
  54329. "uc_match": "1f3cc-fe0f-1f3fd-2642-fe0f",
  54330. "uc_greedy": "1f3cc-1f3fd-2642",
  54331. "shortnames": [":man_golfing_medium_skin_tone:"],
  54332. "category": "activity"
  54333. },
  54334. ":man_golfing_tone4:": {
  54335. "uc_base": "1f3cc-1f3fe-2642",
  54336. "uc_output": "1f3cc-1f3fe-200d-2642-fe0f",
  54337. "uc_match": "1f3cc-fe0f-1f3fe-2642-fe0f",
  54338. "uc_greedy": "1f3cc-1f3fe-2642",
  54339. "shortnames": [":man_golfing_medium_dark_skin_tone:"],
  54340. "category": "activity"
  54341. },
  54342. ":man_golfing_tone5:": {
  54343. "uc_base": "1f3cc-1f3ff-2642",
  54344. "uc_output": "1f3cc-1f3ff-200d-2642-fe0f",
  54345. "uc_match": "1f3cc-fe0f-1f3ff-2642-fe0f",
  54346. "uc_greedy": "1f3cc-1f3ff-2642",
  54347. "shortnames": [":man_golfing_dark_skin_tone:"],
  54348. "category": "activity"
  54349. },
  54350. ":man_guard_tone1:": {
  54351. "uc_base": "1f482-1f3fb-2642",
  54352. "uc_output": "1f482-1f3fb-200d-2642-fe0f",
  54353. "uc_match": "1f482-1f3fb-2642-fe0f",
  54354. "uc_greedy": "1f482-1f3fb-2642",
  54355. "shortnames": [":man_guard_light_skin_tone:"],
  54356. "category": "people"
  54357. },
  54358. ":man_guard_tone2:": {
  54359. "uc_base": "1f482-1f3fc-2642",
  54360. "uc_output": "1f482-1f3fc-200d-2642-fe0f",
  54361. "uc_match": "1f482-1f3fc-2642-fe0f",
  54362. "uc_greedy": "1f482-1f3fc-2642",
  54363. "shortnames": [":man_guard_medium_light_skin_tone:"],
  54364. "category": "people"
  54365. },
  54366. ":man_guard_tone3:": {
  54367. "uc_base": "1f482-1f3fd-2642",
  54368. "uc_output": "1f482-1f3fd-200d-2642-fe0f",
  54369. "uc_match": "1f482-1f3fd-2642-fe0f",
  54370. "uc_greedy": "1f482-1f3fd-2642",
  54371. "shortnames": [":man_guard_medium_skin_tone:"],
  54372. "category": "people"
  54373. },
  54374. ":man_guard_tone4:": {
  54375. "uc_base": "1f482-1f3fe-2642",
  54376. "uc_output": "1f482-1f3fe-200d-2642-fe0f",
  54377. "uc_match": "1f482-1f3fe-2642-fe0f",
  54378. "uc_greedy": "1f482-1f3fe-2642",
  54379. "shortnames": [":man_guard_medium_dark_skin_tone:"],
  54380. "category": "people"
  54381. },
  54382. ":man_guard_tone5:": {
  54383. "uc_base": "1f482-1f3ff-2642",
  54384. "uc_output": "1f482-1f3ff-200d-2642-fe0f",
  54385. "uc_match": "1f482-1f3ff-2642-fe0f",
  54386. "uc_greedy": "1f482-1f3ff-2642",
  54387. "shortnames": [":man_guard_dark_skin_tone:"],
  54388. "category": "people"
  54389. },
  54390. ":man_health_worker_tone1:": {
  54391. "uc_base": "1f468-1f3fb-2695",
  54392. "uc_output": "1f468-1f3fb-200d-2695-fe0f",
  54393. "uc_match": "1f468-1f3fb-2695-fe0f",
  54394. "uc_greedy": "1f468-1f3fb-2695",
  54395. "shortnames": [":man_health_worker_light_skin_tone:"],
  54396. "category": "people"
  54397. },
  54398. ":man_health_worker_tone2:": {
  54399. "uc_base": "1f468-1f3fc-2695",
  54400. "uc_output": "1f468-1f3fc-200d-2695-fe0f",
  54401. "uc_match": "1f468-1f3fc-2695-fe0f",
  54402. "uc_greedy": "1f468-1f3fc-2695",
  54403. "shortnames": [":man_health_worker_medium_light_skin_tone:"],
  54404. "category": "people"
  54405. },
  54406. ":man_health_worker_tone3:": {
  54407. "uc_base": "1f468-1f3fd-2695",
  54408. "uc_output": "1f468-1f3fd-200d-2695-fe0f",
  54409. "uc_match": "1f468-1f3fd-2695-fe0f",
  54410. "uc_greedy": "1f468-1f3fd-2695",
  54411. "shortnames": [":man_health_worker_medium_skin_tone:"],
  54412. "category": "people"
  54413. },
  54414. ":man_health_worker_tone4:": {
  54415. "uc_base": "1f468-1f3fe-2695",
  54416. "uc_output": "1f468-1f3fe-200d-2695-fe0f",
  54417. "uc_match": "1f468-1f3fe-2695-fe0f",
  54418. "uc_greedy": "1f468-1f3fe-2695",
  54419. "shortnames": [":man_health_worker_medium_dark_skin_tone:"],
  54420. "category": "people"
  54421. },
  54422. ":man_health_worker_tone5:": {
  54423. "uc_base": "1f468-1f3ff-2695",
  54424. "uc_output": "1f468-1f3ff-200d-2695-fe0f",
  54425. "uc_match": "1f468-1f3ff-2695-fe0f",
  54426. "uc_greedy": "1f468-1f3ff-2695",
  54427. "shortnames": [":man_health_worker_dark_skin_tone:"],
  54428. "category": "people"
  54429. },
  54430. ":man_in_lotus_position_tone1:": {
  54431. "uc_base": "1f9d8-1f3fb-2642",
  54432. "uc_output": "1f9d8-1f3fb-200d-2642-fe0f",
  54433. "uc_match": "1f9d8-1f3fb-2642-fe0f",
  54434. "uc_greedy": "1f9d8-1f3fb-2642",
  54435. "shortnames": [":man_in_lotus_position_light_skin_tone:"],
  54436. "category": "activity"
  54437. },
  54438. ":man_in_lotus_position_tone2:": {
  54439. "uc_base": "1f9d8-1f3fc-2642",
  54440. "uc_output": "1f9d8-1f3fc-200d-2642-fe0f",
  54441. "uc_match": "1f9d8-1f3fc-2642-fe0f",
  54442. "uc_greedy": "1f9d8-1f3fc-2642",
  54443. "shortnames": [":man_in_lotus_position_medium_light_skin_tone:"],
  54444. "category": "activity"
  54445. },
  54446. ":man_in_lotus_position_tone3:": {
  54447. "uc_base": "1f9d8-1f3fd-2642",
  54448. "uc_output": "1f9d8-1f3fd-200d-2642-fe0f",
  54449. "uc_match": "1f9d8-1f3fd-2642-fe0f",
  54450. "uc_greedy": "1f9d8-1f3fd-2642",
  54451. "shortnames": [":man_in_lotus_position_medium_skin_tone:"],
  54452. "category": "activity"
  54453. },
  54454. ":man_in_lotus_position_tone4:": {
  54455. "uc_base": "1f9d8-1f3fe-2642",
  54456. "uc_output": "1f9d8-1f3fe-200d-2642-fe0f",
  54457. "uc_match": "1f9d8-1f3fe-2642-fe0f",
  54458. "uc_greedy": "1f9d8-1f3fe-2642",
  54459. "shortnames": [":man_in_lotus_position_medium_dark_skin_tone:"],
  54460. "category": "activity"
  54461. },
  54462. ":man_in_lotus_position_tone5:": {
  54463. "uc_base": "1f9d8-1f3ff-2642",
  54464. "uc_output": "1f9d8-1f3ff-200d-2642-fe0f",
  54465. "uc_match": "1f9d8-1f3ff-2642-fe0f",
  54466. "uc_greedy": "1f9d8-1f3ff-2642",
  54467. "shortnames": [":man_in_lotus_position_dark_skin_tone:"],
  54468. "category": "activity"
  54469. },
  54470. ":man_in_steamy_room_tone1:": {
  54471. "uc_base": "1f9d6-1f3fb-2642",
  54472. "uc_output": "1f9d6-1f3fb-200d-2642-fe0f",
  54473. "uc_match": "1f9d6-1f3fb-2642-fe0f",
  54474. "uc_greedy": "1f9d6-1f3fb-2642",
  54475. "shortnames": [":man_in_steamy_room_light_skin_tone:"],
  54476. "category": "people"
  54477. },
  54478. ":man_in_steamy_room_tone2:": {
  54479. "uc_base": "1f9d6-1f3fc-2642",
  54480. "uc_output": "1f9d6-1f3fc-200d-2642-fe0f",
  54481. "uc_match": "1f9d6-1f3fc-2642-fe0f",
  54482. "uc_greedy": "1f9d6-1f3fc-2642",
  54483. "shortnames": [":man_in_steamy_room_medium_light_skin_tone:"],
  54484. "category": "people"
  54485. },
  54486. ":man_in_steamy_room_tone3:": {
  54487. "uc_base": "1f9d6-1f3fd-2642",
  54488. "uc_output": "1f9d6-1f3fd-200d-2642-fe0f",
  54489. "uc_match": "1f9d6-1f3fd-2642-fe0f",
  54490. "uc_greedy": "1f9d6-1f3fd-2642",
  54491. "shortnames": [":man_in_steamy_room_medium_skin_tone:"],
  54492. "category": "people"
  54493. },
  54494. ":man_in_steamy_room_tone4:": {
  54495. "uc_base": "1f9d6-1f3fe-2642",
  54496. "uc_output": "1f9d6-1f3fe-200d-2642-fe0f",
  54497. "uc_match": "1f9d6-1f3fe-2642-fe0f",
  54498. "uc_greedy": "1f9d6-1f3fe-2642",
  54499. "shortnames": [":man_in_steamy_room_medium_dark_skin_tone:"],
  54500. "category": "people"
  54501. },
  54502. ":man_in_steamy_room_tone5:": {
  54503. "uc_base": "1f9d6-1f3ff-2642",
  54504. "uc_output": "1f9d6-1f3ff-200d-2642-fe0f",
  54505. "uc_match": "1f9d6-1f3ff-2642-fe0f",
  54506. "uc_greedy": "1f9d6-1f3ff-2642",
  54507. "shortnames": [":man_in_steamy_room_dark_skin_tone:"],
  54508. "category": "people"
  54509. },
  54510. ":man_judge_tone1:": {
  54511. "uc_base": "1f468-1f3fb-2696",
  54512. "uc_output": "1f468-1f3fb-200d-2696-fe0f",
  54513. "uc_match": "1f468-1f3fb-2696-fe0f",
  54514. "uc_greedy": "1f468-1f3fb-2696",
  54515. "shortnames": [":man_judge_light_skin_tone:"],
  54516. "category": "people"
  54517. },
  54518. ":man_judge_tone2:": {
  54519. "uc_base": "1f468-1f3fc-2696",
  54520. "uc_output": "1f468-1f3fc-200d-2696-fe0f",
  54521. "uc_match": "1f468-1f3fc-2696-fe0f",
  54522. "uc_greedy": "1f468-1f3fc-2696",
  54523. "shortnames": [":man_judge_medium_light_skin_tone:"],
  54524. "category": "people"
  54525. },
  54526. ":man_judge_tone3:": {
  54527. "uc_base": "1f468-1f3fd-2696",
  54528. "uc_output": "1f468-1f3fd-200d-2696-fe0f",
  54529. "uc_match": "1f468-1f3fd-2696-fe0f",
  54530. "uc_greedy": "1f468-1f3fd-2696",
  54531. "shortnames": [":man_judge_medium_skin_tone:"],
  54532. "category": "people"
  54533. },
  54534. ":man_judge_tone4:": {
  54535. "uc_base": "1f468-1f3fe-2696",
  54536. "uc_output": "1f468-1f3fe-200d-2696-fe0f",
  54537. "uc_match": "1f468-1f3fe-2696-fe0f",
  54538. "uc_greedy": "1f468-1f3fe-2696",
  54539. "shortnames": [":man_judge_medium_dark_skin_tone:"],
  54540. "category": "people"
  54541. },
  54542. ":man_judge_tone5:": {
  54543. "uc_base": "1f468-1f3ff-2696",
  54544. "uc_output": "1f468-1f3ff-200d-2696-fe0f",
  54545. "uc_match": "1f468-1f3ff-2696-fe0f",
  54546. "uc_greedy": "1f468-1f3ff-2696",
  54547. "shortnames": [":man_judge_dark_skin_tone:"],
  54548. "category": "people"
  54549. },
  54550. ":man_juggling_tone1:": {
  54551. "uc_base": "1f939-1f3fb-2642",
  54552. "uc_output": "1f939-1f3fb-200d-2642-fe0f",
  54553. "uc_match": "1f939-1f3fb-2642-fe0f",
  54554. "uc_greedy": "1f939-1f3fb-2642",
  54555. "shortnames": [":man_juggling_light_skin_tone:"],
  54556. "category": "activity"
  54557. },
  54558. ":man_juggling_tone2:": {
  54559. "uc_base": "1f939-1f3fc-2642",
  54560. "uc_output": "1f939-1f3fc-200d-2642-fe0f",
  54561. "uc_match": "1f939-1f3fc-2642-fe0f",
  54562. "uc_greedy": "1f939-1f3fc-2642",
  54563. "shortnames": [":man_juggling_medium_light_skin_tone:"],
  54564. "category": "activity"
  54565. },
  54566. ":man_juggling_tone3:": {
  54567. "uc_base": "1f939-1f3fd-2642",
  54568. "uc_output": "1f939-1f3fd-200d-2642-fe0f",
  54569. "uc_match": "1f939-1f3fd-2642-fe0f",
  54570. "uc_greedy": "1f939-1f3fd-2642",
  54571. "shortnames": [":man_juggling_medium_skin_tone:"],
  54572. "category": "activity"
  54573. },
  54574. ":man_juggling_tone4:": {
  54575. "uc_base": "1f939-1f3fe-2642",
  54576. "uc_output": "1f939-1f3fe-200d-2642-fe0f",
  54577. "uc_match": "1f939-1f3fe-2642-fe0f",
  54578. "uc_greedy": "1f939-1f3fe-2642",
  54579. "shortnames": [":man_juggling_medium_dark_skin_tone:"],
  54580. "category": "activity"
  54581. },
  54582. ":man_juggling_tone5:": {
  54583. "uc_base": "1f939-1f3ff-2642",
  54584. "uc_output": "1f939-1f3ff-200d-2642-fe0f",
  54585. "uc_match": "1f939-1f3ff-2642-fe0f",
  54586. "uc_greedy": "1f939-1f3ff-2642",
  54587. "shortnames": [":man_juggling_dark_skin_tone:"],
  54588. "category": "activity"
  54589. },
  54590. ":man_lifting_weights_tone1:": {
  54591. "uc_base": "1f3cb-1f3fb-2642",
  54592. "uc_output": "1f3cb-1f3fb-200d-2642-fe0f",
  54593. "uc_match": "1f3cb-fe0f-1f3fb-2642-fe0f",
  54594. "uc_greedy": "1f3cb-1f3fb-2642",
  54595. "shortnames": [":man_lifting_weights_light_skin_tone:"],
  54596. "category": "activity"
  54597. },
  54598. ":man_lifting_weights_tone2:": {
  54599. "uc_base": "1f3cb-1f3fc-2642",
  54600. "uc_output": "1f3cb-1f3fc-200d-2642-fe0f",
  54601. "uc_match": "1f3cb-fe0f-1f3fc-2642-fe0f",
  54602. "uc_greedy": "1f3cb-1f3fc-2642",
  54603. "shortnames": [":man_lifting_weights_medium_light_skin_tone:"],
  54604. "category": "activity"
  54605. },
  54606. ":man_lifting_weights_tone3:": {
  54607. "uc_base": "1f3cb-1f3fd-2642",
  54608. "uc_output": "1f3cb-1f3fd-200d-2642-fe0f",
  54609. "uc_match": "1f3cb-fe0f-1f3fd-2642-fe0f",
  54610. "uc_greedy": "1f3cb-1f3fd-2642",
  54611. "shortnames": [":man_lifting_weights_medium_skin_tone:"],
  54612. "category": "activity"
  54613. },
  54614. ":man_lifting_weights_tone4:": {
  54615. "uc_base": "1f3cb-1f3fe-2642",
  54616. "uc_output": "1f3cb-1f3fe-200d-2642-fe0f",
  54617. "uc_match": "1f3cb-fe0f-1f3fe-2642-fe0f",
  54618. "uc_greedy": "1f3cb-1f3fe-2642",
  54619. "shortnames": [":man_lifting_weights_medium_dark_skin_tone:"],
  54620. "category": "activity"
  54621. },
  54622. ":man_lifting_weights_tone5:": {
  54623. "uc_base": "1f3cb-1f3ff-2642",
  54624. "uc_output": "1f3cb-1f3ff-200d-2642-fe0f",
  54625. "uc_match": "1f3cb-fe0f-1f3ff-2642-fe0f",
  54626. "uc_greedy": "1f3cb-1f3ff-2642",
  54627. "shortnames": [":man_lifting_weights_dark_skin_tone:"],
  54628. "category": "activity"
  54629. },
  54630. ":man_mage_tone1:": {
  54631. "uc_base": "1f9d9-1f3fb-2642",
  54632. "uc_output": "1f9d9-1f3fb-200d-2642-fe0f",
  54633. "uc_match": "1f9d9-1f3fb-2642-fe0f",
  54634. "uc_greedy": "1f9d9-1f3fb-2642",
  54635. "shortnames": [":man_mage_light_skin_tone:"],
  54636. "category": "people"
  54637. },
  54638. ":man_mage_tone2:": {
  54639. "uc_base": "1f9d9-1f3fc-2642",
  54640. "uc_output": "1f9d9-1f3fc-200d-2642-fe0f",
  54641. "uc_match": "1f9d9-1f3fc-2642-fe0f",
  54642. "uc_greedy": "1f9d9-1f3fc-2642",
  54643. "shortnames": [":man_mage_medium_light_skin_tone:"],
  54644. "category": "people"
  54645. },
  54646. ":man_mage_tone3:": {
  54647. "uc_base": "1f9d9-1f3fd-2642",
  54648. "uc_output": "1f9d9-1f3fd-200d-2642-fe0f",
  54649. "uc_match": "1f9d9-1f3fd-2642-fe0f",
  54650. "uc_greedy": "1f9d9-1f3fd-2642",
  54651. "shortnames": [":man_mage_medium_skin_tone:"],
  54652. "category": "people"
  54653. },
  54654. ":man_mage_tone4:": {
  54655. "uc_base": "1f9d9-1f3fe-2642",
  54656. "uc_output": "1f9d9-1f3fe-200d-2642-fe0f",
  54657. "uc_match": "1f9d9-1f3fe-2642-fe0f",
  54658. "uc_greedy": "1f9d9-1f3fe-2642",
  54659. "shortnames": [":man_mage_medium_dark_skin_tone:"],
  54660. "category": "people"
  54661. },
  54662. ":man_mage_tone5:": {
  54663. "uc_base": "1f9d9-1f3ff-2642",
  54664. "uc_output": "1f9d9-1f3ff-200d-2642-fe0f",
  54665. "uc_match": "1f9d9-1f3ff-2642-fe0f",
  54666. "uc_greedy": "1f9d9-1f3ff-2642",
  54667. "shortnames": [":man_mage_dark_skin_tone:"],
  54668. "category": "people"
  54669. },
  54670. ":man_mountain_biking_tone1:": {
  54671. "uc_base": "1f6b5-1f3fb-2642",
  54672. "uc_output": "1f6b5-1f3fb-200d-2642-fe0f",
  54673. "uc_match": "1f6b5-1f3fb-2642-fe0f",
  54674. "uc_greedy": "1f6b5-1f3fb-2642",
  54675. "shortnames": [":man_mountain_biking_light_skin_tone:"],
  54676. "category": "activity"
  54677. },
  54678. ":man_mountain_biking_tone2:": {
  54679. "uc_base": "1f6b5-1f3fc-2642",
  54680. "uc_output": "1f6b5-1f3fc-200d-2642-fe0f",
  54681. "uc_match": "1f6b5-1f3fc-2642-fe0f",
  54682. "uc_greedy": "1f6b5-1f3fc-2642",
  54683. "shortnames": [":man_mountain_biking_medium_light_skin_tone:"],
  54684. "category": "activity"
  54685. },
  54686. ":man_mountain_biking_tone3:": {
  54687. "uc_base": "1f6b5-1f3fd-2642",
  54688. "uc_output": "1f6b5-1f3fd-200d-2642-fe0f",
  54689. "uc_match": "1f6b5-1f3fd-2642-fe0f",
  54690. "uc_greedy": "1f6b5-1f3fd-2642",
  54691. "shortnames": [":man_mountain_biking_medium_skin_tone:"],
  54692. "category": "activity"
  54693. },
  54694. ":man_mountain_biking_tone4:": {
  54695. "uc_base": "1f6b5-1f3fe-2642",
  54696. "uc_output": "1f6b5-1f3fe-200d-2642-fe0f",
  54697. "uc_match": "1f6b5-1f3fe-2642-fe0f",
  54698. "uc_greedy": "1f6b5-1f3fe-2642",
  54699. "shortnames": [":man_mountain_biking_medium_dark_skin_tone:"],
  54700. "category": "activity"
  54701. },
  54702. ":man_mountain_biking_tone5:": {
  54703. "uc_base": "1f6b5-1f3ff-2642",
  54704. "uc_output": "1f6b5-1f3ff-200d-2642-fe0f",
  54705. "uc_match": "1f6b5-1f3ff-2642-fe0f",
  54706. "uc_greedy": "1f6b5-1f3ff-2642",
  54707. "shortnames": [":man_mountain_biking_dark_skin_tone:"],
  54708. "category": "activity"
  54709. },
  54710. ":man_pilot_tone1:": {
  54711. "uc_base": "1f468-1f3fb-2708",
  54712. "uc_output": "1f468-1f3fb-200d-2708-fe0f",
  54713. "uc_match": "1f468-1f3fb-2708-fe0f",
  54714. "uc_greedy": "1f468-1f3fb-2708",
  54715. "shortnames": [":man_pilot_light_skin_tone:"],
  54716. "category": "people"
  54717. },
  54718. ":man_pilot_tone2:": {
  54719. "uc_base": "1f468-1f3fc-2708",
  54720. "uc_output": "1f468-1f3fc-200d-2708-fe0f",
  54721. "uc_match": "1f468-1f3fc-2708-fe0f",
  54722. "uc_greedy": "1f468-1f3fc-2708",
  54723. "shortnames": [":man_pilot_medium_light_skin_tone:"],
  54724. "category": "people"
  54725. },
  54726. ":man_pilot_tone3:": {
  54727. "uc_base": "1f468-1f3fd-2708",
  54728. "uc_output": "1f468-1f3fd-200d-2708-fe0f",
  54729. "uc_match": "1f468-1f3fd-2708-fe0f",
  54730. "uc_greedy": "1f468-1f3fd-2708",
  54731. "shortnames": [":man_pilot_medium_skin_tone:"],
  54732. "category": "people"
  54733. },
  54734. ":man_pilot_tone4:": {
  54735. "uc_base": "1f468-1f3fe-2708",
  54736. "uc_output": "1f468-1f3fe-200d-2708-fe0f",
  54737. "uc_match": "1f468-1f3fe-2708-fe0f",
  54738. "uc_greedy": "1f468-1f3fe-2708",
  54739. "shortnames": [":man_pilot_medium_dark_skin_tone:"],
  54740. "category": "people"
  54741. },
  54742. ":man_pilot_tone5:": {
  54743. "uc_base": "1f468-1f3ff-2708",
  54744. "uc_output": "1f468-1f3ff-200d-2708-fe0f",
  54745. "uc_match": "1f468-1f3ff-2708-fe0f",
  54746. "uc_greedy": "1f468-1f3ff-2708",
  54747. "shortnames": [":man_pilot_dark_skin_tone:"],
  54748. "category": "people"
  54749. },
  54750. ":man_playing_handball_tone1:": {
  54751. "uc_base": "1f93e-1f3fb-2642",
  54752. "uc_output": "1f93e-1f3fb-200d-2642-fe0f",
  54753. "uc_match": "1f93e-1f3fb-2642-fe0f",
  54754. "uc_greedy": "1f93e-1f3fb-2642",
  54755. "shortnames": [":man_playing_handball_light_skin_tone:"],
  54756. "category": "activity"
  54757. },
  54758. ":man_playing_handball_tone2:": {
  54759. "uc_base": "1f93e-1f3fc-2642",
  54760. "uc_output": "1f93e-1f3fc-200d-2642-fe0f",
  54761. "uc_match": "1f93e-1f3fc-2642-fe0f",
  54762. "uc_greedy": "1f93e-1f3fc-2642",
  54763. "shortnames": [":man_playing_handball_medium_light_skin_tone:"],
  54764. "category": "activity"
  54765. },
  54766. ":man_playing_handball_tone3:": {
  54767. "uc_base": "1f93e-1f3fd-2642",
  54768. "uc_output": "1f93e-1f3fd-200d-2642-fe0f",
  54769. "uc_match": "1f93e-1f3fd-2642-fe0f",
  54770. "uc_greedy": "1f93e-1f3fd-2642",
  54771. "shortnames": [":man_playing_handball_medium_skin_tone:"],
  54772. "category": "activity"
  54773. },
  54774. ":man_playing_handball_tone4:": {
  54775. "uc_base": "1f93e-1f3fe-2642",
  54776. "uc_output": "1f93e-1f3fe-200d-2642-fe0f",
  54777. "uc_match": "1f93e-1f3fe-2642-fe0f",
  54778. "uc_greedy": "1f93e-1f3fe-2642",
  54779. "shortnames": [":man_playing_handball_medium_dark_skin_tone:"],
  54780. "category": "activity"
  54781. },
  54782. ":man_playing_handball_tone5:": {
  54783. "uc_base": "1f93e-1f3ff-2642",
  54784. "uc_output": "1f93e-1f3ff-200d-2642-fe0f",
  54785. "uc_match": "1f93e-1f3ff-2642-fe0f",
  54786. "uc_greedy": "1f93e-1f3ff-2642",
  54787. "shortnames": [":man_playing_handball_dark_skin_tone:"],
  54788. "category": "activity"
  54789. },
  54790. ":man_playing_water_polo_tone1:": {
  54791. "uc_base": "1f93d-1f3fb-2642",
  54792. "uc_output": "1f93d-1f3fb-200d-2642-fe0f",
  54793. "uc_match": "1f93d-1f3fb-2642-fe0f",
  54794. "uc_greedy": "1f93d-1f3fb-2642",
  54795. "shortnames": [":man_playing_water_polo_light_skin_tone:"],
  54796. "category": "activity"
  54797. },
  54798. ":man_playing_water_polo_tone2:": {
  54799. "uc_base": "1f93d-1f3fc-2642",
  54800. "uc_output": "1f93d-1f3fc-200d-2642-fe0f",
  54801. "uc_match": "1f93d-1f3fc-2642-fe0f",
  54802. "uc_greedy": "1f93d-1f3fc-2642",
  54803. "shortnames": [":man_playing_water_polo_medium_light_skin_tone:"],
  54804. "category": "activity"
  54805. },
  54806. ":man_playing_water_polo_tone3:": {
  54807. "uc_base": "1f93d-1f3fd-2642",
  54808. "uc_output": "1f93d-1f3fd-200d-2642-fe0f",
  54809. "uc_match": "1f93d-1f3fd-2642-fe0f",
  54810. "uc_greedy": "1f93d-1f3fd-2642",
  54811. "shortnames": [":man_playing_water_polo_medium_skin_tone:"],
  54812. "category": "activity"
  54813. },
  54814. ":man_playing_water_polo_tone4:": {
  54815. "uc_base": "1f93d-1f3fe-2642",
  54816. "uc_output": "1f93d-1f3fe-200d-2642-fe0f",
  54817. "uc_match": "1f93d-1f3fe-2642-fe0f",
  54818. "uc_greedy": "1f93d-1f3fe-2642",
  54819. "shortnames": [":man_playing_water_polo_medium_dark_skin_tone:"],
  54820. "category": "activity"
  54821. },
  54822. ":man_playing_water_polo_tone5:": {
  54823. "uc_base": "1f93d-1f3ff-2642",
  54824. "uc_output": "1f93d-1f3ff-200d-2642-fe0f",
  54825. "uc_match": "1f93d-1f3ff-2642-fe0f",
  54826. "uc_greedy": "1f93d-1f3ff-2642",
  54827. "shortnames": [":man_playing_water_polo_dark_skin_tone:"],
  54828. "category": "activity"
  54829. },
  54830. ":man_police_officer_tone1:": {
  54831. "uc_base": "1f46e-1f3fb-2642",
  54832. "uc_output": "1f46e-1f3fb-200d-2642-fe0f",
  54833. "uc_match": "1f46e-1f3fb-2642-fe0f",
  54834. "uc_greedy": "1f46e-1f3fb-2642",
  54835. "shortnames": [":man_police_officer_light_skin_tone:"],
  54836. "category": "people"
  54837. },
  54838. ":man_police_officer_tone2:": {
  54839. "uc_base": "1f46e-1f3fc-2642",
  54840. "uc_output": "1f46e-1f3fc-200d-2642-fe0f",
  54841. "uc_match": "1f46e-1f3fc-2642-fe0f",
  54842. "uc_greedy": "1f46e-1f3fc-2642",
  54843. "shortnames": [":man_police_officer_medium_light_skin_tone:"],
  54844. "category": "people"
  54845. },
  54846. ":man_police_officer_tone3:": {
  54847. "uc_base": "1f46e-1f3fd-2642",
  54848. "uc_output": "1f46e-1f3fd-200d-2642-fe0f",
  54849. "uc_match": "1f46e-1f3fd-2642-fe0f",
  54850. "uc_greedy": "1f46e-1f3fd-2642",
  54851. "shortnames": [":man_police_officer_medium_skin_tone:"],
  54852. "category": "people"
  54853. },
  54854. ":man_police_officer_tone4:": {
  54855. "uc_base": "1f46e-1f3fe-2642",
  54856. "uc_output": "1f46e-1f3fe-200d-2642-fe0f",
  54857. "uc_match": "1f46e-1f3fe-2642-fe0f",
  54858. "uc_greedy": "1f46e-1f3fe-2642",
  54859. "shortnames": [":man_police_officer_medium_dark_skin_tone:"],
  54860. "category": "people"
  54861. },
  54862. ":man_police_officer_tone5:": {
  54863. "uc_base": "1f46e-1f3ff-2642",
  54864. "uc_output": "1f46e-1f3ff-200d-2642-fe0f",
  54865. "uc_match": "1f46e-1f3ff-2642-fe0f",
  54866. "uc_greedy": "1f46e-1f3ff-2642",
  54867. "shortnames": [":man_police_officer_dark_skin_tone:"],
  54868. "category": "people"
  54869. },
  54870. ":man_pouting_tone1:": {
  54871. "uc_base": "1f64e-1f3fb-2642",
  54872. "uc_output": "1f64e-1f3fb-200d-2642-fe0f",
  54873. "uc_match": "1f64e-1f3fb-2642-fe0f",
  54874. "uc_greedy": "1f64e-1f3fb-2642",
  54875. "shortnames": [":man_pouting_light_skin_tone:"],
  54876. "category": "people"
  54877. },
  54878. ":man_pouting_tone2:": {
  54879. "uc_base": "1f64e-1f3fc-2642",
  54880. "uc_output": "1f64e-1f3fc-200d-2642-fe0f",
  54881. "uc_match": "1f64e-1f3fc-2642-fe0f",
  54882. "uc_greedy": "1f64e-1f3fc-2642",
  54883. "shortnames": [":man_pouting_medium_light_skin_tone:"],
  54884. "category": "people"
  54885. },
  54886. ":man_pouting_tone3:": {
  54887. "uc_base": "1f64e-1f3fd-2642",
  54888. "uc_output": "1f64e-1f3fd-200d-2642-fe0f",
  54889. "uc_match": "1f64e-1f3fd-2642-fe0f",
  54890. "uc_greedy": "1f64e-1f3fd-2642",
  54891. "shortnames": [":man_pouting_medium_skin_tone:"],
  54892. "category": "people"
  54893. },
  54894. ":man_pouting_tone4:": {
  54895. "uc_base": "1f64e-1f3fe-2642",
  54896. "uc_output": "1f64e-1f3fe-200d-2642-fe0f",
  54897. "uc_match": "1f64e-1f3fe-2642-fe0f",
  54898. "uc_greedy": "1f64e-1f3fe-2642",
  54899. "shortnames": [":man_pouting_medium_dark_skin_tone:"],
  54900. "category": "people"
  54901. },
  54902. ":man_pouting_tone5:": {
  54903. "uc_base": "1f64e-1f3ff-2642",
  54904. "uc_output": "1f64e-1f3ff-200d-2642-fe0f",
  54905. "uc_match": "1f64e-1f3ff-2642-fe0f",
  54906. "uc_greedy": "1f64e-1f3ff-2642",
  54907. "shortnames": [":man_pouting_dark_skin_tone:"],
  54908. "category": "people"
  54909. },
  54910. ":man_raising_hand_tone1:": {
  54911. "uc_base": "1f64b-1f3fb-2642",
  54912. "uc_output": "1f64b-1f3fb-200d-2642-fe0f",
  54913. "uc_match": "1f64b-1f3fb-2642-fe0f",
  54914. "uc_greedy": "1f64b-1f3fb-2642",
  54915. "shortnames": [":man_raising_hand_light_skin_tone:"],
  54916. "category": "people"
  54917. },
  54918. ":man_raising_hand_tone2:": {
  54919. "uc_base": "1f64b-1f3fc-2642",
  54920. "uc_output": "1f64b-1f3fc-200d-2642-fe0f",
  54921. "uc_match": "1f64b-1f3fc-2642-fe0f",
  54922. "uc_greedy": "1f64b-1f3fc-2642",
  54923. "shortnames": [":man_raising_hand_medium_light_skin_tone:"],
  54924. "category": "people"
  54925. },
  54926. ":man_raising_hand_tone3:": {
  54927. "uc_base": "1f64b-1f3fd-2642",
  54928. "uc_output": "1f64b-1f3fd-200d-2642-fe0f",
  54929. "uc_match": "1f64b-1f3fd-2642-fe0f",
  54930. "uc_greedy": "1f64b-1f3fd-2642",
  54931. "shortnames": [":man_raising_hand_medium_skin_tone:"],
  54932. "category": "people"
  54933. },
  54934. ":man_raising_hand_tone4:": {
  54935. "uc_base": "1f64b-1f3fe-2642",
  54936. "uc_output": "1f64b-1f3fe-200d-2642-fe0f",
  54937. "uc_match": "1f64b-1f3fe-2642-fe0f",
  54938. "uc_greedy": "1f64b-1f3fe-2642",
  54939. "shortnames": [":man_raising_hand_medium_dark_skin_tone:"],
  54940. "category": "people"
  54941. },
  54942. ":man_raising_hand_tone5:": {
  54943. "uc_base": "1f64b-1f3ff-2642",
  54944. "uc_output": "1f64b-1f3ff-200d-2642-fe0f",
  54945. "uc_match": "1f64b-1f3ff-2642-fe0f",
  54946. "uc_greedy": "1f64b-1f3ff-2642",
  54947. "shortnames": [":man_raising_hand_dark_skin_tone:"],
  54948. "category": "people"
  54949. },
  54950. ":man_rowing_boat_tone1:": {
  54951. "uc_base": "1f6a3-1f3fb-2642",
  54952. "uc_output": "1f6a3-1f3fb-200d-2642-fe0f",
  54953. "uc_match": "1f6a3-1f3fb-2642-fe0f",
  54954. "uc_greedy": "1f6a3-1f3fb-2642",
  54955. "shortnames": [":man_rowing_boat_light_skin_tone:"],
  54956. "category": "activity"
  54957. },
  54958. ":man_rowing_boat_tone2:": {
  54959. "uc_base": "1f6a3-1f3fc-2642",
  54960. "uc_output": "1f6a3-1f3fc-200d-2642-fe0f",
  54961. "uc_match": "1f6a3-1f3fc-2642-fe0f",
  54962. "uc_greedy": "1f6a3-1f3fc-2642",
  54963. "shortnames": [":man_rowing_boat_medium_light_skin_tone:"],
  54964. "category": "activity"
  54965. },
  54966. ":man_rowing_boat_tone3:": {
  54967. "uc_base": "1f6a3-1f3fd-2642",
  54968. "uc_output": "1f6a3-1f3fd-200d-2642-fe0f",
  54969. "uc_match": "1f6a3-1f3fd-2642-fe0f",
  54970. "uc_greedy": "1f6a3-1f3fd-2642",
  54971. "shortnames": [":man_rowing_boat_medium_skin_tone:"],
  54972. "category": "activity"
  54973. },
  54974. ":man_rowing_boat_tone4:": {
  54975. "uc_base": "1f6a3-1f3fe-2642",
  54976. "uc_output": "1f6a3-1f3fe-200d-2642-fe0f",
  54977. "uc_match": "1f6a3-1f3fe-2642-fe0f",
  54978. "uc_greedy": "1f6a3-1f3fe-2642",
  54979. "shortnames": [":man_rowing_boat_medium_dark_skin_tone:"],
  54980. "category": "activity"
  54981. },
  54982. ":man_rowing_boat_tone5:": {
  54983. "uc_base": "1f6a3-1f3ff-2642",
  54984. "uc_output": "1f6a3-1f3ff-200d-2642-fe0f",
  54985. "uc_match": "1f6a3-1f3ff-2642-fe0f",
  54986. "uc_greedy": "1f6a3-1f3ff-2642",
  54987. "shortnames": [":man_rowing_boat_dark_skin_tone:"],
  54988. "category": "activity"
  54989. },
  54990. ":man_running_tone1:": {
  54991. "uc_base": "1f3c3-1f3fb-2642",
  54992. "uc_output": "1f3c3-1f3fb-200d-2642-fe0f",
  54993. "uc_match": "1f3c3-1f3fb-2642-fe0f",
  54994. "uc_greedy": "1f3c3-1f3fb-2642",
  54995. "shortnames": [":man_running_light_skin_tone:"],
  54996. "category": "people"
  54997. },
  54998. ":man_running_tone2:": {
  54999. "uc_base": "1f3c3-1f3fc-2642",
  55000. "uc_output": "1f3c3-1f3fc-200d-2642-fe0f",
  55001. "uc_match": "1f3c3-1f3fc-2642-fe0f",
  55002. "uc_greedy": "1f3c3-1f3fc-2642",
  55003. "shortnames": [":man_running_medium_light_skin_tone:"],
  55004. "category": "people"
  55005. },
  55006. ":man_running_tone3:": {
  55007. "uc_base": "1f3c3-1f3fd-2642",
  55008. "uc_output": "1f3c3-1f3fd-200d-2642-fe0f",
  55009. "uc_match": "1f3c3-1f3fd-2642-fe0f",
  55010. "uc_greedy": "1f3c3-1f3fd-2642",
  55011. "shortnames": [":man_running_medium_skin_tone:"],
  55012. "category": "people"
  55013. },
  55014. ":man_running_tone4:": {
  55015. "uc_base": "1f3c3-1f3fe-2642",
  55016. "uc_output": "1f3c3-1f3fe-200d-2642-fe0f",
  55017. "uc_match": "1f3c3-1f3fe-2642-fe0f",
  55018. "uc_greedy": "1f3c3-1f3fe-2642",
  55019. "shortnames": [":man_running_medium_dark_skin_tone:"],
  55020. "category": "people"
  55021. },
  55022. ":man_running_tone5:": {
  55023. "uc_base": "1f3c3-1f3ff-2642",
  55024. "uc_output": "1f3c3-1f3ff-200d-2642-fe0f",
  55025. "uc_match": "1f3c3-1f3ff-2642-fe0f",
  55026. "uc_greedy": "1f3c3-1f3ff-2642",
  55027. "shortnames": [":man_running_dark_skin_tone:"],
  55028. "category": "people"
  55029. },
  55030. ":man_shrugging_tone1:": {
  55031. "uc_base": "1f937-1f3fb-2642",
  55032. "uc_output": "1f937-1f3fb-200d-2642-fe0f",
  55033. "uc_match": "1f937-1f3fb-2642-fe0f",
  55034. "uc_greedy": "1f937-1f3fb-2642",
  55035. "shortnames": [":man_shrugging_light_skin_tone:"],
  55036. "category": "people"
  55037. },
  55038. ":man_shrugging_tone2:": {
  55039. "uc_base": "1f937-1f3fc-2642",
  55040. "uc_output": "1f937-1f3fc-200d-2642-fe0f",
  55041. "uc_match": "1f937-1f3fc-2642-fe0f",
  55042. "uc_greedy": "1f937-1f3fc-2642",
  55043. "shortnames": [":man_shrugging_medium_light_skin_tone:"],
  55044. "category": "people"
  55045. },
  55046. ":man_shrugging_tone3:": {
  55047. "uc_base": "1f937-1f3fd-2642",
  55048. "uc_output": "1f937-1f3fd-200d-2642-fe0f",
  55049. "uc_match": "1f937-1f3fd-2642-fe0f",
  55050. "uc_greedy": "1f937-1f3fd-2642",
  55051. "shortnames": [":man_shrugging_medium_skin_tone:"],
  55052. "category": "people"
  55053. },
  55054. ":man_shrugging_tone4:": {
  55055. "uc_base": "1f937-1f3fe-2642",
  55056. "uc_output": "1f937-1f3fe-200d-2642-fe0f",
  55057. "uc_match": "1f937-1f3fe-2642-fe0f",
  55058. "uc_greedy": "1f937-1f3fe-2642",
  55059. "shortnames": [":man_shrugging_medium_dark_skin_tone:"],
  55060. "category": "people"
  55061. },
  55062. ":man_shrugging_tone5:": {
  55063. "uc_base": "1f937-1f3ff-2642",
  55064. "uc_output": "1f937-1f3ff-200d-2642-fe0f",
  55065. "uc_match": "1f937-1f3ff-2642-fe0f",
  55066. "uc_greedy": "1f937-1f3ff-2642",
  55067. "shortnames": [":man_shrugging_dark_skin_tone:"],
  55068. "category": "people"
  55069. },
  55070. ":man_surfing_tone1:": {
  55071. "uc_base": "1f3c4-1f3fb-2642",
  55072. "uc_output": "1f3c4-1f3fb-200d-2642-fe0f",
  55073. "uc_match": "1f3c4-1f3fb-2642-fe0f",
  55074. "uc_greedy": "1f3c4-1f3fb-2642",
  55075. "shortnames": [":man_surfing_light_skin_tone:"],
  55076. "category": "activity"
  55077. },
  55078. ":man_surfing_tone2:": {
  55079. "uc_base": "1f3c4-1f3fc-2642",
  55080. "uc_output": "1f3c4-1f3fc-200d-2642-fe0f",
  55081. "uc_match": "1f3c4-1f3fc-2642-fe0f",
  55082. "uc_greedy": "1f3c4-1f3fc-2642",
  55083. "shortnames": [":man_surfing_medium_light_skin_tone:"],
  55084. "category": "activity"
  55085. },
  55086. ":man_surfing_tone3:": {
  55087. "uc_base": "1f3c4-1f3fd-2642",
  55088. "uc_output": "1f3c4-1f3fd-200d-2642-fe0f",
  55089. "uc_match": "1f3c4-1f3fd-2642-fe0f",
  55090. "uc_greedy": "1f3c4-1f3fd-2642",
  55091. "shortnames": [":man_surfing_medium_skin_tone:"],
  55092. "category": "activity"
  55093. },
  55094. ":man_surfing_tone4:": {
  55095. "uc_base": "1f3c4-1f3fe-2642",
  55096. "uc_output": "1f3c4-1f3fe-200d-2642-fe0f",
  55097. "uc_match": "1f3c4-1f3fe-2642-fe0f",
  55098. "uc_greedy": "1f3c4-1f3fe-2642",
  55099. "shortnames": [":man_surfing_medium_dark_skin_tone:"],
  55100. "category": "activity"
  55101. },
  55102. ":man_surfing_tone5:": {
  55103. "uc_base": "1f3c4-1f3ff-2642",
  55104. "uc_output": "1f3c4-1f3ff-200d-2642-fe0f",
  55105. "uc_match": "1f3c4-1f3ff-2642-fe0f",
  55106. "uc_greedy": "1f3c4-1f3ff-2642",
  55107. "shortnames": [":man_surfing_dark_skin_tone:"],
  55108. "category": "activity"
  55109. },
  55110. ":man_swimming_tone1:": {
  55111. "uc_base": "1f3ca-1f3fb-2642",
  55112. "uc_output": "1f3ca-1f3fb-200d-2642-fe0f",
  55113. "uc_match": "1f3ca-1f3fb-2642-fe0f",
  55114. "uc_greedy": "1f3ca-1f3fb-2642",
  55115. "shortnames": [":man_swimming_light_skin_tone:"],
  55116. "category": "activity"
  55117. },
  55118. ":man_swimming_tone2:": {
  55119. "uc_base": "1f3ca-1f3fc-2642",
  55120. "uc_output": "1f3ca-1f3fc-200d-2642-fe0f",
  55121. "uc_match": "1f3ca-1f3fc-2642-fe0f",
  55122. "uc_greedy": "1f3ca-1f3fc-2642",
  55123. "shortnames": [":man_swimming_medium_light_skin_tone:"],
  55124. "category": "activity"
  55125. },
  55126. ":man_swimming_tone3:": {
  55127. "uc_base": "1f3ca-1f3fd-2642",
  55128. "uc_output": "1f3ca-1f3fd-200d-2642-fe0f",
  55129. "uc_match": "1f3ca-1f3fd-2642-fe0f",
  55130. "uc_greedy": "1f3ca-1f3fd-2642",
  55131. "shortnames": [":man_swimming_medium_skin_tone:"],
  55132. "category": "activity"
  55133. },
  55134. ":man_swimming_tone4:": {
  55135. "uc_base": "1f3ca-1f3fe-2642",
  55136. "uc_output": "1f3ca-1f3fe-200d-2642-fe0f",
  55137. "uc_match": "1f3ca-1f3fe-2642-fe0f",
  55138. "uc_greedy": "1f3ca-1f3fe-2642",
  55139. "shortnames": [":man_swimming_medium_dark_skin_tone:"],
  55140. "category": "activity"
  55141. },
  55142. ":man_swimming_tone5:": {
  55143. "uc_base": "1f3ca-1f3ff-2642",
  55144. "uc_output": "1f3ca-1f3ff-200d-2642-fe0f",
  55145. "uc_match": "1f3ca-1f3ff-2642-fe0f",
  55146. "uc_greedy": "1f3ca-1f3ff-2642",
  55147. "shortnames": [":man_swimming_dark_skin_tone:"],
  55148. "category": "activity"
  55149. },
  55150. ":man_tipping_hand_tone1:": {
  55151. "uc_base": "1f481-1f3fb-2642",
  55152. "uc_output": "1f481-1f3fb-200d-2642-fe0f",
  55153. "uc_match": "1f481-1f3fb-2642-fe0f",
  55154. "uc_greedy": "1f481-1f3fb-2642",
  55155. "shortnames": [":man_tipping_hand_light_skin_tone:"],
  55156. "category": "people"
  55157. },
  55158. ":man_tipping_hand_tone2:": {
  55159. "uc_base": "1f481-1f3fc-2642",
  55160. "uc_output": "1f481-1f3fc-200d-2642-fe0f",
  55161. "uc_match": "1f481-1f3fc-2642-fe0f",
  55162. "uc_greedy": "1f481-1f3fc-2642",
  55163. "shortnames": [":man_tipping_hand_medium_light_skin_tone:"],
  55164. "category": "people"
  55165. },
  55166. ":man_tipping_hand_tone3:": {
  55167. "uc_base": "1f481-1f3fd-2642",
  55168. "uc_output": "1f481-1f3fd-200d-2642-fe0f",
  55169. "uc_match": "1f481-1f3fd-2642-fe0f",
  55170. "uc_greedy": "1f481-1f3fd-2642",
  55171. "shortnames": [":man_tipping_hand_medium_skin_tone:"],
  55172. "category": "people"
  55173. },
  55174. ":man_tipping_hand_tone4:": {
  55175. "uc_base": "1f481-1f3fe-2642",
  55176. "uc_output": "1f481-1f3fe-200d-2642-fe0f",
  55177. "uc_match": "1f481-1f3fe-2642-fe0f",
  55178. "uc_greedy": "1f481-1f3fe-2642",
  55179. "shortnames": [":man_tipping_hand_medium_dark_skin_tone:"],
  55180. "category": "people"
  55181. },
  55182. ":man_tipping_hand_tone5:": {
  55183. "uc_base": "1f481-1f3ff-2642",
  55184. "uc_output": "1f481-1f3ff-200d-2642-fe0f",
  55185. "uc_match": "1f481-1f3ff-2642-fe0f",
  55186. "uc_greedy": "1f481-1f3ff-2642",
  55187. "shortnames": [":man_tipping_hand_dark_skin_tone:"],
  55188. "category": "people"
  55189. },
  55190. ":man_vampire_tone1:": {
  55191. "uc_base": "1f9db-1f3fb-2642",
  55192. "uc_output": "1f9db-1f3fb-200d-2642-fe0f",
  55193. "uc_match": "1f9db-1f3fb-2642-fe0f",
  55194. "uc_greedy": "1f9db-1f3fb-2642",
  55195. "shortnames": [":man_vampire_light_skin_tone:"],
  55196. "category": "people"
  55197. },
  55198. ":man_vampire_tone2:": {
  55199. "uc_base": "1f9db-1f3fc-2642",
  55200. "uc_output": "1f9db-1f3fc-200d-2642-fe0f",
  55201. "uc_match": "1f9db-1f3fc-2642-fe0f",
  55202. "uc_greedy": "1f9db-1f3fc-2642",
  55203. "shortnames": [":man_vampire_medium_light_skin_tone:"],
  55204. "category": "people"
  55205. },
  55206. ":man_vampire_tone3:": {
  55207. "uc_base": "1f9db-1f3fd-2642",
  55208. "uc_output": "1f9db-1f3fd-200d-2642-fe0f",
  55209. "uc_match": "1f9db-1f3fd-2642-fe0f",
  55210. "uc_greedy": "1f9db-1f3fd-2642",
  55211. "shortnames": [":man_vampire_medium_skin_tone:"],
  55212. "category": "people"
  55213. },
  55214. ":man_vampire_tone4:": {
  55215. "uc_base": "1f9db-1f3fe-2642",
  55216. "uc_output": "1f9db-1f3fe-200d-2642-fe0f",
  55217. "uc_match": "1f9db-1f3fe-2642-fe0f",
  55218. "uc_greedy": "1f9db-1f3fe-2642",
  55219. "shortnames": [":man_vampire_medium_dark_skin_tone:"],
  55220. "category": "people"
  55221. },
  55222. ":man_vampire_tone5:": {
  55223. "uc_base": "1f9db-1f3ff-2642",
  55224. "uc_output": "1f9db-1f3ff-200d-2642-fe0f",
  55225. "uc_match": "1f9db-1f3ff-2642-fe0f",
  55226. "uc_greedy": "1f9db-1f3ff-2642",
  55227. "shortnames": [":man_vampire_dark_skin_tone:"],
  55228. "category": "people"
  55229. },
  55230. ":man_walking_tone1:": {
  55231. "uc_base": "1f6b6-1f3fb-2642",
  55232. "uc_output": "1f6b6-1f3fb-200d-2642-fe0f",
  55233. "uc_match": "1f6b6-1f3fb-2642-fe0f",
  55234. "uc_greedy": "1f6b6-1f3fb-2642",
  55235. "shortnames": [":man_walking_light_skin_tone:"],
  55236. "category": "people"
  55237. },
  55238. ":man_walking_tone2:": {
  55239. "uc_base": "1f6b6-1f3fc-2642",
  55240. "uc_output": "1f6b6-1f3fc-200d-2642-fe0f",
  55241. "uc_match": "1f6b6-1f3fc-2642-fe0f",
  55242. "uc_greedy": "1f6b6-1f3fc-2642",
  55243. "shortnames": [":man_walking_medium_light_skin_tone:"],
  55244. "category": "people"
  55245. },
  55246. ":man_walking_tone3:": {
  55247. "uc_base": "1f6b6-1f3fd-2642",
  55248. "uc_output": "1f6b6-1f3fd-200d-2642-fe0f",
  55249. "uc_match": "1f6b6-1f3fd-2642-fe0f",
  55250. "uc_greedy": "1f6b6-1f3fd-2642",
  55251. "shortnames": [":man_walking_medium_skin_tone:"],
  55252. "category": "people"
  55253. },
  55254. ":man_walking_tone4:": {
  55255. "uc_base": "1f6b6-1f3fe-2642",
  55256. "uc_output": "1f6b6-1f3fe-200d-2642-fe0f",
  55257. "uc_match": "1f6b6-1f3fe-2642-fe0f",
  55258. "uc_greedy": "1f6b6-1f3fe-2642",
  55259. "shortnames": [":man_walking_medium_dark_skin_tone:"],
  55260. "category": "people"
  55261. },
  55262. ":man_walking_tone5:": {
  55263. "uc_base": "1f6b6-1f3ff-2642",
  55264. "uc_output": "1f6b6-1f3ff-200d-2642-fe0f",
  55265. "uc_match": "1f6b6-1f3ff-2642-fe0f",
  55266. "uc_greedy": "1f6b6-1f3ff-2642",
  55267. "shortnames": [":man_walking_dark_skin_tone:"],
  55268. "category": "people"
  55269. },
  55270. ":man_wearing_turban_tone1:": {
  55271. "uc_base": "1f473-1f3fb-2642",
  55272. "uc_output": "1f473-1f3fb-200d-2642-fe0f",
  55273. "uc_match": "1f473-1f3fb-2642-fe0f",
  55274. "uc_greedy": "1f473-1f3fb-2642",
  55275. "shortnames": [":man_wearing_turban_light_skin_tone:"],
  55276. "category": "people"
  55277. },
  55278. ":man_wearing_turban_tone2:": {
  55279. "uc_base": "1f473-1f3fc-2642",
  55280. "uc_output": "1f473-1f3fc-200d-2642-fe0f",
  55281. "uc_match": "1f473-1f3fc-2642-fe0f",
  55282. "uc_greedy": "1f473-1f3fc-2642",
  55283. "shortnames": [":man_wearing_turban_medium_light_skin_tone:"],
  55284. "category": "people"
  55285. },
  55286. ":man_wearing_turban_tone3:": {
  55287. "uc_base": "1f473-1f3fd-2642",
  55288. "uc_output": "1f473-1f3fd-200d-2642-fe0f",
  55289. "uc_match": "1f473-1f3fd-2642-fe0f",
  55290. "uc_greedy": "1f473-1f3fd-2642",
  55291. "shortnames": [":man_wearing_turban_medium_skin_tone:"],
  55292. "category": "people"
  55293. },
  55294. ":man_wearing_turban_tone4:": {
  55295. "uc_base": "1f473-1f3fe-2642",
  55296. "uc_output": "1f473-1f3fe-200d-2642-fe0f",
  55297. "uc_match": "1f473-1f3fe-2642-fe0f",
  55298. "uc_greedy": "1f473-1f3fe-2642",
  55299. "shortnames": [":man_wearing_turban_medium_dark_skin_tone:"],
  55300. "category": "people"
  55301. },
  55302. ":man_wearing_turban_tone5:": {
  55303. "uc_base": "1f473-1f3ff-2642",
  55304. "uc_output": "1f473-1f3ff-200d-2642-fe0f",
  55305. "uc_match": "1f473-1f3ff-2642-fe0f",
  55306. "uc_greedy": "1f473-1f3ff-2642",
  55307. "shortnames": [":man_wearing_turban_dark_skin_tone:"],
  55308. "category": "people"
  55309. },
  55310. ":mermaid_tone1:": {
  55311. "uc_base": "1f9dc-1f3fb-2640",
  55312. "uc_output": "1f9dc-1f3fb-200d-2640-fe0f",
  55313. "uc_match": "1f9dc-1f3fb-2640-fe0f",
  55314. "uc_greedy": "1f9dc-1f3fb-2640",
  55315. "shortnames": [":mermaid_light_skin_tone:"],
  55316. "category": "people"
  55317. },
  55318. ":mermaid_tone2:": {
  55319. "uc_base": "1f9dc-1f3fc-2640",
  55320. "uc_output": "1f9dc-1f3fc-200d-2640-fe0f",
  55321. "uc_match": "1f9dc-1f3fc-2640-fe0f",
  55322. "uc_greedy": "1f9dc-1f3fc-2640",
  55323. "shortnames": [":mermaid_medium_light_skin_tone:"],
  55324. "category": "people"
  55325. },
  55326. ":mermaid_tone3:": {
  55327. "uc_base": "1f9dc-1f3fd-2640",
  55328. "uc_output": "1f9dc-1f3fd-200d-2640-fe0f",
  55329. "uc_match": "1f9dc-1f3fd-2640-fe0f",
  55330. "uc_greedy": "1f9dc-1f3fd-2640",
  55331. "shortnames": [":mermaid_medium_skin_tone:"],
  55332. "category": "people"
  55333. },
  55334. ":mermaid_tone4:": {
  55335. "uc_base": "1f9dc-1f3fe-2640",
  55336. "uc_output": "1f9dc-1f3fe-200d-2640-fe0f",
  55337. "uc_match": "1f9dc-1f3fe-2640-fe0f",
  55338. "uc_greedy": "1f9dc-1f3fe-2640",
  55339. "shortnames": [":mermaid_medium_dark_skin_tone:"],
  55340. "category": "people"
  55341. },
  55342. ":mermaid_tone5:": {
  55343. "uc_base": "1f9dc-1f3ff-2640",
  55344. "uc_output": "1f9dc-1f3ff-200d-2640-fe0f",
  55345. "uc_match": "1f9dc-1f3ff-2640-fe0f",
  55346. "uc_greedy": "1f9dc-1f3ff-2640",
  55347. "shortnames": [":mermaid_dark_skin_tone:"],
  55348. "category": "people"
  55349. },
  55350. ":merman_tone1:": {
  55351. "uc_base": "1f9dc-1f3fb-2642",
  55352. "uc_output": "1f9dc-1f3fb-200d-2642-fe0f",
  55353. "uc_match": "1f9dc-1f3fb-2642-fe0f",
  55354. "uc_greedy": "1f9dc-1f3fb-2642",
  55355. "shortnames": [":merman_light_skin_tone:"],
  55356. "category": "people"
  55357. },
  55358. ":merman_tone2:": {
  55359. "uc_base": "1f9dc-1f3fc-2642",
  55360. "uc_output": "1f9dc-1f3fc-200d-2642-fe0f",
  55361. "uc_match": "1f9dc-1f3fc-2642-fe0f",
  55362. "uc_greedy": "1f9dc-1f3fc-2642",
  55363. "shortnames": [":merman_medium_light_skin_tone:"],
  55364. "category": "people"
  55365. },
  55366. ":merman_tone3:": {
  55367. "uc_base": "1f9dc-1f3fd-2642",
  55368. "uc_output": "1f9dc-1f3fd-200d-2642-fe0f",
  55369. "uc_match": "1f9dc-1f3fd-2642-fe0f",
  55370. "uc_greedy": "1f9dc-1f3fd-2642",
  55371. "shortnames": [":merman_medium_skin_tone:"],
  55372. "category": "people"
  55373. },
  55374. ":merman_tone4:": {
  55375. "uc_base": "1f9dc-1f3fe-2642",
  55376. "uc_output": "1f9dc-1f3fe-200d-2642-fe0f",
  55377. "uc_match": "1f9dc-1f3fe-2642-fe0f",
  55378. "uc_greedy": "1f9dc-1f3fe-2642",
  55379. "shortnames": [":merman_medium_dark_skin_tone:"],
  55380. "category": "people"
  55381. },
  55382. ":merman_tone5:": {
  55383. "uc_base": "1f9dc-1f3ff-2642",
  55384. "uc_output": "1f9dc-1f3ff-200d-2642-fe0f",
  55385. "uc_match": "1f9dc-1f3ff-2642-fe0f",
  55386. "uc_greedy": "1f9dc-1f3ff-2642",
  55387. "shortnames": [":merman_dark_skin_tone:"],
  55388. "category": "people"
  55389. },
  55390. ":woman_biking_tone1:": {
  55391. "uc_base": "1f6b4-1f3fb-2640",
  55392. "uc_output": "1f6b4-1f3fb-200d-2640-fe0f",
  55393. "uc_match": "1f6b4-1f3fb-2640-fe0f",
  55394. "uc_greedy": "1f6b4-1f3fb-2640",
  55395. "shortnames": [":woman_biking_light_skin_tone:"],
  55396. "category": "activity"
  55397. },
  55398. ":woman_biking_tone2:": {
  55399. "uc_base": "1f6b4-1f3fc-2640",
  55400. "uc_output": "1f6b4-1f3fc-200d-2640-fe0f",
  55401. "uc_match": "1f6b4-1f3fc-2640-fe0f",
  55402. "uc_greedy": "1f6b4-1f3fc-2640",
  55403. "shortnames": [":woman_biking_medium_light_skin_tone:"],
  55404. "category": "activity"
  55405. },
  55406. ":woman_biking_tone3:": {
  55407. "uc_base": "1f6b4-1f3fd-2640",
  55408. "uc_output": "1f6b4-1f3fd-200d-2640-fe0f",
  55409. "uc_match": "1f6b4-1f3fd-2640-fe0f",
  55410. "uc_greedy": "1f6b4-1f3fd-2640",
  55411. "shortnames": [":woman_biking_medium_skin_tone:"],
  55412. "category": "activity"
  55413. },
  55414. ":woman_biking_tone4:": {
  55415. "uc_base": "1f6b4-1f3fe-2640",
  55416. "uc_output": "1f6b4-1f3fe-200d-2640-fe0f",
  55417. "uc_match": "1f6b4-1f3fe-2640-fe0f",
  55418. "uc_greedy": "1f6b4-1f3fe-2640",
  55419. "shortnames": [":woman_biking_medium_dark_skin_tone:"],
  55420. "category": "activity"
  55421. },
  55422. ":woman_biking_tone5:": {
  55423. "uc_base": "1f6b4-1f3ff-2640",
  55424. "uc_output": "1f6b4-1f3ff-200d-2640-fe0f",
  55425. "uc_match": "1f6b4-1f3ff-2640-fe0f",
  55426. "uc_greedy": "1f6b4-1f3ff-2640",
  55427. "shortnames": [":woman_biking_dark_skin_tone:"],
  55428. "category": "activity"
  55429. },
  55430. ":woman_bowing_tone1:": {
  55431. "uc_base": "1f647-1f3fb-2640",
  55432. "uc_output": "1f647-1f3fb-200d-2640-fe0f",
  55433. "uc_match": "1f647-1f3fb-2640-fe0f",
  55434. "uc_greedy": "1f647-1f3fb-2640",
  55435. "shortnames": [":woman_bowing_light_skin_tone:"],
  55436. "category": "people"
  55437. },
  55438. ":woman_bowing_tone2:": {
  55439. "uc_base": "1f647-1f3fc-2640",
  55440. "uc_output": "1f647-1f3fc-200d-2640-fe0f",
  55441. "uc_match": "1f647-1f3fc-2640-fe0f",
  55442. "uc_greedy": "1f647-1f3fc-2640",
  55443. "shortnames": [":woman_bowing_medium_light_skin_tone:"],
  55444. "category": "people"
  55445. },
  55446. ":woman_bowing_tone3:": {
  55447. "uc_base": "1f647-1f3fd-2640",
  55448. "uc_output": "1f647-1f3fd-200d-2640-fe0f",
  55449. "uc_match": "1f647-1f3fd-2640-fe0f",
  55450. "uc_greedy": "1f647-1f3fd-2640",
  55451. "shortnames": [":woman_bowing_medium_skin_tone:"],
  55452. "category": "people"
  55453. },
  55454. ":woman_bowing_tone4:": {
  55455. "uc_base": "1f647-1f3fe-2640",
  55456. "uc_output": "1f647-1f3fe-200d-2640-fe0f",
  55457. "uc_match": "1f647-1f3fe-2640-fe0f",
  55458. "uc_greedy": "1f647-1f3fe-2640",
  55459. "shortnames": [":woman_bowing_medium_dark_skin_tone:"],
  55460. "category": "people"
  55461. },
  55462. ":woman_bowing_tone5:": {
  55463. "uc_base": "1f647-1f3ff-2640",
  55464. "uc_output": "1f647-1f3ff-200d-2640-fe0f",
  55465. "uc_match": "1f647-1f3ff-2640-fe0f",
  55466. "uc_greedy": "1f647-1f3ff-2640",
  55467. "shortnames": [":woman_bowing_dark_skin_tone:"],
  55468. "category": "people"
  55469. },
  55470. ":woman_cartwheeling_tone1:": {
  55471. "uc_base": "1f938-1f3fb-2640",
  55472. "uc_output": "1f938-1f3fb-200d-2640-fe0f",
  55473. "uc_match": "1f938-1f3fb-2640-fe0f",
  55474. "uc_greedy": "1f938-1f3fb-2640",
  55475. "shortnames": [":woman_cartwheeling_light_skin_tone:"],
  55476. "category": "activity"
  55477. },
  55478. ":woman_cartwheeling_tone2:": {
  55479. "uc_base": "1f938-1f3fc-2640",
  55480. "uc_output": "1f938-1f3fc-200d-2640-fe0f",
  55481. "uc_match": "1f938-1f3fc-2640-fe0f",
  55482. "uc_greedy": "1f938-1f3fc-2640",
  55483. "shortnames": [":woman_cartwheeling_medium_light_skin_tone:"],
  55484. "category": "activity"
  55485. },
  55486. ":woman_cartwheeling_tone3:": {
  55487. "uc_base": "1f938-1f3fd-2640",
  55488. "uc_output": "1f938-1f3fd-200d-2640-fe0f",
  55489. "uc_match": "1f938-1f3fd-2640-fe0f",
  55490. "uc_greedy": "1f938-1f3fd-2640",
  55491. "shortnames": [":woman_cartwheeling_medium_skin_tone:"],
  55492. "category": "activity"
  55493. },
  55494. ":woman_cartwheeling_tone4:": {
  55495. "uc_base": "1f938-1f3fe-2640",
  55496. "uc_output": "1f938-1f3fe-200d-2640-fe0f",
  55497. "uc_match": "1f938-1f3fe-2640-fe0f",
  55498. "uc_greedy": "1f938-1f3fe-2640",
  55499. "shortnames": [":woman_cartwheeling_medium_dark_skin_tone:"],
  55500. "category": "activity"
  55501. },
  55502. ":woman_cartwheeling_tone5:": {
  55503. "uc_base": "1f938-1f3ff-2640",
  55504. "uc_output": "1f938-1f3ff-200d-2640-fe0f",
  55505. "uc_match": "1f938-1f3ff-2640-fe0f",
  55506. "uc_greedy": "1f938-1f3ff-2640",
  55507. "shortnames": [":woman_cartwheeling_dark_skin_tone:"],
  55508. "category": "activity"
  55509. },
  55510. ":woman_climbing_tone1:": {
  55511. "uc_base": "1f9d7-1f3fb-2640",
  55512. "uc_output": "1f9d7-1f3fb-200d-2640-fe0f",
  55513. "uc_match": "1f9d7-1f3fb-2640-fe0f",
  55514. "uc_greedy": "1f9d7-1f3fb-2640",
  55515. "shortnames": [":woman_climbing_light_skin_tone:"],
  55516. "category": "activity"
  55517. },
  55518. ":woman_climbing_tone2:": {
  55519. "uc_base": "1f9d7-1f3fc-2640",
  55520. "uc_output": "1f9d7-1f3fc-200d-2640-fe0f",
  55521. "uc_match": "1f9d7-1f3fc-2640-fe0f",
  55522. "uc_greedy": "1f9d7-1f3fc-2640",
  55523. "shortnames": [":woman_climbing_medium_light_skin_tone:"],
  55524. "category": "activity"
  55525. },
  55526. ":woman_climbing_tone3:": {
  55527. "uc_base": "1f9d7-1f3fd-2640",
  55528. "uc_output": "1f9d7-1f3fd-200d-2640-fe0f",
  55529. "uc_match": "1f9d7-1f3fd-2640-fe0f",
  55530. "uc_greedy": "1f9d7-1f3fd-2640",
  55531. "shortnames": [":woman_climbing_medium_skin_tone:"],
  55532. "category": "activity"
  55533. },
  55534. ":woman_climbing_tone4:": {
  55535. "uc_base": "1f9d7-1f3fe-2640",
  55536. "uc_output": "1f9d7-1f3fe-200d-2640-fe0f",
  55537. "uc_match": "1f9d7-1f3fe-2640-fe0f",
  55538. "uc_greedy": "1f9d7-1f3fe-2640",
  55539. "shortnames": [":woman_climbing_medium_dark_skin_tone:"],
  55540. "category": "activity"
  55541. },
  55542. ":woman_climbing_tone5:": {
  55543. "uc_base": "1f9d7-1f3ff-2640",
  55544. "uc_output": "1f9d7-1f3ff-200d-2640-fe0f",
  55545. "uc_match": "1f9d7-1f3ff-2640-fe0f",
  55546. "uc_greedy": "1f9d7-1f3ff-2640",
  55547. "shortnames": [":woman_climbing_dark_skin_tone:"],
  55548. "category": "activity"
  55549. },
  55550. ":woman_construction_worker_tone1:": {
  55551. "uc_base": "1f477-1f3fb-2640",
  55552. "uc_output": "1f477-1f3fb-200d-2640-fe0f",
  55553. "uc_match": "1f477-1f3fb-2640-fe0f",
  55554. "uc_greedy": "1f477-1f3fb-2640",
  55555. "shortnames": [":woman_construction_worker_light_skin_tone:"],
  55556. "category": "people"
  55557. },
  55558. ":woman_construction_worker_tone2:": {
  55559. "uc_base": "1f477-1f3fc-2640",
  55560. "uc_output": "1f477-1f3fc-200d-2640-fe0f",
  55561. "uc_match": "1f477-1f3fc-2640-fe0f",
  55562. "uc_greedy": "1f477-1f3fc-2640",
  55563. "shortnames": [":woman_construction_worker_medium_light_skin_tone:"],
  55564. "category": "people"
  55565. },
  55566. ":woman_construction_worker_tone3:": {
  55567. "uc_base": "1f477-1f3fd-2640",
  55568. "uc_output": "1f477-1f3fd-200d-2640-fe0f",
  55569. "uc_match": "1f477-1f3fd-2640-fe0f",
  55570. "uc_greedy": "1f477-1f3fd-2640",
  55571. "shortnames": [":woman_construction_worker_medium_skin_tone:"],
  55572. "category": "people"
  55573. },
  55574. ":woman_construction_worker_tone4:": {
  55575. "uc_base": "1f477-1f3fe-2640",
  55576. "uc_output": "1f477-1f3fe-200d-2640-fe0f",
  55577. "uc_match": "1f477-1f3fe-2640-fe0f",
  55578. "uc_greedy": "1f477-1f3fe-2640",
  55579. "shortnames": [":woman_construction_worker_medium_dark_skin_tone:"],
  55580. "category": "people"
  55581. },
  55582. ":woman_construction_worker_tone5:": {
  55583. "uc_base": "1f477-1f3ff-2640",
  55584. "uc_output": "1f477-1f3ff-200d-2640-fe0f",
  55585. "uc_match": "1f477-1f3ff-2640-fe0f",
  55586. "uc_greedy": "1f477-1f3ff-2640",
  55587. "shortnames": [":woman_construction_worker_dark_skin_tone:"],
  55588. "category": "people"
  55589. },
  55590. ":woman_detective_tone1:": {
  55591. "uc_base": "1f575-1f3fb-2640",
  55592. "uc_output": "1f575-1f3fb-200d-2640-fe0f",
  55593. "uc_match": "1f575-fe0f-1f3fb-2640-fe0f",
  55594. "uc_greedy": "1f575-1f3fb-2640",
  55595. "shortnames": [":woman_detective_light_skin_tone:"],
  55596. "category": "people"
  55597. },
  55598. ":woman_detective_tone2:": {
  55599. "uc_base": "1f575-1f3fc-2640",
  55600. "uc_output": "1f575-1f3fc-200d-2640-fe0f",
  55601. "uc_match": "1f575-fe0f-1f3fc-2640-fe0f",
  55602. "uc_greedy": "1f575-1f3fc-2640",
  55603. "shortnames": [":woman_detective_medium_light_skin_tone:"],
  55604. "category": "people"
  55605. },
  55606. ":woman_detective_tone3:": {
  55607. "uc_base": "1f575-1f3fd-2640",
  55608. "uc_output": "1f575-1f3fd-200d-2640-fe0f",
  55609. "uc_match": "1f575-fe0f-1f3fd-2640-fe0f",
  55610. "uc_greedy": "1f575-1f3fd-2640",
  55611. "shortnames": [":woman_detective_medium_skin_tone:"],
  55612. "category": "people"
  55613. },
  55614. ":woman_detective_tone4:": {
  55615. "uc_base": "1f575-1f3fe-2640",
  55616. "uc_output": "1f575-1f3fe-200d-2640-fe0f",
  55617. "uc_match": "1f575-fe0f-1f3fe-2640-fe0f",
  55618. "uc_greedy": "1f575-1f3fe-2640",
  55619. "shortnames": [":woman_detective_medium_dark_skin_tone:"],
  55620. "category": "people"
  55621. },
  55622. ":woman_detective_tone5:": {
  55623. "uc_base": "1f575-1f3ff-2640",
  55624. "uc_output": "1f575-1f3ff-200d-2640-fe0f",
  55625. "uc_match": "1f575-fe0f-1f3ff-2640-fe0f",
  55626. "uc_greedy": "1f575-1f3ff-2640",
  55627. "shortnames": [":woman_detective_dark_skin_tone:"],
  55628. "category": "people"
  55629. },
  55630. ":woman_elf_tone1:": {
  55631. "uc_base": "1f9dd-1f3fb-2640",
  55632. "uc_output": "1f9dd-1f3fb-200d-2640-fe0f",
  55633. "uc_match": "1f9dd-1f3fb-2640-fe0f",
  55634. "uc_greedy": "1f9dd-1f3fb-2640",
  55635. "shortnames": [":woman_elf_light_skin_tone:"],
  55636. "category": "people"
  55637. },
  55638. ":woman_elf_tone2:": {
  55639. "uc_base": "1f9dd-1f3fc-2640",
  55640. "uc_output": "1f9dd-1f3fc-200d-2640-fe0f",
  55641. "uc_match": "1f9dd-1f3fc-2640-fe0f",
  55642. "uc_greedy": "1f9dd-1f3fc-2640",
  55643. "shortnames": [":woman_elf_medium_light_skin_tone:"],
  55644. "category": "people"
  55645. },
  55646. ":woman_elf_tone3:": {
  55647. "uc_base": "1f9dd-1f3fd-2640",
  55648. "uc_output": "1f9dd-1f3fd-200d-2640-fe0f",
  55649. "uc_match": "1f9dd-1f3fd-2640-fe0f",
  55650. "uc_greedy": "1f9dd-1f3fd-2640",
  55651. "shortnames": [":woman_elf_medium_skin_tone:"],
  55652. "category": "people"
  55653. },
  55654. ":woman_elf_tone4:": {
  55655. "uc_base": "1f9dd-1f3fe-2640",
  55656. "uc_output": "1f9dd-1f3fe-200d-2640-fe0f",
  55657. "uc_match": "1f9dd-1f3fe-2640-fe0f",
  55658. "uc_greedy": "1f9dd-1f3fe-2640",
  55659. "shortnames": [":woman_elf_medium_dark_skin_tone:"],
  55660. "category": "people"
  55661. },
  55662. ":woman_elf_tone5:": {
  55663. "uc_base": "1f9dd-1f3ff-2640",
  55664. "uc_output": "1f9dd-1f3ff-200d-2640-fe0f",
  55665. "uc_match": "1f9dd-1f3ff-2640-fe0f",
  55666. "uc_greedy": "1f9dd-1f3ff-2640",
  55667. "shortnames": [":woman_elf_dark_skin_tone:"],
  55668. "category": "people"
  55669. },
  55670. ":woman_facepalming_tone1:": {
  55671. "uc_base": "1f926-1f3fb-2640",
  55672. "uc_output": "1f926-1f3fb-200d-2640-fe0f",
  55673. "uc_match": "1f926-1f3fb-2640-fe0f",
  55674. "uc_greedy": "1f926-1f3fb-2640",
  55675. "shortnames": [":woman_facepalming_light_skin_tone:"],
  55676. "category": "people"
  55677. },
  55678. ":woman_facepalming_tone2:": {
  55679. "uc_base": "1f926-1f3fc-2640",
  55680. "uc_output": "1f926-1f3fc-200d-2640-fe0f",
  55681. "uc_match": "1f926-1f3fc-2640-fe0f",
  55682. "uc_greedy": "1f926-1f3fc-2640",
  55683. "shortnames": [":woman_facepalming_medium_light_skin_tone:"],
  55684. "category": "people"
  55685. },
  55686. ":woman_facepalming_tone3:": {
  55687. "uc_base": "1f926-1f3fd-2640",
  55688. "uc_output": "1f926-1f3fd-200d-2640-fe0f",
  55689. "uc_match": "1f926-1f3fd-2640-fe0f",
  55690. "uc_greedy": "1f926-1f3fd-2640",
  55691. "shortnames": [":woman_facepalming_medium_skin_tone:"],
  55692. "category": "people"
  55693. },
  55694. ":woman_facepalming_tone4:": {
  55695. "uc_base": "1f926-1f3fe-2640",
  55696. "uc_output": "1f926-1f3fe-200d-2640-fe0f",
  55697. "uc_match": "1f926-1f3fe-2640-fe0f",
  55698. "uc_greedy": "1f926-1f3fe-2640",
  55699. "shortnames": [":woman_facepalming_medium_dark_skin_tone:"],
  55700. "category": "people"
  55701. },
  55702. ":woman_facepalming_tone5:": {
  55703. "uc_base": "1f926-1f3ff-2640",
  55704. "uc_output": "1f926-1f3ff-200d-2640-fe0f",
  55705. "uc_match": "1f926-1f3ff-2640-fe0f",
  55706. "uc_greedy": "1f926-1f3ff-2640",
  55707. "shortnames": [":woman_facepalming_dark_skin_tone:"],
  55708. "category": "people"
  55709. },
  55710. ":woman_fairy_tone1:": {
  55711. "uc_base": "1f9da-1f3fb-2640",
  55712. "uc_output": "1f9da-1f3fb-200d-2640-fe0f",
  55713. "uc_match": "1f9da-1f3fb-2640-fe0f",
  55714. "uc_greedy": "1f9da-1f3fb-2640",
  55715. "shortnames": [":woman_fairy_light_skin_tone:"],
  55716. "category": "people"
  55717. },
  55718. ":woman_fairy_tone2:": {
  55719. "uc_base": "1f9da-1f3fc-2640",
  55720. "uc_output": "1f9da-1f3fc-200d-2640-fe0f",
  55721. "uc_match": "1f9da-1f3fc-2640-fe0f",
  55722. "uc_greedy": "1f9da-1f3fc-2640",
  55723. "shortnames": [":woman_fairy_medium_light_skin_tone:"],
  55724. "category": "people"
  55725. },
  55726. ":woman_fairy_tone3:": {
  55727. "uc_base": "1f9da-1f3fd-2640",
  55728. "uc_output": "1f9da-1f3fd-200d-2640-fe0f",
  55729. "uc_match": "1f9da-1f3fd-2640-fe0f",
  55730. "uc_greedy": "1f9da-1f3fd-2640",
  55731. "shortnames": [":woman_fairy_medium_skin_tone:"],
  55732. "category": "people"
  55733. },
  55734. ":woman_fairy_tone4:": {
  55735. "uc_base": "1f9da-1f3fe-2640",
  55736. "uc_output": "1f9da-1f3fe-200d-2640-fe0f",
  55737. "uc_match": "1f9da-1f3fe-2640-fe0f",
  55738. "uc_greedy": "1f9da-1f3fe-2640",
  55739. "shortnames": [":woman_fairy_medium_dark_skin_tone:"],
  55740. "category": "people"
  55741. },
  55742. ":woman_fairy_tone5:": {
  55743. "uc_base": "1f9da-1f3ff-2640",
  55744. "uc_output": "1f9da-1f3ff-200d-2640-fe0f",
  55745. "uc_match": "1f9da-1f3ff-2640-fe0f",
  55746. "uc_greedy": "1f9da-1f3ff-2640",
  55747. "shortnames": [":woman_fairy_dark_skin_tone:"],
  55748. "category": "people"
  55749. },
  55750. ":woman_frowning_tone1:": {
  55751. "uc_base": "1f64d-1f3fb-2640",
  55752. "uc_output": "1f64d-1f3fb-200d-2640-fe0f",
  55753. "uc_match": "1f64d-1f3fb-2640-fe0f",
  55754. "uc_greedy": "1f64d-1f3fb-2640",
  55755. "shortnames": [":woman_frowning_light_skin_tone:"],
  55756. "category": "people"
  55757. },
  55758. ":woman_frowning_tone2:": {
  55759. "uc_base": "1f64d-1f3fc-2640",
  55760. "uc_output": "1f64d-1f3fc-200d-2640-fe0f",
  55761. "uc_match": "1f64d-1f3fc-2640-fe0f",
  55762. "uc_greedy": "1f64d-1f3fc-2640",
  55763. "shortnames": [":woman_frowning_medium_light_skin_tone:"],
  55764. "category": "people"
  55765. },
  55766. ":woman_frowning_tone3:": {
  55767. "uc_base": "1f64d-1f3fd-2640",
  55768. "uc_output": "1f64d-1f3fd-200d-2640-fe0f",
  55769. "uc_match": "1f64d-1f3fd-2640-fe0f",
  55770. "uc_greedy": "1f64d-1f3fd-2640",
  55771. "shortnames": [":woman_frowning_medium_skin_tone:"],
  55772. "category": "people"
  55773. },
  55774. ":woman_frowning_tone4:": {
  55775. "uc_base": "1f64d-1f3fe-2640",
  55776. "uc_output": "1f64d-1f3fe-200d-2640-fe0f",
  55777. "uc_match": "1f64d-1f3fe-2640-fe0f",
  55778. "uc_greedy": "1f64d-1f3fe-2640",
  55779. "shortnames": [":woman_frowning_medium_dark_skin_tone:"],
  55780. "category": "people"
  55781. },
  55782. ":woman_frowning_tone5:": {
  55783. "uc_base": "1f64d-1f3ff-2640",
  55784. "uc_output": "1f64d-1f3ff-200d-2640-fe0f",
  55785. "uc_match": "1f64d-1f3ff-2640-fe0f",
  55786. "uc_greedy": "1f64d-1f3ff-2640",
  55787. "shortnames": [":woman_frowning_dark_skin_tone:"],
  55788. "category": "people"
  55789. },
  55790. ":woman_gesturing_no_tone1:": {
  55791. "uc_base": "1f645-1f3fb-2640",
  55792. "uc_output": "1f645-1f3fb-200d-2640-fe0f",
  55793. "uc_match": "1f645-1f3fb-2640-fe0f",
  55794. "uc_greedy": "1f645-1f3fb-2640",
  55795. "shortnames": [":woman_gesturing_no_light_skin_tone:"],
  55796. "category": "people"
  55797. },
  55798. ":woman_gesturing_no_tone2:": {
  55799. "uc_base": "1f645-1f3fc-2640",
  55800. "uc_output": "1f645-1f3fc-200d-2640-fe0f",
  55801. "uc_match": "1f645-1f3fc-2640-fe0f",
  55802. "uc_greedy": "1f645-1f3fc-2640",
  55803. "shortnames": [":woman_gesturing_no_medium_light_skin_tone:"],
  55804. "category": "people"
  55805. },
  55806. ":woman_gesturing_no_tone3:": {
  55807. "uc_base": "1f645-1f3fd-2640",
  55808. "uc_output": "1f645-1f3fd-200d-2640-fe0f",
  55809. "uc_match": "1f645-1f3fd-2640-fe0f",
  55810. "uc_greedy": "1f645-1f3fd-2640",
  55811. "shortnames": [":woman_gesturing_no_medium_skin_tone:"],
  55812. "category": "people"
  55813. },
  55814. ":woman_gesturing_no_tone4:": {
  55815. "uc_base": "1f645-1f3fe-2640",
  55816. "uc_output": "1f645-1f3fe-200d-2640-fe0f",
  55817. "uc_match": "1f645-1f3fe-2640-fe0f",
  55818. "uc_greedy": "1f645-1f3fe-2640",
  55819. "shortnames": [":woman_gesturing_no_medium_dark_skin_tone:"],
  55820. "category": "people"
  55821. },
  55822. ":woman_gesturing_no_tone5:": {
  55823. "uc_base": "1f645-1f3ff-2640",
  55824. "uc_output": "1f645-1f3ff-200d-2640-fe0f",
  55825. "uc_match": "1f645-1f3ff-2640-fe0f",
  55826. "uc_greedy": "1f645-1f3ff-2640",
  55827. "shortnames": [":woman_gesturing_no_dark_skin_tone:"],
  55828. "category": "people"
  55829. },
  55830. ":woman_gesturing_ok_tone1:": {
  55831. "uc_base": "1f646-1f3fb-2640",
  55832. "uc_output": "1f646-1f3fb-200d-2640-fe0f",
  55833. "uc_match": "1f646-1f3fb-2640-fe0f",
  55834. "uc_greedy": "1f646-1f3fb-2640",
  55835. "shortnames": [":woman_gesturing_ok_light_skin_tone:"],
  55836. "category": "people"
  55837. },
  55838. ":woman_gesturing_ok_tone2:": {
  55839. "uc_base": "1f646-1f3fc-2640",
  55840. "uc_output": "1f646-1f3fc-200d-2640-fe0f",
  55841. "uc_match": "1f646-1f3fc-2640-fe0f",
  55842. "uc_greedy": "1f646-1f3fc-2640",
  55843. "shortnames": [":woman_gesturing_ok_medium_light_skin_tone:"],
  55844. "category": "people"
  55845. },
  55846. ":woman_gesturing_ok_tone3:": {
  55847. "uc_base": "1f646-1f3fd-2640",
  55848. "uc_output": "1f646-1f3fd-200d-2640-fe0f",
  55849. "uc_match": "1f646-1f3fd-2640-fe0f",
  55850. "uc_greedy": "1f646-1f3fd-2640",
  55851. "shortnames": [":woman_gesturing_ok_medium_skin_tone:"],
  55852. "category": "people"
  55853. },
  55854. ":woman_gesturing_ok_tone4:": {
  55855. "uc_base": "1f646-1f3fe-2640",
  55856. "uc_output": "1f646-1f3fe-200d-2640-fe0f",
  55857. "uc_match": "1f646-1f3fe-2640-fe0f",
  55858. "uc_greedy": "1f646-1f3fe-2640",
  55859. "shortnames": [":woman_gesturing_ok_medium_dark_skin_tone:"],
  55860. "category": "people"
  55861. },
  55862. ":woman_gesturing_ok_tone5:": {
  55863. "uc_base": "1f646-1f3ff-2640",
  55864. "uc_output": "1f646-1f3ff-200d-2640-fe0f",
  55865. "uc_match": "1f646-1f3ff-2640-fe0f",
  55866. "uc_greedy": "1f646-1f3ff-2640",
  55867. "shortnames": [":woman_gesturing_ok_dark_skin_tone:"],
  55868. "category": "people"
  55869. },
  55870. ":woman_getting_face_massage_tone1:": {
  55871. "uc_base": "1f486-1f3fb-2640",
  55872. "uc_output": "1f486-1f3fb-200d-2640-fe0f",
  55873. "uc_match": "1f486-1f3fb-2640-fe0f",
  55874. "uc_greedy": "1f486-1f3fb-2640",
  55875. "shortnames": [":woman_getting_face_massage_light_skin_tone:"],
  55876. "category": "people"
  55877. },
  55878. ":woman_getting_face_massage_tone2:": {
  55879. "uc_base": "1f486-1f3fc-2640",
  55880. "uc_output": "1f486-1f3fc-200d-2640-fe0f",
  55881. "uc_match": "1f486-1f3fc-2640-fe0f",
  55882. "uc_greedy": "1f486-1f3fc-2640",
  55883. "shortnames": [":woman_getting_face_massage_medium_light_skin_tone:"],
  55884. "category": "people"
  55885. },
  55886. ":woman_getting_face_massage_tone3:": {
  55887. "uc_base": "1f486-1f3fd-2640",
  55888. "uc_output": "1f486-1f3fd-200d-2640-fe0f",
  55889. "uc_match": "1f486-1f3fd-2640-fe0f",
  55890. "uc_greedy": "1f486-1f3fd-2640",
  55891. "shortnames": [":woman_getting_face_massage_medium_skin_tone:"],
  55892. "category": "people"
  55893. },
  55894. ":woman_getting_face_massage_tone4:": {
  55895. "uc_base": "1f486-1f3fe-2640",
  55896. "uc_output": "1f486-1f3fe-200d-2640-fe0f",
  55897. "uc_match": "1f486-1f3fe-2640-fe0f",
  55898. "uc_greedy": "1f486-1f3fe-2640",
  55899. "shortnames": [":woman_getting_face_massage_medium_dark_skin_tone:"],
  55900. "category": "people"
  55901. },
  55902. ":woman_getting_face_massage_tone5:": {
  55903. "uc_base": "1f486-1f3ff-2640",
  55904. "uc_output": "1f486-1f3ff-200d-2640-fe0f",
  55905. "uc_match": "1f486-1f3ff-2640-fe0f",
  55906. "uc_greedy": "1f486-1f3ff-2640",
  55907. "shortnames": [":woman_getting_face_massage_dark_skin_tone:"],
  55908. "category": "people"
  55909. },
  55910. ":woman_getting_haircut_tone1:": {
  55911. "uc_base": "1f487-1f3fb-2640",
  55912. "uc_output": "1f487-1f3fb-200d-2640-fe0f",
  55913. "uc_match": "1f487-1f3fb-2640-fe0f",
  55914. "uc_greedy": "1f487-1f3fb-2640",
  55915. "shortnames": [":woman_getting_haircut_light_skin_tone:"],
  55916. "category": "people"
  55917. },
  55918. ":woman_getting_haircut_tone2:": {
  55919. "uc_base": "1f487-1f3fc-2640",
  55920. "uc_output": "1f487-1f3fc-200d-2640-fe0f",
  55921. "uc_match": "1f487-1f3fc-2640-fe0f",
  55922. "uc_greedy": "1f487-1f3fc-2640",
  55923. "shortnames": [":woman_getting_haircut_medium_light_skin_tone:"],
  55924. "category": "people"
  55925. },
  55926. ":woman_getting_haircut_tone3:": {
  55927. "uc_base": "1f487-1f3fd-2640",
  55928. "uc_output": "1f487-1f3fd-200d-2640-fe0f",
  55929. "uc_match": "1f487-1f3fd-2640-fe0f",
  55930. "uc_greedy": "1f487-1f3fd-2640",
  55931. "shortnames": [":woman_getting_haircut_medium_skin_tone:"],
  55932. "category": "people"
  55933. },
  55934. ":woman_getting_haircut_tone4:": {
  55935. "uc_base": "1f487-1f3fe-2640",
  55936. "uc_output": "1f487-1f3fe-200d-2640-fe0f",
  55937. "uc_match": "1f487-1f3fe-2640-fe0f",
  55938. "uc_greedy": "1f487-1f3fe-2640",
  55939. "shortnames": [":woman_getting_haircut_medium_dark_skin_tone:"],
  55940. "category": "people"
  55941. },
  55942. ":woman_getting_haircut_tone5:": {
  55943. "uc_base": "1f487-1f3ff-2640",
  55944. "uc_output": "1f487-1f3ff-200d-2640-fe0f",
  55945. "uc_match": "1f487-1f3ff-2640-fe0f",
  55946. "uc_greedy": "1f487-1f3ff-2640",
  55947. "shortnames": [":woman_getting_haircut_dark_skin_tone:"],
  55948. "category": "people"
  55949. },
  55950. ":woman_golfing_tone1:": {
  55951. "uc_base": "1f3cc-1f3fb-2640",
  55952. "uc_output": "1f3cc-1f3fb-200d-2640-fe0f",
  55953. "uc_match": "1f3cc-fe0f-1f3fb-2640-fe0f",
  55954. "uc_greedy": "1f3cc-1f3fb-2640",
  55955. "shortnames": [":woman_golfing_light_skin_tone:"],
  55956. "category": "activity"
  55957. },
  55958. ":woman_golfing_tone2:": {
  55959. "uc_base": "1f3cc-1f3fc-2640",
  55960. "uc_output": "1f3cc-1f3fc-200d-2640-fe0f",
  55961. "uc_match": "1f3cc-fe0f-1f3fc-2640-fe0f",
  55962. "uc_greedy": "1f3cc-1f3fc-2640",
  55963. "shortnames": [":woman_golfing_medium_light_skin_tone:"],
  55964. "category": "activity"
  55965. },
  55966. ":woman_golfing_tone3:": {
  55967. "uc_base": "1f3cc-1f3fd-2640",
  55968. "uc_output": "1f3cc-1f3fd-200d-2640-fe0f",
  55969. "uc_match": "1f3cc-fe0f-1f3fd-2640-fe0f",
  55970. "uc_greedy": "1f3cc-1f3fd-2640",
  55971. "shortnames": [":woman_golfing_medium_skin_tone:"],
  55972. "category": "activity"
  55973. },
  55974. ":woman_golfing_tone4:": {
  55975. "uc_base": "1f3cc-1f3fe-2640",
  55976. "uc_output": "1f3cc-1f3fe-200d-2640-fe0f",
  55977. "uc_match": "1f3cc-fe0f-1f3fe-2640-fe0f",
  55978. "uc_greedy": "1f3cc-1f3fe-2640",
  55979. "shortnames": [":woman_golfing_medium_dark_skin_tone:"],
  55980. "category": "activity"
  55981. },
  55982. ":woman_golfing_tone5:": {
  55983. "uc_base": "1f3cc-1f3ff-2640",
  55984. "uc_output": "1f3cc-1f3ff-200d-2640-fe0f",
  55985. "uc_match": "1f3cc-fe0f-1f3ff-2640-fe0f",
  55986. "uc_greedy": "1f3cc-1f3ff-2640",
  55987. "shortnames": [":woman_golfing_dark_skin_tone:"],
  55988. "category": "activity"
  55989. },
  55990. ":woman_guard_tone1:": {
  55991. "uc_base": "1f482-1f3fb-2640",
  55992. "uc_output": "1f482-1f3fb-200d-2640-fe0f",
  55993. "uc_match": "1f482-1f3fb-2640-fe0f",
  55994. "uc_greedy": "1f482-1f3fb-2640",
  55995. "shortnames": [":woman_guard_light_skin_tone:"],
  55996. "category": "people"
  55997. },
  55998. ":woman_guard_tone2:": {
  55999. "uc_base": "1f482-1f3fc-2640",
  56000. "uc_output": "1f482-1f3fc-200d-2640-fe0f",
  56001. "uc_match": "1f482-1f3fc-2640-fe0f",
  56002. "uc_greedy": "1f482-1f3fc-2640",
  56003. "shortnames": [":woman_guard_medium_light_skin_tone:"],
  56004. "category": "people"
  56005. },
  56006. ":woman_guard_tone3:": {
  56007. "uc_base": "1f482-1f3fd-2640",
  56008. "uc_output": "1f482-1f3fd-200d-2640-fe0f",
  56009. "uc_match": "1f482-1f3fd-2640-fe0f",
  56010. "uc_greedy": "1f482-1f3fd-2640",
  56011. "shortnames": [":woman_guard_medium_skin_tone:"],
  56012. "category": "people"
  56013. },
  56014. ":woman_guard_tone4:": {
  56015. "uc_base": "1f482-1f3fe-2640",
  56016. "uc_output": "1f482-1f3fe-200d-2640-fe0f",
  56017. "uc_match": "1f482-1f3fe-2640-fe0f",
  56018. "uc_greedy": "1f482-1f3fe-2640",
  56019. "shortnames": [":woman_guard_medium_dark_skin_tone:"],
  56020. "category": "people"
  56021. },
  56022. ":woman_guard_tone5:": {
  56023. "uc_base": "1f482-1f3ff-2640",
  56024. "uc_output": "1f482-1f3ff-200d-2640-fe0f",
  56025. "uc_match": "1f482-1f3ff-2640-fe0f",
  56026. "uc_greedy": "1f482-1f3ff-2640",
  56027. "shortnames": [":woman_guard_dark_skin_tone:"],
  56028. "category": "people"
  56029. },
  56030. ":woman_health_worker_tone1:": {
  56031. "uc_base": "1f469-1f3fb-2695",
  56032. "uc_output": "1f469-1f3fb-200d-2695-fe0f",
  56033. "uc_match": "1f469-1f3fb-2695-fe0f",
  56034. "uc_greedy": "1f469-1f3fb-2695",
  56035. "shortnames": [":woman_health_worker_light_skin_tone:"],
  56036. "category": "people"
  56037. },
  56038. ":woman_health_worker_tone2:": {
  56039. "uc_base": "1f469-1f3fc-2695",
  56040. "uc_output": "1f469-1f3fc-200d-2695-fe0f",
  56041. "uc_match": "1f469-1f3fc-2695-fe0f",
  56042. "uc_greedy": "1f469-1f3fc-2695",
  56043. "shortnames": [":woman_health_worker_medium_light_skin_tone:"],
  56044. "category": "people"
  56045. },
  56046. ":woman_health_worker_tone3:": {
  56047. "uc_base": "1f469-1f3fd-2695",
  56048. "uc_output": "1f469-1f3fd-200d-2695-fe0f",
  56049. "uc_match": "1f469-1f3fd-2695-fe0f",
  56050. "uc_greedy": "1f469-1f3fd-2695",
  56051. "shortnames": [":woman_health_worker_medium_skin_tone:"],
  56052. "category": "people"
  56053. },
  56054. ":woman_health_worker_tone4:": {
  56055. "uc_base": "1f469-1f3fe-2695",
  56056. "uc_output": "1f469-1f3fe-200d-2695-fe0f",
  56057. "uc_match": "1f469-1f3fe-2695-fe0f",
  56058. "uc_greedy": "1f469-1f3fe-2695",
  56059. "shortnames": [":woman_health_worker_medium_dark_skin_tone:"],
  56060. "category": "people"
  56061. },
  56062. ":woman_health_worker_tone5:": {
  56063. "uc_base": "1f469-1f3ff-2695",
  56064. "uc_output": "1f469-1f3ff-200d-2695-fe0f",
  56065. "uc_match": "1f469-1f3ff-2695-fe0f",
  56066. "uc_greedy": "1f469-1f3ff-2695",
  56067. "shortnames": [":woman_health_worker_dark_skin_tone:"],
  56068. "category": "people"
  56069. },
  56070. ":woman_in_lotus_position_tone1:": {
  56071. "uc_base": "1f9d8-1f3fb-2640",
  56072. "uc_output": "1f9d8-1f3fb-200d-2640-fe0f",
  56073. "uc_match": "1f9d8-1f3fb-2640-fe0f",
  56074. "uc_greedy": "1f9d8-1f3fb-2640",
  56075. "shortnames": [":woman_in_lotus_position_light_skin_tone:"],
  56076. "category": "activity"
  56077. },
  56078. ":woman_in_lotus_position_tone2:": {
  56079. "uc_base": "1f9d8-1f3fc-2640",
  56080. "uc_output": "1f9d8-1f3fc-200d-2640-fe0f",
  56081. "uc_match": "1f9d8-1f3fc-2640-fe0f",
  56082. "uc_greedy": "1f9d8-1f3fc-2640",
  56083. "shortnames": [":woman_in_lotus_position_medium_light_skin_tone:"],
  56084. "category": "activity"
  56085. },
  56086. ":woman_in_lotus_position_tone3:": {
  56087. "uc_base": "1f9d8-1f3fd-2640",
  56088. "uc_output": "1f9d8-1f3fd-200d-2640-fe0f",
  56089. "uc_match": "1f9d8-1f3fd-2640-fe0f",
  56090. "uc_greedy": "1f9d8-1f3fd-2640",
  56091. "shortnames": [":woman_in_lotus_position_medium_skin_tone:"],
  56092. "category": "activity"
  56093. },
  56094. ":woman_in_lotus_position_tone4:": {
  56095. "uc_base": "1f9d8-1f3fe-2640",
  56096. "uc_output": "1f9d8-1f3fe-200d-2640-fe0f",
  56097. "uc_match": "1f9d8-1f3fe-2640-fe0f",
  56098. "uc_greedy": "1f9d8-1f3fe-2640",
  56099. "shortnames": [":woman_in_lotus_position_medium_dark_skin_tone:"],
  56100. "category": "activity"
  56101. },
  56102. ":woman_in_lotus_position_tone5:": {
  56103. "uc_base": "1f9d8-1f3ff-2640",
  56104. "uc_output": "1f9d8-1f3ff-200d-2640-fe0f",
  56105. "uc_match": "1f9d8-1f3ff-2640-fe0f",
  56106. "uc_greedy": "1f9d8-1f3ff-2640",
  56107. "shortnames": [":woman_in_lotus_position_dark_skin_tone:"],
  56108. "category": "activity"
  56109. },
  56110. ":woman_in_steamy_room_tone1:": {
  56111. "uc_base": "1f9d6-1f3fb-2640",
  56112. "uc_output": "1f9d6-1f3fb-200d-2640-fe0f",
  56113. "uc_match": "1f9d6-1f3fb-2640-fe0f",
  56114. "uc_greedy": "1f9d6-1f3fb-2640",
  56115. "shortnames": [":woman_in_steamy_room_light_skin_tone:"],
  56116. "category": "people"
  56117. },
  56118. ":woman_in_steamy_room_tone2:": {
  56119. "uc_base": "1f9d6-1f3fc-2640",
  56120. "uc_output": "1f9d6-1f3fc-200d-2640-fe0f",
  56121. "uc_match": "1f9d6-1f3fc-2640-fe0f",
  56122. "uc_greedy": "1f9d6-1f3fc-2640",
  56123. "shortnames": [":woman_in_steamy_room_medium_light_skin_tone:"],
  56124. "category": "people"
  56125. },
  56126. ":woman_in_steamy_room_tone3:": {
  56127. "uc_base": "1f9d6-1f3fd-2640",
  56128. "uc_output": "1f9d6-1f3fd-200d-2640-fe0f",
  56129. "uc_match": "1f9d6-1f3fd-2640-fe0f",
  56130. "uc_greedy": "1f9d6-1f3fd-2640",
  56131. "shortnames": [":woman_in_steamy_room_medium_skin_tone:"],
  56132. "category": "people"
  56133. },
  56134. ":woman_in_steamy_room_tone4:": {
  56135. "uc_base": "1f9d6-1f3fe-2640",
  56136. "uc_output": "1f9d6-1f3fe-200d-2640-fe0f",
  56137. "uc_match": "1f9d6-1f3fe-2640-fe0f",
  56138. "uc_greedy": "1f9d6-1f3fe-2640",
  56139. "shortnames": [":woman_in_steamy_room_medium_dark_skin_tone:"],
  56140. "category": "people"
  56141. },
  56142. ":woman_in_steamy_room_tone5:": {
  56143. "uc_base": "1f9d6-1f3ff-2640",
  56144. "uc_output": "1f9d6-1f3ff-200d-2640-fe0f",
  56145. "uc_match": "1f9d6-1f3ff-2640-fe0f",
  56146. "uc_greedy": "1f9d6-1f3ff-2640",
  56147. "shortnames": [":woman_in_steamy_room_dark_skin_tone:"],
  56148. "category": "people"
  56149. },
  56150. ":woman_judge_tone1:": {
  56151. "uc_base": "1f469-1f3fb-2696",
  56152. "uc_output": "1f469-1f3fb-200d-2696-fe0f",
  56153. "uc_match": "1f469-1f3fb-2696-fe0f",
  56154. "uc_greedy": "1f469-1f3fb-2696",
  56155. "shortnames": [":woman_judge_light_skin_tone:"],
  56156. "category": "people"
  56157. },
  56158. ":woman_judge_tone2:": {
  56159. "uc_base": "1f469-1f3fc-2696",
  56160. "uc_output": "1f469-1f3fc-200d-2696-fe0f",
  56161. "uc_match": "1f469-1f3fc-2696-fe0f",
  56162. "uc_greedy": "1f469-1f3fc-2696",
  56163. "shortnames": [":woman_judge_medium_light_skin_tone:"],
  56164. "category": "people"
  56165. },
  56166. ":woman_judge_tone3:": {
  56167. "uc_base": "1f469-1f3fd-2696",
  56168. "uc_output": "1f469-1f3fd-200d-2696-fe0f",
  56169. "uc_match": "1f469-1f3fd-2696-fe0f",
  56170. "uc_greedy": "1f469-1f3fd-2696",
  56171. "shortnames": [":woman_judge_medium_skin_tone:"],
  56172. "category": "people"
  56173. },
  56174. ":woman_judge_tone4:": {
  56175. "uc_base": "1f469-1f3fe-2696",
  56176. "uc_output": "1f469-1f3fe-200d-2696-fe0f",
  56177. "uc_match": "1f469-1f3fe-2696-fe0f",
  56178. "uc_greedy": "1f469-1f3fe-2696",
  56179. "shortnames": [":woman_judge_medium_dark_skin_tone:"],
  56180. "category": "people"
  56181. },
  56182. ":woman_judge_tone5:": {
  56183. "uc_base": "1f469-1f3ff-2696",
  56184. "uc_output": "1f469-1f3ff-200d-2696-fe0f",
  56185. "uc_match": "1f469-1f3ff-2696-fe0f",
  56186. "uc_greedy": "1f469-1f3ff-2696",
  56187. "shortnames": [":woman_judge_dark_skin_tone:"],
  56188. "category": "people"
  56189. },
  56190. ":woman_juggling_tone1:": {
  56191. "uc_base": "1f939-1f3fb-2640",
  56192. "uc_output": "1f939-1f3fb-200d-2640-fe0f",
  56193. "uc_match": "1f939-1f3fb-2640-fe0f",
  56194. "uc_greedy": "1f939-1f3fb-2640",
  56195. "shortnames": [":woman_juggling_light_skin_tone:"],
  56196. "category": "activity"
  56197. },
  56198. ":woman_juggling_tone2:": {
  56199. "uc_base": "1f939-1f3fc-2640",
  56200. "uc_output": "1f939-1f3fc-200d-2640-fe0f",
  56201. "uc_match": "1f939-1f3fc-2640-fe0f",
  56202. "uc_greedy": "1f939-1f3fc-2640",
  56203. "shortnames": [":woman_juggling_medium_light_skin_tone:"],
  56204. "category": "activity"
  56205. },
  56206. ":woman_juggling_tone3:": {
  56207. "uc_base": "1f939-1f3fd-2640",
  56208. "uc_output": "1f939-1f3fd-200d-2640-fe0f",
  56209. "uc_match": "1f939-1f3fd-2640-fe0f",
  56210. "uc_greedy": "1f939-1f3fd-2640",
  56211. "shortnames": [":woman_juggling_medium_skin_tone:"],
  56212. "category": "activity"
  56213. },
  56214. ":woman_juggling_tone4:": {
  56215. "uc_base": "1f939-1f3fe-2640",
  56216. "uc_output": "1f939-1f3fe-200d-2640-fe0f",
  56217. "uc_match": "1f939-1f3fe-2640-fe0f",
  56218. "uc_greedy": "1f939-1f3fe-2640",
  56219. "shortnames": [":woman_juggling_medium_dark_skin_tone:"],
  56220. "category": "activity"
  56221. },
  56222. ":woman_juggling_tone5:": {
  56223. "uc_base": "1f939-1f3ff-2640",
  56224. "uc_output": "1f939-1f3ff-200d-2640-fe0f",
  56225. "uc_match": "1f939-1f3ff-2640-fe0f",
  56226. "uc_greedy": "1f939-1f3ff-2640",
  56227. "shortnames": [":woman_juggling_dark_skin_tone:"],
  56228. "category": "activity"
  56229. },
  56230. ":woman_lifting_weights_tone1:": {
  56231. "uc_base": "1f3cb-1f3fb-2640",
  56232. "uc_output": "1f3cb-1f3fb-200d-2640-fe0f",
  56233. "uc_match": "1f3cb-fe0f-1f3fb-2640-fe0f",
  56234. "uc_greedy": "1f3cb-1f3fb-2640",
  56235. "shortnames": [":woman_lifting_weights_light_skin_tone:"],
  56236. "category": "activity"
  56237. },
  56238. ":woman_lifting_weights_tone2:": {
  56239. "uc_base": "1f3cb-1f3fc-2640",
  56240. "uc_output": "1f3cb-1f3fc-200d-2640-fe0f",
  56241. "uc_match": "1f3cb-fe0f-1f3fc-2640-fe0f",
  56242. "uc_greedy": "1f3cb-1f3fc-2640",
  56243. "shortnames": [":woman_lifting_weights_medium_light_skin_tone:"],
  56244. "category": "activity"
  56245. },
  56246. ":woman_lifting_weights_tone3:": {
  56247. "uc_base": "1f3cb-1f3fd-2640",
  56248. "uc_output": "1f3cb-1f3fd-200d-2640-fe0f",
  56249. "uc_match": "1f3cb-fe0f-1f3fd-2640-fe0f",
  56250. "uc_greedy": "1f3cb-1f3fd-2640",
  56251. "shortnames": [":woman_lifting_weights_medium_skin_tone:"],
  56252. "category": "activity"
  56253. },
  56254. ":woman_lifting_weights_tone4:": {
  56255. "uc_base": "1f3cb-1f3fe-2640",
  56256. "uc_output": "1f3cb-1f3fe-200d-2640-fe0f",
  56257. "uc_match": "1f3cb-fe0f-1f3fe-2640-fe0f",
  56258. "uc_greedy": "1f3cb-1f3fe-2640",
  56259. "shortnames": [":woman_lifting_weights_medium_dark_skin_tone:"],
  56260. "category": "activity"
  56261. },
  56262. ":woman_lifting_weights_tone5:": {
  56263. "uc_base": "1f3cb-1f3ff-2640",
  56264. "uc_output": "1f3cb-1f3ff-200d-2640-fe0f",
  56265. "uc_match": "1f3cb-fe0f-1f3ff-2640-fe0f",
  56266. "uc_greedy": "1f3cb-1f3ff-2640",
  56267. "shortnames": [":woman_lifting_weights_dark_skin_tone:"],
  56268. "category": "activity"
  56269. },
  56270. ":woman_mage_tone1:": {
  56271. "uc_base": "1f9d9-1f3fb-2640",
  56272. "uc_output": "1f9d9-1f3fb-200d-2640-fe0f",
  56273. "uc_match": "1f9d9-1f3fb-2640-fe0f",
  56274. "uc_greedy": "1f9d9-1f3fb-2640",
  56275. "shortnames": [":woman_mage_light_skin_tone:"],
  56276. "category": "people"
  56277. },
  56278. ":woman_mage_tone2:": {
  56279. "uc_base": "1f9d9-1f3fc-2640",
  56280. "uc_output": "1f9d9-1f3fc-200d-2640-fe0f",
  56281. "uc_match": "1f9d9-1f3fc-2640-fe0f",
  56282. "uc_greedy": "1f9d9-1f3fc-2640",
  56283. "shortnames": [":woman_mage_medium_light_skin_tone:"],
  56284. "category": "people"
  56285. },
  56286. ":woman_mage_tone3:": {
  56287. "uc_base": "1f9d9-1f3fd-2640",
  56288. "uc_output": "1f9d9-1f3fd-200d-2640-fe0f",
  56289. "uc_match": "1f9d9-1f3fd-2640-fe0f",
  56290. "uc_greedy": "1f9d9-1f3fd-2640",
  56291. "shortnames": [":woman_mage_medium_skin_tone:"],
  56292. "category": "people"
  56293. },
  56294. ":woman_mage_tone4:": {
  56295. "uc_base": "1f9d9-1f3fe-2640",
  56296. "uc_output": "1f9d9-1f3fe-200d-2640-fe0f",
  56297. "uc_match": "1f9d9-1f3fe-2640-fe0f",
  56298. "uc_greedy": "1f9d9-1f3fe-2640",
  56299. "shortnames": [":woman_mage_medium_dark_skin_tone:"],
  56300. "category": "people"
  56301. },
  56302. ":woman_mage_tone5:": {
  56303. "uc_base": "1f9d9-1f3ff-2640",
  56304. "uc_output": "1f9d9-1f3ff-200d-2640-fe0f",
  56305. "uc_match": "1f9d9-1f3ff-2640-fe0f",
  56306. "uc_greedy": "1f9d9-1f3ff-2640",
  56307. "shortnames": [":woman_mage_dark_skin_tone:"],
  56308. "category": "people"
  56309. },
  56310. ":woman_mountain_biking_tone1:": {
  56311. "uc_base": "1f6b5-1f3fb-2640",
  56312. "uc_output": "1f6b5-1f3fb-200d-2640-fe0f",
  56313. "uc_match": "1f6b5-1f3fb-2640-fe0f",
  56314. "uc_greedy": "1f6b5-1f3fb-2640",
  56315. "shortnames": [":woman_mountain_biking_light_skin_tone:"],
  56316. "category": "activity"
  56317. },
  56318. ":woman_mountain_biking_tone2:": {
  56319. "uc_base": "1f6b5-1f3fc-2640",
  56320. "uc_output": "1f6b5-1f3fc-200d-2640-fe0f",
  56321. "uc_match": "1f6b5-1f3fc-2640-fe0f",
  56322. "uc_greedy": "1f6b5-1f3fc-2640",
  56323. "shortnames": [":woman_mountain_biking_medium_light_skin_tone:"],
  56324. "category": "activity"
  56325. },
  56326. ":woman_mountain_biking_tone3:": {
  56327. "uc_base": "1f6b5-1f3fd-2640",
  56328. "uc_output": "1f6b5-1f3fd-200d-2640-fe0f",
  56329. "uc_match": "1f6b5-1f3fd-2640-fe0f",
  56330. "uc_greedy": "1f6b5-1f3fd-2640",
  56331. "shortnames": [":woman_mountain_biking_medium_skin_tone:"],
  56332. "category": "activity"
  56333. },
  56334. ":woman_mountain_biking_tone4:": {
  56335. "uc_base": "1f6b5-1f3fe-2640",
  56336. "uc_output": "1f6b5-1f3fe-200d-2640-fe0f",
  56337. "uc_match": "1f6b5-1f3fe-2640-fe0f",
  56338. "uc_greedy": "1f6b5-1f3fe-2640",
  56339. "shortnames": [":woman_mountain_biking_medium_dark_skin_tone:"],
  56340. "category": "activity"
  56341. },
  56342. ":woman_mountain_biking_tone5:": {
  56343. "uc_base": "1f6b5-1f3ff-2640",
  56344. "uc_output": "1f6b5-1f3ff-200d-2640-fe0f",
  56345. "uc_match": "1f6b5-1f3ff-2640-fe0f",
  56346. "uc_greedy": "1f6b5-1f3ff-2640",
  56347. "shortnames": [":woman_mountain_biking_dark_skin_tone:"],
  56348. "category": "activity"
  56349. },
  56350. ":woman_pilot_tone1:": {
  56351. "uc_base": "1f469-1f3fb-2708",
  56352. "uc_output": "1f469-1f3fb-200d-2708-fe0f",
  56353. "uc_match": "1f469-1f3fb-2708-fe0f",
  56354. "uc_greedy": "1f469-1f3fb-2708",
  56355. "shortnames": [":woman_pilot_light_skin_tone:"],
  56356. "category": "people"
  56357. },
  56358. ":woman_pilot_tone2:": {
  56359. "uc_base": "1f469-1f3fc-2708",
  56360. "uc_output": "1f469-1f3fc-200d-2708-fe0f",
  56361. "uc_match": "1f469-1f3fc-2708-fe0f",
  56362. "uc_greedy": "1f469-1f3fc-2708",
  56363. "shortnames": [":woman_pilot_medium_light_skin_tone:"],
  56364. "category": "people"
  56365. },
  56366. ":woman_pilot_tone3:": {
  56367. "uc_base": "1f469-1f3fd-2708",
  56368. "uc_output": "1f469-1f3fd-200d-2708-fe0f",
  56369. "uc_match": "1f469-1f3fd-2708-fe0f",
  56370. "uc_greedy": "1f469-1f3fd-2708",
  56371. "shortnames": [":woman_pilot_medium_skin_tone:"],
  56372. "category": "people"
  56373. },
  56374. ":woman_pilot_tone4:": {
  56375. "uc_base": "1f469-1f3fe-2708",
  56376. "uc_output": "1f469-1f3fe-200d-2708-fe0f",
  56377. "uc_match": "1f469-1f3fe-2708-fe0f",
  56378. "uc_greedy": "1f469-1f3fe-2708",
  56379. "shortnames": [":woman_pilot_medium_dark_skin_tone:"],
  56380. "category": "people"
  56381. },
  56382. ":woman_pilot_tone5:": {
  56383. "uc_base": "1f469-1f3ff-2708",
  56384. "uc_output": "1f469-1f3ff-200d-2708-fe0f",
  56385. "uc_match": "1f469-1f3ff-2708-fe0f",
  56386. "uc_greedy": "1f469-1f3ff-2708",
  56387. "shortnames": [":woman_pilot_dark_skin_tone:"],
  56388. "category": "people"
  56389. },
  56390. ":woman_playing_handball_tone1:": {
  56391. "uc_base": "1f93e-1f3fb-2640",
  56392. "uc_output": "1f93e-1f3fb-200d-2640-fe0f",
  56393. "uc_match": "1f93e-1f3fb-2640-fe0f",
  56394. "uc_greedy": "1f93e-1f3fb-2640",
  56395. "shortnames": [":woman_playing_handball_light_skin_tone:"],
  56396. "category": "activity"
  56397. },
  56398. ":woman_playing_handball_tone2:": {
  56399. "uc_base": "1f93e-1f3fc-2640",
  56400. "uc_output": "1f93e-1f3fc-200d-2640-fe0f",
  56401. "uc_match": "1f93e-1f3fc-2640-fe0f",
  56402. "uc_greedy": "1f93e-1f3fc-2640",
  56403. "shortnames": [":woman_playing_handball_medium_light_skin_tone:"],
  56404. "category": "activity"
  56405. },
  56406. ":woman_playing_handball_tone3:": {
  56407. "uc_base": "1f93e-1f3fd-2640",
  56408. "uc_output": "1f93e-1f3fd-200d-2640-fe0f",
  56409. "uc_match": "1f93e-1f3fd-2640-fe0f",
  56410. "uc_greedy": "1f93e-1f3fd-2640",
  56411. "shortnames": [":woman_playing_handball_medium_skin_tone:"],
  56412. "category": "activity"
  56413. },
  56414. ":woman_playing_handball_tone4:": {
  56415. "uc_base": "1f93e-1f3fe-2640",
  56416. "uc_output": "1f93e-1f3fe-200d-2640-fe0f",
  56417. "uc_match": "1f93e-1f3fe-2640-fe0f",
  56418. "uc_greedy": "1f93e-1f3fe-2640",
  56419. "shortnames": [":woman_playing_handball_medium_dark_skin_tone:"],
  56420. "category": "activity"
  56421. },
  56422. ":woman_playing_handball_tone5:": {
  56423. "uc_base": "1f93e-1f3ff-2640",
  56424. "uc_output": "1f93e-1f3ff-200d-2640-fe0f",
  56425. "uc_match": "1f93e-1f3ff-2640-fe0f",
  56426. "uc_greedy": "1f93e-1f3ff-2640",
  56427. "shortnames": [":woman_playing_handball_dark_skin_tone:"],
  56428. "category": "activity"
  56429. },
  56430. ":woman_playing_water_polo_tone1:": {
  56431. "uc_base": "1f93d-1f3fb-2640",
  56432. "uc_output": "1f93d-1f3fb-200d-2640-fe0f",
  56433. "uc_match": "1f93d-1f3fb-2640-fe0f",
  56434. "uc_greedy": "1f93d-1f3fb-2640",
  56435. "shortnames": [":woman_playing_water_polo_light_skin_tone:"],
  56436. "category": "activity"
  56437. },
  56438. ":woman_playing_water_polo_tone2:": {
  56439. "uc_base": "1f93d-1f3fc-2640",
  56440. "uc_output": "1f93d-1f3fc-200d-2640-fe0f",
  56441. "uc_match": "1f93d-1f3fc-2640-fe0f",
  56442. "uc_greedy": "1f93d-1f3fc-2640",
  56443. "shortnames": [":woman_playing_water_polo_medium_light_skin_tone:"],
  56444. "category": "activity"
  56445. },
  56446. ":woman_playing_water_polo_tone3:": {
  56447. "uc_base": "1f93d-1f3fd-2640",
  56448. "uc_output": "1f93d-1f3fd-200d-2640-fe0f",
  56449. "uc_match": "1f93d-1f3fd-2640-fe0f",
  56450. "uc_greedy": "1f93d-1f3fd-2640",
  56451. "shortnames": [":woman_playing_water_polo_medium_skin_tone:"],
  56452. "category": "activity"
  56453. },
  56454. ":woman_playing_water_polo_tone4:": {
  56455. "uc_base": "1f93d-1f3fe-2640",
  56456. "uc_output": "1f93d-1f3fe-200d-2640-fe0f",
  56457. "uc_match": "1f93d-1f3fe-2640-fe0f",
  56458. "uc_greedy": "1f93d-1f3fe-2640",
  56459. "shortnames": [":woman_playing_water_polo_medium_dark_skin_tone:"],
  56460. "category": "activity"
  56461. },
  56462. ":woman_playing_water_polo_tone5:": {
  56463. "uc_base": "1f93d-1f3ff-2640",
  56464. "uc_output": "1f93d-1f3ff-200d-2640-fe0f",
  56465. "uc_match": "1f93d-1f3ff-2640-fe0f",
  56466. "uc_greedy": "1f93d-1f3ff-2640",
  56467. "shortnames": [":woman_playing_water_polo_dark_skin_tone:"],
  56468. "category": "activity"
  56469. },
  56470. ":woman_police_officer_tone1:": {
  56471. "uc_base": "1f46e-1f3fb-2640",
  56472. "uc_output": "1f46e-1f3fb-200d-2640-fe0f",
  56473. "uc_match": "1f46e-1f3fb-2640-fe0f",
  56474. "uc_greedy": "1f46e-1f3fb-2640",
  56475. "shortnames": [":woman_police_officer_light_skin_tone:"],
  56476. "category": "people"
  56477. },
  56478. ":woman_police_officer_tone2:": {
  56479. "uc_base": "1f46e-1f3fc-2640",
  56480. "uc_output": "1f46e-1f3fc-200d-2640-fe0f",
  56481. "uc_match": "1f46e-1f3fc-2640-fe0f",
  56482. "uc_greedy": "1f46e-1f3fc-2640",
  56483. "shortnames": [":woman_police_officer_medium_light_skin_tone:"],
  56484. "category": "people"
  56485. },
  56486. ":woman_police_officer_tone3:": {
  56487. "uc_base": "1f46e-1f3fd-2640",
  56488. "uc_output": "1f46e-1f3fd-200d-2640-fe0f",
  56489. "uc_match": "1f46e-1f3fd-2640-fe0f",
  56490. "uc_greedy": "1f46e-1f3fd-2640",
  56491. "shortnames": [":woman_police_officer_medium_skin_tone:"],
  56492. "category": "people"
  56493. },
  56494. ":woman_police_officer_tone4:": {
  56495. "uc_base": "1f46e-1f3fe-2640",
  56496. "uc_output": "1f46e-1f3fe-200d-2640-fe0f",
  56497. "uc_match": "1f46e-1f3fe-2640-fe0f",
  56498. "uc_greedy": "1f46e-1f3fe-2640",
  56499. "shortnames": [":woman_police_officer_medium_dark_skin_tone:"],
  56500. "category": "people"
  56501. },
  56502. ":woman_police_officer_tone5:": {
  56503. "uc_base": "1f46e-1f3ff-2640",
  56504. "uc_output": "1f46e-1f3ff-200d-2640-fe0f",
  56505. "uc_match": "1f46e-1f3ff-2640-fe0f",
  56506. "uc_greedy": "1f46e-1f3ff-2640",
  56507. "shortnames": [":woman_police_officer_dark_skin_tone:"],
  56508. "category": "people"
  56509. },
  56510. ":woman_pouting_tone1:": {
  56511. "uc_base": "1f64e-1f3fb-2640",
  56512. "uc_output": "1f64e-1f3fb-200d-2640-fe0f",
  56513. "uc_match": "1f64e-1f3fb-2640-fe0f",
  56514. "uc_greedy": "1f64e-1f3fb-2640",
  56515. "shortnames": [":woman_pouting_light_skin_tone:"],
  56516. "category": "people"
  56517. },
  56518. ":woman_pouting_tone2:": {
  56519. "uc_base": "1f64e-1f3fc-2640",
  56520. "uc_output": "1f64e-1f3fc-200d-2640-fe0f",
  56521. "uc_match": "1f64e-1f3fc-2640-fe0f",
  56522. "uc_greedy": "1f64e-1f3fc-2640",
  56523. "shortnames": [":woman_pouting_medium_light_skin_tone:"],
  56524. "category": "people"
  56525. },
  56526. ":woman_pouting_tone3:": {
  56527. "uc_base": "1f64e-1f3fd-2640",
  56528. "uc_output": "1f64e-1f3fd-200d-2640-fe0f",
  56529. "uc_match": "1f64e-1f3fd-2640-fe0f",
  56530. "uc_greedy": "1f64e-1f3fd-2640",
  56531. "shortnames": [":woman_pouting_medium_skin_tone:"],
  56532. "category": "people"
  56533. },
  56534. ":woman_pouting_tone4:": {
  56535. "uc_base": "1f64e-1f3fe-2640",
  56536. "uc_output": "1f64e-1f3fe-200d-2640-fe0f",
  56537. "uc_match": "1f64e-1f3fe-2640-fe0f",
  56538. "uc_greedy": "1f64e-1f3fe-2640",
  56539. "shortnames": [":woman_pouting_medium_dark_skin_tone:"],
  56540. "category": "people"
  56541. },
  56542. ":woman_pouting_tone5:": {
  56543. "uc_base": "1f64e-1f3ff-2640",
  56544. "uc_output": "1f64e-1f3ff-200d-2640-fe0f",
  56545. "uc_match": "1f64e-1f3ff-2640-fe0f",
  56546. "uc_greedy": "1f64e-1f3ff-2640",
  56547. "shortnames": [":woman_pouting_dark_skin_tone:"],
  56548. "category": "people"
  56549. },
  56550. ":woman_raising_hand_tone1:": {
  56551. "uc_base": "1f64b-1f3fb-2640",
  56552. "uc_output": "1f64b-1f3fb-200d-2640-fe0f",
  56553. "uc_match": "1f64b-1f3fb-2640-fe0f",
  56554. "uc_greedy": "1f64b-1f3fb-2640",
  56555. "shortnames": [":woman_raising_hand_light_skin_tone:"],
  56556. "category": "people"
  56557. },
  56558. ":woman_raising_hand_tone2:": {
  56559. "uc_base": "1f64b-1f3fc-2640",
  56560. "uc_output": "1f64b-1f3fc-200d-2640-fe0f",
  56561. "uc_match": "1f64b-1f3fc-2640-fe0f",
  56562. "uc_greedy": "1f64b-1f3fc-2640",
  56563. "shortnames": [":woman_raising_hand_medium_light_skin_tone:"],
  56564. "category": "people"
  56565. },
  56566. ":woman_raising_hand_tone3:": {
  56567. "uc_base": "1f64b-1f3fd-2640",
  56568. "uc_output": "1f64b-1f3fd-200d-2640-fe0f",
  56569. "uc_match": "1f64b-1f3fd-2640-fe0f",
  56570. "uc_greedy": "1f64b-1f3fd-2640",
  56571. "shortnames": [":woman_raising_hand_medium_skin_tone:"],
  56572. "category": "people"
  56573. },
  56574. ":woman_raising_hand_tone4:": {
  56575. "uc_base": "1f64b-1f3fe-2640",
  56576. "uc_output": "1f64b-1f3fe-200d-2640-fe0f",
  56577. "uc_match": "1f64b-1f3fe-2640-fe0f",
  56578. "uc_greedy": "1f64b-1f3fe-2640",
  56579. "shortnames": [":woman_raising_hand_medium_dark_skin_tone:"],
  56580. "category": "people"
  56581. },
  56582. ":woman_raising_hand_tone5:": {
  56583. "uc_base": "1f64b-1f3ff-2640",
  56584. "uc_output": "1f64b-1f3ff-200d-2640-fe0f",
  56585. "uc_match": "1f64b-1f3ff-2640-fe0f",
  56586. "uc_greedy": "1f64b-1f3ff-2640",
  56587. "shortnames": [":woman_raising_hand_dark_skin_tone:"],
  56588. "category": "people"
  56589. },
  56590. ":woman_rowing_boat_tone1:": {
  56591. "uc_base": "1f6a3-1f3fb-2640",
  56592. "uc_output": "1f6a3-1f3fb-200d-2640-fe0f",
  56593. "uc_match": "1f6a3-1f3fb-2640-fe0f",
  56594. "uc_greedy": "1f6a3-1f3fb-2640",
  56595. "shortnames": [":woman_rowing_boat_light_skin_tone:"],
  56596. "category": "activity"
  56597. },
  56598. ":woman_rowing_boat_tone2:": {
  56599. "uc_base": "1f6a3-1f3fc-2640",
  56600. "uc_output": "1f6a3-1f3fc-200d-2640-fe0f",
  56601. "uc_match": "1f6a3-1f3fc-2640-fe0f",
  56602. "uc_greedy": "1f6a3-1f3fc-2640",
  56603. "shortnames": [":woman_rowing_boat_medium_light_skin_tone:"],
  56604. "category": "activity"
  56605. },
  56606. ":woman_rowing_boat_tone3:": {
  56607. "uc_base": "1f6a3-1f3fd-2640",
  56608. "uc_output": "1f6a3-1f3fd-200d-2640-fe0f",
  56609. "uc_match": "1f6a3-1f3fd-2640-fe0f",
  56610. "uc_greedy": "1f6a3-1f3fd-2640",
  56611. "shortnames": [":woman_rowing_boat_medium_skin_tone:"],
  56612. "category": "activity"
  56613. },
  56614. ":woman_rowing_boat_tone4:": {
  56615. "uc_base": "1f6a3-1f3fe-2640",
  56616. "uc_output": "1f6a3-1f3fe-200d-2640-fe0f",
  56617. "uc_match": "1f6a3-1f3fe-2640-fe0f",
  56618. "uc_greedy": "1f6a3-1f3fe-2640",
  56619. "shortnames": [":woman_rowing_boat_medium_dark_skin_tone:"],
  56620. "category": "activity"
  56621. },
  56622. ":woman_rowing_boat_tone5:": {
  56623. "uc_base": "1f6a3-1f3ff-2640",
  56624. "uc_output": "1f6a3-1f3ff-200d-2640-fe0f",
  56625. "uc_match": "1f6a3-1f3ff-2640-fe0f",
  56626. "uc_greedy": "1f6a3-1f3ff-2640",
  56627. "shortnames": [":woman_rowing_boat_dark_skin_tone:"],
  56628. "category": "activity"
  56629. },
  56630. ":woman_running_tone1:": {
  56631. "uc_base": "1f3c3-1f3fb-2640",
  56632. "uc_output": "1f3c3-1f3fb-200d-2640-fe0f",
  56633. "uc_match": "1f3c3-1f3fb-2640-fe0f",
  56634. "uc_greedy": "1f3c3-1f3fb-2640",
  56635. "shortnames": [":woman_running_light_skin_tone:"],
  56636. "category": "people"
  56637. },
  56638. ":woman_running_tone2:": {
  56639. "uc_base": "1f3c3-1f3fc-2640",
  56640. "uc_output": "1f3c3-1f3fc-200d-2640-fe0f",
  56641. "uc_match": "1f3c3-1f3fc-2640-fe0f",
  56642. "uc_greedy": "1f3c3-1f3fc-2640",
  56643. "shortnames": [":woman_running_medium_light_skin_tone:"],
  56644. "category": "people"
  56645. },
  56646. ":woman_running_tone3:": {
  56647. "uc_base": "1f3c3-1f3fd-2640",
  56648. "uc_output": "1f3c3-1f3fd-200d-2640-fe0f",
  56649. "uc_match": "1f3c3-1f3fd-2640-fe0f",
  56650. "uc_greedy": "1f3c3-1f3fd-2640",
  56651. "shortnames": [":woman_running_medium_skin_tone:"],
  56652. "category": "people"
  56653. },
  56654. ":woman_running_tone4:": {
  56655. "uc_base": "1f3c3-1f3fe-2640",
  56656. "uc_output": "1f3c3-1f3fe-200d-2640-fe0f",
  56657. "uc_match": "1f3c3-1f3fe-2640-fe0f",
  56658. "uc_greedy": "1f3c3-1f3fe-2640",
  56659. "shortnames": [":woman_running_medium_dark_skin_tone:"],
  56660. "category": "people"
  56661. },
  56662. ":woman_running_tone5:": {
  56663. "uc_base": "1f3c3-1f3ff-2640",
  56664. "uc_output": "1f3c3-1f3ff-200d-2640-fe0f",
  56665. "uc_match": "1f3c3-1f3ff-2640-fe0f",
  56666. "uc_greedy": "1f3c3-1f3ff-2640",
  56667. "shortnames": [":woman_running_dark_skin_tone:"],
  56668. "category": "people"
  56669. },
  56670. ":woman_shrugging_tone1:": {
  56671. "uc_base": "1f937-1f3fb-2640",
  56672. "uc_output": "1f937-1f3fb-200d-2640-fe0f",
  56673. "uc_match": "1f937-1f3fb-2640-fe0f",
  56674. "uc_greedy": "1f937-1f3fb-2640",
  56675. "shortnames": [":woman_shrugging_light_skin_tone:"],
  56676. "category": "people"
  56677. },
  56678. ":woman_shrugging_tone2:": {
  56679. "uc_base": "1f937-1f3fc-2640",
  56680. "uc_output": "1f937-1f3fc-200d-2640-fe0f",
  56681. "uc_match": "1f937-1f3fc-2640-fe0f",
  56682. "uc_greedy": "1f937-1f3fc-2640",
  56683. "shortnames": [":woman_shrugging_medium_light_skin_tone:"],
  56684. "category": "people"
  56685. },
  56686. ":woman_shrugging_tone3:": {
  56687. "uc_base": "1f937-1f3fd-2640",
  56688. "uc_output": "1f937-1f3fd-200d-2640-fe0f",
  56689. "uc_match": "1f937-1f3fd-2640-fe0f",
  56690. "uc_greedy": "1f937-1f3fd-2640",
  56691. "shortnames": [":woman_shrugging_medium_skin_tone:"],
  56692. "category": "people"
  56693. },
  56694. ":woman_shrugging_tone4:": {
  56695. "uc_base": "1f937-1f3fe-2640",
  56696. "uc_output": "1f937-1f3fe-200d-2640-fe0f",
  56697. "uc_match": "1f937-1f3fe-2640-fe0f",
  56698. "uc_greedy": "1f937-1f3fe-2640",
  56699. "shortnames": [":woman_shrugging_medium_dark_skin_tone:"],
  56700. "category": "people"
  56701. },
  56702. ":woman_shrugging_tone5:": {
  56703. "uc_base": "1f937-1f3ff-2640",
  56704. "uc_output": "1f937-1f3ff-200d-2640-fe0f",
  56705. "uc_match": "1f937-1f3ff-2640-fe0f",
  56706. "uc_greedy": "1f937-1f3ff-2640",
  56707. "shortnames": [":woman_shrugging_dark_skin_tone:"],
  56708. "category": "people"
  56709. },
  56710. ":woman_surfing_tone1:": {
  56711. "uc_base": "1f3c4-1f3fb-2640",
  56712. "uc_output": "1f3c4-1f3fb-200d-2640-fe0f",
  56713. "uc_match": "1f3c4-1f3fb-2640-fe0f",
  56714. "uc_greedy": "1f3c4-1f3fb-2640",
  56715. "shortnames": [":woman_surfing_light_skin_tone:"],
  56716. "category": "activity"
  56717. },
  56718. ":woman_surfing_tone2:": {
  56719. "uc_base": "1f3c4-1f3fc-2640",
  56720. "uc_output": "1f3c4-1f3fc-200d-2640-fe0f",
  56721. "uc_match": "1f3c4-1f3fc-2640-fe0f",
  56722. "uc_greedy": "1f3c4-1f3fc-2640",
  56723. "shortnames": [":woman_surfing_medium_light_skin_tone:"],
  56724. "category": "activity"
  56725. },
  56726. ":woman_surfing_tone3:": {
  56727. "uc_base": "1f3c4-1f3fd-2640",
  56728. "uc_output": "1f3c4-1f3fd-200d-2640-fe0f",
  56729. "uc_match": "1f3c4-1f3fd-2640-fe0f",
  56730. "uc_greedy": "1f3c4-1f3fd-2640",
  56731. "shortnames": [":woman_surfing_medium_skin_tone:"],
  56732. "category": "activity"
  56733. },
  56734. ":woman_surfing_tone4:": {
  56735. "uc_base": "1f3c4-1f3fe-2640",
  56736. "uc_output": "1f3c4-1f3fe-200d-2640-fe0f",
  56737. "uc_match": "1f3c4-1f3fe-2640-fe0f",
  56738. "uc_greedy": "1f3c4-1f3fe-2640",
  56739. "shortnames": [":woman_surfing_medium_dark_skin_tone:"],
  56740. "category": "activity"
  56741. },
  56742. ":woman_surfing_tone5:": {
  56743. "uc_base": "1f3c4-1f3ff-2640",
  56744. "uc_output": "1f3c4-1f3ff-200d-2640-fe0f",
  56745. "uc_match": "1f3c4-1f3ff-2640-fe0f",
  56746. "uc_greedy": "1f3c4-1f3ff-2640",
  56747. "shortnames": [":woman_surfing_dark_skin_tone:"],
  56748. "category": "activity"
  56749. },
  56750. ":woman_swimming_tone1:": {
  56751. "uc_base": "1f3ca-1f3fb-2640",
  56752. "uc_output": "1f3ca-1f3fb-200d-2640-fe0f",
  56753. "uc_match": "1f3ca-1f3fb-2640-fe0f",
  56754. "uc_greedy": "1f3ca-1f3fb-2640",
  56755. "shortnames": [":woman_swimming_light_skin_tone:"],
  56756. "category": "activity"
  56757. },
  56758. ":woman_swimming_tone2:": {
  56759. "uc_base": "1f3ca-1f3fc-2640",
  56760. "uc_output": "1f3ca-1f3fc-200d-2640-fe0f",
  56761. "uc_match": "1f3ca-1f3fc-2640-fe0f",
  56762. "uc_greedy": "1f3ca-1f3fc-2640",
  56763. "shortnames": [":woman_swimming_medium_light_skin_tone:"],
  56764. "category": "activity"
  56765. },
  56766. ":woman_swimming_tone3:": {
  56767. "uc_base": "1f3ca-1f3fd-2640",
  56768. "uc_output": "1f3ca-1f3fd-200d-2640-fe0f",
  56769. "uc_match": "1f3ca-1f3fd-2640-fe0f",
  56770. "uc_greedy": "1f3ca-1f3fd-2640",
  56771. "shortnames": [":woman_swimming_medium_skin_tone:"],
  56772. "category": "activity"
  56773. },
  56774. ":woman_swimming_tone4:": {
  56775. "uc_base": "1f3ca-1f3fe-2640",
  56776. "uc_output": "1f3ca-1f3fe-200d-2640-fe0f",
  56777. "uc_match": "1f3ca-1f3fe-2640-fe0f",
  56778. "uc_greedy": "1f3ca-1f3fe-2640",
  56779. "shortnames": [":woman_swimming_medium_dark_skin_tone:"],
  56780. "category": "activity"
  56781. },
  56782. ":woman_swimming_tone5:": {
  56783. "uc_base": "1f3ca-1f3ff-2640",
  56784. "uc_output": "1f3ca-1f3ff-200d-2640-fe0f",
  56785. "uc_match": "1f3ca-1f3ff-2640-fe0f",
  56786. "uc_greedy": "1f3ca-1f3ff-2640",
  56787. "shortnames": [":woman_swimming_dark_skin_tone:"],
  56788. "category": "activity"
  56789. },
  56790. ":woman_tipping_hand_tone1:": {
  56791. "uc_base": "1f481-1f3fb-2640",
  56792. "uc_output": "1f481-1f3fb-200d-2640-fe0f",
  56793. "uc_match": "1f481-1f3fb-2640-fe0f",
  56794. "uc_greedy": "1f481-1f3fb-2640",
  56795. "shortnames": [":woman_tipping_hand_light_skin_tone:"],
  56796. "category": "people"
  56797. },
  56798. ":woman_tipping_hand_tone2:": {
  56799. "uc_base": "1f481-1f3fc-2640",
  56800. "uc_output": "1f481-1f3fc-200d-2640-fe0f",
  56801. "uc_match": "1f481-1f3fc-2640-fe0f",
  56802. "uc_greedy": "1f481-1f3fc-2640",
  56803. "shortnames": [":woman_tipping_hand_medium_light_skin_tone:"],
  56804. "category": "people"
  56805. },
  56806. ":woman_tipping_hand_tone3:": {
  56807. "uc_base": "1f481-1f3fd-2640",
  56808. "uc_output": "1f481-1f3fd-200d-2640-fe0f",
  56809. "uc_match": "1f481-1f3fd-2640-fe0f",
  56810. "uc_greedy": "1f481-1f3fd-2640",
  56811. "shortnames": [":woman_tipping_hand_medium_skin_tone:"],
  56812. "category": "people"
  56813. },
  56814. ":woman_tipping_hand_tone4:": {
  56815. "uc_base": "1f481-1f3fe-2640",
  56816. "uc_output": "1f481-1f3fe-200d-2640-fe0f",
  56817. "uc_match": "1f481-1f3fe-2640-fe0f",
  56818. "uc_greedy": "1f481-1f3fe-2640",
  56819. "shortnames": [":woman_tipping_hand_medium_dark_skin_tone:"],
  56820. "category": "people"
  56821. },
  56822. ":woman_tipping_hand_tone5:": {
  56823. "uc_base": "1f481-1f3ff-2640",
  56824. "uc_output": "1f481-1f3ff-200d-2640-fe0f",
  56825. "uc_match": "1f481-1f3ff-2640-fe0f",
  56826. "uc_greedy": "1f481-1f3ff-2640",
  56827. "shortnames": [":woman_tipping_hand_dark_skin_tone:"],
  56828. "category": "people"
  56829. },
  56830. ":woman_vampire_tone1:": {
  56831. "uc_base": "1f9db-1f3fb-2640",
  56832. "uc_output": "1f9db-1f3fb-200d-2640-fe0f",
  56833. "uc_match": "1f9db-1f3fb-2640-fe0f",
  56834. "uc_greedy": "1f9db-1f3fb-2640",
  56835. "shortnames": [":woman_vampire_light_skin_tone:"],
  56836. "category": "people"
  56837. },
  56838. ":woman_vampire_tone2:": {
  56839. "uc_base": "1f9db-1f3fc-2640",
  56840. "uc_output": "1f9db-1f3fc-200d-2640-fe0f",
  56841. "uc_match": "1f9db-1f3fc-2640-fe0f",
  56842. "uc_greedy": "1f9db-1f3fc-2640",
  56843. "shortnames": [":woman_vampire_medium_light_skin_tone:"],
  56844. "category": "people"
  56845. },
  56846. ":woman_vampire_tone3:": {
  56847. "uc_base": "1f9db-1f3fd-2640",
  56848. "uc_output": "1f9db-1f3fd-200d-2640-fe0f",
  56849. "uc_match": "1f9db-1f3fd-2640-fe0f",
  56850. "uc_greedy": "1f9db-1f3fd-2640",
  56851. "shortnames": [":woman_vampire_medium_skin_tone:"],
  56852. "category": "people"
  56853. },
  56854. ":woman_vampire_tone4:": {
  56855. "uc_base": "1f9db-1f3fe-2640",
  56856. "uc_output": "1f9db-1f3fe-200d-2640-fe0f",
  56857. "uc_match": "1f9db-1f3fe-2640-fe0f",
  56858. "uc_greedy": "1f9db-1f3fe-2640",
  56859. "shortnames": [":woman_vampire_medium_dark_skin_tone:"],
  56860. "category": "people"
  56861. },
  56862. ":woman_vampire_tone5:": {
  56863. "uc_base": "1f9db-1f3ff-2640",
  56864. "uc_output": "1f9db-1f3ff-200d-2640-fe0f",
  56865. "uc_match": "1f9db-1f3ff-2640-fe0f",
  56866. "uc_greedy": "1f9db-1f3ff-2640",
  56867. "shortnames": [":woman_vampire_dark_skin_tone:"],
  56868. "category": "people"
  56869. },
  56870. ":woman_walking_tone1:": {
  56871. "uc_base": "1f6b6-1f3fb-2640",
  56872. "uc_output": "1f6b6-1f3fb-200d-2640-fe0f",
  56873. "uc_match": "1f6b6-1f3fb-2640-fe0f",
  56874. "uc_greedy": "1f6b6-1f3fb-2640",
  56875. "shortnames": [":woman_walking_light_skin_tone:"],
  56876. "category": "people"
  56877. },
  56878. ":woman_walking_tone2:": {
  56879. "uc_base": "1f6b6-1f3fc-2640",
  56880. "uc_output": "1f6b6-1f3fc-200d-2640-fe0f",
  56881. "uc_match": "1f6b6-1f3fc-2640-fe0f",
  56882. "uc_greedy": "1f6b6-1f3fc-2640",
  56883. "shortnames": [":woman_walking_medium_light_skin_tone:"],
  56884. "category": "people"
  56885. },
  56886. ":woman_walking_tone3:": {
  56887. "uc_base": "1f6b6-1f3fd-2640",
  56888. "uc_output": "1f6b6-1f3fd-200d-2640-fe0f",
  56889. "uc_match": "1f6b6-1f3fd-2640-fe0f",
  56890. "uc_greedy": "1f6b6-1f3fd-2640",
  56891. "shortnames": [":woman_walking_medium_skin_tone:"],
  56892. "category": "people"
  56893. },
  56894. ":woman_walking_tone4:": {
  56895. "uc_base": "1f6b6-1f3fe-2640",
  56896. "uc_output": "1f6b6-1f3fe-200d-2640-fe0f",
  56897. "uc_match": "1f6b6-1f3fe-2640-fe0f",
  56898. "uc_greedy": "1f6b6-1f3fe-2640",
  56899. "shortnames": [":woman_walking_medium_dark_skin_tone:"],
  56900. "category": "people"
  56901. },
  56902. ":woman_walking_tone5:": {
  56903. "uc_base": "1f6b6-1f3ff-2640",
  56904. "uc_output": "1f6b6-1f3ff-200d-2640-fe0f",
  56905. "uc_match": "1f6b6-1f3ff-2640-fe0f",
  56906. "uc_greedy": "1f6b6-1f3ff-2640",
  56907. "shortnames": [":woman_walking_dark_skin_tone:"],
  56908. "category": "people"
  56909. },
  56910. ":woman_wearing_turban_tone1:": {
  56911. "uc_base": "1f473-1f3fb-2640",
  56912. "uc_output": "1f473-1f3fb-200d-2640-fe0f",
  56913. "uc_match": "1f473-1f3fb-2640-fe0f",
  56914. "uc_greedy": "1f473-1f3fb-2640",
  56915. "shortnames": [":woman_wearing_turban_light_skin_tone:"],
  56916. "category": "people"
  56917. },
  56918. ":woman_wearing_turban_tone2:": {
  56919. "uc_base": "1f473-1f3fc-2640",
  56920. "uc_output": "1f473-1f3fc-200d-2640-fe0f",
  56921. "uc_match": "1f473-1f3fc-2640-fe0f",
  56922. "uc_greedy": "1f473-1f3fc-2640",
  56923. "shortnames": [":woman_wearing_turban_medium_light_skin_tone:"],
  56924. "category": "people"
  56925. },
  56926. ":woman_wearing_turban_tone3:": {
  56927. "uc_base": "1f473-1f3fd-2640",
  56928. "uc_output": "1f473-1f3fd-200d-2640-fe0f",
  56929. "uc_match": "1f473-1f3fd-2640-fe0f",
  56930. "uc_greedy": "1f473-1f3fd-2640",
  56931. "shortnames": [":woman_wearing_turban_medium_skin_tone:"],
  56932. "category": "people"
  56933. },
  56934. ":woman_wearing_turban_tone4:": {
  56935. "uc_base": "1f473-1f3fe-2640",
  56936. "uc_output": "1f473-1f3fe-200d-2640-fe0f",
  56937. "uc_match": "1f473-1f3fe-2640-fe0f",
  56938. "uc_greedy": "1f473-1f3fe-2640",
  56939. "shortnames": [":woman_wearing_turban_medium_dark_skin_tone:"],
  56940. "category": "people"
  56941. },
  56942. ":woman_wearing_turban_tone5:": {
  56943. "uc_base": "1f473-1f3ff-2640",
  56944. "uc_output": "1f473-1f3ff-200d-2640-fe0f",
  56945. "uc_match": "1f473-1f3ff-2640-fe0f",
  56946. "uc_greedy": "1f473-1f3ff-2640",
  56947. "shortnames": [":woman_wearing_turban_dark_skin_tone:"],
  56948. "category": "people"
  56949. },
  56950. ":man_bouncing_ball_tone1:": {
  56951. "uc_base": "26f9-1f3fb-2642",
  56952. "uc_output": "26f9-1f3fb-200d-2642-fe0f",
  56953. "uc_match": "26f9-fe0f-1f3fb-2642-fe0f",
  56954. "uc_greedy": "26f9-1f3fb-2642",
  56955. "shortnames": [":man_bouncing_ball_light_skin_tone:"],
  56956. "category": "activity"
  56957. },
  56958. ":man_bouncing_ball_tone2:": {
  56959. "uc_base": "26f9-1f3fc-2642",
  56960. "uc_output": "26f9-1f3fc-200d-2642-fe0f",
  56961. "uc_match": "26f9-fe0f-1f3fc-2642-fe0f",
  56962. "uc_greedy": "26f9-1f3fc-2642",
  56963. "shortnames": [":man_bouncing_ball_medium_light_skin_tone:"],
  56964. "category": "activity"
  56965. },
  56966. ":man_bouncing_ball_tone3:": {
  56967. "uc_base": "26f9-1f3fd-2642",
  56968. "uc_output": "26f9-1f3fd-200d-2642-fe0f",
  56969. "uc_match": "26f9-fe0f-1f3fd-2642-fe0f",
  56970. "uc_greedy": "26f9-1f3fd-2642",
  56971. "shortnames": [":man_bouncing_ball_medium_skin_tone:"],
  56972. "category": "activity"
  56973. },
  56974. ":man_bouncing_ball_tone4:": {
  56975. "uc_base": "26f9-1f3fe-2642",
  56976. "uc_output": "26f9-1f3fe-200d-2642-fe0f",
  56977. "uc_match": "26f9-fe0f-1f3fe-2642-fe0f",
  56978. "uc_greedy": "26f9-1f3fe-2642",
  56979. "shortnames": [":man_bouncing_ball_medium_dark_skin_tone:"],
  56980. "category": "activity"
  56981. },
  56982. ":man_bouncing_ball_tone5:": {
  56983. "uc_base": "26f9-1f3ff-2642",
  56984. "uc_output": "26f9-1f3ff-200d-2642-fe0f",
  56985. "uc_match": "26f9-fe0f-1f3ff-2642-fe0f",
  56986. "uc_greedy": "26f9-1f3ff-2642",
  56987. "shortnames": [":man_bouncing_ball_dark_skin_tone:"],
  56988. "category": "activity"
  56989. },
  56990. ":man_detective:": {
  56991. "uc_base": "1f575-2642",
  56992. "uc_output": "1f575-fe0f-200d-2642-fe0f",
  56993. "uc_match": "1f575-fe0f-200d-2642",
  56994. "uc_greedy": "1f575-2642",
  56995. "shortnames": [],
  56996. "category": "people"
  56997. },
  56998. ":man_golfing:": {
  56999. "uc_base": "1f3cc-2642",
  57000. "uc_output": "1f3cc-fe0f-200d-2642-fe0f",
  57001. "uc_match": "1f3cc-fe0f-200d-2642",
  57002. "uc_greedy": "1f3cc-2642",
  57003. "shortnames": [],
  57004. "category": "activity"
  57005. },
  57006. ":man_lifting_weights:": {
  57007. "uc_base": "1f3cb-2642",
  57008. "uc_output": "1f3cb-fe0f-200d-2642-fe0f",
  57009. "uc_match": "1f3cb-fe0f-200d-2642",
  57010. "uc_greedy": "1f3cb-2642",
  57011. "shortnames": [],
  57012. "category": "activity"
  57013. },
  57014. ":woman_bouncing_ball_tone1:": {
  57015. "uc_base": "26f9-1f3fb-2640",
  57016. "uc_output": "26f9-1f3fb-200d-2640-fe0f",
  57017. "uc_match": "26f9-fe0f-1f3fb-2640-fe0f",
  57018. "uc_greedy": "26f9-1f3fb-2640",
  57019. "shortnames": [":woman_bouncing_ball_light_skin_tone:"],
  57020. "category": "activity"
  57021. },
  57022. ":woman_bouncing_ball_tone2:": {
  57023. "uc_base": "26f9-1f3fc-2640",
  57024. "uc_output": "26f9-1f3fc-200d-2640-fe0f",
  57025. "uc_match": "26f9-fe0f-1f3fc-2640-fe0f",
  57026. "uc_greedy": "26f9-1f3fc-2640",
  57027. "shortnames": [":woman_bouncing_ball_medium_light_skin_tone:"],
  57028. "category": "activity"
  57029. },
  57030. ":woman_bouncing_ball_tone3:": {
  57031. "uc_base": "26f9-1f3fd-2640",
  57032. "uc_output": "26f9-1f3fd-200d-2640-fe0f",
  57033. "uc_match": "26f9-fe0f-1f3fd-2640-fe0f",
  57034. "uc_greedy": "26f9-1f3fd-2640",
  57035. "shortnames": [":woman_bouncing_ball_medium_skin_tone:"],
  57036. "category": "activity"
  57037. },
  57038. ":woman_bouncing_ball_tone4:": {
  57039. "uc_base": "26f9-1f3fe-2640",
  57040. "uc_output": "26f9-1f3fe-200d-2640-fe0f",
  57041. "uc_match": "26f9-fe0f-1f3fe-2640-fe0f",
  57042. "uc_greedy": "26f9-1f3fe-2640",
  57043. "shortnames": [":woman_bouncing_ball_medium_dark_skin_tone:"],
  57044. "category": "activity"
  57045. },
  57046. ":woman_bouncing_ball_tone5:": {
  57047. "uc_base": "26f9-1f3ff-2640",
  57048. "uc_output": "26f9-1f3ff-200d-2640-fe0f",
  57049. "uc_match": "26f9-fe0f-1f3ff-2640-fe0f",
  57050. "uc_greedy": "26f9-1f3ff-2640",
  57051. "shortnames": [":woman_bouncing_ball_dark_skin_tone:"],
  57052. "category": "activity"
  57053. },
  57054. ":woman_detective:": {
  57055. "uc_base": "1f575-2640",
  57056. "uc_output": "1f575-fe0f-200d-2640-fe0f",
  57057. "uc_match": "1f575-fe0f-200d-2640",
  57058. "uc_greedy": "1f575-2640",
  57059. "shortnames": [],
  57060. "category": "people"
  57061. },
  57062. ":woman_golfing:": {
  57063. "uc_base": "1f3cc-2640",
  57064. "uc_output": "1f3cc-fe0f-200d-2640-fe0f",
  57065. "uc_match": "1f3cc-fe0f-200d-2640",
  57066. "uc_greedy": "1f3cc-2640",
  57067. "shortnames": [],
  57068. "category": "activity"
  57069. },
  57070. ":woman_lifting_weights:": {
  57071. "uc_base": "1f3cb-2640",
  57072. "uc_output": "1f3cb-fe0f-200d-2640-fe0f",
  57073. "uc_match": "1f3cb-fe0f-200d-2640",
  57074. "uc_greedy": "1f3cb-2640",
  57075. "shortnames": [],
  57076. "category": "activity"
  57077. },
  57078. ":man_bouncing_ball:": {
  57079. "uc_base": "26f9-2642",
  57080. "uc_output": "26f9-fe0f-200d-2642-fe0f",
  57081. "uc_match": "26f9-fe0f-200d-2642",
  57082. "uc_greedy": "26f9-2642",
  57083. "shortnames": [],
  57084. "category": "activity"
  57085. },
  57086. ":woman_bouncing_ball:": {
  57087. "uc_base": "26f9-2640",
  57088. "uc_output": "26f9-fe0f-200d-2640-fe0f",
  57089. "uc_match": "26f9-fe0f-200d-2640",
  57090. "uc_greedy": "26f9-2640",
  57091. "shortnames": [],
  57092. "category": "activity"
  57093. },
  57094. ":man_artist_tone1:": {
  57095. "uc_base": "1f468-1f3fb-1f3a8",
  57096. "uc_output": "1f468-1f3fb-200d-1f3a8",
  57097. "uc_match": "1f468-1f3fb-1f3a8",
  57098. "uc_greedy": "1f468-1f3fb-1f3a8",
  57099. "shortnames": [":man_artist_light_skin_tone:"],
  57100. "category": "people"
  57101. },
  57102. ":man_artist_tone2:": {
  57103. "uc_base": "1f468-1f3fc-1f3a8",
  57104. "uc_output": "1f468-1f3fc-200d-1f3a8",
  57105. "uc_match": "1f468-1f3fc-1f3a8",
  57106. "uc_greedy": "1f468-1f3fc-1f3a8",
  57107. "shortnames": [":man_artist_medium_light_skin_tone:"],
  57108. "category": "people"
  57109. },
  57110. ":man_artist_tone3:": {
  57111. "uc_base": "1f468-1f3fd-1f3a8",
  57112. "uc_output": "1f468-1f3fd-200d-1f3a8",
  57113. "uc_match": "1f468-1f3fd-1f3a8",
  57114. "uc_greedy": "1f468-1f3fd-1f3a8",
  57115. "shortnames": [":man_artist_medium_skin_tone:"],
  57116. "category": "people"
  57117. },
  57118. ":man_artist_tone4:": {
  57119. "uc_base": "1f468-1f3fe-1f3a8",
  57120. "uc_output": "1f468-1f3fe-200d-1f3a8",
  57121. "uc_match": "1f468-1f3fe-1f3a8",
  57122. "uc_greedy": "1f468-1f3fe-1f3a8",
  57123. "shortnames": [":man_artist_medium_dark_skin_tone:"],
  57124. "category": "people"
  57125. },
  57126. ":man_artist_tone5:": {
  57127. "uc_base": "1f468-1f3ff-1f3a8",
  57128. "uc_output": "1f468-1f3ff-200d-1f3a8",
  57129. "uc_match": "1f468-1f3ff-1f3a8",
  57130. "uc_greedy": "1f468-1f3ff-1f3a8",
  57131. "shortnames": [":man_artist_dark_skin_tone:"],
  57132. "category": "people"
  57133. },
  57134. ":man_astronaut_tone1:": {
  57135. "uc_base": "1f468-1f3fb-1f680",
  57136. "uc_output": "1f468-1f3fb-200d-1f680",
  57137. "uc_match": "1f468-1f3fb-1f680",
  57138. "uc_greedy": "1f468-1f3fb-1f680",
  57139. "shortnames": [":man_astronaut_light_skin_tone:"],
  57140. "category": "people"
  57141. },
  57142. ":man_astronaut_tone2:": {
  57143. "uc_base": "1f468-1f3fc-1f680",
  57144. "uc_output": "1f468-1f3fc-200d-1f680",
  57145. "uc_match": "1f468-1f3fc-1f680",
  57146. "uc_greedy": "1f468-1f3fc-1f680",
  57147. "shortnames": [":man_astronaut_medium_light_skin_tone:"],
  57148. "category": "people"
  57149. },
  57150. ":man_astronaut_tone3:": {
  57151. "uc_base": "1f468-1f3fd-1f680",
  57152. "uc_output": "1f468-1f3fd-200d-1f680",
  57153. "uc_match": "1f468-1f3fd-1f680",
  57154. "uc_greedy": "1f468-1f3fd-1f680",
  57155. "shortnames": [":man_astronaut_medium_skin_tone:"],
  57156. "category": "people"
  57157. },
  57158. ":man_astronaut_tone4:": {
  57159. "uc_base": "1f468-1f3fe-1f680",
  57160. "uc_output": "1f468-1f3fe-200d-1f680",
  57161. "uc_match": "1f468-1f3fe-1f680",
  57162. "uc_greedy": "1f468-1f3fe-1f680",
  57163. "shortnames": [":man_astronaut_medium_dark_skin_tone:"],
  57164. "category": "people"
  57165. },
  57166. ":man_astronaut_tone5:": {
  57167. "uc_base": "1f468-1f3ff-1f680",
  57168. "uc_output": "1f468-1f3ff-200d-1f680",
  57169. "uc_match": "1f468-1f3ff-1f680",
  57170. "uc_greedy": "1f468-1f3ff-1f680",
  57171. "shortnames": [":man_astronaut_dark_skin_tone:"],
  57172. "category": "people"
  57173. },
  57174. ":man_cook_tone1:": {
  57175. "uc_base": "1f468-1f3fb-1f373",
  57176. "uc_output": "1f468-1f3fb-200d-1f373",
  57177. "uc_match": "1f468-1f3fb-1f373",
  57178. "uc_greedy": "1f468-1f3fb-1f373",
  57179. "shortnames": [":man_cook_light_skin_tone:"],
  57180. "category": "people"
  57181. },
  57182. ":man_cook_tone2:": {
  57183. "uc_base": "1f468-1f3fc-1f373",
  57184. "uc_output": "1f468-1f3fc-200d-1f373",
  57185. "uc_match": "1f468-1f3fc-1f373",
  57186. "uc_greedy": "1f468-1f3fc-1f373",
  57187. "shortnames": [":man_cook_medium_light_skin_tone:"],
  57188. "category": "people"
  57189. },
  57190. ":man_cook_tone3:": {
  57191. "uc_base": "1f468-1f3fd-1f373",
  57192. "uc_output": "1f468-1f3fd-200d-1f373",
  57193. "uc_match": "1f468-1f3fd-1f373",
  57194. "uc_greedy": "1f468-1f3fd-1f373",
  57195. "shortnames": [":man_cook_medium_skin_tone:"],
  57196. "category": "people"
  57197. },
  57198. ":man_cook_tone4:": {
  57199. "uc_base": "1f468-1f3fe-1f373",
  57200. "uc_output": "1f468-1f3fe-200d-1f373",
  57201. "uc_match": "1f468-1f3fe-1f373",
  57202. "uc_greedy": "1f468-1f3fe-1f373",
  57203. "shortnames": [":man_cook_medium_dark_skin_tone:"],
  57204. "category": "people"
  57205. },
  57206. ":man_cook_tone5:": {
  57207. "uc_base": "1f468-1f3ff-1f373",
  57208. "uc_output": "1f468-1f3ff-200d-1f373",
  57209. "uc_match": "1f468-1f3ff-1f373",
  57210. "uc_greedy": "1f468-1f3ff-1f373",
  57211. "shortnames": [":man_cook_dark_skin_tone:"],
  57212. "category": "people"
  57213. },
  57214. ":man_factory_worker_tone1:": {
  57215. "uc_base": "1f468-1f3fb-1f3ed",
  57216. "uc_output": "1f468-1f3fb-200d-1f3ed",
  57217. "uc_match": "1f468-1f3fb-1f3ed",
  57218. "uc_greedy": "1f468-1f3fb-1f3ed",
  57219. "shortnames": [":man_factory_worker_light_skin_tone:"],
  57220. "category": "people"
  57221. },
  57222. ":man_factory_worker_tone2:": {
  57223. "uc_base": "1f468-1f3fc-1f3ed",
  57224. "uc_output": "1f468-1f3fc-200d-1f3ed",
  57225. "uc_match": "1f468-1f3fc-1f3ed",
  57226. "uc_greedy": "1f468-1f3fc-1f3ed",
  57227. "shortnames": [":man_factory_worker_medium_light_skin_tone:"],
  57228. "category": "people"
  57229. },
  57230. ":man_factory_worker_tone3:": {
  57231. "uc_base": "1f468-1f3fd-1f3ed",
  57232. "uc_output": "1f468-1f3fd-200d-1f3ed",
  57233. "uc_match": "1f468-1f3fd-1f3ed",
  57234. "uc_greedy": "1f468-1f3fd-1f3ed",
  57235. "shortnames": [":man_factory_worker_medium_skin_tone:"],
  57236. "category": "people"
  57237. },
  57238. ":man_factory_worker_tone4:": {
  57239. "uc_base": "1f468-1f3fe-1f3ed",
  57240. "uc_output": "1f468-1f3fe-200d-1f3ed",
  57241. "uc_match": "1f468-1f3fe-1f3ed",
  57242. "uc_greedy": "1f468-1f3fe-1f3ed",
  57243. "shortnames": [":man_factory_worker_medium_dark_skin_tone:"],
  57244. "category": "people"
  57245. },
  57246. ":man_factory_worker_tone5:": {
  57247. "uc_base": "1f468-1f3ff-1f3ed",
  57248. "uc_output": "1f468-1f3ff-200d-1f3ed",
  57249. "uc_match": "1f468-1f3ff-1f3ed",
  57250. "uc_greedy": "1f468-1f3ff-1f3ed",
  57251. "shortnames": [":man_factory_worker_dark_skin_tone:"],
  57252. "category": "people"
  57253. },
  57254. ":man_farmer_tone1:": {
  57255. "uc_base": "1f468-1f3fb-1f33e",
  57256. "uc_output": "1f468-1f3fb-200d-1f33e",
  57257. "uc_match": "1f468-1f3fb-1f33e",
  57258. "uc_greedy": "1f468-1f3fb-1f33e",
  57259. "shortnames": [":man_farmer_light_skin_tone:"],
  57260. "category": "people"
  57261. },
  57262. ":man_farmer_tone2:": {
  57263. "uc_base": "1f468-1f3fc-1f33e",
  57264. "uc_output": "1f468-1f3fc-200d-1f33e",
  57265. "uc_match": "1f468-1f3fc-1f33e",
  57266. "uc_greedy": "1f468-1f3fc-1f33e",
  57267. "shortnames": [":man_farmer_medium_light_skin_tone:"],
  57268. "category": "people"
  57269. },
  57270. ":man_farmer_tone3:": {
  57271. "uc_base": "1f468-1f3fd-1f33e",
  57272. "uc_output": "1f468-1f3fd-200d-1f33e",
  57273. "uc_match": "1f468-1f3fd-1f33e",
  57274. "uc_greedy": "1f468-1f3fd-1f33e",
  57275. "shortnames": [":man_farmer_medium_skin_tone:"],
  57276. "category": "people"
  57277. },
  57278. ":man_farmer_tone4:": {
  57279. "uc_base": "1f468-1f3fe-1f33e",
  57280. "uc_output": "1f468-1f3fe-200d-1f33e",
  57281. "uc_match": "1f468-1f3fe-1f33e",
  57282. "uc_greedy": "1f468-1f3fe-1f33e",
  57283. "shortnames": [":man_farmer_medium_dark_skin_tone:"],
  57284. "category": "people"
  57285. },
  57286. ":man_farmer_tone5:": {
  57287. "uc_base": "1f468-1f3ff-1f33e",
  57288. "uc_output": "1f468-1f3ff-200d-1f33e",
  57289. "uc_match": "1f468-1f3ff-1f33e",
  57290. "uc_greedy": "1f468-1f3ff-1f33e",
  57291. "shortnames": [":man_farmer_dark_skin_tone:"],
  57292. "category": "people"
  57293. },
  57294. ":man_firefighter_tone1:": {
  57295. "uc_base": "1f468-1f3fb-1f692",
  57296. "uc_output": "1f468-1f3fb-200d-1f692",
  57297. "uc_match": "1f468-1f3fb-1f692",
  57298. "uc_greedy": "1f468-1f3fb-1f692",
  57299. "shortnames": [":man_firefighter_light_skin_tone:"],
  57300. "category": "people"
  57301. },
  57302. ":man_firefighter_tone2:": {
  57303. "uc_base": "1f468-1f3fc-1f692",
  57304. "uc_output": "1f468-1f3fc-200d-1f692",
  57305. "uc_match": "1f468-1f3fc-1f692",
  57306. "uc_greedy": "1f468-1f3fc-1f692",
  57307. "shortnames": [":man_firefighter_medium_light_skin_tone:"],
  57308. "category": "people"
  57309. },
  57310. ":man_firefighter_tone3:": {
  57311. "uc_base": "1f468-1f3fd-1f692",
  57312. "uc_output": "1f468-1f3fd-200d-1f692",
  57313. "uc_match": "1f468-1f3fd-1f692",
  57314. "uc_greedy": "1f468-1f3fd-1f692",
  57315. "shortnames": [":man_firefighter_medium_skin_tone:"],
  57316. "category": "people"
  57317. },
  57318. ":man_firefighter_tone4:": {
  57319. "uc_base": "1f468-1f3fe-1f692",
  57320. "uc_output": "1f468-1f3fe-200d-1f692",
  57321. "uc_match": "1f468-1f3fe-1f692",
  57322. "uc_greedy": "1f468-1f3fe-1f692",
  57323. "shortnames": [":man_firefighter_medium_dark_skin_tone:"],
  57324. "category": "people"
  57325. },
  57326. ":man_firefighter_tone5:": {
  57327. "uc_base": "1f468-1f3ff-1f692",
  57328. "uc_output": "1f468-1f3ff-200d-1f692",
  57329. "uc_match": "1f468-1f3ff-1f692",
  57330. "uc_greedy": "1f468-1f3ff-1f692",
  57331. "shortnames": [":man_firefighter_dark_skin_tone:"],
  57332. "category": "people"
  57333. },
  57334. ":man_mechanic_tone1:": {
  57335. "uc_base": "1f468-1f3fb-1f527",
  57336. "uc_output": "1f468-1f3fb-200d-1f527",
  57337. "uc_match": "1f468-1f3fb-1f527",
  57338. "uc_greedy": "1f468-1f3fb-1f527",
  57339. "shortnames": [":man_mechanic_light_skin_tone:"],
  57340. "category": "people"
  57341. },
  57342. ":man_mechanic_tone2:": {
  57343. "uc_base": "1f468-1f3fc-1f527",
  57344. "uc_output": "1f468-1f3fc-200d-1f527",
  57345. "uc_match": "1f468-1f3fc-1f527",
  57346. "uc_greedy": "1f468-1f3fc-1f527",
  57347. "shortnames": [":man_mechanic_medium_light_skin_tone:"],
  57348. "category": "people"
  57349. },
  57350. ":man_mechanic_tone3:": {
  57351. "uc_base": "1f468-1f3fd-1f527",
  57352. "uc_output": "1f468-1f3fd-200d-1f527",
  57353. "uc_match": "1f468-1f3fd-1f527",
  57354. "uc_greedy": "1f468-1f3fd-1f527",
  57355. "shortnames": [":man_mechanic_medium_skin_tone:"],
  57356. "category": "people"
  57357. },
  57358. ":man_mechanic_tone4:": {
  57359. "uc_base": "1f468-1f3fe-1f527",
  57360. "uc_output": "1f468-1f3fe-200d-1f527",
  57361. "uc_match": "1f468-1f3fe-1f527",
  57362. "uc_greedy": "1f468-1f3fe-1f527",
  57363. "shortnames": [":man_mechanic_medium_dark_skin_tone:"],
  57364. "category": "people"
  57365. },
  57366. ":man_mechanic_tone5:": {
  57367. "uc_base": "1f468-1f3ff-1f527",
  57368. "uc_output": "1f468-1f3ff-200d-1f527",
  57369. "uc_match": "1f468-1f3ff-1f527",
  57370. "uc_greedy": "1f468-1f3ff-1f527",
  57371. "shortnames": [":man_mechanic_dark_skin_tone:"],
  57372. "category": "people"
  57373. },
  57374. ":man_office_worker_tone1:": {
  57375. "uc_base": "1f468-1f3fb-1f4bc",
  57376. "uc_output": "1f468-1f3fb-200d-1f4bc",
  57377. "uc_match": "1f468-1f3fb-1f4bc",
  57378. "uc_greedy": "1f468-1f3fb-1f4bc",
  57379. "shortnames": [":man_office_worker_light_skin_tone:"],
  57380. "category": "people"
  57381. },
  57382. ":man_office_worker_tone2:": {
  57383. "uc_base": "1f468-1f3fc-1f4bc",
  57384. "uc_output": "1f468-1f3fc-200d-1f4bc",
  57385. "uc_match": "1f468-1f3fc-1f4bc",
  57386. "uc_greedy": "1f468-1f3fc-1f4bc",
  57387. "shortnames": [":man_office_worker_medium_light_skin_tone:"],
  57388. "category": "people"
  57389. },
  57390. ":man_office_worker_tone3:": {
  57391. "uc_base": "1f468-1f3fd-1f4bc",
  57392. "uc_output": "1f468-1f3fd-200d-1f4bc",
  57393. "uc_match": "1f468-1f3fd-1f4bc",
  57394. "uc_greedy": "1f468-1f3fd-1f4bc",
  57395. "shortnames": [":man_office_worker_medium_skin_tone:"],
  57396. "category": "people"
  57397. },
  57398. ":man_office_worker_tone4:": {
  57399. "uc_base": "1f468-1f3fe-1f4bc",
  57400. "uc_output": "1f468-1f3fe-200d-1f4bc",
  57401. "uc_match": "1f468-1f3fe-1f4bc",
  57402. "uc_greedy": "1f468-1f3fe-1f4bc",
  57403. "shortnames": [":man_office_worker_medium_dark_skin_tone:"],
  57404. "category": "people"
  57405. },
  57406. ":man_office_worker_tone5:": {
  57407. "uc_base": "1f468-1f3ff-1f4bc",
  57408. "uc_output": "1f468-1f3ff-200d-1f4bc",
  57409. "uc_match": "1f468-1f3ff-1f4bc",
  57410. "uc_greedy": "1f468-1f3ff-1f4bc",
  57411. "shortnames": [":man_office_worker_dark_skin_tone:"],
  57412. "category": "people"
  57413. },
  57414. ":man_scientist_tone1:": {
  57415. "uc_base": "1f468-1f3fb-1f52c",
  57416. "uc_output": "1f468-1f3fb-200d-1f52c",
  57417. "uc_match": "1f468-1f3fb-1f52c",
  57418. "uc_greedy": "1f468-1f3fb-1f52c",
  57419. "shortnames": [":man_scientist_light_skin_tone:"],
  57420. "category": "people"
  57421. },
  57422. ":man_scientist_tone2:": {
  57423. "uc_base": "1f468-1f3fc-1f52c",
  57424. "uc_output": "1f468-1f3fc-200d-1f52c",
  57425. "uc_match": "1f468-1f3fc-1f52c",
  57426. "uc_greedy": "1f468-1f3fc-1f52c",
  57427. "shortnames": [":man_scientist_medium_light_skin_tone:"],
  57428. "category": "people"
  57429. },
  57430. ":man_scientist_tone3:": {
  57431. "uc_base": "1f468-1f3fd-1f52c",
  57432. "uc_output": "1f468-1f3fd-200d-1f52c",
  57433. "uc_match": "1f468-1f3fd-1f52c",
  57434. "uc_greedy": "1f468-1f3fd-1f52c",
  57435. "shortnames": [":man_scientist_medium_skin_tone:"],
  57436. "category": "people"
  57437. },
  57438. ":man_scientist_tone4:": {
  57439. "uc_base": "1f468-1f3fe-1f52c",
  57440. "uc_output": "1f468-1f3fe-200d-1f52c",
  57441. "uc_match": "1f468-1f3fe-1f52c",
  57442. "uc_greedy": "1f468-1f3fe-1f52c",
  57443. "shortnames": [":man_scientist_medium_dark_skin_tone:"],
  57444. "category": "people"
  57445. },
  57446. ":man_scientist_tone5:": {
  57447. "uc_base": "1f468-1f3ff-1f52c",
  57448. "uc_output": "1f468-1f3ff-200d-1f52c",
  57449. "uc_match": "1f468-1f3ff-1f52c",
  57450. "uc_greedy": "1f468-1f3ff-1f52c",
  57451. "shortnames": [":man_scientist_dark_skin_tone:"],
  57452. "category": "people"
  57453. },
  57454. ":man_singer_tone1:": {
  57455. "uc_base": "1f468-1f3fb-1f3a4",
  57456. "uc_output": "1f468-1f3fb-200d-1f3a4",
  57457. "uc_match": "1f468-1f3fb-1f3a4",
  57458. "uc_greedy": "1f468-1f3fb-1f3a4",
  57459. "shortnames": [":man_singer_light_skin_tone:"],
  57460. "category": "people"
  57461. },
  57462. ":man_singer_tone2:": {
  57463. "uc_base": "1f468-1f3fc-1f3a4",
  57464. "uc_output": "1f468-1f3fc-200d-1f3a4",
  57465. "uc_match": "1f468-1f3fc-1f3a4",
  57466. "uc_greedy": "1f468-1f3fc-1f3a4",
  57467. "shortnames": [":man_singer_medium_light_skin_tone:"],
  57468. "category": "people"
  57469. },
  57470. ":man_singer_tone3:": {
  57471. "uc_base": "1f468-1f3fd-1f3a4",
  57472. "uc_output": "1f468-1f3fd-200d-1f3a4",
  57473. "uc_match": "1f468-1f3fd-1f3a4",
  57474. "uc_greedy": "1f468-1f3fd-1f3a4",
  57475. "shortnames": [":man_singer_medium_skin_tone:"],
  57476. "category": "people"
  57477. },
  57478. ":man_singer_tone4:": {
  57479. "uc_base": "1f468-1f3fe-1f3a4",
  57480. "uc_output": "1f468-1f3fe-200d-1f3a4",
  57481. "uc_match": "1f468-1f3fe-1f3a4",
  57482. "uc_greedy": "1f468-1f3fe-1f3a4",
  57483. "shortnames": [":man_singer_medium_dark_skin_tone:"],
  57484. "category": "people"
  57485. },
  57486. ":man_singer_tone5:": {
  57487. "uc_base": "1f468-1f3ff-1f3a4",
  57488. "uc_output": "1f468-1f3ff-200d-1f3a4",
  57489. "uc_match": "1f468-1f3ff-1f3a4",
  57490. "uc_greedy": "1f468-1f3ff-1f3a4",
  57491. "shortnames": [":man_singer_dark_skin_tone:"],
  57492. "category": "people"
  57493. },
  57494. ":man_student_tone1:": {
  57495. "uc_base": "1f468-1f3fb-1f393",
  57496. "uc_output": "1f468-1f3fb-200d-1f393",
  57497. "uc_match": "1f468-1f3fb-1f393",
  57498. "uc_greedy": "1f468-1f3fb-1f393",
  57499. "shortnames": [":man_student_light_skin_tone:"],
  57500. "category": "people"
  57501. },
  57502. ":man_student_tone2:": {
  57503. "uc_base": "1f468-1f3fc-1f393",
  57504. "uc_output": "1f468-1f3fc-200d-1f393",
  57505. "uc_match": "1f468-1f3fc-1f393",
  57506. "uc_greedy": "1f468-1f3fc-1f393",
  57507. "shortnames": [":man_student_medium_light_skin_tone:"],
  57508. "category": "people"
  57509. },
  57510. ":man_student_tone3:": {
  57511. "uc_base": "1f468-1f3fd-1f393",
  57512. "uc_output": "1f468-1f3fd-200d-1f393",
  57513. "uc_match": "1f468-1f3fd-1f393",
  57514. "uc_greedy": "1f468-1f3fd-1f393",
  57515. "shortnames": [":man_student_medium_skin_tone:"],
  57516. "category": "people"
  57517. },
  57518. ":man_student_tone4:": {
  57519. "uc_base": "1f468-1f3fe-1f393",
  57520. "uc_output": "1f468-1f3fe-200d-1f393",
  57521. "uc_match": "1f468-1f3fe-1f393",
  57522. "uc_greedy": "1f468-1f3fe-1f393",
  57523. "shortnames": [":man_student_medium_dark_skin_tone:"],
  57524. "category": "people"
  57525. },
  57526. ":man_student_tone5:": {
  57527. "uc_base": "1f468-1f3ff-1f393",
  57528. "uc_output": "1f468-1f3ff-200d-1f393",
  57529. "uc_match": "1f468-1f3ff-1f393",
  57530. "uc_greedy": "1f468-1f3ff-1f393",
  57531. "shortnames": [":man_student_dark_skin_tone:"],
  57532. "category": "people"
  57533. },
  57534. ":man_teacher_tone1:": {
  57535. "uc_base": "1f468-1f3fb-1f3eb",
  57536. "uc_output": "1f468-1f3fb-200d-1f3eb",
  57537. "uc_match": "1f468-1f3fb-1f3eb",
  57538. "uc_greedy": "1f468-1f3fb-1f3eb",
  57539. "shortnames": [":man_teacher_light_skin_tone:"],
  57540. "category": "people"
  57541. },
  57542. ":man_teacher_tone2:": {
  57543. "uc_base": "1f468-1f3fc-1f3eb",
  57544. "uc_output": "1f468-1f3fc-200d-1f3eb",
  57545. "uc_match": "1f468-1f3fc-1f3eb",
  57546. "uc_greedy": "1f468-1f3fc-1f3eb",
  57547. "shortnames": [":man_teacher_medium_light_skin_tone:"],
  57548. "category": "people"
  57549. },
  57550. ":man_teacher_tone3:": {
  57551. "uc_base": "1f468-1f3fd-1f3eb",
  57552. "uc_output": "1f468-1f3fd-200d-1f3eb",
  57553. "uc_match": "1f468-1f3fd-1f3eb",
  57554. "uc_greedy": "1f468-1f3fd-1f3eb",
  57555. "shortnames": [":man_teacher_medium_skin_tone:"],
  57556. "category": "people"
  57557. },
  57558. ":man_teacher_tone4:": {
  57559. "uc_base": "1f468-1f3fe-1f3eb",
  57560. "uc_output": "1f468-1f3fe-200d-1f3eb",
  57561. "uc_match": "1f468-1f3fe-1f3eb",
  57562. "uc_greedy": "1f468-1f3fe-1f3eb",
  57563. "shortnames": [":man_teacher_medium_dark_skin_tone:"],
  57564. "category": "people"
  57565. },
  57566. ":man_teacher_tone5:": {
  57567. "uc_base": "1f468-1f3ff-1f3eb",
  57568. "uc_output": "1f468-1f3ff-200d-1f3eb",
  57569. "uc_match": "1f468-1f3ff-1f3eb",
  57570. "uc_greedy": "1f468-1f3ff-1f3eb",
  57571. "shortnames": [":man_teacher_dark_skin_tone:"],
  57572. "category": "people"
  57573. },
  57574. ":man_technologist_tone1:": {
  57575. "uc_base": "1f468-1f3fb-1f4bb",
  57576. "uc_output": "1f468-1f3fb-200d-1f4bb",
  57577. "uc_match": "1f468-1f3fb-1f4bb",
  57578. "uc_greedy": "1f468-1f3fb-1f4bb",
  57579. "shortnames": [":man_technologist_light_skin_tone:"],
  57580. "category": "people"
  57581. },
  57582. ":man_technologist_tone2:": {
  57583. "uc_base": "1f468-1f3fc-1f4bb",
  57584. "uc_output": "1f468-1f3fc-200d-1f4bb",
  57585. "uc_match": "1f468-1f3fc-1f4bb",
  57586. "uc_greedy": "1f468-1f3fc-1f4bb",
  57587. "shortnames": [":man_technologist_medium_light_skin_tone:"],
  57588. "category": "people"
  57589. },
  57590. ":man_technologist_tone3:": {
  57591. "uc_base": "1f468-1f3fd-1f4bb",
  57592. "uc_output": "1f468-1f3fd-200d-1f4bb",
  57593. "uc_match": "1f468-1f3fd-1f4bb",
  57594. "uc_greedy": "1f468-1f3fd-1f4bb",
  57595. "shortnames": [":man_technologist_medium_skin_tone:"],
  57596. "category": "people"
  57597. },
  57598. ":man_technologist_tone4:": {
  57599. "uc_base": "1f468-1f3fe-1f4bb",
  57600. "uc_output": "1f468-1f3fe-200d-1f4bb",
  57601. "uc_match": "1f468-1f3fe-1f4bb",
  57602. "uc_greedy": "1f468-1f3fe-1f4bb",
  57603. "shortnames": [":man_technologist_medium_dark_skin_tone:"],
  57604. "category": "people"
  57605. },
  57606. ":man_technologist_tone5:": {
  57607. "uc_base": "1f468-1f3ff-1f4bb",
  57608. "uc_output": "1f468-1f3ff-200d-1f4bb",
  57609. "uc_match": "1f468-1f3ff-1f4bb",
  57610. "uc_greedy": "1f468-1f3ff-1f4bb",
  57611. "shortnames": [":man_technologist_dark_skin_tone:"],
  57612. "category": "people"
  57613. },
  57614. ":woman_artist_tone1:": {
  57615. "uc_base": "1f469-1f3fb-1f3a8",
  57616. "uc_output": "1f469-1f3fb-200d-1f3a8",
  57617. "uc_match": "1f469-1f3fb-1f3a8",
  57618. "uc_greedy": "1f469-1f3fb-1f3a8",
  57619. "shortnames": [":woman_artist_light_skin_tone:"],
  57620. "category": "people"
  57621. },
  57622. ":woman_artist_tone2:": {
  57623. "uc_base": "1f469-1f3fc-1f3a8",
  57624. "uc_output": "1f469-1f3fc-200d-1f3a8",
  57625. "uc_match": "1f469-1f3fc-1f3a8",
  57626. "uc_greedy": "1f469-1f3fc-1f3a8",
  57627. "shortnames": [":woman_artist_medium_light_skin_tone:"],
  57628. "category": "people"
  57629. },
  57630. ":woman_artist_tone3:": {
  57631. "uc_base": "1f469-1f3fd-1f3a8",
  57632. "uc_output": "1f469-1f3fd-200d-1f3a8",
  57633. "uc_match": "1f469-1f3fd-1f3a8",
  57634. "uc_greedy": "1f469-1f3fd-1f3a8",
  57635. "shortnames": [":woman_artist_medium_skin_tone:"],
  57636. "category": "people"
  57637. },
  57638. ":woman_artist_tone4:": {
  57639. "uc_base": "1f469-1f3fe-1f3a8",
  57640. "uc_output": "1f469-1f3fe-200d-1f3a8",
  57641. "uc_match": "1f469-1f3fe-1f3a8",
  57642. "uc_greedy": "1f469-1f3fe-1f3a8",
  57643. "shortnames": [":woman_artist_medium_dark_skin_tone:"],
  57644. "category": "people"
  57645. },
  57646. ":woman_artist_tone5:": {
  57647. "uc_base": "1f469-1f3ff-1f3a8",
  57648. "uc_output": "1f469-1f3ff-200d-1f3a8",
  57649. "uc_match": "1f469-1f3ff-1f3a8",
  57650. "uc_greedy": "1f469-1f3ff-1f3a8",
  57651. "shortnames": [":woman_artist_dark_skin_tone:"],
  57652. "category": "people"
  57653. },
  57654. ":woman_astronaut_tone1:": {
  57655. "uc_base": "1f469-1f3fb-1f680",
  57656. "uc_output": "1f469-1f3fb-200d-1f680",
  57657. "uc_match": "1f469-1f3fb-1f680",
  57658. "uc_greedy": "1f469-1f3fb-1f680",
  57659. "shortnames": [":woman_astronaut_light_skin_tone:"],
  57660. "category": "people"
  57661. },
  57662. ":woman_astronaut_tone2:": {
  57663. "uc_base": "1f469-1f3fc-1f680",
  57664. "uc_output": "1f469-1f3fc-200d-1f680",
  57665. "uc_match": "1f469-1f3fc-1f680",
  57666. "uc_greedy": "1f469-1f3fc-1f680",
  57667. "shortnames": [":woman_astronaut_medium_light_skin_tone:"],
  57668. "category": "people"
  57669. },
  57670. ":woman_astronaut_tone3:": {
  57671. "uc_base": "1f469-1f3fd-1f680",
  57672. "uc_output": "1f469-1f3fd-200d-1f680",
  57673. "uc_match": "1f469-1f3fd-1f680",
  57674. "uc_greedy": "1f469-1f3fd-1f680",
  57675. "shortnames": [":woman_astronaut_medium_skin_tone:"],
  57676. "category": "people"
  57677. },
  57678. ":woman_astronaut_tone4:": {
  57679. "uc_base": "1f469-1f3fe-1f680",
  57680. "uc_output": "1f469-1f3fe-200d-1f680",
  57681. "uc_match": "1f469-1f3fe-1f680",
  57682. "uc_greedy": "1f469-1f3fe-1f680",
  57683. "shortnames": [":woman_astronaut_medium_dark_skin_tone:"],
  57684. "category": "people"
  57685. },
  57686. ":woman_astronaut_tone5:": {
  57687. "uc_base": "1f469-1f3ff-1f680",
  57688. "uc_output": "1f469-1f3ff-200d-1f680",
  57689. "uc_match": "1f469-1f3ff-1f680",
  57690. "uc_greedy": "1f469-1f3ff-1f680",
  57691. "shortnames": [":woman_astronaut_dark_skin_tone:"],
  57692. "category": "people"
  57693. },
  57694. ":woman_cook_tone1:": {
  57695. "uc_base": "1f469-1f3fb-1f373",
  57696. "uc_output": "1f469-1f3fb-200d-1f373",
  57697. "uc_match": "1f469-1f3fb-1f373",
  57698. "uc_greedy": "1f469-1f3fb-1f373",
  57699. "shortnames": [":woman_cook_light_skin_tone:"],
  57700. "category": "people"
  57701. },
  57702. ":woman_cook_tone2:": {
  57703. "uc_base": "1f469-1f3fc-1f373",
  57704. "uc_output": "1f469-1f3fc-200d-1f373",
  57705. "uc_match": "1f469-1f3fc-1f373",
  57706. "uc_greedy": "1f469-1f3fc-1f373",
  57707. "shortnames": [":woman_cook_medium_light_skin_tone:"],
  57708. "category": "people"
  57709. },
  57710. ":woman_cook_tone3:": {
  57711. "uc_base": "1f469-1f3fd-1f373",
  57712. "uc_output": "1f469-1f3fd-200d-1f373",
  57713. "uc_match": "1f469-1f3fd-1f373",
  57714. "uc_greedy": "1f469-1f3fd-1f373",
  57715. "shortnames": [":woman_cook_medium_skin_tone:"],
  57716. "category": "people"
  57717. },
  57718. ":woman_cook_tone4:": {
  57719. "uc_base": "1f469-1f3fe-1f373",
  57720. "uc_output": "1f469-1f3fe-200d-1f373",
  57721. "uc_match": "1f469-1f3fe-1f373",
  57722. "uc_greedy": "1f469-1f3fe-1f373",
  57723. "shortnames": [":woman_cook_medium_dark_skin_tone:"],
  57724. "category": "people"
  57725. },
  57726. ":woman_cook_tone5:": {
  57727. "uc_base": "1f469-1f3ff-1f373",
  57728. "uc_output": "1f469-1f3ff-200d-1f373",
  57729. "uc_match": "1f469-1f3ff-1f373",
  57730. "uc_greedy": "1f469-1f3ff-1f373",
  57731. "shortnames": [":woman_cook_dark_skin_tone:"],
  57732. "category": "people"
  57733. },
  57734. ":woman_factory_worker_tone1:": {
  57735. "uc_base": "1f469-1f3fb-1f3ed",
  57736. "uc_output": "1f469-1f3fb-200d-1f3ed",
  57737. "uc_match": "1f469-1f3fb-1f3ed",
  57738. "uc_greedy": "1f469-1f3fb-1f3ed",
  57739. "shortnames": [":woman_factory_worker_light_skin_tone:"],
  57740. "category": "people"
  57741. },
  57742. ":woman_factory_worker_tone2:": {
  57743. "uc_base": "1f469-1f3fc-1f3ed",
  57744. "uc_output": "1f469-1f3fc-200d-1f3ed",
  57745. "uc_match": "1f469-1f3fc-1f3ed",
  57746. "uc_greedy": "1f469-1f3fc-1f3ed",
  57747. "shortnames": [":woman_factory_worker_medium_light_skin_tone:"],
  57748. "category": "people"
  57749. },
  57750. ":woman_factory_worker_tone3:": {
  57751. "uc_base": "1f469-1f3fd-1f3ed",
  57752. "uc_output": "1f469-1f3fd-200d-1f3ed",
  57753. "uc_match": "1f469-1f3fd-1f3ed",
  57754. "uc_greedy": "1f469-1f3fd-1f3ed",
  57755. "shortnames": [":woman_factory_worker_medium_skin_tone:"],
  57756. "category": "people"
  57757. },
  57758. ":woman_factory_worker_tone4:": {
  57759. "uc_base": "1f469-1f3fe-1f3ed",
  57760. "uc_output": "1f469-1f3fe-200d-1f3ed",
  57761. "uc_match": "1f469-1f3fe-1f3ed",
  57762. "uc_greedy": "1f469-1f3fe-1f3ed",
  57763. "shortnames": [":woman_factory_worker_medium_dark_skin_tone:"],
  57764. "category": "people"
  57765. },
  57766. ":woman_factory_worker_tone5:": {
  57767. "uc_base": "1f469-1f3ff-1f3ed",
  57768. "uc_output": "1f469-1f3ff-200d-1f3ed",
  57769. "uc_match": "1f469-1f3ff-1f3ed",
  57770. "uc_greedy": "1f469-1f3ff-1f3ed",
  57771. "shortnames": [":woman_factory_worker_dark_skin_tone:"],
  57772. "category": "people"
  57773. },
  57774. ":woman_farmer_tone1:": {
  57775. "uc_base": "1f469-1f3fb-1f33e",
  57776. "uc_output": "1f469-1f3fb-200d-1f33e",
  57777. "uc_match": "1f469-1f3fb-1f33e",
  57778. "uc_greedy": "1f469-1f3fb-1f33e",
  57779. "shortnames": [":woman_farmer_light_skin_tone:"],
  57780. "category": "people"
  57781. },
  57782. ":woman_farmer_tone2:": {
  57783. "uc_base": "1f469-1f3fc-1f33e",
  57784. "uc_output": "1f469-1f3fc-200d-1f33e",
  57785. "uc_match": "1f469-1f3fc-1f33e",
  57786. "uc_greedy": "1f469-1f3fc-1f33e",
  57787. "shortnames": [":woman_farmer_medium_light_skin_tone:"],
  57788. "category": "people"
  57789. },
  57790. ":woman_farmer_tone3:": {
  57791. "uc_base": "1f469-1f3fd-1f33e",
  57792. "uc_output": "1f469-1f3fd-200d-1f33e",
  57793. "uc_match": "1f469-1f3fd-1f33e",
  57794. "uc_greedy": "1f469-1f3fd-1f33e",
  57795. "shortnames": [":woman_farmer_medium_skin_tone:"],
  57796. "category": "people"
  57797. },
  57798. ":woman_farmer_tone4:": {
  57799. "uc_base": "1f469-1f3fe-1f33e",
  57800. "uc_output": "1f469-1f3fe-200d-1f33e",
  57801. "uc_match": "1f469-1f3fe-1f33e",
  57802. "uc_greedy": "1f469-1f3fe-1f33e",
  57803. "shortnames": [":woman_farmer_medium_dark_skin_tone:"],
  57804. "category": "people"
  57805. },
  57806. ":woman_farmer_tone5:": {
  57807. "uc_base": "1f469-1f3ff-1f33e",
  57808. "uc_output": "1f469-1f3ff-200d-1f33e",
  57809. "uc_match": "1f469-1f3ff-1f33e",
  57810. "uc_greedy": "1f469-1f3ff-1f33e",
  57811. "shortnames": [":woman_farmer_dark_skin_tone:"],
  57812. "category": "people"
  57813. },
  57814. ":woman_firefighter_tone1:": {
  57815. "uc_base": "1f469-1f3fb-1f692",
  57816. "uc_output": "1f469-1f3fb-200d-1f692",
  57817. "uc_match": "1f469-1f3fb-1f692",
  57818. "uc_greedy": "1f469-1f3fb-1f692",
  57819. "shortnames": [":woman_firefighter_light_skin_tone:"],
  57820. "category": "people"
  57821. },
  57822. ":woman_firefighter_tone2:": {
  57823. "uc_base": "1f469-1f3fc-1f692",
  57824. "uc_output": "1f469-1f3fc-200d-1f692",
  57825. "uc_match": "1f469-1f3fc-1f692",
  57826. "uc_greedy": "1f469-1f3fc-1f692",
  57827. "shortnames": [":woman_firefighter_medium_light_skin_tone:"],
  57828. "category": "people"
  57829. },
  57830. ":woman_firefighter_tone3:": {
  57831. "uc_base": "1f469-1f3fd-1f692",
  57832. "uc_output": "1f469-1f3fd-200d-1f692",
  57833. "uc_match": "1f469-1f3fd-1f692",
  57834. "uc_greedy": "1f469-1f3fd-1f692",
  57835. "shortnames": [":woman_firefighter_medium_skin_tone:"],
  57836. "category": "people"
  57837. },
  57838. ":woman_firefighter_tone4:": {
  57839. "uc_base": "1f469-1f3fe-1f692",
  57840. "uc_output": "1f469-1f3fe-200d-1f692",
  57841. "uc_match": "1f469-1f3fe-1f692",
  57842. "uc_greedy": "1f469-1f3fe-1f692",
  57843. "shortnames": [":woman_firefighter_medium_dark_skin_tone:"],
  57844. "category": "people"
  57845. },
  57846. ":woman_firefighter_tone5:": {
  57847. "uc_base": "1f469-1f3ff-1f692",
  57848. "uc_output": "1f469-1f3ff-200d-1f692",
  57849. "uc_match": "1f469-1f3ff-1f692",
  57850. "uc_greedy": "1f469-1f3ff-1f692",
  57851. "shortnames": [":woman_firefighter_dark_skin_tone:"],
  57852. "category": "people"
  57853. },
  57854. ":woman_mechanic_tone1:": {
  57855. "uc_base": "1f469-1f3fb-1f527",
  57856. "uc_output": "1f469-1f3fb-200d-1f527",
  57857. "uc_match": "1f469-1f3fb-1f527",
  57858. "uc_greedy": "1f469-1f3fb-1f527",
  57859. "shortnames": [":woman_mechanic_light_skin_tone:"],
  57860. "category": "people"
  57861. },
  57862. ":woman_mechanic_tone2:": {
  57863. "uc_base": "1f469-1f3fc-1f527",
  57864. "uc_output": "1f469-1f3fc-200d-1f527",
  57865. "uc_match": "1f469-1f3fc-1f527",
  57866. "uc_greedy": "1f469-1f3fc-1f527",
  57867. "shortnames": [":woman_mechanic_medium_light_skin_tone:"],
  57868. "category": "people"
  57869. },
  57870. ":woman_mechanic_tone3:": {
  57871. "uc_base": "1f469-1f3fd-1f527",
  57872. "uc_output": "1f469-1f3fd-200d-1f527",
  57873. "uc_match": "1f469-1f3fd-1f527",
  57874. "uc_greedy": "1f469-1f3fd-1f527",
  57875. "shortnames": [":woman_mechanic_medium_skin_tone:"],
  57876. "category": "people"
  57877. },
  57878. ":woman_mechanic_tone4:": {
  57879. "uc_base": "1f469-1f3fe-1f527",
  57880. "uc_output": "1f469-1f3fe-200d-1f527",
  57881. "uc_match": "1f469-1f3fe-1f527",
  57882. "uc_greedy": "1f469-1f3fe-1f527",
  57883. "shortnames": [":woman_mechanic_medium_dark_skin_tone:"],
  57884. "category": "people"
  57885. },
  57886. ":woman_mechanic_tone5:": {
  57887. "uc_base": "1f469-1f3ff-1f527",
  57888. "uc_output": "1f469-1f3ff-200d-1f527",
  57889. "uc_match": "1f469-1f3ff-1f527",
  57890. "uc_greedy": "1f469-1f3ff-1f527",
  57891. "shortnames": [":woman_mechanic_dark_skin_tone:"],
  57892. "category": "people"
  57893. },
  57894. ":woman_office_worker_tone1:": {
  57895. "uc_base": "1f469-1f3fb-1f4bc",
  57896. "uc_output": "1f469-1f3fb-200d-1f4bc",
  57897. "uc_match": "1f469-1f3fb-1f4bc",
  57898. "uc_greedy": "1f469-1f3fb-1f4bc",
  57899. "shortnames": [":woman_office_worker_light_skin_tone:"],
  57900. "category": "people"
  57901. },
  57902. ":woman_office_worker_tone2:": {
  57903. "uc_base": "1f469-1f3fc-1f4bc",
  57904. "uc_output": "1f469-1f3fc-200d-1f4bc",
  57905. "uc_match": "1f469-1f3fc-1f4bc",
  57906. "uc_greedy": "1f469-1f3fc-1f4bc",
  57907. "shortnames": [":woman_office_worker_medium_light_skin_tone:"],
  57908. "category": "people"
  57909. },
  57910. ":woman_office_worker_tone3:": {
  57911. "uc_base": "1f469-1f3fd-1f4bc",
  57912. "uc_output": "1f469-1f3fd-200d-1f4bc",
  57913. "uc_match": "1f469-1f3fd-1f4bc",
  57914. "uc_greedy": "1f469-1f3fd-1f4bc",
  57915. "shortnames": [":woman_office_worker_medium_skin_tone:"],
  57916. "category": "people"
  57917. },
  57918. ":woman_office_worker_tone4:": {
  57919. "uc_base": "1f469-1f3fe-1f4bc",
  57920. "uc_output": "1f469-1f3fe-200d-1f4bc",
  57921. "uc_match": "1f469-1f3fe-1f4bc",
  57922. "uc_greedy": "1f469-1f3fe-1f4bc",
  57923. "shortnames": [":woman_office_worker_medium_dark_skin_tone:"],
  57924. "category": "people"
  57925. },
  57926. ":woman_office_worker_tone5:": {
  57927. "uc_base": "1f469-1f3ff-1f4bc",
  57928. "uc_output": "1f469-1f3ff-200d-1f4bc",
  57929. "uc_match": "1f469-1f3ff-1f4bc",
  57930. "uc_greedy": "1f469-1f3ff-1f4bc",
  57931. "shortnames": [":woman_office_worker_dark_skin_tone:"],
  57932. "category": "people"
  57933. },
  57934. ":woman_scientist_tone1:": {
  57935. "uc_base": "1f469-1f3fb-1f52c",
  57936. "uc_output": "1f469-1f3fb-200d-1f52c",
  57937. "uc_match": "1f469-1f3fb-1f52c",
  57938. "uc_greedy": "1f469-1f3fb-1f52c",
  57939. "shortnames": [":woman_scientist_light_skin_tone:"],
  57940. "category": "people"
  57941. },
  57942. ":woman_scientist_tone2:": {
  57943. "uc_base": "1f469-1f3fc-1f52c",
  57944. "uc_output": "1f469-1f3fc-200d-1f52c",
  57945. "uc_match": "1f469-1f3fc-1f52c",
  57946. "uc_greedy": "1f469-1f3fc-1f52c",
  57947. "shortnames": [":woman_scientist_medium_light_skin_tone:"],
  57948. "category": "people"
  57949. },
  57950. ":woman_scientist_tone3:": {
  57951. "uc_base": "1f469-1f3fd-1f52c",
  57952. "uc_output": "1f469-1f3fd-200d-1f52c",
  57953. "uc_match": "1f469-1f3fd-1f52c",
  57954. "uc_greedy": "1f469-1f3fd-1f52c",
  57955. "shortnames": [":woman_scientist_medium_skin_tone:"],
  57956. "category": "people"
  57957. },
  57958. ":woman_scientist_tone4:": {
  57959. "uc_base": "1f469-1f3fe-1f52c",
  57960. "uc_output": "1f469-1f3fe-200d-1f52c",
  57961. "uc_match": "1f469-1f3fe-1f52c",
  57962. "uc_greedy": "1f469-1f3fe-1f52c",
  57963. "shortnames": [":woman_scientist_medium_dark_skin_tone:"],
  57964. "category": "people"
  57965. },
  57966. ":woman_scientist_tone5:": {
  57967. "uc_base": "1f469-1f3ff-1f52c",
  57968. "uc_output": "1f469-1f3ff-200d-1f52c",
  57969. "uc_match": "1f469-1f3ff-1f52c",
  57970. "uc_greedy": "1f469-1f3ff-1f52c",
  57971. "shortnames": [":woman_scientist_dark_skin_tone:"],
  57972. "category": "people"
  57973. },
  57974. ":woman_singer_tone1:": {
  57975. "uc_base": "1f469-1f3fb-1f3a4",
  57976. "uc_output": "1f469-1f3fb-200d-1f3a4",
  57977. "uc_match": "1f469-1f3fb-1f3a4",
  57978. "uc_greedy": "1f469-1f3fb-1f3a4",
  57979. "shortnames": [":woman_singer_light_skin_tone:"],
  57980. "category": "people"
  57981. },
  57982. ":woman_singer_tone2:": {
  57983. "uc_base": "1f469-1f3fc-1f3a4",
  57984. "uc_output": "1f469-1f3fc-200d-1f3a4",
  57985. "uc_match": "1f469-1f3fc-1f3a4",
  57986. "uc_greedy": "1f469-1f3fc-1f3a4",
  57987. "shortnames": [":woman_singer_medium_light_skin_tone:"],
  57988. "category": "people"
  57989. },
  57990. ":woman_singer_tone3:": {
  57991. "uc_base": "1f469-1f3fd-1f3a4",
  57992. "uc_output": "1f469-1f3fd-200d-1f3a4",
  57993. "uc_match": "1f469-1f3fd-1f3a4",
  57994. "uc_greedy": "1f469-1f3fd-1f3a4",
  57995. "shortnames": [":woman_singer_medium_skin_tone:"],
  57996. "category": "people"
  57997. },
  57998. ":woman_singer_tone4:": {
  57999. "uc_base": "1f469-1f3fe-1f3a4",
  58000. "uc_output": "1f469-1f3fe-200d-1f3a4",
  58001. "uc_match": "1f469-1f3fe-1f3a4",
  58002. "uc_greedy": "1f469-1f3fe-1f3a4",
  58003. "shortnames": [":woman_singer_medium_dark_skin_tone:"],
  58004. "category": "people"
  58005. },
  58006. ":woman_singer_tone5:": {
  58007. "uc_base": "1f469-1f3ff-1f3a4",
  58008. "uc_output": "1f469-1f3ff-200d-1f3a4",
  58009. "uc_match": "1f469-1f3ff-1f3a4",
  58010. "uc_greedy": "1f469-1f3ff-1f3a4",
  58011. "shortnames": [":woman_singer_dark_skin_tone:"],
  58012. "category": "people"
  58013. },
  58014. ":woman_student_tone1:": {
  58015. "uc_base": "1f469-1f3fb-1f393",
  58016. "uc_output": "1f469-1f3fb-200d-1f393",
  58017. "uc_match": "1f469-1f3fb-1f393",
  58018. "uc_greedy": "1f469-1f3fb-1f393",
  58019. "shortnames": [":woman_student_light_skin_tone:"],
  58020. "category": "people"
  58021. },
  58022. ":woman_student_tone2:": {
  58023. "uc_base": "1f469-1f3fc-1f393",
  58024. "uc_output": "1f469-1f3fc-200d-1f393",
  58025. "uc_match": "1f469-1f3fc-1f393",
  58026. "uc_greedy": "1f469-1f3fc-1f393",
  58027. "shortnames": [":woman_student_medium_light_skin_tone:"],
  58028. "category": "people"
  58029. },
  58030. ":woman_student_tone3:": {
  58031. "uc_base": "1f469-1f3fd-1f393",
  58032. "uc_output": "1f469-1f3fd-200d-1f393",
  58033. "uc_match": "1f469-1f3fd-1f393",
  58034. "uc_greedy": "1f469-1f3fd-1f393",
  58035. "shortnames": [":woman_student_medium_skin_tone:"],
  58036. "category": "people"
  58037. },
  58038. ":woman_student_tone4:": {
  58039. "uc_base": "1f469-1f3fe-1f393",
  58040. "uc_output": "1f469-1f3fe-200d-1f393",
  58041. "uc_match": "1f469-1f3fe-1f393",
  58042. "uc_greedy": "1f469-1f3fe-1f393",
  58043. "shortnames": [":woman_student_medium_dark_skin_tone:"],
  58044. "category": "people"
  58045. },
  58046. ":woman_student_tone5:": {
  58047. "uc_base": "1f469-1f3ff-1f393",
  58048. "uc_output": "1f469-1f3ff-200d-1f393",
  58049. "uc_match": "1f469-1f3ff-1f393",
  58050. "uc_greedy": "1f469-1f3ff-1f393",
  58051. "shortnames": [":woman_student_dark_skin_tone:"],
  58052. "category": "people"
  58053. },
  58054. ":woman_teacher_tone1:": {
  58055. "uc_base": "1f469-1f3fb-1f3eb",
  58056. "uc_output": "1f469-1f3fb-200d-1f3eb",
  58057. "uc_match": "1f469-1f3fb-1f3eb",
  58058. "uc_greedy": "1f469-1f3fb-1f3eb",
  58059. "shortnames": [":woman_teacher_light_skin_tone:"],
  58060. "category": "people"
  58061. },
  58062. ":woman_teacher_tone2:": {
  58063. "uc_base": "1f469-1f3fc-1f3eb",
  58064. "uc_output": "1f469-1f3fc-200d-1f3eb",
  58065. "uc_match": "1f469-1f3fc-1f3eb",
  58066. "uc_greedy": "1f469-1f3fc-1f3eb",
  58067. "shortnames": [":woman_teacher_medium_light_skin_tone:"],
  58068. "category": "people"
  58069. },
  58070. ":woman_teacher_tone3:": {
  58071. "uc_base": "1f469-1f3fd-1f3eb",
  58072. "uc_output": "1f469-1f3fd-200d-1f3eb",
  58073. "uc_match": "1f469-1f3fd-1f3eb",
  58074. "uc_greedy": "1f469-1f3fd-1f3eb",
  58075. "shortnames": [":woman_teacher_medium_skin_tone:"],
  58076. "category": "people"
  58077. },
  58078. ":woman_teacher_tone4:": {
  58079. "uc_base": "1f469-1f3fe-1f3eb",
  58080. "uc_output": "1f469-1f3fe-200d-1f3eb",
  58081. "uc_match": "1f469-1f3fe-1f3eb",
  58082. "uc_greedy": "1f469-1f3fe-1f3eb",
  58083. "shortnames": [":woman_teacher_medium_dark_skin_tone:"],
  58084. "category": "people"
  58085. },
  58086. ":woman_teacher_tone5:": {
  58087. "uc_base": "1f469-1f3ff-1f3eb",
  58088. "uc_output": "1f469-1f3ff-200d-1f3eb",
  58089. "uc_match": "1f469-1f3ff-1f3eb",
  58090. "uc_greedy": "1f469-1f3ff-1f3eb",
  58091. "shortnames": [":woman_teacher_dark_skin_tone:"],
  58092. "category": "people"
  58093. },
  58094. ":woman_technologist_tone1:": {
  58095. "uc_base": "1f469-1f3fb-1f4bb",
  58096. "uc_output": "1f469-1f3fb-200d-1f4bb",
  58097. "uc_match": "1f469-1f3fb-1f4bb",
  58098. "uc_greedy": "1f469-1f3fb-1f4bb",
  58099. "shortnames": [":woman_technologist_light_skin_tone:"],
  58100. "category": "people"
  58101. },
  58102. ":woman_technologist_tone2:": {
  58103. "uc_base": "1f469-1f3fc-1f4bb",
  58104. "uc_output": "1f469-1f3fc-200d-1f4bb",
  58105. "uc_match": "1f469-1f3fc-1f4bb",
  58106. "uc_greedy": "1f469-1f3fc-1f4bb",
  58107. "shortnames": [":woman_technologist_medium_light_skin_tone:"],
  58108. "category": "people"
  58109. },
  58110. ":woman_technologist_tone3:": {
  58111. "uc_base": "1f469-1f3fd-1f4bb",
  58112. "uc_output": "1f469-1f3fd-200d-1f4bb",
  58113. "uc_match": "1f469-1f3fd-1f4bb",
  58114. "uc_greedy": "1f469-1f3fd-1f4bb",
  58115. "shortnames": [":woman_technologist_medium_skin_tone:"],
  58116. "category": "people"
  58117. },
  58118. ":woman_technologist_tone4:": {
  58119. "uc_base": "1f469-1f3fe-1f4bb",
  58120. "uc_output": "1f469-1f3fe-200d-1f4bb",
  58121. "uc_match": "1f469-1f3fe-1f4bb",
  58122. "uc_greedy": "1f469-1f3fe-1f4bb",
  58123. "shortnames": [":woman_technologist_medium_dark_skin_tone:"],
  58124. "category": "people"
  58125. },
  58126. ":woman_technologist_tone5:": {
  58127. "uc_base": "1f469-1f3ff-1f4bb",
  58128. "uc_output": "1f469-1f3ff-200d-1f4bb",
  58129. "uc_match": "1f469-1f3ff-1f4bb",
  58130. "uc_greedy": "1f469-1f3ff-1f4bb",
  58131. "shortnames": [":woman_technologist_dark_skin_tone:"],
  58132. "category": "people"
  58133. },
  58134. ":rainbow_flag:": {
  58135. "uc_base": "1f3f3-1f308",
  58136. "uc_output": "1f3f3-fe0f-200d-1f308",
  58137. "uc_match": "1f3f3-fe0f-1f308",
  58138. "uc_greedy": "1f3f3-1f308",
  58139. "shortnames": [":gay_pride_flag:"],
  58140. "category": "flags"
  58141. },
  58142. ":blond-haired_man:": {
  58143. "uc_base": "1f471-2642",
  58144. "uc_output": "1f471-200d-2642-fe0f",
  58145. "uc_match": "1f471-2642-fe0f",
  58146. "uc_greedy": "1f471-2642",
  58147. "shortnames": [],
  58148. "category": "people"
  58149. },
  58150. ":blond-haired_woman:": {
  58151. "uc_base": "1f471-2640",
  58152. "uc_output": "1f471-200d-2640-fe0f",
  58153. "uc_match": "1f471-2640-fe0f",
  58154. "uc_greedy": "1f471-2640",
  58155. "shortnames": [],
  58156. "category": "people"
  58157. },
  58158. ":man_biking:": {
  58159. "uc_base": "1f6b4-2642",
  58160. "uc_output": "1f6b4-200d-2642-fe0f",
  58161. "uc_match": "1f6b4-2642-fe0f",
  58162. "uc_greedy": "1f6b4-2642",
  58163. "shortnames": [],
  58164. "category": "activity"
  58165. },
  58166. ":man_bowing:": {
  58167. "uc_base": "1f647-2642",
  58168. "uc_output": "1f647-200d-2642-fe0f",
  58169. "uc_match": "1f647-2642-fe0f",
  58170. "uc_greedy": "1f647-2642",
  58171. "shortnames": [],
  58172. "category": "people"
  58173. },
  58174. ":man_cartwheeling:": {
  58175. "uc_base": "1f938-2642",
  58176. "uc_output": "1f938-200d-2642-fe0f",
  58177. "uc_match": "1f938-2642-fe0f",
  58178. "uc_greedy": "1f938-2642",
  58179. "shortnames": [],
  58180. "category": "activity"
  58181. },
  58182. ":man_climbing:": {
  58183. "uc_base": "1f9d7-2642",
  58184. "uc_output": "1f9d7-200d-2642-fe0f",
  58185. "uc_match": "1f9d7-2642-fe0f",
  58186. "uc_greedy": "1f9d7-2642",
  58187. "shortnames": [],
  58188. "category": "activity"
  58189. },
  58190. ":man_construction_worker:": {
  58191. "uc_base": "1f477-2642",
  58192. "uc_output": "1f477-200d-2642-fe0f",
  58193. "uc_match": "1f477-2642-fe0f",
  58194. "uc_greedy": "1f477-2642",
  58195. "shortnames": [],
  58196. "category": "people"
  58197. },
  58198. ":man_elf:": {
  58199. "uc_base": "1f9dd-2642",
  58200. "uc_output": "1f9dd-200d-2642-fe0f",
  58201. "uc_match": "1f9dd-2642-fe0f",
  58202. "uc_greedy": "1f9dd-2642",
  58203. "shortnames": [],
  58204. "category": "people"
  58205. },
  58206. ":man_facepalming:": {
  58207. "uc_base": "1f926-2642",
  58208. "uc_output": "1f926-200d-2642-fe0f",
  58209. "uc_match": "1f926-2642-fe0f",
  58210. "uc_greedy": "1f926-2642",
  58211. "shortnames": [],
  58212. "category": "people"
  58213. },
  58214. ":man_fairy:": {
  58215. "uc_base": "1f9da-2642",
  58216. "uc_output": "1f9da-200d-2642-fe0f",
  58217. "uc_match": "1f9da-2642-fe0f",
  58218. "uc_greedy": "1f9da-2642",
  58219. "shortnames": [],
  58220. "category": "people"
  58221. },
  58222. ":man_frowning:": {
  58223. "uc_base": "1f64d-2642",
  58224. "uc_output": "1f64d-200d-2642-fe0f",
  58225. "uc_match": "1f64d-2642-fe0f",
  58226. "uc_greedy": "1f64d-2642",
  58227. "shortnames": [],
  58228. "category": "people"
  58229. },
  58230. ":man_genie:": {
  58231. "uc_base": "1f9de-2642",
  58232. "uc_output": "1f9de-200d-2642-fe0f",
  58233. "uc_match": "1f9de-2642-fe0f",
  58234. "uc_greedy": "1f9de-2642",
  58235. "shortnames": [],
  58236. "category": "people"
  58237. },
  58238. ":man_gesturing_no:": {
  58239. "uc_base": "1f645-2642",
  58240. "uc_output": "1f645-200d-2642-fe0f",
  58241. "uc_match": "1f645-2642-fe0f",
  58242. "uc_greedy": "1f645-2642",
  58243. "shortnames": [],
  58244. "category": "people"
  58245. },
  58246. ":man_gesturing_ok:": {
  58247. "uc_base": "1f646-2642",
  58248. "uc_output": "1f646-200d-2642-fe0f",
  58249. "uc_match": "1f646-2642-fe0f",
  58250. "uc_greedy": "1f646-2642",
  58251. "shortnames": [],
  58252. "category": "people"
  58253. },
  58254. ":man_getting_face_massage:": {
  58255. "uc_base": "1f486-2642",
  58256. "uc_output": "1f486-200d-2642-fe0f",
  58257. "uc_match": "1f486-2642-fe0f",
  58258. "uc_greedy": "1f486-2642",
  58259. "shortnames": [],
  58260. "category": "people"
  58261. },
  58262. ":man_getting_haircut:": {
  58263. "uc_base": "1f487-2642",
  58264. "uc_output": "1f487-200d-2642-fe0f",
  58265. "uc_match": "1f487-2642-fe0f",
  58266. "uc_greedy": "1f487-2642",
  58267. "shortnames": [],
  58268. "category": "people"
  58269. },
  58270. ":man_guard:": {
  58271. "uc_base": "1f482-2642",
  58272. "uc_output": "1f482-200d-2642-fe0f",
  58273. "uc_match": "1f482-2642-fe0f",
  58274. "uc_greedy": "1f482-2642",
  58275. "shortnames": [],
  58276. "category": "people"
  58277. },
  58278. ":man_health_worker:": {
  58279. "uc_base": "1f468-2695",
  58280. "uc_output": "1f468-200d-2695-fe0f",
  58281. "uc_match": "1f468-2695-fe0f",
  58282. "uc_greedy": "1f468-2695",
  58283. "shortnames": [],
  58284. "category": "people"
  58285. },
  58286. ":man_in_lotus_position:": {
  58287. "uc_base": "1f9d8-2642",
  58288. "uc_output": "1f9d8-200d-2642-fe0f",
  58289. "uc_match": "1f9d8-2642-fe0f",
  58290. "uc_greedy": "1f9d8-2642",
  58291. "shortnames": [],
  58292. "category": "activity"
  58293. },
  58294. ":man_in_steamy_room:": {
  58295. "uc_base": "1f9d6-2642",
  58296. "uc_output": "1f9d6-200d-2642-fe0f",
  58297. "uc_match": "1f9d6-2642-fe0f",
  58298. "uc_greedy": "1f9d6-2642",
  58299. "shortnames": [],
  58300. "category": "people"
  58301. },
  58302. ":man_judge:": {
  58303. "uc_base": "1f468-2696",
  58304. "uc_output": "1f468-200d-2696-fe0f",
  58305. "uc_match": "1f468-2696-fe0f",
  58306. "uc_greedy": "1f468-2696",
  58307. "shortnames": [],
  58308. "category": "people"
  58309. },
  58310. ":man_juggling:": {
  58311. "uc_base": "1f939-2642",
  58312. "uc_output": "1f939-200d-2642-fe0f",
  58313. "uc_match": "1f939-2642-fe0f",
  58314. "uc_greedy": "1f939-2642",
  58315. "shortnames": [],
  58316. "category": "activity"
  58317. },
  58318. ":man_mage:": {
  58319. "uc_base": "1f9d9-2642",
  58320. "uc_output": "1f9d9-200d-2642-fe0f",
  58321. "uc_match": "1f9d9-2642-fe0f",
  58322. "uc_greedy": "1f9d9-2642",
  58323. "shortnames": [],
  58324. "category": "people"
  58325. },
  58326. ":man_mountain_biking:": {
  58327. "uc_base": "1f6b5-2642",
  58328. "uc_output": "1f6b5-200d-2642-fe0f",
  58329. "uc_match": "1f6b5-2642-fe0f",
  58330. "uc_greedy": "1f6b5-2642",
  58331. "shortnames": [],
  58332. "category": "activity"
  58333. },
  58334. ":man_pilot:": {
  58335. "uc_base": "1f468-2708",
  58336. "uc_output": "1f468-200d-2708-fe0f",
  58337. "uc_match": "1f468-2708-fe0f",
  58338. "uc_greedy": "1f468-2708",
  58339. "shortnames": [],
  58340. "category": "people"
  58341. },
  58342. ":man_playing_handball:": {
  58343. "uc_base": "1f93e-2642",
  58344. "uc_output": "1f93e-200d-2642-fe0f",
  58345. "uc_match": "1f93e-2642-fe0f",
  58346. "uc_greedy": "1f93e-2642",
  58347. "shortnames": [],
  58348. "category": "activity"
  58349. },
  58350. ":man_playing_water_polo:": {
  58351. "uc_base": "1f93d-2642",
  58352. "uc_output": "1f93d-200d-2642-fe0f",
  58353. "uc_match": "1f93d-2642-fe0f",
  58354. "uc_greedy": "1f93d-2642",
  58355. "shortnames": [],
  58356. "category": "activity"
  58357. },
  58358. ":man_police_officer:": {
  58359. "uc_base": "1f46e-2642",
  58360. "uc_output": "1f46e-200d-2642-fe0f",
  58361. "uc_match": "1f46e-2642-fe0f",
  58362. "uc_greedy": "1f46e-2642",
  58363. "shortnames": [],
  58364. "category": "people"
  58365. },
  58366. ":man_pouting:": {
  58367. "uc_base": "1f64e-2642",
  58368. "uc_output": "1f64e-200d-2642-fe0f",
  58369. "uc_match": "1f64e-2642-fe0f",
  58370. "uc_greedy": "1f64e-2642",
  58371. "shortnames": [],
  58372. "category": "people"
  58373. },
  58374. ":man_raising_hand:": {
  58375. "uc_base": "1f64b-2642",
  58376. "uc_output": "1f64b-200d-2642-fe0f",
  58377. "uc_match": "1f64b-2642-fe0f",
  58378. "uc_greedy": "1f64b-2642",
  58379. "shortnames": [],
  58380. "category": "people"
  58381. },
  58382. ":man_rowing_boat:": {
  58383. "uc_base": "1f6a3-2642",
  58384. "uc_output": "1f6a3-200d-2642-fe0f",
  58385. "uc_match": "1f6a3-2642-fe0f",
  58386. "uc_greedy": "1f6a3-2642",
  58387. "shortnames": [],
  58388. "category": "activity"
  58389. },
  58390. ":man_running:": {
  58391. "uc_base": "1f3c3-2642",
  58392. "uc_output": "1f3c3-200d-2642-fe0f",
  58393. "uc_match": "1f3c3-2642-fe0f",
  58394. "uc_greedy": "1f3c3-2642",
  58395. "shortnames": [],
  58396. "category": "people"
  58397. },
  58398. ":man_shrugging:": {
  58399. "uc_base": "1f937-2642",
  58400. "uc_output": "1f937-200d-2642-fe0f",
  58401. "uc_match": "1f937-2642-fe0f",
  58402. "uc_greedy": "1f937-2642",
  58403. "shortnames": [],
  58404. "category": "people"
  58405. },
  58406. ":man_surfing:": {
  58407. "uc_base": "1f3c4-2642",
  58408. "uc_output": "1f3c4-200d-2642-fe0f",
  58409. "uc_match": "1f3c4-2642-fe0f",
  58410. "uc_greedy": "1f3c4-2642",
  58411. "shortnames": [],
  58412. "category": "activity"
  58413. },
  58414. ":man_swimming:": {
  58415. "uc_base": "1f3ca-2642",
  58416. "uc_output": "1f3ca-200d-2642-fe0f",
  58417. "uc_match": "1f3ca-2642-fe0f",
  58418. "uc_greedy": "1f3ca-2642",
  58419. "shortnames": [],
  58420. "category": "activity"
  58421. },
  58422. ":man_tipping_hand:": {
  58423. "uc_base": "1f481-2642",
  58424. "uc_output": "1f481-200d-2642-fe0f",
  58425. "uc_match": "1f481-2642-fe0f",
  58426. "uc_greedy": "1f481-2642",
  58427. "shortnames": [],
  58428. "category": "people"
  58429. },
  58430. ":man_vampire:": {
  58431. "uc_base": "1f9db-2642",
  58432. "uc_output": "1f9db-200d-2642-fe0f",
  58433. "uc_match": "1f9db-2642-fe0f",
  58434. "uc_greedy": "1f9db-2642",
  58435. "shortnames": [],
  58436. "category": "people"
  58437. },
  58438. ":man_walking:": {
  58439. "uc_base": "1f6b6-2642",
  58440. "uc_output": "1f6b6-200d-2642-fe0f",
  58441. "uc_match": "1f6b6-2642-fe0f",
  58442. "uc_greedy": "1f6b6-2642",
  58443. "shortnames": [],
  58444. "category": "people"
  58445. },
  58446. ":man_wearing_turban:": {
  58447. "uc_base": "1f473-2642",
  58448. "uc_output": "1f473-200d-2642-fe0f",
  58449. "uc_match": "1f473-2642-fe0f",
  58450. "uc_greedy": "1f473-2642",
  58451. "shortnames": [],
  58452. "category": "people"
  58453. },
  58454. ":man_zombie:": {
  58455. "uc_base": "1f9df-2642",
  58456. "uc_output": "1f9df-200d-2642-fe0f",
  58457. "uc_match": "1f9df-2642-fe0f",
  58458. "uc_greedy": "1f9df-2642",
  58459. "shortnames": [],
  58460. "category": "people"
  58461. },
  58462. ":men_with_bunny_ears_partying:": {
  58463. "uc_base": "1f46f-2642",
  58464. "uc_output": "1f46f-200d-2642-fe0f",
  58465. "uc_match": "1f46f-2642-fe0f",
  58466. "uc_greedy": "1f46f-2642",
  58467. "shortnames": [],
  58468. "category": "people"
  58469. },
  58470. ":men_wrestling:": {
  58471. "uc_base": "1f93c-2642",
  58472. "uc_output": "1f93c-200d-2642-fe0f",
  58473. "uc_match": "1f93c-2642-fe0f",
  58474. "uc_greedy": "1f93c-2642",
  58475. "shortnames": [],
  58476. "category": "activity"
  58477. },
  58478. ":mermaid:": {
  58479. "uc_base": "1f9dc-2640",
  58480. "uc_output": "1f9dc-200d-2640-fe0f",
  58481. "uc_match": "1f9dc-2640-fe0f",
  58482. "uc_greedy": "1f9dc-2640",
  58483. "shortnames": [],
  58484. "category": "people"
  58485. },
  58486. ":merman:": {
  58487. "uc_base": "1f9dc-2642",
  58488. "uc_output": "1f9dc-200d-2642-fe0f",
  58489. "uc_match": "1f9dc-2642-fe0f",
  58490. "uc_greedy": "1f9dc-2642",
  58491. "shortnames": [],
  58492. "category": "people"
  58493. },
  58494. ":woman_biking:": {
  58495. "uc_base": "1f6b4-2640",
  58496. "uc_output": "1f6b4-200d-2640-fe0f",
  58497. "uc_match": "1f6b4-2640-fe0f",
  58498. "uc_greedy": "1f6b4-2640",
  58499. "shortnames": [],
  58500. "category": "activity"
  58501. },
  58502. ":woman_bowing:": {
  58503. "uc_base": "1f647-2640",
  58504. "uc_output": "1f647-200d-2640-fe0f",
  58505. "uc_match": "1f647-2640-fe0f",
  58506. "uc_greedy": "1f647-2640",
  58507. "shortnames": [],
  58508. "category": "people"
  58509. },
  58510. ":woman_cartwheeling:": {
  58511. "uc_base": "1f938-2640",
  58512. "uc_output": "1f938-200d-2640-fe0f",
  58513. "uc_match": "1f938-2640-fe0f",
  58514. "uc_greedy": "1f938-2640",
  58515. "shortnames": [],
  58516. "category": "activity"
  58517. },
  58518. ":woman_climbing:": {
  58519. "uc_base": "1f9d7-2640",
  58520. "uc_output": "1f9d7-200d-2640-fe0f",
  58521. "uc_match": "1f9d7-2640-fe0f",
  58522. "uc_greedy": "1f9d7-2640",
  58523. "shortnames": [],
  58524. "category": "activity"
  58525. },
  58526. ":woman_construction_worker:": {
  58527. "uc_base": "1f477-2640",
  58528. "uc_output": "1f477-200d-2640-fe0f",
  58529. "uc_match": "1f477-2640-fe0f",
  58530. "uc_greedy": "1f477-2640",
  58531. "shortnames": [],
  58532. "category": "people"
  58533. },
  58534. ":woman_elf:": {
  58535. "uc_base": "1f9dd-2640",
  58536. "uc_output": "1f9dd-200d-2640-fe0f",
  58537. "uc_match": "1f9dd-2640-fe0f",
  58538. "uc_greedy": "1f9dd-2640",
  58539. "shortnames": [],
  58540. "category": "people"
  58541. },
  58542. ":woman_facepalming:": {
  58543. "uc_base": "1f926-2640",
  58544. "uc_output": "1f926-200d-2640-fe0f",
  58545. "uc_match": "1f926-2640-fe0f",
  58546. "uc_greedy": "1f926-2640",
  58547. "shortnames": [],
  58548. "category": "people"
  58549. },
  58550. ":woman_fairy:": {
  58551. "uc_base": "1f9da-2640",
  58552. "uc_output": "1f9da-200d-2640-fe0f",
  58553. "uc_match": "1f9da-2640-fe0f",
  58554. "uc_greedy": "1f9da-2640",
  58555. "shortnames": [],
  58556. "category": "people"
  58557. },
  58558. ":woman_frowning:": {
  58559. "uc_base": "1f64d-2640",
  58560. "uc_output": "1f64d-200d-2640-fe0f",
  58561. "uc_match": "1f64d-2640-fe0f",
  58562. "uc_greedy": "1f64d-2640",
  58563. "shortnames": [],
  58564. "category": "people"
  58565. },
  58566. ":woman_genie:": {
  58567. "uc_base": "1f9de-2640",
  58568. "uc_output": "1f9de-200d-2640-fe0f",
  58569. "uc_match": "1f9de-2640-fe0f",
  58570. "uc_greedy": "1f9de-2640",
  58571. "shortnames": [],
  58572. "category": "people"
  58573. },
  58574. ":woman_gesturing_no:": {
  58575. "uc_base": "1f645-2640",
  58576. "uc_output": "1f645-200d-2640-fe0f",
  58577. "uc_match": "1f645-2640-fe0f",
  58578. "uc_greedy": "1f645-2640",
  58579. "shortnames": [],
  58580. "category": "people"
  58581. },
  58582. ":woman_gesturing_ok:": {
  58583. "uc_base": "1f646-2640",
  58584. "uc_output": "1f646-200d-2640-fe0f",
  58585. "uc_match": "1f646-2640-fe0f",
  58586. "uc_greedy": "1f646-2640",
  58587. "shortnames": [],
  58588. "category": "people"
  58589. },
  58590. ":woman_getting_face_massage:": {
  58591. "uc_base": "1f486-2640",
  58592. "uc_output": "1f486-200d-2640-fe0f",
  58593. "uc_match": "1f486-2640-fe0f",
  58594. "uc_greedy": "1f486-2640",
  58595. "shortnames": [],
  58596. "category": "people"
  58597. },
  58598. ":woman_getting_haircut:": {
  58599. "uc_base": "1f487-2640",
  58600. "uc_output": "1f487-200d-2640-fe0f",
  58601. "uc_match": "1f487-2640-fe0f",
  58602. "uc_greedy": "1f487-2640",
  58603. "shortnames": [],
  58604. "category": "people"
  58605. },
  58606. ":woman_guard:": {
  58607. "uc_base": "1f482-2640",
  58608. "uc_output": "1f482-200d-2640-fe0f",
  58609. "uc_match": "1f482-2640-fe0f",
  58610. "uc_greedy": "1f482-2640",
  58611. "shortnames": [],
  58612. "category": "people"
  58613. },
  58614. ":woman_health_worker:": {
  58615. "uc_base": "1f469-2695",
  58616. "uc_output": "1f469-200d-2695-fe0f",
  58617. "uc_match": "1f469-2695-fe0f",
  58618. "uc_greedy": "1f469-2695",
  58619. "shortnames": [],
  58620. "category": "people"
  58621. },
  58622. ":woman_in_lotus_position:": {
  58623. "uc_base": "1f9d8-2640",
  58624. "uc_output": "1f9d8-200d-2640-fe0f",
  58625. "uc_match": "1f9d8-2640-fe0f",
  58626. "uc_greedy": "1f9d8-2640",
  58627. "shortnames": [],
  58628. "category": "activity"
  58629. },
  58630. ":woman_in_steamy_room:": {
  58631. "uc_base": "1f9d6-2640",
  58632. "uc_output": "1f9d6-200d-2640-fe0f",
  58633. "uc_match": "1f9d6-2640-fe0f",
  58634. "uc_greedy": "1f9d6-2640",
  58635. "shortnames": [],
  58636. "category": "people"
  58637. },
  58638. ":woman_judge:": {
  58639. "uc_base": "1f469-2696",
  58640. "uc_output": "1f469-200d-2696-fe0f",
  58641. "uc_match": "1f469-2696-fe0f",
  58642. "uc_greedy": "1f469-2696",
  58643. "shortnames": [],
  58644. "category": "people"
  58645. },
  58646. ":woman_juggling:": {
  58647. "uc_base": "1f939-2640",
  58648. "uc_output": "1f939-200d-2640-fe0f",
  58649. "uc_match": "1f939-2640-fe0f",
  58650. "uc_greedy": "1f939-2640",
  58651. "shortnames": [],
  58652. "category": "activity"
  58653. },
  58654. ":woman_mage:": {
  58655. "uc_base": "1f9d9-2640",
  58656. "uc_output": "1f9d9-200d-2640-fe0f",
  58657. "uc_match": "1f9d9-2640-fe0f",
  58658. "uc_greedy": "1f9d9-2640",
  58659. "shortnames": [],
  58660. "category": "people"
  58661. },
  58662. ":woman_mountain_biking:": {
  58663. "uc_base": "1f6b5-2640",
  58664. "uc_output": "1f6b5-200d-2640-fe0f",
  58665. "uc_match": "1f6b5-2640-fe0f",
  58666. "uc_greedy": "1f6b5-2640",
  58667. "shortnames": [],
  58668. "category": "activity"
  58669. },
  58670. ":woman_pilot:": {
  58671. "uc_base": "1f469-2708",
  58672. "uc_output": "1f469-200d-2708-fe0f",
  58673. "uc_match": "1f469-2708-fe0f",
  58674. "uc_greedy": "1f469-2708",
  58675. "shortnames": [],
  58676. "category": "people"
  58677. },
  58678. ":woman_playing_handball:": {
  58679. "uc_base": "1f93e-2640",
  58680. "uc_output": "1f93e-200d-2640-fe0f",
  58681. "uc_match": "1f93e-2640-fe0f",
  58682. "uc_greedy": "1f93e-2640",
  58683. "shortnames": [],
  58684. "category": "activity"
  58685. },
  58686. ":woman_playing_water_polo:": {
  58687. "uc_base": "1f93d-2640",
  58688. "uc_output": "1f93d-200d-2640-fe0f",
  58689. "uc_match": "1f93d-2640-fe0f",
  58690. "uc_greedy": "1f93d-2640",
  58691. "shortnames": [],
  58692. "category": "activity"
  58693. },
  58694. ":woman_police_officer:": {
  58695. "uc_base": "1f46e-2640",
  58696. "uc_output": "1f46e-200d-2640-fe0f",
  58697. "uc_match": "1f46e-2640-fe0f",
  58698. "uc_greedy": "1f46e-2640",
  58699. "shortnames": [],
  58700. "category": "people"
  58701. },
  58702. ":woman_pouting:": {
  58703. "uc_base": "1f64e-2640",
  58704. "uc_output": "1f64e-200d-2640-fe0f",
  58705. "uc_match": "1f64e-2640-fe0f",
  58706. "uc_greedy": "1f64e-2640",
  58707. "shortnames": [],
  58708. "category": "people"
  58709. },
  58710. ":woman_raising_hand:": {
  58711. "uc_base": "1f64b-2640",
  58712. "uc_output": "1f64b-200d-2640-fe0f",
  58713. "uc_match": "1f64b-2640-fe0f",
  58714. "uc_greedy": "1f64b-2640",
  58715. "shortnames": [],
  58716. "category": "people"
  58717. },
  58718. ":woman_rowing_boat:": {
  58719. "uc_base": "1f6a3-2640",
  58720. "uc_output": "1f6a3-200d-2640-fe0f",
  58721. "uc_match": "1f6a3-2640-fe0f",
  58722. "uc_greedy": "1f6a3-2640",
  58723. "shortnames": [],
  58724. "category": "activity"
  58725. },
  58726. ":woman_running:": {
  58727. "uc_base": "1f3c3-2640",
  58728. "uc_output": "1f3c3-200d-2640-fe0f",
  58729. "uc_match": "1f3c3-2640-fe0f",
  58730. "uc_greedy": "1f3c3-2640",
  58731. "shortnames": [],
  58732. "category": "people"
  58733. },
  58734. ":woman_shrugging:": {
  58735. "uc_base": "1f937-2640",
  58736. "uc_output": "1f937-200d-2640-fe0f",
  58737. "uc_match": "1f937-2640-fe0f",
  58738. "uc_greedy": "1f937-2640",
  58739. "shortnames": [],
  58740. "category": "people"
  58741. },
  58742. ":woman_surfing:": {
  58743. "uc_base": "1f3c4-2640",
  58744. "uc_output": "1f3c4-200d-2640-fe0f",
  58745. "uc_match": "1f3c4-2640-fe0f",
  58746. "uc_greedy": "1f3c4-2640",
  58747. "shortnames": [],
  58748. "category": "activity"
  58749. },
  58750. ":woman_swimming:": {
  58751. "uc_base": "1f3ca-2640",
  58752. "uc_output": "1f3ca-200d-2640-fe0f",
  58753. "uc_match": "1f3ca-2640-fe0f",
  58754. "uc_greedy": "1f3ca-2640",
  58755. "shortnames": [],
  58756. "category": "activity"
  58757. },
  58758. ":woman_tipping_hand:": {
  58759. "uc_base": "1f481-2640",
  58760. "uc_output": "1f481-200d-2640-fe0f",
  58761. "uc_match": "1f481-2640-fe0f",
  58762. "uc_greedy": "1f481-2640",
  58763. "shortnames": [],
  58764. "category": "people"
  58765. },
  58766. ":woman_vampire:": {
  58767. "uc_base": "1f9db-2640",
  58768. "uc_output": "1f9db-200d-2640-fe0f",
  58769. "uc_match": "1f9db-2640-fe0f",
  58770. "uc_greedy": "1f9db-2640",
  58771. "shortnames": [],
  58772. "category": "people"
  58773. },
  58774. ":woman_walking:": {
  58775. "uc_base": "1f6b6-2640",
  58776. "uc_output": "1f6b6-200d-2640-fe0f",
  58777. "uc_match": "1f6b6-2640-fe0f",
  58778. "uc_greedy": "1f6b6-2640",
  58779. "shortnames": [],
  58780. "category": "people"
  58781. },
  58782. ":woman_wearing_turban:": {
  58783. "uc_base": "1f473-2640",
  58784. "uc_output": "1f473-200d-2640-fe0f",
  58785. "uc_match": "1f473-2640-fe0f",
  58786. "uc_greedy": "1f473-2640",
  58787. "shortnames": [],
  58788. "category": "people"
  58789. },
  58790. ":woman_zombie:": {
  58791. "uc_base": "1f9df-2640",
  58792. "uc_output": "1f9df-200d-2640-fe0f",
  58793. "uc_match": "1f9df-2640-fe0f",
  58794. "uc_greedy": "1f9df-2640",
  58795. "shortnames": [],
  58796. "category": "people"
  58797. },
  58798. ":women_with_bunny_ears_partying:": {
  58799. "uc_base": "1f46f-2640",
  58800. "uc_output": "1f46f-200d-2640-fe0f",
  58801. "uc_match": "1f46f-2640-fe0f",
  58802. "uc_greedy": "1f46f-2640",
  58803. "shortnames": [],
  58804. "category": "people"
  58805. },
  58806. ":women_wrestling:": {
  58807. "uc_base": "1f93c-2640",
  58808. "uc_output": "1f93c-200d-2640-fe0f",
  58809. "uc_match": "1f93c-2640-fe0f",
  58810. "uc_greedy": "1f93c-2640",
  58811. "shortnames": [],
  58812. "category": "activity"
  58813. },
  58814. ":family_man_boy:": {
  58815. "uc_base": "1f468-1f466",
  58816. "uc_output": "1f468-200d-1f466",
  58817. "uc_match": "1f468-1f466",
  58818. "uc_greedy": "1f468-1f466",
  58819. "shortnames": [],
  58820. "category": "people"
  58821. },
  58822. ":family_man_girl:": {
  58823. "uc_base": "1f468-1f467",
  58824. "uc_output": "1f468-200d-1f467",
  58825. "uc_match": "1f468-1f467",
  58826. "uc_greedy": "1f468-1f467",
  58827. "shortnames": [],
  58828. "category": "people"
  58829. },
  58830. ":family_woman_boy:": {
  58831. "uc_base": "1f469-1f466",
  58832. "uc_output": "1f469-200d-1f466",
  58833. "uc_match": "1f469-1f466",
  58834. "uc_greedy": "1f469-1f466",
  58835. "shortnames": [],
  58836. "category": "people"
  58837. },
  58838. ":family_woman_girl:": {
  58839. "uc_base": "1f469-1f467",
  58840. "uc_output": "1f469-200d-1f467",
  58841. "uc_match": "1f469-1f467",
  58842. "uc_greedy": "1f469-1f467",
  58843. "shortnames": [],
  58844. "category": "people"
  58845. },
  58846. ":man_artist:": {
  58847. "uc_base": "1f468-1f3a8",
  58848. "uc_output": "1f468-200d-1f3a8",
  58849. "uc_match": "1f468-1f3a8",
  58850. "uc_greedy": "1f468-1f3a8",
  58851. "shortnames": [],
  58852. "category": "people"
  58853. },
  58854. ":man_astronaut:": {
  58855. "uc_base": "1f468-1f680",
  58856. "uc_output": "1f468-200d-1f680",
  58857. "uc_match": "1f468-1f680",
  58858. "uc_greedy": "1f468-1f680",
  58859. "shortnames": [],
  58860. "category": "people"
  58861. },
  58862. ":man_cook:": {
  58863. "uc_base": "1f468-1f373",
  58864. "uc_output": "1f468-200d-1f373",
  58865. "uc_match": "1f468-1f373",
  58866. "uc_greedy": "1f468-1f373",
  58867. "shortnames": [],
  58868. "category": "people"
  58869. },
  58870. ":man_factory_worker:": {
  58871. "uc_base": "1f468-1f3ed",
  58872. "uc_output": "1f468-200d-1f3ed",
  58873. "uc_match": "1f468-1f3ed",
  58874. "uc_greedy": "1f468-1f3ed",
  58875. "shortnames": [],
  58876. "category": "people"
  58877. },
  58878. ":man_farmer:": {
  58879. "uc_base": "1f468-1f33e",
  58880. "uc_output": "1f468-200d-1f33e",
  58881. "uc_match": "1f468-1f33e",
  58882. "uc_greedy": "1f468-1f33e",
  58883. "shortnames": [],
  58884. "category": "people"
  58885. },
  58886. ":man_firefighter:": {
  58887. "uc_base": "1f468-1f692",
  58888. "uc_output": "1f468-200d-1f692",
  58889. "uc_match": "1f468-1f692",
  58890. "uc_greedy": "1f468-1f692",
  58891. "shortnames": [],
  58892. "category": "people"
  58893. },
  58894. ":man_mechanic:": {
  58895. "uc_base": "1f468-1f527",
  58896. "uc_output": "1f468-200d-1f527",
  58897. "uc_match": "1f468-1f527",
  58898. "uc_greedy": "1f468-1f527",
  58899. "shortnames": [],
  58900. "category": "people"
  58901. },
  58902. ":man_office_worker:": {
  58903. "uc_base": "1f468-1f4bc",
  58904. "uc_output": "1f468-200d-1f4bc",
  58905. "uc_match": "1f468-1f4bc",
  58906. "uc_greedy": "1f468-1f4bc",
  58907. "shortnames": [],
  58908. "category": "people"
  58909. },
  58910. ":man_scientist:": {
  58911. "uc_base": "1f468-1f52c",
  58912. "uc_output": "1f468-200d-1f52c",
  58913. "uc_match": "1f468-1f52c",
  58914. "uc_greedy": "1f468-1f52c",
  58915. "shortnames": [],
  58916. "category": "people"
  58917. },
  58918. ":man_singer:": {
  58919. "uc_base": "1f468-1f3a4",
  58920. "uc_output": "1f468-200d-1f3a4",
  58921. "uc_match": "1f468-1f3a4",
  58922. "uc_greedy": "1f468-1f3a4",
  58923. "shortnames": [],
  58924. "category": "people"
  58925. },
  58926. ":man_student:": {
  58927. "uc_base": "1f468-1f393",
  58928. "uc_output": "1f468-200d-1f393",
  58929. "uc_match": "1f468-1f393",
  58930. "uc_greedy": "1f468-1f393",
  58931. "shortnames": [],
  58932. "category": "people"
  58933. },
  58934. ":man_teacher:": {
  58935. "uc_base": "1f468-1f3eb",
  58936. "uc_output": "1f468-200d-1f3eb",
  58937. "uc_match": "1f468-1f3eb",
  58938. "uc_greedy": "1f468-1f3eb",
  58939. "shortnames": [],
  58940. "category": "people"
  58941. },
  58942. ":man_technologist:": {
  58943. "uc_base": "1f468-1f4bb",
  58944. "uc_output": "1f468-200d-1f4bb",
  58945. "uc_match": "1f468-1f4bb",
  58946. "uc_greedy": "1f468-1f4bb",
  58947. "shortnames": [],
  58948. "category": "people"
  58949. },
  58950. ":woman_artist:": {
  58951. "uc_base": "1f469-1f3a8",
  58952. "uc_output": "1f469-200d-1f3a8",
  58953. "uc_match": "1f469-1f3a8",
  58954. "uc_greedy": "1f469-1f3a8",
  58955. "shortnames": [],
  58956. "category": "people"
  58957. },
  58958. ":woman_astronaut:": {
  58959. "uc_base": "1f469-1f680",
  58960. "uc_output": "1f469-200d-1f680",
  58961. "uc_match": "1f469-1f680",
  58962. "uc_greedy": "1f469-1f680",
  58963. "shortnames": [],
  58964. "category": "people"
  58965. },
  58966. ":woman_cook:": {
  58967. "uc_base": "1f469-1f373",
  58968. "uc_output": "1f469-200d-1f373",
  58969. "uc_match": "1f469-1f373",
  58970. "uc_greedy": "1f469-1f373",
  58971. "shortnames": [],
  58972. "category": "people"
  58973. },
  58974. ":woman_factory_worker:": {
  58975. "uc_base": "1f469-1f3ed",
  58976. "uc_output": "1f469-200d-1f3ed",
  58977. "uc_match": "1f469-1f3ed",
  58978. "uc_greedy": "1f469-1f3ed",
  58979. "shortnames": [],
  58980. "category": "people"
  58981. },
  58982. ":woman_farmer:": {
  58983. "uc_base": "1f469-1f33e",
  58984. "uc_output": "1f469-200d-1f33e",
  58985. "uc_match": "1f469-1f33e",
  58986. "uc_greedy": "1f469-1f33e",
  58987. "shortnames": [],
  58988. "category": "people"
  58989. },
  58990. ":woman_firefighter:": {
  58991. "uc_base": "1f469-1f692",
  58992. "uc_output": "1f469-200d-1f692",
  58993. "uc_match": "1f469-1f692",
  58994. "uc_greedy": "1f469-1f692",
  58995. "shortnames": [],
  58996. "category": "people"
  58997. },
  58998. ":woman_mechanic:": {
  58999. "uc_base": "1f469-1f527",
  59000. "uc_output": "1f469-200d-1f527",
  59001. "uc_match": "1f469-1f527",
  59002. "uc_greedy": "1f469-1f527",
  59003. "shortnames": [],
  59004. "category": "people"
  59005. },
  59006. ":woman_office_worker:": {
  59007. "uc_base": "1f469-1f4bc",
  59008. "uc_output": "1f469-200d-1f4bc",
  59009. "uc_match": "1f469-1f4bc",
  59010. "uc_greedy": "1f469-1f4bc",
  59011. "shortnames": [],
  59012. "category": "people"
  59013. },
  59014. ":woman_scientist:": {
  59015. "uc_base": "1f469-1f52c",
  59016. "uc_output": "1f469-200d-1f52c",
  59017. "uc_match": "1f469-1f52c",
  59018. "uc_greedy": "1f469-1f52c",
  59019. "shortnames": [],
  59020. "category": "people"
  59021. },
  59022. ":woman_singer:": {
  59023. "uc_base": "1f469-1f3a4",
  59024. "uc_output": "1f469-200d-1f3a4",
  59025. "uc_match": "1f469-1f3a4",
  59026. "uc_greedy": "1f469-1f3a4",
  59027. "shortnames": [],
  59028. "category": "people"
  59029. },
  59030. ":woman_student:": {
  59031. "uc_base": "1f469-1f393",
  59032. "uc_output": "1f469-200d-1f393",
  59033. "uc_match": "1f469-1f393",
  59034. "uc_greedy": "1f469-1f393",
  59035. "shortnames": [],
  59036. "category": "people"
  59037. },
  59038. ":woman_teacher:": {
  59039. "uc_base": "1f469-1f3eb",
  59040. "uc_output": "1f469-200d-1f3eb",
  59041. "uc_match": "1f469-1f3eb",
  59042. "uc_greedy": "1f469-1f3eb",
  59043. "shortnames": [],
  59044. "category": "people"
  59045. },
  59046. ":woman_technologist:": {
  59047. "uc_base": "1f469-1f4bb",
  59048. "uc_output": "1f469-200d-1f4bb",
  59049. "uc_match": "1f469-1f4bb",
  59050. "uc_greedy": "1f469-1f4bb",
  59051. "shortnames": [],
  59052. "category": "people"
  59053. },
  59054. ":asterisk:": {
  59055. "uc_base": "002a-20e3",
  59056. "uc_output": "002a-fe0f-20e3",
  59057. "uc_match": "002a-20e3",
  59058. "uc_greedy": "002a-20e3",
  59059. "shortnames": [":keycap_asterisk:"],
  59060. "category": "symbols"
  59061. },
  59062. ":eight:": {
  59063. "uc_base": "0038-20e3",
  59064. "uc_output": "0038-fe0f-20e3",
  59065. "uc_match": "0038-20e3",
  59066. "uc_greedy": "0038-20e3",
  59067. "shortnames": [],
  59068. "category": "symbols"
  59069. },
  59070. ":five:": {
  59071. "uc_base": "0035-20e3",
  59072. "uc_output": "0035-fe0f-20e3",
  59073. "uc_match": "0035-20e3",
  59074. "uc_greedy": "0035-20e3",
  59075. "shortnames": [],
  59076. "category": "symbols"
  59077. },
  59078. ":four:": {
  59079. "uc_base": "0034-20e3",
  59080. "uc_output": "0034-fe0f-20e3",
  59081. "uc_match": "0034-20e3",
  59082. "uc_greedy": "0034-20e3",
  59083. "shortnames": [],
  59084. "category": "symbols"
  59085. },
  59086. ":hash:": {
  59087. "uc_base": "0023-20e3",
  59088. "uc_output": "0023-fe0f-20e3",
  59089. "uc_match": "0023-20e3",
  59090. "uc_greedy": "0023-20e3",
  59091. "shortnames": [],
  59092. "category": "symbols"
  59093. },
  59094. ":nine:": {
  59095. "uc_base": "0039-20e3",
  59096. "uc_output": "0039-fe0f-20e3",
  59097. "uc_match": "0039-20e3",
  59098. "uc_greedy": "0039-20e3",
  59099. "shortnames": [],
  59100. "category": "symbols"
  59101. },
  59102. ":one:": {
  59103. "uc_base": "0031-20e3",
  59104. "uc_output": "0031-fe0f-20e3",
  59105. "uc_match": "0031-20e3",
  59106. "uc_greedy": "0031-20e3",
  59107. "shortnames": [],
  59108. "category": "symbols"
  59109. },
  59110. ":seven:": {
  59111. "uc_base": "0037-20e3",
  59112. "uc_output": "0037-fe0f-20e3",
  59113. "uc_match": "0037-20e3",
  59114. "uc_greedy": "0037-20e3",
  59115. "shortnames": [],
  59116. "category": "symbols"
  59117. },
  59118. ":six:": {
  59119. "uc_base": "0036-20e3",
  59120. "uc_output": "0036-fe0f-20e3",
  59121. "uc_match": "0036-20e3",
  59122. "uc_greedy": "0036-20e3",
  59123. "shortnames": [],
  59124. "category": "symbols"
  59125. },
  59126. ":three:": {
  59127. "uc_base": "0033-20e3",
  59128. "uc_output": "0033-fe0f-20e3",
  59129. "uc_match": "0033-20e3",
  59130. "uc_greedy": "0033-20e3",
  59131. "shortnames": [],
  59132. "category": "symbols"
  59133. },
  59134. ":two:": {
  59135. "uc_base": "0032-20e3",
  59136. "uc_output": "0032-fe0f-20e3",
  59137. "uc_match": "0032-20e3",
  59138. "uc_greedy": "0032-20e3",
  59139. "shortnames": [],
  59140. "category": "symbols"
  59141. },
  59142. ":zero:": {
  59143. "uc_base": "0030-20e3",
  59144. "uc_output": "0030-fe0f-20e3",
  59145. "uc_match": "0030-20e3",
  59146. "uc_greedy": "0030-20e3",
  59147. "shortnames": [],
  59148. "category": "symbols"
  59149. },
  59150. ":adult_tone1:": {
  59151. "uc_base": "1f9d1-1f3fb",
  59152. "uc_output": "1f9d1-1f3fb",
  59153. "uc_match": "1f9d1-1f3fb",
  59154. "uc_greedy": "1f9d1-1f3fb",
  59155. "shortnames": [":adult_light_skin_tone:"],
  59156. "category": "people"
  59157. },
  59158. ":adult_tone2:": {
  59159. "uc_base": "1f9d1-1f3fc",
  59160. "uc_output": "1f9d1-1f3fc",
  59161. "uc_match": "1f9d1-1f3fc",
  59162. "uc_greedy": "1f9d1-1f3fc",
  59163. "shortnames": [":adult_medium_light_skin_tone:"],
  59164. "category": "people"
  59165. },
  59166. ":adult_tone3:": {
  59167. "uc_base": "1f9d1-1f3fd",
  59168. "uc_output": "1f9d1-1f3fd",
  59169. "uc_match": "1f9d1-1f3fd",
  59170. "uc_greedy": "1f9d1-1f3fd",
  59171. "shortnames": [":adult_medium_skin_tone:"],
  59172. "category": "people"
  59173. },
  59174. ":adult_tone4:": {
  59175. "uc_base": "1f9d1-1f3fe",
  59176. "uc_output": "1f9d1-1f3fe",
  59177. "uc_match": "1f9d1-1f3fe",
  59178. "uc_greedy": "1f9d1-1f3fe",
  59179. "shortnames": [":adult_medium_dark_skin_tone:"],
  59180. "category": "people"
  59181. },
  59182. ":adult_tone5:": {
  59183. "uc_base": "1f9d1-1f3ff",
  59184. "uc_output": "1f9d1-1f3ff",
  59185. "uc_match": "1f9d1-1f3ff",
  59186. "uc_greedy": "1f9d1-1f3ff",
  59187. "shortnames": [":adult_dark_skin_tone:"],
  59188. "category": "people"
  59189. },
  59190. ":angel_tone1:": {
  59191. "uc_base": "1f47c-1f3fb",
  59192. "uc_output": "1f47c-1f3fb",
  59193. "uc_match": "1f47c-1f3fb",
  59194. "uc_greedy": "1f47c-1f3fb",
  59195. "shortnames": [],
  59196. "category": "people"
  59197. },
  59198. ":angel_tone2:": {
  59199. "uc_base": "1f47c-1f3fc",
  59200. "uc_output": "1f47c-1f3fc",
  59201. "uc_match": "1f47c-1f3fc",
  59202. "uc_greedy": "1f47c-1f3fc",
  59203. "shortnames": [],
  59204. "category": "people"
  59205. },
  59206. ":angel_tone3:": {
  59207. "uc_base": "1f47c-1f3fd",
  59208. "uc_output": "1f47c-1f3fd",
  59209. "uc_match": "1f47c-1f3fd",
  59210. "uc_greedy": "1f47c-1f3fd",
  59211. "shortnames": [],
  59212. "category": "people"
  59213. },
  59214. ":angel_tone4:": {
  59215. "uc_base": "1f47c-1f3fe",
  59216. "uc_output": "1f47c-1f3fe",
  59217. "uc_match": "1f47c-1f3fe",
  59218. "uc_greedy": "1f47c-1f3fe",
  59219. "shortnames": [],
  59220. "category": "people"
  59221. },
  59222. ":angel_tone5:": {
  59223. "uc_base": "1f47c-1f3ff",
  59224. "uc_output": "1f47c-1f3ff",
  59225. "uc_match": "1f47c-1f3ff",
  59226. "uc_greedy": "1f47c-1f3ff",
  59227. "shortnames": [],
  59228. "category": "people"
  59229. },
  59230. ":baby_tone1:": {
  59231. "uc_base": "1f476-1f3fb",
  59232. "uc_output": "1f476-1f3fb",
  59233. "uc_match": "1f476-1f3fb",
  59234. "uc_greedy": "1f476-1f3fb",
  59235. "shortnames": [],
  59236. "category": "people"
  59237. },
  59238. ":baby_tone2:": {
  59239. "uc_base": "1f476-1f3fc",
  59240. "uc_output": "1f476-1f3fc",
  59241. "uc_match": "1f476-1f3fc",
  59242. "uc_greedy": "1f476-1f3fc",
  59243. "shortnames": [],
  59244. "category": "people"
  59245. },
  59246. ":baby_tone3:": {
  59247. "uc_base": "1f476-1f3fd",
  59248. "uc_output": "1f476-1f3fd",
  59249. "uc_match": "1f476-1f3fd",
  59250. "uc_greedy": "1f476-1f3fd",
  59251. "shortnames": [],
  59252. "category": "people"
  59253. },
  59254. ":baby_tone4:": {
  59255. "uc_base": "1f476-1f3fe",
  59256. "uc_output": "1f476-1f3fe",
  59257. "uc_match": "1f476-1f3fe",
  59258. "uc_greedy": "1f476-1f3fe",
  59259. "shortnames": [],
  59260. "category": "people"
  59261. },
  59262. ":baby_tone5:": {
  59263. "uc_base": "1f476-1f3ff",
  59264. "uc_output": "1f476-1f3ff",
  59265. "uc_match": "1f476-1f3ff",
  59266. "uc_greedy": "1f476-1f3ff",
  59267. "shortnames": [],
  59268. "category": "people"
  59269. },
  59270. ":bath_tone1:": {
  59271. "uc_base": "1f6c0-1f3fb",
  59272. "uc_output": "1f6c0-1f3fb",
  59273. "uc_match": "1f6c0-1f3fb",
  59274. "uc_greedy": "1f6c0-1f3fb",
  59275. "shortnames": [],
  59276. "category": "objects"
  59277. },
  59278. ":bath_tone2:": {
  59279. "uc_base": "1f6c0-1f3fc",
  59280. "uc_output": "1f6c0-1f3fc",
  59281. "uc_match": "1f6c0-1f3fc",
  59282. "uc_greedy": "1f6c0-1f3fc",
  59283. "shortnames": [],
  59284. "category": "objects"
  59285. },
  59286. ":bath_tone3:": {
  59287. "uc_base": "1f6c0-1f3fd",
  59288. "uc_output": "1f6c0-1f3fd",
  59289. "uc_match": "1f6c0-1f3fd",
  59290. "uc_greedy": "1f6c0-1f3fd",
  59291. "shortnames": [],
  59292. "category": "objects"
  59293. },
  59294. ":bath_tone4:": {
  59295. "uc_base": "1f6c0-1f3fe",
  59296. "uc_output": "1f6c0-1f3fe",
  59297. "uc_match": "1f6c0-1f3fe",
  59298. "uc_greedy": "1f6c0-1f3fe",
  59299. "shortnames": [],
  59300. "category": "objects"
  59301. },
  59302. ":bath_tone5:": {
  59303. "uc_base": "1f6c0-1f3ff",
  59304. "uc_output": "1f6c0-1f3ff",
  59305. "uc_match": "1f6c0-1f3ff",
  59306. "uc_greedy": "1f6c0-1f3ff",
  59307. "shortnames": [],
  59308. "category": "objects"
  59309. },
  59310. ":bearded_person_tone1:": {
  59311. "uc_base": "1f9d4-1f3fb",
  59312. "uc_output": "1f9d4-1f3fb",
  59313. "uc_match": "1f9d4-1f3fb",
  59314. "uc_greedy": "1f9d4-1f3fb",
  59315. "shortnames": [":bearded_person_light_skin_tone:"],
  59316. "category": "people"
  59317. },
  59318. ":bearded_person_tone2:": {
  59319. "uc_base": "1f9d4-1f3fc",
  59320. "uc_output": "1f9d4-1f3fc",
  59321. "uc_match": "1f9d4-1f3fc",
  59322. "uc_greedy": "1f9d4-1f3fc",
  59323. "shortnames": [":bearded_person_medium_light_skin_tone:"],
  59324. "category": "people"
  59325. },
  59326. ":bearded_person_tone3:": {
  59327. "uc_base": "1f9d4-1f3fd",
  59328. "uc_output": "1f9d4-1f3fd",
  59329. "uc_match": "1f9d4-1f3fd",
  59330. "uc_greedy": "1f9d4-1f3fd",
  59331. "shortnames": [":bearded_person_medium_skin_tone:"],
  59332. "category": "people"
  59333. },
  59334. ":bearded_person_tone4:": {
  59335. "uc_base": "1f9d4-1f3fe",
  59336. "uc_output": "1f9d4-1f3fe",
  59337. "uc_match": "1f9d4-1f3fe",
  59338. "uc_greedy": "1f9d4-1f3fe",
  59339. "shortnames": [":bearded_person_medium_dark_skin_tone:"],
  59340. "category": "people"
  59341. },
  59342. ":bearded_person_tone5:": {
  59343. "uc_base": "1f9d4-1f3ff",
  59344. "uc_output": "1f9d4-1f3ff",
  59345. "uc_match": "1f9d4-1f3ff",
  59346. "uc_greedy": "1f9d4-1f3ff",
  59347. "shortnames": [":bearded_person_dark_skin_tone:"],
  59348. "category": "people"
  59349. },
  59350. ":blond_haired_person_tone1:": {
  59351. "uc_base": "1f471-1f3fb",
  59352. "uc_output": "1f471-1f3fb",
  59353. "uc_match": "1f471-1f3fb",
  59354. "uc_greedy": "1f471-1f3fb",
  59355. "shortnames": [":person_with_blond_hair_tone1:"],
  59356. "category": "people"
  59357. },
  59358. ":blond_haired_person_tone2:": {
  59359. "uc_base": "1f471-1f3fc",
  59360. "uc_output": "1f471-1f3fc",
  59361. "uc_match": "1f471-1f3fc",
  59362. "uc_greedy": "1f471-1f3fc",
  59363. "shortnames": [":person_with_blond_hair_tone2:"],
  59364. "category": "people"
  59365. },
  59366. ":blond_haired_person_tone3:": {
  59367. "uc_base": "1f471-1f3fd",
  59368. "uc_output": "1f471-1f3fd",
  59369. "uc_match": "1f471-1f3fd",
  59370. "uc_greedy": "1f471-1f3fd",
  59371. "shortnames": [":person_with_blond_hair_tone3:"],
  59372. "category": "people"
  59373. },
  59374. ":blond_haired_person_tone4:": {
  59375. "uc_base": "1f471-1f3fe",
  59376. "uc_output": "1f471-1f3fe",
  59377. "uc_match": "1f471-1f3fe",
  59378. "uc_greedy": "1f471-1f3fe",
  59379. "shortnames": [":person_with_blond_hair_tone4:"],
  59380. "category": "people"
  59381. },
  59382. ":blond_haired_person_tone5:": {
  59383. "uc_base": "1f471-1f3ff",
  59384. "uc_output": "1f471-1f3ff",
  59385. "uc_match": "1f471-1f3ff",
  59386. "uc_greedy": "1f471-1f3ff",
  59387. "shortnames": [":person_with_blond_hair_tone5:"],
  59388. "category": "people"
  59389. },
  59390. ":boy_tone1:": {
  59391. "uc_base": "1f466-1f3fb",
  59392. "uc_output": "1f466-1f3fb",
  59393. "uc_match": "1f466-1f3fb",
  59394. "uc_greedy": "1f466-1f3fb",
  59395. "shortnames": [],
  59396. "category": "people"
  59397. },
  59398. ":boy_tone2:": {
  59399. "uc_base": "1f466-1f3fc",
  59400. "uc_output": "1f466-1f3fc",
  59401. "uc_match": "1f466-1f3fc",
  59402. "uc_greedy": "1f466-1f3fc",
  59403. "shortnames": [],
  59404. "category": "people"
  59405. },
  59406. ":boy_tone3:": {
  59407. "uc_base": "1f466-1f3fd",
  59408. "uc_output": "1f466-1f3fd",
  59409. "uc_match": "1f466-1f3fd",
  59410. "uc_greedy": "1f466-1f3fd",
  59411. "shortnames": [],
  59412. "category": "people"
  59413. },
  59414. ":boy_tone4:": {
  59415. "uc_base": "1f466-1f3fe",
  59416. "uc_output": "1f466-1f3fe",
  59417. "uc_match": "1f466-1f3fe",
  59418. "uc_greedy": "1f466-1f3fe",
  59419. "shortnames": [],
  59420. "category": "people"
  59421. },
  59422. ":boy_tone5:": {
  59423. "uc_base": "1f466-1f3ff",
  59424. "uc_output": "1f466-1f3ff",
  59425. "uc_match": "1f466-1f3ff",
  59426. "uc_greedy": "1f466-1f3ff",
  59427. "shortnames": [],
  59428. "category": "people"
  59429. },
  59430. ":breast_feeding_tone1:": {
  59431. "uc_base": "1f931-1f3fb",
  59432. "uc_output": "1f931-1f3fb",
  59433. "uc_match": "1f931-1f3fb",
  59434. "uc_greedy": "1f931-1f3fb",
  59435. "shortnames": [":breast_feeding_light_skin_tone:"],
  59436. "category": "people"
  59437. },
  59438. ":breast_feeding_tone2:": {
  59439. "uc_base": "1f931-1f3fc",
  59440. "uc_output": "1f931-1f3fc",
  59441. "uc_match": "1f931-1f3fc",
  59442. "uc_greedy": "1f931-1f3fc",
  59443. "shortnames": [":breast_feeding_medium_light_skin_tone:"],
  59444. "category": "people"
  59445. },
  59446. ":breast_feeding_tone3:": {
  59447. "uc_base": "1f931-1f3fd",
  59448. "uc_output": "1f931-1f3fd",
  59449. "uc_match": "1f931-1f3fd",
  59450. "uc_greedy": "1f931-1f3fd",
  59451. "shortnames": [":breast_feeding_medium_skin_tone:"],
  59452. "category": "people"
  59453. },
  59454. ":breast_feeding_tone4:": {
  59455. "uc_base": "1f931-1f3fe",
  59456. "uc_output": "1f931-1f3fe",
  59457. "uc_match": "1f931-1f3fe",
  59458. "uc_greedy": "1f931-1f3fe",
  59459. "shortnames": [":breast_feeding_medium_dark_skin_tone:"],
  59460. "category": "people"
  59461. },
  59462. ":breast_feeding_tone5:": {
  59463. "uc_base": "1f931-1f3ff",
  59464. "uc_output": "1f931-1f3ff",
  59465. "uc_match": "1f931-1f3ff",
  59466. "uc_greedy": "1f931-1f3ff",
  59467. "shortnames": [":breast_feeding_dark_skin_tone:"],
  59468. "category": "people"
  59469. },
  59470. ":bride_with_veil_tone1:": {
  59471. "uc_base": "1f470-1f3fb",
  59472. "uc_output": "1f470-1f3fb",
  59473. "uc_match": "1f470-1f3fb",
  59474. "uc_greedy": "1f470-1f3fb",
  59475. "shortnames": [],
  59476. "category": "people"
  59477. },
  59478. ":bride_with_veil_tone2:": {
  59479. "uc_base": "1f470-1f3fc",
  59480. "uc_output": "1f470-1f3fc",
  59481. "uc_match": "1f470-1f3fc",
  59482. "uc_greedy": "1f470-1f3fc",
  59483. "shortnames": [],
  59484. "category": "people"
  59485. },
  59486. ":bride_with_veil_tone3:": {
  59487. "uc_base": "1f470-1f3fd",
  59488. "uc_output": "1f470-1f3fd",
  59489. "uc_match": "1f470-1f3fd",
  59490. "uc_greedy": "1f470-1f3fd",
  59491. "shortnames": [],
  59492. "category": "people"
  59493. },
  59494. ":bride_with_veil_tone4:": {
  59495. "uc_base": "1f470-1f3fe",
  59496. "uc_output": "1f470-1f3fe",
  59497. "uc_match": "1f470-1f3fe",
  59498. "uc_greedy": "1f470-1f3fe",
  59499. "shortnames": [],
  59500. "category": "people"
  59501. },
  59502. ":bride_with_veil_tone5:": {
  59503. "uc_base": "1f470-1f3ff",
  59504. "uc_output": "1f470-1f3ff",
  59505. "uc_match": "1f470-1f3ff",
  59506. "uc_greedy": "1f470-1f3ff",
  59507. "shortnames": [],
  59508. "category": "people"
  59509. },
  59510. ":call_me_tone1:": {
  59511. "uc_base": "1f919-1f3fb",
  59512. "uc_output": "1f919-1f3fb",
  59513. "uc_match": "1f919-1f3fb",
  59514. "uc_greedy": "1f919-1f3fb",
  59515. "shortnames": [":call_me_hand_tone1:"],
  59516. "category": "people"
  59517. },
  59518. ":call_me_tone2:": {
  59519. "uc_base": "1f919-1f3fc",
  59520. "uc_output": "1f919-1f3fc",
  59521. "uc_match": "1f919-1f3fc",
  59522. "uc_greedy": "1f919-1f3fc",
  59523. "shortnames": [":call_me_hand_tone2:"],
  59524. "category": "people"
  59525. },
  59526. ":call_me_tone3:": {
  59527. "uc_base": "1f919-1f3fd",
  59528. "uc_output": "1f919-1f3fd",
  59529. "uc_match": "1f919-1f3fd",
  59530. "uc_greedy": "1f919-1f3fd",
  59531. "shortnames": [":call_me_hand_tone3:"],
  59532. "category": "people"
  59533. },
  59534. ":call_me_tone4:": {
  59535. "uc_base": "1f919-1f3fe",
  59536. "uc_output": "1f919-1f3fe",
  59537. "uc_match": "1f919-1f3fe",
  59538. "uc_greedy": "1f919-1f3fe",
  59539. "shortnames": [":call_me_hand_tone4:"],
  59540. "category": "people"
  59541. },
  59542. ":call_me_tone5:": {
  59543. "uc_base": "1f919-1f3ff",
  59544. "uc_output": "1f919-1f3ff",
  59545. "uc_match": "1f919-1f3ff",
  59546. "uc_greedy": "1f919-1f3ff",
  59547. "shortnames": [":call_me_hand_tone5:"],
  59548. "category": "people"
  59549. },
  59550. ":child_tone1:": {
  59551. "uc_base": "1f9d2-1f3fb",
  59552. "uc_output": "1f9d2-1f3fb",
  59553. "uc_match": "1f9d2-1f3fb",
  59554. "uc_greedy": "1f9d2-1f3fb",
  59555. "shortnames": [":child_light_skin_tone:"],
  59556. "category": "people"
  59557. },
  59558. ":child_tone2:": {
  59559. "uc_base": "1f9d2-1f3fc",
  59560. "uc_output": "1f9d2-1f3fc",
  59561. "uc_match": "1f9d2-1f3fc",
  59562. "uc_greedy": "1f9d2-1f3fc",
  59563. "shortnames": [":child_medium_light_skin_tone:"],
  59564. "category": "people"
  59565. },
  59566. ":child_tone3:": {
  59567. "uc_base": "1f9d2-1f3fd",
  59568. "uc_output": "1f9d2-1f3fd",
  59569. "uc_match": "1f9d2-1f3fd",
  59570. "uc_greedy": "1f9d2-1f3fd",
  59571. "shortnames": [":child_medium_skin_tone:"],
  59572. "category": "people"
  59573. },
  59574. ":child_tone4:": {
  59575. "uc_base": "1f9d2-1f3fe",
  59576. "uc_output": "1f9d2-1f3fe",
  59577. "uc_match": "1f9d2-1f3fe",
  59578. "uc_greedy": "1f9d2-1f3fe",
  59579. "shortnames": [":child_medium_dark_skin_tone:"],
  59580. "category": "people"
  59581. },
  59582. ":child_tone5:": {
  59583. "uc_base": "1f9d2-1f3ff",
  59584. "uc_output": "1f9d2-1f3ff",
  59585. "uc_match": "1f9d2-1f3ff",
  59586. "uc_greedy": "1f9d2-1f3ff",
  59587. "shortnames": [":child_dark_skin_tone:"],
  59588. "category": "people"
  59589. },
  59590. ":clap_tone1:": {
  59591. "uc_base": "1f44f-1f3fb",
  59592. "uc_output": "1f44f-1f3fb",
  59593. "uc_match": "1f44f-1f3fb",
  59594. "uc_greedy": "1f44f-1f3fb",
  59595. "shortnames": [],
  59596. "category": "people"
  59597. },
  59598. ":clap_tone2:": {
  59599. "uc_base": "1f44f-1f3fc",
  59600. "uc_output": "1f44f-1f3fc",
  59601. "uc_match": "1f44f-1f3fc",
  59602. "uc_greedy": "1f44f-1f3fc",
  59603. "shortnames": [],
  59604. "category": "people"
  59605. },
  59606. ":clap_tone3:": {
  59607. "uc_base": "1f44f-1f3fd",
  59608. "uc_output": "1f44f-1f3fd",
  59609. "uc_match": "1f44f-1f3fd",
  59610. "uc_greedy": "1f44f-1f3fd",
  59611. "shortnames": [],
  59612. "category": "people"
  59613. },
  59614. ":clap_tone4:": {
  59615. "uc_base": "1f44f-1f3fe",
  59616. "uc_output": "1f44f-1f3fe",
  59617. "uc_match": "1f44f-1f3fe",
  59618. "uc_greedy": "1f44f-1f3fe",
  59619. "shortnames": [],
  59620. "category": "people"
  59621. },
  59622. ":clap_tone5:": {
  59623. "uc_base": "1f44f-1f3ff",
  59624. "uc_output": "1f44f-1f3ff",
  59625. "uc_match": "1f44f-1f3ff",
  59626. "uc_greedy": "1f44f-1f3ff",
  59627. "shortnames": [],
  59628. "category": "people"
  59629. },
  59630. ":construction_worker_tone1:": {
  59631. "uc_base": "1f477-1f3fb",
  59632. "uc_output": "1f477-1f3fb",
  59633. "uc_match": "1f477-1f3fb",
  59634. "uc_greedy": "1f477-1f3fb",
  59635. "shortnames": [],
  59636. "category": "people"
  59637. },
  59638. ":construction_worker_tone2:": {
  59639. "uc_base": "1f477-1f3fc",
  59640. "uc_output": "1f477-1f3fc",
  59641. "uc_match": "1f477-1f3fc",
  59642. "uc_greedy": "1f477-1f3fc",
  59643. "shortnames": [],
  59644. "category": "people"
  59645. },
  59646. ":construction_worker_tone3:": {
  59647. "uc_base": "1f477-1f3fd",
  59648. "uc_output": "1f477-1f3fd",
  59649. "uc_match": "1f477-1f3fd",
  59650. "uc_greedy": "1f477-1f3fd",
  59651. "shortnames": [],
  59652. "category": "people"
  59653. },
  59654. ":construction_worker_tone4:": {
  59655. "uc_base": "1f477-1f3fe",
  59656. "uc_output": "1f477-1f3fe",
  59657. "uc_match": "1f477-1f3fe",
  59658. "uc_greedy": "1f477-1f3fe",
  59659. "shortnames": [],
  59660. "category": "people"
  59661. },
  59662. ":construction_worker_tone5:": {
  59663. "uc_base": "1f477-1f3ff",
  59664. "uc_output": "1f477-1f3ff",
  59665. "uc_match": "1f477-1f3ff",
  59666. "uc_greedy": "1f477-1f3ff",
  59667. "shortnames": [],
  59668. "category": "people"
  59669. },
  59670. ":dancer_tone1:": {
  59671. "uc_base": "1f483-1f3fb",
  59672. "uc_output": "1f483-1f3fb",
  59673. "uc_match": "1f483-1f3fb",
  59674. "uc_greedy": "1f483-1f3fb",
  59675. "shortnames": [],
  59676. "category": "people"
  59677. },
  59678. ":dancer_tone2:": {
  59679. "uc_base": "1f483-1f3fc",
  59680. "uc_output": "1f483-1f3fc",
  59681. "uc_match": "1f483-1f3fc",
  59682. "uc_greedy": "1f483-1f3fc",
  59683. "shortnames": [],
  59684. "category": "people"
  59685. },
  59686. ":dancer_tone3:": {
  59687. "uc_base": "1f483-1f3fd",
  59688. "uc_output": "1f483-1f3fd",
  59689. "uc_match": "1f483-1f3fd",
  59690. "uc_greedy": "1f483-1f3fd",
  59691. "shortnames": [],
  59692. "category": "people"
  59693. },
  59694. ":dancer_tone4:": {
  59695. "uc_base": "1f483-1f3fe",
  59696. "uc_output": "1f483-1f3fe",
  59697. "uc_match": "1f483-1f3fe",
  59698. "uc_greedy": "1f483-1f3fe",
  59699. "shortnames": [],
  59700. "category": "people"
  59701. },
  59702. ":dancer_tone5:": {
  59703. "uc_base": "1f483-1f3ff",
  59704. "uc_output": "1f483-1f3ff",
  59705. "uc_match": "1f483-1f3ff",
  59706. "uc_greedy": "1f483-1f3ff",
  59707. "shortnames": [],
  59708. "category": "people"
  59709. },
  59710. ":detective_tone1:": {
  59711. "uc_base": "1f575-1f3fb",
  59712. "uc_output": "1f575-1f3fb",
  59713. "uc_match": "1f575-fe0f-1f3fb",
  59714. "uc_greedy": "1f575-fe0f-1f3fb",
  59715. "shortnames": [":spy_tone1:", ":sleuth_or_spy_tone1:"],
  59716. "category": "people"
  59717. },
  59718. ":detective_tone2:": {
  59719. "uc_base": "1f575-1f3fc",
  59720. "uc_output": "1f575-1f3fc",
  59721. "uc_match": "1f575-fe0f-1f3fc",
  59722. "uc_greedy": "1f575-fe0f-1f3fc",
  59723. "shortnames": [":spy_tone2:", ":sleuth_or_spy_tone2:"],
  59724. "category": "people"
  59725. },
  59726. ":detective_tone3:": {
  59727. "uc_base": "1f575-1f3fd",
  59728. "uc_output": "1f575-1f3fd",
  59729. "uc_match": "1f575-fe0f-1f3fd",
  59730. "uc_greedy": "1f575-fe0f-1f3fd",
  59731. "shortnames": [":spy_tone3:", ":sleuth_or_spy_tone3:"],
  59732. "category": "people"
  59733. },
  59734. ":detective_tone4:": {
  59735. "uc_base": "1f575-1f3fe",
  59736. "uc_output": "1f575-1f3fe",
  59737. "uc_match": "1f575-fe0f-1f3fe",
  59738. "uc_greedy": "1f575-fe0f-1f3fe",
  59739. "shortnames": [":spy_tone4:", ":sleuth_or_spy_tone4:"],
  59740. "category": "people"
  59741. },
  59742. ":detective_tone5:": {
  59743. "uc_base": "1f575-1f3ff",
  59744. "uc_output": "1f575-1f3ff",
  59745. "uc_match": "1f575-fe0f-1f3ff",
  59746. "uc_greedy": "1f575-fe0f-1f3ff",
  59747. "shortnames": [":spy_tone5:", ":sleuth_or_spy_tone5:"],
  59748. "category": "people"
  59749. },
  59750. ":ear_tone1:": {
  59751. "uc_base": "1f442-1f3fb",
  59752. "uc_output": "1f442-1f3fb",
  59753. "uc_match": "1f442-1f3fb",
  59754. "uc_greedy": "1f442-1f3fb",
  59755. "shortnames": [],
  59756. "category": "people"
  59757. },
  59758. ":ear_tone2:": {
  59759. "uc_base": "1f442-1f3fc",
  59760. "uc_output": "1f442-1f3fc",
  59761. "uc_match": "1f442-1f3fc",
  59762. "uc_greedy": "1f442-1f3fc",
  59763. "shortnames": [],
  59764. "category": "people"
  59765. },
  59766. ":ear_tone3:": {
  59767. "uc_base": "1f442-1f3fd",
  59768. "uc_output": "1f442-1f3fd",
  59769. "uc_match": "1f442-1f3fd",
  59770. "uc_greedy": "1f442-1f3fd",
  59771. "shortnames": [],
  59772. "category": "people"
  59773. },
  59774. ":ear_tone4:": {
  59775. "uc_base": "1f442-1f3fe",
  59776. "uc_output": "1f442-1f3fe",
  59777. "uc_match": "1f442-1f3fe",
  59778. "uc_greedy": "1f442-1f3fe",
  59779. "shortnames": [],
  59780. "category": "people"
  59781. },
  59782. ":ear_tone5:": {
  59783. "uc_base": "1f442-1f3ff",
  59784. "uc_output": "1f442-1f3ff",
  59785. "uc_match": "1f442-1f3ff",
  59786. "uc_greedy": "1f442-1f3ff",
  59787. "shortnames": [],
  59788. "category": "people"
  59789. },
  59790. ":elf_tone1:": {
  59791. "uc_base": "1f9dd-1f3fb",
  59792. "uc_output": "1f9dd-1f3fb",
  59793. "uc_match": "1f9dd-1f3fb",
  59794. "uc_greedy": "1f9dd-1f3fb",
  59795. "shortnames": [":elf_light_skin_tone:"],
  59796. "category": "people"
  59797. },
  59798. ":elf_tone2:": {
  59799. "uc_base": "1f9dd-1f3fc",
  59800. "uc_output": "1f9dd-1f3fc",
  59801. "uc_match": "1f9dd-1f3fc",
  59802. "uc_greedy": "1f9dd-1f3fc",
  59803. "shortnames": [":elf_medium_light_skin_tone:"],
  59804. "category": "people"
  59805. },
  59806. ":elf_tone3:": {
  59807. "uc_base": "1f9dd-1f3fd",
  59808. "uc_output": "1f9dd-1f3fd",
  59809. "uc_match": "1f9dd-1f3fd",
  59810. "uc_greedy": "1f9dd-1f3fd",
  59811. "shortnames": [":elf_medium_skin_tone:"],
  59812. "category": "people"
  59813. },
  59814. ":elf_tone4:": {
  59815. "uc_base": "1f9dd-1f3fe",
  59816. "uc_output": "1f9dd-1f3fe",
  59817. "uc_match": "1f9dd-1f3fe",
  59818. "uc_greedy": "1f9dd-1f3fe",
  59819. "shortnames": [":elf_medium_dark_skin_tone:"],
  59820. "category": "people"
  59821. },
  59822. ":elf_tone5:": {
  59823. "uc_base": "1f9dd-1f3ff",
  59824. "uc_output": "1f9dd-1f3ff",
  59825. "uc_match": "1f9dd-1f3ff",
  59826. "uc_greedy": "1f9dd-1f3ff",
  59827. "shortnames": [":elf_dark_skin_tone:"],
  59828. "category": "people"
  59829. },
  59830. ":fairy_tone1:": {
  59831. "uc_base": "1f9da-1f3fb",
  59832. "uc_output": "1f9da-1f3fb",
  59833. "uc_match": "1f9da-1f3fb",
  59834. "uc_greedy": "1f9da-1f3fb",
  59835. "shortnames": [":fairy_light_skin_tone:"],
  59836. "category": "people"
  59837. },
  59838. ":fairy_tone2:": {
  59839. "uc_base": "1f9da-1f3fc",
  59840. "uc_output": "1f9da-1f3fc",
  59841. "uc_match": "1f9da-1f3fc",
  59842. "uc_greedy": "1f9da-1f3fc",
  59843. "shortnames": [":fairy_medium_light_skin_tone:"],
  59844. "category": "people"
  59845. },
  59846. ":fairy_tone3:": {
  59847. "uc_base": "1f9da-1f3fd",
  59848. "uc_output": "1f9da-1f3fd",
  59849. "uc_match": "1f9da-1f3fd",
  59850. "uc_greedy": "1f9da-1f3fd",
  59851. "shortnames": [":fairy_medium_skin_tone:"],
  59852. "category": "people"
  59853. },
  59854. ":fairy_tone4:": {
  59855. "uc_base": "1f9da-1f3fe",
  59856. "uc_output": "1f9da-1f3fe",
  59857. "uc_match": "1f9da-1f3fe",
  59858. "uc_greedy": "1f9da-1f3fe",
  59859. "shortnames": [":fairy_medium_dark_skin_tone:"],
  59860. "category": "people"
  59861. },
  59862. ":fairy_tone5:": {
  59863. "uc_base": "1f9da-1f3ff",
  59864. "uc_output": "1f9da-1f3ff",
  59865. "uc_match": "1f9da-1f3ff",
  59866. "uc_greedy": "1f9da-1f3ff",
  59867. "shortnames": [":fairy_dark_skin_tone:"],
  59868. "category": "people"
  59869. },
  59870. ":fingers_crossed_tone1:": {
  59871. "uc_base": "1f91e-1f3fb",
  59872. "uc_output": "1f91e-1f3fb",
  59873. "uc_match": "1f91e-1f3fb",
  59874. "uc_greedy": "1f91e-1f3fb",
  59875. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone1:"],
  59876. "category": "people"
  59877. },
  59878. ":fingers_crossed_tone2:": {
  59879. "uc_base": "1f91e-1f3fc",
  59880. "uc_output": "1f91e-1f3fc",
  59881. "uc_match": "1f91e-1f3fc",
  59882. "uc_greedy": "1f91e-1f3fc",
  59883. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone2:"],
  59884. "category": "people"
  59885. },
  59886. ":fingers_crossed_tone3:": {
  59887. "uc_base": "1f91e-1f3fd",
  59888. "uc_output": "1f91e-1f3fd",
  59889. "uc_match": "1f91e-1f3fd",
  59890. "uc_greedy": "1f91e-1f3fd",
  59891. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone3:"],
  59892. "category": "people"
  59893. },
  59894. ":fingers_crossed_tone4:": {
  59895. "uc_base": "1f91e-1f3fe",
  59896. "uc_output": "1f91e-1f3fe",
  59897. "uc_match": "1f91e-1f3fe",
  59898. "uc_greedy": "1f91e-1f3fe",
  59899. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone4:"],
  59900. "category": "people"
  59901. },
  59902. ":fingers_crossed_tone5:": {
  59903. "uc_base": "1f91e-1f3ff",
  59904. "uc_output": "1f91e-1f3ff",
  59905. "uc_match": "1f91e-1f3ff",
  59906. "uc_greedy": "1f91e-1f3ff",
  59907. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone5:"],
  59908. "category": "people"
  59909. },
  59910. ":flag_ac:": {
  59911. "uc_base": "1f1e6-1f1e8",
  59912. "uc_output": "1f1e6-1f1e8",
  59913. "uc_match": "1f1e6-1f1e8",
  59914. "uc_greedy": "1f1e6-1f1e8",
  59915. "shortnames": [":ac:"],
  59916. "category": "flags"
  59917. },
  59918. ":flag_ad:": {
  59919. "uc_base": "1f1e6-1f1e9",
  59920. "uc_output": "1f1e6-1f1e9",
  59921. "uc_match": "1f1e6-1f1e9",
  59922. "uc_greedy": "1f1e6-1f1e9",
  59923. "shortnames": [":ad:"],
  59924. "category": "flags"
  59925. },
  59926. ":flag_ae:": {
  59927. "uc_base": "1f1e6-1f1ea",
  59928. "uc_output": "1f1e6-1f1ea",
  59929. "uc_match": "1f1e6-1f1ea",
  59930. "uc_greedy": "1f1e6-1f1ea",
  59931. "shortnames": [":ae:"],
  59932. "category": "flags"
  59933. },
  59934. ":flag_af:": {
  59935. "uc_base": "1f1e6-1f1eb",
  59936. "uc_output": "1f1e6-1f1eb",
  59937. "uc_match": "1f1e6-1f1eb",
  59938. "uc_greedy": "1f1e6-1f1eb",
  59939. "shortnames": [":af:"],
  59940. "category": "flags"
  59941. },
  59942. ":flag_ag:": {
  59943. "uc_base": "1f1e6-1f1ec",
  59944. "uc_output": "1f1e6-1f1ec",
  59945. "uc_match": "1f1e6-1f1ec",
  59946. "uc_greedy": "1f1e6-1f1ec",
  59947. "shortnames": [":ag:"],
  59948. "category": "flags"
  59949. },
  59950. ":flag_ai:": {
  59951. "uc_base": "1f1e6-1f1ee",
  59952. "uc_output": "1f1e6-1f1ee",
  59953. "uc_match": "1f1e6-1f1ee",
  59954. "uc_greedy": "1f1e6-1f1ee",
  59955. "shortnames": [":ai:"],
  59956. "category": "flags"
  59957. },
  59958. ":flag_al:": {
  59959. "uc_base": "1f1e6-1f1f1",
  59960. "uc_output": "1f1e6-1f1f1",
  59961. "uc_match": "1f1e6-1f1f1",
  59962. "uc_greedy": "1f1e6-1f1f1",
  59963. "shortnames": [":al:"],
  59964. "category": "flags"
  59965. },
  59966. ":flag_am:": {
  59967. "uc_base": "1f1e6-1f1f2",
  59968. "uc_output": "1f1e6-1f1f2",
  59969. "uc_match": "1f1e6-1f1f2",
  59970. "uc_greedy": "1f1e6-1f1f2",
  59971. "shortnames": [":am:"],
  59972. "category": "flags"
  59973. },
  59974. ":flag_ao:": {
  59975. "uc_base": "1f1e6-1f1f4",
  59976. "uc_output": "1f1e6-1f1f4",
  59977. "uc_match": "1f1e6-1f1f4",
  59978. "uc_greedy": "1f1e6-1f1f4",
  59979. "shortnames": [":ao:"],
  59980. "category": "flags"
  59981. },
  59982. ":flag_aq:": {
  59983. "uc_base": "1f1e6-1f1f6",
  59984. "uc_output": "1f1e6-1f1f6",
  59985. "uc_match": "1f1e6-1f1f6",
  59986. "uc_greedy": "1f1e6-1f1f6",
  59987. "shortnames": [":aq:"],
  59988. "category": "flags"
  59989. },
  59990. ":flag_ar:": {
  59991. "uc_base": "1f1e6-1f1f7",
  59992. "uc_output": "1f1e6-1f1f7",
  59993. "uc_match": "1f1e6-1f1f7",
  59994. "uc_greedy": "1f1e6-1f1f7",
  59995. "shortnames": [":ar:"],
  59996. "category": "flags"
  59997. },
  59998. ":flag_as:": {
  59999. "uc_base": "1f1e6-1f1f8",
  60000. "uc_output": "1f1e6-1f1f8",
  60001. "uc_match": "1f1e6-1f1f8",
  60002. "uc_greedy": "1f1e6-1f1f8",
  60003. "shortnames": [":as:"],
  60004. "category": "flags"
  60005. },
  60006. ":flag_at:": {
  60007. "uc_base": "1f1e6-1f1f9",
  60008. "uc_output": "1f1e6-1f1f9",
  60009. "uc_match": "1f1e6-1f1f9",
  60010. "uc_greedy": "1f1e6-1f1f9",
  60011. "shortnames": [":at:"],
  60012. "category": "flags"
  60013. },
  60014. ":flag_au:": {
  60015. "uc_base": "1f1e6-1f1fa",
  60016. "uc_output": "1f1e6-1f1fa",
  60017. "uc_match": "1f1e6-1f1fa",
  60018. "uc_greedy": "1f1e6-1f1fa",
  60019. "shortnames": [":au:"],
  60020. "category": "flags"
  60021. },
  60022. ":flag_aw:": {
  60023. "uc_base": "1f1e6-1f1fc",
  60024. "uc_output": "1f1e6-1f1fc",
  60025. "uc_match": "1f1e6-1f1fc",
  60026. "uc_greedy": "1f1e6-1f1fc",
  60027. "shortnames": [":aw:"],
  60028. "category": "flags"
  60029. },
  60030. ":flag_ax:": {
  60031. "uc_base": "1f1e6-1f1fd",
  60032. "uc_output": "1f1e6-1f1fd",
  60033. "uc_match": "1f1e6-1f1fd",
  60034. "uc_greedy": "1f1e6-1f1fd",
  60035. "shortnames": [":ax:"],
  60036. "category": "flags"
  60037. },
  60038. ":flag_az:": {
  60039. "uc_base": "1f1e6-1f1ff",
  60040. "uc_output": "1f1e6-1f1ff",
  60041. "uc_match": "1f1e6-1f1ff",
  60042. "uc_greedy": "1f1e6-1f1ff",
  60043. "shortnames": [":az:"],
  60044. "category": "flags"
  60045. },
  60046. ":flag_ba:": {
  60047. "uc_base": "1f1e7-1f1e6",
  60048. "uc_output": "1f1e7-1f1e6",
  60049. "uc_match": "1f1e7-1f1e6",
  60050. "uc_greedy": "1f1e7-1f1e6",
  60051. "shortnames": [":ba:"],
  60052. "category": "flags"
  60053. },
  60054. ":flag_bb:": {
  60055. "uc_base": "1f1e7-1f1e7",
  60056. "uc_output": "1f1e7-1f1e7",
  60057. "uc_match": "1f1e7-1f1e7",
  60058. "uc_greedy": "1f1e7-1f1e7",
  60059. "shortnames": [":bb:"],
  60060. "category": "flags"
  60061. },
  60062. ":flag_bd:": {
  60063. "uc_base": "1f1e7-1f1e9",
  60064. "uc_output": "1f1e7-1f1e9",
  60065. "uc_match": "1f1e7-1f1e9",
  60066. "uc_greedy": "1f1e7-1f1e9",
  60067. "shortnames": [":bd:"],
  60068. "category": "flags"
  60069. },
  60070. ":flag_be:": {
  60071. "uc_base": "1f1e7-1f1ea",
  60072. "uc_output": "1f1e7-1f1ea",
  60073. "uc_match": "1f1e7-1f1ea",
  60074. "uc_greedy": "1f1e7-1f1ea",
  60075. "shortnames": [":be:"],
  60076. "category": "flags"
  60077. },
  60078. ":flag_bf:": {
  60079. "uc_base": "1f1e7-1f1eb",
  60080. "uc_output": "1f1e7-1f1eb",
  60081. "uc_match": "1f1e7-1f1eb",
  60082. "uc_greedy": "1f1e7-1f1eb",
  60083. "shortnames": [":bf:"],
  60084. "category": "flags"
  60085. },
  60086. ":flag_bg:": {
  60087. "uc_base": "1f1e7-1f1ec",
  60088. "uc_output": "1f1e7-1f1ec",
  60089. "uc_match": "1f1e7-1f1ec",
  60090. "uc_greedy": "1f1e7-1f1ec",
  60091. "shortnames": [":bg:"],
  60092. "category": "flags"
  60093. },
  60094. ":flag_bh:": {
  60095. "uc_base": "1f1e7-1f1ed",
  60096. "uc_output": "1f1e7-1f1ed",
  60097. "uc_match": "1f1e7-1f1ed",
  60098. "uc_greedy": "1f1e7-1f1ed",
  60099. "shortnames": [":bh:"],
  60100. "category": "flags"
  60101. },
  60102. ":flag_bi:": {
  60103. "uc_base": "1f1e7-1f1ee",
  60104. "uc_output": "1f1e7-1f1ee",
  60105. "uc_match": "1f1e7-1f1ee",
  60106. "uc_greedy": "1f1e7-1f1ee",
  60107. "shortnames": [":bi:"],
  60108. "category": "flags"
  60109. },
  60110. ":flag_bj:": {
  60111. "uc_base": "1f1e7-1f1ef",
  60112. "uc_output": "1f1e7-1f1ef",
  60113. "uc_match": "1f1e7-1f1ef",
  60114. "uc_greedy": "1f1e7-1f1ef",
  60115. "shortnames": [":bj:"],
  60116. "category": "flags"
  60117. },
  60118. ":flag_bl:": {
  60119. "uc_base": "1f1e7-1f1f1",
  60120. "uc_output": "1f1e7-1f1f1",
  60121. "uc_match": "1f1e7-1f1f1",
  60122. "uc_greedy": "1f1e7-1f1f1",
  60123. "shortnames": [":bl:"],
  60124. "category": "flags"
  60125. },
  60126. ":flag_bm:": {
  60127. "uc_base": "1f1e7-1f1f2",
  60128. "uc_output": "1f1e7-1f1f2",
  60129. "uc_match": "1f1e7-1f1f2",
  60130. "uc_greedy": "1f1e7-1f1f2",
  60131. "shortnames": [":bm:"],
  60132. "category": "flags"
  60133. },
  60134. ":flag_bn:": {
  60135. "uc_base": "1f1e7-1f1f3",
  60136. "uc_output": "1f1e7-1f1f3",
  60137. "uc_match": "1f1e7-1f1f3",
  60138. "uc_greedy": "1f1e7-1f1f3",
  60139. "shortnames": [":bn:"],
  60140. "category": "flags"
  60141. },
  60142. ":flag_bo:": {
  60143. "uc_base": "1f1e7-1f1f4",
  60144. "uc_output": "1f1e7-1f1f4",
  60145. "uc_match": "1f1e7-1f1f4",
  60146. "uc_greedy": "1f1e7-1f1f4",
  60147. "shortnames": [":bo:"],
  60148. "category": "flags"
  60149. },
  60150. ":flag_bq:": {
  60151. "uc_base": "1f1e7-1f1f6",
  60152. "uc_output": "1f1e7-1f1f6",
  60153. "uc_match": "1f1e7-1f1f6",
  60154. "uc_greedy": "1f1e7-1f1f6",
  60155. "shortnames": [":bq:"],
  60156. "category": "flags"
  60157. },
  60158. ":flag_br:": {
  60159. "uc_base": "1f1e7-1f1f7",
  60160. "uc_output": "1f1e7-1f1f7",
  60161. "uc_match": "1f1e7-1f1f7",
  60162. "uc_greedy": "1f1e7-1f1f7",
  60163. "shortnames": [":br:"],
  60164. "category": "flags"
  60165. },
  60166. ":flag_bs:": {
  60167. "uc_base": "1f1e7-1f1f8",
  60168. "uc_output": "1f1e7-1f1f8",
  60169. "uc_match": "1f1e7-1f1f8",
  60170. "uc_greedy": "1f1e7-1f1f8",
  60171. "shortnames": [":bs:"],
  60172. "category": "flags"
  60173. },
  60174. ":flag_bt:": {
  60175. "uc_base": "1f1e7-1f1f9",
  60176. "uc_output": "1f1e7-1f1f9",
  60177. "uc_match": "1f1e7-1f1f9",
  60178. "uc_greedy": "1f1e7-1f1f9",
  60179. "shortnames": [":bt:"],
  60180. "category": "flags"
  60181. },
  60182. ":flag_bv:": {
  60183. "uc_base": "1f1e7-1f1fb",
  60184. "uc_output": "1f1e7-1f1fb",
  60185. "uc_match": "1f1e7-1f1fb",
  60186. "uc_greedy": "1f1e7-1f1fb",
  60187. "shortnames": [":bv:"],
  60188. "category": "flags"
  60189. },
  60190. ":flag_bw:": {
  60191. "uc_base": "1f1e7-1f1fc",
  60192. "uc_output": "1f1e7-1f1fc",
  60193. "uc_match": "1f1e7-1f1fc",
  60194. "uc_greedy": "1f1e7-1f1fc",
  60195. "shortnames": [":bw:"],
  60196. "category": "flags"
  60197. },
  60198. ":flag_by:": {
  60199. "uc_base": "1f1e7-1f1fe",
  60200. "uc_output": "1f1e7-1f1fe",
  60201. "uc_match": "1f1e7-1f1fe",
  60202. "uc_greedy": "1f1e7-1f1fe",
  60203. "shortnames": [":by:"],
  60204. "category": "flags"
  60205. },
  60206. ":flag_bz:": {
  60207. "uc_base": "1f1e7-1f1ff",
  60208. "uc_output": "1f1e7-1f1ff",
  60209. "uc_match": "1f1e7-1f1ff",
  60210. "uc_greedy": "1f1e7-1f1ff",
  60211. "shortnames": [":bz:"],
  60212. "category": "flags"
  60213. },
  60214. ":flag_ca:": {
  60215. "uc_base": "1f1e8-1f1e6",
  60216. "uc_output": "1f1e8-1f1e6",
  60217. "uc_match": "1f1e8-1f1e6",
  60218. "uc_greedy": "1f1e8-1f1e6",
  60219. "shortnames": [":ca:"],
  60220. "category": "flags"
  60221. },
  60222. ":flag_cc:": {
  60223. "uc_base": "1f1e8-1f1e8",
  60224. "uc_output": "1f1e8-1f1e8",
  60225. "uc_match": "1f1e8-1f1e8",
  60226. "uc_greedy": "1f1e8-1f1e8",
  60227. "shortnames": [":cc:"],
  60228. "category": "flags"
  60229. },
  60230. ":flag_cd:": {
  60231. "uc_base": "1f1e8-1f1e9",
  60232. "uc_output": "1f1e8-1f1e9",
  60233. "uc_match": "1f1e8-1f1e9",
  60234. "uc_greedy": "1f1e8-1f1e9",
  60235. "shortnames": [":congo:"],
  60236. "category": "flags"
  60237. },
  60238. ":flag_cf:": {
  60239. "uc_base": "1f1e8-1f1eb",
  60240. "uc_output": "1f1e8-1f1eb",
  60241. "uc_match": "1f1e8-1f1eb",
  60242. "uc_greedy": "1f1e8-1f1eb",
  60243. "shortnames": [":cf:"],
  60244. "category": "flags"
  60245. },
  60246. ":flag_cg:": {
  60247. "uc_base": "1f1e8-1f1ec",
  60248. "uc_output": "1f1e8-1f1ec",
  60249. "uc_match": "1f1e8-1f1ec",
  60250. "uc_greedy": "1f1e8-1f1ec",
  60251. "shortnames": [":cg:"],
  60252. "category": "flags"
  60253. },
  60254. ":flag_ch:": {
  60255. "uc_base": "1f1e8-1f1ed",
  60256. "uc_output": "1f1e8-1f1ed",
  60257. "uc_match": "1f1e8-1f1ed",
  60258. "uc_greedy": "1f1e8-1f1ed",
  60259. "shortnames": [":ch:"],
  60260. "category": "flags"
  60261. },
  60262. ":flag_ci:": {
  60263. "uc_base": "1f1e8-1f1ee",
  60264. "uc_output": "1f1e8-1f1ee",
  60265. "uc_match": "1f1e8-1f1ee",
  60266. "uc_greedy": "1f1e8-1f1ee",
  60267. "shortnames": [":ci:"],
  60268. "category": "flags"
  60269. },
  60270. ":flag_ck:": {
  60271. "uc_base": "1f1e8-1f1f0",
  60272. "uc_output": "1f1e8-1f1f0",
  60273. "uc_match": "1f1e8-1f1f0",
  60274. "uc_greedy": "1f1e8-1f1f0",
  60275. "shortnames": [":ck:"],
  60276. "category": "flags"
  60277. },
  60278. ":flag_cl:": {
  60279. "uc_base": "1f1e8-1f1f1",
  60280. "uc_output": "1f1e8-1f1f1",
  60281. "uc_match": "1f1e8-1f1f1",
  60282. "uc_greedy": "1f1e8-1f1f1",
  60283. "shortnames": [":chile:"],
  60284. "category": "flags"
  60285. },
  60286. ":flag_cm:": {
  60287. "uc_base": "1f1e8-1f1f2",
  60288. "uc_output": "1f1e8-1f1f2",
  60289. "uc_match": "1f1e8-1f1f2",
  60290. "uc_greedy": "1f1e8-1f1f2",
  60291. "shortnames": [":cm:"],
  60292. "category": "flags"
  60293. },
  60294. ":flag_cn:": {
  60295. "uc_base": "1f1e8-1f1f3",
  60296. "uc_output": "1f1e8-1f1f3",
  60297. "uc_match": "1f1e8-1f1f3",
  60298. "uc_greedy": "1f1e8-1f1f3",
  60299. "shortnames": [":cn:"],
  60300. "category": "flags"
  60301. },
  60302. ":flag_co:": {
  60303. "uc_base": "1f1e8-1f1f4",
  60304. "uc_output": "1f1e8-1f1f4",
  60305. "uc_match": "1f1e8-1f1f4",
  60306. "uc_greedy": "1f1e8-1f1f4",
  60307. "shortnames": [":co:"],
  60308. "category": "flags"
  60309. },
  60310. ":flag_cp:": {
  60311. "uc_base": "1f1e8-1f1f5",
  60312. "uc_output": "1f1e8-1f1f5",
  60313. "uc_match": "1f1e8-1f1f5",
  60314. "uc_greedy": "1f1e8-1f1f5",
  60315. "shortnames": [":cp:"],
  60316. "category": "flags"
  60317. },
  60318. ":flag_cr:": {
  60319. "uc_base": "1f1e8-1f1f7",
  60320. "uc_output": "1f1e8-1f1f7",
  60321. "uc_match": "1f1e8-1f1f7",
  60322. "uc_greedy": "1f1e8-1f1f7",
  60323. "shortnames": [":cr:"],
  60324. "category": "flags"
  60325. },
  60326. ":flag_cu:": {
  60327. "uc_base": "1f1e8-1f1fa",
  60328. "uc_output": "1f1e8-1f1fa",
  60329. "uc_match": "1f1e8-1f1fa",
  60330. "uc_greedy": "1f1e8-1f1fa",
  60331. "shortnames": [":cu:"],
  60332. "category": "flags"
  60333. },
  60334. ":flag_cv:": {
  60335. "uc_base": "1f1e8-1f1fb",
  60336. "uc_output": "1f1e8-1f1fb",
  60337. "uc_match": "1f1e8-1f1fb",
  60338. "uc_greedy": "1f1e8-1f1fb",
  60339. "shortnames": [":cv:"],
  60340. "category": "flags"
  60341. },
  60342. ":flag_cw:": {
  60343. "uc_base": "1f1e8-1f1fc",
  60344. "uc_output": "1f1e8-1f1fc",
  60345. "uc_match": "1f1e8-1f1fc",
  60346. "uc_greedy": "1f1e8-1f1fc",
  60347. "shortnames": [":cw:"],
  60348. "category": "flags"
  60349. },
  60350. ":flag_cx:": {
  60351. "uc_base": "1f1e8-1f1fd",
  60352. "uc_output": "1f1e8-1f1fd",
  60353. "uc_match": "1f1e8-1f1fd",
  60354. "uc_greedy": "1f1e8-1f1fd",
  60355. "shortnames": [":cx:"],
  60356. "category": "flags"
  60357. },
  60358. ":flag_cy:": {
  60359. "uc_base": "1f1e8-1f1fe",
  60360. "uc_output": "1f1e8-1f1fe",
  60361. "uc_match": "1f1e8-1f1fe",
  60362. "uc_greedy": "1f1e8-1f1fe",
  60363. "shortnames": [":cy:"],
  60364. "category": "flags"
  60365. },
  60366. ":flag_cz:": {
  60367. "uc_base": "1f1e8-1f1ff",
  60368. "uc_output": "1f1e8-1f1ff",
  60369. "uc_match": "1f1e8-1f1ff",
  60370. "uc_greedy": "1f1e8-1f1ff",
  60371. "shortnames": [":cz:"],
  60372. "category": "flags"
  60373. },
  60374. ":flag_de:": {
  60375. "uc_base": "1f1e9-1f1ea",
  60376. "uc_output": "1f1e9-1f1ea",
  60377. "uc_match": "1f1e9-1f1ea",
  60378. "uc_greedy": "1f1e9-1f1ea",
  60379. "shortnames": [":de:"],
  60380. "category": "flags"
  60381. },
  60382. ":flag_dg:": {
  60383. "uc_base": "1f1e9-1f1ec",
  60384. "uc_output": "1f1e9-1f1ec",
  60385. "uc_match": "1f1e9-1f1ec",
  60386. "uc_greedy": "1f1e9-1f1ec",
  60387. "shortnames": [":dg:"],
  60388. "category": "flags"
  60389. },
  60390. ":flag_dj:": {
  60391. "uc_base": "1f1e9-1f1ef",
  60392. "uc_output": "1f1e9-1f1ef",
  60393. "uc_match": "1f1e9-1f1ef",
  60394. "uc_greedy": "1f1e9-1f1ef",
  60395. "shortnames": [":dj:"],
  60396. "category": "flags"
  60397. },
  60398. ":flag_dk:": {
  60399. "uc_base": "1f1e9-1f1f0",
  60400. "uc_output": "1f1e9-1f1f0",
  60401. "uc_match": "1f1e9-1f1f0",
  60402. "uc_greedy": "1f1e9-1f1f0",
  60403. "shortnames": [":dk:"],
  60404. "category": "flags"
  60405. },
  60406. ":flag_dm:": {
  60407. "uc_base": "1f1e9-1f1f2",
  60408. "uc_output": "1f1e9-1f1f2",
  60409. "uc_match": "1f1e9-1f1f2",
  60410. "uc_greedy": "1f1e9-1f1f2",
  60411. "shortnames": [":dm:"],
  60412. "category": "flags"
  60413. },
  60414. ":flag_do:": {
  60415. "uc_base": "1f1e9-1f1f4",
  60416. "uc_output": "1f1e9-1f1f4",
  60417. "uc_match": "1f1e9-1f1f4",
  60418. "uc_greedy": "1f1e9-1f1f4",
  60419. "shortnames": [":do:"],
  60420. "category": "flags"
  60421. },
  60422. ":flag_dz:": {
  60423. "uc_base": "1f1e9-1f1ff",
  60424. "uc_output": "1f1e9-1f1ff",
  60425. "uc_match": "1f1e9-1f1ff",
  60426. "uc_greedy": "1f1e9-1f1ff",
  60427. "shortnames": [":dz:"],
  60428. "category": "flags"
  60429. },
  60430. ":flag_ea:": {
  60431. "uc_base": "1f1ea-1f1e6",
  60432. "uc_output": "1f1ea-1f1e6",
  60433. "uc_match": "1f1ea-1f1e6",
  60434. "uc_greedy": "1f1ea-1f1e6",
  60435. "shortnames": [":ea:"],
  60436. "category": "flags"
  60437. },
  60438. ":flag_ec:": {
  60439. "uc_base": "1f1ea-1f1e8",
  60440. "uc_output": "1f1ea-1f1e8",
  60441. "uc_match": "1f1ea-1f1e8",
  60442. "uc_greedy": "1f1ea-1f1e8",
  60443. "shortnames": [":ec:"],
  60444. "category": "flags"
  60445. },
  60446. ":flag_ee:": {
  60447. "uc_base": "1f1ea-1f1ea",
  60448. "uc_output": "1f1ea-1f1ea",
  60449. "uc_match": "1f1ea-1f1ea",
  60450. "uc_greedy": "1f1ea-1f1ea",
  60451. "shortnames": [":ee:"],
  60452. "category": "flags"
  60453. },
  60454. ":flag_eg:": {
  60455. "uc_base": "1f1ea-1f1ec",
  60456. "uc_output": "1f1ea-1f1ec",
  60457. "uc_match": "1f1ea-1f1ec",
  60458. "uc_greedy": "1f1ea-1f1ec",
  60459. "shortnames": [":eg:"],
  60460. "category": "flags"
  60461. },
  60462. ":flag_eh:": {
  60463. "uc_base": "1f1ea-1f1ed",
  60464. "uc_output": "1f1ea-1f1ed",
  60465. "uc_match": "1f1ea-1f1ed",
  60466. "uc_greedy": "1f1ea-1f1ed",
  60467. "shortnames": [":eh:"],
  60468. "category": "flags"
  60469. },
  60470. ":flag_er:": {
  60471. "uc_base": "1f1ea-1f1f7",
  60472. "uc_output": "1f1ea-1f1f7",
  60473. "uc_match": "1f1ea-1f1f7",
  60474. "uc_greedy": "1f1ea-1f1f7",
  60475. "shortnames": [":er:"],
  60476. "category": "flags"
  60477. },
  60478. ":flag_es:": {
  60479. "uc_base": "1f1ea-1f1f8",
  60480. "uc_output": "1f1ea-1f1f8",
  60481. "uc_match": "1f1ea-1f1f8",
  60482. "uc_greedy": "1f1ea-1f1f8",
  60483. "shortnames": [":es:"],
  60484. "category": "flags"
  60485. },
  60486. ":flag_et:": {
  60487. "uc_base": "1f1ea-1f1f9",
  60488. "uc_output": "1f1ea-1f1f9",
  60489. "uc_match": "1f1ea-1f1f9",
  60490. "uc_greedy": "1f1ea-1f1f9",
  60491. "shortnames": [":et:"],
  60492. "category": "flags"
  60493. },
  60494. ":flag_eu:": {
  60495. "uc_base": "1f1ea-1f1fa",
  60496. "uc_output": "1f1ea-1f1fa",
  60497. "uc_match": "1f1ea-1f1fa",
  60498. "uc_greedy": "1f1ea-1f1fa",
  60499. "shortnames": [":eu:"],
  60500. "category": "flags"
  60501. },
  60502. ":flag_fi:": {
  60503. "uc_base": "1f1eb-1f1ee",
  60504. "uc_output": "1f1eb-1f1ee",
  60505. "uc_match": "1f1eb-1f1ee",
  60506. "uc_greedy": "1f1eb-1f1ee",
  60507. "shortnames": [":fi:"],
  60508. "category": "flags"
  60509. },
  60510. ":flag_fj:": {
  60511. "uc_base": "1f1eb-1f1ef",
  60512. "uc_output": "1f1eb-1f1ef",
  60513. "uc_match": "1f1eb-1f1ef",
  60514. "uc_greedy": "1f1eb-1f1ef",
  60515. "shortnames": [":fj:"],
  60516. "category": "flags"
  60517. },
  60518. ":flag_fk:": {
  60519. "uc_base": "1f1eb-1f1f0",
  60520. "uc_output": "1f1eb-1f1f0",
  60521. "uc_match": "1f1eb-1f1f0",
  60522. "uc_greedy": "1f1eb-1f1f0",
  60523. "shortnames": [":fk:"],
  60524. "category": "flags"
  60525. },
  60526. ":flag_fm:": {
  60527. "uc_base": "1f1eb-1f1f2",
  60528. "uc_output": "1f1eb-1f1f2",
  60529. "uc_match": "1f1eb-1f1f2",
  60530. "uc_greedy": "1f1eb-1f1f2",
  60531. "shortnames": [":fm:"],
  60532. "category": "flags"
  60533. },
  60534. ":flag_fo:": {
  60535. "uc_base": "1f1eb-1f1f4",
  60536. "uc_output": "1f1eb-1f1f4",
  60537. "uc_match": "1f1eb-1f1f4",
  60538. "uc_greedy": "1f1eb-1f1f4",
  60539. "shortnames": [":fo:"],
  60540. "category": "flags"
  60541. },
  60542. ":flag_fr:": {
  60543. "uc_base": "1f1eb-1f1f7",
  60544. "uc_output": "1f1eb-1f1f7",
  60545. "uc_match": "1f1eb-1f1f7",
  60546. "uc_greedy": "1f1eb-1f1f7",
  60547. "shortnames": [":fr:"],
  60548. "category": "flags"
  60549. },
  60550. ":flag_ga:": {
  60551. "uc_base": "1f1ec-1f1e6",
  60552. "uc_output": "1f1ec-1f1e6",
  60553. "uc_match": "1f1ec-1f1e6",
  60554. "uc_greedy": "1f1ec-1f1e6",
  60555. "shortnames": [":ga:"],
  60556. "category": "flags"
  60557. },
  60558. ":flag_gb:": {
  60559. "uc_base": "1f1ec-1f1e7",
  60560. "uc_output": "1f1ec-1f1e7",
  60561. "uc_match": "1f1ec-1f1e7",
  60562. "uc_greedy": "1f1ec-1f1e7",
  60563. "shortnames": [":gb:"],
  60564. "category": "flags"
  60565. },
  60566. ":flag_gd:": {
  60567. "uc_base": "1f1ec-1f1e9",
  60568. "uc_output": "1f1ec-1f1e9",
  60569. "uc_match": "1f1ec-1f1e9",
  60570. "uc_greedy": "1f1ec-1f1e9",
  60571. "shortnames": [":gd:"],
  60572. "category": "flags"
  60573. },
  60574. ":flag_ge:": {
  60575. "uc_base": "1f1ec-1f1ea",
  60576. "uc_output": "1f1ec-1f1ea",
  60577. "uc_match": "1f1ec-1f1ea",
  60578. "uc_greedy": "1f1ec-1f1ea",
  60579. "shortnames": [":ge:"],
  60580. "category": "flags"
  60581. },
  60582. ":flag_gf:": {
  60583. "uc_base": "1f1ec-1f1eb",
  60584. "uc_output": "1f1ec-1f1eb",
  60585. "uc_match": "1f1ec-1f1eb",
  60586. "uc_greedy": "1f1ec-1f1eb",
  60587. "shortnames": [":gf:"],
  60588. "category": "flags"
  60589. },
  60590. ":flag_gg:": {
  60591. "uc_base": "1f1ec-1f1ec",
  60592. "uc_output": "1f1ec-1f1ec",
  60593. "uc_match": "1f1ec-1f1ec",
  60594. "uc_greedy": "1f1ec-1f1ec",
  60595. "shortnames": [":gg:"],
  60596. "category": "flags"
  60597. },
  60598. ":flag_gh:": {
  60599. "uc_base": "1f1ec-1f1ed",
  60600. "uc_output": "1f1ec-1f1ed",
  60601. "uc_match": "1f1ec-1f1ed",
  60602. "uc_greedy": "1f1ec-1f1ed",
  60603. "shortnames": [":gh:"],
  60604. "category": "flags"
  60605. },
  60606. ":flag_gi:": {
  60607. "uc_base": "1f1ec-1f1ee",
  60608. "uc_output": "1f1ec-1f1ee",
  60609. "uc_match": "1f1ec-1f1ee",
  60610. "uc_greedy": "1f1ec-1f1ee",
  60611. "shortnames": [":gi:"],
  60612. "category": "flags"
  60613. },
  60614. ":flag_gl:": {
  60615. "uc_base": "1f1ec-1f1f1",
  60616. "uc_output": "1f1ec-1f1f1",
  60617. "uc_match": "1f1ec-1f1f1",
  60618. "uc_greedy": "1f1ec-1f1f1",
  60619. "shortnames": [":gl:"],
  60620. "category": "flags"
  60621. },
  60622. ":flag_gm:": {
  60623. "uc_base": "1f1ec-1f1f2",
  60624. "uc_output": "1f1ec-1f1f2",
  60625. "uc_match": "1f1ec-1f1f2",
  60626. "uc_greedy": "1f1ec-1f1f2",
  60627. "shortnames": [":gm:"],
  60628. "category": "flags"
  60629. },
  60630. ":flag_gn:": {
  60631. "uc_base": "1f1ec-1f1f3",
  60632. "uc_output": "1f1ec-1f1f3",
  60633. "uc_match": "1f1ec-1f1f3",
  60634. "uc_greedy": "1f1ec-1f1f3",
  60635. "shortnames": [":gn:"],
  60636. "category": "flags"
  60637. },
  60638. ":flag_gp:": {
  60639. "uc_base": "1f1ec-1f1f5",
  60640. "uc_output": "1f1ec-1f1f5",
  60641. "uc_match": "1f1ec-1f1f5",
  60642. "uc_greedy": "1f1ec-1f1f5",
  60643. "shortnames": [":gp:"],
  60644. "category": "flags"
  60645. },
  60646. ":flag_gq:": {
  60647. "uc_base": "1f1ec-1f1f6",
  60648. "uc_output": "1f1ec-1f1f6",
  60649. "uc_match": "1f1ec-1f1f6",
  60650. "uc_greedy": "1f1ec-1f1f6",
  60651. "shortnames": [":gq:"],
  60652. "category": "flags"
  60653. },
  60654. ":flag_gr:": {
  60655. "uc_base": "1f1ec-1f1f7",
  60656. "uc_output": "1f1ec-1f1f7",
  60657. "uc_match": "1f1ec-1f1f7",
  60658. "uc_greedy": "1f1ec-1f1f7",
  60659. "shortnames": [":gr:"],
  60660. "category": "flags"
  60661. },
  60662. ":flag_gs:": {
  60663. "uc_base": "1f1ec-1f1f8",
  60664. "uc_output": "1f1ec-1f1f8",
  60665. "uc_match": "1f1ec-1f1f8",
  60666. "uc_greedy": "1f1ec-1f1f8",
  60667. "shortnames": [":gs:"],
  60668. "category": "flags"
  60669. },
  60670. ":flag_gt:": {
  60671. "uc_base": "1f1ec-1f1f9",
  60672. "uc_output": "1f1ec-1f1f9",
  60673. "uc_match": "1f1ec-1f1f9",
  60674. "uc_greedy": "1f1ec-1f1f9",
  60675. "shortnames": [":gt:"],
  60676. "category": "flags"
  60677. },
  60678. ":flag_gu:": {
  60679. "uc_base": "1f1ec-1f1fa",
  60680. "uc_output": "1f1ec-1f1fa",
  60681. "uc_match": "1f1ec-1f1fa",
  60682. "uc_greedy": "1f1ec-1f1fa",
  60683. "shortnames": [":gu:"],
  60684. "category": "flags"
  60685. },
  60686. ":flag_gw:": {
  60687. "uc_base": "1f1ec-1f1fc",
  60688. "uc_output": "1f1ec-1f1fc",
  60689. "uc_match": "1f1ec-1f1fc",
  60690. "uc_greedy": "1f1ec-1f1fc",
  60691. "shortnames": [":gw:"],
  60692. "category": "flags"
  60693. },
  60694. ":flag_gy:": {
  60695. "uc_base": "1f1ec-1f1fe",
  60696. "uc_output": "1f1ec-1f1fe",
  60697. "uc_match": "1f1ec-1f1fe",
  60698. "uc_greedy": "1f1ec-1f1fe",
  60699. "shortnames": [":gy:"],
  60700. "category": "flags"
  60701. },
  60702. ":flag_hk:": {
  60703. "uc_base": "1f1ed-1f1f0",
  60704. "uc_output": "1f1ed-1f1f0",
  60705. "uc_match": "1f1ed-1f1f0",
  60706. "uc_greedy": "1f1ed-1f1f0",
  60707. "shortnames": [":hk:"],
  60708. "category": "flags"
  60709. },
  60710. ":flag_hm:": {
  60711. "uc_base": "1f1ed-1f1f2",
  60712. "uc_output": "1f1ed-1f1f2",
  60713. "uc_match": "1f1ed-1f1f2",
  60714. "uc_greedy": "1f1ed-1f1f2",
  60715. "shortnames": [":hm:"],
  60716. "category": "flags"
  60717. },
  60718. ":flag_hn:": {
  60719. "uc_base": "1f1ed-1f1f3",
  60720. "uc_output": "1f1ed-1f1f3",
  60721. "uc_match": "1f1ed-1f1f3",
  60722. "uc_greedy": "1f1ed-1f1f3",
  60723. "shortnames": [":hn:"],
  60724. "category": "flags"
  60725. },
  60726. ":flag_hr:": {
  60727. "uc_base": "1f1ed-1f1f7",
  60728. "uc_output": "1f1ed-1f1f7",
  60729. "uc_match": "1f1ed-1f1f7",
  60730. "uc_greedy": "1f1ed-1f1f7",
  60731. "shortnames": [":hr:"],
  60732. "category": "flags"
  60733. },
  60734. ":flag_ht:": {
  60735. "uc_base": "1f1ed-1f1f9",
  60736. "uc_output": "1f1ed-1f1f9",
  60737. "uc_match": "1f1ed-1f1f9",
  60738. "uc_greedy": "1f1ed-1f1f9",
  60739. "shortnames": [":ht:"],
  60740. "category": "flags"
  60741. },
  60742. ":flag_hu:": {
  60743. "uc_base": "1f1ed-1f1fa",
  60744. "uc_output": "1f1ed-1f1fa",
  60745. "uc_match": "1f1ed-1f1fa",
  60746. "uc_greedy": "1f1ed-1f1fa",
  60747. "shortnames": [":hu:"],
  60748. "category": "flags"
  60749. },
  60750. ":flag_ic:": {
  60751. "uc_base": "1f1ee-1f1e8",
  60752. "uc_output": "1f1ee-1f1e8",
  60753. "uc_match": "1f1ee-1f1e8",
  60754. "uc_greedy": "1f1ee-1f1e8",
  60755. "shortnames": [":ic:"],
  60756. "category": "flags"
  60757. },
  60758. ":flag_id:": {
  60759. "uc_base": "1f1ee-1f1e9",
  60760. "uc_output": "1f1ee-1f1e9",
  60761. "uc_match": "1f1ee-1f1e9",
  60762. "uc_greedy": "1f1ee-1f1e9",
  60763. "shortnames": [":indonesia:"],
  60764. "category": "flags"
  60765. },
  60766. ":flag_ie:": {
  60767. "uc_base": "1f1ee-1f1ea",
  60768. "uc_output": "1f1ee-1f1ea",
  60769. "uc_match": "1f1ee-1f1ea",
  60770. "uc_greedy": "1f1ee-1f1ea",
  60771. "shortnames": [":ie:"],
  60772. "category": "flags"
  60773. },
  60774. ":flag_il:": {
  60775. "uc_base": "1f1ee-1f1f1",
  60776. "uc_output": "1f1ee-1f1f1",
  60777. "uc_match": "1f1ee-1f1f1",
  60778. "uc_greedy": "1f1ee-1f1f1",
  60779. "shortnames": [":il:"],
  60780. "category": "flags"
  60781. },
  60782. ":flag_im:": {
  60783. "uc_base": "1f1ee-1f1f2",
  60784. "uc_output": "1f1ee-1f1f2",
  60785. "uc_match": "1f1ee-1f1f2",
  60786. "uc_greedy": "1f1ee-1f1f2",
  60787. "shortnames": [":im:"],
  60788. "category": "flags"
  60789. },
  60790. ":flag_in:": {
  60791. "uc_base": "1f1ee-1f1f3",
  60792. "uc_output": "1f1ee-1f1f3",
  60793. "uc_match": "1f1ee-1f1f3",
  60794. "uc_greedy": "1f1ee-1f1f3",
  60795. "shortnames": [":in:"],
  60796. "category": "flags"
  60797. },
  60798. ":flag_io:": {
  60799. "uc_base": "1f1ee-1f1f4",
  60800. "uc_output": "1f1ee-1f1f4",
  60801. "uc_match": "1f1ee-1f1f4",
  60802. "uc_greedy": "1f1ee-1f1f4",
  60803. "shortnames": [":io:"],
  60804. "category": "flags"
  60805. },
  60806. ":flag_iq:": {
  60807. "uc_base": "1f1ee-1f1f6",
  60808. "uc_output": "1f1ee-1f1f6",
  60809. "uc_match": "1f1ee-1f1f6",
  60810. "uc_greedy": "1f1ee-1f1f6",
  60811. "shortnames": [":iq:"],
  60812. "category": "flags"
  60813. },
  60814. ":flag_ir:": {
  60815. "uc_base": "1f1ee-1f1f7",
  60816. "uc_output": "1f1ee-1f1f7",
  60817. "uc_match": "1f1ee-1f1f7",
  60818. "uc_greedy": "1f1ee-1f1f7",
  60819. "shortnames": [":ir:"],
  60820. "category": "flags"
  60821. },
  60822. ":flag_is:": {
  60823. "uc_base": "1f1ee-1f1f8",
  60824. "uc_output": "1f1ee-1f1f8",
  60825. "uc_match": "1f1ee-1f1f8",
  60826. "uc_greedy": "1f1ee-1f1f8",
  60827. "shortnames": [":is:"],
  60828. "category": "flags"
  60829. },
  60830. ":flag_it:": {
  60831. "uc_base": "1f1ee-1f1f9",
  60832. "uc_output": "1f1ee-1f1f9",
  60833. "uc_match": "1f1ee-1f1f9",
  60834. "uc_greedy": "1f1ee-1f1f9",
  60835. "shortnames": [":it:"],
  60836. "category": "flags"
  60837. },
  60838. ":flag_je:": {
  60839. "uc_base": "1f1ef-1f1ea",
  60840. "uc_output": "1f1ef-1f1ea",
  60841. "uc_match": "1f1ef-1f1ea",
  60842. "uc_greedy": "1f1ef-1f1ea",
  60843. "shortnames": [":je:"],
  60844. "category": "flags"
  60845. },
  60846. ":flag_jm:": {
  60847. "uc_base": "1f1ef-1f1f2",
  60848. "uc_output": "1f1ef-1f1f2",
  60849. "uc_match": "1f1ef-1f1f2",
  60850. "uc_greedy": "1f1ef-1f1f2",
  60851. "shortnames": [":jm:"],
  60852. "category": "flags"
  60853. },
  60854. ":flag_jo:": {
  60855. "uc_base": "1f1ef-1f1f4",
  60856. "uc_output": "1f1ef-1f1f4",
  60857. "uc_match": "1f1ef-1f1f4",
  60858. "uc_greedy": "1f1ef-1f1f4",
  60859. "shortnames": [":jo:"],
  60860. "category": "flags"
  60861. },
  60862. ":flag_jp:": {
  60863. "uc_base": "1f1ef-1f1f5",
  60864. "uc_output": "1f1ef-1f1f5",
  60865. "uc_match": "1f1ef-1f1f5",
  60866. "uc_greedy": "1f1ef-1f1f5",
  60867. "shortnames": [":jp:"],
  60868. "category": "flags"
  60869. },
  60870. ":flag_ke:": {
  60871. "uc_base": "1f1f0-1f1ea",
  60872. "uc_output": "1f1f0-1f1ea",
  60873. "uc_match": "1f1f0-1f1ea",
  60874. "uc_greedy": "1f1f0-1f1ea",
  60875. "shortnames": [":ke:"],
  60876. "category": "flags"
  60877. },
  60878. ":flag_kg:": {
  60879. "uc_base": "1f1f0-1f1ec",
  60880. "uc_output": "1f1f0-1f1ec",
  60881. "uc_match": "1f1f0-1f1ec",
  60882. "uc_greedy": "1f1f0-1f1ec",
  60883. "shortnames": [":kg:"],
  60884. "category": "flags"
  60885. },
  60886. ":flag_kh:": {
  60887. "uc_base": "1f1f0-1f1ed",
  60888. "uc_output": "1f1f0-1f1ed",
  60889. "uc_match": "1f1f0-1f1ed",
  60890. "uc_greedy": "1f1f0-1f1ed",
  60891. "shortnames": [":kh:"],
  60892. "category": "flags"
  60893. },
  60894. ":flag_ki:": {
  60895. "uc_base": "1f1f0-1f1ee",
  60896. "uc_output": "1f1f0-1f1ee",
  60897. "uc_match": "1f1f0-1f1ee",
  60898. "uc_greedy": "1f1f0-1f1ee",
  60899. "shortnames": [":ki:"],
  60900. "category": "flags"
  60901. },
  60902. ":flag_km:": {
  60903. "uc_base": "1f1f0-1f1f2",
  60904. "uc_output": "1f1f0-1f1f2",
  60905. "uc_match": "1f1f0-1f1f2",
  60906. "uc_greedy": "1f1f0-1f1f2",
  60907. "shortnames": [":km:"],
  60908. "category": "flags"
  60909. },
  60910. ":flag_kn:": {
  60911. "uc_base": "1f1f0-1f1f3",
  60912. "uc_output": "1f1f0-1f1f3",
  60913. "uc_match": "1f1f0-1f1f3",
  60914. "uc_greedy": "1f1f0-1f1f3",
  60915. "shortnames": [":kn:"],
  60916. "category": "flags"
  60917. },
  60918. ":flag_kp:": {
  60919. "uc_base": "1f1f0-1f1f5",
  60920. "uc_output": "1f1f0-1f1f5",
  60921. "uc_match": "1f1f0-1f1f5",
  60922. "uc_greedy": "1f1f0-1f1f5",
  60923. "shortnames": [":kp:"],
  60924. "category": "flags"
  60925. },
  60926. ":flag_kr:": {
  60927. "uc_base": "1f1f0-1f1f7",
  60928. "uc_output": "1f1f0-1f1f7",
  60929. "uc_match": "1f1f0-1f1f7",
  60930. "uc_greedy": "1f1f0-1f1f7",
  60931. "shortnames": [":kr:"],
  60932. "category": "flags"
  60933. },
  60934. ":flag_kw:": {
  60935. "uc_base": "1f1f0-1f1fc",
  60936. "uc_output": "1f1f0-1f1fc",
  60937. "uc_match": "1f1f0-1f1fc",
  60938. "uc_greedy": "1f1f0-1f1fc",
  60939. "shortnames": [":kw:"],
  60940. "category": "flags"
  60941. },
  60942. ":flag_ky:": {
  60943. "uc_base": "1f1f0-1f1fe",
  60944. "uc_output": "1f1f0-1f1fe",
  60945. "uc_match": "1f1f0-1f1fe",
  60946. "uc_greedy": "1f1f0-1f1fe",
  60947. "shortnames": [":ky:"],
  60948. "category": "flags"
  60949. },
  60950. ":flag_kz:": {
  60951. "uc_base": "1f1f0-1f1ff",
  60952. "uc_output": "1f1f0-1f1ff",
  60953. "uc_match": "1f1f0-1f1ff",
  60954. "uc_greedy": "1f1f0-1f1ff",
  60955. "shortnames": [":kz:"],
  60956. "category": "flags"
  60957. },
  60958. ":flag_la:": {
  60959. "uc_base": "1f1f1-1f1e6",
  60960. "uc_output": "1f1f1-1f1e6",
  60961. "uc_match": "1f1f1-1f1e6",
  60962. "uc_greedy": "1f1f1-1f1e6",
  60963. "shortnames": [":la:"],
  60964. "category": "flags"
  60965. },
  60966. ":flag_lb:": {
  60967. "uc_base": "1f1f1-1f1e7",
  60968. "uc_output": "1f1f1-1f1e7",
  60969. "uc_match": "1f1f1-1f1e7",
  60970. "uc_greedy": "1f1f1-1f1e7",
  60971. "shortnames": [":lb:"],
  60972. "category": "flags"
  60973. },
  60974. ":flag_lc:": {
  60975. "uc_base": "1f1f1-1f1e8",
  60976. "uc_output": "1f1f1-1f1e8",
  60977. "uc_match": "1f1f1-1f1e8",
  60978. "uc_greedy": "1f1f1-1f1e8",
  60979. "shortnames": [":lc:"],
  60980. "category": "flags"
  60981. },
  60982. ":flag_li:": {
  60983. "uc_base": "1f1f1-1f1ee",
  60984. "uc_output": "1f1f1-1f1ee",
  60985. "uc_match": "1f1f1-1f1ee",
  60986. "uc_greedy": "1f1f1-1f1ee",
  60987. "shortnames": [":li:"],
  60988. "category": "flags"
  60989. },
  60990. ":flag_lk:": {
  60991. "uc_base": "1f1f1-1f1f0",
  60992. "uc_output": "1f1f1-1f1f0",
  60993. "uc_match": "1f1f1-1f1f0",
  60994. "uc_greedy": "1f1f1-1f1f0",
  60995. "shortnames": [":lk:"],
  60996. "category": "flags"
  60997. },
  60998. ":flag_lr:": {
  60999. "uc_base": "1f1f1-1f1f7",
  61000. "uc_output": "1f1f1-1f1f7",
  61001. "uc_match": "1f1f1-1f1f7",
  61002. "uc_greedy": "1f1f1-1f1f7",
  61003. "shortnames": [":lr:"],
  61004. "category": "flags"
  61005. },
  61006. ":flag_ls:": {
  61007. "uc_base": "1f1f1-1f1f8",
  61008. "uc_output": "1f1f1-1f1f8",
  61009. "uc_match": "1f1f1-1f1f8",
  61010. "uc_greedy": "1f1f1-1f1f8",
  61011. "shortnames": [":ls:"],
  61012. "category": "flags"
  61013. },
  61014. ":flag_lt:": {
  61015. "uc_base": "1f1f1-1f1f9",
  61016. "uc_output": "1f1f1-1f1f9",
  61017. "uc_match": "1f1f1-1f1f9",
  61018. "uc_greedy": "1f1f1-1f1f9",
  61019. "shortnames": [":lt:"],
  61020. "category": "flags"
  61021. },
  61022. ":flag_lu:": {
  61023. "uc_base": "1f1f1-1f1fa",
  61024. "uc_output": "1f1f1-1f1fa",
  61025. "uc_match": "1f1f1-1f1fa",
  61026. "uc_greedy": "1f1f1-1f1fa",
  61027. "shortnames": [":lu:"],
  61028. "category": "flags"
  61029. },
  61030. ":flag_lv:": {
  61031. "uc_base": "1f1f1-1f1fb",
  61032. "uc_output": "1f1f1-1f1fb",
  61033. "uc_match": "1f1f1-1f1fb",
  61034. "uc_greedy": "1f1f1-1f1fb",
  61035. "shortnames": [":lv:"],
  61036. "category": "flags"
  61037. },
  61038. ":flag_ly:": {
  61039. "uc_base": "1f1f1-1f1fe",
  61040. "uc_output": "1f1f1-1f1fe",
  61041. "uc_match": "1f1f1-1f1fe",
  61042. "uc_greedy": "1f1f1-1f1fe",
  61043. "shortnames": [":ly:"],
  61044. "category": "flags"
  61045. },
  61046. ":flag_ma:": {
  61047. "uc_base": "1f1f2-1f1e6",
  61048. "uc_output": "1f1f2-1f1e6",
  61049. "uc_match": "1f1f2-1f1e6",
  61050. "uc_greedy": "1f1f2-1f1e6",
  61051. "shortnames": [":ma:"],
  61052. "category": "flags"
  61053. },
  61054. ":flag_mc:": {
  61055. "uc_base": "1f1f2-1f1e8",
  61056. "uc_output": "1f1f2-1f1e8",
  61057. "uc_match": "1f1f2-1f1e8",
  61058. "uc_greedy": "1f1f2-1f1e8",
  61059. "shortnames": [":mc:"],
  61060. "category": "flags"
  61061. },
  61062. ":flag_md:": {
  61063. "uc_base": "1f1f2-1f1e9",
  61064. "uc_output": "1f1f2-1f1e9",
  61065. "uc_match": "1f1f2-1f1e9",
  61066. "uc_greedy": "1f1f2-1f1e9",
  61067. "shortnames": [":md:"],
  61068. "category": "flags"
  61069. },
  61070. ":flag_me:": {
  61071. "uc_base": "1f1f2-1f1ea",
  61072. "uc_output": "1f1f2-1f1ea",
  61073. "uc_match": "1f1f2-1f1ea",
  61074. "uc_greedy": "1f1f2-1f1ea",
  61075. "shortnames": [":me:"],
  61076. "category": "flags"
  61077. },
  61078. ":flag_mf:": {
  61079. "uc_base": "1f1f2-1f1eb",
  61080. "uc_output": "1f1f2-1f1eb",
  61081. "uc_match": "1f1f2-1f1eb",
  61082. "uc_greedy": "1f1f2-1f1eb",
  61083. "shortnames": [":mf:"],
  61084. "category": "flags"
  61085. },
  61086. ":flag_mg:": {
  61087. "uc_base": "1f1f2-1f1ec",
  61088. "uc_output": "1f1f2-1f1ec",
  61089. "uc_match": "1f1f2-1f1ec",
  61090. "uc_greedy": "1f1f2-1f1ec",
  61091. "shortnames": [":mg:"],
  61092. "category": "flags"
  61093. },
  61094. ":flag_mh:": {
  61095. "uc_base": "1f1f2-1f1ed",
  61096. "uc_output": "1f1f2-1f1ed",
  61097. "uc_match": "1f1f2-1f1ed",
  61098. "uc_greedy": "1f1f2-1f1ed",
  61099. "shortnames": [":mh:"],
  61100. "category": "flags"
  61101. },
  61102. ":flag_mk:": {
  61103. "uc_base": "1f1f2-1f1f0",
  61104. "uc_output": "1f1f2-1f1f0",
  61105. "uc_match": "1f1f2-1f1f0",
  61106. "uc_greedy": "1f1f2-1f1f0",
  61107. "shortnames": [":mk:"],
  61108. "category": "flags"
  61109. },
  61110. ":flag_ml:": {
  61111. "uc_base": "1f1f2-1f1f1",
  61112. "uc_output": "1f1f2-1f1f1",
  61113. "uc_match": "1f1f2-1f1f1",
  61114. "uc_greedy": "1f1f2-1f1f1",
  61115. "shortnames": [":ml:"],
  61116. "category": "flags"
  61117. },
  61118. ":flag_mm:": {
  61119. "uc_base": "1f1f2-1f1f2",
  61120. "uc_output": "1f1f2-1f1f2",
  61121. "uc_match": "1f1f2-1f1f2",
  61122. "uc_greedy": "1f1f2-1f1f2",
  61123. "shortnames": [":mm:"],
  61124. "category": "flags"
  61125. },
  61126. ":flag_mn:": {
  61127. "uc_base": "1f1f2-1f1f3",
  61128. "uc_output": "1f1f2-1f1f3",
  61129. "uc_match": "1f1f2-1f1f3",
  61130. "uc_greedy": "1f1f2-1f1f3",
  61131. "shortnames": [":mn:"],
  61132. "category": "flags"
  61133. },
  61134. ":flag_mo:": {
  61135. "uc_base": "1f1f2-1f1f4",
  61136. "uc_output": "1f1f2-1f1f4",
  61137. "uc_match": "1f1f2-1f1f4",
  61138. "uc_greedy": "1f1f2-1f1f4",
  61139. "shortnames": [":mo:"],
  61140. "category": "flags"
  61141. },
  61142. ":flag_mp:": {
  61143. "uc_base": "1f1f2-1f1f5",
  61144. "uc_output": "1f1f2-1f1f5",
  61145. "uc_match": "1f1f2-1f1f5",
  61146. "uc_greedy": "1f1f2-1f1f5",
  61147. "shortnames": [":mp:"],
  61148. "category": "flags"
  61149. },
  61150. ":flag_mq:": {
  61151. "uc_base": "1f1f2-1f1f6",
  61152. "uc_output": "1f1f2-1f1f6",
  61153. "uc_match": "1f1f2-1f1f6",
  61154. "uc_greedy": "1f1f2-1f1f6",
  61155. "shortnames": [":mq:"],
  61156. "category": "flags"
  61157. },
  61158. ":flag_mr:": {
  61159. "uc_base": "1f1f2-1f1f7",
  61160. "uc_output": "1f1f2-1f1f7",
  61161. "uc_match": "1f1f2-1f1f7",
  61162. "uc_greedy": "1f1f2-1f1f7",
  61163. "shortnames": [":mr:"],
  61164. "category": "flags"
  61165. },
  61166. ":flag_ms:": {
  61167. "uc_base": "1f1f2-1f1f8",
  61168. "uc_output": "1f1f2-1f1f8",
  61169. "uc_match": "1f1f2-1f1f8",
  61170. "uc_greedy": "1f1f2-1f1f8",
  61171. "shortnames": [":ms:"],
  61172. "category": "flags"
  61173. },
  61174. ":flag_mt:": {
  61175. "uc_base": "1f1f2-1f1f9",
  61176. "uc_output": "1f1f2-1f1f9",
  61177. "uc_match": "1f1f2-1f1f9",
  61178. "uc_greedy": "1f1f2-1f1f9",
  61179. "shortnames": [":mt:"],
  61180. "category": "flags"
  61181. },
  61182. ":flag_mu:": {
  61183. "uc_base": "1f1f2-1f1fa",
  61184. "uc_output": "1f1f2-1f1fa",
  61185. "uc_match": "1f1f2-1f1fa",
  61186. "uc_greedy": "1f1f2-1f1fa",
  61187. "shortnames": [":mu:"],
  61188. "category": "flags"
  61189. },
  61190. ":flag_mv:": {
  61191. "uc_base": "1f1f2-1f1fb",
  61192. "uc_output": "1f1f2-1f1fb",
  61193. "uc_match": "1f1f2-1f1fb",
  61194. "uc_greedy": "1f1f2-1f1fb",
  61195. "shortnames": [":mv:"],
  61196. "category": "flags"
  61197. },
  61198. ":flag_mw:": {
  61199. "uc_base": "1f1f2-1f1fc",
  61200. "uc_output": "1f1f2-1f1fc",
  61201. "uc_match": "1f1f2-1f1fc",
  61202. "uc_greedy": "1f1f2-1f1fc",
  61203. "shortnames": [":mw:"],
  61204. "category": "flags"
  61205. },
  61206. ":flag_mx:": {
  61207. "uc_base": "1f1f2-1f1fd",
  61208. "uc_output": "1f1f2-1f1fd",
  61209. "uc_match": "1f1f2-1f1fd",
  61210. "uc_greedy": "1f1f2-1f1fd",
  61211. "shortnames": [":mx:"],
  61212. "category": "flags"
  61213. },
  61214. ":flag_my:": {
  61215. "uc_base": "1f1f2-1f1fe",
  61216. "uc_output": "1f1f2-1f1fe",
  61217. "uc_match": "1f1f2-1f1fe",
  61218. "uc_greedy": "1f1f2-1f1fe",
  61219. "shortnames": [":my:"],
  61220. "category": "flags"
  61221. },
  61222. ":flag_mz:": {
  61223. "uc_base": "1f1f2-1f1ff",
  61224. "uc_output": "1f1f2-1f1ff",
  61225. "uc_match": "1f1f2-1f1ff",
  61226. "uc_greedy": "1f1f2-1f1ff",
  61227. "shortnames": [":mz:"],
  61228. "category": "flags"
  61229. },
  61230. ":flag_na:": {
  61231. "uc_base": "1f1f3-1f1e6",
  61232. "uc_output": "1f1f3-1f1e6",
  61233. "uc_match": "1f1f3-1f1e6",
  61234. "uc_greedy": "1f1f3-1f1e6",
  61235. "shortnames": [":na:"],
  61236. "category": "flags"
  61237. },
  61238. ":flag_nc:": {
  61239. "uc_base": "1f1f3-1f1e8",
  61240. "uc_output": "1f1f3-1f1e8",
  61241. "uc_match": "1f1f3-1f1e8",
  61242. "uc_greedy": "1f1f3-1f1e8",
  61243. "shortnames": [":nc:"],
  61244. "category": "flags"
  61245. },
  61246. ":flag_ne:": {
  61247. "uc_base": "1f1f3-1f1ea",
  61248. "uc_output": "1f1f3-1f1ea",
  61249. "uc_match": "1f1f3-1f1ea",
  61250. "uc_greedy": "1f1f3-1f1ea",
  61251. "shortnames": [":ne:"],
  61252. "category": "flags"
  61253. },
  61254. ":flag_nf:": {
  61255. "uc_base": "1f1f3-1f1eb",
  61256. "uc_output": "1f1f3-1f1eb",
  61257. "uc_match": "1f1f3-1f1eb",
  61258. "uc_greedy": "1f1f3-1f1eb",
  61259. "shortnames": [":nf:"],
  61260. "category": "flags"
  61261. },
  61262. ":flag_ng:": {
  61263. "uc_base": "1f1f3-1f1ec",
  61264. "uc_output": "1f1f3-1f1ec",
  61265. "uc_match": "1f1f3-1f1ec",
  61266. "uc_greedy": "1f1f3-1f1ec",
  61267. "shortnames": [":nigeria:"],
  61268. "category": "flags"
  61269. },
  61270. ":flag_ni:": {
  61271. "uc_base": "1f1f3-1f1ee",
  61272. "uc_output": "1f1f3-1f1ee",
  61273. "uc_match": "1f1f3-1f1ee",
  61274. "uc_greedy": "1f1f3-1f1ee",
  61275. "shortnames": [":ni:"],
  61276. "category": "flags"
  61277. },
  61278. ":flag_nl:": {
  61279. "uc_base": "1f1f3-1f1f1",
  61280. "uc_output": "1f1f3-1f1f1",
  61281. "uc_match": "1f1f3-1f1f1",
  61282. "uc_greedy": "1f1f3-1f1f1",
  61283. "shortnames": [":nl:"],
  61284. "category": "flags"
  61285. },
  61286. ":flag_no:": {
  61287. "uc_base": "1f1f3-1f1f4",
  61288. "uc_output": "1f1f3-1f1f4",
  61289. "uc_match": "1f1f3-1f1f4",
  61290. "uc_greedy": "1f1f3-1f1f4",
  61291. "shortnames": [":no:"],
  61292. "category": "flags"
  61293. },
  61294. ":flag_np:": {
  61295. "uc_base": "1f1f3-1f1f5",
  61296. "uc_output": "1f1f3-1f1f5",
  61297. "uc_match": "1f1f3-1f1f5",
  61298. "uc_greedy": "1f1f3-1f1f5",
  61299. "shortnames": [":np:"],
  61300. "category": "flags"
  61301. },
  61302. ":flag_nr:": {
  61303. "uc_base": "1f1f3-1f1f7",
  61304. "uc_output": "1f1f3-1f1f7",
  61305. "uc_match": "1f1f3-1f1f7",
  61306. "uc_greedy": "1f1f3-1f1f7",
  61307. "shortnames": [":nr:"],
  61308. "category": "flags"
  61309. },
  61310. ":flag_nu:": {
  61311. "uc_base": "1f1f3-1f1fa",
  61312. "uc_output": "1f1f3-1f1fa",
  61313. "uc_match": "1f1f3-1f1fa",
  61314. "uc_greedy": "1f1f3-1f1fa",
  61315. "shortnames": [":nu:"],
  61316. "category": "flags"
  61317. },
  61318. ":flag_nz:": {
  61319. "uc_base": "1f1f3-1f1ff",
  61320. "uc_output": "1f1f3-1f1ff",
  61321. "uc_match": "1f1f3-1f1ff",
  61322. "uc_greedy": "1f1f3-1f1ff",
  61323. "shortnames": [":nz:"],
  61324. "category": "flags"
  61325. },
  61326. ":flag_om:": {
  61327. "uc_base": "1f1f4-1f1f2",
  61328. "uc_output": "1f1f4-1f1f2",
  61329. "uc_match": "1f1f4-1f1f2",
  61330. "uc_greedy": "1f1f4-1f1f2",
  61331. "shortnames": [":om:"],
  61332. "category": "flags"
  61333. },
  61334. ":flag_pa:": {
  61335. "uc_base": "1f1f5-1f1e6",
  61336. "uc_output": "1f1f5-1f1e6",
  61337. "uc_match": "1f1f5-1f1e6",
  61338. "uc_greedy": "1f1f5-1f1e6",
  61339. "shortnames": [":pa:"],
  61340. "category": "flags"
  61341. },
  61342. ":flag_pe:": {
  61343. "uc_base": "1f1f5-1f1ea",
  61344. "uc_output": "1f1f5-1f1ea",
  61345. "uc_match": "1f1f5-1f1ea",
  61346. "uc_greedy": "1f1f5-1f1ea",
  61347. "shortnames": [":pe:"],
  61348. "category": "flags"
  61349. },
  61350. ":flag_pf:": {
  61351. "uc_base": "1f1f5-1f1eb",
  61352. "uc_output": "1f1f5-1f1eb",
  61353. "uc_match": "1f1f5-1f1eb",
  61354. "uc_greedy": "1f1f5-1f1eb",
  61355. "shortnames": [":pf:"],
  61356. "category": "flags"
  61357. },
  61358. ":flag_pg:": {
  61359. "uc_base": "1f1f5-1f1ec",
  61360. "uc_output": "1f1f5-1f1ec",
  61361. "uc_match": "1f1f5-1f1ec",
  61362. "uc_greedy": "1f1f5-1f1ec",
  61363. "shortnames": [":pg:"],
  61364. "category": "flags"
  61365. },
  61366. ":flag_ph:": {
  61367. "uc_base": "1f1f5-1f1ed",
  61368. "uc_output": "1f1f5-1f1ed",
  61369. "uc_match": "1f1f5-1f1ed",
  61370. "uc_greedy": "1f1f5-1f1ed",
  61371. "shortnames": [":ph:"],
  61372. "category": "flags"
  61373. },
  61374. ":flag_pk:": {
  61375. "uc_base": "1f1f5-1f1f0",
  61376. "uc_output": "1f1f5-1f1f0",
  61377. "uc_match": "1f1f5-1f1f0",
  61378. "uc_greedy": "1f1f5-1f1f0",
  61379. "shortnames": [":pk:"],
  61380. "category": "flags"
  61381. },
  61382. ":flag_pl:": {
  61383. "uc_base": "1f1f5-1f1f1",
  61384. "uc_output": "1f1f5-1f1f1",
  61385. "uc_match": "1f1f5-1f1f1",
  61386. "uc_greedy": "1f1f5-1f1f1",
  61387. "shortnames": [":pl:"],
  61388. "category": "flags"
  61389. },
  61390. ":flag_pm:": {
  61391. "uc_base": "1f1f5-1f1f2",
  61392. "uc_output": "1f1f5-1f1f2",
  61393. "uc_match": "1f1f5-1f1f2",
  61394. "uc_greedy": "1f1f5-1f1f2",
  61395. "shortnames": [":pm:"],
  61396. "category": "flags"
  61397. },
  61398. ":flag_pn:": {
  61399. "uc_base": "1f1f5-1f1f3",
  61400. "uc_output": "1f1f5-1f1f3",
  61401. "uc_match": "1f1f5-1f1f3",
  61402. "uc_greedy": "1f1f5-1f1f3",
  61403. "shortnames": [":pn:"],
  61404. "category": "flags"
  61405. },
  61406. ":flag_pr:": {
  61407. "uc_base": "1f1f5-1f1f7",
  61408. "uc_output": "1f1f5-1f1f7",
  61409. "uc_match": "1f1f5-1f1f7",
  61410. "uc_greedy": "1f1f5-1f1f7",
  61411. "shortnames": [":pr:"],
  61412. "category": "flags"
  61413. },
  61414. ":flag_ps:": {
  61415. "uc_base": "1f1f5-1f1f8",
  61416. "uc_output": "1f1f5-1f1f8",
  61417. "uc_match": "1f1f5-1f1f8",
  61418. "uc_greedy": "1f1f5-1f1f8",
  61419. "shortnames": [":ps:"],
  61420. "category": "flags"
  61421. },
  61422. ":flag_pt:": {
  61423. "uc_base": "1f1f5-1f1f9",
  61424. "uc_output": "1f1f5-1f1f9",
  61425. "uc_match": "1f1f5-1f1f9",
  61426. "uc_greedy": "1f1f5-1f1f9",
  61427. "shortnames": [":pt:"],
  61428. "category": "flags"
  61429. },
  61430. ":flag_pw:": {
  61431. "uc_base": "1f1f5-1f1fc",
  61432. "uc_output": "1f1f5-1f1fc",
  61433. "uc_match": "1f1f5-1f1fc",
  61434. "uc_greedy": "1f1f5-1f1fc",
  61435. "shortnames": [":pw:"],
  61436. "category": "flags"
  61437. },
  61438. ":flag_py:": {
  61439. "uc_base": "1f1f5-1f1fe",
  61440. "uc_output": "1f1f5-1f1fe",
  61441. "uc_match": "1f1f5-1f1fe",
  61442. "uc_greedy": "1f1f5-1f1fe",
  61443. "shortnames": [":py:"],
  61444. "category": "flags"
  61445. },
  61446. ":flag_qa:": {
  61447. "uc_base": "1f1f6-1f1e6",
  61448. "uc_output": "1f1f6-1f1e6",
  61449. "uc_match": "1f1f6-1f1e6",
  61450. "uc_greedy": "1f1f6-1f1e6",
  61451. "shortnames": [":qa:"],
  61452. "category": "flags"
  61453. },
  61454. ":flag_re:": {
  61455. "uc_base": "1f1f7-1f1ea",
  61456. "uc_output": "1f1f7-1f1ea",
  61457. "uc_match": "1f1f7-1f1ea",
  61458. "uc_greedy": "1f1f7-1f1ea",
  61459. "shortnames": [":re:"],
  61460. "category": "flags"
  61461. },
  61462. ":flag_ro:": {
  61463. "uc_base": "1f1f7-1f1f4",
  61464. "uc_output": "1f1f7-1f1f4",
  61465. "uc_match": "1f1f7-1f1f4",
  61466. "uc_greedy": "1f1f7-1f1f4",
  61467. "shortnames": [":ro:"],
  61468. "category": "flags"
  61469. },
  61470. ":flag_rs:": {
  61471. "uc_base": "1f1f7-1f1f8",
  61472. "uc_output": "1f1f7-1f1f8",
  61473. "uc_match": "1f1f7-1f1f8",
  61474. "uc_greedy": "1f1f7-1f1f8",
  61475. "shortnames": [":rs:"],
  61476. "category": "flags"
  61477. },
  61478. ":flag_ru:": {
  61479. "uc_base": "1f1f7-1f1fa",
  61480. "uc_output": "1f1f7-1f1fa",
  61481. "uc_match": "1f1f7-1f1fa",
  61482. "uc_greedy": "1f1f7-1f1fa",
  61483. "shortnames": [":ru:"],
  61484. "category": "flags"
  61485. },
  61486. ":flag_rw:": {
  61487. "uc_base": "1f1f7-1f1fc",
  61488. "uc_output": "1f1f7-1f1fc",
  61489. "uc_match": "1f1f7-1f1fc",
  61490. "uc_greedy": "1f1f7-1f1fc",
  61491. "shortnames": [":rw:"],
  61492. "category": "flags"
  61493. },
  61494. ":flag_sa:": {
  61495. "uc_base": "1f1f8-1f1e6",
  61496. "uc_output": "1f1f8-1f1e6",
  61497. "uc_match": "1f1f8-1f1e6",
  61498. "uc_greedy": "1f1f8-1f1e6",
  61499. "shortnames": [":saudiarabia:", ":saudi:"],
  61500. "category": "flags"
  61501. },
  61502. ":flag_sb:": {
  61503. "uc_base": "1f1f8-1f1e7",
  61504. "uc_output": "1f1f8-1f1e7",
  61505. "uc_match": "1f1f8-1f1e7",
  61506. "uc_greedy": "1f1f8-1f1e7",
  61507. "shortnames": [":sb:"],
  61508. "category": "flags"
  61509. },
  61510. ":flag_sc:": {
  61511. "uc_base": "1f1f8-1f1e8",
  61512. "uc_output": "1f1f8-1f1e8",
  61513. "uc_match": "1f1f8-1f1e8",
  61514. "uc_greedy": "1f1f8-1f1e8",
  61515. "shortnames": [":sc:"],
  61516. "category": "flags"
  61517. },
  61518. ":flag_sd:": {
  61519. "uc_base": "1f1f8-1f1e9",
  61520. "uc_output": "1f1f8-1f1e9",
  61521. "uc_match": "1f1f8-1f1e9",
  61522. "uc_greedy": "1f1f8-1f1e9",
  61523. "shortnames": [":sd:"],
  61524. "category": "flags"
  61525. },
  61526. ":flag_se:": {
  61527. "uc_base": "1f1f8-1f1ea",
  61528. "uc_output": "1f1f8-1f1ea",
  61529. "uc_match": "1f1f8-1f1ea",
  61530. "uc_greedy": "1f1f8-1f1ea",
  61531. "shortnames": [":se:"],
  61532. "category": "flags"
  61533. },
  61534. ":flag_sg:": {
  61535. "uc_base": "1f1f8-1f1ec",
  61536. "uc_output": "1f1f8-1f1ec",
  61537. "uc_match": "1f1f8-1f1ec",
  61538. "uc_greedy": "1f1f8-1f1ec",
  61539. "shortnames": [":sg:"],
  61540. "category": "flags"
  61541. },
  61542. ":flag_sh:": {
  61543. "uc_base": "1f1f8-1f1ed",
  61544. "uc_output": "1f1f8-1f1ed",
  61545. "uc_match": "1f1f8-1f1ed",
  61546. "uc_greedy": "1f1f8-1f1ed",
  61547. "shortnames": [":sh:"],
  61548. "category": "flags"
  61549. },
  61550. ":flag_si:": {
  61551. "uc_base": "1f1f8-1f1ee",
  61552. "uc_output": "1f1f8-1f1ee",
  61553. "uc_match": "1f1f8-1f1ee",
  61554. "uc_greedy": "1f1f8-1f1ee",
  61555. "shortnames": [":si:"],
  61556. "category": "flags"
  61557. },
  61558. ":flag_sj:": {
  61559. "uc_base": "1f1f8-1f1ef",
  61560. "uc_output": "1f1f8-1f1ef",
  61561. "uc_match": "1f1f8-1f1ef",
  61562. "uc_greedy": "1f1f8-1f1ef",
  61563. "shortnames": [":sj:"],
  61564. "category": "flags"
  61565. },
  61566. ":flag_sk:": {
  61567. "uc_base": "1f1f8-1f1f0",
  61568. "uc_output": "1f1f8-1f1f0",
  61569. "uc_match": "1f1f8-1f1f0",
  61570. "uc_greedy": "1f1f8-1f1f0",
  61571. "shortnames": [":sk:"],
  61572. "category": "flags"
  61573. },
  61574. ":flag_sl:": {
  61575. "uc_base": "1f1f8-1f1f1",
  61576. "uc_output": "1f1f8-1f1f1",
  61577. "uc_match": "1f1f8-1f1f1",
  61578. "uc_greedy": "1f1f8-1f1f1",
  61579. "shortnames": [":sl:"],
  61580. "category": "flags"
  61581. },
  61582. ":flag_sm:": {
  61583. "uc_base": "1f1f8-1f1f2",
  61584. "uc_output": "1f1f8-1f1f2",
  61585. "uc_match": "1f1f8-1f1f2",
  61586. "uc_greedy": "1f1f8-1f1f2",
  61587. "shortnames": [":sm:"],
  61588. "category": "flags"
  61589. },
  61590. ":flag_sn:": {
  61591. "uc_base": "1f1f8-1f1f3",
  61592. "uc_output": "1f1f8-1f1f3",
  61593. "uc_match": "1f1f8-1f1f3",
  61594. "uc_greedy": "1f1f8-1f1f3",
  61595. "shortnames": [":sn:"],
  61596. "category": "flags"
  61597. },
  61598. ":flag_so:": {
  61599. "uc_base": "1f1f8-1f1f4",
  61600. "uc_output": "1f1f8-1f1f4",
  61601. "uc_match": "1f1f8-1f1f4",
  61602. "uc_greedy": "1f1f8-1f1f4",
  61603. "shortnames": [":so:"],
  61604. "category": "flags"
  61605. },
  61606. ":flag_sr:": {
  61607. "uc_base": "1f1f8-1f1f7",
  61608. "uc_output": "1f1f8-1f1f7",
  61609. "uc_match": "1f1f8-1f1f7",
  61610. "uc_greedy": "1f1f8-1f1f7",
  61611. "shortnames": [":sr:"],
  61612. "category": "flags"
  61613. },
  61614. ":flag_ss:": {
  61615. "uc_base": "1f1f8-1f1f8",
  61616. "uc_output": "1f1f8-1f1f8",
  61617. "uc_match": "1f1f8-1f1f8",
  61618. "uc_greedy": "1f1f8-1f1f8",
  61619. "shortnames": [":ss:"],
  61620. "category": "flags"
  61621. },
  61622. ":flag_st:": {
  61623. "uc_base": "1f1f8-1f1f9",
  61624. "uc_output": "1f1f8-1f1f9",
  61625. "uc_match": "1f1f8-1f1f9",
  61626. "uc_greedy": "1f1f8-1f1f9",
  61627. "shortnames": [":st:"],
  61628. "category": "flags"
  61629. },
  61630. ":flag_sv:": {
  61631. "uc_base": "1f1f8-1f1fb",
  61632. "uc_output": "1f1f8-1f1fb",
  61633. "uc_match": "1f1f8-1f1fb",
  61634. "uc_greedy": "1f1f8-1f1fb",
  61635. "shortnames": [":sv:"],
  61636. "category": "flags"
  61637. },
  61638. ":flag_sx:": {
  61639. "uc_base": "1f1f8-1f1fd",
  61640. "uc_output": "1f1f8-1f1fd",
  61641. "uc_match": "1f1f8-1f1fd",
  61642. "uc_greedy": "1f1f8-1f1fd",
  61643. "shortnames": [":sx:"],
  61644. "category": "flags"
  61645. },
  61646. ":flag_sy:": {
  61647. "uc_base": "1f1f8-1f1fe",
  61648. "uc_output": "1f1f8-1f1fe",
  61649. "uc_match": "1f1f8-1f1fe",
  61650. "uc_greedy": "1f1f8-1f1fe",
  61651. "shortnames": [":sy:"],
  61652. "category": "flags"
  61653. },
  61654. ":flag_sz:": {
  61655. "uc_base": "1f1f8-1f1ff",
  61656. "uc_output": "1f1f8-1f1ff",
  61657. "uc_match": "1f1f8-1f1ff",
  61658. "uc_greedy": "1f1f8-1f1ff",
  61659. "shortnames": [":sz:"],
  61660. "category": "flags"
  61661. },
  61662. ":flag_ta:": {
  61663. "uc_base": "1f1f9-1f1e6",
  61664. "uc_output": "1f1f9-1f1e6",
  61665. "uc_match": "1f1f9-1f1e6",
  61666. "uc_greedy": "1f1f9-1f1e6",
  61667. "shortnames": [":ta:"],
  61668. "category": "flags"
  61669. },
  61670. ":flag_tc:": {
  61671. "uc_base": "1f1f9-1f1e8",
  61672. "uc_output": "1f1f9-1f1e8",
  61673. "uc_match": "1f1f9-1f1e8",
  61674. "uc_greedy": "1f1f9-1f1e8",
  61675. "shortnames": [":tc:"],
  61676. "category": "flags"
  61677. },
  61678. ":flag_td:": {
  61679. "uc_base": "1f1f9-1f1e9",
  61680. "uc_output": "1f1f9-1f1e9",
  61681. "uc_match": "1f1f9-1f1e9",
  61682. "uc_greedy": "1f1f9-1f1e9",
  61683. "shortnames": [":td:"],
  61684. "category": "flags"
  61685. },
  61686. ":flag_tf:": {
  61687. "uc_base": "1f1f9-1f1eb",
  61688. "uc_output": "1f1f9-1f1eb",
  61689. "uc_match": "1f1f9-1f1eb",
  61690. "uc_greedy": "1f1f9-1f1eb",
  61691. "shortnames": [":tf:"],
  61692. "category": "flags"
  61693. },
  61694. ":flag_tg:": {
  61695. "uc_base": "1f1f9-1f1ec",
  61696. "uc_output": "1f1f9-1f1ec",
  61697. "uc_match": "1f1f9-1f1ec",
  61698. "uc_greedy": "1f1f9-1f1ec",
  61699. "shortnames": [":tg:"],
  61700. "category": "flags"
  61701. },
  61702. ":flag_th:": {
  61703. "uc_base": "1f1f9-1f1ed",
  61704. "uc_output": "1f1f9-1f1ed",
  61705. "uc_match": "1f1f9-1f1ed",
  61706. "uc_greedy": "1f1f9-1f1ed",
  61707. "shortnames": [":th:"],
  61708. "category": "flags"
  61709. },
  61710. ":flag_tj:": {
  61711. "uc_base": "1f1f9-1f1ef",
  61712. "uc_output": "1f1f9-1f1ef",
  61713. "uc_match": "1f1f9-1f1ef",
  61714. "uc_greedy": "1f1f9-1f1ef",
  61715. "shortnames": [":tj:"],
  61716. "category": "flags"
  61717. },
  61718. ":flag_tk:": {
  61719. "uc_base": "1f1f9-1f1f0",
  61720. "uc_output": "1f1f9-1f1f0",
  61721. "uc_match": "1f1f9-1f1f0",
  61722. "uc_greedy": "1f1f9-1f1f0",
  61723. "shortnames": [":tk:"],
  61724. "category": "flags"
  61725. },
  61726. ":flag_tl:": {
  61727. "uc_base": "1f1f9-1f1f1",
  61728. "uc_output": "1f1f9-1f1f1",
  61729. "uc_match": "1f1f9-1f1f1",
  61730. "uc_greedy": "1f1f9-1f1f1",
  61731. "shortnames": [":tl:"],
  61732. "category": "flags"
  61733. },
  61734. ":flag_tm:": {
  61735. "uc_base": "1f1f9-1f1f2",
  61736. "uc_output": "1f1f9-1f1f2",
  61737. "uc_match": "1f1f9-1f1f2",
  61738. "uc_greedy": "1f1f9-1f1f2",
  61739. "shortnames": [":turkmenistan:"],
  61740. "category": "flags"
  61741. },
  61742. ":flag_tn:": {
  61743. "uc_base": "1f1f9-1f1f3",
  61744. "uc_output": "1f1f9-1f1f3",
  61745. "uc_match": "1f1f9-1f1f3",
  61746. "uc_greedy": "1f1f9-1f1f3",
  61747. "shortnames": [":tn:"],
  61748. "category": "flags"
  61749. },
  61750. ":flag_to:": {
  61751. "uc_base": "1f1f9-1f1f4",
  61752. "uc_output": "1f1f9-1f1f4",
  61753. "uc_match": "1f1f9-1f1f4",
  61754. "uc_greedy": "1f1f9-1f1f4",
  61755. "shortnames": [":to:"],
  61756. "category": "flags"
  61757. },
  61758. ":flag_tr:": {
  61759. "uc_base": "1f1f9-1f1f7",
  61760. "uc_output": "1f1f9-1f1f7",
  61761. "uc_match": "1f1f9-1f1f7",
  61762. "uc_greedy": "1f1f9-1f1f7",
  61763. "shortnames": [":tr:"],
  61764. "category": "flags"
  61765. },
  61766. ":flag_tt:": {
  61767. "uc_base": "1f1f9-1f1f9",
  61768. "uc_output": "1f1f9-1f1f9",
  61769. "uc_match": "1f1f9-1f1f9",
  61770. "uc_greedy": "1f1f9-1f1f9",
  61771. "shortnames": [":tt:"],
  61772. "category": "flags"
  61773. },
  61774. ":flag_tv:": {
  61775. "uc_base": "1f1f9-1f1fb",
  61776. "uc_output": "1f1f9-1f1fb",
  61777. "uc_match": "1f1f9-1f1fb",
  61778. "uc_greedy": "1f1f9-1f1fb",
  61779. "shortnames": [":tuvalu:"],
  61780. "category": "flags"
  61781. },
  61782. ":flag_tw:": {
  61783. "uc_base": "1f1f9-1f1fc",
  61784. "uc_output": "1f1f9-1f1fc",
  61785. "uc_match": "1f1f9-1f1fc",
  61786. "uc_greedy": "1f1f9-1f1fc",
  61787. "shortnames": [":tw:"],
  61788. "category": "flags"
  61789. },
  61790. ":flag_tz:": {
  61791. "uc_base": "1f1f9-1f1ff",
  61792. "uc_output": "1f1f9-1f1ff",
  61793. "uc_match": "1f1f9-1f1ff",
  61794. "uc_greedy": "1f1f9-1f1ff",
  61795. "shortnames": [":tz:"],
  61796. "category": "flags"
  61797. },
  61798. ":flag_ua:": {
  61799. "uc_base": "1f1fa-1f1e6",
  61800. "uc_output": "1f1fa-1f1e6",
  61801. "uc_match": "1f1fa-1f1e6",
  61802. "uc_greedy": "1f1fa-1f1e6",
  61803. "shortnames": [":ua:"],
  61804. "category": "flags"
  61805. },
  61806. ":flag_ug:": {
  61807. "uc_base": "1f1fa-1f1ec",
  61808. "uc_output": "1f1fa-1f1ec",
  61809. "uc_match": "1f1fa-1f1ec",
  61810. "uc_greedy": "1f1fa-1f1ec",
  61811. "shortnames": [":ug:"],
  61812. "category": "flags"
  61813. },
  61814. ":flag_um:": {
  61815. "uc_base": "1f1fa-1f1f2",
  61816. "uc_output": "1f1fa-1f1f2",
  61817. "uc_match": "1f1fa-1f1f2",
  61818. "uc_greedy": "1f1fa-1f1f2",
  61819. "shortnames": [":um:"],
  61820. "category": "flags"
  61821. },
  61822. ":flag_us:": {
  61823. "uc_base": "1f1fa-1f1f8",
  61824. "uc_output": "1f1fa-1f1f8",
  61825. "uc_match": "1f1fa-1f1f8",
  61826. "uc_greedy": "1f1fa-1f1f8",
  61827. "shortnames": [":us:"],
  61828. "category": "flags"
  61829. },
  61830. ":flag_uy:": {
  61831. "uc_base": "1f1fa-1f1fe",
  61832. "uc_output": "1f1fa-1f1fe",
  61833. "uc_match": "1f1fa-1f1fe",
  61834. "uc_greedy": "1f1fa-1f1fe",
  61835. "shortnames": [":uy:"],
  61836. "category": "flags"
  61837. },
  61838. ":flag_uz:": {
  61839. "uc_base": "1f1fa-1f1ff",
  61840. "uc_output": "1f1fa-1f1ff",
  61841. "uc_match": "1f1fa-1f1ff",
  61842. "uc_greedy": "1f1fa-1f1ff",
  61843. "shortnames": [":uz:"],
  61844. "category": "flags"
  61845. },
  61846. ":flag_va:": {
  61847. "uc_base": "1f1fb-1f1e6",
  61848. "uc_output": "1f1fb-1f1e6",
  61849. "uc_match": "1f1fb-1f1e6",
  61850. "uc_greedy": "1f1fb-1f1e6",
  61851. "shortnames": [":va:"],
  61852. "category": "flags"
  61853. },
  61854. ":flag_vc:": {
  61855. "uc_base": "1f1fb-1f1e8",
  61856. "uc_output": "1f1fb-1f1e8",
  61857. "uc_match": "1f1fb-1f1e8",
  61858. "uc_greedy": "1f1fb-1f1e8",
  61859. "shortnames": [":vc:"],
  61860. "category": "flags"
  61861. },
  61862. ":flag_ve:": {
  61863. "uc_base": "1f1fb-1f1ea",
  61864. "uc_output": "1f1fb-1f1ea",
  61865. "uc_match": "1f1fb-1f1ea",
  61866. "uc_greedy": "1f1fb-1f1ea",
  61867. "shortnames": [":ve:"],
  61868. "category": "flags"
  61869. },
  61870. ":flag_vg:": {
  61871. "uc_base": "1f1fb-1f1ec",
  61872. "uc_output": "1f1fb-1f1ec",
  61873. "uc_match": "1f1fb-1f1ec",
  61874. "uc_greedy": "1f1fb-1f1ec",
  61875. "shortnames": [":vg:"],
  61876. "category": "flags"
  61877. },
  61878. ":flag_vi:": {
  61879. "uc_base": "1f1fb-1f1ee",
  61880. "uc_output": "1f1fb-1f1ee",
  61881. "uc_match": "1f1fb-1f1ee",
  61882. "uc_greedy": "1f1fb-1f1ee",
  61883. "shortnames": [":vi:"],
  61884. "category": "flags"
  61885. },
  61886. ":flag_vn:": {
  61887. "uc_base": "1f1fb-1f1f3",
  61888. "uc_output": "1f1fb-1f1f3",
  61889. "uc_match": "1f1fb-1f1f3",
  61890. "uc_greedy": "1f1fb-1f1f3",
  61891. "shortnames": [":vn:"],
  61892. "category": "flags"
  61893. },
  61894. ":flag_vu:": {
  61895. "uc_base": "1f1fb-1f1fa",
  61896. "uc_output": "1f1fb-1f1fa",
  61897. "uc_match": "1f1fb-1f1fa",
  61898. "uc_greedy": "1f1fb-1f1fa",
  61899. "shortnames": [":vu:"],
  61900. "category": "flags"
  61901. },
  61902. ":flag_wf:": {
  61903. "uc_base": "1f1fc-1f1eb",
  61904. "uc_output": "1f1fc-1f1eb",
  61905. "uc_match": "1f1fc-1f1eb",
  61906. "uc_greedy": "1f1fc-1f1eb",
  61907. "shortnames": [":wf:"],
  61908. "category": "flags"
  61909. },
  61910. ":flag_ws:": {
  61911. "uc_base": "1f1fc-1f1f8",
  61912. "uc_output": "1f1fc-1f1f8",
  61913. "uc_match": "1f1fc-1f1f8",
  61914. "uc_greedy": "1f1fc-1f1f8",
  61915. "shortnames": [":ws:"],
  61916. "category": "flags"
  61917. },
  61918. ":flag_xk:": {
  61919. "uc_base": "1f1fd-1f1f0",
  61920. "uc_output": "1f1fd-1f1f0",
  61921. "uc_match": "1f1fd-1f1f0",
  61922. "uc_greedy": "1f1fd-1f1f0",
  61923. "shortnames": [":xk:"],
  61924. "category": "flags"
  61925. },
  61926. ":flag_ye:": {
  61927. "uc_base": "1f1fe-1f1ea",
  61928. "uc_output": "1f1fe-1f1ea",
  61929. "uc_match": "1f1fe-1f1ea",
  61930. "uc_greedy": "1f1fe-1f1ea",
  61931. "shortnames": [":ye:"],
  61932. "category": "flags"
  61933. },
  61934. ":flag_yt:": {
  61935. "uc_base": "1f1fe-1f1f9",
  61936. "uc_output": "1f1fe-1f1f9",
  61937. "uc_match": "1f1fe-1f1f9",
  61938. "uc_greedy": "1f1fe-1f1f9",
  61939. "shortnames": [":yt:"],
  61940. "category": "flags"
  61941. },
  61942. ":flag_za:": {
  61943. "uc_base": "1f1ff-1f1e6",
  61944. "uc_output": "1f1ff-1f1e6",
  61945. "uc_match": "1f1ff-1f1e6",
  61946. "uc_greedy": "1f1ff-1f1e6",
  61947. "shortnames": [":za:"],
  61948. "category": "flags"
  61949. },
  61950. ":flag_zm:": {
  61951. "uc_base": "1f1ff-1f1f2",
  61952. "uc_output": "1f1ff-1f1f2",
  61953. "uc_match": "1f1ff-1f1f2",
  61954. "uc_greedy": "1f1ff-1f1f2",
  61955. "shortnames": [":zm:"],
  61956. "category": "flags"
  61957. },
  61958. ":flag_zw:": {
  61959. "uc_base": "1f1ff-1f1fc",
  61960. "uc_output": "1f1ff-1f1fc",
  61961. "uc_match": "1f1ff-1f1fc",
  61962. "uc_greedy": "1f1ff-1f1fc",
  61963. "shortnames": [":zw:"],
  61964. "category": "flags"
  61965. },
  61966. ":girl_tone1:": {
  61967. "uc_base": "1f467-1f3fb",
  61968. "uc_output": "1f467-1f3fb",
  61969. "uc_match": "1f467-1f3fb",
  61970. "uc_greedy": "1f467-1f3fb",
  61971. "shortnames": [],
  61972. "category": "people"
  61973. },
  61974. ":girl_tone2:": {
  61975. "uc_base": "1f467-1f3fc",
  61976. "uc_output": "1f467-1f3fc",
  61977. "uc_match": "1f467-1f3fc",
  61978. "uc_greedy": "1f467-1f3fc",
  61979. "shortnames": [],
  61980. "category": "people"
  61981. },
  61982. ":girl_tone3:": {
  61983. "uc_base": "1f467-1f3fd",
  61984. "uc_output": "1f467-1f3fd",
  61985. "uc_match": "1f467-1f3fd",
  61986. "uc_greedy": "1f467-1f3fd",
  61987. "shortnames": [],
  61988. "category": "people"
  61989. },
  61990. ":girl_tone4:": {
  61991. "uc_base": "1f467-1f3fe",
  61992. "uc_output": "1f467-1f3fe",
  61993. "uc_match": "1f467-1f3fe",
  61994. "uc_greedy": "1f467-1f3fe",
  61995. "shortnames": [],
  61996. "category": "people"
  61997. },
  61998. ":girl_tone5:": {
  61999. "uc_base": "1f467-1f3ff",
  62000. "uc_output": "1f467-1f3ff",
  62001. "uc_match": "1f467-1f3ff",
  62002. "uc_greedy": "1f467-1f3ff",
  62003. "shortnames": [],
  62004. "category": "people"
  62005. },
  62006. ":guard_tone1:": {
  62007. "uc_base": "1f482-1f3fb",
  62008. "uc_output": "1f482-1f3fb",
  62009. "uc_match": "1f482-1f3fb",
  62010. "uc_greedy": "1f482-1f3fb",
  62011. "shortnames": [":guardsman_tone1:"],
  62012. "category": "people"
  62013. },
  62014. ":guard_tone2:": {
  62015. "uc_base": "1f482-1f3fc",
  62016. "uc_output": "1f482-1f3fc",
  62017. "uc_match": "1f482-1f3fc",
  62018. "uc_greedy": "1f482-1f3fc",
  62019. "shortnames": [":guardsman_tone2:"],
  62020. "category": "people"
  62021. },
  62022. ":guard_tone3:": {
  62023. "uc_base": "1f482-1f3fd",
  62024. "uc_output": "1f482-1f3fd",
  62025. "uc_match": "1f482-1f3fd",
  62026. "uc_greedy": "1f482-1f3fd",
  62027. "shortnames": [":guardsman_tone3:"],
  62028. "category": "people"
  62029. },
  62030. ":guard_tone4:": {
  62031. "uc_base": "1f482-1f3fe",
  62032. "uc_output": "1f482-1f3fe",
  62033. "uc_match": "1f482-1f3fe",
  62034. "uc_greedy": "1f482-1f3fe",
  62035. "shortnames": [":guardsman_tone4:"],
  62036. "category": "people"
  62037. },
  62038. ":guard_tone5:": {
  62039. "uc_base": "1f482-1f3ff",
  62040. "uc_output": "1f482-1f3ff",
  62041. "uc_match": "1f482-1f3ff",
  62042. "uc_greedy": "1f482-1f3ff",
  62043. "shortnames": [":guardsman_tone5:"],
  62044. "category": "people"
  62045. },
  62046. ":hand_splayed_tone1:": {
  62047. "uc_base": "1f590-1f3fb",
  62048. "uc_output": "1f590-1f3fb",
  62049. "uc_match": "1f590-fe0f-1f3fb",
  62050. "uc_greedy": "1f590-fe0f-1f3fb",
  62051. "shortnames": [":raised_hand_with_fingers_splayed_tone1:"],
  62052. "category": "people"
  62053. },
  62054. ":hand_splayed_tone2:": {
  62055. "uc_base": "1f590-1f3fc",
  62056. "uc_output": "1f590-1f3fc",
  62057. "uc_match": "1f590-fe0f-1f3fc",
  62058. "uc_greedy": "1f590-fe0f-1f3fc",
  62059. "shortnames": [":raised_hand_with_fingers_splayed_tone2:"],
  62060. "category": "people"
  62061. },
  62062. ":hand_splayed_tone3:": {
  62063. "uc_base": "1f590-1f3fd",
  62064. "uc_output": "1f590-1f3fd",
  62065. "uc_match": "1f590-fe0f-1f3fd",
  62066. "uc_greedy": "1f590-fe0f-1f3fd",
  62067. "shortnames": [":raised_hand_with_fingers_splayed_tone3:"],
  62068. "category": "people"
  62069. },
  62070. ":hand_splayed_tone4:": {
  62071. "uc_base": "1f590-1f3fe",
  62072. "uc_output": "1f590-1f3fe",
  62073. "uc_match": "1f590-fe0f-1f3fe",
  62074. "uc_greedy": "1f590-fe0f-1f3fe",
  62075. "shortnames": [":raised_hand_with_fingers_splayed_tone4:"],
  62076. "category": "people"
  62077. },
  62078. ":hand_splayed_tone5:": {
  62079. "uc_base": "1f590-1f3ff",
  62080. "uc_output": "1f590-1f3ff",
  62081. "uc_match": "1f590-fe0f-1f3ff",
  62082. "uc_greedy": "1f590-fe0f-1f3ff",
  62083. "shortnames": [":raised_hand_with_fingers_splayed_tone5:"],
  62084. "category": "people"
  62085. },
  62086. ":horse_racing_tone1:": {
  62087. "uc_base": "1f3c7-1f3fb",
  62088. "uc_output": "1f3c7-1f3fb",
  62089. "uc_match": "1f3c7-1f3fb",
  62090. "uc_greedy": "1f3c7-1f3fb",
  62091. "shortnames": [],
  62092. "category": "activity"
  62093. },
  62094. ":horse_racing_tone2:": {
  62095. "uc_base": "1f3c7-1f3fc",
  62096. "uc_output": "1f3c7-1f3fc",
  62097. "uc_match": "1f3c7-1f3fc",
  62098. "uc_greedy": "1f3c7-1f3fc",
  62099. "shortnames": [],
  62100. "category": "activity"
  62101. },
  62102. ":horse_racing_tone3:": {
  62103. "uc_base": "1f3c7-1f3fd",
  62104. "uc_output": "1f3c7-1f3fd",
  62105. "uc_match": "1f3c7-1f3fd",
  62106. "uc_greedy": "1f3c7-1f3fd",
  62107. "shortnames": [],
  62108. "category": "activity"
  62109. },
  62110. ":horse_racing_tone4:": {
  62111. "uc_base": "1f3c7-1f3fe",
  62112. "uc_output": "1f3c7-1f3fe",
  62113. "uc_match": "1f3c7-1f3fe",
  62114. "uc_greedy": "1f3c7-1f3fe",
  62115. "shortnames": [],
  62116. "category": "activity"
  62117. },
  62118. ":horse_racing_tone5:": {
  62119. "uc_base": "1f3c7-1f3ff",
  62120. "uc_output": "1f3c7-1f3ff",
  62121. "uc_match": "1f3c7-1f3ff",
  62122. "uc_greedy": "1f3c7-1f3ff",
  62123. "shortnames": [],
  62124. "category": "activity"
  62125. },
  62126. ":left_facing_fist_tone1:": {
  62127. "uc_base": "1f91b-1f3fb",
  62128. "uc_output": "1f91b-1f3fb",
  62129. "uc_match": "1f91b-1f3fb",
  62130. "uc_greedy": "1f91b-1f3fb",
  62131. "shortnames": [":left_fist_tone1:"],
  62132. "category": "people"
  62133. },
  62134. ":left_facing_fist_tone2:": {
  62135. "uc_base": "1f91b-1f3fc",
  62136. "uc_output": "1f91b-1f3fc",
  62137. "uc_match": "1f91b-1f3fc",
  62138. "uc_greedy": "1f91b-1f3fc",
  62139. "shortnames": [":left_fist_tone2:"],
  62140. "category": "people"
  62141. },
  62142. ":left_facing_fist_tone3:": {
  62143. "uc_base": "1f91b-1f3fd",
  62144. "uc_output": "1f91b-1f3fd",
  62145. "uc_match": "1f91b-1f3fd",
  62146. "uc_greedy": "1f91b-1f3fd",
  62147. "shortnames": [":left_fist_tone3:"],
  62148. "category": "people"
  62149. },
  62150. ":left_facing_fist_tone4:": {
  62151. "uc_base": "1f91b-1f3fe",
  62152. "uc_output": "1f91b-1f3fe",
  62153. "uc_match": "1f91b-1f3fe",
  62154. "uc_greedy": "1f91b-1f3fe",
  62155. "shortnames": [":left_fist_tone4:"],
  62156. "category": "people"
  62157. },
  62158. ":left_facing_fist_tone5:": {
  62159. "uc_base": "1f91b-1f3ff",
  62160. "uc_output": "1f91b-1f3ff",
  62161. "uc_match": "1f91b-1f3ff",
  62162. "uc_greedy": "1f91b-1f3ff",
  62163. "shortnames": [":left_fist_tone5:"],
  62164. "category": "people"
  62165. },
  62166. ":levitate_tone1:": {
  62167. "uc_base": "1f574-1f3fb",
  62168. "uc_output": "1f574-1f3fb",
  62169. "uc_match": "1f574-fe0f-1f3fb",
  62170. "uc_greedy": "1f574-fe0f-1f3fb",
  62171. "shortnames": [":man_in_business_suit_levitating_tone1:", ":man_in_business_suit_levitating_light_skin_tone:"],
  62172. "category": "people"
  62173. },
  62174. ":levitate_tone2:": {
  62175. "uc_base": "1f574-1f3fc",
  62176. "uc_output": "1f574-1f3fc",
  62177. "uc_match": "1f574-fe0f-1f3fc",
  62178. "uc_greedy": "1f574-fe0f-1f3fc",
  62179. "shortnames": [":man_in_business_suit_levitating_tone2:", ":man_in_business_suit_levitating_medium_light_skin_tone:"],
  62180. "category": "people"
  62181. },
  62182. ":levitate_tone3:": {
  62183. "uc_base": "1f574-1f3fd",
  62184. "uc_output": "1f574-1f3fd",
  62185. "uc_match": "1f574-fe0f-1f3fd",
  62186. "uc_greedy": "1f574-fe0f-1f3fd",
  62187. "shortnames": [":man_in_business_suit_levitating_tone3:", ":man_in_business_suit_levitating_medium_skin_tone:"],
  62188. "category": "people"
  62189. },
  62190. ":levitate_tone4:": {
  62191. "uc_base": "1f574-1f3fe",
  62192. "uc_output": "1f574-1f3fe",
  62193. "uc_match": "1f574-fe0f-1f3fe",
  62194. "uc_greedy": "1f574-fe0f-1f3fe",
  62195. "shortnames": [":man_in_business_suit_levitating_tone4:", ":man_in_business_suit_levitating_medium_dark_skin_tone:"],
  62196. "category": "people"
  62197. },
  62198. ":levitate_tone5:": {
  62199. "uc_base": "1f574-1f3ff",
  62200. "uc_output": "1f574-1f3ff",
  62201. "uc_match": "1f574-fe0f-1f3ff",
  62202. "uc_greedy": "1f574-fe0f-1f3ff",
  62203. "shortnames": [":man_in_business_suit_levitating_tone5:", ":man_in_business_suit_levitating_dark_skin_tone:"],
  62204. "category": "people"
  62205. },
  62206. ":love_you_gesture_tone1:": {
  62207. "uc_base": "1f91f-1f3fb",
  62208. "uc_output": "1f91f-1f3fb",
  62209. "uc_match": "1f91f-1f3fb",
  62210. "uc_greedy": "1f91f-1f3fb",
  62211. "shortnames": [":love_you_gesture_light_skin_tone:"],
  62212. "category": "people"
  62213. },
  62214. ":love_you_gesture_tone2:": {
  62215. "uc_base": "1f91f-1f3fc",
  62216. "uc_output": "1f91f-1f3fc",
  62217. "uc_match": "1f91f-1f3fc",
  62218. "uc_greedy": "1f91f-1f3fc",
  62219. "shortnames": [":love_you_gesture_medium_light_skin_tone:"],
  62220. "category": "people"
  62221. },
  62222. ":love_you_gesture_tone3:": {
  62223. "uc_base": "1f91f-1f3fd",
  62224. "uc_output": "1f91f-1f3fd",
  62225. "uc_match": "1f91f-1f3fd",
  62226. "uc_greedy": "1f91f-1f3fd",
  62227. "shortnames": [":love_you_gesture_medium_skin_tone:"],
  62228. "category": "people"
  62229. },
  62230. ":love_you_gesture_tone4:": {
  62231. "uc_base": "1f91f-1f3fe",
  62232. "uc_output": "1f91f-1f3fe",
  62233. "uc_match": "1f91f-1f3fe",
  62234. "uc_greedy": "1f91f-1f3fe",
  62235. "shortnames": [":love_you_gesture_medium_dark_skin_tone:"],
  62236. "category": "people"
  62237. },
  62238. ":love_you_gesture_tone5:": {
  62239. "uc_base": "1f91f-1f3ff",
  62240. "uc_output": "1f91f-1f3ff",
  62241. "uc_match": "1f91f-1f3ff",
  62242. "uc_greedy": "1f91f-1f3ff",
  62243. "shortnames": [":love_you_gesture_dark_skin_tone:"],
  62244. "category": "people"
  62245. },
  62246. ":mage_tone1:": {
  62247. "uc_base": "1f9d9-1f3fb",
  62248. "uc_output": "1f9d9-1f3fb",
  62249. "uc_match": "1f9d9-1f3fb",
  62250. "uc_greedy": "1f9d9-1f3fb",
  62251. "shortnames": [":mage_light_skin_tone:"],
  62252. "category": "people"
  62253. },
  62254. ":mage_tone2:": {
  62255. "uc_base": "1f9d9-1f3fc",
  62256. "uc_output": "1f9d9-1f3fc",
  62257. "uc_match": "1f9d9-1f3fc",
  62258. "uc_greedy": "1f9d9-1f3fc",
  62259. "shortnames": [":mage_medium_light_skin_tone:"],
  62260. "category": "people"
  62261. },
  62262. ":mage_tone3:": {
  62263. "uc_base": "1f9d9-1f3fd",
  62264. "uc_output": "1f9d9-1f3fd",
  62265. "uc_match": "1f9d9-1f3fd",
  62266. "uc_greedy": "1f9d9-1f3fd",
  62267. "shortnames": [":mage_medium_skin_tone:"],
  62268. "category": "people"
  62269. },
  62270. ":mage_tone4:": {
  62271. "uc_base": "1f9d9-1f3fe",
  62272. "uc_output": "1f9d9-1f3fe",
  62273. "uc_match": "1f9d9-1f3fe",
  62274. "uc_greedy": "1f9d9-1f3fe",
  62275. "shortnames": [":mage_medium_dark_skin_tone:"],
  62276. "category": "people"
  62277. },
  62278. ":mage_tone5:": {
  62279. "uc_base": "1f9d9-1f3ff",
  62280. "uc_output": "1f9d9-1f3ff",
  62281. "uc_match": "1f9d9-1f3ff",
  62282. "uc_greedy": "1f9d9-1f3ff",
  62283. "shortnames": [":mage_dark_skin_tone:"],
  62284. "category": "people"
  62285. },
  62286. ":man_dancing_tone1:": {
  62287. "uc_base": "1f57a-1f3fb",
  62288. "uc_output": "1f57a-1f3fb",
  62289. "uc_match": "1f57a-1f3fb",
  62290. "uc_greedy": "1f57a-1f3fb",
  62291. "shortnames": [":male_dancer_tone1:"],
  62292. "category": "people"
  62293. },
  62294. ":man_dancing_tone2:": {
  62295. "uc_base": "1f57a-1f3fc",
  62296. "uc_output": "1f57a-1f3fc",
  62297. "uc_match": "1f57a-1f3fc",
  62298. "uc_greedy": "1f57a-1f3fc",
  62299. "shortnames": [":male_dancer_tone2:"],
  62300. "category": "people"
  62301. },
  62302. ":man_dancing_tone3:": {
  62303. "uc_base": "1f57a-1f3fd",
  62304. "uc_output": "1f57a-1f3fd",
  62305. "uc_match": "1f57a-1f3fd",
  62306. "uc_greedy": "1f57a-1f3fd",
  62307. "shortnames": [":male_dancer_tone3:"],
  62308. "category": "people"
  62309. },
  62310. ":man_dancing_tone4:": {
  62311. "uc_base": "1f57a-1f3fe",
  62312. "uc_output": "1f57a-1f3fe",
  62313. "uc_match": "1f57a-1f3fe",
  62314. "uc_greedy": "1f57a-1f3fe",
  62315. "shortnames": [":male_dancer_tone4:"],
  62316. "category": "people"
  62317. },
  62318. ":man_dancing_tone5:": {
  62319. "uc_base": "1f57a-1f3ff",
  62320. "uc_output": "1f57a-1f3ff",
  62321. "uc_match": "1f57a-1f3ff",
  62322. "uc_greedy": "1f57a-1f3ff",
  62323. "shortnames": [":male_dancer_tone5:"],
  62324. "category": "people"
  62325. },
  62326. ":man_in_tuxedo_tone1:": {
  62327. "uc_base": "1f935-1f3fb",
  62328. "uc_output": "1f935-1f3fb",
  62329. "uc_match": "1f935-1f3fb",
  62330. "uc_greedy": "1f935-1f3fb",
  62331. "shortnames": [":tuxedo_tone1:"],
  62332. "category": "people"
  62333. },
  62334. ":man_in_tuxedo_tone2:": {
  62335. "uc_base": "1f935-1f3fc",
  62336. "uc_output": "1f935-1f3fc",
  62337. "uc_match": "1f935-1f3fc",
  62338. "uc_greedy": "1f935-1f3fc",
  62339. "shortnames": [":tuxedo_tone2:"],
  62340. "category": "people"
  62341. },
  62342. ":man_in_tuxedo_tone3:": {
  62343. "uc_base": "1f935-1f3fd",
  62344. "uc_output": "1f935-1f3fd",
  62345. "uc_match": "1f935-1f3fd",
  62346. "uc_greedy": "1f935-1f3fd",
  62347. "shortnames": [":tuxedo_tone3:"],
  62348. "category": "people"
  62349. },
  62350. ":man_in_tuxedo_tone4:": {
  62351. "uc_base": "1f935-1f3fe",
  62352. "uc_output": "1f935-1f3fe",
  62353. "uc_match": "1f935-1f3fe",
  62354. "uc_greedy": "1f935-1f3fe",
  62355. "shortnames": [":tuxedo_tone4:"],
  62356. "category": "people"
  62357. },
  62358. ":man_in_tuxedo_tone5:": {
  62359. "uc_base": "1f935-1f3ff",
  62360. "uc_output": "1f935-1f3ff",
  62361. "uc_match": "1f935-1f3ff",
  62362. "uc_greedy": "1f935-1f3ff",
  62363. "shortnames": [":tuxedo_tone5:"],
  62364. "category": "people"
  62365. },
  62366. ":man_tone1:": {
  62367. "uc_base": "1f468-1f3fb",
  62368. "uc_output": "1f468-1f3fb",
  62369. "uc_match": "1f468-1f3fb",
  62370. "uc_greedy": "1f468-1f3fb",
  62371. "shortnames": [],
  62372. "category": "people"
  62373. },
  62374. ":man_tone2:": {
  62375. "uc_base": "1f468-1f3fc",
  62376. "uc_output": "1f468-1f3fc",
  62377. "uc_match": "1f468-1f3fc",
  62378. "uc_greedy": "1f468-1f3fc",
  62379. "shortnames": [],
  62380. "category": "people"
  62381. },
  62382. ":man_tone3:": {
  62383. "uc_base": "1f468-1f3fd",
  62384. "uc_output": "1f468-1f3fd",
  62385. "uc_match": "1f468-1f3fd",
  62386. "uc_greedy": "1f468-1f3fd",
  62387. "shortnames": [],
  62388. "category": "people"
  62389. },
  62390. ":man_tone4:": {
  62391. "uc_base": "1f468-1f3fe",
  62392. "uc_output": "1f468-1f3fe",
  62393. "uc_match": "1f468-1f3fe",
  62394. "uc_greedy": "1f468-1f3fe",
  62395. "shortnames": [],
  62396. "category": "people"
  62397. },
  62398. ":man_tone5:": {
  62399. "uc_base": "1f468-1f3ff",
  62400. "uc_output": "1f468-1f3ff",
  62401. "uc_match": "1f468-1f3ff",
  62402. "uc_greedy": "1f468-1f3ff",
  62403. "shortnames": [],
  62404. "category": "people"
  62405. },
  62406. ":man_with_chinese_cap_tone1:": {
  62407. "uc_base": "1f472-1f3fb",
  62408. "uc_output": "1f472-1f3fb",
  62409. "uc_match": "1f472-1f3fb",
  62410. "uc_greedy": "1f472-1f3fb",
  62411. "shortnames": [":man_with_gua_pi_mao_tone1:"],
  62412. "category": "people"
  62413. },
  62414. ":man_with_chinese_cap_tone2:": {
  62415. "uc_base": "1f472-1f3fc",
  62416. "uc_output": "1f472-1f3fc",
  62417. "uc_match": "1f472-1f3fc",
  62418. "uc_greedy": "1f472-1f3fc",
  62419. "shortnames": [":man_with_gua_pi_mao_tone2:"],
  62420. "category": "people"
  62421. },
  62422. ":man_with_chinese_cap_tone3:": {
  62423. "uc_base": "1f472-1f3fd",
  62424. "uc_output": "1f472-1f3fd",
  62425. "uc_match": "1f472-1f3fd",
  62426. "uc_greedy": "1f472-1f3fd",
  62427. "shortnames": [":man_with_gua_pi_mao_tone3:"],
  62428. "category": "people"
  62429. },
  62430. ":man_with_chinese_cap_tone4:": {
  62431. "uc_base": "1f472-1f3fe",
  62432. "uc_output": "1f472-1f3fe",
  62433. "uc_match": "1f472-1f3fe",
  62434. "uc_greedy": "1f472-1f3fe",
  62435. "shortnames": [":man_with_gua_pi_mao_tone4:"],
  62436. "category": "people"
  62437. },
  62438. ":man_with_chinese_cap_tone5:": {
  62439. "uc_base": "1f472-1f3ff",
  62440. "uc_output": "1f472-1f3ff",
  62441. "uc_match": "1f472-1f3ff",
  62442. "uc_greedy": "1f472-1f3ff",
  62443. "shortnames": [":man_with_gua_pi_mao_tone5:"],
  62444. "category": "people"
  62445. },
  62446. ":merperson_tone1:": {
  62447. "uc_base": "1f9dc-1f3fb",
  62448. "uc_output": "1f9dc-1f3fb",
  62449. "uc_match": "1f9dc-1f3fb",
  62450. "uc_greedy": "1f9dc-1f3fb",
  62451. "shortnames": [":merperson_light_skin_tone:"],
  62452. "category": "people"
  62453. },
  62454. ":merperson_tone2:": {
  62455. "uc_base": "1f9dc-1f3fc",
  62456. "uc_output": "1f9dc-1f3fc",
  62457. "uc_match": "1f9dc-1f3fc",
  62458. "uc_greedy": "1f9dc-1f3fc",
  62459. "shortnames": [":merperson_medium_light_skin_tone:"],
  62460. "category": "people"
  62461. },
  62462. ":merperson_tone3:": {
  62463. "uc_base": "1f9dc-1f3fd",
  62464. "uc_output": "1f9dc-1f3fd",
  62465. "uc_match": "1f9dc-1f3fd",
  62466. "uc_greedy": "1f9dc-1f3fd",
  62467. "shortnames": [":merperson_medium_skin_tone:"],
  62468. "category": "people"
  62469. },
  62470. ":merperson_tone4:": {
  62471. "uc_base": "1f9dc-1f3fe",
  62472. "uc_output": "1f9dc-1f3fe",
  62473. "uc_match": "1f9dc-1f3fe",
  62474. "uc_greedy": "1f9dc-1f3fe",
  62475. "shortnames": [":merperson_medium_dark_skin_tone:"],
  62476. "category": "people"
  62477. },
  62478. ":merperson_tone5:": {
  62479. "uc_base": "1f9dc-1f3ff",
  62480. "uc_output": "1f9dc-1f3ff",
  62481. "uc_match": "1f9dc-1f3ff",
  62482. "uc_greedy": "1f9dc-1f3ff",
  62483. "shortnames": [":merperson_dark_skin_tone:"],
  62484. "category": "people"
  62485. },
  62486. ":metal_tone1:": {
  62487. "uc_base": "1f918-1f3fb",
  62488. "uc_output": "1f918-1f3fb",
  62489. "uc_match": "1f918-1f3fb",
  62490. "uc_greedy": "1f918-1f3fb",
  62491. "shortnames": [":sign_of_the_horns_tone1:"],
  62492. "category": "people"
  62493. },
  62494. ":metal_tone2:": {
  62495. "uc_base": "1f918-1f3fc",
  62496. "uc_output": "1f918-1f3fc",
  62497. "uc_match": "1f918-1f3fc",
  62498. "uc_greedy": "1f918-1f3fc",
  62499. "shortnames": [":sign_of_the_horns_tone2:"],
  62500. "category": "people"
  62501. },
  62502. ":metal_tone3:": {
  62503. "uc_base": "1f918-1f3fd",
  62504. "uc_output": "1f918-1f3fd",
  62505. "uc_match": "1f918-1f3fd",
  62506. "uc_greedy": "1f918-1f3fd",
  62507. "shortnames": [":sign_of_the_horns_tone3:"],
  62508. "category": "people"
  62509. },
  62510. ":metal_tone4:": {
  62511. "uc_base": "1f918-1f3fe",
  62512. "uc_output": "1f918-1f3fe",
  62513. "uc_match": "1f918-1f3fe",
  62514. "uc_greedy": "1f918-1f3fe",
  62515. "shortnames": [":sign_of_the_horns_tone4:"],
  62516. "category": "people"
  62517. },
  62518. ":metal_tone5:": {
  62519. "uc_base": "1f918-1f3ff",
  62520. "uc_output": "1f918-1f3ff",
  62521. "uc_match": "1f918-1f3ff",
  62522. "uc_greedy": "1f918-1f3ff",
  62523. "shortnames": [":sign_of_the_horns_tone5:"],
  62524. "category": "people"
  62525. },
  62526. ":middle_finger_tone1:": {
  62527. "uc_base": "1f595-1f3fb",
  62528. "uc_output": "1f595-1f3fb",
  62529. "uc_match": "1f595-1f3fb",
  62530. "uc_greedy": "1f595-1f3fb",
  62531. "shortnames": [":reversed_hand_with_middle_finger_extended_tone1:"],
  62532. "category": "people"
  62533. },
  62534. ":middle_finger_tone2:": {
  62535. "uc_base": "1f595-1f3fc",
  62536. "uc_output": "1f595-1f3fc",
  62537. "uc_match": "1f595-1f3fc",
  62538. "uc_greedy": "1f595-1f3fc",
  62539. "shortnames": [":reversed_hand_with_middle_finger_extended_tone2:"],
  62540. "category": "people"
  62541. },
  62542. ":middle_finger_tone3:": {
  62543. "uc_base": "1f595-1f3fd",
  62544. "uc_output": "1f595-1f3fd",
  62545. "uc_match": "1f595-1f3fd",
  62546. "uc_greedy": "1f595-1f3fd",
  62547. "shortnames": [":reversed_hand_with_middle_finger_extended_tone3:"],
  62548. "category": "people"
  62549. },
  62550. ":middle_finger_tone4:": {
  62551. "uc_base": "1f595-1f3fe",
  62552. "uc_output": "1f595-1f3fe",
  62553. "uc_match": "1f595-1f3fe",
  62554. "uc_greedy": "1f595-1f3fe",
  62555. "shortnames": [":reversed_hand_with_middle_finger_extended_tone4:"],
  62556. "category": "people"
  62557. },
  62558. ":middle_finger_tone5:": {
  62559. "uc_base": "1f595-1f3ff",
  62560. "uc_output": "1f595-1f3ff",
  62561. "uc_match": "1f595-1f3ff",
  62562. "uc_greedy": "1f595-1f3ff",
  62563. "shortnames": [":reversed_hand_with_middle_finger_extended_tone5:"],
  62564. "category": "people"
  62565. },
  62566. ":mrs_claus_tone1:": {
  62567. "uc_base": "1f936-1f3fb",
  62568. "uc_output": "1f936-1f3fb",
  62569. "uc_match": "1f936-1f3fb",
  62570. "uc_greedy": "1f936-1f3fb",
  62571. "shortnames": [":mother_christmas_tone1:"],
  62572. "category": "people"
  62573. },
  62574. ":mrs_claus_tone2:": {
  62575. "uc_base": "1f936-1f3fc",
  62576. "uc_output": "1f936-1f3fc",
  62577. "uc_match": "1f936-1f3fc",
  62578. "uc_greedy": "1f936-1f3fc",
  62579. "shortnames": [":mother_christmas_tone2:"],
  62580. "category": "people"
  62581. },
  62582. ":mrs_claus_tone3:": {
  62583. "uc_base": "1f936-1f3fd",
  62584. "uc_output": "1f936-1f3fd",
  62585. "uc_match": "1f936-1f3fd",
  62586. "uc_greedy": "1f936-1f3fd",
  62587. "shortnames": [":mother_christmas_tone3:"],
  62588. "category": "people"
  62589. },
  62590. ":mrs_claus_tone4:": {
  62591. "uc_base": "1f936-1f3fe",
  62592. "uc_output": "1f936-1f3fe",
  62593. "uc_match": "1f936-1f3fe",
  62594. "uc_greedy": "1f936-1f3fe",
  62595. "shortnames": [":mother_christmas_tone4:"],
  62596. "category": "people"
  62597. },
  62598. ":mrs_claus_tone5:": {
  62599. "uc_base": "1f936-1f3ff",
  62600. "uc_output": "1f936-1f3ff",
  62601. "uc_match": "1f936-1f3ff",
  62602. "uc_greedy": "1f936-1f3ff",
  62603. "shortnames": [":mother_christmas_tone5:"],
  62604. "category": "people"
  62605. },
  62606. ":muscle_tone1:": {
  62607. "uc_base": "1f4aa-1f3fb",
  62608. "uc_output": "1f4aa-1f3fb",
  62609. "uc_match": "1f4aa-1f3fb",
  62610. "uc_greedy": "1f4aa-1f3fb",
  62611. "shortnames": [],
  62612. "category": "people"
  62613. },
  62614. ":muscle_tone2:": {
  62615. "uc_base": "1f4aa-1f3fc",
  62616. "uc_output": "1f4aa-1f3fc",
  62617. "uc_match": "1f4aa-1f3fc",
  62618. "uc_greedy": "1f4aa-1f3fc",
  62619. "shortnames": [],
  62620. "category": "people"
  62621. },
  62622. ":muscle_tone3:": {
  62623. "uc_base": "1f4aa-1f3fd",
  62624. "uc_output": "1f4aa-1f3fd",
  62625. "uc_match": "1f4aa-1f3fd",
  62626. "uc_greedy": "1f4aa-1f3fd",
  62627. "shortnames": [],
  62628. "category": "people"
  62629. },
  62630. ":muscle_tone4:": {
  62631. "uc_base": "1f4aa-1f3fe",
  62632. "uc_output": "1f4aa-1f3fe",
  62633. "uc_match": "1f4aa-1f3fe",
  62634. "uc_greedy": "1f4aa-1f3fe",
  62635. "shortnames": [],
  62636. "category": "people"
  62637. },
  62638. ":muscle_tone5:": {
  62639. "uc_base": "1f4aa-1f3ff",
  62640. "uc_output": "1f4aa-1f3ff",
  62641. "uc_match": "1f4aa-1f3ff",
  62642. "uc_greedy": "1f4aa-1f3ff",
  62643. "shortnames": [],
  62644. "category": "people"
  62645. },
  62646. ":nail_care_tone1:": {
  62647. "uc_base": "1f485-1f3fb",
  62648. "uc_output": "1f485-1f3fb",
  62649. "uc_match": "1f485-1f3fb",
  62650. "uc_greedy": "1f485-1f3fb",
  62651. "shortnames": [],
  62652. "category": "people"
  62653. },
  62654. ":nail_care_tone2:": {
  62655. "uc_base": "1f485-1f3fc",
  62656. "uc_output": "1f485-1f3fc",
  62657. "uc_match": "1f485-1f3fc",
  62658. "uc_greedy": "1f485-1f3fc",
  62659. "shortnames": [],
  62660. "category": "people"
  62661. },
  62662. ":nail_care_tone3:": {
  62663. "uc_base": "1f485-1f3fd",
  62664. "uc_output": "1f485-1f3fd",
  62665. "uc_match": "1f485-1f3fd",
  62666. "uc_greedy": "1f485-1f3fd",
  62667. "shortnames": [],
  62668. "category": "people"
  62669. },
  62670. ":nail_care_tone4:": {
  62671. "uc_base": "1f485-1f3fe",
  62672. "uc_output": "1f485-1f3fe",
  62673. "uc_match": "1f485-1f3fe",
  62674. "uc_greedy": "1f485-1f3fe",
  62675. "shortnames": [],
  62676. "category": "people"
  62677. },
  62678. ":nail_care_tone5:": {
  62679. "uc_base": "1f485-1f3ff",
  62680. "uc_output": "1f485-1f3ff",
  62681. "uc_match": "1f485-1f3ff",
  62682. "uc_greedy": "1f485-1f3ff",
  62683. "shortnames": [],
  62684. "category": "people"
  62685. },
  62686. ":nose_tone1:": {
  62687. "uc_base": "1f443-1f3fb",
  62688. "uc_output": "1f443-1f3fb",
  62689. "uc_match": "1f443-1f3fb",
  62690. "uc_greedy": "1f443-1f3fb",
  62691. "shortnames": [],
  62692. "category": "people"
  62693. },
  62694. ":nose_tone2:": {
  62695. "uc_base": "1f443-1f3fc",
  62696. "uc_output": "1f443-1f3fc",
  62697. "uc_match": "1f443-1f3fc",
  62698. "uc_greedy": "1f443-1f3fc",
  62699. "shortnames": [],
  62700. "category": "people"
  62701. },
  62702. ":nose_tone3:": {
  62703. "uc_base": "1f443-1f3fd",
  62704. "uc_output": "1f443-1f3fd",
  62705. "uc_match": "1f443-1f3fd",
  62706. "uc_greedy": "1f443-1f3fd",
  62707. "shortnames": [],
  62708. "category": "people"
  62709. },
  62710. ":nose_tone4:": {
  62711. "uc_base": "1f443-1f3fe",
  62712. "uc_output": "1f443-1f3fe",
  62713. "uc_match": "1f443-1f3fe",
  62714. "uc_greedy": "1f443-1f3fe",
  62715. "shortnames": [],
  62716. "category": "people"
  62717. },
  62718. ":nose_tone5:": {
  62719. "uc_base": "1f443-1f3ff",
  62720. "uc_output": "1f443-1f3ff",
  62721. "uc_match": "1f443-1f3ff",
  62722. "uc_greedy": "1f443-1f3ff",
  62723. "shortnames": [],
  62724. "category": "people"
  62725. },
  62726. ":ok_hand_tone1:": {
  62727. "uc_base": "1f44c-1f3fb",
  62728. "uc_output": "1f44c-1f3fb",
  62729. "uc_match": "1f44c-1f3fb",
  62730. "uc_greedy": "1f44c-1f3fb",
  62731. "shortnames": [],
  62732. "category": "people"
  62733. },
  62734. ":ok_hand_tone2:": {
  62735. "uc_base": "1f44c-1f3fc",
  62736. "uc_output": "1f44c-1f3fc",
  62737. "uc_match": "1f44c-1f3fc",
  62738. "uc_greedy": "1f44c-1f3fc",
  62739. "shortnames": [],
  62740. "category": "people"
  62741. },
  62742. ":ok_hand_tone3:": {
  62743. "uc_base": "1f44c-1f3fd",
  62744. "uc_output": "1f44c-1f3fd",
  62745. "uc_match": "1f44c-1f3fd",
  62746. "uc_greedy": "1f44c-1f3fd",
  62747. "shortnames": [],
  62748. "category": "people"
  62749. },
  62750. ":ok_hand_tone4:": {
  62751. "uc_base": "1f44c-1f3fe",
  62752. "uc_output": "1f44c-1f3fe",
  62753. "uc_match": "1f44c-1f3fe",
  62754. "uc_greedy": "1f44c-1f3fe",
  62755. "shortnames": [],
  62756. "category": "people"
  62757. },
  62758. ":ok_hand_tone5:": {
  62759. "uc_base": "1f44c-1f3ff",
  62760. "uc_output": "1f44c-1f3ff",
  62761. "uc_match": "1f44c-1f3ff",
  62762. "uc_greedy": "1f44c-1f3ff",
  62763. "shortnames": [],
  62764. "category": "people"
  62765. },
  62766. ":older_adult_tone1:": {
  62767. "uc_base": "1f9d3-1f3fb",
  62768. "uc_output": "1f9d3-1f3fb",
  62769. "uc_match": "1f9d3-1f3fb",
  62770. "uc_greedy": "1f9d3-1f3fb",
  62771. "shortnames": [":older_adult_light_skin_tone:"],
  62772. "category": "people"
  62773. },
  62774. ":older_adult_tone2:": {
  62775. "uc_base": "1f9d3-1f3fc",
  62776. "uc_output": "1f9d3-1f3fc",
  62777. "uc_match": "1f9d3-1f3fc",
  62778. "uc_greedy": "1f9d3-1f3fc",
  62779. "shortnames": [":older_adult_medium_light_skin_tone:"],
  62780. "category": "people"
  62781. },
  62782. ":older_adult_tone3:": {
  62783. "uc_base": "1f9d3-1f3fd",
  62784. "uc_output": "1f9d3-1f3fd",
  62785. "uc_match": "1f9d3-1f3fd",
  62786. "uc_greedy": "1f9d3-1f3fd",
  62787. "shortnames": [":older_adult_medium_skin_tone:"],
  62788. "category": "people"
  62789. },
  62790. ":older_adult_tone4:": {
  62791. "uc_base": "1f9d3-1f3fe",
  62792. "uc_output": "1f9d3-1f3fe",
  62793. "uc_match": "1f9d3-1f3fe",
  62794. "uc_greedy": "1f9d3-1f3fe",
  62795. "shortnames": [":older_adult_medium_dark_skin_tone:"],
  62796. "category": "people"
  62797. },
  62798. ":older_adult_tone5:": {
  62799. "uc_base": "1f9d3-1f3ff",
  62800. "uc_output": "1f9d3-1f3ff",
  62801. "uc_match": "1f9d3-1f3ff",
  62802. "uc_greedy": "1f9d3-1f3ff",
  62803. "shortnames": [":older_adult_dark_skin_tone:"],
  62804. "category": "people"
  62805. },
  62806. ":older_man_tone1:": {
  62807. "uc_base": "1f474-1f3fb",
  62808. "uc_output": "1f474-1f3fb",
  62809. "uc_match": "1f474-1f3fb",
  62810. "uc_greedy": "1f474-1f3fb",
  62811. "shortnames": [],
  62812. "category": "people"
  62813. },
  62814. ":older_man_tone2:": {
  62815. "uc_base": "1f474-1f3fc",
  62816. "uc_output": "1f474-1f3fc",
  62817. "uc_match": "1f474-1f3fc",
  62818. "uc_greedy": "1f474-1f3fc",
  62819. "shortnames": [],
  62820. "category": "people"
  62821. },
  62822. ":older_man_tone3:": {
  62823. "uc_base": "1f474-1f3fd",
  62824. "uc_output": "1f474-1f3fd",
  62825. "uc_match": "1f474-1f3fd",
  62826. "uc_greedy": "1f474-1f3fd",
  62827. "shortnames": [],
  62828. "category": "people"
  62829. },
  62830. ":older_man_tone4:": {
  62831. "uc_base": "1f474-1f3fe",
  62832. "uc_output": "1f474-1f3fe",
  62833. "uc_match": "1f474-1f3fe",
  62834. "uc_greedy": "1f474-1f3fe",
  62835. "shortnames": [],
  62836. "category": "people"
  62837. },
  62838. ":older_man_tone5:": {
  62839. "uc_base": "1f474-1f3ff",
  62840. "uc_output": "1f474-1f3ff",
  62841. "uc_match": "1f474-1f3ff",
  62842. "uc_greedy": "1f474-1f3ff",
  62843. "shortnames": [],
  62844. "category": "people"
  62845. },
  62846. ":older_woman_tone1:": {
  62847. "uc_base": "1f475-1f3fb",
  62848. "uc_output": "1f475-1f3fb",
  62849. "uc_match": "1f475-1f3fb",
  62850. "uc_greedy": "1f475-1f3fb",
  62851. "shortnames": [":grandma_tone1:"],
  62852. "category": "people"
  62853. },
  62854. ":older_woman_tone2:": {
  62855. "uc_base": "1f475-1f3fc",
  62856. "uc_output": "1f475-1f3fc",
  62857. "uc_match": "1f475-1f3fc",
  62858. "uc_greedy": "1f475-1f3fc",
  62859. "shortnames": [":grandma_tone2:"],
  62860. "category": "people"
  62861. },
  62862. ":older_woman_tone3:": {
  62863. "uc_base": "1f475-1f3fd",
  62864. "uc_output": "1f475-1f3fd",
  62865. "uc_match": "1f475-1f3fd",
  62866. "uc_greedy": "1f475-1f3fd",
  62867. "shortnames": [":grandma_tone3:"],
  62868. "category": "people"
  62869. },
  62870. ":older_woman_tone4:": {
  62871. "uc_base": "1f475-1f3fe",
  62872. "uc_output": "1f475-1f3fe",
  62873. "uc_match": "1f475-1f3fe",
  62874. "uc_greedy": "1f475-1f3fe",
  62875. "shortnames": [":grandma_tone4:"],
  62876. "category": "people"
  62877. },
  62878. ":older_woman_tone5:": {
  62879. "uc_base": "1f475-1f3ff",
  62880. "uc_output": "1f475-1f3ff",
  62881. "uc_match": "1f475-1f3ff",
  62882. "uc_greedy": "1f475-1f3ff",
  62883. "shortnames": [":grandma_tone5:"],
  62884. "category": "people"
  62885. },
  62886. ":open_hands_tone1:": {
  62887. "uc_base": "1f450-1f3fb",
  62888. "uc_output": "1f450-1f3fb",
  62889. "uc_match": "1f450-1f3fb",
  62890. "uc_greedy": "1f450-1f3fb",
  62891. "shortnames": [],
  62892. "category": "people"
  62893. },
  62894. ":open_hands_tone2:": {
  62895. "uc_base": "1f450-1f3fc",
  62896. "uc_output": "1f450-1f3fc",
  62897. "uc_match": "1f450-1f3fc",
  62898. "uc_greedy": "1f450-1f3fc",
  62899. "shortnames": [],
  62900. "category": "people"
  62901. },
  62902. ":open_hands_tone3:": {
  62903. "uc_base": "1f450-1f3fd",
  62904. "uc_output": "1f450-1f3fd",
  62905. "uc_match": "1f450-1f3fd",
  62906. "uc_greedy": "1f450-1f3fd",
  62907. "shortnames": [],
  62908. "category": "people"
  62909. },
  62910. ":open_hands_tone4:": {
  62911. "uc_base": "1f450-1f3fe",
  62912. "uc_output": "1f450-1f3fe",
  62913. "uc_match": "1f450-1f3fe",
  62914. "uc_greedy": "1f450-1f3fe",
  62915. "shortnames": [],
  62916. "category": "people"
  62917. },
  62918. ":open_hands_tone5:": {
  62919. "uc_base": "1f450-1f3ff",
  62920. "uc_output": "1f450-1f3ff",
  62921. "uc_match": "1f450-1f3ff",
  62922. "uc_greedy": "1f450-1f3ff",
  62923. "shortnames": [],
  62924. "category": "people"
  62925. },
  62926. ":palms_up_together_tone1:": {
  62927. "uc_base": "1f932-1f3fb",
  62928. "uc_output": "1f932-1f3fb",
  62929. "uc_match": "1f932-1f3fb",
  62930. "uc_greedy": "1f932-1f3fb",
  62931. "shortnames": [":palms_up_together_light_skin_tone:"],
  62932. "category": "people"
  62933. },
  62934. ":palms_up_together_tone2:": {
  62935. "uc_base": "1f932-1f3fc",
  62936. "uc_output": "1f932-1f3fc",
  62937. "uc_match": "1f932-1f3fc",
  62938. "uc_greedy": "1f932-1f3fc",
  62939. "shortnames": [":palms_up_together_medium_light_skin_tone:"],
  62940. "category": "people"
  62941. },
  62942. ":palms_up_together_tone3:": {
  62943. "uc_base": "1f932-1f3fd",
  62944. "uc_output": "1f932-1f3fd",
  62945. "uc_match": "1f932-1f3fd",
  62946. "uc_greedy": "1f932-1f3fd",
  62947. "shortnames": [":palms_up_together_medium_skin_tone:"],
  62948. "category": "people"
  62949. },
  62950. ":palms_up_together_tone4:": {
  62951. "uc_base": "1f932-1f3fe",
  62952. "uc_output": "1f932-1f3fe",
  62953. "uc_match": "1f932-1f3fe",
  62954. "uc_greedy": "1f932-1f3fe",
  62955. "shortnames": [":palms_up_together_medium_dark_skin_tone:"],
  62956. "category": "people"
  62957. },
  62958. ":palms_up_together_tone5:": {
  62959. "uc_base": "1f932-1f3ff",
  62960. "uc_output": "1f932-1f3ff",
  62961. "uc_match": "1f932-1f3ff",
  62962. "uc_greedy": "1f932-1f3ff",
  62963. "shortnames": [":palms_up_together_dark_skin_tone:"],
  62964. "category": "people"
  62965. },
  62966. ":person_biking_tone1:": {
  62967. "uc_base": "1f6b4-1f3fb",
  62968. "uc_output": "1f6b4-1f3fb",
  62969. "uc_match": "1f6b4-1f3fb",
  62970. "uc_greedy": "1f6b4-1f3fb",
  62971. "shortnames": [":bicyclist_tone1:"],
  62972. "category": "activity"
  62973. },
  62974. ":person_biking_tone2:": {
  62975. "uc_base": "1f6b4-1f3fc",
  62976. "uc_output": "1f6b4-1f3fc",
  62977. "uc_match": "1f6b4-1f3fc",
  62978. "uc_greedy": "1f6b4-1f3fc",
  62979. "shortnames": [":bicyclist_tone2:"],
  62980. "category": "activity"
  62981. },
  62982. ":person_biking_tone3:": {
  62983. "uc_base": "1f6b4-1f3fd",
  62984. "uc_output": "1f6b4-1f3fd",
  62985. "uc_match": "1f6b4-1f3fd",
  62986. "uc_greedy": "1f6b4-1f3fd",
  62987. "shortnames": [":bicyclist_tone3:"],
  62988. "category": "activity"
  62989. },
  62990. ":person_biking_tone4:": {
  62991. "uc_base": "1f6b4-1f3fe",
  62992. "uc_output": "1f6b4-1f3fe",
  62993. "uc_match": "1f6b4-1f3fe",
  62994. "uc_greedy": "1f6b4-1f3fe",
  62995. "shortnames": [":bicyclist_tone4:"],
  62996. "category": "activity"
  62997. },
  62998. ":person_biking_tone5:": {
  62999. "uc_base": "1f6b4-1f3ff",
  63000. "uc_output": "1f6b4-1f3ff",
  63001. "uc_match": "1f6b4-1f3ff",
  63002. "uc_greedy": "1f6b4-1f3ff",
  63003. "shortnames": [":bicyclist_tone5:"],
  63004. "category": "activity"
  63005. },
  63006. ":person_bowing_tone1:": {
  63007. "uc_base": "1f647-1f3fb",
  63008. "uc_output": "1f647-1f3fb",
  63009. "uc_match": "1f647-1f3fb",
  63010. "uc_greedy": "1f647-1f3fb",
  63011. "shortnames": [":bow_tone1:"],
  63012. "category": "people"
  63013. },
  63014. ":person_bowing_tone2:": {
  63015. "uc_base": "1f647-1f3fc",
  63016. "uc_output": "1f647-1f3fc",
  63017. "uc_match": "1f647-1f3fc",
  63018. "uc_greedy": "1f647-1f3fc",
  63019. "shortnames": [":bow_tone2:"],
  63020. "category": "people"
  63021. },
  63022. ":person_bowing_tone3:": {
  63023. "uc_base": "1f647-1f3fd",
  63024. "uc_output": "1f647-1f3fd",
  63025. "uc_match": "1f647-1f3fd",
  63026. "uc_greedy": "1f647-1f3fd",
  63027. "shortnames": [":bow_tone3:"],
  63028. "category": "people"
  63029. },
  63030. ":person_bowing_tone4:": {
  63031. "uc_base": "1f647-1f3fe",
  63032. "uc_output": "1f647-1f3fe",
  63033. "uc_match": "1f647-1f3fe",
  63034. "uc_greedy": "1f647-1f3fe",
  63035. "shortnames": [":bow_tone4:"],
  63036. "category": "people"
  63037. },
  63038. ":person_bowing_tone5:": {
  63039. "uc_base": "1f647-1f3ff",
  63040. "uc_output": "1f647-1f3ff",
  63041. "uc_match": "1f647-1f3ff",
  63042. "uc_greedy": "1f647-1f3ff",
  63043. "shortnames": [":bow_tone5:"],
  63044. "category": "people"
  63045. },
  63046. ":person_climbing_tone1:": {
  63047. "uc_base": "1f9d7-1f3fb",
  63048. "uc_output": "1f9d7-1f3fb",
  63049. "uc_match": "1f9d7-1f3fb",
  63050. "uc_greedy": "1f9d7-1f3fb",
  63051. "shortnames": [":person_climbing_light_skin_tone:"],
  63052. "category": "activity"
  63053. },
  63054. ":person_climbing_tone2:": {
  63055. "uc_base": "1f9d7-1f3fc",
  63056. "uc_output": "1f9d7-1f3fc",
  63057. "uc_match": "1f9d7-1f3fc",
  63058. "uc_greedy": "1f9d7-1f3fc",
  63059. "shortnames": [":person_climbing_medium_light_skin_tone:"],
  63060. "category": "activity"
  63061. },
  63062. ":person_climbing_tone3:": {
  63063. "uc_base": "1f9d7-1f3fd",
  63064. "uc_output": "1f9d7-1f3fd",
  63065. "uc_match": "1f9d7-1f3fd",
  63066. "uc_greedy": "1f9d7-1f3fd",
  63067. "shortnames": [":person_climbing_medium_skin_tone:"],
  63068. "category": "activity"
  63069. },
  63070. ":person_climbing_tone4:": {
  63071. "uc_base": "1f9d7-1f3fe",
  63072. "uc_output": "1f9d7-1f3fe",
  63073. "uc_match": "1f9d7-1f3fe",
  63074. "uc_greedy": "1f9d7-1f3fe",
  63075. "shortnames": [":person_climbing_medium_dark_skin_tone:"],
  63076. "category": "activity"
  63077. },
  63078. ":person_climbing_tone5:": {
  63079. "uc_base": "1f9d7-1f3ff",
  63080. "uc_output": "1f9d7-1f3ff",
  63081. "uc_match": "1f9d7-1f3ff",
  63082. "uc_greedy": "1f9d7-1f3ff",
  63083. "shortnames": [":person_climbing_dark_skin_tone:"],
  63084. "category": "activity"
  63085. },
  63086. ":person_doing_cartwheel_tone1:": {
  63087. "uc_base": "1f938-1f3fb",
  63088. "uc_output": "1f938-1f3fb",
  63089. "uc_match": "1f938-1f3fb",
  63090. "uc_greedy": "1f938-1f3fb",
  63091. "shortnames": [":cartwheel_tone1:"],
  63092. "category": "activity"
  63093. },
  63094. ":person_doing_cartwheel_tone2:": {
  63095. "uc_base": "1f938-1f3fc",
  63096. "uc_output": "1f938-1f3fc",
  63097. "uc_match": "1f938-1f3fc",
  63098. "uc_greedy": "1f938-1f3fc",
  63099. "shortnames": [":cartwheel_tone2:"],
  63100. "category": "activity"
  63101. },
  63102. ":person_doing_cartwheel_tone3:": {
  63103. "uc_base": "1f938-1f3fd",
  63104. "uc_output": "1f938-1f3fd",
  63105. "uc_match": "1f938-1f3fd",
  63106. "uc_greedy": "1f938-1f3fd",
  63107. "shortnames": [":cartwheel_tone3:"],
  63108. "category": "activity"
  63109. },
  63110. ":person_doing_cartwheel_tone4:": {
  63111. "uc_base": "1f938-1f3fe",
  63112. "uc_output": "1f938-1f3fe",
  63113. "uc_match": "1f938-1f3fe",
  63114. "uc_greedy": "1f938-1f3fe",
  63115. "shortnames": [":cartwheel_tone4:"],
  63116. "category": "activity"
  63117. },
  63118. ":person_doing_cartwheel_tone5:": {
  63119. "uc_base": "1f938-1f3ff",
  63120. "uc_output": "1f938-1f3ff",
  63121. "uc_match": "1f938-1f3ff",
  63122. "uc_greedy": "1f938-1f3ff",
  63123. "shortnames": [":cartwheel_tone5:"],
  63124. "category": "activity"
  63125. },
  63126. ":person_facepalming_tone1:": {
  63127. "uc_base": "1f926-1f3fb",
  63128. "uc_output": "1f926-1f3fb",
  63129. "uc_match": "1f926-1f3fb",
  63130. "uc_greedy": "1f926-1f3fb",
  63131. "shortnames": [":face_palm_tone1:", ":facepalm_tone1:"],
  63132. "category": "people"
  63133. },
  63134. ":person_facepalming_tone2:": {
  63135. "uc_base": "1f926-1f3fc",
  63136. "uc_output": "1f926-1f3fc",
  63137. "uc_match": "1f926-1f3fc",
  63138. "uc_greedy": "1f926-1f3fc",
  63139. "shortnames": [":face_palm_tone2:", ":facepalm_tone2:"],
  63140. "category": "people"
  63141. },
  63142. ":person_facepalming_tone3:": {
  63143. "uc_base": "1f926-1f3fd",
  63144. "uc_output": "1f926-1f3fd",
  63145. "uc_match": "1f926-1f3fd",
  63146. "uc_greedy": "1f926-1f3fd",
  63147. "shortnames": [":face_palm_tone3:", ":facepalm_tone3:"],
  63148. "category": "people"
  63149. },
  63150. ":person_facepalming_tone4:": {
  63151. "uc_base": "1f926-1f3fe",
  63152. "uc_output": "1f926-1f3fe",
  63153. "uc_match": "1f926-1f3fe",
  63154. "uc_greedy": "1f926-1f3fe",
  63155. "shortnames": [":face_palm_tone4:", ":facepalm_tone4:"],
  63156. "category": "people"
  63157. },
  63158. ":person_facepalming_tone5:": {
  63159. "uc_base": "1f926-1f3ff",
  63160. "uc_output": "1f926-1f3ff",
  63161. "uc_match": "1f926-1f3ff",
  63162. "uc_greedy": "1f926-1f3ff",
  63163. "shortnames": [":face_palm_tone5:", ":facepalm_tone5:"],
  63164. "category": "people"
  63165. },
  63166. ":person_frowning_tone1:": {
  63167. "uc_base": "1f64d-1f3fb",
  63168. "uc_output": "1f64d-1f3fb",
  63169. "uc_match": "1f64d-1f3fb",
  63170. "uc_greedy": "1f64d-1f3fb",
  63171. "shortnames": [],
  63172. "category": "people"
  63173. },
  63174. ":person_frowning_tone2:": {
  63175. "uc_base": "1f64d-1f3fc",
  63176. "uc_output": "1f64d-1f3fc",
  63177. "uc_match": "1f64d-1f3fc",
  63178. "uc_greedy": "1f64d-1f3fc",
  63179. "shortnames": [],
  63180. "category": "people"
  63181. },
  63182. ":person_frowning_tone3:": {
  63183. "uc_base": "1f64d-1f3fd",
  63184. "uc_output": "1f64d-1f3fd",
  63185. "uc_match": "1f64d-1f3fd",
  63186. "uc_greedy": "1f64d-1f3fd",
  63187. "shortnames": [],
  63188. "category": "people"
  63189. },
  63190. ":person_frowning_tone4:": {
  63191. "uc_base": "1f64d-1f3fe",
  63192. "uc_output": "1f64d-1f3fe",
  63193. "uc_match": "1f64d-1f3fe",
  63194. "uc_greedy": "1f64d-1f3fe",
  63195. "shortnames": [],
  63196. "category": "people"
  63197. },
  63198. ":person_frowning_tone5:": {
  63199. "uc_base": "1f64d-1f3ff",
  63200. "uc_output": "1f64d-1f3ff",
  63201. "uc_match": "1f64d-1f3ff",
  63202. "uc_greedy": "1f64d-1f3ff",
  63203. "shortnames": [],
  63204. "category": "people"
  63205. },
  63206. ":person_gesturing_no_tone1:": {
  63207. "uc_base": "1f645-1f3fb",
  63208. "uc_output": "1f645-1f3fb",
  63209. "uc_match": "1f645-1f3fb",
  63210. "uc_greedy": "1f645-1f3fb",
  63211. "shortnames": [":no_good_tone1:"],
  63212. "category": "people"
  63213. },
  63214. ":person_gesturing_no_tone2:": {
  63215. "uc_base": "1f645-1f3fc",
  63216. "uc_output": "1f645-1f3fc",
  63217. "uc_match": "1f645-1f3fc",
  63218. "uc_greedy": "1f645-1f3fc",
  63219. "shortnames": [":no_good_tone2:"],
  63220. "category": "people"
  63221. },
  63222. ":person_gesturing_no_tone3:": {
  63223. "uc_base": "1f645-1f3fd",
  63224. "uc_output": "1f645-1f3fd",
  63225. "uc_match": "1f645-1f3fd",
  63226. "uc_greedy": "1f645-1f3fd",
  63227. "shortnames": [":no_good_tone3:"],
  63228. "category": "people"
  63229. },
  63230. ":person_gesturing_no_tone4:": {
  63231. "uc_base": "1f645-1f3fe",
  63232. "uc_output": "1f645-1f3fe",
  63233. "uc_match": "1f645-1f3fe",
  63234. "uc_greedy": "1f645-1f3fe",
  63235. "shortnames": [":no_good_tone4:"],
  63236. "category": "people"
  63237. },
  63238. ":person_gesturing_no_tone5:": {
  63239. "uc_base": "1f645-1f3ff",
  63240. "uc_output": "1f645-1f3ff",
  63241. "uc_match": "1f645-1f3ff",
  63242. "uc_greedy": "1f645-1f3ff",
  63243. "shortnames": [":no_good_tone5:"],
  63244. "category": "people"
  63245. },
  63246. ":person_gesturing_ok_tone1:": {
  63247. "uc_base": "1f646-1f3fb",
  63248. "uc_output": "1f646-1f3fb",
  63249. "uc_match": "1f646-1f3fb",
  63250. "uc_greedy": "1f646-1f3fb",
  63251. "shortnames": [":ok_woman_tone1:"],
  63252. "category": "people"
  63253. },
  63254. ":person_gesturing_ok_tone2:": {
  63255. "uc_base": "1f646-1f3fc",
  63256. "uc_output": "1f646-1f3fc",
  63257. "uc_match": "1f646-1f3fc",
  63258. "uc_greedy": "1f646-1f3fc",
  63259. "shortnames": [":ok_woman_tone2:"],
  63260. "category": "people"
  63261. },
  63262. ":person_gesturing_ok_tone3:": {
  63263. "uc_base": "1f646-1f3fd",
  63264. "uc_output": "1f646-1f3fd",
  63265. "uc_match": "1f646-1f3fd",
  63266. "uc_greedy": "1f646-1f3fd",
  63267. "shortnames": [":ok_woman_tone3:"],
  63268. "category": "people"
  63269. },
  63270. ":person_gesturing_ok_tone4:": {
  63271. "uc_base": "1f646-1f3fe",
  63272. "uc_output": "1f646-1f3fe",
  63273. "uc_match": "1f646-1f3fe",
  63274. "uc_greedy": "1f646-1f3fe",
  63275. "shortnames": [":ok_woman_tone4:"],
  63276. "category": "people"
  63277. },
  63278. ":person_gesturing_ok_tone5:": {
  63279. "uc_base": "1f646-1f3ff",
  63280. "uc_output": "1f646-1f3ff",
  63281. "uc_match": "1f646-1f3ff",
  63282. "uc_greedy": "1f646-1f3ff",
  63283. "shortnames": [":ok_woman_tone5:"],
  63284. "category": "people"
  63285. },
  63286. ":person_getting_haircut_tone1:": {
  63287. "uc_base": "1f487-1f3fb",
  63288. "uc_output": "1f487-1f3fb",
  63289. "uc_match": "1f487-1f3fb",
  63290. "uc_greedy": "1f487-1f3fb",
  63291. "shortnames": [":haircut_tone1:"],
  63292. "category": "people"
  63293. },
  63294. ":person_getting_haircut_tone2:": {
  63295. "uc_base": "1f487-1f3fc",
  63296. "uc_output": "1f487-1f3fc",
  63297. "uc_match": "1f487-1f3fc",
  63298. "uc_greedy": "1f487-1f3fc",
  63299. "shortnames": [":haircut_tone2:"],
  63300. "category": "people"
  63301. },
  63302. ":person_getting_haircut_tone3:": {
  63303. "uc_base": "1f487-1f3fd",
  63304. "uc_output": "1f487-1f3fd",
  63305. "uc_match": "1f487-1f3fd",
  63306. "uc_greedy": "1f487-1f3fd",
  63307. "shortnames": [":haircut_tone3:"],
  63308. "category": "people"
  63309. },
  63310. ":person_getting_haircut_tone4:": {
  63311. "uc_base": "1f487-1f3fe",
  63312. "uc_output": "1f487-1f3fe",
  63313. "uc_match": "1f487-1f3fe",
  63314. "uc_greedy": "1f487-1f3fe",
  63315. "shortnames": [":haircut_tone4:"],
  63316. "category": "people"
  63317. },
  63318. ":person_getting_haircut_tone5:": {
  63319. "uc_base": "1f487-1f3ff",
  63320. "uc_output": "1f487-1f3ff",
  63321. "uc_match": "1f487-1f3ff",
  63322. "uc_greedy": "1f487-1f3ff",
  63323. "shortnames": [":haircut_tone5:"],
  63324. "category": "people"
  63325. },
  63326. ":person_getting_massage_tone1:": {
  63327. "uc_base": "1f486-1f3fb",
  63328. "uc_output": "1f486-1f3fb",
  63329. "uc_match": "1f486-1f3fb",
  63330. "uc_greedy": "1f486-1f3fb",
  63331. "shortnames": [":massage_tone1:"],
  63332. "category": "people"
  63333. },
  63334. ":person_getting_massage_tone2:": {
  63335. "uc_base": "1f486-1f3fc",
  63336. "uc_output": "1f486-1f3fc",
  63337. "uc_match": "1f486-1f3fc",
  63338. "uc_greedy": "1f486-1f3fc",
  63339. "shortnames": [":massage_tone2:"],
  63340. "category": "people"
  63341. },
  63342. ":person_getting_massage_tone3:": {
  63343. "uc_base": "1f486-1f3fd",
  63344. "uc_output": "1f486-1f3fd",
  63345. "uc_match": "1f486-1f3fd",
  63346. "uc_greedy": "1f486-1f3fd",
  63347. "shortnames": [":massage_tone3:"],
  63348. "category": "people"
  63349. },
  63350. ":person_getting_massage_tone4:": {
  63351. "uc_base": "1f486-1f3fe",
  63352. "uc_output": "1f486-1f3fe",
  63353. "uc_match": "1f486-1f3fe",
  63354. "uc_greedy": "1f486-1f3fe",
  63355. "shortnames": [":massage_tone4:"],
  63356. "category": "people"
  63357. },
  63358. ":person_getting_massage_tone5:": {
  63359. "uc_base": "1f486-1f3ff",
  63360. "uc_output": "1f486-1f3ff",
  63361. "uc_match": "1f486-1f3ff",
  63362. "uc_greedy": "1f486-1f3ff",
  63363. "shortnames": [":massage_tone5:"],
  63364. "category": "people"
  63365. },
  63366. ":person_golfing_tone1:": {
  63367. "uc_base": "1f3cc-1f3fb",
  63368. "uc_output": "1f3cc-1f3fb",
  63369. "uc_match": "1f3cc-fe0f-1f3fb",
  63370. "uc_greedy": "1f3cc-fe0f-1f3fb",
  63371. "shortnames": [":person_golfing_light_skin_tone:"],
  63372. "category": "activity"
  63373. },
  63374. ":person_golfing_tone2:": {
  63375. "uc_base": "1f3cc-1f3fc",
  63376. "uc_output": "1f3cc-1f3fc",
  63377. "uc_match": "1f3cc-fe0f-1f3fc",
  63378. "uc_greedy": "1f3cc-fe0f-1f3fc",
  63379. "shortnames": [":person_golfing_medium_light_skin_tone:"],
  63380. "category": "activity"
  63381. },
  63382. ":person_golfing_tone3:": {
  63383. "uc_base": "1f3cc-1f3fd",
  63384. "uc_output": "1f3cc-1f3fd",
  63385. "uc_match": "1f3cc-fe0f-1f3fd",
  63386. "uc_greedy": "1f3cc-fe0f-1f3fd",
  63387. "shortnames": [":person_golfing_medium_skin_tone:"],
  63388. "category": "activity"
  63389. },
  63390. ":person_golfing_tone4:": {
  63391. "uc_base": "1f3cc-1f3fe",
  63392. "uc_output": "1f3cc-1f3fe",
  63393. "uc_match": "1f3cc-fe0f-1f3fe",
  63394. "uc_greedy": "1f3cc-fe0f-1f3fe",
  63395. "shortnames": [":person_golfing_medium_dark_skin_tone:"],
  63396. "category": "activity"
  63397. },
  63398. ":person_golfing_tone5:": {
  63399. "uc_base": "1f3cc-1f3ff",
  63400. "uc_output": "1f3cc-1f3ff",
  63401. "uc_match": "1f3cc-fe0f-1f3ff",
  63402. "uc_greedy": "1f3cc-fe0f-1f3ff",
  63403. "shortnames": [":person_golfing_dark_skin_tone:"],
  63404. "category": "activity"
  63405. },
  63406. ":person_in_bed_tone1:": {
  63407. "uc_base": "1f6cc-1f3fb",
  63408. "uc_output": "1f6cc-1f3fb",
  63409. "uc_match": "1f6cc-1f3fb",
  63410. "uc_greedy": "1f6cc-1f3fb",
  63411. "shortnames": [":person_in_bed_light_skin_tone:"],
  63412. "category": "objects"
  63413. },
  63414. ":person_in_bed_tone2:": {
  63415. "uc_base": "1f6cc-1f3fc",
  63416. "uc_output": "1f6cc-1f3fc",
  63417. "uc_match": "1f6cc-1f3fc",
  63418. "uc_greedy": "1f6cc-1f3fc",
  63419. "shortnames": [":person_in_bed_medium_light_skin_tone:"],
  63420. "category": "objects"
  63421. },
  63422. ":person_in_bed_tone3:": {
  63423. "uc_base": "1f6cc-1f3fd",
  63424. "uc_output": "1f6cc-1f3fd",
  63425. "uc_match": "1f6cc-1f3fd",
  63426. "uc_greedy": "1f6cc-1f3fd",
  63427. "shortnames": [":person_in_bed_medium_skin_tone:"],
  63428. "category": "objects"
  63429. },
  63430. ":person_in_bed_tone4:": {
  63431. "uc_base": "1f6cc-1f3fe",
  63432. "uc_output": "1f6cc-1f3fe",
  63433. "uc_match": "1f6cc-1f3fe",
  63434. "uc_greedy": "1f6cc-1f3fe",
  63435. "shortnames": [":person_in_bed_medium_dark_skin_tone:"],
  63436. "category": "objects"
  63437. },
  63438. ":person_in_bed_tone5:": {
  63439. "uc_base": "1f6cc-1f3ff",
  63440. "uc_output": "1f6cc-1f3ff",
  63441. "uc_match": "1f6cc-1f3ff",
  63442. "uc_greedy": "1f6cc-1f3ff",
  63443. "shortnames": [":person_in_bed_dark_skin_tone:"],
  63444. "category": "objects"
  63445. },
  63446. ":person_in_lotus_position_tone1:": {
  63447. "uc_base": "1f9d8-1f3fb",
  63448. "uc_output": "1f9d8-1f3fb",
  63449. "uc_match": "1f9d8-1f3fb",
  63450. "uc_greedy": "1f9d8-1f3fb",
  63451. "shortnames": [":person_in_lotus_position_light_skin_tone:"],
  63452. "category": "activity"
  63453. },
  63454. ":person_in_lotus_position_tone2:": {
  63455. "uc_base": "1f9d8-1f3fc",
  63456. "uc_output": "1f9d8-1f3fc",
  63457. "uc_match": "1f9d8-1f3fc",
  63458. "uc_greedy": "1f9d8-1f3fc",
  63459. "shortnames": [":person_in_lotus_position_medium_light_skin_tone:"],
  63460. "category": "activity"
  63461. },
  63462. ":person_in_lotus_position_tone3:": {
  63463. "uc_base": "1f9d8-1f3fd",
  63464. "uc_output": "1f9d8-1f3fd",
  63465. "uc_match": "1f9d8-1f3fd",
  63466. "uc_greedy": "1f9d8-1f3fd",
  63467. "shortnames": [":person_in_lotus_position_medium_skin_tone:"],
  63468. "category": "activity"
  63469. },
  63470. ":person_in_lotus_position_tone4:": {
  63471. "uc_base": "1f9d8-1f3fe",
  63472. "uc_output": "1f9d8-1f3fe",
  63473. "uc_match": "1f9d8-1f3fe",
  63474. "uc_greedy": "1f9d8-1f3fe",
  63475. "shortnames": [":person_in_lotus_position_medium_dark_skin_tone:"],
  63476. "category": "activity"
  63477. },
  63478. ":person_in_lotus_position_tone5:": {
  63479. "uc_base": "1f9d8-1f3ff",
  63480. "uc_output": "1f9d8-1f3ff",
  63481. "uc_match": "1f9d8-1f3ff",
  63482. "uc_greedy": "1f9d8-1f3ff",
  63483. "shortnames": [":person_in_lotus_position_dark_skin_tone:"],
  63484. "category": "activity"
  63485. },
  63486. ":person_in_steamy_room_tone1:": {
  63487. "uc_base": "1f9d6-1f3fb",
  63488. "uc_output": "1f9d6-1f3fb",
  63489. "uc_match": "1f9d6-1f3fb",
  63490. "uc_greedy": "1f9d6-1f3fb",
  63491. "shortnames": [":person_in_steamy_room_light_skin_tone:"],
  63492. "category": "people"
  63493. },
  63494. ":person_in_steamy_room_tone2:": {
  63495. "uc_base": "1f9d6-1f3fc",
  63496. "uc_output": "1f9d6-1f3fc",
  63497. "uc_match": "1f9d6-1f3fc",
  63498. "uc_greedy": "1f9d6-1f3fc",
  63499. "shortnames": [":person_in_steamy_room_medium_light_skin_tone:"],
  63500. "category": "people"
  63501. },
  63502. ":person_in_steamy_room_tone3:": {
  63503. "uc_base": "1f9d6-1f3fd",
  63504. "uc_output": "1f9d6-1f3fd",
  63505. "uc_match": "1f9d6-1f3fd",
  63506. "uc_greedy": "1f9d6-1f3fd",
  63507. "shortnames": [":person_in_steamy_room_medium_skin_tone:"],
  63508. "category": "people"
  63509. },
  63510. ":person_in_steamy_room_tone4:": {
  63511. "uc_base": "1f9d6-1f3fe",
  63512. "uc_output": "1f9d6-1f3fe",
  63513. "uc_match": "1f9d6-1f3fe",
  63514. "uc_greedy": "1f9d6-1f3fe",
  63515. "shortnames": [":person_in_steamy_room_medium_dark_skin_tone:"],
  63516. "category": "people"
  63517. },
  63518. ":person_in_steamy_room_tone5:": {
  63519. "uc_base": "1f9d6-1f3ff",
  63520. "uc_output": "1f9d6-1f3ff",
  63521. "uc_match": "1f9d6-1f3ff",
  63522. "uc_greedy": "1f9d6-1f3ff",
  63523. "shortnames": [":person_in_steamy_room_dark_skin_tone:"],
  63524. "category": "people"
  63525. },
  63526. ":person_juggling_tone1:": {
  63527. "uc_base": "1f939-1f3fb",
  63528. "uc_output": "1f939-1f3fb",
  63529. "uc_match": "1f939-1f3fb",
  63530. "uc_greedy": "1f939-1f3fb",
  63531. "shortnames": [":juggling_tone1:", ":juggler_tone1:"],
  63532. "category": "activity"
  63533. },
  63534. ":person_juggling_tone2:": {
  63535. "uc_base": "1f939-1f3fc",
  63536. "uc_output": "1f939-1f3fc",
  63537. "uc_match": "1f939-1f3fc",
  63538. "uc_greedy": "1f939-1f3fc",
  63539. "shortnames": [":juggling_tone2:", ":juggler_tone2:"],
  63540. "category": "activity"
  63541. },
  63542. ":person_juggling_tone3:": {
  63543. "uc_base": "1f939-1f3fd",
  63544. "uc_output": "1f939-1f3fd",
  63545. "uc_match": "1f939-1f3fd",
  63546. "uc_greedy": "1f939-1f3fd",
  63547. "shortnames": [":juggling_tone3:", ":juggler_tone3:"],
  63548. "category": "activity"
  63549. },
  63550. ":person_juggling_tone4:": {
  63551. "uc_base": "1f939-1f3fe",
  63552. "uc_output": "1f939-1f3fe",
  63553. "uc_match": "1f939-1f3fe",
  63554. "uc_greedy": "1f939-1f3fe",
  63555. "shortnames": [":juggling_tone4:", ":juggler_tone4:"],
  63556. "category": "activity"
  63557. },
  63558. ":person_juggling_tone5:": {
  63559. "uc_base": "1f939-1f3ff",
  63560. "uc_output": "1f939-1f3ff",
  63561. "uc_match": "1f939-1f3ff",
  63562. "uc_greedy": "1f939-1f3ff",
  63563. "shortnames": [":juggling_tone5:", ":juggler_tone5:"],
  63564. "category": "activity"
  63565. },
  63566. ":person_lifting_weights_tone1:": {
  63567. "uc_base": "1f3cb-1f3fb",
  63568. "uc_output": "1f3cb-1f3fb",
  63569. "uc_match": "1f3cb-fe0f-1f3fb",
  63570. "uc_greedy": "1f3cb-fe0f-1f3fb",
  63571. "shortnames": [":lifter_tone1:", ":weight_lifter_tone1:"],
  63572. "category": "activity"
  63573. },
  63574. ":person_lifting_weights_tone2:": {
  63575. "uc_base": "1f3cb-1f3fc",
  63576. "uc_output": "1f3cb-1f3fc",
  63577. "uc_match": "1f3cb-fe0f-1f3fc",
  63578. "uc_greedy": "1f3cb-fe0f-1f3fc",
  63579. "shortnames": [":lifter_tone2:", ":weight_lifter_tone2:"],
  63580. "category": "activity"
  63581. },
  63582. ":person_lifting_weights_tone3:": {
  63583. "uc_base": "1f3cb-1f3fd",
  63584. "uc_output": "1f3cb-1f3fd",
  63585. "uc_match": "1f3cb-fe0f-1f3fd",
  63586. "uc_greedy": "1f3cb-fe0f-1f3fd",
  63587. "shortnames": [":lifter_tone3:", ":weight_lifter_tone3:"],
  63588. "category": "activity"
  63589. },
  63590. ":person_lifting_weights_tone4:": {
  63591. "uc_base": "1f3cb-1f3fe",
  63592. "uc_output": "1f3cb-1f3fe",
  63593. "uc_match": "1f3cb-fe0f-1f3fe",
  63594. "uc_greedy": "1f3cb-fe0f-1f3fe",
  63595. "shortnames": [":lifter_tone4:", ":weight_lifter_tone4:"],
  63596. "category": "activity"
  63597. },
  63598. ":person_lifting_weights_tone5:": {
  63599. "uc_base": "1f3cb-1f3ff",
  63600. "uc_output": "1f3cb-1f3ff",
  63601. "uc_match": "1f3cb-fe0f-1f3ff",
  63602. "uc_greedy": "1f3cb-fe0f-1f3ff",
  63603. "shortnames": [":lifter_tone5:", ":weight_lifter_tone5:"],
  63604. "category": "activity"
  63605. },
  63606. ":person_mountain_biking_tone1:": {
  63607. "uc_base": "1f6b5-1f3fb",
  63608. "uc_output": "1f6b5-1f3fb",
  63609. "uc_match": "1f6b5-1f3fb",
  63610. "uc_greedy": "1f6b5-1f3fb",
  63611. "shortnames": [":mountain_bicyclist_tone1:"],
  63612. "category": "activity"
  63613. },
  63614. ":person_mountain_biking_tone2:": {
  63615. "uc_base": "1f6b5-1f3fc",
  63616. "uc_output": "1f6b5-1f3fc",
  63617. "uc_match": "1f6b5-1f3fc",
  63618. "uc_greedy": "1f6b5-1f3fc",
  63619. "shortnames": [":mountain_bicyclist_tone2:"],
  63620. "category": "activity"
  63621. },
  63622. ":person_mountain_biking_tone3:": {
  63623. "uc_base": "1f6b5-1f3fd",
  63624. "uc_output": "1f6b5-1f3fd",
  63625. "uc_match": "1f6b5-1f3fd",
  63626. "uc_greedy": "1f6b5-1f3fd",
  63627. "shortnames": [":mountain_bicyclist_tone3:"],
  63628. "category": "activity"
  63629. },
  63630. ":person_mountain_biking_tone4:": {
  63631. "uc_base": "1f6b5-1f3fe",
  63632. "uc_output": "1f6b5-1f3fe",
  63633. "uc_match": "1f6b5-1f3fe",
  63634. "uc_greedy": "1f6b5-1f3fe",
  63635. "shortnames": [":mountain_bicyclist_tone4:"],
  63636. "category": "activity"
  63637. },
  63638. ":person_mountain_biking_tone5:": {
  63639. "uc_base": "1f6b5-1f3ff",
  63640. "uc_output": "1f6b5-1f3ff",
  63641. "uc_match": "1f6b5-1f3ff",
  63642. "uc_greedy": "1f6b5-1f3ff",
  63643. "shortnames": [":mountain_bicyclist_tone5:"],
  63644. "category": "activity"
  63645. },
  63646. ":person_playing_handball_tone1:": {
  63647. "uc_base": "1f93e-1f3fb",
  63648. "uc_output": "1f93e-1f3fb",
  63649. "uc_match": "1f93e-1f3fb",
  63650. "uc_greedy": "1f93e-1f3fb",
  63651. "shortnames": [":handball_tone1:"],
  63652. "category": "activity"
  63653. },
  63654. ":person_playing_handball_tone2:": {
  63655. "uc_base": "1f93e-1f3fc",
  63656. "uc_output": "1f93e-1f3fc",
  63657. "uc_match": "1f93e-1f3fc",
  63658. "uc_greedy": "1f93e-1f3fc",
  63659. "shortnames": [":handball_tone2:"],
  63660. "category": "activity"
  63661. },
  63662. ":person_playing_handball_tone3:": {
  63663. "uc_base": "1f93e-1f3fd",
  63664. "uc_output": "1f93e-1f3fd",
  63665. "uc_match": "1f93e-1f3fd",
  63666. "uc_greedy": "1f93e-1f3fd",
  63667. "shortnames": [":handball_tone3:"],
  63668. "category": "activity"
  63669. },
  63670. ":person_playing_handball_tone4:": {
  63671. "uc_base": "1f93e-1f3fe",
  63672. "uc_output": "1f93e-1f3fe",
  63673. "uc_match": "1f93e-1f3fe",
  63674. "uc_greedy": "1f93e-1f3fe",
  63675. "shortnames": [":handball_tone4:"],
  63676. "category": "activity"
  63677. },
  63678. ":person_playing_handball_tone5:": {
  63679. "uc_base": "1f93e-1f3ff",
  63680. "uc_output": "1f93e-1f3ff",
  63681. "uc_match": "1f93e-1f3ff",
  63682. "uc_greedy": "1f93e-1f3ff",
  63683. "shortnames": [":handball_tone5:"],
  63684. "category": "activity"
  63685. },
  63686. ":person_playing_water_polo_tone1:": {
  63687. "uc_base": "1f93d-1f3fb",
  63688. "uc_output": "1f93d-1f3fb",
  63689. "uc_match": "1f93d-1f3fb",
  63690. "uc_greedy": "1f93d-1f3fb",
  63691. "shortnames": [":water_polo_tone1:"],
  63692. "category": "activity"
  63693. },
  63694. ":person_playing_water_polo_tone2:": {
  63695. "uc_base": "1f93d-1f3fc",
  63696. "uc_output": "1f93d-1f3fc",
  63697. "uc_match": "1f93d-1f3fc",
  63698. "uc_greedy": "1f93d-1f3fc",
  63699. "shortnames": [":water_polo_tone2:"],
  63700. "category": "activity"
  63701. },
  63702. ":person_playing_water_polo_tone3:": {
  63703. "uc_base": "1f93d-1f3fd",
  63704. "uc_output": "1f93d-1f3fd",
  63705. "uc_match": "1f93d-1f3fd",
  63706. "uc_greedy": "1f93d-1f3fd",
  63707. "shortnames": [":water_polo_tone3:"],
  63708. "category": "activity"
  63709. },
  63710. ":person_playing_water_polo_tone4:": {
  63711. "uc_base": "1f93d-1f3fe",
  63712. "uc_output": "1f93d-1f3fe",
  63713. "uc_match": "1f93d-1f3fe",
  63714. "uc_greedy": "1f93d-1f3fe",
  63715. "shortnames": [":water_polo_tone4:"],
  63716. "category": "activity"
  63717. },
  63718. ":person_playing_water_polo_tone5:": {
  63719. "uc_base": "1f93d-1f3ff",
  63720. "uc_output": "1f93d-1f3ff",
  63721. "uc_match": "1f93d-1f3ff",
  63722. "uc_greedy": "1f93d-1f3ff",
  63723. "shortnames": [":water_polo_tone5:"],
  63724. "category": "activity"
  63725. },
  63726. ":person_pouting_tone1:": {
  63727. "uc_base": "1f64e-1f3fb",
  63728. "uc_output": "1f64e-1f3fb",
  63729. "uc_match": "1f64e-1f3fb",
  63730. "uc_greedy": "1f64e-1f3fb",
  63731. "shortnames": [":person_with_pouting_face_tone1:"],
  63732. "category": "people"
  63733. },
  63734. ":person_pouting_tone2:": {
  63735. "uc_base": "1f64e-1f3fc",
  63736. "uc_output": "1f64e-1f3fc",
  63737. "uc_match": "1f64e-1f3fc",
  63738. "uc_greedy": "1f64e-1f3fc",
  63739. "shortnames": [":person_with_pouting_face_tone2:"],
  63740. "category": "people"
  63741. },
  63742. ":person_pouting_tone3:": {
  63743. "uc_base": "1f64e-1f3fd",
  63744. "uc_output": "1f64e-1f3fd",
  63745. "uc_match": "1f64e-1f3fd",
  63746. "uc_greedy": "1f64e-1f3fd",
  63747. "shortnames": [":person_with_pouting_face_tone3:"],
  63748. "category": "people"
  63749. },
  63750. ":person_pouting_tone4:": {
  63751. "uc_base": "1f64e-1f3fe",
  63752. "uc_output": "1f64e-1f3fe",
  63753. "uc_match": "1f64e-1f3fe",
  63754. "uc_greedy": "1f64e-1f3fe",
  63755. "shortnames": [":person_with_pouting_face_tone4:"],
  63756. "category": "people"
  63757. },
  63758. ":person_pouting_tone5:": {
  63759. "uc_base": "1f64e-1f3ff",
  63760. "uc_output": "1f64e-1f3ff",
  63761. "uc_match": "1f64e-1f3ff",
  63762. "uc_greedy": "1f64e-1f3ff",
  63763. "shortnames": [":person_with_pouting_face_tone5:"],
  63764. "category": "people"
  63765. },
  63766. ":person_raising_hand_tone1:": {
  63767. "uc_base": "1f64b-1f3fb",
  63768. "uc_output": "1f64b-1f3fb",
  63769. "uc_match": "1f64b-1f3fb",
  63770. "uc_greedy": "1f64b-1f3fb",
  63771. "shortnames": [":raising_hand_tone1:"],
  63772. "category": "people"
  63773. },
  63774. ":person_raising_hand_tone2:": {
  63775. "uc_base": "1f64b-1f3fc",
  63776. "uc_output": "1f64b-1f3fc",
  63777. "uc_match": "1f64b-1f3fc",
  63778. "uc_greedy": "1f64b-1f3fc",
  63779. "shortnames": [":raising_hand_tone2:"],
  63780. "category": "people"
  63781. },
  63782. ":person_raising_hand_tone3:": {
  63783. "uc_base": "1f64b-1f3fd",
  63784. "uc_output": "1f64b-1f3fd",
  63785. "uc_match": "1f64b-1f3fd",
  63786. "uc_greedy": "1f64b-1f3fd",
  63787. "shortnames": [":raising_hand_tone3:"],
  63788. "category": "people"
  63789. },
  63790. ":person_raising_hand_tone4:": {
  63791. "uc_base": "1f64b-1f3fe",
  63792. "uc_output": "1f64b-1f3fe",
  63793. "uc_match": "1f64b-1f3fe",
  63794. "uc_greedy": "1f64b-1f3fe",
  63795. "shortnames": [":raising_hand_tone4:"],
  63796. "category": "people"
  63797. },
  63798. ":person_raising_hand_tone5:": {
  63799. "uc_base": "1f64b-1f3ff",
  63800. "uc_output": "1f64b-1f3ff",
  63801. "uc_match": "1f64b-1f3ff",
  63802. "uc_greedy": "1f64b-1f3ff",
  63803. "shortnames": [":raising_hand_tone5:"],
  63804. "category": "people"
  63805. },
  63806. ":person_rowing_boat_tone1:": {
  63807. "uc_base": "1f6a3-1f3fb",
  63808. "uc_output": "1f6a3-1f3fb",
  63809. "uc_match": "1f6a3-1f3fb",
  63810. "uc_greedy": "1f6a3-1f3fb",
  63811. "shortnames": [":rowboat_tone1:"],
  63812. "category": "activity"
  63813. },
  63814. ":person_rowing_boat_tone2:": {
  63815. "uc_base": "1f6a3-1f3fc",
  63816. "uc_output": "1f6a3-1f3fc",
  63817. "uc_match": "1f6a3-1f3fc",
  63818. "uc_greedy": "1f6a3-1f3fc",
  63819. "shortnames": [":rowboat_tone2:"],
  63820. "category": "activity"
  63821. },
  63822. ":person_rowing_boat_tone3:": {
  63823. "uc_base": "1f6a3-1f3fd",
  63824. "uc_output": "1f6a3-1f3fd",
  63825. "uc_match": "1f6a3-1f3fd",
  63826. "uc_greedy": "1f6a3-1f3fd",
  63827. "shortnames": [":rowboat_tone3:"],
  63828. "category": "activity"
  63829. },
  63830. ":person_rowing_boat_tone4:": {
  63831. "uc_base": "1f6a3-1f3fe",
  63832. "uc_output": "1f6a3-1f3fe",
  63833. "uc_match": "1f6a3-1f3fe",
  63834. "uc_greedy": "1f6a3-1f3fe",
  63835. "shortnames": [":rowboat_tone4:"],
  63836. "category": "activity"
  63837. },
  63838. ":person_rowing_boat_tone5:": {
  63839. "uc_base": "1f6a3-1f3ff",
  63840. "uc_output": "1f6a3-1f3ff",
  63841. "uc_match": "1f6a3-1f3ff",
  63842. "uc_greedy": "1f6a3-1f3ff",
  63843. "shortnames": [":rowboat_tone5:"],
  63844. "category": "activity"
  63845. },
  63846. ":person_running_tone1:": {
  63847. "uc_base": "1f3c3-1f3fb",
  63848. "uc_output": "1f3c3-1f3fb",
  63849. "uc_match": "1f3c3-1f3fb",
  63850. "uc_greedy": "1f3c3-1f3fb",
  63851. "shortnames": [":runner_tone1:"],
  63852. "category": "people"
  63853. },
  63854. ":person_running_tone2:": {
  63855. "uc_base": "1f3c3-1f3fc",
  63856. "uc_output": "1f3c3-1f3fc",
  63857. "uc_match": "1f3c3-1f3fc",
  63858. "uc_greedy": "1f3c3-1f3fc",
  63859. "shortnames": [":runner_tone2:"],
  63860. "category": "people"
  63861. },
  63862. ":person_running_tone3:": {
  63863. "uc_base": "1f3c3-1f3fd",
  63864. "uc_output": "1f3c3-1f3fd",
  63865. "uc_match": "1f3c3-1f3fd",
  63866. "uc_greedy": "1f3c3-1f3fd",
  63867. "shortnames": [":runner_tone3:"],
  63868. "category": "people"
  63869. },
  63870. ":person_running_tone4:": {
  63871. "uc_base": "1f3c3-1f3fe",
  63872. "uc_output": "1f3c3-1f3fe",
  63873. "uc_match": "1f3c3-1f3fe",
  63874. "uc_greedy": "1f3c3-1f3fe",
  63875. "shortnames": [":runner_tone4:"],
  63876. "category": "people"
  63877. },
  63878. ":person_running_tone5:": {
  63879. "uc_base": "1f3c3-1f3ff",
  63880. "uc_output": "1f3c3-1f3ff",
  63881. "uc_match": "1f3c3-1f3ff",
  63882. "uc_greedy": "1f3c3-1f3ff",
  63883. "shortnames": [":runner_tone5:"],
  63884. "category": "people"
  63885. },
  63886. ":person_shrugging_tone1:": {
  63887. "uc_base": "1f937-1f3fb",
  63888. "uc_output": "1f937-1f3fb",
  63889. "uc_match": "1f937-1f3fb",
  63890. "uc_greedy": "1f937-1f3fb",
  63891. "shortnames": [":shrug_tone1:"],
  63892. "category": "people"
  63893. },
  63894. ":person_shrugging_tone2:": {
  63895. "uc_base": "1f937-1f3fc",
  63896. "uc_output": "1f937-1f3fc",
  63897. "uc_match": "1f937-1f3fc",
  63898. "uc_greedy": "1f937-1f3fc",
  63899. "shortnames": [":shrug_tone2:"],
  63900. "category": "people"
  63901. },
  63902. ":person_shrugging_tone3:": {
  63903. "uc_base": "1f937-1f3fd",
  63904. "uc_output": "1f937-1f3fd",
  63905. "uc_match": "1f937-1f3fd",
  63906. "uc_greedy": "1f937-1f3fd",
  63907. "shortnames": [":shrug_tone3:"],
  63908. "category": "people"
  63909. },
  63910. ":person_shrugging_tone4:": {
  63911. "uc_base": "1f937-1f3fe",
  63912. "uc_output": "1f937-1f3fe",
  63913. "uc_match": "1f937-1f3fe",
  63914. "uc_greedy": "1f937-1f3fe",
  63915. "shortnames": [":shrug_tone4:"],
  63916. "category": "people"
  63917. },
  63918. ":person_shrugging_tone5:": {
  63919. "uc_base": "1f937-1f3ff",
  63920. "uc_output": "1f937-1f3ff",
  63921. "uc_match": "1f937-1f3ff",
  63922. "uc_greedy": "1f937-1f3ff",
  63923. "shortnames": [":shrug_tone5:"],
  63924. "category": "people"
  63925. },
  63926. ":person_surfing_tone1:": {
  63927. "uc_base": "1f3c4-1f3fb",
  63928. "uc_output": "1f3c4-1f3fb",
  63929. "uc_match": "1f3c4-1f3fb",
  63930. "uc_greedy": "1f3c4-1f3fb",
  63931. "shortnames": [":surfer_tone1:"],
  63932. "category": "activity"
  63933. },
  63934. ":person_surfing_tone2:": {
  63935. "uc_base": "1f3c4-1f3fc",
  63936. "uc_output": "1f3c4-1f3fc",
  63937. "uc_match": "1f3c4-1f3fc",
  63938. "uc_greedy": "1f3c4-1f3fc",
  63939. "shortnames": [":surfer_tone2:"],
  63940. "category": "activity"
  63941. },
  63942. ":person_surfing_tone3:": {
  63943. "uc_base": "1f3c4-1f3fd",
  63944. "uc_output": "1f3c4-1f3fd",
  63945. "uc_match": "1f3c4-1f3fd",
  63946. "uc_greedy": "1f3c4-1f3fd",
  63947. "shortnames": [":surfer_tone3:"],
  63948. "category": "activity"
  63949. },
  63950. ":person_surfing_tone4:": {
  63951. "uc_base": "1f3c4-1f3fe",
  63952. "uc_output": "1f3c4-1f3fe",
  63953. "uc_match": "1f3c4-1f3fe",
  63954. "uc_greedy": "1f3c4-1f3fe",
  63955. "shortnames": [":surfer_tone4:"],
  63956. "category": "activity"
  63957. },
  63958. ":person_surfing_tone5:": {
  63959. "uc_base": "1f3c4-1f3ff",
  63960. "uc_output": "1f3c4-1f3ff",
  63961. "uc_match": "1f3c4-1f3ff",
  63962. "uc_greedy": "1f3c4-1f3ff",
  63963. "shortnames": [":surfer_tone5:"],
  63964. "category": "activity"
  63965. },
  63966. ":person_swimming_tone1:": {
  63967. "uc_base": "1f3ca-1f3fb",
  63968. "uc_output": "1f3ca-1f3fb",
  63969. "uc_match": "1f3ca-1f3fb",
  63970. "uc_greedy": "1f3ca-1f3fb",
  63971. "shortnames": [":swimmer_tone1:"],
  63972. "category": "activity"
  63973. },
  63974. ":person_swimming_tone2:": {
  63975. "uc_base": "1f3ca-1f3fc",
  63976. "uc_output": "1f3ca-1f3fc",
  63977. "uc_match": "1f3ca-1f3fc",
  63978. "uc_greedy": "1f3ca-1f3fc",
  63979. "shortnames": [":swimmer_tone2:"],
  63980. "category": "activity"
  63981. },
  63982. ":person_swimming_tone3:": {
  63983. "uc_base": "1f3ca-1f3fd",
  63984. "uc_output": "1f3ca-1f3fd",
  63985. "uc_match": "1f3ca-1f3fd",
  63986. "uc_greedy": "1f3ca-1f3fd",
  63987. "shortnames": [":swimmer_tone3:"],
  63988. "category": "activity"
  63989. },
  63990. ":person_swimming_tone4:": {
  63991. "uc_base": "1f3ca-1f3fe",
  63992. "uc_output": "1f3ca-1f3fe",
  63993. "uc_match": "1f3ca-1f3fe",
  63994. "uc_greedy": "1f3ca-1f3fe",
  63995. "shortnames": [":swimmer_tone4:"],
  63996. "category": "activity"
  63997. },
  63998. ":person_swimming_tone5:": {
  63999. "uc_base": "1f3ca-1f3ff",
  64000. "uc_output": "1f3ca-1f3ff",
  64001. "uc_match": "1f3ca-1f3ff",
  64002. "uc_greedy": "1f3ca-1f3ff",
  64003. "shortnames": [":swimmer_tone5:"],
  64004. "category": "activity"
  64005. },
  64006. ":person_tipping_hand_tone1:": {
  64007. "uc_base": "1f481-1f3fb",
  64008. "uc_output": "1f481-1f3fb",
  64009. "uc_match": "1f481-1f3fb",
  64010. "uc_greedy": "1f481-1f3fb",
  64011. "shortnames": [":information_desk_person_tone1:"],
  64012. "category": "people"
  64013. },
  64014. ":person_tipping_hand_tone2:": {
  64015. "uc_base": "1f481-1f3fc",
  64016. "uc_output": "1f481-1f3fc",
  64017. "uc_match": "1f481-1f3fc",
  64018. "uc_greedy": "1f481-1f3fc",
  64019. "shortnames": [":information_desk_person_tone2:"],
  64020. "category": "people"
  64021. },
  64022. ":person_tipping_hand_tone3:": {
  64023. "uc_base": "1f481-1f3fd",
  64024. "uc_output": "1f481-1f3fd",
  64025. "uc_match": "1f481-1f3fd",
  64026. "uc_greedy": "1f481-1f3fd",
  64027. "shortnames": [":information_desk_person_tone3:"],
  64028. "category": "people"
  64029. },
  64030. ":person_tipping_hand_tone4:": {
  64031. "uc_base": "1f481-1f3fe",
  64032. "uc_output": "1f481-1f3fe",
  64033. "uc_match": "1f481-1f3fe",
  64034. "uc_greedy": "1f481-1f3fe",
  64035. "shortnames": [":information_desk_person_tone4:"],
  64036. "category": "people"
  64037. },
  64038. ":person_tipping_hand_tone5:": {
  64039. "uc_base": "1f481-1f3ff",
  64040. "uc_output": "1f481-1f3ff",
  64041. "uc_match": "1f481-1f3ff",
  64042. "uc_greedy": "1f481-1f3ff",
  64043. "shortnames": [":information_desk_person_tone5:"],
  64044. "category": "people"
  64045. },
  64046. ":person_walking_tone1:": {
  64047. "uc_base": "1f6b6-1f3fb",
  64048. "uc_output": "1f6b6-1f3fb",
  64049. "uc_match": "1f6b6-1f3fb",
  64050. "uc_greedy": "1f6b6-1f3fb",
  64051. "shortnames": [":walking_tone1:"],
  64052. "category": "people"
  64053. },
  64054. ":person_walking_tone2:": {
  64055. "uc_base": "1f6b6-1f3fc",
  64056. "uc_output": "1f6b6-1f3fc",
  64057. "uc_match": "1f6b6-1f3fc",
  64058. "uc_greedy": "1f6b6-1f3fc",
  64059. "shortnames": [":walking_tone2:"],
  64060. "category": "people"
  64061. },
  64062. ":person_walking_tone3:": {
  64063. "uc_base": "1f6b6-1f3fd",
  64064. "uc_output": "1f6b6-1f3fd",
  64065. "uc_match": "1f6b6-1f3fd",
  64066. "uc_greedy": "1f6b6-1f3fd",
  64067. "shortnames": [":walking_tone3:"],
  64068. "category": "people"
  64069. },
  64070. ":person_walking_tone4:": {
  64071. "uc_base": "1f6b6-1f3fe",
  64072. "uc_output": "1f6b6-1f3fe",
  64073. "uc_match": "1f6b6-1f3fe",
  64074. "uc_greedy": "1f6b6-1f3fe",
  64075. "shortnames": [":walking_tone4:"],
  64076. "category": "people"
  64077. },
  64078. ":person_walking_tone5:": {
  64079. "uc_base": "1f6b6-1f3ff",
  64080. "uc_output": "1f6b6-1f3ff",
  64081. "uc_match": "1f6b6-1f3ff",
  64082. "uc_greedy": "1f6b6-1f3ff",
  64083. "shortnames": [":walking_tone5:"],
  64084. "category": "people"
  64085. },
  64086. ":person_wearing_turban_tone1:": {
  64087. "uc_base": "1f473-1f3fb",
  64088. "uc_output": "1f473-1f3fb",
  64089. "uc_match": "1f473-1f3fb",
  64090. "uc_greedy": "1f473-1f3fb",
  64091. "shortnames": [":man_with_turban_tone1:"],
  64092. "category": "people"
  64093. },
  64094. ":person_wearing_turban_tone2:": {
  64095. "uc_base": "1f473-1f3fc",
  64096. "uc_output": "1f473-1f3fc",
  64097. "uc_match": "1f473-1f3fc",
  64098. "uc_greedy": "1f473-1f3fc",
  64099. "shortnames": [":man_with_turban_tone2:"],
  64100. "category": "people"
  64101. },
  64102. ":person_wearing_turban_tone3:": {
  64103. "uc_base": "1f473-1f3fd",
  64104. "uc_output": "1f473-1f3fd",
  64105. "uc_match": "1f473-1f3fd",
  64106. "uc_greedy": "1f473-1f3fd",
  64107. "shortnames": [":man_with_turban_tone3:"],
  64108. "category": "people"
  64109. },
  64110. ":person_wearing_turban_tone4:": {
  64111. "uc_base": "1f473-1f3fe",
  64112. "uc_output": "1f473-1f3fe",
  64113. "uc_match": "1f473-1f3fe",
  64114. "uc_greedy": "1f473-1f3fe",
  64115. "shortnames": [":man_with_turban_tone4:"],
  64116. "category": "people"
  64117. },
  64118. ":person_wearing_turban_tone5:": {
  64119. "uc_base": "1f473-1f3ff",
  64120. "uc_output": "1f473-1f3ff",
  64121. "uc_match": "1f473-1f3ff",
  64122. "uc_greedy": "1f473-1f3ff",
  64123. "shortnames": [":man_with_turban_tone5:"],
  64124. "category": "people"
  64125. },
  64126. ":point_down_tone1:": {
  64127. "uc_base": "1f447-1f3fb",
  64128. "uc_output": "1f447-1f3fb",
  64129. "uc_match": "1f447-1f3fb",
  64130. "uc_greedy": "1f447-1f3fb",
  64131. "shortnames": [],
  64132. "category": "people"
  64133. },
  64134. ":point_down_tone2:": {
  64135. "uc_base": "1f447-1f3fc",
  64136. "uc_output": "1f447-1f3fc",
  64137. "uc_match": "1f447-1f3fc",
  64138. "uc_greedy": "1f447-1f3fc",
  64139. "shortnames": [],
  64140. "category": "people"
  64141. },
  64142. ":point_down_tone3:": {
  64143. "uc_base": "1f447-1f3fd",
  64144. "uc_output": "1f447-1f3fd",
  64145. "uc_match": "1f447-1f3fd",
  64146. "uc_greedy": "1f447-1f3fd",
  64147. "shortnames": [],
  64148. "category": "people"
  64149. },
  64150. ":point_down_tone4:": {
  64151. "uc_base": "1f447-1f3fe",
  64152. "uc_output": "1f447-1f3fe",
  64153. "uc_match": "1f447-1f3fe",
  64154. "uc_greedy": "1f447-1f3fe",
  64155. "shortnames": [],
  64156. "category": "people"
  64157. },
  64158. ":point_down_tone5:": {
  64159. "uc_base": "1f447-1f3ff",
  64160. "uc_output": "1f447-1f3ff",
  64161. "uc_match": "1f447-1f3ff",
  64162. "uc_greedy": "1f447-1f3ff",
  64163. "shortnames": [],
  64164. "category": "people"
  64165. },
  64166. ":point_left_tone1:": {
  64167. "uc_base": "1f448-1f3fb",
  64168. "uc_output": "1f448-1f3fb",
  64169. "uc_match": "1f448-1f3fb",
  64170. "uc_greedy": "1f448-1f3fb",
  64171. "shortnames": [],
  64172. "category": "people"
  64173. },
  64174. ":point_left_tone2:": {
  64175. "uc_base": "1f448-1f3fc",
  64176. "uc_output": "1f448-1f3fc",
  64177. "uc_match": "1f448-1f3fc",
  64178. "uc_greedy": "1f448-1f3fc",
  64179. "shortnames": [],
  64180. "category": "people"
  64181. },
  64182. ":point_left_tone3:": {
  64183. "uc_base": "1f448-1f3fd",
  64184. "uc_output": "1f448-1f3fd",
  64185. "uc_match": "1f448-1f3fd",
  64186. "uc_greedy": "1f448-1f3fd",
  64187. "shortnames": [],
  64188. "category": "people"
  64189. },
  64190. ":point_left_tone4:": {
  64191. "uc_base": "1f448-1f3fe",
  64192. "uc_output": "1f448-1f3fe",
  64193. "uc_match": "1f448-1f3fe",
  64194. "uc_greedy": "1f448-1f3fe",
  64195. "shortnames": [],
  64196. "category": "people"
  64197. },
  64198. ":point_left_tone5:": {
  64199. "uc_base": "1f448-1f3ff",
  64200. "uc_output": "1f448-1f3ff",
  64201. "uc_match": "1f448-1f3ff",
  64202. "uc_greedy": "1f448-1f3ff",
  64203. "shortnames": [],
  64204. "category": "people"
  64205. },
  64206. ":point_right_tone1:": {
  64207. "uc_base": "1f449-1f3fb",
  64208. "uc_output": "1f449-1f3fb",
  64209. "uc_match": "1f449-1f3fb",
  64210. "uc_greedy": "1f449-1f3fb",
  64211. "shortnames": [],
  64212. "category": "people"
  64213. },
  64214. ":point_right_tone2:": {
  64215. "uc_base": "1f449-1f3fc",
  64216. "uc_output": "1f449-1f3fc",
  64217. "uc_match": "1f449-1f3fc",
  64218. "uc_greedy": "1f449-1f3fc",
  64219. "shortnames": [],
  64220. "category": "people"
  64221. },
  64222. ":point_right_tone3:": {
  64223. "uc_base": "1f449-1f3fd",
  64224. "uc_output": "1f449-1f3fd",
  64225. "uc_match": "1f449-1f3fd",
  64226. "uc_greedy": "1f449-1f3fd",
  64227. "shortnames": [],
  64228. "category": "people"
  64229. },
  64230. ":point_right_tone4:": {
  64231. "uc_base": "1f449-1f3fe",
  64232. "uc_output": "1f449-1f3fe",
  64233. "uc_match": "1f449-1f3fe",
  64234. "uc_greedy": "1f449-1f3fe",
  64235. "shortnames": [],
  64236. "category": "people"
  64237. },
  64238. ":point_right_tone5:": {
  64239. "uc_base": "1f449-1f3ff",
  64240. "uc_output": "1f449-1f3ff",
  64241. "uc_match": "1f449-1f3ff",
  64242. "uc_greedy": "1f449-1f3ff",
  64243. "shortnames": [],
  64244. "category": "people"
  64245. },
  64246. ":point_up_2_tone1:": {
  64247. "uc_base": "1f446-1f3fb",
  64248. "uc_output": "1f446-1f3fb",
  64249. "uc_match": "1f446-1f3fb",
  64250. "uc_greedy": "1f446-1f3fb",
  64251. "shortnames": [],
  64252. "category": "people"
  64253. },
  64254. ":point_up_2_tone2:": {
  64255. "uc_base": "1f446-1f3fc",
  64256. "uc_output": "1f446-1f3fc",
  64257. "uc_match": "1f446-1f3fc",
  64258. "uc_greedy": "1f446-1f3fc",
  64259. "shortnames": [],
  64260. "category": "people"
  64261. },
  64262. ":point_up_2_tone3:": {
  64263. "uc_base": "1f446-1f3fd",
  64264. "uc_output": "1f446-1f3fd",
  64265. "uc_match": "1f446-1f3fd",
  64266. "uc_greedy": "1f446-1f3fd",
  64267. "shortnames": [],
  64268. "category": "people"
  64269. },
  64270. ":point_up_2_tone4:": {
  64271. "uc_base": "1f446-1f3fe",
  64272. "uc_output": "1f446-1f3fe",
  64273. "uc_match": "1f446-1f3fe",
  64274. "uc_greedy": "1f446-1f3fe",
  64275. "shortnames": [],
  64276. "category": "people"
  64277. },
  64278. ":point_up_2_tone5:": {
  64279. "uc_base": "1f446-1f3ff",
  64280. "uc_output": "1f446-1f3ff",
  64281. "uc_match": "1f446-1f3ff",
  64282. "uc_greedy": "1f446-1f3ff",
  64283. "shortnames": [],
  64284. "category": "people"
  64285. },
  64286. ":police_officer_tone1:": {
  64287. "uc_base": "1f46e-1f3fb",
  64288. "uc_output": "1f46e-1f3fb",
  64289. "uc_match": "1f46e-1f3fb",
  64290. "uc_greedy": "1f46e-1f3fb",
  64291. "shortnames": [":cop_tone1:"],
  64292. "category": "people"
  64293. },
  64294. ":police_officer_tone2:": {
  64295. "uc_base": "1f46e-1f3fc",
  64296. "uc_output": "1f46e-1f3fc",
  64297. "uc_match": "1f46e-1f3fc",
  64298. "uc_greedy": "1f46e-1f3fc",
  64299. "shortnames": [":cop_tone2:"],
  64300. "category": "people"
  64301. },
  64302. ":police_officer_tone3:": {
  64303. "uc_base": "1f46e-1f3fd",
  64304. "uc_output": "1f46e-1f3fd",
  64305. "uc_match": "1f46e-1f3fd",
  64306. "uc_greedy": "1f46e-1f3fd",
  64307. "shortnames": [":cop_tone3:"],
  64308. "category": "people"
  64309. },
  64310. ":police_officer_tone4:": {
  64311. "uc_base": "1f46e-1f3fe",
  64312. "uc_output": "1f46e-1f3fe",
  64313. "uc_match": "1f46e-1f3fe",
  64314. "uc_greedy": "1f46e-1f3fe",
  64315. "shortnames": [":cop_tone4:"],
  64316. "category": "people"
  64317. },
  64318. ":police_officer_tone5:": {
  64319. "uc_base": "1f46e-1f3ff",
  64320. "uc_output": "1f46e-1f3ff",
  64321. "uc_match": "1f46e-1f3ff",
  64322. "uc_greedy": "1f46e-1f3ff",
  64323. "shortnames": [":cop_tone5:"],
  64324. "category": "people"
  64325. },
  64326. ":pray_tone1:": {
  64327. "uc_base": "1f64f-1f3fb",
  64328. "uc_output": "1f64f-1f3fb",
  64329. "uc_match": "1f64f-1f3fb",
  64330. "uc_greedy": "1f64f-1f3fb",
  64331. "shortnames": [],
  64332. "category": "people"
  64333. },
  64334. ":pray_tone2:": {
  64335. "uc_base": "1f64f-1f3fc",
  64336. "uc_output": "1f64f-1f3fc",
  64337. "uc_match": "1f64f-1f3fc",
  64338. "uc_greedy": "1f64f-1f3fc",
  64339. "shortnames": [],
  64340. "category": "people"
  64341. },
  64342. ":pray_tone3:": {
  64343. "uc_base": "1f64f-1f3fd",
  64344. "uc_output": "1f64f-1f3fd",
  64345. "uc_match": "1f64f-1f3fd",
  64346. "uc_greedy": "1f64f-1f3fd",
  64347. "shortnames": [],
  64348. "category": "people"
  64349. },
  64350. ":pray_tone4:": {
  64351. "uc_base": "1f64f-1f3fe",
  64352. "uc_output": "1f64f-1f3fe",
  64353. "uc_match": "1f64f-1f3fe",
  64354. "uc_greedy": "1f64f-1f3fe",
  64355. "shortnames": [],
  64356. "category": "people"
  64357. },
  64358. ":pray_tone5:": {
  64359. "uc_base": "1f64f-1f3ff",
  64360. "uc_output": "1f64f-1f3ff",
  64361. "uc_match": "1f64f-1f3ff",
  64362. "uc_greedy": "1f64f-1f3ff",
  64363. "shortnames": [],
  64364. "category": "people"
  64365. },
  64366. ":pregnant_woman_tone1:": {
  64367. "uc_base": "1f930-1f3fb",
  64368. "uc_output": "1f930-1f3fb",
  64369. "uc_match": "1f930-1f3fb",
  64370. "uc_greedy": "1f930-1f3fb",
  64371. "shortnames": [":expecting_woman_tone1:"],
  64372. "category": "people"
  64373. },
  64374. ":pregnant_woman_tone2:": {
  64375. "uc_base": "1f930-1f3fc",
  64376. "uc_output": "1f930-1f3fc",
  64377. "uc_match": "1f930-1f3fc",
  64378. "uc_greedy": "1f930-1f3fc",
  64379. "shortnames": [":expecting_woman_tone2:"],
  64380. "category": "people"
  64381. },
  64382. ":pregnant_woman_tone3:": {
  64383. "uc_base": "1f930-1f3fd",
  64384. "uc_output": "1f930-1f3fd",
  64385. "uc_match": "1f930-1f3fd",
  64386. "uc_greedy": "1f930-1f3fd",
  64387. "shortnames": [":expecting_woman_tone3:"],
  64388. "category": "people"
  64389. },
  64390. ":pregnant_woman_tone4:": {
  64391. "uc_base": "1f930-1f3fe",
  64392. "uc_output": "1f930-1f3fe",
  64393. "uc_match": "1f930-1f3fe",
  64394. "uc_greedy": "1f930-1f3fe",
  64395. "shortnames": [":expecting_woman_tone4:"],
  64396. "category": "people"
  64397. },
  64398. ":pregnant_woman_tone5:": {
  64399. "uc_base": "1f930-1f3ff",
  64400. "uc_output": "1f930-1f3ff",
  64401. "uc_match": "1f930-1f3ff",
  64402. "uc_greedy": "1f930-1f3ff",
  64403. "shortnames": [":expecting_woman_tone5:"],
  64404. "category": "people"
  64405. },
  64406. ":prince_tone1:": {
  64407. "uc_base": "1f934-1f3fb",
  64408. "uc_output": "1f934-1f3fb",
  64409. "uc_match": "1f934-1f3fb",
  64410. "uc_greedy": "1f934-1f3fb",
  64411. "shortnames": [],
  64412. "category": "people"
  64413. },
  64414. ":prince_tone2:": {
  64415. "uc_base": "1f934-1f3fc",
  64416. "uc_output": "1f934-1f3fc",
  64417. "uc_match": "1f934-1f3fc",
  64418. "uc_greedy": "1f934-1f3fc",
  64419. "shortnames": [],
  64420. "category": "people"
  64421. },
  64422. ":prince_tone3:": {
  64423. "uc_base": "1f934-1f3fd",
  64424. "uc_output": "1f934-1f3fd",
  64425. "uc_match": "1f934-1f3fd",
  64426. "uc_greedy": "1f934-1f3fd",
  64427. "shortnames": [],
  64428. "category": "people"
  64429. },
  64430. ":prince_tone4:": {
  64431. "uc_base": "1f934-1f3fe",
  64432. "uc_output": "1f934-1f3fe",
  64433. "uc_match": "1f934-1f3fe",
  64434. "uc_greedy": "1f934-1f3fe",
  64435. "shortnames": [],
  64436. "category": "people"
  64437. },
  64438. ":prince_tone5:": {
  64439. "uc_base": "1f934-1f3ff",
  64440. "uc_output": "1f934-1f3ff",
  64441. "uc_match": "1f934-1f3ff",
  64442. "uc_greedy": "1f934-1f3ff",
  64443. "shortnames": [],
  64444. "category": "people"
  64445. },
  64446. ":princess_tone1:": {
  64447. "uc_base": "1f478-1f3fb",
  64448. "uc_output": "1f478-1f3fb",
  64449. "uc_match": "1f478-1f3fb",
  64450. "uc_greedy": "1f478-1f3fb",
  64451. "shortnames": [],
  64452. "category": "people"
  64453. },
  64454. ":princess_tone2:": {
  64455. "uc_base": "1f478-1f3fc",
  64456. "uc_output": "1f478-1f3fc",
  64457. "uc_match": "1f478-1f3fc",
  64458. "uc_greedy": "1f478-1f3fc",
  64459. "shortnames": [],
  64460. "category": "people"
  64461. },
  64462. ":princess_tone3:": {
  64463. "uc_base": "1f478-1f3fd",
  64464. "uc_output": "1f478-1f3fd",
  64465. "uc_match": "1f478-1f3fd",
  64466. "uc_greedy": "1f478-1f3fd",
  64467. "shortnames": [],
  64468. "category": "people"
  64469. },
  64470. ":princess_tone4:": {
  64471. "uc_base": "1f478-1f3fe",
  64472. "uc_output": "1f478-1f3fe",
  64473. "uc_match": "1f478-1f3fe",
  64474. "uc_greedy": "1f478-1f3fe",
  64475. "shortnames": [],
  64476. "category": "people"
  64477. },
  64478. ":princess_tone5:": {
  64479. "uc_base": "1f478-1f3ff",
  64480. "uc_output": "1f478-1f3ff",
  64481. "uc_match": "1f478-1f3ff",
  64482. "uc_greedy": "1f478-1f3ff",
  64483. "shortnames": [],
  64484. "category": "people"
  64485. },
  64486. ":punch_tone1:": {
  64487. "uc_base": "1f44a-1f3fb",
  64488. "uc_output": "1f44a-1f3fb",
  64489. "uc_match": "1f44a-1f3fb",
  64490. "uc_greedy": "1f44a-1f3fb",
  64491. "shortnames": [],
  64492. "category": "people"
  64493. },
  64494. ":punch_tone2:": {
  64495. "uc_base": "1f44a-1f3fc",
  64496. "uc_output": "1f44a-1f3fc",
  64497. "uc_match": "1f44a-1f3fc",
  64498. "uc_greedy": "1f44a-1f3fc",
  64499. "shortnames": [],
  64500. "category": "people"
  64501. },
  64502. ":punch_tone3:": {
  64503. "uc_base": "1f44a-1f3fd",
  64504. "uc_output": "1f44a-1f3fd",
  64505. "uc_match": "1f44a-1f3fd",
  64506. "uc_greedy": "1f44a-1f3fd",
  64507. "shortnames": [],
  64508. "category": "people"
  64509. },
  64510. ":punch_tone4:": {
  64511. "uc_base": "1f44a-1f3fe",
  64512. "uc_output": "1f44a-1f3fe",
  64513. "uc_match": "1f44a-1f3fe",
  64514. "uc_greedy": "1f44a-1f3fe",
  64515. "shortnames": [],
  64516. "category": "people"
  64517. },
  64518. ":punch_tone5:": {
  64519. "uc_base": "1f44a-1f3ff",
  64520. "uc_output": "1f44a-1f3ff",
  64521. "uc_match": "1f44a-1f3ff",
  64522. "uc_greedy": "1f44a-1f3ff",
  64523. "shortnames": [],
  64524. "category": "people"
  64525. },
  64526. ":raised_back_of_hand_tone1:": {
  64527. "uc_base": "1f91a-1f3fb",
  64528. "uc_output": "1f91a-1f3fb",
  64529. "uc_match": "1f91a-1f3fb",
  64530. "uc_greedy": "1f91a-1f3fb",
  64531. "shortnames": [":back_of_hand_tone1:"],
  64532. "category": "people"
  64533. },
  64534. ":raised_back_of_hand_tone2:": {
  64535. "uc_base": "1f91a-1f3fc",
  64536. "uc_output": "1f91a-1f3fc",
  64537. "uc_match": "1f91a-1f3fc",
  64538. "uc_greedy": "1f91a-1f3fc",
  64539. "shortnames": [":back_of_hand_tone2:"],
  64540. "category": "people"
  64541. },
  64542. ":raised_back_of_hand_tone3:": {
  64543. "uc_base": "1f91a-1f3fd",
  64544. "uc_output": "1f91a-1f3fd",
  64545. "uc_match": "1f91a-1f3fd",
  64546. "uc_greedy": "1f91a-1f3fd",
  64547. "shortnames": [":back_of_hand_tone3:"],
  64548. "category": "people"
  64549. },
  64550. ":raised_back_of_hand_tone4:": {
  64551. "uc_base": "1f91a-1f3fe",
  64552. "uc_output": "1f91a-1f3fe",
  64553. "uc_match": "1f91a-1f3fe",
  64554. "uc_greedy": "1f91a-1f3fe",
  64555. "shortnames": [":back_of_hand_tone4:"],
  64556. "category": "people"
  64557. },
  64558. ":raised_back_of_hand_tone5:": {
  64559. "uc_base": "1f91a-1f3ff",
  64560. "uc_output": "1f91a-1f3ff",
  64561. "uc_match": "1f91a-1f3ff",
  64562. "uc_greedy": "1f91a-1f3ff",
  64563. "shortnames": [":back_of_hand_tone5:"],
  64564. "category": "people"
  64565. },
  64566. ":raised_hands_tone1:": {
  64567. "uc_base": "1f64c-1f3fb",
  64568. "uc_output": "1f64c-1f3fb",
  64569. "uc_match": "1f64c-1f3fb",
  64570. "uc_greedy": "1f64c-1f3fb",
  64571. "shortnames": [],
  64572. "category": "people"
  64573. },
  64574. ":raised_hands_tone2:": {
  64575. "uc_base": "1f64c-1f3fc",
  64576. "uc_output": "1f64c-1f3fc",
  64577. "uc_match": "1f64c-1f3fc",
  64578. "uc_greedy": "1f64c-1f3fc",
  64579. "shortnames": [],
  64580. "category": "people"
  64581. },
  64582. ":raised_hands_tone3:": {
  64583. "uc_base": "1f64c-1f3fd",
  64584. "uc_output": "1f64c-1f3fd",
  64585. "uc_match": "1f64c-1f3fd",
  64586. "uc_greedy": "1f64c-1f3fd",
  64587. "shortnames": [],
  64588. "category": "people"
  64589. },
  64590. ":raised_hands_tone4:": {
  64591. "uc_base": "1f64c-1f3fe",
  64592. "uc_output": "1f64c-1f3fe",
  64593. "uc_match": "1f64c-1f3fe",
  64594. "uc_greedy": "1f64c-1f3fe",
  64595. "shortnames": [],
  64596. "category": "people"
  64597. },
  64598. ":raised_hands_tone5:": {
  64599. "uc_base": "1f64c-1f3ff",
  64600. "uc_output": "1f64c-1f3ff",
  64601. "uc_match": "1f64c-1f3ff",
  64602. "uc_greedy": "1f64c-1f3ff",
  64603. "shortnames": [],
  64604. "category": "people"
  64605. },
  64606. ":right_facing_fist_tone1:": {
  64607. "uc_base": "1f91c-1f3fb",
  64608. "uc_output": "1f91c-1f3fb",
  64609. "uc_match": "1f91c-1f3fb",
  64610. "uc_greedy": "1f91c-1f3fb",
  64611. "shortnames": [":right_fist_tone1:"],
  64612. "category": "people"
  64613. },
  64614. ":right_facing_fist_tone2:": {
  64615. "uc_base": "1f91c-1f3fc",
  64616. "uc_output": "1f91c-1f3fc",
  64617. "uc_match": "1f91c-1f3fc",
  64618. "uc_greedy": "1f91c-1f3fc",
  64619. "shortnames": [":right_fist_tone2:"],
  64620. "category": "people"
  64621. },
  64622. ":right_facing_fist_tone3:": {
  64623. "uc_base": "1f91c-1f3fd",
  64624. "uc_output": "1f91c-1f3fd",
  64625. "uc_match": "1f91c-1f3fd",
  64626. "uc_greedy": "1f91c-1f3fd",
  64627. "shortnames": [":right_fist_tone3:"],
  64628. "category": "people"
  64629. },
  64630. ":right_facing_fist_tone4:": {
  64631. "uc_base": "1f91c-1f3fe",
  64632. "uc_output": "1f91c-1f3fe",
  64633. "uc_match": "1f91c-1f3fe",
  64634. "uc_greedy": "1f91c-1f3fe",
  64635. "shortnames": [":right_fist_tone4:"],
  64636. "category": "people"
  64637. },
  64638. ":right_facing_fist_tone5:": {
  64639. "uc_base": "1f91c-1f3ff",
  64640. "uc_output": "1f91c-1f3ff",
  64641. "uc_match": "1f91c-1f3ff",
  64642. "uc_greedy": "1f91c-1f3ff",
  64643. "shortnames": [":right_fist_tone5:"],
  64644. "category": "people"
  64645. },
  64646. ":santa_tone1:": {
  64647. "uc_base": "1f385-1f3fb",
  64648. "uc_output": "1f385-1f3fb",
  64649. "uc_match": "1f385-1f3fb",
  64650. "uc_greedy": "1f385-1f3fb",
  64651. "shortnames": [],
  64652. "category": "people"
  64653. },
  64654. ":santa_tone2:": {
  64655. "uc_base": "1f385-1f3fc",
  64656. "uc_output": "1f385-1f3fc",
  64657. "uc_match": "1f385-1f3fc",
  64658. "uc_greedy": "1f385-1f3fc",
  64659. "shortnames": [],
  64660. "category": "people"
  64661. },
  64662. ":santa_tone3:": {
  64663. "uc_base": "1f385-1f3fd",
  64664. "uc_output": "1f385-1f3fd",
  64665. "uc_match": "1f385-1f3fd",
  64666. "uc_greedy": "1f385-1f3fd",
  64667. "shortnames": [],
  64668. "category": "people"
  64669. },
  64670. ":santa_tone4:": {
  64671. "uc_base": "1f385-1f3fe",
  64672. "uc_output": "1f385-1f3fe",
  64673. "uc_match": "1f385-1f3fe",
  64674. "uc_greedy": "1f385-1f3fe",
  64675. "shortnames": [],
  64676. "category": "people"
  64677. },
  64678. ":santa_tone5:": {
  64679. "uc_base": "1f385-1f3ff",
  64680. "uc_output": "1f385-1f3ff",
  64681. "uc_match": "1f385-1f3ff",
  64682. "uc_greedy": "1f385-1f3ff",
  64683. "shortnames": [],
  64684. "category": "people"
  64685. },
  64686. ":selfie_tone1:": {
  64687. "uc_base": "1f933-1f3fb",
  64688. "uc_output": "1f933-1f3fb",
  64689. "uc_match": "1f933-1f3fb",
  64690. "uc_greedy": "1f933-1f3fb",
  64691. "shortnames": [],
  64692. "category": "people"
  64693. },
  64694. ":selfie_tone2:": {
  64695. "uc_base": "1f933-1f3fc",
  64696. "uc_output": "1f933-1f3fc",
  64697. "uc_match": "1f933-1f3fc",
  64698. "uc_greedy": "1f933-1f3fc",
  64699. "shortnames": [],
  64700. "category": "people"
  64701. },
  64702. ":selfie_tone3:": {
  64703. "uc_base": "1f933-1f3fd",
  64704. "uc_output": "1f933-1f3fd",
  64705. "uc_match": "1f933-1f3fd",
  64706. "uc_greedy": "1f933-1f3fd",
  64707. "shortnames": [],
  64708. "category": "people"
  64709. },
  64710. ":selfie_tone4:": {
  64711. "uc_base": "1f933-1f3fe",
  64712. "uc_output": "1f933-1f3fe",
  64713. "uc_match": "1f933-1f3fe",
  64714. "uc_greedy": "1f933-1f3fe",
  64715. "shortnames": [],
  64716. "category": "people"
  64717. },
  64718. ":selfie_tone5:": {
  64719. "uc_base": "1f933-1f3ff",
  64720. "uc_output": "1f933-1f3ff",
  64721. "uc_match": "1f933-1f3ff",
  64722. "uc_greedy": "1f933-1f3ff",
  64723. "shortnames": [],
  64724. "category": "people"
  64725. },
  64726. ":snowboarder_tone1:": {
  64727. "uc_base": "1f3c2-1f3fb",
  64728. "uc_output": "1f3c2-1f3fb",
  64729. "uc_match": "1f3c2-1f3fb",
  64730. "uc_greedy": "1f3c2-1f3fb",
  64731. "shortnames": [":snowboarder_light_skin_tone:"],
  64732. "category": "activity"
  64733. },
  64734. ":snowboarder_tone2:": {
  64735. "uc_base": "1f3c2-1f3fc",
  64736. "uc_output": "1f3c2-1f3fc",
  64737. "uc_match": "1f3c2-1f3fc",
  64738. "uc_greedy": "1f3c2-1f3fc",
  64739. "shortnames": [":snowboarder_medium_light_skin_tone:"],
  64740. "category": "activity"
  64741. },
  64742. ":snowboarder_tone3:": {
  64743. "uc_base": "1f3c2-1f3fd",
  64744. "uc_output": "1f3c2-1f3fd",
  64745. "uc_match": "1f3c2-1f3fd",
  64746. "uc_greedy": "1f3c2-1f3fd",
  64747. "shortnames": [":snowboarder_medium_skin_tone:"],
  64748. "category": "activity"
  64749. },
  64750. ":snowboarder_tone4:": {
  64751. "uc_base": "1f3c2-1f3fe",
  64752. "uc_output": "1f3c2-1f3fe",
  64753. "uc_match": "1f3c2-1f3fe",
  64754. "uc_greedy": "1f3c2-1f3fe",
  64755. "shortnames": [":snowboarder_medium_dark_skin_tone:"],
  64756. "category": "activity"
  64757. },
  64758. ":snowboarder_tone5:": {
  64759. "uc_base": "1f3c2-1f3ff",
  64760. "uc_output": "1f3c2-1f3ff",
  64761. "uc_match": "1f3c2-1f3ff",
  64762. "uc_greedy": "1f3c2-1f3ff",
  64763. "shortnames": [":snowboarder_dark_skin_tone:"],
  64764. "category": "activity"
  64765. },
  64766. ":thumbsdown_tone1:": {
  64767. "uc_base": "1f44e-1f3fb",
  64768. "uc_output": "1f44e-1f3fb",
  64769. "uc_match": "1f44e-1f3fb",
  64770. "uc_greedy": "1f44e-1f3fb",
  64771. "shortnames": [":-1_tone1:", ":thumbdown_tone1:"],
  64772. "category": "people"
  64773. },
  64774. ":thumbsdown_tone2:": {
  64775. "uc_base": "1f44e-1f3fc",
  64776. "uc_output": "1f44e-1f3fc",
  64777. "uc_match": "1f44e-1f3fc",
  64778. "uc_greedy": "1f44e-1f3fc",
  64779. "shortnames": [":-1_tone2:", ":thumbdown_tone2:"],
  64780. "category": "people"
  64781. },
  64782. ":thumbsdown_tone3:": {
  64783. "uc_base": "1f44e-1f3fd",
  64784. "uc_output": "1f44e-1f3fd",
  64785. "uc_match": "1f44e-1f3fd",
  64786. "uc_greedy": "1f44e-1f3fd",
  64787. "shortnames": [":-1_tone3:", ":thumbdown_tone3:"],
  64788. "category": "people"
  64789. },
  64790. ":thumbsdown_tone4:": {
  64791. "uc_base": "1f44e-1f3fe",
  64792. "uc_output": "1f44e-1f3fe",
  64793. "uc_match": "1f44e-1f3fe",
  64794. "uc_greedy": "1f44e-1f3fe",
  64795. "shortnames": [":-1_tone4:", ":thumbdown_tone4:"],
  64796. "category": "people"
  64797. },
  64798. ":thumbsdown_tone5:": {
  64799. "uc_base": "1f44e-1f3ff",
  64800. "uc_output": "1f44e-1f3ff",
  64801. "uc_match": "1f44e-1f3ff",
  64802. "uc_greedy": "1f44e-1f3ff",
  64803. "shortnames": [":-1_tone5:", ":thumbdown_tone5:"],
  64804. "category": "people"
  64805. },
  64806. ":thumbsup_tone1:": {
  64807. "uc_base": "1f44d-1f3fb",
  64808. "uc_output": "1f44d-1f3fb",
  64809. "uc_match": "1f44d-1f3fb",
  64810. "uc_greedy": "1f44d-1f3fb",
  64811. "shortnames": [":+1_tone1:", ":thumbup_tone1:"],
  64812. "category": "people"
  64813. },
  64814. ":thumbsup_tone2:": {
  64815. "uc_base": "1f44d-1f3fc",
  64816. "uc_output": "1f44d-1f3fc",
  64817. "uc_match": "1f44d-1f3fc",
  64818. "uc_greedy": "1f44d-1f3fc",
  64819. "shortnames": [":+1_tone2:", ":thumbup_tone2:"],
  64820. "category": "people"
  64821. },
  64822. ":thumbsup_tone3:": {
  64823. "uc_base": "1f44d-1f3fd",
  64824. "uc_output": "1f44d-1f3fd",
  64825. "uc_match": "1f44d-1f3fd",
  64826. "uc_greedy": "1f44d-1f3fd",
  64827. "shortnames": [":+1_tone3:", ":thumbup_tone3:"],
  64828. "category": "people"
  64829. },
  64830. ":thumbsup_tone4:": {
  64831. "uc_base": "1f44d-1f3fe",
  64832. "uc_output": "1f44d-1f3fe",
  64833. "uc_match": "1f44d-1f3fe",
  64834. "uc_greedy": "1f44d-1f3fe",
  64835. "shortnames": [":+1_tone4:", ":thumbup_tone4:"],
  64836. "category": "people"
  64837. },
  64838. ":thumbsup_tone5:": {
  64839. "uc_base": "1f44d-1f3ff",
  64840. "uc_output": "1f44d-1f3ff",
  64841. "uc_match": "1f44d-1f3ff",
  64842. "uc_greedy": "1f44d-1f3ff",
  64843. "shortnames": [":+1_tone5:", ":thumbup_tone5:"],
  64844. "category": "people"
  64845. },
  64846. ":united_nations:": {
  64847. "uc_base": "1f1fa-1f1f3",
  64848. "uc_output": "1f1fa-1f1f3",
  64849. "uc_match": "1f1fa-1f1f3",
  64850. "uc_greedy": "1f1fa-1f1f3",
  64851. "shortnames": [],
  64852. "category": "flags"
  64853. },
  64854. ":vampire_tone1:": {
  64855. "uc_base": "1f9db-1f3fb",
  64856. "uc_output": "1f9db-1f3fb",
  64857. "uc_match": "1f9db-1f3fb",
  64858. "uc_greedy": "1f9db-1f3fb",
  64859. "shortnames": [":vampire_light_skin_tone:"],
  64860. "category": "people"
  64861. },
  64862. ":vampire_tone2:": {
  64863. "uc_base": "1f9db-1f3fc",
  64864. "uc_output": "1f9db-1f3fc",
  64865. "uc_match": "1f9db-1f3fc",
  64866. "uc_greedy": "1f9db-1f3fc",
  64867. "shortnames": [":vampire_medium_light_skin_tone:"],
  64868. "category": "people"
  64869. },
  64870. ":vampire_tone3:": {
  64871. "uc_base": "1f9db-1f3fd",
  64872. "uc_output": "1f9db-1f3fd",
  64873. "uc_match": "1f9db-1f3fd",
  64874. "uc_greedy": "1f9db-1f3fd",
  64875. "shortnames": [":vampire_medium_skin_tone:"],
  64876. "category": "people"
  64877. },
  64878. ":vampire_tone4:": {
  64879. "uc_base": "1f9db-1f3fe",
  64880. "uc_output": "1f9db-1f3fe",
  64881. "uc_match": "1f9db-1f3fe",
  64882. "uc_greedy": "1f9db-1f3fe",
  64883. "shortnames": [":vampire_medium_dark_skin_tone:"],
  64884. "category": "people"
  64885. },
  64886. ":vampire_tone5:": {
  64887. "uc_base": "1f9db-1f3ff",
  64888. "uc_output": "1f9db-1f3ff",
  64889. "uc_match": "1f9db-1f3ff",
  64890. "uc_greedy": "1f9db-1f3ff",
  64891. "shortnames": [":vampire_dark_skin_tone:"],
  64892. "category": "people"
  64893. },
  64894. ":vulcan_tone1:": {
  64895. "uc_base": "1f596-1f3fb",
  64896. "uc_output": "1f596-1f3fb",
  64897. "uc_match": "1f596-1f3fb",
  64898. "uc_greedy": "1f596-1f3fb",
  64899. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone1:"],
  64900. "category": "people"
  64901. },
  64902. ":vulcan_tone2:": {
  64903. "uc_base": "1f596-1f3fc",
  64904. "uc_output": "1f596-1f3fc",
  64905. "uc_match": "1f596-1f3fc",
  64906. "uc_greedy": "1f596-1f3fc",
  64907. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone2:"],
  64908. "category": "people"
  64909. },
  64910. ":vulcan_tone3:": {
  64911. "uc_base": "1f596-1f3fd",
  64912. "uc_output": "1f596-1f3fd",
  64913. "uc_match": "1f596-1f3fd",
  64914. "uc_greedy": "1f596-1f3fd",
  64915. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone3:"],
  64916. "category": "people"
  64917. },
  64918. ":vulcan_tone4:": {
  64919. "uc_base": "1f596-1f3fe",
  64920. "uc_output": "1f596-1f3fe",
  64921. "uc_match": "1f596-1f3fe",
  64922. "uc_greedy": "1f596-1f3fe",
  64923. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone4:"],
  64924. "category": "people"
  64925. },
  64926. ":vulcan_tone5:": {
  64927. "uc_base": "1f596-1f3ff",
  64928. "uc_output": "1f596-1f3ff",
  64929. "uc_match": "1f596-1f3ff",
  64930. "uc_greedy": "1f596-1f3ff",
  64931. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone5:"],
  64932. "category": "people"
  64933. },
  64934. ":wave_tone1:": {
  64935. "uc_base": "1f44b-1f3fb",
  64936. "uc_output": "1f44b-1f3fb",
  64937. "uc_match": "1f44b-1f3fb",
  64938. "uc_greedy": "1f44b-1f3fb",
  64939. "shortnames": [],
  64940. "category": "people"
  64941. },
  64942. ":wave_tone2:": {
  64943. "uc_base": "1f44b-1f3fc",
  64944. "uc_output": "1f44b-1f3fc",
  64945. "uc_match": "1f44b-1f3fc",
  64946. "uc_greedy": "1f44b-1f3fc",
  64947. "shortnames": [],
  64948. "category": "people"
  64949. },
  64950. ":wave_tone3:": {
  64951. "uc_base": "1f44b-1f3fd",
  64952. "uc_output": "1f44b-1f3fd",
  64953. "uc_match": "1f44b-1f3fd",
  64954. "uc_greedy": "1f44b-1f3fd",
  64955. "shortnames": [],
  64956. "category": "people"
  64957. },
  64958. ":wave_tone4:": {
  64959. "uc_base": "1f44b-1f3fe",
  64960. "uc_output": "1f44b-1f3fe",
  64961. "uc_match": "1f44b-1f3fe",
  64962. "uc_greedy": "1f44b-1f3fe",
  64963. "shortnames": [],
  64964. "category": "people"
  64965. },
  64966. ":wave_tone5:": {
  64967. "uc_base": "1f44b-1f3ff",
  64968. "uc_output": "1f44b-1f3ff",
  64969. "uc_match": "1f44b-1f3ff",
  64970. "uc_greedy": "1f44b-1f3ff",
  64971. "shortnames": [],
  64972. "category": "people"
  64973. },
  64974. ":woman_tone1:": {
  64975. "uc_base": "1f469-1f3fb",
  64976. "uc_output": "1f469-1f3fb",
  64977. "uc_match": "1f469-1f3fb",
  64978. "uc_greedy": "1f469-1f3fb",
  64979. "shortnames": [],
  64980. "category": "people"
  64981. },
  64982. ":woman_tone2:": {
  64983. "uc_base": "1f469-1f3fc",
  64984. "uc_output": "1f469-1f3fc",
  64985. "uc_match": "1f469-1f3fc",
  64986. "uc_greedy": "1f469-1f3fc",
  64987. "shortnames": [],
  64988. "category": "people"
  64989. },
  64990. ":woman_tone3:": {
  64991. "uc_base": "1f469-1f3fd",
  64992. "uc_output": "1f469-1f3fd",
  64993. "uc_match": "1f469-1f3fd",
  64994. "uc_greedy": "1f469-1f3fd",
  64995. "shortnames": [],
  64996. "category": "people"
  64997. },
  64998. ":woman_tone4:": {
  64999. "uc_base": "1f469-1f3fe",
  65000. "uc_output": "1f469-1f3fe",
  65001. "uc_match": "1f469-1f3fe",
  65002. "uc_greedy": "1f469-1f3fe",
  65003. "shortnames": [],
  65004. "category": "people"
  65005. },
  65006. ":woman_tone5:": {
  65007. "uc_base": "1f469-1f3ff",
  65008. "uc_output": "1f469-1f3ff",
  65009. "uc_match": "1f469-1f3ff",
  65010. "uc_greedy": "1f469-1f3ff",
  65011. "shortnames": [],
  65012. "category": "people"
  65013. },
  65014. ":woman_with_headscarf_tone1:": {
  65015. "uc_base": "1f9d5-1f3fb",
  65016. "uc_output": "1f9d5-1f3fb",
  65017. "uc_match": "1f9d5-1f3fb",
  65018. "uc_greedy": "1f9d5-1f3fb",
  65019. "shortnames": [":woman_with_headscarf_light_skin_tone:"],
  65020. "category": "people"
  65021. },
  65022. ":woman_with_headscarf_tone2:": {
  65023. "uc_base": "1f9d5-1f3fc",
  65024. "uc_output": "1f9d5-1f3fc",
  65025. "uc_match": "1f9d5-1f3fc",
  65026. "uc_greedy": "1f9d5-1f3fc",
  65027. "shortnames": [":woman_with_headscarf_medium_light_skin_tone:"],
  65028. "category": "people"
  65029. },
  65030. ":woman_with_headscarf_tone3:": {
  65031. "uc_base": "1f9d5-1f3fd",
  65032. "uc_output": "1f9d5-1f3fd",
  65033. "uc_match": "1f9d5-1f3fd",
  65034. "uc_greedy": "1f9d5-1f3fd",
  65035. "shortnames": [":woman_with_headscarf_medium_skin_tone:"],
  65036. "category": "people"
  65037. },
  65038. ":woman_with_headscarf_tone4:": {
  65039. "uc_base": "1f9d5-1f3fe",
  65040. "uc_output": "1f9d5-1f3fe",
  65041. "uc_match": "1f9d5-1f3fe",
  65042. "uc_greedy": "1f9d5-1f3fe",
  65043. "shortnames": [":woman_with_headscarf_medium_dark_skin_tone:"],
  65044. "category": "people"
  65045. },
  65046. ":woman_with_headscarf_tone5:": {
  65047. "uc_base": "1f9d5-1f3ff",
  65048. "uc_output": "1f9d5-1f3ff",
  65049. "uc_match": "1f9d5-1f3ff",
  65050. "uc_greedy": "1f9d5-1f3ff",
  65051. "shortnames": [":woman_with_headscarf_dark_skin_tone:"],
  65052. "category": "people"
  65053. },
  65054. ":fist_tone1:": {
  65055. "uc_base": "270a-1f3fb",
  65056. "uc_output": "270a-1f3fb",
  65057. "uc_match": "270a-1f3fb",
  65058. "uc_greedy": "270a-1f3fb",
  65059. "shortnames": [],
  65060. "category": "people"
  65061. },
  65062. ":fist_tone2:": {
  65063. "uc_base": "270a-1f3fc",
  65064. "uc_output": "270a-1f3fc",
  65065. "uc_match": "270a-1f3fc",
  65066. "uc_greedy": "270a-1f3fc",
  65067. "shortnames": [],
  65068. "category": "people"
  65069. },
  65070. ":fist_tone3:": {
  65071. "uc_base": "270a-1f3fd",
  65072. "uc_output": "270a-1f3fd",
  65073. "uc_match": "270a-1f3fd",
  65074. "uc_greedy": "270a-1f3fd",
  65075. "shortnames": [],
  65076. "category": "people"
  65077. },
  65078. ":fist_tone4:": {
  65079. "uc_base": "270a-1f3fe",
  65080. "uc_output": "270a-1f3fe",
  65081. "uc_match": "270a-1f3fe",
  65082. "uc_greedy": "270a-1f3fe",
  65083. "shortnames": [],
  65084. "category": "people"
  65085. },
  65086. ":fist_tone5:": {
  65087. "uc_base": "270a-1f3ff",
  65088. "uc_output": "270a-1f3ff",
  65089. "uc_match": "270a-1f3ff",
  65090. "uc_greedy": "270a-1f3ff",
  65091. "shortnames": [],
  65092. "category": "people"
  65093. },
  65094. ":person_bouncing_ball_tone1:": {
  65095. "uc_base": "26f9-1f3fb",
  65096. "uc_output": "26f9-1f3fb",
  65097. "uc_match": "26f9-fe0f-1f3fb",
  65098. "uc_greedy": "26f9-fe0f-1f3fb",
  65099. "shortnames": [":basketball_player_tone1:", ":person_with_ball_tone1:"],
  65100. "category": "activity"
  65101. },
  65102. ":person_bouncing_ball_tone2:": {
  65103. "uc_base": "26f9-1f3fc",
  65104. "uc_output": "26f9-1f3fc",
  65105. "uc_match": "26f9-fe0f-1f3fc",
  65106. "uc_greedy": "26f9-fe0f-1f3fc",
  65107. "shortnames": [":basketball_player_tone2:", ":person_with_ball_tone2:"],
  65108. "category": "activity"
  65109. },
  65110. ":person_bouncing_ball_tone3:": {
  65111. "uc_base": "26f9-1f3fd",
  65112. "uc_output": "26f9-1f3fd",
  65113. "uc_match": "26f9-fe0f-1f3fd",
  65114. "uc_greedy": "26f9-fe0f-1f3fd",
  65115. "shortnames": [":basketball_player_tone3:", ":person_with_ball_tone3:"],
  65116. "category": "activity"
  65117. },
  65118. ":person_bouncing_ball_tone4:": {
  65119. "uc_base": "26f9-1f3fe",
  65120. "uc_output": "26f9-1f3fe",
  65121. "uc_match": "26f9-fe0f-1f3fe",
  65122. "uc_greedy": "26f9-fe0f-1f3fe",
  65123. "shortnames": [":basketball_player_tone4:", ":person_with_ball_tone4:"],
  65124. "category": "activity"
  65125. },
  65126. ":person_bouncing_ball_tone5:": {
  65127. "uc_base": "26f9-1f3ff",
  65128. "uc_output": "26f9-1f3ff",
  65129. "uc_match": "26f9-fe0f-1f3ff",
  65130. "uc_greedy": "26f9-fe0f-1f3ff",
  65131. "shortnames": [":basketball_player_tone5:", ":person_with_ball_tone5:"],
  65132. "category": "activity"
  65133. },
  65134. ":point_up_tone1:": {
  65135. "uc_base": "261d-1f3fb",
  65136. "uc_output": "261d-1f3fb",
  65137. "uc_match": "261d-fe0f-1f3fb",
  65138. "uc_greedy": "261d-fe0f-1f3fb",
  65139. "shortnames": [],
  65140. "category": "people"
  65141. },
  65142. ":point_up_tone2:": {
  65143. "uc_base": "261d-1f3fc",
  65144. "uc_output": "261d-1f3fc",
  65145. "uc_match": "261d-fe0f-1f3fc",
  65146. "uc_greedy": "261d-fe0f-1f3fc",
  65147. "shortnames": [],
  65148. "category": "people"
  65149. },
  65150. ":point_up_tone3:": {
  65151. "uc_base": "261d-1f3fd",
  65152. "uc_output": "261d-1f3fd",
  65153. "uc_match": "261d-fe0f-1f3fd",
  65154. "uc_greedy": "261d-fe0f-1f3fd",
  65155. "shortnames": [],
  65156. "category": "people"
  65157. },
  65158. ":point_up_tone4:": {
  65159. "uc_base": "261d-1f3fe",
  65160. "uc_output": "261d-1f3fe",
  65161. "uc_match": "261d-fe0f-1f3fe",
  65162. "uc_greedy": "261d-fe0f-1f3fe",
  65163. "shortnames": [],
  65164. "category": "people"
  65165. },
  65166. ":point_up_tone5:": {
  65167. "uc_base": "261d-1f3ff",
  65168. "uc_output": "261d-1f3ff",
  65169. "uc_match": "261d-fe0f-1f3ff",
  65170. "uc_greedy": "261d-fe0f-1f3ff",
  65171. "shortnames": [],
  65172. "category": "people"
  65173. },
  65174. ":raised_hand_tone1:": {
  65175. "uc_base": "270b-1f3fb",
  65176. "uc_output": "270b-1f3fb",
  65177. "uc_match": "270b-1f3fb",
  65178. "uc_greedy": "270b-1f3fb",
  65179. "shortnames": [],
  65180. "category": "people"
  65181. },
  65182. ":raised_hand_tone2:": {
  65183. "uc_base": "270b-1f3fc",
  65184. "uc_output": "270b-1f3fc",
  65185. "uc_match": "270b-1f3fc",
  65186. "uc_greedy": "270b-1f3fc",
  65187. "shortnames": [],
  65188. "category": "people"
  65189. },
  65190. ":raised_hand_tone3:": {
  65191. "uc_base": "270b-1f3fd",
  65192. "uc_output": "270b-1f3fd",
  65193. "uc_match": "270b-1f3fd",
  65194. "uc_greedy": "270b-1f3fd",
  65195. "shortnames": [],
  65196. "category": "people"
  65197. },
  65198. ":raised_hand_tone4:": {
  65199. "uc_base": "270b-1f3fe",
  65200. "uc_output": "270b-1f3fe",
  65201. "uc_match": "270b-1f3fe",
  65202. "uc_greedy": "270b-1f3fe",
  65203. "shortnames": [],
  65204. "category": "people"
  65205. },
  65206. ":raised_hand_tone5:": {
  65207. "uc_base": "270b-1f3ff",
  65208. "uc_output": "270b-1f3ff",
  65209. "uc_match": "270b-1f3ff",
  65210. "uc_greedy": "270b-1f3ff",
  65211. "shortnames": [],
  65212. "category": "people"
  65213. },
  65214. ":v_tone1:": {
  65215. "uc_base": "270c-1f3fb",
  65216. "uc_output": "270c-1f3fb",
  65217. "uc_match": "270c-fe0f-1f3fb",
  65218. "uc_greedy": "270c-fe0f-1f3fb",
  65219. "shortnames": [],
  65220. "category": "people"
  65221. },
  65222. ":v_tone2:": {
  65223. "uc_base": "270c-1f3fc",
  65224. "uc_output": "270c-1f3fc",
  65225. "uc_match": "270c-fe0f-1f3fc",
  65226. "uc_greedy": "270c-fe0f-1f3fc",
  65227. "shortnames": [],
  65228. "category": "people"
  65229. },
  65230. ":v_tone3:": {
  65231. "uc_base": "270c-1f3fd",
  65232. "uc_output": "270c-1f3fd",
  65233. "uc_match": "270c-fe0f-1f3fd",
  65234. "uc_greedy": "270c-fe0f-1f3fd",
  65235. "shortnames": [],
  65236. "category": "people"
  65237. },
  65238. ":v_tone4:": {
  65239. "uc_base": "270c-1f3fe",
  65240. "uc_output": "270c-1f3fe",
  65241. "uc_match": "270c-fe0f-1f3fe",
  65242. "uc_greedy": "270c-fe0f-1f3fe",
  65243. "shortnames": [],
  65244. "category": "people"
  65245. },
  65246. ":v_tone5:": {
  65247. "uc_base": "270c-1f3ff",
  65248. "uc_output": "270c-1f3ff",
  65249. "uc_match": "270c-fe0f-1f3ff",
  65250. "uc_greedy": "270c-fe0f-1f3ff",
  65251. "shortnames": [],
  65252. "category": "people"
  65253. },
  65254. ":writing_hand_tone1:": {
  65255. "uc_base": "270d-1f3fb",
  65256. "uc_output": "270d-1f3fb",
  65257. "uc_match": "270d-fe0f-1f3fb",
  65258. "uc_greedy": "270d-fe0f-1f3fb",
  65259. "shortnames": [],
  65260. "category": "people"
  65261. },
  65262. ":writing_hand_tone2:": {
  65263. "uc_base": "270d-1f3fc",
  65264. "uc_output": "270d-1f3fc",
  65265. "uc_match": "270d-fe0f-1f3fc",
  65266. "uc_greedy": "270d-fe0f-1f3fc",
  65267. "shortnames": [],
  65268. "category": "people"
  65269. },
  65270. ":writing_hand_tone3:": {
  65271. "uc_base": "270d-1f3fd",
  65272. "uc_output": "270d-1f3fd",
  65273. "uc_match": "270d-fe0f-1f3fd",
  65274. "uc_greedy": "270d-fe0f-1f3fd",
  65275. "shortnames": [],
  65276. "category": "people"
  65277. },
  65278. ":writing_hand_tone4:": {
  65279. "uc_base": "270d-1f3fe",
  65280. "uc_output": "270d-1f3fe",
  65281. "uc_match": "270d-fe0f-1f3fe",
  65282. "uc_greedy": "270d-fe0f-1f3fe",
  65283. "shortnames": [],
  65284. "category": "people"
  65285. },
  65286. ":writing_hand_tone5:": {
  65287. "uc_base": "270d-1f3ff",
  65288. "uc_output": "270d-1f3ff",
  65289. "uc_match": "270d-fe0f-1f3ff",
  65290. "uc_greedy": "270d-fe0f-1f3ff",
  65291. "shortnames": [],
  65292. "category": "people"
  65293. },
  65294. ":100:": {
  65295. "uc_base": "1f4af",
  65296. "uc_output": "1f4af",
  65297. "uc_match": "1f4af",
  65298. "uc_greedy": "1f4af",
  65299. "shortnames": [],
  65300. "category": "symbols"
  65301. },
  65302. ":1234:": {
  65303. "uc_base": "1f522",
  65304. "uc_output": "1f522",
  65305. "uc_match": "1f522",
  65306. "uc_greedy": "1f522",
  65307. "shortnames": [],
  65308. "category": "symbols"
  65309. },
  65310. ":8ball:": {
  65311. "uc_base": "1f3b1",
  65312. "uc_output": "1f3b1",
  65313. "uc_match": "1f3b1",
  65314. "uc_greedy": "1f3b1",
  65315. "shortnames": [],
  65316. "category": "activity"
  65317. },
  65318. ":a:": {
  65319. "uc_base": "1f170",
  65320. "uc_output": "1f170",
  65321. "uc_match": "1f170-fe0f",
  65322. "uc_greedy": "1f170-fe0f",
  65323. "shortnames": [],
  65324. "category": "symbols"
  65325. },
  65326. ":ab:": {
  65327. "uc_base": "1f18e",
  65328. "uc_output": "1f18e",
  65329. "uc_match": "1f18e",
  65330. "uc_greedy": "1f18e",
  65331. "shortnames": [],
  65332. "category": "symbols"
  65333. },
  65334. ":abc:": {
  65335. "uc_base": "1f524",
  65336. "uc_output": "1f524",
  65337. "uc_match": "1f524",
  65338. "uc_greedy": "1f524",
  65339. "shortnames": [],
  65340. "category": "symbols"
  65341. },
  65342. ":abcd:": {
  65343. "uc_base": "1f521",
  65344. "uc_output": "1f521",
  65345. "uc_match": "1f521",
  65346. "uc_greedy": "1f521",
  65347. "shortnames": [],
  65348. "category": "symbols"
  65349. },
  65350. ":accept:": {
  65351. "uc_base": "1f251",
  65352. "uc_output": "1f251",
  65353. "uc_match": "1f251",
  65354. "uc_greedy": "1f251",
  65355. "shortnames": [],
  65356. "category": "symbols"
  65357. },
  65358. ":adult:": {
  65359. "uc_base": "1f9d1",
  65360. "uc_output": "1f9d1",
  65361. "uc_match": "1f9d1",
  65362. "uc_greedy": "1f9d1",
  65363. "shortnames": [],
  65364. "category": "people"
  65365. },
  65366. ":aerial_tramway:": {
  65367. "uc_base": "1f6a1",
  65368. "uc_output": "1f6a1",
  65369. "uc_match": "1f6a1",
  65370. "uc_greedy": "1f6a1",
  65371. "shortnames": [],
  65372. "category": "travel"
  65373. },
  65374. ":airplane_arriving:": {
  65375. "uc_base": "1f6ec",
  65376. "uc_output": "1f6ec",
  65377. "uc_match": "1f6ec",
  65378. "uc_greedy": "1f6ec",
  65379. "shortnames": [],
  65380. "category": "travel"
  65381. },
  65382. ":airplane_departure:": {
  65383. "uc_base": "1f6eb",
  65384. "uc_output": "1f6eb",
  65385. "uc_match": "1f6eb",
  65386. "uc_greedy": "1f6eb",
  65387. "shortnames": [],
  65388. "category": "travel"
  65389. },
  65390. ":airplane_small:": {
  65391. "uc_base": "1f6e9",
  65392. "uc_output": "1f6e9",
  65393. "uc_match": "1f6e9-fe0f",
  65394. "uc_greedy": "1f6e9-fe0f",
  65395. "shortnames": [":small_airplane:"],
  65396. "category": "travel"
  65397. },
  65398. ":alien:": {
  65399. "uc_base": "1f47d",
  65400. "uc_output": "1f47d",
  65401. "uc_match": "1f47d-fe0f",
  65402. "uc_greedy": "1f47d-fe0f",
  65403. "shortnames": [],
  65404. "category": "people"
  65405. },
  65406. ":ambulance:": {
  65407. "uc_base": "1f691",
  65408. "uc_output": "1f691",
  65409. "uc_match": "1f691-fe0f",
  65410. "uc_greedy": "1f691-fe0f",
  65411. "shortnames": [],
  65412. "category": "travel"
  65413. },
  65414. ":amphora:": {
  65415. "uc_base": "1f3fa",
  65416. "uc_output": "1f3fa",
  65417. "uc_match": "1f3fa",
  65418. "uc_greedy": "1f3fa",
  65419. "shortnames": [],
  65420. "category": "objects"
  65421. },
  65422. ":angel:": {
  65423. "uc_base": "1f47c",
  65424. "uc_output": "1f47c",
  65425. "uc_match": "1f47c",
  65426. "uc_greedy": "1f47c",
  65427. "shortnames": [],
  65428. "category": "people"
  65429. },
  65430. ":anger:": {
  65431. "uc_base": "1f4a2",
  65432. "uc_output": "1f4a2",
  65433. "uc_match": "1f4a2",
  65434. "uc_greedy": "1f4a2",
  65435. "shortnames": [],
  65436. "category": "symbols"
  65437. },
  65438. ":anger_right:": {
  65439. "uc_base": "1f5ef",
  65440. "uc_output": "1f5ef",
  65441. "uc_match": "1f5ef-fe0f",
  65442. "uc_greedy": "1f5ef-fe0f",
  65443. "shortnames": [":right_anger_bubble:"],
  65444. "category": "symbols"
  65445. },
  65446. ":angry:": {
  65447. "uc_base": "1f620",
  65448. "uc_output": "1f620",
  65449. "uc_match": "1f620",
  65450. "uc_greedy": "1f620",
  65451. "shortnames": [],
  65452. "category": "people"
  65453. },
  65454. ":anguished:": {
  65455. "uc_base": "1f627",
  65456. "uc_output": "1f627",
  65457. "uc_match": "1f627",
  65458. "uc_greedy": "1f627",
  65459. "shortnames": [],
  65460. "category": "people"
  65461. },
  65462. ":ant:": {
  65463. "uc_base": "1f41c",
  65464. "uc_output": "1f41c",
  65465. "uc_match": "1f41c",
  65466. "uc_greedy": "1f41c",
  65467. "shortnames": [],
  65468. "category": "nature"
  65469. },
  65470. ":apple:": {
  65471. "uc_base": "1f34e",
  65472. "uc_output": "1f34e",
  65473. "uc_match": "1f34e",
  65474. "uc_greedy": "1f34e",
  65475. "shortnames": [],
  65476. "category": "food"
  65477. },
  65478. ":arrow_down_small:": {
  65479. "uc_base": "1f53d",
  65480. "uc_output": "1f53d",
  65481. "uc_match": "1f53d",
  65482. "uc_greedy": "1f53d",
  65483. "shortnames": [],
  65484. "category": "symbols"
  65485. },
  65486. ":arrow_up_small:": {
  65487. "uc_base": "1f53c",
  65488. "uc_output": "1f53c",
  65489. "uc_match": "1f53c",
  65490. "uc_greedy": "1f53c",
  65491. "shortnames": [],
  65492. "category": "symbols"
  65493. },
  65494. ":arrows_clockwise:": {
  65495. "uc_base": "1f503",
  65496. "uc_output": "1f503",
  65497. "uc_match": "1f503",
  65498. "uc_greedy": "1f503",
  65499. "shortnames": [],
  65500. "category": "symbols"
  65501. },
  65502. ":arrows_counterclockwise:": {
  65503. "uc_base": "1f504",
  65504. "uc_output": "1f504",
  65505. "uc_match": "1f504",
  65506. "uc_greedy": "1f504",
  65507. "shortnames": [],
  65508. "category": "symbols"
  65509. },
  65510. ":art:": {
  65511. "uc_base": "1f3a8",
  65512. "uc_output": "1f3a8",
  65513. "uc_match": "1f3a8",
  65514. "uc_greedy": "1f3a8",
  65515. "shortnames": [],
  65516. "category": "activity"
  65517. },
  65518. ":articulated_lorry:": {
  65519. "uc_base": "1f69b",
  65520. "uc_output": "1f69b",
  65521. "uc_match": "1f69b",
  65522. "uc_greedy": "1f69b",
  65523. "shortnames": [],
  65524. "category": "travel"
  65525. },
  65526. ":astonished:": {
  65527. "uc_base": "1f632",
  65528. "uc_output": "1f632",
  65529. "uc_match": "1f632",
  65530. "uc_greedy": "1f632",
  65531. "shortnames": [],
  65532. "category": "people"
  65533. },
  65534. ":athletic_shoe:": {
  65535. "uc_base": "1f45f",
  65536. "uc_output": "1f45f",
  65537. "uc_match": "1f45f",
  65538. "uc_greedy": "1f45f",
  65539. "shortnames": [],
  65540. "category": "people"
  65541. },
  65542. ":atm:": {
  65543. "uc_base": "1f3e7",
  65544. "uc_output": "1f3e7",
  65545. "uc_match": "1f3e7",
  65546. "uc_greedy": "1f3e7",
  65547. "shortnames": [],
  65548. "category": "symbols"
  65549. },
  65550. ":avocado:": {
  65551. "uc_base": "1f951",
  65552. "uc_output": "1f951",
  65553. "uc_match": "1f951",
  65554. "uc_greedy": "1f951",
  65555. "shortnames": [],
  65556. "category": "food"
  65557. },
  65558. ":b:": {
  65559. "uc_base": "1f171",
  65560. "uc_output": "1f171",
  65561. "uc_match": "1f171-fe0f",
  65562. "uc_greedy": "1f171-fe0f",
  65563. "shortnames": [],
  65564. "category": "symbols"
  65565. },
  65566. ":baby:": {
  65567. "uc_base": "1f476",
  65568. "uc_output": "1f476",
  65569. "uc_match": "1f476",
  65570. "uc_greedy": "1f476",
  65571. "shortnames": [],
  65572. "category": "people"
  65573. },
  65574. ":baby_bottle:": {
  65575. "uc_base": "1f37c",
  65576. "uc_output": "1f37c",
  65577. "uc_match": "1f37c",
  65578. "uc_greedy": "1f37c",
  65579. "shortnames": [],
  65580. "category": "food"
  65581. },
  65582. ":baby_chick:": {
  65583. "uc_base": "1f424",
  65584. "uc_output": "1f424",
  65585. "uc_match": "1f424",
  65586. "uc_greedy": "1f424",
  65587. "shortnames": [],
  65588. "category": "nature"
  65589. },
  65590. ":baby_symbol:": {
  65591. "uc_base": "1f6bc",
  65592. "uc_output": "1f6bc",
  65593. "uc_match": "1f6bc-fe0f",
  65594. "uc_greedy": "1f6bc-fe0f",
  65595. "shortnames": [],
  65596. "category": "symbols"
  65597. },
  65598. ":back:": {
  65599. "uc_base": "1f519",
  65600. "uc_output": "1f519",
  65601. "uc_match": "1f519",
  65602. "uc_greedy": "1f519",
  65603. "shortnames": [],
  65604. "category": "symbols"
  65605. },
  65606. ":bacon:": {
  65607. "uc_base": "1f953",
  65608. "uc_output": "1f953",
  65609. "uc_match": "1f953",
  65610. "uc_greedy": "1f953",
  65611. "shortnames": [],
  65612. "category": "food"
  65613. },
  65614. ":badminton:": {
  65615. "uc_base": "1f3f8",
  65616. "uc_output": "1f3f8",
  65617. "uc_match": "1f3f8",
  65618. "uc_greedy": "1f3f8",
  65619. "shortnames": [],
  65620. "category": "activity"
  65621. },
  65622. ":baggage_claim:": {
  65623. "uc_base": "1f6c4",
  65624. "uc_output": "1f6c4",
  65625. "uc_match": "1f6c4",
  65626. "uc_greedy": "1f6c4",
  65627. "shortnames": [],
  65628. "category": "symbols"
  65629. },
  65630. ":balloon:": {
  65631. "uc_base": "1f388",
  65632. "uc_output": "1f388",
  65633. "uc_match": "1f388",
  65634. "uc_greedy": "1f388",
  65635. "shortnames": [],
  65636. "category": "objects"
  65637. },
  65638. ":ballot_box:": {
  65639. "uc_base": "1f5f3",
  65640. "uc_output": "1f5f3",
  65641. "uc_match": "1f5f3-fe0f",
  65642. "uc_greedy": "1f5f3-fe0f",
  65643. "shortnames": [":ballot_box_with_ballot:"],
  65644. "category": "objects"
  65645. },
  65646. ":bamboo:": {
  65647. "uc_base": "1f38d",
  65648. "uc_output": "1f38d",
  65649. "uc_match": "1f38d",
  65650. "uc_greedy": "1f38d",
  65651. "shortnames": [],
  65652. "category": "nature"
  65653. },
  65654. ":banana:": {
  65655. "uc_base": "1f34c",
  65656. "uc_output": "1f34c",
  65657. "uc_match": "1f34c",
  65658. "uc_greedy": "1f34c",
  65659. "shortnames": [],
  65660. "category": "food"
  65661. },
  65662. ":bank:": {
  65663. "uc_base": "1f3e6",
  65664. "uc_output": "1f3e6",
  65665. "uc_match": "1f3e6",
  65666. "uc_greedy": "1f3e6",
  65667. "shortnames": [],
  65668. "category": "travel"
  65669. },
  65670. ":bar_chart:": {
  65671. "uc_base": "1f4ca",
  65672. "uc_output": "1f4ca",
  65673. "uc_match": "1f4ca",
  65674. "uc_greedy": "1f4ca",
  65675. "shortnames": [],
  65676. "category": "objects"
  65677. },
  65678. ":barber:": {
  65679. "uc_base": "1f488",
  65680. "uc_output": "1f488",
  65681. "uc_match": "1f488",
  65682. "uc_greedy": "1f488",
  65683. "shortnames": [],
  65684. "category": "objects"
  65685. },
  65686. ":basketball:": {
  65687. "uc_base": "1f3c0",
  65688. "uc_output": "1f3c0",
  65689. "uc_match": "1f3c0",
  65690. "uc_greedy": "1f3c0",
  65691. "shortnames": [],
  65692. "category": "activity"
  65693. },
  65694. ":bat:": {
  65695. "uc_base": "1f987",
  65696. "uc_output": "1f987",
  65697. "uc_match": "1f987",
  65698. "uc_greedy": "1f987",
  65699. "shortnames": [],
  65700. "category": "nature"
  65701. },
  65702. ":bath:": {
  65703. "uc_base": "1f6c0",
  65704. "uc_output": "1f6c0",
  65705. "uc_match": "1f6c0",
  65706. "uc_greedy": "1f6c0",
  65707. "shortnames": [],
  65708. "category": "objects"
  65709. },
  65710. ":bathtub:": {
  65711. "uc_base": "1f6c1",
  65712. "uc_output": "1f6c1",
  65713. "uc_match": "1f6c1",
  65714. "uc_greedy": "1f6c1",
  65715. "shortnames": [],
  65716. "category": "objects"
  65717. },
  65718. ":battery:": {
  65719. "uc_base": "1f50b",
  65720. "uc_output": "1f50b",
  65721. "uc_match": "1f50b",
  65722. "uc_greedy": "1f50b",
  65723. "shortnames": [],
  65724. "category": "objects"
  65725. },
  65726. ":beach:": {
  65727. "uc_base": "1f3d6",
  65728. "uc_output": "1f3d6",
  65729. "uc_match": "1f3d6-fe0f",
  65730. "uc_greedy": "1f3d6-fe0f",
  65731. "shortnames": [":beach_with_umbrella:"],
  65732. "category": "travel"
  65733. },
  65734. ":bear:": {
  65735. "uc_base": "1f43b",
  65736. "uc_output": "1f43b",
  65737. "uc_match": "1f43b",
  65738. "uc_greedy": "1f43b",
  65739. "shortnames": [],
  65740. "category": "nature"
  65741. },
  65742. ":bearded_person:": {
  65743. "uc_base": "1f9d4",
  65744. "uc_output": "1f9d4",
  65745. "uc_match": "1f9d4",
  65746. "uc_greedy": "1f9d4",
  65747. "shortnames": [],
  65748. "category": "people"
  65749. },
  65750. ":bed:": {
  65751. "uc_base": "1f6cf",
  65752. "uc_output": "1f6cf",
  65753. "uc_match": "1f6cf-fe0f",
  65754. "uc_greedy": "1f6cf-fe0f",
  65755. "shortnames": [],
  65756. "category": "objects"
  65757. },
  65758. ":bee:": {
  65759. "uc_base": "1f41d",
  65760. "uc_output": "1f41d",
  65761. "uc_match": "1f41d",
  65762. "uc_greedy": "1f41d",
  65763. "shortnames": [],
  65764. "category": "nature"
  65765. },
  65766. ":beer:": {
  65767. "uc_base": "1f37a",
  65768. "uc_output": "1f37a",
  65769. "uc_match": "1f37a",
  65770. "uc_greedy": "1f37a",
  65771. "shortnames": [],
  65772. "category": "food"
  65773. },
  65774. ":beers:": {
  65775. "uc_base": "1f37b",
  65776. "uc_output": "1f37b",
  65777. "uc_match": "1f37b",
  65778. "uc_greedy": "1f37b",
  65779. "shortnames": [],
  65780. "category": "food"
  65781. },
  65782. ":beetle:": {
  65783. "uc_base": "1f41e",
  65784. "uc_output": "1f41e",
  65785. "uc_match": "1f41e",
  65786. "uc_greedy": "1f41e",
  65787. "shortnames": [],
  65788. "category": "nature"
  65789. },
  65790. ":beginner:": {
  65791. "uc_base": "1f530",
  65792. "uc_output": "1f530",
  65793. "uc_match": "1f530",
  65794. "uc_greedy": "1f530",
  65795. "shortnames": [],
  65796. "category": "symbols"
  65797. },
  65798. ":bell:": {
  65799. "uc_base": "1f514",
  65800. "uc_output": "1f514",
  65801. "uc_match": "1f514",
  65802. "uc_greedy": "1f514",
  65803. "shortnames": [],
  65804. "category": "symbols"
  65805. },
  65806. ":bellhop:": {
  65807. "uc_base": "1f6ce",
  65808. "uc_output": "1f6ce",
  65809. "uc_match": "1f6ce-fe0f",
  65810. "uc_greedy": "1f6ce-fe0f",
  65811. "shortnames": [":bellhop_bell:"],
  65812. "category": "objects"
  65813. },
  65814. ":bento:": {
  65815. "uc_base": "1f371",
  65816. "uc_output": "1f371",
  65817. "uc_match": "1f371",
  65818. "uc_greedy": "1f371",
  65819. "shortnames": [],
  65820. "category": "food"
  65821. },
  65822. ":bike:": {
  65823. "uc_base": "1f6b2",
  65824. "uc_output": "1f6b2",
  65825. "uc_match": "1f6b2-fe0f",
  65826. "uc_greedy": "1f6b2-fe0f",
  65827. "shortnames": [],
  65828. "category": "travel"
  65829. },
  65830. ":bikini:": {
  65831. "uc_base": "1f459",
  65832. "uc_output": "1f459",
  65833. "uc_match": "1f459",
  65834. "uc_greedy": "1f459",
  65835. "shortnames": [],
  65836. "category": "people"
  65837. },
  65838. ":billed_cap:": {
  65839. "uc_base": "1f9e2",
  65840. "uc_output": "1f9e2",
  65841. "uc_match": "1f9e2",
  65842. "uc_greedy": "1f9e2",
  65843. "shortnames": [],
  65844. "category": "people"
  65845. },
  65846. ":bird:": {
  65847. "uc_base": "1f426",
  65848. "uc_output": "1f426",
  65849. "uc_match": "1f426-fe0f",
  65850. "uc_greedy": "1f426-fe0f",
  65851. "shortnames": [],
  65852. "category": "nature"
  65853. },
  65854. ":birthday:": {
  65855. "uc_base": "1f382",
  65856. "uc_output": "1f382",
  65857. "uc_match": "1f382",
  65858. "uc_greedy": "1f382",
  65859. "shortnames": [],
  65860. "category": "food"
  65861. },
  65862. ":black_heart:": {
  65863. "uc_base": "1f5a4",
  65864. "uc_output": "1f5a4",
  65865. "uc_match": "1f5a4",
  65866. "uc_greedy": "1f5a4",
  65867. "shortnames": [],
  65868. "category": "symbols"
  65869. },
  65870. ":black_joker:": {
  65871. "uc_base": "1f0cf",
  65872. "uc_output": "1f0cf",
  65873. "uc_match": "1f0cf",
  65874. "uc_greedy": "1f0cf",
  65875. "shortnames": [],
  65876. "category": "symbols"
  65877. },
  65878. ":black_square_button:": {
  65879. "uc_base": "1f532",
  65880. "uc_output": "1f532",
  65881. "uc_match": "1f532",
  65882. "uc_greedy": "1f532",
  65883. "shortnames": [],
  65884. "category": "symbols"
  65885. },
  65886. ":blond_haired_person:": {
  65887. "uc_base": "1f471",
  65888. "uc_output": "1f471",
  65889. "uc_match": "1f471",
  65890. "uc_greedy": "1f471",
  65891. "shortnames": [":person_with_blond_hair:"],
  65892. "category": "people"
  65893. },
  65894. ":blossom:": {
  65895. "uc_base": "1f33c",
  65896. "uc_output": "1f33c",
  65897. "uc_match": "1f33c",
  65898. "uc_greedy": "1f33c",
  65899. "shortnames": [],
  65900. "category": "nature"
  65901. },
  65902. ":blowfish:": {
  65903. "uc_base": "1f421",
  65904. "uc_output": "1f421",
  65905. "uc_match": "1f421",
  65906. "uc_greedy": "1f421",
  65907. "shortnames": [],
  65908. "category": "nature"
  65909. },
  65910. ":blue_book:": {
  65911. "uc_base": "1f4d8",
  65912. "uc_output": "1f4d8",
  65913. "uc_match": "1f4d8",
  65914. "uc_greedy": "1f4d8",
  65915. "shortnames": [],
  65916. "category": "objects"
  65917. },
  65918. ":blue_car:": {
  65919. "uc_base": "1f699",
  65920. "uc_output": "1f699",
  65921. "uc_match": "1f699",
  65922. "uc_greedy": "1f699",
  65923. "shortnames": [],
  65924. "category": "travel"
  65925. },
  65926. ":blue_circle:": {
  65927. "uc_base": "1f535",
  65928. "uc_output": "1f535",
  65929. "uc_match": "1f535",
  65930. "uc_greedy": "1f535",
  65931. "shortnames": [],
  65932. "category": "symbols"
  65933. },
  65934. ":blue_heart:": {
  65935. "uc_base": "1f499",
  65936. "uc_output": "1f499",
  65937. "uc_match": "1f499",
  65938. "uc_greedy": "1f499",
  65939. "shortnames": [],
  65940. "category": "symbols"
  65941. },
  65942. ":blush:": {
  65943. "uc_base": "1f60a",
  65944. "uc_output": "1f60a",
  65945. "uc_match": "1f60a",
  65946. "uc_greedy": "1f60a",
  65947. "shortnames": [],
  65948. "category": "people"
  65949. },
  65950. ":boar:": {
  65951. "uc_base": "1f417",
  65952. "uc_output": "1f417",
  65953. "uc_match": "1f417",
  65954. "uc_greedy": "1f417",
  65955. "shortnames": [],
  65956. "category": "nature"
  65957. },
  65958. ":bomb:": {
  65959. "uc_base": "1f4a3",
  65960. "uc_output": "1f4a3",
  65961. "uc_match": "1f4a3-fe0f",
  65962. "uc_greedy": "1f4a3-fe0f",
  65963. "shortnames": [],
  65964. "category": "objects"
  65965. },
  65966. ":book:": {
  65967. "uc_base": "1f4d6",
  65968. "uc_output": "1f4d6",
  65969. "uc_match": "1f4d6",
  65970. "uc_greedy": "1f4d6",
  65971. "shortnames": [],
  65972. "category": "objects"
  65973. },
  65974. ":bookmark:": {
  65975. "uc_base": "1f516",
  65976. "uc_output": "1f516",
  65977. "uc_match": "1f516",
  65978. "uc_greedy": "1f516",
  65979. "shortnames": [],
  65980. "category": "objects"
  65981. },
  65982. ":bookmark_tabs:": {
  65983. "uc_base": "1f4d1",
  65984. "uc_output": "1f4d1",
  65985. "uc_match": "1f4d1",
  65986. "uc_greedy": "1f4d1",
  65987. "shortnames": [],
  65988. "category": "objects"
  65989. },
  65990. ":books:": {
  65991. "uc_base": "1f4da",
  65992. "uc_output": "1f4da",
  65993. "uc_match": "1f4da-fe0f",
  65994. "uc_greedy": "1f4da-fe0f",
  65995. "shortnames": [],
  65996. "category": "objects"
  65997. },
  65998. ":boom:": {
  65999. "uc_base": "1f4a5",
  66000. "uc_output": "1f4a5",
  66001. "uc_match": "1f4a5",
  66002. "uc_greedy": "1f4a5",
  66003. "shortnames": [],
  66004. "category": "nature"
  66005. },
  66006. ":boot:": {
  66007. "uc_base": "1f462",
  66008. "uc_output": "1f462",
  66009. "uc_match": "1f462",
  66010. "uc_greedy": "1f462",
  66011. "shortnames": [],
  66012. "category": "people"
  66013. },
  66014. ":bouquet:": {
  66015. "uc_base": "1f490",
  66016. "uc_output": "1f490",
  66017. "uc_match": "1f490",
  66018. "uc_greedy": "1f490",
  66019. "shortnames": [],
  66020. "category": "nature"
  66021. },
  66022. ":bow_and_arrow:": {
  66023. "uc_base": "1f3f9",
  66024. "uc_output": "1f3f9",
  66025. "uc_match": "1f3f9",
  66026. "uc_greedy": "1f3f9",
  66027. "shortnames": [":archery:"],
  66028. "category": "activity"
  66029. },
  66030. ":bowl_with_spoon:": {
  66031. "uc_base": "1f963",
  66032. "uc_output": "1f963",
  66033. "uc_match": "1f963",
  66034. "uc_greedy": "1f963",
  66035. "shortnames": [],
  66036. "category": "food"
  66037. },
  66038. ":bowling:": {
  66039. "uc_base": "1f3b3",
  66040. "uc_output": "1f3b3",
  66041. "uc_match": "1f3b3",
  66042. "uc_greedy": "1f3b3",
  66043. "shortnames": [],
  66044. "category": "activity"
  66045. },
  66046. ":boxing_glove:": {
  66047. "uc_base": "1f94a",
  66048. "uc_output": "1f94a",
  66049. "uc_match": "1f94a",
  66050. "uc_greedy": "1f94a",
  66051. "shortnames": [":boxing_gloves:"],
  66052. "category": "activity"
  66053. },
  66054. ":boy:": {
  66055. "uc_base": "1f466",
  66056. "uc_output": "1f466",
  66057. "uc_match": "1f466",
  66058. "uc_greedy": "1f466",
  66059. "shortnames": [],
  66060. "category": "people"
  66061. },
  66062. ":brain:": {
  66063. "uc_base": "1f9e0",
  66064. "uc_output": "1f9e0",
  66065. "uc_match": "1f9e0",
  66066. "uc_greedy": "1f9e0",
  66067. "shortnames": [],
  66068. "category": "people"
  66069. },
  66070. ":bread:": {
  66071. "uc_base": "1f35e",
  66072. "uc_output": "1f35e",
  66073. "uc_match": "1f35e",
  66074. "uc_greedy": "1f35e",
  66075. "shortnames": [],
  66076. "category": "food"
  66077. },
  66078. ":breast_feeding:": {
  66079. "uc_base": "1f931",
  66080. "uc_output": "1f931",
  66081. "uc_match": "1f931",
  66082. "uc_greedy": "1f931",
  66083. "shortnames": [],
  66084. "category": "people"
  66085. },
  66086. ":bride_with_veil:": {
  66087. "uc_base": "1f470",
  66088. "uc_output": "1f470",
  66089. "uc_match": "1f470",
  66090. "uc_greedy": "1f470",
  66091. "shortnames": [],
  66092. "category": "people"
  66093. },
  66094. ":bridge_at_night:": {
  66095. "uc_base": "1f309",
  66096. "uc_output": "1f309",
  66097. "uc_match": "1f309",
  66098. "uc_greedy": "1f309",
  66099. "shortnames": [],
  66100. "category": "travel"
  66101. },
  66102. ":briefcase:": {
  66103. "uc_base": "1f4bc",
  66104. "uc_output": "1f4bc",
  66105. "uc_match": "1f4bc",
  66106. "uc_greedy": "1f4bc",
  66107. "shortnames": [],
  66108. "category": "people"
  66109. },
  66110. ":broccoli:": {
  66111. "uc_base": "1f966",
  66112. "uc_output": "1f966",
  66113. "uc_match": "1f966",
  66114. "uc_greedy": "1f966",
  66115. "shortnames": [],
  66116. "category": "food"
  66117. },
  66118. ":broken_heart:": {
  66119. "uc_base": "1f494",
  66120. "uc_output": "1f494",
  66121. "uc_match": "1f494",
  66122. "uc_greedy": "1f494",
  66123. "shortnames": [],
  66124. "category": "symbols"
  66125. },
  66126. ":bug:": {
  66127. "uc_base": "1f41b",
  66128. "uc_output": "1f41b",
  66129. "uc_match": "1f41b",
  66130. "uc_greedy": "1f41b",
  66131. "shortnames": [],
  66132. "category": "nature"
  66133. },
  66134. ":bulb:": {
  66135. "uc_base": "1f4a1",
  66136. "uc_output": "1f4a1",
  66137. "uc_match": "1f4a1",
  66138. "uc_greedy": "1f4a1",
  66139. "shortnames": [],
  66140. "category": "objects"
  66141. },
  66142. ":bullettrain_front:": {
  66143. "uc_base": "1f685",
  66144. "uc_output": "1f685",
  66145. "uc_match": "1f685",
  66146. "uc_greedy": "1f685",
  66147. "shortnames": [],
  66148. "category": "travel"
  66149. },
  66150. ":bullettrain_side:": {
  66151. "uc_base": "1f684",
  66152. "uc_output": "1f684",
  66153. "uc_match": "1f684",
  66154. "uc_greedy": "1f684",
  66155. "shortnames": [],
  66156. "category": "travel"
  66157. },
  66158. ":burrito:": {
  66159. "uc_base": "1f32f",
  66160. "uc_output": "1f32f",
  66161. "uc_match": "1f32f",
  66162. "uc_greedy": "1f32f",
  66163. "shortnames": [],
  66164. "category": "food"
  66165. },
  66166. ":bus:": {
  66167. "uc_base": "1f68c",
  66168. "uc_output": "1f68c",
  66169. "uc_match": "1f68c",
  66170. "uc_greedy": "1f68c",
  66171. "shortnames": [],
  66172. "category": "travel"
  66173. },
  66174. ":busstop:": {
  66175. "uc_base": "1f68f",
  66176. "uc_output": "1f68f",
  66177. "uc_match": "1f68f",
  66178. "uc_greedy": "1f68f",
  66179. "shortnames": [],
  66180. "category": "travel"
  66181. },
  66182. ":bust_in_silhouette:": {
  66183. "uc_base": "1f464",
  66184. "uc_output": "1f464",
  66185. "uc_match": "1f464",
  66186. "uc_greedy": "1f464",
  66187. "shortnames": [],
  66188. "category": "people"
  66189. },
  66190. ":busts_in_silhouette:": {
  66191. "uc_base": "1f465",
  66192. "uc_output": "1f465",
  66193. "uc_match": "1f465",
  66194. "uc_greedy": "1f465",
  66195. "shortnames": [],
  66196. "category": "people"
  66197. },
  66198. ":butterfly:": {
  66199. "uc_base": "1f98b",
  66200. "uc_output": "1f98b",
  66201. "uc_match": "1f98b",
  66202. "uc_greedy": "1f98b",
  66203. "shortnames": [],
  66204. "category": "nature"
  66205. },
  66206. ":cactus:": {
  66207. "uc_base": "1f335",
  66208. "uc_output": "1f335",
  66209. "uc_match": "1f335",
  66210. "uc_greedy": "1f335",
  66211. "shortnames": [],
  66212. "category": "nature"
  66213. },
  66214. ":cake:": {
  66215. "uc_base": "1f370",
  66216. "uc_output": "1f370",
  66217. "uc_match": "1f370",
  66218. "uc_greedy": "1f370",
  66219. "shortnames": [],
  66220. "category": "food"
  66221. },
  66222. ":calendar:": {
  66223. "uc_base": "1f4c6",
  66224. "uc_output": "1f4c6",
  66225. "uc_match": "1f4c6",
  66226. "uc_greedy": "1f4c6",
  66227. "shortnames": [],
  66228. "category": "objects"
  66229. },
  66230. ":calendar_spiral:": {
  66231. "uc_base": "1f5d3",
  66232. "uc_output": "1f5d3",
  66233. "uc_match": "1f5d3-fe0f",
  66234. "uc_greedy": "1f5d3-fe0f",
  66235. "shortnames": [":spiral_calendar_pad:"],
  66236. "category": "objects"
  66237. },
  66238. ":call_me:": {
  66239. "uc_base": "1f919",
  66240. "uc_output": "1f919",
  66241. "uc_match": "1f919",
  66242. "uc_greedy": "1f919",
  66243. "shortnames": [":call_me_hand:"],
  66244. "category": "people"
  66245. },
  66246. ":calling:": {
  66247. "uc_base": "1f4f2",
  66248. "uc_output": "1f4f2",
  66249. "uc_match": "1f4f2",
  66250. "uc_greedy": "1f4f2",
  66251. "shortnames": [],
  66252. "category": "objects"
  66253. },
  66254. ":camel:": {
  66255. "uc_base": "1f42b",
  66256. "uc_output": "1f42b",
  66257. "uc_match": "1f42b",
  66258. "uc_greedy": "1f42b",
  66259. "shortnames": [],
  66260. "category": "nature"
  66261. },
  66262. ":camera:": {
  66263. "uc_base": "1f4f7",
  66264. "uc_output": "1f4f7",
  66265. "uc_match": "1f4f7-fe0f",
  66266. "uc_greedy": "1f4f7-fe0f",
  66267. "shortnames": [],
  66268. "category": "objects"
  66269. },
  66270. ":camera_with_flash:": {
  66271. "uc_base": "1f4f8",
  66272. "uc_output": "1f4f8",
  66273. "uc_match": "1f4f8",
  66274. "uc_greedy": "1f4f8",
  66275. "shortnames": [],
  66276. "category": "objects"
  66277. },
  66278. ":camping:": {
  66279. "uc_base": "1f3d5",
  66280. "uc_output": "1f3d5",
  66281. "uc_match": "1f3d5-fe0f",
  66282. "uc_greedy": "1f3d5-fe0f",
  66283. "shortnames": [],
  66284. "category": "travel"
  66285. },
  66286. ":candle:": {
  66287. "uc_base": "1f56f",
  66288. "uc_output": "1f56f",
  66289. "uc_match": "1f56f-fe0f",
  66290. "uc_greedy": "1f56f-fe0f",
  66291. "shortnames": [],
  66292. "category": "objects"
  66293. },
  66294. ":candy:": {
  66295. "uc_base": "1f36c",
  66296. "uc_output": "1f36c",
  66297. "uc_match": "1f36c",
  66298. "uc_greedy": "1f36c",
  66299. "shortnames": [],
  66300. "category": "food"
  66301. },
  66302. ":canned_food:": {
  66303. "uc_base": "1f96b",
  66304. "uc_output": "1f96b",
  66305. "uc_match": "1f96b",
  66306. "uc_greedy": "1f96b",
  66307. "shortnames": [],
  66308. "category": "food"
  66309. },
  66310. ":canoe:": {
  66311. "uc_base": "1f6f6",
  66312. "uc_output": "1f6f6",
  66313. "uc_match": "1f6f6",
  66314. "uc_greedy": "1f6f6",
  66315. "shortnames": [":kayak:"],
  66316. "category": "travel"
  66317. },
  66318. ":capital_abcd:": {
  66319. "uc_base": "1f520",
  66320. "uc_output": "1f520",
  66321. "uc_match": "1f520",
  66322. "uc_greedy": "1f520",
  66323. "shortnames": [],
  66324. "category": "symbols"
  66325. },
  66326. ":card_box:": {
  66327. "uc_base": "1f5c3",
  66328. "uc_output": "1f5c3",
  66329. "uc_match": "1f5c3-fe0f",
  66330. "uc_greedy": "1f5c3-fe0f",
  66331. "shortnames": [":card_file_box:"],
  66332. "category": "objects"
  66333. },
  66334. ":card_index:": {
  66335. "uc_base": "1f4c7",
  66336. "uc_output": "1f4c7",
  66337. "uc_match": "1f4c7",
  66338. "uc_greedy": "1f4c7",
  66339. "shortnames": [],
  66340. "category": "objects"
  66341. },
  66342. ":carousel_horse:": {
  66343. "uc_base": "1f3a0",
  66344. "uc_output": "1f3a0",
  66345. "uc_match": "1f3a0",
  66346. "uc_greedy": "1f3a0",
  66347. "shortnames": [],
  66348. "category": "travel"
  66349. },
  66350. ":carrot:": {
  66351. "uc_base": "1f955",
  66352. "uc_output": "1f955",
  66353. "uc_match": "1f955",
  66354. "uc_greedy": "1f955",
  66355. "shortnames": [],
  66356. "category": "food"
  66357. },
  66358. ":cat2:": {
  66359. "uc_base": "1f408",
  66360. "uc_output": "1f408",
  66361. "uc_match": "1f408-fe0f",
  66362. "uc_greedy": "1f408-fe0f",
  66363. "shortnames": [],
  66364. "category": "nature"
  66365. },
  66366. ":cat:": {
  66367. "uc_base": "1f431",
  66368. "uc_output": "1f431",
  66369. "uc_match": "1f431",
  66370. "uc_greedy": "1f431",
  66371. "shortnames": [],
  66372. "category": "nature"
  66373. },
  66374. ":cd:": {
  66375. "uc_base": "1f4bf",
  66376. "uc_output": "1f4bf",
  66377. "uc_match": "1f4bf-fe0f",
  66378. "uc_greedy": "1f4bf-fe0f",
  66379. "shortnames": [],
  66380. "category": "objects"
  66381. },
  66382. ":champagne:": {
  66383. "uc_base": "1f37e",
  66384. "uc_output": "1f37e",
  66385. "uc_match": "1f37e",
  66386. "uc_greedy": "1f37e",
  66387. "shortnames": [":bottle_with_popping_cork:"],
  66388. "category": "food"
  66389. },
  66390. ":champagne_glass:": {
  66391. "uc_base": "1f942",
  66392. "uc_output": "1f942",
  66393. "uc_match": "1f942",
  66394. "uc_greedy": "1f942",
  66395. "shortnames": [":clinking_glass:"],
  66396. "category": "food"
  66397. },
  66398. ":chart:": {
  66399. "uc_base": "1f4b9",
  66400. "uc_output": "1f4b9",
  66401. "uc_match": "1f4b9",
  66402. "uc_greedy": "1f4b9",
  66403. "shortnames": [],
  66404. "category": "symbols"
  66405. },
  66406. ":chart_with_downwards_trend:": {
  66407. "uc_base": "1f4c9",
  66408. "uc_output": "1f4c9",
  66409. "uc_match": "1f4c9",
  66410. "uc_greedy": "1f4c9",
  66411. "shortnames": [],
  66412. "category": "objects"
  66413. },
  66414. ":chart_with_upwards_trend:": {
  66415. "uc_base": "1f4c8",
  66416. "uc_output": "1f4c8",
  66417. "uc_match": "1f4c8",
  66418. "uc_greedy": "1f4c8",
  66419. "shortnames": [],
  66420. "category": "objects"
  66421. },
  66422. ":checkered_flag:": {
  66423. "uc_base": "1f3c1",
  66424. "uc_output": "1f3c1",
  66425. "uc_match": "1f3c1",
  66426. "uc_greedy": "1f3c1",
  66427. "shortnames": [],
  66428. "category": "flags"
  66429. },
  66430. ":cheese:": {
  66431. "uc_base": "1f9c0",
  66432. "uc_output": "1f9c0",
  66433. "uc_match": "1f9c0",
  66434. "uc_greedy": "1f9c0",
  66435. "shortnames": [":cheese_wedge:"],
  66436. "category": "food"
  66437. },
  66438. ":cherries:": {
  66439. "uc_base": "1f352",
  66440. "uc_output": "1f352",
  66441. "uc_match": "1f352",
  66442. "uc_greedy": "1f352",
  66443. "shortnames": [],
  66444. "category": "food"
  66445. },
  66446. ":cherry_blossom:": {
  66447. "uc_base": "1f338",
  66448. "uc_output": "1f338",
  66449. "uc_match": "1f338",
  66450. "uc_greedy": "1f338",
  66451. "shortnames": [],
  66452. "category": "nature"
  66453. },
  66454. ":chestnut:": {
  66455. "uc_base": "1f330",
  66456. "uc_output": "1f330",
  66457. "uc_match": "1f330",
  66458. "uc_greedy": "1f330",
  66459. "shortnames": [],
  66460. "category": "food"
  66461. },
  66462. ":chicken:": {
  66463. "uc_base": "1f414",
  66464. "uc_output": "1f414",
  66465. "uc_match": "1f414",
  66466. "uc_greedy": "1f414",
  66467. "shortnames": [],
  66468. "category": "nature"
  66469. },
  66470. ":child:": {
  66471. "uc_base": "1f9d2",
  66472. "uc_output": "1f9d2",
  66473. "uc_match": "1f9d2",
  66474. "uc_greedy": "1f9d2",
  66475. "shortnames": [],
  66476. "category": "people"
  66477. },
  66478. ":children_crossing:": {
  66479. "uc_base": "1f6b8",
  66480. "uc_output": "1f6b8",
  66481. "uc_match": "1f6b8",
  66482. "uc_greedy": "1f6b8",
  66483. "shortnames": [],
  66484. "category": "symbols"
  66485. },
  66486. ":chipmunk:": {
  66487. "uc_base": "1f43f",
  66488. "uc_output": "1f43f",
  66489. "uc_match": "1f43f-fe0f",
  66490. "uc_greedy": "1f43f-fe0f",
  66491. "shortnames": [],
  66492. "category": "nature"
  66493. },
  66494. ":chocolate_bar:": {
  66495. "uc_base": "1f36b",
  66496. "uc_output": "1f36b",
  66497. "uc_match": "1f36b",
  66498. "uc_greedy": "1f36b",
  66499. "shortnames": [],
  66500. "category": "food"
  66501. },
  66502. ":chopsticks:": {
  66503. "uc_base": "1f962",
  66504. "uc_output": "1f962",
  66505. "uc_match": "1f962",
  66506. "uc_greedy": "1f962",
  66507. "shortnames": [],
  66508. "category": "food"
  66509. },
  66510. ":christmas_tree:": {
  66511. "uc_base": "1f384",
  66512. "uc_output": "1f384",
  66513. "uc_match": "1f384",
  66514. "uc_greedy": "1f384",
  66515. "shortnames": [],
  66516. "category": "nature"
  66517. },
  66518. ":cinema:": {
  66519. "uc_base": "1f3a6",
  66520. "uc_output": "1f3a6",
  66521. "uc_match": "1f3a6",
  66522. "uc_greedy": "1f3a6",
  66523. "shortnames": [],
  66524. "category": "symbols"
  66525. },
  66526. ":circus_tent:": {
  66527. "uc_base": "1f3aa",
  66528. "uc_output": "1f3aa",
  66529. "uc_match": "1f3aa",
  66530. "uc_greedy": "1f3aa",
  66531. "shortnames": [],
  66532. "category": "activity"
  66533. },
  66534. ":city_dusk:": {
  66535. "uc_base": "1f306",
  66536. "uc_output": "1f306",
  66537. "uc_match": "1f306",
  66538. "uc_greedy": "1f306",
  66539. "shortnames": [],
  66540. "category": "travel"
  66541. },
  66542. ":city_sunset:": {
  66543. "uc_base": "1f307",
  66544. "uc_output": "1f307",
  66545. "uc_match": "1f307",
  66546. "uc_greedy": "1f307",
  66547. "shortnames": [":city_sunrise:"],
  66548. "category": "travel"
  66549. },
  66550. ":cityscape:": {
  66551. "uc_base": "1f3d9",
  66552. "uc_output": "1f3d9",
  66553. "uc_match": "1f3d9-fe0f",
  66554. "uc_greedy": "1f3d9-fe0f",
  66555. "shortnames": [],
  66556. "category": "travel"
  66557. },
  66558. ":cl:": {
  66559. "uc_base": "1f191",
  66560. "uc_output": "1f191",
  66561. "uc_match": "1f191",
  66562. "uc_greedy": "1f191",
  66563. "shortnames": [],
  66564. "category": "symbols"
  66565. },
  66566. ":clap:": {
  66567. "uc_base": "1f44f",
  66568. "uc_output": "1f44f",
  66569. "uc_match": "1f44f",
  66570. "uc_greedy": "1f44f",
  66571. "shortnames": [],
  66572. "category": "people"
  66573. },
  66574. ":clapper:": {
  66575. "uc_base": "1f3ac",
  66576. "uc_output": "1f3ac",
  66577. "uc_match": "1f3ac-fe0f",
  66578. "uc_greedy": "1f3ac-fe0f",
  66579. "shortnames": [],
  66580. "category": "activity"
  66581. },
  66582. ":classical_building:": {
  66583. "uc_base": "1f3db",
  66584. "uc_output": "1f3db",
  66585. "uc_match": "1f3db-fe0f",
  66586. "uc_greedy": "1f3db-fe0f",
  66587. "shortnames": [],
  66588. "category": "travel"
  66589. },
  66590. ":clipboard:": {
  66591. "uc_base": "1f4cb",
  66592. "uc_output": "1f4cb",
  66593. "uc_match": "1f4cb-fe0f",
  66594. "uc_greedy": "1f4cb-fe0f",
  66595. "shortnames": [],
  66596. "category": "objects"
  66597. },
  66598. ":clock1030:": {
  66599. "uc_base": "1f565",
  66600. "uc_output": "1f565",
  66601. "uc_match": "1f565-fe0f",
  66602. "uc_greedy": "1f565-fe0f",
  66603. "shortnames": [],
  66604. "category": "symbols"
  66605. },
  66606. ":clock10:": {
  66607. "uc_base": "1f559",
  66608. "uc_output": "1f559",
  66609. "uc_match": "1f559-fe0f",
  66610. "uc_greedy": "1f559-fe0f",
  66611. "shortnames": [],
  66612. "category": "symbols"
  66613. },
  66614. ":clock1130:": {
  66615. "uc_base": "1f566",
  66616. "uc_output": "1f566",
  66617. "uc_match": "1f566-fe0f",
  66618. "uc_greedy": "1f566-fe0f",
  66619. "shortnames": [],
  66620. "category": "symbols"
  66621. },
  66622. ":clock11:": {
  66623. "uc_base": "1f55a",
  66624. "uc_output": "1f55a",
  66625. "uc_match": "1f55a-fe0f",
  66626. "uc_greedy": "1f55a-fe0f",
  66627. "shortnames": [],
  66628. "category": "symbols"
  66629. },
  66630. ":clock1230:": {
  66631. "uc_base": "1f567",
  66632. "uc_output": "1f567",
  66633. "uc_match": "1f567-fe0f",
  66634. "uc_greedy": "1f567-fe0f",
  66635. "shortnames": [],
  66636. "category": "symbols"
  66637. },
  66638. ":clock12:": {
  66639. "uc_base": "1f55b",
  66640. "uc_output": "1f55b",
  66641. "uc_match": "1f55b-fe0f",
  66642. "uc_greedy": "1f55b-fe0f",
  66643. "shortnames": [],
  66644. "category": "symbols"
  66645. },
  66646. ":clock130:": {
  66647. "uc_base": "1f55c",
  66648. "uc_output": "1f55c",
  66649. "uc_match": "1f55c-fe0f",
  66650. "uc_greedy": "1f55c-fe0f",
  66651. "shortnames": [],
  66652. "category": "symbols"
  66653. },
  66654. ":clock1:": {
  66655. "uc_base": "1f550",
  66656. "uc_output": "1f550",
  66657. "uc_match": "1f550-fe0f",
  66658. "uc_greedy": "1f550-fe0f",
  66659. "shortnames": [],
  66660. "category": "symbols"
  66661. },
  66662. ":clock230:": {
  66663. "uc_base": "1f55d",
  66664. "uc_output": "1f55d",
  66665. "uc_match": "1f55d-fe0f",
  66666. "uc_greedy": "1f55d-fe0f",
  66667. "shortnames": [],
  66668. "category": "symbols"
  66669. },
  66670. ":clock2:": {
  66671. "uc_base": "1f551",
  66672. "uc_output": "1f551",
  66673. "uc_match": "1f551-fe0f",
  66674. "uc_greedy": "1f551-fe0f",
  66675. "shortnames": [],
  66676. "category": "symbols"
  66677. },
  66678. ":clock330:": {
  66679. "uc_base": "1f55e",
  66680. "uc_output": "1f55e",
  66681. "uc_match": "1f55e-fe0f",
  66682. "uc_greedy": "1f55e-fe0f",
  66683. "shortnames": [],
  66684. "category": "symbols"
  66685. },
  66686. ":clock3:": {
  66687. "uc_base": "1f552",
  66688. "uc_output": "1f552",
  66689. "uc_match": "1f552-fe0f",
  66690. "uc_greedy": "1f552-fe0f",
  66691. "shortnames": [],
  66692. "category": "symbols"
  66693. },
  66694. ":clock430:": {
  66695. "uc_base": "1f55f",
  66696. "uc_output": "1f55f",
  66697. "uc_match": "1f55f-fe0f",
  66698. "uc_greedy": "1f55f-fe0f",
  66699. "shortnames": [],
  66700. "category": "symbols"
  66701. },
  66702. ":clock4:": {
  66703. "uc_base": "1f553",
  66704. "uc_output": "1f553",
  66705. "uc_match": "1f553-fe0f",
  66706. "uc_greedy": "1f553-fe0f",
  66707. "shortnames": [],
  66708. "category": "symbols"
  66709. },
  66710. ":clock530:": {
  66711. "uc_base": "1f560",
  66712. "uc_output": "1f560",
  66713. "uc_match": "1f560-fe0f",
  66714. "uc_greedy": "1f560-fe0f",
  66715. "shortnames": [],
  66716. "category": "symbols"
  66717. },
  66718. ":clock5:": {
  66719. "uc_base": "1f554",
  66720. "uc_output": "1f554",
  66721. "uc_match": "1f554-fe0f",
  66722. "uc_greedy": "1f554-fe0f",
  66723. "shortnames": [],
  66724. "category": "symbols"
  66725. },
  66726. ":clock630:": {
  66727. "uc_base": "1f561",
  66728. "uc_output": "1f561",
  66729. "uc_match": "1f561-fe0f",
  66730. "uc_greedy": "1f561-fe0f",
  66731. "shortnames": [],
  66732. "category": "symbols"
  66733. },
  66734. ":clock6:": {
  66735. "uc_base": "1f555",
  66736. "uc_output": "1f555",
  66737. "uc_match": "1f555-fe0f",
  66738. "uc_greedy": "1f555-fe0f",
  66739. "shortnames": [],
  66740. "category": "symbols"
  66741. },
  66742. ":clock730:": {
  66743. "uc_base": "1f562",
  66744. "uc_output": "1f562",
  66745. "uc_match": "1f562-fe0f",
  66746. "uc_greedy": "1f562-fe0f",
  66747. "shortnames": [],
  66748. "category": "symbols"
  66749. },
  66750. ":clock7:": {
  66751. "uc_base": "1f556",
  66752. "uc_output": "1f556",
  66753. "uc_match": "1f556-fe0f",
  66754. "uc_greedy": "1f556-fe0f",
  66755. "shortnames": [],
  66756. "category": "symbols"
  66757. },
  66758. ":clock830:": {
  66759. "uc_base": "1f563",
  66760. "uc_output": "1f563",
  66761. "uc_match": "1f563-fe0f",
  66762. "uc_greedy": "1f563-fe0f",
  66763. "shortnames": [],
  66764. "category": "symbols"
  66765. },
  66766. ":clock8:": {
  66767. "uc_base": "1f557",
  66768. "uc_output": "1f557",
  66769. "uc_match": "1f557-fe0f",
  66770. "uc_greedy": "1f557-fe0f",
  66771. "shortnames": [],
  66772. "category": "symbols"
  66773. },
  66774. ":clock930:": {
  66775. "uc_base": "1f564",
  66776. "uc_output": "1f564",
  66777. "uc_match": "1f564-fe0f",
  66778. "uc_greedy": "1f564-fe0f",
  66779. "shortnames": [],
  66780. "category": "symbols"
  66781. },
  66782. ":clock9:": {
  66783. "uc_base": "1f558",
  66784. "uc_output": "1f558",
  66785. "uc_match": "1f558-fe0f",
  66786. "uc_greedy": "1f558-fe0f",
  66787. "shortnames": [],
  66788. "category": "symbols"
  66789. },
  66790. ":clock:": {
  66791. "uc_base": "1f570",
  66792. "uc_output": "1f570",
  66793. "uc_match": "1f570-fe0f",
  66794. "uc_greedy": "1f570-fe0f",
  66795. "shortnames": [":mantlepiece_clock:"],
  66796. "category": "objects"
  66797. },
  66798. ":closed_book:": {
  66799. "uc_base": "1f4d5",
  66800. "uc_output": "1f4d5",
  66801. "uc_match": "1f4d5",
  66802. "uc_greedy": "1f4d5",
  66803. "shortnames": [],
  66804. "category": "objects"
  66805. },
  66806. ":closed_lock_with_key:": {
  66807. "uc_base": "1f510",
  66808. "uc_output": "1f510",
  66809. "uc_match": "1f510",
  66810. "uc_greedy": "1f510",
  66811. "shortnames": [],
  66812. "category": "objects"
  66813. },
  66814. ":closed_umbrella:": {
  66815. "uc_base": "1f302",
  66816. "uc_output": "1f302",
  66817. "uc_match": "1f302",
  66818. "uc_greedy": "1f302",
  66819. "shortnames": [],
  66820. "category": "people"
  66821. },
  66822. ":cloud_lightning:": {
  66823. "uc_base": "1f329",
  66824. "uc_output": "1f329",
  66825. "uc_match": "1f329-fe0f",
  66826. "uc_greedy": "1f329-fe0f",
  66827. "shortnames": [":cloud_with_lightning:"],
  66828. "category": "nature"
  66829. },
  66830. ":cloud_rain:": {
  66831. "uc_base": "1f327",
  66832. "uc_output": "1f327",
  66833. "uc_match": "1f327-fe0f",
  66834. "uc_greedy": "1f327-fe0f",
  66835. "shortnames": [":cloud_with_rain:"],
  66836. "category": "nature"
  66837. },
  66838. ":cloud_snow:": {
  66839. "uc_base": "1f328",
  66840. "uc_output": "1f328",
  66841. "uc_match": "1f328-fe0f",
  66842. "uc_greedy": "1f328-fe0f",
  66843. "shortnames": [":cloud_with_snow:"],
  66844. "category": "nature"
  66845. },
  66846. ":cloud_tornado:": {
  66847. "uc_base": "1f32a",
  66848. "uc_output": "1f32a",
  66849. "uc_match": "1f32a-fe0f",
  66850. "uc_greedy": "1f32a-fe0f",
  66851. "shortnames": [":cloud_with_tornado:"],
  66852. "category": "nature"
  66853. },
  66854. ":clown:": {
  66855. "uc_base": "1f921",
  66856. "uc_output": "1f921",
  66857. "uc_match": "1f921",
  66858. "uc_greedy": "1f921",
  66859. "shortnames": [":clown_face:"],
  66860. "category": "people"
  66861. },
  66862. ":coat:": {
  66863. "uc_base": "1f9e5",
  66864. "uc_output": "1f9e5",
  66865. "uc_match": "1f9e5",
  66866. "uc_greedy": "1f9e5",
  66867. "shortnames": [],
  66868. "category": "people"
  66869. },
  66870. ":cocktail:": {
  66871. "uc_base": "1f378",
  66872. "uc_output": "1f378",
  66873. "uc_match": "1f378-fe0f",
  66874. "uc_greedy": "1f378-fe0f",
  66875. "shortnames": [],
  66876. "category": "food"
  66877. },
  66878. ":coconut:": {
  66879. "uc_base": "1f965",
  66880. "uc_output": "1f965",
  66881. "uc_match": "1f965",
  66882. "uc_greedy": "1f965",
  66883. "shortnames": [],
  66884. "category": "food"
  66885. },
  66886. ":cold_sweat:": {
  66887. "uc_base": "1f630",
  66888. "uc_output": "1f630",
  66889. "uc_match": "1f630",
  66890. "uc_greedy": "1f630",
  66891. "shortnames": [],
  66892. "category": "people"
  66893. },
  66894. ":compression:": {
  66895. "uc_base": "1f5dc",
  66896. "uc_output": "1f5dc",
  66897. "uc_match": "1f5dc-fe0f",
  66898. "uc_greedy": "1f5dc-fe0f",
  66899. "shortnames": [],
  66900. "category": "objects"
  66901. },
  66902. ":computer:": {
  66903. "uc_base": "1f4bb",
  66904. "uc_output": "1f4bb",
  66905. "uc_match": "1f4bb-fe0f",
  66906. "uc_greedy": "1f4bb-fe0f",
  66907. "shortnames": [],
  66908. "category": "objects"
  66909. },
  66910. ":confetti_ball:": {
  66911. "uc_base": "1f38a",
  66912. "uc_output": "1f38a",
  66913. "uc_match": "1f38a",
  66914. "uc_greedy": "1f38a",
  66915. "shortnames": [],
  66916. "category": "objects"
  66917. },
  66918. ":confounded:": {
  66919. "uc_base": "1f616",
  66920. "uc_output": "1f616",
  66921. "uc_match": "1f616",
  66922. "uc_greedy": "1f616",
  66923. "shortnames": [],
  66924. "category": "people"
  66925. },
  66926. ":confused:": {
  66927. "uc_base": "1f615",
  66928. "uc_output": "1f615",
  66929. "uc_match": "1f615",
  66930. "uc_greedy": "1f615",
  66931. "shortnames": [],
  66932. "category": "people"
  66933. },
  66934. ":construction:": {
  66935. "uc_base": "1f6a7",
  66936. "uc_output": "1f6a7",
  66937. "uc_match": "1f6a7",
  66938. "uc_greedy": "1f6a7",
  66939. "shortnames": [],
  66940. "category": "travel"
  66941. },
  66942. ":construction_site:": {
  66943. "uc_base": "1f3d7",
  66944. "uc_output": "1f3d7",
  66945. "uc_match": "1f3d7-fe0f",
  66946. "uc_greedy": "1f3d7-fe0f",
  66947. "shortnames": [":building_construction:"],
  66948. "category": "travel"
  66949. },
  66950. ":construction_worker:": {
  66951. "uc_base": "1f477",
  66952. "uc_output": "1f477",
  66953. "uc_match": "1f477",
  66954. "uc_greedy": "1f477",
  66955. "shortnames": [],
  66956. "category": "people"
  66957. },
  66958. ":control_knobs:": {
  66959. "uc_base": "1f39b",
  66960. "uc_output": "1f39b",
  66961. "uc_match": "1f39b-fe0f",
  66962. "uc_greedy": "1f39b-fe0f",
  66963. "shortnames": [],
  66964. "category": "objects"
  66965. },
  66966. ":convenience_store:": {
  66967. "uc_base": "1f3ea",
  66968. "uc_output": "1f3ea",
  66969. "uc_match": "1f3ea",
  66970. "uc_greedy": "1f3ea",
  66971. "shortnames": [],
  66972. "category": "travel"
  66973. },
  66974. ":cookie:": {
  66975. "uc_base": "1f36a",
  66976. "uc_output": "1f36a",
  66977. "uc_match": "1f36a",
  66978. "uc_greedy": "1f36a",
  66979. "shortnames": [],
  66980. "category": "food"
  66981. },
  66982. ":cooking:": {
  66983. "uc_base": "1f373",
  66984. "uc_output": "1f373",
  66985. "uc_match": "1f373",
  66986. "uc_greedy": "1f373",
  66987. "shortnames": [],
  66988. "category": "food"
  66989. },
  66990. ":cool:": {
  66991. "uc_base": "1f192",
  66992. "uc_output": "1f192",
  66993. "uc_match": "1f192",
  66994. "uc_greedy": "1f192",
  66995. "shortnames": [],
  66996. "category": "symbols"
  66997. },
  66998. ":corn:": {
  66999. "uc_base": "1f33d",
  67000. "uc_output": "1f33d",
  67001. "uc_match": "1f33d",
  67002. "uc_greedy": "1f33d",
  67003. "shortnames": [],
  67004. "category": "food"
  67005. },
  67006. ":couch:": {
  67007. "uc_base": "1f6cb",
  67008. "uc_output": "1f6cb",
  67009. "uc_match": "1f6cb-fe0f",
  67010. "uc_greedy": "1f6cb-fe0f",
  67011. "shortnames": [":couch_and_lamp:"],
  67012. "category": "objects"
  67013. },
  67014. ":couple:": {
  67015. "uc_base": "1f46b",
  67016. "uc_output": "1f46b",
  67017. "uc_match": "1f46b",
  67018. "uc_greedy": "1f46b",
  67019. "shortnames": [],
  67020. "category": "people"
  67021. },
  67022. ":couple_with_heart:": {
  67023. "uc_base": "1f491",
  67024. "uc_output": "1f491",
  67025. "uc_match": "1f491",
  67026. "uc_greedy": "1f491",
  67027. "shortnames": [],
  67028. "category": "people"
  67029. },
  67030. ":couplekiss:": {
  67031. "uc_base": "1f48f",
  67032. "uc_output": "1f48f",
  67033. "uc_match": "1f48f",
  67034. "uc_greedy": "1f48f",
  67035. "shortnames": [],
  67036. "category": "people"
  67037. },
  67038. ":cow2:": {
  67039. "uc_base": "1f404",
  67040. "uc_output": "1f404",
  67041. "uc_match": "1f404",
  67042. "uc_greedy": "1f404",
  67043. "shortnames": [],
  67044. "category": "nature"
  67045. },
  67046. ":cow:": {
  67047. "uc_base": "1f42e",
  67048. "uc_output": "1f42e",
  67049. "uc_match": "1f42e",
  67050. "uc_greedy": "1f42e",
  67051. "shortnames": [],
  67052. "category": "nature"
  67053. },
  67054. ":cowboy:": {
  67055. "uc_base": "1f920",
  67056. "uc_output": "1f920",
  67057. "uc_match": "1f920",
  67058. "uc_greedy": "1f920",
  67059. "shortnames": [":face_with_cowboy_hat:"],
  67060. "category": "people"
  67061. },
  67062. ":crab:": {
  67063. "uc_base": "1f980",
  67064. "uc_output": "1f980",
  67065. "uc_match": "1f980",
  67066. "uc_greedy": "1f980",
  67067. "shortnames": [],
  67068. "category": "nature"
  67069. },
  67070. ":crayon:": {
  67071. "uc_base": "1f58d",
  67072. "uc_output": "1f58d",
  67073. "uc_match": "1f58d-fe0f",
  67074. "uc_greedy": "1f58d-fe0f",
  67075. "shortnames": [":lower_left_crayon:"],
  67076. "category": "objects"
  67077. },
  67078. ":crazy_face:": {
  67079. "uc_base": "1f92a",
  67080. "uc_output": "1f92a",
  67081. "uc_match": "1f92a",
  67082. "uc_greedy": "1f92a",
  67083. "shortnames": [],
  67084. "category": "people"
  67085. },
  67086. ":credit_card:": {
  67087. "uc_base": "1f4b3",
  67088. "uc_output": "1f4b3",
  67089. "uc_match": "1f4b3-fe0f",
  67090. "uc_greedy": "1f4b3-fe0f",
  67091. "shortnames": [],
  67092. "category": "objects"
  67093. },
  67094. ":crescent_moon:": {
  67095. "uc_base": "1f319",
  67096. "uc_output": "1f319",
  67097. "uc_match": "1f319",
  67098. "uc_greedy": "1f319",
  67099. "shortnames": [],
  67100. "category": "nature"
  67101. },
  67102. ":cricket:": {
  67103. "uc_base": "1f997",
  67104. "uc_output": "1f997",
  67105. "uc_match": "1f997",
  67106. "uc_greedy": "1f997",
  67107. "shortnames": [],
  67108. "category": "nature"
  67109. },
  67110. ":cricket_game:": {
  67111. "uc_base": "1f3cf",
  67112. "uc_output": "1f3cf",
  67113. "uc_match": "1f3cf",
  67114. "uc_greedy": "1f3cf",
  67115. "shortnames": [":cricket_bat_ball:"],
  67116. "category": "activity"
  67117. },
  67118. ":crocodile:": {
  67119. "uc_base": "1f40a",
  67120. "uc_output": "1f40a",
  67121. "uc_match": "1f40a",
  67122. "uc_greedy": "1f40a",
  67123. "shortnames": [],
  67124. "category": "nature"
  67125. },
  67126. ":croissant:": {
  67127. "uc_base": "1f950",
  67128. "uc_output": "1f950",
  67129. "uc_match": "1f950",
  67130. "uc_greedy": "1f950",
  67131. "shortnames": [],
  67132. "category": "food"
  67133. },
  67134. ":crossed_flags:": {
  67135. "uc_base": "1f38c",
  67136. "uc_output": "1f38c",
  67137. "uc_match": "1f38c",
  67138. "uc_greedy": "1f38c",
  67139. "shortnames": [],
  67140. "category": "flags"
  67141. },
  67142. ":crown:": {
  67143. "uc_base": "1f451",
  67144. "uc_output": "1f451",
  67145. "uc_match": "1f451",
  67146. "uc_greedy": "1f451",
  67147. "shortnames": [],
  67148. "category": "people"
  67149. },
  67150. ":cruise_ship:": {
  67151. "uc_base": "1f6f3",
  67152. "uc_output": "1f6f3",
  67153. "uc_match": "1f6f3-fe0f",
  67154. "uc_greedy": "1f6f3-fe0f",
  67155. "shortnames": [":passenger_ship:"],
  67156. "category": "travel"
  67157. },
  67158. ":cry:": {
  67159. "uc_base": "1f622",
  67160. "uc_output": "1f622",
  67161. "uc_match": "1f622",
  67162. "uc_greedy": "1f622",
  67163. "shortnames": [],
  67164. "category": "people"
  67165. },
  67166. ":crying_cat_face:": {
  67167. "uc_base": "1f63f",
  67168. "uc_output": "1f63f",
  67169. "uc_match": "1f63f",
  67170. "uc_greedy": "1f63f",
  67171. "shortnames": [],
  67172. "category": "people"
  67173. },
  67174. ":crystal_ball:": {
  67175. "uc_base": "1f52e",
  67176. "uc_output": "1f52e",
  67177. "uc_match": "1f52e",
  67178. "uc_greedy": "1f52e",
  67179. "shortnames": [],
  67180. "category": "objects"
  67181. },
  67182. ":cucumber:": {
  67183. "uc_base": "1f952",
  67184. "uc_output": "1f952",
  67185. "uc_match": "1f952",
  67186. "uc_greedy": "1f952",
  67187. "shortnames": [],
  67188. "category": "food"
  67189. },
  67190. ":cup_with_straw:": {
  67191. "uc_base": "1f964",
  67192. "uc_output": "1f964",
  67193. "uc_match": "1f964",
  67194. "uc_greedy": "1f964",
  67195. "shortnames": [],
  67196. "category": "food"
  67197. },
  67198. ":cupid:": {
  67199. "uc_base": "1f498",
  67200. "uc_output": "1f498",
  67201. "uc_match": "1f498",
  67202. "uc_greedy": "1f498",
  67203. "shortnames": [],
  67204. "category": "symbols"
  67205. },
  67206. ":curling_stone:": {
  67207. "uc_base": "1f94c",
  67208. "uc_output": "1f94c",
  67209. "uc_match": "1f94c",
  67210. "uc_greedy": "1f94c",
  67211. "shortnames": [],
  67212. "category": "activity"
  67213. },
  67214. ":currency_exchange:": {
  67215. "uc_base": "1f4b1",
  67216. "uc_output": "1f4b1",
  67217. "uc_match": "1f4b1",
  67218. "uc_greedy": "1f4b1",
  67219. "shortnames": [],
  67220. "category": "symbols"
  67221. },
  67222. ":curry:": {
  67223. "uc_base": "1f35b",
  67224. "uc_output": "1f35b",
  67225. "uc_match": "1f35b",
  67226. "uc_greedy": "1f35b",
  67227. "shortnames": [],
  67228. "category": "food"
  67229. },
  67230. ":custard:": {
  67231. "uc_base": "1f36e",
  67232. "uc_output": "1f36e",
  67233. "uc_match": "1f36e",
  67234. "uc_greedy": "1f36e",
  67235. "shortnames": [":pudding:", ":flan:"],
  67236. "category": "food"
  67237. },
  67238. ":customs:": {
  67239. "uc_base": "1f6c3",
  67240. "uc_output": "1f6c3",
  67241. "uc_match": "1f6c3",
  67242. "uc_greedy": "1f6c3",
  67243. "shortnames": [],
  67244. "category": "symbols"
  67245. },
  67246. ":cut_of_meat:": {
  67247. "uc_base": "1f969",
  67248. "uc_output": "1f969",
  67249. "uc_match": "1f969",
  67250. "uc_greedy": "1f969",
  67251. "shortnames": [],
  67252. "category": "food"
  67253. },
  67254. ":cyclone:": {
  67255. "uc_base": "1f300",
  67256. "uc_output": "1f300",
  67257. "uc_match": "1f300",
  67258. "uc_greedy": "1f300",
  67259. "shortnames": [],
  67260. "category": "symbols"
  67261. },
  67262. ":dagger:": {
  67263. "uc_base": "1f5e1",
  67264. "uc_output": "1f5e1",
  67265. "uc_match": "1f5e1-fe0f",
  67266. "uc_greedy": "1f5e1-fe0f",
  67267. "shortnames": [":dagger_knife:"],
  67268. "category": "objects"
  67269. },
  67270. ":dancer:": {
  67271. "uc_base": "1f483",
  67272. "uc_output": "1f483",
  67273. "uc_match": "1f483",
  67274. "uc_greedy": "1f483",
  67275. "shortnames": [],
  67276. "category": "people"
  67277. },
  67278. ":dango:": {
  67279. "uc_base": "1f361",
  67280. "uc_output": "1f361",
  67281. "uc_match": "1f361",
  67282. "uc_greedy": "1f361",
  67283. "shortnames": [],
  67284. "category": "food"
  67285. },
  67286. ":dark_sunglasses:": {
  67287. "uc_base": "1f576",
  67288. "uc_output": "1f576",
  67289. "uc_match": "1f576-fe0f",
  67290. "uc_greedy": "1f576-fe0f",
  67291. "shortnames": [],
  67292. "category": "people"
  67293. },
  67294. ":dart:": {
  67295. "uc_base": "1f3af",
  67296. "uc_output": "1f3af",
  67297. "uc_match": "1f3af",
  67298. "uc_greedy": "1f3af",
  67299. "shortnames": [],
  67300. "category": "activity"
  67301. },
  67302. ":dash:": {
  67303. "uc_base": "1f4a8",
  67304. "uc_output": "1f4a8",
  67305. "uc_match": "1f4a8",
  67306. "uc_greedy": "1f4a8",
  67307. "shortnames": [],
  67308. "category": "nature"
  67309. },
  67310. ":date:": {
  67311. "uc_base": "1f4c5",
  67312. "uc_output": "1f4c5",
  67313. "uc_match": "1f4c5",
  67314. "uc_greedy": "1f4c5",
  67315. "shortnames": [],
  67316. "category": "objects"
  67317. },
  67318. ":deciduous_tree:": {
  67319. "uc_base": "1f333",
  67320. "uc_output": "1f333",
  67321. "uc_match": "1f333",
  67322. "uc_greedy": "1f333",
  67323. "shortnames": [],
  67324. "category": "nature"
  67325. },
  67326. ":deer:": {
  67327. "uc_base": "1f98c",
  67328. "uc_output": "1f98c",
  67329. "uc_match": "1f98c",
  67330. "uc_greedy": "1f98c",
  67331. "shortnames": [],
  67332. "category": "nature"
  67333. },
  67334. ":department_store:": {
  67335. "uc_base": "1f3ec",
  67336. "uc_output": "1f3ec",
  67337. "uc_match": "1f3ec",
  67338. "uc_greedy": "1f3ec",
  67339. "shortnames": [],
  67340. "category": "travel"
  67341. },
  67342. ":desert:": {
  67343. "uc_base": "1f3dc",
  67344. "uc_output": "1f3dc",
  67345. "uc_match": "1f3dc-fe0f",
  67346. "uc_greedy": "1f3dc-fe0f",
  67347. "shortnames": [],
  67348. "category": "travel"
  67349. },
  67350. ":desktop:": {
  67351. "uc_base": "1f5a5",
  67352. "uc_output": "1f5a5",
  67353. "uc_match": "1f5a5-fe0f",
  67354. "uc_greedy": "1f5a5-fe0f",
  67355. "shortnames": [":desktop_computer:"],
  67356. "category": "objects"
  67357. },
  67358. ":detective:": {
  67359. "uc_base": "1f575",
  67360. "uc_output": "1f575",
  67361. "uc_match": "1f575-fe0f",
  67362. "uc_greedy": "1f575-fe0f",
  67363. "shortnames": [":spy:", ":sleuth_or_spy:"],
  67364. "category": "people"
  67365. },
  67366. ":diamond_shape_with_a_dot_inside:": {
  67367. "uc_base": "1f4a0",
  67368. "uc_output": "1f4a0",
  67369. "uc_match": "1f4a0",
  67370. "uc_greedy": "1f4a0",
  67371. "shortnames": [],
  67372. "category": "symbols"
  67373. },
  67374. ":disappointed:": {
  67375. "uc_base": "1f61e",
  67376. "uc_output": "1f61e",
  67377. "uc_match": "1f61e",
  67378. "uc_greedy": "1f61e",
  67379. "shortnames": [],
  67380. "category": "people"
  67381. },
  67382. ":disappointed_relieved:": {
  67383. "uc_base": "1f625",
  67384. "uc_output": "1f625",
  67385. "uc_match": "1f625",
  67386. "uc_greedy": "1f625",
  67387. "shortnames": [],
  67388. "category": "people"
  67389. },
  67390. ":dividers:": {
  67391. "uc_base": "1f5c2",
  67392. "uc_output": "1f5c2",
  67393. "uc_match": "1f5c2-fe0f",
  67394. "uc_greedy": "1f5c2-fe0f",
  67395. "shortnames": [":card_index_dividers:"],
  67396. "category": "objects"
  67397. },
  67398. ":dizzy:": {
  67399. "uc_base": "1f4ab",
  67400. "uc_output": "1f4ab",
  67401. "uc_match": "1f4ab",
  67402. "uc_greedy": "1f4ab",
  67403. "shortnames": [],
  67404. "category": "nature"
  67405. },
  67406. ":dizzy_face:": {
  67407. "uc_base": "1f635",
  67408. "uc_output": "1f635",
  67409. "uc_match": "1f635",
  67410. "uc_greedy": "1f635",
  67411. "shortnames": [],
  67412. "category": "people"
  67413. },
  67414. ":do_not_litter:": {
  67415. "uc_base": "1f6af",
  67416. "uc_output": "1f6af",
  67417. "uc_match": "1f6af",
  67418. "uc_greedy": "1f6af",
  67419. "shortnames": [],
  67420. "category": "symbols"
  67421. },
  67422. ":dog2:": {
  67423. "uc_base": "1f415",
  67424. "uc_output": "1f415",
  67425. "uc_match": "1f415-fe0f",
  67426. "uc_greedy": "1f415-fe0f",
  67427. "shortnames": [],
  67428. "category": "nature"
  67429. },
  67430. ":dog:": {
  67431. "uc_base": "1f436",
  67432. "uc_output": "1f436",
  67433. "uc_match": "1f436",
  67434. "uc_greedy": "1f436",
  67435. "shortnames": [],
  67436. "category": "nature"
  67437. },
  67438. ":dollar:": {
  67439. "uc_base": "1f4b5",
  67440. "uc_output": "1f4b5",
  67441. "uc_match": "1f4b5",
  67442. "uc_greedy": "1f4b5",
  67443. "shortnames": [],
  67444. "category": "objects"
  67445. },
  67446. ":dolls:": {
  67447. "uc_base": "1f38e",
  67448. "uc_output": "1f38e",
  67449. "uc_match": "1f38e",
  67450. "uc_greedy": "1f38e",
  67451. "shortnames": [],
  67452. "category": "objects"
  67453. },
  67454. ":dolphin:": {
  67455. "uc_base": "1f42c",
  67456. "uc_output": "1f42c",
  67457. "uc_match": "1f42c",
  67458. "uc_greedy": "1f42c",
  67459. "shortnames": [],
  67460. "category": "nature"
  67461. },
  67462. ":door:": {
  67463. "uc_base": "1f6aa",
  67464. "uc_output": "1f6aa",
  67465. "uc_match": "1f6aa",
  67466. "uc_greedy": "1f6aa",
  67467. "shortnames": [],
  67468. "category": "objects"
  67469. },
  67470. ":doughnut:": {
  67471. "uc_base": "1f369",
  67472. "uc_output": "1f369",
  67473. "uc_match": "1f369",
  67474. "uc_greedy": "1f369",
  67475. "shortnames": [],
  67476. "category": "food"
  67477. },
  67478. ":dove:": {
  67479. "uc_base": "1f54a",
  67480. "uc_output": "1f54a",
  67481. "uc_match": "1f54a-fe0f",
  67482. "uc_greedy": "1f54a-fe0f",
  67483. "shortnames": [":dove_of_peace:"],
  67484. "category": "nature"
  67485. },
  67486. ":dragon:": {
  67487. "uc_base": "1f409",
  67488. "uc_output": "1f409",
  67489. "uc_match": "1f409",
  67490. "uc_greedy": "1f409",
  67491. "shortnames": [],
  67492. "category": "nature"
  67493. },
  67494. ":dragon_face:": {
  67495. "uc_base": "1f432",
  67496. "uc_output": "1f432",
  67497. "uc_match": "1f432",
  67498. "uc_greedy": "1f432",
  67499. "shortnames": [],
  67500. "category": "nature"
  67501. },
  67502. ":dress:": {
  67503. "uc_base": "1f457",
  67504. "uc_output": "1f457",
  67505. "uc_match": "1f457",
  67506. "uc_greedy": "1f457",
  67507. "shortnames": [],
  67508. "category": "people"
  67509. },
  67510. ":dromedary_camel:": {
  67511. "uc_base": "1f42a",
  67512. "uc_output": "1f42a",
  67513. "uc_match": "1f42a",
  67514. "uc_greedy": "1f42a",
  67515. "shortnames": [],
  67516. "category": "nature"
  67517. },
  67518. ":drooling_face:": {
  67519. "uc_base": "1f924",
  67520. "uc_output": "1f924",
  67521. "uc_match": "1f924",
  67522. "uc_greedy": "1f924",
  67523. "shortnames": [":drool:"],
  67524. "category": "people"
  67525. },
  67526. ":droplet:": {
  67527. "uc_base": "1f4a7",
  67528. "uc_output": "1f4a7",
  67529. "uc_match": "1f4a7",
  67530. "uc_greedy": "1f4a7",
  67531. "shortnames": [],
  67532. "category": "nature"
  67533. },
  67534. ":drum:": {
  67535. "uc_base": "1f941",
  67536. "uc_output": "1f941",
  67537. "uc_match": "1f941",
  67538. "uc_greedy": "1f941",
  67539. "shortnames": [":drum_with_drumsticks:"],
  67540. "category": "activity"
  67541. },
  67542. ":duck:": {
  67543. "uc_base": "1f986",
  67544. "uc_output": "1f986",
  67545. "uc_match": "1f986",
  67546. "uc_greedy": "1f986",
  67547. "shortnames": [],
  67548. "category": "nature"
  67549. },
  67550. ":dumpling:": {
  67551. "uc_base": "1f95f",
  67552. "uc_output": "1f95f",
  67553. "uc_match": "1f95f",
  67554. "uc_greedy": "1f95f",
  67555. "shortnames": [],
  67556. "category": "food"
  67557. },
  67558. ":dvd:": {
  67559. "uc_base": "1f4c0",
  67560. "uc_output": "1f4c0",
  67561. "uc_match": "1f4c0",
  67562. "uc_greedy": "1f4c0",
  67563. "shortnames": [],
  67564. "category": "objects"
  67565. },
  67566. ":e-mail:": {
  67567. "uc_base": "1f4e7",
  67568. "uc_output": "1f4e7",
  67569. "uc_match": "1f4e7",
  67570. "uc_greedy": "1f4e7",
  67571. "shortnames": [":email:"],
  67572. "category": "objects"
  67573. },
  67574. ":eagle:": {
  67575. "uc_base": "1f985",
  67576. "uc_output": "1f985",
  67577. "uc_match": "1f985",
  67578. "uc_greedy": "1f985",
  67579. "shortnames": [],
  67580. "category": "nature"
  67581. },
  67582. ":ear:": {
  67583. "uc_base": "1f442",
  67584. "uc_output": "1f442",
  67585. "uc_match": "1f442-fe0f",
  67586. "uc_greedy": "1f442-fe0f",
  67587. "shortnames": [],
  67588. "category": "people"
  67589. },
  67590. ":ear_of_rice:": {
  67591. "uc_base": "1f33e",
  67592. "uc_output": "1f33e",
  67593. "uc_match": "1f33e",
  67594. "uc_greedy": "1f33e",
  67595. "shortnames": [],
  67596. "category": "nature"
  67597. },
  67598. ":earth_africa:": {
  67599. "uc_base": "1f30d",
  67600. "uc_output": "1f30d",
  67601. "uc_match": "1f30d-fe0f",
  67602. "uc_greedy": "1f30d-fe0f",
  67603. "shortnames": [],
  67604. "category": "nature"
  67605. },
  67606. ":earth_americas:": {
  67607. "uc_base": "1f30e",
  67608. "uc_output": "1f30e",
  67609. "uc_match": "1f30e-fe0f",
  67610. "uc_greedy": "1f30e-fe0f",
  67611. "shortnames": [],
  67612. "category": "nature"
  67613. },
  67614. ":earth_asia:": {
  67615. "uc_base": "1f30f",
  67616. "uc_output": "1f30f",
  67617. "uc_match": "1f30f-fe0f",
  67618. "uc_greedy": "1f30f-fe0f",
  67619. "shortnames": [],
  67620. "category": "nature"
  67621. },
  67622. ":egg:": {
  67623. "uc_base": "1f95a",
  67624. "uc_output": "1f95a",
  67625. "uc_match": "1f95a",
  67626. "uc_greedy": "1f95a",
  67627. "shortnames": [],
  67628. "category": "food"
  67629. },
  67630. ":eggplant:": {
  67631. "uc_base": "1f346",
  67632. "uc_output": "1f346",
  67633. "uc_match": "1f346",
  67634. "uc_greedy": "1f346",
  67635. "shortnames": [],
  67636. "category": "food"
  67637. },
  67638. ":electric_plug:": {
  67639. "uc_base": "1f50c",
  67640. "uc_output": "1f50c",
  67641. "uc_match": "1f50c",
  67642. "uc_greedy": "1f50c",
  67643. "shortnames": [],
  67644. "category": "objects"
  67645. },
  67646. ":elephant:": {
  67647. "uc_base": "1f418",
  67648. "uc_output": "1f418",
  67649. "uc_match": "1f418",
  67650. "uc_greedy": "1f418",
  67651. "shortnames": [],
  67652. "category": "nature"
  67653. },
  67654. ":elf:": {
  67655. "uc_base": "1f9dd",
  67656. "uc_output": "1f9dd",
  67657. "uc_match": "1f9dd",
  67658. "uc_greedy": "1f9dd",
  67659. "shortnames": [],
  67660. "category": "people"
  67661. },
  67662. ":end:": {
  67663. "uc_base": "1f51a",
  67664. "uc_output": "1f51a",
  67665. "uc_match": "1f51a",
  67666. "uc_greedy": "1f51a",
  67667. "shortnames": [],
  67668. "category": "symbols"
  67669. },
  67670. ":envelope_with_arrow:": {
  67671. "uc_base": "1f4e9",
  67672. "uc_output": "1f4e9",
  67673. "uc_match": "1f4e9",
  67674. "uc_greedy": "1f4e9",
  67675. "shortnames": [],
  67676. "category": "objects"
  67677. },
  67678. ":euro:": {
  67679. "uc_base": "1f4b6",
  67680. "uc_output": "1f4b6",
  67681. "uc_match": "1f4b6",
  67682. "uc_greedy": "1f4b6",
  67683. "shortnames": [],
  67684. "category": "objects"
  67685. },
  67686. ":european_castle:": {
  67687. "uc_base": "1f3f0",
  67688. "uc_output": "1f3f0",
  67689. "uc_match": "1f3f0",
  67690. "uc_greedy": "1f3f0",
  67691. "shortnames": [],
  67692. "category": "travel"
  67693. },
  67694. ":european_post_office:": {
  67695. "uc_base": "1f3e4",
  67696. "uc_output": "1f3e4",
  67697. "uc_match": "1f3e4",
  67698. "uc_greedy": "1f3e4",
  67699. "shortnames": [],
  67700. "category": "travel"
  67701. },
  67702. ":evergreen_tree:": {
  67703. "uc_base": "1f332",
  67704. "uc_output": "1f332",
  67705. "uc_match": "1f332",
  67706. "uc_greedy": "1f332",
  67707. "shortnames": [],
  67708. "category": "nature"
  67709. },
  67710. ":exploding_head:": {
  67711. "uc_base": "1f92f",
  67712. "uc_output": "1f92f",
  67713. "uc_match": "1f92f",
  67714. "uc_greedy": "1f92f",
  67715. "shortnames": [],
  67716. "category": "people"
  67717. },
  67718. ":expressionless:": {
  67719. "uc_base": "1f611",
  67720. "uc_output": "1f611",
  67721. "uc_match": "1f611",
  67722. "uc_greedy": "1f611",
  67723. "shortnames": [],
  67724. "category": "people"
  67725. },
  67726. ":eye:": {
  67727. "uc_base": "1f441",
  67728. "uc_output": "1f441",
  67729. "uc_match": "1f441-fe0f",
  67730. "uc_greedy": "1f441-fe0f",
  67731. "shortnames": [],
  67732. "category": "people"
  67733. },
  67734. ":eyeglasses:": {
  67735. "uc_base": "1f453",
  67736. "uc_output": "1f453",
  67737. "uc_match": "1f453-fe0f",
  67738. "uc_greedy": "1f453-fe0f",
  67739. "shortnames": [],
  67740. "category": "people"
  67741. },
  67742. ":eyes:": {
  67743. "uc_base": "1f440",
  67744. "uc_output": "1f440",
  67745. "uc_match": "1f440",
  67746. "uc_greedy": "1f440",
  67747. "shortnames": [],
  67748. "category": "people"
  67749. },
  67750. ":face_vomiting:": {
  67751. "uc_base": "1f92e",
  67752. "uc_output": "1f92e",
  67753. "uc_match": "1f92e",
  67754. "uc_greedy": "1f92e",
  67755. "shortnames": [],
  67756. "category": "people"
  67757. },
  67758. ":face_with_hand_over_mouth:": {
  67759. "uc_base": "1f92d",
  67760. "uc_output": "1f92d",
  67761. "uc_match": "1f92d",
  67762. "uc_greedy": "1f92d",
  67763. "shortnames": [],
  67764. "category": "people"
  67765. },
  67766. ":face_with_monocle:": {
  67767. "uc_base": "1f9d0",
  67768. "uc_output": "1f9d0",
  67769. "uc_match": "1f9d0",
  67770. "uc_greedy": "1f9d0",
  67771. "shortnames": [],
  67772. "category": "people"
  67773. },
  67774. ":face_with_raised_eyebrow:": {
  67775. "uc_base": "1f928",
  67776. "uc_output": "1f928",
  67777. "uc_match": "1f928",
  67778. "uc_greedy": "1f928",
  67779. "shortnames": [],
  67780. "category": "people"
  67781. },
  67782. ":face_with_symbols_over_mouth:": {
  67783. "uc_base": "1f92c",
  67784. "uc_output": "1f92c",
  67785. "uc_match": "1f92c",
  67786. "uc_greedy": "1f92c",
  67787. "shortnames": [],
  67788. "category": "people"
  67789. },
  67790. ":factory:": {
  67791. "uc_base": "1f3ed",
  67792. "uc_output": "1f3ed",
  67793. "uc_match": "1f3ed-fe0f",
  67794. "uc_greedy": "1f3ed-fe0f",
  67795. "shortnames": [],
  67796. "category": "travel"
  67797. },
  67798. ":fairy:": {
  67799. "uc_base": "1f9da",
  67800. "uc_output": "1f9da",
  67801. "uc_match": "1f9da",
  67802. "uc_greedy": "1f9da",
  67803. "shortnames": [],
  67804. "category": "people"
  67805. },
  67806. ":fallen_leaf:": {
  67807. "uc_base": "1f342",
  67808. "uc_output": "1f342",
  67809. "uc_match": "1f342",
  67810. "uc_greedy": "1f342",
  67811. "shortnames": [],
  67812. "category": "nature"
  67813. },
  67814. ":family:": {
  67815. "uc_base": "1f46a",
  67816. "uc_output": "1f46a",
  67817. "uc_match": "1f46a-fe0f",
  67818. "uc_greedy": "1f46a-fe0f",
  67819. "shortnames": [],
  67820. "category": "people"
  67821. },
  67822. ":fax:": {
  67823. "uc_base": "1f4e0",
  67824. "uc_output": "1f4e0",
  67825. "uc_match": "1f4e0",
  67826. "uc_greedy": "1f4e0",
  67827. "shortnames": [],
  67828. "category": "objects"
  67829. },
  67830. ":fearful:": {
  67831. "uc_base": "1f628",
  67832. "uc_output": "1f628",
  67833. "uc_match": "1f628",
  67834. "uc_greedy": "1f628",
  67835. "shortnames": [],
  67836. "category": "people"
  67837. },
  67838. ":feet:": {
  67839. "uc_base": "1f43e",
  67840. "uc_output": "1f43e",
  67841. "uc_match": "1f43e",
  67842. "uc_greedy": "1f43e",
  67843. "shortnames": [":paw_prints:"],
  67844. "category": "nature"
  67845. },
  67846. ":ferris_wheel:": {
  67847. "uc_base": "1f3a1",
  67848. "uc_output": "1f3a1",
  67849. "uc_match": "1f3a1",
  67850. "uc_greedy": "1f3a1",
  67851. "shortnames": [],
  67852. "category": "travel"
  67853. },
  67854. ":field_hockey:": {
  67855. "uc_base": "1f3d1",
  67856. "uc_output": "1f3d1",
  67857. "uc_match": "1f3d1",
  67858. "uc_greedy": "1f3d1",
  67859. "shortnames": [],
  67860. "category": "activity"
  67861. },
  67862. ":file_cabinet:": {
  67863. "uc_base": "1f5c4",
  67864. "uc_output": "1f5c4",
  67865. "uc_match": "1f5c4-fe0f",
  67866. "uc_greedy": "1f5c4-fe0f",
  67867. "shortnames": [],
  67868. "category": "objects"
  67869. },
  67870. ":file_folder:": {
  67871. "uc_base": "1f4c1",
  67872. "uc_output": "1f4c1",
  67873. "uc_match": "1f4c1",
  67874. "uc_greedy": "1f4c1",
  67875. "shortnames": [],
  67876. "category": "objects"
  67877. },
  67878. ":film_frames:": {
  67879. "uc_base": "1f39e",
  67880. "uc_output": "1f39e",
  67881. "uc_match": "1f39e-fe0f",
  67882. "uc_greedy": "1f39e-fe0f",
  67883. "shortnames": [],
  67884. "category": "objects"
  67885. },
  67886. ":fingers_crossed:": {
  67887. "uc_base": "1f91e",
  67888. "uc_output": "1f91e",
  67889. "uc_match": "1f91e",
  67890. "uc_greedy": "1f91e",
  67891. "shortnames": [":hand_with_index_and_middle_finger_crossed:"],
  67892. "category": "people"
  67893. },
  67894. ":fire:": {
  67895. "uc_base": "1f525",
  67896. "uc_output": "1f525",
  67897. "uc_match": "1f525",
  67898. "uc_greedy": "1f525",
  67899. "shortnames": [":flame:"],
  67900. "category": "nature"
  67901. },
  67902. ":fire_engine:": {
  67903. "uc_base": "1f692",
  67904. "uc_output": "1f692",
  67905. "uc_match": "1f692",
  67906. "uc_greedy": "1f692",
  67907. "shortnames": [],
  67908. "category": "travel"
  67909. },
  67910. ":fireworks:": {
  67911. "uc_base": "1f386",
  67912. "uc_output": "1f386",
  67913. "uc_match": "1f386",
  67914. "uc_greedy": "1f386",
  67915. "shortnames": [],
  67916. "category": "travel"
  67917. },
  67918. ":first_place:": {
  67919. "uc_base": "1f947",
  67920. "uc_output": "1f947",
  67921. "uc_match": "1f947",
  67922. "uc_greedy": "1f947",
  67923. "shortnames": [":first_place_medal:"],
  67924. "category": "activity"
  67925. },
  67926. ":first_quarter_moon:": {
  67927. "uc_base": "1f313",
  67928. "uc_output": "1f313",
  67929. "uc_match": "1f313",
  67930. "uc_greedy": "1f313",
  67931. "shortnames": [],
  67932. "category": "nature"
  67933. },
  67934. ":first_quarter_moon_with_face:": {
  67935. "uc_base": "1f31b",
  67936. "uc_output": "1f31b",
  67937. "uc_match": "1f31b",
  67938. "uc_greedy": "1f31b",
  67939. "shortnames": [],
  67940. "category": "nature"
  67941. },
  67942. ":fish:": {
  67943. "uc_base": "1f41f",
  67944. "uc_output": "1f41f",
  67945. "uc_match": "1f41f-fe0f",
  67946. "uc_greedy": "1f41f-fe0f",
  67947. "shortnames": [],
  67948. "category": "nature"
  67949. },
  67950. ":fish_cake:": {
  67951. "uc_base": "1f365",
  67952. "uc_output": "1f365",
  67953. "uc_match": "1f365",
  67954. "uc_greedy": "1f365",
  67955. "shortnames": [],
  67956. "category": "food"
  67957. },
  67958. ":fishing_pole_and_fish:": {
  67959. "uc_base": "1f3a3",
  67960. "uc_output": "1f3a3",
  67961. "uc_match": "1f3a3",
  67962. "uc_greedy": "1f3a3",
  67963. "shortnames": [],
  67964. "category": "activity"
  67965. },
  67966. ":flag_black:": {
  67967. "uc_base": "1f3f4",
  67968. "uc_output": "1f3f4",
  67969. "uc_match": "1f3f4",
  67970. "uc_greedy": "1f3f4",
  67971. "shortnames": [":waving_black_flag:"],
  67972. "category": "flags"
  67973. },
  67974. ":flag_white:": {
  67975. "uc_base": "1f3f3",
  67976. "uc_output": "1f3f3",
  67977. "uc_match": "1f3f3-fe0f",
  67978. "uc_greedy": "1f3f3-fe0f",
  67979. "shortnames": [":waving_white_flag:"],
  67980. "category": "flags"
  67981. },
  67982. ":flags:": {
  67983. "uc_base": "1f38f",
  67984. "uc_output": "1f38f",
  67985. "uc_match": "1f38f",
  67986. "uc_greedy": "1f38f",
  67987. "shortnames": [],
  67988. "category": "objects"
  67989. },
  67990. ":flashlight:": {
  67991. "uc_base": "1f526",
  67992. "uc_output": "1f526",
  67993. "uc_match": "1f526",
  67994. "uc_greedy": "1f526",
  67995. "shortnames": [],
  67996. "category": "objects"
  67997. },
  67998. ":floppy_disk:": {
  67999. "uc_base": "1f4be",
  68000. "uc_output": "1f4be",
  68001. "uc_match": "1f4be",
  68002. "uc_greedy": "1f4be",
  68003. "shortnames": [],
  68004. "category": "objects"
  68005. },
  68006. ":flower_playing_cards:": {
  68007. "uc_base": "1f3b4",
  68008. "uc_output": "1f3b4",
  68009. "uc_match": "1f3b4",
  68010. "uc_greedy": "1f3b4",
  68011. "shortnames": [],
  68012. "category": "symbols"
  68013. },
  68014. ":flushed:": {
  68015. "uc_base": "1f633",
  68016. "uc_output": "1f633",
  68017. "uc_match": "1f633",
  68018. "uc_greedy": "1f633",
  68019. "shortnames": [],
  68020. "category": "people"
  68021. },
  68022. ":flying_saucer:": {
  68023. "uc_base": "1f6f8",
  68024. "uc_output": "1f6f8",
  68025. "uc_match": "1f6f8",
  68026. "uc_greedy": "1f6f8",
  68027. "shortnames": [],
  68028. "category": "travel"
  68029. },
  68030. ":fog:": {
  68031. "uc_base": "1f32b",
  68032. "uc_output": "1f32b",
  68033. "uc_match": "1f32b-fe0f",
  68034. "uc_greedy": "1f32b-fe0f",
  68035. "shortnames": [],
  68036. "category": "nature"
  68037. },
  68038. ":foggy:": {
  68039. "uc_base": "1f301",
  68040. "uc_output": "1f301",
  68041. "uc_match": "1f301",
  68042. "uc_greedy": "1f301",
  68043. "shortnames": [],
  68044. "category": "travel"
  68045. },
  68046. ":football:": {
  68047. "uc_base": "1f3c8",
  68048. "uc_output": "1f3c8",
  68049. "uc_match": "1f3c8",
  68050. "uc_greedy": "1f3c8",
  68051. "shortnames": [],
  68052. "category": "activity"
  68053. },
  68054. ":footprints:": {
  68055. "uc_base": "1f463",
  68056. "uc_output": "1f463",
  68057. "uc_match": "1f463",
  68058. "uc_greedy": "1f463",
  68059. "shortnames": [],
  68060. "category": "people"
  68061. },
  68062. ":fork_and_knife:": {
  68063. "uc_base": "1f374",
  68064. "uc_output": "1f374",
  68065. "uc_match": "1f374",
  68066. "uc_greedy": "1f374",
  68067. "shortnames": [],
  68068. "category": "food"
  68069. },
  68070. ":fork_knife_plate:": {
  68071. "uc_base": "1f37d",
  68072. "uc_output": "1f37d",
  68073. "uc_match": "1f37d-fe0f",
  68074. "uc_greedy": "1f37d-fe0f",
  68075. "shortnames": [":fork_and_knife_with_plate:"],
  68076. "category": "food"
  68077. },
  68078. ":fortune_cookie:": {
  68079. "uc_base": "1f960",
  68080. "uc_output": "1f960",
  68081. "uc_match": "1f960",
  68082. "uc_greedy": "1f960",
  68083. "shortnames": [],
  68084. "category": "food"
  68085. },
  68086. ":four_leaf_clover:": {
  68087. "uc_base": "1f340",
  68088. "uc_output": "1f340",
  68089. "uc_match": "1f340",
  68090. "uc_greedy": "1f340",
  68091. "shortnames": [],
  68092. "category": "nature"
  68093. },
  68094. ":fox:": {
  68095. "uc_base": "1f98a",
  68096. "uc_output": "1f98a",
  68097. "uc_match": "1f98a",
  68098. "uc_greedy": "1f98a",
  68099. "shortnames": [":fox_face:"],
  68100. "category": "nature"
  68101. },
  68102. ":frame_photo:": {
  68103. "uc_base": "1f5bc",
  68104. "uc_output": "1f5bc",
  68105. "uc_match": "1f5bc-fe0f",
  68106. "uc_greedy": "1f5bc-fe0f",
  68107. "shortnames": [":frame_with_picture:"],
  68108. "category": "objects"
  68109. },
  68110. ":free:": {
  68111. "uc_base": "1f193",
  68112. "uc_output": "1f193",
  68113. "uc_match": "1f193",
  68114. "uc_greedy": "1f193",
  68115. "shortnames": [],
  68116. "category": "symbols"
  68117. },
  68118. ":french_bread:": {
  68119. "uc_base": "1f956",
  68120. "uc_output": "1f956",
  68121. "uc_match": "1f956",
  68122. "uc_greedy": "1f956",
  68123. "shortnames": [":baguette_bread:"],
  68124. "category": "food"
  68125. },
  68126. ":fried_shrimp:": {
  68127. "uc_base": "1f364",
  68128. "uc_output": "1f364",
  68129. "uc_match": "1f364",
  68130. "uc_greedy": "1f364",
  68131. "shortnames": [],
  68132. "category": "food"
  68133. },
  68134. ":fries:": {
  68135. "uc_base": "1f35f",
  68136. "uc_output": "1f35f",
  68137. "uc_match": "1f35f",
  68138. "uc_greedy": "1f35f",
  68139. "shortnames": [],
  68140. "category": "food"
  68141. },
  68142. ":frog:": {
  68143. "uc_base": "1f438",
  68144. "uc_output": "1f438",
  68145. "uc_match": "1f438",
  68146. "uc_greedy": "1f438",
  68147. "shortnames": [],
  68148. "category": "nature"
  68149. },
  68150. ":frowning:": {
  68151. "uc_base": "1f626",
  68152. "uc_output": "1f626",
  68153. "uc_match": "1f626",
  68154. "uc_greedy": "1f626",
  68155. "shortnames": [],
  68156. "category": "people"
  68157. },
  68158. ":full_moon:": {
  68159. "uc_base": "1f315",
  68160. "uc_output": "1f315",
  68161. "uc_match": "1f315-fe0f",
  68162. "uc_greedy": "1f315-fe0f",
  68163. "shortnames": [],
  68164. "category": "nature"
  68165. },
  68166. ":full_moon_with_face:": {
  68167. "uc_base": "1f31d",
  68168. "uc_output": "1f31d",
  68169. "uc_match": "1f31d",
  68170. "uc_greedy": "1f31d",
  68171. "shortnames": [],
  68172. "category": "nature"
  68173. },
  68174. ":game_die:": {
  68175. "uc_base": "1f3b2",
  68176. "uc_output": "1f3b2",
  68177. "uc_match": "1f3b2",
  68178. "uc_greedy": "1f3b2",
  68179. "shortnames": [],
  68180. "category": "activity"
  68181. },
  68182. ":gem:": {
  68183. "uc_base": "1f48e",
  68184. "uc_output": "1f48e",
  68185. "uc_match": "1f48e",
  68186. "uc_greedy": "1f48e",
  68187. "shortnames": [],
  68188. "category": "objects"
  68189. },
  68190. ":genie:": {
  68191. "uc_base": "1f9de",
  68192. "uc_output": "1f9de",
  68193. "uc_match": "1f9de",
  68194. "uc_greedy": "1f9de",
  68195. "shortnames": [],
  68196. "category": "people"
  68197. },
  68198. ":ghost:": {
  68199. "uc_base": "1f47b",
  68200. "uc_output": "1f47b",
  68201. "uc_match": "1f47b",
  68202. "uc_greedy": "1f47b",
  68203. "shortnames": [],
  68204. "category": "people"
  68205. },
  68206. ":gift:": {
  68207. "uc_base": "1f381",
  68208. "uc_output": "1f381",
  68209. "uc_match": "1f381",
  68210. "uc_greedy": "1f381",
  68211. "shortnames": [],
  68212. "category": "objects"
  68213. },
  68214. ":gift_heart:": {
  68215. "uc_base": "1f49d",
  68216. "uc_output": "1f49d",
  68217. "uc_match": "1f49d",
  68218. "uc_greedy": "1f49d",
  68219. "shortnames": [],
  68220. "category": "symbols"
  68221. },
  68222. ":giraffe:": {
  68223. "uc_base": "1f992",
  68224. "uc_output": "1f992",
  68225. "uc_match": "1f992",
  68226. "uc_greedy": "1f992",
  68227. "shortnames": [],
  68228. "category": "nature"
  68229. },
  68230. ":girl:": {
  68231. "uc_base": "1f467",
  68232. "uc_output": "1f467",
  68233. "uc_match": "1f467",
  68234. "uc_greedy": "1f467",
  68235. "shortnames": [],
  68236. "category": "people"
  68237. },
  68238. ":globe_with_meridians:": {
  68239. "uc_base": "1f310",
  68240. "uc_output": "1f310",
  68241. "uc_match": "1f310",
  68242. "uc_greedy": "1f310",
  68243. "shortnames": [],
  68244. "category": "symbols"
  68245. },
  68246. ":gloves:": {
  68247. "uc_base": "1f9e4",
  68248. "uc_output": "1f9e4",
  68249. "uc_match": "1f9e4",
  68250. "uc_greedy": "1f9e4",
  68251. "shortnames": [],
  68252. "category": "people"
  68253. },
  68254. ":goal:": {
  68255. "uc_base": "1f945",
  68256. "uc_output": "1f945",
  68257. "uc_match": "1f945",
  68258. "uc_greedy": "1f945",
  68259. "shortnames": [":goal_net:"],
  68260. "category": "activity"
  68261. },
  68262. ":goat:": {
  68263. "uc_base": "1f410",
  68264. "uc_output": "1f410",
  68265. "uc_match": "1f410",
  68266. "uc_greedy": "1f410",
  68267. "shortnames": [],
  68268. "category": "nature"
  68269. },
  68270. ":gorilla:": {
  68271. "uc_base": "1f98d",
  68272. "uc_output": "1f98d",
  68273. "uc_match": "1f98d",
  68274. "uc_greedy": "1f98d",
  68275. "shortnames": [],
  68276. "category": "nature"
  68277. },
  68278. ":grapes:": {
  68279. "uc_base": "1f347",
  68280. "uc_output": "1f347",
  68281. "uc_match": "1f347",
  68282. "uc_greedy": "1f347",
  68283. "shortnames": [],
  68284. "category": "food"
  68285. },
  68286. ":green_apple:": {
  68287. "uc_base": "1f34f",
  68288. "uc_output": "1f34f",
  68289. "uc_match": "1f34f",
  68290. "uc_greedy": "1f34f",
  68291. "shortnames": [],
  68292. "category": "food"
  68293. },
  68294. ":green_book:": {
  68295. "uc_base": "1f4d7",
  68296. "uc_output": "1f4d7",
  68297. "uc_match": "1f4d7",
  68298. "uc_greedy": "1f4d7",
  68299. "shortnames": [],
  68300. "category": "objects"
  68301. },
  68302. ":green_heart:": {
  68303. "uc_base": "1f49a",
  68304. "uc_output": "1f49a",
  68305. "uc_match": "1f49a",
  68306. "uc_greedy": "1f49a",
  68307. "shortnames": [],
  68308. "category": "symbols"
  68309. },
  68310. ":grimacing:": {
  68311. "uc_base": "1f62c",
  68312. "uc_output": "1f62c",
  68313. "uc_match": "1f62c",
  68314. "uc_greedy": "1f62c",
  68315. "shortnames": [],
  68316. "category": "people"
  68317. },
  68318. ":grin:": {
  68319. "uc_base": "1f601",
  68320. "uc_output": "1f601",
  68321. "uc_match": "1f601",
  68322. "uc_greedy": "1f601",
  68323. "shortnames": [],
  68324. "category": "people"
  68325. },
  68326. ":grinning:": {
  68327. "uc_base": "1f600",
  68328. "uc_output": "1f600",
  68329. "uc_match": "1f600",
  68330. "uc_greedy": "1f600",
  68331. "shortnames": [],
  68332. "category": "people"
  68333. },
  68334. ":guard:": {
  68335. "uc_base": "1f482",
  68336. "uc_output": "1f482",
  68337. "uc_match": "1f482",
  68338. "uc_greedy": "1f482",
  68339. "shortnames": [":guardsman:"],
  68340. "category": "people"
  68341. },
  68342. ":guitar:": {
  68343. "uc_base": "1f3b8",
  68344. "uc_output": "1f3b8",
  68345. "uc_match": "1f3b8",
  68346. "uc_greedy": "1f3b8",
  68347. "shortnames": [],
  68348. "category": "activity"
  68349. },
  68350. ":gun:": {
  68351. "uc_base": "1f52b",
  68352. "uc_output": "1f52b",
  68353. "uc_match": "1f52b",
  68354. "uc_greedy": "1f52b",
  68355. "shortnames": [],
  68356. "category": "objects"
  68357. },
  68358. ":hamburger:": {
  68359. "uc_base": "1f354",
  68360. "uc_output": "1f354",
  68361. "uc_match": "1f354",
  68362. "uc_greedy": "1f354",
  68363. "shortnames": [],
  68364. "category": "food"
  68365. },
  68366. ":hammer:": {
  68367. "uc_base": "1f528",
  68368. "uc_output": "1f528",
  68369. "uc_match": "1f528",
  68370. "uc_greedy": "1f528",
  68371. "shortnames": [],
  68372. "category": "objects"
  68373. },
  68374. ":hamster:": {
  68375. "uc_base": "1f439",
  68376. "uc_output": "1f439",
  68377. "uc_match": "1f439",
  68378. "uc_greedy": "1f439",
  68379. "shortnames": [],
  68380. "category": "nature"
  68381. },
  68382. ":hand_splayed:": {
  68383. "uc_base": "1f590",
  68384. "uc_output": "1f590",
  68385. "uc_match": "1f590-fe0f",
  68386. "uc_greedy": "1f590-fe0f",
  68387. "shortnames": [":raised_hand_with_fingers_splayed:"],
  68388. "category": "people"
  68389. },
  68390. ":handbag:": {
  68391. "uc_base": "1f45c",
  68392. "uc_output": "1f45c",
  68393. "uc_match": "1f45c",
  68394. "uc_greedy": "1f45c",
  68395. "shortnames": [],
  68396. "category": "people"
  68397. },
  68398. ":handshake:": {
  68399. "uc_base": "1f91d",
  68400. "uc_output": "1f91d",
  68401. "uc_match": "1f91d",
  68402. "uc_greedy": "1f91d",
  68403. "shortnames": [":shaking_hands:"],
  68404. "category": "people"
  68405. },
  68406. ":hatched_chick:": {
  68407. "uc_base": "1f425",
  68408. "uc_output": "1f425",
  68409. "uc_match": "1f425",
  68410. "uc_greedy": "1f425",
  68411. "shortnames": [],
  68412. "category": "nature"
  68413. },
  68414. ":hatching_chick:": {
  68415. "uc_base": "1f423",
  68416. "uc_output": "1f423",
  68417. "uc_match": "1f423",
  68418. "uc_greedy": "1f423",
  68419. "shortnames": [],
  68420. "category": "nature"
  68421. },
  68422. ":head_bandage:": {
  68423. "uc_base": "1f915",
  68424. "uc_output": "1f915",
  68425. "uc_match": "1f915",
  68426. "uc_greedy": "1f915",
  68427. "shortnames": [":face_with_head_bandage:"],
  68428. "category": "people"
  68429. },
  68430. ":headphones:": {
  68431. "uc_base": "1f3a7",
  68432. "uc_output": "1f3a7",
  68433. "uc_match": "1f3a7-fe0f",
  68434. "uc_greedy": "1f3a7-fe0f",
  68435. "shortnames": [],
  68436. "category": "activity"
  68437. },
  68438. ":hear_no_evil:": {
  68439. "uc_base": "1f649",
  68440. "uc_output": "1f649",
  68441. "uc_match": "1f649",
  68442. "uc_greedy": "1f649",
  68443. "shortnames": [],
  68444. "category": "nature"
  68445. },
  68446. ":heart_decoration:": {
  68447. "uc_base": "1f49f",
  68448. "uc_output": "1f49f",
  68449. "uc_match": "1f49f",
  68450. "uc_greedy": "1f49f",
  68451. "shortnames": [],
  68452. "category": "symbols"
  68453. },
  68454. ":heart_eyes:": {
  68455. "uc_base": "1f60d",
  68456. "uc_output": "1f60d",
  68457. "uc_match": "1f60d",
  68458. "uc_greedy": "1f60d",
  68459. "shortnames": [],
  68460. "category": "people"
  68461. },
  68462. ":heart_eyes_cat:": {
  68463. "uc_base": "1f63b",
  68464. "uc_output": "1f63b",
  68465. "uc_match": "1f63b",
  68466. "uc_greedy": "1f63b",
  68467. "shortnames": [],
  68468. "category": "people"
  68469. },
  68470. ":heartbeat:": {
  68471. "uc_base": "1f493",
  68472. "uc_output": "1f493",
  68473. "uc_match": "1f493",
  68474. "uc_greedy": "1f493",
  68475. "shortnames": [],
  68476. "category": "symbols"
  68477. },
  68478. ":heartpulse:": {
  68479. "uc_base": "1f497",
  68480. "uc_output": "1f497",
  68481. "uc_match": "1f497",
  68482. "uc_greedy": "1f497",
  68483. "shortnames": [],
  68484. "category": "symbols"
  68485. },
  68486. ":heavy_dollar_sign:": {
  68487. "uc_base": "1f4b2",
  68488. "uc_output": "1f4b2",
  68489. "uc_match": "1f4b2",
  68490. "uc_greedy": "1f4b2",
  68491. "shortnames": [],
  68492. "category": "symbols"
  68493. },
  68494. ":hedgehog:": {
  68495. "uc_base": "1f994",
  68496. "uc_output": "1f994",
  68497. "uc_match": "1f994",
  68498. "uc_greedy": "1f994",
  68499. "shortnames": [],
  68500. "category": "nature"
  68501. },
  68502. ":helicopter:": {
  68503. "uc_base": "1f681",
  68504. "uc_output": "1f681",
  68505. "uc_match": "1f681",
  68506. "uc_greedy": "1f681",
  68507. "shortnames": [],
  68508. "category": "travel"
  68509. },
  68510. ":herb:": {
  68511. "uc_base": "1f33f",
  68512. "uc_output": "1f33f",
  68513. "uc_match": "1f33f",
  68514. "uc_greedy": "1f33f",
  68515. "shortnames": [],
  68516. "category": "nature"
  68517. },
  68518. ":hibiscus:": {
  68519. "uc_base": "1f33a",
  68520. "uc_output": "1f33a",
  68521. "uc_match": "1f33a",
  68522. "uc_greedy": "1f33a",
  68523. "shortnames": [],
  68524. "category": "nature"
  68525. },
  68526. ":high_brightness:": {
  68527. "uc_base": "1f506",
  68528. "uc_output": "1f506",
  68529. "uc_match": "1f506",
  68530. "uc_greedy": "1f506",
  68531. "shortnames": [],
  68532. "category": "symbols"
  68533. },
  68534. ":high_heel:": {
  68535. "uc_base": "1f460",
  68536. "uc_output": "1f460",
  68537. "uc_match": "1f460",
  68538. "uc_greedy": "1f460",
  68539. "shortnames": [],
  68540. "category": "people"
  68541. },
  68542. ":hockey:": {
  68543. "uc_base": "1f3d2",
  68544. "uc_output": "1f3d2",
  68545. "uc_match": "1f3d2",
  68546. "uc_greedy": "1f3d2",
  68547. "shortnames": [],
  68548. "category": "activity"
  68549. },
  68550. ":hole:": {
  68551. "uc_base": "1f573",
  68552. "uc_output": "1f573",
  68553. "uc_match": "1f573-fe0f",
  68554. "uc_greedy": "1f573-fe0f",
  68555. "shortnames": [],
  68556. "category": "objects"
  68557. },
  68558. ":homes:": {
  68559. "uc_base": "1f3d8",
  68560. "uc_output": "1f3d8",
  68561. "uc_match": "1f3d8-fe0f",
  68562. "uc_greedy": "1f3d8-fe0f",
  68563. "shortnames": [":house_buildings:"],
  68564. "category": "travel"
  68565. },
  68566. ":honey_pot:": {
  68567. "uc_base": "1f36f",
  68568. "uc_output": "1f36f",
  68569. "uc_match": "1f36f",
  68570. "uc_greedy": "1f36f",
  68571. "shortnames": [],
  68572. "category": "food"
  68573. },
  68574. ":horse:": {
  68575. "uc_base": "1f434",
  68576. "uc_output": "1f434",
  68577. "uc_match": "1f434",
  68578. "uc_greedy": "1f434",
  68579. "shortnames": [],
  68580. "category": "nature"
  68581. },
  68582. ":horse_racing:": {
  68583. "uc_base": "1f3c7",
  68584. "uc_output": "1f3c7",
  68585. "uc_match": "1f3c7",
  68586. "uc_greedy": "1f3c7",
  68587. "shortnames": [],
  68588. "category": "activity"
  68589. },
  68590. ":hospital:": {
  68591. "uc_base": "1f3e5",
  68592. "uc_output": "1f3e5",
  68593. "uc_match": "1f3e5",
  68594. "uc_greedy": "1f3e5",
  68595. "shortnames": [],
  68596. "category": "travel"
  68597. },
  68598. ":hot_pepper:": {
  68599. "uc_base": "1f336",
  68600. "uc_output": "1f336",
  68601. "uc_match": "1f336-fe0f",
  68602. "uc_greedy": "1f336-fe0f",
  68603. "shortnames": [],
  68604. "category": "food"
  68605. },
  68606. ":hotdog:": {
  68607. "uc_base": "1f32d",
  68608. "uc_output": "1f32d",
  68609. "uc_match": "1f32d",
  68610. "uc_greedy": "1f32d",
  68611. "shortnames": [":hot_dog:"],
  68612. "category": "food"
  68613. },
  68614. ":hotel:": {
  68615. "uc_base": "1f3e8",
  68616. "uc_output": "1f3e8",
  68617. "uc_match": "1f3e8",
  68618. "uc_greedy": "1f3e8",
  68619. "shortnames": [],
  68620. "category": "travel"
  68621. },
  68622. ":house:": {
  68623. "uc_base": "1f3e0",
  68624. "uc_output": "1f3e0",
  68625. "uc_match": "1f3e0-fe0f",
  68626. "uc_greedy": "1f3e0-fe0f",
  68627. "shortnames": [],
  68628. "category": "travel"
  68629. },
  68630. ":house_abandoned:": {
  68631. "uc_base": "1f3da",
  68632. "uc_output": "1f3da",
  68633. "uc_match": "1f3da-fe0f",
  68634. "uc_greedy": "1f3da-fe0f",
  68635. "shortnames": [":derelict_house_building:"],
  68636. "category": "travel"
  68637. },
  68638. ":house_with_garden:": {
  68639. "uc_base": "1f3e1",
  68640. "uc_output": "1f3e1",
  68641. "uc_match": "1f3e1",
  68642. "uc_greedy": "1f3e1",
  68643. "shortnames": [],
  68644. "category": "travel"
  68645. },
  68646. ":hugging:": {
  68647. "uc_base": "1f917",
  68648. "uc_output": "1f917",
  68649. "uc_match": "1f917",
  68650. "uc_greedy": "1f917",
  68651. "shortnames": [":hugging_face:"],
  68652. "category": "people"
  68653. },
  68654. ":hushed:": {
  68655. "uc_base": "1f62f",
  68656. "uc_output": "1f62f",
  68657. "uc_match": "1f62f",
  68658. "uc_greedy": "1f62f",
  68659. "shortnames": [],
  68660. "category": "people"
  68661. },
  68662. ":ice_cream:": {
  68663. "uc_base": "1f368",
  68664. "uc_output": "1f368",
  68665. "uc_match": "1f368",
  68666. "uc_greedy": "1f368",
  68667. "shortnames": [],
  68668. "category": "food"
  68669. },
  68670. ":icecream:": {
  68671. "uc_base": "1f366",
  68672. "uc_output": "1f366",
  68673. "uc_match": "1f366",
  68674. "uc_greedy": "1f366",
  68675. "shortnames": [],
  68676. "category": "food"
  68677. },
  68678. ":id:": {
  68679. "uc_base": "1f194",
  68680. "uc_output": "1f194",
  68681. "uc_match": "1f194",
  68682. "uc_greedy": "1f194",
  68683. "shortnames": [],
  68684. "category": "symbols"
  68685. },
  68686. ":ideograph_advantage:": {
  68687. "uc_base": "1f250",
  68688. "uc_output": "1f250",
  68689. "uc_match": "1f250",
  68690. "uc_greedy": "1f250",
  68691. "shortnames": [],
  68692. "category": "symbols"
  68693. },
  68694. ":imp:": {
  68695. "uc_base": "1f47f",
  68696. "uc_output": "1f47f",
  68697. "uc_match": "1f47f",
  68698. "uc_greedy": "1f47f",
  68699. "shortnames": [],
  68700. "category": "people"
  68701. },
  68702. ":inbox_tray:": {
  68703. "uc_base": "1f4e5",
  68704. "uc_output": "1f4e5",
  68705. "uc_match": "1f4e5-fe0f",
  68706. "uc_greedy": "1f4e5-fe0f",
  68707. "shortnames": [],
  68708. "category": "objects"
  68709. },
  68710. ":incoming_envelope:": {
  68711. "uc_base": "1f4e8",
  68712. "uc_output": "1f4e8",
  68713. "uc_match": "1f4e8",
  68714. "uc_greedy": "1f4e8",
  68715. "shortnames": [],
  68716. "category": "objects"
  68717. },
  68718. ":innocent:": {
  68719. "uc_base": "1f607",
  68720. "uc_output": "1f607",
  68721. "uc_match": "1f607",
  68722. "uc_greedy": "1f607",
  68723. "shortnames": [],
  68724. "category": "people"
  68725. },
  68726. ":iphone:": {
  68727. "uc_base": "1f4f1",
  68728. "uc_output": "1f4f1",
  68729. "uc_match": "1f4f1",
  68730. "uc_greedy": "1f4f1",
  68731. "shortnames": [],
  68732. "category": "objects"
  68733. },
  68734. ":island:": {
  68735. "uc_base": "1f3dd",
  68736. "uc_output": "1f3dd",
  68737. "uc_match": "1f3dd-fe0f",
  68738. "uc_greedy": "1f3dd-fe0f",
  68739. "shortnames": [":desert_island:"],
  68740. "category": "travel"
  68741. },
  68742. ":izakaya_lantern:": {
  68743. "uc_base": "1f3ee",
  68744. "uc_output": "1f3ee",
  68745. "uc_match": "1f3ee",
  68746. "uc_greedy": "1f3ee",
  68747. "shortnames": [],
  68748. "category": "objects"
  68749. },
  68750. ":jack_o_lantern:": {
  68751. "uc_base": "1f383",
  68752. "uc_output": "1f383",
  68753. "uc_match": "1f383",
  68754. "uc_greedy": "1f383",
  68755. "shortnames": [],
  68756. "category": "people"
  68757. },
  68758. ":japan:": {
  68759. "uc_base": "1f5fe",
  68760. "uc_output": "1f5fe",
  68761. "uc_match": "1f5fe",
  68762. "uc_greedy": "1f5fe",
  68763. "shortnames": [],
  68764. "category": "travel"
  68765. },
  68766. ":japanese_castle:": {
  68767. "uc_base": "1f3ef",
  68768. "uc_output": "1f3ef",
  68769. "uc_match": "1f3ef",
  68770. "uc_greedy": "1f3ef",
  68771. "shortnames": [],
  68772. "category": "travel"
  68773. },
  68774. ":japanese_goblin:": {
  68775. "uc_base": "1f47a",
  68776. "uc_output": "1f47a",
  68777. "uc_match": "1f47a",
  68778. "uc_greedy": "1f47a",
  68779. "shortnames": [],
  68780. "category": "people"
  68781. },
  68782. ":japanese_ogre:": {
  68783. "uc_base": "1f479",
  68784. "uc_output": "1f479",
  68785. "uc_match": "1f479",
  68786. "uc_greedy": "1f479",
  68787. "shortnames": [],
  68788. "category": "people"
  68789. },
  68790. ":jeans:": {
  68791. "uc_base": "1f456",
  68792. "uc_output": "1f456",
  68793. "uc_match": "1f456",
  68794. "uc_greedy": "1f456",
  68795. "shortnames": [],
  68796. "category": "people"
  68797. },
  68798. ":joy:": {
  68799. "uc_base": "1f602",
  68800. "uc_output": "1f602",
  68801. "uc_match": "1f602",
  68802. "uc_greedy": "1f602",
  68803. "shortnames": [],
  68804. "category": "people"
  68805. },
  68806. ":joy_cat:": {
  68807. "uc_base": "1f639",
  68808. "uc_output": "1f639",
  68809. "uc_match": "1f639",
  68810. "uc_greedy": "1f639",
  68811. "shortnames": [],
  68812. "category": "people"
  68813. },
  68814. ":joystick:": {
  68815. "uc_base": "1f579",
  68816. "uc_output": "1f579",
  68817. "uc_match": "1f579-fe0f",
  68818. "uc_greedy": "1f579-fe0f",
  68819. "shortnames": [],
  68820. "category": "objects"
  68821. },
  68822. ":kaaba:": {
  68823. "uc_base": "1f54b",
  68824. "uc_output": "1f54b",
  68825. "uc_match": "1f54b",
  68826. "uc_greedy": "1f54b",
  68827. "shortnames": [],
  68828. "category": "travel"
  68829. },
  68830. ":key2:": {
  68831. "uc_base": "1f5dd",
  68832. "uc_output": "1f5dd",
  68833. "uc_match": "1f5dd-fe0f",
  68834. "uc_greedy": "1f5dd",
  68835. "shortnames": [":old_key:"],
  68836. "category": "objects"
  68837. },
  68838. ":key:": {
  68839. "uc_base": "1f511",
  68840. "uc_output": "1f511",
  68841. "uc_match": "1f511",
  68842. "uc_greedy": "1f511",
  68843. "shortnames": [],
  68844. "category": "objects"
  68845. },
  68846. ":keycap_ten:": {
  68847. "uc_base": "1f51f",
  68848. "uc_output": "1f51f",
  68849. "uc_match": "1f51f",
  68850. "uc_greedy": "1f51f",
  68851. "shortnames": [],
  68852. "category": "symbols"
  68853. },
  68854. ":kimono:": {
  68855. "uc_base": "1f458",
  68856. "uc_output": "1f458",
  68857. "uc_match": "1f458",
  68858. "uc_greedy": "1f458",
  68859. "shortnames": [],
  68860. "category": "people"
  68861. },
  68862. ":kiss:": {
  68863. "uc_base": "1f48b",
  68864. "uc_output": "1f48b",
  68865. "uc_match": "1f48b",
  68866. "uc_greedy": "1f48b",
  68867. "shortnames": [],
  68868. "category": "people"
  68869. },
  68870. ":kissing:": {
  68871. "uc_base": "1f617",
  68872. "uc_output": "1f617",
  68873. "uc_match": "1f617",
  68874. "uc_greedy": "1f617",
  68875. "shortnames": [],
  68876. "category": "people"
  68877. },
  68878. ":kissing_cat:": {
  68879. "uc_base": "1f63d",
  68880. "uc_output": "1f63d",
  68881. "uc_match": "1f63d",
  68882. "uc_greedy": "1f63d",
  68883. "shortnames": [],
  68884. "category": "people"
  68885. },
  68886. ":kissing_closed_eyes:": {
  68887. "uc_base": "1f61a",
  68888. "uc_output": "1f61a",
  68889. "uc_match": "1f61a",
  68890. "uc_greedy": "1f61a",
  68891. "shortnames": [],
  68892. "category": "people"
  68893. },
  68894. ":kissing_heart:": {
  68895. "uc_base": "1f618",
  68896. "uc_output": "1f618",
  68897. "uc_match": "1f618",
  68898. "uc_greedy": "1f618",
  68899. "shortnames": [],
  68900. "category": "people"
  68901. },
  68902. ":kissing_smiling_eyes:": {
  68903. "uc_base": "1f619",
  68904. "uc_output": "1f619",
  68905. "uc_match": "1f619",
  68906. "uc_greedy": "1f619",
  68907. "shortnames": [],
  68908. "category": "people"
  68909. },
  68910. ":kiwi:": {
  68911. "uc_base": "1f95d",
  68912. "uc_output": "1f95d",
  68913. "uc_match": "1f95d",
  68914. "uc_greedy": "1f95d",
  68915. "shortnames": [":kiwifruit:"],
  68916. "category": "food"
  68917. },
  68918. ":knife:": {
  68919. "uc_base": "1f52a",
  68920. "uc_output": "1f52a",
  68921. "uc_match": "1f52a",
  68922. "uc_greedy": "1f52a",
  68923. "shortnames": [],
  68924. "category": "objects"
  68925. },
  68926. ":koala:": {
  68927. "uc_base": "1f428",
  68928. "uc_output": "1f428",
  68929. "uc_match": "1f428",
  68930. "uc_greedy": "1f428",
  68931. "shortnames": [],
  68932. "category": "nature"
  68933. },
  68934. ":koko:": {
  68935. "uc_base": "1f201",
  68936. "uc_output": "1f201",
  68937. "uc_match": "1f201",
  68938. "uc_greedy": "1f201",
  68939. "shortnames": [],
  68940. "category": "symbols"
  68941. },
  68942. ":label:": {
  68943. "uc_base": "1f3f7",
  68944. "uc_output": "1f3f7",
  68945. "uc_match": "1f3f7-fe0f",
  68946. "uc_greedy": "1f3f7-fe0f",
  68947. "shortnames": [],
  68948. "category": "objects"
  68949. },
  68950. ":large_blue_diamond:": {
  68951. "uc_base": "1f537",
  68952. "uc_output": "1f537",
  68953. "uc_match": "1f537",
  68954. "uc_greedy": "1f537",
  68955. "shortnames": [],
  68956. "category": "symbols"
  68957. },
  68958. ":large_orange_diamond:": {
  68959. "uc_base": "1f536",
  68960. "uc_output": "1f536",
  68961. "uc_match": "1f536",
  68962. "uc_greedy": "1f536",
  68963. "shortnames": [],
  68964. "category": "symbols"
  68965. },
  68966. ":last_quarter_moon:": {
  68967. "uc_base": "1f317",
  68968. "uc_output": "1f317",
  68969. "uc_match": "1f317",
  68970. "uc_greedy": "1f317",
  68971. "shortnames": [],
  68972. "category": "nature"
  68973. },
  68974. ":last_quarter_moon_with_face:": {
  68975. "uc_base": "1f31c",
  68976. "uc_output": "1f31c",
  68977. "uc_match": "1f31c-fe0f",
  68978. "uc_greedy": "1f31c-fe0f",
  68979. "shortnames": [],
  68980. "category": "nature"
  68981. },
  68982. ":laughing:": {
  68983. "uc_base": "1f606",
  68984. "uc_output": "1f606",
  68985. "uc_match": "1f606",
  68986. "uc_greedy": "1f606",
  68987. "shortnames": [":satisfied:"],
  68988. "category": "people"
  68989. },
  68990. ":leaves:": {
  68991. "uc_base": "1f343",
  68992. "uc_output": "1f343",
  68993. "uc_match": "1f343",
  68994. "uc_greedy": "1f343",
  68995. "shortnames": [],
  68996. "category": "nature"
  68997. },
  68998. ":ledger:": {
  68999. "uc_base": "1f4d2",
  69000. "uc_output": "1f4d2",
  69001. "uc_match": "1f4d2",
  69002. "uc_greedy": "1f4d2",
  69003. "shortnames": [],
  69004. "category": "objects"
  69005. },
  69006. ":left_facing_fist:": {
  69007. "uc_base": "1f91b",
  69008. "uc_output": "1f91b",
  69009. "uc_match": "1f91b",
  69010. "uc_greedy": "1f91b",
  69011. "shortnames": [":left_fist:"],
  69012. "category": "people"
  69013. },
  69014. ":left_luggage:": {
  69015. "uc_base": "1f6c5",
  69016. "uc_output": "1f6c5",
  69017. "uc_match": "1f6c5",
  69018. "uc_greedy": "1f6c5",
  69019. "shortnames": [],
  69020. "category": "symbols"
  69021. },
  69022. ":lemon:": {
  69023. "uc_base": "1f34b",
  69024. "uc_output": "1f34b",
  69025. "uc_match": "1f34b",
  69026. "uc_greedy": "1f34b",
  69027. "shortnames": [],
  69028. "category": "food"
  69029. },
  69030. ":leopard:": {
  69031. "uc_base": "1f406",
  69032. "uc_output": "1f406",
  69033. "uc_match": "1f406",
  69034. "uc_greedy": "1f406",
  69035. "shortnames": [],
  69036. "category": "nature"
  69037. },
  69038. ":level_slider:": {
  69039. "uc_base": "1f39a",
  69040. "uc_output": "1f39a",
  69041. "uc_match": "1f39a-fe0f",
  69042. "uc_greedy": "1f39a-fe0f",
  69043. "shortnames": [],
  69044. "category": "objects"
  69045. },
  69046. ":levitate:": {
  69047. "uc_base": "1f574",
  69048. "uc_output": "1f574",
  69049. "uc_match": "1f574-fe0f",
  69050. "uc_greedy": "1f574-fe0f",
  69051. "shortnames": [":man_in_business_suit_levitating:"],
  69052. "category": "people"
  69053. },
  69054. ":light_rail:": {
  69055. "uc_base": "1f688",
  69056. "uc_output": "1f688",
  69057. "uc_match": "1f688",
  69058. "uc_greedy": "1f688",
  69059. "shortnames": [],
  69060. "category": "travel"
  69061. },
  69062. ":link:": {
  69063. "uc_base": "1f517",
  69064. "uc_output": "1f517",
  69065. "uc_match": "1f517",
  69066. "uc_greedy": "1f517",
  69067. "shortnames": [],
  69068. "category": "objects"
  69069. },
  69070. ":lion_face:": {
  69071. "uc_base": "1f981",
  69072. "uc_output": "1f981",
  69073. "uc_match": "1f981",
  69074. "uc_greedy": "1f981",
  69075. "shortnames": [":lion:"],
  69076. "category": "nature"
  69077. },
  69078. ":lips:": {
  69079. "uc_base": "1f444",
  69080. "uc_output": "1f444",
  69081. "uc_match": "1f444",
  69082. "uc_greedy": "1f444",
  69083. "shortnames": [],
  69084. "category": "people"
  69085. },
  69086. ":lipstick:": {
  69087. "uc_base": "1f484",
  69088. "uc_output": "1f484",
  69089. "uc_match": "1f484",
  69090. "uc_greedy": "1f484",
  69091. "shortnames": [],
  69092. "category": "people"
  69093. },
  69094. ":lizard:": {
  69095. "uc_base": "1f98e",
  69096. "uc_output": "1f98e",
  69097. "uc_match": "1f98e",
  69098. "uc_greedy": "1f98e",
  69099. "shortnames": [],
  69100. "category": "nature"
  69101. },
  69102. ":lock:": {
  69103. "uc_base": "1f512",
  69104. "uc_output": "1f512",
  69105. "uc_match": "1f512-fe0f",
  69106. "uc_greedy": "1f512-fe0f",
  69107. "shortnames": [],
  69108. "category": "objects"
  69109. },
  69110. ":lock_with_ink_pen:": {
  69111. "uc_base": "1f50f",
  69112. "uc_output": "1f50f",
  69113. "uc_match": "1f50f",
  69114. "uc_greedy": "1f50f",
  69115. "shortnames": [],
  69116. "category": "objects"
  69117. },
  69118. ":lollipop:": {
  69119. "uc_base": "1f36d",
  69120. "uc_output": "1f36d",
  69121. "uc_match": "1f36d",
  69122. "uc_greedy": "1f36d",
  69123. "shortnames": [],
  69124. "category": "food"
  69125. },
  69126. ":loud_sound:": {
  69127. "uc_base": "1f50a",
  69128. "uc_output": "1f50a",
  69129. "uc_match": "1f50a",
  69130. "uc_greedy": "1f50a",
  69131. "shortnames": [],
  69132. "category": "symbols"
  69133. },
  69134. ":loudspeaker:": {
  69135. "uc_base": "1f4e2",
  69136. "uc_output": "1f4e2",
  69137. "uc_match": "1f4e2",
  69138. "uc_greedy": "1f4e2",
  69139. "shortnames": [],
  69140. "category": "symbols"
  69141. },
  69142. ":love_hotel:": {
  69143. "uc_base": "1f3e9",
  69144. "uc_output": "1f3e9",
  69145. "uc_match": "1f3e9",
  69146. "uc_greedy": "1f3e9",
  69147. "shortnames": [],
  69148. "category": "travel"
  69149. },
  69150. ":love_letter:": {
  69151. "uc_base": "1f48c",
  69152. "uc_output": "1f48c",
  69153. "uc_match": "1f48c",
  69154. "uc_greedy": "1f48c",
  69155. "shortnames": [],
  69156. "category": "objects"
  69157. },
  69158. ":love_you_gesture:": {
  69159. "uc_base": "1f91f",
  69160. "uc_output": "1f91f",
  69161. "uc_match": "1f91f",
  69162. "uc_greedy": "1f91f",
  69163. "shortnames": [],
  69164. "category": "people"
  69165. },
  69166. ":low_brightness:": {
  69167. "uc_base": "1f505",
  69168. "uc_output": "1f505",
  69169. "uc_match": "1f505",
  69170. "uc_greedy": "1f505",
  69171. "shortnames": [],
  69172. "category": "symbols"
  69173. },
  69174. ":lying_face:": {
  69175. "uc_base": "1f925",
  69176. "uc_output": "1f925",
  69177. "uc_match": "1f925",
  69178. "uc_greedy": "1f925",
  69179. "shortnames": [":liar:"],
  69180. "category": "people"
  69181. },
  69182. ":mag:": {
  69183. "uc_base": "1f50d",
  69184. "uc_output": "1f50d",
  69185. "uc_match": "1f50d-fe0f",
  69186. "uc_greedy": "1f50d-fe0f",
  69187. "shortnames": [],
  69188. "category": "objects"
  69189. },
  69190. ":mag_right:": {
  69191. "uc_base": "1f50e",
  69192. "uc_output": "1f50e",
  69193. "uc_match": "1f50e",
  69194. "uc_greedy": "1f50e",
  69195. "shortnames": [],
  69196. "category": "objects"
  69197. },
  69198. ":mage:": {
  69199. "uc_base": "1f9d9",
  69200. "uc_output": "1f9d9",
  69201. "uc_match": "1f9d9",
  69202. "uc_greedy": "1f9d9",
  69203. "shortnames": [],
  69204. "category": "people"
  69205. },
  69206. ":mahjong:": {
  69207. "uc_base": "1f004",
  69208. "uc_output": "1f004",
  69209. "uc_match": "1f004-fe0f",
  69210. "uc_greedy": "1f004-fe0f",
  69211. "shortnames": [],
  69212. "category": "symbols"
  69213. },
  69214. ":mailbox:": {
  69215. "uc_base": "1f4eb",
  69216. "uc_output": "1f4eb",
  69217. "uc_match": "1f4eb-fe0f",
  69218. "uc_greedy": "1f4eb-fe0f",
  69219. "shortnames": [],
  69220. "category": "objects"
  69221. },
  69222. ":mailbox_closed:": {
  69223. "uc_base": "1f4ea",
  69224. "uc_output": "1f4ea",
  69225. "uc_match": "1f4ea-fe0f",
  69226. "uc_greedy": "1f4ea-fe0f",
  69227. "shortnames": [],
  69228. "category": "objects"
  69229. },
  69230. ":mailbox_with_mail:": {
  69231. "uc_base": "1f4ec",
  69232. "uc_output": "1f4ec",
  69233. "uc_match": "1f4ec-fe0f",
  69234. "uc_greedy": "1f4ec-fe0f",
  69235. "shortnames": [],
  69236. "category": "objects"
  69237. },
  69238. ":mailbox_with_no_mail:": {
  69239. "uc_base": "1f4ed",
  69240. "uc_output": "1f4ed",
  69241. "uc_match": "1f4ed-fe0f",
  69242. "uc_greedy": "1f4ed-fe0f",
  69243. "shortnames": [],
  69244. "category": "objects"
  69245. },
  69246. ":man:": {
  69247. "uc_base": "1f468",
  69248. "uc_output": "1f468",
  69249. "uc_match": "1f468",
  69250. "uc_greedy": "1f468",
  69251. "shortnames": [],
  69252. "category": "people"
  69253. },
  69254. ":man_dancing:": {
  69255. "uc_base": "1f57a",
  69256. "uc_output": "1f57a",
  69257. "uc_match": "1f57a",
  69258. "uc_greedy": "1f57a",
  69259. "shortnames": [":male_dancer:"],
  69260. "category": "people"
  69261. },
  69262. ":man_in_tuxedo:": {
  69263. "uc_base": "1f935",
  69264. "uc_output": "1f935",
  69265. "uc_match": "1f935",
  69266. "uc_greedy": "1f935",
  69267. "shortnames": [],
  69268. "category": "people"
  69269. },
  69270. ":man_with_chinese_cap:": {
  69271. "uc_base": "1f472",
  69272. "uc_output": "1f472",
  69273. "uc_match": "1f472",
  69274. "uc_greedy": "1f472",
  69275. "shortnames": [":man_with_gua_pi_mao:"],
  69276. "category": "people"
  69277. },
  69278. ":mans_shoe:": {
  69279. "uc_base": "1f45e",
  69280. "uc_output": "1f45e",
  69281. "uc_match": "1f45e",
  69282. "uc_greedy": "1f45e",
  69283. "shortnames": [],
  69284. "category": "people"
  69285. },
  69286. ":map:": {
  69287. "uc_base": "1f5fa",
  69288. "uc_output": "1f5fa",
  69289. "uc_match": "1f5fa-fe0f",
  69290. "uc_greedy": "1f5fa-fe0f",
  69291. "shortnames": [":world_map:"],
  69292. "category": "travel"
  69293. },
  69294. ":maple_leaf:": {
  69295. "uc_base": "1f341",
  69296. "uc_output": "1f341",
  69297. "uc_match": "1f341",
  69298. "uc_greedy": "1f341",
  69299. "shortnames": [],
  69300. "category": "nature"
  69301. },
  69302. ":martial_arts_uniform:": {
  69303. "uc_base": "1f94b",
  69304. "uc_output": "1f94b",
  69305. "uc_match": "1f94b",
  69306. "uc_greedy": "1f94b",
  69307. "shortnames": [":karate_uniform:"],
  69308. "category": "activity"
  69309. },
  69310. ":mask:": {
  69311. "uc_base": "1f637",
  69312. "uc_output": "1f637",
  69313. "uc_match": "1f637",
  69314. "uc_greedy": "1f637",
  69315. "shortnames": [],
  69316. "category": "people"
  69317. },
  69318. ":meat_on_bone:": {
  69319. "uc_base": "1f356",
  69320. "uc_output": "1f356",
  69321. "uc_match": "1f356",
  69322. "uc_greedy": "1f356",
  69323. "shortnames": [],
  69324. "category": "food"
  69325. },
  69326. ":medal:": {
  69327. "uc_base": "1f3c5",
  69328. "uc_output": "1f3c5",
  69329. "uc_match": "1f3c5",
  69330. "uc_greedy": "1f3c5",
  69331. "shortnames": [":sports_medal:"],
  69332. "category": "activity"
  69333. },
  69334. ":mega:": {
  69335. "uc_base": "1f4e3",
  69336. "uc_output": "1f4e3",
  69337. "uc_match": "1f4e3",
  69338. "uc_greedy": "1f4e3",
  69339. "shortnames": [],
  69340. "category": "symbols"
  69341. },
  69342. ":melon:": {
  69343. "uc_base": "1f348",
  69344. "uc_output": "1f348",
  69345. "uc_match": "1f348",
  69346. "uc_greedy": "1f348",
  69347. "shortnames": [],
  69348. "category": "food"
  69349. },
  69350. ":menorah:": {
  69351. "uc_base": "1f54e",
  69352. "uc_output": "1f54e",
  69353. "uc_match": "1f54e",
  69354. "uc_greedy": "1f54e",
  69355. "shortnames": [],
  69356. "category": "symbols"
  69357. },
  69358. ":mens:": {
  69359. "uc_base": "1f6b9",
  69360. "uc_output": "1f6b9",
  69361. "uc_match": "1f6b9-fe0f",
  69362. "uc_greedy": "1f6b9-fe0f",
  69363. "shortnames": [],
  69364. "category": "symbols"
  69365. },
  69366. ":merperson:": {
  69367. "uc_base": "1f9dc",
  69368. "uc_output": "1f9dc",
  69369. "uc_match": "1f9dc",
  69370. "uc_greedy": "1f9dc",
  69371. "shortnames": [],
  69372. "category": "people"
  69373. },
  69374. ":metal:": {
  69375. "uc_base": "1f918",
  69376. "uc_output": "1f918",
  69377. "uc_match": "1f918",
  69378. "uc_greedy": "1f918",
  69379. "shortnames": [":sign_of_the_horns:"],
  69380. "category": "people"
  69381. },
  69382. ":metro:": {
  69383. "uc_base": "1f687",
  69384. "uc_output": "1f687",
  69385. "uc_match": "1f687-fe0f",
  69386. "uc_greedy": "1f687-fe0f",
  69387. "shortnames": [],
  69388. "category": "travel"
  69389. },
  69390. ":microphone2:": {
  69391. "uc_base": "1f399",
  69392. "uc_output": "1f399",
  69393. "uc_match": "1f399-fe0f",
  69394. "uc_greedy": "1f399-fe0f",
  69395. "shortnames": [":studio_microphone:"],
  69396. "category": "objects"
  69397. },
  69398. ":microphone:": {
  69399. "uc_base": "1f3a4",
  69400. "uc_output": "1f3a4",
  69401. "uc_match": "1f3a4",
  69402. "uc_greedy": "1f3a4",
  69403. "shortnames": [],
  69404. "category": "activity"
  69405. },
  69406. ":microscope:": {
  69407. "uc_base": "1f52c",
  69408. "uc_output": "1f52c",
  69409. "uc_match": "1f52c",
  69410. "uc_greedy": "1f52c",
  69411. "shortnames": [],
  69412. "category": "objects"
  69413. },
  69414. ":middle_finger:": {
  69415. "uc_base": "1f595",
  69416. "uc_output": "1f595",
  69417. "uc_match": "1f595",
  69418. "uc_greedy": "1f595",
  69419. "shortnames": [":reversed_hand_with_middle_finger_extended:"],
  69420. "category": "people"
  69421. },
  69422. ":military_medal:": {
  69423. "uc_base": "1f396",
  69424. "uc_output": "1f396",
  69425. "uc_match": "1f396-fe0f",
  69426. "uc_greedy": "1f396-fe0f",
  69427. "shortnames": [],
  69428. "category": "activity"
  69429. },
  69430. ":milk:": {
  69431. "uc_base": "1f95b",
  69432. "uc_output": "1f95b",
  69433. "uc_match": "1f95b",
  69434. "uc_greedy": "1f95b",
  69435. "shortnames": [":glass_of_milk:"],
  69436. "category": "food"
  69437. },
  69438. ":milky_way:": {
  69439. "uc_base": "1f30c",
  69440. "uc_output": "1f30c",
  69441. "uc_match": "1f30c",
  69442. "uc_greedy": "1f30c",
  69443. "shortnames": [],
  69444. "category": "travel"
  69445. },
  69446. ":minibus:": {
  69447. "uc_base": "1f690",
  69448. "uc_output": "1f690",
  69449. "uc_match": "1f690",
  69450. "uc_greedy": "1f690",
  69451. "shortnames": [],
  69452. "category": "travel"
  69453. },
  69454. ":minidisc:": {
  69455. "uc_base": "1f4bd",
  69456. "uc_output": "1f4bd",
  69457. "uc_match": "1f4bd",
  69458. "uc_greedy": "1f4bd",
  69459. "shortnames": [],
  69460. "category": "objects"
  69461. },
  69462. ":mobile_phone_off:": {
  69463. "uc_base": "1f4f4",
  69464. "uc_output": "1f4f4",
  69465. "uc_match": "1f4f4",
  69466. "uc_greedy": "1f4f4",
  69467. "shortnames": [],
  69468. "category": "symbols"
  69469. },
  69470. ":money_mouth:": {
  69471. "uc_base": "1f911",
  69472. "uc_output": "1f911",
  69473. "uc_match": "1f911",
  69474. "uc_greedy": "1f911",
  69475. "shortnames": [":money_mouth_face:"],
  69476. "category": "people"
  69477. },
  69478. ":money_with_wings:": {
  69479. "uc_base": "1f4b8",
  69480. "uc_output": "1f4b8",
  69481. "uc_match": "1f4b8",
  69482. "uc_greedy": "1f4b8",
  69483. "shortnames": [],
  69484. "category": "objects"
  69485. },
  69486. ":moneybag:": {
  69487. "uc_base": "1f4b0",
  69488. "uc_output": "1f4b0",
  69489. "uc_match": "1f4b0-fe0f",
  69490. "uc_greedy": "1f4b0-fe0f",
  69491. "shortnames": [],
  69492. "category": "objects"
  69493. },
  69494. ":monkey:": {
  69495. "uc_base": "1f412",
  69496. "uc_output": "1f412",
  69497. "uc_match": "1f412",
  69498. "uc_greedy": "1f412",
  69499. "shortnames": [],
  69500. "category": "nature"
  69501. },
  69502. ":monkey_face:": {
  69503. "uc_base": "1f435",
  69504. "uc_output": "1f435",
  69505. "uc_match": "1f435",
  69506. "uc_greedy": "1f435",
  69507. "shortnames": [],
  69508. "category": "nature"
  69509. },
  69510. ":monorail:": {
  69511. "uc_base": "1f69d",
  69512. "uc_output": "1f69d",
  69513. "uc_match": "1f69d",
  69514. "uc_greedy": "1f69d",
  69515. "shortnames": [],
  69516. "category": "travel"
  69517. },
  69518. ":mortar_board:": {
  69519. "uc_base": "1f393",
  69520. "uc_output": "1f393",
  69521. "uc_match": "1f393-fe0f",
  69522. "uc_greedy": "1f393-fe0f",
  69523. "shortnames": [],
  69524. "category": "people"
  69525. },
  69526. ":mosque:": {
  69527. "uc_base": "1f54c",
  69528. "uc_output": "1f54c",
  69529. "uc_match": "1f54c",
  69530. "uc_greedy": "1f54c",
  69531. "shortnames": [],
  69532. "category": "travel"
  69533. },
  69534. ":motor_scooter:": {
  69535. "uc_base": "1f6f5",
  69536. "uc_output": "1f6f5",
  69537. "uc_match": "1f6f5",
  69538. "uc_greedy": "1f6f5",
  69539. "shortnames": [":motorbike:"],
  69540. "category": "travel"
  69541. },
  69542. ":motorboat:": {
  69543. "uc_base": "1f6e5",
  69544. "uc_output": "1f6e5",
  69545. "uc_match": "1f6e5-fe0f",
  69546. "uc_greedy": "1f6e5-fe0f",
  69547. "shortnames": [],
  69548. "category": "travel"
  69549. },
  69550. ":motorcycle:": {
  69551. "uc_base": "1f3cd",
  69552. "uc_output": "1f3cd",
  69553. "uc_match": "1f3cd-fe0f",
  69554. "uc_greedy": "1f3cd-fe0f",
  69555. "shortnames": [":racing_motorcycle:"],
  69556. "category": "travel"
  69557. },
  69558. ":motorway:": {
  69559. "uc_base": "1f6e3",
  69560. "uc_output": "1f6e3",
  69561. "uc_match": "1f6e3-fe0f",
  69562. "uc_greedy": "1f6e3-fe0f",
  69563. "shortnames": [],
  69564. "category": "travel"
  69565. },
  69566. ":mount_fuji:": {
  69567. "uc_base": "1f5fb",
  69568. "uc_output": "1f5fb",
  69569. "uc_match": "1f5fb",
  69570. "uc_greedy": "1f5fb",
  69571. "shortnames": [],
  69572. "category": "travel"
  69573. },
  69574. ":mountain_cableway:": {
  69575. "uc_base": "1f6a0",
  69576. "uc_output": "1f6a0",
  69577. "uc_match": "1f6a0",
  69578. "uc_greedy": "1f6a0",
  69579. "shortnames": [],
  69580. "category": "travel"
  69581. },
  69582. ":mountain_railway:": {
  69583. "uc_base": "1f69e",
  69584. "uc_output": "1f69e",
  69585. "uc_match": "1f69e",
  69586. "uc_greedy": "1f69e",
  69587. "shortnames": [],
  69588. "category": "travel"
  69589. },
  69590. ":mountain_snow:": {
  69591. "uc_base": "1f3d4",
  69592. "uc_output": "1f3d4",
  69593. "uc_match": "1f3d4-fe0f",
  69594. "uc_greedy": "1f3d4-fe0f",
  69595. "shortnames": [":snow_capped_mountain:"],
  69596. "category": "travel"
  69597. },
  69598. ":mouse2:": {
  69599. "uc_base": "1f401",
  69600. "uc_output": "1f401",
  69601. "uc_match": "1f401",
  69602. "uc_greedy": "1f401",
  69603. "shortnames": [],
  69604. "category": "nature"
  69605. },
  69606. ":mouse:": {
  69607. "uc_base": "1f42d",
  69608. "uc_output": "1f42d",
  69609. "uc_match": "1f42d",
  69610. "uc_greedy": "1f42d",
  69611. "shortnames": [],
  69612. "category": "nature"
  69613. },
  69614. ":mouse_three_button:": {
  69615. "uc_base": "1f5b1",
  69616. "uc_output": "1f5b1",
  69617. "uc_match": "1f5b1-fe0f",
  69618. "uc_greedy": "1f5b1-fe0f",
  69619. "shortnames": [":three_button_mouse:"],
  69620. "category": "objects"
  69621. },
  69622. ":movie_camera:": {
  69623. "uc_base": "1f3a5",
  69624. "uc_output": "1f3a5",
  69625. "uc_match": "1f3a5",
  69626. "uc_greedy": "1f3a5",
  69627. "shortnames": [],
  69628. "category": "objects"
  69629. },
  69630. ":moyai:": {
  69631. "uc_base": "1f5ff",
  69632. "uc_output": "1f5ff",
  69633. "uc_match": "1f5ff",
  69634. "uc_greedy": "1f5ff",
  69635. "shortnames": [],
  69636. "category": "travel"
  69637. },
  69638. ":mrs_claus:": {
  69639. "uc_base": "1f936",
  69640. "uc_output": "1f936",
  69641. "uc_match": "1f936",
  69642. "uc_greedy": "1f936",
  69643. "shortnames": [":mother_christmas:"],
  69644. "category": "people"
  69645. },
  69646. ":muscle:": {
  69647. "uc_base": "1f4aa",
  69648. "uc_output": "1f4aa",
  69649. "uc_match": "1f4aa",
  69650. "uc_greedy": "1f4aa",
  69651. "shortnames": [],
  69652. "category": "people"
  69653. },
  69654. ":mushroom:": {
  69655. "uc_base": "1f344",
  69656. "uc_output": "1f344",
  69657. "uc_match": "1f344",
  69658. "uc_greedy": "1f344",
  69659. "shortnames": [],
  69660. "category": "nature"
  69661. },
  69662. ":musical_keyboard:": {
  69663. "uc_base": "1f3b9",
  69664. "uc_output": "1f3b9",
  69665. "uc_match": "1f3b9",
  69666. "uc_greedy": "1f3b9",
  69667. "shortnames": [],
  69668. "category": "activity"
  69669. },
  69670. ":musical_note:": {
  69671. "uc_base": "1f3b5",
  69672. "uc_output": "1f3b5",
  69673. "uc_match": "1f3b5",
  69674. "uc_greedy": "1f3b5",
  69675. "shortnames": [],
  69676. "category": "symbols"
  69677. },
  69678. ":musical_score:": {
  69679. "uc_base": "1f3bc",
  69680. "uc_output": "1f3bc",
  69681. "uc_match": "1f3bc",
  69682. "uc_greedy": "1f3bc",
  69683. "shortnames": [],
  69684. "category": "activity"
  69685. },
  69686. ":mute:": {
  69687. "uc_base": "1f507",
  69688. "uc_output": "1f507",
  69689. "uc_match": "1f507",
  69690. "uc_greedy": "1f507",
  69691. "shortnames": [],
  69692. "category": "symbols"
  69693. },
  69694. ":nail_care:": {
  69695. "uc_base": "1f485",
  69696. "uc_output": "1f485",
  69697. "uc_match": "1f485",
  69698. "uc_greedy": "1f485",
  69699. "shortnames": [],
  69700. "category": "people"
  69701. },
  69702. ":name_badge:": {
  69703. "uc_base": "1f4db",
  69704. "uc_output": "1f4db",
  69705. "uc_match": "1f4db",
  69706. "uc_greedy": "1f4db",
  69707. "shortnames": [],
  69708. "category": "symbols"
  69709. },
  69710. ":nauseated_face:": {
  69711. "uc_base": "1f922",
  69712. "uc_output": "1f922",
  69713. "uc_match": "1f922",
  69714. "uc_greedy": "1f922",
  69715. "shortnames": [":sick:"],
  69716. "category": "people"
  69717. },
  69718. ":necktie:": {
  69719. "uc_base": "1f454",
  69720. "uc_output": "1f454",
  69721. "uc_match": "1f454",
  69722. "uc_greedy": "1f454",
  69723. "shortnames": [],
  69724. "category": "people"
  69725. },
  69726. ":nerd:": {
  69727. "uc_base": "1f913",
  69728. "uc_output": "1f913",
  69729. "uc_match": "1f913",
  69730. "uc_greedy": "1f913",
  69731. "shortnames": [":nerd_face:"],
  69732. "category": "people"
  69733. },
  69734. ":neutral_face:": {
  69735. "uc_base": "1f610",
  69736. "uc_output": "1f610",
  69737. "uc_match": "1f610-fe0f",
  69738. "uc_greedy": "1f610-fe0f",
  69739. "shortnames": [],
  69740. "category": "people"
  69741. },
  69742. ":new:": {
  69743. "uc_base": "1f195",
  69744. "uc_output": "1f195",
  69745. "uc_match": "1f195",
  69746. "uc_greedy": "1f195",
  69747. "shortnames": [],
  69748. "category": "symbols"
  69749. },
  69750. ":new_moon:": {
  69751. "uc_base": "1f311",
  69752. "uc_output": "1f311",
  69753. "uc_match": "1f311",
  69754. "uc_greedy": "1f311",
  69755. "shortnames": [],
  69756. "category": "nature"
  69757. },
  69758. ":new_moon_with_face:": {
  69759. "uc_base": "1f31a",
  69760. "uc_output": "1f31a",
  69761. "uc_match": "1f31a",
  69762. "uc_greedy": "1f31a",
  69763. "shortnames": [],
  69764. "category": "nature"
  69765. },
  69766. ":newspaper2:": {
  69767. "uc_base": "1f5de",
  69768. "uc_output": "1f5de",
  69769. "uc_match": "1f5de-fe0f",
  69770. "uc_greedy": "1f5de-fe0f",
  69771. "shortnames": [":rolled_up_newspaper:"],
  69772. "category": "objects"
  69773. },
  69774. ":newspaper:": {
  69775. "uc_base": "1f4f0",
  69776. "uc_output": "1f4f0",
  69777. "uc_match": "1f4f0",
  69778. "uc_greedy": "1f4f0",
  69779. "shortnames": [],
  69780. "category": "objects"
  69781. },
  69782. ":ng:": {
  69783. "uc_base": "1f196",
  69784. "uc_output": "1f196",
  69785. "uc_match": "1f196",
  69786. "uc_greedy": "1f196",
  69787. "shortnames": [],
  69788. "category": "symbols"
  69789. },
  69790. ":night_with_stars:": {
  69791. "uc_base": "1f303",
  69792. "uc_output": "1f303",
  69793. "uc_match": "1f303",
  69794. "uc_greedy": "1f303",
  69795. "shortnames": [],
  69796. "category": "travel"
  69797. },
  69798. ":no_bell:": {
  69799. "uc_base": "1f515",
  69800. "uc_output": "1f515",
  69801. "uc_match": "1f515",
  69802. "uc_greedy": "1f515",
  69803. "shortnames": [],
  69804. "category": "symbols"
  69805. },
  69806. ":no_bicycles:": {
  69807. "uc_base": "1f6b3",
  69808. "uc_output": "1f6b3",
  69809. "uc_match": "1f6b3",
  69810. "uc_greedy": "1f6b3",
  69811. "shortnames": [],
  69812. "category": "symbols"
  69813. },
  69814. ":no_entry_sign:": {
  69815. "uc_base": "1f6ab",
  69816. "uc_output": "1f6ab",
  69817. "uc_match": "1f6ab",
  69818. "uc_greedy": "1f6ab",
  69819. "shortnames": [],
  69820. "category": "symbols"
  69821. },
  69822. ":no_mobile_phones:": {
  69823. "uc_base": "1f4f5",
  69824. "uc_output": "1f4f5",
  69825. "uc_match": "1f4f5",
  69826. "uc_greedy": "1f4f5",
  69827. "shortnames": [],
  69828. "category": "symbols"
  69829. },
  69830. ":no_mouth:": {
  69831. "uc_base": "1f636",
  69832. "uc_output": "1f636",
  69833. "uc_match": "1f636",
  69834. "uc_greedy": "1f636",
  69835. "shortnames": [],
  69836. "category": "people"
  69837. },
  69838. ":no_pedestrians:": {
  69839. "uc_base": "1f6b7",
  69840. "uc_output": "1f6b7",
  69841. "uc_match": "1f6b7",
  69842. "uc_greedy": "1f6b7",
  69843. "shortnames": [],
  69844. "category": "symbols"
  69845. },
  69846. ":no_smoking:": {
  69847. "uc_base": "1f6ad",
  69848. "uc_output": "1f6ad",
  69849. "uc_match": "1f6ad-fe0f",
  69850. "uc_greedy": "1f6ad-fe0f",
  69851. "shortnames": [],
  69852. "category": "symbols"
  69853. },
  69854. ":non-potable_water:": {
  69855. "uc_base": "1f6b1",
  69856. "uc_output": "1f6b1",
  69857. "uc_match": "1f6b1",
  69858. "uc_greedy": "1f6b1",
  69859. "shortnames": [],
  69860. "category": "symbols"
  69861. },
  69862. ":nose:": {
  69863. "uc_base": "1f443",
  69864. "uc_output": "1f443",
  69865. "uc_match": "1f443",
  69866. "uc_greedy": "1f443",
  69867. "shortnames": [],
  69868. "category": "people"
  69869. },
  69870. ":notebook:": {
  69871. "uc_base": "1f4d3",
  69872. "uc_output": "1f4d3",
  69873. "uc_match": "1f4d3",
  69874. "uc_greedy": "1f4d3",
  69875. "shortnames": [],
  69876. "category": "objects"
  69877. },
  69878. ":notebook_with_decorative_cover:": {
  69879. "uc_base": "1f4d4",
  69880. "uc_output": "1f4d4",
  69881. "uc_match": "1f4d4",
  69882. "uc_greedy": "1f4d4",
  69883. "shortnames": [],
  69884. "category": "objects"
  69885. },
  69886. ":notepad_spiral:": {
  69887. "uc_base": "1f5d2",
  69888. "uc_output": "1f5d2",
  69889. "uc_match": "1f5d2-fe0f",
  69890. "uc_greedy": "1f5d2-fe0f",
  69891. "shortnames": [":spiral_note_pad:"],
  69892. "category": "objects"
  69893. },
  69894. ":notes:": {
  69895. "uc_base": "1f3b6",
  69896. "uc_output": "1f3b6",
  69897. "uc_match": "1f3b6",
  69898. "uc_greedy": "1f3b6",
  69899. "shortnames": [],
  69900. "category": "symbols"
  69901. },
  69902. ":nut_and_bolt:": {
  69903. "uc_base": "1f529",
  69904. "uc_output": "1f529",
  69905. "uc_match": "1f529",
  69906. "uc_greedy": "1f529",
  69907. "shortnames": [],
  69908. "category": "objects"
  69909. },
  69910. ":o2:": {
  69911. "uc_base": "1f17e",
  69912. "uc_output": "1f17e",
  69913. "uc_match": "1f17e-fe0f",
  69914. "uc_greedy": "1f17e-fe0f",
  69915. "shortnames": [],
  69916. "category": "symbols"
  69917. },
  69918. ":ocean:": {
  69919. "uc_base": "1f30a",
  69920. "uc_output": "1f30a",
  69921. "uc_match": "1f30a",
  69922. "uc_greedy": "1f30a",
  69923. "shortnames": [],
  69924. "category": "nature"
  69925. },
  69926. ":octagonal_sign:": {
  69927. "uc_base": "1f6d1",
  69928. "uc_output": "1f6d1",
  69929. "uc_match": "1f6d1",
  69930. "uc_greedy": "1f6d1",
  69931. "shortnames": [":stop_sign:"],
  69932. "category": "symbols"
  69933. },
  69934. ":octopus:": {
  69935. "uc_base": "1f419",
  69936. "uc_output": "1f419",
  69937. "uc_match": "1f419",
  69938. "uc_greedy": "1f419",
  69939. "shortnames": [],
  69940. "category": "nature"
  69941. },
  69942. ":oden:": {
  69943. "uc_base": "1f362",
  69944. "uc_output": "1f362",
  69945. "uc_match": "1f362",
  69946. "uc_greedy": "1f362",
  69947. "shortnames": [],
  69948. "category": "food"
  69949. },
  69950. ":office:": {
  69951. "uc_base": "1f3e2",
  69952. "uc_output": "1f3e2",
  69953. "uc_match": "1f3e2",
  69954. "uc_greedy": "1f3e2",
  69955. "shortnames": [],
  69956. "category": "travel"
  69957. },
  69958. ":oil:": {
  69959. "uc_base": "1f6e2",
  69960. "uc_output": "1f6e2",
  69961. "uc_match": "1f6e2-fe0f",
  69962. "uc_greedy": "1f6e2-fe0f",
  69963. "shortnames": [":oil_drum:"],
  69964. "category": "objects"
  69965. },
  69966. ":ok:": {
  69967. "uc_base": "1f197",
  69968. "uc_output": "1f197",
  69969. "uc_match": "1f197",
  69970. "uc_greedy": "1f197",
  69971. "shortnames": [],
  69972. "category": "symbols"
  69973. },
  69974. ":ok_hand:": {
  69975. "uc_base": "1f44c",
  69976. "uc_output": "1f44c",
  69977. "uc_match": "1f44c",
  69978. "uc_greedy": "1f44c",
  69979. "shortnames": [],
  69980. "category": "people"
  69981. },
  69982. ":older_adult:": {
  69983. "uc_base": "1f9d3",
  69984. "uc_output": "1f9d3",
  69985. "uc_match": "1f9d3",
  69986. "uc_greedy": "1f9d3",
  69987. "shortnames": [],
  69988. "category": "people"
  69989. },
  69990. ":older_man:": {
  69991. "uc_base": "1f474",
  69992. "uc_output": "1f474",
  69993. "uc_match": "1f474",
  69994. "uc_greedy": "1f474",
  69995. "shortnames": [],
  69996. "category": "people"
  69997. },
  69998. ":older_woman:": {
  69999. "uc_base": "1f475",
  70000. "uc_output": "1f475",
  70001. "uc_match": "1f475",
  70002. "uc_greedy": "1f475",
  70003. "shortnames": [":grandma:"],
  70004. "category": "people"
  70005. },
  70006. ":om_symbol:": {
  70007. "uc_base": "1f549",
  70008. "uc_output": "1f549",
  70009. "uc_match": "1f549-fe0f",
  70010. "uc_greedy": "1f549",
  70011. "shortnames": [],
  70012. "category": "symbols"
  70013. },
  70014. ":on:": {
  70015. "uc_base": "1f51b",
  70016. "uc_output": "1f51b",
  70017. "uc_match": "1f51b",
  70018. "uc_greedy": "1f51b",
  70019. "shortnames": [],
  70020. "category": "symbols"
  70021. },
  70022. ":oncoming_automobile:": {
  70023. "uc_base": "1f698",
  70024. "uc_output": "1f698",
  70025. "uc_match": "1f698-fe0f",
  70026. "uc_greedy": "1f698-fe0f",
  70027. "shortnames": [],
  70028. "category": "travel"
  70029. },
  70030. ":oncoming_bus:": {
  70031. "uc_base": "1f68d",
  70032. "uc_output": "1f68d",
  70033. "uc_match": "1f68d-fe0f",
  70034. "uc_greedy": "1f68d-fe0f",
  70035. "shortnames": [],
  70036. "category": "travel"
  70037. },
  70038. ":oncoming_police_car:": {
  70039. "uc_base": "1f694",
  70040. "uc_output": "1f694",
  70041. "uc_match": "1f694-fe0f",
  70042. "uc_greedy": "1f694-fe0f",
  70043. "shortnames": [],
  70044. "category": "travel"
  70045. },
  70046. ":oncoming_taxi:": {
  70047. "uc_base": "1f696",
  70048. "uc_output": "1f696",
  70049. "uc_match": "1f696",
  70050. "uc_greedy": "1f696",
  70051. "shortnames": [],
  70052. "category": "travel"
  70053. },
  70054. ":open_file_folder:": {
  70055. "uc_base": "1f4c2",
  70056. "uc_output": "1f4c2",
  70057. "uc_match": "1f4c2",
  70058. "uc_greedy": "1f4c2",
  70059. "shortnames": [],
  70060. "category": "objects"
  70061. },
  70062. ":open_hands:": {
  70063. "uc_base": "1f450",
  70064. "uc_output": "1f450",
  70065. "uc_match": "1f450",
  70066. "uc_greedy": "1f450",
  70067. "shortnames": [],
  70068. "category": "people"
  70069. },
  70070. ":open_mouth:": {
  70071. "uc_base": "1f62e",
  70072. "uc_output": "1f62e",
  70073. "uc_match": "1f62e",
  70074. "uc_greedy": "1f62e",
  70075. "shortnames": [],
  70076. "category": "people"
  70077. },
  70078. ":orange_book:": {
  70079. "uc_base": "1f4d9",
  70080. "uc_output": "1f4d9",
  70081. "uc_match": "1f4d9",
  70082. "uc_greedy": "1f4d9",
  70083. "shortnames": [],
  70084. "category": "objects"
  70085. },
  70086. ":orange_heart:": {
  70087. "uc_base": "1f9e1",
  70088. "uc_output": "1f9e1",
  70089. "uc_match": "1f9e1",
  70090. "uc_greedy": "1f9e1",
  70091. "shortnames": [],
  70092. "category": "symbols"
  70093. },
  70094. ":outbox_tray:": {
  70095. "uc_base": "1f4e4",
  70096. "uc_output": "1f4e4",
  70097. "uc_match": "1f4e4-fe0f",
  70098. "uc_greedy": "1f4e4-fe0f",
  70099. "shortnames": [],
  70100. "category": "objects"
  70101. },
  70102. ":owl:": {
  70103. "uc_base": "1f989",
  70104. "uc_output": "1f989",
  70105. "uc_match": "1f989",
  70106. "uc_greedy": "1f989",
  70107. "shortnames": [],
  70108. "category": "nature"
  70109. },
  70110. ":ox:": {
  70111. "uc_base": "1f402",
  70112. "uc_output": "1f402",
  70113. "uc_match": "1f402",
  70114. "uc_greedy": "1f402",
  70115. "shortnames": [],
  70116. "category": "nature"
  70117. },
  70118. ":package:": {
  70119. "uc_base": "1f4e6",
  70120. "uc_output": "1f4e6",
  70121. "uc_match": "1f4e6-fe0f",
  70122. "uc_greedy": "1f4e6-fe0f",
  70123. "shortnames": [],
  70124. "category": "objects"
  70125. },
  70126. ":page_facing_up:": {
  70127. "uc_base": "1f4c4",
  70128. "uc_output": "1f4c4",
  70129. "uc_match": "1f4c4",
  70130. "uc_greedy": "1f4c4",
  70131. "shortnames": [],
  70132. "category": "objects"
  70133. },
  70134. ":page_with_curl:": {
  70135. "uc_base": "1f4c3",
  70136. "uc_output": "1f4c3",
  70137. "uc_match": "1f4c3",
  70138. "uc_greedy": "1f4c3",
  70139. "shortnames": [],
  70140. "category": "objects"
  70141. },
  70142. ":pager:": {
  70143. "uc_base": "1f4df",
  70144. "uc_output": "1f4df",
  70145. "uc_match": "1f4df-fe0f",
  70146. "uc_greedy": "1f4df-fe0f",
  70147. "shortnames": [],
  70148. "category": "objects"
  70149. },
  70150. ":paintbrush:": {
  70151. "uc_base": "1f58c",
  70152. "uc_output": "1f58c",
  70153. "uc_match": "1f58c-fe0f",
  70154. "uc_greedy": "1f58c-fe0f",
  70155. "shortnames": [":lower_left_paintbrush:"],
  70156. "category": "objects"
  70157. },
  70158. ":palm_tree:": {
  70159. "uc_base": "1f334",
  70160. "uc_output": "1f334",
  70161. "uc_match": "1f334",
  70162. "uc_greedy": "1f334",
  70163. "shortnames": [],
  70164. "category": "nature"
  70165. },
  70166. ":palms_up_together:": {
  70167. "uc_base": "1f932",
  70168. "uc_output": "1f932",
  70169. "uc_match": "1f932",
  70170. "uc_greedy": "1f932",
  70171. "shortnames": [],
  70172. "category": "people"
  70173. },
  70174. ":pancakes:": {
  70175. "uc_base": "1f95e",
  70176. "uc_output": "1f95e",
  70177. "uc_match": "1f95e",
  70178. "uc_greedy": "1f95e",
  70179. "shortnames": [],
  70180. "category": "food"
  70181. },
  70182. ":panda_face:": {
  70183. "uc_base": "1f43c",
  70184. "uc_output": "1f43c",
  70185. "uc_match": "1f43c",
  70186. "uc_greedy": "1f43c",
  70187. "shortnames": [],
  70188. "category": "nature"
  70189. },
  70190. ":paperclip:": {
  70191. "uc_base": "1f4ce",
  70192. "uc_output": "1f4ce",
  70193. "uc_match": "1f4ce",
  70194. "uc_greedy": "1f4ce",
  70195. "shortnames": [],
  70196. "category": "objects"
  70197. },
  70198. ":paperclips:": {
  70199. "uc_base": "1f587",
  70200. "uc_output": "1f587",
  70201. "uc_match": "1f587-fe0f",
  70202. "uc_greedy": "1f587-fe0f",
  70203. "shortnames": [":linked_paperclips:"],
  70204. "category": "objects"
  70205. },
  70206. ":park:": {
  70207. "uc_base": "1f3de",
  70208. "uc_output": "1f3de",
  70209. "uc_match": "1f3de-fe0f",
  70210. "uc_greedy": "1f3de-fe0f",
  70211. "shortnames": [":national_park:"],
  70212. "category": "travel"
  70213. },
  70214. ":parking:": {
  70215. "uc_base": "1f17f",
  70216. "uc_output": "1f17f",
  70217. "uc_match": "1f17f-fe0f",
  70218. "uc_greedy": "1f17f-fe0f",
  70219. "shortnames": [],
  70220. "category": "symbols"
  70221. },
  70222. ":passport_control:": {
  70223. "uc_base": "1f6c2",
  70224. "uc_output": "1f6c2",
  70225. "uc_match": "1f6c2",
  70226. "uc_greedy": "1f6c2",
  70227. "shortnames": [],
  70228. "category": "symbols"
  70229. },
  70230. ":peach:": {
  70231. "uc_base": "1f351",
  70232. "uc_output": "1f351",
  70233. "uc_match": "1f351",
  70234. "uc_greedy": "1f351",
  70235. "shortnames": [],
  70236. "category": "food"
  70237. },
  70238. ":peanuts:": {
  70239. "uc_base": "1f95c",
  70240. "uc_output": "1f95c",
  70241. "uc_match": "1f95c",
  70242. "uc_greedy": "1f95c",
  70243. "shortnames": [":shelled_peanut:"],
  70244. "category": "food"
  70245. },
  70246. ":pear:": {
  70247. "uc_base": "1f350",
  70248. "uc_output": "1f350",
  70249. "uc_match": "1f350",
  70250. "uc_greedy": "1f350",
  70251. "shortnames": [],
  70252. "category": "food"
  70253. },
  70254. ":pen_ballpoint:": {
  70255. "uc_base": "1f58a",
  70256. "uc_output": "1f58a",
  70257. "uc_match": "1f58a-fe0f",
  70258. "uc_greedy": "1f58a-fe0f",
  70259. "shortnames": [":lower_left_ballpoint_pen:"],
  70260. "category": "objects"
  70261. },
  70262. ":pen_fountain:": {
  70263. "uc_base": "1f58b",
  70264. "uc_output": "1f58b",
  70265. "uc_match": "1f58b-fe0f",
  70266. "uc_greedy": "1f58b-fe0f",
  70267. "shortnames": [":lower_left_fountain_pen:"],
  70268. "category": "objects"
  70269. },
  70270. ":pencil:": {
  70271. "uc_base": "1f4dd",
  70272. "uc_output": "1f4dd",
  70273. "uc_match": "1f4dd",
  70274. "uc_greedy": "1f4dd",
  70275. "shortnames": [":memo:"],
  70276. "category": "objects"
  70277. },
  70278. ":penguin:": {
  70279. "uc_base": "1f427",
  70280. "uc_output": "1f427",
  70281. "uc_match": "1f427",
  70282. "uc_greedy": "1f427",
  70283. "shortnames": [],
  70284. "category": "nature"
  70285. },
  70286. ":pensive:": {
  70287. "uc_base": "1f614",
  70288. "uc_output": "1f614",
  70289. "uc_match": "1f614",
  70290. "uc_greedy": "1f614",
  70291. "shortnames": [],
  70292. "category": "people"
  70293. },
  70294. ":people_with_bunny_ears_partying:": {
  70295. "uc_base": "1f46f",
  70296. "uc_output": "1f46f",
  70297. "uc_match": "1f46f",
  70298. "uc_greedy": "1f46f",
  70299. "shortnames": [":dancers:"],
  70300. "category": "people"
  70301. },
  70302. ":people_wrestling:": {
  70303. "uc_base": "1f93c",
  70304. "uc_output": "1f93c",
  70305. "uc_match": "1f93c",
  70306. "uc_greedy": "1f93c",
  70307. "shortnames": [":wrestlers:", ":wrestling:"],
  70308. "category": "activity"
  70309. },
  70310. ":performing_arts:": {
  70311. "uc_base": "1f3ad",
  70312. "uc_output": "1f3ad",
  70313. "uc_match": "1f3ad-fe0f",
  70314. "uc_greedy": "1f3ad-fe0f",
  70315. "shortnames": [],
  70316. "category": "activity"
  70317. },
  70318. ":persevere:": {
  70319. "uc_base": "1f623",
  70320. "uc_output": "1f623",
  70321. "uc_match": "1f623",
  70322. "uc_greedy": "1f623",
  70323. "shortnames": [],
  70324. "category": "people"
  70325. },
  70326. ":person_biking:": {
  70327. "uc_base": "1f6b4",
  70328. "uc_output": "1f6b4",
  70329. "uc_match": "1f6b4",
  70330. "uc_greedy": "1f6b4",
  70331. "shortnames": [":bicyclist:"],
  70332. "category": "activity"
  70333. },
  70334. ":person_bowing:": {
  70335. "uc_base": "1f647",
  70336. "uc_output": "1f647",
  70337. "uc_match": "1f647",
  70338. "uc_greedy": "1f647",
  70339. "shortnames": [":bow:"],
  70340. "category": "people"
  70341. },
  70342. ":person_climbing:": {
  70343. "uc_base": "1f9d7",
  70344. "uc_output": "1f9d7",
  70345. "uc_match": "1f9d7",
  70346. "uc_greedy": "1f9d7",
  70347. "shortnames": [],
  70348. "category": "activity"
  70349. },
  70350. ":person_doing_cartwheel:": {
  70351. "uc_base": "1f938",
  70352. "uc_output": "1f938",
  70353. "uc_match": "1f938",
  70354. "uc_greedy": "1f938",
  70355. "shortnames": [":cartwheel:"],
  70356. "category": "activity"
  70357. },
  70358. ":person_facepalming:": {
  70359. "uc_base": "1f926",
  70360. "uc_output": "1f926",
  70361. "uc_match": "1f926",
  70362. "uc_greedy": "1f926",
  70363. "shortnames": [":face_palm:", ":facepalm:"],
  70364. "category": "people"
  70365. },
  70366. ":person_fencing:": {
  70367. "uc_base": "1f93a",
  70368. "uc_output": "1f93a",
  70369. "uc_match": "1f93a",
  70370. "uc_greedy": "1f93a",
  70371. "shortnames": [":fencer:", ":fencing:"],
  70372. "category": "activity"
  70373. },
  70374. ":person_frowning:": {
  70375. "uc_base": "1f64d",
  70376. "uc_output": "1f64d",
  70377. "uc_match": "1f64d",
  70378. "uc_greedy": "1f64d",
  70379. "shortnames": [],
  70380. "category": "people"
  70381. },
  70382. ":person_gesturing_no:": {
  70383. "uc_base": "1f645",
  70384. "uc_output": "1f645",
  70385. "uc_match": "1f645",
  70386. "uc_greedy": "1f645",
  70387. "shortnames": [":no_good:"],
  70388. "category": "people"
  70389. },
  70390. ":person_gesturing_ok:": {
  70391. "uc_base": "1f646",
  70392. "uc_output": "1f646",
  70393. "uc_match": "1f646",
  70394. "uc_greedy": "1f646",
  70395. "shortnames": [":ok_woman:"],
  70396. "category": "people"
  70397. },
  70398. ":person_getting_haircut:": {
  70399. "uc_base": "1f487",
  70400. "uc_output": "1f487",
  70401. "uc_match": "1f487",
  70402. "uc_greedy": "1f487",
  70403. "shortnames": [":haircut:"],
  70404. "category": "people"
  70405. },
  70406. ":person_getting_massage:": {
  70407. "uc_base": "1f486",
  70408. "uc_output": "1f486",
  70409. "uc_match": "1f486",
  70410. "uc_greedy": "1f486",
  70411. "shortnames": [":massage:"],
  70412. "category": "people"
  70413. },
  70414. ":person_golfing:": {
  70415. "uc_base": "1f3cc",
  70416. "uc_output": "1f3cc",
  70417. "uc_match": "1f3cc-fe0f",
  70418. "uc_greedy": "1f3cc-fe0f",
  70419. "shortnames": [":golfer:"],
  70420. "category": "activity"
  70421. },
  70422. ":person_in_lotus_position:": {
  70423. "uc_base": "1f9d8",
  70424. "uc_output": "1f9d8",
  70425. "uc_match": "1f9d8",
  70426. "uc_greedy": "1f9d8",
  70427. "shortnames": [],
  70428. "category": "activity"
  70429. },
  70430. ":person_in_steamy_room:": {
  70431. "uc_base": "1f9d6",
  70432. "uc_output": "1f9d6",
  70433. "uc_match": "1f9d6",
  70434. "uc_greedy": "1f9d6",
  70435. "shortnames": [],
  70436. "category": "people"
  70437. },
  70438. ":person_juggling:": {
  70439. "uc_base": "1f939",
  70440. "uc_output": "1f939",
  70441. "uc_match": "1f939",
  70442. "uc_greedy": "1f939",
  70443. "shortnames": [":juggling:", ":juggler:"],
  70444. "category": "activity"
  70445. },
  70446. ":person_lifting_weights:": {
  70447. "uc_base": "1f3cb",
  70448. "uc_output": "1f3cb",
  70449. "uc_match": "1f3cb-fe0f",
  70450. "uc_greedy": "1f3cb-fe0f",
  70451. "shortnames": [":lifter:", ":weight_lifter:"],
  70452. "category": "activity"
  70453. },
  70454. ":person_mountain_biking:": {
  70455. "uc_base": "1f6b5",
  70456. "uc_output": "1f6b5",
  70457. "uc_match": "1f6b5",
  70458. "uc_greedy": "1f6b5",
  70459. "shortnames": [":mountain_bicyclist:"],
  70460. "category": "activity"
  70461. },
  70462. ":person_playing_handball:": {
  70463. "uc_base": "1f93e",
  70464. "uc_output": "1f93e",
  70465. "uc_match": "1f93e",
  70466. "uc_greedy": "1f93e",
  70467. "shortnames": [":handball:"],
  70468. "category": "activity"
  70469. },
  70470. ":person_playing_water_polo:": {
  70471. "uc_base": "1f93d",
  70472. "uc_output": "1f93d",
  70473. "uc_match": "1f93d",
  70474. "uc_greedy": "1f93d",
  70475. "shortnames": [":water_polo:"],
  70476. "category": "activity"
  70477. },
  70478. ":person_pouting:": {
  70479. "uc_base": "1f64e",
  70480. "uc_output": "1f64e",
  70481. "uc_match": "1f64e",
  70482. "uc_greedy": "1f64e",
  70483. "shortnames": [":person_with_pouting_face:"],
  70484. "category": "people"
  70485. },
  70486. ":person_raising_hand:": {
  70487. "uc_base": "1f64b",
  70488. "uc_output": "1f64b",
  70489. "uc_match": "1f64b",
  70490. "uc_greedy": "1f64b",
  70491. "shortnames": [":raising_hand:"],
  70492. "category": "people"
  70493. },
  70494. ":person_rowing_boat:": {
  70495. "uc_base": "1f6a3",
  70496. "uc_output": "1f6a3",
  70497. "uc_match": "1f6a3",
  70498. "uc_greedy": "1f6a3",
  70499. "shortnames": [":rowboat:"],
  70500. "category": "activity"
  70501. },
  70502. ":person_running:": {
  70503. "uc_base": "1f3c3",
  70504. "uc_output": "1f3c3",
  70505. "uc_match": "1f3c3",
  70506. "uc_greedy": "1f3c3",
  70507. "shortnames": [":runner:"],
  70508. "category": "people"
  70509. },
  70510. ":person_shrugging:": {
  70511. "uc_base": "1f937",
  70512. "uc_output": "1f937",
  70513. "uc_match": "1f937",
  70514. "uc_greedy": "1f937",
  70515. "shortnames": [":shrug:"],
  70516. "category": "people"
  70517. },
  70518. ":person_surfing:": {
  70519. "uc_base": "1f3c4",
  70520. "uc_output": "1f3c4",
  70521. "uc_match": "1f3c4-fe0f",
  70522. "uc_greedy": "1f3c4-fe0f",
  70523. "shortnames": [":surfer:"],
  70524. "category": "activity"
  70525. },
  70526. ":person_swimming:": {
  70527. "uc_base": "1f3ca",
  70528. "uc_output": "1f3ca",
  70529. "uc_match": "1f3ca-fe0f",
  70530. "uc_greedy": "1f3ca-fe0f",
  70531. "shortnames": [":swimmer:"],
  70532. "category": "activity"
  70533. },
  70534. ":person_tipping_hand:": {
  70535. "uc_base": "1f481",
  70536. "uc_output": "1f481",
  70537. "uc_match": "1f481",
  70538. "uc_greedy": "1f481",
  70539. "shortnames": [":information_desk_person:"],
  70540. "category": "people"
  70541. },
  70542. ":person_walking:": {
  70543. "uc_base": "1f6b6",
  70544. "uc_output": "1f6b6",
  70545. "uc_match": "1f6b6",
  70546. "uc_greedy": "1f6b6",
  70547. "shortnames": [":walking:"],
  70548. "category": "people"
  70549. },
  70550. ":person_wearing_turban:": {
  70551. "uc_base": "1f473",
  70552. "uc_output": "1f473",
  70553. "uc_match": "1f473",
  70554. "uc_greedy": "1f473",
  70555. "shortnames": [":man_with_turban:"],
  70556. "category": "people"
  70557. },
  70558. ":pie:": {
  70559. "uc_base": "1f967",
  70560. "uc_output": "1f967",
  70561. "uc_match": "1f967",
  70562. "uc_greedy": "1f967",
  70563. "shortnames": [],
  70564. "category": "food"
  70565. },
  70566. ":pig2:": {
  70567. "uc_base": "1f416",
  70568. "uc_output": "1f416",
  70569. "uc_match": "1f416",
  70570. "uc_greedy": "1f416",
  70571. "shortnames": [],
  70572. "category": "nature"
  70573. },
  70574. ":pig:": {
  70575. "uc_base": "1f437",
  70576. "uc_output": "1f437",
  70577. "uc_match": "1f437",
  70578. "uc_greedy": "1f437",
  70579. "shortnames": [],
  70580. "category": "nature"
  70581. },
  70582. ":pig_nose:": {
  70583. "uc_base": "1f43d",
  70584. "uc_output": "1f43d",
  70585. "uc_match": "1f43d",
  70586. "uc_greedy": "1f43d",
  70587. "shortnames": [],
  70588. "category": "nature"
  70589. },
  70590. ":pill:": {
  70591. "uc_base": "1f48a",
  70592. "uc_output": "1f48a",
  70593. "uc_match": "1f48a",
  70594. "uc_greedy": "1f48a",
  70595. "shortnames": [],
  70596. "category": "objects"
  70597. },
  70598. ":pineapple:": {
  70599. "uc_base": "1f34d",
  70600. "uc_output": "1f34d",
  70601. "uc_match": "1f34d",
  70602. "uc_greedy": "1f34d",
  70603. "shortnames": [],
  70604. "category": "food"
  70605. },
  70606. ":ping_pong:": {
  70607. "uc_base": "1f3d3",
  70608. "uc_output": "1f3d3",
  70609. "uc_match": "1f3d3",
  70610. "uc_greedy": "1f3d3",
  70611. "shortnames": [":table_tennis:"],
  70612. "category": "activity"
  70613. },
  70614. ":pizza:": {
  70615. "uc_base": "1f355",
  70616. "uc_output": "1f355",
  70617. "uc_match": "1f355",
  70618. "uc_greedy": "1f355",
  70619. "shortnames": [],
  70620. "category": "food"
  70621. },
  70622. ":place_of_worship:": {
  70623. "uc_base": "1f6d0",
  70624. "uc_output": "1f6d0",
  70625. "uc_match": "1f6d0",
  70626. "uc_greedy": "1f6d0",
  70627. "shortnames": [":worship_symbol:"],
  70628. "category": "symbols"
  70629. },
  70630. ":point_down:": {
  70631. "uc_base": "1f447",
  70632. "uc_output": "1f447",
  70633. "uc_match": "1f447-fe0f",
  70634. "uc_greedy": "1f447-fe0f",
  70635. "shortnames": [],
  70636. "category": "people"
  70637. },
  70638. ":point_left:": {
  70639. "uc_base": "1f448",
  70640. "uc_output": "1f448",
  70641. "uc_match": "1f448-fe0f",
  70642. "uc_greedy": "1f448-fe0f",
  70643. "shortnames": [],
  70644. "category": "people"
  70645. },
  70646. ":point_right:": {
  70647. "uc_base": "1f449",
  70648. "uc_output": "1f449",
  70649. "uc_match": "1f449-fe0f",
  70650. "uc_greedy": "1f449-fe0f",
  70651. "shortnames": [],
  70652. "category": "people"
  70653. },
  70654. ":point_up_2:": {
  70655. "uc_base": "1f446",
  70656. "uc_output": "1f446",
  70657. "uc_match": "1f446-fe0f",
  70658. "uc_greedy": "1f446-fe0f",
  70659. "shortnames": [],
  70660. "category": "people"
  70661. },
  70662. ":police_car:": {
  70663. "uc_base": "1f693",
  70664. "uc_output": "1f693",
  70665. "uc_match": "1f693",
  70666. "uc_greedy": "1f693",
  70667. "shortnames": [],
  70668. "category": "travel"
  70669. },
  70670. ":police_officer:": {
  70671. "uc_base": "1f46e",
  70672. "uc_output": "1f46e",
  70673. "uc_match": "1f46e",
  70674. "uc_greedy": "1f46e",
  70675. "shortnames": [":cop:"],
  70676. "category": "people"
  70677. },
  70678. ":poodle:": {
  70679. "uc_base": "1f429",
  70680. "uc_output": "1f429",
  70681. "uc_match": "1f429",
  70682. "uc_greedy": "1f429",
  70683. "shortnames": [],
  70684. "category": "nature"
  70685. },
  70686. ":poop:": {
  70687. "uc_base": "1f4a9",
  70688. "uc_output": "1f4a9",
  70689. "uc_match": "1f4a9",
  70690. "uc_greedy": "1f4a9",
  70691. "shortnames": [":shit:", ":hankey:", ":poo:"],
  70692. "category": "people"
  70693. },
  70694. ":popcorn:": {
  70695. "uc_base": "1f37f",
  70696. "uc_output": "1f37f",
  70697. "uc_match": "1f37f",
  70698. "uc_greedy": "1f37f",
  70699. "shortnames": [],
  70700. "category": "food"
  70701. },
  70702. ":post_office:": {
  70703. "uc_base": "1f3e3",
  70704. "uc_output": "1f3e3",
  70705. "uc_match": "1f3e3",
  70706. "uc_greedy": "1f3e3",
  70707. "shortnames": [],
  70708. "category": "travel"
  70709. },
  70710. ":postal_horn:": {
  70711. "uc_base": "1f4ef",
  70712. "uc_output": "1f4ef",
  70713. "uc_match": "1f4ef",
  70714. "uc_greedy": "1f4ef",
  70715. "shortnames": [],
  70716. "category": "objects"
  70717. },
  70718. ":postbox:": {
  70719. "uc_base": "1f4ee",
  70720. "uc_output": "1f4ee",
  70721. "uc_match": "1f4ee",
  70722. "uc_greedy": "1f4ee",
  70723. "shortnames": [],
  70724. "category": "objects"
  70725. },
  70726. ":potable_water:": {
  70727. "uc_base": "1f6b0",
  70728. "uc_output": "1f6b0",
  70729. "uc_match": "1f6b0",
  70730. "uc_greedy": "1f6b0",
  70731. "shortnames": [],
  70732. "category": "objects"
  70733. },
  70734. ":potato:": {
  70735. "uc_base": "1f954",
  70736. "uc_output": "1f954",
  70737. "uc_match": "1f954",
  70738. "uc_greedy": "1f954",
  70739. "shortnames": [],
  70740. "category": "food"
  70741. },
  70742. ":pouch:": {
  70743. "uc_base": "1f45d",
  70744. "uc_output": "1f45d",
  70745. "uc_match": "1f45d",
  70746. "uc_greedy": "1f45d",
  70747. "shortnames": [],
  70748. "category": "people"
  70749. },
  70750. ":poultry_leg:": {
  70751. "uc_base": "1f357",
  70752. "uc_output": "1f357",
  70753. "uc_match": "1f357",
  70754. "uc_greedy": "1f357",
  70755. "shortnames": [],
  70756. "category": "food"
  70757. },
  70758. ":pound:": {
  70759. "uc_base": "1f4b7",
  70760. "uc_output": "1f4b7",
  70761. "uc_match": "1f4b7",
  70762. "uc_greedy": "1f4b7",
  70763. "shortnames": [],
  70764. "category": "objects"
  70765. },
  70766. ":pouting_cat:": {
  70767. "uc_base": "1f63e",
  70768. "uc_output": "1f63e",
  70769. "uc_match": "1f63e",
  70770. "uc_greedy": "1f63e",
  70771. "shortnames": [],
  70772. "category": "people"
  70773. },
  70774. ":pray:": {
  70775. "uc_base": "1f64f",
  70776. "uc_output": "1f64f",
  70777. "uc_match": "1f64f",
  70778. "uc_greedy": "1f64f",
  70779. "shortnames": [],
  70780. "category": "people"
  70781. },
  70782. ":prayer_beads:": {
  70783. "uc_base": "1f4ff",
  70784. "uc_output": "1f4ff",
  70785. "uc_match": "1f4ff",
  70786. "uc_greedy": "1f4ff",
  70787. "shortnames": [],
  70788. "category": "objects"
  70789. },
  70790. ":pregnant_woman:": {
  70791. "uc_base": "1f930",
  70792. "uc_output": "1f930",
  70793. "uc_match": "1f930",
  70794. "uc_greedy": "1f930",
  70795. "shortnames": [":expecting_woman:"],
  70796. "category": "people"
  70797. },
  70798. ":pretzel:": {
  70799. "uc_base": "1f968",
  70800. "uc_output": "1f968",
  70801. "uc_match": "1f968",
  70802. "uc_greedy": "1f968",
  70803. "shortnames": [],
  70804. "category": "food"
  70805. },
  70806. ":prince:": {
  70807. "uc_base": "1f934",
  70808. "uc_output": "1f934",
  70809. "uc_match": "1f934",
  70810. "uc_greedy": "1f934",
  70811. "shortnames": [],
  70812. "category": "people"
  70813. },
  70814. ":princess:": {
  70815. "uc_base": "1f478",
  70816. "uc_output": "1f478",
  70817. "uc_match": "1f478",
  70818. "uc_greedy": "1f478",
  70819. "shortnames": [],
  70820. "category": "people"
  70821. },
  70822. ":printer:": {
  70823. "uc_base": "1f5a8",
  70824. "uc_output": "1f5a8",
  70825. "uc_match": "1f5a8-fe0f",
  70826. "uc_greedy": "1f5a8-fe0f",
  70827. "shortnames": [],
  70828. "category": "objects"
  70829. },
  70830. ":projector:": {
  70831. "uc_base": "1f4fd",
  70832. "uc_output": "1f4fd",
  70833. "uc_match": "1f4fd-fe0f",
  70834. "uc_greedy": "1f4fd-fe0f",
  70835. "shortnames": [":film_projector:"],
  70836. "category": "objects"
  70837. },
  70838. ":punch:": {
  70839. "uc_base": "1f44a",
  70840. "uc_output": "1f44a",
  70841. "uc_match": "1f44a",
  70842. "uc_greedy": "1f44a",
  70843. "shortnames": [],
  70844. "category": "people"
  70845. },
  70846. ":purple_heart:": {
  70847. "uc_base": "1f49c",
  70848. "uc_output": "1f49c",
  70849. "uc_match": "1f49c",
  70850. "uc_greedy": "1f49c",
  70851. "shortnames": [],
  70852. "category": "symbols"
  70853. },
  70854. ":purse:": {
  70855. "uc_base": "1f45b",
  70856. "uc_output": "1f45b",
  70857. "uc_match": "1f45b",
  70858. "uc_greedy": "1f45b",
  70859. "shortnames": [],
  70860. "category": "people"
  70861. },
  70862. ":pushpin:": {
  70863. "uc_base": "1f4cc",
  70864. "uc_output": "1f4cc",
  70865. "uc_match": "1f4cc",
  70866. "uc_greedy": "1f4cc",
  70867. "shortnames": [],
  70868. "category": "objects"
  70869. },
  70870. ":put_litter_in_its_place:": {
  70871. "uc_base": "1f6ae",
  70872. "uc_output": "1f6ae",
  70873. "uc_match": "1f6ae",
  70874. "uc_greedy": "1f6ae",
  70875. "shortnames": [],
  70876. "category": "symbols"
  70877. },
  70878. ":rabbit2:": {
  70879. "uc_base": "1f407",
  70880. "uc_output": "1f407",
  70881. "uc_match": "1f407",
  70882. "uc_greedy": "1f407",
  70883. "shortnames": [],
  70884. "category": "nature"
  70885. },
  70886. ":rabbit:": {
  70887. "uc_base": "1f430",
  70888. "uc_output": "1f430",
  70889. "uc_match": "1f430",
  70890. "uc_greedy": "1f430",
  70891. "shortnames": [],
  70892. "category": "nature"
  70893. },
  70894. ":race_car:": {
  70895. "uc_base": "1f3ce",
  70896. "uc_output": "1f3ce",
  70897. "uc_match": "1f3ce-fe0f",
  70898. "uc_greedy": "1f3ce-fe0f",
  70899. "shortnames": [":racing_car:"],
  70900. "category": "travel"
  70901. },
  70902. ":racehorse:": {
  70903. "uc_base": "1f40e",
  70904. "uc_output": "1f40e",
  70905. "uc_match": "1f40e",
  70906. "uc_greedy": "1f40e",
  70907. "shortnames": [],
  70908. "category": "nature"
  70909. },
  70910. ":radio:": {
  70911. "uc_base": "1f4fb",
  70912. "uc_output": "1f4fb",
  70913. "uc_match": "1f4fb-fe0f",
  70914. "uc_greedy": "1f4fb-fe0f",
  70915. "shortnames": [],
  70916. "category": "objects"
  70917. },
  70918. ":radio_button:": {
  70919. "uc_base": "1f518",
  70920. "uc_output": "1f518",
  70921. "uc_match": "1f518",
  70922. "uc_greedy": "1f518",
  70923. "shortnames": [],
  70924. "category": "symbols"
  70925. },
  70926. ":rage:": {
  70927. "uc_base": "1f621",
  70928. "uc_output": "1f621",
  70929. "uc_match": "1f621",
  70930. "uc_greedy": "1f621",
  70931. "shortnames": [],
  70932. "category": "people"
  70933. },
  70934. ":railway_car:": {
  70935. "uc_base": "1f683",
  70936. "uc_output": "1f683",
  70937. "uc_match": "1f683",
  70938. "uc_greedy": "1f683",
  70939. "shortnames": [],
  70940. "category": "travel"
  70941. },
  70942. ":railway_track:": {
  70943. "uc_base": "1f6e4",
  70944. "uc_output": "1f6e4",
  70945. "uc_match": "1f6e4-fe0f",
  70946. "uc_greedy": "1f6e4-fe0f",
  70947. "shortnames": [":railroad_track:"],
  70948. "category": "travel"
  70949. },
  70950. ":rainbow:": {
  70951. "uc_base": "1f308",
  70952. "uc_output": "1f308",
  70953. "uc_match": "1f308",
  70954. "uc_greedy": "1f308",
  70955. "shortnames": [],
  70956. "category": "nature"
  70957. },
  70958. ":raised_back_of_hand:": {
  70959. "uc_base": "1f91a",
  70960. "uc_output": "1f91a",
  70961. "uc_match": "1f91a",
  70962. "uc_greedy": "1f91a",
  70963. "shortnames": [":back_of_hand:"],
  70964. "category": "people"
  70965. },
  70966. ":raised_hands:": {
  70967. "uc_base": "1f64c",
  70968. "uc_output": "1f64c",
  70969. "uc_match": "1f64c",
  70970. "uc_greedy": "1f64c",
  70971. "shortnames": [],
  70972. "category": "people"
  70973. },
  70974. ":ram:": {
  70975. "uc_base": "1f40f",
  70976. "uc_output": "1f40f",
  70977. "uc_match": "1f40f",
  70978. "uc_greedy": "1f40f",
  70979. "shortnames": [],
  70980. "category": "nature"
  70981. },
  70982. ":ramen:": {
  70983. "uc_base": "1f35c",
  70984. "uc_output": "1f35c",
  70985. "uc_match": "1f35c",
  70986. "uc_greedy": "1f35c",
  70987. "shortnames": [],
  70988. "category": "food"
  70989. },
  70990. ":rat:": {
  70991. "uc_base": "1f400",
  70992. "uc_output": "1f400",
  70993. "uc_match": "1f400",
  70994. "uc_greedy": "1f400",
  70995. "shortnames": [],
  70996. "category": "nature"
  70997. },
  70998. ":red_car:": {
  70999. "uc_base": "1f697",
  71000. "uc_output": "1f697",
  71001. "uc_match": "1f697",
  71002. "uc_greedy": "1f697",
  71003. "shortnames": [],
  71004. "category": "travel"
  71005. },
  71006. ":red_circle:": {
  71007. "uc_base": "1f534",
  71008. "uc_output": "1f534",
  71009. "uc_match": "1f534",
  71010. "uc_greedy": "1f534",
  71011. "shortnames": [],
  71012. "category": "symbols"
  71013. },
  71014. ":regional_indicator_a:": {
  71015. "uc_base": "1f1e6",
  71016. "uc_output": "1f1e6",
  71017. "uc_match": "1f1e6",
  71018. "uc_greedy": "1f1e6",
  71019. "shortnames": [],
  71020. "category": "regional"
  71021. },
  71022. ":regional_indicator_b:": {
  71023. "uc_base": "1f1e7",
  71024. "uc_output": "1f1e7",
  71025. "uc_match": "1f1e7",
  71026. "uc_greedy": "1f1e7",
  71027. "shortnames": [],
  71028. "category": "regional"
  71029. },
  71030. ":regional_indicator_c:": {
  71031. "uc_base": "1f1e8",
  71032. "uc_output": "1f1e8",
  71033. "uc_match": "1f1e8",
  71034. "uc_greedy": "1f1e8",
  71035. "shortnames": [],
  71036. "category": "regional"
  71037. },
  71038. ":regional_indicator_d:": {
  71039. "uc_base": "1f1e9",
  71040. "uc_output": "1f1e9",
  71041. "uc_match": "1f1e9",
  71042. "uc_greedy": "1f1e9",
  71043. "shortnames": [],
  71044. "category": "regional"
  71045. },
  71046. ":regional_indicator_e:": {
  71047. "uc_base": "1f1ea",
  71048. "uc_output": "1f1ea",
  71049. "uc_match": "1f1ea",
  71050. "uc_greedy": "1f1ea",
  71051. "shortnames": [],
  71052. "category": "regional"
  71053. },
  71054. ":regional_indicator_f:": {
  71055. "uc_base": "1f1eb",
  71056. "uc_output": "1f1eb",
  71057. "uc_match": "1f1eb",
  71058. "uc_greedy": "1f1eb",
  71059. "shortnames": [],
  71060. "category": "regional"
  71061. },
  71062. ":regional_indicator_g:": {
  71063. "uc_base": "1f1ec",
  71064. "uc_output": "1f1ec",
  71065. "uc_match": "1f1ec",
  71066. "uc_greedy": "1f1ec",
  71067. "shortnames": [],
  71068. "category": "regional"
  71069. },
  71070. ":regional_indicator_h:": {
  71071. "uc_base": "1f1ed",
  71072. "uc_output": "1f1ed",
  71073. "uc_match": "1f1ed",
  71074. "uc_greedy": "1f1ed",
  71075. "shortnames": [],
  71076. "category": "regional"
  71077. },
  71078. ":regional_indicator_i:": {
  71079. "uc_base": "1f1ee",
  71080. "uc_output": "1f1ee",
  71081. "uc_match": "1f1ee",
  71082. "uc_greedy": "1f1ee",
  71083. "shortnames": [],
  71084. "category": "regional"
  71085. },
  71086. ":regional_indicator_j:": {
  71087. "uc_base": "1f1ef",
  71088. "uc_output": "1f1ef",
  71089. "uc_match": "1f1ef",
  71090. "uc_greedy": "1f1ef",
  71091. "shortnames": [],
  71092. "category": "regional"
  71093. },
  71094. ":regional_indicator_k:": {
  71095. "uc_base": "1f1f0",
  71096. "uc_output": "1f1f0",
  71097. "uc_match": "1f1f0",
  71098. "uc_greedy": "1f1f0",
  71099. "shortnames": [],
  71100. "category": "regional"
  71101. },
  71102. ":regional_indicator_l:": {
  71103. "uc_base": "1f1f1",
  71104. "uc_output": "1f1f1",
  71105. "uc_match": "1f1f1",
  71106. "uc_greedy": "1f1f1",
  71107. "shortnames": [],
  71108. "category": "regional"
  71109. },
  71110. ":regional_indicator_m:": {
  71111. "uc_base": "1f1f2",
  71112. "uc_output": "1f1f2",
  71113. "uc_match": "1f1f2",
  71114. "uc_greedy": "1f1f2",
  71115. "shortnames": [],
  71116. "category": "regional"
  71117. },
  71118. ":regional_indicator_n:": {
  71119. "uc_base": "1f1f3",
  71120. "uc_output": "1f1f3",
  71121. "uc_match": "1f1f3",
  71122. "uc_greedy": "1f1f3",
  71123. "shortnames": [],
  71124. "category": "regional"
  71125. },
  71126. ":regional_indicator_o:": {
  71127. "uc_base": "1f1f4",
  71128. "uc_output": "1f1f4",
  71129. "uc_match": "1f1f4",
  71130. "uc_greedy": "1f1f4",
  71131. "shortnames": [],
  71132. "category": "regional"
  71133. },
  71134. ":regional_indicator_p:": {
  71135. "uc_base": "1f1f5",
  71136. "uc_output": "1f1f5",
  71137. "uc_match": "1f1f5",
  71138. "uc_greedy": "1f1f5",
  71139. "shortnames": [],
  71140. "category": "regional"
  71141. },
  71142. ":regional_indicator_q:": {
  71143. "uc_base": "1f1f6",
  71144. "uc_output": "1f1f6",
  71145. "uc_match": "1f1f6",
  71146. "uc_greedy": "1f1f6",
  71147. "shortnames": [],
  71148. "category": "regional"
  71149. },
  71150. ":regional_indicator_r:": {
  71151. "uc_base": "1f1f7",
  71152. "uc_output": "1f1f7",
  71153. "uc_match": "1f1f7",
  71154. "uc_greedy": "1f1f7",
  71155. "shortnames": [],
  71156. "category": "regional"
  71157. },
  71158. ":regional_indicator_s:": {
  71159. "uc_base": "1f1f8",
  71160. "uc_output": "1f1f8",
  71161. "uc_match": "1f1f8",
  71162. "uc_greedy": "1f1f8",
  71163. "shortnames": [],
  71164. "category": "regional"
  71165. },
  71166. ":regional_indicator_t:": {
  71167. "uc_base": "1f1f9",
  71168. "uc_output": "1f1f9",
  71169. "uc_match": "1f1f9",
  71170. "uc_greedy": "1f1f9",
  71171. "shortnames": [],
  71172. "category": "regional"
  71173. },
  71174. ":regional_indicator_u:": {
  71175. "uc_base": "1f1fa",
  71176. "uc_output": "1f1fa",
  71177. "uc_match": "1f1fa",
  71178. "uc_greedy": "1f1fa",
  71179. "shortnames": [],
  71180. "category": "regional"
  71181. },
  71182. ":regional_indicator_v:": {
  71183. "uc_base": "1f1fb",
  71184. "uc_output": "1f1fb",
  71185. "uc_match": "1f1fb",
  71186. "uc_greedy": "1f1fb",
  71187. "shortnames": [],
  71188. "category": "regional"
  71189. },
  71190. ":regional_indicator_w:": {
  71191. "uc_base": "1f1fc",
  71192. "uc_output": "1f1fc",
  71193. "uc_match": "1f1fc",
  71194. "uc_greedy": "1f1fc",
  71195. "shortnames": [],
  71196. "category": "regional"
  71197. },
  71198. ":regional_indicator_x:": {
  71199. "uc_base": "1f1fd",
  71200. "uc_output": "1f1fd",
  71201. "uc_match": "1f1fd",
  71202. "uc_greedy": "1f1fd",
  71203. "shortnames": [],
  71204. "category": "regional"
  71205. },
  71206. ":regional_indicator_y:": {
  71207. "uc_base": "1f1fe",
  71208. "uc_output": "1f1fe",
  71209. "uc_match": "1f1fe",
  71210. "uc_greedy": "1f1fe",
  71211. "shortnames": [],
  71212. "category": "regional"
  71213. },
  71214. ":regional_indicator_z:": {
  71215. "uc_base": "1f1ff",
  71216. "uc_output": "1f1ff",
  71217. "uc_match": "1f1ff",
  71218. "uc_greedy": "1f1ff",
  71219. "shortnames": [],
  71220. "category": "regional"
  71221. },
  71222. ":relieved:": {
  71223. "uc_base": "1f60c",
  71224. "uc_output": "1f60c",
  71225. "uc_match": "1f60c",
  71226. "uc_greedy": "1f60c",
  71227. "shortnames": [],
  71228. "category": "people"
  71229. },
  71230. ":reminder_ribbon:": {
  71231. "uc_base": "1f397",
  71232. "uc_output": "1f397",
  71233. "uc_match": "1f397-fe0f",
  71234. "uc_greedy": "1f397-fe0f",
  71235. "shortnames": [],
  71236. "category": "activity"
  71237. },
  71238. ":repeat:": {
  71239. "uc_base": "1f501",
  71240. "uc_output": "1f501",
  71241. "uc_match": "1f501",
  71242. "uc_greedy": "1f501",
  71243. "shortnames": [],
  71244. "category": "symbols"
  71245. },
  71246. ":repeat_one:": {
  71247. "uc_base": "1f502",
  71248. "uc_output": "1f502",
  71249. "uc_match": "1f502",
  71250. "uc_greedy": "1f502",
  71251. "shortnames": [],
  71252. "category": "symbols"
  71253. },
  71254. ":restroom:": {
  71255. "uc_base": "1f6bb",
  71256. "uc_output": "1f6bb",
  71257. "uc_match": "1f6bb",
  71258. "uc_greedy": "1f6bb",
  71259. "shortnames": [],
  71260. "category": "symbols"
  71261. },
  71262. ":revolving_hearts:": {
  71263. "uc_base": "1f49e",
  71264. "uc_output": "1f49e",
  71265. "uc_match": "1f49e",
  71266. "uc_greedy": "1f49e",
  71267. "shortnames": [],
  71268. "category": "symbols"
  71269. },
  71270. ":rhino:": {
  71271. "uc_base": "1f98f",
  71272. "uc_output": "1f98f",
  71273. "uc_match": "1f98f",
  71274. "uc_greedy": "1f98f",
  71275. "shortnames": [":rhinoceros:"],
  71276. "category": "nature"
  71277. },
  71278. ":ribbon:": {
  71279. "uc_base": "1f380",
  71280. "uc_output": "1f380",
  71281. "uc_match": "1f380",
  71282. "uc_greedy": "1f380",
  71283. "shortnames": [],
  71284. "category": "objects"
  71285. },
  71286. ":rice:": {
  71287. "uc_base": "1f35a",
  71288. "uc_output": "1f35a",
  71289. "uc_match": "1f35a",
  71290. "uc_greedy": "1f35a",
  71291. "shortnames": [],
  71292. "category": "food"
  71293. },
  71294. ":rice_ball:": {
  71295. "uc_base": "1f359",
  71296. "uc_output": "1f359",
  71297. "uc_match": "1f359",
  71298. "uc_greedy": "1f359",
  71299. "shortnames": [],
  71300. "category": "food"
  71301. },
  71302. ":rice_cracker:": {
  71303. "uc_base": "1f358",
  71304. "uc_output": "1f358",
  71305. "uc_match": "1f358",
  71306. "uc_greedy": "1f358",
  71307. "shortnames": [],
  71308. "category": "food"
  71309. },
  71310. ":rice_scene:": {
  71311. "uc_base": "1f391",
  71312. "uc_output": "1f391",
  71313. "uc_match": "1f391",
  71314. "uc_greedy": "1f391",
  71315. "shortnames": [],
  71316. "category": "travel"
  71317. },
  71318. ":right_facing_fist:": {
  71319. "uc_base": "1f91c",
  71320. "uc_output": "1f91c",
  71321. "uc_match": "1f91c",
  71322. "uc_greedy": "1f91c",
  71323. "shortnames": [":right_fist:"],
  71324. "category": "people"
  71325. },
  71326. ":ring:": {
  71327. "uc_base": "1f48d",
  71328. "uc_output": "1f48d",
  71329. "uc_match": "1f48d",
  71330. "uc_greedy": "1f48d",
  71331. "shortnames": [],
  71332. "category": "people"
  71333. },
  71334. ":robot:": {
  71335. "uc_base": "1f916",
  71336. "uc_output": "1f916",
  71337. "uc_match": "1f916",
  71338. "uc_greedy": "1f916",
  71339. "shortnames": [":robot_face:"],
  71340. "category": "people"
  71341. },
  71342. ":rocket:": {
  71343. "uc_base": "1f680",
  71344. "uc_output": "1f680",
  71345. "uc_match": "1f680",
  71346. "uc_greedy": "1f680",
  71347. "shortnames": [],
  71348. "category": "travel"
  71349. },
  71350. ":rofl:": {
  71351. "uc_base": "1f923",
  71352. "uc_output": "1f923",
  71353. "uc_match": "1f923",
  71354. "uc_greedy": "1f923",
  71355. "shortnames": [":rolling_on_the_floor_laughing:"],
  71356. "category": "people"
  71357. },
  71358. ":roller_coaster:": {
  71359. "uc_base": "1f3a2",
  71360. "uc_output": "1f3a2",
  71361. "uc_match": "1f3a2",
  71362. "uc_greedy": "1f3a2",
  71363. "shortnames": [],
  71364. "category": "travel"
  71365. },
  71366. ":rolling_eyes:": {
  71367. "uc_base": "1f644",
  71368. "uc_output": "1f644",
  71369. "uc_match": "1f644",
  71370. "uc_greedy": "1f644",
  71371. "shortnames": [":face_with_rolling_eyes:"],
  71372. "category": "people"
  71373. },
  71374. ":rooster:": {
  71375. "uc_base": "1f413",
  71376. "uc_output": "1f413",
  71377. "uc_match": "1f413",
  71378. "uc_greedy": "1f413",
  71379. "shortnames": [],
  71380. "category": "nature"
  71381. },
  71382. ":rose:": {
  71383. "uc_base": "1f339",
  71384. "uc_output": "1f339",
  71385. "uc_match": "1f339",
  71386. "uc_greedy": "1f339",
  71387. "shortnames": [],
  71388. "category": "nature"
  71389. },
  71390. ":rosette:": {
  71391. "uc_base": "1f3f5",
  71392. "uc_output": "1f3f5",
  71393. "uc_match": "1f3f5-fe0f",
  71394. "uc_greedy": "1f3f5-fe0f",
  71395. "shortnames": [],
  71396. "category": "activity"
  71397. },
  71398. ":rotating_light:": {
  71399. "uc_base": "1f6a8",
  71400. "uc_output": "1f6a8",
  71401. "uc_match": "1f6a8",
  71402. "uc_greedy": "1f6a8",
  71403. "shortnames": [],
  71404. "category": "travel"
  71405. },
  71406. ":round_pushpin:": {
  71407. "uc_base": "1f4cd",
  71408. "uc_output": "1f4cd",
  71409. "uc_match": "1f4cd",
  71410. "uc_greedy": "1f4cd",
  71411. "shortnames": [],
  71412. "category": "objects"
  71413. },
  71414. ":rugby_football:": {
  71415. "uc_base": "1f3c9",
  71416. "uc_output": "1f3c9",
  71417. "uc_match": "1f3c9",
  71418. "uc_greedy": "1f3c9",
  71419. "shortnames": [],
  71420. "category": "activity"
  71421. },
  71422. ":running_shirt_with_sash:": {
  71423. "uc_base": "1f3bd",
  71424. "uc_output": "1f3bd",
  71425. "uc_match": "1f3bd",
  71426. "uc_greedy": "1f3bd",
  71427. "shortnames": [],
  71428. "category": "activity"
  71429. },
  71430. ":sa:": {
  71431. "uc_base": "1f202",
  71432. "uc_output": "1f202",
  71433. "uc_match": "1f202-fe0f",
  71434. "uc_greedy": "1f202-fe0f",
  71435. "shortnames": [],
  71436. "category": "symbols"
  71437. },
  71438. ":sake:": {
  71439. "uc_base": "1f376",
  71440. "uc_output": "1f376",
  71441. "uc_match": "1f376",
  71442. "uc_greedy": "1f376",
  71443. "shortnames": [],
  71444. "category": "food"
  71445. },
  71446. ":salad:": {
  71447. "uc_base": "1f957",
  71448. "uc_output": "1f957",
  71449. "uc_match": "1f957",
  71450. "uc_greedy": "1f957",
  71451. "shortnames": [":green_salad:"],
  71452. "category": "food"
  71453. },
  71454. ":sandal:": {
  71455. "uc_base": "1f461",
  71456. "uc_output": "1f461",
  71457. "uc_match": "1f461",
  71458. "uc_greedy": "1f461",
  71459. "shortnames": [],
  71460. "category": "people"
  71461. },
  71462. ":sandwich:": {
  71463. "uc_base": "1f96a",
  71464. "uc_output": "1f96a",
  71465. "uc_match": "1f96a",
  71466. "uc_greedy": "1f96a",
  71467. "shortnames": [],
  71468. "category": "food"
  71469. },
  71470. ":santa:": {
  71471. "uc_base": "1f385",
  71472. "uc_output": "1f385",
  71473. "uc_match": "1f385",
  71474. "uc_greedy": "1f385",
  71475. "shortnames": [],
  71476. "category": "people"
  71477. },
  71478. ":satellite:": {
  71479. "uc_base": "1f4e1",
  71480. "uc_output": "1f4e1",
  71481. "uc_match": "1f4e1",
  71482. "uc_greedy": "1f4e1",
  71483. "shortnames": [],
  71484. "category": "objects"
  71485. },
  71486. ":satellite_orbital:": {
  71487. "uc_base": "1f6f0",
  71488. "uc_output": "1f6f0",
  71489. "uc_match": "1f6f0-fe0f",
  71490. "uc_greedy": "1f6f0-fe0f",
  71491. "shortnames": [],
  71492. "category": "travel"
  71493. },
  71494. ":sauropod:": {
  71495. "uc_base": "1f995",
  71496. "uc_output": "1f995",
  71497. "uc_match": "1f995",
  71498. "uc_greedy": "1f995",
  71499. "shortnames": [],
  71500. "category": "nature"
  71501. },
  71502. ":saxophone:": {
  71503. "uc_base": "1f3b7",
  71504. "uc_output": "1f3b7",
  71505. "uc_match": "1f3b7",
  71506. "uc_greedy": "1f3b7",
  71507. "shortnames": [],
  71508. "category": "activity"
  71509. },
  71510. ":scarf:": {
  71511. "uc_base": "1f9e3",
  71512. "uc_output": "1f9e3",
  71513. "uc_match": "1f9e3",
  71514. "uc_greedy": "1f9e3",
  71515. "shortnames": [],
  71516. "category": "people"
  71517. },
  71518. ":school:": {
  71519. "uc_base": "1f3eb",
  71520. "uc_output": "1f3eb",
  71521. "uc_match": "1f3eb",
  71522. "uc_greedy": "1f3eb",
  71523. "shortnames": [],
  71524. "category": "travel"
  71525. },
  71526. ":school_satchel:": {
  71527. "uc_base": "1f392",
  71528. "uc_output": "1f392",
  71529. "uc_match": "1f392",
  71530. "uc_greedy": "1f392",
  71531. "shortnames": [],
  71532. "category": "people"
  71533. },
  71534. ":scooter:": {
  71535. "uc_base": "1f6f4",
  71536. "uc_output": "1f6f4",
  71537. "uc_match": "1f6f4",
  71538. "uc_greedy": "1f6f4",
  71539. "shortnames": [],
  71540. "category": "travel"
  71541. },
  71542. ":scorpion:": {
  71543. "uc_base": "1f982",
  71544. "uc_output": "1f982",
  71545. "uc_match": "1f982",
  71546. "uc_greedy": "1f982",
  71547. "shortnames": [],
  71548. "category": "nature"
  71549. },
  71550. ":scream:": {
  71551. "uc_base": "1f631",
  71552. "uc_output": "1f631",
  71553. "uc_match": "1f631",
  71554. "uc_greedy": "1f631",
  71555. "shortnames": [],
  71556. "category": "people"
  71557. },
  71558. ":scream_cat:": {
  71559. "uc_base": "1f640",
  71560. "uc_output": "1f640",
  71561. "uc_match": "1f640",
  71562. "uc_greedy": "1f640",
  71563. "shortnames": [],
  71564. "category": "people"
  71565. },
  71566. ":scroll:": {
  71567. "uc_base": "1f4dc",
  71568. "uc_output": "1f4dc",
  71569. "uc_match": "1f4dc",
  71570. "uc_greedy": "1f4dc",
  71571. "shortnames": [],
  71572. "category": "objects"
  71573. },
  71574. ":seat:": {
  71575. "uc_base": "1f4ba",
  71576. "uc_output": "1f4ba",
  71577. "uc_match": "1f4ba",
  71578. "uc_greedy": "1f4ba",
  71579. "shortnames": [],
  71580. "category": "travel"
  71581. },
  71582. ":second_place:": {
  71583. "uc_base": "1f948",
  71584. "uc_output": "1f948",
  71585. "uc_match": "1f948",
  71586. "uc_greedy": "1f948",
  71587. "shortnames": [":second_place_medal:"],
  71588. "category": "activity"
  71589. },
  71590. ":see_no_evil:": {
  71591. "uc_base": "1f648",
  71592. "uc_output": "1f648",
  71593. "uc_match": "1f648",
  71594. "uc_greedy": "1f648",
  71595. "shortnames": [],
  71596. "category": "nature"
  71597. },
  71598. ":seedling:": {
  71599. "uc_base": "1f331",
  71600. "uc_output": "1f331",
  71601. "uc_match": "1f331",
  71602. "uc_greedy": "1f331",
  71603. "shortnames": [],
  71604. "category": "nature"
  71605. },
  71606. ":selfie:": {
  71607. "uc_base": "1f933",
  71608. "uc_output": "1f933",
  71609. "uc_match": "1f933",
  71610. "uc_greedy": "1f933",
  71611. "shortnames": [],
  71612. "category": "people"
  71613. },
  71614. ":shallow_pan_of_food:": {
  71615. "uc_base": "1f958",
  71616. "uc_output": "1f958",
  71617. "uc_match": "1f958",
  71618. "uc_greedy": "1f958",
  71619. "shortnames": [":paella:"],
  71620. "category": "food"
  71621. },
  71622. ":shark:": {
  71623. "uc_base": "1f988",
  71624. "uc_output": "1f988",
  71625. "uc_match": "1f988",
  71626. "uc_greedy": "1f988",
  71627. "shortnames": [],
  71628. "category": "nature"
  71629. },
  71630. ":shaved_ice:": {
  71631. "uc_base": "1f367",
  71632. "uc_output": "1f367",
  71633. "uc_match": "1f367",
  71634. "uc_greedy": "1f367",
  71635. "shortnames": [],
  71636. "category": "food"
  71637. },
  71638. ":sheep:": {
  71639. "uc_base": "1f411",
  71640. "uc_output": "1f411",
  71641. "uc_match": "1f411",
  71642. "uc_greedy": "1f411",
  71643. "shortnames": [],
  71644. "category": "nature"
  71645. },
  71646. ":shell:": {
  71647. "uc_base": "1f41a",
  71648. "uc_output": "1f41a",
  71649. "uc_match": "1f41a",
  71650. "uc_greedy": "1f41a",
  71651. "shortnames": [],
  71652. "category": "nature"
  71653. },
  71654. ":shield:": {
  71655. "uc_base": "1f6e1",
  71656. "uc_output": "1f6e1",
  71657. "uc_match": "1f6e1-fe0f",
  71658. "uc_greedy": "1f6e1-fe0f",
  71659. "shortnames": [],
  71660. "category": "objects"
  71661. },
  71662. ":ship:": {
  71663. "uc_base": "1f6a2",
  71664. "uc_output": "1f6a2",
  71665. "uc_match": "1f6a2",
  71666. "uc_greedy": "1f6a2",
  71667. "shortnames": [],
  71668. "category": "travel"
  71669. },
  71670. ":shirt:": {
  71671. "uc_base": "1f455",
  71672. "uc_output": "1f455",
  71673. "uc_match": "1f455",
  71674. "uc_greedy": "1f455",
  71675. "shortnames": [],
  71676. "category": "people"
  71677. },
  71678. ":shopping_bags:": {
  71679. "uc_base": "1f6cd",
  71680. "uc_output": "1f6cd",
  71681. "uc_match": "1f6cd-fe0f",
  71682. "uc_greedy": "1f6cd-fe0f",
  71683. "shortnames": [],
  71684. "category": "objects"
  71685. },
  71686. ":shopping_cart:": {
  71687. "uc_base": "1f6d2",
  71688. "uc_output": "1f6d2",
  71689. "uc_match": "1f6d2",
  71690. "uc_greedy": "1f6d2",
  71691. "shortnames": [":shopping_trolley:"],
  71692. "category": "objects"
  71693. },
  71694. ":shower:": {
  71695. "uc_base": "1f6bf",
  71696. "uc_output": "1f6bf",
  71697. "uc_match": "1f6bf",
  71698. "uc_greedy": "1f6bf",
  71699. "shortnames": [],
  71700. "category": "objects"
  71701. },
  71702. ":shrimp:": {
  71703. "uc_base": "1f990",
  71704. "uc_output": "1f990",
  71705. "uc_match": "1f990",
  71706. "uc_greedy": "1f990",
  71707. "shortnames": [],
  71708. "category": "nature"
  71709. },
  71710. ":shushing_face:": {
  71711. "uc_base": "1f92b",
  71712. "uc_output": "1f92b",
  71713. "uc_match": "1f92b",
  71714. "uc_greedy": "1f92b",
  71715. "shortnames": [],
  71716. "category": "people"
  71717. },
  71718. ":signal_strength:": {
  71719. "uc_base": "1f4f6",
  71720. "uc_output": "1f4f6",
  71721. "uc_match": "1f4f6",
  71722. "uc_greedy": "1f4f6",
  71723. "shortnames": [],
  71724. "category": "symbols"
  71725. },
  71726. ":six_pointed_star:": {
  71727. "uc_base": "1f52f",
  71728. "uc_output": "1f52f",
  71729. "uc_match": "1f52f",
  71730. "uc_greedy": "1f52f",
  71731. "shortnames": [],
  71732. "category": "symbols"
  71733. },
  71734. ":ski:": {
  71735. "uc_base": "1f3bf",
  71736. "uc_output": "1f3bf",
  71737. "uc_match": "1f3bf",
  71738. "uc_greedy": "1f3bf",
  71739. "shortnames": [],
  71740. "category": "activity"
  71741. },
  71742. ":skull:": {
  71743. "uc_base": "1f480",
  71744. "uc_output": "1f480",
  71745. "uc_match": "1f480",
  71746. "uc_greedy": "1f480",
  71747. "shortnames": [":skeleton:"],
  71748. "category": "people"
  71749. },
  71750. ":sled:": {
  71751. "uc_base": "1f6f7",
  71752. "uc_output": "1f6f7",
  71753. "uc_match": "1f6f7",
  71754. "uc_greedy": "1f6f7",
  71755. "shortnames": [],
  71756. "category": "activity"
  71757. },
  71758. ":sleeping:": {
  71759. "uc_base": "1f634",
  71760. "uc_output": "1f634",
  71761. "uc_match": "1f634",
  71762. "uc_greedy": "1f634",
  71763. "shortnames": [],
  71764. "category": "people"
  71765. },
  71766. ":sleeping_accommodation:": {
  71767. "uc_base": "1f6cc",
  71768. "uc_output": "1f6cc",
  71769. "uc_match": "1f6cc",
  71770. "uc_greedy": "1f6cc",
  71771. "shortnames": [],
  71772. "category": "objects"
  71773. },
  71774. ":sleepy:": {
  71775. "uc_base": "1f62a",
  71776. "uc_output": "1f62a",
  71777. "uc_match": "1f62a",
  71778. "uc_greedy": "1f62a",
  71779. "shortnames": [],
  71780. "category": "people"
  71781. },
  71782. ":slight_frown:": {
  71783. "uc_base": "1f641",
  71784. "uc_output": "1f641",
  71785. "uc_match": "1f641",
  71786. "uc_greedy": "1f641",
  71787. "shortnames": [":slightly_frowning_face:"],
  71788. "category": "people"
  71789. },
  71790. ":slight_smile:": {
  71791. "uc_base": "1f642",
  71792. "uc_output": "1f642",
  71793. "uc_match": "1f642",
  71794. "uc_greedy": "1f642",
  71795. "shortnames": [":slightly_smiling_face:"],
  71796. "category": "people"
  71797. },
  71798. ":slot_machine:": {
  71799. "uc_base": "1f3b0",
  71800. "uc_output": "1f3b0",
  71801. "uc_match": "1f3b0",
  71802. "uc_greedy": "1f3b0",
  71803. "shortnames": [],
  71804. "category": "activity"
  71805. },
  71806. ":small_blue_diamond:": {
  71807. "uc_base": "1f539",
  71808. "uc_output": "1f539",
  71809. "uc_match": "1f539",
  71810. "uc_greedy": "1f539",
  71811. "shortnames": [],
  71812. "category": "symbols"
  71813. },
  71814. ":small_orange_diamond:": {
  71815. "uc_base": "1f538",
  71816. "uc_output": "1f538",
  71817. "uc_match": "1f538",
  71818. "uc_greedy": "1f538",
  71819. "shortnames": [],
  71820. "category": "symbols"
  71821. },
  71822. ":small_red_triangle:": {
  71823. "uc_base": "1f53a",
  71824. "uc_output": "1f53a",
  71825. "uc_match": "1f53a",
  71826. "uc_greedy": "1f53a",
  71827. "shortnames": [],
  71828. "category": "symbols"
  71829. },
  71830. ":small_red_triangle_down:": {
  71831. "uc_base": "1f53b",
  71832. "uc_output": "1f53b",
  71833. "uc_match": "1f53b",
  71834. "uc_greedy": "1f53b",
  71835. "shortnames": [],
  71836. "category": "symbols"
  71837. },
  71838. ":smile:": {
  71839. "uc_base": "1f604",
  71840. "uc_output": "1f604",
  71841. "uc_match": "1f604",
  71842. "uc_greedy": "1f604",
  71843. "shortnames": [],
  71844. "category": "people"
  71845. },
  71846. ":smile_cat:": {
  71847. "uc_base": "1f638",
  71848. "uc_output": "1f638",
  71849. "uc_match": "1f638",
  71850. "uc_greedy": "1f638",
  71851. "shortnames": [],
  71852. "category": "people"
  71853. },
  71854. ":smiley:": {
  71855. "uc_base": "1f603",
  71856. "uc_output": "1f603",
  71857. "uc_match": "1f603",
  71858. "uc_greedy": "1f603",
  71859. "shortnames": [],
  71860. "category": "people"
  71861. },
  71862. ":smiley_cat:": {
  71863. "uc_base": "1f63a",
  71864. "uc_output": "1f63a",
  71865. "uc_match": "1f63a",
  71866. "uc_greedy": "1f63a",
  71867. "shortnames": [],
  71868. "category": "people"
  71869. },
  71870. ":smiling_imp:": {
  71871. "uc_base": "1f608",
  71872. "uc_output": "1f608",
  71873. "uc_match": "1f608",
  71874. "uc_greedy": "1f608",
  71875. "shortnames": [],
  71876. "category": "people"
  71877. },
  71878. ":smirk:": {
  71879. "uc_base": "1f60f",
  71880. "uc_output": "1f60f",
  71881. "uc_match": "1f60f",
  71882. "uc_greedy": "1f60f",
  71883. "shortnames": [],
  71884. "category": "people"
  71885. },
  71886. ":smirk_cat:": {
  71887. "uc_base": "1f63c",
  71888. "uc_output": "1f63c",
  71889. "uc_match": "1f63c",
  71890. "uc_greedy": "1f63c",
  71891. "shortnames": [],
  71892. "category": "people"
  71893. },
  71894. ":smoking:": {
  71895. "uc_base": "1f6ac",
  71896. "uc_output": "1f6ac",
  71897. "uc_match": "1f6ac",
  71898. "uc_greedy": "1f6ac",
  71899. "shortnames": [],
  71900. "category": "objects"
  71901. },
  71902. ":snail:": {
  71903. "uc_base": "1f40c",
  71904. "uc_output": "1f40c",
  71905. "uc_match": "1f40c",
  71906. "uc_greedy": "1f40c",
  71907. "shortnames": [],
  71908. "category": "nature"
  71909. },
  71910. ":snake:": {
  71911. "uc_base": "1f40d",
  71912. "uc_output": "1f40d",
  71913. "uc_match": "1f40d",
  71914. "uc_greedy": "1f40d",
  71915. "shortnames": [],
  71916. "category": "nature"
  71917. },
  71918. ":sneezing_face:": {
  71919. "uc_base": "1f927",
  71920. "uc_output": "1f927",
  71921. "uc_match": "1f927",
  71922. "uc_greedy": "1f927",
  71923. "shortnames": [":sneeze:"],
  71924. "category": "people"
  71925. },
  71926. ":snowboarder:": {
  71927. "uc_base": "1f3c2",
  71928. "uc_output": "1f3c2",
  71929. "uc_match": "1f3c2-fe0f",
  71930. "uc_greedy": "1f3c2-fe0f",
  71931. "shortnames": [],
  71932. "category": "activity"
  71933. },
  71934. ":sob:": {
  71935. "uc_base": "1f62d",
  71936. "uc_output": "1f62d",
  71937. "uc_match": "1f62d",
  71938. "uc_greedy": "1f62d",
  71939. "shortnames": [],
  71940. "category": "people"
  71941. },
  71942. ":socks:": {
  71943. "uc_base": "1f9e6",
  71944. "uc_output": "1f9e6",
  71945. "uc_match": "1f9e6",
  71946. "uc_greedy": "1f9e6",
  71947. "shortnames": [],
  71948. "category": "people"
  71949. },
  71950. ":soon:": {
  71951. "uc_base": "1f51c",
  71952. "uc_output": "1f51c",
  71953. "uc_match": "1f51c",
  71954. "uc_greedy": "1f51c",
  71955. "shortnames": [],
  71956. "category": "symbols"
  71957. },
  71958. ":sos:": {
  71959. "uc_base": "1f198",
  71960. "uc_output": "1f198",
  71961. "uc_match": "1f198",
  71962. "uc_greedy": "1f198",
  71963. "shortnames": [],
  71964. "category": "symbols"
  71965. },
  71966. ":sound:": {
  71967. "uc_base": "1f509",
  71968. "uc_output": "1f509",
  71969. "uc_match": "1f509",
  71970. "uc_greedy": "1f509",
  71971. "shortnames": [],
  71972. "category": "symbols"
  71973. },
  71974. ":space_invader:": {
  71975. "uc_base": "1f47e",
  71976. "uc_output": "1f47e",
  71977. "uc_match": "1f47e",
  71978. "uc_greedy": "1f47e",
  71979. "shortnames": [],
  71980. "category": "people"
  71981. },
  71982. ":spaghetti:": {
  71983. "uc_base": "1f35d",
  71984. "uc_output": "1f35d",
  71985. "uc_match": "1f35d",
  71986. "uc_greedy": "1f35d",
  71987. "shortnames": [],
  71988. "category": "food"
  71989. },
  71990. ":sparkler:": {
  71991. "uc_base": "1f387",
  71992. "uc_output": "1f387",
  71993. "uc_match": "1f387",
  71994. "uc_greedy": "1f387",
  71995. "shortnames": [],
  71996. "category": "travel"
  71997. },
  71998. ":sparkling_heart:": {
  71999. "uc_base": "1f496",
  72000. "uc_output": "1f496",
  72001. "uc_match": "1f496",
  72002. "uc_greedy": "1f496",
  72003. "shortnames": [],
  72004. "category": "symbols"
  72005. },
  72006. ":speak_no_evil:": {
  72007. "uc_base": "1f64a",
  72008. "uc_output": "1f64a",
  72009. "uc_match": "1f64a",
  72010. "uc_greedy": "1f64a",
  72011. "shortnames": [],
  72012. "category": "nature"
  72013. },
  72014. ":speaker:": {
  72015. "uc_base": "1f508",
  72016. "uc_output": "1f508",
  72017. "uc_match": "1f508-fe0f",
  72018. "uc_greedy": "1f508-fe0f",
  72019. "shortnames": [],
  72020. "category": "symbols"
  72021. },
  72022. ":speaking_head:": {
  72023. "uc_base": "1f5e3",
  72024. "uc_output": "1f5e3",
  72025. "uc_match": "1f5e3-fe0f",
  72026. "uc_greedy": "1f5e3-fe0f",
  72027. "shortnames": [":speaking_head_in_silhouette:"],
  72028. "category": "people"
  72029. },
  72030. ":speech_balloon:": {
  72031. "uc_base": "1f4ac",
  72032. "uc_output": "1f4ac",
  72033. "uc_match": "1f4ac",
  72034. "uc_greedy": "1f4ac",
  72035. "shortnames": [],
  72036. "category": "symbols"
  72037. },
  72038. ":speech_left:": {
  72039. "uc_base": "1f5e8",
  72040. "uc_output": "1f5e8",
  72041. "uc_match": "1f5e8-fe0f",
  72042. "uc_greedy": "1f5e8-fe0f",
  72043. "shortnames": [":left_speech_bubble:"],
  72044. "category": "symbols"
  72045. },
  72046. ":speedboat:": {
  72047. "uc_base": "1f6a4",
  72048. "uc_output": "1f6a4",
  72049. "uc_match": "1f6a4",
  72050. "uc_greedy": "1f6a4",
  72051. "shortnames": [],
  72052. "category": "travel"
  72053. },
  72054. ":spider:": {
  72055. "uc_base": "1f577",
  72056. "uc_output": "1f577",
  72057. "uc_match": "1f577-fe0f",
  72058. "uc_greedy": "1f577-fe0f",
  72059. "shortnames": [],
  72060. "category": "nature"
  72061. },
  72062. ":spider_web:": {
  72063. "uc_base": "1f578",
  72064. "uc_output": "1f578",
  72065. "uc_match": "1f578-fe0f",
  72066. "uc_greedy": "1f578-fe0f",
  72067. "shortnames": [],
  72068. "category": "nature"
  72069. },
  72070. ":spoon:": {
  72071. "uc_base": "1f944",
  72072. "uc_output": "1f944",
  72073. "uc_match": "1f944",
  72074. "uc_greedy": "1f944",
  72075. "shortnames": [],
  72076. "category": "food"
  72077. },
  72078. ":squid:": {
  72079. "uc_base": "1f991",
  72080. "uc_output": "1f991",
  72081. "uc_match": "1f991",
  72082. "uc_greedy": "1f991",
  72083. "shortnames": [],
  72084. "category": "nature"
  72085. },
  72086. ":stadium:": {
  72087. "uc_base": "1f3df",
  72088. "uc_output": "1f3df",
  72089. "uc_match": "1f3df-fe0f",
  72090. "uc_greedy": "1f3df-fe0f",
  72091. "shortnames": [],
  72092. "category": "travel"
  72093. },
  72094. ":star2:": {
  72095. "uc_base": "1f31f",
  72096. "uc_output": "1f31f",
  72097. "uc_match": "1f31f",
  72098. "uc_greedy": "1f31f",
  72099. "shortnames": [],
  72100. "category": "nature"
  72101. },
  72102. ":star_struck:": {
  72103. "uc_base": "1f929",
  72104. "uc_output": "1f929",
  72105. "uc_match": "1f929",
  72106. "uc_greedy": "1f929",
  72107. "shortnames": [],
  72108. "category": "people"
  72109. },
  72110. ":stars:": {
  72111. "uc_base": "1f320",
  72112. "uc_output": "1f320",
  72113. "uc_match": "1f320",
  72114. "uc_greedy": "1f320",
  72115. "shortnames": [],
  72116. "category": "travel"
  72117. },
  72118. ":station:": {
  72119. "uc_base": "1f689",
  72120. "uc_output": "1f689",
  72121. "uc_match": "1f689",
  72122. "uc_greedy": "1f689",
  72123. "shortnames": [],
  72124. "category": "travel"
  72125. },
  72126. ":statue_of_liberty:": {
  72127. "uc_base": "1f5fd",
  72128. "uc_output": "1f5fd",
  72129. "uc_match": "1f5fd",
  72130. "uc_greedy": "1f5fd",
  72131. "shortnames": [],
  72132. "category": "travel"
  72133. },
  72134. ":steam_locomotive:": {
  72135. "uc_base": "1f682",
  72136. "uc_output": "1f682",
  72137. "uc_match": "1f682",
  72138. "uc_greedy": "1f682",
  72139. "shortnames": [],
  72140. "category": "travel"
  72141. },
  72142. ":stew:": {
  72143. "uc_base": "1f372",
  72144. "uc_output": "1f372",
  72145. "uc_match": "1f372",
  72146. "uc_greedy": "1f372",
  72147. "shortnames": [],
  72148. "category": "food"
  72149. },
  72150. ":straight_ruler:": {
  72151. "uc_base": "1f4cf",
  72152. "uc_output": "1f4cf",
  72153. "uc_match": "1f4cf",
  72154. "uc_greedy": "1f4cf",
  72155. "shortnames": [],
  72156. "category": "objects"
  72157. },
  72158. ":strawberry:": {
  72159. "uc_base": "1f353",
  72160. "uc_output": "1f353",
  72161. "uc_match": "1f353",
  72162. "uc_greedy": "1f353",
  72163. "shortnames": [],
  72164. "category": "food"
  72165. },
  72166. ":stuck_out_tongue:": {
  72167. "uc_base": "1f61b",
  72168. "uc_output": "1f61b",
  72169. "uc_match": "1f61b",
  72170. "uc_greedy": "1f61b",
  72171. "shortnames": [],
  72172. "category": "people"
  72173. },
  72174. ":stuck_out_tongue_closed_eyes:": {
  72175. "uc_base": "1f61d",
  72176. "uc_output": "1f61d",
  72177. "uc_match": "1f61d",
  72178. "uc_greedy": "1f61d",
  72179. "shortnames": [],
  72180. "category": "people"
  72181. },
  72182. ":stuck_out_tongue_winking_eye:": {
  72183. "uc_base": "1f61c",
  72184. "uc_output": "1f61c",
  72185. "uc_match": "1f61c",
  72186. "uc_greedy": "1f61c",
  72187. "shortnames": [],
  72188. "category": "people"
  72189. },
  72190. ":stuffed_flatbread:": {
  72191. "uc_base": "1f959",
  72192. "uc_output": "1f959",
  72193. "uc_match": "1f959",
  72194. "uc_greedy": "1f959",
  72195. "shortnames": [":stuffed_pita:"],
  72196. "category": "food"
  72197. },
  72198. ":sun_with_face:": {
  72199. "uc_base": "1f31e",
  72200. "uc_output": "1f31e",
  72201. "uc_match": "1f31e",
  72202. "uc_greedy": "1f31e",
  72203. "shortnames": [],
  72204. "category": "nature"
  72205. },
  72206. ":sunflower:": {
  72207. "uc_base": "1f33b",
  72208. "uc_output": "1f33b",
  72209. "uc_match": "1f33b",
  72210. "uc_greedy": "1f33b",
  72211. "shortnames": [],
  72212. "category": "nature"
  72213. },
  72214. ":sunglasses:": {
  72215. "uc_base": "1f60e",
  72216. "uc_output": "1f60e",
  72217. "uc_match": "1f60e",
  72218. "uc_greedy": "1f60e",
  72219. "shortnames": [],
  72220. "category": "people"
  72221. },
  72222. ":sunrise:": {
  72223. "uc_base": "1f305",
  72224. "uc_output": "1f305",
  72225. "uc_match": "1f305",
  72226. "uc_greedy": "1f305",
  72227. "shortnames": [],
  72228. "category": "travel"
  72229. },
  72230. ":sunrise_over_mountains:": {
  72231. "uc_base": "1f304",
  72232. "uc_output": "1f304",
  72233. "uc_match": "1f304",
  72234. "uc_greedy": "1f304",
  72235. "shortnames": [],
  72236. "category": "travel"
  72237. },
  72238. ":sushi:": {
  72239. "uc_base": "1f363",
  72240. "uc_output": "1f363",
  72241. "uc_match": "1f363",
  72242. "uc_greedy": "1f363",
  72243. "shortnames": [],
  72244. "category": "food"
  72245. },
  72246. ":suspension_railway:": {
  72247. "uc_base": "1f69f",
  72248. "uc_output": "1f69f",
  72249. "uc_match": "1f69f",
  72250. "uc_greedy": "1f69f",
  72251. "shortnames": [],
  72252. "category": "travel"
  72253. },
  72254. ":sweat:": {
  72255. "uc_base": "1f613",
  72256. "uc_output": "1f613",
  72257. "uc_match": "1f613",
  72258. "uc_greedy": "1f613",
  72259. "shortnames": [],
  72260. "category": "people"
  72261. },
  72262. ":sweat_drops:": {
  72263. "uc_base": "1f4a6",
  72264. "uc_output": "1f4a6",
  72265. "uc_match": "1f4a6",
  72266. "uc_greedy": "1f4a6",
  72267. "shortnames": [],
  72268. "category": "nature"
  72269. },
  72270. ":sweat_smile:": {
  72271. "uc_base": "1f605",
  72272. "uc_output": "1f605",
  72273. "uc_match": "1f605",
  72274. "uc_greedy": "1f605",
  72275. "shortnames": [],
  72276. "category": "people"
  72277. },
  72278. ":sweet_potato:": {
  72279. "uc_base": "1f360",
  72280. "uc_output": "1f360",
  72281. "uc_match": "1f360",
  72282. "uc_greedy": "1f360",
  72283. "shortnames": [],
  72284. "category": "food"
  72285. },
  72286. ":symbols:": {
  72287. "uc_base": "1f523",
  72288. "uc_output": "1f523",
  72289. "uc_match": "1f523",
  72290. "uc_greedy": "1f523",
  72291. "shortnames": [],
  72292. "category": "symbols"
  72293. },
  72294. ":synagogue:": {
  72295. "uc_base": "1f54d",
  72296. "uc_output": "1f54d",
  72297. "uc_match": "1f54d",
  72298. "uc_greedy": "1f54d",
  72299. "shortnames": [],
  72300. "category": "travel"
  72301. },
  72302. ":syringe:": {
  72303. "uc_base": "1f489",
  72304. "uc_output": "1f489",
  72305. "uc_match": "1f489",
  72306. "uc_greedy": "1f489",
  72307. "shortnames": [],
  72308. "category": "objects"
  72309. },
  72310. ":t_rex:": {
  72311. "uc_base": "1f996",
  72312. "uc_output": "1f996",
  72313. "uc_match": "1f996",
  72314. "uc_greedy": "1f996",
  72315. "shortnames": [],
  72316. "category": "nature"
  72317. },
  72318. ":taco:": {
  72319. "uc_base": "1f32e",
  72320. "uc_output": "1f32e",
  72321. "uc_match": "1f32e",
  72322. "uc_greedy": "1f32e",
  72323. "shortnames": [],
  72324. "category": "food"
  72325. },
  72326. ":tada:": {
  72327. "uc_base": "1f389",
  72328. "uc_output": "1f389",
  72329. "uc_match": "1f389",
  72330. "uc_greedy": "1f389",
  72331. "shortnames": [],
  72332. "category": "objects"
  72333. },
  72334. ":takeout_box:": {
  72335. "uc_base": "1f961",
  72336. "uc_output": "1f961",
  72337. "uc_match": "1f961",
  72338. "uc_greedy": "1f961",
  72339. "shortnames": [],
  72340. "category": "food"
  72341. },
  72342. ":tanabata_tree:": {
  72343. "uc_base": "1f38b",
  72344. "uc_output": "1f38b",
  72345. "uc_match": "1f38b",
  72346. "uc_greedy": "1f38b",
  72347. "shortnames": [],
  72348. "category": "nature"
  72349. },
  72350. ":tangerine:": {
  72351. "uc_base": "1f34a",
  72352. "uc_output": "1f34a",
  72353. "uc_match": "1f34a",
  72354. "uc_greedy": "1f34a",
  72355. "shortnames": [],
  72356. "category": "food"
  72357. },
  72358. ":taxi:": {
  72359. "uc_base": "1f695",
  72360. "uc_output": "1f695",
  72361. "uc_match": "1f695",
  72362. "uc_greedy": "1f695",
  72363. "shortnames": [],
  72364. "category": "travel"
  72365. },
  72366. ":tea:": {
  72367. "uc_base": "1f375",
  72368. "uc_output": "1f375",
  72369. "uc_match": "1f375",
  72370. "uc_greedy": "1f375",
  72371. "shortnames": [],
  72372. "category": "food"
  72373. },
  72374. ":telephone_receiver:": {
  72375. "uc_base": "1f4de",
  72376. "uc_output": "1f4de",
  72377. "uc_match": "1f4de",
  72378. "uc_greedy": "1f4de",
  72379. "shortnames": [],
  72380. "category": "objects"
  72381. },
  72382. ":telescope:": {
  72383. "uc_base": "1f52d",
  72384. "uc_output": "1f52d",
  72385. "uc_match": "1f52d",
  72386. "uc_greedy": "1f52d",
  72387. "shortnames": [],
  72388. "category": "objects"
  72389. },
  72390. ":tennis:": {
  72391. "uc_base": "1f3be",
  72392. "uc_output": "1f3be",
  72393. "uc_match": "1f3be",
  72394. "uc_greedy": "1f3be",
  72395. "shortnames": [],
  72396. "category": "activity"
  72397. },
  72398. ":thermometer:": {
  72399. "uc_base": "1f321",
  72400. "uc_output": "1f321",
  72401. "uc_match": "1f321-fe0f",
  72402. "uc_greedy": "1f321-fe0f",
  72403. "shortnames": [],
  72404. "category": "objects"
  72405. },
  72406. ":thermometer_face:": {
  72407. "uc_base": "1f912",
  72408. "uc_output": "1f912",
  72409. "uc_match": "1f912",
  72410. "uc_greedy": "1f912",
  72411. "shortnames": [":face_with_thermometer:"],
  72412. "category": "people"
  72413. },
  72414. ":thinking:": {
  72415. "uc_base": "1f914",
  72416. "uc_output": "1f914",
  72417. "uc_match": "1f914",
  72418. "uc_greedy": "1f914",
  72419. "shortnames": [":thinking_face:"],
  72420. "category": "people"
  72421. },
  72422. ":third_place:": {
  72423. "uc_base": "1f949",
  72424. "uc_output": "1f949",
  72425. "uc_match": "1f949",
  72426. "uc_greedy": "1f949",
  72427. "shortnames": [":third_place_medal:"],
  72428. "category": "activity"
  72429. },
  72430. ":thought_balloon:": {
  72431. "uc_base": "1f4ad",
  72432. "uc_output": "1f4ad",
  72433. "uc_match": "1f4ad",
  72434. "uc_greedy": "1f4ad",
  72435. "shortnames": [],
  72436. "category": "symbols"
  72437. },
  72438. ":thumbsdown:": {
  72439. "uc_base": "1f44e",
  72440. "uc_output": "1f44e",
  72441. "uc_match": "1f44e-fe0f",
  72442. "uc_greedy": "1f44e-fe0f",
  72443. "shortnames": [":-1:", ":thumbdown:"],
  72444. "category": "people"
  72445. },
  72446. ":thumbsup:": {
  72447. "uc_base": "1f44d",
  72448. "uc_output": "1f44d",
  72449. "uc_match": "1f44d-fe0f",
  72450. "uc_greedy": "1f44d-fe0f",
  72451. "shortnames": [":+1:", ":thumbup:"],
  72452. "category": "people"
  72453. },
  72454. ":ticket:": {
  72455. "uc_base": "1f3ab",
  72456. "uc_output": "1f3ab",
  72457. "uc_match": "1f3ab",
  72458. "uc_greedy": "1f3ab",
  72459. "shortnames": [],
  72460. "category": "activity"
  72461. },
  72462. ":tickets:": {
  72463. "uc_base": "1f39f",
  72464. "uc_output": "1f39f",
  72465. "uc_match": "1f39f-fe0f",
  72466. "uc_greedy": "1f39f-fe0f",
  72467. "shortnames": [":admission_tickets:"],
  72468. "category": "activity"
  72469. },
  72470. ":tiger2:": {
  72471. "uc_base": "1f405",
  72472. "uc_output": "1f405",
  72473. "uc_match": "1f405",
  72474. "uc_greedy": "1f405",
  72475. "shortnames": [],
  72476. "category": "nature"
  72477. },
  72478. ":tiger:": {
  72479. "uc_base": "1f42f",
  72480. "uc_output": "1f42f",
  72481. "uc_match": "1f42f",
  72482. "uc_greedy": "1f42f",
  72483. "shortnames": [],
  72484. "category": "nature"
  72485. },
  72486. ":tired_face:": {
  72487. "uc_base": "1f62b",
  72488. "uc_output": "1f62b",
  72489. "uc_match": "1f62b",
  72490. "uc_greedy": "1f62b",
  72491. "shortnames": [],
  72492. "category": "people"
  72493. },
  72494. ":toilet:": {
  72495. "uc_base": "1f6bd",
  72496. "uc_output": "1f6bd",
  72497. "uc_match": "1f6bd",
  72498. "uc_greedy": "1f6bd",
  72499. "shortnames": [],
  72500. "category": "objects"
  72501. },
  72502. ":tokyo_tower:": {
  72503. "uc_base": "1f5fc",
  72504. "uc_output": "1f5fc",
  72505. "uc_match": "1f5fc",
  72506. "uc_greedy": "1f5fc",
  72507. "shortnames": [],
  72508. "category": "travel"
  72509. },
  72510. ":tomato:": {
  72511. "uc_base": "1f345",
  72512. "uc_output": "1f345",
  72513. "uc_match": "1f345",
  72514. "uc_greedy": "1f345",
  72515. "shortnames": [],
  72516. "category": "food"
  72517. },
  72518. ":tone1:": {
  72519. "uc_base": "1f3fb",
  72520. "uc_output": "1f3fb",
  72521. "uc_match": "1f3fb",
  72522. "uc_greedy": "1f3fb",
  72523. "shortnames": [],
  72524. "category": "modifier"
  72525. },
  72526. ":tone2:": {
  72527. "uc_base": "1f3fc",
  72528. "uc_output": "1f3fc",
  72529. "uc_match": "1f3fc",
  72530. "uc_greedy": "1f3fc",
  72531. "shortnames": [],
  72532. "category": "modifier"
  72533. },
  72534. ":tone3:": {
  72535. "uc_base": "1f3fd",
  72536. "uc_output": "1f3fd",
  72537. "uc_match": "1f3fd",
  72538. "uc_greedy": "1f3fd",
  72539. "shortnames": [],
  72540. "category": "modifier"
  72541. },
  72542. ":tone4:": {
  72543. "uc_base": "1f3fe",
  72544. "uc_output": "1f3fe",
  72545. "uc_match": "1f3fe",
  72546. "uc_greedy": "1f3fe",
  72547. "shortnames": [],
  72548. "category": "modifier"
  72549. },
  72550. ":tone5:": {
  72551. "uc_base": "1f3ff",
  72552. "uc_output": "1f3ff",
  72553. "uc_match": "1f3ff",
  72554. "uc_greedy": "1f3ff",
  72555. "shortnames": [],
  72556. "category": "modifier"
  72557. },
  72558. ":tongue:": {
  72559. "uc_base": "1f445",
  72560. "uc_output": "1f445",
  72561. "uc_match": "1f445",
  72562. "uc_greedy": "1f445",
  72563. "shortnames": [],
  72564. "category": "people"
  72565. },
  72566. ":tools:": {
  72567. "uc_base": "1f6e0",
  72568. "uc_output": "1f6e0",
  72569. "uc_match": "1f6e0-fe0f",
  72570. "uc_greedy": "1f6e0-fe0f",
  72571. "shortnames": [":hammer_and_wrench:"],
  72572. "category": "objects"
  72573. },
  72574. ":top:": {
  72575. "uc_base": "1f51d",
  72576. "uc_output": "1f51d",
  72577. "uc_match": "1f51d",
  72578. "uc_greedy": "1f51d",
  72579. "shortnames": [],
  72580. "category": "symbols"
  72581. },
  72582. ":tophat:": {
  72583. "uc_base": "1f3a9",
  72584. "uc_output": "1f3a9",
  72585. "uc_match": "1f3a9",
  72586. "uc_greedy": "1f3a9",
  72587. "shortnames": [],
  72588. "category": "people"
  72589. },
  72590. ":trackball:": {
  72591. "uc_base": "1f5b2",
  72592. "uc_output": "1f5b2",
  72593. "uc_match": "1f5b2-fe0f",
  72594. "uc_greedy": "1f5b2-fe0f",
  72595. "shortnames": [],
  72596. "category": "objects"
  72597. },
  72598. ":tractor:": {
  72599. "uc_base": "1f69c",
  72600. "uc_output": "1f69c",
  72601. "uc_match": "1f69c",
  72602. "uc_greedy": "1f69c",
  72603. "shortnames": [],
  72604. "category": "travel"
  72605. },
  72606. ":traffic_light:": {
  72607. "uc_base": "1f6a5",
  72608. "uc_output": "1f6a5",
  72609. "uc_match": "1f6a5",
  72610. "uc_greedy": "1f6a5",
  72611. "shortnames": [],
  72612. "category": "travel"
  72613. },
  72614. ":train2:": {
  72615. "uc_base": "1f686",
  72616. "uc_output": "1f686",
  72617. "uc_match": "1f686",
  72618. "uc_greedy": "1f686",
  72619. "shortnames": [],
  72620. "category": "travel"
  72621. },
  72622. ":train:": {
  72623. "uc_base": "1f68b",
  72624. "uc_output": "1f68b",
  72625. "uc_match": "1f68b",
  72626. "uc_greedy": "1f68b",
  72627. "shortnames": [],
  72628. "category": "travel"
  72629. },
  72630. ":tram:": {
  72631. "uc_base": "1f68a",
  72632. "uc_output": "1f68a",
  72633. "uc_match": "1f68a",
  72634. "uc_greedy": "1f68a",
  72635. "shortnames": [],
  72636. "category": "travel"
  72637. },
  72638. ":triangular_flag_on_post:": {
  72639. "uc_base": "1f6a9",
  72640. "uc_output": "1f6a9",
  72641. "uc_match": "1f6a9",
  72642. "uc_greedy": "1f6a9",
  72643. "shortnames": [],
  72644. "category": "flags"
  72645. },
  72646. ":triangular_ruler:": {
  72647. "uc_base": "1f4d0",
  72648. "uc_output": "1f4d0",
  72649. "uc_match": "1f4d0",
  72650. "uc_greedy": "1f4d0",
  72651. "shortnames": [],
  72652. "category": "objects"
  72653. },
  72654. ":trident:": {
  72655. "uc_base": "1f531",
  72656. "uc_output": "1f531",
  72657. "uc_match": "1f531",
  72658. "uc_greedy": "1f531",
  72659. "shortnames": [],
  72660. "category": "symbols"
  72661. },
  72662. ":triumph:": {
  72663. "uc_base": "1f624",
  72664. "uc_output": "1f624",
  72665. "uc_match": "1f624",
  72666. "uc_greedy": "1f624",
  72667. "shortnames": [],
  72668. "category": "people"
  72669. },
  72670. ":trolleybus:": {
  72671. "uc_base": "1f68e",
  72672. "uc_output": "1f68e",
  72673. "uc_match": "1f68e",
  72674. "uc_greedy": "1f68e",
  72675. "shortnames": [],
  72676. "category": "travel"
  72677. },
  72678. ":trophy:": {
  72679. "uc_base": "1f3c6",
  72680. "uc_output": "1f3c6",
  72681. "uc_match": "1f3c6-fe0f",
  72682. "uc_greedy": "1f3c6-fe0f",
  72683. "shortnames": [],
  72684. "category": "activity"
  72685. },
  72686. ":tropical_drink:": {
  72687. "uc_base": "1f379",
  72688. "uc_output": "1f379",
  72689. "uc_match": "1f379",
  72690. "uc_greedy": "1f379",
  72691. "shortnames": [],
  72692. "category": "food"
  72693. },
  72694. ":tropical_fish:": {
  72695. "uc_base": "1f420",
  72696. "uc_output": "1f420",
  72697. "uc_match": "1f420",
  72698. "uc_greedy": "1f420",
  72699. "shortnames": [],
  72700. "category": "nature"
  72701. },
  72702. ":truck:": {
  72703. "uc_base": "1f69a",
  72704. "uc_output": "1f69a",
  72705. "uc_match": "1f69a",
  72706. "uc_greedy": "1f69a",
  72707. "shortnames": [],
  72708. "category": "travel"
  72709. },
  72710. ":trumpet:": {
  72711. "uc_base": "1f3ba",
  72712. "uc_output": "1f3ba",
  72713. "uc_match": "1f3ba",
  72714. "uc_greedy": "1f3ba",
  72715. "shortnames": [],
  72716. "category": "activity"
  72717. },
  72718. ":tulip:": {
  72719. "uc_base": "1f337",
  72720. "uc_output": "1f337",
  72721. "uc_match": "1f337",
  72722. "uc_greedy": "1f337",
  72723. "shortnames": [],
  72724. "category": "nature"
  72725. },
  72726. ":tumbler_glass:": {
  72727. "uc_base": "1f943",
  72728. "uc_output": "1f943",
  72729. "uc_match": "1f943",
  72730. "uc_greedy": "1f943",
  72731. "shortnames": [":whisky:"],
  72732. "category": "food"
  72733. },
  72734. ":turkey:": {
  72735. "uc_base": "1f983",
  72736. "uc_output": "1f983",
  72737. "uc_match": "1f983",
  72738. "uc_greedy": "1f983",
  72739. "shortnames": [],
  72740. "category": "nature"
  72741. },
  72742. ":turtle:": {
  72743. "uc_base": "1f422",
  72744. "uc_output": "1f422",
  72745. "uc_match": "1f422",
  72746. "uc_greedy": "1f422",
  72747. "shortnames": [],
  72748. "category": "nature"
  72749. },
  72750. ":tv:": {
  72751. "uc_base": "1f4fa",
  72752. "uc_output": "1f4fa",
  72753. "uc_match": "1f4fa-fe0f",
  72754. "uc_greedy": "1f4fa-fe0f",
  72755. "shortnames": [],
  72756. "category": "objects"
  72757. },
  72758. ":twisted_rightwards_arrows:": {
  72759. "uc_base": "1f500",
  72760. "uc_output": "1f500",
  72761. "uc_match": "1f500",
  72762. "uc_greedy": "1f500",
  72763. "shortnames": [],
  72764. "category": "symbols"
  72765. },
  72766. ":two_hearts:": {
  72767. "uc_base": "1f495",
  72768. "uc_output": "1f495",
  72769. "uc_match": "1f495",
  72770. "uc_greedy": "1f495",
  72771. "shortnames": [],
  72772. "category": "symbols"
  72773. },
  72774. ":two_men_holding_hands:": {
  72775. "uc_base": "1f46c",
  72776. "uc_output": "1f46c",
  72777. "uc_match": "1f46c",
  72778. "uc_greedy": "1f46c",
  72779. "shortnames": [],
  72780. "category": "people"
  72781. },
  72782. ":two_women_holding_hands:": {
  72783. "uc_base": "1f46d",
  72784. "uc_output": "1f46d",
  72785. "uc_match": "1f46d",
  72786. "uc_greedy": "1f46d",
  72787. "shortnames": [],
  72788. "category": "people"
  72789. },
  72790. ":u5272:": {
  72791. "uc_base": "1f239",
  72792. "uc_output": "1f239",
  72793. "uc_match": "1f239",
  72794. "uc_greedy": "1f239",
  72795. "shortnames": [],
  72796. "category": "symbols"
  72797. },
  72798. ":u5408:": {
  72799. "uc_base": "1f234",
  72800. "uc_output": "1f234",
  72801. "uc_match": "1f234",
  72802. "uc_greedy": "1f234",
  72803. "shortnames": [],
  72804. "category": "symbols"
  72805. },
  72806. ":u55b6:": {
  72807. "uc_base": "1f23a",
  72808. "uc_output": "1f23a",
  72809. "uc_match": "1f23a",
  72810. "uc_greedy": "1f23a",
  72811. "shortnames": [],
  72812. "category": "symbols"
  72813. },
  72814. ":u6307:": {
  72815. "uc_base": "1f22f",
  72816. "uc_output": "1f22f",
  72817. "uc_match": "1f22f-fe0f",
  72818. "uc_greedy": "1f22f-fe0f",
  72819. "shortnames": [],
  72820. "category": "symbols"
  72821. },
  72822. ":u6708:": {
  72823. "uc_base": "1f237",
  72824. "uc_output": "1f237",
  72825. "uc_match": "1f237-fe0f",
  72826. "uc_greedy": "1f237-fe0f",
  72827. "shortnames": [],
  72828. "category": "symbols"
  72829. },
  72830. ":u6709:": {
  72831. "uc_base": "1f236",
  72832. "uc_output": "1f236",
  72833. "uc_match": "1f236",
  72834. "uc_greedy": "1f236",
  72835. "shortnames": [],
  72836. "category": "symbols"
  72837. },
  72838. ":u6e80:": {
  72839. "uc_base": "1f235",
  72840. "uc_output": "1f235",
  72841. "uc_match": "1f235",
  72842. "uc_greedy": "1f235",
  72843. "shortnames": [],
  72844. "category": "symbols"
  72845. },
  72846. ":u7121:": {
  72847. "uc_base": "1f21a",
  72848. "uc_output": "1f21a",
  72849. "uc_match": "1f21a-fe0f",
  72850. "uc_greedy": "1f21a-fe0f",
  72851. "shortnames": [],
  72852. "category": "symbols"
  72853. },
  72854. ":u7533:": {
  72855. "uc_base": "1f238",
  72856. "uc_output": "1f238",
  72857. "uc_match": "1f238",
  72858. "uc_greedy": "1f238",
  72859. "shortnames": [],
  72860. "category": "symbols"
  72861. },
  72862. ":u7981:": {
  72863. "uc_base": "1f232",
  72864. "uc_output": "1f232",
  72865. "uc_match": "1f232",
  72866. "uc_greedy": "1f232",
  72867. "shortnames": [],
  72868. "category": "symbols"
  72869. },
  72870. ":u7a7a:": {
  72871. "uc_base": "1f233",
  72872. "uc_output": "1f233",
  72873. "uc_match": "1f233",
  72874. "uc_greedy": "1f233",
  72875. "shortnames": [],
  72876. "category": "symbols"
  72877. },
  72878. ":unamused:": {
  72879. "uc_base": "1f612",
  72880. "uc_output": "1f612",
  72881. "uc_match": "1f612",
  72882. "uc_greedy": "1f612",
  72883. "shortnames": [],
  72884. "category": "people"
  72885. },
  72886. ":underage:": {
  72887. "uc_base": "1f51e",
  72888. "uc_output": "1f51e",
  72889. "uc_match": "1f51e",
  72890. "uc_greedy": "1f51e",
  72891. "shortnames": [],
  72892. "category": "symbols"
  72893. },
  72894. ":unicorn:": {
  72895. "uc_base": "1f984",
  72896. "uc_output": "1f984",
  72897. "uc_match": "1f984",
  72898. "uc_greedy": "1f984",
  72899. "shortnames": [":unicorn_face:"],
  72900. "category": "nature"
  72901. },
  72902. ":unlock:": {
  72903. "uc_base": "1f513",
  72904. "uc_output": "1f513",
  72905. "uc_match": "1f513-fe0f",
  72906. "uc_greedy": "1f513-fe0f",
  72907. "shortnames": [],
  72908. "category": "objects"
  72909. },
  72910. ":up:": {
  72911. "uc_base": "1f199",
  72912. "uc_output": "1f199",
  72913. "uc_match": "1f199",
  72914. "uc_greedy": "1f199",
  72915. "shortnames": [],
  72916. "category": "symbols"
  72917. },
  72918. ":upside_down:": {
  72919. "uc_base": "1f643",
  72920. "uc_output": "1f643",
  72921. "uc_match": "1f643",
  72922. "uc_greedy": "1f643",
  72923. "shortnames": [":upside_down_face:"],
  72924. "category": "people"
  72925. },
  72926. ":vampire:": {
  72927. "uc_base": "1f9db",
  72928. "uc_output": "1f9db",
  72929. "uc_match": "1f9db",
  72930. "uc_greedy": "1f9db",
  72931. "shortnames": [],
  72932. "category": "people"
  72933. },
  72934. ":vertical_traffic_light:": {
  72935. "uc_base": "1f6a6",
  72936. "uc_output": "1f6a6",
  72937. "uc_match": "1f6a6",
  72938. "uc_greedy": "1f6a6",
  72939. "shortnames": [],
  72940. "category": "travel"
  72941. },
  72942. ":vhs:": {
  72943. "uc_base": "1f4fc",
  72944. "uc_output": "1f4fc",
  72945. "uc_match": "1f4fc",
  72946. "uc_greedy": "1f4fc",
  72947. "shortnames": [],
  72948. "category": "objects"
  72949. },
  72950. ":vibration_mode:": {
  72951. "uc_base": "1f4f3",
  72952. "uc_output": "1f4f3",
  72953. "uc_match": "1f4f3",
  72954. "uc_greedy": "1f4f3",
  72955. "shortnames": [],
  72956. "category": "symbols"
  72957. },
  72958. ":video_camera:": {
  72959. "uc_base": "1f4f9",
  72960. "uc_output": "1f4f9",
  72961. "uc_match": "1f4f9-fe0f",
  72962. "uc_greedy": "1f4f9-fe0f",
  72963. "shortnames": [],
  72964. "category": "objects"
  72965. },
  72966. ":video_game:": {
  72967. "uc_base": "1f3ae",
  72968. "uc_output": "1f3ae",
  72969. "uc_match": "1f3ae-fe0f",
  72970. "uc_greedy": "1f3ae-fe0f",
  72971. "shortnames": [],
  72972. "category": "activity"
  72973. },
  72974. ":violin:": {
  72975. "uc_base": "1f3bb",
  72976. "uc_output": "1f3bb",
  72977. "uc_match": "1f3bb",
  72978. "uc_greedy": "1f3bb",
  72979. "shortnames": [],
  72980. "category": "activity"
  72981. },
  72982. ":volcano:": {
  72983. "uc_base": "1f30b",
  72984. "uc_output": "1f30b",
  72985. "uc_match": "1f30b",
  72986. "uc_greedy": "1f30b",
  72987. "shortnames": [],
  72988. "category": "travel"
  72989. },
  72990. ":volleyball:": {
  72991. "uc_base": "1f3d0",
  72992. "uc_output": "1f3d0",
  72993. "uc_match": "1f3d0",
  72994. "uc_greedy": "1f3d0",
  72995. "shortnames": [],
  72996. "category": "activity"
  72997. },
  72998. ":vs:": {
  72999. "uc_base": "1f19a",
  73000. "uc_output": "1f19a",
  73001. "uc_match": "1f19a",
  73002. "uc_greedy": "1f19a",
  73003. "shortnames": [],
  73004. "category": "symbols"
  73005. },
  73006. ":vulcan:": {
  73007. "uc_base": "1f596",
  73008. "uc_output": "1f596",
  73009. "uc_match": "1f596",
  73010. "uc_greedy": "1f596",
  73011. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers:"],
  73012. "category": "people"
  73013. },
  73014. ":waning_crescent_moon:": {
  73015. "uc_base": "1f318",
  73016. "uc_output": "1f318",
  73017. "uc_match": "1f318",
  73018. "uc_greedy": "1f318",
  73019. "shortnames": [],
  73020. "category": "nature"
  73021. },
  73022. ":waning_gibbous_moon:": {
  73023. "uc_base": "1f316",
  73024. "uc_output": "1f316",
  73025. "uc_match": "1f316",
  73026. "uc_greedy": "1f316",
  73027. "shortnames": [],
  73028. "category": "nature"
  73029. },
  73030. ":wastebasket:": {
  73031. "uc_base": "1f5d1",
  73032. "uc_output": "1f5d1",
  73033. "uc_match": "1f5d1-fe0f",
  73034. "uc_greedy": "1f5d1-fe0f",
  73035. "shortnames": [],
  73036. "category": "objects"
  73037. },
  73038. ":water_buffalo:": {
  73039. "uc_base": "1f403",
  73040. "uc_output": "1f403",
  73041. "uc_match": "1f403",
  73042. "uc_greedy": "1f403",
  73043. "shortnames": [],
  73044. "category": "nature"
  73045. },
  73046. ":watermelon:": {
  73047. "uc_base": "1f349",
  73048. "uc_output": "1f349",
  73049. "uc_match": "1f349",
  73050. "uc_greedy": "1f349",
  73051. "shortnames": [],
  73052. "category": "food"
  73053. },
  73054. ":wave:": {
  73055. "uc_base": "1f44b",
  73056. "uc_output": "1f44b",
  73057. "uc_match": "1f44b",
  73058. "uc_greedy": "1f44b",
  73059. "shortnames": [],
  73060. "category": "people"
  73061. },
  73062. ":waxing_crescent_moon:": {
  73063. "uc_base": "1f312",
  73064. "uc_output": "1f312",
  73065. "uc_match": "1f312",
  73066. "uc_greedy": "1f312",
  73067. "shortnames": [],
  73068. "category": "nature"
  73069. },
  73070. ":waxing_gibbous_moon:": {
  73071. "uc_base": "1f314",
  73072. "uc_output": "1f314",
  73073. "uc_match": "1f314",
  73074. "uc_greedy": "1f314",
  73075. "shortnames": [],
  73076. "category": "nature"
  73077. },
  73078. ":wc:": {
  73079. "uc_base": "1f6be",
  73080. "uc_output": "1f6be",
  73081. "uc_match": "1f6be",
  73082. "uc_greedy": "1f6be",
  73083. "shortnames": [],
  73084. "category": "symbols"
  73085. },
  73086. ":weary:": {
  73087. "uc_base": "1f629",
  73088. "uc_output": "1f629",
  73089. "uc_match": "1f629",
  73090. "uc_greedy": "1f629",
  73091. "shortnames": [],
  73092. "category": "people"
  73093. },
  73094. ":wedding:": {
  73095. "uc_base": "1f492",
  73096. "uc_output": "1f492",
  73097. "uc_match": "1f492",
  73098. "uc_greedy": "1f492",
  73099. "shortnames": [],
  73100. "category": "travel"
  73101. },
  73102. ":whale2:": {
  73103. "uc_base": "1f40b",
  73104. "uc_output": "1f40b",
  73105. "uc_match": "1f40b",
  73106. "uc_greedy": "1f40b",
  73107. "shortnames": [],
  73108. "category": "nature"
  73109. },
  73110. ":whale:": {
  73111. "uc_base": "1f433",
  73112. "uc_output": "1f433",
  73113. "uc_match": "1f433",
  73114. "uc_greedy": "1f433",
  73115. "shortnames": [],
  73116. "category": "nature"
  73117. },
  73118. ":white_flower:": {
  73119. "uc_base": "1f4ae",
  73120. "uc_output": "1f4ae",
  73121. "uc_match": "1f4ae",
  73122. "uc_greedy": "1f4ae",
  73123. "shortnames": [],
  73124. "category": "symbols"
  73125. },
  73126. ":white_square_button:": {
  73127. "uc_base": "1f533",
  73128. "uc_output": "1f533",
  73129. "uc_match": "1f533",
  73130. "uc_greedy": "1f533",
  73131. "shortnames": [],
  73132. "category": "symbols"
  73133. },
  73134. ":white_sun_cloud:": {
  73135. "uc_base": "1f325",
  73136. "uc_output": "1f325",
  73137. "uc_match": "1f325-fe0f",
  73138. "uc_greedy": "1f325-fe0f",
  73139. "shortnames": [":white_sun_behind_cloud:"],
  73140. "category": "nature"
  73141. },
  73142. ":white_sun_rain_cloud:": {
  73143. "uc_base": "1f326",
  73144. "uc_output": "1f326",
  73145. "uc_match": "1f326-fe0f",
  73146. "uc_greedy": "1f326-fe0f",
  73147. "shortnames": [":white_sun_behind_cloud_with_rain:"],
  73148. "category": "nature"
  73149. },
  73150. ":white_sun_small_cloud:": {
  73151. "uc_base": "1f324",
  73152. "uc_output": "1f324",
  73153. "uc_match": "1f324-fe0f",
  73154. "uc_greedy": "1f324-fe0f",
  73155. "shortnames": [":white_sun_with_small_cloud:"],
  73156. "category": "nature"
  73157. },
  73158. ":wilted_rose:": {
  73159. "uc_base": "1f940",
  73160. "uc_output": "1f940",
  73161. "uc_match": "1f940",
  73162. "uc_greedy": "1f940",
  73163. "shortnames": [":wilted_flower:"],
  73164. "category": "nature"
  73165. },
  73166. ":wind_blowing_face:": {
  73167. "uc_base": "1f32c",
  73168. "uc_output": "1f32c",
  73169. "uc_match": "1f32c-fe0f",
  73170. "uc_greedy": "1f32c-fe0f",
  73171. "shortnames": [],
  73172. "category": "nature"
  73173. },
  73174. ":wind_chime:": {
  73175. "uc_base": "1f390",
  73176. "uc_output": "1f390",
  73177. "uc_match": "1f390",
  73178. "uc_greedy": "1f390",
  73179. "shortnames": [],
  73180. "category": "objects"
  73181. },
  73182. ":wine_glass:": {
  73183. "uc_base": "1f377",
  73184. "uc_output": "1f377",
  73185. "uc_match": "1f377",
  73186. "uc_greedy": "1f377",
  73187. "shortnames": [],
  73188. "category": "food"
  73189. },
  73190. ":wink:": {
  73191. "uc_base": "1f609",
  73192. "uc_output": "1f609",
  73193. "uc_match": "1f609",
  73194. "uc_greedy": "1f609",
  73195. "shortnames": [],
  73196. "category": "people"
  73197. },
  73198. ":wolf:": {
  73199. "uc_base": "1f43a",
  73200. "uc_output": "1f43a",
  73201. "uc_match": "1f43a",
  73202. "uc_greedy": "1f43a",
  73203. "shortnames": [],
  73204. "category": "nature"
  73205. },
  73206. ":woman:": {
  73207. "uc_base": "1f469",
  73208. "uc_output": "1f469",
  73209. "uc_match": "1f469",
  73210. "uc_greedy": "1f469",
  73211. "shortnames": [],
  73212. "category": "people"
  73213. },
  73214. ":woman_with_headscarf:": {
  73215. "uc_base": "1f9d5",
  73216. "uc_output": "1f9d5",
  73217. "uc_match": "1f9d5",
  73218. "uc_greedy": "1f9d5",
  73219. "shortnames": [],
  73220. "category": "people"
  73221. },
  73222. ":womans_clothes:": {
  73223. "uc_base": "1f45a",
  73224. "uc_output": "1f45a",
  73225. "uc_match": "1f45a",
  73226. "uc_greedy": "1f45a",
  73227. "shortnames": [],
  73228. "category": "people"
  73229. },
  73230. ":womans_hat:": {
  73231. "uc_base": "1f452",
  73232. "uc_output": "1f452",
  73233. "uc_match": "1f452",
  73234. "uc_greedy": "1f452",
  73235. "shortnames": [],
  73236. "category": "people"
  73237. },
  73238. ":womens:": {
  73239. "uc_base": "1f6ba",
  73240. "uc_output": "1f6ba",
  73241. "uc_match": "1f6ba-fe0f",
  73242. "uc_greedy": "1f6ba-fe0f",
  73243. "shortnames": [],
  73244. "category": "symbols"
  73245. },
  73246. ":worried:": {
  73247. "uc_base": "1f61f",
  73248. "uc_output": "1f61f",
  73249. "uc_match": "1f61f",
  73250. "uc_greedy": "1f61f",
  73251. "shortnames": [],
  73252. "category": "people"
  73253. },
  73254. ":wrench:": {
  73255. "uc_base": "1f527",
  73256. "uc_output": "1f527",
  73257. "uc_match": "1f527",
  73258. "uc_greedy": "1f527",
  73259. "shortnames": [],
  73260. "category": "objects"
  73261. },
  73262. ":yellow_heart:": {
  73263. "uc_base": "1f49b",
  73264. "uc_output": "1f49b",
  73265. "uc_match": "1f49b",
  73266. "uc_greedy": "1f49b",
  73267. "shortnames": [],
  73268. "category": "symbols"
  73269. },
  73270. ":yen:": {
  73271. "uc_base": "1f4b4",
  73272. "uc_output": "1f4b4",
  73273. "uc_match": "1f4b4",
  73274. "uc_greedy": "1f4b4",
  73275. "shortnames": [],
  73276. "category": "objects"
  73277. },
  73278. ":yum:": {
  73279. "uc_base": "1f60b",
  73280. "uc_output": "1f60b",
  73281. "uc_match": "1f60b",
  73282. "uc_greedy": "1f60b",
  73283. "shortnames": [],
  73284. "category": "people"
  73285. },
  73286. ":zebra:": {
  73287. "uc_base": "1f993",
  73288. "uc_output": "1f993",
  73289. "uc_match": "1f993",
  73290. "uc_greedy": "1f993",
  73291. "shortnames": [],
  73292. "category": "nature"
  73293. },
  73294. ":zipper_mouth:": {
  73295. "uc_base": "1f910",
  73296. "uc_output": "1f910",
  73297. "uc_match": "1f910",
  73298. "uc_greedy": "1f910",
  73299. "shortnames": [":zipper_mouth_face:"],
  73300. "category": "people"
  73301. },
  73302. ":zombie:": {
  73303. "uc_base": "1f9df",
  73304. "uc_output": "1f9df",
  73305. "uc_match": "1f9df",
  73306. "uc_greedy": "1f9df",
  73307. "shortnames": [],
  73308. "category": "people"
  73309. },
  73310. ":zzz:": {
  73311. "uc_base": "1f4a4",
  73312. "uc_output": "1f4a4",
  73313. "uc_match": "1f4a4",
  73314. "uc_greedy": "1f4a4",
  73315. "shortnames": [],
  73316. "category": "symbols"
  73317. },
  73318. ":airplane:": {
  73319. "uc_base": "2708",
  73320. "uc_output": "2708",
  73321. "uc_match": "2708-fe0f",
  73322. "uc_greedy": "2708-fe0f",
  73323. "shortnames": [],
  73324. "category": "travel"
  73325. },
  73326. ":alarm_clock:": {
  73327. "uc_base": "23f0",
  73328. "uc_output": "23f0",
  73329. "uc_match": "23f0",
  73330. "uc_greedy": "23f0",
  73331. "shortnames": [],
  73332. "category": "objects"
  73333. },
  73334. ":alembic:": {
  73335. "uc_base": "2697",
  73336. "uc_output": "2697",
  73337. "uc_match": "2697-fe0f",
  73338. "uc_greedy": "2697-fe0f",
  73339. "shortnames": [],
  73340. "category": "objects"
  73341. },
  73342. ":anchor:": {
  73343. "uc_base": "2693",
  73344. "uc_output": "2693",
  73345. "uc_match": "2693-fe0f",
  73346. "uc_greedy": "2693-fe0f",
  73347. "shortnames": [],
  73348. "category": "travel"
  73349. },
  73350. ":aquarius:": {
  73351. "uc_base": "2652",
  73352. "uc_output": "2652",
  73353. "uc_match": "2652-fe0f",
  73354. "uc_greedy": "2652-fe0f",
  73355. "shortnames": [],
  73356. "category": "symbols"
  73357. },
  73358. ":aries:": {
  73359. "uc_base": "2648",
  73360. "uc_output": "2648",
  73361. "uc_match": "2648-fe0f",
  73362. "uc_greedy": "2648-fe0f",
  73363. "shortnames": [],
  73364. "category": "symbols"
  73365. },
  73366. ":arrow_backward:": {
  73367. "uc_base": "25c0",
  73368. "uc_output": "25c0",
  73369. "uc_match": "25c0-fe0f",
  73370. "uc_greedy": "25c0",
  73371. "shortnames": [],
  73372. "category": "symbols"
  73373. },
  73374. ":arrow_double_down:": {
  73375. "uc_base": "23ec",
  73376. "uc_output": "23ec",
  73377. "uc_match": "23ec",
  73378. "uc_greedy": "23ec",
  73379. "shortnames": [],
  73380. "category": "symbols"
  73381. },
  73382. ":arrow_double_up:": {
  73383. "uc_base": "23eb",
  73384. "uc_output": "23eb",
  73385. "uc_match": "23eb",
  73386. "uc_greedy": "23eb",
  73387. "shortnames": [],
  73388. "category": "symbols"
  73389. },
  73390. ":arrow_down:": {
  73391. "uc_base": "2b07",
  73392. "uc_output": "2b07",
  73393. "uc_match": "2b07-fe0f",
  73394. "uc_greedy": "2b07",
  73395. "shortnames": [],
  73396. "category": "symbols"
  73397. },
  73398. ":arrow_forward:": {
  73399. "uc_base": "25b6",
  73400. "uc_output": "25b6",
  73401. "uc_match": "25b6-fe0f",
  73402. "uc_greedy": "25b6",
  73403. "shortnames": [],
  73404. "category": "symbols"
  73405. },
  73406. ":arrow_heading_down:": {
  73407. "uc_base": "2935",
  73408. "uc_output": "2935",
  73409. "uc_match": "2935-fe0f",
  73410. "uc_greedy": "2935",
  73411. "shortnames": [],
  73412. "category": "symbols"
  73413. },
  73414. ":arrow_heading_up:": {
  73415. "uc_base": "2934",
  73416. "uc_output": "2934",
  73417. "uc_match": "2934-fe0f",
  73418. "uc_greedy": "2934",
  73419. "shortnames": [],
  73420. "category": "symbols"
  73421. },
  73422. ":arrow_left:": {
  73423. "uc_base": "2b05",
  73424. "uc_output": "2b05",
  73425. "uc_match": "2b05-fe0f",
  73426. "uc_greedy": "2b05",
  73427. "shortnames": [],
  73428. "category": "symbols"
  73429. },
  73430. ":arrow_lower_left:": {
  73431. "uc_base": "2199",
  73432. "uc_output": "2199",
  73433. "uc_match": "2199-fe0f",
  73434. "uc_greedy": "2199",
  73435. "shortnames": [],
  73436. "category": "symbols"
  73437. },
  73438. ":arrow_lower_right:": {
  73439. "uc_base": "2198",
  73440. "uc_output": "2198",
  73441. "uc_match": "2198-fe0f",
  73442. "uc_greedy": "2198",
  73443. "shortnames": [],
  73444. "category": "symbols"
  73445. },
  73446. ":arrow_right:": {
  73447. "uc_base": "27a1",
  73448. "uc_output": "27a1",
  73449. "uc_match": "27a1-fe0f",
  73450. "uc_greedy": "27a1",
  73451. "shortnames": [],
  73452. "category": "symbols"
  73453. },
  73454. ":arrow_right_hook:": {
  73455. "uc_base": "21aa",
  73456. "uc_output": "21aa",
  73457. "uc_match": "21aa-fe0f",
  73458. "uc_greedy": "21aa",
  73459. "shortnames": [],
  73460. "category": "symbols"
  73461. },
  73462. ":arrow_up:": {
  73463. "uc_base": "2b06",
  73464. "uc_output": "2b06",
  73465. "uc_match": "2b06-fe0f",
  73466. "uc_greedy": "2b06",
  73467. "shortnames": [],
  73468. "category": "symbols"
  73469. },
  73470. ":arrow_up_down:": {
  73471. "uc_base": "2195",
  73472. "uc_output": "2195",
  73473. "uc_match": "2195-fe0f",
  73474. "uc_greedy": "2195",
  73475. "shortnames": [],
  73476. "category": "symbols"
  73477. },
  73478. ":arrow_upper_left:": {
  73479. "uc_base": "2196",
  73480. "uc_output": "2196",
  73481. "uc_match": "2196-fe0f",
  73482. "uc_greedy": "2196",
  73483. "shortnames": [],
  73484. "category": "symbols"
  73485. },
  73486. ":arrow_upper_right:": {
  73487. "uc_base": "2197",
  73488. "uc_output": "2197",
  73489. "uc_match": "2197-fe0f",
  73490. "uc_greedy": "2197",
  73491. "shortnames": [],
  73492. "category": "symbols"
  73493. },
  73494. ":atom:": {
  73495. "uc_base": "269b",
  73496. "uc_output": "269b",
  73497. "uc_match": "269b-fe0f",
  73498. "uc_greedy": "269b",
  73499. "shortnames": [":atom_symbol:"],
  73500. "category": "symbols"
  73501. },
  73502. ":ballot_box_with_check:": {
  73503. "uc_base": "2611",
  73504. "uc_output": "2611",
  73505. "uc_match": "2611-fe0f",
  73506. "uc_greedy": "2611",
  73507. "shortnames": [],
  73508. "category": "symbols"
  73509. },
  73510. ":bangbang:": {
  73511. "uc_base": "203c",
  73512. "uc_output": "203c",
  73513. "uc_match": "203c-fe0f",
  73514. "uc_greedy": "203c",
  73515. "shortnames": [],
  73516. "category": "symbols"
  73517. },
  73518. ":baseball:": {
  73519. "uc_base": "26be",
  73520. "uc_output": "26be",
  73521. "uc_match": "26be-fe0f",
  73522. "uc_greedy": "26be-fe0f",
  73523. "shortnames": [],
  73524. "category": "activity"
  73525. },
  73526. ":beach_umbrella:": {
  73527. "uc_base": "26f1",
  73528. "uc_output": "26f1",
  73529. "uc_match": "26f1-fe0f",
  73530. "uc_greedy": "26f1-fe0f",
  73531. "shortnames": [":umbrella_on_ground:"],
  73532. "category": "travel"
  73533. },
  73534. ":biohazard:": {
  73535. "uc_base": "2623",
  73536. "uc_output": "2623",
  73537. "uc_match": "2623-fe0f",
  73538. "uc_greedy": "2623",
  73539. "shortnames": [":biohazard_sign:"],
  73540. "category": "symbols"
  73541. },
  73542. ":black_circle:": {
  73543. "uc_base": "26ab",
  73544. "uc_output": "26ab",
  73545. "uc_match": "26ab-fe0f",
  73546. "uc_greedy": "26ab-fe0f",
  73547. "shortnames": [],
  73548. "category": "symbols"
  73549. },
  73550. ":black_large_square:": {
  73551. "uc_base": "2b1b",
  73552. "uc_output": "2b1b",
  73553. "uc_match": "2b1b-fe0f",
  73554. "uc_greedy": "2b1b-fe0f",
  73555. "shortnames": [],
  73556. "category": "symbols"
  73557. },
  73558. ":black_medium_small_square:": {
  73559. "uc_base": "25fe",
  73560. "uc_output": "25fe",
  73561. "uc_match": "25fe-fe0f",
  73562. "uc_greedy": "25fe-fe0f",
  73563. "shortnames": [],
  73564. "category": "symbols"
  73565. },
  73566. ":black_medium_square:": {
  73567. "uc_base": "25fc",
  73568. "uc_output": "25fc",
  73569. "uc_match": "25fc-fe0f",
  73570. "uc_greedy": "25fc",
  73571. "shortnames": [],
  73572. "category": "symbols"
  73573. },
  73574. ":black_nib:": {
  73575. "uc_base": "2712",
  73576. "uc_output": "2712",
  73577. "uc_match": "2712-fe0f",
  73578. "uc_greedy": "2712-fe0f",
  73579. "shortnames": [],
  73580. "category": "objects"
  73581. },
  73582. ":black_small_square:": {
  73583. "uc_base": "25aa",
  73584. "uc_output": "25aa",
  73585. "uc_match": "25aa-fe0f",
  73586. "uc_greedy": "25aa",
  73587. "shortnames": [],
  73588. "category": "symbols"
  73589. },
  73590. ":cancer:": {
  73591. "uc_base": "264b",
  73592. "uc_output": "264b",
  73593. "uc_match": "264b-fe0f",
  73594. "uc_greedy": "264b-fe0f",
  73595. "shortnames": [],
  73596. "category": "symbols"
  73597. },
  73598. ":capricorn:": {
  73599. "uc_base": "2651",
  73600. "uc_output": "2651",
  73601. "uc_match": "2651-fe0f",
  73602. "uc_greedy": "2651-fe0f",
  73603. "shortnames": [],
  73604. "category": "symbols"
  73605. },
  73606. ":chains:": {
  73607. "uc_base": "26d3",
  73608. "uc_output": "26d3",
  73609. "uc_match": "26d3-fe0f",
  73610. "uc_greedy": "26d3-fe0f",
  73611. "shortnames": [],
  73612. "category": "objects"
  73613. },
  73614. ":church:": {
  73615. "uc_base": "26ea",
  73616. "uc_output": "26ea",
  73617. "uc_match": "26ea-fe0f",
  73618. "uc_greedy": "26ea-fe0f",
  73619. "shortnames": [],
  73620. "category": "travel"
  73621. },
  73622. ":cloud:": {
  73623. "uc_base": "2601",
  73624. "uc_output": "2601",
  73625. "uc_match": "2601-fe0f",
  73626. "uc_greedy": "2601-fe0f",
  73627. "shortnames": [],
  73628. "category": "nature"
  73629. },
  73630. ":clubs:": {
  73631. "uc_base": "2663",
  73632. "uc_output": "2663",
  73633. "uc_match": "2663-fe0f",
  73634. "uc_greedy": "2663-fe0f",
  73635. "shortnames": [],
  73636. "category": "symbols"
  73637. },
  73638. ":coffee:": {
  73639. "uc_base": "2615",
  73640. "uc_output": "2615",
  73641. "uc_match": "2615-fe0f",
  73642. "uc_greedy": "2615-fe0f",
  73643. "shortnames": [],
  73644. "category": "food"
  73645. },
  73646. ":coffin:": {
  73647. "uc_base": "26b0",
  73648. "uc_output": "26b0",
  73649. "uc_match": "26b0-fe0f",
  73650. "uc_greedy": "26b0-fe0f",
  73651. "shortnames": [],
  73652. "category": "objects"
  73653. },
  73654. ":comet:": {
  73655. "uc_base": "2604",
  73656. "uc_output": "2604",
  73657. "uc_match": "2604-fe0f",
  73658. "uc_greedy": "2604-fe0f",
  73659. "shortnames": [],
  73660. "category": "nature"
  73661. },
  73662. ":congratulations:": {
  73663. "uc_base": "3297",
  73664. "uc_output": "3297",
  73665. "uc_match": "3297-fe0f",
  73666. "uc_greedy": "3297-fe0f",
  73667. "shortnames": [],
  73668. "category": "symbols"
  73669. },
  73670. ":copyright:": {
  73671. "uc_base": "00a9",
  73672. "uc_output": "00a9",
  73673. "uc_match": "00a9-fe0f",
  73674. "uc_greedy": "00a9",
  73675. "shortnames": [],
  73676. "category": "symbols"
  73677. },
  73678. ":cross:": {
  73679. "uc_base": "271d",
  73680. "uc_output": "271d",
  73681. "uc_match": "271d-fe0f",
  73682. "uc_greedy": "271d",
  73683. "shortnames": [":latin_cross:"],
  73684. "category": "symbols"
  73685. },
  73686. ":crossed_swords:": {
  73687. "uc_base": "2694",
  73688. "uc_output": "2694",
  73689. "uc_match": "2694-fe0f",
  73690. "uc_greedy": "2694-fe0f",
  73691. "shortnames": [],
  73692. "category": "objects"
  73693. },
  73694. ":curly_loop:": {
  73695. "uc_base": "27b0",
  73696. "uc_output": "27b0",
  73697. "uc_match": "27b0",
  73698. "uc_greedy": "27b0",
  73699. "shortnames": [],
  73700. "category": "symbols"
  73701. },
  73702. ":diamonds:": {
  73703. "uc_base": "2666",
  73704. "uc_output": "2666",
  73705. "uc_match": "2666-fe0f",
  73706. "uc_greedy": "2666-fe0f",
  73707. "shortnames": [],
  73708. "category": "symbols"
  73709. },
  73710. ":eight_pointed_black_star:": {
  73711. "uc_base": "2734",
  73712. "uc_output": "2734",
  73713. "uc_match": "2734-fe0f",
  73714. "uc_greedy": "2734-fe0f",
  73715. "shortnames": [],
  73716. "category": "symbols"
  73717. },
  73718. ":eight_spoked_asterisk:": {
  73719. "uc_base": "2733",
  73720. "uc_output": "2733",
  73721. "uc_match": "2733-fe0f",
  73722. "uc_greedy": "2733-fe0f",
  73723. "shortnames": [],
  73724. "category": "symbols"
  73725. },
  73726. ":eject:": {
  73727. "uc_base": "23cf",
  73728. "uc_output": "23cf",
  73729. "uc_match": "23cf-fe0f",
  73730. "uc_greedy": "23cf",
  73731. "shortnames": [":eject_symbol:"],
  73732. "category": "symbols"
  73733. },
  73734. ":envelope:": {
  73735. "uc_base": "2709",
  73736. "uc_output": "2709",
  73737. "uc_match": "2709-fe0f",
  73738. "uc_greedy": "2709-fe0f",
  73739. "shortnames": [],
  73740. "category": "objects"
  73741. },
  73742. ":exclamation:": {
  73743. "uc_base": "2757",
  73744. "uc_output": "2757",
  73745. "uc_match": "2757-fe0f",
  73746. "uc_greedy": "2757-fe0f",
  73747. "shortnames": [],
  73748. "category": "symbols"
  73749. },
  73750. ":fast_forward:": {
  73751. "uc_base": "23e9",
  73752. "uc_output": "23e9",
  73753. "uc_match": "23e9-fe0f",
  73754. "uc_greedy": "23e9-fe0f",
  73755. "shortnames": [],
  73756. "category": "symbols"
  73757. },
  73758. ":female_sign:": {
  73759. "uc_base": "2640",
  73760. "uc_output": "2640",
  73761. "uc_match": "2640-fe0f",
  73762. "uc_greedy": "2640",
  73763. "shortnames": [],
  73764. "category": "symbols"
  73765. },
  73766. ":ferry:": {
  73767. "uc_base": "26f4",
  73768. "uc_output": "26f4",
  73769. "uc_match": "26f4-fe0f",
  73770. "uc_greedy": "26f4-fe0f",
  73771. "shortnames": [],
  73772. "category": "travel"
  73773. },
  73774. ":fist:": {
  73775. "uc_base": "270a",
  73776. "uc_output": "270a",
  73777. "uc_match": "270a",
  73778. "uc_greedy": "270a",
  73779. "shortnames": [],
  73780. "category": "people"
  73781. },
  73782. ":fleur-de-lis:": {
  73783. "uc_base": "269c",
  73784. "uc_output": "269c",
  73785. "uc_match": "269c-fe0f",
  73786. "uc_greedy": "269c-fe0f",
  73787. "shortnames": [],
  73788. "category": "symbols"
  73789. },
  73790. ":fountain:": {
  73791. "uc_base": "26f2",
  73792. "uc_output": "26f2",
  73793. "uc_match": "26f2-fe0f",
  73794. "uc_greedy": "26f2-fe0f",
  73795. "shortnames": [],
  73796. "category": "travel"
  73797. },
  73798. ":frowning2:": {
  73799. "uc_base": "2639",
  73800. "uc_output": "2639",
  73801. "uc_match": "2639-fe0f",
  73802. "uc_greedy": "2639-fe0f",
  73803. "shortnames": [":white_frowning_face:"],
  73804. "category": "people"
  73805. },
  73806. ":fuelpump:": {
  73807. "uc_base": "26fd",
  73808. "uc_output": "26fd",
  73809. "uc_match": "26fd-fe0f",
  73810. "uc_greedy": "26fd-fe0f",
  73811. "shortnames": [],
  73812. "category": "travel"
  73813. },
  73814. ":gear:": {
  73815. "uc_base": "2699",
  73816. "uc_output": "2699",
  73817. "uc_match": "2699-fe0f",
  73818. "uc_greedy": "2699-fe0f",
  73819. "shortnames": [],
  73820. "category": "objects"
  73821. },
  73822. ":gemini:": {
  73823. "uc_base": "264a",
  73824. "uc_output": "264a",
  73825. "uc_match": "264a-fe0f",
  73826. "uc_greedy": "264a-fe0f",
  73827. "shortnames": [],
  73828. "category": "symbols"
  73829. },
  73830. ":golf:": {
  73831. "uc_base": "26f3",
  73832. "uc_output": "26f3",
  73833. "uc_match": "26f3-fe0f",
  73834. "uc_greedy": "26f3-fe0f",
  73835. "shortnames": [],
  73836. "category": "activity"
  73837. },
  73838. ":grey_exclamation:": {
  73839. "uc_base": "2755",
  73840. "uc_output": "2755",
  73841. "uc_match": "2755",
  73842. "uc_greedy": "2755",
  73843. "shortnames": [],
  73844. "category": "symbols"
  73845. },
  73846. ":grey_question:": {
  73847. "uc_base": "2754",
  73848. "uc_output": "2754",
  73849. "uc_match": "2754",
  73850. "uc_greedy": "2754",
  73851. "shortnames": [],
  73852. "category": "symbols"
  73853. },
  73854. ":hammer_pick:": {
  73855. "uc_base": "2692",
  73856. "uc_output": "2692",
  73857. "uc_match": "2692-fe0f",
  73858. "uc_greedy": "2692-fe0f",
  73859. "shortnames": [":hammer_and_pick:"],
  73860. "category": "objects"
  73861. },
  73862. ":heart:": {
  73863. "uc_base": "2764",
  73864. "uc_output": "2764",
  73865. "uc_match": "2764-fe0f",
  73866. "uc_greedy": "2764-fe0f",
  73867. "shortnames": [],
  73868. "category": "symbols"
  73869. },
  73870. ":heart_exclamation:": {
  73871. "uc_base": "2763",
  73872. "uc_output": "2763",
  73873. "uc_match": "2763-fe0f",
  73874. "uc_greedy": "2763-fe0f",
  73875. "shortnames": [":heavy_heart_exclamation_mark_ornament:"],
  73876. "category": "symbols"
  73877. },
  73878. ":hearts:": {
  73879. "uc_base": "2665",
  73880. "uc_output": "2665",
  73881. "uc_match": "2665-fe0f",
  73882. "uc_greedy": "2665-fe0f",
  73883. "shortnames": [],
  73884. "category": "symbols"
  73885. },
  73886. ":heavy_check_mark:": {
  73887. "uc_base": "2714",
  73888. "uc_output": "2714",
  73889. "uc_match": "2714-fe0f",
  73890. "uc_greedy": "2714",
  73891. "shortnames": [],
  73892. "category": "symbols"
  73893. },
  73894. ":heavy_division_sign:": {
  73895. "uc_base": "2797",
  73896. "uc_output": "2797",
  73897. "uc_match": "2797",
  73898. "uc_greedy": "2797",
  73899. "shortnames": [],
  73900. "category": "symbols"
  73901. },
  73902. ":heavy_minus_sign:": {
  73903. "uc_base": "2796",
  73904. "uc_output": "2796",
  73905. "uc_match": "2796",
  73906. "uc_greedy": "2796",
  73907. "shortnames": [],
  73908. "category": "symbols"
  73909. },
  73910. ":heavy_multiplication_x:": {
  73911. "uc_base": "2716",
  73912. "uc_output": "2716",
  73913. "uc_match": "2716-fe0f",
  73914. "uc_greedy": "2716",
  73915. "shortnames": [],
  73916. "category": "symbols"
  73917. },
  73918. ":heavy_plus_sign:": {
  73919. "uc_base": "2795",
  73920. "uc_output": "2795",
  73921. "uc_match": "2795",
  73922. "uc_greedy": "2795",
  73923. "shortnames": [],
  73924. "category": "symbols"
  73925. },
  73926. ":helmet_with_cross:": {
  73927. "uc_base": "26d1",
  73928. "uc_output": "26d1",
  73929. "uc_match": "26d1-fe0f",
  73930. "uc_greedy": "26d1-fe0f",
  73931. "shortnames": [":helmet_with_white_cross:"],
  73932. "category": "people"
  73933. },
  73934. ":hotsprings:": {
  73935. "uc_base": "2668",
  73936. "uc_output": "2668",
  73937. "uc_match": "2668-fe0f",
  73938. "uc_greedy": "2668-fe0f",
  73939. "shortnames": [],
  73940. "category": "symbols"
  73941. },
  73942. ":hourglass:": {
  73943. "uc_base": "231b",
  73944. "uc_output": "231b",
  73945. "uc_match": "231b-fe0f",
  73946. "uc_greedy": "231b-fe0f",
  73947. "shortnames": [],
  73948. "category": "objects"
  73949. },
  73950. ":hourglass_flowing_sand:": {
  73951. "uc_base": "23f3",
  73952. "uc_output": "23f3",
  73953. "uc_match": "23f3-fe0f",
  73954. "uc_greedy": "23f3-fe0f",
  73955. "shortnames": [],
  73956. "category": "objects"
  73957. },
  73958. ":ice_skate:": {
  73959. "uc_base": "26f8",
  73960. "uc_output": "26f8",
  73961. "uc_match": "26f8-fe0f",
  73962. "uc_greedy": "26f8-fe0f",
  73963. "shortnames": [],
  73964. "category": "activity"
  73965. },
  73966. ":information_source:": {
  73967. "uc_base": "2139",
  73968. "uc_output": "2139",
  73969. "uc_match": "2139-fe0f",
  73970. "uc_greedy": "2139",
  73971. "shortnames": [],
  73972. "category": "symbols"
  73973. },
  73974. ":interrobang:": {
  73975. "uc_base": "2049",
  73976. "uc_output": "2049",
  73977. "uc_match": "2049-fe0f",
  73978. "uc_greedy": "2049",
  73979. "shortnames": [],
  73980. "category": "symbols"
  73981. },
  73982. ":keyboard:": {
  73983. "uc_base": "2328",
  73984. "uc_output": "2328",
  73985. "uc_match": "2328-fe0f",
  73986. "uc_greedy": "2328-fe0f",
  73987. "shortnames": [],
  73988. "category": "objects"
  73989. },
  73990. ":left_right_arrow:": {
  73991. "uc_base": "2194",
  73992. "uc_output": "2194",
  73993. "uc_match": "2194-fe0f",
  73994. "uc_greedy": "2194",
  73995. "shortnames": [],
  73996. "category": "symbols"
  73997. },
  73998. ":leftwards_arrow_with_hook:": {
  73999. "uc_base": "21a9",
  74000. "uc_output": "21a9",
  74001. "uc_match": "21a9-fe0f",
  74002. "uc_greedy": "21a9",
  74003. "shortnames": [],
  74004. "category": "symbols"
  74005. },
  74006. ":leo:": {
  74007. "uc_base": "264c",
  74008. "uc_output": "264c",
  74009. "uc_match": "264c-fe0f",
  74010. "uc_greedy": "264c-fe0f",
  74011. "shortnames": [],
  74012. "category": "symbols"
  74013. },
  74014. ":libra:": {
  74015. "uc_base": "264e",
  74016. "uc_output": "264e",
  74017. "uc_match": "264e-fe0f",
  74018. "uc_greedy": "264e-fe0f",
  74019. "shortnames": [],
  74020. "category": "symbols"
  74021. },
  74022. ":loop:": {
  74023. "uc_base": "27bf",
  74024. "uc_output": "27bf",
  74025. "uc_match": "27bf",
  74026. "uc_greedy": "27bf",
  74027. "shortnames": [],
  74028. "category": "symbols"
  74029. },
  74030. ":m:": {
  74031. "uc_base": "24c2",
  74032. "uc_output": "24c2",
  74033. "uc_match": "24c2-fe0f",
  74034. "uc_greedy": "24c2-fe0f",
  74035. "shortnames": [],
  74036. "category": "symbols"
  74037. },
  74038. ":male_sign:": {
  74039. "uc_base": "2642",
  74040. "uc_output": "2642",
  74041. "uc_match": "2642-fe0f",
  74042. "uc_greedy": "2642",
  74043. "shortnames": [],
  74044. "category": "symbols"
  74045. },
  74046. ":medical_symbol:": {
  74047. "uc_base": "2695",
  74048. "uc_output": "2695",
  74049. "uc_match": "2695-fe0f",
  74050. "uc_greedy": "2695",
  74051. "shortnames": [],
  74052. "category": "symbols"
  74053. },
  74054. ":mountain:": {
  74055. "uc_base": "26f0",
  74056. "uc_output": "26f0",
  74057. "uc_match": "26f0-fe0f",
  74058. "uc_greedy": "26f0-fe0f",
  74059. "shortnames": [],
  74060. "category": "travel"
  74061. },
  74062. ":negative_squared_cross_mark:": {
  74063. "uc_base": "274e",
  74064. "uc_output": "274e",
  74065. "uc_match": "274e",
  74066. "uc_greedy": "274e",
  74067. "shortnames": [],
  74068. "category": "symbols"
  74069. },
  74070. ":no_entry:": {
  74071. "uc_base": "26d4",
  74072. "uc_output": "26d4",
  74073. "uc_match": "26d4-fe0f",
  74074. "uc_greedy": "26d4-fe0f",
  74075. "shortnames": [],
  74076. "category": "symbols"
  74077. },
  74078. ":o:": {
  74079. "uc_base": "2b55",
  74080. "uc_output": "2b55",
  74081. "uc_match": "2b55-fe0f",
  74082. "uc_greedy": "2b55-fe0f",
  74083. "shortnames": [],
  74084. "category": "symbols"
  74085. },
  74086. ":ophiuchus:": {
  74087. "uc_base": "26ce",
  74088. "uc_output": "26ce",
  74089. "uc_match": "26ce",
  74090. "uc_greedy": "26ce",
  74091. "shortnames": [],
  74092. "category": "symbols"
  74093. },
  74094. ":orthodox_cross:": {
  74095. "uc_base": "2626",
  74096. "uc_output": "2626",
  74097. "uc_match": "2626-fe0f",
  74098. "uc_greedy": "2626",
  74099. "shortnames": [],
  74100. "category": "symbols"
  74101. },
  74102. ":part_alternation_mark:": {
  74103. "uc_base": "303d",
  74104. "uc_output": "303d",
  74105. "uc_match": "303d-fe0f",
  74106. "uc_greedy": "303d-fe0f",
  74107. "shortnames": [],
  74108. "category": "symbols"
  74109. },
  74110. ":partly_sunny:": {
  74111. "uc_base": "26c5",
  74112. "uc_output": "26c5",
  74113. "uc_match": "26c5-fe0f",
  74114. "uc_greedy": "26c5-fe0f",
  74115. "shortnames": [],
  74116. "category": "nature"
  74117. },
  74118. ":pause_button:": {
  74119. "uc_base": "23f8",
  74120. "uc_output": "23f8",
  74121. "uc_match": "23f8-fe0f",
  74122. "uc_greedy": "23f8",
  74123. "shortnames": [":double_vertical_bar:"],
  74124. "category": "symbols"
  74125. },
  74126. ":peace:": {
  74127. "uc_base": "262e",
  74128. "uc_output": "262e",
  74129. "uc_match": "262e-fe0f",
  74130. "uc_greedy": "262e",
  74131. "shortnames": [":peace_symbol:"],
  74132. "category": "symbols"
  74133. },
  74134. ":pencil2:": {
  74135. "uc_base": "270f",
  74136. "uc_output": "270f",
  74137. "uc_match": "270f-fe0f",
  74138. "uc_greedy": "270f-fe0f",
  74139. "shortnames": [],
  74140. "category": "objects"
  74141. },
  74142. ":person_bouncing_ball:": {
  74143. "uc_base": "26f9",
  74144. "uc_output": "26f9",
  74145. "uc_match": "26f9-fe0f",
  74146. "uc_greedy": "26f9-fe0f",
  74147. "shortnames": [":basketball_player:", ":person_with_ball:"],
  74148. "category": "activity"
  74149. },
  74150. ":pick:": {
  74151. "uc_base": "26cf",
  74152. "uc_output": "26cf",
  74153. "uc_match": "26cf-fe0f",
  74154. "uc_greedy": "26cf-fe0f",
  74155. "shortnames": [],
  74156. "category": "objects"
  74157. },
  74158. ":pisces:": {
  74159. "uc_base": "2653",
  74160. "uc_output": "2653",
  74161. "uc_match": "2653-fe0f",
  74162. "uc_greedy": "2653-fe0f",
  74163. "shortnames": [],
  74164. "category": "symbols"
  74165. },
  74166. ":play_pause:": {
  74167. "uc_base": "23ef",
  74168. "uc_output": "23ef",
  74169. "uc_match": "23ef-fe0f",
  74170. "uc_greedy": "23ef",
  74171. "shortnames": [],
  74172. "category": "symbols"
  74173. },
  74174. ":point_up:": {
  74175. "uc_base": "261d",
  74176. "uc_output": "261d",
  74177. "uc_match": "261d-fe0f",
  74178. "uc_greedy": "261d-fe0f",
  74179. "shortnames": [],
  74180. "category": "people"
  74181. },
  74182. ":question:": {
  74183. "uc_base": "2753",
  74184. "uc_output": "2753",
  74185. "uc_match": "2753-fe0f",
  74186. "uc_greedy": "2753-fe0f",
  74187. "shortnames": [],
  74188. "category": "symbols"
  74189. },
  74190. ":radioactive:": {
  74191. "uc_base": "2622",
  74192. "uc_output": "2622",
  74193. "uc_match": "2622-fe0f",
  74194. "uc_greedy": "2622",
  74195. "shortnames": [":radioactive_sign:"],
  74196. "category": "symbols"
  74197. },
  74198. ":raised_hand:": {
  74199. "uc_base": "270b",
  74200. "uc_output": "270b",
  74201. "uc_match": "270b",
  74202. "uc_greedy": "270b",
  74203. "shortnames": [],
  74204. "category": "people"
  74205. },
  74206. ":record_button:": {
  74207. "uc_base": "23fa",
  74208. "uc_output": "23fa",
  74209. "uc_match": "23fa-fe0f",
  74210. "uc_greedy": "23fa",
  74211. "shortnames": [],
  74212. "category": "symbols"
  74213. },
  74214. ":recycle:": {
  74215. "uc_base": "267b",
  74216. "uc_output": "267b",
  74217. "uc_match": "267b-fe0f",
  74218. "uc_greedy": "267b-fe0f",
  74219. "shortnames": [],
  74220. "category": "symbols"
  74221. },
  74222. ":registered:": {
  74223. "uc_base": "00ae",
  74224. "uc_output": "00ae",
  74225. "uc_match": "00ae-fe0f",
  74226. "uc_greedy": "00ae",
  74227. "shortnames": [],
  74228. "category": "symbols"
  74229. },
  74230. ":relaxed:": {
  74231. "uc_base": "263a",
  74232. "uc_output": "263a",
  74233. "uc_match": "263a-fe0f",
  74234. "uc_greedy": "263a-fe0f",
  74235. "shortnames": [],
  74236. "category": "people"
  74237. },
  74238. ":rewind:": {
  74239. "uc_base": "23ea",
  74240. "uc_output": "23ea",
  74241. "uc_match": "23ea-fe0f",
  74242. "uc_greedy": "23ea-fe0f",
  74243. "shortnames": [],
  74244. "category": "symbols"
  74245. },
  74246. ":sagittarius:": {
  74247. "uc_base": "2650",
  74248. "uc_output": "2650",
  74249. "uc_match": "2650-fe0f",
  74250. "uc_greedy": "2650-fe0f",
  74251. "shortnames": [],
  74252. "category": "symbols"
  74253. },
  74254. ":sailboat:": {
  74255. "uc_base": "26f5",
  74256. "uc_output": "26f5",
  74257. "uc_match": "26f5-fe0f",
  74258. "uc_greedy": "26f5-fe0f",
  74259. "shortnames": [],
  74260. "category": "travel"
  74261. },
  74262. ":scales:": {
  74263. "uc_base": "2696",
  74264. "uc_output": "2696",
  74265. "uc_match": "2696-fe0f",
  74266. "uc_greedy": "2696-fe0f",
  74267. "shortnames": [],
  74268. "category": "objects"
  74269. },
  74270. ":scissors:": {
  74271. "uc_base": "2702",
  74272. "uc_output": "2702",
  74273. "uc_match": "2702-fe0f",
  74274. "uc_greedy": "2702-fe0f",
  74275. "shortnames": [],
  74276. "category": "objects"
  74277. },
  74278. ":scorpius:": {
  74279. "uc_base": "264f",
  74280. "uc_output": "264f",
  74281. "uc_match": "264f-fe0f",
  74282. "uc_greedy": "264f-fe0f",
  74283. "shortnames": [],
  74284. "category": "symbols"
  74285. },
  74286. ":secret:": {
  74287. "uc_base": "3299",
  74288. "uc_output": "3299",
  74289. "uc_match": "3299-fe0f",
  74290. "uc_greedy": "3299-fe0f",
  74291. "shortnames": [],
  74292. "category": "symbols"
  74293. },
  74294. ":shamrock:": {
  74295. "uc_base": "2618",
  74296. "uc_output": "2618",
  74297. "uc_match": "2618-fe0f",
  74298. "uc_greedy": "2618-fe0f",
  74299. "shortnames": [],
  74300. "category": "nature"
  74301. },
  74302. ":shinto_shrine:": {
  74303. "uc_base": "26e9",
  74304. "uc_output": "26e9",
  74305. "uc_match": "26e9-fe0f",
  74306. "uc_greedy": "26e9-fe0f",
  74307. "shortnames": [],
  74308. "category": "travel"
  74309. },
  74310. ":skier:": {
  74311. "uc_base": "26f7",
  74312. "uc_output": "26f7",
  74313. "uc_match": "26f7-fe0f",
  74314. "uc_greedy": "26f7-fe0f",
  74315. "shortnames": [],
  74316. "category": "activity"
  74317. },
  74318. ":skull_crossbones:": {
  74319. "uc_base": "2620",
  74320. "uc_output": "2620",
  74321. "uc_match": "2620-fe0f",
  74322. "uc_greedy": "2620-fe0f",
  74323. "shortnames": [":skull_and_crossbones:"],
  74324. "category": "people"
  74325. },
  74326. ":snowflake:": {
  74327. "uc_base": "2744",
  74328. "uc_output": "2744",
  74329. "uc_match": "2744-fe0f",
  74330. "uc_greedy": "2744-fe0f",
  74331. "shortnames": [],
  74332. "category": "nature"
  74333. },
  74334. ":snowman2:": {
  74335. "uc_base": "2603",
  74336. "uc_output": "2603",
  74337. "uc_match": "2603-fe0f",
  74338. "uc_greedy": "2603-fe0f",
  74339. "shortnames": [],
  74340. "category": "nature"
  74341. },
  74342. ":snowman:": {
  74343. "uc_base": "26c4",
  74344. "uc_output": "26c4",
  74345. "uc_match": "26c4-fe0f",
  74346. "uc_greedy": "26c4-fe0f",
  74347. "shortnames": [],
  74348. "category": "nature"
  74349. },
  74350. ":soccer:": {
  74351. "uc_base": "26bd",
  74352. "uc_output": "26bd",
  74353. "uc_match": "26bd-fe0f",
  74354. "uc_greedy": "26bd-fe0f",
  74355. "shortnames": [],
  74356. "category": "activity"
  74357. },
  74358. ":spades:": {
  74359. "uc_base": "2660",
  74360. "uc_output": "2660",
  74361. "uc_match": "2660-fe0f",
  74362. "uc_greedy": "2660-fe0f",
  74363. "shortnames": [],
  74364. "category": "symbols"
  74365. },
  74366. ":sparkle:": {
  74367. "uc_base": "2747",
  74368. "uc_output": "2747",
  74369. "uc_match": "2747-fe0f",
  74370. "uc_greedy": "2747-fe0f",
  74371. "shortnames": [],
  74372. "category": "symbols"
  74373. },
  74374. ":sparkles:": {
  74375. "uc_base": "2728",
  74376. "uc_output": "2728",
  74377. "uc_match": "2728",
  74378. "uc_greedy": "2728",
  74379. "shortnames": [],
  74380. "category": "nature"
  74381. },
  74382. ":star:": {
  74383. "uc_base": "2b50",
  74384. "uc_output": "2b50",
  74385. "uc_match": "2b50-fe0f",
  74386. "uc_greedy": "2b50-fe0f",
  74387. "shortnames": [],
  74388. "category": "nature"
  74389. },
  74390. ":star_and_crescent:": {
  74391. "uc_base": "262a",
  74392. "uc_output": "262a",
  74393. "uc_match": "262a-fe0f",
  74394. "uc_greedy": "262a",
  74395. "shortnames": [],
  74396. "category": "symbols"
  74397. },
  74398. ":star_of_david:": {
  74399. "uc_base": "2721",
  74400. "uc_output": "2721",
  74401. "uc_match": "2721-fe0f",
  74402. "uc_greedy": "2721",
  74403. "shortnames": [],
  74404. "category": "symbols"
  74405. },
  74406. ":stop_button:": {
  74407. "uc_base": "23f9",
  74408. "uc_output": "23f9",
  74409. "uc_match": "23f9-fe0f",
  74410. "uc_greedy": "23f9",
  74411. "shortnames": [],
  74412. "category": "symbols"
  74413. },
  74414. ":stopwatch:": {
  74415. "uc_base": "23f1",
  74416. "uc_output": "23f1",
  74417. "uc_match": "23f1-fe0f",
  74418. "uc_greedy": "23f1-fe0f",
  74419. "shortnames": [],
  74420. "category": "objects"
  74421. },
  74422. ":sunny:": {
  74423. "uc_base": "2600",
  74424. "uc_output": "2600",
  74425. "uc_match": "2600-fe0f",
  74426. "uc_greedy": "2600-fe0f",
  74427. "shortnames": [],
  74428. "category": "nature"
  74429. },
  74430. ":taurus:": {
  74431. "uc_base": "2649",
  74432. "uc_output": "2649",
  74433. "uc_match": "2649-fe0f",
  74434. "uc_greedy": "2649-fe0f",
  74435. "shortnames": [],
  74436. "category": "symbols"
  74437. },
  74438. ":telephone:": {
  74439. "uc_base": "260e",
  74440. "uc_output": "260e",
  74441. "uc_match": "260e-fe0f",
  74442. "uc_greedy": "260e-fe0f",
  74443. "shortnames": [],
  74444. "category": "objects"
  74445. },
  74446. ":tent:": {
  74447. "uc_base": "26fa",
  74448. "uc_output": "26fa",
  74449. "uc_match": "26fa-fe0f",
  74450. "uc_greedy": "26fa-fe0f",
  74451. "shortnames": [],
  74452. "category": "travel"
  74453. },
  74454. ":thunder_cloud_rain:": {
  74455. "uc_base": "26c8",
  74456. "uc_output": "26c8",
  74457. "uc_match": "26c8-fe0f",
  74458. "uc_greedy": "26c8-fe0f",
  74459. "shortnames": [":thunder_cloud_and_rain:"],
  74460. "category": "nature"
  74461. },
  74462. ":timer:": {
  74463. "uc_base": "23f2",
  74464. "uc_output": "23f2",
  74465. "uc_match": "23f2-fe0f",
  74466. "uc_greedy": "23f2-fe0f",
  74467. "shortnames": [":timer_clock:"],
  74468. "category": "objects"
  74469. },
  74470. ":tm:": {
  74471. "uc_base": "2122",
  74472. "uc_output": "2122",
  74473. "uc_match": "2122-fe0f",
  74474. "uc_greedy": "2122",
  74475. "shortnames": [],
  74476. "category": "symbols"
  74477. },
  74478. ":track_next:": {
  74479. "uc_base": "23ed",
  74480. "uc_output": "23ed",
  74481. "uc_match": "23ed-fe0f",
  74482. "uc_greedy": "23ed",
  74483. "shortnames": [":next_track:"],
  74484. "category": "symbols"
  74485. },
  74486. ":track_previous:": {
  74487. "uc_base": "23ee",
  74488. "uc_output": "23ee",
  74489. "uc_match": "23ee-fe0f",
  74490. "uc_greedy": "23ee",
  74491. "shortnames": [":previous_track:"],
  74492. "category": "symbols"
  74493. },
  74494. ":umbrella2:": {
  74495. "uc_base": "2602",
  74496. "uc_output": "2602",
  74497. "uc_match": "2602-fe0f",
  74498. "uc_greedy": "2602-fe0f",
  74499. "shortnames": [],
  74500. "category": "nature"
  74501. },
  74502. ":umbrella:": {
  74503. "uc_base": "2614",
  74504. "uc_output": "2614",
  74505. "uc_match": "2614-fe0f",
  74506. "uc_greedy": "2614-fe0f",
  74507. "shortnames": [],
  74508. "category": "nature"
  74509. },
  74510. ":urn:": {
  74511. "uc_base": "26b1",
  74512. "uc_output": "26b1",
  74513. "uc_match": "26b1-fe0f",
  74514. "uc_greedy": "26b1-fe0f",
  74515. "shortnames": [":funeral_urn:"],
  74516. "category": "objects"
  74517. },
  74518. ":v:": {
  74519. "uc_base": "270c",
  74520. "uc_output": "270c",
  74521. "uc_match": "270c-fe0f",
  74522. "uc_greedy": "270c-fe0f",
  74523. "shortnames": [],
  74524. "category": "people"
  74525. },
  74526. ":virgo:": {
  74527. "uc_base": "264d",
  74528. "uc_output": "264d",
  74529. "uc_match": "264d-fe0f",
  74530. "uc_greedy": "264d-fe0f",
  74531. "shortnames": [],
  74532. "category": "symbols"
  74533. },
  74534. ":warning:": {
  74535. "uc_base": "26a0",
  74536. "uc_output": "26a0",
  74537. "uc_match": "26a0-fe0f",
  74538. "uc_greedy": "26a0",
  74539. "shortnames": [],
  74540. "category": "symbols"
  74541. },
  74542. ":watch:": {
  74543. "uc_base": "231a",
  74544. "uc_output": "231a",
  74545. "uc_match": "231a-fe0f",
  74546. "uc_greedy": "231a-fe0f",
  74547. "shortnames": [],
  74548. "category": "objects"
  74549. },
  74550. ":wavy_dash:": {
  74551. "uc_base": "3030",
  74552. "uc_output": "3030",
  74553. "uc_match": "3030-fe0f",
  74554. "uc_greedy": "3030",
  74555. "shortnames": [],
  74556. "category": "symbols"
  74557. },
  74558. ":wheel_of_dharma:": {
  74559. "uc_base": "2638",
  74560. "uc_output": "2638",
  74561. "uc_match": "2638-fe0f",
  74562. "uc_greedy": "2638",
  74563. "shortnames": [],
  74564. "category": "symbols"
  74565. },
  74566. ":wheelchair:": {
  74567. "uc_base": "267f",
  74568. "uc_output": "267f",
  74569. "uc_match": "267f-fe0f",
  74570. "uc_greedy": "267f-fe0f",
  74571. "shortnames": [],
  74572. "category": "symbols"
  74573. },
  74574. ":white_check_mark:": {
  74575. "uc_base": "2705",
  74576. "uc_output": "2705",
  74577. "uc_match": "2705",
  74578. "uc_greedy": "2705",
  74579. "shortnames": [],
  74580. "category": "symbols"
  74581. },
  74582. ":white_circle:": {
  74583. "uc_base": "26aa",
  74584. "uc_output": "26aa",
  74585. "uc_match": "26aa-fe0f",
  74586. "uc_greedy": "26aa-fe0f",
  74587. "shortnames": [],
  74588. "category": "symbols"
  74589. },
  74590. ":white_large_square:": {
  74591. "uc_base": "2b1c",
  74592. "uc_output": "2b1c",
  74593. "uc_match": "2b1c-fe0f",
  74594. "uc_greedy": "2b1c-fe0f",
  74595. "shortnames": [],
  74596. "category": "symbols"
  74597. },
  74598. ":white_medium_small_square:": {
  74599. "uc_base": "25fd",
  74600. "uc_output": "25fd",
  74601. "uc_match": "25fd-fe0f",
  74602. "uc_greedy": "25fd-fe0f",
  74603. "shortnames": [],
  74604. "category": "symbols"
  74605. },
  74606. ":white_medium_square:": {
  74607. "uc_base": "25fb",
  74608. "uc_output": "25fb",
  74609. "uc_match": "25fb-fe0f",
  74610. "uc_greedy": "25fb",
  74611. "shortnames": [],
  74612. "category": "symbols"
  74613. },
  74614. ":white_small_square:": {
  74615. "uc_base": "25ab",
  74616. "uc_output": "25ab",
  74617. "uc_match": "25ab-fe0f",
  74618. "uc_greedy": "25ab",
  74619. "shortnames": [],
  74620. "category": "symbols"
  74621. },
  74622. ":writing_hand:": {
  74623. "uc_base": "270d",
  74624. "uc_output": "270d",
  74625. "uc_match": "270d-fe0f",
  74626. "uc_greedy": "270d-fe0f",
  74627. "shortnames": [],
  74628. "category": "people"
  74629. },
  74630. ":x:": {
  74631. "uc_base": "274c",
  74632. "uc_output": "274c",
  74633. "uc_match": "274c",
  74634. "uc_greedy": "274c",
  74635. "shortnames": [],
  74636. "category": "symbols"
  74637. },
  74638. ":yin_yang:": {
  74639. "uc_base": "262f",
  74640. "uc_output": "262f",
  74641. "uc_match": "262f-fe0f",
  74642. "uc_greedy": "262f",
  74643. "shortnames": [],
  74644. "category": "symbols"
  74645. },
  74646. ":zap:": {
  74647. "uc_base": "26a1",
  74648. "uc_output": "26a1",
  74649. "uc_match": "26a1-fe0f",
  74650. "uc_greedy": "26a1-fe0f",
  74651. "shortnames": [],
  74652. "category": "nature"
  74653. }
  74654. };
  74655. const ascii_list = {
  74656. '*\\0/*': '1f646',
  74657. '*\\O/*': '1f646',
  74658. '-___-': '1f611',
  74659. ':\'-)': '1f602',
  74660. '\':-)': '1f605',
  74661. '\':-D': '1f605',
  74662. '>:-)': '1f606',
  74663. '\':-(': '1f613',
  74664. '>:-(': '1f620',
  74665. ':\'-(': '1f622',
  74666. 'O:-)': '1f607',
  74667. '0:-3': '1f607',
  74668. '0:-)': '1f607',
  74669. '0;^)': '1f607',
  74670. 'O;-)': '1f607',
  74671. '0;-)': '1f607',
  74672. 'O:-3': '1f607',
  74673. '-__-': '1f611',
  74674. ':-Þ': '1f61b',
  74675. '</3': '1f494',
  74676. ':\')': '1f602',
  74677. ':-D': '1f603',
  74678. '\':)': '1f605',
  74679. '\'=)': '1f605',
  74680. '\':D': '1f605',
  74681. '\'=D': '1f605',
  74682. '>:)': '1f606',
  74683. '>;)': '1f606',
  74684. '>=)': '1f606',
  74685. ';-)': '1f609',
  74686. '*-)': '1f609',
  74687. ';-]': '1f609',
  74688. ';^)': '1f609',
  74689. '\':(': '1f613',
  74690. '\'=(': '1f613',
  74691. ':-*': '1f618',
  74692. ':^*': '1f618',
  74693. '>:P': '1f61c',
  74694. 'X-P': '1f61c',
  74695. '>:[': '1f61e',
  74696. ':-(': '1f61e',
  74697. ':-[': '1f61e',
  74698. '>:(': '1f620',
  74699. ':\'(': '1f622',
  74700. ';-(': '1f622',
  74701. '>.<': '1f623',
  74702. '#-)': '1f635',
  74703. '%-)': '1f635',
  74704. 'X-)': '1f635',
  74705. '\\0/': '1f646',
  74706. '\\O/': '1f646',
  74707. '0:3': '1f607',
  74708. '0:)': '1f607',
  74709. 'O:)': '1f607',
  74710. 'O=)': '1f607',
  74711. 'O:3': '1f607',
  74712. 'B-)': '1f60e',
  74713. '8-)': '1f60e',
  74714. 'B-D': '1f60e',
  74715. '8-D': '1f60e',
  74716. '-_-': '1f611',
  74717. '>:\\': '1f615',
  74718. '>:/': '1f615',
  74719. ':-/': '1f615',
  74720. ':-.': '1f615',
  74721. ':-P': '1f61b',
  74722. ':Þ': '1f61b',
  74723. ':-b': '1f61b',
  74724. ':-O': '1f62e',
  74725. 'O_O': '1f62e',
  74726. '>:O': '1f62e',
  74727. ':-X': '1f636',
  74728. ':-#': '1f636',
  74729. ':-)': '1f642',
  74730. '(y)': '1f44d',
  74731. '<3': '2764',
  74732. ':D': '1f603',
  74733. '=D': '1f603',
  74734. ';)': '1f609',
  74735. '*)': '1f609',
  74736. ';]': '1f609',
  74737. ';D': '1f609',
  74738. ':*': '1f618',
  74739. '=*': '1f618',
  74740. ':(': '1f61e',
  74741. ':[': '1f61e',
  74742. '=(': '1f61e',
  74743. ':@': '1f620',
  74744. ';(': '1f622',
  74745. 'D:': '1f628',
  74746. ':$': '1f633',
  74747. '=$': '1f633',
  74748. '#)': '1f635',
  74749. '%)': '1f635',
  74750. 'X)': '1f635',
  74751. 'B)': '1f60e',
  74752. '8)': '1f60e',
  74753. ':/': '1f615',
  74754. ':\\': '1f615',
  74755. '=/': '1f615',
  74756. '=\\': '1f615',
  74757. ':L': '1f615',
  74758. '=L': '1f615',
  74759. ':P': '1f61b',
  74760. '=P': '1f61b',
  74761. ':b': '1f61b',
  74762. ':O': '1f62e',
  74763. ':X': '1f636',
  74764. ':#': '1f636',
  74765. '=X': '1f636',
  74766. '=#': '1f636',
  74767. ':)': '1f642',
  74768. '=]': '1f642',
  74769. '=)': '1f642',
  74770. ':]': '1f642'
  74771. };
  74772. let shortnames = [];
  74773. for (var emoji in emoji_list) {
  74774. if (!Object.prototype.hasOwnProperty.call(emoji_list, emoji) || emoji === '') continue;
  74775. shortnames.push(emoji.replace(/[+]/g, "\\$&"));
  74776. for (var i = 0; i < emoji_list[emoji].shortnames.length; i++) {
  74777. shortnames.push(emoji_list[emoji].shortnames[i].replace(/[+]/g, "\\$&"));
  74778. }
  74779. }
  74780. shortnames = shortnames.join('|');
  74781. const SHORTNAMES_REGEX = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(" + shortnames + ")", "gi");
  74782. const 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|\\=#|\\:\\)|\\=\\]|\\=\\)|\\:\\])';
  74783. const ASCII_REPLACE_REGEX = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)" + ASCII_REGEX + "(?=\\s|$|[!,.?]))", "gi");
  74784. function convert(unicode) {
  74785. /* For converting unicode code points and code pairs
  74786. * to their respective characters
  74787. */
  74788. if (unicode.indexOf("-") > -1) {
  74789. const parts = [],
  74790. s = unicode.split('-');
  74791. for (let i = 0; i < s.length; i++) {
  74792. let part = parseInt(s[i], 16);
  74793. if (part >= 0x10000 && part <= 0x10FFFF) {
  74794. const hi = Math.floor((part - 0x10000) / 0x400) + 0xD800;
  74795. const lo = (part - 0x10000) % 0x400 + 0xDC00;
  74796. part = String.fromCharCode(hi) + String.fromCharCode(lo);
  74797. } else {
  74798. part = String.fromCharCode(part);
  74799. }
  74800. parts.push(part);
  74801. }
  74802. return parts.join('');
  74803. }
  74804. return twemoji.default.convert.fromCodePoint(unicode);
  74805. }
  74806. u.shortnameToUnicode = function (str) {
  74807. /* will output unicode from shortname
  74808. * useful for sending emojis back to mobile devices
  74809. */
  74810. // Replace regular shortnames first
  74811. str = str.replace(SHORTNAMES_REGEX, shortname => {
  74812. if (typeof shortname === 'undefined' || shortname === '' || !(shortname in emoji_list)) {
  74813. // if the shortname doesnt exist just return the entire matchhju
  74814. return shortname;
  74815. }
  74816. const unicode = emoji_list[shortname].uc_output.toUpperCase();
  74817. return convert(unicode);
  74818. }); // Also replace ASCII smileys
  74819. str = str.replace(ASCII_REPLACE_REGEX, (entire, m1, m2, m3) => {
  74820. if (typeof m3 === 'undefined' || m3 === '' || !(u.unescapeHTML(m3) in ascii_list)) {
  74821. // if the ascii doesnt exist just return the entire match
  74822. return entire;
  74823. }
  74824. m3 = u.unescapeHTML(m3);
  74825. const unicode = ascii_list[m3].toUpperCase();
  74826. return m2 + convert(unicode);
  74827. });
  74828. return str;
  74829. };
  74830. u.addEmoji = function (_converse, text) {
  74831. if (_converse.use_system_emojis) {
  74832. return u.shortnameToUnicode(text);
  74833. } else {
  74834. return twemoji.default.parse(text);
  74835. }
  74836. };
  74837. u.getEmojisByCategory = function (_converse) {
  74838. /* Return a dict of emojis with the categories as keys and
  74839. * lists of emojis in that category as values.
  74840. */
  74841. if (_.isUndefined(_converse.emojis_by_category)) {
  74842. const emojis = _.values(_.mapValues(emoji_list, function (value, key, o) {
  74843. value._shortname = key;
  74844. return value;
  74845. }));
  74846. const tones = [':tone1:', ':tone2:', ':tone3:', ':tone4:', ':tone5:'];
  74847. const excluded = [':kiss_ww:', ':kiss_mm:', ':kiss_woman_man:'];
  74848. const excluded_substrings = [':woman', ':man', ':women_', ':men_', '_man_', '_woman_', '_woman:', '_man:'];
  74849. const excluded_categories = ['modifier', 'regional'];
  74850. const categories = _.difference(_.uniq(_.map(emojis, _.partial(_.get, _, 'category'))), excluded_categories);
  74851. const emojis_by_category = {};
  74852. _.forEach(categories, cat => {
  74853. let list = _.sortBy(_.filter(emojis, ['category', cat]), ['uc_base']);
  74854. list = _.filter(list, item => !_.includes(_.concat(tones, excluded), item._shortname) && !_.some(excluded_substrings, _.partial(_.includes, item._shortname)));
  74855. if (cat === 'people') {
  74856. const idx = _.findIndex(list, ['uc_base', '1f600']);
  74857. list = _.union(_.slice(list, idx), _.slice(list, 0, idx + 1));
  74858. } else if (cat === 'activity') {
  74859. list = _.union(_.slice(list, 27 - 1), _.slice(list, 0, 27));
  74860. } else if (cat === 'objects') {
  74861. list = _.union(_.slice(list, 24 - 1), _.slice(list, 0, 24));
  74862. } else if (cat === 'travel') {
  74863. list = _.union(_.slice(list, 17 - 1), _.slice(list, 0, 17));
  74864. } else if (cat === 'symbols') {
  74865. list = _.union(_.slice(list, 60 - 1), _.slice(list, 0, 60));
  74866. }
  74867. emojis_by_category[cat] = list;
  74868. });
  74869. _converse.emojis_by_category = emojis_by_category;
  74870. }
  74871. return _converse.emojis_by_category;
  74872. };
  74873. u.getTonedEmojis = function (_converse) {
  74874. _converse.toned_emojis = _.uniq(_.map(_.filter(u.getEmojisByCategory(_converse).people, person => _.includes(person._shortname, '_tone')), person => person._shortname.replace(/_tone[1-5]/, '')));
  74875. return _converse.toned_emojis;
  74876. };
  74877. u.getEmojiRenderer = function (_converse) {
  74878. return _converse.use_system_emojis ? u.shortnameToUnicode : _.flow(u.shortnameToUnicode, twemoji.default.parse);
  74879. };
  74880. return u;
  74881. });
  74882. /***/ }),
  74883. /***/ "./src/utils/form.js":
  74884. /*!***************************!*\
  74885. !*** ./src/utils/form.js ***!
  74886. \***************************/
  74887. /*! no static exports found */
  74888. /***/ (function(module, exports, __webpack_require__) {
  74889. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  74890. // http://conversejs.org
  74891. //
  74892. // This is the utilities module.
  74893. //
  74894. // Copyright (c) 2013-2018, Jan-Carel Brand <jc@opkode.com>
  74895. // Licensed under the Mozilla Public License (MPLv2)
  74896. //
  74897. /*global define, escape, Jed */
  74898. (function (root, factory) {
  74899. !(__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),
  74900. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  74901. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  74902. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  74903. })(this, 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) {
  74904. "use strict";
  74905. var XFORM_TYPE_MAP = {
  74906. 'text-private': 'password',
  74907. 'text-single': 'text',
  74908. 'fixed': 'label',
  74909. 'boolean': 'checkbox',
  74910. 'hidden': 'hidden',
  74911. 'jid-multi': 'textarea',
  74912. 'list-single': 'dropdown',
  74913. 'list-multi': 'dropdown'
  74914. };
  74915. u.webForm2xForm = function (field) {
  74916. /* Takes an HTML DOM and turns it into an XForm field.
  74917. *
  74918. * Parameters:
  74919. * (DOMElement) field - the field to convert
  74920. */
  74921. let value;
  74922. if (field.getAttribute('type') === 'checkbox') {
  74923. value = field.checked && 1 || 0;
  74924. } else if (field.tagName == "TEXTAREA") {
  74925. value = _.filter(field.value.split('\n'), _.trim);
  74926. } else if (field.tagName == "SELECT") {
  74927. value = u.getSelectValues(field);
  74928. } else {
  74929. value = field.value;
  74930. }
  74931. return u.stringToNode(tpl_field({
  74932. 'name': field.getAttribute('name'),
  74933. 'value': value
  74934. }));
  74935. };
  74936. u.xForm2webForm = function (field, stanza, domain) {
  74937. /* Takes a field in XMPP XForm (XEP-004: Data Forms) format
  74938. * and turns it into an HTML field.
  74939. *
  74940. * Returns either text or a DOM element (which is not ideal, but fine
  74941. * for now).
  74942. *
  74943. * Parameters:
  74944. * (XMLElement) field - the field to convert
  74945. */
  74946. if (field.getAttribute('type')) {
  74947. if (field.getAttribute('type') === 'list-single' || field.getAttribute('type') === 'list-multi') {
  74948. const values = _.map(u.queryChildren(field, 'value'), _.partial(_.get, _, 'textContent'));
  74949. const options = _.map(u.queryChildren(field, 'option'), function (option) {
  74950. const value = _.get(option.querySelector('value'), 'textContent');
  74951. return tpl_select_option({
  74952. 'value': value,
  74953. 'label': option.getAttribute('label'),
  74954. 'selected': _.includes(values, value),
  74955. 'required': !_.isNil(field.querySelector('required'))
  74956. });
  74957. });
  74958. return tpl_form_select({
  74959. 'id': u.getUniqueId(),
  74960. 'name': field.getAttribute('var'),
  74961. 'label': field.getAttribute('label'),
  74962. 'options': options.join(''),
  74963. 'multiple': field.getAttribute('type') === 'list-multi',
  74964. 'required': !_.isNil(field.querySelector('required'))
  74965. });
  74966. } else if (field.getAttribute('type') === 'fixed') {
  74967. const text = _.get(field.querySelector('value'), 'textContent');
  74968. return '<p class="form-help">' + text + '</p>';
  74969. } else if (field.getAttribute('type') === 'jid-multi') {
  74970. return tpl_form_textarea({
  74971. 'name': field.getAttribute('var'),
  74972. 'label': field.getAttribute('label') || '',
  74973. 'value': _.get(field.querySelector('value'), 'textContent'),
  74974. 'required': !_.isNil(field.querySelector('required'))
  74975. });
  74976. } else if (field.getAttribute('type') === 'boolean') {
  74977. return tpl_form_checkbox({
  74978. 'id': u.getUniqueId(),
  74979. 'name': field.getAttribute('var'),
  74980. 'label': field.getAttribute('label') || '',
  74981. 'checked': _.get(field.querySelector('value'), 'textContent') === "1" && 'checked="1"' || '',
  74982. 'required': !_.isNil(field.querySelector('required'))
  74983. });
  74984. } else if (field.getAttribute('var') === 'url') {
  74985. return tpl_form_url({
  74986. 'label': field.getAttribute('label') || '',
  74987. 'value': _.get(field.querySelector('value'), 'textContent')
  74988. });
  74989. } else if (field.getAttribute('var') === 'username') {
  74990. return tpl_form_username({
  74991. 'domain': ' @' + domain,
  74992. 'name': field.getAttribute('var'),
  74993. 'type': XFORM_TYPE_MAP[field.getAttribute('type')],
  74994. 'label': field.getAttribute('label') || '',
  74995. 'value': _.get(field.querySelector('value'), 'textContent'),
  74996. 'required': !_.isNil(field.querySelector('required'))
  74997. });
  74998. } else {
  74999. return tpl_form_input({
  75000. 'id': u.getUniqueId(),
  75001. 'label': field.getAttribute('label') || '',
  75002. 'name': field.getAttribute('var'),
  75003. 'placeholder': null,
  75004. 'required': !_.isNil(field.querySelector('required')),
  75005. 'type': XFORM_TYPE_MAP[field.getAttribute('type')],
  75006. 'value': _.get(field.querySelector('value'), 'textContent')
  75007. });
  75008. }
  75009. } else {
  75010. if (field.getAttribute('var') === 'ocr') {
  75011. // Captcha
  75012. const uri = field.querySelector('uri');
  75013. const el = sizzle('data[cid="' + uri.textContent.replace(/^cid:/, '') + '"]', stanza)[0];
  75014. return tpl_form_captcha({
  75015. 'label': field.getAttribute('label'),
  75016. 'name': field.getAttribute('var'),
  75017. 'data': _.get(el, 'textContent'),
  75018. 'type': uri.getAttribute('type'),
  75019. 'required': !_.isNil(field.querySelector('required'))
  75020. });
  75021. }
  75022. }
  75023. };
  75024. return u;
  75025. });
  75026. /***/ }),
  75027. /***/ "./src/utils/muc.js":
  75028. /*!**************************!*\
  75029. !*** ./src/utils/muc.js ***!
  75030. \**************************/
  75031. /*! no static exports found */
  75032. /***/ (function(module, exports, __webpack_require__) {
  75033. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Converse.js (A browser based XMPP chat client)
  75034. // http://conversejs.org
  75035. //
  75036. // This is the utilities module.
  75037. //
  75038. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  75039. // Licensed under the Mozilla Public License (MPLv2)
  75040. //
  75041. /*global define, escape, Jed */
  75042. (function (root, factory) {
  75043. !(__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),
  75044. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  75045. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  75046. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  75047. })(this, function (converse, u) {
  75048. "use strict";
  75049. const _converse$env = converse.env,
  75050. Strophe = _converse$env.Strophe,
  75051. sizzle = _converse$env.sizzle,
  75052. _ = _converse$env._;
  75053. u.computeAffiliationsDelta = function computeAffiliationsDelta(exclude_existing, remove_absentees, new_list, old_list) {
  75054. /* Given two lists of objects with 'jid', 'affiliation' and
  75055. * 'reason' properties, return a new list containing
  75056. * those objects that are new, changed or removed
  75057. * (depending on the 'remove_absentees' boolean).
  75058. *
  75059. * The affiliations for new and changed members stay the
  75060. * same, for removed members, the affiliation is set to 'none'.
  75061. *
  75062. * The 'reason' property is not taken into account when
  75063. * comparing whether affiliations have been changed.
  75064. *
  75065. * Parameters:
  75066. * (Boolean) exclude_existing: Indicates whether JIDs from
  75067. * the new list which are also in the old list
  75068. * (regardless of affiliation) should be excluded
  75069. * from the delta. One reason to do this
  75070. * would be when you want to add a JID only if it
  75071. * doesn't have *any* existing affiliation at all.
  75072. * (Boolean) remove_absentees: Indicates whether JIDs
  75073. * from the old list which are not in the new list
  75074. * should be considered removed and therefore be
  75075. * included in the delta with affiliation set
  75076. * to 'none'.
  75077. * (Array) new_list: Array containing the new affiliations
  75078. * (Array) old_list: Array containing the old affiliations
  75079. */
  75080. const new_jids = _.map(new_list, 'jid');
  75081. const old_jids = _.map(old_list, 'jid'); // Get the new affiliations
  75082. let delta = _.map(_.difference(new_jids, old_jids), jid => new_list[_.indexOf(new_jids, jid)]);
  75083. if (!exclude_existing) {
  75084. // Get the changed affiliations
  75085. delta = delta.concat(_.filter(new_list, function (item) {
  75086. const idx = _.indexOf(old_jids, item.jid);
  75087. if (idx >= 0) {
  75088. return item.affiliation !== old_list[idx].affiliation;
  75089. }
  75090. return false;
  75091. }));
  75092. }
  75093. if (remove_absentees) {
  75094. // Get the removed affiliations
  75095. delta = delta.concat(_.map(_.difference(old_jids, new_jids), jid => ({
  75096. 'jid': jid,
  75097. 'affiliation': 'none'
  75098. })));
  75099. }
  75100. return delta;
  75101. };
  75102. u.parseMemberListIQ = function parseMemberListIQ(iq) {
  75103. /* Given an IQ stanza with a member list, create an array of member objects.
  75104. */
  75105. return _.map(sizzle(`query[xmlns="${Strophe.NS.MUC_ADMIN}"] item`, iq), item => {
  75106. const data = {
  75107. 'affiliation': item.getAttribute('affiliation')
  75108. };
  75109. const jid = item.getAttribute('jid');
  75110. if (u.isValidJID(jid)) {
  75111. data['jid'] = jid;
  75112. } else {
  75113. // XXX: Prosody sends nick for the jid attribute value
  75114. // Perhaps for anonymous room?
  75115. data['nick'] = jid;
  75116. }
  75117. const nick = item.getAttribute('nick');
  75118. if (nick) {
  75119. data['nick'] = nick;
  75120. }
  75121. const role = item.getAttribute('role');
  75122. if (role) {
  75123. data['role'] = nick;
  75124. }
  75125. return data;
  75126. });
  75127. };
  75128. });
  75129. /***/ }),
  75130. /***/ "awesomplete":
  75131. /*!******************************!*\
  75132. !*** external "awesomplete" ***!
  75133. \******************************/
  75134. /*! no static exports found */
  75135. /***/ (function(module, exports) {
  75136. module.exports = awesomplete;
  75137. /***/ }),
  75138. /***/ "backbone.browserStorage":
  75139. /*!******************************************!*\
  75140. !*** external "backbone.browserStorage" ***!
  75141. \******************************************/
  75142. /*! no static exports found */
  75143. /***/ (function(module, exports) {
  75144. module.exports = backbone.browserStorage;
  75145. /***/ }),
  75146. /***/ "backbone.overview":
  75147. /*!************************************!*\
  75148. !*** external "backbone.overview" ***!
  75149. \************************************/
  75150. /*! no static exports found */
  75151. /***/ (function(module, exports) {
  75152. module.exports = backbone.overview;
  75153. /***/ }),
  75154. /***/ "es6-promise":
  75155. /*!******************************!*\
  75156. !*** external "es6-promise" ***!
  75157. \******************************/
  75158. /*! no static exports found */
  75159. /***/ (function(module, exports) {
  75160. module.exports = es6-promise;
  75161. /***/ }),
  75162. /***/ "lodash":
  75163. /*!*************************!*\
  75164. !*** external "lodash" ***!
  75165. \*************************/
  75166. /*! no static exports found */
  75167. /***/ (function(module, exports) {
  75168. module.exports = lodash;
  75169. /***/ }),
  75170. /***/ "lodash.converter":
  75171. /*!***********************************!*\
  75172. !*** external "lodash.converter" ***!
  75173. \***********************************/
  75174. /*! no static exports found */
  75175. /***/ (function(module, exports) {
  75176. module.exports = lodash.converter;
  75177. /***/ }),
  75178. /***/ "lodash.noconflict":
  75179. /*!************************************!*\
  75180. !*** external "lodash.noconflict" ***!
  75181. \************************************/
  75182. /*! no static exports found */
  75183. /***/ (function(module, exports) {
  75184. module.exports = lodash.noconflict;
  75185. /***/ }),
  75186. /***/ "moment":
  75187. /*!*************************!*\
  75188. !*** external "moment" ***!
  75189. \*************************/
  75190. /*! no static exports found */
  75191. /***/ (function(module, exports) {
  75192. module.exports = moment;
  75193. /***/ })
  75194. /******/ });
  75195. //# sourceMappingURL=converse-no-dependencies.js.map