Açıklama Yok

formatting.php 323KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105
  1. <?php
  2. /**
  3. * Main WordPress Formatting API.
  4. *
  5. * Handles many functions for formatting output.
  6. *
  7. * @package WordPress
  8. */
  9. /**
  10. * Replaces common plain text characters with formatted entities.
  11. *
  12. * Returns given text with transformations of quotes into smart quotes, apostrophes,
  13. * dashes, ellipses, the trademark symbol, and the multiplication symbol.
  14. *
  15. * As an example,
  16. *
  17. * 'cause today's effort makes it worth tomorrow's "holiday" ...
  18. *
  19. * Becomes:
  20. *
  21. * &#8217;cause today&#8217;s effort makes it worth tomorrow&#8217;s &#8220;holiday&#8221; &#8230;
  22. *
  23. * Code within certain HTML blocks are skipped.
  24. *
  25. * Do not use this function before the {@see 'init'} action hook; everything will break.
  26. *
  27. * @since 0.71
  28. *
  29. * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases.
  30. * @global array $shortcode_tags
  31. *
  32. * @param string $text The text to be formatted.
  33. * @param bool $reset Set to true for unit testing. Translated patterns will reset.
  34. * @return string The string replaced with HTML entities.
  35. */
  36. function wptexturize( $text, $reset = false ) {
  37. global $wp_cockneyreplace, $shortcode_tags;
  38. static $static_characters = null,
  39. $static_replacements = null,
  40. $dynamic_characters = null,
  41. $dynamic_replacements = null,
  42. $default_no_texturize_tags = null,
  43. $default_no_texturize_shortcodes = null,
  44. $run_texturize = true,
  45. $apos = null,
  46. $prime = null,
  47. $double_prime = null,
  48. $opening_quote = null,
  49. $closing_quote = null,
  50. $opening_single_quote = null,
  51. $closing_single_quote = null,
  52. $open_q_flag = '<!--oq-->',
  53. $open_sq_flag = '<!--osq-->',
  54. $apos_flag = '<!--apos-->';
  55. // If there's nothing to do, just stop.
  56. if ( empty( $text ) || false === $run_texturize ) {
  57. return $text;
  58. }
  59. // Set up static variables. Run once only.
  60. if ( $reset || ! isset( $static_characters ) ) {
  61. /**
  62. * Filters whether to skip running wptexturize().
  63. *
  64. * Returning false from the filter will effectively short-circuit wptexturize()
  65. * and return the original text passed to the function instead.
  66. *
  67. * The filter runs only once, the first time wptexturize() is called.
  68. *
  69. * @since 4.0.0
  70. *
  71. * @see wptexturize()
  72. *
  73. * @param bool $run_texturize Whether to short-circuit wptexturize().
  74. */
  75. $run_texturize = apply_filters( 'run_wptexturize', $run_texturize );
  76. if ( false === $run_texturize ) {
  77. return $text;
  78. }
  79. /* translators: Opening curly double quote. */
  80. $opening_quote = _x( '&#8220;', 'opening curly double quote' );
  81. /* translators: Closing curly double quote. */
  82. $closing_quote = _x( '&#8221;', 'closing curly double quote' );
  83. /* translators: Apostrophe, for example in 'cause or can't. */
  84. $apos = _x( '&#8217;', 'apostrophe' );
  85. /* translators: Prime, for example in 9' (nine feet). */
  86. $prime = _x( '&#8242;', 'prime' );
  87. /* translators: Double prime, for example in 9" (nine inches). */
  88. $double_prime = _x( '&#8243;', 'double prime' );
  89. /* translators: Opening curly single quote. */
  90. $opening_single_quote = _x( '&#8216;', 'opening curly single quote' );
  91. /* translators: Closing curly single quote. */
  92. $closing_single_quote = _x( '&#8217;', 'closing curly single quote' );
  93. /* translators: En dash. */
  94. $en_dash = _x( '&#8211;', 'en dash' );
  95. /* translators: Em dash. */
  96. $em_dash = _x( '&#8212;', 'em dash' );
  97. $default_no_texturize_tags = array( 'pre', 'code', 'kbd', 'style', 'script', 'tt' );
  98. $default_no_texturize_shortcodes = array( 'code' );
  99. // If a plugin has provided an autocorrect array, use it.
  100. if ( isset( $wp_cockneyreplace ) ) {
  101. $cockney = array_keys( $wp_cockneyreplace );
  102. $cockneyreplace = array_values( $wp_cockneyreplace );
  103. } else {
  104. /*
  105. * translators: This is a comma-separated list of words that defy the syntax of quotations in normal use,
  106. * for example... 'We do not have enough words yet'... is a typical quoted phrase. But when we write
  107. * lines of code 'til we have enough of 'em, then we need to insert apostrophes instead of quotes.
  108. */
  109. $cockney = explode(
  110. ',',
  111. _x(
  112. "'tain't,'twere,'twas,'tis,'twill,'til,'bout,'nuff,'round,'cause,'em",
  113. 'Comma-separated list of words to texturize in your language'
  114. )
  115. );
  116. $cockneyreplace = explode(
  117. ',',
  118. _x(
  119. '&#8217;tain&#8217;t,&#8217;twere,&#8217;twas,&#8217;tis,&#8217;twill,&#8217;til,&#8217;bout,&#8217;nuff,&#8217;round,&#8217;cause,&#8217;em',
  120. 'Comma-separated list of replacement words in your language'
  121. )
  122. );
  123. }
  124. $static_characters = array_merge( array( '...', '``', '\'\'', ' (tm)' ), $cockney );
  125. $static_replacements = array_merge( array( '&#8230;', $opening_quote, $closing_quote, ' &#8482;' ), $cockneyreplace );
  126. // Pattern-based replacements of characters.
  127. // Sort the remaining patterns into several arrays for performance tuning.
  128. $dynamic_characters = array(
  129. 'apos' => array(),
  130. 'quote' => array(),
  131. 'dash' => array(),
  132. );
  133. $dynamic_replacements = array(
  134. 'apos' => array(),
  135. 'quote' => array(),
  136. 'dash' => array(),
  137. );
  138. $dynamic = array();
  139. $spaces = wp_spaces_regexp();
  140. // '99' and '99" are ambiguous among other patterns; assume it's an abbreviated year at the end of a quotation.
  141. if ( "'" !== $apos || "'" !== $closing_single_quote ) {
  142. $dynamic[ '/\'(\d\d)\'(?=\Z|[.,:;!?)}\-\]]|&gt;|' . $spaces . ')/' ] = $apos_flag . '$1' . $closing_single_quote;
  143. }
  144. if ( "'" !== $apos || '"' !== $closing_quote ) {
  145. $dynamic[ '/\'(\d\d)"(?=\Z|[.,:;!?)}\-\]]|&gt;|' . $spaces . ')/' ] = $apos_flag . '$1' . $closing_quote;
  146. }
  147. // '99 '99s '99's (apostrophe) But never '9 or '99% or '999 or '99.0.
  148. if ( "'" !== $apos ) {
  149. $dynamic['/\'(?=\d\d(?:\Z|(?![%\d]|[.,]\d)))/'] = $apos_flag;
  150. }
  151. // Quoted numbers like '0.42'.
  152. if ( "'" !== $opening_single_quote && "'" !== $closing_single_quote ) {
  153. $dynamic[ '/(?<=\A|' . $spaces . ')\'(\d[.,\d]*)\'/' ] = $open_sq_flag . '$1' . $closing_single_quote;
  154. }
  155. // Single quote at start, or preceded by (, {, <, [, ", -, or spaces.
  156. if ( "'" !== $opening_single_quote ) {
  157. $dynamic[ '/(?<=\A|[([{"\-]|&lt;|' . $spaces . ')\'/' ] = $open_sq_flag;
  158. }
  159. // Apostrophe in a word. No spaces, double apostrophes, or other punctuation.
  160. if ( "'" !== $apos ) {
  161. $dynamic[ '/(?<!' . $spaces . ')\'(?!\Z|[.,:;!?"\'(){}[\]\-]|&[lg]t;|' . $spaces . ')/' ] = $apos_flag;
  162. }
  163. $dynamic_characters['apos'] = array_keys( $dynamic );
  164. $dynamic_replacements['apos'] = array_values( $dynamic );
  165. $dynamic = array();
  166. // Quoted numbers like "42".
  167. if ( '"' !== $opening_quote && '"' !== $closing_quote ) {
  168. $dynamic[ '/(?<=\A|' . $spaces . ')"(\d[.,\d]*)"/' ] = $open_q_flag . '$1' . $closing_quote;
  169. }
  170. // Double quote at start, or preceded by (, {, <, [, -, or spaces, and not followed by spaces.
  171. if ( '"' !== $opening_quote ) {
  172. $dynamic[ '/(?<=\A|[([{\-]|&lt;|' . $spaces . ')"(?!' . $spaces . ')/' ] = $open_q_flag;
  173. }
  174. $dynamic_characters['quote'] = array_keys( $dynamic );
  175. $dynamic_replacements['quote'] = array_values( $dynamic );
  176. $dynamic = array();
  177. // Dashes and spaces.
  178. $dynamic['/---/'] = $em_dash;
  179. $dynamic[ '/(?<=^|' . $spaces . ')--(?=$|' . $spaces . ')/' ] = $em_dash;
  180. $dynamic['/(?<!xn)--/'] = $en_dash;
  181. $dynamic[ '/(?<=^|' . $spaces . ')-(?=$|' . $spaces . ')/' ] = $en_dash;
  182. $dynamic_characters['dash'] = array_keys( $dynamic );
  183. $dynamic_replacements['dash'] = array_values( $dynamic );
  184. }
  185. // Must do this every time in case plugins use these filters in a context sensitive manner.
  186. /**
  187. * Filters the list of HTML elements not to texturize.
  188. *
  189. * @since 2.8.0
  190. *
  191. * @param string[] $default_no_texturize_tags An array of HTML element names.
  192. */
  193. $no_texturize_tags = apply_filters( 'no_texturize_tags', $default_no_texturize_tags );
  194. /**
  195. * Filters the list of shortcodes not to texturize.
  196. *
  197. * @since 2.8.0
  198. *
  199. * @param string[] $default_no_texturize_shortcodes An array of shortcode names.
  200. */
  201. $no_texturize_shortcodes = apply_filters( 'no_texturize_shortcodes', $default_no_texturize_shortcodes );
  202. $no_texturize_tags_stack = array();
  203. $no_texturize_shortcodes_stack = array();
  204. // Look for shortcodes and HTML elements.
  205. preg_match_all( '@\[/?([^<>&/\[\]\x00-\x20=]++)@', $text, $matches );
  206. $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
  207. $found_shortcodes = ! empty( $tagnames );
  208. $shortcode_regex = $found_shortcodes ? _get_wptexturize_shortcode_regex( $tagnames ) : '';
  209. $regex = _get_wptexturize_split_regex( $shortcode_regex );
  210. $textarr = preg_split( $regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
  211. foreach ( $textarr as &$curl ) {
  212. // Only call _wptexturize_pushpop_element if $curl is a delimiter.
  213. $first = $curl[0];
  214. if ( '<' === $first ) {
  215. if ( '<!--' === substr( $curl, 0, 4 ) ) {
  216. // This is an HTML comment delimiter.
  217. continue;
  218. } else {
  219. // This is an HTML element delimiter.
  220. // Replace each & with &#038; unless it already looks like an entity.
  221. $curl = preg_replace( '/&(?!#(?:\d+|x[a-f0-9]+);|[a-z1-4]{1,8};)/i', '&#038;', $curl );
  222. _wptexturize_pushpop_element( $curl, $no_texturize_tags_stack, $no_texturize_tags );
  223. }
  224. } elseif ( '' === trim( $curl ) ) {
  225. // This is a newline between delimiters. Performance improves when we check this.
  226. continue;
  227. } elseif ( '[' === $first && $found_shortcodes && 1 === preg_match( '/^' . $shortcode_regex . '$/', $curl ) ) {
  228. // This is a shortcode delimiter.
  229. if ( '[[' !== substr( $curl, 0, 2 ) && ']]' !== substr( $curl, -2 ) ) {
  230. // Looks like a normal shortcode.
  231. _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes );
  232. } else {
  233. // Looks like an escaped shortcode.
  234. continue;
  235. }
  236. } elseif ( empty( $no_texturize_shortcodes_stack ) && empty( $no_texturize_tags_stack ) ) {
  237. // This is neither a delimiter, nor is this content inside of no_texturize pairs. Do texturize.
  238. $curl = str_replace( $static_characters, $static_replacements, $curl );
  239. if ( false !== strpos( $curl, "'" ) ) {
  240. $curl = preg_replace( $dynamic_characters['apos'], $dynamic_replacements['apos'], $curl );
  241. $curl = wptexturize_primes( $curl, "'", $prime, $open_sq_flag, $closing_single_quote );
  242. $curl = str_replace( $apos_flag, $apos, $curl );
  243. $curl = str_replace( $open_sq_flag, $opening_single_quote, $curl );
  244. }
  245. if ( false !== strpos( $curl, '"' ) ) {
  246. $curl = preg_replace( $dynamic_characters['quote'], $dynamic_replacements['quote'], $curl );
  247. $curl = wptexturize_primes( $curl, '"', $double_prime, $open_q_flag, $closing_quote );
  248. $curl = str_replace( $open_q_flag, $opening_quote, $curl );
  249. }
  250. if ( false !== strpos( $curl, '-' ) ) {
  251. $curl = preg_replace( $dynamic_characters['dash'], $dynamic_replacements['dash'], $curl );
  252. }
  253. // 9x9 (times), but never 0x9999.
  254. if ( 1 === preg_match( '/(?<=\d)x\d/', $curl ) ) {
  255. // Searching for a digit is 10 times more expensive than for the x, so we avoid doing this one!
  256. $curl = preg_replace( '/\b(\d(?(?<=0)[\d\.,]+|[\d\.,]*))x(\d[\d\.,]*)\b/', '$1&#215;$2', $curl );
  257. }
  258. // Replace each & with &#038; unless it already looks like an entity.
  259. $curl = preg_replace( '/&(?!#(?:\d+|x[a-f0-9]+);|[a-z1-4]{1,8};)/i', '&#038;', $curl );
  260. }
  261. }
  262. return implode( '', $textarr );
  263. }
  264. /**
  265. * Implements a logic tree to determine whether or not "7'." represents seven feet,
  266. * then converts the special char into either a prime char or a closing quote char.
  267. *
  268. * @since 4.3.0
  269. *
  270. * @param string $haystack The plain text to be searched.
  271. * @param string $needle The character to search for such as ' or ".
  272. * @param string $prime The prime char to use for replacement.
  273. * @param string $open_quote The opening quote char. Opening quote replacement must be
  274. * accomplished already.
  275. * @param string $close_quote The closing quote char to use for replacement.
  276. * @return string The $haystack value after primes and quotes replacements.
  277. */
  278. function wptexturize_primes( $haystack, $needle, $prime, $open_quote, $close_quote ) {
  279. $spaces = wp_spaces_regexp();
  280. $flag = '<!--wp-prime-or-quote-->';
  281. $quote_pattern = "/$needle(?=\\Z|[.,:;!?)}\\-\\]]|&gt;|" . $spaces . ')/';
  282. $prime_pattern = "/(?<=\\d)$needle/";
  283. $flag_after_digit = "/(?<=\\d)$flag/";
  284. $flag_no_digit = "/(?<!\\d)$flag/";
  285. $sentences = explode( $open_quote, $haystack );
  286. foreach ( $sentences as $key => &$sentence ) {
  287. if ( false === strpos( $sentence, $needle ) ) {
  288. continue;
  289. } elseif ( 0 !== $key && 0 === substr_count( $sentence, $close_quote ) ) {
  290. $sentence = preg_replace( $quote_pattern, $flag, $sentence, -1, $count );
  291. if ( $count > 1 ) {
  292. // This sentence appears to have multiple closing quotes. Attempt Vulcan logic.
  293. $sentence = preg_replace( $flag_no_digit, $close_quote, $sentence, -1, $count2 );
  294. if ( 0 === $count2 ) {
  295. // Try looking for a quote followed by a period.
  296. $count2 = substr_count( $sentence, "$flag." );
  297. if ( $count2 > 0 ) {
  298. // Assume the rightmost quote-period match is the end of quotation.
  299. $pos = strrpos( $sentence, "$flag." );
  300. } else {
  301. // When all else fails, make the rightmost candidate a closing quote.
  302. // This is most likely to be problematic in the context of bug #18549.
  303. $pos = strrpos( $sentence, $flag );
  304. }
  305. $sentence = substr_replace( $sentence, $close_quote, $pos, strlen( $flag ) );
  306. }
  307. // Use conventional replacement on any remaining primes and quotes.
  308. $sentence = preg_replace( $prime_pattern, $prime, $sentence );
  309. $sentence = preg_replace( $flag_after_digit, $prime, $sentence );
  310. $sentence = str_replace( $flag, $close_quote, $sentence );
  311. } elseif ( 1 == $count ) {
  312. // Found only one closing quote candidate, so give it priority over primes.
  313. $sentence = str_replace( $flag, $close_quote, $sentence );
  314. $sentence = preg_replace( $prime_pattern, $prime, $sentence );
  315. } else {
  316. // No closing quotes found. Just run primes pattern.
  317. $sentence = preg_replace( $prime_pattern, $prime, $sentence );
  318. }
  319. } else {
  320. $sentence = preg_replace( $prime_pattern, $prime, $sentence );
  321. $sentence = preg_replace( $quote_pattern, $close_quote, $sentence );
  322. }
  323. if ( '"' === $needle && false !== strpos( $sentence, '"' ) ) {
  324. $sentence = str_replace( '"', $close_quote, $sentence );
  325. }
  326. }
  327. return implode( $open_quote, $sentences );
  328. }
  329. /**
  330. * Searches for disabled element tags. Pushes element to stack on tag open
  331. * and pops on tag close.
  332. *
  333. * Assumes first char of `$text` is tag opening and last char is tag closing.
  334. * Assumes second char of `$text` is optionally `/` to indicate closing as in `</html>`.
  335. *
  336. * @since 2.9.0
  337. * @access private
  338. *
  339. * @param string $text Text to check. Must be a tag like `<html>` or `[shortcode]`.
  340. * @param string[] $stack Array of open tag elements.
  341. * @param string[] $disabled_elements Array of tag names to match against. Spaces are not allowed in tag names.
  342. */
  343. function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) {
  344. // Is it an opening tag or closing tag?
  345. if ( isset( $text[1] ) && '/' !== $text[1] ) {
  346. $opening_tag = true;
  347. $name_offset = 1;
  348. } elseif ( 0 === count( $stack ) ) {
  349. // Stack is empty. Just stop.
  350. return;
  351. } else {
  352. $opening_tag = false;
  353. $name_offset = 2;
  354. }
  355. // Parse out the tag name.
  356. $space = strpos( $text, ' ' );
  357. if ( false === $space ) {
  358. $space = -1;
  359. } else {
  360. $space -= $name_offset;
  361. }
  362. $tag = substr( $text, $name_offset, $space );
  363. // Handle disabled tags.
  364. if ( in_array( $tag, $disabled_elements, true ) ) {
  365. if ( $opening_tag ) {
  366. /*
  367. * This disables texturize until we find a closing tag of our type
  368. * (e.g. <pre>) even if there was invalid nesting before that.
  369. *
  370. * Example: in the case <pre>sadsadasd</code>"baba"</pre>
  371. * "baba" won't be texturized.
  372. */
  373. array_push( $stack, $tag );
  374. } elseif ( end( $stack ) == $tag ) {
  375. array_pop( $stack );
  376. }
  377. }
  378. }
  379. /**
  380. * Replaces double line breaks with paragraph elements.
  381. *
  382. * A group of regex replaces used to identify text formatted with newlines and
  383. * replace double line breaks with HTML paragraph tags. The remaining line breaks
  384. * after conversion become `<br />` tags, unless `$br` is set to '0' or 'false'.
  385. *
  386. * @since 0.71
  387. *
  388. * @param string $text The text which has to be formatted.
  389. * @param bool $br Optional. If set, this will convert all remaining line breaks
  390. * after paragraphing. Line breaks within `<script>`, `<style>`,
  391. * and `<svg>` tags are not affected. Default true.
  392. * @return string Text which has been converted into correct paragraph tags.
  393. */
  394. function wpautop( $text, $br = true ) {
  395. $pre_tags = array();
  396. if ( trim( $text ) === '' ) {
  397. return '';
  398. }
  399. // Just to make things a little easier, pad the end.
  400. $text = $text . "\n";
  401. /*
  402. * Pre tags shouldn't be touched by autop.
  403. * Replace pre tags with placeholders and bring them back after autop.
  404. */
  405. if ( strpos( $text, '<pre' ) !== false ) {
  406. $text_parts = explode( '</pre>', $text );
  407. $last_part = array_pop( $text_parts );
  408. $text = '';
  409. $i = 0;
  410. foreach ( $text_parts as $text_part ) {
  411. $start = strpos( $text_part, '<pre' );
  412. // Malformed HTML?
  413. if ( false === $start ) {
  414. $text .= $text_part;
  415. continue;
  416. }
  417. $name = "<pre wp-pre-tag-$i></pre>";
  418. $pre_tags[ $name ] = substr( $text_part, $start ) . '</pre>';
  419. $text .= substr( $text_part, 0, $start ) . $name;
  420. $i++;
  421. }
  422. $text .= $last_part;
  423. }
  424. // Change multiple <br>'s into two line breaks, which will turn into paragraphs.
  425. $text = preg_replace( '|<br\s*/?>\s*<br\s*/?>|', "\n\n", $text );
  426. $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';
  427. // Add a double line break above block-level opening tags.
  428. $text = preg_replace( '!(<' . $allblocks . '[\s/>])!', "\n\n$1", $text );
  429. // Add a double line break below block-level closing tags.
  430. $text = preg_replace( '!(</' . $allblocks . '>)!', "$1\n\n", $text );
  431. // Add a double line break after hr tags, which are self closing.
  432. $text = preg_replace( '!(<hr\s*?/?>)!', "$1\n\n", $text );
  433. // Standardize newline characters to "\n".
  434. $text = str_replace( array( "\r\n", "\r" ), "\n", $text );
  435. // Find newlines in all elements and add placeholders.
  436. $text = wp_replace_in_html_tags( $text, array( "\n" => ' <!-- wpnl --> ' ) );
  437. // Collapse line breaks before and after <option> elements so they don't get autop'd.
  438. if ( strpos( $text, '<option' ) !== false ) {
  439. $text = preg_replace( '|\s*<option|', '<option', $text );
  440. $text = preg_replace( '|</option>\s*|', '</option>', $text );
  441. }
  442. /*
  443. * Collapse line breaks inside <object> elements, before <param> and <embed> elements
  444. * so they don't get autop'd.
  445. */
  446. if ( strpos( $text, '</object>' ) !== false ) {
  447. $text = preg_replace( '|(<object[^>]*>)\s*|', '$1', $text );
  448. $text = preg_replace( '|\s*</object>|', '</object>', $text );
  449. $text = preg_replace( '%\s*(</?(?:param|embed)[^>]*>)\s*%', '$1', $text );
  450. }
  451. /*
  452. * Collapse line breaks inside <audio> and <video> elements,
  453. * before and after <source> and <track> elements.
  454. */
  455. if ( strpos( $text, '<source' ) !== false || strpos( $text, '<track' ) !== false ) {
  456. $text = preg_replace( '%([<\[](?:audio|video)[^>\]]*[>\]])\s*%', '$1', $text );
  457. $text = preg_replace( '%\s*([<\[]/(?:audio|video)[>\]])%', '$1', $text );
  458. $text = preg_replace( '%\s*(<(?:source|track)[^>]*>)\s*%', '$1', $text );
  459. }
  460. // Collapse line breaks before and after <figcaption> elements.
  461. if ( strpos( $text, '<figcaption' ) !== false ) {
  462. $text = preg_replace( '|\s*(<figcaption[^>]*>)|', '$1', $text );
  463. $text = preg_replace( '|</figcaption>\s*|', '</figcaption>', $text );
  464. }
  465. // Remove more than two contiguous line breaks.
  466. $text = preg_replace( "/\n\n+/", "\n\n", $text );
  467. // Split up the contents into an array of strings, separated by double line breaks.
  468. $paragraphs = preg_split( '/\n\s*\n/', $text, -1, PREG_SPLIT_NO_EMPTY );
  469. // Reset $text prior to rebuilding.
  470. $text = '';
  471. // Rebuild the content as a string, wrapping every bit with a <p>.
  472. foreach ( $paragraphs as $paragraph ) {
  473. $text .= '<p>' . trim( $paragraph, "\n" ) . "</p>\n";
  474. }
  475. // Under certain strange conditions it could create a P of entirely whitespace.
  476. $text = preg_replace( '|<p>\s*</p>|', '', $text );
  477. // Add a closing <p> inside <div>, <address>, or <form> tag if missing.
  478. $text = preg_replace( '!<p>([^<]+)</(div|address|form)>!', '<p>$1</p></$2>', $text );
  479. // If an opening or closing block element tag is wrapped in a <p>, unwrap it.
  480. $text = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', '$1', $text );
  481. // In some cases <li> may get wrapped in <p>, fix them.
  482. $text = preg_replace( '|<p>(<li.+?)</p>|', '$1', $text );
  483. // If a <blockquote> is wrapped with a <p>, move it inside the <blockquote>.
  484. $text = preg_replace( '|<p><blockquote([^>]*)>|i', '<blockquote$1><p>', $text );
  485. $text = str_replace( '</blockquote></p>', '</p></blockquote>', $text );
  486. // If an opening or closing block element tag is preceded by an opening <p> tag, remove it.
  487. $text = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)!', '$1', $text );
  488. // If an opening or closing block element tag is followed by a closing <p> tag, remove it.
  489. $text = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*</p>!', '$1', $text );
  490. // Optionally insert line breaks.
  491. if ( $br ) {
  492. // Replace newlines that shouldn't be touched with a placeholder.
  493. $text = preg_replace_callback( '/<(script|style|svg).*?<\/\\1>/s', '_autop_newline_preservation_helper', $text );
  494. // Normalize <br>
  495. $text = str_replace( array( '<br>', '<br/>' ), '<br />', $text );
  496. // Replace any new line characters that aren't preceded by a <br /> with a <br />.
  497. $text = preg_replace( '|(?<!<br />)\s*\n|', "<br />\n", $text );
  498. // Replace newline placeholders with newlines.
  499. $text = str_replace( '<WPPreserveNewline />', "\n", $text );
  500. }
  501. // If a <br /> tag is after an opening or closing block tag, remove it.
  502. $text = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*<br />!', '$1', $text );
  503. // If a <br /> tag is before a subset of opening or closing block tags, remove it.
  504. $text = preg_replace( '!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $text );
  505. $text = preg_replace( "|\n</p>$|", '</p>', $text );
  506. // Replace placeholder <pre> tags with their original content.
  507. if ( ! empty( $pre_tags ) ) {
  508. $text = str_replace( array_keys( $pre_tags ), array_values( $pre_tags ), $text );
  509. }
  510. // Restore newlines in all elements.
  511. if ( false !== strpos( $text, '<!-- wpnl -->' ) ) {
  512. $text = str_replace( array( ' <!-- wpnl --> ', '<!-- wpnl -->' ), "\n", $text );
  513. }
  514. return $text;
  515. }
  516. /**
  517. * Separates HTML elements and comments from the text.
  518. *
  519. * @since 4.2.4
  520. *
  521. * @param string $input The text which has to be formatted.
  522. * @return string[] Array of the formatted text.
  523. */
  524. function wp_html_split( $input ) {
  525. return preg_split( get_html_split_regex(), $input, -1, PREG_SPLIT_DELIM_CAPTURE );
  526. }
  527. /**
  528. * Retrieves the regular expression for an HTML element.
  529. *
  530. * @since 4.4.0
  531. *
  532. * @return string The regular expression
  533. */
  534. function get_html_split_regex() {
  535. static $regex;
  536. if ( ! isset( $regex ) ) {
  537. // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
  538. $comments =
  539. '!' // Start of comment, after the <.
  540. . '(?:' // Unroll the loop: Consume everything until --> is found.
  541. . '-(?!->)' // Dash not followed by end of comment.
  542. . '[^\-]*+' // Consume non-dashes.
  543. . ')*+' // Loop possessively.
  544. . '(?:-->)?'; // End of comment. If not found, match all input.
  545. $cdata =
  546. '!\[CDATA\[' // Start of comment, after the <.
  547. . '[^\]]*+' // Consume non-].
  548. . '(?:' // Unroll the loop: Consume everything until ]]> is found.
  549. . '](?!]>)' // One ] not followed by end of comment.
  550. . '[^\]]*+' // Consume non-].
  551. . ')*+' // Loop possessively.
  552. . '(?:]]>)?'; // End of comment. If not found, match all input.
  553. $escaped =
  554. '(?=' // Is the element escaped?
  555. . '!--'
  556. . '|'
  557. . '!\[CDATA\['
  558. . ')'
  559. . '(?(?=!-)' // If yes, which type?
  560. . $comments
  561. . '|'
  562. . $cdata
  563. . ')';
  564. $regex =
  565. '/(' // Capture the entire match.
  566. . '<' // Find start of element.
  567. . '(?' // Conditional expression follows.
  568. . $escaped // Find end of escaped element.
  569. . '|' // ...else...
  570. . '[^>]*>?' // Find end of normal element.
  571. . ')'
  572. . ')/';
  573. // phpcs:enable
  574. }
  575. return $regex;
  576. }
  577. /**
  578. * Retrieves the combined regular expression for HTML and shortcodes.
  579. *
  580. * @access private
  581. * @ignore
  582. * @internal This function will be removed in 4.5.0 per Shortcode API Roadmap.
  583. * @since 4.4.0
  584. *
  585. * @param string $shortcode_regex Optional. The result from _get_wptexturize_shortcode_regex().
  586. * @return string The regular expression
  587. */
  588. function _get_wptexturize_split_regex( $shortcode_regex = '' ) {
  589. static $html_regex;
  590. if ( ! isset( $html_regex ) ) {
  591. // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
  592. $comment_regex =
  593. '!' // Start of comment, after the <.
  594. . '(?:' // Unroll the loop: Consume everything until --> is found.
  595. . '-(?!->)' // Dash not followed by end of comment.
  596. . '[^\-]*+' // Consume non-dashes.
  597. . ')*+' // Loop possessively.
  598. . '(?:-->)?'; // End of comment. If not found, match all input.
  599. $html_regex = // Needs replaced with wp_html_split() per Shortcode API Roadmap.
  600. '<' // Find start of element.
  601. . '(?(?=!--)' // Is this a comment?
  602. . $comment_regex // Find end of comment.
  603. . '|'
  604. . '[^>]*>?' // Find end of element. If not found, match all input.
  605. . ')';
  606. // phpcs:enable
  607. }
  608. if ( empty( $shortcode_regex ) ) {
  609. $regex = '/(' . $html_regex . ')/';
  610. } else {
  611. $regex = '/(' . $html_regex . '|' . $shortcode_regex . ')/';
  612. }
  613. return $regex;
  614. }
  615. /**
  616. * Retrieves the regular expression for shortcodes.
  617. *
  618. * @access private
  619. * @ignore
  620. * @since 4.4.0
  621. *
  622. * @param string[] $tagnames Array of shortcodes to find.
  623. * @return string The regular expression
  624. */
  625. function _get_wptexturize_shortcode_regex( $tagnames ) {
  626. $tagregexp = implode( '|', array_map( 'preg_quote', $tagnames ) );
  627. $tagregexp = "(?:$tagregexp)(?=[\\s\\]\\/])"; // Excerpt of get_shortcode_regex().
  628. // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
  629. $regex =
  630. '\[' // Find start of shortcode.
  631. . '[\/\[]?' // Shortcodes may begin with [/ or [[.
  632. . $tagregexp // Only match registered shortcodes, because performance.
  633. . '(?:'
  634. . '[^\[\]<>]+' // Shortcodes do not contain other shortcodes. Quantifier critical.
  635. . '|'
  636. . '<[^\[\]>]*>' // HTML elements permitted. Prevents matching ] before >.
  637. . ')*+' // Possessive critical.
  638. . '\]' // Find end of shortcode.
  639. . '\]?'; // Shortcodes may end with ]].
  640. // phpcs:enable
  641. return $regex;
  642. }
  643. /**
  644. * Replaces characters or phrases within HTML elements only.
  645. *
  646. * @since 4.2.3
  647. *
  648. * @param string $haystack The text which has to be formatted.
  649. * @param array $replace_pairs In the form array('from' => 'to', ...).
  650. * @return string The formatted text.
  651. */
  652. function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
  653. // Find all elements.
  654. $textarr = wp_html_split( $haystack );
  655. $changed = false;
  656. // Optimize when searching for one item.
  657. if ( 1 === count( $replace_pairs ) ) {
  658. // Extract $needle and $replace.
  659. foreach ( $replace_pairs as $needle => $replace ) {
  660. }
  661. // Loop through delimiters (elements) only.
  662. for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
  663. if ( false !== strpos( $textarr[ $i ], $needle ) ) {
  664. $textarr[ $i ] = str_replace( $needle, $replace, $textarr[ $i ] );
  665. $changed = true;
  666. }
  667. }
  668. } else {
  669. // Extract all $needles.
  670. $needles = array_keys( $replace_pairs );
  671. // Loop through delimiters (elements) only.
  672. for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
  673. foreach ( $needles as $needle ) {
  674. if ( false !== strpos( $textarr[ $i ], $needle ) ) {
  675. $textarr[ $i ] = strtr( $textarr[ $i ], $replace_pairs );
  676. $changed = true;
  677. // After one strtr() break out of the foreach loop and look at next element.
  678. break;
  679. }
  680. }
  681. }
  682. }
  683. if ( $changed ) {
  684. $haystack = implode( $textarr );
  685. }
  686. return $haystack;
  687. }
  688. /**
  689. * Newline preservation help function for wpautop().
  690. *
  691. * @since 3.1.0
  692. * @access private
  693. *
  694. * @param array $matches preg_replace_callback matches array
  695. * @return string
  696. */
  697. function _autop_newline_preservation_helper( $matches ) {
  698. return str_replace( "\n", '<WPPreserveNewline />', $matches[0] );
  699. }
  700. /**
  701. * Don't auto-p wrap shortcodes that stand alone.
  702. *
  703. * Ensures that shortcodes are not wrapped in `<p>...</p>`.
  704. *
  705. * @since 2.9.0
  706. *
  707. * @global array $shortcode_tags
  708. *
  709. * @param string $text The content.
  710. * @return string The filtered content.
  711. */
  712. function shortcode_unautop( $text ) {
  713. global $shortcode_tags;
  714. if ( empty( $shortcode_tags ) || ! is_array( $shortcode_tags ) ) {
  715. return $text;
  716. }
  717. $tagregexp = implode( '|', array_map( 'preg_quote', array_keys( $shortcode_tags ) ) );
  718. $spaces = wp_spaces_regexp();
  719. // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound,WordPress.WhiteSpace.PrecisionAlignment.Found -- don't remove regex indentation
  720. $pattern =
  721. '/'
  722. . '<p>' // Opening paragraph.
  723. . '(?:' . $spaces . ')*+' // Optional leading whitespace.
  724. . '(' // 1: The shortcode.
  725. . '\\[' // Opening bracket.
  726. . "($tagregexp)" // 2: Shortcode name.
  727. . '(?![\\w-])' // Not followed by word character or hyphen.
  728. // Unroll the loop: Inside the opening shortcode tag.
  729. . '[^\\]\\/]*' // Not a closing bracket or forward slash.
  730. . '(?:'
  731. . '\\/(?!\\])' // A forward slash not followed by a closing bracket.
  732. . '[^\\]\\/]*' // Not a closing bracket or forward slash.
  733. . ')*?'
  734. . '(?:'
  735. . '\\/\\]' // Self closing tag and closing bracket.
  736. . '|'
  737. . '\\]' // Closing bracket.
  738. . '(?:' // Unroll the loop: Optionally, anything between the opening and closing shortcode tags.
  739. . '[^\\[]*+' // Not an opening bracket.
  740. . '(?:'
  741. . '\\[(?!\\/\\2\\])' // An opening bracket not followed by the closing shortcode tag.
  742. . '[^\\[]*+' // Not an opening bracket.
  743. . ')*+'
  744. . '\\[\\/\\2\\]' // Closing shortcode tag.
  745. . ')?'
  746. . ')'
  747. . ')'
  748. . '(?:' . $spaces . ')*+' // Optional trailing whitespace.
  749. . '<\\/p>' // Closing paragraph.
  750. . '/';
  751. // phpcs:enable
  752. return preg_replace( $pattern, '$1', $text );
  753. }
  754. /**
  755. * Checks to see if a string is utf8 encoded.
  756. *
  757. * NOTE: This function checks for 5-Byte sequences, UTF8
  758. * has Bytes Sequences with a maximum length of 4.
  759. *
  760. * @author bmorel at ssi dot fr (modified)
  761. * @since 1.2.1
  762. *
  763. * @param string $str The string to be checked
  764. * @return bool True if $str fits a UTF-8 model, false otherwise.
  765. */
  766. function seems_utf8( $str ) {
  767. mbstring_binary_safe_encoding();
  768. $length = strlen( $str );
  769. reset_mbstring_encoding();
  770. for ( $i = 0; $i < $length; $i++ ) {
  771. $c = ord( $str[ $i ] );
  772. if ( $c < 0x80 ) {
  773. $n = 0; // 0bbbbbbb
  774. } elseif ( ( $c & 0xE0 ) == 0xC0 ) {
  775. $n = 1; // 110bbbbb
  776. } elseif ( ( $c & 0xF0 ) == 0xE0 ) {
  777. $n = 2; // 1110bbbb
  778. } elseif ( ( $c & 0xF8 ) == 0xF0 ) {
  779. $n = 3; // 11110bbb
  780. } elseif ( ( $c & 0xFC ) == 0xF8 ) {
  781. $n = 4; // 111110bb
  782. } elseif ( ( $c & 0xFE ) == 0xFC ) {
  783. $n = 5; // 1111110b
  784. } else {
  785. return false; // Does not match any model.
  786. }
  787. for ( $j = 0; $j < $n; $j++ ) { // n bytes matching 10bbbbbb follow ?
  788. if ( ( ++$i == $length ) || ( ( ord( $str[ $i ] ) & 0xC0 ) != 0x80 ) ) {
  789. return false;
  790. }
  791. }
  792. }
  793. return true;
  794. }
  795. /**
  796. * Converts a number of special characters into their HTML entities.
  797. *
  798. * Specifically deals with: `&`, `<`, `>`, `"`, and `'`.
  799. *
  800. * `$quote_style` can be set to ENT_COMPAT to encode `"` to
  801. * `&quot;`, or ENT_QUOTES to do both. Default is ENT_NOQUOTES where no quotes are encoded.
  802. *
  803. * @since 1.2.2
  804. * @since 5.5.0 `$quote_style` also accepts `ENT_XML1`.
  805. * @access private
  806. *
  807. * @param string $string The text which is to be encoded.
  808. * @param int|string $quote_style Optional. Converts double quotes if set to ENT_COMPAT,
  809. * both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES.
  810. * Converts single and double quotes, as well as converting HTML
  811. * named entities (that are not also XML named entities) to their
  812. * code points if set to ENT_XML1. Also compatible with old values;
  813. * converting single quotes if set to 'single',
  814. * double if set to 'double' or both if otherwise set.
  815. * Default is ENT_NOQUOTES.
  816. * @param false|string $charset Optional. The character encoding of the string. Default false.
  817. * @param bool $double_encode Optional. Whether to encode existing HTML entities. Default false.
  818. * @return string The encoded text with HTML entities.
  819. */
  820. function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {
  821. $string = (string) $string;
  822. if ( 0 === strlen( $string ) ) {
  823. return '';
  824. }
  825. // Don't bother if there are no specialchars - saves some processing.
  826. if ( ! preg_match( '/[&<>"\']/', $string ) ) {
  827. return $string;
  828. }
  829. // Account for the previous behaviour of the function when the $quote_style is not an accepted value.
  830. if ( empty( $quote_style ) ) {
  831. $quote_style = ENT_NOQUOTES;
  832. } elseif ( ENT_XML1 === $quote_style ) {
  833. $quote_style = ENT_QUOTES | ENT_XML1;
  834. } elseif ( ! in_array( $quote_style, array( ENT_NOQUOTES, ENT_COMPAT, ENT_QUOTES, 'single', 'double' ), true ) ) {
  835. $quote_style = ENT_QUOTES;
  836. }
  837. // Store the site charset as a static to avoid multiple calls to wp_load_alloptions().
  838. if ( ! $charset ) {
  839. static $_charset = null;
  840. if ( ! isset( $_charset ) ) {
  841. $alloptions = wp_load_alloptions();
  842. $_charset = isset( $alloptions['blog_charset'] ) ? $alloptions['blog_charset'] : '';
  843. }
  844. $charset = $_charset;
  845. }
  846. if ( in_array( $charset, array( 'utf8', 'utf-8', 'UTF8' ), true ) ) {
  847. $charset = 'UTF-8';
  848. }
  849. $_quote_style = $quote_style;
  850. if ( 'double' === $quote_style ) {
  851. $quote_style = ENT_COMPAT;
  852. $_quote_style = ENT_COMPAT;
  853. } elseif ( 'single' === $quote_style ) {
  854. $quote_style = ENT_NOQUOTES;
  855. }
  856. if ( ! $double_encode ) {
  857. // Guarantee every &entity; is valid, convert &garbage; into &amp;garbage;
  858. // This is required for PHP < 5.4.0 because ENT_HTML401 flag is unavailable.
  859. $string = wp_kses_normalize_entities( $string, ( $quote_style & ENT_XML1 ) ? 'xml' : 'html' );
  860. }
  861. $string = htmlspecialchars( $string, $quote_style, $charset, $double_encode );
  862. // Back-compat.
  863. if ( 'single' === $_quote_style ) {
  864. $string = str_replace( "'", '&#039;', $string );
  865. }
  866. return $string;
  867. }
  868. /**
  869. * Converts a number of HTML entities into their special characters.
  870. *
  871. * Specifically deals with: `&`, `<`, `>`, `"`, and `'`.
  872. *
  873. * `$quote_style` can be set to ENT_COMPAT to decode `"` entities,
  874. * or ENT_QUOTES to do both `"` and `'`. Default is ENT_NOQUOTES where no quotes are decoded.
  875. *
  876. * @since 2.8.0
  877. *
  878. * @param string $string The text which is to be decoded.
  879. * @param string|int $quote_style Optional. Converts double quotes if set to ENT_COMPAT,
  880. * both single and double if set to ENT_QUOTES or
  881. * none if set to ENT_NOQUOTES.
  882. * Also compatible with old _wp_specialchars() values;
  883. * converting single quotes if set to 'single',
  884. * double if set to 'double' or both if otherwise set.
  885. * Default is ENT_NOQUOTES.
  886. * @return string The decoded text without HTML entities.
  887. */
  888. function wp_specialchars_decode( $string, $quote_style = ENT_NOQUOTES ) {
  889. $string = (string) $string;
  890. if ( 0 === strlen( $string ) ) {
  891. return '';
  892. }
  893. // Don't bother if there are no entities - saves a lot of processing.
  894. if ( strpos( $string, '&' ) === false ) {
  895. return $string;
  896. }
  897. // Match the previous behaviour of _wp_specialchars() when the $quote_style is not an accepted value.
  898. if ( empty( $quote_style ) ) {
  899. $quote_style = ENT_NOQUOTES;
  900. } elseif ( ! in_array( $quote_style, array( 0, 2, 3, 'single', 'double' ), true ) ) {
  901. $quote_style = ENT_QUOTES;
  902. }
  903. // More complete than get_html_translation_table( HTML_SPECIALCHARS ).
  904. $single = array(
  905. '&#039;' => '\'',
  906. '&#x27;' => '\'',
  907. );
  908. $single_preg = array(
  909. '/&#0*39;/' => '&#039;',
  910. '/&#x0*27;/i' => '&#x27;',
  911. );
  912. $double = array(
  913. '&quot;' => '"',
  914. '&#034;' => '"',
  915. '&#x22;' => '"',
  916. );
  917. $double_preg = array(
  918. '/&#0*34;/' => '&#034;',
  919. '/&#x0*22;/i' => '&#x22;',
  920. );
  921. $others = array(
  922. '&lt;' => '<',
  923. '&#060;' => '<',
  924. '&gt;' => '>',
  925. '&#062;' => '>',
  926. '&amp;' => '&',
  927. '&#038;' => '&',
  928. '&#x26;' => '&',
  929. );
  930. $others_preg = array(
  931. '/&#0*60;/' => '&#060;',
  932. '/&#0*62;/' => '&#062;',
  933. '/&#0*38;/' => '&#038;',
  934. '/&#x0*26;/i' => '&#x26;',
  935. );
  936. if ( ENT_QUOTES === $quote_style ) {
  937. $translation = array_merge( $single, $double, $others );
  938. $translation_preg = array_merge( $single_preg, $double_preg, $others_preg );
  939. } elseif ( ENT_COMPAT === $quote_style || 'double' === $quote_style ) {
  940. $translation = array_merge( $double, $others );
  941. $translation_preg = array_merge( $double_preg, $others_preg );
  942. } elseif ( 'single' === $quote_style ) {
  943. $translation = array_merge( $single, $others );
  944. $translation_preg = array_merge( $single_preg, $others_preg );
  945. } elseif ( ENT_NOQUOTES === $quote_style ) {
  946. $translation = $others;
  947. $translation_preg = $others_preg;
  948. }
  949. // Remove zero padding on numeric entities.
  950. $string = preg_replace( array_keys( $translation_preg ), array_values( $translation_preg ), $string );
  951. // Replace characters according to translation table.
  952. return strtr( $string, $translation );
  953. }
  954. /**
  955. * Checks for invalid UTF8 in a string.
  956. *
  957. * @since 2.8.0
  958. *
  959. * @param string $string The text which is to be checked.
  960. * @param bool $strip Optional. Whether to attempt to strip out invalid UTF8. Default false.
  961. * @return string The checked text.
  962. */
  963. function wp_check_invalid_utf8( $string, $strip = false ) {
  964. $string = (string) $string;
  965. if ( 0 === strlen( $string ) ) {
  966. return '';
  967. }
  968. // Store the site charset as a static to avoid multiple calls to get_option().
  969. static $is_utf8 = null;
  970. if ( ! isset( $is_utf8 ) ) {
  971. $is_utf8 = in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true );
  972. }
  973. if ( ! $is_utf8 ) {
  974. return $string;
  975. }
  976. // Check for support for utf8 in the installed PCRE library once and store the result in a static.
  977. static $utf8_pcre = null;
  978. if ( ! isset( $utf8_pcre ) ) {
  979. // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
  980. $utf8_pcre = @preg_match( '/^./u', 'a' );
  981. }
  982. // We can't demand utf8 in the PCRE installation, so just return the string in those cases.
  983. if ( ! $utf8_pcre ) {
  984. return $string;
  985. }
  986. // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- preg_match fails when it encounters invalid UTF8 in $string.
  987. if ( 1 === @preg_match( '/^./us', $string ) ) {
  988. return $string;
  989. }
  990. // Attempt to strip the bad chars if requested (not recommended).
  991. if ( $strip && function_exists( 'iconv' ) ) {
  992. return iconv( 'utf-8', 'utf-8', $string );
  993. }
  994. return '';
  995. }
  996. /**
  997. * Encodes the Unicode values to be used in the URI.
  998. *
  999. * @since 1.5.0
  1000. * @since 5.8.3 Added the `encode_ascii_characters` parameter.
  1001. *
  1002. * @param string $utf8_string String to encode.
  1003. * @param int $length Max length of the string
  1004. * @param bool $encode_ascii_characters Whether to encode ascii characters such as < " '
  1005. * @return string String with Unicode encoded for URI.
  1006. */
  1007. function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters = false ) {
  1008. $unicode = '';
  1009. $values = array();
  1010. $num_octets = 1;
  1011. $unicode_length = 0;
  1012. mbstring_binary_safe_encoding();
  1013. $string_length = strlen( $utf8_string );
  1014. reset_mbstring_encoding();
  1015. for ( $i = 0; $i < $string_length; $i++ ) {
  1016. $value = ord( $utf8_string[ $i ] );
  1017. if ( $value < 128 ) {
  1018. $char = chr( $value );
  1019. $encoded_char = $encode_ascii_characters ? rawurlencode( $char ) : $char;
  1020. $encoded_char_length = strlen( $encoded_char );
  1021. if ( $length && ( $unicode_length + $encoded_char_length ) > $length ) {
  1022. break;
  1023. }
  1024. $unicode .= $encoded_char;
  1025. $unicode_length += $encoded_char_length;
  1026. } else {
  1027. if ( count( $values ) == 0 ) {
  1028. if ( $value < 224 ) {
  1029. $num_octets = 2;
  1030. } elseif ( $value < 240 ) {
  1031. $num_octets = 3;
  1032. } else {
  1033. $num_octets = 4;
  1034. }
  1035. }
  1036. $values[] = $value;
  1037. if ( $length && ( $unicode_length + ( $num_octets * 3 ) ) > $length ) {
  1038. break;
  1039. }
  1040. if ( count( $values ) == $num_octets ) {
  1041. for ( $j = 0; $j < $num_octets; $j++ ) {
  1042. $unicode .= '%' . dechex( $values[ $j ] );
  1043. }
  1044. $unicode_length += $num_octets * 3;
  1045. $values = array();
  1046. $num_octets = 1;
  1047. }
  1048. }
  1049. }
  1050. return $unicode;
  1051. }
  1052. /**
  1053. * Converts all accent characters to ASCII characters.
  1054. *
  1055. * If there are no accent characters, then the string given is just returned.
  1056. *
  1057. * **Accent characters converted:**
  1058. *
  1059. * Currency signs:
  1060. *
  1061. * | Code | Glyph | Replacement | Description |
  1062. * | -------- | ----- | ----------- | ------------------- |
  1063. * | U+00A3 | £ | (empty) | British Pound sign |
  1064. * | U+20AC | € | E | Euro sign |
  1065. *
  1066. * Decompositions for Latin-1 Supplement:
  1067. *
  1068. * | Code | Glyph | Replacement | Description |
  1069. * | ------- | ----- | ----------- | -------------------------------------- |
  1070. * | U+00AA | ª | a | Feminine ordinal indicator |
  1071. * | U+00BA | º | o | Masculine ordinal indicator |
  1072. * | U+00C0 | À | A | Latin capital letter A with grave |
  1073. * | U+00C1 | Á | A | Latin capital letter A with acute |
  1074. * | U+00C2 | Â | A | Latin capital letter A with circumflex |
  1075. * | U+00C3 | Ã | A | Latin capital letter A with tilde |
  1076. * | U+00C4 | Ä | A | Latin capital letter A with diaeresis |
  1077. * | U+00C5 | Å | A | Latin capital letter A with ring above |
  1078. * | U+00C6 | Æ | AE | Latin capital letter AE |
  1079. * | U+00C7 | Ç | C | Latin capital letter C with cedilla |
  1080. * | U+00C8 | È | E | Latin capital letter E with grave |
  1081. * | U+00C9 | É | E | Latin capital letter E with acute |
  1082. * | U+00CA | Ê | E | Latin capital letter E with circumflex |
  1083. * | U+00CB | Ë | E | Latin capital letter E with diaeresis |
  1084. * | U+00CC | Ì | I | Latin capital letter I with grave |
  1085. * | U+00CD | Í | I | Latin capital letter I with acute |
  1086. * | U+00CE | Î | I | Latin capital letter I with circumflex |
  1087. * | U+00CF | Ï | I | Latin capital letter I with diaeresis |
  1088. * | U+00D0 | Ð | D | Latin capital letter Eth |
  1089. * | U+00D1 | Ñ | N | Latin capital letter N with tilde |
  1090. * | U+00D2 | Ò | O | Latin capital letter O with grave |
  1091. * | U+00D3 | Ó | O | Latin capital letter O with acute |
  1092. * | U+00D4 | Ô | O | Latin capital letter O with circumflex |
  1093. * | U+00D5 | Õ | O | Latin capital letter O with tilde |
  1094. * | U+00D6 | Ö | O | Latin capital letter O with diaeresis |
  1095. * | U+00D8 | Ø | O | Latin capital letter O with stroke |
  1096. * | U+00D9 | Ù | U | Latin capital letter U with grave |
  1097. * | U+00DA | Ú | U | Latin capital letter U with acute |
  1098. * | U+00DB | Û | U | Latin capital letter U with circumflex |
  1099. * | U+00DC | Ü | U | Latin capital letter U with diaeresis |
  1100. * | U+00DD | Ý | Y | Latin capital letter Y with acute |
  1101. * | U+00DE | Þ | TH | Latin capital letter Thorn |
  1102. * | U+00DF | ß | s | Latin small letter sharp s |
  1103. * | U+00E0 | à | a | Latin small letter a with grave |
  1104. * | U+00E1 | á | a | Latin small letter a with acute |
  1105. * | U+00E2 | â | a | Latin small letter a with circumflex |
  1106. * | U+00E3 | ã | a | Latin small letter a with tilde |
  1107. * | U+00E4 | ä | a | Latin small letter a with diaeresis |
  1108. * | U+00E5 | å | a | Latin small letter a with ring above |
  1109. * | U+00E6 | æ | ae | Latin small letter ae |
  1110. * | U+00E7 | ç | c | Latin small letter c with cedilla |
  1111. * | U+00E8 | è | e | Latin small letter e with grave |
  1112. * | U+00E9 | é | e | Latin small letter e with acute |
  1113. * | U+00EA | ê | e | Latin small letter e with circumflex |
  1114. * | U+00EB | ë | e | Latin small letter e with diaeresis |
  1115. * | U+00EC | ì | i | Latin small letter i with grave |
  1116. * | U+00ED | í | i | Latin small letter i with acute |
  1117. * | U+00EE | î | i | Latin small letter i with circumflex |
  1118. * | U+00EF | ï | i | Latin small letter i with diaeresis |
  1119. * | U+00F0 | ð | d | Latin small letter Eth |
  1120. * | U+00F1 | ñ | n | Latin small letter n with tilde |
  1121. * | U+00F2 | ò | o | Latin small letter o with grave |
  1122. * | U+00F3 | ó | o | Latin small letter o with acute |
  1123. * | U+00F4 | ô | o | Latin small letter o with circumflex |
  1124. * | U+00F5 | õ | o | Latin small letter o with tilde |
  1125. * | U+00F6 | ö | o | Latin small letter o with diaeresis |
  1126. * | U+00F8 | ø | o | Latin small letter o with stroke |
  1127. * | U+00F9 | ù | u | Latin small letter u with grave |
  1128. * | U+00FA | ú | u | Latin small letter u with acute |
  1129. * | U+00FB | û | u | Latin small letter u with circumflex |
  1130. * | U+00FC | ü | u | Latin small letter u with diaeresis |
  1131. * | U+00FD | ý | y | Latin small letter y with acute |
  1132. * | U+00FE | þ | th | Latin small letter Thorn |
  1133. * | U+00FF | ÿ | y | Latin small letter y with diaeresis |
  1134. *
  1135. * Decompositions for Latin Extended-A:
  1136. *
  1137. * | Code | Glyph | Replacement | Description |
  1138. * | ------- | ----- | ----------- | ------------------------------------------------- |
  1139. * | U+0100 | Ā | A | Latin capital letter A with macron |
  1140. * | U+0101 | ā | a | Latin small letter a with macron |
  1141. * | U+0102 | Ă | A | Latin capital letter A with breve |
  1142. * | U+0103 | ă | a | Latin small letter a with breve |
  1143. * | U+0104 | Ą | A | Latin capital letter A with ogonek |
  1144. * | U+0105 | ą | a | Latin small letter a with ogonek |
  1145. * | U+01006 | Ć | C | Latin capital letter C with acute |
  1146. * | U+0107 | ć | c | Latin small letter c with acute |
  1147. * | U+0108 | Ĉ | C | Latin capital letter C with circumflex |
  1148. * | U+0109 | ĉ | c | Latin small letter c with circumflex |
  1149. * | U+010A | Ċ | C | Latin capital letter C with dot above |
  1150. * | U+010B | ċ | c | Latin small letter c with dot above |
  1151. * | U+010C | Č | C | Latin capital letter C with caron |
  1152. * | U+010D | č | c | Latin small letter c with caron |
  1153. * | U+010E | Ď | D | Latin capital letter D with caron |
  1154. * | U+010F | ď | d | Latin small letter d with caron |
  1155. * | U+0110 | Đ | D | Latin capital letter D with stroke |
  1156. * | U+0111 | đ | d | Latin small letter d with stroke |
  1157. * | U+0112 | Ē | E | Latin capital letter E with macron |
  1158. * | U+0113 | ē | e | Latin small letter e with macron |
  1159. * | U+0114 | Ĕ | E | Latin capital letter E with breve |
  1160. * | U+0115 | ĕ | e | Latin small letter e with breve |
  1161. * | U+0116 | Ė | E | Latin capital letter E with dot above |
  1162. * | U+0117 | ė | e | Latin small letter e with dot above |
  1163. * | U+0118 | Ę | E | Latin capital letter E with ogonek |
  1164. * | U+0119 | ę | e | Latin small letter e with ogonek |
  1165. * | U+011A | Ě | E | Latin capital letter E with caron |
  1166. * | U+011B | ě | e | Latin small letter e with caron |
  1167. * | U+011C | Ĝ | G | Latin capital letter G with circumflex |
  1168. * | U+011D | ĝ | g | Latin small letter g with circumflex |
  1169. * | U+011E | Ğ | G | Latin capital letter G with breve |
  1170. * | U+011F | ğ | g | Latin small letter g with breve |
  1171. * | U+0120 | Ġ | G | Latin capital letter G with dot above |
  1172. * | U+0121 | ġ | g | Latin small letter g with dot above |
  1173. * | U+0122 | Ģ | G | Latin capital letter G with cedilla |
  1174. * | U+0123 | ģ | g | Latin small letter g with cedilla |
  1175. * | U+0124 | Ĥ | H | Latin capital letter H with circumflex |
  1176. * | U+0125 | ĥ | h | Latin small letter h with circumflex |
  1177. * | U+0126 | Ħ | H | Latin capital letter H with stroke |
  1178. * | U+0127 | ħ | h | Latin small letter h with stroke |
  1179. * | U+0128 | Ĩ | I | Latin capital letter I with tilde |
  1180. * | U+0129 | ĩ | i | Latin small letter i with tilde |
  1181. * | U+012A | Ī | I | Latin capital letter I with macron |
  1182. * | U+012B | ī | i | Latin small letter i with macron |
  1183. * | U+012C | Ĭ | I | Latin capital letter I with breve |
  1184. * | U+012D | ĭ | i | Latin small letter i with breve |
  1185. * | U+012E | Į | I | Latin capital letter I with ogonek |
  1186. * | U+012F | į | i | Latin small letter i with ogonek |
  1187. * | U+0130 | İ | I | Latin capital letter I with dot above |
  1188. * | U+0131 | ı | i | Latin small letter dotless i |
  1189. * | U+0132 | IJ | IJ | Latin capital ligature IJ |
  1190. * | U+0133 | ij | ij | Latin small ligature ij |
  1191. * | U+0134 | Ĵ | J | Latin capital letter J with circumflex |
  1192. * | U+0135 | ĵ | j | Latin small letter j with circumflex |
  1193. * | U+0136 | Ķ | K | Latin capital letter K with cedilla |
  1194. * | U+0137 | ķ | k | Latin small letter k with cedilla |
  1195. * | U+0138 | ĸ | k | Latin small letter Kra |
  1196. * | U+0139 | Ĺ | L | Latin capital letter L with acute |
  1197. * | U+013A | ĺ | l | Latin small letter l with acute |
  1198. * | U+013B | Ļ | L | Latin capital letter L with cedilla |
  1199. * | U+013C | ļ | l | Latin small letter l with cedilla |
  1200. * | U+013D | Ľ | L | Latin capital letter L with caron |
  1201. * | U+013E | ľ | l | Latin small letter l with caron |
  1202. * | U+013F | Ŀ | L | Latin capital letter L with middle dot |
  1203. * | U+0140 | ŀ | l | Latin small letter l with middle dot |
  1204. * | U+0141 | Ł | L | Latin capital letter L with stroke |
  1205. * | U+0142 | ł | l | Latin small letter l with stroke |
  1206. * | U+0143 | Ń | N | Latin capital letter N with acute |
  1207. * | U+0144 | ń | n | Latin small letter N with acute |
  1208. * | U+0145 | Ņ | N | Latin capital letter N with cedilla |
  1209. * | U+0146 | ņ | n | Latin small letter n with cedilla |
  1210. * | U+0147 | Ň | N | Latin capital letter N with caron |
  1211. * | U+0148 | ň | n | Latin small letter n with caron |
  1212. * | U+0149 | ʼn | n | Latin small letter n preceded by apostrophe |
  1213. * | U+014A | Ŋ | N | Latin capital letter Eng |
  1214. * | U+014B | ŋ | n | Latin small letter Eng |
  1215. * | U+014C | Ō | O | Latin capital letter O with macron |
  1216. * | U+014D | ō | o | Latin small letter o with macron |
  1217. * | U+014E | Ŏ | O | Latin capital letter O with breve |
  1218. * | U+014F | ŏ | o | Latin small letter o with breve |
  1219. * | U+0150 | Ő | O | Latin capital letter O with double acute |
  1220. * | U+0151 | ő | o | Latin small letter o with double acute |
  1221. * | U+0152 | Œ | OE | Latin capital ligature OE |
  1222. * | U+0153 | œ | oe | Latin small ligature oe |
  1223. * | U+0154 | Ŕ | R | Latin capital letter R with acute |
  1224. * | U+0155 | ŕ | r | Latin small letter r with acute |
  1225. * | U+0156 | Ŗ | R | Latin capital letter R with cedilla |
  1226. * | U+0157 | ŗ | r | Latin small letter r with cedilla |
  1227. * | U+0158 | Ř | R | Latin capital letter R with caron |
  1228. * | U+0159 | ř | r | Latin small letter r with caron |
  1229. * | U+015A | Ś | S | Latin capital letter S with acute |
  1230. * | U+015B | ś | s | Latin small letter s with acute |
  1231. * | U+015C | Ŝ | S | Latin capital letter S with circumflex |
  1232. * | U+015D | ŝ | s | Latin small letter s with circumflex |
  1233. * | U+015E | Ş | S | Latin capital letter S with cedilla |
  1234. * | U+015F | ş | s | Latin small letter s with cedilla |
  1235. * | U+0160 | Š | S | Latin capital letter S with caron |
  1236. * | U+0161 | š | s | Latin small letter s with caron |
  1237. * | U+0162 | Ţ | T | Latin capital letter T with cedilla |
  1238. * | U+0163 | ţ | t | Latin small letter t with cedilla |
  1239. * | U+0164 | Ť | T | Latin capital letter T with caron |
  1240. * | U+0165 | ť | t | Latin small letter t with caron |
  1241. * | U+0166 | Ŧ | T | Latin capital letter T with stroke |
  1242. * | U+0167 | ŧ | t | Latin small letter t with stroke |
  1243. * | U+0168 | Ũ | U | Latin capital letter U with tilde |
  1244. * | U+0169 | ũ | u | Latin small letter u with tilde |
  1245. * | U+016A | Ū | U | Latin capital letter U with macron |
  1246. * | U+016B | ū | u | Latin small letter u with macron |
  1247. * | U+016C | Ŭ | U | Latin capital letter U with breve |
  1248. * | U+016D | ŭ | u | Latin small letter u with breve |
  1249. * | U+016E | Ů | U | Latin capital letter U with ring above |
  1250. * | U+016F | ů | u | Latin small letter u with ring above |
  1251. * | U+0170 | Ű | U | Latin capital letter U with double acute |
  1252. * | U+0171 | ű | u | Latin small letter u with double acute |
  1253. * | U+0172 | Ų | U | Latin capital letter U with ogonek |
  1254. * | U+0173 | ų | u | Latin small letter u with ogonek |
  1255. * | U+0174 | Ŵ | W | Latin capital letter W with circumflex |
  1256. * | U+0175 | ŵ | w | Latin small letter w with circumflex |
  1257. * | U+0176 | Ŷ | Y | Latin capital letter Y with circumflex |
  1258. * | U+0177 | ŷ | y | Latin small letter y with circumflex |
  1259. * | U+0178 | Ÿ | Y | Latin capital letter Y with diaeresis |
  1260. * | U+0179 | Ź | Z | Latin capital letter Z with acute |
  1261. * | U+017A | ź | z | Latin small letter z with acute |
  1262. * | U+017B | Ż | Z | Latin capital letter Z with dot above |
  1263. * | U+017C | ż | z | Latin small letter z with dot above |
  1264. * | U+017D | Ž | Z | Latin capital letter Z with caron |
  1265. * | U+017E | ž | z | Latin small letter z with caron |
  1266. * | U+017F | ſ | s | Latin small letter long s |
  1267. * | U+01A0 | Ơ | O | Latin capital letter O with horn |
  1268. * | U+01A1 | ơ | o | Latin small letter o with horn |
  1269. * | U+01AF | Ư | U | Latin capital letter U with horn |
  1270. * | U+01B0 | ư | u | Latin small letter u with horn |
  1271. * | U+01CD | Ǎ | A | Latin capital letter A with caron |
  1272. * | U+01CE | ǎ | a | Latin small letter a with caron |
  1273. * | U+01CF | Ǐ | I | Latin capital letter I with caron |
  1274. * | U+01D0 | ǐ | i | Latin small letter i with caron |
  1275. * | U+01D1 | Ǒ | O | Latin capital letter O with caron |
  1276. * | U+01D2 | ǒ | o | Latin small letter o with caron |
  1277. * | U+01D3 | Ǔ | U | Latin capital letter U with caron |
  1278. * | U+01D4 | ǔ | u | Latin small letter u with caron |
  1279. * | U+01D5 | Ǖ | U | Latin capital letter U with diaeresis and macron |
  1280. * | U+01D6 | ǖ | u | Latin small letter u with diaeresis and macron |
  1281. * | U+01D7 | Ǘ | U | Latin capital letter U with diaeresis and acute |
  1282. * | U+01D8 | ǘ | u | Latin small letter u with diaeresis and acute |
  1283. * | U+01D9 | Ǚ | U | Latin capital letter U with diaeresis and caron |
  1284. * | U+01DA | ǚ | u | Latin small letter u with diaeresis and caron |
  1285. * | U+01DB | Ǜ | U | Latin capital letter U with diaeresis and grave |
  1286. * | U+01DC | ǜ | u | Latin small letter u with diaeresis and grave |
  1287. *
  1288. * Decompositions for Latin Extended-B:
  1289. *
  1290. * | Code | Glyph | Replacement | Description |
  1291. * | -------- | ----- | ----------- | ----------------------------------------- |
  1292. * | U+0218 | Ș | S | Latin capital letter S with comma below |
  1293. * | U+0219 | ș | s | Latin small letter s with comma below |
  1294. * | U+021A | Ț | T | Latin capital letter T with comma below |
  1295. * | U+021B | ț | t | Latin small letter t with comma below |
  1296. *
  1297. * Vowels with diacritic (Chinese, Hanyu Pinyin):
  1298. *
  1299. * | Code | Glyph | Replacement | Description |
  1300. * | -------- | ----- | ----------- | ----------------------------------------------------- |
  1301. * | U+0251 | ɑ | a | Latin small letter alpha |
  1302. * | U+1EA0 | Ạ | A | Latin capital letter A with dot below |
  1303. * | U+1EA1 | ạ | a | Latin small letter a with dot below |
  1304. * | U+1EA2 | Ả | A | Latin capital letter A with hook above |
  1305. * | U+1EA3 | ả | a | Latin small letter a with hook above |
  1306. * | U+1EA4 | Ấ | A | Latin capital letter A with circumflex and acute |
  1307. * | U+1EA5 | ấ | a | Latin small letter a with circumflex and acute |
  1308. * | U+1EA6 | Ầ | A | Latin capital letter A with circumflex and grave |
  1309. * | U+1EA7 | ầ | a | Latin small letter a with circumflex and grave |
  1310. * | U+1EA8 | Ẩ | A | Latin capital letter A with circumflex and hook above |
  1311. * | U+1EA9 | ẩ | a | Latin small letter a with circumflex and hook above |
  1312. * | U+1EAA | Ẫ | A | Latin capital letter A with circumflex and tilde |
  1313. * | U+1EAB | ẫ | a | Latin small letter a with circumflex and tilde |
  1314. * | U+1EA6 | Ậ | A | Latin capital letter A with circumflex and dot below |
  1315. * | U+1EAD | ậ | a | Latin small letter a with circumflex and dot below |
  1316. * | U+1EAE | Ắ | A | Latin capital letter A with breve and acute |
  1317. * | U+1EAF | ắ | a | Latin small letter a with breve and acute |
  1318. * | U+1EB0 | Ằ | A | Latin capital letter A with breve and grave |
  1319. * | U+1EB1 | ằ | a | Latin small letter a with breve and grave |
  1320. * | U+1EB2 | Ẳ | A | Latin capital letter A with breve and hook above |
  1321. * | U+1EB3 | ẳ | a | Latin small letter a with breve and hook above |
  1322. * | U+1EB4 | Ẵ | A | Latin capital letter A with breve and tilde |
  1323. * | U+1EB5 | ẵ | a | Latin small letter a with breve and tilde |
  1324. * | U+1EB6 | Ặ | A | Latin capital letter A with breve and dot below |
  1325. * | U+1EB7 | ặ | a | Latin small letter a with breve and dot below |
  1326. * | U+1EB8 | Ẹ | E | Latin capital letter E with dot below |
  1327. * | U+1EB9 | ẹ | e | Latin small letter e with dot below |
  1328. * | U+1EBA | Ẻ | E | Latin capital letter E with hook above |
  1329. * | U+1EBB | ẻ | e | Latin small letter e with hook above |
  1330. * | U+1EBC | Ẽ | E | Latin capital letter E with tilde |
  1331. * | U+1EBD | ẽ | e | Latin small letter e with tilde |
  1332. * | U+1EBE | Ế | E | Latin capital letter E with circumflex and acute |
  1333. * | U+1EBF | ế | e | Latin small letter e with circumflex and acute |
  1334. * | U+1EC0 | Ề | E | Latin capital letter E with circumflex and grave |
  1335. * | U+1EC1 | ề | e | Latin small letter e with circumflex and grave |
  1336. * | U+1EC2 | Ể | E | Latin capital letter E with circumflex and hook above |
  1337. * | U+1EC3 | ể | e | Latin small letter e with circumflex and hook above |
  1338. * | U+1EC4 | Ễ | E | Latin capital letter E with circumflex and tilde |
  1339. * | U+1EC5 | ễ | e | Latin small letter e with circumflex and tilde |
  1340. * | U+1EC6 | Ệ | E | Latin capital letter E with circumflex and dot below |
  1341. * | U+1EC7 | ệ | e | Latin small letter e with circumflex and dot below |
  1342. * | U+1EC8 | Ỉ | I | Latin capital letter I with hook above |
  1343. * | U+1EC9 | ỉ | i | Latin small letter i with hook above |
  1344. * | U+1ECA | Ị | I | Latin capital letter I with dot below |
  1345. * | U+1ECB | ị | i | Latin small letter i with dot below |
  1346. * | U+1ECC | Ọ | O | Latin capital letter O with dot below |
  1347. * | U+1ECD | ọ | o | Latin small letter o with dot below |
  1348. * | U+1ECE | Ỏ | O | Latin capital letter O with hook above |
  1349. * | U+1ECF | ỏ | o | Latin small letter o with hook above |
  1350. * | U+1ED0 | Ố | O | Latin capital letter O with circumflex and acute |
  1351. * | U+1ED1 | ố | o | Latin small letter o with circumflex and acute |
  1352. * | U+1ED2 | Ồ | O | Latin capital letter O with circumflex and grave |
  1353. * | U+1ED3 | ồ | o | Latin small letter o with circumflex and grave |
  1354. * | U+1ED4 | Ổ | O | Latin capital letter O with circumflex and hook above |
  1355. * | U+1ED5 | ổ | o | Latin small letter o with circumflex and hook above |
  1356. * | U+1ED6 | Ỗ | O | Latin capital letter O with circumflex and tilde |
  1357. * | U+1ED7 | ỗ | o | Latin small letter o with circumflex and tilde |
  1358. * | U+1ED8 | Ộ | O | Latin capital letter O with circumflex and dot below |
  1359. * | U+1ED9 | ộ | o | Latin small letter o with circumflex and dot below |
  1360. * | U+1EDA | Ớ | O | Latin capital letter O with horn and acute |
  1361. * | U+1EDB | ớ | o | Latin small letter o with horn and acute |
  1362. * | U+1EDC | Ờ | O | Latin capital letter O with horn and grave |
  1363. * | U+1EDD | ờ | o | Latin small letter o with horn and grave |
  1364. * | U+1EDE | Ở | O | Latin capital letter O with horn and hook above |
  1365. * | U+1EDF | ở | o | Latin small letter o with horn and hook above |
  1366. * | U+1EE0 | Ỡ | O | Latin capital letter O with horn and tilde |
  1367. * | U+1EE1 | ỡ | o | Latin small letter o with horn and tilde |
  1368. * | U+1EE2 | Ợ | O | Latin capital letter O with horn and dot below |
  1369. * | U+1EE3 | ợ | o | Latin small letter o with horn and dot below |
  1370. * | U+1EE4 | Ụ | U | Latin capital letter U with dot below |
  1371. * | U+1EE5 | ụ | u | Latin small letter u with dot below |
  1372. * | U+1EE6 | Ủ | U | Latin capital letter U with hook above |
  1373. * | U+1EE7 | ủ | u | Latin small letter u with hook above |
  1374. * | U+1EE8 | Ứ | U | Latin capital letter U with horn and acute |
  1375. * | U+1EE9 | ứ | u | Latin small letter u with horn and acute |
  1376. * | U+1EEA | Ừ | U | Latin capital letter U with horn and grave |
  1377. * | U+1EEB | ừ | u | Latin small letter u with horn and grave |
  1378. * | U+1EEC | Ử | U | Latin capital letter U with horn and hook above |
  1379. * | U+1EED | ử | u | Latin small letter u with horn and hook above |
  1380. * | U+1EEE | Ữ | U | Latin capital letter U with horn and tilde |
  1381. * | U+1EEF | ữ | u | Latin small letter u with horn and tilde |
  1382. * | U+1EF0 | Ự | U | Latin capital letter U with horn and dot below |
  1383. * | U+1EF1 | ự | u | Latin small letter u with horn and dot below |
  1384. * | U+1EF2 | Ỳ | Y | Latin capital letter Y with grave |
  1385. * | U+1EF3 | ỳ | y | Latin small letter y with grave |
  1386. * | U+1EF4 | Ỵ | Y | Latin capital letter Y with dot below |
  1387. * | U+1EF5 | ỵ | y | Latin small letter y with dot below |
  1388. * | U+1EF6 | Ỷ | Y | Latin capital letter Y with hook above |
  1389. * | U+1EF7 | ỷ | y | Latin small letter y with hook above |
  1390. * | U+1EF8 | Ỹ | Y | Latin capital letter Y with tilde |
  1391. * | U+1EF9 | ỹ | y | Latin small letter y with tilde |
  1392. *
  1393. * German (`de_DE`), German formal (`de_DE_formal`), German (Switzerland) formal (`de_CH`),
  1394. * German (Switzerland) informal (`de_CH_informal`), and German (Austria) (`de_AT`) locales:
  1395. *
  1396. * | Code | Glyph | Replacement | Description |
  1397. * | -------- | ----- | ----------- | --------------------------------------- |
  1398. * | U+00C4 | Ä | Ae | Latin capital letter A with diaeresis |
  1399. * | U+00E4 | ä | ae | Latin small letter a with diaeresis |
  1400. * | U+00D6 | Ö | Oe | Latin capital letter O with diaeresis |
  1401. * | U+00F6 | ö | oe | Latin small letter o with diaeresis |
  1402. * | U+00DC | Ü | Ue | Latin capital letter U with diaeresis |
  1403. * | U+00FC | ü | ue | Latin small letter u with diaeresis |
  1404. * | U+00DF | ß | ss | Latin small letter sharp s |
  1405. *
  1406. * Danish (`da_DK`) locale:
  1407. *
  1408. * | Code | Glyph | Replacement | Description |
  1409. * | -------- | ----- | ----------- | --------------------------------------- |
  1410. * | U+00C6 | Æ | Ae | Latin capital letter AE |
  1411. * | U+00E6 | æ | ae | Latin small letter ae |
  1412. * | U+00D8 | Ø | Oe | Latin capital letter O with stroke |
  1413. * | U+00F8 | ø | oe | Latin small letter o with stroke |
  1414. * | U+00C5 | Å | Aa | Latin capital letter A with ring above |
  1415. * | U+00E5 | å | aa | Latin small letter a with ring above |
  1416. *
  1417. * Catalan (`ca`) locale:
  1418. *
  1419. * | Code | Glyph | Replacement | Description |
  1420. * | -------- | ----- | ----------- | --------------------------------------- |
  1421. * | U+00B7 | l·l | ll | Flown dot (between two Ls) |
  1422. *
  1423. * Serbian (`sr_RS`) and Bosnian (`bs_BA`) locales:
  1424. *
  1425. * | Code | Glyph | Replacement | Description |
  1426. * | -------- | ----- | ----------- | --------------------------------------- |
  1427. * | U+0110 | Đ | DJ | Latin capital letter D with stroke |
  1428. * | U+0111 | đ | dj | Latin small letter d with stroke |
  1429. *
  1430. * @since 1.2.1
  1431. * @since 4.6.0 Added locale support for `de_CH`, `de_CH_informal`, and `ca`.
  1432. * @since 4.7.0 Added locale support for `sr_RS`.
  1433. * @since 4.8.0 Added locale support for `bs_BA`.
  1434. * @since 5.7.0 Added locale support for `de_AT`.
  1435. * @since 6.0.0 Added the `$locale` parameter.
  1436. *
  1437. * @param string $string Text that might have accent characters.
  1438. * @param string $locale Optional. The locale to use for accent removal. Some character
  1439. * replacements depend on the locale being used (e.g. 'de_DE').
  1440. * Defaults to the current locale.
  1441. * @return string Filtered string with replaced "nice" characters.
  1442. */
  1443. function remove_accents( $string, $locale = '' ) {
  1444. if ( ! preg_match( '/[\x80-\xff]/', $string ) ) {
  1445. return $string;
  1446. }
  1447. if ( seems_utf8( $string ) ) {
  1448. $chars = array(
  1449. // Decompositions for Latin-1 Supplement.
  1450. 'ª' => 'a',
  1451. 'º' => 'o',
  1452. 'À' => 'A',
  1453. 'Á' => 'A',
  1454. 'Â' => 'A',
  1455. 'Ã' => 'A',
  1456. 'Ä' => 'A',
  1457. 'Å' => 'A',
  1458. 'Æ' => 'AE',
  1459. 'Ç' => 'C',
  1460. 'È' => 'E',
  1461. 'É' => 'E',
  1462. 'Ê' => 'E',
  1463. 'Ë' => 'E',
  1464. 'Ì' => 'I',
  1465. 'Í' => 'I',
  1466. 'Î' => 'I',
  1467. 'Ï' => 'I',
  1468. 'Ð' => 'D',
  1469. 'Ñ' => 'N',
  1470. 'Ò' => 'O',
  1471. 'Ó' => 'O',
  1472. 'Ô' => 'O',
  1473. 'Õ' => 'O',
  1474. 'Ö' => 'O',
  1475. 'Ù' => 'U',
  1476. 'Ú' => 'U',
  1477. 'Û' => 'U',
  1478. 'Ü' => 'U',
  1479. 'Ý' => 'Y',
  1480. 'Þ' => 'TH',
  1481. 'ß' => 's',
  1482. 'à' => 'a',
  1483. 'á' => 'a',
  1484. 'â' => 'a',
  1485. 'ã' => 'a',
  1486. 'ä' => 'a',
  1487. 'å' => 'a',
  1488. 'æ' => 'ae',
  1489. 'ç' => 'c',
  1490. 'è' => 'e',
  1491. 'é' => 'e',
  1492. 'ê' => 'e',
  1493. 'ë' => 'e',
  1494. 'ì' => 'i',
  1495. 'í' => 'i',
  1496. 'î' => 'i',
  1497. 'ï' => 'i',
  1498. 'ð' => 'd',
  1499. 'ñ' => 'n',
  1500. 'ò' => 'o',
  1501. 'ó' => 'o',
  1502. 'ô' => 'o',
  1503. 'õ' => 'o',
  1504. 'ö' => 'o',
  1505. 'ø' => 'o',
  1506. 'ù' => 'u',
  1507. 'ú' => 'u',
  1508. 'û' => 'u',
  1509. 'ü' => 'u',
  1510. 'ý' => 'y',
  1511. 'þ' => 'th',
  1512. 'ÿ' => 'y',
  1513. 'Ø' => 'O',
  1514. // Decompositions for Latin Extended-A.
  1515. 'Ā' => 'A',
  1516. 'ā' => 'a',
  1517. 'Ă' => 'A',
  1518. 'ă' => 'a',
  1519. 'Ą' => 'A',
  1520. 'ą' => 'a',
  1521. 'Ć' => 'C',
  1522. 'ć' => 'c',
  1523. 'Ĉ' => 'C',
  1524. 'ĉ' => 'c',
  1525. 'Ċ' => 'C',
  1526. 'ċ' => 'c',
  1527. 'Č' => 'C',
  1528. 'č' => 'c',
  1529. 'Ď' => 'D',
  1530. 'ď' => 'd',
  1531. 'Đ' => 'D',
  1532. 'đ' => 'd',
  1533. 'Ē' => 'E',
  1534. 'ē' => 'e',
  1535. 'Ĕ' => 'E',
  1536. 'ĕ' => 'e',
  1537. 'Ė' => 'E',
  1538. 'ė' => 'e',
  1539. 'Ę' => 'E',
  1540. 'ę' => 'e',
  1541. 'Ě' => 'E',
  1542. 'ě' => 'e',
  1543. 'Ĝ' => 'G',
  1544. 'ĝ' => 'g',
  1545. 'Ğ' => 'G',
  1546. 'ğ' => 'g',
  1547. 'Ġ' => 'G',
  1548. 'ġ' => 'g',
  1549. 'Ģ' => 'G',
  1550. 'ģ' => 'g',
  1551. 'Ĥ' => 'H',
  1552. 'ĥ' => 'h',
  1553. 'Ħ' => 'H',
  1554. 'ħ' => 'h',
  1555. 'Ĩ' => 'I',
  1556. 'ĩ' => 'i',
  1557. 'Ī' => 'I',
  1558. 'ī' => 'i',
  1559. 'Ĭ' => 'I',
  1560. 'ĭ' => 'i',
  1561. 'Į' => 'I',
  1562. 'į' => 'i',
  1563. 'İ' => 'I',
  1564. 'ı' => 'i',
  1565. 'IJ' => 'IJ',
  1566. 'ij' => 'ij',
  1567. 'Ĵ' => 'J',
  1568. 'ĵ' => 'j',
  1569. 'Ķ' => 'K',
  1570. 'ķ' => 'k',
  1571. 'ĸ' => 'k',
  1572. 'Ĺ' => 'L',
  1573. 'ĺ' => 'l',
  1574. 'Ļ' => 'L',
  1575. 'ļ' => 'l',
  1576. 'Ľ' => 'L',
  1577. 'ľ' => 'l',
  1578. 'Ŀ' => 'L',
  1579. 'ŀ' => 'l',
  1580. 'Ł' => 'L',
  1581. 'ł' => 'l',
  1582. 'Ń' => 'N',
  1583. 'ń' => 'n',
  1584. 'Ņ' => 'N',
  1585. 'ņ' => 'n',
  1586. 'Ň' => 'N',
  1587. 'ň' => 'n',
  1588. 'ʼn' => 'n',
  1589. 'Ŋ' => 'N',
  1590. 'ŋ' => 'n',
  1591. 'Ō' => 'O',
  1592. 'ō' => 'o',
  1593. 'Ŏ' => 'O',
  1594. 'ŏ' => 'o',
  1595. 'Ő' => 'O',
  1596. 'ő' => 'o',
  1597. 'Œ' => 'OE',
  1598. 'œ' => 'oe',
  1599. 'Ŕ' => 'R',
  1600. 'ŕ' => 'r',
  1601. 'Ŗ' => 'R',
  1602. 'ŗ' => 'r',
  1603. 'Ř' => 'R',
  1604. 'ř' => 'r',
  1605. 'Ś' => 'S',
  1606. 'ś' => 's',
  1607. 'Ŝ' => 'S',
  1608. 'ŝ' => 's',
  1609. 'Ş' => 'S',
  1610. 'ş' => 's',
  1611. 'Š' => 'S',
  1612. 'š' => 's',
  1613. 'Ţ' => 'T',
  1614. 'ţ' => 't',
  1615. 'Ť' => 'T',
  1616. 'ť' => 't',
  1617. 'Ŧ' => 'T',
  1618. 'ŧ' => 't',
  1619. 'Ũ' => 'U',
  1620. 'ũ' => 'u',
  1621. 'Ū' => 'U',
  1622. 'ū' => 'u',
  1623. 'Ŭ' => 'U',
  1624. 'ŭ' => 'u',
  1625. 'Ů' => 'U',
  1626. 'ů' => 'u',
  1627. 'Ű' => 'U',
  1628. 'ű' => 'u',
  1629. 'Ų' => 'U',
  1630. 'ų' => 'u',
  1631. 'Ŵ' => 'W',
  1632. 'ŵ' => 'w',
  1633. 'Ŷ' => 'Y',
  1634. 'ŷ' => 'y',
  1635. 'Ÿ' => 'Y',
  1636. 'Ź' => 'Z',
  1637. 'ź' => 'z',
  1638. 'Ż' => 'Z',
  1639. 'ż' => 'z',
  1640. 'Ž' => 'Z',
  1641. 'ž' => 'z',
  1642. 'ſ' => 's',
  1643. // Decompositions for Latin Extended-B.
  1644. 'Ș' => 'S',
  1645. 'ș' => 's',
  1646. 'Ț' => 'T',
  1647. 'ț' => 't',
  1648. // Euro sign.
  1649. '€' => 'E',
  1650. // GBP (Pound) sign.
  1651. '£' => '',
  1652. // Vowels with diacritic (Vietnamese).
  1653. // Unmarked.
  1654. 'Ơ' => 'O',
  1655. 'ơ' => 'o',
  1656. 'Ư' => 'U',
  1657. 'ư' => 'u',
  1658. // Grave accent.
  1659. 'Ầ' => 'A',
  1660. 'ầ' => 'a',
  1661. 'Ằ' => 'A',
  1662. 'ằ' => 'a',
  1663. 'Ề' => 'E',
  1664. 'ề' => 'e',
  1665. 'Ồ' => 'O',
  1666. 'ồ' => 'o',
  1667. 'Ờ' => 'O',
  1668. 'ờ' => 'o',
  1669. 'Ừ' => 'U',
  1670. 'ừ' => 'u',
  1671. 'Ỳ' => 'Y',
  1672. 'ỳ' => 'y',
  1673. // Hook.
  1674. 'Ả' => 'A',
  1675. 'ả' => 'a',
  1676. 'Ẩ' => 'A',
  1677. 'ẩ' => 'a',
  1678. 'Ẳ' => 'A',
  1679. 'ẳ' => 'a',
  1680. 'Ẻ' => 'E',
  1681. 'ẻ' => 'e',
  1682. 'Ể' => 'E',
  1683. 'ể' => 'e',
  1684. 'Ỉ' => 'I',
  1685. 'ỉ' => 'i',
  1686. 'Ỏ' => 'O',
  1687. 'ỏ' => 'o',
  1688. 'Ổ' => 'O',
  1689. 'ổ' => 'o',
  1690. 'Ở' => 'O',
  1691. 'ở' => 'o',
  1692. 'Ủ' => 'U',
  1693. 'ủ' => 'u',
  1694. 'Ử' => 'U',
  1695. 'ử' => 'u',
  1696. 'Ỷ' => 'Y',
  1697. 'ỷ' => 'y',
  1698. // Tilde.
  1699. 'Ẫ' => 'A',
  1700. 'ẫ' => 'a',
  1701. 'Ẵ' => 'A',
  1702. 'ẵ' => 'a',
  1703. 'Ẽ' => 'E',
  1704. 'ẽ' => 'e',
  1705. 'Ễ' => 'E',
  1706. 'ễ' => 'e',
  1707. 'Ỗ' => 'O',
  1708. 'ỗ' => 'o',
  1709. 'Ỡ' => 'O',
  1710. 'ỡ' => 'o',
  1711. 'Ữ' => 'U',
  1712. 'ữ' => 'u',
  1713. 'Ỹ' => 'Y',
  1714. 'ỹ' => 'y',
  1715. // Acute accent.
  1716. 'Ấ' => 'A',
  1717. 'ấ' => 'a',
  1718. 'Ắ' => 'A',
  1719. 'ắ' => 'a',
  1720. 'Ế' => 'E',
  1721. 'ế' => 'e',
  1722. 'Ố' => 'O',
  1723. 'ố' => 'o',
  1724. 'Ớ' => 'O',
  1725. 'ớ' => 'o',
  1726. 'Ứ' => 'U',
  1727. 'ứ' => 'u',
  1728. // Dot below.
  1729. 'Ạ' => 'A',
  1730. 'ạ' => 'a',
  1731. 'Ậ' => 'A',
  1732. 'ậ' => 'a',
  1733. 'Ặ' => 'A',
  1734. 'ặ' => 'a',
  1735. 'Ẹ' => 'E',
  1736. 'ẹ' => 'e',
  1737. 'Ệ' => 'E',
  1738. 'ệ' => 'e',
  1739. 'Ị' => 'I',
  1740. 'ị' => 'i',
  1741. 'Ọ' => 'O',
  1742. 'ọ' => 'o',
  1743. 'Ộ' => 'O',
  1744. 'ộ' => 'o',
  1745. 'Ợ' => 'O',
  1746. 'ợ' => 'o',
  1747. 'Ụ' => 'U',
  1748. 'ụ' => 'u',
  1749. 'Ự' => 'U',
  1750. 'ự' => 'u',
  1751. 'Ỵ' => 'Y',
  1752. 'ỵ' => 'y',
  1753. // Vowels with diacritic (Chinese, Hanyu Pinyin).
  1754. 'ɑ' => 'a',
  1755. // Macron.
  1756. 'Ǖ' => 'U',
  1757. 'ǖ' => 'u',
  1758. // Acute accent.
  1759. 'Ǘ' => 'U',
  1760. 'ǘ' => 'u',
  1761. // Caron.
  1762. 'Ǎ' => 'A',
  1763. 'ǎ' => 'a',
  1764. 'Ǐ' => 'I',
  1765. 'ǐ' => 'i',
  1766. 'Ǒ' => 'O',
  1767. 'ǒ' => 'o',
  1768. 'Ǔ' => 'U',
  1769. 'ǔ' => 'u',
  1770. 'Ǚ' => 'U',
  1771. 'ǚ' => 'u',
  1772. // Grave accent.
  1773. 'Ǜ' => 'U',
  1774. 'ǜ' => 'u',
  1775. );
  1776. // Used for locale-specific rules.
  1777. if ( empty( $locale ) ) {
  1778. $locale = get_locale();
  1779. }
  1780. /*
  1781. * German has various locales (de_DE, de_CH, de_AT, ...) with formal and informal variants.
  1782. * There is no 3-letter locale like 'def', so checking for 'de' instead of 'de_' is safe,
  1783. * since 'de' itself would be a valid locale too.
  1784. */
  1785. if ( str_starts_with( $locale, 'de' ) ) {
  1786. $chars['Ä'] = 'Ae';
  1787. $chars['ä'] = 'ae';
  1788. $chars['Ö'] = 'Oe';
  1789. $chars['ö'] = 'oe';
  1790. $chars['Ü'] = 'Ue';
  1791. $chars['ü'] = 'ue';
  1792. $chars['ß'] = 'ss';
  1793. } elseif ( 'da_DK' === $locale ) {
  1794. $chars['Æ'] = 'Ae';
  1795. $chars['æ'] = 'ae';
  1796. $chars['Ø'] = 'Oe';
  1797. $chars['ø'] = 'oe';
  1798. $chars['Å'] = 'Aa';
  1799. $chars['å'] = 'aa';
  1800. } elseif ( 'ca' === $locale ) {
  1801. $chars['l·l'] = 'll';
  1802. } elseif ( 'sr_RS' === $locale || 'bs_BA' === $locale ) {
  1803. $chars['Đ'] = 'DJ';
  1804. $chars['đ'] = 'dj';
  1805. }
  1806. $string = strtr( $string, $chars );
  1807. } else {
  1808. $chars = array();
  1809. // Assume ISO-8859-1 if not UTF-8.
  1810. $chars['in'] = "\x80\x83\x8a\x8e\x9a\x9e"
  1811. . "\x9f\xa2\xa5\xb5\xc0\xc1\xc2"
  1812. . "\xc3\xc4\xc5\xc7\xc8\xc9\xca"
  1813. . "\xcb\xcc\xcd\xce\xcf\xd1\xd2"
  1814. . "\xd3\xd4\xd5\xd6\xd8\xd9\xda"
  1815. . "\xdb\xdc\xdd\xe0\xe1\xe2\xe3"
  1816. . "\xe4\xe5\xe7\xe8\xe9\xea\xeb"
  1817. . "\xec\xed\xee\xef\xf1\xf2\xf3"
  1818. . "\xf4\xf5\xf6\xf8\xf9\xfa\xfb"
  1819. . "\xfc\xfd\xff";
  1820. $chars['out'] = 'EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy';
  1821. $string = strtr( $string, $chars['in'], $chars['out'] );
  1822. $double_chars = array();
  1823. $double_chars['in'] = array( "\x8c", "\x9c", "\xc6", "\xd0", "\xde", "\xdf", "\xe6", "\xf0", "\xfe" );
  1824. $double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
  1825. $string = str_replace( $double_chars['in'], $double_chars['out'], $string );
  1826. }
  1827. return $string;
  1828. }
  1829. /**
  1830. * Sanitizes a filename, replacing whitespace with dashes.
  1831. *
  1832. * Removes special characters that are illegal in filenames on certain
  1833. * operating systems and special characters requiring special escaping
  1834. * to manipulate at the command line. Replaces spaces and consecutive
  1835. * dashes with a single dash. Trims period, dash and underscore from beginning
  1836. * and end of filename. It is not guaranteed that this function will return a
  1837. * filename that is allowed to be uploaded.
  1838. *
  1839. * @since 2.1.0
  1840. *
  1841. * @param string $filename The filename to be sanitized.
  1842. * @return string The sanitized filename.
  1843. */
  1844. function sanitize_file_name( $filename ) {
  1845. $filename_raw = $filename;
  1846. $filename = remove_accents( $filename );
  1847. $special_chars = array( '?', '[', ']', '/', '\\', '=', '<', '>', ':', ';', ',', "'", '"', '&', '$', '#', '*', '(', ')', '|', '~', '`', '!', '{', '}', '%', '+', '’', '«', '»', '”', '“', chr( 0 ) );
  1848. // Check for support for utf8 in the installed PCRE library once and store the result in a static.
  1849. static $utf8_pcre = null;
  1850. if ( ! isset( $utf8_pcre ) ) {
  1851. // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
  1852. $utf8_pcre = @preg_match( '/^./u', 'a' );
  1853. }
  1854. if ( ! seems_utf8( $filename ) ) {
  1855. $_ext = pathinfo( $filename, PATHINFO_EXTENSION );
  1856. $_name = pathinfo( $filename, PATHINFO_FILENAME );
  1857. $filename = sanitize_title_with_dashes( $_name ) . '.' . $_ext;
  1858. }
  1859. if ( $utf8_pcre ) {
  1860. $filename = preg_replace( "#\x{00a0}#siu", ' ', $filename );
  1861. }
  1862. /**
  1863. * Filters the list of characters to remove from a filename.
  1864. *
  1865. * @since 2.8.0
  1866. *
  1867. * @param string[] $special_chars Array of characters to remove.
  1868. * @param string $filename_raw The original filename to be sanitized.
  1869. */
  1870. $special_chars = apply_filters( 'sanitize_file_name_chars', $special_chars, $filename_raw );
  1871. $filename = str_replace( $special_chars, '', $filename );
  1872. $filename = str_replace( array( '%20', '+' ), '-', $filename );
  1873. $filename = preg_replace( '/[\r\n\t -]+/', '-', $filename );
  1874. $filename = trim( $filename, '.-_' );
  1875. if ( false === strpos( $filename, '.' ) ) {
  1876. $mime_types = wp_get_mime_types();
  1877. $filetype = wp_check_filetype( 'test.' . $filename, $mime_types );
  1878. if ( $filetype['ext'] === $filename ) {
  1879. $filename = 'unnamed-file.' . $filetype['ext'];
  1880. }
  1881. }
  1882. // Split the filename into a base and extension[s].
  1883. $parts = explode( '.', $filename );
  1884. // Return if only one extension.
  1885. if ( count( $parts ) <= 2 ) {
  1886. /** This filter is documented in wp-includes/formatting.php */
  1887. return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
  1888. }
  1889. // Process multiple extensions.
  1890. $filename = array_shift( $parts );
  1891. $extension = array_pop( $parts );
  1892. $mimes = get_allowed_mime_types();
  1893. /*
  1894. * Loop over any intermediate extensions. Postfix them with a trailing underscore
  1895. * if they are a 2 - 5 character long alpha string not in the allowed extension list.
  1896. */
  1897. foreach ( (array) $parts as $part ) {
  1898. $filename .= '.' . $part;
  1899. if ( preg_match( '/^[a-zA-Z]{2,5}\d?$/', $part ) ) {
  1900. $allowed = false;
  1901. foreach ( $mimes as $ext_preg => $mime_match ) {
  1902. $ext_preg = '!^(' . $ext_preg . ')$!i';
  1903. if ( preg_match( $ext_preg, $part ) ) {
  1904. $allowed = true;
  1905. break;
  1906. }
  1907. }
  1908. if ( ! $allowed ) {
  1909. $filename .= '_';
  1910. }
  1911. }
  1912. }
  1913. $filename .= '.' . $extension;
  1914. /**
  1915. * Filters a sanitized filename string.
  1916. *
  1917. * @since 2.8.0
  1918. *
  1919. * @param string $filename Sanitized filename.
  1920. * @param string $filename_raw The filename prior to sanitization.
  1921. */
  1922. return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
  1923. }
  1924. /**
  1925. * Sanitizes a username, stripping out unsafe characters.
  1926. *
  1927. * Removes tags, octets, entities, and if strict is enabled, will only keep
  1928. * alphanumeric, _, space, ., -, @. After sanitizing, it passes the username,
  1929. * raw username (the username in the parameter), and the value of $strict as
  1930. * parameters for the {@see 'sanitize_user'} filter.
  1931. *
  1932. * @since 2.0.0
  1933. *
  1934. * @param string $username The username to be sanitized.
  1935. * @param bool $strict Optional. If set limits $username to specific characters.
  1936. * Default false.
  1937. * @return string The sanitized username, after passing through filters.
  1938. */
  1939. function sanitize_user( $username, $strict = false ) {
  1940. $raw_username = $username;
  1941. $username = wp_strip_all_tags( $username );
  1942. $username = remove_accents( $username );
  1943. // Kill octets.
  1944. $username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username );
  1945. // Kill entities.
  1946. $username = preg_replace( '/&.+?;/', '', $username );
  1947. // If strict, reduce to ASCII for max portability.
  1948. if ( $strict ) {
  1949. $username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username );
  1950. }
  1951. $username = trim( $username );
  1952. // Consolidate contiguous whitespace.
  1953. $username = preg_replace( '|\s+|', ' ', $username );
  1954. /**
  1955. * Filters a sanitized username string.
  1956. *
  1957. * @since 2.0.1
  1958. *
  1959. * @param string $username Sanitized username.
  1960. * @param string $raw_username The username prior to sanitization.
  1961. * @param bool $strict Whether to limit the sanitization to specific characters.
  1962. */
  1963. return apply_filters( 'sanitize_user', $username, $raw_username, $strict );
  1964. }
  1965. /**
  1966. * Sanitizes a string key.
  1967. *
  1968. * Keys are used as internal identifiers. Lowercase alphanumeric characters,
  1969. * dashes, and underscores are allowed.
  1970. *
  1971. * @since 3.0.0
  1972. *
  1973. * @param string $key String key.
  1974. * @return string Sanitized key.
  1975. */
  1976. function sanitize_key( $key ) {
  1977. $sanitized_key = '';
  1978. if ( is_scalar( $key ) ) {
  1979. $sanitized_key = strtolower( $key );
  1980. $sanitized_key = preg_replace( '/[^a-z0-9_\-]/', '', $sanitized_key );
  1981. }
  1982. /**
  1983. * Filters a sanitized key string.
  1984. *
  1985. * @since 3.0.0
  1986. *
  1987. * @param string $sanitized_key Sanitized key.
  1988. * @param string $key The key prior to sanitization.
  1989. */
  1990. return apply_filters( 'sanitize_key', $sanitized_key, $key );
  1991. }
  1992. /**
  1993. * Sanitizes a string into a slug, which can be used in URLs or HTML attributes.
  1994. *
  1995. * By default, converts accent characters to ASCII characters and further
  1996. * limits the output to alphanumeric characters, underscore (_) and dash (-)
  1997. * through the {@see 'sanitize_title'} filter.
  1998. *
  1999. * If `$title` is empty and `$fallback_title` is set, the latter will be used.
  2000. *
  2001. * @since 1.0.0
  2002. *
  2003. * @param string $title The string to be sanitized.
  2004. * @param string $fallback_title Optional. A title to use if $title is empty. Default empty.
  2005. * @param string $context Optional. The operation for which the string is sanitized.
  2006. * When set to 'save', the string runs through remove_accents().
  2007. * Default 'save'.
  2008. * @return string The sanitized string.
  2009. */
  2010. function sanitize_title( $title, $fallback_title = '', $context = 'save' ) {
  2011. $raw_title = $title;
  2012. if ( 'save' === $context ) {
  2013. $title = remove_accents( $title );
  2014. }
  2015. /**
  2016. * Filters a sanitized title string.
  2017. *
  2018. * @since 1.2.0
  2019. *
  2020. * @param string $title Sanitized title.
  2021. * @param string $raw_title The title prior to sanitization.
  2022. * @param string $context The context for which the title is being sanitized.
  2023. */
  2024. $title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
  2025. if ( '' === $title || false === $title ) {
  2026. $title = $fallback_title;
  2027. }
  2028. return $title;
  2029. }
  2030. /**
  2031. * Sanitizes a title with the 'query' context.
  2032. *
  2033. * Used for querying the database for a value from URL.
  2034. *
  2035. * @since 3.1.0
  2036. *
  2037. * @param string $title The string to be sanitized.
  2038. * @return string The sanitized string.
  2039. */
  2040. function sanitize_title_for_query( $title ) {
  2041. return sanitize_title( $title, '', 'query' );
  2042. }
  2043. /**
  2044. * Sanitizes a title, replacing whitespace and a few other characters with dashes.
  2045. *
  2046. * Limits the output to alphanumeric characters, underscore (_) and dash (-).
  2047. * Whitespace becomes a dash.
  2048. *
  2049. * @since 1.2.0
  2050. *
  2051. * @param string $title The title to be sanitized.
  2052. * @param string $raw_title Optional. Not used. Default empty.
  2053. * @param string $context Optional. The operation for which the string is sanitized.
  2054. * When set to 'save', additional entities are converted to hyphens
  2055. * or stripped entirely. Default 'display'.
  2056. * @return string The sanitized title.
  2057. */
  2058. function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) {
  2059. $title = strip_tags( $title );
  2060. // Preserve escaped octets.
  2061. $title = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title );
  2062. // Remove percent signs that are not part of an octet.
  2063. $title = str_replace( '%', '', $title );
  2064. // Restore octets.
  2065. $title = preg_replace( '|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title );
  2066. if ( seems_utf8( $title ) ) {
  2067. if ( function_exists( 'mb_strtolower' ) ) {
  2068. $title = mb_strtolower( $title, 'UTF-8' );
  2069. }
  2070. $title = utf8_uri_encode( $title, 200 );
  2071. }
  2072. $title = strtolower( $title );
  2073. if ( 'save' === $context ) {
  2074. // Convert &nbsp, &ndash, and &mdash to hyphens.
  2075. $title = str_replace( array( '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title );
  2076. // Convert &nbsp, &ndash, and &mdash HTML entities to hyphens.
  2077. $title = str_replace( array( '&nbsp;', '&#160;', '&ndash;', '&#8211;', '&mdash;', '&#8212;' ), '-', $title );
  2078. // Convert forward slash to hyphen.
  2079. $title = str_replace( '/', '-', $title );
  2080. // Strip these characters entirely.
  2081. $title = str_replace(
  2082. array(
  2083. // Soft hyphens.
  2084. '%c2%ad',
  2085. // &iexcl and &iquest.
  2086. '%c2%a1',
  2087. '%c2%bf',
  2088. // Angle quotes.
  2089. '%c2%ab',
  2090. '%c2%bb',
  2091. '%e2%80%b9',
  2092. '%e2%80%ba',
  2093. // Curly quotes.
  2094. '%e2%80%98',
  2095. '%e2%80%99',
  2096. '%e2%80%9c',
  2097. '%e2%80%9d',
  2098. '%e2%80%9a',
  2099. '%e2%80%9b',
  2100. '%e2%80%9e',
  2101. '%e2%80%9f',
  2102. // Bullet.
  2103. '%e2%80%a2',
  2104. // &copy, &reg, &deg, &hellip, and &trade.
  2105. '%c2%a9',
  2106. '%c2%ae',
  2107. '%c2%b0',
  2108. '%e2%80%a6',
  2109. '%e2%84%a2',
  2110. // Acute accents.
  2111. '%c2%b4',
  2112. '%cb%8a',
  2113. '%cc%81',
  2114. '%cd%81',
  2115. // Grave accent, macron, caron.
  2116. '%cc%80',
  2117. '%cc%84',
  2118. '%cc%8c',
  2119. // Non-visible characters that display without a width.
  2120. '%e2%80%8b', // Zero width space.
  2121. '%e2%80%8c', // Zero width non-joiner.
  2122. '%e2%80%8d', // Zero width joiner.
  2123. '%e2%80%8e', // Left-to-right mark.
  2124. '%e2%80%8f', // Right-to-left mark.
  2125. '%e2%80%aa', // Left-to-right embedding.
  2126. '%e2%80%ab', // Right-to-left embedding.
  2127. '%e2%80%ac', // Pop directional formatting.
  2128. '%e2%80%ad', // Left-to-right override.
  2129. '%e2%80%ae', // Right-to-left override.
  2130. '%ef%bb%bf', // Byte order mark.
  2131. ),
  2132. '',
  2133. $title
  2134. );
  2135. // Convert non-visible characters that display with a width to hyphen.
  2136. $title = str_replace(
  2137. array(
  2138. '%e2%80%80', // En quad.
  2139. '%e2%80%81', // Em quad.
  2140. '%e2%80%82', // En space.
  2141. '%e2%80%83', // Em space.
  2142. '%e2%80%84', // Three-per-em space.
  2143. '%e2%80%85', // Four-per-em space.
  2144. '%e2%80%86', // Six-per-em space.
  2145. '%e2%80%87', // Figure space.
  2146. '%e2%80%88', // Punctuation space.
  2147. '%e2%80%89', // Thin space.
  2148. '%e2%80%8a', // Hair space.
  2149. '%e2%80%a8', // Line separator.
  2150. '%e2%80%a9', // Paragraph separator.
  2151. '%e2%80%af', // Narrow no-break space.
  2152. ),
  2153. '-',
  2154. $title
  2155. );
  2156. // Convert &times to 'x'.
  2157. $title = str_replace( '%c3%97', 'x', $title );
  2158. }
  2159. // Kill entities.
  2160. $title = preg_replace( '/&.+?;/', '', $title );
  2161. $title = str_replace( '.', '-', $title );
  2162. $title = preg_replace( '/[^%a-z0-9 _-]/', '', $title );
  2163. $title = preg_replace( '/\s+/', '-', $title );
  2164. $title = preg_replace( '|-+|', '-', $title );
  2165. $title = trim( $title, '-' );
  2166. return $title;
  2167. }
  2168. /**
  2169. * Ensures a string is a valid SQL 'order by' clause.
  2170. *
  2171. * Accepts one or more columns, with or without a sort order (ASC / DESC).
  2172. * e.g. 'column_1', 'column_1, column_2', 'column_1 ASC, column_2 DESC' etc.
  2173. *
  2174. * Also accepts 'RAND()'.
  2175. *
  2176. * @since 2.5.1
  2177. *
  2178. * @param string $orderby Order by clause to be validated.
  2179. * @return string|false Returns $orderby if valid, false otherwise.
  2180. */
  2181. function sanitize_sql_orderby( $orderby ) {
  2182. if ( preg_match( '/^\s*(([a-z0-9_]+|`[a-z0-9_]+`)(\s+(ASC|DESC))?\s*(,\s*(?=[a-z0-9_`])|$))+$/i', $orderby ) || preg_match( '/^\s*RAND\(\s*\)\s*$/i', $orderby ) ) {
  2183. return $orderby;
  2184. }
  2185. return false;
  2186. }
  2187. /**
  2188. * Sanitizes an HTML classname to ensure it only contains valid characters.
  2189. *
  2190. * Strips the string down to A-Z,a-z,0-9,_,-. If this results in an empty
  2191. * string then it will return the alternative value supplied.
  2192. *
  2193. * @todo Expand to support the full range of CDATA that a class attribute can contain.
  2194. *
  2195. * @since 2.8.0
  2196. *
  2197. * @param string $class The classname to be sanitized
  2198. * @param string $fallback Optional. The value to return if the sanitization ends up as an empty string.
  2199. * Defaults to an empty string.
  2200. * @return string The sanitized value
  2201. */
  2202. function sanitize_html_class( $class, $fallback = '' ) {
  2203. // Strip out any %-encoded octets.
  2204. $sanitized = preg_replace( '|%[a-fA-F0-9][a-fA-F0-9]|', '', $class );
  2205. // Limit to A-Z, a-z, 0-9, '_', '-'.
  2206. $sanitized = preg_replace( '/[^A-Za-z0-9_-]/', '', $sanitized );
  2207. if ( '' === $sanitized && $fallback ) {
  2208. return sanitize_html_class( $fallback );
  2209. }
  2210. /**
  2211. * Filters a sanitized HTML class string.
  2212. *
  2213. * @since 2.8.0
  2214. *
  2215. * @param string $sanitized The sanitized HTML class.
  2216. * @param string $class HTML class before sanitization.
  2217. * @param string $fallback The fallback string.
  2218. */
  2219. return apply_filters( 'sanitize_html_class', $sanitized, $class, $fallback );
  2220. }
  2221. /**
  2222. * Converts lone & characters into `&#038;` (a.k.a. `&amp;`)
  2223. *
  2224. * @since 0.71
  2225. *
  2226. * @param string $content String of characters to be converted.
  2227. * @param string $deprecated Not used.
  2228. * @return string Converted string.
  2229. */
  2230. function convert_chars( $content, $deprecated = '' ) {
  2231. if ( ! empty( $deprecated ) ) {
  2232. _deprecated_argument( __FUNCTION__, '0.71' );
  2233. }
  2234. if ( strpos( $content, '&' ) !== false ) {
  2235. $content = preg_replace( '/&([^#])(?![a-z1-4]{1,8};)/i', '&#038;$1', $content );
  2236. }
  2237. return $content;
  2238. }
  2239. /**
  2240. * Converts invalid Unicode references range to valid range.
  2241. *
  2242. * @since 4.3.0
  2243. *
  2244. * @param string $content String with entities that need converting.
  2245. * @return string Converted string.
  2246. */
  2247. function convert_invalid_entities( $content ) {
  2248. $wp_htmltranswinuni = array(
  2249. '&#128;' => '&#8364;', // The Euro sign.
  2250. '&#129;' => '',
  2251. '&#130;' => '&#8218;', // These are Windows CP1252 specific characters.
  2252. '&#131;' => '&#402;', // They would look weird on non-Windows browsers.
  2253. '&#132;' => '&#8222;',
  2254. '&#133;' => '&#8230;',
  2255. '&#134;' => '&#8224;',
  2256. '&#135;' => '&#8225;',
  2257. '&#136;' => '&#710;',
  2258. '&#137;' => '&#8240;',
  2259. '&#138;' => '&#352;',
  2260. '&#139;' => '&#8249;',
  2261. '&#140;' => '&#338;',
  2262. '&#141;' => '',
  2263. '&#142;' => '&#381;',
  2264. '&#143;' => '',
  2265. '&#144;' => '',
  2266. '&#145;' => '&#8216;',
  2267. '&#146;' => '&#8217;',
  2268. '&#147;' => '&#8220;',
  2269. '&#148;' => '&#8221;',
  2270. '&#149;' => '&#8226;',
  2271. '&#150;' => '&#8211;',
  2272. '&#151;' => '&#8212;',
  2273. '&#152;' => '&#732;',
  2274. '&#153;' => '&#8482;',
  2275. '&#154;' => '&#353;',
  2276. '&#155;' => '&#8250;',
  2277. '&#156;' => '&#339;',
  2278. '&#157;' => '',
  2279. '&#158;' => '&#382;',
  2280. '&#159;' => '&#376;',
  2281. );
  2282. if ( strpos( $content, '&#1' ) !== false ) {
  2283. $content = strtr( $content, $wp_htmltranswinuni );
  2284. }
  2285. return $content;
  2286. }
  2287. /**
  2288. * Balances tags if forced to, or if the 'use_balanceTags' option is set to true.
  2289. *
  2290. * @since 0.71
  2291. *
  2292. * @param string $text Text to be balanced
  2293. * @param bool $force If true, forces balancing, ignoring the value of the option. Default false.
  2294. * @return string Balanced text
  2295. */
  2296. function balanceTags( $text, $force = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
  2297. if ( $force || (int) get_option( 'use_balanceTags' ) === 1 ) {
  2298. return force_balance_tags( $text );
  2299. } else {
  2300. return $text;
  2301. }
  2302. }
  2303. /**
  2304. * Balances tags of string using a modified stack.
  2305. *
  2306. * @since 2.0.4
  2307. * @since 5.3.0 Improve accuracy and add support for custom element tags.
  2308. *
  2309. * @author Leonard Lin <leonard@acm.org>
  2310. * @license GPL
  2311. * @copyright November 4, 2001
  2312. * @version 1.1
  2313. * @todo Make better - change loop condition to $text in 1.2
  2314. * @internal Modified by Scott Reilly (coffee2code) 02 Aug 2004
  2315. * 1.1 Fixed handling of append/stack pop order of end text
  2316. * Added Cleaning Hooks
  2317. * 1.0 First Version
  2318. *
  2319. * @param string $text Text to be balanced.
  2320. * @return string Balanced text.
  2321. */
  2322. function force_balance_tags( $text ) {
  2323. $tagstack = array();
  2324. $stacksize = 0;
  2325. $tagqueue = '';
  2326. $newtext = '';
  2327. // Known single-entity/self-closing tags.
  2328. $single_tags = array( 'area', 'base', 'basefont', 'br', 'col', 'command', 'embed', 'frame', 'hr', 'img', 'input', 'isindex', 'link', 'meta', 'param', 'source', 'track', 'wbr' );
  2329. // Tags that can be immediately nested within themselves.
  2330. $nestable_tags = array( 'article', 'aside', 'blockquote', 'details', 'div', 'figure', 'object', 'q', 'section', 'span' );
  2331. // WP bug fix for comments - in case you REALLY meant to type '< !--'.
  2332. $text = str_replace( '< !--', '< !--', $text );
  2333. // WP bug fix for LOVE <3 (and other situations with '<' before a number).
  2334. $text = preg_replace( '#<([0-9]{1})#', '&lt;$1', $text );
  2335. /**
  2336. * Matches supported tags.
  2337. *
  2338. * To get the pattern as a string without the comments paste into a PHP
  2339. * REPL like `php -a`.
  2340. *
  2341. * @see https://html.spec.whatwg.org/#elements-2
  2342. * @see https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
  2343. *
  2344. * @example
  2345. * ~# php -a
  2346. * php > $s = [paste copied contents of expression below including parentheses];
  2347. * php > echo $s;
  2348. */
  2349. $tag_pattern = (
  2350. '#<' . // Start with an opening bracket.
  2351. '(/?)' . // Group 1 - If it's a closing tag it'll have a leading slash.
  2352. '(' . // Group 2 - Tag name.
  2353. // Custom element tags have more lenient rules than HTML tag names.
  2354. '(?:[a-z](?:[a-z0-9._]*)-(?:[a-z0-9._-]+)+)' .
  2355. '|' .
  2356. // Traditional tag rules approximate HTML tag names.
  2357. '(?:[\w:]+)' .
  2358. ')' .
  2359. '(?:' .
  2360. // We either immediately close the tag with its '>' and have nothing here.
  2361. '\s*' .
  2362. '(/?)' . // Group 3 - "attributes" for empty tag.
  2363. '|' .
  2364. // Or we must start with space characters to separate the tag name from the attributes (or whitespace).
  2365. '(\s+)' . // Group 4 - Pre-attribute whitespace.
  2366. '([^>]*)' . // Group 5 - Attributes.
  2367. ')' .
  2368. '>#' // End with a closing bracket.
  2369. );
  2370. while ( preg_match( $tag_pattern, $text, $regex ) ) {
  2371. $full_match = $regex[0];
  2372. $has_leading_slash = ! empty( $regex[1] );
  2373. $tag_name = $regex[2];
  2374. $tag = strtolower( $tag_name );
  2375. $is_single_tag = in_array( $tag, $single_tags, true );
  2376. $pre_attribute_ws = isset( $regex[4] ) ? $regex[4] : '';
  2377. $attributes = trim( isset( $regex[5] ) ? $regex[5] : $regex[3] );
  2378. $has_self_closer = '/' === substr( $attributes, -1 );
  2379. $newtext .= $tagqueue;
  2380. $i = strpos( $text, $full_match );
  2381. $l = strlen( $full_match );
  2382. // Clear the shifter.
  2383. $tagqueue = '';
  2384. if ( $has_leading_slash ) { // End tag.
  2385. // If too many closing tags.
  2386. if ( $stacksize <= 0 ) {
  2387. $tag = '';
  2388. // Or close to be safe $tag = '/' . $tag.
  2389. // If stacktop value = tag close value, then pop.
  2390. } elseif ( $tagstack[ $stacksize - 1 ] === $tag ) { // Found closing tag.
  2391. $tag = '</' . $tag . '>'; // Close tag.
  2392. array_pop( $tagstack );
  2393. $stacksize--;
  2394. } else { // Closing tag not at top, search for it.
  2395. for ( $j = $stacksize - 1; $j >= 0; $j-- ) {
  2396. if ( $tagstack[ $j ] === $tag ) {
  2397. // Add tag to tagqueue.
  2398. for ( $k = $stacksize - 1; $k >= $j; $k-- ) {
  2399. $tagqueue .= '</' . array_pop( $tagstack ) . '>';
  2400. $stacksize--;
  2401. }
  2402. break;
  2403. }
  2404. }
  2405. $tag = '';
  2406. }
  2407. } else { // Begin tag.
  2408. if ( $has_self_closer ) { // If it presents itself as a self-closing tag...
  2409. // ...but it isn't a known single-entity self-closing tag, then don't let it be treated as such
  2410. // and immediately close it with a closing tag (the tag will encapsulate no text as a result).
  2411. if ( ! $is_single_tag ) {
  2412. $attributes = trim( substr( $attributes, 0, -1 ) ) . "></$tag";
  2413. }
  2414. } elseif ( $is_single_tag ) { // Else if it's a known single-entity tag but it doesn't close itself, do so.
  2415. $pre_attribute_ws = ' ';
  2416. $attributes .= '/';
  2417. } else { // It's not a single-entity tag.
  2418. // If the top of the stack is the same as the tag we want to push, close previous tag.
  2419. if ( $stacksize > 0 && ! in_array( $tag, $nestable_tags, true ) && $tagstack[ $stacksize - 1 ] === $tag ) {
  2420. $tagqueue = '</' . array_pop( $tagstack ) . '>';
  2421. $stacksize--;
  2422. }
  2423. $stacksize = array_push( $tagstack, $tag );
  2424. }
  2425. // Attributes.
  2426. if ( $has_self_closer && $is_single_tag ) {
  2427. // We need some space - avoid <br/> and prefer <br />.
  2428. $pre_attribute_ws = ' ';
  2429. }
  2430. $tag = '<' . $tag . $pre_attribute_ws . $attributes . '>';
  2431. // If already queuing a close tag, then put this tag on too.
  2432. if ( ! empty( $tagqueue ) ) {
  2433. $tagqueue .= $tag;
  2434. $tag = '';
  2435. }
  2436. }
  2437. $newtext .= substr( $text, 0, $i ) . $tag;
  2438. $text = substr( $text, $i + $l );
  2439. }
  2440. // Clear tag queue.
  2441. $newtext .= $tagqueue;
  2442. // Add remaining text.
  2443. $newtext .= $text;
  2444. while ( $x = array_pop( $tagstack ) ) {
  2445. $newtext .= '</' . $x . '>'; // Add remaining tags to close.
  2446. }
  2447. // WP fix for the bug with HTML comments.
  2448. $newtext = str_replace( '< !--', '<!--', $newtext );
  2449. $newtext = str_replace( '< !--', '< !--', $newtext );
  2450. return $newtext;
  2451. }
  2452. /**
  2453. * Acts on text which is about to be edited.
  2454. *
  2455. * The $content is run through esc_textarea(), which uses htmlspecialchars()
  2456. * to convert special characters to HTML entities. If `$richedit` is set to true,
  2457. * it is simply a holder for the {@see 'format_to_edit'} filter.
  2458. *
  2459. * @since 0.71
  2460. * @since 4.4.0 The `$richedit` parameter was renamed to `$rich_text` for clarity.
  2461. *
  2462. * @param string $content The text about to be edited.
  2463. * @param bool $rich_text Optional. Whether `$content` should be considered rich text,
  2464. * in which case it would not be passed through esc_textarea().
  2465. * Default false.
  2466. * @return string The text after the filter (and possibly htmlspecialchars()) has been run.
  2467. */
  2468. function format_to_edit( $content, $rich_text = false ) {
  2469. /**
  2470. * Filters the text to be formatted for editing.
  2471. *
  2472. * @since 1.2.0
  2473. *
  2474. * @param string $content The text, prior to formatting for editing.
  2475. */
  2476. $content = apply_filters( 'format_to_edit', $content );
  2477. if ( ! $rich_text ) {
  2478. $content = esc_textarea( $content );
  2479. }
  2480. return $content;
  2481. }
  2482. /**
  2483. * Add leading zeros when necessary.
  2484. *
  2485. * If you set the threshold to '4' and the number is '10', then you will get
  2486. * back '0010'. If you set the threshold to '4' and the number is '5000', then you
  2487. * will get back '5000'.
  2488. *
  2489. * Uses sprintf to append the amount of zeros based on the $threshold parameter
  2490. * and the size of the number. If the number is large enough, then no zeros will
  2491. * be appended.
  2492. *
  2493. * @since 0.71
  2494. *
  2495. * @param int $number Number to append zeros to if not greater than threshold.
  2496. * @param int $threshold Digit places number needs to be to not have zeros added.
  2497. * @return string Adds leading zeros to number if needed.
  2498. */
  2499. function zeroise( $number, $threshold ) {
  2500. return sprintf( '%0' . $threshold . 's', $number );
  2501. }
  2502. /**
  2503. * Adds backslashes before letters and before a number at the start of a string.
  2504. *
  2505. * @since 0.71
  2506. *
  2507. * @param string $string Value to which backslashes will be added.
  2508. * @return string String with backslashes inserted.
  2509. */
  2510. function backslashit( $string ) {
  2511. if ( isset( $string[0] ) && $string[0] >= '0' && $string[0] <= '9' ) {
  2512. $string = '\\\\' . $string;
  2513. }
  2514. return addcslashes( $string, 'A..Za..z' );
  2515. }
  2516. /**
  2517. * Appends a trailing slash.
  2518. *
  2519. * Will remove trailing forward and backslashes if it exists already before adding
  2520. * a trailing forward slash. This prevents double slashing a string or path.
  2521. *
  2522. * The primary use of this is for paths and thus should be used for paths. It is
  2523. * not restricted to paths and offers no specific path support.
  2524. *
  2525. * @since 1.2.0
  2526. *
  2527. * @param string $string What to add the trailing slash to.
  2528. * @return string String with trailing slash added.
  2529. */
  2530. function trailingslashit( $string ) {
  2531. return untrailingslashit( $string ) . '/';
  2532. }
  2533. /**
  2534. * Removes trailing forward slashes and backslashes if they exist.
  2535. *
  2536. * The primary use of this is for paths and thus should be used for paths. It is
  2537. * not restricted to paths and offers no specific path support.
  2538. *
  2539. * @since 2.2.0
  2540. *
  2541. * @param string $string What to remove the trailing slashes from.
  2542. * @return string String without the trailing slashes.
  2543. */
  2544. function untrailingslashit( $string ) {
  2545. return rtrim( $string, '/\\' );
  2546. }
  2547. /**
  2548. * Adds slashes to a string or recursively adds slashes to strings within an array.
  2549. *
  2550. * Slashes will first be removed if magic_quotes_gpc is set, see {@link
  2551. * https://www.php.net/magic_quotes} for more details.
  2552. *
  2553. * @since 0.71
  2554. *
  2555. * @param string|array $gpc String or array of data to slash.
  2556. * @return string|array Slashed `$gpc`.
  2557. */
  2558. function addslashes_gpc( $gpc ) {
  2559. return wp_slash( $gpc );
  2560. }
  2561. /**
  2562. * Navigates through an array, object, or scalar, and removes slashes from the values.
  2563. *
  2564. * @since 2.0.0
  2565. *
  2566. * @param mixed $value The value to be stripped.
  2567. * @return mixed Stripped value.
  2568. */
  2569. function stripslashes_deep( $value ) {
  2570. return map_deep( $value, 'stripslashes_from_strings_only' );
  2571. }
  2572. /**
  2573. * Callback function for `stripslashes_deep()` which strips slashes from strings.
  2574. *
  2575. * @since 4.4.0
  2576. *
  2577. * @param mixed $value The array or string to be stripped.
  2578. * @return mixed The stripped value.
  2579. */
  2580. function stripslashes_from_strings_only( $value ) {
  2581. return is_string( $value ) ? stripslashes( $value ) : $value;
  2582. }
  2583. /**
  2584. * Navigates through an array, object, or scalar, and encodes the values to be used in a URL.
  2585. *
  2586. * @since 2.2.0
  2587. *
  2588. * @param mixed $value The array or string to be encoded.
  2589. * @return mixed The encoded value.
  2590. */
  2591. function urlencode_deep( $value ) {
  2592. return map_deep( $value, 'urlencode' );
  2593. }
  2594. /**
  2595. * Navigates through an array, object, or scalar, and raw-encodes the values to be used in a URL.
  2596. *
  2597. * @since 3.4.0
  2598. *
  2599. * @param mixed $value The array or string to be encoded.
  2600. * @return mixed The encoded value.
  2601. */
  2602. function rawurlencode_deep( $value ) {
  2603. return map_deep( $value, 'rawurlencode' );
  2604. }
  2605. /**
  2606. * Navigates through an array, object, or scalar, and decodes URL-encoded values
  2607. *
  2608. * @since 4.4.0
  2609. *
  2610. * @param mixed $value The array or string to be decoded.
  2611. * @return mixed The decoded value.
  2612. */
  2613. function urldecode_deep( $value ) {
  2614. return map_deep( $value, 'urldecode' );
  2615. }
  2616. /**
  2617. * Converts email addresses characters to HTML entities to block spam bots.
  2618. *
  2619. * @since 0.71
  2620. *
  2621. * @param string $email_address Email address.
  2622. * @param int $hex_encoding Optional. Set to 1 to enable hex encoding.
  2623. * @return string Converted email address.
  2624. */
  2625. function antispambot( $email_address, $hex_encoding = 0 ) {
  2626. $email_no_spam_address = '';
  2627. for ( $i = 0, $len = strlen( $email_address ); $i < $len; $i++ ) {
  2628. $j = rand( 0, 1 + $hex_encoding );
  2629. if ( 0 == $j ) {
  2630. $email_no_spam_address .= '&#' . ord( $email_address[ $i ] ) . ';';
  2631. } elseif ( 1 == $j ) {
  2632. $email_no_spam_address .= $email_address[ $i ];
  2633. } elseif ( 2 == $j ) {
  2634. $email_no_spam_address .= '%' . zeroise( dechex( ord( $email_address[ $i ] ) ), 2 );
  2635. }
  2636. }
  2637. return str_replace( '@', '&#64;', $email_no_spam_address );
  2638. }
  2639. /**
  2640. * Callback to convert URI match to HTML A element.
  2641. *
  2642. * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable().
  2643. *
  2644. * @since 2.3.2
  2645. * @access private
  2646. *
  2647. * @param array $matches Single Regex Match.
  2648. * @return string HTML A element with URI address.
  2649. */
  2650. function _make_url_clickable_cb( $matches ) {
  2651. $url = $matches[2];
  2652. if ( ')' === $matches[3] && strpos( $url, '(' ) ) {
  2653. // If the trailing character is a closing parethesis, and the URL has an opening parenthesis in it,
  2654. // add the closing parenthesis to the URL. Then we can let the parenthesis balancer do its thing below.
  2655. $url .= $matches[3];
  2656. $suffix = '';
  2657. } else {
  2658. $suffix = $matches[3];
  2659. }
  2660. // Include parentheses in the URL only if paired.
  2661. while ( substr_count( $url, '(' ) < substr_count( $url, ')' ) ) {
  2662. $suffix = strrchr( $url, ')' ) . $suffix;
  2663. $url = substr( $url, 0, strrpos( $url, ')' ) );
  2664. }
  2665. $url = esc_url( $url );
  2666. if ( empty( $url ) ) {
  2667. return $matches[0];
  2668. }
  2669. if ( 'comment_text' === current_filter() ) {
  2670. $rel = 'nofollow ugc';
  2671. } else {
  2672. $rel = 'nofollow';
  2673. }
  2674. /**
  2675. * Filters the rel value that is added to URL matches converted to links.
  2676. *
  2677. * @since 5.3.0
  2678. *
  2679. * @param string $rel The rel value.
  2680. * @param string $url The matched URL being converted to a link tag.
  2681. */
  2682. $rel = apply_filters( 'make_clickable_rel', $rel, $url );
  2683. $rel = esc_attr( $rel );
  2684. return $matches[1] . "<a href=\"$url\" rel=\"$rel\">$url</a>" . $suffix;
  2685. }
  2686. /**
  2687. * Callback to convert URL match to HTML A element.
  2688. *
  2689. * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable().
  2690. *
  2691. * @since 2.3.2
  2692. * @access private
  2693. *
  2694. * @param array $matches Single Regex Match.
  2695. * @return string HTML A element with URL address.
  2696. */
  2697. function _make_web_ftp_clickable_cb( $matches ) {
  2698. $ret = '';
  2699. $dest = $matches[2];
  2700. $dest = 'http://' . $dest;
  2701. // Removed trailing [.,;:)] from URL.
  2702. $last_char = substr( $dest, -1 );
  2703. if ( in_array( $last_char, array( '.', ',', ';', ':', ')' ), true ) === true ) {
  2704. $ret = $last_char;
  2705. $dest = substr( $dest, 0, strlen( $dest ) - 1 );
  2706. }
  2707. $dest = esc_url( $dest );
  2708. if ( empty( $dest ) ) {
  2709. return $matches[0];
  2710. }
  2711. if ( 'comment_text' === current_filter() ) {
  2712. $rel = 'nofollow ugc';
  2713. } else {
  2714. $rel = 'nofollow';
  2715. }
  2716. /** This filter is documented in wp-includes/formatting.php */
  2717. $rel = apply_filters( 'make_clickable_rel', $rel, $dest );
  2718. $rel = esc_attr( $rel );
  2719. return $matches[1] . "<a href=\"$dest\" rel=\"$rel\">$dest</a>$ret";
  2720. }
  2721. /**
  2722. * Callback to convert email address match to HTML A element.
  2723. *
  2724. * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable().
  2725. *
  2726. * @since 2.3.2
  2727. * @access private
  2728. *
  2729. * @param array $matches Single Regex Match.
  2730. * @return string HTML A element with email address.
  2731. */
  2732. function _make_email_clickable_cb( $matches ) {
  2733. $email = $matches[2] . '@' . $matches[3];
  2734. return $matches[1] . "<a href=\"mailto:$email\">$email</a>";
  2735. }
  2736. /**
  2737. * Converts plaintext URI to HTML links.
  2738. *
  2739. * Converts URI, www and ftp, and email addresses. Finishes by fixing links
  2740. * within links.
  2741. *
  2742. * @since 0.71
  2743. *
  2744. * @param string $text Content to convert URIs.
  2745. * @return string Content with converted URIs.
  2746. */
  2747. function make_clickable( $text ) {
  2748. $r = '';
  2749. $textarr = preg_split( '/(<[^<>]+>)/', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Split out HTML tags.
  2750. $nested_code_pre = 0; // Keep track of how many levels link is nested inside <pre> or <code>.
  2751. foreach ( $textarr as $piece ) {
  2752. if ( preg_match( '|^<code[\s>]|i', $piece ) || preg_match( '|^<pre[\s>]|i', $piece ) || preg_match( '|^<script[\s>]|i', $piece ) || preg_match( '|^<style[\s>]|i', $piece ) ) {
  2753. $nested_code_pre++;
  2754. } elseif ( $nested_code_pre && ( '</code>' === strtolower( $piece ) || '</pre>' === strtolower( $piece ) || '</script>' === strtolower( $piece ) || '</style>' === strtolower( $piece ) ) ) {
  2755. $nested_code_pre--;
  2756. }
  2757. if ( $nested_code_pre || empty( $piece ) || ( '<' === $piece[0] && ! preg_match( '|^<\s*[\w]{1,20}+://|', $piece ) ) ) {
  2758. $r .= $piece;
  2759. continue;
  2760. }
  2761. // Long strings might contain expensive edge cases...
  2762. if ( 10000 < strlen( $piece ) ) {
  2763. // ...break it up.
  2764. foreach ( _split_str_by_whitespace( $piece, 2100 ) as $chunk ) { // 2100: Extra room for scheme and leading and trailing paretheses.
  2765. if ( 2101 < strlen( $chunk ) ) {
  2766. $r .= $chunk; // Too big, no whitespace: bail.
  2767. } else {
  2768. $r .= make_clickable( $chunk );
  2769. }
  2770. }
  2771. } else {
  2772. $ret = " $piece "; // Pad with whitespace to simplify the regexes.
  2773. $url_clickable = '~
  2774. ([\\s(<.,;:!?]) # 1: Leading whitespace, or punctuation.
  2775. ( # 2: URL.
  2776. [\\w]{1,20}+:// # Scheme and hier-part prefix.
  2777. (?=\S{1,2000}\s) # Limit to URLs less than about 2000 characters long.
  2778. [\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]*+ # Non-punctuation URL character.
  2779. (?: # Unroll the Loop: Only allow puctuation URL character if followed by a non-punctuation URL character.
  2780. [\'.,;:!?)] # Punctuation URL character.
  2781. [\\w\\x80-\\xff#%\\~/@\\[\\]*(+=&$-]++ # Non-punctuation URL character.
  2782. )*
  2783. )
  2784. (\)?) # 3: Trailing closing parenthesis (for parethesis balancing post processing).
  2785. ~xS';
  2786. // The regex is a non-anchored pattern and does not have a single fixed starting character.
  2787. // Tell PCRE to spend more time optimizing since, when used on a page load, it will probably be used several times.
  2788. $ret = preg_replace_callback( $url_clickable, '_make_url_clickable_cb', $ret );
  2789. $ret = preg_replace_callback( '#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]+)#is', '_make_web_ftp_clickable_cb', $ret );
  2790. $ret = preg_replace_callback( '#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $ret );
  2791. $ret = substr( $ret, 1, -1 ); // Remove our whitespace padding.
  2792. $r .= $ret;
  2793. }
  2794. }
  2795. // Cleanup of accidental links within links.
  2796. return preg_replace( '#(<a([ \r\n\t]+[^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i', '$1$3</a>', $r );
  2797. }
  2798. /**
  2799. * Breaks a string into chunks by splitting at whitespace characters.
  2800. *
  2801. * The length of each returned chunk is as close to the specified length goal as possible,
  2802. * with the caveat that each chunk includes its trailing delimiter.
  2803. * Chunks longer than the goal are guaranteed to not have any inner whitespace.
  2804. *
  2805. * Joining the returned chunks with empty delimiters reconstructs the input string losslessly.
  2806. *
  2807. * Input string must have no null characters (or eventual transformations on output chunks must not care about null characters)
  2808. *
  2809. * _split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) ==
  2810. * array (
  2811. * 0 => '1234 67890 ', // 11 characters: Perfect split.
  2812. * 1 => '1234 ', // 5 characters: '1234 67890a' was too long.
  2813. * 2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long.
  2814. * 3 => '1234 890 ', // 11 characters: Perfect split.
  2815. * 4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long.
  2816. * 5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split.
  2817. * 6 => ' 45678 ', // 11 characters: Perfect split.
  2818. * 7 => '1 3 5 7 90 ', // 11 characters: End of $string.
  2819. * );
  2820. *
  2821. * @since 3.4.0
  2822. * @access private
  2823. *
  2824. * @param string $string The string to split.
  2825. * @param int $goal The desired chunk length.
  2826. * @return array Numeric array of chunks.
  2827. */
  2828. function _split_str_by_whitespace( $string, $goal ) {
  2829. $chunks = array();
  2830. $string_nullspace = strtr( $string, "\r\n\t\v\f ", "\000\000\000\000\000\000" );
  2831. while ( $goal < strlen( $string_nullspace ) ) {
  2832. $pos = strrpos( substr( $string_nullspace, 0, $goal + 1 ), "\000" );
  2833. if ( false === $pos ) {
  2834. $pos = strpos( $string_nullspace, "\000", $goal + 1 );
  2835. if ( false === $pos ) {
  2836. break;
  2837. }
  2838. }
  2839. $chunks[] = substr( $string, 0, $pos + 1 );
  2840. $string = substr( $string, $pos + 1 );
  2841. $string_nullspace = substr( $string_nullspace, $pos + 1 );
  2842. }
  2843. if ( $string ) {
  2844. $chunks[] = $string;
  2845. }
  2846. return $chunks;
  2847. }
  2848. /**
  2849. * Callback to add a rel attribute to HTML A element.
  2850. *
  2851. * Will remove already existing string before adding to prevent invalidating (X)HTML.
  2852. *
  2853. * @since 5.3.0
  2854. *
  2855. * @param array $matches Single match.
  2856. * @param string $rel The rel attribute to add.
  2857. * @return string HTML A element with the added rel attribute.
  2858. */
  2859. function wp_rel_callback( $matches, $rel ) {
  2860. $text = $matches[1];
  2861. $atts = wp_kses_hair( $matches[1], wp_allowed_protocols() );
  2862. if ( ! empty( $atts['href'] ) ) {
  2863. if ( in_array( strtolower( wp_parse_url( $atts['href']['value'], PHP_URL_SCHEME ) ), array( 'http', 'https' ), true ) ) {
  2864. if ( strtolower( wp_parse_url( $atts['href']['value'], PHP_URL_HOST ) ) === strtolower( wp_parse_url( home_url(), PHP_URL_HOST ) ) ) {
  2865. return "<a $text>";
  2866. }
  2867. }
  2868. }
  2869. if ( ! empty( $atts['rel'] ) ) {
  2870. $parts = array_map( 'trim', explode( ' ', $atts['rel']['value'] ) );
  2871. $rel_array = array_map( 'trim', explode( ' ', $rel ) );
  2872. $parts = array_unique( array_merge( $parts, $rel_array ) );
  2873. $rel = implode( ' ', $parts );
  2874. unset( $atts['rel'] );
  2875. $html = '';
  2876. foreach ( $atts as $name => $value ) {
  2877. if ( isset( $value['vless'] ) && 'y' === $value['vless'] ) {
  2878. $html .= $name . ' ';
  2879. } else {
  2880. $html .= "{$name}=\"" . esc_attr( $value['value'] ) . '" ';
  2881. }
  2882. }
  2883. $text = trim( $html );
  2884. }
  2885. return "<a $text rel=\"" . esc_attr( $rel ) . '">';
  2886. }
  2887. /**
  2888. * Adds `rel="nofollow"` string to all HTML A elements in content.
  2889. *
  2890. * @since 1.5.0
  2891. *
  2892. * @param string $text Content that may contain HTML A elements.
  2893. * @return string Converted content.
  2894. */
  2895. function wp_rel_nofollow( $text ) {
  2896. // This is a pre-save filter, so text is already escaped.
  2897. $text = stripslashes( $text );
  2898. $text = preg_replace_callback(
  2899. '|<a (.+?)>|i',
  2900. static function( $matches ) {
  2901. return wp_rel_callback( $matches, 'nofollow' );
  2902. },
  2903. $text
  2904. );
  2905. return wp_slash( $text );
  2906. }
  2907. /**
  2908. * Callback to add `rel="nofollow"` string to HTML A element.
  2909. *
  2910. * @since 2.3.0
  2911. * @deprecated 5.3.0 Use wp_rel_callback()
  2912. *
  2913. * @param array $matches Single match.
  2914. * @return string HTML A Element with `rel="nofollow"`.
  2915. */
  2916. function wp_rel_nofollow_callback( $matches ) {
  2917. return wp_rel_callback( $matches, 'nofollow' );
  2918. }
  2919. /**
  2920. * Adds `rel="nofollow ugc"` string to all HTML A elements in content.
  2921. *
  2922. * @since 5.3.0
  2923. *
  2924. * @param string $text Content that may contain HTML A elements.
  2925. * @return string Converted content.
  2926. */
  2927. function wp_rel_ugc( $text ) {
  2928. // This is a pre-save filter, so text is already escaped.
  2929. $text = stripslashes( $text );
  2930. $text = preg_replace_callback(
  2931. '|<a (.+?)>|i',
  2932. static function( $matches ) {
  2933. return wp_rel_callback( $matches, 'nofollow ugc' );
  2934. },
  2935. $text
  2936. );
  2937. return wp_slash( $text );
  2938. }
  2939. /**
  2940. * Adds `rel="noopener"` to all HTML A elements that have a target.
  2941. *
  2942. * @since 5.1.0
  2943. * @since 5.6.0 Removed 'noreferrer' relationship.
  2944. *
  2945. * @param string $text Content that may contain HTML A elements.
  2946. * @return string Converted content.
  2947. */
  2948. function wp_targeted_link_rel( $text ) {
  2949. // Don't run (more expensive) regex if no links with targets.
  2950. if ( stripos( $text, 'target' ) === false || stripos( $text, '<a ' ) === false || is_serialized( $text ) ) {
  2951. return $text;
  2952. }
  2953. $script_and_style_regex = '/<(script|style).*?<\/\\1>/si';
  2954. preg_match_all( $script_and_style_regex, $text, $matches );
  2955. $extra_parts = $matches[0];
  2956. $html_parts = preg_split( $script_and_style_regex, $text );
  2957. foreach ( $html_parts as &$part ) {
  2958. $part = preg_replace_callback( '|<a\s([^>]*target\s*=[^>]*)>|i', 'wp_targeted_link_rel_callback', $part );
  2959. }
  2960. $text = '';
  2961. for ( $i = 0; $i < count( $html_parts ); $i++ ) {
  2962. $text .= $html_parts[ $i ];
  2963. if ( isset( $extra_parts[ $i ] ) ) {
  2964. $text .= $extra_parts[ $i ];
  2965. }
  2966. }
  2967. return $text;
  2968. }
  2969. /**
  2970. * Callback to add `rel="noopener"` string to HTML A element.
  2971. *
  2972. * Will not duplicate an existing 'noopener' value to avoid invalidating the HTML.
  2973. *
  2974. * @since 5.1.0
  2975. * @since 5.6.0 Removed 'noreferrer' relationship.
  2976. *
  2977. * @param array $matches Single match.
  2978. * @return string HTML A Element with `rel="noopener"` in addition to any existing values.
  2979. */
  2980. function wp_targeted_link_rel_callback( $matches ) {
  2981. $link_html = $matches[1];
  2982. $original_link_html = $link_html;
  2983. // Consider the HTML escaped if there are no unescaped quotes.
  2984. $is_escaped = ! preg_match( '/(^|[^\\\\])[\'"]/', $link_html );
  2985. if ( $is_escaped ) {
  2986. // Replace only the quotes so that they are parsable by wp_kses_hair(), leave the rest as is.
  2987. $link_html = preg_replace( '/\\\\([\'"])/', '$1', $link_html );
  2988. }
  2989. $atts = wp_kses_hair( $link_html, wp_allowed_protocols() );
  2990. /**
  2991. * Filters the rel values that are added to links with `target` attribute.
  2992. *
  2993. * @since 5.1.0
  2994. *
  2995. * @param string $rel The rel values.
  2996. * @param string $link_html The matched content of the link tag including all HTML attributes.
  2997. */
  2998. $rel = apply_filters( 'wp_targeted_link_rel', 'noopener', $link_html );
  2999. // Return early if no rel values to be added or if no actual target attribute.
  3000. if ( ! $rel || ! isset( $atts['target'] ) ) {
  3001. return "<a $original_link_html>";
  3002. }
  3003. if ( isset( $atts['rel'] ) ) {
  3004. $all_parts = preg_split( '/\s/', "{$atts['rel']['value']} $rel", -1, PREG_SPLIT_NO_EMPTY );
  3005. $rel = implode( ' ', array_unique( $all_parts ) );
  3006. }
  3007. $atts['rel']['whole'] = 'rel="' . esc_attr( $rel ) . '"';
  3008. $link_html = implode( ' ', array_column( $atts, 'whole' ) );
  3009. if ( $is_escaped ) {
  3010. $link_html = preg_replace( '/[\'"]/', '\\\\$0', $link_html );
  3011. }
  3012. return "<a $link_html>";
  3013. }
  3014. /**
  3015. * Adds all filters modifying the rel attribute of targeted links.
  3016. *
  3017. * @since 5.1.0
  3018. */
  3019. function wp_init_targeted_link_rel_filters() {
  3020. $filters = array(
  3021. 'title_save_pre',
  3022. 'content_save_pre',
  3023. 'excerpt_save_pre',
  3024. 'content_filtered_save_pre',
  3025. 'pre_comment_content',
  3026. 'pre_term_description',
  3027. 'pre_link_description',
  3028. 'pre_link_notes',
  3029. 'pre_user_description',
  3030. );
  3031. foreach ( $filters as $filter ) {
  3032. add_filter( $filter, 'wp_targeted_link_rel' );
  3033. }
  3034. }
  3035. /**
  3036. * Removes all filters modifying the rel attribute of targeted links.
  3037. *
  3038. * @since 5.1.0
  3039. */
  3040. function wp_remove_targeted_link_rel_filters() {
  3041. $filters = array(
  3042. 'title_save_pre',
  3043. 'content_save_pre',
  3044. 'excerpt_save_pre',
  3045. 'content_filtered_save_pre',
  3046. 'pre_comment_content',
  3047. 'pre_term_description',
  3048. 'pre_link_description',
  3049. 'pre_link_notes',
  3050. 'pre_user_description',
  3051. );
  3052. foreach ( $filters as $filter ) {
  3053. remove_filter( $filter, 'wp_targeted_link_rel' );
  3054. }
  3055. }
  3056. /**
  3057. * Converts one smiley code to the icon graphic file equivalent.
  3058. *
  3059. * Callback handler for convert_smilies().
  3060. *
  3061. * Looks up one smiley code in the $wpsmiliestrans global array and returns an
  3062. * `<img>` string for that smiley.
  3063. *
  3064. * @since 2.8.0
  3065. *
  3066. * @global array $wpsmiliestrans
  3067. *
  3068. * @param array $matches Single match. Smiley code to convert to image.
  3069. * @return string Image string for smiley.
  3070. */
  3071. function translate_smiley( $matches ) {
  3072. global $wpsmiliestrans;
  3073. if ( count( $matches ) == 0 ) {
  3074. return '';
  3075. }
  3076. $smiley = trim( reset( $matches ) );
  3077. $img = $wpsmiliestrans[ $smiley ];
  3078. $matches = array();
  3079. $ext = preg_match( '/\.([^.]+)$/', $img, $matches ) ? strtolower( $matches[1] ) : false;
  3080. $image_exts = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png', 'webp' );
  3081. // Don't convert smilies that aren't images - they're probably emoji.
  3082. if ( ! in_array( $ext, $image_exts, true ) ) {
  3083. return $img;
  3084. }
  3085. /**
  3086. * Filters the Smiley image URL before it's used in the image element.
  3087. *
  3088. * @since 2.9.0
  3089. *
  3090. * @param string $smiley_url URL for the smiley image.
  3091. * @param string $img Filename for the smiley image.
  3092. * @param string $site_url Site URL, as returned by site_url().
  3093. */
  3094. $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() );
  3095. return sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', esc_url( $src_url ), esc_attr( $smiley ) );
  3096. }
  3097. /**
  3098. * Converts text equivalent of smilies to images.
  3099. *
  3100. * Will only convert smilies if the option 'use_smilies' is true and the global
  3101. * used in the function isn't empty.
  3102. *
  3103. * @since 0.71
  3104. *
  3105. * @global string|array $wp_smiliessearch
  3106. *
  3107. * @param string $text Content to convert smilies from text.
  3108. * @return string Converted content with text smilies replaced with images.
  3109. */
  3110. function convert_smilies( $text ) {
  3111. global $wp_smiliessearch;
  3112. $output = '';
  3113. if ( get_option( 'use_smilies' ) && ! empty( $wp_smiliessearch ) ) {
  3114. // HTML loop taken from texturize function, could possible be consolidated.
  3115. $textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Capture the tags as well as in between.
  3116. $stop = count( $textarr ); // Loop stuff.
  3117. // Ignore proessing of specific tags.
  3118. $tags_to_ignore = 'code|pre|style|script|textarea';
  3119. $ignore_block_element = '';
  3120. for ( $i = 0; $i < $stop; $i++ ) {
  3121. $content = $textarr[ $i ];
  3122. // If we're in an ignore block, wait until we find its closing tag.
  3123. if ( '' === $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ')[^>]*>/', $content, $matches ) ) {
  3124. $ignore_block_element = $matches[1];
  3125. }
  3126. // If it's not a tag and not in ignore block.
  3127. if ( '' === $ignore_block_element && strlen( $content ) > 0 && '<' !== $content[0] ) {
  3128. $content = preg_replace_callback( $wp_smiliessearch, 'translate_smiley', $content );
  3129. }
  3130. // Did we exit ignore block?
  3131. if ( '' !== $ignore_block_element && '</' . $ignore_block_element . '>' === $content ) {
  3132. $ignore_block_element = '';
  3133. }
  3134. $output .= $content;
  3135. }
  3136. } else {
  3137. // Return default text.
  3138. $output = $text;
  3139. }
  3140. return $output;
  3141. }
  3142. /**
  3143. * Verifies that an email is valid.
  3144. *
  3145. * Does not grok i18n domains. Not RFC compliant.
  3146. *
  3147. * @since 0.71
  3148. *
  3149. * @param string $email Email address to verify.
  3150. * @param bool $deprecated Deprecated.
  3151. * @return string|false Valid email address on success, false on failure.
  3152. */
  3153. function is_email( $email, $deprecated = false ) {
  3154. if ( ! empty( $deprecated ) ) {
  3155. _deprecated_argument( __FUNCTION__, '3.0.0' );
  3156. }
  3157. // Test for the minimum length the email can be.
  3158. if ( strlen( $email ) < 6 ) {
  3159. /**
  3160. * Filters whether an email address is valid.
  3161. *
  3162. * This filter is evaluated under several different contexts, such as 'email_too_short',
  3163. * 'email_no_at', 'local_invalid_chars', 'domain_period_sequence', 'domain_period_limits',
  3164. * 'domain_no_periods', 'sub_hyphen_limits', 'sub_invalid_chars', or no specific context.
  3165. *
  3166. * @since 2.8.0
  3167. *
  3168. * @param string|false $is_email The email address if successfully passed the is_email() checks, false otherwise.
  3169. * @param string $email The email address being checked.
  3170. * @param string $context Context under which the email was tested.
  3171. */
  3172. return apply_filters( 'is_email', false, $email, 'email_too_short' );
  3173. }
  3174. // Test for an @ character after the first position.
  3175. if ( strpos( $email, '@', 1 ) === false ) {
  3176. /** This filter is documented in wp-includes/formatting.php */
  3177. return apply_filters( 'is_email', false, $email, 'email_no_at' );
  3178. }
  3179. // Split out the local and domain parts.
  3180. list( $local, $domain ) = explode( '@', $email, 2 );
  3181. // LOCAL PART
  3182. // Test for invalid characters.
  3183. if ( ! preg_match( '/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/', $local ) ) {
  3184. /** This filter is documented in wp-includes/formatting.php */
  3185. return apply_filters( 'is_email', false, $email, 'local_invalid_chars' );
  3186. }
  3187. // DOMAIN PART
  3188. // Test for sequences of periods.
  3189. if ( preg_match( '/\.{2,}/', $domain ) ) {
  3190. /** This filter is documented in wp-includes/formatting.php */
  3191. return apply_filters( 'is_email', false, $email, 'domain_period_sequence' );
  3192. }
  3193. // Test for leading and trailing periods and whitespace.
  3194. if ( trim( $domain, " \t\n\r\0\x0B." ) !== $domain ) {
  3195. /** This filter is documented in wp-includes/formatting.php */
  3196. return apply_filters( 'is_email', false, $email, 'domain_period_limits' );
  3197. }
  3198. // Split the domain into subs.
  3199. $subs = explode( '.', $domain );
  3200. // Assume the domain will have at least two subs.
  3201. if ( 2 > count( $subs ) ) {
  3202. /** This filter is documented in wp-includes/formatting.php */
  3203. return apply_filters( 'is_email', false, $email, 'domain_no_periods' );
  3204. }
  3205. // Loop through each sub.
  3206. foreach ( $subs as $sub ) {
  3207. // Test for leading and trailing hyphens and whitespace.
  3208. if ( trim( $sub, " \t\n\r\0\x0B-" ) !== $sub ) {
  3209. /** This filter is documented in wp-includes/formatting.php */
  3210. return apply_filters( 'is_email', false, $email, 'sub_hyphen_limits' );
  3211. }
  3212. // Test for invalid characters.
  3213. if ( ! preg_match( '/^[a-z0-9-]+$/i', $sub ) ) {
  3214. /** This filter is documented in wp-includes/formatting.php */
  3215. return apply_filters( 'is_email', false, $email, 'sub_invalid_chars' );
  3216. }
  3217. }
  3218. // Congratulations, your email made it!
  3219. /** This filter is documented in wp-includes/formatting.php */
  3220. return apply_filters( 'is_email', $email, $email, null );
  3221. }
  3222. /**
  3223. * Converts to ASCII from email subjects.
  3224. *
  3225. * @since 1.2.0
  3226. *
  3227. * @param string $string Subject line.
  3228. * @return string Converted string to ASCII.
  3229. */
  3230. function wp_iso_descrambler( $string ) {
  3231. /* this may only work with iso-8859-1, I'm afraid */
  3232. if ( ! preg_match( '#\=\?(.+)\?Q\?(.+)\?\=#i', $string, $matches ) ) {
  3233. return $string;
  3234. } else {
  3235. $subject = str_replace( '_', ' ', $matches[2] );
  3236. return preg_replace_callback( '#\=([0-9a-f]{2})#i', '_wp_iso_convert', $subject );
  3237. }
  3238. }
  3239. /**
  3240. * Helper function to convert hex encoded chars to ASCII.
  3241. *
  3242. * @since 3.1.0
  3243. * @access private
  3244. *
  3245. * @param array $match The preg_replace_callback matches array.
  3246. * @return string Converted chars.
  3247. */
  3248. function _wp_iso_convert( $match ) {
  3249. return chr( hexdec( strtolower( $match[1] ) ) );
  3250. }
  3251. /**
  3252. * Given a date in the timezone of the site, returns that date in UTC.
  3253. *
  3254. * Requires and returns a date in the Y-m-d H:i:s format.
  3255. * Return format can be overridden using the $format parameter.
  3256. *
  3257. * @since 1.2.0
  3258. *
  3259. * @param string $string The date to be converted, in the timezone of the site.
  3260. * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'.
  3261. * @return string Formatted version of the date, in UTC.
  3262. */
  3263. function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) {
  3264. $datetime = date_create( $string, wp_timezone() );
  3265. if ( false === $datetime ) {
  3266. return gmdate( $format, 0 );
  3267. }
  3268. return $datetime->setTimezone( new DateTimeZone( 'UTC' ) )->format( $format );
  3269. }
  3270. /**
  3271. * Given a date in UTC or GMT timezone, returns that date in the timezone of the site.
  3272. *
  3273. * Requires a date in the Y-m-d H:i:s format.
  3274. * Default return format of 'Y-m-d H:i:s' can be overridden using the `$format` parameter.
  3275. *
  3276. * @since 1.2.0
  3277. *
  3278. * @param string $string The date to be converted, in UTC or GMT timezone.
  3279. * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'.
  3280. * @return string Formatted version of the date, in the site's timezone.
  3281. */
  3282. function get_date_from_gmt( $string, $format = 'Y-m-d H:i:s' ) {
  3283. $datetime = date_create( $string, new DateTimeZone( 'UTC' ) );
  3284. if ( false === $datetime ) {
  3285. return gmdate( $format, 0 );
  3286. }
  3287. return $datetime->setTimezone( wp_timezone() )->format( $format );
  3288. }
  3289. /**
  3290. * Given an ISO 8601 timezone, returns its UTC offset in seconds.
  3291. *
  3292. * @since 1.5.0
  3293. *
  3294. * @param string $timezone Either 'Z' for 0 offset or '±hhmm'.
  3295. * @return int|float The offset in seconds.
  3296. */
  3297. function iso8601_timezone_to_offset( $timezone ) {
  3298. // $timezone is either 'Z' or '[+|-]hhmm'.
  3299. if ( 'Z' === $timezone ) {
  3300. $offset = 0;
  3301. } else {
  3302. $sign = ( '+' === substr( $timezone, 0, 1 ) ) ? 1 : -1;
  3303. $hours = (int) substr( $timezone, 1, 2 );
  3304. $minutes = (int) substr( $timezone, 3, 4 ) / 60;
  3305. $offset = $sign * HOUR_IN_SECONDS * ( $hours + $minutes );
  3306. }
  3307. return $offset;
  3308. }
  3309. /**
  3310. * Given an ISO 8601 (Ymd\TH:i:sO) date, returns a MySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt].
  3311. *
  3312. * @since 1.5.0
  3313. *
  3314. * @param string $date_string Date and time in ISO 8601 format {@link https://en.wikipedia.org/wiki/ISO_8601}.
  3315. * @param string $timezone Optional. If set to 'gmt' returns the result in UTC. Default 'user'.
  3316. * @return string|false The date and time in MySQL DateTime format - Y-m-d H:i:s, or false on failure.
  3317. */
  3318. function iso8601_to_datetime( $date_string, $timezone = 'user' ) {
  3319. $timezone = strtolower( $timezone );
  3320. $wp_timezone = wp_timezone();
  3321. $datetime = date_create( $date_string, $wp_timezone ); // Timezone is ignored if input has one.
  3322. if ( false === $datetime ) {
  3323. return false;
  3324. }
  3325. if ( 'gmt' === $timezone ) {
  3326. return $datetime->setTimezone( new DateTimeZone( 'UTC' ) )->format( 'Y-m-d H:i:s' );
  3327. }
  3328. if ( 'user' === $timezone ) {
  3329. return $datetime->setTimezone( $wp_timezone )->format( 'Y-m-d H:i:s' );
  3330. }
  3331. return false;
  3332. }
  3333. /**
  3334. * Strips out all characters that are not allowable in an email.
  3335. *
  3336. * @since 1.5.0
  3337. *
  3338. * @param string $email Email address to filter.
  3339. * @return string Filtered email address.
  3340. */
  3341. function sanitize_email( $email ) {
  3342. // Test for the minimum length the email can be.
  3343. if ( strlen( $email ) < 6 ) {
  3344. /**
  3345. * Filters a sanitized email address.
  3346. *
  3347. * This filter is evaluated under several contexts, including 'email_too_short',
  3348. * 'email_no_at', 'local_invalid_chars', 'domain_period_sequence', 'domain_period_limits',
  3349. * 'domain_no_periods', 'domain_no_valid_subs', or no context.
  3350. *
  3351. * @since 2.8.0
  3352. *
  3353. * @param string $sanitized_email The sanitized email address.
  3354. * @param string $email The email address, as provided to sanitize_email().
  3355. * @param string|null $message A message to pass to the user. null if email is sanitized.
  3356. */
  3357. return apply_filters( 'sanitize_email', '', $email, 'email_too_short' );
  3358. }
  3359. // Test for an @ character after the first position.
  3360. if ( strpos( $email, '@', 1 ) === false ) {
  3361. /** This filter is documented in wp-includes/formatting.php */
  3362. return apply_filters( 'sanitize_email', '', $email, 'email_no_at' );
  3363. }
  3364. // Split out the local and domain parts.
  3365. list( $local, $domain ) = explode( '@', $email, 2 );
  3366. // LOCAL PART
  3367. // Test for invalid characters.
  3368. $local = preg_replace( '/[^a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]/', '', $local );
  3369. if ( '' === $local ) {
  3370. /** This filter is documented in wp-includes/formatting.php */
  3371. return apply_filters( 'sanitize_email', '', $email, 'local_invalid_chars' );
  3372. }
  3373. // DOMAIN PART
  3374. // Test for sequences of periods.
  3375. $domain = preg_replace( '/\.{2,}/', '', $domain );
  3376. if ( '' === $domain ) {
  3377. /** This filter is documented in wp-includes/formatting.php */
  3378. return apply_filters( 'sanitize_email', '', $email, 'domain_period_sequence' );
  3379. }
  3380. // Test for leading and trailing periods and whitespace.
  3381. $domain = trim( $domain, " \t\n\r\0\x0B." );
  3382. if ( '' === $domain ) {
  3383. /** This filter is documented in wp-includes/formatting.php */
  3384. return apply_filters( 'sanitize_email', '', $email, 'domain_period_limits' );
  3385. }
  3386. // Split the domain into subs.
  3387. $subs = explode( '.', $domain );
  3388. // Assume the domain will have at least two subs.
  3389. if ( 2 > count( $subs ) ) {
  3390. /** This filter is documented in wp-includes/formatting.php */
  3391. return apply_filters( 'sanitize_email', '', $email, 'domain_no_periods' );
  3392. }
  3393. // Create an array that will contain valid subs.
  3394. $new_subs = array();
  3395. // Loop through each sub.
  3396. foreach ( $subs as $sub ) {
  3397. // Test for leading and trailing hyphens.
  3398. $sub = trim( $sub, " \t\n\r\0\x0B-" );
  3399. // Test for invalid characters.
  3400. $sub = preg_replace( '/[^a-z0-9-]+/i', '', $sub );
  3401. // If there's anything left, add it to the valid subs.
  3402. if ( '' !== $sub ) {
  3403. $new_subs[] = $sub;
  3404. }
  3405. }
  3406. // If there aren't 2 or more valid subs.
  3407. if ( 2 > count( $new_subs ) ) {
  3408. /** This filter is documented in wp-includes/formatting.php */
  3409. return apply_filters( 'sanitize_email', '', $email, 'domain_no_valid_subs' );
  3410. }
  3411. // Join valid subs into the new domain.
  3412. $domain = implode( '.', $new_subs );
  3413. // Put the email back together.
  3414. $sanitized_email = $local . '@' . $domain;
  3415. // Congratulations, your email made it!
  3416. /** This filter is documented in wp-includes/formatting.php */
  3417. return apply_filters( 'sanitize_email', $sanitized_email, $email, null );
  3418. }
  3419. /**
  3420. * Determines the difference between two timestamps.
  3421. *
  3422. * The difference is returned in a human readable format such as "1 hour",
  3423. * "5 mins", "2 days".
  3424. *
  3425. * @since 1.5.0
  3426. * @since 5.3.0 Added support for showing a difference in seconds.
  3427. *
  3428. * @param int $from Unix timestamp from which the difference begins.
  3429. * @param int $to Optional. Unix timestamp to end the time difference. Default becomes time() if not set.
  3430. * @return string Human readable time difference.
  3431. */
  3432. function human_time_diff( $from, $to = 0 ) {
  3433. if ( empty( $to ) ) {
  3434. $to = time();
  3435. }
  3436. $diff = (int) abs( $to - $from );
  3437. if ( $diff < MINUTE_IN_SECONDS ) {
  3438. $secs = $diff;
  3439. if ( $secs <= 1 ) {
  3440. $secs = 1;
  3441. }
  3442. /* translators: Time difference between two dates, in seconds. %s: Number of seconds. */
  3443. $since = sprintf( _n( '%s second', '%s seconds', $secs ), $secs );
  3444. } elseif ( $diff < HOUR_IN_SECONDS && $diff >= MINUTE_IN_SECONDS ) {
  3445. $mins = round( $diff / MINUTE_IN_SECONDS );
  3446. if ( $mins <= 1 ) {
  3447. $mins = 1;
  3448. }
  3449. /* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes. */
  3450. $since = sprintf( _n( '%s min', '%s mins', $mins ), $mins );
  3451. } elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
  3452. $hours = round( $diff / HOUR_IN_SECONDS );
  3453. if ( $hours <= 1 ) {
  3454. $hours = 1;
  3455. }
  3456. /* translators: Time difference between two dates, in hours. %s: Number of hours. */
  3457. $since = sprintf( _n( '%s hour', '%s hours', $hours ), $hours );
  3458. } elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
  3459. $days = round( $diff / DAY_IN_SECONDS );
  3460. if ( $days <= 1 ) {
  3461. $days = 1;
  3462. }
  3463. /* translators: Time difference between two dates, in days. %s: Number of days. */
  3464. $since = sprintf( _n( '%s day', '%s days', $days ), $days );
  3465. } elseif ( $diff < MONTH_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
  3466. $weeks = round( $diff / WEEK_IN_SECONDS );
  3467. if ( $weeks <= 1 ) {
  3468. $weeks = 1;
  3469. }
  3470. /* translators: Time difference between two dates, in weeks. %s: Number of weeks. */
  3471. $since = sprintf( _n( '%s week', '%s weeks', $weeks ), $weeks );
  3472. } elseif ( $diff < YEAR_IN_SECONDS && $diff >= MONTH_IN_SECONDS ) {
  3473. $months = round( $diff / MONTH_IN_SECONDS );
  3474. if ( $months <= 1 ) {
  3475. $months = 1;
  3476. }
  3477. /* translators: Time difference between two dates, in months. %s: Number of months. */
  3478. $since = sprintf( _n( '%s month', '%s months', $months ), $months );
  3479. } elseif ( $diff >= YEAR_IN_SECONDS ) {
  3480. $years = round( $diff / YEAR_IN_SECONDS );
  3481. if ( $years <= 1 ) {
  3482. $years = 1;
  3483. }
  3484. /* translators: Time difference between two dates, in years. %s: Number of years. */
  3485. $since = sprintf( _n( '%s year', '%s years', $years ), $years );
  3486. }
  3487. /**
  3488. * Filters the human readable difference between two timestamps.
  3489. *
  3490. * @since 4.0.0
  3491. *
  3492. * @param string $since The difference in human readable text.
  3493. * @param int $diff The difference in seconds.
  3494. * @param int $from Unix timestamp from which the difference begins.
  3495. * @param int $to Unix timestamp to end the time difference.
  3496. */
  3497. return apply_filters( 'human_time_diff', $since, $diff, $from, $to );
  3498. }
  3499. /**
  3500. * Generates an excerpt from the content, if needed.
  3501. *
  3502. * Returns a maximum of 55 words with an ellipsis appended if necessary.
  3503. *
  3504. * The 55 word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter
  3505. * The ' [&hellip;]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter
  3506. *
  3507. * @since 1.5.0
  3508. * @since 5.2.0 Added the `$post` parameter.
  3509. *
  3510. * @param string $text Optional. The excerpt. If set to empty, an excerpt is generated.
  3511. * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default null.
  3512. * @return string The excerpt.
  3513. */
  3514. function wp_trim_excerpt( $text = '', $post = null ) {
  3515. $raw_excerpt = $text;
  3516. if ( '' === trim( $text ) ) {
  3517. $post = get_post( $post );
  3518. $text = get_the_content( '', false, $post );
  3519. $text = strip_shortcodes( $text );
  3520. $text = excerpt_remove_blocks( $text );
  3521. /** This filter is documented in wp-includes/post-template.php */
  3522. $text = apply_filters( 'the_content', $text );
  3523. $text = str_replace( ']]>', ']]&gt;', $text );
  3524. /* translators: Maximum number of words used in a post excerpt. */
  3525. $excerpt_length = (int) _x( '55', 'excerpt_length' );
  3526. /**
  3527. * Filters the maximum number of words in a post excerpt.
  3528. *
  3529. * @since 2.7.0
  3530. *
  3531. * @param int $number The maximum number of words. Default 55.
  3532. */
  3533. $excerpt_length = (int) apply_filters( 'excerpt_length', $excerpt_length );
  3534. /**
  3535. * Filters the string in the "more" link displayed after a trimmed excerpt.
  3536. *
  3537. * @since 2.9.0
  3538. *
  3539. * @param string $more_string The string shown within the more link.
  3540. */
  3541. $excerpt_more = apply_filters( 'excerpt_more', ' ' . '[&hellip;]' );
  3542. $text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
  3543. }
  3544. /**
  3545. * Filters the trimmed excerpt string.
  3546. *
  3547. * @since 2.8.0
  3548. *
  3549. * @param string $text The trimmed text.
  3550. * @param string $raw_excerpt The text prior to trimming.
  3551. */
  3552. return apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );
  3553. }
  3554. /**
  3555. * Trims text to a certain number of words.
  3556. *
  3557. * This function is localized. For languages that count 'words' by the individual
  3558. * character (such as East Asian languages), the $num_words argument will apply
  3559. * to the number of individual characters.
  3560. *
  3561. * @since 3.3.0
  3562. *
  3563. * @param string $text Text to trim.
  3564. * @param int $num_words Number of words. Default 55.
  3565. * @param string $more Optional. What to append if $text needs to be trimmed. Default '&hellip;'.
  3566. * @return string Trimmed text.
  3567. */
  3568. function wp_trim_words( $text, $num_words = 55, $more = null ) {
  3569. if ( null === $more ) {
  3570. $more = __( '&hellip;' );
  3571. }
  3572. $original_text = $text;
  3573. $text = wp_strip_all_tags( $text );
  3574. $num_words = (int) $num_words;
  3575. /*
  3576. * translators: If your word count is based on single characters (e.g. East Asian characters),
  3577. * enter 'characters_excluding_spaces' or 'characters_including_spaces'. Otherwise, enter 'words'.
  3578. * Do not translate into your own language.
  3579. */
  3580. if ( strpos( _x( 'words', 'Word count type. Do not translate!' ), 'characters' ) === 0 && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) {
  3581. $text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
  3582. preg_match_all( '/./u', $text, $words_array );
  3583. $words_array = array_slice( $words_array[0], 0, $num_words + 1 );
  3584. $sep = '';
  3585. } else {
  3586. $words_array = preg_split( "/[\n\r\t ]+/", $text, $num_words + 1, PREG_SPLIT_NO_EMPTY );
  3587. $sep = ' ';
  3588. }
  3589. if ( count( $words_array ) > $num_words ) {
  3590. array_pop( $words_array );
  3591. $text = implode( $sep, $words_array );
  3592. $text = $text . $more;
  3593. } else {
  3594. $text = implode( $sep, $words_array );
  3595. }
  3596. /**
  3597. * Filters the text content after words have been trimmed.
  3598. *
  3599. * @since 3.3.0
  3600. *
  3601. * @param string $text The trimmed text.
  3602. * @param int $num_words The number of words to trim the text to. Default 55.
  3603. * @param string $more An optional string to append to the end of the trimmed text, e.g. &hellip;.
  3604. * @param string $original_text The text before it was trimmed.
  3605. */
  3606. return apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text );
  3607. }
  3608. /**
  3609. * Converts named entities into numbered entities.
  3610. *
  3611. * @since 1.5.1
  3612. *
  3613. * @param string $text The text within which entities will be converted.
  3614. * @return string Text with converted entities.
  3615. */
  3616. function ent2ncr( $text ) {
  3617. /**
  3618. * Filters text before named entities are converted into numbered entities.
  3619. *
  3620. * A non-null string must be returned for the filter to be evaluated.
  3621. *
  3622. * @since 3.3.0
  3623. *
  3624. * @param string|null $converted_text The text to be converted. Default null.
  3625. * @param string $text The text prior to entity conversion.
  3626. */
  3627. $filtered = apply_filters( 'pre_ent2ncr', null, $text );
  3628. if ( null !== $filtered ) {
  3629. return $filtered;
  3630. }
  3631. $to_ncr = array(
  3632. '&quot;' => '&#34;',
  3633. '&amp;' => '&#38;',
  3634. '&lt;' => '&#60;',
  3635. '&gt;' => '&#62;',
  3636. '|' => '&#124;',
  3637. '&nbsp;' => '&#160;',
  3638. '&iexcl;' => '&#161;',
  3639. '&cent;' => '&#162;',
  3640. '&pound;' => '&#163;',
  3641. '&curren;' => '&#164;',
  3642. '&yen;' => '&#165;',
  3643. '&brvbar;' => '&#166;',
  3644. '&brkbar;' => '&#166;',
  3645. '&sect;' => '&#167;',
  3646. '&uml;' => '&#168;',
  3647. '&die;' => '&#168;',
  3648. '&copy;' => '&#169;',
  3649. '&ordf;' => '&#170;',
  3650. '&laquo;' => '&#171;',
  3651. '&not;' => '&#172;',
  3652. '&shy;' => '&#173;',
  3653. '&reg;' => '&#174;',
  3654. '&macr;' => '&#175;',
  3655. '&hibar;' => '&#175;',
  3656. '&deg;' => '&#176;',
  3657. '&plusmn;' => '&#177;',
  3658. '&sup2;' => '&#178;',
  3659. '&sup3;' => '&#179;',
  3660. '&acute;' => '&#180;',
  3661. '&micro;' => '&#181;',
  3662. '&para;' => '&#182;',
  3663. '&middot;' => '&#183;',
  3664. '&cedil;' => '&#184;',
  3665. '&sup1;' => '&#185;',
  3666. '&ordm;' => '&#186;',
  3667. '&raquo;' => '&#187;',
  3668. '&frac14;' => '&#188;',
  3669. '&frac12;' => '&#189;',
  3670. '&frac34;' => '&#190;',
  3671. '&iquest;' => '&#191;',
  3672. '&Agrave;' => '&#192;',
  3673. '&Aacute;' => '&#193;',
  3674. '&Acirc;' => '&#194;',
  3675. '&Atilde;' => '&#195;',
  3676. '&Auml;' => '&#196;',
  3677. '&Aring;' => '&#197;',
  3678. '&AElig;' => '&#198;',
  3679. '&Ccedil;' => '&#199;',
  3680. '&Egrave;' => '&#200;',
  3681. '&Eacute;' => '&#201;',
  3682. '&Ecirc;' => '&#202;',
  3683. '&Euml;' => '&#203;',
  3684. '&Igrave;' => '&#204;',
  3685. '&Iacute;' => '&#205;',
  3686. '&Icirc;' => '&#206;',
  3687. '&Iuml;' => '&#207;',
  3688. '&ETH;' => '&#208;',
  3689. '&Ntilde;' => '&#209;',
  3690. '&Ograve;' => '&#210;',
  3691. '&Oacute;' => '&#211;',
  3692. '&Ocirc;' => '&#212;',
  3693. '&Otilde;' => '&#213;',
  3694. '&Ouml;' => '&#214;',
  3695. '&times;' => '&#215;',
  3696. '&Oslash;' => '&#216;',
  3697. '&Ugrave;' => '&#217;',
  3698. '&Uacute;' => '&#218;',
  3699. '&Ucirc;' => '&#219;',
  3700. '&Uuml;' => '&#220;',
  3701. '&Yacute;' => '&#221;',
  3702. '&THORN;' => '&#222;',
  3703. '&szlig;' => '&#223;',
  3704. '&agrave;' => '&#224;',
  3705. '&aacute;' => '&#225;',
  3706. '&acirc;' => '&#226;',
  3707. '&atilde;' => '&#227;',
  3708. '&auml;' => '&#228;',
  3709. '&aring;' => '&#229;',
  3710. '&aelig;' => '&#230;',
  3711. '&ccedil;' => '&#231;',
  3712. '&egrave;' => '&#232;',
  3713. '&eacute;' => '&#233;',
  3714. '&ecirc;' => '&#234;',
  3715. '&euml;' => '&#235;',
  3716. '&igrave;' => '&#236;',
  3717. '&iacute;' => '&#237;',
  3718. '&icirc;' => '&#238;',
  3719. '&iuml;' => '&#239;',
  3720. '&eth;' => '&#240;',
  3721. '&ntilde;' => '&#241;',
  3722. '&ograve;' => '&#242;',
  3723. '&oacute;' => '&#243;',
  3724. '&ocirc;' => '&#244;',
  3725. '&otilde;' => '&#245;',
  3726. '&ouml;' => '&#246;',
  3727. '&divide;' => '&#247;',
  3728. '&oslash;' => '&#248;',
  3729. '&ugrave;' => '&#249;',
  3730. '&uacute;' => '&#250;',
  3731. '&ucirc;' => '&#251;',
  3732. '&uuml;' => '&#252;',
  3733. '&yacute;' => '&#253;',
  3734. '&thorn;' => '&#254;',
  3735. '&yuml;' => '&#255;',
  3736. '&OElig;' => '&#338;',
  3737. '&oelig;' => '&#339;',
  3738. '&Scaron;' => '&#352;',
  3739. '&scaron;' => '&#353;',
  3740. '&Yuml;' => '&#376;',
  3741. '&fnof;' => '&#402;',
  3742. '&circ;' => '&#710;',
  3743. '&tilde;' => '&#732;',
  3744. '&Alpha;' => '&#913;',
  3745. '&Beta;' => '&#914;',
  3746. '&Gamma;' => '&#915;',
  3747. '&Delta;' => '&#916;',
  3748. '&Epsilon;' => '&#917;',
  3749. '&Zeta;' => '&#918;',
  3750. '&Eta;' => '&#919;',
  3751. '&Theta;' => '&#920;',
  3752. '&Iota;' => '&#921;',
  3753. '&Kappa;' => '&#922;',
  3754. '&Lambda;' => '&#923;',
  3755. '&Mu;' => '&#924;',
  3756. '&Nu;' => '&#925;',
  3757. '&Xi;' => '&#926;',
  3758. '&Omicron;' => '&#927;',
  3759. '&Pi;' => '&#928;',
  3760. '&Rho;' => '&#929;',
  3761. '&Sigma;' => '&#931;',
  3762. '&Tau;' => '&#932;',
  3763. '&Upsilon;' => '&#933;',
  3764. '&Phi;' => '&#934;',
  3765. '&Chi;' => '&#935;',
  3766. '&Psi;' => '&#936;',
  3767. '&Omega;' => '&#937;',
  3768. '&alpha;' => '&#945;',
  3769. '&beta;' => '&#946;',
  3770. '&gamma;' => '&#947;',
  3771. '&delta;' => '&#948;',
  3772. '&epsilon;' => '&#949;',
  3773. '&zeta;' => '&#950;',
  3774. '&eta;' => '&#951;',
  3775. '&theta;' => '&#952;',
  3776. '&iota;' => '&#953;',
  3777. '&kappa;' => '&#954;',
  3778. '&lambda;' => '&#955;',
  3779. '&mu;' => '&#956;',
  3780. '&nu;' => '&#957;',
  3781. '&xi;' => '&#958;',
  3782. '&omicron;' => '&#959;',
  3783. '&pi;' => '&#960;',
  3784. '&rho;' => '&#961;',
  3785. '&sigmaf;' => '&#962;',
  3786. '&sigma;' => '&#963;',
  3787. '&tau;' => '&#964;',
  3788. '&upsilon;' => '&#965;',
  3789. '&phi;' => '&#966;',
  3790. '&chi;' => '&#967;',
  3791. '&psi;' => '&#968;',
  3792. '&omega;' => '&#969;',
  3793. '&thetasym;' => '&#977;',
  3794. '&upsih;' => '&#978;',
  3795. '&piv;' => '&#982;',
  3796. '&ensp;' => '&#8194;',
  3797. '&emsp;' => '&#8195;',
  3798. '&thinsp;' => '&#8201;',
  3799. '&zwnj;' => '&#8204;',
  3800. '&zwj;' => '&#8205;',
  3801. '&lrm;' => '&#8206;',
  3802. '&rlm;' => '&#8207;',
  3803. '&ndash;' => '&#8211;',
  3804. '&mdash;' => '&#8212;',
  3805. '&lsquo;' => '&#8216;',
  3806. '&rsquo;' => '&#8217;',
  3807. '&sbquo;' => '&#8218;',
  3808. '&ldquo;' => '&#8220;',
  3809. '&rdquo;' => '&#8221;',
  3810. '&bdquo;' => '&#8222;',
  3811. '&dagger;' => '&#8224;',
  3812. '&Dagger;' => '&#8225;',
  3813. '&bull;' => '&#8226;',
  3814. '&hellip;' => '&#8230;',
  3815. '&permil;' => '&#8240;',
  3816. '&prime;' => '&#8242;',
  3817. '&Prime;' => '&#8243;',
  3818. '&lsaquo;' => '&#8249;',
  3819. '&rsaquo;' => '&#8250;',
  3820. '&oline;' => '&#8254;',
  3821. '&frasl;' => '&#8260;',
  3822. '&euro;' => '&#8364;',
  3823. '&image;' => '&#8465;',
  3824. '&weierp;' => '&#8472;',
  3825. '&real;' => '&#8476;',
  3826. '&trade;' => '&#8482;',
  3827. '&alefsym;' => '&#8501;',
  3828. '&crarr;' => '&#8629;',
  3829. '&lArr;' => '&#8656;',
  3830. '&uArr;' => '&#8657;',
  3831. '&rArr;' => '&#8658;',
  3832. '&dArr;' => '&#8659;',
  3833. '&hArr;' => '&#8660;',
  3834. '&forall;' => '&#8704;',
  3835. '&part;' => '&#8706;',
  3836. '&exist;' => '&#8707;',
  3837. '&empty;' => '&#8709;',
  3838. '&nabla;' => '&#8711;',
  3839. '&isin;' => '&#8712;',
  3840. '&notin;' => '&#8713;',
  3841. '&ni;' => '&#8715;',
  3842. '&prod;' => '&#8719;',
  3843. '&sum;' => '&#8721;',
  3844. '&minus;' => '&#8722;',
  3845. '&lowast;' => '&#8727;',
  3846. '&radic;' => '&#8730;',
  3847. '&prop;' => '&#8733;',
  3848. '&infin;' => '&#8734;',
  3849. '&ang;' => '&#8736;',
  3850. '&and;' => '&#8743;',
  3851. '&or;' => '&#8744;',
  3852. '&cap;' => '&#8745;',
  3853. '&cup;' => '&#8746;',
  3854. '&int;' => '&#8747;',
  3855. '&there4;' => '&#8756;',
  3856. '&sim;' => '&#8764;',
  3857. '&cong;' => '&#8773;',
  3858. '&asymp;' => '&#8776;',
  3859. '&ne;' => '&#8800;',
  3860. '&equiv;' => '&#8801;',
  3861. '&le;' => '&#8804;',
  3862. '&ge;' => '&#8805;',
  3863. '&sub;' => '&#8834;',
  3864. '&sup;' => '&#8835;',
  3865. '&nsub;' => '&#8836;',
  3866. '&sube;' => '&#8838;',
  3867. '&supe;' => '&#8839;',
  3868. '&oplus;' => '&#8853;',
  3869. '&otimes;' => '&#8855;',
  3870. '&perp;' => '&#8869;',
  3871. '&sdot;' => '&#8901;',
  3872. '&lceil;' => '&#8968;',
  3873. '&rceil;' => '&#8969;',
  3874. '&lfloor;' => '&#8970;',
  3875. '&rfloor;' => '&#8971;',
  3876. '&lang;' => '&#9001;',
  3877. '&rang;' => '&#9002;',
  3878. '&larr;' => '&#8592;',
  3879. '&uarr;' => '&#8593;',
  3880. '&rarr;' => '&#8594;',
  3881. '&darr;' => '&#8595;',
  3882. '&harr;' => '&#8596;',
  3883. '&loz;' => '&#9674;',
  3884. '&spades;' => '&#9824;',
  3885. '&clubs;' => '&#9827;',
  3886. '&hearts;' => '&#9829;',
  3887. '&diams;' => '&#9830;',
  3888. );
  3889. return str_replace( array_keys( $to_ncr ), array_values( $to_ncr ), $text );
  3890. }
  3891. /**
  3892. * Formats text for the editor.
  3893. *
  3894. * Generally the browsers treat everything inside a textarea as text, but
  3895. * it is still a good idea to HTML entity encode `<`, `>` and `&` in the content.
  3896. *
  3897. * The filter {@see 'format_for_editor'} is applied here. If `$text` is empty the
  3898. * filter will be applied to an empty string.
  3899. *
  3900. * @since 4.3.0
  3901. *
  3902. * @see _WP_Editors::editor()
  3903. *
  3904. * @param string $text The text to be formatted.
  3905. * @param string $default_editor The default editor for the current user.
  3906. * It is usually either 'html' or 'tinymce'.
  3907. * @return string The formatted text after filter is applied.
  3908. */
  3909. function format_for_editor( $text, $default_editor = null ) {
  3910. if ( $text ) {
  3911. $text = htmlspecialchars( $text, ENT_NOQUOTES, get_option( 'blog_charset' ) );
  3912. }
  3913. /**
  3914. * Filters the text after it is formatted for the editor.
  3915. *
  3916. * @since 4.3.0
  3917. *
  3918. * @param string $text The formatted text.
  3919. * @param string $default_editor The default editor for the current user.
  3920. * It is usually either 'html' or 'tinymce'.
  3921. */
  3922. return apply_filters( 'format_for_editor', $text, $default_editor );
  3923. }
  3924. /**
  3925. * Performs a deep string replace operation to ensure the values in $search are no longer present.
  3926. *
  3927. * Repeats the replacement operation until it no longer replaces anything so as to remove "nested" values
  3928. * e.g. $subject = '%0%0%0DDD', $search ='%0D', $result ='' rather than the '%0%0DD' that
  3929. * str_replace would return
  3930. *
  3931. * @since 2.8.1
  3932. * @access private
  3933. *
  3934. * @param string|array $search The value being searched for, otherwise known as the needle.
  3935. * An array may be used to designate multiple needles.
  3936. * @param string $subject The string being searched and replaced on, otherwise known as the haystack.
  3937. * @return string The string with the replaced values.
  3938. */
  3939. function _deep_replace( $search, $subject ) {
  3940. $subject = (string) $subject;
  3941. $count = 1;
  3942. while ( $count ) {
  3943. $subject = str_replace( $search, '', $subject, $count );
  3944. }
  3945. return $subject;
  3946. }
  3947. /**
  3948. * Escapes data for use in a MySQL query.
  3949. *
  3950. * Usually you should prepare queries using wpdb::prepare().
  3951. * Sometimes, spot-escaping is required or useful. One example
  3952. * is preparing an array for use in an IN clause.
  3953. *
  3954. * NOTE: Since 4.8.3, '%' characters will be replaced with a placeholder string,
  3955. * this prevents certain SQLi attacks from taking place. This change in behaviour
  3956. * may cause issues for code that expects the return value of esc_sql() to be useable
  3957. * for other purposes.
  3958. *
  3959. * @since 2.8.0
  3960. *
  3961. * @global wpdb $wpdb WordPress database abstraction object.
  3962. *
  3963. * @param string|array $data Unescaped data
  3964. * @return string|array Escaped data
  3965. */
  3966. function esc_sql( $data ) {
  3967. global $wpdb;
  3968. return $wpdb->_escape( $data );
  3969. }
  3970. /**
  3971. * Checks and cleans a URL.
  3972. *
  3973. * A number of characters are removed from the URL. If the URL is for displaying
  3974. * (the default behaviour) ampersands are also replaced. The {@see 'clean_url'} filter
  3975. * is applied to the returned cleaned URL.
  3976. *
  3977. * @since 2.8.0
  3978. *
  3979. * @param string $url The URL to be cleaned.
  3980. * @param string[] $protocols Optional. An array of acceptable protocols.
  3981. * Defaults to return value of wp_allowed_protocols().
  3982. * @param string $_context Private. Use esc_url_raw() for database usage.
  3983. * @return string The cleaned URL after the {@see 'clean_url'} filter is applied.
  3984. * An empty string is returned if `$url` specifies a protocol other than
  3985. * those in `$protocols`, or if `$url` contains an empty string.
  3986. */
  3987. function esc_url( $url, $protocols = null, $_context = 'display' ) {
  3988. $original_url = $url;
  3989. if ( '' === $url ) {
  3990. return $url;
  3991. }
  3992. $url = str_replace( ' ', '%20', ltrim( $url ) );
  3993. $url = preg_replace( '|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\[\]\\x80-\\xff]|i', '', $url );
  3994. if ( '' === $url ) {
  3995. return $url;
  3996. }
  3997. if ( 0 !== stripos( $url, 'mailto:' ) ) {
  3998. $strip = array( '%0d', '%0a', '%0D', '%0A' );
  3999. $url = _deep_replace( $strip, $url );
  4000. }
  4001. $url = str_replace( ';//', '://', $url );
  4002. /*
  4003. * If the URL doesn't appear to contain a scheme, we presume
  4004. * it needs http:// prepended (unless it's a relative link
  4005. * starting with /, # or ?, or a PHP file).
  4006. */
  4007. if ( strpos( $url, ':' ) === false && ! in_array( $url[0], array( '/', '#', '?' ), true ) &&
  4008. ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) ) {
  4009. $url = 'http://' . $url;
  4010. }
  4011. // Replace ampersands and single quotes only when displaying.
  4012. if ( 'display' === $_context ) {
  4013. $url = wp_kses_normalize_entities( $url );
  4014. $url = str_replace( '&amp;', '&#038;', $url );
  4015. $url = str_replace( "'", '&#039;', $url );
  4016. }
  4017. if ( ( false !== strpos( $url, '[' ) ) || ( false !== strpos( $url, ']' ) ) ) {
  4018. $parsed = wp_parse_url( $url );
  4019. $front = '';
  4020. if ( isset( $parsed['scheme'] ) ) {
  4021. $front .= $parsed['scheme'] . '://';
  4022. } elseif ( '/' === $url[0] ) {
  4023. $front .= '//';
  4024. }
  4025. if ( isset( $parsed['user'] ) ) {
  4026. $front .= $parsed['user'];
  4027. }
  4028. if ( isset( $parsed['pass'] ) ) {
  4029. $front .= ':' . $parsed['pass'];
  4030. }
  4031. if ( isset( $parsed['user'] ) || isset( $parsed['pass'] ) ) {
  4032. $front .= '@';
  4033. }
  4034. if ( isset( $parsed['host'] ) ) {
  4035. $front .= $parsed['host'];
  4036. }
  4037. if ( isset( $parsed['port'] ) ) {
  4038. $front .= ':' . $parsed['port'];
  4039. }
  4040. $end_dirty = str_replace( $front, '', $url );
  4041. $end_clean = str_replace( array( '[', ']' ), array( '%5B', '%5D' ), $end_dirty );
  4042. $url = str_replace( $end_dirty, $end_clean, $url );
  4043. }
  4044. if ( '/' === $url[0] ) {
  4045. $good_protocol_url = $url;
  4046. } else {
  4047. if ( ! is_array( $protocols ) ) {
  4048. $protocols = wp_allowed_protocols();
  4049. }
  4050. $good_protocol_url = wp_kses_bad_protocol( $url, $protocols );
  4051. if ( strtolower( $good_protocol_url ) != strtolower( $url ) ) {
  4052. return '';
  4053. }
  4054. }
  4055. /**
  4056. * Filters a string cleaned and escaped for output as a URL.
  4057. *
  4058. * @since 2.3.0
  4059. *
  4060. * @param string $good_protocol_url The cleaned URL to be returned.
  4061. * @param string $original_url The URL prior to cleaning.
  4062. * @param string $_context If 'display', replace ampersands and single quotes only.
  4063. */
  4064. return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context );
  4065. }
  4066. /**
  4067. * Performs esc_url() for database or redirect usage.
  4068. *
  4069. * @since 2.8.0
  4070. *
  4071. * @see esc_url()
  4072. *
  4073. * @param string $url The URL to be cleaned.
  4074. * @param string[] $protocols Optional. An array of acceptable protocols.
  4075. * Defaults to return value of wp_allowed_protocols().
  4076. * @return string The cleaned URL after esc_url() is run with the 'db' context.
  4077. */
  4078. function esc_url_raw( $url, $protocols = null ) {
  4079. return esc_url( $url, $protocols, 'db' );
  4080. }
  4081. /**
  4082. * Performs esc_url() for database or redirect usage.
  4083. *
  4084. * This function is an alias for esc_url_raw().
  4085. *
  4086. * @since 2.3.1
  4087. * @since 2.8.0 Deprecated in favor of esc_url_raw().
  4088. * @since 5.9.0 Restored (un-deprecated).
  4089. *
  4090. * @see esc_url_raw()
  4091. *
  4092. * @param string $url The URL to be cleaned.
  4093. * @param string[] $protocols Optional. An array of acceptable protocols.
  4094. * Defaults to return value of wp_allowed_protocols().
  4095. * @return string The cleaned URL after esc_url() is run with the 'db' context.
  4096. */
  4097. function sanitize_url( $url, $protocols = null ) {
  4098. return esc_url_raw( $url, $protocols );
  4099. }
  4100. /**
  4101. * Converts entities, while preserving already-encoded entities.
  4102. *
  4103. * @link https://www.php.net/htmlentities Borrowed from the PHP Manual user notes.
  4104. *
  4105. * @since 1.2.2
  4106. *
  4107. * @param string $myHTML The text to be converted.
  4108. * @return string Converted text.
  4109. */
  4110. function htmlentities2( $myHTML ) {
  4111. $translation_table = get_html_translation_table( HTML_ENTITIES, ENT_QUOTES );
  4112. $translation_table[ chr( 38 ) ] = '&';
  4113. return preg_replace( '/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/', '&amp;', strtr( $myHTML, $translation_table ) );
  4114. }
  4115. /**
  4116. * Escapes single quotes, `"`, `<`, `>`, `&`, and fixes line endings.
  4117. *
  4118. * Escapes text strings for echoing in JS. It is intended to be used for inline JS
  4119. * (in a tag attribute, for example `onclick="..."`). Note that the strings have to
  4120. * be in single quotes. The {@see 'js_escape'} filter is also applied here.
  4121. *
  4122. * @since 2.8.0
  4123. *
  4124. * @param string $text The text to be escaped.
  4125. * @return string Escaped text.
  4126. */
  4127. function esc_js( $text ) {
  4128. $safe_text = wp_check_invalid_utf8( $text );
  4129. $safe_text = _wp_specialchars( $safe_text, ENT_COMPAT );
  4130. $safe_text = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes( $safe_text ) );
  4131. $safe_text = str_replace( "\r", '', $safe_text );
  4132. $safe_text = str_replace( "\n", '\\n', addslashes( $safe_text ) );
  4133. /**
  4134. * Filters a string cleaned and escaped for output in JavaScript.
  4135. *
  4136. * Text passed to esc_js() is stripped of invalid or special characters,
  4137. * and properly slashed for output.
  4138. *
  4139. * @since 2.0.6
  4140. *
  4141. * @param string $safe_text The text after it has been escaped.
  4142. * @param string $text The text prior to being escaped.
  4143. */
  4144. return apply_filters( 'js_escape', $safe_text, $text );
  4145. }
  4146. /**
  4147. * Escaping for HTML blocks.
  4148. *
  4149. * @since 2.8.0
  4150. *
  4151. * @param string $text
  4152. * @return string
  4153. */
  4154. function esc_html( $text ) {
  4155. $safe_text = wp_check_invalid_utf8( $text );
  4156. $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES );
  4157. /**
  4158. * Filters a string cleaned and escaped for output in HTML.
  4159. *
  4160. * Text passed to esc_html() is stripped of invalid or special characters
  4161. * before output.
  4162. *
  4163. * @since 2.8.0
  4164. *
  4165. * @param string $safe_text The text after it has been escaped.
  4166. * @param string $text The text prior to being escaped.
  4167. */
  4168. return apply_filters( 'esc_html', $safe_text, $text );
  4169. }
  4170. /**
  4171. * Escaping for HTML attributes.
  4172. *
  4173. * @since 2.8.0
  4174. *
  4175. * @param string $text
  4176. * @return string
  4177. */
  4178. function esc_attr( $text ) {
  4179. $safe_text = wp_check_invalid_utf8( $text );
  4180. $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES );
  4181. /**
  4182. * Filters a string cleaned and escaped for output in an HTML attribute.
  4183. *
  4184. * Text passed to esc_attr() is stripped of invalid or special characters
  4185. * before output.
  4186. *
  4187. * @since 2.0.6
  4188. *
  4189. * @param string $safe_text The text after it has been escaped.
  4190. * @param string $text The text prior to being escaped.
  4191. */
  4192. return apply_filters( 'attribute_escape', $safe_text, $text );
  4193. }
  4194. /**
  4195. * Escaping for textarea values.
  4196. *
  4197. * @since 3.1.0
  4198. *
  4199. * @param string $text
  4200. * @return string
  4201. */
  4202. function esc_textarea( $text ) {
  4203. $safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) );
  4204. /**
  4205. * Filters a string cleaned and escaped for output in a textarea element.
  4206. *
  4207. * @since 3.1.0
  4208. *
  4209. * @param string $safe_text The text after it has been escaped.
  4210. * @param string $text The text prior to being escaped.
  4211. */
  4212. return apply_filters( 'esc_textarea', $safe_text, $text );
  4213. }
  4214. /**
  4215. * Escaping for XML blocks.
  4216. *
  4217. * @since 5.5.0
  4218. *
  4219. * @param string $text Text to escape.
  4220. * @return string Escaped text.
  4221. */
  4222. function esc_xml( $text ) {
  4223. $safe_text = wp_check_invalid_utf8( $text );
  4224. $cdata_regex = '\<\!\[CDATA\[.*?\]\]\>';
  4225. $regex = <<<EOF
  4226. /
  4227. (?=.*?{$cdata_regex}) # lookahead that will match anything followed by a CDATA Section
  4228. (?<non_cdata_followed_by_cdata>(.*?)) # the "anything" matched by the lookahead
  4229. (?<cdata>({$cdata_regex})) # the CDATA Section matched by the lookahead
  4230. | # alternative
  4231. (?<non_cdata>(.*)) # non-CDATA Section
  4232. /sx
  4233. EOF;
  4234. $safe_text = (string) preg_replace_callback(
  4235. $regex,
  4236. static function( $matches ) {
  4237. if ( ! isset( $matches[0] ) ) {
  4238. return '';
  4239. }
  4240. if ( isset( $matches['non_cdata'] ) ) {
  4241. // escape HTML entities in the non-CDATA Section.
  4242. return _wp_specialchars( $matches['non_cdata'], ENT_XML1 );
  4243. }
  4244. // Return the CDATA Section unchanged, escape HTML entities in the rest.
  4245. return _wp_specialchars( $matches['non_cdata_followed_by_cdata'], ENT_XML1 ) . $matches['cdata'];
  4246. },
  4247. $safe_text
  4248. );
  4249. /**
  4250. * Filters a string cleaned and escaped for output in XML.
  4251. *
  4252. * Text passed to esc_xml() is stripped of invalid or special characters
  4253. * before output. HTML named character references are converted to their
  4254. * equivalent code points.
  4255. *
  4256. * @since 5.5.0
  4257. *
  4258. * @param string $safe_text The text after it has been escaped.
  4259. * @param string $text The text prior to being escaped.
  4260. */
  4261. return apply_filters( 'esc_xml', $safe_text, $text );
  4262. }
  4263. /**
  4264. * Escapes an HTML tag name.
  4265. *
  4266. * @since 2.5.0
  4267. *
  4268. * @param string $tag_name
  4269. * @return string
  4270. */
  4271. function tag_escape( $tag_name ) {
  4272. $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9_:]/', '', $tag_name ) );
  4273. /**
  4274. * Filters a string cleaned and escaped for output as an HTML tag.
  4275. *
  4276. * @since 2.8.0
  4277. *
  4278. * @param string $safe_tag The tag name after it has been escaped.
  4279. * @param string $tag_name The text before it was escaped.
  4280. */
  4281. return apply_filters( 'tag_escape', $safe_tag, $tag_name );
  4282. }
  4283. /**
  4284. * Converts full URL paths to absolute paths.
  4285. *
  4286. * Removes the http or https protocols and the domain. Keeps the path '/' at the
  4287. * beginning, so it isn't a true relative link, but from the web root base.
  4288. *
  4289. * @since 2.1.0
  4290. * @since 4.1.0 Support was added for relative URLs.
  4291. *
  4292. * @param string $link Full URL path.
  4293. * @return string Absolute path.
  4294. */
  4295. function wp_make_link_relative( $link ) {
  4296. return preg_replace( '|^(https?:)?//[^/]+(/?.*)|i', '$2', $link );
  4297. }
  4298. /**
  4299. * Sanitizes various option values based on the nature of the option.
  4300. *
  4301. * This is basically a switch statement which will pass $value through a number
  4302. * of functions depending on the $option.
  4303. *
  4304. * @since 2.0.5
  4305. *
  4306. * @global wpdb $wpdb WordPress database abstraction object.
  4307. *
  4308. * @param string $option The name of the option.
  4309. * @param string $value The unsanitised value.
  4310. * @return string Sanitized value.
  4311. */
  4312. function sanitize_option( $option, $value ) {
  4313. global $wpdb;
  4314. $original_value = $value;
  4315. $error = null;
  4316. switch ( $option ) {
  4317. case 'admin_email':
  4318. case 'new_admin_email':
  4319. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4320. if ( is_wp_error( $value ) ) {
  4321. $error = $value->get_error_message();
  4322. } else {
  4323. $value = sanitize_email( $value );
  4324. if ( ! is_email( $value ) ) {
  4325. $error = __( 'The email address entered did not appear to be a valid email address. Please enter a valid email address.' );
  4326. }
  4327. }
  4328. break;
  4329. case 'thumbnail_size_w':
  4330. case 'thumbnail_size_h':
  4331. case 'medium_size_w':
  4332. case 'medium_size_h':
  4333. case 'medium_large_size_w':
  4334. case 'medium_large_size_h':
  4335. case 'large_size_w':
  4336. case 'large_size_h':
  4337. case 'mailserver_port':
  4338. case 'comment_max_links':
  4339. case 'page_on_front':
  4340. case 'page_for_posts':
  4341. case 'rss_excerpt_length':
  4342. case 'default_category':
  4343. case 'default_email_category':
  4344. case 'default_link_category':
  4345. case 'close_comments_days_old':
  4346. case 'comments_per_page':
  4347. case 'thread_comments_depth':
  4348. case 'users_can_register':
  4349. case 'start_of_week':
  4350. case 'site_icon':
  4351. $value = absint( $value );
  4352. break;
  4353. case 'posts_per_page':
  4354. case 'posts_per_rss':
  4355. $value = (int) $value;
  4356. if ( empty( $value ) ) {
  4357. $value = 1;
  4358. }
  4359. if ( $value < -1 ) {
  4360. $value = abs( $value );
  4361. }
  4362. break;
  4363. case 'default_ping_status':
  4364. case 'default_comment_status':
  4365. // Options that if not there have 0 value but need to be something like "closed".
  4366. if ( '0' == $value || '' === $value ) {
  4367. $value = 'closed';
  4368. }
  4369. break;
  4370. case 'blogdescription':
  4371. case 'blogname':
  4372. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4373. if ( $value !== $original_value ) {
  4374. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', wp_encode_emoji( $original_value ) );
  4375. }
  4376. if ( is_wp_error( $value ) ) {
  4377. $error = $value->get_error_message();
  4378. } else {
  4379. $value = esc_html( $value );
  4380. }
  4381. break;
  4382. case 'blog_charset':
  4383. $value = preg_replace( '/[^a-zA-Z0-9_-]/', '', $value ); // Strips slashes.
  4384. break;
  4385. case 'blog_public':
  4386. // This is the value if the settings checkbox is not checked on POST. Don't rely on this.
  4387. if ( null === $value ) {
  4388. $value = 1;
  4389. } else {
  4390. $value = (int) $value;
  4391. }
  4392. break;
  4393. case 'date_format':
  4394. case 'time_format':
  4395. case 'mailserver_url':
  4396. case 'mailserver_login':
  4397. case 'mailserver_pass':
  4398. case 'upload_path':
  4399. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4400. if ( is_wp_error( $value ) ) {
  4401. $error = $value->get_error_message();
  4402. } else {
  4403. $value = strip_tags( $value );
  4404. $value = wp_kses_data( $value );
  4405. }
  4406. break;
  4407. case 'ping_sites':
  4408. $value = explode( "\n", $value );
  4409. $value = array_filter( array_map( 'trim', $value ) );
  4410. $value = array_filter( array_map( 'esc_url_raw', $value ) );
  4411. $value = implode( "\n", $value );
  4412. break;
  4413. case 'gmt_offset':
  4414. $value = preg_replace( '/[^0-9:.-]/', '', $value ); // Strips slashes.
  4415. break;
  4416. case 'siteurl':
  4417. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4418. if ( is_wp_error( $value ) ) {
  4419. $error = $value->get_error_message();
  4420. } else {
  4421. if ( preg_match( '#http(s?)://(.+)#i', $value ) ) {
  4422. $value = esc_url_raw( $value );
  4423. } else {
  4424. $error = __( 'The WordPress address you entered did not appear to be a valid URL. Please enter a valid URL.' );
  4425. }
  4426. }
  4427. break;
  4428. case 'home':
  4429. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4430. if ( is_wp_error( $value ) ) {
  4431. $error = $value->get_error_message();
  4432. } else {
  4433. if ( preg_match( '#http(s?)://(.+)#i', $value ) ) {
  4434. $value = esc_url_raw( $value );
  4435. } else {
  4436. $error = __( 'The Site address you entered did not appear to be a valid URL. Please enter a valid URL.' );
  4437. }
  4438. }
  4439. break;
  4440. case 'WPLANG':
  4441. $allowed = get_available_languages();
  4442. if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG ) {
  4443. $allowed[] = WPLANG;
  4444. }
  4445. if ( ! in_array( $value, $allowed, true ) && ! empty( $value ) ) {
  4446. $value = get_option( $option );
  4447. }
  4448. break;
  4449. case 'illegal_names':
  4450. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4451. if ( is_wp_error( $value ) ) {
  4452. $error = $value->get_error_message();
  4453. } else {
  4454. if ( ! is_array( $value ) ) {
  4455. $value = explode( ' ', $value );
  4456. }
  4457. $value = array_values( array_filter( array_map( 'trim', $value ) ) );
  4458. if ( ! $value ) {
  4459. $value = '';
  4460. }
  4461. }
  4462. break;
  4463. case 'limited_email_domains':
  4464. case 'banned_email_domains':
  4465. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4466. if ( is_wp_error( $value ) ) {
  4467. $error = $value->get_error_message();
  4468. } else {
  4469. if ( ! is_array( $value ) ) {
  4470. $value = explode( "\n", $value );
  4471. }
  4472. $domains = array_values( array_filter( array_map( 'trim', $value ) ) );
  4473. $value = array();
  4474. foreach ( $domains as $domain ) {
  4475. if ( ! preg_match( '/(--|\.\.)/', $domain ) && preg_match( '|^([a-zA-Z0-9-\.])+$|', $domain ) ) {
  4476. $value[] = $domain;
  4477. }
  4478. }
  4479. if ( ! $value ) {
  4480. $value = '';
  4481. }
  4482. }
  4483. break;
  4484. case 'timezone_string':
  4485. $allowed_zones = timezone_identifiers_list();
  4486. if ( ! in_array( $value, $allowed_zones, true ) && ! empty( $value ) ) {
  4487. $error = __( 'The timezone you have entered is not valid. Please select a valid timezone.' );
  4488. }
  4489. break;
  4490. case 'permalink_structure':
  4491. case 'category_base':
  4492. case 'tag_base':
  4493. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4494. if ( is_wp_error( $value ) ) {
  4495. $error = $value->get_error_message();
  4496. } else {
  4497. $value = esc_url_raw( $value );
  4498. $value = str_replace( 'http://', '', $value );
  4499. }
  4500. if ( 'permalink_structure' === $option && null === $error
  4501. && '' !== $value && ! preg_match( '/%[^\/%]+%/', $value )
  4502. ) {
  4503. $error = sprintf(
  4504. /* translators: %s: Documentation URL. */
  4505. __( 'A structure tag is required when using custom permalinks. <a href="%s">Learn more</a>' ),
  4506. __( 'https://wordpress.org/support/article/using-permalinks/#choosing-your-permalink-structure' )
  4507. );
  4508. }
  4509. break;
  4510. case 'default_role':
  4511. if ( ! get_role( $value ) && get_role( 'subscriber' ) ) {
  4512. $value = 'subscriber';
  4513. }
  4514. break;
  4515. case 'moderation_keys':
  4516. case 'disallowed_keys':
  4517. $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
  4518. if ( is_wp_error( $value ) ) {
  4519. $error = $value->get_error_message();
  4520. } else {
  4521. $value = explode( "\n", $value );
  4522. $value = array_filter( array_map( 'trim', $value ) );
  4523. $value = array_unique( $value );
  4524. $value = implode( "\n", $value );
  4525. }
  4526. break;
  4527. }
  4528. if ( null !== $error ) {
  4529. if ( '' === $error && is_wp_error( $value ) ) {
  4530. /* translators: 1: Option name, 2: Error code. */
  4531. $error = sprintf( __( 'Could not sanitize the %1$s option. Error code: %2$s' ), $option, $value->get_error_code() );
  4532. }
  4533. $value = get_option( $option );
  4534. if ( function_exists( 'add_settings_error' ) ) {
  4535. add_settings_error( $option, "invalid_{$option}", $error );
  4536. }
  4537. }
  4538. /**
  4539. * Filters an option value following sanitization.
  4540. *
  4541. * @since 2.3.0
  4542. * @since 4.3.0 Added the `$original_value` parameter.
  4543. *
  4544. * @param string $value The sanitized option value.
  4545. * @param string $option The option name.
  4546. * @param string $original_value The original value passed to the function.
  4547. */
  4548. return apply_filters( "sanitize_option_{$option}", $value, $option, $original_value );
  4549. }
  4550. /**
  4551. * Maps a function to all non-iterable elements of an array or an object.
  4552. *
  4553. * This is similar to `array_walk_recursive()` but acts upon objects too.
  4554. *
  4555. * @since 4.4.0
  4556. *
  4557. * @param mixed $value The array, object, or scalar.
  4558. * @param callable $callback The function to map onto $value.
  4559. * @return mixed The value with the callback applied to all non-arrays and non-objects inside it.
  4560. */
  4561. function map_deep( $value, $callback ) {
  4562. if ( is_array( $value ) ) {
  4563. foreach ( $value as $index => $item ) {
  4564. $value[ $index ] = map_deep( $item, $callback );
  4565. }
  4566. } elseif ( is_object( $value ) ) {
  4567. $object_vars = get_object_vars( $value );
  4568. foreach ( $object_vars as $property_name => $property_value ) {
  4569. $value->$property_name = map_deep( $property_value, $callback );
  4570. }
  4571. } else {
  4572. $value = call_user_func( $callback, $value );
  4573. }
  4574. return $value;
  4575. }
  4576. /**
  4577. * Parses a string into variables to be stored in an array.
  4578. *
  4579. * @since 2.2.1
  4580. *
  4581. * @param string $string The string to be parsed.
  4582. * @param array $array Variables will be stored in this array.
  4583. */
  4584. function wp_parse_str( $string, &$array ) {
  4585. parse_str( (string) $string, $array );
  4586. /**
  4587. * Filters the array of variables derived from a parsed string.
  4588. *
  4589. * @since 2.2.1
  4590. *
  4591. * @param array $array The array populated with variables.
  4592. */
  4593. $array = apply_filters( 'wp_parse_str', $array );
  4594. }
  4595. /**
  4596. * Converts lone less than signs.
  4597. *
  4598. * KSES already converts lone greater than signs.
  4599. *
  4600. * @since 2.3.0
  4601. *
  4602. * @param string $text Text to be converted.
  4603. * @return string Converted text.
  4604. */
  4605. function wp_pre_kses_less_than( $text ) {
  4606. return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text );
  4607. }
  4608. /**
  4609. * Callback function used by preg_replace.
  4610. *
  4611. * @since 2.3.0
  4612. *
  4613. * @param string[] $matches Populated by matches to preg_replace.
  4614. * @return string The text returned after esc_html if needed.
  4615. */
  4616. function wp_pre_kses_less_than_callback( $matches ) {
  4617. if ( false === strpos( $matches[0], '>' ) ) {
  4618. return esc_html( $matches[0] );
  4619. }
  4620. return $matches[0];
  4621. }
  4622. /**
  4623. * Removes non-allowable HTML from parsed block attribute values when filtering
  4624. * in the post context.
  4625. *
  4626. * @since 5.3.1
  4627. *
  4628. * @param string $string Content to be run through KSES.
  4629. * @param array[]|string $allowed_html An array of allowed HTML elements
  4630. * and attributes, or a context name
  4631. * such as 'post'.
  4632. * @param string[] $allowed_protocols Array of allowed URL protocols.
  4633. * @return string Filtered text to run through KSES.
  4634. */
  4635. function wp_pre_kses_block_attributes( $string, $allowed_html, $allowed_protocols ) {
  4636. /*
  4637. * `filter_block_content` is expected to call `wp_kses`. Temporarily remove
  4638. * the filter to avoid recursion.
  4639. */
  4640. remove_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10 );
  4641. $string = filter_block_content( $string, $allowed_html, $allowed_protocols );
  4642. add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );
  4643. return $string;
  4644. }
  4645. /**
  4646. * WordPress implementation of PHP sprintf() with filters.
  4647. *
  4648. * @since 2.5.0
  4649. * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
  4650. * by adding it to the function signature.
  4651. *
  4652. * @link https://www.php.net/sprintf
  4653. *
  4654. * @param string $pattern The string which formatted args are inserted.
  4655. * @param mixed ...$args Arguments to be formatted into the $pattern string.
  4656. * @return string The formatted string.
  4657. */
  4658. function wp_sprintf( $pattern, ...$args ) {
  4659. $len = strlen( $pattern );
  4660. $start = 0;
  4661. $result = '';
  4662. $arg_index = 0;
  4663. while ( $len > $start ) {
  4664. // Last character: append and break.
  4665. if ( strlen( $pattern ) - 1 == $start ) {
  4666. $result .= substr( $pattern, -1 );
  4667. break;
  4668. }
  4669. // Literal %: append and continue.
  4670. if ( '%%' === substr( $pattern, $start, 2 ) ) {
  4671. $start += 2;
  4672. $result .= '%';
  4673. continue;
  4674. }
  4675. // Get fragment before next %.
  4676. $end = strpos( $pattern, '%', $start + 1 );
  4677. if ( false === $end ) {
  4678. $end = $len;
  4679. }
  4680. $fragment = substr( $pattern, $start, $end - $start );
  4681. // Fragment has a specifier.
  4682. if ( '%' === $pattern[ $start ] ) {
  4683. // Find numbered arguments or take the next one in order.
  4684. if ( preg_match( '/^%(\d+)\$/', $fragment, $matches ) ) {
  4685. $index = $matches[1] - 1; // 0-based array vs 1-based sprintf() arguments.
  4686. $arg = isset( $args[ $index ] ) ? $args[ $index ] : '';
  4687. $fragment = str_replace( "%{$matches[1]}$", '%', $fragment );
  4688. } else {
  4689. $arg = isset( $args[ $arg_index ] ) ? $args[ $arg_index ] : '';
  4690. ++$arg_index;
  4691. }
  4692. /**
  4693. * Filters a fragment from the pattern passed to wp_sprintf().
  4694. *
  4695. * If the fragment is unchanged, then sprintf() will be run on the fragment.
  4696. *
  4697. * @since 2.5.0
  4698. *
  4699. * @param string $fragment A fragment from the pattern.
  4700. * @param string $arg The argument.
  4701. */
  4702. $_fragment = apply_filters( 'wp_sprintf', $fragment, $arg );
  4703. if ( $_fragment != $fragment ) {
  4704. $fragment = $_fragment;
  4705. } else {
  4706. $fragment = sprintf( $fragment, (string) $arg );
  4707. }
  4708. }
  4709. // Append to result and move to next fragment.
  4710. $result .= $fragment;
  4711. $start = $end;
  4712. }
  4713. return $result;
  4714. }
  4715. /**
  4716. * Localizes list items before the rest of the content.
  4717. *
  4718. * The '%l' must be at the first characters can then contain the rest of the
  4719. * content. The list items will have ', ', ', and', and ' and ' added depending
  4720. * on the amount of list items in the $args parameter.
  4721. *
  4722. * @since 2.5.0
  4723. *
  4724. * @param string $pattern Content containing '%l' at the beginning.
  4725. * @param array $args List items to prepend to the content and replace '%l'.
  4726. * @return string Localized list items and rest of the content.
  4727. */
  4728. function wp_sprintf_l( $pattern, $args ) {
  4729. // Not a match.
  4730. if ( '%l' !== substr( $pattern, 0, 2 ) ) {
  4731. return $pattern;
  4732. }
  4733. // Nothing to work with.
  4734. if ( empty( $args ) ) {
  4735. return '';
  4736. }
  4737. /**
  4738. * Filters the translated delimiters used by wp_sprintf_l().
  4739. * Placeholders (%s) are included to assist translators and then
  4740. * removed before the array of strings reaches the filter.
  4741. *
  4742. * Please note: Ampersands and entities should be avoided here.
  4743. *
  4744. * @since 2.5.0
  4745. *
  4746. * @param array $delimiters An array of translated delimiters.
  4747. */
  4748. $l = apply_filters(
  4749. 'wp_sprintf_l',
  4750. array(
  4751. /* translators: Used to join items in a list with more than 2 items. */
  4752. 'between' => sprintf( __( '%1$s, %2$s' ), '', '' ),
  4753. /* translators: Used to join last two items in a list with more than 2 times. */
  4754. 'between_last_two' => sprintf( __( '%1$s, and %2$s' ), '', '' ),
  4755. /* translators: Used to join items in a list with only 2 items. */
  4756. 'between_only_two' => sprintf( __( '%1$s and %2$s' ), '', '' ),
  4757. )
  4758. );
  4759. $args = (array) $args;
  4760. $result = array_shift( $args );
  4761. if ( count( $args ) == 1 ) {
  4762. $result .= $l['between_only_two'] . array_shift( $args );
  4763. }
  4764. // Loop when more than two args.
  4765. $i = count( $args );
  4766. while ( $i ) {
  4767. $arg = array_shift( $args );
  4768. $i--;
  4769. if ( 0 == $i ) {
  4770. $result .= $l['between_last_two'] . $arg;
  4771. } else {
  4772. $result .= $l['between'] . $arg;
  4773. }
  4774. }
  4775. return $result . substr( $pattern, 2 );
  4776. }
  4777. /**
  4778. * Safely extracts not more than the first $count characters from HTML string.
  4779. *
  4780. * UTF-8, tags and entities safe prefix extraction. Entities inside will *NOT*
  4781. * be counted as one character. For example &amp; will be counted as 4, &lt; as
  4782. * 3, etc.
  4783. *
  4784. * @since 2.5.0
  4785. *
  4786. * @param string $str String to get the excerpt from.
  4787. * @param int $count Maximum number of characters to take.
  4788. * @param string $more Optional. What to append if $str needs to be trimmed. Defaults to empty string.
  4789. * @return string The excerpt.
  4790. */
  4791. function wp_html_excerpt( $str, $count, $more = null ) {
  4792. if ( null === $more ) {
  4793. $more = '';
  4794. }
  4795. $str = wp_strip_all_tags( $str, true );
  4796. $excerpt = mb_substr( $str, 0, $count );
  4797. // Remove part of an entity at the end.
  4798. $excerpt = preg_replace( '/&[^;\s]{0,6}$/', '', $excerpt );
  4799. if ( $str != $excerpt ) {
  4800. $excerpt = trim( $excerpt ) . $more;
  4801. }
  4802. return $excerpt;
  4803. }
  4804. /**
  4805. * Adds a base URL to relative links in passed content.
  4806. *
  4807. * By default it supports the 'src' and 'href' attributes. However this can be
  4808. * changed via the 3rd param.
  4809. *
  4810. * @since 2.7.0
  4811. *
  4812. * @global string $_links_add_base
  4813. *
  4814. * @param string $content String to search for links in.
  4815. * @param string $base The base URL to prefix to links.
  4816. * @param array $attrs The attributes which should be processed.
  4817. * @return string The processed content.
  4818. */
  4819. function links_add_base_url( $content, $base, $attrs = array( 'src', 'href' ) ) {
  4820. global $_links_add_base;
  4821. $_links_add_base = $base;
  4822. $attrs = implode( '|', (array) $attrs );
  4823. return preg_replace_callback( "!($attrs)=(['\"])(.+?)\\2!i", '_links_add_base', $content );
  4824. }
  4825. /**
  4826. * Callback to add a base URL to relative links in passed content.
  4827. *
  4828. * @since 2.7.0
  4829. * @access private
  4830. *
  4831. * @global string $_links_add_base
  4832. *
  4833. * @param string $m The matched link.
  4834. * @return string The processed link.
  4835. */
  4836. function _links_add_base( $m ) {
  4837. global $_links_add_base;
  4838. // 1 = attribute name 2 = quotation mark 3 = URL.
  4839. return $m[1] . '=' . $m[2] .
  4840. ( preg_match( '#^(\w{1,20}):#', $m[3], $protocol ) && in_array( $protocol[1], wp_allowed_protocols(), true ) ?
  4841. $m[3] :
  4842. WP_Http::make_absolute_url( $m[3], $_links_add_base )
  4843. )
  4844. . $m[2];
  4845. }
  4846. /**
  4847. * Adds a Target attribute to all links in passed content.
  4848. *
  4849. * This function by default only applies to `<a>` tags, however this can be
  4850. * modified by the 3rd param.
  4851. *
  4852. * *NOTE:* Any current target attributed will be stripped and replaced.
  4853. *
  4854. * @since 2.7.0
  4855. *
  4856. * @global string $_links_add_target
  4857. *
  4858. * @param string $content String to search for links in.
  4859. * @param string $target The Target to add to the links.
  4860. * @param string[] $tags An array of tags to apply to.
  4861. * @return string The processed content.
  4862. */
  4863. function links_add_target( $content, $target = '_blank', $tags = array( 'a' ) ) {
  4864. global $_links_add_target;
  4865. $_links_add_target = $target;
  4866. $tags = implode( '|', (array) $tags );
  4867. return preg_replace_callback( "!<($tags)((\s[^>]*)?)>!i", '_links_add_target', $content );
  4868. }
  4869. /**
  4870. * Callback to add a target attribute to all links in passed content.
  4871. *
  4872. * @since 2.7.0
  4873. * @access private
  4874. *
  4875. * @global string $_links_add_target
  4876. *
  4877. * @param string $m The matched link.
  4878. * @return string The processed link.
  4879. */
  4880. function _links_add_target( $m ) {
  4881. global $_links_add_target;
  4882. $tag = $m[1];
  4883. $link = preg_replace( '|( target=([\'"])(.*?)\2)|i', '', $m[2] );
  4884. return '<' . $tag . $link . ' target="' . esc_attr( $_links_add_target ) . '">';
  4885. }
  4886. /**
  4887. * Normalizes EOL characters and strips duplicate whitespace.
  4888. *
  4889. * @since 2.7.0
  4890. *
  4891. * @param string $str The string to normalize.
  4892. * @return string The normalized string.
  4893. */
  4894. function normalize_whitespace( $str ) {
  4895. $str = trim( $str );
  4896. $str = str_replace( "\r", "\n", $str );
  4897. $str = preg_replace( array( '/\n+/', '/[ \t]+/' ), array( "\n", ' ' ), $str );
  4898. return $str;
  4899. }
  4900. /**
  4901. * Properly strips all HTML tags including script and style
  4902. *
  4903. * This differs from strip_tags() because it removes the contents of
  4904. * the `<script>` and `<style>` tags. E.g. `strip_tags( '<script>something</script>' )`
  4905. * will return 'something'. wp_strip_all_tags will return ''
  4906. *
  4907. * @since 2.9.0
  4908. *
  4909. * @param string $string String containing HTML tags
  4910. * @param bool $remove_breaks Optional. Whether to remove left over line breaks and white space chars
  4911. * @return string The processed string.
  4912. */
  4913. function wp_strip_all_tags( $string, $remove_breaks = false ) {
  4914. $string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string );
  4915. $string = strip_tags( $string );
  4916. if ( $remove_breaks ) {
  4917. $string = preg_replace( '/[\r\n\t ]+/', ' ', $string );
  4918. }
  4919. return trim( $string );
  4920. }
  4921. /**
  4922. * Sanitizes a string from user input or from the database.
  4923. *
  4924. * - Checks for invalid UTF-8,
  4925. * - Converts single `<` characters to entities
  4926. * - Strips all tags
  4927. * - Removes line breaks, tabs, and extra whitespace
  4928. * - Strips octets
  4929. *
  4930. * @since 2.9.0
  4931. *
  4932. * @see sanitize_textarea_field()
  4933. * @see wp_check_invalid_utf8()
  4934. * @see wp_strip_all_tags()
  4935. *
  4936. * @param string $str String to sanitize.
  4937. * @return string Sanitized string.
  4938. */
  4939. function sanitize_text_field( $str ) {
  4940. $filtered = _sanitize_text_fields( $str, false );
  4941. /**
  4942. * Filters a sanitized text field string.
  4943. *
  4944. * @since 2.9.0
  4945. *
  4946. * @param string $filtered The sanitized string.
  4947. * @param string $str The string prior to being sanitized.
  4948. */
  4949. return apply_filters( 'sanitize_text_field', $filtered, $str );
  4950. }
  4951. /**
  4952. * Sanitizes a multiline string from user input or from the database.
  4953. *
  4954. * The function is like sanitize_text_field(), but preserves
  4955. * new lines (\n) and other whitespace, which are legitimate
  4956. * input in textarea elements.
  4957. *
  4958. * @see sanitize_text_field()
  4959. *
  4960. * @since 4.7.0
  4961. *
  4962. * @param string $str String to sanitize.
  4963. * @return string Sanitized string.
  4964. */
  4965. function sanitize_textarea_field( $str ) {
  4966. $filtered = _sanitize_text_fields( $str, true );
  4967. /**
  4968. * Filters a sanitized textarea field string.
  4969. *
  4970. * @since 4.7.0
  4971. *
  4972. * @param string $filtered The sanitized string.
  4973. * @param string $str The string prior to being sanitized.
  4974. */
  4975. return apply_filters( 'sanitize_textarea_field', $filtered, $str );
  4976. }
  4977. /**
  4978. * Internal helper function to sanitize a string from user input or from the database.
  4979. *
  4980. * @since 4.7.0
  4981. * @access private
  4982. *
  4983. * @param string $str String to sanitize.
  4984. * @param bool $keep_newlines Optional. Whether to keep newlines. Default: false.
  4985. * @return string Sanitized string.
  4986. */
  4987. function _sanitize_text_fields( $str, $keep_newlines = false ) {
  4988. if ( is_object( $str ) || is_array( $str ) ) {
  4989. return '';
  4990. }
  4991. $str = (string) $str;
  4992. $filtered = wp_check_invalid_utf8( $str );
  4993. if ( strpos( $filtered, '<' ) !== false ) {
  4994. $filtered = wp_pre_kses_less_than( $filtered );
  4995. // This will strip extra whitespace for us.
  4996. $filtered = wp_strip_all_tags( $filtered, false );
  4997. // Use HTML entities in a special case to make sure no later
  4998. // newline stripping stage could lead to a functional tag.
  4999. $filtered = str_replace( "<\n", "&lt;\n", $filtered );
  5000. }
  5001. if ( ! $keep_newlines ) {
  5002. $filtered = preg_replace( '/[\r\n\t ]+/', ' ', $filtered );
  5003. }
  5004. $filtered = trim( $filtered );
  5005. $found = false;
  5006. while ( preg_match( '/%[a-f0-9]{2}/i', $filtered, $match ) ) {
  5007. $filtered = str_replace( $match[0], '', $filtered );
  5008. $found = true;
  5009. }
  5010. if ( $found ) {
  5011. // Strip out the whitespace that may now exist after removing the octets.
  5012. $filtered = trim( preg_replace( '/ +/', ' ', $filtered ) );
  5013. }
  5014. return $filtered;
  5015. }
  5016. /**
  5017. * i18n-friendly version of basename().
  5018. *
  5019. * @since 3.1.0
  5020. *
  5021. * @param string $path A path.
  5022. * @param string $suffix If the filename ends in suffix this will also be cut off.
  5023. * @return string
  5024. */
  5025. function wp_basename( $path, $suffix = '' ) {
  5026. return urldecode( basename( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ), $suffix ) );
  5027. }
  5028. // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled, WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid -- 8-)
  5029. /**
  5030. * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).
  5031. *
  5032. * Violating our coding standards for a good function name.
  5033. *
  5034. * @since 3.0.0
  5035. *
  5036. * @param string $text The text to be modified.
  5037. * @return string The modified text.
  5038. */
  5039. function capital_P_dangit( $text ) {
  5040. // Simple replacement for titles.
  5041. $current_filter = current_filter();
  5042. if ( 'the_title' === $current_filter || 'wp_title' === $current_filter ) {
  5043. return str_replace( 'Wordpress', 'WordPress', $text );
  5044. }
  5045. // Still here? Use the more judicious replacement.
  5046. static $dblq = false;
  5047. if ( false === $dblq ) {
  5048. $dblq = _x( '&#8220;', 'opening curly double quote' );
  5049. }
  5050. return str_replace(
  5051. array( ' Wordpress', '&#8216;Wordpress', $dblq . 'Wordpress', '>Wordpress', '(Wordpress' ),
  5052. array( ' WordPress', '&#8216;WordPress', $dblq . 'WordPress', '>WordPress', '(WordPress' ),
  5053. $text
  5054. );
  5055. }
  5056. // phpcs:enable
  5057. /**
  5058. * Sanitizes a mime type
  5059. *
  5060. * @since 3.1.3
  5061. *
  5062. * @param string $mime_type Mime type.
  5063. * @return string Sanitized mime type.
  5064. */
  5065. function sanitize_mime_type( $mime_type ) {
  5066. $sani_mime_type = preg_replace( '/[^-+*.a-zA-Z0-9\/]/', '', $mime_type );
  5067. /**
  5068. * Filters a mime type following sanitization.
  5069. *
  5070. * @since 3.1.3
  5071. *
  5072. * @param string $sani_mime_type The sanitized mime type.
  5073. * @param string $mime_type The mime type prior to sanitization.
  5074. */
  5075. return apply_filters( 'sanitize_mime_type', $sani_mime_type, $mime_type );
  5076. }
  5077. /**
  5078. * Sanitizes space or carriage return separated URLs that are used to send trackbacks.
  5079. *
  5080. * @since 3.4.0
  5081. *
  5082. * @param string $to_ping Space or carriage return separated URLs
  5083. * @return string URLs starting with the http or https protocol, separated by a carriage return.
  5084. */
  5085. function sanitize_trackback_urls( $to_ping ) {
  5086. $urls_to_ping = preg_split( '/[\r\n\t ]/', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
  5087. foreach ( $urls_to_ping as $k => $url ) {
  5088. if ( ! preg_match( '#^https?://.#i', $url ) ) {
  5089. unset( $urls_to_ping[ $k ] );
  5090. }
  5091. }
  5092. $urls_to_ping = array_map( 'esc_url_raw', $urls_to_ping );
  5093. $urls_to_ping = implode( "\n", $urls_to_ping );
  5094. /**
  5095. * Filters a list of trackback URLs following sanitization.
  5096. *
  5097. * The string returned here consists of a space or carriage return-delimited list
  5098. * of trackback URLs.
  5099. *
  5100. * @since 3.4.0
  5101. *
  5102. * @param string $urls_to_ping Sanitized space or carriage return separated URLs.
  5103. * @param string $to_ping Space or carriage return separated URLs before sanitization.
  5104. */
  5105. return apply_filters( 'sanitize_trackback_urls', $urls_to_ping, $to_ping );
  5106. }
  5107. /**
  5108. * Adds slashes to a string or recursively adds slashes to strings within an array.
  5109. *
  5110. * This should be used when preparing data for core API that expects slashed data.
  5111. * This should not be used to escape data going directly into an SQL query.
  5112. *
  5113. * @since 3.6.0
  5114. * @since 5.5.0 Non-string values are left untouched.
  5115. *
  5116. * @param string|array $value String or array of data to slash.
  5117. * @return string|array Slashed `$value`.
  5118. */
  5119. function wp_slash( $value ) {
  5120. if ( is_array( $value ) ) {
  5121. $value = array_map( 'wp_slash', $value );
  5122. }
  5123. if ( is_string( $value ) ) {
  5124. return addslashes( $value );
  5125. }
  5126. return $value;
  5127. }
  5128. /**
  5129. * Removes slashes from a string or recursively removes slashes from strings within an array.
  5130. *
  5131. * This should be used to remove slashes from data passed to core API that
  5132. * expects data to be unslashed.
  5133. *
  5134. * @since 3.6.0
  5135. *
  5136. * @param string|array $value String or array of data to unslash.
  5137. * @return string|array Unslashed `$value`.
  5138. */
  5139. function wp_unslash( $value ) {
  5140. return stripslashes_deep( $value );
  5141. }
  5142. /**
  5143. * Extracts and returns the first URL from passed content.
  5144. *
  5145. * @since 3.6.0
  5146. *
  5147. * @param string $content A string which might contain a URL.
  5148. * @return string|false The found URL.
  5149. */
  5150. function get_url_in_content( $content ) {
  5151. if ( empty( $content ) ) {
  5152. return false;
  5153. }
  5154. if ( preg_match( '/<a\s[^>]*?href=([\'"])(.+?)\1/is', $content, $matches ) ) {
  5155. return esc_url_raw( $matches[2] );
  5156. }
  5157. return false;
  5158. }
  5159. /**
  5160. * Returns the regexp for common whitespace characters.
  5161. *
  5162. * By default, spaces include new lines, tabs, nbsp entities, and the UTF-8 nbsp.
  5163. * This is designed to replace the PCRE \s sequence. In ticket #22692, that
  5164. * sequence was found to be unreliable due to random inclusion of the A0 byte.
  5165. *
  5166. * @since 4.0.0
  5167. *
  5168. * @return string The spaces regexp.
  5169. */
  5170. function wp_spaces_regexp() {
  5171. static $spaces = '';
  5172. if ( empty( $spaces ) ) {
  5173. /**
  5174. * Filters the regexp for common whitespace characters.
  5175. *
  5176. * This string is substituted for the \s sequence as needed in regular
  5177. * expressions. For websites not written in English, different characters
  5178. * may represent whitespace. For websites not encoded in UTF-8, the 0xC2 0xA0
  5179. * sequence may not be in use.
  5180. *
  5181. * @since 4.0.0
  5182. *
  5183. * @param string $spaces Regexp pattern for matching common whitespace characters.
  5184. */
  5185. $spaces = apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0|&nbsp;' );
  5186. }
  5187. return $spaces;
  5188. }
  5189. /**
  5190. * Prints the important emoji-related styles.
  5191. *
  5192. * @since 4.2.0
  5193. */
  5194. function print_emoji_styles() {
  5195. static $printed = false;
  5196. if ( $printed ) {
  5197. return;
  5198. }
  5199. $printed = true;
  5200. $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
  5201. ?>
  5202. <style<?php echo $type_attr; ?>>
  5203. img.wp-smiley,
  5204. img.emoji {
  5205. display: inline !important;
  5206. border: none !important;
  5207. box-shadow: none !important;
  5208. height: 1em !important;
  5209. width: 1em !important;
  5210. margin: 0 0.07em !important;
  5211. vertical-align: -0.1em !important;
  5212. background: none !important;
  5213. padding: 0 !important;
  5214. }
  5215. </style>
  5216. <?php
  5217. }
  5218. /**
  5219. * Prints the inline Emoji detection script if it is not already printed.
  5220. *
  5221. * @since 4.2.0
  5222. */
  5223. function print_emoji_detection_script() {
  5224. static $printed = false;
  5225. if ( $printed ) {
  5226. return;
  5227. }
  5228. $printed = true;
  5229. _print_emoji_detection_script();
  5230. }
  5231. /**
  5232. * Prints inline Emoji detection script.
  5233. *
  5234. * @ignore
  5235. * @since 4.6.0
  5236. * @access private
  5237. */
  5238. function _print_emoji_detection_script() {
  5239. $settings = array(
  5240. /**
  5241. * Filters the URL where emoji png images are hosted.
  5242. *
  5243. * @since 4.2.0
  5244. *
  5245. * @param string $url The emoji base URL for png images.
  5246. */
  5247. 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' ),
  5248. /**
  5249. * Filters the extension of the emoji png files.
  5250. *
  5251. * @since 4.2.0
  5252. *
  5253. * @param string $extension The emoji extension for png files. Default .png.
  5254. */
  5255. 'ext' => apply_filters( 'emoji_ext', '.png' ),
  5256. /**
  5257. * Filters the URL where emoji SVG images are hosted.
  5258. *
  5259. * @since 4.6.0
  5260. *
  5261. * @param string $url The emoji base URL for svg images.
  5262. */
  5263. 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/14.0.0/svg/' ),
  5264. /**
  5265. * Filters the extension of the emoji SVG files.
  5266. *
  5267. * @since 4.6.0
  5268. *
  5269. * @param string $extension The emoji extension for svg files. Default .svg.
  5270. */
  5271. 'svgExt' => apply_filters( 'emoji_svg_ext', '.svg' ),
  5272. );
  5273. $version = 'ver=' . get_bloginfo( 'version' );
  5274. if ( SCRIPT_DEBUG ) {
  5275. $settings['source'] = array(
  5276. /** This filter is documented in wp-includes/class.wp-scripts.php */
  5277. 'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
  5278. /** This filter is documented in wp-includes/class.wp-scripts.php */
  5279. 'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ),
  5280. );
  5281. } else {
  5282. $settings['source'] = array(
  5283. /** This filter is documented in wp-includes/class.wp-scripts.php */
  5284. 'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ),
  5285. );
  5286. }
  5287. wp_print_inline_script_tag(
  5288. sprintf( 'window._wpemojiSettings = %s;', wp_json_encode( $settings ) ) . "\n" .
  5289. file_get_contents( sprintf( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' ) )
  5290. );
  5291. }
  5292. /**
  5293. * Converts emoji characters to their equivalent HTML entity.
  5294. *
  5295. * This allows us to store emoji in a DB using the utf8 character set.
  5296. *
  5297. * @since 4.2.0
  5298. *
  5299. * @param string $content The content to encode.
  5300. * @return string The encoded content.
  5301. */
  5302. function wp_encode_emoji( $content ) {
  5303. $emoji = _wp_emoji_list( 'partials' );
  5304. foreach ( $emoji as $emojum ) {
  5305. $emoji_char = html_entity_decode( $emojum );
  5306. if ( false !== strpos( $content, $emoji_char ) ) {
  5307. $content = preg_replace( "/$emoji_char/", $emojum, $content );
  5308. }
  5309. }
  5310. return $content;
  5311. }
  5312. /**
  5313. * Converts emoji to a static img element.
  5314. *
  5315. * @since 4.2.0
  5316. *
  5317. * @param string $text The content to encode.
  5318. * @return string The encoded content.
  5319. */
  5320. function wp_staticize_emoji( $text ) {
  5321. if ( false === strpos( $text, '&#x' ) ) {
  5322. if ( ( function_exists( 'mb_check_encoding' ) && mb_check_encoding( $text, 'ASCII' ) ) || ! preg_match( '/[^\x00-\x7F]/', $text ) ) {
  5323. // The text doesn't contain anything that might be emoji, so we can return early.
  5324. return $text;
  5325. } else {
  5326. $encoded_text = wp_encode_emoji( $text );
  5327. if ( $encoded_text === $text ) {
  5328. return $encoded_text;
  5329. }
  5330. $text = $encoded_text;
  5331. }
  5332. }
  5333. $emoji = _wp_emoji_list( 'entities' );
  5334. // Quickly narrow down the list of emoji that might be in the text and need replacing.
  5335. $possible_emoji = array();
  5336. foreach ( $emoji as $emojum ) {
  5337. if ( false !== strpos( $text, $emojum ) ) {
  5338. $possible_emoji[ $emojum ] = html_entity_decode( $emojum );
  5339. }
  5340. }
  5341. if ( ! $possible_emoji ) {
  5342. return $text;
  5343. }
  5344. /** This filter is documented in wp-includes/formatting.php */
  5345. $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/14.0.0/72x72/' );
  5346. /** This filter is documented in wp-includes/formatting.php */
  5347. $ext = apply_filters( 'emoji_ext', '.png' );
  5348. $output = '';
  5349. /*
  5350. * HTML loop taken from smiley function, which was taken from texturize function.
  5351. * It'll never be consolidated.
  5352. *
  5353. * First, capture the tags as well as in between.
  5354. */
  5355. $textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE );
  5356. $stop = count( $textarr );
  5357. // Ignore processing of specific tags.
  5358. $tags_to_ignore = 'code|pre|style|script|textarea';
  5359. $ignore_block_element = '';
  5360. for ( $i = 0; $i < $stop; $i++ ) {
  5361. $content = $textarr[ $i ];
  5362. // If we're in an ignore block, wait until we find its closing tag.
  5363. if ( '' === $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ')>/', $content, $matches ) ) {
  5364. $ignore_block_element = $matches[1];
  5365. }
  5366. // If it's not a tag and not in ignore block.
  5367. if ( '' === $ignore_block_element && strlen( $content ) > 0 && '<' !== $content[0] && false !== strpos( $content, '&#x' ) ) {
  5368. foreach ( $possible_emoji as $emojum => $emoji_char ) {
  5369. if ( false === strpos( $content, $emojum ) ) {
  5370. continue;
  5371. }
  5372. $file = str_replace( ';&#x', '-', $emojum );
  5373. $file = str_replace( array( '&#x', ';' ), '', $file );
  5374. $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', $cdn_url . $file . $ext, $emoji_char );
  5375. $content = str_replace( $emojum, $entity, $content );
  5376. }
  5377. }
  5378. // Did we exit ignore block?
  5379. if ( '' !== $ignore_block_element && '</' . $ignore_block_element . '>' === $content ) {
  5380. $ignore_block_element = '';
  5381. }
  5382. $output .= $content;
  5383. }
  5384. // Finally, remove any stray U+FE0F characters.
  5385. $output = str_replace( '&#xfe0f;', '', $output );
  5386. return $output;
  5387. }
  5388. /**
  5389. * Converts emoji in emails into static images.
  5390. *
  5391. * @since 4.2.0
  5392. *
  5393. * @param array $mail The email data array.
  5394. * @return array The email data array, with emoji in the message staticized.
  5395. */
  5396. function wp_staticize_emoji_for_email( $mail ) {
  5397. if ( ! isset( $mail['message'] ) ) {
  5398. return $mail;
  5399. }
  5400. /*
  5401. * We can only transform the emoji into images if it's a `text/html` email.
  5402. * To do that, here's a cut down version of the same process that happens
  5403. * in wp_mail() - get the `Content-Type` from the headers, if there is one,
  5404. * then pass it through the {@see 'wp_mail_content_type'} filter, in case
  5405. * a plugin is handling changing the `Content-Type`.
  5406. */
  5407. $headers = array();
  5408. if ( isset( $mail['headers'] ) ) {
  5409. if ( is_array( $mail['headers'] ) ) {
  5410. $headers = $mail['headers'];
  5411. } else {
  5412. $headers = explode( "\n", str_replace( "\r\n", "\n", $mail['headers'] ) );
  5413. }
  5414. }
  5415. foreach ( $headers as $header ) {
  5416. if ( strpos( $header, ':' ) === false ) {
  5417. continue;
  5418. }
  5419. // Explode them out.
  5420. list( $name, $content ) = explode( ':', trim( $header ), 2 );
  5421. // Cleanup crew.
  5422. $name = trim( $name );
  5423. $content = trim( $content );
  5424. if ( 'content-type' === strtolower( $name ) ) {
  5425. if ( strpos( $content, ';' ) !== false ) {
  5426. list( $type, $charset ) = explode( ';', $content );
  5427. $content_type = trim( $type );
  5428. } else {
  5429. $content_type = trim( $content );
  5430. }
  5431. break;
  5432. }
  5433. }
  5434. // Set Content-Type if we don't have a content-type from the input headers.
  5435. if ( ! isset( $content_type ) ) {
  5436. $content_type = 'text/plain';
  5437. }
  5438. /** This filter is documented in wp-includes/pluggable.php */
  5439. $content_type = apply_filters( 'wp_mail_content_type', $content_type );
  5440. if ( 'text/html' === $content_type ) {
  5441. $mail['message'] = wp_staticize_emoji( $mail['message'] );
  5442. }
  5443. return $mail;
  5444. }
  5445. /**
  5446. * Returns arrays of emoji data.
  5447. *
  5448. * These arrays are automatically built from the regex in twemoji.js - if they need to be updated,
  5449. * you should update the regex there, then run the `npm run grunt precommit:emoji` job.
  5450. *
  5451. * @since 4.9.0
  5452. * @access private
  5453. *
  5454. * @param string $type Optional. Which array type to return. Accepts 'partials' or 'entities', default 'entities'.
  5455. * @return array An array to match all emoji that WordPress recognises.
  5456. */
  5457. function _wp_emoji_list( $type = 'entities' ) {
  5458. // Do not remove the START/END comments - they're used to find where to insert the arrays.
  5459. // START: emoji arrays
  5460. $entities = array( '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f468;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;', '&#x1f469;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f468;', '&#x1f469;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f48b;&#x200d;&#x1f469;', '&#x1f3f4;&#xe0067;&#xe0062;&#xe0065;&#xe006e;&#xe0067;&#xe007f;', '&#x1f3f4;&#xe0067;&#xe0062;&#xe0073;&#xe0063;&#xe0074;&#xe007f;', '&#x1f3f4;&#xe0067;&#xe0062;&#xe0077;&#xe006c;&#xe0073;&#xe007f;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3ff;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fb;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fc;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fd;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f468;&#x1f3fe;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f469;&#x1f3fe;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;&#x1f3ff;', '&#x1f468;&#x200d;&#x1f468;&#x200d;&#x1f466;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f468;&#x200d;&#x1f467;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f468;&#x200d;&#x1f467;&#x200d;&#x1f467;', '&#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f466;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f467;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f467;&#x200d;&#x1f467;', '&#x1f469;&#x200d;&#x1f469;&#x200d;&#x1f466;&#x200d;&#x1f466;', '&#x1f469;&#x200d;&#x1f469;&#x200d;&#x1f467;&#x200d;&#x1f466;', '&#x1f469;&#x200d;&#x1f469;&#x200d;&#x1f467;&#x200d;&#x1f467;', '&#x1f468;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;', '&#x1f469;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f468;', '&#x1f469;&#x200d;&#x2764;&#xfe0f;&#x200d;&#x1f469;', '&#x1faf1;&#x1f3fb;&#x200d;&#x1faf2;&#x1f3fc;', '&#x1faf1;&#x1f3fb;&#x200d;&#x1faf2;&#x1f3fd;', '&#x1faf1;&#x1f3fb;&#x200d;&#x1faf2;&#x1f3fe;', '&#x1faf1;&#x1f3fb;&#x200d;&#x1faf2;&#x1f3ff;', '&#x1faf1;&#x1f3fc;&#x200d;&#x1faf2;&#x1f3fb;', '&#x1faf1;&#x1f3fc;&#x200d;&#x1faf2;&#x1f3fd;', '&#x1faf1;&#x1f3fc;&#x200d;&#x1faf2;&#x1f3fe;', '&#x1faf1;&#x1f3fc;&#x200d;&#x1faf2;&#x1f3ff;', '&#x1faf1;&#x1f3fd;&#x200d;&#x1faf2;&#x1f3fb;', '&#x1faf1;&#x1f3fd;&#x200d;&#x1faf2;&#x1f3fc;', '&#x1faf1;&#x1f3fd;&#x200d;&#x1faf2;&#x1f3fe;', '&#x1faf1;&#x1f3fd;&#x200d;&#x1faf2;&#x1f3ff;', '&#x1faf1;&#x1f3fe;&#x200d;&#x1faf2;&#x1f3fb;', '&#x1faf1;&#x1f3fe;&#x200d;&#x1faf2;&#x1f3fc;', '&#x1faf1;&#x1f3fe;&#x200d;&#x1faf2;&#x1f3fd;', '&#x1faf1;&#x1f3fe;&#x200d;&#x1faf2;&#x1f3ff;', '&#x1faf1;&#x1f3ff;&#x200d;&#x1faf2;&#x1f3fb;', '&#x1faf1;&#x1f3ff;&#x200d;&#x1faf2;&#x1f3fc;', '&#x1faf1;&#x1f3ff;&#x200d;&#x1faf2;&#x1f3fd;', '&#x1faf1;&#x1f3ff;&#x200d;&#x1faf2;&#x1f3fe;', '&#x1f468;&#x200d;&#x1f466;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f467;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f467;&#x200d;&#x1f467;', '&#x1f468;&#x200d;&#x1f468;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f468;&#x200d;&#x1f467;', '&#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f467;', '&#x1f469;&#x200d;&#x1f466;&#x200d;&#x1f466;', '&#x1f469;&#x200d;&#x1f467;&#x200d;&#x1f466;', '&#x1f469;&#x200d;&#x1f467;&#x200d;&#x1f467;', '&#x1f469;&#x200d;&#x1f469;&#x200d;&#x1f466;', '&#x1f469;&#x200d;&#x1f469;&#x200d;&#x1f467;', '&#x1f9d1;&#x200d;&#x1f91d;&#x200d;&#x1f9d1;', '&#x1f3c3;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c3;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c3;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c3;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c3;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c3;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c3;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c3;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c3;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c3;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c4;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c4;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c4;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c4;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c4;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c4;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c4;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c4;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c4;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c4;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f3ca;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f3ca;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f3ca;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f3ca;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f3ca;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f3ca;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f3ca;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f3ca;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f3ca;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f3ca;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cb;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cb;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cb;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cb;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cb;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cb;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cb;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cb;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cb;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cb;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cc;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cc;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cc;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cc;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cc;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cc;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cc;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cc;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cc;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cc;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f468;&#x1f3fb;&#x200d;&#x2695;&#xfe0f;', '&#x1f468;&#x1f3fb;&#x200d;&#x2696;&#xfe0f;', '&#x1f468;&#x1f3fb;&#x200d;&#x2708;&#xfe0f;', '&#x1f468;&#x1f3fc;&#x200d;&#x2695;&#xfe0f;', '&#x1f468;&#x1f3fc;&#x200d;&#x2696;&#xfe0f;', '&#x1f468;&#x1f3fc;&#x200d;&#x2708;&#xfe0f;', '&#x1f468;&#x1f3fd;&#x200d;&#x2695;&#xfe0f;', '&#x1f468;&#x1f3fd;&#x200d;&#x2696;&#xfe0f;', '&#x1f468;&#x1f3fd;&#x200d;&#x2708;&#xfe0f;', '&#x1f468;&#x1f3fe;&#x200d;&#x2695;&#xfe0f;', '&#x1f468;&#x1f3fe;&#x200d;&#x2696;&#xfe0f;', '&#x1f468;&#x1f3fe;&#x200d;&#x2708;&#xfe0f;', '&#x1f468;&#x1f3ff;&#x200d;&#x2695;&#xfe0f;', '&#x1f468;&#x1f3ff;&#x200d;&#x2696;&#xfe0f;', '&#x1f468;&#x1f3ff;&#x200d;&#x2708;&#xfe0f;', '&#x1f469;&#x1f3fb;&#x200d;&#x2695;&#xfe0f;', '&#x1f469;&#x1f3fb;&#x200d;&#x2696;&#xfe0f;', '&#x1f469;&#x1f3fb;&#x200d;&#x2708;&#xfe0f;', '&#x1f469;&#x1f3fc;&#x200d;&#x2695;&#xfe0f;', '&#x1f469;&#x1f3fc;&#x200d;&#x2696;&#xfe0f;', '&#x1f469;&#x1f3fc;&#x200d;&#x2708;&#xfe0f;', '&#x1f469;&#x1f3fd;&#x200d;&#x2695;&#xfe0f;', '&#x1f469;&#x1f3fd;&#x200d;&#x2696;&#xfe0f;', '&#x1f469;&#x1f3fd;&#x200d;&#x2708;&#xfe0f;', '&#x1f469;&#x1f3fe;&#x200d;&#x2695;&#xfe0f;', '&#x1f469;&#x1f3fe;&#x200d;&#x2696;&#xfe0f;', '&#x1f469;&#x1f3fe;&#x200d;&#x2708;&#xfe0f;', '&#x1f469;&#x1f3ff;&#x200d;&#x2695;&#xfe0f;', '&#x1f469;&#x1f3ff;&#x200d;&#x2696;&#xfe0f;', '&#x1f469;&#x1f3ff;&#x200d;&#x2708;&#xfe0f;', '&#x1f46e;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f46e;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f46e;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f46e;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f46e;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f46e;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f46e;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f46e;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f46e;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f46e;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f470;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f470;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f470;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f470;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f470;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f470;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f470;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f470;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f470;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f470;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f471;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f471;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f471;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f471;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f471;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f471;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f471;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f471;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f471;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f471;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f473;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f473;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f473;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f473;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f473;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f473;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f473;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f473;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f473;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f473;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f477;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f477;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f477;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f477;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f477;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f477;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f477;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f477;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f477;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f477;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f481;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f481;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f481;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f481;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f481;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f481;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f481;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f481;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f481;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f481;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f482;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f482;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f482;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f482;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f482;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f482;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f482;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f482;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f482;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f482;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f486;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f486;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f486;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f486;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f486;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f486;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f486;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f486;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f486;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f486;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f487;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f487;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f487;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f487;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f487;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f487;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f487;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f487;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f487;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f487;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f574;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f574;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f574;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f574;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f574;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f574;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f574;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f574;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f574;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f574;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f575;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f575;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f575;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f575;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f575;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f575;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f575;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f575;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f575;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f575;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f645;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f645;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f645;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f645;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f645;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f645;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f645;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f645;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f645;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f645;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f646;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f646;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f646;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f646;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f646;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f646;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f646;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f646;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f646;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f646;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f647;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f647;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f647;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f647;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f647;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f647;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f647;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f647;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f647;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f647;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f64b;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f64b;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f64b;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f64b;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f64b;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f64b;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f64b;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f64b;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f64b;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f64b;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f64d;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f64d;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f64d;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f64d;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f64d;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f64d;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f64d;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f64d;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f64d;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f64d;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f64e;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f64e;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f64e;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f64e;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f64e;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f64e;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f64e;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f64e;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f64e;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f64e;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f6a3;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f6a3;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f6a3;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f6a3;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f6a3;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f6a3;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f6a3;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f6a3;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f6a3;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f6a3;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b4;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b4;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b4;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b4;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b4;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b4;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b4;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b4;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b4;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b4;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b5;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b5;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b5;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b5;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b5;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b5;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b5;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b5;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b5;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b5;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b6;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b6;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b6;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b6;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b6;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b6;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b6;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b6;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b6;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b6;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f926;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f926;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f926;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f926;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f926;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f926;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f926;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f926;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f926;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f926;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f935;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f935;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f935;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f935;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f935;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f935;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f935;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f935;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f935;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f935;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f937;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f937;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f937;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f937;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f937;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f937;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f937;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f937;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f937;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f937;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f938;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f938;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f938;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f938;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f938;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f938;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f938;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f938;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f938;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f938;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f939;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f939;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f939;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f939;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f939;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f939;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f939;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f939;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f939;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f939;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f93d;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f93d;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f93d;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f93d;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f93d;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f93d;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f93d;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f93d;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f93d;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f93d;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f93e;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f93e;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f93e;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f93e;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f93e;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f93e;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f93e;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f93e;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f93e;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f93e;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b8;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b8;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b8;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b8;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b8;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b8;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b8;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b8;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b8;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b8;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b9;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b9;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b9;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b9;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b9;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b9;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b9;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b9;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b9;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b9;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cd;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cd;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cd;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cd;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cd;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cd;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cd;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cd;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cd;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cd;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9ce;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9ce;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9ce;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9ce;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9ce;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9ce;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9ce;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9ce;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9ce;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9ce;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cf;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cf;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cf;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cf;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cf;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cf;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cf;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cf;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cf;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cf;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2695;&#xfe0f;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2696;&#xfe0f;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x2708;&#xfe0f;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2695;&#xfe0f;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2696;&#xfe0f;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x2708;&#xfe0f;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2695;&#xfe0f;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2696;&#xfe0f;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x2708;&#xfe0f;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2695;&#xfe0f;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2696;&#xfe0f;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x2708;&#xfe0f;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2695;&#xfe0f;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2696;&#xfe0f;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x2708;&#xfe0f;', '&#x1f9d4;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d4;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d4;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d4;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d4;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d4;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d4;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d4;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d4;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d4;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d6;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d6;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d6;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d6;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d6;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d6;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d6;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d6;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d6;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d6;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d7;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d7;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d7;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d7;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d7;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d7;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d7;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d7;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d7;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d7;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d8;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d8;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d8;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d8;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d8;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d8;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d8;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d8;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d8;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d8;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d9;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d9;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d9;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d9;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d9;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d9;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d9;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d9;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d9;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d9;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9da;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9da;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9da;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9da;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9da;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9da;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9da;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9da;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9da;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9da;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9db;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9db;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9db;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9db;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9db;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9db;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9db;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9db;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9db;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9db;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dc;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dc;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dc;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dc;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dc;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dc;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dc;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dc;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dc;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dc;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dd;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dd;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dd;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dd;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dd;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dd;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dd;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dd;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dd;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dd;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cb;&#xfe0f;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cb;&#xfe0f;&#x200d;&#x2642;&#xfe0f;', '&#x1f3cc;&#xfe0f;&#x200d;&#x2640;&#xfe0f;', '&#x1f3cc;&#xfe0f;&#x200d;&#x2642;&#xfe0f;', '&#x1f3f3;&#xfe0f;&#x200d;&#x26a7;&#xfe0f;', '&#x1f574;&#xfe0f;&#x200d;&#x2640;&#xfe0f;', '&#x1f574;&#xfe0f;&#x200d;&#x2642;&#xfe0f;', '&#x1f575;&#xfe0f;&#x200d;&#x2640;&#xfe0f;', '&#x1f575;&#xfe0f;&#x200d;&#x2642;&#xfe0f;', '&#x26f9;&#x1f3fb;&#x200d;&#x2640;&#xfe0f;', '&#x26f9;&#x1f3fb;&#x200d;&#x2642;&#xfe0f;', '&#x26f9;&#x1f3fc;&#x200d;&#x2640;&#xfe0f;', '&#x26f9;&#x1f3fc;&#x200d;&#x2642;&#xfe0f;', '&#x26f9;&#x1f3fd;&#x200d;&#x2640;&#xfe0f;', '&#x26f9;&#x1f3fd;&#x200d;&#x2642;&#xfe0f;', '&#x26f9;&#x1f3fe;&#x200d;&#x2640;&#xfe0f;', '&#x26f9;&#x1f3fe;&#x200d;&#x2642;&#xfe0f;', '&#x26f9;&#x1f3ff;&#x200d;&#x2640;&#xfe0f;', '&#x26f9;&#x1f3ff;&#x200d;&#x2642;&#xfe0f;', '&#x26f9;&#xfe0f;&#x200d;&#x2640;&#xfe0f;', '&#x26f9;&#xfe0f;&#x200d;&#x2642;&#xfe0f;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f33e;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f373;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f37c;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f384;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f393;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f3a4;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f3a8;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f3eb;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f3ed;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f4bb;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f4bc;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f527;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f52c;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f680;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f692;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9af;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9b0;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9b1;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9b2;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9b3;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9bc;', '&#x1f468;&#x1f3fb;&#x200d;&#x1f9bd;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f33e;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f373;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f37c;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f384;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f393;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f3a4;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f3a8;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f3eb;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f3ed;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f4bb;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f4bc;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f527;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f52c;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f680;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f692;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9af;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9b0;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9b1;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9b2;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9b3;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9bc;', '&#x1f468;&#x1f3fc;&#x200d;&#x1f9bd;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f33e;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f373;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f37c;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f384;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f393;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f3a4;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f3a8;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f3eb;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f3ed;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f4bb;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f4bc;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f527;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f52c;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f680;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f692;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9af;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9b0;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9b1;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9b2;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9b3;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9bc;', '&#x1f468;&#x1f3fd;&#x200d;&#x1f9bd;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f33e;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f373;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f37c;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f384;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f393;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f3a4;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f3a8;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f3eb;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f3ed;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f4bb;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f4bc;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f527;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f52c;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f680;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f692;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9af;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9b0;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9b1;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9b2;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9b3;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9bc;', '&#x1f468;&#x1f3fe;&#x200d;&#x1f9bd;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f33e;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f373;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f37c;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f384;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f393;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f3a4;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f3a8;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f3eb;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f3ed;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f4bb;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f4bc;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f527;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f52c;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f680;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f692;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9af;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9b0;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9b1;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9b2;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9b3;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9bc;', '&#x1f468;&#x1f3ff;&#x200d;&#x1f9bd;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f33e;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f373;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f37c;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f384;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f393;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f3a4;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f3a8;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f3eb;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f3ed;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f4bb;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f4bc;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f527;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f52c;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f680;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f692;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9af;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9b0;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9b1;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9b2;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9b3;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9bc;', '&#x1f469;&#x1f3fb;&#x200d;&#x1f9bd;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f33e;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f373;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f37c;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f384;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f393;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f3a4;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f3a8;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f3eb;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f3ed;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f4bb;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f4bc;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f527;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f52c;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f680;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f692;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9af;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9b0;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9b1;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9b2;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9b3;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9bc;', '&#x1f469;&#x1f3fc;&#x200d;&#x1f9bd;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f33e;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f373;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f37c;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f384;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f393;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f3a4;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f3a8;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f3eb;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f3ed;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f4bb;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f4bc;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f527;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f52c;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f680;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f692;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9af;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9b0;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9b1;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9b2;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9b3;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9bc;', '&#x1f469;&#x1f3fd;&#x200d;&#x1f9bd;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f33e;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f373;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f37c;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f384;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f393;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f3a4;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f3a8;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f3eb;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f3ed;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f4bb;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f4bc;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f527;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f52c;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f680;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f692;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9af;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9b0;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9b1;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9b2;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9b3;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9bc;', '&#x1f469;&#x1f3fe;&#x200d;&#x1f9bd;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f33e;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f373;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f37c;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f384;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f393;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f3a4;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f3a8;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f3eb;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f3ed;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f4bb;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f4bc;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f527;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f52c;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f680;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f692;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9af;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9b0;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9b1;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9b2;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9b3;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9bc;', '&#x1f469;&#x1f3ff;&#x200d;&#x1f9bd;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f33e;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f373;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f37c;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f384;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f393;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f3a4;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f3a8;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f3eb;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f3ed;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f4bb;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f4bc;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f527;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f52c;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f680;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f692;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9af;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9b0;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9b1;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9b2;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9b3;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9bc;', '&#x1f9d1;&#x1f3fb;&#x200d;&#x1f9bd;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f33e;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f373;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f37c;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f384;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f393;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f3a4;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f3a8;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f3eb;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f3ed;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f4bb;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f4bc;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f527;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f52c;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f680;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f692;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9af;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9b0;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9b1;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9b2;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9b3;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9bc;', '&#x1f9d1;&#x1f3fc;&#x200d;&#x1f9bd;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f33e;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f373;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f37c;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f384;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f393;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f3a4;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f3a8;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f3eb;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f3ed;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f4bb;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f4bc;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f527;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f52c;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f680;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f692;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9af;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9b0;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9b1;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9b2;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9b3;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9bc;', '&#x1f9d1;&#x1f3fd;&#x200d;&#x1f9bd;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f33e;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f373;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f37c;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f384;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f393;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f3a4;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f3a8;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f3eb;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f3ed;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f4bb;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f4bc;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f527;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f52c;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f680;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f692;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9af;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9b0;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9b1;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9b2;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9b3;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9bc;', '&#x1f9d1;&#x1f3fe;&#x200d;&#x1f9bd;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f33e;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f373;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f37c;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f384;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f393;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f3a4;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f3a8;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f3eb;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f3ed;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f4bb;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f4bc;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f527;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f52c;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f680;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f692;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9af;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9b0;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9b1;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9b2;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9b3;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9bc;', '&#x1f9d1;&#x1f3ff;&#x200d;&#x1f9bd;', '&#x1f3f3;&#xfe0f;&#x200d;&#x1f308;', '&#x1f636;&#x200d;&#x1f32b;&#xfe0f;', '&#x1f3c3;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c3;&#x200d;&#x2642;&#xfe0f;', '&#x1f3c4;&#x200d;&#x2640;&#xfe0f;', '&#x1f3c4;&#x200d;&#x2642;&#xfe0f;', '&#x1f3ca;&#x200d;&#x2640;&#xfe0f;', '&#x1f3ca;&#x200d;&#x2642;&#xfe0f;', '&#x1f3f4;&#x200d;&#x2620;&#xfe0f;', '&#x1f43b;&#x200d;&#x2744;&#xfe0f;', '&#x1f468;&#x200d;&#x2695;&#xfe0f;', '&#x1f468;&#x200d;&#x2696;&#xfe0f;', '&#x1f468;&#x200d;&#x2708;&#xfe0f;', '&#x1f469;&#x200d;&#x2695;&#xfe0f;', '&#x1f469;&#x200d;&#x2696;&#xfe0f;', '&#x1f469;&#x200d;&#x2708;&#xfe0f;', '&#x1f46e;&#x200d;&#x2640;&#xfe0f;', '&#x1f46e;&#x200d;&#x2642;&#xfe0f;', '&#x1f46f;&#x200d;&#x2640;&#xfe0f;', '&#x1f46f;&#x200d;&#x2642;&#xfe0f;', '&#x1f470;&#x200d;&#x2640;&#xfe0f;', '&#x1f470;&#x200d;&#x2642;&#xfe0f;', '&#x1f471;&#x200d;&#x2640;&#xfe0f;', '&#x1f471;&#x200d;&#x2642;&#xfe0f;', '&#x1f473;&#x200d;&#x2640;&#xfe0f;', '&#x1f473;&#x200d;&#x2642;&#xfe0f;', '&#x1f477;&#x200d;&#x2640;&#xfe0f;', '&#x1f477;&#x200d;&#x2642;&#xfe0f;', '&#x1f481;&#x200d;&#x2640;&#xfe0f;', '&#x1f481;&#x200d;&#x2642;&#xfe0f;', '&#x1f482;&#x200d;&#x2640;&#xfe0f;', '&#x1f482;&#x200d;&#x2642;&#xfe0f;', '&#x1f486;&#x200d;&#x2640;&#xfe0f;', '&#x1f486;&#x200d;&#x2642;&#xfe0f;', '&#x1f487;&#x200d;&#x2640;&#xfe0f;', '&#x1f487;&#x200d;&#x2642;&#xfe0f;', '&#x1f645;&#x200d;&#x2640;&#xfe0f;', '&#x1f645;&#x200d;&#x2642;&#xfe0f;', '&#x1f646;&#x200d;&#x2640;&#xfe0f;', '&#x1f646;&#x200d;&#x2642;&#xfe0f;', '&#x1f647;&#x200d;&#x2640;&#xfe0f;', '&#x1f647;&#x200d;&#x2642;&#xfe0f;', '&#x1f64b;&#x200d;&#x2640;&#xfe0f;', '&#x1f64b;&#x200d;&#x2642;&#xfe0f;', '&#x1f64d;&#x200d;&#x2640;&#xfe0f;', '&#x1f64d;&#x200d;&#x2642;&#xfe0f;', '&#x1f64e;&#x200d;&#x2640;&#xfe0f;', '&#x1f64e;&#x200d;&#x2642;&#xfe0f;', '&#x1f6a3;&#x200d;&#x2640;&#xfe0f;', '&#x1f6a3;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b4;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b4;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b5;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b5;&#x200d;&#x2642;&#xfe0f;', '&#x1f6b6;&#x200d;&#x2640;&#xfe0f;', '&#x1f6b6;&#x200d;&#x2642;&#xfe0f;', '&#x1f926;&#x200d;&#x2640;&#xfe0f;', '&#x1f926;&#x200d;&#x2642;&#xfe0f;', '&#x1f935;&#x200d;&#x2640;&#xfe0f;', '&#x1f935;&#x200d;&#x2642;&#xfe0f;', '&#x1f937;&#x200d;&#x2640;&#xfe0f;', '&#x1f937;&#x200d;&#x2642;&#xfe0f;', '&#x1f938;&#x200d;&#x2640;&#xfe0f;', '&#x1f938;&#x200d;&#x2642;&#xfe0f;', '&#x1f939;&#x200d;&#x2640;&#xfe0f;', '&#x1f939;&#x200d;&#x2642;&#xfe0f;', '&#x1f93c;&#x200d;&#x2640;&#xfe0f;', '&#x1f93c;&#x200d;&#x2642;&#xfe0f;', '&#x1f93d;&#x200d;&#x2640;&#xfe0f;', '&#x1f93d;&#x200d;&#x2642;&#xfe0f;', '&#x1f93e;&#x200d;&#x2640;&#xfe0f;', '&#x1f93e;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b8;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b8;&#x200d;&#x2642;&#xfe0f;', '&#x1f9b9;&#x200d;&#x2640;&#xfe0f;', '&#x1f9b9;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9ce;&#x200d;&#x2640;&#xfe0f;', '&#x1f9ce;&#x200d;&#x2642;&#xfe0f;', '&#x1f9cf;&#x200d;&#x2640;&#xfe0f;', '&#x1f9cf;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d1;&#x200d;&#x2695;&#xfe0f;', '&#x1f9d1;&#x200d;&#x2696;&#xfe0f;', '&#x1f9d1;&#x200d;&#x2708;&#xfe0f;', '&#x1f9d4;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d4;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d6;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d6;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d7;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d7;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d8;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d8;&#x200d;&#x2642;&#xfe0f;', '&#x1f9d9;&#x200d;&#x2640;&#xfe0f;', '&#x1f9d9;&#x200d;&#x2642;&#xfe0f;', '&#x1f9da;&#x200d;&#x2640;&#xfe0f;', '&#x1f9da;&#x200d;&#x2642;&#xfe0f;', '&#x1f9db;&#x200d;&#x2640;&#xfe0f;', '&#x1f9db;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dc;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dc;&#x200d;&#x2642;&#xfe0f;', '&#x1f9dd;&#x200d;&#x2640;&#xfe0f;', '&#x1f9dd;&#x200d;&#x2642;&#xfe0f;', '&#x1f9de;&#x200d;&#x2640;&#xfe0f;', '&#x1f9de;&#x200d;&#x2642;&#xfe0f;', '&#x1f9df;&#x200d;&#x2640;&#xfe0f;', '&#x1f9df;&#x200d;&#x2642;&#xfe0f;', '&#x2764;&#xfe0f;&#x200d;&#x1f525;', '&#x2764;&#xfe0f;&#x200d;&#x1fa79;', '&#x1f415;&#x200d;&#x1f9ba;', '&#x1f441;&#x200d;&#x1f5e8;', '&#x1f468;&#x200d;&#x1f33e;', '&#x1f468;&#x200d;&#x1f373;', '&#x1f468;&#x200d;&#x1f37c;', '&#x1f468;&#x200d;&#x1f384;', '&#x1f468;&#x200d;&#x1f393;', '&#x1f468;&#x200d;&#x1f3a4;', '&#x1f468;&#x200d;&#x1f3a8;', '&#x1f468;&#x200d;&#x1f3eb;', '&#x1f468;&#x200d;&#x1f3ed;', '&#x1f468;&#x200d;&#x1f466;', '&#x1f468;&#x200d;&#x1f467;', '&#x1f468;&#x200d;&#x1f4bb;', '&#x1f468;&#x200d;&#x1f4bc;', '&#x1f468;&#x200d;&#x1f527;', '&#x1f468;&#x200d;&#x1f52c;', '&#x1f468;&#x200d;&#x1f680;', '&#x1f468;&#x200d;&#x1f692;', '&#x1f468;&#x200d;&#x1f9af;', '&#x1f468;&#x200d;&#x1f9b0;', '&#x1f468;&#x200d;&#x1f9b1;', '&#x1f468;&#x200d;&#x1f9b2;', '&#x1f468;&#x200d;&#x1f9b3;', '&#x1f468;&#x200d;&#x1f9bc;', '&#x1f468;&#x200d;&#x1f9bd;', '&#x1f469;&#x200d;&#x1f33e;', '&#x1f469;&#x200d;&#x1f373;', '&#x1f469;&#x200d;&#x1f37c;', '&#x1f469;&#x200d;&#x1f384;', '&#x1f469;&#x200d;&#x1f393;', '&#x1f469;&#x200d;&#x1f3a4;', '&#x1f469;&#x200d;&#x1f3a8;', '&#x1f469;&#x200d;&#x1f3eb;', '&#x1f469;&#x200d;&#x1f3ed;', '&#x1f469;&#x200d;&#x1f466;', '&#x1f469;&#x200d;&#x1f467;', '&#x1f469;&#x200d;&#x1f4bb;', '&#x1f469;&#x200d;&#x1f4bc;', '&#x1f469;&#x200d;&#x1f527;', '&#x1f469;&#x200d;&#x1f52c;', '&#x1f469;&#x200d;&#x1f680;', '&#x1f469;&#x200d;&#x1f692;', '&#x1f469;&#x200d;&#x1f9af;', '&#x1f469;&#x200d;&#x1f9b0;', '&#x1f469;&#x200d;&#x1f9b1;', '&#x1f469;&#x200d;&#x1f9b2;', '&#x1f469;&#x200d;&#x1f9b3;', '&#x1f469;&#x200d;&#x1f9bc;', '&#x1f469;&#x200d;&#x1f9bd;', '&#x1f62e;&#x200d;&#x1f4a8;', '&#x1f635;&#x200d;&#x1f4ab;', '&#x1f9d1;&#x200d;&#x1f33e;', '&#x1f9d1;&#x200d;&#x1f373;', '&#x1f9d1;&#x200d;&#x1f37c;', '&#x1f9d1;&#x200d;&#x1f384;', '&#x1f9d1;&#x200d;&#x1f393;', '&#x1f9d1;&#x200d;&#x1f3a4;', '&#x1f9d1;&#x200d;&#x1f3a8;', '&#x1f9d1;&#x200d;&#x1f3eb;', '&#x1f9d1;&#x200d;&#x1f3ed;', '&#x1f9d1;&#x200d;&#x1f4bb;', '&#x1f9d1;&#x200d;&#x1f4bc;', '&#x1f9d1;&#x200d;&#x1f527;', '&#x1f9d1;&#x200d;&#x1f52c;', '&#x1f9d1;&#x200d;&#x1f680;', '&#x1f9d1;&#x200d;&#x1f692;', '&#x1f9d1;&#x200d;&#x1f9af;', '&#x1f9d1;&#x200d;&#x1f9b0;', '&#x1f9d1;&#x200d;&#x1f9b1;', '&#x1f9d1;&#x200d;&#x1f9b2;', '&#x1f9d1;&#x200d;&#x1f9b3;', '&#x1f9d1;&#x200d;&#x1f9bc;', '&#x1f9d1;&#x200d;&#x1f9bd;', '&#x1f408;&#x200d;&#x2b1b;', '&#x1f1e6;&#x1f1e8;', '&#x1f1e6;&#x1f1e9;', '&#x1f1e6;&#x1f1ea;', '&#x1f1e6;&#x1f1eb;', '&#x1f1e6;&#x1f1ec;', '&#x1f1e6;&#x1f1ee;', '&#x1f1e6;&#x1f1f1;', '&#x1f1e6;&#x1f1f2;', '&#x1f1e6;&#x1f1f4;', '&#x1f1e6;&#x1f1f6;', '&#x1f1e6;&#x1f1f7;', '&#x1f1e6;&#x1f1f8;', '&#x1f1e6;&#x1f1f9;', '&#x1f1e6;&#x1f1fa;', '&#x1f1e6;&#x1f1fc;', '&#x1f1e6;&#x1f1fd;', '&#x1f1e6;&#x1f1ff;', '&#x1f1e7;&#x1f1e6;', '&#x1f1e7;&#x1f1e7;', '&#x1f1e7;&#x1f1e9;', '&#x1f1e7;&#x1f1ea;', '&#x1f1e7;&#x1f1eb;', '&#x1f1e7;&#x1f1ec;', '&#x1f1e7;&#x1f1ed;', '&#x1f1e7;&#x1f1ee;', '&#x1f1e7;&#x1f1ef;', '&#x1f1e7;&#x1f1f1;', '&#x1f1e7;&#x1f1f2;', '&#x1f1e7;&#x1f1f3;', '&#x1f1e7;&#x1f1f4;', '&#x1f1e7;&#x1f1f6;', '&#x1f1e7;&#x1f1f7;', '&#x1f1e7;&#x1f1f8;', '&#x1f1e7;&#x1f1f9;', '&#x1f1e7;&#x1f1fb;', '&#x1f1e7;&#x1f1fc;', '&#x1f1e7;&#x1f1fe;', '&#x1f1e7;&#x1f1ff;', '&#x1f1e8;&#x1f1e6;', '&#x1f1e8;&#x1f1e8;', '&#x1f1e8;&#x1f1e9;', '&#x1f1e8;&#x1f1eb;', '&#x1f1e8;&#x1f1ec;', '&#x1f1e8;&#x1f1ed;', '&#x1f1e8;&#x1f1ee;', '&#x1f1e8;&#x1f1f0;', '&#x1f1e8;&#x1f1f1;', '&#x1f1e8;&#x1f1f2;', '&#x1f1e8;&#x1f1f3;', '&#x1f1e8;&#x1f1f4;', '&#x1f1e8;&#x1f1f5;', '&#x1f1e8;&#x1f1f7;', '&#x1f1e8;&#x1f1fa;', '&#x1f1e8;&#x1f1fb;', '&#x1f1e8;&#x1f1fc;', '&#x1f1e8;&#x1f1fd;', '&#x1f1e8;&#x1f1fe;', '&#x1f1e8;&#x1f1ff;', '&#x1f1e9;&#x1f1ea;', '&#x1f1e9;&#x1f1ec;', '&#x1f1e9;&#x1f1ef;', '&#x1f1e9;&#x1f1f0;', '&#x1f1e9;&#x1f1f2;', '&#x1f1e9;&#x1f1f4;', '&#x1f1e9;&#x1f1ff;', '&#x1f1ea;&#x1f1e6;', '&#x1f1ea;&#x1f1e8;', '&#x1f1ea;&#x1f1ea;', '&#x1f1ea;&#x1f1ec;', '&#x1f1ea;&#x1f1ed;', '&#x1f1ea;&#x1f1f7;', '&#x1f1ea;&#x1f1f8;', '&#x1f1ea;&#x1f1f9;', '&#x1f1ea;&#x1f1fa;', '&#x1f1eb;&#x1f1ee;', '&#x1f1eb;&#x1f1ef;', '&#x1f1eb;&#x1f1f0;', '&#x1f1eb;&#x1f1f2;', '&#x1f1eb;&#x1f1f4;', '&#x1f1eb;&#x1f1f7;', '&#x1f1ec;&#x1f1e6;', '&#x1f1ec;&#x1f1e7;', '&#x1f1ec;&#x1f1e9;', '&#x1f1ec;&#x1f1ea;', '&#x1f1ec;&#x1f1eb;', '&#x1f1ec;&#x1f1ec;', '&#x1f1ec;&#x1f1ed;', '&#x1f1ec;&#x1f1ee;', '&#x1f1ec;&#x1f1f1;', '&#x1f1ec;&#x1f1f2;', '&#x1f1ec;&#x1f1f3;', '&#x1f1ec;&#x1f1f5;', '&#x1f1ec;&#x1f1f6;', '&#x1f1ec;&#x1f1f7;', '&#x1f1ec;&#x1f1f8;', '&#x1f1ec;&#x1f1f9;', '&#x1f1ec;&#x1f1fa;', '&#x1f1ec;&#x1f1fc;', '&#x1f1ec;&#x1f1fe;', '&#x1f1ed;&#x1f1f0;', '&#x1f1ed;&#x1f1f2;', '&#x1f1ed;&#x1f1f3;', '&#x1f1ed;&#x1f1f7;', '&#x1f1ed;&#x1f1f9;', '&#x1f1ed;&#x1f1fa;', '&#x1f1ee;&#x1f1e8;', '&#x1f1ee;&#x1f1e9;', '&#x1f1ee;&#x1f1ea;', '&#x1f1ee;&#x1f1f1;', '&#x1f1ee;&#x1f1f2;', '&#x1f1ee;&#x1f1f3;', '&#x1f1ee;&#x1f1f4;', '&#x1f1ee;&#x1f1f6;', '&#x1f1ee;&#x1f1f7;', '&#x1f1ee;&#x1f1f8;', '&#x1f1ee;&#x1f1f9;', '&#x1f1ef;&#x1f1ea;', '&#x1f1ef;&#x1f1f2;', '&#x1f1ef;&#x1f1f4;', '&#x1f1ef;&#x1f1f5;', '&#x1f1f0;&#x1f1ea;', '&#x1f1f0;&#x1f1ec;', '&#x1f1f0;&#x1f1ed;', '&#x1f1f0;&#x1f1ee;', '&#x1f1f0;&#x1f1f2;', '&#x1f1f0;&#x1f1f3;', '&#x1f1f0;&#x1f1f5;', '&#x1f1f0;&#x1f1f7;', '&#x1f1f0;&#x1f1fc;', '&#x1f1f0;&#x1f1fe;', '&#x1f1f0;&#x1f1ff;', '&#x1f1f1;&#x1f1e6;', '&#x1f1f1;&#x1f1e7;', '&#x1f1f1;&#x1f1e8;', '&#x1f1f1;&#x1f1ee;', '&#x1f1f1;&#x1f1f0;', '&#x1f1f1;&#x1f1f7;', '&#x1f1f1;&#x1f1f8;', '&#x1f1f1;&#x1f1f9;', '&#x1f1f1;&#x1f1fa;', '&#x1f1f1;&#x1f1fb;', '&#x1f1f1;&#x1f1fe;', '&#x1f1f2;&#x1f1e6;', '&#x1f1f2;&#x1f1e8;', '&#x1f1f2;&#x1f1e9;', '&#x1f1f2;&#x1f1ea;', '&#x1f1f2;&#x1f1eb;', '&#x1f1f2;&#x1f1ec;', '&#x1f1f2;&#x1f1ed;', '&#x1f1f2;&#x1f1f0;', '&#x1f1f2;&#x1f1f1;', '&#x1f1f2;&#x1f1f2;', '&#x1f1f2;&#x1f1f3;', '&#x1f1f2;&#x1f1f4;', '&#x1f1f2;&#x1f1f5;', '&#x1f1f2;&#x1f1f6;', '&#x1f1f2;&#x1f1f7;', '&#x1f1f2;&#x1f1f8;', '&#x1f1f2;&#x1f1f9;', '&#x1f1f2;&#x1f1fa;', '&#x1f1f2;&#x1f1fb;', '&#x1f1f2;&#x1f1fc;', '&#x1f1f2;&#x1f1fd;', '&#x1f1f2;&#x1f1fe;', '&#x1f1f2;&#x1f1ff;', '&#x1f1f3;&#x1f1e6;', '&#x1f1f3;&#x1f1e8;', '&#x1f1f3;&#x1f1ea;', '&#x1f1f3;&#x1f1eb;', '&#x1f1f3;&#x1f1ec;', '&#x1f1f3;&#x1f1ee;', '&#x1f1f3;&#x1f1f1;', '&#x1f1f3;&#x1f1f4;', '&#x1f1f3;&#x1f1f5;', '&#x1f1f3;&#x1f1f7;', '&#x1f1f3;&#x1f1fa;', '&#x1f1f3;&#x1f1ff;', '&#x1f1f4;&#x1f1f2;', '&#x1f1f5;&#x1f1e6;', '&#x1f1f5;&#x1f1ea;', '&#x1f1f5;&#x1f1eb;', '&#x1f1f5;&#x1f1ec;', '&#x1f1f5;&#x1f1ed;', '&#x1f1f5;&#x1f1f0;', '&#x1f1f5;&#x1f1f1;', '&#x1f1f5;&#x1f1f2;', '&#x1f1f5;&#x1f1f3;', '&#x1f1f5;&#x1f1f7;', '&#x1f1f5;&#x1f1f8;', '&#x1f1f5;&#x1f1f9;', '&#x1f1f5;&#x1f1fc;', '&#x1f1f5;&#x1f1fe;', '&#x1f1f6;&#x1f1e6;', '&#x1f1f7;&#x1f1ea;', '&#x1f1f7;&#x1f1f4;', '&#x1f1f7;&#x1f1f8;', '&#x1f1f7;&#x1f1fa;', '&#x1f1f7;&#x1f1fc;', '&#x1f1f8;&#x1f1e6;', '&#x1f1f8;&#x1f1e7;', '&#x1f1f8;&#x1f1e8;', '&#x1f1f8;&#x1f1e9;', '&#x1f1f8;&#x1f1ea;', '&#x1f1f8;&#x1f1ec;', '&#x1f1f8;&#x1f1ed;', '&#x1f1f8;&#x1f1ee;', '&#x1f1f8;&#x1f1ef;', '&#x1f1f8;&#x1f1f0;', '&#x1f1f8;&#x1f1f1;', '&#x1f1f8;&#x1f1f2;', '&#x1f1f8;&#x1f1f3;', '&#x1f1f8;&#x1f1f4;', '&#x1f1f8;&#x1f1f7;', '&#x1f1f8;&#x1f1f8;', '&#x1f1f8;&#x1f1f9;', '&#x1f1f8;&#x1f1fb;', '&#x1f1f8;&#x1f1fd;', '&#x1f1f8;&#x1f1fe;', '&#x1f1f8;&#x1f1ff;', '&#x1f1f9;&#x1f1e6;', '&#x1f1f9;&#x1f1e8;', '&#x1f1f9;&#x1f1e9;', '&#x1f1f9;&#x1f1eb;', '&#x1f1f9;&#x1f1ec;', '&#x1f1f9;&#x1f1ed;', '&#x1f1f9;&#x1f1ef;', '&#x1f1f9;&#x1f1f0;', '&#x1f1f9;&#x1f1f1;', '&#x1f1f9;&#x1f1f2;', '&#x1f1f9;&#x1f1f3;', '&#x1f1f9;&#x1f1f4;', '&#x1f1f9;&#x1f1f7;', '&#x1f1f9;&#x1f1f9;', '&#x1f1f9;&#x1f1fb;', '&#x1f1f9;&#x1f1fc;', '&#x1f1f9;&#x1f1ff;', '&#x1f1fa;&#x1f1e6;', '&#x1f1fa;&#x1f1ec;', '&#x1f1fa;&#x1f1f2;', '&#x1f1fa;&#x1f1f3;', '&#x1f1fa;&#x1f1f8;', '&#x1f1fa;&#x1f1fe;', '&#x1f1fa;&#x1f1ff;', '&#x1f1fb;&#x1f1e6;', '&#x1f1fb;&#x1f1e8;', '&#x1f1fb;&#x1f1ea;', '&#x1f1fb;&#x1f1ec;', '&#x1f1fb;&#x1f1ee;', '&#x1f1fb;&#x1f1f3;', '&#x1f1fb;&#x1f1fa;', '&#x1f1fc;&#x1f1eb;', '&#x1f1fc;&#x1f1f8;', '&#x1f1fd;&#x1f1f0;', '&#x1f1fe;&#x1f1ea;', '&#x1f1fe;&#x1f1f9;', '&#x1f1ff;&#x1f1e6;', '&#x1f1ff;&#x1f1f2;', '&#x1f1ff;&#x1f1fc;', '&#x1f385;&#x1f3fb;', '&#x1f385;&#x1f3fc;', '&#x1f385;&#x1f3fd;', '&#x1f385;&#x1f3fe;', '&#x1f385;&#x1f3ff;', '&#x1f3c2;&#x1f3fb;', '&#x1f3c2;&#x1f3fc;', '&#x1f3c2;&#x1f3fd;', '&#x1f3c2;&#x1f3fe;', '&#x1f3c2;&#x1f3ff;', '&#x1f3c3;&#x1f3fb;', '&#x1f3c3;&#x1f3fc;', '&#x1f3c3;&#x1f3fd;', '&#x1f3c3;&#x1f3fe;', '&#x1f3c3;&#x1f3ff;', '&#x1f3c4;&#x1f3fb;', '&#x1f3c4;&#x1f3fc;', '&#x1f3c4;&#x1f3fd;', '&#x1f3c4;&#x1f3fe;', '&#x1f3c4;&#x1f3ff;', '&#x1f3c7;&#x1f3fb;', '&#x1f3c7;&#x1f3fc;', '&#x1f3c7;&#x1f3fd;', '&#x1f3c7;&#x1f3fe;', '&#x1f3c7;&#x1f3ff;', '&#x1f3ca;&#x1f3fb;', '&#x1f3ca;&#x1f3fc;', '&#x1f3ca;&#x1f3fd;', '&#x1f3ca;&#x1f3fe;', '&#x1f3ca;&#x1f3ff;', '&#x1f3cb;&#x1f3fb;', '&#x1f3cb;&#x1f3fc;', '&#x1f3cb;&#x1f3fd;', '&#x1f3cb;&#x1f3fe;', '&#x1f3cb;&#x1f3ff;', '&#x1f3cc;&#x1f3fb;', '&#x1f3cc;&#x1f3fc;', '&#x1f3cc;&#x1f3fd;', '&#x1f3cc;&#x1f3fe;', '&#x1f3cc;&#x1f3ff;', '&#x1f442;&#x1f3fb;', '&#x1f442;&#x1f3fc;', '&#x1f442;&#x1f3fd;', '&#x1f442;&#x1f3fe;', '&#x1f442;&#x1f3ff;', '&#x1f443;&#x1f3fb;', '&#x1f443;&#x1f3fc;', '&#x1f443;&#x1f3fd;', '&#x1f443;&#x1f3fe;', '&#x1f443;&#x1f3ff;', '&#x1f446;&#x1f3fb;', '&#x1f446;&#x1f3fc;', '&#x1f446;&#x1f3fd;', '&#x1f446;&#x1f3fe;', '&#x1f446;&#x1f3ff;', '&#x1f447;&#x1f3fb;', '&#x1f447;&#x1f3fc;', '&#x1f447;&#x1f3fd;', '&#x1f447;&#x1f3fe;', '&#x1f447;&#x1f3ff;', '&#x1f448;&#x1f3fb;', '&#x1f448;&#x1f3fc;', '&#x1f448;&#x1f3fd;', '&#x1f448;&#x1f3fe;', '&#x1f448;&#x1f3ff;', '&#x1f449;&#x1f3fb;', '&#x1f449;&#x1f3fc;', '&#x1f449;&#x1f3fd;', '&#x1f449;&#x1f3fe;', '&#x1f449;&#x1f3ff;', '&#x1f44a;&#x1f3fb;', '&#x1f44a;&#x1f3fc;', '&#x1f44a;&#x1f3fd;', '&#x1f44a;&#x1f3fe;', '&#x1f44a;&#x1f3ff;', '&#x1f44b;&#x1f3fb;', '&#x1f44b;&#x1f3fc;', '&#x1f44b;&#x1f3fd;', '&#x1f44b;&#x1f3fe;', '&#x1f44b;&#x1f3ff;', '&#x1f44c;&#x1f3fb;', '&#x1f44c;&#x1f3fc;', '&#x1f44c;&#x1f3fd;', '&#x1f44c;&#x1f3fe;', '&#x1f44c;&#x1f3ff;', '&#x1f44d;&#x1f3fb;', '&#x1f44d;&#x1f3fc;', '&#x1f44d;&#x1f3fd;', '&#x1f44d;&#x1f3fe;', '&#x1f44d;&#x1f3ff;', '&#x1f44e;&#x1f3fb;', '&#x1f44e;&#x1f3fc;', '&#x1f44e;&#x1f3fd;', '&#x1f44e;&#x1f3fe;', '&#x1f44e;&#x1f3ff;', '&#x1f44f;&#x1f3fb;', '&#x1f44f;&#x1f3fc;', '&#x1f44f;&#x1f3fd;', '&#x1f44f;&#x1f3fe;', '&#x1f44f;&#x1f3ff;', '&#x1f450;&#x1f3fb;', '&#x1f450;&#x1f3fc;', '&#x1f450;&#x1f3fd;', '&#x1f450;&#x1f3fe;', '&#x1f450;&#x1f3ff;', '&#x1f466;&#x1f3fb;', '&#x1f466;&#x1f3fc;', '&#x1f466;&#x1f3fd;', '&#x1f466;&#x1f3fe;', '&#x1f466;&#x1f3ff;', '&#x1f467;&#x1f3fb;', '&#x1f467;&#x1f3fc;', '&#x1f467;&#x1f3fd;', '&#x1f467;&#x1f3fe;', '&#x1f467;&#x1f3ff;', '&#x1f468;&#x1f3fb;', '&#x1f468;&#x1f3fc;', '&#x1f468;&#x1f3fd;', '&#x1f468;&#x1f3fe;', '&#x1f468;&#x1f3ff;', '&#x1f469;&#x1f3fb;', '&#x1f469;&#x1f3fc;', '&#x1f469;&#x1f3fd;', '&#x1f469;&#x1f3fe;', '&#x1f469;&#x1f3ff;', '&#x1f46b;&#x1f3fb;', '&#x1f46b;&#x1f3fc;', '&#x1f46b;&#x1f3fd;', '&#x1f46b;&#x1f3fe;', '&#x1f46b;&#x1f3ff;', '&#x1f46c;&#x1f3fb;', '&#x1f46c;&#x1f3fc;', '&#x1f46c;&#x1f3fd;', '&#x1f46c;&#x1f3fe;', '&#x1f46c;&#x1f3ff;', '&#x1f46d;&#x1f3fb;', '&#x1f46d;&#x1f3fc;', '&#x1f46d;&#x1f3fd;', '&#x1f46d;&#x1f3fe;', '&#x1f46d;&#x1f3ff;', '&#x1f46e;&#x1f3fb;', '&#x1f46e;&#x1f3fc;', '&#x1f46e;&#x1f3fd;', '&#x1f46e;&#x1f3fe;', '&#x1f46e;&#x1f3ff;', '&#x1f470;&#x1f3fb;', '&#x1f470;&#x1f3fc;', '&#x1f470;&#x1f3fd;', '&#x1f470;&#x1f3fe;', '&#x1f470;&#x1f3ff;', '&#x1f471;&#x1f3fb;', '&#x1f471;&#x1f3fc;', '&#x1f471;&#x1f3fd;', '&#x1f471;&#x1f3fe;', '&#x1f471;&#x1f3ff;', '&#x1f472;&#x1f3fb;', '&#x1f472;&#x1f3fc;', '&#x1f472;&#x1f3fd;', '&#x1f472;&#x1f3fe;', '&#x1f472;&#x1f3ff;', '&#x1f473;&#x1f3fb;', '&#x1f473;&#x1f3fc;', '&#x1f473;&#x1f3fd;', '&#x1f473;&#x1f3fe;', '&#x1f473;&#x1f3ff;', '&#x1f474;&#x1f3fb;', '&#x1f474;&#x1f3fc;', '&#x1f474;&#x1f3fd;', '&#x1f474;&#x1f3fe;', '&#x1f474;&#x1f3ff;', '&#x1f475;&#x1f3fb;', '&#x1f475;&#x1f3fc;', '&#x1f475;&#x1f3fd;', '&#x1f475;&#x1f3fe;', '&#x1f475;&#x1f3ff;', '&#x1f476;&#x1f3fb;', '&#x1f476;&#x1f3fc;', '&#x1f476;&#x1f3fd;', '&#x1f476;&#x1f3fe;', '&#x1f476;&#x1f3ff;', '&#x1f477;&#x1f3fb;', '&#x1f477;&#x1f3fc;', '&#x1f477;&#x1f3fd;', '&#x1f477;&#x1f3fe;', '&#x1f477;&#x1f3ff;', '&#x1f478;&#x1f3fb;', '&#x1f478;&#x1f3fc;', '&#x1f478;&#x1f3fd;', '&#x1f478;&#x1f3fe;', '&#x1f478;&#x1f3ff;', '&#x1f47c;&#x1f3fb;', '&#x1f47c;&#x1f3fc;', '&#x1f47c;&#x1f3fd;', '&#x1f47c;&#x1f3fe;', '&#x1f47c;&#x1f3ff;', '&#x1f481;&#x1f3fb;', '&#x1f481;&#x1f3fc;', '&#x1f481;&#x1f3fd;', '&#x1f481;&#x1f3fe;', '&#x1f481;&#x1f3ff;', '&#x1f482;&#x1f3fb;', '&#x1f482;&#x1f3fc;', '&#x1f482;&#x1f3fd;', '&#x1f482;&#x1f3fe;', '&#x1f482;&#x1f3ff;', '&#x1f483;&#x1f3fb;', '&#x1f483;&#x1f3fc;', '&#x1f483;&#x1f3fd;', '&#x1f483;&#x1f3fe;', '&#x1f483;&#x1f3ff;', '&#x1f485;&#x1f3fb;', '&#x1f485;&#x1f3fc;', '&#x1f485;&#x1f3fd;', '&#x1f485;&#x1f3fe;', '&#x1f485;&#x1f3ff;', '&#x1f486;&#x1f3fb;', '&#x1f486;&#x1f3fc;', '&#x1f486;&#x1f3fd;', '&#x1f486;&#x1f3fe;', '&#x1f486;&#x1f3ff;', '&#x1f487;&#x1f3fb;', '&#x1f487;&#x1f3fc;', '&#x1f487;&#x1f3fd;', '&#x1f487;&#x1f3fe;', '&#x1f487;&#x1f3ff;', '&#x1f48f;&#x1f3fb;', '&#x1f48f;&#x1f3fc;', '&#x1f48f;&#x1f3fd;', '&#x1f48f;&#x1f3fe;', '&#x1f48f;&#x1f3ff;', '&#x1f491;&#x1f3fb;', '&#x1f491;&#x1f3fc;', '&#x1f491;&#x1f3fd;', '&#x1f491;&#x1f3fe;', '&#x1f491;&#x1f3ff;', '&#x1f4aa;&#x1f3fb;', '&#x1f4aa;&#x1f3fc;', '&#x1f4aa;&#x1f3fd;', '&#x1f4aa;&#x1f3fe;', '&#x1f4aa;&#x1f3ff;', '&#x1f574;&#x1f3fb;', '&#x1f574;&#x1f3fc;', '&#x1f574;&#x1f3fd;', '&#x1f574;&#x1f3fe;', '&#x1f574;&#x1f3ff;', '&#x1f575;&#x1f3fb;', '&#x1f575;&#x1f3fc;', '&#x1f575;&#x1f3fd;', '&#x1f575;&#x1f3fe;', '&#x1f575;&#x1f3ff;', '&#x1f57a;&#x1f3fb;', '&#x1f57a;&#x1f3fc;', '&#x1f57a;&#x1f3fd;', '&#x1f57a;&#x1f3fe;', '&#x1f57a;&#x1f3ff;', '&#x1f590;&#x1f3fb;', '&#x1f590;&#x1f3fc;', '&#x1f590;&#x1f3fd;', '&#x1f590;&#x1f3fe;', '&#x1f590;&#x1f3ff;', '&#x1f595;&#x1f3fb;', '&#x1f595;&#x1f3fc;', '&#x1f595;&#x1f3fd;', '&#x1f595;&#x1f3fe;', '&#x1f595;&#x1f3ff;', '&#x1f596;&#x1f3fb;', '&#x1f596;&#x1f3fc;', '&#x1f596;&#x1f3fd;', '&#x1f596;&#x1f3fe;', '&#x1f596;&#x1f3ff;', '&#x1f645;&#x1f3fb;', '&#x1f645;&#x1f3fc;', '&#x1f645;&#x1f3fd;', '&#x1f645;&#x1f3fe;', '&#x1f645;&#x1f3ff;', '&#x1f646;&#x1f3fb;', '&#x1f646;&#x1f3fc;', '&#x1f646;&#x1f3fd;', '&#x1f646;&#x1f3fe;', '&#x1f646;&#x1f3ff;', '&#x1f647;&#x1f3fb;', '&#x1f647;&#x1f3fc;', '&#x1f647;&#x1f3fd;', '&#x1f647;&#x1f3fe;', '&#x1f647;&#x1f3ff;', '&#x1f64b;&#x1f3fb;', '&#x1f64b;&#x1f3fc;', '&#x1f64b;&#x1f3fd;', '&#x1f64b;&#x1f3fe;', '&#x1f64b;&#x1f3ff;', '&#x1f64c;&#x1f3fb;', '&#x1f64c;&#x1f3fc;', '&#x1f64c;&#x1f3fd;', '&#x1f64c;&#x1f3fe;', '&#x1f64c;&#x1f3ff;', '&#x1f64d;&#x1f3fb;', '&#x1f64d;&#x1f3fc;', '&#x1f64d;&#x1f3fd;', '&#x1f64d;&#x1f3fe;', '&#x1f64d;&#x1f3ff;', '&#x1f64e;&#x1f3fb;', '&#x1f64e;&#x1f3fc;', '&#x1f64e;&#x1f3fd;', '&#x1f64e;&#x1f3fe;', '&#x1f64e;&#x1f3ff;', '&#x1f64f;&#x1f3fb;', '&#x1f64f;&#x1f3fc;', '&#x1f64f;&#x1f3fd;', '&#x1f64f;&#x1f3fe;', '&#x1f64f;&#x1f3ff;', '&#x1f6a3;&#x1f3fb;', '&#x1f6a3;&#x1f3fc;', '&#x1f6a3;&#x1f3fd;', '&#x1f6a3;&#x1f3fe;', '&#x1f6a3;&#x1f3ff;', '&#x1f6b4;&#x1f3fb;', '&#x1f6b4;&#x1f3fc;', '&#x1f6b4;&#x1f3fd;', '&#x1f6b4;&#x1f3fe;', '&#x1f6b4;&#x1f3ff;', '&#x1f6b5;&#x1f3fb;', '&#x1f6b5;&#x1f3fc;', '&#x1f6b5;&#x1f3fd;', '&#x1f6b5;&#x1f3fe;', '&#x1f6b5;&#x1f3ff;', '&#x1f6b6;&#x1f3fb;', '&#x1f6b6;&#x1f3fc;', '&#x1f6b6;&#x1f3fd;', '&#x1f6b6;&#x1f3fe;', '&#x1f6b6;&#x1f3ff;', '&#x1f6c0;&#x1f3fb;', '&#x1f6c0;&#x1f3fc;', '&#x1f6c0;&#x1f3fd;', '&#x1f6c0;&#x1f3fe;', '&#x1f6c0;&#x1f3ff;', '&#x1f6cc;&#x1f3fb;', '&#x1f6cc;&#x1f3fc;', '&#x1f6cc;&#x1f3fd;', '&#x1f6cc;&#x1f3fe;', '&#x1f6cc;&#x1f3ff;', '&#x1f90c;&#x1f3fb;', '&#x1f90c;&#x1f3fc;', '&#x1f90c;&#x1f3fd;', '&#x1f90c;&#x1f3fe;', '&#x1f90c;&#x1f3ff;', '&#x1f90f;&#x1f3fb;', '&#x1f90f;&#x1f3fc;', '&#x1f90f;&#x1f3fd;', '&#x1f90f;&#x1f3fe;', '&#x1f90f;&#x1f3ff;', '&#x1f918;&#x1f3fb;', '&#x1f918;&#x1f3fc;', '&#x1f918;&#x1f3fd;', '&#x1f918;&#x1f3fe;', '&#x1f918;&#x1f3ff;', '&#x1f919;&#x1f3fb;', '&#x1f919;&#x1f3fc;', '&#x1f919;&#x1f3fd;', '&#x1f919;&#x1f3fe;', '&#x1f919;&#x1f3ff;', '&#x1f91a;&#x1f3fb;', '&#x1f91a;&#x1f3fc;', '&#x1f91a;&#x1f3fd;', '&#x1f91a;&#x1f3fe;', '&#x1f91a;&#x1f3ff;', '&#x1f91b;&#x1f3fb;', '&#x1f91b;&#x1f3fc;', '&#x1f91b;&#x1f3fd;', '&#x1f91b;&#x1f3fe;', '&#x1f91b;&#x1f3ff;', '&#x1f91c;&#x1f3fb;', '&#x1f91c;&#x1f3fc;', '&#x1f91c;&#x1f3fd;', '&#x1f91c;&#x1f3fe;', '&#x1f91c;&#x1f3ff;', '&#x1f91d;&#x1f3fb;', '&#x1f91d;&#x1f3fc;', '&#x1f91d;&#x1f3fd;', '&#x1f91d;&#x1f3fe;', '&#x1f91d;&#x1f3ff;', '&#x1f91e;&#x1f3fb;', '&#x1f91e;&#x1f3fc;', '&#x1f91e;&#x1f3fd;', '&#x1f91e;&#x1f3fe;', '&#x1f91e;&#x1f3ff;', '&#x1f91f;&#x1f3fb;', '&#x1f91f;&#x1f3fc;', '&#x1f91f;&#x1f3fd;', '&#x1f91f;&#x1f3fe;', '&#x1f91f;&#x1f3ff;', '&#x1f926;&#x1f3fb;', '&#x1f926;&#x1f3fc;', '&#x1f926;&#x1f3fd;', '&#x1f926;&#x1f3fe;', '&#x1f926;&#x1f3ff;', '&#x1f930;&#x1f3fb;', '&#x1f930;&#x1f3fc;', '&#x1f930;&#x1f3fd;', '&#x1f930;&#x1f3fe;', '&#x1f930;&#x1f3ff;', '&#x1f931;&#x1f3fb;', '&#x1f931;&#x1f3fc;', '&#x1f931;&#x1f3fd;', '&#x1f931;&#x1f3fe;', '&#x1f931;&#x1f3ff;', '&#x1f932;&#x1f3fb;', '&#x1f932;&#x1f3fc;', '&#x1f932;&#x1f3fd;', '&#x1f932;&#x1f3fe;', '&#x1f932;&#x1f3ff;', '&#x1f933;&#x1f3fb;', '&#x1f933;&#x1f3fc;', '&#x1f933;&#x1f3fd;', '&#x1f933;&#x1f3fe;', '&#x1f933;&#x1f3ff;', '&#x1f934;&#x1f3fb;', '&#x1f934;&#x1f3fc;', '&#x1f934;&#x1f3fd;', '&#x1f934;&#x1f3fe;', '&#x1f934;&#x1f3ff;', '&#x1f935;&#x1f3fb;', '&#x1f935;&#x1f3fc;', '&#x1f935;&#x1f3fd;', '&#x1f935;&#x1f3fe;', '&#x1f935;&#x1f3ff;', '&#x1f936;&#x1f3fb;', '&#x1f936;&#x1f3fc;', '&#x1f936;&#x1f3fd;', '&#x1f936;&#x1f3fe;', '&#x1f936;&#x1f3ff;', '&#x1f937;&#x1f3fb;', '&#x1f937;&#x1f3fc;', '&#x1f937;&#x1f3fd;', '&#x1f937;&#x1f3fe;', '&#x1f937;&#x1f3ff;', '&#x1f938;&#x1f3fb;', '&#x1f938;&#x1f3fc;', '&#x1f938;&#x1f3fd;', '&#x1f938;&#x1f3fe;', '&#x1f938;&#x1f3ff;', '&#x1f939;&#x1f3fb;', '&#x1f939;&#x1f3fc;', '&#x1f939;&#x1f3fd;', '&#x1f939;&#x1f3fe;', '&#x1f939;&#x1f3ff;', '&#x1f93d;&#x1f3fb;', '&#x1f93d;&#x1f3fc;', '&#x1f93d;&#x1f3fd;', '&#x1f93d;&#x1f3fe;', '&#x1f93d;&#x1f3ff;', '&#x1f93e;&#x1f3fb;', '&#x1f93e;&#x1f3fc;', '&#x1f93e;&#x1f3fd;', '&#x1f93e;&#x1f3fe;', '&#x1f93e;&#x1f3ff;', '&#x1f977;&#x1f3fb;', '&#x1f977;&#x1f3fc;', '&#x1f977;&#x1f3fd;', '&#x1f977;&#x1f3fe;', '&#x1f977;&#x1f3ff;', '&#x1f9b5;&#x1f3fb;', '&#x1f9b5;&#x1f3fc;', '&#x1f9b5;&#x1f3fd;', '&#x1f9b5;&#x1f3fe;', '&#x1f9b5;&#x1f3ff;', '&#x1f9b6;&#x1f3fb;', '&#x1f9b6;&#x1f3fc;', '&#x1f9b6;&#x1f3fd;', '&#x1f9b6;&#x1f3fe;', '&#x1f9b6;&#x1f3ff;', '&#x1f9b8;&#x1f3fb;', '&#x1f9b8;&#x1f3fc;', '&#x1f9b8;&#x1f3fd;', '&#x1f9b8;&#x1f3fe;', '&#x1f9b8;&#x1f3ff;', '&#x1f9b9;&#x1f3fb;', '&#x1f9b9;&#x1f3fc;', '&#x1f9b9;&#x1f3fd;', '&#x1f9b9;&#x1f3fe;', '&#x1f9b9;&#x1f3ff;', '&#x1f9bb;&#x1f3fb;', '&#x1f9bb;&#x1f3fc;', '&#x1f9bb;&#x1f3fd;', '&#x1f9bb;&#x1f3fe;', '&#x1f9bb;&#x1f3ff;', '&#x1f9cd;&#x1f3fb;', '&#x1f9cd;&#x1f3fc;', '&#x1f9cd;&#x1f3fd;', '&#x1f9cd;&#x1f3fe;', '&#x1f9cd;&#x1f3ff;', '&#x1f9ce;&#x1f3fb;', '&#x1f9ce;&#x1f3fc;', '&#x1f9ce;&#x1f3fd;', '&#x1f9ce;&#x1f3fe;', '&#x1f9ce;&#x1f3ff;', '&#x1f9cf;&#x1f3fb;', '&#x1f9cf;&#x1f3fc;', '&#x1f9cf;&#x1f3fd;', '&#x1f9cf;&#x1f3fe;', '&#x1f9cf;&#x1f3ff;', '&#x1f9d1;&#x1f3fb;', '&#x1f9d1;&#x1f3fc;', '&#x1f9d1;&#x1f3fd;', '&#x1f9d1;&#x1f3fe;', '&#x1f9d1;&#x1f3ff;', '&#x1f9d2;&#x1f3fb;', '&#x1f9d2;&#x1f3fc;', '&#x1f9d2;&#x1f3fd;', '&#x1f9d2;&#x1f3fe;', '&#x1f9d2;&#x1f3ff;', '&#x1f9d3;&#x1f3fb;', '&#x1f9d3;&#x1f3fc;', '&#x1f9d3;&#x1f3fd;', '&#x1f9d3;&#x1f3fe;', '&#x1f9d3;&#x1f3ff;', '&#x1f9d4;&#x1f3fb;', '&#x1f9d4;&#x1f3fc;', '&#x1f9d4;&#x1f3fd;', '&#x1f9d4;&#x1f3fe;', '&#x1f9d4;&#x1f3ff;', '&#x1f9d5;&#x1f3fb;', '&#x1f9d5;&#x1f3fc;', '&#x1f9d5;&#x1f3fd;', '&#x1f9d5;&#x1f3fe;', '&#x1f9d5;&#x1f3ff;', '&#x1f9d6;&#x1f3fb;', '&#x1f9d6;&#x1f3fc;', '&#x1f9d6;&#x1f3fd;', '&#x1f9d6;&#x1f3fe;', '&#x1f9d6;&#x1f3ff;', '&#x1f9d7;&#x1f3fb;', '&#x1f9d7;&#x1f3fc;', '&#x1f9d7;&#x1f3fd;', '&#x1f9d7;&#x1f3fe;', '&#x1f9d7;&#x1f3ff;', '&#x1f9d8;&#x1f3fb;', '&#x1f9d8;&#x1f3fc;', '&#x1f9d8;&#x1f3fd;', '&#x1f9d8;&#x1f3fe;', '&#x1f9d8;&#x1f3ff;', '&#x1f9d9;&#x1f3fb;', '&#x1f9d9;&#x1f3fc;', '&#x1f9d9;&#x1f3fd;', '&#x1f9d9;&#x1f3fe;', '&#x1f9d9;&#x1f3ff;', '&#x1f9da;&#x1f3fb;', '&#x1f9da;&#x1f3fc;', '&#x1f9da;&#x1f3fd;', '&#x1f9da;&#x1f3fe;', '&#x1f9da;&#x1f3ff;', '&#x1f9db;&#x1f3fb;', '&#x1f9db;&#x1f3fc;', '&#x1f9db;&#x1f3fd;', '&#x1f9db;&#x1f3fe;', '&#x1f9db;&#x1f3ff;', '&#x1f9dc;&#x1f3fb;', '&#x1f9dc;&#x1f3fc;', '&#x1f9dc;&#x1f3fd;', '&#x1f9dc;&#x1f3fe;', '&#x1f9dc;&#x1f3ff;', '&#x1f9dd;&#x1f3fb;', '&#x1f9dd;&#x1f3fc;', '&#x1f9dd;&#x1f3fd;', '&#x1f9dd;&#x1f3fe;', '&#x1f9dd;&#x1f3ff;', '&#x1fac3;&#x1f3fb;', '&#x1fac3;&#x1f3fc;', '&#x1fac3;&#x1f3fd;', '&#x1fac3;&#x1f3fe;', '&#x1fac3;&#x1f3ff;', '&#x1fac4;&#x1f3fb;', '&#x1fac4;&#x1f3fc;', '&#x1fac4;&#x1f3fd;', '&#x1fac4;&#x1f3fe;', '&#x1fac4;&#x1f3ff;', '&#x1fac5;&#x1f3fb;', '&#x1fac5;&#x1f3fc;', '&#x1fac5;&#x1f3fd;', '&#x1fac5;&#x1f3fe;', '&#x1fac5;&#x1f3ff;', '&#x1faf0;&#x1f3fb;', '&#x1faf0;&#x1f3fc;', '&#x1faf0;&#x1f3fd;', '&#x1faf0;&#x1f3fe;', '&#x1faf0;&#x1f3ff;', '&#x1faf1;&#x1f3fb;', '&#x1faf1;&#x1f3fc;', '&#x1faf1;&#x1f3fd;', '&#x1faf1;&#x1f3fe;', '&#x1faf1;&#x1f3ff;', '&#x1faf2;&#x1f3fb;', '&#x1faf2;&#x1f3fc;', '&#x1faf2;&#x1f3fd;', '&#x1faf2;&#x1f3fe;', '&#x1faf2;&#x1f3ff;', '&#x1faf3;&#x1f3fb;', '&#x1faf3;&#x1f3fc;', '&#x1faf3;&#x1f3fd;', '&#x1faf3;&#x1f3fe;', '&#x1faf3;&#x1f3ff;', '&#x1faf4;&#x1f3fb;', '&#x1faf4;&#x1f3fc;', '&#x1faf4;&#x1f3fd;', '&#x1faf4;&#x1f3fe;', '&#x1faf4;&#x1f3ff;', '&#x1faf5;&#x1f3fb;', '&#x1faf5;&#x1f3fc;', '&#x1faf5;&#x1f3fd;', '&#x1faf5;&#x1f3fe;', '&#x1faf5;&#x1f3ff;', '&#x1faf6;&#x1f3fb;', '&#x1faf6;&#x1f3fc;', '&#x1faf6;&#x1f3fd;', '&#x1faf6;&#x1f3fe;', '&#x1faf6;&#x1f3ff;', '&#x261d;&#x1f3fb;', '&#x261d;&#x1f3fc;', '&#x261d;&#x1f3fd;', '&#x261d;&#x1f3fe;', '&#x261d;&#x1f3ff;', '&#x26f7;&#x1f3fb;', '&#x26f7;&#x1f3fc;', '&#x26f7;&#x1f3fd;', '&#x26f7;&#x1f3fe;', '&#x26f7;&#x1f3ff;', '&#x26f9;&#x1f3fb;', '&#x26f9;&#x1f3fc;', '&#x26f9;&#x1f3fd;', '&#x26f9;&#x1f3fe;', '&#x26f9;&#x1f3ff;', '&#x270a;&#x1f3fb;', '&#x270a;&#x1f3fc;', '&#x270a;&#x1f3fd;', '&#x270a;&#x1f3fe;', '&#x270a;&#x1f3ff;', '&#x270b;&#x1f3fb;', '&#x270b;&#x1f3fc;', '&#x270b;&#x1f3fd;', '&#x270b;&#x1f3fe;', '&#x270b;&#x1f3ff;', '&#x270c;&#x1f3fb;', '&#x270c;&#x1f3fc;', '&#x270c;&#x1f3fd;', '&#x270c;&#x1f3fe;', '&#x270c;&#x1f3ff;', '&#x270d;&#x1f3fb;', '&#x270d;&#x1f3fc;', '&#x270d;&#x1f3fd;', '&#x270d;&#x1f3fe;', '&#x270d;&#x1f3ff;', '&#x23;&#x20e3;', '&#x2a;&#x20e3;', '&#x30;&#x20e3;', '&#x31;&#x20e3;', '&#x32;&#x20e3;', '&#x33;&#x20e3;', '&#x34;&#x20e3;', '&#x35;&#x20e3;', '&#x36;&#x20e3;', '&#x37;&#x20e3;', '&#x38;&#x20e3;', '&#x39;&#x20e3;', '&#x1f004;', '&#x1f0cf;', '&#x1f170;', '&#x1f171;', '&#x1f17e;', '&#x1f17f;', '&#x1f18e;', '&#x1f191;', '&#x1f192;', '&#x1f193;', '&#x1f194;', '&#x1f195;', '&#x1f196;', '&#x1f197;', '&#x1f198;', '&#x1f199;', '&#x1f19a;', '&#x1f1e6;', '&#x1f1e7;', '&#x1f1e8;', '&#x1f1e9;', '&#x1f1ea;', '&#x1f1eb;', '&#x1f1ec;', '&#x1f1ed;', '&#x1f1ee;', '&#x1f1ef;', '&#x1f1f0;', '&#x1f1f1;', '&#x1f1f2;', '&#x1f1f3;', '&#x1f1f4;', '&#x1f1f5;', '&#x1f1f6;', '&#x1f1f7;', '&#x1f1f8;', '&#x1f1f9;', '&#x1f1fa;', '&#x1f1fb;', '&#x1f1fc;', '&#x1f1fd;', '&#x1f1fe;', '&#x1f1ff;', '&#x1f201;', '&#x1f202;', '&#x1f21a;', '&#x1f22f;', '&#x1f232;', '&#x1f233;', '&#x1f234;', '&#x1f235;', '&#x1f236;', '&#x1f237;', '&#x1f238;', '&#x1f239;', '&#x1f23a;', '&#x1f250;', '&#x1f251;', '&#x1f300;', '&#x1f301;', '&#x1f302;', '&#x1f303;', '&#x1f304;', '&#x1f305;', '&#x1f306;', '&#x1f307;', '&#x1f308;', '&#x1f309;', '&#x1f30a;', '&#x1f30b;', '&#x1f30c;', '&#x1f30d;', '&#x1f30e;', '&#x1f30f;', '&#x1f310;', '&#x1f311;', '&#x1f312;', '&#x1f313;', '&#x1f314;', '&#x1f315;', '&#x1f316;', '&#x1f317;', '&#x1f318;', '&#x1f319;', '&#x1f31a;', '&#x1f31b;', '&#x1f31c;', '&#x1f31d;', '&#x1f31e;', '&#x1f31f;', '&#x1f320;', '&#x1f321;', '&#x1f324;', '&#x1f325;', '&#x1f326;', '&#x1f327;', '&#x1f328;', '&#x1f329;', '&#x1f32a;', '&#x1f32b;', '&#x1f32c;', '&#x1f32d;', '&#x1f32e;', '&#x1f32f;', '&#x1f330;', '&#x1f331;', '&#x1f332;', '&#x1f333;', '&#x1f334;', '&#x1f335;', '&#x1f336;', '&#x1f337;', '&#x1f338;', '&#x1f339;', '&#x1f33a;', '&#x1f33b;', '&#x1f33c;', '&#x1f33d;', '&#x1f33e;', '&#x1f33f;', '&#x1f340;', '&#x1f341;', '&#x1f342;', '&#x1f343;', '&#x1f344;', '&#x1f345;', '&#x1f346;', '&#x1f347;', '&#x1f348;', '&#x1f349;', '&#x1f34a;', '&#x1f34b;', '&#x1f34c;', '&#x1f34d;', '&#x1f34e;', '&#x1f34f;', '&#x1f350;', '&#x1f351;', '&#x1f352;', '&#x1f353;', '&#x1f354;', '&#x1f355;', '&#x1f356;', '&#x1f357;', '&#x1f358;', '&#x1f359;', '&#x1f35a;', '&#x1f35b;', '&#x1f35c;', '&#x1f35d;', '&#x1f35e;', '&#x1f35f;', '&#x1f360;', '&#x1f361;', '&#x1f362;', '&#x1f363;', '&#x1f364;', '&#x1f365;', '&#x1f366;', '&#x1f367;', '&#x1f368;', '&#x1f369;', '&#x1f36a;', '&#x1f36b;', '&#x1f36c;', '&#x1f36d;', '&#x1f36e;', '&#x1f36f;', '&#x1f370;', '&#x1f371;', '&#x1f372;', '&#x1f373;', '&#x1f374;', '&#x1f375;', '&#x1f376;', '&#x1f377;', '&#x1f378;', '&#x1f379;', '&#x1f37a;', '&#x1f37b;', '&#x1f37c;', '&#x1f37d;', '&#x1f37e;', '&#x1f37f;', '&#x1f380;', '&#x1f381;', '&#x1f382;', '&#x1f383;', '&#x1f384;', '&#x1f385;', '&#x1f386;', '&#x1f387;', '&#x1f388;', '&#x1f389;', '&#x1f38a;', '&#x1f38b;', '&#x1f38c;', '&#x1f38d;', '&#x1f38e;', '&#x1f38f;', '&#x1f390;', '&#x1f391;', '&#x1f392;', '&#x1f393;', '&#x1f396;', '&#x1f397;', '&#x1f399;', '&#x1f39a;', '&#x1f39b;', '&#x1f39e;', '&#x1f39f;', '&#x1f3a0;', '&#x1f3a1;', '&#x1f3a2;', '&#x1f3a3;', '&#x1f3a4;', '&#x1f3a5;', '&#x1f3a6;', '&#x1f3a7;', '&#x1f3a8;', '&#x1f3a9;', '&#x1f3aa;', '&#x1f3ab;', '&#x1f3ac;', '&#x1f3ad;', '&#x1f3ae;', '&#x1f3af;', '&#x1f3b0;', '&#x1f3b1;', '&#x1f3b2;', '&#x1f3b3;', '&#x1f3b4;', '&#x1f3b5;', '&#x1f3b6;', '&#x1f3b7;', '&#x1f3b8;', '&#x1f3b9;', '&#x1f3ba;', '&#x1f3bb;', '&#x1f3bc;', '&#x1f3bd;', '&#x1f3be;', '&#x1f3bf;', '&#x1f3c0;', '&#x1f3c1;', '&#x1f3c2;', '&#x1f3c3;', '&#x1f3c4;', '&#x1f3c5;', '&#x1f3c6;', '&#x1f3c7;', '&#x1f3c8;', '&#x1f3c9;', '&#x1f3ca;', '&#x1f3cb;', '&#x1f3cc;', '&#x1f3cd;', '&#x1f3ce;', '&#x1f3cf;', '&#x1f3d0;', '&#x1f3d1;', '&#x1f3d2;', '&#x1f3d3;', '&#x1f3d4;', '&#x1f3d5;', '&#x1f3d6;', '&#x1f3d7;', '&#x1f3d8;', '&#x1f3d9;', '&#x1f3da;', '&#x1f3db;', '&#x1f3dc;', '&#x1f3dd;', '&#x1f3de;', '&#x1f3df;', '&#x1f3e0;', '&#x1f3e1;', '&#x1f3e2;', '&#x1f3e3;', '&#x1f3e4;', '&#x1f3e5;', '&#x1f3e6;', '&#x1f3e7;', '&#x1f3e8;', '&#x1f3e9;', '&#x1f3ea;', '&#x1f3eb;', '&#x1f3ec;', '&#x1f3ed;', '&#x1f3ee;', '&#x1f3ef;', '&#x1f3f0;', '&#x1f3f3;', '&#x1f3f4;', '&#x1f3f5;', '&#x1f3f7;', '&#x1f3f8;', '&#x1f3f9;', '&#x1f3fa;', '&#x1f3fb;', '&#x1f3fc;', '&#x1f3fd;', '&#x1f3fe;', '&#x1f3ff;', '&#x1f400;', '&#x1f401;', '&#x1f402;', '&#x1f403;', '&#x1f404;', '&#x1f405;', '&#x1f406;', '&#x1f407;', '&#x1f408;', '&#x1f409;', '&#x1f40a;', '&#x1f40b;', '&#x1f40c;', '&#x1f40d;', '&#x1f40e;', '&#x1f40f;', '&#x1f410;', '&#x1f411;', '&#x1f412;', '&#x1f413;', '&#x1f414;', '&#x1f415;', '&#x1f416;', '&#x1f417;', '&#x1f418;', '&#x1f419;', '&#x1f41a;', '&#x1f41b;', '&#x1f41c;', '&#x1f41d;', '&#x1f41e;', '&#x1f41f;', '&#x1f420;', '&#x1f421;', '&#x1f422;', '&#x1f423;', '&#x1f424;', '&#x1f425;', '&#x1f426;', '&#x1f427;', '&#x1f428;', '&#x1f429;', '&#x1f42a;', '&#x1f42b;', '&#x1f42c;', '&#x1f42d;', '&#x1f42e;', '&#x1f42f;', '&#x1f430;', '&#x1f431;', '&#x1f432;', '&#x1f433;', '&#x1f434;', '&#x1f435;', '&#x1f436;', '&#x1f437;', '&#x1f438;', '&#x1f439;', '&#x1f43a;', '&#x1f43b;', '&#x1f43c;', '&#x1f43d;', '&#x1f43e;', '&#x1f43f;', '&#x1f440;', '&#x1f441;', '&#x1f442;', '&#x1f443;', '&#x1f444;', '&#x1f445;', '&#x1f446;', '&#x1f447;', '&#x1f448;', '&#x1f449;', '&#x1f44a;', '&#x1f44b;', '&#x1f44c;', '&#x1f44d;', '&#x1f44e;', '&#x1f44f;', '&#x1f450;', '&#x1f451;', '&#x1f452;', '&#x1f453;', '&#x1f454;', '&#x1f455;', '&#x1f456;', '&#x1f457;', '&#x1f458;', '&#x1f459;', '&#x1f45a;', '&#x1f45b;', '&#x1f45c;', '&#x1f45d;', '&#x1f45e;', '&#x1f45f;', '&#x1f460;', '&#x1f461;', '&#x1f462;', '&#x1f463;', '&#x1f464;', '&#x1f465;', '&#x1f466;', '&#x1f467;', '&#x1f468;', '&#x1f469;', '&#x1f46a;', '&#x1f46b;', '&#x1f46c;', '&#x1f46d;', '&#x1f46e;', '&#x1f46f;', '&#x1f470;', '&#x1f471;', '&#x1f472;', '&#x1f473;', '&#x1f474;', '&#x1f475;', '&#x1f476;', '&#x1f477;', '&#x1f478;', '&#x1f479;', '&#x1f47a;', '&#x1f47b;', '&#x1f47c;', '&#x1f47d;', '&#x1f47e;', '&#x1f47f;', '&#x1f480;', '&#x1f481;', '&#x1f482;', '&#x1f483;', '&#x1f484;', '&#x1f485;', '&#x1f486;', '&#x1f487;', '&#x1f488;', '&#x1f489;', '&#x1f48a;', '&#x1f48b;', '&#x1f48c;', '&#x1f48d;', '&#x1f48e;', '&#x1f48f;', '&#x1f490;', '&#x1f491;', '&#x1f492;', '&#x1f493;', '&#x1f494;', '&#x1f495;', '&#x1f496;', '&#x1f497;', '&#x1f498;', '&#x1f499;', '&#x1f49a;', '&#x1f49b;', '&#x1f49c;', '&#x1f49d;', '&#x1f49e;', '&#x1f49f;', '&#x1f4a0;', '&#x1f4a1;', '&#x1f4a2;', '&#x1f4a3;', '&#x1f4a4;', '&#x1f4a5;', '&#x1f4a6;', '&#x1f4a7;', '&#x1f4a8;', '&#x1f4a9;', '&#x1f4aa;', '&#x1f4ab;', '&#x1f4ac;', '&#x1f4ad;', '&#x1f4ae;', '&#x1f4af;', '&#x1f4b0;', '&#x1f4b1;', '&#x1f4b2;', '&#x1f4b3;', '&#x1f4b4;', '&#x1f4b5;', '&#x1f4b6;', '&#x1f4b7;', '&#x1f4b8;', '&#x1f4b9;', '&#x1f4ba;', '&#x1f4bb;', '&#x1f4bc;', '&#x1f4bd;', '&#x1f4be;', '&#x1f4bf;', '&#x1f4c0;', '&#x1f4c1;', '&#x1f4c2;', '&#x1f4c3;', '&#x1f4c4;', '&#x1f4c5;', '&#x1f4c6;', '&#x1f4c7;', '&#x1f4c8;', '&#x1f4c9;', '&#x1f4ca;', '&#x1f4cb;', '&#x1f4cc;', '&#x1f4cd;', '&#x1f4ce;', '&#x1f4cf;', '&#x1f4d0;', '&#x1f4d1;', '&#x1f4d2;', '&#x1f4d3;', '&#x1f4d4;', '&#x1f4d5;', '&#x1f4d6;', '&#x1f4d7;', '&#x1f4d8;', '&#x1f4d9;', '&#x1f4da;', '&#x1f4db;', '&#x1f4dc;', '&#x1f4dd;', '&#x1f4de;', '&#x1f4df;', '&#x1f4e0;', '&#x1f4e1;', '&#x1f4e2;', '&#x1f4e3;', '&#x1f4e4;', '&#x1f4e5;', '&#x1f4e6;', '&#x1f4e7;', '&#x1f4e8;', '&#x1f4e9;', '&#x1f4ea;', '&#x1f4eb;', '&#x1f4ec;', '&#x1f4ed;', '&#x1f4ee;', '&#x1f4ef;', '&#x1f4f0;', '&#x1f4f1;', '&#x1f4f2;', '&#x1f4f3;', '&#x1f4f4;', '&#x1f4f5;', '&#x1f4f6;', '&#x1f4f7;', '&#x1f4f8;', '&#x1f4f9;', '&#x1f4fa;', '&#x1f4fb;', '&#x1f4fc;', '&#x1f4fd;', '&#x1f4ff;', '&#x1f500;', '&#x1f501;', '&#x1f502;', '&#x1f503;', '&#x1f504;', '&#x1f505;', '&#x1f506;', '&#x1f507;', '&#x1f508;', '&#x1f509;', '&#x1f50a;', '&#x1f50b;', '&#x1f50c;', '&#x1f50d;', '&#x1f50e;', '&#x1f50f;', '&#x1f510;', '&#x1f511;', '&#x1f512;', '&#x1f513;', '&#x1f514;', '&#x1f515;', '&#x1f516;', '&#x1f517;', '&#x1f518;', '&#x1f519;', '&#x1f51a;', '&#x1f51b;', '&#x1f51c;', '&#x1f51d;', '&#x1f51e;', '&#x1f51f;', '&#x1f520;', '&#x1f521;', '&#x1f522;', '&#x1f523;', '&#x1f524;', '&#x1f525;', '&#x1f526;', '&#x1f527;', '&#x1f528;', '&#x1f529;', '&#x1f52a;', '&#x1f52b;', '&#x1f52c;', '&#x1f52d;', '&#x1f52e;', '&#x1f52f;', '&#x1f530;', '&#x1f531;', '&#x1f532;', '&#x1f533;', '&#x1f534;', '&#x1f535;', '&#x1f536;', '&#x1f537;', '&#x1f538;', '&#x1f539;', '&#x1f53a;', '&#x1f53b;', '&#x1f53c;', '&#x1f53d;', '&#x1f549;', '&#x1f54a;', '&#x1f54b;', '&#x1f54c;', '&#x1f54d;', '&#x1f54e;', '&#x1f550;', '&#x1f551;', '&#x1f552;', '&#x1f553;', '&#x1f554;', '&#x1f555;', '&#x1f556;', '&#x1f557;', '&#x1f558;', '&#x1f559;', '&#x1f55a;', '&#x1f55b;', '&#x1f55c;', '&#x1f55d;', '&#x1f55e;', '&#x1f55f;', '&#x1f560;', '&#x1f561;', '&#x1f562;', '&#x1f563;', '&#x1f564;', '&#x1f565;', '&#x1f566;', '&#x1f567;', '&#x1f56f;', '&#x1f570;', '&#x1f573;', '&#x1f574;', '&#x1f575;', '&#x1f576;', '&#x1f577;', '&#x1f578;', '&#x1f579;', '&#x1f57a;', '&#x1f587;', '&#x1f58a;', '&#x1f58b;', '&#x1f58c;', '&#x1f58d;', '&#x1f590;', '&#x1f595;', '&#x1f596;', '&#x1f5a4;', '&#x1f5a5;', '&#x1f5a8;', '&#x1f5b1;', '&#x1f5b2;', '&#x1f5bc;', '&#x1f5c2;', '&#x1f5c3;', '&#x1f5c4;', '&#x1f5d1;', '&#x1f5d2;', '&#x1f5d3;', '&#x1f5dc;', '&#x1f5dd;', '&#x1f5de;', '&#x1f5e1;', '&#x1f5e3;', '&#x1f5e8;', '&#x1f5ef;', '&#x1f5f3;', '&#x1f5fa;', '&#x1f5fb;', '&#x1f5fc;', '&#x1f5fd;', '&#x1f5fe;', '&#x1f5ff;', '&#x1f600;', '&#x1f601;', '&#x1f602;', '&#x1f603;', '&#x1f604;', '&#x1f605;', '&#x1f606;', '&#x1f607;', '&#x1f608;', '&#x1f609;', '&#x1f60a;', '&#x1f60b;', '&#x1f60c;', '&#x1f60d;', '&#x1f60e;', '&#x1f60f;', '&#x1f610;', '&#x1f611;', '&#x1f612;', '&#x1f613;', '&#x1f614;', '&#x1f615;', '&#x1f616;', '&#x1f617;', '&#x1f618;', '&#x1f619;', '&#x1f61a;', '&#x1f61b;', '&#x1f61c;', '&#x1f61d;', '&#x1f61e;', '&#x1f61f;', '&#x1f620;', '&#x1f621;', '&#x1f622;', '&#x1f623;', '&#x1f624;', '&#x1f625;', '&#x1f626;', '&#x1f627;', '&#x1f628;', '&#x1f629;', '&#x1f62a;', '&#x1f62b;', '&#x1f62c;', '&#x1f62d;', '&#x1f62e;', '&#x1f62f;', '&#x1f630;', '&#x1f631;', '&#x1f632;', '&#x1f633;', '&#x1f634;', '&#x1f635;', '&#x1f636;', '&#x1f637;', '&#x1f638;', '&#x1f639;', '&#x1f63a;', '&#x1f63b;', '&#x1f63c;', '&#x1f63d;', '&#x1f63e;', '&#x1f63f;', '&#x1f640;', '&#x1f641;', '&#x1f642;', '&#x1f643;', '&#x1f644;', '&#x1f645;', '&#x1f646;', '&#x1f647;', '&#x1f648;', '&#x1f649;', '&#x1f64a;', '&#x1f64b;', '&#x1f64c;', '&#x1f64d;', '&#x1f64e;', '&#x1f64f;', '&#x1f680;', '&#x1f681;', '&#x1f682;', '&#x1f683;', '&#x1f684;', '&#x1f685;', '&#x1f686;', '&#x1f687;', '&#x1f688;', '&#x1f689;', '&#x1f68a;', '&#x1f68b;', '&#x1f68c;', '&#x1f68d;', '&#x1f68e;', '&#x1f68f;', '&#x1f690;', '&#x1f691;', '&#x1f692;', '&#x1f693;', '&#x1f694;', '&#x1f695;', '&#x1f696;', '&#x1f697;', '&#x1f698;', '&#x1f699;', '&#x1f69a;', '&#x1f69b;', '&#x1f69c;', '&#x1f69d;', '&#x1f69e;', '&#x1f69f;', '&#x1f6a0;', '&#x1f6a1;', '&#x1f6a2;', '&#x1f6a3;', '&#x1f6a4;', '&#x1f6a5;', '&#x1f6a6;', '&#x1f6a7;', '&#x1f6a8;', '&#x1f6a9;', '&#x1f6aa;', '&#x1f6ab;', '&#x1f6ac;', '&#x1f6ad;', '&#x1f6ae;', '&#x1f6af;', '&#x1f6b0;', '&#x1f6b1;', '&#x1f6b2;', '&#x1f6b3;', '&#x1f6b4;', '&#x1f6b5;', '&#x1f6b6;', '&#x1f6b7;', '&#x1f6b8;', '&#x1f6b9;', '&#x1f6ba;', '&#x1f6bb;', '&#x1f6bc;', '&#x1f6bd;', '&#x1f6be;', '&#x1f6bf;', '&#x1f6c0;', '&#x1f6c1;', '&#x1f6c2;', '&#x1f6c3;', '&#x1f6c4;', '&#x1f6c5;', '&#x1f6cb;', '&#x1f6cc;', '&#x1f6cd;', '&#x1f6ce;', '&#x1f6cf;', '&#x1f6d0;', '&#x1f6d1;', '&#x1f6d2;', '&#x1f6d5;', '&#x1f6d6;', '&#x1f6d7;', '&#x1f6dd;', '&#x1f6de;', '&#x1f6df;', '&#x1f6e0;', '&#x1f6e1;', '&#x1f6e2;', '&#x1f6e3;', '&#x1f6e4;', '&#x1f6e5;', '&#x1f6e9;', '&#x1f6eb;', '&#x1f6ec;', '&#x1f6f0;', '&#x1f6f3;', '&#x1f6f4;', '&#x1f6f5;', '&#x1f6f6;', '&#x1f6f7;', '&#x1f6f8;', '&#x1f6f9;', '&#x1f6fa;', '&#x1f6fb;', '&#x1f6fc;', '&#x1f7e0;', '&#x1f7e1;', '&#x1f7e2;', '&#x1f7e3;', '&#x1f7e4;', '&#x1f7e5;', '&#x1f7e6;', '&#x1f7e7;', '&#x1f7e8;', '&#x1f7e9;', '&#x1f7ea;', '&#x1f7eb;', '&#x1f7f0;', '&#x1f90c;', '&#x1f90d;', '&#x1f90e;', '&#x1f90f;', '&#x1f910;', '&#x1f911;', '&#x1f912;', '&#x1f913;', '&#x1f914;', '&#x1f915;', '&#x1f916;', '&#x1f917;', '&#x1f918;', '&#x1f919;', '&#x1f91a;', '&#x1f91b;', '&#x1f91c;', '&#x1f91d;', '&#x1f91e;', '&#x1f91f;', '&#x1f920;', '&#x1f921;', '&#x1f922;', '&#x1f923;', '&#x1f924;', '&#x1f925;', '&#x1f926;', '&#x1f927;', '&#x1f928;', '&#x1f929;', '&#x1f92a;', '&#x1f92b;', '&#x1f92c;', '&#x1f92d;', '&#x1f92e;', '&#x1f92f;', '&#x1f930;', '&#x1f931;', '&#x1f932;', '&#x1f933;', '&#x1f934;', '&#x1f935;', '&#x1f936;', '&#x1f937;', '&#x1f938;', '&#x1f939;', '&#x1f93a;', '&#x1f93c;', '&#x1f93d;', '&#x1f93e;', '&#x1f93f;', '&#x1f940;', '&#x1f941;', '&#x1f942;', '&#x1f943;', '&#x1f944;', '&#x1f945;', '&#x1f947;', '&#x1f948;', '&#x1f949;', '&#x1f94a;', '&#x1f94b;', '&#x1f94c;', '&#x1f94d;', '&#x1f94e;', '&#x1f94f;', '&#x1f950;', '&#x1f951;', '&#x1f952;', '&#x1f953;', '&#x1f954;', '&#x1f955;', '&#x1f956;', '&#x1f957;', '&#x1f958;', '&#x1f959;', '&#x1f95a;', '&#x1f95b;', '&#x1f95c;', '&#x1f95d;', '&#x1f95e;', '&#x1f95f;', '&#x1f960;', '&#x1f961;', '&#x1f962;', '&#x1f963;', '&#x1f964;', '&#x1f965;', '&#x1f966;', '&#x1f967;', '&#x1f968;', '&#x1f969;', '&#x1f96a;', '&#x1f96b;', '&#x1f96c;', '&#x1f96d;', '&#x1f96e;', '&#x1f96f;', '&#x1f970;', '&#x1f971;', '&#x1f972;', '&#x1f973;', '&#x1f974;', '&#x1f975;', '&#x1f976;', '&#x1f977;', '&#x1f978;', '&#x1f979;', '&#x1f97a;', '&#x1f97b;', '&#x1f97c;', '&#x1f97d;', '&#x1f97e;', '&#x1f97f;', '&#x1f980;', '&#x1f981;', '&#x1f982;', '&#x1f983;', '&#x1f984;', '&#x1f985;', '&#x1f986;', '&#x1f987;', '&#x1f988;', '&#x1f989;', '&#x1f98a;', '&#x1f98b;', '&#x1f98c;', '&#x1f98d;', '&#x1f98e;', '&#x1f98f;', '&#x1f990;', '&#x1f991;', '&#x1f992;', '&#x1f993;', '&#x1f994;', '&#x1f995;', '&#x1f996;', '&#x1f997;', '&#x1f998;', '&#x1f999;', '&#x1f99a;', '&#x1f99b;', '&#x1f99c;', '&#x1f99d;', '&#x1f99e;', '&#x1f99f;', '&#x1f9a0;', '&#x1f9a1;', '&#x1f9a2;', '&#x1f9a3;', '&#x1f9a4;', '&#x1f9a5;', '&#x1f9a6;', '&#x1f9a7;', '&#x1f9a8;', '&#x1f9a9;', '&#x1f9aa;', '&#x1f9ab;', '&#x1f9ac;', '&#x1f9ad;', '&#x1f9ae;', '&#x1f9af;', '&#x1f9b0;', '&#x1f9b1;', '&#x1f9b2;', '&#x1f9b3;', '&#x1f9b4;', '&#x1f9b5;', '&#x1f9b6;', '&#x1f9b7;', '&#x1f9b8;', '&#x1f9b9;', '&#x1f9ba;', '&#x1f9bb;', '&#x1f9bc;', '&#x1f9bd;', '&#x1f9be;', '&#x1f9bf;', '&#x1f9c0;', '&#x1f9c1;', '&#x1f9c2;', '&#x1f9c3;', '&#x1f9c4;', '&#x1f9c5;', '&#x1f9c6;', '&#x1f9c7;', '&#x1f9c8;', '&#x1f9c9;', '&#x1f9ca;', '&#x1f9cb;', '&#x1f9cc;', '&#x1f9cd;', '&#x1f9ce;', '&#x1f9cf;', '&#x1f9d0;', '&#x1f9d1;', '&#x1f9d2;', '&#x1f9d3;', '&#x1f9d4;', '&#x1f9d5;', '&#x1f9d6;', '&#x1f9d7;', '&#x1f9d8;', '&#x1f9d9;', '&#x1f9da;', '&#x1f9db;', '&#x1f9dc;', '&#x1f9dd;', '&#x1f9de;', '&#x1f9df;', '&#x1f9e0;', '&#x1f9e1;', '&#x1f9e2;', '&#x1f9e3;', '&#x1f9e4;', '&#x1f9e5;', '&#x1f9e6;', '&#x1f9e7;', '&#x1f9e8;', '&#x1f9e9;', '&#x1f9ea;', '&#x1f9eb;', '&#x1f9ec;', '&#x1f9ed;', '&#x1f9ee;', '&#x1f9ef;', '&#x1f9f0;', '&#x1f9f1;', '&#x1f9f2;', '&#x1f9f3;', '&#x1f9f4;', '&#x1f9f5;', '&#x1f9f6;', '&#x1f9f7;', '&#x1f9f8;', '&#x1f9f9;', '&#x1f9fa;', '&#x1f9fb;', '&#x1f9fc;', '&#x1f9fd;', '&#x1f9fe;', '&#x1f9ff;', '&#x1fa70;', '&#x1fa71;', '&#x1fa72;', '&#x1fa73;', '&#x1fa74;', '&#x1fa78;', '&#x1fa79;', '&#x1fa7a;', '&#x1fa7b;', '&#x1fa7c;', '&#x1fa80;', '&#x1fa81;', '&#x1fa82;', '&#x1fa83;', '&#x1fa84;', '&#x1fa85;', '&#x1fa86;', '&#x1fa90;', '&#x1fa91;', '&#x1fa92;', '&#x1fa93;', '&#x1fa94;', '&#x1fa95;', '&#x1fa96;', '&#x1fa97;', '&#x1fa98;', '&#x1fa99;', '&#x1fa9a;', '&#x1fa9b;', '&#x1fa9c;', '&#x1fa9d;', '&#x1fa9e;', '&#x1fa9f;', '&#x1faa0;', '&#x1faa1;', '&#x1faa2;', '&#x1faa3;', '&#x1faa4;', '&#x1faa5;', '&#x1faa6;', '&#x1faa7;', '&#x1faa8;', '&#x1faa9;', '&#x1faaa;', '&#x1faab;', '&#x1faac;', '&#x1fab0;', '&#x1fab1;', '&#x1fab2;', '&#x1fab3;', '&#x1fab4;', '&#x1fab5;', '&#x1fab6;', '&#x1fab7;', '&#x1fab8;', '&#x1fab9;', '&#x1faba;', '&#x1fac0;', '&#x1fac1;', '&#x1fac2;', '&#x1fac3;', '&#x1fac4;', '&#x1fac5;', '&#x1fad0;', '&#x1fad1;', '&#x1fad2;', '&#x1fad3;', '&#x1fad4;', '&#x1fad5;', '&#x1fad6;', '&#x1fad7;', '&#x1fad8;', '&#x1fad9;', '&#x1fae0;', '&#x1fae1;', '&#x1fae2;', '&#x1fae3;', '&#x1fae4;', '&#x1fae5;', '&#x1fae6;', '&#x1fae7;', '&#x1faf0;', '&#x1faf1;', '&#x1faf2;', '&#x1faf3;', '&#x1faf4;', '&#x1faf5;', '&#x1faf6;', '&#x203c;', '&#x2049;', '&#x2122;', '&#x2139;', '&#x2194;', '&#x2195;', '&#x2196;', '&#x2197;', '&#x2198;', '&#x2199;', '&#x21a9;', '&#x21aa;', '&#x231a;', '&#x231b;', '&#x2328;', '&#x23cf;', '&#x23e9;', '&#x23ea;', '&#x23eb;', '&#x23ec;', '&#x23ed;', '&#x23ee;', '&#x23ef;', '&#x23f0;', '&#x23f1;', '&#x23f2;', '&#x23f3;', '&#x23f8;', '&#x23f9;', '&#x23fa;', '&#x24c2;', '&#x25aa;', '&#x25ab;', '&#x25b6;', '&#x25c0;', '&#x25fb;', '&#x25fc;', '&#x25fd;', '&#x25fe;', '&#x2600;', '&#x2601;', '&#x2602;', '&#x2603;', '&#x2604;', '&#x260e;', '&#x2611;', '&#x2614;', '&#x2615;', '&#x2618;', '&#x261d;', '&#x2620;', '&#x2622;', '&#x2623;', '&#x2626;', '&#x262a;', '&#x262e;', '&#x262f;', '&#x2638;', '&#x2639;', '&#x263a;', '&#x2640;', '&#x2642;', '&#x2648;', '&#x2649;', '&#x264a;', '&#x264b;', '&#x264c;', '&#x264d;', '&#x264e;', '&#x264f;', '&#x2650;', '&#x2651;', '&#x2652;', '&#x2653;', '&#x265f;', '&#x2660;', '&#x2663;', '&#x2665;', '&#x2666;', '&#x2668;', '&#x267b;', '&#x267e;', '&#x267f;', '&#x2692;', '&#x2693;', '&#x2694;', '&#x2695;', '&#x2696;', '&#x2697;', '&#x2699;', '&#x269b;', '&#x269c;', '&#x26a0;', '&#x26a1;', '&#x26a7;', '&#x26aa;', '&#x26ab;', '&#x26b0;', '&#x26b1;', '&#x26bd;', '&#x26be;', '&#x26c4;', '&#x26c5;', '&#x26c8;', '&#x26ce;', '&#x26cf;', '&#x26d1;', '&#x26d3;', '&#x26d4;', '&#x26e9;', '&#x26ea;', '&#x26f0;', '&#x26f1;', '&#x26f2;', '&#x26f3;', '&#x26f4;', '&#x26f5;', '&#x26f7;', '&#x26f8;', '&#x26f9;', '&#x26fa;', '&#x26fd;', '&#x2702;', '&#x2705;', '&#x2708;', '&#x2709;', '&#x270a;', '&#x270b;', '&#x270c;', '&#x270d;', '&#x270f;', '&#x2712;', '&#x2714;', '&#x2716;', '&#x271d;', '&#x2721;', '&#x2728;', '&#x2733;', '&#x2734;', '&#x2744;', '&#x2747;', '&#x274c;', '&#x274e;', '&#x2753;', '&#x2754;', '&#x2755;', '&#x2757;', '&#x2763;', '&#x2764;', '&#x2795;', '&#x2796;', '&#x2797;', '&#x27a1;', '&#x27b0;', '&#x27bf;', '&#x2934;', '&#x2935;', '&#x2b05;', '&#x2b06;', '&#x2b07;', '&#x2b1b;', '&#x2b1c;', '&#x2b50;', '&#x2b55;', '&#x3030;', '&#x303d;', '&#x3297;', '&#x3299;', '&#xe50a;' );
  5461. $partials = array( '&#x1f004;', '&#x1f0cf;', '&#x1f170;', '&#x1f171;', '&#x1f17e;', '&#x1f17f;', '&#x1f18e;', '&#x1f191;', '&#x1f192;', '&#x1f193;', '&#x1f194;', '&#x1f195;', '&#x1f196;', '&#x1f197;', '&#x1f198;', '&#x1f199;', '&#x1f19a;', '&#x1f1e6;', '&#x1f1e8;', '&#x1f1e9;', '&#x1f1ea;', '&#x1f1eb;', '&#x1f1ec;', '&#x1f1ee;', '&#x1f1f1;', '&#x1f1f2;', '&#x1f1f4;', '&#x1f1f6;', '&#x1f1f7;', '&#x1f1f8;', '&#x1f1f9;', '&#x1f1fa;', '&#x1f1fc;', '&#x1f1fd;', '&#x1f1ff;', '&#x1f1e7;', '&#x1f1ed;', '&#x1f1ef;', '&#x1f1f3;', '&#x1f1fb;', '&#x1f1fe;', '&#x1f1f0;', '&#x1f1f5;', '&#x1f201;', '&#x1f202;', '&#x1f21a;', '&#x1f22f;', '&#x1f232;', '&#x1f233;', '&#x1f234;', '&#x1f235;', '&#x1f236;', '&#x1f237;', '&#x1f238;', '&#x1f239;', '&#x1f23a;', '&#x1f250;', '&#x1f251;', '&#x1f300;', '&#x1f301;', '&#x1f302;', '&#x1f303;', '&#x1f304;', '&#x1f305;', '&#x1f306;', '&#x1f307;', '&#x1f308;', '&#x1f309;', '&#x1f30a;', '&#x1f30b;', '&#x1f30c;', '&#x1f30d;', '&#x1f30e;', '&#x1f30f;', '&#x1f310;', '&#x1f311;', '&#x1f312;', '&#x1f313;', '&#x1f314;', '&#x1f315;', '&#x1f316;', '&#x1f317;', '&#x1f318;', '&#x1f319;', '&#x1f31a;', '&#x1f31b;', '&#x1f31c;', '&#x1f31d;', '&#x1f31e;', '&#x1f31f;', '&#x1f320;', '&#x1f321;', '&#x1f324;', '&#x1f325;', '&#x1f326;', '&#x1f327;', '&#x1f328;', '&#x1f329;', '&#x1f32a;', '&#x1f32b;', '&#x1f32c;', '&#x1f32d;', '&#x1f32e;', '&#x1f32f;', '&#x1f330;', '&#x1f331;', '&#x1f332;', '&#x1f333;', '&#x1f334;', '&#x1f335;', '&#x1f336;', '&#x1f337;', '&#x1f338;', '&#x1f339;', '&#x1f33a;', '&#x1f33b;', '&#x1f33c;', '&#x1f33d;', '&#x1f33e;', '&#x1f33f;', '&#x1f340;', '&#x1f341;', '&#x1f342;', '&#x1f343;', '&#x1f344;', '&#x1f345;', '&#x1f346;', '&#x1f347;', '&#x1f348;', '&#x1f349;', '&#x1f34a;', '&#x1f34b;', '&#x1f34c;', '&#x1f34d;', '&#x1f34e;', '&#x1f34f;', '&#x1f350;', '&#x1f351;', '&#x1f352;', '&#x1f353;', '&#x1f354;', '&#x1f355;', '&#x1f356;', '&#x1f357;', '&#x1f358;', '&#x1f359;', '&#x1f35a;', '&#x1f35b;', '&#x1f35c;', '&#x1f35d;', '&#x1f35e;', '&#x1f35f;', '&#x1f360;', '&#x1f361;', '&#x1f362;', '&#x1f363;', '&#x1f364;', '&#x1f365;', '&#x1f366;', '&#x1f367;', '&#x1f368;', '&#x1f369;', '&#x1f36a;', '&#x1f36b;', '&#x1f36c;', '&#x1f36d;', '&#x1f36e;', '&#x1f36f;', '&#x1f370;', '&#x1f371;', '&#x1f372;', '&#x1f373;', '&#x1f374;', '&#x1f375;', '&#x1f376;', '&#x1f377;', '&#x1f378;', '&#x1f379;', '&#x1f37a;', '&#x1f37b;', '&#x1f37c;', '&#x1f37d;', '&#x1f37e;', '&#x1f37f;', '&#x1f380;', '&#x1f381;', '&#x1f382;', '&#x1f383;', '&#x1f384;', '&#x1f385;', '&#x1f3fb;', '&#x1f3fc;', '&#x1f3fd;', '&#x1f3fe;', '&#x1f3ff;', '&#x1f386;', '&#x1f387;', '&#x1f388;', '&#x1f389;', '&#x1f38a;', '&#x1f38b;', '&#x1f38c;', '&#x1f38d;', '&#x1f38e;', '&#x1f38f;', '&#x1f390;', '&#x1f391;', '&#x1f392;', '&#x1f393;', '&#x1f396;', '&#x1f397;', '&#x1f399;', '&#x1f39a;', '&#x1f39b;', '&#x1f39e;', '&#x1f39f;', '&#x1f3a0;', '&#x1f3a1;', '&#x1f3a2;', '&#x1f3a3;', '&#x1f3a4;', '&#x1f3a5;', '&#x1f3a6;', '&#x1f3a7;', '&#x1f3a8;', '&#x1f3a9;', '&#x1f3aa;', '&#x1f3ab;', '&#x1f3ac;', '&#x1f3ad;', '&#x1f3ae;', '&#x1f3af;', '&#x1f3b0;', '&#x1f3b1;', '&#x1f3b2;', '&#x1f3b3;', '&#x1f3b4;', '&#x1f3b5;', '&#x1f3b6;', '&#x1f3b7;', '&#x1f3b8;', '&#x1f3b9;', '&#x1f3ba;', '&#x1f3bb;', '&#x1f3bc;', '&#x1f3bd;', '&#x1f3be;', '&#x1f3bf;', '&#x1f3c0;', '&#x1f3c1;', '&#x1f3c2;', '&#x1f3c3;', '&#x200d;', '&#x2640;', '&#xfe0f;', '&#x2642;', '&#x1f3c4;', '&#x1f3c5;', '&#x1f3c6;', '&#x1f3c7;', '&#x1f3c8;', '&#x1f3c9;', '&#x1f3ca;', '&#x1f3cb;', '&#x1f3cc;', '&#x1f3cd;', '&#x1f3ce;', '&#x1f3cf;', '&#x1f3d0;', '&#x1f3d1;', '&#x1f3d2;', '&#x1f3d3;', '&#x1f3d4;', '&#x1f3d5;', '&#x1f3d6;', '&#x1f3d7;', '&#x1f3d8;', '&#x1f3d9;', '&#x1f3da;', '&#x1f3db;', '&#x1f3dc;', '&#x1f3dd;', '&#x1f3de;', '&#x1f3df;', '&#x1f3e0;', '&#x1f3e1;', '&#x1f3e2;', '&#x1f3e3;', '&#x1f3e4;', '&#x1f3e5;', '&#x1f3e6;', '&#x1f3e7;', '&#x1f3e8;', '&#x1f3e9;', '&#x1f3ea;', '&#x1f3eb;', '&#x1f3ec;', '&#x1f3ed;', '&#x1f3ee;', '&#x1f3ef;', '&#x1f3f0;', '&#x1f3f3;', '&#x26a7;', '&#x1f3f4;', '&#x2620;', '&#xe0067;', '&#xe0062;', '&#xe0065;', '&#xe006e;', '&#xe007f;', '&#xe0073;', '&#xe0063;', '&#xe0074;', '&#xe0077;', '&#xe006c;', '&#x1f3f5;', '&#x1f3f7;', '&#x1f3f8;', '&#x1f3f9;', '&#x1f3fa;', '&#x1f400;', '&#x1f401;', '&#x1f402;', '&#x1f403;', '&#x1f404;', '&#x1f405;', '&#x1f406;', '&#x1f407;', '&#x1f408;', '&#x2b1b;', '&#x1f409;', '&#x1f40a;', '&#x1f40b;', '&#x1f40c;', '&#x1f40d;', '&#x1f40e;', '&#x1f40f;', '&#x1f410;', '&#x1f411;', '&#x1f412;', '&#x1f413;', '&#x1f414;', '&#x1f415;', '&#x1f9ba;', '&#x1f416;', '&#x1f417;', '&#x1f418;', '&#x1f419;', '&#x1f41a;', '&#x1f41b;', '&#x1f41c;', '&#x1f41d;', '&#x1f41e;', '&#x1f41f;', '&#x1f420;', '&#x1f421;', '&#x1f422;', '&#x1f423;', '&#x1f424;', '&#x1f425;', '&#x1f426;', '&#x1f427;', '&#x1f428;', '&#x1f429;', '&#x1f42a;', '&#x1f42b;', '&#x1f42c;', '&#x1f42d;', '&#x1f42e;', '&#x1f42f;', '&#x1f430;', '&#x1f431;', '&#x1f432;', '&#x1f433;', '&#x1f434;', '&#x1f435;', '&#x1f436;', '&#x1f437;', '&#x1f438;', '&#x1f439;', '&#x1f43a;', '&#x1f43b;', '&#x2744;', '&#x1f43c;', '&#x1f43d;', '&#x1f43e;', '&#x1f43f;', '&#x1f440;', '&#x1f441;', '&#x1f5e8;', '&#x1f442;', '&#x1f443;', '&#x1f444;', '&#x1f445;', '&#x1f446;', '&#x1f447;', '&#x1f448;', '&#x1f449;', '&#x1f44a;', '&#x1f44b;', '&#x1f44c;', '&#x1f44d;', '&#x1f44e;', '&#x1f44f;', '&#x1f450;', '&#x1f451;', '&#x1f452;', '&#x1f453;', '&#x1f454;', '&#x1f455;', '&#x1f456;', '&#x1f457;', '&#x1f458;', '&#x1f459;', '&#x1f45a;', '&#x1f45b;', '&#x1f45c;', '&#x1f45d;', '&#x1f45e;', '&#x1f45f;', '&#x1f460;', '&#x1f461;', '&#x1f462;', '&#x1f463;', '&#x1f464;', '&#x1f465;', '&#x1f466;', '&#x1f467;', '&#x1f468;', '&#x1f4bb;', '&#x1f4bc;', '&#x1f527;', '&#x1f52c;', '&#x1f680;', '&#x1f692;', '&#x1f91d;', '&#x1f9af;', '&#x1f9b0;', '&#x1f9b1;', '&#x1f9b2;', '&#x1f9b3;', '&#x1f9bc;', '&#x1f9bd;', '&#x2695;', '&#x2696;', '&#x2708;', '&#x2764;', '&#x1f48b;', '&#x1f469;', '&#x1f46a;', '&#x1f46b;', '&#x1f46c;', '&#x1f46d;', '&#x1f46e;', '&#x1f46f;', '&#x1f470;', '&#x1f471;', '&#x1f472;', '&#x1f473;', '&#x1f474;', '&#x1f475;', '&#x1f476;', '&#x1f477;', '&#x1f478;', '&#x1f479;', '&#x1f47a;', '&#x1f47b;', '&#x1f47c;', '&#x1f47d;', '&#x1f47e;', '&#x1f47f;', '&#x1f480;', '&#x1f481;', '&#x1f482;', '&#x1f483;', '&#x1f484;', '&#x1f485;', '&#x1f486;', '&#x1f487;', '&#x1f488;', '&#x1f489;', '&#x1f48a;', '&#x1f48c;', '&#x1f48d;', '&#x1f48e;', '&#x1f48f;', '&#x1f490;', '&#x1f491;', '&#x1f492;', '&#x1f493;', '&#x1f494;', '&#x1f495;', '&#x1f496;', '&#x1f497;', '&#x1f498;', '&#x1f499;', '&#x1f49a;', '&#x1f49b;', '&#x1f49c;', '&#x1f49d;', '&#x1f49e;', '&#x1f49f;', '&#x1f4a0;', '&#x1f4a1;', '&#x1f4a2;', '&#x1f4a3;', '&#x1f4a4;', '&#x1f4a5;', '&#x1f4a6;', '&#x1f4a7;', '&#x1f4a8;', '&#x1f4a9;', '&#x1f4aa;', '&#x1f4ab;', '&#x1f4ac;', '&#x1f4ad;', '&#x1f4ae;', '&#x1f4af;', '&#x1f4b0;', '&#x1f4b1;', '&#x1f4b2;', '&#x1f4b3;', '&#x1f4b4;', '&#x1f4b5;', '&#x1f4b6;', '&#x1f4b7;', '&#x1f4b8;', '&#x1f4b9;', '&#x1f4ba;', '&#x1f4bd;', '&#x1f4be;', '&#x1f4bf;', '&#x1f4c0;', '&#x1f4c1;', '&#x1f4c2;', '&#x1f4c3;', '&#x1f4c4;', '&#x1f4c5;', '&#x1f4c6;', '&#x1f4c7;', '&#x1f4c8;', '&#x1f4c9;', '&#x1f4ca;', '&#x1f4cb;', '&#x1f4cc;', '&#x1f4cd;', '&#x1f4ce;', '&#x1f4cf;', '&#x1f4d0;', '&#x1f4d1;', '&#x1f4d2;', '&#x1f4d3;', '&#x1f4d4;', '&#x1f4d5;', '&#x1f4d6;', '&#x1f4d7;', '&#x1f4d8;', '&#x1f4d9;', '&#x1f4da;', '&#x1f4db;', '&#x1f4dc;', '&#x1f4dd;', '&#x1f4de;', '&#x1f4df;', '&#x1f4e0;', '&#x1f4e1;', '&#x1f4e2;', '&#x1f4e3;', '&#x1f4e4;', '&#x1f4e5;', '&#x1f4e6;', '&#x1f4e7;', '&#x1f4e8;', '&#x1f4e9;', '&#x1f4ea;', '&#x1f4eb;', '&#x1f4ec;', '&#x1f4ed;', '&#x1f4ee;', '&#x1f4ef;', '&#x1f4f0;', '&#x1f4f1;', '&#x1f4f2;', '&#x1f4f3;', '&#x1f4f4;', '&#x1f4f5;', '&#x1f4f6;', '&#x1f4f7;', '&#x1f4f8;', '&#x1f4f9;', '&#x1f4fa;', '&#x1f4fb;', '&#x1f4fc;', '&#x1f4fd;', '&#x1f4ff;', '&#x1f500;', '&#x1f501;', '&#x1f502;', '&#x1f503;', '&#x1f504;', '&#x1f505;', '&#x1f506;', '&#x1f507;', '&#x1f508;', '&#x1f509;', '&#x1f50a;', '&#x1f50b;', '&#x1f50c;', '&#x1f50d;', '&#x1f50e;', '&#x1f50f;', '&#x1f510;', '&#x1f511;', '&#x1f512;', '&#x1f513;', '&#x1f514;', '&#x1f515;', '&#x1f516;', '&#x1f517;', '&#x1f518;', '&#x1f519;', '&#x1f51a;', '&#x1f51b;', '&#x1f51c;', '&#x1f51d;', '&#x1f51e;', '&#x1f51f;', '&#x1f520;', '&#x1f521;', '&#x1f522;', '&#x1f523;', '&#x1f524;', '&#x1f525;', '&#x1f526;', '&#x1f528;', '&#x1f529;', '&#x1f52a;', '&#x1f52b;', '&#x1f52d;', '&#x1f52e;', '&#x1f52f;', '&#x1f530;', '&#x1f531;', '&#x1f532;', '&#x1f533;', '&#x1f534;', '&#x1f535;', '&#x1f536;', '&#x1f537;', '&#x1f538;', '&#x1f539;', '&#x1f53a;', '&#x1f53b;', '&#x1f53c;', '&#x1f53d;', '&#x1f549;', '&#x1f54a;', '&#x1f54b;', '&#x1f54c;', '&#x1f54d;', '&#x1f54e;', '&#x1f550;', '&#x1f551;', '&#x1f552;', '&#x1f553;', '&#x1f554;', '&#x1f555;', '&#x1f556;', '&#x1f557;', '&#x1f558;', '&#x1f559;', '&#x1f55a;', '&#x1f55b;', '&#x1f55c;', '&#x1f55d;', '&#x1f55e;', '&#x1f55f;', '&#x1f560;', '&#x1f561;', '&#x1f562;', '&#x1f563;', '&#x1f564;', '&#x1f565;', '&#x1f566;', '&#x1f567;', '&#x1f56f;', '&#x1f570;', '&#x1f573;', '&#x1f574;', '&#x1f575;', '&#x1f576;', '&#x1f577;', '&#x1f578;', '&#x1f579;', '&#x1f57a;', '&#x1f587;', '&#x1f58a;', '&#x1f58b;', '&#x1f58c;', '&#x1f58d;', '&#x1f590;', '&#x1f595;', '&#x1f596;', '&#x1f5a4;', '&#x1f5a5;', '&#x1f5a8;', '&#x1f5b1;', '&#x1f5b2;', '&#x1f5bc;', '&#x1f5c2;', '&#x1f5c3;', '&#x1f5c4;', '&#x1f5d1;', '&#x1f5d2;', '&#x1f5d3;', '&#x1f5dc;', '&#x1f5dd;', '&#x1f5de;', '&#x1f5e1;', '&#x1f5e3;', '&#x1f5ef;', '&#x1f5f3;', '&#x1f5fa;', '&#x1f5fb;', '&#x1f5fc;', '&#x1f5fd;', '&#x1f5fe;', '&#x1f5ff;', '&#x1f600;', '&#x1f601;', '&#x1f602;', '&#x1f603;', '&#x1f604;', '&#x1f605;', '&#x1f606;', '&#x1f607;', '&#x1f608;', '&#x1f609;', '&#x1f60a;', '&#x1f60b;', '&#x1f60c;', '&#x1f60d;', '&#x1f60e;', '&#x1f60f;', '&#x1f610;', '&#x1f611;', '&#x1f612;', '&#x1f613;', '&#x1f614;', '&#x1f615;', '&#x1f616;', '&#x1f617;', '&#x1f618;', '&#x1f619;', '&#x1f61a;', '&#x1f61b;', '&#x1f61c;', '&#x1f61d;', '&#x1f61e;', '&#x1f61f;', '&#x1f620;', '&#x1f621;', '&#x1f622;', '&#x1f623;', '&#x1f624;', '&#x1f625;', '&#x1f626;', '&#x1f627;', '&#x1f628;', '&#x1f629;', '&#x1f62a;', '&#x1f62b;', '&#x1f62c;', '&#x1f62d;', '&#x1f62e;', '&#x1f62f;', '&#x1f630;', '&#x1f631;', '&#x1f632;', '&#x1f633;', '&#x1f634;', '&#x1f635;', '&#x1f636;', '&#x1f637;', '&#x1f638;', '&#x1f639;', '&#x1f63a;', '&#x1f63b;', '&#x1f63c;', '&#x1f63d;', '&#x1f63e;', '&#x1f63f;', '&#x1f640;', '&#x1f641;', '&#x1f642;', '&#x1f643;', '&#x1f644;', '&#x1f645;', '&#x1f646;', '&#x1f647;', '&#x1f648;', '&#x1f649;', '&#x1f64a;', '&#x1f64b;', '&#x1f64c;', '&#x1f64d;', '&#x1f64e;', '&#x1f64f;', '&#x1f681;', '&#x1f682;', '&#x1f683;', '&#x1f684;', '&#x1f685;', '&#x1f686;', '&#x1f687;', '&#x1f688;', '&#x1f689;', '&#x1f68a;', '&#x1f68b;', '&#x1f68c;', '&#x1f68d;', '&#x1f68e;', '&#x1f68f;', '&#x1f690;', '&#x1f691;', '&#x1f693;', '&#x1f694;', '&#x1f695;', '&#x1f696;', '&#x1f697;', '&#x1f698;', '&#x1f699;', '&#x1f69a;', '&#x1f69b;', '&#x1f69c;', '&#x1f69d;', '&#x1f69e;', '&#x1f69f;', '&#x1f6a0;', '&#x1f6a1;', '&#x1f6a2;', '&#x1f6a3;', '&#x1f6a4;', '&#x1f6a5;', '&#x1f6a6;', '&#x1f6a7;', '&#x1f6a8;', '&#x1f6a9;', '&#x1f6aa;', '&#x1f6ab;', '&#x1f6ac;', '&#x1f6ad;', '&#x1f6ae;', '&#x1f6af;', '&#x1f6b0;', '&#x1f6b1;', '&#x1f6b2;', '&#x1f6b3;', '&#x1f6b4;', '&#x1f6b5;', '&#x1f6b6;', '&#x1f6b7;', '&#x1f6b8;', '&#x1f6b9;', '&#x1f6ba;', '&#x1f6bb;', '&#x1f6bc;', '&#x1f6bd;', '&#x1f6be;', '&#x1f6bf;', '&#x1f6c0;', '&#x1f6c1;', '&#x1f6c2;', '&#x1f6c3;', '&#x1f6c4;', '&#x1f6c5;', '&#x1f6cb;', '&#x1f6cc;', '&#x1f6cd;', '&#x1f6ce;', '&#x1f6cf;', '&#x1f6d0;', '&#x1f6d1;', '&#x1f6d2;', '&#x1f6d5;', '&#x1f6d6;', '&#x1f6d7;', '&#x1f6dd;', '&#x1f6de;', '&#x1f6df;', '&#x1f6e0;', '&#x1f6e1;', '&#x1f6e2;', '&#x1f6e3;', '&#x1f6e4;', '&#x1f6e5;', '&#x1f6e9;', '&#x1f6eb;', '&#x1f6ec;', '&#x1f6f0;', '&#x1f6f3;', '&#x1f6f4;', '&#x1f6f5;', '&#x1f6f6;', '&#x1f6f7;', '&#x1f6f8;', '&#x1f6f9;', '&#x1f6fa;', '&#x1f6fb;', '&#x1f6fc;', '&#x1f7e0;', '&#x1f7e1;', '&#x1f7e2;', '&#x1f7e3;', '&#x1f7e4;', '&#x1f7e5;', '&#x1f7e6;', '&#x1f7e7;', '&#x1f7e8;', '&#x1f7e9;', '&#x1f7ea;', '&#x1f7eb;', '&#x1f7f0;', '&#x1f90c;', '&#x1f90d;', '&#x1f90e;', '&#x1f90f;', '&#x1f910;', '&#x1f911;', '&#x1f912;', '&#x1f913;', '&#x1f914;', '&#x1f915;', '&#x1f916;', '&#x1f917;', '&#x1f918;', '&#x1f919;', '&#x1f91a;', '&#x1f91b;', '&#x1f91c;', '&#x1f91e;', '&#x1f91f;', '&#x1f920;', '&#x1f921;', '&#x1f922;', '&#x1f923;', '&#x1f924;', '&#x1f925;', '&#x1f926;', '&#x1f927;', '&#x1f928;', '&#x1f929;', '&#x1f92a;', '&#x1f92b;', '&#x1f92c;', '&#x1f92d;', '&#x1f92e;', '&#x1f92f;', '&#x1f930;', '&#x1f931;', '&#x1f932;', '&#x1f933;', '&#x1f934;', '&#x1f935;', '&#x1f936;', '&#x1f937;', '&#x1f938;', '&#x1f939;', '&#x1f93a;', '&#x1f93c;', '&#x1f93d;', '&#x1f93e;', '&#x1f93f;', '&#x1f940;', '&#x1f941;', '&#x1f942;', '&#x1f943;', '&#x1f944;', '&#x1f945;', '&#x1f947;', '&#x1f948;', '&#x1f949;', '&#x1f94a;', '&#x1f94b;', '&#x1f94c;', '&#x1f94d;', '&#x1f94e;', '&#x1f94f;', '&#x1f950;', '&#x1f951;', '&#x1f952;', '&#x1f953;', '&#x1f954;', '&#x1f955;', '&#x1f956;', '&#x1f957;', '&#x1f958;', '&#x1f959;', '&#x1f95a;', '&#x1f95b;', '&#x1f95c;', '&#x1f95d;', '&#x1f95e;', '&#x1f95f;', '&#x1f960;', '&#x1f961;', '&#x1f962;', '&#x1f963;', '&#x1f964;', '&#x1f965;', '&#x1f966;', '&#x1f967;', '&#x1f968;', '&#x1f969;', '&#x1f96a;', '&#x1f96b;', '&#x1f96c;', '&#x1f96d;', '&#x1f96e;', '&#x1f96f;', '&#x1f970;', '&#x1f971;', '&#x1f972;', '&#x1f973;', '&#x1f974;', '&#x1f975;', '&#x1f976;', '&#x1f977;', '&#x1f978;', '&#x1f979;', '&#x1f97a;', '&#x1f97b;', '&#x1f97c;', '&#x1f97d;', '&#x1f97e;', '&#x1f97f;', '&#x1f980;', '&#x1f981;', '&#x1f982;', '&#x1f983;', '&#x1f984;', '&#x1f985;', '&#x1f986;', '&#x1f987;', '&#x1f988;', '&#x1f989;', '&#x1f98a;', '&#x1f98b;', '&#x1f98c;', '&#x1f98d;', '&#x1f98e;', '&#x1f98f;', '&#x1f990;', '&#x1f991;', '&#x1f992;', '&#x1f993;', '&#x1f994;', '&#x1f995;', '&#x1f996;', '&#x1f997;', '&#x1f998;', '&#x1f999;', '&#x1f99a;', '&#x1f99b;', '&#x1f99c;', '&#x1f99d;', '&#x1f99e;', '&#x1f99f;', '&#x1f9a0;', '&#x1f9a1;', '&#x1f9a2;', '&#x1f9a3;', '&#x1f9a4;', '&#x1f9a5;', '&#x1f9a6;', '&#x1f9a7;', '&#x1f9a8;', '&#x1f9a9;', '&#x1f9aa;', '&#x1f9ab;', '&#x1f9ac;', '&#x1f9ad;', '&#x1f9ae;', '&#x1f9b4;', '&#x1f9b5;', '&#x1f9b6;', '&#x1f9b7;', '&#x1f9b8;', '&#x1f9b9;', '&#x1f9bb;', '&#x1f9be;', '&#x1f9bf;', '&#x1f9c0;', '&#x1f9c1;', '&#x1f9c2;', '&#x1f9c3;', '&#x1f9c4;', '&#x1f9c5;', '&#x1f9c6;', '&#x1f9c7;', '&#x1f9c8;', '&#x1f9c9;', '&#x1f9ca;', '&#x1f9cb;', '&#x1f9cc;', '&#x1f9cd;', '&#x1f9ce;', '&#x1f9cf;', '&#x1f9d0;', '&#x1f9d1;', '&#x1f9d2;', '&#x1f9d3;', '&#x1f9d4;', '&#x1f9d5;', '&#x1f9d6;', '&#x1f9d7;', '&#x1f9d8;', '&#x1f9d9;', '&#x1f9da;', '&#x1f9db;', '&#x1f9dc;', '&#x1f9dd;', '&#x1f9de;', '&#x1f9df;', '&#x1f9e0;', '&#x1f9e1;', '&#x1f9e2;', '&#x1f9e3;', '&#x1f9e4;', '&#x1f9e5;', '&#x1f9e6;', '&#x1f9e7;', '&#x1f9e8;', '&#x1f9e9;', '&#x1f9ea;', '&#x1f9eb;', '&#x1f9ec;', '&#x1f9ed;', '&#x1f9ee;', '&#x1f9ef;', '&#x1f9f0;', '&#x1f9f1;', '&#x1f9f2;', '&#x1f9f3;', '&#x1f9f4;', '&#x1f9f5;', '&#x1f9f6;', '&#x1f9f7;', '&#x1f9f8;', '&#x1f9f9;', '&#x1f9fa;', '&#x1f9fb;', '&#x1f9fc;', '&#x1f9fd;', '&#x1f9fe;', '&#x1f9ff;', '&#x1fa70;', '&#x1fa71;', '&#x1fa72;', '&#x1fa73;', '&#x1fa74;', '&#x1fa78;', '&#x1fa79;', '&#x1fa7a;', '&#x1fa7b;', '&#x1fa7c;', '&#x1fa80;', '&#x1fa81;', '&#x1fa82;', '&#x1fa83;', '&#x1fa84;', '&#x1fa85;', '&#x1fa86;', '&#x1fa90;', '&#x1fa91;', '&#x1fa92;', '&#x1fa93;', '&#x1fa94;', '&#x1fa95;', '&#x1fa96;', '&#x1fa97;', '&#x1fa98;', '&#x1fa99;', '&#x1fa9a;', '&#x1fa9b;', '&#x1fa9c;', '&#x1fa9d;', '&#x1fa9e;', '&#x1fa9f;', '&#x1faa0;', '&#x1faa1;', '&#x1faa2;', '&#x1faa3;', '&#x1faa4;', '&#x1faa5;', '&#x1faa6;', '&#x1faa7;', '&#x1faa8;', '&#x1faa9;', '&#x1faaa;', '&#x1faab;', '&#x1faac;', '&#x1fab0;', '&#x1fab1;', '&#x1fab2;', '&#x1fab3;', '&#x1fab4;', '&#x1fab5;', '&#x1fab6;', '&#x1fab7;', '&#x1fab8;', '&#x1fab9;', '&#x1faba;', '&#x1fac0;', '&#x1fac1;', '&#x1fac2;', '&#x1fac3;', '&#x1fac4;', '&#x1fac5;', '&#x1fad0;', '&#x1fad1;', '&#x1fad2;', '&#x1fad3;', '&#x1fad4;', '&#x1fad5;', '&#x1fad6;', '&#x1fad7;', '&#x1fad8;', '&#x1fad9;', '&#x1fae0;', '&#x1fae1;', '&#x1fae2;', '&#x1fae3;', '&#x1fae4;', '&#x1fae5;', '&#x1fae6;', '&#x1fae7;', '&#x1faf0;', '&#x1faf1;', '&#x1faf2;', '&#x1faf3;', '&#x1faf4;', '&#x1faf5;', '&#x1faf6;', '&#x203c;', '&#x2049;', '&#x2122;', '&#x2139;', '&#x2194;', '&#x2195;', '&#x2196;', '&#x2197;', '&#x2198;', '&#x2199;', '&#x21a9;', '&#x21aa;', '&#x20e3;', '&#x231a;', '&#x231b;', '&#x2328;', '&#x23cf;', '&#x23e9;', '&#x23ea;', '&#x23eb;', '&#x23ec;', '&#x23ed;', '&#x23ee;', '&#x23ef;', '&#x23f0;', '&#x23f1;', '&#x23f2;', '&#x23f3;', '&#x23f8;', '&#x23f9;', '&#x23fa;', '&#x24c2;', '&#x25aa;', '&#x25ab;', '&#x25b6;', '&#x25c0;', '&#x25fb;', '&#x25fc;', '&#x25fd;', '&#x25fe;', '&#x2600;', '&#x2601;', '&#x2602;', '&#x2603;', '&#x2604;', '&#x260e;', '&#x2611;', '&#x2614;', '&#x2615;', '&#x2618;', '&#x261d;', '&#x2622;', '&#x2623;', '&#x2626;', '&#x262a;', '&#x262e;', '&#x262f;', '&#x2638;', '&#x2639;', '&#x263a;', '&#x2648;', '&#x2649;', '&#x264a;', '&#x264b;', '&#x264c;', '&#x264d;', '&#x264e;', '&#x264f;', '&#x2650;', '&#x2651;', '&#x2652;', '&#x2653;', '&#x265f;', '&#x2660;', '&#x2663;', '&#x2665;', '&#x2666;', '&#x2668;', '&#x267b;', '&#x267e;', '&#x267f;', '&#x2692;', '&#x2693;', '&#x2694;', '&#x2697;', '&#x2699;', '&#x269b;', '&#x269c;', '&#x26a0;', '&#x26a1;', '&#x26aa;', '&#x26ab;', '&#x26b0;', '&#x26b1;', '&#x26bd;', '&#x26be;', '&#x26c4;', '&#x26c5;', '&#x26c8;', '&#x26ce;', '&#x26cf;', '&#x26d1;', '&#x26d3;', '&#x26d4;', '&#x26e9;', '&#x26ea;', '&#x26f0;', '&#x26f1;', '&#x26f2;', '&#x26f3;', '&#x26f4;', '&#x26f5;', '&#x26f7;', '&#x26f8;', '&#x26f9;', '&#x26fa;', '&#x26fd;', '&#x2702;', '&#x2705;', '&#x2709;', '&#x270a;', '&#x270b;', '&#x270c;', '&#x270d;', '&#x270f;', '&#x2712;', '&#x2714;', '&#x2716;', '&#x271d;', '&#x2721;', '&#x2728;', '&#x2733;', '&#x2734;', '&#x2747;', '&#x274c;', '&#x274e;', '&#x2753;', '&#x2754;', '&#x2755;', '&#x2757;', '&#x2763;', '&#x2795;', '&#x2796;', '&#x2797;', '&#x27a1;', '&#x27b0;', '&#x27bf;', '&#x2934;', '&#x2935;', '&#x2b05;', '&#x2b06;', '&#x2b07;', '&#x2b1c;', '&#x2b50;', '&#x2b55;', '&#x3030;', '&#x303d;', '&#x3297;', '&#x3299;', '&#xe50a;' );
  5462. // END: emoji arrays
  5463. if ( 'entities' === $type ) {
  5464. return $entities;
  5465. }
  5466. return $partials;
  5467. }
  5468. /**
  5469. * Shortens a URL, to be used as link text.
  5470. *
  5471. * @since 1.2.0
  5472. * @since 4.4.0 Moved to wp-includes/formatting.php from wp-admin/includes/misc.php and added $length param.
  5473. *
  5474. * @param string $url URL to shorten.
  5475. * @param int $length Optional. Maximum length of the shortened URL. Default 35 characters.
  5476. * @return string Shortened URL.
  5477. */
  5478. function url_shorten( $url, $length = 35 ) {
  5479. $stripped = str_replace( array( 'https://', 'http://', 'www.' ), '', $url );
  5480. $short_url = untrailingslashit( $stripped );
  5481. if ( strlen( $short_url ) > $length ) {
  5482. $short_url = substr( $short_url, 0, $length - 3 ) . '&hellip;';
  5483. }
  5484. return $short_url;
  5485. }
  5486. /**
  5487. * Sanitizes a hex color.
  5488. *
  5489. * Returns either '', a 3 or 6 digit hex color (with #), or nothing.
  5490. * For sanitizing values without a #, see sanitize_hex_color_no_hash().
  5491. *
  5492. * @since 3.4.0
  5493. *
  5494. * @param string $color
  5495. * @return string|void
  5496. */
  5497. function sanitize_hex_color( $color ) {
  5498. if ( '' === $color ) {
  5499. return '';
  5500. }
  5501. // 3 or 6 hex digits, or the empty string.
  5502. if ( preg_match( '|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) {
  5503. return $color;
  5504. }
  5505. }
  5506. /**
  5507. * Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible.
  5508. *
  5509. * Saving hex colors without a hash puts the burden of adding the hash on the
  5510. * UI, which makes it difficult to use or upgrade to other color types such as
  5511. * rgba, hsl, rgb, and HTML color names.
  5512. *
  5513. * Returns either '', a 3 or 6 digit hex color (without a #), or null.
  5514. *
  5515. * @since 3.4.0
  5516. *
  5517. * @param string $color
  5518. * @return string|null
  5519. */
  5520. function sanitize_hex_color_no_hash( $color ) {
  5521. $color = ltrim( $color, '#' );
  5522. if ( '' === $color ) {
  5523. return '';
  5524. }
  5525. return sanitize_hex_color( '#' . $color ) ? $color : null;
  5526. }
  5527. /**
  5528. * Ensures that any hex color is properly hashed.
  5529. * Otherwise, returns value untouched.
  5530. *
  5531. * This method should only be necessary if using sanitize_hex_color_no_hash().
  5532. *
  5533. * @since 3.4.0
  5534. *
  5535. * @param string $color
  5536. * @return string
  5537. */
  5538. function maybe_hash_hex_color( $color ) {
  5539. $unhashed = sanitize_hex_color_no_hash( $color );
  5540. if ( $unhashed ) {
  5541. return '#' . $unhashed;
  5542. }
  5543. return $color;
  5544. }