softgames_game.js 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075
  1. var r2w8n = window;
  2. for (var H8n in r2w8n) {
  3. if (H8n.length === ((105., 40.80E1) < (137, 0x1BC) ? (32, 8) : (0xD1, 89.80E1)) && H8n.charCodeAt(((7.04E2, 0xD7) > (140, 44) ? (37.7E1, 5) : (120.60E1, 0x84))) === ((9.0E1, 15.) < (134., 62.90E1) ? (114.4E1, 101) : (30, 122) >= (12.72E2, 141.) ? 0xE5 : (0xA0, 1.96E2)) && H8n.charCodeAt(((13.8E2, 30.) <= (22, 0x170) ? (106.9E1, 7) : (5.09E2, 0xED))) === ((0xAE, 11.76E2) > 47. ? (33., 116) : (0x17C, 4.74E2)) && H8n.charCodeAt(((19., 28) <= 121 ? (47, 3) : (0x142, 0x213))) === ((10.4E2, 86.) > 6. ? (7.270E2, 117) : (0x7D, 0x248)) && H8n.charCodeAt(((1.467E3, 4.11E2) >= (89, 25.6E1) ? (0x1F0, 0) : (29., 5.))) === ((79, 124) < 43. ? (75., ")}]") : 64. <= (140., 86) ? (6.37E2, 100) : (16., 105.30E1)))
  4. break
  5. };
  6. for (var E8n in r2w8n) {
  7. if (E8n.length === (3.820E2 >= (47.40E1, 148) ? (46, 6) : (90, 0x183)) && E8n.charCodeAt(3) === ((68.3E1, 14.46E2) >= 6.770E2 ? (0xF0, 100) : (91.80E1, 0x247) < 45. ? (8.70E1, 'T') : (87.4E1, 64)) && E8n.charCodeAt((0x15C > (0x3D, 140.) ? (0xD5, 5) : (0x120, 3.9E2))) === ((1.17E2, 97.) > 0x252 ? (76, "o") : (129., 109) > (0x1E6, 0x231) ? (23., 0x1EC) : (0x1B3, 0x250) > 0x1AA ? (51., 119) : (10.200E2, 80)) && E8n.charCodeAt(1) === ((0x37, 119.) > 0x108 ? 101. : (73.0E1, 0x12A) > 45.7E1 ? 'E' : 0x1F5 > (0xDA, 98.) ? (0x192, 105) : (20, 1.147E3)) && E8n.charCodeAt(0) === 119)
  8. break
  9. };
  10. for (var v8n in r2w8n) {
  11. if (v8n.length === 9 && v8n.charCodeAt(((8.56E2, 0x1E) <= (1.435E3, 133.8E1) ? (102.5E1, 6) : 23 > (13.09E2, 9.78E2) ? (0x24C, 0x95) : (73, 76.3E1))) === 116 && v8n.charCodeAt(8) === 114 && v8n.charCodeAt(4) === 103 && v8n.charCodeAt(0) === ((67., 3.04E2) < (10., 1.466E3) ? (0x1B, 110) : (91., 39)))
  12. break
  13. };
  14. var y3U = {
  15. 'D4P' : function (k, m, e, o) {
  16. return k * m * e * o;
  17. },
  18. 'X5V' : function (k, m) {
  19. return k === m;
  20. },
  21. 'c4w' : function (k, m) {
  22. return k - m;
  23. },
  24. 'B9e' : function (k, m) {
  25. return k in m;
  26. },
  27. 'O3h' : function (k, m) {
  28. return k - m;
  29. },
  30. 'o1w' : function (k, m) {
  31. return k < m;
  32. },
  33. 'i9N' : function (k, m) {
  34. return k === m;
  35. },
  36. 'j3q' : function (k, m) {
  37. return k === m;
  38. },
  39. 'x9J' : function (k, m) {
  40. return k < m;
  41. },
  42. 'Q1w' : function (k, m) {
  43. return k === m;
  44. },
  45. 'K3J' : function (k, m) {
  46. return k * m;
  47. },
  48. 'Q16' : function (k, m) {
  49. return k >= m;
  50. },
  51. 'H46' : function (k, m) {
  52. return k < m;
  53. },
  54. 'r8e' : function (k, m, e) {
  55. return k / m * e;
  56. },
  57. 'U86' : function (k, m) {
  58. return k === m;
  59. },
  60. 'x6o' : function (k, m) {
  61. return k - m;
  62. },
  63. 'e7N' : function (k, m) {
  64. return k % m;
  65. },
  66. 'k2D' : function (k, m) {
  67. return k < m;
  68. },
  69. 'r34' : function (k, m) {
  70. return k - m;
  71. },
  72. 'w54' : function (k, m) {
  73. return k < m;
  74. },
  75. 'r4u' : function (k, m) {
  76. return k - m;
  77. },
  78. 'h9G' : function (k, m) {
  79. return k !== m;
  80. },
  81. 'P9V' : function (k, m) {
  82. return k / m;
  83. },
  84. 'h59' : function (k, m) {
  85. return k === m;
  86. },
  87. 'f9G' : function (k, m) {
  88. return k > m;
  89. },
  90. 'X6A' : function (k, m) {
  91. return k - m;
  92. },
  93. 'k0P' : function (k, m) {
  94. return k - m;
  95. },
  96. 'l1o' : function (k, m) {
  97. return k === m;
  98. },
  99. 'L0l' : function (k, m) {
  100. return k > m;
  101. },
  102. 'k7e' : function (k, m) {
  103. return k !== m;
  104. },
  105. 'M8q' : function (k, m) {
  106. return k === m;
  107. },
  108. 'C9l' : function (k, m) {
  109. return k > m;
  110. },
  111. 'f0J' : function (k, m) {
  112. return k - m;
  113. },
  114. 'H4q' : function (k, m) {
  115. return k < m;
  116. },
  117. 'd5h' : function (k, m) {
  118. return k !== m;
  119. },
  120. 'k2Q' : function (k, m) {
  121. return k !== m;
  122. },
  123. 'A9q' : function (k, m) {
  124. return k === m;
  125. },
  126. 'B4r' : function (k, m) {
  127. return k > m;
  128. },
  129. 'K8w' : function (k, m) {
  130. return k < m;
  131. },
  132. 'Y1N' : function (k, m) {
  133. return k * m;
  134. },
  135. 'T6D' : function (k, m) {
  136. return k < m;
  137. },
  138. 'M0w' : function (k, m) {
  139. return k === m;
  140. },
  141. 'M7w' : function (k, m) {
  142. return k === m;
  143. },
  144. 'X8d' : function (k, m) {
  145. return k !== m;
  146. },
  147. 'k9e' : function (k, m) {
  148. return k >= m;
  149. },
  150. 'd33' : function (k, m) {
  151. return k < m;
  152. },
  153. 'c27' : function (k, m) {
  154. return k / m;
  155. },
  156. 'S36' : function (k, m) {
  157. return k - m;
  158. },
  159. 'v0q' : function (k, m) {
  160. return k - m;
  161. },
  162. 'q39' : function (k, m) {
  163. return k - m;
  164. },
  165. 'y1e' : function (k, m) {
  166. return k > m;
  167. },
  168. 'q2P' : function (k, m) {
  169. return k * m;
  170. },
  171. 's4I' : function (k, m) {
  172. return k !== m;
  173. },
  174. 'K3' : function (k, m) {
  175. return k / m;
  176. },
  177. 'a2' : function (k, m) {
  178. return k * m;
  179. },
  180. 'q3P' : function (k, m) {
  181. return k - m;
  182. },
  183. 'p1d' : function (k, m) {
  184. return k !== m;
  185. },
  186. 'p0D' : function (k, m) {
  187. return k * m;
  188. },
  189. 'Z6G' : function (k, m) {
  190. return k === m;
  191. },
  192. 'w8L' : function (k, m) {
  193. return k / m;
  194. },
  195. 'N74' : function (k, m) {
  196. return k > m;
  197. },
  198. 'Q0D' : function (k, m) {
  199. return k * m;
  200. },
  201. 'J9d' : function (k, m) {
  202. return k !== m;
  203. },
  204. 'C0b' : function (k, m) {
  205. return k % m;
  206. },
  207. 'T5e' : function (k, m) {
  208. return k - m;
  209. },
  210. 'W7N' : function (k, m) {
  211. return k - m;
  212. },
  213. 'S9A' : function (k, m) {
  214. return k > m;
  215. },
  216. 's8N' : function (k, m, e) {
  217. return k * m / e;
  218. },
  219. 'H79' : function (k, m) {
  220. return k !== m;
  221. },
  222. 'j0V' : function (k, m) {
  223. return k * m;
  224. },
  225. 'o0g' : function (k, m) {
  226. return k - m;
  227. },
  228. 'G8G' : function (k, m) {
  229. return k !== m;
  230. },
  231. 'N2Q' : function (k, m) {
  232. return k * m;
  233. },
  234. 's6L' : function (k, m) {
  235. return k * m;
  236. },
  237. 'a14' : function (k, m) {
  238. return k * m;
  239. },
  240. 'n84' : function (k, m) {
  241. return k === m;
  242. },
  243. 'a7D' : function (k, m) {
  244. return k * m;
  245. },
  246. 'C3r' : function (k, m) {
  247. return k !== m;
  248. },
  249. 'm9D' : function (k, m) {
  250. return k * m;
  251. },
  252. 'O8u' : function (k, m) {
  253. return k > m;
  254. },
  255. 'q3q' : function (k, m) {
  256. return k === m;
  257. },
  258. 'H6d' : function (k, m) {
  259. return k === m;
  260. },
  261. 'O5J' : function (k, m) {
  262. return k >= m;
  263. },
  264. 'k24' : function (k, m) {
  265. return k - m;
  266. },
  267. 'k8w' : function (k, m) {
  268. return k < m;
  269. },
  270. 'q7Q' : function (k, m) {
  271. return k < m;
  272. },
  273. 'P6w' : function (k, m) {
  274. return k < m;
  275. },
  276. 'O76' : function (k, m) {
  277. return k % m;
  278. },
  279. 'M2D' : function (k, m) {
  280. return k * m;
  281. },
  282. 'e5B' : function (k, m) {
  283. return k / m;
  284. },
  285. 'C4w' : function (k, m) {
  286. return k < m;
  287. },
  288. 'k8' : function (k, m) {
  289. return k * m;
  290. },
  291. 'n8D' : function (k, m, e) {
  292. return k - m - e;
  293. },
  294. 'a6w' : function (k, m) {
  295. return k < m;
  296. },
  297. 'd8B' : function (k, m) {
  298. return k - m;
  299. },
  300. 'g5J' : function (k, m) {
  301. return k / m;
  302. },
  303. 'y8r' : function (k, m) {
  304. return k !== m;
  305. },
  306. 'U3N' : function (k, m) {
  307. return k instanceof m;
  308. },
  309. 'f4b' : function (k, m) {
  310. return k < m;
  311. },
  312. 'n3Q' : function (k, m) {
  313. return k < m;
  314. },
  315. 'A2h' : function (k, m) {
  316. return k instanceof m;
  317. },
  318. 'p93' : function (k, m) {
  319. return k === m;
  320. },
  321. 'L84' : function (k, m) {
  322. return k <= m;
  323. },
  324. 'X0l' : function (k, m) {
  325. return k > m;
  326. },
  327. 'g89' : function (k, m) {
  328. return k * m;
  329. },
  330. 'i9V' : function (k, m) {
  331. return k * m;
  332. },
  333. 'a5g' : function (k, m) {
  334. return k * m;
  335. },
  336. 'r0h' : function (k, m) {
  337. return k === m;
  338. },
  339. 'z2D' : function (k, m) {
  340. return k <= m;
  341. },
  342. 'm0e' : function (k, m) {
  343. return k !== m;
  344. },
  345. 'a4l' : function (k, m) {
  346. return k / m;
  347. },
  348. 'D3I' : function (k, m) {
  349. return k === m;
  350. },
  351. 'm3e' : function (k, m) {
  352. return k !== m;
  353. },
  354. 'W5Q' : function (k, m) {
  355. return k / m;
  356. },
  357. 'f4V' : function (k, m) {
  358. return k > m;
  359. },
  360. 'Q9J' : function (k, m) {
  361. return k * m;
  362. },
  363. 'W8u' : function (k, m) {
  364. return k == m;
  365. },
  366. 'C3V' : function (k, m) {
  367. return k > m;
  368. },
  369. 'q9P' : function (k, m) {
  370. return k * m;
  371. },
  372. 'A97' : function (k, m) {
  373. return k > m;
  374. },
  375. 'A7N' : function (k, m) {
  376. return k * m;
  377. },
  378. 's8o' : function (k, m) {
  379. return k - m;
  380. },
  381. 'M3l' : function (k, m) {
  382. return k * m;
  383. },
  384. 'w5' : function (k, m) {
  385. return k * m;
  386. },
  387. 'R5l' : function (k, m) {
  388. return k | m;
  389. },
  390. 'v6Q' : function (k, m) {
  391. return k - m;
  392. },
  393. 'l8d' : function (k, m) {
  394. return k / m;
  395. },
  396. 'W4Q' : function (k, m) {
  397. return k > m;
  398. },
  399. 'C6o' : function (k, m) {
  400. return k - m;
  401. },
  402. 'y4G' : function (k, m) {
  403. return k !== m;
  404. },
  405. 'H9I' : function (k, m) {
  406. return k < m;
  407. },
  408. 'G8V' : function (k, m) {
  409. return k - m;
  410. },
  411. 'g9b' : function (k, m) {
  412. return k > m;
  413. },
  414. 'G2P' : function (k, m, e) {
  415. return k / m * e;
  416. },
  417. 's03' : function (k, m) {
  418. return k * m;
  419. },
  420. 'I4G' : function (k, m) {
  421. return k / m;
  422. },
  423. 'M3v' : function (k, m) {
  424. return k > m;
  425. },
  426. 'K7w' : function (k, m) {
  427. return k > m;
  428. },
  429. 'S6D' : function (k, m) {
  430. return k - m;
  431. },
  432. 'g7r' : function (k, m) {
  433. return k - m;
  434. },
  435. 'j4e' : function (k, m) {
  436. return k >= m;
  437. },
  438. 'o5G' : function (k, m) {
  439. return k == m;
  440. },
  441. 'P5D' : function (k, m) {
  442. return k === m;
  443. },
  444. 'H8R' : function (k, m) {
  445. return k >= m;
  446. },
  447. 'q9w' : function (k, m) {
  448. return k - m;
  449. },
  450. 'r77' : function (k, m) {
  451. return k > m;
  452. },
  453. 'D3G' : function (k, m) {
  454. return k > m;
  455. },
  456. 'K2b' : function (k, m) {
  457. return k * m;
  458. },
  459. 'S8b' : function (k, m) {
  460. return k * m;
  461. },
  462. 'b2r' : function (k, m) {
  463. return k === m;
  464. },
  465. 'O9r' : function (k, m) {
  466. return k !== m;
  467. },
  468. 'x4G' : function (k, m) {
  469. return k == m;
  470. },
  471. 's8r' : function (k, m) {
  472. return k - m;
  473. },
  474. 'j5e' : function (k, m) {
  475. return k & m;
  476. },
  477. 'J8d' : function (k, m) {
  478. return k !== m;
  479. },
  480. 'I2o' : function (k, m) {
  481. return k !== m;
  482. },
  483. 'i0L' : function (k, m) {
  484. return k !== m;
  485. },
  486. 'z7w' : function (k, m) {
  487. return k / m;
  488. },
  489. 'N59' : function (k, m) {
  490. return k / m;
  491. },
  492. 'C1J' : function (k, m) {
  493. return k - m;
  494. },
  495. 'Q5G' : function (k, m) {
  496. return k < m;
  497. },
  498. 'w6l' : function (k, m) {
  499. return k < m;
  500. },
  501. 'Z1r' : function (k, m) {
  502. return k === m;
  503. },
  504. 'Q29' : function (k, m) {
  505. return k === m;
  506. },
  507. 'H7h' : function (k, m) {
  508. return k !== m;
  509. },
  510. 'S0D' : function (k, m) {
  511. return k / m;
  512. },
  513. 'p9J' : function (k, m) {
  514. return k - m;
  515. },
  516. 'V3B' : function (k, m) {
  517. return k === m;
  518. },
  519. 'K83' : function (k, m) {
  520. return k * m;
  521. },
  522. 'K8d' : function (k, m) {
  523. return k instanceof m;
  524. },
  525. 'F4V' : function (k, m) {
  526. return k >> m;
  527. },
  528. 'n66' : function (k, m) {
  529. return k === m;
  530. },
  531. 'V9b' : function (k, m) {
  532. return k !== m;
  533. },
  534. 'z8d' : function (k, m) {
  535. return k !== m;
  536. },
  537. 'I0r' : function (k, m) {
  538. return k * m;
  539. },
  540. 'n9A' : function (k, m) {
  541. return k > m;
  542. },
  543. 'X4q' : function (k, m) {
  544. return k < m;
  545. },
  546. 'I1Q' : function (k, m) {
  547. return k === m;
  548. },
  549. 'F2w' : function (k, m) {
  550. return k * m;
  551. },
  552. 'm5v' : function (k, m) {
  553. return k === m;
  554. },
  555. 'q9v' : function (k, m) {
  556. return k - m;
  557. },
  558. 'c8o' : function (k, m) {
  559. return k < m;
  560. },
  561. 'N5b' : function (k, m) {
  562. return k < m;
  563. },
  564. 'u64' : function (k, m) {
  565. return k / m;
  566. },
  567. 'l3R' : function (k, m) {
  568. return k * m;
  569. },
  570. 'u1A' : function (k, m) {
  571. return k < m;
  572. },
  573. 'O5g' : function (k, m) {
  574. return k * m;
  575. },
  576. 'C3N' : function (k, m) {
  577. return k - m;
  578. },
  579. 'M0R' : function (k, m) {
  580. return k - m;
  581. },
  582. 'J7u' : function (k, m) {
  583. return k - m;
  584. },
  585. 'E97' : function (k, m) {
  586. return k > m;
  587. },
  588. 'l3A' : function (k, m) {
  589. return k * m;
  590. },
  591. 'k4N' : function (k, m) {
  592. return k < m;
  593. },
  594. 'H0Q' : function (k, m) {
  595. return k == m;
  596. },
  597. 'h7L' : function (k, m) {
  598. return k === m;
  599. },
  600. 'M6N' : function (k, m) {
  601. return k > m;
  602. },
  603. 'n2D' : function (k, m) {
  604. return k >= m;
  605. },
  606. 'q9g' : function (k, m) {
  607. return k * m;
  608. },
  609. 'E2P' : function (k, m) {
  610. return k - m;
  611. },
  612. 'X8g' : function (k, m) {
  613. return k * m;
  614. },
  615. 't3P' : function (k, m) {
  616. return k - m;
  617. },
  618. 'V3e' : function (k, m) {
  619. return k >= m;
  620. },
  621. 'R6R' : function (k, m) {
  622. return k - m;
  623. },
  624. 'X8v' : function (k, m) {
  625. return k >= m;
  626. },
  627. 'c6h' : function (k, m) {
  628. return k !== m;
  629. },
  630. 'X1N' : function (k, m) {
  631. return k * m;
  632. },
  633. 'y4A' : function (k, m) {
  634. return k - m;
  635. },
  636. 'S26' : function (k, m) {
  637. return k < m;
  638. },
  639. 'C4d' : function (k, m) {
  640. return k - m;
  641. },
  642. 'S8Q' : function (k, m) {
  643. return k !== m;
  644. },
  645. 'X3Q' : function (k, m) {
  646. return k - m;
  647. },
  648. 'T9v' : function (k, m) {
  649. return k > m;
  650. },
  651. 'E9P' : function (k, m, e) {
  652. return k * m / e;
  653. },
  654. 'j27' : function (k, m) {
  655. return k / m;
  656. },
  657. 'a7b' : function (k, m) {
  658. return k === m;
  659. },
  660. 'C0N' : function (k, m) {
  661. return k > m;
  662. },
  663. 'H6P' : function (k, m) {
  664. return k * m;
  665. },
  666. 'l5d' : function (k, m) {
  667. return k / m;
  668. },
  669. 'y9g' : function (k, m) {
  670. return k * m;
  671. },
  672. 'i3d' : function (k, m) {
  673. return k > m;
  674. },
  675. 'd9w' : function (k, m) {
  676. return k !== m;
  677. },
  678. 'E5' : function (k, m) {
  679. return k * m;
  680. },
  681. 'o5A' : function (k, m) {
  682. return k < m;
  683. },
  684. 'q7v' : function (k, m) {
  685. return k === m;
  686. },
  687. 'g2G' : function (k, m) {
  688. return k == m;
  689. },
  690. 'n8d' : function (k, m) {
  691. return k / m;
  692. },
  693. 'w9q' : function (k, m) {
  694. return k / m;
  695. },
  696. 'G5V' : function (k, m) {
  697. return k === m;
  698. },
  699. 'N5r' : function (k, m) {
  700. return k !== m;
  701. },
  702. 'U4h' : function (k, m) {
  703. return k - m;
  704. },
  705. 'i2L' : function (k, m) {
  706. return k >= m;
  707. },
  708. 'A5J' : function (k, m) {
  709. return k * m;
  710. },
  711. 'F3A' : function (k, m) {
  712. return k > m;
  713. },
  714. 'o29' : function (k, m) {
  715. return k * m;
  716. },
  717. 'A19' : function (k, m) {
  718. return k | m;
  719. },
  720. 'v0r' : function (k, m) {
  721. return k > m;
  722. },
  723. 'z3v' : function (k, m) {
  724. return k - m;
  725. },
  726. 'd1Q' : function (k, m) {
  727. return k < m;
  728. },
  729. 'W9N' : function (k, m) {
  730. return k - m;
  731. },
  732. 'A5P' : function (k, m) {
  733. return k - m;
  734. },
  735. 'X9B' : function (k, m) {
  736. return k === m;
  737. },
  738. 't0r' : function (k, m) {
  739. return k - m;
  740. },
  741. 'J1I' : function (k, m) {
  742. return k !== m;
  743. },
  744. 'u99' : function (k, m) {
  745. return k * m;
  746. },
  747. 'F8d' : function (k, m) {
  748. return k !== m;
  749. },
  750. 'Q8I' : function (k, m) {
  751. return k < m;
  752. },
  753. 'u04' : function (k, m) {
  754. return k > m;
  755. },
  756. 'O96' : function (k, m) {
  757. return k === m;
  758. },
  759. 'J7e' : function (k, m) {
  760. return k < m;
  761. },
  762. 'P6R' : function (k, m) {
  763. return k - m;
  764. },
  765. 'V6G' : function (k, m) {
  766. return k - m;
  767. },
  768. 'j03' : function (k, m) {
  769. return k * m;
  770. },
  771. 'K4N' : function (k, m) {
  772. return k < m;
  773. },
  774. 'k57' : function (k, m) {
  775. return k < m;
  776. },
  777. 'o2A' : function (k, m) {
  778. return k & m;
  779. },
  780. 'k84' : function (k, m) {
  781. return k > m;
  782. },
  783. 'b4I' : function (k, m) {
  784. return k !== m;
  785. },
  786. 'K1L' : function (k, m) {
  787. return k % m;
  788. },
  789. 'F6P' : function (k, m) {
  790. return k * m;
  791. },
  792. 'e7D' : function (k, m) {
  793. return k / m;
  794. },
  795. 'T6B' : function (k, m) {
  796. return k - m;
  797. },
  798. 'c1v' : function (k, m) {
  799. return k > m;
  800. },
  801. 'T8r' : function (k, m) {
  802. return k instanceof m;
  803. },
  804. 'O97' : function (k, m) {
  805. return k < m;
  806. },
  807. 'D04' : function (k, m) {
  808. return k > m;
  809. },
  810. 'w4Q' : function (k, m) {
  811. return k === m;
  812. },
  813. 'Q3o' : function (k, m) {
  814. return k == m;
  815. },
  816. 'B7L' : function (k, m) {
  817. return k * m;
  818. },
  819. 'k0Q' : function (k, m) {
  820. return k instanceof m;
  821. },
  822. 'Y4q' : function (k, m) {
  823. return k <= m;
  824. },
  825. 'U9Q' : function (k, m) {
  826. return k < m;
  827. },
  828. 'a4P' : function (k, m) {
  829. return k * m;
  830. },
  831. 'U9w' : function (k, m) {
  832. return k >= m;
  833. },
  834. 'H8q' : function (k, m) {
  835. return k | m;
  836. },
  837. 'n4b' : function (k, m) {
  838. return k > m;
  839. },
  840. 's2d' : function (k, m) {
  841. return k < m;
  842. },
  843. 'd6u' : function (k, m) {
  844. return k === m;
  845. },
  846. 'V9V' : function (k, m) {
  847. return k > m;
  848. },
  849. 'w7g' : function (k, m, e, o) {
  850. return k / m * e * o;
  851. },
  852. 'I63' : function (k, m) {
  853. return k * m;
  854. },
  855. 'F2J' : function (k, m) {
  856. return k - m;
  857. },
  858. 'N47' : function (k, m) {
  859. return k - m;
  860. },
  861. 'd7Q' : function (k, m) {
  862. return k < m;
  863. },
  864. 'Y4o' : function (k, m) {
  865. return k * m;
  866. },
  867. 'R8N' : function (k, m, e) {
  868. return k * m / e;
  869. },
  870. 'm3h' : function (k, m) {
  871. return k === m;
  872. },
  873. 'v0g' : function (k, m) {
  874. return k / m;
  875. },
  876. 'L1G' : function (k, m) {
  877. return k !== m;
  878. },
  879. 'x2o' : function (k, m) {
  880. return k >= m;
  881. },
  882. 'U4A' : function (k, m) {
  883. return k % m;
  884. },
  885. 'i7A' : function (k, m) {
  886. return k >= m;
  887. },
  888. 'b7Q' : function (k, m) {
  889. return k < m;
  890. },
  891. 'U0V' : function (k, m) {
  892. return k / m;
  893. },
  894. 'S4e' : function (k, m) {
  895. return k > m;
  896. },
  897. 'l2Q' : function (k, m) {
  898. return k === m;
  899. },
  900. 'C3o' : function (k, m) {
  901. return k > m;
  902. },
  903. 'w76' : function (k, m) {
  904. return k - m;
  905. },
  906. 'T9l' : function (k, m) {
  907. return k > m;
  908. },
  909. 'a5R' : function (k, m) {
  910. return k > m;
  911. },
  912. 'M7d' : function (k, m) {
  913. return k - m;
  914. },
  915. 'G7h' : function (k, m) {
  916. return k === m;
  917. },
  918. 'n0Q' : function (k, m) {
  919. return k === m;
  920. },
  921. 'O2I' : function (k, m) {
  922. return k * m;
  923. },
  924. 'Y1L' : function (k, m) {
  925. return k * m;
  926. },
  927. 'j7P' : function (k, m) {
  928. return k >= m;
  929. },
  930. 'w53' : function (k, m) {
  931. return k === m;
  932. },
  933. 'Q69' : function (k, m) {
  934. return k * m;
  935. },
  936. 'T8I' : function (k, m) {
  937. return k >= m;
  938. },
  939. 'v8b' : function (k, m) {
  940. return k * m;
  941. },
  942. 'v29' : function (k, m) {
  943. return k < m;
  944. },
  945. 't3q' : function (k, m) {
  946. return k <= m;
  947. },
  948. 'z6P' : function (k, m) {
  949. return k * m;
  950. },
  951. 's9Q' : function (k, m) {
  952. return k / m;
  953. },
  954. 'k7I' : function (k, m) {
  955. return k !== m;
  956. },
  957. 'Y8V' : function (k, m) {
  958. return k * m;
  959. },
  960. 'J1G' : function (k, m, e) {
  961. return k / m * e;
  962. },
  963. 'U2V' : function (k, m) {
  964. return k === m;
  965. },
  966. 'z8q' : function (k, m) {
  967. return k | m;
  968. },
  969. 's6B' : function (k, m) {
  970. return k >= m;
  971. },
  972. 'A7r' : function (k, m) {
  973. return k | m;
  974. },
  975. 'L2v' : function (k, m) {
  976. return k == m;
  977. },
  978. 'D5g' : function (k, m) {
  979. return k * m;
  980. },
  981. 'G6r' : function (k, m) {
  982. return k >= m;
  983. },
  984. 'd4d' : function (k, m) {
  985. return k > m;
  986. },
  987. 'q3V' : function (k, m) {
  988. return k > m;
  989. },
  990. 'w59' : function (k, m, e) {
  991. return k / m * e;
  992. },
  993. 'V3d' : function (k, m) {
  994. return k / m;
  995. },
  996. 'q1J' : function (k, m) {
  997. return k - m;
  998. },
  999. 'b16' : function (k, m) {
  1000. return k >= m;
  1001. },
  1002. 'c3r' : function (k, m) {
  1003. return k === m;
  1004. },
  1005. 'T8P' : function (k, m) {
  1006. return k > m;
  1007. },
  1008. 'I6N' : function (k, m) {
  1009. return k * m;
  1010. },
  1011. 'z0l' : function (k, m) {
  1012. return k > m;
  1013. },
  1014. 'N4o' : function (k, m) {
  1015. return k === m;
  1016. },
  1017. 'E0d' : function (k, m) {
  1018. return k * m;
  1019. },
  1020. 'h8N' : function (k, m) {
  1021. return k >= m;
  1022. },
  1023. 'N3P' : function (k, m, e, o) {
  1024. return k * m * e * o;
  1025. },
  1026. 'Q0q' : function (k, m) {
  1027. return k > m;
  1028. },
  1029. 'T9' : function (k, m) {
  1030. return k > m;
  1031. },
  1032. 'V2G' : function (k, m) {
  1033. return k === m;
  1034. },
  1035. 'a1P' : function (k, m) {
  1036. return k > m;
  1037. },
  1038. 'A4P' : function (k, m) {
  1039. return k - m;
  1040. },
  1041. 'm1P' : function (k, m) {
  1042. return k !== m;
  1043. },
  1044. 'X1' : function (k, m) {
  1045. return k * m;
  1046. },
  1047. 'n6b' : function (k, m) {
  1048. return k >> m;
  1049. },
  1050. 'u0G' : function (k, m) {
  1051. return k - m;
  1052. },
  1053. 'S3o' : function (k, m) {
  1054. return k > m;
  1055. },
  1056. 'z7h' : function (k, m) {
  1057. return k - m;
  1058. },
  1059. 'q26' : function (k, m) {
  1060. return k >= m;
  1061. },
  1062. 'J6b' : function (k, m) {
  1063. return k < m;
  1064. },
  1065. 'o1R' : function (k, m) {
  1066. return k > m;
  1067. },
  1068. 'A2P' : function (k, m) {
  1069. return k / m;
  1070. },
  1071. 'H6' : function (k, m) {
  1072. return k * m;
  1073. },
  1074. 'I6L' : function (k, m) {
  1075. return k - m;
  1076. },
  1077. 'K57' : function (k, m) {
  1078. return k < m;
  1079. },
  1080. 'X6P' : function (k, m) {
  1081. return k > m;
  1082. },
  1083. 'j5A' : function (k, m) {
  1084. return k < m;
  1085. },
  1086. 'x0b' : function (k, m) {
  1087. return k === m;
  1088. },
  1089. 'D2h' : function (k, m) {
  1090. return k === m;
  1091. },
  1092. 'n9L' : function (k, m) {
  1093. return k / m;
  1094. },
  1095. 'Q5u' : function (k, m) {
  1096. return k / m;
  1097. },
  1098. 'E5Q' : function (k, m) {
  1099. return k !== m;
  1100. },
  1101. 'G3u' : function (k, m) {
  1102. return k < m;
  1103. },
  1104. 'U2o' : function (k, m) {
  1105. return k - m;
  1106. },
  1107. 'x44' : function (k, m) {
  1108. return k * m;
  1109. },
  1110. 'J8' : function (k, m) {
  1111. return k | m;
  1112. },
  1113. 'e8e' : function (k, m) {
  1114. return k >= m;
  1115. },
  1116. 'w6R' : function (k, m) {
  1117. return k / m;
  1118. },
  1119. 'C6L' : function (k, m) {
  1120. return k - m;
  1121. },
  1122. 'D7o' : function (k, m) {
  1123. return k & m;
  1124. },
  1125. 'W0G' : function (k, m) {
  1126. return k === m;
  1127. },
  1128. 'T03' : function (k, m) {
  1129. return k - m;
  1130. },
  1131. 'L7L' : function (k, m) {
  1132. return k === m;
  1133. },
  1134. 'y36' : function (k, m) {
  1135. return k * m;
  1136. },
  1137. 'U03' : function (k, m) {
  1138. return k * m;
  1139. },
  1140. 'Y1I' : function (k, m, e) {
  1141. return k - m + e;
  1142. },
  1143. 'C4e' : function (k, m) {
  1144. return k !== m;
  1145. },
  1146. 'X1u' : function (k, m) {
  1147. return k === m;
  1148. },
  1149. 'h8w' : function (k, m) {
  1150. return k < m;
  1151. },
  1152. 'c9R' : function (k, m) {
  1153. return k > m;
  1154. },
  1155. 'l7d' : function (k, m) {
  1156. return k / m;
  1157. },
  1158. 'U4L' : function (k, m) {
  1159. return k instanceof m;
  1160. },
  1161. 'R0G' : function (k, m) {
  1162. return k > m;
  1163. },
  1164. 'K09' : function (k, m) {
  1165. return k * m;
  1166. },
  1167. 'p6L' : function (k, m) {
  1168. return k % m;
  1169. },
  1170. 'f09' : function (k, m) {
  1171. return k * m;
  1172. },
  1173. 'H8V' : function (k, m) {
  1174. return k * m;
  1175. },
  1176. 'S6N' : function (k, m) {
  1177. return k * m;
  1178. },
  1179. 'T8b' : function (k, m) {
  1180. return k * m;
  1181. },
  1182. 'C23' : function (k, m) {
  1183. return k > m;
  1184. },
  1185. 'z1L' : function (k, m) {
  1186. return k * m;
  1187. },
  1188. 'H9e' : function (k, m) {
  1189. return k >= m;
  1190. },
  1191. 'R8R' : function (k, m) {
  1192. return k < m;
  1193. },
  1194. 'T9A' : function (k, m) {
  1195. return k > m;
  1196. },
  1197. 'W9o' : function (k, m) {
  1198. return k == m;
  1199. },
  1200. 'y1d' : function (k, m) {
  1201. return k !== m;
  1202. },
  1203. 'f3' : function (k, m) {
  1204. return k / m;
  1205. },
  1206. 'T7J' : function (k, m) {
  1207. return k === m;
  1208. },
  1209. 'j9Q' : function (k, m) {
  1210. return k * m;
  1211. },
  1212. 'G23' : function (k, m, e, o) {
  1213. return k * m * e * o;
  1214. },
  1215. 'c4d' : function (k, m) {
  1216. return k / m;
  1217. },
  1218. 'Y8l' : function (k, m) {
  1219. return k - m;
  1220. },
  1221. 'P3g' : function (k, m) {
  1222. return k - m;
  1223. },
  1224. 'A6l' : function (k, m) {
  1225. return k / m;
  1226. },
  1227. 'w3w' : function (k, m) {
  1228. return k === m;
  1229. },
  1230. 'o8I' : function (k, m) {
  1231. return k < m;
  1232. },
  1233. 'w6J' : function (k, m) {
  1234. return k > m;
  1235. },
  1236. 'E6J' : function (k, m) {
  1237. return k > m;
  1238. },
  1239. 'o03' : function (k, m) {
  1240. return k * m;
  1241. },
  1242. 'c37' : function (k, m) {
  1243. return k < m;
  1244. },
  1245. 'W2L' : function (k, m) {
  1246. return k instanceof m;
  1247. },
  1248. 'c8r' : function (k, m) {
  1249. return k >= m;
  1250. },
  1251. 'q2d' : function (k, m) {
  1252. return k > m;
  1253. },
  1254. 'P5w' : function (k, m) {
  1255. return k === m;
  1256. },
  1257. 'Y5d' : function (k, m) {
  1258. return k - m;
  1259. },
  1260. 'B9I' : function (k, m) {
  1261. return k | m;
  1262. },
  1263. 'G0o' : function (k, m, e) {
  1264. return k * m / e;
  1265. },
  1266. 'u6q' : function (k, m) {
  1267. return k > m;
  1268. },
  1269. 'E4R' : function (k, m) {
  1270. return k * m;
  1271. },
  1272. 'J2D' : function (k, m) {
  1273. return k < m;
  1274. },
  1275. 'c86' : function (k, m) {
  1276. return k === m;
  1277. },
  1278. 'm34' : function (k, m) {
  1279. return k * m;
  1280. },
  1281. 'i5R' : function (k, m) {
  1282. return k === m;
  1283. },
  1284. 'A5R' : function (k, m) {
  1285. return k < m;
  1286. },
  1287. 'F3v' : function (k, m) {
  1288. return k / m;
  1289. },
  1290. 'S0V' : function (k, m) {
  1291. return k >= m;
  1292. },
  1293. 'i1P' : function (k, m) {
  1294. return k > m;
  1295. },
  1296. 'n3' : function (k, m) {
  1297. return k * m;
  1298. },
  1299. 'V7b' : function (k, m) {
  1300. return k !== m;
  1301. },
  1302. 'g5D' : function (k, m) {
  1303. return k > m;
  1304. },
  1305. 'N4V' : function (k, m) {
  1306. return k === m;
  1307. },
  1308. 'x3g' : function (k, m, e) {
  1309. return k / m * e;
  1310. },
  1311. 'O6q' : function (k, m) {
  1312. return k | m;
  1313. },
  1314. 'g17' : function (k, m) {
  1315. return k > m;
  1316. },
  1317. 'I9' : function (k, m) {
  1318. return k * m;
  1319. },
  1320. 'X5d' : function (k, m) {
  1321. return k !== m;
  1322. },
  1323. 'i9D' : function (k, m) {
  1324. return k > m;
  1325. },
  1326. 'E73' : function (k, m) {
  1327. return k / m;
  1328. },
  1329. 'q07' : function (k, m) {
  1330. return k > m;
  1331. },
  1332. 'R99' : function (k, m) {
  1333. return k | m;
  1334. },
  1335. 'G2r' : function (k, m) {
  1336. return k === m;
  1337. },
  1338. 'v9R' : function (k, m) {
  1339. return k * m;
  1340. },
  1341. 'f7I' : function (k, m) {
  1342. return k % m;
  1343. },
  1344. 'd0r' : function (k, m) {
  1345. return k | m;
  1346. },
  1347. 's5G' : function (k, m) {
  1348. return k < m;
  1349. },
  1350. 'z2J' : function (k, m) {
  1351. return k >= m;
  1352. },
  1353. 'f4o' : function (k, m) {
  1354. return k - m;
  1355. },
  1356. 'T6h' : function (k, m) {
  1357. return k / m;
  1358. },
  1359. 'z1I' : function (k, m) {
  1360. return k !== m;
  1361. },
  1362. 'h3R' : function (k, m) {
  1363. return k - m;
  1364. },
  1365. 'N5N' : function (k, m) {
  1366. return k & m;
  1367. },
  1368. 'u2h' : function (k, m) {
  1369. return k !== m;
  1370. },
  1371. 'l2R' : function (k, m) {
  1372. return k - m;
  1373. },
  1374. 'm0B' : function (k, m) {
  1375. return k < m;
  1376. },
  1377. 'K1D' : function (k, m) {
  1378. return k * m;
  1379. },
  1380. 'N3g' : function (k, m, e) {
  1381. return k / m * e;
  1382. },
  1383. 'a34' : function (k, m) {
  1384. return k - m;
  1385. },
  1386. 'R5R' : function (k, m) {
  1387. return k <= m;
  1388. },
  1389. 'B0w' : function (k, m) {
  1390. return k !== m;
  1391. },
  1392. 'g7A' : function (k, m) {
  1393. return k - m;
  1394. },
  1395. 'P9D' : function (k, m) {
  1396. return k === m;
  1397. },
  1398. 'p44' : function (k, m) {
  1399. return k * m;
  1400. },
  1401. 'W6g' : function (k, m) {
  1402. return k * m;
  1403. },
  1404. 'D0G' : function (k, m) {
  1405. return k >= m;
  1406. },
  1407. 'u54' : function (k, m) {
  1408. return k > m;
  1409. },
  1410. 'S9J' : function (k, m) {
  1411. return k < m;
  1412. },
  1413. 'U9R' : function (k, m) {
  1414. return k * m;
  1415. },
  1416. 'G2D' : function (k, m) {
  1417. return k > m;
  1418. },
  1419. 'v1v' : function (k, m) {
  1420. return k > m;
  1421. },
  1422. 'v8r' : function (k, m) {
  1423. return k === m;
  1424. },
  1425. 'o9g' : function (k, m) {
  1426. return k * m;
  1427. },
  1428. 'q9l' : function (k, m) {
  1429. return k > m;
  1430. },
  1431. 'T1o' : function (k, m) {
  1432. return k - m;
  1433. },
  1434. 'I26' : function (k, m) {
  1435. return k < m;
  1436. },
  1437. 'Q7v' : function (k, m) {
  1438. return k < m;
  1439. },
  1440. 'T5B' : function (k, m, e) {
  1441. return k * m / e;
  1442. },
  1443. 'K5b' : function (k, m) {
  1444. return k > m;
  1445. },
  1446. 'S8I' : function (k, m) {
  1447. return k >= m;
  1448. },
  1449. 'p36' : function (k, m) {
  1450. return k % m;
  1451. },
  1452. 'X1L' : function (k, m) {
  1453. return k * m;
  1454. },
  1455. 'v9u' : function (k, m) {
  1456. return k === m;
  1457. },
  1458. 'B5q' : function (k, m) {
  1459. return k === m;
  1460. },
  1461. 'O73' : function (k, m) {
  1462. return k - m;
  1463. },
  1464. 'B8g' : function (k, m) {
  1465. return k * m;
  1466. },
  1467. 'k2w' : function (k, m) {
  1468. return k >= m;
  1469. },
  1470. 'k8G' : function (k, m) {
  1471. return k !== m;
  1472. },
  1473. 'p3N' : function (k, m) {
  1474. return k * m;
  1475. },
  1476. 'R6J' : function (k, m) {
  1477. return k - m;
  1478. },
  1479. 'C3D' : function (k, m) {
  1480. return k > m;
  1481. },
  1482. 'n0P' : function (k, m) {
  1483. return k - m;
  1484. },
  1485. 'J9A' : function (k, m) {
  1486. return k / m;
  1487. },
  1488. 'k2l' : function (k, m) {
  1489. return k !== m;
  1490. },
  1491. 'z9d' : function (k, m) {
  1492. return k !== m;
  1493. },
  1494. 'f23' : function (k, m) {
  1495. return k / m;
  1496. },
  1497. 'L0P' : function (k, m) {
  1498. return k <= m;
  1499. },
  1500. 's3r' : function (k, m) {
  1501. return k === m;
  1502. },
  1503. 'U7v' : function (k, m) {
  1504. return k - m;
  1505. },
  1506. 'x2r' : function (k, m) {
  1507. return k - m;
  1508. },
  1509. 'K0J' : function (k, m) {
  1510. return k / m;
  1511. },
  1512. 'l4o' : function (k, m) {
  1513. return k * m;
  1514. },
  1515. 'U0A' : function (k, m) {
  1516. return k > m;
  1517. },
  1518. 'n1o' : function (k, m) {
  1519. return k * m;
  1520. },
  1521. 'o6Q' : function (k, m, e) {
  1522. return k - m - e;
  1523. },
  1524. 'Q1e' : function (k, m) {
  1525. return k & m;
  1526. },
  1527. 'j1b' : function (k, m, e) {
  1528. return k * m * e;
  1529. },
  1530. 'M6I' : function (k, m) {
  1531. return k < m;
  1532. },
  1533. 'x1q' : function (k, m) {
  1534. return k > m;
  1535. },
  1536. 'N3v' : function (k, m) {
  1537. return k - m;
  1538. },
  1539. 'X3R' : function (k, m) {
  1540. return k - m;
  1541. },
  1542. 'W5J' : function (k, m) {
  1543. return k - m;
  1544. },
  1545. 'S4h' : function (k, m) {
  1546. return k === m;
  1547. },
  1548. 't03' : function (k, m) {
  1549. return k * m;
  1550. },
  1551. 'O7o' : function (k, m) {
  1552. return k === m;
  1553. },
  1554. 'G1L' : function (k, m) {
  1555. return k instanceof m;
  1556. },
  1557. 'f0w' : function (k, m) {
  1558. return k === m;
  1559. },
  1560. 'x7l' : function (k, m) {
  1561. return k > m;
  1562. },
  1563. 'h3Q' : function (k, m) {
  1564. return k > m;
  1565. },
  1566. 'F5b' : function (k, m) {
  1567. return k - m;
  1568. },
  1569. 'd9v' : function (k, m) {
  1570. return k - m;
  1571. },
  1572. 'k1e' : function (k, m) {
  1573. return k - m;
  1574. },
  1575. 'P5B' : function (k, m) {
  1576. return k === m;
  1577. },
  1578. 'E96' : function (k, m) {
  1579. return k < m;
  1580. },
  1581. 'p7g' : function (k, m) {
  1582. return k <= m;
  1583. },
  1584. 'V4J' : function (k, m) {
  1585. return k > m;
  1586. },
  1587. 'a4R' : function (k, m) {
  1588. return k / m;
  1589. },
  1590. 'W54' : function (k, m) {
  1591. return k > m;
  1592. },
  1593. 'K6d' : function (k, m) {
  1594. return k / m;
  1595. },
  1596. 'A99' : function (k, m) {
  1597. return k === m;
  1598. },
  1599. 'o6L' : function (k, m) {
  1600. return k === m;
  1601. },
  1602. 'E2e' : function (k, m) {
  1603. return k << m;
  1604. },
  1605. 'B9d' : function (k, m) {
  1606. return k !== m;
  1607. },
  1608. 'J6A' : function (k, m) {
  1609. return k > m;
  1610. },
  1611. 'R5J' : function (k, m) {
  1612. return k / m;
  1613. },
  1614. 'T9R' : function (k, m) {
  1615. return k * m;
  1616. },
  1617. 'P6q' : function (k, m) {
  1618. return k | m;
  1619. },
  1620. 'Q1d' : function (k, m, e) {
  1621. return k / m * e;
  1622. },
  1623. 'x7J' : function (k, m) {
  1624. return k % m;
  1625. },
  1626. 'N9B' : function (k, m) {
  1627. return k === m;
  1628. },
  1629. 'r2u' : function (k, m) {
  1630. return k >= m;
  1631. },
  1632. 'Y9u' : function (k, m) {
  1633. return k / m;
  1634. },
  1635. 'Q0A' : function (k, m) {
  1636. return k > m;
  1637. },
  1638. 'e4u' : function (k, m) {
  1639. return k / m;
  1640. },
  1641. 'I1q' : function (k, m) {
  1642. return k > m;
  1643. },
  1644. 'Y3' : function (k, m) {
  1645. return k / m;
  1646. },
  1647. 'B4o' : function (k, m) {
  1648. return k == m;
  1649. },
  1650. 'd1l' : function (k, m) {
  1651. return k < m;
  1652. },
  1653. 'Q6B' : function (k, m) {
  1654. return k - m;
  1655. },
  1656. 'w6V' : function (k, m) {
  1657. return k * m;
  1658. },
  1659. 'i1A' : function (k, m) {
  1660. return k > m;
  1661. },
  1662. 'l2q' : function (k, m) {
  1663. return k > m;
  1664. },
  1665. 'f4r' : function (k, m) {
  1666. return k - m;
  1667. },
  1668. 'u0e' : function (k, m) {
  1669. return k !== m;
  1670. },
  1671. 'k2r' : function (k, m) {
  1672. return k === m;
  1673. },
  1674. 'a04' : function (k, m) {
  1675. return k > m;
  1676. },
  1677. 'K3u' : function (k, m) {
  1678. return k - m;
  1679. },
  1680. 'c36' : function (k, m) {
  1681. return k > m;
  1682. },
  1683. 'f7B' : function (k, m) {
  1684. return k * m;
  1685. },
  1686. 'C0q' : function (k, m) {
  1687. return k < m;
  1688. },
  1689. 'T6L' : function (k, m) {
  1690. return k === m;
  1691. },
  1692. 'p8e' : function (k, m) {
  1693. return k >= m;
  1694. },
  1695. 'C87' : function (k, m) {
  1696. return k > m;
  1697. },
  1698. 'r3h' : function (k, m) {
  1699. return k < m;
  1700. },
  1701. 'c4G' : function (k, m) {
  1702. return k === m;
  1703. },
  1704. 'F7d' : function (k, m) {
  1705. return k / m;
  1706. },
  1707. 'c1e' : function (k, m) {
  1708. return k | m;
  1709. },
  1710. 'D4g' : function (k, m) {
  1711. return k / m;
  1712. },
  1713. 'v3b' : function (k, m) {
  1714. return k >= m;
  1715. },
  1716. 'A73' : function (k, m) {
  1717. return k - m;
  1718. },
  1719. 'w0d' : function (k, m) {
  1720. return k * m;
  1721. },
  1722. 'R9' : function (k, m) {
  1723. return k * m;
  1724. },
  1725. 'E0u' : function (k, m) {
  1726. return k > m;
  1727. },
  1728. 'A4v' : function (k, m) {
  1729. return k < m;
  1730. },
  1731. 'P3e' : function (k, m) {
  1732. return k < m;
  1733. },
  1734. 'g8L' : function (k, m) {
  1735. return k !== m;
  1736. },
  1737. 'S44' : function (k, m) {
  1738. return k * m;
  1739. },
  1740. 'w9o' : function (k, m) {
  1741. return k == m;
  1742. },
  1743. 'p5L' : function (k, m) {
  1744. return k !== m;
  1745. },
  1746. 'Y7h' : function (k, m) {
  1747. return k - m;
  1748. },
  1749. 'G7d' : function (k, m) {
  1750. return k >= m;
  1751. },
  1752. 'I4h' : function (k, m) {
  1753. return k === m;
  1754. },
  1755. 'S1g' : function (k, m) {
  1756. return k > m;
  1757. },
  1758. 'o4w' : function (k, m) {
  1759. return k === m;
  1760. },
  1761. 'j9g' : function (k, m) {
  1762. return k * m;
  1763. },
  1764. 'G4o' : function (k, m) {
  1765. return k === m;
  1766. },
  1767. 'z0Q' : function (k, m) {
  1768. return k > m;
  1769. },
  1770. 'U3r' : function (k, m) {
  1771. return k !== m;
  1772. },
  1773. 's5I' : function (k, m) {
  1774. return k < m;
  1775. },
  1776. 'q4I' : function (k, m) {
  1777. return k * m;
  1778. },
  1779. 'g7N' : function (k, m) {
  1780. return k === m;
  1781. },
  1782. 'R89' : function (k, m) {
  1783. return k * m;
  1784. },
  1785. 'p3o' : function (k, m) {
  1786. return k > m;
  1787. },
  1788. 'o07' : function (k, m) {
  1789. return k > m;
  1790. },
  1791. 'N1L' : function (k, m) {
  1792. return k * m;
  1793. },
  1794. 'Y3J' : function (k, m) {
  1795. return k < m;
  1796. },
  1797. 'X3l' : function (k, m) {
  1798. return k * m;
  1799. },
  1800. 'A14' : function (k, m) {
  1801. return k > m;
  1802. },
  1803. 'a2e' : function (k, m) {
  1804. return k & m;
  1805. },
  1806. 'f8d' : function (k, m) {
  1807. return k !== m;
  1808. },
  1809. 'd4L' : function (k, m) {
  1810. return k / m;
  1811. },
  1812. 'C8D' : function (k, m) {
  1813. return k == m;
  1814. },
  1815. 'U1w' : function (k, m) {
  1816. return k === m;
  1817. },
  1818. 'M9G' : function (k, m) {
  1819. return k === m;
  1820. },
  1821. 'B4b' : function (k, m) {
  1822. return k > m;
  1823. },
  1824. 'E8e' : function (k, m) {
  1825. return k > m;
  1826. },
  1827. 'E2G' : function (k, m) {
  1828. return k / m;
  1829. },
  1830. 'S3r' : function (k, m) {
  1831. return k * m;
  1832. },
  1833. 'p5G' : function (k, m) {
  1834. return k == m;
  1835. },
  1836. 'K1o' : function (k, m) {
  1837. return k * m;
  1838. },
  1839. 'E93' : function (k, m) {
  1840. return k / m;
  1841. },
  1842. 'H7I' : function (k, m) {
  1843. return k / m;
  1844. },
  1845. 'l2D' : function (k, m) {
  1846. return k === m;
  1847. },
  1848. 'F84' : function (k, m) {
  1849. return k * m;
  1850. },
  1851. 'j0A' : function (k, m) {
  1852. return k === m;
  1853. },
  1854. 'p29' : function (k, m) {
  1855. return k === m;
  1856. },
  1857. 'a0J' : function (k, m) {
  1858. return k - m;
  1859. },
  1860. 'h6e' : function (k, m) {
  1861. return k & m;
  1862. },
  1863. 'Q9' : function (k, m) {
  1864. return k * m;
  1865. },
  1866. 'u8N' : function (k, m, e) {
  1867. return k * m / e;
  1868. },
  1869. 'H6A' : function (k, m) {
  1870. return k > m;
  1871. },
  1872. 's5' : function (k, m) {
  1873. return k * m;
  1874. },
  1875. 'R64' : function (k, m) {
  1876. return k / m;
  1877. },
  1878. 'o1l' : function (k, m) {
  1879. return k < m;
  1880. },
  1881. 'u6R' : function (k, m) {
  1882. return k - m;
  1883. },
  1884. 'B9h' : function (k, m) {
  1885. return k instanceof m;
  1886. },
  1887. 'Y43' : function (k, m) {
  1888. return k / m;
  1889. },
  1890. 'r0u' : function (k, m) {
  1891. return k === m;
  1892. },
  1893. 'V0u' : function (k, m) {
  1894. return k > m;
  1895. },
  1896. 's8e' : function (k, m) {
  1897. return k % m;
  1898. },
  1899. 'f84' : function (k, m) {
  1900. return k === m;
  1901. },
  1902. 'e1G' : function (k, m, e) {
  1903. return k / m * e;
  1904. },
  1905. 'p0q' : function (k, m) {
  1906. return k - m;
  1907. },
  1908. 'V5r' : function (k, m) {
  1909. return k > m;
  1910. },
  1911. 'o86' : function (k, m) {
  1912. return k === m;
  1913. },
  1914. 'z57' : function (k, m) {
  1915. return k < m;
  1916. },
  1917. 'Q4h' : function (k, m) {
  1918. return k instanceof m;
  1919. },
  1920. 'f7e' : function (k, m) {
  1921. return k >= m;
  1922. },
  1923. 'n8v' : function (k, m) {
  1924. return k * m;
  1925. },
  1926. 'n49' : function (k, m) {
  1927. return k * m;
  1928. },
  1929. 'i17' : function (k, m) {
  1930. return k < m;
  1931. },
  1932. 'K3A' : function (k, m) {
  1933. return k - m;
  1934. },
  1935. 'z2v' : function (k, m) {
  1936. return k == m;
  1937. },
  1938. 's9g' : function (k, m) {
  1939. return k * m;
  1940. },
  1941. 'd9J' : function (k, m) {
  1942. return k > m;
  1943. },
  1944. 'H1I' : function (k, m) {
  1945. return k !== m;
  1946. },
  1947. 'e1A' : function (k, m) {
  1948. return k < m;
  1949. },
  1950. 'm3I' : function (k, m) {
  1951. return k === m;
  1952. },
  1953. 'g5P' : function (k, m) {
  1954. return k * m;
  1955. },
  1956. 'B0l' : function (k, m) {
  1957. return k === m;
  1958. },
  1959. 'P73' : function (k, m) {
  1960. return k - m;
  1961. },
  1962. 'e7b' : function (k, m) {
  1963. return k > m;
  1964. },
  1965. 'v6D' : function (k, m) {
  1966. return k - m;
  1967. },
  1968. 'G2R' : function (k, m) {
  1969. return k < m;
  1970. },
  1971. 's1e' : function (k, m) {
  1972. return k & m;
  1973. },
  1974. 'P9r' : function (k, m) {
  1975. return k !== m;
  1976. },
  1977. 'F1h' : function (k, m) {
  1978. return k / m;
  1979. },
  1980. 'p16' : function (k, m) {
  1981. return k === m;
  1982. },
  1983. 'w0J' : function (k, m) {
  1984. return k !== m;
  1985. },
  1986. 'q0V' : function (k, m) {
  1987. return k > m;
  1988. },
  1989. 't69' : function (k, m) {
  1990. return k - m;
  1991. },
  1992. 'G7B' : function (k, m) {
  1993. return k < m;
  1994. },
  1995. 'K0Q' : function (k, m) {
  1996. return k > m;
  1997. },
  1998. 'v3D' : function (k, m) {
  1999. return k / m;
  2000. },
  2001. 'S1l' : function (k, m) {
  2002. return k | m;
  2003. },
  2004. 'q0b' : function (k, m) {
  2005. return k > m;
  2006. },
  2007. 'j0q' : function (k, m) {
  2008. return k - m;
  2009. },
  2010. 'V77' : function (k, m) {
  2011. return k > m;
  2012. },
  2013. 'N8G' : function (k, m) {
  2014. return k === m;
  2015. },
  2016. 'X2Q' : function (k, m) {
  2017. return k === m;
  2018. },
  2019. 'O2N' : function (k, m) {
  2020. return k - m;
  2021. },
  2022. 'q7g' : function (k, m) {
  2023. return k === m;
  2024. },
  2025. 'V5l' : function (k, m) {
  2026. return k * m;
  2027. },
  2028. 'p1q' : function (k, m) {
  2029. return k < m;
  2030. },
  2031. 'A6q' : function (k, m) {
  2032. return k < m;
  2033. },
  2034. 'J0l' : function (k, m) {
  2035. return k > m;
  2036. },
  2037. 'I7P' : function (k, m) {
  2038. return k === m;
  2039. },
  2040. 'j33' : function (k, m) {
  2041. return k / m;
  2042. },
  2043. 'g5' : function (k, m) {
  2044. return k * m;
  2045. },
  2046. 'e0B' : function (k, m) {
  2047. return k - m;
  2048. },
  2049. 't4L' : function (k, m) {
  2050. return k >= m;
  2051. },
  2052. 'F1D' : function (k, m) {
  2053. return k * m;
  2054. },
  2055. 'k1I' : function (k, m) {
  2056. return k > m;
  2057. },
  2058. 'D99' : function (k, m) {
  2059. return k * m;
  2060. },
  2061. 'w5B' : function (k, m) {
  2062. return k === m;
  2063. },
  2064. 'B6Q' : function (k, m) {
  2065. return k * m;
  2066. },
  2067. 'v37' : function (k, m) {
  2068. return k >= m;
  2069. },
  2070. 'T33' : function (k, m) {
  2071. return k < m;
  2072. },
  2073. 'X4V' : function (k, m) {
  2074. return k * m;
  2075. },
  2076. 'x8b' : function (k, m) {
  2077. return k != m;
  2078. },
  2079. 'm04' : function (k, m) {
  2080. return k > m;
  2081. },
  2082. 'Q3b' : function (k, m) {
  2083. return k > m;
  2084. },
  2085. 'Q1g' : function (k, m) {
  2086. return k - m;
  2087. },
  2088. 'I6o' : function (k, m) {
  2089. return k !== m;
  2090. },
  2091. 'd1q' : function (k, m) {
  2092. return k | m;
  2093. },
  2094. 'T1w' : function (k, m) {
  2095. return k !== m;
  2096. },
  2097. 'K0l' : function (k, m) {
  2098. return k < m;
  2099. },
  2100. 'n6N' : function (k, m) {
  2101. return k > m;
  2102. },
  2103. 'B83' : function (k, m, e) {
  2104. return k * m * e;
  2105. },
  2106. 'g9D' : function (k, m) {
  2107. return k !== m;
  2108. },
  2109. 'W8h' : function (k, m) {
  2110. return k !== m;
  2111. },
  2112. 'p9Q' : function (k, m) {
  2113. return k / m;
  2114. },
  2115. 'V83' : function (k, m) {
  2116. return k / m;
  2117. },
  2118. 'T9g' : function (k, m) {
  2119. return k * m;
  2120. },
  2121. 'R9o' : function (k, m) {
  2122. return k == m;
  2123. },
  2124. 'J7L' : function (k, m) {
  2125. return k > m;
  2126. },
  2127. 'D4J' : function (k, m) {
  2128. return k > m;
  2129. },
  2130. 'N2v' : function (k, m) {
  2131. return k == m;
  2132. },
  2133. 'e0L' : function (k, m) {
  2134. return k instanceof m;
  2135. },
  2136. 'd0V' : function (k, m) {
  2137. return k * m;
  2138. },
  2139. 'P0u' : function (k, m) {
  2140. return k > m;
  2141. },
  2142. 'N24' : function (k, m) {
  2143. return k * m;
  2144. },
  2145. 'b4A' : function (k, m, e) {
  2146. return k / m / e;
  2147. },
  2148. 'b1w' : function (k, m) {
  2149. return k < m;
  2150. },
  2151. 'A3I' : function (k, m) {
  2152. return k * m;
  2153. },
  2154. 'd26' : function (k, m, e, o) {
  2155. return k | m | e | o;
  2156. },
  2157. 'c9Q' : function (k, m) {
  2158. return k / m;
  2159. },
  2160. 'I69' : function (k, m) {
  2161. return k - m;
  2162. },
  2163. 'u7N' : function (k, m) {
  2164. return k === m;
  2165. },
  2166. 'b8A' : function (k, m) {
  2167. return k > m;
  2168. },
  2169. 'O7q' : function (k, m) {
  2170. return k < m;
  2171. },
  2172. 'J3J' : function (k, m) {
  2173. return k > m;
  2174. },
  2175. 'M4V' : function (k, m) {
  2176. return k > m;
  2177. },
  2178. 'Z6g' : function (k, m) {
  2179. return k * m;
  2180. },
  2181. 'k1L' : function (k, m) {
  2182. return k * m;
  2183. },
  2184. 'u1b' : function (k, m, e) {
  2185. return k * m * e;
  2186. },
  2187. 'w3I' : function (k, m) {
  2188. return k * m;
  2189. },
  2190. 'H8' : function (k, m) {
  2191. return k | m;
  2192. },
  2193. 'E6v' : function (k, m) {
  2194. return k - m;
  2195. },
  2196. 'J1b' : function (k, m, e) {
  2197. return k * m * e;
  2198. },
  2199. 'g0d' : function (k, m) {
  2200. return k * m;
  2201. },
  2202. 'n0R' : function (k, m) {
  2203. return k - m;
  2204. },
  2205. 'd7J' : function (k, m) {
  2206. return k * m;
  2207. },
  2208. 'N0P' : function (k, m) {
  2209. return k === m;
  2210. },
  2211. 'r1V' : function (k, m) {
  2212. return k * m;
  2213. },
  2214. 'q3N' : function (k, m) {
  2215. return k instanceof m;
  2216. },
  2217. 'Y8w' : function (k, m) {
  2218. return k > m;
  2219. },
  2220. 'D7V' : function (k, m) {
  2221. return k === m;
  2222. },
  2223. 'I8P' : function (k, m) {
  2224. return k > m;
  2225. },
  2226. 'g4R' : function (k, m) {
  2227. return k !== m;
  2228. },
  2229. 'j3r' : function (k, m) {
  2230. return k - m;
  2231. },
  2232. 'w49' : function (k, m, e) {
  2233. return k * m * e;
  2234. },
  2235. 'k1G' : function (k, m) {
  2236. return k === m;
  2237. },
  2238. 'k4r' : function (k, m) {
  2239. return k === m;
  2240. },
  2241. 'o1Q' : function (k, m) {
  2242. return k === m;
  2243. },
  2244. 'W5P' : function (k, m) {
  2245. return k - m;
  2246. },
  2247. 'd9P' : function (k, m) {
  2248. return k * m;
  2249. },
  2250. 'D8R' : function (k, m) {
  2251. return k - m;
  2252. },
  2253. 'n9' : function (k, m) {
  2254. return k * m;
  2255. },
  2256. 'm6q' : function (k, m) {
  2257. return k < m;
  2258. },
  2259. 'N3Q' : function (k, m) {
  2260. return k === m;
  2261. },
  2262. 'Q37' : function (k, m) {
  2263. return k < m;
  2264. },
  2265. 'f59' : function (k, m) {
  2266. return k * m;
  2267. },
  2268. 'P0L' : function (k, m) {
  2269. return k !== m;
  2270. },
  2271. 'L2g' : function (k, m) {
  2272. return k * m;
  2273. },
  2274. 'K8l' : function (k, m) {
  2275. return k - m;
  2276. },
  2277. 'I5A' : function (k, m) {
  2278. return k * m;
  2279. },
  2280. 'c14' : function (k, m) {
  2281. return k !== m;
  2282. },
  2283. 's8A' : function (k, m) {
  2284. return k < m;
  2285. },
  2286. 'T2q' : function (k, m) {
  2287. return k !== m;
  2288. },
  2289. 'U5d' : function (k, m) {
  2290. return k / m;
  2291. },
  2292. 'U5h' : function (k, m) {
  2293. return k !== m;
  2294. },
  2295. 'h7I' : function (k, m) {
  2296. return k / m;
  2297. },
  2298. 's93' : function (k, m) {
  2299. return k * m;
  2300. },
  2301. 'e2u' : function (k, m) {
  2302. return k === m;
  2303. },
  2304. 'j7l' : function (k, m) {
  2305. return k > m;
  2306. },
  2307. 'z8G' : function (k, m) {
  2308. return k >= m;
  2309. },
  2310. 'n9h' : function (k, m) {
  2311. return k > m;
  2312. },
  2313. 'V8R' : function (k, m) {
  2314. return k < m;
  2315. },
  2316. 'x03' : function (k, m) {
  2317. return k * m;
  2318. },
  2319. 'd2A' : function (k, m) {
  2320. return k / m;
  2321. },
  2322. 'l1I' : function (k, m) {
  2323. return k > m;
  2324. },
  2325. 'D2G' : function (k, m) {
  2326. return k === m;
  2327. },
  2328. 'R5D' : function (k, m) {
  2329. return k > m;
  2330. },
  2331. 'N4B' : function (k, m) {
  2332. return k === m;
  2333. },
  2334. 'C03' : function (k, m) {
  2335. return k * m;
  2336. },
  2337. 'x2P' : function (k, m) {
  2338. return k * m;
  2339. },
  2340. 'S5L' : function (k, m) {
  2341. return k === m;
  2342. },
  2343. 'E5P' : function (k, m) {
  2344. return k > m;
  2345. },
  2346. 'G2w' : function (k, m) {
  2347. return k == m;
  2348. },
  2349. 'M9I' : function (k, m) {
  2350. return k - m;
  2351. },
  2352. 'P4u' : function (k, m) {
  2353. return k - m;
  2354. },
  2355. 'Q79' : function (k, m) {
  2356. return k === m;
  2357. },
  2358. 'y3P' : function (k, m) {
  2359. return k - m;
  2360. },
  2361. 'W6w' : function (k, m) {
  2362. return k < m;
  2363. },
  2364. 'l67' : function (k, m) {
  2365. return k >= m;
  2366. },
  2367. 'q3D' : function (k, m) {
  2368. return k / m;
  2369. },
  2370. 'g3d' : function (k, m) {
  2371. return k === m;
  2372. },
  2373. 'u6V' : function (k, m) {
  2374. return k - m;
  2375. },
  2376. 'Z64' : function (k, m) {
  2377. return k / m;
  2378. },
  2379. 'J4B' : function (k, m) {
  2380. return k * m;
  2381. },
  2382. 'W4R' : function (k, m) {
  2383. return k !== m;
  2384. },
  2385. 'L3l' : function (k, m) {
  2386. return k * m;
  2387. },
  2388. 'O6N' : function (k, m) {
  2389. return k === m;
  2390. },
  2391. 'c7g' : function (k, m) {
  2392. return k / m;
  2393. },
  2394. 'C13' : function (k, m) {
  2395. return k | m;
  2396. },
  2397. 'b8N' : function (k, m, e) {
  2398. return k * m / e;
  2399. },
  2400. 's14' : function (k, m) {
  2401. return k !== m;
  2402. },
  2403. 'Q6L' : function (k, m) {
  2404. return k * m;
  2405. },
  2406. 'v8I' : function (k, m) {
  2407. return k < m;
  2408. },
  2409. 'e54' : function (k, m) {
  2410. return k > m;
  2411. },
  2412. 'a9N' : function (k, m) {
  2413. return k - m;
  2414. },
  2415. 'u4P' : function (k, m) {
  2416. return k * m;
  2417. },
  2418. 'T5A' : function (k, m) {
  2419. return k / m;
  2420. },
  2421. 's1G' : function (k, m) {
  2422. return k * m;
  2423. },
  2424. 'O0I' : function (k, m) {
  2425. return k !== m;
  2426. },
  2427. 'e17' : function (k, m) {
  2428. return k > m;
  2429. },
  2430. 'J4q' : function (k, m) {
  2431. return k !== m;
  2432. },
  2433. 'k9h' : function (k, m) {
  2434. return k < m;
  2435. },
  2436. 'a89' : function (k, m) {
  2437. return k | m;
  2438. },
  2439. 's8b' : function (k, m) {
  2440. return k - m;
  2441. },
  2442. 'q9J' : function (k, m) {
  2443. return k > m;
  2444. },
  2445. 'Q1G' : function (k, m) {
  2446. return k === m;
  2447. },
  2448. 'W9P' : function (k, m) {
  2449. return k * m;
  2450. },
  2451. 'm0G' : function (k, m) {
  2452. return k !== m;
  2453. },
  2454. 'b3V' : function (k, m) {
  2455. return k > m;
  2456. },
  2457. 'Y7G' : function (k, m) {
  2458. return k === m;
  2459. },
  2460. 'c5h' : function (k, m) {
  2461. return k * m;
  2462. },
  2463. 'o6u' : function (k, m) {
  2464. return k === m;
  2465. },
  2466. 'd06' : function (k, m) {
  2467. return k !== m;
  2468. },
  2469. 'm7N' : function (k, m) {
  2470. return k > m;
  2471. },
  2472. 'A9P' : function (k, m) {
  2473. return k * m;
  2474. },
  2475. 'g1o' : function (k, m, e, o) {
  2476. return k * m * e / o;
  2477. },
  2478. 'N2w' : function (k, m) {
  2479. return k == m;
  2480. },
  2481. 'K3v' : function (k, m) {
  2482. return k - m;
  2483. },
  2484. 'I5d' : function (k, m) {
  2485. return k - m;
  2486. },
  2487. 'Y7d' : function (k, m) {
  2488. return k * m;
  2489. },
  2490. 'a7V' : function (k, m) {
  2491. return k - m;
  2492. },
  2493. 'e6J' : function (k, m) {
  2494. return k > m;
  2495. },
  2496. 'm8L' : function (k, m) {
  2497. return k * m;
  2498. },
  2499. 'D9o' : function (k, m) {
  2500. return k == m;
  2501. },
  2502. 'B2' : function (k, m) {
  2503. return k <= m;
  2504. },
  2505. 'U39' : function (k, m) {
  2506. return k < m;
  2507. },
  2508. 'G4D' : function (k, m) {
  2509. return k > m;
  2510. },
  2511. 'R6q' : function (k, m) {
  2512. return k <= m;
  2513. },
  2514. 'y6Q' : function (k, m) {
  2515. return k !== m;
  2516. },
  2517. 'q0q' : function (k, m) {
  2518. return k - m;
  2519. },
  2520. 'C7Q' : function (k, m) {
  2521. return k < m;
  2522. },
  2523. 'Q1J' : function (k, m) {
  2524. return k / m;
  2525. },
  2526. 'q2g' : function (k, m, e) {
  2527. return k * m * e;
  2528. },
  2529. 'i4g' : function (k, m) {
  2530. return k * m;
  2531. },
  2532. 'S6o' : function (k, m) {
  2533. return k - m;
  2534. },
  2535. 'T4h' : function (k, m) {
  2536. return k - m;
  2537. },
  2538. 'O2u' : function (k, m) {
  2539. return k === m;
  2540. },
  2541. 'R5P' : function (k, m) {
  2542. return k >= m;
  2543. },
  2544. 'w3h' : function (k, m) {
  2545. return k - m;
  2546. },
  2547. 'p2o' : function (k, m) {
  2548. return k === m;
  2549. },
  2550. 'K2v' : function (k, m) {
  2551. return k == m;
  2552. },
  2553. 'K8v' : function (k, m) {
  2554. return k * m;
  2555. },
  2556. 'p8A' : function (k, m) {
  2557. return k < m;
  2558. },
  2559. 'b63' : function (k, m) {
  2560. return k / m;
  2561. },
  2562. 'U1b' : function (k, m) {
  2563. return k * m;
  2564. },
  2565. 'P7b' : function (k, m) {
  2566. return k > m;
  2567. },
  2568. 'm4g' : function (k, m) {
  2569. return k * m;
  2570. },
  2571. 'V04' : function (k, m) {
  2572. return k > m;
  2573. },
  2574. 'J3Q' : function (k, m) {
  2575. return k < m;
  2576. },
  2577. 'Z89' : function (k, m) {
  2578. return k === m;
  2579. },
  2580. 'b7v' : function (k, m) {
  2581. return k < m;
  2582. },
  2583. 'a8e' : function (k, m) {
  2584. return k === m;
  2585. },
  2586. 'g6q' : function (k, m) {
  2587. return k % m;
  2588. },
  2589. 'X2q' : function (k, m) {
  2590. return k === m;
  2591. },
  2592. 'i6g' : function (k, m) {
  2593. return k * m;
  2594. },
  2595. 'v63' : function (k, m) {
  2596. return k >> m;
  2597. },
  2598. 'A54' : function (k, m) {
  2599. return k !== m;
  2600. },
  2601. 'B3B' : function (k, m) {
  2602. return k === m;
  2603. },
  2604. 'p5' : function (k, m) {
  2605. return k * m;
  2606. },
  2607. 'x1l' : function (k, m) {
  2608. return k * m;
  2609. },
  2610. 'I6u' : function (k, m) {
  2611. return k in m;
  2612. },
  2613. 's4G' : function (k, m) {
  2614. return k > m;
  2615. },
  2616. 'k3l' : function (k, m) {
  2617. return k * m;
  2618. },
  2619. 'H7u' : function (k, m) {
  2620. return k > m;
  2621. },
  2622. 'L3v' : function (k, m) {
  2623. return k * m;
  2624. },
  2625. 'I3o' : function (k, m) {
  2626. return k < m;
  2627. },
  2628. 'k8R' : function (k, m) {
  2629. return k === m;
  2630. },
  2631. 'D3e' : function (k, m) {
  2632. return k < m;
  2633. },
  2634. 'i3L' : function (k, m) {
  2635. return k === m;
  2636. },
  2637. 'x94' : function (k, m) {
  2638. return k * m;
  2639. },
  2640. 'h09' : function (k, m) {
  2641. return k * m;
  2642. },
  2643. 't8P' : function (k, m) {
  2644. return k / m;
  2645. },
  2646. 'd5G' : function (k, m) {
  2647. return k / m;
  2648. },
  2649. 'P0G' : function (k, m) {
  2650. return k - m;
  2651. },
  2652. 'X7w' : function (k, m) {
  2653. return k - m;
  2654. },
  2655. 'M5d' : function (k, m, e) {
  2656. return k * m / e;
  2657. },
  2658. 'E5e' : function (k, m) {
  2659. return k >> m;
  2660. },
  2661. 'n6d' : function (k, m) {
  2662. return k / m;
  2663. },
  2664. 'e4Q' : function (k, m) {
  2665. return k - m;
  2666. },
  2667. 'v6o' : function (k, m) {
  2668. return k - m;
  2669. },
  2670. 'y5L' : function (k, m) {
  2671. return k === m;
  2672. },
  2673. 'G0v' : function (k, m) {
  2674. return k !== m;
  2675. },
  2676. 'b5A' : function (k, m) {
  2677. return k < m;
  2678. },
  2679. 'w1V' : function (k, m) {
  2680. return k * m;
  2681. },
  2682. 'r8h' : function (k, m) {
  2683. return k !== m;
  2684. },
  2685. 'i76' : function (k, m) {
  2686. return k !== m;
  2687. },
  2688. 'h4N' : function (k, m) {
  2689. return k !== m;
  2690. },
  2691. 'p94' : function (k, m) {
  2692. return k * m;
  2693. },
  2694. 'Y8q' : function (k, m) {
  2695. return k === m;
  2696. },
  2697. 'N7w' : function (k, m) {
  2698. return k / m;
  2699. },
  2700. 'Y0Q' : function (k, m) {
  2701. return k <= m;
  2702. },
  2703. 'S1q' : function (k, m) {
  2704. return k < m;
  2705. },
  2706. 'l5q' : function (k, m) {
  2707. return k >= m;
  2708. },
  2709. 'U9u' : function (k, m) {
  2710. return k > m;
  2711. },
  2712. 'W6R' : function (k, m) {
  2713. return k - m;
  2714. },
  2715. 'Y6Q' : function (k, m) {
  2716. return k !== m;
  2717. },
  2718. 'f1D' : function (k, m) {
  2719. return k > m;
  2720. },
  2721. 'F8N' : function (k, m) {
  2722. return k / m;
  2723. },
  2724. 'q1v' : function (k, m) {
  2725. return k in m;
  2726. },
  2727. 'k2g' : function (k, m) {
  2728. return k * m;
  2729. },
  2730. 'f3w' : function (k, m) {
  2731. return k instanceof m;
  2732. },
  2733. 'w2I' : function (k, m) {
  2734. return k === m;
  2735. },
  2736. 'f2R' : function (k, m) {
  2737. return k < m;
  2738. },
  2739. 'M8N' : function (k, m, e) {
  2740. return k * m / e;
  2741. },
  2742. 'm2d' : function (k, m, e) {
  2743. return k * m * e;
  2744. },
  2745. 'i2G' : function (k, m) {
  2746. return k == m;
  2747. },
  2748. 'm76' : function (k, m) {
  2749. return k !== m;
  2750. },
  2751. 'Q14' : function (k, m) {
  2752. return k === m;
  2753. },
  2754. 'O9V' : function (k, m) {
  2755. return k >= m;
  2756. },
  2757. 's8P' : function (k, m) {
  2758. return k > m;
  2759. },
  2760. 'T6u' : function (k, m) {
  2761. return k in m;
  2762. },
  2763. 'B8w' : function (k, m) {
  2764. return k < m;
  2765. },
  2766. 'I9A' : function (k, m) {
  2767. return k <= m;
  2768. },
  2769. 'v16' : function (k, m) {
  2770. return k * m;
  2771. },
  2772. 'k6A' : function (k, m) {
  2773. return k > m;
  2774. },
  2775. 'P5d' : function (k, m, e) {
  2776. return k * m * e;
  2777. },
  2778. 'B23' : function (k, m) {
  2779. return k / m;
  2780. },
  2781. 'M5q' : function (k, m) {
  2782. return k * m;
  2783. },
  2784. 'A7V' : function (k, m) {
  2785. return k / m;
  2786. },
  2787. 'N2b' : function (k, m, e, o) {
  2788. return k / m * e * o;
  2789. },
  2790. 'J94' : function (k, m, e) {
  2791. return k - m + e;
  2792. },
  2793. 'E5l' : function (k, m) {
  2794. return k !== m;
  2795. },
  2796. 'N1u' : function (k, m) {
  2797. return k === m;
  2798. },
  2799. 'V1b' : function (k, m) {
  2800. return k / m;
  2801. },
  2802. 'l1h' : function (k, m) {
  2803. return k * m;
  2804. },
  2805. 'F0R' : function (k, m) {
  2806. return k - m;
  2807. },
  2808. 'l43' : function (k, m) {
  2809. return k - m;
  2810. },
  2811. 'W5w' : function (k, m) {
  2812. return k === m;
  2813. },
  2814. 'L2R' : function (k, m) {
  2815. return k > m;
  2816. },
  2817. 'j0D' : function (k, m) {
  2818. return k * m;
  2819. },
  2820. 'j26' : function (k, m) {
  2821. return k * m;
  2822. },
  2823. 'P8Q' : function (k, m) {
  2824. return k !== m;
  2825. },
  2826. 'x69' : function (k, m) {
  2827. return k * m;
  2828. },
  2829. 'o0D' : function (k, m) {
  2830. return k * m;
  2831. },
  2832. 'r1A' : function (k, m) {
  2833. return k > m;
  2834. },
  2835. 'C5u' : function (k, m) {
  2836. return k > m;
  2837. },
  2838. 'T3D' : function (k, m) {
  2839. return k >= m;
  2840. },
  2841. 'q1G' : function (k, m) {
  2842. return k < m;
  2843. },
  2844. 'z9L' : function (k, m) {
  2845. return k - m;
  2846. },
  2847. 'H6b' : function (k, m) {
  2848. return k - m;
  2849. },
  2850. 'f7d' : function (k, m) {
  2851. return k * m;
  2852. },
  2853. 'J9L' : function (k, m) {
  2854. return k - m;
  2855. },
  2856. 'N8w' : function (k, m) {
  2857. return k !== m;
  2858. },
  2859. 'U7w' : function (k, m, e) {
  2860. return k * m / e;
  2861. },
  2862. 'm1r' : function (k, m) {
  2863. return k - m;
  2864. },
  2865. 'c03' : function (k, m) {
  2866. return k - m;
  2867. },
  2868. 'g2u' : function (k, m) {
  2869. return k > m;
  2870. },
  2871. 'T37' : function (k, m) {
  2872. return k instanceof m;
  2873. },
  2874. 'q16' : function (k, m) {
  2875. return k >= m;
  2876. },
  2877. 'o1B' : function (k, m) {
  2878. return k - m;
  2879. },
  2880. 'j9v' : function (k, m) {
  2881. return k - m;
  2882. },
  2883. 'V4u' : function (k, m) {
  2884. return k - m;
  2885. },
  2886. 'X66' : function (k, m) {
  2887. return k instanceof m;
  2888. },
  2889. 'Q1l' : function (k, m) {
  2890. return k * m;
  2891. },
  2892. 'm7g' : function (k, m) {
  2893. return k << m;
  2894. },
  2895. 'h67' : function (k, m) {
  2896. return k >= m;
  2897. },
  2898. 'o6o' : function (k, m) {
  2899. return k - m;
  2900. },
  2901. 'P99' : function (k, m) {
  2902. return k * m;
  2903. },
  2904. 'B1h' : function (k, m) {
  2905. return k * m;
  2906. },
  2907. 'S1D' : function (k, m) {
  2908. return k > m;
  2909. },
  2910. 'C1D' : function (k, m, e) {
  2911. return k * m * e;
  2912. },
  2913. 'A5Q' : function (k, m) {
  2914. return k * m;
  2915. },
  2916. 'W1V' : function (k, m) {
  2917. return k - m;
  2918. },
  2919. 'G0g' : function (k, m, e) {
  2920. return k / m * e;
  2921. },
  2922. 'w4g' : function (k, m) {
  2923. return k * m;
  2924. },
  2925. 'z56' : function (k, m) {
  2926. return k !== m;
  2927. },
  2928. 'n4V' : function (k, m) {
  2929. return k > m;
  2930. },
  2931. 'j2r' : function (k, m) {
  2932. return k !== m;
  2933. },
  2934. 's39' : function (k, m) {
  2935. return k / m;
  2936. },
  2937. 'R0e' : function (k, m) {
  2938. return k >= m;
  2939. },
  2940. 'f9A' : function (k, m) {
  2941. return k > m;
  2942. },
  2943. 'I5e' : function (k, m, e, o) {
  2944. return k | m | e | o;
  2945. },
  2946. 'z0R' : function (k, m) {
  2947. return k !== m;
  2948. },
  2949. 'c69' : function (k, m) {
  2950. return k * m;
  2951. },
  2952. 'B84' : function (k, m) {
  2953. return k - m;
  2954. },
  2955. 'b0o' : function (k, m) {
  2956. return k & m;
  2957. },
  2958. 'c87' : function (k, m) {
  2959. return k - m;
  2960. },
  2961. 'B4N' : function (k, m) {
  2962. return k !== m;
  2963. },
  2964. 'v0A' : function (k, m) {
  2965. return k > m;
  2966. },
  2967. 'j63' : function (k, m) {
  2968. return k / m;
  2969. },
  2970. 'O8R' : function (k, m) {
  2971. return k - m;
  2972. },
  2973. 'V76' : function (k, m) {
  2974. return k * m;
  2975. },
  2976. 'N7d' : function (k, m) {
  2977. return k - m;
  2978. },
  2979. 'z4b' : function (k, m) {
  2980. return k | m;
  2981. },
  2982. 'j07' : function (k, m) {
  2983. return k * m;
  2984. },
  2985. 'R83' : function (k, m) {
  2986. return k / m;
  2987. },
  2988. 'P1r' : function (k, m) {
  2989. return k === m;
  2990. },
  2991. 'U33' : function (k, m) {
  2992. return k / m;
  2993. },
  2994. 'm8B' : function (k, m) {
  2995. return k > m;
  2996. },
  2997. 'x8r' : function (k, m) {
  2998. return k >= m;
  2999. },
  3000. 'P4Q' : function (k, m) {
  3001. return k !== m;
  3002. },
  3003. 'q4G' : function (k, m) {
  3004. return k >= m;
  3005. },
  3006. 't9J' : function (k, m) {
  3007. return k instanceof m;
  3008. },
  3009. 'n1h' : function (k, m) {
  3010. return k !== m;
  3011. },
  3012. 'B5b' : function (k, m) {
  3013. return k > m;
  3014. },
  3015. 'R7r' : function (k, m) {
  3016. return k !== m;
  3017. },
  3018. 'B8G' : function (k, m) {
  3019. return k < m;
  3020. },
  3021. 'o2V' : function (k, m) {
  3022. return k === m;
  3023. },
  3024. 'W9D' : function (k, m) {
  3025. return k === m;
  3026. },
  3027. 'T3N' : function (k, m) {
  3028. return k === m;
  3029. },
  3030. 'u7q' : function (k, m) {
  3031. return k > m;
  3032. },
  3033. 'G8N' : function (k, m) {
  3034. return k << m;
  3035. },
  3036. 'r0I' : function (k, m) {
  3037. return k / m;
  3038. },
  3039. 'U27' : function (k, m) {
  3040. return k === m;
  3041. },
  3042. 's1l' : function (k, m) {
  3043. return k / m;
  3044. },
  3045. 'G24' : function (k, m) {
  3046. return k * m;
  3047. },
  3048. 'a8h' : function (k, m) {
  3049. return k !== m;
  3050. },
  3051. 'G9I' : function (k, m) {
  3052. return k !== m;
  3053. },
  3054. 'I1v' : function (k, m) {
  3055. return k > m;
  3056. },
  3057. 'M83' : function (k, m) {
  3058. return k << m;
  3059. },
  3060. 'L9e' : function (k, m) {
  3061. return k >= m;
  3062. },
  3063. 'R2N' : function (k, m) {
  3064. return k / m;
  3065. },
  3066. 'H56' : function (k, m) {
  3067. return k > m;
  3068. },
  3069. 'T16' : function (k, m) {
  3070. return k >= m;
  3071. },
  3072. 'H3J' : function (k, m) {
  3073. return k < m;
  3074. },
  3075. 'y5A' : function (k, m) {
  3076. return k - m;
  3077. },
  3078. 'F9h' : function (k, m) {
  3079. return k !== m;
  3080. },
  3081. 'l8V' : function (k, m) {
  3082. return k - m;
  3083. },
  3084. 'L2D' : function (k, m) {
  3085. return k > m;
  3086. },
  3087. 'F57' : function (k, m) {
  3088. return k - m;
  3089. },
  3090. 'd2r' : function (k, m) {
  3091. return k >= m;
  3092. },
  3093. 'J5q' : function (k, m) {
  3094. return k !== m;
  3095. },
  3096. 'w2G' : function (k, m) {
  3097. return k === m;
  3098. },
  3099. 'F9B' : function (k, m) {
  3100. return k * m;
  3101. },
  3102. 'j3N' : function (k, m) {
  3103. return k - m;
  3104. },
  3105. 'h5r' : function (k, m) {
  3106. return k === m;
  3107. },
  3108. 'W0B' : function (k, m) {
  3109. return k < m;
  3110. },
  3111. 'c8e' : function (k, m) {
  3112. return k / m;
  3113. },
  3114. 'j7Q' : function (k, m) {
  3115. return k > m;
  3116. },
  3117. 'a4g' : function (k, m) {
  3118. return k > m;
  3119. },
  3120. 'V8D' : function (k, m) {
  3121. return k * m;
  3122. },
  3123. 'A93' : function (k, m) {
  3124. return k * m;
  3125. },
  3126. 'l3l' : function (k, m) {
  3127. return k * m;
  3128. },
  3129. 'Y9B' : function (k, m) {
  3130. return k > m;
  3131. },
  3132. 'L7w' : function (k, m) {
  3133. return k >= m;
  3134. },
  3135. 'z46' : function (k, m) {
  3136. return k % m;
  3137. },
  3138. 'o87' : function (k, m) {
  3139. return k - m;
  3140. },
  3141. 'i5Q' : function (k, m) {
  3142. return k / m;
  3143. },
  3144. 'V5P' : function (k, m) {
  3145. return k - m;
  3146. },
  3147. 'G3g' : function (k, m) {
  3148. return k * m;
  3149. },
  3150. 'd79' : function (k, m) {
  3151. return k > m;
  3152. },
  3153. 'o13' : function (k, m) {
  3154. return k * m;
  3155. },
  3156. 'v8A' : function (k, m) {
  3157. return k >= m;
  3158. },
  3159. 'Y3R' : function (k, m) {
  3160. return k - m;
  3161. },
  3162. 'H1N' : function (k, m) {
  3163. return k === m;
  3164. },
  3165. 'O2e' : function (k, m) {
  3166. return k > m;
  3167. },
  3168. 'Z0d' : function (k, m) {
  3169. return k * m;
  3170. },
  3171. 'y9' : function (k, m) {
  3172. return k > m;
  3173. },
  3174. 'Y2q' : function (k, m) {
  3175. return k | m;
  3176. },
  3177. 'A6R' : function (k, m) {
  3178. return k / m;
  3179. },
  3180. 'y1Q' : function (k, m) {
  3181. return k - m;
  3182. },
  3183. 'K3B' : function (k, m) {
  3184. return k - m;
  3185. },
  3186. 'v7v' : function (k, m) {
  3187. return k > m;
  3188. },
  3189. 'f0R' : function (k, m) {
  3190. return k - m;
  3191. },
  3192. 'p4L' : function (k, m) {
  3193. return k >= m;
  3194. },
  3195. 'e9q' : function (k, m) {
  3196. return k * m;
  3197. },
  3198. 'F3J' : function (k, m) {
  3199. return k > m;
  3200. },
  3201. 'o23' : function (k, m) {
  3202. return k * m;
  3203. },
  3204. 'y8Q' : function (k, m, e) {
  3205. return k * m / e;
  3206. },
  3207. 'P8' : function (k, m) {
  3208. return k * m;
  3209. },
  3210. 'w5P' : function (k, m) {
  3211. return k - m;
  3212. },
  3213. 'M6d' : function (k, m) {
  3214. return k === m;
  3215. },
  3216. 'R8D' : function (k, m) {
  3217. return k - m;
  3218. },
  3219. 'g8h' : function (k, m) {
  3220. return k !== m;
  3221. },
  3222. 'm9o' : function (k, m) {
  3223. return k == m;
  3224. },
  3225. 'a7q' : function (k, m) {
  3226. return k == m;
  3227. },
  3228. 'J79' : function (k, m) {
  3229. return k !== m;
  3230. },
  3231. 'Q4w' : function (k, m) {
  3232. return k < m;
  3233. },
  3234. 'x5' : function (k, m) {
  3235. return k * m;
  3236. },
  3237. 'k8J' : function (k, m) {
  3238. return k !== m;
  3239. },
  3240. 'B8q' : function (k, m) {
  3241. return k > m;
  3242. },
  3243. 'k2J' : function (k, m) {
  3244. return k >= m;
  3245. },
  3246. 'M8l' : function (k, m) {
  3247. return k === m;
  3248. },
  3249. 'z3l' : function (k, m) {
  3250. return k * m;
  3251. },
  3252. 'z7u' : function (k, m) {
  3253. return k > m;
  3254. },
  3255. 'n8G' : function (k, m) {
  3256. return k !== m;
  3257. },
  3258. 'Y2Q' : function (k, m) {
  3259. return k !== m;
  3260. },
  3261. 'k83' : function (k, m) {
  3262. return k - m;
  3263. },
  3264. 'j7J' : function (k, m) {
  3265. return k / m;
  3266. },
  3267. 'i2e' : function (k, m) {
  3268. return k << m;
  3269. },
  3270. 'U79' : function (k, m) {
  3271. return k !== m;
  3272. },
  3273. 'j24' : function (k, m) {
  3274. return k - m;
  3275. },
  3276. 'I8b' : function (k, m) {
  3277. return k * m;
  3278. },
  3279. 's1q' : function (k, m) {
  3280. return k % m;
  3281. },
  3282. 'X1b' : function (k, m, e) {
  3283. return k * m * e;
  3284. },
  3285. 'O1V' : function (k, m) {
  3286. return k * m;
  3287. },
  3288. 'Y2v' : function (k, m) {
  3289. return k >= m;
  3290. },
  3291. 'O8D' : function (k, m) {
  3292. return k - m;
  3293. },
  3294. 'W2I' : function (k, m) {
  3295. return k === m;
  3296. },
  3297. 'j2P' : function (k, m) {
  3298. return k instanceof m;
  3299. },
  3300. 'r6w' : function (k, m) {
  3301. return k < m;
  3302. },
  3303. 'h0P' : function (k, m) {
  3304. return k >= m;
  3305. },
  3306. 'y0r' : function (k, m) {
  3307. return k > m;
  3308. },
  3309. 'O0L' : function (k, m) {
  3310. return k | m;
  3311. },
  3312. 's5B' : function (k, m) {
  3313. return k < m;
  3314. },
  3315. 'k2R' : function (k, m) {
  3316. return k < m;
  3317. },
  3318. 'N1I' : function (k, m) {
  3319. return k === m;
  3320. },
  3321. 'R0I' : function (k, m) {
  3322. return k !== m;
  3323. },
  3324. 'R6v' : function (k, m) {
  3325. return k * m;
  3326. },
  3327. 'y87' : function (k, m) {
  3328. return k > m;
  3329. },
  3330. 'T1D' : function (k, m) {
  3331. return k === m;
  3332. },
  3333. 'Z9o' : function (k, m) {
  3334. return k == m;
  3335. },
  3336. 'e76' : function (k, m) {
  3337. return k !== m;
  3338. },
  3339. 'q5I' : function (k, m) {
  3340. return k !== m;
  3341. },
  3342. 't9u' : function (k, m) {
  3343. return k === m;
  3344. },
  3345. 'W0d' : function (k, m) {
  3346. return k - m;
  3347. },
  3348. 'a96' : function (k, m) {
  3349. return k > m;
  3350. },
  3351. 'i6R' : function (k, m) {
  3352. return k - m;
  3353. },
  3354. 'N5q' : function (k, m) {
  3355. return k > m;
  3356. },
  3357. 'w8B' : function (k, m) {
  3358. return k - m;
  3359. },
  3360. 'R7N' : function (k, m) {
  3361. return k / m;
  3362. },
  3363. 'd3N' : function (k, m) {
  3364. return k - m;
  3365. },
  3366. 'b7P' : function (k, m) {
  3367. return k - m;
  3368. },
  3369. 'H3v' : function (k, m) {
  3370. return k - m;
  3371. },
  3372. 'h6b' : function (k, m) {
  3373. return k > m;
  3374. },
  3375. 'B7B' : function (k, m) {
  3376. return k === m;
  3377. },
  3378. 'M4r' : function (k, m) {
  3379. return k === m;
  3380. },
  3381. 't5d' : function (k, m) {
  3382. return k - m;
  3383. },
  3384. 'K0R' : function (k, m) {
  3385. return k * m;
  3386. },
  3387. 'J84' : function (k, m) {
  3388. return k >= m;
  3389. },
  3390. 'O5P' : function (k, m) {
  3391. return k * m;
  3392. },
  3393. 'j8r' : function (k, m) {
  3394. return k >= m;
  3395. },
  3396. 'm6J' : function (k, m) {
  3397. return k % m;
  3398. },
  3399. 'M43' : function (k, m) {
  3400. return k * m;
  3401. },
  3402. 'O3e' : function (k, m) {
  3403. return k >= m;
  3404. },
  3405. 'a0G' : function (k, m) {
  3406. return k > m;
  3407. },
  3408. 'n7h' : function (k, m) {
  3409. return k < m;
  3410. },
  3411. 'R4Q' : function (k, m) {
  3412. return k !== m;
  3413. },
  3414. 'j5u' : function (k, m) {
  3415. return k === m;
  3416. },
  3417. 'Q5I' : function (k, m) {
  3418. return k < m;
  3419. },
  3420. 'p2d' : function (k, m) {
  3421. return k === m;
  3422. },
  3423. 'b7g' : function (k, m) {
  3424. return k | m;
  3425. },
  3426. 'C86' : function (k, m) {
  3427. return k === m;
  3428. },
  3429. 'b9u' : function (k, m) {
  3430. return k === m;
  3431. },
  3432. 'f1o' : function (k, m) {
  3433. return k * m;
  3434. },
  3435. 'a9b' : function (k, m) {
  3436. return k > m;
  3437. },
  3438. 'p4I' : function (k, m) {
  3439. return k * m;
  3440. },
  3441. 'W4v' : function (k, m) {
  3442. return k * m;
  3443. },
  3444. 'C06' : function (k, m) {
  3445. return k === m;
  3446. },
  3447. 'I06' : function (k, m) {
  3448. return k === m;
  3449. },
  3450. 't7Q' : function (k, m) {
  3451. return k < m;
  3452. },
  3453. 'H8G' : function (k, m) {
  3454. return k !== m;
  3455. },
  3456. 'i3h' : function (k, m) {
  3457. return k > m;
  3458. },
  3459. 'x93' : function (k, m) {
  3460. return k === m;
  3461. },
  3462. 'T1v' : function (k, m) {
  3463. return k <= m;
  3464. },
  3465. 'B4q' : function (k, m) {
  3466. return k < m;
  3467. },
  3468. 'l9L' : function (k, m) {
  3469. return k / m;
  3470. },
  3471. 'O5D' : function (k, m) {
  3472. return k in m;
  3473. },
  3474. 'H2w' : function (k, m) {
  3475. return k > m;
  3476. },
  3477. 'C6D' : function (k, m) {
  3478. return k > m;
  3479. },
  3480. 'W96' : function (k, m) {
  3481. return k - m;
  3482. },
  3483. 'S5d' : function (k, m) {
  3484. return k * m;
  3485. },
  3486. 'G1h' : function (k, m) {
  3487. return k < m;
  3488. },
  3489. 'S6u' : function (k, m) {
  3490. return k === m;
  3491. },
  3492. 'v87' : function (k, m) {
  3493. return k - m;
  3494. },
  3495. 'Q0b' : function (k, m) {
  3496. return k === m;
  3497. },
  3498. 'p5A' : function (k, m) {
  3499. return k < m;
  3500. },
  3501. 'b9v' : function (k, m) {
  3502. return k !== m;
  3503. },
  3504. 'V1P' : function (k, m) {
  3505. return k * m;
  3506. },
  3507. 'b29' : function (k, m) {
  3508. return k * m;
  3509. },
  3510. 't3V' : function (k, m) {
  3511. return k !== m;
  3512. },
  3513. 'y49' : function (k, m) {
  3514. return k !== m;
  3515. },
  3516. 'p0o' : function (k, m) {
  3517. return k >>> m;
  3518. },
  3519. 'X1I' : function (k, m) {
  3520. return k < m;
  3521. },
  3522. 'p1B' : function (k, m) {
  3523. return k * m;
  3524. },
  3525. 's1d' : function (k, m) {
  3526. return k < m;
  3527. },
  3528. 'A4Q' : function (k, m) {
  3529. return k === m;
  3530. },
  3531. 'L0R' : function (k, m) {
  3532. return k !== m;
  3533. },
  3534. 't39' : function (k, m) {
  3535. return k / m;
  3536. },
  3537. 'Y09' : function (k, m) {
  3538. return k * m;
  3539. },
  3540. 'k6b' : function (k, m) {
  3541. return k * m;
  3542. },
  3543. 'a4J' : function (k, m) {
  3544. return k > m;
  3545. },
  3546. 'K67' : function (k, m) {
  3547. return k % m;
  3548. },
  3549. 'z1G' : function (k, m) {
  3550. return k === m;
  3551. },
  3552. 'k9d' : function (k, m) {
  3553. return k / m;
  3554. },
  3555. 'K74' : function (k, m) {
  3556. return k * m;
  3557. },
  3558. 'I4I' : function (k, m) {
  3559. return k | m;
  3560. },
  3561. 'j2d' : function (k, m) {
  3562. return k > m;
  3563. },
  3564. 'j37' : function (k, m) {
  3565. return k === m;
  3566. },
  3567. 'I03' : function (k, m) {
  3568. return k > m;
  3569. },
  3570. 'L5r' : function (k, m) {
  3571. return k - m;
  3572. },
  3573. 's69' : function (k, m) {
  3574. return k | m;
  3575. },
  3576. 'H7G' : function (k, m) {
  3577. return k > m;
  3578. },
  3579. 'm6e' : function (k, m, e, o) {
  3580. return k | m | e | o;
  3581. },
  3582. 'G7w' : function (k, m) {
  3583. return k * m;
  3584. },
  3585. 'm9r' : function (k, m) {
  3586. return k - m;
  3587. },
  3588. 'v27' : function (k, m) {
  3589. return k - m;
  3590. },
  3591. 'e4J' : function (k, m) {
  3592. return k < m;
  3593. },
  3594. 'w7q' : function (k, m) {
  3595. return k != m;
  3596. },
  3597. 'R9q' : function (k, m) {
  3598. return k * m;
  3599. },
  3600. 'g5R' : function (k, m) {
  3601. return k == m;
  3602. },
  3603. 'Z7b' : function (k, m) {
  3604. return k >= m;
  3605. },
  3606. 'Y9G' : function (k, m) {
  3607. return k < m;
  3608. },
  3609. 'I87' : function (k, m) {
  3610. return k === m;
  3611. },
  3612. 'F8g' : function (k, m) {
  3613. return k !== m;
  3614. },
  3615. 'x1g' : function (k, m) {
  3616. return k * m;
  3617. },
  3618. 'A8B' : function (k, m) {
  3619. return k < m;
  3620. },
  3621. 'k6P' : function (k, m) {
  3622. return k * m;
  3623. },
  3624. 'E6R' : function (k, m) {
  3625. return k - m;
  3626. },
  3627. 'u6J' : function (k, m) {
  3628. return k == m;
  3629. },
  3630. 'y3N' : function (k, m) {
  3631. return k === m;
  3632. },
  3633. 'i6w' : function (k, m) {
  3634. return k === m;
  3635. },
  3636. 'O9q' : function (k, m) {
  3637. return k >= m;
  3638. },
  3639. 'R4B' : function (k, m) {
  3640. return k * m;
  3641. },
  3642. 'g1A' : function (k, m) {
  3643. return k < m;
  3644. },
  3645. 'l3J' : function (k, m) {
  3646. return k < m;
  3647. },
  3648. 'R5B' : function (k, m, e) {
  3649. return k * m / e;
  3650. },
  3651. 'i8L' : function (k, m) {
  3652. return k !== m;
  3653. },
  3654. 'g9r' : function (k, m) {
  3655. return k === m;
  3656. },
  3657. 't86' : function (k, m) {
  3658. return k <= m;
  3659. },
  3660. 'k67' : function (k, m) {
  3661. return k < m;
  3662. },
  3663. 'm1e' : function (k, m) {
  3664. return k - m;
  3665. },
  3666. 'c2r' : function (k, m) {
  3667. return k === m;
  3668. },
  3669. 'K7d' : function (k, m) {
  3670. return k * m;
  3671. },
  3672. 'N8q' : function (k, m) {
  3673. return k | m;
  3674. },
  3675. 'e64' : function (k, m) {
  3676. return k * m;
  3677. },
  3678. 'A3L' : function (k, m) {
  3679. return k * m;
  3680. },
  3681. 'Z04' : function (k, m) {
  3682. return k > m;
  3683. },
  3684. 'R3I' : function (k, m) {
  3685. return k < m;
  3686. },
  3687. 'c9g' : function (k, m) {
  3688. return k * m;
  3689. },
  3690. 'T7P' : function (k, m) {
  3691. return k < m;
  3692. },
  3693. 'x5u' : function (k, m) {
  3694. return k === m;
  3695. },
  3696. 'B6b' : function (k, m) {
  3697. return k > m;
  3698. },
  3699. 'd7v' : function (k, m) {
  3700. return k * m;
  3701. },
  3702. 'u8' : function (k, m) {
  3703. return k / m;
  3704. },
  3705. 'h57' : function (k, m) {
  3706. return k < m;
  3707. },
  3708. 'N57' : function (k, m) {
  3709. return k < m;
  3710. },
  3711. 'T1q' : function (k, m) {
  3712. return k / m;
  3713. },
  3714. 'W3w' : function (k, m) {
  3715. return k < m;
  3716. },
  3717. 'Q94' : function (k, m) {
  3718. return k > m;
  3719. },
  3720. 'N7G' : function (k, m) {
  3721. return k >= m;
  3722. },
  3723. 'Q6e' : function (k, m) {
  3724. return k - m;
  3725. },
  3726. 'N1G' : function (k, m) {
  3727. return k > m;
  3728. },
  3729. 'E4P' : function (k, m) {
  3730. return k / m;
  3731. },
  3732. 'U3D' : function (k, m) {
  3733. return k - m;
  3734. },
  3735. 'Z5P' : function (k, m) {
  3736. return k * m;
  3737. },
  3738. 'r3e' : function (k, m) {
  3739. return k > m;
  3740. },
  3741. 'y1v' : function (k, m) {
  3742. return k === m;
  3743. },
  3744. 'i34' : function (k, m) {
  3745. return k - m;
  3746. },
  3747. 'u17' : function (k, m) {
  3748. return k != m;
  3749. },
  3750. 'd24' : function (k, m) {
  3751. return k - m;
  3752. },
  3753. 'N8N' : function (k, m) {
  3754. return k === m;
  3755. },
  3756. 'E2h' : function (k, m) {
  3757. return k instanceof m;
  3758. },
  3759. 'm4u' : function (k, m) {
  3760. return k / m;
  3761. },
  3762. 'Q7R' : function (k, m) {
  3763. return k * m;
  3764. },
  3765. 's8B' : function (k, m) {
  3766. return k === m;
  3767. },
  3768. 'V7D' : function (k, m) {
  3769. return k > m;
  3770. },
  3771. 'i3e' : function (k, m) {
  3772. return k < m;
  3773. },
  3774. 'k8g' : function (k, m) {
  3775. return k * m;
  3776. },
  3777. 'l9h' : function (k, m) {
  3778. return k instanceof m;
  3779. },
  3780. 'e97' : function (k, m) {
  3781. return k > m;
  3782. },
  3783. 'y5I' : function (k, m) {
  3784. return k / m;
  3785. },
  3786. 's36' : function (k, m) {
  3787. return k - m;
  3788. },
  3789. 'S1Q' : function (k, m) {
  3790. return k === m;
  3791. },
  3792. 'N4D' : function (k, m) {
  3793. return k > m;
  3794. },
  3795. 'Y1B' : function (k, m) {
  3796. return k - m;
  3797. },
  3798. 'f74' : function (k, m) {
  3799. return k * m;
  3800. },
  3801. 'O6' : function (k, m) {
  3802. return k * m;
  3803. },
  3804. 'k2v' : function (k, m) {
  3805. return k !== m;
  3806. },
  3807. 'Q3V' : function (k, m) {
  3808. return k - m;
  3809. },
  3810. 'K6A' : function (k, m) {
  3811. return k > m;
  3812. },
  3813. 'o2P' : function (k, m) {
  3814. return k >= m;
  3815. },
  3816. 'h7G' : function (k, m) {
  3817. return k !== m;
  3818. },
  3819. 'v3q' : function (k, m) {
  3820. return k <= m;
  3821. },
  3822. 'z0w' : function (k, m) {
  3823. return k === m;
  3824. },
  3825. 'T0N' : function (k, m) {
  3826. return k < m;
  3827. },
  3828. 'W5v' : function (k, m) {
  3829. return k in m;
  3830. },
  3831. 'm2P' : function (k, m) {
  3832. return k === m;
  3833. },
  3834. 'K0v' : function (k, m) {
  3835. return k / m;
  3836. },
  3837. 'x3D' : function (k, m) {
  3838. return k / m;
  3839. },
  3840. 'u7r' : function (k, m) {
  3841. return k !== m;
  3842. },
  3843. 'o7J' : function (k, m) {
  3844. return k > m;
  3845. },
  3846. 'x2B' : function (k, m) {
  3847. return k * m;
  3848. },
  3849. 'P3L' : function (k, m) {
  3850. return k === m;
  3851. },
  3852. 'G0R' : function (k, m) {
  3853. return k * m;
  3854. },
  3855. 'z47' : function (k, m) {
  3856. return k > m;
  3857. },
  3858. 'h0Q' : function (k, m) {
  3859. return k == m;
  3860. },
  3861. 'A6J' : function (k, m) {
  3862. return k - m;
  3863. },
  3864. 'K2D' : function (k, m) {
  3865. return k - m;
  3866. },
  3867. 'f8g' : function (k, m) {
  3868. return k * m;
  3869. },
  3870. 'o3D' : function (k, m) {
  3871. return k / m;
  3872. },
  3873. 'C2o' : function (k, m) {
  3874. return k > m;
  3875. },
  3876. 'm8h' : function (k, m) {
  3877. return k !== m;
  3878. },
  3879. 'y3q' : function (k, m) {
  3880. return k >= m;
  3881. },
  3882. 'C2b' : function (k, m) {
  3883. return k * m;
  3884. },
  3885. 'B2w' : function (k, m) {
  3886. return k !== m;
  3887. },
  3888. 'm8e' : function (k, m) {
  3889. return k > m;
  3890. },
  3891. 'E3w' : function (k, m) {
  3892. return k * m;
  3893. },
  3894. 'Y9h' : function (k, m) {
  3895. return k === m;
  3896. },
  3897. 'c2P' : function (k, m) {
  3898. return k * m;
  3899. },
  3900. 'l3' : function (k, m) {
  3901. return k instanceof m;
  3902. },
  3903. 'g3e' : function (k, m) {
  3904. return k > m;
  3905. },
  3906. 'c2d' : function (k, m) {
  3907. return k !== m;
  3908. },
  3909. 'h2B' : function (k, m, e, o) {
  3910. return k * m * e * o;
  3911. },
  3912. 'O4R' : function (k, m) {
  3913. return k * m;
  3914. },
  3915. 'Z54' : function (k, m) {
  3916. return k > m;
  3917. },
  3918. 'I7R' : function (k, m) {
  3919. return k - m;
  3920. },
  3921. 'L5o' : function (k, m) {
  3922. return k == m;
  3923. },
  3924. 'X47' : function (k, m) {
  3925. return k < m;
  3926. },
  3927. 'G2Q' : function (k, m) {
  3928. return k !== m;
  3929. },
  3930. 'i5w' : function (k, m) {
  3931. return k === m;
  3932. },
  3933. 'u7o' : function (k, m) {
  3934. return k & m;
  3935. },
  3936. 'e0h' : function (k, m) {
  3937. return k <= m;
  3938. },
  3939. 'q4h' : function (k, m) {
  3940. return k === m;
  3941. },
  3942. 'U9' : function (k, m) {
  3943. return k - m;
  3944. },
  3945. 'k0g' : function (k, m) {
  3946. return k - m;
  3947. },
  3948. 'x5A' : function (k, m) {
  3949. return k != m;
  3950. },
  3951. 'g9N' : function (k, m) {
  3952. return k === m;
  3953. },
  3954. 'X63' : function (k, m, e) {
  3955. return k / m / e;
  3956. },
  3957. 'c5u' : function (k, m) {
  3958. return k === m;
  3959. },
  3960. 'W4l' : function (k, m) {
  3961. return k * m;
  3962. },
  3963. 'S6d' : function (k, m, e) {
  3964. return k * m / e;
  3965. },
  3966. 'W2h' : function (k, m) {
  3967. return k === m;
  3968. },
  3969. 'u5P' : function (k, m) {
  3970. return k !== m;
  3971. },
  3972. 'F9e' : function (k, m) {
  3973. return k / m;
  3974. },
  3975. 'H3R' : function (k, m) {
  3976. return k <= m;
  3977. },
  3978. 'y8A' : function (k, m) {
  3979. return k === m;
  3980. },
  3981. 'e7o' : function (k, m) {
  3982. return k / m;
  3983. },
  3984. 'U07' : function (k, m) {
  3985. return k !== m;
  3986. },
  3987. 'D77' : function (k, m) {
  3988. return k < m;
  3989. },
  3990. 'V6R' : function (k, m) {
  3991. return k - m;
  3992. },
  3993. 'z5r' : function (k, m) {
  3994. return k !== m;
  3995. },
  3996. 'c6e' : function (k, m) {
  3997. return k !== m;
  3998. },
  3999. 'k23' : function (k, m) {
  4000. return k === m;
  4001. },
  4002. 'V6l' : function (k, m) {
  4003. return k > m;
  4004. },
  4005. 'C8Q' : function (k, m) {
  4006. return k <= m;
  4007. },
  4008. 'V9o' : function (k, m) {
  4009. return k == m;
  4010. },
  4011. 'o5u' : function (k, m) {
  4012. return k === m;
  4013. },
  4014. 'L74' : function (k, m) {
  4015. return k - m;
  4016. },
  4017. 'm7r' : function (k, m) {
  4018. return k === m;
  4019. },
  4020. 'M3B' : function (k, m) {
  4021. return k * m;
  4022. },
  4023. 'k9I' : function (k, m) {
  4024. return k < m;
  4025. },
  4026. 'o0V' : function (k, m) {
  4027. return k > m;
  4028. },
  4029. 'J2J' : function (k, m) {
  4030. return k < m;
  4031. },
  4032. 'G83' : function (k, m) {
  4033. return k - m;
  4034. },
  4035. 'D5R' : function (k, m) {
  4036. return k - m;
  4037. },
  4038. 'v6L' : function (k, m) {
  4039. return k < m;
  4040. },
  4041. 'l7B' : function (k, m, e) {
  4042. return k / m * e;
  4043. },
  4044. 'M47' : function (k, m) {
  4045. return k >= m;
  4046. },
  4047. 'p0g' : function (k, m) {
  4048. return k === m;
  4049. },
  4050. 'q2r' : function (k, m) {
  4051. return k === m;
  4052. },
  4053. 'f8l' : function (k, m) {
  4054. return k > m;
  4055. },
  4056. 'P54' : function (k, m) {
  4057. return k > m;
  4058. },
  4059. 'o9w' : function (k, m) {
  4060. return k < m;
  4061. },
  4062. 'l6I' : function (k, m) {
  4063. return k === m;
  4064. },
  4065. 'H2D' : function (k, m) {
  4066. return k / m;
  4067. },
  4068. 'd7l' : function (k, m) {
  4069. return k > m;
  4070. },
  4071. 'Y1u' : function (k, m) {
  4072. return k in m;
  4073. },
  4074. 'E5R' : function (k, m) {
  4075. return k == m;
  4076. },
  4077. 'O7V' : function (k, m) {
  4078. return k > m;
  4079. },
  4080. 'w2h' : function (k, m) {
  4081. return k instanceof m;
  4082. },
  4083. 'I1o' : function (k, m) {
  4084. return k - m;
  4085. },
  4086. 'E5J' : function (k, m) {
  4087. return k - m;
  4088. },
  4089. 'T5I' : function (k, m) {
  4090. return k >= m;
  4091. },
  4092. 'A4g' : function (k, m) {
  4093. return k * m;
  4094. },
  4095. 'u2N' : function (k, m) {
  4096. return k > m;
  4097. },
  4098. 'N8d' : function (k, m) {
  4099. return k < m;
  4100. },
  4101. 'T07' : function (k, m) {
  4102. return k > m;
  4103. },
  4104. 'y06' : function (k, m) {
  4105. return k === m;
  4106. },
  4107. 'B8d' : function (k, m) {
  4108. return k !== m;
  4109. },
  4110. 'g64' : function (k, m) {
  4111. return k - m;
  4112. },
  4113. 'M4b' : function (k, m) {
  4114. return k - m;
  4115. },
  4116. 'k74' : function (k, m) {
  4117. return k === m;
  4118. },
  4119. 'C6B' : function (k, m) {
  4120. return k < m;
  4121. },
  4122. 's7P' : function (k, m) {
  4123. return k * m;
  4124. },
  4125. 'L8V' : function (k, m) {
  4126. return k === m;
  4127. },
  4128. 'w0B' : function (k, m) {
  4129. return k - m;
  4130. },
  4131. 'M3J' : function (k, m) {
  4132. return k > m;
  4133. },
  4134. 'H0R' : function (k, m) {
  4135. return k === m;
  4136. },
  4137. 'V73' : function (k, m) {
  4138. return k - m;
  4139. },
  4140. 'X1D' : function (k, m) {
  4141. return k - m;
  4142. },
  4143. 'S5h' : function (k, m) {
  4144. return k !== m;
  4145. },
  4146. 'p1g' : function (k, m) {
  4147. return k * m;
  4148. },
  4149. 'Y59' : function (k, m) {
  4150. return k in m;
  4151. },
  4152. 'l2v' : function (k, m) {
  4153. return k / m;
  4154. },
  4155. 'P6G' : function (k, m) {
  4156. return k === m;
  4157. },
  4158. 'v9v' : function (k, m) {
  4159. return k < m;
  4160. },
  4161. 'o6h' : function (k, m) {
  4162. return k < m;
  4163. },
  4164. 'T26' : function (k, m) {
  4165. return k === m;
  4166. },
  4167. 'i5e' : function (k, m) {
  4168. return k & m;
  4169. },
  4170. 'c93' : function (k, m) {
  4171. return k - m;
  4172. },
  4173. 'X4D' : function (k, m) {
  4174. return k / m;
  4175. },
  4176. 'Q9w' : function (k, m) {
  4177. return k === m;
  4178. },
  4179. 'h7d' : function (k, m) {
  4180. return k * m;
  4181. },
  4182. 'h4o' : function (k, m) {
  4183. return k > m;
  4184. },
  4185. 'Z53' : function (k, m) {
  4186. return k < m;
  4187. },
  4188. 'O53' : function (k, m) {
  4189. return k < m;
  4190. },
  4191. 'Y5b' : function (k, m) {
  4192. return k > m;
  4193. },
  4194. 'G43' : function (k, m) {
  4195. return k - m;
  4196. },
  4197. 'X9I' : function (k, m) {
  4198. return k | m;
  4199. },
  4200. 'c0o' : function (k, m) {
  4201. return k & m;
  4202. },
  4203. 'z8N' : function (k, m) {
  4204. return k == m;
  4205. },
  4206. 'L67' : function (k, m) {
  4207. return k * m;
  4208. },
  4209. 'M1L' : function (k, m) {
  4210. return k * m;
  4211. },
  4212. 'p1Q' : function (k, m) {
  4213. return k | m;
  4214. },
  4215. 'I37' : function (k, m) {
  4216. return k / m;
  4217. },
  4218. 'j6L' : function (k, m) {
  4219. return k > m;
  4220. },
  4221. 'd1g' : function (k, m) {
  4222. return k > m;
  4223. },
  4224. 'P77' : function (k, m) {
  4225. return k > m;
  4226. },
  4227. 'v3V' : function (k, m) {
  4228. return k !== m;
  4229. },
  4230. 'M5N' : function (k, m) {
  4231. return k >>> m;
  4232. },
  4233. 'G0P' : function (k, m) {
  4234. return k === m;
  4235. },
  4236. 'z8R' : function (k, m) {
  4237. return k / m;
  4238. },
  4239. 'O6V' : function (k, m) {
  4240. return k % m;
  4241. },
  4242. 'O5r' : function (k, m) {
  4243. return k !== m;
  4244. },
  4245. 'I8I' : function (k, m) {
  4246. return k > m;
  4247. },
  4248. 'n4q' : function (k, m) {
  4249. return k * m;
  4250. },
  4251. 'd1d' : function (k, m) {
  4252. return k > m;
  4253. },
  4254. 'p3D' : function (k, m) {
  4255. return k / m;
  4256. },
  4257. 'a97' : function (k, m) {
  4258. return k / m;
  4259. },
  4260. 'a73' : function (k, m) {
  4261. return k - m;
  4262. },
  4263. 's4e' : function (k, m) {
  4264. return k > m;
  4265. },
  4266. 'l74' : function (k, m) {
  4267. return k - m;
  4268. },
  4269. 'U9v' : function (k, m) {
  4270. return k >= m;
  4271. },
  4272. 'F5q' : function (k, m) {
  4273. return k * m;
  4274. },
  4275. 'K2' : function (k, m) {
  4276. return k <= m;
  4277. },
  4278. 'S6B' : function (k, m) {
  4279. return k * m;
  4280. },
  4281. 'd0g' : function (k, m) {
  4282. return k / m;
  4283. },
  4284. 'L7u' : function (k, m) {
  4285. return k > m;
  4286. },
  4287. 't6D' : function (k, m) {
  4288. return k < m;
  4289. },
  4290. 't06' : function (k, m) {
  4291. return k > m;
  4292. },
  4293. 'R1r' : function (k, m) {
  4294. return k === m;
  4295. },
  4296. 'm2N' : function (k, m) {
  4297. return k === m;
  4298. },
  4299. 'O9N' : function (k, m) {
  4300. return k === m;
  4301. },
  4302. 'M4q' : function (k, m) {
  4303. return k * m;
  4304. },
  4305. 'T5u' : function (k, m) {
  4306. return k !== m;
  4307. },
  4308. 'Q93' : function (k, m) {
  4309. return k - m;
  4310. },
  4311. 'v5h' : function (k, m) {
  4312. return k === m;
  4313. },
  4314. 'p0r' : function (k, m) {
  4315. return k === m;
  4316. },
  4317. 'j1R' : function (k, m) {
  4318. return k << m;
  4319. },
  4320. 'B46' : function (k, m) {
  4321. return k - m;
  4322. },
  4323. 'X46' : function (k, m) {
  4324. return k - m;
  4325. },
  4326. 'A1V' : function (k, m) {
  4327. return k === m;
  4328. },
  4329. 'g73' : function (k, m) {
  4330. return k - m;
  4331. },
  4332. 't0g' : function (k, m) {
  4333. return k - m;
  4334. },
  4335. 'w7A' : function (k, m) {
  4336. return k - m;
  4337. },
  4338. 'O7b' : function (k, m) {
  4339. return k > m;
  4340. },
  4341. 'z2R' : function (k, m) {
  4342. return k > m;
  4343. },
  4344. 'q3b' : function (k, m) {
  4345. return k / m;
  4346. },
  4347. 'S7J' : function (k, m) {
  4348. return k * m;
  4349. },
  4350. 'F3u' : function (k, m) {
  4351. return k >= m;
  4352. },
  4353. 'A34' : function (k, m) {
  4354. return k * m;
  4355. },
  4356. 'i8Q' : function (k, m) {
  4357. return k > m;
  4358. },
  4359. 's9J' : function (k, m) {
  4360. return k - m;
  4361. },
  4362. 'C5A' : function (k, m) {
  4363. return k * m;
  4364. },
  4365. 'M9L' : function (k, m) {
  4366. return k / m;
  4367. },
  4368. 'L8d' : function (k, m) {
  4369. return k !== m;
  4370. },
  4371. 'J8w' : function (k, m) {
  4372. return k === m;
  4373. },
  4374. 't4w' : function (k, m) {
  4375. return k === m;
  4376. },
  4377. 'd2d' : function (k, m) {
  4378. return k > m;
  4379. },
  4380. 'L8q' : function (k, m) {
  4381. return k / m;
  4382. },
  4383. 'B8N' : function (k, m, e) {
  4384. return k * m / e;
  4385. },
  4386. 'J8q' : function (k, m) {
  4387. return k > m;
  4388. },
  4389. 'H6e' : function (k, m) {
  4390. return k & m;
  4391. },
  4392. 'b9Q' : function (k, m) {
  4393. return k / m;
  4394. },
  4395. 'l6o' : function (k, m) {
  4396. return k > m;
  4397. },
  4398. 'b6L' : function (k, m) {
  4399. return k !== m;
  4400. },
  4401. 'H3u' : function (k, m) {
  4402. return k - m;
  4403. },
  4404. 'T8Q' : function (k, m) {
  4405. return k === m;
  4406. },
  4407. 'U3A' : function (k, m) {
  4408. return k * m;
  4409. },
  4410. 'w6w' : function (k, m) {
  4411. return k === m;
  4412. },
  4413. 't3A' : function (k, m) {
  4414. return k > m;
  4415. },
  4416. 'p3P' : function (k, m) {
  4417. return k - m;
  4418. },
  4419. 'T8D' : function (k, m) {
  4420. return k <= m;
  4421. },
  4422. 'P0B' : function (k, m) {
  4423. return k === m;
  4424. },
  4425. 'Q4I' : function (k, m) {
  4426. return k * m;
  4427. },
  4428. 'T7R' : function (k, m) {
  4429. return k * m;
  4430. },
  4431. 'W1d' : function (k, m) {
  4432. return k / m;
  4433. },
  4434. 'e0I' : function (k, m) {
  4435. return k / m;
  4436. },
  4437. 'P76' : function (k, m) {
  4438. return k !== m;
  4439. },
  4440. 'w6v' : function (k, m) {
  4441. return k > m;
  4442. },
  4443. 't2o' : function (k, m) {
  4444. return k <= m;
  4445. },
  4446. 'e5D' : function (k, m) {
  4447. return k > m;
  4448. },
  4449. 'Z1A' : function (k, m) {
  4450. return k instanceof m;
  4451. },
  4452. 'T3r' : function (k, m) {
  4453. return k !== m;
  4454. },
  4455. 'B74' : function (k, m) {
  4456. return k - m;
  4457. },
  4458. 'l59' : function (k, m) {
  4459. return k in m;
  4460. },
  4461. 'f1' : function (k, m) {
  4462. return k * m;
  4463. },
  4464. 'g5B' : function (k, m, e) {
  4465. return k * m / e;
  4466. },
  4467. 'f2v' : function (k, m) {
  4468. return k - m;
  4469. },
  4470. 'S9' : function (k, m) {
  4471. return k * m;
  4472. },
  4473. 't6N' : function (k, m) {
  4474. return k > m;
  4475. },
  4476. 'E4g' : function (k, m) {
  4477. return k * m;
  4478. },
  4479. 'F7B' : function (k, m) {
  4480. return k * m;
  4481. },
  4482. 'M9d' : function (k, m) {
  4483. return k === m;
  4484. },
  4485. 'E2g' : function (k, m, e) {
  4486. return k * m * e;
  4487. },
  4488. 'B0Q' : function (k, m) {
  4489. return k < m;
  4490. },
  4491. 'c1w' : function (k, m) {
  4492. return k === m;
  4493. },
  4494. 'Z3d' : function (k, m) {
  4495. return k > m;
  4496. },
  4497. 'L8w' : function (k, m) {
  4498. return k < m;
  4499. },
  4500. 'O3I' : function (k, m) {
  4501. return k < m;
  4502. },
  4503. 'F2Q' : function (k, m) {
  4504. return k / m;
  4505. },
  4506. 'D5w' : function (k, m) {
  4507. return k === m;
  4508. },
  4509. 'g4J' : function (k, m) {
  4510. return k >= m;
  4511. },
  4512. 'J7I' : function (k, m) {
  4513. return k / m;
  4514. },
  4515. 'W2' : function (k, m) {
  4516. return k * m;
  4517. },
  4518. 'r7N' : function (k, m) {
  4519. return k === m;
  4520. },
  4521. 'u2I' : function (k, m) {
  4522. return k !== m;
  4523. },
  4524. 'T0A' : function (k, m) {
  4525. return k % m;
  4526. },
  4527. 'G1' : function (k, m) {
  4528. return k < m;
  4529. },
  4530. 'H0w' : function (k, m) {
  4531. return k > m;
  4532. },
  4533. 's1J' : function (k, m) {
  4534. return k / m;
  4535. },
  4536. 'f6Q' : function (k, m) {
  4537. return k / m;
  4538. },
  4539. 'V0L' : function (k, m) {
  4540. return k | m;
  4541. },
  4542. 'v6h' : function (k, m) {
  4543. return k === m;
  4544. },
  4545. 'K4o' : function (k, m) {
  4546. return k * m;
  4547. },
  4548. 'i9r' : function (k, m) {
  4549. return k !== m;
  4550. },
  4551. 'o4G' : function (k, m) {
  4552. return k > m;
  4553. },
  4554. 'z2w' : function (k, m) {
  4555. return k === m;
  4556. },
  4557. 'm6R' : function (k, m) {
  4558. return k - m;
  4559. },
  4560. 'C5I' : function (k, m) {
  4561. return k < m;
  4562. },
  4563. 'W77' : function (k, m) {
  4564. return k > m;
  4565. },
  4566. 'H1h' : function (k, m) {
  4567. return k === m;
  4568. },
  4569. 'b6B' : function (k, m) {
  4570. return k - m;
  4571. },
  4572. 'r4g' : function (k, m) {
  4573. return k * m;
  4574. },
  4575. 'n4r' : function (k, m) {
  4576. return k === m;
  4577. },
  4578. 'Y8d' : function (k, m) {
  4579. return k !== m;
  4580. },
  4581. 'L3Q' : function (k, m) {
  4582. return k === m;
  4583. },
  4584. 'X57' : function (k, m) {
  4585. return k * m;
  4586. },
  4587. 'g3I' : function (k, m) {
  4588. return k === m;
  4589. },
  4590. 'e93' : function (k, m, e) {
  4591. return k / m / e;
  4592. },
  4593. 'D0h' : function (k, m) {
  4594. return k / m;
  4595. },
  4596. 'q9R' : function (k, m) {
  4597. return k < m;
  4598. },
  4599. 'O4J' : function (k, m) {
  4600. return k === m;
  4601. },
  4602. 'b3D' : function (k, m) {
  4603. return k / m;
  4604. },
  4605. 'L9I' : function (k, m) {
  4606. return k !== m;
  4607. },
  4608. 'S3V' : function (k, m) {
  4609. return k * m;
  4610. },
  4611. 'X8J' : function (k, m) {
  4612. return k == m;
  4613. },
  4614. 'o2b' : function (k, m) {
  4615. return k / m;
  4616. },
  4617. 's2P' : function (k, m) {
  4618. return k !== m;
  4619. },
  4620. 'l8G' : function (k, m) {
  4621. return k === m;
  4622. },
  4623. 's3o' : function (k, m) {
  4624. return k !== m;
  4625. },
  4626. 'I3A' : function (k, m) {
  4627. return k * m;
  4628. },
  4629. 'U8I' : function (k, m) {
  4630. return k < m;
  4631. },
  4632. 'y0N' : function (k, m) {
  4633. return k === m;
  4634. },
  4635. 'S4G' : function (k, m) {
  4636. return k >= m;
  4637. },
  4638. 'f3J' : function (k, m) {
  4639. return k > m;
  4640. },
  4641. 't8I' : function (k, m) {
  4642. return k >= m;
  4643. },
  4644. 'w64' : function (k, m) {
  4645. return k !== m;
  4646. },
  4647. 'I3r' : function (k, m) {
  4648. return k === m;
  4649. },
  4650. 'l9I' : function (k, m) {
  4651. return k | m;
  4652. },
  4653. 'U7l' : function (k, m) {
  4654. return k / m;
  4655. },
  4656. 'f6d' : function (k, m) {
  4657. return k / m;
  4658. },
  4659. 'N8v' : function (k, m) {
  4660. return k - m;
  4661. },
  4662. 'K3R' : function (k, m) {
  4663. return k * m;
  4664. },
  4665. 'z4q' : function (k, m) {
  4666. return k < m;
  4667. },
  4668. 'l4b' : function (k, m) {
  4669. return k > m;
  4670. },
  4671. 'g4u' : function (k, m) {
  4672. return k / m;
  4673. },
  4674. 'q1l' : function (k, m) {
  4675. return k * m;
  4676. },
  4677. 'w2N' : function (k, m) {
  4678. return k > m;
  4679. },
  4680. 'u96' : function (k, m) {
  4681. return k > m;
  4682. },
  4683. 'W7V' : function (k, m) {
  4684. return k / m;
  4685. },
  4686. 'I0N' : function (k, m) {
  4687. return k * m;
  4688. },
  4689. 'H8v' : function (k, m) {
  4690. return k - m;
  4691. },
  4692. 'v06' : function (k, m) {
  4693. return k < m;
  4694. },
  4695. 'U1o' : function (k, m) {
  4696. return k !== m;
  4697. },
  4698. 'b7l' : function (k, m) {
  4699. return k <= m;
  4700. },
  4701. 'X0Q' : function (k, m) {
  4702. return k === m;
  4703. },
  4704. 'T2d' : function (k, m, e, o) {
  4705. return k * m * e / o;
  4706. },
  4707. 'u3G' : function (k, m) {
  4708. return k === m;
  4709. },
  4710. 'E8h' : function (k, m) {
  4711. return k !== m;
  4712. },
  4713. 'o7l' : function (k, m) {
  4714. return k - m;
  4715. },
  4716. 'K5N' : function (k, m, e, o) {
  4717. return k | m | e | o;
  4718. },
  4719. 'r8' : function (k, m) {
  4720. return k | m;
  4721. },
  4722. 'L5V' : function (k, m) {
  4723. return k === m;
  4724. },
  4725. 'B8v' : function (k, m) {
  4726. return k - m;
  4727. },
  4728. 'C69' : function (k, m) {
  4729. return k - m;
  4730. },
  4731. 'w5l' : function (k, m) {
  4732. return k <= m;
  4733. },
  4734. 'S3A' : function (k, m) {
  4735. return k * m;
  4736. },
  4737. 'F5V' : function (k, m) {
  4738. return k === m;
  4739. },
  4740. 'Z9N' : function (k, m) {
  4741. return k === m;
  4742. },
  4743. 'i4Q' : function (k, m) {
  4744. return k === m;
  4745. },
  4746. 'n7B' : function (k, m) {
  4747. return k / m;
  4748. },
  4749. 'r8L' : function (k, m) {
  4750. return k !== m;
  4751. },
  4752. 'q24' : function (k, m) {
  4753. return k - m;
  4754. },
  4755. 'V8Q' : function (k, m) {
  4756. return k === m;
  4757. },
  4758. 'P7r' : function (k, m) {
  4759. return k < m;
  4760. },
  4761. 'P2L' : function (k, m) {
  4762. return k * m;
  4763. },
  4764. 'S1B' : function (k, m) {
  4765. return k > m;
  4766. },
  4767. 'T2o' : function (k, m) {
  4768. return k !== m;
  4769. },
  4770. 'd1B' : function (k, m, e) {
  4771. return k * m / e;
  4772. },
  4773. 'w17' : function (k, m) {
  4774. return k - m;
  4775. },
  4776. 'u73' : function (k, m) {
  4777. return k - m;
  4778. },
  4779. 'f49' : function (k, m) {
  4780. return k * m;
  4781. },
  4782. 'A0I' : function (k, m) {
  4783. return k * m;
  4784. },
  4785. 'T4G' : function (k, m) {
  4786. return k >= m;
  4787. },
  4788. 'a76' : function (k, m) {
  4789. return k > m;
  4790. },
  4791. 'v0o' : function (k, m) {
  4792. return k > m;
  4793. },
  4794. 'u0B' : function (k, m) {
  4795. return k === m;
  4796. },
  4797. 'W3h' : function (k, m) {
  4798. return k !== m;
  4799. },
  4800. 'l6r' : function (k, m) {
  4801. return k !== m;
  4802. },
  4803. 'z9h' : function (k, m) {
  4804. return k === m;
  4805. },
  4806. 'X6Q' : function (k, m) {
  4807. return k === m;
  4808. },
  4809. 'I9v' : function (k, m) {
  4810. return k < m;
  4811. },
  4812. 'z3R' : function (k, m) {
  4813. return k / m;
  4814. },
  4815. 'd5L' : function (k, m) {
  4816. return k !== m;
  4817. },
  4818. 'N8J' : function (k, m) {
  4819. return k < m;
  4820. },
  4821. 't3g' : function (k, m) {
  4822. return k - m;
  4823. },
  4824. 'm6w' : function (k, m) {
  4825. return k < m;
  4826. },
  4827. 'i9q' : function (k, m) {
  4828. return k / m;
  4829. },
  4830. 'k4V' : function (k, m) {
  4831. return k === m;
  4832. },
  4833. 'n9G' : function (k, m) {
  4834. return k !== m;
  4835. },
  4836. 'y26' : function (k, m) {
  4837. return k < m;
  4838. },
  4839. 'X3' : function (k, m) {
  4840. return k > m;
  4841. },
  4842. 'R4R' : function (k, m) {
  4843. return k - m;
  4844. },
  4845. 'c3N' : function (k, m) {
  4846. return k instanceof m;
  4847. },
  4848. 'E4v' : function (k, m) {
  4849. return k * m;
  4850. },
  4851. 'x1Q' : function (k, m) {
  4852. return k === m;
  4853. },
  4854. 'd5N' : function (k, m) {
  4855. return k / m;
  4856. },
  4857. 'h9e' : function (k, m) {
  4858. return k >= m;
  4859. },
  4860. 'b87' : function (k, m) {
  4861. return k / m;
  4862. },
  4863. 'l6D' : function (k, m) {
  4864. return k >= m;
  4865. },
  4866. 'U1Q' : function (k, m) {
  4867. return k !== m;
  4868. },
  4869. 'n09' : function (k, m) {
  4870. return k * m;
  4871. },
  4872. 'L7d' : function (k, m) {
  4873. return k / m;
  4874. },
  4875. 'L8J' : function (k, m) {
  4876. return k > m;
  4877. },
  4878. 'n79' : function (k, m, e) {
  4879. return k * m * e;
  4880. },
  4881. 'w5e' : function (k, m) {
  4882. return k >> m;
  4883. },
  4884. 'E5w' : function (k, m) {
  4885. return k in m;
  4886. },
  4887. 'L1L' : function (k, m) {
  4888. return k instanceof m;
  4889. },
  4890. 'f4q' : function (k, m) {
  4891. return k > m;
  4892. },
  4893. 'i5v' : function (k, m) {
  4894. return k < m;
  4895. },
  4896. 'I1J' : function (k, m) {
  4897. return k - m;
  4898. },
  4899. 'O6R' : function (k, m) {
  4900. return k - m;
  4901. },
  4902. 'l5V' : function (k, m) {
  4903. return k === m;
  4904. },
  4905. 'm4v' : function (k, m) {
  4906. return k * m;
  4907. },
  4908. 'x87' : function (k, m) {
  4909. return k > m;
  4910. },
  4911. 's5u' : function (k, m) {
  4912. return k / m;
  4913. },
  4914. 't2A' : function (k, m) {
  4915. return k - m;
  4916. },
  4917. 'Z2L' : function (k, m) {
  4918. return k * m;
  4919. },
  4920. 'a6q' : function (k, m) {
  4921. return k > m;
  4922. },
  4923. 'M9h' : function (k, m) {
  4924. return k * m;
  4925. },
  4926. 'n3l' : function (k, m) {
  4927. return k * m;
  4928. },
  4929. 'p69' : function (k, m) {
  4930. return k | m;
  4931. },
  4932. 'X6b' : function (k, m) {
  4933. return k % m;
  4934. },
  4935. 'Z0u' : function (k, m) {
  4936. return k > m;
  4937. },
  4938. 'l1' : function (k, m) {
  4939. return k * m;
  4940. },
  4941. 'a0d' : function (k, m) {
  4942. return k - m;
  4943. },
  4944. 'p8I' : function (k, m) {
  4945. return k === m;
  4946. },
  4947. 'F8Q' : function (k, m, e) {
  4948. return k * m / e;
  4949. },
  4950. 'e7q' : function (k, m) {
  4951. return k > m;
  4952. },
  4953. 'h2Q' : function (k, m) {
  4954. return k / m;
  4955. },
  4956. 'G7G' : function (k, m) {
  4957. return k >= m;
  4958. },
  4959. 'G2l' : function (k, m) {
  4960. return k !== m;
  4961. },
  4962. 'i89' : function (k, m) {
  4963. return k === m;
  4964. },
  4965. 'i19' : function (k, m) {
  4966. return k | m;
  4967. },
  4968. 'o39' : function (k, m) {
  4969. return k < m;
  4970. },
  4971. 'V1r' : function (k, m) {
  4972. return k >= m;
  4973. },
  4974. 'd2P' : function (k, m) {
  4975. return k * m;
  4976. },
  4977. 'd3P' : function (k, m) {
  4978. return k === m;
  4979. },
  4980. 'e5w' : function (k, m) {
  4981. return k * m;
  4982. },
  4983. 'X8q' : function (k, m) {
  4984. return k % m;
  4985. },
  4986. 'G4b' : function (k, m) {
  4987. return k % m;
  4988. },
  4989. 'U9A' : function (k, m) {
  4990. return k > m;
  4991. },
  4992. 'j94' : function (k, m) {
  4993. return k * m;
  4994. },
  4995. 'A7A' : function (k, m) {
  4996. return k > m;
  4997. },
  4998. 'y23' : function (k, m) {
  4999. return k - m;
  5000. },
  5001. 'w34' : function (k, m) {
  5002. return k - m;
  5003. },
  5004. 'j6e' : function (k, m) {
  5005. return k % m;
  5006. },
  5007. 'G6b' : function (k, m) {
  5008. return k * m;
  5009. },
  5010. 'Z1V' : function (k, m) {
  5011. return k < m;
  5012. },
  5013. 'd8P' : function (k, m) {
  5014. return k > m;
  5015. },
  5016. 'v3r' : function (k, m) {
  5017. return k === m;
  5018. },
  5019. 'y6h' : function (k, m) {
  5020. return k > m;
  5021. },
  5022. 'x1w' : function (k, m) {
  5023. return k > m;
  5024. },
  5025. 'J2R' : function (k, m) {
  5026. return k < m;
  5027. },
  5028. 'i0B' : function (k, m) {
  5029. return k !== m;
  5030. },
  5031. 'K84' : function (k, m) {
  5032. return k === m;
  5033. },
  5034. 'Y6D' : function (k, m) {
  5035. return k * m;
  5036. },
  5037. 'j2V' : function (k, m) {
  5038. return k > m;
  5039. },
  5040. 'V7N' : function (k, m) {
  5041. return k < m;
  5042. },
  5043. 'x06' : function (k, m) {
  5044. return k > m;
  5045. },
  5046. 'd9g' : function (k, m) {
  5047. return k * m;
  5048. },
  5049. 'd2V' : function (k, m) {
  5050. return k === m;
  5051. },
  5052. 'q4L' : function (k, m) {
  5053. return k < m;
  5054. },
  5055. 'b8I' : function (k, m) {
  5056. return k !== m;
  5057. },
  5058. 'I9g' : function (k, m) {
  5059. return k * m;
  5060. },
  5061. 'B57' : function (k, m) {
  5062. return k > m;
  5063. },
  5064. 'N9d' : function (k, m) {
  5065. return k < m;
  5066. },
  5067. 'C44' : function (k, m) {
  5068. return k * m;
  5069. },
  5070. 's0b' : function (k, m) {
  5071. return k !== m;
  5072. },
  5073. 'g7q' : function (k, m) {
  5074. return k > m;
  5075. },
  5076. 'f6I' : function (k, m) {
  5077. return k !== m;
  5078. },
  5079. 'N2l' : function (k, m) {
  5080. return k / m;
  5081. },
  5082. 'u0I' : function (k, m) {
  5083. return k | m;
  5084. },
  5085. 'Y6A' : function (k, m) {
  5086. return k >= m;
  5087. },
  5088. 'b3b' : function (k, m) {
  5089. return k > m;
  5090. },
  5091. 'd8o' : function (k, m) {
  5092. return k < m;
  5093. },
  5094. 'n1' : function (k, m) {
  5095. return k * m;
  5096. },
  5097. 'w4v' : function (k, m) {
  5098. return k * m;
  5099. },
  5100. 'u7u' : function (k, m, e) {
  5101. return k - m + e;
  5102. },
  5103. 'U6D' : function (k, m) {
  5104. return k - m;
  5105. },
  5106. 'j29' : function (k, m) {
  5107. return k | m;
  5108. },
  5109. 'x3b' : function (k, m) {
  5110. return k | m;
  5111. },
  5112. 'p9g' : function (k, m) {
  5113. return k * m;
  5114. },
  5115. 'F1u' : function (k, m) {
  5116. return k > m;
  5117. },
  5118. 'b5G' : function (k, m) {
  5119. return k > m;
  5120. },
  5121. 'd0N' : function (k, m) {
  5122. return k == m;
  5123. },
  5124. 'p1v' : function (k, m) {
  5125. return k in m;
  5126. },
  5127. 'C4A' : function (k, m) {
  5128. return k > m;
  5129. },
  5130. 'X3A' : function (k, m) {
  5131. return k - m;
  5132. },
  5133. 'L2Q' : function (k, m) {
  5134. return k < m;
  5135. },
  5136. 'i0G' : function (k, m) {
  5137. return k === m;
  5138. },
  5139. 'k6' : function (k, m) {
  5140. return k * m;
  5141. },
  5142. 'X7e' : function (k, m) {
  5143. return k !== m;
  5144. },
  5145. 'g4g' : function (k, m) {
  5146. return k * m;
  5147. },
  5148. 'd14' : function (k, m) {
  5149. return k !== m;
  5150. },
  5151. 'A64' : function (k, m) {
  5152. return k !== m;
  5153. },
  5154. 'm7A' : function (k, m) {
  5155. return k > m;
  5156. },
  5157. 'd8e' : function (k, m) {
  5158. return k % m;
  5159. },
  5160. 'g3L' : function (k, m) {
  5161. return k * m;
  5162. },
  5163. 's07' : function (k, m) {
  5164. return k > m;
  5165. },
  5166. 'R6V' : function (k, m) {
  5167. return k !== m;
  5168. },
  5169. 'd69' : function (k, m) {
  5170. return k === m;
  5171. },
  5172. 'c8P' : function (k, m) {
  5173. return k > m;
  5174. },
  5175. 'Y1h' : function (k, m) {
  5176. return k < m;
  5177. },
  5178. 'd5I' : function (k, m) {
  5179. return k < m;
  5180. },
  5181. 'V4v' : function (k, m) {
  5182. return k == m;
  5183. },
  5184. 'p8r' : function (k, m) {
  5185. return k - m;
  5186. },
  5187. 't63' : function (k, m) {
  5188. return k & m;
  5189. },
  5190. 'S27' : function (k, m) {
  5191. return k / m;
  5192. },
  5193. 'v9l' : function (k, m) {
  5194. return k > m;
  5195. },
  5196. 'b8b' : function (k, m) {
  5197. return k % m;
  5198. },
  5199. 'X2w' : function (k, m) {
  5200. return k === m;
  5201. },
  5202. 'V9D' : function (k, m) {
  5203. return k * m;
  5204. },
  5205. 'z94' : function (k, m) {
  5206. return k / m;
  5207. },
  5208. 't9g' : function (k, m) {
  5209. return k * m;
  5210. },
  5211. 'w1d' : function (k, m) {
  5212. return k * m;
  5213. },
  5214. 'l56' : function (k, m) {
  5215. return k > m;
  5216. },
  5217. 'k5D' : function (k, m) {
  5218. return k > m;
  5219. },
  5220. 'v1w' : function (k, m) {
  5221. return k === m;
  5222. },
  5223. 'n0w' : function (k, m) {
  5224. return k === m;
  5225. },
  5226. 'w2P' : function (k, m) {
  5227. return k * m;
  5228. },
  5229. 'u0u' : function (k, m) {
  5230. return k / m;
  5231. },
  5232. 'a49' : function (k, m) {
  5233. return k - m;
  5234. },
  5235. 'C2d' : function (k, m) {
  5236. return k < m;
  5237. },
  5238. 'Y6r' : function (k, m) {
  5239. return k !== m;
  5240. },
  5241. 'g7D' : function (k, m) {
  5242. return k / m;
  5243. },
  5244. 's4d' : function (k, m) {
  5245. return k * m;
  5246. },
  5247. 'S4w' : function (k, m) {
  5248. return k >= m;
  5249. },
  5250. 'v0N' : function (k, m) {
  5251. return k < m;
  5252. },
  5253. 'y7J' : function (k, m) {
  5254. return k === m;
  5255. },
  5256. 'C3b' : function (k, m) {
  5257. return k > m;
  5258. },
  5259. 'B2q' : function (k, m) {
  5260. return k === m;
  5261. },
  5262. 'R1P' : function (k, m) {
  5263. return k * m;
  5264. },
  5265. 'H8l' : function (k, m) {
  5266. return k - m;
  5267. },
  5268. 'G4N' : function (k, m) {
  5269. return k - m;
  5270. },
  5271. 'E6g' : function (k, m) {
  5272. return k > m;
  5273. },
  5274. 'p4w' : function (k, m) {
  5275. return k === m;
  5276. },
  5277. 'X2R' : function (k, m) {
  5278. return k - m;
  5279. },
  5280. 'T87' : function (k, m) {
  5281. return k >= m;
  5282. },
  5283. 'N09' : function (k, m) {
  5284. return k * m;
  5285. },
  5286. 'f8w' : function (k, m) {
  5287. return k < m;
  5288. },
  5289. 'X0w' : function (k, m) {
  5290. return k > m;
  5291. },
  5292. 'l2l' : function (k, m) {
  5293. return k * m;
  5294. },
  5295. 'Y49' : function (k, m) {
  5296. return k > m;
  5297. },
  5298. 'w0u' : function (k, m) {
  5299. return k > m;
  5300. },
  5301. 'V6w' : function (k, m) {
  5302. return k < m;
  5303. },
  5304. 'e5e' : function (k, m) {
  5305. return k & m;
  5306. },
  5307. 'a1V' : function (k, m) {
  5308. return k < m;
  5309. },
  5310. 'I2V' : function (k, m) {
  5311. return k < m;
  5312. },
  5313. 'Q1R' : function (k, m) {
  5314. return k * m;
  5315. },
  5316. 'Y9e' : function (k, m) {
  5317. return k - m;
  5318. },
  5319. 'g99' : function (k, m) {
  5320. return k * m;
  5321. },
  5322. 'Y8v' : function (k, m) {
  5323. return k % m;
  5324. },
  5325. 'o2' : function (k, m) {
  5326. return k <= m;
  5327. },
  5328. 'P6l' : function (k, m) {
  5329. return k / m;
  5330. },
  5331. 'h5o' : function (k, m) {
  5332. return k > m;
  5333. },
  5334. 'W6G' : function (k, m) {
  5335. return k - m;
  5336. },
  5337. 'J74' : function (k, m) {
  5338. return k > m;
  5339. },
  5340. 'E2I' : function (k, m) {
  5341. return k !== m;
  5342. },
  5343. 's1v' : function (k, m) {
  5344. return k !== m;
  5345. },
  5346. 'K23' : function (k, m) {
  5347. return k / m;
  5348. },
  5349. 'y5G' : function (k, m) {
  5350. return k === m;
  5351. },
  5352. 'Q44' : function (k, m) {
  5353. return k * m;
  5354. },
  5355. 'e2e' : function (k, m) {
  5356. return k - m;
  5357. },
  5358. 'H1L' : function (k, m) {
  5359. return k * m;
  5360. },
  5361. 'x5G' : function (k, m) {
  5362. return k == m;
  5363. },
  5364. 'M3A' : function (k, m) {
  5365. return k * m;
  5366. },
  5367. 'n8R' : function (k, m, e) {
  5368. return k - m - e;
  5369. },
  5370. 'i7r' : function (k, m) {
  5371. return k in m;
  5372. },
  5373. 'h46' : function (k, m) {
  5374. return k < m;
  5375. },
  5376. 'S2V' : function (k, m) {
  5377. return k === m;
  5378. },
  5379. 'W4P' : function (k, m) {
  5380. return k === m;
  5381. },
  5382. 'A8L' : function (k, m) {
  5383. return k / m;
  5384. },
  5385. 'e5' : function (k, m) {
  5386. return k - m;
  5387. },
  5388. 'a2N' : function (k, m) {
  5389. return k / m;
  5390. },
  5391. 'h7g' : function (k, m) {
  5392. return k << m;
  5393. },
  5394. 'v2b' : function (k, m) {
  5395. return k * m;
  5396. },
  5397. 'x26' : function (k, m) {
  5398. return k >= m;
  5399. },
  5400. 'q6u' : function (k, m) {
  5401. return k == m;
  5402. },
  5403. 'z5D' : function (k, m) {
  5404. return k === m;
  5405. },
  5406. 'p1w' : function (k, m) {
  5407. return k > m;
  5408. },
  5409. 'b9l' : function (k, m) {
  5410. return k > m;
  5411. },
  5412. 'm0d' : function (k, m) {
  5413. return k * m;
  5414. },
  5415. 'U1l' : function (k, m) {
  5416. return k * m;
  5417. },
  5418. 'j44' : function (k, m) {
  5419. return k * m;
  5420. },
  5421. 'X2' : function (k, m) {
  5422. return k <= m;
  5423. },
  5424. 'i6l' : function (k, m) {
  5425. return k - m;
  5426. },
  5427. 'y9v' : function (k, m) {
  5428. return k === m;
  5429. },
  5430. 'f2b' : function (k, m) {
  5431. return k * m;
  5432. },
  5433. 'X7A' : function (k, m) {
  5434. return k > m;
  5435. },
  5436. 'g5v' : function (k, m) {
  5437. return k in m;
  5438. },
  5439. 'b8e' : function (k, m) {
  5440. return k - m;
  5441. },
  5442. 'k0v' : function (k, m) {
  5443. return k instanceof m;
  5444. },
  5445. 'u9b' : function (k, m) {
  5446. return k <= m;
  5447. },
  5448. 'h5V' : function (k, m) {
  5449. return k === m;
  5450. },
  5451. 'd1e' : function (k, m) {
  5452. return k & m;
  5453. },
  5454. 'o1e' : function (k, m) {
  5455. return k > m;
  5456. },
  5457. 'N7h' : function (k, m) {
  5458. return k !== m;
  5459. },
  5460. 'x0g' : function (k, m) {
  5461. return k - m;
  5462. },
  5463. 'c0D' : function (k, m) {
  5464. return k * m;
  5465. },
  5466. 'B2Q' : function (k, m) {
  5467. return k === m;
  5468. },
  5469. 'r5l' : function (k, m) {
  5470. return k === m;
  5471. },
  5472. 'm9P' : function (k, m) {
  5473. return k * m;
  5474. },
  5475. 'd0b' : function (k, m) {
  5476. return k !== m;
  5477. },
  5478. 'F46' : function (k, m) {
  5479. return k < m;
  5480. },
  5481. 'A4J' : function (k, m) {
  5482. return k >= m;
  5483. },
  5484. 'x5I' : function (k, m) {
  5485. return k !== m;
  5486. },
  5487. 'H2l' : function (k, m) {
  5488. return k / m;
  5489. },
  5490. 'I3N' : function (k, m) {
  5491. return k - m;
  5492. },
  5493. 'z3Q' : function (k, m) {
  5494. return k < m;
  5495. },
  5496. 'j1d' : function (k, m) {
  5497. return k !== m;
  5498. },
  5499. 'K1h' : function (k, m) {
  5500. return k < m;
  5501. },
  5502. 't7l' : function (k, m) {
  5503. return k > m;
  5504. },
  5505. 'n2v' : function (k, m) {
  5506. return k - m;
  5507. },
  5508. 'b0A' : function (k, m) {
  5509. return k < m;
  5510. },
  5511. 'O99' : function (k, m) {
  5512. return k | m;
  5513. },
  5514. 'j8P' : function (k, m) {
  5515. return k > m;
  5516. },
  5517. 'L8G' : function (k, m) {
  5518. return k >= m;
  5519. },
  5520. 'T4A' : function (k, m) {
  5521. return k % m;
  5522. },
  5523. 'r5Q' : function (k, m) {
  5524. return k * m;
  5525. },
  5526. 'R6G' : function (k, m) {
  5527. return k * m;
  5528. },
  5529. 'p33' : function (k, m) {
  5530. return k * m;
  5531. },
  5532. 'K9B' : function (k, m) {
  5533. return k - m;
  5534. },
  5535. 'a0B' : function (k, m) {
  5536. return k < m;
  5537. },
  5538. 'w77' : function (k, m) {
  5539. return k === m;
  5540. },
  5541. 'Y3w' : function (k, m) {
  5542. return k instanceof m;
  5543. },
  5544. 'c5' : function (k, m) {
  5545. return k * m;
  5546. },
  5547. 'h74' : function (k, m) {
  5548. return k * m;
  5549. },
  5550. 'k8V' : function (k, m) {
  5551. return k - m;
  5552. },
  5553. 'a9q' : function (k, m) {
  5554. return k === m;
  5555. },
  5556. 'I29' : function (k, m) {
  5557. return k / m;
  5558. },
  5559. 'H1u' : function (k, m) {
  5560. return k - m;
  5561. },
  5562. 'k4q' : function (k, m) {
  5563. return k > m;
  5564. },
  5565. 'g7V' : function (k, m) {
  5566. return k instanceof m;
  5567. },
  5568. 'q9u' : function (k, m) {
  5569. return k === m;
  5570. },
  5571. 'Z19' : function (k, m) {
  5572. return k - m;
  5573. },
  5574. 'p4G' : function (k, m) {
  5575. return k < m;
  5576. },
  5577. 'r9D' : function (k, m) {
  5578. return k !== m;
  5579. },
  5580. 'r9A' : function (k, m, e, o) {
  5581. return k * m * e * o;
  5582. },
  5583. 'Z4R' : function (k, m) {
  5584. return k - m;
  5585. },
  5586. 'v4w' : function (k, m) {
  5587. return k === m;
  5588. },
  5589. 'm8u' : function (k, m) {
  5590. return k === m;
  5591. },
  5592. 'v4G' : function (k, m) {
  5593. return k / m;
  5594. },
  5595. 'f3u' : function (k, m) {
  5596. return k >= m;
  5597. },
  5598. 'N9G' : function (k, m) {
  5599. return k == m;
  5600. },
  5601. 'I3B' : function (k, m) {
  5602. return k - m;
  5603. },
  5604. 'M5b' : function (k, m) {
  5605. return k / m;
  5606. },
  5607. 'N43' : function (k, m) {
  5608. return k - m;
  5609. },
  5610. 'q03' : function (k, m) {
  5611. return k - m;
  5612. },
  5613. 'U8A' : function (k, m) {
  5614. return k - m;
  5615. },
  5616. 'y4h' : function (k, m) {
  5617. return k === m;
  5618. },
  5619. 'I7l' : function (k, m) {
  5620. return k < m;
  5621. },
  5622. 'h0l' : function (k, m) {
  5623. return k > m;
  5624. },
  5625. 'm4R' : function (k, m) {
  5626. return k * m;
  5627. },
  5628. 'g96' : function (k, m) {
  5629. return k < m;
  5630. },
  5631. 'm2h' : function (k, m) {
  5632. return k > m;
  5633. },
  5634. 'X7L' : function (k, m) {
  5635. return k / m;
  5636. },
  5637. 'Z96' : function (k, m) {
  5638. return k === m;
  5639. },
  5640. 'd2o' : function (k, m) {
  5641. return k > m;
  5642. },
  5643. 'o2o' : function (k, m) {
  5644. return k >= m;
  5645. },
  5646. 'b1q' : function (k, m) {
  5647. return k | m;
  5648. },
  5649. 'O4g' : function (k, m) {
  5650. return k - m;
  5651. },
  5652. 'E8L' : function (k, m) {
  5653. return k / m;
  5654. },
  5655. 'A5w' : function (k, m) {
  5656. return k === m;
  5657. },
  5658. 's5e' : function (k, m) {
  5659. return k & m;
  5660. },
  5661. 'q5G' : function (k, m) {
  5662. return k == m;
  5663. },
  5664. 'R6l' : function (k, m) {
  5665. return k * m;
  5666. },
  5667. 'D8D' : function (k, m) {
  5668. return k <= m;
  5669. },
  5670. 'u3h' : function (k, m) {
  5671. return k > m;
  5672. },
  5673. 'r53' : function (k, m) {
  5674. return k - m;
  5675. },
  5676. 't8A' : function (k, m) {
  5677. return k === m;
  5678. },
  5679. 'L9G' : function (k, m) {
  5680. return k === m;
  5681. },
  5682. 't36' : function (k, m) {
  5683. return k % m;
  5684. },
  5685. 'L8R' : function (k, m) {
  5686. return k - m;
  5687. },
  5688. 'D9D' : function (k, m) {
  5689. return k / m;
  5690. },
  5691. 'X3u' : function (k, m) {
  5692. return k instanceof m;
  5693. },
  5694. 'o0q' : function (k, m) {
  5695. return k < m;
  5696. },
  5697. 'm1A' : function (k, m) {
  5698. return k == m;
  5699. },
  5700. 'L2w' : function (k, m) {
  5701. return k == m;
  5702. },
  5703. 'U7J' : function (k, m) {
  5704. return k !== m;
  5705. },
  5706. 'D54' : function (k, m) {
  5707. return k < m;
  5708. },
  5709. 'X2l' : function (k, m) {
  5710. return k === m;
  5711. },
  5712. 'A6g' : function (k, m) {
  5713. return k * m;
  5714. },
  5715. 'J6r' : function (k, m) {
  5716. return k >= m;
  5717. },
  5718. 'Q8b' : function (k, m) {
  5719. return k - m;
  5720. },
  5721. 'H7e' : function (k, m) {
  5722. return k >= m;
  5723. },
  5724. 'k94' : function (k, m) {
  5725. return k !== m;
  5726. },
  5727. 'W49' : function (k, m) {
  5728. return k - m;
  5729. },
  5730. 'Q8A' : function (k, m) {
  5731. return k === m;
  5732. },
  5733. 'C0A' : function (k, m) {
  5734. return k === m;
  5735. },
  5736. 'm3w' : function (k, m) {
  5737. return k === m;
  5738. },
  5739. 'f47' : function (k, m) {
  5740. return k / m;
  5741. },
  5742. 'K4r' : function (k, m) {
  5743. return k !== m;
  5744. },
  5745. 'V6N' : function (k, m) {
  5746. return k << m;
  5747. },
  5748. 'F4b' : function (k, m) {
  5749. return k >= m;
  5750. },
  5751. 'O7N' : function (k, m) {
  5752. return k === m;
  5753. },
  5754. 'C7P' : function (k, m) {
  5755. return k / m;
  5756. },
  5757. 'f9d' : function (k, m) {
  5758. return k - m;
  5759. },
  5760. 'T5L' : function (k, m) {
  5761. return k !== m;
  5762. },
  5763. 'b69' : function (k, m) {
  5764. return k | m;
  5765. },
  5766. 'f13' : function (k, m) {
  5767. return k * m;
  5768. },
  5769. 'S7Q' : function (k, m) {
  5770. return k > m;
  5771. },
  5772. 'g4l' : function (k, m) {
  5773. return k / m;
  5774. },
  5775. 'Y5q' : function (k, m) {
  5776. return k | m;
  5777. },
  5778. 'H7g' : function (k, m) {
  5779. return k << m;
  5780. },
  5781. 'V1V' : function (k, m) {
  5782. return k >= m;
  5783. },
  5784. 'X84' : function (k, m) {
  5785. return k !== m;
  5786. },
  5787. 'c9J' : function (k, m) {
  5788. return k - m;
  5789. },
  5790. 'y3b' : function (k, m) {
  5791. return k < m;
  5792. },
  5793. 'M13' : function (k, m) {
  5794. return k * m;
  5795. },
  5796. 'e89' : function (k, m) {
  5797. return k * m;
  5798. },
  5799. 'z09' : function (k, m) {
  5800. return k * m;
  5801. },
  5802. 'G3l' : function (k, m) {
  5803. return k * m;
  5804. },
  5805. 'F7g' : function (k, m, e, o) {
  5806. return k / m * e * o;
  5807. },
  5808. 'M8G' : function (k, m) {
  5809. return k < m;
  5810. },
  5811. 'k59' : function (k, m) {
  5812. return k / m;
  5813. },
  5814. 'c4I' : function (k, m) {
  5815. return k !== m;
  5816. },
  5817. 'A9r' : function (k, m) {
  5818. return k >= m;
  5819. },
  5820. 'B1I' : function (k, m) {
  5821. return k > m;
  5822. },
  5823. 'T44' : function (k, m) {
  5824. return k * m;
  5825. },
  5826. 'j8e' : function (k, m) {
  5827. return k / m;
  5828. },
  5829. 'V6J' : function (k, m) {
  5830. return k !== m;
  5831. },
  5832. 'k5N' : function (k, m) {
  5833. return k >>> m;
  5834. },
  5835. 'M5o' : function (k, m) {
  5836. return k !== m;
  5837. },
  5838. 'f6N' : function (k, m, e) {
  5839. return k * m * e;
  5840. },
  5841. 'r76' : function (k, m) {
  5842. return k - m;
  5843. },
  5844. 'w5v' : function (k, m) {
  5845. return k > m;
  5846. },
  5847. 'I5g' : function (k, m, e) {
  5848. return k * m * e;
  5849. },
  5850. 't4G' : function (k, m) {
  5851. return k / m;
  5852. },
  5853. 'w7N' : function (k, m) {
  5854. return k > m;
  5855. },
  5856. 'D3d' : function (k, m) {
  5857. return k / m;
  5858. },
  5859. 'F7I' : function (k, m) {
  5860. return k - m;
  5861. },
  5862. 'Z6w' : function (k, m) {
  5863. return k < m;
  5864. },
  5865. 'v2o' : function (k, m) {
  5866. return k < m;
  5867. },
  5868. 'S3D' : function (k, m) {
  5869. return k instanceof m;
  5870. },
  5871. 'e77' : function (k, m) {
  5872. return k < m;
  5873. },
  5874. 'v1l' : function (k, m) {
  5875. return k * m;
  5876. },
  5877. 'K8g' : function (k, m) {
  5878. return k * m;
  5879. },
  5880. 'X23' : function (k, m) {
  5881. return k | m;
  5882. },
  5883. 'j4I' : function (k, m) {
  5884. return k !== m;
  5885. },
  5886. 'V54' : function (k, m) {
  5887. return k > m;
  5888. },
  5889. 'F2D' : function (k, m) {
  5890. return k * m;
  5891. },
  5892. 'o6N' : function (k, m, e) {
  5893. return k * m * e;
  5894. },
  5895. 'P1P' : function (k, m) {
  5896. return k * m;
  5897. },
  5898. 'E2r' : function (k, m, e) {
  5899. return k * m * e;
  5900. },
  5901. 'd1w' : function (k, m) {
  5902. return k < m;
  5903. },
  5904. 'Z2I' : function (k, m) {
  5905. return k > m;
  5906. },
  5907. 'p2r' : function (k, m) {
  5908. return k === m;
  5909. },
  5910. 'I9u' : function (k, m) {
  5911. return k === m;
  5912. },
  5913. 'b2B' : function (k, m, e) {
  5914. return k * m * e;
  5915. },
  5916. 'e0e' : function (k, m) {
  5917. return k !== m;
  5918. },
  5919. 'k7B' : function (k, m) {
  5920. return k === m;
  5921. },
  5922. 'S0N' : function (k, m) {
  5923. return k < m;
  5924. },
  5925. 'w9D' : function (k, m) {
  5926. return k * m;
  5927. },
  5928. 'I86' : function (k, m) {
  5929. return k === m;
  5930. },
  5931. 'Q3P' : function (k, m) {
  5932. return k * m;
  5933. },
  5934. 'E5g' : function (k, m, e) {
  5935. return k * m * e;
  5936. },
  5937. 'C6h' : function (k, m) {
  5938. return k - m;
  5939. },
  5940. 'm19' : function (k, m) {
  5941. return k * m;
  5942. },
  5943. 'B6d' : function (k, m) {
  5944. return k / m;
  5945. },
  5946. 'E6V' : function (k, m) {
  5947. return k * m;
  5948. },
  5949. 'o8D' : function (k, m, e) {
  5950. return k - m - e;
  5951. },
  5952. 'z5q' : function (k, m) {
  5953. return k !== m;
  5954. },
  5955. 'I9R' : function (k, m) {
  5956. return k - m;
  5957. },
  5958. 'x4h' : function (k, m) {
  5959. return k > m;
  5960. },
  5961. 'j1B' : function (k, m) {
  5962. return k > m;
  5963. },
  5964. 'W6l' : function (k, m) {
  5965. return k - m;
  5966. },
  5967. 'S1v' : function (k, m) {
  5968. return k === m;
  5969. },
  5970. 'n5N' : function (k, m) {
  5971. return k >>> m;
  5972. },
  5973. 'W8B' : function (k, m) {
  5974. return k > m;
  5975. },
  5976. 'X56' : function (k, m) {
  5977. return k === m;
  5978. },
  5979. 'h2J' : function (k, m) {
  5980. return k - m;
  5981. },
  5982. 'c79' : function (k, m) {
  5983. return k !== m;
  5984. },
  5985. 't0V' : function (k, m) {
  5986. return k / m;
  5987. },
  5988. 'I1g' : function (k, m) {
  5989. return k * m;
  5990. },
  5991. 'O4B' : function (k, m, e, o) {
  5992. return k * m * e * o;
  5993. },
  5994. 'l2' : function (k, m) {
  5995. return k >= m;
  5996. },
  5997. 'O0e' : function (k, m) {
  5998. return k > m;
  5999. },
  6000. 'S2q' : function (k, m, e) {
  6001. return k - m - e;
  6002. },
  6003. 'K8J' : function (k, m) {
  6004. return k == m;
  6005. },
  6006. 'c7Q' : function (k, m) {
  6007. return k < m;
  6008. },
  6009. 'T7v' : function (k, m) {
  6010. return k - m;
  6011. },
  6012. 'P7D' : function (k, m) {
  6013. return k > m;
  6014. },
  6015. 'p07' : function (k, m) {
  6016. return k === m;
  6017. },
  6018. 'o24' : function (k, m) {
  6019. return k > m;
  6020. },
  6021. 'K5o' : function (k, m) {
  6022. return k !== m;
  6023. },
  6024. 'e99' : function (k, m) {
  6025. return k !== m;
  6026. },
  6027. 'U8Q' : function (k, m) {
  6028. return k === m;
  6029. },
  6030. 'D6' : function (k, m) {
  6031. return k * m;
  6032. },
  6033. 'p6B' : function (k, m) {
  6034. return k - m;
  6035. },
  6036. 'G47' : function (k, m) {
  6037. return k > m;
  6038. },
  6039. 'd44' : function (k, m) {
  6040. return k - m;
  6041. },
  6042. 'U5u' : function (k, m) {
  6043. return k - m;
  6044. },
  6045. 'I5G' : function (k, m) {
  6046. return k < m;
  6047. },
  6048. 'y2V' : function (k, m) {
  6049. return k < m;
  6050. },
  6051. 'B4D' : function (k, m) {
  6052. return k !== m;
  6053. },
  6054. 'P6V' : function (k, m) {
  6055. return k > m;
  6056. },
  6057. 'C9R' : function (k, m) {
  6058. return k * m;
  6059. },
  6060. 'y8b' : function (k, m) {
  6061. return k != m;
  6062. },
  6063. 'M1' : function (k, m) {
  6064. return k * m;
  6065. },
  6066. 'c44' : function (k, m) {
  6067. return k - m;
  6068. },
  6069. 'O5l' : function (k, m) {
  6070. return k * m;
  6071. },
  6072. 'e9o' : function (k, m) {
  6073. return k == m;
  6074. },
  6075. 'n6A' : function (k, m) {
  6076. return k === m;
  6077. },
  6078. 'V2u' : function (k, m) {
  6079. return k < m;
  6080. },
  6081. 'U2d' : function (k, m) {
  6082. return k - m;
  6083. },
  6084. 'a2G' : function (k, m) {
  6085. return k !== m;
  6086. },
  6087. 'q44' : function (k, m) {
  6088. return k * m;
  6089. },
  6090. 'v9J' : function (k, m) {
  6091. return k === m;
  6092. },
  6093. 'O83' : function (k, m) {
  6094. return k / m;
  6095. },
  6096. 'U0q' : function (k, m) {
  6097. return k < m;
  6098. },
  6099. 'P64' : function (k, m) {
  6100. return k * m;
  6101. },
  6102. 'W0u' : function (k, m) {
  6103. return k / m;
  6104. },
  6105. 'U3o' : function (k, m) {
  6106. return k * m;
  6107. },
  6108. 't4d' : function (k, m) {
  6109. return k * m;
  6110. },
  6111. 'P0d' : function (k, m) {
  6112. return k * m;
  6113. },
  6114. 'I6D' : function (k, m) {
  6115. return k - m;
  6116. },
  6117. 'G2v' : function (k, m) {
  6118. return k == m;
  6119. },
  6120. 'c9v' : function (k, m) {
  6121. return k === m;
  6122. },
  6123. 'v7P' : function (k, m) {
  6124. return k - m;
  6125. },
  6126. 'Y9d' : function (k, m) {
  6127. return k / m;
  6128. },
  6129. 'r4v' : function (k, m) {
  6130. return k * m;
  6131. },
  6132. 's0D' : function (k, m) {
  6133. return k * m;
  6134. },
  6135. 'B0R' : function (k, m) {
  6136. return k * m;
  6137. },
  6138. 'l57' : function (k, m) {
  6139. return k !== m;
  6140. },
  6141. 'h8l' : function (k, m) {
  6142. return k < m;
  6143. },
  6144. 'x7Q' : function (k, m) {
  6145. return k < m;
  6146. },
  6147. 'h6P' : function (k, m) {
  6148. return k * m;
  6149. },
  6150. 'r9V' : function (k, m) {
  6151. return k * m;
  6152. },
  6153. 'K2l' : function (k, m) {
  6154. return k <= m;
  6155. },
  6156. 'F6e' : function (k, m, e, o) {
  6157. return k | m | e | o;
  6158. },
  6159. 'z5g' : function (k, m, e) {
  6160. return k * m * e;
  6161. },
  6162. 'b1J' : function (k, m) {
  6163. return k - m;
  6164. },
  6165. 'L6P' : function (k, m) {
  6166. return k * m;
  6167. },
  6168. 'g6v' : function (k, m) {
  6169. return k / m;
  6170. },
  6171. 'a6g' : function (k, m) {
  6172. return k * m;
  6173. },
  6174. 't5L' : function (k, m) {
  6175. return k !== m;
  6176. },
  6177. 'x3P' : function (k, m) {
  6178. return k - m;
  6179. },
  6180. 'm54' : function (k, m) {
  6181. return k !== m;
  6182. },
  6183. 'e2h' : function (k, m) {
  6184. return k === m;
  6185. },
  6186. 'W3d' : function (k, m) {
  6187. return k * m;
  6188. },
  6189. 'R4J' : function (k, m) {
  6190. return k * m;
  6191. },
  6192. 'g04' : function (k, m) {
  6193. return k > m;
  6194. },
  6195. 'k5r' : function (k, m) {
  6196. return k !== m;
  6197. },
  6198. 'N3J' : function (k, m) {
  6199. return k > m;
  6200. },
  6201. 'g5Q' : function (k, m) {
  6202. return k / m;
  6203. },
  6204. 'o1g' : function (k, m) {
  6205. return k * m;
  6206. },
  6207. 'b8r' : function (k, m) {
  6208. return k - m;
  6209. },
  6210. 'Z97' : function (k, m) {
  6211. return k === m;
  6212. },
  6213. 'w6G' : function (k, m) {
  6214. return k === m;
  6215. },
  6216. 'J9e' : function (k, m) {
  6217. return k === m;
  6218. },
  6219. 'p23' : function (k, m, e) {
  6220. return k * m * e;
  6221. },
  6222. 'R34' : function (k, m) {
  6223. return k / m;
  6224. },
  6225. 'p6u' : function (k, m) {
  6226. return k == m;
  6227. },
  6228. 'c0A' : function (k, m) {
  6229. return k > m;
  6230. },
  6231. 'W5l' : function (k, m) {
  6232. return k > m;
  6233. },
  6234. 'Z7q' : function (k, m) {
  6235. return k != m;
  6236. },
  6237. 'H4V' : function (k, m) {
  6238. return k === m;
  6239. },
  6240. 'F2g' : function (k, m, e) {
  6241. return k * m * e;
  6242. },
  6243. 'U0b' : function (k, m) {
  6244. return k >= m;
  6245. },
  6246. 'x37' : function (k, m) {
  6247. return k === m;
  6248. },
  6249. 'U7R' : function (k, m) {
  6250. return k === m;
  6251. },
  6252. 'C36' : function (k, m) {
  6253. return k % m;
  6254. },
  6255. 'm7b' : function (k, m) {
  6256. return k > m;
  6257. },
  6258. 'G9G' : function (k, m) {
  6259. return k == m;
  6260. },
  6261. 'N83' : function (k, m) {
  6262. return k - m;
  6263. },
  6264. 'j7u' : function (k, m) {
  6265. return k / m;
  6266. },
  6267. 'M1I' : function (k, m) {
  6268. return k >= m;
  6269. },
  6270. 'H5o' : function (k, m) {
  6271. return k !== m;
  6272. },
  6273. 'A2e' : function (k, m) {
  6274. return k > m;
  6275. },
  6276. 'D7r' : function (k, m) {
  6277. return k === m;
  6278. },
  6279. 'i4B' : function (k, m) {
  6280. return k - m;
  6281. },
  6282. 'g0I' : function (k, m) {
  6283. return k / m;
  6284. },
  6285. 'w5Q' : function (k, m) {
  6286. return k * m;
  6287. },
  6288. 'o0o' : function (k, m) {
  6289. return k * m;
  6290. },
  6291. 'O5w' : function (k, m) {
  6292. return k !== m;
  6293. },
  6294. 'N5D' : function (k, m) {
  6295. return k * m;
  6296. },
  6297. 'z7L' : function (k, m) {
  6298. return k > m;
  6299. },
  6300. 'Z8u' : function (k, m) {
  6301. return k == m;
  6302. },
  6303. 'A8h' : function (k, m) {
  6304. return k !== m;
  6305. },
  6306. 'l9G' : function (k, m) {
  6307. return k === m;
  6308. },
  6309. 'v23' : function (k, m) {
  6310. return k >= m;
  6311. },
  6312. 'L8' : function (k, m) {
  6313. return k | m;
  6314. },
  6315. 'O04' : function (k, m) {
  6316. return k > m;
  6317. },
  6318. 'd07' : function (k, m) {
  6319. return k * m;
  6320. },
  6321. 't3B' : function (k, m) {
  6322. return k < m;
  6323. },
  6324. 'r0G' : function (k, m) {
  6325. return k < m;
  6326. },
  6327. 'Q8B' : function (k, m) {
  6328. return k < m;
  6329. },
  6330. 'i0d' : function (k, m) {
  6331. return k * m;
  6332. },
  6333. 'f4D' : function (k, m) {
  6334. return k !== m;
  6335. },
  6336. 'n5V' : function (k, m) {
  6337. return k === m;
  6338. },
  6339. 'Q9P' : function (k, m) {
  6340. return k * m;
  6341. },
  6342. 'h1L' : function (k, m) {
  6343. return k - m;
  6344. },
  6345. 'm5l' : function (k, m) {
  6346. return k === m;
  6347. },
  6348. 'l1b' : function (k, m) {
  6349. return k * m;
  6350. },
  6351. 'C8r' : function (k, m) {
  6352. return k > m;
  6353. },
  6354. 'v1Q' : function (k, m) {
  6355. return k === m;
  6356. },
  6357. 'C37' : function (k, m) {
  6358. return k - m;
  6359. },
  6360. 'D0d' : function (k, m) {
  6361. return k / m;
  6362. },
  6363. 'O7D' : function (k, m) {
  6364. return k > m;
  6365. },
  6366. 'U1v' : function (k, m) {
  6367. return k <= m;
  6368. },
  6369. 'w4R' : function (k, m) {
  6370. return k !== m;
  6371. },
  6372. 'P5Q' : function (k, m) {
  6373. return k !== m;
  6374. },
  6375. 'P4g' : function (k, m) {
  6376. return k / m;
  6377. },
  6378. 'p26' : function (k, m) {
  6379. return k <= m;
  6380. },
  6381. 'u5l' : function (k, m) {
  6382. return k - m;
  6383. },
  6384. 'z83' : function (k, m) {
  6385. return k - m;
  6386. },
  6387. 'V5D' : function (k, m) {
  6388. return k < m;
  6389. },
  6390. 'Y23' : function (k, m) {
  6391. return k | m;
  6392. },
  6393. 'v86' : function (k, m) {
  6394. return k === m;
  6395. },
  6396. 'A77' : function (k, m) {
  6397. return k < m;
  6398. },
  6399. 'G4r' : function (k, m) {
  6400. return k !== m;
  6401. },
  6402. 'Y0w' : function (k, m) {
  6403. return k * m;
  6404. },
  6405. 'Z9b' : function (k, m) {
  6406. return k > m;
  6407. },
  6408. 'N6b' : function (k, m) {
  6409. return k > m;
  6410. },
  6411. 'E3I' : function (k, m) {
  6412. return k > m;
  6413. },
  6414. 'e4l' : function (k, m) {
  6415. return k * m;
  6416. },
  6417. 'e34' : function (k, m) {
  6418. return k * m;
  6419. },
  6420. 'h9L' : function (k, m) {
  6421. return k < m;
  6422. },
  6423. 'q7J' : function (k, m) {
  6424. return k - m;
  6425. },
  6426. 'D6G' : function (k, m) {
  6427. return k === m;
  6428. },
  6429. 'M6P' : function (k, m) {
  6430. return k > m;
  6431. },
  6432. 'm9q' : function (k, m) {
  6433. return k === m;
  6434. },
  6435. 'd4I' : function (k, m) {
  6436. return k !== m;
  6437. },
  6438. 'Q87' : function (k, m) {
  6439. return k / m;
  6440. },
  6441. 'i6' : function (k, m) {
  6442. return k - m;
  6443. },
  6444. 'O77' : function (k, m) {
  6445. return k instanceof m;
  6446. },
  6447. 'v5I' : function (k, m) {
  6448. return k | m;
  6449. },
  6450. 'c6u' : function (k, m) {
  6451. return k === m;
  6452. },
  6453. 'W3e' : function (k, m) {
  6454. return k === m;
  6455. },
  6456. 'k4D' : function (k, m) {
  6457. return k > m;
  6458. },
  6459. 'J7G' : function (k, m) {
  6460. return k - m;
  6461. },
  6462. 'd4e' : function (k, m) {
  6463. return k > m;
  6464. },
  6465. 'E9D' : function (k, m) {
  6466. return k * m;
  6467. },
  6468. 'J3v' : function (k, m) {
  6469. return k < m;
  6470. },
  6471. 'q1d' : function (k, m) {
  6472. return k === m;
  6473. },
  6474. 'r5e' : function (k, m) {
  6475. return k | m;
  6476. },
  6477. 'a7N' : function (k, m) {
  6478. return k < m;
  6479. },
  6480. 'a7o' : function (k, m) {
  6481. return k & m;
  6482. },
  6483. 's7l' : function (k, m) {
  6484. return k > m;
  6485. },
  6486. 'j5' : function (k, m) {
  6487. return k * m;
  6488. },
  6489. 'D9V' : function (k, m) {
  6490. return k * m;
  6491. },
  6492. 'n7w' : function (k, m) {
  6493. return k - m;
  6494. },
  6495. 'm9b' : function (k, m) {
  6496. return k * m;
  6497. },
  6498. 'N7L' : function (k, m) {
  6499. return k < m;
  6500. },
  6501. 'K7A' : function (k, m) {
  6502. return k - m;
  6503. },
  6504. 'b3P' : function (k, m) {
  6505. return k - m;
  6506. },
  6507. 'q3r' : function (k, m) {
  6508. return k - m;
  6509. },
  6510. 'V5R' : function (k, m) {
  6511. return k <= m;
  6512. },
  6513. 'X9d' : function (k, m) {
  6514. return k > m;
  6515. },
  6516. 'Y0R' : function (k, m) {
  6517. return k === m;
  6518. },
  6519. 'y1g' : function (k, m) {
  6520. return k * m;
  6521. },
  6522. 'j2A' : function (k, m) {
  6523. return k / m;
  6524. },
  6525. 'o3q' : function (k, m) {
  6526. return k === m;
  6527. },
  6528. 'P1A' : function (k, m) {
  6529. return k < m;
  6530. },
  6531. 'a5P' : function (k, m) {
  6532. return k * m;
  6533. },
  6534. 'o36' : function (k, m) {
  6535. return k % m;
  6536. },
  6537. 'N9I' : function (k, m) {
  6538. return k !== m;
  6539. },
  6540. 'V1' : function (k, m) {
  6541. return k * m;
  6542. },
  6543. 'y29' : function (k, m) {
  6544. return k < m;
  6545. },
  6546. 'x14' : function (k, m) {
  6547. return k * m;
  6548. },
  6549. 'V0d' : function (k, m) {
  6550. return k >= m;
  6551. },
  6552. 'S06' : function (k, m) {
  6553. return k > m;
  6554. },
  6555. 'x3V' : function (k, m) {
  6556. return k * m;
  6557. },
  6558. 'V0G' : function (k, m) {
  6559. return k * m;
  6560. },
  6561. 'J2Q' : function (k, m) {
  6562. return k * m;
  6563. },
  6564. 'S4d' : function (k, m) {
  6565. return k * m;
  6566. },
  6567. 'R5v' : function (k, m) {
  6568. return k == m;
  6569. },
  6570. 'R5Q' : function (k, m) {
  6571. return k === m;
  6572. },
  6573. 'j4G' : function (k, m) {
  6574. return k < m;
  6575. },
  6576. 'f6r' : function (k, m) {
  6577. return k instanceof m;
  6578. },
  6579. 'z7e' : function (k, m) {
  6580. return k !== m;
  6581. },
  6582. 'a19' : function (k, m) {
  6583. return k * m;
  6584. },
  6585. 'u3I' : function (k, m) {
  6586. return k < m;
  6587. },
  6588. 'x9R' : function (k, m) {
  6589. return k <= m;
  6590. },
  6591. 'E4J' : function (k, m) {
  6592. return k < m;
  6593. },
  6594. 'T1b' : function (k, m) {
  6595. return k * m;
  6596. },
  6597. 'm7V' : function (k, m) {
  6598. return k / m;
  6599. },
  6600. 'b5h' : function (k, m) {
  6601. return k === m;
  6602. },
  6603. 'N9h' : function (k, m) {
  6604. return k === m;
  6605. },
  6606. 'f5o' : function (k, m) {
  6607. return k > m;
  6608. },
  6609. 'l8J' : function (k, m) {
  6610. return k instanceof m;
  6611. },
  6612. 'M09' : function (k, m) {
  6613. return k * m;
  6614. },
  6615. 'A4u' : function (k, m) {
  6616. return k / m;
  6617. },
  6618. 'n47' : function (k, m) {
  6619. return k < m;
  6620. },
  6621. 'E9r' : function (k, m) {
  6622. return k === m;
  6623. },
  6624. 'D6g' : function (k, m) {
  6625. return k > m;
  6626. },
  6627. 'W04' : function (k, m) {
  6628. return k - m;
  6629. },
  6630. 'y3A' : function (k, m, e) {
  6631. return k * m / e;
  6632. },
  6633. 'm0J' : function (k, m) {
  6634. return k - m;
  6635. },
  6636. 'D4Q' : function (k, m) {
  6637. return k > m;
  6638. },
  6639. 'g77' : function (k, m) {
  6640. return k < m;
  6641. },
  6642. 's9l' : function (k, m) {
  6643. return k - m;
  6644. },
  6645. 'H74' : function (k, m) {
  6646. return k / m;
  6647. },
  6648. 'C2B' : function (k, m, e) {
  6649. return k * m * e;
  6650. },
  6651. 'm4Q' : function (k, m) {
  6652. return k === m;
  6653. },
  6654. 'n4D' : function (k, m) {
  6655. return k !== m;
  6656. },
  6657. 'R9N' : function (k, m) {
  6658. return k === m;
  6659. },
  6660. 's7J' : function (k, m) {
  6661. return k * m;
  6662. },
  6663. 'k7h' : function (k, m) {
  6664. return k instanceof m;
  6665. },
  6666. 'Z3e' : function (k, m) {
  6667. return k & m;
  6668. },
  6669. 'm0g' : function (k, m, e) {
  6670. return k / m * e;
  6671. },
  6672. 'P9q' : function (k, m) {
  6673. return k * m;
  6674. },
  6675. 'M56' : function (k, m) {
  6676. return k > m;
  6677. },
  6678. 'V8u' : function (k, m) {
  6679. return k > m;
  6680. },
  6681. 'f46' : function (k, m) {
  6682. return k > m;
  6683. },
  6684. 'd03' : function (k, m) {
  6685. return k - m;
  6686. },
  6687. 'o1G' : function (k, m) {
  6688. return k > m;
  6689. },
  6690. 'L94' : function (k, m) {
  6691. return k / m;
  6692. },
  6693. 'z4N' : function (k, m) {
  6694. return k >= m;
  6695. },
  6696. 'P8B' : function (k, m, e) {
  6697. return k - m - e;
  6698. },
  6699. 'E64' : function (k, m) {
  6700. return k * m;
  6701. },
  6702. 'J1u' : function (k, m) {
  6703. return k > m;
  6704. },
  6705. 'R9D' : function (k, m) {
  6706. return k * m;
  6707. },
  6708. 'F5g' : function (k, m, e) {
  6709. return k * m * e;
  6710. },
  6711. 'S39' : function (k, m) {
  6712. return k / m;
  6713. },
  6714. 'o3b' : function (k, m) {
  6715. return k | m;
  6716. },
  6717. 'B9L' : function (k, m) {
  6718. return k !== m;
  6719. },
  6720. 'f67' : function (k, m) {
  6721. return k % m;
  6722. },
  6723. 'Z6q' : function (k, m) {
  6724. return k !== m;
  6725. },
  6726. 'Q6h' : function (k, m) {
  6727. return k !== m;
  6728. },
  6729. 'B8J' : function (k, m) {
  6730. return k instanceof m;
  6731. },
  6732. 'A2I' : function (k, m) {
  6733. return k === m;
  6734. },
  6735. 'N0Q' : function (k, m) {
  6736. return k > m;
  6737. },
  6738. 'k1' : function (k, m) {
  6739. return k <= m;
  6740. },
  6741. 'R17' : function (k, m) {
  6742. return k > m;
  6743. },
  6744. 'D6w' : function (k, m) {
  6745. return k < m;
  6746. },
  6747. 'H66' : function (k, m) {
  6748. return k instanceof m;
  6749. },
  6750. 'J5V' : function (k, m) {
  6751. return k === m;
  6752. },
  6753. 'M1o' : function (k, m) {
  6754. return k > m;
  6755. },
  6756. 'T06' : function (k, m) {
  6757. return k > m;
  6758. },
  6759. 'f9e' : function (k, m) {
  6760. return k < m;
  6761. },
  6762. 'f8J' : function (k, m) {
  6763. return k > m;
  6764. },
  6765. 'v4e' : function (k, m) {
  6766. return k < m;
  6767. },
  6768. 'D2N' : function (k, m) {
  6769. return k * m;
  6770. },
  6771. 't9l' : function (k, m) {
  6772. return k > m;
  6773. },
  6774. 'I3b' : function (k, m) {
  6775. return k >= m;
  6776. },
  6777. 'h8q' : function (k, m) {
  6778. return k > m;
  6779. },
  6780. 'K4b' : function (k, m) {
  6781. return k > m;
  6782. },
  6783. 'r6R' : function (k, m) {
  6784. return k - m;
  6785. },
  6786. 'u5g' : function (k, m) {
  6787. return k * m;
  6788. },
  6789. 'h2v' : function (k, m) {
  6790. return k > m;
  6791. },
  6792. 'J9I' : function (k, m) {
  6793. return k < m;
  6794. },
  6795. 'Y66' : function (k, m) {
  6796. return k === m;
  6797. },
  6798. 'Z8' : function (k, m) {
  6799. return k / m;
  6800. },
  6801. 'b1R' : function (k, m) {
  6802. return k != m;
  6803. },
  6804. 'c16' : function (k, m) {
  6805. return k === m;
  6806. },
  6807. 'E17' : function (k, m) {
  6808. return k - m;
  6809. },
  6810. 'q6e' : function (k, m) {
  6811. return k > m;
  6812. },
  6813. 'o3V' : function (k, m) {
  6814. return k * m;
  6815. },
  6816. 'c1q' : function (k, m) {
  6817. return k !== m;
  6818. },
  6819. 'e5l' : function (k, m) {
  6820. return k / m;
  6821. },
  6822. 'M79' : function (k, m) {
  6823. return k * m;
  6824. },
  6825. 'L0w' : function (k, m) {
  6826. return k * m;
  6827. },
  6828. 'o5I' : function (k, m) {
  6829. return k / m;
  6830. },
  6831. 'h2l' : function (k, m) {
  6832. return k / m;
  6833. },
  6834. 'S29' : function (k, m) {
  6835. return k * m;
  6836. },
  6837. 'k0w' : function (k, m) {
  6838. return k - m;
  6839. },
  6840. 'n4o' : function (k, m) {
  6841. return k === m;
  6842. },
  6843. 'L2r' : function (k, m) {
  6844. return k === m;
  6845. },
  6846. 'm2L' : function (k, m) {
  6847. return k * m;
  6848. },
  6849. 'p0b' : function (k, m) {
  6850. return k > m;
  6851. },
  6852. 't6o' : function (k, m) {
  6853. return k - m;
  6854. },
  6855. 'q1w' : function (k, m) {
  6856. return k > m;
  6857. },
  6858. 'o1v' : function (k, m) {
  6859. return k === m;
  6860. },
  6861. 'y39' : function (k, m) {
  6862. return k / m;
  6863. },
  6864. 'Z2h' : function (k, m) {
  6865. return k === m;
  6866. },
  6867. 'O26' : function (k, m, e, o) {
  6868. return k | m | e | o;
  6869. },
  6870. 'd5A' : function (k, m) {
  6871. return k * m;
  6872. },
  6873. 'b4L' : function (k, m) {
  6874. return k - m;
  6875. },
  6876. 'D53' : function (k, m) {
  6877. return k < m;
  6878. },
  6879. 'P17' : function (k, m) {
  6880. return k - m;
  6881. },
  6882. 'K0w' : function (k, m) {
  6883. return k === m;
  6884. },
  6885. 'x27' : function (k, m) {
  6886. return k > m;
  6887. },
  6888. 'D5v' : function (k, m) {
  6889. return k !== m;
  6890. },
  6891. 't7J' : function (k, m) {
  6892. return k instanceof m;
  6893. },
  6894. 'P4R' : function (k, m) {
  6895. return k * m;
  6896. },
  6897. 'y9P' : function (k, m, e) {
  6898. return k * m / e;
  6899. },
  6900. 'J8J' : function (k, m) {
  6901. return k >= m;
  6902. },
  6903. 'j7R' : function (k, m) {
  6904. return k - m;
  6905. },
  6906. 'l7A' : function (k, m) {
  6907. return k === m;
  6908. },
  6909. 'O4Q' : function (k, m) {
  6910. return k > m;
  6911. },
  6912. 'd94' : function (k, m) {
  6913. return k * m;
  6914. },
  6915. 'A0L' : function (k, m) {
  6916. return k instanceof m;
  6917. },
  6918. 't0q' : function (k, m) {
  6919. return k < m;
  6920. },
  6921. 'M0P' : function (k, m) {
  6922. return k === m;
  6923. },
  6924. 'S9R' : function (k, m) {
  6925. return k >= m;
  6926. },
  6927. 'P8R' : function (k, m) {
  6928. return k - m;
  6929. },
  6930. 'q2' : function (k, m) {
  6931. return k <= m;
  6932. },
  6933. 'j3b' : function (k, m) {
  6934. return k >= m;
  6935. },
  6936. 'V0h' : function (k, m) {
  6937. return k instanceof m;
  6938. },
  6939. 'y3o' : function (k, m) {
  6940. return k > m;
  6941. },
  6942. 'l2J' : function (k, m) {
  6943. return k * m;
  6944. },
  6945. 'O19' : function (k, m, e) {
  6946. return k / m * e;
  6947. },
  6948. 'C0g' : function (k, m) {
  6949. return k / m;
  6950. },
  6951. 'i3I' : function (k, m) {
  6952. return k === m;
  6953. },
  6954. 'm2e' : function (k, m) {
  6955. return k - m;
  6956. },
  6957. 'o27' : function (k, m) {
  6958. return k - m;
  6959. },
  6960. 'Q5B' : function (k, m) {
  6961. return k * m;
  6962. },
  6963. 'x86' : function (k, m) {
  6964. return k === m;
  6965. },
  6966. 'K2g' : function (k, m) {
  6967. return k / m;
  6968. },
  6969. 'b4G' : function (k, m) {
  6970. return k === m;
  6971. },
  6972. 'F09' : function (k, m) {
  6973. return k * m;
  6974. },
  6975. 'U3B' : function (k, m) {
  6976. return k < m;
  6977. },
  6978. 'f9L' : function (k, m) {
  6979. return k < m;
  6980. },
  6981. 'F4D' : function (k, m) {
  6982. return k - m;
  6983. },
  6984. 'w19' : function (k, m) {
  6985. return k === m;
  6986. },
  6987. 'G0Q' : function (k, m) {
  6988. return k > m;
  6989. },
  6990. 'V3I' : function (k, m) {
  6991. return k < m;
  6992. },
  6993. 'Z4g' : function (k, m) {
  6994. return k / m;
  6995. },
  6996. 'A4R' : function (k, m) {
  6997. return k * m;
  6998. },
  6999. 'g9o' : function (k, m) {
  7000. return k == m;
  7001. },
  7002. 'Z4J' : function (k, m) {
  7003. return k * m;
  7004. },
  7005. 'p7P' : function (k, m) {
  7006. return k === m;
  7007. },
  7008. 'S8P' : function (k, m) {
  7009. return k > m;
  7010. },
  7011. 'V2L' : function (k, m) {
  7012. return k * m;
  7013. },
  7014. 'N94' : function (k, m) {
  7015. return k * m;
  7016. },
  7017. 'f1I' : function (k, m) {
  7018. return k >= m;
  7019. },
  7020. 'W9b' : function (k, m) {
  7021. return k > m;
  7022. },
  7023. 'T39' : function (k, m) {
  7024. return k > m;
  7025. },
  7026. 'a5J' : function (k, m) {
  7027. return k * m;
  7028. },
  7029. 'M67' : function (k, m) {
  7030. return k - m;
  7031. },
  7032. 's5h' : function (k, m) {
  7033. return k !== m;
  7034. },
  7035. 'q29' : function (k, m) {
  7036. return k === m;
  7037. },
  7038. 'S5G' : function (k, m) {
  7039. return k > m;
  7040. },
  7041. 'm1d' : function (k, m) {
  7042. return k - m;
  7043. },
  7044. 'n74' : function (k, m) {
  7045. return k / m;
  7046. },
  7047. 'U6B' : function (k, m) {
  7048. return k * m;
  7049. },
  7050. 'q2B' : function (k, m) {
  7051. return k > m;
  7052. },
  7053. 'S07' : function (k, m) {
  7054. return k === m;
  7055. },
  7056. 'h79' : function (k, m) {
  7057. return k !== m;
  7058. },
  7059. 'J09' : function (k, m) {
  7060. return k * m;
  7061. },
  7062. 'U1D' : function (k, m) {
  7063. return k !== m;
  7064. },
  7065. 'F4N' : function (k, m) {
  7066. return k == m;
  7067. },
  7068. 'j4B' : function (k, m, e, o) {
  7069. return k * m * e * o;
  7070. },
  7071. 'z9B' : function (k, m) {
  7072. return k === m;
  7073. },
  7074. 'a17' : function (k, m) {
  7075. return k < m;
  7076. },
  7077. 'w0e' : function (k, m) {
  7078. return k >= m;
  7079. },
  7080. 'f1L' : function (k, m) {
  7081. return k !== m;
  7082. },
  7083. 'B0P' : function (k, m) {
  7084. return k >= m;
  7085. },
  7086. 'h7e' : function (k, m) {
  7087. return k === m;
  7088. },
  7089. 'B4V' : function (k, m) {
  7090. return k % m;
  7091. },
  7092. 'q69' : function (k, m) {
  7093. return k === m;
  7094. },
  7095. 'H47' : function (k, m) {
  7096. return k < m;
  7097. },
  7098. 'b86' : function (k, m) {
  7099. return k === m;
  7100. },
  7101. 'y0q' : function (k, m) {
  7102. return k > m;
  7103. },
  7104. 'R2G' : function (k, m) {
  7105. return k !== m;
  7106. },
  7107. 'g0e' : function (k, m) {
  7108. return k < m;
  7109. },
  7110. 'H5N' : function (k, m) {
  7111. return k & m;
  7112. },
  7113. 'K6b' : function (k, m) {
  7114. return k > m;
  7115. },
  7116. 'a3w' : function (k, m) {
  7117. return k === m;
  7118. },
  7119. 'S86' : function (k, m) {
  7120. return k === m;
  7121. },
  7122. 'x7R' : function (k, m) {
  7123. return k / m;
  7124. },
  7125. 'y6o' : function (k, m) {
  7126. return k - m;
  7127. },
  7128. 'b24' : function (k, m) {
  7129. return k - m;
  7130. },
  7131. 'v5L' : function (k, m) {
  7132. return k === m;
  7133. },
  7134. 'v0b' : function (k, m) {
  7135. return k % m;
  7136. },
  7137. 'r6V' : function (k, m) {
  7138. return k * m;
  7139. },
  7140. 'h1N' : function (k, m) {
  7141. return k / m;
  7142. },
  7143. 'k3v' : function (k, m) {
  7144. return k > m;
  7145. },
  7146. 'a7r' : function (k, m) {
  7147. return k | m;
  7148. },
  7149. 't6L' : function (k, m) {
  7150. return k !== m;
  7151. },
  7152. 't26' : function (k, m) {
  7153. return k === m;
  7154. },
  7155. 'G8' : function (k, m) {
  7156. return k * m;
  7157. },
  7158. 'u6l' : function (k, m) {
  7159. return k === m;
  7160. },
  7161. 'K6Q' : function (k, m) {
  7162. return k / m;
  7163. },
  7164. 'H8w' : function (k, m) {
  7165. return k === m;
  7166. },
  7167. 'n9B' : function (k, m) {
  7168. return k - m;
  7169. },
  7170. 'v39' : function (k, m) {
  7171. return k / m;
  7172. },
  7173. 'K0P' : function (k, m) {
  7174. return k > m;
  7175. },
  7176. 'V17' : function (k, m) {
  7177. return k < m;
  7178. },
  7179. 'G8J' : function (k, m) {
  7180. return k !== m;
  7181. },
  7182. 'j4d' : function (k, m) {
  7183. return k * m;
  7184. },
  7185. 'i6v' : function (k, m) {
  7186. return k === m;
  7187. },
  7188. 'J2q' : function (k, m) {
  7189. return k | m;
  7190. },
  7191. 'u7A' : function (k, m, e, o) {
  7192. return k * m * e * o;
  7193. },
  7194. 'w2e' : function (k, m) {
  7195. return k << m;
  7196. },
  7197. 'S1R' : function (k, m) {
  7198. return k >= m;
  7199. },
  7200. 'A9N' : function (k, m) {
  7201. return k === m;
  7202. },
  7203. 'f1N' : function (k, m) {
  7204. return k === m;
  7205. },
  7206. 'r6' : function (k, m) {
  7207. return k * m;
  7208. },
  7209. 'i9P' : function (k, m, e) {
  7210. return k * m / e;
  7211. },
  7212. 'K6P' : function (k, m) {
  7213. return k > m;
  7214. },
  7215. 'M84' : function (k, m) {
  7216. return k === m;
  7217. },
  7218. 'W7b' : function (k, m) {
  7219. return k !== m;
  7220. },
  7221. 'F47' : function (k, m) {
  7222. return k < m;
  7223. },
  7224. 'U3V' : function (k, m) {
  7225. return k * m;
  7226. },
  7227. 'x6u' : function (k, m) {
  7228. return k === m;
  7229. },
  7230. 'Q7P' : function (k, m) {
  7231. return k * m;
  7232. },
  7233. 's44' : function (k, m) {
  7234. return k * m;
  7235. },
  7236. 'v8o' : function (k, m) {
  7237. return k - m;
  7238. },
  7239. 'w1A' : function (k, m) {
  7240. return k < m;
  7241. },
  7242. 'y1w' : function (k, m) {
  7243. return k <= m;
  7244. },
  7245. 'v2d' : function (k, m) {
  7246. return k < m;
  7247. },
  7248. 'C0D' : function (k, m) {
  7249. return k / m;
  7250. },
  7251. 'B3' : function (k, m) {
  7252. return k instanceof m;
  7253. },
  7254. 'T79' : function (k, m) {
  7255. return k * m;
  7256. },
  7257. 'K3l' : function (k, m) {
  7258. return k * m;
  7259. },
  7260. 'x33' : function (k, m) {
  7261. return k / m;
  7262. },
  7263. 'o06' : function (k, m) {
  7264. return k < m;
  7265. },
  7266. 'E2N' : function (k, m) {
  7267. return k === m;
  7268. },
  7269. 'h47' : function (k, m) {
  7270. return k >= m;
  7271. },
  7272. 'c3D' : function (k, m) {
  7273. return k * m;
  7274. },
  7275. 'u4Q' : function (k, m) {
  7276. return k === m;
  7277. },
  7278. 'f2J' : function (k, m) {
  7279. return k * m;
  7280. },
  7281. 'c94' : function (k, m) {
  7282. return k !== m;
  7283. },
  7284. 'j6u' : function (k, m) {
  7285. return k == m;
  7286. },
  7287. 't1l' : function (k, m) {
  7288. return k / m;
  7289. },
  7290. 'y9w' : function (k, m) {
  7291. return k > m;
  7292. },
  7293. 'a3L' : function (k, m) {
  7294. return k * m;
  7295. },
  7296. 'J7B' : function (k, m) {
  7297. return k > m;
  7298. },
  7299. 'e4R' : function (k, m) {
  7300. return k * m;
  7301. },
  7302. 'x36' : function (k, m) {
  7303. return k * m;
  7304. },
  7305. 'r1r' : function (k, m) {
  7306. return k < m;
  7307. },
  7308. 'e14' : function (k, m) {
  7309. return k > m;
  7310. },
  7311. 'i53' : function (k, m) {
  7312. return k - m;
  7313. },
  7314. 'm5' : function (k, m) {
  7315. return k * m;
  7316. },
  7317. 'P4P' : function (k, m) {
  7318. return k * m;
  7319. },
  7320. 'X0P' : function (k, m) {
  7321. return k > m;
  7322. },
  7323. 'v36' : function (k, m) {
  7324. return k * m;
  7325. },
  7326. 'M6b' : function (k, m) {
  7327. return k * m;
  7328. },
  7329. 'R7D' : function (k, m) {
  7330. return k > m;
  7331. },
  7332. 'Z8Q' : function (k, m) {
  7333. return k !== m;
  7334. },
  7335. 'l7w' : function (k, m) {
  7336. return k - m;
  7337. },
  7338. 'u1r' : function (k, m) {
  7339. return k < m;
  7340. },
  7341. 'i4J' : function (k, m) {
  7342. return k < m;
  7343. },
  7344. 'P4J' : function (k, m) {
  7345. return k === m;
  7346. },
  7347. 'D4v' : function (k, m) {
  7348. return k === m;
  7349. },
  7350. 'T6N' : function (k, m) {
  7351. return k % m;
  7352. },
  7353. 'n59' : function (k, m) {
  7354. return k === m;
  7355. },
  7356. 'C9A' : function (k, m, e) {
  7357. return k * m / e;
  7358. },
  7359. 'a6J' : function (k, m) {
  7360. return k > m;
  7361. },
  7362. 'd1R' : function (k, m) {
  7363. return k > m;
  7364. },
  7365. 'l3B' : function (k, m) {
  7366. return k === m;
  7367. },
  7368. 'D2I' : function (k, m) {
  7369. return k / m;
  7370. },
  7371. 'Q7J' : function (k, m) {
  7372. return k < m;
  7373. },
  7374. 'I79' : function (k, m, e) {
  7375. return k * m * e;
  7376. },
  7377. 'y3r' : function (k, m) {
  7378. return k * m;
  7379. },
  7380. 'V8' : function (k, m) {
  7381. return k / m;
  7382. },
  7383. 'N0w' : function (k, m) {
  7384. return k * m;
  7385. },
  7386. 'x4L' : function (k, m) {
  7387. return k - m;
  7388. },
  7389. 'V8h' : function (k, m) {
  7390. return k !== m;
  7391. },
  7392. 'X9L' : function (k, m) {
  7393. return k / m;
  7394. },
  7395. 'm2A' : function (k, m) {
  7396. return k * m;
  7397. },
  7398. 'A2u' : function (k, m) {
  7399. return k === m;
  7400. },
  7401. 'g97' : function (k, m) {
  7402. return k > m;
  7403. },
  7404. 'Q4P' : function (k, m) {
  7405. return k * m;
  7406. },
  7407. 'b0g' : function (k, m) {
  7408. return k > m;
  7409. },
  7410. 'G9h' : function (k, m) {
  7411. return k !== m;
  7412. },
  7413. 'R3L' : function (k, m) {
  7414. return k - m;
  7415. },
  7416. 'h0R' : function (k, m) {
  7417. return k === m;
  7418. },
  7419. 'l1u' : function (k, m) {
  7420. return k in m;
  7421. },
  7422. 'h0v' : function (k, m) {
  7423. return k !== m;
  7424. },
  7425. 'l47' : function (k, m) {
  7426. return k >= m;
  7427. },
  7428. 'd9Q' : function (k, m) {
  7429. return k * m;
  7430. },
  7431. 'r5P' : function (k, m) {
  7432. return k === m;
  7433. },
  7434. 'y8o' : function (k, m) {
  7435. return k - m;
  7436. },
  7437. 'f83' : function (k, m) {
  7438. return k * m;
  7439. },
  7440. 'r6q' : function (k, m) {
  7441. return k % m;
  7442. },
  7443. 'D5Q' : function (k, m) {
  7444. return k | m;
  7445. },
  7446. 'h6' : function (k, m) {
  7447. return k * m;
  7448. },
  7449. 'C9Q' : function (k, m) {
  7450. return k - m;
  7451. },
  7452. 'r54' : function (k, m) {
  7453. return k !== m;
  7454. },
  7455. 'K9G' : function (k, m) {
  7456. return k < m;
  7457. },
  7458. 'w96' : function (k, m) {
  7459. return k - m;
  7460. },
  7461. 'o9l' : function (k, m) {
  7462. return k > m;
  7463. },
  7464. 'r0d' : function (k, m) {
  7465. return k * m;
  7466. },
  7467. 'H0v' : function (k, m) {
  7468. return k === m;
  7469. },
  7470. 't37' : function (k, m) {
  7471. return k - m;
  7472. },
  7473. 'F4r' : function (k, m) {
  7474. return k === m;
  7475. },
  7476. 'E3e' : function (k, m) {
  7477. return k >= m;
  7478. },
  7479. 'r73' : function (k, m) {
  7480. return k - m;
  7481. },
  7482. 'W0L' : function (k, m) {
  7483. return k instanceof m;
  7484. },
  7485. 'D2L' : function (k, m) {
  7486. return k instanceof m;
  7487. },
  7488. 'j1e' : function (k, m) {
  7489. return k & m;
  7490. },
  7491. 'h8d' : function (k, m) {
  7492. return k !== m;
  7493. },
  7494. 'C66' : function (k, m, e) {
  7495. return k - m + e;
  7496. },
  7497. 'r3I' : function (k, m) {
  7498. return k < m;
  7499. },
  7500. 'u9o' : function (k, m) {
  7501. return k == m;
  7502. },
  7503. 'D73' : function (k, m) {
  7504. return k * m;
  7505. },
  7506. 's7Q' : function (k, m) {
  7507. return k > m;
  7508. },
  7509. 'J0w' : function (k, m) {
  7510. return k == m;
  7511. },
  7512. 'N5o' : function (k, m) {
  7513. return k == m;
  7514. },
  7515. 'K8G' : function (k, m) {
  7516. return k === m;
  7517. },
  7518. 'Z0h' : function (k, m) {
  7519. return k / m;
  7520. },
  7521. 'j6B' : function (k, m) {
  7522. return k >= m;
  7523. },
  7524. 'L4b' : function (k, m) {
  7525. return k % m;
  7526. },
  7527. 'J3R' : function (k, m) {
  7528. return k / m;
  7529. },
  7530. 'B0J' : function (k, m) {
  7531. return k > m;
  7532. },
  7533. 'C1v' : function (k, m) {
  7534. return k === m;
  7535. },
  7536. 'B09' : function (k, m) {
  7537. return k * m;
  7538. },
  7539. 'z9I' : function (k, m) {
  7540. return k < m;
  7541. },
  7542. 'g54' : function (k, m) {
  7543. return k !== m;
  7544. },
  7545. 'M2w' : function (k, m) {
  7546. return k === m;
  7547. },
  7548. 'z4o' : function (k, m) {
  7549. return k === m;
  7550. },
  7551. 'X4N' : function (k, m) {
  7552. return k - m;
  7553. },
  7554. 'k8d' : function (k, m) {
  7555. return k * m;
  7556. },
  7557. 'X8V' : function (k, m) {
  7558. return k - m;
  7559. },
  7560. 'h4b' : function (k, m) {
  7561. return k > m;
  7562. },
  7563. 'S3q' : function (k, m) {
  7564. return k <= m;
  7565. },
  7566. 'G8q' : function (k, m) {
  7567. return k > m;
  7568. },
  7569. 'b0V' : function (k, m) {
  7570. return k - m;
  7571. },
  7572. 'J6d' : function (k, m) {
  7573. return k % m;
  7574. },
  7575. 'W9V' : function (k, m) {
  7576. return k * m;
  7577. },
  7578. 'E19' : function (k, m) {
  7579. return k * m;
  7580. },
  7581. 'h2D' : function (k, m) {
  7582. return k === m;
  7583. },
  7584. 'C4G' : function (k, m) {
  7585. return k / m;
  7586. },
  7587. 'R9b' : function (k, m) {
  7588. return k <= m;
  7589. },
  7590. 'u5d' : function (k, m) {
  7591. return k / m;
  7592. },
  7593. 'Y0J' : function (k, m) {
  7594. return k >>> m;
  7595. },
  7596. 'w7D' : function (k, m) {
  7597. return k * m;
  7598. },
  7599. 'n0l' : function (k, m) {
  7600. return k > m;
  7601. },
  7602. 'G7L' : function (k, m) {
  7603. return k instanceof m;
  7604. },
  7605. 'c24' : function (k, m) {
  7606. return k - m;
  7607. },
  7608. 'k7u' : function (k, m) {
  7609. return k < m;
  7610. },
  7611. 'P7N' : function (k, m) {
  7612. return k === m;
  7613. },
  7614. 'x6L' : function (k, m) {
  7615. return k % m;
  7616. },
  7617. 'U4e' : function (k, m) {
  7618. return k >= m;
  7619. },
  7620. 'z67' : function (k, m) {
  7621. return k / m;
  7622. },
  7623. 'P9N' : function (k, m) {
  7624. return k >>> m;
  7625. },
  7626. 'a66' : function (k, m) {
  7627. return k === m;
  7628. },
  7629. 'l6d' : function (k, m, e) {
  7630. return k * m / e;
  7631. },
  7632. 'w4l' : function (k, m) {
  7633. return k / m;
  7634. },
  7635. 'm0u' : function (k, m) {
  7636. return k > m;
  7637. },
  7638. 'e9b' : function (k, m) {
  7639. return k | m;
  7640. },
  7641. 'M57' : function (k, m) {
  7642. return k < m;
  7643. },
  7644. 'P96' : function (k, m) {
  7645. return k < m;
  7646. },
  7647. 'n3u' : function (k, m) {
  7648. return k <= m;
  7649. },
  7650. 'n2J' : function (k, m) {
  7651. return k - m;
  7652. },
  7653. 'W9r' : function (k, m) {
  7654. return k !== m;
  7655. },
  7656. 'Y0l' : function (k, m) {
  7657. return k === m;
  7658. },
  7659. 'f8q' : function (k, m) {
  7660. return k % m;
  7661. },
  7662. 'I9Q' : function (k, m) {
  7663. return k < m;
  7664. },
  7665. 'l6N' : function (k, m, e) {
  7666. return k | m | e;
  7667. },
  7668. 'L24' : function (k, m) {
  7669. return k / m;
  7670. },
  7671. 'e6V' : function (k, m) {
  7672. return k / m;
  7673. },
  7674. 'Z76' : function (k, m) {
  7675. return k === m;
  7676. },
  7677. 'd93' : function (k, m) {
  7678. return k - m;
  7679. },
  7680. 'p8o' : function (k, m) {
  7681. return k !== m;
  7682. },
  7683. 'd87' : function (k, m) {
  7684. return k >= m;
  7685. },
  7686. 'f43' : function (k, m) {
  7687. return k - m;
  7688. },
  7689. 'e4v' : function (k, m) {
  7690. return k * m;
  7691. },
  7692. 'W17' : function (k, m) {
  7693. return k < m;
  7694. },
  7695. 'Q0N' : function (k, m) {
  7696. return k * m;
  7697. },
  7698. 'S8r' : function (k, m) {
  7699. return k > m;
  7700. },
  7701. 'L6' : function (k, m) {
  7702. return k * m;
  7703. },
  7704. 'n3B' : function (k, m) {
  7705. return k === m;
  7706. },
  7707. 'H7B' : function (k, m) {
  7708. return k === m;
  7709. },
  7710. 'a3h' : function (k, m) {
  7711. return k === m;
  7712. },
  7713. 'r2N' : function (k, m) {
  7714. return k / m;
  7715. },
  7716. 'F7w' : function (k, m) {
  7717. return k / m;
  7718. },
  7719. 'c4L' : function (k, m) {
  7720. return k * m;
  7721. },
  7722. 'z4B' : function (k, m) {
  7723. return k > m;
  7724. },
  7725. 'q2o' : function (k, m) {
  7726. return k === m;
  7727. },
  7728. 'c6B' : function (k, m) {
  7729. return k < m;
  7730. },
  7731. 'F0v' : function (k, m) {
  7732. return k != m;
  7733. },
  7734. 'P04' : function (k, m) {
  7735. return k !== m;
  7736. },
  7737. 'O89' : function (k, m) {
  7738. return k * m;
  7739. },
  7740. 'L5D' : function (k, m) {
  7741. return k > m;
  7742. },
  7743. 'B66' : function (k, m) {
  7744. return k !== m;
  7745. },
  7746. 'N4b' : function (k, m) {
  7747. return k > m;
  7748. },
  7749. 'e3I' : function (k, m) {
  7750. return k > m;
  7751. },
  7752. 'B6I' : function (k, m) {
  7753. return k >= m;
  7754. },
  7755. 'y2g' : function (k, m, e) {
  7756. return k * m * e;
  7757. },
  7758. 'z7G' : function (k, m) {
  7759. return k !== m;
  7760. },
  7761. 'o7Q' : function (k, m) {
  7762. return k < m;
  7763. },
  7764. 'n1N' : function (k, m) {
  7765. return k / m;
  7766. },
  7767. 'i7V' : function (k, m) {
  7768. return k > m;
  7769. },
  7770. 'm3L' : function (k, m) {
  7771. return k / m;
  7772. },
  7773. 'o8A' : function (k, m) {
  7774. return k === m;
  7775. },
  7776. 'B2R' : function (k, m) {
  7777. return k < m;
  7778. },
  7779. 's7R' : function (k, m) {
  7780. return k * m;
  7781. },
  7782. 'A3h' : function (k, m) {
  7783. return k - m;
  7784. },
  7785. 'V89' : function (k, m) {
  7786. return k - m;
  7787. },
  7788. 'Y1o' : function (k, m) {
  7789. return k - m;
  7790. },
  7791. 'i96' : function (k, m) {
  7792. return k < m;
  7793. },
  7794. 'a6G' : function (k, m) {
  7795. return k * m;
  7796. },
  7797. 'A3G' : function (k, m) {
  7798. return k / m;
  7799. },
  7800. 't4e' : function (k, m) {
  7801. return k >= m;
  7802. },
  7803. 'Z6V' : function (k, m) {
  7804. return k * m;
  7805. },
  7806. 'f7h' : function (k, m) {
  7807. return k < m;
  7808. },
  7809. 'Y7I' : function (k, m) {
  7810. return k >= m;
  7811. },
  7812. 'b93' : function (k, m) {
  7813. return k === m;
  7814. },
  7815. 'D4l' : function (k, m) {
  7816. return k > m;
  7817. },
  7818. 'o5L' : function (k, m) {
  7819. return k !== m;
  7820. },
  7821. 'B3R' : function (k, m) {
  7822. return k * m;
  7823. },
  7824. 's2o' : function (k, m, e) {
  7825. return k - m - e;
  7826. },
  7827. 'p2P' : function (k, m) {
  7828. return k * m;
  7829. },
  7830. 'l3w' : function (k, m) {
  7831. return k >= m;
  7832. },
  7833. 'H9h' : function (k, m) {
  7834. return k !== m;
  7835. },
  7836. 'A76' : function (k, m) {
  7837. return k === m;
  7838. },
  7839. 'C9' : function (k, m) {
  7840. return k * m;
  7841. },
  7842. 'm1V' : function (k, m) {
  7843. return k !== m;
  7844. },
  7845. 't0N' : function (k, m) {
  7846. return k === m;
  7847. },
  7848. 'n8q' : function (k, m) {
  7849. return k > m;
  7850. },
  7851. 'r64' : function (k, m) {
  7852. return k / m;
  7853. },
  7854. 'P5v' : function (k, m) {
  7855. return k == m;
  7856. },
  7857. 'v4h' : function (k, m) {
  7858. return k === m;
  7859. },
  7860. 'I1b' : function (k, m) {
  7861. return k * m;
  7862. },
  7863. 'L0Q' : function (k, m) {
  7864. return k < m;
  7865. },
  7866. 'y7v' : function (k, m) {
  7867. return k < m;
  7868. },
  7869. 't9v' : function (k, m) {
  7870. return k >= m;
  7871. },
  7872. 'Y8g' : function (k, m) {
  7873. return k * m;
  7874. },
  7875. 'N8g' : function (k, m) {
  7876. return k * m;
  7877. },
  7878. 'V5g' : function (k, m) {
  7879. return k * m;
  7880. },
  7881. 'u5J' : function (k, m) {
  7882. return k - m;
  7883. },
  7884. 'v7l' : function (k, m) {
  7885. return k > m;
  7886. },
  7887. 'q2A' : function (k, m) {
  7888. return k - m;
  7889. },
  7890. 'e3L' : function (k, m) {
  7891. return k * m;
  7892. },
  7893. 't1J' : function (k, m) {
  7894. return k * m;
  7895. },
  7896. 'B6D' : function (k, m) {
  7897. return k <= m;
  7898. },
  7899. 'B9G' : function (k, m) {
  7900. return k === m;
  7901. },
  7902. 'B2l' : function (k, m) {
  7903. return k < m;
  7904. },
  7905. 'L1I' : function (k, m) {
  7906. return k === m;
  7907. },
  7908. 'R7b' : function (k, m) {
  7909. return k === m;
  7910. },
  7911. 'g5l' : function (k, m) {
  7912. return k !== m;
  7913. },
  7914. 'B3v' : function (k, m) {
  7915. return k - m;
  7916. },
  7917. 'd9u' : function (k, m, e) {
  7918. return k * m * e;
  7919. },
  7920. 'D6l' : function (k, m) {
  7921. return k * m;
  7922. },
  7923. 'r17' : function (k, m) {
  7924. return k > m;
  7925. },
  7926. 'u6' : function (k, m) {
  7927. return k - m;
  7928. },
  7929. 'u34' : function (k, m) {
  7930. return k - m;
  7931. },
  7932. 'n3J' : function (k, m) {
  7933. return k - m;
  7934. },
  7935. 'f9h' : function (k, m) {
  7936. return k === m;
  7937. },
  7938. 'I6h' : function (k, m) {
  7939. return k === m;
  7940. },
  7941. 'o5h' : function (k, m) {
  7942. return k === m;
  7943. },
  7944. 'f3v' : function (k, m) {
  7945. return k * m;
  7946. },
  7947. 'r89' : function (k, m) {
  7948. return k === m;
  7949. },
  7950. 'C7l' : function (k, m) {
  7951. return k < m;
  7952. },
  7953. 'h3u' : function (k, m) {
  7954. return k <= m;
  7955. },
  7956. 'A1r' : function (k, m) {
  7957. return k < m;
  7958. },
  7959. 't0o' : function (k, m) {
  7960. return k * m;
  7961. },
  7962. 'a5w' : function (k, m) {
  7963. return k === m;
  7964. },
  7965. 'w1r' : function (k, m) {
  7966. return k > m;
  7967. },
  7968. 'd6L' : function (k, m) {
  7969. return k - m;
  7970. },
  7971. 'O9D' : function (k, m) {
  7972. return k === m;
  7973. },
  7974. 'H0l' : function (k, m) {
  7975. return k >= m;
  7976. },
  7977. 'T5G' : function (k, m) {
  7978. return k === m;
  7979. },
  7980. 'H2J' : function (k, m) {
  7981. return k <= m;
  7982. },
  7983. 'A89' : function (k, m) {
  7984. return k > m;
  7985. },
  7986. 'e94' : function (k, m, e) {
  7987. return k - m + e;
  7988. },
  7989. 'A0d' : function (k, m) {
  7990. return k * m;
  7991. },
  7992. 'u4B' : function (k, m, e) {
  7993. return k * m * e;
  7994. },
  7995. 'r7r' : function (k, m) {
  7996. return k > m;
  7997. },
  7998. 'O4u' : function (k, m) {
  7999. return k > m;
  8000. },
  8001. 'b3N' : function (k, m) {
  8002. return k === m;
  8003. },
  8004. 'B67' : function (k, m) {
  8005. return k - m;
  8006. },
  8007. 'Y0P' : function (k, m) {
  8008. return k > m;
  8009. },
  8010. 'T3A' : function (k, m) {
  8011. return k * m;
  8012. },
  8013. 'x1J' : function (k, m) {
  8014. return k * m;
  8015. },
  8016. 'j0N' : function (k, m) {
  8017. return k != m;
  8018. },
  8019. 'P7o' : function (k, m) {
  8020. return k & m;
  8021. },
  8022. 'S5I' : function (k, m) {
  8023. return k < m;
  8024. },
  8025. 'm49' : function (k, m) {
  8026. return k * m;
  8027. },
  8028. 'M3u' : function (k, m) {
  8029. return k - m;
  8030. },
  8031. 'Z4Q' : function (k, m) {
  8032. return k - m;
  8033. },
  8034. 'u7V' : function (k, m) {
  8035. return k instanceof m;
  8036. },
  8037. 'r2G' : function (k, m) {
  8038. return k == m;
  8039. },
  8040. 'r97' : function (k, m) {
  8041. return k < m;
  8042. },
  8043. 'Q9l' : function (k, m) {
  8044. return k <= m;
  8045. },
  8046. 'W6e' : function (k, m) {
  8047. return k & m;
  8048. },
  8049. 'U3q' : function (k, m) {
  8050. return k <= m;
  8051. },
  8052. 'E0J' : function (k, m) {
  8053. return k / m;
  8054. },
  8055. 'd7g' : function (k, m) {
  8056. return k === m;
  8057. },
  8058. 'K5q' : function (k, m) {
  8059. return k % m;
  8060. },
  8061. 'Z0G' : function (k, m) {
  8062. return k - m;
  8063. },
  8064. 'H83' : function (k, m) {
  8065. return k - m;
  8066. },
  8067. 'q7R' : function (k, m) {
  8068. return k === m;
  8069. },
  8070. 'T27' : function (k, m) {
  8071. return k / m;
  8072. },
  8073. 'R4l' : function (k, m) {
  8074. return k * m;
  8075. },
  8076. 'L4r' : function (k, m) {
  8077. return k / m;
  8078. },
  8079. 'D34' : function (k, m) {
  8080. return k - m;
  8081. },
  8082. 'A4l' : function (k, m) {
  8083. return k / m;
  8084. },
  8085. 'S1o' : function (k, m) {
  8086. return k - m;
  8087. },
  8088. 'Z6' : function (k, m) {
  8089. return k * m;
  8090. },
  8091. 'n1u' : function (k, m) {
  8092. return k === m;
  8093. },
  8094. 'p4h' : function (k, m) {
  8095. return k instanceof m;
  8096. },
  8097. 'C8I' : function (k, m) {
  8098. return k !== m;
  8099. },
  8100. 'R53' : function (k, m) {
  8101. return k < m;
  8102. },
  8103. 'G46' : function (k, m) {
  8104. return k * m;
  8105. },
  8106. 'N2R' : function (k, m) {
  8107. return k > m;
  8108. },
  8109. 'b1e' : function (k, m) {
  8110. return k | m;
  8111. },
  8112. 'r6v' : function (k, m) {
  8113. return k % m;
  8114. },
  8115. 'U13' : function (k, m) {
  8116. return k | m;
  8117. },
  8118. 'F3R' : function (k, m) {
  8119. return k >= m;
  8120. },
  8121. 'V2' : function (k, m) {
  8122. return k >= m;
  8123. },
  8124. 'o2r' : function (k, m) {
  8125. return k < m;
  8126. },
  8127. 'f6b' : function (k, m) {
  8128. return k > m;
  8129. },
  8130. 't3N' : function (k, m) {
  8131. return k instanceof m;
  8132. },
  8133. 'T3q' : function (k, m) {
  8134. return k <= m;
  8135. },
  8136. 'c2V' : function (k, m) {
  8137. return k === m;
  8138. },
  8139. 'i7b' : function (k, m) {
  8140. return k !== m;
  8141. },
  8142. 'w0L' : function (k, m) {
  8143. return k instanceof m;
  8144. },
  8145. 'W0e' : function (k, m) {
  8146. return k !== m;
  8147. },
  8148. 'i4u' : function (k, m) {
  8149. return k - m;
  8150. },
  8151. 'n13' : function (k, m) {
  8152. return k * m;
  8153. },
  8154. 'Y4D' : function (k, m) {
  8155. return k < m;
  8156. },
  8157. 'r7A' : function (k, m) {
  8158. return k - m;
  8159. },
  8160. 'q86' : function (k, m) {
  8161. return k > m;
  8162. },
  8163. 'V4g' : function (k, m) {
  8164. return k - m;
  8165. },
  8166. 'l2b' : function (k, m) {
  8167. return k * m;
  8168. },
  8169. 'a1r' : function (k, m) {
  8170. return k !== m;
  8171. },
  8172. 'M2J' : function (k, m) {
  8173. return k - m;
  8174. },
  8175. 'e7V' : function (k, m) {
  8176. return k * m;
  8177. },
  8178. 'o37' : function (k, m) {
  8179. return k === m;
  8180. },
  8181. 'w8u' : function (k, m) {
  8182. return k == m;
  8183. },
  8184. 'a0e' : function (k, m) {
  8185. return k < m;
  8186. },
  8187. 'y8P' : function (k, m) {
  8188. return k / m;
  8189. },
  8190. 'v26' : function (k, m) {
  8191. return k === m;
  8192. },
  8193. 'T9u' : function (k, m) {
  8194. return k > m;
  8195. },
  8196. 'I4A' : function (k, m) {
  8197. return k - m;
  8198. },
  8199. 'L9h' : function (k, m) {
  8200. return k === m;
  8201. },
  8202. 'a4Q' : function (k, m) {
  8203. return k === m;
  8204. },
  8205. 'S33' : function (k, m) {
  8206. return k > m;
  8207. },
  8208. 'r0B' : function (k, m) {
  8209. return k === m;
  8210. },
  8211. 'M7I' : function (k, m) {
  8212. return k - m;
  8213. },
  8214. 'N6r' : function (k, m) {
  8215. return k - m;
  8216. },
  8217. 'L6r' : function (k, m) {
  8218. return k >= m;
  8219. },
  8220. 'Z7V' : function (k, m) {
  8221. return k > m;
  8222. },
  8223. 'X5q' : function (k, m) {
  8224. return k | m;
  8225. },
  8226. 'K2R' : function (k, m) {
  8227. return k > m;
  8228. },
  8229. 't1Q' : function (k, m) {
  8230. return k - m;
  8231. },
  8232. 'V4l' : function (k, m) {
  8233. return k * m;
  8234. },
  8235. 'G3v' : function (k, m) {
  8236. return k > m;
  8237. },
  8238. 'I1R' : function (k, m) {
  8239. return k >= m;
  8240. },
  8241. 'z9e' : function (k, m) {
  8242. return k >= m;
  8243. },
  8244. 'E4Q' : function (k, m) {
  8245. return k > m;
  8246. },
  8247. 'Q5h' : function (k, m) {
  8248. return k * m;
  8249. },
  8250. 'B13' : function (k, m) {
  8251. return k * m;
  8252. },
  8253. 'Q8r' : function (k, m) {
  8254. return k >= m;
  8255. },
  8256. 'l0w' : function (k, m) {
  8257. return k > m;
  8258. },
  8259. 'S3N' : function (k, m) {
  8260. return k - m;
  8261. },
  8262. 'r6G' : function (k, m) {
  8263. return k === m;
  8264. },
  8265. 'L1h' : function (k, m) {
  8266. return k === m;
  8267. },
  8268. 'x1d' : function (k, m) {
  8269. return k * m;
  8270. },
  8271. 'D7D' : function (k, m) {
  8272. return k > m;
  8273. },
  8274. 'Z17' : function (k, m) {
  8275. return k > m;
  8276. },
  8277. 'D7b' : function (k, m) {
  8278. return k - m;
  8279. },
  8280. 'z1u' : function (k, m) {
  8281. return k === m;
  8282. },
  8283. 'I3V' : function (k, m) {
  8284. return k * m;
  8285. },
  8286. 'E4l' : function (k, m) {
  8287. return k * m;
  8288. },
  8289. 'b7u' : function (k, m) {
  8290. return k / m;
  8291. },
  8292. 'n8w' : function (k, m) {
  8293. return k > m;
  8294. },
  8295. 'j69' : function (k, m) {
  8296. return k > m;
  8297. },
  8298. 'a9r' : function (k, m) {
  8299. return k === m;
  8300. },
  8301. 'l4V' : function (k, m) {
  8302. return k % m;
  8303. },
  8304. 'y9J' : function (k, m) {
  8305. return k === m;
  8306. },
  8307. 'h1h' : function (k, m) {
  8308. return k / m;
  8309. },
  8310. 'Q03' : function (k, m) {
  8311. return k * m;
  8312. },
  8313. 'v7R' : function (k, m) {
  8314. return k - m;
  8315. },
  8316. 'v1B' : function (k, m) {
  8317. return k < m;
  8318. },
  8319. 'm9V' : function (k, m) {
  8320. return k * m;
  8321. },
  8322. 'g76' : function (k, m) {
  8323. return k - m;
  8324. },
  8325. 'A0J' : function (k, m) {
  8326. return k === m;
  8327. },
  8328. 'G6V' : function (k, m) {
  8329. return k === m;
  8330. },
  8331. 'p6h' : function (k, m) {
  8332. return k < m;
  8333. },
  8334. 'X9h' : function (k, m) {
  8335. return k instanceof m;
  8336. },
  8337. 'N0R' : function (k, m) {
  8338. return k >= m;
  8339. },
  8340. 'b3r' : function (k, m) {
  8341. return k >= m;
  8342. },
  8343. 'H2B' : function (k, m) {
  8344. return k < m;
  8345. },
  8346. 'i5D' : function (k, m) {
  8347. return k instanceof m;
  8348. },
  8349. 'j9R' : function (k, m) {
  8350. return k < m;
  8351. },
  8352. 'Q4e' : function (k, m) {
  8353. return k > m;
  8354. },
  8355. 'e9D' : function (k, m) {
  8356. return k * m;
  8357. },
  8358. 'Y5o' : function (k, m) {
  8359. return k - m;
  8360. },
  8361. 's37' : function (k, m) {
  8362. return k >= m;
  8363. },
  8364. 'F43' : function (k, m) {
  8365. return k - m;
  8366. },
  8367. 'x9g' : function (k, m) {
  8368. return k * m;
  8369. },
  8370. 'l1N' : function (k, m) {
  8371. return k - m;
  8372. },
  8373. 'W53' : function (k, m) {
  8374. return k - m;
  8375. },
  8376. 'W1r' : function (k, m) {
  8377. return k >= m;
  8378. },
  8379. 'Z5R' : function (k, m) {
  8380. return k <= m;
  8381. },
  8382. 'n5o' : function (k, m) {
  8383. return k > m;
  8384. },
  8385. 'u0d' : function (k, m) {
  8386. return k * m;
  8387. },
  8388. 'o3g' : function (k, m) {
  8389. return k * m;
  8390. },
  8391. 'f5b' : function (k, m) {
  8392. return k - m;
  8393. },
  8394. 'M4N' : function (k, m) {
  8395. return k === m;
  8396. },
  8397. 'b5u' : function (k, m) {
  8398. return k === m;
  8399. },
  8400. 'E3d' : function (k, m) {
  8401. return k < m;
  8402. },
  8403. 'W99' : function (k, m) {
  8404. return k / m;
  8405. },
  8406. 't8b' : function (k, m) {
  8407. return k > m;
  8408. },
  8409. 'P9o' : function (k, m) {
  8410. return k == m;
  8411. },
  8412. 'i64' : function (k, m) {
  8413. return k - m;
  8414. },
  8415. 'W4g' : function (k, m) {
  8416. return k * m;
  8417. },
  8418. 'R3g' : function (k, m) {
  8419. return k * m;
  8420. },
  8421. 'a5' : function (k, m) {
  8422. return k - m;
  8423. },
  8424. 'u2u' : function (k, m) {
  8425. return k > m;
  8426. },
  8427. 'S7P' : function (k, m) {
  8428. return k > m;
  8429. },
  8430. 'B7d' : function (k, m) {
  8431. return k / m;
  8432. },
  8433. 'F9G' : function (k, m) {
  8434. return k !== m;
  8435. },
  8436. 'O9o' : function (k, m) {
  8437. return k == m;
  8438. },
  8439. 'T4d' : function (k, m) {
  8440. return k - m;
  8441. },
  8442. 'J4r' : function (k, m) {
  8443. return k !== m;
  8444. },
  8445. 'a6v' : function (k, m) {
  8446. return k < m;
  8447. },
  8448. 'W0I' : function (k, m) {
  8449. return k >= m;
  8450. },
  8451. 'v5G' : function (k, m) {
  8452. return k === m;
  8453. },
  8454. 'k09' : function (k, m) {
  8455. return k / m;
  8456. },
  8457. 'H2Q' : function (k, m) {
  8458. return k / m;
  8459. },
  8460. 'B56' : function (k, m) {
  8461. return k > m;
  8462. },
  8463. 'Y9A' : function (k, m) {
  8464. return k / m;
  8465. },
  8466. 'X4A' : function (k, m) {
  8467. return k * m;
  8468. },
  8469. 'E7b' : function (k, m) {
  8470. return k === m;
  8471. },
  8472. 'j4w' : function (k, m) {
  8473. return k < m;
  8474. },
  8475. 'k1N' : function (k, m) {
  8476. return k | m;
  8477. },
  8478. 'N1N' : function (k, m) {
  8479. return k - m;
  8480. },
  8481. 'a3P' : function (k, m, e, o) {
  8482. return k * m * e * o;
  8483. },
  8484. 'b1g' : function (k, m) {
  8485. return k > m;
  8486. },
  8487. 'e3w' : function (k, m, e) {
  8488. return k * m * e;
  8489. },
  8490. 's1R' : function (k, m) {
  8491. return k === m;
  8492. },
  8493. 'J3u' : function (k, m) {
  8494. return k - m;
  8495. },
  8496. 'U8r' : function (k, m) {
  8497. return k / m;
  8498. },
  8499. 'x49' : function (k, m, e) {
  8500. return k * m * e;
  8501. },
  8502. 'K3Q' : function (k, m) {
  8503. return k - m;
  8504. },
  8505. 's2V' : function (k, m) {
  8506. return k === m;
  8507. },
  8508. 'b1v' : function (k, m) {
  8509. return k <= m;
  8510. },
  8511. 'r19' : function (k, m) {
  8512. return k * m;
  8513. },
  8514. 'D5P' : function (k, m) {
  8515. return k >= m;
  8516. },
  8517. 'A6w' : function (k, m) {
  8518. return k < m;
  8519. },
  8520. 'z74' : function (k, m) {
  8521. return k - m;
  8522. },
  8523. 'P3d' : function (k, m) {
  8524. return k === m;
  8525. },
  8526. 's1Q' : function (k, m) {
  8527. return k - m;
  8528. },
  8529. 'r7D' : function (k, m) {
  8530. return k > m;
  8531. },
  8532. 'E1V' : function (k, m) {
  8533. return k * m;
  8534. },
  8535. 'P19' : function (k, m) {
  8536. return k * m;
  8537. },
  8538. 'X2D' : function (k, m) {
  8539. return k > m;
  8540. },
  8541. 'L6d' : function (k, m) {
  8542. return k / m;
  8543. },
  8544. 'I8Q' : function (k, m) {
  8545. return k <= m;
  8546. },
  8547. 'H43' : function (k, m) {
  8548. return k * m;
  8549. },
  8550. 'w7b' : function (k, m) {
  8551. return k >= m;
  8552. },
  8553. 'X2b' : function (k, m) {
  8554. return k * m;
  8555. },
  8556. 'c9l' : function (k, m) {
  8557. return k - m;
  8558. },
  8559. 'v8P' : function (k, m) {
  8560. return k - m;
  8561. },
  8562. 'f7w' : function (k, m) {
  8563. return k >= m;
  8564. },
  8565. 'e1r' : function (k, m) {
  8566. return k < m;
  8567. },
  8568. 'L2q' : function (k, m) {
  8569. return k === m;
  8570. },
  8571. 'j8A' : function (k, m) {
  8572. return k === m;
  8573. },
  8574. 'N84' : function (k, m) {
  8575. return k <= m;
  8576. },
  8577. 'a9o' : function (k, m) {
  8578. return k == m;
  8579. },
  8580. 'D6q' : function (k, m) {
  8581. return k | m;
  8582. },
  8583. 'R1A' : function (k, m) {
  8584. return k !== m;
  8585. },
  8586. 'C39' : function (k, m) {
  8587. return k / m;
  8588. },
  8589. 'R0u' : function (k, m) {
  8590. return k > m;
  8591. },
  8592. 'G8w' : function (k, m) {
  8593. return k < m;
  8594. },
  8595. 'E8B' : function (k, m) {
  8596. return k > m;
  8597. },
  8598. 'i1r' : function (k, m) {
  8599. return k === m;
  8600. },
  8601. 'n5b' : function (k, m) {
  8602. return k / m;
  8603. },
  8604. 'Q33' : function (k, m) {
  8605. return k * m;
  8606. },
  8607. 'g4v' : function (k, m) {
  8608. return k * m;
  8609. },
  8610. 'E6G' : function (k, m) {
  8611. return k === m;
  8612. },
  8613. 'G1G' : function (k, m) {
  8614. return k === m;
  8615. },
  8616. 'H4B' : function (k, m) {
  8617. return k * m;
  8618. },
  8619. 'V6g' : function (k, m) {
  8620. return k - m;
  8621. },
  8622. 'Y1D' : function (k, m) {
  8623. return k > m;
  8624. },
  8625. 'Q2A' : function (k, m) {
  8626. return k != m;
  8627. },
  8628. 'e8B' : function (k, m) {
  8629. return k - m;
  8630. },
  8631. 'K6I' : function (k, m) {
  8632. return k < m;
  8633. },
  8634. 'w7o' : function (k, m) {
  8635. return k & m;
  8636. },
  8637. 'O54' : function (k, m) {
  8638. return k < m;
  8639. },
  8640. 'f8V' : function (k, m) {
  8641. return k * m;
  8642. },
  8643. 'P7V' : function (k, m) {
  8644. return k < m;
  8645. },
  8646. 'H84' : function (k, m) {
  8647. return k !== m;
  8648. },
  8649. 'o1q' : function (k, m) {
  8650. return k > m;
  8651. },
  8652. 'G56' : function (k, m) {
  8653. return k === m;
  8654. },
  8655. 'I6Q' : function (k, m) {
  8656. return k < m;
  8657. },
  8658. 'i4P' : function (k, m) {
  8659. return k * m;
  8660. },
  8661. 'e3d' : function (k, m) {
  8662. return k !== m;
  8663. },
  8664. 'P0e' : function (k, m) {
  8665. return k !== m;
  8666. },
  8667. 's5A' : function (k, m) {
  8668. return k >>> m;
  8669. },
  8670. 'E1A' : function (k, m) {
  8671. return k < m;
  8672. },
  8673. 'd27' : function (k, m) {
  8674. return k - m;
  8675. },
  8676. 'a5v' : function (k, m) {
  8677. return k in m;
  8678. },
  8679. 'z0P' : function (k, m) {
  8680. return k <= m;
  8681. },
  8682. 'B3A' : function (k, m) {
  8683. return k * m;
  8684. },
  8685. 'r7q' : function (k, m) {
  8686. return k >= m;
  8687. },
  8688. 'C9u' : function (k, m) {
  8689. return k === m;
  8690. },
  8691. 'N4q' : function (k, m) {
  8692. return k - m;
  8693. },
  8694. 'n57' : function (k, m) {
  8695. return k < m;
  8696. },
  8697. 'Q1q' : function (k, m) {
  8698. return k % m;
  8699. },
  8700. 'v7Q' : function (k, m) {
  8701. return k > m;
  8702. },
  8703. 'l4r' : function (k, m) {
  8704. return k % m;
  8705. },
  8706. 'G4q' : function (k, m) {
  8707. return k >= m;
  8708. },
  8709. 'u9V' : function (k, m) {
  8710. return k * m;
  8711. },
  8712. 'y9R' : function (k, m) {
  8713. return k === m;
  8714. },
  8715. 'o3r' : function (k, m) {
  8716. return k !== m;
  8717. },
  8718. 'F8w' : function (k, m) {
  8719. return k > m;
  8720. },
  8721. 'm3G' : function (k, m) {
  8722. return k >= m;
  8723. },
  8724. 'p8P' : function (k, m) {
  8725. return k === m;
  8726. },
  8727. 'S79' : function (k, m) {
  8728. return k > m;
  8729. },
  8730. 'N6P' : function (k, m) {
  8731. return k * m;
  8732. },
  8733. 'N0v' : function (k, m) {
  8734. return k !== m;
  8735. },
  8736. 'd3V' : function (k, m) {
  8737. return k - m;
  8738. },
  8739. 'b2o' : function (k, m) {
  8740. return k > m;
  8741. },
  8742. 't29' : function (k, m) {
  8743. return k === m;
  8744. },
  8745. 'I6B' : function (k, m) {
  8746. return k === m;
  8747. },
  8748. 'h56' : function (k, m) {
  8749. return k !== m;
  8750. },
  8751. 'y1q' : function (k, m) {
  8752. return k < m;
  8753. },
  8754. 'G5N' : function (k, m) {
  8755. return k >>> m;
  8756. },
  8757. 'J2l' : function (k, m) {
  8758. return k / m;
  8759. },
  8760. 't6u' : function (k, m) {
  8761. return k in m;
  8762. },
  8763. 'd0q' : function (k, m) {
  8764. return k - m;
  8765. },
  8766. 'c9w' : function (k, m) {
  8767. return k === m;
  8768. },
  8769. 'r3L' : function (k, m) {
  8770. return k < m;
  8771. },
  8772. 'c1l' : function (k, m) {
  8773. return k / m;
  8774. },
  8775. 'k1u' : function (k, m) {
  8776. return k === m;
  8777. },
  8778. 'b9g' : function (k, m) {
  8779. return k * m;
  8780. },
  8781. 'N0l' : function (k, m) {
  8782. return k !== m;
  8783. },
  8784. 't6B' : function (k, m) {
  8785. return k === m;
  8786. },
  8787. 'x1R' : function (k, m) {
  8788. return k > m;
  8789. },
  8790. 'Y5V' : function (k, m) {
  8791. return k === m;
  8792. },
  8793. 'u76' : function (k, m) {
  8794. return k !== m;
  8795. },
  8796. 'd3r' : function (k, m) {
  8797. return k >= m;
  8798. },
  8799. 'V5J' : function (k, m) {
  8800. return k >= m;
  8801. },
  8802. 'g34' : function (k, m) {
  8803. return k * m;
  8804. },
  8805. 'S5e' : function (k, m) {
  8806. return k > m;
  8807. },
  8808. 'v3o' : function (k, m) {
  8809. return k > m;
  8810. },
  8811. 'y69' : function (k, m) {
  8812. return k * m;
  8813. },
  8814. 'I8o' : function (k, m) {
  8815. return k !== m;
  8816. },
  8817. 'K4q' : function (k, m) {
  8818. return k > m;
  8819. },
  8820. 'l5b' : function (k, m) {
  8821. return k - m;
  8822. },
  8823. 'j8I' : function (k, m) {
  8824. return k < m;
  8825. },
  8826. 'm0o' : function (k, m, e) {
  8827. return k * m / e;
  8828. },
  8829. 'A6V' : function (k, m) {
  8830. return k * m;
  8831. },
  8832. 'Z5J' : function (k, m) {
  8833. return k / m;
  8834. },
  8835. 'F2l' : function (k, m) {
  8836. return k / m;
  8837. },
  8838. 'q27' : function (k, m) {
  8839. return k - m;
  8840. },
  8841. 'S7R' : function (k, m) {
  8842. return k * m;
  8843. },
  8844. 'G57' : function (k, m) {
  8845. return k === m;
  8846. },
  8847. 'f0l' : function (k, m) {
  8848. return k >= m;
  8849. },
  8850. 'R5r' : function (k, m) {
  8851. return k !== m;
  8852. },
  8853. 'C7J' : function (k, m) {
  8854. return k instanceof m;
  8855. },
  8856. 'W2A' : function (k, m) {
  8857. return k * m;
  8858. },
  8859. 'l2g' : function (k, m) {
  8860. return k / m;
  8861. },
  8862. 'w93' : function (k, m) {
  8863. return k / m;
  8864. },
  8865. 'i6J' : function (k, m) {
  8866. return k < m;
  8867. },
  8868. 'M1h' : function (k, m) {
  8869. return k > m;
  8870. },
  8871. 'X6I' : function (k, m) {
  8872. return k - m;
  8873. },
  8874. 'u4R' : function (k, m) {
  8875. return k === m;
  8876. },
  8877. 'u6w' : function (k, m) {
  8878. return k < m;
  8879. },
  8880. 'C16' : function (k, m) {
  8881. return k <= m;
  8882. },
  8883. 'S9g' : function (k, m) {
  8884. return k * m;
  8885. },
  8886. 't0D' : function (k, m) {
  8887. return k * m;
  8888. },
  8889. 'U4G' : function (k, m) {
  8890. return k > m;
  8891. },
  8892. 'e5J' : function (k, m) {
  8893. return k / m;
  8894. },
  8895. 'W3I' : function (k, m) {
  8896. return k < m;
  8897. },
  8898. 'y4w' : function (k, m) {
  8899. return k < m;
  8900. },
  8901. 'R2I' : function (k, m) {
  8902. return k * m;
  8903. },
  8904. 'u3d' : function (k, m) {
  8905. return k === m;
  8906. },
  8907. 'F56' : function (k, m) {
  8908. return k > m;
  8909. },
  8910. 'x0o' : function (k, m) {
  8911. return k > m;
  8912. },
  8913. 'f66' : function (k, m) {
  8914. return k - m;
  8915. },
  8916. 'd7P' : function (k, m) {
  8917. return k / m;
  8918. },
  8919. 'G9L' : function (k, m) {
  8920. return k - m;
  8921. },
  8922. 'C1b' : function (k, m, e) {
  8923. return k * m * e;
  8924. },
  8925. 'r4Q' : function (k, m) {
  8926. return k === m;
  8927. },
  8928. 'E2' : function (k, m) {
  8929. return k <= m;
  8930. },
  8931. 'h7h' : function (k, m) {
  8932. return k !== m;
  8933. },
  8934. 'R4g' : function (k, m) {
  8935. return k / m;
  8936. },
  8937. 'c29' : function (k, m) {
  8938. return k | m;
  8939. },
  8940. 'R0L' : function (k, m) {
  8941. return k | m;
  8942. },
  8943. 's9P' : function (k, m) {
  8944. return k * m;
  8945. },
  8946. 'x8I' : function (k, m) {
  8947. return k >= m;
  8948. },
  8949. 'C9w' : function (k, m) {
  8950. return k instanceof m;
  8951. },
  8952. 'R2e' : function (k, m) {
  8953. return k < m;
  8954. },
  8955. 'w0h' : function (k, m) {
  8956. return k === m;
  8957. },
  8958. 'i6V' : function (k, m) {
  8959. return k * m;
  8960. },
  8961. 'e5R' : function (k, m) {
  8962. return k == m;
  8963. },
  8964. 'W7D' : function (k, m) {
  8965. return k * m;
  8966. },
  8967. 's7g' : function (k, m) {
  8968. return k > m;
  8969. },
  8970. 'W34' : function (k, m) {
  8971. return k - m;
  8972. },
  8973. 's7u' : function (k, m) {
  8974. return k / m;
  8975. },
  8976. 'c7u' : function (k, m) {
  8977. return k === m;
  8978. },
  8979. 'f57' : function (k, m) {
  8980. return k < m;
  8981. },
  8982. 'm9N' : function (k, m) {
  8983. return k - m;
  8984. },
  8985. 'i7N' : function (k, m) {
  8986. return k === m;
  8987. },
  8988. 'E7A' : function (k, m) {
  8989. return k - m;
  8990. },
  8991. 'J0Q' : function (k, m) {
  8992. return k === m;
  8993. },
  8994. 'O0h' : function (k, m) {
  8995. return k instanceof m;
  8996. },
  8997. 'E0G' : function (k, m) {
  8998. return k / m;
  8999. },
  9000. 'r5v' : function (k, m) {
  9001. return k in m;
  9002. },
  9003. 'p1l' : function (k, m) {
  9004. return k * m;
  9005. },
  9006. 'C1g' : function (k, m) {
  9007. return k / m;
  9008. },
  9009. 'X1o' : function (k, m) {
  9010. return k > m;
  9011. },
  9012. 'a0h' : function (k, m) {
  9013. return k * m;
  9014. },
  9015. 'Z3h' : function (k, m) {
  9016. return k - m;
  9017. },
  9018. 'p4e' : function (k, m) {
  9019. return k !== m;
  9020. },
  9021. 'Q0g' : function (k, m) {
  9022. return k < m;
  9023. },
  9024. 'P5l' : function (k, m) {
  9025. return k | m;
  9026. },
  9027. 'l6b' : function (k, m) {
  9028. return k % m;
  9029. },
  9030. 'k8q' : function (k, m) {
  9031. return k | m;
  9032. },
  9033. 'R8h' : function (k, m) {
  9034. return k / m;
  9035. },
  9036. 'M6A' : function (k, m) {
  9037. return k === m;
  9038. },
  9039. 'b4B' : function (k, m) {
  9040. return k < m;
  9041. },
  9042. 'n83' : function (k, m) {
  9043. return k << m;
  9044. },
  9045. 'X4b' : function (k, m) {
  9046. return k * m;
  9047. },
  9048. 'u5w' : function (k, m) {
  9049. return k - m;
  9050. },
  9051. 'P5e' : function (k, m, e) {
  9052. return k | m | e;
  9053. },
  9054. 'E0e' : function (k, m) {
  9055. return k !== m;
  9056. },
  9057. 'O3L' : function (k, m) {
  9058. return k === m;
  9059. },
  9060. 'D76' : function (k, m) {
  9061. return k - m;
  9062. },
  9063. 'o93' : function (k, m) {
  9064. return k === m;
  9065. },
  9066. 'z3J' : function (k, m) {
  9067. return k > m;
  9068. },
  9069. 'a0u' : function (k, m) {
  9070. return k / m;
  9071. },
  9072. 'E0B' : function (k, m) {
  9073. return k < m;
  9074. },
  9075. 'M3R' : function (k, m) {
  9076. return k - m;
  9077. },
  9078. 'n6I' : function (k, m) {
  9079. return k >= m;
  9080. },
  9081. 'K7e' : function (k, m) {
  9082. return k >= m;
  9083. },
  9084. 'V7r' : function (k, m) {
  9085. return k !== m;
  9086. },
  9087. 'r5R' : function (k, m) {
  9088. return k == m;
  9089. },
  9090. 'Q9Q' : function (k, m) {
  9091. return k / m;
  9092. },
  9093. 'H9B' : function (k, m) {
  9094. return k === m;
  9095. },
  9096. 'Q0V' : function (k, m) {
  9097. return k < m;
  9098. },
  9099. 'f7G' : function (k, m) {
  9100. return k / m;
  9101. },
  9102. 'h8g' : function (k, m) {
  9103. return k !== m;
  9104. },
  9105. 'J5o' : function (k, m) {
  9106. return k == m;
  9107. },
  9108. 'O0u' : function (k, m) {
  9109. return k - m;
  9110. },
  9111. 'h83' : function (k, m) {
  9112. return k >> m;
  9113. },
  9114. 't8o' : function (k, m) {
  9115. return k - m;
  9116. },
  9117. 'n3R' : function (k, m) {
  9118. return k <= m;
  9119. },
  9120. 'J46' : function (k, m) {
  9121. return k < m;
  9122. },
  9123. 'j2o' : function (k, m) {
  9124. return k - m;
  9125. },
  9126. 'W14' : function (k, m) {
  9127. return k > m;
  9128. },
  9129. 'l0P' : function (k, m) {
  9130. return k > m;
  9131. },
  9132. 'i8u' : function (k, m) {
  9133. return k === m;
  9134. },
  9135. 'u89' : function (k, m) {
  9136. return k === m;
  9137. },
  9138. 'd29' : function (k, m) {
  9139. return k * m;
  9140. },
  9141. 'B6r' : function (k, m) {
  9142. return k < m;
  9143. },
  9144. 'g0L' : function (k, m) {
  9145. return k === m;
  9146. },
  9147. 'w9b' : function (k, m) {
  9148. return k * m;
  9149. },
  9150. 'u1P' : function (k, m) {
  9151. return k * m;
  9152. },
  9153. 'g14' : function (k, m) {
  9154. return k > m;
  9155. },
  9156. 'l84' : function (k, m) {
  9157. return k < m;
  9158. },
  9159. 'D8Q' : function (k, m) {
  9160. return k !== m;
  9161. },
  9162. 'V2I' : function (k, m) {
  9163. return k - m;
  9164. },
  9165. 'i7o' : function (k, m) {
  9166. return k / m;
  9167. },
  9168. 'i99' : function (k, m) {
  9169. return k * m;
  9170. },
  9171. 'U4d' : function (k, m) {
  9172. return k - m;
  9173. },
  9174. 'b1Q' : function (k, m) {
  9175. return k === m;
  9176. },
  9177. 'I7J' : function (k, m) {
  9178. return k < m;
  9179. },
  9180. 'G6P' : function (k, m) {
  9181. return k * m;
  9182. },
  9183. 'j3V' : function (k, m) {
  9184. return k - m;
  9185. },
  9186. 'h8V' : function (k, m) {
  9187. return k * m;
  9188. },
  9189. 'C2V' : function (k, m) {
  9190. return k === m;
  9191. },
  9192. 'C8b' : function (k, m) {
  9193. return k * m;
  9194. },
  9195. 'z4r' : function (k, m) {
  9196. return k - m;
  9197. },
  9198. 'K2Q' : function (k, m) {
  9199. return k === m;
  9200. },
  9201. 'W2N' : function (k, m) {
  9202. return k / m;
  9203. },
  9204. 't7v' : function (k, m) {
  9205. return k instanceof m;
  9206. },
  9207. 'L4o' : function (k, m) {
  9208. return k === m;
  9209. },
  9210. 'Q27' : function (k, m) {
  9211. return k === m;
  9212. },
  9213. 'K1N' : function (k, m) {
  9214. return k / m;
  9215. },
  9216. 'm96' : function (k, m) {
  9217. return k < m;
  9218. },
  9219. 'f6A' : function (k, m) {
  9220. return k === m;
  9221. },
  9222. 'y4I' : function (k, m) {
  9223. return k < m;
  9224. },
  9225. 'q1Q' : function (k, m) {
  9226. return k | m;
  9227. },
  9228. 'T6d' : function (k, m) {
  9229. return k * m;
  9230. },
  9231. 'b7R' : function (k, m) {
  9232. return k - m;
  9233. },
  9234. 'd6B' : function (k, m) {
  9235. return k > m;
  9236. },
  9237. 'v4d' : function (k, m) {
  9238. return k - m;
  9239. },
  9240. 'H3l' : function (k, m) {
  9241. return k * m;
  9242. },
  9243. 'y86' : function (k, m) {
  9244. return k === m;
  9245. },
  9246. 'u6g' : function (k, m) {
  9247. return k * m;
  9248. },
  9249. 'i97' : function (k, m) {
  9250. return k - m;
  9251. },
  9252. 'D0B' : function (k, m) {
  9253. return k < m;
  9254. },
  9255. 'e73' : function (k, m) {
  9256. return k * m;
  9257. },
  9258. 'm93' : function (k, m) {
  9259. return k * m;
  9260. },
  9261. 'T13' : function (k, m) {
  9262. return k | m;
  9263. },
  9264. 'd7R' : function (k, m) {
  9265. return k * m;
  9266. },
  9267. 'O8h' : function (k, m) {
  9268. return k / m;
  9269. },
  9270. 'y4d' : function (k, m) {
  9271. return k * m;
  9272. },
  9273. 'G9d' : function (k, m) {
  9274. return k >= m;
  9275. },
  9276. 'I0D' : function (k, m) {
  9277. return k / m;
  9278. },
  9279. 'u19' : function (k, m) {
  9280. return k === m;
  9281. },
  9282. 'X3J' : function (k, m) {
  9283. return k > m;
  9284. },
  9285. 'Y4r' : function (k, m) {
  9286. return k !== m;
  9287. },
  9288. 'I27' : function (k, m) {
  9289. return k > m;
  9290. },
  9291. 'P9b' : function (k, m) {
  9292. return k | m;
  9293. },
  9294. 'c07' : function (k, m) {
  9295. return k > m;
  9296. },
  9297. 'T8o' : function (k, m) {
  9298. return k > m;
  9299. },
  9300. 'j87' : function (k, m) {
  9301. return k / m;
  9302. },
  9303. 'J4o' : function (k, m) {
  9304. return k === m;
  9305. },
  9306. 'O7B' : function (k, m) {
  9307. return k / m;
  9308. },
  9309. 'S0q' : function (k, m) {
  9310. return k < m;
  9311. },
  9312. 'n46' : function (k, m) {
  9313. return k - m;
  9314. },
  9315. 'G5o' : function (k, m) {
  9316. return k == m;
  9317. },
  9318. 'V97' : function (k, m) {
  9319. return k < m;
  9320. },
  9321. 'c4h' : function (k, m) {
  9322. return k instanceof m;
  9323. },
  9324. 'Z9r' : function (k, m) {
  9325. return k !== m;
  9326. },
  9327. 'l5o' : function (k, m) {
  9328. return k > m;
  9329. },
  9330. 'L2J' : function (k, m) {
  9331. return k > m;
  9332. },
  9333. 'U5B' : function (k, m) {
  9334. return k / m;
  9335. },
  9336. 't1e' : function (k, m) {
  9337. return k & m;
  9338. },
  9339. 'F8V' : function (k, m) {
  9340. return k / m;
  9341. },
  9342. 'Z3I' : function (k, m) {
  9343. return k > m;
  9344. },
  9345. 'I0A' : function (k, m) {
  9346. return k & m;
  9347. },
  9348. 'c3q' : function (k, m) {
  9349. return k === m;
  9350. },
  9351. 'H4D' : function (k, m) {
  9352. return k > m;
  9353. },
  9354. 'N56' : function (k, m) {
  9355. return k < m;
  9356. },
  9357. 'Z3g' : function (k, m) {
  9358. return k * m;
  9359. },
  9360. 'K7B' : function (k, m) {
  9361. return k === m;
  9362. },
  9363. 'g1V' : function (k, m) {
  9364. return k / m;
  9365. },
  9366. 'y0o' : function (k, m) {
  9367. return k * m;
  9368. },
  9369. 'Z99' : function (k, m) {
  9370. return k | m;
  9371. },
  9372. 'D0L' : function (k, m) {
  9373. return k instanceof m;
  9374. },
  9375. 'p9u' : function (k, m) {
  9376. return k === m;
  9377. },
  9378. 'W2e' : function (k, m) {
  9379. return k % m;
  9380. },
  9381. 'w7r' : function (k, m) {
  9382. return k | m;
  9383. },
  9384. 'V9q' : function (k, m) {
  9385. return k >= m;
  9386. },
  9387. 'J56' : function (k, m) {
  9388. return k > m;
  9389. },
  9390. 'j1g' : function (k, m) {
  9391. return k > m;
  9392. },
  9393. 'Z8h' : function (k, m) {
  9394. return k === m;
  9395. },
  9396. 'b9w' : function (k, m) {
  9397. return k < m;
  9398. },
  9399. 'Z3G' : function (k, m) {
  9400. return k < m;
  9401. },
  9402. 'I7v' : function (k, m) {
  9403. return k - m;
  9404. },
  9405. 'h5q' : function (k, m) {
  9406. return k > m;
  9407. },
  9408. 'J57' : function (k, m) {
  9409. return k < m;
  9410. },
  9411. 'h1I' : function (k, m) {
  9412. return k > m;
  9413. },
  9414. 'Q4G' : function (k, m) {
  9415. return k > m;
  9416. },
  9417. 'b14' : function (k, m) {
  9418. return k > m;
  9419. },
  9420. 'M8D' : function (k, m) {
  9421. return k > m;
  9422. },
  9423. 'x0D' : function (k, m) {
  9424. return k * m;
  9425. },
  9426. 'w1P' : function (k, m) {
  9427. return k * m;
  9428. },
  9429. 'B0v' : function (k, m) {
  9430. return k / m;
  9431. },
  9432. 's16' : function (k, m) {
  9433. return k >= m;
  9434. },
  9435. 'T3b' : function (k, m) {
  9436. return k >= m;
  9437. },
  9438. 'M4o' : function (k, m) {
  9439. return k > m;
  9440. },
  9441. 'D3h' : function (k, m) {
  9442. return k === m;
  9443. },
  9444. 'J6P' : function (k, m) {
  9445. return k * m;
  9446. },
  9447. 'r1P' : function (k, m) {
  9448. return k * m;
  9449. },
  9450. 'u6G' : function (k, m) {
  9451. return k * m;
  9452. },
  9453. 'N6I' : function (k, m) {
  9454. return k <= m;
  9455. },
  9456. 'G0w' : function (k, m) {
  9457. return k === m;
  9458. },
  9459. 'w5J' : function (k, m) {
  9460. return k * m;
  9461. },
  9462. 'b3q' : function (k, m) {
  9463. return k === m;
  9464. },
  9465. 'o9v' : function (k, m) {
  9466. return k !== m;
  9467. },
  9468. 'g6G' : function (k, m) {
  9469. return k !== m;
  9470. },
  9471. 'q6h' : function (k, m) {
  9472. return k > m;
  9473. },
  9474. 'E04' : function (k, m) {
  9475. return k < m;
  9476. },
  9477. 'Q4d' : function (k, m) {
  9478. return k * m;
  9479. },
  9480. 'K2q' : function (k, m) {
  9481. return k > m;
  9482. },
  9483. 'p3V' : function (k, m) {
  9484. return k % m;
  9485. },
  9486. 'n1D' : function (k, m) {
  9487. return k === m;
  9488. },
  9489. 'H09' : function (k, m) {
  9490. return k * m;
  9491. },
  9492. 's1w' : function (k, m) {
  9493. return k - m;
  9494. },
  9495. 'g2h' : function (k, m) {
  9496. return k !== m;
  9497. },
  9498. 'o9' : function (k, m) {
  9499. return k * m;
  9500. },
  9501. 'g6J' : function (k, m) {
  9502. return k > m;
  9503. },
  9504. 'W0J' : function (k, m) {
  9505. return k % m;
  9506. },
  9507. 'p3q' : function (k, m) {
  9508. return k === m;
  9509. },
  9510. 'R2L' : function (k, m) {
  9511. return k * m;
  9512. },
  9513. 'B8l' : function (k, m) {
  9514. return k < m;
  9515. },
  9516. 'U4w' : function (k, m) {
  9517. return k < m;
  9518. },
  9519. 'g0B' : function (k, m) {
  9520. return k === m;
  9521. },
  9522. 'C9g' : function (k, m) {
  9523. return k * m;
  9524. },
  9525. 'C4h' : function (k, m) {
  9526. return k === m;
  9527. },
  9528. 'C3B' : function (k, m, e, o, n) {
  9529. return k * m * e * o * n;
  9530. },
  9531. 'Y13' : function (k, m) {
  9532. return k * m;
  9533. },
  9534. 'I13' : function (k, m) {
  9535. return k | m;
  9536. },
  9537. 'J5b' : function (k, m) {
  9538. return k - m;
  9539. },
  9540. 'q5A' : function (k, m) {
  9541. return k < m;
  9542. },
  9543. 'p2V' : function (k, m) {
  9544. return k !== m;
  9545. },
  9546. 'p7v' : function (k, m) {
  9547. return k * m;
  9548. },
  9549. 'B59' : function (k, m) {
  9550. return k in m;
  9551. },
  9552. 'u9q' : function (k, m) {
  9553. return k !== m;
  9554. },
  9555. 'l2B' : function (k, m, e) {
  9556. return k * m * e;
  9557. },
  9558. 'N2B' : function (k, m, e, o) {
  9559. return k * m * e / o;
  9560. },
  9561. 'L5N' : function (k, m) {
  9562. return k >>> m;
  9563. },
  9564. 'l23' : function (k, m) {
  9565. return k / m;
  9566. },
  9567. 'S0r' : function (k, m) {
  9568. return k / m;
  9569. },
  9570. 'l7h' : function (k, m) {
  9571. return k === m;
  9572. },
  9573. 'j1G' : function (k, m) {
  9574. return k < m;
  9575. },
  9576. 'J0v' : function (k, m) {
  9577. return k !== m;
  9578. },
  9579. 'e6v' : function (k, m) {
  9580. return k < m;
  9581. },
  9582. 'E7r' : function (k, m) {
  9583. return k < m;
  9584. },
  9585. 'F9P' : function (k, m, e) {
  9586. return k * m / e;
  9587. },
  9588. 'D2e' : function (k, m) {
  9589. return k & m;
  9590. },
  9591. 'U7P' : function (k, m) {
  9592. return k > m;
  9593. },
  9594. 'g2L' : function (k, m) {
  9595. return k > m;
  9596. },
  9597. 'Q5N' : function (k, m) {
  9598. return k > m;
  9599. },
  9600. 'p14' : function (k, m) {
  9601. return k === m;
  9602. },
  9603. 'P5R' : function (k, m) {
  9604. return k - m;
  9605. },
  9606. 'O2L' : function (k, m) {
  9607. return k * m;
  9608. },
  9609. 'z7d' : function (k, m) {
  9610. return k !== m;
  9611. },
  9612. 'Z0e' : function (k, m) {
  9613. return k >= m;
  9614. },
  9615. 'V34' : function (k, m) {
  9616. return k !== m;
  9617. },
  9618. 'R9r' : function (k, m) {
  9619. return k !== m;
  9620. },
  9621. 'r9b' : function (k, m) {
  9622. return k - m;
  9623. },
  9624. 'D4R' : function (k, m) {
  9625. return k * m;
  9626. },
  9627. 'a9P' : function (k, m) {
  9628. return k * m;
  9629. },
  9630. 'a4v' : function (k, m) {
  9631. return k * m;
  9632. },
  9633. 'p7l' : function (k, m) {
  9634. return k > m;
  9635. },
  9636. 'G94' : function (k, m) {
  9637. return k * m;
  9638. },
  9639. 'G9e' : function (k, m) {
  9640. return k >= m;
  9641. },
  9642. 'w8e' : function (k, m) {
  9643. return k / m;
  9644. },
  9645. 'I8D' : function (k, m) {
  9646. return k == m;
  9647. },
  9648. 'R96' : function (k, m) {
  9649. return k === m;
  9650. },
  9651. 'm4P' : function (k, m) {
  9652. return k - m;
  9653. },
  9654. 'P0I' : function (k, m) {
  9655. return k | m;
  9656. },
  9657. 'j14' : function (k, m) {
  9658. return k !== m;
  9659. },
  9660. 'C8A' : function (k, m) {
  9661. return k - m;
  9662. },
  9663. 'I3D' : function (k, m) {
  9664. return k > m;
  9665. },
  9666. 'D6o' : function (k, m, e, o) {
  9667. return k * m * e / o;
  9668. },
  9669. 'u2e' : function (k, m) {
  9670. return k - m;
  9671. },
  9672. 'F2v' : function (k, m) {
  9673. return k < m;
  9674. },
  9675. 'U8D' : function (k, m) {
  9676. return k * m;
  9677. },
  9678. 'v1e' : function (k, m) {
  9679. return k & m;
  9680. },
  9681. 'M2l' : function (k, m) {
  9682. return k / m;
  9683. },
  9684. 'K8V' : function (k, m) {
  9685. return k * m;
  9686. },
  9687. 'f2q' : function (k, m) {
  9688. return k | m;
  9689. },
  9690. 'X43' : function (k, m) {
  9691. return k < m;
  9692. },
  9693. 'l0l' : function (k, m) {
  9694. return k === m;
  9695. },
  9696. 'F7L' : function (k, m) {
  9697. return k * m;
  9698. },
  9699. 'j1q' : function (k, m) {
  9700. return k | m;
  9701. },
  9702. 'k3g' : function (k, m) {
  9703. return k * m;
  9704. },
  9705. 'A2' : function (k, m) {
  9706. return k * m;
  9707. },
  9708. 'i1V' : function (k, m) {
  9709. return k * m;
  9710. },
  9711. 'E1r' : function (k, m) {
  9712. return k - m;
  9713. },
  9714. 'q3o' : function (k, m) {
  9715. return k > m;
  9716. },
  9717. 'G6A' : function (k, m) {
  9718. return k == m;
  9719. },
  9720. 'c5e' : function (k, m) {
  9721. return k & m;
  9722. },
  9723. 'E76' : function (k, m) {
  9724. return k - m;
  9725. },
  9726. 'n1I' : function (k, m) {
  9727. return k > m;
  9728. },
  9729. 'L8g' : function (k, m) {
  9730. return k * m;
  9731. },
  9732. 'B3u' : function (k, m) {
  9733. return k !== m;
  9734. },
  9735. 'm2I' : function (k, m) {
  9736. return k !== m;
  9737. },
  9738. 'f2D' : function (k, m) {
  9739. return k / m;
  9740. },
  9741. 'G2b' : function (k, m) {
  9742. return k !== m;
  9743. },
  9744. 'o1b' : function (k, m, e) {
  9745. return k * m * e;
  9746. },
  9747. 'p1e' : function (k, m) {
  9748. return k & m;
  9749. },
  9750. 'a3e' : function (k, m) {
  9751. return k === m;
  9752. },
  9753. 'n5q' : function (k, m) {
  9754. return k !== m;
  9755. },
  9756. 'G5q' : function (k, m) {
  9757. return k >= m;
  9758. },
  9759. 'f3R' : function (k, m) {
  9760. return k - m;
  9761. },
  9762. 'b07' : function (k, m) {
  9763. return k !== m;
  9764. },
  9765. 'n67' : function (k, m) {
  9766. return k - m;
  9767. },
  9768. 'u0L' : function (k, m) {
  9769. return k instanceof m;
  9770. },
  9771. 'E4u' : function (k, m) {
  9772. return k / m;
  9773. },
  9774. 'x4w' : function (k, m) {
  9775. return k === m;
  9776. },
  9777. 'M8d' : function (k, m) {
  9778. return k >= m;
  9779. },
  9780. 'y33' : function (k, m) {
  9781. return k > m;
  9782. },
  9783. 'r4P' : function (k, m) {
  9784. return k * m;
  9785. },
  9786. 'c1R' : function (k, m) {
  9787. return k === m;
  9788. },
  9789. 'l3v' : function (k, m) {
  9790. return k / m;
  9791. },
  9792. 'v1R' : function (k, m) {
  9793. return k >= m;
  9794. },
  9795. 'z84' : function (k, m) {
  9796. return k >= m;
  9797. },
  9798. 'p3b' : function (k, m) {
  9799. return k / m;
  9800. },
  9801. 'H5q' : function (k, m) {
  9802. return k !== m;
  9803. },
  9804. 'v9w' : function (k, m) {
  9805. return k < m;
  9806. },
  9807. 'T29' : function (k, m) {
  9808. return k * m;
  9809. },
  9810. 'A2L' : function (k, m) {
  9811. return k * m;
  9812. },
  9813. 'y2r' : function (k, m) {
  9814. return k | m;
  9815. },
  9816. 'K49' : function (k, m) {
  9817. return k * m;
  9818. },
  9819. 's0A' : function (k, m) {
  9820. return k > m;
  9821. },
  9822. 'S5u' : function (k, m) {
  9823. return k !== m;
  9824. },
  9825. 'P5g' : function (k, m) {
  9826. return k * m;
  9827. },
  9828. 'J3l' : function (k, m) {
  9829. return k * m;
  9830. },
  9831. 'R7V' : function (k, m) {
  9832. return k === m;
  9833. },
  9834. 'O5R' : function (k, m) {
  9835. return k <= m;
  9836. },
  9837. 'Q5' : function (k, m) {
  9838. return k * m;
  9839. },
  9840. 'N9L' : function (k, m) {
  9841. return k >= m;
  9842. },
  9843. 'M8J' : function (k, m) {
  9844. return k < m;
  9845. },
  9846. 'J9B' : function (k, m) {
  9847. return k === m;
  9848. },
  9849. 'a2u' : function (k, m) {
  9850. return k / m;
  9851. },
  9852. 'g2e' : function (k, m) {
  9853. return k >> m;
  9854. },
  9855. 'I0q' : function (k, m) {
  9856. return k > m;
  9857. },
  9858. 'J43' : function (k, m) {
  9859. return k * m;
  9860. },
  9861. 'k7d' : function (k, m) {
  9862. return k > m;
  9863. },
  9864. 'A9o' : function (k, m) {
  9865. return k == m;
  9866. },
  9867. 'T4w' : function (k, m) {
  9868. return k !== m;
  9869. },
  9870. 'U5A' : function (k, m) {
  9871. return k / m;
  9872. },
  9873. 'r4l' : function (k, m) {
  9874. return k / m;
  9875. },
  9876. 'P8u' : function (k, m) {
  9877. return k == m;
  9878. },
  9879. 'e53' : function (k, m) {
  9880. return k - m;
  9881. },
  9882. 'Y6b' : function (k, m) {
  9883. return k % m;
  9884. },
  9885. 'C8P' : function (k, m) {
  9886. return k - m;
  9887. },
  9888. 'v0V' : function (k, m) {
  9889. return k === m;
  9890. },
  9891. 'M8v' : function (k, m) {
  9892. return k - m;
  9893. },
  9894. 'd4h' : function (k, m) {
  9895. return k > m;
  9896. },
  9897. 'J0P' : function (k, m) {
  9898. return k / m;
  9899. },
  9900. 'j86' : function (k, m) {
  9901. return k === m;
  9902. },
  9903. 'u5R' : function (k, m) {
  9904. return k === m;
  9905. },
  9906. 'o1J' : function (k, m) {
  9907. return k - m;
  9908. },
  9909. 'b1b' : function (k, m) {
  9910. return k * m;
  9911. },
  9912. 'f0Q' : function (k, m) {
  9913. return k === m;
  9914. },
  9915. 'h8' : function (k, m) {
  9916. return k | m;
  9917. },
  9918. 'g7b' : function (k, m) {
  9919. return k !== m;
  9920. },
  9921. 'J6e' : function (k, m) {
  9922. return k & m;
  9923. },
  9924. 'f4N' : function (k, m) {
  9925. return k === m;
  9926. },
  9927. 'v2A' : function (k, m) {
  9928. return k * m;
  9929. },
  9930. 'C5d' : function (k, m) {
  9931. return k - m;
  9932. },
  9933. 'A7q' : function (k, m) {
  9934. return k > m;
  9935. },
  9936. 'W8L' : function (k, m) {
  9937. return k * m;
  9938. },
  9939. 'a1d' : function (k, m) {
  9940. return k !== m;
  9941. },
  9942. 'O2h' : function (k, m) {
  9943. return k === m;
  9944. },
  9945. 'G59' : function (k, m) {
  9946. return k / m;
  9947. },
  9948. 't9R' : function (k, m) {
  9949. return k === m;
  9950. },
  9951. 'O3G' : function (k, m) {
  9952. return k !== m;
  9953. },
  9954. 'y0A' : function (k, m) {
  9955. return k === m;
  9956. },
  9957. 'R8Q' : function (k, m) {
  9958. return k === m;
  9959. },
  9960. 'i6q' : function (k, m) {
  9961. return k > m;
  9962. },
  9963. 'a0I' : function (k, m) {
  9964. return k / m;
  9965. },
  9966. 'b6h' : function (k, m) {
  9967. return k > m;
  9968. },
  9969. 'K43' : function (k, m) {
  9970. return k - m;
  9971. },
  9972. 'I1w' : function (k, m) {
  9973. return k === m;
  9974. },
  9975. 'g6l' : function (k, m) {
  9976. return k * m;
  9977. },
  9978. 'b94' : function (k, m) {
  9979. return k !== m;
  9980. },
  9981. 'Y2D' : function (k, m) {
  9982. return k != m;
  9983. },
  9984. 'a99' : function (k, m) {
  9985. return k / m;
  9986. },
  9987. 's5N' : function (k, m) {
  9988. return k - m;
  9989. },
  9990. 'e4P' : function (k, m) {
  9991. return k - m;
  9992. },
  9993. 'Y8J' : function (k, m) {
  9994. return k instanceof m;
  9995. },
  9996. 'u53' : function (k, m) {
  9997. return k - m;
  9998. },
  9999. 'a9V' : function (k, m) {
  10000. return k - m;
  10001. },
  10002. 'x1G' : function (k, m) {
  10003. return k < m;
  10004. },
  10005. 'A9V' : function (k, m) {
  10006. return k * m;
  10007. },
  10008. 'C6Q' : function (k, m) {
  10009. return k - m;
  10010. },
  10011. 'K9h' : function (k, m) {
  10012. return k > m;
  10013. },
  10014. 'a6Q' : function (k, m) {
  10015. return k !== m;
  10016. },
  10017. 'm2G' : function (k, m) {
  10018. return k !== m;
  10019. },
  10020. 'Y2b' : function (k, m) {
  10021. return k * m;
  10022. },
  10023. 't3o' : function (k, m) {
  10024. return k > m;
  10025. },
  10026. 'O3d' : function (k, m) {
  10027. return k > m;
  10028. },
  10029. 'X0J' : function (k, m) {
  10030. return k >> m;
  10031. },
  10032. 'g2I' : function (k, m) {
  10033. return k === m;
  10034. },
  10035. 'v6N' : function (k, m) {
  10036. return k > m;
  10037. },
  10038. 'R4u' : function (k, m) {
  10039. return k - m;
  10040. },
  10041. 'L5b' : function (k, m) {
  10042. return k - m;
  10043. },
  10044. 'c3V' : function (k, m) {
  10045. return k - m;
  10046. },
  10047. 'C63' : function (k, m) {
  10048. return k * m;
  10049. },
  10050. 'd3q' : function (k, m) {
  10051. return k === m;
  10052. },
  10053. 'Z2N' : function (k, m) {
  10054. return k - m;
  10055. },
  10056. 'o2d' : function (k, m) {
  10057. return k < m;
  10058. },
  10059. 'J5D' : function (k, m, e) {
  10060. return k * m * e;
  10061. },
  10062. 'L8N' : function (k, m) {
  10063. return k / m;
  10064. },
  10065. 'e6R' : function (k, m) {
  10066. return k - m;
  10067. },
  10068. 'p24' : function (k, m) {
  10069. return k - m;
  10070. },
  10071. 's6h' : function (k, m) {
  10072. return k !== m;
  10073. },
  10074. 'G1u' : function (k, m) {
  10075. return k > m;
  10076. },
  10077. 'w3L' : function (k, m) {
  10078. return k * m;
  10079. },
  10080. 'I07' : function (k, m) {
  10081. return k === m;
  10082. },
  10083. 'X5o' : function (k, m) {
  10084. return k === m;
  10085. },
  10086. 'p5h' : function (k, m) {
  10087. return k === m;
  10088. },
  10089. 'W3L' : function (k, m) {
  10090. return k * m;
  10091. },
  10092. 'Y4b' : function (k, m) {
  10093. return k * m;
  10094. },
  10095. 'W7o' : function (k, m) {
  10096. return k & m;
  10097. },
  10098. 's6e' : function (k, m) {
  10099. return k - m;
  10100. },
  10101. 't5G' : function (k, m) {
  10102. return k === m;
  10103. },
  10104. 'M2v' : function (k, m) {
  10105. return k === m;
  10106. },
  10107. 'h43' : function (k, m) {
  10108. return k - m;
  10109. },
  10110. 'u4u' : function (k, m) {
  10111. return k - m;
  10112. },
  10113. 'L59' : function (k, m, e) {
  10114. return k / m * e;
  10115. },
  10116. 'M0Q' : function (k, m) {
  10117. return k == m;
  10118. },
  10119. 'D9b' : function (k, m) {
  10120. return k !== m;
  10121. },
  10122. 's2r' : function (k, m) {
  10123. return k === m;
  10124. },
  10125. 'b2V' : function (k, m) {
  10126. return k < m;
  10127. },
  10128. 'J4b' : function (k, m) {
  10129. return k / m;
  10130. },
  10131. 'E2L' : function (k, m) {
  10132. return k instanceof m;
  10133. },
  10134. 'N2g' : function (k, m) {
  10135. return k * m;
  10136. },
  10137. 'l0J' : function (k, m) {
  10138. return k in m;
  10139. },
  10140. 't3b' : function (k, m) {
  10141. return k * m;
  10142. },
  10143. 'b5I' : function (k, m) {
  10144. return k !== m;
  10145. },
  10146. 'D0e' : function (k, m) {
  10147. return k < m;
  10148. },
  10149. 'B9A' : function (k, m) {
  10150. return k > m;
  10151. },
  10152. 'w3G' : function (k, m) {
  10153. return k / m;
  10154. },
  10155. 'K7L' : function (k, m) {
  10156. return k * m;
  10157. },
  10158. 'c8I' : function (k, m) {
  10159. return k >= m;
  10160. },
  10161. 'W7A' : function (k, m) {
  10162. return k * m;
  10163. },
  10164. 'e2I' : function (k, m) {
  10165. return k > m;
  10166. },
  10167. 'H7L' : function (k, m) {
  10168. return k > m;
  10169. },
  10170. 'Q7Q' : function (k, m) {
  10171. return k === m;
  10172. },
  10173. 'm5R' : function (k, m) {
  10174. return k >= m;
  10175. },
  10176. 'Z0B' : function (k, m) {
  10177. return k - m;
  10178. },
  10179. 'k8N' : function (k, m) {
  10180. return k << m;
  10181. },
  10182. 'B1N' : function (k, m) {
  10183. return k * m;
  10184. },
  10185. 't9Q' : function (k, m) {
  10186. return k / m;
  10187. },
  10188. 'c9P' : function (k, m) {
  10189. return k * m;
  10190. },
  10191. 'R8u' : function (k, m) {
  10192. return k !== m;
  10193. },
  10194. 'j1v' : function (k, m) {
  10195. return k <= m;
  10196. },
  10197. 'q8A' : function (k, m) {
  10198. return k > m;
  10199. },
  10200. 'x9l' : function (k, m) {
  10201. return k > m;
  10202. },
  10203. 'q8I' : function (k, m) {
  10204. return k - m;
  10205. },
  10206. 'd1G' : function (k, m) {
  10207. return k < m;
  10208. },
  10209. 'A9b' : function (k, m) {
  10210. return k * m;
  10211. },
  10212. 'p7R' : function (k, m) {
  10213. return k === m;
  10214. },
  10215. 'O1A' : function (k, m) {
  10216. return k === m;
  10217. },
  10218. 'q37' : function (k, m) {
  10219. return k < m;
  10220. },
  10221. 'r99' : function (k, m) {
  10222. return k * m;
  10223. },
  10224. 'E9N' : function (k, m) {
  10225. return k < m;
  10226. },
  10227. 'x0q' : function (k, m) {
  10228. return k < m;
  10229. },
  10230. 'U9J' : function (k, m) {
  10231. return k === m;
  10232. },
  10233. 'P3h' : function (k, m) {
  10234. return k === m;
  10235. },
  10236. 'B2B' : function (k, m) {
  10237. return k > m;
  10238. },
  10239. 'F74' : function (k, m) {
  10240. return k * m;
  10241. },
  10242. 'T5d' : function (k, m) {
  10243. return k - m;
  10244. },
  10245. 'j9l' : function (k, m) {
  10246. return k > m;
  10247. },
  10248. 'u8h' : function (k, m) {
  10249. return k !== m;
  10250. },
  10251. 'x6h' : function (k, m) {
  10252. return k < m;
  10253. },
  10254. 'T86' : function (k, m) {
  10255. return k === m;
  10256. },
  10257. 'k6I' : function (k, m) {
  10258. return k > m;
  10259. },
  10260. 'k3u' : function (k, m) {
  10261. return k - m;
  10262. },
  10263. 'A3d' : function (k, m) {
  10264. return k === m;
  10265. },
  10266. 'P89' : function (k, m) {
  10267. return k === m;
  10268. },
  10269. 'S9w' : function (k, m) {
  10270. return k >= m;
  10271. },
  10272. 'l8q' : function (k, m) {
  10273. return k % m;
  10274. },
  10275. 'k5o' : function (k, m) {
  10276. return k == m;
  10277. },
  10278. 'z79' : function (k, m) {
  10279. return k > m;
  10280. },
  10281. 'G8l' : function (k, m) {
  10282. return k - m;
  10283. },
  10284. 'C9J' : function (k, m) {
  10285. return k === m;
  10286. },
  10287. 'I5I' : function (k, m) {
  10288. return k >= m;
  10289. },
  10290. 'Y3l' : function (k, m) {
  10291. return k > m;
  10292. },
  10293. 'j9J' : function (k, m) {
  10294. return k === m;
  10295. },
  10296. 'F66' : function (k, m) {
  10297. return k instanceof m;
  10298. },
  10299. 'i04' : function (k, m) {
  10300. return k - m;
  10301. },
  10302. 'I8A' : function (k, m) {
  10303. return k >= m;
  10304. },
  10305. 'x0J' : function (k, m, e) {
  10306. return k * m * e;
  10307. },
  10308. 'C29' : function (k, m) {
  10309. return k / m;
  10310. },
  10311. 'Z4l' : function (k, m) {
  10312. return k * m;
  10313. },
  10314. 'Q5A' : function (k, m) {
  10315. return k * m;
  10316. },
  10317. 'c0V' : function (k, m) {
  10318. return k > m;
  10319. },
  10320. 't4A' : function (k, m) {
  10321. return k - m;
  10322. },
  10323. 'N3u' : function (k, m) {
  10324. return k - m;
  10325. },
  10326. 'E3G' : function (k, m) {
  10327. return k * m;
  10328. },
  10329. 'l9B' : function (k, m) {
  10330. return k === m;
  10331. },
  10332. 's33' : function (k, m) {
  10333. return k * m;
  10334. },
  10335. 'M66' : function (k, m) {
  10336. return k === m;
  10337. },
  10338. 'v7J' : function (k, m) {
  10339. return k === m;
  10340. },
  10341. 'h9I' : function (k, m) {
  10342. return k < m;
  10343. },
  10344. 'B2D' : function (k, m) {
  10345. return k === m;
  10346. },
  10347. 'O4v' : function (k, m) {
  10348. return k < m;
  10349. },
  10350. 'p7J' : function (k, m) {
  10351. return k < m;
  10352. },
  10353. 'n2l' : function (k, m) {
  10354. return k > m;
  10355. },
  10356. 'e2L' : function (k, m) {
  10357. return k >= m;
  10358. },
  10359. 'r2h' : function (k, m) {
  10360. return k instanceof m;
  10361. },
  10362. 'x8o' : function (k, m) {
  10363. return k > m;
  10364. },
  10365. 'q6B' : function (k, m) {
  10366. return k > m;
  10367. },
  10368. 'Z5r' : function (k, m) {
  10369. return k * m;
  10370. },
  10371. 'T4I' : function (k, m) {
  10372. return k < m;
  10373. },
  10374. 'D0u' : function (k, m) {
  10375. return k - m;
  10376. },
  10377. 'd0A' : function (k, m) {
  10378. return k > m;
  10379. },
  10380. 'H0P' : function (k, m) {
  10381. return k / m;
  10382. },
  10383. 'M2Q' : function (k, m) {
  10384. return k / m;
  10385. },
  10386. 'T4e' : function (k, m) {
  10387. return k >= m;
  10388. },
  10389. 'y3V' : function (k, m) {
  10390. return k !== m;
  10391. },
  10392. 'K47' : function (k, m) {
  10393. return k / m;
  10394. },
  10395. 'T9J' : function (k, m) {
  10396. return k > m;
  10397. },
  10398. 'j5G' : function (k, m) {
  10399. return k > m;
  10400. },
  10401. 'D96' : function (k, m) {
  10402. return k > m;
  10403. },
  10404. 'B7I' : function (k, m) {
  10405. return k >= m;
  10406. },
  10407. 'V7V' : function (k, m) {
  10408. return k > m;
  10409. },
  10410. 'O6l' : function (k, m) {
  10411. return k > m;
  10412. },
  10413. 'o49' : function (k, m) {
  10414. return k > m;
  10415. },
  10416. 'B3l' : function (k, m) {
  10417. return k * m;
  10418. },
  10419. 'k46' : function (k, m) {
  10420. return k % m;
  10421. },
  10422. 's4L' : function (k, m) {
  10423. return k * m;
  10424. },
  10425. 'S6h' : function (k, m) {
  10426. return k * m;
  10427. },
  10428. 'g4P' : function (k, m) {
  10429. return k * m;
  10430. },
  10431. 'C0V' : function (k, m) {
  10432. return k - m;
  10433. },
  10434. 'F79' : function (k, m) {
  10435. return k !== m;
  10436. },
  10437. 'z4D' : function (k, m) {
  10438. return k > m;
  10439. },
  10440. 'M7G' : function (k, m) {
  10441. return k !== m;
  10442. },
  10443. 'v13' : function (k, m) {
  10444. return k | m;
  10445. },
  10446. 'x9Q' : function (k, m) {
  10447. return k / m;
  10448. },
  10449. 'u4v' : function (k, m) {
  10450. return k === m;
  10451. },
  10452. 'q5L' : function (k, m) {
  10453. return k !== m;
  10454. },
  10455. 'n7L' : function (k, m) {
  10456. return k / m;
  10457. },
  10458. 'p9v' : function (k, m) {
  10459. return k - m;
  10460. },
  10461. 'm4l' : function (k, m) {
  10462. return k / m;
  10463. },
  10464. 'n2w' : function (k, m) {
  10465. return k === m;
  10466. },
  10467. 'D89' : function (k, m) {
  10468. return k * m;
  10469. },
  10470. 'm66' : function (k, m, e) {
  10471. return k - m + e;
  10472. },
  10473. 's06' : function (k, m) {
  10474. return k > m;
  10475. },
  10476. 'K13' : function (k, m) {
  10477. return k * m;
  10478. },
  10479. 't5h' : function (k, m) {
  10480. return k === m;
  10481. },
  10482. 'q4d' : function (k, m) {
  10483. return k * m;
  10484. },
  10485. 'H9A' : function (k, m, e) {
  10486. return k * m * e;
  10487. },
  10488. 'm2' : function (k, m) {
  10489. return k * m;
  10490. },
  10491. 'Z77' : function (k, m) {
  10492. return k < m;
  10493. },
  10494. 'P6J' : function (k, m) {
  10495. return k > m;
  10496. },
  10497. 'h66' : function (k, m) {
  10498. return k instanceof m;
  10499. },
  10500. 'x29' : function (k, m) {
  10501. return k * m;
  10502. },
  10503. 'V4R' : function (k, m) {
  10504. return k * m;
  10505. },
  10506. 'F9d' : function (k, m) {
  10507. return k < m;
  10508. },
  10509. 'h4D' : function (k, m) {
  10510. return k - m;
  10511. },
  10512. 'b39' : function (k, m) {
  10513. return k / m;
  10514. },
  10515. 'f3l' : function (k, m) {
  10516. return k * m;
  10517. },
  10518. 'M8w' : function (k, m) {
  10519. return k > m;
  10520. },
  10521. 'B3w' : function (k, m) {
  10522. return k < m;
  10523. },
  10524. 'U2b' : function (k, m, e) {
  10525. return k - m + e;
  10526. },
  10527. 'S8D' : function (k, m) {
  10528. return k == m;
  10529. },
  10530. 'a77' : function (k, m) {
  10531. return k > m;
  10532. },
  10533. 'a7A' : function (k, m) {
  10534. return k - m;
  10535. },
  10536. 'Y9I' : function (k, m) {
  10537. return k | m;
  10538. },
  10539. 'b4e' : function (k, m) {
  10540. return k > m;
  10541. },
  10542. 'X9A' : function (k, m) {
  10543. return k > m;
  10544. },
  10545. 'e1o' : function (k, m) {
  10546. return k > m;
  10547. },
  10548. 'N8V' : function (k, m) {
  10549. return k === m;
  10550. },
  10551. 'b9P' : function (k, m) {
  10552. return k * m;
  10553. },
  10554. 'h8v' : function (k, m) {
  10555. return k - m;
  10556. },
  10557. 'G4B' : function (k, m) {
  10558. return k === m;
  10559. },
  10560. 'z8g' : function (k, m) {
  10561. return k / m;
  10562. },
  10563. 'B2b' : function (k, m) {
  10564. return k * m;
  10565. },
  10566. 'H4r' : function (k, m) {
  10567. return k === m;
  10568. },
  10569. 'L0v' : function (k, m) {
  10570. return k !== m;
  10571. },
  10572. 'j5L' : function (k, m) {
  10573. return k !== m;
  10574. },
  10575. 'r3G' : function (k, m) {
  10576. return k > m;
  10577. },
  10578. 'p1G' : function (k, m) {
  10579. return k < m;
  10580. },
  10581. 'E53' : function (k, m) {
  10582. return k === m;
  10583. },
  10584. 'R6g' : function (k, m) {
  10585. return k < m;
  10586. },
  10587. 'j3P' : function (k, m) {
  10588. return k > m;
  10589. },
  10590. 'D1r' : function (k, m) {
  10591. return k === m;
  10592. },
  10593. 'F4q' : function (k, m) {
  10594. return k - m;
  10595. },
  10596. 'D8' : function (k, m) {
  10597. return k !== m;
  10598. },
  10599. 'E7N' : function (k, m) {
  10600. return k - m;
  10601. },
  10602. 'Y2g' : function (k, m) {
  10603. return k / m;
  10604. },
  10605. 'C1R' : function (k, m) {
  10606. return k >= m;
  10607. },
  10608. 'z6A' : function (k, m) {
  10609. return k === m;
  10610. },
  10611. 'M2q' : function (k, m) {
  10612. return k / m;
  10613. },
  10614. 'H2R' : function (k, m) {
  10615. return k > m;
  10616. },
  10617. 'V5w' : function (k, m) {
  10618. return k > m;
  10619. },
  10620. 'r8B' : function (k, m) {
  10621. return k - m;
  10622. },
  10623. 'y6N' : function (k, m) {
  10624. return k > m;
  10625. },
  10626. 'P7q' : function (k, m) {
  10627. return k % m;
  10628. },
  10629. 'q7P' : function (k, m) {
  10630. return k - m;
  10631. },
  10632. 'j0g' : function (k, m) {
  10633. return k !== m;
  10634. },
  10635. 'l6Q' : function (k, m) {
  10636. return k * m;
  10637. },
  10638. 'L1' : function (k, m) {
  10639. return k !== m;
  10640. },
  10641. 'v9g' : function (k, m) {
  10642. return k * m;
  10643. },
  10644. 'P6o' : function (k, m) {
  10645. return k > m;
  10646. },
  10647. 'd16' : function (k, m) {
  10648. return k === m;
  10649. },
  10650. 'c2A' : function (k, m) {
  10651. return k / m;
  10652. },
  10653. 'E34' : function (k, m) {
  10654. return k - m;
  10655. },
  10656. 'e7A' : function (k, m) {
  10657. return k > m;
  10658. },
  10659. 'j7g' : function (k, m) {
  10660. return k | m;
  10661. },
  10662. 'T1J' : function (k, m) {
  10663. return k > m;
  10664. },
  10665. 'm0h' : function (k, m) {
  10666. return k > m;
  10667. },
  10668. 'B6P' : function (k, m) {
  10669. return k > m;
  10670. },
  10671. 'J5r' : function (k, m) {
  10672. return k === m;
  10673. },
  10674. 'V6v' : function (k, m) {
  10675. return k / m;
  10676. },
  10677. 'h8G' : function (k, m) {
  10678. return k < m;
  10679. },
  10680. 'e0J' : function (k, m, e) {
  10681. return k / m * e;
  10682. },
  10683. 'y7Q' : function (k, m) {
  10684. return k > m;
  10685. },
  10686. 's9v' : function (k, m) {
  10687. return k === m;
  10688. },
  10689. 'z8w' : function (k, m) {
  10690. return k !== m;
  10691. },
  10692. 'F8R' : function (k, m) {
  10693. return k >= m;
  10694. },
  10695. 'Q86' : function (k, m) {
  10696. return k === m;
  10697. },
  10698. 'u9D' : function (k, m) {
  10699. return k > m;
  10700. },
  10701. 'b2P' : function (k, m) {
  10702. return k <= m;
  10703. },
  10704. 'F0Q' : function (k, m) {
  10705. return k == m;
  10706. },
  10707. 't4I' : function (k, m) {
  10708. return k === m;
  10709. },
  10710. 'U26' : function (k, m) {
  10711. return k === m;
  10712. },
  10713. 'U37' : function (k, m) {
  10714. return k < m;
  10715. },
  10716. 'f1u' : function (k, m) {
  10717. return k in m;
  10718. },
  10719. 'Z9V' : function (k, m) {
  10720. return k * m;
  10721. },
  10722. 't27' : function (k, m) {
  10723. return k === m;
  10724. },
  10725. 'C6u' : function (k, m) {
  10726. return k in m;
  10727. },
  10728. 'n3A' : function (k, m) {
  10729. return k * m;
  10730. },
  10731. 'z7B' : function (k, m) {
  10732. return k < m;
  10733. },
  10734. 'M7h' : function (k, m) {
  10735. return k <= m;
  10736. },
  10737. 'P79' : function (k, m, e) {
  10738. return k * m * e;
  10739. },
  10740. 'l3Q' : function (k, m) {
  10741. return k > m;
  10742. },
  10743. 'e8u' : function (k, m) {
  10744. return k == m;
  10745. },
  10746. 'C7R' : function (k, m) {
  10747. return k - m;
  10748. },
  10749. 'F3l' : function (k, m) {
  10750. return k * m;
  10751. },
  10752. 'x0N' : function (k, m) {
  10753. return k === m;
  10754. },
  10755. 'K6D' : function (k, m) {
  10756. return k >= m;
  10757. },
  10758. 'y8D' : function (k, m) {
  10759. return k * m;
  10760. },
  10761. 'Y0v' : function (k, m) {
  10762. return k - m;
  10763. },
  10764. 'S03' : function (k, m) {
  10765. return k - m;
  10766. },
  10767. 'W7q' : function (k, m) {
  10768. return k / m;
  10769. },
  10770. 'l4A' : function (k, m) {
  10771. return k * m;
  10772. },
  10773. 'N7B' : function (k, m) {
  10774. return k < m;
  10775. },
  10776. 'j8o' : function (k, m) {
  10777. return k !== m;
  10778. },
  10779. 'N7u' : function (k, m) {
  10780. return k - m;
  10781. },
  10782. 'd5u' : function (k, m) {
  10783. return k === m;
  10784. },
  10785. 'V5v' : function (k, m) {
  10786. return k > m;
  10787. },
  10788. 'c8A' : function (k, m) {
  10789. return k === m;
  10790. },
  10791. 'L4D' : function (k, m) {
  10792. return k > m;
  10793. },
  10794. 'y2b' : function (k, m) {
  10795. return k / m;
  10796. },
  10797. 'j36' : function (k, m) {
  10798. return k - m;
  10799. },
  10800. 'W64' : function (k, m) {
  10801. return k !== m;
  10802. },
  10803. 'C3q' : function (k, m) {
  10804. return k <= m;
  10805. },
  10806. 'C0r' : function (k, m) {
  10807. return k * m;
  10808. },
  10809. 'u5B' : function (k, m) {
  10810. return k === m;
  10811. },
  10812. 'c7l' : function (k, m) {
  10813. return k !== m;
  10814. },
  10815. 'E7o' : function (k, m) {
  10816. return k & m;
  10817. },
  10818. 'A17' : function (k, m) {
  10819. return k / m;
  10820. },
  10821. 'B49' : function (k, m) {
  10822. return k * m;
  10823. },
  10824. 'L8l' : function (k, m) {
  10825. return k > m;
  10826. },
  10827. 's4h' : function (k, m) {
  10828. return k instanceof m;
  10829. },
  10830. 'r96' : function (k, m) {
  10831. return k > m;
  10832. },
  10833. 'c6L' : function (k, m) {
  10834. return k - m;
  10835. },
  10836. 'w8h' : function (k, m) {
  10837. return k !== m;
  10838. },
  10839. 'P1V' : function (k, m) {
  10840. return k / m;
  10841. },
  10842. 'J1D' : function (k, m) {
  10843. return k - m;
  10844. },
  10845. 't23' : function (k, m) {
  10846. return k - m;
  10847. },
  10848. 'k9G' : function (k, m) {
  10849. return k == m;
  10850. },
  10851. 'O6G' : function (k, m) {
  10852. return k / m;
  10853. },
  10854. 'i0I' : function (k, m) {
  10855. return k / m;
  10856. },
  10857. 'p1J' : function (k, m) {
  10858. return k * m;
  10859. },
  10860. 'a3I' : function (k, m) {
  10861. return k * m;
  10862. },
  10863. 'T3B' : function (k, m, e, o, n) {
  10864. return k * m * e * o * n;
  10865. },
  10866. 'T1g' : function (k, m) {
  10867. return k / m;
  10868. },
  10869. 'h2q' : function (k, m) {
  10870. return k | m;
  10871. },
  10872. 'R3G' : function (k, m) {
  10873. return k < m;
  10874. },
  10875. 'h3l' : function (k, m) {
  10876. return k * m;
  10877. },
  10878. 'p2B' : function (k, m) {
  10879. return k - m;
  10880. },
  10881. 'I4d' : function (k, m) {
  10882. return k * m;
  10883. },
  10884. 'E5B' : function (k, m) {
  10885. return k > m;
  10886. },
  10887. 'n8l' : function (k, m) {
  10888. return k > m;
  10889. },
  10890. 'R3d' : function (k, m) {
  10891. return k * m;
  10892. },
  10893. 'A0e' : function (k, m) {
  10894. return k < m;
  10895. },
  10896. 'q94' : function (k, m) {
  10897. return k !== m;
  10898. },
  10899. 'O8Q' : function (k, m) {
  10900. return k === m;
  10901. },
  10902. 'X2v' : function (k, m) {
  10903. return k >= m;
  10904. },
  10905. 'i8h' : function (k, m) {
  10906. return k !== m;
  10907. },
  10908. 'v4I' : function (k, m) {
  10909. return k === m;
  10910. },
  10911. 'K56' : function (k, m) {
  10912. return k instanceof m;
  10913. },
  10914. 'Z2e' : function (k, m) {
  10915. return k & m;
  10916. },
  10917. 'C1q' : function (k, m) {
  10918. return k | m;
  10919. },
  10920. 'C5G' : function (k, m) {
  10921. return k === m;
  10922. },
  10923. 'A2G' : function (k, m) {
  10924. return k < m;
  10925. },
  10926. 'Q6u' : function (k, m) {
  10927. return k == m;
  10928. },
  10929. 'P4v' : function (k, m) {
  10930. return k === m;
  10931. },
  10932. 'G1N' : function (k, m) {
  10933. return k | m;
  10934. },
  10935. 'v69' : function (k, m) {
  10936. return k - m;
  10937. },
  10938. 'f6P' : function (k, m) {
  10939. return k > m;
  10940. },
  10941. 'q9Q' : function (k, m) {
  10942. return k / m;
  10943. },
  10944. 'i2' : function (k, m) {
  10945. return k >= m;
  10946. },
  10947. 'L1N' : function (k, m) {
  10948. return k === m;
  10949. },
  10950. 'o6B' : function (k, m) {
  10951. return k < m;
  10952. },
  10953. 'h6I' : function (k, m) {
  10954. return k > m;
  10955. },
  10956. 'L43' : function (k, m) {
  10957. return k * m;
  10958. },
  10959. 'o0b' : function (k, m) {
  10960. return k > m;
  10961. },
  10962. 'q5h' : function (k, m) {
  10963. return k === m;
  10964. },
  10965. 'N4r' : function (k, m) {
  10966. return k !== m;
  10967. },
  10968. 'Z8R' : function (k, m) {
  10969. return k === m;
  10970. },
  10971. 'f7L' : function (k, m) {
  10972. return k / m;
  10973. },
  10974. 'E54' : function (k, m) {
  10975. return k > m;
  10976. },
  10977. 'D9r' : function (k, m) {
  10978. return k !== m;
  10979. },
  10980. 'R6w' : function (k, m) {
  10981. return k < m;
  10982. },
  10983. 'q5u' : function (k, m) {
  10984. return k === m;
  10985. },
  10986. 'B9' : function (k, m, e) {
  10987. return k * m * e;
  10988. },
  10989. 'a7g' : function (k, m) {
  10990. return k | m;
  10991. },
  10992. 'b03' : function (k, m) {
  10993. return k * m;
  10994. },
  10995. 'v1g' : function (k, m) {
  10996. return k / m;
  10997. },
  10998. 'P5J' : function (k, m) {
  10999. return k - m;
  11000. },
  11001. 'S3b' : function (k, m) {
  11002. return k < m;
  11003. },
  11004. 'p86' : function (k, m) {
  11005. return k === m;
  11006. },
  11007. 'T36' : function (k, m) {
  11008. return k - m;
  11009. },
  11010. 't7R' : function (k, m) {
  11011. return k * m;
  11012. },
  11013. 'm7q' : function (k, m) {
  11014. return k / m;
  11015. },
  11016. 'N2J' : function (k, m) {
  11017. return k - m;
  11018. },
  11019. 'V0B' : function (k, m) {
  11020. return k === m;
  11021. },
  11022. 'u77' : function (k, m) {
  11023. return k >= m;
  11024. },
  11025. 'd4w' : function (k, m) {
  11026. return k > m;
  11027. },
  11028. 'K9e' : function (k, m) {
  11029. return k < m;
  11030. },
  11031. 'p3r' : function (k, m) {
  11032. return k === m;
  11033. },
  11034. 'a6R' : function (k, m) {
  11035. return k * m;
  11036. },
  11037. 'V3G' : function (k, m) {
  11038. return k !== m;
  11039. },
  11040. 'e2G' : function (k, m) {
  11041. return k >= m;
  11042. },
  11043. 'B7h' : function (k, m) {
  11044. return k > m;
  11045. },
  11046. 'G5b' : function (k, m) {
  11047. return k > m;
  11048. },
  11049. 'q0o' : function (k, m) {
  11050. return k & m;
  11051. },
  11052. 'O1r' : function (k, m) {
  11053. return k - m;
  11054. },
  11055. 'B7e' : function (k, m) {
  11056. return k > m;
  11057. },
  11058. 'V2N' : function (k, m) {
  11059. return k | m;
  11060. },
  11061. 'J4V' : function (k, m) {
  11062. return k === m;
  11063. },
  11064. 'c7R' : function (k, m) {
  11065. return k * m;
  11066. },
  11067. 'b1G' : function (k, m) {
  11068. return k < m;
  11069. },
  11070. 's2A' : function (k, m) {
  11071. return k / m;
  11072. },
  11073. 'F83' : function (k, m) {
  11074. return k & m;
  11075. },
  11076. 'l13' : function (k, m) {
  11077. return k * m;
  11078. },
  11079. 'b8P' : function (k, m) {
  11080. return k - m;
  11081. },
  11082. 'f3Q' : function (k, m) {
  11083. return k > m;
  11084. },
  11085. 'I5L' : function (k, m) {
  11086. return k === m;
  11087. },
  11088. 'V7q' : function (k, m) {
  11089. return k - m;
  11090. },
  11091. 'v0D' : function (k, m) {
  11092. return k > m;
  11093. },
  11094. 'H9d' : function (k, m) {
  11095. return k / m;
  11096. },
  11097. 't4h' : function (k, m) {
  11098. return k === m;
  11099. },
  11100. 'k5V' : function (k, m) {
  11101. return k === m;
  11102. },
  11103. 'l7G' : function (k, m) {
  11104. return k !== m;
  11105. },
  11106. 'Q8P' : function (k, m) {
  11107. return k === m;
  11108. },
  11109. 'J66' : function (k, m) {
  11110. return k === m;
  11111. },
  11112. 'Q7u' : function (k, m) {
  11113. return k / m;
  11114. },
  11115. 's3q' : function (k, m) {
  11116. return k === m;
  11117. },
  11118. 'J2v' : function (k, m) {
  11119. return k == m;
  11120. },
  11121. 'W6Q' : function (k, m, e) {
  11122. return k - m - e;
  11123. },
  11124. 'K2J' : function (k, m) {
  11125. return k * m;
  11126. },
  11127. 'V1A' : function (k, m) {
  11128. return k !== m;
  11129. },
  11130. 'y0V' : function (k, m) {
  11131. return k > m;
  11132. },
  11133. 'h2R' : function (k, m) {
  11134. return k < m;
  11135. },
  11136. 'k56' : function (k, m) {
  11137. return k === m;
  11138. },
  11139. 'o9u' : function (k, m) {
  11140. return k !== m;
  11141. },
  11142. 'K4V' : function (k, m) {
  11143. return k % m;
  11144. },
  11145. 'a5l' : function (k, m) {
  11146. return k > m;
  11147. },
  11148. 'w9r' : function (k, m) {
  11149. return k === m;
  11150. },
  11151. 'U0D' : function (k, m) {
  11152. return k !== m;
  11153. },
  11154. 'c33' : function (k, m) {
  11155. return k > m;
  11156. },
  11157. 'O1P' : function (k, m) {
  11158. return k * m;
  11159. },
  11160. 'H8N' : function (k, m) {
  11161. return k / m;
  11162. },
  11163. 'A7b' : function (k, m) {
  11164. return k - m;
  11165. },
  11166. 'q0r' : function (k, m) {
  11167. return k === m;
  11168. },
  11169. 'M7e' : function (k, m) {
  11170. return k !== m;
  11171. },
  11172. 'o4d' : function (k, m) {
  11173. return k * m;
  11174. },
  11175. 'W4J' : function (k, m) {
  11176. return k * m;
  11177. },
  11178. 'r4R' : function (k, m) {
  11179. return k / m;
  11180. },
  11181. 'y6D' : function (k, m) {
  11182. return k - m;
  11183. },
  11184. 'U5I' : function (k, m) {
  11185. return k << m;
  11186. },
  11187. 'q1R' : function (k, m) {
  11188. return k != m;
  11189. },
  11190. 'l9A' : function (k, m) {
  11191. return k > m;
  11192. },
  11193. 'S37' : function (k, m) {
  11194. return k / m;
  11195. },
  11196. 'n0J' : function (k, m) {
  11197. return k !== m;
  11198. },
  11199. 'Z5l' : function (k, m) {
  11200. return k | m;
  11201. },
  11202. 'i4v' : function (k, m) {
  11203. return k * m;
  11204. },
  11205. 'O6v' : function (k, m) {
  11206. return k / m;
  11207. },
  11208. 'q93' : function (k, m) {
  11209. return k === m;
  11210. },
  11211. 'g8u' : function (k, m) {
  11212. return k == m;
  11213. },
  11214. 'Z5w' : function (k, m) {
  11215. return k === m;
  11216. },
  11217. 'T6o' : function (k, m) {
  11218. return k < m;
  11219. },
  11220. 'c5G' : function (k, m) {
  11221. return k !== m;
  11222. },
  11223. 'o4A' : function (k, m) {
  11224. return k > m;
  11225. },
  11226. 'A3g' : function (k, m, e) {
  11227. return k / m * e;
  11228. },
  11229. 'e9N' : function (k, m) {
  11230. return k === m;
  11231. },
  11232. 'l49' : function (k, m) {
  11233. return k * m;
  11234. },
  11235. 'r5w' : function (k, m) {
  11236. return k === m;
  11237. },
  11238. 'x1e' : function (k, m) {
  11239. return k & m;
  11240. },
  11241. 'W6q' : function (k, m) {
  11242. return k > m;
  11243. },
  11244. 'S13' : function (k, m) {
  11245. return k | m;
  11246. },
  11247. 'o9R' : function (k, m) {
  11248. return k <= m;
  11249. },
  11250. 'Q3D' : function (k, m) {
  11251. return k * m;
  11252. },
  11253. 'M2R' : function (k, m) {
  11254. return k - m;
  11255. },
  11256. 'q8P' : function (k, m) {
  11257. return k - m;
  11258. },
  11259. 'b4w' : function (k, m) {
  11260. return k === m;
  11261. },
  11262. 'A8u' : function (k, m) {
  11263. return k === m;
  11264. },
  11265. 'k0l' : function (k, m) {
  11266. return k >= m;
  11267. },
  11268. 'g6R' : function (k, m) {
  11269. return k - m;
  11270. },
  11271. 'E6w' : function (k, m) {
  11272. return k < m;
  11273. },
  11274. 'p6e' : function (k, m) {
  11275. return k - m;
  11276. },
  11277. 'G8R' : function (k, m) {
  11278. return k / m;
  11279. },
  11280. 'P2u' : function (k, m) {
  11281. return k > m;
  11282. },
  11283. 'F0w' : function (k, m) {
  11284. return k === m;
  11285. },
  11286. 'S7l' : function (k, m) {
  11287. return k > m;
  11288. },
  11289. 'C9v' : function (k, m) {
  11290. return k > m;
  11291. },
  11292. 'F0l' : function (k, m) {
  11293. return k >= m;
  11294. },
  11295. 'p03' : function (k, m) {
  11296. return k - m;
  11297. },
  11298. 'i7q' : function (k, m) {
  11299. return k - m;
  11300. },
  11301. 'w0G' : function (k, m) {
  11302. return k / m;
  11303. },
  11304. 'y7P' : function (k, m) {
  11305. return k != m;
  11306. },
  11307. 'N3l' : function (k, m) {
  11308. return k * m;
  11309. },
  11310. 'N2D' : function (k, m) {
  11311. return k > m;
  11312. },
  11313. 'S9u' : function (k, m) {
  11314. return k !== m;
  11315. },
  11316. 'A04' : function (k, m) {
  11317. return k !== m;
  11318. },
  11319. 'W1P' : function (k, m) {
  11320. return k !== m;
  11321. },
  11322. 'j79' : function (k, m) {
  11323. return k * m;
  11324. },
  11325. 'g2N' : function (k, m) {
  11326. return k === m;
  11327. },
  11328. 'J8l' : function (k, m) {
  11329. return k !== m;
  11330. },
  11331. 'x3N' : function (k, m) {
  11332. return k - m;
  11333. },
  11334. 'd5' : function (k, m) {
  11335. return k * m;
  11336. },
  11337. 'B7A' : function (k, m) {
  11338. return k * m;
  11339. },
  11340. 'P97' : function (k, m) {
  11341. return k < m;
  11342. },
  11343. 'K5V' : function (k, m) {
  11344. return k === m;
  11345. },
  11346. 'Z5g' : function (k, m) {
  11347. return k * m;
  11348. },
  11349. 'g5e' : function (k, m) {
  11350. return k === m;
  11351. },
  11352. 't3r' : function (k, m) {
  11353. return k !== m;
  11354. },
  11355. 'd6h' : function (k, m) {
  11356. return k < m;
  11357. },
  11358. 'f5r' : function (k, m, e) {
  11359. return k * m * e;
  11360. },
  11361. 'Y2R' : function (k, m) {
  11362. return k * m;
  11363. },
  11364. 'B7G' : function (k, m) {
  11365. return k / m;
  11366. },
  11367. 'F6I' : function (k, m) {
  11368. return k !== m;
  11369. },
  11370. 't33' : function (k, m) {
  11371. return k / m;
  11372. },
  11373. 'Q5L' : function (k, m) {
  11374. return k instanceof m;
  11375. },
  11376. 'x9u' : function (k, m) {
  11377. return k <= m;
  11378. },
  11379. 'i73' : function (k, m) {
  11380. return k > m;
  11381. },
  11382. 'z2Q' : function (k, m) {
  11383. return k * m;
  11384. },
  11385. 'u2G' : function (k, m) {
  11386. return k != m;
  11387. },
  11388. 'r6l' : function (k, m) {
  11389. return k === m;
  11390. },
  11391. 'I7Q' : function (k, m) {
  11392. return k > m;
  11393. },
  11394. 'n3w' : function (k, m) {
  11395. return k * m;
  11396. },
  11397. 'N9e' : function (k, m) {
  11398. return k === m;
  11399. },
  11400. 'G3R' : function (k, m) {
  11401. return k > m;
  11402. },
  11403. 'j7v' : function (k, m) {
  11404. return k * m;
  11405. },
  11406. 'Y3v' : function (k, m) {
  11407. return k == m;
  11408. },
  11409. 'W5' : function (k, m) {
  11410. return k * m;
  11411. },
  11412. 'U1g' : function (k, m) {
  11413. return k / m;
  11414. },
  11415. 'm6l' : function (k, m) {
  11416. return k === m;
  11417. },
  11418. 'E0L' : function (k, m) {
  11419. return k instanceof m;
  11420. },
  11421. 'A0u' : function (k, m) {
  11422. return k - m;
  11423. },
  11424. 'w6g' : function (k, m) {
  11425. return k < m;
  11426. },
  11427. 'z8V' : function (k, m) {
  11428. return k - m;
  11429. },
  11430. 'v5d' : function (k, m) {
  11431. return k - m;
  11432. },
  11433. 'T7l' : function (k, m) {
  11434. return k / m;
  11435. },
  11436. 'F7h' : function (k, m) {
  11437. return k instanceof m;
  11438. },
  11439. 'M59' : function (k, m) {
  11440. return k === m;
  11441. },
  11442. 'Z1P' : function (k, m) {
  11443. return k * m;
  11444. },
  11445. 'o4e' : function (k, m) {
  11446. return k > m;
  11447. },
  11448. 'v6u' : function (k, m) {
  11449. return k in m;
  11450. },
  11451. 's3b' : function (k, m) {
  11452. return k < m;
  11453. },
  11454. 'k5q' : function (k, m) {
  11455. return k * m;
  11456. },
  11457. 'e9r' : function (k, m) {
  11458. return k === m;
  11459. },
  11460. 'o9J' : function (k, m) {
  11461. return k > m;
  11462. },
  11463. 't0A' : function (k, m) {
  11464. return k < m;
  11465. },
  11466. 'b6e' : function (k, m) {
  11467. return k > m;
  11468. },
  11469. 'E14' : function (k, m) {
  11470. return k === m;
  11471. },
  11472. 'Z7o' : function (k, m) {
  11473. return k === m;
  11474. },
  11475. 'D8u' : function (k, m) {
  11476. return k == m;
  11477. },
  11478. 't5A' : function (k, m) {
  11479. return k | m;
  11480. },
  11481. 'k7G' : function (k, m) {
  11482. return k - m;
  11483. },
  11484. 'y07' : function (k, m) {
  11485. return k < m;
  11486. },
  11487. 'H3Q' : function (k, m) {
  11488. return k < m;
  11489. },
  11490. 'e5Q' : function (k, m) {
  11491. return k === m;
  11492. },
  11493. 'Z7r' : function (k, m) {
  11494. return k < m;
  11495. },
  11496. 'x4A' : function (k, m) {
  11497. return k > m;
  11498. },
  11499. 'e6l' : function (k, m) {
  11500. return k / m;
  11501. },
  11502. 'y7l' : function (k, m) {
  11503. return k - m;
  11504. },
  11505. 'K2w' : function (k, m) {
  11506. return k === m;
  11507. },
  11508. 'q4e' : function (k, m) {
  11509. return k !== m;
  11510. },
  11511. 'r6g' : function (k, m) {
  11512. return k % m;
  11513. },
  11514. 'h6d' : function (k, m) {
  11515. return k === m;
  11516. },
  11517. 'A1d' : function (k, m) {
  11518. return k > m;
  11519. },
  11520. 'J8g' : function (k, m) {
  11521. return k - m;
  11522. },
  11523. 'p5u' : function (k, m) {
  11524. return k === m;
  11525. },
  11526. 'w9N' : function (k, m) {
  11527. return k < m;
  11528. },
  11529. 'H4N' : function (k, m) {
  11530. return k !== m;
  11531. },
  11532. 'c5L' : function (k, m) {
  11533. return k * m;
  11534. },
  11535. 'Q3N' : function (k, m) {
  11536. return k - m;
  11537. },
  11538. 'C6N' : function (k, m) {
  11539. return k * m;
  11540. },
  11541. 'A5' : function (k, m) {
  11542. return k - m;
  11543. },
  11544. 'R7o' : function (k, m) {
  11545. return k === m;
  11546. },
  11547. 's4w' : function (k, m) {
  11548. return k - m;
  11549. },
  11550. 'J1' : function (k, m) {
  11551. return k !== m;
  11552. },
  11553. 'g0u' : function (k, m) {
  11554. return k > m;
  11555. },
  11556. 'E6l' : function (k, m) {
  11557. return k / m;
  11558. },
  11559. 'U6o' : function (k, m) {
  11560. return k > m;
  11561. },
  11562. 'A7D' : function (k, m) {
  11563. return k * m;
  11564. },
  11565. 'r9q' : function (k, m) {
  11566. return k / m;
  11567. },
  11568. 'y9u' : function (k, m) {
  11569. return k === m;
  11570. },
  11571. 'Q7g' : function (k, m) {
  11572. return k * m;
  11573. },
  11574. 't0b' : function (k, m) {
  11575. return k < m;
  11576. },
  11577. 'h5N' : function (k, m) {
  11578. return k / m;
  11579. },
  11580. 'p9w' : function (k, m) {
  11581. return k - m;
  11582. },
  11583. 't44' : function (k, m) {
  11584. return k * m;
  11585. },
  11586. 'q8r' : function (k, m) {
  11587. return k >= m;
  11588. },
  11589. 'x3r' : function (k, m) {
  11590. return k !== m;
  11591. },
  11592. 'A0B' : function (k, m) {
  11593. return k > m;
  11594. },
  11595. 'X7G' : function (k, m) {
  11596. return k === m;
  11597. },
  11598. 'e0u' : function (k, m) {
  11599. return k - m;
  11600. },
  11601. 'n6Q' : function (k, m) {
  11602. return k / m;
  11603. },
  11604. 'u5v' : function (k, m) {
  11605. return k < m;
  11606. },
  11607. 's79' : function (k, m) {
  11608. return k > m;
  11609. },
  11610. 'e2N' : function (k, m) {
  11611. return k / m;
  11612. },
  11613. 'H5V' : function (k, m) {
  11614. return k === m;
  11615. },
  11616. 'Q3q' : function (k, m) {
  11617. return k === m;
  11618. },
  11619. 'o8P' : function (k, m) {
  11620. return k < m;
  11621. },
  11622. 'v44' : function (k, m) {
  11623. return k * m;
  11624. },
  11625. 'P6' : function (k, m) {
  11626. return k * m;
  11627. },
  11628. 'u8L' : function (k, m) {
  11629. return k !== m;
  11630. },
  11631. 'r2I' : function (k, m) {
  11632. return k - m;
  11633. },
  11634. 'P0h' : function (k, m) {
  11635. return k === m;
  11636. },
  11637. 'v3A' : function (k, m) {
  11638. return k - m;
  11639. },
  11640. 'A8e' : function (k, m) {
  11641. return k === m;
  11642. },
  11643. 'j1l' : function (k, m) {
  11644. return k * m;
  11645. },
  11646. 'y1J' : function (k, m) {
  11647. return k - m;
  11648. },
  11649. 'w5w' : function (k, m) {
  11650. return k === m;
  11651. },
  11652. 'a5Q' : function (k, m) {
  11653. return k / m;
  11654. },
  11655. 'e4g' : function (k, m) {
  11656. return k * m;
  11657. },
  11658. 'u4g' : function (k, m) {
  11659. return k > m;
  11660. },
  11661. 'F2q' : function (k, m) {
  11662. return k | m;
  11663. },
  11664. 'X67' : function (k, m) {
  11665. return k >= m;
  11666. },
  11667. 'F6A' : function (k, m) {
  11668. return k > m;
  11669. },
  11670. 'F4o' : function (k, m) {
  11671. return k instanceof m;
  11672. },
  11673. 'V63' : function (k, m) {
  11674. return k - m;
  11675. },
  11676. 'F67' : function (k, m) {
  11677. return k - m;
  11678. },
  11679. 'B1u' : function (k, m) {
  11680. return k in m;
  11681. },
  11682. 'g6V' : function (k, m) {
  11683. return k > m;
  11684. },
  11685. 't5I' : function (k, m) {
  11686. return k | m;
  11687. },
  11688. 'e0d' : function (k, m) {
  11689. return k * m;
  11690. },
  11691. 'j9w' : function (k, m) {
  11692. return k < m;
  11693. },
  11694. 'M1b' : function (k, m, e) {
  11695. return k * m * e;
  11696. },
  11697. 'k43' : function (k, m) {
  11698. return k - m;
  11699. },
  11700. 'c5N' : function (k, m) {
  11701. return k !== m;
  11702. },
  11703. 'E5v' : function (k, m) {
  11704. return k in m;
  11705. },
  11706. 'N5B' : function (k, m, e) {
  11707. return k * m * e;
  11708. },
  11709. 'U6u' : function (k, m) {
  11710. return k in m;
  11711. },
  11712. 'h2w' : function (k, m) {
  11713. return k * m;
  11714. },
  11715. 'X7d' : function (k, m) {
  11716. return k * m;
  11717. },
  11718. 's5L' : function (k, m) {
  11719. return k * m;
  11720. },
  11721. 'N3R' : function (k, m) {
  11722. return k === m;
  11723. },
  11724. 'S69' : function (k, m) {
  11725. return k / m;
  11726. },
  11727. 'T9w' : function (k, m) {
  11728. return k < m;
  11729. },
  11730. 'n7G' : function (k, m) {
  11731. return k !== m;
  11732. },
  11733. 'T0q' : function (k, m) {
  11734. return k < m;
  11735. },
  11736. 'S1J' : function (k, m) {
  11737. return k == m;
  11738. },
  11739. 'R2h' : function (k, m) {
  11740. return k === m;
  11741. },
  11742. 'Y3u' : function (k, m) {
  11743. return k === m;
  11744. },
  11745. 'F7G' : function (k, m) {
  11746. return k % m;
  11747. },
  11748. 'C0o' : function (k, m) {
  11749. return k > m;
  11750. },
  11751. 'D3L' : function (k, m) {
  11752. return k === m;
  11753. },
  11754. 'l9e' : function (k, m) {
  11755. return k > m;
  11756. },
  11757. 'V64' : function (k, m) {
  11758. return k < m;
  11759. },
  11760. 'u3e' : function (k, m) {
  11761. return k <= m;
  11762. },
  11763. 'L7h' : function (k, m) {
  11764. return k === m;
  11765. },
  11766. 'o0N' : function (k, m) {
  11767. return k === m;
  11768. },
  11769. 'n0v' : function (k, m) {
  11770. return k instanceof m;
  11771. },
  11772. 'o0r' : function (k, m) {
  11773. return k - m;
  11774. },
  11775. 'M0v' : function (k, m) {
  11776. return k instanceof m;
  11777. },
  11778. 'i5P' : function (k, m) {
  11779. return k !== m;
  11780. },
  11781. 'R76' : function (k, m) {
  11782. return k * m;
  11783. },
  11784. 'F8q' : function (k, m) {
  11785. return k > m;
  11786. },
  11787. 'j0o' : function (k, m) {
  11788. return k & m;
  11789. },
  11790. 'W8e' : function (k, m) {
  11791. return k - m;
  11792. },
  11793. 'X49' : function (k, m) {
  11794. return k < m;
  11795. },
  11796. 'E7V' : function (k, m) {
  11797. return k << m;
  11798. },
  11799. 'L47' : function (k, m) {
  11800. return k < m;
  11801. },
  11802. 'T69' : function (k, m) {
  11803. return k / m;
  11804. },
  11805. 'Q2d' : function (k, m) {
  11806. return k < m;
  11807. },
  11808. 'L7I' : function (k, m) {
  11809. return k < m;
  11810. },
  11811. 'W93' : function (k, m) {
  11812. return k !== m;
  11813. },
  11814. 'o6D' : function (k, m) {
  11815. return k > m;
  11816. },
  11817. 'L7e' : function (k, m) {
  11818. return k !== m;
  11819. },
  11820. 'c8B' : function (k, m) {
  11821. return k === m;
  11822. },
  11823. 'r0e' : function (k, m) {
  11824. return k >= m;
  11825. },
  11826. 'b27' : function (k, m) {
  11827. return k === m;
  11828. },
  11829. 'w2L' : function (k, m) {
  11830. return k * m;
  11831. },
  11832. 'h7w' : function (k, m) {
  11833. return k < m;
  11834. },
  11835. 'F7u' : function (k, m, e) {
  11836. return k - m + e;
  11837. },
  11838. 'n9d' : function (k, m) {
  11839. return k - m;
  11840. },
  11841. 'p6o' : function (k, m, e, o) {
  11842. return k * m * e / o;
  11843. },
  11844. 'b6u' : function (k, m) {
  11845. return k == m;
  11846. },
  11847. 'c1d' : function (k, m) {
  11848. return k < m;
  11849. },
  11850. 'Z5B' : function (k, m) {
  11851. return k / m;
  11852. },
  11853. 't49' : function (k, m) {
  11854. return k >= m;
  11855. },
  11856. 'G2g' : function (k, m) {
  11857. return k * m;
  11858. },
  11859. 'X3B' : function (k, m, e) {
  11860. return k * m / e;
  11861. },
  11862. 'y6L' : function (k, m) {
  11863. return k !== m;
  11864. },
  11865. 'f5N' : function (k, m) {
  11866. return k & m;
  11867. },
  11868. 'U9l' : function (k, m) {
  11869. return k > m;
  11870. },
  11871. 'V6d' : function (k, m) {
  11872. return k * m;
  11873. },
  11874. 'c5A' : function (k, m) {
  11875. return k >>> m;
  11876. },
  11877. 'X9G' : function (k, m) {
  11878. return k > m;
  11879. },
  11880. 'd8r' : function (k, m) {
  11881. return k - m;
  11882. },
  11883. 'k9L' : function (k, m) {
  11884. return k < m;
  11885. },
  11886. 'o33' : function (k, m) {
  11887. return k < m;
  11888. },
  11889. 'M5r' : function (k, m) {
  11890. return k < m;
  11891. },
  11892. 'f5q' : function (k, m) {
  11893. return k % m;
  11894. },
  11895. 'g1P' : function (k, m) {
  11896. return k * m;
  11897. },
  11898. 'y5g' : function (k, m, e) {
  11899. return k * m * e;
  11900. },
  11901. 'L7B' : function (k, m) {
  11902. return k < m;
  11903. },
  11904. 'A0G' : function (k, m) {
  11905. return k !== m;
  11906. },
  11907. 'L9L' : function (k, m) {
  11908. return k < m;
  11909. },
  11910. 'b2d' : function (k, m) {
  11911. return k === m;
  11912. },
  11913. 'm97' : function (k, m) {
  11914. return k > m;
  11915. },
  11916. 'g6w' : function (k, m) {
  11917. return k < m;
  11918. },
  11919. 'y1R' : function (k, m) {
  11920. return k - m;
  11921. },
  11922. 'n43' : function (k, m) {
  11923. return k * m;
  11924. },
  11925. 'z1' : function (k, m) {
  11926. return k % m;
  11927. },
  11928. 'O64' : function (k, m) {
  11929. return k < m;
  11930. },
  11931. 'J6I' : function (k, m) {
  11932. return k > m;
  11933. },
  11934. 'w99' : function (k, m) {
  11935. return k === m;
  11936. },
  11937. 'Z6v' : function (k, m) {
  11938. return k === m;
  11939. },
  11940. 'P2N' : function (k, m) {
  11941. return k * m;
  11942. },
  11943. 'H7d' : function (k, m) {
  11944. return k * m;
  11945. },
  11946. 'V7B' : function (k, m) {
  11947. return k * m;
  11948. },
  11949. 'S16' : function (k, m) {
  11950. return k <= m;
  11951. },
  11952. 'G1I' : function (k, m) {
  11953. return k instanceof m;
  11954. },
  11955. 'U8o' : function (k, m) {
  11956. return k * m;
  11957. },
  11958. 'N1h' : function (k, m) {
  11959. return k * m;
  11960. },
  11961. 'C1Q' : function (k, m) {
  11962. return k === m;
  11963. },
  11964. 'I5h' : function (k, m) {
  11965. return k !== m;
  11966. },
  11967. 'D6v' : function (k, m) {
  11968. return k * m;
  11969. },
  11970. 's0N' : function (k, m) {
  11971. return k == m;
  11972. },
  11973. 'x39' : function (k, m) {
  11974. return k - m;
  11975. },
  11976. 'q14' : function (k, m) {
  11977. return k > m;
  11978. },
  11979. 's3D' : function (k, m) {
  11980. return k * m;
  11981. },
  11982. 'O4l' : function (k, m) {
  11983. return k * m;
  11984. },
  11985. 'W6v' : function (k, m) {
  11986. return k * m;
  11987. },
  11988. 'Q0r' : function (k, m) {
  11989. return k | m;
  11990. },
  11991. 'l3u' : function (k, m) {
  11992. return k !== m;
  11993. },
  11994. 'T7Q' : function (k, m) {
  11995. return k < m;
  11996. },
  11997. 'P6g' : function (k, m) {
  11998. return k < m;
  11999. },
  12000. 'R4v' : function (k, m) {
  12001. return k / m;
  12002. },
  12003. 'D64' : function (k, m) {
  12004. return k * m;
  12005. },
  12006. 'D5l' : function (k, m) {
  12007. return k | m;
  12008. },
  12009. 'g9V' : function (k, m) {
  12010. return k * m;
  12011. },
  12012. 'g1' : function (k, m) {
  12013. return k * m;
  12014. },
  12015. 'H6r' : function (k, m) {
  12016. return k !== m;
  12017. },
  12018. 'h6A' : function (k, m) {
  12019. return k === m;
  12020. },
  12021. 'h8R' : function (k, m) {
  12022. return k >= m;
  12023. },
  12024. 'M9e' : function (k, m) {
  12025. return k === m;
  12026. },
  12027. 'n8J' : function (k, m) {
  12028. return k < m;
  12029. },
  12030. 'W2G' : function (k, m) {
  12031. return k === m;
  12032. },
  12033. 'j3D' : function (k, m) {
  12034. return k * m;
  12035. },
  12036. 'c0N' : function (k, m) {
  12037. return k * m;
  12038. },
  12039. 'z6b' : function (k, m) {
  12040. return k instanceof m;
  12041. },
  12042. 'J0R' : function (k, m) {
  12043. return k === m;
  12044. },
  12045. 'f8G' : function (k, m) {
  12046. return k === m;
  12047. },
  12048. 'C1o' : function (k, m) {
  12049. return k - m;
  12050. },
  12051. 'X5b' : function (k, m) {
  12052. return k > m;
  12053. },
  12054. 'd1v' : function (k, m) {
  12055. return k > m;
  12056. },
  12057. 'z6I' : function (k, m) {
  12058. return k > m;
  12059. },
  12060. 'e3e' : function (k, m) {
  12061. return k >= m;
  12062. },
  12063. 'u2L' : function (k, m) {
  12064. return k * m;
  12065. },
  12066. 'q8o' : function (k, m) {
  12067. return k !== m;
  12068. },
  12069. 'h4B' : function (k, m) {
  12070. return k < m;
  12071. },
  12072. 'Q19' : function (k, m, e) {
  12073. return k / m * e;
  12074. },
  12075. 'I44' : function (k, m) {
  12076. return k * m;
  12077. },
  12078. 'x5B' : function (k, m, e, o) {
  12079. return k * m * e / o;
  12080. },
  12081. 'z5N' : function (k, m) {
  12082. return k >>> m;
  12083. },
  12084. 'v3g' : function (k, m) {
  12085. return k - m;
  12086. },
  12087. 'X0v' : function (k, m) {
  12088. return k instanceof m;
  12089. },
  12090. 'b4h' : function (k, m) {
  12091. return k / m;
  12092. },
  12093. 'o7v' : function (k, m) {
  12094. return k * m;
  12095. },
  12096. 'O2G' : function (k, m) {
  12097. return k !== m;
  12098. },
  12099. 'q4A' : function (k, m) {
  12100. return k * m;
  12101. },
  12102. 'l7L' : function (k, m) {
  12103. return k / m;
  12104. },
  12105. 'O17' : function (k, m) {
  12106. return k / m;
  12107. },
  12108. 'O5Q' : function (k, m) {
  12109. return k < m;
  12110. },
  12111. 'r9N' : function (k, m) {
  12112. return k === m;
  12113. },
  12114. 'I23' : function (k, m) {
  12115. return k * m;
  12116. },
  12117. 'D6R' : function (k, m) {
  12118. return k - m;
  12119. },
  12120. 'X3w' : function (k, m) {
  12121. return k < m;
  12122. },
  12123. 'z43' : function (k, m) {
  12124. return k * m;
  12125. },
  12126. 'W7g' : function (k, m) {
  12127. return k | m;
  12128. },
  12129. 'j39' : function (k, m) {
  12130. return k - m;
  12131. },
  12132. 'B47' : function (k, m) {
  12133. return k === m;
  12134. },
  12135. 'v4A' : function (k, m) {
  12136. return k > m;
  12137. },
  12138. 'L57' : function (k, m) {
  12139. return k < m;
  12140. },
  12141. 'f6D' : function (k, m) {
  12142. return k > m;
  12143. },
  12144. 'x4I' : function (k, m) {
  12145. return k === m;
  12146. },
  12147. 'X59' : function (k, m) {
  12148. return k in m;
  12149. },
  12150. 'm99' : function (k, m) {
  12151. return k < m;
  12152. },
  12153. 'e96' : function (k, m) {
  12154. return k > m;
  12155. },
  12156. 'm6G' : function (k, m) {
  12157. return k >= m;
  12158. },
  12159. 'g9q' : function (k, m) {
  12160. return k > m;
  12161. },
  12162. 'k6r' : function (k, m) {
  12163. return k - m;
  12164. },
  12165. 'a64' : function (k, m) {
  12166. return k > m;
  12167. },
  12168. 'o4I' : function (k, m) {
  12169. return k < m;
  12170. },
  12171. 'V4Q' : function (k, m) {
  12172. return k > m;
  12173. },
  12174. 'S5A' : function (k, m) {
  12175. return k * m;
  12176. },
  12177. 'S7v' : function (k, m) {
  12178. return k - m;
  12179. },
  12180. 'U0N' : function (k, m) {
  12181. return k < m;
  12182. },
  12183. 't59' : function (k, m, e) {
  12184. return k / m * e;
  12185. },
  12186. 'I0b' : function (k, m) {
  12187. return k >= m;
  12188. },
  12189. 'S87' : function (k, m) {
  12190. return k < m;
  12191. },
  12192. 'n7e' : function (k, m) {
  12193. return k < m;
  12194. },
  12195. 'I3q' : function (k, m) {
  12196. return k <= m;
  12197. },
  12198. 'k4o' : function (k, m) {
  12199. return k === m;
  12200. },
  12201. 'd39' : function (k, m) {
  12202. return k - m;
  12203. },
  12204. 'e1P' : function (k, m) {
  12205. return k * m;
  12206. },
  12207. 'J7w' : function (k, m) {
  12208. return k !== m;
  12209. },
  12210. 'x0r' : function (k, m) {
  12211. return k !== m;
  12212. },
  12213. 'x5L' : function (k, m) {
  12214. return k !== m;
  12215. },
  12216. 'f3A' : function (k, m) {
  12217. return k - m;
  12218. },
  12219. 'y44' : function (k, m) {
  12220. return k * m;
  12221. },
  12222. 'x63' : function (k, m) {
  12223. return k >= m;
  12224. },
  12225. 'R5g' : function (k, m) {
  12226. return k * m;
  12227. },
  12228. 'Y2w' : function (k, m) {
  12229. return k === m;
  12230. },
  12231. 'C1l' : function (k, m) {
  12232. return k / m;
  12233. },
  12234. 'o7R' : function (k, m) {
  12235. return k / m;
  12236. },
  12237. 'S2o' : function (k, m) {
  12238. return k < m;
  12239. },
  12240. 'g9A' : function (k, m) {
  12241. return k / m;
  12242. },
  12243. 'A1A' : function (k, m) {
  12244. return k < m;
  12245. },
  12246. 'm2u' : function (k, m) {
  12247. return k !== m;
  12248. },
  12249. 'w0I' : function (k, m) {
  12250. return k / m;
  12251. },
  12252. 'A2N' : function (k, m) {
  12253. return k / m;
  12254. },
  12255. 'E3L' : function (k, m) {
  12256. return k / m;
  12257. },
  12258. 'R6' : function (k, m) {
  12259. return k * m;
  12260. },
  12261. 'D9q' : function (k, m) {
  12262. return k * m;
  12263. },
  12264. 'R19' : function (k, m) {
  12265. return k - m;
  12266. },
  12267. 'g5w' : function (k, m) {
  12268. return k * m;
  12269. },
  12270. 'v3N' : function (k, m) {
  12271. return k - m;
  12272. },
  12273. 'I1D' : function (k, m) {
  12274. return k * m;
  12275. },
  12276. 'U5L' : function (k, m) {
  12277. return k !== m;
  12278. },
  12279. 'm89' : function (k, m) {
  12280. return k > m;
  12281. },
  12282. 'p7Q' : function (k, m) {
  12283. return k === m;
  12284. },
  12285. 'T1l' : function (k, m) {
  12286. return k | m;
  12287. },
  12288. 'K1u' : function (k, m) {
  12289. return k === m;
  12290. },
  12291. 'Z4v' : function (k, m) {
  12292. return k === m;
  12293. },
  12294. 'e6q' : function (k, m) {
  12295. return k !== m;
  12296. },
  12297. 't5u' : function (k, m) {
  12298. return k > m;
  12299. },
  12300. 'e5v' : function (k, m) {
  12301. return k in m;
  12302. },
  12303. 'I33' : function (k, m) {
  12304. return k > m;
  12305. },
  12306. 'O0B' : function (k, m) {
  12307. return k > m;
  12308. },
  12309. 'W4u' : function (k, m) {
  12310. return k - m;
  12311. },
  12312. 'z1h' : function (k, m) {
  12313. return k !== m;
  12314. },
  12315. 'X8G' : function (k, m) {
  12316. return k === m;
  12317. },
  12318. 'C5L' : function (k, m) {
  12319. return k !== m;
  12320. },
  12321. 'N6' : function (k, m) {
  12322. return k * m;
  12323. },
  12324. 'o26' : function (k, m) {
  12325. return k < m;
  12326. },
  12327. 'a0L' : function (k, m) {
  12328. return k == m;
  12329. },
  12330. 't1q' : function (k, m) {
  12331. return k / m;
  12332. },
  12333. 'C4I' : function (k, m) {
  12334. return k === m;
  12335. },
  12336. 'F5r' : function (k, m) {
  12337. return k !== m;
  12338. },
  12339. 'b06' : function (k, m) {
  12340. return k === m;
  12341. },
  12342. 'B3J' : function (k, m) {
  12343. return k > m;
  12344. },
  12345. 'U6h' : function (k, m) {
  12346. return k / m;
  12347. },
  12348. 'u6v' : function (k, m) {
  12349. return k * m;
  12350. },
  12351. 'S1b' : function (k, m) {
  12352. return k * m;
  12353. },
  12354. 'g19' : function (k, m) {
  12355. return k | m;
  12356. },
  12357. 'q7l' : function (k, m) {
  12358. return k > m;
  12359. },
  12360. 'L6A' : function (k, m) {
  12361. return k > m;
  12362. },
  12363. 's86' : function (k, m) {
  12364. return k === m;
  12365. },
  12366. 'Q07' : function (k, m) {
  12367. return k - m;
  12368. },
  12369. 's0V' : function (k, m) {
  12370. return k - m;
  12371. },
  12372. 'S8A' : function (k, m) {
  12373. return k - m;
  12374. },
  12375. 'R0d' : function (k, m) {
  12376. return k * m;
  12377. },
  12378. 'c7P' : function (k, m) {
  12379. return k * m;
  12380. },
  12381. 'F0P' : function (k, m) {
  12382. return k > m;
  12383. },
  12384. 'Q1v' : function (k, m) {
  12385. return k === m;
  12386. },
  12387. 'l4N' : function (k, m) {
  12388. return k != m;
  12389. },
  12390. 'x2b' : function (k, m, e) {
  12391. return k * m / e;
  12392. },
  12393. 'T0b' : function (k, m) {
  12394. return k !== m;
  12395. },
  12396. 'l7e' : function (k, m) {
  12397. return k !== m;
  12398. },
  12399. 's0q' : function (k, m) {
  12400. return k - m;
  12401. },
  12402. 'X4o' : function (k, m) {
  12403. return k == m;
  12404. },
  12405. 'W5R' : function (k, m) {
  12406. return k >= m;
  12407. },
  12408. 'n3g' : function (k, m, e) {
  12409. return k / m * e;
  12410. },
  12411. 'F5N' : function (k, m) {
  12412. return k >>> m;
  12413. },
  12414. 'I9l' : function (k, m) {
  12415. return k > m;
  12416. },
  12417. 'v5u' : function (k, m) {
  12418. return k !== m;
  12419. },
  12420. 'z7I' : function (k, m) {
  12421. return k / m;
  12422. },
  12423. 'y1B' : function (k, m) {
  12424. return k - m;
  12425. },
  12426. 'r2e' : function (k, m) {
  12427. return k & m;
  12428. },
  12429. 's6u' : function (k, m) {
  12430. return k == m;
  12431. },
  12432. 'I36' : function (k, m) {
  12433. return k * m;
  12434. },
  12435. 'T63' : function (k, m) {
  12436. return k * m;
  12437. },
  12438. 'u4J' : function (k, m) {
  12439. return k < m;
  12440. },
  12441. 'J8V' : function (k, m) {
  12442. return k - m;
  12443. },
  12444. 'h1D' : function (k, m) {
  12445. return k * m;
  12446. },
  12447. 'p1R' : function (k, m) {
  12448. return k - m;
  12449. },
  12450. 'X0R' : function (k, m) {
  12451. return k * m;
  12452. },
  12453. 'h6r' : function (k, m) {
  12454. return k !== m;
  12455. },
  12456. 'x0V' : function (k, m) {
  12457. return k * m;
  12458. },
  12459. 'l1D' : function (k, m) {
  12460. return k * m;
  12461. },
  12462. 'T1R' : function (k, m) {
  12463. return k === m;
  12464. },
  12465. 'K46' : function (k, m) {
  12466. return k - m;
  12467. },
  12468. 'U1R' : function (k, m) {
  12469. return k * m;
  12470. },
  12471. 'y2o' : function (k, m) {
  12472. return k <= m;
  12473. },
  12474. 'Y4V' : function (k, m) {
  12475. return k * m;
  12476. },
  12477. 'w9P' : function (k, m) {
  12478. return k * m;
  12479. },
  12480. 'N7I' : function (k, m) {
  12481. return k !== m;
  12482. },
  12483. 'l4P' : function (k, m, e, o) {
  12484. return k * m * e * o;
  12485. },
  12486. 'A2A' : function (k, m, e) {
  12487. return k - m + e;
  12488. },
  12489. 'T1Q' : function (k, m) {
  12490. return k === m;
  12491. },
  12492. 'c39' : function (k, m) {
  12493. return k / m;
  12494. },
  12495. 'n7I' : function (k, m) {
  12496. return k % m;
  12497. },
  12498. 'x07' : function (k, m) {
  12499. return k < m;
  12500. },
  12501. 'C3A' : function (k, m) {
  12502. return k * m;
  12503. },
  12504. 'V9N' : function (k, m) {
  12505. return k >>> m;
  12506. },
  12507. 'R04' : function (k, m) {
  12508. return k === m;
  12509. },
  12510. 'V2B' : function (k, m, e) {
  12511. return k * m * e;
  12512. },
  12513. 'Z8D' : function (k, m) {
  12514. return k <= m;
  12515. },
  12516. 'g8e' : function (k, m) {
  12517. return k / m;
  12518. },
  12519. 'a3G' : function (k, m) {
  12520. return k == m;
  12521. },
  12522. 'e1V' : function (k, m) {
  12523. return k * m;
  12524. },
  12525. 'M7L' : function (k, m) {
  12526. return k * m;
  12527. },
  12528. 'F1L' : function (k, m) {
  12529. return k - m;
  12530. },
  12531. 'E7D' : function (k, m) {
  12532. return k * m;
  12533. },
  12534. 'V53' : function (k, m) {
  12535. return k !== m;
  12536. },
  12537. 'x3w' : function (k, m, e) {
  12538. return k * m * e;
  12539. },
  12540. 'S0b' : function (k, m) {
  12541. return k >= m;
  12542. },
  12543. 'm73' : function (k, m) {
  12544. return k - m;
  12545. },
  12546. 'F1I' : function (k, m) {
  12547. return k > m;
  12548. },
  12549. 'o3N' : function (k, m) {
  12550. return k - m;
  12551. },
  12552. 'I0V' : function (k, m) {
  12553. return k === m;
  12554. },
  12555. 'M8R' : function (k, m) {
  12556. return k >= m;
  12557. },
  12558. 'J8N' : function (k, m) {
  12559. return k >= m;
  12560. },
  12561. 'N6V' : function (k, m, e) {
  12562. return k * m / e;
  12563. },
  12564. 'e6G' : function (k, m) {
  12565. return k > m;
  12566. },
  12567. 'y1l' : function (k, m) {
  12568. return k / m;
  12569. },
  12570. 'l2w' : function (k, m) {
  12571. return k > m;
  12572. },
  12573. 'x6D' : function (k, m, e) {
  12574. return k * m * e;
  12575. },
  12576. 'W76' : function (k, m) {
  12577. return k >= m;
  12578. },
  12579. 'p87' : function (k, m) {
  12580. return k / m;
  12581. },
  12582. 'P8D' : function (k, m) {
  12583. return k > m;
  12584. },
  12585. 'H4o' : function (k, m) {
  12586. return k instanceof m;
  12587. },
  12588. 'j06' : function (k, m) {
  12589. return k !== m;
  12590. },
  12591. 'd8A' : function (k, m) {
  12592. return k < m;
  12593. },
  12594. 'V6q' : function (k, m) {
  12595. return k > m;
  12596. },
  12597. 'm5P' : function (k, m) {
  12598. return k - m;
  12599. },
  12600. 'b1B' : function (k, m) {
  12601. return k * m;
  12602. },
  12603. 'p39' : function (k, m) {
  12604. return k === m;
  12605. },
  12606. 'h9d' : function (k, m) {
  12607. return k !== m;
  12608. },
  12609. 'w89' : function (k, m) {
  12610. return k === m;
  12611. },
  12612. 'X7h' : function (k, m) {
  12613. return k === m;
  12614. },
  12615. 'a2A' : function (k, m) {
  12616. return k * m;
  12617. },
  12618. 'q1e' : function (k, m) {
  12619. return k & m;
  12620. },
  12621. 'H57' : function (k, m) {
  12622. return k < m;
  12623. },
  12624. 'c7v' : function (k, m) {
  12625. return k === m;
  12626. },
  12627. 'Z9D' : function (k, m) {
  12628. return k * m;
  12629. },
  12630. 'r9o' : function (k, m) {
  12631. return k == m;
  12632. },
  12633. 'i4l' : function (k, m) {
  12634. return k === m;
  12635. },
  12636. 'l6A' : function (k, m) {
  12637. return k === m;
  12638. },
  12639. 'K7G' : function (k, m) {
  12640. return k >= m;
  12641. },
  12642. 'e6g' : function (k, m) {
  12643. return k * m;
  12644. },
  12645. 'D1V' : function (k, m) {
  12646. return k < m;
  12647. },
  12648. 'j93' : function (k, m) {
  12649. return k === m;
  12650. },
  12651. 'd63' : function (k, m, e) {
  12652. return k / m / e;
  12653. },
  12654. 'w4u' : function (k, m) {
  12655. return k / m;
  12656. },
  12657. 'I4e' : function (k, m) {
  12658. return k !== m;
  12659. },
  12660. 't13' : function (k, m) {
  12661. return k * m;
  12662. },
  12663. 'B43' : function (k, m) {
  12664. return k > m;
  12665. },
  12666. 't8Q' : function (k, m) {
  12667. return k >= m;
  12668. },
  12669. 'U5e' : function (k, m) {
  12670. return k > m;
  12671. },
  12672. 's94' : function (k, m) {
  12673. return k < m;
  12674. },
  12675. 'H9L' : function (k, m) {
  12676. return k < m;
  12677. },
  12678. 's24' : function (k, m) {
  12679. return k - m;
  12680. },
  12681. 'A6v' : function (k, m) {
  12682. return k > m;
  12683. },
  12684. 'a53' : function (k, m) {
  12685. return k - m;
  12686. },
  12687. 'R9V' : function (k, m) {
  12688. return k >= m;
  12689. },
  12690. 'h9h' : function (k, m) {
  12691. return k * m;
  12692. },
  12693. 'p0N' : function (k, m) {
  12694. return k === m;
  12695. },
  12696. 'n5r' : function (k, m) {
  12697. return k !== m;
  12698. },
  12699. 'W19' : function (k, m) {
  12700. return k | m;
  12701. },
  12702. 'c0q' : function (k, m) {
  12703. return k > m;
  12704. },
  12705. 'x4e' : function (k, m) {
  12706. return k > m;
  12707. },
  12708. 'y27' : function (k, m) {
  12709. return k / m;
  12710. },
  12711. 'm6v' : function (k, m) {
  12712. return k < m;
  12713. },
  12714. 'L83' : function (k, m) {
  12715. return k - m;
  12716. },
  12717. 'n1L' : function (k, m) {
  12718. return k / m;
  12719. },
  12720. 'd7u' : function (k, m) {
  12721. return k <= m;
  12722. },
  12723. 'x2V' : function (k, m) {
  12724. return k !== m;
  12725. },
  12726. 'q0A' : function (k, m) {
  12727. return k > m;
  12728. },
  12729. 'd3D' : function (k, m) {
  12730. return k * m;
  12731. },
  12732. 'D7q' : function (k, m) {
  12733. return k > m;
  12734. },
  12735. 'y0g' : function (k, m) {
  12736. return k - m;
  12737. },
  12738. 'Y56' : function (k, m) {
  12739. return k === m;
  12740. },
  12741. 'W9q' : function (k, m) {
  12742. return k === m;
  12743. },
  12744. 'i7D' : function (k, m) {
  12745. return k > m;
  12746. },
  12747. 's1g' : function (k, m) {
  12748. return k - m;
  12749. },
  12750. 'L4B' : function (k, m) {
  12751. return k === m;
  12752. },
  12753. 'm3d' : function (k, m) {
  12754. return k === m;
  12755. },
  12756. 'o7P' : function (k, m) {
  12757. return k < m;
  12758. },
  12759. 'e7r' : function (k, m) {
  12760. return k !== m;
  12761. },
  12762. 'b5' : function (k, m) {
  12763. return k * m;
  12764. },
  12765. 'j8B' : function (k, m) {
  12766. return k * m;
  12767. },
  12768. 'j6h' : function (k, m) {
  12769. return k - m;
  12770. },
  12771. 'R7q' : function (k, m) {
  12772. return k != m;
  12773. },
  12774. 'v8Q' : function (k, m) {
  12775. return k >= m;
  12776. },
  12777. 'K7I' : function (k, m) {
  12778. return k - m;
  12779. },
  12780. 'w2' : function (k, m) {
  12781. return k <= m;
  12782. },
  12783. 'n2b' : function (k, m) {
  12784. return k / m;
  12785. },
  12786. 'e0G' : function (k, m) {
  12787. return k < m;
  12788. },
  12789. 't6Q' : function (k, m) {
  12790. return k - m;
  12791. },
  12792. 'm7D' : function (k, m) {
  12793. return k * m;
  12794. },
  12795. 'z2l' : function (k, m) {
  12796. return k / m;
  12797. },
  12798. 'Q8e' : function (k, m) {
  12799. return k / m;
  12800. },
  12801. 'Z3L' : function (k, m) {
  12802. return k > m;
  12803. },
  12804. 'y3B' : function (k, m, e, o, n, u) {
  12805. return k * m * e * o * n * u;
  12806. },
  12807. 'F8J' : function (k, m) {
  12808. return k < m;
  12809. },
  12810. 'r5J' : function (k, m) {
  12811. return k - m;
  12812. },
  12813. 'L2l' : function (k, m) {
  12814. return k / m;
  12815. },
  12816. 'C1w' : function (k, m) {
  12817. return k === m;
  12818. },
  12819. 'n2Q' : function (k, m) {
  12820. return k / m;
  12821. },
  12822. 'F8G' : function (k, m) {
  12823. return k < m;
  12824. },
  12825. 'v8D' : function (k, m) {
  12826. return k <= m;
  12827. },
  12828. 'w14' : function (k, m) {
  12829. return k > m;
  12830. },
  12831. 'V6V' : function (k, m) {
  12832. return k < m;
  12833. },
  12834. 'o44' : function (k, m) {
  12835. return k * m;
  12836. },
  12837. 'u8u' : function (k, m) {
  12838. return k == m;
  12839. },
  12840. 't8D' : function (k, m) {
  12841. return k * m;
  12842. },
  12843. 'O6g' : function (k, m) {
  12844. return k - m;
  12845. },
  12846. 'y0b' : function (k, m) {
  12847. return k === m;
  12848. },
  12849. 'f8v' : function (k, m) {
  12850. return k >= m;
  12851. },
  12852. 'M1N' : function (k, m) {
  12853. return k === m;
  12854. },
  12855. 'w7V' : function (k, m) {
  12856. return k << m;
  12857. },
  12858. 'q5' : function (k, m) {
  12859. return k * m;
  12860. },
  12861. 'f9' : function (k, m) {
  12862. return k * m;
  12863. },
  12864. 'n6P' : function (k, m) {
  12865. return k > m;
  12866. },
  12867. 'u7D' : function (k, m) {
  12868. return k > m;
  12869. },
  12870. 'z8J' : function (k, m) {
  12871. return k >= m;
  12872. },
  12873. 'I16' : function (k, m) {
  12874. return k >= m;
  12875. },
  12876. 'W3G' : function (k, m) {
  12877. return k >= m;
  12878. },
  12879. 'W5g' : function (k, m, e) {
  12880. return k * m * e;
  12881. },
  12882. 'i9b' : function (k, m) {
  12883. return k >= m;
  12884. },
  12885. 'R3h' : function (k, m) {
  12886. return k - m;
  12887. },
  12888. 'L7G' : function (k, m) {
  12889. return k - m;
  12890. },
  12891. 'a1B' : function (k, m, e) {
  12892. return k * m * e;
  12893. },
  12894. 'V6' : function (k, m) {
  12895. return k * m;
  12896. },
  12897. 'e3G' : function (k, m) {
  12898. return k === m;
  12899. },
  12900. 'c0g' : function (k, m) {
  12901. return k / m;
  12902. },
  12903. 'r9r' : function (k, m) {
  12904. return k !== m;
  12905. },
  12906. 'V7o' : function (k, m) {
  12907. return k === m;
  12908. },
  12909. 'c5I' : function (k, m) {
  12910. return k < m;
  12911. },
  12912. 'l4D' : function (k, m) {
  12913. return k / m;
  12914. },
  12915. 'K9' : function (k, m) {
  12916. return k * m;
  12917. },
  12918. 'V5Q' : function (k, m) {
  12919. return k >= m;
  12920. },
  12921. 's9w' : function (k, m) {
  12922. return k === m;
  12923. },
  12924. 'w04' : function (k, m) {
  12925. return k < m;
  12926. },
  12927. 'G5D' : function (k, m) {
  12928. return k * m;
  12929. },
  12930. 'M9' : function (k, m) {
  12931. return k * m;
  12932. },
  12933. 'E0I' : function (k, m) {
  12934. return k / m;
  12935. },
  12936. 'D4u' : function (k, m) {
  12937. return k - m;
  12938. },
  12939. 'O6d' : function (k, m) {
  12940. return k / m;
  12941. },
  12942. 'y2A' : function (k, m) {
  12943. return k < m;
  12944. },
  12945. 'Q3g' : function (k, m, e) {
  12946. return k / m * e;
  12947. },
  12948. 'y13' : function (k, m) {
  12949. return k * m;
  12950. },
  12951. 'i0u' : function (k, m) {
  12952. return k / m;
  12953. },
  12954. 'c4e' : function (k, m) {
  12955. return k > m;
  12956. },
  12957. 'm64' : function (k, m) {
  12958. return k > m;
  12959. },
  12960. 'd3b' : function (k, m) {
  12961. return k - m;
  12962. },
  12963. 's3V' : function (k, m) {
  12964. return k - m;
  12965. },
  12966. 'g4Q' : function (k, m) {
  12967. return k > m;
  12968. },
  12969. 'f0v' : function (k, m) {
  12970. return k === m;
  12971. },
  12972. 'X8l' : function (k, m) {
  12973. return k >= m;
  12974. },
  12975. 't9w' : function (k, m) {
  12976. return k > m;
  12977. },
  12978. 'd0D' : function (k, m) {
  12979. return k * m;
  12980. },
  12981. 'Z9q' : function (k, m) {
  12982. return k * m;
  12983. },
  12984. 'L9d' : function (k, m) {
  12985. return k !== m;
  12986. },
  12987. 'v07' : function (k, m) {
  12988. return k > m;
  12989. },
  12990. 'Z7D' : function (k, m) {
  12991. return k > m;
  12992. },
  12993. 'C7v' : function (k, m) {
  12994. return k - m;
  12995. },
  12996. 'y5d' : function (k, m, e) {
  12997. return k * m * e;
  12998. },
  12999. 'z6r' : function (k, m) {
  13000. return k - m;
  13001. },
  13002. 'a2I' : function (k, m) {
  13003. return k === m;
  13004. },
  13005. 'q33' : function (k, m) {
  13006. return k * m;
  13007. },
  13008. 'G84' : function (k, m) {
  13009. return k > m;
  13010. },
  13011. 'x2A' : function (k, m) {
  13012. return k^m;
  13013. },
  13014. 'b26' : function (k, m) {
  13015. return k <= m;
  13016. },
  13017. 'j0b' : function (k, m) {
  13018. return k instanceof m;
  13019. },
  13020. 'j1Q' : function (k, m) {
  13021. return k === m;
  13022. },
  13023. 'D1P' : function (k, m) {
  13024. return k * m;
  13025. },
  13026. 'r7o' : function (k, m) {
  13027. return k >>> m;
  13028. },
  13029. 'Y2J' : function (k, m) {
  13030. return k * m;
  13031. },
  13032. 'Y67' : function (k, m) {
  13033. return k - m;
  13034. },
  13035. 'l8w' : function (k, m) {
  13036. return k !== m;
  13037. },
  13038. 'v6B' : function (k, m) {
  13039. return k < m;
  13040. },
  13041. 'O6w' : function (k, m) {
  13042. return k < m;
  13043. },
  13044. 'F5d' : function (k, m) {
  13045. return k * m;
  13046. },
  13047. 'U16' : function (k, m) {
  13048. return k * m;
  13049. },
  13050. 'R77' : function (k, m) {
  13051. return k === m;
  13052. },
  13053. 'B2v' : function (k, m) {
  13054. return k === m;
  13055. },
  13056. 'i2N' : function (k, m) {
  13057. return k !== m;
  13058. },
  13059. 'z5V' : function (k, m) {
  13060. return k === m;
  13061. },
  13062. 'j4L' : function (k, m) {
  13063. return k >= m;
  13064. },
  13065. 'Z5D' : function (k, m) {
  13066. return k >= m;
  13067. },
  13068. 'V9r' : function (k, m) {
  13069. return k !== m;
  13070. },
  13071. 'v2V' : function (k, m) {
  13072. return k * m;
  13073. },
  13074. 'v4L' : function (k, m) {
  13075. return k - m;
  13076. },
  13077. 'I8r' : function (k, m) {
  13078. return k instanceof m;
  13079. },
  13080. 'X09' : function (k, m) {
  13081. return k * m;
  13082. },
  13083. 'E89' : function (k, m) {
  13084. return k < m;
  13085. },
  13086. 'C27' : function (k, m) {
  13087. return k === m;
  13088. },
  13089. 'Y57' : function (k, m) {
  13090. return k * m;
  13091. },
  13092. 'X13' : function (k, m) {
  13093. return k * m;
  13094. },
  13095. 'X3v' : function (k, m) {
  13096. return k < m;
  13097. },
  13098. 'J83' : function (k, m) {
  13099. return k - m;
  13100. },
  13101. 'f9B' : function (k, m) {
  13102. return k < m;
  13103. },
  13104. 'D17' : function (k, m) {
  13105. return k - m;
  13106. },
  13107. 'W89' : function (k, m) {
  13108. return k !== m;
  13109. },
  13110. 'd37' : function (k, m) {
  13111. return k >= m;
  13112. },
  13113. 'f56' : function (k, m) {
  13114. return k * m;
  13115. },
  13116. 'g0h' : function (k, m) {
  13117. return k === m;
  13118. },
  13119. 'a2B' : function (k, m, e, o) {
  13120. return k * m * e / o;
  13121. },
  13122. 'h8J' : function (k, m) {
  13123. return k < m;
  13124. },
  13125. 'C07' : function (k, m) {
  13126. return k < m;
  13127. },
  13128. 'E7q' : function (k, m) {
  13129. return k != m;
  13130. },
  13131. 'G8d' : function (k, m) {
  13132. return k !== m;
  13133. },
  13134. 'z9G' : function (k, m) {
  13135. return k === m;
  13136. },
  13137. 'Q39' : function (k, m) {
  13138. return k / m;
  13139. },
  13140. 'O8' : function (k, m) {
  13141. return k !== m;
  13142. },
  13143. 'y16' : function (k, m) {
  13144. return k === m;
  13145. },
  13146. 'w6q' : function (k, m) {
  13147. return k | m;
  13148. },
  13149. 'B1o' : function (k, m) {
  13150. return k === m;
  13151. },
  13152. 'M7B' : function (k, m) {
  13153. return k * m;
  13154. },
  13155. 'Y3Q' : function (k, m) {
  13156. return k < m;
  13157. },
  13158. 'i0h' : function (k, m) {
  13159. return k > m;
  13160. },
  13161. 'U63' : function (k, m) {
  13162. return k * m;
  13163. },
  13164. 'q6L' : function (k, m) {
  13165. return k - m;
  13166. },
  13167. 'M6r' : function (k, m) {
  13168. return k instanceof m;
  13169. },
  13170. 'J8v' : function (k, m) {
  13171. return k - m;
  13172. },
  13173. 'Q9v' : function (k, m) {
  13174. return k in m;
  13175. },
  13176. 'e1b' : function (k, m, e) {
  13177. return k * m * e;
  13178. },
  13179. 'N5V' : function (k, m) {
  13180. return k !== m;
  13181. },
  13182. 'i77' : function (k, m) {
  13183. return k > m;
  13184. },
  13185. 'c06' : function (k, m) {
  13186. return k < m;
  13187. },
  13188. 'B2J' : function (k, m) {
  13189. return k * m;
  13190. },
  13191. 'x2d' : function (k, m) {
  13192. return k < m;
  13193. },
  13194. 'y5h' : function (k, m) {
  13195. return k === m;
  13196. },
  13197. 't07' : function (k, m) {
  13198. return k === m;
  13199. },
  13200. 'd9l' : function (k, m) {
  13201. return k > m;
  13202. },
  13203. 'P2G' : function (k, m) {
  13204. return k == m;
  13205. },
  13206. 'G9B' : function (k, m) {
  13207. return k * m;
  13208. },
  13209. 'E0h' : function (k, m) {
  13210. return k > m;
  13211. },
  13212. 'y0D' : function (k, m) {
  13213. return k * m;
  13214. },
  13215. 'O2B' : function (k, m) {
  13216. return k > m;
  13217. },
  13218. 'i5J' : function (k, m) {
  13219. return k - m;
  13220. },
  13221. 's8I' : function (k, m) {
  13222. return k > m;
  13223. },
  13224. 'Z34' : function (k, m) {
  13225. return k - m;
  13226. },
  13227. 'Y47' : function (k, m) {
  13228. return k >= m;
  13229. },
  13230. 'K1I' : function (k, m) {
  13231. return k > m;
  13232. },
  13233. 'j0r' : function (k, m) {
  13234. return k === m;
  13235. },
  13236. 'W2u' : function (k, m) {
  13237. return k === m;
  13238. },
  13239. 'u9N' : function (k, m) {
  13240. return k === m;
  13241. },
  13242. 'c1J' : function (k, m) {
  13243. return k - m;
  13244. },
  13245. 'r5D' : function (k, m) {
  13246. return k instanceof m;
  13247. },
  13248. 'u5e' : function (k, m) {
  13249. return k === m;
  13250. },
  13251. 'P34' : function (k, m) {
  13252. return k - m;
  13253. },
  13254. 'S63' : function (k, m) {
  13255. return k * m;
  13256. },
  13257. 'X7I' : function (k, m) {
  13258. return k - m;
  13259. },
  13260. 'C8o' : function (k, m) {
  13261. return k !== m;
  13262. },
  13263. 'X6D' : function (k, m) {
  13264. return k <= m;
  13265. },
  13266. 'm5w' : function (k, m) {
  13267. return k === m;
  13268. },
  13269. 'o1d' : function (k, m) {
  13270. return k > m;
  13271. },
  13272. 'x6B' : function (k, m) {
  13273. return k > m;
  13274. },
  13275. 'L5q' : function (k, m) {
  13276. return k !== m;
  13277. },
  13278. 'q8e' : function (k, m) {
  13279. return k > m;
  13280. },
  13281. 'R2u' : function (k, m) {
  13282. return k - m;
  13283. },
  13284. 'Y7A' : function (k, m) {
  13285. return k * m;
  13286. },
  13287. 'o8b' : function (k, m) {
  13288. return k != m;
  13289. },
  13290. 'O34' : function (k, m) {
  13291. return k / m;
  13292. },
  13293. 'I9w' : function (k, m) {
  13294. return k < m;
  13295. },
  13296. 'y4e' : function (k, m) {
  13297. return k >= m;
  13298. },
  13299. 'h7u' : function (k, m) {
  13300. return k - m;
  13301. },
  13302. 'U8b' : function (k, m) {
  13303. return k * m;
  13304. },
  13305. 'd1J' : function (k, m) {
  13306. return k * m;
  13307. },
  13308. 'G09' : function (k, m) {
  13309. return k * m;
  13310. },
  13311. 'z2q' : function (k, m) {
  13312. return k / m;
  13313. },
  13314. 'y9Q' : function (k, m) {
  13315. return k / m;
  13316. },
  13317. 'R73' : function (k, m) {
  13318. return k - m;
  13319. },
  13320. 'v9Q' : function (k, m) {
  13321. return k / m;
  13322. },
  13323. 'y9l' : function (k, m) {
  13324. return k > m;
  13325. },
  13326. 'x7P' : function (k, m) {
  13327. return k === m;
  13328. },
  13329. 'u0h' : function (k, m) {
  13330. return k instanceof m;
  13331. },
  13332. 'Z6l' : function (k, m) {
  13333. return k | m;
  13334. },
  13335. 'i3G' : function (k, m) {
  13336. return k > m;
  13337. },
  13338. 'Z2G' : function (k, m) {
  13339. return k === m;
  13340. },
  13341. 'j16' : function (k, m) {
  13342. return k === m;
  13343. },
  13344. 'S1w' : function (k, m) {
  13345. return k === m;
  13346. },
  13347. 'F2R' : function (k, m) {
  13348. return k - m;
  13349. },
  13350. 'A7g' : function (k, m) {
  13351. return k << m;
  13352. },
  13353. 'H8d' : function (k, m) {
  13354. return k !== m;
  13355. },
  13356. 'k9B' : function (k, m) {
  13357. return k === m;
  13358. },
  13359. 't1B' : function (k, m) {
  13360. return k - m;
  13361. },
  13362. 'Z0I' : function (k, m) {
  13363. return k - m;
  13364. },
  13365. 'U0r' : function (k, m) {
  13366. return k >= m;
  13367. },
  13368. 'G4V' : function (k, m) {
  13369. return k > m;
  13370. },
  13371. 'v1o' : function (k, m, e, o) {
  13372. return k * m * e / o;
  13373. },
  13374. 'O0d' : function (k, m) {
  13375. return k >= m;
  13376. },
  13377. 'm17' : function (k, m) {
  13378. return k / m;
  13379. },
  13380. 'a93' : function (k, m) {
  13381. return k !== m;
  13382. },
  13383. 'k7L' : function (k, m) {
  13384. return k | m;
  13385. },
  13386. 'b0r' : function (k, m) {
  13387. return k === m;
  13388. },
  13389. 'Q8o' : function (k, m) {
  13390. return k > m;
  13391. },
  13392. 'G6' : function (k, m) {
  13393. return k * m;
  13394. },
  13395. 'j9P' : function (k, m) {
  13396. return k * m;
  13397. },
  13398. 'Z5Q' : function (k, m) {
  13399. return k | m;
  13400. },
  13401. 'G8v' : function (k, m) {
  13402. return k * m;
  13403. },
  13404. 'f2l' : function (k, m) {
  13405. return k <= m;
  13406. },
  13407. 'L6b' : function (k, m) {
  13408. return k instanceof m;
  13409. },
  13410. 'O0G' : function (k, m) {
  13411. return k / m;
  13412. },
  13413. 'T5h' : function (k, m) {
  13414. return k instanceof m;
  13415. },
  13416. 'b37' : function (k, m) {
  13417. return k === m;
  13418. },
  13419. 'i7u' : function (k, m) {
  13420. return k - m;
  13421. },
  13422. 'f0P' : function (k, m) {
  13423. return k >= m;
  13424. },
  13425. 'r8u' : function (k, m) {
  13426. return k === m;
  13427. },
  13428. 't1v' : function (k, m) {
  13429. return k === m;
  13430. },
  13431. 't2b' : function (k, m) {
  13432. return k > m;
  13433. },
  13434. 'x1B' : function (k, m) {
  13435. return k >= m;
  13436. },
  13437. 'v1J' : function (k, m) {
  13438. return k * m;
  13439. },
  13440. 'S6L' : function (k, m) {
  13441. return k > m;
  13442. },
  13443. 'G3J' : function (k, m) {
  13444. return k > m;
  13445. },
  13446. 'G0l' : function (k, m) {
  13447. return k <= m;
  13448. },
  13449. 'm6g' : function (k, m) {
  13450. return k * m;
  13451. },
  13452. 'O3g' : function (k, m, e) {
  13453. return k / m * e;
  13454. },
  13455. 'B7w' : function (k, m) {
  13456. return k < m;
  13457. },
  13458. 'E77' : function (k, m) {
  13459. return k > m;
  13460. },
  13461. 'p27' : function (k, m) {
  13462. return k === m;
  13463. },
  13464. 'M1u' : function (k, m) {
  13465. return k instanceof m;
  13466. },
  13467. 'k6V' : function (k, m) {
  13468. return k / m;
  13469. },
  13470. 'F6b' : function (k, m) {
  13471. return k * m;
  13472. },
  13473. 'N6A' : function (k, m) {
  13474. return k < m;
  13475. },
  13476. 'P5P' : function (k, m) {
  13477. return k === m;
  13478. },
  13479. 'V2h' : function (k, m) {
  13480. return k === m;
  13481. },
  13482. 's29' : function (k, m) {
  13483. return k === m;
  13484. },
  13485. 'a8B' : function (k, m) {
  13486. return k < m;
  13487. },
  13488. 'd4G' : function (k, m) {
  13489. return k > m;
  13490. },
  13491. 'R0B' : function (k, m) {
  13492. return k === m;
  13493. },
  13494. 'j1J' : function (k, m) {
  13495. return k * m;
  13496. },
  13497. 'x8A' : function (k, m) {
  13498. return k < m;
  13499. },
  13500. 'Q7l' : function (k, m) {
  13501. return k * m;
  13502. },
  13503. 'J9G' : function (k, m) {
  13504. return k !== m;
  13505. },
  13506. 'e5P' : function (k, m) {
  13507. return k * m;
  13508. },
  13509. 'b1l' : function (k, m) {
  13510. return k * m;
  13511. },
  13512. 'r4J' : function (k, m) {
  13513. return k * m;
  13514. },
  13515. 'h0w' : function (k, m) {
  13516. return k > m;
  13517. },
  13518. 'K59' : function (k, m) {
  13519. return k * m;
  13520. },
  13521. 'Y9L' : function (k, m) {
  13522. return k === m;
  13523. },
  13524. 'h3v' : function (k, m) {
  13525. return k - m;
  13526. },
  13527. 'R5w' : function (k, m) {
  13528. return k === m;
  13529. },
  13530. 'r3d' : function (k, m) {
  13531. return k !== m;
  13532. },
  13533. 'B3Q' : function (k, m) {
  13534. return k < m;
  13535. },
  13536. 'e2' : function (k, m) {
  13537. return k >= m;
  13538. },
  13539. 'U06' : function (k, m) {
  13540. return k > m;
  13541. },
  13542. 'k8l' : function (k, m) {
  13543. return k !== m;
  13544. },
  13545. 'g7o' : function (k, m) {
  13546. return k / m;
  13547. },
  13548. 'u8B' : function (k, m) {
  13549. return k - m;
  13550. },
  13551. 'n2R' : function (k, m) {
  13552. return k > m;
  13553. },
  13554. 'W66' : function (k, m) {
  13555. return k === m;
  13556. },
  13557. 'h3J' : function (k, m) {
  13558. return k < m;
  13559. },
  13560. 'h4r' : function (k, m) {
  13561. return k === m;
  13562. },
  13563. 'Y4A' : function (k, m) {
  13564. return k * m;
  13565. },
  13566. 'E8u' : function (k, m) {
  13567. return k == m;
  13568. },
  13569. 'a4u' : function (k, m) {
  13570. return k / m;
  13571. },
  13572. 'W6J' : function (k, m) {
  13573. return k % m;
  13574. },
  13575. 'p2A' : function (k, m) {
  13576. return k^m;
  13577. },
  13578. 'n7d' : function (k, m) {
  13579. return k - m;
  13580. },
  13581. 'k8v' : function (k, m) {
  13582. return k / m;
  13583. },
  13584. 'J1L' : function (k, m) {
  13585. return k * m;
  13586. },
  13587. 'Q2V' : function (k, m) {
  13588. return k === m;
  13589. },
  13590. 'l1L' : function (k, m) {
  13591. return k % m;
  13592. },
  13593. 't7P' : function (k, m) {
  13594. return k * m;
  13595. },
  13596. 'A3w' : function (k, m) {
  13597. return k < m;
  13598. },
  13599. 'y4L' : function (k, m) {
  13600. return k - m;
  13601. },
  13602. 'J2B' : function (k, m) {
  13603. return k * m;
  13604. },
  13605. 'q1g' : function (k, m) {
  13606. return k > m;
  13607. },
  13608. 'w9V' : function (k, m) {
  13609. return k * m;
  13610. },
  13611. 'u3L' : function (k, m) {
  13612. return k !== m;
  13613. },
  13614. 'Q0o' : function (k, m) {
  13615. return k & m;
  13616. },
  13617. 'X6r' : function (k, m) {
  13618. return k !== m;
  13619. },
  13620. 'H8g' : function (k, m) {
  13621. return k - m;
  13622. },
  13623. 'n56' : function (k, m) {
  13624. return k !== m;
  13625. },
  13626. 'b9J' : function (k, m) {
  13627. return k === m;
  13628. },
  13629. 'a8L' : function (k, m) {
  13630. return k * m;
  13631. },
  13632. 'H6I' : function (k, m) {
  13633. return k > m;
  13634. },
  13635. 'H2v' : function (k, m) {
  13636. return k == m;
  13637. },
  13638. 'i2u' : function (k, m) {
  13639. return k === m;
  13640. },
  13641. 'K9d' : function (k, m) {
  13642. return k !== m;
  13643. },
  13644. 'E1P' : function (k, m) {
  13645. return k * m;
  13646. },
  13647. 'f5V' : function (k, m) {
  13648. return k === m;
  13649. },
  13650. 'l0v' : function (k, m) {
  13651. return k !== m;
  13652. },
  13653. 'o8o' : function (k, m) {
  13654. return k - m;
  13655. },
  13656. 'O9' : function (k, m, e) {
  13657. return k * m * e;
  13658. },
  13659. 'c1Q' : function (k, m) {
  13660. return k - m;
  13661. },
  13662. 'g3h' : function (k, m) {
  13663. return k < m;
  13664. },
  13665. 'R0h' : function (k, m) {
  13666. return k > m;
  13667. },
  13668. 'z6' : function (k, m) {
  13669. return k * m;
  13670. },
  13671. 'U6N' : function (k, m) {
  13672. return k * m;
  13673. },
  13674. 'v3P' : function (k, m) {
  13675. return k === m;
  13676. },
  13677. 'y63' : function (k, m) {
  13678. return k << m;
  13679. },
  13680. 't6h' : function (k, m) {
  13681. return k / m;
  13682. },
  13683. 'c1g' : function (k, m) {
  13684. return k === m;
  13685. },
  13686. 'q36' : function (k, m) {
  13687. return k < m;
  13688. },
  13689. 'w4P' : function (k, m) {
  13690. return k >= m;
  13691. },
  13692. 'F1N' : function (k, m) {
  13693. return k > m;
  13694. },
  13695. 'p37' : function (k, m) {
  13696. return k < m;
  13697. },
  13698. 'R54' : function (k, m) {
  13699. return k - m;
  13700. },
  13701. 'g1r' : function (k, m) {
  13702. return k / m;
  13703. },
  13704. 'D8h' : function (k, m) {
  13705. return k === m;
  13706. },
  13707. 'i9o' : function (k, m) {
  13708. return k == m;
  13709. },
  13710. 'r7V' : function (k, m) {
  13711. return k - m;
  13712. },
  13713. 'F6d' : function (k, m) {
  13714. return k === m;
  13715. },
  13716. 'C3P' : function (k, m) {
  13717. return k * m;
  13718. },
  13719. 'H67' : function (k, m) {
  13720. return k - m;
  13721. },
  13722. 'g0G' : function (k, m) {
  13723. return k === m;
  13724. },
  13725. 'H5r' : function (k, m) {
  13726. return k !== m;
  13727. },
  13728. 'a2h' : function (k, m) {
  13729. return k > m;
  13730. },
  13731. 'G6I' : function (k, m) {
  13732. return k < m;
  13733. },
  13734. 'I4L' : function (k, m) {
  13735. return k === m;
  13736. },
  13737. 'd0o' : function (k, m) {
  13738. return k >>> m;
  13739. },
  13740. 'o4L' : function (k, m) {
  13741. return k >= m;
  13742. },
  13743. 'B9B' : function (k, m) {
  13744. return k * m;
  13745. },
  13746. 'a1A' : function (k, m) {
  13747. return k > m;
  13748. },
  13749. 'L46' : function (k, m) {
  13750. return k * m;
  13751. },
  13752. 'B1D' : function (k, m) {
  13753. return k > m;
  13754. },
  13755. 'L4N' : function (k, m) {
  13756. return k >= m;
  13757. },
  13758. 'j5h' : function (k, m) {
  13759. return k !== m;
  13760. },
  13761. 'l8l' : function (k, m) {
  13762. return k - m;
  13763. },
  13764. 'q63' : function (k, m) {
  13765. return k * m;
  13766. },
  13767. 'l0Q' : function (k, m) {
  13768. return k > m;
  13769. },
  13770. 'o3w' : function (k, m) {
  13771. return k * m;
  13772. },
  13773. 'Z4u' : function (k, m) {
  13774. return k < m;
  13775. },
  13776. 'h9B' : function (k, m) {
  13777. return k < m;
  13778. },
  13779. 'D5D' : function (k, m) {
  13780. return k >>> m;
  13781. },
  13782. 'v5A' : function (k, m) {
  13783. return k * m;
  13784. },
  13785. 'x7v' : function (k, m) {
  13786. return k * m;
  13787. },
  13788. 'h1u' : function (k, m) {
  13789. return k > m;
  13790. },
  13791. 'J4N' : function (k, m) {
  13792. return k !== m;
  13793. },
  13794. 'T3o' : function (k, m) {
  13795. return k * m;
  13796. },
  13797. 'a2L' : function (k, m) {
  13798. return k !== m;
  13799. },
  13800. 'k47' : function (k, m) {
  13801. return k > m;
  13802. },
  13803. 'Q9R' : function (k, m) {
  13804. return k > m;
  13805. },
  13806. 'w4J' : function (k, m) {
  13807. return k * m;
  13808. },
  13809. 'x9w' : function (k, m) {
  13810. return k - m;
  13811. },
  13812. 'M3Q' : function (k, m) {
  13813. return k > m;
  13814. },
  13815. 'K7h' : function (k, m) {
  13816. return k > m;
  13817. },
  13818. 'q4w' : function (k, m) {
  13819. return k < m;
  13820. },
  13821. 'J7h' : function (k, m) {
  13822. return k - m;
  13823. },
  13824. 'f2Q' : function (k, m) {
  13825. return k / m;
  13826. },
  13827. 'o9Q' : function (k, m) {
  13828. return k / m;
  13829. },
  13830. 'q0g' : function (k, m) {
  13831. return k | m;
  13832. },
  13833. 'X74' : function (k, m) {
  13834. return k > m;
  13835. },
  13836. 'F7e' : function (k, m) {
  13837. return k !== m;
  13838. },
  13839. 'A7o' : function (k, m) {
  13840. return k & m;
  13841. },
  13842. 'S4I' : function (k, m) {
  13843. return k | m;
  13844. },
  13845. 'w5R' : function (k, m) {
  13846. return k < m;
  13847. },
  13848. 'U4I' : function (k, m) {
  13849. return k >= m;
  13850. },
  13851. 'Y4N' : function (k, m) {
  13852. return k * m;
  13853. },
  13854. 'Y46' : function (k, m) {
  13855. return k - m;
  13856. },
  13857. 'k5b' : function (k, m) {
  13858. return k - m;
  13859. },
  13860. 'F9L' : function (k, m) {
  13861. return k !== m;
  13862. },
  13863. 'J5N' : function (k, m) {
  13864. return k >>> m;
  13865. },
  13866. 't1g' : function (k, m) {
  13867. return k > m;
  13868. },
  13869. 'Z0L' : function (k, m) {
  13870. return k !== m;
  13871. },
  13872. 'W97' : function (k, m) {
  13873. return k / m;
  13874. },
  13875. 'a6l' : function (k, m) {
  13876. return k === m;
  13877. },
  13878. 'm5J' : function (k, m) {
  13879. return k - m;
  13880. },
  13881. 'o0A' : function (k, m) {
  13882. return k > m;
  13883. },
  13884. 'g8B' : function (k, m) {
  13885. return k > m;
  13886. },
  13887. 'H4b' : function (k, m) {
  13888. return k / m;
  13889. },
  13890. 'G5r' : function (k, m) {
  13891. return k !== m;
  13892. },
  13893. 'b5L' : function (k, m) {
  13894. return k !== m;
  13895. },
  13896. 'y8I' : function (k, m) {
  13897. return k !== m;
  13898. },
  13899. 'C33' : function (k, m) {
  13900. return k > m;
  13901. },
  13902. 'U1J' : function (k, m) {
  13903. return k / m;
  13904. },
  13905. 'y5u' : function (k, m) {
  13906. return k === m;
  13907. },
  13908. 's3P' : function (k, m) {
  13909. return k !== m;
  13910. },
  13911. 'j9u' : function (k, m) {
  13912. return k != m;
  13913. },
  13914. 'H7w' : function (k, m) {
  13915. return k > m;
  13916. },
  13917. 'Q5e' : function (k, m) {
  13918. return k & m;
  13919. },
  13920. 'I5u' : function (k, m) {
  13921. return k === m;
  13922. },
  13923. 'A5v' : function (k, m) {
  13924. return k in m;
  13925. },
  13926. 'L1u' : function (k, m) {
  13927. return k < m;
  13928. },
  13929. 'r04' : function (k, m) {
  13930. return k > m;
  13931. },
  13932. 'N2r' : function (k, m) {
  13933. return k === m;
  13934. },
  13935. 'N8R' : function (k, m) {
  13936. return k / m;
  13937. },
  13938. 'A5B' : function (k, m) {
  13939. return k === m;
  13940. },
  13941. 'D6V' : function (k, m) {
  13942. return k * m;
  13943. },
  13944. 'D6J' : function (k, m) {
  13945. return k - m;
  13946. },
  13947. 'h7B' : function (k, m) {
  13948. return k >= m;
  13949. },
  13950. 'U87' : function (k, m) {
  13951. return k >= m;
  13952. },
  13953. 'R1V' : function (k, m) {
  13954. return k - m;
  13955. },
  13956. 'f3B' : function (k, m) {
  13957. return k === m;
  13958. },
  13959. 'N67' : function (k, m) {
  13960. return k * m;
  13961. },
  13962. 'a8u' : function (k, m) {
  13963. return k == m;
  13964. },
  13965. 'l0R' : function (k, m) {
  13966. return k * m;
  13967. },
  13968. 'x3q' : function (k, m) {
  13969. return k === m;
  13970. },
  13971. 'F59' : function (k, m) {
  13972. return k === m;
  13973. },
  13974. 'g3G' : function (k, m) {
  13975. return k === m;
  13976. },
  13977. 'l8g' : function (k, m) {
  13978. return k * m;
  13979. },
  13980. 'B1L' : function (k, m) {
  13981. return k % m;
  13982. },
  13983. 'z8' : function (k, m) {
  13984. return k | m;
  13985. },
  13986. 'G74' : function (k, m) {
  13987. return k !== m;
  13988. },
  13989. 'w97' : function (k, m) {
  13990. return k > m;
  13991. },
  13992. 'k3R' : function (k, m) {
  13993. return k !== m;
  13994. },
  13995. 'P2e' : function (k, m) {
  13996. return k >> m;
  13997. },
  13998. 'T0r' : function (k, m) {
  13999. return k !== m;
  14000. },
  14001. 'u8Q' : function (k, m) {
  14002. return k !== m;
  14003. },
  14004. 'G8g' : function (k, m) {
  14005. return k > m;
  14006. },
  14007. 'i5l' : function (k, m) {
  14008. return k - m;
  14009. },
  14010. 'D2u' : function (k, m) {
  14011. return k >= m;
  14012. },
  14013. 'N8l' : function (k, m) {
  14014. return k - m;
  14015. },
  14016. 'S9Q' : function (k, m) {
  14017. return k - m;
  14018. },
  14019. 'T8A' : function (k, m) {
  14020. return k >= m;
  14021. },
  14022. 'e2P' : function (k, m, e) {
  14023. return k % m / e;
  14024. },
  14025. 'n4N' : function (k, m) {
  14026. return k / m;
  14027. },
  14028. 'U8P' : function (k, m) {
  14029. return k > m;
  14030. },
  14031. 'L9B' : function (k, m) {
  14032. return k - m;
  14033. },
  14034. 'J4D' : function (k, m) {
  14035. return k > m;
  14036. },
  14037. 'D7N' : function (k, m) {
  14038. return k === m;
  14039. },
  14040. 'Y7e' : function (k, m) {
  14041. return k < m;
  14042. },
  14043. 's87' : function (k, m) {
  14044. return k * m;
  14045. },
  14046. 'z1N' : function (k, m) {
  14047. return k / m;
  14048. },
  14049. 'D9N' : function (k, m) {
  14050. return k >>> m;
  14051. },
  14052. 'H1' : function (k, m) {
  14053. return k * m;
  14054. },
  14055. 'e9V' : function (k, m) {
  14056. return k * m;
  14057. },
  14058. 'i5g' : function (k, m) {
  14059. return k * m;
  14060. },
  14061. 'D5B' : function (k, m) {
  14062. return k > m;
  14063. },
  14064. 't1R' : function (k, m) {
  14065. return k - m;
  14066. },
  14067. 'U0o' : function (k, m, e) {
  14068. return k * m / e;
  14069. },
  14070. 'E1d' : function (k, m, e) {
  14071. return k / m * e;
  14072. },
  14073. 'J1h' : function (k, m) {
  14074. return k > m;
  14075. },
  14076. 'j5d' : function (k, m, e) {
  14077. return k * m * e;
  14078. },
  14079. 'u4l' : function (k, m) {
  14080. return k === m;
  14081. },
  14082. 'D5J' : function (k, m) {
  14083. return k == m;
  14084. },
  14085. 'G7u' : function (k, m) {
  14086. return k > m;
  14087. },
  14088. 'K9I' : function (k, m) {
  14089. return k | m;
  14090. },
  14091. 'z6d' : function (k, m) {
  14092. return k / m;
  14093. },
  14094. 'U44' : function (k, m) {
  14095. return k * m;
  14096. },
  14097. 'j8b' : function (k, m) {
  14098. return k > m;
  14099. },
  14100. 'B6A' : function (k, m) {
  14101. return k > m;
  14102. },
  14103. 'k4b' : function (k, m) {
  14104. return k % m;
  14105. },
  14106. 'W1A' : function (k, m) {
  14107. return k < m;
  14108. },
  14109. 'E2u' : function (k, m) {
  14110. return k !== m;
  14111. },
  14112. 'U3b' : function (k, m) {
  14113. return k / m;
  14114. },
  14115. 'w3d' : function (k, m) {
  14116. return k * m;
  14117. },
  14118. 'X2J' : function (k, m) {
  14119. return k * m;
  14120. },
  14121. 'D0I' : function (k, m) {
  14122. return k - m;
  14123. },
  14124. 'c3o' : function (k, m) {
  14125. return k !== m;
  14126. },
  14127. 'J8R' : function (k, m) {
  14128. return k / m;
  14129. },
  14130. 'u5D' : function (k, m) {
  14131. return k == m;
  14132. },
  14133. 'B4A' : function (k, m) {
  14134. return k === m;
  14135. },
  14136. 'q2V' : function (k, m) {
  14137. return k >= m;
  14138. },
  14139. 'm77' : function (k, m) {
  14140. return k - m;
  14141. },
  14142. 'G7I' : function (k, m) {
  14143. return k !== m;
  14144. },
  14145. 't1w' : function (k, m) {
  14146. return k >= m;
  14147. },
  14148. 'V96' : function (k, m) {
  14149. return k === m;
  14150. },
  14151. 'f9I' : function (k, m) {
  14152. return k >= m;
  14153. },
  14154. 'e6w' : function (k, m) {
  14155. return k !== m;
  14156. },
  14157. 'v9' : function (k, m) {
  14158. return k * m;
  14159. },
  14160. 'd36' : function (k, m) {
  14161. return k < m;
  14162. },
  14163. 't9' : function (k, m) {
  14164. return k != m;
  14165. },
  14166. 'L09' : function (k, m) {
  14167. return k * m;
  14168. },
  14169. 'c0r' : function (k, m) {
  14170. return k | m;
  14171. },
  14172. 'w73' : function (k, m) {
  14173. return k / m;
  14174. },
  14175. 'F5o' : function (k, m) {
  14176. return k > m;
  14177. },
  14178. 'k3Q' : function (k, m) {
  14179. return k > m;
  14180. },
  14181. 'N1' : function (k, m) {
  14182. return k < m;
  14183. },
  14184. 'v33' : function (k, m) {
  14185. return k > m;
  14186. },
  14187. 'd8I' : function (k, m) {
  14188. return k >= m;
  14189. },
  14190. 'T3V' : function (k, m) {
  14191. return k * m;
  14192. },
  14193. 'C1B' : function (k, m) {
  14194. return k * m;
  14195. },
  14196. 'e24' : function (k, m, e) {
  14197. return k - m + e;
  14198. },
  14199. 'U6L' : function (k, m) {
  14200. return k !== m;
  14201. },
  14202. 'L3u' : function (k, m) {
  14203. return k > m;
  14204. },
  14205. 's9R' : function (k, m) {
  14206. return k >= m;
  14207. },
  14208. 'H5b' : function (k, m) {
  14209. return k - m;
  14210. },
  14211. 'z2g' : function (k, m, e) {
  14212. return k * m * e;
  14213. },
  14214. 'U36' : function (k, m) {
  14215. return k - m;
  14216. },
  14217. 'M8V' : function (k, m) {
  14218. return k / m;
  14219. },
  14220. 'p9l' : function (k, m) {
  14221. return k > m;
  14222. },
  14223. 'O9b' : function (k, m) {
  14224. return k !== m;
  14225. },
  14226. 'u9r' : function (k, m) {
  14227. return k !== m;
  14228. },
  14229. 'b0q' : function (k, m) {
  14230. return k - m;
  14231. },
  14232. 'i2g' : function (k, m, e) {
  14233. return k * m * e;
  14234. },
  14235. 'A5l' : function (k, m) {
  14236. return k <= m;
  14237. },
  14238. 'l8v' : function (k, m) {
  14239. return k - m;
  14240. },
  14241. 'p5I' : function (k, m) {
  14242. return k !== m;
  14243. },
  14244. 'n6r' : function (k, m) {
  14245. return k instanceof m;
  14246. },
  14247. 'N7e' : function (k, m) {
  14248. return k >= m;
  14249. },
  14250. 'e8L' : function (k, m) {
  14251. return k === m;
  14252. },
  14253. 'j4h' : function (k, m) {
  14254. return k / m;
  14255. },
  14256. 'Y74' : function (k, m) {
  14257. return k / m;
  14258. },
  14259. 'Y6I' : function (k, m) {
  14260. return k !== m;
  14261. },
  14262. 'R8' : function (k, m) {
  14263. return k * m;
  14264. },
  14265. 'p0A' : function (k, m) {
  14266. return k === m;
  14267. },
  14268. 'z8l' : function (k, m) {
  14269. return k > m;
  14270. },
  14271. 'p8b' : function (k, m) {
  14272. return k * m;
  14273. },
  14274. 'y6u' : function (k, m) {
  14275. return k > m;
  14276. },
  14277. 'J67' : function (k, m) {
  14278. return k >= m;
  14279. },
  14280. 'h4V' : function (k, m) {
  14281. return k === m;
  14282. },
  14283. 'B1' : function (k, m) {
  14284. return k * m;
  14285. },
  14286. 's4P' : function (k, m) {
  14287. return k * m;
  14288. },
  14289. 'r7b' : function (k, m) {
  14290. return k === m;
  14291. },
  14292. 'n3v' : function (k, m) {
  14293. return k > m;
  14294. },
  14295. 'b0D' : function (k, m) {
  14296. return k * m;
  14297. },
  14298. 'T4L' : function (k, m) {
  14299. return k - m;
  14300. },
  14301. 'k0R' : function (k, m) {
  14302. return k * m;
  14303. },
  14304. 'D5r' : function (k, m) {
  14305. return k * m;
  14306. },
  14307. 'J7d' : function (k, m) {
  14308. return k - m;
  14309. },
  14310. 'Q2P' : function (k, m) {
  14311. return k !== m;
  14312. },
  14313. 'M0l' : function (k, m) {
  14314. return k - m;
  14315. },
  14316. 'Z73' : function (k, m) {
  14317. return k * m;
  14318. },
  14319. 'V0e' : function (k, m) {
  14320. return k !== m;
  14321. },
  14322. 'i2h' : function (k, m) {
  14323. return k !== m;
  14324. },
  14325. 'y3D' : function (k, m) {
  14326. return k / m;
  14327. },
  14328. 'Y6P' : function (k, m) {
  14329. return k > m;
  14330. },
  14331. 'd3o' : function (k, m) {
  14332. return k > m;
  14333. },
  14334. 'A9D' : function (k, m) {
  14335. return k * m;
  14336. },
  14337. 'Z7N' : function (k, m) {
  14338. return k < m;
  14339. },
  14340. 'y3g' : function (k, m) {
  14341. return k * m;
  14342. },
  14343. 'd86' : function (k, m) {
  14344. return k === m;
  14345. },
  14346. 'p9R' : function (k, m) {
  14347. return k >= m;
  14348. },
  14349. 'F8v' : function (k, m) {
  14350. return k - m;
  14351. },
  14352. 'X9u' : function (k, m) {
  14353. return k * m;
  14354. },
  14355. 'x0A' : function (k, m) {
  14356. return k > m;
  14357. },
  14358. 'x3o' : function (k, m) {
  14359. return k > m;
  14360. },
  14361. 'P2I' : function (k, m) {
  14362. return k > m;
  14363. },
  14364. 'O6J' : function (k, m) {
  14365. return k - m;
  14366. },
  14367. 'p4A' : function (k, m) {
  14368. return k - m;
  14369. },
  14370. 'S9l' : function (k, m) {
  14371. return k > m;
  14372. },
  14373. 'E9b' : function (k, m) {
  14374. return k * m;
  14375. },
  14376. 'd5e' : function (k, m) {
  14377. return k & m;
  14378. },
  14379. 'M8g' : function (k, m) {
  14380. return k > m;
  14381. },
  14382. 'o0J' : function (k, m) {
  14383. return k > m;
  14384. },
  14385. 'l46' : function (k, m) {
  14386. return k - m;
  14387. },
  14388. 'C5h' : function (k, m) {
  14389. return k === m;
  14390. },
  14391. 'H1D' : function (k, m) {
  14392. return k - m;
  14393. },
  14394. 'l09' : function (k, m) {
  14395. return k * m;
  14396. },
  14397. 'q1q' : function (k, m) {
  14398. return k < m;
  14399. },
  14400. 't3D' : function (k, m) {
  14401. return k / m;
  14402. },
  14403. 'x23' : function (k, m) {
  14404. return k * m;
  14405. },
  14406. 'a6e' : function (k, m) {
  14407. return k & m;
  14408. },
  14409. 'u5Q' : function (k, m) {
  14410. return k * m;
  14411. },
  14412. 'O7r' : function (k, m) {
  14413. return k === m;
  14414. },
  14415. 'U7Q' : function (k, m) {
  14416. return k > m;
  14417. },
  14418. 'V3L' : function (k, m) {
  14419. return k === m;
  14420. },
  14421. 'u7b' : function (k, m) {
  14422. return k % m;
  14423. },
  14424. 'l4q' : function (k, m) {
  14425. return k > m;
  14426. },
  14427. 'f2w' : function (k, m) {
  14428. return k === m;
  14429. },
  14430. 'V0I' : function (k, m) {
  14431. return k !== m;
  14432. },
  14433. 'h5b' : function (k, m) {
  14434. return k < m;
  14435. },
  14436. 'X1B' : function (k, m) {
  14437. return k > m;
  14438. },
  14439. 'i8' : function (k, m) {
  14440. return k / m;
  14441. },
  14442. 's3N' : function (k, m) {
  14443. return k === m;
  14444. },
  14445. 'z5b' : function (k, m) {
  14446. return k !== m;
  14447. },
  14448. 'D6N' : function (k, m, e, o) {
  14449. return k | m | e | o;
  14450. },
  14451. 'L8v' : function (k, m) {
  14452. return k - m;
  14453. },
  14454. 'A6G' : function (k, m) {
  14455. return k === m;
  14456. },
  14457. 's0o' : function (k, m) {
  14458. return k & m;
  14459. },
  14460. 'T2V' : function (k, m) {
  14461. return k === m;
  14462. },
  14463. 'A96' : function (k, m) {
  14464. return k > m;
  14465. },
  14466. 'G1e' : function (k, m, e) {
  14467. return k << m >> e;
  14468. },
  14469. 'q1B' : function (k, m) {
  14470. return k / m;
  14471. },
  14472. 'I39' : function (k, m) {
  14473. return k > m;
  14474. },
  14475. 'v03' : function (k, m) {
  14476. return k * m;
  14477. },
  14478. 'o63' : function (k, m) {
  14479. return k << m;
  14480. },
  14481. 'Q1Q' : function (k, m) {
  14482. return k - m;
  14483. },
  14484. 'K3w' : function (k, m) {
  14485. return k >= m;
  14486. },
  14487. 'Q2r' : function (k, m) {
  14488. return k === m;
  14489. },
  14490. 'j5I' : function (k, m) {
  14491. return k * m;
  14492. },
  14493. 'z0v' : function (k, m) {
  14494. return k !== m;
  14495. },
  14496. 'R3e' : function (k, m) {
  14497. return k > m;
  14498. },
  14499. 'Q24' : function (k, m) {
  14500. return k >= m;
  14501. },
  14502. 'i54' : function (k, m) {
  14503. return k < m;
  14504. },
  14505. 'w2u' : function (k, m) {
  14506. return k < m;
  14507. },
  14508. 'o16' : function (k, m) {
  14509. return k === m;
  14510. },
  14511. 'v1q' : function (k, m) {
  14512. return k | m;
  14513. },
  14514. 'x1v' : function (k, m) {
  14515. return k > m;
  14516. },
  14517. 'b3o' : function (k, m) {
  14518. return k > m;
  14519. },
  14520. 'm14' : function (k, m) {
  14521. return k >= m;
  14522. },
  14523. 'q8b' : function (k, m) {
  14524. return k * m;
  14525. },
  14526. 'm4J' : function (k, m) {
  14527. return k < m;
  14528. },
  14529. 'E9o' : function (k, m) {
  14530. return k == m;
  14531. },
  14532. 'J47' : function (k, m) {
  14533. return k - m;
  14534. },
  14535. 'm0I' : function (k, m) {
  14536. return k - m;
  14537. },
  14538. 'E9V' : function (k, m) {
  14539. return k * m;
  14540. },
  14541. 'x24' : function (k, m) {
  14542. return k > m;
  14543. },
  14544. 'k1h' : function (k, m) {
  14545. return k === m;
  14546. },
  14547. 'a9D' : function (k, m) {
  14548. return k * m;
  14549. },
  14550. 'u1V' : function (k, m) {
  14551. return k * m;
  14552. },
  14553. 'L4q' : function (k, m) {
  14554. return k % m;
  14555. },
  14556. 'A3e' : function (k, m) {
  14557. return k !== m;
  14558. },
  14559. 'S4A' : function (k, m) {
  14560. return k % m;
  14561. },
  14562. 'S8o' : function (k, m) {
  14563. return k < m;
  14564. },
  14565. 'x9v' : function (k, m) {
  14566. return k !== m;
  14567. },
  14568. 'M4D' : function (k, m) {
  14569. return k !== m;
  14570. },
  14571. 'T0V' : function (k, m) {
  14572. return k < m;
  14573. },
  14574. 'Y2l' : function (k, m) {
  14575. return k * m;
  14576. },
  14577. 'M9B' : function (k, m) {
  14578. return k - m;
  14579. },
  14580. 'q87' : function (k, m) {
  14581. return k / m;
  14582. },
  14583. 'A0h' : function (k, m) {
  14584. return k - m;
  14585. },
  14586. 'M1D' : function (k, m) {
  14587. return k * m;
  14588. },
  14589. 'U2q' : function (k, m) {
  14590. return k - m;
  14591. },
  14592. 'E3h' : function (k, m) {
  14593. return k !== m;
  14594. },
  14595. 'V3h' : function (k, m) {
  14596. return k !== m;
  14597. },
  14598. 'L6I' : function (k, m) {
  14599. return k < m;
  14600. },
  14601. 'o94' : function (k, m) {
  14602. return k === m;
  14603. },
  14604. 'x4d' : function (k, m) {
  14605. return k * m;
  14606. },
  14607. 't8r' : function (k, m) {
  14608. return k !== m;
  14609. },
  14610. 'b1d' : function (k, m) {
  14611. return k === m;
  14612. },
  14613. 'y7R' : function (k, m) {
  14614. return k * m;
  14615. },
  14616. 'y6B' : function (k, m) {
  14617. return k > m;
  14618. },
  14619. 'B8V' : function (k, m) {
  14620. return k * m;
  14621. },
  14622. 'c7J' : function (k, m) {
  14623. return k > m;
  14624. },
  14625. 'L3R' : function (k, m) {
  14626. return k > m;
  14627. },
  14628. 'G67' : function (k, m) {
  14629. return k >= m;
  14630. },
  14631. 'm7o' : function (k, m) {
  14632. return k & m;
  14633. },
  14634. 't2V' : function (k, m) {
  14635. return k < m;
  14636. },
  14637. 'c8b' : function (k, m) {
  14638. return k - m;
  14639. },
  14640. 'D3g' : function (k, m) {
  14641. return k - m;
  14642. },
  14643. 'F3Q' : function (k, m) {
  14644. return k < m;
  14645. },
  14646. 'F9I' : function (k, m) {
  14647. return k - m;
  14648. },
  14649. 'G7e' : function (k, m) {
  14650. return k < m;
  14651. },
  14652. 'A49' : function (k, m) {
  14653. return k * m;
  14654. },
  14655. 'K6r' : function (k, m) {
  14656. return k instanceof m;
  14657. },
  14658. 'Z6R' : function (k, m) {
  14659. return k - m;
  14660. },
  14661. 'm5Q' : function (k, m) {
  14662. return k / m;
  14663. },
  14664. 'n8V' : function (k, m) {
  14665. return k / m;
  14666. },
  14667. 'P8h' : function (k, m) {
  14668. return k !== m;
  14669. },
  14670. 'U5G' : function (k, m) {
  14671. return k === m;
  14672. },
  14673. 'j1w' : function (k, m) {
  14674. return k === m;
  14675. },
  14676. 'e19' : function (k, m) {
  14677. return k * m;
  14678. },
  14679. 'b9R' : function (k, m) {
  14680. return k >= m;
  14681. },
  14682. 'b4d' : function (k, m) {
  14683. return k * m;
  14684. },
  14685. 'N46' : function (k, m) {
  14686. return k % m;
  14687. },
  14688. 'Q9g' : function (k, m) {
  14689. return k * m;
  14690. },
  14691. 'l6P' : function (k, m) {
  14692. return k > m;
  14693. },
  14694. 'c3b' : function (k, m) {
  14695. return k > m;
  14696. },
  14697. 'P4l' : function (k, m) {
  14698. return k > m;
  14699. },
  14700. 'H8J' : function (k, m) {
  14701. return k < m;
  14702. },
  14703. 'C26' : function (k, m) {
  14704. return k === m;
  14705. },
  14706. 'E99' : function (k, m) {
  14707. return k !== m;
  14708. },
  14709. 'H2q' : function (k, m) {
  14710. return k | m;
  14711. },
  14712. 'b0N' : function (k, m) {
  14713. return k === m;
  14714. },
  14715. 'g6g' : function (k, m) {
  14716. return k / m;
  14717. },
  14718. 'k3J' : function (k, m) {
  14719. return k > m;
  14720. },
  14721. 'K9L' : function (k, m) {
  14722. return k < m;
  14723. },
  14724. 'P53' : function (k, m) {
  14725. return k - m;
  14726. },
  14727. 'c3P' : function (k, m) {
  14728. return k !== m;
  14729. },
  14730. 'F6r' : function (k, m) {
  14731. return k instanceof m;
  14732. },
  14733. 'Z2u' : function (k, m) {
  14734. return k === m;
  14735. },
  14736. 'g53' : function (k, m) {
  14737. return k * m;
  14738. },
  14739. 'Y7L' : function (k, m) {
  14740. return k * m;
  14741. },
  14742. 's0g' : function (k, m) {
  14743. return k / m;
  14744. },
  14745. 'I9J' : function (k, m) {
  14746. return k === m;
  14747. },
  14748. 'c0b' : function (k, m) {
  14749. return k === m;
  14750. },
  14751. 'J2w' : function (k, m) {
  14752. return k >= m;
  14753. },
  14754. 'r0L' : function (k, m) {
  14755. return k instanceof m;
  14756. },
  14757. 'A53' : function (k, m) {
  14758. return k * m;
  14759. },
  14760. 'i6G' : function (k, m) {
  14761. return k === m;
  14762. },
  14763. 't2d' : function (k, m) {
  14764. return k < m;
  14765. },
  14766. 's7v' : function (k, m) {
  14767. return k instanceof m;
  14768. },
  14769. 'b8o' : function (k, m) {
  14770. return k !== m;
  14771. },
  14772. 'W0h' : function (k, m) {
  14773. return k === m;
  14774. },
  14775. 'K8q' : function (k, m) {
  14776. return k - m;
  14777. },
  14778. 'B5V' : function (k, m) {
  14779. return k === m;
  14780. },
  14781. 't16' : function (k, m) {
  14782. return k === m;
  14783. },
  14784. 'G3Q' : function (k, m) {
  14785. return k >= m;
  14786. },
  14787. 'E9q' : function (k, m) {
  14788. return k / m;
  14789. },
  14790. 'J6' : function (k, m) {
  14791. return k * m;
  14792. },
  14793. 'w3e' : function (k, m) {
  14794. return k >= m;
  14795. },
  14796. 'O5v' : function (k, m) {
  14797. return k instanceof m;
  14798. },
  14799. 'W73' : function (k, m) {
  14800. return k < m;
  14801. },
  14802. 'a3d' : function (k, m) {
  14803. return k * m;
  14804. },
  14805. 'J1N' : function (k, m) {
  14806. return k !== m;
  14807. },
  14808. 'y2d' : function (k, m) {
  14809. return k % m;
  14810. },
  14811. 'M5V' : function (k, m) {
  14812. return k === m;
  14813. },
  14814. 'Q36' : function (k, m) {
  14815. return k < m;
  14816. },
  14817. 'K1' : function (k, m) {
  14818. return k * m;
  14819. },
  14820. 'n2q' : function (k, m) {
  14821. return k | m;
  14822. },
  14823. 'D1A' : function (k, m) {
  14824. return k > m;
  14825. },
  14826. 'P3G' : function (k, m) {
  14827. return k > m;
  14828. },
  14829. 'l66' : function (k, m) {
  14830. return k !== m;
  14831. },
  14832. 'H9G' : function (k, m) {
  14833. return k !== m;
  14834. },
  14835. 'J9h' : function (k, m) {
  14836. return k !== m;
  14837. },
  14838. 'n6D' : function (k, m) {
  14839. return k === m;
  14840. },
  14841. 'b0b' : function (k, m) {
  14842. return k instanceof m;
  14843. },
  14844. 'k4B' : function (k, m) {
  14845. return k === m;
  14846. },
  14847. 'b33' : function (k, m) {
  14848. return k * m;
  14849. },
  14850. 'e8h' : function (k, m) {
  14851. return k !== m;
  14852. },
  14853. 'K66' : function (k, m) {
  14854. return k - m;
  14855. },
  14856. 'i0e' : function (k, m) {
  14857. return k === m;
  14858. },
  14859. 'V2e' : function (k, m) {
  14860. return k < m;
  14861. },
  14862. 'o8r' : function (k, m) {
  14863. return k - m;
  14864. },
  14865. 'q0N' : function (k, m) {
  14866. return k === m;
  14867. },
  14868. 'r2L' : function (k, m) {
  14869. return k > m;
  14870. },
  14871. 'F4B' : function (k, m, e) {
  14872. return k * m * e;
  14873. },
  14874. 'Y3A' : function (k, m) {
  14875. return k - m;
  14876. },
  14877. 'u97' : function (k, m) {
  14878. return k - m;
  14879. },
  14880. 'm0L' : function (k, m) {
  14881. return k instanceof m;
  14882. },
  14883. 'X1h' : function (k, m) {
  14884. return k * m;
  14885. },
  14886. 'Y8G' : function (k, m) {
  14887. return k < m;
  14888. },
  14889. 'J8G' : function (k, m) {
  14890. return k === m;
  14891. },
  14892. 'A1P' : function (k, m) {
  14893. return k * m;
  14894. },
  14895. 'Q4L' : function (k, m) {
  14896. return k / m;
  14897. },
  14898. 's0r' : function (k, m) {
  14899. return k | m;
  14900. },
  14901. 'l9d' : function (k, m) {
  14902. return k >= m;
  14903. },
  14904. 'I4w' : function (k, m) {
  14905. return k >= m;
  14906. },
  14907. 'L3J' : function (k, m) {
  14908. return k > m;
  14909. },
  14910. 'b7J' : function (k, m) {
  14911. return k % m;
  14912. },
  14913. 'M46' : function (k, m) {
  14914. return k - m;
  14915. },
  14916. 'L4V' : function (k, m) {
  14917. return k > m;
  14918. },
  14919. 'n9I' : function (k, m) {
  14920. return k >= m;
  14921. },
  14922. 'd6e' : function (k, m) {
  14923. return k - m;
  14924. },
  14925. 'r6J' : function (k, m) {
  14926. return k < m;
  14927. },
  14928. 'I1l' : function (k, m) {
  14929. return k * m;
  14930. },
  14931. 'z24' : function (k, m) {
  14932. return k / m;
  14933. },
  14934. 'i8B' : function (k, m) {
  14935. return k > m;
  14936. },
  14937. 'Q06' : function (k, m) {
  14938. return k < m;
  14939. },
  14940. 'z3u' : function (k, m) {
  14941. return k - m;
  14942. },
  14943. 'c1G' : function (k, m) {
  14944. return k - m;
  14945. },
  14946. 'N4N' : function (k, m) {
  14947. return k < m;
  14948. },
  14949. 'U29' : function (k, m) {
  14950. return k in m;
  14951. },
  14952. 'o3o' : function (k, m) {
  14953. return k > m;
  14954. },
  14955. 'o4h' : function (k, m) {
  14956. return k === m;
  14957. },
  14958. 'W7r' : function (k, m) {
  14959. return k | m;
  14960. },
  14961. 'e04' : function (k, m) {
  14962. return k - m;
  14963. },
  14964. 'c2o' : function (k, m) {
  14965. return k < m;
  14966. },
  14967. 'C4L' : function (k, m) {
  14968. return k < m;
  14969. },
  14970. 'j3o' : function (k, m) {
  14971. return k > m;
  14972. },
  14973. 'D97' : function (k, m) {
  14974. return k < m;
  14975. },
  14976. 'X9e' : function (k, m) {
  14977. return k > m;
  14978. },
  14979. 'b36' : function (k, m) {
  14980. return k > m;
  14981. },
  14982. 'X2g' : function (k, m) {
  14983. return k / m;
  14984. },
  14985. 'm53' : function (k, m) {
  14986. return k === m;
  14987. },
  14988. 'z4V' : function (k, m) {
  14989. return k > m;
  14990. },
  14991. 'V99' : function (k, m) {
  14992. return k < m;
  14993. },
  14994. 'D19' : function (k, m) {
  14995. return k * m;
  14996. },
  14997. 'T9Q' : function (k, m) {
  14998. return k < m;
  14999. },
  15000. 'h4q' : function (k, m) {
  15001. return k !== m;
  15002. },
  15003. 'T0D' : function (k, m) {
  15004. return k / m;
  15005. },
  15006. 'K9A' : function (k, m) {
  15007. return k > m;
  15008. },
  15009. 'I1B' : function (k, m) {
  15010. return k * m;
  15011. },
  15012. 'l7I' : function (k, m) {
  15013. return k >= m;
  15014. },
  15015. 'Z6J' : function (k, m) {
  15016. return k !== m;
  15017. },
  15018. 's27' : function (k, m) {
  15019. return k / m;
  15020. },
  15021. 'S9v' : function (k, m) {
  15022. return k > m;
  15023. },
  15024. 'x8P' : function (k, m) {
  15025. return k === m;
  15026. },
  15027. 'z6e' : function (k, m) {
  15028. return k & m;
  15029. },
  15030. 'f1h' : function (k, m) {
  15031. return k instanceof m;
  15032. },
  15033. 'Y7w' : function (k, m) {
  15034. return k < m;
  15035. },
  15036. 'X8w' : function (k, m) {
  15037. return k < m;
  15038. },
  15039. 'p06' : function (k, m) {
  15040. return k > m;
  15041. },
  15042. 'q0D' : function (k, m) {
  15043. return k * m;
  15044. },
  15045. 'i4R' : function (k, m) {
  15046. return k / m;
  15047. },
  15048. 'M6Q' : function (k, m) {
  15049. return k / m;
  15050. },
  15051. 'p0V' : function (k, m) {
  15052. return k * m;
  15053. },
  15054. 'y03' : function (k, m) {
  15055. return k * m;
  15056. },
  15057. 'S4L' : function (k, m) {
  15058. return k === m;
  15059. },
  15060. 'X4r' : function (k, m) {
  15061. return k / m;
  15062. },
  15063. 'L56' : function (k, m) {
  15064. return k !== m;
  15065. },
  15066. 'F8l' : function (k, m) {
  15067. return k < m;
  15068. },
  15069. 'K4D' : function (k, m) {
  15070. return k !== m;
  15071. },
  15072. 'E6q' : function (k, m) {
  15073. return k | m;
  15074. },
  15075. 'z5o' : function (k, m) {
  15076. return k == m;
  15077. },
  15078. 'x16' : function (k, m) {
  15079. return k === m;
  15080. },
  15081. 'U1q' : function (k, m) {
  15082. return k | m;
  15083. },
  15084. 'P3I' : function (k, m) {
  15085. return k < m;
  15086. },
  15087. 'p4d' : function (k, m) {
  15088. return k * m;
  15089. },
  15090. 'Z5v' : function (k, m) {
  15091. return k == m;
  15092. },
  15093. 'Y6o' : function (k, m) {
  15094. return k * m;
  15095. },
  15096. 'i2I' : function (k, m) {
  15097. return k > m;
  15098. },
  15099. 'A1e' : function (k, m, e) {
  15100. return k << m >>> e;
  15101. },
  15102. 'b2A' : function (k, m) {
  15103. return k * m;
  15104. },
  15105. 'S0A' : function (k, m) {
  15106. return k & m;
  15107. },
  15108. 'N8' : function (k, m) {
  15109. return k * m;
  15110. },
  15111. 'M74' : function (k, m) {
  15112. return k > m;
  15113. },
  15114. 'q06' : function (k, m) {
  15115. return k === m;
  15116. },
  15117. 'h84' : function (k, m) {
  15118. return k * m;
  15119. },
  15120. 'x5h' : function (k, m) {
  15121. return k === m;
  15122. },
  15123. 'Y84' : function (k, m) {
  15124. return k !== m;
  15125. },
  15126. 'n9e' : function (k, m) {
  15127. return k === m;
  15128. },
  15129. 'o69' : function (k, m) {
  15130. return k | m;
  15131. },
  15132. 'B5o' : function (k, m) {
  15133. return k !== m;
  15134. },
  15135. 'e3h' : function (k, m) {
  15136. return k instanceof m;
  15137. },
  15138. 'R97' : function (k, m) {
  15139. return k === m;
  15140. },
  15141. 'J24' : function (k, m, e) {
  15142. return k - m + e;
  15143. },
  15144. 'd8b' : function (k, m) {
  15145. return k - m;
  15146. },
  15147. 't87' : function (k, m) {
  15148. return k > m;
  15149. },
  15150. 'z2r' : function (k, m, e) {
  15151. return k * m / e;
  15152. },
  15153. 'z8v' : function (k, m) {
  15154. return k - m;
  15155. },
  15156. 'p63' : function (k, m) {
  15157. return k * m;
  15158. },
  15159. 'k2P' : function (k, m) {
  15160. return k - m;
  15161. },
  15162. 'a54' : function (k, m) {
  15163. return k < m;
  15164. },
  15165. 'X6o' : function (k, m) {
  15166. return k * m;
  15167. },
  15168. 'o3P' : function (k, m) {
  15169. return k - m;
  15170. },
  15171. 'P6v' : function (k, m) {
  15172. return k === m;
  15173. },
  15174. 'B2g' : function (k, m) {
  15175. return k / m;
  15176. },
  15177. 'b44' : function (k, m) {
  15178. return k * m;
  15179. },
  15180. 'n8g' : function (k, m) {
  15181. return k !== m;
  15182. },
  15183. 'Q3r' : function (k, m) {
  15184. return k === m;
  15185. },
  15186. 'y37' : function (k, m) {
  15187. return k >= m;
  15188. },
  15189. 'G2J' : function (k, m) {
  15190. return k >= m;
  15191. },
  15192. 'd9R' : function (k, m) {
  15193. return k >= m;
  15194. },
  15195. 'P2h' : function (k, m) {
  15196. return k === m;
  15197. }
  15198. };
  15199. (function () {
  15200. var D0 = this,
  15201. i = i || {};
  15202. i.WEBGL_RENDERER = 0,
  15203. i.CANVAS_RENDERER = 1,
  15204. i.VERSION = "v2.2.0",
  15205. i.blendModes = {
  15206. NORMAL : 0,
  15207. ADD : 1,
  15208. MULTIPLY : 2,
  15209. SCREEN : 3,
  15210. OVERLAY : 4,
  15211. DARKEN : 5,
  15212. LIGHTEN : 6,
  15213. COLOR_DODGE : 7,
  15214. COLOR_BURN : 8,
  15215. HARD_LIGHT : 9,
  15216. SOFT_LIGHT : 10,
  15217. DIFFERENCE : 11,
  15218. EXCLUSION : 12,
  15219. HUE : 13,
  15220. SATURATION : 14,
  15221. COLOR : 15,
  15222. LUMINOSITY : 16
  15223. },
  15224. i.scaleModes = {
  15225. DEFAULT : 0,
  15226. LINEAR : 0,
  15227. NEAREST : 1
  15228. },
  15229. i._UID = 0,
  15230. "undefined" != typeof Float32Array ? (i.Float32Array = Float32Array, i.Uint16Array = Uint16Array, i.Uint32Array = Uint32Array, i.ArrayBuffer = ArrayBuffer) : (i.Float32Array = Array, i.Uint16Array = Array),
  15231. i.INTERACTION_FREQUENCY = 30,
  15232. i.AUTO_PREVENT_DEFAULT = !0,
  15233. i.PI_2 = y3U.n3(2, Math.PI),
  15234. i.RAD_TO_DEG = y3U.f3(180, Math.PI),
  15235. i.DEG_TO_RAD = y3U.K3(Math.PI, 180),
  15236. i.RETINA_PREFIX = "@2x",
  15237. i.dontSayHello = !1,
  15238. i.defaultRenderOptions = {
  15239. view : null,
  15240. transparent : !1,
  15241. antialias : !1,
  15242. preserveDrawingBuffer : !1,
  15243. resolution : 1,
  15244. clearBeforeRender : !0,
  15245. autoResize : !1
  15246. },
  15247. i.sayHello = function (k) {
  15248. if (!i.dontSayHello) {
  15249. for (var J8n in r2w8n[v8n]) {
  15250. if (J8n.length == 9 && J8n.charCodeAt(8) == 116 && J8n.charCodeAt(7) == 110 && J8n.charCodeAt(0) == (0x98 >= (0x69, 1.71E2) ? (100.0E1, "e") : (77., 19) <= (5.97E2, 0xA6) ? (149., 117) : (100.2E1, 89.2E1)))
  15251. break
  15252. };
  15253. var m = function () {
  15254. i.dontSayHello = !0;
  15255. };
  15256. if (r2w8n[v8n][J8n].toLowerCase().indexOf("chrome") > -1) {
  15257. var e = ["%c %c %c Pixi.js " + i.VERSION + " - " + k + " %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ ", "background: #ff66a5", "background: #ff66a5", "color: #ff66a5; background: #030307;", "background: #ff66a5", "background: #ffc3dc", "background: #ff66a5", "color: #ff2424; background: #fff", "color: #ff2424; background: #fff", "color: #ff2424; background: #fff"];
  15258. console.log.apply(console, e);
  15259. } else
  15260. r2w8n[E8n]['console'] && console.log("Pixi.js " + i.VERSION + " - http://www.pixijs.com/");
  15261. m();
  15262. }
  15263. },
  15264. i.Polygon = function (m) {
  15265. if (y3U.B3(m, Array) || (m = Array.prototype.slice.call(arguments)), y3U.l3(m[0], i.Point)) {
  15266. var e = function (k) {
  15267. m = k;
  15268. };
  15269. for (var o = [], n = 0, u = m.length; y3U.X3(u, n); n++)
  15270. o.push(m[n].x, m[n].y);
  15271. e(o);
  15272. }
  15273. this.closed = !0,
  15274. this.points = m;
  15275. },
  15276. i.Polygon.prototype.clone = function () {
  15277. var k = this.points.slice();
  15278. return new i.Polygon(k);
  15279. },
  15280. i.Polygon.prototype.contains = function (k, m) {
  15281. for (var e = !1, o = y3U.Y3(this.points.length, 2), n = 0, u = y3U.U9(o, 1); y3U.T9(o, n); u = n++) {
  15282. var q = this.points[y3U.S9(2, n)],
  15283. f = this.points[y3U.I9(2, n) + 1],
  15284. j = this.points[y3U.C9(2, u)],
  15285. U0 = this.points[y3U.v9(2, u) + 1],
  15286. k0 = y3U.t9(f > m, U0 > m) && y3U.y9((j - q) * (m - f) / (U0 - f) + q, k);
  15287. k0 && (e = !e);
  15288. }
  15289. return e;
  15290. },
  15291. i.Polygon.prototype.constructor = i.Polygon,
  15292. i.Matrix = function () {
  15293. this.a = 1,
  15294. this.b = 0,
  15295. this.c = 0,
  15296. this.d = 1,
  15297. this.tx = 0,
  15298. this.ty = 0;
  15299. },
  15300. i.Matrix.prototype.fromArray = function (k) {
  15301. this.a = k[0],
  15302. this.b = k[1],
  15303. this.c = k[3],
  15304. this.d = k[4],
  15305. this.tx = k[2],
  15306. this.ty = k[5];
  15307. },
  15308. i.Matrix.prototype.toArray = function (k) {
  15309. this.array || (this.array = new i.Float32Array(9));
  15310. var m = this.array;
  15311. return k ? (m[0] = this.a, m[1] = this.b, m[2] = 0, m[3] = this.c, m[4] = this.d, m[5] = 0, m[6] = this.tx, m[7] = this.ty, m[8] = 1) : (m[0] = this.a, m[1] = this.c, m[2] = this.tx, m[3] = this.b, m[4] = this.d, m[5] = this.ty, m[6] = 0, m[7] = 0, m[8] = 1),
  15312. m;
  15313. },
  15314. i.Matrix.prototype.apply = function (k, m) {
  15315. return m = m || new i.Point,
  15316. m.x = y3U.o9(this.a, k.x) + y3U.M9(this.c, k.y) + this.tx,
  15317. m.y = y3U.n9(this.b, k.x) + y3U.f9(this.d, k.y) + this.ty,
  15318. m;
  15319. },
  15320. i.Matrix.prototype.applyInverse = function (k, m) {
  15321. var e = function () {
  15322. m = m || new i.Point;
  15323. };
  15324. e();
  15325. var o = 1 / (y3U.K9(this.a, this.d) + this.c * -this.b);
  15326. return m.x = y3U.B9(this.d, o, k.x) + -this.c * o * k.y + y3U.R9((this.ty * this.c - this.tx * this.d), o),
  15327. m.y = y3U.O9(this.a, o, k.y) + -this.b * o * k.x + (-this.ty * this.a + y3U.Q9(this.tx, this.b)) * o,
  15328. m;
  15329. },
  15330. i.Matrix.prototype.translate = function (k, m) {
  15331. return this.tx += k,
  15332. this.ty += m,
  15333. this;
  15334. },
  15335. i.Matrix.prototype.scale = function (k, m) {
  15336. return this.a *= k,
  15337. this.d *= m,
  15338. this.c *= k,
  15339. this.b *= m,
  15340. this.tx *= k,
  15341. this.ty *= m,
  15342. this;
  15343. },
  15344. i.Matrix.prototype.rotate = function (k) {
  15345. var m = Math.cos(k),
  15346. e = Math.sin(k),
  15347. o = this.a,
  15348. n = this.c,
  15349. u = this.tx;
  15350. return this.a = y3U.a5(o * m, this.b * e),
  15351. this.b = y3U.W5(o, e) + y3U.m5(this.b, m),
  15352. this.c = y3U.A5(n * m, this.d * e),
  15353. this.d = y3U.w5(n, e) + y3U.E5(this.d, m),
  15354. this.tx = y3U.e5(u * m, this.ty * e),
  15355. this.ty = y3U.g5(u, e) + y3U.x5(this.ty, m),
  15356. this;
  15357. },
  15358. i.Matrix.prototype.append = function (k) {
  15359. var m = this.a,
  15360. e = this.b,
  15361. o = this.c,
  15362. n = this.d;
  15363. return this.a = y3U.p5(k.a, m) + y3U.q5(k.b, o),
  15364. this.b = y3U.b5(k.a, e) + y3U.j5(k.b, n),
  15365. this.c = y3U.d5(k.c, m) + y3U.c5(k.d, o),
  15366. this.d = y3U.s5(k.c, e) + y3U.Q5(k.d, n),
  15367. this.tx = y3U.a2(k.tx, m) + y3U.W2(k.ty, o) + this.tx,
  15368. this.ty = y3U.m2(k.tx, e) + y3U.A2(k.ty, n) + this.ty,
  15369. this;
  15370. },
  15371. i.Matrix.prototype.identity = function () {
  15372. return this.a = 1,
  15373. this.b = 0,
  15374. this.c = 0,
  15375. this.d = 1,
  15376. this.tx = 0,
  15377. this.ty = 0,
  15378. this;
  15379. },
  15380. i.identityMatrix = new i.Matrix,
  15381. i.Rectangle = function (k, m, e, o) {
  15382. this.x = k || 0,
  15383. this.y = m || 0,
  15384. this.width = e || 0,
  15385. this.height = o || 0;
  15386. },
  15387. i.Rectangle.prototype.clone = function () {
  15388. return new i.Rectangle(this.x, this.y, this.width, this.height);
  15389. },
  15390. i.Rectangle.prototype.contains = function (k, m) {
  15391. if (y3U.w2(this.width, 0) || y3U.E2(this.height, 0))
  15392. return !1;
  15393. var e = this.x;
  15394. if (y3U.e2(k, e) && y3U.o2(k, e + this.width)) {
  15395. var o = this.y;
  15396. if (y3U.i2(m, o) && y3U.q2(m, o + this.height))
  15397. return !0;
  15398. }
  15399. return !1;
  15400. },
  15401. i.Rectangle.prototype.constructor = i.Rectangle,
  15402. i.EmptyRectangle = new i.Rectangle(0, 0, 0, 0),
  15403. i.RoundedRectangle = function (k, m, e, o, n) {
  15404. this.x = k || 0,
  15405. this.y = m || 0,
  15406. this.width = e || 0,
  15407. this.height = o || 0,
  15408. this.radius = n || 20;
  15409. },
  15410. i.RoundedRectangle.prototype.clone = function () {
  15411. return new i.RoundedRectangle(this.x, this.y, this.width, this.height, this.radius);
  15412. },
  15413. i.RoundedRectangle.prototype.contains = function (k, m) {
  15414. if (y3U.K2(this.width, 0) || y3U.B2(this.height, 0))
  15415. return !1;
  15416. var e = this.x;
  15417. if (y3U.l2(k, e) && y3U.X2(k, e + this.width)) {
  15418. var o = this.y;
  15419. if (y3U.V2(m, o) && y3U.k1(m, o + this.height))
  15420. return !0;
  15421. }
  15422. return !1;
  15423. },
  15424. i.RoundedRectangle.prototype.constructor = i.RoundedRectangle,
  15425. i.DisplayObject = function () {
  15426. this.position = new i.Point,
  15427. this.scale = new i.Point(1, 1),
  15428. this.transformCallback = null,
  15429. this.transformCallbackContext = null,
  15430. this.pivot = new i.Point(0, 0),
  15431. this.rotation = 0,
  15432. this.alpha = 1,
  15433. this.visible = !0,
  15434. this.hitArea = null,
  15435. this.buttonMode = !1,
  15436. this.renderable = !1,
  15437. this.parent = null,
  15438. this.stage = null,
  15439. this.worldAlpha = 1,
  15440. this._interactive = !1,
  15441. this.defaultCursor = "pointer",
  15442. this.worldTransform = new i.Matrix,
  15443. this._sr = 0,
  15444. this._cr = 1,
  15445. this.filterArea = null,
  15446. this._bounds = new i.Rectangle(0, 0, 1, 1),
  15447. this._currentBounds = null,
  15448. this._mask = null,
  15449. this._cacheAsBitmap = !1,
  15450. this._cacheIsDirty = !1;
  15451. },
  15452. i.DisplayObject.prototype.constructor = i.DisplayObject,
  15453. Object.defineProperty(i.DisplayObject.prototype, "interactive", {
  15454. get : function () {
  15455. return this._interactive;
  15456. },
  15457. set : function (k) {
  15458. this._interactive = k,
  15459. this.stage && (this.stage.dirty = !0);
  15460. }
  15461. }),
  15462. Object.defineProperty(i.DisplayObject.prototype, "worldVisible", {
  15463. get : function () {
  15464. var m = this;
  15465. do {
  15466. var e = function (k) {
  15467. m = k.parent;
  15468. };
  15469. if (!m.visible)
  15470. return !1;
  15471. e(m);
  15472. } while (m);
  15473. return !0;
  15474. }
  15475. }),
  15476. Object.defineProperty(i.DisplayObject.prototype, "mask", {
  15477. get : function () {
  15478. return this._mask;
  15479. },
  15480. set : function (k) {
  15481. this._mask && (this._mask.isMask = !1),
  15482. this._mask = k,
  15483. this._mask && (this._mask.isMask = !0);
  15484. }
  15485. }),
  15486. Object.defineProperty(i.DisplayObject.prototype, "filters", {
  15487. get : function () {
  15488. return this._filters;
  15489. },
  15490. set : function (k) {
  15491. if (k) {
  15492. for (var m = [], e = 0; y3U.G1(e, k.length); e++)
  15493. for (var o = k[e].passes, n = 0; y3U.N1(n, o.length); n++)
  15494. m.push(o[n]);
  15495. this._filterBlock = {
  15496. target : this,
  15497. filterPasses : m
  15498. };
  15499. }
  15500. this._filters = k;
  15501. }
  15502. }),
  15503. Object.defineProperty(i.DisplayObject.prototype, "cacheAsBitmap", {
  15504. get : function () {
  15505. return this._cacheAsBitmap;
  15506. },
  15507. set : function (k) {
  15508. y3U.L1(this._cacheAsBitmap, k) && (k ? this._generateCachedSprite() : this._destroyCachedSprite(), this._cacheAsBitmap = k);
  15509. }
  15510. }),
  15511. i.DisplayObject.prototype.updateTransform = function () {
  15512. var k,
  15513. m,
  15514. e,
  15515. o,
  15516. n,
  15517. u,
  15518. q = this.parent.worldTransform,
  15519. f = this.worldTransform;
  15520. y3U.z1(this.rotation, i.PI_2) ? (y3U.J1(this.rotation, this.rotationCache) && (this.rotationCache = this.rotation, this._sr = Math.sin(this.rotation), this._cr = Math.cos(this.rotation)), k = y3U.H1(this._cr, this.scale.x), m = y3U.g1(this._sr, this.scale.x), e = -this._sr * this.scale.y, o = y3U.M1(this._cr, this.scale.y), n = this.position.x, u = this.position.y, (this.pivot.x || this.pivot.y) && (n -= y3U.n1(this.pivot.x, k) + y3U.f1(this.pivot.y, e), u -= y3U.K1(this.pivot.x, m) + y3U.B1(this.pivot.y, o)), f.a = y3U.l1(k, q.a) + y3U.X1(m, q.c), f.b = y3U.V1(k, q.b) + y3U.k6(m, q.d), f.c = y3U.G6(e, q.a) + y3U.N6(o, q.c), f.d = y3U.L6(e, q.b) + y3U.z6(o, q.d), f.tx = y3U.J6(n, q.a) + y3U.H6(u, q.c) + q.tx, f.ty = y3U.h6(n, q.b) + y3U.r6(u, q.d) + q.ty) : (k = this.scale.x, o = this.scale.y, n = y3U.i6(this.position.x, this.pivot.x * k), u = y3U.u6(this.position.y, this.pivot.y * o), f.a = y3U.P6(k, q.a), f.b = y3U.D6(k, q.b), f.c = y3U.Z6(o, q.c), f.d = y3U.R6(o, q.d), f.tx = y3U.O6(n, q.a) + y3U.V6(u, q.c) + q.tx, f.ty = y3U.k8(n, q.b) + y3U.G8(u, q.d) + q.ty),
  15521. this.worldAlpha = y3U.N8(this.alpha, this.parent.worldAlpha),
  15522. this.transformCallback && this.transformCallback.call(this.transformCallbackContext, f, q);
  15523. },
  15524. i.DisplayObject.prototype.displayObjectUpdateTransform = i.DisplayObject.prototype.updateTransform,
  15525. i.DisplayObject.prototype.getBounds = function (k) {
  15526. return k = k,
  15527. i.EmptyRectangle;
  15528. },
  15529. i.DisplayObject.prototype.getLocalBounds = function () {
  15530. return this.getBounds(i.identityMatrix);
  15531. },
  15532. i.DisplayObject.prototype.setStageReference = function (k) {
  15533. this.stage = k,
  15534. this._interactive && (this.stage.dirty = !0);
  15535. },
  15536. i.DisplayObject.prototype.generateTexture = function (k, m, e) {
  15537. var o = this.getLocalBounds(),
  15538. n = new i.RenderTexture(y3U.L8(0, o.width), y3U.z8(0, o.height), e, m, k);
  15539. return i.DisplayObject._tempMatrix.tx = -o.x,
  15540. i.DisplayObject._tempMatrix.ty = -o.y,
  15541. n.render(this, i.DisplayObject._tempMatrix),
  15542. n;
  15543. },
  15544. i.DisplayObject.prototype.updateCache = function () {
  15545. this._generateCachedSprite();
  15546. },
  15547. i.DisplayObject.prototype.toGlobal = function (k) {
  15548. return this.displayObjectUpdateTransform(),
  15549. this.worldTransform.apply(k);
  15550. },
  15551. i.DisplayObject.prototype.toLocal = function (k, m) {
  15552. return m && (k = m.toGlobal(k)),
  15553. this.displayObjectUpdateTransform(),
  15554. this.worldTransform.applyInverse(k);
  15555. },
  15556. i.DisplayObject.prototype._renderCachedSprite = function (k) {
  15557. this._cachedSprite.worldAlpha = this.worldAlpha,
  15558. k.gl ? i.Sprite.prototype._renderWebGL.call(this._cachedSprite, k) : i.Sprite.prototype._renderCanvas.call(this._cachedSprite, k);
  15559. },
  15560. i.DisplayObject.prototype._generateCachedSprite = function () {
  15561. this._cacheAsBitmap = !1;
  15562. var k = this.getLocalBounds();
  15563. if (this._cachedSprite)
  15564. this._cachedSprite.texture.resize(y3U.J8(0, k.width), y3U.H8(0, k.height));
  15565. else {
  15566. var m = new i.RenderTexture(y3U.h8(0, k.width), y3U.r8(0, k.height));
  15567. this._cachedSprite = new i.Sprite(m),
  15568. this._cachedSprite.worldTransform = this.worldTransform;
  15569. }
  15570. var e = this._filters;
  15571. this._filters = null,
  15572. this._cachedSprite.filters = e,
  15573. i.DisplayObject._tempMatrix.tx = -k.x,
  15574. i.DisplayObject._tempMatrix.ty = -k.y,
  15575. this._cachedSprite.texture.render(this, i.DisplayObject._tempMatrix, !0),
  15576. this._cachedSprite.anchor.x = - (y3U.i8(k.x, k.width)),
  15577. this._cachedSprite.anchor.y = - (y3U.u8(k.y, k.height)),
  15578. this._filters = e,
  15579. this._cacheAsBitmap = !0;
  15580. },
  15581. i.DisplayObject.prototype._destroyCachedSprite = function () {
  15582. this._cachedSprite && (this._cachedSprite.texture.destroy(!0), this._cachedSprite = null);
  15583. },
  15584. i.DisplayObject.prototype._renderWebGL = function (m) {
  15585. var e = function (k) {
  15586. m = k;
  15587. };
  15588. e(m);
  15589. },
  15590. i.DisplayObject.prototype._renderCanvas = function (m) {
  15591. var e = function (k) {
  15592. m = k;
  15593. };
  15594. e(m);
  15595. },
  15596. i.DisplayObject._tempMatrix = new i.Matrix,
  15597. Object.defineProperty(i.DisplayObject.prototype, "x", {
  15598. get : function () {
  15599. return this.position.x;
  15600. },
  15601. set : function (k) {
  15602. this.position.x = k;
  15603. }
  15604. }),
  15605. Object.defineProperty(i.DisplayObject.prototype, "y", {
  15606. get : function () {
  15607. return this.position.y;
  15608. },
  15609. set : function (k) {
  15610. this.position.y = k;
  15611. }
  15612. }),
  15613. i.DisplayObjectContainer = function () {
  15614. i.DisplayObject.call(this),
  15615. this.children = [];
  15616. },
  15617. i.DisplayObjectContainer.prototype = Object.create(i.DisplayObject.prototype),
  15618. i.DisplayObjectContainer.prototype.constructor = i.DisplayObjectContainer,
  15619. Object.defineProperty(i.DisplayObjectContainer.prototype, "width", {
  15620. get : function () {
  15621. return y3U.P8(this.scale.x, this.getLocalBounds().width);
  15622. },
  15623. set : function (k) {
  15624. var m = this.getLocalBounds().width;
  15625. this.scale.x = y3U.D8(0, m) ? y3U.Z8(k, m) : 1,
  15626. this._width = k;
  15627. }
  15628. }),
  15629. Object.defineProperty(i.DisplayObjectContainer.prototype, "height", {
  15630. get : function () {
  15631. return y3U.R8(this.scale.y, this.getLocalBounds().height);
  15632. },
  15633. set : function (k) {
  15634. var m = this.getLocalBounds().height;
  15635. this.scale.y = y3U.O8(0, m) ? y3U.V8(k, m) : 1,
  15636. this._height = k;
  15637. }
  15638. }),
  15639. i.DisplayObjectContainer.prototype.addChild = function (k) {
  15640. return this.addChildAt(k, this.children.length);
  15641. },
  15642. i.DisplayObjectContainer.prototype.addChildAt = function (k, m) {
  15643. if (y3U.k0l(m, 0) && y3U.G0l(m, this.children.length))
  15644. return k.parent && k.parent.removeChild(k), k.parent = this, this.children.splice(m, 0, k), this.stage && k.setStageReference(this.stage), k;
  15645. throw new Error(k + "addChildAt: The index " + m + " supplied is out of bounds " + this.children.length);
  15646. },
  15647. i.DisplayObjectContainer.prototype.swapChildren = function (k, m) {
  15648. if (y3U.N0l(k, m)) {
  15649. var e = this.getChildIndex(k),
  15650. o = this.getChildIndex(m);
  15651. if (y3U.L0l(0, e) || y3U.z0l(0, o))
  15652. throw new Error("swapChildren: Both the supplied DisplayObjects must be a child of the caller.");
  15653. this.children[e] = m,
  15654. this.children[o] = k;
  15655. }
  15656. },
  15657. i.DisplayObjectContainer.prototype.getChildIndex = function (k) {
  15658. var m = this.children.indexOf(k);
  15659. if (-1 === m)
  15660. throw new Error("The supplied DisplayObject must be a child of the caller");
  15661. return m;
  15662. },
  15663. i.DisplayObjectContainer.prototype.setChildIndex = function (k, m) {
  15664. if (y3U.J0l(0, m) || y3U.H0l(m, this.children.length))
  15665. throw new Error("The supplied index is out of bounds");
  15666. var e = this.getChildIndex(k);
  15667. this.children.splice(e, 1),
  15668. this.children.splice(m, 0, k);
  15669. },
  15670. i.DisplayObjectContainer.prototype.getChildAt = function (k) {
  15671. if (y3U.h0l(0, k) || y3U.F0l(k, this.children.length))
  15672. throw new Error("getChildAt: Supplied index " + k + " does not exist in the child list, or the supplied DisplayObject must be a child of the caller");
  15673. return this.children[k];
  15674. },
  15675. i.DisplayObjectContainer.prototype.removeChild = function (k) {
  15676. var m = this.children.indexOf(k);
  15677. if (-1 !== m)
  15678. return this.removeChildAt(m);
  15679. },
  15680. i.DisplayObjectContainer.prototype.removeChildAt = function (k) {
  15681. var m = this.getChildAt(k);
  15682. return this.stage && m.removeStageReference(),
  15683. m.parent = void 0,
  15684. this.children.splice(k, 1),
  15685. m;
  15686. },
  15687. i.DisplayObjectContainer.prototype.removeChildren = function (k, m) {
  15688. var e = k || 0,
  15689. o = "number" == typeof m ? m : this.children.length,
  15690. n = y3U.M0l(o, e);
  15691. if (y3U.n0l(n, 0) && y3U.f0l(o, n)) {
  15692. for (var u = this.children.splice(e, n), q = 0; y3U.K0l(q, u.length); q++) {
  15693. var f = u[q];
  15694. this.stage && f.removeStageReference(),
  15695. f.parent = void 0;
  15696. }
  15697. return u;
  15698. }
  15699. if (y3U.B0l(0, n) && y3U.l0l(0, this.children.length))
  15700. return [];
  15701. throw new Error("removeChildren: Range Error, numeric values are outside the acceptable range");
  15702. },
  15703. i.DisplayObjectContainer.prototype.updateTransform = function () {
  15704. if (this.visible && (this.displayObjectUpdateTransform(), !this._cacheAsBitmap))
  15705. for (var k = 0, m = this.children.length; y3U.X0l(m, k); k++)
  15706. this.children[k].updateTransform();
  15707. },
  15708. i.DisplayObjectContainer.prototype.displayObjectContainerUpdateTransform = i.DisplayObjectContainer.prototype.updateTransform,
  15709. i.DisplayObjectContainer.prototype.getBounds = function () {
  15710. if (y3U.Y0l(0, this.children.length))
  15711. return i.EmptyRectangle;
  15712. for (var k, m, e, o = y3U.U7l(1, 0), n = y3U.T7l(1, 0), u = -1 / 0, q = -1 / 0, f = !1, j = 0, U0 = this.children.length; y3U.S7l(U0, j); j++) {
  15713. var k0 = this.children[j];
  15714. k0.visible && (f = !0, k = this.children[j].getBounds(), o = y3U.I7l(o, k.x) ? o : k.x, n = y3U.C7l(n, k.y) ? n : k.y, m = k.width + k.x, e = k.height + k.y, u = y3U.v7l(u, m) ? u : m, q = y3U.t7l(q, e) ? q : e);
  15715. }
  15716. if (!f)
  15717. return i.EmptyRectangle;
  15718. var a0 = this._bounds;
  15719. return a0.x = o,
  15720. a0.y = n,
  15721. a0.width = y3U.y7l(u, o),
  15722. a0.height = y3U.o7l(q, n),
  15723. a0;
  15724. },
  15725. i.DisplayObjectContainer.prototype.getLocalBounds = function () {
  15726. var k = this.worldTransform;
  15727. this.worldTransform = i.identityMatrix;
  15728. for (var m = 0, e = this.children.length; y3U.x7l(e, m); m++)
  15729. this.children[m].updateTransform();
  15730. var o = this.getBounds();
  15731. return this.worldTransform = k,
  15732. o;
  15733. },
  15734. i.DisplayObjectContainer.prototype.setStageReference = function (k) {
  15735. this.stage = k,
  15736. this._interactive && (this.stage.dirty = !0);
  15737. for (var m = 0, e = this.children.length; y3U.p7l(e, m); m++) {
  15738. var o = this.children[m];
  15739. o.setStageReference(k);
  15740. }
  15741. },
  15742. i.DisplayObjectContainer.prototype.removeStageReference = function () {
  15743. for (var k = 0, m = this.children.length; y3U.q7l(m, k); k++) {
  15744. var e = this.children[k];
  15745. e.removeStageReference();
  15746. }
  15747. this._interactive && (this.stage.dirty = !0),
  15748. this.stage = null;
  15749. },
  15750. i.DisplayObjectContainer.prototype._renderWebGL = function (k) {
  15751. if (this.visible && !(y3U.b7l(this.alpha, 0))) {
  15752. if (this._cacheAsBitmap)
  15753. return void this._renderCachedSprite(k);
  15754. var m,
  15755. e;
  15756. if (this._mask || this._filters) {
  15757. for (this._filters && (k.spriteBatch.flush(), k.filterManager.pushFilter(this._filterBlock)), this._mask && (k.spriteBatch.stop(), k.maskManager.pushMask(this.mask, k), k.spriteBatch.start()), m = 0, e = this.children.length; y3U.j7l(e, m); m++)
  15758. this.children[m]._renderWebGL(k);
  15759. k.spriteBatch.stop(),
  15760. this._mask && k.maskManager.popMask(this._mask, k),
  15761. this._filters && k.filterManager.popFilter(),
  15762. k.spriteBatch.start();
  15763. //1111111111111111111
  15764. } else
  15765. for (m = 0, e = this.children.length; y3U.d7l(e, m); m++)
  15766. this.children[m]._renderWebGL(k);
  15767. }
  15768. },
  15769. i.DisplayObjectContainer.prototype._renderCanvas = function (k) {
  15770. if (this.visible !== !1 && y3U.c7l(0, this.alpha)) {
  15771. if (this._cacheAsBitmap)
  15772. return void this._renderCachedSprite(k);
  15773. this._mask && k.maskManager.pushMask(this._mask, k);
  15774. for (var m = 0, e = this.children.length; y3U.s7l(e, m); m++) {
  15775. var o = this.children[m];
  15776. o._renderCanvas(k);
  15777. }
  15778. this._mask && k.maskManager.popMask(k);
  15779. }
  15780. },
  15781. i.Sprite = function (k) {
  15782. i.DisplayObjectContainer.call(this),
  15783. this.anchor = new i.Point,
  15784. this.texture = k || i.Texture.emptyTexture,
  15785. this._width = 0,
  15786. this._height = 0,
  15787. this.tint = 16777215,
  15788. this.blendMode = i.blendModes.NORMAL,
  15789. this.shader = null,
  15790. this.texture.baseTexture.hasLoaded ? this.onTextureUpdate() : this.texture.on("update", this.onTextureUpdate.bind(this)),
  15791. this.renderable = !0;
  15792. },
  15793. i.Sprite.prototype = Object.create(i.DisplayObjectContainer.prototype),
  15794. i.Sprite.prototype.constructor = i.Sprite,
  15795. Object.defineProperty(i.Sprite.prototype, "width", {
  15796. get : function () {
  15797. return y3U.Q7l(this.scale.x, this.texture.frame.width);
  15798. },
  15799. set : function (k) {
  15800. this.scale.x = y3U.a4l(k, this.texture.frame.width),
  15801. this._width = k;
  15802. }
  15803. }),
  15804. Object.defineProperty(i.Sprite.prototype, "height", {
  15805. get : function () {
  15806. return y3U.W4l(this.scale.y, this.texture.frame.height);
  15807. },
  15808. set : function (k) {
  15809. this.scale.y = y3U.m4l(k, this.texture.frame.height),
  15810. this._height = k;
  15811. }
  15812. }),
  15813. i.Sprite.prototype.setTexture = function (k) {
  15814. this.texture = k,
  15815. this.cachedTint = 16777215;
  15816. },
  15817. i.Sprite.prototype.onTextureUpdate = function () {
  15818. this._width && (this.scale.x = y3U.A4l(this._width, this.texture.frame.width)),
  15819. this._height && (this.scale.y = y3U.w4l(this._height, this.texture.frame.height));
  15820. },
  15821. i.Sprite.prototype.getBounds = function (k) {
  15822. var m = this.texture.frame.width,
  15823. e = this.texture.frame.height,
  15824. o = y3U.E4l(m, (1 - this.anchor.x)),
  15825. n = m * -this.anchor.x,
  15826. u = y3U.e4l(e, (1 - this.anchor.y)),
  15827. q = e * -this.anchor.y,
  15828. f = k || this.worldTransform,
  15829. j = f.a,
  15830. U0 = f.b,
  15831. k0 = f.c,
  15832. a0 = f.d,
  15833. T0 = f.tx,
  15834. G0 = f.ty,
  15835. W0 = -1 / 0,
  15836. N0 = -1 / 0,
  15837. S0 = y3U.g4l(1, 0),
  15838. I0 = y3U.r4l(1, 0);
  15839. if (y3U.i4l(0, U0) && y3U.u4l(0, k0))
  15840. y3U.P4l(0, j) && (j *= -1), y3U.D4l(0, a0) && (a0 *= -1), S0 = y3U.Z4l(j, n) + T0, W0 = y3U.R4l(j, o) + T0, I0 = y3U.O4l(a0, q) + G0, N0 = y3U.V4l(a0, u) + G0;
  15841. else {
  15842. var m0 = y3U.k3l(j, n) + y3U.G3l(k0, q) + T0,
  15843. A0 = y3U.N3l(a0, q) + y3U.L3l(U0, n) + G0,
  15844. L0 = y3U.z3l(j, o) + y3U.J3l(k0, q) + T0,
  15845. z0 = y3U.H3l(a0, q) + y3U.h3l(U0, o) + G0,
  15846. E0 = y3U.F3l(j, o) + y3U.M3l(k0, u) + T0,
  15847. v0 = y3U.n3l(a0, u) + y3U.f3l(U0, o) + G0,
  15848. J0 = y3U.K3l(j, n) + y3U.B3l(k0, u) + T0,
  15849. t0 = y3U.l3l(a0, u) + y3U.X3l(U0, n) + G0;
  15850. S0 = y3U.Y3l(S0, m0) ? m0 : S0,
  15851. S0 = y3U.U9l(S0, L0) ? L0 : S0,
  15852. S0 = y3U.T9l(S0, E0) ? E0 : S0,
  15853. S0 = y3U.S9l(S0, J0) ? J0 : S0,
  15854. I0 = y3U.I9l(I0, A0) ? A0 : I0,
  15855. I0 = y3U.C9l(I0, z0) ? z0 : I0,
  15856. I0 = y3U.v9l(I0, v0) ? v0 : I0,
  15857. I0 = y3U.t9l(I0, t0) ? t0 : I0,
  15858. W0 = y3U.y9l(m0, W0) ? m0 : W0,
  15859. W0 = y3U.o9l(L0, W0) ? L0 : W0,
  15860. W0 = y3U.x9l(E0, W0) ? E0 : W0,
  15861. W0 = y3U.p9l(J0, W0) ? J0 : W0,
  15862. N0 = y3U.q9l(A0, N0) ? A0 : N0,
  15863. N0 = y3U.b9l(z0, N0) ? z0 : N0,
  15864. N0 = y3U.j9l(v0, N0) ? v0 : N0,
  15865. N0 = y3U.d9l(t0, N0) ? t0 : N0;
  15866. }
  15867. var w0 = this._bounds;
  15868. return w0.x = S0,
  15869. w0.width = y3U.c9l(W0, S0),
  15870. w0.y = I0,
  15871. w0.height = y3U.s9l(N0, I0),
  15872. this._currentBounds = w0,
  15873. w0;
  15874. },
  15875. i.Sprite.prototype._renderWebGL = function (k) {
  15876. if (this.visible && !(y3U.Q9l(this.alpha, 0)) && this.renderable) {
  15877. var m,
  15878. e;
  15879. if (this._mask || this._filters) {
  15880. var o = k.spriteBatch;
  15881. for (this._filters && (o.flush(), k.filterManager.pushFilter(this._filterBlock)), this._mask && (o.stop(), k.maskManager.pushMask(this.mask, k), o.start()), o.render(this), m = 0, e = this.children.length; y3U.a5l(e, m); m++)
  15882. this.children[m]._renderWebGL(k);
  15883. o.stop(),
  15884. this._mask && k.maskManager.popMask(this._mask, k),
  15885. this._filters && k.filterManager.popFilter(),
  15886. o.start();
  15887. } else
  15888. for (k.spriteBatch.render(this), m = 0, e = this.children.length; y3U.W5l(e, m); m++)
  15889. this.children[m]._renderWebGL(k);
  15890. }
  15891. },
  15892. i.Sprite.prototype._renderCanvas = function (k) {
  15893. if (!(this.visible === !1 || y3U.m5l(0, this.alpha) || this.renderable === !1 || y3U.A5l(this.texture.crop.width, 0) || y3U.w5l(this.texture.crop.height, 0))) {
  15894. if (y3U.E5l(this.blendMode, k.currentBlendMode) && (k.currentBlendMode = this.blendMode, k.context.globalCompositeOperation = i.blendModesCanvas[k.currentBlendMode]), this._mask && k.maskManager.pushMask(this._mask, k), this.texture.valid) {
  15895. var m = y3U.e5l(this.texture.baseTexture.resolution, k.resolution);
  15896. k.context.globalAlpha = this.worldAlpha,
  15897. k.smoothProperty && y3U.g5l(k.scaleMode, this.texture.baseTexture.scaleMode) && (k.scaleMode = this.texture.baseTexture.scaleMode, k.context[k.smoothProperty] = y3U.r5l(k.scaleMode, i.scaleModes.LINEAR));
  15898. var e = this.texture.trim ? y3U.i5l(this.texture.trim.x, this.anchor.x * this.texture.trim.width) : this.anchor.x * -this.texture.frame.width,
  15899. o = this.texture.trim ? y3U.u5l(this.texture.trim.y, this.anchor.y * this.texture.trim.height) : this.anchor.y * -this.texture.frame.height;
  15900. k.roundPixels ? (k.context.setTransform(this.worldTransform.a, this.worldTransform.b, this.worldTransform.c, this.worldTransform.d, y3U.P5l(this.worldTransform.tx * k.resolution, 0), y3U.D5l(this.worldTransform.ty * k.resolution, 0)), e = y3U.Z5l(0, e), o = y3U.R5l(0, o)) : k.context.setTransform(this.worldTransform.a, this.worldTransform.b, this.worldTransform.c, this.worldTransform.d, y3U.O5l(this.worldTransform.tx, k.resolution), y3U.V5l(this.worldTransform.ty, k.resolution)),
  15901. y3U.k2l(16777215, this.tint) ? (y3U.G2l(this.cachedTint, this.tint) && (this.cachedTint = this.tint, this.tintedTexture = i.CanvasTinter.getTintedTexture(this, this.tint)), k.context.drawImage(this.tintedTexture, 0, 0, this.texture.crop.width, this.texture.crop.height, y3U.N2l(e, m), y3U.L2l(o, m), y3U.z2l(this.texture.crop.width, m), y3U.J2l(this.texture.crop.height, m))) : k.context.drawImage(this.texture.baseTexture.source, this.texture.crop.x, this.texture.crop.y, this.texture.crop.width, this.texture.crop.height, y3U.H2l(e, m), y3U.h2l(o, m), y3U.F2l(this.texture.crop.width, m), y3U.M2l(this.texture.crop.height, m));
  15902. }
  15903. for (var n = 0, u = this.children.length; y3U.n2l(u, n); n++)
  15904. this.children[n]._renderCanvas(k);
  15905. this._mask && k.maskManager.popMask(k);
  15906. }
  15907. },
  15908. i.Sprite.fromFrame = function (k) {
  15909. var m = i.TextureCache[k];
  15910. if (!m)
  15911. throw new Error('The frameId "' + k + '" does not exist in the texture cache' + this);
  15912. return new i.Sprite(m);
  15913. },
  15914. i.Sprite.fromImage = function (k, m, e) {
  15915. var o = i.Texture.fromImage(k, m, e);
  15916. return new i.Sprite(o);
  15917. },
  15918. i.SpriteBatch = function (k) {
  15919. i.DisplayObjectContainer.call(this),
  15920. this.textureThing = k,
  15921. this.ready = !1;
  15922. },
  15923. i.SpriteBatch.prototype = Object.create(i.DisplayObjectContainer.prototype),
  15924. i.SpriteBatch.prototype.constructor = i.SpriteBatch,
  15925. i.SpriteBatch.prototype.initWebGL = function (k) {
  15926. this.fastSpriteBatch = new i.WebGLFastSpriteBatch(k),
  15927. this.ready = !0;
  15928. },
  15929. i.SpriteBatch.prototype.updateTransform = function () {
  15930. this.displayObjectUpdateTransform();
  15931. },
  15932. i.SpriteBatch.prototype._renderWebGL = function (k) {
  15933. !this.visible || y3U.f2l(this.alpha, 0) || !this.children.length || (this.ready || this.initWebGL(k.gl), k.spriteBatch.stop(), k.shaderManager.setShader(k.shaderManager.fastShader), this.fastSpriteBatch.begin(this, k), this.fastSpriteBatch.render(this), k.spriteBatch.start());
  15934. },
  15935. i.SpriteBatch.prototype._renderCanvas = function (k) {
  15936. if (this.visible && !(y3U.K2l(this.alpha, 0)) && this.children.length) {
  15937. var m = k.context;
  15938. m.globalAlpha = this.worldAlpha,
  15939. this.displayObjectUpdateTransform();
  15940. for (var e = this.worldTransform, o = !0, n = 0; y3U.B2l(n, this.children.length); n++) {
  15941. var u = this.children[n];
  15942. if (u.visible) {
  15943. var q = u.texture,
  15944. f = q.frame;
  15945. if (m.globalAlpha = y3U.l2l(this.worldAlpha, u.alpha), y3U.X2l(u.rotation % (2 * Math.PI), 0))
  15946. o && (m.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty), o = !1), m.drawImage(q.baseTexture.source, f.x, f.y, f.width, f.height, u.anchor.x * -f.width * u.scale.x + u.position.x + .5 | 0, u.anchor.y * -f.height * u.scale.y + u.position.y + .5 | 0, y3U.Y2l(f.width, u.scale.x), y3U.U1l(f.height, u.scale.y));
  15947. else {
  15948. o || (o = !0),
  15949. u.displayObjectUpdateTransform();
  15950. var j = u.worldTransform;
  15951. k.roundPixels ? m.setTransform(j.a, j.b, j.c, j.d, y3U.T1l(0, j.tx), y3U.S1l(0, j.ty)) : m.setTransform(j.a, j.b, j.c, j.d, j.tx, j.ty),
  15952. m.drawImage(q.baseTexture.source, f.x, f.y, f.width, f.height, u.anchor.x * -f.width + .5 | 0, u.anchor.y * -f.height + .5 | 0, f.width, f.height);
  15953. }
  15954. }
  15955. }
  15956. }
  15957. },
  15958. i.FilterBlock = function () {
  15959. this.visible = !0,
  15960. this.renderable = !0;
  15961. },
  15962. i.FilterBlock.prototype.constructor = i.FilterBlock,
  15963. i.Text = function (k, m) {
  15964. this.canvas = r2w8n[H8n]['createElement']("canvas"),
  15965. this.context = this.canvas.getContext("2d"),
  15966. this.resolution = 1,
  15967. i.Sprite.call(this, i.Texture.fromCanvas(this.canvas)),
  15968. this.setText(k),
  15969. this.setStyle(m);
  15970. },
  15971. i.Text.prototype = Object.create(i.Sprite.prototype),
  15972. i.Text.prototype.constructor = i.Text,
  15973. Object.defineProperty(i.Text.prototype, "width", {
  15974. get : function () {
  15975. return this.dirty && (this.updateText(), this.dirty = !1),
  15976. y3U.I1l(this.scale.x, this.texture.frame.width);
  15977. },
  15978. set : function (k) {
  15979. this.scale.x = y3U.C1l(k, this.texture.frame.width),
  15980. this._width = k;
  15981. }
  15982. }),
  15983. Object.defineProperty(i.Text.prototype, "height", {
  15984. get : function () {
  15985. return this.dirty && (this.updateText(), this.dirty = !1),
  15986. y3U.v1l(this.scale.y, this.texture.frame.height);
  15987. },
  15988. set : function (k) {
  15989. this.scale.y = y3U.t1l(k, this.texture.frame.height),
  15990. this._height = k;
  15991. }
  15992. }),
  15993. i.Text.prototype.setStyle = function (k) {
  15994. k = k || {},
  15995. k.font = k.font || "bold 20pt Arial",
  15996. k.fill = k.fill || "black",
  15997. k.align = k.align || "left",
  15998. k.stroke = k.stroke || "black",
  15999. k.strokeThickness = k.strokeThickness || 0,
  16000. k.wordWrap = k.wordWrap || !1,
  16001. k.wordWrapWidth = k.wordWrapWidth || 100,
  16002. k.dropShadow = k.dropShadow || !1,
  16003. k.dropShadowAngle = k.dropShadowAngle || y3U.y1l(Math.PI, 6),
  16004. k.dropShadowDistance = k.dropShadowDistance || 4,
  16005. k.dropShadowColor = k.dropShadowColor || "black",
  16006. this.style = k,
  16007. this.dirty = !0;
  16008. },
  16009. i.Text.prototype.setText = function (k) {
  16010. this.text = k.toString() || " ",
  16011. this.dirty = !0;
  16012. },
  16013. i.Text.prototype.updateText = function () {
  16014. this.texture.baseTexture.resolution = this.resolution,
  16015. this.context.font = this.style.font;
  16016. var k = this.text;
  16017. this.style.wordWrap && (k = this.wordWrap(this.text));
  16018. for (var m = k.split(/(?:\r\n|\r|\n)/), e = [], o = 0, n = this.determineFontProperties(this.style.font), u = 0; y3U.o1l(u, m.length); u++) {
  16019. var q = this.context.measureText(m[u]).width;
  16020. e[u] = q,
  16021. o = Math.max(o, q);
  16022. }
  16023. var f = o + this.style.strokeThickness;
  16024. this.style.dropShadow && (f += this.style.dropShadowDistance),
  16025. this.canvas.width = y3U.x1l((f + this.context.lineWidth), this.resolution);
  16026. var j = n.fontSize + this.style.strokeThickness,
  16027. U0 = y3U.p1l(j, m.length);
  16028. this.style.dropShadow && (U0 += this.style.dropShadowDistance),
  16029. this.canvas.height = y3U.q1l(U0, this.resolution),
  16030. this.context.scale(this.resolution, this.resolution),
  16031. r2w8n[v8n].isCocoonJS && this.context.clearRect(0, 0, this.canvas.width, this.canvas.height),
  16032. this.context.font = this.style.font,
  16033. this.context.strokeStyle = this.style.stroke,
  16034. this.context.lineWidth = this.style.strokeThickness,
  16035. this.context.textBaseline = "alphabetic";
  16036. var k0,
  16037. a0;
  16038. if (this.style.dropShadow) {
  16039. this.context.fillStyle = this.style.dropShadowColor;
  16040. var T0 = y3U.b1l(Math.sin(this.style.dropShadowAngle), this.style.dropShadowDistance),
  16041. G0 = y3U.j1l(Math.cos(this.style.dropShadowAngle), this.style.dropShadowDistance);
  16042. for (u = 0; y3U.d1l(u, m.length); u++)
  16043. k0 = y3U.c1l(this.style.strokeThickness, 2), a0 = y3U.s1l(this.style.strokeThickness, 2) + y3U.Q1l(u, j) + n.ascent, y3U.a6l("right", this.style.align) ? k0 += y3U.W6l(o, e[u]) : y3U.m6l("center", this.style.align) && (k0 += y3U.A6l((o - e[u]), 2)), this.style.fill && this.context.fillText(m[u], k0 + T0, a0 + G0);
  16044. }
  16045. for (this.context.fillStyle = this.style.fill, u = 0; y3U.w6l(u, m.length); u++)
  16046. k0 = y3U.E6l(this.style.strokeThickness, 2), a0 = y3U.e6l(this.style.strokeThickness, 2) + y3U.g6l(u, j) + n.ascent, y3U.r6l("right", this.style.align) ? k0 += y3U.i6l(o, e[u]) : y3U.u6l("center", this.style.align) && (k0 += y3U.P6l((o - e[u]), 2)), this.style.stroke && this.style.strokeThickness && this.context.strokeText(m[u], k0, a0), this.style.fill && this.context.fillText(m[u], k0, a0);
  16047. this.updateTexture();
  16048. },
  16049. i.Text.prototype.updateTexture = function () {
  16050. this.texture.baseTexture.width = this.canvas.width,
  16051. this.texture.baseTexture.height = this.canvas.height,
  16052. this.texture.crop.width = this.texture.frame.width = this.canvas.width,
  16053. this.texture.crop.height = this.texture.frame.height = this.canvas.height,
  16054. this._width = this.canvas.width,
  16055. this._height = this.canvas.height,
  16056. this.texture.baseTexture.dirty();
  16057. },
  16058. i.Text.prototype._renderWebGL = function (k) {
  16059. this.dirty && (this.resolution = k.resolution, this.updateText(), this.dirty = !1),
  16060. i.Sprite.prototype._renderWebGL.call(this, k);
  16061. },
  16062. i.Text.prototype._renderCanvas = function (k) {
  16063. this.dirty && (this.resolution = k.resolution, this.updateText(), this.dirty = !1),
  16064. i.Sprite.prototype._renderCanvas.call(this, k);
  16065. },
  16066. i.Text.prototype.determineFontProperties = function (m) {
  16067. var e = i.Text.fontPropertiesCache[m];
  16068. if (!e) {
  16069. var o = function (k) {
  16070. u.font = k;
  16071. };
  16072. e = {};
  16073. var n = i.Text.fontPropertiesCanvas,
  16074. u = i.Text.fontPropertiesContext;
  16075. o(m);
  16076. var q = Math.ceil(u.measureText("|Mq").width),
  16077. f = Math.ceil(u.measureText("M").width),
  16078. j = y3U.D6l(2, f);
  16079. f = y3U.Z6l(1.4 * f, 0),
  16080. n.width = q,
  16081. n.height = j,
  16082. u.fillStyle = "#f00",
  16083. u.fillRect(0, 0, q, j),
  16084. u.font = m,
  16085. u.textBaseline = "alphabetic",
  16086. u.fillStyle = "#000",
  16087. u.fillText("|MÉq", 0, f);
  16088. var U0,
  16089. k0,
  16090. a0 = u.getImageData(0, 0, q, j).data,
  16091. T0 = a0.length,
  16092. G0 = y3U.R6l(4, q),
  16093. W0 = 0,
  16094. N0 = !1;
  16095. for (U0 = 0; y3U.O6l(f, U0); U0++) {
  16096. for (k0 = 0; y3U.V6l(G0, k0); k0 += 4)
  16097. if (y3U.k8l(255, a0[W0 + k0])) {
  16098. var S0 = function () {
  16099. N0 = !0;
  16100. };
  16101. S0();
  16102. break;
  16103. }
  16104. if (N0)
  16105. break;
  16106. W0 += G0;
  16107. }
  16108. for (e.ascent = y3U.G8l(f, U0), W0 = y3U.N8l(T0, G0), N0 = !1, U0 = j; y3U.L8l(U0, f); U0--) {
  16109. for (k0 = 0; y3U.z8l(G0, k0); k0 += 4)
  16110. if (y3U.J8l(255, a0[W0 + k0])) {
  16111. var I0 = function () {
  16112. N0 = !0;
  16113. };
  16114. I0();
  16115. break;
  16116. }
  16117. if (N0)
  16118. break;
  16119. W0 -= G0;
  16120. }
  16121. e.descent = y3U.H8l(U0, f),
  16122. e.descent += 6,
  16123. e.fontSize = e.ascent + e.descent,
  16124. i.Text.fontPropertiesCache[m] = e;
  16125. }
  16126. return e;
  16127. },
  16128. i.Text.prototype.wordWrap = function (k) {
  16129. for (var m = "", e = k.split("\n"), o = 0; y3U.h8l(o, e.length); o++) {
  16130. for (var n = this.style.wordWrapWidth, u = e[o].split(" "), q = 0; y3U.F8l(q, u.length); q++) {
  16131. var f = this.context.measureText(u[q]).width,
  16132. j = f + this.context.measureText(" ").width;
  16133. y3U.M8l(0, q) || y3U.n8l(j, n) ? (y3U.f8l(q, 0) && (m += "\n"), m += u[q], n = y3U.K8l(this.style.wordWrapWidth, f)) : (n -= j, m += " " + u[q]);
  16134. }
  16135. y3U.B8l(o, e.length - 1) && (m += "\n");
  16136. }
  16137. return m;
  16138. },
  16139. i.Text.prototype.getBounds = function (k) {
  16140. return this.dirty && (this.updateText(), this.dirty = !1),
  16141. i.Sprite.prototype.getBounds.call(this, k);
  16142. },
  16143. i.Text.prototype.destroy = function (k) {
  16144. this.context = null,
  16145. this.canvas = null,
  16146. this.texture.destroy(void 0 === k ? !0 : k);
  16147. },
  16148. i.Text.fontPropertiesCache = {},
  16149. i.Text.fontPropertiesCanvas = r2w8n[H8n]['createElement']("canvas"),
  16150. i.Text.fontPropertiesContext = i.Text.fontPropertiesCanvas.getContext("2d"),
  16151. i.BitmapText = function (k, m) {
  16152. i.DisplayObjectContainer.call(this),
  16153. this.textWidth = 0,
  16154. this.textHeight = 0,
  16155. this._pool = [],
  16156. this.setText(k),
  16157. this.setStyle(m),
  16158. this.updateText(),
  16159. this.dirty = !1;
  16160. },
  16161. i.BitmapText.prototype = Object.create(i.DisplayObjectContainer.prototype),
  16162. i.BitmapText.prototype.constructor = i.BitmapText,
  16163. i.BitmapText.prototype.setText = function (k) {
  16164. this.text = k || " ",
  16165. this.dirty = !0;
  16166. },
  16167. i.BitmapText.prototype.setStyle = function (k) {
  16168. k = k || {},
  16169. k.align = k.align || "left",
  16170. this.style = k;
  16171. var m = k.font.split(" ");
  16172. this.fontName = m[y3U.l8l(m.length, 1)],
  16173. this.fontSize = y3U.X8l(m.length, 2) ? parseInt(m[y3U.Y8l(m.length, 2)], 10) : i.BitmapText.fonts[this.fontName].size,
  16174. this.dirty = !0,
  16175. this.tint = k.tint;
  16176. },
  16177. i.BitmapText.prototype.updateText = function () {
  16178. for (var k = i.BitmapText.fonts[this.fontName], m = new i.Point, e = null, o = [], n = 0, u = [], q = 0, f = y3U.U0V(this.fontSize, k.size), j = 0; y3U.T0V(j, this.text.length); j++) {
  16179. var U0 = this.text.charCodeAt(j);
  16180. if (/(?:\r\n|\r|\n)/.test(this.text.charAt(j)))
  16181. u.push(m.x), n = Math.max(n, m.x), q++, m.x = 0, m.y += k.lineHeight, e = null;
  16182. else {
  16183. var k0 = k.chars[U0];
  16184. k0 && (e && k0.kerning[e] && (m.x += k0.kerning[e]), o.push({
  16185. texture : k0.texture,
  16186. line : q,
  16187. charCode : U0,
  16188. position : new i.Point(m.x + k0.xOffset, m.y + k0.yOffset)
  16189. }), m.x += k0.xAdvance, e = U0);
  16190. }
  16191. }
  16192. u.push(m.x),
  16193. n = Math.max(n, m.x);
  16194. var a0 = [];
  16195. for (j = 0; y3U.S0V(q, j); j++) {
  16196. var T0 = 0;
  16197. y3U.I0V("right", this.style.align) ? T0 = y3U.C0V(n, u[j]) : y3U.v0V("center", this.style.align) && (T0 = y3U.t0V((n - u[j]), 2)),
  16198. a0.push(T0);
  16199. }
  16200. var G0 = this.children.length,
  16201. W0 = o.length,
  16202. N0 = this.tint || 16777215;
  16203. for (j = 0; y3U.y0V(W0, j); j++) {
  16204. var S0 = y3U.o0V(G0, j) ? this.children[j] : this._pool.pop();
  16205. S0 ? S0.setTexture(o[j].texture) : S0 = new i.Sprite(o[j].texture),
  16206. S0.position.x = y3U.x0V((o[j].position.x + a0[o[j].line]), f),
  16207. S0.position.y = y3U.p0V(o[j].position.y, f),
  16208. S0.scale.x = S0.scale.y = f,
  16209. S0.tint = N0,
  16210. S0.parent || this.addChild(S0);
  16211. }
  16212. for (; y3U.q0V(this.children.length, W0); ) {
  16213. var I0 = this.getChildAt(y3U.b0V(this.children.length, 1));
  16214. this._pool.push(I0),
  16215. this.removeChild(I0);
  16216. }
  16217. this.textWidth = y3U.j0V(n, f),
  16218. this.textHeight = y3U.d0V((m.y + k.lineHeight), f);
  16219. },
  16220. i.BitmapText.prototype.updateTransform = function () {
  16221. this.dirty && (this.updateText(), this.dirty = !1),
  16222. i.DisplayObjectContainer.prototype.updateTransform.call(this);
  16223. },
  16224. i.BitmapText.fonts = {},
  16225. i.Stage = function (k) {
  16226. i.DisplayObjectContainer.call(this),
  16227. this.worldTransform = new i.Matrix,
  16228. this.interactive = !0,
  16229. this.interactionManager = new i.InteractionManager(this),
  16230. this.dirty = !0,
  16231. this.stage = this,
  16232. this.stage.hitArea = new i.Rectangle(0, 0, 1e5, 1e5),
  16233. this.setBackgroundColor(k);
  16234. },
  16235. i.Stage.prototype = Object.create(i.DisplayObjectContainer.prototype),
  16236. i.Stage.prototype.constructor = i.Stage,
  16237. i.Stage.prototype.setInteractionDelegate = function (k) {
  16238. this.interactionManager.setTargetDomElement(k);
  16239. },
  16240. i.Stage.prototype.updateTransform = function () {
  16241. this.worldAlpha = 1;
  16242. for (var k = 0, m = this.children.length; y3U.c0V(m, k); k++)
  16243. this.children[k].updateTransform();
  16244. this.dirty && (this.dirty = !1, this.interactionManager.dirty = !0),
  16245. this.interactive && this.interactionManager.update();
  16246. },
  16247. i.Stage.prototype.setBackgroundColor = function (k) {
  16248. this.backgroundColor = k || 0,
  16249. this.backgroundColorSplit = i.hex2rgb(this.backgroundColor);
  16250. var m = this.backgroundColor.toString(16);
  16251. m = "000000".substr(0, y3U.s0V(6, m.length)) + m,
  16252. this.backgroundColorString = "#" + m;
  16253. },
  16254. i.Stage.prototype.getMousePosition = function () {
  16255. return this.interactionManager.mouse.global;
  16256. },
  16257. function (n) {
  16258. for (var u = 0, q = ["ms", "moz", "webkit", "o"], f = 0; y3U.Q0V(f, q.length) && !n.requestAnimationFrame; ++f)
  16259. n.requestAnimationFrame = n[q[f] + "RequestAnimationFrame"], n.cancelAnimationFrame = n[q[f] + "CancelAnimationFrame"] || n[q[f] + "CancelRequestAnimationFrame"];
  16260. n.requestAnimationFrame || (n.requestAnimationFrame = function (k) {
  16261. var m = (new Date).getTime(),
  16262. e = Math.max(0, y3U.a7V(16, (m - u))),
  16263. o = n.setTimeout(function () {
  16264. k(m + e);
  16265. }, e);
  16266. return u = m + e,
  16267. o;
  16268. }),
  16269. n.cancelAnimationFrame || (n.cancelAnimationFrame = function (k) {
  16270. clearTimeout(k);
  16271. }),
  16272. n.requestAnimFrame = n.requestAnimationFrame;
  16273. }
  16274. (this),
  16275. i.hex2rgb = function (k) {
  16276. return [y3U.W7V((k >> 16 & 255), 255), y3U.m7V((k >> 8 & 255), 255), y3U.A7V((255 & k), 255)];
  16277. },
  16278. i.rgb2hex = function (k) {
  16279. return (y3U.w7V(255 * k[0], 16)) + (y3U.E7V(255 * k[1], 8)) + y3U.e7V(255, k[2]);
  16280. },
  16281. "function" != typeof Function.prototype.bind && (Function.prototype.bind = function () {
  16282. return function (e) {
  16283. function o() {
  16284. for (var k = arguments.length, m = new Array(k); k--; )
  16285. m[k] = arguments[k];
  16286. return m = q.concat(m),
  16287. n.apply(y3U.g7V(this, o) ? this : e, m);
  16288. }
  16289. var n = this,
  16290. u = y3U.r7V(arguments.length, 1),
  16291. q = [];
  16292. if (y3U.i7V(u, 0))
  16293. for (q.length = u; u--; )
  16294. q[u] = arguments[u + 1];
  16295. if ("function" != typeof n)
  16296. throw new TypeError;
  16297. return o.prototype = function f(k) {
  16298. return k && (f.prototype = k),
  16299. y3U.u7V(this, f) ? void 0 : new f;
  16300. }
  16301. (n.prototype),
  16302. o;
  16303. };
  16304. }
  16305. ()),
  16306. i.AjaxRequest = function () {
  16307. var m = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Microsoft.XMLHTTP"];
  16308. if (!r2w8n[E8n].ActiveXObject)
  16309. return r2w8n[E8n]['XMLHttpRequest'] ? new r2w8n[E8n]['XMLHttpRequest'] : !1;
  16310. for (var e = 0; y3U.P7V(e, m.length); e++)
  16311. try {
  16312. return new r2w8n[E8n].ActiveXObject(m[e]);
  16313. } catch (k) {}
  16314. },
  16315. i.canUseNewCanvasBlendModes = function () {
  16316. if ("undefined" == typeof document)
  16317. return !1;
  16318. var k = r2w8n[H8n]['createElement']("canvas");
  16319. k.width = 1,
  16320. k.height = 1;
  16321. var m = k.getContext("2d");
  16322. return m.fillStyle = "#000",
  16323. m.fillRect(0, 0, 1, 1),
  16324. m.globalCompositeOperation = "multiply",
  16325. m.fillStyle = "#fff",
  16326. m.fillRect(0, 0, 1, 1),
  16327. y3U.D7V(0, m.getImageData(0, 0, 1, 1).data[0]);
  16328. },
  16329. i.getNextPowerOfTwo = function (k) {
  16330. if (y3U.Z7V(k, 0) && y3U.R7V(0, (k & k - 1)))
  16331. return k;
  16332. for (var m = 1; y3U.O7V(k, m); )
  16333. m <<= 1;
  16334. return m;
  16335. },
  16336. i.isPowerOfTwo = function (k, m) {
  16337. return y3U.V7V(k, 0) && y3U.k4V(0, (k & k - 1)) && y3U.G4V(m, 0) && y3U.N4V(0, (m & m - 1));
  16338. },
  16339. i.EventTarget = {
  16340. call : function (k) {
  16341. k && (k = k.prototype || k, i.EventTarget.mixin(k));
  16342. },
  16343. mixin : function (q) {
  16344. q.listeners = function (k) {
  16345. return this._listeners = this._listeners || {},
  16346. this._listeners[k] ? this._listeners[k].slice() : [];
  16347. },
  16348. q.emit = q.dispatchEvent = function (k, m) {
  16349. if (this._listeners = this._listeners || {}, "object" == typeof k && (m = k, k = k.type), m && m.__isEventObject === !0 || (m = new i.Event(this, k, m)), this._listeners && this._listeners[k]) {
  16350. var e,
  16351. o = this._listeners[k].slice(0),
  16352. n = o.length,
  16353. u = o[0];
  16354. for (e = 0; y3U.L4V(n, e); u = o[++e])
  16355. if (u.call(this, m), m.stoppedImmediate)
  16356. return this;
  16357. if (m.stopped)
  16358. return this;
  16359. }
  16360. return this.parent && this.parent.emit && this.parent.emit.call(this.parent, k, m),
  16361. this;
  16362. },
  16363. q.on = q.addEventListener = function (k, m) {
  16364. return this._listeners = this._listeners || {},
  16365. (this._listeners[k] = this._listeners[k] || []).push(m),
  16366. this;
  16367. },
  16368. q.once = function (k, m) {
  16369. function e() {
  16370. m.apply(o.off(k, e), arguments);
  16371. }
  16372. this._listeners = this._listeners || {};
  16373. var o = this;
  16374. return e._originalHandler = m,
  16375. this.on(k, e);
  16376. },
  16377. q.off = q.removeEventListener = function (k, m) {
  16378. if (this._listeners = this._listeners || {}, !this._listeners[k])
  16379. return this;
  16380. for (var e = this._listeners[k], o = m ? e.length : 0; y3U.z4V(o--, 0); )
  16381. (y3U.J4V(e[o], m) || y3U.H4V(e[o]._originalHandler, m)) && e.splice(o, 1);
  16382. return y3U.h4V(0, e.length) && delete this._listeners[k],
  16383. this;
  16384. },
  16385. q.removeAllListeners = function (k) {
  16386. return this._listeners = this._listeners || {},
  16387. this._listeners[k] ? (delete this._listeners[k], this) : this;
  16388. };
  16389. }
  16390. },
  16391. i.Event = function (k, m, e) {
  16392. this.__isEventObject = !0,
  16393. this.stopped = !1,
  16394. this.stoppedImmediate = !1,
  16395. this.target = k,
  16396. this.type = m,
  16397. this.data = e,
  16398. this.content = e,
  16399. this.timeStamp = Date.now();
  16400. },
  16401. i.Event.prototype.stopPropagation = function () {
  16402. this.stopped = !0;
  16403. },
  16404. i.Event.prototype.stopImmediatePropagation = function () {
  16405. this.stoppedImmediate = !0;
  16406. },
  16407. i.PolyK = {},
  16408. i.PolyK.Triangulate = function (m) {
  16409. var e = function (k) {
  16410. f = k;
  16411. },
  16412. o = !0,
  16413. n = y3U.F4V(m.length, 1);
  16414. if (y3U.M4V(3, n))
  16415. return [];
  16416. for (var u = [], q = [], f = 0; y3U.n4V(n, f); f++)
  16417. q.push(f);
  16418. e(0);
  16419. for (var j = n; y3U.f4V(j, 3); ) {
  16420. var U0 = q[y3U.K4V((f + 0), j)],
  16421. k0 = q[y3U.B4V((f + 1), j)],
  16422. a0 = q[y3U.l4V((f + 2), j)],
  16423. T0 = m[y3U.X4V(2, U0)],
  16424. G0 = m[y3U.Y4V(2, U0) + 1],
  16425. W0 = m[y3U.U3V(2, k0)],
  16426. N0 = m[y3U.T3V(2, k0) + 1],
  16427. S0 = m[y3U.S3V(2, a0)],
  16428. I0 = m[y3U.I3V(2, a0) + 1],
  16429. m0 = !1;
  16430. if (i.PolyK._convex(T0, G0, W0, N0, S0, I0, o)) {
  16431. var A0 = function () {
  16432. m0 = !0;
  16433. };
  16434. A0();
  16435. for (var L0 = 0; y3U.C3V(j, L0); L0++) {
  16436. var z0 = q[L0];
  16437. if (y3U.v3V(z0, U0) && y3U.t3V(z0, k0) && y3U.y3V(z0, a0) && i.PolyK._PointInTriangle(m[y3U.o3V(2, z0)], m[y3U.x3V(2, z0) + 1], T0, G0, W0, N0, S0, I0)) {
  16438. var E0 = function () {
  16439. m0 = !1;
  16440. };
  16441. E0();
  16442. break;
  16443. }
  16444. }
  16445. }
  16446. if (m0)
  16447. u.push(U0, k0, a0), q.splice(y3U.p3V((f + 1), j), 1), j--, f = 0;
  16448. else if (y3U.q3V(f++, 3 * j)) {
  16449. if (!o)
  16450. return null;
  16451. for (u = [], q = [], f = 0; y3U.b3V(n, f); f++)
  16452. q.push(f);
  16453. f = 0,
  16454. j = n,
  16455. o = !1;
  16456. }
  16457. }
  16458. return u.push(q[0], q[1], q[2]),
  16459. u;
  16460. },
  16461. i.PolyK._PointInTriangle = function (k, m, e, o, n, u, q, f) {
  16462. var j = y3U.j3V(q, e),
  16463. U0 = y3U.d3V(f, o),
  16464. k0 = y3U.c3V(n, e),
  16465. a0 = y3U.s3V(u, o),
  16466. T0 = y3U.Q3V(k, e),
  16467. G0 = y3U.a9V(m, o),
  16468. W0 = y3U.W9V(j, j) + y3U.m9V(U0, U0),
  16469. N0 = y3U.A9V(j, k0) + y3U.w9V(U0, a0),
  16470. S0 = y3U.E9V(j, T0) + y3U.e9V(U0, G0),
  16471. I0 = y3U.g9V(k0, k0) + y3U.r9V(a0, a0),
  16472. m0 = y3U.i9V(k0, T0) + y3U.u9V(a0, G0),
  16473. A0 = y3U.P9V(1, (W0 * I0 - N0 * N0)),
  16474. L0 = y3U.D9V((I0 * S0 - N0 * m0), A0),
  16475. z0 = y3U.Z9V((W0 * m0 - N0 * S0), A0);
  16476. return y3U.R9V(L0, 0) && y3U.O9V(z0, 0) && y3U.V9V(1, L0 + z0);
  16477. },
  16478. i.PolyK._convex = function (k, m, e, o, n, u, q) {
  16479. return y3U.k5V((m - o) * (n - e) + (e - k) * (u - o) >= 0, q);
  16480. },
  16481. i.initDefaultShaders = function () {},
  16482. i.CompileVertexShader = function (k, m) {
  16483. return i._CompileShader(k, m, k.VERTEX_SHADER);
  16484. },
  16485. i.CompileFragmentShader = function (k, m) {
  16486. return i._CompileShader(k, m, k.FRAGMENT_SHADER);
  16487. },
  16488. i._CompileShader = function (k, m, e) {
  16489. var o = m.join("\n"),
  16490. n = k.createShader(e);
  16491. return k.shaderSource(n, o),
  16492. k.compileShader(n),
  16493. k.getShaderParameter(n, k.COMPILE_STATUS) ? n : (r2w8n[E8n]['console'].log(k.getShaderInfoLog(n)), null);
  16494. },
  16495. i.compileProgram = function (k, m, e) {
  16496. var o = i.CompileFragmentShader(k, e),
  16497. n = i.CompileVertexShader(k, m),
  16498. u = k.createProgram();
  16499. return k.attachShader(u, n),
  16500. k.attachShader(u, o),
  16501. k.linkProgram(u),
  16502. k.getProgramParameter(u, k.LINK_STATUS) || r2w8n[E8n]['console'].log("Could not initialise shaders"),
  16503. u;
  16504. },
  16505. i.PixiShader = function (k) {
  16506. this._UID = i._UID++,
  16507. this.gl = k,
  16508. this.program = null,
  16509. this.fragmentSrc = ["precision lowp float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;", "}"],
  16510. this.textureCount = 0,
  16511. this.firstRun = !0,
  16512. this.dirty = !0,
  16513. this.attributes = [],
  16514. this.init();
  16515. },
  16516. i.PixiShader.prototype.constructor = i.PixiShader,
  16517. i.PixiShader.prototype.init = function () {
  16518. var k = this.gl,
  16519. m = i.compileProgram(k, this.vertexSrc || i.PixiShader.defaultVertexSrc, this.fragmentSrc);
  16520. k.useProgram(m),
  16521. this.uSampler = k.getUniformLocation(m, "uSampler"),
  16522. this.projectionVector = k.getUniformLocation(m, "projectionVector"),
  16523. this.offsetVector = k.getUniformLocation(m, "offsetVector"),
  16524. this.dimensions = k.getUniformLocation(m, "dimensions"),
  16525. this.aVertexPosition = k.getAttribLocation(m, "aVertexPosition"),
  16526. this.aTextureCoord = k.getAttribLocation(m, "aTextureCoord"),
  16527. this.colorAttribute = k.getAttribLocation(m, "aColor"),
  16528. -1 === this.colorAttribute && (this.colorAttribute = 2),
  16529. this.attributes = [this.aVertexPosition, this.aTextureCoord, this.colorAttribute];
  16530. for (var e in this.uniforms)
  16531. this.uniforms[e].uniformLocation = k.getUniformLocation(m, e);
  16532. this.initUniforms(),
  16533. this.program = m;
  16534. },
  16535. i.PixiShader.prototype.initUniforms = function () {
  16536. this.textureCount = 1;
  16537. var k,
  16538. m = this.gl;
  16539. for (var e in this.uniforms) {
  16540. k = this.uniforms[e];
  16541. var o = k.type;
  16542. y3U.G5V("sampler2D", o) ? (k._init = !1, y3U.N5V(null, k.value) && this.initSampler2D(k)) : y3U.L5V("mat2", o) || y3U.z5V("mat3", o) || y3U.J5V("mat4", o) ? (k.glMatrix = !0, k.glValueLength = 1, y3U.H5V("mat2", o) ? k.glFunc = m.uniformMatrix2fv : y3U.h5V("mat3", o) ? k.glFunc = m.uniformMatrix3fv : y3U.F5V("mat4", o) && (k.glFunc = m.uniformMatrix4fv)) : (k.glFunc = m["uniform" + o], k.glValueLength = y3U.M5V("2f", o) || y3U.n5V("2i", o) ? 2 : y3U.f5V("3f", o) || y3U.K5V("3i", o) ? 3 : y3U.B5V("4f", o) || y3U.l5V("4i", o) ? 4 : 1);
  16543. }
  16544. },
  16545. i.PixiShader.prototype.initSampler2D = function (k) {
  16546. if (k.value && k.value.baseTexture && k.value.baseTexture.hasLoaded) {
  16547. var m = this.gl;
  16548. if (m.activeTexture(m["TEXTURE" + this.textureCount]), m.bindTexture(m.TEXTURE_2D, k.value.baseTexture._glTextures[m.id]), k.textureData) {
  16549. var e = k.textureData,
  16550. o = e.magFilter ? e.magFilter : m.LINEAR,
  16551. n = e.minFilter ? e.minFilter : m.LINEAR,
  16552. u = e.wrapS ? e.wrapS : m.CLAMP_TO_EDGE,
  16553. q = e.wrapT ? e.wrapT : m.CLAMP_TO_EDGE,
  16554. f = e.luminance ? m.LUMINANCE : m.RGBA;
  16555. if (e.repeat && (u = m.REPEAT, q = m.REPEAT), m.pixelStorei(m.UNPACK_FLIP_Y_WEBGL, !!e.flipY), e.width) {
  16556. var j = e.width ? e.width : 512,
  16557. U0 = e.height ? e.height : 2,
  16558. k0 = e.border ? e.border : 0;
  16559. m.texImage2D(m.TEXTURE_2D, 0, f, j, U0, k0, f, m.UNSIGNED_BYTE, null);
  16560. } else
  16561. m.texImage2D(m.TEXTURE_2D, 0, f, m.RGBA, m.UNSIGNED_BYTE, k.value.baseTexture.source);
  16562. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MAG_FILTER, o),
  16563. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, n),
  16564. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, u),
  16565. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_T, q);
  16566. }
  16567. m.uniform1i(k.uniformLocation, this.textureCount),
  16568. k._init = !0,
  16569. this.textureCount++;
  16570. }
  16571. },
  16572. i.PixiShader.prototype.syncUniforms = function () {
  16573. this.textureCount = 1;
  16574. var k,
  16575. m = this.gl;
  16576. for (var e in this.uniforms)
  16577. k = this.uniforms[e], y3U.X5V(1, k.glValueLength) ? k.glMatrix === !0 ? k.glFunc.call(m, k.uniformLocation, k.transpose, k.value) : k.glFunc.call(m, k.uniformLocation, k.value) : y3U.Y5V(2, k.glValueLength) ? k.glFunc.call(m, k.uniformLocation, k.value.x, k.value.y) : y3U.U2V(3, k.glValueLength) ? k.glFunc.call(m, k.uniformLocation, k.value.x, k.value.y, k.value.z) : y3U.T2V(4, k.glValueLength) ? k.glFunc.call(m, k.uniformLocation, k.value.x, k.value.y, k.value.z, k.value.w) : y3U.S2V("sampler2D", k.type) && (k._init ? (m.activeTexture(m["TEXTURE" + this.textureCount]), k.value.baseTexture._dirty[m.id] ? i.instances[m.id].updateTexture(k.value.baseTexture) : m.bindTexture(m.TEXTURE_2D, k.value.baseTexture._glTextures[m.id]), m.uniform1i(k.uniformLocation, this.textureCount), this.textureCount++) : this.initSampler2D(k));
  16578. },
  16579. i.PixiShader.prototype.destroy = function () {
  16580. this.gl.deleteProgram(this.program),
  16581. this.uniforms = null,
  16582. this.gl = null,
  16583. this.attributes = null;
  16584. },
  16585. i.PixiShader.defaultVertexSrc = ["attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "attribute vec4 aColor;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "const vec2 center = vec2(-1.0, 1.0);", "void main(void) {", " gl_Position = vec4( ((aVertexPosition + offsetVector) / projectionVector) + center , 0.0, 1.0);", " vTextureCoord = aTextureCoord;", " vColor = vec4(aColor.rgb * aColor.a, aColor.a);", "}"],
  16586. i.PixiFastShader = function (k) {
  16587. this._UID = i._UID++,
  16588. this.gl = k,
  16589. this.program = null,
  16590. this.fragmentSrc = ["precision lowp float;", "varying vec2 vTextureCoord;", "varying float vColor;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;", "}"],
  16591. this.vertexSrc = ["attribute vec2 aVertexPosition;", "attribute vec2 aPositionCoord;", "attribute vec2 aScale;", "attribute float aRotation;", "attribute vec2 aTextureCoord;", "attribute float aColor;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform mat3 uMatrix;", "varying vec2 vTextureCoord;", "varying float vColor;", "const vec2 center = vec2(-1.0, 1.0);", "void main(void) {", " vec2 v;", " vec2 sv = aVertexPosition * aScale;", " v.x = (sv.x) * cos(aRotation) - (sv.y) * sin(aRotation);", " v.y = (sv.x) * sin(aRotation) + (sv.y) * cos(aRotation);", " v = ( uMatrix * vec3(v + aPositionCoord , 1.0) ).xy ;", " gl_Position = vec4( ( v / projectionVector) + center , 0.0, 1.0);", " vTextureCoord = aTextureCoord;", " vColor = aColor;", "}"],
  16592. this.textureCount = 0,
  16593. this.init();
  16594. },
  16595. i.PixiFastShader.prototype.constructor = i.PixiFastShader,
  16596. i.PixiFastShader.prototype.init = function () {
  16597. var k = this.gl,
  16598. m = i.compileProgram(k, this.vertexSrc, this.fragmentSrc);
  16599. k.useProgram(m),
  16600. this.uSampler = k.getUniformLocation(m, "uSampler"),
  16601. this.projectionVector = k.getUniformLocation(m, "projectionVector"),
  16602. this.offsetVector = k.getUniformLocation(m, "offsetVector"),
  16603. this.dimensions = k.getUniformLocation(m, "dimensions"),
  16604. this.uMatrix = k.getUniformLocation(m, "uMatrix"),
  16605. this.aVertexPosition = k.getAttribLocation(m, "aVertexPosition"),
  16606. this.aPositionCoord = k.getAttribLocation(m, "aPositionCoord"),
  16607. this.aScale = k.getAttribLocation(m, "aScale"),
  16608. this.aRotation = k.getAttribLocation(m, "aRotation"),
  16609. this.aTextureCoord = k.getAttribLocation(m, "aTextureCoord"),
  16610. this.colorAttribute = k.getAttribLocation(m, "aColor"),
  16611. -1 === this.colorAttribute && (this.colorAttribute = 2),
  16612. this.attributes = [this.aVertexPosition, this.aPositionCoord, this.aScale, this.aRotation, this.aTextureCoord, this.colorAttribute],
  16613. this.program = m;
  16614. },
  16615. i.PixiFastShader.prototype.destroy = function () {
  16616. this.gl.deleteProgram(this.program),
  16617. this.uniforms = null,
  16618. this.gl = null,
  16619. this.attributes = null;
  16620. },
  16621. i.StripShader = function (k) {
  16622. this._UID = i._UID++,
  16623. this.gl = k,
  16624. this.program = null,
  16625. this.fragmentSrc = ["precision mediump float;", "varying vec2 vTextureCoord;", "uniform float alpha;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y)) * alpha;", "}"],
  16626. this.vertexSrc = ["attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "varying vec2 vTextureCoord;", "void main(void) {", " vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);", " v -= offsetVector.xyx;", " gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);", " vTextureCoord = aTextureCoord;", "}"],
  16627. this.init();
  16628. },
  16629. i.StripShader.prototype.constructor = i.StripShader,
  16630. i.StripShader.prototype.init = function () {
  16631. var k = this.gl,
  16632. m = i.compileProgram(k, this.vertexSrc, this.fragmentSrc);
  16633. k.useProgram(m),
  16634. this.uSampler = k.getUniformLocation(m, "uSampler"),
  16635. this.projectionVector = k.getUniformLocation(m, "projectionVector"),
  16636. this.offsetVector = k.getUniformLocation(m, "offsetVector"),
  16637. this.colorAttribute = k.getAttribLocation(m, "aColor"),
  16638. this.aVertexPosition = k.getAttribLocation(m, "aVertexPosition"),
  16639. this.aTextureCoord = k.getAttribLocation(m, "aTextureCoord"),
  16640. this.attributes = [this.aVertexPosition, this.aTextureCoord],
  16641. this.translationMatrix = k.getUniformLocation(m, "translationMatrix"),
  16642. this.alpha = k.getUniformLocation(m, "alpha"),
  16643. this.program = m;
  16644. },
  16645. i.StripShader.prototype.destroy = function () {
  16646. this.gl.deleteProgram(this.program),
  16647. this.uniforms = null,
  16648. this.gl = null,
  16649. this.attribute = null;
  16650. },
  16651. i.PrimitiveShader = function (k) {
  16652. this._UID = i._UID++,
  16653. this.gl = k,
  16654. this.program = null,
  16655. this.fragmentSrc = ["precision mediump float;", "varying vec4 vColor;", "void main(void) {", " gl_FragColor = vColor;", "}"],
  16656. this.vertexSrc = ["attribute vec2 aVertexPosition;", "attribute vec4 aColor;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform float alpha;", "uniform float flipY;", "uniform vec3 tint;", "varying vec4 vColor;", "void main(void) {", " vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);", " v -= offsetVector.xyx;", " gl_Position = vec4( v.x / projectionVector.x -1.0, (v.y / projectionVector.y * -flipY) + flipY , 0.0, 1.0);", " vColor = aColor * vec4(tint * alpha, alpha);", "}"],
  16657. this.init();
  16658. },
  16659. i.PrimitiveShader.prototype.constructor = i.PrimitiveShader,
  16660. i.PrimitiveShader.prototype.init = function () {
  16661. var k = this.gl,
  16662. m = i.compileProgram(k, this.vertexSrc, this.fragmentSrc);
  16663. k.useProgram(m),
  16664. this.projectionVector = k.getUniformLocation(m, "projectionVector"),
  16665. this.offsetVector = k.getUniformLocation(m, "offsetVector"),
  16666. this.tintColor = k.getUniformLocation(m, "tint"),
  16667. this.flipY = k.getUniformLocation(m, "flipY"),
  16668. this.aVertexPosition = k.getAttribLocation(m, "aVertexPosition"),
  16669. this.colorAttribute = k.getAttribLocation(m, "aColor"),
  16670. this.attributes = [this.aVertexPosition, this.colorAttribute],
  16671. this.translationMatrix = k.getUniformLocation(m, "translationMatrix"),
  16672. this.alpha = k.getUniformLocation(m, "alpha"),
  16673. this.program = m;
  16674. },
  16675. i.PrimitiveShader.prototype.destroy = function () {
  16676. this.gl.deleteProgram(this.program),
  16677. this.uniforms = null,
  16678. this.gl = null,
  16679. this.attributes = null;
  16680. },
  16681. i.ComplexPrimitiveShader = function (k) {
  16682. this._UID = i._UID++,
  16683. this.gl = k,
  16684. this.program = null,
  16685. this.fragmentSrc = ["precision mediump float;", "varying vec4 vColor;", "void main(void) {", " gl_FragColor = vColor;", "}"],
  16686. this.vertexSrc = ["attribute vec2 aVertexPosition;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform vec3 tint;", "uniform float alpha;", "uniform vec3 color;", "uniform float flipY;", "varying vec4 vColor;", "void main(void) {", " vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);", " v -= offsetVector.xyx;", " gl_Position = vec4( v.x / projectionVector.x -1.0, (v.y / projectionVector.y * -flipY) + flipY , 0.0, 1.0);", " vColor = vec4(color * alpha * tint, alpha);", "}"],
  16687. this.init();
  16688. },
  16689. i.ComplexPrimitiveShader.prototype.constructor = i.ComplexPrimitiveShader,
  16690. i.ComplexPrimitiveShader.prototype.init = function () {
  16691. var k = this.gl,
  16692. m = i.compileProgram(k, this.vertexSrc, this.fragmentSrc);
  16693. k.useProgram(m),
  16694. this.projectionVector = k.getUniformLocation(m, "projectionVector"),
  16695. this.offsetVector = k.getUniformLocation(m, "offsetVector"),
  16696. this.tintColor = k.getUniformLocation(m, "tint"),
  16697. this.color = k.getUniformLocation(m, "color"),
  16698. this.flipY = k.getUniformLocation(m, "flipY"),
  16699. this.aVertexPosition = k.getAttribLocation(m, "aVertexPosition"),
  16700. this.attributes = [this.aVertexPosition, this.colorAttribute],
  16701. this.translationMatrix = k.getUniformLocation(m, "translationMatrix"),
  16702. this.alpha = k.getUniformLocation(m, "alpha"),
  16703. this.program = m;
  16704. },
  16705. i.ComplexPrimitiveShader.prototype.destroy = function () {
  16706. this.gl.deleteProgram(this.program),
  16707. this.uniforms = null,
  16708. this.gl = null,
  16709. this.attribute = null;
  16710. },
  16711. i.WebGLGraphics = function () {},
  16712. i.WebGLGraphics.renderGraphics = function (k, m) {
  16713. var e,
  16714. o = m.gl,
  16715. n = m.projection,
  16716. u = m.offset,
  16717. q = m.shaderManager.primitiveShader;
  16718. k.dirty && i.WebGLGraphics.updateGraphics(k, o);
  16719. for (var f = k._webGL[o.id], j = 0; y3U.I2V(j, f.data.length); j++)
  16720. y3U.C2V(1, f.data[j].mode) ? (e = f.data[j], m.stencilManager.pushStencil(k, e, m), o.drawElements(o.TRIANGLE_FAN, 4, o.UNSIGNED_SHORT, y3U.v2V(2, (e.indices.length - 4))), m.stencilManager.popStencil(k, e, m)) : (e = f.data[j], m.shaderManager.setShader(q), q = m.shaderManager.primitiveShader, o.uniformMatrix3fv(q.translationMatrix, !1, k.worldTransform.toArray(!0)), o.uniform1f(q.flipY, 1), o.uniform2f(q.projectionVector, n.x, -n.y), o.uniform2f(q.offsetVector, -u.x, -u.y), o.uniform3fv(q.tintColor, i.hex2rgb(k.tint)), o.uniform1f(q.alpha, k.worldAlpha), o.bindBuffer(o.ARRAY_BUFFER, e.buffer), o.vertexAttribPointer(q.aVertexPosition, 2, o.FLOAT, !1, 24, 0), o.vertexAttribPointer(q.colorAttribute, 4, o.FLOAT, !1, 24, 8), o.bindBuffer(o.ELEMENT_ARRAY_BUFFER, e.indexBuffer), o.drawElements(o.TRIANGLE_STRIP, e.indices.length, o.UNSIGNED_SHORT, 0));
  16721. },
  16722. i.WebGLGraphics.updateGraphics = function (k, m) {
  16723. var e = k._webGL[m.id];
  16724. e || (e = k._webGL[m.id] = {
  16725. lastIndex : 0,
  16726. data : [],
  16727. gl : m
  16728. }),
  16729. k.dirty = !1;
  16730. var o;
  16731. if (k.clearDirty) {
  16732. for (k.clearDirty = !1, o = 0; y3U.t2V(o, e.data.length); o++) {
  16733. var n = e.data[o];
  16734. n.reset(),
  16735. i.WebGLGraphics.graphicsDataPool.push(n);
  16736. }
  16737. e.data = [],
  16738. e.lastIndex = 0;
  16739. }
  16740. var u;
  16741. for (o = e.lastIndex; y3U.y2V(o, k.graphicsData.length); o++) {
  16742. var q = k.graphicsData[o];
  16743. if (y3U.o2V(q.type, i.Graphics.POLY)) {
  16744. if (q.points = q.shape.points.slice(), q.shape.closed && (y3U.x2V(q.points[0], q.points[q.points.length - 2]) || y3U.p2V(q.points[1], q.points[q.points.length - 1])) && q.points.push(q.points[0], q.points[1]), q.fill && y3U.q2V(q.points.length, 6))
  16745. if (y3U.b2V(q.points.length, 12)) {
  16746. u = i.WebGLGraphics.switchMode(e, 0);
  16747. var f = i.WebGLGraphics.buildPoly(q, u);
  16748. f || (u = i.WebGLGraphics.switchMode(e, 1), i.WebGLGraphics.buildComplexPoly(q, u));
  16749. } else
  16750. u = i.WebGLGraphics.switchMode(e, 1), i.WebGLGraphics.buildComplexPoly(q, u);
  16751. y3U.j2V(q.lineWidth, 0) && (u = i.WebGLGraphics.switchMode(e, 0), i.WebGLGraphics.buildLine(q, u));
  16752. } else
  16753. u = i.WebGLGraphics.switchMode(e, 0), y3U.d2V(q.type, i.Graphics.RECT) ? i.WebGLGraphics.buildRectangle(q, u) : y3U.c2V(q.type, i.Graphics.CIRC) || y3U.s2V(q.type, i.Graphics.ELIP) ? i.WebGLGraphics.buildCircle(q, u) : y3U.Q2V(q.type, i.Graphics.RREC) && i.WebGLGraphics.buildRoundedRectangle(q, u);
  16754. e.lastIndex++;
  16755. }
  16756. for (o = 0; y3U.a1V(o, e.data.length); o++)
  16757. u = e.data[o], u.dirty && u.upload();
  16758. },
  16759. i.WebGLGraphics.switchMode = function (k, m) {
  16760. var e;
  16761. return k.data.length ? (e = k.data[y3U.W1V(k.data.length, 1)], (y3U.m1V(e.mode, m) || y3U.A1V(1, m)) && (e = i.WebGLGraphics.graphicsDataPool.pop() || new i.WebGLGraphicsData(k.gl), e.mode = m, k.data.push(e))) : (e = i.WebGLGraphics.graphicsDataPool.pop() || new i.WebGLGraphicsData(k.gl), e.mode = m, k.data.push(e)),
  16762. e.dirty = !0,
  16763. e;
  16764. },
  16765. i.WebGLGraphics.buildRectangle = function (k, m) {
  16766. var e = k.shape,
  16767. o = e.x,
  16768. n = e.y,
  16769. u = e.width,
  16770. q = e.height;
  16771. if (k.fill) {
  16772. var f = i.hex2rgb(k.fillColor),
  16773. j = k.fillAlpha,
  16774. U0 = y3U.w1V(f[0], j),
  16775. k0 = y3U.E1V(f[1], j),
  16776. a0 = y3U.e1V(f[2], j),
  16777. T0 = m.points,
  16778. G0 = m.indices,
  16779. W0 = y3U.g1V(T0.length, 6);
  16780. T0.push(o, n),
  16781. T0.push(U0, k0, a0, j),
  16782. T0.push(o + u, n),
  16783. T0.push(U0, k0, a0, j),
  16784. T0.push(o, n + q),
  16785. T0.push(U0, k0, a0, j),
  16786. T0.push(o + u, n + q),
  16787. T0.push(U0, k0, a0, j),
  16788. G0.push(W0, W0, W0 + 1, W0 + 2, W0 + 3, W0 + 3);
  16789. }
  16790. if (k.lineWidth) {
  16791. var N0 = k.points;
  16792. k.points = [o, n, o + u, n, o + u, n + q, o, n + q, o, n],
  16793. i.WebGLGraphics.buildLine(k, m),
  16794. k.points = N0;
  16795. }
  16796. },
  16797. i.WebGLGraphics.buildRoundedRectangle = function (k, m) {
  16798. var e = k.shape,
  16799. o = e.x,
  16800. n = e.y,
  16801. u = e.width,
  16802. q = e.height,
  16803. f = e.radius,
  16804. j = [];
  16805. if (j.push(o, n + f), j = j.concat(i.WebGLGraphics.quadraticBezierCurve(o, n + q - f, o, n + q, o + f, n + q)), j = j.concat(i.WebGLGraphics.quadraticBezierCurve(o + u - f, n + q, o + u, n + q, o + u, n + q - f)), j = j.concat(i.WebGLGraphics.quadraticBezierCurve(o + u, n + f, o + u, n, o + u - f, n)), j = j.concat(i.WebGLGraphics.quadraticBezierCurve(o + f, n, o, n, o, n + f)), k.fill) {
  16806. var U0 = i.hex2rgb(k.fillColor),
  16807. k0 = k.fillAlpha,
  16808. a0 = y3U.r1V(U0[0], k0),
  16809. T0 = y3U.i1V(U0[1], k0),
  16810. G0 = y3U.u1V(U0[2], k0),
  16811. W0 = m.points,
  16812. N0 = m.indices,
  16813. S0 = y3U.P1V(W0.length, 6),
  16814. I0 = i.PolyK.Triangulate(j),
  16815. m0 = 0;
  16816. for (m0 = 0; y3U.D1V(m0, I0.length); m0 += 3)
  16817. N0.push(I0[m0] + S0), N0.push(I0[m0] + S0), N0.push(I0[m0 + 1] + S0), N0.push(I0[m0 + 2] + S0), N0.push(I0[m0 + 2] + S0);
  16818. for (m0 = 0; y3U.Z1V(m0, j.length); m0++)
  16819. W0.push(j[m0], j[++m0], a0, T0, G0, k0);
  16820. }
  16821. if (k.lineWidth) {
  16822. var A0 = k.points;
  16823. k.points = j,
  16824. i.WebGLGraphics.buildLine(k, m),
  16825. k.points = A0;
  16826. }
  16827. },
  16828. i.WebGLGraphics.quadraticBezierCurve = function (n, u, q, f, j, U0) {
  16829. function k0(k, m, e) {
  16830. var o = y3U.R1V(m, k);
  16831. return k + y3U.O1V(o, e);
  16832. }
  16833. for (var a0, T0, G0, W0, N0, S0, I0 = 20, m0 = [], A0 = 0, L0 = 0; y3U.V1V(I0, L0); L0++)
  16834. A0 = y3U.k6V(L0, I0), a0 = k0(n, q, A0), T0 = k0(u, f, A0), G0 = k0(q, j, A0), W0 = k0(f, U0, A0), N0 = k0(a0, G0, A0), S0 = k0(T0, W0, A0), m0.push(N0, S0);
  16835. return m0;
  16836. },
  16837. i.WebGLGraphics.buildCircle = function (k, m) {
  16838. var e,
  16839. o,
  16840. n = k.shape,
  16841. u = n.x,
  16842. q = n.y;
  16843. y3U.G6V(k.type, i.Graphics.CIRC) ? (e = n.radius, o = n.radius) : (e = n.width, o = n.height);
  16844. var f = 40,
  16845. j = y3U.N6V(2, Math.PI, f),
  16846. U0 = 0;
  16847. if (k.fill) {
  16848. var k0 = i.hex2rgb(k.fillColor),
  16849. a0 = k.fillAlpha,
  16850. T0 = y3U.A6V(k0[0], a0),
  16851. G0 = y3U.w6V(k0[1], a0),
  16852. W0 = y3U.E6V(k0[2], a0),
  16853. N0 = m.points,
  16854. S0 = m.indices,
  16855. I0 = y3U.e6V(N0.length, 6);
  16856. for (S0.push(I0), U0 = 0; y3U.g6V(f + 1, U0); U0++)
  16857. N0.push(u, q, T0, G0, W0, a0), N0.push(u + y3U.r6V(Math.sin(j * U0), e), q + y3U.i6V(Math.cos(j * U0), o), T0, G0, W0, a0), S0.push(I0++, I0++);
  16858. S0.push(y3U.u6V(I0, 1));
  16859. }
  16860. if (k.lineWidth) {
  16861. var m0 = k.points;
  16862. for (k.points = [], U0 = 0; y3U.P6V(f + 1, U0); U0++)
  16863. k.points.push(u + y3U.D6V(Math.sin(j * U0), e), q + y3U.Z6V(Math.cos(j * U0), o));
  16864. i.WebGLGraphics.buildLine(k, m),
  16865. k.points = m0;
  16866. }
  16867. },
  16868. i.WebGLGraphics.buildLine = function (k, m) {
  16869. var e = 0,
  16870. o = k.points;
  16871. if (y3U.R6V(0, o.length)) {
  16872. if (y3U.O6V(k.lineWidth, 2))
  16873. for (e = 0; y3U.V6V(e, o.length); e++)
  16874. o[e] += .5;
  16875. var n = new i.Point(o[0], o[1]),
  16876. u = new i.Point(o[y3U.k8V(o.length, 2)], o[y3U.G8V(o.length, 1)]);
  16877. if (y3U.N8V(n.x, u.x) && y3U.L8V(n.y, u.y)) {
  16878. o = o.slice(),
  16879. o.pop(),
  16880. o.pop(),
  16881. u = new i.Point(o[y3U.z8V(o.length, 2)], o[y3U.J8V(o.length, 1)]);
  16882. var q = u.x + y3U.H8V(.5, (n.x - u.x)),
  16883. f = u.y + y3U.h8V(.5, (n.y - u.y));
  16884. o.unshift(q, f),
  16885. o.push(q, f);
  16886. }
  16887. var j,
  16888. U0,
  16889. k0,
  16890. a0,
  16891. T0,
  16892. G0,
  16893. W0,
  16894. N0,
  16895. S0,
  16896. I0,
  16897. m0,
  16898. A0,
  16899. L0,
  16900. z0,
  16901. E0,
  16902. v0,
  16903. J0,
  16904. t0,
  16905. w0,
  16906. g0,
  16907. H0,
  16908. M0,
  16909. p0,
  16910. e0 = m.points,
  16911. F0 = m.indices,
  16912. P0 = y3U.F8V(o.length, 2),
  16913. O0 = o.length,
  16914. b0 = y3U.M8V(e0.length, 6),
  16915. d0 = y3U.n8V(k.lineWidth, 2),
  16916. l0 = i.hex2rgb(k.lineColor),
  16917. j0 = k.lineAlpha,
  16918. Z0 = y3U.f8V(l0[0], j0),
  16919. R0 = y3U.K8V(l0[1], j0),
  16920. q0 = y3U.B8V(l0[2], j0);
  16921. for (k0 = o[0], a0 = o[1], T0 = o[2], G0 = o[3], S0 = - (y3U.l8V(a0, G0)), I0 = y3U.X8V(k0, T0), p0 = Math.sqrt(y3U.Y8V(S0, S0) + y3U.U03(I0, I0)), S0 /= p0, I0 /= p0, S0 *= d0, I0 *= d0, e0.push(y3U.T03(k0, S0), y3U.S03(a0, I0), Z0, R0, q0, j0), e0.push(k0 + S0, a0 + I0, Z0, R0, q0, j0), e = 1; y3U.I03(P0 - 1, e); e++)
  16922. k0 = o[y3U.C03(2, (e - 1))], a0 = o[y3U.v03(2, (e - 1)) + 1], T0 = o[y3U.t03(2, e)], G0 = o[y3U.y03(2, e) + 1], W0 = o[y3U.o03(2, (e + 1))], N0 = o[y3U.x03(2, (e + 1)) + 1], S0 = - (y3U.p03(a0, G0)), I0 = y3U.q03(k0, T0), p0 = Math.sqrt(y3U.b03(S0, S0) + y3U.j03(I0, I0)), S0 /= p0, I0 /= p0, S0 *= d0, I0 *= d0, m0 = - (y3U.d03(G0, N0)), A0 = y3U.c03(T0, W0), p0 = Math.sqrt(y3U.s03(m0, m0) + y3U.Q03(A0, A0)), m0 /= p0, A0 /= p0, m0 *= d0, A0 *= d0, E0 = -I0 + a0 - (-I0 + G0), v0 = -S0 + T0 - (-S0 + k0), J0 = (-S0 + k0) * (-I0 + G0) - (-S0 + T0) * (-I0 + a0), t0 = -A0 + N0 - (-A0 + G0), w0 = -m0 + T0 - (-m0 + W0), g0 = (-m0 + W0) * (-A0 + G0) - (-m0 + T0) * (-A0 + N0), H0 = y3U.a73(E0 * w0, t0 * v0), y3U.W73(Math.abs(H0), .1) ? (H0 += 10.1, e0.push(y3U.m73(T0, S0), y3U.A73(G0, I0), Z0, R0, q0, j0), e0.push(T0 + S0, G0 + I0, Z0, R0, q0, j0)) : (j = y3U.w73((v0 * g0 - w0 * J0), H0), U0 = y3U.E73((t0 * J0 - E0 * g0), H0), M0 = y3U.e73((j - T0), (j - T0)) + (y3U.g73(U0, G0)) + (y3U.r73(U0, G0)), y3U.i73(M0, 19600) ? (L0 = y3U.u73(S0, m0), z0 = y3U.P73(I0, A0), p0 = Math.sqrt(y3U.D73(L0, L0) + y3U.Z73(z0, z0)), L0 /= p0, z0 /= p0, L0 *= d0, z0 *= d0, e0.push(y3U.R73(T0, L0), y3U.O73(G0, z0)), e0.push(Z0, R0, q0, j0), e0.push(T0 + L0, G0 + z0), e0.push(Z0, R0, q0, j0), e0.push(y3U.V73(T0, L0), y3U.k43(G0, z0)), e0.push(Z0, R0, q0, j0), O0++) : (e0.push(j, U0), e0.push(Z0, R0, q0, j0), e0.push(y3U.G43(T0, (j - T0)), y3U.N43(G0, (U0 - G0))), e0.push(Z0, R0, q0, j0)));
  16923. for (k0 = o[y3U.L43(2, (P0 - 2))], a0 = o[y3U.z43(2, (P0 - 2)) + 1], T0 = o[y3U.J43(2, (P0 - 1))], G0 = o[y3U.H43(2, (P0 - 1)) + 1], S0 = - (y3U.h43(a0, G0)), I0 = y3U.F43(k0, T0), p0 = Math.sqrt(y3U.M43(S0, S0) + y3U.n43(I0, I0)), S0 /= p0, I0 /= p0, S0 *= d0, I0 *= d0, e0.push(y3U.f43(T0, S0), y3U.K43(G0, I0)), e0.push(Z0, R0, q0, j0), e0.push(T0 + S0, G0 + I0), e0.push(Z0, R0, q0, j0), F0.push(b0), e = 0; y3U.B43(O0, e); e++)
  16924. F0.push(b0++);
  16925. F0.push(y3U.l43(b0, 1));
  16926. }
  16927. },
  16928. i.WebGLGraphics.buildComplexPoly = function (k, m) {
  16929. var e = k.points.slice();
  16930. if (!(y3U.X43(e.length, 6))) {
  16931. var o = m.indices;
  16932. m.points = e,
  16933. m.alpha = k.fillAlpha,
  16934. m.color = i.hex2rgb(k.fillColor);
  16935. for (var n, u, q = y3U.Y43(1, 0), f = -1 / 0, j = y3U.U33(1, 0), U0 = -1 / 0, k0 = 0; y3U.T33(k0, e.length); k0 += 2)
  16936. n = e[k0], u = e[k0 + 1], q = y3U.S33(q, n) ? n : q, f = y3U.I33(n, f) ? n : f, j = y3U.C33(j, u) ? u : j, U0 = y3U.v33(u, U0) ? u : U0;
  16937. e.push(q, j, f, j, f, U0, q, U0);
  16938. var a0 = y3U.t33(e.length, 2);
  16939. for (k0 = 0; y3U.y33(a0, k0); k0++)
  16940. o.push(k0);
  16941. }
  16942. },
  16943. i.WebGLGraphics.buildPoly = function (k, m) {
  16944. var e = k.points;
  16945. if (!(y3U.o33(e.length, 6))) {
  16946. var o = m.points,
  16947. n = m.indices,
  16948. u = y3U.x33(e.length, 2),
  16949. q = i.hex2rgb(k.fillColor),
  16950. f = k.fillAlpha,
  16951. j = y3U.p33(q[0], f),
  16952. U0 = y3U.q33(q[1], f),
  16953. k0 = y3U.b33(q[2], f),
  16954. a0 = i.PolyK.Triangulate(e);
  16955. if (!a0)
  16956. return !1;
  16957. var T0 = y3U.j33(o.length, 6),
  16958. G0 = 0;
  16959. for (G0 = 0; y3U.d33(G0, a0.length); G0 += 3)
  16960. n.push(a0[G0] + T0), n.push(a0[G0] + T0), n.push(a0[G0 + 1] + T0), n.push(a0[G0 + 2] + T0), n.push(a0[G0 + 2] + T0);
  16961. for (G0 = 0; y3U.c33(u, G0); G0++)
  16962. o.push(e[y3U.s33(2, G0)], e[y3U.Q33(2, G0) + 1], j, U0, k0, f);
  16963. return !0;
  16964. }
  16965. },
  16966. i.WebGLGraphics.graphicsDataPool = [],
  16967. i.WebGLGraphicsData = function (k) {
  16968. this.gl = k,
  16969. this.color = [0, 0, 0],
  16970. this.points = [],
  16971. this.indices = [],
  16972. this.buffer = k.createBuffer(),
  16973. this.indexBuffer = k.createBuffer(),
  16974. this.mode = 1,
  16975. this.alpha = 1,
  16976. this.dirty = !0;
  16977. },
  16978. i.WebGLGraphicsData.prototype.reset = function () {
  16979. this.points = [],
  16980. this.indices = [];
  16981. },
  16982. i.WebGLGraphicsData.prototype.upload = function () {
  16983. var k = this.gl;
  16984. this.glPoints = new i.Float32Array(this.points),
  16985. k.bindBuffer(k.ARRAY_BUFFER, this.buffer),
  16986. k.bufferData(k.ARRAY_BUFFER, this.glPoints, k.STATIC_DRAW),
  16987. this.glIndicies = new i.Uint16Array(this.indices),
  16988. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.indexBuffer),
  16989. k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.glIndicies, k.STATIC_DRAW),
  16990. this.dirty = !1;
  16991. },
  16992. i.glContexts = [],
  16993. i.instances = [],
  16994. i.WebGLRenderer = function (m, e, o) {
  16995. var n = function (k) {
  16996. o = k.defaultRenderOptions;
  16997. };
  16998. if (o)
  16999. for (var u in i.defaultRenderOptions)
  17000. "undefined" == typeof o[u] && (o[u] = i.defaultRenderOptions[u]);
  17001. else
  17002. n(i);
  17003. i.defaultRenderer || (i.sayHello("webGL"), i.defaultRenderer = this),
  17004. this.type = i.WEBGL_RENDERER,
  17005. this.resolution = o.resolution,
  17006. this.transparent = o.transparent,
  17007. this.autoResize = o.autoResize || !1,
  17008. this.preserveDrawingBuffer = o.preserveDrawingBuffer,
  17009. this.clearBeforeRender = o.clearBeforeRender,
  17010. this.width = m || 800,
  17011. this.height = e || 600,
  17012. this.view = o.view || r2w8n[H8n]['createElement']("canvas"),
  17013. this.contextLostBound = this.handleContextLost.bind(this),
  17014. this.contextRestoredBound = this.handleContextRestored.bind(this),
  17015. this.view.addEventListener("webglcontextlost", this.contextLostBound, !1),
  17016. this.view.addEventListener("webglcontextrestored", this.contextRestoredBound, !1),
  17017. this._contextOptions = {
  17018. alpha : this.transparent,
  17019. antialias : o.antialias,
  17020. premultipliedAlpha : this.transparent && y3U.a93("notMultiplied", this.transparent),
  17021. stencil : !0,
  17022. preserveDrawingBuffer : o.preserveDrawingBuffer
  17023. },
  17024. this.projection = new i.Point,
  17025. this.offset = new i.Point(0, 0),
  17026. this.shaderManager = new i.WebGLShaderManager,
  17027. this.spriteBatch = new i.WebGLSpriteBatch,
  17028. this.maskManager = new i.WebGLMaskManager,
  17029. this.filterManager = new i.WebGLFilterManager,
  17030. this.stencilManager = new i.WebGLStencilManager,
  17031. this.blendModeManager = new i.WebGLBlendModeManager,
  17032. this.renderSession = {},
  17033. this.renderSession.gl = this.gl,
  17034. this.renderSession.drawCount = 0,
  17035. this.renderSession.shaderManager = this.shaderManager,
  17036. this.renderSession.maskManager = this.maskManager,
  17037. this.renderSession.filterManager = this.filterManager,
  17038. this.renderSession.blendModeManager = this.blendModeManager,
  17039. this.renderSession.spriteBatch = this.spriteBatch,
  17040. this.renderSession.stencilManager = this.stencilManager,
  17041. this.renderSession.renderer = this,
  17042. this.renderSession.resolution = this.resolution,
  17043. this.initContext(),
  17044. this.mapBlendModes();
  17045. },
  17046. i.WebGLRenderer.prototype.constructor = i.WebGLRenderer,
  17047. i.WebGLRenderer.prototype.initContext = function () {
  17048. var k = this.view.getContext("webgl", this._contextOptions) || this.view.getContext("experimental-webgl", this._contextOptions);
  17049. if (this.gl = k, !k)
  17050. throw new Error("This browser does not support webGL. Try using the canvas renderer");
  17051. this.glContextId = k.id = i.WebGLRenderer.glContextId++,
  17052. i.glContexts[this.glContextId] = k,
  17053. i.instances[this.glContextId] = this,
  17054. k.disable(k.DEPTH_TEST),
  17055. k.disable(k.CULL_FACE),
  17056. k.enable(k.BLEND),
  17057. this.shaderManager.setContext(k),
  17058. this.spriteBatch.setContext(k),
  17059. this.maskManager.setContext(k),
  17060. this.filterManager.setContext(k),
  17061. this.blendModeManager.setContext(k),
  17062. this.stencilManager.setContext(k),
  17063. this.renderSession.gl = this.gl,
  17064. this.resize(this.width, this.height);
  17065. },
  17066. i.WebGLRenderer.prototype.render = function (k) {
  17067. if (!this.contextLost) {
  17068. y3U.W93(this.__stage, k) && (k.interactive && k.interactionManager.removeEvents(), this.__stage = k),
  17069. k.updateTransform();
  17070. var m = this.gl;
  17071. k._interactive ? k._interactiveEventsAdded || (k._interactiveEventsAdded = !0, k.interactionManager.setTarget(this)) : k._interactiveEventsAdded && (k._interactiveEventsAdded = !1, k.interactionManager.setTarget(this)),
  17072. m.viewport(0, 0, this.width, this.height),
  17073. m.bindFramebuffer(m.FRAMEBUFFER, null),
  17074. this.clearBeforeRender && (this.transparent ? m.clearColor(0, 0, 0, 0) : m.clearColor(k.backgroundColorSplit[0], k.backgroundColorSplit[1], k.backgroundColorSplit[2], 1), m.clear(m.COLOR_BUFFER_BIT)),
  17075. this.renderDisplayObject(k, this.projection);
  17076. }
  17077. },
  17078. i.WebGLRenderer.prototype.renderDisplayObject = function (k, m, e) {
  17079. this.renderSession.blendModeManager.setBlendMode(i.blendModes.NORMAL),
  17080. this.renderSession.drawCount = 0,
  17081. this.renderSession.flipY = e ? -1 : 1,
  17082. this.renderSession.projection = m,
  17083. this.renderSession.offset = this.offset,
  17084. this.spriteBatch.begin(this.renderSession),
  17085. this.filterManager.begin(this.renderSession, e),
  17086. k._renderWebGL(this.renderSession),
  17087. this.spriteBatch.end();
  17088. },
  17089. i.WebGLRenderer.prototype.resize = function (k, m) {
  17090. this.width = y3U.m93(k, this.resolution),
  17091. this.height = y3U.A93(m, this.resolution),
  17092. this.view.width = this.width,
  17093. this.view.height = this.height,
  17094. this.autoResize && (this.view.style.width = y3U.w93(this.width, this.resolution) + "px", this.view.style.height = y3U.E93(this.height, this.resolution) + "px"),
  17095. this.gl.viewport(0, 0, this.width, this.height),
  17096. this.projection.x = y3U.e93(this.width, 2, this.resolution),
  17097. this.projection.y = -this.height / 2 / this.resolution;
  17098. },
  17099. i.WebGLRenderer.prototype.updateTexture = function (k) {
  17100. if (k.hasLoaded) {
  17101. var m = this.gl;
  17102. return k._glTextures[m.id] || (k._glTextures[m.id] = m.createTexture()),
  17103. m.bindTexture(m.TEXTURE_2D, k._glTextures[m.id]),
  17104. m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL, k.premultipliedAlpha),
  17105. m.texImage2D(m.TEXTURE_2D, 0, m.RGBA, m.RGBA, m.UNSIGNED_BYTE, k.source),
  17106. m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MAG_FILTER, y3U.o93(k.scaleMode, i.scaleModes.LINEAR) ? m.LINEAR : m.NEAREST),
  17107. k.mipmap && i.isPowerOfTwo(k.width, k.height) ? (m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, y3U.x93(k.scaleMode, i.scaleModes.LINEAR) ? m.LINEAR_MIPMAP_LINEAR : m.NEAREST_MIPMAP_NEAREST), m.generateMipmap(m.TEXTURE_2D)) : m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, y3U.p93(k.scaleMode, i.scaleModes.LINEAR) ? m.LINEAR : m.NEAREST),
  17108. k._powerOf2 ? (m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, m.REPEAT), m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_T, m.REPEAT)) : (m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, m.CLAMP_TO_EDGE), m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_T, m.CLAMP_TO_EDGE)),
  17109. k._dirty[m.id] = !1,
  17110. k._glTextures[m.id];
  17111. }
  17112. },
  17113. i.WebGLRenderer.prototype.handleContextLost = function (k) {
  17114. k.preventDefault(),
  17115. this.contextLost = !0;
  17116. },
  17117. i.WebGLRenderer.prototype.handleContextRestored = function () {
  17118. this.initContext();
  17119. for (var k in i.TextureCache) {
  17120. var m = function () {
  17121. e._glTextures = [];
  17122. };
  17123. var e = i.TextureCache[k].baseTexture;
  17124. m();
  17125. }
  17126. this.contextLost = !1;
  17127. },
  17128. i.WebGLRenderer.prototype.destroy = function () {
  17129. this.view.removeEventListener("webglcontextlost", this.contextLostBound),
  17130. this.view.removeEventListener("webglcontextrestored", this.contextRestoredBound),
  17131. i.glContexts[this.glContextId] = null,
  17132. this.projection = null,
  17133. this.offset = null,
  17134. this.shaderManager.destroy(),
  17135. this.spriteBatch.destroy(),
  17136. this.maskManager.destroy(),
  17137. this.filterManager.destroy(),
  17138. this.shaderManager = null,
  17139. this.spriteBatch = null,
  17140. this.maskManager = null,
  17141. this.filterManager = null,
  17142. this.gl = null,
  17143. this.renderSession = null;
  17144. },
  17145. i.WebGLRenderer.prototype.mapBlendModes = function () {
  17146. var k = this.gl;
  17147. i.blendModesWebGL || (i.blendModesWebGL = [], i.blendModesWebGL[i.blendModes.NORMAL] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.ADD] = [k.SRC_ALPHA, k.DST_ALPHA], i.blendModesWebGL[i.blendModes.MULTIPLY] = [k.DST_COLOR, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.SCREEN] = [k.SRC_ALPHA, k.ONE], i.blendModesWebGL[i.blendModes.OVERLAY] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.DARKEN] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.LIGHTEN] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.COLOR_DODGE] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.COLOR_BURN] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.HARD_LIGHT] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.SOFT_LIGHT] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.DIFFERENCE] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.EXCLUSION] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.HUE] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.SATURATION] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.COLOR] = [k.ONE, k.ONE_MINUS_SRC_ALPHA], i.blendModesWebGL[i.blendModes.LUMINOSITY] = [k.ONE, k.ONE_MINUS_SRC_ALPHA]);
  17148. },
  17149. i.WebGLRenderer.glContextId = 0,
  17150. i.WebGLBlendModeManager = function () {
  17151. this.currentBlendMode = 99999;
  17152. },
  17153. i.WebGLBlendModeManager.prototype.constructor = i.WebGLBlendModeManager,
  17154. i.WebGLBlendModeManager.prototype.setContext = function (k) {
  17155. this.gl = k;
  17156. },
  17157. i.WebGLBlendModeManager.prototype.setBlendMode = function (k) {
  17158. if (y3U.q93(this.currentBlendMode, k))
  17159. return !1;
  17160. this.currentBlendMode = k;
  17161. var m = i.blendModesWebGL[this.currentBlendMode];
  17162. return this.gl.blendFunc(m[0], m[1]),
  17163. !0;
  17164. },
  17165. i.WebGLBlendModeManager.prototype.destroy = function () {
  17166. this.gl = null;
  17167. },
  17168. i.WebGLMaskManager = function () {},
  17169. i.WebGLMaskManager.prototype.constructor = i.WebGLMaskManager,
  17170. i.WebGLMaskManager.prototype.setContext = function (k) {
  17171. this.gl = k;
  17172. },
  17173. i.WebGLMaskManager.prototype.pushMask = function (k, m) {
  17174. var e = m.gl;
  17175. k.dirty && i.WebGLGraphics.updateGraphics(k, e),
  17176. k._webGL[e.id].data.length && m.stencilManager.pushStencil(k, k._webGL[e.id].data[0], m);
  17177. },
  17178. i.WebGLMaskManager.prototype.popMask = function (k, m) {
  17179. var e = this.gl;
  17180. m.stencilManager.popStencil(k, k._webGL[e.id].data[0], m);
  17181. },
  17182. i.WebGLMaskManager.prototype.destroy = function () {
  17183. this.gl = null;
  17184. },
  17185. i.WebGLStencilManager = function () {
  17186. this.stencilStack = [],
  17187. this.reverse = !0,
  17188. this.count = 0;
  17189. },
  17190. i.WebGLStencilManager.prototype.setContext = function (k) {
  17191. this.gl = k;
  17192. },
  17193. i.WebGLStencilManager.prototype.pushStencil = function (k, m, e) {
  17194. var o = this.gl;
  17195. this.bindGraphics(k, m, e),
  17196. y3U.b93(0, this.stencilStack.length) && (o.enable(o.STENCIL_TEST), o.clear(o.STENCIL_BUFFER_BIT), this.reverse = !0, this.count = 0),
  17197. this.stencilStack.push(m);
  17198. var n = this.count;
  17199. o.colorMask(!1, !1, !1, !1),
  17200. o.stencilFunc(o.ALWAYS, 0, 255),
  17201. o.stencilOp(o.KEEP, o.KEEP, o.INVERT),
  17202. y3U.j93(1, m.mode) ? (o.drawElements(o.TRIANGLE_FAN, y3U.d93(m.indices.length, 4), o.UNSIGNED_SHORT, 0), this.reverse ? (o.stencilFunc(o.EQUAL, y3U.c93(255, n), 255), o.stencilOp(o.KEEP, o.KEEP, o.DECR)) : (o.stencilFunc(o.EQUAL, n, 255), o.stencilOp(o.KEEP, o.KEEP, o.INCR)), o.drawElements(o.TRIANGLE_FAN, 4, o.UNSIGNED_SHORT, y3U.s93(2, (m.indices.length - 4))), this.reverse ? o.stencilFunc(o.EQUAL, y3U.Q93(255, (n + 1)), 255) : o.stencilFunc(o.EQUAL, n + 1, 255), this.reverse = !this.reverse) : (this.reverse ? (o.stencilFunc(o.EQUAL, n, 255), o.stencilOp(o.KEEP, o.KEEP, o.INCR)) : (o.stencilFunc(o.EQUAL, y3U.a53(255, n), 255), o.stencilOp(o.KEEP, o.KEEP, o.DECR)), o.drawElements(o.TRIANGLE_STRIP, m.indices.length, o.UNSIGNED_SHORT, 0), this.reverse ? o.stencilFunc(o.EQUAL, n + 1, 255) : o.stencilFunc(o.EQUAL, y3U.W53(255, (n + 1)), 255)),
  17203. o.colorMask(!0, !0, !0, !0),
  17204. o.stencilOp(o.KEEP, o.KEEP, o.KEEP),
  17205. this.count++;
  17206. },
  17207. i.WebGLStencilManager.prototype.bindGraphics = function (k, m, e) {
  17208. this._currentGraphics = k;
  17209. var o,
  17210. n = this.gl,
  17211. u = e.projection,
  17212. q = e.offset;
  17213. y3U.m53(1, m.mode) ? (o = e.shaderManager.complexPrimitiveShader, e.shaderManager.setShader(o), n.uniform1f(o.flipY, e.flipY), n.uniformMatrix3fv(o.translationMatrix, !1, k.worldTransform.toArray(!0)), n.uniform2f(o.projectionVector, u.x, -u.y), n.uniform2f(o.offsetVector, -q.x, -q.y), n.uniform3fv(o.tintColor, i.hex2rgb(k.tint)), n.uniform3fv(o.color, m.color), n.uniform1f(o.alpha, y3U.A53(k.worldAlpha, m.alpha)), n.bindBuffer(n.ARRAY_BUFFER, m.buffer), n.vertexAttribPointer(o.aVertexPosition, 2, n.FLOAT, !1, 8, 0), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, m.indexBuffer)) : (o = e.shaderManager.primitiveShader, e.shaderManager.setShader(o), n.uniformMatrix3fv(o.translationMatrix, !1, k.worldTransform.toArray(!0)), n.uniform1f(o.flipY, e.flipY), n.uniform2f(o.projectionVector, u.x, -u.y), n.uniform2f(o.offsetVector, -q.x, -q.y), n.uniform3fv(o.tintColor, i.hex2rgb(k.tint)), n.uniform1f(o.alpha, k.worldAlpha), n.bindBuffer(n.ARRAY_BUFFER, m.buffer), n.vertexAttribPointer(o.aVertexPosition, 2, n.FLOAT, !1, 24, 0), n.vertexAttribPointer(o.colorAttribute, 4, n.FLOAT, !1, 24, 8), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, m.indexBuffer));
  17214. },
  17215. i.WebGLStencilManager.prototype.popStencil = function (k, m, e) {
  17216. var o = this.gl;
  17217. if (this.stencilStack.pop(), this.count--, y3U.w53(0, this.stencilStack.length))
  17218. o.disable(o.STENCIL_TEST);
  17219. else {
  17220. var n = this.count;
  17221. this.bindGraphics(k, m, e),
  17222. o.colorMask(!1, !1, !1, !1),
  17223. y3U.E53(1, m.mode) ? (this.reverse = !this.reverse, this.reverse ? (o.stencilFunc(o.EQUAL, y3U.e53(255, (n + 1)), 255), o.stencilOp(o.KEEP, o.KEEP, o.INCR)) : (o.stencilFunc(o.EQUAL, n + 1, 255), o.stencilOp(o.KEEP, o.KEEP, o.DECR)), o.drawElements(o.TRIANGLE_FAN, 4, o.UNSIGNED_SHORT, y3U.g53(2, (m.indices.length - 4))), o.stencilFunc(o.ALWAYS, 0, 255), o.stencilOp(o.KEEP, o.KEEP, o.INVERT), o.drawElements(o.TRIANGLE_FAN, y3U.r53(m.indices.length, 4), o.UNSIGNED_SHORT, 0), this.reverse ? o.stencilFunc(o.EQUAL, n, 255) : o.stencilFunc(o.EQUAL, y3U.i53(255, n), 255)) : (this.reverse ? (o.stencilFunc(o.EQUAL, n + 1, 255), o.stencilOp(o.KEEP, o.KEEP, o.DECR)) : (o.stencilFunc(o.EQUAL, y3U.u53(255, (n + 1)), 255), o.stencilOp(o.KEEP, o.KEEP, o.INCR)), o.drawElements(o.TRIANGLE_STRIP, m.indices.length, o.UNSIGNED_SHORT, 0), this.reverse ? o.stencilFunc(o.EQUAL, n, 255) : o.stencilFunc(o.EQUAL, y3U.P53(255, n), 255)),
  17224. o.colorMask(!0, !0, !0, !0),
  17225. o.stencilOp(o.KEEP, o.KEEP, o.KEEP);
  17226. }
  17227. },
  17228. i.WebGLStencilManager.prototype.destroy = function () {
  17229. this.stencilStack = null,
  17230. this.gl = null;
  17231. },
  17232. i.WebGLShaderManager = function () {
  17233. this.maxAttibs = 10,
  17234. this.attribState = [],
  17235. this.tempAttribState = [];
  17236. for (var k = 0; y3U.D53(k, this.maxAttibs); k++)
  17237. this.attribState[k] = !1;
  17238. this.stack = [];
  17239. },
  17240. i.WebGLShaderManager.prototype.constructor = i.WebGLShaderManager,
  17241. i.WebGLShaderManager.prototype.setContext = function (k) {
  17242. this.gl = k,
  17243. this.primitiveShader = new i.PrimitiveShader(k),
  17244. this.complexPrimitiveShader = new i.ComplexPrimitiveShader(k),
  17245. this.defaultShader = new i.PixiShader(k),
  17246. this.fastShader = new i.PixiFastShader(k),
  17247. this.stripShader = new i.StripShader(k),
  17248. this.setShader(this.defaultShader);
  17249. },
  17250. i.WebGLShaderManager.prototype.setAttribs = function (k) {
  17251. var m;
  17252. for (m = 0; y3U.Z53(m, this.tempAttribState.length); m++)
  17253. this.tempAttribState[m] = !1;
  17254. for (m = 0; y3U.R53(m, k.length); m++) {
  17255. var e = k[m];
  17256. this.tempAttribState[e] = !0;
  17257. }
  17258. var o = this.gl;
  17259. for (m = 0; y3U.O53(m, this.attribState.length); m++)
  17260. y3U.V53(this.attribState[m], this.tempAttribState[m]) && (this.attribState[m] = this.tempAttribState[m], this.tempAttribState[m] ? o.enableVertexAttribArray(m) : o.disableVertexAttribArray(m));
  17261. },
  17262. i.WebGLShaderManager.prototype.setShader = function (k) {
  17263. return y3U.k23(this._currentId, k._UID) ? !1 : (this._currentId = k._UID, this.currentShader = k, this.gl.useProgram(k.program), this.setAttribs(k.attributes), !0);
  17264. },
  17265. i.WebGLShaderManager.prototype.destroy = function () {
  17266. this.attribState = null,
  17267. this.tempAttribState = null,
  17268. this.primitiveShader.destroy(),
  17269. this.complexPrimitiveShader.destroy(),
  17270. this.defaultShader.destroy(),
  17271. this.fastShader.destroy(),
  17272. this.stripShader.destroy(),
  17273. this.gl = null;
  17274. },
  17275. i.WebGLSpriteBatch = function () {
  17276. this.vertSize = 5,
  17277. this.size = 2e3;
  17278. var k = y3U.G23(4, this.size, 4, this.vertSize),
  17279. m = y3U.I23(6, this.size);
  17280. this.vertices = new i.ArrayBuffer(k),
  17281. this.positions = new i.Float32Array(this.vertices),
  17282. this.colors = new i.Uint32Array(this.vertices),
  17283. this.indices = new i.Uint16Array(m),
  17284. this.lastIndexCount = 0;
  17285. for (var e = 0, o = 0; y3U.C23(m, e); e += 6, o += 4)
  17286. this.indices[e + 0] = o + 0, this.indices[e + 1] = o + 1, this.indices[e + 2] = o + 2, this.indices[e + 3] = o + 0, this.indices[e + 4] = o + 2, this.indices[e + 5] = o + 3;
  17287. this.drawing = !1,
  17288. this.currentBatchSize = 0,
  17289. this.currentBaseTexture = null,
  17290. this.dirty = !0,
  17291. this.textures = [],
  17292. this.blendModes = [],
  17293. this.shaders = [],
  17294. this.sprites = [],
  17295. this.defaultShader = new i.AbstractFilter(["precision lowp float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;", "}"]);
  17296. },
  17297. i.WebGLSpriteBatch.prototype.setContext = function (k) {
  17298. this.gl = k,
  17299. this.vertexBuffer = k.createBuffer(),
  17300. this.indexBuffer = k.createBuffer(),
  17301. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.indexBuffer),
  17302. k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.indices, k.STATIC_DRAW),
  17303. k.bindBuffer(k.ARRAY_BUFFER, this.vertexBuffer),
  17304. k.bufferData(k.ARRAY_BUFFER, this.vertices, k.DYNAMIC_DRAW),
  17305. this.currentBlendMode = 99999;
  17306. var m = new i.PixiShader(k);
  17307. m.fragmentSrc = this.defaultShader.fragmentSrc,
  17308. m.uniforms = {},
  17309. m.init(),
  17310. this.defaultShader.shaders[k.id] = m;
  17311. },
  17312. i.WebGLSpriteBatch.prototype.begin = function (k) {
  17313. this.renderSession = k,
  17314. this.shader = this.renderSession.shaderManager.defaultShader,
  17315. this.start();
  17316. },
  17317. i.WebGLSpriteBatch.prototype.end = function () {
  17318. this.flush();
  17319. },
  17320. i.WebGLSpriteBatch.prototype.render = function (k) {
  17321. var m = k.texture;
  17322. y3U.v23(this.currentBatchSize, this.size) && (this.flush(), this.currentBaseTexture = m.baseTexture);
  17323. var e = m._uvs;
  17324. if (e) {
  17325. var o,
  17326. n,
  17327. u,
  17328. q,
  17329. f = k.anchor.x,
  17330. j = k.anchor.y;
  17331. if (m.trim) {
  17332. var U0 = m.trim;
  17333. n = y3U.t23(U0.x, f * U0.width),
  17334. o = n + m.crop.width,
  17335. q = y3U.y23(U0.y, j * U0.height),
  17336. u = q + m.crop.height;
  17337. } else
  17338. o = y3U.o23(m.frame.width, (1 - f)), n = m.frame.width * -f, u = y3U.x23(m.frame.height, (1 - j)), q = m.frame.height * -j;
  17339. var k0 = y3U.p23(4, this.currentBatchSize, this.vertSize),
  17340. a0 = m.baseTexture.resolution,
  17341. T0 = k.worldTransform,
  17342. G0 = y3U.f23(T0.a, a0),
  17343. W0 = y3U.K23(T0.b, a0),
  17344. N0 = y3U.B23(T0.c, a0),
  17345. S0 = y3U.l23(T0.d, a0),
  17346. I0 = T0.tx,
  17347. m0 = T0.ty,
  17348. A0 = this.colors,
  17349. L0 = this.positions;
  17350. this.renderSession.roundPixels ? (L0[k0] = y3U.X23(G0 * n + N0 * q + I0, 0), L0[k0 + 1] = y3U.Y23(S0 * q + W0 * n + m0, 0), L0[k0 + 5] = y3U.U13(G0 * o + N0 * q + I0, 0), L0[k0 + 6] = y3U.T13(S0 * q + W0 * o + m0, 0), L0[k0 + 10] = y3U.S13(G0 * o + N0 * u + I0, 0), L0[k0 + 11] = y3U.I13(S0 * u + W0 * o + m0, 0), L0[k0 + 15] = y3U.C13(G0 * n + N0 * u + I0, 0), L0[k0 + 16] = y3U.v13(S0 * u + W0 * n + m0, 0)) : (L0[k0] = y3U.t13(G0, n) + y3U.y13(N0, q) + I0, L0[k0 + 1] = y3U.o13(S0, q) + y3U.M13(W0, n) + m0, L0[k0 + 5] = y3U.n13(G0, o) + y3U.f13(N0, q) + I0, L0[k0 + 6] = y3U.K13(S0, q) + y3U.B13(W0, o) + m0, L0[k0 + 10] = y3U.l13(G0, o) + y3U.X13(N0, u) + I0, L0[k0 + 11] = y3U.Y13(S0, u) + y3U.U63(W0, o) + m0, L0[k0 + 15] = y3U.T63(G0, n) + y3U.S63(N0, u) + I0, L0[k0 + 16] = y3U.I63(S0, u) + y3U.C63(W0, n) + m0),
  17351. L0[k0 + 2] = e.x0,
  17352. L0[k0 + 3] = e.y0,
  17353. L0[k0 + 7] = e.x1,
  17354. L0[k0 + 8] = e.y1,
  17355. L0[k0 + 12] = e.x2,
  17356. L0[k0 + 13] = e.y2,
  17357. L0[k0 + 17] = e.x3,
  17358. L0[k0 + 18] = e.y3;
  17359. var z0 = k.tint;
  17360. A0[k0 + 4] = A0[k0 + 9] = A0[k0 + 14] = A0[k0 + 19] = (y3U.v63(z0, 16)) + (y3U.t63(65280, z0)) + (y3U.y63((255 & z0), 16)) + (y3U.o63(255 * k.worldAlpha, 24)),
  17361. this.sprites[this.currentBatchSize++] = k;
  17362. }
  17363. },
  17364. i.WebGLSpriteBatch.prototype.renderTilingSprite = function (k) {
  17365. var m = k.tilingTexture;
  17366. y3U.x63(this.currentBatchSize, this.size) && (this.flush(), this.currentBaseTexture = m.baseTexture),
  17367. k._uvs || (k._uvs = new i.TextureUvs);
  17368. var e = k._uvs;
  17369. k.tilePosition.x %= y3U.p63(m.baseTexture.width, k.tileScaleOffset.x),
  17370. k.tilePosition.y %= y3U.q63(m.baseTexture.height, k.tileScaleOffset.y);
  17371. var o = y3U.b63(k.tilePosition.x, (m.baseTexture.width * k.tileScaleOffset.x)),
  17372. n = y3U.j63(k.tilePosition.y, (m.baseTexture.height * k.tileScaleOffset.y)),
  17373. u = y3U.d63(k.width, m.baseTexture.width, (k.tileScale.x * k.tileScaleOffset.x)),
  17374. q = y3U.X63(k.height, m.baseTexture.height, (k.tileScale.y * k.tileScaleOffset.y));
  17375. e.x0 = y3U.V63(0, o),
  17376. e.y0 = y3U.k83(0, n),
  17377. e.x1 = y3U.G83(1 * u, o),
  17378. e.y1 = y3U.N83(0, n),
  17379. e.x2 = y3U.L83(1 * u, o),
  17380. e.y2 = y3U.z83(1 * q, n),
  17381. e.x3 = y3U.J83(0, o),
  17382. e.y3 = y3U.H83(1 * q, n);
  17383. var f = k.tint,
  17384. j = (y3U.h83(f, 16)) + (y3U.F83(65280, f)) + (y3U.M83((255 & f), 16)) + (y3U.n83(255 * k.alpha, 24)),
  17385. U0 = this.positions,
  17386. k0 = this.colors,
  17387. a0 = k.width,
  17388. T0 = k.height,
  17389. G0 = k.anchor.x,
  17390. W0 = k.anchor.y,
  17391. N0 = y3U.f83(a0, (1 - G0)),
  17392. S0 = a0 * -G0,
  17393. I0 = y3U.K83(T0, (1 - W0)),
  17394. m0 = T0 * -W0,
  17395. A0 = y3U.B83(4, this.currentBatchSize, this.vertSize),
  17396. L0 = m.baseTexture.resolution,
  17397. z0 = k.worldTransform,
  17398. E0 = y3U.R83(z0.a, L0),
  17399. v0 = y3U.O83(z0.b, L0),
  17400. J0 = y3U.V83(z0.c, L0),
  17401. t0 = y3U.k09(z0.d, L0),
  17402. w0 = z0.tx,
  17403. g0 = z0.ty;
  17404. U0[A0++] = y3U.G09(E0, S0) + y3U.N09(J0, m0) + w0,
  17405. U0[A0++] = y3U.L09(t0, m0) + y3U.z09(v0, S0) + g0,
  17406. U0[A0++] = e.x0,
  17407. U0[A0++] = e.y0,
  17408. k0[A0++] = j,
  17409. U0[A0++] = y3U.J09(E0, N0) + y3U.H09(J0, m0) + w0,
  17410. U0[A0++] = y3U.h09(t0, m0) + y3U.F09(v0, N0) + g0,
  17411. U0[A0++] = e.x1,
  17412. U0[A0++] = e.y1,
  17413. k0[A0++] = j,
  17414. U0[A0++] = y3U.M09(E0, N0) + y3U.n09(J0, I0) + w0,
  17415. U0[A0++] = y3U.f09(t0, I0) + y3U.K09(v0, N0) + g0,
  17416. U0[A0++] = e.x2,
  17417. U0[A0++] = e.y2,
  17418. k0[A0++] = j,
  17419. U0[A0++] = y3U.B09(E0, S0) + y3U.l09(J0, I0) + w0,
  17420. U0[A0++] = y3U.X09(t0, I0) + y3U.Y09(v0, S0) + g0,
  17421. U0[A0++] = e.x3,
  17422. U0[A0++] = e.y3,
  17423. k0[A0++] = j,
  17424. this.sprites[this.currentBatchSize++] = k;
  17425. },
  17426. i.WebGLSpriteBatch.prototype.flush = function () {
  17427. if (y3U.U79(0, this.currentBatchSize)) {
  17428. var k,
  17429. m = this.gl;
  17430. if (this.dirty) {
  17431. this.dirty = !1,
  17432. m.activeTexture(m.TEXTURE0),
  17433. m.bindBuffer(m.ARRAY_BUFFER, this.vertexBuffer),
  17434. m.bindBuffer(m.ELEMENT_ARRAY_BUFFER, this.indexBuffer),
  17435. k = this.defaultShader.shaders[m.id];
  17436. var e = y3U.T79(4, this.vertSize);
  17437. m.vertexAttribPointer(k.aVertexPosition, 2, m.FLOAT, !1, e, 0),
  17438. m.vertexAttribPointer(k.aTextureCoord, 2, m.FLOAT, !1, e, 8),
  17439. m.vertexAttribPointer(k.colorAttribute, 4, m.UNSIGNED_BYTE, !0, e, 16);
  17440. }
  17441. if (y3U.S79(this.currentBatchSize, .5 * this.size))
  17442. m.bufferSubData(m.ARRAY_BUFFER, 0, this.vertices);
  17443. else {
  17444. var o = this.positions.subarray(0, y3U.I79(4, this.currentBatchSize, this.vertSize));
  17445. m.bufferSubData(m.ARRAY_BUFFER, 0, o);
  17446. }
  17447. for (var n, u, q, f, j = 0, U0 = 0, k0 = null, a0 = this.renderSession.blendModeManager.currentBlendMode, T0 = null, G0 = !1, W0 = !1, N0 = 0, S0 = this.currentBatchSize; y3U.z79(S0, N0); N0++) {
  17448. if (f = this.sprites[N0], n = f.texture.baseTexture, u = f.blendMode, q = f.shader || this.defaultShader, G0 = y3U.J79(a0, u), W0 = y3U.H79(T0, q), (y3U.h79(k0, n) || G0 || W0) && (this.renderBatch(k0, j, U0), U0 = N0, j = 0, k0 = n, G0 && (a0 = u, this.renderSession.blendModeManager.setBlendMode(a0)), W0)) {
  17449. T0 = q,
  17450. k = T0.shaders[m.id],
  17451. k || (k = new i.PixiShader(m), k.fragmentSrc = T0.fragmentSrc, k.uniforms = T0.uniforms, k.init(), T0.shaders[m.id] = k),
  17452. this.renderSession.shaderManager.setShader(k),
  17453. k.dirty && k.syncUniforms();
  17454. var I0 = this.renderSession.projection;
  17455. m.uniform2f(k.projectionVector, I0.x, I0.y);
  17456. var m0 = this.renderSession.offset;
  17457. m.uniform2f(k.offsetVector, m0.x, m0.y);
  17458. }
  17459. j++;
  17460. }
  17461. this.renderBatch(k0, j, U0),
  17462. this.currentBatchSize = 0;
  17463. }
  17464. },
  17465. i.WebGLSpriteBatch.prototype.renderBatch = function (k, m, e) {
  17466. if (y3U.F79(0, m)) {
  17467. var o = this.gl;
  17468. k._dirty[o.id] ? this.renderSession.renderer.updateTexture(k) : o.bindTexture(o.TEXTURE_2D, k._glTextures[o.id]),
  17469. o.drawElements(o.TRIANGLES, y3U.M79(6, m), o.UNSIGNED_SHORT, y3U.n79(6, e, 2)),
  17470. this.renderSession.drawCount++;
  17471. }
  17472. },
  17473. i.WebGLSpriteBatch.prototype.stop = function () {
  17474. this.flush(),
  17475. this.dirty = !0;
  17476. },
  17477. i.WebGLSpriteBatch.prototype.start = function () {
  17478. this.dirty = !0;
  17479. },
  17480. i.WebGLSpriteBatch.prototype.destroy = function () {
  17481. this.vertices = null,
  17482. this.indices = null,
  17483. this.gl.deleteBuffer(this.vertexBuffer),
  17484. this.gl.deleteBuffer(this.indexBuffer),
  17485. this.currentBaseTexture = null,
  17486. this.gl = null;
  17487. },
  17488. i.WebGLFastSpriteBatch = function (k) {
  17489. this.vertSize = 10,
  17490. this.maxSize = 6e3,
  17491. this.size = this.maxSize;
  17492. var m = y3U.P79(4, this.size, this.vertSize),
  17493. e = y3U.j79(6, this.maxSize);
  17494. this.vertices = new i.Float32Array(m),
  17495. this.indices = new i.Uint16Array(e),
  17496. this.vertexBuffer = null,
  17497. this.indexBuffer = null,
  17498. this.lastIndexCount = 0;
  17499. for (var o = 0, n = 0; y3U.d79(e, o); o += 6, n += 4)
  17500. this.indices[o + 0] = n + 0, this.indices[o + 1] = n + 1, this.indices[o + 2] = n + 2, this.indices[o + 3] = n + 0, this.indices[o + 4] = n + 2, this.indices[o + 5] = n + 3;
  17501. this.drawing = !1,
  17502. this.currentBatchSize = 0,
  17503. this.currentBaseTexture = null,
  17504. this.currentBlendMode = 0,
  17505. this.renderSession = null,
  17506. this.shader = null,
  17507. this.matrix = null,
  17508. this.setContext(k);
  17509. },
  17510. i.WebGLFastSpriteBatch.prototype.constructor = i.WebGLFastSpriteBatch,
  17511. i.WebGLFastSpriteBatch.prototype.setContext = function (k) {
  17512. this.gl = k,
  17513. this.vertexBuffer = k.createBuffer(),
  17514. this.indexBuffer = k.createBuffer(),
  17515. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.indexBuffer),
  17516. k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.indices, k.STATIC_DRAW),
  17517. k.bindBuffer(k.ARRAY_BUFFER, this.vertexBuffer),
  17518. k.bufferData(k.ARRAY_BUFFER, this.vertices, k.DYNAMIC_DRAW);
  17519. },
  17520. i.WebGLFastSpriteBatch.prototype.begin = function (k, m) {
  17521. this.renderSession = m,
  17522. this.shader = this.renderSession.shaderManager.fastShader,
  17523. this.matrix = k.worldTransform.toArray(!0),
  17524. this.start();
  17525. },
  17526. i.WebGLFastSpriteBatch.prototype.end = function () {
  17527. this.flush();
  17528. },
  17529. i.WebGLFastSpriteBatch.prototype.render = function (k) {
  17530. var m = k.children,
  17531. e = m[0];
  17532. if (e.texture._uvs) {
  17533. this.currentBaseTexture = e.texture.baseTexture,
  17534. y3U.c79(e.blendMode, this.renderSession.blendModeManager.currentBlendMode) && (this.flush(), this.renderSession.blendModeManager.setBlendMode(e.blendMode));
  17535. for (var o = 0, n = m.length; y3U.s79(n, o); o++)
  17536. this.renderSprite(m[o]);
  17537. this.flush();
  17538. }
  17539. },
  17540. i.WebGLFastSpriteBatch.prototype.renderSprite = function (k) {
  17541. if (k.visible && (y3U.Q79(k.texture.baseTexture, this.currentBaseTexture) || (this.flush(), this.currentBaseTexture = k.texture.baseTexture, k.texture._uvs))) {
  17542. var m,
  17543. e,
  17544. o,
  17545. n,
  17546. u,
  17547. q,
  17548. f,
  17549. j,
  17550. U0 = this.vertices;
  17551. if (m = k.texture._uvs, e = k.texture.frame.width, o = k.texture.frame.height, k.texture.trim) {
  17552. var k0 = k.texture.trim;
  17553. u = y3U.a49(k0.x, k.anchor.x * k0.width),
  17554. n = u + k.texture.crop.width,
  17555. f = y3U.W49(k0.y, k.anchor.y * k0.height),
  17556. q = f + k.texture.crop.height;
  17557. } else
  17558. n = y3U.m49(k.texture.frame.width, (1 - k.anchor.x)), u = k.texture.frame.width * -k.anchor.x, q = y3U.A49(k.texture.frame.height, (1 - k.anchor.y)), f = k.texture.frame.height * -k.anchor.y;
  17559. j = y3U.w49(4, this.currentBatchSize, this.vertSize),
  17560. U0[j++] = u,
  17561. U0[j++] = f,
  17562. U0[j++] = k.position.x,
  17563. U0[j++] = k.position.y,
  17564. U0[j++] = k.scale.x,
  17565. U0[j++] = k.scale.y,
  17566. U0[j++] = k.rotation,
  17567. U0[j++] = m.x0,
  17568. U0[j++] = m.y1,
  17569. U0[j++] = k.alpha,
  17570. U0[j++] = n,
  17571. U0[j++] = f,
  17572. U0[j++] = k.position.x,
  17573. U0[j++] = k.position.y,
  17574. U0[j++] = k.scale.x,
  17575. U0[j++] = k.scale.y,
  17576. U0[j++] = k.rotation,
  17577. U0[j++] = m.x1,
  17578. U0[j++] = m.y1,
  17579. U0[j++] = k.alpha,
  17580. U0[j++] = n,
  17581. U0[j++] = q,
  17582. U0[j++] = k.position.x,
  17583. U0[j++] = k.position.y,
  17584. U0[j++] = k.scale.x,
  17585. U0[j++] = k.scale.y,
  17586. U0[j++] = k.rotation,
  17587. U0[j++] = m.x2,
  17588. U0[j++] = m.y2,
  17589. U0[j++] = k.alpha,
  17590. U0[j++] = u,
  17591. U0[j++] = q,
  17592. U0[j++] = k.position.x,
  17593. U0[j++] = k.position.y,
  17594. U0[j++] = k.scale.x,
  17595. U0[j++] = k.scale.y,
  17596. U0[j++] = k.rotation,
  17597. U0[j++] = m.x3,
  17598. U0[j++] = m.y3,
  17599. U0[j++] = k.alpha,
  17600. this.currentBatchSize++,
  17601. y3U.t49(this.currentBatchSize, this.size) && this.flush();
  17602. }
  17603. },
  17604. i.WebGLFastSpriteBatch.prototype.flush = function () {
  17605. if (y3U.y49(0, this.currentBatchSize)) {
  17606. var k = this.gl;
  17607. if (this.currentBaseTexture._glTextures[k.id] || this.renderSession.renderer.updateTexture(this.currentBaseTexture, k), k.bindTexture(k.TEXTURE_2D, this.currentBaseTexture._glTextures[k.id]), y3U.o49(this.currentBatchSize, .5 * this.size))
  17608. k.bufferSubData(k.ARRAY_BUFFER, 0, this.vertices);
  17609. else {
  17610. var m = this.vertices.subarray(0, y3U.x49(4, this.currentBatchSize, this.vertSize));
  17611. k.bufferSubData(k.ARRAY_BUFFER, 0, m);
  17612. }
  17613. k.drawElements(k.TRIANGLES, y3U.n49(6, this.currentBatchSize), k.UNSIGNED_SHORT, 0),
  17614. this.currentBatchSize = 0,
  17615. this.renderSession.drawCount++;
  17616. }
  17617. },
  17618. i.WebGLFastSpriteBatch.prototype.stop = function () {
  17619. this.flush();
  17620. },
  17621. i.WebGLFastSpriteBatch.prototype.start = function () {
  17622. var k = this.gl;
  17623. k.activeTexture(k.TEXTURE0),
  17624. k.bindBuffer(k.ARRAY_BUFFER, this.vertexBuffer),
  17625. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.indexBuffer);
  17626. var m = this.renderSession.projection;
  17627. k.uniform2f(this.shader.projectionVector, m.x, m.y),
  17628. k.uniformMatrix3fv(this.shader.uMatrix, !1, this.matrix);
  17629. var e = y3U.f49(4, this.vertSize);
  17630. k.vertexAttribPointer(this.shader.aVertexPosition, 2, k.FLOAT, !1, e, 0),
  17631. k.vertexAttribPointer(this.shader.aPositionCoord, 2, k.FLOAT, !1, e, 8),
  17632. k.vertexAttribPointer(this.shader.aScale, 2, k.FLOAT, !1, e, 16),
  17633. k.vertexAttribPointer(this.shader.aRotation, 1, k.FLOAT, !1, e, 24),
  17634. k.vertexAttribPointer(this.shader.aTextureCoord, 2, k.FLOAT, !1, e, 28),
  17635. k.vertexAttribPointer(this.shader.colorAttribute, 1, k.FLOAT, !1, e, 36);
  17636. },
  17637. i.WebGLFilterManager = function () {
  17638. this.filterStack = [],
  17639. this.offsetX = 0,
  17640. this.offsetY = 0;
  17641. },
  17642. i.WebGLFilterManager.prototype.constructor = i.WebGLFilterManager,
  17643. i.WebGLFilterManager.prototype.setContext = function (k) {
  17644. this.gl = k,
  17645. this.texturePool = [],
  17646. this.initShaderBuffers();
  17647. },
  17648. i.WebGLFilterManager.prototype.begin = function (k, m) {
  17649. this.renderSession = k,
  17650. this.defaultShader = k.shaderManager.defaultShader;
  17651. var e = this.renderSession.projection;
  17652. this.width = y3U.K49(2, e.x),
  17653. this.height = 2 * -e.y,
  17654. this.buffer = m;
  17655. },
  17656. i.WebGLFilterManager.prototype.pushFilter = function (k) {
  17657. var m = this.gl,
  17658. e = this.renderSession.projection,
  17659. o = this.renderSession.offset;
  17660. k._filterArea = k.target.filterArea || k.target.getBounds(),
  17661. this.filterStack.push(k);
  17662. var n = k.filterPasses[0];
  17663. this.offsetX += k._filterArea.x,
  17664. this.offsetY += k._filterArea.y;
  17665. var u = this.texturePool.pop();
  17666. u ? u.resize(this.width, this.height) : u = new i.FilterTexture(this.gl, this.width, this.height),
  17667. m.bindTexture(m.TEXTURE_2D, u.texture);
  17668. var q = k._filterArea,
  17669. f = n.padding;
  17670. q.x -= f,
  17671. q.y -= f,
  17672. q.width += y3U.B49(2, f),
  17673. q.height += y3U.l49(2, f),
  17674. y3U.X49(q.x, 0) && (q.x = 0),
  17675. y3U.Y49(q.width, this.width) && (q.width = this.width),
  17676. y3U.U39(q.y, 0) && (q.y = 0),
  17677. y3U.T39(q.height, this.height) && (q.height = this.height),
  17678. m.bindFramebuffer(m.FRAMEBUFFER, u.frameBuffer),
  17679. m.viewport(0, 0, q.width, q.height),
  17680. e.x = y3U.S39(q.width, 2),
  17681. e.y = -q.height / 2,
  17682. o.x = -q.x,
  17683. o.y = -q.y,
  17684. m.colorMask(!0, !0, !0, !0),
  17685. m.clearColor(0, 0, 0, 0),
  17686. m.clear(m.COLOR_BUFFER_BIT),
  17687. k._glFilterTexture = u;
  17688. },
  17689. i.WebGLFilterManager.prototype.popFilter = function () {
  17690. var k = this.gl,
  17691. m = this.filterStack.pop(),
  17692. e = m._filterArea,
  17693. o = m._glFilterTexture,
  17694. n = this.renderSession.projection,
  17695. u = this.renderSession.offset;
  17696. if (y3U.I39(m.filterPasses.length, 1)) {
  17697. k.viewport(0, 0, e.width, e.height),
  17698. k.bindBuffer(k.ARRAY_BUFFER, this.vertexBuffer),
  17699. this.vertexArray[0] = 0,
  17700. this.vertexArray[1] = e.height,
  17701. this.vertexArray[2] = e.width,
  17702. this.vertexArray[3] = e.height,
  17703. this.vertexArray[4] = 0,
  17704. this.vertexArray[5] = 0,
  17705. this.vertexArray[6] = e.width,
  17706. this.vertexArray[7] = 0,
  17707. k.bufferSubData(k.ARRAY_BUFFER, 0, this.vertexArray),
  17708. k.bindBuffer(k.ARRAY_BUFFER, this.uvBuffer),
  17709. this.uvArray[2] = y3U.C39(e.width, this.width),
  17710. this.uvArray[5] = y3U.v39(e.height, this.height),
  17711. this.uvArray[6] = y3U.t39(e.width, this.width),
  17712. this.uvArray[7] = y3U.y39(e.height, this.height),
  17713. k.bufferSubData(k.ARRAY_BUFFER, 0, this.uvArray);
  17714. var q = o,
  17715. f = this.texturePool.pop();
  17716. f || (f = new i.FilterTexture(this.gl, this.width, this.height)),
  17717. f.resize(this.width, this.height),
  17718. k.bindFramebuffer(k.FRAMEBUFFER, f.frameBuffer),
  17719. k.clear(k.COLOR_BUFFER_BIT),
  17720. k.disable(k.BLEND);
  17721. for (var j = 0; y3U.o39(j, m.filterPasses.length - 1); j++) {
  17722. var U0 = m.filterPasses[j];
  17723. k.bindFramebuffer(k.FRAMEBUFFER, f.frameBuffer),
  17724. k.activeTexture(k.TEXTURE0),
  17725. k.bindTexture(k.TEXTURE_2D, q.texture),
  17726. this.applyFilterPass(U0, e, e.width, e.height);
  17727. var k0 = q;
  17728. q = f,
  17729. f = k0;
  17730. }
  17731. k.enable(k.BLEND),
  17732. o = q,
  17733. this.texturePool.push(f);
  17734. }
  17735. var a0 = m.filterPasses[y3U.x39(m.filterPasses.length, 1)];
  17736. this.offsetX -= e.x,
  17737. this.offsetY -= e.y;
  17738. var T0 = this.width,
  17739. G0 = this.height,
  17740. W0 = 0,
  17741. N0 = 0,
  17742. S0 = this.buffer;
  17743. if (y3U.p39(0, this.filterStack.length))
  17744. k.colorMask(!0, !0, !0, !0);
  17745. else {
  17746. var I0 = this.filterStack[y3U.q39(this.filterStack.length, 1)];
  17747. e = I0._filterArea,
  17748. T0 = e.width,
  17749. G0 = e.height,
  17750. W0 = e.x,
  17751. N0 = e.y,
  17752. S0 = I0._glFilterTexture.frameBuffer;
  17753. }
  17754. n.x = y3U.b39(T0, 2),
  17755. n.y = -G0 / 2,
  17756. u.x = W0,
  17757. u.y = N0,
  17758. e = m._filterArea;
  17759. var m0 = y3U.j39(e.x, W0),
  17760. A0 = y3U.d39(e.y, N0);
  17761. k.bindBuffer(k.ARRAY_BUFFER, this.vertexBuffer),
  17762. this.vertexArray[0] = m0,
  17763. this.vertexArray[1] = A0 + e.height,
  17764. this.vertexArray[2] = m0 + e.width,
  17765. this.vertexArray[3] = A0 + e.height,
  17766. this.vertexArray[4] = m0,
  17767. this.vertexArray[5] = A0,
  17768. this.vertexArray[6] = m0 + e.width,
  17769. this.vertexArray[7] = A0,
  17770. k.bufferSubData(k.ARRAY_BUFFER, 0, this.vertexArray),
  17771. k.bindBuffer(k.ARRAY_BUFFER, this.uvBuffer),
  17772. this.uvArray[2] = y3U.c39(e.width, this.width),
  17773. this.uvArray[5] = y3U.s39(e.height, this.height),
  17774. this.uvArray[6] = y3U.Q39(e.width, this.width),
  17775. this.uvArray[7] = y3U.a99(e.height, this.height),
  17776. k.bufferSubData(k.ARRAY_BUFFER, 0, this.uvArray),
  17777. k.viewport(0, 0, T0, G0),
  17778. k.bindFramebuffer(k.FRAMEBUFFER, S0),
  17779. k.activeTexture(k.TEXTURE0),
  17780. k.bindTexture(k.TEXTURE_2D, o.texture),
  17781. this.applyFilterPass(a0, e, T0, G0),
  17782. this.texturePool.push(o),
  17783. m._glFilterTexture = null;
  17784. },
  17785. i.WebGLFilterManager.prototype.applyFilterPass = function (k, m, e, o) {
  17786. var n = this.gl,
  17787. u = k.shaders[n.id];
  17788. u || (u = new i.PixiShader(n), u.fragmentSrc = k.fragmentSrc, u.uniforms = k.uniforms, u.init(), k.shaders[n.id] = u),
  17789. this.renderSession.shaderManager.setShader(u),
  17790. n.uniform2f(u.projectionVector, y3U.W99(e, 2), -o / 2),
  17791. n.uniform2f(u.offsetVector, 0, 0),
  17792. k.uniforms.dimensions && (k.uniforms.dimensions.value[0] = this.width, k.uniforms.dimensions.value[1] = this.height, k.uniforms.dimensions.value[2] = this.vertexArray[0], k.uniforms.dimensions.value[3] = this.vertexArray[5]),
  17793. u.syncUniforms(),
  17794. n.bindBuffer(n.ARRAY_BUFFER, this.vertexBuffer),
  17795. n.vertexAttribPointer(u.aVertexPosition, 2, n.FLOAT, !1, 0, 0),
  17796. n.bindBuffer(n.ARRAY_BUFFER, this.uvBuffer),
  17797. n.vertexAttribPointer(u.aTextureCoord, 2, n.FLOAT, !1, 0, 0),
  17798. n.bindBuffer(n.ARRAY_BUFFER, this.colorBuffer),
  17799. n.vertexAttribPointer(u.colorAttribute, 2, n.FLOAT, !1, 0, 0),
  17800. n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, this.indexBuffer),
  17801. n.drawElements(n.TRIANGLES, 6, n.UNSIGNED_SHORT, 0),
  17802. this.renderSession.drawCount++;
  17803. },
  17804. i.WebGLFilterManager.prototype.initShaderBuffers = function () {
  17805. var k = this.gl;
  17806. this.vertexBuffer = k.createBuffer(),
  17807. this.uvBuffer = k.createBuffer(),
  17808. this.colorBuffer = k.createBuffer(),
  17809. this.indexBuffer = k.createBuffer(),
  17810. this.vertexArray = new i.Float32Array([0, 0, 1, 0, 0, 1, 1, 1]),
  17811. k.bindBuffer(k.ARRAY_BUFFER, this.vertexBuffer),
  17812. k.bufferData(k.ARRAY_BUFFER, this.vertexArray, k.STATIC_DRAW),
  17813. this.uvArray = new i.Float32Array([0, 0, 1, 0, 0, 1, 1, 1]),
  17814. k.bindBuffer(k.ARRAY_BUFFER, this.uvBuffer),
  17815. k.bufferData(k.ARRAY_BUFFER, this.uvArray, k.STATIC_DRAW),
  17816. this.colorArray = new i.Float32Array([1, 16777215, 1, 16777215, 1, 16777215, 1, 16777215]),
  17817. k.bindBuffer(k.ARRAY_BUFFER, this.colorBuffer),
  17818. k.bufferData(k.ARRAY_BUFFER, this.colorArray, k.STATIC_DRAW),
  17819. k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.indexBuffer),
  17820. k.bufferData(k.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 1, 3, 2]), k.STATIC_DRAW);
  17821. },
  17822. i.WebGLFilterManager.prototype.destroy = function () {
  17823. var k = this.gl;
  17824. this.filterStack = null,
  17825. this.offsetX = 0,
  17826. this.offsetY = 0;
  17827. for (var m = 0; y3U.m99(m, this.texturePool.length); m++)
  17828. this.texturePool[m].destroy();
  17829. this.texturePool = null,
  17830. k.deleteBuffer(this.vertexBuffer),
  17831. k.deleteBuffer(this.uvBuffer),
  17832. k.deleteBuffer(this.colorBuffer),
  17833. k.deleteBuffer(this.indexBuffer);
  17834. },
  17835. i.FilterTexture = function (k, m, e, o) {
  17836. this.gl = k,
  17837. this.frameBuffer = k.createFramebuffer(),
  17838. this.texture = k.createTexture(),
  17839. o = o || i.scaleModes.DEFAULT,
  17840. k.bindTexture(k.TEXTURE_2D, this.texture),
  17841. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MAG_FILTER, y3U.A99(o, i.scaleModes.LINEAR) ? k.LINEAR : k.NEAREST),
  17842. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MIN_FILTER, y3U.w99(o, i.scaleModes.LINEAR) ? k.LINEAR : k.NEAREST),
  17843. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_WRAP_S, k.CLAMP_TO_EDGE),
  17844. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_WRAP_T, k.CLAMP_TO_EDGE),
  17845. k.bindFramebuffer(k.FRAMEBUFFER, this.frameBuffer),
  17846. k.bindFramebuffer(k.FRAMEBUFFER, this.frameBuffer),
  17847. k.framebufferTexture2D(k.FRAMEBUFFER, k.COLOR_ATTACHMENT0, k.TEXTURE_2D, this.texture, 0),
  17848. this.renderBuffer = k.createRenderbuffer(),
  17849. k.bindRenderbuffer(k.RENDERBUFFER, this.renderBuffer),
  17850. k.framebufferRenderbuffer(k.FRAMEBUFFER, k.DEPTH_STENCIL_ATTACHMENT, k.RENDERBUFFER, this.renderBuffer),
  17851. this.resize(m, e);
  17852. },
  17853. i.FilterTexture.prototype.constructor = i.FilterTexture,
  17854. i.FilterTexture.prototype.clear = function () {
  17855. var k = this.gl;
  17856. k.clearColor(0, 0, 0, 0),
  17857. k.clear(k.COLOR_BUFFER_BIT);
  17858. },
  17859. i.FilterTexture.prototype.resize = function (k, m) {
  17860. if (y3U.E99(this.width, k) || y3U.e99(this.height, m)) {
  17861. this.width = k,
  17862. this.height = m;
  17863. var e = this.gl;
  17864. e.bindTexture(e.TEXTURE_2D, this.texture),
  17865. e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, k, m, 0, e.RGBA, e.UNSIGNED_BYTE, null),
  17866. e.bindRenderbuffer(e.RENDERBUFFER, this.renderBuffer),
  17867. e.renderbufferStorage(e.RENDERBUFFER, e.DEPTH_STENCIL, k, m);
  17868. }
  17869. },
  17870. i.FilterTexture.prototype.destroy = function () {
  17871. var k = this.gl;
  17872. k.deleteFramebuffer(this.frameBuffer),
  17873. k.deleteTexture(this.texture),
  17874. this.frameBuffer = null,
  17875. this.texture = null;
  17876. },
  17877. i.CanvasBuffer = function (k, m) {
  17878. this.width = k,
  17879. this.height = m,
  17880. this.canvas = r2w8n[H8n]['createElement']("canvas"),
  17881. this.context = this.canvas.getContext("2d"),
  17882. this.canvas.width = k,
  17883. this.canvas.height = m;
  17884. },
  17885. i.CanvasBuffer.prototype.constructor = i.CanvasBuffer,
  17886. i.CanvasBuffer.prototype.clear = function () {
  17887. this.context.setTransform(1, 0, 0, 1, 0, 0),
  17888. this.context.clearRect(0, 0, this.width, this.height);
  17889. },
  17890. i.CanvasBuffer.prototype.resize = function (k, m) {
  17891. this.width = this.canvas.width = k,
  17892. this.height = this.canvas.height = m;
  17893. },
  17894. i.CanvasMaskManager = function () {},
  17895. i.CanvasMaskManager.prototype.constructor = i.CanvasMaskManager,
  17896. i.CanvasMaskManager.prototype.pushMask = function (k, m) {
  17897. var e = m.context;
  17898. e.save();
  17899. var o = k.alpha,
  17900. n = k.worldTransform,
  17901. u = m.resolution;
  17902. e.setTransform(y3U.g99(n.a, u), y3U.r99(n.b, u), y3U.i99(n.c, u), y3U.u99(n.d, u), y3U.P99(n.tx, u), y3U.D99(n.ty, u)),
  17903. i.CanvasGraphics.renderGraphicsMask(k, e),
  17904. e.clip(),
  17905. k.worldAlpha = o;
  17906. },
  17907. i.CanvasMaskManager.prototype.popMask = function (k) {
  17908. k.context.restore();
  17909. },
  17910. i.CanvasTinter = function () {},
  17911. i.CanvasTinter.getTintedTexture = function (k, m) {
  17912. var e = k.texture;
  17913. m = i.CanvasTinter.roundColor(m);
  17914. var o = "#" + ("00000" + (y3U.Z99(0, m)).toString(16)).substr(-6);
  17915. if (e.tintCache = e.tintCache || {}, e.tintCache[o])
  17916. return e.tintCache[o];
  17917. var n = i.CanvasTinter.canvas || r2w8n[H8n]['createElement']("canvas");
  17918. if (i.CanvasTinter.tintMethod(e, m, n), i.CanvasTinter.convertTintToImage) {
  17919. var u = new Image;
  17920. u.src = n.toDataURL(),
  17921. e.tintCache[o] = u;
  17922. } else
  17923. e.tintCache[o] = n, i.CanvasTinter.canvas = null;
  17924. return n;
  17925. },
  17926. i.CanvasTinter.tintWithMultiply = function (k, m, e) {
  17927. var o = e.getContext("2d"),
  17928. n = k.crop;
  17929. e.width = n.width,
  17930. e.height = n.height,
  17931. o.fillStyle = "#" + ("00000" + (y3U.R99(0, m)).toString(16)).substr(-6),
  17932. o.fillRect(0, 0, n.width, n.height),
  17933. o.globalCompositeOperation = "multiply",
  17934. o.drawImage(k.baseTexture.source, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height),
  17935. o.globalCompositeOperation = "destination-atop",
  17936. o.drawImage(k.baseTexture.source, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height);
  17937. },
  17938. i.CanvasTinter.tintWithOverlay = function (k, m, e) {
  17939. var o = e.getContext("2d"),
  17940. n = k.crop;
  17941. e.width = n.width,
  17942. e.height = n.height,
  17943. o.globalCompositeOperation = "copy",
  17944. o.fillStyle = "#" + ("00000" + (y3U.O99(0, m)).toString(16)).substr(-6),
  17945. o.fillRect(0, 0, n.width, n.height),
  17946. o.globalCompositeOperation = "destination-atop",
  17947. o.drawImage(k.baseTexture.source, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height);
  17948. },
  17949. i.CanvasTinter.tintWithPerPixel = function (k, m, e) {
  17950. var o = e.getContext("2d"),
  17951. n = k.crop;
  17952. e.width = n.width,
  17953. e.height = n.height,
  17954. o.globalCompositeOperation = "copy",
  17955. o.drawImage(k.baseTexture.source, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height);
  17956. for (var u = i.hex2rgb(m), q = u[0], f = u[1], j = u[2], U0 = o.getImageData(0, 0, n.width, n.height), k0 = U0.data, a0 = 0; y3U.V99(a0, k0.length); a0 += 4)
  17957. if (k0[a0 + 0] *= q, k0[a0 + 1] *= f, k0[a0 + 2] *= j, !i.CanvasTinter.canHandleAlpha) {
  17958. var T0 = k0[a0 + 3];
  17959. k0[a0 + 0] /= y3U.k59(255, T0),
  17960. k0[a0 + 1] /= y3U.G59(255, T0),
  17961. k0[a0 + 2] /= y3U.N59(255, T0);
  17962. }
  17963. o.putImageData(U0, 0, 0);
  17964. },
  17965. i.CanvasTinter.roundColor = function (k) {
  17966. var m = i.CanvasTinter.cacheStepsPerColorChannel,
  17967. e = i.hex2rgb(k);
  17968. return e[0] = Math.min(255, y3U.L59(e[0], m, m)),
  17969. e[1] = Math.min(255, y3U.w59(e[1], m, m)),
  17970. e[2] = Math.min(255, y3U.t59(e[2], m, m)),
  17971. i.rgb2hex(e);
  17972. },
  17973. i.CanvasTinter.checkInverseAlpha = function () {
  17974. var k = new i.CanvasBuffer(2, 1);
  17975. k.context.fillStyle = "rgba(10, 20, 30, 0.5)",
  17976. k.context.fillRect(0, 0, 1, 1);
  17977. var m = k.context.getImageData(0, 0, 1, 1);
  17978. k.context.putImageData(m, 1, 0);
  17979. var e = k.context.getImageData(1, 0, 1, 1);
  17980. return y3U.h59(e.data[0], m.data[0]) && y3U.F59(e.data[1], m.data[1]) && y3U.M59(e.data[2], m.data[2]) && y3U.n59(e.data[3], m.data[3]);
  17981. },
  17982. i.CanvasTinter.cacheStepsPerColorChannel = 8,
  17983. i.CanvasTinter.convertTintToImage = !1,
  17984. i.CanvasTinter.canHandleAlpha = i.CanvasTinter.checkInverseAlpha(),
  17985. i.CanvasTinter.canUseMultiply = i.canUseNewCanvasBlendModes(),
  17986. i.CanvasTinter.tintMethod = i.CanvasTinter.canUseMultiply ? i.CanvasTinter.tintWithMultiply : i.CanvasTinter.tintWithPerPixel,
  17987. i.CanvasRenderer = function (m, e, o) {
  17988. var n = function (k) {
  17989. o = k.defaultRenderOptions;
  17990. };
  17991. if (o)
  17992. for (var u in i.defaultRenderOptions)
  17993. "undefined" == typeof o[u] && (o[u] = i.defaultRenderOptions[u]);
  17994. else
  17995. n(i);
  17996. i.defaultRenderer || (i.sayHello("Canvas"), i.defaultRenderer = this),
  17997. this.type = i.CANVAS_RENDERER,
  17998. this.resolution = o.resolution,
  17999. this.clearBeforeRender = o.clearBeforeRender,
  18000. this.transparent = o.transparent,
  18001. this.autoResize = o.autoResize || !1,
  18002. this.width = m || 800,
  18003. this.height = e || 600,
  18004. this.width *= this.resolution,
  18005. this.height *= this.resolution,
  18006. this.view = o.view || r2w8n[H8n]['createElement']("canvas"),
  18007. this.context = this.view.getContext("2d", {
  18008. alpha : this.transparent
  18009. }),
  18010. this.refresh = !0,
  18011. this.view.width = y3U.f59(this.width, this.resolution),
  18012. this.view.height = y3U.K59(this.height, this.resolution),
  18013. this.count = 0,
  18014. this.maskManager = new i.CanvasMaskManager,
  18015. this.renderSession = {
  18016. context : this.context,
  18017. maskManager : this.maskManager,
  18018. scaleMode : null,
  18019. smoothProperty : null,
  18020. roundPixels : !1
  18021. },
  18022. this.mapBlendModes(),
  18023. this.resize(m, e),
  18024. y3U.B59("imageSmoothingEnabled", this.context) ? this.renderSession.smoothProperty = "imageSmoothingEnabled" : y3U.l59("webkitImageSmoothingEnabled", this.context) ? this.renderSession.smoothProperty = "webkitImageSmoothingEnabled" : y3U.X59("mozImageSmoothingEnabled", this.context) ? this.renderSession.smoothProperty = "mozImageSmoothingEnabled" : y3U.Y59("oImageSmoothingEnabled", this.context) ? this.renderSession.smoothProperty = "oImageSmoothingEnabled" : y3U.U29("msImageSmoothingEnabled", this.context) && (this.renderSession.smoothProperty = "msImageSmoothingEnabled");
  18025. },
  18026. i.CanvasRenderer.prototype.constructor = i.CanvasRenderer,
  18027. i.CanvasRenderer.prototype.render = function (k) {
  18028. k.updateTransform(),
  18029. this.context.setTransform(1, 0, 0, 1, 0, 0),
  18030. this.context.globalAlpha = 1,
  18031. this.renderSession.currentBlendMode = i.blendModes.NORMAL,
  18032. this.context.globalCompositeOperation = i.blendModesCanvas[i.blendModes.NORMAL],
  18033. r2w8n[v8n].isCocoonJS && this.view.screencanvas && (this.context.fillStyle = "black", this.context.clear()),
  18034. this.clearBeforeRender && (this.transparent ? this.context.clearRect(0, 0, this.width, this.height) : (this.context.fillStyle = k.backgroundColorString, this.context.fillRect(0, 0, this.width, this.height))),
  18035. this.renderDisplayObject(k),
  18036. k.interactive && (k._interactiveEventsAdded || (k._interactiveEventsAdded = !0, k.interactionManager.setTarget(this)));
  18037. },
  18038. i.CanvasRenderer.prototype.destroy = function (k) {
  18039. "undefined" == typeof k && (k = !0),
  18040. k && this.view.parent && this.view.parent.removeChild(this.view),
  18041. this.view = null,
  18042. this.context = null,
  18043. this.maskManager = null,
  18044. this.renderSession = null;
  18045. },
  18046. i.CanvasRenderer.prototype.resize = function (k, m) {
  18047. this.width = y3U.T29(k, this.resolution),
  18048. this.height = y3U.S29(m, this.resolution),
  18049. this.view.width = this.width,
  18050. this.view.height = this.height,
  18051. this.autoResize && (this.view.style.width = y3U.I29(this.width, this.resolution) + "px", this.view.style.height = y3U.C29(this.height, this.resolution) + "px");
  18052. },
  18053. i.CanvasRenderer.prototype.renderDisplayObject = function (k, m) {
  18054. this.renderSession.context = m || this.context,
  18055. this.renderSession.resolution = this.resolution,
  18056. k._renderCanvas(this.renderSession);
  18057. },
  18058. i.CanvasRenderer.prototype.mapBlendModes = function () {
  18059. i.blendModesCanvas || (i.blendModesCanvas = [], i.canUseNewCanvasBlendModes() ? (i.blendModesCanvas[i.blendModes.NORMAL] = "source-over", i.blendModesCanvas[i.blendModes.ADD] = "lighter", i.blendModesCanvas[i.blendModes.MULTIPLY] = "multiply", i.blendModesCanvas[i.blendModes.SCREEN] = "screen", i.blendModesCanvas[i.blendModes.OVERLAY] = "overlay", i.blendModesCanvas[i.blendModes.DARKEN] = "darken", i.blendModesCanvas[i.blendModes.LIGHTEN] = "lighten", i.blendModesCanvas[i.blendModes.COLOR_DODGE] = "color-dodge", i.blendModesCanvas[i.blendModes.COLOR_BURN] = "color-burn", i.blendModesCanvas[i.blendModes.HARD_LIGHT] = "hard-light", i.blendModesCanvas[i.blendModes.SOFT_LIGHT] = "soft-light", i.blendModesCanvas[i.blendModes.DIFFERENCE] = "difference", i.blendModesCanvas[i.blendModes.EXCLUSION] = "exclusion", i.blendModesCanvas[i.blendModes.HUE] = "hue", i.blendModesCanvas[i.blendModes.SATURATION] = "saturation", i.blendModesCanvas[i.blendModes.COLOR] = "color", i.blendModesCanvas[i.blendModes.LUMINOSITY] = "luminosity") : (i.blendModesCanvas[i.blendModes.NORMAL] = "source-over", i.blendModesCanvas[i.blendModes.ADD] = "lighter", i.blendModesCanvas[i.blendModes.MULTIPLY] = "source-over", i.blendModesCanvas[i.blendModes.SCREEN] = "source-over", i.blendModesCanvas[i.blendModes.OVERLAY] = "source-over", i.blendModesCanvas[i.blendModes.DARKEN] = "source-over", i.blendModesCanvas[i.blendModes.LIGHTEN] = "source-over", i.blendModesCanvas[i.blendModes.COLOR_DODGE] = "source-over", i.blendModesCanvas[i.blendModes.COLOR_BURN] = "source-over", i.blendModesCanvas[i.blendModes.HARD_LIGHT] = "source-over", i.blendModesCanvas[i.blendModes.SOFT_LIGHT] = "source-over", i.blendModesCanvas[i.blendModes.DIFFERENCE] = "source-over", i.blendModesCanvas[i.blendModes.EXCLUSION] = "source-over", i.blendModesCanvas[i.blendModes.HUE] = "source-over", i.blendModesCanvas[i.blendModes.SATURATION] = "source-over", i.blendModesCanvas[i.blendModes.COLOR] = "source-over", i.blendModesCanvas[i.blendModes.LUMINOSITY] = "source-over"));
  18060. },
  18061. i.CanvasGraphics = function () {},
  18062. i.CanvasGraphics.renderGraphics = function (k, m) {
  18063. var e = k.worldAlpha;
  18064. k.dirty && (this.updateGraphicsTint(k), k.dirty = !1);
  18065. for (var o = 0; y3U.v29(o, k.graphicsData.length); o++) {
  18066. var n = k.graphicsData[o],
  18067. u = n.shape,
  18068. q = n._fillTint,
  18069. f = n._lineTint;
  18070. if (m.lineWidth = n.lineWidth, y3U.t29(n.type, i.Graphics.POLY)) {
  18071. m.beginPath();
  18072. var j = u.points;
  18073. m.moveTo(j[0], j[1]);
  18074. for (var U0 = 1; y3U.y29(U0, j.length / 2); U0++)
  18075. m.lineTo(j[y3U.o29(2, U0)], j[y3U.x29(2, U0) + 1]);
  18076. u.closed && m.lineTo(j[0], j[1]),
  18077. y3U.p29(j[0], j[j.length - 2]) && y3U.q29(j[1], j[j.length - 1]) && m.closePath(),
  18078. n.fill && (m.globalAlpha = y3U.b29(n.fillAlpha, e), m.fillStyle = "#" + ("00000" + (y3U.j29(0, q)).toString(16)).substr(-6), m.fill()),
  18079. n.lineWidth && (m.globalAlpha = y3U.d29(n.lineAlpha, e), m.strokeStyle = "#" + ("00000" + (y3U.c29(0, f)).toString(16)).substr(-6), m.stroke());
  18080. } else if (y3U.s29(n.type, i.Graphics.RECT))
  18081. (n.fillColor || y3U.Q29(0, n.fillColor)) && (m.globalAlpha = y3U.a19(n.fillAlpha, e), m.fillStyle = "#" + ("00000" + (y3U.W19(0, q)).toString(16)).substr(-6), m.fillRect(u.x, u.y, u.width, u.height)), n.lineWidth && (m.globalAlpha = y3U.m19(n.lineAlpha, e), m.strokeStyle = "#" + ("00000" + (y3U.A19(0, f)).toString(16)).substr(-6), m.strokeRect(u.x, u.y, u.width, u.height));
  18082. else if (y3U.w19(n.type, i.Graphics.CIRC))
  18083. m.beginPath(), m.arc(u.x, u.y, u.radius, 0, y3U.E19(2, Math.PI)), m.closePath(), n.fill && (m.globalAlpha = y3U.e19(n.fillAlpha, e), m.fillStyle = "#" + ("00000" + (y3U.g19(0, q)).toString(16)).substr(-6), m.fill()), n.lineWidth && (m.globalAlpha = y3U.r19(n.lineAlpha, e), m.strokeStyle = "#" + ("00000" + (y3U.i19(0, f)).toString(16)).substr(-6), m.stroke());
  18084. else if (y3U.u19(n.type, i.Graphics.ELIP)) {
  18085. var k0 = y3U.P19(2, u.width),
  18086. a0 = y3U.D19(2, u.height),
  18087. T0 = y3U.Z19(u.x, k0 / 2),
  18088. G0 = y3U.R19(u.y, a0 / 2);
  18089. m.beginPath();
  18090. var W0 = .5522848,
  18091. N0 = y3U.O19(k0, 2, W0),
  18092. S0 = y3U.Q19(a0, 2, W0),
  18093. I0 = T0 + k0,
  18094. m0 = G0 + a0,
  18095. A0 = T0 + y3U.T69(k0, 2),
  18096. L0 = G0 + y3U.S69(a0, 2);
  18097. m.moveTo(T0, L0),
  18098. m.bezierCurveTo(T0, y3U.I69(L0, S0), y3U.C69(A0, N0), G0, A0, G0),
  18099. m.bezierCurveTo(A0 + N0, G0, I0, y3U.v69(L0, S0), I0, L0),
  18100. m.bezierCurveTo(I0, L0 + S0, A0 + N0, m0, A0, m0),
  18101. m.bezierCurveTo(y3U.t69(A0, N0), m0, T0, L0 + S0, T0, L0),
  18102. m.closePath(),
  18103. n.fill && (m.globalAlpha = y3U.y69(n.fillAlpha, e), m.fillStyle = "#" + ("00000" + (y3U.o69(0, q)).toString(16)).substr(-6), m.fill()),
  18104. n.lineWidth && (m.globalAlpha = y3U.x69(n.lineAlpha, e), m.strokeStyle = "#" + ("00000" + (y3U.p69(0, f)).toString(16)).substr(-6), m.stroke());
  18105. } else if (y3U.q69(n.type, i.Graphics.RREC)) {
  18106. var z0 = u.x,
  18107. E0 = u.y,
  18108. v0 = u.width,
  18109. J0 = u.height,
  18110. t0 = u.radius,
  18111. w0 = y3U.b69(Math.min(v0, J0) / 2, 0);
  18112. t0 = y3U.j69(t0, w0) ? w0 : t0,
  18113. m.beginPath(),
  18114. m.moveTo(z0, E0 + t0),
  18115. m.lineTo(z0, E0 + J0 - t0),
  18116. m.quadraticCurveTo(z0, E0 + J0, z0 + t0, E0 + J0),
  18117. m.lineTo(z0 + v0 - t0, E0 + J0),
  18118. m.quadraticCurveTo(z0 + v0, E0 + J0, z0 + v0, E0 + J0 - t0),
  18119. m.lineTo(z0 + v0, E0 + t0),
  18120. m.quadraticCurveTo(z0 + v0, E0, z0 + v0 - t0, E0),
  18121. m.lineTo(z0 + t0, E0),
  18122. m.quadraticCurveTo(z0, E0, z0, E0 + t0),
  18123. m.closePath(),
  18124. (n.fillColor || y3U.d69(0, n.fillColor)) && (m.globalAlpha = y3U.c69(n.fillAlpha, e), m.fillStyle = "#" + ("00000" + (y3U.s69(0, q)).toString(16)).substr(-6), m.fill()),
  18125. n.lineWidth && (m.globalAlpha = y3U.Q69(n.lineAlpha, e), m.strokeStyle = "#" + ("00000" + (y3U.a89(0, f)).toString(16)).substr(-6), m.stroke());
  18126. }
  18127. }
  18128. },
  18129. i.CanvasGraphics.renderGraphicsMask = function (k, m) {
  18130. var e = k.graphicsData.length;
  18131. if (y3U.W89(0, e)) {
  18132. y3U.m89(e, 1) && (e = 1, r2w8n[E8n]['console'].log("Pixi.js warning: masks in canvas can only mask using the first path in the graphics object"));
  18133. for (var o = 0; y3U.A89(1, o); o++) {
  18134. var n = k.graphicsData[o],
  18135. u = n.shape;
  18136. if (y3U.w89(n.type, i.Graphics.POLY)) {
  18137. m.beginPath();
  18138. var q = u.points;
  18139. m.moveTo(q[0], q[1]);
  18140. for (var f = 1; y3U.E89(f, q.length / 2); f++)
  18141. m.lineTo(q[y3U.e89(2, f)], q[y3U.g89(2, f) + 1]);
  18142. y3U.r89(q[0], q[q.length - 2]) && y3U.i89(q[1], q[q.length - 1]) && m.closePath();
  18143. } else if (y3U.u89(n.type, i.Graphics.RECT))
  18144. m.beginPath(), m.rect(u.x, u.y, u.width, u.height), m.closePath();
  18145. else if (y3U.P89(n.type, i.Graphics.CIRC))
  18146. m.beginPath(), m.arc(u.x, u.y, u.radius, 0, y3U.D89(2, Math.PI)), m.closePath();
  18147. else if (y3U.Z89(n.type, i.Graphics.ELIP)) {
  18148. var j = y3U.R89(2, u.width),
  18149. U0 = y3U.O89(2, u.height),
  18150. k0 = y3U.V89(u.x, j / 2),
  18151. a0 = y3U.k0g(u.y, U0 / 2);
  18152. m.beginPath();
  18153. var T0 = .5522848,
  18154. G0 = y3U.G0g(j, 2, T0),
  18155. W0 = y3U.m0g(U0, 2, T0),
  18156. N0 = k0 + j,
  18157. S0 = a0 + U0,
  18158. I0 = k0 + y3U.C0g(j, 2),
  18159. m0 = a0 + y3U.v0g(U0, 2);
  18160. m.moveTo(k0, m0),
  18161. m.bezierCurveTo(k0, y3U.t0g(m0, W0), y3U.y0g(I0, G0), a0, I0, a0),
  18162. m.bezierCurveTo(I0 + G0, a0, N0, y3U.o0g(m0, W0), N0, m0),
  18163. m.bezierCurveTo(N0, m0 + W0, I0 + G0, S0, I0, S0),
  18164. m.bezierCurveTo(y3U.x0g(I0, G0), S0, k0, m0 + W0, k0, m0),
  18165. m.closePath();
  18166. } else if (y3U.p0g(n.type, i.Graphics.RREC)) {
  18167. var A0 = u.points,
  18168. L0 = A0[0],
  18169. z0 = A0[1],
  18170. E0 = A0[2],
  18171. v0 = A0[3],
  18172. J0 = A0[4],
  18173. t0 = y3U.q0g(Math.min(E0, v0) / 2, 0);
  18174. J0 = y3U.b0g(J0, t0) ? t0 : J0,
  18175. m.beginPath(),
  18176. m.moveTo(L0, z0 + J0),
  18177. m.lineTo(L0, z0 + v0 - J0),
  18178. m.quadraticCurveTo(L0, z0 + v0, L0 + J0, z0 + v0),
  18179. m.lineTo(L0 + E0 - J0, z0 + v0),
  18180. m.quadraticCurveTo(L0 + E0, z0 + v0, L0 + E0, z0 + v0 - J0),
  18181. m.lineTo(L0 + E0, z0 + J0),
  18182. m.quadraticCurveTo(L0 + E0, z0, L0 + E0 - J0, z0),
  18183. m.lineTo(L0 + J0, z0),
  18184. m.quadraticCurveTo(L0, z0, L0, z0 + J0),
  18185. m.closePath();
  18186. }
  18187. }
  18188. }
  18189. },
  18190. i.CanvasGraphics.updateGraphicsTint = function (k) {
  18191. if (y3U.j0g(16777215, k.tint))
  18192. for (var m = y3U.d0g((k.tint >> 16 & 255), 255), e = y3U.c0g((k.tint >> 8 & 255), 255), o = y3U.s0g((255 & k.tint), 255), n = 0; y3U.Q0g(n, k.graphicsData.length); n++) {
  18193. var u = k.graphicsData[n],
  18194. q = y3U.a7g(0, u.fillColor),
  18195. f = y3U.W7g(0, u.lineColor);
  18196. u._fillTint = (y3U.m7g((q >> 16 & 255) / 255 * m * 255, 16)) + (y3U.A7g((q >> 8 & 255) / 255 * e * 255, 8)) + y3U.w7g((255 & q), 255, o, 255),
  18197. u._lineTint = (y3U.H7g((f >> 16 & 255) / 255 * m * 255, 16)) + (y3U.h7g((f >> 8 & 255) / 255 * e * 255, 8)) + y3U.F7g((255 & f), 255, o, 255);
  18198. }
  18199. },
  18200. i.Strip = function (k) {
  18201. i.DisplayObjectContainer.call(this),
  18202. this.texture = k,
  18203. this.uvs = new i.Float32Array([0, 1, 1, 1, 1, 0, 0, 1]),
  18204. this.vertices = new i.Float32Array([0, 0, 100, 0, 100, 100, 0, 100]),
  18205. this.colors = new i.Float32Array([1, 1, 1, 1]),
  18206. this.indices = new i.Uint16Array([0, 1, 2, 3]),
  18207. this.dirty = !0,
  18208. this.blendMode = i.blendModes.NORMAL,
  18209. this.canvasPadding = 0,
  18210. this.drawMode = i.Strip.DrawModes.TRIANGLE_STRIP;
  18211. },
  18212. i.Strip.prototype = Object.create(i.DisplayObjectContainer.prototype),
  18213. i.Strip.prototype.constructor = i.Strip,
  18214. i.Strip.prototype._renderWebGL = function (k) {
  18215. !this.visible || y3U.p7g(this.alpha, 0) || (k.spriteBatch.stop(), this._vertexBuffer || this._initWebGL(k), k.shaderManager.setShader(k.shaderManager.stripShader), this._renderStrip(k), k.spriteBatch.start());
  18216. },
  18217. i.Strip.prototype._initWebGL = function (k) {
  18218. var m = k.gl;
  18219. this._vertexBuffer = m.createBuffer(),
  18220. this._indexBuffer = m.createBuffer(),
  18221. this._uvBuffer = m.createBuffer(),
  18222. this._colorBuffer = m.createBuffer(),
  18223. m.bindBuffer(m.ARRAY_BUFFER, this._vertexBuffer),
  18224. m.bufferData(m.ARRAY_BUFFER, this.vertices, m.DYNAMIC_DRAW),
  18225. m.bindBuffer(m.ARRAY_BUFFER, this._uvBuffer),
  18226. m.bufferData(m.ARRAY_BUFFER, this.uvs, m.STATIC_DRAW),
  18227. m.bindBuffer(m.ARRAY_BUFFER, this._colorBuffer),
  18228. m.bufferData(m.ARRAY_BUFFER, this.colors, m.STATIC_DRAW),
  18229. m.bindBuffer(m.ELEMENT_ARRAY_BUFFER, this._indexBuffer),
  18230. m.bufferData(m.ELEMENT_ARRAY_BUFFER, this.indices, m.STATIC_DRAW);
  18231. },
  18232. i.Strip.prototype._renderStrip = function (k) {
  18233. var m = k.gl,
  18234. e = k.projection,
  18235. o = k.offset,
  18236. n = k.shaderManager.stripShader,
  18237. u = y3U.q7g(this.drawMode, i.Strip.DrawModes.TRIANGLE_STRIP) ? m.TRIANGLE_STRIP : m.TRIANGLES;
  18238. k.blendModeManager.setBlendMode(this.blendMode),
  18239. m.uniformMatrix3fv(n.translationMatrix, !1, this.worldTransform.toArray(!0)),
  18240. m.uniform2f(n.projectionVector, e.x, -e.y),
  18241. m.uniform2f(n.offsetVector, -o.x, -o.y),
  18242. m.uniform1f(n.alpha, this.worldAlpha),
  18243. this.dirty ? (this.dirty = !1, m.bindBuffer(m.ARRAY_BUFFER, this._vertexBuffer), m.bufferData(m.ARRAY_BUFFER, this.vertices, m.STATIC_DRAW), m.vertexAttribPointer(n.aVertexPosition, 2, m.FLOAT, !1, 0, 0), m.bindBuffer(m.ARRAY_BUFFER, this._uvBuffer), m.bufferData(m.ARRAY_BUFFER, this.uvs, m.STATIC_DRAW), m.vertexAttribPointer(n.aTextureCoord, 2, m.FLOAT, !1, 0, 0), m.activeTexture(m.TEXTURE0), this.texture.baseTexture._dirty[m.id] ? k.renderer.updateTexture(this.texture.baseTexture) : m.bindTexture(m.TEXTURE_2D, this.texture.baseTexture._glTextures[m.id]), m.bindBuffer(m.ELEMENT_ARRAY_BUFFER, this._indexBuffer), m.bufferData(m.ELEMENT_ARRAY_BUFFER, this.indices, m.STATIC_DRAW)) : (m.bindBuffer(m.ARRAY_BUFFER, this._vertexBuffer), m.bufferSubData(m.ARRAY_BUFFER, 0, this.vertices), m.vertexAttribPointer(n.aVertexPosition, 2, m.FLOAT, !1, 0, 0), m.bindBuffer(m.ARRAY_BUFFER, this._uvBuffer), m.vertexAttribPointer(n.aTextureCoord, 2, m.FLOAT, !1, 0, 0), m.activeTexture(m.TEXTURE0), this.texture.baseTexture._dirty[m.id] ? k.renderer.updateTexture(this.texture.baseTexture) : m.bindTexture(m.TEXTURE_2D, this.texture.baseTexture._glTextures[m.id]), m.bindBuffer(m.ELEMENT_ARRAY_BUFFER, this._indexBuffer)),
  18244. m.drawElements(u, this.indices.length, m.UNSIGNED_SHORT, 0);
  18245. },
  18246. i.Strip.prototype._renderCanvas = function (k) {
  18247. var m = k.context,
  18248. e = this.worldTransform;
  18249. k.roundPixels ? m.setTransform(e.a, e.b, e.c, e.d, y3U.b7g(0, e.tx), y3U.j7g(0, e.ty)) : m.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty),
  18250. y3U.d7g(this.drawMode, i.Strip.DrawModes.TRIANGLE_STRIP) ? this._renderCanvasTriangleStrip(m) : this._renderCanvasTriangles(m);
  18251. },
  18252. i.Strip.prototype._renderCanvasTriangleStrip = function (k) {
  18253. var m = this.vertices,
  18254. e = this.uvs,
  18255. o = y3U.c7g(m.length, 2);
  18256. this.count++;
  18257. for (var n = 0; y3U.s7g(o - 2, n); n++) {
  18258. var u = y3U.Q7g(2, n);
  18259. this._renderCanvasDrawTriangle(k, m, e, u, u + 2, u + 4);
  18260. }
  18261. },
  18262. i.Strip.prototype._renderCanvasTriangles = function (k) {
  18263. var m = this.vertices,
  18264. e = this.uvs,
  18265. o = this.indices,
  18266. n = o.length;
  18267. this.count++;
  18268. for (var u = 0; y3U.a4g(n, u); u += 3) {
  18269. var q = y3U.W4g(2, o[u]),
  18270. f = y3U.m4g(2, o[u + 1]),
  18271. j = y3U.A4g(2, o[u + 2]);
  18272. this._renderCanvasDrawTriangle(k, m, e, q, f, j);
  18273. }
  18274. },
  18275. i.Strip.prototype._renderCanvasDrawTriangle = function (k, m, e, o, n, u) {
  18276. var q = this.texture.baseTexture.source,
  18277. f = this.texture.width,
  18278. j = this.texture.height,
  18279. U0 = m[o],
  18280. k0 = m[n],
  18281. a0 = m[u],
  18282. T0 = m[o + 1],
  18283. G0 = m[n + 1],
  18284. W0 = m[u + 1],
  18285. N0 = y3U.w4g(e[o], f),
  18286. S0 = y3U.E4g(e[n], f),
  18287. I0 = y3U.e4g(e[u], f),
  18288. m0 = y3U.g4g(e[o + 1], j),
  18289. A0 = y3U.r4g(e[n + 1], j),
  18290. L0 = y3U.i4g(e[u + 1], j);
  18291. if (y3U.u4g(this.canvasPadding, 0)) {
  18292. var z0 = y3U.P4g(this.canvasPadding, this.worldTransform.a),
  18293. E0 = y3U.D4g(this.canvasPadding, this.worldTransform.d),
  18294. v0 = y3U.Z4g((U0 + k0 + a0), 3),
  18295. J0 = y3U.R4g((T0 + G0 + W0), 3),
  18296. t0 = y3U.O4g(U0, v0),
  18297. w0 = y3U.V4g(T0, J0),
  18298. g0 = Math.sqrt(y3U.k3g(t0, t0) + y3U.G3g(w0, w0));
  18299. U0 = v0 + y3U.N3g(t0, g0, (g0 + z0)),
  18300. T0 = J0 + y3U.A3g(w0, g0, (g0 + E0)),
  18301. t0 = y3U.v3g(k0, v0),
  18302. w0 = y3U.t3g(G0, J0),
  18303. g0 = Math.sqrt(y3U.y3g(t0, t0) + y3U.o3g(w0, w0)),
  18304. k0 = v0 + y3U.x3g(t0, g0, (g0 + z0)),
  18305. G0 = J0 + y3U.n3g(w0, g0, (g0 + E0)),
  18306. t0 = y3U.P3g(a0, v0),
  18307. w0 = y3U.D3g(W0, J0),
  18308. g0 = Math.sqrt(y3U.Z3g(t0, t0) + y3U.R3g(w0, w0)),
  18309. a0 = v0 + y3U.O3g(t0, g0, (g0 + z0)),
  18310. W0 = J0 + y3U.Q3g(w0, g0, (g0 + E0));
  18311. }
  18312. k.save(),
  18313. k.beginPath(),
  18314. k.moveTo(U0, T0),
  18315. k.lineTo(k0, G0),
  18316. k.lineTo(a0, W0),
  18317. k.closePath(),
  18318. k.clip();
  18319. var H0 = y3U.T9g(N0, A0) + y3U.S9g(m0, I0) + y3U.I9g(S0, L0) - y3U.C9g(A0, I0) - y3U.v9g(m0, S0) - y3U.t9g(N0, L0),
  18320. M0 = y3U.y9g(U0, A0) + y3U.o9g(m0, a0) + y3U.x9g(k0, L0) - y3U.p9g(A0, a0) - y3U.q9g(m0, k0) - y3U.b9g(U0, L0),
  18321. p0 = y3U.j9g(N0, k0) + y3U.d9g(U0, I0) + y3U.c9g(S0, a0) - y3U.s9g(k0, I0) - y3U.Q9g(U0, S0) - y3U.a5g(N0, a0),
  18322. e0 = y3U.W5g(N0, A0, a0) + y3U.I5g(m0, k0, I0) + y3U.z5g(U0, S0, L0) - y3U.E5g(U0, A0, I0) - y3U.y5g(m0, S0, a0) - y3U.F5g(N0, k0, L0),
  18323. F0 = y3U.i5g(T0, A0) + y3U.u5g(m0, W0) + y3U.P5g(G0, L0) - y3U.D5g(A0, W0) - y3U.Z5g(m0, G0) - y3U.R5g(T0, L0),
  18324. P0 = y3U.O5g(N0, G0) + y3U.V5g(T0, I0) + y3U.k2g(S0, W0) - y3U.G2g(G0, I0) - y3U.N2g(T0, S0) - y3U.L2g(N0, W0),
  18325. O0 = y3U.z2g(N0, A0, W0) + y3U.E2g(m0, G0, I0) + y3U.y2g(T0, S0, L0) - y3U.F2g(T0, A0, I0) - y3U.i2g(m0, S0, W0) - y3U.q2g(N0, G0, L0);
  18326. k.transform(y3U.K2g(M0, H0), y3U.B2g(F0, H0), y3U.l2g(p0, H0), y3U.X2g(P0, H0), y3U.Y2g(e0, H0), y3U.U1g(O0, H0)),
  18327. k.drawImage(q, 0, 0),
  18328. k.restore();
  18329. },
  18330. i.Strip.prototype.renderStripFlat = function (k) {
  18331. var m = this.context,
  18332. e = k.vertices,
  18333. o = y3U.T1g(e.length, 2);
  18334. this.count++,
  18335. m.beginPath();
  18336. for (var n = 1; y3U.S1g(o - 2, n); n++) {
  18337. var u = y3U.I1g(2, n),
  18338. q = e[u],
  18339. f = e[u + 2],
  18340. j = e[u + 4],
  18341. U0 = e[u + 1],
  18342. k0 = e[u + 3],
  18343. a0 = e[u + 5];
  18344. m.moveTo(q, U0),
  18345. m.lineTo(f, k0),
  18346. m.lineTo(j, a0);
  18347. }
  18348. m.fillStyle = "#FF0000",
  18349. m.fill(),
  18350. m.closePath();
  18351. },
  18352. i.Strip.prototype.onTextureUpdate = function () {
  18353. this.updateFrame = !0;
  18354. },
  18355. i.Strip.prototype.getBounds = function (k) {
  18356. for (var m = k || this.worldTransform, e = m.a, o = m.b, n = m.c, u = m.d, q = m.tx, f = m.ty, j = -1 / 0, U0 = -1 / 0, k0 = y3U.C1g(1, 0), a0 = y3U.v1g(1, 0), T0 = this.vertices, G0 = 0, W0 = T0.length; y3U.t1g(W0, G0); G0 += 2) {
  18357. var N0 = T0[G0],
  18358. S0 = T0[G0 + 1],
  18359. I0 = y3U.y1g(e, N0) + y3U.o1g(n, S0) + q,
  18360. m0 = y3U.x1g(u, S0) + y3U.p1g(o, N0) + f;
  18361. k0 = y3U.q1g(k0, I0) ? I0 : k0,
  18362. a0 = y3U.b1g(a0, m0) ? m0 : a0,
  18363. j = y3U.j1g(I0, j) ? I0 : j,
  18364. U0 = y3U.d1g(m0, U0) ? m0 : U0;
  18365. }
  18366. if (k0 === -1 / 0 || y3U.c1g(1 / 0, U0))
  18367. return i.EmptyRectangle;
  18368. var A0 = this._bounds;
  18369. return A0.x = k0,
  18370. A0.width = y3U.s1g(j, k0),
  18371. A0.y = a0,
  18372. A0.height = y3U.Q1g(U0, a0),
  18373. this._currentBounds = A0,
  18374. A0;
  18375. },
  18376. i.Strip.DrawModes = {
  18377. TRIANGLE_STRIP : 0,
  18378. TRIANGLES : 1
  18379. },
  18380. i.Rope = function (k, m) {
  18381. i.Strip.call(this, k),
  18382. this.points = m,
  18383. this.vertices = new i.Float32Array(y3U.a6g(4, m.length)),
  18384. this.uvs = new i.Float32Array(y3U.W6g(4, m.length)),
  18385. this.colors = new i.Float32Array(y3U.m6g(2, m.length)),
  18386. this.indices = new i.Uint16Array(y3U.A6g(2, m.length)),
  18387. this.refresh();
  18388. },
  18389. i.Rope.prototype = Object.create(i.Strip.prototype),
  18390. i.Rope.prototype.constructor = i.Rope,
  18391. i.Rope.prototype.refresh = function () {
  18392. var k = this.points;
  18393. if (!(y3U.w6g(k.length, 1))) {
  18394. var m = this.uvs,
  18395. e = k[0],
  18396. o = this.indices,
  18397. n = this.colors;
  18398. this.count -= .2,
  18399. m[0] = 0,
  18400. m[1] = 0,
  18401. m[2] = 0,
  18402. m[3] = 1,
  18403. n[0] = 1,
  18404. n[1] = 1,
  18405. o[0] = 0,
  18406. o[1] = 1;
  18407. for (var u, q, f, j = k.length, U0 = 1; y3U.E6g(j, U0); U0++)
  18408. u = k[U0], q = y3U.e6g(4, U0), f = y3U.g6g(U0, (j - 1)), y3U.r6g(U0, 2) ? (m[q] = f, m[q + 1] = 0, m[q + 2] = f, m[q + 3] = 1) : (m[q] = f, m[q + 1] = 0, m[q + 2] = f, m[q + 3] = 1), q = y3U.i6g(2, U0), n[q] = 1, n[q + 1] = 1, q = y3U.u6g(2, U0), o[q] = q, o[q + 1] = q + 1, e = u;
  18409. }
  18410. },
  18411. i.Rope.prototype.updateTransform = function () {
  18412. var k = this.points;
  18413. if (!(y3U.P6g(k.length, 1))) {
  18414. var m,
  18415. e = k[0],
  18416. o = {
  18417. x : 0,
  18418. y : 0
  18419. };
  18420. this.count -= .2;
  18421. for (var n, u, q, f, j, U0 = this.vertices, k0 = k.length, a0 = 0; y3U.D6g(k0, a0); a0++)
  18422. n = k[a0], u = y3U.Z6g(4, a0), m = y3U.R6g(a0, k.length - 1) ? k[a0 + 1] : n, o.y = - (y3U.O6g(m.x, e.x)), o.x = y3U.V6g(m.y, e.y), q = y3U.k8g(10, (1 - a0 / (k0 - 1))), y3U.G8g(q, 1) && (q = 1), f = Math.sqrt(y3U.N8g(o.x, o.x) + y3U.L8g(o.y, o.y)), j = y3U.z8g(this.texture.height, 2), o.x /= f, o.y /= f, o.x *= j, o.y *= j, U0[u] = n.x + o.x, U0[u + 1] = n.y + o.y, U0[u + 2] = y3U.J8g(n.x, o.x), U0[u + 3] = y3U.H8g(n.y, o.y), e = n;
  18423. i.DisplayObjectContainer.prototype.updateTransform.call(this);
  18424. }
  18425. },
  18426. i.Rope.prototype.setTexture = function (k) {
  18427. this.texture = k;
  18428. },
  18429. i.TilingSprite = function (k, m, e) {
  18430. i.Sprite.call(this, k),
  18431. this._width = m || 100,
  18432. this._height = e || 100,
  18433. this.tileScale = new i.Point(1, 1),
  18434. this.tileScaleOffset = new i.Point(1, 1),
  18435. this.tilePosition = new i.Point(0, 0),
  18436. this.renderable = !0,
  18437. this.tint = 16777215,
  18438. this.blendMode = i.blendModes.NORMAL;
  18439. },
  18440. i.TilingSprite.prototype = Object.create(i.Sprite.prototype),
  18441. i.TilingSprite.prototype.constructor = i.TilingSprite,
  18442. Object.defineProperty(i.TilingSprite.prototype, "width", {
  18443. get : function () {
  18444. return this._width;
  18445. },
  18446. set : function (k) {
  18447. this._width = k;
  18448. }
  18449. }),
  18450. Object.defineProperty(i.TilingSprite.prototype, "height", {
  18451. get : function () {
  18452. return this._height;
  18453. },
  18454. set : function (k) {
  18455. this._height = k;
  18456. }
  18457. }),
  18458. i.TilingSprite.prototype.setTexture = function (k) {
  18459. y3U.h8g(this.texture, k) && (this.texture = k, this.refreshTexture = !0, this.cachedTint = 16777215);
  18460. },
  18461. i.TilingSprite.prototype._renderWebGL = function (k) {
  18462. if (this.visible !== !1 && y3U.F8g(0, this.alpha)) {
  18463. var m,
  18464. e;
  18465. for (this._mask && (k.spriteBatch.stop(), k.maskManager.pushMask(this.mask, k), k.spriteBatch.start()), this._filters && (k.spriteBatch.flush(), k.filterManager.pushFilter(this._filterBlock)), !this.tilingTexture || this.refreshTexture ? (this.generateTilingTexture(!0), this.tilingTexture && this.tilingTexture.needsUpdate && (k.renderer.updateTexture(this.tilingTexture.baseTexture), this.tilingTexture.needsUpdate = !1)) : k.spriteBatch.renderTilingSprite(this), m = 0, e = this.children.length; y3U.M8g(e, m); m++)
  18466. this.children[m]._renderWebGL(k);
  18467. k.spriteBatch.stop(),
  18468. this._filters && k.filterManager.popFilter(),
  18469. this._mask && k.maskManager.popMask(this._mask, k),
  18470. k.spriteBatch.start();
  18471. }
  18472. },
  18473. i.TilingSprite.prototype._renderCanvas = function (k) {
  18474. if (this.visible !== !1 && y3U.n8g(0, this.alpha)) {
  18475. var m = k.context;
  18476. this._mask && k.maskManager.pushMask(this._mask, m),
  18477. m.globalAlpha = this.worldAlpha;
  18478. var e,
  18479. o,
  18480. n = this.worldTransform,
  18481. u = k.resolution;
  18482. if (m.setTransform(y3U.f8g(n.a, u), y3U.K8g(n.b, u), y3U.B8g(n.c, u), y3U.l8g(n.d, u), y3U.X8g(n.tx, u), y3U.Y8g(n.ty, u)), !this.__tilePattern || this.refreshTexture) {
  18483. if (this.generateTilingTexture(!1), !this.tilingTexture)
  18484. return;
  18485. this.__tilePattern = m.createPattern(this.tilingTexture.baseTexture.source, "repeat");
  18486. }
  18487. y3U.U0D(this.blendMode, k.currentBlendMode) && (k.currentBlendMode = this.blendMode, m.globalCompositeOperation = i.blendModesCanvas[k.currentBlendMode]);
  18488. var q = this.tilePosition,
  18489. f = this.tileScale;
  18490. for (q.x %= this.tilingTexture.baseTexture.width, q.y %= this.tilingTexture.baseTexture.height, m.scale(f.x, f.y), m.translate(q.x + this.anchor.x * -this._width, q.y + this.anchor.y * -this._height), m.fillStyle = this.__tilePattern, m.fillRect(-q.x, -q.y, y3U.T0D(this._width, f.x), y3U.S0D(this._height, f.y)), m.scale(y3U.I0D(1, f.x), y3U.C0D(1, f.y)), m.translate(-q.x + this.anchor.x * this._width, -q.y + this.anchor.y * this._height), this._mask && k.maskManager.popMask(k.context), e = 0, o = this.children.length; y3U.v0D(o, e); e++)
  18491. this.children[e]._renderCanvas(k);
  18492. }
  18493. },
  18494. i.TilingSprite.prototype.getBounds = function () {
  18495. var k = this._width,
  18496. m = this._height,
  18497. e = y3U.t0D(k, (1 - this.anchor.x)),
  18498. o = k * -this.anchor.x,
  18499. n = y3U.y0D(m, (1 - this.anchor.y)),
  18500. u = m * -this.anchor.y,
  18501. q = this.worldTransform,
  18502. f = q.a,
  18503. j = q.b,
  18504. U0 = q.c,
  18505. k0 = q.d,
  18506. a0 = q.tx,
  18507. T0 = q.ty,
  18508. G0 = y3U.o0D(f, o) + y3U.x0D(U0, u) + a0,
  18509. W0 = y3U.p0D(k0, u) + y3U.q0D(j, o) + T0,
  18510. N0 = y3U.b0D(f, e) + y3U.j0D(U0, u) + a0,
  18511. S0 = y3U.d0D(k0, u) + y3U.c0D(j, e) + T0,
  18512. I0 = y3U.s0D(f, e) + y3U.Q0D(U0, n) + a0,
  18513. m0 = y3U.a7D(k0, n) + y3U.W7D(j, e) + T0,
  18514. A0 = y3U.m7D(f, o) + y3U.A7D(U0, n) + a0,
  18515. L0 = y3U.w7D(k0, n) + y3U.E7D(j, o) + T0,
  18516. z0 = -1 / 0,
  18517. E0 = -1 / 0,
  18518. v0 = y3U.e7D(1, 0),
  18519. J0 = y3U.g7D(1, 0);
  18520. v0 = y3U.r7D(v0, G0) ? G0 : v0,
  18521. v0 = y3U.i7D(v0, N0) ? N0 : v0,
  18522. v0 = y3U.u7D(v0, I0) ? I0 : v0,
  18523. v0 = y3U.P7D(v0, A0) ? A0 : v0,
  18524. J0 = y3U.D7D(J0, W0) ? W0 : J0,
  18525. J0 = y3U.Z7D(J0, S0) ? S0 : J0,
  18526. J0 = y3U.R7D(J0, m0) ? m0 : J0,
  18527. J0 = y3U.O7D(J0, L0) ? L0 : J0,
  18528. z0 = y3U.V7D(G0, z0) ? G0 : z0,
  18529. z0 = y3U.k4D(N0, z0) ? N0 : z0,
  18530. z0 = y3U.G4D(I0, z0) ? I0 : z0,
  18531. z0 = y3U.N4D(A0, z0) ? A0 : z0,
  18532. E0 = y3U.L4D(W0, E0) ? W0 : E0,
  18533. E0 = y3U.z4D(S0, E0) ? S0 : E0,
  18534. E0 = y3U.J4D(m0, E0) ? m0 : E0,
  18535. E0 = y3U.H4D(L0, E0) ? L0 : E0;
  18536. var t0 = this._bounds;
  18537. return t0.x = v0,
  18538. t0.width = y3U.h4D(z0, v0),
  18539. t0.y = J0,
  18540. t0.height = y3U.F4D(E0, J0),
  18541. this._currentBounds = t0,
  18542. t0;
  18543. },
  18544. i.TilingSprite.prototype.onTextureUpdate = function () {},
  18545. i.TilingSprite.prototype.generateTilingTexture = function (k) {
  18546. if (this.texture.baseTexture.hasLoaded) {
  18547. var m,
  18548. e,
  18549. o = this.originalTexture || this.texture,
  18550. n = o.frame,
  18551. u = y3U.M4D(n.width, o.baseTexture.width) || y3U.n4D(n.height, o.baseTexture.height),
  18552. q = !1;
  18553. if (k ? (m = i.getNextPowerOfTwo(n.width), e = i.getNextPowerOfTwo(n.height), (y3U.f4D(n.width, m) || y3U.K4D(n.height, e) || y3U.B4D(o.baseTexture.width, m) || o.baseTexture.height || e) && (q = !0)) : u && (m = n.width, e = n.height, q = !0), q) {
  18554. var f;
  18555. this.tilingTexture && this.tilingTexture.isTiling ? (f = this.tilingTexture.canvasBuffer, f.resize(m, e), this.tilingTexture.baseTexture.width = m, this.tilingTexture.baseTexture.height = e, this.tilingTexture.needsUpdate = !0) : (f = new i.CanvasBuffer(m, e), this.tilingTexture = i.Texture.fromCanvas(f.canvas), this.tilingTexture.canvasBuffer = f, this.tilingTexture.isTiling = !0),
  18556. f.context.drawImage(o.baseTexture.source, o.crop.x, o.crop.y, o.crop.width, o.crop.height, 0, 0, m, e),
  18557. this.tileScaleOffset.x = y3U.l4D(n.width, m),
  18558. this.tileScaleOffset.y = y3U.X4D(n.height, e);
  18559. } else
  18560. this.tilingTexture && this.tilingTexture.isTiling && this.tilingTexture.destroy(!0), this.tileScaleOffset.x = 1, this.tileScaleOffset.y = 1, this.tilingTexture = o;
  18561. this.refreshTexture = !1,
  18562. this.originalTexture = this.texture,
  18563. this.texture = this.tilingTexture,
  18564. this.tilingTexture.baseTexture._powerOf2 = !0;
  18565. }
  18566. },
  18567. i.BaseTextureCache = {},
  18568. i.BaseTextureCacheIdGenerator = 0,
  18569. i.BaseTexture = function (k, m) {
  18570. if (this.resolution = 1, this.width = 100, this.height = 100, this.scaleMode = m || i.scaleModes.DEFAULT, this.hasLoaded = !1, this.source = k, this._UID = i._UID++, this.premultipliedAlpha = !0, this._glTextures = [], this.mipmap = !1, this._dirty = [!0, !0, !0, !0], k) {
  18571. if ((this.source.complete || this.source.getContext) && this.source.width && this.source.height)
  18572. this.hasLoaded = !0, this.width = this.source.naturalWidth || this.source.width, this.height = this.source.naturalHeight || this.source.height, this.dirty();
  18573. else {
  18574. var e = this;
  18575. this.source.onload = function () {
  18576. e.hasLoaded = !0,
  18577. e.width = e.source.naturalWidth || e.source.width,
  18578. e.height = e.source.naturalHeight || e.source.height,
  18579. e.dirty(),
  18580. e.dispatchEvent({
  18581. type : "loaded",
  18582. content : e
  18583. });
  18584. },
  18585. this.source.onerror = function () {
  18586. e.dispatchEvent({
  18587. type : "error",
  18588. content : e
  18589. });
  18590. };
  18591. }
  18592. this.imageUrl = null,
  18593. this._powerOf2 = !1;
  18594. }
  18595. },
  18596. i.BaseTexture.prototype.constructor = i.BaseTexture,
  18597. i.EventTarget.mixin(i.BaseTexture.prototype),
  18598. i.BaseTexture.prototype.destroy = function () {
  18599. this.imageUrl ? (delete i.BaseTextureCache[this.imageUrl], delete i.TextureCache[this.imageUrl], this.imageUrl = null, r2w8n[v8n].isCocoonJS || (this.source.src = "")) : this.source && this.source._pixiId && delete i.BaseTextureCache[this.source._pixiId],
  18600. this.source = null,
  18601. this.unloadFromGPU();
  18602. },
  18603. i.BaseTexture.prototype.updateSourceImage = function (k) {
  18604. this.hasLoaded = !1,
  18605. this.source.src = null,
  18606. this.source.src = k;
  18607. },
  18608. i.BaseTexture.prototype.dirty = function () {
  18609. for (var k = 0; y3U.Y4D(k, this._glTextures.length); k++)
  18610. this._dirty[k] = !0;
  18611. },
  18612. i.BaseTexture.prototype.unloadFromGPU = function () {
  18613. this.dirty();
  18614. for (var k = y3U.U3D(this._glTextures.length, 1); y3U.T3D(k, 0); k--) {
  18615. var m = this._glTextures[k],
  18616. e = i.glContexts[k];
  18617. e && m && e.deleteTexture(m);
  18618. }
  18619. this._glTextures.length = 0,
  18620. this.dirty();
  18621. },
  18622. i.BaseTexture.fromImage = function (k, m, e) {
  18623. var o = i.BaseTextureCache[k];
  18624. if (void 0 === m && -1 === k.indexOf("data:") && (m = !0), !o) {
  18625. var n = new Image;
  18626. m && (n.crossOrigin = ""),
  18627. n.src = k,
  18628. o = new i.BaseTexture(n, e),
  18629. o.imageUrl = k,
  18630. i.BaseTextureCache[k] = o,
  18631. -1 !== k.indexOf(i.RETINA_PREFIX + ".") && (o.resolution = 2);
  18632. }
  18633. return o;
  18634. },
  18635. i.BaseTexture.fromCanvas = function (k, m) {
  18636. k._pixiId || (k._pixiId = "canvas_" + i.TextureCacheIdGenerator++);
  18637. var e = i.BaseTextureCache[k._pixiId];
  18638. return e || (e = new i.BaseTexture(k, m), i.BaseTextureCache[k._pixiId] = e),
  18639. e;
  18640. },
  18641. i.TextureCache = {},
  18642. i.FrameCache = {},
  18643. i.TextureCacheIdGenerator = 0,
  18644. i.Texture = function (k, m, e, o) {
  18645. this.noFrame = !1,
  18646. m || (this.noFrame = !0, m = new i.Rectangle(0, 0, 1, 1)),
  18647. y3U.S3D(k, i.Texture) && (k = k.baseTexture),
  18648. this.baseTexture = k,
  18649. this.frame = m,
  18650. this.trim = o,
  18651. this.valid = !1,
  18652. this.requiresUpdate = !1,
  18653. this._uvs = null,
  18654. this.width = 0,
  18655. this.height = 0,
  18656. this.crop = e || new i.Rectangle(0, 0, 1, 1),
  18657. k.hasLoaded ? (this.noFrame && (m = new i.Rectangle(0, 0, k.width, k.height)), this.setFrame(m)) : k.addEventListener("loaded", this.onBaseTextureLoaded.bind(this));
  18658. },
  18659. i.Texture.prototype.constructor = i.Texture,
  18660. i.EventTarget.mixin(i.Texture.prototype),
  18661. i.Texture.prototype.onBaseTextureLoaded = function () {
  18662. var k = this.baseTexture;
  18663. k.removeEventListener("loaded", this.onLoaded),
  18664. this.noFrame && (this.frame = new i.Rectangle(0, 0, k.width, k.height)),
  18665. this.setFrame(this.frame),
  18666. this.dispatchEvent({
  18667. type : "update",
  18668. content : this
  18669. });
  18670. },
  18671. i.Texture.prototype.destroy = function (k) {
  18672. k && this.baseTexture.destroy(),
  18673. this.valid = !1;
  18674. },
  18675. i.Texture.prototype.setFrame = function (k) {
  18676. if (this.noFrame = !1, this.frame = k, this.width = k.width, this.height = k.height, this.crop.x = k.x, this.crop.y = k.y, this.crop.width = k.width, this.crop.height = k.height, !this.trim && (y3U.I3D(k.x + k.width, this.baseTexture.width) || y3U.C3D(k.y + k.height, this.baseTexture.height)))
  18677. throw new Error("Texture Error: frame does not fit inside the base Texture dimensions " + this);
  18678. this.valid = k && k.width && k.height && this.baseTexture.source && this.baseTexture.hasLoaded,
  18679. this.trim && (this.width = this.trim.width, this.height = this.trim.height, this.frame.width = this.trim.width, this.frame.height = this.trim.height),
  18680. this.valid && this._updateUvs();
  18681. },
  18682. i.Texture.prototype._updateUvs = function () {
  18683. this._uvs || (this._uvs = new i.TextureUvs);
  18684. var k = this.crop,
  18685. m = this.baseTexture.width,
  18686. e = this.baseTexture.height;
  18687. this._uvs.x0 = y3U.v3D(k.x, m),
  18688. this._uvs.y0 = y3U.t3D(k.y, e),
  18689. this._uvs.x1 = y3U.y3D((k.x + k.width), m),
  18690. this._uvs.y1 = y3U.o3D(k.y, e),
  18691. this._uvs.x2 = y3U.x3D((k.x + k.width), m),
  18692. this._uvs.y2 = y3U.p3D((k.y + k.height), e),
  18693. this._uvs.x3 = y3U.q3D(k.x, m),
  18694. this._uvs.y3 = y3U.b3D((k.y + k.height), e);
  18695. },
  18696. i.Texture.fromImage = function (k, m, e) {
  18697. var o = i.TextureCache[k];
  18698. return o || (o = new i.Texture(i.BaseTexture.fromImage(k, m, e)), i.TextureCache[k] = o),
  18699. o;
  18700. },
  18701. i.Texture.fromFrame = function (k) {
  18702. var m = i.TextureCache[k];
  18703. if (!m)
  18704. throw new Error('The frameId "' + k + '" does not exist in the texture cache ');
  18705. return m;
  18706. },
  18707. i.Texture.fromCanvas = function (k, m) {
  18708. var e = i.BaseTexture.fromCanvas(k, m);
  18709. return new i.Texture(e);
  18710. },
  18711. i.Texture.addTextureToCache = function (m, e) {
  18712. var o = function (k) {
  18713. i.TextureCache[e] = k;
  18714. };
  18715. o(m);
  18716. },
  18717. i.Texture.removeTextureFromCache = function (k) {
  18718. var m = i.TextureCache[k];
  18719. return delete i.TextureCache[k],
  18720. delete i.BaseTextureCache[k],
  18721. m;
  18722. },
  18723. i.TextureUvs = function () {
  18724. this.x0 = 0,
  18725. this.y0 = 0,
  18726. this.x1 = 0,
  18727. this.y1 = 0,
  18728. this.x2 = 0,
  18729. this.y2 = 0,
  18730. this.x3 = 0,
  18731. this.y3 = 0;
  18732. },
  18733. i.Texture.emptyTexture = new i.Texture(new i.BaseTexture),
  18734. i.RenderTexture = function (k, m, e, o, n) {
  18735. if (this.width = k || 100, this.height = m || 100, this.resolution = n || 1, this.frame = new i.Rectangle(0, 0, y3U.j3D(this.width, this.resolution), y3U.d3D(this.height, this.resolution)), this.crop = new i.Rectangle(0, 0, y3U.c3D(this.width, this.resolution), y3U.s3D(this.height, this.resolution)), this.baseTexture = new i.BaseTexture, this.baseTexture.width = y3U.Q3D(this.width, this.resolution), this.baseTexture.height = y3U.a9D(this.height, this.resolution), this.baseTexture._glTextures = [], this.baseTexture.resolution = this.resolution, this.baseTexture.scaleMode = o || i.scaleModes.DEFAULT, this.baseTexture.hasLoaded = !0, i.Texture.call(this, this.baseTexture, new i.Rectangle(0, 0, this.width, this.height)), this.renderer = e || i.defaultRenderer, y3U.W9D(this.renderer.type, i.WEBGL_RENDERER)) {
  18736. var u = this.renderer.gl;
  18737. this.baseTexture._dirty[u.id] = !1,
  18738. this.textureBuffer = new i.FilterTexture(u, y3U.m9D(this.width, this.resolution), y3U.A9D(this.height, this.resolution), this.baseTexture.scaleMode),
  18739. this.baseTexture._glTextures[u.id] = this.textureBuffer.texture,
  18740. this.render = this.renderWebGL,
  18741. this.projection = new i.Point(y3U.w9D(.5, this.width), .5 * -this.height);
  18742. } else
  18743. this.render = this.renderCanvas, this.textureBuffer = new i.CanvasBuffer(y3U.E9D(this.width, this.resolution), y3U.e9D(this.height, this.resolution)), this.baseTexture.source = this.textureBuffer.canvas;
  18744. this.valid = !0,
  18745. this._updateUvs();
  18746. },
  18747. i.RenderTexture.prototype = Object.create(i.Texture.prototype),
  18748. i.RenderTexture.prototype.constructor = i.RenderTexture,
  18749. i.RenderTexture.prototype.resize = function (k, m, e) {
  18750. (y3U.g9D(k, this.width) || y3U.r9D(m, this.height)) && (this.valid = y3U.i9D(k, 0) && y3U.u9D(m, 0), this.width = this.frame.width = this.crop.width = k, this.height = this.frame.height = this.crop.height = m, e && (this.baseTexture.width = this.width, this.baseTexture.height = this.height), y3U.P9D(this.renderer.type, i.WEBGL_RENDERER) && (this.projection.x = y3U.D9D(this.width, 2), this.projection.y = -this.height / 2), this.valid && this.textureBuffer.resize(y3U.Z9D(this.width, this.resolution), y3U.R9D(this.height, this.resolution)));
  18751. },
  18752. i.RenderTexture.prototype.clear = function () {
  18753. this.valid && (y3U.O9D(this.renderer.type, i.WEBGL_RENDERER) && this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER, this.textureBuffer.frameBuffer), this.textureBuffer.clear());
  18754. },
  18755. i.RenderTexture.prototype.renderWebGL = function (k, m, e) {
  18756. if (this.valid) {
  18757. var o = k.worldTransform;
  18758. o.identity(),
  18759. o.translate(0, y3U.V9D(2, this.projection.y)),
  18760. m && o.append(m),
  18761. o.scale(1, -1),
  18762. k.worldAlpha = 1;
  18763. for (var n = k.children, u = 0, q = n.length; y3U.k5D(q, u); u++)
  18764. n[u].updateTransform();
  18765. var f = this.renderer.gl;
  18766. f.viewport(0, 0, y3U.G5D(this.width, this.resolution), y3U.N5D(this.height, this.resolution)),
  18767. f.bindFramebuffer(f.FRAMEBUFFER, this.textureBuffer.frameBuffer),
  18768. e && this.textureBuffer.clear(),
  18769. this.renderer.spriteBatch.dirty = !0,
  18770. this.renderer.renderDisplayObject(k, this.projection, this.textureBuffer.frameBuffer),
  18771. this.renderer.spriteBatch.dirty = !0;
  18772. }
  18773. },
  18774. i.RenderTexture.prototype.renderCanvas = function (k, m, e) {
  18775. if (this.valid) {
  18776. var o = k.worldTransform;
  18777. o.identity(),
  18778. m && o.append(m),
  18779. k.worldAlpha = 1;
  18780. for (var n = k.children, u = 0, q = n.length; y3U.L5D(q, u); u++)
  18781. n[u].updateTransform();
  18782. e && this.textureBuffer.clear();
  18783. var f = this.textureBuffer.context,
  18784. j = this.renderer.resolution;
  18785. this.renderer.resolution = this.resolution,
  18786. this.renderer.renderDisplayObject(k, f),
  18787. this.renderer.resolution = j;
  18788. }
  18789. },
  18790. i.RenderTexture.prototype.getImage = function () {
  18791. var k = new Image;
  18792. return k.src = this.getBase64(),
  18793. k;
  18794. },
  18795. i.RenderTexture.prototype.getBase64 = function () {
  18796. return this.getCanvas().toDataURL();
  18797. },
  18798. i.RenderTexture.prototype.getCanvas = function () {
  18799. if (y3U.z5D(this.renderer.type, i.WEBGL_RENDERER)) {
  18800. var k = this.renderer.gl,
  18801. m = this.textureBuffer.width,
  18802. e = this.textureBuffer.height,
  18803. o = new Uint8Array(y3U.J5D(4, m, e));
  18804. k.bindFramebuffer(k.FRAMEBUFFER, this.textureBuffer.frameBuffer),
  18805. k.readPixels(0, 0, m, e, k.RGBA, k.UNSIGNED_BYTE, o),
  18806. k.bindFramebuffer(k.FRAMEBUFFER, null);
  18807. var n = new i.CanvasBuffer(m, e),
  18808. u = n.context.getImageData(0, 0, m, e);
  18809. return u.data.set(o),
  18810. n.context.putImageData(u, 0, 0),
  18811. n.canvas;
  18812. }
  18813. return this.textureBuffer.canvas;
  18814. },
  18815. i.RenderTexture.tempMatrix = new i.Matrix,
  18816. i.AbstractFilter = function (k, m) {
  18817. this.passes = [this],
  18818. this.shaders = [],
  18819. this.dirty = !0,
  18820. this.padding = 0,
  18821. this.uniforms = m || {},
  18822. this.fragmentSrc = k || [];
  18823. },
  18824. i.AbstractFilter.prototype.constructor = i.AbstractFilter,
  18825. i.AbstractFilter.prototype.syncUniforms = function () {
  18826. for (var k = 0, m = this.shaders.length; y3U.e5D(m, k); k++)
  18827. this.shaders[k].dirty = !0;
  18828. },
  18829. "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = i), exports.PIXI = i) : "undefined" != typeof define && define.amd ? define("PIXI", function () {
  18830. return D0.PIXI = i;
  18831. }
  18832. ()) : D0.PIXI = i;
  18833. }).call(this), function () {
  18834. function q0(k, m) {
  18835. this._scaleFactor = k,
  18836. this._deltaMode = m,
  18837. this.originalEvent = null;
  18838. }
  18839. var D0 = this,
  18840. i = i || {
  18841. VERSION : "2.2.2",
  18842. GAMES : [],
  18843. AUTO : 0,
  18844. CANVAS : 1,
  18845. WEBGL : 2,
  18846. HEADLESS : 3,
  18847. NONE : 0,
  18848. LEFT : 1,
  18849. RIGHT : 2,
  18850. UP : 3,
  18851. DOWN : 4,
  18852. SPRITE : 0,
  18853. BUTTON : 1,
  18854. IMAGE : 2,
  18855. GRAPHICS : 3,
  18856. TEXT : 4,
  18857. TILESPRITE : 5,
  18858. BITMAPTEXT : 6,
  18859. GROUP : 7,
  18860. RENDERTEXTURE : 8,
  18861. TILEMAP : 9,
  18862. TILEMAPLAYER : 10,
  18863. EMITTER : 11,
  18864. POLYGON : 12,
  18865. BITMAPDATA : 13,
  18866. CANVAS_FILTER : 14,
  18867. WEBGL_FILTER : 15,
  18868. ELLIPSE : 16,
  18869. SPRITEBATCH : 17,
  18870. RETROFONT : 18,
  18871. POINTER : 19,
  18872. ROPE : 20,
  18873. blendModes : {
  18874. NORMAL : 0,
  18875. ADD : 1,
  18876. MULTIPLY : 2,
  18877. SCREEN : 3,
  18878. OVERLAY : 4,
  18879. DARKEN : 5,
  18880. LIGHTEN : 6,
  18881. COLOR_DODGE : 7,
  18882. COLOR_BURN : 8,
  18883. HARD_LIGHT : 9,
  18884. SOFT_LIGHT : 10,
  18885. DIFFERENCE : 11,
  18886. EXCLUSION : 12,
  18887. HUE : 13,
  18888. SATURATION : 14,
  18889. COLOR : 15,
  18890. LUMINOSITY : 16
  18891. },
  18892. scaleModes : {
  18893. DEFAULT : 0,
  18894. LINEAR : 0,
  18895. NEAREST : 1
  18896. }
  18897. };
  18898. if (PIXI.InteractionManager = PIXI.InteractionManager || function () {}, PIXI.dontSayHello = !0, Math.trunc || (Math.trunc = function (k) {
  18899. return y3U.g5D(0, k) ? Math.ceil(k) : Math.floor(k);
  18900. }), Function.prototype.bind || (Function.prototype.bind = function () {
  18901. var q = Array.prototype.slice;
  18902. return function (m) {
  18903. function e() {
  18904. var k = n.concat(q.call(arguments));
  18905. o.apply(y3U.r5D(this, e) ? this : m, k);
  18906. }
  18907. var o = this,
  18908. n = q.call(arguments, 1);
  18909. if ("function" != typeof o)
  18910. throw new TypeError;
  18911. return e.prototype = function u(k) {
  18912. return k && (u.prototype = k),
  18913. y3U.i5D(this, u) ? void 0 : new u;
  18914. }
  18915. (o.prototype),
  18916. e;
  18917. };
  18918. }
  18919. ()), Array.isArray || (Array.isArray = function (k) {
  18920. return y3U.u5D("[object Array]", Object.prototype.toString.call(k));
  18921. }), Array.prototype.forEach || (Array.prototype.forEach = function (k) {
  18922. "use strict";
  18923. if (void 0 === this || y3U.P5D(null, this))
  18924. throw new TypeError;
  18925. var m = Object(this),
  18926. e = y3U.D5D(m.length, 0);
  18927. if ("function" != typeof k)
  18928. throw new TypeError;
  18929. for (var o = y3U.Z5D(arguments.length, 2) ? arguments[1] : void 0, n = 0; y3U.R5D(e, n); n++)
  18930. y3U.O5D(n, m)
  18931. && k.call(o, m[n], n, m);
  18932. }), "function" != typeof r2w8n[E8n].Uint32Array && "object" != typeof r2w8n[E8n].Uint32Array) {
  18933. var k7 = function (e) {
  18934. var o = new Array;
  18935. r2w8n[E8n][e] = function (k) {
  18936. if ("number" == typeof k) {
  18937. Array.call(this, k),
  18938. this.length = k;
  18939. for (var m = 0; y3U.V5D(m, this.length); m++)
  18940. this[m] = 0;
  18941. } else {
  18942. Array.call(this, k.length),
  18943. this.length = k.length;
  18944. for (var m = 0; y3U.k2D(m, this.length); m++)
  18945. this[m] = k[m];
  18946. }
  18947. },
  18948. r2w8n[E8n][e].prototype = o,
  18949. r2w8n[E8n][e].constructor = r2w8n[E8n][e];
  18950. };
  18951. k7("Uint32Array"),
  18952. k7("Int16Array");
  18953. }
  18954. r2w8n[E8n]['console'] || (r2w8n[E8n]['console'] = {}, r2w8n[E8n]['console'].log = r2w8n[E8n]['console'].assert = function () {}, r2w8n[E8n]['console'].warn = r2w8n[E8n]['console'].assert = function () {}),
  18955. i.Utils = {
  18956. getProperty : function (k, m) {
  18957. for (var e = m.split("."), o = e.pop(), n = e.length, u = 1, q = e[0]; y3U.G2D(n, u) && (k = k[q]); )
  18958. q = e[u], u++;
  18959. return k ? k[o] : null;
  18960. },
  18961. setProperty : function (k, m, e) {
  18962. for (var o = m.split("."), n = o.pop(), u = o.length, q = 1, f = o[0]; y3U.N2D(u, q) && (k = k[f]); )
  18963. f = o[q], q++;
  18964. return k && (k[n] = e),
  18965. k;
  18966. },
  18967. chanceRoll : function (k) {
  18968. return "undefined" == typeof k && (k = 50),
  18969. y3U.L2D(k, 0) && y3U.z2D(100 * Math.random(), k);
  18970. },
  18971. randomChoice : function (k, m) {
  18972. return y3U.J2D(Math.random(), .5) ? k : m;
  18973. },
  18974. transposeArray : function (k) {
  18975. return i.ArrayUtils.transposeMatrix(k);
  18976. },
  18977. rotateArray : function (k, m) {
  18978. return i.ArrayUtils.rotateMatrix(k, m);
  18979. },
  18980. shuffle : function (k) {
  18981. return i.ArrayUtils.shuffle(k);
  18982. },
  18983. parseDimension : function (k, m) {
  18984. var e = 0,
  18985. o = 0;
  18986. return "string" == typeof k ? "%" === k.substr(-1) ? (e = y3U.H2D(parseInt(k, 10), 100), o = y3U.h2D(0, m) ? y3U.F2D(r2w8n[E8n]['innerWidth'], e) : y3U.M2D(r2w8n[E8n]['innerHeight'], e)) : o = parseInt(k, 10) : o = k,
  18987. o;
  18988. },
  18989. pad : function (k, m, e, o) {
  18990. var n = function () {
  18991. k = new Array(j + 1).join(e) + k + new Array(f + 1).join(e);
  18992. },
  18993. u = function () {
  18994. k = new Array(m + 1 - k.length).join(e) + k;
  18995. };
  18996. if ("undefined" == typeof m)
  18997. var m = 0;
  18998. if ("undefined" == typeof e)
  18999. var e = " ";
  19000. if ("undefined" == typeof o)
  19001. var o = 3;
  19002. var q = 0;
  19003. if (y3U.n2D(m + 1, k.length))
  19004. switch (o) {
  19005. case 1:
  19006. u();
  19007. break;
  19008. case 3:
  19009. var f = Math.ceil(y3U.f2D((q = m - k.length), 2)),
  19010. j = y3U.K2D(q, f);
  19011. n();
  19012. break;
  19013. default:
  19014. k += new Array(m + 1 - k.length).join(e);
  19015. }
  19016. return k;
  19017. },
  19018. isPlainObject : function (m) {
  19019. if ("object" != typeof m || m.nodeType || y3U.B2D(m, m.window))
  19020. return !1;
  19021. try {
  19022. if (m.constructor && !{}
  19023. .hasOwnProperty.call(m.constructor.prototype, "isPrototypeOf"))
  19024. return !1;
  19025. } catch (k) {
  19026. return !1;
  19027. }
  19028. return !0;
  19029. },
  19030. extend : function () {
  19031. var k,
  19032. m,
  19033. e,
  19034. o,
  19035. n,
  19036. u,
  19037. q = arguments[0] || {},
  19038. f = 1,
  19039. j = arguments.length,
  19040. U0 = !1;
  19041. for ("boolean" == typeof q && (U0 = q, q = arguments[1] || {}, f = 2), y3U.l2D(j, f) && (q = this, --f); y3U.X2D(j, f); f++)
  19042. if (y3U.Y2D(null, (k = arguments[f])))
  19043. for (m in k)
  19044. e = q[m], o = k[m], y3U.U1D(q, o) && (U0 && o && (i.Utils.isPlainObject(o) || (n = Array.isArray(o))) ? (n ? (n = !1, u = e && Array.isArray(e) ? e : []) : u = e && i.Utils.isPlainObject(e) ? e : {}, q[m] = i.Utils.extend(U0, u, o)) : void 0 !== o && (q[m] = o));
  19045. return q;
  19046. },
  19047. mixin : function (k, m) {
  19048. if (!k || "object" != typeof k)
  19049. return m;
  19050. for (var e in k) {
  19051. var o = k[e];
  19052. if (!o.childNodes && !o.cloneNode) {
  19053. var n = function () {
  19054. m[e] = k[e] && y3U.T1D("object", u) ? typeof m[e] === u ? i.Utils.mixin(k[e], m[e]) : i.Utils.mixin(k[e], new o.constructor) : k[e];
  19055. };
  19056. var u = typeof k[e];
  19057. n();
  19058. }
  19059. }
  19060. return m;
  19061. }
  19062. },
  19063. i.Circle = function (k, m, e) {
  19064. k = k || 0,
  19065. m = m || 0,
  19066. e = e || 0,
  19067. this.x = k,
  19068. this.y = m,
  19069. this._diameter = e,
  19070. this._radius = y3U.S1D(e, 0) ? y3U.I1D(.5, e) : 0;
  19071. },
  19072. i.Circle.prototype = {
  19073. type : null,
  19074. circumference : function () {
  19075. return y3U.C1D(2, Math.PI, this._radius);
  19076. },
  19077. getBounds : function () {
  19078. return new i.Rectangle(y3U.J1D(this.x, this.radius), y3U.H1D(this.y, this.radius), y3U.h1D(2, this.radius), y3U.F1D(2, this.radius));
  19079. },
  19080. setTo : function (k, m, e) {
  19081. return this.x = k,
  19082. this.y = m,
  19083. this._diameter = e,
  19084. this._radius = y3U.M1D(.5, e),
  19085. this;
  19086. },
  19087. copyFrom : function (k) {
  19088. return this.setTo(k.x, k.y, k.diameter);
  19089. },
  19090. copyTo : function (k) {
  19091. return k.x = this.x,
  19092. k.y = this.y,
  19093. k.diameter = this._diameter,
  19094. k;
  19095. },
  19096. distance : function (k, m) {
  19097. var e = i.Math.distance(this.x, this.y, k.x, k.y);
  19098. return m ? Math.round(e) : e;
  19099. },
  19100. clone : function (k) {
  19101. return "undefined" == typeof k || y3U.n1D(null, k) ? k = new i.Circle(this.x, this.y, this.diameter) : k.setTo(this.x, this.y, this.diameter),
  19102. k;
  19103. },
  19104. contains : function (k, m) {
  19105. return i.Circle.contains(this, k, m);
  19106. },
  19107. circumferencePoint : function (k, m, e) {
  19108. return i.Circle.circumferencePoint(this, k, m, e);
  19109. },
  19110. offset : function (k, m) {
  19111. return this.x += k,
  19112. this.y += m,
  19113. this;
  19114. },
  19115. offsetPoint : function (k) {
  19116. return this.offset(k.x, k.y);
  19117. },
  19118. toString : function () {
  19119. return "[{Phaser.Circle (x=" + this.x + " y=" + this.y + " diameter=" + this.diameter + " radius=" + this.radius + ")}]";
  19120. }
  19121. },
  19122. i.Circle.prototype.constructor = i.Circle,
  19123. Object.defineProperty(i.Circle.prototype, "diameter", {
  19124. get : function () {
  19125. return this._diameter;
  19126. },
  19127. set : function (k) {
  19128. y3U.f1D(k, 0) && (this._diameter = k, this._radius = y3U.K1D(.5, k));
  19129. }
  19130. }),
  19131. Object.defineProperty(i.Circle.prototype, "radius", {
  19132. get : function () {
  19133. return this._radius;
  19134. },
  19135. set : function (k) {
  19136. y3U.B1D(k, 0) && (this._radius = k, this._diameter = y3U.l1D(2, k));
  19137. }
  19138. }),
  19139. Object.defineProperty(i.Circle.prototype, "left", {
  19140. get : function () {
  19141. return y3U.X1D(this.x, this._radius);
  19142. },
  19143. set : function (k) {
  19144. y3U.Y1D(k, this.x) ? (this._radius = 0, this._diameter = 0) : this.radius = y3U.U6D(this.x, k);
  19145. }
  19146. }),
  19147. Object.defineProperty(i.Circle.prototype, "right", {
  19148. get : function () {
  19149. return this.x + this._radius;
  19150. },
  19151. set : function (k) {
  19152. y3U.T6D(k, this.x) ? (this._radius = 0, this._diameter = 0) : this.radius = y3U.S6D(k, this.x);
  19153. }
  19154. }),
  19155. Object.defineProperty(i.Circle.prototype, "top", {
  19156. get : function () {
  19157. return y3U.I6D(this.y, this._radius);
  19158. },
  19159. set : function (k) {
  19160. y3U.C6D(k, this.y) ? (this._radius = 0, this._diameter = 0) : this.radius = y3U.v6D(this.y, k);
  19161. }
  19162. }),
  19163. Object.defineProperty(i.Circle.prototype, "bottom", {
  19164. get : function () {
  19165. return this.y + this._radius;
  19166. },
  19167. set : function (k) {
  19168. y3U.t6D(k, this.y) ? (this._radius = 0, this._diameter = 0) : this.radius = y3U.y6D(k, this.y);
  19169. }
  19170. }),
  19171. Object.defineProperty(i.Circle.prototype, "area", {
  19172. get : function () {
  19173. return y3U.o6D(this._radius, 0) ? y3U.x6D(Math.PI, this._radius, this._radius) : 0;
  19174. }
  19175. }),
  19176. Object.defineProperty(i.Circle.prototype, "empty", {
  19177. get : function () {
  19178. return y3U.n6D(0, this._diameter);
  19179. },
  19180. set : function (k) {
  19181. k === !0 && this.setTo(0, 0, 0);
  19182. }
  19183. }),
  19184. i.Circle.contains = function (k, m, e) {
  19185. if (y3U.f6D(k.radius, 0) && y3U.K6D(m, k.left) && y3U.B6D(m, k.right) && y3U.l6D(e, k.top) && y3U.X6D(e, k.bottom)) {
  19186. var o = y3U.Y6D((k.x - m), (k.x - m)),
  19187. n = y3U.U8D((k.y - e), (k.y - e));
  19188. return y3U.T8D(o + n, k.radius * k.radius);
  19189. }
  19190. return !1;
  19191. },
  19192. i.Circle.equals = function (k, m) {
  19193. return y3U.S8D(k.x, m.x) && y3U.I8D(k.y, m.y) && y3U.C8D(k.diameter, m.diameter);
  19194. },
  19195. i.Circle.intersects = function (k, m) {
  19196. return y3U.v8D(i.Math.distance(k.x, k.y, m.x, m.y), k.radius + m.radius);
  19197. },
  19198. i.Circle.circumferencePoint = function (k, m, e, o) {
  19199. return "undefined" == typeof e && (e = !1),
  19200. "undefined" == typeof o && (o = new i.Point),
  19201. e === !0 && (m = i.Math.degToRad(m)),
  19202. o.x = k.x + y3U.t8D(k.radius, Math.cos(m)),
  19203. o.y = k.y + y3U.y8D(k.radius, Math.sin(m)),
  19204. o;
  19205. },
  19206. i.Circle.intersectsRectangle = function (k, m) {
  19207. var e = Math.abs(y3U.o8D(k.x, m.x, m.halfWidth)),
  19208. o = m.halfWidth + k.radius;
  19209. if (y3U.M8D(e, o))
  19210. return !1;
  19211. var n = Math.abs(y3U.n8D(k.y, m.y, m.halfHeight)),
  19212. u = m.halfHeight + k.radius;
  19213. if (y3U.P8D(n, u))
  19214. return !1;
  19215. if (y3U.D8D(e, m.halfWidth) || y3U.Z8D(n, m.halfHeight))
  19216. return !0;
  19217. var q = y3U.R8D(e, m.halfWidth),
  19218. f = y3U.O8D(n, m.halfHeight),
  19219. j = y3U.V8D(q, q),
  19220. U0 = y3U.k0R(f, f),
  19221. k0 = y3U.G0R(k.radius, k.radius);
  19222. return y3U.N0R(k0, j + U0);
  19223. },
  19224. PIXI.Circle = i.Circle,
  19225. i.Point = function (k, m) {
  19226. k = k || 0,
  19227. m = m || 0,
  19228. this.x = k,
  19229. this.y = m;
  19230. },
  19231. i.Point.prototype = {
  19232. copyFrom : function (k) {
  19233. return this.setTo(k.x, k.y);
  19234. },
  19235. invert : function () {
  19236. return this.setTo(this.y, this.x);
  19237. },
  19238. setTo : function (k, m) {
  19239. return this.x = k || 0,
  19240. this.y = m || (y3U.L0R(0, m) ? this.x : 0),
  19241. this;
  19242. },
  19243. set : function (k, m) {
  19244. return this.x = k || 0,
  19245. this.y = m || (y3U.z0R(0, m) ? this.x : 0),
  19246. this;
  19247. },
  19248. add : function (k, m) {
  19249. return this.x += k,
  19250. this.y += m,
  19251. this;
  19252. },
  19253. subtract : function (k, m) {
  19254. return this.x -= k,
  19255. this.y -= m,
  19256. this;
  19257. },
  19258. multiply : function (k, m) {
  19259. return this.x *= k,
  19260. this.y *= m,
  19261. this;
  19262. },
  19263. divide : function (k, m) {
  19264. return this.x /= k,
  19265. this.y /= m,
  19266. this;
  19267. },
  19268. clampX : function (k, m) {
  19269. return this.x = i.Math.clamp(this.x, k, m),
  19270. this;
  19271. },
  19272. clampY : function (k, m) {
  19273. return this.y = i.Math.clamp(this.y, k, m),
  19274. this;
  19275. },
  19276. clamp : function (k, m) {
  19277. return this.x = i.Math.clamp(this.x, k, m),
  19278. this.y = i.Math.clamp(this.y, k, m),
  19279. this;
  19280. },
  19281. clone : function (k) {
  19282. return "undefined" == typeof k || y3U.J0R(null, k) ? k = new i.Point(this.x, this.y) : k.setTo(this.x, this.y),
  19283. k;
  19284. },
  19285. copyTo : function (k) {
  19286. return k.x = this.x,
  19287. k.y = this.y,
  19288. k;
  19289. },
  19290. distance : function (k, m) {
  19291. return i.Point.distance(this, k, m);
  19292. },
  19293. equals : function (k) {
  19294. return y3U.H0R(k.x, this.x) && y3U.h0R(k.y, this.y);
  19295. },
  19296. angle : function (k, m) {
  19297. return "undefined" == typeof m && (m = !1),
  19298. m ? i.Math.radToDeg(Math.atan2(y3U.F0R(k.y, this.y), y3U.M0R(k.x, this.x))) : Math.atan2(y3U.n0R(k.y, this.y), y3U.f0R(k.x, this.x));
  19299. },
  19300. rotate : function (k, m, e, o, n) {
  19301. return i.Point.rotate(this, k, m, e, o, n);
  19302. },
  19303. getMagnitude : function () {
  19304. return Math.sqrt(y3U.K0R(this.x, this.x) + y3U.B0R(this.y, this.y));
  19305. },
  19306. getMagnitudeSq : function () {
  19307. return y3U.l0R(this.x, this.x) + y3U.X0R(this.y, this.y);
  19308. },
  19309. setMagnitude : function (k) {
  19310. return this.normalize().multiply(k, k);
  19311. },
  19312. normalize : function () {
  19313. if (!this.isZero()) {
  19314. var k = this.getMagnitude();
  19315. this.x /= k,
  19316. this.y /= k;
  19317. }
  19318. return this;
  19319. },
  19320. isZero : function () {
  19321. return y3U.Y0R(0, this.x) && y3U.U7R(0, this.y);
  19322. },
  19323. dot : function (k) {
  19324. return y3U.T7R(this.x, k.x) + y3U.S7R(this.y, k.y);
  19325. },
  19326. cross : function (k) {
  19327. return y3U.I7R(this.x * k.y, this.y * k.x);
  19328. },
  19329. perp : function () {
  19330. return this.setTo(-this.y, this.x);
  19331. },
  19332. rperp : function () {
  19333. return this.setTo(this.y, -this.x);
  19334. },
  19335. normalRightHand : function () {
  19336. return this.setTo(-1 * this.y, this.x);
  19337. },
  19338. floor : function () {
  19339. return this.setTo(Math.floor(this.x), Math.floor(this.y));
  19340. },
  19341. ceil : function () {
  19342. return this.setTo(Math.ceil(this.x), Math.ceil(this.y));
  19343. },
  19344. toString : function () {
  19345. return "[{Point (x=" + this.x + " y=" + this.y + ")}]";
  19346. }
  19347. },
  19348. i.Point.prototype.constructor = i.Point,
  19349. i.Point.add = function (k, m, e) {
  19350. return "undefined" == typeof e && (e = new i.Point),
  19351. e.x = k.x + m.x,
  19352. e.y = k.y + m.y,
  19353. e;
  19354. },
  19355. i.Point.subtract = function (k, m, e) {
  19356. return "undefined" == typeof e && (e = new i.Point),
  19357. e.x = y3U.C7R(k.x, m.x),
  19358. e.y = y3U.v7R(k.y, m.y),
  19359. e;
  19360. },
  19361. i.Point.multiply = function (k, m, e) {
  19362. return "undefined" == typeof e && (e = new i.Point),
  19363. e.x = y3U.t7R(k.x, m.x),
  19364. e.y = y3U.y7R(k.y, m.y),
  19365. e;
  19366. },
  19367. i.Point.divide = function (k, m, e) {
  19368. return "undefined" == typeof e && (e = new i.Point),
  19369. e.x = y3U.o7R(k.x, m.x),
  19370. e.y = y3U.x7R(k.y, m.y),
  19371. e;
  19372. },
  19373. i.Point.equals = function (k, m) {
  19374. return y3U.p7R(k.x, m.x) && y3U.q7R(k.y, m.y);
  19375. },
  19376. i.Point.angle = function (k, m) {
  19377. return Math.atan2(y3U.b7R(k.y, m.y), y3U.j7R(k.x, m.x));
  19378. },
  19379. i.Point.negative = function (k, m) {
  19380. return "undefined" == typeof m && (m = new i.Point),
  19381. m.setTo(-k.x, -k.y);
  19382. },
  19383. i.Point.multiplyAdd = function (k, m, e, o) {
  19384. return "undefined" == typeof o && (o = new i.Point),
  19385. o.setTo(k.x + y3U.d7R(m.x, e), k.y + y3U.c7R(m.y, e));
  19386. },
  19387. i.Point.interpolate = function (k, m, e, o) {
  19388. return "undefined" == typeof o && (o = new i.Point),
  19389. o.setTo(k.x + y3U.s7R((m.x - k.x), e), k.y + y3U.Q7R((m.y - k.y), e));
  19390. },
  19391. i.Point.perp = function (k, m) {
  19392. return "undefined" == typeof m && (m = new i.Point),
  19393. m.setTo(-k.y, k.x);
  19394. },
  19395. i.Point.rperp = function (k, m) {
  19396. return "undefined" == typeof m && (m = new i.Point),
  19397. m.setTo(k.y, -k.x);
  19398. },
  19399. i.Point.distance = function (k, m, e) {
  19400. var o = i.Math.distance(k.x, k.y, m.x, m.y);
  19401. return e ? Math.round(o) : o;
  19402. },
  19403. i.Point.project = function (k, m, e) {
  19404. "undefined" == typeof e && (e = new i.Point);
  19405. var o = y3U.a4R(k.dot(m), m.getMagnitudeSq());
  19406. return y3U.W4R(0, o) && e.setTo(y3U.m4R(o, m.x), y3U.A4R(o, m.y)),
  19407. e;
  19408. },
  19409. i.Point.projectUnit = function (k, m, e) {
  19410. "undefined" == typeof e && (e = new i.Point);
  19411. var o = k.dot(m);
  19412. return y3U.w4R(0, o) && e.setTo(y3U.E4R(o, m.x), y3U.e4R(o, m.y)),
  19413. e;
  19414. },
  19415. i.Point.normalRightHand = function (k, m) {
  19416. return "undefined" == typeof m && (m = new i.Point),
  19417. m.setTo(-1 * k.y, k.x);
  19418. },
  19419. i.Point.normalize = function (k, m) {
  19420. "undefined" == typeof m && (m = new i.Point);
  19421. var e = k.getMagnitude();
  19422. return y3U.g4R(0, e) && m.setTo(y3U.r4R(k.x, e), y3U.i4R(k.y, e)),
  19423. m;
  19424. },
  19425. i.Point.rotate = function (k, m, e, o, n, u) {
  19426. n = n || !1,
  19427. u = u || null,
  19428. n && (o = i.Math.degToRad(o)),
  19429. y3U.u4R(null, u) && (u = Math.sqrt(y3U.P4R((m - k.x), (m - k.x)) + y3U.D4R((e - k.y), (e - k.y))));
  19430. var q = o + Math.atan2(y3U.Z4R(k.y, e), y3U.R4R(k.x, m));
  19431. return k.setTo(m + y3U.O4R(u, Math.cos(q)), e + y3U.V4R(u, Math.sin(q)));
  19432. },
  19433. i.Point.centroid = function (k, m) {
  19434. if ("undefined" == typeof m && (m = new i.Point), y3U.k3R("[object Array]", Object.prototype.toString.call(k)))
  19435. throw new Error("Phaser.Point. Parameter 'points' must be an array");
  19436. var e = k.length;
  19437. if (y3U.G3R(1, e))
  19438. throw new Error("Phaser.Point. Parameter 'points' array must not be empty");
  19439. if (y3U.N3R(1, e))
  19440. return m.copyFrom(k[0]), m;
  19441. for (var o = 0; y3U.L3R(e, o); o++)
  19442. i.Point.add(m, k[o], m);
  19443. return m.divide(e, e),
  19444. m;
  19445. },
  19446. i.Point.parse = function (k, m, e) {
  19447. m = m || "x",
  19448. e = e || "y";
  19449. var o = new i.Point;
  19450. return k[m] && (o.x = parseInt(k[m], 10)),
  19451. k[e] && (o.y = parseInt(k[e], 10)),
  19452. o;
  19453. },
  19454. PIXI.Point = i.Point,
  19455. i.Rectangle = function (k, m, e, o) {
  19456. k = k || 0,
  19457. m = m || 0,
  19458. e = e || 0,
  19459. o = o || 0,
  19460. this.x = k,
  19461. this.y = m,
  19462. this.width = e,
  19463. this.height = o;
  19464. },
  19465. i.Rectangle.prototype = {
  19466. offset : function (k, m) {
  19467. return this.x += k,
  19468. this.y += m,
  19469. this;
  19470. },
  19471. offsetPoint : function (k) {
  19472. return this.offset(k.x, k.y);
  19473. },
  19474. setTo : function (k, m, e, o) {
  19475. return this.x = k,
  19476. this.y = m,
  19477. this.width = e,
  19478. this.height = o,
  19479. this;
  19480. },
  19481. scale : function (k, m) {
  19482. return "undefined" == typeof m && (m = k),
  19483. this.width *= k,
  19484. this.height *= m,
  19485. this;
  19486. },
  19487. centerOn : function (k, m) {
  19488. return this.centerX = k,
  19489. this.centerY = m,
  19490. this;
  19491. },
  19492. floor : function () {
  19493. this.x = Math.floor(this.x),
  19494. this.y = Math.floor(this.y);
  19495. },
  19496. floorAll : function () {
  19497. this.x = Math.floor(this.x),
  19498. this.y = Math.floor(this.y),
  19499. this.width = Math.floor(this.width),
  19500. this.height = Math.floor(this.height);
  19501. },
  19502. copyFrom : function (k) {
  19503. return this.setTo(k.x, k.y, k.width, k.height);
  19504. },
  19505. copyTo : function (k) {
  19506. return k.x = this.x,
  19507. k.y = this.y,
  19508. k.width = this.width,
  19509. k.height = this.height,
  19510. k;
  19511. },
  19512. inflate : function (k, m) {
  19513. return i.Rectangle.inflate(this, k, m);
  19514. },
  19515. size : function (k) {
  19516. return i.Rectangle.size(this, k);
  19517. },
  19518. clone : function (k) {
  19519. return i.Rectangle.clone(this, k);
  19520. },
  19521. contains : function (k, m) {
  19522. return i.Rectangle.contains(this, k, m);
  19523. },
  19524. containsRect : function (k) {
  19525. return i.Rectangle.containsRect(k, this);
  19526. },
  19527. equals : function (k) {
  19528. return i.Rectangle.equals(this, k);
  19529. },
  19530. intersection : function (k, m) {
  19531. return i.Rectangle.intersection(this, k, m);
  19532. },
  19533. intersects : function (k) {
  19534. return i.Rectangle.intersects(this, k);
  19535. },
  19536. intersectsRaw : function (k, m, e, o, n) {
  19537. return i.Rectangle.intersectsRaw(this, k, m, e, o, n);
  19538. },
  19539. union : function (k, m) {
  19540. return i.Rectangle.union(this, k, m);
  19541. },
  19542. toString : function () {
  19543. return "[{Rectangle (x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + " empty=" + this.empty + ")}]";
  19544. }
  19545. },
  19546. Object.defineProperty(i.Rectangle.prototype, "halfWidth", {
  19547. get : function () {
  19548. return Math.round(y3U.z3R(this.width, 2));
  19549. }
  19550. }),
  19551. Object.defineProperty(i.Rectangle.prototype, "halfHeight", {
  19552. get : function () {
  19553. return Math.round(y3U.J3R(this.height, 2));
  19554. }
  19555. }),
  19556. Object.defineProperty(i.Rectangle.prototype, "bottom", {
  19557. get : function () {
  19558. return this.y + this.height;
  19559. },
  19560. set : function (k) {
  19561. this.height = y3U.H3R(k, this.y) ? 0 : y3U.h3R(k, this.y);
  19562. }
  19563. }),
  19564. Object.defineProperty(i.Rectangle.prototype, "bottomRight", {
  19565. get : function () {
  19566. return new i.Point(this.right, this.bottom);
  19567. },
  19568. set : function (k) {
  19569. this.right = k.x,
  19570. this.bottom = k.y;
  19571. }
  19572. }),
  19573. Object.defineProperty(i.Rectangle.prototype, "left", {
  19574. get : function () {
  19575. return this.x;
  19576. },
  19577. set : function (k) {
  19578. this.width = y3U.F3R(k, this.right) ? 0 : y3U.M3R(this.right, k),
  19579. this.x = k;
  19580. }
  19581. }),
  19582. Object.defineProperty(i.Rectangle.prototype, "right", {
  19583. get : function () {
  19584. return this.x + this.width;
  19585. },
  19586. set : function (k) {
  19587. this.width = y3U.n3R(k, this.x) ? 0 : y3U.f3R(k, this.x);
  19588. }
  19589. }),
  19590. Object.defineProperty(i.Rectangle.prototype, "volume", {
  19591. get : function () {
  19592. return y3U.K3R(this.width, this.height);
  19593. }
  19594. }),
  19595. Object.defineProperty(i.Rectangle.prototype, "perimeter", {
  19596. get : function () {
  19597. return y3U.B3R(2, this.width) + y3U.l3R(2, this.height);
  19598. }
  19599. }),
  19600. Object.defineProperty(i.Rectangle.prototype, "centerX", {
  19601. get : function () {
  19602. return this.x + this.halfWidth;
  19603. },
  19604. set : function (k) {
  19605. this.x = y3U.X3R(k, this.halfWidth);
  19606. }
  19607. }),
  19608. Object.defineProperty(i.Rectangle.prototype, "centerY", {
  19609. get : function () {
  19610. return this.y + this.halfHeight;
  19611. },
  19612. set : function (k) {
  19613. this.y = y3U.Y3R(k, this.halfHeight);
  19614. }
  19615. }),
  19616. Object.defineProperty(i.Rectangle.prototype, "randomX", {
  19617. get : function () {
  19618. return this.x + y3U.U9R(Math.random(), this.width);
  19619. }
  19620. }),
  19621. Object.defineProperty(i.Rectangle.prototype, "randomY", {
  19622. get : function () {
  19623. return this.y + y3U.T9R(Math.random(), this.height);
  19624. }
  19625. }),
  19626. Object.defineProperty(i.Rectangle.prototype, "top", {
  19627. get : function () {
  19628. return this.y;
  19629. },
  19630. set : function (k) {
  19631. y3U.S9R(k, this.bottom) ? (this.height = 0, this.y = k) : this.height = y3U.I9R(this.bottom, k);
  19632. }
  19633. }),
  19634. Object.defineProperty(i.Rectangle.prototype, "topLeft", {
  19635. get : function () {
  19636. return new i.Point(this.x, this.y);
  19637. },
  19638. set : function (k) {
  19639. this.x = k.x,
  19640. this.y = k.y;
  19641. }
  19642. }),
  19643. Object.defineProperty(i.Rectangle.prototype, "topRight", {
  19644. get : function () {
  19645. return new i.Point(this.x + this.width, this.y);
  19646. },
  19647. set : function (k) {
  19648. this.right = k.x,
  19649. this.y = k.y;
  19650. }
  19651. }),
  19652. Object.defineProperty(i.Rectangle.prototype, "empty", {
  19653. get : function () {
  19654. return !this.width || !this.height;
  19655. },
  19656. set : function (k) {
  19657. k === !0 && this.setTo(0, 0, 0, 0);
  19658. }
  19659. }),
  19660. i.Rectangle.prototype.constructor = i.Rectangle,
  19661. i.Rectangle.inflate = function (k, m, e) {
  19662. return k.x -= m,
  19663. k.width += y3U.C9R(2, m),
  19664. k.y -= e,
  19665. k.height += y3U.v9R(2, e),
  19666. k;
  19667. },
  19668. i.Rectangle.inflatePoint = function (k, m) {
  19669. return i.Rectangle.inflate(k, m.x, m.y);
  19670. },
  19671. i.Rectangle.size = function (k, m) {
  19672. return "undefined" == typeof m || y3U.t9R(null, m) ? m = new i.Point(k.width, k.height) : m.setTo(k.width, k.height),
  19673. m;
  19674. },
  19675. i.Rectangle.clone = function (k, m) {
  19676. return "undefined" == typeof m || y3U.y9R(null, m) ? m = new i.Rectangle(k.x, k.y, k.width, k.height) : m.setTo(k.x, k.y, k.width, k.height),
  19677. m;
  19678. },
  19679. i.Rectangle.contains = function (k, m, e) {
  19680. return y3U.o9R(k.width, 0) || y3U.x9R(k.height, 0) ? !1 : y3U.p9R(m, k.x) && y3U.q9R(m, k.right) && y3U.b9R(e, k.y) && y3U.j9R(e, k.bottom);
  19681. },
  19682. i.Rectangle.containsRaw = function (k, m, e, o, n, u) {
  19683. return y3U.d9R(n, k) && y3U.c9R(k + e, n) && y3U.s9R(u, m) && y3U.Q9R(m + o, u);
  19684. },
  19685. i.Rectangle.containsPoint = function (k, m) {
  19686. return i.Rectangle.contains(k, m.x, m.y);
  19687. },
  19688. i.Rectangle.containsRect = function (k, m) {
  19689. return y3U.a5R(k.volume, m.volume) ? !1 : y3U.W5R(k.x, m.x) && y3U.m5R(k.y, m.y) && y3U.A5R(k.right, m.right) && y3U.w5R(k.bottom, m.bottom);
  19690. },
  19691. i.Rectangle.equals = function (k, m) {
  19692. return y3U.E5R(k.x, m.x) && y3U.e5R(k.y, m.y) && y3U.g5R(k.width, m.width) && y3U.r5R(k.height, m.height);
  19693. },
  19694. i.Rectangle.sameDimensions = function (k, m) {
  19695. return y3U.i5R(k.width, m.width) && y3U.u5R(k.height, m.height);
  19696. },
  19697. i.Rectangle.intersection = function (k, m, e) {
  19698. return "undefined" == typeof e && (e = new i.Rectangle),
  19699. i.Rectangle.intersects(k, m) && (e.x = Math.max(k.x, m.x), e.y = Math.max(k.y, m.y), e.width = y3U.P5R(Math.min(k.right, m.right), e.x), e.height = y3U.D5R(Math.min(k.bottom, m.bottom), e.y)),
  19700. e;
  19701. },
  19702. i.Rectangle.intersects = function (k, m) {
  19703. return y3U.Z5R(k.width, 0) || y3U.R5R(k.height, 0) || y3U.O5R(m.width, 0) || y3U.V5R(m.height, 0) ? !1 : !(y3U.k2R(k.right, m.x) || y3U.G2R(k.bottom, m.y) || y3U.N2R(k.x, m.right) || y3U.L2R(k.y, m.bottom));
  19704. },
  19705. i.Rectangle.intersectsRaw = function (k, m, e, o, n, u) {
  19706. return "undefined" == typeof u && (u = 0),
  19707. !(y3U.z2R(m, k.right + u) || y3U.J2R(e, k.left - u) || y3U.H2R(o, k.bottom + u) || y3U.h2R(n, k.top - u));
  19708. },
  19709. i.Rectangle.union = function (k, m, e) {
  19710. return "undefined" == typeof e && (e = new i.Rectangle),
  19711. e.setTo(Math.min(k.x, m.x), Math.min(k.y, m.y), y3U.F2R(Math.max(k.right, m.right), Math.min(k.left, m.left)), y3U.M2R(Math.max(k.bottom, m.bottom), Math.min(k.top, m.top)));
  19712. },
  19713. i.Rectangle.aabb = function (m, e) {
  19714. "undefined" == typeof e && (e = new i.Rectangle);
  19715. var o = Number.MIN_VALUE,
  19716. n = Number.MAX_VALUE,
  19717. u = Number.MIN_VALUE,
  19718. q = Number.MAX_VALUE;
  19719. return m.forEach(function (k) {
  19720. y3U.n2R(k.x, o) && (o = k.x),
  19721. y3U.f2R(k.x, n) && (n = k.x),
  19722. y3U.K2R(k.y, u) && (u = k.y),
  19723. y3U.B2R(k.y, q) && (q = k.y);
  19724. }),
  19725. e.setTo(n, q, y3U.l2R(o, n), y3U.X2R(u, q)),
  19726. e;
  19727. },
  19728. PIXI.Rectangle = i.Rectangle,
  19729. PIXI.EmptyRectangle = new i.Rectangle(0, 0, 0, 0),
  19730. i.Line = function (k, m, e, o) {
  19731. k = k || 0,
  19732. m = m || 0,
  19733. e = e || 0,
  19734. o = o || 0,
  19735. this.start = new i.Point(k, m),
  19736. this.end = new i.Point(e, o);
  19737. },
  19738. i.Line.prototype = {
  19739. setTo : function (k, m, e, o) {
  19740. return this.start.setTo(k, m),
  19741. this.end.setTo(e, o),
  19742. this;
  19743. },
  19744. fromSprite : function (k, m, e) {
  19745. return "undefined" == typeof e && (e = !1),
  19746. e ? this.setTo(k.center.x, k.center.y, m.center.x, m.center.y) : this.setTo(k.x, k.y, m.x, m.y);
  19747. },
  19748. fromAngle : function (k, m, e, o) {
  19749. return this.start.setTo(k, m),
  19750. this.end.setTo(k + y3U.Y2R(Math.cos(e), o), m + y3U.U1R(Math.sin(e), o)),
  19751. this;
  19752. },
  19753. intersects : function (k, m, e) {
  19754. return i.Line.intersectsPoints(this.start, this.end, k.start, k.end, m, e);
  19755. },
  19756. reflect : function (k) {
  19757. return i.Line.reflect(this, k);
  19758. },
  19759. pointOnLine : function (k, m) {
  19760. return y3U.T1R((k - this.start.x) * (this.end.y - this.start.y), (this.end.x - this.start.x) * (m - this.start.y));
  19761. },
  19762. pointOnSegment : function (k, m) {
  19763. var e = Math.min(this.start.x, this.end.x),
  19764. o = Math.max(this.start.x, this.end.x),
  19765. n = Math.min(this.start.y, this.end.y),
  19766. u = Math.max(this.start.y, this.end.y);
  19767. return this.pointOnLine(k, m) && y3U.S1R(k, e) && y3U.I1R(o, k) && y3U.C1R(m, n) && y3U.v1R(u, m);
  19768. },
  19769. coordinatesOnLine : function (k, m) {
  19770. "undefined" == typeof k && (k = 1),
  19771. "undefined" == typeof m && (m = []);
  19772. var e = Math.round(this.start.x),
  19773. o = Math.round(this.start.y),
  19774. n = Math.round(this.end.x),
  19775. u = Math.round(this.end.y),
  19776. q = Math.abs(y3U.t1R(n, e)),
  19777. f = Math.abs(y3U.y1R(u, o)),
  19778. j = y3U.o1R(n, e) ? 1 : -1,
  19779. U0 = y3U.x1R(u, o) ? 1 : -1,
  19780. k0 = y3U.p1R(q, f);
  19781. m.push([e, o]);
  19782. for (var a0 = 1; y3U.q1R(e, n) || y3U.b1R(o, u); ) {
  19783. var T0 = y3U.j1R(k0, 1);
  19784. T0 > -f && (k0 -= f, e += j),
  19785. y3U.d1R(q, T0) && (k0 += q, o += U0),
  19786. y3U.c1R(a0 % k, 0) && m.push([e, o]),
  19787. a0++;
  19788. }
  19789. return m;
  19790. },
  19791. clone : function (k) {
  19792. return "undefined" == typeof k || y3U.s1R(null, k) ? k = new i.Line(this.start.x, this.start.y, this.end.x, this.end.y) : k.setTo(this.start.x, this.start.y, this.end.x, this.end.y),
  19793. k;
  19794. }
  19795. },
  19796. Object.defineProperty(i.Line.prototype, "length", {
  19797. get : function () {
  19798. return Math.sqrt(y3U.Q1R((this.end.x - this.start.x), (this.end.x - this.start.x)) + y3U.a6R((this.end.y - this.start.y), (this.end.y - this.start.y)));
  19799. }
  19800. }),
  19801. Object.defineProperty(i.Line.prototype, "angle", {
  19802. get : function () {
  19803. return Math.atan2(y3U.W6R(this.end.y, this.start.y), y3U.m6R(this.end.x, this.start.x));
  19804. }
  19805. }),
  19806. Object.defineProperty(i.Line.prototype, "slope", {
  19807. get : function () {
  19808. return y3U.A6R((this.end.y - this.start.y), (this.end.x - this.start.x));
  19809. }
  19810. }),
  19811. Object.defineProperty(i.Line.prototype, "perpSlope", {
  19812. get : function () {
  19813. return - (y3U.w6R((this.end.x - this.start.x), (this.end.y - this.start.y)));
  19814. }
  19815. }),
  19816. Object.defineProperty(i.Line.prototype, "x", {
  19817. get : function () {
  19818. return Math.min(this.start.x, this.end.x);
  19819. }
  19820. }),
  19821. Object.defineProperty(i.Line.prototype, "y", {
  19822. get : function () {
  19823. return Math.min(this.start.y, this.end.y);
  19824. }
  19825. }),
  19826. Object.defineProperty(i.Line.prototype, "left", {
  19827. get : function () {
  19828. return Math.min(this.start.x, this.end.x);
  19829. }
  19830. }),
  19831. Object.defineProperty(i.Line.prototype, "right", {
  19832. get : function () {
  19833. return Math.max(this.start.x, this.end.x);
  19834. }
  19835. }),
  19836. Object.defineProperty(i.Line.prototype, "top", {
  19837. get : function () {
  19838. return Math.min(this.start.y, this.end.y);
  19839. }
  19840. }),
  19841. Object.defineProperty(i.Line.prototype, "bottom", {
  19842. get : function () {
  19843. return Math.max(this.start.y, this.end.y);
  19844. }
  19845. }),
  19846. Object.defineProperty(i.Line.prototype, "width", {
  19847. get : function () {
  19848. return Math.abs(y3U.E6R(this.start.x, this.end.x));
  19849. }
  19850. }),
  19851. Object.defineProperty(i.Line.prototype, "height", {
  19852. get : function () {
  19853. return Math.abs(y3U.e6R(this.start.y, this.end.y));
  19854. }
  19855. }),
  19856. Object.defineProperty(i.Line.prototype, "normalX", {
  19857. get : function () {
  19858. return Math.cos(y3U.g6R(this.angle, 1.5707963267948966));
  19859. }
  19860. }),
  19861. Object.defineProperty(i.Line.prototype, "normalY", {
  19862. get : function () {
  19863. return Math.sin(y3U.r6R(this.angle, 1.5707963267948966));
  19864. }
  19865. }),
  19866. Object.defineProperty(i.Line.prototype, "normalAngle", {
  19867. get : function () {
  19868. return i.Math.wrap(y3U.i6R(this.angle, 1.5707963267948966), -Math.PI, Math.PI);
  19869. }
  19870. }),
  19871. i.Line.intersectsPoints = function (k, m, e, o, n, u) {
  19872. "undefined" == typeof n && (n = !0),
  19873. "undefined" == typeof u && (u = new i.Point);
  19874. var q = y3U.u6R(m.y, k.y),
  19875. f = y3U.P6R(o.y, e.y),
  19876. j = y3U.D6R(k.x, m.x),
  19877. U0 = y3U.Z6R(e.x, o.x),
  19878. k0 = y3U.R6R(m.x * k.y, k.x * m.y),
  19879. a0 = y3U.O6R(o.x * e.y, e.x * o.y),
  19880. T0 = y3U.V6R(q * U0, f * j);
  19881. if (y3U.k8R(0, T0))
  19882. return null;
  19883. if (u.x = y3U.G8R((j * a0 - U0 * k0), T0), u.y = y3U.N8R((f * k0 - q * a0), T0), n) {
  19884. var G0 = y3U.L8R((o.y - e.y) * (m.x - k.x), (o.x - e.x) * (m.y - k.y)),
  19885. W0 = y3U.z8R(((o.x - e.x) * (k.y - e.y) - (o.y - e.y) * (k.x - e.x)), G0),
  19886. N0 = y3U.J8R(((m.x - k.x) * (k.y - e.y) - (m.y - k.y) * (k.x - e.x)), G0);
  19887. return y3U.H8R(W0, 0) && y3U.h8R(1, W0) && y3U.F8R(N0, 0) && y3U.M8R(1, N0) ? u : null;
  19888. }
  19889. return u;
  19890. },
  19891. i.Line.intersects = function (k, m, e, o) {
  19892. return i.Line.intersectsPoints(k.start, k.end, m.start, m.end, e, o);
  19893. },
  19894. i.Line.reflect = function (k, m) {
  19895. return y3U.n8R(2 * m.normalAngle, 3.141592653589793, k.angle);
  19896. },
  19897. i.Ellipse = function (k, m, e, o) {
  19898. this.type = i.ELLIPSE,
  19899. k = k || 0,
  19900. m = m || 0,
  19901. e = e || 0,
  19902. o = o || 0,
  19903. this.x = k,
  19904. this.y = m,
  19905. this.width = e,
  19906. this.height = o;
  19907. },
  19908. i.Ellipse.prototype = {
  19909. setTo : function (k, m, e, o) {
  19910. return this.x = k,
  19911. this.y = m,
  19912. this.width = e,
  19913. this.height = o,
  19914. this;
  19915. },
  19916. getBounds : function () {
  19917. return new i.Rectangle(y3U.P8R(this.x, this.width), y3U.D8R(this.y, this.height), this.width, this.height);
  19918. },
  19919. copyFrom : function (k) {
  19920. return this.setTo(k.x, k.y, k.width, k.height);
  19921. },
  19922. copyTo : function (k) {
  19923. return k.x = this.x,
  19924. k.y = this.y,
  19925. k.width = this.width,
  19926. k.height = this.height,
  19927. k;
  19928. },
  19929. clone : function (k) {
  19930. return "undefined" == typeof k || y3U.Z8R(null, k) ? k = new i.Ellipse(this.x, this.y, this.width, this.height) : k.setTo(this.x, this.y, this.width, this.height),
  19931. k;
  19932. },
  19933. contains : function (k, m) {
  19934. return i.Ellipse.contains(this, k, m);
  19935. },
  19936. toString : function () {
  19937. return "[{Phaser.Ellipse (x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + ")}]";
  19938. }
  19939. },
  19940. i.Ellipse.prototype.constructor = i.Ellipse,
  19941. Object.defineProperty(i.Ellipse.prototype, "left", {
  19942. get : function () {
  19943. return this.x;
  19944. },
  19945. set : function (k) {
  19946. this.x = k;
  19947. }
  19948. }),
  19949. Object.defineProperty(i.Ellipse.prototype, "right", {
  19950. get : function () {
  19951. return this.x + this.width;
  19952. },
  19953. set : function (k) {
  19954. this.width = y3U.R8R(k, this.x) ? 0 : y3U.O8R(k, this.x);
  19955. }
  19956. }),
  19957. Object.defineProperty(i.Ellipse.prototype, "top", {
  19958. get : function () {
  19959. return this.y;
  19960. },
  19961. set : function (k) {
  19962. this.y = k;
  19963. }
  19964. }),
  19965. Object.defineProperty(i.Ellipse.prototype, "bottom", {
  19966. get : function () {
  19967. return this.y + this.height;
  19968. },
  19969. set : function (k) {
  19970. this.height = y3U.V8R(k, this.y) ? 0 : y3U.k0P(k, this.y);
  19971. }
  19972. }),
  19973. Object.defineProperty(i.Ellipse.prototype, "empty", {
  19974. get : function () {
  19975. return y3U.G0P(0, this.width) || y3U.N0P(0, this.height);
  19976. },
  19977. set : function (k) {
  19978. k === !0 && this.setTo(0, 0, 0, 0);
  19979. }
  19980. }),
  19981. i.Ellipse.contains = function (k, m, e) {
  19982. if (y3U.L0P(k.width, 0) || y3U.z0P(k.height, 0))
  19983. return !1;
  19984. var o = y3U.J0P((m - k.x), k.width),
  19985. n = y3U.H0P((e - k.y), k.height);
  19986. return o *= o,
  19987. n *= n,
  19988. y3U.h0P(1, o + n);
  19989. },
  19990. PIXI.Ellipse = i.Ellipse,
  19991. i.Polygon = function () {
  19992. this.type = i.POLYGON,
  19993. this.area = 0,
  19994. this._points = [],
  19995. y3U.F0P(arguments.length, 0) && this.setTo.apply(this, arguments),
  19996. this.closed = !0;
  19997. },
  19998. i.Polygon.prototype = {
  19999. clone : function (k) {
  20000. var m = this._points.slice();
  20001. return "undefined" == typeof k || y3U.M0P(null, k) ? k = new i.Polygon(m) : k.setTo(m),
  20002. k;
  20003. },
  20004. contains : function (k, m) {
  20005. for (var e = this._points.length, o = !1, n = -1, u = y3U.n0P(e, 1); ++n < e; u = n) {
  20006. var q = this._points[n].x,
  20007. f = this._points[n].y,
  20008. j = this._points[u].x,
  20009. U0 = this._points[u].y;
  20010. (y3U.f0P(m, f) && y3U.K0P(U0, m) || y3U.B0P(m, U0) && y3U.l0P(f, m)) && y3U.X0P((j - q) * (m - f) / (U0 - f) + q, k) && (o = !o);
  20011. }
  20012. return o;
  20013. },
  20014. setTo : function (k) {
  20015. if (this.area = 0, this._points = [], y3U.Y0P(arguments.length, 0)) {
  20016. Array.isArray(k) || (k = Array.prototype.slice.call(arguments));
  20017. for (var m = Number.MAX_VALUE, e = 0, o = k.length; y3U.U7P(o, e); e++) {
  20018. if ("number" == typeof k[e]) {
  20019. var n = new i.Point(k[e], k[e + 1]);
  20020. e++;
  20021. } else
  20022. var n = new i.Point(k[e].x, k[e].y);
  20023. this._points.push(n),
  20024. y3U.T7P(n.y, m) && (m = n.y);
  20025. }
  20026. this.calculateArea(m);
  20027. }
  20028. return this;
  20029. },
  20030. calculateArea : function (k) {
  20031. for (var m, e, o, n, u = 0, q = this._points.length; y3U.S7P(q, u); u++)
  20032. m = this._points[u], e = y3U.I7P(u, q - 1) ? this._points[0] : this._points[u + 1], o = y3U.C7P((m.y - k + (e.y - k)), 2), n = y3U.v7P(m.x, e.x), this.area += y3U.t7P(o, n);
  20033. return this.area;
  20034. }
  20035. },
  20036. i.Polygon.prototype.constructor = i.Polygon,
  20037. Object.defineProperty(i.Polygon.prototype, "points", {
  20038. get : function () {
  20039. return this._points;
  20040. },
  20041. set : function (k) {
  20042. y3U.y7P(null, k) ? this.setTo(k) : this.setTo();
  20043. }
  20044. }),
  20045. PIXI.Graphics = function () {
  20046. PIXI.DisplayObjectContainer.call(this),
  20047. this.renderable = !0,
  20048. this.fillAlpha = 1,
  20049. this.lineWidth = 0,
  20050. this.lineColor = 0,
  20051. this.graphicsData = [],
  20052. this.tint = 16777215,
  20053. this.blendMode = PIXI.blendModes.NORMAL,
  20054. this.currentPath = null,
  20055. this._webGL = [],
  20056. this.isMask = !1,
  20057. this.boundsPadding = 0,
  20058. this._localBounds = new PIXI.Rectangle(0, 0, 1, 1),
  20059. this.dirty = !0,
  20060. this.webGLDirty = !1,
  20061. this.cachedSpriteDirty = !1;
  20062. },
  20063. PIXI.Graphics.prototype = Object.create(PIXI.DisplayObjectContainer.prototype),
  20064. PIXI.Graphics.prototype.constructor = PIXI.Graphics,
  20065. Object.defineProperty(PIXI.Graphics.prototype, "cacheAsBitmap", {
  20066. get : function () {
  20067. return this._cacheAsBitmap;
  20068. },
  20069. set : function (k) {
  20070. this._cacheAsBitmap = k,
  20071. this._cacheAsBitmap ? this._generateCachedSprite() : (this.destroyCachedSprite(), this.dirty = !0);
  20072. }
  20073. }),
  20074. PIXI.Graphics.prototype.lineStyle = function (k, m, e) {
  20075. if (this.lineWidth = k || 0, this.lineColor = m || 0, this.lineAlpha = y3U.o7P(arguments.length, 3) ? 1 : e, this.currentPath) {
  20076. if (this.currentPath.shape.points.length)
  20077. return this.drawShape(new PIXI.Polygon(this.currentPath.shape.points.slice(-2))), this;
  20078. this.currentPath.lineWidth = this.lineWidth,
  20079. this.currentPath.lineColor = this.lineColor,
  20080. this.currentPath.lineAlpha = this.lineAlpha;
  20081. }
  20082. return this;
  20083. },
  20084. PIXI.Graphics.prototype.moveTo = function (k, m) {
  20085. return this.drawShape(new PIXI.Polygon([k, m])),
  20086. this;
  20087. },
  20088. PIXI.Graphics.prototype.lineTo = function (k, m) {
  20089. return this.currentPath.shape.points.push(k, m),
  20090. this.dirty = !0,
  20091. this;
  20092. },
  20093. PIXI.Graphics.prototype.quadraticCurveTo = function (k, m, e, o) {
  20094. this.currentPath ? y3U.x7P(0, this.currentPath.shape.points.length) && (this.currentPath.shape.points = [0, 0]) : this.moveTo(0, 0);
  20095. var n,
  20096. u,
  20097. q = 20,
  20098. f = this.currentPath.shape.points;
  20099. y3U.p7P(0, f.length) && this.moveTo(0, 0);
  20100. for (var j = f[y3U.q7P(f.length, 2)], U0 = f[y3U.b7P(f.length, 1)], k0 = 0, a0 = 1; y3U.j7P(q, a0); a0++)
  20101. k0 = y3U.d7P(a0, q), n = j + y3U.c7P((k - j), k0), u = U0 + y3U.s7P((m - U0), k0), f.push(n + y3U.Q7P((k + (e - k) * k0 - n), k0), u + y3U.a4P((m + (o - m) * k0 - u), k0));
  20102. return this.dirty = !0,
  20103. this;
  20104. },
  20105. PIXI.Graphics.prototype.bezierCurveTo = function (k, m, e, o, n, u) {
  20106. this.currentPath ? y3U.W4P(0, this.currentPath.shape.points.length) && (this.currentPath.shape.points = [0, 0]) : this.moveTo(0, 0);
  20107. for (var q, f, j, U0, k0, a0 = 20, T0 = this.currentPath.shape.points, G0 = T0[y3U.m4P(T0.length, 2)], W0 = T0[y3U.A4P(T0.length, 1)], N0 = 0, S0 = 1; y3U.w4P(a0, S0); S0++)
  20108. N0 = y3U.E4P(S0, a0), q = y3U.e4P(1, N0), f = y3U.g4P(q, q), j = y3U.r4P(f, q), U0 = y3U.i4P(N0, N0), k0 = y3U.u4P(U0, N0), T0.push(y3U.P4P(j, G0) + y3U.D4P(3, f, N0, k) + y3U.l4P(3, q, U0, e) + y3U.s4P(k0, n), y3U.Q4P(j, W0) + y3U.a3P(3, f, N0, m) + y3U.N3P(3, q, U0, o) + y3U.C3P(k0, u));
  20109. return this.dirty = !0,
  20110. this;
  20111. },
  20112. PIXI.Graphics.prototype.arcTo = function (k, m, e, o, n) {
  20113. this.currentPath ? y3U.v3P(0, this.currentPath.shape.points.length) && this.currentPath.shape.points.push(k, m) : this.moveTo(k, m);
  20114. var u = this.currentPath.shape.points,
  20115. q = u[y3U.t3P(u.length, 2)],
  20116. f = u[y3U.y3P(u.length, 1)],
  20117. j = y3U.o3P(f, m),
  20118. U0 = y3U.x3P(q, k),
  20119. k0 = y3U.p3P(o, m),
  20120. a0 = y3U.q3P(e, k),
  20121. T0 = Math.abs(y3U.b3P(j * a0, U0 * k0));
  20122. if (y3U.j3P(1e-8, T0) || y3U.d3P(0, n))
  20123. (y3U.c3P(u[u.length - 2], k) || y3U.s3P(u[u.length - 1], m)) && u.push(k, m);
  20124. else {
  20125. var G0 = y3U.Q3P(j, j) + y3U.a9P(U0, U0),
  20126. W0 = y3U.W9P(k0, k0) + y3U.m9P(a0, a0),
  20127. N0 = y3U.A9P(j, k0) + y3U.w9P(U0, a0),
  20128. S0 = y3U.E9P(n, Math.sqrt(G0), T0),
  20129. I0 = y3U.y9P(n, Math.sqrt(W0), T0),
  20130. m0 = y3U.F9P(S0, N0, G0),
  20131. A0 = y3U.i9P(I0, N0, W0),
  20132. L0 = y3U.q9P(S0, a0) + y3U.b9P(I0, U0),
  20133. z0 = y3U.j9P(S0, k0) + y3U.d9P(I0, j),
  20134. E0 = y3U.c9P(U0, (I0 + m0)),
  20135. v0 = y3U.s9P(j, (I0 + m0)),
  20136. J0 = y3U.Q9P(a0, (S0 + A0)),
  20137. t0 = y3U.a5P(k0, (S0 + A0)),
  20138. w0 = Math.atan2(y3U.W5P(v0, z0), y3U.m5P(E0, L0)),
  20139. g0 = Math.atan2(y3U.A5P(t0, z0), y3U.w5P(J0, L0));
  20140. this.arc(L0 + k, z0 + m, n, w0, g0, y3U.E5P(U0 * k0, a0 * j));
  20141. }
  20142. return this.dirty = !0,
  20143. this;
  20144. },
  20145. PIXI.Graphics.prototype.arc = function (k, m, e, o, n, u) {
  20146. var q,
  20147. f = k + y3U.e5P(Math.cos(o), e),
  20148. j = m + y3U.g5P(Math.sin(o), e);
  20149. if (this.currentPath ? (q = this.currentPath.shape.points, y3U.r5P(0, q.length) ? q.push(f, j) : (y3U.i5P(q[q.length - 2], f) || y3U.u5P(q[q.length - 1], j)) && q.push(f, j)) : (this.moveTo(f, j), q = this.currentPath.shape.points), y3U.P5P(o, n))
  20150. return this;
  20151. !u && y3U.D5P(o, n) ? n += y3U.Z5P(2, Math.PI) : u && y3U.R5P(n, o) && (o += y3U.O5P(2, Math.PI));
  20152. var U0 = u ? -1 * (y3U.V5P(o, n)) : y3U.k2P(n, o),
  20153. k0 = y3U.G2P(Math.abs(U0), (2 * Math.PI), 40);
  20154. if (y3U.m2P(0, U0))
  20155. return this;
  20156. for (var a0 = y3U.A2P(U0, (2 * k0)), T0 = y3U.w2P(2, a0), G0 = Math.cos(a0), W0 = Math.sin(a0), N0 = y3U.E2P(k0, 1), S0 = y3U.e2P(N0, 1, N0), I0 = 0; y3U.o2P(N0, I0); I0++) {
  20157. var m0 = I0 + y3U.x2P(S0, I0),
  20158. A0 = a0 + o + y3U.p2P(T0, m0),
  20159. L0 = Math.cos(A0),
  20160. z0 = -Math.sin(A0);
  20161. q.push(y3U.q2P((G0 * L0 + W0 * z0), e) + k, (G0 * -z0 + W0 * L0) * e + m);
  20162. }
  20163. return this.dirty = !0,
  20164. this;
  20165. },
  20166. PIXI.Graphics.prototype.beginFill = function (k, m) {
  20167. return this.filling = !0,
  20168. this.fillColor = k || 0,
  20169. this.fillAlpha = void 0 === m ? 1 : m,
  20170. this.currentPath && y3U.b2P(this.currentPath.shape.points.length, 2) && (this.currentPath.fill = this.filling, this.currentPath.fillColor = this.fillColor, this.currentPath.fillAlpha = this.fillAlpha),
  20171. this;
  20172. },
  20173. PIXI.Graphics.prototype.endFill = function () {
  20174. return this.filling = !1,
  20175. this.fillColor = null,
  20176. this.fillAlpha = 1,
  20177. this;
  20178. },
  20179. PIXI.Graphics.prototype.drawRect = function (k, m, e, o) {
  20180. return this.drawShape(new PIXI.Rectangle(k, m, e, o)),
  20181. this;
  20182. },
  20183. PIXI.Graphics.prototype.drawRoundedRect = function (k, m, e, o, n) {
  20184. return this.drawShape(new PIXI.RoundedRectangle(k, m, e, o, n)),
  20185. this;
  20186. },
  20187. PIXI.Graphics.prototype.drawCircle = function (k, m, e) {
  20188. return this.drawShape(new PIXI.Circle(k, m, e)),
  20189. this;
  20190. },
  20191. PIXI.Graphics.prototype.drawEllipse = function (k, m, e, o) {
  20192. return this.drawShape(new PIXI.Ellipse(k, m, e, o)),
  20193. this;
  20194. },
  20195. PIXI.Graphics.prototype.drawPolygon = function (k) {
  20196. return y3U.j2P(k, Array) || (k = Array.prototype.slice.call(arguments)),
  20197. this.drawShape(new PIXI.Polygon(k)),
  20198. this;
  20199. },
  20200. PIXI.Graphics.prototype.clear = function () {
  20201. return this.lineWidth = 0,
  20202. this.filling = !1,
  20203. this.dirty = !0,
  20204. this.clearDirty = !0,
  20205. this.graphicsData = [],
  20206. this;
  20207. },
  20208. PIXI.Graphics.prototype.generateTexture = function (k, m) {
  20209. var e = function () {
  20210. k = k || 1;
  20211. };
  20212. e();
  20213. var o = this.getBounds(),
  20214. n = new PIXI.CanvasBuffer(y3U.d2P(o.width, k), y3U.c2P(o.height, k)),
  20215. u = PIXI.Texture.fromCanvas(n.canvas, m);
  20216. return u.baseTexture.resolution = k,
  20217. n.context.scale(k, k),
  20218. n.context.translate(-o.x, -o.y),
  20219. PIXI.CanvasGraphics.renderGraphics(this, n.context),
  20220. u;
  20221. },
  20222. PIXI.Graphics.prototype._renderWebGL = function (k) {
  20223. if (this.visible !== !1 && y3U.s2P(0, this.alpha) && this.isMask !== !0) {
  20224. if (this._cacheAsBitmap)
  20225. return (this.dirty || this.cachedSpriteDirty) && (this._generateCachedSprite(), this.updateCachedSpriteTexture(), this.cachedSpriteDirty = !1, this.dirty = !1), this._cachedSprite.worldAlpha = this.worldAlpha, void PIXI.Sprite.prototype._renderWebGL.call(this._cachedSprite, k);
  20226. if (k.spriteBatch.stop(), k.blendModeManager.setBlendMode(this.blendMode), this._mask && k.maskManager.pushMask(this._mask, k), this._filters && k.filterManager.pushFilter(this._filterBlock), y3U.Q2P(this.blendMode, k.spriteBatch.currentBlendMode)) {
  20227. k.spriteBatch.currentBlendMode = this.blendMode;
  20228. var m = PIXI.blendModesWebGL[k.spriteBatch.currentBlendMode];
  20229. k.spriteBatch.gl.blendFunc(m[0], m[1]);
  20230. }
  20231. if (this.webGLDirty && (this.dirty = !0, this.webGLDirty = !1), PIXI.WebGLGraphics.renderGraphics(this, k), this.children.length) {
  20232. k.spriteBatch.start();
  20233. for (var e = 0, o = this.children.length; y3U.a1P(o, e); e++)
  20234. this.children[e]._renderWebGL(k);
  20235. k.spriteBatch.stop();
  20236. }
  20237. this._filters && k.filterManager.popFilter(),
  20238. this._mask && k.maskManager.popMask(this.mask, k),
  20239. k.drawCount++,
  20240. k.spriteBatch.start();
  20241. }
  20242. },
  20243. PIXI.Graphics.prototype._renderCanvas = function (k) {
  20244. if (this.visible !== !1 && y3U.W1P(0, this.alpha) && this.isMask !== !0) {
  20245. if (this._cacheAsBitmap)
  20246. return (this.dirty || this.cachedSpriteDirty) && (this._generateCachedSprite(), this.updateCachedSpriteTexture(), this.cachedSpriteDirty = !1, this.dirty = !1), this._cachedSprite.alpha = this.alpha, void PIXI.Sprite.prototype._renderCanvas.call(this._cachedSprite, k);
  20247. var m = k.context,
  20248. e = this.worldTransform;
  20249. y3U.m1P(this.blendMode, k.currentBlendMode) && (k.currentBlendMode = this.blendMode, m.globalCompositeOperation = PIXI.blendModesCanvas[k.currentBlendMode]),
  20250. this._mask && k.maskManager.pushMask(this._mask, k);
  20251. var o = k.resolution;
  20252. m.setTransform(y3U.A1P(e.a, o), y3U.w1P(e.b, o), y3U.E1P(e.c, o), y3U.e1P(e.d, o), y3U.g1P(e.tx, o), y3U.r1P(e.ty, o)),
  20253. PIXI.CanvasGraphics.renderGraphics(this, m);
  20254. for (var n = 0, u = this.children.length; y3U.i1P(u, n); n++)
  20255. this.children[n]._renderCanvas(k);
  20256. this._mask && k.maskManager.popMask(k);
  20257. }
  20258. },
  20259. PIXI.Graphics.prototype.getBounds = function (k) {
  20260. if (this.isMask)
  20261. return PIXI.EmptyRectangle;
  20262. this.dirty && (this.updateLocalBounds(), this.webGLDirty = !0, this.cachedSpriteDirty = !0, this.dirty = !1);
  20263. var m = this._localBounds,
  20264. e = m.x,
  20265. o = m.width + m.x,
  20266. n = m.y,
  20267. u = m.height + m.y,
  20268. q = k || this.worldTransform,
  20269. f = q.a,
  20270. j = q.b,
  20271. U0 = q.c,
  20272. k0 = q.d,
  20273. a0 = q.tx,
  20274. T0 = q.ty,
  20275. G0 = y3U.u1P(f, o) + y3U.P1P(U0, u) + a0,
  20276. W0 = y3U.D1P(k0, u) + y3U.Z1P(j, o) + T0,
  20277. N0 = y3U.R1P(f, e) + y3U.O1P(U0, u) + a0,
  20278. S0 = y3U.V1P(k0, u) + y3U.k6P(j, e) + T0,
  20279. I0 = y3U.G6P(f, e) + y3U.N6P(U0, n) + a0,
  20280. m0 = y3U.L6P(k0, n) + y3U.z6P(j, e) + T0,
  20281. A0 = y3U.J6P(f, o) + y3U.H6P(U0, n) + a0,
  20282. L0 = y3U.h6P(k0, n) + y3U.F6P(j, o) + T0,
  20283. z0 = G0,
  20284. E0 = W0,
  20285. v0 = G0,
  20286. J0 = W0;
  20287. return v0 = y3U.M6P(v0, N0) ? N0 : v0,
  20288. v0 = y3U.n6P(v0, I0) ? I0 : v0,
  20289. v0 = y3U.f6P(v0, A0) ? A0 : v0,
  20290. J0 = y3U.K6P(J0, S0) ? S0 : J0,
  20291. J0 = y3U.B6P(J0, m0) ? m0 : J0,
  20292. J0 = y3U.l6P(J0, L0) ? L0 : J0,
  20293. z0 = y3U.X6P(N0, z0) ? N0 : z0,
  20294. z0 = y3U.Y6P(I0, z0) ? I0 : z0,
  20295. z0 = y3U.U8P(A0, z0) ? A0 : z0,
  20296. E0 = y3U.T8P(S0, E0) ? S0 : E0,
  20297. E0 = y3U.S8P(m0, E0) ? m0 : E0,
  20298. E0 = y3U.I8P(L0, E0) ? L0 : E0,
  20299. this._bounds.x = v0,
  20300. this._bounds.width = y3U.C8P(z0, v0),
  20301. this._bounds.y = J0,
  20302. this._bounds.height = y3U.v8P(E0, J0),
  20303. this._bounds;
  20304. },
  20305. PIXI.Graphics.prototype.updateLocalBounds = function () {
  20306. var m = y3U.t8P(1, 0),
  20307. e = -1 / 0,
  20308. o = y3U.y8P(1, 0),
  20309. n = -1 / 0;
  20310. if (this.graphicsData.length)
  20311. for (var u, q, f, j, U0, k0, a0 = 0; y3U.o8P(a0, this.graphicsData.length); a0++) {
  20312. var T0 = this.graphicsData[a0],
  20313. G0 = T0.type,
  20314. W0 = T0.lineWidth;
  20315. if (u = T0.shape, y3U.x8P(G0, PIXI.Graphics.RECT) || y3U.p8P(G0, PIXI.Graphics.RREC))
  20316. f = y3U.q8P(u.x, W0 / 2), j = y3U.b8P(u.y, W0 / 2), U0 = u.width + W0, k0 = u.height + W0, m = y3U.j8P(m, f) ? f : m, e = y3U.d8P(f + U0, e) ? f + U0 : e, o = y3U.c8P(o, j) ? j : o, n = y3U.s8P(j + k0, n) ? j + k0 : n;
  20317. else if (y3U.Q8P(G0, PIXI.Graphics.CIRC))
  20318. f = u.x, j = u.y, U0 = u.radius + y3U.a0u(W0, 2), k0 = u.radius + y3U.W0u(W0, 2), m = y3U.m0u(m, f - U0) ? y3U.A0u(f, U0) : m, e = y3U.w0u(f + U0, e) ? f + U0 : e, o = y3U.E0u(o, j - k0) ? y3U.e0u(j, k0) : o, n = y3U.g0u(j + k0, n) ? j + k0 : n;
  20319. else if (y3U.r0u(G0, PIXI.Graphics.ELIP))
  20320. f = u.x, j = u.y, U0 = u.width + y3U.i0u(W0, 2), k0 = u.height + y3U.u0u(W0, 2), m = y3U.P0u(m, f - U0) ? y3U.D0u(f, U0) : m, e = y3U.Z0u(f + U0, e) ? f + U0 : e, o = y3U.R0u(o, j - k0) ? y3U.O0u(j, k0) : o, n = y3U.V0u(j + k0, n) ? j + k0 : n;
  20321. else {
  20322. var N0 = function (k) {
  20323. q = k.points;
  20324. };
  20325. N0(u);
  20326. for (var S0 = 0; y3U.k7u(S0, q.length); S0 += 2)
  20327. f = q[S0], j = q[S0 + 1], m = y3U.G7u(m, f - W0) ? y3U.N7u(f, W0) : m, e = y3U.L7u(f + W0, e) ? f + W0 : e, o = y3U.z7u(o, j - W0) ? y3U.J7u(j, W0) : o, n = y3U.H7u(j + W0, n) ? j + W0 : n;
  20328. }
  20329. }
  20330. else
  20331. m = 0, e = 0, o = 0, n = 0;
  20332. var I0 = this.boundsPadding;
  20333. this._localBounds.x = y3U.h7u(m, I0),
  20334. this._localBounds.width = y3U.F7u(e, m, 2 * I0),
  20335. this._localBounds.y = y3U.i7u(o, I0),
  20336. this._localBounds.height = y3U.u7u(n, o, 2 * I0);
  20337. },
  20338. PIXI.Graphics.prototype._generateCachedSprite = function () {
  20339. var k = this.getLocalBounds();
  20340. if (this._cachedSprite)
  20341. this._cachedSprite.buffer.resize(k.width, k.height);
  20342. else {
  20343. var m = new PIXI.CanvasBuffer(k.width, k.height),
  20344. e = PIXI.Texture.fromCanvas(m.canvas);
  20345. this._cachedSprite = new PIXI.Sprite(e),
  20346. this._cachedSprite.buffer = m,
  20347. this._cachedSprite.worldTransform = this.worldTransform;
  20348. }
  20349. this._cachedSprite.anchor.x = - (y3U.b7u(k.x, k.width)),
  20350. this._cachedSprite.anchor.y = - (y3U.j7u(k.y, k.height)),
  20351. this._cachedSprite.buffer.context.translate(-k.x, -k.y),
  20352. this.worldAlpha = 1,
  20353. PIXI.CanvasGraphics.renderGraphics(this, this._cachedSprite.buffer.context),
  20354. this._cachedSprite.alpha = this.alpha;
  20355. },
  20356. PIXI.Graphics.prototype.updateCachedSpriteTexture = function () {
  20357. var k = this._cachedSprite,
  20358. m = k.texture,
  20359. e = k.buffer.canvas;
  20360. m.baseTexture.width = e.width,
  20361. m.baseTexture.height = e.height,
  20362. m.crop.width = m.frame.width = e.width,
  20363. m.crop.height = m.frame.height = e.height,
  20364. k._width = e.width,
  20365. k._height = e.height,
  20366. m.baseTexture.dirty();
  20367. },
  20368. PIXI.Graphics.prototype.destroyCachedSprite = function () {
  20369. this._cachedSprite.texture.destroy(!0),
  20370. this._cachedSprite = null;
  20371. },
  20372. PIXI.Graphics.prototype.drawShape = function (k) {
  20373. this.currentPath && y3U.d7u(this.currentPath.shape.points.length, 2) && this.graphicsData.pop(),
  20374. this.currentPath = null;
  20375. var m = new PIXI.GraphicsData(this.lineWidth, this.lineColor, this.lineAlpha, this.fillColor, this.fillAlpha, this.filling, k);
  20376. return this.graphicsData.push(m),
  20377. y3U.c7u(m.type, PIXI.Graphics.POLY) && (m.shape.closed = this.filling, this.currentPath = m),
  20378. this.dirty = !0,
  20379. m;
  20380. },
  20381. PIXI.GraphicsData = function (k, m, e, o, n, u, q) {
  20382. this.lineWidth = k,
  20383. this.lineColor = m,
  20384. this.lineAlpha = e,
  20385. this._lineTint = m,
  20386. this.fillColor = o,
  20387. this.fillAlpha = n,
  20388. this._fillTint = o,
  20389. this.fill = u,
  20390. this.shape = q,
  20391. this.type = q.type;
  20392. },
  20393. PIXI.Graphics.POLY = 0,
  20394. PIXI.Graphics.RECT = 1,
  20395. PIXI.Graphics.CIRC = 2,
  20396. PIXI.Graphics.ELIP = 3,
  20397. PIXI.Graphics.RREC = 4,
  20398. PIXI.Polygon.prototype.type = PIXI.Graphics.POLY,
  20399. PIXI.Rectangle.prototype.type = PIXI.Graphics.RECT,
  20400. PIXI.Circle.prototype.type = PIXI.Graphics.CIRC,
  20401. PIXI.Ellipse.prototype.type = PIXI.Graphics.ELIP,
  20402. PIXI.RoundedRectangle.prototype.type = PIXI.Graphics.RREC,
  20403. i.Camera = function (k, m, e, o, n, u) {
  20404. this.game = k,
  20405. this.world = k.world,
  20406. this.id = 0,
  20407. this.view = new i.Rectangle(e, o, n, u),
  20408. this.screenView = new i.Rectangle(e, o, n, u),
  20409. this.bounds = new i.Rectangle(e, o, n, u),
  20410. this.deadzone = null,
  20411. this.visible = !0,
  20412. this.roundPx = !0,
  20413. this.atLimit = {
  20414. x : !1,
  20415. y : !1
  20416. },
  20417. this.target = null,
  20418. this.displayObject = null,
  20419. this.scale = null,
  20420. this.totalInView = 0,
  20421. this._targetPosition = new i.Point,
  20422. this._edge = 0,
  20423. this._position = new i.Point;
  20424. },
  20425. i.Camera.FOLLOW_LOCKON = 0,
  20426. i.Camera.FOLLOW_PLATFORMER = 1,
  20427. i.Camera.FOLLOW_TOPDOWN = 2,
  20428. i.Camera.FOLLOW_TOPDOWN_TIGHT = 3,
  20429. i.Camera.prototype = {
  20430. preUpdate : function () {
  20431. this.totalInView = 0;
  20432. },
  20433. follow : function (k, m) {
  20434. "undefined" == typeof m && (m = i.Camera.FOLLOW_LOCKON),
  20435. this.target = k;
  20436. var e;
  20437. switch (m) {
  20438. case i.Camera.FOLLOW_PLATFORMER:
  20439. var o = y3U.s7u(this.width, 8),
  20440. n = y3U.Q7u(this.height, 3);
  20441. this.deadzone = new i.Rectangle(y3U.a4u((this.width - o), 2), y3U.W4u((this.height - n) / 2, .25 * n), o, n);
  20442. break;
  20443. case i.Camera.FOLLOW_TOPDOWN:
  20444. e = y3U.m4u(Math.max(this.width, this.height), 4),
  20445. this.deadzone = new i.Rectangle(y3U.A4u((this.width - e), 2), y3U.w4u((this.height - e), 2), e, e);
  20446. break;
  20447. case i.Camera.FOLLOW_TOPDOWN_TIGHT:
  20448. e = y3U.E4u(Math.max(this.width, this.height), 8),
  20449. this.deadzone = new i.Rectangle(y3U.e4u((this.width - e), 2), y3U.g4u((this.height - e), 2), e, e);
  20450. break;
  20451. case i.Camera.FOLLOW_LOCKON:
  20452. this.deadzone = null;
  20453. break;
  20454. default:
  20455. this.deadzone = null;
  20456. }
  20457. },
  20458. unfollow : function () {
  20459. this.target = null;
  20460. },
  20461. focusOn : function (k) {
  20462. this.setPosition(Math.round(y3U.r4u(k.x, this.view.halfWidth)), Math.round(y3U.i4u(k.y, this.view.halfHeight)));
  20463. },
  20464. focusOnXY : function (k, m) {
  20465. this.setPosition(Math.round(y3U.u4u(k, this.view.halfWidth)), Math.round(y3U.P4u(m, this.view.halfHeight)));
  20466. },
  20467. update : function () {
  20468. this.target && this.updateTarget(),
  20469. this.bounds && this.checkBounds(),
  20470. this.roundPx && this.view.floor(),
  20471. this.displayObject.position.x = -this.view.x,
  20472. this.displayObject.position.y = -this.view.y;
  20473. },
  20474. updateTarget : function () {
  20475. this._targetPosition.copyFrom(this.target),
  20476. this.target.parent && this._targetPosition.multiply(this.target.parent.worldTransform.a, this.target.parent.worldTransform.d),
  20477. this.deadzone ? (this._edge = y3U.D4u(this._targetPosition.x, this.view.x), y3U.Z4u(this._edge, this.deadzone.left) ? this.view.x = y3U.R4u(this._targetPosition.x, this.deadzone.left) : y3U.O4u(this._edge, this.deadzone.right) && (this.view.x = y3U.V4u(this._targetPosition.x, this.deadzone.right)), this._edge = y3U.k3u(this._targetPosition.y, this.view.y), y3U.G3u(this._edge, this.deadzone.top) ? this.view.y = y3U.N3u(this._targetPosition.y, this.deadzone.top) : y3U.L3u(this._edge, this.deadzone.bottom) && (this.view.y = y3U.z3u(this._targetPosition.y, this.deadzone.bottom))) : (this.view.x = y3U.J3u(this._targetPosition.x, this.view.halfWidth), this.view.y = y3U.H3u(this._targetPosition.y, this.view.halfHeight));
  20478. },
  20479. setBoundsToWorld : function () {
  20480. this.bounds && this.bounds.setTo(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height);
  20481. },
  20482. checkBounds : function () {
  20483. this.atLimit.x = !1,
  20484. this.atLimit.y = !1,
  20485. y3U.h3u(this.view.x, this.bounds.x) && (this.atLimit.x = !0, this.view.x = this.bounds.x),
  20486. y3U.F3u(this.view.right, this.bounds.right) && (this.atLimit.x = !0, this.view.x = y3U.M3u(this.bounds.right, this.width)),
  20487. y3U.n3u(this.view.y, this.bounds.top) && (this.atLimit.y = !0, this.view.y = this.bounds.top),
  20488. y3U.f3u(this.view.bottom, this.bounds.bottom) && (this.atLimit.y = !0, this.view.y = y3U.K3u(this.bounds.bottom, this.height));
  20489. },
  20490. setPosition : function (k, m) {
  20491. this.view.x = k,
  20492. this.view.y = m,
  20493. this.bounds && this.checkBounds();
  20494. },
  20495. setSize : function (k, m) {
  20496. this.view.width = k,
  20497. this.view.height = m;
  20498. },
  20499. reset : function () {
  20500. this.target = null,
  20501. this.view.x = 0,
  20502. this.view.y = 0;
  20503. }
  20504. },
  20505. i.Camera.prototype.constructor = i.Camera,
  20506. Object.defineProperty(i.Camera.prototype, "x", {
  20507. get : function () {
  20508. return this.view.x;
  20509. },
  20510. set : function (k) {
  20511. this.view.x = k,
  20512. this.bounds && this.checkBounds();
  20513. }
  20514. }),
  20515. Object.defineProperty(i.Camera.prototype, "y", {
  20516. get : function () {
  20517. return this.view.y;
  20518. },
  20519. set : function (k) {
  20520. this.view.y = k,
  20521. this.bounds && this.checkBounds();
  20522. }
  20523. }),
  20524. Object.defineProperty(i.Camera.prototype, "position", {
  20525. get : function () {
  20526. return this._position.set(this.view.centerX, this.view.centerY),
  20527. this._position;
  20528. },
  20529. set : function (k) {
  20530. "undefined" != typeof k.x && (this.view.x = k.x),
  20531. "undefined" != typeof k.y && (this.view.y = k.y),
  20532. this.bounds && this.checkBounds();
  20533. }
  20534. }),
  20535. Object.defineProperty(i.Camera.prototype, "width", {
  20536. get : function () {
  20537. return this.view.width;
  20538. },
  20539. set : function (k) {
  20540. this.view.width = k;
  20541. }
  20542. }),
  20543. Object.defineProperty(i.Camera.prototype, "height", {
  20544. get : function () {
  20545. return this.view.height;
  20546. },
  20547. set : function (k) {
  20548. this.view.height = k;
  20549. }
  20550. }),
  20551. i.State = function () {
  20552. this.game = null,
  20553. this.add = null,
  20554. this.make = null,
  20555. this.camera = null,
  20556. this.cache = null,
  20557. this.input = null,
  20558. this.load = null,
  20559. this.math = null,
  20560. this.sound = null,
  20561. this.scale = null,
  20562. this.stage = null,
  20563. this.time = null,
  20564. this.tweens = null,
  20565. this.world = null,
  20566. this.particles = null,
  20567. this.physics = null,
  20568. this.rnd = null;
  20569. },
  20570. i.State.prototype = {
  20571. init : function () {},
  20572. preload : function () {},
  20573. loadUpdate : function () {},
  20574. loadRender : function () {},
  20575. create : function () {},
  20576. update : function () {},
  20577. render : function () {},
  20578. resize : function () {},
  20579. paused : function () {},
  20580. pauseUpdate : function () {},
  20581. shutdown : function () {}
  20582. },
  20583. i.State.prototype.constructor = i.State,
  20584. i.StateManager = function (k, m) {
  20585. this.game = k,
  20586. this.states = {},
  20587. this._pendingState = null,
  20588. "undefined" != typeof m && y3U.B3u(null, m) && (this._pendingState = m),
  20589. this._clearWorld = !1,
  20590. this._clearCache = !1,
  20591. this._created = !1,
  20592. this._args = [],
  20593. this.current = "",
  20594. this.onInitCallback = null,
  20595. this.onPreloadCallback = null,
  20596. this.onCreateCallback = null,
  20597. this.onUpdateCallback = null,
  20598. this.onRenderCallback = null,
  20599. this.onResizeCallback = null,
  20600. this.onPreRenderCallback = null,
  20601. this.onLoadUpdateCallback = null,
  20602. this.onLoadRenderCallback = null,
  20603. this.onPausedCallback = null,
  20604. this.onResumedCallback = null,
  20605. this.onPauseUpdateCallback = null,
  20606. this.onShutDownCallback = null;
  20607. },
  20608. i.StateManager.prototype = {
  20609. boot : function () {
  20610. this.game.onPause.add(this.pause, this),
  20611. this.game.onResume.add(this.resume, this),
  20612. this.game.load.onLoadComplete.add(this.loadComplete, this),
  20613. y3U.l3u(null, this._pendingState) && "string" != typeof this._pendingState && this.add("default", this._pendingState, !0);
  20614. },
  20615. add : function (k, m, e) {
  20616. "undefined" == typeof e && (e = !1);
  20617. var o;
  20618. return y3U.X3u(m, i.State) ? o = m : "object" == typeof m ? (o = m, o.game = this.game) : "function" == typeof m && (o = new m(this.game)),
  20619. this.states[k] = o,
  20620. e && (this.game.isBooted ? this.start(k) : this._pendingState = k),
  20621. o;
  20622. },
  20623. remove : function (k) {
  20624. y3U.Y3u(this.current, k) && (this.callbackContext = null, this.onInitCallback = null, this.onShutDownCallback = null, this.onPreloadCallback = null, this.onLoadRenderCallback = null, this.onLoadUpdateCallback = null, this.onCreateCallback = null, this.onUpdateCallback = null, this.onPreRenderCallback = null, this.onRenderCallback = null, this.onResizeCallback = null, this.onPausedCallback = null, this.onResumedCallback = null, this.onPauseUpdateCallback = null),
  20625. delete this.states[k];
  20626. },
  20627. start : function (k, m, e) {
  20628. "undefined" == typeof m && (m = !0),
  20629. "undefined" == typeof e && (e = !1),
  20630. this.checkState(k) && (this._pendingState = k, this._clearWorld = m, this._clearCache = e, y3U.U9u(arguments.length, 3) && (this._args = Array.prototype.splice.call(arguments, 3)));
  20631. },
  20632. restart : function (k, m) {
  20633. "undefined" == typeof k && (k = !0),
  20634. "undefined" == typeof m && (m = !1),
  20635. this._pendingState = this.current,
  20636. this._clearWorld = k,
  20637. this._clearCache = m,
  20638. y3U.T9u(arguments.length, 2) && (this._args = Array.prototype.splice.call(arguments, 2));
  20639. },
  20640. dummy : function () {},
  20641. preUpdate : function () {
  20642. if (this._pendingState && this.game.isBooted) {
  20643. if (this.clearCurrentState(), this.setCurrentState(this._pendingState), y3U.S9u(this.current, this._pendingState))
  20644. return;
  20645. this._pendingState = null,
  20646. this.onPreloadCallback ? (this.game.load.reset(), this.onPreloadCallback.call(this.callbackContext, this.game), y3U.I9u(0, this.game.load.totalQueuedFiles()) && y3U.C9u(0, this.game.load.totalQueuedPacks()) ? this.loadComplete() : this.game.load.start()) : this.loadComplete();
  20647. }
  20648. },
  20649. clearCurrentState : function () {
  20650. this.current && (this.onShutDownCallback && this.onShutDownCallback.call(this.callbackContext, this.game), this.game.tweens.removeAll(), this.game.camera.reset(), this.game.input.reset(!0), this.game.physics.clear(), this.game.time.removeAll(), this.game.scale.reset(this._clearWorld), this.game.debug && this.game.debug.reset(), this._clearWorld && (this.game.world.shutdown(), this._clearCache === !0 && this.game.cache.destroy()));
  20651. },
  20652. checkState : function (k) {
  20653. if (this.states[k]) {
  20654. var m = !1;
  20655. return (this.states[k].preload || this.states[k].create || this.states[k].update || this.states[k].render) && (m = !0),
  20656. m === !1 ? (console.warn("Invalid Phaser State object given. Must contain at least a one of the required functions: preload, create, update or render"), !1) : !0;
  20657. }
  20658. return console.warn("Phaser.StateManager - No state found with the key: " + k),
  20659. !1;
  20660. },
  20661. link : function (k) {
  20662. this.states[k].game = this.game,
  20663. this.states[k].add = this.game.add,
  20664. this.states[k].make = this.game.make,
  20665. this.states[k].camera = this.game.camera,
  20666. this.states[k].cache = this.game.cache,
  20667. this.states[k].input = this.game.input,
  20668. this.states[k].load = this.game.load,
  20669. this.states[k].math = this.game.math,
  20670. this.states[k].sound = this.game.sound,
  20671. this.states[k].scale = this.game.scale,
  20672. this.states[k].state = this,
  20673. this.states[k].stage = this.game.stage,
  20674. this.states[k].time = this.game.time,
  20675. this.states[k].tweens = this.game.tweens,
  20676. this.states[k].world = this.game.world,
  20677. this.states[k].particles = this.game.particles,
  20678. this.states[k].rnd = this.game.rnd,
  20679. this.states[k].physics = this.game.physics;
  20680. },
  20681. unlink : function (k) {
  20682. this.states[k] && (this.states[k].game = null, this.states[k].add = null, this.states[k].make = null, this.states[k].camera = null, this.states[k].cache = null, this.states[k].input = null, this.states[k].load = null, this.states[k].math = null, this.states[k].sound = null, this.states[k].scale = null, this.states[k].state = null, this.states[k].stage = null, this.states[k].time = null, this.states[k].tweens = null, this.states[k].world = null, this.states[k].particles = null, this.states[k].rnd = null, this.states[k].physics = null);
  20683. },
  20684. setCurrentState : function (k) {
  20685. this.callbackContext = this.states[k],
  20686. this.link(k),
  20687. this.onInitCallback = this.states[k].init || this.dummy,
  20688. this.onPreloadCallback = this.states[k].preload || null,
  20689. this.onLoadRenderCallback = this.states[k].loadRender || null,
  20690. this.onLoadUpdateCallback = this.states[k].loadUpdate || null,
  20691. this.onCreateCallback = this.states[k].create || null,
  20692. this.onUpdateCallback = this.states[k].update || null,
  20693. this.onPreRenderCallback = this.states[k].preRender || null,
  20694. this.onRenderCallback = this.states[k].render || null,
  20695. this.onResizeCallback = this.states[k].resize || null,
  20696. this.onPausedCallback = this.states[k].paused || null,
  20697. this.onResumedCallback = this.states[k].resumed || null,
  20698. this.onPauseUpdateCallback = this.states[k].pauseUpdate || null,
  20699. this.onShutDownCallback = this.states[k].shutdown || this.dummy,
  20700. this.current = k,
  20701. this._created = !1,
  20702. this.onInitCallback.apply(this.callbackContext, this._args),
  20703. y3U.v9u(k, this._pendingState) && (this._args = []);
  20704. },
  20705. getCurrentState : function () {
  20706. return this.states[this.current];
  20707. },
  20708. loadComplete : function () {
  20709. this._created === !1 && this.onCreateCallback ? (this._created = !0, this.onCreateCallback.call(this.callbackContext, this.game)) : this._created = !0;
  20710. },
  20711. pause : function () {
  20712. this._created && this.onPausedCallback && this.onPausedCallback.call(this.callbackContext, this.game);
  20713. },
  20714. resume : function () {
  20715. this._created && this.onResumedCallback && this.onResumedCallback.call(this.callbackContext, this.game);
  20716. },
  20717. update : function () {
  20718. this._created && this.onUpdateCallback ? this.onUpdateCallback.call(this.callbackContext, this.game) : this.onLoadUpdateCallback && this.onLoadUpdateCallback.call(this.callbackContext, this.game);
  20719. },
  20720. pauseUpdate : function () {
  20721. this._created && this.onPauseUpdateCallback ? this.onPauseUpdateCallback.call(this.callbackContext, this.game) : this.onLoadUpdateCallback && this.onLoadUpdateCallback.call(this.callbackContext, this.game);
  20722. },
  20723. preRender : function (k) {
  20724. this.onPreRenderCallback && this.onPreRenderCallback.call(this.callbackContext, this.game, k);
  20725. },
  20726. resize : function (k, m) {
  20727. this.onResizeCallback && this.onResizeCallback.call(this.callbackContext, k, m);
  20728. },
  20729. render : function () {
  20730. this._created && this.onRenderCallback ? (y3U.t9u(this.game.renderType, i.CANVAS) && (this.game.context.save(), this.game.context.setTransform(1, 0, 0, 1, 0, 0)), this.onRenderCallback.call(this.callbackContext, this.game), y3U.y9u(this.game.renderType, i.CANVAS) && this.game.context.restore()) : this.onLoadRenderCallback && this.onLoadRenderCallback.call(this.callbackContext, this.game);
  20731. },
  20732. destroy : function () {
  20733. this.clearCurrentState(),
  20734. this.callbackContext = null,
  20735. this.onInitCallback = null,
  20736. this.onShutDownCallback = null,
  20737. this.onPreloadCallback = null,
  20738. this.onLoadRenderCallback = null,
  20739. this.onLoadUpdateCallback = null,
  20740. this.onCreateCallback = null,
  20741. this.onUpdateCallback = null,
  20742. this.onRenderCallback = null,
  20743. this.onPausedCallback = null,
  20744. this.onResumedCallback = null,
  20745. this.onPauseUpdateCallback = null,
  20746. this.game = null,
  20747. this.states = {},
  20748. this._pendingState = null;
  20749. }
  20750. },
  20751. i.StateManager.prototype.constructor = i.StateManager,
  20752. i.Signal = function () {},
  20753. i.Signal.prototype = {
  20754. _bindings : null,
  20755. _prevParams : null,
  20756. memorize : !1,
  20757. _shouldPropagate : !0,
  20758. active : !0,
  20759. _boundDispatch : !0,
  20760. validateListener : function (k, m) {
  20761. if ("function" != typeof k)
  20762. throw new Error("Phaser.Signal: listener is a required param of {fn}() and should be a Function.".replace("{fn}", m));
  20763. },
  20764. _registerListener : function (k, m, e, o) {
  20765. var n,
  20766. u = this._indexOfListener(k, e);
  20767. if (-1 !== u) {
  20768. if (n = this._bindings[u], y3U.o9u(n.isOnce(), m))
  20769. throw new Error("You cannot add" + (m ? "" : "Once") + "() then add" + (m ? "Once" : "") + "() the same listener without removing the relationship first.");
  20770. } else
  20771. n = new i.SignalBinding(this, k, m, e, o), this._addBinding(n);
  20772. return this.memorize && this._prevParams && n.execute(this._prevParams),
  20773. n;
  20774. },
  20775. _addBinding : function (k) {
  20776. this._bindings || (this._bindings = []);
  20777. var m = this._bindings.length;
  20778. do
  20779. m--;
  20780. while (this._bindings[m] && y3U.x9u(k._priority, this._bindings[m]._priority));
  20781. this._bindings.splice(m + 1, 0, k);
  20782. },
  20783. _indexOfListener : function (k, m) {
  20784. if (!this._bindings)
  20785. return -1;
  20786. "undefined" == typeof m && (m = null);
  20787. for (var e, o = this._bindings.length; o--; )
  20788. if (e = this._bindings[o], y3U.p9u(e._listener, k) && y3U.q9u(e.context, m))
  20789. return o;
  20790. return -1;
  20791. },
  20792. has : function (k, m) {
  20793. return -1 !== this._indexOfListener(k, m);
  20794. },
  20795. add : function (k, m, e) {
  20796. return this.validateListener(k, "add"),
  20797. this._registerListener(k, !1, m, e);
  20798. },
  20799. addOnce : function (k, m, e) {
  20800. return this.validateListener(k, "addOnce"),
  20801. this._registerListener(k, !0, m, e);
  20802. },
  20803. remove : function (k, m) {
  20804. this.validateListener(k, "remove");
  20805. var e = this._indexOfListener(k, m);
  20806. return -1 !== e && (this._bindings[e]._destroy(), this._bindings.splice(e, 1)),
  20807. k;
  20808. },
  20809. removeAll : function (k) {
  20810. if ("undefined" == typeof k && (k = null), this._bindings) {
  20811. for (var m = this._bindings.length; m--; )
  20812. k ? y3U.b9u(this._bindings[m].context, k) && (this._bindings[m]._destroy(), this._bindings.splice(m, 1)) : this._bindings[m]._destroy();
  20813. k || (this._bindings.length = 0);
  20814. }
  20815. },
  20816. getNumListeners : function () {
  20817. return this._bindings ? this._bindings.length : 0;
  20818. },
  20819. halt : function () {
  20820. this._shouldPropagate = !1;
  20821. },
  20822. dispatch : function () {
  20823. if (this.active && this._bindings) {
  20824. var k,
  20825. m = Array.prototype.slice.call(arguments),
  20826. e = this._bindings.length;
  20827. if (this.memorize && (this._prevParams = m), e) {
  20828. k = this._bindings.slice(),
  20829. this._shouldPropagate = !0;
  20830. do
  20831. e--;
  20832. while (k[e] && this._shouldPropagate && k[e].execute(m) !== !1)
  20833. }
  20834. }
  20835. },
  20836. forget : function () {
  20837. this._prevParams && (this._prevParams = null);
  20838. },
  20839. dispose : function () {
  20840. this.removeAll(),
  20841. this._bindings = null,
  20842. this._prevParams && (this._prevParams = null);
  20843. },
  20844. toString : function () {
  20845. return "[Phaser.Signal active:" + this.active + " numListeners:" + this.getNumListeners() + "]";
  20846. }
  20847. },
  20848. Object.defineProperty(i.Signal.prototype, "boundDispatch", {
  20849. get : function () {
  20850. var k = this;
  20851. return this._boundDispatch || (this._boundDispatch = function () {
  20852. return k.dispatch.apply(k, arguments);
  20853. });
  20854. }
  20855. }),
  20856. i.Signal.prototype.constructor = i.Signal,
  20857. i.SignalBinding = function (k, m, e, o, n) {
  20858. this._listener = m,
  20859. e && (this._isOnce = !0),
  20860. y3U.j9u(null, o) && (this.context = o),
  20861. this._signal = k,
  20862. n && (this._priority = n);
  20863. },
  20864. i.SignalBinding.prototype = {
  20865. context : null,
  20866. _isOnce : !1,
  20867. _priority : 0,
  20868. callCount : 0,
  20869. active : !0,
  20870. params : null,
  20871. execute : function (k) {
  20872. var m,
  20873. e;
  20874. return this.active && this._listener && (e = this.params ? this.params.concat(k) : k, m = this._listener.apply(this.context, e), this.callCount++, this._isOnce && this.detach()),
  20875. m;
  20876. },
  20877. detach : function () {
  20878. return this.isBound() ? this._signal.remove(this._listener, this.context) : null;
  20879. },
  20880. isBound : function () {
  20881. return !!this._signal && !!this._listener;
  20882. },
  20883. isOnce : function () {
  20884. return this._isOnce;
  20885. },
  20886. getListener : function () {
  20887. return this._listener;
  20888. },
  20889. getSignal : function () {
  20890. return this._signal;
  20891. },
  20892. _destroy : function () {
  20893. delete this._signal,
  20894. delete this._listener,
  20895. delete this.context;
  20896. },
  20897. toString : function () {
  20898. return "[Phaser.SignalBinding isOnce:" + this._isOnce + ", isBound:" + this.isBound() + ", active:" + this.active + "]";
  20899. }
  20900. },
  20901. i.SignalBinding.prototype.constructor = i.SignalBinding,
  20902. i.Filter = function (k, m, e) {
  20903. this.game = k,
  20904. this.type = i.WEBGL_FILTER,
  20905. this.passes = [this],
  20906. this.shaders = [],
  20907. this.dirty = !0,
  20908. this.padding = 0,
  20909. this.prevPoint = new i.Point;
  20910. var o = new Date;
  20911. if (this.uniforms = {
  20912. resolution : {
  20913. type : "2f",
  20914. value : {
  20915. x : 256,
  20916. y : 256
  20917. }
  20918. },
  20919. time : {
  20920. type : "1f",
  20921. value : 0
  20922. },
  20923. mouse : {
  20924. type : "2f",
  20925. value : {
  20926. x : 0,
  20927. y : 0
  20928. }
  20929. },
  20930. date : {
  20931. type : "4fv",
  20932. value : [o.getFullYear(), o.getMonth(), o.getDate(), y3U.d9u(60, o.getHours(), 60) + y3U.X9u(60, o.getMinutes()) + o.getSeconds()]
  20933. },
  20934. sampleRate : {
  20935. type : "1f",
  20936. value : 44100
  20937. },
  20938. iChannel0 : {
  20939. type : "sampler2D",
  20940. value : null,
  20941. textureData : {
  20942. repeat : !0
  20943. }
  20944. },
  20945. iChannel1 : {
  20946. type : "sampler2D",
  20947. value : null,
  20948. textureData : {
  20949. repeat : !0
  20950. }
  20951. },
  20952. iChannel2 : {
  20953. type : "sampler2D",
  20954. value : null,
  20955. textureData : {
  20956. repeat : !0
  20957. }
  20958. },
  20959. iChannel3 : {
  20960. type : "sampler2D",
  20961. value : null,
  20962. textureData : {
  20963. repeat : !0
  20964. }
  20965. }
  20966. }, m)
  20967. for (var n in m)
  20968. this.uniforms[n] = m[n];
  20969. this.fragmentSrc = e || [];
  20970. },
  20971. i.Filter.prototype = {
  20972. init : function () {},
  20973. setResolution : function (k, m) {
  20974. this.uniforms.resolution.value.x = k,
  20975. this.uniforms.resolution.value.y = m;
  20976. },
  20977. update : function (k) {
  20978. if ("undefined" != typeof k) {
  20979. var m = y3U.Y9u(k.x, this.game.width),
  20980. e = y3U.U5u(1, k.y / this.game.height);
  20981. (y3U.T5u(m, this.prevPoint.x) || y3U.S5u(e, this.prevPoint.y)) && (this.uniforms.mouse.value.x = m.toFixed(2), this.uniforms.mouse.value.y = e.toFixed(2), this.prevPoint.set(m, e));
  20982. }
  20983. this.uniforms.time.value = this.game.time.totalElapsedSeconds();
  20984. },
  20985. destroy : function () {
  20986. this.game = null;
  20987. }
  20988. },
  20989. i.Filter.prototype.constructor = i.Filter,
  20990. Object.defineProperty(i.Filter.prototype, "width", {
  20991. get : function () {
  20992. return this.uniforms.resolution.value.x;
  20993. },
  20994. set : function (k) {
  20995. this.uniforms.resolution.value.x = k;
  20996. }
  20997. }),
  20998. Object.defineProperty(i.Filter.prototype, "height", {
  20999. get : function () {
  21000. return this.uniforms.resolution.value.y;
  21001. },
  21002. set : function (k) {
  21003. this.uniforms.resolution.value.y = k;
  21004. }
  21005. }),
  21006. i.Plugin = function (k, m) {
  21007. "undefined" == typeof m && (m = null),
  21008. this.game = k,
  21009. this.parent = m,
  21010. this.active = !1,
  21011. this.visible = !1,
  21012. this.hasPreUpdate = !1,
  21013. this.hasUpdate = !1,
  21014. this.hasPostUpdate = !1,
  21015. this.hasRender = !1,
  21016. this.hasPostRender = !1;
  21017. },
  21018. i.Plugin.prototype = {
  21019. preUpdate : function () {},
  21020. update : function () {},
  21021. render : function () {},
  21022. postRender : function () {},
  21023. destroy : function () {
  21024. this.game = null,
  21025. this.parent = null,
  21026. this.active = !1,
  21027. this.visible = !1;
  21028. }
  21029. },
  21030. i.Plugin.prototype.constructor = i.Plugin,
  21031. i.PluginManager = function (k) {
  21032. this.game = k,
  21033. this.plugins = [],
  21034. this._len = 0,
  21035. this._i = 0;
  21036. },
  21037. i.PluginManager.prototype = {
  21038. add : function (k) {
  21039. var m = Array.prototype.splice.call(arguments, 1),
  21040. e = !1;
  21041. return "function" == typeof k ? k = new k(this.game, this) : (k.game = this.game, k.parent = this),
  21042. "function" == typeof k.preUpdate && (k.hasPreUpdate = !0, e = !0),
  21043. "function" == typeof k.update && (k.hasUpdate = !0, e = !0),
  21044. "function" == typeof k.postUpdate && (k.hasPostUpdate = !0, e = !0),
  21045. "function" == typeof k.render && (k.hasRender = !0, e = !0),
  21046. "function" == typeof k.postRender && (k.hasPostRender = !0, e = !0),
  21047. e ? ((k.hasPreUpdate || k.hasUpdate || k.hasPostUpdate) && (k.active = !0), (k.hasRender || k.hasPostRender) && (k.visible = !0), this._len = this.plugins.push(k), "function" == typeof k.init && k.init.apply(k, m), k) : null;
  21048. },
  21049. remove : function (k) {
  21050. for (this._i = this._len; this._i--; )
  21051. if (y3U.I5u(this.plugins[this._i], k))
  21052. return k.destroy(), this.plugins.splice(this._i, 1), void this._len--;
  21053. },
  21054. removeAll : function () {
  21055. for (this._i = this._len; this._i--; )
  21056. this.plugins[this._i].destroy();
  21057. this.plugins.length = 0,
  21058. this._len = 0;
  21059. },
  21060. preUpdate : function () {
  21061. for (this._i = this._len; this._i--; )
  21062. this.plugins[this._i].active && this.plugins[this._i].hasPreUpdate && this.plugins[this._i].preUpdate();
  21063. },
  21064. update : function () {
  21065. for (this._i = this._len; this._i--; )
  21066. this.plugins[this._i].active && this.plugins[this._i].hasUpdate && this.plugins[this._i].update();
  21067. },
  21068. postUpdate : function () {
  21069. for (this._i = this._len; this._i--; )
  21070. this.plugins[this._i].active && this.plugins[this._i].hasPostUpdate && this.plugins[this._i].postUpdate();
  21071. },
  21072. render : function () {
  21073. for (this._i = this._len; this._i--; )
  21074. this.plugins[this._i].visible && this.plugins[this._i].hasRender && this.plugins[this._i].render();
  21075. },
  21076. postRender : function () {
  21077. for (this._i = this._len; this._i--; )
  21078. this.plugins[this._i].visible && this.plugins[this._i].hasPostRender && this.plugins[this._i].postRender();
  21079. },
  21080. destroy : function () {
  21081. this.removeAll(),
  21082. this.game = null;
  21083. }
  21084. },
  21085. i.PluginManager.prototype.constructor = i.PluginManager,
  21086. i.Stage = function (k) {
  21087. this.game = k,
  21088. PIXI.Stage.call(this, 0),
  21089. this.name = "_stage_root",
  21090. this.interactive = !1,
  21091. this.disableVisibilityChange = !1,
  21092. this.exists = !0,
  21093. this.currentRenderOrderID = 0,
  21094. this._hiddenVar = "hidden",
  21095. this._backgroundColor = 0,
  21096. k.config && this.parseConfig(k.config);
  21097. },
  21098. i.Stage.prototype = Object.create(PIXI.Stage.prototype),
  21099. i.Stage.prototype.constructor = i.Stage,
  21100. i.Stage.prototype.parseConfig = function (k) {
  21101. k.disableVisibilityChange && (this.disableVisibilityChange = k.disableVisibilityChange),
  21102. k.backgroundColor && (this.backgroundColor = k.backgroundColor);
  21103. },
  21104. i.Stage.prototype.boot = function () {
  21105. i.DOM.getOffset(this.game.canvas, this.offset);
  21106. var m = this;
  21107. this._onChange = function (k) {
  21108. return m.visibilityChange(k);
  21109. },
  21110. i.Canvas.setUserSelect(this.game.canvas, "none"),
  21111. i.Canvas.setTouchAction(this.game.canvas, "none"),
  21112. this.checkVisibility();
  21113. },
  21114. i.Stage.prototype.preUpdate = function () {
  21115. this.currentRenderOrderID = 0;
  21116. for (var k = 0, m = this.children.length; y3U.C5u(m, k); k++)
  21117. this.children[k].preUpdate();
  21118. },
  21119. i.Stage.prototype.update = function () {
  21120. for (var k = this.children.length; k--; )
  21121. this.children[k].update();
  21122. },
  21123. i.Stage.prototype.postUpdate = function () {
  21124. if (this.game.world.camera.target) {
  21125. this.game.world.camera.target.postUpdate(),
  21126. this.game.world.camera.update();
  21127. for (var k = this.children.length; k--; )
  21128. y3U.v5u(this.children[k], this.game.world.camera.target) && this.children[k].postUpdate();
  21129. } else {
  21130. this.game.world.camera.update();
  21131. for (var k = this.children.length; k--; )
  21132. this.children[k].postUpdate();
  21133. }
  21134. },
  21135. i.Stage.prototype.updateTransform = function () {
  21136. this.worldAlpha = 1;
  21137. for (var k = 0, m = this.children.length; y3U.t5u(m, k); k++)
  21138. this.children[k].updateTransform();
  21139. },
  21140. i.Stage.prototype.checkVisibility = function () {
  21141. this._hiddenVar = void 0 !== r2w8n[H8n].webkitHidden ? "webkitvisibilitychange" : void 0 !== r2w8n[H8n].mozHidden ? "mozvisibilitychange" : void 0 !== r2w8n[H8n].msHidden ? "msvisibilitychange" : void 0 !== r2w8n[H8n]['hidden'] ? "visibilitychange" : null,
  21142. this._hiddenVar && r2w8n[H8n]['addEventListener'](this._hiddenVar, this._onChange, !1),
  21143. r2w8n[E8n]['onpagehide'] = this._onChange,
  21144. r2w8n[E8n]['onpageshow'] = this._onChange,
  21145. r2w8n[E8n]['onblur'] = this._onChange,
  21146. r2w8n[E8n]['onfocus'] = this._onChange;
  21147. var k = this;
  21148. this.game.device.cocoonJSApp && (CocoonJS.App.onSuspended.addEventListener(function () {
  21149. i.Stage.prototype.visibilityChange.call(k, {
  21150. type : "pause"
  21151. });
  21152. }), CocoonJS.App.onActivated.addEventListener(function () {
  21153. i.Stage.prototype.visibilityChange.call(k, {
  21154. type : "resume"
  21155. });
  21156. }));
  21157. },
  21158. i.Stage.prototype.visibilityChange = function (k) {
  21159. return y3U.y5u("pagehide", k.type) || y3U.o5u("blur", k.type) || y3U.x5u("pageshow", k.type) || y3U.p5u("focus", k.type) ? void(y3U.q5u("pagehide", k.type) || y3U.b5u("blur", k.type) ? this.game.focusLoss(k) : (y3U.j5u("pageshow", k.type) || y3U.d5u("focus", k.type)) && this.game.focusGain(k)) : void(this.disableVisibilityChange || (r2w8n[H8n]['hidden'] || r2w8n[H8n].mozHidden || r2w8n[H8n].msHidden || r2w8n[H8n].webkitHidden || y3U.c5u("pause", k.type) ? this.game.gamePaused(k) : this.game.gameResumed(k)));
  21160. },
  21161. i.Stage.prototype.setBackgroundColor = function (k) {
  21162. var m = i.Color.valueToColor(k);
  21163. this._backgroundColor = i.Color.getColor(m.r, m.g, m.b),
  21164. this.backgroundColorSplit = [y3U.s5u(m.r, 255), y3U.Q5u(m.g, 255), y3U.a2u(m.b, 255)],
  21165. this.backgroundColorString = i.Color.RGBtoString(m.r, m.g, m.b, 255, "#");
  21166. },
  21167. i.Stage.prototype.destroy = function () {
  21168. this._hiddenVar && r2w8n[H8n]['removeEventListener'](this._hiddenVar, this._onChange, !1),
  21169. r2w8n[E8n]['onpagehide'] = null,
  21170. r2w8n[E8n]['onpageshow'] = null,
  21171. r2w8n[E8n]['onblur'] = null,
  21172. r2w8n[E8n]['onfocus'] = null;
  21173. },
  21174. Object.defineProperty(i.Stage.prototype, "backgroundColor", {
  21175. get : function () {
  21176. return this._backgroundColor;
  21177. },
  21178. set : function (k) {
  21179. this.game.transparent || this.setBackgroundColor(k);
  21180. }
  21181. }),
  21182. Object.defineProperty(i.Stage.prototype, "smoothed", {
  21183. get : function () {
  21184. return y3U.W2u(PIXI.scaleModes.DEFAULT, PIXI.scaleModes.LINEAR);
  21185. },
  21186. set : function (k) {
  21187. var m = function () {
  21188. PIXI.scaleModes.DEFAULT = k ? PIXI.scaleModes.LINEAR : PIXI.scaleModes.NEAREST;
  21189. };
  21190. m();
  21191. }
  21192. }),
  21193. i.Group = function (k, m, e, o, n, u) {
  21194. "undefined" == typeof o && (o = !1),
  21195. "undefined" == typeof n && (n = !1),
  21196. "undefined" == typeof u && (u = i.Physics.ARCADE),
  21197. this.game = k,
  21198. "undefined" == typeof m && (m = k.world),
  21199. this.name = e || "group",
  21200. this.z = 0,
  21201. PIXI.DisplayObjectContainer.call(this),
  21202. o ? (this.game.stage.addChild(this), this.z = this.game.stage.children.length) : m && (m.addChild(this), this.z = m.children.length),
  21203. this.type = i.GROUP,
  21204. this.alive = !0,
  21205. this.exists = !0,
  21206. this.ignoreDestroy = !1,
  21207. this.classType = i.Sprite,
  21208. this.scale = new i.Point(1, 1),
  21209. this.cursor = null,
  21210. this.cameraOffset = new i.Point,
  21211. this.enableBody = n,
  21212. this.enableBodyDebug = !1,
  21213. this.physicsBodyType = u,
  21214. this.onDestroy = new i.Signal,
  21215. this._sortProperty = "z",
  21216. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0, 0];
  21217. },
  21218. i.Group.prototype = Object.create(PIXI.DisplayObjectContainer.prototype),
  21219. i.Group.prototype.constructor = i.Group,
  21220. i.Group.RETURN_NONE = 0,
  21221. i.Group.RETURN_TOTAL = 1,
  21222. i.Group.RETURN_CHILD = 2,
  21223. i.Group.SORT_ASCENDING = -1,
  21224. i.Group.SORT_DESCENDING = 1,
  21225. i.Group.prototype.add = function (k, m) {
  21226. return "undefined" == typeof m && (m = !1),
  21227. y3U.m2u(k.parent, this) && (this.enableBody && this.game.physics.enable(k, this.physicsBodyType), this.addChild(k), k.z = this.children.length, !m && k.events && k.events.onAddedToGroup$dispatch(k, this), y3U.A2u(null, this.cursor) && (this.cursor = k)),
  21228. k;
  21229. },
  21230. i.Group.prototype.addMultiple = function (k, m) {
  21231. if (Array.isArray(k))
  21232. for (var e = 0; y3U.w2u(e, k.length); e++)
  21233. this.add(k[e], m);
  21234. return k;
  21235. },
  21236. i.Group.prototype.addAt = function (k, m, e) {
  21237. return "undefined" == typeof e && (e = !1),
  21238. y3U.E2u(k.parent, this) && (this.enableBody && this.game.physics.enable(k, this.physicsBodyType), this.addChildAt(k, m), this.updateZ(), !e && k.events && k.events.onAddedToGroup$dispatch(k, this), y3U.e2u(null, this.cursor) && (this.cursor = k)),
  21239. k;
  21240. },
  21241. i.Group.prototype.getAt = function (k) {
  21242. return y3U.g2u(0, k) || y3U.r2u(k, this.children.length) ? -1 : this.getChildAt(k);
  21243. },
  21244. i.Group.prototype.create = function (k, m, e, o, n) {
  21245. "undefined" == typeof n && (n = !0);
  21246. var u = new this.classType(this.game, k, m, e, o);
  21247. return this.enableBody && this.game.physics.enable(u, this.physicsBodyType, this.enableBodyDebug),
  21248. u.exists = n,
  21249. u.visible = n,
  21250. u.alive = n,
  21251. this.addChild(u),
  21252. u.z = this.children.length,
  21253. u.events && u.events.onAddedToGroup$dispatch(u, this),
  21254. y3U.i2u(null, this.cursor) && (this.cursor = u),
  21255. u;
  21256. },
  21257. i.Group.prototype.createMultiple = function (k, m, e, o) {
  21258. "undefined" == typeof o && (o = !1);
  21259. for (var n = 0; y3U.u2u(k, n); n++)
  21260. this.create(0, 0, m, e, o);
  21261. },
  21262. i.Group.prototype.updateZ = function () {
  21263. for (var k = this.children.length; k--; )
  21264. this.children[k].z = k;
  21265. },
  21266. i.Group.prototype.resetCursor = function (k) {
  21267. return "undefined" == typeof k && (k = 0),
  21268. y3U.P2u(k, this.children.length - 1) && (k = 0),
  21269. this.cursor ? (this._cache[8] = k, this.cursor = this.children[this._cache[8]], this.cursor) : void 0;
  21270. },
  21271. i.Group.prototype.next = function () {
  21272. return this.cursor ? (y3U.D2u(this._cache[8], this.children.length - 1) ? this._cache[8] = 0 : this._cache[8]++, this.cursor = this.children[this._cache[8]], this.cursor) : void 0;
  21273. },
  21274. i.Group.prototype.previous = function () {
  21275. return this.cursor ? (y3U.Z2u(0, this._cache[8]) ? this._cache[8] = y3U.R2u(this.children.length, 1) : this._cache[8]--, this.cursor = this.children[this._cache[8]], this.cursor) : void 0;
  21276. },
  21277. i.Group.prototype.swap = function (k, m) {
  21278. this.swapChildren(k, m),
  21279. this.updateZ();
  21280. },
  21281. i.Group.prototype.bringToTop = function (k) {
  21282. return y3U.O2u(k.parent, this) && y3U.V2u(this.getIndex(k), this.children.length) && (this.remove(k, !1, !0), this.add(k, !0)),
  21283. k;
  21284. },
  21285. i.Group.prototype.sendToBack = function (k) {
  21286. return y3U.k1u(k.parent, this) && y3U.G1u(this.getIndex(k), 0) && (this.remove(k, !1, !0), this.addAt(k, 0, !0)),
  21287. k;
  21288. },
  21289. i.Group.prototype.moveUp = function (k) {
  21290. if (y3U.N1u(k.parent, this) && y3U.L1u(this.getIndex(k), this.children.length - 1)) {
  21291. var m = this.getIndex(k),
  21292. e = this.getAt(m + 1);
  21293. e && this.swap(k, e);
  21294. }
  21295. return k;
  21296. },
  21297. i.Group.prototype.moveDown = function (k) {
  21298. if (y3U.z1u(k.parent, this) && y3U.J1u(this.getIndex(k), 0)) {
  21299. var m = this.getIndex(k),
  21300. e = this.getAt(y3U.H1u(m, 1));
  21301. e && this.swap(k, e);
  21302. }
  21303. return k;
  21304. },
  21305. i.Group.prototype.xy = function (k, m, e) {
  21306. return y3U.h1u(0, k) || y3U.F1u(k, this.children.length) ? -1 : (this.getChildAt(k).x = m, void(this.getChildAt(k).y = e));
  21307. },
  21308. i.Group.prototype.reverse = function () {
  21309. this.children.reverse(),
  21310. this.updateZ();
  21311. },
  21312. i.Group.prototype.getIndex = function (k) {
  21313. return this.children.indexOf(k);
  21314. },
  21315. i.Group.prototype.replace = function (k, m) {
  21316. var e = this.getIndex(k);
  21317. return -1 !== e ? (m.parent && (y3U.M1u(m.parent, i.Group) ? m.parent.remove(m) : m.parent.removeChild(m)), this.remove(k), this.addAt(m, e), k) : void 0;
  21318. },
  21319. i.Group.prototype.hasProperty = function (k, m) {
  21320. var e = m.length;
  21321. return y3U.n1u(1, e) && y3U.f1u(m[0], k) ? !0 : y3U.K1u(2, e) && y3U.B1u(m[0], k) && y3U.l1u(m[1], k[m[0]]) ? !0 : y3U.X1u(3, e) && y3U.Y1u(m[0], k) && y3U.U6u(m[1], k[m[0]]) && y3U.T6u(m[2], k[m[0]][m[1]]) ? !0 : y3U.S6u(4, e) && y3U.I6u(m[0], k) && y3U.C6u(m[1], k[m[0]]) && y3U.v6u(m[2], k[m[0]][m[1]]) && y3U.t6u(m[3], k[m[0]][m[1]][m[2]]) ? !0 : !1;
  21322. },
  21323. i.Group.prototype.setProperty = function (k, m, e, o, n) {
  21324. if ("undefined" == typeof n && (n = !1), o = o || 0, !this.hasProperty(k, m) && (!n || y3U.y6u(o, 0)))
  21325. return !1;
  21326. var u = m.length;
  21327. return y3U.o6u(1, u) ? y3U.x6u(0, o) ? k[m[0]] = e : y3U.p6u(1, o) ? k[m[0]] += e : y3U.q6u(2, o) ? k[m[0]] -= e : y3U.b6u(3, o) ? k[m[0]] *= e : y3U.j6u(4, o) && (k[m[0]] /= e) : y3U.d6u(2, u) ? y3U.c6u(0, o) ? k[m[0]][m[1]] = e : y3U.s6u(1, o) ? k[m[0]][m[1]] += e : y3U.Q6u(2, o) ? k[m[0]][m[1]] -= e : y3U.a8u(3, o) ? k[m[0]][m[1]] *= e : y3U.W8u(4, o) && (k[m[0]][m[1]] /= e) : y3U.m8u(3, u) ? y3U.A8u(0, o) ? k[m[0]][m[1]][m[2]] = e : y3U.w8u(1, o) ? k[m[0]][m[1]][m[2]] += e : y3U.E8u(2, o) ? k[m[0]][m[1]][m[2]] -= e : y3U.e8u(3, o) ? k[m[0]][m[1]][m[2]] *= e : y3U.g8u(4, o) && (k[m[0]][m[1]][m[2]] /= e) : y3U.r8u(4, u) && (y3U.i8u(0, o) ? k[m[0]][m[1]][m[2]][m[3]] = e : y3U.u8u(1, o) ? k[m[0]][m[1]][m[2]][m[3]] += e : y3U.P8u(2, o) ? k[m[0]][m[1]][m[2]][m[3]] -= e : y3U.D8u(3, o) ? k[m[0]][m[1]][m[2]][m[3]] *= e : y3U.Z8u(4, o) && (k[m[0]][m[1]][m[2]][m[3]] /= e)),
  21328. !0;
  21329. },
  21330. i.Group.prototype.checkProperty = function (k, m, e, o) {
  21331. return "undefined" == typeof o && (o = !1),
  21332. !i.Utils.getProperty(k, m) && o ? !1 : y3U.R8u(i.Utils.getProperty(k, m), e) ? !1 : !0;
  21333. },
  21334. i.Group.prototype.set = function (k, m, e, o, n, u, q) {
  21335. return "undefined" == typeof q && (q = !1),
  21336. m = m.split("."),
  21337. "undefined" == typeof o && (o = !1),
  21338. "undefined" == typeof n && (n = !1),
  21339. (o === !1 || o && k.alive) && (n === !1 || n && k.visible) ? this.setProperty(k, m, e, u, q) : void 0;
  21340. },
  21341. i.Group.prototype.setAll = function (k, m, e, o, n, u) {
  21342. "undefined" == typeof e && (e = !1),
  21343. "undefined" == typeof o && (o = !1),
  21344. "undefined" == typeof u && (u = !1),
  21345. k = k.split("."),
  21346. n = n || 0;
  21347. for (var q = 0, f = this.children.length; y3U.O8u(f, q); q++)
  21348. (!e || e && this.children[q].alive) && (!o || o && this.children[q].visible) && this.setProperty(this.children[q], k, m, n, u);
  21349. },
  21350. i.Group.prototype.setAllChildren = function (k, m, e, o, n, u) {
  21351. "undefined" == typeof e && (e = !1),
  21352. "undefined" == typeof o && (o = !1),
  21353. "undefined" == typeof u && (u = !1),
  21354. n = n || 0;
  21355. for (var q = 0, f = this.children.length; y3U.V8u(f, q); q++)
  21356. (!e || e && this.children[q].alive) && (!o || o && this.children[q].visible) && (y3U.k0Q(this.children[q], i.Group) ? this.children[q].setAllChildren(k, m, e, o, n, u) : this.setProperty(this.children[q], k.split("."), m, n, u));
  21357. },
  21358. i.Group.prototype.checkAll = function (k, m, e, o, n) {
  21359. "undefined" == typeof e && (e = !1),
  21360. "undefined" == typeof o && (o = !1),
  21361. "undefined" == typeof n && (n = !1);
  21362. for (var u = 0, q = this.children.length; y3U.G0Q(q, u); u++)
  21363. if ((!e || e && this.children[u].alive) && (!o || o && this.children[u].visible) && !this.checkProperty(this.children[u], k, m, n))
  21364. return !1;
  21365. return !0;
  21366. },
  21367. i.Group.prototype.addAll = function (k, m, e, o) {
  21368. this.setAll(k, m, e, o, 1);
  21369. },
  21370. i.Group.prototype.subAll = function (k, m, e, o) {
  21371. this.setAll(k, m, e, o, 2);
  21372. },
  21373. i.Group.prototype.multiplyAll = function (k, m, e, o) {
  21374. this.setAll(k, m, e, o, 3);
  21375. },
  21376. i.Group.prototype.divideAll = function (k, m, e, o) {
  21377. this.setAll(k, m, e, o, 4);
  21378. },
  21379. i.Group.prototype.callAllExists = function (k, m) {
  21380. var e;
  21381. if (y3U.N0Q(arguments.length, 2)) {
  21382. var o = function () {
  21383. e = [];
  21384. };
  21385. o();
  21386. for (var n = 2; y3U.L0Q(n, arguments.length); n++)
  21387. e.push(arguments[n]);
  21388. }
  21389. for (var n = 0, u = this.children.length; y3U.z0Q(u, n); n++)
  21390. y3U.J0Q(this.children[n].exists, m) && this.children[n][k] && this.children[n][k].apply(this.children[n], e);
  21391. },
  21392. i.Group.prototype.callbackFromArray = function (k, m, e) {
  21393. if (y3U.H0Q(1, e)) {
  21394. if (k[m[0]])
  21395. return k[m[0]];
  21396. } else if (y3U.h0Q(2, e)) {
  21397. if (k[m[0]][m[1]])
  21398. return k[m[0]][m[1]];
  21399. } else if (y3U.F0Q(3, e)) {
  21400. if (k[m[0]][m[1]][m[2]])
  21401. return k[m[0]][m[1]][m[2]];
  21402. } else if (y3U.M0Q(4, e)) {
  21403. if (k[m[0]][m[1]][m[2]][m[3]])
  21404. return k[m[0]][m[1]][m[2]][m[3]];
  21405. } else if (k[m])
  21406. return k[m];
  21407. return !1;
  21408. },
  21409. i.Group.prototype.callAll = function (m, e) {
  21410. if ("undefined" != typeof m) {
  21411. var o = function (k) {
  21412. e = k;
  21413. };
  21414. m = m.split(".");
  21415. var n = m.length;
  21416. if ("undefined" == typeof e || y3U.n0Q(null, e) || y3U.f0Q("", e))
  21417. o(null);
  21418. else if ("string" == typeof e) {
  21419. e = e.split(".");
  21420. var u = e.length;
  21421. }
  21422. var q;
  21423. if (y3U.K0Q(arguments.length, 2)) {
  21424. var f = function () {
  21425. q = [];
  21426. };
  21427. f();
  21428. for (var j = 2; y3U.B0Q(j, arguments.length); j++)
  21429. q.push(arguments[j]);
  21430. }
  21431. for (var U0 = null, k0 = null, j = 0, a0 = this.children.length; y3U.l0Q(a0, j); j++)
  21432. U0 = this.callbackFromArray(this.children[j], m, n), e && U0 ? (k0 = this.callbackFromArray(this.children[j], e, u), U0 && U0.apply(k0, q)) : U0 && U0.apply(this.children[j], q);
  21433. }
  21434. },
  21435. i.Group.prototype.preUpdate = function () {
  21436. if (!this.exists || !this.parent.exists)
  21437. return this.renderOrderID = -1, !1;
  21438. for (var k = this.children.length; k--; )
  21439. this.children[k].preUpdate();
  21440. return !0;
  21441. },
  21442. i.Group.prototype.update = function () {
  21443. for (var k = this.children.length; k--; )
  21444. this.children[k].update();
  21445. },
  21446. i.Group.prototype.postUpdate = function () {
  21447. y3U.X0Q(1, this._cache[7]) && (this.x = this.game.camera.view.x + this.cameraOffset.x, this.y = this.game.camera.view.y + this.cameraOffset.y);
  21448. for (var k = this.children.length; k--; )
  21449. this.children[k].postUpdate();
  21450. },
  21451. i.Group.prototype.filter = function (k, m) {
  21452. for (var e = -1, o = this.children.length, n = []; ++e < o; ) {
  21453. var u = this.children[e];
  21454. (!m || m && u.exists) && k(u, e, this.children) && n.push(u);
  21455. }
  21456. return new i.ArraySet(n);
  21457. },
  21458. i.Group.prototype.forEach = function (k, m, e) {
  21459. if ("undefined" == typeof e && (e = !1), y3U.Y0Q(arguments.length, 3))
  21460. for (var o = 0, n = this.children.length; y3U.U7Q(n, o); o++)
  21461. (!e || e && this.children[o].exists) && k.call(m, this.children[o]);
  21462. else {
  21463. for (var u = [null], o = 3; y3U.T7Q(o, arguments.length); o++)
  21464. u.push(arguments[o]);
  21465. for (var o = 0, n = this.children.length; y3U.S7Q(n, o); o++)
  21466. (!e || e && this.children[o].exists) && (u[0] = this.children[o], k.apply(m, u));
  21467. }
  21468. },
  21469. i.Group.prototype.forEachExists = function (k, m) {
  21470. var e;
  21471. if (y3U.I7Q(arguments.length, 2)) {
  21472. var o = function () {
  21473. e = [null];
  21474. };
  21475. o();
  21476. for (var n = 2; y3U.C7Q(n, arguments.length); n++)
  21477. e.push(arguments[n]);
  21478. }
  21479. this.iterate("exists", !0, i.Group.RETURN_TOTAL, k, m, e);
  21480. },
  21481. i.Group.prototype.forEachAlive = function (k, m) {
  21482. var e;
  21483. if (y3U.v7Q(arguments.length, 2)) {
  21484. var o = function () {
  21485. e = [null];
  21486. };
  21487. o();
  21488. for (var n = 2; y3U.t7Q(n, arguments.length); n++)
  21489. e.push(arguments[n]);
  21490. }
  21491. this.iterate("alive", !0, i.Group.RETURN_TOTAL, k, m, e);
  21492. },
  21493. i.Group.prototype.forEachDead = function (k, m) {
  21494. var e;
  21495. if (y3U.y7Q(arguments.length, 2)) {
  21496. var o = function () {
  21497. e = [null];
  21498. };
  21499. o();
  21500. for (var n = 2; y3U.o7Q(n, arguments.length); n++)
  21501. e.push(arguments[n]);
  21502. }
  21503. this.iterate("alive", !1, i.Group.RETURN_TOTAL, k, m, e);
  21504. },
  21505. i.Group.prototype.sort = function (k, m) {
  21506. y3U.x7Q(this.children.length, 2) || ("undefined" == typeof k && (k = "z"), "undefined" == typeof m && (m = i.Group.SORT_ASCENDING), this._sortProperty = k, this.children.sort(y3U.p7Q(m, i.Group.SORT_ASCENDING) ? this.ascendingSortHandler.bind(this) : this.descendingSortHandler.bind(this)), this.updateZ());
  21507. },
  21508. i.Group.prototype.customSort = function (k, m) {
  21509. y3U.q7Q(this.children.length, 2) || (this.children.sort(k.bind(m)), this.updateZ());
  21510. },
  21511. i.Group.prototype.ascendingSortHandler = function (k, m) {
  21512. return y3U.b7Q(k[this._sortProperty], m[this._sortProperty]) ? -1 : y3U.j7Q(k[this._sortProperty], m[this._sortProperty]) ? 1 : y3U.d7Q(k.z, m.z) ? -1 : 1;
  21513. },
  21514. i.Group.prototype.descendingSortHandler = function (k, m) {
  21515. return y3U.c7Q(k[this._sortProperty], m[this._sortProperty]) ? 1 : y3U.s7Q(k[this._sortProperty], m[this._sortProperty]) ? -1 : 0;
  21516. },
  21517. i.Group.prototype.iterate = function (k, m, e, o, n, u) {
  21518. if (y3U.Q7Q(e, i.Group.RETURN_TOTAL) && y3U.a4Q(0, this.children.length))
  21519. return 0;
  21520. for (var q = 0, f = 0, j = this.children.length; y3U.W4Q(j, f); f++)
  21521. if (y3U.m4Q(this.children[f][k], m) && (q++, o && (u ? (u[0] = this.children[f], o.apply(n, u)) : o.call(n, this.children[f])), y3U.A4Q(e, i.Group.RETURN_CHILD)))
  21522. return this.children[f];
  21523. return y3U.w4Q(e, i.Group.RETURN_TOTAL) ? q : null;
  21524. },
  21525. i.Group.prototype.getFirstExists = function (k) {
  21526. return "boolean" != typeof k && (k = !0),
  21527. this.iterate("exists", k, i.Group.RETURN_CHILD);
  21528. },
  21529. i.Group.prototype.getFirstAlive = function () {
  21530. return this.iterate("alive", !0, i.Group.RETURN_CHILD);
  21531. },
  21532. i.Group.prototype.getFirstDead = function () {
  21533. return this.iterate("alive", !1, i.Group.RETURN_CHILD);
  21534. },
  21535. i.Group.prototype.getTop = function () {
  21536. return y3U.E4Q(this.children.length, 0) ? this.children[y3U.e4Q(this.children.length, 1)] : void 0;
  21537. },
  21538. i.Group.prototype.getBottom = function () {
  21539. return y3U.g4Q(this.children.length, 0) ? this.children[0] : void 0;
  21540. },
  21541. i.Group.prototype.countLiving = function () {
  21542. return this.iterate("alive", !0, i.Group.RETURN_TOTAL);
  21543. },
  21544. i.Group.prototype.countDead = function () {
  21545. return this.iterate("alive", !1, i.Group.RETURN_TOTAL);
  21546. },
  21547. i.Group.prototype.getRandom = function (k, m) {
  21548. return y3U.r4Q(0, this.children.length) ? null : (k = k || 0, m = m || this.children.length, i.ArrayUtils.getRandomItem(this.children, k, m));
  21549. },
  21550. i.Group.prototype.remove = function (k, m, e) {
  21551. if ("undefined" == typeof m && (m = !1), "undefined" == typeof e && (e = !1), y3U.i4Q(0, this.children.length) || -1 === this.children.indexOf(k))
  21552. return !1;
  21553. e || !k.events || k.destroyPhase || k.events.onRemovedFromGroup$dispatch(k, this);
  21554. var o = this.removeChild(k);
  21555. return this.updateZ(),
  21556. y3U.u4Q(this.cursor, k) && this.next(),
  21557. m && o && o.destroy(!0),
  21558. !0;
  21559. },
  21560. i.Group.prototype.removeAll = function (k, m) {
  21561. if ("undefined" == typeof k && (k = !1), "undefined" == typeof m && (m = !1), y3U.P4Q(0, this.children.length)) {
  21562. do {
  21563. !m && this.children[0].events && this.children[0].events.onRemovedFromGroup$dispatch(this.children[0], this);
  21564. var e = this.removeChild(this.children[0]);
  21565. k && e && e.destroy(!0);
  21566. } while (y3U.D4Q(this.children.length, 0));
  21567. this.cursor = null;
  21568. }
  21569. },
  21570. i.Group.prototype.removeBetween = function (k, m, e, o) {
  21571. if ("undefined" == typeof m && (m = y3U.Z4Q(this.children.length, 1)), "undefined" == typeof e && (e = !1), "undefined" == typeof o && (o = !1), y3U.R4Q(0, this.children.length)) {
  21572. if (y3U.O4Q(k, m) || y3U.V4Q(0, k) || y3U.k3Q(m, this.children.length))
  21573. return !1;
  21574. for (var n = m; y3U.G3Q(n, k); ) {
  21575. !o && this.children[n].events && this.children[n].events.onRemovedFromGroup$dispatch(this.children[n], this);
  21576. var u = this.removeChild(this.children[n]);
  21577. e && u && u.destroy(!0),
  21578. y3U.N3Q(this.cursor, this.children[n]) && (this.cursor = null),
  21579. n--;
  21580. }
  21581. this.updateZ();
  21582. }
  21583. },
  21584. i.Group.prototype.destroy = function (k, m) {
  21585. y3U.L3Q(null, this.game) || this.ignoreDestroy || ("undefined" == typeof k && (k = !0), "undefined" == typeof m && (m = !1), this.onDestroy.dispatch(this, k, m), this.removeAll(k), this.cursor = null, this.filters = null, m || (this.parent && this.parent.removeChild(this), this.game = null, this.exists = !1));
  21586. },
  21587. Object.defineProperty(i.Group.prototype, "total", {
  21588. get : function () {
  21589. return this.iterate("exists", !0, i.Group.RETURN_TOTAL);
  21590. }
  21591. }),
  21592. Object.defineProperty(i.Group.prototype, "length", {
  21593. get : function () {
  21594. return this.children.length;
  21595. }
  21596. }),
  21597. Object.defineProperty(i.Group.prototype, "angle", {
  21598. get : function () {
  21599. return i.Math.radToDeg(this.rotation);
  21600. },
  21601. set : function (k) {
  21602. this.rotation = i.Math.degToRad(k);
  21603. }
  21604. }),
  21605. Object.defineProperty(i.Group.prototype, "fixedToCamera", {
  21606. get : function () {
  21607. return !!this._cache[7];
  21608. },
  21609. set : function (k) {
  21610. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  21611. }
  21612. }),
  21613. i.World = function (k) {
  21614. i.Group.call(this, k, null, "__world", !1),
  21615. this.bounds = new i.Rectangle(0, 0, k.width, k.height),
  21616. this.camera = null,
  21617. this._definedSize = !1,
  21618. this._width = k.width,
  21619. this._height = k.height;
  21620. },
  21621. i.World.prototype = Object.create(i.Group.prototype),
  21622. i.World.prototype.constructor = i.World,
  21623. i.World.prototype.boot = function () {
  21624. this.camera = new i.Camera(this.game, 0, 0, 0, this.game.width, this.game.height),
  21625. this.camera.displayObject = this,
  21626. this.camera.scale = this.scale,
  21627. this.game.camera = this.camera,
  21628. this.game.stage.addChild(this);
  21629. },
  21630. i.World.prototype.setBounds = function (k, m, e, o) {
  21631. this._definedSize = !0,
  21632. this._width = e,
  21633. this._height = o,
  21634. this.bounds.setTo(k, m, e, o),
  21635. this.camera.bounds && this.camera.bounds.setTo(k, m, Math.max(e, this.game.width), Math.max(o, this.game.height)),
  21636. this.game.physics.setBoundsToWorld();
  21637. },
  21638. i.World.prototype.resize = function (k, m) {
  21639. this._definedSize && (y3U.z3Q(k, this._width) && (k = this._width), y3U.J3Q(m, this._height) && (m = this._height)),
  21640. this.bounds.width = k,
  21641. this.bounds.height = m,
  21642. this.game.camera.setBoundsToWorld(),
  21643. this.game.physics.setBoundsToWorld();
  21644. },
  21645. i.World.prototype.shutdown = function () {
  21646. this.destroy(!0, !0);
  21647. },
  21648. i.World.prototype.wrap = function (k, m, e, o, n) {
  21649. "undefined" == typeof m && (m = 0),
  21650. "undefined" == typeof e && (e = !1),
  21651. "undefined" == typeof o && (o = !0),
  21652. "undefined" == typeof n && (n = !0),
  21653. e ? (k.getBounds(), o && (y3U.H3Q(k.x + k._currentBounds.width, this.bounds.x) ? k.x = this.bounds.right : y3U.h3Q(k.x, this.bounds.right) && (k.x = this.bounds.left)), n && (y3U.F3Q(k.y + k._currentBounds.height, this.bounds.top) ? k.y = this.bounds.bottom : y3U.M3Q(k.y, this.bounds.bottom) && (k.y = this.bounds.top))) : (o && y3U.n3Q(k.x + m, this.bounds.x) ? k.x = this.bounds.right + m : o && y3U.f3Q(k.x - m, this.bounds.right) && (k.x = y3U.K3Q(this.bounds.left, m)), n && y3U.B3Q(k.y + m, this.bounds.top) ? k.y = this.bounds.bottom + m : n && y3U.l3Q(k.y - m, this.bounds.bottom) && (k.y = y3U.X3Q(this.bounds.top, m)));
  21654. },
  21655. Object.defineProperty(i.World.prototype, "width", {
  21656. get : function () {
  21657. return this.bounds.width;
  21658. },
  21659. set : function (k) {
  21660. y3U.Y3Q(k, this.game.width) && (k = this.game.width),
  21661. this.bounds.width = k,
  21662. this._width = k,
  21663. this._definedSize = !0;
  21664. }
  21665. }),
  21666. Object.defineProperty(i.World.prototype, "height", {
  21667. get : function () {
  21668. return this.bounds.height;
  21669. },
  21670. set : function (k) {
  21671. y3U.U9Q(k, this.game.height) && (k = this.game.height),
  21672. this.bounds.height = k,
  21673. this._height = k,
  21674. this._definedSize = !0;
  21675. }
  21676. }),
  21677. Object.defineProperty(i.World.prototype, "centerX", {
  21678. get : function () {
  21679. return this.bounds.halfWidth;
  21680. }
  21681. }),
  21682. Object.defineProperty(i.World.prototype, "centerY", {
  21683. get : function () {
  21684. return this.bounds.halfHeight;
  21685. }
  21686. }),
  21687. Object.defineProperty(i.World.prototype, "randomX", {
  21688. get : function () {
  21689. return y3U.T9Q(this.bounds.x, 0) ? this.game.rnd.integerInRange(this.bounds.x, y3U.S9Q(this.bounds.width, Math.abs(this.bounds.x))) : this.game.rnd.integerInRange(this.bounds.x, this.bounds.width);
  21690. }
  21691. }),
  21692. Object.defineProperty(i.World.prototype, "randomY", {
  21693. get : function () {
  21694. return y3U.I9Q(this.bounds.y, 0) ? this.game.rnd.integerInRange(this.bounds.y, y3U.C9Q(this.bounds.height, Math.abs(this.bounds.y))) : this.game.rnd.integerInRange(this.bounds.y, this.bounds.height);
  21695. }
  21696. }),
  21697. i.FlexGrid = function (k, m, e) {
  21698. this.game = k.game,
  21699. this.manager = k,
  21700. this.width = m,
  21701. this.height = e,
  21702. this.boundsCustom = new i.Rectangle(0, 0, m, e),
  21703. this.boundsFluid = new i.Rectangle(0, 0, m, e),
  21704. this.boundsFull = new i.Rectangle(0, 0, m, e),
  21705. this.boundsNone = new i.Rectangle(0, 0, m, e),
  21706. this.positionCustom = new i.Point(0, 0),
  21707. this.positionFluid = new i.Point(0, 0),
  21708. this.positionFull = new i.Point(0, 0),
  21709. this.positionNone = new i.Point(0, 0),
  21710. this.scaleCustom = new i.Point(1, 1),
  21711. this.scaleFluid = new i.Point(1, 1),
  21712. this.scaleFluidInversed = new i.Point(1, 1),
  21713. this.scaleFull = new i.Point(1, 1),
  21714. this.scaleNone = new i.Point(1, 1),
  21715. this.customWidth = 0,
  21716. this.customHeight = 0,
  21717. this.customOffsetX = 0,
  21718. this.customOffsetY = 0,
  21719. this.ratioH = y3U.v9Q(m, e),
  21720. this.ratioV = y3U.t9Q(e, m),
  21721. this.multiplier = 0,
  21722. this.layers = [];
  21723. },
  21724. i.FlexGrid.prototype = {
  21725. setSize : function (k, m) {
  21726. this.width = k,
  21727. this.height = m,
  21728. this.ratioH = y3U.y9Q(k, m),
  21729. this.ratioV = y3U.o9Q(m, k),
  21730. this.scaleNone = new i.Point(1, 1),
  21731. this.boundsNone.width = this.width,
  21732. this.boundsNone.height = this.height,
  21733. this.refresh();
  21734. },
  21735. createCustomLayer : function (k, m, e, o) {
  21736. "undefined" == typeof o && (o = !0),
  21737. this.customWidth = k,
  21738. this.customHeight = m,
  21739. this.boundsCustom.width = k,
  21740. this.boundsCustom.height = m;
  21741. var n = new i.FlexLayer(this, this.positionCustom, this.boundsCustom, this.scaleCustom);
  21742. return o && this.game.world.add(n),
  21743. this.layers.push(n),
  21744. "undefined" != typeof e && null !== typeof e && n.addMultiple(e),
  21745. n;
  21746. },
  21747. createFluidLayer : function (k, m) {
  21748. "undefined" == typeof m && (m = !0);
  21749. var e = new i.FlexLayer(this, this.positionFluid, this.boundsFluid, this.scaleFluid);
  21750. return m && this.game.world.add(e),
  21751. this.layers.push(e),
  21752. "undefined" != typeof k && null !== typeof k && e.addMultiple(k),
  21753. e;
  21754. },
  21755. createFullLayer : function (k) {
  21756. var m = new i.FlexLayer(this, this.positionFull, this.boundsFull, this.scaleFluid);
  21757. return this.game.world.add(m),
  21758. this.layers.push(m),
  21759. "undefined" != typeof k && m.addMultiple(k),
  21760. m;
  21761. },
  21762. createFixedLayer : function (k) {
  21763. var m = new i.FlexLayer(this, this.positionNone, this.boundsNone, this.scaleNone);
  21764. return this.game.world.add(m),
  21765. this.layers.push(m),
  21766. "undefined" != typeof k && m.addMultiple(k),
  21767. m;
  21768. },
  21769. reset : function () {
  21770. for (var k = this.layers.length; k--; )
  21771. this.layers[k].persist || (this.layers[k].position = null, this.layers[k].scale = null, this.layers.slice(k, 1));
  21772. },
  21773. onResize : function (k, m) {
  21774. this.ratioH = y3U.x9Q(k, m),
  21775. this.ratioV = y3U.p9Q(m, k),
  21776. this.refresh(k, m);
  21777. },
  21778. refresh : function () {
  21779. this.multiplier = Math.min(y3U.q9Q(this.manager.height, this.height), y3U.b9Q(this.manager.width, this.width)),
  21780. this.boundsFluid.width = Math.round(y3U.j9Q(this.width, this.multiplier)),
  21781. this.boundsFluid.height = Math.round(y3U.d9Q(this.height, this.multiplier)),
  21782. this.scaleFluid.set(y3U.c9Q(this.boundsFluid.width, this.width), y3U.s9Q(this.boundsFluid.height, this.height)),
  21783. this.scaleFluidInversed.set(y3U.Q9Q(this.width, this.boundsFluid.width), y3U.a5Q(this.height, this.boundsFluid.height)),
  21784. this.scaleFull.set(y3U.W5Q(this.boundsFull.width, this.width), y3U.m5Q(this.boundsFull.height, this.height)),
  21785. this.boundsFull.width = Math.round(y3U.A5Q(this.manager.width, this.scaleFluidInversed.x)),
  21786. this.boundsFull.height = Math.round(y3U.w5Q(this.manager.height, this.scaleFluidInversed.y)),
  21787. this.boundsFluid.centerOn(this.manager.bounds.centerX, this.manager.bounds.centerY),
  21788. this.boundsNone.centerOn(this.manager.bounds.centerX, this.manager.bounds.centerY),
  21789. this.positionFluid.set(this.boundsFluid.x, this.boundsFluid.y),
  21790. this.positionNone.set(this.boundsNone.x, this.boundsNone.y);
  21791. },
  21792. fitSprite : function (k) {
  21793. this.manager.scaleSprite(k),
  21794. k.x = this.manager.bounds.centerX,
  21795. k.y = this.manager.bounds.centerY;
  21796. },
  21797. debug : function () {
  21798. this.game.debug.text(this.boundsFluid.width + " x " + this.boundsFluid.height, this.boundsFluid.x + 4, this.boundsFluid.y + 16),
  21799. this.game.debug.geom(this.boundsFluid, "rgba(255,0,0,0.9", !1);
  21800. }
  21801. },
  21802. i.FlexGrid.prototype.constructor = i.FlexGrid,
  21803. i.FlexLayer = function (k, m, e, o) {
  21804. i.Group.call(this, k.game, null, "__flexLayer" + k.game.rnd.uuid(), !1),
  21805. this.manager = k.manager,
  21806. this.grid = k,
  21807. this.persist = !1,
  21808. this.position = m,
  21809. this.bounds = e,
  21810. this.scale = o,
  21811. this.topLeft = e.topLeft,
  21812. this.topMiddle = new i.Point(e.halfWidth, 0),
  21813. this.topRight = e.topRight,
  21814. this.bottomLeft = e.bottomLeft,
  21815. this.bottomMiddle = new i.Point(e.halfWidth, e.bottom),
  21816. this.bottomRight = e.bottomRight;
  21817. },
  21818. i.FlexLayer.prototype = Object.create(i.Group.prototype),
  21819. i.FlexLayer.prototype.constructor = i.FlexLayer,
  21820. i.FlexLayer.prototype.resize = function () {},
  21821. i.FlexLayer.prototype.debug = function () {
  21822. this.game.debug.text(this.bounds.width + " x " + this.bounds.height, this.bounds.x + 4, this.bounds.y + 16),
  21823. this.game.debug.geom(this.bounds, "rgba(0,0,255,0.9", !1),
  21824. this.game.debug.geom(this.topLeft, "rgba(255,255,255,0.9"),
  21825. this.game.debug.geom(this.topMiddle, "rgba(255,255,255,0.9"),
  21826. this.game.debug.geom(this.topRight, "rgba(255,255,255,0.9");
  21827. },
  21828. i.ScaleManager = function (k, m, e) {
  21829. this.game = k,
  21830. this.dom = i.DOM,
  21831. this.grid = null,
  21832. this.width = 0,
  21833. this.height = 0,
  21834. this.minWidth = null,
  21835. this.maxWidth = null,
  21836. this.minHeight = null,
  21837. this.maxHeight = null,
  21838. this.offset = new i.Point,
  21839. this.forceLandscape = !1,
  21840. this.forcePortrait = !1,
  21841. this.incorrectOrientation = !1,
  21842. this._pageAlignHorizontally = !1,
  21843. this._pageAlignVertically = !1,
  21844. this.maxIterations = 5,
  21845. this.onOrientationChange = new i.Signal,
  21846. this.enterLandscape = new i.Signal,
  21847. this.enterPortrait = new i.Signal,
  21848. this.enterIncorrectOrientation = new i.Signal,
  21849. this.leaveIncorrectOrientation = new i.Signal,
  21850. this.fullScreenTarget = null,
  21851. this._createdFullScreenTarget = null,
  21852. this.onFullScreenInit = new i.Signal,
  21853. this.onFullScreenChange = new i.Signal,
  21854. this.onFullScreenError = new i.Signal,
  21855. this.enterFullScreen = new i.Signal,
  21856. this.leaveFullScreen = new i.Signal,
  21857. this.fullScreenFailed = this.onFullScreenError,
  21858. this.screenOrientation = this.dom.getScreenOrientation(),
  21859. this.scaleFactor = new i.Point(1, 1),
  21860. this.scaleFactorInversed = new i.Point(1, 1),
  21861. this.margin = {
  21862. left : 0,
  21863. top : 0,
  21864. right : 0,
  21865. bottom : 0,
  21866. x : 0,
  21867. y : 0
  21868. },
  21869. this.bounds = new i.Rectangle,
  21870. this.aspectRatio = 0,
  21871. this.sourceAspectRatio = 0,
  21872. this.event = null,
  21873. this.windowConstraints = {
  21874. right : "layout",
  21875. bottom : ""
  21876. },
  21877. this.compatibility = {
  21878. supportsFullScreen : !1,
  21879. orientationFallback : null,
  21880. noMargins : !1,
  21881. scrollTo : null,
  21882. forceMinimumDocumentHeight : !1,
  21883. canExpandParent : !0,
  21884. clickTrampoline : ""
  21885. },
  21886. this._scaleMode = i.ScaleManager.NO_SCALE,
  21887. this._fullScreenScaleMode = i.ScaleManager.NO_SCALE,
  21888. this.parentIsWindow = !1,
  21889. this.parentNode = null,
  21890. this.parentScaleFactor = new i.Point(1, 1),
  21891. this.trackParentInterval = 2e3,
  21892. this.onSizeChange = new i.Signal,
  21893. this.onResize = null,
  21894. this.onResizeContext = null,
  21895. this._fullScreenRestore = null,
  21896. this._gameSize = new i.Rectangle,
  21897. this._userScaleFactor = new i.Point(1, 1),
  21898. this._userScaleTrim = new i.Point(0, 0),
  21899. this._lastUpdate = 0,
  21900. this._updateThrottle = 0,
  21901. this._updateThrottleReset = 100,
  21902. this._parentBounds = new i.Rectangle,
  21903. this._tempBounds = new i.Rectangle,
  21904. this._lastReportedCanvasSize = new i.Rectangle,
  21905. this._lastReportedGameSize = new i.Rectangle,
  21906. k.config && this.parseConfig(k.config),
  21907. this.setupScale(m, e);
  21908. },
  21909. i.ScaleManager.EXACT_FIT = 0,
  21910. i.ScaleManager.NO_SCALE = 1,
  21911. i.ScaleManager.SHOW_ALL = 2,
  21912. i.ScaleManager.RESIZE = 3,
  21913. i.ScaleManager.USER_SCALE = 4,
  21914. i.ScaleManager.prototype = {
  21915. boot : function () {
  21916. var m = this.compatibility;
  21917. m.supportsFullScreen = this.game.device.fullscreen && !this.game.device.cocoonJS,
  21918. this.game.device.iPad || this.game.device.webApp || this.game.device.desktop || (m.scrollTo = this.game.device.android && !this.game.device.chrome ? new i.Point(0, 1) : new i.Point(0, 0)),
  21919. this.game.device.desktop ? (m.orientationFallback = "screen", m.clickTrampoline = "when-not-mouse") : (m.orientationFallback = "", m.clickTrampoline = "");
  21920. var e = this;
  21921. this._orientationChange = function (k) {
  21922. return e.orientationChange(k);
  21923. },
  21924. this._windowResize = function (k) {
  21925. return e.windowResize(k);
  21926. },
  21927. r2w8n[E8n]['addEventListener']("orientationchange", this._orientationChange, !1),
  21928. r2w8n[E8n]['addEventListener']("resize", this._windowResize, !1),
  21929. this.compatibility.supportsFullScreen && (this._fullScreenChange = function (k) {
  21930. return e.fullScreenChange(k);
  21931. }, this._fullScreenError = function (k) {
  21932. return e.fullScreenError(k);
  21933. }, r2w8n[H8n]['addEventListener']("webkitfullscreenchange", this._fullScreenChange, !1), r2w8n[H8n]['addEventListener']("mozfullscreenchange", this._fullScreenChange, !1), r2w8n[H8n]['addEventListener']("MSFullscreenChange", this._fullScreenChange, !1), r2w8n[H8n]['addEventListener']("fullscreenchange", this._fullScreenChange, !1), r2w8n[H8n]['addEventListener']("webkitfullscreenerror", this._fullScreenError, !1), r2w8n[H8n]['addEventListener']("mozfullscreenerror", this._fullScreenError, !1), r2w8n[H8n]['addEventListener']("MSFullscreenError", this._fullScreenError, !1), r2w8n[H8n]['addEventListener']("fullscreenerror", this._fullScreenError, !1)),
  21934. this.game.onResume.add(this._gameResumed, this),
  21935. this.dom.getOffset(this.game.canvas, this.offset),
  21936. this.bounds.setTo(this.offset.x, this.offset.y, this.width, this.height),
  21937. this.setGameSize(this.game.width, this.game.height),
  21938. this.screenOrientation = this.dom.getScreenOrientation(this.compatibility.orientationFallback);
  21939. },
  21940. parseConfig : function (k) {
  21941. k.scaleMode && (this.scaleMode = k.scaleMode),
  21942. k.fullScreenScaleMode && (this.fullScreenScaleMode = k.fullScreenScaleMode),
  21943. k.fullScreenTarget && (this.fullScreenTarget = k.fullScreenTarget);
  21944. },
  21945. setupScale : function (k, m) {
  21946. var e,
  21947. o = new i.Rectangle;
  21948. y3U.E5Q("", this.game.parent) && ("string" == typeof this.game.parent ? e = r2w8n[H8n]['getElementById'](this.game.parent) : this.game.parent && y3U.e5Q(1, this.game.parent.nodeType) && (e = this.game.parent)),
  21949. e ? (this.parentNode = e, this.parentIsWindow = !1, this.getParentBounds(this._parentBounds), o.width = this._parentBounds.width, o.height = this._parentBounds.height, this.offset.set(this._parentBounds.x, this._parentBounds.y)) : (this.parentNode = null, this.parentIsWindow = !0, o.width = this.dom.visualBounds.width, o.height = this.dom.visualBounds.height, this.offset.set(0, 0));
  21950. var n = 0,
  21951. u = 0;
  21952. "number" == typeof k ? n = k : (this.parentScaleFactor.x = y3U.g5Q(parseInt(k, 10), 100), n = y3U.r5Q(o.width, this.parentScaleFactor.x)),
  21953. "number" == typeof m ? u = m : (this.parentScaleFactor.y = y3U.i5Q(parseInt(m, 10), 100), u = y3U.u5Q(o.height, this.parentScaleFactor.y)),
  21954. this._gameSize.setTo(0, 0, n, u),
  21955. this.grid = new i.FlexGrid(this, n, u),
  21956. this.updateDimensions(n, u, !1);
  21957. },
  21958. _gameResumed : function () {
  21959. this.queueUpdate(!0);
  21960. },
  21961. setGameSize : function (k, m) {
  21962. this._gameSize.setTo(0, 0, k, m),
  21963. y3U.P5Q(this.currentScaleMode, i.ScaleManager.RESIZE) && this.updateDimensions(k, m, !0),
  21964. this.queueUpdate(!0);
  21965. },
  21966. setUserScale : function (k, m, e, o) {
  21967. this._userScaleFactor.setTo(k, m),
  21968. this._userScaleTrim.setTo(y3U.D5Q(0, e), y3U.Z5Q(0, o)),
  21969. this.queueUpdate(!0);
  21970. },
  21971. setResizeCallback : function (k, m) {
  21972. this.onResize = k,
  21973. this.onResizeContext = m;
  21974. },
  21975. signalSizeChange : function () {
  21976. if (!i.Rectangle.sameDimensions(this, this._lastReportedCanvasSize) || !i.Rectangle.sameDimensions(this.game, this._lastReportedGameSize)) {
  21977. var k = this.width,
  21978. m = this.height;
  21979. this._lastReportedCanvasSize.setTo(0, 0, k, m),
  21980. this._lastReportedGameSize.setTo(0, 0, this.game.width, this.game.height),
  21981. this.grid.onResize(k, m),
  21982. this.onSizeChange.dispatch(this, k, m),
  21983. y3U.R5Q(this.currentScaleMode, i.ScaleManager.RESIZE) && (this.game.state.resize(k, m), this.game.load.resize(k, m));
  21984. }
  21985. },
  21986. setMinMax : function (k, m, e, o) {
  21987. this.minWidth = k,
  21988. this.minHeight = m,
  21989. "undefined" != typeof e && (this.maxWidth = e),
  21990. "undefined" != typeof o && (this.maxHeight = o);
  21991. },
  21992. preUpdate : function () {
  21993. if (!(y3U.O5Q(this.game.time.time, this._lastUpdate + this._updateThrottle))) {
  21994. var k = this._updateThrottle;
  21995. this._updateThrottleReset = y3U.V5Q(k, 400) ? 0 : 100,
  21996. this.dom.getOffset(this.game.canvas, this.offset);
  21997. var m = this._parentBounds.width,
  21998. e = this._parentBounds.height,
  21999. o = this.getParentBounds(this._parentBounds),
  22000. n = y3U.k2Q(o.width, m) || y3U.G2Q(o.height, e),
  22001. u = this.updateOrientationState();
  22002. (n || u) && (this.onResize && this.onResize.call(this.onResizeContext, this, o), this.updateLayout(), this.signalSizeChange());
  22003. var q = y3U.N2Q(2, this._updateThrottle);
  22004. y3U.L2Q(this._updateThrottle, k) && (q = Math.min(k, this._updateThrottleReset)),
  22005. this._updateThrottle = i.Math.clamp(q, 25, this.trackParentInterval),
  22006. this._lastUpdate = this.game.time.time;
  22007. }
  22008. },
  22009. pauseUpdate : function () {
  22010. this.preUpdate(),
  22011. this._updateThrottle = this.trackParentInterval;
  22012. },
  22013. updateDimensions : function (k, m, e) {
  22014. this.width = y3U.z2Q(k, this.parentScaleFactor.x),
  22015. this.height = y3U.J2Q(m, this.parentScaleFactor.y),
  22016. this.game.width = this.width,
  22017. this.game.height = this.height,
  22018. this.sourceAspectRatio = y3U.H2Q(this.width, this.height),
  22019. this.updateScalingAndBounds(),
  22020. e && (this.game.renderer.resize(this.width, this.height), this.game.camera.setSize(this.width, this.height), this.game.world.resize(this.width, this.height));
  22021. },
  22022. updateScalingAndBounds : function () {
  22023. this.scaleFactor.x = y3U.h2Q(this.game.width, this.width),
  22024. this.scaleFactor.y = y3U.F2Q(this.game.height, this.height),
  22025. this.scaleFactorInversed.x = y3U.M2Q(this.width, this.game.width),
  22026. this.scaleFactorInversed.y = y3U.n2Q(this.height, this.game.height),
  22027. this.aspectRatio = y3U.f2Q(this.width, this.height),
  22028. this.game.canvas && this.dom.getOffset(this.game.canvas, this.offset),
  22029. this.bounds.setTo(this.offset.x, this.offset.y, this.width, this.height),
  22030. this.game.input && this.game.input.scale && this.game.input.scale.setTo(this.scaleFactor.x, this.scaleFactor.y);
  22031. },
  22032. forceOrientation : function (k, m) {
  22033. "undefined" == typeof m && (m = !1),
  22034. this.forceLandscape = k,
  22035. this.forcePortrait = m,
  22036. this.queueUpdate(!0);
  22037. },
  22038. classifyOrientation : function (k) {
  22039. return y3U.K2Q("portrait-primary", k) || y3U.B2Q("portrait-secondary", k) ? "portrait" : y3U.l2Q("landscape-primary", k) || y3U.X2Q("landscape-secondary", k) ? "landscape" : null;
  22040. },
  22041. updateOrientationState : function () {
  22042. var k = this.screenOrientation,
  22043. m = this.incorrectOrientation;
  22044. this.screenOrientation = this.dom.getScreenOrientation(this.compatibility.orientationFallback),
  22045. this.incorrectOrientation = this.forceLandscape && !this.isLandscape || this.forcePortrait && !this.isPortrait;
  22046. var e = y3U.Y2Q(k, this.screenOrientation),
  22047. o = y3U.U1Q(m, this.incorrectOrientation);
  22048. return e && (this.isLandscape ? this.enterLandscape.dispatch(this.orientation, !0, !1) : this.enterPortrait.dispatch(this.orientation, !1, !0)),
  22049. o && (this.incorrectOrientation ? this.enterIncorrectOrientation.dispatch() : this.leaveIncorrectOrientation.dispatch()),
  22050. (e || o) && this.onOrientationChange.dispatch(this, k, m),
  22051. e || o;
  22052. },
  22053. orientationChange : function (k) {
  22054. this.event = k,
  22055. this.queueUpdate(!0);
  22056. },
  22057. windowResize : function (k) {
  22058. this.event = k,
  22059. this.queueUpdate(!0);
  22060. },
  22061. scrollTop : function () {
  22062. var k = this.compatibility.scrollTo;
  22063. k && r2w8n[E8n]['scrollTo'](k.x, k.y);
  22064. },
  22065. refresh : function () {
  22066. this.scrollTop(),
  22067. this.queueUpdate(!0);
  22068. },
  22069. updateLayout : function () {
  22070. for (var C0s in r2w8n[H8n]) {
  22071. if (C0s.length == ((83, 0x1A3) >= (80.5E1, 2.66E2) ? (0x212, 15) : (39, 110.) < (0x8E, 62) ? (0xEF, 78) : 0x177 < (0x1E0, 68.) ? (4.270E2, 115.) : (1.227E3, 101)) && C0s.charCodeAt(14) == 116 && C0s.charCodeAt(13) == ((110, 18.2E1) > (14.120E2, 0x16) ? (49, 110) : (69.9E1, 14.530E2)) && C0s.charCodeAt(((0x190, 47.) <= (0x4E, 1.351E3) ? (0xFB, 0) : (0x36, 2.5E1))) == (124.80E1 >= (22., 1.163E3) ? (0x255, 100) : (0x1D9, 14.13E2) < (126.7E1, 0x75) ? (16, 'H') : (123, 68.2E1) >= (8.1E1, 9.98E2) ? 30 : (112, 0x1FB)))
  22072. break
  22073. };
  22074. var k = this.currentScaleMode;
  22075. if (y3U.T1Q(k, i.ScaleManager.RESIZE))
  22076. return void this.reflowGame();
  22077. if (this.scrollTop(), this.compatibility.forceMinimumDocumentHeight && (r2w8n[H8n][C0s]['style']['minHeight'] = r2w8n[E8n]['innerHeight'] + "px"), this.incorrectOrientation ? this.setMaximum() : y3U.S1Q(k, i.ScaleManager.EXACT_FIT) ? this.setExactFit() : y3U.I1Q(k, i.ScaleManager.SHOW_ALL) ? !this.isFullScreen && this.boundingParent && this.compatibility.canExpandParent ? (this.setShowAll(!0), this.resetCanvas(), this.setShowAll()) : this.setShowAll() : y3U.C1Q(k, i.ScaleManager.NO_SCALE) ? (this.width = this.game.width, this.height = this.game.height) : y3U.v1Q(k, i.ScaleManager.USER_SCALE) && (this.width = y3U.t1Q(this.game.width * this._userScaleFactor.x, this._userScaleTrim.x), this.height = y3U.y1Q(this.game.height * this._userScaleFactor.y, this._userScaleTrim.y)), !this.compatibility.canExpandParent && (y3U.o1Q(k, i.ScaleManager.SHOW_ALL) || y3U.x1Q(k, i.ScaleManager.USER_SCALE))) {
  22078. var m = this.getParentBounds(this._tempBounds);
  22079. this.width = Math.min(this.width, m.width),
  22080. this.height = Math.min(this.height, m.height);
  22081. }
  22082. this.width = y3U.p1Q(0, this.width),
  22083. this.height = y3U.q1Q(0, this.height),
  22084. this.reflowCanvas();
  22085. },
  22086. getParentBounds : function (k) {
  22087. var m = k || new i.Rectangle,
  22088. e = this.boundingParent,
  22089. o = this.dom.visualBounds,
  22090. n = this.dom.layoutBounds;
  22091. if (e) {
  22092. var u = e.getBoundingClientRect();
  22093. m.setTo(u.left, u.top, u.width, u.height);
  22094. var q = this.windowConstraints;
  22095. if (q.right) {
  22096. var f = y3U.b1Q("layout", q.right) ? n : o;
  22097. m.right = Math.min(m.right, f.width);
  22098. }
  22099. if (q.bottom) {
  22100. var f = y3U.j1Q("layout", q.bottom) ? n : o;
  22101. m.bottom = Math.min(m.bottom, f.height);
  22102. }
  22103. } else
  22104. m.setTo(0, 0, o.width, o.height);
  22105. return m.setTo(Math.round(m.x), Math.round(m.y), Math.round(m.width), Math.round(m.height)),
  22106. m;
  22107. },
  22108. alignCanvas : function (k, m) {
  22109. var e = this.getParentBounds(this._tempBounds),
  22110. o = this.game.canvas,
  22111. n = this.margin;
  22112. if (k) {
  22113. n.left = n.right = 0;
  22114. var u = o.getBoundingClientRect();
  22115. if (y3U.d1Q(this.width, e.width) && !this.incorrectOrientation) {
  22116. var q = y3U.c1Q(u.left, e.x),
  22117. f = y3U.s1Q(e.width / 2, this.width / 2);
  22118. f = Math.max(f, 0);
  22119. var j = y3U.Q1Q(f, q);
  22120. n.left = Math.round(j);
  22121. }
  22122. o.style.marginLeft = n.left + "px",
  22123. y3U.a6Q(0, n.left) && (n.right = - (y3U.W6Q(e.width, u.width, n.left)), o.style.marginRight = n.right + "px");
  22124. }
  22125. if (m) {
  22126. n.top = n.bottom = 0;
  22127. var u = o.getBoundingClientRect();
  22128. if (y3U.I6Q(this.height, e.height) && !this.incorrectOrientation) {
  22129. var q = y3U.C6Q(u.top, e.y),
  22130. f = y3U.v6Q(e.height / 2, this.height / 2);
  22131. f = Math.max(f, 0);
  22132. var j = y3U.t6Q(f, q);
  22133. n.top = Math.round(j);
  22134. }
  22135. o.style.marginTop = n.top + "px",
  22136. y3U.y6Q(0, n.top) && (n.bottom = - (y3U.o6Q(e.height, u.height, n.top)), o.style.marginBottom = n.bottom + "px");
  22137. }
  22138. n.x = n.left,
  22139. n.y = n.top;
  22140. },
  22141. reflowGame : function () {
  22142. this.resetCanvas("", "");
  22143. var k = this.getParentBounds(this._tempBounds);
  22144. this.updateDimensions(k.width, k.height, !0);
  22145. },
  22146. reflowCanvas : function () {
  22147. this.incorrectOrientation || (this.width = i.Math.clamp(this.width, this.minWidth || 0, this.maxWidth || this.width), this.height = i.Math.clamp(this.height, this.minHeight || 0, this.maxHeight || this.height)),
  22148. this.resetCanvas(),
  22149. this.compatibility.noMargins || (this.isFullScreen && this._createdFullScreenTarget ? this.alignCanvas(!0, !0) : this.alignCanvas(this.pageAlignHorizontally, this.pageAlignVertically)),
  22150. this.updateScalingAndBounds();
  22151. },
  22152. resetCanvas : function (k, m) {
  22153. "undefined" == typeof k && (k = this.width + "px"),
  22154. "undefined" == typeof m && (m = this.height + "px");
  22155. var e = this.game.canvas;
  22156. this.compatibility.noMargins || (e.style.marginLeft = "", e.style.marginTop = "", e.style.marginRight = "", e.style.marginBottom = ""),
  22157. e.style.width = k,
  22158. e.style.height = m;
  22159. },
  22160. queueUpdate : function (k) {
  22161. k && (this._parentBounds.width = 0, this._parentBounds.height = 0),
  22162. this._updateThrottle = this._updateThrottleReset;
  22163. },
  22164. reset : function (k) {
  22165. k && this.grid.reset();
  22166. },
  22167. setMaximum : function () {
  22168. this.width = this.dom.visualBounds.width,
  22169. this.height = this.dom.visualBounds.height;
  22170. },
  22171. setShowAll : function (k) {
  22172. var m,
  22173. e = this.getParentBounds(this._tempBounds),
  22174. o = e.width,
  22175. n = e.height;
  22176. m = k ? Math.max(y3U.M6Q(n, this.game.height), y3U.n6Q(o, this.game.width)) : Math.min(y3U.f6Q(n, this.game.height), y3U.K6Q(o, this.game.width)),
  22177. this.width = Math.round(y3U.B6Q(this.game.width, m)),
  22178. this.height = Math.round(y3U.l6Q(this.game.height, m));
  22179. },
  22180. setExactFit : function () {
  22181. var k = this.getParentBounds(this._tempBounds);
  22182. this.width = k.width,
  22183. this.height = k.height,
  22184. this.isFullScreen || (this.maxWidth && (this.width = Math.min(this.width, this.maxWidth)), this.maxHeight && (this.height = Math.min(this.height, this.maxHeight)));
  22185. },
  22186. createFullScreenTarget : function () {
  22187. var k = r2w8n[H8n]['createElement']("div");
  22188. return k.style.margin = "0",
  22189. k.style.padding = "0",
  22190. k.style.background = "#000",
  22191. k;
  22192. },
  22193. startFullScreen : function (k, m) {
  22194. if (this.isFullScreen)
  22195. return !1;
  22196. if (!this.compatibility.supportsFullScreen) {
  22197. var e = this;
  22198. return void setTimeout(function () {
  22199. e.fullScreenError();
  22200. }, 10);
  22201. }
  22202. if (y3U.X6Q("when-not-mouse", this.compatibility.clickTrampoline)) {
  22203. var o = this.game.input;
  22204. if (o.activePointer && y3U.Y6Q(o.activePointer, o.mousePointer) && (m || m !== !1))
  22205. return void o.activePointer.addClickTrampoline("startFullScreen", this.startFullScreen, this, [k, !1]);
  22206. }
  22207. "undefined" != typeof k && y3U.U8Q(this.game.renderType, i.CANVAS) && (this.game.stage.smoothed = k);
  22208. var n = this.fullScreenTarget;
  22209. n || (this.cleanupCreatedTarget(), this._createdFullScreenTarget = this.createFullScreenTarget(), n = this._createdFullScreenTarget);
  22210. var u = {
  22211. targetElement : n
  22212. };
  22213. if (this.onFullScreenInit.dispatch(this, u), this._createdFullScreenTarget) {
  22214. var q = this.game.canvas,
  22215. f = q.parentNode;
  22216. f.insertBefore(n, q),
  22217. n.appendChild(q);
  22218. }
  22219. return this.game.device.fullscreenKeyboard ? n[this.game.device.requestFullscreen](Element.ALLOW_KEYBOARD_INPUT) : n[this.game.device.requestFullscreen](),
  22220. !0;
  22221. },
  22222. stopFullScreen : function () {
  22223. return this.isFullScreen && this.compatibility.supportsFullScreen ? (r2w8n[H8n][this.game.device.cancelFullscreen](), !0) : !1;
  22224. },
  22225. cleanupCreatedTarget : function () {
  22226. var k = this._createdFullScreenTarget;
  22227. if (k && k.parentNode) {
  22228. var m = k.parentNode;
  22229. m.insertBefore(this.game.canvas, k),
  22230. m.removeChild(k);
  22231. }
  22232. this._createdFullScreenTarget = null;
  22233. },
  22234. prepScreenMode : function (k) {
  22235. var m = !!this._createdFullScreenTarget,
  22236. e = this._createdFullScreenTarget || this.fullScreenTarget;
  22237. k ? (m || y3U.T8Q(this.fullScreenScaleMode, i.ScaleManager.EXACT_FIT)) && y3U.S8Q(e, this.game.canvas) && (this._fullScreenRestore = {
  22238. targetWidth : e.style.width,
  22239. targetHeight : e.style.height
  22240. }, e.style.width = "100%", e.style.height = "100%") : (this._fullScreenRestore && (e.style.width = this._fullScreenRestore.targetWidth, e.style.height = this._fullScreenRestore.targetHeight, this._fullScreenRestore = null), this.updateDimensions(this._gameSize.width, this._gameSize.height, !0), this.resetCanvas());
  22241. },
  22242. fullScreenChange : function (k) {
  22243. this.event = k,
  22244. this.isFullScreen ? (this.prepScreenMode(!0), this.updateLayout(), this.queueUpdate(!0), this.enterFullScreen.dispatch(this.width, this.height)) : (this.prepScreenMode(!1), this.cleanupCreatedTarget(), this.updateLayout(), this.queueUpdate(!0), this.leaveFullScreen.dispatch(this.width, this.height)),
  22245. this.onFullScreenChange.dispatch(this);
  22246. },
  22247. fullScreenError : function (k) {
  22248. this.event = k,
  22249. this.cleanupCreatedTarget(),
  22250. console.warn("Phaser.ScaleManager: requestFullscreen failed or device does not support the Fullscreen API"),
  22251. this.onFullScreenError.dispatch(this);
  22252. },
  22253. scaleSprite : function (k, m, e, o) {
  22254. if ("undefined" == typeof m && (m = this.width), "undefined" == typeof e && (e = this.height), "undefined" == typeof o && (o = !1), k.scale.set(1), y3U.I8Q(k.width, 0) || y3U.C8Q(k.height, 0) || y3U.v8Q(0, m) || y3U.t8Q(0, e))
  22255. return k;
  22256. var n = m,
  22257. u = y3U.y8Q(k.height, m, k.width),
  22258. q = y3U.F8Q(k.width, e, k.height),
  22259. f = e,
  22260. j = y3U.i8Q(q, m);
  22261. return j = j ? o : !o,
  22262. j ? (k.width = Math.floor(n), k.height = Math.floor(u)) : (k.width = Math.floor(q), k.height = Math.floor(f)),
  22263. k;
  22264. },
  22265. destroy : function () {
  22266. this.game.onResume.remove(this._gameResumed, this),
  22267. r2w8n[E8n]['removeEventListener']("orientationchange", this._orientationChange, !1),
  22268. r2w8n[E8n]['removeEventListener']("resize", this._windowResize, !1),
  22269. this.compatibility.supportsFullScreen && (r2w8n[H8n]['removeEventListener']("webkitfullscreenchange", this._fullScreenChange, !1), r2w8n[H8n]['removeEventListener']("mozfullscreenchange", this._fullScreenChange, !1), r2w8n[H8n]['removeEventListener']("MSFullscreenChange", this._fullScreenChange, !1), r2w8n[H8n]['removeEventListener']("fullscreenchange", this._fullScreenChange, !1), r2w8n[H8n]['removeEventListener']("webkitfullscreenerror", this._fullScreenError, !1), r2w8n[H8n]['removeEventListener']("mozfullscreenerror", this._fullScreenError, !1), r2w8n[H8n]['removeEventListener']("MSFullscreenError", this._fullScreenError, !1), r2w8n[H8n]['removeEventListener']("fullscreenerror", this._fullScreenError, !1));
  22270. }
  22271. },
  22272. i.ScaleManager.prototype.constructor = i.ScaleManager,
  22273. i.ScaleManager.prototype.checkResize = i.ScaleManager.prototype.windowResize,
  22274. i.ScaleManager.prototype.checkOrientation = i.ScaleManager.prototype.orientationChange,
  22275. i.ScaleManager.prototype.setScreenSize = i.ScaleManager.prototype.updateLayout,
  22276. i.ScaleManager.prototype.setSize = i.ScaleManager.prototype.reflowCanvas,
  22277. i.ScaleManager.prototype.checkOrientationState = function () {
  22278. var k = this.updateOrientationState();
  22279. return k && this.refresh(),
  22280. k;
  22281. },
  22282. Object.defineProperty(i.ScaleManager.prototype, "boundingParent", {
  22283. get : function () {
  22284. if (this.parentIsWindow || this.isFullScreen && !this._createdFullScreenTarget)
  22285. return null;
  22286. var k = this.game.canvas && this.game.canvas.parentNode;
  22287. return k || null;
  22288. }
  22289. }),
  22290. Object.defineProperty(i.ScaleManager.prototype, "scaleMode", {
  22291. get : function () {
  22292. return this._scaleMode;
  22293. },
  22294. set : function (k) {
  22295. return y3U.u8Q(k, this._scaleMode) && (this.isFullScreen || (this.updateDimensions(this._gameSize.width, this._gameSize.height, !0), this.queueUpdate(!0)), this._scaleMode = k),
  22296. this._scaleMode;
  22297. }
  22298. }),
  22299. Object.defineProperty(i.ScaleManager.prototype, "fullScreenScaleMode", {
  22300. get : function () {
  22301. return this._fullScreenScaleMode;
  22302. },
  22303. set : function (k) {
  22304. return y3U.P8Q(k, this._fullScreenScaleMode) && (this.isFullScreen ? (this.prepScreenMode(!1), this._fullScreenScaleMode = k, this.prepScreenMode(!0), this.queueUpdate(!0)) : this._fullScreenScaleMode = k),
  22305. this._fullScreenScaleMode;
  22306. }
  22307. }),
  22308. Object.defineProperty(i.ScaleManager.prototype, "currentScaleMode", {
  22309. get : function () {
  22310. return this.isFullScreen ? this._fullScreenScaleMode : this._scaleMode;
  22311. }
  22312. }),
  22313. Object.defineProperty(i.ScaleManager.prototype, "pageAlignHorizontally", {
  22314. get : function () {
  22315. return this._pageAlignHorizontally;
  22316. },
  22317. set : function (k) {
  22318. y3U.D8Q(k, this._pageAlignHorizontally) && (this._pageAlignHorizontally = k, this.queueUpdate(!0));
  22319. }
  22320. }),
  22321. Object.defineProperty(i.ScaleManager.prototype, "pageAlignVertically", {
  22322. get : function () {
  22323. return this._pageAlignVertically;
  22324. },
  22325. set : function (k) {
  22326. y3U.Z8Q(k, this._pageAlignVertically) && (this._pageAlignVertically = k, this.queueUpdate(!0));
  22327. }
  22328. }),
  22329. Object.defineProperty(i.ScaleManager.prototype, "isFullScreen", {
  22330. get : function () {
  22331. return !!(r2w8n[H8n].fullscreenElement || r2w8n[H8n].webkitFullscreenElement || r2w8n[H8n].mozFullScreenElement || r2w8n[H8n].msFullscreenElement);
  22332. }
  22333. }),
  22334. Object.defineProperty(i.ScaleManager.prototype, "isPortrait", {
  22335. get : function () {
  22336. return y3U.R8Q("portrait", this.classifyOrientation(this.screenOrientation));
  22337. }
  22338. }),
  22339. Object.defineProperty(i.ScaleManager.prototype, "isLandscape", {
  22340. get : function () {
  22341. return y3U.O8Q("landscape", this.classifyOrientation(this.screenOrientation));
  22342. }
  22343. }),
  22344. Object.defineProperty(i.ScaleManager.prototype, "orientation", {
  22345. get : function () {
  22346. return y3U.V8Q("portrait", this.classifyOrientation(this.screenOrientation)) ? 0 : 90;
  22347. }
  22348. }),
  22349. i.Game = function (k, m, e, o, n, u, q, f) {
  22350. return this.id = y3U.k0w(i.GAMES.push(this), 1),
  22351. this.config = null,
  22352. this.physicsConfig = f,
  22353. this.parent = "",
  22354. this.width = 800,
  22355. this.height = 600,
  22356. this._width = 800,
  22357. this._height = 600,
  22358. this.transparent = !1,
  22359. this.antialias = !0,
  22360. this.preserveDrawingBuffer = !1,
  22361. this.renderer = null,
  22362. this.renderType = i.AUTO,
  22363. this.state = null,
  22364. this.isBooted = !1,
  22365. this.isRunning = !1,
  22366. this.raf = null,
  22367. this.add = null,
  22368. this.make = null,
  22369. this.cache = null,
  22370. this.input = null,
  22371. this.load = null,
  22372. this.math = null,
  22373. this.net = null,
  22374. this.scale = null,
  22375. this.sound = null,
  22376. this.stage = null,
  22377. this.time = null,
  22378. this.tweens = null,
  22379. this.world = null,
  22380. this.physics = null,
  22381. this.rnd = null,
  22382. this.device = i.Device,
  22383. this.camera = null,
  22384. this.canvas = null,
  22385. this.context = null,
  22386. this.debug = null,
  22387. this.particles = null,
  22388. this.lockRender = !1,
  22389. this.stepping = !1,
  22390. this.pendingStep = !1,
  22391. this.stepCount = 0,
  22392. this.onPause = null,
  22393. this.onResume = null,
  22394. this.onBlur = null,
  22395. this.onFocus = null,
  22396. this._paused = !1,
  22397. this._codePaused = !1,
  22398. this.currentUpdateID = 0,
  22399. this.updatesThisFrame = 1,
  22400. this._deltaTime = 0,
  22401. this._lastCount = 0,
  22402. this._spiralling = 0,
  22403. this.fpsProblemNotifier = new i.Signal,
  22404. this.forceSingleUpdate = !1,
  22405. this._nextFpsNotification = 0,
  22406. y3U.G0w(1, arguments.length) && "object" == typeof arguments[0] ? this.parseConfig(arguments[0]) : (this.config = {
  22407. enableDebug : !0
  22408. }, "undefined" != typeof k && (this._width = k), "undefined" != typeof m && (this._height = m), "undefined" != typeof e && (this.renderType = e), "undefined" != typeof o && (this.parent = o), "undefined" != typeof u && (this.transparent = u), "undefined" != typeof q && (this.antialias = q), this.rnd = new i.RandomDataGenerator([(y3U.N0w(Date.now(), Math.random())).toString()]), this.state = new i.StateManager(this, n)),
  22409. this.device.whenReady(this.boot, this),
  22410. this;
  22411. },
  22412. i.Game.prototype = {
  22413. parseConfig : function (k) {
  22414. this.config = k,
  22415. "undefined" == typeof k.enableDebug && (this.config.enableDebug = !0),
  22416. k.width && (this._width = k.width),
  22417. k.height && (this._height = k.height),
  22418. k.renderer && (this.renderType = k.renderer),
  22419. k.parent && (this.parent = k.parent),
  22420. k.transparent && (this.transparent = k.transparent),
  22421. k.antialias && (this.antialias = k.antialias),
  22422. k.preserveDrawingBuffer && (this.preserveDrawingBuffer = k.preserveDrawingBuffer),
  22423. k.physicsConfig && (this.physicsConfig = k.physicsConfig);
  22424. var m = [(y3U.L0w(Date.now(), Math.random())).toString()];
  22425. k.seed && (m = k.seed),
  22426. this.rnd = new i.RandomDataGenerator(m);
  22427. var e = null;
  22428. k.state && (e = k.state),
  22429. this.state = new i.StateManager(this, e);
  22430. },
  22431. boot : function () {
  22432. this.isBooted || (this.onPause = new i.Signal, this.onResume = new i.Signal, this.onBlur = new i.Signal, this.onFocus = new i.Signal, this.isBooted = !0, this.math = i.Math, this.scale = new i.ScaleManager(this, this._width, this._height), this.stage = new i.Stage(this), this.setUpRenderer(), this.world = new i.World(this), this.add = new i.GameObjectFactory(this), this.make = new i.GameObjectCreator(this), this.cache = new i.Cache(this), this.load = new i.Loader(this), this.time = new i.Time(this), this.tweens = new i.TweenManager(this), this.input = new i.Input(this), this.sound = new i.SoundManager(this), this.physics = new i.Physics(this, this.physicsConfig), this.particles = new i.Particles(this), this.plugins = new i.PluginManager(this), this.net = new i.Net(this), this.time.boot(), this.stage.boot(), this.world.boot(), this.scale.boot(), this.input.boot(), this.sound.boot(), this.state.boot(), this.config.enableDebug ? (this.debug = new i.Utils.Debug(this), this.debug.boot()) : this.debug = {
  22433. preUpdate : function () {},
  22434. update : function () {},
  22435. reset : function () {}
  22436. }, this.showDebugHeader(), this.isRunning = !0, this.raf = this.config && this.config.forceSetTimeOut ? new i.RequestAnimationFrame(this, this.config.forceSetTimeOut) : new i.RequestAnimationFrame(this, !1), this.raf.start());
  22437. },
  22438. showDebugHeader : function () {
  22439. var k = i.VERSION,
  22440. m = "Canvas",
  22441. e = "HTML Audio",
  22442. o = 1;
  22443. if (y3U.z0w(this.renderType, i.WEBGL) ? (m = "WebGL", o++) : y3U.J0w(this.renderType, i.HEADLESS) && (m = "Headless"), this.device.webAudio && (e = "WebAudio", o++), this.device.chrome) {
  22444. for (var n = ["%c %c %c Phaser v" + k + " | Pixi.js " + PIXI.VERSION + " | " + m + " | " + e + " %c %c %c http://phaser.io %c♥%c♥%c♥", "background: #3db79f", "background: #329582", "color: #ffffff; background: #226558;", "background: #329582", "background: #3db79f", "background: #ffffff"], u = 0; y3U.H0w(3, u); u++)
  22445. n.push(y3U.h0w(o, u) ? "color: #ff2424; background: #fff" : "color: #959595; background: #fff");
  22446. console.log.apply(console, n);
  22447. } else
  22448. r2w8n[E8n]['console'] && console.log("Phaser v" + k + " | Pixi.js " + PIXI.VERSION + " | " + m + " | " + e + " | http://phaser.io");
  22449. },
  22450. setUpRenderer : function () {
  22451. if (this.canvas = this.config.canvasID ? i.Canvas.create(this.width, this.height, this.config.canvasID) : i.Canvas.create(this.width, this.height), this.config.canvasStyle ? this.canvas.style = this.config.canvasStyle : this.canvas.style["-webkit-full-screen"] = "width: 100%; height: 100%", this.device.cocoonJS && (this.canvas.screencanvas = y3U.F0w(this.renderType, i.CANVAS) ? !0 : !1), y3U.M0w(this.renderType, i.HEADLESS) || y3U.n0w(this.renderType, i.CANVAS) || y3U.f0w(this.renderType, i.AUTO) && this.device.webGL === !1) {
  22452. if (!this.device.canvas)
  22453. throw new Error("Phaser.Game - cannot create Canvas or WebGL context, aborting.");
  22454. y3U.K0w(this.renderType, i.AUTO) && (this.renderType = i.CANVAS),
  22455. this.renderer = new PIXI.CanvasRenderer(this.width, this.height, {
  22456. view : this.canvas,
  22457. transparent : this.transparent,
  22458. resolution : 1,
  22459. clearBeforeRender : !0
  22460. }),
  22461. this.context = this.renderer.context;
  22462. } else
  22463. this.renderType = i.WEBGL, this.renderer = new PIXI.WebGLRenderer(this.width, this.height, {
  22464. view : this.canvas,
  22465. transparent : this.transparent,
  22466. resolution : 1,
  22467. antialias : this.antialias,
  22468. preserveDrawingBuffer : this.preserveDrawingBuffer
  22469. }), this.context = null;
  22470. y3U.B0w(this.renderType, i.HEADLESS) && (this.stage.smoothed = this.antialias, i.Canvas.addToDOM(this.canvas, this.parent, !1), i.Canvas.setTouchAction(this.canvas));
  22471. },
  22472. update : function (k) {
  22473. if (this.time.update(k), y3U.l0w(this._spiralling, 1) && !this.forceSingleUpdate)
  22474. y3U.X0w(this.time.time, this._nextFpsNotification) && (this._nextFpsNotification = this.time.time + 1e4, this.fpsProblemNotifier.dispatch()), this._deltaTime = 0, this._spiralling = 0, this.updateRender(y3U.Y0w(this.time.slowMotion, this.time.desiredFps));
  22475. else {
  22476. var m = y3U.U7w(1e3, this.time.slowMotion, this.time.desiredFps);
  22477. this._deltaTime += Math.max(Math.min(y3U.G7w(3, m), this.time.elapsed), 0);
  22478. var e = 0;
  22479. for (this.updatesThisFrame = Math.floor(y3U.N7w(this._deltaTime, m)), this.forceSingleUpdate && (this.updatesThisFrame = Math.min(1, this.updatesThisFrame)); y3U.L7w(this._deltaTime, m) && (this._deltaTime -= m, this.currentUpdateID = e, this.updateLogic(y3U.z7w(1, this.time.desiredFps)), this.stage.updateTransform(), e++, !this.forceSingleUpdate || y3U.J7w(1, e)); );
  22480. y3U.H7w(e, this._lastCount) ? this._spiralling++ : y3U.h7w(e, this._lastCount) && (this._spiralling = 0),
  22481. this._lastCount = e,
  22482. this.updateRender(y3U.F7w(this._deltaTime, m));
  22483. }
  22484. },
  22485. updateLogic : function (k) {
  22486. this._paused || this.pendingStep ? (this.scale.pauseUpdate(), this.state.pauseUpdate(), this.debug.preUpdate()) : (this.stepping && (this.pendingStep = !0), this.scale.preUpdate(), this.debug.preUpdate(), this.world.camera.preUpdate(), this.physics.preUpdate(), this.state.preUpdate(k), this.plugins.preUpdate(k), this.stage.preUpdate(), this.state.update(), this.stage.update(), this.tweens.update(k), this.sound.update(), this.input.update(), this.physics.update(), this.particles.update(), this.plugins.update(), this.stage.postUpdate(), this.plugins.postUpdate());
  22487. },
  22488. updateRender : function (k) {
  22489. this.lockRender || (this.state.preRender(k), this.renderer.render(this.stage), this.plugins.render(k), this.state.render(k), this.plugins.postRender(k));
  22490. },
  22491. enableStep : function () {
  22492. this.stepping = !0,
  22493. this.pendingStep = !1,
  22494. this.stepCount = 0;
  22495. },
  22496. disableStep : function () {
  22497. this.stepping = !1,
  22498. this.pendingStep = !1;
  22499. },
  22500. step : function () {
  22501. this.pendingStep = !1,
  22502. this.stepCount++;
  22503. },
  22504. destroy : function () {
  22505. this.raf.stop(),
  22506. this.state.destroy(),
  22507. this.sound.destroy(),
  22508. this.scale.destroy(),
  22509. this.stage.destroy(),
  22510. this.input.destroy(),
  22511. this.physics.destroy(),
  22512. this.state = null,
  22513. this.cache = null,
  22514. this.input = null,
  22515. this.load = null,
  22516. this.sound = null,
  22517. this.stage = null,
  22518. this.time = null,
  22519. this.world = null,
  22520. this.isBooted = !1,
  22521. y3U.M7w(this.renderType, i.WEBGL) ? (PIXI.glContexts[this.renderer.glContextId] = null, this.renderer.projection = null, this.renderer.offset = null, this.renderer.shaderManager.destroy(), this.renderer.spriteBatch.destroy(), this.renderer.maskManager.destroy(), this.renderer.filterManager.destroy(), this.renderer.shaderManager = null, this.renderer.spriteBatch = null, this.renderer.maskManager = null, this.renderer.filterManager = null, this.renderer.gl = null, this.renderer.renderSession = null, i.Canvas.removeFromDOM(this.canvas)) : this.renderer.destroy(!0),
  22522. i.GAMES[this.id] = null;
  22523. },
  22524. gamePaused : function (k) {
  22525. this._paused || (this._paused = !0, this.time.gamePaused(), this.sound.setMute(), this.onPause.dispatch(k));
  22526. },
  22527. gameResumed : function (k) {
  22528. this._paused && !this._codePaused && (this._paused = !1, this.time.gameResumed(), this.input.reset(), this.sound.unsetMute(), this.onResume.dispatch(k));
  22529. },
  22530. focusLoss : function (k) {
  22531. this.onBlur.dispatch(k),
  22532. this.stage.disableVisibilityChange || this.gamePaused(k);
  22533. },
  22534. focusGain : function (k) {
  22535. this.onFocus.dispatch(k),
  22536. this.stage.disableVisibilityChange || this.gameResumed(k);
  22537. }
  22538. },
  22539. i.Game.prototype.constructor = i.Game,
  22540. Object.defineProperty(i.Game.prototype, "paused", {
  22541. get : function () {
  22542. return this._paused;
  22543. },
  22544. set : function (k) {
  22545. k === !0 ? (this._paused === !1 && (this._paused = !0, this.sound.setMute(), this.time.gamePaused(), this.onPause.dispatch(this)), this._codePaused = !0) : (this._paused && (this._paused = !1, this.input.reset(), this.sound.unsetMute(), this.time.gameResumed(), this.onResume.dispatch(this)), this._codePaused = !1);
  22546. }
  22547. }),
  22548. i.Input = function (k) {
  22549. this.game = k,
  22550. this.hitCanvas = null,
  22551. this.hitContext = null,
  22552. this.moveCallbacks = [],
  22553. this.moveCallback = null,
  22554. this.moveCallbackContext = this,
  22555. this.pollRate = 0,
  22556. this.enabled = !0,
  22557. this.multiInputOverride = i.Input.MOUSE_TOUCH_COMBINE,
  22558. this.position = null,
  22559. this.speed = null,
  22560. this.circle = null,
  22561. this.scale = null,
  22562. this.maxPointers = -1,
  22563. this.currentPointers = 0,
  22564. this.tapRate = 200,
  22565. this.doubleTapRate = 300,
  22566. this.holdRate = 2e3,
  22567. this.justPressedRate = 200,
  22568. this.justReleasedRate = 200,
  22569. this.recordPointerHistory = !1,
  22570. this.recordRate = 100,
  22571. this.recordLimit = 100,
  22572. this.pointer1 = null,
  22573. this.pointer2 = null,
  22574. this.pointer3 = null,
  22575. this.pointer4 = null,
  22576. this.pointer5 = null,
  22577. this.pointer6 = null,
  22578. this.pointer7 = null,
  22579. this.pointer8 = null,
  22580. this.pointer9 = null,
  22581. this.pointer10 = null,
  22582. this.pointers = [],
  22583. this.activePointer = null,
  22584. this.mousePointer = null,
  22585. this.mouse = null,
  22586. this.keyboard = null,
  22587. this.touch = null,
  22588. this.mspointer = null,
  22589. this.gamepad = null,
  22590. this.resetLocked = !1,
  22591. this.onDown = null,
  22592. this.onUp = null,
  22593. this.onTap = null,
  22594. this.onHold = null,
  22595. this.minPriorityID = 0,
  22596. this.interactiveItems = new i.ArraySet,
  22597. this._localPoint = new i.Point,
  22598. this._pollCounter = 0,
  22599. this._oldPosition = null,
  22600. this._x = 0,
  22601. this._y = 0;
  22602. },
  22603. i.Input.MOUSE_OVERRIDES_TOUCH = 0,
  22604. i.Input.TOUCH_OVERRIDES_MOUSE = 1,
  22605. i.Input.MOUSE_TOUCH_COMBINE = 2,
  22606. i.Input.MAX_POINTERS = 10,
  22607. i.Input.prototype = {
  22608. boot : function () {
  22609. this.mousePointer = new i.Pointer(this.game, 0),
  22610. this.addPointer(),
  22611. this.addPointer(),
  22612. this.mouse = new i.Mouse(this.game),
  22613. this.keyboard = new i.Keyboard(this.game),
  22614. this.touch = new i.Touch(this.game),
  22615. this.mspointer = new i.MSPointer(this.game),
  22616. this.gamepad = new i.Gamepad(this.game),
  22617. this.onDown = new i.Signal,
  22618. this.onUp = new i.Signal,
  22619. this.onTap = new i.Signal,
  22620. this.onHold = new i.Signal,
  22621. this.scale = new i.Point(1, 1),
  22622. this.speed = new i.Point,
  22623. this.position = new i.Point,
  22624. this._oldPosition = new i.Point,
  22625. this.circle = new i.Circle(0, 0, 44),
  22626. this.activePointer = this.mousePointer,
  22627. this.currentPointers = 0,
  22628. this.hitCanvas = r2w8n[H8n]['createElement']("canvas"),
  22629. this.hitCanvas.width = 1,
  22630. this.hitCanvas.height = 1,
  22631. this.hitContext = this.hitCanvas.getContext("2d"),
  22632. this.mouse.start(),
  22633. this.keyboard.start(),
  22634. this.touch.start(),
  22635. this.mspointer.start(),
  22636. this.mousePointer.active = !0;
  22637. var m = this;
  22638. this._onClickTrampoline = function (k) {
  22639. m.onClickTrampoline(k);
  22640. },
  22641. this.game.canvas.addEventListener("click", this._onClickTrampoline, !1);
  22642. },
  22643. destroy : function () {
  22644. this.mouse.stop(),
  22645. this.keyboard.stop(),
  22646. this.touch.stop(),
  22647. this.mspointer.stop(),
  22648. this.gamepad.stop(),
  22649. this.moveCallbacks = [],
  22650. this.game.canvas.removeEventListener("click", this._onClickTrampoline);
  22651. },
  22652. addMoveCallback : function (k, m) {
  22653. return y3U.n7w(this.moveCallbacks.push({
  22654. callback : k,
  22655. context : m
  22656. }), 1);
  22657. },
  22658. deleteMoveCallback : function (k) {
  22659. this.moveCallbacks[k] && this.moveCallbacks.splice(k, 1);
  22660. },
  22661. addPointer : function () {
  22662. if (y3U.f7w(this.pointers.length, i.Input.MAX_POINTERS))
  22663. return console.warn("Phaser.Input.addPointer: only " + i.Input.MAX_POINTERS + " pointer allowed"), null;
  22664. var k = this.pointers.length + 1,
  22665. m = new i.Pointer(this.game, k);
  22666. return this.pointers.push(m),
  22667. this["pointer" + k] = m,
  22668. m;
  22669. },
  22670. update : function () {
  22671. if (this.keyboard.update(), y3U.K7w(this.pollRate, 0) && y3U.B7w(this._pollCounter, this.pollRate))
  22672. return void this._pollCounter++;
  22673. this.speed.x = y3U.l7w(this.position.x, this._oldPosition.x),
  22674. this.speed.y = y3U.X7w(this.position.y, this._oldPosition.y),
  22675. this._oldPosition.copyFrom(this.position),
  22676. this.mousePointer.update(),
  22677. this.gamepad.active && this.gamepad.update();
  22678. for (var k = 0; y3U.Y7w(k, this.pointers.length); k++)
  22679. this.pointers[k].update();
  22680. this._pollCounter = 0;
  22681. },
  22682. reset : function (k) {
  22683. if (this.game.isBooted && !this.resetLocked) {
  22684. "undefined" == typeof k && (k = !1),
  22685. this.keyboard.reset(k),
  22686. this.mousePointer.reset(),
  22687. this.gamepad.reset();
  22688. for (var m = 0; y3U.U4w(m, this.pointers.length); m++)
  22689. this.pointers[m].reset();
  22690. this.currentPointers = 0,
  22691. y3U.T4w("none", this.game.canvas.style.cursor) && (this.game.canvas.style.cursor = "inherit"),
  22692. k && (this.onDown.dispose(), this.onUp.dispose(), this.onTap.dispose(), this.onHold.dispose(), this.onDown = new i.Signal, this.onUp = new i.Signal, this.onTap = new i.Signal, this.onHold = new i.Signal, this.moveCallbacks = []),
  22693. this._pollCounter = 0;
  22694. }
  22695. },
  22696. resetSpeed : function (k, m) {
  22697. this._oldPosition.setTo(k, m),
  22698. this.speed.setTo(0, 0);
  22699. },
  22700. startPointer : function (k) {
  22701. if (y3U.S4w(this.maxPointers, 0) && y3U.I4w(this.countActivePointers(this.maxPointers), this.maxPointers))
  22702. return null;
  22703. if (!this.pointer1.active)
  22704. return this.pointer1.start(k);
  22705. if (!this.pointer2.active)
  22706. return this.pointer2.start(k);
  22707. for (var m = 2; y3U.C4w(m, this.pointers.length); m++) {
  22708. var e = this.pointers[m];
  22709. if (!e.active)
  22710. return e.start(k);
  22711. }
  22712. return null;
  22713. },
  22714. updatePointer : function (k) {
  22715. if (this.pointer1.active && y3U.v4w(this.pointer1.identifier, k.identifier))
  22716. return this.pointer1.move(k);
  22717. if (this.pointer2.active && y3U.t4w(this.pointer2.identifier, k.identifier))
  22718. return this.pointer2.move(k);
  22719. for (var m = 2; y3U.y4w(m, this.pointers.length); m++) {
  22720. var e = this.pointers[m];
  22721. if (e.active && y3U.o4w(e.identifier, k.identifier))
  22722. return e.move(k);
  22723. }
  22724. return null;
  22725. },
  22726. stopPointer : function (k) {
  22727. if (this.pointer1.active && y3U.x4w(this.pointer1.identifier, k.identifier))
  22728. return this.pointer1.stop(k);
  22729. if (this.pointer2.active && y3U.p4w(this.pointer2.identifier, k.identifier))
  22730. return this.pointer2.stop(k);
  22731. for (var m = 2; y3U.q4w(m, this.pointers.length); m++) {
  22732. var e = this.pointers[m];
  22733. if (e.active && y3U.b4w(e.identifier, k.identifier))
  22734. return e.stop(k);
  22735. }
  22736. return null;
  22737. },
  22738. countActivePointers : function (k) {
  22739. "undefined" == typeof k && (k = this.pointers.length);
  22740. for (var m = k, e = 0; y3U.j4w(e, this.pointers.length) && y3U.d4w(m, 0); e++) {
  22741. var o = this.pointers[e];
  22742. o.active && m--;
  22743. }
  22744. return this.currentPointers = y3U.c4w(k, m),
  22745. y3U.s4w(k, m);
  22746. },
  22747. getPointer : function (k) {
  22748. "undefined" == typeof k && (k = !1);
  22749. for (var m = 0; y3U.Q4w(m, this.pointers.length); m++) {
  22750. var e = this.pointers[m];
  22751. if (y3U.a3w(e.active, k))
  22752. return e;
  22753. }
  22754. return null;
  22755. },
  22756. getPointerFromIdentifier : function (k) {
  22757. for (var m = 0; y3U.W3w(m, this.pointers.length); m++) {
  22758. var e = this.pointers[m];
  22759. if (y3U.m3w(e.identifier, k))
  22760. return e;
  22761. }
  22762. return null;
  22763. },
  22764. getPointerFromId : function (k) {
  22765. for (var m = 0; y3U.A3w(m, this.pointers.length); m++) {
  22766. var e = this.pointers[m];
  22767. if (y3U.w3w(e.pointerId, k))
  22768. return e;
  22769. }
  22770. return null;
  22771. },
  22772. getLocalPosition : function (k, m, e) {
  22773. "undefined" == typeof e && (e = new i.Point);
  22774. var o = k.worldTransform,
  22775. n = 1 / (y3U.E3w(o.a, o.d) + o.c * -o.b);
  22776. return e.setTo(y3U.e3w(o.d, n, m.x) + -o.c * n * m.y + y3U.o3w((o.ty * o.c - o.tx * o.d), n), y3U.x3w(o.a, n, m.y) + -o.b * n * m.x + (-o.ty * o.a + y3U.n3w(o.tx, o.b)) * n);
  22777. },
  22778. hitTest : function (k, m, e) {
  22779. if (!k.worldVisible)
  22780. return !1;
  22781. if (this.getLocalPosition(k, m, this._localPoint), e.copyFrom(this._localPoint), k.hitArea && k.hitArea.contains)
  22782. return k.hitArea.contains(this._localPoint.x, this._localPoint.y);
  22783. if (y3U.f3w(k, PIXI.Sprite)) {
  22784. var o = k.texture.frame.width,
  22785. n = k.texture.frame.height,
  22786. u = -o * k.anchor.x;
  22787. if (y3U.K3w(this._localPoint.x, u) && y3U.B3w(this._localPoint.x, u + o)) {
  22788. var q = -n * k.anchor.y;
  22789. if (y3U.l3w(this._localPoint.y, q) && y3U.X3w(this._localPoint.y, q + n))
  22790. return !0;
  22791. }
  22792. } else if (y3U.Y3w(k, i.TileSprite)) {
  22793. var o = k.width,
  22794. n = k.height,
  22795. u = -o * k.anchor.x;
  22796. if (y3U.U9w(this._localPoint.x, u) && y3U.T9w(this._localPoint.x, u + o)) {
  22797. var q = -n * k.anchor.y;
  22798. if (y3U.S9w(this._localPoint.y, q) && y3U.I9w(this._localPoint.y, q + n))
  22799. return !0;
  22800. }
  22801. } else if (y3U.C9w(k, i.Graphics))
  22802. for (var f = 0; y3U.v9w(f, k.graphicsData.length); f++) {
  22803. var j = k.graphicsData[f];
  22804. if (j.fill && j.shape && j.shape.contains(this._localPoint.x, this._localPoint.y))
  22805. return !0;
  22806. }
  22807. for (var f = 0, U0 = k.children.length; y3U.t9w(U0, f); f++)
  22808. if (this.hitTest(k.children[f], m, e))
  22809. return !0;
  22810. return !1;
  22811. },
  22812. onClickTrampoline : function () {
  22813. this.activePointer.processClickTrampolines();
  22814. }
  22815. },
  22816. i.Input.prototype.constructor = i.Input,
  22817. Object.defineProperty(i.Input.prototype, "x", {
  22818. get : function () {
  22819. return this._x;
  22820. },
  22821. set : function (k) {
  22822. this._x = Math.floor(k);
  22823. }
  22824. }),
  22825. Object.defineProperty(i.Input.prototype, "y", {
  22826. get : function () {
  22827. return this._y;
  22828. },
  22829. set : function (k) {
  22830. this._y = Math.floor(k);
  22831. }
  22832. }),
  22833. Object.defineProperty(i.Input.prototype, "pollLocked", {
  22834. get : function () {
  22835. return y3U.y9w(this.pollRate, 0) && y3U.o9w(this._pollCounter, this.pollRate);
  22836. }
  22837. }),
  22838. Object.defineProperty(i.Input.prototype, "totalInactivePointers", {
  22839. get : function () {
  22840. return y3U.x9w(this.pointers.length, this.countActivePointers());
  22841. }
  22842. }),
  22843. Object.defineProperty(i.Input.prototype, "totalActivePointers", {
  22844. get : function () {
  22845. return this.countActivePointers();
  22846. }
  22847. }),
  22848. Object.defineProperty(i.Input.prototype, "worldX", {
  22849. get : function () {
  22850. return this.game.camera.view.x + this.x;
  22851. }
  22852. }),
  22853. Object.defineProperty(i.Input.prototype, "worldY", {
  22854. get : function () {
  22855. return this.game.camera.view.y + this.y;
  22856. }
  22857. }),
  22858. Object.defineProperty(i.Input.prototype, "disabled", {
  22859. get : function () {
  22860. return !this.enabled;
  22861. },
  22862. set : function (k) {
  22863. this.enabled = !k;
  22864. }
  22865. }),
  22866. i.Key = function (k, m) {
  22867. this.game = k,
  22868. this._enabled = !0,
  22869. this.event = null,
  22870. this.isDown = !1,
  22871. this.isUp = !0,
  22872. this.altKey = !1,
  22873. this.ctrlKey = !1,
  22874. this.shiftKey = !1,
  22875. this.timeDown = 0,
  22876. this.duration = 0,
  22877. this.timeUp = -2500,
  22878. this.repeats = 0,
  22879. this.keyCode = m,
  22880. this.onDown = new i.Signal,
  22881. this.onHoldCallback = null,
  22882. this.onHoldContext = null,
  22883. this.onUp = new i.Signal,
  22884. this._justDown = !1,
  22885. this._justUp = !1;
  22886. },
  22887. i.Key.prototype = {
  22888. update : function () {
  22889. this._enabled && this.isDown && (this.duration = y3U.p9w(this.game.time.time, this.timeDown), this.repeats++, this.onHoldCallback && this.onHoldCallback.call(this.onHoldContext, this));
  22890. },
  22891. processKeyDown : function (k) {
  22892. this._enabled && (this.event = k, this.isDown || (this.altKey = k.altKey, this.ctrlKey = k.ctrlKey, this.shiftKey = k.shiftKey, this.isDown = !0, this.isUp = !1, this.timeDown = this.game.time.time, this.duration = 0, this.repeats = 0, this._justDown = !0, this.onDown.dispatch(this)));
  22893. },
  22894. processKeyUp : function (k) {
  22895. this._enabled && (this.event = k, this.isUp || (this.isDown = !1, this.isUp = !0, this.timeUp = this.game.time.time, this.duration = y3U.q9w(this.game.time.time, this.timeDown), this._justUp = !0, this.onUp.dispatch(this)));
  22896. },
  22897. reset : function (k) {
  22898. "undefined" == typeof k && (k = !0),
  22899. this.isDown = !1,
  22900. this.isUp = !0,
  22901. this.timeUp = this.game.time.time,
  22902. this.duration = 0,
  22903. this._enabled = !0,
  22904. this._justDown = !1,
  22905. this._justUp = !1,
  22906. k && (this.onDown.removeAll(), this.onUp.removeAll(), this.onHoldCallback = null, this.onHoldContext = null);
  22907. },
  22908. downDuration : function (k) {
  22909. return "undefined" == typeof k && (k = 50),
  22910. this.isDown && y3U.b9w(this.duration, k);
  22911. },
  22912. upDuration : function (k) {
  22913. return "undefined" == typeof k && (k = 50),
  22914. !this.isDown && y3U.j9w(this.game.time.time - this.timeUp, k);
  22915. }
  22916. },
  22917. Object.defineProperty(i.Key.prototype, "justDown", {
  22918. get : function () {
  22919. var k = this._justDown;
  22920. return this._justDown = !1,
  22921. k;
  22922. }
  22923. }),
  22924. Object.defineProperty(i.Key.prototype, "justUp", {
  22925. get : function () {
  22926. var k = this._justUp;
  22927. return this._justUp = !1,
  22928. k;
  22929. }
  22930. }),
  22931. Object.defineProperty(i.Key.prototype, "enabled", {
  22932. get : function () {
  22933. return this._enabled;
  22934. },
  22935. set : function (k) {
  22936. k = !!k,
  22937. y3U.d9w(k, this._enabled) && (k || this.reset(!1), this._enabled = k);
  22938. }
  22939. }),
  22940. i.Key.prototype.constructor = i.Key,
  22941. i.Keyboard = function (k) {
  22942. this.game = k,
  22943. this.enabled = !0,
  22944. this.event = null,
  22945. this.pressEvent = null,
  22946. this.callbackContext = this,
  22947. this.onDownCallback = null,
  22948. this.onPressCallback = null,
  22949. this.onUpCallback = null,
  22950. this._keys = [],
  22951. this._capture = [],
  22952. this._onKeyDown = null,
  22953. this._onKeyPress = null,
  22954. this._onKeyUp = null,
  22955. this._i = 0,
  22956. this._k = 0;
  22957. },
  22958. i.Keyboard.prototype = {
  22959. addCallbacks : function (k, m, e, o) {
  22960. this.callbackContext = k,
  22961. "undefined" != typeof m && (this.onDownCallback = m),
  22962. "undefined" != typeof e && (this.onUpCallback = e),
  22963. "undefined" != typeof o && (this.onPressCallback = o);
  22964. },
  22965. addKey : function (k) {
  22966. return this._keys[k] || (this._keys[k] = new i.Key(this.game, k), this.addKeyCapture(k)),
  22967. this._keys[k];
  22968. },
  22969. removeKey : function (k) {
  22970. this._keys[k] && (this._keys[k] = null, this.removeKeyCapture(k));
  22971. },
  22972. createCursorKeys : function () {
  22973. return {
  22974. up : this.addKey(i.Keyboard.UP),
  22975. down : this.addKey(i.Keyboard.DOWN),
  22976. left : this.addKey(i.Keyboard.LEFT),
  22977. right : this.addKey(i.Keyboard.RIGHT)
  22978. };
  22979. },
  22980. start : function () {
  22981. if (!this.game.device.cocoonJS && y3U.c9w(null, this._onKeyDown)) {
  22982. var m = this;
  22983. this._onKeyDown = function (k) {
  22984. return m.processKeyDown(k);
  22985. },
  22986. this._onKeyUp = function (k) {
  22987. return m.processKeyUp(k);
  22988. },
  22989. this._onKeyPress = function (k) {
  22990. return m.processKeyPress(k);
  22991. },
  22992. r2w8n[E8n]['addEventListener']("keydown", this._onKeyDown, !1),
  22993. r2w8n[E8n]['addEventListener']("keyup", this._onKeyUp, !1),
  22994. r2w8n[E8n]['addEventListener']("keypress", this._onKeyPress, !1);
  22995. }
  22996. },
  22997. stop : function () {
  22998. r2w8n[E8n]['removeEventListener']("keydown", this._onKeyDown),
  22999. r2w8n[E8n]['removeEventListener']("keyup", this._onKeyUp),
  23000. r2w8n[E8n]['removeEventListener']("keypress", this._onKeyPress),
  23001. this._onKeyDown = null,
  23002. this._onKeyUp = null,
  23003. this._onKeyPress = null;
  23004. },
  23005. destroy : function () {
  23006. this.stop(),
  23007. this.clearCaptures(),
  23008. this._keys.length = 0,
  23009. this._i = 0;
  23010. },
  23011. addKeyCapture : function (k) {
  23012. if ("object" == typeof k)
  23013. for (var m in k)
  23014. this._capture[k[m]] = !0;
  23015. else
  23016. this._capture[k] = !0;
  23017. },
  23018. removeKeyCapture : function (k) {
  23019. delete this._capture[k];
  23020. },
  23021. clearCaptures : function () {
  23022. this._capture = {};
  23023. },
  23024. update : function () {
  23025. for (this._i = this._keys.length; this._i--; )
  23026. this._keys[this._i] && this._keys[this._i].update();
  23027. },
  23028. processKeyDown : function (k) {
  23029. this.event = k,
  23030. this.game.input.enabled && this.enabled && (this._capture[k.keyCode] && k.preventDefault(), this._keys[k.keyCode] || (this._keys[k.keyCode] = new i.Key(this.game, k.keyCode)), this._keys[k.keyCode].processKeyDown(k), this._k = k.keyCode, this.onDownCallback && this.onDownCallback.call(this.callbackContext, k));
  23031. },
  23032. processKeyPress : function (k) {
  23033. this.pressEvent = k,
  23034. this.game.input.enabled && this.enabled && this.onPressCallback && this.onPressCallback.call(this.callbackContext, String.fromCharCode(k.charCode), k);
  23035. },
  23036. processKeyUp : function (k) {
  23037. this.event = k,
  23038. this.game.input.enabled && this.enabled && (this._capture[k.keyCode] && k.preventDefault(), this._keys[k.keyCode] || (this._keys[k.keyCode] = new i.Key(this.game, k.keyCode)), this._keys[k.keyCode].processKeyUp(k), this.onUpCallback && this.onUpCallback.call(this.callbackContext, k));
  23039. },
  23040. reset : function (k) {
  23041. "undefined" == typeof k && (k = !0),
  23042. this.event = null;
  23043. for (var m = this._keys.length; m--; )
  23044. this._keys[m] && this._keys[m].reset(k);
  23045. },
  23046. downDuration : function (k, m) {
  23047. return this._keys[k] ? this._keys[k].downDuration(m) : null;
  23048. },
  23049. upDuration : function (k, m) {
  23050. return this._keys[k] ? this._keys[k].upDuration(m) : null;
  23051. },
  23052. isDown : function (k) {
  23053. return this._keys[k] ? this._keys[k].isDown : null;
  23054. }
  23055. },
  23056. Object.defineProperty(i.Keyboard.prototype, "disabled", {
  23057. get : function () {
  23058. return !this.enabled;
  23059. },
  23060. set : function (k) {
  23061. this.enabled = !k;
  23062. }
  23063. }),
  23064. Object.defineProperty(i.Keyboard.prototype, "lastChar", {
  23065. get : function () {
  23066. return y3U.s9w(32, this.event.charCode) ? "" : String.fromCharCode(this.pressEvent.charCode);
  23067. }
  23068. }),
  23069. Object.defineProperty(i.Keyboard.prototype, "lastKey", {
  23070. get : function () {
  23071. return this._keys[this._k];
  23072. }
  23073. }),
  23074. i.Keyboard.prototype.constructor = i.Keyboard,
  23075. i.Keyboard.A = "A".charCodeAt(0),
  23076. i.Keyboard.B = "B".charCodeAt(0),
  23077. i.Keyboard.C = "C".charCodeAt(0),
  23078. i.Keyboard.D = "D".charCodeAt(0),
  23079. i.Keyboard.E = "E".charCodeAt(0),
  23080. i.Keyboard.F = "F".charCodeAt(0),
  23081. i.Keyboard.G = "G".charCodeAt(0),
  23082. i.Keyboard.H = "H".charCodeAt(0),
  23083. i.Keyboard.I = "I".charCodeAt(0),
  23084. i.Keyboard.J = "J".charCodeAt(0),
  23085. i.Keyboard.K = "K".charCodeAt(0),
  23086. i.Keyboard.L = "L".charCodeAt(0),
  23087. i.Keyboard.M = "M".charCodeAt(0),
  23088. i.Keyboard.N = "N".charCodeAt(0),
  23089. i.Keyboard.O = "O".charCodeAt(0),
  23090. i.Keyboard.P = "P".charCodeAt(0),
  23091. i.Keyboard.Q = "Q".charCodeAt(0),
  23092. i.Keyboard.R = "R".charCodeAt(0),
  23093. i.Keyboard.S = "S".charCodeAt(0),
  23094. i.Keyboard.T = "T".charCodeAt(0),
  23095. i.Keyboard.U = "U".charCodeAt(0),
  23096. i.Keyboard.V = "V".charCodeAt(0),
  23097. i.Keyboard.W = "W".charCodeAt(0),
  23098. i.Keyboard.X = "X".charCodeAt(0),
  23099. i.Keyboard.Y = "Y".charCodeAt(0),
  23100. i.Keyboard.Z = "Z".charCodeAt(0),
  23101. i.Keyboard.ZERO = "0".charCodeAt(0),
  23102. i.Keyboard.ONE = "1".charCodeAt(0),
  23103. i.Keyboard.TWO = "2".charCodeAt(0),
  23104. i.Keyboard.THREE = "3".charCodeAt(0),
  23105. i.Keyboard.FOUR = "4".charCodeAt(0),
  23106. i.Keyboard.FIVE = "5".charCodeAt(0),
  23107. i.Keyboard.SIX = "6".charCodeAt(0),
  23108. i.Keyboard.SEVEN = "7".charCodeAt(0),
  23109. i.Keyboard.EIGHT = "8".charCodeAt(0),
  23110. i.Keyboard.NINE = "9".charCodeAt(0),
  23111. i.Keyboard.NUMPAD_0 = 96,
  23112. i.Keyboard.NUMPAD_1 = 97,
  23113. i.Keyboard.NUMPAD_2 = 98,
  23114. i.Keyboard.NUMPAD_3 = 99,
  23115. i.Keyboard.NUMPAD_4 = 100,
  23116. i.Keyboard.NUMPAD_5 = 101,
  23117. i.Keyboard.NUMPAD_6 = 102,
  23118. i.Keyboard.NUMPAD_7 = 103,
  23119. i.Keyboard.NUMPAD_8 = 104,
  23120. i.Keyboard.NUMPAD_9 = 105,
  23121. i.Keyboard.NUMPAD_MULTIPLY = 106,
  23122. i.Keyboard.NUMPAD_ADD = 107,
  23123. i.Keyboard.NUMPAD_ENTER = 108,
  23124. i.Keyboard.NUMPAD_SUBTRACT = 109,
  23125. i.Keyboard.NUMPAD_DECIMAL = 110,
  23126. i.Keyboard.NUMPAD_DIVIDE = 111,
  23127. i.Keyboard.F1 = 112,
  23128. i.Keyboard.F2 = 113,
  23129. i.Keyboard.F3 = 114,
  23130. i.Keyboard.F4 = 115,
  23131. i.Keyboard.F5 = 116,
  23132. i.Keyboard.F6 = 117,
  23133. i.Keyboard.F7 = 118,
  23134. i.Keyboard.F8 = 119,
  23135. i.Keyboard.F9 = 120,
  23136. i.Keyboard.F10 = 121,
  23137. i.Keyboard.F11 = 122,
  23138. i.Keyboard.F12 = 123,
  23139. i.Keyboard.F13 = 124,
  23140. i.Keyboard.F14 = 125,
  23141. i.Keyboard.F15 = 126,
  23142. i.Keyboard.COLON = 186,
  23143. i.Keyboard.EQUALS = 187,
  23144. i.Keyboard.UNDERSCORE = 189,
  23145. i.Keyboard.QUESTION_MARK = 191,
  23146. i.Keyboard.TILDE = 192,
  23147. i.Keyboard.OPEN_BRACKET = 219,
  23148. i.Keyboard.BACKWARD_SLASH = 220,
  23149. i.Keyboard.CLOSED_BRACKET = 221,
  23150. i.Keyboard.QUOTES = 222,
  23151. i.Keyboard.BACKSPACE = 8,
  23152. i.Keyboard.TAB = 9,
  23153. i.Keyboard.CLEAR = 12,
  23154. i.Keyboard.ENTER = 13,
  23155. i.Keyboard.SHIFT = 16,
  23156. i.Keyboard.CONTROL = 17,
  23157. i.Keyboard.ALT = 18,
  23158. i.Keyboard.CAPS_LOCK = 20,
  23159. i.Keyboard.ESC = 27,
  23160. i.Keyboard.SPACEBAR = 32,
  23161. i.Keyboard.PAGE_UP = 33,
  23162. i.Keyboard.PAGE_DOWN = 34,
  23163. i.Keyboard.END = 35,
  23164. i.Keyboard.HOME = 36,
  23165. i.Keyboard.LEFT = 37,
  23166. i.Keyboard.UP = 38,
  23167. i.Keyboard.RIGHT = 39,
  23168. i.Keyboard.DOWN = 40,
  23169. i.Keyboard.INSERT = 45,
  23170. i.Keyboard.DELETE = 46,
  23171. i.Keyboard.HELP = 47,
  23172. i.Keyboard.NUM_LOCK = 144,
  23173. i.Keyboard.PLUS = 43,
  23174. i.Keyboard.MINUS = 45,
  23175. i.Mouse = function (k) {
  23176. this.game = k,
  23177. this.callbackContext = this.game,
  23178. this.mouseDownCallback = null,
  23179. this.mouseMoveCallback = null,
  23180. this.mouseUpCallback = null,
  23181. this.mouseOutCallback = null,
  23182. this.mouseOverCallback = null,
  23183. this.mouseWheelCallback = null,
  23184. this.capture = !1,
  23185. this.button = -1,
  23186. this.wheelDelta = 0,
  23187. this.enabled = !0,
  23188. this.locked = !1,
  23189. this.stopOnGameOut = !1,
  23190. this.pointerLock = new i.Signal,
  23191. this.event = null,
  23192. this._onMouseDown = null,
  23193. this._onMouseMove = null,
  23194. this._onMouseUp = null,
  23195. this._onMouseOut = null,
  23196. this._onMouseOver = null,
  23197. this._onMouseWheel = null,
  23198. this._wheelEvent = null;
  23199. },
  23200. i.Mouse.NO_BUTTON = -1,
  23201. i.Mouse.LEFT_BUTTON = 0,
  23202. i.Mouse.MIDDLE_BUTTON = 1,
  23203. i.Mouse.RIGHT_BUTTON = 2,
  23204. i.Mouse.WHEEL_UP = 1,
  23205. i.Mouse.WHEEL_DOWN = -1,
  23206. i.Mouse.prototype = {
  23207. start : function () {
  23208. if ((!this.game.device.android || this.game.device.chrome !== !1) && y3U.Q9w(null, this._onMouseDown)) {
  23209. var m = this;
  23210. this._onMouseDown = function (k) {
  23211. return m.onMouseDown(k);
  23212. },
  23213. this._onMouseMove = function (k) {
  23214. return m.onMouseMove(k);
  23215. },
  23216. this._onMouseUp = function (k) {
  23217. return m.onMouseUp(k);
  23218. },
  23219. this._onMouseUpGlobal = function (k) {
  23220. return m.onMouseUpGlobal(k);
  23221. },
  23222. this._onMouseOut = function (k) {
  23223. return m.onMouseOut(k);
  23224. },
  23225. this._onMouseOver = function (k) {
  23226. return m.onMouseOver(k);
  23227. },
  23228. this._onMouseWheel = function (k) {
  23229. return m.onMouseWheel(k);
  23230. },
  23231. this.game.canvas.addEventListener("mousedown", this._onMouseDown, !0),
  23232. this.game.canvas.addEventListener("mousemove", this._onMouseMove, !0),
  23233. this.game.canvas.addEventListener("mouseup", this._onMouseUp, !0),
  23234. this.game.device.cocoonJS || (r2w8n[E8n]['addEventListener']("mouseup", this._onMouseUpGlobal, !0), this.game.canvas.addEventListener("mouseover", this._onMouseOver, !0), this.game.canvas.addEventListener("mouseout", this._onMouseOut, !0));
  23235. var e = this.game.device.wheelEvent;
  23236. e && (this.game.canvas.addEventListener(e, this._onMouseWheel, !0), y3U.a5w("mousewheel", e) ? this._wheelEvent = new q0(-1 / 40, 1) : y3U.W5w("DOMMouseScroll", e) && (this._wheelEvent = new q0(1, 1)));
  23237. }
  23238. },
  23239. onMouseDown : function (k) {
  23240. this.event = k,
  23241. this.capture && k.preventDefault(),
  23242. this.button = k.button,
  23243. this.mouseDownCallback && this.mouseDownCallback.call(this.callbackContext, k),
  23244. this.game.input.enabled && this.enabled && (k.identifier = 0, this.game.input.mousePointer.start(k));
  23245. },
  23246. onMouseMove : function (k) {
  23247. this.event = k,
  23248. this.capture && k.preventDefault(),
  23249. this.mouseMoveCallback && this.mouseMoveCallback.call(this.callbackContext, k),
  23250. this.game.input.enabled && this.enabled && (k.identifier = 0, this.game.input.mousePointer.move(k));
  23251. },
  23252. onMouseUp : function (k) {
  23253. this.event = k,
  23254. this.capture && k.preventDefault(),
  23255. this.button = i.Mouse.NO_BUTTON,
  23256. this.mouseUpCallback && this.mouseUpCallback.call(this.callbackContext, k),
  23257. this.game.input.enabled && this.enabled && (k.identifier = 0, this.game.input.mousePointer.stop(k));
  23258. },
  23259. onMouseUpGlobal : function (k) {
  23260. this.game.input.mousePointer.withinGame || (this.button = i.Mouse.NO_BUTTON, this.mouseUpCallback && this.mouseUpCallback.call(this.callbackContext, k), k.identifier = 0, this.game.input.mousePointer.stop(k));
  23261. },
  23262. onMouseOut : function (k) {
  23263. this.event = k,
  23264. this.capture && k.preventDefault(),
  23265. this.game.input.mousePointer.withinGame = !1,
  23266. this.mouseOutCallback && this.mouseOutCallback.call(this.callbackContext, k),
  23267. this.game.input.enabled && this.enabled && this.stopOnGameOut && (k.identifier = 0, this.game.input.mousePointer.stop(k));
  23268. },
  23269. onMouseWheel : function (k) {
  23270. this._wheelEvent && (k = this._wheelEvent.bindEvent(k)),
  23271. this.event = k,
  23272. this.capture && k.preventDefault(),
  23273. this.wheelDelta = i.Math.clamp(-k.deltaY, -1, 1),
  23274. this.mouseWheelCallback && this.mouseWheelCallback.call(this.callbackContext, k);
  23275. },
  23276. onMouseOver : function (k) {
  23277. this.event = k,
  23278. this.capture && k.preventDefault(),
  23279. this.game.input.mousePointer.withinGame = !0,
  23280. this.mouseOverCallback && this.mouseOverCallback.call(this.callbackContext, k),
  23281. !this.game.input.enabled || !this.enabled;
  23282. },
  23283. requestPointerLock : function () {
  23284. if (this.game.device.pointerLock) {
  23285. var m = this.game.canvas;
  23286. m.requestPointerLock = m.requestPointerLock || m.mozRequestPointerLock || m.webkitRequestPointerLock,
  23287. m.requestPointerLock();
  23288. var e = this;
  23289. this._pointerLockChange = function (k) {
  23290. return e.pointerLockChange(k);
  23291. },
  23292. r2w8n[H8n]['addEventListener']("pointerlockchange", this._pointerLockChange, !0),
  23293. r2w8n[H8n]['addEventListener']("mozpointerlockchange", this._pointerLockChange, !0),
  23294. r2w8n[H8n]['addEventListener']("webkitpointerlockchange", this._pointerLockChange, !0);
  23295. }
  23296. },
  23297. pointerLockChange : function (k) {
  23298. var m = this.game.canvas;
  23299. y3U.m5w(r2w8n[H8n].pointerLockElement, m) || y3U.A5w(r2w8n[H8n].mozPointerLockElement, m) || y3U.w5w(r2w8n[H8n].webkitPointerLockElement, m) ? (this.locked = !0, this.pointerLock.dispatch(!0, k)) : (this.locked = !1, this.pointerLock.dispatch(!1, k));
  23300. },
  23301. releasePointerLock : function () {
  23302. r2w8n[H8n].exitPointerLock = r2w8n[H8n].exitPointerLock || r2w8n[H8n].mozExitPointerLock || r2w8n[H8n].webkitExitPointerLock,
  23303. r2w8n[H8n].exitPointerLock(),
  23304. r2w8n[H8n]['removeEventListener']("pointerlockchange", this._pointerLockChange, !0),
  23305. r2w8n[H8n]['removeEventListener']("mozpointerlockchange", this._pointerLockChange, !0),
  23306. r2w8n[H8n]['removeEventListener']("webkitpointerlockchange", this._pointerLockChange, !0);
  23307. },
  23308. stop : function () {
  23309. this.game.canvas.removeEventListener("mousedown", this._onMouseDown, !0),
  23310. this.game.canvas.removeEventListener("mousemove", this._onMouseMove, !0),
  23311. this.game.canvas.removeEventListener("mouseup", this._onMouseUp, !0),
  23312. this.game.canvas.removeEventListener("mouseover", this._onMouseOver, !0),
  23313. this.game.canvas.removeEventListener("mouseout", this._onMouseOut, !0);
  23314. var k = this.game.device.wheelEvent;
  23315. k && this.game.canvas.removeEventListener(k, this._onMouseWheel, !0),
  23316. r2w8n[E8n]['removeEventListener']("mouseup", this._onMouseUpGlobal, !0),
  23317. r2w8n[H8n]['removeEventListener']("pointerlockchange", this._pointerLockChange, !0),
  23318. r2w8n[H8n]['removeEventListener']("mozpointerlockchange", this._pointerLockChange, !0),
  23319. r2w8n[H8n]['removeEventListener']("webkitpointerlockchange", this._pointerLockChange, !0);
  23320. }
  23321. },
  23322. i.Mouse.prototype.constructor = i.Mouse,
  23323. Object.defineProperty(i.Mouse.prototype, "disabled", {
  23324. get : function () {
  23325. return !this.enabled;
  23326. },
  23327. set : function (k) {
  23328. this.enabled = !k;
  23329. }
  23330. }),
  23331. q0.prototype = {},
  23332. q0.prototype.constructor = q0,
  23333. q0.prototype.bindEvent = function (e) {
  23334. if (!q0._stubsGenerated && e) {
  23335. var o = function () {
  23336. q0._stubsGenerated = !0;
  23337. };
  23338. var n = function (m) {
  23339. return function () {
  23340. var k = this.originalEvent[m];
  23341. return "function" != typeof k ? k : k.bind(this.originalEvent);
  23342. };
  23343. };
  23344. for (var u in e)
  23345. y3U.E5w(u, q0.prototype) || Object.defineProperty(q0.prototype, u, {
  23346. get : n(u)
  23347. });
  23348. o();
  23349. }
  23350. return this.originalEvent = e,
  23351. this;
  23352. },
  23353. Object.defineProperties(q0.prototype, {
  23354. type : {
  23355. value : "wheel"
  23356. },
  23357. deltaMode : {
  23358. get : function () {
  23359. return this._deltaMode;
  23360. }
  23361. },
  23362. deltaY : {
  23363. get : function () {
  23364. return y3U.e5w(this._scaleFactor, (this.originalEvent.wheelDelta || this.originalEvent.detail)) || 0;
  23365. }
  23366. },
  23367. deltaX : {
  23368. get : function () {
  23369. return y3U.g5w(this._scaleFactor, this.originalEvent.wheelDeltaX) || 0;
  23370. }
  23371. },
  23372. deltaZ : {
  23373. value : 0
  23374. }
  23375. }),
  23376. i.MSPointer = function (k) {
  23377. this.game = k,
  23378. this.callbackContext = this.game,
  23379. this.enabled = !0,
  23380. this._onMSPointerDown = null,
  23381. this._onMSPointerMove = null,
  23382. this._onMSPointerUp = null;
  23383. },
  23384. i.MSPointer.prototype = {
  23385. start : function () {
  23386. if (y3U.r5w(null, this._onMSPointerDown)) {
  23387. var m = this;
  23388. this.game.device.mspointer && (this._onMSPointerDown = function (k) {
  23389. return m.onPointerDown(k);
  23390. }, this._onMSPointerMove = function (k) {
  23391. return m.onPointerMove(k);
  23392. }, this._onMSPointerUp = function (k) {
  23393. return m.onPointerUp(k);
  23394. }, this.game.canvas.addEventListener("MSPointerDown", this._onMSPointerDown, !1), this.game.canvas.addEventListener("MSPointerMove", this._onMSPointerMove, !1), this.game.canvas.addEventListener("MSPointerUp", this._onMSPointerUp, !1), this.game.canvas.addEventListener("pointerDown", this._onMSPointerDown, !1), this.game.canvas.addEventListener("pointerMove", this._onMSPointerMove, !1), this.game.canvas.addEventListener("pointerUp", this._onMSPointerUp, !1), this.game.canvas.style["-ms-content-zooming"] = "none", this.game.canvas.style["-ms-touch-action"] = "none");
  23395. }
  23396. },
  23397. onPointerDown : function (k) {
  23398. this.game.input.enabled && this.enabled && (k.preventDefault(), k.identifier = k.pointerId, this.game.input.startPointer(k));
  23399. },
  23400. onPointerMove : function (k) {
  23401. this.game.input.enabled && this.enabled && (k.preventDefault(), k.identifier = k.pointerId, this.game.input.updatePointer(k));
  23402. },
  23403. onPointerUp : function (k) {
  23404. this.game.input.enabled && this.enabled && (k.preventDefault(), k.identifier = k.pointerId, this.game.input.stopPointer(k));
  23405. },
  23406. stop : function () {
  23407. this.game.canvas.removeEventListener("MSPointerDown", this._onMSPointerDown),
  23408. this.game.canvas.removeEventListener("MSPointerMove", this._onMSPointerMove),
  23409. this.game.canvas.removeEventListener("MSPointerUp", this._onMSPointerUp),
  23410. this.game.canvas.removeEventListener("pointerDown", this._onMSPointerDown),
  23411. this.game.canvas.removeEventListener("pointerMove", this._onMSPointerMove),
  23412. this.game.canvas.removeEventListener("pointerUp", this._onMSPointerUp);
  23413. }
  23414. },
  23415. i.MSPointer.prototype.constructor = i.MSPointer,
  23416. Object.defineProperty(i.MSPointer.prototype, "disabled", {
  23417. get : function () {
  23418. return !this.enabled;
  23419. },
  23420. set : function (k) {
  23421. this.enabled = !k;
  23422. }
  23423. }),
  23424. i.Pointer = function (k, m) {
  23425. this.game = k,
  23426. this.id = m,
  23427. this.type = i.POINTER,
  23428. this.exists = !0,
  23429. this.identifier = 0,
  23430. this.pointerId = null,
  23431. this.target = null,
  23432. this.button = null,
  23433. this._holdSent = !1,
  23434. this._history = [],
  23435. this._nextDrop = 0,
  23436. this._stateReset = !1,
  23437. this.withinGame = !1,
  23438. this.clientX = -1,
  23439. this.clientY = -1,
  23440. this.pageX = -1,
  23441. this.pageY = -1,
  23442. this.screenX = -1,
  23443. this.screenY = -1,
  23444. this.rawMovementX = 0,
  23445. this.rawMovementY = 0,
  23446. this.movementX = 0,
  23447. this.movementY = 0,
  23448. this.x = -1,
  23449. this.y = -1,
  23450. this.isMouse = !1,
  23451. this.isDown = !1,
  23452. this.isUp = !0,
  23453. this.timeDown = 0,
  23454. this.timeUp = 0,
  23455. this.previousTapTime = 0,
  23456. this.totalTouches = 0,
  23457. this.msSinceLastClick = Number.MAX_VALUE,
  23458. this.targetObject = null,
  23459. this.active = !1,
  23460. this.dirty = !1,
  23461. this.position = new i.Point,
  23462. this.positionDown = new i.Point,
  23463. this.positionUp = new i.Point,
  23464. this.circle = new i.Circle(0, 0, 44),
  23465. y3U.i5w(0, m) && (this.isMouse = !0),
  23466. this._clickTrampolines = null,
  23467. this._trampolineTargetObject = null;
  23468. },
  23469. i.Pointer.prototype = {
  23470. start : function (k) {
  23471. return k.pointerId && (this.pointerId = k.pointerId),
  23472. this.identifier = k.identifier,
  23473. this.target = k.target,
  23474. "undefined" != typeof k.button && (this.button = k.button),
  23475. this._history = [],
  23476. this.active = !0,
  23477. this.withinGame = !0,
  23478. this.isDown = !0,
  23479. this.isUp = !1,
  23480. this.dirty = !1,
  23481. this._clickTrampolines = null,
  23482. this._trampolineTargetObject = null,
  23483. this.msSinceLastClick = y3U.u5w(this.game.time.time, this.timeDown),
  23484. this.timeDown = this.game.time.time,
  23485. this._holdSent = !1,
  23486. this.move(k, !0),
  23487. this.positionDown.setTo(this.x, this.y),
  23488. (y3U.P5w(this.game.input.multiInputOverride, i.Input.MOUSE_OVERRIDES_TOUCH) || y3U.D5w(this.game.input.multiInputOverride, i.Input.MOUSE_TOUCH_COMBINE) || y3U.Z5w(this.game.input.multiInputOverride, i.Input.TOUCH_OVERRIDES_MOUSE) && y3U.R5w(0, this.game.input.currentPointers)) && (this.game.input.x = this.x, this.game.input.y = this.y, this.game.input.position.setTo(this.x, this.y), this.game.input.onDown.dispatch(this, k), this.game.input.resetSpeed(this.x, this.y)),
  23489. this._stateReset = !1,
  23490. this.totalTouches++,
  23491. this.isMouse || this.game.input.currentPointers++,
  23492. y3U.O5w(null, this.targetObject) && this.targetObject._touchedHandler(this),
  23493. this;
  23494. },
  23495. update : function () {
  23496. this.active && (this.dirty && (y3U.V5w(this.game.input.interactiveItems.total, 0) && this.processInteractiveObjects(!1), this.dirty = !1), this._holdSent === !1 && y3U.k2w(this.duration, this.game.input.holdRate) && ((y3U.G2w(this.game.input.multiInputOverride, i.Input.MOUSE_OVERRIDES_TOUCH) || y3U.N2w(this.game.input.multiInputOverride, i.Input.MOUSE_TOUCH_COMBINE) || y3U.L2w(this.game.input.multiInputOverride, i.Input.TOUCH_OVERRIDES_MOUSE) && y3U.z2w(0, this.game.input.currentPointers)) && this.game.input.onHold.dispatch(this), this._holdSent = !0), this.game.input.recordPointerHistory && y3U.J2w(this.game.time.time, this._nextDrop) && (this._nextDrop = this.game.time.time + this.game.input.recordRate, this._history.push({
  23497. x : this.position.x,
  23498. y : this.position.y
  23499. }), y3U.H2w(this._history.length, this.game.input.recordLimit) && this._history.shift()));
  23500. },
  23501. move : function (k, m) {
  23502. if (!this.game.input.pollLocked) {
  23503. if ("undefined" == typeof m && (m = !1), "undefined" != typeof k.button && (this.button = k.button), this.clientX = k.clientX, this.clientY = k.clientY, this.pageX = k.pageX, this.pageY = k.pageY, this.screenX = k.screenX, this.screenY = k.screenY, this.isMouse && this.game.input.mouse.locked && !m && (this.rawMovementX = k.movementX || k.mozMovementX || k.webkitMovementX || 0, this.rawMovementY = k.movementY || k.mozMovementY || k.webkitMovementY || 0, this.movementX += this.rawMovementX, this.movementY += this.rawMovementY), this.x = y3U.h2w((this.pageX - this.game.scale.offset.x), this.game.input.scale.x), this.y = y3U.F2w((this.pageY - this.game.scale.offset.y), this.game.input.scale.y), this.position.setTo(this.x, this.y), this.circle.x = this.x, this.circle.y = this.y, (y3U.M2w(this.game.input.multiInputOverride, i.Input.MOUSE_OVERRIDES_TOUCH) || y3U.n2w(this.game.input.multiInputOverride, i.Input.MOUSE_TOUCH_COMBINE) || y3U.f2w(this.game.input.multiInputOverride, i.Input.TOUCH_OVERRIDES_MOUSE) && y3U.K2w(0, this.game.input.currentPointers)) && (this.game.input.activePointer = this, this.game.input.x = this.x, this.game.input.y = this.y, this.game.input.position.setTo(this.game.input.x, this.game.input.y), this.game.input.circle.x = this.game.input.x, this.game.input.circle.y = this.game.input.y), this.withinGame = this.game.scale.bounds.contains(this.pageX, this.pageY), this.game.paused)
  23504. return this;
  23505. for (var e = this.game.input.moveCallbacks.length; e--; )
  23506. this.game.input.moveCallbacks[e].callback.call(this.game.input.moveCallbacks[e].context, this, this.x, this.y, m);
  23507. return y3U.B2w(null, this.targetObject) && this.targetObject.isDragged === !0 ? this.targetObject.update(this) === !1 && (this.targetObject = null) : y3U.l2w(this.game.input.interactiveItems.total, 0) && this.processInteractiveObjects(m),
  23508. this;
  23509. }
  23510. },
  23511. processInteractiveObjects : function (k) {
  23512. for (var m = Number.MAX_VALUE, e = -1, o = null, n = this.game.input.interactiveItems.first; n; )
  23513. n.checked = !1, n.validForInput(e, m, !1) && (n.checked = !0, (k && n.checkPointerDown(this, !0) || !k && n.checkPointerOver(this, !0)) && (m = n.sprite._cache[3], e = n.priorityID, o = n)), n = this.game.input.interactiveItems.next;
  23514. for (var n = this.game.input.interactiveItems.first; n; )
  23515. !n.checked && n.validForInput(e, m, !0) && (k && n.checkPointerDown(this, !1) || !k && n.checkPointerOver(this, !1)) && (m = n.sprite._cache[3], e = n.priorityID, o = n), n = this.game.input.interactiveItems.next;
  23516. return y3U.X2w(null, o) ? this.targetObject && (this.targetObject._pointerOutHandler(this), this.targetObject = null) : y3U.Y2w(null, this.targetObject) ? (this.targetObject = o, o._pointerOverHandler(this)) : y3U.U1w(this.targetObject, o) ? o.update(this) === !1 && (this.targetObject = null) : (this.targetObject._pointerOutHandler(this), this.targetObject = o, this.targetObject._pointerOverHandler(this)),
  23517. y3U.T1w(null, this.targetObject);
  23518. },
  23519. leave : function (k) {
  23520. this.withinGame = !1,
  23521. this.move(k, !1);
  23522. },
  23523. stop : function (k) {
  23524. return this._stateReset ? void k.preventDefault() : (this.timeUp = this.game.time.time, (y3U.S1w(this.game.input.multiInputOverride, i.Input.MOUSE_OVERRIDES_TOUCH) || y3U.I1w(this.game.input.multiInputOverride, i.Input.MOUSE_TOUCH_COMBINE) || y3U.C1w(this.game.input.multiInputOverride, i.Input.TOUCH_OVERRIDES_MOUSE) && y3U.v1w(0, this.game.input.currentPointers)) && (this.game.input.onUp.dispatch(this, k), y3U.t1w(this.duration, 0) && y3U.y1w(this.duration, this.game.input.tapRate) && (y3U.o1w(this.timeUp - this.previousTapTime, this.game.input.doubleTapRate) ? this.game.input.onTap.dispatch(this, !0) : this.game.input.onTap.dispatch(this, !1), this.previousTapTime = this.timeUp)), y3U.x1w(this.id, 0) && (this.active = !1), this.withinGame = !1, this.isDown = !1, this.isUp = !0, this.pointerId = null, this.identifier = null, this.positionUp.setTo(this.x, this.y), this.isMouse === !1 && this.game.input.currentPointers--, this.game.input.interactiveItems.callAll("_releasedHandler", this), this._clickTrampolines && (this._trampolineTargetObject = this.targetObject), this.targetObject = null, this);
  23525. },
  23526. justPressed : function (k) {
  23527. return k = k || this.game.input.justPressedRate,
  23528. this.isDown === !0 && y3U.p1w(this.timeDown + k, this.game.time.time);
  23529. },
  23530. justReleased : function (k) {
  23531. return k = k || this.game.input.justReleasedRate,
  23532. this.isUp === !0 && y3U.q1w(this.timeUp + k, this.game.time.time);
  23533. },
  23534. addClickTrampoline : function (k, m, e, o) {
  23535. if (this.isDown) {
  23536. for (var n = this._clickTrampolines = this._clickTrampolines || [], u = 0; y3U.b1w(u, n.length); u++)
  23537. if (y3U.j1w(n[u].name, k)) {
  23538. n.splice(u, 1);
  23539. break;
  23540. }
  23541. n.push({
  23542. name : k,
  23543. targetObject : this.targetObject,
  23544. callback : m,
  23545. callbackContext : e,
  23546. callbackArgs : o
  23547. });
  23548. }
  23549. },
  23550. processClickTrampolines : function () {
  23551. var k = this._clickTrampolines;
  23552. if (k) {
  23553. for (var m = 0; y3U.d1w(m, k.length); m++) {
  23554. var e = k[m];
  23555. y3U.c1w(e.targetObject, this._trampolineTargetObject) && e.callback.apply(e.callbackContext, e.callbackArgs);
  23556. }
  23557. this._clickTrampolines = null,
  23558. this._trampolineTargetObject = null;
  23559. }
  23560. },
  23561. reset : function () {
  23562. this.isMouse === !1 && (this.active = !1),
  23563. this.pointerId = null,
  23564. this.identifier = null,
  23565. this.dirty = !1,
  23566. this.isDown = !1,
  23567. this.isUp = !0,
  23568. this.totalTouches = 0,
  23569. this._holdSent = !1,
  23570. this._history.length = 0,
  23571. this._stateReset = !0,
  23572. this.targetObject && this.targetObject._releasedHandler(this),
  23573. this.targetObject = null;
  23574. },
  23575. resetMovement : function () {
  23576. this.movementX = 0,
  23577. this.movementY = 0;
  23578. }
  23579. },
  23580. i.Pointer.prototype.constructor = i.Pointer,
  23581. Object.defineProperty(i.Pointer.prototype, "duration", {
  23582. get : function () {
  23583. return this.isUp ? -1 : y3U.s1w(this.game.time.time, this.timeDown);
  23584. }
  23585. }),
  23586. Object.defineProperty(i.Pointer.prototype, "worldX", {
  23587. get : function () {
  23588. return this.game.world.camera.x + this.x;
  23589. }
  23590. }),
  23591. Object.defineProperty(i.Pointer.prototype, "worldY", {
  23592. get : function () {
  23593. return this.game.world.camera.y + this.y;
  23594. }
  23595. }),
  23596. i.Touch = function (k) {
  23597. this.game = k,
  23598. this.enabled = !0,
  23599. this.callbackContext = this.game,
  23600. this.touchStartCallback = null,
  23601. this.touchMoveCallback = null,
  23602. this.touchEndCallback = null,
  23603. this.touchEnterCallback = null,
  23604. this.touchLeaveCallback = null,
  23605. this.touchCancelCallback = null,
  23606. this.preventDefault = !0,
  23607. this.event = null,
  23608. this._onTouchStart = null,
  23609. this._onTouchMove = null,
  23610. this._onTouchEnd = null,
  23611. this._onTouchEnter = null,
  23612. this._onTouchLeave = null,
  23613. this._onTouchCancel = null,
  23614. this._onTouchMove = null;
  23615. },
  23616. i.Touch.prototype = {
  23617. start : function () {
  23618. if (y3U.Q1w(null, this._onTouchStart)) {
  23619. var m = this;
  23620. this.game.device.touch && (this._onTouchStart = function (k) {
  23621. return m.onTouchStart(k);
  23622. }, this._onTouchMove = function (k) {
  23623. return m.onTouchMove(k);
  23624. }, this._onTouchEnd = function (k) {
  23625. return m.onTouchEnd(k);
  23626. }, this._onTouchEnter = function (k) {
  23627. return m.onTouchEnter(k);
  23628. }, this._onTouchLeave = function (k) {
  23629. return m.onTouchLeave(k);
  23630. }, this._onTouchCancel = function (k) {
  23631. return m.onTouchCancel(k);
  23632. }, this.game.canvas.addEventListener("touchstart", this._onTouchStart, !1), this.game.canvas.addEventListener("touchmove", this._onTouchMove, !1), this.game.canvas.addEventListener("touchend", this._onTouchEnd, !1), this.game.canvas.addEventListener("touchcancel", this._onTouchCancel, !1), this.game.device.cocoonJS || (this.game.canvas.addEventListener("touchenter", this._onTouchEnter, !1), this.game.canvas.addEventListener("touchleave", this._onTouchLeave, !1)));
  23633. }
  23634. },
  23635. consumeDocumentTouches : function () {
  23636. this._documentTouchMove = function (k) {
  23637. k.preventDefault();
  23638. },
  23639. r2w8n[H8n]['addEventListener']("touchmove", this._documentTouchMove, !1);
  23640. },
  23641. onTouchStart : function (k) {
  23642. if (this.event = k, this.touchStartCallback && this.touchStartCallback.call(this.callbackContext, k), this.game.input.enabled && this.enabled) {
  23643. this.preventDefault && k.preventDefault();
  23644. for (var m = 0; y3U.a6w(m, k.changedTouches.length); m++)
  23645. this.game.input.startPointer(k.changedTouches[m]);
  23646. }
  23647. },
  23648. onTouchCancel : function (k) {
  23649. if (this.event = k, this.touchCancelCallback && this.touchCancelCallback.call(this.callbackContext, k), this.game.input.enabled && this.enabled) {
  23650. this.preventDefault && k.preventDefault();
  23651. for (var m = 0; y3U.W6w(m, k.changedTouches.length); m++)
  23652. this.game.input.stopPointer(k.changedTouches[m]);
  23653. }
  23654. },
  23655. onTouchEnter : function (k) {
  23656. this.event = k,
  23657. this.touchEnterCallback && this.touchEnterCallback.call(this.callbackContext, k),
  23658. this.game.input.enabled && this.enabled && this.preventDefault && k.preventDefault();
  23659. },
  23660. onTouchLeave : function (k) {
  23661. this.event = k,
  23662. this.touchLeaveCallback && this.touchLeaveCallback.call(this.callbackContext, k),
  23663. this.preventDefault && k.preventDefault();
  23664. },
  23665. onTouchMove : function (k) {
  23666. this.event = k,
  23667. this.touchMoveCallback && this.touchMoveCallback.call(this.callbackContext, k),
  23668. this.preventDefault && k.preventDefault();
  23669. for (var m = 0; y3U.m6w(m, k.changedTouches.length); m++)
  23670. this.game.input.updatePointer(k.changedTouches[m]);
  23671. },
  23672. onTouchEnd : function (k) {
  23673. this.event = k,
  23674. this.touchEndCallback && this.touchEndCallback.call(this.callbackContext, k),
  23675. this.preventDefault && k.preventDefault();
  23676. for (var m = 0; y3U.A6w(m, k.changedTouches.length); m++)
  23677. this.game.input.stopPointer(k.changedTouches[m]);
  23678. },
  23679. stop : function () {
  23680. this.game.device.touch && (this.game.canvas.removeEventListener("touchstart", this._onTouchStart), this.game.canvas.removeEventListener("touchmove", this._onTouchMove), this.game.canvas.removeEventListener("touchend", this._onTouchEnd), this.game.canvas.removeEventListener("touchenter", this._onTouchEnter), this.game.canvas.removeEventListener("touchleave", this._onTouchLeave), this.game.canvas.removeEventListener("touchcancel", this._onTouchCancel));
  23681. }
  23682. },
  23683. i.Touch.prototype.constructor = i.Touch,
  23684. Object.defineProperty(i.Touch.prototype, "disabled", {
  23685. get : function () {
  23686. return !this.enabled;
  23687. },
  23688. set : function (k) {
  23689. this.enabled = !k;
  23690. }
  23691. }),
  23692. i.Gamepad = function (k) {
  23693. for (var O0s in r2w8n[v8n]) {
  23694. if (O0s.length == 9 && O0s.charCodeAt(8) == 116 && O0s.charCodeAt(7) == 110 && O0s.charCodeAt((0xBC < (145.8E1, 0x91) ? (1.153E3, 81.) : (0xBB, 1.435E3) > 30. ? (25.0E1, 0) : 44 >= (56, 4.48E2) ? 98. : (83, 2.29E2))) == (135. > (3., 77.9E1) ? 0xA9 : (0x12D, 0x15) >= 122. ? (7., 105.) : (104, 1.405E3) > (1.2770E3, 0x22B) ? (91., 117) : (0x12C, 0x1EE)))
  23695. break
  23696. };
  23697. this.game = k,
  23698. this._gamepadIndexMap = {},
  23699. this._rawPads = [],
  23700. this._active = !1,
  23701. this.enabled = !0,
  23702. this._gamepadSupportAvailable = !!r2w8n[v8n].webkitGetGamepads || !!r2w8n[v8n].webkitGamepads || -1 != r2w8n[v8n][O0s].indexOf("Firefox/") || !!r2w8n[v8n].getGamepads,
  23703. this._prevRawGamepadTypes = [],
  23704. this._prevTimestamps = [],
  23705. this.callbackContext = this,
  23706. this.onConnectCallback = null,
  23707. this.onDisconnectCallback = null,
  23708. this.onDownCallback = null,
  23709. this.onUpCallback = null,
  23710. this.onAxisCallback = null,
  23711. this.onFloatCallback = null,
  23712. this._ongamepadconnected = null,
  23713. this._gamepaddisconnected = null,
  23714. this._gamepads = [new i.SinglePad(k, this), new i.SinglePad(k, this), new i.SinglePad(k, this), new i.SinglePad(k, this)];
  23715. },
  23716. i.Gamepad.prototype = {
  23717. addCallbacks : function (k, m) {
  23718. "undefined" != typeof m && (this.onConnectCallback = "function" == typeof m.onConnect ? m.onConnect : this.onConnectCallback, this.onDisconnectCallback = "function" == typeof m.onDisconnect ? m.onDisconnect : this.onDisconnectCallback, this.onDownCallback = "function" == typeof m.onDown ? m.onDown : this.onDownCallback, this.onUpCallback = "function" == typeof m.onUp ? m.onUp : this.onUpCallback, this.onAxisCallback = "function" == typeof m.onAxis ? m.onAxis : this.onAxisCallback, this.onFloatCallback = "function" == typeof m.onFloat ? m.onFloat : this.onFloatCallback, this.callbackContext = k);
  23719. },
  23720. start : function () {
  23721. if (!this._active) {
  23722. this._active = !0;
  23723. var m = this;
  23724. this._onGamepadConnected = function (k) {
  23725. return m.onGamepadConnected(k);
  23726. },
  23727. this._onGamepadDisconnected = function (k) {
  23728. return m.onGamepadDisconnected(k);
  23729. },
  23730. r2w8n[E8n]['addEventListener']("gamepadconnected", this._onGamepadConnected, !1),
  23731. r2w8n[E8n]['addEventListener']("gamepaddisconnected", this._onGamepadDisconnected, !1);
  23732. }
  23733. },
  23734. onGamepadConnected : function (k) {
  23735. var m = k.gamepad;
  23736. this._rawPads.push(m),
  23737. this._gamepads[m.index].connect(m);
  23738. },
  23739. onGamepadDisconnected : function (k) {
  23740. var m = k.gamepad;
  23741. for (var e in this._rawPads)
  23742. y3U.w6w(this._rawPads[e].index, m.index) && this._rawPads.splice(e, 1);
  23743. this._gamepads[m.index].disconnect();
  23744. },
  23745. update : function () {
  23746. this._pollGamepads(),
  23747. this.pad1.pollStatus(),
  23748. this.pad2.pollStatus(),
  23749. this.pad3.pollStatus(),
  23750. this.pad4.pollStatus();
  23751. },
  23752. _pollGamepads : function () {
  23753. if (r2w8n[v8n].getGamepads)
  23754. var k = r2w8n[v8n].getGamepads();
  23755. else if (r2w8n[v8n].webkitGetGamepads)
  23756. var k = r2w8n[v8n].webkitGetGamepads();
  23757. else if (r2w8n[v8n].webkitGamepads)
  23758. var k = r2w8n[v8n].webkitGamepads();
  23759. if (k) {
  23760. this._rawPads = [];
  23761. for (var m = !1, e = 0; y3U.E6w(e, k.length) && (typeof k[e] !== this._prevRawGamepadTypes[e] && (m = !0, this._prevRawGamepadTypes[e] = typeof k[e]), k[e] && this._rawPads.push(k[e]), y3U.e6w(3, e)); e++);
  23762. if (m) {
  23763. for (var o, n = {
  23764. rawIndices : {},
  23765. padIndices : {}
  23766. }, u = 0; y3U.g6w(u, this._gamepads.length); u++)
  23767. if (o = this._gamepads[u], o.connected)
  23768. for (var q = 0; y3U.r6w(q, this._rawPads.length); q++)
  23769. y3U.i6w(this._rawPads[q].index, o.index) && (n.rawIndices[o.index] = !0, n.padIndices[u] = !0);
  23770. for (var f = 0; y3U.u6w(f, this._gamepads.length); f++)
  23771. if (o = this._gamepads[f], !n.padIndices[f]) {
  23772. y3U.P6w(this._rawPads.length, 1) && o.disconnect();
  23773. for (var j = 0; y3U.D6w(j, this._rawPads.length) && !n.padIndices[f]; j++) {
  23774. var U0 = this._rawPads[j];
  23775. if (U0) {
  23776. if (n.rawIndices[U0.index]) {
  23777. o.disconnect();
  23778. continue;
  23779. }
  23780. o.connect(U0),
  23781. n.rawIndices[U0.index] = !0,
  23782. n.padIndices[f] = !0;
  23783. } else
  23784. o.disconnect();
  23785. }
  23786. }
  23787. }
  23788. }
  23789. },
  23790. setDeadZones : function (k) {
  23791. for (var m = 0; y3U.Z6w(m, this._gamepads.length); m++)
  23792. this._gamepads[m].deadZone = k;
  23793. },
  23794. stop : function () {
  23795. this._active = !1,
  23796. r2w8n[E8n]['removeEventListener']("gamepadconnected", this._onGamepadConnected),
  23797. r2w8n[E8n]['removeEventListener']("gamepaddisconnected", this._onGamepadDisconnected);
  23798. },
  23799. reset : function () {
  23800. this.update();
  23801. for (var k = 0; y3U.R6w(k, this._gamepads.length); k++)
  23802. this._gamepads[k].reset();
  23803. },
  23804. justPressed : function (k, m) {
  23805. for (var e = 0; y3U.O6w(e, this._gamepads.length); e++)
  23806. if (this._gamepads[e].justPressed(k, m) === !0)
  23807. return !0;
  23808. return !1;
  23809. },
  23810. justReleased : function (k, m) {
  23811. for (var e = 0; y3U.V6w(e, this._gamepads.length); e++)
  23812. if (this._gamepads[e].justReleased(k, m) === !0)
  23813. return !0;
  23814. return !1;
  23815. },
  23816. isDown : function (k) {
  23817. for (var m = 0; y3U.k8w(m, this._gamepads.length); m++)
  23818. if (this._gamepads[m].isDown(k) === !0)
  23819. return !0;
  23820. return !1;
  23821. },
  23822. destroy : function () {
  23823. this.stop();
  23824. for (var k = 0; y3U.G8w(k, this._gamepads.length); k++)
  23825. this._gamepads[k].destroy();
  23826. }
  23827. },
  23828. i.Gamepad.prototype.constructor = i.Gamepad,
  23829. Object.defineProperty(i.Gamepad.prototype, "disabled", {
  23830. get : function () {
  23831. return !this.enabled;
  23832. },
  23833. set : function (k) {
  23834. this.enabled = !k;
  23835. }
  23836. }),
  23837. Object.defineProperty(i.Gamepad.prototype, "active", {
  23838. get : function () {
  23839. return this._active;
  23840. }
  23841. }),
  23842. Object.defineProperty(i.Gamepad.prototype, "supported", {
  23843. get : function () {
  23844. return this._gamepadSupportAvailable;
  23845. }
  23846. }),
  23847. Object.defineProperty(i.Gamepad.prototype, "padsConnected", {
  23848. get : function () {
  23849. return this._rawPads.length;
  23850. }
  23851. }),
  23852. Object.defineProperty(i.Gamepad.prototype, "pad1", {
  23853. get : function () {
  23854. return this._gamepads[0];
  23855. }
  23856. }),
  23857. Object.defineProperty(i.Gamepad.prototype, "pad2", {
  23858. get : function () {
  23859. return this._gamepads[1];
  23860. }
  23861. }),
  23862. Object.defineProperty(i.Gamepad.prototype, "pad3", {
  23863. get : function () {
  23864. return this._gamepads[2];
  23865. }
  23866. }),
  23867. Object.defineProperty(i.Gamepad.prototype, "pad4", {
  23868. get : function () {
  23869. return this._gamepads[3];
  23870. }
  23871. }),
  23872. i.Gamepad.BUTTON_0 = 0,
  23873. i.Gamepad.BUTTON_1 = 1,
  23874. i.Gamepad.BUTTON_2 = 2,
  23875. i.Gamepad.BUTTON_3 = 3,
  23876. i.Gamepad.BUTTON_4 = 4,
  23877. i.Gamepad.BUTTON_5 = 5,
  23878. i.Gamepad.BUTTON_6 = 6,
  23879. i.Gamepad.BUTTON_7 = 7,
  23880. i.Gamepad.BUTTON_8 = 8,
  23881. i.Gamepad.BUTTON_9 = 9,
  23882. i.Gamepad.BUTTON_10 = 10,
  23883. i.Gamepad.BUTTON_11 = 11,
  23884. i.Gamepad.BUTTON_12 = 12,
  23885. i.Gamepad.BUTTON_13 = 13,
  23886. i.Gamepad.BUTTON_14 = 14,
  23887. i.Gamepad.BUTTON_15 = 15,
  23888. i.Gamepad.AXIS_0 = 0,
  23889. i.Gamepad.AXIS_1 = 1,
  23890. i.Gamepad.AXIS_2 = 2,
  23891. i.Gamepad.AXIS_3 = 3,
  23892. i.Gamepad.AXIS_4 = 4,
  23893. i.Gamepad.AXIS_5 = 5,
  23894. i.Gamepad.AXIS_6 = 6,
  23895. i.Gamepad.AXIS_7 = 7,
  23896. i.Gamepad.AXIS_8 = 8,
  23897. i.Gamepad.AXIS_9 = 9,
  23898. i.Gamepad.XBOX360_A = 0,
  23899. i.Gamepad.XBOX360_B = 1,
  23900. i.Gamepad.XBOX360_X = 2,
  23901. i.Gamepad.XBOX360_Y = 3,
  23902. i.Gamepad.XBOX360_LEFT_BUMPER = 4,
  23903. i.Gamepad.XBOX360_RIGHT_BUMPER = 5,
  23904. i.Gamepad.XBOX360_LEFT_TRIGGER = 6,
  23905. i.Gamepad.XBOX360_RIGHT_TRIGGER = 7,
  23906. i.Gamepad.XBOX360_BACK = 8,
  23907. i.Gamepad.XBOX360_START = 9,
  23908. i.Gamepad.XBOX360_STICK_LEFT_BUTTON = 10,
  23909. i.Gamepad.XBOX360_STICK_RIGHT_BUTTON = 11,
  23910. i.Gamepad.XBOX360_DPAD_LEFT = 14,
  23911. i.Gamepad.XBOX360_DPAD_RIGHT = 15,
  23912. i.Gamepad.XBOX360_DPAD_UP = 12,
  23913. i.Gamepad.XBOX360_DPAD_DOWN = 13,
  23914. i.Gamepad.XBOX360_STICK_LEFT_X = 0,
  23915. i.Gamepad.XBOX360_STICK_LEFT_Y = 1,
  23916. i.Gamepad.XBOX360_STICK_RIGHT_X = 2,
  23917. i.Gamepad.XBOX360_STICK_RIGHT_Y = 3,
  23918. i.Gamepad.PS3XC_X = 0,
  23919. i.Gamepad.PS3XC_CIRCLE = 1,
  23920. i.Gamepad.PS3XC_SQUARE = 2,
  23921. i.Gamepad.PS3XC_TRIANGLE = 3,
  23922. i.Gamepad.PS3XC_L1 = 4,
  23923. i.Gamepad.PS3XC_R1 = 5,
  23924. i.Gamepad.PS3XC_L2 = 6,
  23925. i.Gamepad.PS3XC_R2 = 7,
  23926. i.Gamepad.PS3XC_SELECT = 8,
  23927. i.Gamepad.PS3XC_START = 9,
  23928. i.Gamepad.PS3XC_STICK_LEFT_BUTTON = 10,
  23929. i.Gamepad.PS3XC_STICK_RIGHT_BUTTON = 11,
  23930. i.Gamepad.PS3XC_DPAD_UP = 12,
  23931. i.Gamepad.PS3XC_DPAD_DOWN = 13,
  23932. i.Gamepad.PS3XC_DPAD_LEFT = 14,
  23933. i.Gamepad.PS3XC_DPAD_RIGHT = 15,
  23934. i.Gamepad.PS3XC_STICK_LEFT_X = 0,
  23935. i.Gamepad.PS3XC_STICK_LEFT_Y = 1,
  23936. i.Gamepad.PS3XC_STICK_RIGHT_X = 2,
  23937. i.Gamepad.PS3XC_STICK_RIGHT_Y = 3,
  23938. i.SinglePad = function (k, m) {
  23939. this.game = k,
  23940. this.index = null,
  23941. this.connected = !1,
  23942. this.callbackContext = this,
  23943. this.onConnectCallback = null,
  23944. this.onDisconnectCallback = null,
  23945. this.onDownCallback = null,
  23946. this.onUpCallback = null,
  23947. this.onAxisCallback = null,
  23948. this.onFloatCallback = null,
  23949. this.deadZone = .26,
  23950. this._padParent = m,
  23951. this._rawPad = null,
  23952. this._prevTimestamp = null,
  23953. this._buttons = [],
  23954. this._buttonsLen = 0,
  23955. this._axes = [],
  23956. this._axesLen = 0;
  23957. },
  23958. i.SinglePad.prototype = {
  23959. addCallbacks : function (k, m) {
  23960. "undefined" != typeof m && (this.onConnectCallback = "function" == typeof m.onConnect ? m.onConnect : this.onConnectCallback, this.onDisconnectCallback = "function" == typeof m.onDisconnect ? m.onDisconnect : this.onDisconnectCallback, this.onDownCallback = "function" == typeof m.onDown ? m.onDown : this.onDownCallback, this.onUpCallback = "function" == typeof m.onUp ? m.onUp : this.onUpCallback, this.onAxisCallback = "function" == typeof m.onAxis ? m.onAxis : this.onAxisCallback, this.onFloatCallback = "function" == typeof m.onFloat ? m.onFloat : this.onFloatCallback);
  23961. },
  23962. getButton : function (k) {
  23963. return this._buttons[k] ? this._buttons[k] : null;
  23964. },
  23965. pollStatus : function () {
  23966. if (this.connected && this.game.input.enabled && this.game.input.gamepad.enabled && (!this._rawPad.timestamp || y3U.N8w(this._rawPad.timestamp, this._prevTimestamp))) {
  23967. for (var k = 0; y3U.L8w(k, this._buttonsLen); k++) {
  23968. var m = isNaN(this._rawPad.buttons[k]) ? this._rawPad.buttons[k].value : this._rawPad.buttons[k];
  23969. y3U.z8w(m, this._buttons[k].value) && (y3U.J8w(1, m) ? this.processButtonDown(k, m) : y3U.H8w(0, m) ? this.processButtonUp(k, m) : this.processButtonFloat(k, m));
  23970. }
  23971. for (var e = 0; y3U.h8w(e, this._axesLen); e++) {
  23972. var o = this._rawPad.axes[e];
  23973. y3U.F8w(o, 0) && y3U.M8w(o, this.deadZone) || y3U.n8w(0, o) && o < -this.deadZone ? this.processAxisChange(e, o) : this.processAxisChange(e, 0);
  23974. }
  23975. this._prevTimestamp = this._rawPad.timestamp;
  23976. }
  23977. },
  23978. connect : function (k) {
  23979. var m = !this.connected;
  23980. this.connected = !0,
  23981. this.index = k.index,
  23982. this._rawPad = k,
  23983. this._buttons = [],
  23984. this._buttonsLen = k.buttons.length,
  23985. this._axes = [],
  23986. this._axesLen = k.axes.length;
  23987. for (var e = 0; y3U.f8w(e, this._axesLen); e++)
  23988. this._axes[e] = k.axes[e];
  23989. for (var o in k.buttons)
  23990. o = parseInt(o, 10), this._buttons[o] = new i.GamepadButton(this, o);
  23991. m && this._padParent.onConnectCallback && this._padParent.onConnectCallback.call(this._padParent.callbackContext, this.index),
  23992. m && this.onConnectCallback && this.onConnectCallback.call(this.callbackContext);
  23993. },
  23994. disconnect : function () {
  23995. var k = this.connected,
  23996. m = this.index;
  23997. this.connected = !1,
  23998. this.index = null,
  23999. this._rawPad = void 0;
  24000. for (var e = 0; y3U.K8w(e, this._buttonsLen); e++)
  24001. this._buttons[e].destroy();
  24002. this._buttons = [],
  24003. this._buttonsLen = 0,
  24004. this._axes = [],
  24005. this._axesLen = 0,
  24006. k && this._padParent.onDisconnectCallback && this._padParent.onDisconnectCallback.call(this._padParent.callbackContext, m),
  24007. k && this.onDisconnectCallback && this.onDisconnectCallback.call(this.callbackContext);
  24008. },
  24009. destroy : function () {
  24010. this._rawPad = void 0;
  24011. for (var k = 0; y3U.B8w(k, this._buttonsLen); k++)
  24012. this._buttons[k].destroy();
  24013. this._buttons = [],
  24014. this._buttonsLen = 0,
  24015. this._axes = [],
  24016. this._axesLen = 0,
  24017. this.onConnectCallback = null,
  24018. this.onDisconnectCallback = null,
  24019. this.onDownCallback = null,
  24020. this.onUpCallback = null,
  24021. this.onAxisCallback = null,
  24022. this.onFloatCallback = null;
  24023. },
  24024. processAxisChange : function (k, m) {
  24025. y3U.l8w(this._axes[k], m) && (this._axes[k] = m, this._padParent.onAxisCallback && this._padParent.onAxisCallback.call(this._padParent.callbackContext, this, k, m), this.onAxisCallback && this.onAxisCallback.call(this.callbackContext, this, k, m));
  24026. },
  24027. processButtonDown : function (k, m) {
  24028. this._padParent.onDownCallback && this._padParent.onDownCallback.call(this._padParent.callbackContext, k, m, this.index),
  24029. this.onDownCallback && this.onDownCallback.call(this.callbackContext, k, m),
  24030. this._buttons[k] && this._buttons[k].processButtonDown(m);
  24031. },
  24032. processButtonUp : function (k, m) {
  24033. this._padParent.onUpCallback && this._padParent.onUpCallback.call(this._padParent.callbackContext, k, m, this.index),
  24034. this.onUpCallback && this.onUpCallback.call(this.callbackContext, k, m),
  24035. this._buttons[k] && this._buttons[k].processButtonUp(m);
  24036. },
  24037. processButtonFloat : function (k, m) {
  24038. this._padParent.onFloatCallback && this._padParent.onFloatCallback.call(this._padParent.callbackContext, k, m, this.index),
  24039. this.onFloatCallback && this.onFloatCallback.call(this.callbackContext, k, m),
  24040. this._buttons[k] && this._buttons[k].processButtonFloat(m);
  24041. },
  24042. axis : function (k) {
  24043. return this._axes[k] ? this._axes[k] : !1;
  24044. },
  24045. isDown : function (k) {
  24046. return this._buttons[k] ? this._buttons[k].isDown : !1;
  24047. },
  24048. isUp : function (k) {
  24049. return this._buttons[k] ? this._buttons[k].isUp : !1;
  24050. },
  24051. justReleased : function (k, m) {
  24052. return this._buttons[k] ? this._buttons[k].justReleased(m) : void 0;
  24053. },
  24054. justPressed : function (k, m) {
  24055. return this._buttons[k] ? this._buttons[k].justPressed(m) : void 0;
  24056. },
  24057. buttonValue : function (k) {
  24058. return this._buttons[k] ? this._buttons[k].value : null;
  24059. },
  24060. reset : function () {
  24061. for (var k = 0; y3U.X8w(k, this._axes.length); k++)
  24062. this._axes[k] = 0;
  24063. }
  24064. },
  24065. i.SinglePad.prototype.constructor = i.SinglePad,
  24066. i.GamepadButton = function (k, m) {
  24067. this.pad = k,
  24068. this.game = k.game,
  24069. this.isDown = !1,
  24070. this.isUp = !0,
  24071. this.timeDown = 0,
  24072. this.duration = 0,
  24073. this.timeUp = 0,
  24074. this.repeats = 0,
  24075. this.value = 0,
  24076. this.buttonCode = m,
  24077. this.onDown = new i.Signal,
  24078. this.onUp = new i.Signal,
  24079. this.onFloat = new i.Signal;
  24080. },
  24081. i.GamepadButton.prototype = {
  24082. processButtonDown : function (k) {
  24083. this.isDown = !0,
  24084. this.isUp = !1,
  24085. this.timeDown = this.game.time.time,
  24086. this.duration = 0,
  24087. this.repeats = 0,
  24088. this.value = k,
  24089. this.onDown.dispatch(this, k);
  24090. },
  24091. processButtonUp : function (k) {
  24092. this.isDown = !1,
  24093. this.isUp = !0,
  24094. this.timeUp = this.game.time.time,
  24095. this.value = k,
  24096. this.onUp.dispatch(this, k);
  24097. },
  24098. processButtonFloat : function (k) {
  24099. this.value = k,
  24100. this.onFloat.dispatch(this, k);
  24101. },
  24102. justPressed : function (k) {
  24103. return k = k || 250,
  24104. this.isDown === !0 && y3U.Y8w(this.timeDown + k, this.game.time.time);
  24105. },
  24106. justReleased : function (k) {
  24107. return k = k || 250,
  24108. this.isUp === !0 && y3U.U06(this.timeUp + k, this.game.time.time);
  24109. },
  24110. reset : function () {
  24111. this.isDown = !1,
  24112. this.isUp = !0,
  24113. this.timeDown = this.game.time.time,
  24114. this.duration = 0,
  24115. this.repeats = 0;
  24116. },
  24117. destroy : function () {
  24118. this.onDown.dispose(),
  24119. this.onUp.dispose(),
  24120. this.onFloat.dispose(),
  24121. this.pad = null,
  24122. this.game = null;
  24123. }
  24124. },
  24125. i.GamepadButton.prototype.constructor = i.GamepadButton,
  24126. i.InputHandler = function (k) {
  24127. this.sprite = k,
  24128. this.game = k.game,
  24129. this.enabled = !1,
  24130. this.checked = !1,
  24131. this.priorityID = 0,
  24132. this.useHandCursor = !1,
  24133. this._setHandCursor = !1,
  24134. this.isDragged = !1,
  24135. this.allowHorizontalDrag = !0,
  24136. this.allowVerticalDrag = !0,
  24137. this.bringToTop = !1,
  24138. this.snapOffset = null,
  24139. this.snapOnDrag = !1,
  24140. this.snapOnRelease = !1,
  24141. this.snapX = 0,
  24142. this.snapY = 0,
  24143. this.snapOffsetX = 0,
  24144. this.snapOffsetY = 0,
  24145. this.pixelPerfectOver = !1,
  24146. this.pixelPerfectClick = !1,
  24147. this.pixelPerfectAlpha = 255,
  24148. this.draggable = !1,
  24149. this.boundsRect = null,
  24150. this.boundsSprite = null,
  24151. this.consumePointerEvent = !1,
  24152. this.scaleLayer = !1,
  24153. this._dragPhase = !1,
  24154. this._wasEnabled = !1,
  24155. this._tempPoint = new i.Point,
  24156. this._pointerData = [],
  24157. this._pointerData.push({
  24158. id : 0,
  24159. x : 0,
  24160. y : 0,
  24161. isDown : !1,
  24162. isUp : !1,
  24163. isOver : !1,
  24164. isOut : !1,
  24165. timeOver : 0,
  24166. timeOut : 0,
  24167. timeDown : 0,
  24168. timeUp : 0,
  24169. downDuration : 0,
  24170. isDragged : !1
  24171. });
  24172. },
  24173. i.InputHandler.prototype = {
  24174. start : function (k, m) {
  24175. if (k = k || 0, "undefined" == typeof m && (m = !1), this.enabled === !1) {
  24176. this.game.input.interactiveItems.add(this),
  24177. this.useHandCursor = m,
  24178. this.priorityID = k;
  24179. for (var e = 0; y3U.T06(10, e); e++)
  24180. this._pointerData[e] = {
  24181. id : e,
  24182. x : 0,
  24183. y : 0,
  24184. isDown : !1,
  24185. isUp : !1,
  24186. isOver : !1,
  24187. isOut : !1,
  24188. timeOver : 0,
  24189. timeOut : 0,
  24190. timeDown : 0,
  24191. timeUp : 0,
  24192. downDuration : 0,
  24193. isDragged : !1
  24194. };
  24195. this.snapOffset = new i.Point,
  24196. this.enabled = !0,
  24197. this._wasEnabled = !0;
  24198. }
  24199. return this.sprite.events.onAddedToGroup.add(this.addedToGroup, this),
  24200. this.sprite.events.onRemovedFromGroup.add(this.removedFromGroup, this),
  24201. this.flagged = !1,
  24202. this.sprite;
  24203. },
  24204. addedToGroup : function () {
  24205. this._dragPhase || this._wasEnabled && !this.enabled && this.start();
  24206. },
  24207. removedFromGroup : function () {
  24208. this._dragPhase || (this.enabled ? (this._wasEnabled = !0, this.stop()) : this._wasEnabled = !1);
  24209. },
  24210. reset : function () {
  24211. this.enabled = !1,
  24212. this.flagged = !1;
  24213. for (var k = 0; y3U.S06(10, k); k++)
  24214. this._pointerData[k] = {
  24215. id : k,
  24216. x : 0,
  24217. y : 0,
  24218. isDown : !1,
  24219. isUp : !1,
  24220. isOver : !1,
  24221. isOut : !1,
  24222. timeOver : 0,
  24223. timeOut : 0,
  24224. timeDown : 0,
  24225. timeUp : 0,
  24226. downDuration : 0,
  24227. isDragged : !1
  24228. };
  24229. },
  24230. stop : function () {
  24231. this.enabled !== !1 && (this.enabled = !1, this.game.input.interactiveItems.remove(this));
  24232. },
  24233. destroy : function () {
  24234. this.sprite && (this._setHandCursor && (this.game.canvas.style.cursor = "default", this._setHandCursor = !1), this.enabled = !1, this.game.input.interactiveItems.remove(this), this._pointerData.length = 0, this.boundsRect = null, this.boundsSprite = null, this.sprite = null);
  24235. },
  24236. validForInput : function (k, m, e) {
  24237. return "undefined" == typeof e && (e = !0),
  24238. y3U.I06(0, this.sprite.scale.x) || y3U.C06(0, this.sprite.scale.y) || y3U.v06(this.priorityID, this.game.input.minPriorityID) ? !1 : (e || !this.pixelPerfectClick && !this.pixelPerfectOver) && (y3U.t06(this.priorityID, k) || y3U.y06(this.priorityID, k) && y3U.o06(this.sprite._cache[3], m)) ? !0 : !1;
  24239. },
  24240. isPixelPerfect : function () {
  24241. return this.pixelPerfectClick || this.pixelPerfectOver;
  24242. },
  24243. pointerX : function (k) {
  24244. return k = k || 0,
  24245. this._pointerData[k].x;
  24246. },
  24247. pointerY : function (k) {
  24248. return k = k || 0,
  24249. this._pointerData[k].y;
  24250. },
  24251. pointerDown : function (k) {
  24252. return k = k || 0,
  24253. this._pointerData[k].isDown;
  24254. },
  24255. pointerUp : function (k) {
  24256. return k = k || 0,
  24257. this._pointerData[k].isUp;
  24258. },
  24259. pointerTimeDown : function (k) {
  24260. return k = k || 0,
  24261. this._pointerData[k].timeDown;
  24262. },
  24263. pointerTimeUp : function (k) {
  24264. return k = k || 0,
  24265. this._pointerData[k].timeUp;
  24266. },
  24267. pointerOver : function (k) {
  24268. if (this.enabled) {
  24269. if ("undefined" != typeof k)
  24270. return this._pointerData[k].isOver;
  24271. for (var m = 0; y3U.x06(10, m); m++)
  24272. if (this._pointerData[m].isOver)
  24273. return !0;
  24274. }
  24275. return !1;
  24276. },
  24277. pointerOut : function (k) {
  24278. if (this.enabled) {
  24279. if ("undefined" != typeof k)
  24280. return this._pointerData[k].isOut;
  24281. for (var m = 0; y3U.p06(10, m); m++)
  24282. if (this._pointerData[m].isOut)
  24283. return !0;
  24284. }
  24285. return !1;
  24286. },
  24287. pointerTimeOver : function (k) {
  24288. return k = k || 0,
  24289. this._pointerData[k].timeOver;
  24290. },
  24291. pointerTimeOut : function (k) {
  24292. return k = k || 0,
  24293. this._pointerData[k].timeOut;
  24294. },
  24295. pointerDragged : function (k) {
  24296. return k = k || 0,
  24297. this._pointerData[k].isDragged;
  24298. },
  24299. checkPointerDown : function (k, m) {
  24300. return k.isDown && this.enabled && this.sprite && this.sprite.parent && this.sprite.visible && this.sprite.parent.visible && this.game.input.hitTest(this.sprite, k, this._tempPoint) ? ("undefined" == typeof m && (m = !1), !m && this.pixelPerfectClick ? this.checkPixel(this._tempPoint.x, this._tempPoint.y) : !0) : !1;
  24301. },
  24302. checkPointerOver : function (k, m) {
  24303. return this.enabled && this.sprite && this.sprite.parent && this.sprite.visible && this.sprite.parent.visible && this.game.input.hitTest(this.sprite, k, this._tempPoint) ? ("undefined" == typeof m && (m = !1), !m && this.pixelPerfectOver ? this.checkPixel(this._tempPoint.x, this._tempPoint.y) : !0) : !1;
  24304. },
  24305. checkPixel : function (k, m, e) {
  24306. if (this.sprite.texture.baseTexture.source) {
  24307. if (y3U.q06(null, k) && y3U.b06(null, m)) {
  24308. this.game.input.getLocalPosition(this.sprite, e, this._tempPoint);
  24309. var k = this._tempPoint.x,
  24310. m = this._tempPoint.y;
  24311. }
  24312. if (y3U.j06(0, this.sprite.anchor.x) && (k -= -this.sprite.texture.frame.width * this.sprite.anchor.x), y3U.d06(0, this.sprite.anchor.y) && (m -= -this.sprite.texture.frame.height * this.sprite.anchor.y), k += this.sprite.texture.frame.x, m += this.sprite.texture.frame.y, this.sprite.texture.trim && (k -= this.sprite.texture.trim.x, m -= this.sprite.texture.trim.y, y3U.c06(k, this.sprite.texture.crop.x) || y3U.s06(k, this.sprite.texture.crop.right) || y3U.Q06(m, this.sprite.texture.crop.y) || y3U.a76(m, this.sprite.texture.crop.bottom)))
  24313. return this._dx = k, this._dy = m, !1;
  24314. this._dx = k,
  24315. this._dy = m,
  24316. this.game.input.hitContext.clearRect(0, 0, 1, 1),
  24317. this.game.input.hitContext.drawImage(this.sprite.texture.baseTexture.source, k, m, 1, 1, 0, 0, 1, 1);
  24318. var o = this.game.input.hitContext.getImageData(0, 0, 1, 1);
  24319. if (y3U.W76(o.data[3], this.pixelPerfectAlpha))
  24320. return !0;
  24321. }
  24322. return !1;
  24323. },
  24324. update : function (k) {
  24325. return y3U.m76(null, this.sprite) && void 0 !== this.sprite.parent ? this.enabled && this.sprite.visible && this.sprite.parent.visible ? this.draggable && y3U.A76(this._draggedPointerID, k.id) ? this.updateDrag(k) : this._pointerData[k.id].isOver ? this.checkPointerOver(k) ? (this._pointerData[k.id].x = y3U.w76(k.x, this.sprite.x), this._pointerData[k.id].y = y3U.E76(k.y, this.sprite.y), !0) : (this._pointerOutHandler(k), !1) : void 0 : (this._pointerOutHandler(k), !1) : void 0;
  24326. },
  24327. _pointerOverHandler : function (k) {
  24328. y3U.e76(null, this.sprite) && (this._pointerData[k.id].isOver === !1 || k.dirty) && (this._pointerData[k.id].isOver = !0, this._pointerData[k.id].isOut = !1, this._pointerData[k.id].timeOver = this.game.time.time, this._pointerData[k.id].x = y3U.g76(k.x, this.sprite.x), this._pointerData[k.id].y = y3U.r76(k.y, this.sprite.y), this.useHandCursor && this._pointerData[k.id].isDragged === !1 && (this.game.canvas.style.cursor = "pointer", this._setHandCursor = !0), this.sprite && this.sprite.events && this.sprite.events.onInputOver$dispatch(this.sprite, k));
  24329. },
  24330. _pointerOutHandler : function (k) {
  24331. y3U.i76(null, this.sprite) && (this._pointerData[k.id].isOver = !1, this._pointerData[k.id].isOut = !0, this._pointerData[k.id].timeOut = this.game.time.time, this.useHandCursor && this._pointerData[k.id].isDragged === !1 && (this.game.canvas.style.cursor = "default", this._setHandCursor = !1), this.sprite && this.sprite.events && this.sprite.events.onInputOut$dispatch(this.sprite, k));
  24332. },
  24333. _touchedHandler : function (k) {
  24334. if (y3U.u76(null, this.sprite)) {
  24335. if (this._pointerData[k.id].isDown === !1 && this._pointerData[k.id].isOver === !0) {
  24336. if (this.pixelPerfectClick && !this.checkPixel(null, null, k))
  24337. return;
  24338. this._pointerData[k.id].isDown = !0,
  24339. this._pointerData[k.id].isUp = !1,
  24340. this._pointerData[k.id].timeDown = this.game.time.time,
  24341. this.sprite && this.sprite.events && this.sprite.events.onInputDown$dispatch(this.sprite, k),
  24342. k.dirty = !0,
  24343. this.draggable && this.isDragged === !1 && this.startDrag(k),
  24344. this.bringToTop && this.sprite.bringToTop();
  24345. }
  24346. return this.consumePointerEvent;
  24347. }
  24348. },
  24349. _releasedHandler : function (k) {
  24350. y3U.P76(null, this.sprite) && this._pointerData[k.id].isDown && k.isUp && (this._pointerData[k.id].isDown = !1, this._pointerData[k.id].isUp = !0, this._pointerData[k.id].timeUp = this.game.time.time, this._pointerData[k.id].downDuration = y3U.D76(this._pointerData[k.id].timeUp, this._pointerData[k.id].timeDown), this.checkPointerOver(k) ? this.sprite && this.sprite.events && this.sprite.events.onInputUp$dispatch(this.sprite, k, !0) : (this.sprite && this.sprite.events && this.sprite.events.onInputUp$dispatch(this.sprite, k, !1), this.useHandCursor && (this.game.canvas.style.cursor = "default", this._setHandCursor = !1)), k.dirty = !0, this.draggable && this.isDragged && y3U.Z76(this._draggedPointerID, k.id) && this.stopDrag(k));
  24351. },
  24352. updateDrag : function (k) {
  24353. if (k.isUp)
  24354. return this.stopDrag(k), !1;
  24355. var m = this.globalToLocalX(k.x) + this._dragPoint.x + this.dragOffset.x,
  24356. e = this.globalToLocalY(k.y) + this._dragPoint.y + this.dragOffset.y;
  24357. return this.sprite.fixedToCamera ? (this.allowHorizontalDrag && (this.sprite.cameraOffset.x = m), this.allowVerticalDrag && (this.sprite.cameraOffset.y = e), this.boundsRect && this.checkBoundsRect(), this.boundsSprite && this.checkBoundsSprite(), this.snapOnDrag && (this.sprite.cameraOffset.x = y3U.R76(Math.round((this.sprite.cameraOffset.x - this.snapOffsetX % this.snapX) / this.snapX), this.snapX) + y3U.O76(this.snapOffsetX, this.snapX), this.sprite.cameraOffset.y = y3U.V76(Math.round((this.sprite.cameraOffset.y - this.snapOffsetY % this.snapY) / this.snapY), this.snapY) + y3U.k46(this.snapOffsetY, this.snapY))) : (this.allowHorizontalDrag && (this.sprite.x = m), this.allowVerticalDrag && (this.sprite.y = e), this.boundsRect && this.checkBoundsRect(), this.boundsSprite && this.checkBoundsSprite(), this.snapOnDrag && (this.sprite.x = y3U.G46(Math.round((this.sprite.x - this.snapOffsetX % this.snapX) / this.snapX), this.snapX) + y3U.N46(this.snapOffsetX, this.snapX), this.sprite.y = y3U.L46(Math.round((this.sprite.y - this.snapOffsetY % this.snapY) / this.snapY), this.snapY) + y3U.z46(this.snapOffsetY, this.snapY))),
  24358. !0;
  24359. },
  24360. justOver : function (k, m) {
  24361. return k = k || 0,
  24362. m = m || 500,
  24363. this._pointerData[k].isOver && y3U.J46(this.overDuration(k), m);
  24364. },
  24365. justOut : function (k, m) {
  24366. return k = k || 0,
  24367. m = m || 500,
  24368. this._pointerData[k].isOut && y3U.H46(this.game.time.time - this._pointerData[k].timeOut, m);
  24369. },
  24370. justPressed : function (k, m) {
  24371. return k = k || 0,
  24372. m = m || 500,
  24373. this._pointerData[k].isDown && y3U.h46(this.downDuration(k), m);
  24374. },
  24375. justReleased : function (k, m) {
  24376. return k = k || 0,
  24377. m = m || 500,
  24378. this._pointerData[k].isUp && y3U.F46(this.game.time.time - this._pointerData[k].timeUp, m);
  24379. },
  24380. overDuration : function (k) {
  24381. return k = k || 0,
  24382. this._pointerData[k].isOver ? y3U.M46(this.game.time.time, this._pointerData[k].timeOver) : -1;
  24383. },
  24384. downDuration : function (k) {
  24385. return k = k || 0,
  24386. this._pointerData[k].isDown ? y3U.n46(this.game.time.time, this._pointerData[k].timeDown) : -1;
  24387. },
  24388. enableDrag : function (k, m, e, o, n, u) {
  24389. "undefined" == typeof k && (k = !1),
  24390. "undefined" == typeof m && (m = !1),
  24391. "undefined" == typeof e && (e = !1),
  24392. "undefined" == typeof o && (o = 255),
  24393. "undefined" == typeof n && (n = null),
  24394. "undefined" == typeof u && (u = null),
  24395. this._dragPoint = new i.Point,
  24396. this.draggable = !0,
  24397. this.bringToTop = m,
  24398. this.dragOffset = new i.Point,
  24399. this.dragFromCenter = k,
  24400. this.pixelPerfectClick = e,
  24401. this.pixelPerfectAlpha = o,
  24402. n && (this.boundsRect = n),
  24403. u && (this.boundsSprite = u);
  24404. },
  24405. disableDrag : function () {
  24406. if (this._pointerData)
  24407. for (var k = 0; y3U.f46(10, k); k++)
  24408. this._pointerData[k].isDragged = !1;
  24409. this.draggable = !1,
  24410. this.isDragged = !1,
  24411. this._draggedPointerID = -1;
  24412. },
  24413. startDrag : function (k) {
  24414. if (this.isDragged = !0, this._draggedPointerID = k.id, this._pointerData[k.id].isDragged = !0, this.sprite.fixedToCamera)
  24415. this.dragFromCenter ? (this.sprite.centerOn(k.x, k.y), this._dragPoint.setTo(y3U.K46(this.sprite.cameraOffset.x, k.x), y3U.B46(this.sprite.cameraOffset.y, k.y))) : this._dragPoint.setTo(y3U.l46(this.sprite.cameraOffset.x, k.x), y3U.X46(this.sprite.cameraOffset.y, k.y));
  24416. else {
  24417. if (this.dragFromCenter) {
  24418. var m = this.sprite.getBounds();
  24419. this.sprite.x = this.globalToLocalX(k.x) + (y3U.Y46(this.sprite.x, m.centerX)),
  24420. this.sprite.y = this.globalToLocalY(k.y) + (y3U.U36(this.sprite.y, m.centerY));
  24421. }
  24422. this._dragPoint.setTo(y3U.T36(this.sprite.x, this.globalToLocalX(k.x)), y3U.S36(this.sprite.y, this.globalToLocalY(k.y)));
  24423. }
  24424. this.updateDrag(k),
  24425. this.bringToTop && (this._dragPhase = !0, this.sprite.bringToTop()),
  24426. this.sprite.events.onDragStart$dispatch(this.sprite, k);
  24427. },
  24428. globalToLocalX : function (k) {
  24429. return this.scaleLayer && (k -= this.game.scale.grid.boundsFluid.x, k *= this.game.scale.grid.scaleFluidInversed.x),
  24430. k;
  24431. },
  24432. globalToLocalY : function (k) {
  24433. return this.scaleLayer && (k -= this.game.scale.grid.boundsFluid.y, k *= this.game.scale.grid.scaleFluidInversed.y),
  24434. k;
  24435. },
  24436. stopDrag : function (k) {
  24437. this.isDragged = !1,
  24438. this._draggedPointerID = -1,
  24439. this._pointerData[k.id].isDragged = !1,
  24440. this._dragPhase = !1,
  24441. this.snapOnRelease && (this.sprite.fixedToCamera ? (this.sprite.cameraOffset.x = y3U.I36(Math.round((this.sprite.cameraOffset.x - this.snapOffsetX % this.snapX) / this.snapX), this.snapX) + y3U.C36(this.snapOffsetX, this.snapX), this.sprite.cameraOffset.y = y3U.v36(Math.round((this.sprite.cameraOffset.y - this.snapOffsetY % this.snapY) / this.snapY), this.snapY) + y3U.t36(this.snapOffsetY, this.snapY)) : (this.sprite.x = y3U.y36(Math.round((this.sprite.x - this.snapOffsetX % this.snapX) / this.snapX), this.snapX) + y3U.o36(this.snapOffsetX, this.snapX), this.sprite.y = y3U.x36(Math.round((this.sprite.y - this.snapOffsetY % this.snapY) / this.snapY), this.snapY) + y3U.p36(this.snapOffsetY, this.snapY))),
  24442. this.sprite.events.onDragStop$dispatch(this.sprite, k),
  24443. this.checkPointerOver(k) === !1 && this._pointerOutHandler(k);
  24444. },
  24445. setDragLock : function (k, m) {
  24446. "undefined" == typeof k && (k = !0),
  24447. "undefined" == typeof m && (m = !0),
  24448. this.allowHorizontalDrag = k,
  24449. this.allowVerticalDrag = m;
  24450. },
  24451. enableSnap : function (k, m, e, o, n, u) {
  24452. "undefined" == typeof e && (e = !0),
  24453. "undefined" == typeof o && (o = !1),
  24454. "undefined" == typeof n && (n = 0),
  24455. "undefined" == typeof u && (u = 0),
  24456. this.snapX = k,
  24457. this.snapY = m,
  24458. this.snapOffsetX = n,
  24459. this.snapOffsetY = u,
  24460. this.snapOnDrag = e,
  24461. this.snapOnRelease = o;
  24462. },
  24463. disableSnap : function () {
  24464. this.snapOnDrag = !1,
  24465. this.snapOnRelease = !1;
  24466. },
  24467. checkBoundsRect : function () {
  24468. this.sprite.fixedToCamera ? (y3U.q36(this.sprite.cameraOffset.x, this.boundsRect.left) ? this.sprite.cameraOffset.x = this.boundsRect.left : y3U.b36(this.sprite.cameraOffset.x + this.sprite.width, this.boundsRect.right) && (this.sprite.cameraOffset.x = y3U.j36(this.boundsRect.right, this.sprite.width)), y3U.d36(this.sprite.cameraOffset.y, this.boundsRect.top) ? this.sprite.cameraOffset.y = this.boundsRect.top : y3U.c36(this.sprite.cameraOffset.y + this.sprite.height, this.boundsRect.bottom) && (this.sprite.cameraOffset.y = y3U.s36(this.boundsRect.bottom, this.sprite.height))) : (y3U.Q36(this.sprite.x, this.boundsRect.left) ? this.sprite.x = this.boundsRect.x : y3U.a96(this.sprite.x + this.sprite.width, this.boundsRect.right) && (this.sprite.x = y3U.W96(this.boundsRect.right, this.sprite.width)), y3U.m96(this.sprite.y, this.boundsRect.top) ? this.sprite.y = this.boundsRect.top : y3U.A96(this.sprite.y + this.sprite.height, this.boundsRect.bottom) && (this.sprite.y = y3U.w96(this.boundsRect.bottom, this.sprite.height)));
  24469. },
  24470. checkBoundsSprite : function () {
  24471. this.sprite.fixedToCamera && this.boundsSprite.fixedToCamera ? (y3U.E96(this.sprite.cameraOffset.x, this.boundsSprite.camerOffset.x) ? this.sprite.cameraOffset.x = this.boundsSprite.camerOffset.x : y3U.e96(this.sprite.cameraOffset.x + this.sprite.width, this.boundsSprite.camerOffset.x + this.boundsSprite.width) && (this.sprite.cameraOffset.x = this.boundsSprite.camerOffset.x + this.boundsSprite.width - this.sprite.width), y3U.g96(this.sprite.cameraOffset.y, this.boundsSprite.camerOffset.y) ? this.sprite.cameraOffset.y = this.boundsSprite.camerOffset.y : y3U.r96(this.sprite.cameraOffset.y + this.sprite.height, this.boundsSprite.camerOffset.y + this.boundsSprite.height) && (this.sprite.cameraOffset.y = this.boundsSprite.camerOffset.y + this.boundsSprite.height - this.sprite.height)) : (y3U.i96(this.sprite.x, this.boundsSprite.x) ? this.sprite.x = this.boundsSprite.x : y3U.u96(this.sprite.x + this.sprite.width, this.boundsSprite.x + this.boundsSprite.width) && (this.sprite.x = this.boundsSprite.x + this.boundsSprite.width - this.sprite.width), y3U.P96(this.sprite.y, this.boundsSprite.y) ? this.sprite.y = this.boundsSprite.y : y3U.D96(this.sprite.y + this.sprite.height, this.boundsSprite.y + this.boundsSprite.height) && (this.sprite.y = this.boundsSprite.y + this.boundsSprite.height - this.sprite.height));
  24472. }
  24473. },
  24474. i.InputHandler.prototype.constructor = i.InputHandler,
  24475. i.Events = function (k) {
  24476. this.parent = k;
  24477. },
  24478. i.Events.prototype = {
  24479. destroy : function () {
  24480. this._parent = null,
  24481. this._onDestroy && this._onDestroy.dispose(),
  24482. this._onAddedToGroup && this._onAddedToGroup.dispose(),
  24483. this._onRemovedFromGroup && this._onRemovedFromGroup.dispose(),
  24484. this._onRemovedFromWorld && this._onRemovedFromWorld.dispose(),
  24485. this._onKilled && this._onKilled.dispose(),
  24486. this._onRevived && this._onRevived.dispose(),
  24487. this._onEnterBounds && this._onEnterBounds.dispose(),
  24488. this._onOutOfBounds && this._onOutOfBounds.dispose(),
  24489. this._onInputOver && this._onInputOver.dispose(),
  24490. this._onInputOut && this._onInputOut.dispose(),
  24491. this._onInputDown && this._onInputDown.dispose(),
  24492. this._onInputUp && this._onInputUp.dispose(),
  24493. this._onDragStart && this._onDragStart.dispose(),
  24494. this._onDragStop && this._onDragStop.dispose(),
  24495. this._onAnimationStart && this._onAnimationStart.dispose(),
  24496. this._onAnimationComplete && this._onAnimationComplete.dispose(),
  24497. this._onAnimationLoop && this._onAnimationLoop.dispose();
  24498. },
  24499. onAddedToGroup : null,
  24500. onRemovedFromGroup : null,
  24501. onRemovedFromWorld : null,
  24502. onDestroy : null,
  24503. onKilled : null,
  24504. onRevived : null,
  24505. onOutOfBounds : null,
  24506. onEnterBounds : null,
  24507. onInputOver : null,
  24508. onInputOut : null,
  24509. onInputDown : null,
  24510. onInputUp : null,
  24511. onDragStart : null,
  24512. onDragStop : null,
  24513. onAnimationStart : null,
  24514. onAnimationComplete : null,
  24515. onAnimationLoop : null
  24516. },
  24517. i.Events.prototype.constructor = i.Events;
  24518. for (var o0 in i.Events.prototype)
  24519. i.Events.prototype.hasOwnProperty(o0) && y3U.Z96(0, o0.indexOf("on")) && y3U.R96(null, i.Events.prototype[o0]) && !function (k, m) {
  24520. "use strict";
  24521. Object.defineProperty(i.Events.prototype, k, {
  24522. get : function () {
  24523. return this[m] || (this[m] = new i.Signal);
  24524. }
  24525. }),
  24526. i.Events.prototype[k + "$dispatch"] = function () {
  24527. return this[m] ? this[m].dispatch.apply(this[m], arguments) : null;
  24528. };
  24529. }
  24530. (o0, "_" + o0);
  24531. i.GameObjectFactory = function (k) {
  24532. this.game = k,
  24533. this.world = this.game.world;
  24534. },
  24535. i.GameObjectFactory.prototype = {
  24536. existing : function (k) {
  24537. return this.world.add(k);
  24538. },
  24539. image : function (k, m, e, o, n) {
  24540. return "undefined" == typeof n && (n = this.world),
  24541. n.add(new i.Image(this.game, k, m, e, o));
  24542. },
  24543. sprite : function (k, m, e, o, n) {
  24544. return "undefined" == typeof n && (n = this.world),
  24545. n.create(k, m, e, o);
  24546. },
  24547. tween : function (k) {
  24548. return this.game.tweens.create(k);
  24549. },
  24550. group : function (k, m, e, o, n) {
  24551. return new i.Group(this.game, k, m, e, o, n);
  24552. },
  24553. physicsGroup : function (k, m, e, o) {
  24554. return new i.Group(this.game, m, e, o, !0, k);
  24555. },
  24556. spriteBatch : function (k, m, e) {
  24557. return "undefined" == typeof k && (k = null),
  24558. "undefined" == typeof m && (m = "group"),
  24559. "undefined" == typeof e && (e = !1),
  24560. new i.SpriteBatch(this.game, k, m, e);
  24561. },
  24562. audio : function (k, m, e, o) {
  24563. return this.game.sound.add(k, m, e, o);
  24564. },
  24565. sound : function (k, m, e, o) {
  24566. return this.game.sound.add(k, m, e, o);
  24567. },
  24568. audioSprite : function (k) {
  24569. return this.game.sound.addSprite(k);
  24570. },
  24571. tileSprite : function (k, m, e, o, n, u, q) {
  24572. return "undefined" == typeof q && (q = this.world),
  24573. q.add(new i.TileSprite(this.game, k, m, e, o, n, u));
  24574. },
  24575. rope : function (k, m, e, o, n, u) {
  24576. return "undefined" == typeof u && (u = this.world),
  24577. u.add(new i.Rope(this.game, k, m, e, o, n));
  24578. },
  24579. text : function (k, m, e, o, n) {
  24580. return "undefined" == typeof n && (n = this.world),
  24581. n.add(new i.Text(this.game, k, m, e, o));
  24582. },
  24583. button : function (k, m, e, o, n, u, q, f, j, U0) {
  24584. return "undefined" == typeof U0 && (U0 = this.world),
  24585. U0.add(new i.Button(this.game, k, m, e, o, n, u, q, f, j));
  24586. },
  24587. graphics : function (k, m, e) {
  24588. return "undefined" == typeof e && (e = this.world),
  24589. e.add(new i.Graphics(this.game, k, m));
  24590. },
  24591. emitter : function (k, m, e) {
  24592. return this.game.particles.add(new i.Particles.Arcade.Emitter(this.game, k, m, e));
  24593. },
  24594. retroFont : function (k, m, e, o, n, u, q, f, j) {
  24595. return new i.RetroFont(this.game, k, m, e, o, n, u, q, f, j);
  24596. },
  24597. bitmapText : function (k, m, e, o, n, u) {
  24598. return "undefined" == typeof u && (u = this.world),
  24599. u.add(new i.BitmapText(this.game, k, m, e, o, n));
  24600. },
  24601. tilemap : function (k, m, e, o, n) {
  24602. return new i.Tilemap(this.game, k, m, e, o, n);
  24603. },
  24604. renderTexture : function (k, m, e, o) {
  24605. ("undefined" == typeof e || y3U.O96("", e)) && (e = this.game.rnd.uuid()),
  24606. "undefined" == typeof o && (o = !1);
  24607. var n = new i.RenderTexture(this.game, k, m, e);
  24608. return o && this.game.cache.addRenderTexture(e, n),
  24609. n;
  24610. },
  24611. bitmapData : function (k, m, e, o) {
  24612. "undefined" == typeof o && (o = !1),
  24613. ("undefined" == typeof e || y3U.V96("", e)) && (e = this.game.rnd.uuid());
  24614. var n = new i.BitmapData(this.game, e, k, m);
  24615. return o && this.game.cache.addBitmapData(e, n),
  24616. n;
  24617. },
  24618. filter : function (k) {
  24619. var m = Array.prototype.splice.call(arguments, 1),
  24620. k = new i.Filter[k](this.game);
  24621. return k.init.apply(k, m),
  24622. k;
  24623. },
  24624. plugin : function (k) {
  24625. return this.game.plugins.add(k);
  24626. }
  24627. },
  24628. i.GameObjectFactory.prototype.constructor = i.GameObjectFactory,
  24629. i.GameObjectCreator = function (k) {
  24630. this.game = k,
  24631. this.world = this.game.world;
  24632. },
  24633. i.GameObjectCreator.prototype = {
  24634. image : function (k, m, e, o) {
  24635. return new i.Image(this.game, k, m, e, o);
  24636. },
  24637. sprite : function (k, m, e, o) {
  24638. return new i.Sprite(this.game, k, m, e, o);
  24639. },
  24640. tween : function (k) {
  24641. return new i.Tween(k, this.game, this.game.tweens);
  24642. },
  24643. group : function (k, m, e, o, n) {
  24644. return new i.Group(this.game, null, m, e, o, n);
  24645. },
  24646. spriteBatch : function (k, m, e) {
  24647. return "undefined" == typeof m && (m = "group"),
  24648. "undefined" == typeof e && (e = !1),
  24649. new i.SpriteBatch(this.game, k, m, e);
  24650. },
  24651. audio : function (k, m, e, o) {
  24652. return this.game.sound.add(k, m, e, o);
  24653. },
  24654. audioSprite : function (k) {
  24655. return this.game.sound.addSprite(k);
  24656. },
  24657. sound : function (k, m, e, o) {
  24658. return this.game.sound.add(k, m, e, o);
  24659. },
  24660. tileSprite : function (k, m, e, o, n, u) {
  24661. return new i.TileSprite(this.game, k, m, e, o, n, u);
  24662. },
  24663. rope : function (k, m, e, o, n) {
  24664. return new i.Rope(this.game, k, m, e, o, n);
  24665. },
  24666. text : function (k, m, e, o) {
  24667. return new i.Text(this.game, k, m, e, o);
  24668. },
  24669. button : function (k, m, e, o, n, u, q, f, j) {
  24670. return new i.Button(this.game, k, m, e, o, n, u, q, f, j);
  24671. },
  24672. graphics : function (k, m) {
  24673. return new i.Graphics(this.game, k, m);
  24674. },
  24675. emitter : function (k, m, e) {
  24676. return new i.Particles.Arcade.Emitter(this.game, k, m, e);
  24677. },
  24678. retroFont : function (k, m, e, o, n, u, q, f, j) {
  24679. return new i.RetroFont(this.game, k, m, e, o, n, u, q, f, j);
  24680. },
  24681. bitmapText : function (k, m, e, o, n) {
  24682. return new i.BitmapText(this.game, k, m, e, o, n);
  24683. },
  24684. tilemap : function (k, m, e, o, n) {
  24685. return new i.Tilemap(this.game, k, m, e, o, n);
  24686. },
  24687. renderTexture : function (k, m, e, o) {
  24688. ("undefined" == typeof e || y3U.k56("", e)) && (e = this.game.rnd.uuid()),
  24689. "undefined" == typeof o && (o = !1);
  24690. var n = new i.RenderTexture(this.game, k, m, e);
  24691. return o && this.game.cache.addRenderTexture(e, n),
  24692. n;
  24693. },
  24694. bitmapData : function (k, m, e, o) {
  24695. "undefined" == typeof o && (o = !1),
  24696. ("undefined" == typeof e || y3U.G56("", e)) && (e = this.game.rnd.uuid());
  24697. var n = new i.BitmapData(this.game, e, k, m);
  24698. return o && this.game.cache.addBitmapData(e, n),
  24699. n;
  24700. },
  24701. filter : function (k) {
  24702. var m = Array.prototype.splice.call(arguments, 1),
  24703. k = new i.Filter[k](this.game);
  24704. return k.init.apply(k, m),
  24705. k;
  24706. }
  24707. },
  24708. i.GameObjectCreator.prototype.constructor = i.GameObjectCreator,
  24709. i.BitmapData = function (k, m, e, o) {
  24710. "undefined" == typeof e && (e = 256),
  24711. "undefined" == typeof o && (o = 256),
  24712. this.game = k,
  24713. this.key = m,
  24714. this.width = e,
  24715. this.height = o,
  24716. this.canvas = i.Canvas.create(e, o, "", !0),
  24717. this.context = this.canvas.getContext("2d", {
  24718. alpha : !0
  24719. }),
  24720. this.ctx = this.context,
  24721. this.imageData = this.context.getImageData(0, 0, e, o),
  24722. this.data = this.imageData.data,
  24723. this.pixels = null,
  24724. this.imageData.data.buffer ? (this.buffer = this.imageData.data.buffer, this.pixels = new Uint32Array(this.buffer)) : r2w8n[E8n].ArrayBuffer ? (this.buffer = new ArrayBuffer(this.imageData.data.length), this.pixels = new Uint32Array(this.buffer)) : this.pixels = this.imageData.data,
  24725. this.baseTexture = new PIXI.BaseTexture(this.canvas),
  24726. this.texture = new PIXI.Texture(this.baseTexture),
  24727. this.textureFrame = new i.Frame(0, 0, 0, e, o, "bitmapData", k.rnd.uuid()),
  24728. this.texture.frame = this.textureFrame,
  24729. this.type = i.BITMAPDATA,
  24730. this.disableTextureUpload = !1,
  24731. this.dirty = !1,
  24732. this.cls = this.clear,
  24733. this._image = null,
  24734. this._pos = new i.Point,
  24735. this._size = new i.Point,
  24736. this._scale = new i.Point,
  24737. this._rotate = 0,
  24738. this._alpha = {
  24739. prev : 1,
  24740. current : 1
  24741. },
  24742. this._anchor = new i.Point,
  24743. this._tempR = 0,
  24744. this._tempG = 0,
  24745. this._tempB = 0,
  24746. this._circle = new i.Circle;
  24747. },
  24748. i.BitmapData.prototype = {
  24749. add : function (k) {
  24750. if (Array.isArray(k))
  24751. for (var m = 0; y3U.N56(m, k.length); m++)
  24752. k[m].loadTexture && k[m].loadTexture(this);
  24753. else
  24754. k.loadTexture(this);
  24755. return this;
  24756. },
  24757. load : function (k) {
  24758. return "string" == typeof k && (k = this.game.cache.getImage(k)),
  24759. k ? (this.resize(k.width, k.height), this.cls(), this.draw(k), this.update(), this) : void 0;
  24760. },
  24761. clear : function () {
  24762. return this.context.clearRect(0, 0, this.width, this.height),
  24763. this.dirty = !0,
  24764. this;
  24765. },
  24766. fill : function (k, m, e, o) {
  24767. return "undefined" == typeof o && (o = 1),
  24768. this.context.fillStyle = "rgba(" + k + "," + m + "," + e + "," + o + ")",
  24769. this.context.fillRect(0, 0, this.width, this.height),
  24770. this.dirty = !0,
  24771. this;
  24772. },
  24773. resize : function (k, m) {
  24774. return (y3U.L56(k, this.width) || y3U.z56(m, this.height)) && (this.width = k, this.height = m, this.canvas.width = k, this.canvas.height = m, this.baseTexture.width = k, this.baseTexture.height = m, this.textureFrame.width = k, this.textureFrame.height = m, this.texture.width = k, this.texture.height = m, this.texture.crop.width = k, this.texture.crop.height = m, this.update(), this.dirty = !0),
  24775. this;
  24776. },
  24777. update : function (k, m, e, o) {
  24778. return "undefined" == typeof k && (k = 0),
  24779. "undefined" == typeof m && (m = 0),
  24780. "undefined" == typeof e && (e = this.width),
  24781. "undefined" == typeof o && (o = this.height),
  24782. this.imageData = this.context.getImageData(k, m, e, o),
  24783. this.data = this.imageData.data,
  24784. this.imageData.data.buffer ? (this.buffer = this.imageData.data.buffer, this.pixels = new Uint32Array(this.buffer)) : r2w8n[E8n].ArrayBuffer ? (this.buffer = new ArrayBuffer(this.imageData.data.length), this.pixels = new Uint32Array(this.buffer)) : this.pixels = this.imageData.data,
  24785. this;
  24786. },
  24787. processPixelRGB : function (k, m, e, o, n, u) {
  24788. "undefined" == typeof e && (e = 0),
  24789. "undefined" == typeof o && (o = 0),
  24790. "undefined" == typeof n && (n = this.width),
  24791. "undefined" == typeof u && (u = this.height);
  24792. for (var q = e + n, f = o + u, j = i.Color.createColor(), U0 = {
  24793. r : 0,
  24794. g : 0,
  24795. b : 0,
  24796. a : 0
  24797. }, k0 = !1, a0 = o; y3U.J56(f, a0); a0++)
  24798. for (var T0 = e; y3U.H56(q, T0); T0++)
  24799. i.Color.unpackPixel(this.getPixel32(T0, a0), j), U0 = k.call(m, j, T0, a0), U0 !== !1 && y3U.h56(null, U0) && void 0 !== U0 && (this.setPixel32(T0, a0, U0.r, U0.g, U0.b, U0.a, !1), k0 = !0);
  24800. return k0 && (this.context.putImageData(this.imageData, 0, 0), this.dirty = !0),
  24801. this;
  24802. },
  24803. processPixel : function (k, m, e, o, n, u) {
  24804. "undefined" == typeof e && (e = 0),
  24805. "undefined" == typeof o && (o = 0),
  24806. "undefined" == typeof n && (n = this.width),
  24807. "undefined" == typeof u && (u = this.height);
  24808. for (var q = e + n, f = o + u, j = 0, U0 = 0, k0 = !1, a0 = o; y3U.F56(f, a0); a0++)
  24809. for (var T0 = e; y3U.M56(q, T0); T0++)
  24810. j = this.getPixel32(T0, a0), U0 = k.call(m, j, T0, a0), y3U.n56(U0, j) && (this.pixels[y3U.f56(a0, this.width) + T0] = U0, k0 = !0);
  24811. return k0 && (this.context.putImageData(this.imageData, 0, 0), this.dirty = !0),
  24812. this;
  24813. },
  24814. replaceRGB : function (k, m, e, o, n, u, q, f, j) {
  24815. var U0 = 0,
  24816. k0 = 0,
  24817. a0 = this.width,
  24818. T0 = this.height,
  24819. G0 = i.Color.packPixel(k, m, e, o);
  24820. void 0 !== j && y3U.K56(j, i.Rectangle) && (U0 = j.x, k0 = j.y, a0 = j.width, T0 = j.height);
  24821. for (var W0 = 0; y3U.B56(T0, W0); W0++)
  24822. for (var N0 = 0; y3U.l56(a0, N0); N0++)
  24823. y3U.X56(this.getPixel32(U0 + N0, k0 + W0), G0) && this.setPixel32(U0 + N0, k0 + W0, n, u, q, f, !1);
  24824. return this.context.putImageData(this.imageData, 0, 0),
  24825. this.dirty = !0,
  24826. this;
  24827. },
  24828. setHSL : function (k, m, e, o) {
  24829. if (("undefined" == typeof k || y3U.Y56(null, k)) && (k = !1), ("undefined" == typeof m || y3U.U26(null, m)) && (m = !1), ("undefined" == typeof e || y3U.T26(null, e)) && (e = !1), k || m || e) {
  24830. "undefined" == typeof o && (o = new i.Rectangle(0, 0, this.width, this.height));
  24831. for (var n = i.Color.createColor(), u = o.y; y3U.S26(u, o.bottom); u++)
  24832. for (var q = o.x; y3U.I26(q, o.right); q++)
  24833. i.Color.unpackPixel(this.getPixel32(q, u), n, !0), k && (n.h = k), m && (n.s = m), e && (n.l = e), i.Color.HSLtoRGB(n.h, n.s, n.l, n), this.setPixel32(q, u, n.r, n.g, n.b, n.a, !1);
  24834. return this.context.putImageData(this.imageData, 0, 0),
  24835. this.dirty = !0,
  24836. this;
  24837. }
  24838. },
  24839. shiftHSL : function (k, m, e, o) {
  24840. if (("undefined" == typeof k || y3U.C26(null, k)) && (k = !1), ("undefined" == typeof m || y3U.v26(null, m)) && (m = !1), ("undefined" == typeof e || y3U.t26(null, e)) && (e = !1), k || m || e) {
  24841. "undefined" == typeof o && (o = new i.Rectangle(0, 0, this.width, this.height));
  24842. for (var n = i.Color.createColor(), u = o.y; y3U.y26(u, o.bottom); u++)
  24843. for (var q = o.x; y3U.o26(q, o.right); q++)
  24844. i.Color.unpackPixel(this.getPixel32(q, u), n, !0), k && (n.h = this.game.math.wrap(n.h + k, 0, 1)), m && (n.s = this.game.math.limitValue(n.s + m, 0, 1)), e && (n.l = this.game.math.limitValue(n.l + e, 0, 1)), i.Color.HSLtoRGB(n.h, n.s, n.l, n), this.setPixel32(q, u, n.r, n.g, n.b, n.a, !1);
  24845. return this.context.putImageData(this.imageData, 0, 0),
  24846. this.dirty = !0,
  24847. this;
  24848. }
  24849. },
  24850. setPixel32 : function (k, m, e, o, n, u, q) {
  24851. return "undefined" == typeof q && (q = !0),
  24852. y3U.x26(k, 0) && y3U.p26(k, this.width) && y3U.q26(m, 0) && y3U.b26(m, this.height) && (this.pixels[y3U.j26(m, this.width) + k] = i.Device.LITTLE_ENDIAN ? y3U.d26(u << 24, n << 16, o << 8, e) : y3U.O26(e << 24, o << 16, n << 8, u), q && (this.context.putImageData(this.imageData, 0, 0), this.dirty = !0)),
  24853. this;
  24854. },
  24855. setPixel : function (k, m, e, o, n, u) {
  24856. return this.setPixel32(k, m, e, o, n, 255, u);
  24857. },
  24858. getPixel : function (k, m, e) {
  24859. e || (e = i.Color.createColor());
  24860. var o = ~~(k + y3U.U16(m, this.width));
  24861. return o *= 4,
  24862. e.r = this.data[o],
  24863. e.g = this.data[++o],
  24864. e.b = this.data[++o],
  24865. e.a = this.data[++o],
  24866. e;
  24867. },
  24868. getPixel32 : function (k, m) {
  24869. return y3U.T16(k, 0) && y3U.S16(k, this.width) && y3U.I16(m, 0) && y3U.C16(m, this.height) ? this.pixels[y3U.v16(m, this.width) + k] : void 0;
  24870. },
  24871. getPixelRGB : function (k, m, e, o, n) {
  24872. return i.Color.unpackPixel(this.getPixel32(k, m), e, o, n);
  24873. },
  24874. getPixels : function (k) {
  24875. return this.context.getImageData(k.x, k.y, k.width, k.height);
  24876. },
  24877. getFirstPixel : function (k) {
  24878. "undefined" == typeof k && (k = 0);
  24879. var m = i.Color.createColor(),
  24880. e = 0,
  24881. o = 0,
  24882. n = 1,
  24883. u = !1;
  24884. y3U.t16(1, k) ? (n = -1, o = this.height) : y3U.y16(3, k) && (n = -1, e = this.width);
  24885. do
  24886. i.Color.unpackPixel(this.getPixel32(e, o), m), y3U.o16(0, k) || y3U.x16(1, k) ? (e++, y3U.p16(e, this.width) && (e = 0, o += n, (y3U.q16(o, this.height) || y3U.b16(0, o)) && (u = !0))) : (y3U.j16(2, k) || y3U.d16(3, k)) && (o++, y3U.c16(o, this.height) && (o = 0, e += n, (y3U.s16(e, this.width) || y3U.Q16(0, e)) && (u = !0)));
  24887. while (y3U.a66(0, m.a) && !u);
  24888. return m.x = e,
  24889. m.y = o,
  24890. m;
  24891. },
  24892. getBounds : function (k) {
  24893. return "undefined" == typeof k && (k = new i.Rectangle),
  24894. k.x = this.getFirstPixel(2).x,
  24895. y3U.W66(k.x, this.width) ? k.setTo(0, 0, 0, 0) : (k.y = this.getFirstPixel(0).y, k.width = y3U.m66(this.getFirstPixel(3).x, k.x, 1), k.height = y3U.C66(this.getFirstPixel(1).y, k.y, 1), k);
  24896. },
  24897. addToWorld : function (k, m, e, o, n, u) {
  24898. n = n || 1,
  24899. u = u || 1;
  24900. var q = this.game.add.image(k, m, this);
  24901. return q.anchor.set(e, o),
  24902. q.scale.set(n, u),
  24903. q;
  24904. },
  24905. copy : function (k, m, e, o, n, u, q, f, j, U0, k0, a0, T0, G0, W0, N0, S0) {
  24906. if (("undefined" == typeof k || y3U.J66(null, k)) && (k = this), this._image = k, y3U.H66(k, i.Sprite) || y3U.h66(k, i.Image) || y3U.F66(k, i.Text))
  24907. this._pos.set(k.texture.crop.x, k.texture.crop.y), this._size.set(k.texture.crop.width, k.texture.crop.height), this._scale.set(k.scale.x, k.scale.y), this._anchor.set(k.anchor.x, k.anchor.y), this._rotate = k.rotation, this._alpha.current = k.alpha, this._image = k.texture.baseTexture.source, ("undefined" == typeof u || y3U.M66(null, u)) && (u = k.x), ("undefined" == typeof q || y3U.n66(null, q)) && (q = k.y), k.texture.trim && (u += y3U.f66(k.texture.trim.x, k.anchor.x * k.texture.trim.width), q += y3U.K66(k.texture.trim.y, k.anchor.y * k.texture.trim.height)), y3U.B66(16777215, k.tint) && (y3U.l66(k.cachedTint, k.tint) && (k.cachedTint = k.tint, k.tintedTexture = PIXI.CanvasTinter.getTintedTexture(k, k.tint)), this._image = k.tintedTexture);
  24908. else {
  24909. if (this._pos.set(0), this._scale.set(1), this._anchor.set(0), this._rotate = 0, this._alpha.current = 1, y3U.X66(k, i.BitmapData))
  24910. this._image = k.canvas;
  24911. else if ("string" == typeof k) {
  24912. if (k = this.game.cache.getImage(k), y3U.Y66(null, k))
  24913. return;
  24914. this._image = k;
  24915. }
  24916. this._size.set(this._image.width, this._image.height);
  24917. }
  24918. return ("undefined" == typeof m || y3U.U86(null, m)) && (m = 0),
  24919. ("undefined" == typeof e || y3U.T86(null, e)) && (e = 0),
  24920. o && (this._size.x = o),
  24921. n && (this._size.y = n),
  24922. ("undefined" == typeof u || y3U.S86(null, u)) && (u = m),
  24923. ("undefined" == typeof q || y3U.I86(null, q)) && (q = e),
  24924. ("undefined" == typeof f || y3U.C86(null, f)) && (f = this._size.x),
  24925. ("undefined" == typeof j || y3U.v86(null, j)) && (j = this._size.y),
  24926. "number" == typeof U0 && (this._rotate = U0),
  24927. "number" == typeof k0 && (this._anchor.x = k0),
  24928. "number" == typeof a0 && (this._anchor.y = a0),
  24929. "number" == typeof T0 && (this._scale.x = T0),
  24930. "number" == typeof G0 && (this._scale.y = G0),
  24931. "number" == typeof W0 && (this._alpha.current = W0),
  24932. "undefined" == typeof N0 && (N0 = null),
  24933. "undefined" == typeof S0 && (S0 = !1),
  24934. y3U.t86(this._alpha.current, 0) || y3U.y86(0, this._scale.x) || y3U.o86(0, this._scale.y) || y3U.x86(0, this._size.x) || y3U.p86(0, this._size.y) ? void 0 : (this._alpha.prev = this.context.globalAlpha, this.context.save(), this.context.globalAlpha = this._alpha.current, N0 && (this.context.globalCompositeOperation = N0), S0 && (u |= 0, q |= 0), this.context.translate(u, q), this.context.scale(this._scale.x, this._scale.y), this.context.rotate(this._rotate), this.context.drawImage(this._image, this._pos.x + m, this._pos.y + e, this._size.x, this._size.y, -f * this._anchor.x, -j * this._anchor.y, f, j), this.context.restore(), this.context.globalAlpha = this._alpha.prev, this.dirty = !0, this);
  24935. },
  24936. copyRect : function (k, m, e, o, n, u, q) {
  24937. return this.copy(k, m.x, m.y, m.width, m.height, e, o, m.width, m.height, 0, 0, 0, 1, 1, n, u, q);
  24938. },
  24939. draw : function (k, m, e, o, n, u, q) {
  24940. return this.copy(k, null, null, null, null, m, e, o, n, null, null, null, null, null, null, u, q);
  24941. },
  24942. drawGroup : function (k, m, e) {
  24943. return y3U.q86(k.total, 0) && k.forEachExists(this.copy, this, null, null, null, null, null, null, null, null, null, null, null, null, null, null, m, e),
  24944. this;
  24945. },
  24946. shadow : function (k, m, e, o) {
  24947. "undefined" == typeof k || y3U.b86(null, k) ? this.context.shadowColor = "rgba(0,0,0,0)" : (this.context.shadowColor = k, this.context.shadowBlur = m || 5, this.context.shadowOffsetX = e || 10, this.context.shadowOffsetY = o || 10);
  24948. },
  24949. alphaMask : function (k, m, e, o) {
  24950. return "undefined" == typeof o || y3U.j86(null, o) ? this.draw(m).blendSourceAtop() : this.draw(m, o.x, o.y, o.width, o.height).blendSourceAtop(),
  24951. "undefined" == typeof e || y3U.d86(null, e) ? this.draw(k).blendReset() : this.draw(k, e.x, e.y, e.width, e.height).blendReset(),
  24952. this;
  24953. },
  24954. extract : function (o, n, u, q, f, j, U0, k0, a0) {
  24955. return "undefined" == typeof f && (f = 255),
  24956. "undefined" == typeof j && (j = !1),
  24957. "undefined" == typeof U0 && (U0 = n),
  24958. "undefined" == typeof k0 && (k0 = u),
  24959. "undefined" == typeof a0 && (a0 = q),
  24960. j && o.resize(this.width, this.height),
  24961. this.processPixelRGB(function (k, m, e) {
  24962. return y3U.c86(k.r, n) && y3U.s86(k.g, u) && y3U.Q86(k.b, q) && o.setPixel32(m, e, U0, k0, a0, f, !1),
  24963. !1;
  24964. }, this),
  24965. o.context.putImageData(o.imageData, 0, 0),
  24966. o.dirty = !0,
  24967. o;
  24968. },
  24969. rect : function (k, m, e, o, n) {
  24970. return "undefined" != typeof n && (this.context.fillStyle = n),
  24971. this.context.fillRect(k, m, e, o),
  24972. this;
  24973. },
  24974. circle : function (k, m, e, o) {
  24975. return "undefined" != typeof o && (this.context.fillStyle = o),
  24976. this.context.beginPath(),
  24977. this.context.arc(k, m, e, 0, y3U.a0h(2, Math.PI), !1),
  24978. this.context.closePath(),
  24979. this.context.fill(),
  24980. this;
  24981. },
  24982. textureLine : function (k, m, e) {
  24983. if ("undefined" == typeof e && (e = "repeat-x"), "string" != typeof m || (m = this.game.cache.getImage(m))) {
  24984. var o = k.length;
  24985. return y3U.W0h("no-repeat", e) && y3U.m0h(o, m.width) && (o = m.width),
  24986. this.context.fillStyle = this.context.createPattern(m, e),
  24987. this._circle = new i.Circle(k.start.x, k.start.y, m.height),
  24988. this._circle.circumferencePoint(y3U.A0h(k.angle, 1.5707963267948966), !1, this._pos),
  24989. this.context.save(),
  24990. this.context.translate(this._pos.x, this._pos.y),
  24991. this.context.rotate(k.angle),
  24992. this.context.fillRect(0, 0, o, m.height),
  24993. this.context.restore(),
  24994. this.dirty = !0,
  24995. this;
  24996. }
  24997. },
  24998. render : function () {
  24999. return !this.disableTextureUpload && this.dirty && (this.baseTexture.dirty(), this.dirty = !1),
  25000. this;
  25001. },
  25002. blendReset : function () {
  25003. return this.context.globalCompositeOperation = "source-over",
  25004. this;
  25005. },
  25006. blendSourceOver : function () {
  25007. return this.context.globalCompositeOperation = "source-over",
  25008. this;
  25009. },
  25010. blendSourceIn : function () {
  25011. return this.context.globalCompositeOperation = "source-in",
  25012. this;
  25013. },
  25014. blendSourceOut : function () {
  25015. return this.context.globalCompositeOperation = "source-out",
  25016. this;
  25017. },
  25018. blendSourceAtop : function () {
  25019. return this.context.globalCompositeOperation = "source-atop",
  25020. this;
  25021. },
  25022. blendDestinationOver : function () {
  25023. return this.context.globalCompositeOperation = "destination-over",
  25024. this;
  25025. },
  25026. blendDestinationIn : function () {
  25027. return this.context.globalCompositeOperation = "destination-in",
  25028. this;
  25029. },
  25030. blendDestinationOut : function () {
  25031. return this.context.globalCompositeOperation = "destination-out",
  25032. this;
  25033. },
  25034. blendDestinationAtop : function () {
  25035. return this.context.globalCompositeOperation = "destination-atop",
  25036. this;
  25037. },
  25038. blendXor : function () {
  25039. return this.context.globalCompositeOperation = "xor",
  25040. this;
  25041. },
  25042. blendAdd : function () {
  25043. return this.context.globalCompositeOperation = "lighter",
  25044. this;
  25045. },
  25046. blendMultiply : function () {
  25047. return this.context.globalCompositeOperation = "multiply",
  25048. this;
  25049. },
  25050. blendScreen : function () {
  25051. return this.context.globalCompositeOperation = "screen",
  25052. this;
  25053. },
  25054. blendOverlay : function () {
  25055. return this.context.globalCompositeOperation = "overlay",
  25056. this;
  25057. },
  25058. blendDarken : function () {
  25059. return this.context.globalCompositeOperation = "darken",
  25060. this;
  25061. },
  25062. blendLighten : function () {
  25063. return this.context.globalCompositeOperation = "lighten",
  25064. this;
  25065. },
  25066. blendColorDodge : function () {
  25067. return this.context.globalCompositeOperation = "color-dodge",
  25068. this;
  25069. },
  25070. blendColorBurn : function () {
  25071. return this.context.globalCompositeOperation = "color-burn",
  25072. this;
  25073. },
  25074. blendHardLight : function () {
  25075. return this.context.globalCompositeOperation = "hard-light",
  25076. this;
  25077. },
  25078. blendSoftLight : function () {
  25079. return this.context.globalCompositeOperation = "soft-light",
  25080. this;
  25081. },
  25082. blendDifference : function () {
  25083. return this.context.globalCompositeOperation = "difference",
  25084. this;
  25085. },
  25086. blendExclusion : function () {
  25087. return this.context.globalCompositeOperation = "exclusion",
  25088. this;
  25089. },
  25090. blendHue : function () {
  25091. return this.context.globalCompositeOperation = "hue",
  25092. this;
  25093. },
  25094. blendSaturation : function () {
  25095. return this.context.globalCompositeOperation = "saturation",
  25096. this;
  25097. },
  25098. blendColor : function () {
  25099. return this.context.globalCompositeOperation = "color",
  25100. this;
  25101. },
  25102. blendLuminosity : function () {
  25103. return this.context.globalCompositeOperation = "luminosity",
  25104. this;
  25105. }
  25106. },
  25107. Object.defineProperty(i.BitmapData.prototype, "smoothed", {
  25108. get : function () {
  25109. i.Canvas.getSmoothingEnabled(this.context);
  25110. },
  25111. set : function (k) {
  25112. i.Canvas.setSmoothingEnabled(this.context, k);
  25113. }
  25114. }),
  25115. i.BitmapData.getTransform = function (k, m, e, o, n, u) {
  25116. return "number" != typeof k && (k = 0),
  25117. "number" != typeof m && (m = 0),
  25118. "number" != typeof e && (e = 1),
  25119. "number" != typeof o && (o = 1),
  25120. "number" != typeof n && (n = 0),
  25121. "number" != typeof u && (u = 0), {
  25122. sx : e,
  25123. sy : o,
  25124. scaleX : e,
  25125. scaleY : o,
  25126. skewX : n,
  25127. skewY : u,
  25128. translateX : k,
  25129. translateY : m,
  25130. tx : k,
  25131. ty : m
  25132. };
  25133. },
  25134. i.BitmapData.prototype.constructor = i.BitmapData,
  25135. i.Sprite = function (k, m, e, o, n) {
  25136. m = m || 0,
  25137. e = e || 0,
  25138. o = o || null,
  25139. n = n || null,
  25140. this.game = k,
  25141. this.name = "",
  25142. this.type = i.SPRITE,
  25143. this.z = 0,
  25144. this.events = new i.Events(this),
  25145. this.animations = new i.AnimationManager(this),
  25146. this.key = o,
  25147. PIXI.Sprite.call(this, PIXI.TextureCache.__default),
  25148. this.transformCallback = this.checkTransform,
  25149. this.transformCallbackContext = this,
  25150. this.position.set(m, e),
  25151. this.world = new i.Point(m, e),
  25152. this.autoCull = !1,
  25153. this.input = null,
  25154. this.body = null,
  25155. this.alive = !0,
  25156. this.health = 1,
  25157. this.lifespan = 0,
  25158. this.checkWorldBounds = !1,
  25159. this.outOfBoundsKill = !1,
  25160. this.debug = !1,
  25161. this.cameraOffset = new i.Point,
  25162. this.cropRect = null,
  25163. this.scaleMin = null,
  25164. this.scaleMax = null,
  25165. this._cache = [0, 0, 0, 0, 1, 0, 1, 0],
  25166. this._crop = null,
  25167. this._frame = null,
  25168. this._bounds = new i.Rectangle,
  25169. this.loadTexture(o, n);
  25170. },
  25171. i.Sprite.prototype = Object.create(PIXI.Sprite.prototype),
  25172. i.Sprite.prototype.constructor = i.Sprite,
  25173. i.Sprite.prototype.preUpdate = function () {
  25174. if (y3U.w0h(1, this._cache[4]) && this.exists)
  25175. return this.world.setTo(this.parent.position.x + this.position.x, this.parent.position.y + this.position.y), this.worldTransform.tx = this.world.x, this.worldTransform.ty = this.world.y, this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, this.body && this.body.preUpdate(), this._cache[4] = 0, !1;
  25176. if (this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, !this.exists || !this.parent.exists)
  25177. return this._cache[3] = -1, !1;
  25178. if (y3U.E0h(this.lifespan, 0) && (this.lifespan -= this.game.time.physicsElapsedMS, y3U.e0h(this.lifespan, 0)))
  25179. return this.kill(), !1;
  25180. if ((this.autoCull || this.checkWorldBounds) && (this._bounds.copyFrom(this.getBounds()), this._bounds.x += this.game.camera.view.x, this._bounds.y += this.game.camera.view.y, this.autoCull && (this.game.world.camera.view.intersects(this._bounds) ? (this.renderable = !0, this.game.world.camera.totalInView++) : this.renderable = !1), this.checkWorldBounds))
  25181. if (y3U.g0h(1, this._cache[5]) && this.game.world.bounds.intersects(this._bounds))
  25182. this._cache[5] = 0, this.events.onEnterBounds$dispatch(this);
  25183. else if (y3U.r0h(0, this._cache[5]) && !this.game.world.bounds.intersects(this._bounds) && (this._cache[5] = 1, this.events.onOutOfBounds$dispatch(this), this.outOfBoundsKill))
  25184. return this.kill(), !1;
  25185. this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty),
  25186. this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++),
  25187. this.animations.update(),
  25188. this.body && this.body.preUpdate();
  25189. for (var k = 0, m = this.children.length; y3U.i0h(m, k); k++)
  25190. this.children[k].preUpdate();
  25191. return !0;
  25192. },
  25193. i.Sprite.prototype.update = function () {},
  25194. i.Sprite.prototype.postUpdate = function () {
  25195. y3U.u0h(this.key, i.BitmapData) && this.key.render(),
  25196. this.exists && this.body && this.body.postUpdate(),
  25197. y3U.P0h(1, this._cache[7]) && (this.position.x = y3U.D0h((this.game.camera.view.x + this.cameraOffset.x), this.game.camera.scale.x), this.position.y = y3U.Z0h((this.game.camera.view.y + this.cameraOffset.y), this.game.camera.scale.y));
  25198. for (var k = 0, m = this.children.length; y3U.R0h(m, k); k++)
  25199. this.children[k].postUpdate();
  25200. },
  25201. i.Sprite.prototype.loadTexture = function (k, m, e) {
  25202. m = m || 0,
  25203. (e || "undefined" == typeof e) && this.animations.stop(),
  25204. this.key = k;
  25205. var o = !0,
  25206. n = this.smoothed;
  25207. y3U.O0h(k, i.RenderTexture) ? (this.key = k.key, this.setTexture(k)) : y3U.V0h(k, i.BitmapData) ? (this.setTexture(k.texture), this.game.cache.getFrameData(k.key, i.Cache.BITMAPDATA) && (o = !this.animations.loadFrameData(this.game.cache.getFrameData(k.key, i.Cache.BITMAPDATA), m))) : y3U.k7h(k, PIXI.Texture) ? this.setTexture(k) : y3U.G7h(null, k) || "undefined" == typeof k ? (this.key = "__default", this.setTexture(PIXI.TextureCache[this.key])) : "string" != typeof k || this.game.cache.checkImageKey(k) ? (this.setTexture(new PIXI.Texture(PIXI.BaseTextureCache[k])), o = !this.animations.loadFrameData(this.game.cache.getFrameData(k), m)) : (console.warn("Texture with key '" + k + "' not found."), this.key = "__missing", this.setTexture(PIXI.TextureCache[this.key])),
  25208. this.texture.baseTexture.dirty(),
  25209. o && (this._frame = i.Rectangle.clone(this.texture.frame)),
  25210. n || (this.smoothed = !1);
  25211. },
  25212. i.Sprite.prototype.setFrame = function (k) {
  25213. this._frame = k,
  25214. this.texture.frame.x = k.x,
  25215. this.texture.frame.y = k.y,
  25216. this.texture.frame.width = k.width,
  25217. this.texture.frame.height = k.height,
  25218. this.texture.crop.x = k.x,
  25219. this.texture.crop.y = k.y,
  25220. this.texture.crop.width = k.width,
  25221. this.texture.crop.height = k.height,
  25222. k.trimmed ? (this.texture.trim ? (this.texture.trim.x = k.spriteSourceSizeX, this.texture.trim.y = k.spriteSourceSizeY, this.texture.trim.width = k.sourceSizeW, this.texture.trim.height = k.sourceSizeH) : this.texture.trim = {
  25223. x : k.spriteSourceSizeX,
  25224. y : k.spriteSourceSizeY,
  25225. width : k.sourceSizeW,
  25226. height : k.sourceSizeH
  25227. }, this.texture.width = k.sourceSizeW, this.texture.height = k.sourceSizeH, this.texture.frame.width = k.sourceSizeW, this.texture.frame.height = k.sourceSizeH) : !k.trimmed && this.texture.trim && (this.texture.trim = null),
  25228. this.cropRect && this.updateCrop(),
  25229. this.texture._updateUvs();
  25230. },
  25231. i.Sprite.prototype.resetFrame = function () {
  25232. this._frame && this.setFrame(this._frame);
  25233. },
  25234. i.Sprite.prototype.crop = function (k, m) {
  25235. "undefined" == typeof m && (m = !1),
  25236. k ? (m && y3U.N7h(null, this.cropRect) ? this.cropRect.setTo(k.x, k.y, k.width, k.height) : this.cropRect = m && y3U.L7h(null, this.cropRect) ? new i.Rectangle(k.x, k.y, k.width, k.height) : k, this.updateCrop()) : (this._crop = null, this.cropRect = null, this.resetFrame());
  25237. },
  25238. i.Sprite.prototype.updateCrop = function () {
  25239. if (this.cropRect) {
  25240. this._crop = i.Rectangle.clone(this.cropRect, this._crop),
  25241. this._crop.x += this._frame.x,
  25242. this._crop.y += this._frame.y;
  25243. var k = Math.max(this._frame.x, this._crop.x),
  25244. m = Math.max(this._frame.y, this._crop.y),
  25245. e = y3U.z7h(Math.min(this._frame.right, this._crop.right), k),
  25246. o = y3U.J7h(Math.min(this._frame.bottom, this._crop.bottom), m);
  25247. this.texture.crop.x = k,
  25248. this.texture.crop.y = m,
  25249. this.texture.crop.width = e,
  25250. this.texture.crop.height = o,
  25251. this.texture.frame.width = Math.min(e, this.cropRect.width),
  25252. this.texture.frame.height = Math.min(o, this.cropRect.height),
  25253. this.texture.width = this.texture.frame.width,
  25254. this.texture.height = this.texture.frame.height,
  25255. this.texture._updateUvs();
  25256. }
  25257. },
  25258. i.Sprite.prototype.revive = function (k) {
  25259. return "undefined" == typeof k && (k = 1),
  25260. this.alive = !0,
  25261. this.exists = !0,
  25262. this.visible = !0,
  25263. this.health = k,
  25264. this.events && this.events.onRevived$dispatch(this),
  25265. this;
  25266. },
  25267. i.Sprite.prototype.kill = function () {
  25268. return this.alive = !1,
  25269. this.exists = !1,
  25270. this.visible = !1,
  25271. this.events && this.events.onKilled$dispatch(this),
  25272. this;
  25273. },
  25274. i.Sprite.prototype.destroy = function (k) {
  25275. if (y3U.H7h(null, this.game) && y3U.h7h(1, this._cache[8])) {
  25276. "undefined" == typeof k && (k = !0),
  25277. this._cache[8] = 1,
  25278. this.events && this.events.onDestroy$dispatch(this),
  25279. this.parent && (y3U.F7h(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this)),
  25280. this.input && this.input.destroy(),
  25281. this.animations && this.animations.destroy(),
  25282. this.body && this.body.destroy(),
  25283. this.events && this.events.destroy();
  25284. var m = this.children.length;
  25285. if (k)
  25286. for (; m--; )
  25287. this.children[m].destroy(k);
  25288. else
  25289. for (; m--; )
  25290. this.removeChild(this.children[m]);
  25291. this._crop && (this._crop = null),
  25292. this._frame && (this._frame = null),
  25293. this.alive = !1,
  25294. this.exists = !1,
  25295. this.visible = !1,
  25296. this.filters = null,
  25297. this.mask = null,
  25298. this.game = null,
  25299. this._cache[8] = 0;
  25300. }
  25301. },
  25302. i.Sprite.prototype.damage = function (k) {
  25303. return this.alive && (this.health -= k, y3U.M7h(this.health, 0) && this.kill()),
  25304. this;
  25305. },
  25306. i.Sprite.prototype.reset = function (k, m, e) {
  25307. return "undefined" == typeof e && (e = 1),
  25308. this.world.setTo(k, m),
  25309. this.position.x = k,
  25310. this.position.y = m,
  25311. this.alive = !0,
  25312. this.exists = !0,
  25313. this.visible = !0,
  25314. this.renderable = !0,
  25315. this._outOfBoundsFired = !1,
  25316. this.health = e,
  25317. this.body && this.body.reset(k, m, !1, !1),
  25318. this._cache[4] = 1,
  25319. this;
  25320. },
  25321. i.Sprite.prototype.bringToTop = function () {
  25322. return this.parent && this.parent.bringToTop(this),
  25323. this;
  25324. },
  25325. i.Sprite.prototype.play = function (k, m, e, o) {
  25326. return this.animations ? this.animations.play(k, m, e, o) : void 0;
  25327. },
  25328. i.Sprite.prototype.overlap = function (k) {
  25329. return i.Rectangle.intersects(this.getBounds(), k.getBounds());
  25330. },
  25331. i.Sprite.prototype.checkTransform = function (k) {
  25332. this.scaleMin && (y3U.n7h(k.a, this.scaleMin.x) && (k.a = this.scaleMin.x), y3U.f7h(k.d, this.scaleMin.y) && (k.d = this.scaleMin.y)),
  25333. this.scaleMax && (y3U.K7h(k.a, this.scaleMax.x) && (k.a = this.scaleMax.x), y3U.B7h(k.d, this.scaleMax.y) && (k.d = this.scaleMax.y));
  25334. },
  25335. i.Sprite.prototype.setScaleMinMax = function (k, m, e, o) {
  25336. "undefined" == typeof m ? m = e = o = k : "undefined" == typeof e && (e = o = m, m = k),
  25337. y3U.l7h(null, k) ? this.scaleMin = null : this.scaleMin ? this.scaleMin.set(k, m) : this.scaleMin = new i.Point(k, m),
  25338. y3U.X7h(null, e) ? this.scaleMax = null : this.scaleMax ? this.scaleMax.set(e, o) : this.scaleMax = new i.Point(e, o);
  25339. },
  25340. Object.defineProperty(i.Sprite.prototype, "angle", {
  25341. get : function () {
  25342. return i.Math.wrapAngle(i.Math.radToDeg(this.rotation));
  25343. },
  25344. set : function (k) {
  25345. this.rotation = i.Math.degToRad(i.Math.wrapAngle(k));
  25346. }
  25347. }),
  25348. Object.defineProperty(i.Sprite.prototype, "deltaX", {
  25349. get : function () {
  25350. return y3U.Y7h(this.world.x, this._cache[0]);
  25351. }
  25352. }),
  25353. Object.defineProperty(i.Sprite.prototype, "deltaY", {
  25354. get : function () {
  25355. return y3U.U4h(this.world.y, this._cache[1]);
  25356. }
  25357. }),
  25358. Object.defineProperty(i.Sprite.prototype, "deltaZ", {
  25359. get : function () {
  25360. return y3U.T4h(this.rotation, this._cache[2]);
  25361. }
  25362. }),
  25363. Object.defineProperty(i.Sprite.prototype, "inWorld", {
  25364. get : function () {
  25365. return this.game.world.bounds.intersects(this.getBounds());
  25366. }
  25367. }),
  25368. Object.defineProperty(i.Sprite.prototype, "inCamera", {
  25369. get : function () {
  25370. return this.autoCull || this.checkWorldBounds || (this._bounds.copyFrom(this.getBounds()), this._bounds.x += this.game.camera.view.x, this._bounds.y += this.game.camera.view.y),
  25371. this.game.world.camera.view.intersects(this._bounds);
  25372. }
  25373. }),
  25374. Object.defineProperty(i.Sprite.prototype, "frame", {
  25375. get : function () {
  25376. return this.animations.frame;
  25377. },
  25378. set : function (k) {
  25379. this.animations.frame = k;
  25380. }
  25381. }),
  25382. Object.defineProperty(i.Sprite.prototype, "frameName", {
  25383. get : function () {
  25384. return this.animations.frameName;
  25385. },
  25386. set : function (k) {
  25387. this.animations.frameName = k;
  25388. }
  25389. }),
  25390. Object.defineProperty(i.Sprite.prototype, "renderOrderID", {
  25391. get : function () {
  25392. return this._cache[3];
  25393. }
  25394. }),
  25395. Object.defineProperty(i.Sprite.prototype, "inputEnabled", {
  25396. get : function () {
  25397. return this.input && this.input.enabled;
  25398. },
  25399. set : function (k) {
  25400. k ? y3U.S4h(null, this.input) ? (this.input = new i.InputHandler(this), this.input.start()) : this.input && !this.input.enabled && this.input.start() : this.input && this.input.enabled && this.input.stop();
  25401. }
  25402. }),
  25403. Object.defineProperty(i.Sprite.prototype, "exists", {
  25404. get : function () {
  25405. return !!this._cache[6];
  25406. },
  25407. set : function (k) {
  25408. k ? (this._cache[6] = 1, this.body && y3U.I4h(this.body.type, i.Physics.P2JS) && this.body.addToWorld(), this.visible = !0) : (this._cache[6] = 0, this.body && y3U.C4h(this.body.type, i.Physics.P2JS) && this.body.removeFromWorld(), this.visible = !1);
  25409. }
  25410. }),
  25411. Object.defineProperty(i.Sprite.prototype, "fixedToCamera", {
  25412. get : function () {
  25413. return !!this._cache[7];
  25414. },
  25415. set : function (k) {
  25416. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  25417. }
  25418. }),
  25419. Object.defineProperty(i.Sprite.prototype, "smoothed", {
  25420. get : function () {
  25421. return !this.texture.baseTexture.scaleMode;
  25422. },
  25423. set : function (k) {
  25424. k ? this.texture && (this.texture.baseTexture.scaleMode = 0) : this.texture && (this.texture.baseTexture.scaleMode = 1);
  25425. }
  25426. }),
  25427. Object.defineProperty(i.Sprite.prototype, "x", {
  25428. get : function () {
  25429. return this.position.x;
  25430. },
  25431. set : function (k) {
  25432. this.position.x = k,
  25433. this.body && y3U.v4h(this.body.type, i.Physics.ARCADE) && y3U.t4h(2, this.body.phase) && (this.body._reset = 1);
  25434. }
  25435. }),
  25436. Object.defineProperty(i.Sprite.prototype, "y", {
  25437. get : function () {
  25438. return this.position.y;
  25439. },
  25440. set : function (k) {
  25441. this.position.y = k,
  25442. this.body && y3U.y4h(this.body.type, i.Physics.ARCADE) && y3U.o4h(2, this.body.phase) && (this.body._reset = 1);
  25443. }
  25444. }),
  25445. Object.defineProperty(i.Sprite.prototype, "destroyPhase", {
  25446. get : function () {
  25447. return !!this._cache[8];
  25448. }
  25449. }),
  25450. i.Image = function (k, m, e, o, n) {
  25451. m = m || 0,
  25452. e = e || 0,
  25453. o = o || null,
  25454. n = n || null,
  25455. this.game = k,
  25456. this.exists = !0,
  25457. this.name = "",
  25458. this.type = i.IMAGE,
  25459. this.z = 0,
  25460. this.events = new i.Events(this),
  25461. this.animations = new i.AnimationManager(this),
  25462. this.key = o,
  25463. PIXI.Sprite.call(this, PIXI.TextureCache.__default),
  25464. this.transformCallback = this.checkTransform,
  25465. this.transformCallbackContext = this,
  25466. this.position.set(m, e),
  25467. this.world = new i.Point(m, e),
  25468. this.alive = !0,
  25469. this.autoCull = !1,
  25470. this.input = null,
  25471. this.debug = !1,
  25472. this.cameraOffset = new i.Point,
  25473. this.cropRect = null,
  25474. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0],
  25475. this._crop = null,
  25476. this._frame = null,
  25477. this._bounds = new i.Rectangle,
  25478. this.loadTexture(o, n);
  25479. },
  25480. i.Image.prototype = Object.create(PIXI.Sprite.prototype),
  25481. i.Image.prototype.constructor = i.Image,
  25482. i.Image.prototype.preUpdate = function () {
  25483. if (this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, !this.exists || !this.parent.exists)
  25484. return this._cache[3] = -1, !1;
  25485. this.autoCull && (this._bounds.copyFrom(this.getBounds()), this.renderable = this.game.world.camera.screenView.intersects(this._bounds)),
  25486. this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty),
  25487. this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++);
  25488. for (var k = 0, m = this.children.length; y3U.x4h(m, k); k++)
  25489. this.children[k].preUpdate();
  25490. return !0;
  25491. },
  25492. i.Image.prototype.update = function () {},
  25493. i.Image.prototype.postUpdate = function () {
  25494. y3U.p4h(this.key, i.BitmapData) && this.key.render(),
  25495. y3U.q4h(1, this._cache[7]) && (this.position.x = y3U.b4h((this.game.camera.view.x + this.cameraOffset.x), this.game.camera.scale.x), this.position.y = y3U.j4h((this.game.camera.view.y + this.cameraOffset.y), this.game.camera.scale.y));
  25496. for (var k = 0, m = this.children.length; y3U.d4h(m, k); k++)
  25497. this.children[k].postUpdate();
  25498. },
  25499. i.Image.prototype.loadTexture = function (k, m) {
  25500. m = m || 0,
  25501. this.key = k;
  25502. var e = !0,
  25503. o = this.smoothed;
  25504. y3U.c4h(k, i.RenderTexture) ? (this.key = k.key, this.setTexture(k)) : y3U.s4h(k, i.BitmapData) ? (this.setTexture(k.texture), this.game.cache.getFrameData(k.key, i.Cache.BITMAPDATA) && (e = !this.animations.loadFrameData(this.game.cache.getFrameData(k.key, i.Cache.BITMAPDATA), m))) : y3U.Q4h(k, PIXI.Texture) ? this.setTexture(k) : y3U.a3h(null, k) || "undefined" == typeof k ? (this.key = "__default", this.setTexture(PIXI.TextureCache[this.key])) : "string" != typeof k || this.game.cache.checkImageKey(k) ? (this.setTexture(new PIXI.Texture(PIXI.BaseTextureCache[k])), e = !this.animations.loadFrameData(this.game.cache.getFrameData(k), m)) : (console.warn("Texture with key '" + k + "' not found."), this.key = "__missing", this.setTexture(PIXI.TextureCache[this.key])),
  25505. this.texture.baseTexture.dirty(),
  25506. e && (this._frame = i.Rectangle.clone(this.texture.frame)),
  25507. o || (this.smoothed = !1);
  25508. },
  25509. i.Image.prototype.setFrame = function (k) {
  25510. this._frame = k,
  25511. this.texture.frame.x = k.x,
  25512. this.texture.frame.y = k.y,
  25513. this.texture.frame.width = k.width,
  25514. this.texture.frame.height = k.height,
  25515. this.texture.crop.x = k.x,
  25516. this.texture.crop.y = k.y,
  25517. this.texture.crop.width = k.width,
  25518. this.texture.crop.height = k.height,
  25519. k.trimmed ? (this.texture.trim ? (this.texture.trim.x = k.spriteSourceSizeX, this.texture.trim.y = k.spriteSourceSizeY, this.texture.trim.width = k.sourceSizeW, this.texture.trim.height = k.sourceSizeH) : this.texture.trim = {
  25520. x : k.spriteSourceSizeX,
  25521. y : k.spriteSourceSizeY,
  25522. width : k.sourceSizeW,
  25523. height : k.sourceSizeH
  25524. }, this.texture.width = k.sourceSizeW, this.texture.height = k.sourceSizeH, this.texture.frame.width = k.sourceSizeW, this.texture.frame.height = k.sourceSizeH) : !k.trimmed && this.texture.trim && (this.texture.trim = null),
  25525. this.cropRect && this.updateCrop(),
  25526. this.texture._updateUvs();
  25527. },
  25528. i.Image.prototype.resetFrame = function () {
  25529. this._frame && this.setFrame(this._frame);
  25530. },
  25531. i.Image.prototype.crop = function (k, m) {
  25532. "undefined" == typeof m && (m = !1),
  25533. k ? (m && y3U.W3h(null, this.cropRect) ? this.cropRect.setTo(k.x, k.y, k.width, k.height) : this.cropRect = m && y3U.m3h(null, this.cropRect) ? new i.Rectangle(k.x, k.y, k.width, k.height) : k, this.updateCrop()) : (this._crop = null, this.cropRect = null, this.resetFrame());
  25534. },
  25535. i.Image.prototype.updateCrop = function () {
  25536. if (this.cropRect) {
  25537. this._crop = i.Rectangle.clone(this.cropRect, this._crop),
  25538. this._crop.x += this._frame.x,
  25539. this._crop.y += this._frame.y;
  25540. var k = Math.max(this._frame.x, this._crop.x),
  25541. m = Math.max(this._frame.y, this._crop.y),
  25542. e = y3U.A3h(Math.min(this._frame.right, this._crop.right), k),
  25543. o = y3U.w3h(Math.min(this._frame.bottom, this._crop.bottom), m);
  25544. this.texture.crop.x = k,
  25545. this.texture.crop.y = m,
  25546. this.texture.crop.width = e,
  25547. this.texture.crop.height = o,
  25548. this.texture.frame.width = Math.min(e, this.cropRect.width),
  25549. this.texture.frame.height = Math.min(o, this.cropRect.height),
  25550. this.texture.width = this.texture.frame.width,
  25551. this.texture.height = this.texture.frame.height,
  25552. this.texture._updateUvs();
  25553. }
  25554. },
  25555. i.Image.prototype.revive = function () {
  25556. return this.alive = !0,
  25557. this.exists = !0,
  25558. this.visible = !0,
  25559. this.events && this.events.onRevived$dispatch(this),
  25560. this;
  25561. },
  25562. i.Image.prototype.kill = function () {
  25563. return this.alive = !1,
  25564. this.exists = !1,
  25565. this.visible = !1,
  25566. this.events && this.events.onKilled$dispatch(this),
  25567. this;
  25568. },
  25569. i.Image.prototype.destroy = function (k) {
  25570. if (y3U.E3h(null, this.game) && !this.destroyPhase) {
  25571. "undefined" == typeof k && (k = !0),
  25572. this._cache[8] = 1,
  25573. this.events && this.events.onDestroy$dispatch(this),
  25574. this.parent && (y3U.e3h(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this)),
  25575. this.events && this.events.destroy(),
  25576. this.input && this.input.destroy(),
  25577. this.animations && this.animations.destroy();
  25578. var m = this.children.length;
  25579. if (k)
  25580. for (; m--; )
  25581. this.children[m].destroy(k);
  25582. else
  25583. for (; m--; )
  25584. this.removeChild(this.children[m]);
  25585. this.alive = !1,
  25586. this.exists = !1,
  25587. this.visible = !1,
  25588. this.filters = null,
  25589. this.mask = null,
  25590. this.game = null,
  25591. this._cache[8] = 0;
  25592. }
  25593. },
  25594. i.Image.prototype.reset = function (k, m) {
  25595. return this.world.setTo(k, m),
  25596. this.position.x = k,
  25597. this.position.y = m,
  25598. this.alive = !0,
  25599. this.exists = !0,
  25600. this.visible = !0,
  25601. this.renderable = !0,
  25602. this;
  25603. },
  25604. i.Image.prototype.bringToTop = function () {
  25605. return this.parent && this.parent.bringToTop(this),
  25606. this;
  25607. },
  25608. i.Image.prototype.checkTransform = function (k) {
  25609. this.scaleMin && (y3U.g3h(k.a, this.scaleMin.x) && (k.a = this.scaleMin.x), y3U.r3h(k.d, this.scaleMin.y) && (k.d = this.scaleMin.y)),
  25610. this.scaleMax && (y3U.i3h(k.a, this.scaleMax.x) && (k.a = this.scaleMax.x), y3U.u3h(k.d, this.scaleMax.y) && (k.d = this.scaleMax.y));
  25611. },
  25612. i.Image.prototype.setScaleMinMax = function (k, m, e, o) {
  25613. "undefined" == typeof m ? m = e = o = k : "undefined" == typeof e && (e = o = m, m = k),
  25614. y3U.P3h(null, k) ? this.scaleMin = null : this.scaleMin ? this.scaleMin.set(k, m) : this.scaleMin = new i.Point(k, m),
  25615. y3U.D3h(null, e) ? this.scaleMax = null : this.scaleMax ? this.scaleMax.set(e, o) : this.scaleMax = new i.Point(e, o);
  25616. },
  25617. Object.defineProperty(i.Image.prototype, "angle", {
  25618. get : function () {
  25619. return i.Math.wrapAngle(i.Math.radToDeg(this.rotation));
  25620. },
  25621. set : function (k) {
  25622. this.rotation = i.Math.degToRad(i.Math.wrapAngle(k));
  25623. }
  25624. }),
  25625. Object.defineProperty(i.Image.prototype, "deltaX", {
  25626. get : function () {
  25627. return y3U.Z3h(this.world.x, this._cache[0]);
  25628. }
  25629. }),
  25630. Object.defineProperty(i.Image.prototype, "deltaY", {
  25631. get : function () {
  25632. return y3U.R3h(this.world.y, this._cache[1]);
  25633. }
  25634. }),
  25635. Object.defineProperty(i.Image.prototype, "deltaZ", {
  25636. get : function () {
  25637. return y3U.O3h(this.rotation, this._cache[2]);
  25638. }
  25639. }),
  25640. Object.defineProperty(i.Image.prototype, "inWorld", {
  25641. get : function () {
  25642. return this.game.world.bounds.intersects(this.getBounds());
  25643. }
  25644. }),
  25645. Object.defineProperty(i.Image.prototype, "inCamera", {
  25646. get : function () {
  25647. return this.game.world.camera.screenView.intersects(this.getBounds());
  25648. }
  25649. }),
  25650. Object.defineProperty(i.Image.prototype, "frame", {
  25651. get : function () {
  25652. return this._frame;
  25653. },
  25654. set : function (k) {
  25655. if (y3U.V3h(k, this.frame)) {
  25656. var m = this.game.cache.getFrameData(this.key);
  25657. m && y3U.k9h(k, m.total) && m.getFrame(k) && (this.setTexture(PIXI.TextureCache[m.getFrame(k).uuid]), this._frame = k);
  25658. }
  25659. }
  25660. }),
  25661. Object.defineProperty(i.Image.prototype, "frameName", {
  25662. get : function () {
  25663. return this._frameName;
  25664. },
  25665. set : function (k) {
  25666. if (y3U.G9h(k, this.frameName)) {
  25667. var m = this.game.cache.getFrameData(this.key);
  25668. m && m.getFrameByName(k) && (this.setTexture(PIXI.TextureCache[m.getFrameByName(k).uuid]), this._frameName = k);
  25669. }
  25670. }
  25671. }),
  25672. Object.defineProperty(i.Image.prototype, "renderOrderID", {
  25673. get : function () {
  25674. return this._cache[3];
  25675. }
  25676. }),
  25677. Object.defineProperty(i.Image.prototype, "inputEnabled", {
  25678. get : function () {
  25679. return this.input && this.input.enabled;
  25680. },
  25681. set : function (k) {
  25682. k ? y3U.N9h(null, this.input) ? (this.input = new i.InputHandler(this), this.input.start()) : this.input && !this.input.enabled && this.input.start() : this.input && this.input.enabled && this.input.stop();
  25683. }
  25684. }),
  25685. Object.defineProperty(i.Image.prototype, "fixedToCamera", {
  25686. get : function () {
  25687. return !!this._cache[7];
  25688. },
  25689. set : function (k) {
  25690. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  25691. }
  25692. }),
  25693. Object.defineProperty(i.Image.prototype, "smoothed", {
  25694. get : function () {
  25695. return !this.texture.baseTexture.scaleMode;
  25696. },
  25697. set : function (k) {
  25698. k ? this.texture && (this.texture.baseTexture.scaleMode = 0) : this.texture && (this.texture.baseTexture.scaleMode = 1);
  25699. }
  25700. }),
  25701. Object.defineProperty(i.Image.prototype, "destroyPhase", {
  25702. get : function () {
  25703. return !!this._cache[8];
  25704. }
  25705. }),
  25706. i.TileSprite = function (k, m, e, o, n, u, q) {
  25707. m = m || 0,
  25708. e = e || 0,
  25709. o = o || 256,
  25710. n = n || 256,
  25711. u = u || null,
  25712. q = q || null,
  25713. this.game = k,
  25714. this.name = "",
  25715. this.type = i.TILESPRITE,
  25716. this.z = 0,
  25717. this.events = new i.Events(this),
  25718. this.animations = new i.AnimationManager(this),
  25719. this.key = u,
  25720. this._frame = 0,
  25721. this._frameName = "",
  25722. this._scroll = new i.Point,
  25723. PIXI.TilingSprite.call(this, PIXI.TextureCache.__default, o, n),
  25724. this.position.set(m, e),
  25725. this.input = null,
  25726. this.world = new i.Point(m, e),
  25727. this.autoCull = !1,
  25728. this.checkWorldBounds = !1,
  25729. this.cameraOffset = new i.Point,
  25730. this.body = null,
  25731. this.alive = !0,
  25732. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0],
  25733. this.loadTexture(u, q);
  25734. },
  25735. i.TileSprite.prototype = Object.create(PIXI.TilingSprite.prototype),
  25736. i.TileSprite.prototype.constructor = i.TileSprite,
  25737. i.TileSprite.prototype.preUpdate = function () {
  25738. if (y3U.L9h(1, this._cache[4]) && this.exists)
  25739. return this.world.setTo(this.parent.position.x + this.position.x, this.parent.position.y + this.position.y), this.worldTransform.tx = this.world.x, this.worldTransform.ty = this.world.y, this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, this.body && this.body.preUpdate(), this._cache[4] = 0, !1;
  25740. if (this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, !this.exists || !this.parent.exists)
  25741. return this._cache[3] = -1, !1;
  25742. (this.autoCull || this.checkWorldBounds) && this._bounds.copyFrom(this.getBounds()),
  25743. this.autoCull && (this.renderable = this.game.world.camera.screenView.intersects(this._bounds)),
  25744. this.checkWorldBounds && (y3U.z9h(1, this._cache[5]) && this.game.world.bounds.intersects(this._bounds) ? (this._cache[5] = 0, this.events.onEnterBounds$dispatch(this)) : y3U.J9h(0, this._cache[5]) || this.game.world.bounds.intersects(this._bounds) || (this._cache[5] = 1, this.events.onOutOfBounds$dispatch(this))),
  25745. this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty),
  25746. this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++),
  25747. this.animations.update(),
  25748. y3U.H9h(0, this._scroll.x) && (this.tilePosition.x += y3U.h9h(this._scroll.x, this.game.time.physicsElapsed)),
  25749. y3U.F9h(0, this._scroll.y) && (this.tilePosition.y += y3U.M9h(this._scroll.y, this.game.time.physicsElapsed)),
  25750. this.body && this.body.preUpdate();
  25751. for (var k = 0, m = this.children.length; y3U.n9h(m, k); k++)
  25752. this.children[k].preUpdate();
  25753. return !0;
  25754. },
  25755. i.TileSprite.prototype.update = function () {},
  25756. i.TileSprite.prototype.postUpdate = function () {
  25757. this.exists && this.body && this.body.postUpdate(),
  25758. y3U.f9h(1, this._cache[7]) && (this.position.x = this.game.camera.view.x + this.cameraOffset.x, this.position.y = this.game.camera.view.y + this.cameraOffset.y);
  25759. for (var k = 0, m = this.children.length; y3U.K9h(m, k); k++)
  25760. this.children[k].postUpdate();
  25761. },
  25762. i.TileSprite.prototype.autoScroll = function (k, m) {
  25763. this._scroll.set(k, m);
  25764. },
  25765. i.TileSprite.prototype.stopScroll = function () {
  25766. this._scroll.set(0, 0);
  25767. },
  25768. i.TileSprite.prototype.loadTexture = function (k, m) {
  25769. m = m || 0,
  25770. this.key = k,
  25771. y3U.B9h(k, i.RenderTexture) ? (this.key = k.key, this.setTexture(k)) : y3U.l9h(k, i.BitmapData) ? this.setTexture(k.texture) : y3U.X9h(k, PIXI.Texture) ? this.setTexture(k) : y3U.Y9h(null, k) || "undefined" == typeof k ? (this.key = "__default", this.setTexture(PIXI.TextureCache[this.key])) : "string" != typeof k || this.game.cache.checkImageKey(k) ? (this.setTexture(new PIXI.Texture(PIXI.BaseTextureCache[k])), this.animations.loadFrameData(this.game.cache.getFrameData(k), m)) : (console.warn("Texture with key '" + k + "' not found."), this.key = "__missing", this.setTexture(PIXI.TextureCache[this.key])),
  25772. this.texture.baseTexture.dirty();
  25773. },
  25774. i.TileSprite.prototype.setFrame = function (k) {
  25775. this.texture.frame.x = k.x,
  25776. this.texture.frame.y = k.y,
  25777. this.texture.frame.width = k.width,
  25778. this.texture.frame.height = k.height,
  25779. this.texture.crop.x = k.x,
  25780. this.texture.crop.y = k.y,
  25781. this.texture.crop.width = k.width,
  25782. this.texture.crop.height = k.height,
  25783. k.trimmed ? (this.texture.trim ? (this.texture.trim.x = k.spriteSourceSizeX, this.texture.trim.y = k.spriteSourceSizeY, this.texture.trim.width = k.sourceSizeW, this.texture.trim.height = k.sourceSizeH) : this.texture.trim = {
  25784. x : k.spriteSourceSizeX,
  25785. y : k.spriteSourceSizeY,
  25786. width : k.sourceSizeW,
  25787. height : k.sourceSizeH
  25788. }, this.texture.width = k.sourceSizeW, this.texture.height = k.sourceSizeH, this.texture.frame.width = k.sourceSizeW, this.texture.frame.height = k.sourceSizeH) : !k.trimmed && this.texture.trim && (this.texture.trim = null),
  25789. this.texture._updateUvs();
  25790. },
  25791. i.TileSprite.prototype.destroy = function (k) {
  25792. if (y3U.U5h(null, this.game) && !this.destroyPhase) {
  25793. "undefined" == typeof k && (k = !0),
  25794. this._cache[8] = 1,
  25795. this.events && this.events.onDestroy$dispatch(this),
  25796. this.filters && (this.filters = null),
  25797. this.parent && (y3U.T5h(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this)),
  25798. this.animations.destroy(),
  25799. this.events.destroy();
  25800. var m = this.children.length;
  25801. if (k)
  25802. for (; m--; )
  25803. this.children[m].destroy(k);
  25804. else
  25805. for (; m--; )
  25806. this.removeChild(this.children[m]);
  25807. this.exists = !1,
  25808. this.visible = !1,
  25809. this.alive = !1,
  25810. this.filters = null,
  25811. this.mask = null,
  25812. this.game = null,
  25813. this._cache[8] = 0;
  25814. }
  25815. },
  25816. i.TileSprite.prototype.play = function (k, m, e, o) {
  25817. return this.animations.play(k, m, e, o);
  25818. },
  25819. i.TileSprite.prototype.reset = function (k, m) {
  25820. return this.world.setTo(k, m),
  25821. this.position.x = k,
  25822. this.position.y = m,
  25823. this.alive = !0,
  25824. this.exists = !0,
  25825. this.visible = !0,
  25826. this.renderable = !0,
  25827. this._outOfBoundsFired = !1,
  25828. this.tilePosition.x = 0,
  25829. this.tilePosition.y = 0,
  25830. this.body && this.body.reset(k, m, !1, !1),
  25831. this._cache[4] = 1,
  25832. this;
  25833. },
  25834. Object.defineProperty(i.TileSprite.prototype, "angle", {
  25835. get : function () {
  25836. return i.Math.wrapAngle(i.Math.radToDeg(this.rotation));
  25837. },
  25838. set : function (k) {
  25839. this.rotation = i.Math.degToRad(i.Math.wrapAngle(k));
  25840. }
  25841. }),
  25842. Object.defineProperty(i.TileSprite.prototype, "frame", {
  25843. get : function () {
  25844. return this.animations.frame;
  25845. },
  25846. set : function (k) {
  25847. y3U.S5h(k, this.animations.frame) && (this.animations.frame = k);
  25848. }
  25849. }),
  25850. Object.defineProperty(i.TileSprite.prototype, "frameName", {
  25851. get : function () {
  25852. return this.animations.frameName;
  25853. },
  25854. set : function (k) {
  25855. y3U.I5h(k, this.animations.frameName) && (this.animations.frameName = k);
  25856. }
  25857. }),
  25858. Object.defineProperty(i.TileSprite.prototype, "fixedToCamera", {
  25859. get : function () {
  25860. return !!this._cache[7];
  25861. },
  25862. set : function (k) {
  25863. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  25864. }
  25865. }),
  25866. Object.defineProperty(i.TileSprite.prototype, "exists", {
  25867. get : function () {
  25868. return !!this._cache[6];
  25869. },
  25870. set : function (k) {
  25871. k ? (this._cache[6] = 1, this.body && y3U.C5h(this.body.type, i.Physics.P2JS) && this.body.addToWorld(), this.visible = !0) : (this._cache[6] = 0, this.body && y3U.v5h(this.body.type, i.Physics.P2JS) && (this.body.safeRemove = !0), this.visible = !1);
  25872. }
  25873. }),
  25874. Object.defineProperty(i.TileSprite.prototype, "inputEnabled", {
  25875. get : function () {
  25876. return this.input && this.input.enabled;
  25877. },
  25878. set : function (k) {
  25879. k ? y3U.t5h(null, this.input) ? (this.input = new i.InputHandler(this), this.input.start()) : this.input && !this.input.enabled && this.input.start() : this.input && this.input.enabled && this.input.stop();
  25880. }
  25881. }),
  25882. Object.defineProperty(i.TileSprite.prototype, "x", {
  25883. get : function () {
  25884. return this.position.x;
  25885. },
  25886. set : function (k) {
  25887. this.position.x = k,
  25888. this.body && y3U.y5h(this.body.type, i.Physics.ARCADE) && y3U.o5h(2, this.body.phase) && (this.body._reset = 1);
  25889. }
  25890. }),
  25891. Object.defineProperty(i.TileSprite.prototype, "y", {
  25892. get : function () {
  25893. return this.position.y;
  25894. },
  25895. set : function (k) {
  25896. this.position.y = k,
  25897. this.body && y3U.x5h(this.body.type, i.Physics.ARCADE) && y3U.p5h(2, this.body.phase) && (this.body._reset = 1);
  25898. }
  25899. }),
  25900. Object.defineProperty(i.TileSprite.prototype, "destroyPhase", {
  25901. get : function () {
  25902. return !!this._cache[8];
  25903. }
  25904. }),
  25905. i.Rope = function (k, m, e, o, n, u) {
  25906. this.points = [],
  25907. this.points = u,
  25908. this._hasUpdateAnimation = !1,
  25909. this._updateAnimationCallback = null,
  25910. m = m || 0,
  25911. e = e || 0,
  25912. o = o || null,
  25913. n = n || null,
  25914. this.game = k,
  25915. this.name = "",
  25916. this.type = i.ROPE,
  25917. this.z = 0,
  25918. this.events = new i.Events(this),
  25919. this.animations = new i.AnimationManager(this),
  25920. this.key = o,
  25921. this._frame = 0,
  25922. this._frameName = "",
  25923. this._scroll = new i.Point,
  25924. PIXI.Rope.call(this, o, this.points),
  25925. this.position.set(m, e),
  25926. this.input = null,
  25927. this.world = new i.Point(m, e),
  25928. this.autoCull = !1,
  25929. this.checkWorldBounds = !1,
  25930. this.cameraOffset = new i.Point,
  25931. this.body = null,
  25932. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0],
  25933. this.loadTexture(o, n);
  25934. },
  25935. i.Rope.prototype = Object.create(PIXI.Rope.prototype),
  25936. i.Rope.prototype.constructor = i.Rope,
  25937. i.Rope.prototype.preUpdate = function () {
  25938. if (y3U.q5h(1, this._cache[4]) && this.exists)
  25939. return this.world.setTo(this.parent.position.x + this.position.x, this.parent.position.y + this.position.y), this.worldTransform.tx = this.world.x, this.worldTransform.ty = this.world.y, this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, this.body && this.body.preUpdate(), this._cache[4] = 0, !1;
  25940. if (this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, !this.exists || !this.parent.exists)
  25941. return this._cache[3] = -1, !1;
  25942. (this.autoCull || this.checkWorldBounds) && this._bounds.copyFrom(this.getBounds()),
  25943. this.autoCull && (this.renderable = this.game.world.camera.screenView.intersects(this._bounds)),
  25944. this.checkWorldBounds && (y3U.b5h(1, this._cache[5]) && this.game.world.bounds.intersects(this._bounds) ? (this._cache[5] = 0, this.events.onEnterBounds$dispatch(this)) : y3U.j5h(0, this._cache[5]) || this.game.world.bounds.intersects(this._bounds) || (this._cache[5] = 1, this.events.onOutOfBounds$dispatch(this))),
  25945. this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty),
  25946. this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++),
  25947. this.animations.update(),
  25948. y3U.d5h(0, this._scroll.x) && (this.tilePosition.x += y3U.c5h(this._scroll.x, this.game.time.physicsElapsed)),
  25949. y3U.s5h(0, this._scroll.y) && (this.tilePosition.y += y3U.Q5h(this._scroll.y, this.game.time.physicsElapsed)),
  25950. this.body && this.body.preUpdate();
  25951. for (var k = 0, m = this.children.length; y3U.a2h(m, k); k++)
  25952. this.children[k].preUpdate();
  25953. return !0;
  25954. },
  25955. i.Rope.prototype.update = function () {
  25956. this._hasUpdateAnimation && this.updateAnimation.call(this);
  25957. },
  25958. i.Rope.prototype.postUpdate = function () {
  25959. this.exists && this.body && this.body.postUpdate(),
  25960. y3U.W2h(1, this._cache[7]) && (this.position.x = this.game.camera.view.x + this.cameraOffset.x, this.position.y = this.game.camera.view.y + this.cameraOffset.y);
  25961. for (var k = 0, m = this.children.length; y3U.m2h(m, k); k++)
  25962. this.children[k].postUpdate();
  25963. },
  25964. i.Rope.prototype.loadTexture = function (k, m) {
  25965. m = m || 0,
  25966. this.key = k,
  25967. y3U.A2h(k, i.RenderTexture) ? (this.key = k.key, this.setTexture(k)) : y3U.w2h(k, i.BitmapData) ? this.setTexture(k.texture) : y3U.E2h(k, PIXI.Texture) ? this.setTexture(k) : y3U.e2h(null, k) || "undefined" == typeof k ? (this.key = "__default", this.setTexture(PIXI.TextureCache[this.key])) : "string" != typeof k || this.game.cache.checkImageKey(k) ? (this.setTexture(new PIXI.Texture(PIXI.BaseTextureCache[k])), this.animations.loadFrameData(this.game.cache.getFrameData(k), m)) : (console.warn("Texture with key '" + k + "' not found."), this.key = "__missing", this.setTexture(PIXI.TextureCache[this.key]));
  25968. },
  25969. i.Rope.prototype.setFrame = function (k) {
  25970. this.texture.frame.x = k.x,
  25971. this.texture.frame.y = k.y,
  25972. this.texture.frame.width = k.width,
  25973. this.texture.frame.height = k.height,
  25974. this.texture.crop.x = k.x,
  25975. this.texture.crop.y = k.y,
  25976. this.texture.crop.width = k.width,
  25977. this.texture.crop.height = k.height,
  25978. k.trimmed ? (this.texture.trim ? (this.texture.trim.x = k.spriteSourceSizeX, this.texture.trim.y = k.spriteSourceSizeY, this.texture.trim.width = k.sourceSizeW, this.texture.trim.height = k.sourceSizeH) : this.texture.trim = {
  25979. x : k.spriteSourceSizeX,
  25980. y : k.spriteSourceSizeY,
  25981. width : k.sourceSizeW,
  25982. height : k.sourceSizeH
  25983. }, this.texture.width = k.sourceSizeW, this.texture.height = k.sourceSizeH, this.texture.frame.width = k.sourceSizeW, this.texture.frame.height = k.sourceSizeH) : !k.trimmed && this.texture.trim && (this.texture.trim = null),
  25984. this.texture._updateUvs();
  25985. },
  25986. i.Rope.prototype.destroy = function (k) {
  25987. if (y3U.g2h(null, this.game) && !this.destroyPhase) {
  25988. "undefined" == typeof k && (k = !0),
  25989. this._cache[8] = 1,
  25990. this.events && this.events.onDestroy$dispatch(this),
  25991. this.filters && (this.filters = null),
  25992. this.parent && (y3U.r2h(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this)),
  25993. this.animations.destroy(),
  25994. this.events.destroy();
  25995. var m = this.children.length;
  25996. if (k)
  25997. for (; m--; )
  25998. this.children[m].destroy(k);
  25999. else
  26000. for (; m--; )
  26001. this.removeChild(this.children[m]);
  26002. this.exists = !1,
  26003. this.visible = !1,
  26004. this.filters = null,
  26005. this.mask = null,
  26006. this.game = null,
  26007. this._cache[8] = 0;
  26008. }
  26009. },
  26010. i.Rope.prototype.play = function (k, m, e, o) {
  26011. return this.animations.play(k, m, e, o);
  26012. },
  26013. i.Rope.prototype.reset = function (k, m) {
  26014. return this.world.setTo(k, m),
  26015. this.position.x = k,
  26016. this.position.y = m,
  26017. this.alive = !0,
  26018. this.exists = !0,
  26019. this.visible = !0,
  26020. this.renderable = !0,
  26021. this._outOfBoundsFired = !1,
  26022. this.tilePosition.x = 0,
  26023. this.tilePosition.y = 0,
  26024. this.body && this.body.reset(k, m, !1, !1),
  26025. this._cache[4] = 1,
  26026. this;
  26027. },
  26028. Object.defineProperty(i.Rope.prototype, "angle", {
  26029. get : function () {
  26030. return i.Math.wrapAngle(i.Math.radToDeg(this.rotation));
  26031. },
  26032. set : function (k) {
  26033. this.rotation = i.Math.degToRad(i.Math.wrapAngle(k));
  26034. }
  26035. }),
  26036. Object.defineProperty(i.Rope.prototype, "frame", {
  26037. get : function () {
  26038. return this.animations.frame;
  26039. },
  26040. set : function (k) {
  26041. y3U.i2h(k, this.animations.frame) && (this.animations.frame = k);
  26042. }
  26043. }),
  26044. Object.defineProperty(i.Rope.prototype, "frameName", {
  26045. get : function () {
  26046. return this.animations.frameName;
  26047. },
  26048. set : function (k) {
  26049. y3U.u2h(k, this.animations.frameName) && (this.animations.frameName = k);
  26050. }
  26051. }),
  26052. Object.defineProperty(i.Rope.prototype, "fixedToCamera", {
  26053. get : function () {
  26054. return !!this._cache[7];
  26055. },
  26056. set : function (k) {
  26057. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  26058. }
  26059. }),
  26060. Object.defineProperty(i.Rope.prototype, "exists", {
  26061. get : function () {
  26062. return !!this._cache[6];
  26063. },
  26064. set : function (k) {
  26065. k ? (this._cache[6] = 1, this.body && y3U.P2h(this.body.type, i.Physics.P2JS) && this.body.addToWorld(), this.visible = !0) : (this._cache[6] = 0, this.body && y3U.D2h(this.body.type, i.Physics.P2JS) && (this.body.safeRemove = !0), this.visible = !1);
  26066. }
  26067. }),
  26068. Object.defineProperty(i.Rope.prototype, "inputEnabled", {
  26069. get : function () {
  26070. return this.input && this.input.enabled;
  26071. },
  26072. set : function (k) {
  26073. k ? y3U.Z2h(null, this.input) ? (this.input = new i.InputHandler(this), this.input.start()) : this.input && !this.input.enabled && this.input.start() : this.input && this.input.enabled && this.input.stop();
  26074. }
  26075. }),
  26076. Object.defineProperty(i.Rope.prototype, "x", {
  26077. get : function () {
  26078. return this.position.x;
  26079. },
  26080. set : function (k) {
  26081. this.position.x = k,
  26082. this.body && y3U.R2h(this.body.type, i.Physics.ARCADE) && y3U.O2h(2, this.body.phase) && (this.body._reset = 1);
  26083. }
  26084. }),
  26085. Object.defineProperty(i.Rope.prototype, "y", {
  26086. get : function () {
  26087. return this.position.y;
  26088. },
  26089. set : function (k) {
  26090. this.position.y = k,
  26091. this.body && y3U.V2h(this.body.type, i.Physics.ARCADE) && y3U.k1h(2, this.body.phase) && (this.body._reset = 1);
  26092. }
  26093. }),
  26094. Object.defineProperty(i.Rope.prototype, "updateAnimation", {
  26095. get : function () {
  26096. return this._updateAnimation;
  26097. },
  26098. set : function (k) {
  26099. k && "function" == typeof k ? (this._hasUpdateAnimation = !0, this._updateAnimation = k) : (this._hasUpdateAnimation = !1, this._updateAnimation = null);
  26100. }
  26101. }),
  26102. Object.defineProperty(i.Rope.prototype, "segments", {
  26103. get : function () {
  26104. for (var k, m, e, o, n, u, q, f, j = [], U0 = 0; y3U.G1h(U0, this.points.length); U0++)
  26105. k = y3U.N1h(4, U0), m = this.verticies[k], e = this.verticies[k + 1], o = this.verticies[k + 4], n = this.verticies[k + 3], u = i.Math.difference(m, o), q = i.Math.difference(e, n), m += this.world.x, e += this.world.y, f = new i.Rectangle(m, e, u, q), j.push(f);
  26106. return j;
  26107. }
  26108. }),
  26109. Object.defineProperty(i.Rope.prototype, "destroyPhase", {
  26110. get : function () {
  26111. return !!this._cache[8];
  26112. }
  26113. }),
  26114. i.Text = function (k, m, e, o, n) {
  26115. m = m || 0,
  26116. e = e || 0,
  26117. o = o || " ",
  26118. n = n || {},
  26119. o = y3U.L1h(0, o.length) ? " " : o.toString(),
  26120. this.game = k,
  26121. this.exists = !0,
  26122. this.name = "",
  26123. this.type = i.TEXT,
  26124. this.z = 0,
  26125. this.world = new i.Point(m, e),
  26126. this._text = o,
  26127. this._font = "",
  26128. this._fontSize = 32,
  26129. this._fontWeight = "normal",
  26130. this._lineSpacing = 0,
  26131. this._charCount = 0,
  26132. this.events = new i.Events(this),
  26133. this.input = null,
  26134. this.cameraOffset = new i.Point,
  26135. this.colors = [],
  26136. this.setStyle(n),
  26137. PIXI.Text.call(this, o, this.style),
  26138. this.position.set(m, e),
  26139. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0],
  26140. y3U.z1h(" ", o) && this.updateText();
  26141. },
  26142. i.Text.prototype = Object.create(PIXI.Text.prototype),
  26143. i.Text.prototype.constructor = i.Text,
  26144. i.Text.prototype.preUpdate = function () {
  26145. if (this._cache[0] = this.world.x, this._cache[1] = this.world.y, this._cache[2] = this.rotation, !this.exists || !this.parent.exists)
  26146. return this.renderOrderID = -1, !1;
  26147. this.autoCull && (this.renderable = this.game.world.camera.screenView.intersects(this.getBounds())),
  26148. this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty),
  26149. this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++);
  26150. for (var k = 0, m = this.children.length; y3U.J1h(m, k); k++)
  26151. this.children[k].preUpdate();
  26152. return !0;
  26153. },
  26154. i.Text.prototype.update = function () {},
  26155. i.Text.prototype.postUpdate = function () {
  26156. y3U.H1h(1, this._cache[7]) && (this.position.x = y3U.h1h((this.game.camera.view.x + this.cameraOffset.x), this.game.camera.scale.x), this.position.y = y3U.F1h((this.game.camera.view.y + this.cameraOffset.y), this.game.camera.scale.y));
  26157. for (var k = 0, m = this.children.length; y3U.M1h(m, k); k++)
  26158. this.children[k].postUpdate();
  26159. },
  26160. i.Text.prototype.destroy = function (k) {
  26161. if (y3U.n1h(null, this.game) && !this.destroyPhase) {
  26162. "undefined" == typeof k && (k = !0),
  26163. this._cache[8] = 1,
  26164. this.events && this.events.onDestroy$dispatch(this),
  26165. this.parent && (y3U.f1h(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this)),
  26166. this.texture.destroy(!0),
  26167. this.canvas.parentNode ? this.canvas.parentNode.removeChild(this.canvas) : (this.canvas = null, this.context = null);
  26168. var m = this.children.length;
  26169. if (k)
  26170. for (; m--; )
  26171. this.children[m].destroy(k);
  26172. else
  26173. for (; m--; )
  26174. this.removeChild(this.children[m]);
  26175. this.exists = !1,
  26176. this.visible = !1,
  26177. this.filters = null,
  26178. this.mask = null,
  26179. this.game = null,
  26180. this._cache[8] = 0;
  26181. }
  26182. },
  26183. i.Text.prototype.setShadow = function (k, m, e, o) {
  26184. "undefined" == typeof k && (k = 0),
  26185. "undefined" == typeof m && (m = 0),
  26186. "undefined" == typeof e && (e = "rgba(0, 0, 0, 1)"),
  26187. "undefined" == typeof o && (o = 0),
  26188. this.style.shadowOffsetX = k,
  26189. this.style.shadowOffsetY = m,
  26190. this.style.shadowColor = e,
  26191. this.style.shadowBlur = o,
  26192. this.dirty = !0;
  26193. },
  26194. i.Text.prototype.setStyle = function (k) {
  26195. k = k || {},
  26196. k.font = k.font || "bold 20pt Arial",
  26197. k.fill = k.fill || "black",
  26198. k.align = k.align || "left",
  26199. k.stroke = k.stroke || "black",
  26200. k.strokeThickness = k.strokeThickness || 0,
  26201. k.wordWrap = k.wordWrap || !1,
  26202. k.wordWrapWidth = k.wordWrapWidth || 100,
  26203. k.shadowOffsetX = k.shadowOffsetX || 0,
  26204. k.shadowOffsetY = k.shadowOffsetY || 0,
  26205. k.shadowColor = k.shadowColor || "rgba(0,0,0,0)",
  26206. k.shadowBlur = k.shadowBlur || 0,
  26207. this.style = k,
  26208. this.dirty = !0;
  26209. },
  26210. i.Text.prototype.updateText = function () {
  26211. this.texture.baseTexture.resolution = this.resolution,
  26212. this.context.font = this.style.font;
  26213. var k = this.text;
  26214. this.style.wordWrap && (k = this.runWordWrap(this.text));
  26215. for (var m = k.split(/(?:\r\n|\r|\n)/), e = [], o = 0, n = this.determineFontProperties(this.style.font), u = 0; y3U.K1h(u, m.length); u++) {
  26216. var q = this.context.measureText(m[u]).width;
  26217. e[u] = q,
  26218. o = Math.max(o, q);
  26219. }
  26220. var f = o + this.style.strokeThickness;
  26221. this.canvas.width = y3U.B1h(f, this.resolution);
  26222. var j = n.fontSize + this.style.strokeThickness + this._lineSpacing,
  26223. U0 = y3U.l1h((j + this._lineSpacing), m.length);
  26224. this.canvas.height = y3U.X1h(U0, this.resolution),
  26225. this.context.scale(this.resolution, this.resolution),
  26226. r2w8n[v8n].isCocoonJS && this.context.clearRect(0, 0, this.canvas.width, this.canvas.height),
  26227. this.context.fillStyle = this.style.fill,
  26228. this.context.font = this.style.font,
  26229. this.context.strokeStyle = this.style.stroke,
  26230. this.context.textBaseline = "alphabetic",
  26231. this.context.shadowOffsetX = this.style.shadowOffsetX,
  26232. this.context.shadowOffsetY = this.style.shadowOffsetY,
  26233. this.context.shadowColor = this.style.shadowColor,
  26234. this.context.shadowBlur = this.style.shadowBlur,
  26235. this.context.lineWidth = this.style.strokeThickness,
  26236. this.context.lineCap = "round",
  26237. this.context.lineJoin = "round";
  26238. var k0,
  26239. a0;
  26240. for (this._charCount = 0, u = 0; y3U.Y1h(u, m.length); u++)
  26241. k0 = y3U.U6h(this.style.strokeThickness, 2), a0 = y3U.T6h(this.style.strokeThickness, 2) + y3U.S6h(u, j) + n.ascent, y3U.I6h("right", this.style.align) ? k0 += y3U.C6h(o, e[u]) : y3U.v6h("center", this.style.align) && (k0 += y3U.t6h((o - e[u]), 2)), y3U.y6h(this.colors.length, 0) ? this.updateLine(m[u], k0, a0) : (this.style.stroke && this.style.strokeThickness && this.context.strokeText(m[u], k0, a0), this.style.fill && this.context.fillText(m[u], k0, a0));
  26242. this.updateTexture();
  26243. },
  26244. i.Text.prototype.updateLine = function (k, m, e) {
  26245. for (var o = 0; y3U.o6h(o, k.length); o++) {
  26246. var n = k[o];
  26247. this.colors[this._charCount] && (this.context.fillStyle = this.colors[this._charCount], this.context.strokeStyle = this.colors[this._charCount]),
  26248. this.style.stroke && this.style.strokeThickness && this.context.strokeText(n, m, e),
  26249. this.style.fill && this.context.fillText(n, m, e),
  26250. m += this.context.measureText(n).width,
  26251. this._charCount++;
  26252. }
  26253. },
  26254. i.Text.prototype.clearColors = function () {
  26255. this.colors = [],
  26256. this.dirty = !0;
  26257. },
  26258. i.Text.prototype.addColor = function (k, m) {
  26259. this.colors[m] = k,
  26260. this.dirty = !0;
  26261. },
  26262. i.Text.prototype.runWordWrap = function (k) {
  26263. for (var m = "", e = k.split("\n"), o = 0; y3U.x6h(o, e.length); o++) {
  26264. for (var n = this.style.wordWrapWidth, u = e[o].split(" "), q = 0; y3U.p6h(q, u.length); q++) {
  26265. var f = this.context.measureText(u[q]).width,
  26266. j = f + this.context.measureText(" ").width;
  26267. y3U.q6h(j, n) ? (y3U.b6h(q, 0) && (m += "\n"), m += u[q] + " ", n = y3U.j6h(this.style.wordWrapWidth, f)) : (n -= j, m += u[q] + " ");
  26268. }
  26269. y3U.d6h(o, e.length - 1) && (m += "\n");
  26270. }
  26271. return m;
  26272. },
  26273. Object.defineProperty(i.Text.prototype, "angle", {
  26274. get : function () {
  26275. return i.Math.radToDeg(this.rotation);
  26276. },
  26277. set : function (k) {
  26278. this.rotation = i.Math.degToRad(k);
  26279. }
  26280. }),
  26281. Object.defineProperty(i.Text.prototype, "text", {
  26282. get : function () {
  26283. return this._text;
  26284. },
  26285. set : function (k) {
  26286. y3U.c6h(k, this._text) && (this._text = k.toString() || " ", this.dirty = !0, this.parent && this.updateTransform());
  26287. }
  26288. }),
  26289. Object.defineProperty(i.Text.prototype, "font", {
  26290. get : function () {
  26291. return this._font;
  26292. },
  26293. set : function (k) {
  26294. y3U.s6h(k, this._font) && (this._font = k.trim(), this.style.font = this._fontWeight + " " + this._fontSize + "px '" + this._font + "'", this.dirty = !0, this.parent && this.updateTransform());
  26295. }
  26296. }),
  26297. Object.defineProperty(i.Text.prototype, "fontSize", {
  26298. get : function () {
  26299. return this._fontSize;
  26300. },
  26301. set : function (k) {
  26302. k = parseInt(k, 10),
  26303. y3U.Q6h(k, this._fontSize) && (this._fontSize = k, this.style.font = this._fontWeight + " " + this._fontSize + "px '" + this._font + "'", this.dirty = !0, this.parent && this.updateTransform());
  26304. }
  26305. }),
  26306. Object.defineProperty(i.Text.prototype, "fontWeight", {
  26307. get : function () {
  26308. return this._fontWeight;
  26309. },
  26310. set : function (k) {
  26311. y3U.a8h(k, this._fontWeight) && (this._fontWeight = k, this.style.font = this._fontWeight + " " + this._fontSize + "px '" + this._font + "'", this.dirty = !0, this.parent && this.updateTransform());
  26312. }
  26313. }),
  26314. Object.defineProperty(i.Text.prototype, "fill", {
  26315. get : function () {
  26316. return this.style.fill;
  26317. },
  26318. set : function (k) {
  26319. y3U.W8h(k, this.style.fill) && (this.style.fill = k, this.dirty = !0);
  26320. }
  26321. }),
  26322. Object.defineProperty(i.Text.prototype, "align", {
  26323. get : function () {
  26324. return this.style.align;
  26325. },
  26326. set : function (k) {
  26327. y3U.m8h(k, this.style.align) && (this.style.align = k, this.dirty = !0);
  26328. }
  26329. }),
  26330. Object.defineProperty(i.Text.prototype, "stroke", {
  26331. get : function () {
  26332. return this.style.stroke;
  26333. },
  26334. set : function (k) {
  26335. y3U.A8h(k, this.style.stroke) && (this.style.stroke = k, this.dirty = !0);
  26336. }
  26337. }),
  26338. Object.defineProperty(i.Text.prototype, "strokeThickness", {
  26339. get : function () {
  26340. return this.style.strokeThickness;
  26341. },
  26342. set : function (k) {
  26343. y3U.w8h(k, this.style.strokeThickness) && (this.style.strokeThickness = k, this.dirty = !0);
  26344. }
  26345. }),
  26346. Object.defineProperty(i.Text.prototype, "wordWrap", {
  26347. get : function () {
  26348. return this.style.wordWrap;
  26349. },
  26350. set : function (k) {
  26351. y3U.E8h(k, this.style.wordWrap) && (this.style.wordWrap = k, this.dirty = !0);
  26352. }
  26353. }),
  26354. Object.defineProperty(i.Text.prototype, "wordWrapWidth", {
  26355. get : function () {
  26356. return this.style.wordWrapWidth;
  26357. },
  26358. set : function (k) {
  26359. y3U.e8h(k, this.style.wordWrapWidth) && (this.style.wordWrapWidth = k, this.dirty = !0);
  26360. }
  26361. }),
  26362. Object.defineProperty(i.Text.prototype, "lineSpacing", {
  26363. get : function () {
  26364. return this._lineSpacing;
  26365. },
  26366. set : function (k) {
  26367. y3U.g8h(k, this._lineSpacing) && (this._lineSpacing = parseFloat(k), this.dirty = !0, this.parent && this.updateTransform());
  26368. }
  26369. }),
  26370. Object.defineProperty(i.Text.prototype, "shadowOffsetX", {
  26371. get : function () {
  26372. return this.style.shadowOffsetX;
  26373. },
  26374. set : function (k) {
  26375. y3U.r8h(k, this.style.shadowOffsetX) && (this.style.shadowOffsetX = k, this.dirty = !0);
  26376. }
  26377. }),
  26378. Object.defineProperty(i.Text.prototype, "shadowOffsetY", {
  26379. get : function () {
  26380. return this.style.shadowOffsetY;
  26381. },
  26382. set : function (k) {
  26383. y3U.i8h(k, this.style.shadowOffsetY) && (this.style.shadowOffsetY = k, this.dirty = !0);
  26384. }
  26385. }),
  26386. Object.defineProperty(i.Text.prototype, "shadowColor", {
  26387. get : function () {
  26388. return this.style.shadowColor;
  26389. },
  26390. set : function (k) {
  26391. y3U.u8h(k, this.style.shadowColor) && (this.style.shadowColor = k, this.dirty = !0);
  26392. }
  26393. }),
  26394. Object.defineProperty(i.Text.prototype, "shadowBlur", {
  26395. get : function () {
  26396. return this.style.shadowBlur;
  26397. },
  26398. set : function (k) {
  26399. y3U.P8h(k, this.style.shadowBlur) && (this.style.shadowBlur = k, this.dirty = !0);
  26400. }
  26401. }),
  26402. Object.defineProperty(i.Text.prototype, "inputEnabled", {
  26403. get : function () {
  26404. return this.input && this.input.enabled;
  26405. },
  26406. set : function (k) {
  26407. k ? y3U.D8h(null, this.input) ? (this.input = new i.InputHandler(this), this.input.start()) : this.input && !this.input.enabled && this.input.start() : this.input && this.input.enabled && this.input.stop();
  26408. }
  26409. }),
  26410. Object.defineProperty(i.Text.prototype, "fixedToCamera", {
  26411. get : function () {
  26412. return !!this._cache[7];
  26413. },
  26414. set : function (k) {
  26415. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  26416. }
  26417. }),
  26418. Object.defineProperty(i.Text.prototype, "destroyPhase", {
  26419. get : function () {
  26420. return !!this._cache[8];
  26421. }
  26422. }),
  26423. i.BitmapText = function (k, m, e, o, n, u) {
  26424. m = m || 0,
  26425. e = e || 0,
  26426. o = o || "",
  26427. n = n || "",
  26428. u = u || 32,
  26429. this.game = k,
  26430. this.exists = !0,
  26431. this.name = "",
  26432. this.type = i.BITMAPTEXT,
  26433. this.z = 0,
  26434. this.world = new i.Point(m, e),
  26435. this._text = n,
  26436. this._font = o,
  26437. this._fontSize = u,
  26438. this._align = "left",
  26439. this._tint = 16777215,
  26440. this.events = new i.Events(this),
  26441. this.input = null,
  26442. this.cameraOffset = new i.Point,
  26443. PIXI.BitmapText.call(this, n),
  26444. this.position.set(m, e),
  26445. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0];
  26446. },
  26447. i.BitmapText.prototype = Object.create(PIXI.BitmapText.prototype),
  26448. i.BitmapText.prototype.constructor = i.BitmapText,
  26449. i.BitmapText.prototype.setStyle = function () {
  26450. this.style = {
  26451. align : this._align
  26452. },
  26453. this.fontName = this._font,
  26454. this.fontSize = this._fontSize,
  26455. this.dirty = !0;
  26456. },
  26457. i.BitmapText.prototype.preUpdate = function () {
  26458. return this._cache[0] = this.world.x,
  26459. this._cache[1] = this.world.y,
  26460. this._cache[2] = this.rotation,
  26461. this.exists && this.parent.exists ? (this.autoCull && (this.renderable = this.game.world.camera.screenView.intersects(this.getBounds())), this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty), this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++), !0) : (this.renderOrderID = -1, !1);
  26462. },
  26463. i.BitmapText.prototype.update = function () {},
  26464. i.BitmapText.prototype.postUpdate = function () {
  26465. y3U.Z8h(1, this._cache[7]) && (this.position.x = y3U.R8h((this.game.camera.view.x + this.cameraOffset.x), this.game.camera.scale.x), this.position.y = y3U.O8h((this.game.camera.view.y + this.cameraOffset.y), this.game.camera.scale.y));
  26466. },
  26467. i.BitmapText.prototype.destroy = function (k) {
  26468. if (y3U.V8h(null, this.game) && !this.destroyPhase) {
  26469. "undefined" == typeof k && (k = !0),
  26470. this._cache[8] = 1,
  26471. this.parent && (y3U.k0v(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this));
  26472. var m = this.children.length;
  26473. if (k)
  26474. for (; m--; )
  26475. this.children[m].destroy ? this.children[m].destroy(k) : this.removeChild(this.children[m]);
  26476. else
  26477. for (; m--; )
  26478. this.removeChild(this.children[m]);
  26479. this.exists = !1,
  26480. this.visible = !1,
  26481. this.filters = null,
  26482. this.mask = null,
  26483. this.game = null,
  26484. this._cache[8] = 0;
  26485. }
  26486. },
  26487. Object.defineProperty(i.BitmapText.prototype, "align", {
  26488. get : function () {
  26489. return this._align;
  26490. },
  26491. set : function (k) {
  26492. y3U.G0v(k, this._align) && (this._align = k, this.setStyle());
  26493. }
  26494. }),
  26495. Object.defineProperty(i.BitmapText.prototype, "tint", {
  26496. get : function () {
  26497. return this._tint;
  26498. },
  26499. set : function (k) {
  26500. y3U.N0v(k, this._tint) && (this._tint = k, this.dirty = !0);
  26501. }
  26502. }),
  26503. Object.defineProperty(i.BitmapText.prototype, "angle", {
  26504. get : function () {
  26505. return i.Math.radToDeg(this.rotation);
  26506. },
  26507. set : function (k) {
  26508. this.rotation = i.Math.degToRad(k);
  26509. }
  26510. }),
  26511. Object.defineProperty(i.BitmapText.prototype, "font", {
  26512. get : function () {
  26513. return this._font;
  26514. },
  26515. set : function (k) {
  26516. y3U.L0v(k, this._font) && (this._font = k.trim(), this.style.font = this._fontSize + "px '" + this._font + "'", this.dirty = !0);
  26517. }
  26518. }),
  26519. Object.defineProperty(i.BitmapText.prototype, "fontSize", {
  26520. get : function () {
  26521. return this._fontSize;
  26522. },
  26523. set : function (k) {
  26524. k = parseInt(k, 10),
  26525. y3U.z0v(k, this._fontSize) && (this._fontSize = k, this.style.font = this._fontSize + "px '" + this._font + "'", this.dirty = !0);
  26526. }
  26527. }),
  26528. Object.defineProperty(i.BitmapText.prototype, "text", {
  26529. get : function () {
  26530. return this._text;
  26531. },
  26532. set : function (k) {
  26533. y3U.J0v(k, this._text) && (this._text = k.toString() || " ", this.dirty = !0);
  26534. }
  26535. }),
  26536. Object.defineProperty(i.BitmapText.prototype, "inputEnabled", {
  26537. get : function () {
  26538. return this.input && this.input.enabled;
  26539. },
  26540. set : function (k) {
  26541. k ? y3U.H0v(null, this.input) ? (this.input = new i.InputHandler(this), this.input.start()) : this.input && !this.input.enabled && this.input.start() : this.input && this.input.enabled && this.input.stop();
  26542. }
  26543. }),
  26544. Object.defineProperty(i.BitmapText.prototype, "fixedToCamera", {
  26545. get : function () {
  26546. return !!this._cache[7];
  26547. },
  26548. set : function (k) {
  26549. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  26550. }
  26551. }),
  26552. Object.defineProperty(i.BitmapText.prototype, "destroyPhase", {
  26553. get : function () {
  26554. return !!this._cache[8];
  26555. }
  26556. }),
  26557. i.Button = function (k, m, e, o, n, u, q, f, j, U0) {
  26558. m = m || 0,
  26559. e = e || 0,
  26560. o = o || null,
  26561. n = n || null,
  26562. u = u || this,
  26563. i.Image.call(this, k, m, e, o, f),
  26564. this.type = i.BUTTON,
  26565. this._onOverFrame = null,
  26566. this._onOutFrame = null,
  26567. this._onDownFrame = null,
  26568. this._onUpFrame = null,
  26569. this.onOverSound = null,
  26570. this.onOutSound = null,
  26571. this.onDownSound = null,
  26572. this.onUpSound = null,
  26573. this.onOverSoundMarker = "",
  26574. this.onOutSoundMarker = "",
  26575. this.onDownSoundMarker = "",
  26576. this.onUpSoundMarker = "",
  26577. this.onInputOver = new i.Signal,
  26578. this.onInputOut = new i.Signal,
  26579. this.onInputDown = new i.Signal,
  26580. this.onInputUp = new i.Signal,
  26581. this.onOverMouseOnly = !1,
  26582. this.freezeFrames = !1,
  26583. this.forceOut = !1,
  26584. this.inputEnabled = !0,
  26585. this.input.start(0, !0),
  26586. this.setFrames(q, f, j, U0),
  26587. y3U.h0v(null, n) && this.onInputUp.add(n, u),
  26588. this.events.onInputOver.add(this.onInputOverHandler, this),
  26589. this.events.onInputOut.add(this.onInputOutHandler, this),
  26590. this.events.onInputDown.add(this.onInputDownHandler, this),
  26591. this.events.onInputUp.add(this.onInputUpHandler, this),
  26592. this.events.onRemovedFromWorld.add(this.removedFromWorld, this);
  26593. },
  26594. i.Button.prototype = Object.create(i.Image.prototype),
  26595. i.Button.prototype.constructor = i.Button;
  26596. var V0 = "Over",
  26597. Y0 = "Out",
  26598. C0 = "Down",
  26599. h0 = "Up";
  26600. i.Button.prototype.clearFrames = function () {
  26601. this.setFrames(null, null, null, null);
  26602. },
  26603. i.Button.prototype.removedFromWorld = function () {
  26604. this.inputEnabled = !1;
  26605. },
  26606. i.Button.prototype.setStateFrame = function (k, m, e) {
  26607. var o = "_on" + k + "Frame";
  26608. y3U.F0v(null, m) ? (this[o] = m, e && this.changeStateFrame(k)) : this[o] = null;
  26609. },
  26610. i.Button.prototype.changeStateFrame = function (k) {
  26611. if (this.freezeFrames)
  26612. return !1;
  26613. var m = "_on" + k + "Frame",
  26614. e = this[m];
  26615. return "string" == typeof e ? (this.frameName = e, !0) : "number" == typeof e ? (this.frame = e, !0) : !1;
  26616. },
  26617. i.Button.prototype.setFrames = function (k, m, e, o) {
  26618. this.setStateFrame(V0, k, this.input.pointerOver()),
  26619. this.setStateFrame(Y0, m, !this.input.pointerOver()),
  26620. this.setStateFrame(C0, e, this.input.pointerDown()),
  26621. this.setStateFrame(h0, o, this.input.pointerUp());
  26622. },
  26623. i.Button.prototype.setStateSound = function (k, m, e) {
  26624. var o = "on" + k + "Sound",
  26625. n = "on" + k + "SoundMarker";
  26626. y3U.M0v(m, i.Sound) || y3U.n0v(m, i.AudioSprite) ? (this[o] = m, this[n] = "string" == typeof e ? e : "") : (this[o] = null, this[n] = "");
  26627. },
  26628. i.Button.prototype.playStateSound = function (k) {
  26629. var m = "on" + k + "Sound",
  26630. e = this[m];
  26631. if (e) {
  26632. var o = "on" + k + "SoundMarker",
  26633. n = this[o];
  26634. return e.play(n),
  26635. !0;
  26636. }
  26637. return !1;
  26638. },
  26639. i.Button.prototype.setSounds = function (k, m, e, o, n, u, q, f) {
  26640. this.setStateSound(V0, k, m),
  26641. this.setStateSound(Y0, n, u),
  26642. this.setStateSound(C0, e, o),
  26643. this.setStateSound(h0, q, f);
  26644. },
  26645. i.Button.prototype.setOverSound = function (k, m) {
  26646. this.setStateSound(V0, k, m);
  26647. },
  26648. i.Button.prototype.setOutSound = function (k, m) {
  26649. this.setStateSound(Y0, k, m);
  26650. },
  26651. i.Button.prototype.setDownSound = function (k, m) {
  26652. this.setStateSound(C0, k, m);
  26653. },
  26654. i.Button.prototype.setUpSound = function (k, m) {
  26655. this.setStateSound(h0, k, m);
  26656. },
  26657. i.Button.prototype.onInputOverHandler = function (k, m) {
  26658. m.justReleased() || (this.changeStateFrame(V0), (!this.onOverMouseOnly || m.isMouse) && (this.playStateSound(V0), this.onInputOver && this.onInputOver.dispatch(this, m)));
  26659. },
  26660. i.Button.prototype.onInputOutHandler = function (k, m) {
  26661. this.changeStateFrame(Y0),
  26662. this.playStateSound(Y0),
  26663. this.onInputOut && this.onInputOut.dispatch(this, m);
  26664. },
  26665. i.Button.prototype.onInputDownHandler = function (k, m) {
  26666. this.changeStateFrame(C0),
  26667. this.playStateSound(C0),
  26668. this.onInputDown && this.onInputDown.dispatch(this, m);
  26669. },
  26670. i.Button.prototype.onInputUpHandler = function (k, m, e) {
  26671. if (this.playStateSound(h0), this.onInputUp && this.onInputUp.dispatch(this, m, e), !this.freezeFrames)
  26672. if (this.forceOut)
  26673. this.changeStateFrame(Y0);
  26674. else {
  26675. var o = this.changeStateFrame(h0);
  26676. o || this.changeStateFrame(e ? V0 : Y0);
  26677. }
  26678. },
  26679. i.Graphics = function (k, m, e) {
  26680. m = m || 0,
  26681. e = e || 0,
  26682. this.game = k,
  26683. this.exists = !0,
  26684. this.name = "",
  26685. this.type = i.GRAPHICS,
  26686. this.z = 0,
  26687. this.world = new i.Point(m, e),
  26688. this.cameraOffset = new i.Point,
  26689. PIXI.Graphics.call(this),
  26690. this.position.set(m, e),
  26691. this._cache = [0, 0, 0, 0, 1, 0, 1, 0, 0];
  26692. },
  26693. i.Graphics.prototype = Object.create(PIXI.Graphics.prototype),
  26694. i.Graphics.prototype.constructor = i.Graphics,
  26695. i.Graphics.prototype.preUpdate = function () {
  26696. return this._cache[0] = this.world.x,
  26697. this._cache[1] = this.world.y,
  26698. this._cache[2] = this.rotation,
  26699. this.exists && this.parent.exists ? (this.autoCull && (this.renderable = this.game.world.camera.screenView.intersects(this.getBounds())), this.world.setTo(this.game.camera.x + this.worldTransform.tx, this.game.camera.y + this.worldTransform.ty), this.visible && (this._cache[3] = this.game.stage.currentRenderOrderID++), !0) : (this.renderOrderID = -1, !1);
  26700. },
  26701. i.Graphics.prototype.update = function () {},
  26702. i.Graphics.prototype.postUpdate = function () {
  26703. y3U.f0v(1, this._cache[7]) && (this.position.x = y3U.K0v((this.game.camera.view.x + this.cameraOffset.x), this.game.camera.scale.x), this.position.y = y3U.B0v((this.game.camera.view.y + this.cameraOffset.y), this.game.camera.scale.y));
  26704. },
  26705. i.Graphics.prototype.destroy = function (k) {
  26706. if (y3U.l0v(null, this.game) && !this.destroyPhase) {
  26707. "undefined" == typeof k && (k = !0),
  26708. this._cache[8] = 1,
  26709. this.clear(),
  26710. this.parent && (y3U.X0v(this.parent, i.Group) ? this.parent.remove(this) : this.parent.removeChild(this));
  26711. var m = this.children.length;
  26712. if (k)
  26713. for (; m--; )
  26714. this.children[m].destroy(k);
  26715. else
  26716. for (; m--; )
  26717. this.removeChild(this.children[m]);
  26718. this.exists = !1,
  26719. this.visible = !1,
  26720. this.game = null,
  26721. this._cache[8] = 0;
  26722. }
  26723. },
  26724. i.Graphics.prototype.drawCircle = function (k, m, e) {
  26725. return this.drawShape(new i.Circle(k, m, e)),
  26726. this;
  26727. },
  26728. i.Graphics.prototype.drawTriangle = function (k, m) {
  26729. "undefined" == typeof m && (m = !1);
  26730. var e = new i.Polygon(k);
  26731. if (m) {
  26732. var o = new i.Point(y3U.Y0v(this.game.camera.x, k[0].x), y3U.U7v(this.game.camera.y, k[0].y)),
  26733. n = new i.Point(y3U.T7v(k[1].x, k[0].x), y3U.S7v(k[1].y, k[0].y)),
  26734. u = new i.Point(y3U.I7v(k[1].x, k[2].x), y3U.C7v(k[1].y, k[2].y)),
  26735. q = u.cross(n);
  26736. y3U.v7v(o.dot(q), 0) && this.drawPolygon(e);
  26737. } else
  26738. this.drawPolygon(e);
  26739. },
  26740. i.Graphics.prototype.drawTriangles = function (k, m, e) {
  26741. "undefined" == typeof e && (e = !1);
  26742. var o,
  26743. n = new i.Point,
  26744. u = new i.Point,
  26745. q = new i.Point,
  26746. f = [];
  26747. if (m)
  26748. if (y3U.t7v(k[0], i.Point))
  26749. for (o = 0; y3U.y7v(o, m.length / 3); o++)
  26750. f.push(k[m[y3U.o7v(3, o)]]), f.push(k[m[y3U.x7v(3, o) + 1]]), f.push(k[m[y3U.p7v(3, o) + 2]]), y3U.q7v(3, f.length) && (this.drawTriangle(f, e), f = []);
  26751. else
  26752. for (o = 0; y3U.b7v(o, m.length); o++)
  26753. n.x = k[y3U.j7v(2, m[o])], n.y = k[y3U.d7v(2, m[o]) + 1], f.push(n.copyTo({})), y3U.c7v(3, f.length) && (this.drawTriangle(f, e), f = []);
  26754. else if (y3U.s7v(k[0], i.Point))
  26755. for (o = 0; y3U.Q7v(o, k.length / 3); o++)
  26756. this.drawTriangle([k[y3U.a4v(3, o)], k[y3U.W4v(3, o) + 1], k[y3U.m4v(3, o) + 2]], e);
  26757. else
  26758. for (o = 0; y3U.A4v(o, k.length / 6); o++)
  26759. n.x = k[y3U.w4v(6, o) + 0], n.y = k[y3U.E4v(6, o) + 1], u.x = k[y3U.e4v(6, o) + 2], u.y = k[y3U.g4v(6, o) + 3], q.x = k[y3U.r4v(6, o) + 4], q.y = k[y3U.i4v(6, o) + 5], this.drawTriangle([n, u, q], e);
  26760. },
  26761. Object.defineProperty(i.Graphics.prototype, "angle", {
  26762. get : function () {
  26763. return i.Math.radToDeg(this.rotation);
  26764. },
  26765. set : function (k) {
  26766. this.rotation = i.Math.degToRad(k);
  26767. }
  26768. }),
  26769. Object.defineProperty(i.Graphics.prototype, "fixedToCamera", {
  26770. get : function () {
  26771. return !!this._cache[7];
  26772. },
  26773. set : function (k) {
  26774. k ? (this._cache[7] = 1, this.cameraOffset.set(this.x, this.y)) : this._cache[7] = 0;
  26775. }
  26776. }),
  26777. Object.defineProperty(i.Graphics.prototype, "destroyPhase", {
  26778. get : function () {
  26779. return !!this._cache[8];
  26780. }
  26781. }),
  26782. i.RenderTexture = function (k, m, e, o, n, u) {
  26783. "undefined" == typeof o && (o = ""),
  26784. "undefined" == typeof n && (n = i.scaleModes.DEFAULT),
  26785. "undefined" == typeof u && (u = 1),
  26786. this.game = k,
  26787. this.key = o,
  26788. this.type = i.RENDERTEXTURE,
  26789. this.matrix = new PIXI.Matrix,
  26790. PIXI.RenderTexture.call(this, m, e, this.game.renderer, n, u),
  26791. this.render = i.RenderTexture.prototype.render;
  26792. },
  26793. i.RenderTexture.prototype = Object.create(PIXI.RenderTexture.prototype),
  26794. i.RenderTexture.prototype.constructor = i.RenderTexture,
  26795. i.RenderTexture.prototype.renderXY = function (k, m, e, o) {
  26796. this.matrix.tx = m,
  26797. this.matrix.ty = e,
  26798. y3U.u4v(this.renderer.type, PIXI.WEBGL_RENDERER) ? this.renderWebGL(k, this.matrix, o) : this.renderCanvas(k, this.matrix, o);
  26799. },
  26800. i.RenderTexture.prototype.render = function (k, m, e) {
  26801. this.matrix.tx = m.x,
  26802. this.matrix.ty = m.y,
  26803. y3U.P4v(this.renderer.type, PIXI.WEBGL_RENDERER) ? this.renderWebGL(k, this.matrix, e) : this.renderCanvas(k, this.matrix, e);
  26804. },
  26805. i.SpriteBatch = function (k, m, e, o) {
  26806. ("undefined" == typeof m || y3U.D4v(null, m)) && (m = k.world),
  26807. PIXI.SpriteBatch.call(this),
  26808. i.Group.call(this, k, m, e, o),
  26809. this.type = i.SPRITEBATCH;
  26810. },
  26811. i.SpriteBatch.prototype = i.Utils.extend(!0, i.SpriteBatch.prototype, i.Group.prototype, PIXI.SpriteBatch.prototype),
  26812. i.SpriteBatch.prototype.constructor = i.SpriteBatch,
  26813. i.RetroFont = function (k, m, e, o, n, u, q, f, j, U0) {
  26814. if (!k.cache.checkImageKey(m))
  26815. return !1;
  26816. ("undefined" == typeof u || y3U.Z4v(null, u)) && (u = y3U.R4v(k.cache.getImage(m).width, e)),
  26817. this.characterWidth = e,
  26818. this.characterHeight = o,
  26819. this.characterSpacingX = q || 0,
  26820. this.characterSpacingY = f || 0,
  26821. this.characterPerRow = u,
  26822. this.offsetX = j || 0,
  26823. this.offsetY = U0 || 0,
  26824. this.align = "left",
  26825. this.multiLine = !1,
  26826. this.autoUpperCase = !0,
  26827. this.customSpacingX = 0,
  26828. this.customSpacingY = 0,
  26829. this.fixedWidth = 0,
  26830. this.fontSet = k.cache.getImage(m),
  26831. this._text = "",
  26832. this.grabData = [],
  26833. this.frameData = new i.FrameData;
  26834. for (var k0 = this.offsetX, a0 = this.offsetY, T0 = 0, G0 = 0; y3U.O4v(G0, n.length); G0++) {
  26835. var W0 = k.rnd.uuid(),
  26836. N0 = this.frameData.addFrame(new i.Frame(G0, k0, a0, this.characterWidth, this.characterHeight, "", W0));
  26837. this.grabData[n.charCodeAt(G0)] = N0.index,
  26838. PIXI.TextureCache[W0] = new PIXI.Texture(PIXI.BaseTextureCache[m], {
  26839. x : k0,
  26840. y : a0,
  26841. width : this.characterWidth,
  26842. height : this.characterHeight
  26843. }),
  26844. T0++,
  26845. y3U.V4v(T0, this.characterPerRow) ? (T0 = 0, k0 = this.offsetX, a0 += this.characterHeight + this.characterSpacingY) : k0 += this.characterWidth + this.characterSpacingX;
  26846. }
  26847. k.cache.updateFrameData(m, this.frameData),
  26848. this.stamp = new i.Image(k, 0, 0, m, 0),
  26849. i.RenderTexture.call(this, k, 100, 100, "", i.scaleModes.NEAREST),
  26850. this.type = i.RETROFONT;
  26851. },
  26852. i.RetroFont.prototype = Object.create(i.RenderTexture.prototype),
  26853. i.RetroFont.prototype.constructor = i.RetroFont,
  26854. i.RetroFont.ALIGN_LEFT = "left",
  26855. i.RetroFont.ALIGN_RIGHT = "right",
  26856. i.RetroFont.ALIGN_CENTER = "center",
  26857. i.RetroFont.TEXT_SET1 = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",
  26858. i.RetroFont.TEXT_SET2 = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",
  26859. i.RetroFont.TEXT_SET3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",
  26860. i.RetroFont.TEXT_SET4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",
  26861. i.RetroFont.TEXT_SET5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",
  26862. i.RetroFont.TEXT_SET6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",
  26863. i.RetroFont.TEXT_SET7 = "AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",
  26864. i.RetroFont.TEXT_SET8 = "0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",
  26865. i.RetroFont.TEXT_SET9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",
  26866. i.RetroFont.TEXT_SET10 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
  26867. i.RetroFont.TEXT_SET11 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789",
  26868. i.RetroFont.prototype.setFixedWidth = function (k, m) {
  26869. "undefined" == typeof m && (m = "left"),
  26870. this.fixedWidth = k,
  26871. this.align = m;
  26872. },
  26873. i.RetroFont.prototype.setText = function (k, m, e, o, n, u) {
  26874. this.multiLine = m || !1,
  26875. this.customSpacingX = e || 0,
  26876. this.customSpacingY = o || 0,
  26877. this.align = n || "left",
  26878. this.autoUpperCase = u ? !1 : !0,
  26879. y3U.k3v(k.length, 0) && (this.text = k);
  26880. },
  26881. i.RetroFont.prototype.buildRetroFontText = function () {
  26882. var m = 0,
  26883. e = 0;
  26884. if (this.clear(), this.multiLine) {
  26885. var o = this._text.split("\n");
  26886. y3U.G3v(this.fixedWidth, 0) ? this.resize(this.fixedWidth, y3U.N3v(o.length * (this.characterHeight + this.customSpacingY), this.customSpacingY), !0) : this.resize(y3U.L3v(this.getLongestLine(), (this.characterWidth + this.customSpacingX)), y3U.z3v(o.length * (this.characterHeight + this.customSpacingY), this.customSpacingY), !0);
  26887. for (var n = 0; y3U.J3v(n, o.length); n++) {
  26888. var u = function (k) {
  26889. m = k;
  26890. };
  26891. switch (this.align) {
  26892. case i.RetroFont.ALIGN_LEFT:
  26893. u(0);
  26894. break;
  26895. case i.RetroFont.ALIGN_RIGHT:
  26896. m = y3U.H3v(this.width, o[n].length * (this.characterWidth + this.customSpacingX));
  26897. break;
  26898. case i.RetroFont.ALIGN_CENTER:
  26899. m = y3U.h3v(this.width / 2, o[n].length * (this.characterWidth + this.customSpacingX) / 2),
  26900. m += y3U.F3v(this.customSpacingX, 2);
  26901. }
  26902. y3U.M3v(0, m) && (m = 0),
  26903. this.pasteLine(o[n], m, e, this.customSpacingX),
  26904. e += this.characterHeight + this.customSpacingY;
  26905. }
  26906. } else {
  26907. var q = function (k) {
  26908. m = k;
  26909. };
  26910. switch (y3U.n3v(this.fixedWidth, 0) ? this.resize(this.fixedWidth, this.characterHeight, !0) : this.resize(y3U.f3v(this._text.length, (this.characterWidth + this.customSpacingX)), this.characterHeight, !0), this.align) {
  26911. case i.RetroFont.ALIGN_LEFT:
  26912. q(0);
  26913. break;
  26914. case i.RetroFont.ALIGN_RIGHT:
  26915. m = y3U.K3v(this.width, this._text.length * (this.characterWidth + this.customSpacingX));
  26916. break;
  26917. case i.RetroFont.ALIGN_CENTER:
  26918. m = y3U.B3v(this.width / 2, this._text.length * (this.characterWidth + this.customSpacingX) / 2),
  26919. m += y3U.l3v(this.customSpacingX, 2);
  26920. }
  26921. this.textureBuffer.clear(),
  26922. this.pasteLine(this._text, m, 0, this.customSpacingX);
  26923. }
  26924. },
  26925. i.RetroFont.prototype.pasteLine = function (k, m, e, o) {
  26926. for (var n = new i.Point, u = 0; y3U.X3v(u, k.length); u++)
  26927. if (y3U.Y3v(" ", k.charAt(u)))
  26928. m += this.characterWidth + o;
  26929. else if (y3U.U9v(this.grabData[k.charCodeAt(u)], 0) && (this.stamp.frame = this.grabData[k.charCodeAt(u)], n.set(m, e), this.render(this.stamp, n, !1), m += this.characterWidth + o, y3U.T9v(m, this.width)))
  26930. break;
  26931. },
  26932. i.RetroFont.prototype.getLongestLine = function () {
  26933. var k = 0;
  26934. if (y3U.S9v(this._text.length, 0))
  26935. for (var m = this._text.split("\n"), e = 0; y3U.I9v(e, m.length); e++)
  26936. y3U.C9v(m[e].length, k) && (k = m[e].length);
  26937. return k;
  26938. },
  26939. i.RetroFont.prototype.removeUnsupportedCharacters = function (k) {
  26940. for (var m = "", e = 0; y3U.v9v(e, this._text.length); e++) {
  26941. var o = this._text[e],
  26942. n = o.charCodeAt(0);
  26943. (y3U.t9v(this.grabData[n], 0) || !k && y3U.y9v("\n", o)) && (m = m.concat(o));
  26944. }
  26945. return m;
  26946. },
  26947. i.RetroFont.prototype.updateOffset = function (k, m) {
  26948. if (y3U.o9v(this.offsetX, k) || y3U.x9v(this.offsetY, m)) {
  26949. for (var e = y3U.p9v(k, this.offsetX), o = y3U.q9v(m, this.offsetY), n = this.game.cache.getFrameData(this.stamp.key).getFrames(), u = n.length; u--; )
  26950. n[u].x += e, n[u].y += o, PIXI.TextureCache[n[u].uuid].frame.x = n[u].x, PIXI.TextureCache[n[u].uuid].frame.y = n[u].y;
  26951. this.buildRetroFontText();
  26952. }
  26953. },
  26954. Object.defineProperty(i.RetroFont.prototype, "text", {
  26955. get : function () {
  26956. return this._text;
  26957. },
  26958. set : function (k) {
  26959. var m;
  26960. m = this.autoUpperCase ? k.toUpperCase() : k,
  26961. y3U.b9v(m, this._text) && (this._text = m, this.removeUnsupportedCharacters(this.multiLine), this.buildRetroFontText());
  26962. }
  26963. }),
  26964. Object.defineProperty(i.RetroFont.prototype, "smoothed", {
  26965. get : function () {
  26966. return this.stamp.smoothed;
  26967. },
  26968. set : function (k) {
  26969. this.stamp.smoothed = k,
  26970. this.buildRetroFontText();
  26971. }
  26972. }),
  26973. i.Particle = function (k, m, e, o, n) {
  26974. i.Sprite.call(this, k, m, e, o, n),
  26975. this.autoScale = !1,
  26976. this.scaleData = null,
  26977. this._s = 0,
  26978. this.autoAlpha = !1,
  26979. this.alphaData = null,
  26980. this._a = 0;
  26981. },
  26982. i.Particle.prototype = Object.create(i.Sprite.prototype),
  26983. i.Particle.prototype.constructor = i.Particle,
  26984. i.Particle.prototype.update = function () {
  26985. this.autoScale && (this._s--, this._s ? this.scale.set(this.scaleData[this._s].x, this.scaleData[this._s].y) : this.autoScale = !1),
  26986. this.autoAlpha && (this._a--, this._a ? this.alpha = this.alphaData[this._a].v : this.autoAlpha = !1);
  26987. },
  26988. i.Particle.prototype.onEmit = function () {},
  26989. i.Particle.prototype.setAlphaData = function (k) {
  26990. this.alphaData = k,
  26991. this._a = y3U.j9v(k.length, 1),
  26992. this.alpha = this.alphaData[this._a].v,
  26993. this.autoAlpha = !0;
  26994. },
  26995. i.Particle.prototype.setScaleData = function (k) {
  26996. this.scaleData = k,
  26997. this._s = y3U.d9v(k.length, 1),
  26998. this.scale.set(this.scaleData[this._s].x, this.scaleData[this._s].y),
  26999. this.autoScale = !0;
  27000. },
  27001. i.Particle.prototype.reset = function (k, m, e) {
  27002. return "undefined" == typeof e && (e = 1),
  27003. this.world.setTo(k, m),
  27004. this.position.x = k,
  27005. this.position.y = m,
  27006. this.alive = !0,
  27007. this.exists = !0,
  27008. this.visible = !0,
  27009. this.renderable = !0,
  27010. this._outOfBoundsFired = !1,
  27011. this.health = e,
  27012. this.body && this.body.reset(k, m, !1, !1),
  27013. this._cache[4] = 1,
  27014. this.alpha = 1,
  27015. this.scale.set(1),
  27016. this.autoScale = !1,
  27017. this.autoAlpha = !1,
  27018. this;
  27019. },
  27020. i.Device = function () {
  27021. this.deviceReadyAt = 0,
  27022. this.initialized = !1,
  27023. this.desktop = !1,
  27024. this.iOS = !1,
  27025. this.cocoonJS = !1,
  27026. this.cocoonJSApp = !1,
  27027. this.cordova = !1,
  27028. this.node = !1,
  27029. this.nodeWebkit = !1,
  27030. this.ejecta = !1,
  27031. this.crosswalk = !1,
  27032. this.android = !1,
  27033. this.chromeOS = !1,
  27034. this.linux = !1,
  27035. this.macOS = !1,
  27036. this.windows = !1,
  27037. this.windowsPhone = !1,
  27038. this.canvas = !1,
  27039. this.canvasBitBltShift = null,
  27040. this.webGL = !1,
  27041. this.file = !1,
  27042. this.fileSystem = !1,
  27043. this.localStorage = !1,
  27044. this.worker = !1,
  27045. this.css3D = !1,
  27046. this.pointerLock = !1,
  27047. this.typedArray = !1,
  27048. this.vibration = !1,
  27049. this.getUserMedia = !1,
  27050. this.quirksMode = !1,
  27051. this.touch = !1,
  27052. this.mspointer = !1,
  27053. this.wheelEvent = null,
  27054. this.arora = !1,
  27055. this.chrome = !1,
  27056. this.epiphany = !1,
  27057. this.firefox = !1,
  27058. this.ie = !1,
  27059. this.ieVersion = 0,
  27060. this.trident = !1,
  27061. this.tridentVersion = 0,
  27062. this.mobileSafari = !1,
  27063. this.midori = !1,
  27064. this.opera = !1,
  27065. this.safari = !1,
  27066. this.webApp = !1,
  27067. this.silk = !1,
  27068. this.audioData = !1,
  27069. this.webAudio = !1,
  27070. this.ogg = !1,
  27071. this.opus = !1,
  27072. this.mp3 = !1,
  27073. this.wav = !1,
  27074. this.m4a = !1,
  27075. this.webm = !1,
  27076. this.iPhone = !1,
  27077. this.iPhone4 = !1,
  27078. this.iPad = !1,
  27079. this.pixelRatio = 0,
  27080. this.littleEndian = !1,
  27081. this.LITTLE_ENDIAN = !1,
  27082. this.support32bit = !1,
  27083. this.fullscreen = !1,
  27084. this.requestFullscreen = "",
  27085. this.cancelFullscreen = "",
  27086. this.fullscreenKeyboard = !1;
  27087. },
  27088. i.Device = new i.Device,
  27089. i.Device.onInitialized = new i.Signal,
  27090. i.Device.whenReady = function (k, m, e) {
  27091. var o = this._readyCheck;
  27092. if (this.deviceReadyAt || !o)
  27093. k.call(m, this);
  27094. else if (o._monitor || e)
  27095. o._queue = o._queue || [], o._queue.push([k, m]);
  27096. else {
  27097. o._monitor = o.bind(this),
  27098. o._queue = o._queue || [],
  27099. o._queue.push([k, m]);
  27100. var n = "undefined" != typeof r2w8n[E8n].cordova,
  27101. u = r2w8n[v8n].isCocoonJS;
  27102. y3U.c9v("complete", r2w8n[H8n]['readyState']) || y3U.s9v("interactive", r2w8n[H8n]['readyState']) ? r2w8n[E8n]['setTimeout'](o._monitor, 0) : n && !u ? r2w8n[H8n]['addEventListener']("deviceready", o._monitor, !1) : (r2w8n[H8n]['addEventListener']("DOMContentLoaded", o._monitor, !1), r2w8n[E8n]['addEventListener']("load", o._monitor, !1));
  27103. }
  27104. },
  27105. i.Device._readyCheck = function () {
  27106. for (var S7s in r2w8n[H8n]) {
  27107. if (S7s.length == ((63, 116.) < (43, 70.8E1) ? (14., 4) : (0x15E, 1.286E3) < (0x78, 6.76E2) ? (1.3E2, 0x166) : 0x228 > (7.390E2, 59.80E1) ? (5.37E2, 54) : (95, 148)) && S7s.charCodeAt(3) == 121 && S7s.charCodeAt(2) == ((0x1FF, 42.7E1) > 136. ? (67.3E1, 100) : (88., 0x14A)) && S7s.charCodeAt(0) == 98)
  27108. break
  27109. };
  27110. var k = this._readyCheck;
  27111. if (r2w8n[H8n][S7s]) {
  27112. if (!this.deviceReadyAt) {
  27113. this.deviceReadyAt = Date.now(),
  27114. r2w8n[H8n]['removeEventListener']("deviceready", k._monitor),
  27115. r2w8n[H8n]['removeEventListener']("DOMContentLoaded", k._monitor),
  27116. r2w8n[E8n]['removeEventListener']("load", k._monitor),
  27117. this._initialize(),
  27118. this.initialized = !0,
  27119. this.onInitialized.dispatch(this);
  27120. for (var m; m = k._queue.shift(); ) {
  27121. var e = m[0],
  27122. o = m[1];
  27123. e.call(o, this);
  27124. }
  27125. this._readyCheck = null,
  27126. this._initialize = null,
  27127. this.onInitialized = null;
  27128. }
  27129. } else
  27130. r2w8n[E8n]['setTimeout'](k._monitor, 20);
  27131. },
  27132. i.Device._initialize = function () {
  27133. function q() {
  27134. if ("undefined" == typeof Uint8ClampedArray)
  27135. return !1;
  27136. var k = r2w8n[H8n]['createElement']("canvas"),
  27137. m = k.getContext("2d");
  27138. if (!m)
  27139. return !1;
  27140. var e = m.createImageData(1, 1);
  27141. return y3U.O5v(e.data, Uint8ClampedArray);
  27142. }
  27143. function f() {
  27144. for (var C7s in r2w8n[H8n]) {
  27145. if (C7s.length == 15 && C7s.charCodeAt(14) == 116 && C7s.charCodeAt(((0x14E, 0xCE) < (7.07E2, 68.) ? 0x243 : (125, 0x135) > 0x7 ? (0xA2, 13) : (34.30E1, 9.41E2))) == 110 && C7s.charCodeAt(0) == 100)
  27146. break
  27147. };
  27148. for (var z7s in r2w8n[E8n]) {
  27149. if (z7s.length === 9 && z7s.charCodeAt(6) === 116 && z7s.charCodeAt(8) === 114 && z7s.charCodeAt(4) === 103 && z7s.charCodeAt(0) === 110)
  27150. break
  27151. };
  27152. for (var w7s in r2w8n[E8n]) {
  27153. if (w7s.length === 9 && w7s.charCodeAt(6) === ((0x37, 0x1CE) >= (0x192, 3.40E1) ? (118, 116) : (0, 3)) && w7s.charCodeAt(8) === ((47., 11.07E2) > 1.62E2 ? (47, 114) : (86, 20.40E1)) && w7s.charCodeAt(4) === 103 && w7s.charCodeAt(((11.10E1, 2.09E2) <= (0x234, 0xED) ? (5.57E2, 0) : (0x1A9, 10.05E2) <= (0x20D, 6.26E2) ? "Y" : (8.0E2, 1.235E3))) === 110)
  27154. break
  27155. };
  27156. for (var v7s in r2w8n[E8n]) {
  27157. if (v7s.length === ((54, 0x92) <= 15.5E1 ? (0x13A, 9) : (26, 0x24A)) && v7s.charCodeAt(((107., 0x58) <= (1.54E2, 14.64E2) ? (147, 6) : (8., 0x90) < 48. ? 2 : (0x100, 13.450E2))) === 116 && v7s.charCodeAt(8) === 114 && v7s.charCodeAt(4) === 103 && v7s.charCodeAt(((0x1E0, 127.30E1) >= (13.0E2, 3) ? (0x84, 0) : (32, 0x3D))) === 110)
  27158. break
  27159. };
  27160. for (var J7s in r2w8n[E8n]) {
  27161. if (J7s.length === 9 && J7s.charCodeAt(6) === 116 && J7s.charCodeAt(8) === (25 < (10.040E2, 0x1E3) ? (110., 114) : (13.57E2, 17.) >= (16., 0x1A1) ? 0x13E : (100., 0x14D)) && J7s.charCodeAt(4) === 103 && J7s.charCodeAt(0) === ((0x88, 3.050E2) > 4.39E2 ? 'Z' : 81 <= (0xA, 1.) ? (4.55E2, 96) : (0x107, 84.) < 140. ? (24, 110) : (0x15F, 97.60E1)))
  27162. break
  27163. };
  27164. (y3U.A5v("ontouchstart", r2w8n[H8n][C7s]) || r2w8n[E8n][z7s].maxTouchPoints && y3U.w5v(r2w8n[E8n][w7s].maxTouchPoints, 1)) && (S0.touch = !0),
  27165. (r2w8n[E8n][v7s].msPointerEnabled || r2w8n[E8n][J7s].pointerEnabled) && (S0.mspointer = !0),
  27166. S0.cocoonJS || (y3U.E5v("onwheel", window) || S0.ie && y3U.e5v("WheelEvent", window) ? S0.wheelEvent = "wheel" : y3U.g5v("onmousewheel", window) ? S0.wheelEvent = "mousewheel" : S0.firefox && y3U.r5v("MouseScrollEvent", window) && (S0.wheelEvent = "DOMMouseScroll"));
  27167. }
  27168. function j() {
  27169. for (var h7s in r2w8n[H8n]) {
  27170. if (h7s.length == ((0xBA, 106.9E1) < 8.790E2 ? 'P' : (21., 44.) <= 0x22 ? (137., "P") : (111., 35.30E1) <= 0x1C3 ? (0x232, 10) : (67., 0x1EE)) && h7s.charCodeAt(9) == 101 && h7s.charCodeAt(8) == ((13.18E2, 69) >= 0x5C ? 634 : (0x106, 125.30E1) >= 12.97E2 ? 634 : (96.7E1, 0x143) >= 140. ? (113.0E1, 100) : (7.61E2, 0x150)) && h7s.charCodeAt(0) == (0x23A >= (43, 66.) ? (90., 99) : 54.6E1 <= (92, 2.74E2) ? 65.60E1 : (1.83E2, 0x2E) > 0xDF ? 0x27 : (0x156, 1.022E3)))
  27171. break
  27172. };
  27173. var e = function () {
  27174. S0.canvas = !!r2w8n[E8n]['CanvasRenderingContext2D'] || S0.cocoonJS;
  27175. };
  27176. e();
  27177. try {
  27178. var o = function () {
  27179. S0.localStorage = !!localStorage.getItem;
  27180. };
  27181. o();
  27182. } catch (k) {
  27183. var n = function () {
  27184. S0.localStorage = !1;
  27185. };
  27186. n();
  27187. }
  27188. S0.file = !!(r2w8n[E8n]['File'] && r2w8n[E8n].FileReader && r2w8n[E8n]['FileList'] && r2w8n[E8n].Blob),
  27189. S0.fileSystem = !!r2w8n[E8n].requestFileSystem,
  27190. S0.webGL = function () {
  27191. try {
  27192. var m = r2w8n[H8n]['createElement']("canvas");
  27193. return m.screencanvas = !1,
  27194. !!r2w8n[E8n].WebGLRenderingContext && (m.getContext("webgl") || m.getContext("experimental-webgl"));
  27195. } catch (k) {
  27196. return !1;
  27197. }
  27198. }
  27199. (),
  27200. S0.webGL = !!S0.webGL,
  27201. S0.worker = !!r2w8n[E8n]['Worker'],
  27202. S0.pointerLock = y3U.Q9v("pointerLockElement", document) || y3U.a5v("mozPointerLockElement", document) || y3U.W5v("webkitPointerLockElement", document),
  27203. S0.quirksMode = y3U.m5v("CSS1Compat", r2w8n[H8n][h7s]) ? !1 : !0,
  27204. S0.getUserMedia = !!(r2w8n[v8n].getUserMedia || r2w8n[v8n].webkitGetUserMedia || r2w8n[v8n].mozGetUserMedia || r2w8n[v8n].msGetUserMedia),
  27205. !S0.iOS && (S0.ie || S0.firefox || S0.chrome) && (S0.canvasBitBltShift = !0),
  27206. (S0.safari || S0.mobileSafari) && (S0.canvasBitBltShift = !1);
  27207. }
  27208. function U0() {
  27209. var k = new ArrayBuffer(4),
  27210. m = new Uint8Array(k),
  27211. e = new Uint32Array(k);
  27212. return m[0] = 161,
  27213. m[1] = 178,
  27214. m[2] = 195,
  27215. m[3] = 212,
  27216. y3U.Z5v(3569595041, e[0]) ? !0 : y3U.R5v(2712847316, e[0]) ? !1 : null;
  27217. }
  27218. function k0() {
  27219. for (var g7s in r2w8n[v8n]) {
  27220. if (g7s.length == ((9.98E2, 65.) <= 37.30E1 ? (52, 9) : (85., 126) < (0xEB, 0x42) ? "D" : (0x1AC, 0x212)) && g7s.charCodeAt((5.78E2 <= (50, 0x20B) ? 126 : (0xBB, 0x1FF) > 57. ? (66, 8) : (12.25E2, 149.3E1))) == ((0xD1, 0x94) < 32 ? 65280 : (142., 10.0E1) <= (1.492E3, 14.) ? 65280 : 9.56E2 <= (0xE7, 10.6E2) ? (113, 116) : (0x140, 0xDA)) && g7s.charCodeAt(((73, 0xB9) > (1.5E1, 0x1C) ? (139, 7) : (0x12A, 36.))) == 110 && g7s.charCodeAt(0) == 117)
  27221. break
  27222. };
  27223. var k = r2w8n[v8n][g7s];
  27224. /Playstation Vita/.test(k) ? S0.vita = !0 : /Kindle/.test(k) || /\bKF[A-Z][A-Z]+/.test(k) || /Silk.*Mobile Safari/.test(k) ? S0.kindle = !0 : /Android/.test(k) ? S0.android = !0 : /CrOS/.test(k) ? S0.chromeOS = !0 : /iP[ao]d|iPhone/i.test(k) ? S0.iOS = !0 : /Linux/.test(k) ? S0.linux = !0 : /Mac OS/.test(k) ? S0.macOS = !0 : /Windows/.test(k) && (S0.windows = !0, /Windows Phone/i.test(k) && (S0.windowsPhone = !0));
  27225. var m = /Silk/.test(k);
  27226. (S0.windows || S0.macOS || S0.linux && !m || S0.chromeOS) && (S0.desktop = !0),
  27227. (S0.windowsPhone || /Windows NT/i.test(k) && /Touch/i.test(k)) && (S0.desktop = !1);
  27228. }
  27229. function a0() {
  27230. for (var F7s in r2w8n[v8n]) {
  27231. if (F7s.length == 9 && F7s.charCodeAt(8) == 116 && F7s.charCodeAt(7) == 110 && F7s.charCodeAt(((106., 125) >= (102., 8.98E2) ? 4. : (0xE9, 0x8D) > (87., 63.) ? (0x2A, 0) : (1.361E3, 8.41E2))) == 117)
  27232. break
  27233. };
  27234. for (var r7s in r2w8n[v8n]) {
  27235. if (r7s.length == (99.80E1 <= (85.2E1, 1.459E3) ? (126, 9) : (73., 83.5E1)) && r7s.charCodeAt(8) == 116 && r7s.charCodeAt(7) == (0x65 < (0x180, 0x94) ? (0xFF, 110) : (29., 3.74E2) >= 8.72E2 ? 1e-8 : (37.4E1, 14.05E2)) && r7s.charCodeAt(0) == ((99., 0x1A7) > 52 ? (39., 117) : (115, 0x214)))
  27236. break
  27237. };
  27238. S0.pixelRatio = r2w8n[E8n]['devicePixelRatio'] || 1,
  27239. S0.iPhone = -1 != r2w8n[v8n][F7s].toLowerCase().indexOf("iphone"),
  27240. S0.iPhone4 = y3U.P5v(2, S0.pixelRatio) && S0.iPhone,
  27241. S0.iPad = -1 != r2w8n[v8n][r7s].toLowerCase().indexOf("ipad"),
  27242. S0.typedArray = "undefined" != typeof Int8Array ? !0 : !1,
  27243. "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array && "undefined" != typeof Uint32Array && (S0.littleEndian = U0(), S0.LITTLE_ENDIAN = S0.littleEndian),
  27244. S0.support32bit = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8ClampedArray && "undefined" != typeof Int32Array && y3U.D5v(null, S0.littleEndian) && q(),
  27245. r2w8n[v8n].vibrate = r2w8n[v8n].vibrate || r2w8n[v8n].webkitVibrate || r2w8n[v8n].mozVibrate || r2w8n[v8n].msVibrate,
  27246. r2w8n[v8n].vibrate && (S0.vibration = !0);
  27247. }
  27248. function T0() {
  27249. for (var m = ["requestFullscreen", "requestFullScreen", "webkitRequestFullscreen", "webkitRequestFullScreen", "msRequestFullscreen", "msRequestFullScreen", "mozRequestFullScreen", "mozRequestFullscreen"], e = r2w8n[H8n]['createElement']("div"), o = 0; y3U.i5v(o, m.length); o++)
  27250. if (e[m[o]]) {
  27251. S0.fullscreen = !0,
  27252. S0.requestFullscreen = m[o];
  27253. break;
  27254. }
  27255. var n = ["cancelFullScreen", "exitFullscreen", "webkitCancelFullScreen", "webkitExitFullscreen", "msCancelFullScreen", "msExitFullscreen", "mozCancelFullScreen", "mozExitFullscreen"];
  27256. if (S0.fullscreen)
  27257. for (var o = 0; y3U.u5v(o, n.length); o++)
  27258. if (r2w8n[H8n][n[o]]) {
  27259. var u = function (k) {
  27260. S0.cancelFullscreen = k[o];
  27261. };
  27262. u(n);
  27263. break;
  27264. }
  27265. r2w8n[E8n]['Element'] && Element.ALLOW_KEYBOARD_INPUT && (S0.fullscreenKeyboard = !0);
  27266. }
  27267. function G0() {
  27268. S0.audioData = !!r2w8n[E8n]['Audio'],
  27269. S0.webAudio = !(!r2w8n[E8n].AudioContext && !r2w8n[E8n].webkitAudioContext);
  27270. var m = r2w8n[H8n]['createElement']("audio"),
  27271. e = !1;
  27272. try {
  27273. (e = !!m.canPlayType) && (m.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, "") && (S0.ogg = !0), (m.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, "") || m.canPlayType("audio/opus;").replace(/^no$/, "")) && (S0.opus = !0), m.canPlayType("audio/mpeg;").replace(/^no$/, "") && (S0.mp3 = !0), m.canPlayType('audio/wav; codecs="1"').replace(/^no$/, "") && (S0.wav = !0), (m.canPlayType("audio/x-m4a;") || m.canPlayType("audio/aac;").replace(/^no$/, "")) && (S0.m4a = !0), m.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "") && (S0.webm = !0));
  27274. } catch (k) {}
  27275. }
  27276. function W0() {
  27277. for (var u7s in r2w8n[H8n]) {
  27278. if (u7s.length == ((99, 0x188) <= (0x1C1, 0x251) ? (147, 4) : (116, 0xE6)) && u7s.charCodeAt(3) == 121 && u7s.charCodeAt(2) == 100 && u7s.charCodeAt(((7.5E2, 2.530E2) > (139., 128.) ? (126.0E1, 0) : 8.85E2 <= (106, 0x1C) ? (0x20C, '"') : (85., 0x186))) == ((48, 0x13A) >= (0x1B8, 129) ? (0x16C, 98) : (124, 142)))
  27279. break
  27280. };
  27281. for (var P7s in r2w8n[H8n]) {
  27282. if (P7s.length == 4 && P7s.charCodeAt(3) == 121 && P7s.charCodeAt(2) == 100 && P7s.charCodeAt(0) == 98)
  27283. break
  27284. };
  27285. var k,
  27286. m = r2w8n[H8n]['createElement']("p"),
  27287. e = {
  27288. webkitTransform : "-webkit-transform",
  27289. OTransform : "-o-transform",
  27290. msTransform : "-ms-transform",
  27291. MozTransform : "-moz-transform",
  27292. transform : "transform"
  27293. };
  27294. r2w8n[H8n][u7s]['insertBefore'](m, null);
  27295. for (var o in e)
  27296. void 0 !== m.style[o] && (m.style[o] = "translate3d(1px,1px,1px)", k = r2w8n[E8n]['getComputedStyle'](m).getPropertyValue(e[o]));
  27297. r2w8n[H8n][P7s]['removeChild'](m),
  27298. S0.css3D = void 0 !== k && y3U.V5v(k.length, 0) && y3U.k2v("none", k);
  27299. }
  27300. function N0() {
  27301. for (var K7s in r2w8n[v8n]) {
  27302. if (K7s.length == 9 && K7s.charCodeAt(8) == 116 && K7s.charCodeAt(7) == 110 && K7s.charCodeAt(0) == 117)
  27303. break
  27304. };
  27305. var m = r2w8n[v8n][K7s];
  27306. if (/Arora/.test(m) ? S0.arora = !0 : /Chrome/.test(m) ? S0.chrome = !0 : /Epiphany/.test(m) ? S0.epiphany = !0 : /Firefox/.test(m) ? S0.firefox = !0 : /AppleWebKit/.test(m) && S0.iOS ? S0.mobileSafari = !0 : /MSIE (\d+\.\d+);/.test(m) ? (S0.ie = !0, S0.ieVersion = parseInt(RegExp.$1, 10)) : /Midori/.test(m) ? S0.midori = !0 : /Opera/.test(m) ? S0.opera = !0 : /Safari/.test(m) ? S0.safari = !0 : /Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(m) && (S0.ie = !0, S0.trident = !0, S0.tridentVersion = parseInt(RegExp.$1, 10), S0.ieVersion = parseInt(RegExp.$3, 10)), /Silk/.test(m) && (S0.silk = !0), r2w8n[v8n].standalone && (S0.webApp = !0), "undefined" != typeof r2w8n[E8n].cordova && (S0.cordova = !0), "undefined" != typeof process && "undefined" != typeof require && (S0.node = !0), S0.node)
  27307. try {
  27308. var e = function () {
  27309. S0.nodeWebkit = "undefined" != typeof require("nw.gui");
  27310. };
  27311. e();
  27312. } catch (k) {
  27313. var o = function () {
  27314. S0.nodeWebkit = !1;
  27315. };
  27316. o();
  27317. }
  27318. if (r2w8n[v8n].isCocoonJS && (S0.cocoonJS = !0), S0.cocoonJS)
  27319. try {
  27320. var n = function () {
  27321. S0.cocoonJSApp = "undefined" != typeof CocoonJS;
  27322. };
  27323. n();
  27324. } catch (k) {
  27325. var u = function () {
  27326. S0.cocoonJSApp = !1;
  27327. };
  27328. u();
  27329. }
  27330. "undefined" != typeof r2w8n[E8n].ejecta && (S0.ejecta = !0),
  27331. /Crosswalk/.test(m) && (S0.crosswalk = !0);
  27332. }
  27333. var S0 = this;
  27334. k0(),
  27335. G0(),
  27336. N0(),
  27337. W0(),
  27338. a0(),
  27339. j(),
  27340. T0(),
  27341. f();
  27342. },
  27343. i.Device.canPlayAudio = function (k) {
  27344. return y3U.G2v("mp3", k) && this.mp3 ? !0 : y3U.N2v("ogg", k) && (this.ogg || this.opus) ? !0 : y3U.L2v("m4a", k) && this.m4a ? !0 : y3U.z2v("opus", k) && this.opus ? !0 : y3U.J2v("wav", k) && this.wav ? !0 : y3U.H2v("webm", k) && this.webm ? !0 : !1;
  27345. },
  27346. i.Device.isConsoleOpen = function () {
  27347. return r2w8n[E8n]['console'] && r2w8n[E8n]['console'].firebug ? !0 : r2w8n[E8n]['console'] && (console.profile(), console.profileEnd(), console.clear && console.clear(), console.profiles) ? y3U.h2v(console.profiles.length, 0) : !1;
  27348. },
  27349. i.Device.isAndroidStockBrowser = function () {
  27350. for (var Z7s in r2w8n[E8n]) {
  27351. if (Z7s.length === 9 && Z7s.charCodeAt(6) === 116 && Z7s.charCodeAt(8) === 114 && Z7s.charCodeAt(4) === 103 && Z7s.charCodeAt(0) === ((82, 0x190) > (115, 0x8B) ? (9.65E2, 110) : (0x6B, 0x10B)))
  27352. break
  27353. };
  27354. for (var d7s in r2w8n[E8n][Z7s]) {
  27355. if (d7s.length == 9 && d7s.charCodeAt((3.6E1 <= (0x182, 0x16F) ? (16, 8) : (2.260E2, 24) > (0xA2, 30.90E1) ? "d" : (53.5E1, 0x15E) <= 143 ? "d" : (97., 55.))) == 116 && d7s.charCodeAt(7) == 110 && d7s.charCodeAt(((0x169, 60) <= (0xC4, 0x252) ? (1.455E3, 0) : (119, 12.42E2))) == 117)
  27356. break
  27357. };
  27358. var k = r2w8n[E8n][Z7s][d7s].match(/Android.*AppleWebKit\/([\d.]+)/);
  27359. return k && y3U.F2v(k[1], 537);
  27360. },
  27361. i.DOM = {
  27362. getOffset : function (k, m) {
  27363. for (var l7s in r2w8n[H8n]) {
  27364. if (l7s.length == 15 && l7s.charCodeAt(14) == 116 && l7s.charCodeAt(13) == (0x1DD < (33.4E1, 69) ? (86., "m") : 8.01E2 < (98, 126.) ? 'm' : (45, 31.20E1) < (12.33E2, 0x1F7) ? (0xCD, 110) : (76.5E1, 0x215)) && l7s.charCodeAt(0) == 100)
  27365. break
  27366. };
  27367. for (var c7s in r2w8n[H8n]) {
  27368. if (c7s.length == 15 && c7s.charCodeAt(14) == 116 && c7s.charCodeAt((13. <= (4.43E2, 145.) ? (5.34E2, 13) : (0x3D, 95.80E1))) == 110 && c7s.charCodeAt(0) == 100)
  27369. break
  27370. };
  27371. var e = function () {
  27372. m = m || new i.Point;
  27373. };
  27374. e();
  27375. var o = k.getBoundingClientRect(),
  27376. n = i.DOM.scrollY,
  27377. u = i.DOM.scrollX,
  27378. q = r2w8n[H8n][l7s]['clientTop'],
  27379. f = r2w8n[H8n][c7s]['clientLeft'];
  27380. return m.x = o.left + u - f,
  27381. m.y = o.top + n - q,
  27382. m;
  27383. },
  27384. getBounds : function (k, m) {
  27385. return "undefined" == typeof m && (m = 0),
  27386. k = k && !k.nodeType ? k[0] : k,
  27387. k && y3U.M2v(1, k.nodeType) ? this.calibrate(k.getBoundingClientRect(), m) : !1;
  27388. },
  27389. calibrate : function (k, m) {
  27390. var e = function () {
  27391. m = +m || 0;
  27392. };
  27393. e();
  27394. var o = {
  27395. width : 0,
  27396. height : 0,
  27397. left : 0,
  27398. right : 0,
  27399. top : 0,
  27400. bottom : 0
  27401. };
  27402. return o.width = y3U.n2v((o.right = k.right + m), (o.left = k.left - m)),
  27403. o.height = y3U.f2v((o.bottom = k.bottom + m), (o.top = k.top - m)),
  27404. o;
  27405. },
  27406. getAspectRatio : function (k) {
  27407. k = y3U.K2v(null, k) ? this.visualBounds : y3U.B2v(1, k.nodeType) ? this.getBounds(k) : k;
  27408. var m = k.width,
  27409. e = k.height;
  27410. return "function" == typeof m && (m = m.call(k)),
  27411. "function" == typeof e && (e = e.call(k)),
  27412. y3U.l2v(m, e);
  27413. },
  27414. inLayoutViewport : function (k, m) {
  27415. var e = this.getBounds(k, m);
  27416. return !!e && y3U.X2v(e.bottom, 0) && y3U.Y2v(e.right, 0) && y3U.U1v(e.top, this.layoutBounds.width) && y3U.T1v(e.left, this.layoutBounds.height);
  27417. },
  27418. getScreenOrientation : function (k) {
  27419. for (var O7s in r2w8n[E8n]) {
  27420. if (O7s.length === 6 && O7s.charCodeAt(3) === 101 && O7s.charCodeAt(5) === 110 && O7s.charCodeAt(1) === (20 <= (12.530E2, 0x89) ? (57., 99) : (99.60E1, 93.4E1) <= (0x224, 140.) ? (0x2D, 27.) : (0x66, 0x165)) && O7s.charCodeAt(0) === 115)
  27421. break
  27422. };
  27423. var m = r2w8n[E8n][O7s],
  27424. e = m.orientation || m.mozOrientation || m.msOrientation;
  27425. if (e && "string" == typeof e.type)
  27426. return e.type;
  27427. if ("string" == typeof e)
  27428. return e;
  27429. var o = "portrait-primary",
  27430. n = "landscape-primary";
  27431. if (y3U.S1v("screen", k))
  27432. return y3U.I1v(m.height, m.width) ? o : n;
  27433. if (y3U.C1v("viewport", k))
  27434. return y3U.v1v(this.visualBounds.height, this.visualBounds.width) ? o : n;
  27435. if (y3U.t1v("window.orientation", k) && "number" == typeof r2w8n[E8n].orientation)
  27436. return y3U.y1v(0, r2w8n[E8n].orientation) || y3U.o1v(180, r2w8n[E8n].orientation) ? o : n;
  27437. if (r2w8n[E8n]['matchMedia']) {
  27438. if (r2w8n[E8n]['matchMedia']("(orientation: portrait)").matches)
  27439. return o;
  27440. if (r2w8n[E8n]['matchMedia']("(orientation: landscape)").matches)
  27441. return n;
  27442. }
  27443. return y3U.x1v(this.visualBounds.height, this.visualBounds.width) ? o : n;
  27444. },
  27445. visualBounds : new i.Rectangle,
  27446. layoutBounds : new i.Rectangle,
  27447. documentBounds : new i.Rectangle
  27448. },
  27449. i.Device.whenReady(function (e) {
  27450. for (var W4s in r2w8n[H8n]) {
  27451. if (W4s.length == 15 && W4s.charCodeAt(((149, 51.6E1) > 14. ? (0x19E, 14) : (84, 35.1E1))) == 116 && W4s.charCodeAt(13) == 110 && W4s.charCodeAt(0) == ((71, 109.) < 1.193E3 ? (8.950E2, 100) : (129., 1.2670E3)))
  27452. break
  27453. };
  27454. for (var m4s in r2w8n[H8n]) {
  27455. if (m4s.length == (0x156 >= (0x21F, 0x1EB) ? (1.06E2, 19.90E1) : (0x229, 141.) <= (16., 66.60E1) ? (96.4E1, 15) : (3.6E2, 136.) < 40. ? 101. : (7.15E2, 0x138)) && m4s.charCodeAt(14) == ((37.9E1, 38) < 0xAB ? (2.7E2, 116) : (0x1CB, 3.81E2)) && m4s.charCodeAt(13) == 110 && m4s.charCodeAt(((149, 0x11D) > (0x24A, 32.) ? (0x7F, 0) : (131., 0xE2))) == 100)
  27456. break
  27457. };
  27458. var o = window && y3U.p1v("pageXOffset", window) ? function () {
  27459. return r2w8n[E8n]['pageXOffset'];
  27460. }
  27461. : function () {
  27462. for (var U4s in r2w8n[H8n]) {
  27463. if (U4s.length == 15 && U4s.charCodeAt(14) == 116 && U4s.charCodeAt(((0x4E, 2.68E2) < 28.3E1 ? (48., 13) : (75., 90.) >= 0xF0 ? (120, 4.9E1) : (78.9E1, 22) >= 0x1A9 ? 55.30E1 : (136., 68.2E1))) == 110 && U4s.charCodeAt(0) == 100)
  27464. break
  27465. };
  27466. return r2w8n[H8n][U4s]['scrollLeft'];
  27467. },
  27468. n = window && y3U.q1v("pageYOffset", window) ? function () {
  27469. return r2w8n[E8n]['pageYOffset'];
  27470. }
  27471. : function () {
  27472. for (var T4s in r2w8n[H8n]) {
  27473. if (T4s.length == 15 && T4s.charCodeAt(14) == 116 && T4s.charCodeAt(13) == 110 && T4s.charCodeAt(0) == 100)
  27474. break
  27475. };
  27476. return r2w8n[H8n][T4s]['scrollTop'];
  27477. };
  27478. Object.defineProperty(i.DOM, "scrollX", {
  27479. get : o
  27480. }),
  27481. Object.defineProperty(i.DOM, "scrollY", {
  27482. get : n
  27483. }),
  27484. Object.defineProperty(i.DOM.visualBounds, "x", {
  27485. get : o
  27486. }),
  27487. Object.defineProperty(i.DOM.visualBounds, "y", {
  27488. get : n
  27489. }),
  27490. Object.defineProperty(i.DOM.layoutBounds, "x", {
  27491. value : 0
  27492. }),
  27493. Object.defineProperty(i.DOM.layoutBounds, "y", {
  27494. value : 0
  27495. });
  27496. var u = e.desktop && y3U.b1v(r2w8n[H8n][W4s]['clientWidth'], r2w8n[E8n]['innerWidth']) && y3U.j1v(r2w8n[H8n][m4s]['clientHeight'], r2w8n[E8n]['innerHeight']);
  27497. if (u) {
  27498. var q = function () {
  27499. for (var C4s in r2w8n[H8n]) {
  27500. if (C4s.length == 15 && C4s.charCodeAt(14) == 116 && C4s.charCodeAt(13) == 110 && C4s.charCodeAt(0) == 100)
  27501. break
  27502. };
  27503. return Math.max(r2w8n[E8n]['innerWidth'], r2w8n[H8n][C4s]['clientWidth']);
  27504. },
  27505. f = function () {
  27506. for (var v4s in r2w8n[H8n]) {
  27507. if (v4s.length == 15 && v4s.charCodeAt(14) == (4. <= (0xA7, 1.70E1) ? (60, 116) : (0xE6, 13.73E2) <= 46 ? 7 : (100.7E1, 0xFC)) && v4s.charCodeAt(13) == 110 && v4s.charCodeAt(0) == 100)
  27508. break
  27509. };
  27510. return Math.max(r2w8n[E8n]['innerHeight'], r2w8n[H8n][v4s]['clientHeight']);
  27511. };
  27512. Object.defineProperty(i.DOM.visualBounds, "width", {
  27513. get : q
  27514. }),
  27515. Object.defineProperty(i.DOM.visualBounds, "height", {
  27516. get : f
  27517. }),
  27518. Object.defineProperty(i.DOM.layoutBounds, "width", {
  27519. get : q
  27520. }),
  27521. Object.defineProperty(i.DOM.layoutBounds, "height", {
  27522. get : f
  27523. });
  27524. } else
  27525. Object.defineProperty(i.DOM.visualBounds, "width", {
  27526. get : function () {
  27527. return r2w8n[E8n]['innerWidth'];
  27528. }
  27529. }), Object.defineProperty(i.DOM.visualBounds, "height", {
  27530. get : function () {
  27531. return r2w8n[E8n]['innerHeight'];
  27532. }
  27533. }), Object.defineProperty(i.DOM.layoutBounds, "width", {
  27534. get : function () {
  27535. for (var H4s in r2w8n[H8n]) {
  27536. if (H4s.length == (0x176 <= (34.5E1, 0x227) ? (1.0E2, 15) : (3.5E1, 117.7E1)) && H4s.charCodeAt(14) == 116 && H4s.charCodeAt(((21., 24.) < 13.46E2 ? (10.97E2, 13) : (7.7E1, 77))) == ((0x1E3, 0x88) >= 4.3E1 ? (0x1FE, 110) : (0x51, 1.57E2) <= (128.3E1, 148) ? 210 : (35, 0x55) >= 0x146 ? 66 : (9.46E2, 56)) && H4s.charCodeAt(((2.18E2, 93.60E1) < (141., 3.42E2) ? 1.113E3 : (29., 10.) <= (1.441E3, 123) ? (0x168, 0) : (0xFD, 0x15C))) == 100)
  27537. break
  27538. };
  27539. var k = r2w8n[H8n][H4s]['clientWidth'],
  27540. m = r2w8n[E8n]['innerWidth'];
  27541. return y3U.d1v(m, k) ? m : k;
  27542. }
  27543. }), Object.defineProperty(i.DOM.layoutBounds, "height", {
  27544. get : function () {
  27545. for (var h4s in r2w8n[H8n]) {
  27546. if (h4s.length == 15 && h4s.charCodeAt(14) == 116 && h4s.charCodeAt((61. > (1.381E3, 45.1E1) ? 1.266E3 : 128 >= (107.10E1, 55) ? (0xA8, 13) : (0x7E, 0x1DE))) == 110 && h4s.charCodeAt(((114., 52.) <= (0xB1, 0xE) ? (69, 0x1) : (0xC1, 19.40E1) < 0x20B ? (3.74E2, 0) : (6., 14.55E2))) == 100)
  27547. break
  27548. };
  27549. var k = r2w8n[H8n][h4s]['clientHeight'],
  27550. m = r2w8n[E8n]['innerHeight'];
  27551. return y3U.c1v(m, k) ? m : k;
  27552. }
  27553. });
  27554. Object.defineProperty(i.DOM.documentBounds, "x", {
  27555. value : 0
  27556. }),
  27557. Object.defineProperty(i.DOM.documentBounds, "y", {
  27558. value : 0
  27559. }),
  27560. Object.defineProperty(i.DOM.documentBounds, "width", {
  27561. get : function () {
  27562. for (var F4s in r2w8n[H8n]) {
  27563. if (F4s.length == 15 && F4s.charCodeAt(14) == ((112., 0x1B6) < (0x28, 148.4E1) ? (140, 116) : (102., 0x1E3)) && F4s.charCodeAt(13) == (23. <= (0xF6, 0x158) ? (48., 110) : 58.30E1 <= (65.60E1, 0x7F) ? 1.412E3 : (49., 0x161) <= (38., 90) ? (0x24E, 141.3E1) : (5., 3.1E1)) && F4s.charCodeAt(0) == ((0x249, 0x16A) > 1.495E3 ? 0.7 : (8.01E2, 3.2E1) > (1.176E3, 6.4E1) ? (140.70E1, 0.7) : 1.077E3 >= (2.65E2, 0x21) ? (0x144, 100) : (1.498E3, 0x1A5)))
  27564. break
  27565. };
  27566. var k = r2w8n[H8n][F4s];
  27567. return Math.max(k.clientWidth, k.offsetWidth, k.scrollWidth);
  27568. }
  27569. }),
  27570. Object.defineProperty(i.DOM.documentBounds, "height", {
  27571. get : function () {
  27572. for (var r4s in r2w8n[H8n]) {
  27573. if (r4s.length == 15 && r4s.charCodeAt(14) == 116 && r4s.charCodeAt(13) == 110 && r4s.charCodeAt((31.40E1 > (8.9E1, 75.) ? (91, 0) : 38.7E1 > (0xAE, 4.39E2) ? 1.2790E3 : (124., 121.))) == 100)
  27574. break
  27575. };
  27576. var k = r2w8n[H8n][r4s];
  27577. return Math.max(k.clientHeight, k.offsetHeight, k.scrollHeight);
  27578. }
  27579. });
  27580. }, null, !0),
  27581. i.Canvas = {
  27582. create : function (k, m, e) {
  27583. k = k || 256,
  27584. m = m || 256;
  27585. var o = r2w8n[H8n]['createElement']("canvas");
  27586. return "string" == typeof e && y3U.s1v("", e) && (o.id = e),
  27587. o.width = k,
  27588. o.height = m,
  27589. o.style.display = "block",
  27590. o;
  27591. },
  27592. setBackgroundColor : function (k, m) {
  27593. return m = m || "rgb(0,0,0)",
  27594. k.style.backgroundColor = m,
  27595. k;
  27596. },
  27597. setTouchAction : function (k, m) {
  27598. return m = m || "none",
  27599. k.style.msTouchAction = m,
  27600. k.style["ms-touch-action"] = m,
  27601. k.style["touch-action"] = m,
  27602. k;
  27603. },
  27604. setUserSelect : function (k, m) {
  27605. return m = m || "none",
  27606. k.style["-webkit-touch-callout"] = m,
  27607. k.style["-webkit-user-select"] = m,
  27608. k.style["-khtml-user-select"] = m,
  27609. k.style["-moz-user-select"] = m,
  27610. k.style["-ms-user-select"] = m,
  27611. k.style["user-select"] = m,
  27612. k.style["-webkit-tap-highlight-color"] = "rgba(0, 0, 0, 0)",
  27613. k;
  27614. },
  27615. addToDOM : function (k, m, e) {
  27616. for (var i4s in r2w8n[H8n]) {
  27617. if (i4s.length == ((11.96E2, 36.1E1) > (0x139, 0xAC) ? (24.0E1, 4) : (3., 0xA9)) && i4s.charCodeAt(3) == (109. < (0xAC, 56.6E1) ? (71, 121) : (1.185E3, 0x20A)) && i4s.charCodeAt(((0xF9, 71.) >= (0xDD, 0x210) ? 0x22B : (0x25, 0x167) >= 11 ? (0x232, 2) : (1.8E2, 82.9E1))) == (0x3E < (131, 0x1AA) ? (147.3E1, 100) : (1.3E2, 8.42E2) >= 128.4E1 ? (0xF6, 'o') : (20., 7.10E1) > (9.700E2, 0xFF) ? (129., 34.80E1) : (52.1E1, 83.)) && i4s.charCodeAt(0) == 98)
  27618. break
  27619. };
  27620. var o;
  27621. return "undefined" == typeof e && (e = !0),
  27622. m && ("string" == typeof m ? o = r2w8n[H8n]['getElementById'](m) : "object" == typeof m && y3U.Q1v(1, m.nodeType) && (o = m)),
  27623. o || (o = r2w8n[H8n][i4s]),
  27624. e && o.style && (o.style.overflow = "hidden"),
  27625. o.appendChild(k),
  27626. k;
  27627. },
  27628. removeFromDOM : function (k) {
  27629. k.parentNode && k.parentNode.removeChild(k);
  27630. },
  27631. setTransform : function (k, m, e, o, n, u, q) {
  27632. return k.setTransform(o, u, q, n, m, e),
  27633. k;
  27634. },
  27635. setSmoothingEnabled : function (k, m) {
  27636. return k.imageSmoothingEnabled = m,
  27637. k.mozImageSmoothingEnabled = m,
  27638. k.oImageSmoothingEnabled = m,
  27639. k.webkitImageSmoothingEnabled = m,
  27640. k.msImageSmoothingEnabled = m,
  27641. k;
  27642. },
  27643. getSmoothingEnabled : function (k) {
  27644. return k.imageSmoothingEnabled || k.mozImageSmoothingEnabled || k.oImageSmoothingEnabled || k.webkitImageSmoothingEnabled || k.msImageSmoothingEnabled;
  27645. },
  27646. setImageRenderingCrisp : function (k) {
  27647. return k.style["image-rendering"] = "optimizeSpeed",
  27648. k.style["image-rendering"] = "crisp-edges",
  27649. k.style["image-rendering"] = "-moz-crisp-edges",
  27650. k.style["image-rendering"] = "-webkit-optimize-contrast",
  27651. k.style["image-rendering"] = "optimize-contrast",
  27652. k.style["image-rendering"] = "pixelated",
  27653. k.style.msInterpolationMode = "nearest-neighbor",
  27654. k;
  27655. },
  27656. setImageRenderingBicubic : function (k) {
  27657. return k.style["image-rendering"] = "auto",
  27658. k.style.msInterpolationMode = "bicubic",
  27659. k;
  27660. }
  27661. },
  27662. i.Canvas.getOffset = i.DOM.getOffset,
  27663. i.Canvas.getAspectRatio = i.DOM.getAspectRatio,
  27664. i.RequestAnimationFrame = function (k, m) {
  27665. "undefined" == typeof m && (m = !1),
  27666. this.game = k,
  27667. this.isRunning = !1,
  27668. this.forceSetTimeOut = m;
  27669. for (var e = ["ms", "moz", "webkit", "o"], o = 0; y3U.a6v(o, e.length) && !r2w8n[E8n].requestAnimationFrame; o++)
  27670. r2w8n[E8n].requestAnimationFrame = r2w8n[E8n][e[o] + "RequestAnimationFrame"], r2w8n[E8n].cancelAnimationFrame = r2w8n[E8n][e[o] + "CancelAnimationFrame"];
  27671. this._isSetTimeOut = !1,
  27672. this._onLoop = null,
  27673. this._timeOutID = null;
  27674. },
  27675. i.RequestAnimationFrame.prototype = {
  27676. start : function () {
  27677. this.isRunning = !0;
  27678. var m = this;
  27679. !r2w8n[E8n].requestAnimationFrame || this.forceSetTimeOut ? (this._isSetTimeOut = !0, this._onLoop = function () {
  27680. return m.updateSetTimeout();
  27681. }, this._timeOutID = r2w8n[E8n]['setTimeout'](this._onLoop, 0)) : (this._isSetTimeOut = !1, this._onLoop = function (k) {
  27682. return m.updateRAF(k);
  27683. }, this._timeOutID = r2w8n[E8n].requestAnimationFrame(this._onLoop));
  27684. },
  27685. updateRAF : function (k) {
  27686. this.game.update(Math.floor(k)),
  27687. this._timeOutID = r2w8n[E8n].requestAnimationFrame(this._onLoop);
  27688. },
  27689. updateSetTimeout : function () {
  27690. this.game.update(Date.now()),
  27691. this._timeOutID = r2w8n[E8n]['setTimeout'](this._onLoop, this.game.time.timeToCall);
  27692. },
  27693. stop : function () {
  27694. this._isSetTimeOut ? clearTimeout(this._timeOutID) : r2w8n[E8n].cancelAnimationFrame(this._timeOutID),
  27695. this.isRunning = !1;
  27696. },
  27697. isSetTimeOut : function () {
  27698. return this._isSetTimeOut;
  27699. },
  27700. isRAF : function () {
  27701. return this._isSetTimeOut === !1;
  27702. }
  27703. },
  27704. i.RequestAnimationFrame.prototype.constructor = i.RequestAnimationFrame,
  27705. i.Math = {
  27706. PI2 : y3U.W6v(2, Math.PI),
  27707. fuzzyEqual : function (k, m, e) {
  27708. return "undefined" == typeof e && (e = 1e-4),
  27709. y3U.m6v(Math.abs(k - m), e);
  27710. },
  27711. fuzzyLessThan : function (k, m, e) {
  27712. return "undefined" == typeof e && (e = 1e-4),
  27713. y3U.A6v(m + e, k);
  27714. },
  27715. fuzzyGreaterThan : function (k, m, e) {
  27716. return "undefined" == typeof e && (e = 1e-4),
  27717. y3U.w6v(k, m - e);
  27718. },
  27719. fuzzyCeil : function (k, m) {
  27720. return "undefined" == typeof m && (m = 1e-4),
  27721. Math.ceil(y3U.E6v(k, m));
  27722. },
  27723. fuzzyFloor : function (k, m) {
  27724. return "undefined" == typeof m && (m = 1e-4),
  27725. Math.floor(k + m);
  27726. },
  27727. average : function () {
  27728. for (var k = 0, m = 0; y3U.e6v(m, arguments.length); m++)
  27729. k += +arguments[m];
  27730. return y3U.g6v(k, arguments.length);
  27731. },
  27732. truncate : function (k) {
  27733. return Math.trunc(k);
  27734. },
  27735. shear : function (k) {
  27736. return y3U.r6v(k, 1);
  27737. },
  27738. snapTo : function (k, m, e) {
  27739. return "undefined" == typeof e && (e = 0),
  27740. y3U.i6v(0, m) ? k : (k -= e, k = y3U.u6v(m, Math.round(k / m)), e + k);
  27741. },
  27742. snapToFloor : function (k, m, e) {
  27743. return "undefined" == typeof e && (e = 0),
  27744. y3U.P6v(0, m) ? k : (k -= e, k = y3U.D6v(m, Math.floor(k / m)), e + k);
  27745. },
  27746. snapToCeil : function (k, m, e) {
  27747. return "undefined" == typeof e && (e = 0),
  27748. y3U.Z6v(0, m) ? k : (k -= e, k = y3U.R6v(m, Math.ceil(k / m)), e + k);
  27749. },
  27750. snapToInArray : function (k, m, e) {
  27751. return "undefined" == typeof e && (e = !0),
  27752. e && m.sort(),
  27753. i.ArrayUtils.findClosest(k, m);
  27754. },
  27755. roundTo : function (k, m, e) {
  27756. "undefined" == typeof m && (m = 0),
  27757. "undefined" == typeof e && (e = 10);
  27758. var o = Math.pow(e, -m);
  27759. return y3U.O6v(Math.round(k * o), o);
  27760. },
  27761. floorTo : function (k, m, e) {
  27762. "undefined" == typeof m && (m = 0),
  27763. "undefined" == typeof e && (e = 10);
  27764. var o = Math.pow(e, -m);
  27765. return y3U.V6v(Math.floor(k * o), o);
  27766. },
  27767. ceilTo : function (k, m, e) {
  27768. "undefined" == typeof m && (m = 0),
  27769. "undefined" == typeof e && (e = 10);
  27770. var o = Math.pow(e, -m);
  27771. return y3U.k8v(Math.ceil(k * o), o);
  27772. },
  27773. interpolateFloat : function (k, m, e) {
  27774. return y3U.G8v((m - k), e) + k;
  27775. },
  27776. angleBetween : function (k, m, e, o) {
  27777. return Math.atan2(y3U.N8v(o, m), y3U.L8v(e, k));
  27778. },
  27779. angleBetweenY : function (k, m, e, o) {
  27780. return Math.atan2(y3U.z8v(e, k), y3U.J8v(o, m));
  27781. },
  27782. angleBetweenPoints : function (k, m) {
  27783. return Math.atan2(y3U.H8v(m.y, k.y), y3U.h8v(m.x, k.x));
  27784. },
  27785. angleBetweenPointsY : function (k, m) {
  27786. return Math.atan2(y3U.F8v(m.x, k.x), y3U.M8v(m.y, k.y));
  27787. },
  27788. reverseAngle : function (k) {
  27789. return this.normalizeAngle(k + Math.PI, !0);
  27790. },
  27791. normalizeAngle : function (k) {
  27792. return k %= y3U.n8v(2, Math.PI),
  27793. y3U.f8v(k, 0) ? k : k + y3U.K8v(2, Math.PI);
  27794. },
  27795. normalizeLatitude : function (k) {
  27796. return i.Math.clamp(k, -90, 90);
  27797. },
  27798. normalizeLongitude : function (k) {
  27799. return i.Math.wrap(k, -180, 180);
  27800. },
  27801. chanceRoll : function (k) {
  27802. return i.Utils.chanceRoll(k);
  27803. },
  27804. numberArray : function (k, m) {
  27805. return i.ArrayUtils.numberArray(k, m);
  27806. },
  27807. numberArrayStep : function (k, m, e) {
  27808. return i.ArrayUtils.numberArrayStep(k, m, e);
  27809. },
  27810. maxAdd : function (k, m, e) {
  27811. return Math.min(k + m, e);
  27812. },
  27813. minSub : function (k, m, e) {
  27814. return Math.max(y3U.B8v(k, m), e);
  27815. },
  27816. wrap : function (k, m, e) {
  27817. var o = y3U.l8v(e, m);
  27818. if (y3U.X8v(0, o))
  27819. return 0;
  27820. var n = y3U.Y8v((k - m), o);
  27821. return y3U.U0A(0, n) && (n += o),
  27822. n + m;
  27823. },
  27824. wrapValue : function (k, m, e) {
  27825. var o;
  27826. return k = Math.abs(k),
  27827. m = Math.abs(m),
  27828. e = Math.abs(e),
  27829. o = y3U.T0A((k + m), e);
  27830. },
  27831. limitValue : function (k, m, e) {
  27832. return i.Math.clamp(k, m, e);
  27833. },
  27834. randomSign : function () {
  27835. return i.Utils.randomChoice(-1, 1);
  27836. },
  27837. isOdd : function (k) {
  27838. return y3U.S0A(1, k);
  27839. },
  27840. isEven : function (k) {
  27841. return !(y3U.I0A(1, k));
  27842. },
  27843. min : function () {
  27844. if (y3U.C0A(1, arguments.length) && "object" == typeof arguments[0])
  27845. var k = arguments[0];
  27846. else
  27847. var k = arguments;
  27848. for (var m = 1, e = 0, o = k.length; y3U.v0A(o, m); m++)
  27849. y3U.t0A(k[m], k[e]) && (e = m);
  27850. return k[e];
  27851. },
  27852. max : function () {
  27853. if (y3U.y0A(1, arguments.length) && "object" == typeof arguments[0])
  27854. var k = arguments[0];
  27855. else
  27856. var k = arguments;
  27857. for (var m = 1, e = 0, o = k.length; y3U.o0A(o, m); m++)
  27858. y3U.x0A(k[m], k[e]) && (e = m);
  27859. return k[e];
  27860. },
  27861. minProperty : function (k) {
  27862. if (y3U.p0A(2, arguments.length) && "object" == typeof arguments[1])
  27863. var m = arguments[1];
  27864. else
  27865. var m = arguments.slice(1);
  27866. for (var e = 1, o = 0, n = m.length; y3U.q0A(n, e); e++)
  27867. y3U.b0A(m[e][k], m[o][k]) && (o = e);
  27868. return m[o][k];
  27869. },
  27870. maxProperty : function (k) {
  27871. if (y3U.j0A(2, arguments.length) && "object" == typeof arguments[1])
  27872. var m = arguments[1];
  27873. else
  27874. var m = arguments.slice(1);
  27875. for (var e = 1, o = 0, n = m.length; y3U.d0A(n, e); e++)
  27876. y3U.c0A(m[e][k], m[o][k]) && (o = e);
  27877. return m[o][k];
  27878. },
  27879. wrapAngle : function (k, m) {
  27880. return m ? this.wrap(k, -Math.PI, Math.PI) : this.wrap(k, -180, 180);
  27881. },
  27882. angleLimit : function (k, m, e) {
  27883. var o = k;
  27884. return y3U.s0A(k, e) ? o = e : y3U.Q0A(m, k) && (o = m),
  27885. o;
  27886. },
  27887. linearInterpolation : function (k, m) {
  27888. var e = y3U.a7A(k.length, 1),
  27889. o = y3U.W7A(e, m),
  27890. n = Math.floor(o);
  27891. return y3U.m7A(0, m) ? this.linear(k[0], k[1], o) : y3U.A7A(m, 1) ? this.linear(k[e], k[y3U.w7A(e, 1)], y3U.E7A(e, o)) : this.linear(k[n], k[y3U.e7A(n + 1, e) ? e : n + 1], y3U.g7A(o, n));
  27892. },
  27893. bezierInterpolation : function (k, m) {
  27894. for (var e = 0, o = y3U.r7A(k.length, 1), n = 0; y3U.i7A(o, n); n++)
  27895. e += y3U.u7A(Math.pow(1 - m, o - n), Math.pow(m, n), k[n], this.bernstein(o, n));
  27896. return e;
  27897. },
  27898. catmullRomInterpolation : function (k, m) {
  27899. var e = y3U.K7A(k.length, 1),
  27900. o = y3U.B7A(e, m),
  27901. n = Math.floor(o);
  27902. return y3U.l7A(k[0], k[e]) ? (y3U.X7A(0, m) && (n = Math.floor(o = y3U.Y7A(e, (1 + m)))), this.catmullRom(k[y3U.U4A((n - 1 + e), e)], k[n], k[y3U.T4A((n + 1), e)], k[y3U.S4A((n + 2), e)], y3U.I4A(o, n))) : y3U.C4A(0, m) ? k[0] - (this.catmullRom(k[0], k[0], k[1], k[1], -o) - k[0]) : y3U.v4A(m, 1) ? y3U.t4A(k[e], (this.catmullRom(k[e], k[e], k[e - 1], k[e - 1], o - e) - k[e])) : this.catmullRom(k[n ? y3U.y4A(n, 1) : 0], k[n], k[y3U.o4A(n + 1, e) ? e : n + 1], k[y3U.x4A(n + 2, e) ? e : n + 2], y3U.p4A(o, n));
  27903. },
  27904. linear : function (k, m, e) {
  27905. return y3U.q4A((m - k), e) + k;
  27906. },
  27907. bernstein : function (k, m) {
  27908. return y3U.b4A(this.factorial(k), this.factorial(m), this.factorial(k - m));
  27909. },
  27910. factorial : function (k) {
  27911. if (y3U.B4A(0, k))
  27912. return 1;
  27913. for (var m = k; --k; )
  27914. m *= k;
  27915. return m;
  27916. },
  27917. catmullRom : function (k, m, e, o, n) {
  27918. var u = y3U.l4A(.5, (e - k)),
  27919. q = y3U.X4A(.5, (o - m)),
  27920. f = y3U.Y4A(n, n),
  27921. j = y3U.U3A(n, f);
  27922. return y3U.T3A((2 * m - 2 * e + u + q), j) + (-3 * m + y3U.S3A(3, e) - y3U.I3A(2, u) - q) * f + y3U.C3A(u, n) + m;
  27923. },
  27924. difference : function (k, m) {
  27925. return Math.abs(y3U.v3A(k, m));
  27926. },
  27927. getRandom : function (k, m, e) {
  27928. return i.ArrayUtils.getRandomItem(k, m, e);
  27929. },
  27930. removeRandom : function (k, m, e) {
  27931. return i.ArrayUtils.removeRandomItem(k, m, e);
  27932. },
  27933. floor : function (k) {
  27934. return Math.trunc(k);
  27935. },
  27936. ceil : function (k) {
  27937. return i.Math.roundAwayFromZero(k);
  27938. },
  27939. roundAwayFromZero : function (k) {
  27940. return y3U.t3A(k, 0) ? Math.ceil(k) : Math.floor(k);
  27941. },
  27942. sinCosGenerator : function (k, m, e, o) {
  27943. "undefined" == typeof m && (m = 1),
  27944. "undefined" == typeof e && (e = 1),
  27945. "undefined" == typeof o && (o = 1);
  27946. for (var n = m, u = e, q = y3U.y3A(o, Math.PI, k), f = [], j = [], U0 = 0; y3U.F3A(k, U0); U0++)
  27947. u -= y3U.M3A(n, q), n += y3U.n3A(u, q), f[U0] = u, j[U0] = n;
  27948. return {
  27949. sin : j,
  27950. cos : f,
  27951. length : k
  27952. };
  27953. },
  27954. shift : function (k) {
  27955. var m = k.shift();
  27956. return k.push(m),
  27957. m;
  27958. },
  27959. shuffleArray : function (k) {
  27960. return i.ArrayUtils.shuffle(k);
  27961. },
  27962. distance : function (k, m, e, o) {
  27963. var n = y3U.f3A(k, e),
  27964. u = y3U.K3A(m, o);
  27965. return Math.sqrt(y3U.B3A(n, n) + y3U.l3A(u, u));
  27966. },
  27967. distancePow : function (k, m, e, o, n) {
  27968. return "undefined" == typeof n && (n = 2),
  27969. Math.sqrt(Math.pow(y3U.X3A(e, k), n) + Math.pow(y3U.Y3A(o, m), n));
  27970. },
  27971. distanceRounded : function (k, m, e, o) {
  27972. return Math.round(i.Math.distance(k, m, e, o));
  27973. },
  27974. clamp : function (k, m, e) {
  27975. return y3U.U9A(m, k) ? m : y3U.T9A(k, e) ? e : k;
  27976. },
  27977. clampBottom : function (k, m) {
  27978. return y3U.S9A(m, k) ? m : k;
  27979. },
  27980. within : function (k, m, e) {
  27981. return y3U.I9A(Math.abs(k - m), e);
  27982. },
  27983. mapLinear : function (k, m, e, o, n) {
  27984. return o + y3U.C9A((k - m), (n - o), (e - m));
  27985. },
  27986. smoothstep : function (k, m, e) {
  27987. return k = Math.max(0, Math.min(1, y3U.J9A((k - m), (e - m)))),
  27988. y3U.H9A(k, k, (3 - 2 * k));
  27989. },
  27990. smootherstep : function (k, m, e) {
  27991. return k = Math.max(0, Math.min(1, y3U.g9A((k - m), (e - m)))),
  27992. y3U.r9A(k, k, k, (k * (6 * k - 15) + 10));
  27993. },
  27994. sign : function (k) {
  27995. return y3U.n9A(0, k) ? -1 : y3U.f9A(k, 0) ? 1 : 0;
  27996. },
  27997. percent : function (k, m, e) {
  27998. return "undefined" == typeof e && (e = 0),
  27999. y3U.K9A(k, m) || y3U.B9A(e, m) ? 1 : y3U.l9A(e, k) || y3U.X9A(e, k) ? 0 : y3U.Y9A((k - e), m);
  28000. }
  28001. };
  28002. var u0 = y3U.U5A(Math.PI, 180),
  28003. n0 = y3U.T5A(180, Math.PI);
  28004. i.Math.degToRad = function (k) {
  28005. return y3U.S5A(k, u0);
  28006. },
  28007. i.Math.radToDeg = function (k) {
  28008. return y3U.I5A(k, n0);
  28009. },
  28010. i.RandomDataGenerator = function (k) {
  28011. "undefined" == typeof k && (k = []),
  28012. this.c = 1,
  28013. this.s0 = 0,
  28014. this.s1 = 0,
  28015. this.s2 = 0,
  28016. this.sow(k);
  28017. },
  28018. i.RandomDataGenerator.prototype = {
  28019. rnd : function () {
  28020. var k = y3U.C5A(2091639, this.s0) + y3U.v5A(2.3283064365386963e-10, this.c);
  28021. return this.c = y3U.t5A(0, k),
  28022. this.s0 = this.s1,
  28023. this.s1 = this.s2,
  28024. this.s2 = y3U.y5A(k, this.c),
  28025. this.s2;
  28026. },
  28027. sow : function (k) {
  28028. if (this.s0 = this.hash(" "), this.s1 = this.hash(this.s0), this.s2 = this.hash(this.s1), this.c = 1, k)
  28029. for (var m = 0; y3U.o5A(m, k.length) && y3U.x5A(null, k[m]); m++) {
  28030. var e = k[m];
  28031. this.s0 -= this.hash(e),
  28032. this.s0 += ~~(y3U.p5A(this.s0, 0)),
  28033. this.s1 -= this.hash(e),
  28034. this.s1 += ~~(y3U.q5A(this.s1, 0)),
  28035. this.s2 -= this.hash(e),
  28036. this.s2 += ~~(y3U.b5A(this.s2, 0));
  28037. }
  28038. },
  28039. hash : function (k) {
  28040. var m,
  28041. e,
  28042. o;
  28043. for (o = 4022871197, k = k.toString(), e = 0; y3U.j5A(e, k.length); e++)
  28044. o += k.charCodeAt(e), m = y3U.d5A(.02519603282416938, o), o = y3U.c5A(m, 0), m -= o, m *= o, o = y3U.s5A(m, 0), m -= o, o += y3U.Q5A(4294967296, m);
  28045. return y3U.a2A(2.3283064365386963e-10, (o >>> 0));
  28046. },
  28047. integer : function () {
  28048. return y3U.W2A(4294967296, this.rnd.apply(this));
  28049. },
  28050. frac : function () {
  28051. return this.rnd.apply(this) + y3U.m2A(1.1102230246251565e-16, (2097152 * this.rnd.apply(this) | 0));
  28052. },
  28053. real : function () {
  28054. return this.integer() + this.frac();
  28055. },
  28056. integerInRange : function (k, m) {
  28057. return Math.floor(this.realInRange(0, y3U.A2A(m, k, 1)) + k);
  28058. },
  28059. between : function (k, m) {
  28060. return this.integerInRange(k, m);
  28061. },
  28062. realInRange : function (k, m) {
  28063. return y3U.v2A(this.frac(), (m - k)) + k;
  28064. },
  28065. normal : function () {
  28066. return y3U.t2A(1, 2 * this.frac());
  28067. },
  28068. uuid : function () {
  28069. var k = "",
  28070. m = "";
  28071. for (m = k = ""; y3U.y2A(k++, 36); m += ~k % 5 | y3U.o2A(3 * k, 4) ? (y3U.x2A(15, k) ? y3U.p2A(8, this.frac() * (20^k ? 16 : 4)) : 4).toString(16) : "-");
  28072. return m;
  28073. },
  28074. pick : function (k) {
  28075. return k[this.integerInRange(0, y3U.q2A(k.length, 1))];
  28076. },
  28077. weightedPick : function (k) {
  28078. return k[~~(y3U.b2A(Math.pow(this.frac(), 2), (k.length - 1)))];
  28079. },
  28080. timestamp : function (k, m) {
  28081. return this.realInRange(k || 9466848e5, m || 1577862e6);
  28082. },
  28083. angle : function () {
  28084. return this.integerInRange(-180, 180);
  28085. }
  28086. },
  28087. i.RandomDataGenerator.prototype.constructor = i.RandomDataGenerator,
  28088. i.QuadTree = function (k, m, e, o, n, u, q) {
  28089. this.maxObjects = 10,
  28090. this.maxLevels = 4,
  28091. this.level = 0,
  28092. this.bounds = {},
  28093. this.objects = [],
  28094. this.nodes = [],
  28095. this._empty = [],
  28096. this.reset(k, m, e, o, n, u, q);
  28097. },
  28098. i.QuadTree.prototype = {
  28099. reset : function (k, m, e, o, n, u, q) {
  28100. this.maxObjects = n || 10,
  28101. this.maxLevels = u || 4,
  28102. this.level = q || 0,
  28103. this.bounds = {
  28104. x : Math.round(k),
  28105. y : Math.round(m),
  28106. width : e,
  28107. height : o,
  28108. subWidth : Math.floor(y3U.j2A(e, 2)),
  28109. subHeight : Math.floor(y3U.d2A(o, 2)),
  28110. right : Math.round(k) + Math.floor(y3U.c2A(e, 2)),
  28111. bottom : Math.round(m) + Math.floor(y3U.s2A(o, 2))
  28112. },
  28113. this.objects.length = 0,
  28114. this.nodes.length = 0;
  28115. },
  28116. populate : function (k) {
  28117. k.forEach(this.populateHandler, this, !0);
  28118. },
  28119. populateHandler : function (k) {
  28120. k.body && k.exists && this.insert(k.body);
  28121. },
  28122. split : function () {
  28123. this.nodes[0] = new i.QuadTree(this.bounds.right, this.bounds.y, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level + 1),
  28124. this.nodes[1] = new i.QuadTree(this.bounds.x, this.bounds.y, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level + 1),
  28125. this.nodes[2] = new i.QuadTree(this.bounds.x, this.bounds.bottom, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level + 1),
  28126. this.nodes[3] = new i.QuadTree(this.bounds.right, this.bounds.bottom, this.bounds.subWidth, this.bounds.subHeight, this.maxObjects, this.maxLevels, this.level + 1);
  28127. },
  28128. insert : function (k) {
  28129. var m,
  28130. e = 0;
  28131. if (y3U.Q2A(null, this.nodes[0]) && (m = this.getIndex(k), -1 !== m))
  28132. return void this.nodes[m].insert(k);
  28133. if (this.objects.push(k), y3U.a1A(this.objects.length, this.maxObjects) && y3U.W1A(this.level, this.maxLevels))
  28134. for (y3U.m1A(null, this.nodes[0]) && this.split(); y3U.A1A(e, this.objects.length); )
  28135. m = this.getIndex(this.objects[e]), -1 !== m ? this.nodes[m].insert(this.objects.splice(e, 1)[0]) : e++;
  28136. },
  28137. getIndex : function (k) {
  28138. var m = -1;
  28139. return y3U.w1A(k.x, this.bounds.right) && y3U.E1A(k.right, this.bounds.right) ? y3U.e1A(k.y, this.bounds.bottom) && y3U.g1A(k.bottom, this.bounds.bottom) ? m = 1 : y3U.r1A(k.y, this.bounds.bottom) && (m = 2) : y3U.i1A(k.x, this.bounds.right) && (y3U.u1A(k.y, this.bounds.bottom) && y3U.P1A(k.bottom, this.bounds.bottom) ? m = 0 : y3U.D1A(k.y, this.bounds.bottom) && (m = 3)),
  28140. m;
  28141. },
  28142. retrieve : function (k) {
  28143. if (y3U.Z1A(k, i.Rectangle))
  28144. var m = this.objects, e = this.getIndex(k);
  28145. else {
  28146. if (!k.body)
  28147. return this._empty;
  28148. var m = this.objects,
  28149. e = this.getIndex(k.body);
  28150. }
  28151. return this.nodes[0] && (-1 !== e ? m = m.concat(this.nodes[e].retrieve(k)) : (m = m.concat(this.nodes[0].retrieve(k)), m = m.concat(this.nodes[1].retrieve(k)), m = m.concat(this.nodes[2].retrieve(k)), m = m.concat(this.nodes[3].retrieve(k)))),
  28152. m;
  28153. },
  28154. clear : function () {
  28155. this.objects.length = 0;
  28156. for (var k = this.nodes.length; k--; )
  28157. this.nodes[k].clear(), this.nodes.splice(k, 1);
  28158. this.nodes.length = 0;
  28159. }
  28160. },
  28161. i.QuadTree.prototype.constructor = i.QuadTree,
  28162. i.Net = function (k) {
  28163. this.game = k;
  28164. },
  28165. i.Net.prototype = {
  28166. getHostName : function () {
  28167. return r2w8n[E8n]['location'] && r2w8n[E8n]['location']['hostname'] ? r2w8n[E8n]['location']['hostname'] : null;
  28168. },
  28169. checkDomainName : function (k) {
  28170. return -1 !== r2w8n[E8n]['location']['hostname'].indexOf(k);
  28171. },
  28172. updateQueryString : function (m, e, o, n) {
  28173. var u = function (k) {
  28174. f = k;
  28175. },
  28176. q = function () {
  28177. f = "undefined" != typeof e && y3U.R1A(null, e) ? n.replace(j, "$1" + m + "=" + e + "$2$3") : n.replace(j, "$1$3").replace(/(&|\?)$/, "");
  28178. };
  28179. "undefined" == typeof o && (o = !1),
  28180. ("undefined" == typeof n || y3U.O1A("", n)) && (n = r2w8n[E8n]['location']['href']);
  28181. var f = "",
  28182. j = new RegExp("([?|&])" + m + "=.*?(&|#|$)(.*)", "gi");
  28183. if (j.test(n))
  28184. q();
  28185. else if ("undefined" != typeof e && y3U.V1A(null, e)) {
  28186. var U0 = -1 !== n.indexOf("?") ? "&" : "?",
  28187. k0 = n.split("#");
  28188. n = k0[0] + U0 + m + "=" + e,
  28189. k0[1] && (n += "#" + k0[1]),
  28190. f = n;
  28191. } else
  28192. u(n);
  28193. return o ? void(r2w8n[E8n]['location']['href'] = f) : f;
  28194. },
  28195. getQueryString : function (k) {
  28196. "undefined" == typeof k && (k = "");
  28197. var m = {},
  28198. e = r2w8n['location']['search'].substring(1).split("&");
  28199. for (var o in e) {
  28200. var n = e[o].split("=");
  28201. if (y3U.k6A(n.length, 1)) {
  28202. if (k && y3U.G6A(k, this.decodeURI(n[0])))
  28203. return this.decodeURI(n[1]);
  28204. m[this.decodeURI(n[0])] = this.decodeURI(n[1]);
  28205. }
  28206. }
  28207. return m;
  28208. },
  28209. decodeURI : function (k) {
  28210. return decodeURIComponent(k.replace(/\+/g, " "));
  28211. }
  28212. },
  28213. i.Net.prototype.constructor = i.Net,
  28214. i.TweenManager = function (k) {
  28215. this.game = k,
  28216. this._tweens = [],
  28217. this._add = [],
  28218. this.easeMap = {
  28219. Power0 : i.Easing.Power0,
  28220. Power1 : i.Easing.Power1,
  28221. Power2 : i.Easing.Power2,
  28222. Power3 : i.Easing.Power3,
  28223. Power4 : i.Easing.Power4,
  28224. Linear : i.Easing.Linear.None,
  28225. Quad : i.Easing.Quadratic.Out,
  28226. Cubic : i.Easing.Cubic.Out,
  28227. Quart : i.Easing.Quartic.Out,
  28228. Quint : i.Easing.Quintic.Out,
  28229. Sine : i.Easing.Sinusoidal.Out,
  28230. Expo : i.Easing.Exponential.Out,
  28231. Circ : i.Easing.Circular.Out,
  28232. Elastic : i.Easing.Elastic.Out,
  28233. Back : i.Easing.Back.Out,
  28234. Bounce : i.Easing.Bounce.Out,
  28235. "Quad.easeIn" : i.Easing.Quadratic.In,
  28236. "Cubic.easeIn" : i.Easing.Cubic.In,
  28237. "Quart.easeIn" : i.Easing.Quartic.In,
  28238. "Quint.easeIn" : i.Easing.Quintic.In,
  28239. "Sine.easeIn" : i.Easing.Sinusoidal.In,
  28240. "Expo.easeIn" : i.Easing.Exponential.In,
  28241. "Circ.easeIn" : i.Easing.Circular.In,
  28242. "Elastic.easeIn" : i.Easing.Elastic.In,
  28243. "Back.easeIn" : i.Easing.Back.In,
  28244. "Bounce.easeIn" : i.Easing.Bounce.In,
  28245. "Quad.easeOut" : i.Easing.Quadratic.Out,
  28246. "Cubic.easeOut" : i.Easing.Cubic.Out,
  28247. "Quart.easeOut" : i.Easing.Quartic.Out,
  28248. "Quint.easeOut" : i.Easing.Quintic.Out,
  28249. "Sine.easeOut" : i.Easing.Sinusoidal.Out,
  28250. "Expo.easeOut" : i.Easing.Exponential.Out,
  28251. "Circ.easeOut" : i.Easing.Circular.Out,
  28252. "Elastic.easeOut" : i.Easing.Elastic.Out,
  28253. "Back.easeOut" : i.Easing.Back.Out,
  28254. "Bounce.easeOut" : i.Easing.Bounce.Out,
  28255. "Quad.easeInOut" : i.Easing.Quadratic.InOut,
  28256. "Cubic.easeInOut" : i.Easing.Cubic.InOut,
  28257. "Quart.easeInOut" : i.Easing.Quartic.InOut,
  28258. "Quint.easeInOut" : i.Easing.Quintic.InOut,
  28259. "Sine.easeInOut" : i.Easing.Sinusoidal.InOut,
  28260. "Expo.easeInOut" : i.Easing.Exponential.InOut,
  28261. "Circ.easeInOut" : i.Easing.Circular.InOut,
  28262. "Elastic.easeInOut" : i.Easing.Elastic.InOut,
  28263. "Back.easeInOut" : i.Easing.Back.InOut,
  28264. "Bounce.easeInOut" : i.Easing.Bounce.InOut
  28265. },
  28266. this.game.onPause.add(this._pauseAll, this),
  28267. this.game.onResume.add(this._resumeAll, this);
  28268. },
  28269. i.TweenManager.prototype = {
  28270. getAll : function () {
  28271. return this._tweens;
  28272. },
  28273. removeAll : function () {
  28274. for (var k = 0; y3U.N6A(k, this._tweens.length); k++)
  28275. this._tweens[k].pendingDelete = !0;
  28276. this._add = [];
  28277. },
  28278. removeFrom : function (k, m) {
  28279. "undefined" == typeof m && (m = !0);
  28280. var e,
  28281. o;
  28282. if (Array.isArray(k))
  28283. for (e = 0, o = k.length; y3U.L6A(o, e); e++)
  28284. this.removeFrom(k[e]);
  28285. else if (y3U.z6A(k.type, i.GROUP) && m)
  28286. for (var e = 0, o = k.children.length; y3U.J6A(o, e); e++)
  28287. this.removeFrom(k.children[e]);
  28288. else {
  28289. for (e = 0, o = this._tweens.length; y3U.H6A(o, e); e++)
  28290. y3U.h6A(k, this._tweens[e].target) && this.remove(this._tweens[e]);
  28291. for (e = 0, o = this._add.length; y3U.F6A(o, e); e++)
  28292. y3U.M6A(k, this._add[e].target) && this.remove(this._add[e]);
  28293. }
  28294. },
  28295. add : function (k) {
  28296. k._manager = this,
  28297. this._add.push(k);
  28298. },
  28299. create : function (k) {
  28300. return new i.Tween(k, this.game, this);
  28301. },
  28302. remove : function (k) {
  28303. var m = this._tweens.indexOf(k);
  28304. -1 !== m ? this._tweens[m].pendingDelete = !0 : (m = this._add.indexOf(k), -1 !== m && (this._add[m].pendingDelete = !0));
  28305. },
  28306. update : function () {
  28307. var k = this._add.length,
  28308. m = this._tweens.length;
  28309. if (y3U.n6A(0, m) && y3U.f6A(0, k))
  28310. return !1;
  28311. for (var e = 0; y3U.K6A(m, e); )
  28312. this._tweens[e].update(this.game.time.time) ? e++ : (this._tweens.splice(e, 1), m--);
  28313. return y3U.B6A(k, 0) && (this._tweens = this._tweens.concat(this._add), this._add.length = 0),
  28314. !0;
  28315. },
  28316. isTweening : function (m) {
  28317. return this._tweens.some(function (k) {
  28318. return y3U.l6A(k.target, m);
  28319. });
  28320. },
  28321. _pauseAll : function () {
  28322. for (var k = y3U.X6A(this._tweens.length, 1); y3U.Y6A(k, 0); k--)
  28323. this._tweens[k]._pause();
  28324. },
  28325. _resumeAll : function () {
  28326. for (var k = y3U.U8A(this._tweens.length, 1); y3U.T8A(k, 0); k--)
  28327. this._tweens[k]._resume();
  28328. },
  28329. pauseAll : function () {
  28330. for (var k = y3U.S8A(this._tweens.length, 1); y3U.I8A(k, 0); k--)
  28331. this._tweens[k].pause();
  28332. },
  28333. resumeAll : function () {
  28334. for (var k = y3U.C8A(this._tweens.length, 1); y3U.v8A(k, 0); k--)
  28335. this._tweens[k].resume(!0);
  28336. }
  28337. },
  28338. i.TweenManager.prototype.constructor = i.TweenManager,
  28339. i.Tween = function (k, m, e) {
  28340. this.game = m,
  28341. this.target = k,
  28342. this.manager = e,
  28343. this.timeline = [],
  28344. this.reverse = !1,
  28345. this.timeScale = 1,
  28346. this.repeatCounter = 0,
  28347. this.repeatDelay = 0,
  28348. this.pendingDelete = !1,
  28349. this.onStart = new i.Signal,
  28350. this.onLoop = new i.Signal,
  28351. this.onRepeat = new i.Signal,
  28352. this.onChildComplete = new i.Signal,
  28353. this.onComplete = new i.Signal,
  28354. this.isRunning = !1,
  28355. this.current = 0,
  28356. this.properties = {},
  28357. this.chainedTween = null,
  28358. this.isPaused = !1,
  28359. this._onUpdateCallback = null,
  28360. this._onUpdateCallbackContext = null,
  28361. this._pausedTime = 0,
  28362. this._codePaused = !1;
  28363. },
  28364. i.Tween.prototype = {
  28365. to : function (k, m, e, o, n, u, q) {
  28366. return "undefined" == typeof m && (m = 1e3),
  28367. "undefined" == typeof e && (e = i.Easing.Default),
  28368. "undefined" == typeof o && (o = !1),
  28369. "undefined" == typeof n && (n = 0),
  28370. "undefined" == typeof u && (u = 0),
  28371. "undefined" == typeof q && (q = !1),
  28372. "string" == typeof e && this.manager.easeMap[e] && (e = this.manager.easeMap[e]),
  28373. this.isRunning ? (console.warn("Phaser.Tween.to cannot be called after Tween.start"), this) : (this.timeline.push(new i.TweenData(this).to(k, m, e, n, u, q)), o && this.start(), this);
  28374. },
  28375. from : function (k, m, e, o, n, u, q) {
  28376. return "undefined" == typeof m && (m = 1e3),
  28377. "undefined" == typeof e && (e = i.Easing.Default),
  28378. "undefined" == typeof o && (o = !1),
  28379. "undefined" == typeof n && (n = 0),
  28380. "undefined" == typeof u && (u = 0),
  28381. "undefined" == typeof q && (q = !1),
  28382. "string" == typeof e && this.manager.easeMap[e] && (e = this.manager.easeMap[e]),
  28383. this.isRunning ? (console.warn("Phaser.Tween.from cannot be called after Tween.start"), this) : (this.timeline.push(new i.TweenData(this).from(k, m, e, n, u, q)), o && this.start(), this);
  28384. },
  28385. start : function (k) {
  28386. if ("undefined" == typeof k && (k = 0), y3U.t8A(null, this.game) || y3U.y8A(null, this.target) || y3U.o8A(0, this.timeline.length) || this.isRunning)
  28387. return this;
  28388. for (var m = 0; y3U.x8A(m, this.timeline.length); m++)
  28389. for (var e in this.timeline[m].vEnd)
  28390. this.properties[e] = this.target[e] || 0, Array.isArray(this.properties[e]) || (this.properties[e] *= 1);
  28391. for (var m = 0; y3U.p8A(m, this.timeline.length); m++)
  28392. this.timeline[m].loadValues();
  28393. return this.manager.add(this),
  28394. this.isRunning = !0,
  28395. (y3U.q8A(0, k) || y3U.b8A(k, this.timeline.length - 1)) && (k = 0),
  28396. this.current = k,
  28397. this.timeline[this.current].start(),
  28398. this.onStart.dispatch(this.target, this),
  28399. this;
  28400. },
  28401. stop : function (k) {
  28402. return "undefined" == typeof k && (k = !1),
  28403. this.isRunning = !1,
  28404. this._onUpdateCallback = null,
  28405. this._onUpdateCallbackContext = null,
  28406. k && (this.onComplete.dispatch(this.target, this), this.chainedTween && this.chainedTween.start()),
  28407. this.manager.remove(this),
  28408. this;
  28409. },
  28410. delay : function (k, m) {
  28411. if (y3U.j8A(0, this.timeline.length))
  28412. return this;
  28413. if ("undefined" == typeof m && (m = 0), -1 === m)
  28414. for (var e = 0; y3U.d8A(e, this.timeline.length); e++)
  28415. this.timeline[e].delay = k;
  28416. else
  28417. this.timeline[m].delay = k;
  28418. return this;
  28419. },
  28420. repeat : function (k, m) {
  28421. if (y3U.c8A(0, this.timeline.length))
  28422. return this;
  28423. if ("undefined" == typeof m && (m = 0), -1 === m)
  28424. for (var e = 0; y3U.s8A(e, this.timeline.length); e++)
  28425. this.timeline[e].repeatCounter = k;
  28426. else
  28427. this.timeline[m].repeatCounter = k;
  28428. return this;
  28429. },
  28430. yoyo : function (k, m) {
  28431. if (y3U.Q8A(0, this.timeline.length))
  28432. return this;
  28433. if ("undefined" == typeof m && (m = 0), -1 === m)
  28434. for (var e = 0; y3U.a0B(e, this.timeline.length); e++)
  28435. this.timeline[e].yoyo = k;
  28436. else
  28437. this.timeline[m].yoyo = k;
  28438. return this;
  28439. },
  28440. easing : function (k, m) {
  28441. if ("undefined" == typeof m && (m = 0), "string" == typeof k && this.manager.easeMap[k] && (k = this.manager.easeMap[k]), -1 === m)
  28442. for (var e = 0; y3U.W0B(e, this.timeline.length); e++)
  28443. this.timeline[e].easingFunction = k;
  28444. else
  28445. this.timeline[m].easingFunction = k;
  28446. return this;
  28447. },
  28448. interpolation : function (k, m) {
  28449. if ("undefined" == typeof m && (m = 0), -1 === m)
  28450. for (var e = 0; y3U.m0B(e, this.timeline.length); e++)
  28451. this.timeline[e].interpolationFunction = k;
  28452. else
  28453. this.timeline[m].interpolationFunction = k;
  28454. return this;
  28455. },
  28456. repeatAll : function (k) {
  28457. return "undefined" == typeof k && (k = 0),
  28458. this.repeatCounter = k,
  28459. this;
  28460. },
  28461. chain : function () {
  28462. for (var k = arguments.length; k--; )
  28463. y3U.A0B(k, 0) ? arguments[y3U.w0B(k, 1)].chainedTween = arguments[k] : this.chainedTween = arguments[k];
  28464. return this;
  28465. },
  28466. loop : function (k) {
  28467. return "undefined" == typeof k && (k = !0),
  28468. k ? this.repeatAll(-1) : this.repeatCounter = 0,
  28469. this;
  28470. },
  28471. onUpdateCallback : function (k, m) {
  28472. return this._onUpdateCallback = k,
  28473. this._onUpdateCallbackContext = m,
  28474. this;
  28475. },
  28476. pause : function () {
  28477. this.isPaused = !0,
  28478. this._codePaused = !0,
  28479. this._pausedTime = this.game.time.time;
  28480. },
  28481. _pause : function () {
  28482. this._codePaused || (this.isPaused = !0, this._pausedTime = this.game.time.time);
  28483. },
  28484. resume : function () {
  28485. if (this.isPaused) {
  28486. this.isPaused = !1,
  28487. this._codePaused = !1;
  28488. for (var k = 0; y3U.E0B(k, this.timeline.length); k++)
  28489. this.timeline[k].isRunning || (this.timeline[k].startTime += y3U.e0B(this.game.time.time, this._pausedTime));
  28490. }
  28491. },
  28492. _resume : function () {
  28493. this._codePaused || this.resume();
  28494. },
  28495. update : function (k) {
  28496. if (this.pendingDelete)
  28497. return !1;
  28498. if (this.isPaused)
  28499. return !0;
  28500. var m = this.timeline[this.current].update(k);
  28501. if (y3U.g0B(m, i.TweenData.PENDING))
  28502. return !0;
  28503. if (y3U.r0B(m, i.TweenData.RUNNING))
  28504. return y3U.i0B(null, this._onUpdateCallback) && this._onUpdateCallback.call(this._onUpdateCallbackContext, this, this.timeline[this.current].value, this.timeline[this.current]), this.isRunning;
  28505. if (y3U.u0B(m, i.TweenData.LOOPED))
  28506. return this.onLoop.dispatch(this.target, this), !0;
  28507. if (y3U.P0B(m, i.TweenData.COMPLETE)) {
  28508. var e = !1;
  28509. return this.reverse ? (this.current--, y3U.D0B(this.current, 0) && (this.current = y3U.Z0B(this.timeline.length, 1), e = !0)) : (this.current++, y3U.R0B(this.current, this.timeline.length) && (this.current = 0, e = !0)),
  28510. e ? -1 === this.repeatCounter ? (this.timeline[this.current].start(), this.onRepeat.dispatch(this.target, this), !0) : y3U.O0B(this.repeatCounter, 0) ? (this.repeatCounter--, this.timeline[this.current].start(), this.onRepeat.dispatch(this.target, this), !0) : (this.isRunning = !1, this.onComplete.dispatch(this.target, this), this.chainedTween && this.chainedTween.start(), !1) : (this.onChildComplete.dispatch(this.target, this), this.timeline[this.current].start(), !0);
  28511. }
  28512. },
  28513. generateData : function (k, m) {
  28514. if (y3U.V0B(null, this.game) || y3U.k7B(null, this.target))
  28515. return null;
  28516. "undefined" == typeof m && (m = []);
  28517. for (var e = 0; y3U.G7B(e, this.timeline.length); e++)
  28518. for (var o in this.timeline[e].vEnd)
  28519. this.properties[o] = this.target[o] || 0, Array.isArray(this.properties[o]) || (this.properties[o] *= 1);
  28520. for (var e = 0; y3U.N7B(e, this.timeline.length); e++)
  28521. this.timeline[e].loadValues();
  28522. for (var e = 0; y3U.L7B(e, this.timeline.length); e++)
  28523. m = m.concat(this.timeline[e].generateData(k));
  28524. return m;
  28525. }
  28526. },
  28527. Object.defineProperty(i.Tween.prototype, "totalDuration", {
  28528. get : function () {
  28529. for (var k = 0, m = 0; y3U.z7B(m, this.timeline.length); m++)
  28530. k += this.timeline[m].duration;
  28531. return k;
  28532. }
  28533. }),
  28534. i.Tween.prototype.constructor = i.Tween,
  28535. i.TweenData = function (k) {
  28536. this.parent = k,
  28537. this.game = k.game,
  28538. this.vStart = {},
  28539. this.vStartCache = {},
  28540. this.vEnd = {},
  28541. this.vEndCache = {},
  28542. this.duration = 1e3,
  28543. this.percent = 0,
  28544. this.value = 0,
  28545. this.repeatCounter = 0,
  28546. this.repeatDelay = 0,
  28547. this.yoyo = !1,
  28548. this.inReverse = !1,
  28549. this.delay = 0,
  28550. this.dt = 0,
  28551. this.startTime = null,
  28552. this.easingFunction = i.Easing.Default,
  28553. this.interpolationFunction = i.Math.linearInterpolation,
  28554. this.isRunning = !1,
  28555. this.isFrom = !1;
  28556. },
  28557. i.TweenData.PENDING = 0,
  28558. i.TweenData.RUNNING = 1,
  28559. i.TweenData.LOOPED = 2,
  28560. i.TweenData.COMPLETE = 3,
  28561. i.TweenData.prototype = {
  28562. to : function (k, m, e, o, n, u) {
  28563. return this.vEnd = k,
  28564. this.duration = m,
  28565. this.easingFunction = e,
  28566. this.delay = o,
  28567. this.repeatCounter = n,
  28568. this.yoyo = u,
  28569. this.isFrom = !1,
  28570. this;
  28571. },
  28572. from : function (k, m, e, o, n, u) {
  28573. return this.vEnd = k,
  28574. this.duration = m,
  28575. this.easingFunction = e,
  28576. this.delay = o,
  28577. this.repeatCounter = n,
  28578. this.yoyo = u,
  28579. this.isFrom = !0,
  28580. this;
  28581. },
  28582. start : function () {
  28583. if (this.startTime = this.game.time.time + this.delay, this.dt = this.parent.reverse ? this.duration : 0, this.isRunning = y3U.J7B(this.delay, 0) ? !1 : !0, this.isFrom)
  28584. for (var k in this.vStartCache)
  28585. this.vStart[k] = this.vEndCache[k], this.vEnd[k] = this.vStartCache[k], this.parent.target[k] = this.vStart[k];
  28586. return this.value = 0,
  28587. this.yoyoCounter = 0,
  28588. this;
  28589. },
  28590. loadValues : function () {
  28591. for (var k in this.parent.properties) {
  28592. if (this.vStart[k] = this.parent.properties[k], Array.isArray(this.vEnd[k])) {
  28593. if (y3U.H7B(0, this.vEnd[k].length))
  28594. continue;
  28595. this.vEnd[k] = [this.parent.properties[k]].concat(this.vEnd[k]);
  28596. }
  28597. "undefined" != typeof this.vEnd[k] ? ("string" == typeof this.vEnd[k] && (this.vEnd[k] = this.vStart[k] + parseFloat(this.vEnd[k], 10)), this.parent.properties[k] = this.vEnd[k]) : this.vEnd[k] = this.vStart[k],
  28598. this.vStartCache[k] = this.vStart[k],
  28599. this.vEndCache[k] = this.vEnd[k];
  28600. }
  28601. return this;
  28602. },
  28603. update : function () {
  28604. if (!this.isRunning) {
  28605. if (!(y3U.h7B(this.game.time.time, this.startTime)))
  28606. return i.TweenData.PENDING;
  28607. this.isRunning = !0;
  28608. }
  28609. this.parent.reverse ? (this.dt -= y3U.F7B(this.game.time.physicsElapsedMS, this.parent.timeScale), this.dt = Math.max(this.dt, 0)) : (this.dt += y3U.M7B(this.game.time.physicsElapsedMS, this.parent.timeScale), this.dt = Math.min(this.dt, this.duration)),
  28610. this.percent = y3U.n7B(this.dt, this.duration),
  28611. this.value = this.easingFunction(this.percent);
  28612. for (var k in this.vEnd) {
  28613. var m = this.vStart[k],
  28614. e = this.vEnd[k];
  28615. this.parent.target[k] = Array.isArray(e) ? this.interpolationFunction(e, this.value) : m + y3U.f7B((e - m), this.value);
  28616. }
  28617. return !this.parent.reverse && y3U.K7B(1, this.percent) || this.parent.reverse && y3U.B7B(0, this.percent) ? this.repeat() : i.TweenData.RUNNING;
  28618. },
  28619. generateData : function (k) {
  28620. this.dt = this.parent.reverse ? this.duration : 0;
  28621. var m = [],
  28622. e = !1,
  28623. o = y3U.l7B(1, k, 1e3);
  28624. do {
  28625. this.parent.reverse ? (this.dt -= o, this.dt = Math.max(this.dt, 0)) : (this.dt += o, this.dt = Math.min(this.dt, this.duration)),
  28626. this.percent = y3U.O7B(this.dt, this.duration),
  28627. this.value = this.easingFunction(this.percent);
  28628. var n = {};
  28629. for (var u in this.vEnd) {
  28630. var q = this.vStart[u],
  28631. f = this.vEnd[u];
  28632. n[u] = Array.isArray(f) ? this.interpolationFunction(f, this.value) : q + y3U.V7B((f - q), this.value);
  28633. }
  28634. m.push(n),
  28635. (!this.parent.reverse && y3U.k4B(1, this.percent) || this.parent.reverse && y3U.G4B(0, this.percent)) && (e = !0);
  28636. } while (!e);
  28637. if (this.yoyo) {
  28638. var j = m.slice();
  28639. j.reverse(),
  28640. m = m.concat(j);
  28641. }
  28642. return m;
  28643. },
  28644. repeat : function () {
  28645. if (this.yoyo) {
  28646. if (this.inReverse && y3U.N4B(0, this.repeatCounter))
  28647. return i.TweenData.COMPLETE;
  28648. this.inReverse = !this.inReverse;
  28649. } else if (y3U.L4B(0, this.repeatCounter))
  28650. return i.TweenData.COMPLETE;
  28651. if (this.inReverse)
  28652. for (var k in this.vStartCache)
  28653. this.vStart[k] = this.vEndCache[k], this.vEnd[k] = this.vStartCache[k];
  28654. else {
  28655. for (var k in this.vStartCache)
  28656. this.vStart[k] = this.vStartCache[k], this.vEnd[k] = this.vEndCache[k];
  28657. y3U.z4B(this.repeatCounter, 0) && this.repeatCounter--;
  28658. }
  28659. return this.startTime = this.game.time.time + this.delay,
  28660. this.dt = this.parent.reverse ? this.duration : 0,
  28661. i.TweenData.LOOPED;
  28662. }
  28663. },
  28664. i.TweenData.prototype.constructor = i.TweenData,
  28665. i.Easing = {
  28666. Linear : {
  28667. None : function (k) {
  28668. return k;
  28669. }
  28670. },
  28671. Quadratic : {
  28672. In : function (k) {
  28673. return y3U.J4B(k, k);
  28674. },
  28675. Out : function (k) {
  28676. return y3U.H4B(k, (2 - k));
  28677. },
  28678. InOut : function (k) {
  28679. return y3U.h4B((k *= 2), 1) ? y3U.F4B(.5, k, k) : - .5 * (--k * (y3U.i4B(k, 2)) - 1);
  28680. }
  28681. },
  28682. Cubic : {
  28683. In : function (k) {
  28684. return y3U.u4B(k, k, k);
  28685. },
  28686. Out : function (k) {
  28687. return --k * k * k + 1;
  28688. },
  28689. InOut : function (k) {
  28690. return y3U.b4B((k *= 2), 1) ? y3U.j4B(.5, k, k, k) : y3U.R4B(.5, ((k -= 2) * k * k + 2));
  28691. }
  28692. },
  28693. Quartic : {
  28694. In : function (k) {
  28695. return y3U.O4B(k, k, k, k);
  28696. },
  28697. Out : function (k) {
  28698. return 1 - --k * k * k * k;
  28699. },
  28700. InOut : function (k) {
  28701. return y3U.U3B((k *= 2), 1) ? y3U.T3B(.5, k, k, k, k) : - .5 * (y3U.I3B((k -= 2) * k * k * k, 2));
  28702. }
  28703. },
  28704. Quintic : {
  28705. In : function (k) {
  28706. return y3U.C3B(k, k, k, k, k);
  28707. },
  28708. Out : function (k) {
  28709. return --k * k * k * k * k + 1;
  28710. },
  28711. InOut : function (k) {
  28712. return y3U.t3B((k *= 2), 1) ? y3U.y3B(.5, k, k, k, k, k) : y3U.M3B(.5, ((k -= 2) * k * k * k * k + 2));
  28713. }
  28714. },
  28715. Sinusoidal : {
  28716. In : function (k) {
  28717. return y3U.n3B(0, k) ? 0 : y3U.f3B(1, k) ? 1 : y3U.K3B(1, Math.cos(k * Math.PI / 2));
  28718. },
  28719. Out : function (k) {
  28720. return y3U.B3B(0, k) ? 0 : y3U.l3B(1, k) ? 1 : Math.sin(y3U.X3B(k, Math.PI, 2));
  28721. },
  28722. InOut : function (k) {
  28723. return y3U.V3B(0, k) ? 0 : y3U.k9B(1, k) ? 1 : y3U.G9B(.5, (1 - Math.cos(Math.PI * k)));
  28724. }
  28725. },
  28726. Exponential : {
  28727. In : function (k) {
  28728. return y3U.N9B(0, k) ? 0 : Math.pow(1024, y3U.L9B(k, 1));
  28729. },
  28730. Out : function (k) {
  28731. return y3U.z9B(1, k) ? 1 : 1 - Math.pow(2, -10 * k);
  28732. },
  28733. InOut : function (k) {
  28734. return y3U.J9B(0, k) ? 0 : y3U.H9B(1, k) ? 1 : y3U.h9B((k *= 2), 1) ? y3U.F9B(.5, Math.pow(1024, k - 1)) : .5 * (-Math.pow(2, -10 * (y3U.M9B(k, 1))) + 2);
  28735. }
  28736. },
  28737. Circular : {
  28738. In : function (k) {
  28739. return y3U.n9B(1, Math.sqrt(1 - k * k));
  28740. },
  28741. Out : function (k) {
  28742. return Math.sqrt(1 - --k * k);
  28743. },
  28744. InOut : function (k) {
  28745. return y3U.f9B((k *= 2), 1) ? - .5 * (y3U.K9B(Math.sqrt(1 - k * k), 1)) : y3U.B9B(.5, (Math.sqrt(1 - (k -= 2) * k) + 1));
  28746. }
  28747. },
  28748. Elastic : {
  28749. In : function (k) {
  28750. var m,
  28751. e = .1,
  28752. o = .4;
  28753. return y3U.l9B(0, k) ? 0 : y3U.X9B(1, k) ? 1 : (!e || y3U.Y9B(1, e) ? (e = 1, m = y3U.U5B(o, 4)) : m = y3U.T5B(o, Math.asin(1 / e), (2 * Math.PI)), - (y3U.N5B(e, Math.pow(2, 10 * (k -= 1)), Math.sin(2 * (k - m) * Math.PI / o))));
  28754. },
  28755. Out : function (k) {
  28756. var m,
  28757. e = .1,
  28758. o = .4;
  28759. return y3U.A5B(0, k) ? 0 : y3U.w5B(1, k) ? 1 : (!e || y3U.E5B(1, e) ? (e = 1, m = y3U.e5B(o, 4)) : m = y3U.g5B(o, Math.asin(1 / e), (2 * Math.PI)), e * Math.pow(2, -10 * k) * Math.sin(y3U.x5B(2, (k - m), Math.PI, o)) + 1);
  28760. },
  28761. InOut : function (k) {
  28762. var m,
  28763. e = .1,
  28764. o = .4;
  28765. return y3U.u5B(0, k) ? 0 : y3U.P5B(1, k) ? 1 : (!e || y3U.D5B(1, e) ? (e = 1, m = y3U.Z5B(o, 4)) : m = y3U.R5B(o, Math.asin(1 / e), (2 * Math.PI)), y3U.s5B((k *= 2), 1) ? - .5 * e * Math.pow(2, y3U.Q5B(10, (k -= 1))) * Math.sin(y3U.a2B(2, (k - m), Math.PI, o)) : e * Math.pow(2, -10 * (k -= 1)) * Math.sin(y3U.N2B(2, (k - m), Math.PI, o)) * .5 + 1);
  28766. }
  28767. },
  28768. Back : {
  28769. In : function (k) {
  28770. var m = 1.70158;
  28771. return y3U.C2B(k, k, ((m + 1) * k - m));
  28772. },
  28773. Out : function (k) {
  28774. var m = 1.70158;
  28775. return --k * k * (y3U.J2B((m + 1), k) + m) + 1;
  28776. },
  28777. InOut : function (k) {
  28778. var m = 2.5949095;
  28779. return y3U.H2B((k *= 2), 1) ? y3U.h2B(.5, k, k, ((m + 1) * k - m)) : y3U.x2B(.5, ((k -= 2) * k * ((m + 1) * k + m) + 2));
  28780. }
  28781. },
  28782. Bounce : {
  28783. In : function (k) {
  28784. return y3U.p2B(1, i.Easing.Bounce.Out(1 - k));
  28785. },
  28786. Out : function (k) {
  28787. return y3U.q2B(1 / 2.75, k) ? y3U.b2B(7.5625, k, k) : y3U.B2B(2 / 2.75, k) ? y3U.l2B(7.5625, (k -= 1.5 / 2.75), k) + .75 : y3U.O2B(2.5 / 2.75, k) ? y3U.V2B(7.5625, (k -= 2.25 / 2.75), k) + .9375 : y3U.a1B(7.5625, (k -= 2.625 / 2.75), k) + .984375;
  28788. },
  28789. InOut : function (k) {
  28790. return y3U.S1B(.5, k) ? y3U.I1B(.5, i.Easing.Bounce.In(2 * k)) : y3U.C1B(.5, i.Easing.Bounce.Out(2 * k - 1)) + .5;
  28791. }
  28792. }
  28793. },
  28794. i.Easing.Default = i.Easing.Linear.None,
  28795. i.Easing.Power0 = i.Easing.Linear.None,
  28796. i.Easing.Power1 = i.Easing.Quadratic.Out,
  28797. i.Easing.Power2 = i.Easing.Cubic.Out,
  28798. i.Easing.Power3 = i.Easing.Quartic.Out,
  28799. i.Easing.Power4 = i.Easing.Quintic.Out,
  28800. i.Time = function (k) {
  28801. this.game = k,
  28802. this.time = 0,
  28803. this.prevTime = 0,
  28804. this.now = 0,
  28805. this.elapsed = 0,
  28806. this.elapsedMS = 0,
  28807. this.physicsElapsed = 0,
  28808. this.physicsElapsedMS = 0,
  28809. this.desiredFps = 60,
  28810. this.suggestedFps = null,
  28811. this.slowMotion = 1,
  28812. this.advancedTiming = !1,
  28813. this.frames = 0,
  28814. this.fps = 0,
  28815. this.fpsMin = 1e3,
  28816. this.fpsMax = 0,
  28817. this.msMin = 1e3,
  28818. this.msMax = 0,
  28819. this.pauseDuration = 0,
  28820. this.timeToCall = 0,
  28821. this.timeExpected = 0,
  28822. this.events = new i.Timer(this.game, !1),
  28823. this._frameCount = 0,
  28824. this._elapsedAccumulator = 0,
  28825. this._started = 0,
  28826. this._timeLastSecond = 0,
  28827. this._pauseStarted = 0,
  28828. this._justResumed = !1,
  28829. this._timers = [];
  28830. },
  28831. i.Time.prototype = {
  28832. boot : function () {
  28833. this._started = Date.now(),
  28834. this.time = Date.now(),
  28835. this.events.start();
  28836. },
  28837. add : function (k) {
  28838. return this._timers.push(k),
  28839. k;
  28840. },
  28841. create : function (k) {
  28842. "undefined" == typeof k && (k = !0);
  28843. var m = new i.Timer(this.game, k);
  28844. return this._timers.push(m),
  28845. m;
  28846. },
  28847. removeAll : function () {
  28848. for (var k = 0; y3U.v1B(k, this._timers.length); k++)
  28849. this._timers[k].destroy();
  28850. this._timers = [],
  28851. this.events.removeAll();
  28852. },
  28853. update : function (k) {
  28854. var m = this.time;
  28855. if (this.time = Date.now(), this.elapsedMS = y3U.t1B(this.time, m), this.prevTime = this.now, this.now = k, this.elapsed = y3U.y1B(this.now, this.prevTime), this.timeToCall = Math.floor(Math.max(0, y3U.o1B(1e3 / this.desiredFps, (this.timeCallExpected - k)))), this.timeCallExpected = k + this.timeToCall, this._frameCount++, this._elapsedAccumulator += this.elapsed, y3U.x1B(this._frameCount, 2 * this.desiredFps) && (this.suggestedFps = y3U.p1B(5, Math.floor(200 / (this._elapsedAccumulator / this._frameCount))), this._frameCount = 0, this._elapsedAccumulator = 0), this.physicsElapsed = y3U.q1B(1, this.desiredFps), this.physicsElapsedMS = y3U.b1B(1e3, this.physicsElapsed), this.advancedTiming && (this.msMin = Math.min(this.msMin, this.elapsed), this.msMax = Math.max(this.msMax, this.elapsed), this.frames++, y3U.j1B(this.now, this._timeLastSecond + 1e3) && (this.fps = Math.round(y3U.d1B(1e3, this.frames, (this.now - this._timeLastSecond))), this.fpsMin = Math.min(this.fpsMin, this.fps), this.fpsMax = Math.max(this.fpsMax, this.fps), this._timeLastSecond = this.now, this.frames = 0)), !this.game.paused) {
  28856. this.events.update(this.time);
  28857. for (var e = 0, o = this._timers.length; y3U.X1B(o, e); )
  28858. this._timers[e].update(this.time) ? e++ : (this._timers.splice(e, 1), o--);
  28859. }
  28860. },
  28861. gamePaused : function () {
  28862. this._pauseStarted = Date.now(),
  28863. this.events.pause();
  28864. for (var k = this._timers.length; k--; )
  28865. this._timers[k]._pause();
  28866. },
  28867. gameResumed : function () {
  28868. this.time = Date.now(),
  28869. this.pauseDuration = y3U.Y1B(this.time, this._pauseStarted),
  28870. this.events.resume();
  28871. for (var k = this._timers.length; k--; )
  28872. this._timers[k]._resume();
  28873. },
  28874. totalElapsedSeconds : function () {
  28875. return y3U.U6B(.001, (this.time - this._started));
  28876. },
  28877. elapsedSince : function (k) {
  28878. return y3U.T6B(this.time, k);
  28879. },
  28880. elapsedSecondsSince : function (k) {
  28881. return y3U.S6B(.001, (this.time - k));
  28882. },
  28883. reset : function () {
  28884. this._started = this.time,
  28885. this.removeAll();
  28886. }
  28887. },
  28888. i.Time.prototype.constructor = i.Time,
  28889. i.Timer = function (k, m) {
  28890. "undefined" == typeof m && (m = !0),
  28891. this.game = k,
  28892. this.running = !1,
  28893. this.autoDestroy = m,
  28894. this.expired = !1,
  28895. this.elapsed = 0,
  28896. this.events = [],
  28897. this.onComplete = new i.Signal,
  28898. this.nextTick = 0,
  28899. this.timeCap = 1e3,
  28900. this.paused = !1,
  28901. this._codePaused = !1,
  28902. this._started = 0,
  28903. this._pauseStarted = 0,
  28904. this._pauseTotal = 0,
  28905. this._now = Date.now(),
  28906. this._len = 0,
  28907. this._marked = 0,
  28908. this._i = 0,
  28909. this._diff = 0,
  28910. this._newTick = 0;
  28911. },
  28912. i.Timer.MINUTE = 6e4,
  28913. i.Timer.SECOND = 1e3,
  28914. i.Timer.HALF = 500,
  28915. i.Timer.QUARTER = 250,
  28916. i.Timer.prototype = {
  28917. create : function (k, m, e, o, n, u) {
  28918. k = Math.round(k);
  28919. var q = k;
  28920. q += y3U.I6B(0, this._now) ? this.game.time.time : this._now;
  28921. var f = new i.TimerEvent(this, k, q, e, m, o, n, u);
  28922. return this.events.push(f),
  28923. this.order(),
  28924. this.expired = !1,
  28925. f;
  28926. },
  28927. add : function (k, m, e) {
  28928. return this.create(k, !1, 0, m, e, Array.prototype.splice.call(arguments, 3));
  28929. },
  28930. repeat : function (k, m, e, o) {
  28931. return this.create(k, !1, m, e, o, Array.prototype.splice.call(arguments, 4));
  28932. },
  28933. loop : function (k, m, e) {
  28934. return this.create(k, !0, 0, m, e, Array.prototype.splice.call(arguments, 3));
  28935. },
  28936. start : function (k) {
  28937. if (!this.running) {
  28938. this._started = this.game.time.time + (k || 0),
  28939. this.running = !0;
  28940. for (var m = 0; y3U.C6B(m, this.events.length); m++)
  28941. this.events[m].tick = this.events[m].delay + this._started;
  28942. }
  28943. },
  28944. stop : function (k) {
  28945. this.running = !1,
  28946. "undefined" == typeof k && (k = !0),
  28947. k && (this.events.length = 0);
  28948. },
  28949. remove : function (k) {
  28950. for (var m = 0; y3U.v6B(m, this.events.length); m++)
  28951. if (y3U.t6B(this.events[m], k))
  28952. return this.events[m].pendingDelete = !0, !0;
  28953. return !1;
  28954. },
  28955. order : function () {
  28956. y3U.y6B(this.events.length, 0) && (this.events.sort(this.sortHandler), this.nextTick = this.events[0].tick);
  28957. },
  28958. sortHandler : function (k, m) {
  28959. return y3U.o6B(k.tick, m.tick) ? -1 : y3U.x6B(k.tick, m.tick) ? 1 : 0;
  28960. },
  28961. clearPendingEvents : function () {
  28962. for (this._i = this.events.length; this._i--; )
  28963. this.events[this._i].pendingDelete && this.events.splice(this._i, 1);
  28964. this._len = this.events.length,
  28965. this._i = 0;
  28966. },
  28967. update : function (k) {
  28968. if (this.paused)
  28969. return !0;
  28970. if (this.elapsed = y3U.p6B(k, this._now), this._now = k, y3U.q6B(this.elapsed, this.timeCap) && this.adjustEvents(y3U.b6B(k, this.elapsed)), this._marked = 0, this.clearPendingEvents(), this.running && y3U.j6B(this._now, this.nextTick) && y3U.d6B(this._len, 0)) {
  28971. for (; y3U.c6B(this._i, this._len) && this.running && y3U.s6B(this._now, this.events[this._i].tick); )
  28972. this._newTick = this._now + this.events[this._i].delay - (y3U.Q6B(this._now, this.events[this._i].tick)), y3U.a8B(this._newTick, 0) && (this._newTick = this._now + this.events[this._i].delay), this.events[this._i].loop === !0 ? (this.events[this._i].tick = this._newTick, this.events[this._i].callback.apply(this.events[this._i].callbackContext, this.events[this._i].args)) : y3U.W8B(this.events[this._i].repeatCount, 0) ? (this.events[this._i].repeatCount--, this.events[this._i].tick = this._newTick, this.events[this._i].callback.apply(this.events[this._i].callbackContext, this.events[this._i].args)) : (this._marked++, this.events[this._i].pendingDelete = !0, this.events[this._i].callback.apply(this.events[this._i].callbackContext, this.events[this._i].args)), this._i++;
  28973. y3U.m8B(this.events.length, this._marked) ? this.order() : (this.expired = !0, this.onComplete.dispatch(this));
  28974. }
  28975. return this.expired && this.autoDestroy ? !1 : !0;
  28976. },
  28977. pause : function () {
  28978. this.running && (this._codePaused = !0, this.paused || (this._pauseStarted = this.game.time.time, this.paused = !0));
  28979. },
  28980. _pause : function () {
  28981. !this.paused && this.running && (this._pauseStarted = this.game.time.time, this.paused = !0);
  28982. },
  28983. adjustEvents : function (k) {
  28984. for (var m = 0; y3U.A8B(m, this.events.length); m++)
  28985. if (!this.events[m].pendingDelete) {
  28986. var e = y3U.w8B(this.events[m].tick, k);
  28987. y3U.E8B(0, e) && (e = 0),
  28988. this.events[m].tick = this._now + e;
  28989. }
  28990. var o = y3U.e8B(this.nextTick, k);
  28991. this.nextTick = y3U.g8B(0, o) ? this._now : this._now + o;
  28992. },
  28993. resume : function () {
  28994. if (this.paused) {
  28995. var k = this.game.time.time;
  28996. this._pauseTotal += y3U.r8B(k, this._now),
  28997. this._now = k,
  28998. this.adjustEvents(this._pauseStarted),
  28999. this.paused = !1,
  29000. this._codePaused = !1;
  29001. }
  29002. },
  29003. _resume : function () {
  29004. this._codePaused || this.resume();
  29005. },
  29006. removeAll : function () {
  29007. this.onComplete.removeAll(),
  29008. this.events.length = 0,
  29009. this._len = 0,
  29010. this._i = 0;
  29011. },
  29012. destroy : function () {
  29013. this.onComplete.removeAll(),
  29014. this.running = !1,
  29015. this.events = [],
  29016. this._len = 0,
  29017. this._i = 0;
  29018. }
  29019. },
  29020. Object.defineProperty(i.Timer.prototype, "next", {
  29021. get : function () {
  29022. return this.nextTick;
  29023. }
  29024. }),
  29025. Object.defineProperty(i.Timer.prototype, "duration", {
  29026. get : function () {
  29027. return this.running && y3U.i8B(this.nextTick, this._now) ? y3U.u8B(this.nextTick, this._now) : 0;
  29028. }
  29029. }),
  29030. Object.defineProperty(i.Timer.prototype, "length", {
  29031. get : function () {
  29032. return this.events.length;
  29033. }
  29034. }),
  29035. Object.defineProperty(i.Timer.prototype, "ms", {
  29036. get : function () {
  29037. return this.running ? y3U.P8B(this._now, this._started, this._pauseTotal) : 0;
  29038. }
  29039. }),
  29040. Object.defineProperty(i.Timer.prototype, "seconds", {
  29041. get : function () {
  29042. return this.running ? y3U.j8B(.001, this.ms) : 0;
  29043. }
  29044. }),
  29045. i.Timer.prototype.constructor = i.Timer,
  29046. i.TimerEvent = function (k, m, e, o, n, u, q, f) {
  29047. this.timer = k,
  29048. this.delay = m,
  29049. this.tick = e,
  29050. this.repeatCount = y3U.d8B(o, 1),
  29051. this.loop = n,
  29052. this.callback = u,
  29053. this.callbackContext = q,
  29054. this.args = f,
  29055. this.pendingDelete = !1;
  29056. },
  29057. i.TimerEvent.prototype.constructor = i.TimerEvent,
  29058. i.AnimationManager = function (k) {
  29059. this.sprite = k,
  29060. this.game = k.game,
  29061. this.currentFrame = null,
  29062. this.currentAnim = null,
  29063. this.updateIfVisible = !0,
  29064. this.isLoaded = !1,
  29065. this._frameData = null,
  29066. this._anims = {},
  29067. this._outputFrames = [];
  29068. },
  29069. i.AnimationManager.prototype = {
  29070. loadFrameData : function (k, m) {
  29071. if ("undefined" == typeof k)
  29072. return !1;
  29073. if (this.isLoaded)
  29074. for (var e in this._anims)
  29075. this._anims[e].updateFrameData(k);
  29076. return this._frameData = k,
  29077. "undefined" == typeof m || y3U.c8B(null, m) ? this.frame = 0 : "string" == typeof m ? this.frameName = m : this.frame = m,
  29078. this.isLoaded = !0,
  29079. !0;
  29080. },
  29081. copyFrameData : function (k, m) {
  29082. if (this._frameData = k.clone(), this.isLoaded)
  29083. for (var e in this._anims)
  29084. this._anims[e].updateFrameData(this._frameData);
  29085. return "undefined" == typeof m || y3U.s8B(null, m) ? this.frame = 0 : "string" == typeof m ? this.frameName = m : this.frame = m,
  29086. this.isLoaded = !0,
  29087. !0;
  29088. },
  29089. add : function (k, m, e, o, n) {
  29090. return m = m || [],
  29091. e = e || 60,
  29092. "undefined" == typeof o && (o = !1),
  29093. "undefined" == typeof n && (n = m && "number" == typeof m[0] ? !0 : !1),
  29094. this._outputFrames.length = 0,
  29095. this._frameData.getFrameIndexes(m, n, this._outputFrames),
  29096. this._anims[k] = new i.Animation(this.game, this.sprite, k, this._frameData, this._outputFrames, e, o),
  29097. this.currentAnim = this._anims[k],
  29098. this.currentFrame = this.currentAnim.currentFrame,
  29099. this.sprite.__tilePattern && (this.sprite.__tilePattern = !1, this.tilingTexture = !1),
  29100. this._anims[k];
  29101. },
  29102. validateFrames : function (k, m) {
  29103. "undefined" == typeof m && (m = !0);
  29104. for (var e = 0; y3U.Q8B(e, k.length); e++)
  29105. if (m === !0) {
  29106. if (y3U.a0G(k[e], this._frameData.total))
  29107. return !1;
  29108. } else if (this._frameData.checkFrameName(k[e]) === !1)
  29109. return !1;
  29110. return !0;
  29111. },
  29112. play : function (k, m, e, o) {
  29113. return this._anims[k] ? y3U.W0G(this.currentAnim, this._anims[k]) ? this.currentAnim.isPlaying === !1 ? (this.currentAnim.paused = !1, this.currentAnim.play(m, e, o)) : this.currentAnim : (this.currentAnim && this.currentAnim.isPlaying && this.currentAnim.stop(), this.currentAnim = this._anims[k], this.currentAnim.paused = !1, this.currentFrame = this.currentAnim.currentFrame, this.currentAnim.play(m, e, o)) : void 0;
  29114. },
  29115. stop : function (k, m) {
  29116. "undefined" == typeof m && (m = !1),
  29117. "string" == typeof k ? this._anims[k] && (this.currentAnim = this._anims[k], this.currentAnim.stop(m)) : this.currentAnim && this.currentAnim.stop(m);
  29118. },
  29119. update : function () {
  29120. return this.updateIfVisible && !this.sprite.visible ? !1 : this.currentAnim && this.currentAnim.update() === !0 ? (this.currentFrame = this.currentAnim.currentFrame, !0) : !1;
  29121. },
  29122. next : function (k) {
  29123. this.currentAnim && (this.currentAnim.next(k), this.currentFrame = this.currentAnim.currentFrame);
  29124. },
  29125. previous : function (k) {
  29126. this.currentAnim && (this.currentAnim.previous(k), this.currentFrame = this.currentAnim.currentFrame);
  29127. },
  29128. getAnimation : function (k) {
  29129. return "string" == typeof k && this._anims[k] ? this._anims[k] : null;
  29130. },
  29131. refreshFrame : function () {
  29132. this.sprite.setTexture(PIXI.TextureCache[this.currentFrame.uuid]),
  29133. this.sprite.__tilePattern && (this.__tilePattern = !1, this.tilingTexture = !1);
  29134. },
  29135. destroy : function () {
  29136. var k = null;
  29137. for (var k in this._anims)
  29138. this._anims.hasOwnProperty(k) && this._anims[k].destroy();
  29139. this._anims = {},
  29140. this._outputFrames = [],
  29141. this._frameData = null,
  29142. this._frameIndex = 0,
  29143. this.currentAnim = null,
  29144. this.currentFrame = null,
  29145. this.sprite = null,
  29146. this.game = null;
  29147. }
  29148. },
  29149. i.AnimationManager.prototype.constructor = i.AnimationManager,
  29150. Object.defineProperty(i.AnimationManager.prototype, "frameData", {
  29151. get : function () {
  29152. return this._frameData;
  29153. }
  29154. }),
  29155. Object.defineProperty(i.AnimationManager.prototype, "frameTotal", {
  29156. get : function () {
  29157. return this._frameData.total;
  29158. }
  29159. }),
  29160. Object.defineProperty(i.AnimationManager.prototype, "paused", {
  29161. get : function () {
  29162. return this.currentAnim.isPaused;
  29163. },
  29164. set : function (k) {
  29165. this.currentAnim.paused = k;
  29166. }
  29167. }),
  29168. Object.defineProperty(i.AnimationManager.prototype, "name", {
  29169. get : function () {
  29170. return this.currentAnim ? this.currentAnim.name : void 0;
  29171. }
  29172. }),
  29173. Object.defineProperty(i.AnimationManager.prototype, "frame", {
  29174. get : function () {
  29175. return this.currentFrame ? this._frameIndex : void 0;
  29176. },
  29177. set : function (k) {
  29178. "number" == typeof k && this._frameData && y3U.m0G(null, this._frameData.getFrame(k)) && (this.currentFrame = this._frameData.getFrame(k), this.currentFrame && (this._frameIndex = k, this.sprite.setFrame(this.currentFrame), this.sprite.__tilePattern && (this.__tilePattern = !1, this.tilingTexture = !1)));
  29179. }
  29180. }),
  29181. Object.defineProperty(i.AnimationManager.prototype, "frameName", {
  29182. get : function () {
  29183. return this.currentFrame ? this.currentFrame.name : void 0;
  29184. },
  29185. set : function (k) {
  29186. "string" == typeof k && y3U.A0G(null, this._frameData.getFrameByName(k)) ? (this.currentFrame = this._frameData.getFrameByName(k), this.currentFrame && (this._frameIndex = this.currentFrame.index, this.sprite.setFrame(this.currentFrame), this.sprite.__tilePattern && (this.__tilePattern = !1, this.tilingTexture = !1))) : console.warn("Cannot set frameName: " + k);
  29187. }
  29188. }),
  29189. i.Animation = function (k, m, e, o, n, u, q) {
  29190. "undefined" == typeof q && (q = !1),
  29191. this.game = k,
  29192. this._parent = m,
  29193. this._frameData = o,
  29194. this.name = e,
  29195. this._frames = [],
  29196. this._frames = this._frames.concat(n),
  29197. this.delay = y3U.w0G(1e3, u),
  29198. this.loop = q,
  29199. this.loopCount = 0,
  29200. this.killOnComplete = !1,
  29201. this.isFinished = !1,
  29202. this.isPlaying = !1,
  29203. this.isPaused = !1,
  29204. this._pauseStartTime = 0,
  29205. this._frameIndex = 0,
  29206. this._frameDiff = 0,
  29207. this._frameSkip = 1,
  29208. this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]),
  29209. this.onStart = new i.Signal,
  29210. this.onUpdate = null,
  29211. this.onComplete = new i.Signal,
  29212. this.onLoop = new i.Signal,
  29213. this.game.onPause.add(this.onPause, this),
  29214. this.game.onResume.add(this.onResume, this);
  29215. },
  29216. i.Animation.prototype = {
  29217. play : function (k, m, e) {
  29218. return "number" == typeof k && (this.delay = y3U.E0G(1e3, k)),
  29219. "boolean" == typeof m && (this.loop = m),
  29220. "undefined" != typeof e && (this.killOnComplete = e),
  29221. this.isPlaying = !0,
  29222. this.isFinished = !1,
  29223. this.paused = !1,
  29224. this.loopCount = 0,
  29225. this._timeLastFrame = this.game.time.time,
  29226. this._timeNextFrame = this.game.time.time + this.delay,
  29227. this._frameIndex = 0,
  29228. this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]),
  29229. this._parent.setFrame(this.currentFrame),
  29230. this._parent.__tilePattern && (this._parent.__tilePattern = !1, this._parent.tilingTexture = !1),
  29231. this._parent.events.onAnimationStart$dispatch(this._parent, this),
  29232. this.onStart.dispatch(this._parent, this),
  29233. this;
  29234. },
  29235. restart : function () {
  29236. this.isPlaying = !0,
  29237. this.isFinished = !1,
  29238. this.paused = !1,
  29239. this.loopCount = 0,
  29240. this._timeLastFrame = this.game.time.time,
  29241. this._timeNextFrame = this.game.time.time + this.delay,
  29242. this._frameIndex = 0,
  29243. this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]),
  29244. this._parent.setFrame(this.currentFrame),
  29245. this.onStart.dispatch(this._parent, this);
  29246. },
  29247. setFrame : function (m, e) {
  29248. var o = function (k) {
  29249. n = k;
  29250. },
  29251. n;
  29252. if ("undefined" == typeof e && (e = !1), "string" == typeof m)
  29253. for (var u = 0; y3U.e0G(u, this._frames.length); u++)
  29254. y3U.g0G(this._frameData.getFrame(this._frames[u]).name, m) && (n = u);
  29255. else if ("number" == typeof m)
  29256. if (e)
  29257. o(m);
  29258. else
  29259. for (var u = 0; y3U.r0G(u, this._frames.length); u++)
  29260. y3U.i0G(this._frames[u], n) && (n = u);
  29261. n && (this._frameIndex = y3U.u0G(n, 1), this._timeNextFrame = this.game.time.time, this.update());
  29262. },
  29263. stop : function (k, m) {
  29264. "undefined" == typeof k && (k = !1),
  29265. "undefined" == typeof m && (m = !1),
  29266. this.isPlaying = !1,
  29267. this.isFinished = !0,
  29268. this.paused = !1,
  29269. k && (this.currentFrame = this._frameData.getFrame(this._frames[0]), this._parent.setFrame(this.currentFrame)),
  29270. m && (this._parent.events.onAnimationComplete$dispatch(this._parent, this), this.onComplete.dispatch(this._parent, this));
  29271. },
  29272. onPause : function () {
  29273. this.isPlaying && (this._frameDiff = y3U.P0G(this._timeNextFrame, this.game.time.time));
  29274. },
  29275. onResume : function () {
  29276. this.isPlaying && (this._timeNextFrame = this.game.time.time + this._frameDiff);
  29277. },
  29278. update : function () {
  29279. return this.isPaused ? !1 : this.isPlaying && y3U.D0G(this.game.time.time, this._timeNextFrame) ? (this._frameSkip = 1, this._frameDiff = y3U.Z0G(this.game.time.time, this._timeNextFrame), this._timeLastFrame = this.game.time.time, y3U.R0G(this._frameDiff, this.delay) && (this._frameSkip = Math.floor(y3U.O0G(this._frameDiff, this.delay)), this._frameDiff -= y3U.V0G(this._frameSkip, this.delay)), this._timeNextFrame = this.game.time.time + (y3U.k7G(this.delay, this._frameDiff)), this._frameIndex += this._frameSkip, y3U.G7G(this._frameIndex, this._frames.length) && (this.loop ? (this._frameIndex %= this._frames.length, this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]), this.loopCount++, this._parent.events.onAnimationLoop$dispatch(this._parent, this), this.onLoop.dispatch(this._parent, this)) : this.complete()), this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]), this.currentFrame && (this._parent.setFrame(this.currentFrame), this._parent.__tilePattern && (this._parent.__tilePattern = !1, this._parent.tilingTexture = !1), this.onUpdate && this.onUpdate.dispatch(this, this.currentFrame)), !0) : !1;
  29280. },
  29281. next : function (k) {
  29282. "undefined" == typeof k && (k = 1);
  29283. var m = this._frameIndex + k;
  29284. y3U.N7G(m, this._frames.length) && (this.loop ? m %= this._frames.length : m = y3U.L7G(this._frames.length, 1)),
  29285. y3U.z7G(m, this._frameIndex) && (this._frameIndex = m, this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]), this.currentFrame && (this._parent.setFrame(this.currentFrame), this._parent.__tilePattern && (this._parent.__tilePattern = !1, this._parent.tilingTexture = !1)), this.onUpdate && this.onUpdate.dispatch(this, this.currentFrame));
  29286. },
  29287. previous : function (k) {
  29288. "undefined" == typeof k && (k = 1);
  29289. var m = y3U.J7G(this._frameIndex, k);
  29290. y3U.H7G(0, m) && (this.loop ? m = this._frames.length + m : m++),
  29291. y3U.h7G(m, this._frameIndex) && (this._frameIndex = m, this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]), this.currentFrame && (this._parent.setFrame(this.currentFrame), this._parent.__tilePattern && (this._parent.__tilePattern = !1, this._parent.tilingTexture = !1)), this.onUpdate && this.onUpdate.dispatch(this, this.currentFrame));
  29292. },
  29293. updateFrameData : function (k) {
  29294. this._frameData = k,
  29295. this.currentFrame = this._frameData ? this._frameData.getFrame(this._frames[y3U.F7G(this._frameIndex, this._frames.length)]) : null;
  29296. },
  29297. destroy : function () {
  29298. this.game.onPause.remove(this.onPause, this),
  29299. this.game.onResume.remove(this.onResume, this),
  29300. this.game = null,
  29301. this._parent = null,
  29302. this._frames = null,
  29303. this._frameData = null,
  29304. this.currentFrame = null,
  29305. this.isPlaying = !1,
  29306. this.onStart.dispose(),
  29307. this.onLoop.dispose(),
  29308. this.onComplete.dispose(),
  29309. this.onUpdate && this.onUpdate.dispose();
  29310. },
  29311. complete : function () {
  29312. this.isPlaying = !1,
  29313. this.isFinished = !0,
  29314. this.paused = !1,
  29315. this._parent.events.onAnimationComplete$dispatch(this._parent, this),
  29316. this.onComplete.dispatch(this._parent, this),
  29317. this.killOnComplete && this._parent.kill();
  29318. }
  29319. },
  29320. i.Animation.prototype.constructor = i.Animation,
  29321. Object.defineProperty(i.Animation.prototype, "paused", {
  29322. get : function () {
  29323. return this.isPaused;
  29324. },
  29325. set : function (k) {
  29326. this.isPaused = k,
  29327. k ? this._pauseStartTime = this.game.time.time : this.isPlaying && (this._timeNextFrame = this.game.time.time + this.delay);
  29328. }
  29329. }),
  29330. Object.defineProperty(i.Animation.prototype, "frameTotal", {
  29331. get : function () {
  29332. return this._frames.length;
  29333. }
  29334. }),
  29335. Object.defineProperty(i.Animation.prototype, "frame", {
  29336. get : function () {
  29337. return y3U.M7G(null, this.currentFrame) ? this.currentFrame.index : this._frameIndex;
  29338. },
  29339. set : function (k) {
  29340. this.currentFrame = this._frameData.getFrame(this._frames[k]),
  29341. y3U.n7G(null, this.currentFrame) && (this._frameIndex = k, this._parent.setFrame(this.currentFrame), this.onUpdate && this.onUpdate.dispatch(this, this.currentFrame));
  29342. }
  29343. }),
  29344. Object.defineProperty(i.Animation.prototype, "speed", {
  29345. get : function () {
  29346. return Math.round(y3U.f7G(1e3, this.delay));
  29347. },
  29348. set : function (k) {
  29349. y3U.K7G(k, 1) && (this.delay = y3U.B7G(1e3, k));
  29350. }
  29351. }),
  29352. Object.defineProperty(i.Animation.prototype, "enableUpdate", {
  29353. get : function () {
  29354. return y3U.l7G(null, this.onUpdate);
  29355. },
  29356. set : function (k) {
  29357. k && y3U.X7G(null, this.onUpdate) ? this.onUpdate = new i.Signal : k || y3U.Y7G(null, this.onUpdate) || (this.onUpdate.dispose(), this.onUpdate = null);
  29358. }
  29359. }),
  29360. i.Animation.generateFrameNames = function (k, m, e, o, n) {
  29361. "undefined" == typeof o && (o = "");
  29362. var u = [],
  29363. q = "";
  29364. if (y3U.U4G(e, m))
  29365. for (var f = m; y3U.T4G(e, f); f++)
  29366. q = "number" == typeof n ? i.Utils.pad(f.toString(), n, "0", 1) : f.toString(), q = k + q + o, u.push(q);
  29367. else
  29368. for (var f = m; y3U.S4G(f, e); f--)
  29369. q = "number" == typeof n ? i.Utils.pad(f.toString(), n, "0", 1) : f.toString(), q = k + q + o, u.push(q);
  29370. return u;
  29371. },
  29372. i.Frame = function (k, m, e, o, n, u, q) {
  29373. this.index = k,
  29374. this.x = m,
  29375. this.y = e,
  29376. this.width = o,
  29377. this.height = n,
  29378. this.name = u,
  29379. this.uuid = q,
  29380. this.centerX = Math.floor(y3U.I4G(o, 2)),
  29381. this.centerY = Math.floor(y3U.C4G(n, 2)),
  29382. this.distance = i.Math.distance(0, 0, o, n),
  29383. this.rotated = !1,
  29384. this.rotationDirection = "cw",
  29385. this.trimmed = !1,
  29386. this.sourceSizeW = o,
  29387. this.sourceSizeH = n,
  29388. this.spriteSourceSizeX = 0,
  29389. this.spriteSourceSizeY = 0,
  29390. this.spriteSourceSizeW = 0,
  29391. this.spriteSourceSizeH = 0,
  29392. this.right = this.x + this.width,
  29393. this.bottom = this.y + this.height;
  29394. },
  29395. i.Frame.prototype = {
  29396. setTrim : function (k, m, e, o, n, u, q) {
  29397. this.trimmed = k,
  29398. k && (this.sourceSizeW = m, this.sourceSizeH = e, this.centerX = Math.floor(y3U.v4G(m, 2)), this.centerY = Math.floor(y3U.t4G(e, 2)), this.spriteSourceSizeX = o, this.spriteSourceSizeY = n, this.spriteSourceSizeW = u, this.spriteSourceSizeH = q);
  29399. },
  29400. clone : function () {
  29401. var k = new i.Frame(this.index, this.x, this.y, this.width, this.height, this.name, this.uuid);
  29402. for (var m in this)
  29403. this.hasOwnProperty(m) && (k[m] = this[m]);
  29404. return k;
  29405. },
  29406. getRect : function (k) {
  29407. return "undefined" == typeof k ? k = new i.Rectangle(this.x, this.y, this.width, this.height) : k.setTo(this.x, this.y, this.width, this.height),
  29408. k;
  29409. }
  29410. },
  29411. i.Frame.prototype.constructor = i.Frame,
  29412. i.FrameData = function () {
  29413. this._frames = [],
  29414. this._frameNames = [];
  29415. },
  29416. i.FrameData.prototype = {
  29417. addFrame : function (k) {
  29418. return k.index = this._frames.length,
  29419. this._frames.push(k),
  29420. y3U.y4G("", k.name) && (this._frameNames[k.name] = k.index),
  29421. k;
  29422. },
  29423. getFrame : function (k) {
  29424. return y3U.o4G(k, this._frames.length) && (k = 0),
  29425. this._frames[k];
  29426. },
  29427. getFrameByName : function (k) {
  29428. return "number" == typeof this._frameNames[k] ? this._frames[this._frameNames[k]] : null;
  29429. },
  29430. checkFrameName : function (k) {
  29431. return y3U.x4G(null, this._frameNames[k]) ? !1 : !0;
  29432. },
  29433. clone : function () {
  29434. for (var k = new i.FrameData, m = 0; y3U.p4G(m, this._frames.length); m++)
  29435. k._frames.push(this._frames[m].clone());
  29436. for (var e in this._frameNames)
  29437. this._frameNames.hasOwnProperty(e) && k._frameNames.push(this._frameNames[e]);
  29438. return k;
  29439. },
  29440. getFrameRange : function (k, m, e) {
  29441. "undefined" == typeof e && (e = []);
  29442. for (var o = k; y3U.q4G(m, o); o++)
  29443. e.push(this._frames[o]);
  29444. return e;
  29445. },
  29446. getFrames : function (k, m, e) {
  29447. if ("undefined" == typeof m && (m = !0), "undefined" == typeof e && (e = []), "undefined" == typeof k || y3U.b4G(0, k.length))
  29448. for (var o = 0; y3U.j4G(o, this._frames.length); o++)
  29449. e.push(this._frames[o]);
  29450. else
  29451. for (var o = 0, n = k.length; y3U.d4G(n, o); o++)
  29452. e.push(m ? this.getFrame(k[o]) : this.getFrameByName(k[o]));
  29453. return e;
  29454. },
  29455. getFrameIndexes : function (k, m, e) {
  29456. if ("undefined" == typeof m && (m = !0), "undefined" == typeof e && (e = []), "undefined" == typeof k || y3U.c4G(0, k.length))
  29457. for (var o = 0, n = this._frames.length; y3U.s4G(n, o); o++)
  29458. e.push(this._frames[o].index);
  29459. else
  29460. for (var o = 0, n = k.length; y3U.Q4G(n, o); o++)
  29461. m ? e.push(k[o]) : this.getFrameByName(k[o]) && e.push(this.getFrameByName(k[o]).index);
  29462. return e;
  29463. }
  29464. },
  29465. i.FrameData.prototype.constructor = i.FrameData,
  29466. Object.defineProperty(i.FrameData.prototype, "total", {
  29467. get : function () {
  29468. return this._frames.length;
  29469. }
  29470. }),
  29471. i.AnimationParser = {
  29472. spriteSheet : function (k, m, e, o, n, u, q) {
  29473. var f = k.cache.getImage(m);
  29474. if (y3U.a3G(null, f))
  29475. return null;
  29476. var j = f.width,
  29477. U0 = f.height;
  29478. y3U.W3G(0, e) && (e = Math.floor(-j / Math.min(-1, e))),
  29479. y3U.m3G(0, o) && (o = Math.floor(-U0 / Math.min(-1, o)));
  29480. var k0 = Math.floor(y3U.A3G((j - u), (e + q))),
  29481. a0 = Math.floor(y3U.w3G((U0 - u), (o + q))),
  29482. T0 = y3U.E3G(k0, a0);
  29483. if (-1 !== n && (T0 = n), y3U.e3G(0, j) || y3U.g3G(0, U0) || y3U.r3G(e, j) || y3U.i3G(o, U0) || y3U.u3G(0, T0))
  29484. return console.warn("Phaser.AnimationParser.spriteSheet: '" + m + "'s width/height zero or width/height < given frameWidth/frameHeight"), null;
  29485. for (var G0 = new i.FrameData, W0 = u, N0 = u, S0 = 0; y3U.P3G(T0, S0); S0++) {
  29486. var I0 = k.rnd.uuid();
  29487. G0.addFrame(new i.Frame(S0, W0, N0, e, o, "", I0)),
  29488. PIXI.TextureCache[I0] = new PIXI.Texture(PIXI.BaseTextureCache[m], {
  29489. x : W0,
  29490. y : N0,
  29491. width : e,
  29492. height : o
  29493. }),
  29494. W0 += e + q,
  29495. y3U.D3G(W0 + e, j) && (W0 = u, N0 += o + q);
  29496. }
  29497. return G0;
  29498. },
  29499. JSONData : function (k, m, e) {
  29500. if (!m.frames)
  29501. return console.warn("Phaser.AnimationParser.JSONData: Invalid Texture Atlas JSON given, missing 'frames' array"), void console.log(m);
  29502. for (var o, n = new i.FrameData, u = m.frames, q = 0; y3U.Z3G(q, u.length); q++) {
  29503. var f = k.rnd.uuid();
  29504. o = n.addFrame(new i.Frame(q, u[q].frame.x, u[q].frame.y, u[q].frame.w, u[q].frame.h, u[q].filename, f)),
  29505. PIXI.TextureCache[f] = new PIXI.Texture(PIXI.BaseTextureCache[e], {
  29506. x : u[q].frame.x,
  29507. y : u[q].frame.y,
  29508. width : u[q].frame.w,
  29509. height : u[q].frame.h
  29510. }),
  29511. u[q].trimmed && o.setTrim(u[q].trimmed, u[q].sourceSize.w, u[q].sourceSize.h, u[q].spriteSourceSize.x, u[q].spriteSourceSize.y, u[q].spriteSourceSize.w, u[q].spriteSourceSize.h);
  29512. }
  29513. return n;
  29514. },
  29515. JSONDataHash : function (k, m, e) {
  29516. if (!m.frames)
  29517. return console.warn("Phaser.AnimationParser.JSONDataHash: Invalid Texture Atlas JSON given, missing 'frames' object"), void console.log(m);
  29518. var o,
  29519. n = new i.FrameData,
  29520. u = m.frames,
  29521. q = 0;
  29522. for (var f in u) {
  29523. var j = k.rnd.uuid();
  29524. o = n.addFrame(new i.Frame(q, u[f].frame.x, u[f].frame.y, u[f].frame.w, u[f].frame.h, f, j)),
  29525. PIXI.TextureCache[j] = new PIXI.Texture(PIXI.BaseTextureCache[e], {
  29526. x : u[f].frame.x,
  29527. y : u[f].frame.y,
  29528. width : u[f].frame.w,
  29529. height : u[f].frame.h
  29530. }),
  29531. u[f].trimmed && o.setTrim(u[f].trimmed, u[f].sourceSize.w, u[f].sourceSize.h, u[f].spriteSourceSize.x, u[f].spriteSourceSize.y, u[f].spriteSourceSize.w, u[f].spriteSourceSize.h),
  29532. q++;
  29533. }
  29534. return n;
  29535. },
  29536. XMLData : function (k, m, e) {
  29537. if (!m.getElementsByTagName("TextureAtlas"))
  29538. return void console.warn("Phaser.AnimationParser.XMLData: Invalid Texture Atlas XML given, missing <TextureAtlas> tag");
  29539. for (var o, n, u, q, f, j, U0, k0, a0, T0, G0, W0, N0 = new i.FrameData, S0 = m.getElementsByTagName("SubTexture"), I0 = 0; y3U.R3G(I0, S0.length); I0++)
  29540. n = k.rnd.uuid(), q = S0[I0].attributes, u = q.name.value, f = parseInt(q.x.value, 10), j = parseInt(q.y.value, 10), U0 = parseInt(q.width.value, 10), k0 = parseInt(q.height.value, 10), a0 = null, T0 = null, q.frameX && (a0 = Math.abs(parseInt(q.frameX.value, 10)), T0 = Math.abs(parseInt(q.frameY.value, 10)), G0 = parseInt(q.frameWidth.value, 10), W0 = parseInt(q.frameHeight.value, 10)), o = N0.addFrame(new i.Frame(I0, f, j, U0, k0, u, n)), PIXI.TextureCache[n] = new PIXI.Texture(PIXI.BaseTextureCache[e], {
  29541. x : f,
  29542. y : j,
  29543. width : U0,
  29544. height : k0
  29545. }), (y3U.O3G(null, a0) || y3U.V3G(null, T0)) && o.setTrim(!0, U0, k0, a0, T0, G0, W0);
  29546. return N0;
  29547. }
  29548. },
  29549. i.Cache = function (k) {
  29550. this.game = k,
  29551. this.autoResolveURL = !1,
  29552. this._canvases = {},
  29553. this._images = {},
  29554. this._textures = {},
  29555. this._sounds = {},
  29556. this._text = {},
  29557. this._json = {},
  29558. this._xml = {},
  29559. this._physics = {},
  29560. this._tilemaps = {},
  29561. this._binary = {},
  29562. this._bitmapDatas = {},
  29563. this._bitmapFont = {},
  29564. this._urlMap = {},
  29565. this._urlResolver = new Image,
  29566. this._urlTemp = null,
  29567. this.addDefaultImage(),
  29568. this.addMissingImage(),
  29569. this.onSoundUnlock = new i.Signal,
  29570. this._cacheMap = [],
  29571. this._cacheMap[i.Cache.CANVAS] = this._canvases,
  29572. this._cacheMap[i.Cache.IMAGE] = this._images,
  29573. this._cacheMap[i.Cache.TEXTURE] = this._textures,
  29574. this._cacheMap[i.Cache.SOUND] = this._sounds,
  29575. this._cacheMap[i.Cache.TEXT] = this._text,
  29576. this._cacheMap[i.Cache.PHYSICS] = this._physics,
  29577. this._cacheMap[i.Cache.TILEMAP] = this._tilemaps,
  29578. this._cacheMap[i.Cache.BINARY] = this._binary,
  29579. this._cacheMap[i.Cache.BITMAPDATA] = this._bitmapDatas,
  29580. this._cacheMap[i.Cache.BITMAPFONT] = this._bitmapFont,
  29581. this._cacheMap[i.Cache.JSON] = this._json,
  29582. this._cacheMap[i.Cache.XML] = this._xml;
  29583. },
  29584. i.Cache.CANVAS = 1,
  29585. i.Cache.IMAGE = 2,
  29586. i.Cache.TEXTURE = 3,
  29587. i.Cache.SOUND = 4,
  29588. i.Cache.TEXT = 5,
  29589. i.Cache.PHYSICS = 6,
  29590. i.Cache.TILEMAP = 7,
  29591. i.Cache.BINARY = 8,
  29592. i.Cache.BITMAPDATA = 9,
  29593. i.Cache.BITMAPFONT = 10,
  29594. i.Cache.JSON = 11,
  29595. i.Cache.XML = 12,
  29596. i.Cache.prototype = {
  29597. addCanvas : function (k, m, e) {
  29598. this._canvases[k] = {
  29599. canvas : m,
  29600. context : e
  29601. };
  29602. },
  29603. addBinary : function (k, m) {
  29604. this._binary[k] = m;
  29605. },
  29606. addBitmapData : function (k, m, e) {
  29607. return m.key = k,
  29608. "undefined" == typeof e && (e = new i.FrameData, e.addFrame(m.textureFrame)),
  29609. this._bitmapDatas[k] = {
  29610. data : m,
  29611. frameData : e
  29612. },
  29613. m;
  29614. },
  29615. addRenderTexture : function (k, m) {
  29616. var e = new i.Frame(0, 0, 0, m.width, m.height, "", "");
  29617. this._textures[k] = {
  29618. texture : m,
  29619. frame : e
  29620. };
  29621. },
  29622. addSpriteSheet : function (k, m, e, o, n, u, q, f) {
  29623. this._images[k] = {
  29624. url : m,
  29625. data : e,
  29626. frameWidth : o,
  29627. frameHeight : n,
  29628. margin : q,
  29629. spacing : f
  29630. },
  29631. PIXI.BaseTextureCache[k] = new PIXI.BaseTexture(e),
  29632. PIXI.TextureCache[k] = new PIXI.Texture(PIXI.BaseTextureCache[k]),
  29633. this._images[k].frameData = i.AnimationParser.spriteSheet(this.game, k, o, n, u, q, f),
  29634. this._resolveURL(m, this._images[k]);
  29635. },
  29636. addTilemap : function (k, m, e, o) {
  29637. this._tilemaps[k] = {
  29638. url : m,
  29639. data : e,
  29640. format : o
  29641. },
  29642. this._resolveURL(m, this._tilemaps[k]);
  29643. },
  29644. addTextureAtlas : function (k, m, e, o, n) {
  29645. this._images[k] = {
  29646. url : m,
  29647. data : e
  29648. },
  29649. PIXI.BaseTextureCache[k] = new PIXI.BaseTexture(e),
  29650. PIXI.TextureCache[k] = new PIXI.Texture(PIXI.BaseTextureCache[k]),
  29651. y3U.k9G(n, i.Loader.TEXTURE_ATLAS_JSON_ARRAY) ? this._images[k].frameData = i.AnimationParser.JSONData(this.game, o, k) : y3U.G9G(n, i.Loader.TEXTURE_ATLAS_JSON_HASH) ? this._images[k].frameData = i.AnimationParser.JSONDataHash(this.game, o, k) : y3U.N9G(n, i.Loader.TEXTURE_ATLAS_XML_STARLING) && (this._images[k].frameData = i.AnimationParser.XMLData(this.game, o, k)),
  29652. this._resolveURL(m, this._images[k]);
  29653. },
  29654. addBitmapFont : function (k, m, e, o, n, u) {
  29655. this._images[k] = {
  29656. url : m,
  29657. data : e
  29658. },
  29659. PIXI.BaseTextureCache[k] = new PIXI.BaseTexture(e),
  29660. PIXI.TextureCache[k] = new PIXI.Texture(PIXI.BaseTextureCache[k]),
  29661. i.LoaderParser.bitmapFont(this.game, o, k, n, u),
  29662. this._bitmapFont[k] = PIXI.BitmapText.fonts[k],
  29663. this._resolveURL(m, this._bitmapFont[k]);
  29664. },
  29665. addPhysicsData : function (k, m, e, o) {
  29666. this._physics[k] = {
  29667. url : m,
  29668. data : e,
  29669. format : o
  29670. },
  29671. this._resolveURL(m, this._physics[k]);
  29672. },
  29673. addDefaultImage : function () {
  29674. var k = new Image;
  29675. k.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg==",
  29676. this._images.__default = {
  29677. url : null,
  29678. data : k
  29679. },
  29680. this._images.__default.frame = new i.Frame(0, 0, 0, 32, 32, "", ""),
  29681. this._images.__default.frameData = new i.FrameData,
  29682. this._images.__default.frameData.addFrame(new i.Frame(0, 0, 0, 32, 32, null, this.game.rnd.uuid())),
  29683. PIXI.BaseTextureCache.__default = new PIXI.BaseTexture(k),
  29684. PIXI.TextureCache.__default = new PIXI.Texture(PIXI.BaseTextureCache.__default);
  29685. },
  29686. addMissingImage : function () {
  29687. var k = new Image;
  29688. k.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg==",
  29689. this._images.__missing = {
  29690. url : null,
  29691. data : k
  29692. },
  29693. this._images.__missing.frame = new i.Frame(0, 0, 0, 32, 32, "", ""),
  29694. this._images.__missing.frameData = new i.FrameData,
  29695. this._images.__missing.frameData.addFrame(new i.Frame(0, 0, 0, 32, 32, null, this.game.rnd.uuid())),
  29696. PIXI.BaseTextureCache.__missing = new PIXI.BaseTexture(k),
  29697. PIXI.TextureCache.__missing = new PIXI.Texture(PIXI.BaseTextureCache.__missing);
  29698. },
  29699. addText : function (k, m, e) {
  29700. this._text[k] = {
  29701. url : m,
  29702. data : e
  29703. },
  29704. this._resolveURL(m, this._text[k]);
  29705. },
  29706. addJSON : function (k, m, e) {
  29707. this._json[k] = {
  29708. url : m,
  29709. data : e
  29710. },
  29711. this._resolveURL(m, this._json[k]);
  29712. },
  29713. addXML : function (k, m, e) {
  29714. this._xml[k] = {
  29715. url : m,
  29716. data : e
  29717. },
  29718. this._resolveURL(m, this._xml[k]);
  29719. },
  29720. addImage : function (k, m, e) {
  29721. this._images[k] = {
  29722. url : m,
  29723. data : e
  29724. },
  29725. this._images[k].frame = new i.Frame(0, 0, 0, e.width, e.height, k, this.game.rnd.uuid()),
  29726. this._images[k].frameData = new i.FrameData,
  29727. this._images[k].frameData.addFrame(new i.Frame(0, 0, 0, e.width, e.height, m, this.game.rnd.uuid())),
  29728. PIXI.BaseTextureCache[k] = new PIXI.BaseTexture(e),
  29729. PIXI.TextureCache[k] = new PIXI.Texture(PIXI.BaseTextureCache[k]),
  29730. this._resolveURL(m, this._images[k]);
  29731. },
  29732. addSound : function (k, m, e, o, n) {
  29733. o = o || !0,
  29734. n = n || !1;
  29735. var u = !1;
  29736. n && (u = !0),
  29737. this._sounds[k] = {
  29738. url : m,
  29739. data : e,
  29740. isDecoding : !1,
  29741. decoded : u,
  29742. webAudio : o,
  29743. audioTag : n,
  29744. locked : this.game.sound.touchLocked
  29745. },
  29746. this._resolveURL(m, this._sounds[k]);
  29747. },
  29748. reloadSound : function (k) {
  29749. var m = this;
  29750. this._sounds[k] && (this._sounds[k].data.src = this._sounds[k].url, this._sounds[k].data.addEventListener("canplaythrough", function () {
  29751. return m.reloadSoundComplete(k);
  29752. }, !1), this._sounds[k].data.load());
  29753. },
  29754. reloadSoundComplete : function (k) {
  29755. this._sounds[k] && (this._sounds[k].locked = !1, this.onSoundUnlock.dispatch(k));
  29756. },
  29757. updateSound : function (k, m, e) {
  29758. this._sounds[k] && (this._sounds[k][m] = e);
  29759. },
  29760. decodedSound : function (k, m) {
  29761. this._sounds[k].data = m,
  29762. this._sounds[k].decoded = !0,
  29763. this._sounds[k].isDecoding = !1;
  29764. },
  29765. getCanvas : function (k) {
  29766. return this._canvases[k] ? this._canvases[k].canvas : (console.warn('Phaser.Cache.getCanvas: Invalid key: "' + k + '"'), null);
  29767. },
  29768. getBitmapData : function (k) {
  29769. return this._bitmapDatas[k] ? this._bitmapDatas[k].data : (console.warn('Phaser.Cache.getBitmapData: Invalid key: "' + k + '"'), null);
  29770. },
  29771. getBitmapFont : function (k) {
  29772. return this._bitmapFont[k] ? this._bitmapFont[k] : (console.warn('Phaser.Cache.getBitmapFont: Invalid key: "' + k + '"'), null);
  29773. },
  29774. getPhysicsData : function (k, m, e) {
  29775. if ("undefined" == typeof m || y3U.L9G(null, m)) {
  29776. if (this._physics[k])
  29777. return this._physics[k].data;
  29778. console.warn('Phaser.Cache.getPhysicsData: Invalid key: "' + k + '"');
  29779. } else if (this._physics[k] && this._physics[k].data[m]) {
  29780. var o = this._physics[k].data[m];
  29781. if (!o || !e)
  29782. return o;
  29783. for (var n in o)
  29784. if (n = o[n], y3U.z9G(n.fixtureKey, e))
  29785. return n;
  29786. console.warn('Phaser.Cache.getPhysicsData: Could not find given fixtureKey: "' + e + " in " + k + '"');
  29787. } else
  29788. console.warn('Phaser.Cache.getPhysicsData: Invalid key/object: "' + k + " / " + m + '"');
  29789. return null;
  29790. },
  29791. checkKey : function (k, m) {
  29792. return this._cacheMap[k][m] ? !0 : !1;
  29793. },
  29794. checkCanvasKey : function (k) {
  29795. return this.checkKey(i.Cache.CANVAS, k);
  29796. },
  29797. checkImageKey : function (k) {
  29798. return this.checkKey(i.Cache.IMAGE, k);
  29799. },
  29800. checkTextureKey : function (k) {
  29801. return this.checkKey(i.Cache.TEXTURE, k);
  29802. },
  29803. checkSoundKey : function (k) {
  29804. return this.checkKey(i.Cache.SOUND, k);
  29805. },
  29806. checkTextKey : function (k) {
  29807. return this.checkKey(i.Cache.TEXT, k);
  29808. },
  29809. checkPhysicsKey : function (k) {
  29810. return this.checkKey(i.Cache.PHYSICS, k);
  29811. },
  29812. checkTilemapKey : function (k) {
  29813. return this.checkKey(i.Cache.TILEMAP, k);
  29814. },
  29815. checkBinaryKey : function (k) {
  29816. return this.checkKey(i.Cache.BINARY, k);
  29817. },
  29818. checkBitmapDataKey : function (k) {
  29819. return this.checkKey(i.Cache.BITMAPDATA, k);
  29820. },
  29821. checkBitmapFontKey : function (k) {
  29822. return this.checkKey(i.Cache.BITMAPFONT, k);
  29823. },
  29824. checkJSONKey : function (k) {
  29825. return this.checkKey(i.Cache.JSON, k);
  29826. },
  29827. checkXMLKey : function (k) {
  29828. return this.checkKey(i.Cache.XML, k);
  29829. },
  29830. checkURL : function (k) {
  29831. return this._urlMap[this._resolveURL(k)] ? !0 : !1;
  29832. },
  29833. getImage : function (k) {
  29834. return this._images[k] ? this._images[k].data : (console.warn('Phaser.Cache.getImage: Invalid key: "' + k + '"'), null);
  29835. },
  29836. getTilemapData : function (k) {
  29837. return this._tilemaps[k] ? this._tilemaps[k] : (console.warn('Phaser.Cache.getTilemapData: Invalid key: "' + k + '"'), null);
  29838. },
  29839. getFrameData : function (k, m) {
  29840. return "undefined" == typeof m && (m = i.Cache.IMAGE),
  29841. this._cacheMap[m][k] ? this._cacheMap[m][k].frameData : null;
  29842. },
  29843. updateFrameData : function (k, m) {
  29844. this._images[k] && (this._images[k].frameData = m);
  29845. },
  29846. getFrameByIndex : function (k, m) {
  29847. return this._images[k] ? this._images[k].frameData.getFrame(m) : null;
  29848. },
  29849. getFrameByName : function (k, m) {
  29850. return this._images[k] ? this._images[k].frameData.getFrameByName(m) : null;
  29851. },
  29852. getFrame : function (k) {
  29853. return this._images[k] ? this._images[k].frame : null;
  29854. },
  29855. getTextureFrame : function (k) {
  29856. return this._textures[k] ? this._textures[k].frame : null;
  29857. },
  29858. getRenderTexture : function (k) {
  29859. return this._textures[k] ? this._textures[k] : (console.warn('Phaser.Cache.getTexture: Invalid key: "' + k + '"'), null);
  29860. },
  29861. getTexture : function (k) {
  29862. return this._textures[k] ? this._textures[k] : void console.warn('Phaser.Cache.getTexture: Invalid key: "' + k + '"');
  29863. },
  29864. getSound : function (k) {
  29865. return this._sounds[k] ? this._sounds[k] : (console.warn('Phaser.Cache.getSound: Invalid key: "' + k + '"'), null);
  29866. },
  29867. getSoundData : function (k) {
  29868. return this._sounds[k] ? this._sounds[k].data : (console.warn('Phaser.Cache.getSoundData: Invalid key: "' + k + '"'), null);
  29869. },
  29870. isSoundDecoded : function (k) {
  29871. return this._sounds[k] ? this._sounds[k].decoded : void 0;
  29872. },
  29873. isSoundReady : function (k) {
  29874. return this._sounds[k] && this._sounds[k].decoded && this.game.sound.touchLocked === !1;
  29875. },
  29876. getFrameCount : function (k) {
  29877. return this._images[k] ? this._images[k].frameData.total : 0;
  29878. },
  29879. getText : function (k) {
  29880. return this._text[k] ? this._text[k].data : (console.warn('Phaser.Cache.getText: Invalid key: "' + k + '"'), null);
  29881. },
  29882. getJSON : function (k) {
  29883. return this._json[k] ? this._json[k].data : (console.warn('Phaser.Cache.getJSON: Invalid key: "' + k + '"'), null);
  29884. },
  29885. getXML : function (k) {
  29886. return this._xml[k] ? this._xml[k].data : (console.warn('Phaser.Cache.getXML: Invalid key: "' + k + '"'), null);
  29887. },
  29888. getBinary : function (k) {
  29889. return this._binary[k] ? this._binary[k] : (console.warn('Phaser.Cache.getBinary: Invalid key: "' + k + '"'), null);
  29890. },
  29891. getURL : function (k) {
  29892. var k = this._resolveURL(k);
  29893. return k ? this._urlMap[k] : (console.warn('Phaser.Cache.getUrl: Invalid url: "' + k + '" or Cache.autoResolveURL was false'), null);
  29894. },
  29895. getUrl : function (k) {
  29896. return this.getURL(k);
  29897. },
  29898. getKeys : function (k) {
  29899. var m = null;
  29900. switch (k) {
  29901. case i.Cache.CANVAS:
  29902. m = this._canvases;
  29903. break;
  29904. case i.Cache.IMAGE:
  29905. m = this._images;
  29906. break;
  29907. case i.Cache.TEXTURE:
  29908. m = this._textures;
  29909. break;
  29910. case i.Cache.SOUND:
  29911. m = this._sounds;
  29912. break;
  29913. case i.Cache.TEXT:
  29914. m = this._text;
  29915. break;
  29916. case i.Cache.PHYSICS:
  29917. m = this._physics;
  29918. break;
  29919. case i.Cache.TILEMAP:
  29920. m = this._tilemaps;
  29921. break;
  29922. case i.Cache.BINARY:
  29923. m = this._binary;
  29924. break;
  29925. case i.Cache.BITMAPDATA:
  29926. m = this._bitmapDatas;
  29927. break;
  29928. case i.Cache.BITMAPFONT:
  29929. m = this._bitmapFont;
  29930. break;
  29931. case i.Cache.JSON:
  29932. m = this._json;
  29933. break;
  29934. case i.Cache.XML:
  29935. m = this._xml;
  29936. }
  29937. if (m) {
  29938. var e = [];
  29939. for (var o in m)
  29940. y3U.J9G("__default", o) && y3U.H9G("__missing", o) && e.push(o);
  29941. return e;
  29942. }
  29943. },
  29944. removeCanvas : function (k) {
  29945. delete this._canvases[k];
  29946. },
  29947. removeImage : function (k, m) {
  29948. "undefined" == typeof m && (m = !0),
  29949. delete this._images[k],
  29950. m && PIXI.BaseTextureCache[k].destroy();
  29951. },
  29952. removeSound : function (k) {
  29953. delete this._sounds[k];
  29954. },
  29955. removeText : function (k) {
  29956. delete this._text[k];
  29957. },
  29958. removeJSON : function (k) {
  29959. delete this._json[k];
  29960. },
  29961. removeXML : function (k) {
  29962. delete this._xml[k];
  29963. },
  29964. removePhysics : function (k) {
  29965. delete this._physics[k];
  29966. },
  29967. removeTilemap : function (k) {
  29968. delete this._tilemaps[k];
  29969. },
  29970. removeBinary : function (k) {
  29971. delete this._binary[k];
  29972. },
  29973. removeBitmapData : function (k) {
  29974. delete this._bitmapDatas[k];
  29975. },
  29976. removeBitmapFont : function (k) {
  29977. delete this._bitmapFont[k];
  29978. },
  29979. _resolveURL : function (k, m) {
  29980. return this.autoResolveURL ? (this._urlResolver.src = this.game.load.baseURL + k, this._urlTemp = this._urlResolver.src, this._urlResolver.src = "", m && (this._urlMap[this._urlTemp] = m), this._urlTemp) : null;
  29981. },
  29982. destroy : function () {
  29983. for (var k in this._canvases)
  29984. delete this._canvases[k];
  29985. for (var k in this._images)
  29986. y3U.h9G("__default", k) && y3U.F9G("__missing", k) && delete this._images[k];
  29987. for (var k in this._sounds)
  29988. delete this._sounds[k];
  29989. for (var k in this._text)
  29990. delete this._text[k];
  29991. for (var k in this._json)
  29992. delete this._json[k];
  29993. for (var k in this._xml)
  29994. delete this._xml[k];
  29995. for (var k in this._textures)
  29996. delete this._textures[k];
  29997. for (var k in this._physics)
  29998. delete this._physics[k];
  29999. for (var k in this._tilemaps)
  30000. delete this._tilemaps[k];
  30001. for (var k in this._binary)
  30002. delete this._binary[k];
  30003. for (var k in this._bitmapDatas)
  30004. delete this._bitmapDatas[k];
  30005. for (var k in this._bitmapFont)
  30006. delete this._bitmapFont[k];
  30007. this._urlMap = null,
  30008. this._urlResolver = null,
  30009. this._urlTemp = null;
  30010. }
  30011. },
  30012. i.Cache.prototype.constructor = i.Cache,
  30013. i.Loader = function (k) {
  30014. this.game = k,
  30015. this.isLoading = !1,
  30016. this.hasLoaded = !1,
  30017. this.progress = 0,
  30018. this.progressFloat = 0,
  30019. this.preloadSprite = null,
  30020. this.crossOrigin = !1,
  30021. this.baseURL = "",
  30022. this.onLoadStart = new i.Signal,
  30023. this.onFileStart = new i.Signal,
  30024. this.onFileComplete = new i.Signal,
  30025. this.onFileError = new i.Signal,
  30026. this.onLoadComplete = new i.Signal,
  30027. this.onPackComplete = new i.Signal,
  30028. this.useXDomainRequest = !1,
  30029. this._packList = [],
  30030. this._packIndex = 0,
  30031. this._fileList = [],
  30032. this._fileIndex = 0,
  30033. this._progressChunk = 0,
  30034. this._xhr = new XMLHttpRequest,
  30035. this._ajax = null;
  30036. },
  30037. i.Loader.TEXTURE_ATLAS_JSON_ARRAY = 0,
  30038. i.Loader.TEXTURE_ATLAS_JSON_HASH = 1,
  30039. i.Loader.TEXTURE_ATLAS_XML_STARLING = 2,
  30040. i.Loader.PHYSICS_LIME_CORONA_JSON = 3,
  30041. i.Loader.PHYSICS_PHASER_JSON = 4,
  30042. i.Loader.prototype = {
  30043. setPreloadSprite : function (k, m) {
  30044. m = m || 0,
  30045. this.preloadSprite = {
  30046. sprite : k,
  30047. direction : m,
  30048. width : k.width,
  30049. height : k.height,
  30050. rect : null
  30051. },
  30052. this.preloadSprite.rect = y3U.M9G(0, m) ? new i.Rectangle(0, 0, 1, k.height) : new i.Rectangle(0, 0, k.width, 1),
  30053. k.crop(this.preloadSprite.rect),
  30054. k.visible = !0;
  30055. },
  30056. resize : function () {
  30057. this.preloadSprite && y3U.n9G(this.preloadSprite.height, this.preloadSprite.sprite.height) && (this.preloadSprite.rect.height = this.preloadSprite.sprite.height);
  30058. },
  30059. checkKeyExists : function (k, m) {
  30060. if (y3U.f9G(this._fileList.length, 0))
  30061. for (var e = 0; y3U.K9G(e, this._fileList.length); e++)
  30062. if (y3U.B9G(this._fileList[e].type, k) && y3U.l9G(this._fileList[e].key, m))
  30063. return !0;
  30064. return !1;
  30065. },
  30066. getAssetIndex : function (k, m) {
  30067. if (y3U.X9G(this._fileList.length, 0))
  30068. for (var e = 0; y3U.Y9G(e, this._fileList.length); e++)
  30069. if (y3U.U5G(this._fileList[e].type, k) && y3U.T5G(this._fileList[e].key, m))
  30070. return e;
  30071. return -1;
  30072. },
  30073. getAsset : function (k, m) {
  30074. if (y3U.S5G(this._fileList.length, 0))
  30075. for (var e = 0; y3U.I5G(e, this._fileList.length); e++)
  30076. if (y3U.C5G(this._fileList[e].type, k) && y3U.v5G(this._fileList[e].key, m))
  30077. return {
  30078. index : e,
  30079. file : this._fileList[e]
  30080. };
  30081. return !1;
  30082. },
  30083. reset : function () {
  30084. this.preloadSprite = null,
  30085. this.isLoading = !1,
  30086. this._packList.length = 0,
  30087. this._packIndex = 0,
  30088. this._fileList.length = 0,
  30089. this._fileIndex = 0;
  30090. },
  30091. addToFileList : function (m, e, o, n) {
  30092. var u = function (k) {
  30093. q[f] = k[f];
  30094. },
  30095. q = {
  30096. type : m,
  30097. key : e,
  30098. url : o,
  30099. data : null,
  30100. error : !1,
  30101. loaded : !1
  30102. };
  30103. if ("undefined" != typeof n)
  30104. for (var f in n)
  30105. u(n);
  30106. this.checkKeyExists(m, e) === !1 && this._fileList.push(q);
  30107. },
  30108. replaceInFileList : function (m, e, o, n) {
  30109. var u = function (k) {
  30110. q[f] = k[f];
  30111. },
  30112. q = {
  30113. type : m,
  30114. key : e,
  30115. url : o,
  30116. data : null,
  30117. error : !1,
  30118. loaded : !1
  30119. };
  30120. if ("undefined" != typeof n)
  30121. for (var f in n)
  30122. u(n);
  30123. var j = this.getAssetIndex(m, e);
  30124. -1 === j ? this._fileList.push(q) : this._fileList[j] = q;
  30125. },
  30126. pack : function (k, m, e, o) {
  30127. return "undefined" == typeof m && (m = null),
  30128. "undefined" == typeof e && (e = null),
  30129. "undefined" == typeof o && (o = this),
  30130. y3U.t5G(null, m) && y3U.y5G(null, e) ? (console.warn("Phaser.Loader.pack - Both url and data are null. One must be set."), this) : (e && "string" == typeof e && (e = JSON.parse(e)), this._packList.push({
  30131. key : k,
  30132. url : m,
  30133. data : e,
  30134. loaded : !1,
  30135. error : !1,
  30136. callbackContext : o
  30137. }), this);
  30138. },
  30139. image : function (k, m, e) {
  30140. return "undefined" == typeof e && (e = !1),
  30141. e ? this.replaceInFileList("image", k, m) : this.addToFileList("image", k, m),
  30142. this;
  30143. },
  30144. text : function (k, m, e) {
  30145. return "undefined" == typeof e && (e = !1),
  30146. e ? this.replaceInFileList("text", k, m) : this.addToFileList("text", k, m),
  30147. this;
  30148. },
  30149. json : function (k, m, e) {
  30150. return "undefined" == typeof e && (e = !1),
  30151. e ? this.replaceInFileList("json", k, m) : this.addToFileList("json", k, m),
  30152. this;
  30153. },
  30154. xml : function (k, m, e) {
  30155. return "undefined" == typeof e && (e = !1),
  30156. e ? this.replaceInFileList("xml", k, m) : this.addToFileList("xml", k, m),
  30157. this;
  30158. },
  30159. script : function (k, m, e, o) {
  30160. return "undefined" == typeof e && (e = !1),
  30161. e !== !1 && "undefined" == typeof o && (o = e),
  30162. this.addToFileList("script", k, m, {
  30163. callback : e,
  30164. callbackContext : o
  30165. }),
  30166. this;
  30167. },
  30168. binary : function (k, m, e, o) {
  30169. return "undefined" == typeof e && (e = !1),
  30170. e !== !1 && "undefined" == typeof o && (o = e),
  30171. this.addToFileList("binary", k, m, {
  30172. callback : e,
  30173. callbackContext : o
  30174. }),
  30175. this;
  30176. },
  30177. spritesheet : function (k, m, e, o, n, u, q) {
  30178. return "undefined" == typeof n && (n = -1),
  30179. "undefined" == typeof u && (u = 0),
  30180. "undefined" == typeof q && (q = 0),
  30181. this.addToFileList("spritesheet", k, m, {
  30182. frameWidth : e,
  30183. frameHeight : o,
  30184. frameMax : n,
  30185. margin : u,
  30186. spacing : q
  30187. }),
  30188. this;
  30189. },
  30190. audio : function (k, m, e) {
  30191. return "undefined" == typeof e && (e = !0),
  30192. this.addToFileList("audio", k, m, {
  30193. buffer : null,
  30194. autoDecode : e
  30195. }),
  30196. this;
  30197. },
  30198. audiosprite : function (k, m, e) {
  30199. return this.audio(k, m),
  30200. this.json(k + "-audioatlas", e),
  30201. this;
  30202. },
  30203. tilemap : function (k, m, e, o) {
  30204. if ("undefined" == typeof m && (m = null), "undefined" == typeof e && (e = null), "undefined" == typeof o && (o = i.Tilemap.CSV), y3U.o5G(null, m) && y3U.x5G(null, e))
  30205. return console.warn("Phaser.Loader.tilemap - Both url and data are null. One must be set."), this;
  30206. if (e) {
  30207. switch (o) {
  30208. case i.Tilemap.CSV:
  30209. break;
  30210. case i.Tilemap.TILED_JSON:
  30211. "string" == typeof e && (e = JSON.parse(e));
  30212. }
  30213. this.game.cache.addTilemap(k, null, e, o);
  30214. } else
  30215. this.addToFileList("tilemap", k, m, {
  30216. format : o
  30217. });
  30218. return this;
  30219. },
  30220. physics : function (k, m, e, o) {
  30221. return "undefined" == typeof m && (m = null),
  30222. "undefined" == typeof e && (e = null),
  30223. "undefined" == typeof o && (o = i.Physics.LIME_CORONA_JSON),
  30224. y3U.p5G(null, m) && y3U.q5G(null, e) ? (console.warn("Phaser.Loader.physics - Both url and data are null. One must be set."), this) : (e ? ("string" == typeof e && (e = JSON.parse(e)), this.game.cache.addPhysicsData(k, null, e, o)) : this.addToFileList("physics", k, m, {
  30225. format : o
  30226. }), this);
  30227. },
  30228. bitmapFont : function (m, e, o, n, u, q) {
  30229. if ("undefined" == typeof o && (o = null), "undefined" == typeof n && (n = null), "undefined" == typeof u && (u = 0), "undefined" == typeof q && (q = 0), o)
  30230. this.addToFileList("bitmapfont", m, e, {
  30231. xmlURL : o,
  30232. xSpacing : u,
  30233. ySpacing : q
  30234. });
  30235. else if ("string" == typeof n) {
  30236. var f;
  30237. try {
  30238. if (r2w8n[E8n]['DOMParser']) {
  30239. var j = new DOMParser;
  30240. f = j.parseFromString(n, "text/xml");
  30241. } else
  30242. f = new ActiveXObject("Microsoft.XMLDOM"), f.async = "false", f.loadXML(n);
  30243. } catch (k) {
  30244. var U0 = function () {
  30245. f = void 0;
  30246. };
  30247. U0();
  30248. }
  30249. if (!f || !f.documentElement || f.getElementsByTagName("parsererror").length)
  30250. throw new Error("Phaser.Loader. Invalid Bitmap Font XML given");
  30251. this.addToFileList("bitmapfont", m, e, {
  30252. xmlURL : null,
  30253. xmlData : f,
  30254. xSpacing : u,
  30255. ySpacing : q
  30256. });
  30257. }
  30258. return this;
  30259. },
  30260. atlasJSONArray : function (k, m, e, o) {
  30261. return this.atlas(k, m, e, o, i.Loader.TEXTURE_ATLAS_JSON_ARRAY);
  30262. },
  30263. atlasJSONHash : function (k, m, e, o) {
  30264. return this.atlas(k, m, e, o, i.Loader.TEXTURE_ATLAS_JSON_HASH);
  30265. },
  30266. atlasXML : function (k, m, e, o) {
  30267. return this.atlas(k, m, e, o, i.Loader.TEXTURE_ATLAS_XML_STARLING);
  30268. },
  30269. atlas : function (m, e, o, n, u) {
  30270. if ("undefined" == typeof o && (o = null), "undefined" == typeof n && (n = null), "undefined" == typeof u && (u = i.Loader.TEXTURE_ATLAS_JSON_ARRAY), o)
  30271. this.addToFileList("textureatlas", m, e, {
  30272. atlasURL : o,
  30273. format : u
  30274. });
  30275. else {
  30276. switch (u) {
  30277. case i.Loader.TEXTURE_ATLAS_JSON_ARRAY:
  30278. "string" == typeof n && (n = JSON.parse(n));
  30279. break;
  30280. case i.Loader.TEXTURE_ATLAS_XML_STARLING:
  30281. if ("string" == typeof n) {
  30282. var q = function (k) {
  30283. n = k;
  30284. };
  30285. var f;
  30286. try {
  30287. if (r2w8n[E8n]['DOMParser']) {
  30288. var j = new DOMParser;
  30289. f = j.parseFromString(n, "text/xml");
  30290. } else
  30291. f = new ActiveXObject("Microsoft.XMLDOM"), f.async = "false", f.loadXML(n);
  30292. } catch (k) {
  30293. var U0 = function () {
  30294. f = void 0;
  30295. };
  30296. U0();
  30297. }
  30298. if (!f || !f.documentElement || f.getElementsByTagName("parsererror").length)
  30299. throw new Error("Phaser.Loader. Invalid Texture Atlas XML given");
  30300. q(f);
  30301. }
  30302. }
  30303. this.addToFileList("textureatlas", m, e, {
  30304. atlasURL : null,
  30305. atlasData : n,
  30306. format : u
  30307. });
  30308. }
  30309. return this;
  30310. },
  30311. removeFile : function (k, m) {
  30312. var e = this.getAsset(k, m);
  30313. e !== !1 && this._fileList.splice(e.index, 1);
  30314. },
  30315. removeAll : function () {
  30316. this._fileList.length = 0;
  30317. },
  30318. start : function () {
  30319. this.isLoading || (y3U.b5G(this._packList.length, 0) ? (this._packIndex = 0, this.loadPack()) : this.beginLoad());
  30320. },
  30321. beginLoad : function () {
  30322. this.progress = 0,
  30323. this.progressFloat = 0,
  30324. this.hasLoaded = !1,
  30325. this.isLoading = !0,
  30326. this.onLoadStart.dispatch(this._fileList.length),
  30327. y3U.j5G(this._fileList.length, 0) ? (this._fileIndex = 0, this._progressChunk = y3U.d5G(100, this._fileList.length), this.loadFile()) : (this.progress = 100, this.progressFloat = 100, this.hasLoaded = !0, this.isLoading = !1, this.onLoadComplete.dispatch());
  30328. },
  30329. loadPack : function () {
  30330. if (!this._packList[this._packIndex])
  30331. return void console.warn("Phaser.Loader loadPackList invalid index " + this._packIndex);
  30332. var k = this._packList[this._packIndex];
  30333. y3U.c5G(null, k.data) ? this.packLoadComplete(this._packIndex, !1) : this.xhrLoad(this._packIndex, this.baseURL + k.url, "text", "packLoadComplete", "packLoadError");
  30334. },
  30335. packLoadComplete : function (k, m) {
  30336. if ("undefined" == typeof m && (m = !0), !this._packList[k])
  30337. return void console.warn("Phaser.Loader packLoadComplete invalid index " + k);
  30338. var e = this._packList[k];
  30339. if (e.loaded = !0, m)
  30340. var o = JSON.parse(this._xhr.responseText);
  30341. else
  30342. var o = this._packList[k].data;
  30343. if (o[e.key])
  30344. for (var n, u = 0; y3U.s5G(u, o[e.key].length); u++)
  30345. switch (n = o[e.key][u], n.type) {
  30346. case "image":
  30347. this.image(n.key, n.url, n.overwrite);
  30348. break;
  30349. case "text":
  30350. this.text(n.key, n.url, n.overwrite);
  30351. break;
  30352. case "json":
  30353. this.json(n.key, n.url, n.overwrite);
  30354. break;
  30355. case "xml":
  30356. this.xml(n.key, n.url, n.overwrite);
  30357. break;
  30358. case "script":
  30359. this.script(n.key, n.url, n.callback, e.callbackContext);
  30360. break;
  30361. case "binary":
  30362. this.binary(n.key, n.url, n.callback, e.callbackContext);
  30363. break;
  30364. case "spritesheet":
  30365. this.spritesheet(n.key, n.url, n.frameWidth, n.frameHeight, n.frameMax, n.margin, n.spacing);
  30366. break;
  30367. case "audio":
  30368. this.audio(n.key, n.urls, n.autoDecode);
  30369. break;
  30370. case "tilemap":
  30371. this.tilemap(n.key, n.url, n.data, i.Tilemap[n.format]);
  30372. break;
  30373. case "physics":
  30374. this.physics(n.key, n.url, n.data, i.Loader[n.format]);
  30375. break;
  30376. case "bitmapFont":
  30377. this.bitmapFont(n.key, n.textureURL, n.xmlURL, n.xmlData, n.xSpacing, n.ySpacing);
  30378. break;
  30379. case "atlasJSONArray":
  30380. this.atlasJSONArray(n.key, n.textureURL, n.atlasURL, n.atlasData);
  30381. break;
  30382. case "atlasJSONHash":
  30383. this.atlasJSONHash(n.key, n.textureURL, n.atlasURL, n.atlasData);
  30384. break;
  30385. case "atlasXML":
  30386. this.atlasXML(n.key, n.textureURL, n.atlasURL, n.atlasData);
  30387. break;
  30388. case "atlas":
  30389. this.atlas(n.key, n.textureURL, n.atlasURL, n.atlasData, i.Loader[n.format]);
  30390. }
  30391. this.nextPack(k, !0);
  30392. },
  30393. packError : function (k) {
  30394. this._packList[k].loaded = !0,
  30395. this._packList[k].error = !0,
  30396. this.onFileError.dispatch(this._packList[k].key, this._packList[k]),
  30397. console.warn("Phaser.Loader error loading pack file: " + this._packList[k].key + " from URL " + this._packList[k].url),
  30398. this.nextPack(k, !1);
  30399. },
  30400. nextPack : function (k, m) {
  30401. this.onPackComplete.dispatch(this._packList[k].key, m, this.totalLoadedPacks(), this._packList.length),
  30402. this._packIndex++,
  30403. y3U.Q5G(this._packIndex, this._packList.length) ? this.loadPack() : this.beginLoad();
  30404. },
  30405. loadFile : function () {
  30406. if (!this._fileList[this._fileIndex])
  30407. return void console.warn("Phaser.Loader loadFile invalid index " + this._fileIndex);
  30408. var k = this._fileList[this._fileIndex],
  30409. m = this;
  30410. switch (this.onFileStart.dispatch(this.progress, k.key, k.url), k.type) {
  30411. case "image":
  30412. case "spritesheet":
  30413. case "textureatlas":
  30414. case "bitmapfont":
  30415. k.data = new Image,
  30416. k.data.name = k.key,
  30417. k.data.onload = function () {
  30418. return m.fileComplete(m._fileIndex);
  30419. },
  30420. k.data.onerror = function () {
  30421. return m.fileError(m._fileIndex);
  30422. },
  30423. this.crossOrigin && (k.data.crossOrigin = this.crossOrigin),
  30424. k.data.src = this.baseURL + k.url;
  30425. break;
  30426. case "audio":
  30427. k.url = this.getAudioURL(k.url),
  30428. y3U.a2G(null, k.url) ? this.game.sound.usingWebAudio ? this.xhrLoad(this._fileIndex, this.baseURL + k.url, "arraybuffer", "fileComplete", "fileError") : this.game.sound.usingAudioTag && (this.game.sound.touchLocked ? (k.data = new Audio, k.data.name = k.key, k.data.preload = "auto", k.data.src = this.baseURL + k.url, this.fileComplete(this._fileIndex)) : (k.data = new Audio, k.data.name = k.key, k.data.onerror = function () {
  30429. return m.fileError(m._fileIndex);
  30430. }, k.data.preload = "auto", k.data.src = this.baseURL + k.url, k.data.addEventListener("canplaythrough", function () {
  30431. i.GAMES[m.game.id].load.fileComplete(m._fileIndex);
  30432. }, !1), k.data.load())) : this.fileError(this._fileIndex);
  30433. break;
  30434. case "json":
  30435. this.useXDomainRequest && r2w8n[E8n]['XDomainRequest'] ? (this._ajax = new r2w8n[E8n]['XDomainRequest'], this._ajax.timeout = 3e3, this._ajax.onerror = function () {
  30436. return m.dataLoadError(m._fileIndex);
  30437. }, this._ajax.ontimeout = function () {
  30438. return m.dataLoadError(m._fileIndex);
  30439. }, this._ajax.onprogress = function () {}, this._ajax.onload = function () {
  30440. return m.jsonLoadComplete(m._fileIndex);
  30441. }, this._ajax.open("GET", this.baseURL + k.url, !0), setTimeout(function () {
  30442. m._ajax.send();
  30443. }, 0)) : this.xhrLoad(this._fileIndex, this.baseURL + k.url, "text", "jsonLoadComplete", "dataLoadError");
  30444. break;
  30445. case "xml":
  30446. this.xhrLoad(this._fileIndex, this.baseURL + k.url, "text", "xmlLoadComplete", "dataLoadError");
  30447. break;
  30448. case "tilemap":
  30449. if (y3U.W2G(k.format, i.Tilemap.TILED_JSON))
  30450. this.xhrLoad(this._fileIndex, this.baseURL + k.url, "text", "jsonLoadComplete", "dataLoadError");
  30451. else {
  30452. if (y3U.m2G(k.format, i.Tilemap.CSV))
  30453. throw new Error("Phaser.Loader. Invalid Tilemap format: " + k.format);
  30454. this.xhrLoad(this._fileIndex, this.baseURL + k.url, "text", "csvLoadComplete", "dataLoadError");
  30455. }
  30456. break;
  30457. case "text":
  30458. case "script":
  30459. case "physics":
  30460. this.xhrLoad(this._fileIndex, this.baseURL + k.url, "text", "fileComplete", "fileError");
  30461. break;
  30462. case "binary":
  30463. this.xhrLoad(this._fileIndex, this.baseURL + k.url, "arraybuffer", "fileComplete", "fileError");
  30464. }
  30465. },
  30466. xhrLoad : function (k, m, e, o, n) {
  30467. this._xhr.open("GET", m, !0),
  30468. this._xhr.responseType = e;
  30469. var u = this;
  30470. this._xhr.onload = function () {
  30471. return u[o](k);
  30472. },
  30473. this._xhr.onerror = function () {
  30474. return u[n](k);
  30475. },
  30476. this._xhr.send();
  30477. },
  30478. getAudioURL : function (k) {
  30479. var m;
  30480. "string" == typeof k && (k = [k]);
  30481. for (var e = 0; y3U.A2G(e, k.length); e++) {
  30482. if (m = k[e].toLowerCase(), y3U.w2G("blob:", m.substr(0, 5)))
  30483. return k[e];
  30484. if (m = m.substr((Math.max(0, m.lastIndexOf(".")) || y3U.E2G(1, 0)) + 1), y3U.e2G(m.indexOf("?"), 0) && (m = m.substr(0, m.indexOf("?"))), this.game.device.canPlayAudio(m))
  30485. return k[e];
  30486. }
  30487. return null;
  30488. },
  30489. fileError : function (k) {
  30490. this._fileList[k].loaded = !0,
  30491. this._fileList[k].error = !0,
  30492. this.onFileError.dispatch(this._fileList[k].key, this._fileList[k]),
  30493. console.warn("Phaser.Loader error loading file: " + this._fileList[k].key + " from URL " + this._fileList[k].url),
  30494. this.nextFile(k, !1);
  30495. },
  30496. fileComplete : function (m) {
  30497. var e = function () {
  30498. o.loaded = !0;
  30499. };
  30500. if (!this._fileList[m])
  30501. return void console.warn("Phaser.Loader fileComplete invalid index " + m);
  30502. var o = this._fileList[m];
  30503. e();
  30504. var n = !0;
  30505. switch (o.type) {
  30506. case "image":
  30507. this.game.cache.addImage(o.key, o.url, o.data);
  30508. break;
  30509. case "spritesheet":
  30510. this.game.cache.addSpriteSheet(o.key, o.url, o.data, o.frameWidth, o.frameHeight, o.frameMax, o.margin, o.spacing);
  30511. break;
  30512. case "textureatlas":
  30513. if (y3U.g2G(null, o.atlasURL))
  30514. this.game.cache.addTextureAtlas(o.key, o.url, o.data, o.atlasData, o.format);
  30515. else if (n = !1, y3U.r2G(o.format, i.Loader.TEXTURE_ATLAS_JSON_ARRAY) || y3U.i2G(o.format, i.Loader.TEXTURE_ATLAS_JSON_HASH))
  30516. this.xhrLoad(this._fileIndex, this.baseURL + o.atlasURL, "text", "jsonLoadComplete", "dataLoadError");
  30517. else {
  30518. if (y3U.u2G(o.format, i.Loader.TEXTURE_ATLAS_XML_STARLING))
  30519. throw new Error("Phaser.Loader. Invalid Texture Atlas format: " + o.format);
  30520. this.xhrLoad(this._fileIndex, this.baseURL + o.atlasURL, "text", "xmlLoadComplete", "dataLoadError");
  30521. }
  30522. break;
  30523. case "bitmapfont":
  30524. y3U.P2G(null, o.xmlURL) ? this.game.cache.addBitmapFont(o.key, o.url, o.data, o.xmlData, o.xSpacing, o.ySpacing) : (n = !1, this.xhrLoad(this._fileIndex, this.baseURL + o.xmlURL, "text", "xmlLoadComplete", "dataLoadError"));
  30525. break;
  30526. case "audio":
  30527. if (this.game.sound.usingWebAudio) {
  30528. if (o.data = this._xhr.response, this.game.cache.addSound(o.key, o.url, o.data, !0, !1), o.autoDecode) {
  30529. var u = this,
  30530. q = o.key;
  30531. this.game.cache.updateSound(q, "isDecoding", !0),
  30532. this.game.sound.context.decodeAudioData(o.data, function (k) {
  30533. k && (u.game.cache.decodedSound(q, k), u.game.sound.onSoundDecode.dispatch(q, u.game.cache.getSound(q)));
  30534. });
  30535. }
  30536. } else
  30537. o.data.removeEventListener("canplaythrough", i.GAMES[this.game.id].load.fileComplete), this.game.cache.addSound(o.key, o.url, o.data, !1, !0);
  30538. break;
  30539. case "text":
  30540. o.data = this._xhr.responseText,
  30541. this.game.cache.addText(o.key, o.url, o.data);
  30542. break;
  30543. case "physics":
  30544. var f = JSON.parse(this._xhr.responseText);
  30545. this.game.cache.addPhysicsData(o.key, o.url, f, o.format);
  30546. break;
  30547. case "script":
  30548. o.data = r2w8n[H8n]['createElement']("script"),
  30549. o.data.language = "javascript",
  30550. o.data.type = "text/javascript",
  30551. o.data.defer = !1,
  30552. o.data.text = this._xhr.responseText,
  30553. r2w8n[H8n].head.appendChild(o.data),
  30554. o.callback && (o.data = o.callback.call(o.callbackContext, o.key, this._xhr.responseText));
  30555. break;
  30556. case "binary":
  30557. o.data = o.callback ? o.callback.call(o.callbackContext, o.key, this._xhr.response) : this._xhr.response,
  30558. this.game.cache.addBinary(o.key, o.data);
  30559. }
  30560. n && this.nextFile(m, !0);
  30561. },
  30562. jsonLoadComplete : function (k) {
  30563. if (!this._fileList[k])
  30564. return void console.warn("Phaser.Loader jsonLoadComplete invalid index " + k);
  30565. var m = this._fileList[k];
  30566. if (this._ajax && this._ajax.responseText)
  30567. var e = JSON.parse(this._ajax.responseText);
  30568. else
  30569. var e = JSON.parse(this._xhr.responseText);
  30570. m.loaded = !0,
  30571. y3U.D2G("tilemap", m.type) ? this.game.cache.addTilemap(m.key, m.url, e, m.format) : y3U.Z2G("json", m.type) ? this.game.cache.addJSON(m.key, m.url, e) : this.game.cache.addTextureAtlas(m.key, m.url, m.data, e, m.format),
  30572. this.nextFile(k, !0);
  30573. },
  30574. csvLoadComplete : function (k) {
  30575. if (!this._fileList[k])
  30576. return void console.warn("Phaser.Loader csvLoadComplete invalid index " + k);
  30577. var m = this._fileList[k],
  30578. e = this._xhr.responseText;
  30579. m.loaded = !0,
  30580. this.game.cache.addTilemap(m.key, m.url, e, m.format),
  30581. this.nextFile(k, !0);
  30582. },
  30583. dataLoadError : function (k) {
  30584. var m = this._fileList[k];
  30585. m.loaded = !0,
  30586. m.error = !0,
  30587. console.warn("Phaser.Loader dataLoadError: " + m.key),
  30588. this.nextFile(k, !0);
  30589. },
  30590. xmlLoadComplete : function (m) {
  30591. y3U.R2G("", this._xhr.responseType) && y3U.O2G("text", this._xhr.responseType) && (console.warn("Invalid XML Response Type", this._fileList[m]), console.warn(this._xhr));
  30592. var e,
  30593. o = this._xhr.responseText;
  30594. try {
  30595. if (r2w8n[E8n]['DOMParser']) {
  30596. var n = new DOMParser;
  30597. e = n.parseFromString(o, "text/xml");
  30598. } else
  30599. e = new ActiveXObject("Microsoft.XMLDOM"), e.async = "false", e.loadXML(o);
  30600. } catch (k) {
  30601. var u = function () {
  30602. e = void 0;
  30603. };
  30604. u();
  30605. }
  30606. if (!e || !e.documentElement || e.getElementsByTagName("parsererror").length)
  30607. throw new Error("Phaser.Loader. Invalid XML given");
  30608. var q = this._fileList[m];
  30609. q.loaded = !0,
  30610. y3U.V2G("bitmapfont", q.type) ? this.game.cache.addBitmapFont(q.key, q.url, q.data, e, q.xSpacing, q.ySpacing) : y3U.k1G("textureatlas", q.type) ? this.game.cache.addTextureAtlas(q.key, q.url, q.data, e, q.format) : y3U.G1G("xml", q.type) && this.game.cache.addXML(q.key, q.url, e),
  30611. this.nextFile(m, !0);
  30612. },
  30613. nextFile : function (k, m) {
  30614. this.progressFloat += this._progressChunk,
  30615. this.progress = Math.round(this.progressFloat),
  30616. y3U.N1G(this.progress, 100) && (this.progress = 100),
  30617. y3U.L1G(null, this.preloadSprite) && (y3U.z1G(0, this.preloadSprite.direction) ? this.preloadSprite.rect.width = Math.floor(y3U.J1G(this.preloadSprite.width, 100, this.progress)) : this.preloadSprite.rect.height = Math.floor(y3U.e1G(this.preloadSprite.height, 100, this.progress)), this.preloadSprite.sprite.updateCrop()),
  30618. this.onFileComplete.dispatch(this.progress, this._fileList[k].key, m, this.totalLoadedFiles(), this._fileList.length),
  30619. y3U.o1G(this.totalQueuedFiles(), 0) ? (this._fileIndex++, this.loadFile()) : (this.hasLoaded = !0, this.isLoading = !1, this.removeAll(), this.onLoadComplete.dispatch());
  30620. },
  30621. totalLoadedFiles : function () {
  30622. for (var k = 0, m = 0; y3U.x1G(m, this._fileList.length); m++)
  30623. this._fileList[m].loaded && k++;
  30624. return k;
  30625. },
  30626. totalQueuedFiles : function () {
  30627. for (var k = 0, m = 0; y3U.p1G(m, this._fileList.length); m++)
  30628. this._fileList[m].loaded === !1 && k++;
  30629. return k;
  30630. },
  30631. totalLoadedPacks : function () {
  30632. for (var k = 0, m = 0; y3U.q1G(m, this._packList.length); m++)
  30633. this._packList[m].loaded && k++;
  30634. return k;
  30635. },
  30636. totalQueuedPacks : function () {
  30637. for (var k = 0, m = 0; y3U.b1G(m, this._packList.length); m++)
  30638. this._packList[m].loaded === !1 && k++;
  30639. return k;
  30640. }
  30641. },
  30642. i.Loader.prototype.constructor = i.Loader,
  30643. i.LoaderParser = {
  30644. bitmapFont : function (m, e, o, n, u) {
  30645. var q = function (k) {
  30646. PIXI.BitmapText.fonts[o] = k;
  30647. },
  30648. f = {},
  30649. j = e.getElementsByTagName("info")[0],
  30650. U0 = e.getElementsByTagName("common")[0];
  30651. f.font = j.getAttribute("face"),
  30652. f.size = parseInt(j.getAttribute("size"), 10),
  30653. f.lineHeight = parseInt(U0.getAttribute("lineHeight"), 10) + u,
  30654. f.chars = {};
  30655. for (var k0 = e.getElementsByTagName("char"), a0 = 0; y3U.j1G(a0, k0.length); a0++) {
  30656. var T0 = parseInt(k0[a0].getAttribute("id"), 10),
  30657. G0 = new PIXI.Rectangle(parseInt(k0[a0].getAttribute("x"), 10), parseInt(k0[a0].getAttribute("y"), 10), parseInt(k0[a0].getAttribute("width"), 10), parseInt(k0[a0].getAttribute("height"), 10));
  30658. f.chars[T0] = {
  30659. xOffset : parseInt(k0[a0].getAttribute("xoffset"), 10),
  30660. yOffset : parseInt(k0[a0].getAttribute("yoffset"), 10),
  30661. xAdvance : parseInt(k0[a0].getAttribute("xadvance"), 10) + n,
  30662. kerning : {},
  30663. texture : PIXI.TextureCache[o] = new PIXI.Texture(PIXI.BaseTextureCache[o], G0)
  30664. };
  30665. }
  30666. var W0 = e.getElementsByTagName("kerning");
  30667. for (a0 = 0; y3U.d1G(a0, W0.length); a0++) {
  30668. var N0 = function (k) {
  30669. f.chars[I0].kerning[S0] = k;
  30670. };
  30671. var S0 = parseInt(W0[a0].getAttribute("first"), 10),
  30672. I0 = parseInt(W0[a0].getAttribute("second"), 10),
  30673. m0 = parseInt(W0[a0].getAttribute("amount"), 10);
  30674. N0(m0);
  30675. }
  30676. q(f);
  30677. }
  30678. },
  30679. i.AudioSprite = function (k, m) {
  30680. this.game = k,
  30681. this.key = m,
  30682. this.config = this.game.cache.getJSON(m + "-audioatlas"),
  30683. this.autoplayKey = null,
  30684. this.autoplay = !1,
  30685. this.sounds = {};
  30686. for (var e in this.config.spritemap) {
  30687. var o = this.config.spritemap[e],
  30688. n = this.game.add.sound(this.key);
  30689. n.addMarker(e, o.start, y3U.c1G(o.end, o.start), null, o.loop),
  30690. this.sounds[e] = n;
  30691. }
  30692. this.config.autoplay && (this.autoplayKey = this.config.autoplay, this.play(this.autoplayKey), this.autoplay = this.sounds[this.autoplayKey]);
  30693. },
  30694. i.AudioSprite.prototype = {
  30695. play : function (k, m) {
  30696. return "undefined" == typeof m && (m = 1),
  30697. this.sounds[k].play(k, null, m);
  30698. },
  30699. stop : function (k) {
  30700. if (k)
  30701. this.sounds[k].stop();
  30702. else
  30703. for (var m in this.sounds)
  30704. this.sounds[m].stop();
  30705. },
  30706. get : function (k) {
  30707. return this.sounds[k];
  30708. }
  30709. },
  30710. i.AudioSprite.prototype.constructor = i.AudioSprite,
  30711. i.Sound = function (k, m, e, o, n) {
  30712. "undefined" == typeof e && (e = 1),
  30713. "undefined" == typeof o && (o = !1),
  30714. "undefined" == typeof n && (n = k.sound.connectToMaster),
  30715. this.game = k,
  30716. this.name = m,
  30717. this.key = m,
  30718. this.loop = o,
  30719. this.volume = e,
  30720. this.markers = {},
  30721. this.context = null,
  30722. this.autoplay = !1,
  30723. this.totalDuration = 0,
  30724. this.startTime = 0,
  30725. this.currentTime = 0,
  30726. this.duration = 0,
  30727. this.durationMS = 0,
  30728. this.position = 0,
  30729. this.stopTime = 0,
  30730. this.paused = !1,
  30731. this.pausedPosition = 0,
  30732. this.pausedTime = 0,
  30733. this.isPlaying = !1,
  30734. this.currentMarker = "",
  30735. this.pendingPlayback = !1,
  30736. this.override = !1,
  30737. this.allowMultiple = !1,
  30738. this.usingWebAudio = this.game.sound.usingWebAudio,
  30739. this.usingAudioTag = this.game.sound.usingAudioTag,
  30740. this.externalNode = null,
  30741. this.masterGainNode = null,
  30742. this.gainNode = null,
  30743. this.usingWebAudio ? (this.context = this.game.sound.context, this.masterGainNode = this.game.sound.masterGain, this.gainNode = "undefined" == typeof this.context.createGain ? this.context.createGainNode() : this.context.createGain(), this.gainNode.gain.value = y3U.s1G(e, this.game.sound.volume), n && this.gainNode.connect(this.masterGainNode)) : this.game.cache.getSound(m) && this.game.cache.isSoundReady(m) ? (this._sound = this.game.cache.getSoundData(m), this.totalDuration = 0, this._sound.duration && (this.totalDuration = this._sound.duration)) : this.game.cache.onSoundUnlock.add(this.soundHasUnlocked, this),
  30744. this.onDecoded = new i.Signal,
  30745. this.onPlay = new i.Signal,
  30746. this.onPause = new i.Signal,
  30747. this.onResume = new i.Signal,
  30748. this.onLoop = new i.Signal,
  30749. this.onStop = new i.Signal,
  30750. this.onMute = new i.Signal,
  30751. this.onMarkerComplete = new i.Signal,
  30752. this.onFadeComplete = new i.Signal,
  30753. this._volume = e,
  30754. this._buffer = null,
  30755. this._muted = !1,
  30756. this._tempMarker = 0,
  30757. this._tempPosition = 0,
  30758. this._tempVolume = 0,
  30759. this._muteVolume = 0,
  30760. this._tempLoop = 0,
  30761. this._paused = !1,
  30762. this._onDecodedEventDispatched = !1;
  30763. },
  30764. i.Sound.prototype = {
  30765. soundHasUnlocked : function (k) {
  30766. y3U.Q1G(k, this.key) && (this._sound = this.game.cache.getSoundData(this.key), this.totalDuration = this._sound.duration);
  30767. },
  30768. addMarker : function (k, m, e, o, n) {
  30769. "undefined" == typeof o && (o = 1),
  30770. "undefined" == typeof n && (n = !1),
  30771. this.markers[k] = {
  30772. name : k,
  30773. start : m,
  30774. stop : m + e,
  30775. volume : o,
  30776. duration : e,
  30777. durationMS : y3U.a6G(1e3, e),
  30778. loop : n
  30779. };
  30780. },
  30781. removeMarker : function (k) {
  30782. delete this.markers[k];
  30783. },
  30784. update : function () {
  30785. this.isDecoded && !this._onDecodedEventDispatched && (this.onDecoded.dispatch(this), this._onDecodedEventDispatched = !0),
  30786. this.pendingPlayback && this.game.cache.isSoundReady(this.key) && (this.pendingPlayback = !1, this.play(this._tempMarker, this._tempPosition, this._tempVolume, this._tempLoop)),
  30787. this.isPlaying && (this.currentTime = y3U.W6G(this.game.time.time, this.startTime), y3U.m6G(this.currentTime, this.durationMS) && (this.usingWebAudio ? this.loop ? (this.onLoop.dispatch(this), y3U.A6G("", this.currentMarker) ? (this.currentTime = 0, this.startTime = this.game.time.time) : (this.onMarkerComplete.dispatch(this.currentMarker, this), this.play(this.currentMarker, 0, this.volume, !0, !0))) : this.stop() : this.loop ? (this.onLoop.dispatch(this), this.play(this.currentMarker, 0, this.volume, !0, !0)) : this.stop()));
  30788. },
  30789. play : function (m, e, o, n, u) {
  30790. if (("undefined" == typeof m || m === !1 || y3U.w6G(null, m)) && (m = ""), "undefined" == typeof u && (u = !0), this.isPlaying && !this.allowMultiple && !u && !this.override)
  30791. return this;
  30792. if (this._sound && this.isPlaying && !this.allowMultiple && (this.override || u))
  30793. if (this.usingWebAudio)
  30794. if ("undefined" == typeof this._sound.stop)
  30795. this._sound.noteOff(0);
  30796. else
  30797. try {
  30798. this._sound.stop(0);
  30799. } catch (k) {}
  30800. else
  30801. this.usingAudioTag && (this._sound.pause(), this._sound.currentTime = 0);
  30802. if (y3U.E6G("", m) && y3U.e6G(Object.keys(this.markers).length, 0))
  30803. return this;
  30804. if (y3U.g6G("", m)) {
  30805. if (this.currentMarker = m, !this.markers[m])
  30806. return console.warn("Phaser.Sound.play: audio marker " + m + " doesn't exist"), this;
  30807. this.position = this.markers[m].start,
  30808. this.volume = this.markers[m].volume,
  30809. this.loop = this.markers[m].loop,
  30810. this.duration = this.markers[m].duration,
  30811. this.durationMS = this.markers[m].durationMS,
  30812. "undefined" != typeof o && (this.volume = o),
  30813. "undefined" != typeof n && (this.loop = n),
  30814. this._tempMarker = m,
  30815. this._tempPosition = this.position,
  30816. this._tempVolume = this.volume,
  30817. this._tempLoop = this.loop;
  30818. } else
  30819. e = e || 0, "undefined" == typeof o && (o = this._volume), "undefined" == typeof n && (n = this.loop), this.position = e, this.volume = o, this.loop = n, this.duration = 0, this.durationMS = 0, this._tempMarker = m, this._tempPosition = e, this._tempVolume = o, this._tempLoop = n;
  30820. return this.usingWebAudio ? this.game.cache.isSoundDecoded(this.key) ? (y3U.r6G(null, this._buffer) && (this._buffer = this.game.cache.getSoundData(this.key)), this._sound = this.context.createBufferSource(), this._sound.buffer = this._buffer, this._sound.connect(this.externalNode ? this.externalNode : this.gainNode), this.totalDuration = this._sound.buffer.duration, y3U.i6G(0, this.duration) && (this.duration = this.totalDuration, this.durationMS = y3U.u6G(1e3, this.totalDuration)), this.loop && y3U.P6G("", m) && (this._sound.loop = !0), "undefined" == typeof this._sound.start ? this._sound.noteGrainOn(0, this.position, this.duration) : this._sound.start(0, this.position, this.duration), this.isPlaying = !0, this.startTime = this.game.time.time, this.currentTime = 0, this.stopTime = this.startTime + this.durationMS, this.onPlay.dispatch(this)) : (this.pendingPlayback = !0, this.game.cache.getSound(this.key) && this.game.cache.getSound(this.key).isDecoding === !1 && this.game.sound.decode(this.key, this)) : this.game.cache.getSound(this.key) && this.game.cache.getSound(this.key).locked ? (this.game.cache.reloadSound(this.key), this.pendingPlayback = !0) : this._sound && (this.game.device.cocoonJS || y3U.D6G(4, this._sound.readyState)) ? (this._sound.play(), this.totalDuration = this._sound.duration, y3U.Z6G(0, this.duration) && (this.duration = this.totalDuration, this.durationMS = y3U.R6G(1e3, this.totalDuration)), this._sound.currentTime = this.position, this._sound.muted = this._muted, this._sound.volume = this._muted ? 0 : this._volume, this.isPlaying = !0, this.startTime = this.game.time.time, this.currentTime = 0, this.stopTime = this.startTime + this.durationMS, this.onPlay.dispatch(this)) : this.pendingPlayback = !0,
  30821. this;
  30822. },
  30823. restart : function (k, m, e, o) {
  30824. k = k || "",
  30825. m = m || 0,
  30826. e = e || 1,
  30827. "undefined" == typeof o && (o = !1),
  30828. this.play(k, m, e, o, !0);
  30829. },
  30830. pause : function () {
  30831. this.isPlaying && this._sound && (this.paused = !0, this.pausedPosition = this.currentTime, this.pausedTime = this.game.time.time, this.onPause.dispatch(this), this.stop());
  30832. },
  30833. resume : function () {
  30834. if (this.paused && this._sound) {
  30835. if (this.usingWebAudio) {
  30836. var k = this.position + y3U.O6G(this.pausedPosition, 1e3);
  30837. this._sound = this.context.createBufferSource(),
  30838. this._sound.buffer = this._buffer,
  30839. this._sound.connect(this.externalNode ? this.externalNode : this.gainNode),
  30840. this.loop && (this._sound.loop = !0),
  30841. "undefined" == typeof this._sound.start ? this._sound.noteGrainOn(0, k, this.duration) : this._sound.start(0, k, this.duration);
  30842. } else
  30843. this._sound.play();
  30844. this.isPlaying = !0,
  30845. this.paused = !1,
  30846. this.startTime += y3U.V6G(this.game.time.time, this.pausedTime),
  30847. this.onResume.dispatch(this);
  30848. }
  30849. },
  30850. stop : function () {
  30851. if (this.isPlaying && this._sound)
  30852. if (this.usingWebAudio)
  30853. if ("undefined" == typeof this._sound.stop)
  30854. this._sound.noteOff(0);
  30855. else
  30856. try {
  30857. this._sound.stop(0);
  30858. } catch (k) {}
  30859. else
  30860. this.usingAudioTag && (this._sound.pause(), this._sound.currentTime = 0);
  30861. this.isPlaying = !1;
  30862. var m = this.currentMarker;
  30863. y3U.k8G("", this.currentMarker) && this.onMarkerComplete.dispatch(this.currentMarker, this),
  30864. this.currentMarker = "",
  30865. this.paused || this.onStop.dispatch(this, m);
  30866. },
  30867. fadeIn : function (k, m) {
  30868. "undefined" == typeof m && (m = !1),
  30869. this.paused || (this.play("", 0, 0, m), this.fadeTo(k, 1));
  30870. },
  30871. fadeOut : function (k) {
  30872. this.fadeTo(k, 0);
  30873. },
  30874. fadeTo : function (k, m) {
  30875. if (this.isPlaying && !this.paused && y3U.G8G(m, this.volume)) {
  30876. if ("undefined" == typeof k && (k = 1e3), "undefined" == typeof m)
  30877. return void console.warn("Phaser.Sound.fadeTo: No Volume Specified.");
  30878. var e = this.game.add.tween(this).to({
  30879. volume : m
  30880. }, k, i.Easing.Linear.None, !0);
  30881. e.onComplete.add(this.fadeComplete, this);
  30882. }
  30883. },
  30884. fadeComplete : function () {
  30885. this.onFadeComplete.dispatch(this, this.volume),
  30886. y3U.N8G(0, this.volume) && this.stop();
  30887. },
  30888. destroy : function (k) {
  30889. "undefined" == typeof k && (k = !0),
  30890. this.stop(),
  30891. k ? this.game.sound.remove(this) : (this.markers = {}, this.context = null, this._buffer = null, this.externalNode = null, this.onDecoded.dispose(), this.onPlay.dispose(), this.onPause.dispose(), this.onResume.dispose(), this.onLoop.dispose(), this.onStop.dispose(), this.onMute.dispose(), this.onMarkerComplete.dispose());
  30892. }
  30893. },
  30894. i.Sound.prototype.constructor = i.Sound,
  30895. Object.defineProperty(i.Sound.prototype, "isDecoding", {
  30896. get : function () {
  30897. return this.game.cache.getSound(this.key).isDecoding;
  30898. }
  30899. }),
  30900. Object.defineProperty(i.Sound.prototype, "isDecoded", {
  30901. get : function () {
  30902. return this.game.cache.isSoundDecoded(this.key);
  30903. }
  30904. }),
  30905. Object.defineProperty(i.Sound.prototype, "mute", {
  30906. get : function () {
  30907. return this._muted || this.game.sound.mute;
  30908. },
  30909. set : function (k) {
  30910. k = k || null,
  30911. k ? (this._muted = !0, this.usingWebAudio ? (this._muteVolume = this.gainNode.gain.value, this.gainNode.gain.value = 0) : this.usingAudioTag && this._sound && (this._muteVolume = this._sound.volume, this._sound.volume = 0)) : (this._muted = !1, this.usingWebAudio ? this.gainNode.gain.value = this._muteVolume : this.usingAudioTag && this._sound && (this._sound.volume = this._muteVolume)),
  30912. this.onMute.dispatch(this);
  30913. }
  30914. }),
  30915. Object.defineProperty(i.Sound.prototype, "volume", {
  30916. get : function () {
  30917. return this._volume;
  30918. },
  30919. set : function (k) {
  30920. this.usingWebAudio ? (this._volume = k, this.gainNode.gain.value = k) : this.usingAudioTag && this._sound && y3U.L8G(k, 0) && y3U.z8G(1, k) && (this._volume = k, this._sound.volume = k);
  30921. }
  30922. }),
  30923. i.SoundManager = function (k) {
  30924. this.game = k,
  30925. this.onSoundDecode = new i.Signal,
  30926. this._codeMuted = !1,
  30927. this._muted = !1,
  30928. this._unlockSource = null,
  30929. this._volume = 1,
  30930. this._sounds = [],
  30931. this.context = null,
  30932. this.usingWebAudio = !0,
  30933. this.usingAudioTag = !1,
  30934. this.noAudio = !1,
  30935. this.connectToMaster = !0,
  30936. this.touchLocked = !1,
  30937. this.channels = 32;
  30938. },
  30939. i.SoundManager.prototype = {
  30940. boot : function () {
  30941. if (this.game.device.iOS && this.game.device.webAudio === !1 && (this.channels = 1), !this.game.device.cocoonJS && this.game.device.iOS || r2w8n[E8n].PhaserGlobal && r2w8n[E8n].PhaserGlobal.fakeiOSTouchLock ? (this.game.input.touch.callbackContext = this, this.game.input.touch.touchStartCallback = this.unlock, this.game.input.mouse.callbackContext = this, this.game.input.mouse.mouseDownCallback = this.unlock, this.touchLocked = !0) : this.touchLocked = !1, r2w8n[E8n].PhaserGlobal) {
  30942. if (r2w8n[E8n].PhaserGlobal.disableAudio === !0)
  30943. return this.usingWebAudio = !1, void(this.noAudio = !0);
  30944. if (r2w8n[E8n].PhaserGlobal.disableWebAudio === !0)
  30945. return this.usingWebAudio = !1, this.usingAudioTag = !0, void(this.noAudio = !1);
  30946. }
  30947. if (r2w8n[E8n].PhaserGlobal && r2w8n[E8n].PhaserGlobal.audioContext)
  30948. this.context = r2w8n[E8n].PhaserGlobal.audioContext;
  30949. else if (r2w8n[E8n].AudioContext)
  30950. try {
  30951. this.context = new r2w8n[E8n].AudioContext;
  30952. } catch (k) {
  30953. this.context = null,
  30954. this.usingWebAudio = !1,
  30955. this.noAudio = !0;
  30956. }
  30957. else if (r2w8n[E8n].webkitAudioContext)
  30958. try {
  30959. this.context = new r2w8n[E8n].webkitAudioContext;
  30960. } catch (k) {
  30961. this.context = null,
  30962. this.usingWebAudio = !1,
  30963. this.noAudio = !0;
  30964. }
  30965. r2w8n[E8n]['Audio'] && y3U.J8G(null, this.context) && (this.usingWebAudio = !1, this.usingAudioTag = !0, this.noAudio = !1),
  30966. y3U.H8G(null, this.context) && (this.masterGain = "undefined" == typeof this.context.createGain ? this.context.createGainNode() : this.context.createGain(), this.masterGain.gain.value = 1, this.masterGain.connect(this.context.destination));
  30967. },
  30968. unlock : function () {
  30969. if (this.touchLocked !== !1)
  30970. if (this.game.device.webAudio === !1 || r2w8n[E8n].PhaserGlobal && r2w8n[E8n].PhaserGlobal.disableWebAudio === !0)
  30971. this.touchLocked = !1, this._unlockSource = null, this.game.input.touch.callbackContext = null, this.game.input.touch.touchStartCallback = null, this.game.input.mouse.callbackContext = null, this.game.input.mouse.mouseDownCallback = null;
  30972. else {
  30973. var k = this.context.createBuffer(1, 1, 22050);
  30974. this._unlockSource = this.context.createBufferSource(),
  30975. this._unlockSource.buffer = k,
  30976. this._unlockSource.connect(this.context.destination),
  30977. this._unlockSource.noteOn(0);
  30978. }
  30979. },
  30980. stopAll : function () {
  30981. for (var k = 0; y3U.h8G(k, this._sounds.length); k++)
  30982. this._sounds[k] && this._sounds[k].stop();
  30983. },
  30984. pauseAll : function () {
  30985. for (var k = 0; y3U.F8G(k, this._sounds.length); k++)
  30986. this._sounds[k] && this._sounds[k].pause();
  30987. },
  30988. resumeAll : function () {
  30989. for (var k = 0; y3U.M8G(k, this._sounds.length); k++)
  30990. this._sounds[k] && this._sounds[k].resume();
  30991. },
  30992. decode : function (m, e) {
  30993. var o = function () {
  30994. e = e || null;
  30995. };
  30996. o();
  30997. var n = this.game.cache.getSoundData(m);
  30998. if (n && this.game.cache.isSoundDecoded(m) === !1) {
  30999. this.game.cache.updateSound(m, "isDecoding", !0);
  31000. var u = this;
  31001. this.context.decodeAudioData(n, function (k) {
  31002. u.game.cache.decodedSound(m, k),
  31003. e && u.onSoundDecode.dispatch(m, e);
  31004. });
  31005. }
  31006. },
  31007. update : function () {
  31008. this.touchLocked && this.game.device.webAudio && y3U.n8G(null, this._unlockSource) && (y3U.f8G(this._unlockSource.playbackState, this._unlockSource.PLAYING_STATE) || y3U.K8G(this._unlockSource.playbackState, this._unlockSource.FINISHED_STATE)) && (this.touchLocked = !1, this._unlockSource = null, this.game.input.touch.callbackContext = null, this.game.input.touch.touchStartCallback = null);
  31009. for (var k = 0; y3U.B8G(k, this._sounds.length); k++)
  31010. this._sounds[k].update();
  31011. },
  31012. add : function (k, m, e, o) {
  31013. "undefined" == typeof m && (m = 1),
  31014. "undefined" == typeof e && (e = !1),
  31015. "undefined" == typeof o && (o = this.connectToMaster);
  31016. var n = new i.Sound(this.game, k, m, e, o);
  31017. return this._sounds.push(n),
  31018. n;
  31019. },
  31020. addSprite : function (k) {
  31021. var m = new i.AudioSprite(this.game, k);
  31022. return m;
  31023. },
  31024. remove : function (k) {
  31025. for (var m = this._sounds.length; m--; )
  31026. if (y3U.l8G(this._sounds[m], k))
  31027. return this._sounds[m].destroy(!1), this._sounds.splice(m, 1), !0;
  31028. return !1;
  31029. },
  31030. removeByKey : function (k) {
  31031. for (var m = this._sounds.length, e = 0; m--; )
  31032. y3U.X8G(this._sounds[m].key, k) && (this._sounds[m].destroy(!1), this._sounds.splice(m, 1), e++);
  31033. return e;
  31034. },
  31035. play : function (k, m, e) {
  31036. var o = this.add(k, m, e);
  31037. return o.play(),
  31038. o;
  31039. },
  31040. setMute : function () {
  31041. if (!this._muted) {
  31042. this._muted = !0,
  31043. this.usingWebAudio && (this._muteVolume = this.masterGain.gain.value, this.masterGain.gain.value = 0);
  31044. for (var k = 0; y3U.Y8G(k, this._sounds.length); k++)
  31045. this._sounds[k].usingAudioTag && (this._sounds[k].mute = !0);
  31046. }
  31047. },
  31048. unsetMute : function () {
  31049. if (this._muted && !this._codeMuted) {
  31050. this._muted = !1,
  31051. this.usingWebAudio && (this.masterGain.gain.value = this._muteVolume);
  31052. for (var k = 0; y3U.U0N(k, this._sounds.length); k++)
  31053. this._sounds[k].usingAudioTag && (this._sounds[k].mute = !1);
  31054. }
  31055. },
  31056. destroy : function () {
  31057. this.stopAll();
  31058. for (var k = 0; y3U.T0N(k, this._sounds.length); k++)
  31059. this._sounds[k] && this._sounds[k].destroy();
  31060. this._sounds = [],
  31061. this.onSoundDecode.dispose(),
  31062. this.context && r2w8n[E8n].PhaserGlobal && (r2w8n[E8n].PhaserGlobal.audioContext = this.context);
  31063. }
  31064. },
  31065. i.SoundManager.prototype.constructor = i.SoundManager,
  31066. Object.defineProperty(i.SoundManager.prototype, "mute", {
  31067. get : function () {
  31068. return this._muted;
  31069. },
  31070. set : function (k) {
  31071. if (k = k || null) {
  31072. if (this._muted)
  31073. return;
  31074. this._codeMuted = !0,
  31075. this.setMute();
  31076. } else {
  31077. if (!this._muted)
  31078. return;
  31079. this._codeMuted = !1,
  31080. this.unsetMute();
  31081. }
  31082. }
  31083. }),
  31084. Object.defineProperty(i.SoundManager.prototype, "volume", {
  31085. get : function () {
  31086. return this.usingWebAudio ? this.masterGain.gain.value : this._volume;
  31087. },
  31088. set : function (k) {
  31089. if (this._volume = k, this.usingWebAudio)
  31090. this.masterGain.gain.value = k;
  31091. else
  31092. for (var m = 0; y3U.S0N(m, this._sounds.length); m++)
  31093. this._sounds[m].usingAudioTag && (this._sounds[m].volume = y3U.I0N(this._sounds[m].volume, k));
  31094. }
  31095. }),
  31096. i.ArraySet = function (k) {
  31097. this.position = 0,
  31098. this.list = k || [];
  31099. },
  31100. i.ArraySet.prototype = {
  31101. add : function (k) {
  31102. return this.exists(k) || this.list.push(k),
  31103. k;
  31104. },
  31105. getIndex : function (k) {
  31106. return this.list.indexOf(k);
  31107. },
  31108. exists : function (k) {
  31109. return this.list.indexOf(k) > -1;
  31110. },
  31111. reset : function () {
  31112. this.list.length = 0;
  31113. },
  31114. remove : function (k) {
  31115. var m = this.list.indexOf(k);
  31116. return m > -1 ? (this.list.splice(m, 1), k) : void 0;
  31117. },
  31118. setAll : function (k, m) {
  31119. for (var e = this.list.length; e--; )
  31120. this.list[e] && (this.list[e][k] = m);
  31121. },
  31122. callAll : function (k) {
  31123. for (var m = Array.prototype.splice.call(arguments, 1), e = this.list.length; e--; )
  31124. this.list[e] && this.list[e][k] && this.list[e][k].apply(this.list[e], m);
  31125. }
  31126. },
  31127. Object.defineProperty(i.ArraySet.prototype, "total", {
  31128. get : function () {
  31129. return this.list.length;
  31130. }
  31131. }),
  31132. Object.defineProperty(i.ArraySet.prototype, "first", {
  31133. get : function () {
  31134. return this.position = 0,
  31135. y3U.C0N(this.list.length, 0) ? this.list[0] : null;
  31136. }
  31137. }),
  31138. Object.defineProperty(i.ArraySet.prototype, "next", {
  31139. get : function () {
  31140. return y3U.v0N(this.position, this.list.length) ? (this.position++, this.list[this.position]) : null;
  31141. }
  31142. }),
  31143. i.ArraySet.prototype.constructor = i.ArraySet,
  31144. i.ArrayList = i.ArraySet,
  31145. i.LinkedList = function () {
  31146. this.next = null,
  31147. this.prev = null,
  31148. this.first = null,
  31149. this.last = null,
  31150. this.total = 0;
  31151. },
  31152. i.LinkedList.prototype = {
  31153. add : function (k) {
  31154. return y3U.t0N(0, this.total) && y3U.y0N(null, this.first) && y3U.o0N(null, this.last) ? (this.first = k, this.last = k, this.next = k, k.prev = this, this.total++, k) : (this.last.next = k, k.prev = this.last, this.last = k, this.total++, k);
  31155. },
  31156. reset : function () {
  31157. this.first = null,
  31158. this.last = null,
  31159. this.next = null,
  31160. this.prev = null,
  31161. this.total = 0;
  31162. },
  31163. remove : function (k) {
  31164. return y3U.x0N(1, this.total) ? (this.reset(), void(k.next = k.prev = null)) : (y3U.p0N(k, this.first) ? this.first = this.first.next : y3U.q0N(k, this.last) && (this.last = this.last.prev), k.prev && (k.prev.next = k.next), k.next && (k.next.prev = k.prev), k.next = k.prev = null, y3U.b0N(null, this.first) && (this.last = null), void this.total--);
  31165. },
  31166. callAll : function (k) {
  31167. if (this.first && this.last) {
  31168. var m = this.first;
  31169. do
  31170. m && m[k] && m[k].call(m), m = m.next;
  31171. while (y3U.j0N(m, this.last.next))
  31172. }
  31173. }
  31174. },
  31175. i.LinkedList.prototype.constructor = i.LinkedList,
  31176. i.ArrayUtils = {
  31177. getRandomItem : function (k, m, e) {
  31178. if (y3U.d0N(null, k))
  31179. return null;
  31180. "undefined" == typeof m && (m = 0),
  31181. "undefined" == typeof e && (e = k.length);
  31182. var o = m + Math.floor(y3U.c0N(Math.random(), e));
  31183. return void 0 === k[o] ? null : k[o];
  31184. },
  31185. removeRandomItem : function (k, m, e) {
  31186. if (y3U.s0N(null, k))
  31187. return null;
  31188. "undefined" == typeof m && (m = 0),
  31189. "undefined" == typeof e && (e = k.length);
  31190. var o = m + Math.floor(y3U.Q0N(Math.random(), e));
  31191. if (y3U.a7N(o, k.length)) {
  31192. var n = k.splice(o, 1);
  31193. return void 0 === n[0] ? null : n[0];
  31194. }
  31195. return null;
  31196. },
  31197. shuffle : function (k) {
  31198. for (var m = y3U.W7N(k.length, 1); y3U.m7N(m, 0); m--) {
  31199. var e = Math.floor(y3U.A7N(Math.random(), (m + 1))),
  31200. o = k[m];
  31201. k[m] = k[e],
  31202. k[e] = o;
  31203. }
  31204. return k;
  31205. },
  31206. transposeMatrix : function (m) {
  31207. for (var e = m.length, o = m[0].length, n = new Array(o), u = 0; y3U.w7N(o, u); u++) {
  31208. var q = function (k) {
  31209. n[u][f] = k[f][u];
  31210. };
  31211. n[u] = new Array(e);
  31212. for (var f = y3U.E7N(e, 1); f > -1; f--)
  31213. q(m);
  31214. }
  31215. return n;
  31216. },
  31217. rotateMatrix : function (k, m) {
  31218. if ("string" != typeof m && (m = y3U.e7N((m % 360 + 360), 360)), y3U.g7N(90, m) || -270 === m || y3U.r7N("rotateLeft", m))
  31219. k = i.ArrayUtils.transposeMatrix(k), k = k.reverse();
  31220. else if (-90 === m || y3U.i7N(270, m) || y3U.u7N("rotateRight", m))
  31221. k = k.reverse(), k = i.ArrayUtils.transposeMatrix(k);
  31222. else if (y3U.P7N(180, Math.abs(m)) || y3U.D7N("rotate180", m)) {
  31223. for (var e = 0; y3U.Z7N(e, k.length); e++)
  31224. k[e].reverse();
  31225. k = k.reverse();
  31226. }
  31227. return k;
  31228. },
  31229. findClosest : function (k, m) {
  31230. if (!m.length)
  31231. return y3U.R7N(0, 0);
  31232. if (y3U.O7N(1, m.length) || y3U.V7N(k, m[0]))
  31233. return m[0];
  31234. for (var e = 1; y3U.k4N(m[e], k); )
  31235. e++;
  31236. var o = m[y3U.G4N(e, 1)],
  31237. n = y3U.N4N(e, m.length) ? m[e] : Number.POSITIVE_INFINITY;
  31238. return y3U.L4N(k - o, n - k) ? n : o;
  31239. },
  31240. rotate : function (k) {
  31241. var m = k.shift();
  31242. return k.push(m),
  31243. m;
  31244. },
  31245. numberArray : function (k, m) {
  31246. for (var e = [], o = k; y3U.z4N(m, o); o++)
  31247. e.push(o);
  31248. return e;
  31249. },
  31250. numberArrayStep : function (k, m, e) {
  31251. var o = function () {
  31252. k = +k || 0;
  31253. };
  31254. o();
  31255. var n = typeof m;
  31256. y3U.J4N("number", n) && y3U.H4N("string", n) || !e || y3U.h4N(e[m], k) || (m = e = null),
  31257. e = y3U.F4N(null, e) ? 1 : +e || 0,
  31258. y3U.M4N(null, m) ? (m = k, k = 0) : m = +m || 0;
  31259. for (var u = -1, q = Math.max(i.Math.roundAwayFromZero(y3U.n4N((m - k), (e || 1))), 0), f = new Array(q); ++u < q; )
  31260. f[u] = k, k += e;
  31261. return f;
  31262. }
  31263. },
  31264. i.Utils.Debug = function (k) {
  31265. this.game = k,
  31266. this.sprite = null,
  31267. this.bmd = null,
  31268. this.canvas = null,
  31269. this.context = null,
  31270. this.font = "14px Courier",
  31271. this.columnWidth = 100,
  31272. this.lineHeight = 16,
  31273. this.renderShadow = !0,
  31274. this.currentX = 0,
  31275. this.currentY = 0,
  31276. this.currentAlpha = 1,
  31277. this.dirty = !1;
  31278. },
  31279. i.Utils.Debug.prototype = {
  31280. boot : function () {
  31281. y3U.f4N(this.game.renderType, i.CANVAS) ? this.context = this.game.context : (this.bmd = this.game.make.bitmapData(this.game.width, this.game.height), this.sprite = this.game.make.image(0, 0, this.bmd), this.game.stage.addChild(this.sprite), this.canvas = i.Canvas.create(this.game.width, this.game.height, "", !0), this.context = this.canvas.getContext("2d"));
  31282. },
  31283. preUpdate : function () {
  31284. this.dirty && this.sprite && (this.bmd.clear(), this.bmd.draw(this.canvas, 0, 0), this.context.clearRect(0, 0, this.game.width, this.game.height), this.dirty = !1);
  31285. },
  31286. reset : function () {
  31287. this.context && this.context.clearRect(0, 0, this.game.width, this.game.height),
  31288. this.sprite && this.bmd.clear();
  31289. },
  31290. start : function (k, m, e, o) {
  31291. "number" != typeof k && (k = 0),
  31292. "number" != typeof m && (m = 0),
  31293. e = e || "rgb(255,255,255)",
  31294. "undefined" == typeof o && (o = 0),
  31295. this.currentX = k,
  31296. this.currentY = m,
  31297. this.currentColor = e,
  31298. this.currentAlpha = this.context.globalAlpha,
  31299. this.columnWidth = o,
  31300. this.dirty = !0,
  31301. this.context.save(),
  31302. this.context.setTransform(1, 0, 0, 1, 0, 0),
  31303. this.context.strokeStyle = e,
  31304. this.context.fillStyle = e,
  31305. this.context.font = this.font,
  31306. this.context.globalAlpha = 1;
  31307. },
  31308. stop : function () {
  31309. this.context.restore(),
  31310. this.context.globalAlpha = this.currentAlpha;
  31311. },
  31312. line : function () {
  31313. for (var k = this.currentX, m = 0; y3U.K4N(m, arguments.length); m++)
  31314. this.renderShadow && (this.context.fillStyle = "rgb(0,0,0)", this.context.fillText(arguments[m], k + 1, this.currentY + 1), this.context.fillStyle = this.currentColor), this.context.fillText(arguments[m], k, this.currentY), k += this.columnWidth;
  31315. this.currentY += this.lineHeight;
  31316. },
  31317. soundInfo : function (k, m, e, o) {
  31318. this.start(m, e, o),
  31319. this.line("Sound: " + k.key + " Locked: " + k.game.sound.touchLocked),
  31320. this.line("Is Ready?: " + this.game.cache.isSoundReady(k.key) + " Pending Playback: " + k.pendingPlayback),
  31321. this.line("Decoded: " + k.isDecoded + " Decoding: " + k.isDecoding),
  31322. this.line("Total Duration: " + k.totalDuration + " Playing: " + k.isPlaying),
  31323. this.line("Time: " + k.currentTime),
  31324. this.line("Volume: " + k.volume + " Muted: " + k.mute),
  31325. this.line("WebAudio: " + k.usingWebAudio + " Audio: " + k.usingAudioTag),
  31326. y3U.B4N("", k.currentMarker) && (this.line("Marker: " + k.currentMarker + " Duration: " + k.duration + " (ms: " + k.durationMS + ")"), this.line("Start: " + k.markers[k.currentMarker].start + " Stop: " + k.markers[k.currentMarker].stop), this.line("Position: " + k.position)),
  31327. this.stop();
  31328. },
  31329. cameraInfo : function (k, m, e, o) {
  31330. this.start(m, e, o),
  31331. this.line("Camera (" + k.width + " x " + k.height + ")"),
  31332. this.line("X: " + k.x + " Y: " + k.y),
  31333. k.bounds && this.line("Bounds x: " + k.bounds.x + " Y: " + k.bounds.y + " w: " + k.bounds.width + " h: " + k.bounds.height),
  31334. this.line("View x: " + k.view.x + " Y: " + k.view.y + " w: " + k.view.width + " h: " + k.view.height),
  31335. this.line("Total in view: " + k.totalInView),
  31336. this.stop();
  31337. },
  31338. timer : function (k, m, e, o) {
  31339. this.start(m, e, o),
  31340. this.line("Timer (running: " + k.running + " expired: " + k.expired + ")"),
  31341. this.line("Next Tick: " + k.next + " Duration: " + k.duration),
  31342. this.line("Paused: " + k.paused + " Length: " + k.length),
  31343. this.stop();
  31344. },
  31345. pointer : function (k, m, e, o, n) {
  31346. y3U.l4N(null, k) && ("undefined" == typeof m && (m = !1), e = e || "rgba(0,255,0,0.5)", o = o || "rgba(255,0,0,0.5)", (m !== !0 || k.isUp !== !0) && (this.start(k.x, y3U.X4N(k.y, 100), n), this.context.beginPath(), this.context.arc(k.x, k.y, k.circle.radius, 0, y3U.Y4N(2, Math.PI)), this.context.fillStyle = k.active ? e : o, this.context.fill(), this.context.closePath(), this.context.beginPath(), this.context.moveTo(k.positionDown.x, k.positionDown.y), this.context.lineTo(k.position.x, k.position.y), this.context.lineWidth = 2, this.context.stroke(), this.context.closePath(), this.line("ID: " + k.id + " Active: " + k.active), this.line("World X: " + k.worldX + " World Y: " + k.worldY), this.line("Screen X: " + k.x + " Screen Y: " + k.y), this.line("Duration: " + k.duration + " ms"), this.line("is Down: " + k.isDown + " is Up: " + k.isUp), this.stop()));
  31347. },
  31348. spriteInputInfo : function (k, m, e, o) {
  31349. this.start(m, e, o),
  31350. this.line("Sprite Input: (" + k.width + " x " + k.height + ")"),
  31351. this.line("x: " + k.input.pointerX().toFixed(1) + " y: " + k.input.pointerY().toFixed(1)),
  31352. this.line("over: " + k.input.pointerOver() + " duration: " + k.input.overDuration().toFixed(0)),
  31353. this.line("down: " + k.input.pointerDown() + " duration: " + k.input.downDuration().toFixed(0)),
  31354. this.line("just over: " + k.input.justOver() + " just out: " + k.input.justOut()),
  31355. this.stop();
  31356. },
  31357. key : function (k, m, e, o) {
  31358. this.start(m, e, o, 150),
  31359. this.line("Key:", k.keyCode, "isDown:", k.isDown),
  31360. this.line("justDown:", k.justDown, "justUp:", k.justUp),
  31361. this.line("Time Down:", k.timeDown.toFixed(0), "duration:", k.duration.toFixed(0)),
  31362. this.stop();
  31363. },
  31364. inputInfo : function (k, m, e) {
  31365. this.start(k, m, e),
  31366. this.line("Input"),
  31367. this.line("X: " + this.game.input.x + " Y: " + this.game.input.y),
  31368. this.line("World X: " + this.game.input.worldX + " World Y: " + this.game.input.worldY),
  31369. this.line("Scale X: " + this.game.input.scale.x.toFixed(1) + " Scale Y: " + this.game.input.scale.x.toFixed(1)),
  31370. this.line("Screen X: " + this.game.input.activePointer.screenX + " Screen Y: " + this.game.input.activePointer.screenY),
  31371. this.stop();
  31372. },
  31373. spriteBounds : function (k, m, e) {
  31374. var o = k.getBounds();
  31375. o.x += this.game.camera.x,
  31376. o.y += this.game.camera.y,
  31377. this.rectangle(o, m, e);
  31378. },
  31379. ropeSegments : function (m, e, o) {
  31380. var n = m.segments;
  31381. n.forEach(function (k) {
  31382. this.rectangle(k, e, o);
  31383. }, this);
  31384. },
  31385. spriteInfo : function (k, m, e, o) {
  31386. this.start(m, e, o),
  31387. this.line("Sprite: (" + k.width + " x " + k.height + ") anchor: " + k.anchor.x + " x " + k.anchor.y),
  31388. this.line("x: " + k.x.toFixed(1) + " y: " + k.y.toFixed(1)),
  31389. this.line("angle: " + k.angle.toFixed(1) + " rotation: " + k.rotation.toFixed(1)),
  31390. this.line("visible: " + k.visible + " in camera: " + k.inCamera),
  31391. this.line("bounds x: " + k._bounds.x.toFixed(1) + " y: " + k._bounds.y.toFixed(1) + " w: " + k._bounds.width.toFixed(1) + " h: " + k._bounds.height.toFixed(1)),
  31392. this.stop();
  31393. },
  31394. spriteCoords : function (k, m, e, o) {
  31395. this.start(m, e, o, 100),
  31396. k.name && this.line(k.name),
  31397. this.line("x:", k.x.toFixed(2), "y:", k.y.toFixed(2)),
  31398. this.line("pos x:", k.position.x.toFixed(2), "pos y:", k.position.y.toFixed(2)),
  31399. this.line("world x:", k.world.x.toFixed(2), "world y:", k.world.y.toFixed(2)),
  31400. this.stop();
  31401. },
  31402. lineInfo : function (k, m, e, o) {
  31403. this.start(m, e, o, 80),
  31404. this.line("start.x:", k.start.x.toFixed(2), "start.y:", k.start.y.toFixed(2)),
  31405. this.line("end.x:", k.end.x.toFixed(2), "end.y:", k.end.y.toFixed(2)),
  31406. this.line("length:", k.length.toFixed(2), "angle:", k.angle),
  31407. this.stop();
  31408. },
  31409. pixel : function (k, m, e, o) {
  31410. o = o || 2,
  31411. this.start(),
  31412. this.context.fillStyle = e,
  31413. this.context.fillRect(k, m, o, o),
  31414. this.stop();
  31415. },
  31416. geom : function (k, m, e, o) {
  31417. "undefined" == typeof e && (e = !0),
  31418. "undefined" == typeof o && (o = 0),
  31419. m = m || "rgba(0,255,0,0.4)",
  31420. this.start(),
  31421. this.context.fillStyle = m,
  31422. this.context.strokeStyle = m,
  31423. y3U.U3N(k, i.Rectangle) || y3U.T3N(1, o) ? e ? this.context.fillRect(y3U.S3N(k.x, this.game.camera.x), y3U.I3N(k.y, this.game.camera.y), k.width, k.height) : this.context.strokeRect(y3U.C3N(k.x, this.game.camera.x), y3U.v3N(k.y, this.game.camera.y), k.width, k.height) : y3U.t3N(k, i.Circle) || y3U.y3N(2, o) ? (this.context.beginPath(), this.context.arc(y3U.o3N(k.x, this.game.camera.x), y3U.x3N(k.y, this.game.camera.y), k.radius, 0, y3U.p3N(2, Math.PI), !1), this.context.closePath(), e ? this.context.fill() : this.context.stroke()) : y3U.q3N(k, i.Point) || y3U.b3N(3, o) ? this.context.fillRect(y3U.j3N(k.x, this.game.camera.x), y3U.d3N(k.y, this.game.camera.y), 4, 4) : (y3U.c3N(k, i.Line) || y3U.s3N(4, o)) && (this.context.lineWidth = 1, this.context.beginPath(), this.context.moveTo(k.start.x + .5 - this.game.camera.x, k.start.y + .5 - this.game.camera.y), this.context.lineTo(k.end.x + .5 - this.game.camera.x, k.end.y + .5 - this.game.camera.y), this.context.closePath(), this.context.stroke()),
  31424. this.stop();
  31425. },
  31426. rectangle : function (k, m, e) {
  31427. "undefined" == typeof e && (e = !0),
  31428. m = m || "rgba(0, 255, 0, 0.4)",
  31429. this.start(),
  31430. e ? (this.context.fillStyle = m, this.context.fillRect(y3U.Q3N(k.x, this.game.camera.x), y3U.a9N(k.y, this.game.camera.y), k.width, k.height)) : (this.context.strokeStyle = m, this.context.strokeRect(y3U.W9N(k.x, this.game.camera.x), y3U.m9N(k.y, this.game.camera.y), k.width, k.height)),
  31431. this.stop();
  31432. },
  31433. text : function (k, m, e, o, n) {
  31434. o = o || "rgb(255,255,255)",
  31435. n = n || "16px Courier",
  31436. this.start(),
  31437. this.context.font = n,
  31438. this.renderShadow && (this.context.fillStyle = "rgb(0,0,0)", this.context.fillText(k, m + 1, e + 1)),
  31439. this.context.fillStyle = o,
  31440. this.context.fillText(k, m, e),
  31441. this.stop();
  31442. },
  31443. quadTree : function (k, m) {
  31444. m = m || "rgba(255,0,0,0.3)",
  31445. this.start();
  31446. var e = k.bounds;
  31447. if (y3U.A9N(0, k.nodes.length)) {
  31448. this.context.strokeStyle = m,
  31449. this.context.strokeRect(e.x, e.y, e.width, e.height),
  31450. this.text("size: " + k.objects.length, e.x + 4, e.y + 16, "rgb(0,200,0)", "12px Courier"),
  31451. this.context.strokeStyle = "rgb(0,255,0)";
  31452. for (var o = 0; y3U.w9N(o, k.objects.length); o++)
  31453. this.context.strokeRect(k.objects[o].x, k.objects[o].y, k.objects[o].width, k.objects[o].height);
  31454. } else
  31455. for (var o = 0; y3U.E9N(o, k.nodes.length); o++)
  31456. this.quadTree(k.nodes[o]);
  31457. this.stop();
  31458. },
  31459. body : function (k, m, e) {
  31460. k.body && (this.start(), y3U.e9N(k.body.type, i.Physics.ARCADE) ? i.Physics.Arcade.Body.render(this.context, k.body, m, e) : y3U.g9N(k.body.type, i.Physics.NINJA) ? i.Physics.Ninja.Body.render(this.context, k.body, m, e) : y3U.r9N(k.body.type, i.Physics.BOX2D) && i.Physics.Box2D.renderBody(this.context, k.body, m), this.stop());
  31461. },
  31462. bodyInfo : function (k, m, e, o) {
  31463. k.body && (this.start(m, e, o, 210), y3U.i9N(k.body.type, i.Physics.ARCADE) ? i.Physics.Arcade.Body.renderBodyInfo(this, k.body) : y3U.u9N(k.body.type, i.Physics.BOX2D) && this.game.physics.box2d.renderBodyInfo(this, k.body), this.stop());
  31464. },
  31465. box2dWorld : function () {
  31466. this.start(),
  31467. this.context.translate(-this.game.camera.view.x, -this.game.camera.view.y, 0),
  31468. this.game.physics.box2d.renderDebugDraw(this.context),
  31469. this.stop();
  31470. },
  31471. box2dBody : function (k, m) {
  31472. this.start(),
  31473. i.Physics.Box2D.renderBody(this.context, k, m),
  31474. this.stop();
  31475. }
  31476. },
  31477. i.Utils.Debug.prototype.constructor = i.Utils.Debug,
  31478. i.Color = {
  31479. packPixel : function (k, m, e, o) {
  31480. return i.Device.LITTLE_ENDIAN ? y3U.P9N((o << 24 | e << 16 | m << 8 | k), 0) : y3U.D9N((k << 24 | m << 16 | e << 8 | o), 0);
  31481. },
  31482. unpackPixel : function (k, m, e, o) {
  31483. return ("undefined" == typeof m || y3U.Z9N(null, m)) && (m = i.Color.createColor()),
  31484. ("undefined" == typeof e || y3U.R9N(null, e)) && (e = !1),
  31485. ("undefined" == typeof o || y3U.O9N(null, o)) && (o = !1),
  31486. i.Device.LITTLE_ENDIAN ? (m.a = y3U.V9N((4278190080 & k), 24), m.b = y3U.k5N((16711680 & k), 16), m.g = y3U.G5N((65280 & k), 8), m.r = y3U.N5N(255, k)) : (m.r = y3U.L5N((4278190080 & k), 24), m.g = y3U.z5N((16711680 & k), 16), m.b = y3U.J5N((65280 & k), 8), m.a = y3U.H5N(255, k)),
  31487. m.color = k,
  31488. m.rgba = "rgba(" + m.r + "," + m.g + "," + m.b + "," + y3U.h5N(m.a, 255) + ")",
  31489. e && i.Color.RGBtoHSL(m.r, m.g, m.b, m),
  31490. o && i.Color.RGBtoHSV(m.r, m.g, m.b, m),
  31491. m;
  31492. },
  31493. fromRGBA : function (k, m) {
  31494. return m || (m = i.Color.createColor()),
  31495. m.r = y3U.F5N((4278190080 & k), 24),
  31496. m.g = y3U.M5N((16711680 & k), 16),
  31497. m.b = y3U.n5N((65280 & k), 8),
  31498. m.a = y3U.f5N(255, k),
  31499. m.rgba = "rgba(" + m.r + "," + m.g + "," + m.b + "," + m.a + ")",
  31500. m;
  31501. },
  31502. toRGBA : function (k, m, e, o) {
  31503. return y3U.K5N(k << 24, m << 16, e << 8, o);
  31504. },
  31505. RGBtoHSL : function (k, m, e, o) {
  31506. o || (o = i.Color.createColor(k, m, e, 1)),
  31507. k /= 255,
  31508. m /= 255,
  31509. e /= 255;
  31510. var n = Math.min(k, m, e),
  31511. u = Math.max(k, m, e);
  31512. if (o.h = 0, o.s = 0, o.l = y3U.d5N((u + n), 2), y3U.c5N(u, n)) {
  31513. var q = y3U.s5N(u, n);
  31514. o.s = y3U.Q5N(o.l, .5) ? y3U.a2N(q, (2 - u - n)) : y3U.W2N(q, (u + n)),
  31515. y3U.m2N(u, k) ? o.h = y3U.A2N((m - e), q) + (y3U.w2N(e, m) ? 6 : 0) : y3U.E2N(u, m) ? o.h = y3U.e2N((e - k), q) + 2 : y3U.g2N(u, e) && (o.h = y3U.r2N((k - m), q) + 4),
  31516. o.h /= 6;
  31517. }
  31518. return o;
  31519. },
  31520. HSLtoRGB : function (k, m, e, o) {
  31521. if (o ? (o.r = e, o.g = e, o.b = e) : o = i.Color.createColor(e, e, e), y3U.i2N(0, m)) {
  31522. var n = y3U.u2N(.5, e) ? y3U.P2N(e, (1 + m)) : e + m - y3U.D2N(e, m),
  31523. u = y3U.Z2N(2 * e, n);
  31524. o.r = i.Color.hueToColor(u, n, k + y3U.R2N(1, 3)),
  31525. o.g = i.Color.hueToColor(u, n, k),
  31526. o.b = i.Color.hueToColor(u, n, y3U.O2N(k, 1 / 3));
  31527. }
  31528. return o.r = Math.floor(y3U.V2N(255 * o.r, 0)),
  31529. o.g = Math.floor(y3U.k1N(255 * o.g, 0)),
  31530. o.b = Math.floor(y3U.G1N(255 * o.b, 0)),
  31531. i.Color.updateColor(o),
  31532. o;
  31533. },
  31534. RGBtoHSV : function (k, m, e, o) {
  31535. o || (o = i.Color.createColor(k, m, e, 255)),
  31536. k /= 255,
  31537. m /= 255,
  31538. e /= 255;
  31539. var n = Math.min(k, m, e),
  31540. u = Math.max(k, m, e),
  31541. q = y3U.N1N(u, n);
  31542. return o.h = 0,
  31543. o.s = y3U.L1N(0, u) ? 0 : y3U.z1N(q, u),
  31544. o.v = u,
  31545. y3U.J1N(u, n) && (y3U.H1N(u, k) ? o.h = y3U.h1N((m - e), q) + (y3U.F1N(e, m) ? 6 : 0) : y3U.M1N(u, m) ? o.h = y3U.n1N((e - k), q) + 2 : y3U.f1N(u, e) && (o.h = y3U.K1N((k - m), q) + 4), o.h /= 6),
  31546. o;
  31547. },
  31548. HSVtoRGB : function (k, m, e, o) {
  31549. "undefined" == typeof o && (o = i.Color.createColor(0, 0, 0, 1, k, m, 0, e));
  31550. var n,
  31551. u,
  31552. q,
  31553. f = Math.floor(y3U.B1N(6, k)),
  31554. j = y3U.l1N(6 * k, f),
  31555. U0 = y3U.X1N(e, (1 - m)),
  31556. k0 = y3U.Y1N(e, (1 - j * m)),
  31557. a0 = y3U.U6N(e, (1 - (1 - j) * m));
  31558. switch (y3U.T6N(f, 6)) {
  31559. case 0:
  31560. n = e,
  31561. u = a0,
  31562. q = U0;
  31563. break;
  31564. case 1:
  31565. n = k0,
  31566. u = e,
  31567. q = U0;
  31568. break;
  31569. case 2:
  31570. n = U0,
  31571. u = e,
  31572. q = a0;
  31573. break;
  31574. case 3:
  31575. n = U0,
  31576. u = k0,
  31577. q = e;
  31578. break;
  31579. case 4:
  31580. n = a0,
  31581. u = U0,
  31582. q = e;
  31583. break;
  31584. case 5:
  31585. n = e,
  31586. u = U0,
  31587. q = k0;
  31588. }
  31589. return o.r = Math.floor(y3U.S6N(255, n)),
  31590. o.g = Math.floor(y3U.I6N(255, u)),
  31591. o.b = Math.floor(y3U.C6N(255, q)),
  31592. i.Color.updateColor(o),
  31593. o;
  31594. },
  31595. hueToColor : function (k, m, e) {
  31596. return y3U.v6N(0, e) && (e += 1),
  31597. y3U.t6N(e, 1) && (e -= 1),
  31598. y3U.y6N(1 / 6, e) ? k + y3U.o6N(6, (m - k), e) : y3U.M6N(.5, e) ? m : y3U.n6N(2 / 3, e) ? k + y3U.f6N((m - k), (2 / 3 - e), 6) : k;
  31599. },
  31600. createColor : function (k, m, e, o, n, u, q, f) {
  31601. var j = {
  31602. r : k || 0,
  31603. g : m || 0,
  31604. b : e || 0,
  31605. a : o || 1,
  31606. h : n || 0,
  31607. s : u || 0,
  31608. l : q || 0,
  31609. v : f || 0,
  31610. color : 0,
  31611. color32 : 0,
  31612. rgba : ""
  31613. };
  31614. return j.color = i.Color.getColor(j.r, j.g, j.b),
  31615. j.color32 = i.Color.getColor32(j.a, j.r, j.g, j.b),
  31616. i.Color.updateColor(j);
  31617. },
  31618. updateColor : function (k) {
  31619. return k.rgba = "rgba(" + k.r.toString() + "," + k.g.toString() + "," + k.b.toString() + "," + k.a.toString() + ")",
  31620. k;
  31621. },
  31622. getColor32 : function (k, m, e, o) {
  31623. return y3U.D6N(k << 24, m << 16, e << 8, o);
  31624. },
  31625. getColor : function (k, m, e) {
  31626. return y3U.l6N(k << 16, m << 8, e);
  31627. },
  31628. RGBtoString : function (k, m, e, o, n) {
  31629. return "undefined" == typeof o && (o = 255),
  31630. "undefined" == typeof n && (n = "#"),
  31631. y3U.O6N("#", n) ? "#" + ((y3U.V6N(1, 24)) + (y3U.k8N(k, 16)) + (y3U.G8N(m, 8)) + e).toString(16).slice(1) : "0x" + i.Color.componentToHex(o) + i.Color.componentToHex(k) + i.Color.componentToHex(m) + i.Color.componentToHex(e);
  31632. },
  31633. hexToRGB : function (k) {
  31634. var m = i.Color.hexToColor(k);
  31635. return m ? i.Color.getColor32(m.a, m.r, m.g, m.b) : void 0;
  31636. },
  31637. hexToColor : function (n, u) {
  31638. n = n.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i, function (k, m, e, o) {
  31639. return m + m + e + e + o + o;
  31640. });
  31641. var q = /^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
  31642. if (q) {
  31643. var f = parseInt(q[1], 16),
  31644. j = parseInt(q[2], 16),
  31645. U0 = parseInt(q[3], 16);
  31646. u ? (u.r = f, u.g = j, u.b = U0) : u = i.Color.createColor(f, j, U0);
  31647. }
  31648. return u;
  31649. },
  31650. webToColor : function (k, m) {
  31651. m || (m = i.Color.createColor());
  31652. var e = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(k);
  31653. return e && (m.r = parseInt(e[1], 10), m.g = parseInt(e[2], 10), m.b = parseInt(e[3], 10), m.a = void 0 !== e[4] ? parseFloat(e[4]) : 1),
  31654. m;
  31655. },
  31656. valueToColor : function (k, m) {
  31657. if (m || (m = i.Color.createColor()), "string" == typeof k)
  31658. return y3U.N8N(0, k.indexOf("rgb")) ? i.Color.webToColor(k, m) : (m.a = 1, i.Color.hexToColor(k, m));
  31659. if ("number" == typeof k) {
  31660. var e = i.Color.getRGB(k);
  31661. return m.r = e.r,
  31662. m.g = e.g,
  31663. m.b = e.b,
  31664. m.a = y3U.L8N(e.a, 255),
  31665. m;
  31666. }
  31667. return m;
  31668. },
  31669. componentToHex : function (k) {
  31670. var m = k.toString(16);
  31671. return y3U.z8N(1, m.length) ? "0" + m : m;
  31672. },
  31673. HSVColorWheel : function (k, m) {
  31674. "undefined" == typeof k && (k = 1),
  31675. "undefined" == typeof m && (m = 1);
  31676. for (var e = [], o = 0; y3U.J8N(359, o); o++)
  31677. e.push(i.Color.HSVtoRGB(y3U.H8N(o, 359), k, m));
  31678. return e;
  31679. },
  31680. HSLColorWheel : function (k, m) {
  31681. "undefined" == typeof k && (k = .5),
  31682. "undefined" == typeof m && (m = .5);
  31683. for (var e = [], o = 0; y3U.h8N(359, o); o++)
  31684. e.push(i.Color.HSLtoRGB(y3U.F8N(o, 359), k, m));
  31685. return e;
  31686. },
  31687. interpolateColor : function (k, m, e, o, n) {
  31688. "undefined" == typeof n && (n = 255);
  31689. var u = i.Color.getRGB(k),
  31690. q = i.Color.getRGB(m),
  31691. f = y3U.M8N((q.red - u.red), o, e) + u.red,
  31692. j = y3U.u8N((q.green - u.green), o, e) + u.green,
  31693. U0 = y3U.b8N((q.blue - u.blue), o, e) + u.blue;
  31694. return i.Color.getColor32(n, f, j, U0);
  31695. },
  31696. interpolateColorWithRGB : function (k, m, e, o, n, u) {
  31697. var q = i.Color.getRGB(k),
  31698. f = y3U.B8N((m - q.red), u, n) + q.red,
  31699. j = y3U.R8N((e - q.green), u, n) + q.green,
  31700. U0 = y3U.s8N((o - q.blue), u, n) + q.blue;
  31701. return i.Color.getColor(f, j, U0);
  31702. },
  31703. interpolateRGB : function (k, m, e, o, n, u, q, f) {
  31704. var j = y3U.U0o((o - k), f, q) + k,
  31705. U0 = y3U.G0o((n - m), f, q) + m,
  31706. k0 = y3U.m0o((u - e), f, q) + e;
  31707. return i.Color.getColor(j, U0, k0);
  31708. },
  31709. getRandomColor : function (k, m, e) {
  31710. if ("undefined" == typeof k && (k = 0), "undefined" == typeof m && (m = 255), "undefined" == typeof e && (e = 255), y3U.C0o(m, 255) || y3U.v0o(k, m))
  31711. return i.Color.getColor(255, 255, 255);
  31712. var o = k + Math.round(y3U.t0o(Math.random(), (m - k))),
  31713. n = k + Math.round(y3U.y0o(Math.random(), (m - k))),
  31714. u = k + Math.round(y3U.o0o(Math.random(), (m - k)));
  31715. return i.Color.getColor32(e, o, n, u);
  31716. },
  31717. getRGB : function (k) {
  31718. return y3U.x0o(k, 16777215) ? {
  31719. alpha : y3U.p0o(k, 24),
  31720. red : y3U.q0o(k >> 16, 255),
  31721. green : y3U.b0o(k >> 8, 255),
  31722. blue : y3U.j0o(255, k),
  31723. a : y3U.d0o(k, 24),
  31724. r : y3U.c0o(k >> 16, 255),
  31725. g : y3U.s0o(k >> 8, 255),
  31726. b : y3U.Q0o(255, k)
  31727. }
  31728. : {
  31729. alpha : 255,
  31730. red : y3U.a7o(k >> 16, 255),
  31731. green : y3U.W7o(k >> 8, 255),
  31732. blue : y3U.m7o(255, k),
  31733. a : 255,
  31734. r : y3U.A7o(k >> 16, 255),
  31735. g : y3U.w7o(k >> 8, 255),
  31736. b : y3U.E7o(255, k)
  31737. };
  31738. },
  31739. getWebRGB : function (k) {
  31740. if ("object" == typeof k)
  31741. return "rgba(" + k.r.toString() + "," + k.g.toString() + "," + k.b.toString() + "," + (y3U.e7o(k.a, 255)).toString() + ")";
  31742. var m = i.Color.getRGB(k);
  31743. return "rgba(" + m.r.toString() + "," + m.g.toString() + "," + m.b.toString() + "," + (y3U.g7o(m.a, 255)).toString() + ")";
  31744. },
  31745. getAlpha : function (k) {
  31746. return y3U.r7o(k, 24);
  31747. },
  31748. getAlphaFloat : function (k) {
  31749. return y3U.i7o((k >>> 24), 255);
  31750. },
  31751. getRed : function (k) {
  31752. return y3U.u7o(k >> 16, 255);
  31753. },
  31754. getGreen : function (k) {
  31755. return y3U.P7o(k >> 8, 255);
  31756. },
  31757. getBlue : function (k) {
  31758. return y3U.D7o(255, k);
  31759. }
  31760. },
  31761. i.Physics = function (k, m) {
  31762. m = m || {},
  31763. this.game = k,
  31764. this.config = m,
  31765. this.arcade = null,
  31766. this.p2 = null,
  31767. this.ninja = null,
  31768. this.box2d = null,
  31769. this.chipmunk = null,
  31770. this.parseConfig();
  31771. },
  31772. i.Physics.ARCADE = 0,
  31773. i.Physics.P2JS = 1,
  31774. i.Physics.NINJA = 2,
  31775. i.Physics.BOX2D = 3,
  31776. i.Physics.CHIPMUNK = 4,
  31777. i.Physics.prototype = {
  31778. parseConfig : function () {
  31779. this.config.hasOwnProperty("arcade") && this.config.arcade !== !0 || !i.Physics.hasOwnProperty("Arcade") || (this.arcade = new i.Physics.Arcade(this.game), this.game.time.deltaCap = .2),
  31780. this.config.hasOwnProperty("ninja") && this.config.ninja === !0 && i.Physics.hasOwnProperty("Ninja") && (this.ninja = new i.Physics.Ninja(this.game)),
  31781. this.config.hasOwnProperty("p2") && this.config.p2 === !0 && i.Physics.hasOwnProperty("P2") && (this.p2 = new i.Physics.P2(this.game, this.config)),
  31782. this.config.hasOwnProperty("box2d") && this.config.box2d === !0 && i.Physics.hasOwnProperty("BOX2D") && (this.box2d = new i.Physics.BOX2D(this.game, this.config));
  31783. },
  31784. startSystem : function (k) {
  31785. y3U.Z7o(k, i.Physics.ARCADE) ? this.arcade = new i.Physics.Arcade(this.game) : y3U.R7o(k, i.Physics.P2JS) ? y3U.O7o(null, this.p2) ? this.p2 = new i.Physics.P2(this.game, this.config) : this.p2.reset() : y3U.V7o(k, i.Physics.NINJA) ? this.ninja = new i.Physics.Ninja(this.game) : y3U.k4o(k, i.Physics.BOX2D) && (y3U.G4o(null, this.box2d) ? this.box2d = new i.Physics.Box2D(this.game, this.config) : this.box2d.reset());
  31786. },
  31787. enable : function (k, m, e) {
  31788. "undefined" == typeof m && (m = i.Physics.ARCADE),
  31789. "undefined" == typeof e && (e = !1),
  31790. y3U.N4o(m, i.Physics.ARCADE) ? this.arcade.enable(k) : y3U.L4o(m, i.Physics.P2JS) && this.p2 ? this.p2.enable(k, e) : y3U.z4o(m, i.Physics.NINJA) && this.ninja ? this.ninja.enableAABB(k) : y3U.J4o(m, i.Physics.BOX2D) && this.box2d && this.box2d.enable(k);
  31791. },
  31792. preUpdate : function () {
  31793. this.p2 && this.p2.preUpdate(),
  31794. this.box2d && this.box2d.preUpdate();
  31795. },
  31796. update : function () {
  31797. this.p2 && this.p2.update(),
  31798. this.box2d && this.box2d.update();
  31799. },
  31800. setBoundsToWorld : function () {
  31801. this.arcade && this.arcade.setBoundsToWorld(),
  31802. this.ninja && this.ninja.setBoundsToWorld(),
  31803. this.p2 && this.p2.setBoundsToWorld(),
  31804. this.box2d && this.box2d.setBoundsToWorld();
  31805. },
  31806. clear : function () {
  31807. this.p2 && this.p2.clear(),
  31808. this.box2d && this.box2d.clear();
  31809. },
  31810. destroy : function () {
  31811. this.p2 && this.p2.destroy(),
  31812. this.box2d && this.box2d.destroy(),
  31813. this.arcade = null,
  31814. this.ninja = null,
  31815. this.p2 = null,
  31816. this.box2d = null;
  31817. }
  31818. },
  31819. i.Physics.prototype.constructor = i.Physics,
  31820. i.Physics.Arcade = function (k) {
  31821. this.game = k,
  31822. this.gravity = new i.Point,
  31823. this.bounds = new i.Rectangle(0, 0, k.world.width, k.world.height),
  31824. this.checkCollision = {
  31825. up : !0,
  31826. down : !0,
  31827. left : !0,
  31828. right : !0
  31829. },
  31830. this.maxObjects = 10,
  31831. this.maxLevels = 4,
  31832. this.OVERLAP_BIAS = 4,
  31833. this.TILE_BIAS = 16,
  31834. this.forceX = !1,
  31835. this.skipQuadTree = !0,
  31836. this.quadTree = new i.QuadTree(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, this.maxObjects, this.maxLevels),
  31837. this._overlap = 0,
  31838. this._maxOverlap = 0,
  31839. this._velocity1 = 0,
  31840. this._velocity2 = 0,
  31841. this._newVelocity1 = 0,
  31842. this._newVelocity2 = 0,
  31843. this._average = 0,
  31844. this._mapData = [],
  31845. this._result = !1,
  31846. this._total = 0,
  31847. this._angle = 0,
  31848. this._dx = 0,
  31849. this._dy = 0,
  31850. this.setBoundsToWorld();
  31851. },
  31852. i.Physics.Arcade.prototype.constructor = i.Physics.Arcade,
  31853. i.Physics.Arcade.prototype = {
  31854. setBounds : function (k, m, e, o) {
  31855. this.bounds.setTo(k, m, e, o);
  31856. },
  31857. setBoundsToWorld : function () {
  31858. this.bounds.setTo(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height);
  31859. },
  31860. enable : function (k, m) {
  31861. "undefined" == typeof m && (m = !0);
  31862. var e = 1;
  31863. if (Array.isArray(k))
  31864. for (e = k.length; e--; )
  31865. y3U.H4o(k[e], i.Group) ? this.enable(k[e].children, m) : (this.enableBody(k[e]), m && k[e].hasOwnProperty("children") && y3U.h4o(k[e].children.length, 0) && this.enable(k[e], !0));
  31866. else
  31867. y3U.F4o(k, i.Group) ? this.enable(k.children, m) : (this.enableBody(k), m && k.hasOwnProperty("children") && y3U.M4o(k.children.length, 0) && this.enable(k.children, !0));
  31868. },
  31869. enableBody : function (k) {
  31870. k.hasOwnProperty("body") && y3U.n4o(null, k.body) && (k.body = new i.Physics.Arcade.Body(k));
  31871. },
  31872. updateMotion : function (k) {
  31873. this._velocityDelta = y3U.f4o(this.computeVelocity(0, k, k.angularVelocity, k.angularAcceleration, k.angularDrag, k.maxAngular), k.angularVelocity),
  31874. k.angularVelocity += this._velocityDelta,
  31875. k.rotation += y3U.K4o(k.angularVelocity, this.game.time.physicsElapsed),
  31876. k.velocity.x = this.computeVelocity(1, k, k.velocity.x, k.acceleration.x, k.drag.x, k.maxVelocity.x),
  31877. k.velocity.y = this.computeVelocity(2, k, k.velocity.y, k.acceleration.y, k.drag.y, k.maxVelocity.y);
  31878. },
  31879. computeVelocity : function (k, m, e, o, n, u) {
  31880. return u = u || 1e4,
  31881. y3U.B4o(1, k) && m.allowGravity ? e += y3U.l4o((this.gravity.x + m.gravity.x), this.game.time.physicsElapsed) : y3U.X4o(2, k) && m.allowGravity && (e += y3U.Y4o((this.gravity.y + m.gravity.y), this.game.time.physicsElapsed)),
  31882. o ? e += y3U.U3o(o, this.game.time.physicsElapsed) : n && (this._drag = y3U.T3o(n, this.game.time.physicsElapsed), y3U.S3o(e - this._drag, 0) ? e -= this._drag : y3U.I3o(e + this._drag, 0) ? e += this._drag : e = 0),
  31883. y3U.C3o(e, u) ? e = u : -u > e && (e = -u),
  31884. e;
  31885. },
  31886. overlap : function (k, m, e, o, n) {
  31887. if (e = e || null, o = o || null, n = n || e, this._result = !1, this._total = 0, !Array.isArray(k) && Array.isArray(m))
  31888. for (var u = 0, q = m.length; y3U.v3o(q, u); u++)
  31889. this.collideHandler(k, m[u], e, o, n, !0);
  31890. else if (Array.isArray(k) && !Array.isArray(m))
  31891. for (var u = 0, q = k.length; y3U.t3o(q, u); u++)
  31892. this.collideHandler(k[u], m, e, o, n, !0);
  31893. else if (Array.isArray(k) && Array.isArray(m))
  31894. for (var u = 0, q = k.length; y3U.y3o(q, u); u++)
  31895. for (var f = 0, j = m.length; y3U.o3o(j, f); f++)
  31896. this.collideHandler(k[u], m[f], e, o, n, !0);
  31897. else
  31898. this.collideHandler(k, m, e, o, n, !0);
  31899. return y3U.x3o(this._total, 0);
  31900. },
  31901. collide : function (k, m, e, o, n) {
  31902. if (e = e || null, o = o || null, n = n || e, this._result = !1, this._total = 0, !Array.isArray(k) && Array.isArray(m))
  31903. for (var u = 0, q = m.length; y3U.p3o(q, u); u++)
  31904. this.collideHandler(k, m[u], e, o, n, !1);
  31905. else if (Array.isArray(k) && !Array.isArray(m))
  31906. for (var u = 0, q = k.length; y3U.q3o(q, u); u++)
  31907. this.collideHandler(k[u], m, e, o, n, !1);
  31908. else if (Array.isArray(k) && Array.isArray(m))
  31909. for (var u = 0, f = k.length; y3U.b3o(f, u); u++)
  31910. for (var j = 0, U0 = m.length; y3U.j3o(U0, j); j++)
  31911. this.collideHandler(k[u], m[j], e, o, n, !1);
  31912. else
  31913. this.collideHandler(k, m, e, o, n, !1);
  31914. return y3U.d3o(this._total, 0);
  31915. },
  31916. collideHandler : function (k, m, e, o, n, u) {
  31917. return "undefined" != typeof m || y3U.c3o(k.type, i.GROUP) && y3U.s3o(k.type, i.EMITTER) ? void(k && m && k.exists && m.exists && (y3U.Q3o(k.type, i.SPRITE) || y3U.a9o(k.type, i.TILESPRITE) ? y3U.W9o(m.type, i.SPRITE) || y3U.m9o(m.type, i.TILESPRITE) ? this.collideSpriteVsSprite(k, m, e, o, n, u) : y3U.A9o(m.type, i.GROUP) || y3U.w9o(m.type, i.EMITTER) ? this.collideSpriteVsGroup(k, m, e, o, n, u) : y3U.E9o(m.type, i.TILEMAPLAYER) && this.collideSpriteVsTilemapLayer(k, m, e, o, n) : y3U.e9o(k.type, i.GROUP) ? y3U.g9o(m.type, i.SPRITE) || y3U.r9o(m.type, i.TILESPRITE) ? this.collideSpriteVsGroup(m, k, e, o, n, u) : y3U.i9o(m.type, i.GROUP) || y3U.u9o(m.type, i.EMITTER) ? this.collideGroupVsGroup(k, m, e, o, n, u) : y3U.P9o(m.type, i.TILEMAPLAYER) && this.collideGroupVsTilemapLayer(k, m, e, o, n) : y3U.D9o(k.type, i.TILEMAPLAYER) ? y3U.Z9o(m.type, i.SPRITE) || y3U.R9o(m.type, i.TILESPRITE) ? this.collideSpriteVsTilemapLayer(m, k, e, o, n) : (y3U.O9o(m.type, i.GROUP) || y3U.V9o(m.type, i.EMITTER)) && this.collideGroupVsTilemapLayer(m, k, e, o, n) : y3U.k5o(k.type, i.EMITTER) && (y3U.G5o(m.type, i.SPRITE) || y3U.N5o(m.type, i.TILESPRITE) ? this.collideSpriteVsGroup(m, k, e, o, n, u) : y3U.L5o(m.type, i.GROUP) || y3U.z5o(m.type, i.EMITTER) ? this.collideGroupVsGroup(k, m, e, o, n, u) : y3U.J5o(m.type, i.TILEMAPLAYER) && this.collideGroupVsTilemapLayer(k, m, e, o, n)))) : void this.collideGroupVsSelf(k, e, o, n, u);
  31918. },
  31919. collideSpriteVsSprite : function (k, m, e, o, n, u) {
  31920. return k.body && m.body ? (this.separate(k.body, m.body, o, n, u) && (e && e.call(n, k, m), this._total++), !0) : !1;
  31921. },
  31922. collideSpriteVsGroup : function (k, m, e, o, n, u) {
  31923. if (y3U.H5o(0, m.length) && k.body)
  31924. if (k.body.skipQuadTree || this.skipQuadTree)
  31925. for (var q = 0, f = m.children.length; y3U.h5o(f, q); q++)
  31926. m.children[q] && m.children[q].exists && this.collideSpriteVsSprite(k, m.children[q], e, o, n, u);
  31927. else {
  31928. this.quadTree.clear(),
  31929. this.quadTree.reset(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, this.maxObjects, this.maxLevels),
  31930. this.quadTree.populate(m),
  31931. this._potentials = this.quadTree.retrieve(k);
  31932. for (var q = 0, f = this._potentials.length; y3U.F5o(f, q); q++)
  31933. this.separate(k.body, this._potentials[q], o, n, u) && (e && e.call(n, k, this._potentials[q].sprite), this._total++);
  31934. }
  31935. },
  31936. collideGroupVsSelf : function (k, m, e, o, n) {
  31937. if (y3U.M5o(0, k.length))
  31938. for (var u = k.children.length, q = 0; y3U.n5o(u - 1, q); q++)
  31939. for (var f = q + 1; y3U.f5o(u, f); f++)
  31940. k.children[q] && k.children[f] && k.children[q].exists && k.children[f].exists && this.collideSpriteVsSprite(k.children[q], k.children[f], m, e, o, n);
  31941. },
  31942. collideGroupVsGroup : function (k, m, e, o, n, u) {
  31943. if (y3U.K5o(0, k.length) && y3U.B5o(0, m.length))
  31944. for (var q = 0, f = k.children.length; y3U.l5o(f, q); q++)
  31945. k.children[q].exists && (y3U.X5o(k.children[q].type, i.GROUP) ? this.collideGroupVsGroup(k.children[q], m, e, o, n, u) : this.collideSpriteVsGroup(k.children[q], m, e, o, n, u));
  31946. },
  31947. collideSpriteVsTilemapLayer : function (k, m, e, o, n) {
  31948. if (k.body && (this._mapData = m.getTiles(y3U.Y5o(k.body.position.x, k.body.tilePadding.x), y3U.U2o(k.body.position.y, k.body.tilePadding.y), k.body.width + k.body.tilePadding.x, k.body.height + k.body.tilePadding.y, !1, !1), y3U.T2o(0, this._mapData.length)))
  31949. for (var u = 0; y3U.S2o(u, this._mapData.length); u++)
  31950. o ? o.call(n, k, this._mapData[u]) && this.separateTile(u, k.body, this._mapData[u]) && (this._total++, e && e.call(n, k, this._mapData[u])) : this.separateTile(u, k.body, this._mapData[u]) && (this._total++, e && e.call(n, k, this._mapData[u]));
  31951. },
  31952. collideGroupVsTilemapLayer : function (k, m, e, o, n) {
  31953. if (y3U.I2o(0, k.length))
  31954. for (var u = 0, q = k.children.length; y3U.C2o(q, u); u++)
  31955. k.children[u].exists && this.collideSpriteVsTilemapLayer(k.children[u], m, e, o, n);
  31956. },
  31957. separate : function (k, m, e, o, n) {
  31958. return k.enable && m.enable && this.intersects(k, m) ? e && e.call(o, k.sprite, m.sprite) === !1 ? !1 : (this._result = this.forceX || y3U.v2o(Math.abs(this.gravity.y + k.gravity.y), Math.abs(this.gravity.x + k.gravity.x)) ? this.separateX(k, m, n) || this.separateY(k, m, n) : this.separateY(k, m, n) || this.separateX(k, m, n), n ? !0 : this._result) : !1;
  31959. },
  31960. intersects : function (k, m) {
  31961. return y3U.t2o(k.right, m.position.x) ? !1 : y3U.y2o(k.bottom, m.position.y) ? !1 : y3U.o2o(k.position.x, m.right) ? !1 : y3U.x2o(k.position.y, m.bottom) ? !1 : !0;
  31962. },
  31963. separateX : function (k, m, e) {
  31964. return k.immovable && m.immovable ? !1 : (this._overlap = 0, this.intersects(k, m) && (this._maxOverlap = k.deltaAbsX() + m.deltaAbsX() + this.OVERLAP_BIAS, y3U.p2o(0, k.deltaX()) && y3U.q2o(0, m.deltaX()) ? (k.embedded = !0, m.embedded = !0) : y3U.b2o(k.deltaX(), m.deltaX()) ? (this._overlap = y3U.j2o(k.right, m.x), y3U.d2o(this._overlap, this._maxOverlap) || k.checkCollision.right === !1 || m.checkCollision.left === !1 ? this._overlap = 0 : (k.touching.none = !1, k.touching.right = !0, m.touching.none = !1, m.touching.left = !0)) : y3U.c2o(k.deltaX(), m.deltaX()) && (this._overlap = y3U.s2o(k.x, m.width, m.x), -this._overlap > this._maxOverlap || k.checkCollision.left === !1 || m.checkCollision.right === !1 ? this._overlap = 0 : (k.touching.none = !1, k.touching.left = !0, m.touching.none = !1, m.touching.right = !0)), k.overlapX = this._overlap, m.overlapX = this._overlap, y3U.U1o(0, this._overlap)) ? e || k.customSeparateX || m.customSeparateX ? !0 : (this._velocity1 = k.velocity.x, this._velocity2 = m.velocity.x, k.immovable || m.immovable ? k.immovable ? m.immovable || (m.x += this._overlap, m.velocity.x = y3U.T1o(this._velocity1, this._velocity2 * m.bounce.x)) : (k.x = y3U.S1o(k.x, this._overlap), k.velocity.x = y3U.I1o(this._velocity2, this._velocity1 * k.bounce.x)) : (this._overlap *= .5, k.x = y3U.C1o(k.x, this._overlap), m.x += this._overlap, this._newVelocity1 = Math.sqrt(y3U.v1o(this._velocity2, this._velocity2, m.mass, k.mass)) * (y3U.e1o(this._velocity2, 0) ? 1 : -1), this._newVelocity2 = Math.sqrt(y3U.g1o(this._velocity1, this._velocity1, k.mass, m.mass)) * (y3U.M1o(this._velocity1, 0) ? 1 : -1), this._average = y3U.n1o(.5, (this._newVelocity1 + this._newVelocity2)), this._newVelocity1 -= this._average, this._newVelocity2 -= this._average, k.velocity.x = this._average + y3U.f1o(this._newVelocity1, k.bounce.x), m.velocity.x = this._average + y3U.K1o(this._newVelocity2, m.bounce.x)), !0) : !1);
  31965. },
  31966. separateY : function (k, m, e) {
  31967. return k.immovable && m.immovable ? !1 : (this._overlap = 0, this.intersects(k, m) && (this._maxOverlap = k.deltaAbsY() + m.deltaAbsY() + this.OVERLAP_BIAS, y3U.B1o(0, k.deltaY()) && y3U.l1o(0, m.deltaY()) ? (k.embedded = !0, m.embedded = !0) : y3U.X1o(k.deltaY(), m.deltaY()) ? (this._overlap = y3U.Y1o(k.bottom, m.y), y3U.U6o(this._overlap, this._maxOverlap) || k.checkCollision.down === !1 || m.checkCollision.up === !1 ? this._overlap = 0 : (k.touching.none = !1, k.touching.down = !0, m.touching.none = !1, m.touching.up = !0)) : y3U.T6o(k.deltaY(), m.deltaY()) && (this._overlap = y3U.S6o(k.y, m.bottom), -this._overlap > this._maxOverlap || k.checkCollision.up === !1 || m.checkCollision.down === !1 ? this._overlap = 0 : (k.touching.none = !1, k.touching.up = !0, m.touching.none = !1, m.touching.down = !0)), k.overlapY = this._overlap, m.overlapY = this._overlap, y3U.I6o(0, this._overlap)) ? e || k.customSeparateY || m.customSeparateY ? !0 : (this._velocity1 = k.velocity.y, this._velocity2 = m.velocity.y, k.immovable || m.immovable ? k.immovable ? m.immovable || (m.y += this._overlap, m.velocity.y = y3U.C6o(this._velocity1, this._velocity2 * m.bounce.y), k.moves && (m.x += y3U.v6o(k.x, k.prev.x))) : (k.y = y3U.t6o(k.y, this._overlap), k.velocity.y = y3U.y6o(this._velocity2, this._velocity1 * k.bounce.y), m.moves && (k.x += y3U.o6o(m.x, m.prev.x))) : (this._overlap *= .5, k.y = y3U.x6o(k.y, this._overlap), m.y += this._overlap, this._newVelocity1 = Math.sqrt(y3U.p6o(this._velocity2, this._velocity2, m.mass, k.mass)) * (y3U.P6o(this._velocity2, 0) ? 1 : -1), this._newVelocity2 = Math.sqrt(y3U.D6o(this._velocity1, this._velocity1, k.mass, m.mass)) * (y3U.l6o(this._velocity1, 0) ? 1 : -1), this._average = y3U.X6o(.5, (this._newVelocity1 + this._newVelocity2)), this._newVelocity1 -= this._average, this._newVelocity2 -= this._average, k.velocity.y = this._average + y3U.Y6o(this._newVelocity1, k.bounce.y), m.velocity.y = this._average + y3U.U8o(this._newVelocity2, m.bounce.y)), !0) : !1);
  31968. },
  31969. separateTile : function (k, m, e) {
  31970. if (!m.enable || !e.intersects(m.position.x, m.position.y, m.right, m.bottom))
  31971. return !1;
  31972. if (e.collisionCallback && !e.collisionCallback.call(e.collisionCallbackContext, m.sprite, e))
  31973. return !1;
  31974. if (e.layer.callbacks[e.index] && !e.layer.callbacks[e.index].callback.call(e.layer.callbacks[e.index].callbackContext, m.sprite, e))
  31975. return !1;
  31976. if (!(e.faceLeft || e.faceRight || e.faceTop || e.faceBottom))
  31977. return !1;
  31978. var o = 0,
  31979. n = 0,
  31980. u = 0,
  31981. q = 1;
  31982. if (y3U.T8o(m.deltaAbsX(), m.deltaAbsY()) ? u = -1 : y3U.S8o(m.deltaAbsX(), m.deltaAbsY()) && (q = -1), y3U.I8o(0, m.deltaX()) && y3U.C8o(0, m.deltaY()) && (e.faceLeft || e.faceRight) && (e.faceTop || e.faceBottom) && (u = Math.min(Math.abs(y3U.v8o(m.position.x, e.right)), Math.abs(y3U.t8o(m.right, e.left))), q = Math.min(Math.abs(y3U.y8o(m.position.y, e.bottom)), Math.abs(y3U.o8o(m.bottom, e.top)))), y3U.x8o(q, u)) {
  31983. if ((e.faceLeft || e.faceRight) && (o = this.tileCheckX(m, e), y3U.p8o(0, o) && !e.intersects(m.position.x, m.position.y, m.right, m.bottom)))
  31984. return !0;
  31985. (e.faceTop || e.faceBottom) && (n = this.tileCheckY(m, e));
  31986. } else {
  31987. if ((e.faceTop || e.faceBottom) && (n = this.tileCheckY(m, e), y3U.q8o(0, n) && !e.intersects(m.position.x, m.position.y, m.right, m.bottom)))
  31988. return !0;
  31989. (e.faceLeft || e.faceRight) && (o = this.tileCheckX(m, e));
  31990. }
  31991. return y3U.b8o(0, o) || y3U.j8o(0, n);
  31992. },
  31993. tileCheckX : function (k, m) {
  31994. var e = 0;
  31995. return y3U.d8o(k.deltaX(), 0) && !k.blocked.left && m.collideRight && k.checkCollision.left ? m.faceRight && y3U.c8o(k.x, m.right) && (e = y3U.s8o(k.x, m.right), e < -this.TILE_BIAS && (e = 0)) : y3U.Q8o(k.deltaX(), 0) && !k.blocked.right && m.collideLeft && k.checkCollision.right && m.faceLeft && y3U.a04(k.right, m.left) && (e = y3U.W04(k.right, m.left), y3U.m04(e, this.TILE_BIAS) && (e = 0)),
  31996. y3U.A04(0, e) && this.processTileSeparationX(k, e),
  31997. e;
  31998. },
  31999. tileCheckY : function (k, m) {
  32000. var e = 0;
  32001. return y3U.w04(k.deltaY(), 0) && !k.blocked.up && m.collideDown && k.checkCollision.up ? m.faceBottom && y3U.E04(k.y, m.bottom) && (e = y3U.e04(k.y, m.bottom), e < -this.TILE_BIAS && (e = 0)) : y3U.g04(k.deltaY(), 0) && !k.blocked.down && m.collideUp && k.checkCollision.down && m.faceTop && y3U.r04(k.bottom, m.top) && (e = y3U.i04(k.bottom, m.top), y3U.u04(e, this.TILE_BIAS) && (e = 0)),
  32002. y3U.P04(0, e) && this.processTileSeparationY(k, e),
  32003. e;
  32004. },
  32005. processTileSeparationX : function (k, m) {
  32006. y3U.D04(0, m) ? k.blocked.left = !0 : y3U.Z04(m, 0) && (k.blocked.right = !0),
  32007. k.position.x -= m,
  32008. k.velocity.x = y3U.R04(0, k.bounce.x) ? 0 : -k.velocity.x * k.bounce.x;
  32009. },
  32010. processTileSeparationY : function (k, m) {
  32011. y3U.O04(0, m) ? k.blocked.up = !0 : y3U.V04(m, 0) && (k.blocked.down = !0),
  32012. k.position.y -= m,
  32013. k.velocity.y = y3U.k74(0, k.bounce.y) ? 0 : -k.velocity.y * k.bounce.y;
  32014. },
  32015. getObjectsUnderPointer : function (k, m, e, o) {
  32016. return y3U.G74(0, m.length) && k.exists ? this.getObjectsAtLocation(k.x, k.y, m, e, o, k) : void 0;
  32017. },
  32018. getObjectsAtLocation : function (k, m, e, o, n, u) {
  32019. this.quadTree.clear(),
  32020. this.quadTree.reset(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, this.maxObjects, this.maxLevels),
  32021. this.quadTree.populate(e);
  32022. var q = new i.Rectangle(k, m, 1, 1),
  32023. f = [];
  32024. this._potentials = this.quadTree.retrieve(q);
  32025. for (var j = 0, U0 = this._potentials.length; y3U.N74(U0, j); j++)
  32026. this._potentials[j].hitTest(k, m) && (o && o.call(n, u, this._potentials[j].sprite), f.push(this._potentials[j].sprite));
  32027. return f;
  32028. },
  32029. moveToObject : function (k, m, e, o) {
  32030. return "undefined" == typeof e && (e = 60),
  32031. "undefined" == typeof o && (o = 0),
  32032. this._angle = Math.atan2(y3U.L74(m.y, k.y), y3U.z74(m.x, k.x)),
  32033. y3U.J74(o, 0) && (e = y3U.H74(this.distanceBetween(k, m), (o / 1e3))),
  32034. k.body.velocity.x = y3U.h74(Math.cos(this._angle), e),
  32035. k.body.velocity.y = y3U.F74(Math.sin(this._angle), e),
  32036. this._angle;
  32037. },
  32038. moveToPointer : function (k, m, e, o) {
  32039. return "undefined" == typeof m && (m = 60),
  32040. e = e || this.game.input.activePointer,
  32041. "undefined" == typeof o && (o = 0),
  32042. this._angle = this.angleToPointer(k, e),
  32043. y3U.M74(o, 0) && (m = y3U.n74(this.distanceToPointer(k, e), (o / 1e3))),
  32044. k.body.velocity.x = y3U.f74(Math.cos(this._angle), m),
  32045. k.body.velocity.y = y3U.K74(Math.sin(this._angle), m),
  32046. this._angle;
  32047. },
  32048. moveToXY : function (k, m, e, o, n) {
  32049. return "undefined" == typeof o && (o = 60),
  32050. "undefined" == typeof n && (n = 0),
  32051. this._angle = Math.atan2(y3U.B74(e, k.y), y3U.l74(m, k.x)),
  32052. y3U.X74(n, 0) && (o = y3U.Y74(this.distanceToXY(k, m, e), (n / 1e3))),
  32053. k.body.velocity.x = y3U.U44(Math.cos(this._angle), o),
  32054. k.body.velocity.y = y3U.T44(Math.sin(this._angle), o),
  32055. this._angle;
  32056. },
  32057. velocityFromAngle : function (k, m, e) {
  32058. return "undefined" == typeof m && (m = 60),
  32059. e = e || new i.Point,
  32060. e.setTo(y3U.S44(Math.cos(this.game.math.degToRad(k)), m), y3U.I44(Math.sin(this.game.math.degToRad(k)), m));
  32061. },
  32062. velocityFromRotation : function (k, m, e) {
  32063. return "undefined" == typeof m && (m = 60),
  32064. e = e || new i.Point,
  32065. e.setTo(y3U.C44(Math.cos(k), m), y3U.v44(Math.sin(k), m));
  32066. },
  32067. accelerationFromRotation : function (k, m, e) {
  32068. return "undefined" == typeof m && (m = 60),
  32069. e = e || new i.Point,
  32070. e.setTo(y3U.t44(Math.cos(k), m), y3U.y44(Math.sin(k), m));
  32071. },
  32072. accelerateToObject : function (k, m, e, o, n) {
  32073. return "undefined" == typeof e && (e = 60),
  32074. "undefined" == typeof o && (o = 1e3),
  32075. "undefined" == typeof n && (n = 1e3),
  32076. this._angle = this.angleBetween(k, m),
  32077. k.body.acceleration.setTo(y3U.o44(Math.cos(this._angle), e), y3U.x44(Math.sin(this._angle), e)),
  32078. k.body.maxVelocity.setTo(o, n),
  32079. this._angle;
  32080. },
  32081. accelerateToPointer : function (k, m, e, o, n) {
  32082. return "undefined" == typeof e && (e = 60),
  32083. "undefined" == typeof m && (m = this.game.input.activePointer),
  32084. "undefined" == typeof o && (o = 1e3),
  32085. "undefined" == typeof n && (n = 1e3),
  32086. this._angle = this.angleToPointer(k, m),
  32087. k.body.acceleration.setTo(y3U.p44(Math.cos(this._angle), e), y3U.q44(Math.sin(this._angle), e)),
  32088. k.body.maxVelocity.setTo(o, n),
  32089. this._angle;
  32090. },
  32091. accelerateToXY : function (k, m, e, o, n, u) {
  32092. return "undefined" == typeof o && (o = 60),
  32093. "undefined" == typeof n && (n = 1e3),
  32094. "undefined" == typeof u && (u = 1e3),
  32095. this._angle = this.angleToXY(k, m, e),
  32096. k.body.acceleration.setTo(y3U.b44(Math.cos(this._angle), o), y3U.j44(Math.sin(this._angle), o)),
  32097. k.body.maxVelocity.setTo(n, u),
  32098. this._angle;
  32099. },
  32100. distanceBetween : function (k, m) {
  32101. return this._dx = y3U.d44(k.x, m.x),
  32102. this._dy = y3U.c44(k.y, m.y),
  32103. Math.sqrt(y3U.s44(this._dx, this._dx) + y3U.Q44(this._dy, this._dy));
  32104. },
  32105. distanceToXY : function (k, m, e) {
  32106. return this._dx = y3U.a34(k.x, m),
  32107. this._dy = y3U.W34(k.y, e),
  32108. Math.sqrt(y3U.m34(this._dx, this._dx) + y3U.A34(this._dy, this._dy));
  32109. },
  32110. distanceToPointer : function (k, m) {
  32111. return m = m || this.game.input.activePointer,
  32112. this._dx = y3U.w34(k.x, m.x),
  32113. this._dy = y3U.E34(k.y, m.y),
  32114. Math.sqrt(y3U.e34(this._dx, this._dx) + y3U.g34(this._dy, this._dy));
  32115. },
  32116. angleBetween : function (k, m) {
  32117. return this._dx = y3U.r34(m.x, k.x),
  32118. this._dy = y3U.i34(m.y, k.y),
  32119. Math.atan2(this._dy, this._dx);
  32120. },
  32121. angleToXY : function (k, m, e) {
  32122. return this._dx = y3U.u34(m, k.x),
  32123. this._dy = y3U.P34(e, k.y),
  32124. Math.atan2(this._dy, this._dx);
  32125. },
  32126. angleToPointer : function (k, m) {
  32127. return m = m || this.game.input.activePointer,
  32128. this._dx = y3U.D34(m.worldX, k.x),
  32129. this._dy = y3U.Z34(m.worldY, k.y),
  32130. Math.atan2(this._dy, this._dx);
  32131. }
  32132. },
  32133. i.Physics.Arcade.Body = function (k) {
  32134. this.sprite = k,
  32135. this.game = k.game,
  32136. this.type = i.Physics.ARCADE,
  32137. this.enable = !0,
  32138. this.offset = new i.Point,
  32139. this.position = new i.Point(k.x, k.y),
  32140. this.prev = new i.Point(this.position.x, this.position.y),
  32141. this.allowRotation = !0,
  32142. this.rotation = k.rotation,
  32143. this.preRotation = k.rotation,
  32144. this.sourceWidth = k.texture.frame.width,
  32145. this.sourceHeight = k.texture.frame.height,
  32146. this.width = k.width,
  32147. this.height = k.height,
  32148. this.halfWidth = Math.abs(y3U.R34(k.width, 2)),
  32149. this.halfHeight = Math.abs(y3U.O34(k.height, 2)),
  32150. this.center = new i.Point(k.x + this.halfWidth, k.y + this.halfHeight),
  32151. this.velocity = new i.Point,
  32152. this.newVelocity = new i.Point(0, 0),
  32153. this.deltaMax = new i.Point(0, 0),
  32154. this.acceleration = new i.Point,
  32155. this.drag = new i.Point,
  32156. this.allowGravity = !0,
  32157. this.gravity = new i.Point(0, 0),
  32158. this.bounce = new i.Point,
  32159. this.maxVelocity = new i.Point(1e4, 1e4),
  32160. this.angularVelocity = 0,
  32161. this.angularAcceleration = 0,
  32162. this.angularDrag = 0,
  32163. this.maxAngular = 1e3,
  32164. this.mass = 1,
  32165. this.angle = 0,
  32166. this.speed = 0,
  32167. this.facing = i.NONE,
  32168. this.immovable = !1,
  32169. this.moves = !0,
  32170. this.customSeparateX = !1,
  32171. this.customSeparateY = !1,
  32172. this.overlapX = 0,
  32173. this.overlapY = 0,
  32174. this.embedded = !1,
  32175. this.collideWorldBounds = !1,
  32176. this.checkCollision = {
  32177. none : !1,
  32178. any : !0,
  32179. up : !0,
  32180. down : !0,
  32181. left : !0,
  32182. right : !0
  32183. },
  32184. this.touching = {
  32185. none : !0,
  32186. up : !1,
  32187. down : !1,
  32188. left : !1,
  32189. right : !1
  32190. },
  32191. this.wasTouching = {
  32192. none : !0,
  32193. up : !1,
  32194. down : !1,
  32195. left : !1,
  32196. right : !1
  32197. },
  32198. this.blocked = {
  32199. up : !1,
  32200. down : !1,
  32201. left : !1,
  32202. right : !1
  32203. },
  32204. this.tilePadding = new i.Point,
  32205. this.phase = 0,
  32206. this.skipQuadTree = !1,
  32207. this._reset = !0,
  32208. this._sx = k.scale.x,
  32209. this._sy = k.scale.y,
  32210. this._dx = 0,
  32211. this._dy = 0;
  32212. },
  32213. i.Physics.Arcade.Body.prototype = {
  32214. updateBounds : function () {
  32215. var k = Math.abs(this.sprite.scale.x),
  32216. m = Math.abs(this.sprite.scale.y);
  32217. (y3U.V34(k, this._sx) || y3U.k94(m, this._sy)) && (this.width = y3U.G94(this.sourceWidth, k), this.height = y3U.N94(this.sourceHeight, m), this.halfWidth = Math.floor(y3U.L94(this.width, 2)), this.halfHeight = Math.floor(y3U.z94(this.height, 2)), this._sx = k, this._sy = m, this.center.setTo(this.position.x + this.halfWidth, this.position.y + this.halfHeight), this._reset = !0);
  32218. },
  32219. preUpdate : function () {
  32220. this.enable && (this.phase = 1, this.wasTouching.none = this.touching.none, this.wasTouching.up = this.touching.up, this.wasTouching.down = this.touching.down, this.wasTouching.left = this.touching.left, this.wasTouching.right = this.touching.right, this.touching.none = !0, this.touching.up = !1, this.touching.down = !1, this.touching.left = !1, this.touching.right = !1, this.blocked.up = !1, this.blocked.down = !1, this.blocked.left = !1, this.blocked.right = !1, this.embedded = !1, this.updateBounds(), this.position.x = y3U.J94(this.sprite.world.x, this.sprite.anchor.x * this.width, this.offset.x), this.position.y = y3U.e94(this.sprite.world.y, this.sprite.anchor.y * this.height, this.offset.y), this.rotation = this.sprite.angle, this.preRotation = this.rotation, (this._reset || y3U.o94(1, this.sprite._cache[4])) && (this.prev.x = this.position.x, this.prev.y = this.position.y), this.moves && (this.game.physics.arcade.updateMotion(this), this.newVelocity.set(y3U.x94(this.velocity.x, this.game.time.physicsElapsed), y3U.p94(this.velocity.y, this.game.time.physicsElapsed)), this.position.x += this.newVelocity.x, this.position.y += this.newVelocity.y, (y3U.q94(this.position.x, this.prev.x) || y3U.b94(this.position.y, this.prev.y)) && (this.speed = Math.sqrt(y3U.j94(this.velocity.x, this.velocity.x) + y3U.d94(this.velocity.y, this.velocity.y)), this.angle = Math.atan2(this.velocity.y, this.velocity.x)), this.collideWorldBounds && this.checkWorldBounds()), this._dx = this.deltaX(), this._dy = this.deltaY(), this._reset = !1);
  32221. },
  32222. postUpdate : function () {
  32223. this.enable && y3U.c94(2, this.phase) && (this.phase = 2, y3U.s94(this.deltaX(), 0) ? this.facing = i.LEFT : y3U.Q94(this.deltaX(), 0) && (this.facing = i.RIGHT), y3U.a54(this.deltaY(), 0) ? this.facing = i.UP : y3U.W54(this.deltaY(), 0) && (this.facing = i.DOWN), this.moves && (this._dx = this.deltaX(), this._dy = this.deltaY(), y3U.m54(0, this.deltaMax.x) && y3U.A54(0, this._dx) && (y3U.w54(this._dx, 0) && this._dx < -this.deltaMax.x ? this._dx = -this.deltaMax.x : y3U.E54(this._dx, 0) && y3U.e54(this._dx, this.deltaMax.x) && (this._dx = this.deltaMax.x)), y3U.g54(0, this.deltaMax.y) && y3U.r54(0, this._dy) && (y3U.i54(this._dy, 0) && this._dy < -this.deltaMax.y ? this._dy = -this.deltaMax.y : y3U.u54(this._dy, 0) && y3U.P54(this._dy, this.deltaMax.y) && (this._dy = this.deltaMax.y)), this.sprite.x += this._dx, this.sprite.y += this._dy), this.center.setTo(this.position.x + this.halfWidth, this.position.y + this.halfHeight), this.allowRotation && (this.sprite.angle += this.deltaZ()), this.prev.x = this.position.x, this.prev.y = this.position.y);
  32224. },
  32225. destroy : function () {
  32226. this.sprite.body = null,
  32227. this.sprite = null;
  32228. },
  32229. checkWorldBounds : function () {
  32230. y3U.D54(this.position.x, this.game.physics.arcade.bounds.x) && this.game.physics.arcade.checkCollision.left ? (this.position.x = this.game.physics.arcade.bounds.x, this.velocity.x *= -this.bounce.x, this.blocked.left = !0) : y3U.Z54(this.right, this.game.physics.arcade.bounds.right) && this.game.physics.arcade.checkCollision.right && (this.position.x = y3U.R54(this.game.physics.arcade.bounds.right, this.width), this.velocity.x *= -this.bounce.x, this.blocked.right = !0),
  32231. y3U.O54(this.position.y, this.game.physics.arcade.bounds.y) && this.game.physics.arcade.checkCollision.up ? (this.position.y = this.game.physics.arcade.bounds.y, this.velocity.y *= -this.bounce.y, this.blocked.up = !0) : y3U.V54(this.bottom, this.game.physics.arcade.bounds.bottom) && this.game.physics.arcade.checkCollision.down && (this.position.y = y3U.k24(this.game.physics.arcade.bounds.bottom, this.height), this.velocity.y *= -this.bounce.y, this.blocked.down = !0);
  32232. },
  32233. setSize : function (k, m, e, o) {
  32234. "undefined" == typeof e && (e = this.offset.x),
  32235. "undefined" == typeof o && (o = this.offset.y),
  32236. this.sourceWidth = k,
  32237. this.sourceHeight = m,
  32238. this.width = y3U.G24(this.sourceWidth, this._sx),
  32239. this.height = y3U.N24(this.sourceHeight, this._sy),
  32240. this.halfWidth = Math.floor(y3U.L24(this.width, 2)),
  32241. this.halfHeight = Math.floor(y3U.z24(this.height, 2)),
  32242. this.offset.setTo(e, o),
  32243. this.center.setTo(this.position.x + this.halfWidth, this.position.y + this.halfHeight);
  32244. },
  32245. reset : function (k, m) {
  32246. this.velocity.set(0),
  32247. this.acceleration.set(0),
  32248. this.angularVelocity = 0,
  32249. this.angularAcceleration = 0,
  32250. this.position.x = y3U.J24(k, this.sprite.anchor.x * this.width, this.offset.x),
  32251. this.position.y = y3U.e24(m, this.sprite.anchor.y * this.height, this.offset.y),
  32252. this.prev.x = this.position.x,
  32253. this.prev.y = this.position.y,
  32254. this.rotation = this.sprite.angle,
  32255. this.preRotation = this.rotation,
  32256. this._sx = this.sprite.scale.x,
  32257. this._sy = this.sprite.scale.y,
  32258. this.center.setTo(this.position.x + this.halfWidth, this.position.y + this.halfHeight);
  32259. },
  32260. hitTest : function (k, m) {
  32261. return i.Rectangle.contains(this, k, m);
  32262. },
  32263. onFloor : function () {
  32264. return this.blocked.down;
  32265. },
  32266. onWall : function () {
  32267. return this.blocked.left || this.blocked.right;
  32268. },
  32269. deltaAbsX : function () {
  32270. return y3U.o24(this.deltaX(), 0) ? this.deltaX() : -this.deltaX();
  32271. },
  32272. deltaAbsY : function () {
  32273. return y3U.x24(this.deltaY(), 0) ? this.deltaY() : -this.deltaY();
  32274. },
  32275. deltaX : function () {
  32276. return y3U.p24(this.position.x, this.prev.x);
  32277. },
  32278. deltaY : function () {
  32279. return y3U.q24(this.position.y, this.prev.y);
  32280. },
  32281. deltaZ : function () {
  32282. return y3U.b24(this.rotation, this.preRotation);
  32283. }
  32284. },
  32285. Object.defineProperty(i.Physics.Arcade.Body.prototype, "bottom", {
  32286. get : function () {
  32287. return this.position.y + this.height;
  32288. }
  32289. }),
  32290. Object.defineProperty(i.Physics.Arcade.Body.prototype, "right", {
  32291. get : function () {
  32292. return this.position.x + this.width;
  32293. }
  32294. }),
  32295. Object.defineProperty(i.Physics.Arcade.Body.prototype, "x", {
  32296. get : function () {
  32297. return this.position.x;
  32298. },
  32299. set : function (k) {
  32300. this.position.x = k;
  32301. }
  32302. }),
  32303. Object.defineProperty(i.Physics.Arcade.Body.prototype, "y", {
  32304. get : function () {
  32305. return this.position.y;
  32306. },
  32307. set : function (k) {
  32308. this.position.y = k;
  32309. }
  32310. }),
  32311. i.Physics.Arcade.Body.render = function (k, m, e, o) {
  32312. "undefined" == typeof o && (o = !0),
  32313. e = e || "rgba(0,255,0,0.4)",
  32314. o ? (k.fillStyle = e, k.fillRect(y3U.j24(m.position.x, m.game.camera.x), y3U.d24(m.position.y, m.game.camera.y), m.width, m.height)) : (k.strokeStyle = e, k.strokeRect(y3U.c24(m.position.x, m.game.camera.x), y3U.s24(m.position.y, m.game.camera.y), m.width, m.height));
  32315. },
  32316. i.Physics.Arcade.Body.renderBodyInfo = function (k, m) {
  32317. k.line("x: " + m.x.toFixed(2), "y: " + m.y.toFixed(2), "width: " + m.width, "height: " + m.height),
  32318. k.line("velocity x: " + m.velocity.x.toFixed(2), "y: " + m.velocity.y.toFixed(2), "deltaX: " + m._dx.toFixed(2), "deltaY: " + m._dy.toFixed(2)),
  32319. k.line("acceleration x: " + m.acceleration.x.toFixed(2), "y: " + m.acceleration.y.toFixed(2), "speed: " + m.speed.toFixed(2), "angle: " + m.angle.toFixed(2)),
  32320. k.line("gravity x: " + m.gravity.x, "y: " + m.gravity.y, "bounce x: " + m.bounce.x.toFixed(2), "y: " + m.bounce.y.toFixed(2)),
  32321. k.line("touching left: " + m.touching.left, "right: " + m.touching.right, "up: " + m.touching.up, "down: " + m.touching.down),
  32322. k.line("blocked left: " + m.blocked.left, "right: " + m.blocked.right, "up: " + m.blocked.up, "down: " + m.blocked.down);
  32323. },
  32324. i.Physics.Arcade.Body.prototype.constructor = i.Physics.Arcade.Body,
  32325. i.Particles = function (k) {
  32326. this.game = k,
  32327. this.emitters = {},
  32328. this.ID = 0;
  32329. },
  32330. i.Particles.prototype = {
  32331. add : function (k) {
  32332. return this.emitters[k.name] = k,
  32333. k;
  32334. },
  32335. remove : function (k) {
  32336. delete this.emitters[k.name];
  32337. },
  32338. update : function () {
  32339. for (var k in this.emitters)
  32340. this.emitters[k].exists && this.emitters[k].update();
  32341. }
  32342. },
  32343. i.Particles.prototype.constructor = i.Particles,
  32344. i.Particles.Arcade = {},
  32345. i.Particles.Arcade.Emitter = function (k, m, e, o) {
  32346. this.maxParticles = o || 50,
  32347. i.Group.call(this, k),
  32348. this.name = "emitter" + this.game.particles.ID++,
  32349. this.type = i.EMITTER,
  32350. this.area = new i.Rectangle(m, e, 1, 1),
  32351. this.minParticleSpeed = new i.Point(-100, -100),
  32352. this.maxParticleSpeed = new i.Point(100, 100),
  32353. this.minParticleScale = 1,
  32354. this.maxParticleScale = 1,
  32355. this.scaleData = null,
  32356. this.minRotation = -360,
  32357. this.maxRotation = 360,
  32358. this.minParticleAlpha = 1,
  32359. this.maxParticleAlpha = 1,
  32360. this.alphaData = null,
  32361. this.gravity = 100,
  32362. this.particleClass = i.Particle,
  32363. this.particleDrag = new i.Point,
  32364. this.angularDrag = 0,
  32365. this.frequency = 100,
  32366. this.lifespan = 2e3,
  32367. this.bounce = new i.Point,
  32368. this.on = !1,
  32369. this.particleAnchor = new i.Point(.5, .5),
  32370. this.blendMode = i.blendModes.NORMAL,
  32371. this.emitX = m,
  32372. this.emitY = e,
  32373. this.autoScale = !1,
  32374. this.autoAlpha = !1,
  32375. this.particleBringToTop = !1,
  32376. this.particleSendToBack = !1,
  32377. this._minParticleScale = new i.Point(1, 1),
  32378. this._maxParticleScale = new i.Point(1, 1),
  32379. this._quantity = 0,
  32380. this._timer = 0,
  32381. this._counter = 0,
  32382. this._explode = !0,
  32383. this._frames = null;
  32384. },
  32385. i.Particles.Arcade.Emitter.prototype = Object.create(i.Group.prototype),
  32386. i.Particles.Arcade.Emitter.prototype.constructor = i.Particles.Arcade.Emitter,
  32387. i.Particles.Arcade.Emitter.prototype.update = function () {
  32388. this.on && y3U.Q24(this.game.time.time, this._timer) && (this._timer = this.game.time.time + y3U.a14(this.frequency, this.game.time.slowMotion), this.emitParticle() && (this._counter++, y3U.W14(this._quantity, 0) && y3U.m14(this._counter, this._quantity) && (this.on = !1)));
  32389. for (var k = this.children.length; k--; )
  32390. this.children[k].exists && this.children[k].update();
  32391. },
  32392. i.Particles.Arcade.Emitter.prototype.makeParticles = function (k, m, e, o, n) {
  32393. "undefined" == typeof m && (m = 0),
  32394. "undefined" == typeof e && (e = this.maxParticles),
  32395. "undefined" == typeof o && (o = !1),
  32396. "undefined" == typeof n && (n = !1);
  32397. var u,
  32398. q = 0,
  32399. f = k,
  32400. j = m;
  32401. for (this._frames = m, y3U.A14(e, this.maxParticles) && (this.maxParticles = e); y3U.w14(e, q); )
  32402. Array.isArray(k) && (f = this.game.rnd.pick(k)), Array.isArray(m) && (j = this.game.rnd.pick(m)), u = new this.particleClass(this.game, 0, 0, f, j), this.game.physics.arcade.enable(u, !1), o ? (u.body.checkCollision.any = !0, u.body.checkCollision.none = !1) : u.body.checkCollision.none = !0, u.body.collideWorldBounds = n, u.body.skipQuadTree = !0, u.exists = !1, u.visible = !1, u.anchor.copyFrom(this.particleAnchor), this.add(u), q++;
  32403. return this;
  32404. },
  32405. i.Particles.Arcade.Emitter.prototype.kill = function () {
  32406. this.on = !1,
  32407. this.alive = !1,
  32408. this.exists = !1;
  32409. },
  32410. i.Particles.Arcade.Emitter.prototype.revive = function () {
  32411. this.alive = !0,
  32412. this.exists = !0;
  32413. },
  32414. i.Particles.Arcade.Emitter.prototype.explode = function (k, m) {
  32415. this.start(!0, k, 0, m, !1);
  32416. },
  32417. i.Particles.Arcade.Emitter.prototype.flow = function (k, m, e) {
  32418. this.start(!1, k, m, e, !0);
  32419. },
  32420. i.Particles.Arcade.Emitter.prototype.start = function (k, m, e, o, n) {
  32421. if ("undefined" == typeof k && (k = !0), "undefined" == typeof m && (m = 0), ("undefined" == typeof e || y3U.E14(null, e)) && (e = 250), "undefined" == typeof o && (o = 0), "undefined" == typeof n && (n = !1), y3U.e14(o, this.maxParticles) && (o = this.maxParticles), this.revive(), this.visible = !0, this.lifespan = m, this.frequency = e, k || n)
  32422. for (var u = 0; y3U.g14(o, u); u++)
  32423. this.emitParticle();
  32424. else
  32425. this.on = !0, this._quantity += o, this._counter = 0, this._timer = this.game.time.time + y3U.x14(e, this.game.time.slowMotion);
  32426. },
  32427. i.Particles.Arcade.Emitter.prototype.emitParticle = function () {
  32428. var k = this.getFirstExists(!1);
  32429. return y3U.p14(null, k) ? !1 : (y3U.q14(this.width, 1) || y3U.b14(this.height, 1) ? k.reset(this.game.rnd.integerInRange(this.left, this.right), this.game.rnd.integerInRange(this.top, this.bottom)) : k.reset(this.emitX, this.emitY), k.angle = 0, k.lifespan = this.lifespan, this.particleBringToTop ? this.bringToTop(k) : this.particleSendToBack && this.sendToBack(k), this.autoScale ? k.setScaleData(this.scaleData) : y3U.j14(1, this.minParticleScale) || y3U.d14(1, this.maxParticleScale) ? k.scale.set(this.game.rnd.realInRange(this.minParticleScale, this.maxParticleScale)) : (y3U.c14(this._minParticleScale.x, this._maxParticleScale.x) || y3U.s14(this._minParticleScale.y, this._maxParticleScale.y)) && k.scale.set(this.game.rnd.realInRange(this._minParticleScale.x, this._maxParticleScale.x), this.game.rnd.realInRange(this._minParticleScale.y, this._maxParticleScale.y)), k.frame = Array.isArray(y3U.Q14("object", this._frames)) ? this.game.rnd.pick(this._frames) : this._frames, this.autoAlpha ? k.setAlphaData(this.alphaData) : k.alpha = this.game.rnd.realInRange(this.minParticleAlpha, this.maxParticleAlpha), k.blendMode = this.blendMode, k.body.updateBounds(), k.body.bounce.setTo(this.bounce.x, this.bounce.y), k.body.velocity.x = this.game.rnd.integerInRange(this.minParticleSpeed.x, this.maxParticleSpeed.x), k.body.velocity.y = this.game.rnd.integerInRange(this.minParticleSpeed.y, this.maxParticleSpeed.y), k.body.angularVelocity = this.game.rnd.integerInRange(this.minRotation, this.maxRotation), k.body.gravity.y = this.gravity, k.body.drag.x = this.particleDrag.x, k.body.drag.y = this.particleDrag.y, k.body.angularDrag = this.angularDrag, k.onEmit(), !0);
  32430. },
  32431. i.Particles.Arcade.Emitter.prototype.setSize = function (k, m) {
  32432. this.area.width = k,
  32433. this.area.height = m;
  32434. },
  32435. i.Particles.Arcade.Emitter.prototype.setXSpeed = function (k, m) {
  32436. k = k || 0,
  32437. m = m || 0,
  32438. this.minParticleSpeed.x = k,
  32439. this.maxParticleSpeed.x = m;
  32440. },
  32441. i.Particles.Arcade.Emitter.prototype.setYSpeed = function (k, m) {
  32442. k = k || 0,
  32443. m = m || 0,
  32444. this.minParticleSpeed.y = k,
  32445. this.maxParticleSpeed.y = m;
  32446. },
  32447. i.Particles.Arcade.Emitter.prototype.setRotation = function (k, m) {
  32448. k = k || 0,
  32449. m = m || 0,
  32450. this.minRotation = k,
  32451. this.maxRotation = m;
  32452. },
  32453. i.Particles.Arcade.Emitter.prototype.setAlpha = function (k, m, e, o, n) {
  32454. if ("undefined" == typeof k && (k = 1), "undefined" == typeof m && (m = 1), "undefined" == typeof e && (e = 0), "undefined" == typeof o && (o = i.Easing.Linear.None), "undefined" == typeof n && (n = !1), this.minParticleAlpha = k, this.maxParticleAlpha = m, this.autoAlpha = !1, y3U.a64(e, 0) && y3U.W64(k, m)) {
  32455. var u = {
  32456. v : k
  32457. },
  32458. q = this.game.make.tween(u).to({
  32459. v : m
  32460. }, e, o);
  32461. q.yoyo(n),
  32462. this.alphaData = q.generateData(60),
  32463. this.alphaData.reverse(),
  32464. this.autoAlpha = !0;
  32465. }
  32466. },
  32467. i.Particles.Arcade.Emitter.prototype.setScale = function (k, m, e, o, n, u, q) {
  32468. if ("undefined" == typeof k && (k = 1), "undefined" == typeof m && (m = 1), "undefined" == typeof e && (e = 1), "undefined" == typeof o && (o = 1), "undefined" == typeof n && (n = 0), "undefined" == typeof u && (u = i.Easing.Linear.None), "undefined" == typeof q && (q = !1), this.minParticleScale = 1, this.maxParticleScale = 1, this._minParticleScale.set(k, e), this._maxParticleScale.set(m, o), this.autoScale = !1, y3U.m64(n, 0) && (y3U.A64(k, m) || y3U.w64(e, o))) {
  32469. var f = {
  32470. x : k,
  32471. y : e
  32472. },
  32473. j = this.game.make.tween(f).to({
  32474. x : m,
  32475. y : o
  32476. }, n, u);
  32477. j.yoyo(q),
  32478. this.scaleData = j.generateData(60),
  32479. this.scaleData.reverse(),
  32480. this.autoScale = !0;
  32481. }
  32482. },
  32483. i.Particles.Arcade.Emitter.prototype.at = function (k) {
  32484. k.center ? (this.emitX = k.center.x, this.emitY = k.center.y) : (this.emitX = k.world.x + y3U.E64(k.anchor.x, k.width), this.emitY = k.world.y + y3U.e64(k.anchor.y, k.height));
  32485. },
  32486. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "width", {
  32487. get : function () {
  32488. return this.area.width;
  32489. },
  32490. set : function (k) {
  32491. this.area.width = k;
  32492. }
  32493. }),
  32494. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "height", {
  32495. get : function () {
  32496. return this.area.height;
  32497. },
  32498. set : function (k) {
  32499. this.area.height = k;
  32500. }
  32501. }),
  32502. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "x", {
  32503. get : function () {
  32504. return this.emitX;
  32505. },
  32506. set : function (k) {
  32507. this.emitX = k;
  32508. }
  32509. }),
  32510. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "y", {
  32511. get : function () {
  32512. return this.emitY;
  32513. },
  32514. set : function (k) {
  32515. this.emitY = k;
  32516. }
  32517. }),
  32518. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "left", {
  32519. get : function () {
  32520. return Math.floor(y3U.g64(this.x, this.area.width / 2));
  32521. }
  32522. }),
  32523. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "right", {
  32524. get : function () {
  32525. return Math.floor(this.x + y3U.r64(this.area.width, 2));
  32526. }
  32527. }),
  32528. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "top", {
  32529. get : function () {
  32530. return Math.floor(y3U.i64(this.y, this.area.height / 2));
  32531. }
  32532. }),
  32533. Object.defineProperty(i.Particles.Arcade.Emitter.prototype, "bottom", {
  32534. get : function () {
  32535. return Math.floor(this.y + y3U.u64(this.area.height, 2));
  32536. }
  32537. }),
  32538. i.Tile = function (k, m, e, o, n, u) {
  32539. this.layer = k,
  32540. this.index = m,
  32541. this.x = e,
  32542. this.y = o,
  32543. this.worldX = y3U.P64(e, n),
  32544. this.worldY = y3U.D64(o, u),
  32545. this.width = n,
  32546. this.height = u,
  32547. this.centerX = Math.abs(y3U.Z64(n, 2)),
  32548. this.centerY = Math.abs(y3U.R64(u, 2)),
  32549. this.alpha = 1,
  32550. this.properties = {},
  32551. this.scanned = !1,
  32552. this.faceTop = !1,
  32553. this.faceBottom = !1,
  32554. this.faceLeft = !1,
  32555. this.faceRight = !1,
  32556. this.collideLeft = !1,
  32557. this.collideRight = !1,
  32558. this.collideUp = !1,
  32559. this.collideDown = !1,
  32560. this.collisionCallback = null,
  32561. this.collisionCallbackContext = this;
  32562. },
  32563. i.Tile.prototype = {
  32564. containsPoint : function (k, m) {
  32565. return !(y3U.O64(k, this.worldX) || y3U.V64(m, this.worldY) || y3U.k84(k, this.right) || y3U.G84(m, this.bottom));
  32566. },
  32567. intersects : function (k, m, e, o) {
  32568. return y3U.N84(e, this.worldX) ? !1 : y3U.L84(o, this.worldY) ? !1 : y3U.z84(k, this.worldX + this.width) ? !1 : y3U.J84(m, this.worldY + this.height) ? !1 : !0;
  32569. },
  32570. setCollisionCallback : function (k, m) {
  32571. this.collisionCallback = k,
  32572. this.collisionCallbackContext = m;
  32573. },
  32574. destroy : function () {
  32575. this.collisionCallback = null,
  32576. this.collisionCallbackContext = null,
  32577. this.properties = null;
  32578. },
  32579. setCollision : function (k, m, e, o) {
  32580. this.collideLeft = k,
  32581. this.collideRight = m,
  32582. this.collideUp = e,
  32583. this.collideDown = o,
  32584. this.faceLeft = k,
  32585. this.faceRight = m,
  32586. this.faceTop = e,
  32587. this.faceBottom = o;
  32588. },
  32589. resetCollision : function () {
  32590. this.collideLeft = !1,
  32591. this.collideRight = !1,
  32592. this.collideUp = !1,
  32593. this.collideDown = !1,
  32594. this.faceTop = !1,
  32595. this.faceBottom = !1,
  32596. this.faceLeft = !1,
  32597. this.faceRight = !1;
  32598. },
  32599. isInteresting : function (k, m) {
  32600. return k && m ? this.collideLeft || this.collideRight || this.collideUp || this.collideDown || this.faceTop || this.faceBottom || this.faceLeft || this.faceRight || this.collisionCallback : k ? this.collideLeft || this.collideRight || this.collideUp || this.collideDown : m ? this.faceTop || this.faceBottom || this.faceLeft || this.faceRight : !1;
  32601. },
  32602. copy : function (k) {
  32603. this.index = k.index,
  32604. this.alpha = k.alpha,
  32605. this.properties = k.properties,
  32606. this.collideUp = k.collideUp,
  32607. this.collideDown = k.collideDown,
  32608. this.collideLeft = k.collideLeft,
  32609. this.collideRight = k.collideRight,
  32610. this.collisionCallback = k.collisionCallback,
  32611. this.collisionCallbackContext = k.collisionCallbackContext;
  32612. }
  32613. },
  32614. i.Tile.prototype.constructor = i.Tile,
  32615. Object.defineProperty(i.Tile.prototype, "collides", {
  32616. get : function () {
  32617. return this.collideLeft || this.collideRight || this.collideUp || this.collideDown;
  32618. }
  32619. }),
  32620. Object.defineProperty(i.Tile.prototype, "canCollide", {
  32621. get : function () {
  32622. return this.collideLeft || this.collideRight || this.collideUp || this.collideDown || this.collisionCallback;
  32623. }
  32624. }),
  32625. Object.defineProperty(i.Tile.prototype, "left", {
  32626. get : function () {
  32627. return this.worldX;
  32628. }
  32629. }),
  32630. Object.defineProperty(i.Tile.prototype, "right", {
  32631. get : function () {
  32632. return this.worldX + this.width;
  32633. }
  32634. }),
  32635. Object.defineProperty(i.Tile.prototype, "top", {
  32636. get : function () {
  32637. return this.worldY;
  32638. }
  32639. }),
  32640. Object.defineProperty(i.Tile.prototype, "bottom", {
  32641. get : function () {
  32642. return this.worldY + this.height;
  32643. }
  32644. }),
  32645. i.Tilemap = function (k, m, e, o, n, u) {
  32646. this.game = k,
  32647. this.key = m;
  32648. var q = i.TilemapParser.parse(this.game, m, e, o, n, u);
  32649. y3U.H84(null, q) && (this.width = q.width, this.height = q.height, this.tileWidth = q.tileWidth, this.tileHeight = q.tileHeight, this.orientation = q.orientation, this.format = q.format, this.version = q.version, this.properties = q.properties, this.widthInPixels = q.widthInPixels, this.heightInPixels = q.heightInPixels, this.layers = q.layers, this.tilesets = q.tilesets, this.tiles = q.tiles, this.objects = q.objects, this.collideIndexes = [], this.collision = q.collision, this.images = q.images, this.currentLayer = 0, this.debugMap = [], this._results = [], this._tempA = 0, this._tempB = 0);
  32650. },
  32651. i.Tilemap.CSV = 0,
  32652. i.Tilemap.TILED_JSON = 1,
  32653. i.Tilemap.NORTH = 0,
  32654. i.Tilemap.EAST = 1,
  32655. i.Tilemap.SOUTH = 2,
  32656. i.Tilemap.WEST = 3,
  32657. i.Tilemap.prototype = {
  32658. create : function (k, m, e, o, n, u) {
  32659. return "undefined" == typeof u && (u = this.game.world),
  32660. this.width = m,
  32661. this.height = e,
  32662. this.setTileSize(o, n),
  32663. this.layers.length = 0,
  32664. this.createBlankLayer(k, m, e, o, n, u);
  32665. },
  32666. setTileSize : function (k, m) {
  32667. this.tileWidth = k,
  32668. this.tileHeight = m,
  32669. this.widthInPixels = y3U.h84(this.width, k),
  32670. this.heightInPixels = y3U.F84(this.height, m);
  32671. },
  32672. addTilesetImage : function (k, m, e, o, n, u, q) {
  32673. if ("undefined" == typeof e && (e = this.tileWidth), "undefined" == typeof o && (o = this.tileHeight), "undefined" == typeof n && (n = 0), "undefined" == typeof u && (u = 0), "undefined" == typeof q && (q = 0), y3U.M84(0, e) && (e = 32), y3U.n84(0, o) && (o = 32), "undefined" == typeof m) {
  32674. if ("string" != typeof k)
  32675. return null;
  32676. if (m = k, !this.game.cache.checkImageKey(m))
  32677. return console.warn('Phaser.Tilemap.addTilesetImage: Invalid image key given: "' + m + '"'), null;
  32678. }
  32679. if ("string" == typeof k && (k = this.getTilesetIndex(k), y3U.f84(null, k) && y3U.K84(this.format, i.Tilemap.TILED_JSON)))
  32680. return console.warn('Phaser.Tilemap.addTilesetImage: No data found in the JSON matching the tileset name: "' + m + '"'), null;
  32681. if (this.tilesets[k])
  32682. return this.tilesets[k].setImage(this.game.cache.getImage(m)), this.tilesets[k];
  32683. var f = new i.Tileset(m, q, e, o, n, u, {});
  32684. f.setImage(this.game.cache.getImage(m)),
  32685. this.tilesets.push(f);
  32686. for (var j = y3U.B84(this.tilesets.length, 1), U0 = n, k0 = n, a0 = 0, T0 = 0, G0 = 0, W0 = q; y3U.l84(W0, q + f.total) && (this.tiles[W0] = [U0, k0, j], U0 += e + u, a0++, y3U.X84(a0, f.total)) && (T0++, y3U.Y84(T0, f.columns) || (U0 = n, k0 += o + u, T0 = 0, G0++, y3U.U07(G0, f.rows))); W0++);
  32687. return f;
  32688. },
  32689. createFromObjects : function (k, m, e, o, n, u, q, f, j) {
  32690. if ("undefined" == typeof n && (n = !0), "undefined" == typeof u && (u = !1), "undefined" == typeof q && (q = this.game.world), "undefined" == typeof f && (f = i.Sprite), "undefined" == typeof j && (j = !0), !this.objects[k])
  32691. return void console.warn("Tilemap.createFromObjects: Invalid objectgroup name given: " + k);
  32692. for (var U0, k0 = 0, a0 = this.objects[k].length; y3U.T07(a0, k0); k0++)
  32693. if (y3U.S07(this.objects[k][k0].gid, m)) {
  32694. U0 = new f(this.game, this.objects[k][k0].x, this.objects[k][k0].y, e, o),
  32695. U0.name = this.objects[k][k0].name,
  32696. U0.visible = this.objects[k][k0].visible,
  32697. U0.autoCull = u,
  32698. U0.exists = n,
  32699. j && (U0.y -= U0.height),
  32700. q.add(U0);
  32701. for (var T0 in this.objects[k][k0].properties)
  32702. q.set(U0, T0, this.objects[k][k0].properties[T0], !1, !1, 0, !0);
  32703. }
  32704. },
  32705. createFromTiles : function (m, e, o, n, u, q) {
  32706. "number" == typeof m && (m = [m]),
  32707. "undefined" == typeof e || y3U.I07(null, e) ? e = [] : "number" == typeof e && (e = [e]),
  32708. n = this.getLayer(n),
  32709. "undefined" == typeof u && (u = this.game.world),
  32710. "undefined" == typeof q && (q = {}),
  32711. void 0 === q.customClass && (q.customClass = i.Sprite),
  32712. void 0 === q.adjustY && (q.adjustY = !0);
  32713. var f = this.layers[n].width,
  32714. j = this.layers[n].height;
  32715. if (this.copy(0, 0, f, j, n), y3U.C07(this._results.length, 2))
  32716. return 0;
  32717. for (var U0, k0 = 0, a0 = 1, T0 = this._results.length; y3U.v07(T0, a0); a0++)
  32718. if (-1 !== m.indexOf(this._results[a0].index)) {
  32719. var G0 = function (k) {
  32720. U0[W0] = k[W0];
  32721. };
  32722. U0 = new q.customClass(this.game, this._results[a0].worldX, this._results[a0].worldY, o);
  32723. for (var W0 in q)
  32724. G0(q);
  32725. u.add(U0),
  32726. k0++;
  32727. }
  32728. if (y3U.t07(1, e.length))
  32729. for (a0 = 0; y3U.y07(a0, m.length); a0++)
  32730. this.replace(m[a0], e[0], 0, 0, f, j, n);
  32731. else if (y3U.o07(e.length, 1))
  32732. for (a0 = 0; y3U.x07(a0, m.length); a0++)
  32733. this.replace(m[a0], e[a0], 0, 0, f, j, n);
  32734. return k0;
  32735. },
  32736. createLayer : function (k, m, e, o) {
  32737. "undefined" == typeof m && (m = this.game.width),
  32738. "undefined" == typeof e && (e = this.game.height),
  32739. "undefined" == typeof o && (o = this.game.world);
  32740. var n = k;
  32741. return "string" == typeof k && (n = this.getLayerIndex(k)),
  32742. y3U.p07(null, n) || y3U.q07(n, this.layers.length) ? void console.warn("Tilemap.createLayer: Invalid layer ID given: " + n) : o.add(new i.TilemapLayer(this.game, this, n, m, e));
  32743. },
  32744. createBlankLayer : function (k, m, e, o, n, u) {
  32745. if ("undefined" == typeof u && (u = this.game.world), y3U.b07(null, this.getLayerIndex(k)))
  32746. return void console.warn("Tilemap.createBlankLayer: Layer with matching name already exists");
  32747. for (var q, f = {
  32748. name : k,
  32749. x : 0,
  32750. y : 0,
  32751. width : m,
  32752. height : e,
  32753. widthInPixels : y3U.j07(m, o),
  32754. heightInPixels : y3U.d07(e, n),
  32755. alpha : 1,
  32756. visible : !0,
  32757. properties : {},
  32758. indexes : [],
  32759. callbacks : [],
  32760. bodies : [],
  32761. data : null
  32762. }, j = [], U0 = 0; y3U.c07(e, U0); U0++) {
  32763. var k0 = function () {
  32764. q = [];
  32765. };
  32766. k0();
  32767. for (var a0 = 0; y3U.s07(m, a0); a0++)
  32768. q.push(new i.Tile(f, -1, a0, U0, o, n));
  32769. j.push(q);
  32770. }
  32771. f.data = j,
  32772. this.layers.push(f),
  32773. this.currentLayer = y3U.Q07(this.layers.length, 1);
  32774. var T0 = f.widthInPixels,
  32775. G0 = f.heightInPixels;
  32776. y3U.a77(T0, this.game.width) && (T0 = this.game.width),
  32777. y3U.W77(G0, this.game.height) && (G0 = this.game.height);
  32778. var j = new i.TilemapLayer(this.game, this, y3U.m77(this.layers.length, 1), T0, G0);
  32779. return j.name = k,
  32780. u.add(j);
  32781. },
  32782. getIndex : function (k, m) {
  32783. for (var e = 0; y3U.A77(e, k.length); e++)
  32784. if (y3U.w77(k[e].name, m))
  32785. return e;
  32786. return null;
  32787. },
  32788. getLayerIndex : function (k) {
  32789. return this.getIndex(this.layers, k);
  32790. },
  32791. getTilesetIndex : function (k) {
  32792. return this.getIndex(this.tilesets, k);
  32793. },
  32794. getImageIndex : function (k) {
  32795. return this.getIndex(this.images, k);
  32796. },
  32797. getObjectIndex : function (k) {
  32798. return this.getIndex(this.objects, k);
  32799. },
  32800. setTileIndexCallback : function (k, m, e, o) {
  32801. if (o = this.getLayer(o), "number" == typeof k)
  32802. this.layers[o].callbacks[k] = {
  32803. callback : m,
  32804. callbackContext : e
  32805. };
  32806. else
  32807. for (var n = 0, u = k.length; y3U.E77(u, n); n++)
  32808. this.layers[o].callbacks[k[n]] = {
  32809. callback : m,
  32810. callbackContext : e
  32811. };
  32812. },
  32813. setTileLocationCallback : function (k, m, e, o, n, u, q) {
  32814. if (q = this.getLayer(q), this.copy(k, m, e, o, q), !(y3U.e77(this._results.length, 2)))
  32815. for (var f = 1; y3U.g77(f, this._results.length); f++)
  32816. this._results[f].setCollisionCallback(n, u);
  32817. },
  32818. setCollision : function (k, m, e, o) {
  32819. if ("undefined" == typeof m && (m = !0), "undefined" == typeof o && (o = !0), e = this.getLayer(e), "number" == typeof k)
  32820. return this.setCollisionByIndex(k, m, e, !0);
  32821. for (var n = 0, u = k.length; y3U.r77(u, n); n++)
  32822. this.setCollisionByIndex(k[n], m, e, !1);
  32823. o && this.calculateFaces(e);
  32824. },
  32825. setCollisionBetween : function (k, m, e, o, n) {
  32826. if ("undefined" == typeof e && (e = !0), "undefined" == typeof n && (n = !0), o = this.getLayer(o), !(y3U.i77(k, m))) {
  32827. for (var u = k; y3U.u77(m, u); u++)
  32828. this.setCollisionByIndex(u, e, o, !1);
  32829. n && this.calculateFaces(o);
  32830. }
  32831. },
  32832. setCollisionByExclusion : function (k, m, e, o) {
  32833. "undefined" == typeof m && (m = !0),
  32834. "undefined" == typeof o && (o = !0),
  32835. e = this.getLayer(e);
  32836. for (var n = 0, u = this.tiles.length; y3U.P77(u, n); n++)
  32837. - 1 === k.indexOf(n) && this.setCollisionByIndex(n, m, e, !1);
  32838. o && this.calculateFaces(e);
  32839. },
  32840. setCollisionByIndex : function (k, m, e, o) {
  32841. if ("undefined" == typeof m && (m = !0), "undefined" == typeof e && (e = this.currentLayer), "undefined" == typeof o && (o = !0), m)
  32842. this.collideIndexes.push(k);
  32843. else {
  32844. var n = this.collideIndexes.indexOf(k);
  32845. n > -1 && this.collideIndexes.splice(n, 1);
  32846. }
  32847. for (var u = 0; y3U.D77(u, this.layers[e].height); u++)
  32848. for (var q = 0; y3U.Z77(q, this.layers[e].width); q++) {
  32849. var f = this.layers[e].data[u][q];
  32850. f && y3U.R77(f.index, k) && (m ? f.setCollision(!0, !0, !0, !0) : f.resetCollision(), f.faceTop = m, f.faceBottom = m, f.faceLeft = m, f.faceRight = m);
  32851. }
  32852. return o && this.calculateFaces(e),
  32853. e;
  32854. },
  32855. getLayer : function (k) {
  32856. return "undefined" == typeof k ? k = this.currentLayer : "string" == typeof k ? k = this.getLayerIndex(k) : y3U.O77(k, i.TilemapLayer) && (k = k.index),
  32857. k;
  32858. },
  32859. setPreventRecalculate : function (k) {
  32860. if (k === !0 && this.preventingRecalculate !== !0 && (this.preventingRecalculate = !0, this.needToRecalculate = {}), k === !1 && this.preventingRecalculate === !0) {
  32861. this.preventingRecalculate = !1;
  32862. for (var m in this.needToRecalculate)
  32863. this.calculateFaces(m);
  32864. this.needToRecalculate = !1;
  32865. }
  32866. },
  32867. calculateFaces : function (k) {
  32868. if (this.preventingRecalculate)
  32869. return void(this.needToRecalculate[k] = !0);
  32870. for (var m = null, e = null, o = null, n = null, u = 0, q = this.layers[k].height; y3U.V77(q, u); u++)
  32871. for (var f = 0, j = this.layers[k].width; y3U.k47(j, f); f++) {
  32872. var U0 = this.layers[k].data[u][f];
  32873. U0 && (m = this.getTileAbove(k, f, u), e = this.getTileBelow(k, f, u), o = this.getTileLeft(k, f, u), n = this.getTileRight(k, f, u), U0.collides && (U0.faceTop = !0, U0.faceBottom = !0, U0.faceLeft = !0, U0.faceRight = !0), m && m.collides && (U0.faceTop = !1), e && e.collides && (U0.faceBottom = !1), o && o.collides && (U0.faceLeft = !1), n && n.collides && (U0.faceRight = !1));
  32874. }
  32875. },
  32876. getTileAbove : function (k, m, e) {
  32877. return y3U.G47(e, 0) ? this.layers[k].data[y3U.N47(e, 1)][m] : null;
  32878. },
  32879. getTileBelow : function (k, m, e) {
  32880. return y3U.L47(e, this.layers[k].height - 1) ? this.layers[k].data[e + 1][m] : null;
  32881. },
  32882. getTileLeft : function (k, m, e) {
  32883. return y3U.z47(m, 0) ? this.layers[k].data[e][y3U.J47(m, 1)] : null;
  32884. },
  32885. getTileRight : function (k, m, e) {
  32886. return y3U.H47(m, this.layers[k].width - 1) ? this.layers[k].data[e][m + 1] : null;
  32887. },
  32888. setLayer : function (k) {
  32889. k = this.getLayer(k),
  32890. this.layers[k] && (this.currentLayer = k);
  32891. },
  32892. hasTile : function (k, m, e) {
  32893. return e = this.getLayer(e),
  32894. this.layers[e].data[m][k].index > -1;
  32895. },
  32896. removeTile : function (k, m, e) {
  32897. if (e = this.getLayer(e), y3U.h47(k, 0) && y3U.F47(k, this.layers[e].width) && y3U.M47(m, 0) && y3U.n47(m, this.layers[e].height) && this.hasTile(k, m, e)) {
  32898. var o = this.layers[e].data[m][k];
  32899. return this.layers[e].data[m][k] = new i.Tile(this.layers[e], -1, k, m, this.tileWidth, this.tileHeight),
  32900. this.layers[e].dirty = !0,
  32901. this.calculateFaces(e),
  32902. o;
  32903. }
  32904. },
  32905. removeTileWorldXY : function (k, m, e, o, n) {
  32906. return n = this.getLayer(n),
  32907. k = y3U.f47(this.game.math.snapToFloor(k, e), e),
  32908. m = y3U.K47(this.game.math.snapToFloor(m, o), o),
  32909. this.removeTile(k, m, n);
  32910. },
  32911. putTile : function (k, m, e, o) {
  32912. if (y3U.B47(null, k))
  32913. return this.removeTile(m, e, o);
  32914. if (o = this.getLayer(o), y3U.l47(m, 0) && y3U.X47(m, this.layers[o].width) && y3U.Y47(e, 0) && y3U.U37(e, this.layers[o].height)) {
  32915. var n;
  32916. return y3U.T37(k, i.Tile) ? (n = k.index, this.hasTile(m, e, o) ? this.layers[o].data[e][m].copy(k) : this.layers[o].data[e][m] = new i.Tile(o, n, m, e, k.width, k.height)) : (n = k, this.hasTile(m, e, o) ? this.layers[o].data[e][m].index = n : this.layers[o].data[e][m] = new i.Tile(this.layers[o], n, m, e, this.tileWidth, this.tileHeight)),
  32917. this.collideIndexes.indexOf(n) > -1 ? this.layers[o].data[e][m].setCollision(!0, !0, !0, !0) : this.layers[o].data[e][m].resetCollision(),
  32918. this.layers[o].dirty = !0,
  32919. this.calculateFaces(o),
  32920. this.layers[o].data[e][m];
  32921. }
  32922. return null;
  32923. },
  32924. putTileWorldXY : function (k, m, e, o, n, u) {
  32925. return u = this.getLayer(u),
  32926. m = y3U.S37(this.game.math.snapToFloor(m, o), o),
  32927. e = y3U.I37(this.game.math.snapToFloor(e, n), n),
  32928. this.putTile(k, m, e, u);
  32929. },
  32930. searchTileIndex : function (k, m, e, o) {
  32931. "undefined" == typeof m && (m = 0),
  32932. "undefined" == typeof e && (e = !1),
  32933. o = this.getLayer(o);
  32934. var n = 0;
  32935. if (e) {
  32936. for (var u = y3U.C37(this.layers[o].height, 1); y3U.v37(u, 0); u--)
  32937. for (var q = y3U.t37(this.layers[o].width, 1); y3U.y37(q, 0); q--)
  32938. if (y3U.o37(this.layers[o].data[u][q].index, k)) {
  32939. if (y3U.x37(n, m))
  32940. return this.layers[o].data[u][q];
  32941. n++;
  32942. }
  32943. } else
  32944. for (var u = 0; y3U.p37(u, this.layers[o].height); u++)
  32945. for (var q = 0; y3U.q37(q, this.layers[o].width); q++)
  32946. if (y3U.b37(this.layers[o].data[u][q].index, k)) {
  32947. if (y3U.j37(n, m))
  32948. return this.layers[o].data[u][q];
  32949. n++;
  32950. }
  32951. return null;
  32952. },
  32953. getTile : function (k, m, e, o) {
  32954. return "undefined" == typeof o && (o = !1),
  32955. e = this.getLayer(e),
  32956. y3U.d37(k, 0) && y3U.c37(k, this.layers[e].width) && y3U.s37(m, 0) && y3U.Q37(m, this.layers[e].height) ? -1 === this.layers[e].data[m][k].index ? o ? this.layers[e].data[m][k] : null : this.layers[e].data[m][k] : null;
  32957. },
  32958. getTileWorldXY : function (k, m, e, o, n) {
  32959. return "undefined" == typeof e && (e = this.tileWidth),
  32960. "undefined" == typeof o && (o = this.tileHeight),
  32961. n = this.getLayer(n),
  32962. k = y3U.a97(this.game.math.snapToFloor(k, e), e),
  32963. m = y3U.W97(this.game.math.snapToFloor(m, o), o),
  32964. this.getTile(k, m, n);
  32965. },
  32966. copy : function (k, m, e, o, n) {
  32967. if (n = this.getLayer(n), !this.layers[n])
  32968. return void(this._results.length = 0);
  32969. "undefined" == typeof k && (k = 0),
  32970. "undefined" == typeof m && (m = 0),
  32971. "undefined" == typeof e && (e = this.layers[n].width),
  32972. "undefined" == typeof o && (o = this.layers[n].height),
  32973. y3U.m97(0, k) && (k = 0),
  32974. y3U.A97(0, m) && (m = 0),
  32975. y3U.w97(e, this.layers[n].width) && (e = this.layers[n].width),
  32976. y3U.E97(o, this.layers[n].height) && (o = this.layers[n].height),
  32977. this._results.length = 0,
  32978. this._results.push({
  32979. x : k,
  32980. y : m,
  32981. width : e,
  32982. height : o,
  32983. layer : n
  32984. });
  32985. for (var u = m; y3U.e97(m + o, u); u++)
  32986. for (var q = k; y3U.g97(k + e, q); q++)
  32987. this._results.push(this.layers[n].data[u][q]);
  32988. return this._results;
  32989. },
  32990. paste : function (k, m, e, o) {
  32991. if ("undefined" == typeof k && (k = 0), "undefined" == typeof m && (m = 0), o = this.getLayer(o), e && !(y3U.r97(e.length, 2))) {
  32992. for (var n = y3U.i97(e[1].x, k), u = y3U.u97(e[1].y, m), q = 1; y3U.P97(q, e.length); q++)
  32993. this.layers[o].data[u + e[q].y][n + e[q].x].copy(e[q]);
  32994. this.layers[o].dirty = !0,
  32995. this.calculateFaces(o);
  32996. }
  32997. },
  32998. swap : function (k, m, e, o, n, u, q) {
  32999. q = this.getLayer(q),
  33000. this.copy(e, o, n, u, q),
  33001. y3U.D97(this._results.length, 2) || (this._tempA = k, this._tempB = m, this._results.forEach(this.swapHandler, this), this.paste(e, o, this._results, q));
  33002. },
  33003. swapHandler : function (k) {
  33004. y3U.Z97(k.index, this._tempA) ? k.index = this._tempB : y3U.R97(k.index, this._tempB) && (k.index = this._tempA);
  33005. },
  33006. forEach : function (k, m, e, o, n, u, q) {
  33007. q = this.getLayer(q),
  33008. this.copy(e, o, n, u, q),
  33009. y3U.O97(this._results.length, 2) || (this._results.forEach(k, m), this.paste(e, o, this._results, q));
  33010. },
  33011. replace : function (k, m, e, o, n, u, q) {
  33012. if (q = this.getLayer(q), this.copy(e, o, n, u, q), !(y3U.V97(this._results.length, 2))) {
  33013. for (var f = 1; y3U.k57(f, this._results.length); f++)
  33014. y3U.G57(this._results[f].index, k) && (this._results[f].index = m);
  33015. this.paste(e, o, this._results, q);
  33016. }
  33017. },
  33018. random : function (k, m, e, o, n) {
  33019. if (n = this.getLayer(n), this.copy(k, m, e, o, n), !(y3U.N57(this._results.length, 2))) {
  33020. for (var u = [], q = 1; y3U.L57(q, this._results.length); q++)
  33021. if (this._results[q].index) {
  33022. var f = this._results[q].index;
  33023. -1 === u.indexOf(f) && u.push(f);
  33024. }
  33025. for (var j = 1; y3U.z57(j, this._results.length); j++)
  33026. this._results[j].index = this.game.rnd.pick(u);
  33027. this.paste(k, m, this._results, n);
  33028. }
  33029. },
  33030. shuffle : function (k, m, e, o, n) {
  33031. if (n = this.getLayer(n), this.copy(k, m, e, o, n), !(y3U.J57(this._results.length, 2))) {
  33032. for (var u = [], q = 1; y3U.H57(q, this._results.length); q++)
  33033. this._results[q].index && u.push(this._results[q].index);
  33034. i.Utils.shuffle(u);
  33035. for (var f = 1; y3U.h57(f, this._results.length); f++)
  33036. this._results[f].index = u[y3U.F57(f, 1)];
  33037. this.paste(k, m, this._results, n);
  33038. }
  33039. },
  33040. fill : function (k, m, e, o, n, u) {
  33041. if (u = this.getLayer(u), this.copy(m, e, o, n, u), !(y3U.M57(this._results.length, 2))) {
  33042. for (var q = 1; y3U.n57(q, this._results.length); q++)
  33043. this._results[q].index = k;
  33044. this.paste(m, e, this._results, u);
  33045. }
  33046. },
  33047. removeAllLayers : function () {
  33048. this.layers.length = 0,
  33049. this.currentLayer = 0;
  33050. },
  33051. dump : function () {
  33052. for (var k = "", m = [""], e = 0; y3U.f57(e, this.layers[this.currentLayer].height); e++) {
  33053. for (var o = 0; y3U.K57(o, this.layers[this.currentLayer].width); o++)
  33054. k += "%c ", m.push(y3U.B57(this.layers[this.currentLayer].data[e][o], 1) ? this.debugMap[this.layers[this.currentLayer].data[e][o]] ? "background: " + this.debugMap[this.layers[this.currentLayer].data[e][o]] : "background: #ffffff" : "background: rgb(0, 0, 0)");
  33055. k += "\n";
  33056. }
  33057. m[0] = k,
  33058. console.log.apply(console, m);
  33059. },
  33060. destroy : function () {
  33061. this.removeAllLayers(),
  33062. this.data = [],
  33063. this.game = null;
  33064. }
  33065. },
  33066. i.Tilemap.prototype.constructor = i.Tilemap,
  33067. Object.defineProperty(i.Tilemap.prototype, "layer", {
  33068. get : function () {
  33069. return this.layers[this.currentLayer];
  33070. },
  33071. set : function (k) {
  33072. y3U.l57(k, this.currentLayer) && this.setLayer(k);
  33073. }
  33074. }),
  33075. i.TilemapLayer = function (k, m, e, o, n) {
  33076. o |= 0,
  33077. n |= 0,
  33078. this.game = k,
  33079. this.map = m,
  33080. this.index = e,
  33081. this.layer = m.layers[e],
  33082. this.canvas = i.Canvas.create(o, n),
  33083. this.context = this.canvas.getContext("2d"),
  33084. this.baseTexture = new PIXI.BaseTexture(this.canvas),
  33085. this.texture = new PIXI.Texture(this.baseTexture),
  33086. this.textureFrame = new i.Frame(0, 0, 0, o, n, "tilemapLayer", k.rnd.uuid()),
  33087. i.Image.call(this, this.game, 0, 0, this.texture, this.textureFrame),
  33088. this.name = "",
  33089. this.type = i.TILEMAPLAYER,
  33090. this.fixedToCamera = !0,
  33091. this.cameraOffset = new i.Point(0, 0),
  33092. this.renderSettings = {
  33093. enableScrollDelta : !0,
  33094. overdrawRatio : .2,
  33095. copyCanvas : null,
  33096. copySliceCount : 4
  33097. },
  33098. this.debug = !1,
  33099. this.debugSettings = {
  33100. missingImageFill : "rgb(255,255,255)",
  33101. debuggedTileOverfill : "rgba(0,255,0,0.4)",
  33102. forceFullRedraw : !0,
  33103. debugAlpha : .5,
  33104. facingEdgeStroke : "rgba(0,255,0,1)",
  33105. collidingTileOverfill : "rgba(0,255,0,0.2)"
  33106. },
  33107. this.scrollFactorX = 1,
  33108. this.scrollFactorY = 1,
  33109. this.dirty = !0,
  33110. this.rayStepRate = 4,
  33111. this._wrap = !1,
  33112. this._mc = {
  33113. scrollX : 0,
  33114. scrollY : 0,
  33115. renderWidth : 0,
  33116. renderHeight : 0,
  33117. tileWidth : m.tileWidth,
  33118. tileHeight : m.tileHeight,
  33119. cw : m.tileWidth,
  33120. ch : m.tileHeight,
  33121. tilesets : []
  33122. },
  33123. this._scrollX = 0,
  33124. this._scrollY = 0,
  33125. this._results = [],
  33126. k.device.canvasBitBltShift || (this.renderSettings.copyCanvas = i.TilemapLayer.ensureSharedCopyCanvas());
  33127. },
  33128. i.TilemapLayer.sharedCopyCanvas = null,
  33129. i.TilemapLayer.ensureSharedCopyCanvas = function () {
  33130. return this.sharedCopyCanvas || (this.sharedCopyCanvas = i.Canvas.create(2, 2)),
  33131. this.sharedCopyCanvas;
  33132. },
  33133. i.TilemapLayer.prototype = Object.create(i.Image.prototype),
  33134. i.TilemapLayer.prototype.constructor = i.TilemapLayer,
  33135. Object.defineProperty(i.TilemapLayer.prototype, "tileColor", {
  33136. get : function () {
  33137. return this.debugSettings.missingImageFill;
  33138. },
  33139. set : function (k) {
  33140. this.debugSettings.missingImageFill = k;
  33141. }
  33142. }),
  33143. i.TilemapLayer.prototype.postUpdate = function () {
  33144. i.Image.prototype.postUpdate.call(this);
  33145. var k = this.game.camera;
  33146. this.scrollX = y3U.X57(k.x, this.scrollFactorX),
  33147. this.scrollY = y3U.Y57(k.y, this.scrollFactorY),
  33148. this.render(),
  33149. y3U.U27(1, this._cache[7]) && (this.position.x = y3U.T27((k.view.x + this.cameraOffset.x), k.scale.x), this.position.y = y3U.S27((k.view.y + this.cameraOffset.y), k.scale.y));
  33150. },
  33151. i.TilemapLayer.prototype.resizeWorld = function () {
  33152. this.game.world.setBounds(0, 0, this.layer.widthInPixels, this.layer.heightInPixels);
  33153. },
  33154. i.TilemapLayer.prototype._fixX = function (k) {
  33155. return y3U.I27(0, k) && (k = 0),
  33156. y3U.C27(1, this.scrollFactorX) ? k : this._scrollX + (y3U.v27(k, this._scrollX / this.scrollFactorX));
  33157. },
  33158. i.TilemapLayer.prototype._unfixX = function (k) {
  33159. return y3U.t27(1, this.scrollFactorX) ? k : y3U.y27(this._scrollX, this.scrollFactorX) + (y3U.o27(k, this._scrollX));
  33160. },
  33161. i.TilemapLayer.prototype._fixY = function (k) {
  33162. return y3U.x27(0, k) && (k = 0),
  33163. y3U.p27(1, this.scrollFactorY) ? k : this._scrollY + (y3U.q27(k, this._scrollY / this.scrollFactorY));
  33164. },
  33165. i.TilemapLayer.prototype._unfixY = function (k) {
  33166. return y3U.b27(1, this.scrollFactorY) ? k : y3U.j27(this._scrollY, this.scrollFactorY) + (y3U.d27(k, this._scrollY));
  33167. },
  33168. i.TilemapLayer.prototype.getTileX = function (k) {
  33169. return Math.floor(y3U.c27(this._fixX(k), this._mc.tileWidth));
  33170. },
  33171. i.TilemapLayer.prototype.getTileY = function (k) {
  33172. return Math.floor(y3U.s27(this._fixY(k), this._mc.tileHeight));
  33173. },
  33174. i.TilemapLayer.prototype.getTileXY = function (k, m, e) {
  33175. return e.x = this.getTileX(k),
  33176. e.y = this.getTileY(m),
  33177. e;
  33178. },
  33179. i.TilemapLayer.prototype.getRayCastTiles = function (k, m, e, o) {
  33180. m || (m = this.rayStepRate),
  33181. "undefined" == typeof e && (e = !1),
  33182. "undefined" == typeof o && (o = !1);
  33183. var n = this.getTiles(k.x, k.y, k.width, k.height, e, o);
  33184. if (y3U.Q27(0, n.length))
  33185. return [];
  33186. for (var u = k.coordinatesOnLine(m), q = [], f = 0; y3U.a17(f, n.length); f++)
  33187. for (var j = 0; y3U.W17(j, u.length); j++) {
  33188. var U0 = n[f],
  33189. k0 = u[j];
  33190. if (U0.containsPoint(k0[0], k0[1])) {
  33191. q.push(U0);
  33192. break;
  33193. }
  33194. }
  33195. return q;
  33196. },
  33197. i.TilemapLayer.prototype.getTiles = function (k, m, e, o, n, u) {
  33198. "undefined" == typeof n && (n = !1),
  33199. "undefined" == typeof u && (u = !1);
  33200. var q = !(n || u);
  33201. k = this._fixX(k),
  33202. m = this._fixY(m);
  33203. for (var f = Math.floor(y3U.m17(k, this._mc.cw)), j = Math.floor(y3U.A17(m, this._mc.ch)), U0 = y3U.w17(Math.ceil((k + e) / this._mc.cw), f), k0 = y3U.E17(Math.ceil((m + o) / this._mc.ch), j); this._results.length; )
  33204. this._results.pop();
  33205. for (var a0 = j; y3U.e17(j + k0, a0); a0++)
  33206. for (var T0 = f; y3U.g17(f + U0, T0); T0++) {
  33207. var G0 = this.layer.data[a0];
  33208. G0 && G0[T0] && (q || G0[T0].isInteresting(n, u)) && this._results.push(G0[T0]);
  33209. }
  33210. return this._results;
  33211. },
  33212. Object.defineProperty(i.TilemapLayer.prototype, "wrap", {
  33213. get : function () {
  33214. return this._wrap;
  33215. },
  33216. set : function (k) {
  33217. this._wrap = k,
  33218. this.dirty = !0;
  33219. }
  33220. }),
  33221. i.TilemapLayer.prototype.resolveTileset = function (k) {
  33222. var m = this._mc.tilesets;
  33223. if (y3U.r17(2e3, k))
  33224. for (; y3U.i17(m.length, k); )
  33225. m.push(void 0);
  33226. var e = this.map.tiles[k] && this.map.tiles[k][2];
  33227. if (y3U.u17(null, e)) {
  33228. var o = this.map.tilesets[e];
  33229. if (o && o.containsTileIndex(k))
  33230. return m[k] = o;
  33231. }
  33232. return m[k] = null;
  33233. },
  33234. i.TilemapLayer.prototype.resetTilesetCache = function () {
  33235. for (var k = this._mc.tilesets; k.length; )
  33236. k.pop();
  33237. },
  33238. i.TilemapLayer.prototype.shiftCanvas = function (k, m, e) {
  33239. var o = k.canvas,
  33240. n = y3U.P17(o.width, Math.abs(m)),
  33241. u = y3U.D17(o.height, Math.abs(e)),
  33242. q = 0,
  33243. f = 0,
  33244. j = m,
  33245. U0 = e;
  33246. y3U.Z17(0, m) && (q = -m, j = 0),
  33247. y3U.R17(0, e) && (f = -e, U0 = 0);
  33248. var k0 = this.renderSettings.copyCanvas;
  33249. if (k0) {
  33250. var a0 = this.renderSettings.copySliceCount,
  33251. T0 = Math.ceil(y3U.O17(u, a0));
  33252. y3U.V17(k0.width, n) && (k0.width = n),
  33253. y3U.k67(k0.height, T0) && (k0.height = T0);
  33254. var G0;
  33255. y3U.G67(f, U0) ? G0 = T0 : (G0 = -T0, f += y3U.N67(T0, (a0 - 1)), U0 += y3U.L67(T0, (a0 - 1)));
  33256. for (var W0 = k0.getContext("2d"); a0--; )
  33257. W0.clearRect(0, 0, n, T0), W0.drawImage(o, q, f, n, T0, 0, 0, n, T0), k.clearRect(j, U0, n, T0), k.drawImage(k0, 0, 0, n, T0, j, U0, n, T0), f += G0, U0 += G0;
  33258. } else
  33259. k.save(), k.globalCompositeOperation = "copy", k.drawImage(o, q, f, n, u, j, U0, n, u), k.restore();
  33260. },
  33261. i.TilemapLayer.prototype.renderRegion = function (k, m, e, o, n, u) {
  33262. var q = this.context,
  33263. f = this.layer.width,
  33264. j = this.layer.height,
  33265. U0 = this._mc.tileWidth,
  33266. k0 = this._mc.tileHeight,
  33267. a0 = this._mc.tilesets,
  33268. T0 = y3U.z67(0, 0);
  33269. this._wrap || (y3U.J67(n, e) && (e = Math.max(0, e), n = Math.min(y3U.H67(f, 1), n)), y3U.h67(u, o) && (o = Math.max(0, o), u = Math.min(y3U.F67(j, 1), u)));
  33270. var G0,
  33271. W0,
  33272. N0,
  33273. S0,
  33274. I0,
  33275. m0,
  33276. A0 = y3U.M67(e * U0, k),
  33277. L0 = y3U.n67(o * k0, m),
  33278. z0 = y3U.f67((e + (1 << 20) * f), f),
  33279. E0 = y3U.K67((o + (1 << 20) * j), j);
  33280. for (q.fillStyle = this.tileColor, S0 = E0, m0 = y3U.B67(u, o), W0 = L0; y3U.l67(m0, 0); S0++, m0--, W0 += k0) {
  33281. y3U.X67(S0, j) && (S0 -= j);
  33282. var v0 = this.layer.data[S0];
  33283. for (N0 = z0, I0 = y3U.Y67(n, e), G0 = A0; y3U.U87(I0, 0); N0++, I0--, G0 += U0) {
  33284. y3U.T87(N0, f) && (N0 -= f);
  33285. var J0 = v0[N0];
  33286. if (J0 && !(y3U.S87(J0.index, 0))) {
  33287. var t0 = J0.index,
  33288. w0 = a0[t0];
  33289. void 0 === w0 && (w0 = this.resolveTileset(t0)),
  33290. y3U.I87(J0.alpha, T0) || this.debug || (q.globalAlpha = J0.alpha, T0 = J0.alpha),
  33291. w0 ? w0.draw(q, G0, W0, t0) : this.debugSettings.missingImageFill && (q.fillStyle = this.debugSettings.missingImageFill, q.fillRect(G0, W0, U0, k0)),
  33292. J0.debug && this.debugSettings.debuggedTileOverfill && (q.fillStyle = this.debugSettings.debuggedTileOverfill, q.fillRect(G0, W0, U0, k0));
  33293. }
  33294. }
  33295. }
  33296. },
  33297. i.TilemapLayer.prototype.renderDeltaScroll = function (k, m) {
  33298. var e = this._mc.scrollX,
  33299. o = this._mc.scrollY,
  33300. n = this.canvas.width,
  33301. u = this.canvas.height,
  33302. q = this._mc.tileWidth,
  33303. f = this._mc.tileHeight,
  33304. j = 0,
  33305. U0 = -q,
  33306. k0 = 0,
  33307. a0 = -f;
  33308. if (y3U.C87(0, k) ? (j = n + k, U0 = y3U.v87(n, 1)) : y3U.t87(k, 0) && (U0 = k), y3U.y87(0, m) ? (k0 = u + m, a0 = y3U.o87(u, 1)) : y3U.x87(m, 0) && (a0 = m), this.shiftCanvas(this.context, k, m), j = Math.floor(y3U.p87((j + e), q)), U0 = Math.floor(y3U.q87((U0 + e), q)), k0 = Math.floor(y3U.b87((k0 + o), f)), a0 = Math.floor(y3U.j87((a0 + o), f)), y3U.d87(U0, j)) {
  33309. this.context.clearRect(y3U.c87(j * q, e), 0, y3U.s87((U0 - j + 1), q), u);
  33310. var T0 = Math.floor(y3U.Q87((0 + o), f)),
  33311. G0 = Math.floor(y3U.a0I((u - 1 + o), f));
  33312. this.renderRegion(e, o, j, T0, U0, G0);
  33313. }
  33314. if (y3U.W0I(a0, k0)) {
  33315. this.context.clearRect(0, y3U.m0I(k0 * f, o), n, y3U.A0I((a0 - k0 + 1), f));
  33316. var W0 = Math.floor(y3U.w0I((0 + e), q)),
  33317. N0 = Math.floor(y3U.E0I((n - 1 + e), q));
  33318. this.renderRegion(e, o, W0, k0, N0, a0);
  33319. }
  33320. },
  33321. i.TilemapLayer.prototype.renderFull = function () {
  33322. var k = this._mc.scrollX,
  33323. m = this._mc.scrollY,
  33324. e = this.canvas.width,
  33325. o = this.canvas.height,
  33326. n = this._mc.tileWidth,
  33327. u = this._mc.tileHeight,
  33328. q = Math.floor(y3U.e0I(k, n)),
  33329. f = Math.floor(y3U.g0I((e - 1 + k), n)),
  33330. j = Math.floor(y3U.r0I(m, u)),
  33331. U0 = Math.floor(y3U.i0I((o - 1 + m), u));
  33332. this.context.clearRect(0, 0, e, o),
  33333. this.renderRegion(k, m, q, j, f, U0);
  33334. },
  33335. i.TilemapLayer.prototype.render = function () {
  33336. var k = !1;
  33337. if (this.visible) {
  33338. (this.dirty || this.layer.dirty) && (this.layer.dirty = !1, k = !0);
  33339. var m = this.canvas.width,
  33340. e = this.canvas.height,
  33341. o = y3U.u0I(0, this._scrollX),
  33342. n = y3U.P0I(0, this._scrollY),
  33343. u = this._mc,
  33344. q = y3U.D0I(u.scrollX, o),
  33345. f = y3U.Z0I(u.scrollY, n);
  33346. if (k || y3U.R0I(0, q) || y3U.O0I(0, f) || y3U.V0I(u.renderWidth, m) || y3U.k7I(u.renderHeight, e))
  33347. return u.scrollX = o, u.scrollY = n, (y3U.G7I(u.renderWidth, m) || y3U.N7I(u.renderHeight, e)) && (u.renderWidth = m, u.renderHeight = e), this.debug && (this.context.globalAlpha = this.debugSettings.debugAlpha, this.debugSettings.forceFullRedraw && (k = !0)), !k && this.renderSettings.enableScrollDelta && y3U.L7I(Math.abs(q) + Math.abs(f), Math.min(m, e)) ? this.renderDeltaScroll(q, f) : this.renderFull(), this.debug && (this.context.globalAlpha = 1, this.renderDebug()), this.baseTexture.dirty(), this.dirty = !1, !0;
  33348. }
  33349. },
  33350. i.TilemapLayer.prototype.renderDebug = function () {
  33351. var k,
  33352. m,
  33353. e,
  33354. o,
  33355. n,
  33356. u,
  33357. q = this._mc.scrollX,
  33358. f = this._mc.scrollY,
  33359. j = this.context,
  33360. U0 = this.canvas.width,
  33361. k0 = this.canvas.height,
  33362. a0 = this.layer.width,
  33363. T0 = this.layer.height,
  33364. G0 = this._mc.tileWidth,
  33365. W0 = this._mc.tileHeight,
  33366. N0 = Math.floor(y3U.z7I(q, G0)),
  33367. S0 = Math.floor(y3U.J7I((U0 - 1 + q), G0)),
  33368. I0 = Math.floor(y3U.H7I(f, W0)),
  33369. m0 = Math.floor(y3U.h7I((k0 - 1 + f), W0)),
  33370. A0 = y3U.F7I(N0 * G0, q),
  33371. L0 = y3U.M7I(I0 * W0, f),
  33372. z0 = y3U.n7I((N0 + (1 << 20) * a0), a0),
  33373. E0 = y3U.f7I((I0 + (1 << 20) * T0), T0);
  33374. for (j.strokeStyle = this.debugSettings.facingEdgeStroke, o = E0, u = y3U.K7I(m0, I0), m = L0; y3U.B7I(u, 0); o++, u--, m += W0) {
  33375. y3U.l7I(o, T0) && (o -= T0);
  33376. var v0 = this.layer.data[o];
  33377. for (e = z0, n = y3U.X7I(S0, N0), k = A0; y3U.Y7I(n, 0); e++, n--, k += G0) {
  33378. y3U.U4I(e, a0) && (e -= a0);
  33379. var J0 = v0[e];
  33380. !J0 || y3U.T4I(J0.index, 0) || !J0.collides || (this.debugSettings.collidingTileOverfill && (j.fillStyle = this.debugSettings.collidingTileOverfill, j.fillRect(k, m, this._mc.cw, this._mc.ch)), this.debugSettings.facingEdgeStroke && (j.beginPath(), J0.faceTop && (j.moveTo(k, m), j.lineTo(k + this._mc.cw, m)), J0.faceBottom && (j.moveTo(k, m + this._mc.ch), j.lineTo(k + this._mc.cw, m + this._mc.ch)), J0.faceLeft && (j.moveTo(k, m), j.lineTo(k, m + this._mc.ch)), J0.faceRight && (j.moveTo(k + this._mc.cw, m), j.lineTo(k + this._mc.cw, m + this._mc.ch)), j.stroke()));
  33381. }
  33382. }
  33383. },
  33384. Object.defineProperty(i.TilemapLayer.prototype, "scrollX", {
  33385. get : function () {
  33386. return this._scrollX;
  33387. },
  33388. set : function (k) {
  33389. this._scrollX = k;
  33390. }
  33391. }),
  33392. Object.defineProperty(i.TilemapLayer.prototype, "scrollY", {
  33393. get : function () {
  33394. return this._scrollY;
  33395. },
  33396. set : function (k) {
  33397. this._scrollY = k;
  33398. }
  33399. }),
  33400. Object.defineProperty(i.TilemapLayer.prototype, "collisionWidth", {
  33401. get : function () {
  33402. return this._mc.cw;
  33403. },
  33404. set : function (k) {
  33405. this._mc.cw = y3U.S4I(0, k),
  33406. this.dirty = !0;
  33407. }
  33408. }),
  33409. Object.defineProperty(i.TilemapLayer.prototype, "collisionHeight", {
  33410. get : function () {
  33411. return this._mc.ch;
  33412. },
  33413. set : function (k) {
  33414. this._mc.ch = y3U.I4I(0, k),
  33415. this.dirty = !0;
  33416. }
  33417. }),
  33418. i.TilemapParser = {
  33419. parse : function (k, m, e, o, n, u) {
  33420. if ("undefined" == typeof e && (e = 32), "undefined" == typeof o && (o = 32), "undefined" == typeof n && (n = 10), "undefined" == typeof u && (u = 10), "undefined" == typeof m)
  33421. return this.getEmptyData();
  33422. if (y3U.C4I(null, m))
  33423. return this.getEmptyData(e, o, n, u);
  33424. var q = k.cache.getTilemapData(m);
  33425. if (q) {
  33426. if (y3U.v4I(q.format, i.Tilemap.CSV))
  33427. return this.parseCSV(m, q.data, e, o);
  33428. if (!q.format || y3U.t4I(q.format, i.Tilemap.TILED_JSON))
  33429. return this.parseTiledJSON(q.data);
  33430. } else
  33431. console.warn("Phaser.TilemapParser.parse - No map data found for key " + m);
  33432. },
  33433. parseCSV : function (k, m, e, o) {
  33434. var n = this.getEmptyData();
  33435. m = m.trim();
  33436. for (var u = [], q = m.split("\n"), f = q.length, j = 0, U0 = 0; y3U.y4I(U0, q.length); U0++) {
  33437. var k0 = function () {
  33438. u[U0] = [];
  33439. };
  33440. k0();
  33441. for (var a0 = q[U0].split(","), T0 = 0; y3U.o4I(T0, a0.length); T0++)
  33442. u[U0][T0] = new i.Tile(n.layers[0], parseInt(a0[T0], 10), T0, U0, e, o);
  33443. y3U.x4I(0, j) && (j = a0.length);
  33444. }
  33445. return n.format = i.Tilemap.CSV,
  33446. n.name = k,
  33447. n.width = j,
  33448. n.height = f,
  33449. n.tileWidth = e,
  33450. n.tileHeight = o,
  33451. n.widthInPixels = y3U.p4I(j, e),
  33452. n.heightInPixels = y3U.q4I(f, o),
  33453. n.layers[0].width = j,
  33454. n.layers[0].height = f,
  33455. n.layers[0].widthInPixels = n.widthInPixels,
  33456. n.layers[0].heightInPixels = n.heightInPixels,
  33457. n.layers[0].data = u,
  33458. n;
  33459. },
  33460. getEmptyData : function (k, m, e, o) {
  33461. var n = {};
  33462. n.width = 0,
  33463. n.height = 0,
  33464. n.tileWidth = 0,
  33465. n.tileHeight = 0,
  33466. "undefined" != typeof k && y3U.b4I(null, k) && (n.tileWidth = k),
  33467. "undefined" != typeof m && y3U.j4I(null, m) && (n.tileHeight = m),
  33468. "undefined" != typeof e && y3U.d4I(null, e) && (n.width = e),
  33469. "undefined" != typeof o && y3U.c4I(null, o) && (n.height = o),
  33470. n.orientation = "orthogonal",
  33471. n.version = "1",
  33472. n.properties = {},
  33473. n.widthInPixels = 0,
  33474. n.heightInPixels = 0;
  33475. var u = [],
  33476. q = {
  33477. name : "layer",
  33478. x : 0,
  33479. y : 0,
  33480. width : 0,
  33481. height : 0,
  33482. widthInPixels : 0,
  33483. heightInPixels : 0,
  33484. alpha : 1,
  33485. visible : !0,
  33486. properties : {},
  33487. indexes : [],
  33488. callbacks : [],
  33489. bodies : [],
  33490. data : []
  33491. };
  33492. return u.push(q),
  33493. n.layers = u,
  33494. n.images = [],
  33495. n.objects = {},
  33496. n.collision = {},
  33497. n.tilesets = [],
  33498. n.tiles = [],
  33499. n;
  33500. },
  33501. parseTiledJSON : function (f) {
  33502. var j = function (k) {
  33503. T0.layers = k;
  33504. },
  33505. U0 = function (k) {
  33506. T0.images = k;
  33507. };
  33508. function k0(m, e) {
  33509. var o = {};
  33510. for (var n in e) {
  33511. var u = function (k) {
  33512. o[q] = k[q];
  33513. };
  33514. var q = e[n];
  33515. u(m);
  33516. }
  33517. return o;
  33518. }
  33519. var a0 = function (k) {
  33520. T0.tilesets = k;
  33521. };
  33522. if (y3U.s4I("orthogonal", f.orientation))
  33523. return console.warn("TilemapParser.parseTiledJSON - Only orthogonal map types are supported in this version of Phaser"), null;
  33524. var T0 = {};
  33525. T0.width = f.width,
  33526. T0.height = f.height,
  33527. T0.tileWidth = f.tilewidth,
  33528. T0.tileHeight = f.tileheight,
  33529. T0.orientation = f.orientation,
  33530. T0.format = i.Tilemap.TILED_JSON,
  33531. T0.version = f.version,
  33532. T0.properties = f.properties,
  33533. T0.widthInPixels = y3U.Q4I(T0.width, T0.tileWidth),
  33534. T0.heightInPixels = y3U.a3I(T0.height, T0.tileHeight);
  33535. for (var G0 = [], W0 = 0; y3U.W3I(W0, f.layers.length); W0++)
  33536. if (y3U.m3I("tilelayer", f.layers[W0].type)) {
  33537. var N0 = {
  33538. name : f.layers[W0].name,
  33539. x : f.layers[W0].x,
  33540. y : f.layers[W0].y,
  33541. width : f.layers[W0].width,
  33542. height : f.layers[W0].height,
  33543. widthInPixels : y3U.A3I(f.layers[W0].width, f.tilewidth),
  33544. heightInPixels : y3U.w3I(f.layers[W0].height, f.tileheight),
  33545. alpha : f.layers[W0].opacity,
  33546. visible : f.layers[W0].visible,
  33547. properties : {},
  33548. indexes : [],
  33549. callbacks : [],
  33550. bodies : []
  33551. };
  33552. f.layers[W0].properties && (N0.properties = f.layers[W0].properties);
  33553. for (var S0 = 0, I0 = [], m0 = [], A0 = 0, L0 = f.layers[W0].data.length; y3U.E3I(L0, A0); A0++)
  33554. I0.push(y3U.e3I(f.layers[W0].data[A0], 0) ? new i.Tile(N0, f.layers[W0].data[A0], S0, m0.length, f.tilewidth, f.tileheight) : new i.Tile(N0, -1, S0, m0.length, f.tilewidth, f.tileheight)), S0++, y3U.g3I(S0, f.layers[W0].width) && (m0.push(I0), S0 = 0, I0 = []);
  33555. N0.data = m0,
  33556. G0.push(N0);
  33557. }
  33558. j(G0);
  33559. for (var z0 = [], W0 = 0; y3U.r3I(W0, f.layers.length); W0++)
  33560. if (y3U.i3I("imagelayer", f.layers[W0].type)) {
  33561. var E0 = {
  33562. name : f.layers[W0].name,
  33563. image : f.layers[W0].image,
  33564. x : f.layers[W0].x,
  33565. y : f.layers[W0].y,
  33566. alpha : f.layers[W0].opacity,
  33567. visible : f.layers[W0].visible,
  33568. properties : {}
  33569. };
  33570. f.layers[W0].properties && (E0.properties = f.layers[W0].properties),
  33571. z0.push(E0);
  33572. }
  33573. U0(z0);
  33574. for (var v0 = [], W0 = 0; y3U.u3I(W0, f.tilesets.length); W0++) {
  33575. var J0 = f.tilesets[W0];
  33576. if (J0.image) {
  33577. var t0 = new i.Tileset(J0.name, J0.firstgid, J0.tilewidth, J0.tileheight, J0.margin, J0.spacing, J0.properties);
  33578. J0.tileproperties && (t0.tileProperties = J0.tileproperties),
  33579. t0.updateTileData(J0.imagewidth, J0.imageheight),
  33580. v0.push(t0);
  33581. } else
  33582. console.warn("Phaser.TilemapParser - Image Collection Tilesets are not support");
  33583. }
  33584. a0(v0);
  33585. for (var w0 = {}, g0 = {}, W0 = 0; y3U.P3I(W0, f.layers.length); W0++)
  33586. if (y3U.D3I("objectgroup", f.layers[W0].type)) {
  33587. w0[f.layers[W0].name] = [],
  33588. g0[f.layers[W0].name] = [];
  33589. for (var H0 = 0, L0 = f.layers[W0].objects.length; y3U.Z3I(L0, H0); H0++)
  33590. if (f.layers[W0].objects[H0].gid) {
  33591. var M0 = {
  33592. gid : f.layers[W0].objects[H0].gid,
  33593. name : f.layers[W0].objects[H0].name,
  33594. x : f.layers[W0].objects[H0].x,
  33595. y : f.layers[W0].objects[H0].y,
  33596. visible : f.layers[W0].objects[H0].visible,
  33597. properties : f.layers[W0].objects[H0].properties
  33598. };
  33599. w0[f.layers[W0].name].push(M0);
  33600. } else if (f.layers[W0].objects[H0].polyline) {
  33601. var p0 = function () {
  33602. M0.polyline = [];
  33603. };
  33604. var M0 = {
  33605. name : f.layers[W0].objects[H0].name,
  33606. type : f.layers[W0].objects[H0].type,
  33607. x : f.layers[W0].objects[H0].x,
  33608. y : f.layers[W0].objects[H0].y,
  33609. width : f.layers[W0].objects[H0].width,
  33610. height : f.layers[W0].objects[H0].height,
  33611. visible : f.layers[W0].objects[H0].visible,
  33612. properties : f.layers[W0].objects[H0].properties
  33613. };
  33614. p0();
  33615. for (var e0 = 0; y3U.R3I(e0, f.layers[W0].objects[H0].polyline.length); e0++)
  33616. M0.polyline.push([f.layers[W0].objects[H0].polyline[e0].x, f.layers[W0].objects[H0].polyline[e0].y]);
  33617. g0[f.layers[W0].name].push(M0),
  33618. w0[f.layers[W0].name].push(M0);
  33619. } else if (f.layers[W0].objects[H0].polygon) {
  33620. var F0 = function () {
  33621. M0.polygon = [];
  33622. };
  33623. var M0 = k0(f.layers[W0].objects[H0], ["name", "type", "x", "y", "visible", "properties"]);
  33624. F0();
  33625. for (var e0 = 0; y3U.O3I(e0, f.layers[W0].objects[H0].polygon.length); e0++)
  33626. M0.polygon.push([f.layers[W0].objects[H0].polygon[e0].x, f.layers[W0].objects[H0].polygon[e0].y]);
  33627. w0[f.layers[W0].name].push(M0);
  33628. } else if (f.layers[W0].objects[H0].ellipse) {
  33629. var M0 = k0(f.layers[W0].objects[H0], ["name", "type", "ellipse", "x", "y", "width", "height", "visible", "properties"]);
  33630. w0[f.layers[W0].name].push(M0);
  33631. } else {
  33632. var M0 = k0(f.layers[W0].objects[H0], ["name", "type", "x", "y", "width", "height", "visible", "properties"]);
  33633. M0.rectangle = !0,
  33634. w0[f.layers[W0].name].push(M0);
  33635. }
  33636. }
  33637. T0.objects = w0,
  33638. T0.collision = g0,
  33639. T0.tiles = [];
  33640. for (var W0 = 0; y3U.V3I(W0, T0.tilesets.length); W0++)
  33641. for (var J0 = T0.tilesets[W0], S0 = J0.tileMargin, P0 = J0.tileMargin, O0 = 0, b0 = 0, d0 = 0, A0 = J0.firstgid; y3U.k9I(A0, J0.firstgid + J0.total) && (T0.tiles[A0] = [S0, P0, W0], S0 += J0.tileWidth + J0.tileSpacing, O0++, y3U.G9I(O0, J0.total)) && (b0++, y3U.N9I(b0, J0.columns) || (S0 = J0.tileMargin, P0 += J0.tileHeight + J0.tileSpacing, b0 = 0, d0++, y3U.L9I(d0, J0.rows))); A0++);
  33642. var W0,
  33643. l0,
  33644. j0,
  33645. N0,
  33646. Z0,
  33647. R0,
  33648. J0;
  33649. for (W0 = 0; y3U.z9I(W0, T0.layers.length); W0++)
  33650. for (N0 = T0.layers[W0], l0 = 0; y3U.J9I(l0, N0.data.length); l0++)
  33651. for (I0 = N0.data[l0], j0 = 0; y3U.H9I(j0, I0.length); j0++)
  33652. Z0 = I0[j0], y3U.h9I(Z0.index, 0) || (R0 = T0.tiles[Z0.index][2], J0 = T0.tilesets[R0], J0.tileProperties && J0.tileProperties[y3U.F9I(Z0.index, J0.firstgid)] && (Z0.properties = J0.tileProperties[y3U.M9I(Z0.index, J0.firstgid)]));
  33653. return T0;
  33654. }
  33655. },
  33656. i.Tileset = function (k, m, e, o, n, u, q) {
  33657. ("undefined" == typeof e || y3U.n9I(0, e)) && (e = 32),
  33658. ("undefined" == typeof o || y3U.f9I(0, o)) && (o = 32),
  33659. "undefined" == typeof n && (n = 0),
  33660. "undefined" == typeof u && (u = 0),
  33661. this.name = k,
  33662. this.firstgid = y3U.K9I(0, m),
  33663. this.tileWidth = y3U.B9I(0, e),
  33664. this.tileHeight = y3U.l9I(0, o),
  33665. this.tileMargin = y3U.X9I(0, n),
  33666. this.tileSpacing = y3U.Y9I(0, u),
  33667. this.properties = q || {},
  33668. this.image = null,
  33669. this.rows = 0,
  33670. this.columns = 0,
  33671. this.total = 0,
  33672. this.drawCoords = [];
  33673. },
  33674. i.Tileset.prototype = {
  33675. draw : function (k, m, e, o) {
  33676. var n = y3U.U5I(o - this.firstgid, 1);
  33677. y3U.T5I(n, 0) && y3U.S5I(n + 1, this.drawCoords.length) && k.drawImage(this.image, this.drawCoords[n], this.drawCoords[n + 1], this.tileWidth, this.tileHeight, m, e, this.tileWidth, this.tileHeight);
  33678. },
  33679. containsTileIndex : function (k) {
  33680. return y3U.I5I(k, this.firstgid) && y3U.C5I(k, this.firstgid + this.total);
  33681. },
  33682. setImage : function (k) {
  33683. this.image = k,
  33684. this.updateTileData(k.width, k.height);
  33685. },
  33686. setSpacing : function (k, m) {
  33687. this.tileMargin = y3U.v5I(0, k),
  33688. this.tileSpacing = y3U.t5I(0, m),
  33689. this.image && this.updateTileData(this.image.width, this.image.height);
  33690. },
  33691. updateTileData : function (k, m) {
  33692. var e = y3U.y5I((m - this.tileMargin), (this.tileHeight + this.tileSpacing)),
  33693. o = y3U.o5I((k - this.tileMargin), (this.tileWidth + this.tileSpacing));
  33694. (y3U.x5I(e % 1, 0) || y3U.p5I(o % 1, 0)) && console.warn("Phaser.Tileset - image tile area is not an even multiple of tile size"),
  33695. e = Math.floor(e),
  33696. o = Math.floor(o),
  33697. (this.rows && y3U.q5I(this.rows, e) || this.columns && y3U.b5I(this.columns, o)) && console.warn("Phaser.Tileset - actual and expected number of tile rows and columns differ"),
  33698. this.rows = e,
  33699. this.columns = o,
  33700. this.total = y3U.j5I(e, o),
  33701. this.drawCoords.length = 0;
  33702. for (var n = this.tileMargin, u = this.tileMargin, q = 0; y3U.d5I(q, this.rows); q++) {
  33703. for (var f = 0; y3U.c5I(f, this.columns); f++)
  33704. this.drawCoords.push(n), this.drawCoords.push(u), n += this.tileWidth + this.tileSpacing;
  33705. n = this.tileMargin,
  33706. u += this.tileHeight + this.tileSpacing;
  33707. }
  33708. }
  33709. },
  33710. i.Tileset.prototype.constructor = i.Tileset,
  33711. "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = i), exports.Phaser = i) : "undefined" != typeof define && define.amd ? define("Phaser", function () {
  33712. return D0.Phaser = i;
  33713. }
  33714. ()) : D0.Phaser = i;
  33715. }
  33716. .call(this), !function (k) {
  33717. "object" == typeof exports ? module.exports = k() : "function" == typeof define && define.amd ? define("p2", function () {
  33718. return this.p2 = k();
  33719. }
  33720. ()) : "undefined" != typeof window ? r2w8n[E8n].p2 = k() : "undefined" != typeof global ? self.p2 = k() : "undefined" != typeof self && (self.p2 = k());
  33721. }
  33722. (function () {
  33723. return function s7(q, f, j) {
  33724. function U0(e, o) {
  33725. if (!f[e]) {
  33726. if (!q[e]) {
  33727. var n = "function" == typeof require && require;
  33728. if (!o && n)
  33729. return n(e, !0);
  33730. if (k0)
  33731. return k0(e, !0);
  33732. throw new Error("Cannot find module '" + e + "'");
  33733. }
  33734. var u = f[e] = {
  33735. exports : {}
  33736. };
  33737. q[e][0].call(u.exports, function (k) {
  33738. var m = q[e][1][k];
  33739. return U0(m ? m : k);
  33740. }, u, u.exports, s7, q, f, j);
  33741. }
  33742. return f[e].exports;
  33743. }
  33744. for (var k0 = "function" == typeof require && require, a0 = 0; y3U.s5I(a0, j.length); a0++)
  33745. U0(j[a0]);
  33746. return U0;
  33747. }
  33748. ({
  33749. 1 : [function (e7, K7) {
  33750. e7 = function b7(q, f, j) {
  33751. function U0(e, o) {
  33752. if (!f[e]) {
  33753. if (!q[e]) {
  33754. var n = "function" == typeof e7 && e7;
  33755. if (!o && n)
  33756. return n(e, !0);
  33757. if (k0)
  33758. return k0(e, !0);
  33759. throw new Error("Cannot find module '" + e + "'");
  33760. }
  33761. var u = f[e] = {
  33762. exports : {}
  33763. };
  33764. q[e][0].call(u.exports, function (k) {
  33765. var m = q[e][1][k];
  33766. return U0(m ? m : k);
  33767. }, u, u.exports, b7, q, f, j);
  33768. }
  33769. return f[e].exports;
  33770. }
  33771. for (var k0 = "function" == typeof e7 && e7, a0 = 0; y3U.Q5I(a0, j.length); a0++)
  33772. U0(j[a0]);
  33773. return U0;
  33774. }
  33775. ({
  33776. PcZj9L : [function (a0, T0, G0) {
  33777. function W0() {
  33778. return {
  33779. type : "Buffer",
  33780. data : Array.prototype.slice.call(this, 0)
  33781. };
  33782. }
  33783. function N0(k, m) {
  33784. return Q0(this, k, !0, m);
  33785. }
  33786. function S0() {
  33787. return new c0(this).buffer;
  33788. }
  33789. function I0(k, m) {
  33790. return q0(this, k, !1, m);
  33791. }
  33792. function m0(k, m) {
  33793. return p0(this, k, !0, m);
  33794. }
  33795. function A0(k) {
  33796. return k = ~~Math.ceil(+k),
  33797. y3U.g3e(0, k) ? 0 : k;
  33798. }
  33799. function L0(k, m, e) {
  33800. O0(this, k, m, !1, e);
  33801. }
  33802. function z0(k, m, e) {
  33803. for (var o = k.slice(m, e), n = "", u = 0; y3U.L6I(u, o.length); u++)
  33804. n += String.fromCharCode(o[u]);
  33805. return n;
  33806. }
  33807. function E0(k, m, e, o) {
  33808. for (var n = 0; y3U.R3e(o, n) && !(y3U.O3e(n + e, m.length) || y3U.V3e(n, k.length)); )
  33809. m[n + e] = k[n], n++;
  33810. return n;
  33811. }
  33812. function v0(k, m, e, o) {
  33813. var n = this;
  33814. if (e || (e = 0), o || y3U.L1I(0, o) || (o = this.length), m || (m = 0), y3U.z1I(o, e) && y3U.J1I(0, k.length) && y3U.H1I(0, n.length)) {
  33815. if (y3U.h1I(e, o))
  33816. throw new Error("sourceEnd < sourceStart");
  33817. if (y3U.F1I(0, m) || y3U.M1I(m, k.length))
  33818. throw new Error("targetStart out of bounds");
  33819. if (y3U.n1I(0, e) || y3U.f1I(e, n.length))
  33820. throw new Error("sourceStart out of bounds");
  33821. if (y3U.K1I(0, o) || y3U.B1I(o, n.length))
  33822. throw new Error("sourceEnd out of bounds");
  33823. y3U.l1I(o, this.length) && (o = this.length),
  33824. y3U.X1I(k.length - m, o - e) && (o = y3U.Y1I(k.length, m, e));
  33825. for (var u = 0; y3U.k6I(o - e, u); u++)
  33826. k[u + m] = this[u + e];
  33827. }
  33828. }
  33829. function J0(k, m) {
  33830. return t7(this, k, !1, m);
  33831. }
  33832. function t0(k, m) {
  33833. return Q0(this, k, !1, m);
  33834. }
  33835. function w0(k, m) {
  33836. var e = this;
  33837. return m || (r0(void 0 !== k && y3U.C8I(null, k), "missing offset"), r0(y3U.v8I(k, e.length), "Trying to read beyond buffer length")),
  33838. y3U.t8I(k, e.length) ? void 0 : e._dataview.getInt8(k);
  33839. }
  33840. function g0(k, m) {
  33841. return p0(this, k, !1, m);
  33842. }
  33843. function H0(k, m, e, o) {
  33844. o || (r0("boolean" == typeof e, "missing or invalid endian"), r0(void 0 !== m && y3U.f6I(null, m), "missing offset"), r0(y3U.K6I(m + 1, k.length), "Trying to read beyond buffer length"));
  33845. var n = k.length;
  33846. if (!(y3U.B6I(m, n))) {
  33847. if (y3U.l6I(m + 1, n)) {
  33848. var u = new T7(new m7(2));
  33849. return u.setUint8(0, k[y3U.X6I(n, 1)]),
  33850. u.getUint16(0, e);
  33851. }
  33852. return k._dataview.getUint16(m, e);
  33853. }
  33854. }
  33855. function M0(k, m, e) {
  33856. r0("number" == typeof k, "cannot write a non-number as a number"),
  33857. r0(y3U.H9e(m, k), "value larger than maximum allowed value"),
  33858. r0(y3U.h9e(k, e), "value smaller than minimum allowed value");
  33859. }
  33860. function p0(k, m, e, o) {
  33861. return o || (r0("boolean" == typeof e, "missing or invalid endian"), r0(y3U.a0e(m + 7, k.length), "Trying to read beyond buffer length")),
  33862. k._dataview.getFloat64(m, e);
  33863. }
  33864. function e0(k, m, e) {
  33865. f0(this, k, m, !1, e);
  33866. }
  33867. function F0(k) {
  33868. this._arr = k,
  33869. y3U.m3e(0, k.byteLength) && (this._dataview = new T7(k.buffer, k.byteOffset, k.byteLength));
  33870. }
  33871. function P0(k, m, e) {
  33872. r7(this, k, m, !1, e);
  33873. }
  33874. function O0(k, m, e, o, n) {
  33875. n || (r0(void 0 !== m && y3U.E0e(null, m), "missing value"), r0("boolean" == typeof o, "missing or invalid endian"), r0(void 0 !== e && y3U.e0e(null, e), "missing offset"), r0(y3U.g0e(e + 1, k.length), "trying to write beyond buffer length"), z7(m, 65535));
  33876. var u = k.length;
  33877. if (!(y3U.r0e(e, u)))
  33878. if (y3U.i0e(e + 1, u)) {
  33879. var q = new T7(new m7(2));
  33880. q.setUint16(0, m, o),
  33881. k[e] = q.getUint8(0);
  33882. } else
  33883. k._dataview.setUint16(e, m, o);
  33884. }
  33885. function b0(k, m, e) {
  33886. r7(this, k, m, !0, e);
  33887. }
  33888. function $(k, m, e) {
  33889. i7(this, k, m, !1, e);
  33890. }
  33891. function l0(k, m, e, o, n) {
  33892. n || (r0(void 0 !== m && y3U.L7e(null, m), "missing value"), r0("boolean" == typeof o, "missing or invalid endian"), r0(void 0 !== e && y3U.z7e(null, e), "missing offset"), r0(y3U.J7e(e + 1, k.length), "Trying to write beyond buffer length"), o7(m, 32767, -32768));
  33893. var u = k.length;
  33894. if (!(y3U.H7e(e, u)))
  33895. if (y3U.h7e(e + 1, u)) {
  33896. var q = new T7(new m7(2));
  33897. q.setInt16(0, m, o),
  33898. k[e] = q.getUint8(0);
  33899. } else
  33900. k._dataview.setInt16(e, m, o);
  33901. }
  33902. function j0(k, m, e) {
  33903. if (k || (k = 0), m || (m = 0), e || (e = this.length), "string" == typeof k && (k = k.charCodeAt(0)), "number" != typeof k || isNaN(k))
  33904. throw new Error("value is not a number");
  33905. if (y3U.x4e(m, e))
  33906. throw new Error("end < start");
  33907. if (y3U.p4e(e, m) && y3U.q4e(0, this.length)) {
  33908. if (y3U.b4e(0, m) || y3U.j4e(m, this.length))
  33909. throw new Error("start out of bounds");
  33910. if (y3U.d4e(0, e) || y3U.c4e(e, this.length))
  33911. throw new Error("end out of bounds");
  33912. for (var o = m; y3U.s4e(e, o); o++)
  33913. this[o] = k;
  33914. }
  33915. }
  33916. function Z0() {
  33917. for (var m = [], e = this.length, o = 0; y3U.Q4e(e, o); o++)
  33918. if (m[o] = w7(this[o]), y3U.a3e(o, G0.INSPECT_MAX_BYTES)) {
  33919. var n = function (k) {
  33920. m[o + 1] = k;
  33921. };
  33922. n("...");
  33923. break;
  33924. }
  33925. return "<Buffer " + m.join(" ") + ">";
  33926. }
  33927. function R0(k, m, e) {
  33928. var o = this;
  33929. e || (r0(void 0 !== k && y3U.V0e(null, k), "missing value"), r0(void 0 !== m && y3U.k7e(null, m), "missing offset"), r0(y3U.G7e(m, o.length), "Trying to write beyond buffer length"), o7(k, 127, -128)),
  33930. y3U.N7e(m, o.length) || o._dataview.setInt8(m, k);
  33931. }
  33932. function q0(k, m, e, o) {
  33933. return o || (r0("boolean" == typeof e, "missing or invalid endian"), r0(y3U.Q8I(m + 3, k.length), "Trying to read beyond buffer length")),
  33934. k._dataview.getFloat32(m, e);
  33935. }
  33936. function D0(k) {
  33937. return k.trim ? k.trim() : k.replace(/^\s+|\s+$/g, "");
  33938. }
  33939. function i(k, m, e, o) {
  33940. return V0(k, m, e, o);
  33941. }
  33942. function k7(k, m, e) {
  33943. l0(this, k, m, !0, e);
  33944. }
  33945. function o0(k, m, e, o) {
  33946. return c0._charsWritten = E0(y7(m), k, e, o);
  33947. }
  33948. function V0(k, m, e, o) {
  33949. return c0._charsWritten = E0(B0(m), k, e, o);
  33950. }
  33951. function Y0(k, m, e) {
  33952. l0(this, k, m, !1, e);
  33953. }
  33954. function C0(k, m, e) {
  33955. i7(this, k, m, !0, e);
  33956. }
  33957. function h0(k, m) {
  33958. return H0(this, k, !1, m);
  33959. }
  33960. function u0(k) {
  33961. return a0("base64-js").toByteArray(k);
  33962. }
  33963. function n0(k, m) {
  33964. var e = this.length;
  33965. return k = g7(k, e, 0),
  33966. m = g7(m, e, e),
  33967. W7(this.subarray(k, m));
  33968. }
  33969. function A7(k, m, e) {
  33970. var o = this;
  33971. e || (r0(void 0 !== k && y3U.W0e(null, k), "missing value"), r0(void 0 !== m && y3U.m0e(null, m), "missing offset"), r0(y3U.A0e(m, o.length), "trying to write beyond buffer length"), z7(k, 255)),
  33972. y3U.w0e(m, o.length) || (o[m] = k);
  33973. }
  33974. function f0(k, m, e, o, n) {
  33975. n || (r0(void 0 !== m && y3U.l7e(null, m), "missing value"), r0("boolean" == typeof o, "missing or invalid endian"), r0(void 0 !== e && y3U.X7e(null, e), "missing offset"), r0(y3U.Y7e(e + 3, k.length), "Trying to write beyond buffer length"), M0(m, 3.4028234663852886e38, -3.4028234663852886e38));
  33976. var u = k.length;
  33977. if (!(y3U.U4e(e, u)))
  33978. if (y3U.T4e(e + 3, u)) {
  33979. var q = new T7(new m7(4));
  33980. q.setFloat32(0, m, o);
  33981. for (var f = 0; y3U.S4e(u, f + e); f++)
  33982. k[f + e] = q.getUint8(f);
  33983. } else
  33984. k._dataview.setFloat32(e, m, o);
  33985. }
  33986. function G7(k, m) {
  33987. return t7(this, k, !0, m);
  33988. }
  33989. function C7(k, m) {
  33990. return H0(this, k, !0, m);
  33991. }
  33992. function z7(k, m) {
  33993. r0("number" == typeof k, "cannot write a non-number as a number"),
  33994. r0(y3U.k9e(k, 0), "specified a negative value for writing an unsigned value"),
  33995. r0(y3U.G9e(m, k), "value is larger than maximum value for type"),
  33996. r0(y3U.N9e(Math.floor(k), k), "value has a fractional component");
  33997. }
  33998. function B0(k) {
  33999. for (var m = [], e = 0; y3U.D3e(e, k.length); e++)
  34000. m.push(y3U.Z3e(255, k.charCodeAt(e)));
  34001. return m;
  34002. }
  34003. function v7(k, m, e, o) {
  34004. return c0._charsWritten = E0(u0(m), k, e, o);
  34005. }
  34006. function i0(k, m, e) {
  34007. O0(this, k, m, !0, e);
  34008. }
  34009. function K0(k) {
  34010. return Array.isArray(k) || c0.isBuffer(k) || k && "object" == typeof k && "number" == typeof k.length;
  34011. }
  34012. function S7(k, m, e) {
  34013. var o = y3U.G1I(this, F0) ? this._proxy : this;
  34014. if (k = String(k || "utf8").toLowerCase(), m = Number(m) || 0, e = void 0 !== e ? Number(e) : e = o.length, y3U.N1I(e, m))
  34015. return "";
  34016. switch (k) {
  34017. case "hex":
  34018. return q7(o, m, e);
  34019. case "utf8":
  34020. case "utf-8":
  34021. return f7(o, m, e);
  34022. case "ascii":
  34023. return z0(o, m, e);
  34024. case "binary":
  34025. return B7(o, m, e);
  34026. case "base64":
  34027. return I7(o, m, e);
  34028. default:
  34029. throw new Error("Unknown encoding");
  34030. }
  34031. }
  34032. function U7(k, m, e, o, n) {
  34033. n || (r0(void 0 !== m && y3U.u0e(null, m), "missing value"), r0("boolean" == typeof o, "missing or invalid endian"), r0(void 0 !== e && y3U.P0e(null, e), "missing offset"), r0(y3U.D0e(e + 3, k.length), "trying to write beyond buffer length"), z7(m, 4294967295));
  34034. var u = k.length;
  34035. if (!(y3U.Z0e(e, u)))
  34036. if (y3U.R0e(e + 3, u)) {
  34037. var q = new T7(new m7(4));
  34038. q.setUint32(0, m, o);
  34039. for (var f = 0; y3U.O0e(u, f + e); f++)
  34040. k[f + e] = q.getUint8(f);
  34041. } else
  34042. k._dataview.setUint32(e, m, o);
  34043. }
  34044. function X0(m) {
  34045. try {
  34046. return decodeURIComponent(m);
  34047. } catch (k) {
  34048. return String.fromCharCode(65533);
  34049. }
  34050. }
  34051. function a7(k, m) {
  34052. var e = this;
  34053. return m || (r0(void 0 !== k && y3U.F6I(null, k), "missing offset"), r0(y3U.M6I(k, e.length), "Trying to read beyond buffer length")),
  34054. y3U.n6I(k, e.length) ? void 0 : e[k];
  34055. }
  34056. function Q0(k, m, e, o) {
  34057. o || (r0("boolean" == typeof e, "missing or invalid endian"), r0(void 0 !== m && y3U.b8I(null, m), "missing offset"), r0(y3U.j8I(m + 3, k.length), "Trying to read beyond buffer length"));
  34058. var n = k.length;
  34059. if (!(y3U.d8I(m, n))) {
  34060. if (y3U.c8I(m + 3, n)) {
  34061. for (var u = new T7(new m7(4)), q = 0; y3U.s8I(n, q + m); q++)
  34062. u.setUint8(q, k[q + m]);
  34063. return u.getInt32(0, e);
  34064. }
  34065. return k._dataview.getInt32(m, e);
  34066. }
  34067. }
  34068. function W7(k) {
  34069. if (void 0 === x7 && (x7 = D7()), x7)
  34070. return k.write = H7, k.toString = S7, k.toLocaleString = S7, k.toJSON = W0, k.copy = v0, k.slice = n0, k.readUInt8 = a7, k.readUInt16LE = C7, k.readUInt16BE = h0, k.readUInt32LE = G7, k.readUInt32BE = J0, k.readInt8 = w0, k.readInt16LE = n7, k.readInt16BE = J7, k.readInt32LE = N0, k.readInt32BE = t0, k.readFloatLE = u7, k.readFloatBE = I0, k.readDoubleLE = m0, k.readDoubleBE = g0, k.writeUInt8 = A7, k.writeUInt16LE = i0, k.writeUInt16BE = L0, k.writeUInt32LE = E7, k.writeUInt32BE = N7, k.writeInt8 = R0, k.writeInt16LE = k7, k.writeInt16BE = Y0, k.writeInt32LE = C0, k.writeInt32BE = $, k.writeFloatLE = h7, k.writeFloatBE = e0, k.writeDoubleLE = b0, k.writeDoubleBE = P0, k.fill = j0, k.inspect = Z0, k.toArrayBuffer = S0, k._isBuffer = !0, y3U.A3e(0, k.byteLength) && (k._dataview = new T7(k.buffer, k.byteOffset, k.byteLength)), k;
  34071. var m = new F0(k),
  34072. e = new Proxy(m, P7);
  34073. return m._proxy = e,
  34074. e;
  34075. }
  34076. function J7(k, m) {
  34077. return L7(this, k, !1, m);
  34078. }
  34079. function c0(k, m) {
  34080. var e = function () {
  34081. u[q] = c0.isBuffer(k) ? k.readUInt8(q) : k[q];
  34082. },
  34083. o = typeof k;
  34084. if (y3U.a2I("base64", m) && y3U.W2I("string", o))
  34085. for (k = D0(k); y3U.m2I(k.length % 4, 0); )
  34086. k += "=";
  34087. var n;
  34088. if (y3U.A2I("number", o))
  34089. n = A0(k);
  34090. else if (y3U.w2I("string", o))
  34091. n = c0.byteLength(k, m);
  34092. else {
  34093. if (y3U.E2I("object", o))
  34094. throw new Error("First argument needs to be a number, array or string.");
  34095. n = A0(k.length);
  34096. }
  34097. var u = W7(new p7(n));
  34098. if (c0.isBuffer(k))
  34099. u.set(k);
  34100. else if (K0(k))
  34101. for (var q = 0; y3U.e2I(n, q); q++)
  34102. e();
  34103. else
  34104. y3U.g2I("string", o) && u.write(k, 0, m);
  34105. return u;
  34106. }
  34107. function H7(k, m, e, o) {
  34108. var n = function () {
  34109. m = Number(m) || 0;
  34110. };
  34111. if (isFinite(m))
  34112. isFinite(e) || (o = e, e = void 0);
  34113. else {
  34114. var u = o;
  34115. o = m,
  34116. m = e,
  34117. e = u;
  34118. }
  34119. n();
  34120. var q = y3U.V2I(this.length, m);
  34121. switch (e ? (e = Number(e), y3U.k1I(e, q) && (e = q)) : e = q, o = String(o || "utf8").toLowerCase()) {
  34122. case "hex":
  34123. return j7(this, k, m, e);
  34124. case "utf8":
  34125. case "utf-8":
  34126. return o0(this, k, m, e);
  34127. case "ascii":
  34128. return V0(this, k, m, e);
  34129. case "binary":
  34130. return i(this, k, m, e);
  34131. case "base64":
  34132. return v7(this, k, m, e);
  34133. default:
  34134. throw new Error("Unknown encoding");
  34135. }
  34136. }
  34137. function I7(k, m, e) {
  34138. var o = k.slice(m, e);
  34139. return a0("base64-js").fromByteArray(o);
  34140. }
  34141. function N7(k, m, e) {
  34142. U7(this, k, m, !1, e);
  34143. }
  34144. function L7(k, m, e, o) {
  34145. o || (r0("boolean" == typeof e, "missing or invalid endian"), r0(void 0 !== m && y3U.y8I(null, m), "missing offset"), r0(y3U.o8I(m + 1, k.length), "Trying to read beyond buffer length"));
  34146. var n = k.length;
  34147. if (!(y3U.x8I(m, n))) {
  34148. if (y3U.p8I(m + 1, n)) {
  34149. var u = new T7(new m7(2));
  34150. return u.setUint8(0, k[y3U.q8I(n, 1)]),
  34151. u.getInt16(0, e);
  34152. }
  34153. return k._dataview.getInt16(m, e);
  34154. }
  34155. }
  34156. function t7(k, m, e, o) {
  34157. o || (r0("boolean" == typeof e, "missing or invalid endian"), r0(void 0 !== m && y3U.Y6I(null, m), "missing offset"), r0(y3U.U8I(m + 3, k.length), "Trying to read beyond buffer length"));
  34158. var n = k.length;
  34159. if (!(y3U.T8I(m, n))) {
  34160. if (y3U.S8I(m + 3, n)) {
  34161. for (var u = new T7(new m7(4)), q = 0; y3U.I8I(n, q + m); q++)
  34162. u.setUint8(q, k[q + m]);
  34163. return u.getUint32(0, e);
  34164. }
  34165. return k._dataview.getUint32(m, e);
  34166. }
  34167. }
  34168. function w7(k) {
  34169. return y3U.r3e(16, k) ? "0" + k.toString(16) : k.toString(16);
  34170. }
  34171. function E7(k, m, e) {
  34172. U7(this, k, m, !0, e);
  34173. }
  34174. function g7(k, m, e) {
  34175. return "number" != typeof k ? e : (k = ~~k, y3U.w3e(k, m) ? m : y3U.E3e(k, 0) ? k : (k += m, y3U.e3e(k, 0) ? k : 0));
  34176. }
  34177. function h7(k, m, e) {
  34178. f0(this, k, m, !0, e);
  34179. }
  34180. function y7(k) {
  34181. for (var m = [], e = 0; y3U.i3e(e, k.length); e++)
  34182. if (y3U.u3e(k.charCodeAt(e), 127))
  34183. m.push(k.charCodeAt(e));
  34184. else
  34185. for (var o = encodeURIComponent(k.charAt(e)).substr(1).split("%"), n = 0; y3U.P3e(n, o.length); n++)
  34186. m.push(parseInt(o[n], 16));
  34187. return m;
  34188. }
  34189. function f7(k, m, e) {
  34190. for (var o = k.slice(m, e), n = "", u = "", q = 0; y3U.G6I(q, o.length); )
  34191. y3U.N6I(o[q], 127) ? (n += X0(u) + String.fromCharCode(o[q]), u = "") : u += "%" + o[q].toString(16), q++;
  34192. return n + X0(u);
  34193. }
  34194. function r7(k, m, e, o, n) {
  34195. n || (r0(void 0 !== m && y3U.I4e(null, m), "missing value"), r0("boolean" == typeof o, "missing or invalid endian"), r0(void 0 !== e && y3U.C4e(null, e), "missing offset"), r0(y3U.v4e(e + 7, k.length), "Trying to write beyond buffer length"), M0(m, 1.7976931348623157e308, -1.7976931348623157e308));
  34196. var u = k.length;
  34197. if (!(y3U.t4e(e, u)))
  34198. if (y3U.y4e(e + 7, u)) {
  34199. var q = new T7(new m7(8));
  34200. q.setFloat64(0, m, o);
  34201. for (var f = 0; y3U.o4e(u, f + e); f++)
  34202. k[f + e] = q.getUint8(f);
  34203. } else
  34204. k._dataview.setFloat64(e, m, o);
  34205. }
  34206. function o7(k, m, e) {
  34207. r0("number" == typeof k, "cannot write a non-number as a number"),
  34208. r0(y3U.L9e(m, k), "value larger than maximum allowed value"),
  34209. r0(y3U.z9e(k, e), "value smaller than minimum allowed value"),
  34210. r0(y3U.J9e(Math.floor(k), k), "value has a fractional component");
  34211. }
  34212. function i7(k, m, e, o, n) {
  34213. n || (r0(void 0 !== m && y3U.F7e(null, m), "missing value"), r0("boolean" == typeof o, "missing or invalid endian"), r0(void 0 !== e && y3U.M7e(null, e), "missing offset"), r0(y3U.n7e(e + 3, k.length), "Trying to write beyond buffer length"), o7(m, 2147483647, -2147483648));
  34214. var u = k.length;
  34215. if (!(y3U.f7e(e, u)))
  34216. if (y3U.K7e(e + 3, u)) {
  34217. var q = new T7(new m7(4));
  34218. q.setInt32(0, m, o);
  34219. for (var f = 0; y3U.B7e(u, f + e); f++)
  34220. k[f + e] = q.getUint8(f);
  34221. } else
  34222. k._dataview.setInt32(e, m, o);
  34223. }
  34224. function q7(k, m, e) {
  34225. var o = k.length;
  34226. (!m || y3U.z6I(0, m)) && (m = 0),
  34227. (!e || y3U.J6I(0, e) || y3U.H6I(e, o)) && (e = o);
  34228. for (var n = "", u = m; y3U.h6I(e, u); u++)
  34229. n += w7(k[u]);
  34230. return n;
  34231. }
  34232. function n7(k, m) {
  34233. return L7(this, k, !0, m);
  34234. }
  34235. function j7(m, e, o, n) {
  34236. var u = function () {
  34237. o = Number(o) || 0;
  34238. };
  34239. u();
  34240. var q = y3U.r2I(m.length, o);
  34241. n ? (n = Number(n), y3U.i2I(n, q) && (n = q)) : n = q;
  34242. var f = e.length;
  34243. if (y3U.u2I(f % 2, 0))
  34244. throw new Error("Invalid hex string");
  34245. y3U.P2I(n, f / 2) && (n = y3U.D2I(f, 2));
  34246. for (var j = 0; y3U.Z2I(n, j); j++) {
  34247. var U0 = function (k) {
  34248. m[o + j] = k;
  34249. };
  34250. var k0 = parseInt(e.substr(y3U.R2I(2, j), 2), 16);
  34251. if (isNaN(k0))
  34252. throw new Error("Invalid hex string");
  34253. U0(k0);
  34254. }
  34255. return c0._charsWritten = y3U.O2I(2, j),
  34256. j;
  34257. }
  34258. function D7() {
  34259. var m = new p7(0);
  34260. m.foo = function () {
  34261. return 42;
  34262. };
  34263. try {
  34264. return y3U.W3e(42, m.foo());
  34265. } catch (k) {
  34266. return !1;
  34267. }
  34268. }
  34269. function u7(k, m) {
  34270. return q0(this, k, !0, m);
  34271. }
  34272. function B7(k, m, e) {
  34273. return z0(k, m, e);
  34274. }
  34275. function r0(k, m) {
  34276. if (!k)
  34277. throw new Error(m || "Failed assertion");
  34278. }
  34279. var M7 = a0("typedarray"),
  34280. T7 = "undefined" == typeof DataView ? M7.DataView : DataView,
  34281. m7 = "undefined" == typeof ArrayBuffer ? M7.ArrayBuffer : ArrayBuffer,
  34282. p7 = "undefined" == typeof Uint8Array ? M7.Uint8Array : Uint8Array;
  34283. G0.Buffer = c0,
  34284. G0.SlowBuffer = c0,
  34285. G0.INSPECT_MAX_BYTES = 50,
  34286. c0.poolSize = 8192;
  34287. var x7;
  34288. c0.isEncoding = function (k) {
  34289. switch ((k + "").toLowerCase()) {
  34290. case "hex":
  34291. case "utf8":
  34292. case "utf-8":
  34293. case "ascii":
  34294. case "binary":
  34295. case "base64":
  34296. case "ucs2":
  34297. case "ucs-2":
  34298. case "utf16le":
  34299. case "utf-16le":
  34300. case "raw":
  34301. return !0;
  34302. default:
  34303. return !1;
  34304. }
  34305. },
  34306. c0.isBuffer = function (k) {
  34307. return k && k._isBuffer;
  34308. },
  34309. c0.byteLength = function (k, m) {
  34310. switch (m || "utf8") {
  34311. case "hex":
  34312. return y3U.F9e(k.length, 2);
  34313. case "utf8":
  34314. case "utf-8":
  34315. return y7(k).length;
  34316. case "ascii":
  34317. case "binary":
  34318. return k.length;
  34319. case "base64":
  34320. return u0(k).length;
  34321. default:
  34322. throw new Error("Unknown encoding");
  34323. }
  34324. },
  34325. c0.concat = function (k, m) {
  34326. if (!Array.isArray(k))
  34327. throw new Error("Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");
  34328. var e,
  34329. o;
  34330. if (y3U.M9e(0, k.length))
  34331. return new c0(0);
  34332. if (y3U.n9e(1, k.length))
  34333. return k[0];
  34334. if ("number" != typeof m)
  34335. for (m = 0, e = 0; y3U.f9e(e, k.length); e++)
  34336. o = k[e], m += o.length;
  34337. var n = new c0(m),
  34338. u = 0;
  34339. for (e = 0; y3U.K9e(e, k.length); e++)
  34340. o = k[e], o.copy(n, u), u += o.length;
  34341. return n;
  34342. },
  34343. F0.prototype.write = H7,
  34344. F0.prototype.toString = S7,
  34345. F0.prototype.toLocaleString = S7,
  34346. F0.prototype.toJSON = W0,
  34347. F0.prototype.copy = v0,
  34348. F0.prototype.slice = n0,
  34349. F0.prototype.readUInt8 = a7,
  34350. F0.prototype.readUInt16LE = C7,
  34351. F0.prototype.readUInt16BE = h0,
  34352. F0.prototype.readUInt32LE = G7,
  34353. F0.prototype.readUInt32BE = J0,
  34354. F0.prototype.readInt8 = w0,
  34355. F0.prototype.readInt16LE = n7,
  34356. F0.prototype.readInt16BE = J7,
  34357. F0.prototype.readInt32LE = N0,
  34358. F0.prototype.readInt32BE = t0,
  34359. F0.prototype.readFloatLE = u7,
  34360. F0.prototype.readFloatBE = I0,
  34361. F0.prototype.readDoubleLE = m0,
  34362. F0.prototype.readDoubleBE = g0,
  34363. F0.prototype.writeUInt8 = A7,
  34364. F0.prototype.writeUInt16LE = i0,
  34365. F0.prototype.writeUInt16BE = L0,
  34366. F0.prototype.writeUInt32LE = E7,
  34367. F0.prototype.writeUInt32BE = N7,
  34368. F0.prototype.writeInt8 = R0,
  34369. F0.prototype.writeInt16LE = k7,
  34370. F0.prototype.writeInt16BE = Y0,
  34371. F0.prototype.writeInt32LE = C0,
  34372. F0.prototype.writeInt32BE = $,
  34373. F0.prototype.writeFloatLE = h7,
  34374. F0.prototype.writeFloatBE = e0,
  34375. F0.prototype.writeDoubleLE = b0,
  34376. F0.prototype.writeDoubleBE = P0,
  34377. F0.prototype.fill = j0,
  34378. F0.prototype.inspect = Z0,
  34379. F0.prototype.toArrayBuffer = S0,
  34380. F0.prototype._isBuffer = !0,
  34381. F0.prototype.subarray = function () {
  34382. return this._arr.subarray.apply(this._arr, arguments);
  34383. },
  34384. F0.prototype.set = function () {
  34385. return this._arr.set.apply(this._arr, arguments);
  34386. };
  34387. var P7 = {
  34388. get : function (k, m) {
  34389. return y3U.B9e(m, k) ? k[m] : k._arr[m];
  34390. },
  34391. set : function (m, e, o) {
  34392. var n = function (k) {
  34393. m._arr[e] = k;
  34394. };
  34395. n(o);
  34396. }
  34397. };
  34398. }, {
  34399. "base64-js" : 3,
  34400. typedarray : 4
  34401. }
  34402. ],
  34403. "native-buffer-browserify" : [function (k, m) {
  34404. m.exports = k("PcZj9L");
  34405. }, {}
  34406. ],
  34407. 3 : [function (a0, T0) {
  34408. !function () {
  34409. function j(m) {
  34410. function e(k) {
  34411. return k0[y3U.c5e(k >> 18, 63)] + k0[y3U.s5e(k >> 12, 63)] + k0[y3U.Q5e(k >> 6, 63)] + k0[y3U.a2e(63, k)];
  34412. }
  34413. var o,
  34414. n,
  34415. u,
  34416. q = y3U.W2e(m.length, 3),
  34417. f = "";
  34418. for (o = 0, u = y3U.m2e(m.length, q); y3U.A2e(u, o); o += 3)
  34419. n = (y3U.w2e(m[o], 16)) + (y3U.E2e(m[o + 1], 8)) + m[o + 2], f += e(n);
  34420. switch (q) {
  34421. case 1:
  34422. n = m[y3U.e2e(m.length, 1)],
  34423. f += k0[y3U.g2e(n, 2)],
  34424. f += k0[y3U.r2e(n << 4, 63)],
  34425. f += "==";
  34426. break;
  34427. case 2:
  34428. n = (y3U.i2e(m[m.length - 2], 8)) + m[y3U.u2e(m.length, 1)],
  34429. f += k0[y3U.P2e(n, 10)],
  34430. f += k0[y3U.D2e(n >> 4, 63)],
  34431. f += k0[y3U.Z2e(n << 2, 63)],
  34432. f += "=";
  34433. }
  34434. return f;
  34435. }
  34436. function U0(k) {
  34437. var m,
  34438. e,
  34439. o,
  34440. n,
  34441. u,
  34442. q;
  34443. if (y3U.l9e(k.length % 4, 0))
  34444. throw "Invalid string. Length must be a multiple of 4";
  34445. for (u = k.indexOf("="), u = y3U.X9e(u, 0) ? y3U.Y9e(k.length, u) : 0, q = [], o = y3U.U5e(u, 0) ? y3U.T5e(k.length, 4) : k.length, m = 0, e = 0; y3U.S5e(o, m); m += 4, e += 3)
  34446. n = y3U.I5e(k0.indexOf(k[m]) << 18, k0.indexOf(k[m + 1]) << 12, k0.indexOf(k[m + 2]) << 6, k0.indexOf(k[m + 3])), q.push(y3U.w5e((16711680 & n), 16)), q.push(y3U.E5e((65280 & n), 8)), q.push(y3U.e5e(255, n));
  34447. return y3U.g5e(2, u) ? (n = y3U.r5e(k0.indexOf(k[m]) << 2, k0.indexOf(k[m + 1]) >> 4), q.push(y3U.i5e(255, n))) : y3U.u5e(1, u) && (n = y3U.P5e(k0.indexOf(k[m]) << 10, k0.indexOf(k[m + 1]) << 4, k0.indexOf(k[m + 2]) >> 2), q.push(y3U.j5e(n >> 8, 255)), q.push(y3U.d5e(255, n))),
  34448. q;
  34449. }
  34450. "use strict";
  34451. var k0 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  34452. T0.exports.toByteArray = U0,
  34453. T0.exports.fromByteArray = j;
  34454. }
  34455. ();
  34456. }, {}
  34457. ],
  34458. 4 : [function (M0, p0, e0) {
  34459. function F0(k) {
  34460. return [y3U.j1e(k >> 8, 255), y3U.d1e(255, k)];
  34461. }
  34462. function P0(k) {
  34463. return f0(k, 11, 52);
  34464. }
  34465. function O0(k) {
  34466. return l0(k, 11, 52);
  34467. }
  34468. function b0(k) {
  34469. return o0(y3U.c1e(k[0] << 8, k[1]), 16);
  34470. }
  34471. function d0(k) {
  34472. return [y3U.s1e(k >> 24, 255), y3U.Q1e(k >> 16, 255), y3U.a6e(k >> 8, 255), y3U.W6e(255, k)];
  34473. }
  34474. function l0(o, n, u) {
  34475. function q(k) {
  34476. var m = K0(k),
  34477. e = y3U.p6e(k, m);
  34478. return y3U.q6e(.5, e) ? m : y3U.b6e(e, .5) ? m + 1 : y3U.j6e(m, 2) ? m + 1 : m;
  34479. }
  34480. var f,
  34481. j,
  34482. U0,
  34483. k0,
  34484. a0,
  34485. T0,
  34486. G0,
  34487. W0 = y3U.d6e((1 << n - 1), 1);
  34488. for (y3U.c6e(o, o) ? (j = y3U.s6e((1 << n), 1), U0 = X0(2, y3U.Q6e(u, 1)), f = 0) : y3U.a8e(1 / 0, o) || o === -1 / 0 ? (j = y3U.W8e((1 << n), 1), U0 = 0, f = y3U.m8e(0, o) ? 1 : 0) : y3U.A8e(0, o) ? (j = 0, U0 = 0, f = y3U.w8e(1, o) === -1 / 0 ? 1 : 0) : (f = y3U.E8e(0, o), o = i0(o), y3U.e8e(o, X0(2, 1 - W0)) ? (j = U7(K0(y3U.g8e(S7(o), v7)), 1023), U0 = q(y3U.r8e(o, X0(2, j), X0(2, u))), y3U.p8e(U0 / X0(2, u), 2) && (j += 1, U0 = 1), y3U.q8e(j, W0) ? (j = y3U.b8e((1 << n), 1), U0 = 0) : (j += W0, U0 -= X0(2, u))) : (j = 0, U0 = q(y3U.j8e(o, X0(2, 1 - W0 - u))))), a0 = [], k0 = u; k0; k0 -= 1)
  34489. a0.push(y3U.d8e(U0, 2) ? 1 : 0), U0 = K0(y3U.c8e(U0, 2));
  34490. for (k0 = n; k0; k0 -= 1)
  34491. a0.push(y3U.s8e(j, 2) ? 1 : 0), j = K0(y3U.Q8e(j, 2));
  34492. for (a0.push(f ? 1 : 0), a0.reverse(), T0 = a0.join(""), G0 = []; T0.length; )
  34493. G0.push(parseInt(T0.substring(0, 8), 2)), T0 = T0.substring(8);
  34494. return G0;
  34495. }
  34496. function j0(k) {
  34497. return [y3U.p1e(k >> 8, 255), y3U.q1e(255, k)];
  34498. }
  34499. function Z0(k) {
  34500. return u0(y3U.b1e(k[0] << 8, k[1]), 16);
  34501. }
  34502. function R0(k) {
  34503. return f0(k, 8, 23);
  34504. }
  34505. function q0(k) {
  34506. return [y3U.t1e(255, k)];
  34507. }
  34508. function D0(k) {
  34509. return l0(k, 8, 23);
  34510. }
  34511. function i(k) {
  34512. return k = a7(Number(k)),
  34513. [y3U.y1e(0, k) ? 0 : y3U.o1e(k, 255) ? 255 : y3U.x1e(255, k)];
  34514. }
  34515. function k7(k) {
  34516. return o0(y3U.F6e(k[0] << 24, k[1] << 16, k[2] << 8, k[3]), 32);
  34517. }
  34518. function o0(k, m) {
  34519. var e = y3U.m1e(32, m);
  34520. return y3U.A1e(k, e, e);
  34521. }
  34522. function V0(k) {
  34523. return [y3U.v1e(255, k)];
  34524. }
  34525. function Y0(k) {
  34526. return o0(k[0], 8);
  34527. }
  34528. function C0(k) {
  34529. return u0(y3U.m6e(k[0] << 24, k[1] << 16, k[2] << 8, k[3]), 32);
  34530. }
  34531. function h0(k) {
  34532. return u0(k[0], 8);
  34533. }
  34534. function u0(k, m) {
  34535. var e = y3U.k1e(32, m);
  34536. return y3U.G1e(k, e, e);
  34537. }
  34538. function n0(e) {
  34539. function o(m) {
  34540. Q0(e, m, {
  34541. get : function () {
  34542. return e._getter(m);
  34543. },
  34544. set : function (k) {
  34545. e._setter(m, k);
  34546. },
  34547. enumerable : !0,
  34548. configurable : !1
  34549. });
  34550. }
  34551. if (Q0) {
  34552. if (y3U.O2e(e.length, z7))
  34553. throw new RangeError("Array too large for polyfill");
  34554. var n;
  34555. for (n = 0; y3U.V2e(n, e.length); n += 1)
  34556. o(n);
  34557. }
  34558. }
  34559. function A7(k) {
  34560. return [y3U.z6e(k >> 24, 255), y3U.J6e(k >> 16, 255), y3U.H6e(k >> 8, 255), y3U.h6e(255, k)];
  34561. }
  34562. function f0(k, m, e) {
  34563. var o,
  34564. n,
  34565. u,
  34566. q,
  34567. f,
  34568. j,
  34569. U0,
  34570. k0,
  34571. a0 = [];
  34572. for (o = k.length; o; o -= 1)
  34573. for (u = k[y3U.a0J(o, 1)], n = 8; n; n -= 1)
  34574. a0.push(y3U.W0J(u, 2) ? 1 : 0), u >>= 1;
  34575. return a0.reverse(),
  34576. q = a0.join(""),
  34577. f = y3U.m0J((1 << m - 1), 1),
  34578. j = parseInt(q.substring(0, 1), 2) ? -1 : 1,
  34579. U0 = parseInt(q.substring(1, 1 + m), 2),
  34580. k0 = parseInt(q.substring(1 + m), 2),
  34581. y3U.A0J(U0, (1 << m) - 1) ? y3U.w0J(0, k0) ? y3U.E0J(0, 0) : y3U.e0J(1, 0, j) : y3U.o0J(U0, 0) ? y3U.x0J(j, X0(2, U0 - f), (1 + k0 / X0(2, e))) : y3U.n0J(0, k0) ? j * X0(2, - (y3U.f0J(f, 1))) * (y3U.K0J(k0, X0(2, e))) : y3U.B0J(0, j) ? -0 : 0;
  34582. }
  34583. function G7(k) {
  34584. if (W7 && Q0) {
  34585. var m,
  34586. e = W7(k);
  34587. for (m = 0; y3U.R2e(m, e.length); m += 1)
  34588. Q0(k, e[m], {
  34589. value : k[e[m]],
  34590. writable : !1,
  34591. enumerable : !1,
  34592. configurable : !1
  34593. });
  34594. }
  34595. }
  34596. var C7 = void 0,
  34597. z7 = 1e5,
  34598. B0 = function () {
  34599. var e = Object.prototype.toString,
  34600. o = Object.prototype.hasOwnProperty;
  34601. return {
  34602. Class : function (k) {
  34603. return e.call(k).replace(/^\[object *|\]$/g, "");
  34604. },
  34605. HasProperty : function (k, m) {
  34606. return y3U.l0J(m, k);
  34607. },
  34608. HasOwnProperty : function (k, m) {
  34609. return o.call(k, m);
  34610. },
  34611. IsCallable : function (k) {
  34612. return "function" == typeof k;
  34613. },
  34614. ToInt32 : function (k) {
  34615. return y3U.X0J(k, 0);
  34616. },
  34617. ToUint32 : function (k) {
  34618. return y3U.Y0J(k, 0);
  34619. }
  34620. };
  34621. }
  34622. (),
  34623. v7 = Math.LN2,
  34624. i0 = Math.abs,
  34625. K0 = Math.floor,
  34626. S7 = Math.log,
  34627. U7 = Math.min,
  34628. X0 = Math.pow,
  34629. a7 = Math.round,
  34630. Q0 = Object.defineProperty || function (k, m, e) {
  34631. if (!k === Object(k))
  34632. throw new TypeError("Object.defineProperty called on non-object");
  34633. return B0.HasProperty(e, "get") && Object.prototype.__defineGetter__ && Object.prototype.__defineGetter__.call(k, m, e.get),
  34634. B0.HasProperty(e, "set") && Object.prototype.__defineSetter__ && Object.prototype.__defineSetter__.call(k, m, e.set),
  34635. B0.HasProperty(e, "value") && (k[m] = e.value),
  34636. k;
  34637. },
  34638. W7 = Object.getOwnPropertyNames || function (k) {
  34639. if (y3U.U7J(k, Object(k)))
  34640. throw new TypeError("Object.getOwnPropertyNames called on non-object");
  34641. var m,
  34642. e = [];
  34643. for (m in k)
  34644. B0.HasOwnProperty(k, m) && e.push(m);
  34645. return e;
  34646. };
  34647. !function () {
  34648. var S0 = function () {
  34649. e0.ArrayBuffer = e0.ArrayBuffer || m0;
  34650. };
  34651. function I0(T0, G0, W0) {
  34652. var N0;
  34653. return N0 = function (k, m, e) {
  34654. var o,
  34655. n,
  34656. u,
  34657. q;
  34658. if (arguments.length && "number" != typeof arguments[0])
  34659. if ("object" == typeof arguments[0] && y3U.T7J(arguments[0].constructor, N0))
  34660. for (o = arguments[0], this.length = o.length, this.byteLength = y3U.S7J(this.length, this.BYTES_PER_ELEMENT), this.buffer = new m0(this.byteLength), this.byteOffset = 0, u = 0; y3U.I7J(u, this.length); u += 1)
  34661. this._setter(u, o._getter(u));
  34662. else if ("object" != typeof arguments[0] || (y3U.C7J(arguments[0], m0) || y3U.v7J("ArrayBuffer", B0.Class(arguments[0])))) {
  34663. if ("object" != typeof arguments[0] || !(y3U.t7J(arguments[0], m0) || y3U.y7J("ArrayBuffer", B0.Class(arguments[0]))))
  34664. throw new TypeError("Unexpected argument type(s)");
  34665. if (this.buffer = k, this.byteOffset = B0.ToUint32(m), y3U.o7J(this.byteOffset, this.buffer.byteLength))
  34666. throw new RangeError("byteOffset out of range");
  34667. if (y3U.x7J(this.byteOffset, this.BYTES_PER_ELEMENT))
  34668. throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");
  34669. if (y3U.p7J(arguments.length, 3)) {
  34670. if (this.byteLength = y3U.q7J(this.buffer.byteLength, this.byteOffset), y3U.b7J(this.byteLength, this.BYTES_PER_ELEMENT))
  34671. throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");
  34672. this.length = y3U.j7J(this.byteLength, this.BYTES_PER_ELEMENT);
  34673. } else
  34674. this.length = B0.ToUint32(e), this.byteLength = y3U.d7J(this.length, this.BYTES_PER_ELEMENT);
  34675. if (y3U.c7J(this.byteOffset + this.byteLength, this.buffer.byteLength))
  34676. throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");
  34677. } else
  34678. for (n = arguments[0], this.length = B0.ToUint32(n.length), this.byteLength = y3U.s7J(this.length, this.BYTES_PER_ELEMENT), this.buffer = new m0(this.byteLength), this.byteOffset = 0, u = 0; y3U.Q7J(u, this.length); u += 1)
  34679. q = n[u], this._setter(u, Number(q));
  34680. else {
  34681. if (this.length = B0.ToInt32(arguments[0]), y3U.a4J(0, e))
  34682. throw new RangeError("ArrayBufferView size is not a small enough positive integer");
  34683. this.byteLength = y3U.W4J(this.length, this.BYTES_PER_ELEMENT),
  34684. this.buffer = new m0(this.byteLength),
  34685. this.byteOffset = 0;
  34686. }
  34687. this.constructor = N0,
  34688. G7(this),
  34689. n0(this);
  34690. },
  34691. N0.prototype = new A0,
  34692. N0.prototype.BYTES_PER_ELEMENT = T0,
  34693. N0.prototype._pack = G0,
  34694. N0.prototype._unpack = W0,
  34695. N0.BYTES_PER_ELEMENT = T0,
  34696. N0.prototype._getter = function (k) {
  34697. if (y3U.m4J(arguments.length, 1))
  34698. throw new SyntaxError("Not enough arguments");
  34699. if (k = B0.ToUint32(k), y3U.A4J(k, this.length))
  34700. return C7;
  34701. var m,
  34702. e,
  34703. o = [];
  34704. for (m = 0, e = this.byteOffset + y3U.w4J(k, this.BYTES_PER_ELEMENT); y3U.E4J(m, this.BYTES_PER_ELEMENT); m += 1, e += 1)
  34705. o.push(this.buffer._bytes[e]);
  34706. return this._unpack(o);
  34707. },
  34708. N0.prototype.get = N0.prototype._getter,
  34709. N0.prototype._setter = function (k, m) {
  34710. if (y3U.e4J(arguments.length, 2))
  34711. throw new SyntaxError("Not enough arguments");
  34712. if (k = B0.ToUint32(k), y3U.g4J(k, this.length))
  34713. return C7;
  34714. var e,
  34715. o,
  34716. n = this._pack(m);
  34717. for (e = 0, o = this.byteOffset + y3U.r4J(k, this.BYTES_PER_ELEMENT); y3U.i4J(e, this.BYTES_PER_ELEMENT); e += 1, o += 1)
  34718. this.buffer._bytes[o] = n[e];
  34719. },
  34720. N0.prototype.set = function () {
  34721. if (y3U.u4J(arguments.length, 1))
  34722. throw new SyntaxError("Not enough arguments");
  34723. var m,
  34724. e,
  34725. o,
  34726. n,
  34727. u,
  34728. q,
  34729. f,
  34730. j,
  34731. U0,
  34732. k0;
  34733. if ("object" == typeof arguments[0] && y3U.P4J(arguments[0].constructor, this.constructor)) {
  34734. if (m = arguments[0], o = B0.ToUint32(arguments[1]), y3U.D4J(o + m.length, this.length))
  34735. throw new RangeError("Offset plus length of array is out of range");
  34736. if (j = this.byteOffset + y3U.Z4J(o, this.BYTES_PER_ELEMENT), U0 = y3U.R4J(m.length, this.BYTES_PER_ELEMENT), y3U.O4J(m.buffer, this.buffer)) {
  34737. var a0 = function (k) {
  34738. k0[u] = k.buffer._bytes[q];
  34739. };
  34740. for (k0 = [], u = 0, q = m.byteOffset; y3U.V4J(U0, u); u += 1, q += 1)
  34741. a0(m);
  34742. for (u = 0, f = j; y3U.k3J(U0, u); u += 1, f += 1)
  34743. this.buffer._bytes[f] = k0[u];
  34744. } else
  34745. for (u = 0, q = m.byteOffset, f = j; y3U.G3J(U0, u); u += 1, q += 1, f += 1)
  34746. this.buffer._bytes[f] = m.buffer._bytes[q];
  34747. } else {
  34748. if ("object" != typeof arguments[0] || "undefined" == typeof arguments[0].length)
  34749. throw new TypeError("Unexpected argument type(s)");
  34750. if (e = arguments[0], n = B0.ToUint32(e.length), o = B0.ToUint32(arguments[1]), y3U.N3J(o + n, this.length))
  34751. throw new RangeError("Offset plus length of array is out of range");
  34752. for (u = 0; y3U.L3J(n, u); u += 1)
  34753. q = e[u], this._setter(o + u, Number(q));
  34754. }
  34755. },
  34756. N0.prototype.subarray = function (o, n) {
  34757. function u(k, m, e) {
  34758. return y3U.z3J(m, k) ? m : y3U.J3J(k, e) ? e : k;
  34759. }
  34760. o = B0.ToInt32(o),
  34761. n = B0.ToInt32(n),
  34762. y3U.H3J(arguments.length, 1) && (o = 0),
  34763. y3U.h3J(arguments.length, 2) && (n = this.length),
  34764. y3U.F3J(0, o) && (o = this.length + o),
  34765. y3U.M3J(0, n) && (n = this.length + n),
  34766. o = u(o, 0, this.length),
  34767. n = u(n, 0, this.length);
  34768. var q = y3U.n3J(n, o);
  34769. return y3U.f3J(0, q) && (q = 0),
  34770. new this.constructor(this.buffer, this.byteOffset + y3U.K3J(o, this.BYTES_PER_ELEMENT), q);
  34771. },
  34772. N0;
  34773. }
  34774. var m0 = function (k) {
  34775. if (k = B0.ToInt32(k), y3U.B3J(0, k))
  34776. throw new RangeError("ArrayBuffer size is not a small enough positive integer");
  34777. this.byteLength = k,
  34778. this._bytes = [],
  34779. this._bytes.length = k;
  34780. var m;
  34781. for (m = 0; y3U.l3J(m, this.byteLength); m += 1)
  34782. this._bytes[m] = 0;
  34783. G7(this);
  34784. };
  34785. S0();
  34786. var A0 = function () {},
  34787. L0 = I0(1, V0, h0),
  34788. z0 = I0(1, q0, Y0),
  34789. E0 = I0(1, i, Y0),
  34790. v0 = I0(2, j0, Z0),
  34791. J0 = I0(2, F0, b0),
  34792. t0 = I0(4, d0, C0),
  34793. w0 = I0(4, A7, k7),
  34794. g0 = I0(4, D0, R0),
  34795. H0 = I0(8, O0, P0);
  34796. e0.Int8Array = e0.Int8Array || L0,
  34797. e0.Uint8Array = e0.Uint8Array || z0,
  34798. e0.Uint8ClampedArray = e0.Uint8ClampedArray || E0,
  34799. e0.Int16Array = e0.Int16Array || v0,
  34800. e0.Uint16Array = e0.Uint16Array || J0,
  34801. e0.Int32Array = e0.Int32Array || t0,
  34802. e0.Uint32Array = e0.Uint32Array || w0,
  34803. e0.Float32Array = e0.Float32Array || g0,
  34804. e0.Float64Array = e0.Float64Array || H0;
  34805. }
  34806. (),
  34807. function () {
  34808. function U0(j) {
  34809. return function (k, m, e) {
  34810. if (k = B0.ToUint32(k), y3U.T9J(k + j.BYTES_PER_ELEMENT, this.byteLength))
  34811. throw new RangeError("Array index out of range");
  34812. var o,
  34813. n,
  34814. u = new j([m]),
  34815. q = new Uint8Array(u.buffer),
  34816. f = [];
  34817. for (o = 0; y3U.S9J(o, j.BYTES_PER_ELEMENT); o += 1)
  34818. f.push(a0(q, o));
  34819. y3U.I9J(Boolean(e), Boolean(T0)) && f.reverse(),
  34820. n = new Uint8Array(this.buffer, k, j.BYTES_PER_ELEMENT),
  34821. n.set(f);
  34822. };
  34823. }
  34824. function k0(u) {
  34825. return function (k, m) {
  34826. if (k = B0.ToUint32(k), y3U.X3J(k + u.BYTES_PER_ELEMENT, this.byteLength))
  34827. throw new RangeError("Array index out of range");
  34828. k += this.byteOffset;
  34829. var e,
  34830. o = new Uint8Array(this.buffer, k, u.BYTES_PER_ELEMENT),
  34831. n = [];
  34832. for (e = 0; y3U.Y3J(e, u.BYTES_PER_ELEMENT); e += 1)
  34833. n.push(a0(o, e));
  34834. return y3U.U9J(Boolean(m), Boolean(T0)) && n.reverse(),
  34835. a0(new u(new Uint8Array(n).buffer), 0);
  34836. };
  34837. }
  34838. function a0(k, m) {
  34839. return B0.IsCallable(k.get) ? k.get(m) : k[m];
  34840. }
  34841. var T0 = function () {
  34842. var k = new e0.Uint16Array([4660]),
  34843. m = new e0.Uint8Array(k.buffer);
  34844. return y3U.C9J(18, a0(m, 0));
  34845. }
  34846. (),
  34847. G0 = function (k, m, e) {
  34848. if (y3U.v9J(0, arguments.length))
  34849. k = new ArrayBuffer(0);
  34850. else if (!(y3U.t9J(k, ArrayBuffer) || y3U.y9J("ArrayBuffer", B0.Class(k))))
  34851. throw new TypeError("TypeError");
  34852. if (this.buffer = k || new ArrayBuffer(0), this.byteOffset = B0.ToUint32(m), y3U.o9J(this.byteOffset, this.buffer.byteLength))
  34853. throw new RangeError("byteOffset out of range");
  34854. if (this.byteLength = y3U.x9J(arguments.length, 3) ? y3U.p9J(this.buffer.byteLength, this.byteOffset) : B0.ToUint32(e), y3U.q9J(this.byteOffset + this.byteLength, this.buffer.byteLength))
  34855. throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");
  34856. G7(this);
  34857. };
  34858. G0.prototype.getUint8 = k0(e0.Uint8Array),
  34859. G0.prototype.getInt8 = k0(e0.Int8Array),
  34860. G0.prototype.getUint16 = k0(e0.Uint16Array),
  34861. G0.prototype.getInt16 = k0(e0.Int16Array),
  34862. G0.prototype.getUint32 = k0(e0.Uint32Array),
  34863. G0.prototype.getInt32 = k0(e0.Int32Array),
  34864. G0.prototype.getFloat32 = k0(e0.Float32Array),
  34865. G0.prototype.getFloat64 = k0(e0.Float64Array),
  34866. G0.prototype.setUint8 = U0(e0.Uint8Array),
  34867. G0.prototype.setInt8 = U0(e0.Int8Array),
  34868. G0.prototype.setUint16 = U0(e0.Uint16Array),
  34869. G0.prototype.setInt16 = U0(e0.Int16Array),
  34870. G0.prototype.setUint32 = U0(e0.Uint32Array),
  34871. G0.prototype.setInt32 = U0(e0.Int32Array),
  34872. G0.prototype.setFloat32 = U0(e0.Float32Array),
  34873. G0.prototype.setFloat64 = U0(e0.Float64Array),
  34874. e0.DataView = e0.DataView || G0;
  34875. }
  34876. ();
  34877. }, {}
  34878. ]
  34879. }, {}, []),
  34880. K7.exports = e7("native-buffer-browserify").Buffer;
  34881. }, {}
  34882. ],
  34883. 2 : [function (u, q) {
  34884. var f = q.exports = {};
  34885. f.nextTick = function () {
  34886. var e = "undefined" != typeof window && r2w8n[E8n].setImmediate,
  34887. o = "undefined" != typeof window && r2w8n[E8n]['postMessage'] && r2w8n[E8n]['addEventListener'];
  34888. if (e)
  34889. return function (k) {
  34890. return r2w8n[E8n].setImmediate(k);
  34891. };
  34892. if (o) {
  34893. var n = [];
  34894. return r2w8n[E8n]['addEventListener']("message", function (k) {
  34895. if (y3U.b9J(k.source, window) && y3U.j9J("process-tick", k.data) && (k.stopPropagation(), y3U.d9J(n.length, 0))) {
  34896. var m = n.shift();
  34897. m();
  34898. }
  34899. }, !0),
  34900. function (k) {
  34901. n.push(k),
  34902. r2w8n[E8n]['postMessage']("process-tick", "*");
  34903. };
  34904. }
  34905. return function (k) {
  34906. setTimeout(k, 0);
  34907. };
  34908. }
  34909. (),
  34910. f.title = "browser",
  34911. f.browser = !0,
  34912. f.env = {},
  34913. f.argv = [],
  34914. f.binding = function () {
  34915. throw new Error("process.binding is not supported");
  34916. },
  34917. f.cwd = function () {
  34918. return "/";
  34919. },
  34920. f.chdir = function () {
  34921. throw new Error("process.chdir is not supported");
  34922. };
  34923. }, {}
  34924. ],
  34925. 3 : [function (T0, G0) {
  34926. function W0() {}
  34927. var N0 = (T0("__browserify_process"), T0("__browserify_Buffer"), T0("./Scalar"));
  34928. G0.exports = W0,
  34929. W0.lineInt = function (k, m, e) {
  34930. var o = function () {
  34931. e = e || 0;
  34932. };
  34933. o();
  34934. var n,
  34935. u,
  34936. q,
  34937. f,
  34938. j,
  34939. U0,
  34940. k0,
  34941. a0 = [0, 0];
  34942. return n = y3U.c9J(k[1][1], k[0][1]),
  34943. u = y3U.s9J(k[0][0], k[1][0]),
  34944. q = y3U.Q9J(n, k[0][0]) + y3U.a5J(u, k[0][1]),
  34945. f = y3U.W5J(m[1][1], m[0][1]),
  34946. j = y3U.m5J(m[0][0], m[1][0]),
  34947. U0 = y3U.A5J(f, m[0][0]) + y3U.w5J(j, m[0][1]),
  34948. k0 = y3U.E5J(n * j, f * u),
  34949. N0.eq(k0, 0, e) || (a0[0] = y3U.e5J((j * q - u * U0), k0), a0[1] = y3U.g5J((n * U0 - f * q), k0)),
  34950. a0;
  34951. },
  34952. W0.segmentsIntersect = function (k, m, e, o) {
  34953. var n = y3U.r5J(m[0], k[0]),
  34954. u = y3U.i5J(m[1], k[1]),
  34955. q = y3U.u5J(o[0], e[0]),
  34956. f = y3U.P5J(o[1], e[1]);
  34957. if (y3U.D5J(q * u - f * n, 0))
  34958. return !1;
  34959. var j = y3U.Z5J((n * (e[1] - k[1]) + u * (k[0] - e[0])), (q * u - f * n)),
  34960. U0 = y3U.R5J((q * (k[1] - e[1]) + f * (e[0] - k[0])), (f * n - q * u));
  34961. return y3U.O5J(j, 0) && y3U.V5J(1, j) && y3U.k2J(U0, 0) && y3U.G2J(1, U0);
  34962. };
  34963. }, {
  34964. "./Scalar" : 6,
  34965. __browserify_Buffer : 1,
  34966. __browserify_process : 2
  34967. }
  34968. ],
  34969. 4 : [function (k0, a0) {
  34970. function T0() {}
  34971. k0("__browserify_process"),
  34972. k0("__browserify_Buffer");
  34973. a0.exports = T0,
  34974. T0.area = function (k, m, e) {
  34975. return y3U.N2J((m[0] - k[0]) * (e[1] - k[1]), (e[0] - k[0]) * (m[1] - k[1]));
  34976. },
  34977. T0.left = function (k, m, e) {
  34978. return y3U.L2J(T0.area(k, m, e), 0);
  34979. },
  34980. T0.leftOn = function (k, m, e) {
  34981. return y3U.z2J(T0.area(k, m, e), 0);
  34982. },
  34983. T0.right = function (k, m, e) {
  34984. return y3U.J2J(T0.area(k, m, e), 0);
  34985. },
  34986. T0.rightOn = function (k, m, e) {
  34987. return y3U.H2J(T0.area(k, m, e), 0);
  34988. };
  34989. var G0 = [],
  34990. W0 = [];
  34991. T0.collinear = function (k, m, e, o) {
  34992. if (o) {
  34993. var n = G0,
  34994. u = W0;
  34995. n[0] = y3U.h2J(m[0], k[0]),
  34996. n[1] = y3U.F2J(m[1], k[1]),
  34997. u[0] = y3U.M2J(e[0], m[0]),
  34998. u[1] = y3U.n2J(e[1], m[1]);
  34999. var q = y3U.f2J(n[0], u[0]) + y3U.K2J(n[1], u[1]),
  35000. f = Math.sqrt(y3U.B2J(n[0], n[0]) + y3U.l2J(n[1], n[1])),
  35001. j = Math.sqrt(y3U.X2J(u[0], u[0]) + y3U.Y2J(u[1], u[1])),
  35002. U0 = Math.acos(y3U.U1J(q, (f * j)));
  35003. return y3U.T1J(o, U0);
  35004. }
  35005. return y3U.S1J(0, T0.area(k, m, e));
  35006. },
  35007. T0.sqdist = function (k, m) {
  35008. var e = y3U.I1J(m[0], k[0]),
  35009. o = y3U.C1J(m[1], k[1]);
  35010. return y3U.v1J(e, e) + y3U.t1J(o, o);
  35011. };
  35012. }, {
  35013. __browserify_Buffer : 1,
  35014. __browserify_process : 2
  35015. }
  35016. ],
  35017. 5 : [function (E0, v0) {
  35018. function J0(k, m, e, o, n) {
  35019. var u = function () {
  35020. n = n || 0;
  35021. };
  35022. u();
  35023. var q = y3U.y1J(m[1], k[1]),
  35024. f = y3U.o1J(k[0], m[0]),
  35025. j = y3U.x1J(q, k[0]) + y3U.p1J(f, k[1]),
  35026. U0 = y3U.q1J(o[1], e[1]),
  35027. k0 = y3U.b1J(e[0], o[0]),
  35028. a0 = y3U.j1J(U0, e[0]) + y3U.d1J(k0, e[1]),
  35029. T0 = y3U.c1J(q * k0, U0 * f);
  35030. return H0.eq(T0, 0, n) ? [0, 0] : [y3U.s1J((k0 * j - f * a0), T0), y3U.Q1J((q * a0 - U0 * j), T0)];
  35031. }
  35032. function t0() {
  35033. this.vertices = [];
  35034. }
  35035. var w0 = (E0("__browserify_process"), E0("__browserify_Buffer"), E0("./Line")),
  35036. g0 = E0("./Point"),
  35037. H0 = E0("./Scalar");
  35038. v0.exports = t0,
  35039. t0.prototype.at = function (k) {
  35040. var m = this.vertices,
  35041. e = m.length;
  35042. return m[y3U.a6J(0, k) ? y3U.W6J(k, e) + e : y3U.m6J(k, e)];
  35043. },
  35044. t0.prototype.first = function () {
  35045. return this.vertices[0];
  35046. },
  35047. t0.prototype.last = function () {
  35048. return this.vertices[y3U.A6J(this.vertices.length, 1)];
  35049. },
  35050. t0.prototype.clear = function () {
  35051. this.vertices.length = 0;
  35052. },
  35053. t0.prototype.append = function (k, m, e) {
  35054. if ("undefined" == typeof m)
  35055. throw new Error("From is not given!");
  35056. if ("undefined" == typeof e)
  35057. throw new Error("To is not given!");
  35058. if (y3U.w6J(m, e - 1))
  35059. throw new Error("lol1");
  35060. if (y3U.E6J(e, k.vertices.length))
  35061. throw new Error("lol2");
  35062. if (y3U.e6J(0, m))
  35063. throw new Error("lol3");
  35064. for (var o = m; y3U.g6J(e, o); o++)
  35065. this.vertices.push(k.vertices[o]);
  35066. },
  35067. t0.prototype.makeCCW = function () {
  35068. for (var k = 0, m = this.vertices, e = 1; y3U.r6J(e, this.vertices.length); ++e)
  35069. (y3U.i6J(m[e][1], m[k][1]) || y3U.u6J(m[e][1], m[k][1]) && y3U.P6J(m[e][0], m[k][0])) && (k = e);
  35070. g0.left(this.at(y3U.D6J(k, 1)), this.at(k), this.at(k + 1)) || this.reverse();
  35071. },
  35072. t0.prototype.reverse = function () {
  35073. for (var k = [], m = 0, e = this.vertices.length; y3U.Z6J(m, e); m++)
  35074. k.push(this.vertices.pop());
  35075. this.vertices = k;
  35076. },
  35077. t0.prototype.isReflex = function (k) {
  35078. return g0.right(this.at(y3U.R6J(k, 1)), this.at(k), this.at(k + 1));
  35079. };
  35080. var M0 = [],
  35081. p0 = [];
  35082. t0.prototype.canSee = function (k, m) {
  35083. var e,
  35084. o,
  35085. n = M0,
  35086. u = p0;
  35087. if (g0.leftOn(this.at(k + 1), this.at(k), this.at(m)) && g0.rightOn(this.at(y3U.O6J(k, 1)), this.at(k), this.at(m)))
  35088. return !1;
  35089. o = g0.sqdist(this.at(k), this.at(m));
  35090. for (var q = 0; y3U.V6J(q, this.vertices.length); ++q)
  35091. if (y3U.k8J((q + 1) % this.vertices.length, k) && y3U.G8J(q, k) && g0.leftOn(this.at(k), this.at(m), this.at(q + 1)) && g0.rightOn(this.at(k), this.at(m), this.at(q)) && (n[0] = this.at(k), n[1] = this.at(m), u[0] = this.at(q), u[1] = this.at(q + 1), e = w0.lineInt(n, u), y3U.N8J(g0.sqdist(this.at(k), e), o)))
  35092. return !1;
  35093. return !0;
  35094. },
  35095. t0.prototype.copy = function (k, m, e) {
  35096. var o = e || new t0;
  35097. if (o.clear(), y3U.L8J(m, k))
  35098. for (var n = k; y3U.z8J(m, n); n++)
  35099. o.vertices.push(this.vertices[n]);
  35100. else {
  35101. for (var n = 0; y3U.J8J(m, n); n++)
  35102. o.vertices.push(this.vertices[n]);
  35103. for (var n = k; y3U.H8J(n, this.vertices.length); n++)
  35104. o.vertices.push(this.vertices[n]);
  35105. }
  35106. return o;
  35107. },
  35108. t0.prototype.getCutEdges = function () {
  35109. for (var k = [], m = [], e = [], o = new t0, n = Number.MAX_VALUE, u = 0; y3U.h8J(u, this.vertices.length); ++u)
  35110. if (this.isReflex(u))
  35111. for (var q = 0; y3U.F8J(q, this.vertices.length); ++q)
  35112. if (this.canSee(u, q)) {
  35113. m = this.copy(u, q, o).getCutEdges(),
  35114. e = this.copy(q, u, o).getCutEdges();
  35115. for (var f = 0; y3U.M8J(f, e.length); f++)
  35116. m.push(e[f]);
  35117. y3U.n8J(m.length, n) && (k = m, n = m.length, k.push([this.at(u), this.at(q)]));
  35118. }
  35119. return k;
  35120. },
  35121. t0.prototype.decomp = function () {
  35122. var k = this.getCutEdges();
  35123. return y3U.f8J(k.length, 0) ? this.slice(k) : [this];
  35124. },
  35125. t0.prototype.slice = function (k) {
  35126. if (y3U.K8J(0, k.length))
  35127. return [this];
  35128. if (y3U.B8J(k, Array) && k.length && y3U.l8J(k[0], Array) && y3U.X8J(2, k[0].length) && y3U.Y8J(k[0][0], Array)) {
  35129. for (var m = [this], e = 0; y3U.U0q(e, k.length); e++)
  35130. for (var o = k[e], n = 0; y3U.T0q(n, m.length); n++) {
  35131. var u = m[n],
  35132. q = u.slice(o);
  35133. if (q) {
  35134. m.splice(n, 1),
  35135. m.push(q[0], q[1]);
  35136. break;
  35137. }
  35138. }
  35139. return m;
  35140. }
  35141. var o = k,
  35142. e = this.vertices.indexOf(o[0]),
  35143. n = this.vertices.indexOf(o[1]);
  35144. return -1 != e && -1 != n ? [this.copy(e, n), this.copy(n, e)] : !1;
  35145. },
  35146. t0.prototype.isSimple = function () {
  35147. for (var k = this.vertices, m = 0; y3U.S0q(m, k.length - 1); m++)
  35148. for (var e = 0; y3U.I0q(m - 1, e); e++)
  35149. if (w0.segmentsIntersect(k[m], k[m + 1], k[e], k[e + 1]))
  35150. return !1;
  35151. for (var m = 1; y3U.C0q(m, k.length - 2); m++)
  35152. if (w0.segmentsIntersect(k[0], k[y3U.v0q(k.length, 1)], k[m], k[m + 1]))
  35153. return !1;
  35154. return !0;
  35155. },
  35156. t0.prototype.quickDecomp = function (k, m, e, o, n, u) {
  35157. n = n || 100,
  35158. u = u || 0,
  35159. o = o || 25,
  35160. k = "undefined" != typeof k ? k : [],
  35161. m = m || [],
  35162. e = e || [];
  35163. var q = [0, 0],
  35164. f = [0, 0],
  35165. j = [0, 0],
  35166. U0 = 0,
  35167. k0 = 0,
  35168. a0 = 0,
  35169. T0 = 0,
  35170. G0 = 0,
  35171. W0 = 0,
  35172. N0 = 0,
  35173. S0 = new t0,
  35174. I0 = new t0,
  35175. m0 = this,
  35176. A0 = this.vertices;
  35177. if (y3U.t0q(A0.length, 3))
  35178. return k;
  35179. if (u++, y3U.y0q(u, n))
  35180. return console.warn("quickDecomp: max level (" + n + ") reached."), k;
  35181. for (var L0 = 0; y3U.o0q(L0, this.vertices.length); ++L0)
  35182. if (m0.isReflex(L0)) {
  35183. m.push(m0.vertices[L0]),
  35184. U0 = k0 = Number.MAX_VALUE;
  35185. for (var z0 = 0; y3U.x0q(z0, this.vertices.length); ++z0)
  35186. g0.left(m0.at(y3U.p0q(L0, 1)), m0.at(L0), m0.at(z0)) && g0.rightOn(m0.at(y3U.q0q(L0, 1)), m0.at(L0), m0.at(y3U.b0q(z0, 1))) && (j = J0(m0.at(y3U.j0q(L0, 1)), m0.at(L0), m0.at(z0), m0.at(y3U.d0q(z0, 1))), g0.right(m0.at(L0 + 1), m0.at(L0), j) && (a0 = g0.sqdist(m0.vertices[L0], j), y3U.c0q(k0, a0) && (k0 = a0, f = j, W0 = z0))), g0.left(m0.at(L0 + 1), m0.at(L0), m0.at(z0 + 1)) && g0.rightOn(m0.at(L0 + 1), m0.at(L0), m0.at(z0)) && (j = J0(m0.at(L0 + 1), m0.at(L0), m0.at(z0), m0.at(z0 + 1)), g0.left(m0.at(y3U.s0q(L0, 1)), m0.at(L0), j) && (a0 = g0.sqdist(m0.vertices[L0], j), y3U.Q0q(U0, a0) && (U0 = a0, q = j, G0 = z0)));
  35187. if (y3U.a7q(W0, (G0 + 1) % this.vertices.length))
  35188. j[0] = y3U.W7q((f[0] + q[0]), 2), j[1] = y3U.m7q((f[1] + q[1]), 2), e.push(j), y3U.A7q(G0, L0) ? (S0.append(m0, L0, G0 + 1), S0.vertices.push(j), I0.vertices.push(j), y3U.w7q(0, W0) && I0.append(m0, W0, m0.vertices.length), I0.append(m0, 0, L0 + 1)) : (y3U.E7q(0, L0) && S0.append(m0, L0, m0.vertices.length), S0.append(m0, 0, G0 + 1), S0.vertices.push(j), I0.vertices.push(j), I0.append(m0, W0, L0 + 1));
  35189. else {
  35190. if (y3U.e7q(W0, G0) && (G0 += this.vertices.length), T0 = Number.MAX_VALUE, y3U.g7q(W0, G0))
  35191. return k;
  35192. for (var z0 = W0; y3U.r7q(G0, z0); ++z0)
  35193. g0.leftOn(m0.at(y3U.i7q(L0, 1)), m0.at(L0), m0.at(z0)) && g0.rightOn(m0.at(L0 + 1), m0.at(L0), m0.at(z0)) && (a0 = g0.sqdist(m0.at(L0), m0.at(z0)), y3U.u7q(T0, a0) && (T0 = a0, N0 = y3U.P7q(z0, this.vertices.length)));
  35194. y3U.D7q(N0, L0) ? (S0.append(m0, L0, N0 + 1), y3U.Z7q(0, N0) && I0.append(m0, N0, A0.length), I0.append(m0, 0, L0 + 1)) : (y3U.R7q(0, L0) && S0.append(m0, L0, A0.length), S0.append(m0, 0, N0 + 1), I0.append(m0, N0, L0 + 1));
  35195. }
  35196. return y3U.O7q(S0.vertices.length, I0.vertices.length) ? (S0.quickDecomp(k, m, e, o, n, u), I0.quickDecomp(k, m, e, o, n, u)) : (I0.quickDecomp(k, m, e, o, n, u), S0.quickDecomp(k, m, e, o, n, u)),
  35197. k;
  35198. }
  35199. return k.push(this),
  35200. k;
  35201. },
  35202. t0.prototype.removeCollinearPoints = function (k) {
  35203. for (var m = 0, e = y3U.V7q(this.vertices.length, 1); y3U.k4q(this.vertices.length, 3) && y3U.G4q(e, 0); --e)
  35204. g0.collinear(this.at(y3U.N4q(e, 1)), this.at(e), this.at(e + 1), k) && (this.vertices.splice(y3U.L4q(e, this.vertices.length), 1), e--, m++);
  35205. return m;
  35206. };
  35207. }, {
  35208. "./Line" : 3,
  35209. "./Point" : 4,
  35210. "./Scalar" : 6,
  35211. __browserify_Buffer : 1,
  35212. __browserify_process : 2
  35213. }
  35214. ],
  35215. 6 : [function (o, n) {
  35216. function u() {}
  35217. o("__browserify_process"),
  35218. o("__browserify_Buffer");
  35219. n.exports = u,
  35220. u.eq = function (k, m, e) {
  35221. return e = e || 0,
  35222. y3U.z4q(Math.abs(k - m), e);
  35223. };
  35224. }, {
  35225. __browserify_Buffer : 1,
  35226. __browserify_process : 2
  35227. }
  35228. ],
  35229. 7 : [function (k, m) {
  35230. k("__browserify_process"),
  35231. k("__browserify_Buffer");
  35232. m.exports = {
  35233. Polygon : k("./Polygon"),
  35234. Point : k("./Point")
  35235. };
  35236. }, {
  35237. "./Point" : 4,
  35238. "./Polygon" : 5,
  35239. __browserify_Buffer : 1,
  35240. __browserify_process : 2
  35241. }
  35242. ],
  35243. 8 : [function (k, m) {
  35244. k("__browserify_process"),
  35245. k("__browserify_Buffer");
  35246. m.exports = {
  35247. name : "p2",
  35248. version : "0.6.0",
  35249. description : "A JavaScript 2D physics engine.",
  35250. author : "Stefan Hedman <schteppe@gmail.com> (http://steffe.se)",
  35251. keywords : ["p2.js", "p2", "physics", "engine", "2d"],
  35252. main : "./src/p2.js",
  35253. engines : {
  35254. node : "*"
  35255. },
  35256. repository : {
  35257. type : "git",
  35258. url : "https://github.com/schteppe/p2.js.git"
  35259. },
  35260. bugs : {
  35261. url : "https://github.com/schteppe/p2.js/issues"
  35262. },
  35263. licenses : [{
  35264. type : "MIT"
  35265. }
  35266. ],
  35267. devDependencies : {
  35268. grunt : "~0.4.0",
  35269. "grunt-contrib-jshint" : "~0.9.2",
  35270. "grunt-contrib-nodeunit" : "~0.1.2",
  35271. "grunt-contrib-uglify" : "~0.4.0",
  35272. "grunt-contrib-watch" : "~0.5.0",
  35273. "grunt-browserify" : "~2.0.1",
  35274. "grunt-contrib-concat" : "^0.4.0"
  35275. },
  35276. dependencies : {
  35277. "poly-decomp" : "0.1.0"
  35278. }
  35279. };
  35280. }, {
  35281. __browserify_Buffer : 1,
  35282. __browserify_process : 2
  35283. }
  35284. ],
  35285. 9 : [function (G0, W0) {
  35286. function N0(k) {
  35287. this.lowerBound = I0.create(),
  35288. k && k.lowerBound && I0.copy(this.lowerBound, k.lowerBound),
  35289. this.upperBound = I0.create(),
  35290. k && k.upperBound && I0.copy(this.upperBound, k.upperBound);
  35291. }
  35292. var S0 = function (k) {
  35293. W0.exports = k;
  35294. }; {
  35295. var I0 = (G0("__browserify_process"), G0("__browserify_Buffer"), G0("../math/vec2"));
  35296. G0("../utils/Utils");
  35297. }
  35298. S0(N0);
  35299. var m0 = I0.create();
  35300. N0.prototype.setFromPoints = function (k, m, e, o) {
  35301. var n = this.lowerBound,
  35302. u = this.upperBound;
  35303. "number" != typeof e && (e = 0),
  35304. y3U.J4q(0, e) ? I0.rotate(n, k[0], e) : I0.copy(n, k[0]),
  35305. I0.copy(u, n);
  35306. for (var q = Math.cos(e), f = Math.sin(e), j = 1; y3U.H4q(j, k.length); j++) {
  35307. var U0 = k[j];
  35308. if (y3U.h4q(0, e)) {
  35309. var k0 = U0[0],
  35310. a0 = U0[1];
  35311. m0[0] = y3U.F4q(q * k0, f * a0),
  35312. m0[1] = y3U.M4q(f, k0) + y3U.n4q(q, a0),
  35313. U0 = m0;
  35314. }
  35315. for (var T0 = 0; y3U.f4q(2, T0); T0++)
  35316. y3U.K4q(U0[T0], u[T0]) && (u[T0] = U0[T0]), y3U.B4q(U0[T0], n[T0]) && (n[T0] = U0[T0]);
  35317. }
  35318. m && (I0.add(this.lowerBound, this.lowerBound, m), I0.add(this.upperBound, this.upperBound, m)),
  35319. o && (this.lowerBound[0] -= o, this.lowerBound[1] -= o, this.upperBound[0] += o, this.upperBound[1] += o);
  35320. },
  35321. N0.prototype.copy = function (k) {
  35322. I0.copy(this.lowerBound, k.lowerBound),
  35323. I0.copy(this.upperBound, k.upperBound);
  35324. },
  35325. N0.prototype.extend = function (k) {
  35326. for (var m = 2; m--; ) {
  35327. var e = k.lowerBound[m];
  35328. y3U.l4q(this.lowerBound[m], e) && (this.lowerBound[m] = e);
  35329. var o = k.upperBound[m];
  35330. y3U.X4q(this.upperBound[m], o) && (this.upperBound[m] = o);
  35331. }
  35332. },
  35333. N0.prototype.overlaps = function (k) {
  35334. var m = this.lowerBound,
  35335. e = this.upperBound,
  35336. o = k.lowerBound,
  35337. n = k.upperBound;
  35338. return (y3U.Y4q(o[0], e[0]) && y3U.U3q(e[0], n[0]) || y3U.T3q(m[0], n[0]) && y3U.S3q(n[0], e[0])) && (y3U.I3q(o[1], e[1]) && y3U.C3q(e[1], n[1]) || y3U.v3q(m[1], n[1]) && y3U.t3q(n[1], e[1]));
  35339. };
  35340. }, {
  35341. "../math/vec2" : 31,
  35342. "../utils/Utils" : 50,
  35343. __browserify_Buffer : 1,
  35344. __browserify_process : 2
  35345. }
  35346. ],
  35347. 10 : [function (n, u) {
  35348. function q(k) {
  35349. this.type = k,
  35350. this.result = [],
  35351. this.world = null,
  35352. this.boundingVolumeType = q.AABB;
  35353. }
  35354. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("../math/vec2")),
  35355. j = n("../objects/Body");
  35356. u.exports = q,
  35357. q.AABB = 1,
  35358. q.BOUNDING_CIRCLE = 2,
  35359. q.prototype.setWorld = function (k) {
  35360. this.world = k;
  35361. },
  35362. q.prototype.getCollisionPairs = function () {
  35363. throw new Error("getCollisionPairs must be implemented in a subclass!");
  35364. };
  35365. var U0 = f.create();
  35366. q.boundingRadiusCheck = function (k, m) {
  35367. f.sub(U0, k.position, m.position);
  35368. var e = f.squaredLength(U0),
  35369. o = k.boundingRadius + m.boundingRadius;
  35370. return y3U.y3q(o * o, e);
  35371. },
  35372. q.aabbCheck = function (k, m) {
  35373. return k.getAABB().overlaps(m.getAABB());
  35374. },
  35375. q.prototype.boundingVolumeCheck = function (k, m) {
  35376. var e;
  35377. switch (this.boundingVolumeType) {
  35378. case q.BOUNDING_CIRCLE:
  35379. e = q.boundingRadiusCheck(k, m);
  35380. break;
  35381. case q.AABB:
  35382. e = q.aabbCheck(k, m);
  35383. break;
  35384. default:
  35385. throw new Error("Bounding volume type not recognized: " + this.boundingVolumeType);
  35386. }
  35387. return e;
  35388. },
  35389. q.canCollide = function (k, m) {
  35390. return y3U.o3q(k.type, j.STATIC) && y3U.x3q(m.type, j.STATIC) ? !1 : y3U.p3q(k.type, j.KINEMATIC) && y3U.q3q(m.type, j.STATIC) || y3U.b3q(k.type, j.STATIC) && y3U.j3q(m.type, j.KINEMATIC) ? !1 : y3U.d3q(k.type, j.KINEMATIC) && y3U.c3q(m.type, j.KINEMATIC) ? !1 : y3U.s3q(k.sleepState, j.SLEEPING) && y3U.Q3q(m.sleepState, j.SLEEPING) ? !1 : y3U.a9q(k.sleepState, j.SLEEPING) && y3U.W9q(m.type, j.STATIC) || y3U.m9q(m.sleepState, j.SLEEPING) && y3U.A9q(k.type, j.STATIC) ? !1 : !0;
  35391. },
  35392. q.NAIVE = 1,
  35393. q.SAP = 2;
  35394. }, {
  35395. "../math/vec2" : 31,
  35396. "../objects/Body" : 32,
  35397. __browserify_Buffer : 1,
  35398. __browserify_process : 2
  35399. }
  35400. ],
  35401. 11 : [function (P0, O0) {
  35402. function b0(k) {
  35403. d0.apply(this),
  35404. k = l0.defaults(k, {
  35405. xmin : -100,
  35406. xmax : 100,
  35407. ymin : -100,
  35408. ymax : 100,
  35409. nx : 10,
  35410. ny : 10
  35411. }),
  35412. this.xmin = k.xmin,
  35413. this.ymin = k.ymin,
  35414. this.xmax = k.xmax,
  35415. this.ymax = k.ymax,
  35416. this.nx = k.nx,
  35417. this.ny = k.ny,
  35418. this.binsizeX = y3U.w9q((this.xmax - this.xmin), this.nx),
  35419. this.binsizeY = y3U.E9q((this.ymax - this.ymin), this.ny);
  35420. }
  35421. var d0 = (P0("__browserify_process"), P0("__browserify_Buffer"), P0("../shapes/Circle"), P0("../shapes/Plane"), P0("../shapes/Particle"), P0("../collision/Broadphase")),
  35422. l0 = (P0("../math/vec2"), P0("../utils/Utils"));
  35423. O0.exports = b0,
  35424. b0.prototype = new d0,
  35425. b0.prototype.getCollisionPairs = function (k) {
  35426. for (var m = [], e = k.bodies, o = e.length, n = (this.binsizeX, this.binsizeY, this.nx), u = this.ny, q = this.xmin, f = this.ymin, j = this.xmax, U0 = this.ymax, k0 = [], a0 = y3U.e9q(n, u), T0 = 0; y3U.g9q(a0, T0); T0++)
  35427. k0.push([]);
  35428. for (var G0 = y3U.r9q(n, (j - q)), W0 = y3U.i9q(u, (U0 - f)), T0 = 0; y3U.u9q(T0, o); T0++)
  35429. for (var N0 = e[T0], S0 = N0.aabb, I0 = Math.max(S0.lowerBound[0], q), m0 = Math.max(S0.lowerBound[1], f), A0 = Math.min(S0.upperBound[0], j), L0 = Math.min(S0.upperBound[1], U0), z0 = Math.floor(y3U.P9q(G0, (I0 - q))), E0 = Math.floor(y3U.D9q(W0, (m0 - f))), v0 = Math.floor(y3U.Z9q(G0, (A0 - q))), J0 = Math.floor(y3U.R9q(W0, (L0 - f))), t0 = z0; y3U.O9q(v0, t0); t0++)
  35430. for (var w0 = E0; y3U.V9q(J0, w0); w0++) {
  35431. var g0 = t0,
  35432. H0 = w0,
  35433. M0 = y3U.k5q(g0, (u - 1)) + H0;
  35434. y3U.G5q(M0, 0) && y3U.N5q(a0, M0) && k0[M0].push(N0);
  35435. }
  35436. for (var T0 = 0; y3U.L5q(T0, a0); T0++)
  35437. for (var p0 = k0[T0], t0 = 0, e0 = p0.length; y3U.z5q(t0, e0); t0++)
  35438. for (var N0 = p0[t0], w0 = 0; y3U.J5q(w0, t0); w0++) {
  35439. var F0 = p0[w0];
  35440. d0.canCollide(N0, F0) && this.boundingVolumeCheck(N0, F0) && m.push(N0, F0);
  35441. }
  35442. return m;
  35443. };
  35444. }, {
  35445. "../collision/Broadphase" : 10,
  35446. "../math/vec2" : 31,
  35447. "../shapes/Circle" : 38,
  35448. "../shapes/Particle" : 42,
  35449. "../shapes/Plane" : 43,
  35450. "../utils/Utils" : 50,
  35451. __browserify_Buffer : 1,
  35452. __browserify_process : 2
  35453. }
  35454. ],
  35455. 12 : [function (k0, a0) {
  35456. function T0() {
  35457. G0.call(this, G0.NAIVE);
  35458. } {
  35459. var G0 = (k0("__browserify_process"), k0("__browserify_Buffer"), k0("../shapes/Circle"), k0("../shapes/Plane"), k0("../shapes/Shape"), k0("../shapes/Particle"), k0("../collision/Broadphase"));
  35460. k0("../math/vec2");
  35461. }
  35462. a0.exports = T0,
  35463. T0.prototype = new G0,
  35464. T0.prototype.getCollisionPairs = function (m) {
  35465. var e = function (k) {
  35466. n.length = k;
  35467. },
  35468. o = m.bodies,
  35469. n = this.result;
  35470. e(0);
  35471. for (var u = 0, q = o.length; y3U.H5q(u, q); u++)
  35472. for (var f = o[u], j = 0; y3U.h5q(u, j); j++) {
  35473. var U0 = o[j];
  35474. G0.canCollide(f, U0) && this.boundingVolumeCheck(f, U0) && n.push(f, U0);
  35475. }
  35476. return n;
  35477. };
  35478. }, {
  35479. "../collision/Broadphase" : 10,
  35480. "../math/vec2" : 31,
  35481. "../shapes/Circle" : 38,
  35482. "../shapes/Particle" : 42,
  35483. "../shapes/Plane" : 43,
  35484. "../shapes/Shape" : 45,
  35485. __browserify_Buffer : 1,
  35486. __browserify_process : 2
  35487. }
  35488. ],
  35489. 13 : [function (D0, i) {
  35490. function k7(m, e, o, n) {
  35491. for (var u = D7, q = u7, f = B7, j = r0, U0 = m, k0 = e.vertices, a0 = null, T0 = 0; y3U.n5q(T0, k0.length + 1); T0++) {
  35492. var G0 = function (k) {
  35493. a0 = k;
  35494. };
  35495. var W0 = k0[y3U.f5q(T0, k0.length)],
  35496. N0 = k0[y3U.K5q((T0 + 1), k0.length)];
  35497. C0.rotate(u, W0, n),
  35498. C0.rotate(q, N0, n),
  35499. u0(u, u, o),
  35500. u0(q, q, o),
  35501. h0(f, u, U0),
  35502. h0(j, q, U0);
  35503. var S0 = C0.crossLength(f, j);
  35504. if (y3U.B5q(null, a0) && (a0 = S0), y3U.l5q(0, S0 * a0))
  35505. return !1;
  35506. G0(S0);
  35507. }
  35508. return !0;
  35509. }
  35510. function o0() {
  35511. this.contactEquations = [],
  35512. this.frictionEquations = [],
  35513. this.enableFriction = !0,
  35514. this.slipForce = 10,
  35515. this.frictionCoefficient = .3,
  35516. this.surfaceVelocity = 0,
  35517. this.reuseObjects = !0,
  35518. this.reusableContactEquations = [],
  35519. this.reusableFrictionEquations = [],
  35520. this.restitution = 0,
  35521. this.stiffness = G7.DEFAULT_STIFFNESS,
  35522. this.relaxation = G7.DEFAULT_RELAXATION,
  35523. this.frictionStiffness = G7.DEFAULT_STIFFNESS,
  35524. this.frictionRelaxation = G7.DEFAULT_RELAXATION,
  35525. this.enableFrictionReduction = !0,
  35526. this.collidingBodiesLastStep = new f0,
  35527. this.contactSkinSize = .01;
  35528. }
  35529. function V0(k, m) {
  35530. C0.set(k.vertices[0], .5 * -m.length, -m.radius),
  35531. C0.set(k.vertices[1], y3U.F5q(.5, m.length), -m.radius),
  35532. C0.set(k.vertices[2], y3U.M5q(.5, m.length), m.radius),
  35533. C0.set(k.vertices[3], .5 * -m.length, m.radius);
  35534. }
  35535. var Y0 = function (k) {
  35536. i.exports = k;
  35537. },
  35538. C0 = (D0("__browserify_process"), D0("__browserify_Buffer"), D0("../math/vec2")),
  35539. h0 = C0.sub,
  35540. u0 = C0.add,
  35541. n0 = C0.dot,
  35542. A7 = D0("../utils/Utils"),
  35543. f0 = D0("../utils/TupleDictionary"),
  35544. G7 = D0("../equations/Equation"),
  35545. C7 = D0("../equations/ContactEquation"),
  35546. z7 = D0("../equations/FrictionEquation"),
  35547. B0 = D0("../shapes/Circle"),
  35548. v7 = D0("../shapes/Convex"),
  35549. i0 = D0("../shapes/Shape"),
  35550. K0 = (D0("../objects/Body"), D0("../shapes/Rectangle"));
  35551. Y0(o0);
  35552. var S7 = C0.fromValues(0, 1),
  35553. U7 = C0.fromValues(0, 0),
  35554. X0 = C0.fromValues(0, 0),
  35555. a7 = C0.fromValues(0, 0),
  35556. Q0 = C0.fromValues(0, 0),
  35557. W7 = C0.fromValues(0, 0),
  35558. J7 = C0.fromValues(0, 0),
  35559. c0 = C0.fromValues(0, 0),
  35560. H7 = C0.fromValues(0, 0),
  35561. I7 = C0.fromValues(0, 0),
  35562. N7 = C0.fromValues(0, 0),
  35563. L7 = C0.fromValues(0, 0),
  35564. t7 = C0.fromValues(0, 0),
  35565. w7 = C0.fromValues(0, 0),
  35566. E7 = C0.fromValues(0, 0),
  35567. g7 = C0.fromValues(0, 0),
  35568. h7 = C0.fromValues(0, 0),
  35569. y7 = C0.fromValues(0, 0),
  35570. f7 = C0.fromValues(0, 0),
  35571. r7 = [];
  35572. o0.prototype.collidedLastStep = function (k, m) {
  35573. var e = y3U.X5q(0, k.id),
  35574. o = y3U.Y5q(0, m.id);
  35575. return !!this.collidingBodiesLastStep.get(e, o);
  35576. },
  35577. o0.prototype.reset = function () {
  35578. this.collidingBodiesLastStep.reset();
  35579. for (var k = this.contactEquations, m = k.length; m--; ) {
  35580. var e = k[m],
  35581. o = e.bodyA.id,
  35582. n = e.bodyB.id;
  35583. this.collidingBodiesLastStep.set(o, n, !0);
  35584. }
  35585. if (this.reuseObjects) {
  35586. var u = this.contactEquations,
  35587. q = this.frictionEquations,
  35588. f = this.reusableFrictionEquations,
  35589. j = this.reusableContactEquations;
  35590. A7.appendArray(j, u),
  35591. A7.appendArray(f, q);
  35592. }
  35593. this.contactEquations.length = this.frictionEquations.length = 0;
  35594. },
  35595. o0.prototype.createContactEquation = function (k, m, e, o) {
  35596. var n = this.reusableContactEquations.length ? this.reusableContactEquations.pop() : new C7(k, m);
  35597. return n.bodyA = k,
  35598. n.bodyB = m,
  35599. n.shapeA = e,
  35600. n.shapeB = o,
  35601. n.restitution = this.restitution,
  35602. n.firstImpact = !this.collidedLastStep(k, m),
  35603. n.stiffness = this.stiffness,
  35604. n.relaxation = this.relaxation,
  35605. n.needsUpdate = !0,
  35606. n.enabled = !0,
  35607. n.offset = this.contactSkinSize,
  35608. n;
  35609. },
  35610. o0.prototype.createFrictionEquation = function (k, m, e, o) {
  35611. var n = this.reusableFrictionEquations.length ? this.reusableFrictionEquations.pop() : new z7(k, m);
  35612. return n.bodyA = k,
  35613. n.bodyB = m,
  35614. n.shapeA = e,
  35615. n.shapeB = o,
  35616. n.setSlipForce(this.slipForce),
  35617. n.frictionCoefficient = this.frictionCoefficient,
  35618. n.relativeVelocity = this.surfaceVelocity,
  35619. n.enabled = !0,
  35620. n.needsUpdate = !0,
  35621. n.stiffness = this.frictionStiffness,
  35622. n.relaxation = this.frictionRelaxation,
  35623. n.contactEquations.length = 0,
  35624. n;
  35625. },
  35626. o0.prototype.createFrictionFromContact = function (k) {
  35627. var m = this.createFrictionEquation(k.bodyA, k.bodyB, k.shapeA, k.shapeB);
  35628. return C0.copy(m.contactPointA, k.contactPointA),
  35629. C0.copy(m.contactPointB, k.contactPointB),
  35630. C0.rotate90cw(m.t, k.normalA),
  35631. m.contactEquations.push(k),
  35632. m;
  35633. },
  35634. o0.prototype.createFrictionFromAverage = function (k) {
  35635. if (!k)
  35636. throw new Error("numContacts == 0!"); {
  35637. var m = this.contactEquations[y3U.U2q(this.contactEquations.length, 1)],
  35638. e = this.createFrictionEquation(m.bodyA, m.bodyB, m.shapeA, m.shapeB),
  35639. o = m.bodyA;
  35640. m.bodyB;
  35641. }
  35642. C0.set(e.contactPointA, 0, 0),
  35643. C0.set(e.contactPointB, 0, 0),
  35644. C0.set(e.t, 0, 0);
  35645. for (var n = 0; y3U.T2q(n, k); n++)
  35646. m = this.contactEquations[y3U.S2q(this.contactEquations.length, 1, n)], y3U.L2q(m.bodyA, o) ? (C0.add(e.t, e.t, m.normalA), C0.add(e.contactPointA, e.contactPointA, m.contactPointA), C0.add(e.contactPointB, e.contactPointB, m.contactPointB)) : (C0.sub(e.t, e.t, m.normalA), C0.add(e.contactPointA, e.contactPointA, m.contactPointB), C0.add(e.contactPointB, e.contactPointB, m.contactPointA)), e.contactEquations.push(m);
  35647. var u = y3U.z2q(1, k);
  35648. return C0.scale(e.contactPointA, e.contactPointA, u),
  35649. C0.scale(e.contactPointB, e.contactPointB, u),
  35650. C0.normalize(e.t, e.t),
  35651. C0.rotate90cw(e.t, e.t),
  35652. e;
  35653. },
  35654. o0.prototype[y3U.J2q(i0.LINE, i0.CONVEX)] = o0.prototype.convexLine = function (k, m, e, o, n, u, q, f, j) {
  35655. return j ? !1 : 0;
  35656. },
  35657. o0.prototype[y3U.H2q(i0.LINE, i0.RECTANGLE)] = o0.prototype.lineRectangle = function (k, m, e, o, n, u, q, f, j) {
  35658. return j ? !1 : 0;
  35659. };
  35660. var o7 = new K0(1, 1),
  35661. i7 = C0.create();
  35662. o0.prototype[y3U.h2q(i0.CAPSULE, i0.CONVEX)] = o0.prototype[y3U.F2q(i0.CAPSULE, i0.RECTANGLE)] = o0.prototype.convexCapsule = function (k, m, e, o, n, u, q, f, j) {
  35663. var U0 = i7;
  35664. C0.set(U0, y3U.M2q(u.length, 2), 0),
  35665. C0.rotate(U0, U0, f),
  35666. C0.add(U0, U0, q);
  35667. var k0 = this.circleConvex(n, u, U0, f, k, m, e, o, j, u.radius);
  35668. C0.set(U0, -u.length / 2, 0),
  35669. C0.rotate(U0, U0, f),
  35670. C0.add(U0, U0, q);
  35671. var a0 = this.circleConvex(n, u, U0, f, k, m, e, o, j, u.radius);
  35672. if (j && (k0 || a0))
  35673. return !0;
  35674. var T0 = o7;
  35675. V0(T0, u);
  35676. var G0 = this.convexConvex(k, m, e, o, n, T0, q, f, j);
  35677. return G0 + k0 + a0;
  35678. },
  35679. o0.prototype[y3U.n2q(i0.CAPSULE, i0.LINE)] = o0.prototype.lineCapsule = function (k, m, e, o, n, u, q, f, j) {
  35680. return j ? !1 : 0;
  35681. };
  35682. var q7 = C0.create(),
  35683. n7 = C0.create(),
  35684. j7 = new K0(1, 1);
  35685. o0.prototype[y3U.f2q(i0.CAPSULE, i0.CAPSULE)] = o0.prototype.capsuleCapsule = function (k, m, e, o, n, u, q, f, j) {
  35686. for (var U0, k0 = q7, a0 = n7, T0 = 0, G0 = 0; y3U.K2q(2, G0); G0++) {
  35687. C0.set(k0, (y3U.B2q(0, G0) ? -1 : 1) * m.length / 2, 0),
  35688. C0.rotate(k0, k0, o),
  35689. C0.add(k0, k0, e);
  35690. for (var W0 = 0; y3U.l2q(2, W0); W0++) {
  35691. C0.set(a0, (y3U.X2q(0, W0) ? -1 : 1) * u.length / 2, 0),
  35692. C0.rotate(a0, a0, f),
  35693. C0.add(a0, a0, q),
  35694. this.enableFrictionReduction && (U0 = this.enableFriction, this.enableFriction = !1);
  35695. var N0 = this.circleCircle(k, m, k0, o, n, u, a0, f, j, m.radius, u.radius);
  35696. if (this.enableFrictionReduction && (this.enableFriction = U0), j && N0)
  35697. return !0;
  35698. T0 += N0;
  35699. }
  35700. }
  35701. this.enableFrictionReduction && (U0 = this.enableFriction, this.enableFriction = !1);
  35702. var S0 = j7;
  35703. V0(S0, m);
  35704. var I0 = this.convexCapsule(k, S0, e, o, n, u, q, f, j);
  35705. if (this.enableFrictionReduction && (this.enableFriction = U0), j && I0)
  35706. return !0;
  35707. if (T0 += I0, this.enableFrictionReduction) {
  35708. var U0 = this.enableFriction;
  35709. this.enableFriction = !1;
  35710. }
  35711. V0(S0, u);
  35712. var m0 = this.convexCapsule(n, S0, q, f, k, m, e, o, j);
  35713. return this.enableFrictionReduction && (this.enableFriction = U0),
  35714. j && m0 ? !0 : (T0 += m0, this.enableFrictionReduction && T0 && this.enableFriction && this.frictionEquations.push(this.createFrictionFromAverage(T0)), T0);
  35715. },
  35716. o0.prototype[y3U.Y2q(i0.LINE, i0.LINE)] = o0.prototype.lineLine = function (k, m, e, o, n, u, q, f, j) {
  35717. return j ? !1 : 0;
  35718. },
  35719. o0.prototype[y3U.U1q(i0.PLANE, i0.LINE)] = o0.prototype.planeLine = function (k, m, e, o, n, u, q, f, j) {
  35720. var U0 = U7,
  35721. k0 = X0,
  35722. a0 = a7,
  35723. T0 = Q0,
  35724. G0 = W7,
  35725. W0 = J7,
  35726. N0 = c0,
  35727. S0 = H7,
  35728. I0 = I7,
  35729. m0 = r7,
  35730. A0 = 0;
  35731. C0.set(U0, -u.length / 2, 0),
  35732. C0.set(k0, y3U.T1q(u.length, 2), 0),
  35733. C0.rotate(a0, U0, f),
  35734. C0.rotate(T0, k0, f),
  35735. u0(a0, a0, q),
  35736. u0(T0, T0, q),
  35737. C0.copy(U0, a0),
  35738. C0.copy(k0, T0),
  35739. h0(G0, k0, U0),
  35740. C0.normalize(W0, G0),
  35741. C0.rotate90cw(I0, W0),
  35742. C0.rotate(S0, S7, o),
  35743. m0[0] = U0,
  35744. m0[1] = k0;
  35745. for (var L0 = 0; y3U.S1q(L0, m0.length); L0++) {
  35746. var z0 = m0[L0];
  35747. h0(N0, z0, e);
  35748. var E0 = n0(N0, S0);
  35749. if (y3U.I1q(0, E0)) {
  35750. if (j)
  35751. return !0;
  35752. var v0 = this.createContactEquation(k, n, m, u);
  35753. A0++,
  35754. C0.copy(v0.normalA, S0),
  35755. C0.normalize(v0.normalA, v0.normalA),
  35756. C0.scale(N0, S0, E0),
  35757. h0(v0.contactPointA, z0, N0),
  35758. h0(v0.contactPointA, v0.contactPointA, k.position),
  35759. h0(v0.contactPointB, z0, q),
  35760. u0(v0.contactPointB, v0.contactPointB, q),
  35761. h0(v0.contactPointB, v0.contactPointB, n.position),
  35762. this.contactEquations.push(v0),
  35763. this.enableFrictionReduction || this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(v0));
  35764. }
  35765. }
  35766. return j ? !1 : (this.enableFrictionReduction || A0 && this.enableFriction && this.frictionEquations.push(this.createFrictionFromAverage(A0)), A0);
  35767. },
  35768. o0.prototype[y3U.C1q(i0.PARTICLE, i0.CAPSULE)] = o0.prototype.particleCapsule = function (k, m, e, o, n, u, q, f, j) {
  35769. return this.circleLine(k, m, e, o, n, u, q, f, j, u.radius, 0);
  35770. },
  35771. o0.prototype[y3U.v1q(i0.CIRCLE, i0.LINE)] = o0.prototype.circleLine = function (k, m, e, o, n, u, q, f, j, U0, k0) {
  35772. var U0 = U0 || 0,
  35773. k0 = "undefined" != typeof k0 ? k0 : m.radius,
  35774. a0 = U7,
  35775. T0 = X0,
  35776. G0 = a7,
  35777. W0 = Q0,
  35778. N0 = W7,
  35779. S0 = J7,
  35780. I0 = c0,
  35781. m0 = H7,
  35782. A0 = I7,
  35783. L0 = N7,
  35784. z0 = L7,
  35785. E0 = t7,
  35786. v0 = w7,
  35787. J0 = E7,
  35788. t0 = r7;
  35789. C0.set(m0, -u.length / 2, 0),
  35790. C0.set(A0, y3U.t1q(u.length, 2), 0),
  35791. C0.rotate(L0, m0, f),
  35792. C0.rotate(z0, A0, f),
  35793. u0(L0, L0, q),
  35794. u0(z0, z0, q),
  35795. C0.copy(m0, L0),
  35796. C0.copy(A0, z0),
  35797. h0(S0, A0, m0),
  35798. C0.normalize(I0, S0),
  35799. C0.rotate90cw(N0, I0),
  35800. h0(E0, e, m0);
  35801. var w0 = n0(E0, N0);
  35802. h0(W0, m0, q),
  35803. h0(v0, e, q);
  35804. var g0 = k0 + U0;
  35805. if (y3U.y1q(Math.abs(w0), g0)) {
  35806. C0.scale(a0, N0, w0),
  35807. h0(G0, e, a0),
  35808. C0.scale(T0, N0, n0(N0, v0)),
  35809. C0.normalize(T0, T0),
  35810. C0.scale(T0, T0, U0),
  35811. u0(G0, G0, T0);
  35812. var H0 = n0(I0, G0),
  35813. M0 = n0(I0, m0),
  35814. p0 = n0(I0, A0);
  35815. if (y3U.o1q(H0, M0) && y3U.x1q(p0, H0)) {
  35816. if (j)
  35817. return !0;
  35818. var e0 = this.createContactEquation(k, n, m, u);
  35819. return C0.scale(e0.normalA, a0, -1),
  35820. C0.normalize(e0.normalA, e0.normalA),
  35821. C0.scale(e0.contactPointA, e0.normalA, k0),
  35822. u0(e0.contactPointA, e0.contactPointA, e),
  35823. h0(e0.contactPointA, e0.contactPointA, k.position),
  35824. h0(e0.contactPointB, G0, q),
  35825. u0(e0.contactPointB, e0.contactPointB, q),
  35826. h0(e0.contactPointB, e0.contactPointB, n.position),
  35827. this.contactEquations.push(e0),
  35828. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(e0)),
  35829. 1;
  35830. }
  35831. }
  35832. t0[0] = m0,
  35833. t0[1] = A0;
  35834. for (var F0 = 0; y3U.p1q(F0, t0.length); F0++) {
  35835. var $ = t0[F0];
  35836. if (h0(E0, $, e), y3U.q1q(C0.squaredLength(E0), Math.pow(g0, 2))) {
  35837. if (j)
  35838. return !0;
  35839. var e0 = this.createContactEquation(k, n, m, u);
  35840. return C0.copy(e0.normalA, E0),
  35841. C0.normalize(e0.normalA, e0.normalA),
  35842. C0.scale(e0.contactPointA, e0.normalA, k0),
  35843. u0(e0.contactPointA, e0.contactPointA, e),
  35844. h0(e0.contactPointA, e0.contactPointA, k.position),
  35845. h0(e0.contactPointB, $, q),
  35846. C0.scale(J0, e0.normalA, -U0),
  35847. u0(e0.contactPointB, e0.contactPointB, J0),
  35848. u0(e0.contactPointB, e0.contactPointB, q),
  35849. h0(e0.contactPointB, e0.contactPointB, n.position),
  35850. this.contactEquations.push(e0),
  35851. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(e0)),
  35852. 1;
  35853. }
  35854. }
  35855. return 0;
  35856. },
  35857. o0.prototype[y3U.b1q(i0.CIRCLE, i0.CAPSULE)] = o0.prototype.circleCapsule = function (k, m, e, o, n, u, q, f, j) {
  35858. return this.circleLine(k, m, e, o, n, u, q, f, j, u.radius);
  35859. },
  35860. o0.prototype[y3U.j1q(i0.CIRCLE, i0.CONVEX)] = o0.prototype[y3U.d1q(i0.CIRCLE, i0.RECTANGLE)] = o0.prototype.circleConvex = function (k, m, e, o, n, u, q, f, j, U0) {
  35861. for (var U0 = "number" == typeof U0 ? U0 : m.radius, k0 = U7, a0 = X0, T0 = a7, G0 = Q0, W0 = W7, N0 = N7, S0 = L7, I0 = w7, m0 = E7, A0 = g7, L0 = h7, z0 = !1, E0 = Number.MAX_VALUE, v0 = u.vertices, J0 = 0; y3U.c1q(J0, v0.length + 1); J0++) {
  35862. var t0 = v0[y3U.s1q(J0, v0.length)],
  35863. w0 = v0[y3U.Q1q((J0 + 1), v0.length)];
  35864. if (C0.rotate(k0, t0, f), C0.rotate(a0, w0, f), u0(k0, k0, q), u0(a0, a0, q), h0(T0, a0, k0), C0.normalize(G0, T0), C0.rotate90cw(W0, G0), C0.scale(m0, W0, -m.radius), u0(m0, m0, e), k7(m0, u, q, f)) {
  35865. C0.sub(A0, k0, m0);
  35866. var g0 = Math.abs(C0.dot(A0, W0));
  35867. y3U.a6q(E0, g0) && (C0.copy(L0, m0), E0 = g0, C0.scale(I0, W0, g0), C0.add(I0, I0, m0), z0 = !0);
  35868. }
  35869. }
  35870. if (z0) {
  35871. if (j)
  35872. return !0;
  35873. var H0 = this.createContactEquation(k, n, m, u);
  35874. return C0.sub(H0.normalA, L0, e),
  35875. C0.normalize(H0.normalA, H0.normalA),
  35876. C0.scale(H0.contactPointA, H0.normalA, U0),
  35877. u0(H0.contactPointA, H0.contactPointA, e),
  35878. h0(H0.contactPointA, H0.contactPointA, k.position),
  35879. h0(H0.contactPointB, I0, q),
  35880. u0(H0.contactPointB, H0.contactPointB, q),
  35881. h0(H0.contactPointB, H0.contactPointB, n.position),
  35882. this.contactEquations.push(H0),
  35883. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(H0)),
  35884. 1;
  35885. }
  35886. if (y3U.W6q(U0, 0))
  35887. for (var J0 = 0; y3U.m6q(J0, v0.length); J0++) {
  35888. var M0 = v0[J0];
  35889. if (C0.rotate(S0, M0, f), u0(S0, S0, q), h0(N0, S0, e), y3U.A6q(C0.squaredLength(N0), Math.pow(U0, 2))) {
  35890. if (j)
  35891. return !0;
  35892. var H0 = this.createContactEquation(k, n, m, u);
  35893. return C0.copy(H0.normalA, N0),
  35894. C0.normalize(H0.normalA, H0.normalA),
  35895. C0.scale(H0.contactPointA, H0.normalA, U0),
  35896. u0(H0.contactPointA, H0.contactPointA, e),
  35897. h0(H0.contactPointA, H0.contactPointA, k.position),
  35898. h0(H0.contactPointB, S0, q),
  35899. u0(H0.contactPointB, H0.contactPointB, q),
  35900. h0(H0.contactPointB, H0.contactPointB, n.position),
  35901. this.contactEquations.push(H0),
  35902. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(H0)),
  35903. 1;
  35904. }
  35905. }
  35906. return 0;
  35907. };
  35908. var D7 = C0.create(),
  35909. u7 = C0.create(),
  35910. B7 = C0.create(),
  35911. r0 = C0.create();
  35912. o0.prototype[y3U.w6q(i0.PARTICLE, i0.CONVEX)] = o0.prototype[y3U.E6q(i0.PARTICLE, i0.RECTANGLE)] = o0.prototype.particleConvex = function (k, m, e, o, n, u, q, f, j) {
  35913. var U0 = U7,
  35914. k0 = X0,
  35915. a0 = a7,
  35916. T0 = Q0,
  35917. G0 = W7,
  35918. W0 = J7,
  35919. N0 = c0,
  35920. S0 = N7,
  35921. I0 = w7,
  35922. m0 = y7,
  35923. A0 = f7,
  35924. L0 = Number.MAX_VALUE,
  35925. z0 = !1,
  35926. E0 = u.vertices;
  35927. if (!k7(e, u, q, f))
  35928. return 0;
  35929. if (j)
  35930. return !0;
  35931. for (var v0 = 0; y3U.e6q(v0, E0.length + 1); v0++) {
  35932. var J0 = E0[y3U.g6q(v0, E0.length)],
  35933. t0 = E0[y3U.r6q((v0 + 1), E0.length)];
  35934. C0.rotate(U0, J0, f),
  35935. C0.rotate(k0, t0, f),
  35936. u0(U0, U0, q),
  35937. u0(k0, k0, q),
  35938. h0(a0, k0, U0),
  35939. C0.normalize(T0, a0),
  35940. C0.rotate90cw(G0, T0),
  35941. h0(S0, e, U0); {
  35942. n0(S0, G0);
  35943. }
  35944. h0(W0, U0, q),
  35945. h0(N0, e, q),
  35946. C0.sub(m0, U0, e);
  35947. var w0 = Math.abs(C0.dot(m0, G0));
  35948. y3U.i6q(L0, w0) && (L0 = w0, C0.scale(I0, G0, w0), C0.add(I0, I0, e), C0.copy(A0, G0), z0 = !0);
  35949. }
  35950. if (z0) {
  35951. var g0 = this.createContactEquation(k, n, m, u);
  35952. return C0.scale(g0.normalA, A0, -1),
  35953. C0.normalize(g0.normalA, g0.normalA),
  35954. C0.set(g0.contactPointA, 0, 0),
  35955. u0(g0.contactPointA, g0.contactPointA, e),
  35956. h0(g0.contactPointA, g0.contactPointA, k.position),
  35957. h0(g0.contactPointB, I0, q),
  35958. u0(g0.contactPointB, g0.contactPointB, q),
  35959. h0(g0.contactPointB, g0.contactPointB, n.position),
  35960. this.contactEquations.push(g0),
  35961. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(g0)),
  35962. 1;
  35963. }
  35964. return 0;
  35965. },
  35966. o0.prototype[i0.CIRCLE] = o0.prototype.circleCircle = function (k, m, e, o, n, u, q, f, j, U0, k0) {
  35967. var a0 = U7,
  35968. U0 = U0 || m.radius,
  35969. k0 = k0 || u.radius;
  35970. h0(a0, e, q);
  35971. var T0 = U0 + k0;
  35972. if (y3U.u6q(C0.squaredLength(a0), Math.pow(T0, 2)))
  35973. return 0;
  35974. if (j)
  35975. return !0;
  35976. var G0 = this.createContactEquation(k, n, m, u);
  35977. return h0(G0.normalA, q, e),
  35978. C0.normalize(G0.normalA, G0.normalA),
  35979. C0.scale(G0.contactPointA, G0.normalA, U0),
  35980. C0.scale(G0.contactPointB, G0.normalA, -k0),
  35981. u0(G0.contactPointA, G0.contactPointA, e),
  35982. h0(G0.contactPointA, G0.contactPointA, k.position),
  35983. u0(G0.contactPointB, G0.contactPointB, q),
  35984. h0(G0.contactPointB, G0.contactPointB, n.position),
  35985. this.contactEquations.push(G0),
  35986. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(G0)),
  35987. 1;
  35988. },
  35989. o0.prototype[y3U.P6q(i0.PLANE, i0.CONVEX)] = o0.prototype[y3U.D6q(i0.PLANE, i0.RECTANGLE)] = o0.prototype.planeConvex = function (k, m, e, o, n, u, q, f, j) {
  35990. var U0 = U7,
  35991. k0 = X0,
  35992. a0 = a7,
  35993. T0 = 0;
  35994. C0.rotate(k0, S7, o);
  35995. for (var G0 = 0; y3U.Z6q(G0, u.vertices.length); G0++) {
  35996. var W0 = u.vertices[G0];
  35997. if (C0.rotate(U0, W0, f), u0(U0, U0, q), h0(a0, U0, e), y3U.R6q(n0(a0, k0), 0)) {
  35998. if (j)
  35999. return !0;
  36000. T0++;
  36001. var N0 = this.createContactEquation(k, n, m, u);
  36002. h0(a0, U0, e),
  36003. C0.copy(N0.normalA, k0);
  36004. var S0 = n0(a0, N0.normalA);
  36005. C0.scale(a0, N0.normalA, S0),
  36006. h0(N0.contactPointB, U0, n.position),
  36007. h0(N0.contactPointA, U0, a0),
  36008. h0(N0.contactPointA, N0.contactPointA, k.position),
  36009. this.contactEquations.push(N0),
  36010. this.enableFrictionReduction || this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(N0));
  36011. }
  36012. }
  36013. return this.enableFrictionReduction && this.enableFriction && T0 && this.frictionEquations.push(this.createFrictionFromAverage(T0)),
  36014. T0;
  36015. },
  36016. o0.prototype[y3U.O6q(i0.PARTICLE, i0.PLANE)] = o0.prototype.particlePlane = function (k, m, e, o, n, u, q, f, j) {
  36017. var U0 = U7,
  36018. k0 = X0;
  36019. f = f || 0,
  36020. h0(U0, e, q),
  36021. C0.rotate(k0, S7, f);
  36022. var a0 = n0(U0, k0);
  36023. if (y3U.V6q(a0, 0))
  36024. return 0;
  36025. if (j)
  36026. return !0;
  36027. var T0 = this.createContactEquation(n, k, u, m);
  36028. return C0.copy(T0.normalA, k0),
  36029. C0.scale(U0, T0.normalA, a0),
  36030. h0(T0.contactPointA, e, U0),
  36031. h0(T0.contactPointA, T0.contactPointA, n.position),
  36032. h0(T0.contactPointB, e, k.position),
  36033. this.contactEquations.push(T0),
  36034. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(T0)),
  36035. 1;
  36036. },
  36037. o0.prototype[y3U.k8q(i0.CIRCLE, i0.PARTICLE)] = o0.prototype.circleParticle = function (k, m, e, o, n, u, q, f, j) {
  36038. var U0 = U7;
  36039. if (h0(U0, q, e), y3U.G8q(C0.squaredLength(U0), Math.pow(m.radius, 2)))
  36040. return 0;
  36041. if (j)
  36042. return !0;
  36043. var k0 = this.createContactEquation(k, n, m, u);
  36044. return C0.copy(k0.normalA, U0),
  36045. C0.normalize(k0.normalA, k0.normalA),
  36046. C0.scale(k0.contactPointA, k0.normalA, m.radius),
  36047. u0(k0.contactPointA, k0.contactPointA, e),
  36048. h0(k0.contactPointA, k0.contactPointA, k.position),
  36049. h0(k0.contactPointB, q, n.position),
  36050. this.contactEquations.push(k0),
  36051. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(k0)),
  36052. 1;
  36053. }; {
  36054. var M7 = new B0(1),
  36055. T7 = C0.create(),
  36056. m7 = C0.create();
  36057. C0.create();
  36058. }
  36059. o0.prototype[y3U.N8q(i0.PLANE, i0.CAPSULE)] = o0.prototype.planeCapsule = function (k, m, e, o, n, u, q, f, j) {
  36060. var U0 = T7,
  36061. k0 = m7,
  36062. a0 = M7;
  36063. C0.set(U0, -u.length / 2, 0),
  36064. C0.rotate(U0, U0, f),
  36065. u0(U0, U0, q),
  36066. C0.set(k0, y3U.L8q(u.length, 2), 0),
  36067. C0.rotate(k0, k0, f),
  36068. u0(k0, k0, q),
  36069. a0.radius = u.radius;
  36070. var T0;
  36071. this.enableFrictionReduction && (T0 = this.enableFriction, this.enableFriction = !1);
  36072. var G0 = this.circlePlane(n, a0, U0, 0, k, m, e, o, j),
  36073. W0 = this.circlePlane(n, a0, k0, 0, k, m, e, o, j);
  36074. if (this.enableFrictionReduction && (this.enableFriction = T0), j)
  36075. return G0 || W0;
  36076. var N0 = G0 + W0;
  36077. return this.enableFrictionReduction && N0 && this.frictionEquations.push(this.createFrictionFromAverage(N0)),
  36078. N0;
  36079. },
  36080. o0.prototype[y3U.z8q(i0.CIRCLE, i0.PLANE)] = o0.prototype.circlePlane = function (k, m, e, o, n, u, q, f, j) {
  36081. var U0 = function () {
  36082. N0 = N0 || 0;
  36083. },
  36084. k0 = k,
  36085. a0 = m,
  36086. T0 = e,
  36087. G0 = n,
  36088. W0 = q,
  36089. N0 = f;
  36090. U0();
  36091. var S0 = U7,
  36092. I0 = X0,
  36093. m0 = a7;
  36094. h0(S0, T0, W0),
  36095. C0.rotate(I0, S7, N0);
  36096. var A0 = n0(I0, S0);
  36097. if (y3U.J8q(A0, a0.radius))
  36098. return 0;
  36099. if (j)
  36100. return !0;
  36101. var L0 = this.createContactEquation(G0, k0, u, m);
  36102. return C0.copy(L0.normalA, I0),
  36103. C0.scale(L0.contactPointB, L0.normalA, -a0.radius),
  36104. u0(L0.contactPointB, L0.contactPointB, T0),
  36105. h0(L0.contactPointB, L0.contactPointB, k0.position),
  36106. C0.scale(m0, L0.normalA, A0),
  36107. h0(L0.contactPointA, S0, m0),
  36108. u0(L0.contactPointA, L0.contactPointA, W0),
  36109. h0(L0.contactPointA, L0.contactPointA, G0.position),
  36110. this.contactEquations.push(L0),
  36111. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(L0)),
  36112. 1;
  36113. },
  36114. o0.prototype[i0.CONVEX] = o0.prototype[y3U.H8q(i0.CONVEX, i0.RECTANGLE)] = o0.prototype[i0.RECTANGLE] = o0.prototype.convexConvex = function (k, m, e, o, n, u, q, f, j, U0) {
  36115. var k0 = U7,
  36116. a0 = X0,
  36117. T0 = a7,
  36118. G0 = Q0,
  36119. W0 = W7,
  36120. N0 = c0,
  36121. S0 = H7,
  36122. I0 = I7,
  36123. m0 = 0,
  36124. U0 = "number" == typeof U0 ? U0 : 0,
  36125. A0 = o0.findSeparatingAxis(m, e, o, u, q, f, k0);
  36126. if (!A0)
  36127. return 0;
  36128. h0(S0, q, e),
  36129. y3U.h8q(n0(k0, S0), 0) && C0.scale(k0, k0, -1);
  36130. var L0 = o0.getClosestEdge(m, o, k0, !0),
  36131. z0 = o0.getClosestEdge(u, f, k0);
  36132. if (-1 === L0 || -1 === z0)
  36133. return 0;
  36134. for (var E0 = 0; y3U.F8q(2, E0); E0++) {
  36135. var v0 = L0,
  36136. J0 = z0,
  36137. t0 = m,
  36138. w0 = u,
  36139. g0 = e,
  36140. H0 = q,
  36141. M0 = o,
  36142. p0 = f,
  36143. e0 = k,
  36144. F0 = n;
  36145. if (y3U.M8q(0, E0)) {
  36146. var P0;
  36147. P0 = v0,
  36148. v0 = J0,
  36149. J0 = P0,
  36150. P0 = t0,
  36151. t0 = w0,
  36152. w0 = P0,
  36153. P0 = g0,
  36154. g0 = H0,
  36155. H0 = P0,
  36156. P0 = M0,
  36157. M0 = p0,
  36158. p0 = P0,
  36159. P0 = e0,
  36160. e0 = F0,
  36161. F0 = P0;
  36162. }
  36163. for (var O0 = J0; y3U.n8q(J0 + 2, O0); O0++) {
  36164. var b0 = w0.vertices[y3U.f8q((O0 + w0.vertices.length), w0.vertices.length)];
  36165. C0.rotate(a0, b0, p0),
  36166. u0(a0, a0, H0);
  36167. for (var d0 = 0, l0 = y3U.K8q(v0, 1); y3U.B8q(v0 + 2, l0); l0++) {
  36168. var j0 = t0.vertices[y3U.l8q((l0 + t0.vertices.length), t0.vertices.length)],
  36169. $ = t0.vertices[y3U.X8q((l0 + 1 + t0.vertices.length), t0.vertices.length)];
  36170. C0.rotate(T0, j0, M0),
  36171. C0.rotate(G0, $, M0),
  36172. u0(T0, T0, g0),
  36173. u0(G0, G0, g0),
  36174. h0(W0, G0, T0),
  36175. C0.rotate90cw(I0, W0),
  36176. C0.normalize(I0, I0),
  36177. h0(S0, a0, T0);
  36178. var R0 = n0(I0, S0);
  36179. (y3U.Y8q(l0, v0) && y3U.U0b(U0, R0) || y3U.T0b(l0, v0) && y3U.S0b(0, R0)) && d0++;
  36180. }
  36181. if (y3U.I0b(d0, 3)) {
  36182. if (j)
  36183. return !0;
  36184. var q0 = this.createContactEquation(e0, F0, t0, w0);
  36185. m0++;
  36186. var j0 = t0.vertices[y3U.C0b(v0, t0.vertices.length)],
  36187. $ = t0.vertices[y3U.v0b((v0 + 1), t0.vertices.length)];
  36188. C0.rotate(T0, j0, M0),
  36189. C0.rotate(G0, $, M0),
  36190. u0(T0, T0, g0),
  36191. u0(G0, G0, g0),
  36192. h0(W0, G0, T0),
  36193. C0.rotate90cw(q0.normalA, W0),
  36194. C0.normalize(q0.normalA, q0.normalA),
  36195. h0(S0, a0, T0);
  36196. var R0 = n0(q0.normalA, S0);
  36197. C0.scale(N0, q0.normalA, R0),
  36198. h0(q0.contactPointA, a0, g0),
  36199. h0(q0.contactPointA, q0.contactPointA, N0),
  36200. u0(q0.contactPointA, q0.contactPointA, g0),
  36201. h0(q0.contactPointA, q0.contactPointA, e0.position),
  36202. h0(q0.contactPointB, a0, H0),
  36203. u0(q0.contactPointB, q0.contactPointB, H0),
  36204. h0(q0.contactPointB, q0.contactPointB, F0.position),
  36205. this.contactEquations.push(q0),
  36206. this.enableFrictionReduction || this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(q0));
  36207. }
  36208. }
  36209. }
  36210. return this.enableFrictionReduction && this.enableFriction && m0 && this.frictionEquations.push(this.createFrictionFromAverage(m0)),
  36211. m0;
  36212. };
  36213. var p7 = C0.fromValues(0, 0);
  36214. o0.projectConvexOntoAxis = function (k, m, e, o, n) {
  36215. var u,
  36216. q,
  36217. f = null,
  36218. j = null,
  36219. U0 = p7;
  36220. C0.rotate(U0, o, -e);
  36221. for (var k0 = 0; y3U.t0b(k0, k.vertices.length); k0++)
  36222. u = k.vertices[k0], q = n0(u, U0), (y3U.y0b(null, f) || y3U.o0b(q, f)) && (f = q), (y3U.x0b(null, j) || y3U.p0b(j, q)) && (j = q);
  36223. if (y3U.q0b(j, f)) {
  36224. var a0 = j;
  36225. j = f,
  36226. f = a0;
  36227. }
  36228. var T0 = n0(m, o);
  36229. C0.set(n, j + T0, f + T0);
  36230. };
  36231. var x7 = C0.fromValues(0, 0),
  36232. $ = C0.fromValues(0, 0),
  36233. e7 = C0.fromValues(0, 0),
  36234. K7 = C0.fromValues(0, 0),
  36235. b7 = C0.fromValues(0, 0),
  36236. Y7 = C0.fromValues(0, 0);
  36237. o0.findSeparatingAxis = function (k, m, e, o, n, u, q) {
  36238. var f = null,
  36239. j = !1,
  36240. U0 = !1,
  36241. k0 = x7,
  36242. a0 = $,
  36243. T0 = e7,
  36244. G0 = K7,
  36245. W0 = b7,
  36246. N0 = Y7;
  36247. if (y3U.b0b(k, K0) && y3U.j0b(o, K0))
  36248. for (var S0 = 0; y3U.d0b(2, S0); S0++) {
  36249. var I0 = k,
  36250. m0 = e;
  36251. y3U.c0b(1, S0) && (I0 = o, m0 = u);
  36252. for (var A0 = 0; y3U.s0b(2, A0); A0++) {
  36253. y3U.Q0b(0, A0) ? C0.set(G0, 0, 1) : y3U.a7b(1, A0) && C0.set(G0, 1, 0),
  36254. y3U.W7b(0, m0) && C0.rotate(G0, G0, m0),
  36255. o0.projectConvexOntoAxis(k, m, e, G0, W0),
  36256. o0.projectConvexOntoAxis(o, n, u, G0, N0);
  36257. var L0 = W0,
  36258. z0 = N0,
  36259. E0 = !1;
  36260. y3U.m7b(W0[0], N0[0]) && (z0 = W0, L0 = N0, E0 = !0);
  36261. var v0 = y3U.A7b(z0[0], L0[1]);
  36262. j = y3U.w7b(0, v0),
  36263. (y3U.E7b(null, f) || y3U.e7b(v0, f)) && (C0.copy(q, G0), f = v0, U0 = j);
  36264. }
  36265. }
  36266. else
  36267. for (var S0 = 0; y3U.g7b(2, S0); S0++) {
  36268. var I0 = k,
  36269. m0 = e;
  36270. y3U.r7b(1, S0) && (I0 = o, m0 = u);
  36271. for (var A0 = 0; y3U.i7b(A0, I0.vertices.length); A0++) {
  36272. C0.rotate(a0, I0.vertices[A0], m0),
  36273. C0.rotate(T0, I0.vertices[y3U.u7b((A0 + 1), I0.vertices.length)], m0),
  36274. h0(k0, T0, a0),
  36275. C0.rotate90cw(G0, k0),
  36276. C0.normalize(G0, G0),
  36277. o0.projectConvexOntoAxis(k, m, e, G0, W0),
  36278. o0.projectConvexOntoAxis(o, n, u, G0, N0);
  36279. var L0 = W0,
  36280. z0 = N0,
  36281. E0 = !1;
  36282. y3U.P7b(W0[0], N0[0]) && (z0 = W0, L0 = N0, E0 = !0);
  36283. var v0 = y3U.D7b(z0[0], L0[1]);
  36284. j = y3U.Z7b(0, v0),
  36285. (y3U.R7b(null, f) || y3U.O7b(v0, f)) && (C0.copy(q, G0), f = v0, U0 = j);
  36286. }
  36287. }
  36288. return U0;
  36289. };
  36290. var V7 = C0.fromValues(0, 0),
  36291. Q7 = C0.fromValues(0, 0),
  36292. U4 = C0.fromValues(0, 0);
  36293. o0.getClosestEdge = function (k, m, e, o) {
  36294. var n = V7,
  36295. u = Q7,
  36296. q = U4;
  36297. C0.rotate(n, e, -m),
  36298. o && C0.scale(n, n, -1);
  36299. for (var f = -1, j = k.vertices.length, U0 = -1, k0 = 0; y3U.V7b(k0, j); k0++) {
  36300. h0(u, k.vertices[y3U.k4b((k0 + 1), j)], k.vertices[y3U.G4b(k0, j)]),
  36301. C0.rotate90cw(q, u),
  36302. C0.normalize(q, q);
  36303. var a0 = n0(q, n);
  36304. (-1 === f || y3U.N4b(a0, U0)) && (f = y3U.L4b(k0, j), U0 = a0);
  36305. }
  36306. return f;
  36307. };
  36308. var k4 = C0.create(),
  36309. a4 = C0.create(),
  36310. T4 = C0.create(),
  36311. G4 = C0.create(),
  36312. Z7 = C0.create(),
  36313. d7 = C0.create(),
  36314. l7 = C0.create();
  36315. o0.prototype[y3U.z4b(i0.CIRCLE, i0.HEIGHTFIELD)] = o0.prototype.circleHeightfield = function (k, m, e, o, n, u, q, f, j, U0) {
  36316. var k0 = u.data,
  36317. U0 = U0 || m.radius,
  36318. a0 = u.elementWidth,
  36319. T0 = a4,
  36320. G0 = k4,
  36321. W0 = Z7,
  36322. N0 = l7,
  36323. S0 = d7,
  36324. I0 = T4,
  36325. m0 = G4,
  36326. A0 = Math.floor(y3U.J4b((e[0] - U0 - q[0]), a0)),
  36327. L0 = Math.ceil(y3U.H4b((e[0] + U0 - q[0]), a0));
  36328. y3U.h4b(0, A0) && (A0 = 0),
  36329. y3U.F4b(L0, k0.length) && (L0 = y3U.M4b(k0.length, 1));
  36330. for (var z0 = k0[A0], E0 = k0[L0], v0 = A0; y3U.n4b(L0, v0); v0++)
  36331. y3U.f4b(k0[v0], E0) && (E0 = k0[v0]), y3U.K4b(k0[v0], z0) && (z0 = k0[v0]);
  36332. if (y3U.B4b(e[1] - U0, z0))
  36333. return j ? !1 : 0;
  36334. for (var J0 = !1, v0 = A0; y3U.l4b(L0, v0); v0++) {
  36335. C0.set(I0, y3U.X4b(v0, a0), k0[v0]),
  36336. C0.set(m0, y3U.Y4b((v0 + 1), a0), k0[v0 + 1]),
  36337. C0.add(I0, I0, q),
  36338. C0.add(m0, m0, q),
  36339. C0.sub(S0, m0, I0),
  36340. C0.rotate(S0, S0, y3U.U3b(Math.PI, 2)),
  36341. C0.normalize(S0, S0),
  36342. C0.scale(G0, S0, -U0),
  36343. C0.add(G0, G0, e),
  36344. C0.sub(T0, G0, I0);
  36345. var t0 = C0.dot(T0, S0);
  36346. if (y3U.T3b(G0[0], I0[0]) && y3U.S3b(G0[0], m0[0]) && y3U.I3b(0, t0)) {
  36347. if (j)
  36348. return !0;
  36349. J0 = !0,
  36350. C0.scale(T0, S0, -t0),
  36351. C0.add(W0, G0, T0),
  36352. C0.copy(N0, S0);
  36353. var w0 = this.createContactEquation(n, k, u, m);
  36354. C0.copy(w0.normalA, N0),
  36355. C0.scale(w0.contactPointB, w0.normalA, -U0),
  36356. u0(w0.contactPointB, w0.contactPointB, e),
  36357. h0(w0.contactPointB, w0.contactPointB, k.position),
  36358. C0.copy(w0.contactPointA, W0),
  36359. C0.sub(w0.contactPointA, w0.contactPointA, n.position),
  36360. this.contactEquations.push(w0),
  36361. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(w0));
  36362. }
  36363. }
  36364. if (J0 = !1, y3U.C3b(U0, 0))
  36365. for (var v0 = A0; y3U.v3b(L0, v0); v0++)
  36366. if (C0.set(I0, y3U.t3b(v0, a0), k0[v0]), C0.add(I0, I0, q), C0.sub(T0, e, I0), y3U.y3b(C0.squaredLength(T0), Math.pow(U0, 2))) {
  36367. if (j)
  36368. return !0;
  36369. J0 = !0;
  36370. var w0 = this.createContactEquation(n, k, u, m);
  36371. C0.copy(w0.normalA, T0),
  36372. C0.normalize(w0.normalA, w0.normalA),
  36373. C0.scale(w0.contactPointB, w0.normalA, -U0),
  36374. u0(w0.contactPointB, w0.contactPointB, e),
  36375. h0(w0.contactPointB, w0.contactPointB, k.position),
  36376. h0(w0.contactPointA, I0, q),
  36377. u0(w0.contactPointA, w0.contactPointA, q),
  36378. h0(w0.contactPointA, w0.contactPointA, n.position),
  36379. this.contactEquations.push(w0),
  36380. this.enableFriction && this.frictionEquations.push(this.createFrictionFromContact(w0));
  36381. }
  36382. return J0 ? 1 : 0;
  36383. };
  36384. var R7 = C0.create(),
  36385. c7 = C0.create(),
  36386. X7 = C0.create(),
  36387. O7 = new v7([C0.create(), C0.create(), C0.create(), C0.create()]);
  36388. o0.prototype[y3U.o3b(i0.RECTANGLE, i0.HEIGHTFIELD)] = o0.prototype[y3U.x3b(i0.CONVEX, i0.HEIGHTFIELD)] = o0.prototype.convexHeightfield = function (k, m, e, o, n, u, q, f, j) {
  36389. var U0 = u.data,
  36390. k0 = u.elementWidth,
  36391. a0 = R7,
  36392. T0 = c7,
  36393. G0 = X7,
  36394. W0 = O7,
  36395. N0 = Math.floor(y3U.p3b((k.aabb.lowerBound[0] - q[0]), k0)),
  36396. S0 = Math.ceil(y3U.q3b((k.aabb.upperBound[0] - q[0]), k0));
  36397. y3U.b3b(0, N0) && (N0 = 0),
  36398. y3U.j3b(S0, U0.length) && (S0 = y3U.d3b(U0.length, 1));
  36399. for (var I0 = U0[N0], m0 = U0[S0], A0 = N0; y3U.c3b(S0, A0); A0++)
  36400. y3U.s3b(U0[A0], m0) && (m0 = U0[A0]), y3U.Q3b(U0[A0], I0) && (I0 = U0[A0]);
  36401. if (y3U.a9b(k.aabb.lowerBound[1], I0))
  36402. return j ? !1 : 0;
  36403. for (var L0 = 0, A0 = N0; y3U.W9b(S0, A0); A0++) {
  36404. C0.set(a0, y3U.m9b(A0, k0), U0[A0]),
  36405. C0.set(T0, y3U.A9b((A0 + 1), k0), U0[A0 + 1]),
  36406. C0.add(a0, a0, q),
  36407. C0.add(T0, T0, q);
  36408. var z0 = 100;
  36409. C0.set(G0, y3U.w9b(.5, (T0[0] + a0[0])), y3U.E9b(.5, (T0[1] + a0[1] - z0))),
  36410. C0.sub(W0.vertices[0], T0, G0),
  36411. C0.sub(W0.vertices[1], a0, G0),
  36412. C0.copy(W0.vertices[2], W0.vertices[1]),
  36413. C0.copy(W0.vertices[3], W0.vertices[0]),
  36414. W0.vertices[2][1] -= z0,
  36415. W0.vertices[3][1] -= z0,
  36416. L0 += this.convexConvex(k, m, e, o, n, W0, G0, 0, j);
  36417. }
  36418. return L0;
  36419. };
  36420. }, {
  36421. "../equations/ContactEquation" : 22,
  36422. "../equations/Equation" : 23,
  36423. "../equations/FrictionEquation" : 24,
  36424. "../math/vec2" : 31,
  36425. "../objects/Body" : 32,
  36426. "../shapes/Circle" : 38,
  36427. "../shapes/Convex" : 39,
  36428. "../shapes/Rectangle" : 44,
  36429. "../shapes/Shape" : 45,
  36430. "../utils/TupleDictionary" : 49,
  36431. "../utils/Utils" : 50,
  36432. __browserify_Buffer : 1,
  36433. __browserify_process : 2
  36434. }
  36435. ],
  36436. 14 : [function (G0, W0) {
  36437. function N0() {
  36438. I0.call(this, I0.SAP),
  36439. this.axisList = [],
  36440. this.axisIndex = 0;
  36441. var e = this;
  36442. this._addBodyHandler = function (k) {
  36443. e.axisList.push(k.body);
  36444. },
  36445. this._removeBodyHandler = function (k) {
  36446. var m = e.axisList.indexOf(k.body);
  36447. -1 !== m && e.axisList.splice(m, 1);
  36448. };
  36449. }
  36450. var S0 = (G0("__browserify_process"), G0("__browserify_Buffer"), G0("../utils/Utils")),
  36451. I0 = G0("../collision/Broadphase");
  36452. W0.exports = N0,
  36453. N0.prototype = new I0,
  36454. N0.prototype.setWorld = function (k) {
  36455. this.axisList.length = 0,
  36456. S0.appendArray(this.axisList, k.bodies),
  36457. k.off("addBody", this._addBodyHandler).off("removeBody", this._removeBodyHandler),
  36458. k.on("addBody", this._addBodyHandler).on("removeBody", this._removeBodyHandler),
  36459. this.world = k;
  36460. },
  36461. N0.sortAxisList = function (m, e) {
  36462. var o = function () {
  36463. e = y3U.e9b(0, e);
  36464. };
  36465. o();
  36466. for (var n = 1, u = m.length; y3U.g9b(u, n); n++) {
  36467. var q = function (k) {
  36468. m[U0 + 1] = k[U0];
  36469. },
  36470. f = function (k) {
  36471. m[U0 + 1] = k;
  36472. };
  36473. for (var j = m[n], U0 = y3U.r9b(n, 1); y3U.i9b(U0, 0) && !(y3U.u9b(m[U0].aabb.lowerBound[e], j.aabb.lowerBound[e])); U0--)
  36474. q(m);
  36475. f(j);
  36476. }
  36477. return m;
  36478. },
  36479. N0.prototype.getCollisionPairs = function () {
  36480. var m = function (k) {
  36481. o.length = k;
  36482. },
  36483. e = this.axisList,
  36484. o = this.result,
  36485. n = this.axisIndex;
  36486. m(0);
  36487. for (var u = e.length; u--; ) {
  36488. var q = e[u];
  36489. q.aabbNeedsUpdate && q.updateAABB();
  36490. }
  36491. N0.sortAxisList(e, n);
  36492. for (var f = 0, j = y3U.P9b(0, e.length); y3U.D9b(f, j); f++)
  36493. for (var U0 = e[f], k0 = f + 1; y3U.Z9b(j, k0); k0++) {
  36494. var a0 = e[k0],
  36495. T0 = y3U.R9b(a0.aabb.lowerBound[n], U0.aabb.upperBound[n]);
  36496. if (!T0)
  36497. break;
  36498. I0.canCollide(U0, a0) && this.boundingVolumeCheck(U0, a0) && o.push(U0, a0);
  36499. }
  36500. return o;
  36501. };
  36502. }, {
  36503. "../collision/Broadphase" : 10,
  36504. "../utils/Utils" : 50,
  36505. __browserify_Buffer : 1,
  36506. __browserify_process : 2
  36507. }
  36508. ],
  36509. 15 : [function (n, u) {
  36510. function q(k, m, e, o) {
  36511. this.type = e,
  36512. o = j.defaults(o, {
  36513. collideConnected : !0,
  36514. wakeUpBodies : !0
  36515. }),
  36516. this.equations = [],
  36517. this.bodyA = k,
  36518. this.bodyB = m,
  36519. this.collideConnected = o.collideConnected,
  36520. o.wakeUpBodies && (k && k.wakeUp(), m && m.wakeUp());
  36521. }
  36522. var f = function (k) {
  36523. u.exports = k;
  36524. };
  36525. n("__browserify_process"),
  36526. n("__browserify_Buffer");
  36527. f(q);
  36528. var j = n("../utils/Utils");
  36529. q.prototype.update = function () {
  36530. throw new Error("method update() not implmemented in this Constraint subclass!");
  36531. },
  36532. q.DISTANCE = 1,
  36533. q.GEAR = 2,
  36534. q.LOCK = 3,
  36535. q.PRISMATIC = 4,
  36536. q.REVOLUTE = 5,
  36537. q.prototype.setStiffness = function (k) {
  36538. for (var m = this.equations, e = 0; y3U.O9b(e, m.length); e++) {
  36539. var o = m[e];
  36540. o.stiffness = k,
  36541. o.needsUpdate = !0;
  36542. }
  36543. },
  36544. q.prototype.setRelaxation = function (k) {
  36545. for (var m = this.equations, e = 0; y3U.V9b(e, m.length); e++) {
  36546. var o = m[e];
  36547. o.relaxation = k,
  36548. o.needsUpdate = !0;
  36549. }
  36550. };
  36551. }, {
  36552. "../utils/Utils" : 50,
  36553. __browserify_Buffer : 1,
  36554. __browserify_process : 2
  36555. }
  36556. ],
  36557. 16 : [function (m0, A0) {
  36558. function L0(n, u, q) {
  36559. var f = function () {
  36560. G0 = "undefined" == typeof q.maxForce ? Number.MAX_VALUE : q.maxForce;
  36561. };
  36562. q = J0.defaults(q, {
  36563. localAnchorA : [0, 0],
  36564. localAnchorB : [0, 0]
  36565. }),
  36566. z0.call(this, n, u, z0.DISTANCE, q),
  36567. this.localAnchorA = v0.fromValues(q.localAnchorA[0], q.localAnchorA[1]),
  36568. this.localAnchorB = v0.fromValues(q.localAnchorB[0], q.localAnchorB[1]);
  36569. var j = this.localAnchorA,
  36570. U0 = this.localAnchorB;
  36571. if (this.distance = 0, "number" == typeof q.distance)
  36572. this.distance = q.distance;
  36573. else {
  36574. var k0 = v0.create(),
  36575. a0 = v0.create(),
  36576. T0 = v0.create();
  36577. v0.rotate(k0, j, n.angle),
  36578. v0.rotate(a0, U0, u.angle),
  36579. v0.add(T0, u.position, a0),
  36580. v0.sub(T0, T0, k0),
  36581. v0.sub(T0, T0, n.position),
  36582. this.distance = v0.length(T0);
  36583. }
  36584. var G0;
  36585. f();
  36586. var W0 = new E0(n, u, -G0, G0);
  36587. this.equations = [W0],
  36588. this.maxForce = G0;
  36589. var T0 = v0.create(),
  36590. N0 = v0.create(),
  36591. S0 = v0.create(),
  36592. I0 = this;
  36593. W0.computeGq = function () {
  36594. var k = this.bodyA,
  36595. m = this.bodyB,
  36596. e = k.position,
  36597. o = m.position;
  36598. return v0.rotate(N0, j, k.angle),
  36599. v0.rotate(S0, U0, m.angle),
  36600. v0.add(T0, o, S0),
  36601. v0.sub(T0, T0, N0),
  36602. v0.sub(T0, T0, e),
  36603. y3U.k5b(v0.length(T0), I0.distance);
  36604. },
  36605. this.setMaxForce(G0),
  36606. this.upperLimitEnabled = !1,
  36607. this.upperLimit = 1,
  36608. this.lowerLimitEnabled = !1,
  36609. this.lowerLimit = 0,
  36610. this.position = 0;
  36611. }
  36612. var z0 = (m0("__browserify_process"), m0("__browserify_Buffer"), m0("./Constraint")),
  36613. E0 = m0("../equations/Equation"),
  36614. v0 = m0("../math/vec2"),
  36615. J0 = m0("../utils/Utils");
  36616. A0.exports = L0,
  36617. L0.prototype = new z0;
  36618. var t0 = v0.create(),
  36619. w0 = v0.create(),
  36620. g0 = v0.create();
  36621. L0.prototype.update = function () {
  36622. var k = this.equations[0],
  36623. m = this.bodyA,
  36624. e = this.bodyB,
  36625. o = (this.distance, m.position),
  36626. n = e.position,
  36627. u = this.equations[0],
  36628. q = k.G;
  36629. v0.rotate(w0, this.localAnchorA, m.angle),
  36630. v0.rotate(g0, this.localAnchorB, e.angle),
  36631. v0.add(t0, n, g0),
  36632. v0.sub(t0, t0, w0),
  36633. v0.sub(t0, t0, o),
  36634. this.position = v0.length(t0);
  36635. var f = !1;
  36636. if (this.upperLimitEnabled && y3U.G5b(this.position, this.upperLimit) && (u.maxForce = 0, u.minForce = -this.maxForce, this.distance = this.upperLimit, f = !0), this.lowerLimitEnabled && y3U.N5b(this.position, this.lowerLimit) && (u.maxForce = this.maxForce, u.minForce = 0, this.distance = this.lowerLimit, f = !0), (this.lowerLimitEnabled || this.upperLimitEnabled) && !f)
  36637. return void(u.enabled = !1);
  36638. u.enabled = !0,
  36639. v0.normalize(t0, t0);
  36640. var j = v0.crossLength(w0, t0),
  36641. U0 = v0.crossLength(g0, t0);
  36642. q[0] = -t0[0],
  36643. q[1] = -t0[1],
  36644. q[2] = -j,
  36645. q[3] = t0[0],
  36646. q[4] = t0[1],
  36647. q[5] = U0;
  36648. },
  36649. L0.prototype.setMaxForce = function (k) {
  36650. var m = this.equations[0];
  36651. m.minForce = -k,
  36652. m.maxForce = k;
  36653. },
  36654. L0.prototype.getMaxForce = function () {
  36655. var k = this.equations[0];
  36656. return k.maxForce;
  36657. };
  36658. }, {
  36659. "../equations/Equation" : 23,
  36660. "../math/vec2" : 31,
  36661. "../utils/Utils" : 50,
  36662. "./Constraint" : 15,
  36663. __browserify_Buffer : 1,
  36664. __browserify_process : 2
  36665. }
  36666. ],
  36667. 17 : [function (o, n) {
  36668. function u(k, m, e) {
  36669. e = e || {},
  36670. q.call(this, k, m, q.GEAR, e),
  36671. this.ratio = "number" == typeof e.ratio ? e.ratio : 1,
  36672. this.angle = "number" == typeof e.angle ? e.angle : y3U.L5b(m.angle, this.ratio * k.angle),
  36673. e.angle = this.angle,
  36674. e.ratio = this.ratio,
  36675. this.equations = [new f(k, m, e)],
  36676. "number" == typeof e.maxTorque && this.setMaxTorque(e.maxTorque);
  36677. } {
  36678. var q = (o("__browserify_process"), o("__browserify_Buffer"), o("./Constraint")),
  36679. f = (o("../equations/Equation"), o("../equations/AngleLockEquation"));
  36680. o("../math/vec2");
  36681. }
  36682. n.exports = u,
  36683. u.prototype = new q,
  36684. u.prototype.update = function () {
  36685. var k = this.equations[0];
  36686. y3U.z5b(k.ratio, this.ratio) && k.setRatio(this.ratio),
  36687. k.angle = this.angle;
  36688. },
  36689. u.prototype.setMaxTorque = function (k) {
  36690. this.equations[0].setMaxTorque(k);
  36691. },
  36692. u.prototype.getMaxTorque = function () {
  36693. return this.equations[0].maxForce;
  36694. };
  36695. }, {
  36696. "../equations/AngleLockEquation" : 21,
  36697. "../equations/Equation" : 23,
  36698. "../math/vec2" : 31,
  36699. "./Constraint" : 15,
  36700. __browserify_Buffer : 1,
  36701. __browserify_process : 2
  36702. }
  36703. ],
  36704. 18 : [function (T0, G0) {
  36705. function W0(k, m, e) {
  36706. e = e || {},
  36707. N0.call(this, k, m, N0.LOCK, e);
  36708. var o = "undefined" == typeof e.maxForce ? Number.MAX_VALUE : e.maxForce,
  36709. n = (e.localAngleB || 0, new I0(k, m, -o, o)),
  36710. u = new I0(k, m, -o, o),
  36711. q = new I0(k, m, -o, o),
  36712. f = S0.create(),
  36713. j = S0.create(),
  36714. U0 = this;
  36715. n.computeGq = function () {
  36716. return S0.rotate(f, U0.localOffsetB, k.angle),
  36717. S0.sub(j, m.position, k.position),
  36718. S0.sub(j, j, f),
  36719. j[0];
  36720. },
  36721. u.computeGq = function () {
  36722. return S0.rotate(f, U0.localOffsetB, k.angle),
  36723. S0.sub(j, m.position, k.position),
  36724. S0.sub(j, j, f),
  36725. j[1];
  36726. };
  36727. var k0 = S0.create(),
  36728. a0 = S0.create();
  36729. q.computeGq = function () {
  36730. return S0.rotate(k0, U0.localOffsetB, y3U.J5b(m.angle, U0.localAngleB)),
  36731. S0.scale(k0, k0, -1),
  36732. S0.sub(j, k.position, m.position),
  36733. S0.add(j, j, k0),
  36734. S0.rotate(a0, k0, -Math.PI / 2),
  36735. S0.normalize(a0, a0),
  36736. S0.dot(j, a0);
  36737. },
  36738. this.localOffsetB = S0.create(),
  36739. e.localOffsetB ? S0.copy(this.localOffsetB, e.localOffsetB) : (S0.sub(this.localOffsetB, m.position, k.position), S0.rotate(this.localOffsetB, this.localOffsetB, -k.angle)),
  36740. this.localAngleB = 0,
  36741. this.localAngleB = "number" == typeof e.localAngleB ? e.localAngleB : y3U.H5b(m.angle, k.angle),
  36742. this.equations.push(n, u, q),
  36743. this.setMaxForce(o);
  36744. }
  36745. var N0 = (T0("__browserify_process"), T0("__browserify_Buffer"), T0("./Constraint")),
  36746. S0 = T0("../math/vec2"),
  36747. I0 = T0("../equations/Equation");
  36748. G0.exports = W0,
  36749. W0.prototype = new N0,
  36750. W0.prototype.setMaxForce = function (k) {
  36751. for (var m = this.equations, e = 0; y3U.h5b(e, this.equations.length); e++)
  36752. m[e].maxForce = k, m[e].minForce = -k;
  36753. },
  36754. W0.prototype.getMaxForce = function () {
  36755. return this.equations[0].maxForce;
  36756. };
  36757. var m0 = S0.create(),
  36758. A0 = S0.create(),
  36759. L0 = S0.create(),
  36760. z0 = S0.fromValues(1, 0),
  36761. E0 = S0.fromValues(0, 1);
  36762. W0.prototype.update = function () {
  36763. var k = this.equations[0],
  36764. m = this.equations[1],
  36765. e = this.equations[2],
  36766. o = this.bodyA,
  36767. n = this.bodyB;
  36768. S0.rotate(m0, this.localOffsetB, o.angle),
  36769. S0.rotate(A0, this.localOffsetB, y3U.F5b(n.angle, this.localAngleB)),
  36770. S0.scale(A0, A0, -1),
  36771. S0.rotate(L0, A0, y3U.M5b(Math.PI, 2)),
  36772. S0.normalize(L0, L0),
  36773. k.G[0] = -1,
  36774. k.G[1] = 0,
  36775. k.G[2] = -S0.crossLength(m0, z0),
  36776. k.G[3] = 1,
  36777. m.G[0] = 0,
  36778. m.G[1] = -1,
  36779. m.G[2] = -S0.crossLength(m0, E0),
  36780. m.G[4] = 1,
  36781. e.G[0] = -L0[0],
  36782. e.G[1] = -L0[1],
  36783. e.G[3] = L0[0],
  36784. e.G[4] = L0[1],
  36785. e.G[5] = S0.crossLength(A0, L0);
  36786. };
  36787. }, {
  36788. "../equations/Equation" : 23,
  36789. "../math/vec2" : 31,
  36790. "./Constraint" : 15,
  36791. __browserify_Buffer : 1,
  36792. __browserify_process : 2
  36793. }
  36794. ],
  36795. 19 : [function (E0, v0) {
  36796. function J0(f, j, U0) {
  36797. U0 = U0 || {},
  36798. t0.call(this, f, j, t0.PRISMATIC, U0);
  36799. var k0 = H0.fromValues(0, 0),
  36800. a0 = H0.fromValues(1, 0),
  36801. T0 = H0.fromValues(0, 0);
  36802. U0.localAnchorA && H0.copy(k0, U0.localAnchorA),
  36803. U0.localAxisA && H0.copy(a0, U0.localAxisA),
  36804. U0.localAnchorB && H0.copy(T0, U0.localAnchorB),
  36805. this.localAnchorA = k0,
  36806. this.localAnchorB = T0,
  36807. this.localAxisA = a0;
  36808. var G0 = this.maxForce = "undefined" != typeof U0.maxForce ? U0.maxForce : Number.MAX_VALUE,
  36809. W0 = new g0(f, j, -G0, G0),
  36810. N0 = new H0.create,
  36811. S0 = new H0.create,
  36812. I0 = new H0.create,
  36813. m0 = new H0.create;
  36814. if (W0.computeGq = function () {
  36815. return H0.dot(I0, m0);
  36816. }, W0.updateJacobian = function () {
  36817. var k = this.G,
  36818. m = f.position,
  36819. e = j.position;
  36820. H0.rotate(N0, k0, f.angle),
  36821. H0.rotate(S0, T0, j.angle),
  36822. H0.add(I0, e, S0),
  36823. H0.sub(I0, I0, m),
  36824. H0.sub(I0, I0, N0),
  36825. H0.rotate(m0, a0, f.angle + y3U.n5b(Math.PI, 2)),
  36826. k[0] = -m0[0],
  36827. k[1] = -m0[1],
  36828. k[2] = -H0.crossLength(N0, m0) + H0.crossLength(m0, I0),
  36829. k[3] = m0[0],
  36830. k[4] = m0[1],
  36831. k[5] = H0.crossLength(S0, m0);
  36832. }, this.equations.push(W0), !U0.disableRotationalLock) {
  36833. var A0 = new M0(f, j, -G0, G0);
  36834. this.equations.push(A0);
  36835. }
  36836. this.position = 0,
  36837. this.velocity = 0,
  36838. this.lowerLimitEnabled = "undefined" != typeof U0.lowerLimit ? !0 : !1,
  36839. this.upperLimitEnabled = "undefined" != typeof U0.upperLimit ? !0 : !1,
  36840. this.lowerLimit = "undefined" != typeof U0.lowerLimit ? U0.lowerLimit : 0,
  36841. this.upperLimit = "undefined" != typeof U0.upperLimit ? U0.upperLimit : 1,
  36842. this.upperLimitEquation = new w0(f, j),
  36843. this.lowerLimitEquation = new w0(f, j),
  36844. this.upperLimitEquation.minForce = this.lowerLimitEquation.minForce = 0,
  36845. this.upperLimitEquation.maxForce = this.lowerLimitEquation.maxForce = G0,
  36846. this.motorEquation = new g0(f, j),
  36847. this.motorEnabled = !1,
  36848. this.motorSpeed = 0; {
  36849. var L0 = this,
  36850. z0 = this.motorEquation;
  36851. z0.computeGW;
  36852. }
  36853. z0.computeGq = function () {
  36854. return 0;
  36855. },
  36856. z0.computeGW = function () {
  36857. var k = this.G,
  36858. m = this.bodyA,
  36859. e = this.bodyB,
  36860. o = m.velocity,
  36861. n = e.velocity,
  36862. u = m.angularVelocity,
  36863. q = e.angularVelocity;
  36864. return this.gmult(k, o, u, n, q) + L0.motorSpeed;
  36865. };
  36866. }
  36867. var t0 = (E0("__browserify_process"), E0("__browserify_Buffer"), E0("./Constraint")),
  36868. w0 = E0("../equations/ContactEquation"),
  36869. g0 = E0("../equations/Equation"),
  36870. H0 = E0("../math/vec2"),
  36871. M0 = E0("../equations/RotationalLockEquation");
  36872. v0.exports = J0,
  36873. J0.prototype = new t0;
  36874. var p0 = H0.create(),
  36875. e0 = H0.create(),
  36876. F0 = H0.create(),
  36877. P0 = H0.create(),
  36878. O0 = H0.create(),
  36879. b0 = H0.create();
  36880. J0.prototype.update = function () {
  36881. var k = this.equations,
  36882. m = k[0],
  36883. e = this.upperLimit,
  36884. o = this.lowerLimit,
  36885. n = this.upperLimitEquation,
  36886. u = this.lowerLimitEquation,
  36887. q = this.bodyA,
  36888. f = this.bodyB,
  36889. j = this.localAxisA,
  36890. U0 = this.localAnchorA,
  36891. k0 = this.localAnchorB;
  36892. m.updateJacobian(),
  36893. H0.rotate(p0, j, q.angle),
  36894. H0.rotate(P0, U0, q.angle),
  36895. H0.add(e0, P0, q.position),
  36896. H0.rotate(O0, k0, f.angle),
  36897. H0.add(F0, O0, f.position);
  36898. var a0 = this.position = y3U.f5b(H0.dot(F0, p0), H0.dot(e0, p0));
  36899. if (this.motorEnabled) {
  36900. var T0 = this.motorEquation.G;
  36901. T0[0] = p0[0],
  36902. T0[1] = p0[1],
  36903. T0[2] = H0.crossLength(p0, O0),
  36904. T0[3] = -p0[0],
  36905. T0[4] = -p0[1],
  36906. T0[5] = -H0.crossLength(p0, P0);
  36907. }
  36908. if (this.upperLimitEnabled && y3U.K5b(a0, e))
  36909. H0.scale(n.normalA, p0, -1), H0.sub(n.contactPointA, e0, q.position), H0.sub(n.contactPointB, F0, f.position), H0.scale(b0, p0, e), H0.add(n.contactPointA, n.contactPointA, b0), -1 === k.indexOf(n) && k.push(n);
  36910. else {
  36911. var G0 = k.indexOf(n);
  36912. -1 !== G0 && k.splice(G0, 1);
  36913. }
  36914. if (this.lowerLimitEnabled && y3U.B5b(o, a0))
  36915. H0.scale(u.normalA, p0, 1), H0.sub(u.contactPointA, e0, q.position), H0.sub(u.contactPointB, F0, f.position), H0.scale(b0, p0, o), H0.sub(u.contactPointB, u.contactPointB, b0), -1 === k.indexOf(u) && k.push(u);
  36916. else {
  36917. var G0 = k.indexOf(u);
  36918. -1 !== G0 && k.splice(G0, 1);
  36919. }
  36920. },
  36921. J0.prototype.enableMotor = function () {
  36922. this.motorEnabled || (this.equations.push(this.motorEquation), this.motorEnabled = !0);
  36923. },
  36924. J0.prototype.disableMotor = function () {
  36925. if (this.motorEnabled) {
  36926. var k = this.equations.indexOf(this.motorEquation);
  36927. this.equations.splice(k, 1),
  36928. this.motorEnabled = !1;
  36929. }
  36930. },
  36931. J0.prototype.setLimits = function (k, m) {
  36932. "number" == typeof k ? (this.lowerLimit = k, this.lowerLimitEnabled = !0) : (this.lowerLimit = k, this.lowerLimitEnabled = !1),
  36933. "number" == typeof m ? (this.upperLimit = m, this.upperLimitEnabled = !0) : (this.upperLimit = m, this.upperLimitEnabled = !1);
  36934. };
  36935. }, {
  36936. "../equations/ContactEquation" : 22,
  36937. "../equations/Equation" : 23,
  36938. "../equations/RotationalLockEquation" : 25,
  36939. "../math/vec2" : 31,
  36940. "./Constraint" : 15,
  36941. __browserify_Buffer : 1,
  36942. __browserify_process : 2
  36943. }
  36944. ],
  36945. 20 : [function (G0, W0) {
  36946. function N0(k, m, e) {
  36947. e = e || {},
  36948. I0.call(this, k, m, I0.REVOLUTE, e);
  36949. var o = this.maxForce = "undefined" != typeof e.maxForce ? e.maxForce : Number.MAX_VALUE;
  36950. this.pivotA = z0.create(),
  36951. this.pivotB = z0.create(),
  36952. e.worldPivot ? (z0.sub(this.pivotA, e.worldPivot, k.position), z0.sub(this.pivotB, e.worldPivot, m.position), z0.rotate(this.pivotA, this.pivotA, -k.angle), z0.rotate(this.pivotB, this.pivotB, -m.angle)) : (z0.copy(this.pivotA, e.localPivotA), z0.copy(this.pivotB, e.localPivotB));
  36953. var n = this.equations = [new m0(k, m, -o, o), new m0(k, m, -o, o)],
  36954. u = n[0],
  36955. q = n[1],
  36956. f = this;
  36957. u.computeGq = function () {
  36958. return z0.rotate(E0, f.pivotA, k.angle),
  36959. z0.rotate(v0, f.pivotB, m.angle),
  36960. z0.add(w0, m.position, v0),
  36961. z0.sub(w0, w0, k.position),
  36962. z0.sub(w0, w0, E0),
  36963. z0.dot(w0, J0);
  36964. },
  36965. q.computeGq = function () {
  36966. return z0.rotate(E0, f.pivotA, k.angle),
  36967. z0.rotate(v0, f.pivotB, m.angle),
  36968. z0.add(w0, m.position, v0),
  36969. z0.sub(w0, w0, k.position),
  36970. z0.sub(w0, w0, E0),
  36971. z0.dot(w0, t0);
  36972. },
  36973. q.minForce = u.minForce = -o,
  36974. q.maxForce = u.maxForce = o,
  36975. this.motorEquation = new A0(k, m),
  36976. this.motorEnabled = !1,
  36977. this.angle = 0,
  36978. this.lowerLimitEnabled = !1,
  36979. this.upperLimitEnabled = !1,
  36980. this.lowerLimit = 0,
  36981. this.upperLimit = 0,
  36982. this.upperLimitEquation = new L0(k, m),
  36983. this.lowerLimitEquation = new L0(k, m),
  36984. this.upperLimitEquation.minForce = 0,
  36985. this.lowerLimitEquation.maxForce = 0;
  36986. }
  36987. var S0 = function (k) {
  36988. W0.exports = k;
  36989. },
  36990. I0 = (G0("__browserify_process"), G0("__browserify_Buffer"), G0("./Constraint")),
  36991. m0 = G0("../equations/Equation"),
  36992. A0 = G0("../equations/RotationalVelocityEquation"),
  36993. L0 = G0("../equations/RotationalLockEquation"),
  36994. z0 = G0("../math/vec2");
  36995. S0(N0);
  36996. var E0 = z0.create(),
  36997. v0 = z0.create(),
  36998. J0 = z0.fromValues(1, 0),
  36999. t0 = z0.fromValues(0, 1),
  37000. w0 = z0.create();
  37001. N0.prototype = new I0,
  37002. N0.prototype.setLimits = function (k, m) {
  37003. "number" == typeof k ? (this.lowerLimit = k, this.lowerLimitEnabled = !0) : (this.lowerLimit = k, this.lowerLimitEnabled = !1),
  37004. "number" == typeof m ? (this.upperLimit = m, this.upperLimitEnabled = !0) : (this.upperLimit = m, this.upperLimitEnabled = !1);
  37005. },
  37006. N0.prototype.update = function () {
  37007. var k = this.bodyA,
  37008. m = this.bodyB,
  37009. e = this.pivotA,
  37010. o = this.pivotB,
  37011. n = this.equations,
  37012. u = (n[0], n[1], n[0]),
  37013. q = n[1],
  37014. f = this.upperLimit,
  37015. j = this.lowerLimit,
  37016. U0 = this.upperLimitEquation,
  37017. k0 = this.lowerLimitEquation,
  37018. a0 = this.angle = y3U.l5b(m.angle, k.angle);
  37019. if (this.upperLimitEnabled && y3U.X5b(a0, f))
  37020. U0.angle = f, -1 === n.indexOf(U0) && n.push(U0);
  37021. else {
  37022. var T0 = n.indexOf(U0);
  37023. -1 !== T0 && n.splice(T0, 1);
  37024. }
  37025. if (this.lowerLimitEnabled && y3U.Y5b(j, a0))
  37026. k0.angle = j, -1 === n.indexOf(k0) && n.push(k0);
  37027. else {
  37028. var T0 = n.indexOf(k0);
  37029. -1 !== T0 && n.splice(T0, 1);
  37030. }
  37031. z0.rotate(E0, e, k.angle),
  37032. z0.rotate(v0, o, m.angle),
  37033. u.G[0] = -1,
  37034. u.G[1] = 0,
  37035. u.G[2] = -z0.crossLength(E0, J0),
  37036. u.G[3] = 1,
  37037. u.G[4] = 0,
  37038. u.G[5] = z0.crossLength(v0, J0),
  37039. q.G[0] = 0,
  37040. q.G[1] = -1,
  37041. q.G[2] = -z0.crossLength(E0, t0),
  37042. q.G[3] = 0,
  37043. q.G[4] = 1,
  37044. q.G[5] = z0.crossLength(v0, t0);
  37045. },
  37046. N0.prototype.enableMotor = function () {
  37047. this.motorEnabled || (this.equations.push(this.motorEquation), this.motorEnabled = !0);
  37048. },
  37049. N0.prototype.disableMotor = function () {
  37050. if (this.motorEnabled) {
  37051. var k = this.equations.indexOf(this.motorEquation);
  37052. this.equations.splice(k, 1),
  37053. this.motorEnabled = !1;
  37054. }
  37055. },
  37056. N0.prototype.motorIsEnabled = function () {
  37057. return !!this.motorEnabled;
  37058. },
  37059. N0.prototype.setMotorSpeed = function (k) {
  37060. if (this.motorEnabled) {
  37061. var m = this.equations.indexOf(this.motorEquation);
  37062. this.equations[m].relativeVelocity = k;
  37063. }
  37064. },
  37065. N0.prototype.getMotorSpeed = function () {
  37066. return this.motorEnabled ? this.motorEquation.relativeVelocity : !1;
  37067. };
  37068. }, {
  37069. "../equations/Equation" : 23,
  37070. "../equations/RotationalLockEquation" : 25,
  37071. "../equations/RotationalVelocityEquation" : 26,
  37072. "../math/vec2" : 31,
  37073. "./Constraint" : 15,
  37074. __browserify_Buffer : 1,
  37075. __browserify_process : 2
  37076. }
  37077. ],
  37078. 21 : [function (o, n) {
  37079. function u(k, m, e) {
  37080. e = e || {},
  37081. q.call(this, k, m, -Number.MAX_VALUE, Number.MAX_VALUE),
  37082. this.angle = e.angle || 0,
  37083. this.ratio = "number" == typeof e.ratio ? e.ratio : 1,
  37084. this.setRatio(this.ratio);
  37085. } {
  37086. var q = (o("__browserify_process"), o("__browserify_Buffer"), o("./Equation"));
  37087. o("../math/vec2");
  37088. }
  37089. n.exports = u,
  37090. u.prototype = new q,
  37091. u.prototype.constructor = u,
  37092. u.prototype.computeGq = function () {
  37093. return y3U.U2b(this.ratio * this.bodyA.angle, this.bodyB.angle, this.angle);
  37094. },
  37095. u.prototype.setRatio = function (k) {
  37096. var m = this.G;
  37097. m[2] = k,
  37098. m[5] = -1,
  37099. this.ratio = k;
  37100. },
  37101. u.prototype.setMaxTorque = function (k) {
  37102. this.maxForce = k,
  37103. this.minForce = -k;
  37104. };
  37105. }, {
  37106. "../math/vec2" : 31,
  37107. "./Equation" : 23,
  37108. __browserify_Buffer : 1,
  37109. __browserify_process : 2
  37110. }
  37111. ],
  37112. 22 : [function (m0, A0) {
  37113. function L0(k, m) {
  37114. z0.call(this, k, m, 0, Number.MAX_VALUE),
  37115. this.contactPointA = E0.create(),
  37116. this.penetrationVec = E0.create(),
  37117. this.contactPointB = E0.create(),
  37118. this.normalA = E0.create(),
  37119. this.restitution = 0,
  37120. this.firstImpact = !1,
  37121. this.shapeA = null,
  37122. this.shapeB = null;
  37123. }
  37124. var z0 = (m0("__browserify_process"), m0("__browserify_Buffer"), m0("./Equation")),
  37125. E0 = m0("../math/vec2");
  37126. A0.exports = L0,
  37127. L0.prototype = new z0,
  37128. L0.prototype.constructor = L0,
  37129. L0.prototype.computeB = function (k, m, e) {
  37130. var o = this.bodyA,
  37131. n = this.bodyB,
  37132. u = this.contactPointA,
  37133. q = this.contactPointB,
  37134. f = o.position,
  37135. j = n.position,
  37136. U0 = this.penetrationVec,
  37137. k0 = this.normalA,
  37138. a0 = this.G,
  37139. T0 = E0.crossLength(u, k0),
  37140. G0 = E0.crossLength(q, k0);
  37141. a0[0] = -k0[0],
  37142. a0[1] = -k0[1],
  37143. a0[2] = -T0,
  37144. a0[3] = k0[0],
  37145. a0[4] = k0[1],
  37146. a0[5] = G0,
  37147. E0.add(U0, j, q),
  37148. E0.sub(U0, U0, f),
  37149. E0.sub(U0, U0, u);
  37150. var W0,
  37151. N0;
  37152. this.firstImpact && y3U.G2b(0, this.restitution) ? (N0 = 0, W0 = y3U.N2b(1, m, (1 + this.restitution), this.computeGW())) : (N0 = E0.dot(k0, U0) + this.offset, W0 = this.computeGW());
  37153. var S0 = this.computeGiMf(),
  37154. I0 = -N0 * k - y3U.C2b(W0, m) - y3U.v2b(e, S0);
  37155. return I0;
  37156. };
  37157. }, {
  37158. "../math/vec2" : 31,
  37159. "./Equation" : 23,
  37160. __browserify_Buffer : 1,
  37161. __browserify_process : 2
  37162. }
  37163. ],
  37164. 23 : [function (a0, T0) {
  37165. var G0 = function (k) {
  37166. T0.exports = k;
  37167. };
  37168. function W0(k, m, e, o) {
  37169. this.minForce = "undefined" == typeof e ? -Number.MAX_VALUE : e,
  37170. this.maxForce = "undefined" == typeof o ? Number.MAX_VALUE : o,
  37171. this.bodyA = k,
  37172. this.bodyB = m,
  37173. this.stiffness = W0.DEFAULT_STIFFNESS,
  37174. this.relaxation = W0.DEFAULT_RELAXATION,
  37175. this.G = new S0.ARRAY_TYPE(6);
  37176. for (var n = 0; y3U.t2b(6, n); n++)
  37177. this.G[n] = 0;
  37178. this.offset = 0,
  37179. this.a = 0,
  37180. this.b = 0,
  37181. this.epsilon = 0,
  37182. this.timeStep = y3U.y2b(1, 60),
  37183. this.needsUpdate = !0,
  37184. this.multiplier = 0,
  37185. this.relativeVelocity = 0,
  37186. this.enabled = !0;
  37187. }
  37188. a0("__browserify_process"),
  37189. a0("__browserify_Buffer");
  37190. G0(W0); {
  37191. var N0 = a0("../math/vec2"),
  37192. S0 = a0("../utils/Utils");
  37193. a0("../objects/Body");
  37194. }
  37195. W0.prototype.constructor = W0,
  37196. W0.DEFAULT_STIFFNESS = 1e6,
  37197. W0.DEFAULT_RELAXATION = 4,
  37198. W0.prototype.update = function () {
  37199. var k = this.stiffness,
  37200. m = this.relaxation,
  37201. e = this.timeStep;
  37202. this.a = y3U.o2b(4, (e * (1 + 4 * m))),
  37203. this.b = y3U.x2b(4, m, (1 + 4 * m)),
  37204. this.epsilon = y3U.n2b(4, (e * e * k * (1 + 4 * m))),
  37205. this.needsUpdate = !1;
  37206. },
  37207. W0.prototype.gmult = function (k, m, e, o, n) {
  37208. return y3U.f2b(k[0], m[0]) + y3U.K2b(k[1], m[1]) + y3U.B2b(k[2], e) + y3U.l2b(k[3], o[0]) + y3U.X2b(k[4], o[1]) + y3U.Y2b(k[5], n);
  37209. },
  37210. W0.prototype.computeB = function (k, m, e) {
  37211. var o = this.computeGW(),
  37212. n = this.computeGq(),
  37213. u = this.computeGiMf();
  37214. return -n * k - y3U.U1b(o, m) - y3U.T1b(u, e);
  37215. };
  37216. var I0 = N0.create(),
  37217. m0 = N0.create();
  37218. W0.prototype.computeGq = function () {
  37219. var k = this.G,
  37220. m = this.bodyA,
  37221. e = this.bodyB,
  37222. o = (m.position, e.position, m.angle),
  37223. n = e.angle;
  37224. return this.gmult(k, I0, o, m0, n) + this.offset;
  37225. },
  37226. W0.prototype.computeGW = function () {
  37227. var k = this.G,
  37228. m = this.bodyA,
  37229. e = this.bodyB,
  37230. o = m.velocity,
  37231. n = e.velocity,
  37232. u = m.angularVelocity,
  37233. q = e.angularVelocity;
  37234. return this.gmult(k, o, u, n, q) + this.relativeVelocity;
  37235. },
  37236. W0.prototype.computeGWlambda = function () {
  37237. var k = this.G,
  37238. m = this.bodyA,
  37239. e = this.bodyB,
  37240. o = m.vlambda,
  37241. n = e.vlambda,
  37242. u = m.wlambda,
  37243. q = e.wlambda;
  37244. return this.gmult(k, o, u, n, q);
  37245. };
  37246. var A0 = N0.create(),
  37247. L0 = N0.create();
  37248. W0.prototype.computeGiMf = function () {
  37249. var k = this.bodyA,
  37250. m = this.bodyB,
  37251. e = k.force,
  37252. o = k.angularForce,
  37253. n = m.force,
  37254. u = m.angularForce,
  37255. q = k.invMassSolve,
  37256. f = m.invMassSolve,
  37257. j = k.invInertiaSolve,
  37258. U0 = m.invInertiaSolve,
  37259. k0 = this.G;
  37260. return N0.scale(A0, e, q),
  37261. N0.scale(L0, n, f),
  37262. this.gmult(k0, A0, y3U.S1b(o, j), L0, y3U.I1b(u, U0));
  37263. },
  37264. W0.prototype.computeGiMGt = function () {
  37265. var k = this.bodyA,
  37266. m = this.bodyB,
  37267. e = k.invMassSolve,
  37268. o = m.invMassSolve,
  37269. n = k.invInertiaSolve,
  37270. u = m.invInertiaSolve,
  37271. q = this.G;
  37272. return y3U.C1b(q[0], q[0], e) + y3U.J1b(q[1], q[1], e) + y3U.e1b(q[2], q[2], n) + y3U.o1b(q[3], q[3], o) + y3U.M1b(q[4], q[4], o) + y3U.u1b(q[5], q[5], u);
  37273. }; {
  37274. var z0 = N0.create(),
  37275. E0 = N0.create(),
  37276. v0 = N0.create();
  37277. N0.create(),
  37278. N0.create(),
  37279. N0.create();
  37280. }
  37281. W0.prototype.addToWlambda = function (k) {
  37282. var m = this.bodyA,
  37283. e = this.bodyB,
  37284. o = z0,
  37285. n = E0,
  37286. u = v0,
  37287. q = m.invMassSolve,
  37288. f = e.invMassSolve,
  37289. j = m.invInertiaSolve,
  37290. U0 = e.invInertiaSolve,
  37291. k0 = this.G;
  37292. n[0] = k0[0],
  37293. n[1] = k0[1],
  37294. u[0] = k0[3],
  37295. u[1] = k0[4],
  37296. N0.scale(o, n, y3U.b1b(q, k)),
  37297. N0.add(m.vlambda, m.vlambda, o),
  37298. m.wlambda += y3U.j1b(j, k0[2], k),
  37299. N0.scale(o, u, y3U.l1b(f, k)),
  37300. N0.add(e.vlambda, e.vlambda, o),
  37301. e.wlambda += y3U.X1b(U0, k0[5], k);
  37302. },
  37303. W0.prototype.computeInvC = function (k) {
  37304. return y3U.V1b(1, (this.computeGiMGt() + k));
  37305. };
  37306. }, {
  37307. "../math/vec2" : 31,
  37308. "../objects/Body" : 32,
  37309. "../utils/Utils" : 50,
  37310. __browserify_Buffer : 1,
  37311. __browserify_process : 2
  37312. }
  37313. ],
  37314. 24 : [function (k0, a0) {
  37315. function T0(k, m, e) {
  37316. W0.call(this, k, m, -e, e),
  37317. this.contactPointA = G0.create(),
  37318. this.contactPointB = G0.create(),
  37319. this.t = G0.create(),
  37320. this.contactEquations = [],
  37321. this.shapeA = null,
  37322. this.shapeB = null,
  37323. this.frictionCoefficient = .3;
  37324. } {
  37325. var G0 = (k0("__browserify_process"), k0("__browserify_Buffer"), k0("../math/vec2")),
  37326. W0 = k0("./Equation");
  37327. k0("../utils/Utils");
  37328. }
  37329. a0.exports = T0,
  37330. T0.prototype = new W0,
  37331. T0.prototype.constructor = T0,
  37332. T0.prototype.setSlipForce = function (k) {
  37333. this.maxForce = k,
  37334. this.minForce = -k;
  37335. },
  37336. T0.prototype.getSlipForce = function () {
  37337. return this.maxForce;
  37338. },
  37339. T0.prototype.computeB = function (k, m, e) {
  37340. var o = (this.bodyA, this.bodyB, this.contactPointA),
  37341. n = this.contactPointB,
  37342. u = this.t,
  37343. q = this.G;
  37344. q[0] = -u[0],
  37345. q[1] = -u[1],
  37346. q[2] = -G0.crossLength(o, u),
  37347. q[3] = u[0],
  37348. q[4] = u[1],
  37349. q[5] = G0.crossLength(n, u);
  37350. var f = this.computeGW(),
  37351. j = this.computeGiMf(),
  37352. U0 = -f * m - y3U.k6b(e, j);
  37353. return U0;
  37354. };
  37355. }, {
  37356. "../math/vec2" : 31,
  37357. "../utils/Utils" : 50,
  37358. "./Equation" : 23,
  37359. __browserify_Buffer : 1,
  37360. __browserify_process : 2
  37361. }
  37362. ],
  37363. 25 : [function (n, u) {
  37364. function q(k, m, e) {
  37365. e = e || {},
  37366. f.call(this, k, m, -Number.MAX_VALUE, Number.MAX_VALUE),
  37367. this.angle = e.angle || 0;
  37368. var o = this.G;
  37369. o[2] = 1,
  37370. o[5] = -1;
  37371. }
  37372. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("./Equation")),
  37373. j = n("../math/vec2");
  37374. u.exports = q,
  37375. q.prototype = new f,
  37376. q.prototype.constructor = q;
  37377. var U0 = j.create(),
  37378. k0 = j.create(),
  37379. a0 = j.fromValues(1, 0),
  37380. T0 = j.fromValues(0, 1);
  37381. q.prototype.computeGq = function () {
  37382. return j.rotate(U0, a0, this.bodyA.angle + this.angle),
  37383. j.rotate(k0, T0, this.bodyB.angle),
  37384. j.dot(U0, k0);
  37385. };
  37386. }, {
  37387. "../math/vec2" : 31,
  37388. "./Equation" : 23,
  37389. __browserify_Buffer : 1,
  37390. __browserify_process : 2
  37391. }
  37392. ],
  37393. 26 : [function (f, j) {
  37394. function U0(k, m) {
  37395. k0.call(this, k, m, -Number.MAX_VALUE, Number.MAX_VALUE),
  37396. this.relativeVelocity = 1,
  37397. this.ratio = 1;
  37398. } {
  37399. var k0 = (f("__browserify_process"), f("__browserify_Buffer"), f("./Equation"));
  37400. f("../math/vec2");
  37401. }
  37402. j.exports = U0,
  37403. U0.prototype = new k0,
  37404. U0.prototype.constructor = U0,
  37405. U0.prototype.computeB = function (k, m, e) {
  37406. var o = this.G;
  37407. o[2] = -1,
  37408. o[5] = this.ratio;
  37409. var n = this.computeGiMf(),
  37410. u = this.computeGW(),
  37411. q = -u * m - y3U.G6b(e, n);
  37412. return q;
  37413. };
  37414. }, {
  37415. "../math/vec2" : 31,
  37416. "./Equation" : 23,
  37417. __browserify_Buffer : 1,
  37418. __browserify_process : 2
  37419. }
  37420. ],
  37421. 27 : [function (q, f) {
  37422. var j = (q("__browserify_process"), q("__browserify_Buffer"), function () {});
  37423. f.exports = j,
  37424. j.prototype = {
  37425. constructor : j,
  37426. on : function (k, m, e) {
  37427. m.context = e || this,
  37428. void 0 === this._listeners && (this._listeners = {});
  37429. var o = this._listeners;
  37430. return void 0 === o[k] && (o[k] = []),
  37431. -1 === o[k].indexOf(m) && o[k].push(m),
  37432. this;
  37433. },
  37434. has : function (k, m) {
  37435. if (void 0 === this._listeners)
  37436. return !1;
  37437. var e = this._listeners;
  37438. if (m) {
  37439. if (void 0 !== e[k] && -1 !== e[k].indexOf(m))
  37440. return !0;
  37441. } else if (void 0 !== e[k])
  37442. return !0;
  37443. return !1;
  37444. },
  37445. off : function (k, m) {
  37446. if (void 0 === this._listeners)
  37447. return this;
  37448. var e = this._listeners,
  37449. o = e[k].indexOf(m);
  37450. return -1 !== o && e[k].splice(o, 1),
  37451. this;
  37452. },
  37453. emit : function (k) {
  37454. if (void 0 === this._listeners)
  37455. return this;
  37456. var m = this._listeners,
  37457. e = m[k.type];
  37458. if (void 0 !== e) {
  37459. k.target = this;
  37460. for (var o = 0, n = e.length; y3U.N6b(n, o); o++) {
  37461. var u = e[o];
  37462. u.call(u.context, k);
  37463. }
  37464. }
  37465. return this;
  37466. }
  37467. };
  37468. }, {
  37469. __browserify_Buffer : 1,
  37470. __browserify_process : 2
  37471. }
  37472. ],
  37473. 28 : [function (o, n) {
  37474. function u(k, m, e) {
  37475. if (e = e || {}, !(y3U.L6b(k, q) && y3U.z6b(m, q)))
  37476. throw new Error("First two arguments must be Material instances.");
  37477. this.id = u.idCounter++,
  37478. this.materialA = k,
  37479. this.materialB = m,
  37480. this.friction = "undefined" != typeof e.friction ? Number(e.friction) : .3,
  37481. this.restitution = "undefined" != typeof e.restitution ? Number(e.restitution) : 0,
  37482. this.stiffness = "undefined" != typeof e.stiffness ? Number(e.stiffness) : f.DEFAULT_STIFFNESS,
  37483. this.relaxation = "undefined" != typeof e.relaxation ? Number(e.relaxation) : f.DEFAULT_RELAXATION,
  37484. this.frictionStiffness = "undefined" != typeof e.frictionStiffness ? Number(e.frictionStiffness) : f.DEFAULT_STIFFNESS,
  37485. this.frictionRelaxation = "undefined" != typeof e.frictionRelaxation ? Number(e.frictionRelaxation) : f.DEFAULT_RELAXATION,
  37486. this.surfaceVelocity = "undefined" != typeof e.surfaceVelocity ? Number(e.surfaceVelocity) : 0,
  37487. this.contactSkinSize = .005;
  37488. }
  37489. var q = (o("__browserify_process"), o("__browserify_Buffer"), o("./Material")),
  37490. f = o("../equations/Equation");
  37491. n.exports = u,
  37492. u.idCounter = 0;
  37493. }, {
  37494. "../equations/Equation" : 23,
  37495. "./Material" : 29,
  37496. __browserify_Buffer : 1,
  37497. __browserify_process : 2
  37498. }
  37499. ],
  37500. 29 : [function (m, e) {
  37501. function o(k) {
  37502. this.id = k || o.idCounter++;
  37503. }
  37504. m("__browserify_process"),
  37505. m("__browserify_Buffer");
  37506. e.exports = o,
  37507. o.idCounter = 0;
  37508. }, {
  37509. __browserify_Buffer : 1,
  37510. __browserify_process : 2
  37511. }
  37512. ],
  37513. 30 : [function (E0, v0) {
  37514. var J0 = (E0("__browserify_process"), E0("__browserify_Buffer"), {});
  37515. J0.GetArea = function (k) {
  37516. if (y3U.J6b(k.length, 6))
  37517. return 0;
  37518. for (var m = y3U.H6b(k.length, 2), e = 0, o = 0; y3U.h6b(m, o); o += 2)
  37519. e += y3U.F6b((k[o + 2] - k[o]), (k[o + 1] + k[o + 3]));
  37520. return e += y3U.M6b((k[0] - k[m]), (k[m + 1] + k[1])),
  37521. .5 * -e;
  37522. },
  37523. J0.Triangulate = function (k) {
  37524. var m = y3U.n6b(k.length, 1);
  37525. if (y3U.f6b(3, m))
  37526. return [];
  37527. for (var e = [], o = [], n = 0; y3U.K6b(m, n); n++)
  37528. o.push(n);
  37529. for (var n = 0, u = m; y3U.B6b(u, 3); ) {
  37530. var q = o[y3U.l6b((n + 0), u)],
  37531. f = o[y3U.X6b((n + 1), u)],
  37532. j = o[y3U.Y6b((n + 2), u)],
  37533. U0 = k[y3U.U8b(2, q)],
  37534. k0 = k[y3U.T8b(2, q) + 1],
  37535. a0 = k[y3U.S8b(2, f)],
  37536. T0 = k[y3U.I8b(2, f) + 1],
  37537. G0 = k[y3U.C8b(2, j)],
  37538. W0 = k[y3U.v8b(2, j) + 1],
  37539. N0 = !1;
  37540. if (J0._convex(U0, k0, a0, T0, G0, W0)) {
  37541. var S0 = function () {
  37542. N0 = !0;
  37543. };
  37544. S0();
  37545. for (var I0 = 0; y3U.t8b(u, I0); I0++) {
  37546. var m0 = o[I0];
  37547. if (y3U.y8b(m0, q) && y3U.o8b(m0, f) && y3U.x8b(m0, j) && J0._PointInTriangle(k[y3U.p8b(2, m0)], k[y3U.q8b(2, m0) + 1], U0, k0, a0, T0, G0, W0)) {
  37548. var A0 = function () {
  37549. N0 = !1;
  37550. };
  37551. A0();
  37552. break;
  37553. }
  37554. }
  37555. }
  37556. if (N0)
  37557. e.push(q, f, j), o.splice(y3U.b8b((n + 1), u), 1), u--, n = 0;
  37558. else if (y3U.j8b(n++, 3 * u))
  37559. break;
  37560. }
  37561. return e.push(o[0], o[1], o[2]),
  37562. e;
  37563. },
  37564. J0._PointInTriangle = function (k, m, e, o, n, u, q, f) {
  37565. var j = y3U.d8b(q, e),
  37566. U0 = y3U.c8b(f, o),
  37567. k0 = y3U.s8b(n, e),
  37568. a0 = y3U.Q8b(u, o),
  37569. T0 = y3U.a0d(k, e),
  37570. G0 = y3U.W0d(m, o),
  37571. W0 = y3U.m0d(j, j) + y3U.A0d(U0, U0),
  37572. N0 = y3U.w0d(j, k0) + y3U.E0d(U0, a0),
  37573. S0 = y3U.e0d(j, T0) + y3U.g0d(U0, G0),
  37574. I0 = y3U.r0d(k0, k0) + y3U.i0d(a0, a0),
  37575. m0 = y3U.u0d(k0, T0) + y3U.P0d(a0, G0),
  37576. A0 = y3U.D0d(1, (W0 * I0 - N0 * N0)),
  37577. L0 = y3U.Z0d((I0 * S0 - N0 * m0), A0),
  37578. z0 = y3U.R0d((W0 * m0 - N0 * S0), A0);
  37579. return y3U.O0d(L0, 0) && y3U.V0d(z0, 0) && y3U.k7d(1, L0 + z0);
  37580. },
  37581. J0._convex = function (k, m, e, o, n, u) {
  37582. return y3U.G7d((m - o) * (n - e) + (e - k) * (u - o), 0);
  37583. },
  37584. v0.exports = J0;
  37585. }, {
  37586. __browserify_Buffer : 1,
  37587. __browserify_process : 2
  37588. }
  37589. ],
  37590. 31 : [function (f, j) {
  37591. var U0 = (f("__browserify_process"), f("__browserify_Buffer"), j.exports = {}),
  37592. k0 = f("../utils/Utils");
  37593. U0.crossLength = function (k, m) {
  37594. return y3U.N7d(k[0] * m[1], k[1] * m[0]);
  37595. },
  37596. U0.crossVZ = function (k, m, e) {
  37597. return U0.rotate(k, m, -Math.PI / 2),
  37598. U0.scale(k, k, e),
  37599. k;
  37600. },
  37601. U0.crossZV = function (k, m, e) {
  37602. return U0.rotate(k, e, y3U.L7d(Math.PI, 2)),
  37603. U0.scale(k, k, m),
  37604. k;
  37605. },
  37606. U0.rotate = function (k, m, e) {
  37607. if (y3U.z7d(0, e)) {
  37608. var o = Math.cos(e),
  37609. n = Math.sin(e),
  37610. u = m[0],
  37611. q = m[1];
  37612. k[0] = y3U.J7d(o * u, n * q),
  37613. k[1] = y3U.H7d(n, u) + y3U.h7d(o, q);
  37614. } else
  37615. k[0] = m[0], k[1] = m[1];
  37616. },
  37617. U0.rotate90cw = function (k, m) {
  37618. var e = m[0],
  37619. o = m[1];
  37620. k[0] = o,
  37621. k[1] = -e;
  37622. },
  37623. U0.toLocalFrame = function (k, m, e, o) {
  37624. U0.copy(k, m),
  37625. U0.sub(k, k, e),
  37626. U0.rotate(k, k, -o);
  37627. },
  37628. U0.toGlobalFrame = function (k, m, e, o) {
  37629. U0.copy(k, m),
  37630. U0.rotate(k, k, o),
  37631. U0.add(k, k, e);
  37632. },
  37633. U0.centroid = function (k, m, e, o) {
  37634. return U0.add(k, m, e),
  37635. U0.add(k, k, o),
  37636. U0.scale(k, k, y3U.F7d(1, 3)),
  37637. k;
  37638. },
  37639. U0.create = function () {
  37640. var k = new k0.ARRAY_TYPE(2);
  37641. return k[0] = 0,
  37642. k[1] = 0,
  37643. k;
  37644. },
  37645. U0.clone = function (k) {
  37646. var m = new k0.ARRAY_TYPE(2);
  37647. return m[0] = k[0],
  37648. m[1] = k[1],
  37649. m;
  37650. },
  37651. U0.fromValues = function (k, m) {
  37652. var e = new k0.ARRAY_TYPE(2);
  37653. return e[0] = k,
  37654. e[1] = m,
  37655. e;
  37656. },
  37657. U0.copy = function (k, m) {
  37658. return k[0] = m[0],
  37659. k[1] = m[1],
  37660. k;
  37661. },
  37662. U0.set = function (k, m, e) {
  37663. return k[0] = m,
  37664. k[1] = e,
  37665. k;
  37666. },
  37667. U0.add = function (k, m, e) {
  37668. return k[0] = m[0] + e[0],
  37669. k[1] = m[1] + e[1],
  37670. k;
  37671. },
  37672. U0.subtract = function (k, m, e) {
  37673. return k[0] = y3U.M7d(m[0], e[0]),
  37674. k[1] = y3U.n7d(m[1], e[1]),
  37675. k;
  37676. },
  37677. U0.sub = U0.subtract,
  37678. U0.multiply = function (k, m, e) {
  37679. return k[0] = y3U.f7d(m[0], e[0]),
  37680. k[1] = y3U.K7d(m[1], e[1]),
  37681. k;
  37682. },
  37683. U0.mul = U0.multiply,
  37684. U0.divide = function (k, m, e) {
  37685. return k[0] = y3U.B7d(m[0], e[0]),
  37686. k[1] = y3U.l7d(m[1], e[1]),
  37687. k;
  37688. },
  37689. U0.div = U0.divide,
  37690. U0.scale = function (k, m, e) {
  37691. return k[0] = y3U.X7d(m[0], e),
  37692. k[1] = y3U.Y7d(m[1], e),
  37693. k;
  37694. },
  37695. U0.distance = function (k, m) {
  37696. var e = y3U.U4d(m[0], k[0]),
  37697. o = y3U.T4d(m[1], k[1]);
  37698. return Math.sqrt(y3U.S4d(e, e) + y3U.I4d(o, o));
  37699. },
  37700. U0.dist = U0.distance,
  37701. U0.squaredDistance = function (k, m) {
  37702. var e = y3U.C4d(m[0], k[0]),
  37703. o = y3U.v4d(m[1], k[1]);
  37704. return y3U.t4d(e, e) + y3U.y4d(o, o);
  37705. },
  37706. U0.sqrDist = U0.squaredDistance,
  37707. U0.length = function (k) {
  37708. var m = k[0],
  37709. e = k[1];
  37710. return Math.sqrt(y3U.o4d(m, m) + y3U.x4d(e, e));
  37711. },
  37712. U0.len = U0.length,
  37713. U0.squaredLength = function (k) {
  37714. var m = k[0],
  37715. e = k[1];
  37716. return y3U.p4d(m, m) + y3U.q4d(e, e);
  37717. },
  37718. U0.sqrLen = U0.squaredLength,
  37719. U0.negate = function (k, m) {
  37720. return k[0] = -m[0],
  37721. k[1] = -m[1],
  37722. k;
  37723. },
  37724. U0.normalize = function (k, m) {
  37725. var e = m[0],
  37726. o = m[1],
  37727. n = y3U.b4d(e, e) + y3U.j4d(o, o);
  37728. return y3U.d4d(n, 0) && (n = y3U.c4d(1, Math.sqrt(n)), k[0] = y3U.s4d(m[0], n), k[1] = y3U.Q4d(m[1], n)),
  37729. k;
  37730. },
  37731. U0.dot = function (k, m) {
  37732. return y3U.a3d(k[0], m[0]) + y3U.W3d(k[1], m[1]);
  37733. },
  37734. U0.str = function (k) {
  37735. return "vec2(" + k[0] + ", " + k[1] + ")";
  37736. };
  37737. }, {
  37738. "../utils/Utils" : 50,
  37739. __browserify_Buffer : 1,
  37740. __browserify_process : 2
  37741. }
  37742. ],
  37743. 32 : [function (a0, T0) {
  37744. function G0(k) {
  37745. k = k || {},
  37746. m0.call(this),
  37747. this.id = ++G0._idCounter,
  37748. this.world = null,
  37749. this.shapes = [],
  37750. this.shapeOffsets = [],
  37751. this.shapeAngles = [],
  37752. this.mass = k.mass || 0,
  37753. this.invMass = 0,
  37754. this.inertia = 0,
  37755. this.invInertia = 0,
  37756. this.invMassSolve = 0,
  37757. this.invInertiaSolve = 0,
  37758. this.fixedRotation = !!k.fixedRotation,
  37759. this.position = W0.fromValues(0, 0),
  37760. k.position && W0.copy(this.position, k.position),
  37761. this.interpolatedPosition = W0.fromValues(0, 0),
  37762. this.interpolatedAngle = 0,
  37763. this.previousPosition = W0.fromValues(0, 0),
  37764. this.previousAngle = 0,
  37765. this.velocity = W0.fromValues(0, 0),
  37766. k.velocity && W0.copy(this.velocity, k.velocity),
  37767. this.vlambda = W0.fromValues(0, 0),
  37768. this.wlambda = 0,
  37769. this.angle = k.angle || 0,
  37770. this.angularVelocity = k.angularVelocity || 0,
  37771. this.force = W0.create(),
  37772. k.force && W0.copy(this.force, k.force),
  37773. this.angularForce = k.angularForce || 0,
  37774. this.damping = "number" == typeof k.damping ? k.damping : .1,
  37775. this.angularDamping = "number" == typeof k.angularDamping ? k.angularDamping : .1,
  37776. this.type = G0.STATIC,
  37777. this.type = "undefined" != typeof k.type ? k.type : k.mass ? G0.DYNAMIC : G0.STATIC,
  37778. this.boundingRadius = 0,
  37779. this.aabb = new I0,
  37780. this.aabbNeedsUpdate = !0,
  37781. this.allowSleep = !0,
  37782. this.wantsToSleep = !1,
  37783. this.sleepState = G0.AWAKE,
  37784. this.sleepSpeedLimit = .2,
  37785. this.sleepTimeLimit = 1,
  37786. this.gravityScale = 1,
  37787. this.timeLastSleepy = 0,
  37788. this.concavePath = null,
  37789. this._wakeUpAfterNarrowphase = !1,
  37790. this.updateMassProperties();
  37791. }
  37792. var W0 = (a0("__browserify_process"), a0("__browserify_Buffer"), a0("../math/vec2")),
  37793. N0 = a0("poly-decomp"),
  37794. S0 = a0("../shapes/Convex"),
  37795. I0 = a0("../collision/AABB"),
  37796. m0 = a0("../events/EventEmitter");
  37797. T0.exports = G0,
  37798. G0.prototype = new m0,
  37799. G0._idCounter = 0,
  37800. G0.prototype.updateSolveMassProperties = function () {
  37801. y3U.m3d(this.sleepState, G0.SLEEPING) || y3U.A3d(this.type, G0.KINEMATIC) ? (this.invMassSolve = 0, this.invInertiaSolve = 0) : (this.invMassSolve = this.invMass, this.invInertiaSolve = this.invInertia);
  37802. },
  37803. G0.prototype.setDensity = function (k) {
  37804. var m = this.getArea();
  37805. this.mass = y3U.w3d(m, k),
  37806. this.updateMassProperties();
  37807. },
  37808. G0.prototype.getArea = function () {
  37809. for (var k = 0, m = 0; y3U.E3d(m, this.shapes.length); m++)
  37810. k += this.shapes[m].area;
  37811. return k;
  37812. },
  37813. G0.prototype.getAABB = function () {
  37814. return this.aabbNeedsUpdate && this.updateAABB(),
  37815. this.aabb;
  37816. };
  37817. var A0 = new I0,
  37818. L0 = W0.create();
  37819. G0.prototype.updateAABB = function () {
  37820. for (var k = this.shapes, m = this.shapeOffsets, e = this.shapeAngles, o = k.length, n = L0, u = this.angle, q = 0; y3U.e3d(q, o); q++) {
  37821. var f = k[q],
  37822. j = e[q] + u;
  37823. W0.rotate(n, m[q], u),
  37824. W0.add(n, n, this.position),
  37825. f.computeAABB(A0, n, j),
  37826. y3U.g3d(0, q) ? this.aabb.copy(A0) : this.aabb.extend(A0);
  37827. }
  37828. this.aabbNeedsUpdate = !1;
  37829. },
  37830. G0.prototype.updateBoundingRadius = function () {
  37831. for (var k = this.shapes, m = this.shapeOffsets, e = k.length, o = 0, n = 0; y3U.r3d(n, e); n++) {
  37832. var u = k[n],
  37833. q = W0.length(m[n]),
  37834. f = u.boundingRadius;
  37835. y3U.i3d(q + f, o) && (o = q + f);
  37836. }
  37837. this.boundingRadius = o;
  37838. },
  37839. G0.prototype.addShape = function (k, m, e) {
  37840. e = e || 0,
  37841. m = m ? W0.fromValues(m[0], m[1]) : W0.fromValues(0, 0),
  37842. this.shapes.push(k),
  37843. this.shapeOffsets.push(m),
  37844. this.shapeAngles.push(e),
  37845. this.updateMassProperties(),
  37846. this.updateBoundingRadius(),
  37847. this.aabbNeedsUpdate = !0;
  37848. },
  37849. G0.prototype.removeShape = function (k) {
  37850. var m = this.shapes.indexOf(k);
  37851. return -1 !== m ? (this.shapes.splice(m, 1), this.shapeOffsets.splice(m, 1), this.shapeAngles.splice(m, 1), this.aabbNeedsUpdate = !0, !0) : !1;
  37852. },
  37853. G0.prototype.updateMassProperties = function () {
  37854. if (y3U.u3d(this.type, G0.STATIC) || y3U.P3d(this.type, G0.KINEMATIC))
  37855. this.mass = Number.MAX_VALUE, this.invMass = 0, this.inertia = Number.MAX_VALUE, this.invInertia = 0;
  37856. else {
  37857. var k = this.shapes,
  37858. m = k.length,
  37859. e = y3U.D3d(this.mass, m),
  37860. o = 0;
  37861. if (this.fixedRotation)
  37862. this.inertia = Number.MAX_VALUE, this.invInertia = 0;
  37863. else {
  37864. for (var n = 0; y3U.Z3d(m, n); n++) {
  37865. var u = k[n],
  37866. q = W0.squaredLength(this.shapeOffsets[n]),
  37867. f = u.computeMomentOfInertia(e);
  37868. o += f + y3U.R3d(e, q);
  37869. }
  37870. this.inertia = o,
  37871. this.invInertia = y3U.O3d(o, 0) ? y3U.V3d(1, o) : 0;
  37872. }
  37873. this.invMass = y3U.k9d(1, this.mass);
  37874. }
  37875. };
  37876. var z0 = W0.create();
  37877. G0.prototype.applyForce = function (k, m) {
  37878. var e = z0;
  37879. W0.sub(e, m, this.position),
  37880. W0.add(this.force, this.force, k);
  37881. var o = W0.crossLength(e, k);
  37882. this.angularForce += o;
  37883. },
  37884. G0.prototype.toLocalFrame = function (k, m) {
  37885. W0.toLocalFrame(k, m, this.position, this.angle);
  37886. },
  37887. G0.prototype.toWorldFrame = function (k, m) {
  37888. W0.toGlobalFrame(k, m, this.position, this.angle);
  37889. },
  37890. G0.prototype.fromPolygon = function (k, m) {
  37891. var e = function () {
  37892. f = m.optimalDecomp ? u.decomp() : u.quickDecomp();
  37893. },
  37894. o = function () {
  37895. m = m || {};
  37896. };
  37897. o();
  37898. for (var n = this.shapes.length; y3U.G9d(n, 0); --n)
  37899. this.removeShape(this.shapes[n]);
  37900. var u = new N0.Polygon;
  37901. if (u.vertices = k, u.makeCCW(), "number" == typeof m.removeCollinearPoints && u.removeCollinearPoints(m.removeCollinearPoints), "undefined" == typeof m.skipSimpleCheck && !u.isSimple())
  37902. return !1;
  37903. this.concavePath = u.vertices.slice(0);
  37904. for (var n = 0; y3U.N9d(n, this.concavePath.length); n++) {
  37905. var q = [0, 0];
  37906. W0.copy(q, this.concavePath[n]),
  37907. this.concavePath[n] = q;
  37908. }
  37909. var f;
  37910. e();
  37911. for (var j = W0.create(), n = 0; y3U.L9d(n, f.length); n++) {
  37912. for (var U0 = new S0(f[n].vertices), k0 = 0; y3U.z9d(k0, U0.vertices.length); k0++) {
  37913. var q = U0.vertices[k0];
  37914. W0.sub(q, q, U0.centerOfMass);
  37915. }
  37916. W0.scale(j, U0.centerOfMass, 1),
  37917. U0.updateTriangles(),
  37918. U0.updateCenterOfMass(),
  37919. U0.updateBoundingRadius(),
  37920. this.addShape(U0, j);
  37921. }
  37922. return this.adjustCenterOfMass(),
  37923. this.aabbNeedsUpdate = !0,
  37924. !0;
  37925. };
  37926. var E0 = (W0.fromValues(0, 0), W0.fromValues(0, 0)),
  37927. v0 = W0.fromValues(0, 0),
  37928. J0 = W0.fromValues(0, 0);
  37929. G0.prototype.adjustCenterOfMass = function () {
  37930. var k = E0,
  37931. m = v0,
  37932. e = J0,
  37933. o = 0;
  37934. W0.set(m, 0, 0);
  37935. for (var n = 0; y3U.J9d(n, this.shapes.length); n++) {
  37936. var u = this.shapes[n],
  37937. q = this.shapeOffsets[n];
  37938. W0.scale(k, q, u.area),
  37939. W0.add(m, m, k),
  37940. o += u.area;
  37941. }
  37942. W0.scale(e, m, y3U.H9d(1, o));
  37943. for (var n = 0; y3U.h9d(n, this.shapes.length); n++) {
  37944. var u = this.shapes[n],
  37945. q = this.shapeOffsets[n];
  37946. q || (q = this.shapeOffsets[n] = W0.create()),
  37947. W0.sub(q, q, e);
  37948. }
  37949. W0.add(this.position, this.position, e);
  37950. for (var n = 0; this.concavePath && y3U.F9d(n, this.concavePath.length); n++)
  37951. W0.sub(this.concavePath[n], this.concavePath[n], e);
  37952. this.updateMassProperties(),
  37953. this.updateBoundingRadius();
  37954. },
  37955. G0.prototype.setZeroForce = function () {
  37956. W0.set(this.force, 0, 0),
  37957. this.angularForce = 0;
  37958. },
  37959. G0.prototype.resetConstraintVelocity = function () {
  37960. var k = this,
  37961. m = k.vlambda;
  37962. W0.set(m, 0, 0),
  37963. k.wlambda = 0;
  37964. },
  37965. G0.prototype.addConstraintVelocity = function () {
  37966. var k = this,
  37967. m = k.velocity;
  37968. W0.add(m, m, k.vlambda),
  37969. k.angularVelocity += k.wlambda;
  37970. },
  37971. G0.prototype.applyDamping = function (k) {
  37972. if (y3U.M9d(this.type, G0.DYNAMIC)) {
  37973. var m = this.velocity;
  37974. W0.scale(m, m, Math.pow(y3U.n9d(1, this.damping), k)),
  37975. this.angularVelocity *= Math.pow(y3U.f9d(1, this.angularDamping), k);
  37976. }
  37977. },
  37978. G0.prototype.wakeUp = function () {
  37979. var k = this.sleepState;
  37980. this.sleepState = G0.AWAKE,
  37981. this.idleTime = 0,
  37982. y3U.K9d(k, G0.AWAKE) && this.emit(G0.wakeUpEvent);
  37983. },
  37984. G0.prototype.sleep = function () {
  37985. this.sleepState = G0.SLEEPING,
  37986. this.angularVelocity = 0,
  37987. this.angularForce = 0,
  37988. W0.set(this.velocity, 0, 0),
  37989. W0.set(this.force, 0, 0),
  37990. this.emit(G0.sleepEvent);
  37991. },
  37992. G0.prototype.sleepTick = function (k, m, e) {
  37993. if (this.allowSleep && y3U.B9d(this.type, G0.SLEEPING)) {
  37994. this.wantsToSleep = !1;
  37995. var o = (this.sleepState, W0.squaredLength(this.velocity) + Math.pow(this.angularVelocity, 2)),
  37996. n = Math.pow(this.sleepSpeedLimit, 2);
  37997. y3U.l9d(o, n) ? (this.idleTime = 0, this.sleepState = G0.AWAKE) : (this.idleTime += e, this.sleepState = G0.SLEEPY),
  37998. y3U.X9d(this.idleTime, this.sleepTimeLimit) && (m ? this.wantsToSleep = !0 : this.sleep());
  37999. }
  38000. },
  38001. G0.prototype.getVelocityFromPosition = function (k, m) {
  38002. return k = k || W0.create(),
  38003. W0.sub(k, this.position, this.previousPosition),
  38004. W0.scale(k, k, y3U.Y9d(1, m)),
  38005. k;
  38006. },
  38007. G0.prototype.getAngularVelocityFromPosition = function (k) {
  38008. return y3U.U5d((this.angle - this.previousAngle), k);
  38009. },
  38010. G0.prototype.overlaps = function (k) {
  38011. return this.world.overlapKeeper.bodiesAreOverlapping(this, k);
  38012. },
  38013. G0.sleepyEvent = {
  38014. type : "sleepy"
  38015. },
  38016. G0.sleepEvent = {
  38017. type : "sleep"
  38018. },
  38019. G0.wakeUpEvent = {
  38020. type : "wakeup"
  38021. },
  38022. G0.DYNAMIC = 1,
  38023. G0.STATIC = 2,
  38024. G0.KINEMATIC = 4,
  38025. G0.AWAKE = 0,
  38026. G0.SLEEPY = 1,
  38027. G0.SLEEPING = 2;
  38028. }, {
  38029. "../collision/AABB" : 9,
  38030. "../events/EventEmitter" : 27,
  38031. "../math/vec2" : 31,
  38032. "../shapes/Convex" : 39,
  38033. __browserify_Buffer : 1,
  38034. __browserify_process : 2,
  38035. "poly-decomp" : 7
  38036. }
  38037. ],
  38038. 33 : [function (I0, m0) {
  38039. function A0(k, m, e) {
  38040. e = e || {},
  38041. z0.call(this, k, m, e),
  38042. this.localAnchorA = L0.fromValues(0, 0),
  38043. this.localAnchorB = L0.fromValues(0, 0),
  38044. e.localAnchorA && L0.copy(this.localAnchorA, e.localAnchorA),
  38045. e.localAnchorB && L0.copy(this.localAnchorB, e.localAnchorB),
  38046. e.worldAnchorA && this.setWorldAnchorA(e.worldAnchorA),
  38047. e.worldAnchorB && this.setWorldAnchorB(e.worldAnchorB);
  38048. var o = L0.create(),
  38049. n = L0.create();
  38050. this.getWorldAnchorA(o),
  38051. this.getWorldAnchorB(n);
  38052. var u = L0.distance(o, n);
  38053. this.restLength = "number" == typeof e.restLength ? e.restLength : u;
  38054. } {
  38055. var L0 = (I0("__browserify_process"), I0("__browserify_Buffer"), I0("../math/vec2")),
  38056. z0 = I0("./Spring");
  38057. I0("../utils/Utils");
  38058. }
  38059. m0.exports = A0,
  38060. A0.prototype = new z0,
  38061. A0.prototype.setWorldAnchorA = function (k) {
  38062. this.bodyA.toLocalFrame(this.localAnchorA, k);
  38063. },
  38064. A0.prototype.setWorldAnchorB = function (k) {
  38065. this.bodyB.toLocalFrame(this.localAnchorB, k);
  38066. },
  38067. A0.prototype.getWorldAnchorA = function (k) {
  38068. this.bodyA.toWorldFrame(k, this.localAnchorA);
  38069. },
  38070. A0.prototype.getWorldAnchorB = function (k) {
  38071. this.bodyB.toWorldFrame(k, this.localAnchorB);
  38072. };
  38073. var E0 = L0.create(),
  38074. v0 = L0.create(),
  38075. J0 = L0.create(),
  38076. t0 = L0.create(),
  38077. w0 = L0.create(),
  38078. g0 = L0.create(),
  38079. H0 = L0.create(),
  38080. M0 = L0.create(),
  38081. p0 = L0.create();
  38082. A0.prototype.applyForce = function () {
  38083. var k = this.stiffness,
  38084. m = this.damping,
  38085. e = this.restLength,
  38086. o = this.bodyA,
  38087. n = this.bodyB,
  38088. u = E0,
  38089. q = v0,
  38090. f = J0,
  38091. j = t0,
  38092. U0 = p0,
  38093. k0 = w0,
  38094. a0 = g0,
  38095. T0 = H0,
  38096. G0 = M0;
  38097. this.getWorldAnchorA(k0),
  38098. this.getWorldAnchorB(a0),
  38099. L0.sub(T0, k0, o.position),
  38100. L0.sub(G0, a0, n.position),
  38101. L0.sub(u, a0, k0);
  38102. var W0 = L0.len(u);
  38103. L0.normalize(q, u),
  38104. L0.sub(f, n.velocity, o.velocity),
  38105. L0.crossZV(U0, n.angularVelocity, G0),
  38106. L0.add(f, f, U0),
  38107. L0.crossZV(U0, o.angularVelocity, T0),
  38108. L0.sub(f, f, U0),
  38109. L0.scale(j, q, -k * (y3U.T5d(W0, e)) - y3U.S5d(m, L0.dot(f, q))),
  38110. L0.sub(o.force, o.force, j),
  38111. L0.add(n.force, n.force, j);
  38112. var N0 = L0.crossLength(T0, j),
  38113. S0 = L0.crossLength(G0, j);
  38114. o.angularForce -= N0,
  38115. n.angularForce += S0;
  38116. };
  38117. }, {
  38118. "../math/vec2" : 31,
  38119. "../utils/Utils" : 50,
  38120. "./Spring" : 35,
  38121. __browserify_Buffer : 1,
  38122. __browserify_process : 2
  38123. }
  38124. ],
  38125. 34 : [function (j, U0) {
  38126. function k0(k, m, e) {
  38127. e = e || {},
  38128. a0.call(this, k, m, e),
  38129. this.restAngle = "number" == typeof e.restAngle ? e.restAngle : y3U.I5d(m.angle, k.angle);
  38130. }
  38131. var a0 = (j("__browserify_process"), j("__browserify_Buffer"), j("../math/vec2"), j("./Spring"));
  38132. U0.exports = k0,
  38133. k0.prototype = new a0,
  38134. k0.prototype.applyForce = function () {
  38135. var k = this.stiffness,
  38136. m = this.damping,
  38137. e = this.restAngle,
  38138. o = this.bodyA,
  38139. n = this.bodyB,
  38140. u = y3U.C5d(n.angle, o.angle),
  38141. q = y3U.v5d(n.angularVelocity, o.angularVelocity),
  38142. f = -k * (y3U.t5d(u, e)) - y3U.y5d(m, q, 0);
  38143. o.angularForce -= f,
  38144. n.angularForce += f;
  38145. };
  38146. }, {
  38147. "../math/vec2" : 31,
  38148. "./Spring" : 35,
  38149. __browserify_Buffer : 1,
  38150. __browserify_process : 2
  38151. }
  38152. ],
  38153. 35 : [function (o, n) {
  38154. function u(k, m, e) {
  38155. e = q.defaults(e, {
  38156. stiffness : 100,
  38157. damping : 1
  38158. }),
  38159. this.stiffness = e.stiffness,
  38160. this.damping = e.damping,
  38161. this.bodyA = k,
  38162. this.bodyB = m;
  38163. }
  38164. var q = (o("__browserify_process"), o("__browserify_Buffer"), o("../math/vec2"), o("../utils/Utils"));
  38165. n.exports = u,
  38166. u.prototype.applyForce = function () {};
  38167. }, {
  38168. "../math/vec2" : 31,
  38169. "../utils/Utils" : 50,
  38170. __browserify_Buffer : 1,
  38171. __browserify_process : 2
  38172. }
  38173. ],
  38174. 36 : [function (k, m) {
  38175. k("__browserify_process"),
  38176. k("__browserify_Buffer");
  38177. m.exports = {
  38178. AABB : k("./collision/AABB"),
  38179. AngleLockEquation : k("./equations/AngleLockEquation"),
  38180. Body : k("./objects/Body"),
  38181. Broadphase : k("./collision/Broadphase"),
  38182. Capsule : k("./shapes/Capsule"),
  38183. Circle : k("./shapes/Circle"),
  38184. Constraint : k("./constraints/Constraint"),
  38185. ContactEquation : k("./equations/ContactEquation"),
  38186. ContactMaterial : k("./material/ContactMaterial"),
  38187. Convex : k("./shapes/Convex"),
  38188. DistanceConstraint : k("./constraints/DistanceConstraint"),
  38189. Equation : k("./equations/Equation"),
  38190. EventEmitter : k("./events/EventEmitter"),
  38191. FrictionEquation : k("./equations/FrictionEquation"),
  38192. GearConstraint : k("./constraints/GearConstraint"),
  38193. GridBroadphase : k("./collision/GridBroadphase"),
  38194. GSSolver : k("./solver/GSSolver"),
  38195. Heightfield : k("./shapes/Heightfield"),
  38196. Line : k("./shapes/Line"),
  38197. LockConstraint : k("./constraints/LockConstraint"),
  38198. Material : k("./material/Material"),
  38199. Narrowphase : k("./collision/Narrowphase"),
  38200. NaiveBroadphase : k("./collision/NaiveBroadphase"),
  38201. Particle : k("./shapes/Particle"),
  38202. Plane : k("./shapes/Plane"),
  38203. RevoluteConstraint : k("./constraints/RevoluteConstraint"),
  38204. PrismaticConstraint : k("./constraints/PrismaticConstraint"),
  38205. Rectangle : k("./shapes/Rectangle"),
  38206. RotationalVelocityEquation : k("./equations/RotationalVelocityEquation"),
  38207. SAPBroadphase : k("./collision/SAPBroadphase"),
  38208. Shape : k("./shapes/Shape"),
  38209. Solver : k("./solver/Solver"),
  38210. Spring : k("./objects/Spring"),
  38211. LinearSpring : k("./objects/LinearSpring"),
  38212. RotationalSpring : k("./objects/RotationalSpring"),
  38213. Utils : k("./utils/Utils"),
  38214. World : k("./world/World"),
  38215. vec2 : k("./math/vec2"),
  38216. version : k("../package.json").version
  38217. };
  38218. }, {
  38219. "../package.json" : 8,
  38220. "./collision/AABB" : 9,
  38221. "./collision/Broadphase" : 10,
  38222. "./collision/GridBroadphase" : 11,
  38223. "./collision/NaiveBroadphase" : 12,
  38224. "./collision/Narrowphase" : 13,
  38225. "./collision/SAPBroadphase" : 14,
  38226. "./constraints/Constraint" : 15,
  38227. "./constraints/DistanceConstraint" : 16,
  38228. "./constraints/GearConstraint" : 17,
  38229. "./constraints/LockConstraint" : 18,
  38230. "./constraints/PrismaticConstraint" : 19,
  38231. "./constraints/RevoluteConstraint" : 20,
  38232. "./equations/AngleLockEquation" : 21,
  38233. "./equations/ContactEquation" : 22,
  38234. "./equations/Equation" : 23,
  38235. "./equations/FrictionEquation" : 24,
  38236. "./equations/RotationalVelocityEquation" : 26,
  38237. "./events/EventEmitter" : 27,
  38238. "./material/ContactMaterial" : 28,
  38239. "./material/Material" : 29,
  38240. "./math/vec2" : 31,
  38241. "./objects/Body" : 32,
  38242. "./objects/LinearSpring" : 33,
  38243. "./objects/RotationalSpring" : 34,
  38244. "./objects/Spring" : 35,
  38245. "./shapes/Capsule" : 37,
  38246. "./shapes/Circle" : 38,
  38247. "./shapes/Convex" : 39,
  38248. "./shapes/Heightfield" : 40,
  38249. "./shapes/Line" : 41,
  38250. "./shapes/Particle" : 42,
  38251. "./shapes/Plane" : 43,
  38252. "./shapes/Rectangle" : 44,
  38253. "./shapes/Shape" : 45,
  38254. "./solver/GSSolver" : 46,
  38255. "./solver/Solver" : 47,
  38256. "./utils/Utils" : 50,
  38257. "./world/World" : 54,
  38258. __browserify_Buffer : 1,
  38259. __browserify_process : 2
  38260. }
  38261. ],
  38262. 37 : [function (n, u) {
  38263. function q(k, m) {
  38264. this.length = k || 1,
  38265. this.radius = m || 1,
  38266. f.call(this, f.CAPSULE);
  38267. }
  38268. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("./Shape")),
  38269. j = n("../math/vec2");
  38270. u.exports = q,
  38271. q.prototype = new f,
  38272. q.prototype.computeMomentOfInertia = function (k) {
  38273. var m = this.radius,
  38274. e = this.length + m,
  38275. o = y3U.F5d(2, m);
  38276. return y3U.M5d(k, (o * o + e * e), 12);
  38277. },
  38278. q.prototype.updateBoundingRadius = function () {
  38279. this.boundingRadius = this.radius + y3U.u5d(this.length, 2);
  38280. },
  38281. q.prototype.updateArea = function () {
  38282. this.area = y3U.P5d(Math.PI, this.radius, this.radius) + y3U.j5d(2, this.radius, this.length);
  38283. };
  38284. var U0 = j.create();
  38285. q.prototype.computeAABB = function (k, m, e) {
  38286. var o = this.radius;
  38287. j.set(U0, y3U.l5d(this.length, 2), 0),
  38288. y3U.X5d(0, e) && j.rotate(U0, U0, e),
  38289. j.set(k.upperBound, Math.max(U0[0] + o, -U0[0] + o), Math.max(U0[1] + o, -U0[1] + o)),
  38290. j.set(k.lowerBound, Math.min(y3U.Y5d(U0[0], o), -U0[0] - o), Math.min(y3U.U2d(U0[1], o), -U0[1] - o)),
  38291. j.add(k.lowerBound, k.lowerBound, m),
  38292. j.add(k.upperBound, k.upperBound, m);
  38293. };
  38294. }, {
  38295. "../math/vec2" : 31,
  38296. "./Shape" : 45,
  38297. __browserify_Buffer : 1,
  38298. __browserify_process : 2
  38299. }
  38300. ],
  38301. 38 : [function (o, n) {
  38302. function u(k) {
  38303. this.radius = k || 1,
  38304. q.call(this, q.CIRCLE);
  38305. }
  38306. var q = (o("__browserify_process"), o("__browserify_Buffer"), o("./Shape")),
  38307. f = o("../math/vec2");
  38308. n.exports = u,
  38309. u.prototype = new q,
  38310. u.prototype.computeMomentOfInertia = function (k) {
  38311. var m = this.radius;
  38312. return y3U.T2d(k, m, m, 2);
  38313. },
  38314. u.prototype.updateBoundingRadius = function () {
  38315. this.boundingRadius = this.radius;
  38316. },
  38317. u.prototype.updateArea = function () {
  38318. this.area = y3U.m2d(Math.PI, this.radius, this.radius);
  38319. },
  38320. u.prototype.computeAABB = function (k, m) {
  38321. var e = this.radius;
  38322. f.set(k.upperBound, e, e),
  38323. f.set(k.lowerBound, -e, -e),
  38324. m && (f.add(k.lowerBound, k.lowerBound, m), f.add(k.upperBound, k.upperBound, m));
  38325. };
  38326. }, {
  38327. "../math/vec2" : 31,
  38328. "./Shape" : 45,
  38329. __browserify_Buffer : 1,
  38330. __browserify_process : 2
  38331. }
  38332. ],
  38333. 39 : [function (T0, G0) {
  38334. function W0(k, m) {
  38335. this.vertices = [],
  38336. this.axes = [];
  38337. for (var e = 0; y3U.C2d(e, k.length); e++) {
  38338. var o = S0.create();
  38339. S0.copy(o, k[e]),
  38340. this.vertices.push(o);
  38341. }
  38342. if (m)
  38343. for (var e = 0; y3U.v2d(e, m.length); e++) {
  38344. var n = S0.create();
  38345. S0.copy(n, m[e]),
  38346. this.axes.push(n);
  38347. }
  38348. else
  38349. for (var e = 0; y3U.t2d(e, k.length); e++) {
  38350. var u = k[e],
  38351. q = k[y3U.y2d((e + 1), k.length)],
  38352. f = S0.create();
  38353. S0.sub(f, q, u),
  38354. S0.rotate90cw(f, f),
  38355. S0.normalize(f, f),
  38356. this.axes.push(f);
  38357. }
  38358. if (this.centerOfMass = S0.fromValues(0, 0), this.triangles = [], this.vertices.length && (this.updateTriangles(), this.updateCenterOfMass()), this.boundingRadius = 0, N0.call(this, N0.CONVEX), this.updateBoundingRadius(), this.updateArea(), y3U.o2d(this.area, 0))
  38359. throw new Error("Convex vertices must be given in conter-clockwise winding.");
  38360. } {
  38361. var N0 = (T0("__browserify_process"), T0("__browserify_Buffer"), T0("./Shape")),
  38362. S0 = T0("../math/vec2"),
  38363. I0 = T0("../math/polyk");
  38364. T0("poly-decomp");
  38365. }
  38366. G0.exports = W0,
  38367. W0.prototype = new N0;
  38368. var m0 = S0.create(),
  38369. A0 = S0.create();
  38370. W0.prototype.projectOntoLocalAxis = function (k, m) {
  38371. for (var e, o, n = null, u = null, k = m0, q = 0; y3U.x2d(q, this.vertices.length); q++)
  38372. e = this.vertices[q], o = S0.dot(e, k), (y3U.p2d(null, n) || y3U.q2d(o, n)) && (n = o), (y3U.b2d(null, u) || y3U.j2d(u, o)) && (u = o);
  38373. if (y3U.d2d(u, n)) {
  38374. var f = u;
  38375. u = n,
  38376. n = f;
  38377. }
  38378. S0.set(m, u, n);
  38379. },
  38380. W0.prototype.projectOntoWorldAxis = function (k, m, e, o) {
  38381. var n = A0;
  38382. this.projectOntoLocalAxis(k, o),
  38383. y3U.c2d(0, e) ? S0.rotate(n, k, e) : n = k;
  38384. var u = S0.dot(m, n);
  38385. S0.set(o, o[0] + u, o[1] + u);
  38386. },
  38387. W0.prototype.updateTriangles = function () {
  38388. this.triangles.length = 0;
  38389. for (var k = [], m = 0; y3U.s2d(m, this.vertices.length); m++) {
  38390. var e = this.vertices[m];
  38391. k.push(e[0], e[1]);
  38392. }
  38393. for (var o = I0.Triangulate(k), m = 0; y3U.Q2d(m, o.length); m += 3) {
  38394. var n = o[m],
  38395. u = o[m + 1],
  38396. q = o[m + 2];
  38397. this.triangles.push([n, u, q]);
  38398. }
  38399. }; {
  38400. var L0 = S0.create(),
  38401. z0 = S0.create(),
  38402. E0 = S0.create(),
  38403. v0 = S0.create(),
  38404. J0 = S0.create();
  38405. S0.create(),
  38406. S0.create(),
  38407. S0.create(),
  38408. S0.create();
  38409. }
  38410. W0.prototype.updateCenterOfMass = function () {
  38411. var k = this.triangles,
  38412. m = this.vertices,
  38413. e = this.centerOfMass,
  38414. o = L0,
  38415. n = E0,
  38416. u = v0,
  38417. q = J0,
  38418. f = z0;
  38419. S0.set(e, 0, 0);
  38420. for (var j = 0, U0 = 0; y3U.a1d(U0, k.length); U0++) {
  38421. var k0 = k[U0],
  38422. n = m[k0[0]],
  38423. u = m[k0[1]],
  38424. q = m[k0[2]];
  38425. S0.centroid(o, n, u, q);
  38426. var a0 = W0.triangleArea(n, u, q);
  38427. j += a0,
  38428. S0.scale(f, o, a0),
  38429. S0.add(e, e, f);
  38430. }
  38431. S0.scale(e, e, y3U.W1d(1, j));
  38432. },
  38433. W0.prototype.computeMomentOfInertia = function (k) {
  38434. for (var m = 0, e = 0, o = this.vertices.length, n = y3U.m1d(o, 1), u = 0; y3U.A1d(o, u); n = u, u++) {
  38435. var q = this.vertices[n],
  38436. f = this.vertices[u],
  38437. j = Math.abs(S0.crossLength(q, f)),
  38438. U0 = S0.dot(f, f) + S0.dot(f, q) + S0.dot(q, q);
  38439. m += y3U.w1d(j, U0),
  38440. e += j;
  38441. }
  38442. return y3U.E1d(k, 6, (m / e));
  38443. },
  38444. W0.prototype.updateBoundingRadius = function () {
  38445. for (var k = this.vertices, m = 0, e = 0; y3U.y1d(e, k.length); e++) {
  38446. var o = S0.squaredLength(k[e]);
  38447. y3U.o1d(o, m) && (m = o);
  38448. }
  38449. this.boundingRadius = Math.sqrt(m);
  38450. },
  38451. W0.triangleArea = function (k, m, e) {
  38452. return y3U.x1d(.5, ((m[0] - k[0]) * (e[1] - k[1]) - (e[0] - k[0]) * (m[1] - k[1])));
  38453. },
  38454. W0.prototype.updateArea = function () {
  38455. this.updateTriangles(),
  38456. this.area = 0;
  38457. for (var k = this.triangles, m = this.vertices, e = 0; y3U.p1d(e, k.length); e++) {
  38458. var o = k[e],
  38459. n = m[o[0]],
  38460. u = m[o[1]],
  38461. q = m[o[2]],
  38462. f = W0.triangleArea(n, u, q);
  38463. this.area += f;
  38464. }
  38465. },
  38466. W0.prototype.computeAABB = function (k, m, e) {
  38467. k.setFromPoints(this.vertices, m, e, 0);
  38468. };
  38469. }, {
  38470. "../math/polyk" : 30,
  38471. "../math/vec2" : 31,
  38472. "./Shape" : 45,
  38473. __browserify_Buffer : 1,
  38474. __browserify_process : 2,
  38475. "poly-decomp" : 7
  38476. }
  38477. ],
  38478. 40 : [function (n, u) {
  38479. function q(k, m) {
  38480. if (m = j.defaults(m, {
  38481. maxValue : null,
  38482. minValue : null,
  38483. elementWidth : .1
  38484. }), y3U.q1d(null, m.minValue) || y3U.b1d(null, m.maxValue)) {
  38485. m.maxValue = k[0],
  38486. m.minValue = k[0];
  38487. for (var e = 0; y3U.j1d(e, k.length); e++) {
  38488. var o = k[e];
  38489. y3U.d1d(o, m.maxValue) && (m.maxValue = o),
  38490. y3U.c1d(o, m.minValue) && (m.minValue = o);
  38491. }
  38492. }
  38493. this.data = k,
  38494. this.maxValue = m.maxValue,
  38495. this.minValue = m.minValue,
  38496. this.elementWidth = m.elementWidth,
  38497. f.call(this, f.HEIGHTFIELD);
  38498. }
  38499. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("./Shape")),
  38500. j = (n("../math/vec2"), n("../utils/Utils"));
  38501. u.exports = q,
  38502. q.prototype = new f,
  38503. q.prototype.computeMomentOfInertia = function () {
  38504. return Number.MAX_VALUE;
  38505. },
  38506. q.prototype.updateBoundingRadius = function () {
  38507. this.boundingRadius = Number.MAX_VALUE;
  38508. },
  38509. q.prototype.updateArea = function () {
  38510. for (var k = this.data, m = 0, e = 0; y3U.s1d(e, k.length - 1); e++)
  38511. m += y3U.Q1d((k[e] + k[e + 1]), 2, this.elementWidth);
  38512. this.area = m;
  38513. },
  38514. q.prototype.computeAABB = function (k, m) {
  38515. k.upperBound[0] = y3U.T6d(this.elementWidth, this.data.length) + m[0],
  38516. k.upperBound[1] = this.maxValue + m[1],
  38517. k.lowerBound[0] = m[0],
  38518. k.lowerBound[1] = -Number.MAX_VALUE;
  38519. };
  38520. }, {
  38521. "../math/vec2" : 31,
  38522. "../utils/Utils" : 50,
  38523. "./Shape" : 45,
  38524. __browserify_Buffer : 1,
  38525. __browserify_process : 2
  38526. }
  38527. ],
  38528. 41 : [function (n, u) {
  38529. function q(k) {
  38530. this.length = k || 1,
  38531. f.call(this, f.LINE);
  38532. }
  38533. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("./Shape")),
  38534. j = n("../math/vec2");
  38535. u.exports = q,
  38536. q.prototype = new f,
  38537. q.prototype.computeMomentOfInertia = function (k) {
  38538. return y3U.S6d(k, Math.pow(this.length, 2), 12);
  38539. },
  38540. q.prototype.updateBoundingRadius = function () {
  38541. this.boundingRadius = y3U.L6d(this.length, 2);
  38542. };
  38543. var U0 = [j.create(), j.create()];
  38544. q.prototype.computeAABB = function (k, m, e) {
  38545. var o = y3U.z6d(this.length, 2);
  38546. j.set(U0[0], -o, 0),
  38547. j.set(U0[1], o, 0),
  38548. k.setFromPoints(U0, m, e, 0);
  38549. };
  38550. }, {
  38551. "../math/vec2" : 31,
  38552. "./Shape" : 45,
  38553. __browserify_Buffer : 1,
  38554. __browserify_process : 2
  38555. }
  38556. ],
  38557. 42 : [function (e, o) {
  38558. function n() {
  38559. u.call(this, u.PARTICLE);
  38560. }
  38561. var u = (e("__browserify_process"), e("__browserify_Buffer"), e("./Shape")),
  38562. q = e("../math/vec2");
  38563. o.exports = n,
  38564. n.prototype = new u,
  38565. n.prototype.computeMomentOfInertia = function () {
  38566. return 0;
  38567. },
  38568. n.prototype.updateBoundingRadius = function () {
  38569. this.boundingRadius = 0;
  38570. },
  38571. n.prototype.computeAABB = function (k, m) {
  38572. q.copy(k.lowerBound, m),
  38573. q.copy(k.upperBound, m);
  38574. };
  38575. }, {
  38576. "../math/vec2" : 31,
  38577. "./Shape" : 45,
  38578. __browserify_Buffer : 1,
  38579. __browserify_process : 2
  38580. }
  38581. ],
  38582. 43 : [function (u, q) {
  38583. function f() {
  38584. j.call(this, j.PLANE);
  38585. } {
  38586. var j = (u("__browserify_process"), u("__browserify_Buffer"), u("./Shape")),
  38587. U0 = u("../math/vec2");
  38588. u("../utils/Utils");
  38589. }
  38590. q.exports = f,
  38591. f.prototype = new j,
  38592. f.prototype.computeMomentOfInertia = function () {
  38593. return 0;
  38594. },
  38595. f.prototype.updateBoundingRadius = function () {
  38596. this.boundingRadius = Number.MAX_VALUE;
  38597. },
  38598. f.prototype.computeAABB = function (k, m, e) {
  38599. var o = 0,
  38600. n = U0.set;
  38601. "number" == typeof e && (o = y3U.J6d(e, (2 * Math.PI))),
  38602. y3U.H6d(0, o) ? (n(k.lowerBound, -Number.MAX_VALUE, -Number.MAX_VALUE), n(k.upperBound, Number.MAX_VALUE, 0)) : y3U.h6d(o, Math.PI / 2) ? (n(k.lowerBound, 0, -Number.MAX_VALUE), n(k.upperBound, Number.MAX_VALUE, Number.MAX_VALUE)) : y3U.F6d(o, Math.PI) ? (n(k.lowerBound, -Number.MAX_VALUE, 0), n(k.upperBound, Number.MAX_VALUE, Number.MAX_VALUE)) : y3U.M6d(o, 3 * Math.PI / 2) ? (n(k.lowerBound, -Number.MAX_VALUE, -Number.MAX_VALUE), n(k.upperBound, 0, Number.MAX_VALUE)) : (n(k.lowerBound, -Number.MAX_VALUE, -Number.MAX_VALUE), n(k.upperBound, Number.MAX_VALUE, Number.MAX_VALUE)),
  38603. U0.add(k.lowerBound, k.lowerBound, m),
  38604. U0.add(k.upperBound, k.upperBound, m);
  38605. },
  38606. f.prototype.updateArea = function () {
  38607. this.area = Number.MAX_VALUE;
  38608. };
  38609. }, {
  38610. "../math/vec2" : 31,
  38611. "../utils/Utils" : 50,
  38612. "./Shape" : 45,
  38613. __browserify_Buffer : 1,
  38614. __browserify_process : 2
  38615. }
  38616. ],
  38617. 44 : [function (n, u) {
  38618. function q(k, m) {
  38619. this.width = k || 1,
  38620. this.height = m || 1;
  38621. var e = [f.fromValues(-k / 2, -m / 2), f.fromValues(y3U.n6d(k, 2), -m / 2), f.fromValues(y3U.f6d(k, 2), y3U.K6d(m, 2)), f.fromValues(-k / 2, y3U.B6d(m, 2))],
  38622. o = [f.fromValues(1, 0), f.fromValues(0, 1)];
  38623. U0.call(this, e, o),
  38624. this.type = j.RECTANGLE;
  38625. }
  38626. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("../math/vec2")),
  38627. j = n("./Shape"),
  38628. U0 = n("./Convex");
  38629. u.exports = q,
  38630. q.prototype = new U0([]),
  38631. q.prototype.computeMomentOfInertia = function (k) {
  38632. var m = this.width,
  38633. e = this.height;
  38634. return y3U.l6d(k, (e * e + m * m), 12);
  38635. },
  38636. q.prototype.updateBoundingRadius = function () {
  38637. var k = this.width,
  38638. m = this.height;
  38639. this.boundingRadius = y3U.O6d(Math.sqrt(k * k + m * m), 2);
  38640. };
  38641. f.create(),
  38642. f.create(),
  38643. f.create(),
  38644. f.create();
  38645. q.prototype.computeAABB = function (k, m, e) {
  38646. k.setFromPoints(this.vertices, m, e, 0);
  38647. },
  38648. q.prototype.updateArea = function () {
  38649. this.area = y3U.V6d(this.width, this.height);
  38650. };
  38651. }, {
  38652. "../math/vec2" : 31,
  38653. "./Convex" : 39,
  38654. "./Shape" : 45,
  38655. __browserify_Buffer : 1,
  38656. __browserify_process : 2
  38657. }
  38658. ],
  38659. 45 : [function (m, e) {
  38660. function o(k) {
  38661. this.type = k,
  38662. this.id = o.idCounter++,
  38663. this.boundingRadius = 0,
  38664. this.collisionGroup = 1,
  38665. this.collisionMask = 1,
  38666. k && this.updateBoundingRadius(),
  38667. this.material = null,
  38668. this.area = 0,
  38669. this.sensor = !1,
  38670. this.updateArea();
  38671. }
  38672. m("__browserify_process"),
  38673. m("__browserify_Buffer");
  38674. e.exports = o,
  38675. o.idCounter = 0,
  38676. o.CIRCLE = 1,
  38677. o.PARTICLE = 2,
  38678. o.PLANE = 4,
  38679. o.CONVEX = 8,
  38680. o.LINE = 16,
  38681. o.RECTANGLE = 32,
  38682. o.CAPSULE = 64,
  38683. o.HEIGHTFIELD = 128,
  38684. o.prototype.computeMomentOfInertia = function () {
  38685. throw new Error("Shape.computeMomentOfInertia is not implemented in this Shape...");
  38686. },
  38687. o.prototype.updateBoundingRadius = function () {
  38688. throw new Error("Shape.updateBoundingRadius is not implemented in this Shape...");
  38689. },
  38690. o.prototype.updateArea = function () {},
  38691. o.prototype.computeAABB = function () {};
  38692. }, {
  38693. __browserify_Buffer : 1,
  38694. __browserify_process : 2
  38695. }
  38696. ],
  38697. 46 : [function (w0, g0) {
  38698. function H0(m) {
  38699. var e = function (k) {
  38700. m[o] = k;
  38701. };
  38702. for (var o = m.length; o--; )
  38703. e(0);
  38704. }
  38705. function M0(k) {
  38706. e0.call(this, k, e0.GS),
  38707. k = k || {},
  38708. this.iterations = k.iterations || 10,
  38709. this.tolerance = k.tolerance || 1e-10,
  38710. this.arrayStep = 30,
  38711. this.lambda = new F0.ARRAY_TYPE(this.arrayStep),
  38712. this.Bs = new F0.ARRAY_TYPE(this.arrayStep),
  38713. this.invCs = new F0.ARRAY_TYPE(this.arrayStep),
  38714. this.useZeroRHS = !1,
  38715. this.frictionIterations = 0,
  38716. this.usedIterations = 0;
  38717. }
  38718. var p0 = (w0("__browserify_process"), w0("__browserify_Buffer"), w0("../math/vec2")),
  38719. e0 = w0("./Solver"),
  38720. F0 = w0("../utils/Utils"),
  38721. P0 = w0("../equations/FrictionEquation");
  38722. g0.exports = M0,
  38723. M0.prototype = new e0,
  38724. M0.prototype.solve = function (m, e) {
  38725. this.sortEquations();
  38726. var o = 0,
  38727. n = this.iterations,
  38728. u = this.frictionIterations,
  38729. q = this.equations,
  38730. f = q.length,
  38731. j = Math.pow(y3U.k8d(this.tolerance, f), 2),
  38732. U0 = e.bodies,
  38733. k0 = e.bodies.length,
  38734. a0 = (p0.add, p0.set, this.useZeroRHS),
  38735. T0 = this.lambda;
  38736. if (this.usedIterations = 0, f)
  38737. for (var G0 = 0; y3U.G8d(G0, k0); G0++) {
  38738. var W0 = U0[G0];
  38739. W0.updateSolveMassProperties();
  38740. }
  38741. y3U.N8d(T0.length, f) && (T0 = this.lambda = new F0.ARRAY_TYPE(f + this.arrayStep), this.Bs = new F0.ARRAY_TYPE(f + this.arrayStep), this.invCs = new F0.ARRAY_TYPE(f + this.arrayStep)),
  38742. H0(T0);
  38743. for (var N0 = this.invCs, S0 = this.Bs, T0 = this.lambda, G0 = 0; y3U.L8d(G0, q.length); G0++) {
  38744. var I0 = q[G0];
  38745. (y3U.z8d(I0.timeStep, m) || I0.needsUpdate) && (I0.timeStep = m, I0.update()),
  38746. S0[G0] = I0.computeB(I0.a, I0.b, m),
  38747. N0[G0] = I0.computeInvC(I0.epsilon);
  38748. }
  38749. var I0,
  38750. m0,
  38751. G0,
  38752. A0;
  38753. if (y3U.J8d(0, f)) {
  38754. for (G0 = 0; y3U.H8d(G0, k0); G0++) {
  38755. var W0 = U0[G0];
  38756. W0.resetConstraintVelocity();
  38757. }
  38758. if (u) {
  38759. for (o = 0; y3U.h8d(o, u); o++) {
  38760. for (m0 = 0, A0 = 0; y3U.F8d(A0, f); A0++) {
  38761. var L0 = function (k) {
  38762. I0 = k[A0];
  38763. };
  38764. L0(q);
  38765. var z0 = M0.iterateEquation(A0, I0, I0.epsilon, S0, N0, T0, a0, m, o);
  38766. m0 += Math.abs(z0);
  38767. }
  38768. if (this.usedIterations++, y3U.M8d(j, m0 * m0))
  38769. break;
  38770. }
  38771. for (M0.updateMultipliers(q, T0, y3U.n8d(1, m)), A0 = 0; y3U.f8d(A0, f); A0++) {
  38772. var E0 = q[A0];
  38773. if (y3U.K8d(E0, P0)) {
  38774. for (var v0 = 0, J0 = 0; y3U.B8d(J0, E0.contactEquations.length); J0++)
  38775. v0 += E0.contactEquations[J0].multiplier;
  38776. v0 *= y3U.l8d(E0.frictionCoefficient, E0.contactEquations.length),
  38777. E0.maxForce = v0,
  38778. E0.minForce = -v0;
  38779. }
  38780. }
  38781. }
  38782. for (o = 0; y3U.X8d(o, n); o++) {
  38783. for (m0 = 0, A0 = 0; y3U.Y8d(A0, f); A0++) {
  38784. var t0 = function (k) {
  38785. I0 = k[A0];
  38786. };
  38787. t0(q);
  38788. var z0 = M0.iterateEquation(A0, I0, I0.epsilon, S0, N0, T0, a0, m, o);
  38789. m0 += Math.abs(z0);
  38790. }
  38791. if (this.usedIterations++, y3U.U0r(j, m0 * m0))
  38792. break;
  38793. }
  38794. for (G0 = 0; y3U.T0r(G0, k0); G0++)
  38795. U0[G0].addConstraintVelocity();
  38796. M0.updateMultipliers(q, T0, y3U.S0r(1, m));
  38797. }
  38798. },
  38799. M0.updateMultipliers = function (k, m, e) {
  38800. var o = function () {
  38801. k[n].multiplier = y3U.I0r(m[n], e);
  38802. };
  38803. for (var n = k.length; n--; )
  38804. o();
  38805. },
  38806. M0.iterateEquation = function (k, m, e, o, n, u, q, f) {
  38807. var j = o[k],
  38808. U0 = n[k],
  38809. k0 = u[k],
  38810. a0 = m.computeGWlambda(),
  38811. T0 = m.maxForce,
  38812. G0 = m.minForce;
  38813. q && (j = 0);
  38814. var W0 = y3U.C0r(U0, (j - a0 - e * k0)),
  38815. N0 = k0 + W0;
  38816. return y3U.v0r(G0 * f, N0) ? W0 = y3U.t0r(G0 * f, k0) : y3U.y0r(N0, T0 * f) && (W0 = y3U.o0r(T0 * f, k0)),
  38817. u[k] += W0,
  38818. m.addToWlambda(W0),
  38819. W0;
  38820. };
  38821. }, {
  38822. "../equations/FrictionEquation" : 24,
  38823. "../math/vec2" : 31,
  38824. "../utils/Utils" : 50,
  38825. "./Solver" : 47,
  38826. __browserify_Buffer : 1,
  38827. __browserify_process : 2
  38828. }
  38829. ],
  38830. 47 : [function (n, u) {
  38831. function q(k, m) {
  38832. k = k || {},
  38833. f.call(this),
  38834. this.type = m,
  38835. this.equations = [],
  38836. this.equationSortFunction = k.equationSortFunction || !1;
  38837. }
  38838. var f = (n("__browserify_process"), n("__browserify_Buffer"), n("../utils/Utils"), n("../events/EventEmitter"));
  38839. u.exports = q,
  38840. q.prototype = new f,
  38841. q.prototype.solve = function () {
  38842. throw new Error("Solver.solve should be implemented by subclasses!");
  38843. };
  38844. var j = {
  38845. bodies : []
  38846. };
  38847. q.prototype.solveIsland = function (k, m) {
  38848. this.removeAllEquations(),
  38849. m.equations.length && (this.addEquations(m.equations), j.bodies.length = 0, m.getBodies(j.bodies), j.bodies.length && this.solve(k, j));
  38850. },
  38851. q.prototype.sortEquations = function () {
  38852. this.equationSortFunction && this.equations.sort(this.equationSortFunction);
  38853. },
  38854. q.prototype.addEquation = function (k) {
  38855. k.enabled && this.equations.push(k);
  38856. },
  38857. q.prototype.addEquations = function (k) {
  38858. for (var m = 0, e = k.length; y3U.x0r(m, e); m++) {
  38859. var o = k[m];
  38860. o.enabled && this.equations.push(o);
  38861. }
  38862. },
  38863. q.prototype.removeEquation = function (k) {
  38864. var m = this.equations.indexOf(k);
  38865. -1 !== m && this.equations.splice(m, 1);
  38866. },
  38867. q.prototype.removeAllEquations = function () {
  38868. this.equations.length = 0;
  38869. },
  38870. q.GS = 1,
  38871. q.ISLAND = 2;
  38872. }, {
  38873. "../events/EventEmitter" : 27,
  38874. "../utils/Utils" : 50,
  38875. __browserify_Buffer : 1,
  38876. __browserify_process : 2
  38877. }
  38878. ],
  38879. 48 : [function (a0, T0) {
  38880. function G0(k, m, e, o) {
  38881. this.shapeA = m,
  38882. this.shapeB = o,
  38883. this.bodyA = k,
  38884. this.bodyB = e;
  38885. }
  38886. function W0() {
  38887. this.overlappingShapesLastState = new N0,
  38888. this.overlappingShapesCurrentState = new N0,
  38889. this.recordPool = [],
  38890. this.tmpDict = new N0,
  38891. this.tmpArray1 = [];
  38892. } {
  38893. var N0 = (a0("__browserify_process"), a0("__browserify_Buffer"), a0("./TupleDictionary"));
  38894. a0("./Utils");
  38895. }
  38896. T0.exports = W0,
  38897. W0.prototype.tick = function () {
  38898. for (var k = this.overlappingShapesLastState, m = this.overlappingShapesCurrentState, e = k.keys.length; e--; ) {
  38899. var o = k.keys[e],
  38900. n = k.getByKey(o),
  38901. u = m.getByKey(o);
  38902. n && !u && this.recordPool.push(n);
  38903. }
  38904. k.reset(),
  38905. k.copy(m),
  38906. m.reset();
  38907. },
  38908. W0.prototype.setOverlapping = function (k, m, e, o) {
  38909. var n = (this.overlappingShapesLastState, this.overlappingShapesCurrentState);
  38910. if (!n.get(m.id, o.id)) {
  38911. var u;
  38912. this.recordPool.length ? (u = this.recordPool.pop(), u.set(k, m, e, o)) : u = new G0(k, m, e, o),
  38913. n.set(m.id, o.id, u);
  38914. }
  38915. },
  38916. W0.prototype.getNewOverlaps = function (k) {
  38917. return this.getDiff(this.overlappingShapesLastState, this.overlappingShapesCurrentState, k);
  38918. },
  38919. W0.prototype.getEndOverlaps = function (k) {
  38920. return this.getDiff(this.overlappingShapesCurrentState, this.overlappingShapesLastState, k);
  38921. },
  38922. W0.prototype.bodiesAreOverlapping = function (k, m) {
  38923. for (var e = this.overlappingShapesCurrentState, o = e.keys.length; o--; ) {
  38924. var n = e.keys[o],
  38925. u = e.data[n];
  38926. if (y3U.p0r(u.bodyA, k) && y3U.q0r(u.bodyB, m) || y3U.b0r(u.bodyA, m) && y3U.j0r(u.bodyB, k))
  38927. return !0;
  38928. }
  38929. return !1;
  38930. },
  38931. W0.prototype.getDiff = function (m, e, o) {
  38932. var n = function (k) {
  38933. o.length = k;
  38934. },
  38935. o = o || [],
  38936. u = m,
  38937. q = e;
  38938. n(0);
  38939. for (var f = q.keys.length; f--; ) {
  38940. var j = q.keys[f],
  38941. U0 = q.data[j];
  38942. if (!U0)
  38943. throw new Error("Key " + j + " had no data!");
  38944. var k0 = u.data[j];
  38945. k0 || o.push(U0);
  38946. }
  38947. return o;
  38948. },
  38949. W0.prototype.isNewOverlap = function (k, m) {
  38950. var e = y3U.d0r(0, k.id),
  38951. o = y3U.c0r(0, m.id),
  38952. n = this.overlappingShapesLastState,
  38953. u = this.overlappingShapesCurrentState;
  38954. return !n.get(e, o) && !!u.get(e, o);
  38955. },
  38956. W0.prototype.getNewBodyOverlaps = function (k) {
  38957. this.tmpArray1.length = 0;
  38958. var m = this.getNewOverlaps(this.tmpArray1);
  38959. return this.getBodyDiff(m, k);
  38960. },
  38961. W0.prototype.getEndBodyOverlaps = function (k) {
  38962. this.tmpArray1.length = 0;
  38963. var m = this.getEndOverlaps(this.tmpArray1);
  38964. return this.getBodyDiff(m, k);
  38965. },
  38966. W0.prototype.getBodyDiff = function (k, m) {
  38967. var e = function () {
  38968. m = m || [];
  38969. };
  38970. e();
  38971. for (var o = this.tmpDict, n = k.length; n--; ) {
  38972. var u = k[n];
  38973. o.set(y3U.s0r(0, u.bodyA.id), y3U.Q0r(0, u.bodyB.id), u);
  38974. }
  38975. for (n = o.keys.length; n--; ) {
  38976. var u = o.getByKey(o.keys[n]);
  38977. u && m.push(u.bodyA, u.bodyB);
  38978. }
  38979. return o.reset(),
  38980. m;
  38981. },
  38982. G0.prototype.set = function (k, m, e, o) {
  38983. G0.call(this, k, m, e, o);
  38984. };
  38985. }, {
  38986. "./TupleDictionary" : 49,
  38987. "./Utils" : 50,
  38988. __browserify_Buffer : 1,
  38989. __browserify_process : 2
  38990. }
  38991. ],
  38992. 49 : [function (u, q) {
  38993. function f() {
  38994. this.data = {},
  38995. this.keys = [];
  38996. }
  38997. var j = (u("__browserify_process"), u("__browserify_Buffer"), u("./Utils"));
  38998. q.exports = f,
  38999. f.prototype.getKey = function (k, m) {
  39000. return k = y3U.a7r(0, k),
  39001. m = y3U.W7r(0, m),
  39002. y3U.m7r((0 | k), (0 | m)) ? -1 : y3U.A7r(0, ((0 | k) > (0 | m) ? k << 16 | 65535 & m : m << 16 | 65535 & k));
  39003. },
  39004. f.prototype.getByKey = function (k) {
  39005. return k = y3U.w7r(0, k),
  39006. this.data[k];
  39007. },
  39008. f.prototype.get = function (k, m) {
  39009. return this.data[this.getKey(k, m)];
  39010. },
  39011. f.prototype.set = function (k, m, e) {
  39012. if (!e)
  39013. throw new Error("No data!");
  39014. var o = this.getKey(k, m);
  39015. return this.data[o] || this.keys.push(o),
  39016. this.data[o] = e,
  39017. o;
  39018. },
  39019. f.prototype.reset = function () {
  39020. var m = function (k) {
  39021. o.length = k;
  39022. };
  39023. for (var e = this.data, o = this.keys, n = o.length; n--; )
  39024. delete e[o[n]];
  39025. m(0);
  39026. },
  39027. f.prototype.copy = function (k) {
  39028. this.reset(),
  39029. j.appendArray(this.keys, k.keys);
  39030. for (var m = k.keys.length; m--; ) {
  39031. var e = k.keys[m];
  39032. this.data[e] = k.data[e];
  39033. }
  39034. };
  39035. }, {
  39036. "./Utils" : 50,
  39037. __browserify_Buffer : 1,
  39038. __browserify_process : 2
  39039. }
  39040. ],
  39041. 50 : [function (U0, k0) {
  39042. function a0() {}
  39043. U0("__browserify_process"),
  39044. U0("__browserify_Buffer");
  39045. k0.exports = a0,
  39046. a0.appendArray = function (k, m) {
  39047. if (y3U.E7r(m.length, 15e4))
  39048. k.push.apply(k, m);
  39049. else
  39050. for (var e = 0, o = m.length; y3U.e7r(e, o); ++e)
  39051. k.push(m[e]);
  39052. },
  39053. a0.splice = function (m, e, o) {
  39054. var n = function (k) {
  39055. m[f] = k[f + o];
  39056. },
  39057. u = function (k) {
  39058. m.length = k;
  39059. },
  39060. q = function () {
  39061. o = o || 1;
  39062. };
  39063. q();
  39064. for (var f = e, j = y3U.g7r(m.length, o); y3U.r7r(j, f); f++)
  39065. n(m);
  39066. u(j);
  39067. },
  39068. a0.ARRAY_TYPE = r2w8n[E8n].Float32Array || Array,
  39069. a0.extend = function (m, e) {
  39070. var o = function (k) {
  39071. m[n] = k[n];
  39072. };
  39073. for (var n in e)
  39074. o(e);
  39075. },
  39076. a0.defaults = function (k, m) {
  39077. var e = function () {
  39078. k = k || {};
  39079. };
  39080. e();
  39081. for (var o in m)
  39082. y3U.i7r(o, k) || (k[o] = m[o]);
  39083. return k;
  39084. };
  39085. }, {
  39086. __browserify_Buffer : 1,
  39087. __browserify_process : 2
  39088. }
  39089. ],
  39090. 51 : [function (f, j) {
  39091. function U0() {
  39092. this.equations = [],
  39093. this.bodies = [];
  39094. }
  39095. var k0 = (f("__browserify_process"), f("__browserify_Buffer"), f("../objects/Body"));
  39096. j.exports = U0,
  39097. U0.prototype.reset = function () {
  39098. this.equations.length = this.bodies.length = 0;
  39099. };
  39100. var a0 = [];
  39101. U0.prototype.getBodies = function (m) {
  39102. var e = function (k) {
  39103. a0.length = k;
  39104. },
  39105. o = m || [],
  39106. n = this.equations;
  39107. e(0);
  39108. for (var u = 0; y3U.u7r(u, n.length); u++) {
  39109. var q = n[u];
  39110. -1 === a0.indexOf(q.bodyA.id) && (o.push(q.bodyA), a0.push(q.bodyA.id)),
  39111. -1 === a0.indexOf(q.bodyB.id) && (o.push(q.bodyB), a0.push(q.bodyB.id));
  39112. }
  39113. return o;
  39114. },
  39115. U0.prototype.wantsToSleep = function () {
  39116. for (var k = 0; y3U.P7r(k, this.bodies.length); k++) {
  39117. var m = this.bodies[k];
  39118. if (y3U.D7r(m.type, k0.DYNAMIC) && !m.wantsToSleep)
  39119. return !1;
  39120. }
  39121. return !0;
  39122. },
  39123. U0.prototype.sleep = function () {
  39124. for (var k = 0; y3U.Z7r(k, this.bodies.length); k++) {
  39125. var m = this.bodies[k];
  39126. m.sleep();
  39127. }
  39128. return !0;
  39129. };
  39130. }, {
  39131. "../objects/Body" : 32,
  39132. __browserify_Buffer : 1,
  39133. __browserify_process : 2
  39134. }
  39135. ],
  39136. 52 : [function (W0, N0) {
  39137. function S0() {
  39138. this._nodePool = [],
  39139. this._islandPool = [],
  39140. this.equations = [],
  39141. this.islands = [],
  39142. this.nodes = [],
  39143. this.queue = [];
  39144. }
  39145. var I0 = (W0("__browserify_process"), W0("__browserify_Buffer"), W0("../math/vec2"), W0("./Island")),
  39146. m0 = W0("./IslandNode"),
  39147. A0 = W0("../objects/Body");
  39148. N0.exports = S0,
  39149. S0.getUnvisitedNode = function (k) {
  39150. for (var m = k.length, e = 0; y3U.R7r(e, m); e++) {
  39151. var o = k[e];
  39152. if (!o.visited && y3U.O7r(o.body.type, A0.DYNAMIC))
  39153. return o;
  39154. }
  39155. return !1;
  39156. },
  39157. S0.prototype.visit = function (k, m, e) {
  39158. m.push(k.body);
  39159. for (var o = k.equations.length, n = 0; y3U.V7r(n, o); n++) {
  39160. var u = k.equations[n];
  39161. -1 === e.indexOf(u) && e.push(u);
  39162. }
  39163. },
  39164. S0.prototype.bfs = function (k, m, e) {
  39165. var o = this.queue;
  39166. for (o.length = 0, o.push(k), k.visited = !0, this.visit(k, m, e); o.length; )
  39167. for (var n, u = o.pop(); n = S0.getUnvisitedNode(u.neighbors); )
  39168. n.visited = !0, this.visit(n, m, e), y3U.k4r(n.body.type, A0.DYNAMIC) && o.push(n);
  39169. },
  39170. S0.prototype.split = function (k) {
  39171. for (var m = k.bodies, e = this.nodes, o = this.equations; e.length; )
  39172. this._nodePool.push(e.pop());
  39173. for (var n = 0; y3U.G4r(n, m.length); n++)
  39174. if (this._nodePool.length) {
  39175. var u = this._nodePool.pop();
  39176. u.reset(),
  39177. u.body = m[n],
  39178. e.push(u);
  39179. } else
  39180. e.push(new m0(m[n]));
  39181. for (var q = 0; y3U.N4r(q, o.length); q++) {
  39182. var f = o[q],
  39183. n = m.indexOf(f.bodyA),
  39184. j = m.indexOf(f.bodyB),
  39185. U0 = e[n],
  39186. k0 = e[j];
  39187. U0.neighbors.push(k0),
  39188. k0.neighbors.push(U0),
  39189. U0.equations.push(f),
  39190. k0.equations.push(f);
  39191. }
  39192. for (var a0 = this.islands; a0.length; ) {
  39193. var T0 = a0.pop();
  39194. T0.reset(),
  39195. this._islandPool.push(T0);
  39196. }
  39197. for (var G0; G0 = S0.getUnvisitedNode(e); ) {
  39198. var T0 = this._islandPool.length ? this._islandPool.pop() : new I0;
  39199. this.bfs(G0, T0.bodies, T0.equations),
  39200. a0.push(T0);
  39201. }
  39202. return a0;
  39203. };
  39204. }, {
  39205. "../math/vec2" : 31,
  39206. "../objects/Body" : 32,
  39207. "./Island" : 51,
  39208. "./IslandNode" : 53,
  39209. __browserify_Buffer : 1,
  39210. __browserify_process : 2
  39211. }
  39212. ],
  39213. 53 : [function (m, e) {
  39214. function o(k) {
  39215. this.body = k,
  39216. this.neighbors = [],
  39217. this.equations = [],
  39218. this.visited = !1;
  39219. }
  39220. m("__browserify_process"),
  39221. m("__browserify_Buffer");
  39222. e.exports = o,
  39223. o.prototype.reset = function () {
  39224. this.equations.length = 0,
  39225. this.neighbors.length = 0,
  39226. this.visited = !1,
  39227. this.body = null;
  39228. };
  39229. }, {
  39230. __browserify_Buffer : 1,
  39231. __browserify_process : 2
  39232. }
  39233. ],
  39234. 54 : [function (h0, u0) {
  39235. function n0(k) {
  39236. i0.apply(this),
  39237. k = k || {},
  39238. this.springs = [],
  39239. this.bodies = [],
  39240. this.disabledBodyCollisionPairs = [],
  39241. this.solver = k.solver || new A7,
  39242. this.narrowphase = new a7(this),
  39243. this.islandManager = new J7,
  39244. this.gravity = f0.fromValues(0, -9.78),
  39245. k.gravity && f0.copy(this.gravity, k.gravity),
  39246. this.frictionGravity = f0.length(this.gravity) || 10,
  39247. this.useWorldGravityAsFrictionGravity = !0,
  39248. this.useFrictionGravityOnZeroGravity = !0,
  39249. this.doProfiling = k.doProfiling || !1,
  39250. this.lastStepTime = 0,
  39251. this.broadphase = k.broadphase || new X0,
  39252. this.broadphase.setWorld(this),
  39253. this.constraints = [],
  39254. this.defaultMaterial = new S7,
  39255. this.defaultContactMaterial = new U7(this.defaultMaterial, this.defaultMaterial),
  39256. this.lastTimeStep = y3U.L4r(1, 60),
  39257. this.applySpringForces = !0,
  39258. this.applyDamping = !0,
  39259. this.applyGravity = !0,
  39260. this.solveConstraints = !0,
  39261. this.contactMaterials = [],
  39262. this.time = 0,
  39263. this.stepping = !1,
  39264. this.bodiesToBeRemoved = [],
  39265. this.fixedStepTime = 0,
  39266. this.islandSplit = "undefined" != typeof k.islandSplit ? !!k.islandSplit : !1,
  39267. this.emitImpactEvent = !0,
  39268. this._constraintIdCounter = 0,
  39269. this._bodyIdCounter = 0,
  39270. this.postStepEvent = {
  39271. type : "postStep"
  39272. },
  39273. this.addBodyEvent = {
  39274. type : "addBody",
  39275. body : null
  39276. },
  39277. this.removeBodyEvent = {
  39278. type : "removeBody",
  39279. body : null
  39280. },
  39281. this.addSpringEvent = {
  39282. type : "addSpring",
  39283. spring : null
  39284. },
  39285. this.impactEvent = {
  39286. type : "impact",
  39287. bodyA : null,
  39288. bodyB : null,
  39289. shapeA : null,
  39290. shapeB : null,
  39291. contactEquation : null
  39292. },
  39293. this.postBroadphaseEvent = {
  39294. type : "postBroadphase",
  39295. pairs : null
  39296. },
  39297. this.sleepMode = n0.NO_SLEEPING,
  39298. this.beginContactEvent = {
  39299. type : "beginContact",
  39300. shapeA : null,
  39301. shapeB : null,
  39302. bodyA : null,
  39303. bodyB : null,
  39304. contactEquations : []
  39305. },
  39306. this.endContactEvent = {
  39307. type : "endContact",
  39308. shapeA : null,
  39309. shapeB : null,
  39310. bodyA : null,
  39311. bodyB : null
  39312. },
  39313. this.preSolveEvent = {
  39314. type : "preSolve",
  39315. contactEquations : null,
  39316. frictionEquations : null
  39317. },
  39318. this.overlappingShapesLastState = {
  39319. keys : []
  39320. },
  39321. this.overlappingShapesCurrentState = {
  39322. keys : []
  39323. },
  39324. this.overlapKeeper = new W7;
  39325. } {
  39326. var A7 = (h0("__browserify_process"), h0("__browserify_Buffer"), h0("../solver/GSSolver")),
  39327. f0 = (h0("../solver/Solver"), h0("../collision/NaiveBroadphase"), h0("../math/vec2")),
  39328. G7 = h0("../shapes/Circle"),
  39329. C7 = (h0("../shapes/Rectangle"), h0("../shapes/Convex")),
  39330. z7 = (h0("../shapes/Line"), h0("../shapes/Plane")),
  39331. B0 = h0("../shapes/Capsule"),
  39332. v7 = h0("../shapes/Particle"),
  39333. i0 = h0("../events/EventEmitter"),
  39334. K0 = h0("../objects/Body"),
  39335. S7 = (h0("../shapes/Shape"), h0("../objects/LinearSpring"), h0("../material/Material")),
  39336. U7 = h0("../material/ContactMaterial"),
  39337. X0 = (h0("../constraints/DistanceConstraint"), h0("../constraints/Constraint"), h0("../constraints/LockConstraint"), h0("../constraints/RevoluteConstraint"), h0("../constraints/PrismaticConstraint"), h0("../constraints/GearConstraint"), h0("../../package.json"), h0("../collision/Broadphase"), h0("../collision/SAPBroadphase")),
  39338. a7 = h0("../collision/Narrowphase"),
  39339. Q0 = h0("../utils/Utils"),
  39340. W7 = h0("../utils/OverlapKeeper"),
  39341. J7 = h0("./IslandManager");
  39342. h0("../objects/RotationalSpring");
  39343. }
  39344. if (u0.exports = n0, "undefined" == typeof performance && (performance = {}), !performance.now) {
  39345. var c0 = Date.now();
  39346. performance.timing && performance.timing.navigationStart && (c0 = performance.timing.navigationStart),
  39347. performance.now = function () {
  39348. return y3U.z4r(Date.now(), c0);
  39349. };
  39350. }
  39351. n0.prototype = new Object(i0.prototype),
  39352. n0.NO_SLEEPING = 1,
  39353. n0.BODY_SLEEPING = 2,
  39354. n0.ISLAND_SLEEPING = 4,
  39355. n0.prototype.addConstraint = function (k) {
  39356. this.constraints.push(k);
  39357. },
  39358. n0.prototype.addContactMaterial = function (k) {
  39359. this.contactMaterials.push(k);
  39360. },
  39361. n0.prototype.removeContactMaterial = function (k) {
  39362. var m = this.contactMaterials.indexOf(k);
  39363. -1 !== m && Q0.splice(this.contactMaterials, m, 1);
  39364. },
  39365. n0.prototype.getContactMaterial = function (k, m) {
  39366. for (var e = this.contactMaterials, o = 0, n = e.length; y3U.J4r(o, n); o++) {
  39367. var u = e[o];
  39368. if (y3U.H4r(u.materialA.id, k.id) && y3U.h4r(u.materialB.id, m.id) || y3U.F4r(u.materialA.id, m.id) && y3U.M4r(u.materialB.id, k.id))
  39369. return u;
  39370. }
  39371. return !1;
  39372. },
  39373. n0.prototype.removeConstraint = function (k) {
  39374. var m = this.constraints.indexOf(k);
  39375. -1 !== m && Q0.splice(this.constraints, m, 1);
  39376. };
  39377. var H7 = (f0.create(), f0.create(), f0.create(), f0.create(), f0.create(), f0.create(), f0.create()),
  39378. I7 = f0.fromValues(0, 0),
  39379. N7 = f0.fromValues(0, 0),
  39380. L7 = (f0.fromValues(0, 0), f0.fromValues(0, 0));
  39381. n0.prototype.step = function (k, m, e) {
  39382. if (e = e || 10, m = m || 0, y3U.n4r(0, m))
  39383. this.internalStep(k), this.time += k;
  39384. else {
  39385. var o = y3U.f4r(Math.floor((this.time + m) / k), Math.floor(this.time / k));
  39386. o = Math.min(o, e);
  39387. for (var n = performance.now(), u = 0; y3U.K4r(u, o) && (this.internalStep(k), !(y3U.B4r(performance.now() - n, 1e3 * k))); u++);
  39388. this.time += m;
  39389. for (var q = y3U.l4r(this.time, k), f = y3U.X4r(q, k), j = 0; y3U.Y4r(j, this.bodies.length); j++) {
  39390. var U0 = this.bodies[j];
  39391. y3U.U3r(U0.type, K0.STATIC) && y3U.T3r(U0.sleepState, K0.SLEEPING) ? (f0.sub(L7, U0.position, U0.previousPosition), f0.scale(L7, L7, f), f0.add(U0.interpolatedPosition, U0.position, L7), U0.interpolatedAngle = U0.angle + y3U.S3r((U0.angle - U0.previousAngle), f)) : (f0.copy(U0.interpolatedPosition, U0.position), U0.interpolatedAngle = U0.angle);
  39392. }
  39393. }
  39394. };
  39395. var t7 = [];
  39396. n0.prototype.internalStep = function (k) {
  39397. this.stepping = !0;
  39398. var m,
  39399. e,
  39400. o = this,
  39401. n = this.doProfiling,
  39402. u = this.springs.length,
  39403. q = this.springs,
  39404. f = this.bodies,
  39405. j = this.gravity,
  39406. U0 = this.solver,
  39407. k0 = this.bodies.length,
  39408. a0 = this.broadphase,
  39409. T0 = this.narrowphase,
  39410. G0 = this.constraints,
  39411. W0 = H7,
  39412. N0 = (f0.scale, f0.add),
  39413. S0 = (f0.rotate, this.islandManager);
  39414. if (this.overlapKeeper.tick(), this.lastTimeStep = k, n && (m = performance.now()), this.useWorldGravityAsFrictionGravity) {
  39415. var I0 = f0.length(this.gravity);
  39416. y3U.I3r(0, I0) && this.useFrictionGravityOnZeroGravity || (this.frictionGravity = I0);
  39417. }
  39418. if (this.applyGravity)
  39419. for (var m0 = 0; y3U.C3r(m0, k0); m0++) {
  39420. var A0 = f[m0],
  39421. L0 = A0.force;
  39422. y3U.v3r(A0.type, K0.DYNAMIC) && y3U.t3r(A0.sleepState, K0.SLEEPING) && (f0.scale(W0, j, y3U.y3r(A0.mass, A0.gravityScale)), N0(L0, L0, W0));
  39423. }
  39424. if (this.applySpringForces)
  39425. for (var m0 = 0; y3U.o3r(m0, u); m0++) {
  39426. var z0 = q[m0];
  39427. z0.applyForce();
  39428. }
  39429. if (this.applyDamping)
  39430. for (var m0 = 0; y3U.x3r(m0, k0); m0++) {
  39431. var A0 = f[m0];
  39432. y3U.p3r(A0.type, K0.DYNAMIC) && A0.applyDamping(k);
  39433. }
  39434. for (var E0 = a0.getCollisionPairs(this), v0 = this.disabledBodyCollisionPairs, m0 = y3U.q3r(v0.length, 2); y3U.b3r(m0, 0); m0 -= 2)
  39435. for (var J0 = y3U.j3r(E0.length, 2); y3U.d3r(J0, 0); J0 -= 2)
  39436. (y3U.c3r(v0[m0], E0[J0]) && y3U.s3r(v0[m0 + 1], E0[J0 + 1]) || y3U.Q3r(v0[m0 + 1], E0[J0]) && y3U.a9r(v0[m0], E0[J0 + 1])) && E0.splice(J0, 2);
  39437. var t0 = G0.length;
  39438. for (m0 = 0; y3U.W9r(m0, t0); m0++) {
  39439. var w0 = G0[m0];
  39440. if (!w0.collideConnected)
  39441. for (var J0 = y3U.m9r(E0.length, 2); y3U.A9r(J0, 0); J0 -= 2)
  39442. (y3U.w9r(w0.bodyA, E0[J0]) && y3U.E9r(w0.bodyB, E0[J0 + 1]) || y3U.e9r(w0.bodyB, E0[J0]) && y3U.g9r(w0.bodyA, E0[J0 + 1])) && E0.splice(J0, 2);
  39443. }
  39444. this.postBroadphaseEvent.pairs = E0,
  39445. this.emit(this.postBroadphaseEvent),
  39446. T0.reset(this);
  39447. for (var m0 = 0, g0 = E0.length; y3U.r9r(m0, g0); m0 += 2)
  39448. for (var H0 = E0[m0], M0 = E0[m0 + 1], p0 = 0, e0 = H0.shapes.length; y3U.i9r(p0, e0); p0++)
  39449. for (var F0 = H0.shapes[p0], P0 = H0.shapeOffsets[p0], O0 = H0.shapeAngles[p0], b0 = 0, d0 = M0.shapes.length; y3U.u9r(b0, d0); b0++) {
  39450. var l0 = M0.shapes[b0],
  39451. j0 = M0.shapeOffsets[b0],
  39452. Z0 = M0.shapeAngles[b0],
  39453. R0 = this.defaultContactMaterial;
  39454. if (F0.material && l0.material) {
  39455. var q0 = this.getContactMaterial(F0.material, l0.material);
  39456. q0 && (R0 = q0);
  39457. }
  39458. this.runNarrowphase(T0, H0, F0, P0, O0, M0, l0, j0, Z0, R0, this.frictionGravity);
  39459. }
  39460. for (var m0 = 0; y3U.P9r(m0, k0); m0++) {
  39461. var D0 = f[m0];
  39462. D0._wakeUpAfterNarrowphase && (D0.wakeUp(), D0._wakeUpAfterNarrowphase = !1);
  39463. }
  39464. if (this.has("endContact")) {
  39465. this.overlapKeeper.getEndOverlaps(t7);
  39466. for (var i = this.endContactEvent, b0 = t7.length; b0--; ) {
  39467. var k7 = t7[b0];
  39468. i.shapeA = k7.shapeA,
  39469. i.shapeB = k7.shapeB,
  39470. i.bodyA = k7.bodyA,
  39471. i.bodyB = k7.bodyB,
  39472. this.emit(i);
  39473. }
  39474. }
  39475. var o0 = this.preSolveEvent;
  39476. o0.contactEquations = T0.contactEquations,
  39477. o0.frictionEquations = T0.frictionEquations,
  39478. this.emit(o0);
  39479. var t0 = G0.length;
  39480. for (m0 = 0; y3U.D9r(m0, t0); m0++)
  39481. G0[m0].update();
  39482. if (T0.contactEquations.length || T0.frictionEquations.length || G0.length)
  39483. if (this.islandSplit) {
  39484. for (S0.equations.length = 0, Q0.appendArray(S0.equations, T0.contactEquations), Q0.appendArray(S0.equations, T0.frictionEquations), m0 = 0; y3U.Z9r(m0, t0); m0++)
  39485. Q0.appendArray(S0.equations, G0[m0].equations);
  39486. S0.split(this);
  39487. for (var m0 = 0; y3U.R9r(m0, S0.islands.length); m0++) {
  39488. var $ = S0.islands[m0];
  39489. $.equations.length && U0.solveIsland(k, $);
  39490. }
  39491. } else {
  39492. for (U0.addEquations(T0.contactEquations), U0.addEquations(T0.frictionEquations), m0 = 0; y3U.O9r(m0, t0); m0++)
  39493. U0.addEquations(G0[m0].equations);
  39494. this.solveConstraints && U0.solve(k, this),
  39495. U0.removeAllEquations();
  39496. }
  39497. for (var m0 = 0; y3U.V9r(m0, k0); m0++) {
  39498. var D0 = f[m0];
  39499. y3U.k5r(D0.sleepState, K0.SLEEPING) && y3U.G5r(D0.type, K0.STATIC) && n0.integrateBody(D0, k);
  39500. }
  39501. for (var m0 = 0; y3U.N5r(m0, k0); m0++)
  39502. f[m0].setZeroForce();
  39503. if (n && (e = performance.now(), o.lastStepTime = y3U.L5r(e, m)), this.emitImpactEvent && this.has("impact"))
  39504. for (var Y0 = this.impactEvent, m0 = 0; y3U.z5r(m0, T0.contactEquations.length); m0++) {
  39505. var C0 = T0.contactEquations[m0];
  39506. C0.firstImpact && (Y0.bodyA = C0.bodyA, Y0.bodyB = C0.bodyB, Y0.shapeA = C0.shapeA, Y0.shapeB = C0.shapeB, Y0.contactEquation = C0, this.emit(Y0));
  39507. }
  39508. if (y3U.J5r(this.sleepMode, n0.BODY_SLEEPING))
  39509. for (m0 = 0; y3U.H5r(m0, k0); m0++)
  39510. f[m0].sleepTick(this.time, !1, k);
  39511. else if (y3U.h5r(this.sleepMode, n0.ISLAND_SLEEPING) && this.islandSplit) {
  39512. for (m0 = 0; y3U.F5r(m0, k0); m0++)
  39513. f[m0].sleepTick(this.time, !0, k);
  39514. for (var m0 = 0; y3U.M5r(m0, this.islandManager.islands.length); m0++) {
  39515. var $ = this.islandManager.islands[m0];
  39516. $.wantsToSleep() && $.sleep();
  39517. }
  39518. }
  39519. if (this.stepping = !1, this.bodiesToBeRemoved.length) {
  39520. for (var m0 = 0; y3U.n5r(m0, this.bodiesToBeRemoved.length); m0++)
  39521. this.removeBody(this.bodiesToBeRemoved[m0]);
  39522. this.bodiesToBeRemoved.length = 0;
  39523. }
  39524. this.emit(this.postStepEvent);
  39525. };
  39526. var w7 = f0.create(),
  39527. E7 = f0.create();
  39528. n0.integrateBody = function (k, m) {
  39529. var e = k.invMass,
  39530. o = k.force,
  39531. n = k.position,
  39532. u = k.velocity;
  39533. f0.copy(k.previousPosition, k.position),
  39534. k.previousAngle = k.angle,
  39535. k.fixedRotation || (k.angularVelocity += y3U.f5r(k.angularForce, k.invInertia, m), k.angle += y3U.D5r(k.angularVelocity, m)),
  39536. f0.scale(w7, o, y3U.Z5r(m, e)),
  39537. f0.add(u, w7, u),
  39538. f0.scale(E7, u, m),
  39539. f0.add(n, n, E7),
  39540. k.aabbNeedsUpdate = !0;
  39541. },
  39542. n0.prototype.runNarrowphase = function (k, m, e, o, n, u, q, f, j, U0, k0) {
  39543. if (y3U.R5r(0, (e.collisionGroup & q.collisionMask)) && y3U.O5r(0, (q.collisionGroup & e.collisionMask))) {
  39544. f0.rotate(I7, o, m.angle),
  39545. f0.rotate(N7, f, u.angle),
  39546. f0.add(I7, I7, m.position),
  39547. f0.add(N7, N7, u.position);
  39548. var a0 = n + m.angle,
  39549. T0 = j + u.angle;
  39550. k.enableFriction = y3U.V5r(U0.friction, 0),
  39551. k.frictionCoefficient = U0.friction;
  39552. var G0;
  39553. G0 = y3U.k2r(m.type, K0.STATIC) || y3U.G2r(m.type, K0.KINEMATIC) ? u.mass : y3U.N2r(u.type, K0.STATIC) || y3U.L2r(u.type, K0.KINEMATIC) ? m.mass : y3U.z2r(m.mass, u.mass, (m.mass + u.mass)),
  39554. k.slipForce = y3U.E2r(U0.friction, k0, G0),
  39555. k.restitution = U0.restitution,
  39556. k.surfaceVelocity = U0.surfaceVelocity,
  39557. k.frictionStiffness = U0.frictionStiffness,
  39558. k.frictionRelaxation = U0.frictionRelaxation,
  39559. k.stiffness = U0.stiffness,
  39560. k.relaxation = U0.relaxation,
  39561. k.contactSkinSize = U0.contactSkinSize;
  39562. var W0 = k[y3U.y2r(e.type, q.type)],
  39563. N0 = 0;
  39564. if (W0) {
  39565. var S0 = function () {
  39566. N0 = y3U.o2r(e.type, q.type) ? W0.call(k, m, e, I7, a0, u, q, N7, T0, I0) : W0.call(k, u, q, N7, T0, m, e, I7, a0, I0);
  39567. };
  39568. var I0 = e.sensor || q.sensor,
  39569. m0 = k.frictionEquations.length;
  39570. S0();
  39571. var A0 = y3U.x2r(k.frictionEquations.length, m0);
  39572. if (N0) {
  39573. if (m.allowSleep && y3U.p2r(m.type, K0.DYNAMIC) && y3U.q2r(m.sleepState, K0.SLEEPING) && y3U.b2r(u.sleepState, K0.AWAKE) && y3U.j2r(u.type, K0.STATIC)) {
  39574. var L0 = f0.squaredLength(u.velocity) + Math.pow(u.angularVelocity, 2),
  39575. z0 = Math.pow(u.sleepSpeedLimit, 2);
  39576. y3U.d2r(L0, 2 * z0) && (m._wakeUpAfterNarrowphase = !0);
  39577. }
  39578. if (u.allowSleep && y3U.c2r(u.type, K0.DYNAMIC) && y3U.s2r(u.sleepState, K0.SLEEPING) && y3U.Q2r(m.sleepState, K0.AWAKE) && y3U.a1r(m.type, K0.STATIC)) {
  39579. var E0 = f0.squaredLength(m.velocity) + Math.pow(m.angularVelocity, 2),
  39580. v0 = Math.pow(m.sleepSpeedLimit, 2);
  39581. y3U.W1r(E0, 2 * v0) && (u._wakeUpAfterNarrowphase = !0);
  39582. }
  39583. if (this.overlapKeeper.setOverlapping(m, e, u, q), this.has("beginContact") && this.overlapKeeper.isNewOverlap(e, q)) {
  39584. var J0 = this.beginContactEvent;
  39585. if (J0.shapeA = e, J0.shapeB = q, J0.bodyA = m, J0.bodyB = u, J0.contactEquations.length = 0, "number" == typeof N0)
  39586. for (var t0 = y3U.m1r(k.contactEquations.length, N0); y3U.A1r(t0, k.contactEquations.length); t0++)
  39587. J0.contactEquations.push(k.contactEquations[t0]);
  39588. this.emit(J0);
  39589. }
  39590. if ("number" == typeof N0 && y3U.w1r(A0, 1))
  39591. for (var t0 = y3U.E1r(k.frictionEquations.length, A0); y3U.e1r(t0, k.frictionEquations.length); t0++) {
  39592. var w0 = k.frictionEquations[t0];
  39593. w0.setSlipForce(y3U.g1r(w0.getSlipForce(), A0));
  39594. }
  39595. }
  39596. }
  39597. }
  39598. },
  39599. n0.prototype.addSpring = function (k) {
  39600. this.springs.push(k),
  39601. this.addSpringEvent.spring = k,
  39602. this.emit(this.addSpringEvent);
  39603. },
  39604. n0.prototype.removeSpring = function (k) {
  39605. var m = this.springs.indexOf(k);
  39606. -1 !== m && Q0.splice(this.springs, m, 1);
  39607. },
  39608. n0.prototype.addBody = function (k) {
  39609. -1 === this.bodies.indexOf(k) && (this.bodies.push(k), k.world = this, this.addBodyEvent.body = k, this.emit(this.addBodyEvent));
  39610. },
  39611. n0.prototype.removeBody = function (m) {
  39612. if (this.stepping)
  39613. this.bodiesToBeRemoved.push(m);
  39614. else {
  39615. var e = function (k) {
  39616. m.world = k;
  39617. };
  39618. e(null);
  39619. var o = this.bodies.indexOf(m);
  39620. -1 !== o && (Q0.splice(this.bodies, o, 1), this.removeBodyEvent.body = m, m.resetConstraintVelocity(), this.emit(this.removeBodyEvent));
  39621. }
  39622. },
  39623. n0.prototype.getBodyById = function (k) {
  39624. for (var m = this.bodies, e = 0; y3U.r1r(e, m.length); e++) {
  39625. var o = m[e];
  39626. if (y3U.i1r(o.id, k))
  39627. return o;
  39628. }
  39629. return !1;
  39630. },
  39631. n0.prototype.disableBodyCollision = function (k, m) {
  39632. this.disabledBodyCollisionPairs.push(k, m);
  39633. },
  39634. n0.prototype.enableBodyCollision = function (k, m) {
  39635. for (var e = this.disabledBodyCollisionPairs, o = 0; y3U.u1r(o, e.length); o += 2)
  39636. if (y3U.P1r(e[o], k) && y3U.D1r(e[o + 1], m) || y3U.Z1r(e[o + 1], k) && y3U.R1r(e[o], m))
  39637. return void e.splice(o, 2);
  39638. },
  39639. n0.prototype.clear = function () {
  39640. this.time = 0,
  39641. this.fixedStepTime = 0,
  39642. this.solver && this.solver.equations.length && this.solver.removeAllEquations();
  39643. for (var k = this.constraints, m = y3U.O1r(k.length, 1); y3U.V1r(m, 0); m--)
  39644. this.removeConstraint(k[m]);
  39645. for (var e = this.bodies, m = y3U.k6r(e.length, 1); y3U.G6r(m, 0); m--)
  39646. this.removeBody(e[m]);
  39647. for (var o = this.springs, m = y3U.N6r(o.length, 1); y3U.L6r(m, 0); m--)
  39648. this.removeSpring(o[m]);
  39649. for (var n = this.contactMaterials, m = y3U.z6r(n.length, 1); y3U.J6r(m, 0); m--)
  39650. this.removeContactMaterial(n[m]);
  39651. n0.apply(this);
  39652. },
  39653. n0.prototype.clone = function () {
  39654. var k = new n0;
  39655. return k.fromJSON(this.toJSON()),
  39656. k;
  39657. };
  39658. var g7 = f0.create(),
  39659. h7 = f0.fromValues(0, 0),
  39660. y7 = f0.fromValues(0, 0);
  39661. n0.prototype.hitTest = function (k, m, e) {
  39662. var o = function () {
  39663. e = e || 0;
  39664. };
  39665. o();
  39666. var n = new K0({
  39667. position : k
  39668. }),
  39669. u = new v7,
  39670. q = k,
  39671. f = 0,
  39672. j = g7,
  39673. U0 = h7,
  39674. k0 = y7;
  39675. n.addShape(u);
  39676. for (var a0 = this.narrowphase, T0 = [], G0 = 0, W0 = m.length; y3U.H6r(G0, W0); G0++)
  39677. for (var N0 = m[G0], S0 = 0, I0 = N0.shapes.length; y3U.h6r(S0, I0); S0++) {
  39678. var m0 = N0.shapes[S0],
  39679. A0 = N0.shapeOffsets[S0] || U0,
  39680. L0 = N0.shapeAngles[S0] || 0;
  39681. f0.rotate(j, A0, N0.angle),
  39682. f0.add(j, j, N0.position);
  39683. var z0 = L0 + N0.angle;
  39684. (y3U.F6r(m0, G7) && a0.circleParticle(N0, m0, j, z0, n, u, q, f, !0) || y3U.M6r(m0, C7) && a0.particleConvex(n, u, q, f, N0, m0, j, z0, !0) || y3U.n6r(m0, z7) && a0.particlePlane(n, u, q, f, N0, m0, j, z0, !0) || y3U.f6r(m0, B0) && a0.particleCapsule(n, u, q, f, N0, m0, j, z0, !0) || y3U.K6r(m0, v7) && y3U.B6r(f0.squaredLength(f0.sub(k0, j, k)), e * e)) && T0.push(N0);
  39685. }
  39686. return T0;
  39687. },
  39688. n0.prototype.setGlobalEquationParameters = function (k) {
  39689. var m = function () {
  39690. k = k || {};
  39691. };
  39692. m();
  39693. for (var e = 0; y3U.l6r(e, this.constraints.length); e++)
  39694. for (var o = this.constraints[e], n = 0; y3U.X6r(n, o.equations.length); n++) {
  39695. var u = o.equations[n];
  39696. "undefined" != typeof k.stiffness && (u.stiffness = k.stiffness),
  39697. "undefined" != typeof k.relaxation && (u.relaxation = k.relaxation),
  39698. u.needsUpdate = !0;
  39699. }
  39700. for (var e = 0; y3U.Y6r(e, this.contactMaterials.length); e++) {
  39701. var o = this.contactMaterials[e];
  39702. "undefined" != typeof k.stiffness && (o.stiffness = k.stiffness, o.frictionStiffness = k.stiffness),
  39703. "undefined" != typeof k.relaxation && (o.relaxation = k.relaxation, o.frictionRelaxation = k.relaxation);
  39704. }
  39705. var o = this.defaultContactMaterial;
  39706. "undefined" != typeof k.stiffness && (o.stiffness = k.stiffness, o.frictionStiffness = k.stiffness),
  39707. "undefined" != typeof k.relaxation && (o.relaxation = k.relaxation, o.frictionRelaxation = k.relaxation);
  39708. },
  39709. n0.prototype.setGlobalStiffness = function (k) {
  39710. this.setGlobalEquationParameters({
  39711. stiffness : k
  39712. });
  39713. },
  39714. n0.prototype.setGlobalRelaxation = function (k) {
  39715. this.setGlobalEquationParameters({
  39716. relaxation : k
  39717. });
  39718. };
  39719. }, {
  39720. "../../package.json" : 8,
  39721. "../collision/Broadphase" : 10,
  39722. "../collision/NaiveBroadphase" : 12,
  39723. "../collision/Narrowphase" : 13,
  39724. "../collision/SAPBroadphase" : 14,
  39725. "../constraints/Constraint" : 15,
  39726. "../constraints/DistanceConstraint" : 16,
  39727. "../constraints/GearConstraint" : 17,
  39728. "../constraints/LockConstraint" : 18,
  39729. "../constraints/PrismaticConstraint" : 19,
  39730. "../constraints/RevoluteConstraint" : 20,
  39731. "../events/EventEmitter" : 27,
  39732. "../material/ContactMaterial" : 28,
  39733. "../material/Material" : 29,
  39734. "../math/vec2" : 31,
  39735. "../objects/Body" : 32,
  39736. "../objects/LinearSpring" : 33,
  39737. "../objects/RotationalSpring" : 34,
  39738. "../shapes/Capsule" : 37,
  39739. "../shapes/Circle" : 38,
  39740. "../shapes/Convex" : 39,
  39741. "../shapes/Line" : 41,
  39742. "../shapes/Particle" : 42,
  39743. "../shapes/Plane" : 43,
  39744. "../shapes/Rectangle" : 44,
  39745. "../shapes/Shape" : 45,
  39746. "../solver/GSSolver" : 46,
  39747. "../solver/Solver" : 47,
  39748. "../utils/OverlapKeeper" : 48,
  39749. "../utils/Utils" : 50,
  39750. "./IslandManager" : 52,
  39751. __browserify_Buffer : 1,
  39752. __browserify_process : 2
  39753. }
  39754. ]
  39755. }, {}, [36])(36);
  39756. }), p2.Body.prototype.parent = null, p2.Spring.prototype.parent = null, Phaser.Physics.P2 = function (k, m) {
  39757. this.game = k,
  39758. "undefined" == typeof m ? m = {
  39759. gravity : [0, 0],
  39760. broadphase : new p2.SAPBroadphase
  39761. }
  39762. : (m.hasOwnProperty("gravity") || (m.gravity = [0, 0]), m.hasOwnProperty("broadphase") || (m.broadphase = new p2.SAPBroadphase)),
  39763. this.config = m,
  39764. this.world = new p2.World(this.config),
  39765. this.frameRate = y3U.U8r(1, 60),
  39766. this.useElapsedTime = !1,
  39767. this.paused = !1,
  39768. this.materials = [],
  39769. this.gravity = new Phaser.Physics.P2.InversePointProxy(this, this.world.gravity),
  39770. this.walls = {
  39771. left : null,
  39772. right : null,
  39773. top : null,
  39774. bottom : null
  39775. },
  39776. this.onBodyAdded = new Phaser.Signal,
  39777. this.onBodyRemoved = new Phaser.Signal,
  39778. this.onSpringAdded = new Phaser.Signal,
  39779. this.onSpringRemoved = new Phaser.Signal,
  39780. this.onConstraintAdded = new Phaser.Signal,
  39781. this.onConstraintRemoved = new Phaser.Signal,
  39782. this.onContactMaterialAdded = new Phaser.Signal,
  39783. this.onContactMaterialRemoved = new Phaser.Signal,
  39784. this.postBroadphaseCallback = null,
  39785. this.callbackContext = null,
  39786. this.onBeginContact = new Phaser.Signal,
  39787. this.onEndContact = new Phaser.Signal,
  39788. m.hasOwnProperty("mpx") && m.hasOwnProperty("pxm") && m.hasOwnProperty("mpxi") && m.hasOwnProperty("pxmi") && (this.mpx = m.mpx, this.mpxi = m.mpxi, this.pxm = m.pxm, this.pxmi = m.pxmi),
  39789. this.world.on("beginContact", this.beginContactHandler, this),
  39790. this.world.on("endContact", this.endContactHandler, this),
  39791. this.collisionGroups = [],
  39792. this.nothingCollisionGroup = new Phaser.Physics.P2.CollisionGroup(1),
  39793. this.boundsCollisionGroup = new Phaser.Physics.P2.CollisionGroup(2),
  39794. this.everythingCollisionGroup = new Phaser.Physics.P2.CollisionGroup(2147483648),
  39795. this.boundsCollidesWith = [],
  39796. this._toRemove = [],
  39797. this._collisionGroupID = 2,
  39798. this.setBoundsToWorld(!0, !0, !0, !0, !1);
  39799. }, Phaser.Physics.P2.prototype = {
  39800. removeBodyNextStep : function (k) {
  39801. this._toRemove.push(k);
  39802. },
  39803. preUpdate : function () {
  39804. for (var k = this._toRemove.length; k--; )
  39805. this.removeBody(this._toRemove[k]);
  39806. this._toRemove.length = 0;
  39807. },
  39808. enable : function (k, m, e) {
  39809. "undefined" == typeof m && (m = !1),
  39810. "undefined" == typeof e && (e = !0);
  39811. var o = 1;
  39812. if (Array.isArray(k))
  39813. for (o = k.length; o--; )
  39814. y3U.T8r(k[o], Phaser.Group) ? this.enable(k[o].children, m, e) : (this.enableBody(k[o], m), e && k[o].hasOwnProperty("children") && y3U.S8r(k[o].children.length, 0) && this.enable(k[o], m, !0));
  39815. else
  39816. y3U.I8r(k, Phaser.Group) ? this.enable(k.children, m, e) : (this.enableBody(k, m), e && k.hasOwnProperty("children") && y3U.C8r(k.children.length, 0) && this.enable(k.children, m, !0));
  39817. },
  39818. enableBody : function (k, m) {
  39819. k.hasOwnProperty("body") && y3U.v8r(null, k.body) && (k.body = new Phaser.Physics.P2.Body(this.game, k, k.x, k.y, 1), k.body.debug = m, k.anchor.set(.5));
  39820. },
  39821. setImpactEvents : function (k) {
  39822. k ? this.world.on("impact", this.impactHandler, this) : this.world.off("impact", this.impactHandler, this);
  39823. },
  39824. setPostBroadphaseCallback : function (k, m) {
  39825. this.postBroadphaseCallback = k,
  39826. this.callbackContext = m,
  39827. y3U.t8r(null, k) ? this.world.on("postBroadphase", this.postBroadphaseHandler, this) : this.world.off("postBroadphase", this.postBroadphaseHandler, this);
  39828. },
  39829. postBroadphaseHandler : function (k) {
  39830. if (this.postBroadphaseCallback && y3U.y8r(0, k.pairs.length))
  39831. for (var m = y3U.o8r(k.pairs.length, 2); y3U.x8r(m, 0); m -= 2)
  39832. k.pairs[m].parent && k.pairs[m + 1].parent && !this.postBroadphaseCallback.call(this.callbackContext, k.pairs[m].parent, k.pairs[m + 1].parent) && k.pairs.splice(m, 2);
  39833. },
  39834. impactHandler : function (k) {
  39835. if (k.bodyA.parent && k.bodyB.parent) {
  39836. var m = k.bodyA.parent,
  39837. e = k.bodyB.parent;
  39838. m._bodyCallbacks[k.bodyB.id] && m._bodyCallbacks[k.bodyB.id].call(m._bodyCallbackContext[k.bodyB.id], m, e, k.shapeA, k.shapeB),
  39839. e._bodyCallbacks[k.bodyA.id] && e._bodyCallbacks[k.bodyA.id].call(e._bodyCallbackContext[k.bodyA.id], e, m, k.shapeB, k.shapeA),
  39840. m._groupCallbacks[k.shapeB.collisionGroup] && m._groupCallbacks[k.shapeB.collisionGroup].call(m._groupCallbackContext[k.shapeB.collisionGroup], m, e, k.shapeA, k.shapeB),
  39841. e._groupCallbacks[k.shapeA.collisionGroup] && e._groupCallbacks[k.shapeA.collisionGroup].call(e._groupCallbackContext[k.shapeA.collisionGroup], e, m, k.shapeB, k.shapeA);
  39842. }
  39843. },
  39844. beginContactHandler : function (k) {
  39845. this.onBeginContact.dispatch(k.bodyA, k.bodyB, k.shapeA, k.shapeB, k.contactEquations),
  39846. k.bodyA.parent && k.bodyA.parent.onBeginContact.dispatch(k.bodyB.parent, k.shapeA, k.shapeB, k.contactEquations),
  39847. k.bodyB.parent && k.bodyB.parent.onBeginContact.dispatch(k.bodyA.parent, k.shapeB, k.shapeA, k.contactEquations);
  39848. },
  39849. endContactHandler : function (k) {
  39850. this.onEndContact.dispatch(k.bodyA, k.bodyB, k.shapeA, k.shapeB),
  39851. k.bodyA.parent && k.bodyA.parent.onEndContact.dispatch(k.bodyB.parent, k.shapeA, k.shapeB),
  39852. k.bodyB.parent && k.bodyB.parent.onEndContact.dispatch(k.bodyA.parent, k.shapeB, k.shapeA);
  39853. },
  39854. setBoundsToWorld : function (k, m, e, o, n) {
  39855. this.setBounds(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height, k, m, e, o, n);
  39856. },
  39857. setWorldMaterial : function (k, m, e, o, n) {
  39858. "undefined" == typeof m && (m = !0),
  39859. "undefined" == typeof e && (e = !0),
  39860. "undefined" == typeof o && (o = !0),
  39861. "undefined" == typeof n && (n = !0),
  39862. m && this.walls.left && (this.walls.left.shapes[0].material = k),
  39863. e && this.walls.right && (this.walls.right.shapes[0].material = k),
  39864. o && this.walls.top && (this.walls.top.shapes[0].material = k),
  39865. n && this.walls.bottom && (this.walls.bottom.shapes[0].material = k);
  39866. },
  39867. updateBoundsCollisionGroup : function (k) {
  39868. var m = this.everythingCollisionGroup.mask;
  39869. "undefined" == typeof k && (m = this.boundsCollisionGroup.mask),
  39870. this.walls.left && (this.walls.left.shapes[0].collisionGroup = m),
  39871. this.walls.right && (this.walls.right.shapes[0].collisionGroup = m),
  39872. this.walls.top && (this.walls.top.shapes[0].collisionGroup = m),
  39873. this.walls.bottom && (this.walls.bottom.shapes[0].collisionGroup = m);
  39874. },
  39875. setBounds : function (k, m, e, o, n, u, q, f, j) {
  39876. "undefined" == typeof n && (n = !0),
  39877. "undefined" == typeof u && (u = !0),
  39878. "undefined" == typeof q && (q = !0),
  39879. "undefined" == typeof f && (f = !0),
  39880. "undefined" == typeof j && (j = !0),
  39881. this.walls.left && this.world.removeBody(this.walls.left),
  39882. this.walls.right && this.world.removeBody(this.walls.right),
  39883. this.walls.top && this.world.removeBody(this.walls.top),
  39884. this.walls.bottom && this.world.removeBody(this.walls.bottom),
  39885. n && (this.walls.left = new p2.Body({
  39886. mass : 0,
  39887. position : [this.pxmi(k), this.pxmi(m)],
  39888. angle : 1.5707963267948966
  39889. }), this.walls.left.addShape(new p2.Plane), j && (this.walls.left.shapes[0].collisionGroup = this.boundsCollisionGroup.mask), this.world.addBody(this.walls.left)),
  39890. u && (this.walls.right = new p2.Body({
  39891. mass : 0,
  39892. position : [this.pxmi(k + e), this.pxmi(m)],
  39893. angle : -1.5707963267948966
  39894. }), this.walls.right.addShape(new p2.Plane), j && (this.walls.right.shapes[0].collisionGroup = this.boundsCollisionGroup.mask), this.world.addBody(this.walls.right)),
  39895. q && (this.walls.top = new p2.Body({
  39896. mass : 0,
  39897. position : [this.pxmi(k), this.pxmi(m)],
  39898. angle : -3.141592653589793
  39899. }), this.walls.top.addShape(new p2.Plane), j && (this.walls.top.shapes[0].collisionGroup = this.boundsCollisionGroup.mask), this.world.addBody(this.walls.top)),
  39900. f && (this.walls.bottom = new p2.Body({
  39901. mass : 0,
  39902. position : [this.pxmi(k), this.pxmi(m + o)]
  39903. }), this.walls.bottom.addShape(new p2.Plane), j && (this.walls.bottom.shapes[0].collisionGroup = this.boundsCollisionGroup.mask), this.world.addBody(this.walls.bottom));
  39904. },
  39905. pause : function () {
  39906. this.paused = !0;
  39907. },
  39908. resume : function () {
  39909. this.paused = !1;
  39910. },
  39911. update : function () {
  39912. this.paused || this.world.step(this.useElapsedTime ? this.game.time.physicsElapsed : this.frameRate);
  39913. },
  39914. reset : function () {
  39915. this.world.on("beginContact", this.beginContactHandler, this),
  39916. this.world.on("endContact", this.endContactHandler, this),
  39917. this.nothingCollisionGroup = new Phaser.Physics.P2.CollisionGroup(1),
  39918. this.boundsCollisionGroup = new Phaser.Physics.P2.CollisionGroup(2),
  39919. this.everythingCollisionGroup = new Phaser.Physics.P2.CollisionGroup(2147483648),
  39920. this._collisionGroupID = 2,
  39921. this.setBoundsToWorld(!0, !0, !0, !0, !1);
  39922. },
  39923. clear : function () {
  39924. this.world.time = 0,
  39925. this.world.fixedStepTime = 0,
  39926. this.world.solver && this.world.solver.equations.length && this.world.solver.removeAllEquations();
  39927. for (var k = this.world.constraints, m = y3U.p8r(k.length, 1); y3U.q8r(m, 0); m--)
  39928. this.world.removeConstraint(k[m]);
  39929. for (var e = this.world.bodies, m = y3U.b8r(e.length, 1); y3U.j8r(m, 0); m--)
  39930. this.world.removeBody(e[m]);
  39931. for (var o = this.world.springs, m = y3U.d8r(o.length, 1); y3U.c8r(m, 0); m--)
  39932. this.world.removeSpring(o[m]);
  39933. for (var n = this.world.contactMaterials, m = y3U.s8r(n.length, 1); y3U.Q8r(m, 0); m--)
  39934. this.world.removeContactMaterial(n[m]);
  39935. this.world.off("beginContact", this.beginContactHandler, this),
  39936. this.world.off("endContact", this.endContactHandler, this),
  39937. this.postBroadphaseCallback = null,
  39938. this.callbackContext = null,
  39939. this.impactCallback = null,
  39940. this.collisionGroups = [],
  39941. this._toRemove = [],
  39942. this.boundsCollidesWith = [];
  39943. },
  39944. destroy : function () {
  39945. this.clear(),
  39946. this.game = null;
  39947. },
  39948. addBody : function (k) {
  39949. return k.data.world ? !1 : (this.world.addBody(k.data), this.onBodyAdded.dispatch(k), !0);
  39950. },
  39951. removeBody : function (k) {
  39952. return y3U.a0L(k.data.world, this.world) && (this.world.removeBody(k.data), this.onBodyRemoved.dispatch(k)),
  39953. k;
  39954. },
  39955. addSpring : function (k) {
  39956. return this.world.addSpring(y3U.W0L(k, Phaser.Physics.P2.Spring) || y3U.m0L(k, Phaser.Physics.P2.RotationalSpring) ? k.data : k),
  39957. this.onSpringAdded.dispatch(k),
  39958. k;
  39959. },
  39960. removeSpring : function (k) {
  39961. return this.world.removeSpring(y3U.A0L(k, Phaser.Physics.P2.Spring) || y3U.w0L(k, Phaser.Physics.P2.RotationalSpring) ? k.data : k),
  39962. this.onSpringRemoved.dispatch(k),
  39963. k;
  39964. },
  39965. createDistanceConstraint : function (k, m, e, o, n, u) {
  39966. return k = this.getBody(k),
  39967. m = this.getBody(m),
  39968. k && m ? this.addConstraint(new Phaser.Physics.P2.DistanceConstraint(this, k, m, e, o, n, u)) : void console.warn("Cannot create Constraint, invalid body objects given");
  39969. },
  39970. createGearConstraint : function (k, m, e, o) {
  39971. return k = this.getBody(k),
  39972. m = this.getBody(m),
  39973. k && m ? this.addConstraint(new Phaser.Physics.P2.GearConstraint(this, k, m, e, o)) : void console.warn("Cannot create Constraint, invalid body objects given");
  39974. },
  39975. createRevoluteConstraint : function (k, m, e, o, n, u) {
  39976. return k = this.getBody(k),
  39977. e = this.getBody(e),
  39978. k && e ? this.addConstraint(new Phaser.Physics.P2.RevoluteConstraint(this, k, m, e, o, n, u)) : void console.warn("Cannot create Constraint, invalid body objects given");
  39979. },
  39980. createLockConstraint : function (k, m, e, o, n) {
  39981. return k = this.getBody(k),
  39982. m = this.getBody(m),
  39983. k && m ? this.addConstraint(new Phaser.Physics.P2.LockConstraint(this, k, m, e, o, n)) : void console.warn("Cannot create Constraint, invalid body objects given");
  39984. },
  39985. createPrismaticConstraint : function (k, m, e, o, n, u, q) {
  39986. return k = this.getBody(k),
  39987. m = this.getBody(m),
  39988. k && m ? this.addConstraint(new Phaser.Physics.P2.PrismaticConstraint(this, k, m, e, o, n, u, q)) : void console.warn("Cannot create Constraint, invalid body objects given");
  39989. },
  39990. addConstraint : function (k) {
  39991. return this.world.addConstraint(k),
  39992. this.onConstraintAdded.dispatch(k),
  39993. k;
  39994. },
  39995. removeConstraint : function (k) {
  39996. return this.world.removeConstraint(k),
  39997. this.onConstraintRemoved.dispatch(k),
  39998. k;
  39999. },
  40000. addContactMaterial : function (k) {
  40001. return this.world.addContactMaterial(k),
  40002. this.onContactMaterialAdded.dispatch(k),
  40003. k;
  40004. },
  40005. removeContactMaterial : function (k) {
  40006. return this.world.removeContactMaterial(k),
  40007. this.onContactMaterialRemoved.dispatch(k),
  40008. k;
  40009. },
  40010. getContactMaterial : function (k, m) {
  40011. return this.world.getContactMaterial(k, m);
  40012. },
  40013. setMaterial : function (k, m) {
  40014. for (var e = m.length; e--; )
  40015. m[e].setMaterial(k);
  40016. },
  40017. createMaterial : function (k, m) {
  40018. var e = function () {
  40019. k = k || "";
  40020. };
  40021. e();
  40022. var o = new Phaser.Physics.P2.Material(k);
  40023. return this.materials.push(o),
  40024. "undefined" != typeof m && m.setMaterial(o),
  40025. o;
  40026. },
  40027. createContactMaterial : function (k, m, e) {
  40028. "undefined" == typeof k && (k = this.createMaterial()),
  40029. "undefined" == typeof m && (m = this.createMaterial());
  40030. var o = new Phaser.Physics.P2.ContactMaterial(k, m, e);
  40031. return this.addContactMaterial(o);
  40032. },
  40033. getBodies : function () {
  40034. for (var k = [], m = this.world.bodies.length; m--; )
  40035. k.push(this.world.bodies[m].parent);
  40036. return k;
  40037. },
  40038. getBody : function (k) {
  40039. return y3U.E0L(k, p2.Body) ? k : y3U.e0L(k, Phaser.Physics.P2.Body) ? k.data : k.body && y3U.g0L(k.body.type, Phaser.Physics.P2JS) ? k.body.data : null;
  40040. },
  40041. getSprings : function () {
  40042. for (var k = [], m = this.world.springs.length; m--; )
  40043. k.push(this.world.springs[m].parent);
  40044. return k;
  40045. },
  40046. getConstraints : function () {
  40047. for (var k = [], m = this.world.constraints.length; m--; )
  40048. k.push(this.world.constraints[m].parent);
  40049. return k;
  40050. },
  40051. hitTest : function (k, m, e, o) {
  40052. "undefined" == typeof m && (m = this.world.bodies),
  40053. "undefined" == typeof e && (e = 5),
  40054. "undefined" == typeof o && (o = !1);
  40055. for (var n = [this.pxmi(k.x), this.pxmi(k.y)], u = [], q = m.length; q--; )
  40056. y3U.r0L(m[q], Phaser.Physics.P2.Body) && (!o || y3U.i0L(m[q].data.type, p2.Body.STATIC)) ? u.push(m[q].data) : y3U.u0L(m[q], p2.Body) && m[q].parent && (!o || y3U.P0L(m[q].type, p2.Body.STATIC)) ? u.push(m[q]) : y3U.D0L(m[q], Phaser.Sprite) && m[q].hasOwnProperty("body") && (!o || y3U.Z0L(m[q].body.data.type, p2.Body.STATIC)) && u.push(m[q].body.data);
  40057. return this.world.hitTest(n, u, e);
  40058. },
  40059. toJSON : function () {
  40060. return this.world.toJSON();
  40061. },
  40062. createCollisionGroup : function (k) {
  40063. var m = Math.pow(2, this._collisionGroupID);
  40064. this.walls.left && (this.walls.left.shapes[0].collisionMask = y3U.R0L(this.walls.left.shapes[0].collisionMask, m)),
  40065. this.walls.right && (this.walls.right.shapes[0].collisionMask = y3U.O0L(this.walls.right.shapes[0].collisionMask, m)),
  40066. this.walls.top && (this.walls.top.shapes[0].collisionMask = y3U.V0L(this.walls.top.shapes[0].collisionMask, m)),
  40067. this.walls.bottom && (this.walls.bottom.shapes[0].collisionMask = y3U.k7L(this.walls.bottom.shapes[0].collisionMask, m)),
  40068. this._collisionGroupID++;
  40069. var e = new Phaser.Physics.P2.CollisionGroup(m);
  40070. return this.collisionGroups.push(e),
  40071. k && this.setCollisionGroup(k, e),
  40072. e;
  40073. },
  40074. setCollisionGroup : function (k, m) {
  40075. if (y3U.G7L(k, Phaser.Group))
  40076. for (var e = 0; y3U.N7L(e, k.total); e++)
  40077. k.children[e].body && y3U.L7L(k.children[e].body.type, Phaser.Physics.P2JS) && k.children[e].body.setCollisionGroup(m);
  40078. else
  40079. k.body.setCollisionGroup(m);
  40080. },
  40081. createSpring : function (k, m, e, o, n, u, q, f, j) {
  40082. return k = this.getBody(k),
  40083. m = this.getBody(m),
  40084. k && m ? this.addSpring(new Phaser.Physics.P2.Spring(this, k, m, e, o, n, u, q, f, j)) : void console.warn("Cannot create Spring, invalid body objects given");
  40085. },
  40086. createRotationalSpring : function (k, m, e, o, n) {
  40087. return k = this.getBody(k),
  40088. m = this.getBody(m),
  40089. k && m ? this.addSpring(new Phaser.Physics.P2.RotationalSpring(this, k, m, e, o, n)) : void console.warn("Cannot create Rotational Spring, invalid body objects given");
  40090. },
  40091. createBody : function (k, m, e, o, n, u) {
  40092. "undefined" == typeof o && (o = !1);
  40093. var q = new Phaser.Physics.P2.Body(this.game, null, k, m, e);
  40094. if (u) {
  40095. var f = q.addPolygon(n, u);
  40096. if (!f)
  40097. return !1;
  40098. }
  40099. return o && this.world.addBody(q.data),
  40100. q;
  40101. },
  40102. createParticle : function (k, m, e, o, n, u) {
  40103. "undefined" == typeof o && (o = !1);
  40104. var q = new Phaser.Physics.P2.Body(this.game, null, k, m, e);
  40105. if (u) {
  40106. var f = q.addPolygon(n, u);
  40107. if (!f)
  40108. return !1;
  40109. }
  40110. return o && this.world.addBody(q.data),
  40111. q;
  40112. },
  40113. convertCollisionObjects : function (k, m, e) {
  40114. "undefined" == typeof e && (e = !0);
  40115. for (var o = [], n = 0, u = k.collision[m].length; y3U.z7L(u, n); n++) {
  40116. var q = k.collision[m][n],
  40117. f = this.createBody(q.x, q.y, 0, e, {}, q.polyline);
  40118. f && o.push(f);
  40119. }
  40120. return o;
  40121. },
  40122. clearTilemapLayerBodies : function (m, e) {
  40123. var o = function (k) {
  40124. m.layers[e].bodies.length = k;
  40125. };
  40126. e = m.getLayer(e);
  40127. for (var n = m.layers[e].bodies.length; n--; )
  40128. m.layers[e].bodies[n].destroy();
  40129. o(0);
  40130. },
  40131. convertTilemap : function (m, e, o, n) {
  40132. e = m.getLayer(e),
  40133. "undefined" == typeof o && (o = !0),
  40134. "undefined" == typeof n && (n = !0),
  40135. this.clearTilemapLayerBodies(m, e);
  40136. for (var u = 0, q = 0, f = 0, j = 0, U0 = m.layers[e].height; y3U.J7L(U0, j); j++) {
  40137. var k0 = function (k) {
  40138. u = k;
  40139. };
  40140. k0(0);
  40141. for (var a0 = 0, T0 = m.layers[e].width; y3U.H7L(T0, a0); a0++) {
  40142. var G0 = m.layers[e].data[j][a0];
  40143. if (G0 && G0.index > -1 && G0.collides)
  40144. if (n) {
  40145. var W0 = m.getTileRight(e, a0, j);
  40146. if (y3U.h7L(0, u) && (q = y3U.F7L(G0.x, G0.width), f = y3U.M7L(G0.y, G0.height), u = G0.width), W0 && W0.collides)
  40147. u += G0.width;
  40148. else {
  40149. var N0 = this.createBody(q, f, 0, !1);
  40150. N0.addRectangle(u, G0.height, y3U.n7L(u, 2), y3U.f7L(G0.height, 2), 0),
  40151. o && this.addBody(N0),
  40152. m.layers[e].bodies.push(N0),
  40153. u = 0;
  40154. }
  40155. } else {
  40156. var N0 = this.createBody(y3U.K7L(G0.x, G0.width), y3U.B7L(G0.y, G0.height), 0, !1);
  40157. N0.addRectangle(G0.width, G0.height, y3U.l7L(G0.width, 2), y3U.X7L(G0.height, 2), 0),
  40158. o && this.addBody(N0),
  40159. m.layers[e].bodies.push(N0);
  40160. }
  40161. }
  40162. }
  40163. return m.layers[e].bodies;
  40164. },
  40165. mpx : function (k) {
  40166. return k *= 20;
  40167. },
  40168. pxm : function (k) {
  40169. return y3U.Y7L(.05, k);
  40170. },
  40171. mpxi : function (k) {
  40172. return k *= -20;
  40173. },
  40174. pxmi : function (k) {
  40175. return k * - .05;
  40176. }
  40177. }, Object.defineProperty(Phaser.Physics.P2.prototype, "friction", {
  40178. get : function () {
  40179. return this.world.defaultContactMaterial.friction;
  40180. },
  40181. set : function (k) {
  40182. this.world.defaultContactMaterial.friction = k;
  40183. }
  40184. }), Object.defineProperty(Phaser.Physics.P2.prototype, "restitution", {
  40185. get : function () {
  40186. return this.world.defaultContactMaterial.restitution;
  40187. },
  40188. set : function (k) {
  40189. this.world.defaultContactMaterial.restitution = k;
  40190. }
  40191. }), Object.defineProperty(Phaser.Physics.P2.prototype, "contactMaterial", {
  40192. get : function () {
  40193. return this.world.defaultContactMaterial;
  40194. },
  40195. set : function (k) {
  40196. this.world.defaultContactMaterial = k;
  40197. }
  40198. }), Object.defineProperty(Phaser.Physics.P2.prototype, "applySpringForces", {
  40199. get : function () {
  40200. return this.world.applySpringForces;
  40201. },
  40202. set : function (k) {
  40203. this.world.applySpringForces = k;
  40204. }
  40205. }), Object.defineProperty(Phaser.Physics.P2.prototype, "applyDamping", {
  40206. get : function () {
  40207. return this.world.applyDamping;
  40208. },
  40209. set : function (k) {
  40210. this.world.applyDamping = k;
  40211. }
  40212. }), Object.defineProperty(Phaser.Physics.P2.prototype, "applyGravity", {
  40213. get : function () {
  40214. return this.world.applyGravity;
  40215. },
  40216. set : function (k) {
  40217. this.world.applyGravity = k;
  40218. }
  40219. }), Object.defineProperty(Phaser.Physics.P2.prototype, "solveConstraints", {
  40220. get : function () {
  40221. return this.world.solveConstraints;
  40222. },
  40223. set : function (k) {
  40224. this.world.solveConstraints = k;
  40225. }
  40226. }), Object.defineProperty(Phaser.Physics.P2.prototype, "time", {
  40227. get : function () {
  40228. return this.world.time;
  40229. }
  40230. }), Object.defineProperty(Phaser.Physics.P2.prototype, "emitImpactEvent", {
  40231. get : function () {
  40232. return this.world.emitImpactEvent;
  40233. },
  40234. set : function (k) {
  40235. this.world.emitImpactEvent = k;
  40236. }
  40237. }), Object.defineProperty(Phaser.Physics.P2.prototype, "sleepMode", {
  40238. get : function () {
  40239. return this.world.sleepMode;
  40240. },
  40241. set : function (k) {
  40242. this.world.sleepMode = k;
  40243. }
  40244. }), Object.defineProperty(Phaser.Physics.P2.prototype, "total", {
  40245. get : function () {
  40246. return this.world.bodies.length;
  40247. }
  40248. }), Phaser.Physics.P2.FixtureList = function (k) {
  40249. Array.isArray(k) || (k = [k]),
  40250. this.rawList = k,
  40251. this.init(),
  40252. this.parse(this.rawList);
  40253. }, Phaser.Physics.P2.FixtureList.prototype = {
  40254. init : function () {
  40255. this.namedFixtures = {},
  40256. this.groupedFixtures = [],
  40257. this.allFixtures = [];
  40258. },
  40259. setCategory : function (o, n) {
  40260. var u = function (m) {
  40261. var e = function (k) {
  40262. m.collisionGroup = k;
  40263. };
  40264. e(o);
  40265. };
  40266. this.getFixtures(n).forEach(u);
  40267. },
  40268. setMask : function (o, n) {
  40269. var u = function (m) {
  40270. var e = function (k) {
  40271. m.collisionMask = k;
  40272. };
  40273. e(o);
  40274. };
  40275. this.getFixtures(n).forEach(u);
  40276. },
  40277. setSensor : function (o, n) {
  40278. var u = function (m) {
  40279. var e = function (k) {
  40280. m.sensor = k;
  40281. };
  40282. e(o);
  40283. };
  40284. this.getFixtures(n).forEach(u);
  40285. },
  40286. setMaterial : function (o, n) {
  40287. var u = function (m) {
  40288. var e = function (k) {
  40289. m.material = k;
  40290. };
  40291. e(o);
  40292. };
  40293. this.getFixtures(n).forEach(u);
  40294. },
  40295. getFixtures : function (m) {
  40296. var e = [];
  40297. if (m) {
  40298. y3U.U4L(m, Array) || (m = [m]);
  40299. var o = this;
  40300. return m.forEach(function (k) {
  40301. o.namedFixtures[k] && e.push(o.namedFixtures[k]);
  40302. }),
  40303. this.flatten(e);
  40304. }
  40305. return this.allFixtures;
  40306. },
  40307. getFixtureByKey : function (k) {
  40308. return this.namedFixtures[k];
  40309. },
  40310. getGroup : function (k) {
  40311. return this.groupedFixtures[k];
  40312. },
  40313. parse : function () {
  40314. var k,
  40315. m,
  40316. e,
  40317. o;
  40318. e = this.rawList,
  40319. o = [];
  40320. for (k in e)
  40321. m = e[k], isNaN(y3U.T4L(k, 0)) ? this.namedFixtures[k] = this.flatten(m) : (this.groupedFixtures[k] = this.groupedFixtures[k] || [], this.groupedFixtures[k] = this.groupedFixtures[k].concat(m)), o.push(this.allFixtures = this.flatten(this.groupedFixtures));
  40322. },
  40323. flatten : function (m) {
  40324. var e,
  40325. o;
  40326. return e = [],
  40327. o = arguments.callee,
  40328. m.forEach(function (k) {
  40329. return Array.prototype.push.apply(e, Array.isArray(k) ? o(k) : [k]);
  40330. }),
  40331. e;
  40332. }
  40333. }, Phaser.Physics.P2.PointProxy = function (k, m) {
  40334. this.world = k,
  40335. this.destination = m;
  40336. }, Phaser.Physics.P2.PointProxy.prototype.constructor = Phaser.Physics.P2.PointProxy, Object.defineProperty(Phaser.Physics.P2.PointProxy.prototype, "x", {
  40337. get : function () {
  40338. return this.world.mpx(this.destination[0]);
  40339. },
  40340. set : function (k) {
  40341. this.destination[0] = this.world.pxm(k);
  40342. }
  40343. }), Object.defineProperty(Phaser.Physics.P2.PointProxy.prototype, "y", {
  40344. get : function () {
  40345. return this.world.mpx(this.destination[1]);
  40346. },
  40347. set : function (k) {
  40348. this.destination[1] = this.world.pxm(k);
  40349. }
  40350. }), Object.defineProperty(Phaser.Physics.P2.PointProxy.prototype, "mx", {
  40351. get : function () {
  40352. return this.destination[0];
  40353. },
  40354. set : function (k) {
  40355. this.destination[0] = k;
  40356. }
  40357. }), Object.defineProperty(Phaser.Physics.P2.PointProxy.prototype, "my", {
  40358. get : function () {
  40359. return this.destination[1];
  40360. },
  40361. set : function (k) {
  40362. this.destination[1] = k;
  40363. }
  40364. }), Phaser.Physics.P2.InversePointProxy = function (k, m) {
  40365. this.world = k,
  40366. this.destination = m;
  40367. }, Phaser.Physics.P2.InversePointProxy.prototype.constructor = Phaser.Physics.P2.InversePointProxy, Object.defineProperty(Phaser.Physics.P2.InversePointProxy.prototype, "x", {
  40368. get : function () {
  40369. return this.world.mpxi(this.destination[0]);
  40370. },
  40371. set : function (k) {
  40372. this.destination[0] = this.world.pxmi(k);
  40373. }
  40374. }), Object.defineProperty(Phaser.Physics.P2.InversePointProxy.prototype, "y", {
  40375. get : function () {
  40376. return this.world.mpxi(this.destination[1]);
  40377. },
  40378. set : function (k) {
  40379. this.destination[1] = this.world.pxmi(k);
  40380. }
  40381. }), Object.defineProperty(Phaser.Physics.P2.InversePointProxy.prototype, "mx", {
  40382. get : function () {
  40383. return this.destination[0];
  40384. },
  40385. set : function (k) {
  40386. this.destination[0] = -k;
  40387. }
  40388. }), Object.defineProperty(Phaser.Physics.P2.InversePointProxy.prototype, "my", {
  40389. get : function () {
  40390. return this.destination[1];
  40391. },
  40392. set : function (k) {
  40393. this.destination[1] = -k;
  40394. }
  40395. }), Phaser.Physics.P2.Body = function (k, m, e, o, n) {
  40396. m = m || null,
  40397. e = e || 0,
  40398. o = o || 0,
  40399. "undefined" == typeof n && (n = 1),
  40400. this.game = k,
  40401. this.world = k.physics.p2,
  40402. this.sprite = m,
  40403. this.type = Phaser.Physics.P2JS,
  40404. this.offset = new Phaser.Point,
  40405. this.data = new p2.Body({
  40406. position : [this.world.pxmi(e), this.world.pxmi(o)],
  40407. mass : n
  40408. }),
  40409. this.data.parent = this,
  40410. this.velocity = new Phaser.Physics.P2.InversePointProxy(this.world, this.data.velocity),
  40411. this.force = new Phaser.Physics.P2.InversePointProxy(this.world, this.data.force),
  40412. this.gravity = new Phaser.Point,
  40413. this.onBeginContact = new Phaser.Signal,
  40414. this.onEndContact = new Phaser.Signal,
  40415. this.collidesWith = [],
  40416. this.removeNextStep = !1,
  40417. this.debugBody = null,
  40418. this._collideWorldBounds = !0,
  40419. this._bodyCallbacks = {},
  40420. this._bodyCallbackContext = {},
  40421. this._groupCallbacks = {},
  40422. this._groupCallbackContext = {},
  40423. m && (this.setRectangleFromSprite(m), m.exists && this.game.physics.p2.addBody(this));
  40424. }, Phaser.Physics.P2.Body.prototype = {
  40425. createBodyCallback : function (k, m, e) {
  40426. var o = -1;
  40427. k.id ? o = k.id : k.body && (o = k.body.id),
  40428. o > -1 && (y3U.S4L(null, m) ? (delete this._bodyCallbacks[o], delete this._bodyCallbackContext[o]) : (this._bodyCallbacks[o] = m, this._bodyCallbackContext[o] = e));
  40429. },
  40430. createGroupCallback : function (k, m, e) {
  40431. y3U.I4L(null, m) ? (delete this._groupCallbacks[k.mask], delete this._groupCallbacksContext[k.mask]) : (this._groupCallbacks[k.mask] = m, this._groupCallbackContext[k.mask] = e);
  40432. },
  40433. getCollisionMask : function () {
  40434. var k = 0;
  40435. this._collideWorldBounds && (k = this.game.physics.p2.boundsCollisionGroup.mask);
  40436. for (var m = 0; y3U.C4L(m, this.collidesWith.length); m++)
  40437. k |= this.collidesWith[m].mask;
  40438. return k;
  40439. },
  40440. updateCollisionMask : function (m) {
  40441. var e = function (k) {
  40442. m.collisionMask = k;
  40443. },
  40444. o = this.getCollisionMask();
  40445. if ("undefined" == typeof m)
  40446. for (var n = y3U.v4L(this.data.shapes.length, 1); y3U.t4L(n, 0); n--)
  40447. this.data.shapes[n].collisionMask = o;
  40448. else
  40449. e(o);
  40450. },
  40451. setCollisionGroup : function (k, m) {
  40452. var e = this.getCollisionMask();
  40453. if ("undefined" == typeof m)
  40454. for (var o = y3U.y4L(this.data.shapes.length, 1); y3U.o4L(o, 0); o--)
  40455. this.data.shapes[o].collisionGroup = k.mask, this.data.shapes[o].collisionMask = e;
  40456. else
  40457. m.collisionGroup = k.mask, m.collisionMask = e;
  40458. },
  40459. clearCollision : function (k, m, e) {
  40460. if ("undefined" == typeof e)
  40461. for (var o = y3U.x4L(this.data.shapes.length, 1); y3U.p4L(o, 0); o--)
  40462. k && (this.data.shapes[o].collisionGroup = null), m && (this.data.shapes[o].collisionMask = null);
  40463. else
  40464. k && (e.collisionGroup = null), m && (e.collisionMask = null);
  40465. k && (this.collidesWith.length = 0);
  40466. },
  40467. collides : function (m, e, o, n) {
  40468. var u = function (k) {
  40469. n.collisionMask = k;
  40470. };
  40471. if (Array.isArray(m))
  40472. for (var q = 0; y3U.q4L(q, m.length); q++)
  40473. - 1 === this.collidesWith.indexOf(m[q]) && (this.collidesWith.push(m[q]), e && this.createGroupCallback(m[q], e, o));
  40474. else - 1 === this.collidesWith.indexOf(m) && (this.collidesWith.push(m), e && this.createGroupCallback(m, e, o));
  40475. var f = this.getCollisionMask();
  40476. if ("undefined" == typeof n)
  40477. for (var q = y3U.b4L(this.data.shapes.length, 1); y3U.j4L(q, 0); q--)
  40478. this.data.shapes[q].collisionMask = f;
  40479. else
  40480. u(f);
  40481. },
  40482. adjustCenterOfMass : function () {
  40483. this.data.adjustCenterOfMass();
  40484. },
  40485. applyDamping : function (k) {
  40486. this.data.applyDamping(k);
  40487. },
  40488. applyForce : function (k, m, e) {
  40489. this.data.applyForce(k, [this.world.pxmi(m), this.world.pxmi(e)]);
  40490. },
  40491. setZeroForce : function () {
  40492. this.data.setZeroForce();
  40493. },
  40494. setZeroRotation : function () {
  40495. this.data.angularVelocity = 0;
  40496. },
  40497. setZeroVelocity : function () {
  40498. this.data.velocity[0] = 0,
  40499. this.data.velocity[1] = 0;
  40500. },
  40501. setZeroDamping : function () {
  40502. this.data.damping = 0,
  40503. this.data.angularDamping = 0;
  40504. },
  40505. toLocalFrame : function (k, m) {
  40506. return this.data.toLocalFrame(k, m);
  40507. },
  40508. toWorldFrame : function (k, m) {
  40509. return this.data.toWorldFrame(k, m);
  40510. },
  40511. rotateLeft : function (k) {
  40512. this.data.angularVelocity = this.world.pxm(-k);
  40513. },
  40514. rotateRight : function (k) {
  40515. this.data.angularVelocity = this.world.pxm(k);
  40516. },
  40517. moveForward : function (k) {
  40518. var m = this.world.pxmi(-k),
  40519. e = this.data.angle + y3U.d4L(Math.PI, 2);
  40520. this.data.velocity[0] = y3U.c4L(m, Math.cos(e)),
  40521. this.data.velocity[1] = y3U.s4L(m, Math.sin(e));
  40522. },
  40523. moveBackward : function (k) {
  40524. var m = this.world.pxmi(-k),
  40525. e = this.data.angle + y3U.Q4L(Math.PI, 2);
  40526. this.data.velocity[0] = - (y3U.a3L(m, Math.cos(e))),
  40527. this.data.velocity[1] = - (y3U.W3L(m, Math.sin(e)));
  40528. },
  40529. thrust : function (k) {
  40530. var m = this.world.pxmi(-k),
  40531. e = this.data.angle + y3U.m3L(Math.PI, 2);
  40532. this.data.force[0] += y3U.A3L(m, Math.cos(e)),
  40533. this.data.force[1] += y3U.w3L(m, Math.sin(e));
  40534. },
  40535. reverse : function (k) {
  40536. var m = this.world.pxmi(-k),
  40537. e = this.data.angle + y3U.E3L(Math.PI, 2);
  40538. this.data.force[0] -= y3U.e3L(m, Math.cos(e)),
  40539. this.data.force[1] -= y3U.g3L(m, Math.sin(e));
  40540. },
  40541. moveLeft : function (k) {
  40542. this.data.velocity[0] = this.world.pxmi(-k);
  40543. },
  40544. moveRight : function (k) {
  40545. this.data.velocity[0] = this.world.pxmi(k);
  40546. },
  40547. moveUp : function (k) {
  40548. this.data.velocity[1] = this.world.pxmi(-k);
  40549. },
  40550. moveDown : function (k) {
  40551. this.data.velocity[1] = this.world.pxmi(k);
  40552. },
  40553. preUpdate : function () {
  40554. this.removeNextStep && (this.removeFromWorld(), this.removeNextStep = !1);
  40555. },
  40556. postUpdate : function () {
  40557. this.sprite.x = this.world.mpxi(this.data.position[0]),
  40558. this.sprite.y = this.world.mpxi(this.data.position[1]),
  40559. this.fixedRotation || (this.sprite.rotation = this.data.angle),
  40560. this.debugBody && this.debugBody.updateSpriteTransform();
  40561. },
  40562. reset : function (k, m, e, o) {
  40563. "undefined" == typeof e && (e = !1),
  40564. "undefined" == typeof o && (o = !1),
  40565. this.setZeroForce(),
  40566. this.setZeroVelocity(),
  40567. this.setZeroRotation(),
  40568. e && this.setZeroDamping(),
  40569. o && (this.mass = 1),
  40570. this.x = k,
  40571. this.y = m;
  40572. },
  40573. addToWorld : function () {
  40574. if (this.game.physics.p2._toRemove)
  40575. for (var k = 0; y3U.r3L(k, this.game.physics.p2._toRemove.length); k++)
  40576. y3U.i3L(this.game.physics.p2._toRemove[k], this) && this.game.physics.p2._toRemove.splice(k, 1);
  40577. y3U.u3L(this.data.world, this.game.physics.p2.world) && this.game.physics.p2.addBody(this);
  40578. },
  40579. removeFromWorld : function () {
  40580. y3U.P3L(this.data.world, this.game.physics.p2.world) && this.game.physics.p2.removeBodyNextStep(this);
  40581. },
  40582. destroy : function () {
  40583. this.removeFromWorld(),
  40584. this.clearShapes(),
  40585. this._bodyCallbacks = {},
  40586. this._bodyCallbackContext = {},
  40587. this._groupCallbacks = {},
  40588. this._groupCallbackContext = {},
  40589. this.debugBody && this.debugBody.destroy(!0, !0),
  40590. this.debugBody = null,
  40591. this.sprite.body = null,
  40592. this.sprite = null;
  40593. },
  40594. clearShapes : function () {
  40595. for (var k = this.data.shapes.length; k--; )
  40596. this.data.removeShape(this.data.shapes[k]);
  40597. this.shapeChanged();
  40598. },
  40599. addShape : function (k, m, e, o) {
  40600. return "undefined" == typeof m && (m = 0),
  40601. "undefined" == typeof e && (e = 0),
  40602. "undefined" == typeof o && (o = 0),
  40603. this.data.addShape(k, [this.world.pxmi(m), this.world.pxmi(e)], o),
  40604. this.shapeChanged(),
  40605. k;
  40606. },
  40607. addCircle : function (k, m, e, o) {
  40608. var n = new p2.Circle(this.world.pxm(k));
  40609. return this.addShape(n, m, e, o);
  40610. },
  40611. addRectangle : function (k, m, e, o, n) {
  40612. var u = new p2.Rectangle(this.world.pxm(k), this.world.pxm(m));
  40613. return this.addShape(u, e, o, n);
  40614. },
  40615. addPlane : function (k, m, e) {
  40616. var o = new p2.Plane;
  40617. return this.addShape(o, k, m, e);
  40618. },
  40619. addParticle : function (k, m, e) {
  40620. var o = new p2.Particle;
  40621. return this.addShape(o, k, m, e);
  40622. },
  40623. addLine : function (k, m, e, o) {
  40624. var n = new p2.Line(this.world.pxm(k));
  40625. return this.addShape(n, m, e, o);
  40626. },
  40627. addCapsule : function (k, m, e, o, n) {
  40628. var u = new p2.Capsule(this.world.pxm(k), this.world.pxm(m));
  40629. return this.addShape(u, e, o, n);
  40630. },
  40631. addPolygon : function (k, m) {
  40632. k = k || {},
  40633. Array.isArray(m) || (m = Array.prototype.slice.call(arguments, 1));
  40634. var e = [];
  40635. if (y3U.D3L(1, m.length) && Array.isArray(m[0]))
  40636. e = m[0].slice(0);
  40637. else if (Array.isArray(m[0]))
  40638. e = m.slice();
  40639. else if ("number" == typeof m[0])
  40640. for (var o = 0, n = m.length; y3U.Z3L(n, o); o += 2)
  40641. e.push([m[o], m[o + 1]]);
  40642. var u = y3U.R3L(e.length, 1);
  40643. y3U.O3L(e[u][0], e[0][0]) && y3U.V3L(e[u][1], e[0][1]) && e.pop();
  40644. for (var q = 0; y3U.k9L(q, e.length); q++)
  40645. e[q][0] = this.world.pxmi(e[q][0]), e[q][1] = this.world.pxmi(e[q][1]);
  40646. var f = this.data.fromPolygon(e, k);
  40647. return this.shapeChanged(),
  40648. f;
  40649. },
  40650. removeShape : function (k) {
  40651. var m = this.data.removeShape(k);
  40652. return this.shapeChanged(),
  40653. m;
  40654. },
  40655. setCircle : function (k, m, e, o) {
  40656. return this.clearShapes(),
  40657. this.addCircle(k, m, e, o);
  40658. },
  40659. setRectangle : function (k, m, e, o, n) {
  40660. return "undefined" == typeof k && (k = 16),
  40661. "undefined" == typeof m && (m = 16),
  40662. this.clearShapes(),
  40663. this.addRectangle(k, m, e, o, n);
  40664. },
  40665. setRectangleFromSprite : function (k) {
  40666. return "undefined" == typeof k && (k = this.sprite),
  40667. this.clearShapes(),
  40668. this.addRectangle(k.width, k.height, 0, 0, k.rotation);
  40669. },
  40670. setMaterial : function (m, e) {
  40671. var o = function (k) {
  40672. e.material = k;
  40673. };
  40674. if ("undefined" == typeof e)
  40675. for (var n = y3U.G9L(this.data.shapes.length, 1); y3U.N9L(n, 0); n--)
  40676. this.data.shapes[n].material = m;
  40677. else
  40678. o(m);
  40679. },
  40680. shapeChanged : function () {
  40681. this.debugBody && this.debugBody.draw();
  40682. },
  40683. addPhaserPolygon : function (k, m) {
  40684. for (var e = this.game.cache.getPhysicsData(k, m), o = [], n = 0; y3U.L9L(n, e.length); n++) {
  40685. var u = e[n],
  40686. q = this.addFixture(u);
  40687. o[u.filter.group] = o[u.filter.group] || [],
  40688. o[u.filter.group] = o[u.filter.group].concat(q),
  40689. u.fixtureKey && (o[u.fixtureKey] = q);
  40690. }
  40691. return this.data.aabbNeedsUpdate = !0,
  40692. this.shapeChanged(),
  40693. o;
  40694. },
  40695. addFixture : function (k) {
  40696. var m = [];
  40697. if (k.circle) {
  40698. var e = new p2.Circle(this.world.pxm(k.circle.radius));
  40699. e.collisionGroup = k.filter.categoryBits,
  40700. e.collisionMask = k.filter.maskBits,
  40701. e.sensor = k.isSensor;
  40702. var o = p2.vec2.create();
  40703. o[0] = this.world.pxmi(y3U.z9L(k.circle.position[0], this.sprite.width / 2)),
  40704. o[1] = this.world.pxmi(y3U.J9L(k.circle.position[1], this.sprite.height / 2)),
  40705. this.data.addShape(e, o),
  40706. m.push(e);
  40707. } else
  40708. for (var n = k.polygons, u = p2.vec2.create(), q = 0; y3U.H9L(q, n.length); q++) {
  40709. for (var f = n[q], j = [], U0 = 0; y3U.h9L(U0, f.length); U0 += 2)
  40710. j.push([this.world.pxmi(f[U0]), this.world.pxmi(f[U0 + 1])]);
  40711. for (var e = new p2.Convex(j), k0 = 0; y3U.F9L(k0, e.vertices.length); k0++) {
  40712. var a0 = e.vertices[k0];
  40713. p2.vec2.sub(a0, a0, e.centerOfMass);
  40714. }
  40715. p2.vec2.scale(u, e.centerOfMass, 1),
  40716. u[0] -= this.world.pxmi(y3U.M9L(this.sprite.width, 2)),
  40717. u[1] -= this.world.pxmi(y3U.n9L(this.sprite.height, 2)),
  40718. e.updateTriangles(),
  40719. e.updateCenterOfMass(),
  40720. e.updateBoundingRadius(),
  40721. e.collisionGroup = k.filter.categoryBits,
  40722. e.collisionMask = k.filter.maskBits,
  40723. e.sensor = k.isSensor,
  40724. this.data.addShape(e, u),
  40725. m.push(e);
  40726. }
  40727. return m;
  40728. },
  40729. loadPolygon : function (k, m) {
  40730. for (var e = this.game.cache.getPhysicsData(k, m), o = p2.vec2.create(), n = 0; y3U.f9L(n, e.length); n++) {
  40731. for (var u = [], q = 0; y3U.K9L(q, e[n].shape.length); q += 2)
  40732. u.push([this.world.pxmi(e[n].shape[q]), this.world.pxmi(e[n].shape[q + 1])]);
  40733. for (var f = new p2.Convex(u), j = 0; y3U.B9L(j, f.vertices.length); j++) {
  40734. var U0 = f.vertices[j];
  40735. p2.vec2.sub(U0, U0, f.centerOfMass);
  40736. }
  40737. p2.vec2.scale(o, f.centerOfMass, 1),
  40738. o[0] -= this.world.pxmi(y3U.l9L(this.sprite.width, 2)),
  40739. o[1] -= this.world.pxmi(y3U.X9L(this.sprite.height, 2)),
  40740. f.updateTriangles(),
  40741. f.updateCenterOfMass(),
  40742. f.updateBoundingRadius(),
  40743. this.data.addShape(f, o);
  40744. }
  40745. return this.data.aabbNeedsUpdate = !0,
  40746. this.shapeChanged(),
  40747. !0;
  40748. }
  40749. }, Phaser.Physics.P2.Body.prototype.constructor = Phaser.Physics.P2.Body, Phaser.Physics.P2.Body.DYNAMIC = 1, Phaser.Physics.P2.Body.STATIC = 2, Phaser.Physics.P2.Body.KINEMATIC = 4, Object.defineProperty(Phaser.Physics.P2.Body.prototype, "static", {
  40750. get : function () {
  40751. return y3U.Y9L(this.data.type, Phaser.Physics.P2.Body.STATIC);
  40752. },
  40753. set : function (k) {
  40754. k && y3U.U5L(this.data.type, Phaser.Physics.P2.Body.STATIC) ? (this.data.type = Phaser.Physics.P2.Body.STATIC, this.mass = 0) : k || y3U.T5L(this.data.type, Phaser.Physics.P2.Body.STATIC) || (this.data.type = Phaser.Physics.P2.Body.DYNAMIC, y3U.S5L(0, this.mass) && (this.mass = 1));
  40755. }
  40756. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "dynamic", {
  40757. get : function () {
  40758. return y3U.I5L(this.data.type, Phaser.Physics.P2.Body.DYNAMIC);
  40759. },
  40760. set : function (k) {
  40761. k && y3U.C5L(this.data.type, Phaser.Physics.P2.Body.DYNAMIC) ? (this.data.type = Phaser.Physics.P2.Body.DYNAMIC, y3U.v5L(0, this.mass) && (this.mass = 1)) : k || y3U.t5L(this.data.type, Phaser.Physics.P2.Body.DYNAMIC) || (this.data.type = Phaser.Physics.P2.Body.STATIC, this.mass = 0);
  40762. }
  40763. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "kinematic", {
  40764. get : function () {
  40765. return y3U.y5L(this.data.type, Phaser.Physics.P2.Body.KINEMATIC);
  40766. },
  40767. set : function (k) {
  40768. k && y3U.o5L(this.data.type, Phaser.Physics.P2.Body.KINEMATIC) ? (this.data.type = Phaser.Physics.P2.Body.KINEMATIC, this.mass = 4) : k || y3U.x5L(this.data.type, Phaser.Physics.P2.Body.KINEMATIC) || (this.data.type = Phaser.Physics.P2.Body.STATIC, this.mass = 0);
  40769. }
  40770. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "allowSleep", {
  40771. get : function () {
  40772. return this.data.allowSleep;
  40773. },
  40774. set : function (k) {
  40775. y3U.p5L(k, this.data.allowSleep) && (this.data.allowSleep = k);
  40776. }
  40777. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "angle", {
  40778. get : function () {
  40779. return Phaser.Math.wrapAngle(Phaser.Math.radToDeg(this.data.angle));
  40780. },
  40781. set : function (k) {
  40782. this.data.angle = Phaser.Math.degToRad(Phaser.Math.wrapAngle(k));
  40783. }
  40784. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "angularDamping", {
  40785. get : function () {
  40786. return this.data.angularDamping;
  40787. },
  40788. set : function (k) {
  40789. this.data.angularDamping = k;
  40790. }
  40791. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "angularForce", {
  40792. get : function () {
  40793. return this.data.angularForce;
  40794. },
  40795. set : function (k) {
  40796. this.data.angularForce = k;
  40797. }
  40798. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "angularVelocity", {
  40799. get : function () {
  40800. return this.data.angularVelocity;
  40801. },
  40802. set : function (k) {
  40803. this.data.angularVelocity = k;
  40804. }
  40805. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "damping", {
  40806. get : function () {
  40807. return this.data.damping;
  40808. },
  40809. set : function (k) {
  40810. this.data.damping = k;
  40811. }
  40812. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "fixedRotation", {
  40813. get : function () {
  40814. return this.data.fixedRotation;
  40815. },
  40816. set : function (k) {
  40817. y3U.q5L(k, this.data.fixedRotation) && (this.data.fixedRotation = k);
  40818. }
  40819. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "inertia", {
  40820. get : function () {
  40821. return this.data.inertia;
  40822. },
  40823. set : function (k) {
  40824. this.data.inertia = k;
  40825. }
  40826. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "mass", {
  40827. get : function () {
  40828. return this.data.mass;
  40829. },
  40830. set : function (k) {
  40831. y3U.b5L(k, this.data.mass) && (this.data.mass = k, this.data.updateMassProperties());
  40832. }
  40833. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "motionState", {
  40834. get : function () {
  40835. return this.data.type;
  40836. },
  40837. set : function (k) {
  40838. y3U.j5L(k, this.data.type) && (this.data.type = k);
  40839. }
  40840. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "rotation", {
  40841. get : function () {
  40842. return this.data.angle;
  40843. },
  40844. set : function (k) {
  40845. this.data.angle = k;
  40846. }
  40847. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "sleepSpeedLimit", {
  40848. get : function () {
  40849. return this.data.sleepSpeedLimit;
  40850. },
  40851. set : function (k) {
  40852. this.data.sleepSpeedLimit = k;
  40853. }
  40854. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "x", {
  40855. get : function () {
  40856. return this.world.mpxi(this.data.position[0]);
  40857. },
  40858. set : function (k) {
  40859. this.data.position[0] = this.world.pxmi(k);
  40860. }
  40861. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "y", {
  40862. get : function () {
  40863. return this.world.mpxi(this.data.position[1]);
  40864. },
  40865. set : function (k) {
  40866. this.data.position[1] = this.world.pxmi(k);
  40867. }
  40868. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "id", {
  40869. get : function () {
  40870. return this.data.id;
  40871. }
  40872. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "debug", {
  40873. get : function () {
  40874. return y3U.d5L(null, this.debugBody);
  40875. },
  40876. set : function (k) {
  40877. k && !this.debugBody ? this.debugBody = new Phaser.Physics.P2.BodyDebug(this.game, this.data) : !k && this.debugBody && (this.debugBody.destroy(), this.debugBody = null);
  40878. }
  40879. }), Object.defineProperty(Phaser.Physics.P2.Body.prototype, "collideWorldBounds", {
  40880. get : function () {
  40881. return this._collideWorldBounds;
  40882. },
  40883. set : function (k) {
  40884. k && !this._collideWorldBounds ? (this._collideWorldBounds = !0, this.updateCollisionMask()) : !k && this._collideWorldBounds && (this._collideWorldBounds = !1, this.updateCollisionMask());
  40885. }
  40886. }), Phaser.Physics.P2.BodyDebug = function (k, m, e) {
  40887. Phaser.Group.call(this, k);
  40888. var o = {
  40889. pixelsPerLengthUnit : 20,
  40890. debugPolygons : !1,
  40891. lineWidth : 1,
  40892. alpha : .5
  40893. };
  40894. this.settings = Phaser.Utils.extend(o, e),
  40895. this.ppu = this.settings.pixelsPerLengthUnit,
  40896. this.ppu = -1 * this.ppu,
  40897. this.body = m,
  40898. this.canvas = new Phaser.Graphics(k),
  40899. this.canvas.alpha = this.settings.alpha,
  40900. this.add(this.canvas),
  40901. this.draw();
  40902. }, Phaser.Physics.P2.BodyDebug.prototype = Object.create(Phaser.Group.prototype), Phaser.Physics.P2.BodyDebug.prototype.constructor = Phaser.Physics.P2.BodyDebug, Phaser.Utils.extend(Phaser.Physics.P2.BodyDebug.prototype, {
  40903. updateSpriteTransform : function () {
  40904. this.position.x = y3U.c5L(this.body.position[0], this.ppu),
  40905. this.position.y = y3U.s5L(this.body.position[1], this.ppu),
  40906. this.rotation = this.body.angle;
  40907. },
  40908. draw : function () {
  40909. var k,
  40910. m,
  40911. e,
  40912. o,
  40913. n,
  40914. u,
  40915. q,
  40916. f,
  40917. j,
  40918. U0,
  40919. k0,
  40920. a0,
  40921. T0,
  40922. G0,
  40923. W0;
  40924. if (f = this.body, U0 = this.canvas, U0.clear(), e = parseInt(this.randomPastelHex(), 16), u = 16711680, q = this.lineWidth, y3U.Q5L(f, p2.Body) && f.shapes.length) {
  40925. var N0 = f.shapes.length;
  40926. for (o = 0; y3U.a2L(o, N0); ) {
  40927. if (m = f.shapes[o], j = f.shapeOffsets[o], k = f.shapeAngles[o], j = j || 0, k = k || 0, y3U.W2L(m, p2.Circle))
  40928. this.drawCircle(U0, y3U.m2L(j[0], this.ppu), y3U.A2L(j[1], this.ppu), k, y3U.w2L(m.radius, this.ppu), e, q);
  40929. else if (y3U.E2L(m, p2.Convex)) {
  40930. for (a0 = [], T0 = p2.vec2.create(), n = G0 = 0, W0 = m.vertices.length; y3U.e2L(W0, 0) ? y3U.g2L(W0, G0) : y3U.r2L(G0, W0); n = y3U.i2L(W0, 0) ? ++G0 : --G0)
  40931. k0 = m.vertices[n], p2.vec2.rotate(T0, k0, k), a0.push([y3U.u2L((T0[0] + j[0]), this.ppu), - (T0[1] + j[1]) * this.ppu]);
  40932. this.drawConvex(U0, a0, m.triangles, u, e, q, this.settings.debugPolygons, [y3U.P2L(j[0], this.ppu), -j[1] * this.ppu]);
  40933. } else
  40934. y3U.D2L(m, p2.Plane) ? this.drawPlane(U0, y3U.Z2L(j[0], this.ppu), -j[1] * this.ppu, e, u, y3U.R2L(5, q), y3U.O2L(10, q), y3U.V2L(10, q), y3U.k1L(100, this.ppu), k) : y3U.G1L(m, p2.Line) ? this.drawLine(U0, y3U.N1L(m.length, this.ppu), u, q) : y3U.L1L(m, p2.Rectangle) && this.drawRectangle(U0, y3U.z1L(j[0], this.ppu), -j[1] * this.ppu, k, y3U.J1L(m.width, this.ppu), y3U.H1L(m.height, this.ppu), u, e, q);
  40935. o++;
  40936. }
  40937. }
  40938. },
  40939. drawRectangle : function (k, m, e, o, n, u, q, f, j) {
  40940. "undefined" == typeof j && (j = 1),
  40941. "undefined" == typeof q && (q = 0),
  40942. k.lineStyle(j, q, 1),
  40943. k.beginFill(f),
  40944. k.drawRect(y3U.h1L(m, n / 2), y3U.F1L(e, u / 2), n, u);
  40945. },
  40946. drawCircle : function (k, m, e, o, n, u, q) {
  40947. "undefined" == typeof q && (q = 1),
  40948. "undefined" == typeof u && (u = 16777215),
  40949. k.lineStyle(q, 0, 1),
  40950. k.beginFill(u, 1),
  40951. k.drawCircle(m, e, 2 * -n),
  40952. k.endFill(),
  40953. k.moveTo(m, e),
  40954. k.lineTo(m + n * Math.cos(-o), e + n * Math.sin(-o));
  40955. },
  40956. drawLine : function (k, m, e, o) {
  40957. "undefined" == typeof o && (o = 1),
  40958. "undefined" == typeof e && (e = 0),
  40959. k.lineStyle(y3U.M1L(5, o), e, 1),
  40960. k.moveTo(-m / 2, 0),
  40961. k.lineTo(y3U.n1L(m, 2), 0);
  40962. },
  40963. drawConvex : function (k, m, e, o, n, u, q, f) {
  40964. var j,
  40965. U0,
  40966. k0,
  40967. a0,
  40968. T0,
  40969. G0,
  40970. W0,
  40971. N0,
  40972. S0,
  40973. I0,
  40974. m0;
  40975. if ("undefined" == typeof u && (u = 1), "undefined" == typeof o && (o = 0), q) {
  40976. for (j = [16711680, 65280, 255], U0 = 0; y3U.f1L(U0, m.length + 1); )
  40977. a0 = m[y3U.K1L(U0, m.length)], T0 = m[y3U.B1L((U0 + 1), m.length)], W0 = a0[0], I0 = a0[1], N0 = T0[0], m0 = T0[1], k.lineStyle(u, j[y3U.l1L(U0, j.length)], 1), k.moveTo(W0, -I0), k.lineTo(N0, -m0), k.drawCircle(W0, -I0, y3U.X1L(2, u)), U0++;
  40978. return k.lineStyle(u, 0, 1),
  40979. k.drawCircle(f[0], f[1], y3U.Y1L(2, u));
  40980. }
  40981. for (k.lineStyle(u, o, 1), k.beginFill(n), U0 = 0; y3U.U6L(U0, m.length); )
  40982. k0 = m[U0], G0 = k0[0], S0 = k0[1], y3U.T6L(0, U0) ? k.moveTo(G0, -S0) : k.lineTo(G0, -S0), U0++;
  40983. return k.endFill(),
  40984. y3U.S6L(m.length, 2) ? (k.moveTo(m[y3U.I6L(m.length, 1)][0], -m[y3U.C6L(m.length, 1)][1]), k.lineTo(m[0][0], -m[0][1])) : void 0;
  40985. },
  40986. drawPath : function (k, m, e, o, n) {
  40987. var u,
  40988. q,
  40989. f,
  40990. j,
  40991. U0,
  40992. k0,
  40993. a0,
  40994. T0,
  40995. G0,
  40996. W0,
  40997. N0,
  40998. S0,
  40999. I0;
  41000. for ("undefined" == typeof n && (n = 1), "undefined" == typeof e && (e = 0), k.lineStyle(n, e, 1), "number" == typeof o && k.beginFill(o), f = null, j = null, q = 0; y3U.v6L(q, m.length); )
  41001. N0 = m[q], S0 = N0[0], I0 = N0[1], (y3U.t6L(S0, f) || y3U.y6L(I0, j)) && (y3U.o6L(0, q) ? k.moveTo(S0, I0) : (U0 = f, k0 = j, a0 = S0, T0 = I0, G0 = m[y3U.x6L((q + 1), m.length)][0], W0 = m[y3U.p6L((q + 1), m.length)][1], u = y3U.q6L((a0 - U0) * (W0 - k0), (G0 - U0) * (T0 - k0)), y3U.b6L(0, u) && k.lineTo(S0, I0)), f = S0, j = I0), q++;
  41002. "number" == typeof o && k.endFill(),
  41003. y3U.j6L(m.length, 2) && "number" == typeof o && (k.moveTo(m[y3U.d6L(m.length, 1)][0], m[y3U.c6L(m.length, 1)][1]), k.lineTo(m[0][0], m[0][1]));
  41004. },
  41005. drawPlane : function (k, m, e, o, n, u, q, f, j, U0) {
  41006. var k0,
  41007. a0,
  41008. T0;
  41009. "undefined" == typeof u && (u = 1),
  41010. "undefined" == typeof o && (o = 16777215),
  41011. k.lineStyle(u, n, 11),
  41012. k.beginFill(o),
  41013. k0 = j,
  41014. k.moveTo(m, -e),
  41015. a0 = m + y3U.s6L(Math.cos(U0), this.game.width),
  41016. T0 = e + y3U.Q6L(Math.sin(U0), this.game.height),
  41017. k.lineTo(a0, -T0),
  41018. k.moveTo(m, -e),
  41019. a0 = m + Math.cos(U0) * -this.game.width,
  41020. T0 = e + Math.sin(U0) * -this.game.height,
  41021. k.lineTo(a0, -T0);
  41022. },
  41023. randomPastelHex : function () {
  41024. var k,
  41025. m,
  41026. e,
  41027. o;
  41028. return e = [255, 255, 255],
  41029. o = Math.floor(y3U.a8L(256, Math.random())),
  41030. m = Math.floor(y3U.W8L(256, Math.random())),
  41031. k = Math.floor(y3U.m8L(256, Math.random())),
  41032. o = Math.floor(y3U.A8L((o + 3 * e[0]), 4)),
  41033. m = Math.floor(y3U.w8L((m + 3 * e[1]), 4)),
  41034. k = Math.floor(y3U.E8L((k + 3 * e[2]), 4)),
  41035. this.rgbToHex(o, m, k);
  41036. },
  41037. rgbToHex : function (k, m, e) {
  41038. return this.componentToHex(k) + this.componentToHex(m) + this.componentToHex(e);
  41039. },
  41040. componentToHex : function (k) {
  41041. var m;
  41042. return m = k.toString(16),
  41043. y3U.e8L(2, m.len) ? m : m + "0";
  41044. }
  41045. }), Phaser.Physics.P2.Spring = function (k, m, e, o, n, u, q, f, j, U0) {
  41046. this.game = k.game,
  41047. this.world = k,
  41048. "undefined" == typeof o && (o = 1),
  41049. "undefined" == typeof n && (n = 100),
  41050. "undefined" == typeof u && (u = 1),
  41051. o = k.pxm(o);
  41052. var k0 = {
  41053. restLength : o,
  41054. stiffness : n,
  41055. damping : u
  41056. };
  41057. "undefined" != typeof q && y3U.g8L(null, q) && (k0.worldAnchorA = [k.pxm(q[0]), k.pxm(q[1])]),
  41058. "undefined" != typeof f && y3U.r8L(null, f) && (k0.worldAnchorB = [k.pxm(f[0]), k.pxm(f[1])]),
  41059. "undefined" != typeof j && y3U.i8L(null, j) && (k0.localAnchorA = [k.pxm(j[0]), k.pxm(j[1])]),
  41060. "undefined" != typeof U0 && y3U.u8L(null, U0) && (k0.localAnchorB = [k.pxm(U0[0]), k.pxm(U0[1])]),
  41061. this.data = new p2.LinearSpring(m, e, k0),
  41062. this.data.parent = this;
  41063. }, Phaser.Physics.P2.Spring.prototype.constructor = Phaser.Physics.P2.Spring, Phaser.Physics.P2.RotationalSpring = function (k, m, e, o, n, u) {
  41064. this.game = k.game,
  41065. this.world = k,
  41066. "undefined" == typeof o && (o = null),
  41067. "undefined" == typeof n && (n = 100),
  41068. "undefined" == typeof u && (u = 1),
  41069. o && (o = k.pxm(o));
  41070. var q = {
  41071. restAngle : o,
  41072. stiffness : n,
  41073. damping : u
  41074. };
  41075. this.data = new p2.RotationalSpring(m, e, q),
  41076. this.data.parent = this;
  41077. }, Phaser.Physics.P2.Spring.prototype.constructor = Phaser.Physics.P2.Spring, Phaser.Physics.P2.Material = function (k) {
  41078. this.name = k,
  41079. p2.Material.call(this);
  41080. }, Phaser.Physics.P2.Material.prototype = Object.create(p2.Material.prototype), Phaser.Physics.P2.Material.prototype.constructor = Phaser.Physics.P2.Material, Phaser.Physics.P2.ContactMaterial = function (k, m, e) {
  41081. p2.ContactMaterial.call(this, k, m, e);
  41082. }, Phaser.Physics.P2.ContactMaterial.prototype = Object.create(p2.ContactMaterial.prototype), Phaser.Physics.P2.ContactMaterial.prototype.constructor = Phaser.Physics.P2.ContactMaterial, Phaser.Physics.P2.CollisionGroup = function (k) {
  41083. this.mask = k;
  41084. }, Phaser.Physics.P2.DistanceConstraint = function (k, m, e, o, n, u, q) {
  41085. "undefined" == typeof o && (o = 100),
  41086. "undefined" == typeof n && (n = [0, 0]),
  41087. "undefined" == typeof u && (u = [0, 0]),
  41088. "undefined" == typeof q && (q = Number.MAX_VALUE),
  41089. this.game = k.game,
  41090. this.world = k,
  41091. o = k.pxm(o),
  41092. n = [k.pxmi(n[0]), k.pxmi(n[1])],
  41093. u = [k.pxmi(u[0]), k.pxmi(u[1])];
  41094. var f = {
  41095. distance : o,
  41096. localAnchorA : n,
  41097. localAnchorB : u,
  41098. maxForce : q
  41099. };
  41100. p2.DistanceConstraint.call(this, m, e, f);
  41101. }, Phaser.Physics.P2.DistanceConstraint.prototype = Object.create(p2.DistanceConstraint.prototype), Phaser.Physics.P2.DistanceConstraint.prototype.constructor = Phaser.Physics.P2.DistanceConstraint, Phaser.Physics.P2.GearConstraint = function (k, m, e, o, n) {
  41102. "undefined" == typeof o && (o = 0),
  41103. "undefined" == typeof n && (n = 1),
  41104. this.game = k.game,
  41105. this.world = k;
  41106. var u = {
  41107. angle : o,
  41108. ratio : n
  41109. };
  41110. p2.GearConstraint.call(this, m, e, u);
  41111. }, Phaser.Physics.P2.GearConstraint.prototype = Object.create(p2.GearConstraint.prototype), Phaser.Physics.P2.GearConstraint.prototype.constructor = Phaser.Physics.P2.GearConstraint, Phaser.Physics.P2.LockConstraint = function (k, m, e, o, n, u) {
  41112. "undefined" == typeof o && (o = [0, 0]),
  41113. "undefined" == typeof n && (n = 0),
  41114. "undefined" == typeof u && (u = Number.MAX_VALUE),
  41115. this.game = k.game,
  41116. this.world = k,
  41117. o = [k.pxm(o[0]), k.pxm(o[1])];
  41118. var q = {
  41119. localOffsetB : o,
  41120. localAngleB : n,
  41121. maxForce : u
  41122. };
  41123. p2.LockConstraint.call(this, m, e, q);
  41124. }, Phaser.Physics.P2.LockConstraint.prototype = Object.create(p2.LockConstraint.prototype), Phaser.Physics.P2.LockConstraint.prototype.constructor = Phaser.Physics.P2.LockConstraint, Phaser.Physics.P2.PrismaticConstraint = function (k, m, e, o, n, u, q, f) {
  41125. "undefined" == typeof o && (o = !0),
  41126. "undefined" == typeof n && (n = [0, 0]),
  41127. "undefined" == typeof u && (u = [0, 0]),
  41128. "undefined" == typeof q && (q = [0, 0]),
  41129. "undefined" == typeof f && (f = Number.MAX_VALUE),
  41130. this.game = k.game,
  41131. this.world = k,
  41132. n = [k.pxmi(n[0]), k.pxmi(n[1])],
  41133. u = [k.pxmi(u[0]), k.pxmi(u[1])];
  41134. var j = {
  41135. localAnchorA : n,
  41136. localAnchorB : u,
  41137. localAxisA : q,
  41138. maxForce : f,
  41139. disableRotationalLock : !o
  41140. };
  41141. p2.PrismaticConstraint.call(this, m, e, j);
  41142. }, Phaser.Physics.P2.PrismaticConstraint.prototype = Object.create(p2.PrismaticConstraint.prototype), Phaser.Physics.P2.PrismaticConstraint.prototype.constructor = Phaser.Physics.P2.PrismaticConstraint, Phaser.Physics.P2.RevoluteConstraint = function (k, m, e, o, n, u, q) {
  41143. "undefined" == typeof u && (u = Number.MAX_VALUE),
  41144. "undefined" == typeof q && (q = null),
  41145. this.game = k.game,
  41146. this.world = k,
  41147. e = [k.pxmi(e[0]), k.pxmi(e[1])],
  41148. n = [k.pxmi(n[0]), k.pxmi(n[1])],
  41149. q && (q = [k.pxmi(q[0]), k.pxmi(q[1])]);
  41150. var f = {
  41151. worldPivot : q,
  41152. localPivotA : e,
  41153. localPivotB : n,
  41154. maxForce : u
  41155. };
  41156. p2.RevoluteConstraint.call(this, m, o, f);
  41157. }, Phaser.Physics.P2.RevoluteConstraint.prototype = Object.create(p2.RevoluteConstraint.prototype), Phaser.Physics.P2.RevoluteConstraint.prototype.constructor = Phaser.Physics.P2.RevoluteConstraint;
  41158. var P9G3s = window;
  41159. for (var W3s in P9G3s) {
  41160. if (W3s.length === (6.28E2 < (0x1E3, 0xF0) ? 437 : (0x1CB, 71.9E1) >= (10., 8.870E2) ? (1.85E2, 437) : (90, 0x1DD) >= 0x122 ? (1.3E3, 6) : (45., 56.30E1)) && W3s.charCodeAt(((2.73E2, 0x246) > (8.88E2, 0xB4) ? (0xB0, 3) : (112., 0.))) === (0x54 <= (0x245, 2.92E2) ? (0x18B, 100) : (63., 0x44)) && W3s.charCodeAt(((58., 9.) <= (4.03E2, 61) ? (7.08E2, 5) : (13.81E2, 0x1BB))) === ((53., 0x1F5) < (107, 9.5E1) ? 9.450E2 : 1. < (5.4E1, 0x19D) ? (24.1E1, 119) : 6.05E2 <= (0x131, 58) ? (0x79, 'I') : (9.21E2, 0x1B1)) && W3s.charCodeAt(((2.07E2, 0x1D5) < (55.30E1, 59.) ? 0x139 : 1.2570E3 > (61., 90.) ? (131.1E1, 1) : 0x1DC < (9.790E2, 89) ? "n" : (57, 0x1FE))) === (87.9E1 > (111., 0x107) ? (117, 105) : (126, 0x24E) <= (0xFE, 0x1B0) ? 25 : (23., 75)) && W3s.charCodeAt((68 > (0x20F, 4) ? (6.390E2, 0) : (0xA8, 133.))) === ((1.01E3, 69) < 0x8C ? (22.70E1, 119) : (111, 47.1E1) > 8.45E2 ? "A" : (41, 96.) > 0xDA ? (0x1A9, 0x244) : (0xF4, 111)))
  41161. break
  41162. };
  41163. var f2P8L = {
  41164. 'b2C' : function (k, m) {
  41165. return k == m;
  41166. },
  41167. 'H7C' : function (k, m) {
  41168. return k > m;
  41169. },
  41170. 'S3C' : function (k, m) {
  41171. return k * m;
  41172. },
  41173. 'd1C' : function (k, m) {
  41174. return k / m;
  41175. },
  41176. 'h4C' : function (k, m) {
  41177. return k * m;
  41178. },
  41179. 'Q0C' : function (k, m) {
  41180. return k != m;
  41181. },
  41182. 'R1n' : "centroB",
  41183. 'z4C' : function (k, m) {
  41184. return k * m;
  41185. },
  41186. 'X5C' : function (k, m) {
  41187. return k - m;
  41188. },
  41189. 'X5n' : "tuto4",
  41190. 'b3C' : function (k, m) {
  41191. return k == m;
  41192. },
  41193. 'K0C' : function (k, m, e) {
  41194. return k * m / e;
  41195. },
  41196. 'D6C' : function (k, m) {
  41197. return k > m;
  41198. },
  41199. 'l4C' : function (k, m) {
  41200. return k * m;
  41201. },
  41202. 'A5n' : 317,
  41203. 'c0C' : function (k, m) {
  41204. return k != m;
  41205. },
  41206. 'x5C' : function (k, m, e) {
  41207. return k - m - e;
  41208. },
  41209. 'm7C' : function (k, m, e) {
  41210. return k - m - e;
  41211. },
  41212. 't6n' : 250,
  41213. 'g6n' : 'Play:700:cyrillic-ext,latin,greek,latin-ext,cyrillic',
  41214. 'p2n' : 45,
  41215. 'W6C' : function (k, m) {
  41216. return k * m;
  41217. },
  41218. 'd2C' : function (k, m) {
  41219. return k > m;
  41220. },
  41221. 'Q9n' : 7,
  41222. 'y2C' : function (k, m) {
  41223. return k != m;
  41224. },
  41225. 'h2n' : "player",
  41226. 'e1n' : 100,
  41227. 'm1C' : function (k, m) {
  41228. return k - m;
  41229. },
  41230. 's1n' : 634,
  41231. 'E6C' : function (k, m) {
  41232. return k * m;
  41233. },
  41234. 'j1C' : function (k, m) {
  41235. return k > m;
  41236. },
  41237. 'f0C' : function (k, m) {
  41238. return k / m;
  41239. },
  41240. 'i6C' : function (k, m) {
  41241. return k < m;
  41242. },
  41243. 's2C' : function (k, m) {
  41244. return k > m;
  41245. },
  41246. 'z6n' : "highScoreLine",
  41247. 'i9C' : function (k, m) {
  41248. return k / m;
  41249. },
  41250. 'w5C' : function (k, m) {
  41251. return k < m;
  41252. },
  41253. 'E9C' : function (k, m) {
  41254. return k < m;
  41255. },
  41256. 's0C' : function (k, m) {
  41257. return k != m;
  41258. },
  41259. 'n4C' : function (k, m) {
  41260. return k * m;
  41261. },
  41262. 'p3C' : function (k, m) {
  41263. return k * m;
  41264. },
  41265. 'C2C' : function (k, m) {
  41266. return k < m;
  41267. },
  41268. 'I2C' : function (k, m) {
  41269. return k < m;
  41270. },
  41271. 'P9C' : function (k, m) {
  41272. return k < m;
  41273. },
  41274. 'a1C' : function (k, m) {
  41275. return k < m;
  41276. },
  41277. 'u6C' : function (k, m) {
  41278. return k === m;
  41279. },
  41280. 'v3C' : function (k, m) {
  41281. return k * m;
  41282. },
  41283. 'd3C' : function (k, m) {
  41284. return k != m;
  41285. },
  41286. 'W1C' : function (k, m) {
  41287. return k < m;
  41288. },
  41289. 'I3C' : function (k, m) {
  41290. return k * m;
  41291. },
  41292. 'w9C' : function (k, m) {
  41293. return k != m;
  41294. },
  41295. 'T6n' : "explo",
  41296. 't2C' : function (k, m) {
  41297. return k < m;
  41298. },
  41299. 'W5n' : 400,
  41300. 'Y5C' : function (k, m) {
  41301. return k * m;
  41302. },
  41303. 'W9C' : function (k, m) {
  41304. return k - m;
  41305. },
  41306. 'a7C' : function (k, m) {
  41307. return k != m;
  41308. },
  41309. 'q3C' : function (k, m) {
  41310. return k * m;
  41311. },
  41312. 'E1n' : "connected",
  41313. 'S1n' : "btnHow",
  41314. 'f4C' : function (k, m) {
  41315. return k * m;
  41316. },
  41317. 'C5n' : 17,
  41318. 'K4C' : function (k, m) {
  41319. return k < m;
  41320. },
  41321. 'v2n' : 960,
  41322. 's2n' : "background1",
  41323. 's9C' : function (k, m) {
  41324. return k < m;
  41325. },
  41326. 'K5C' : function (k, m) {
  41327. return k < m;
  41328. },
  41329. 'f7C' : function (k, m) {
  41330. return k / m;
  41331. },
  41332. 'U6n' : "centroA",
  41333. 'C7C' : function (k, m, e) {
  41334. return k * m / e;
  41335. },
  41336. 'y3C' : function (k, m) {
  41337. return k * m;
  41338. },
  41339. 'K7C' : function (k, m, e) {
  41340. return k - m - e;
  41341. },
  41342. 'E1C' : function (k, m) {
  41343. return k * m;
  41344. },
  41345. 'o6n' : "titleMain",
  41346. 'n0C' : function (k, m) {
  41347. return k != m;
  41348. },
  41349. 'u9C' : function (k, m) {
  41350. return k < m;
  41351. },
  41352. 'x1n' : true,
  41353. 'M7C' : function (k, m) {
  41354. return k / m;
  41355. },
  41356. 'v2C' : function (k, m) {
  41357. return k < m;
  41358. },
  41359. 'l5C' : function (k, m) {
  41360. return k - m;
  41361. },
  41362. 'A5C' : function (k, m) {
  41363. return k * m;
  41364. },
  41365. 'T5n' : 4,
  41366. 'C6n' : "more",
  41367. 'b1C' : function (k, m) {
  41368. return k < m;
  41369. },
  41370. 'D1n' : "click",
  41371. 'q2C' : function (k, m) {
  41372. return k * m;
  41373. },
  41374. 'Q9C' : function (k, m) {
  41375. return k % m;
  41376. },
  41377. 'A9C' : function (k, m) {
  41378. return k != m;
  41379. },
  41380. 'Y4C' : function (k, m) {
  41381. return k * m;
  41382. },
  41383. 'R7C' : function (k, m) {
  41384. return k < m;
  41385. },
  41386. 'z2n' : "tuto2",
  41387. 'P2n' : "background2",
  41388. 'm5C' : function (k, m) {
  41389. return k >= m;
  41390. },
  41391. 'J4C' : function (k, m) {
  41392. return k * m;
  41393. },
  41394. 'M9n' : "",
  41395. 'b5n' : 10,
  41396. 'u2n' : "tuto3",
  41397. 'E5C' : function (k, m) {
  41398. return k > m;
  41399. },
  41400. 'X9n' : 2,
  41401. 'c3C' : function (k, m) {
  41402. return k == m;
  41403. },
  41404. 'X4C' : function (k, m) {
  41405. return k * m;
  41406. },
  41407. 'Z0C' : function (k, m, e) {
  41408. return k - m - e;
  41409. },
  41410. 'D9C' : function (k, m) {
  41411. return k > m;
  41412. },
  41413. 'a9C' : function (k, m) {
  41414. return k - m;
  41415. },
  41416. 'L4C' : function (k, m) {
  41417. return k * m;
  41418. },
  41419. 'B5C' : function (k, m) {
  41420. return k < m;
  41421. },
  41422. 'k5n' : 5,
  41423. 'M0C' : function (k, m) {
  41424. return k == m;
  41425. },
  41426. 'g1C' : function (k, m) {
  41427. return k - m;
  41428. },
  41429. 'W5C' : function (k, m) {
  41430. return k - m;
  41431. },
  41432. 'Y9n' : 0,
  41433. 'B5n' : 2000,
  41434. 'C3C' : function (k, m) {
  41435. return k * m;
  41436. },
  41437. 'T3C' : function (k, m) {
  41438. return k * m;
  41439. },
  41440. 'h7C' : function (k, m) {
  41441. return k == m;
  41442. },
  41443. 'x6n' : 900,
  41444. 'f5C' : function (k, m) {
  41445. return k < m;
  41446. },
  41447. 'o2C' : function (k, m) {
  41448. return k - m;
  41449. },
  41450. 'q1C' : function (k, m) {
  41451. return k > m;
  41452. },
  41453. 'o5n' : "title",
  41454. 'Q2C' : function (k, m) {
  41455. return k == m;
  41456. },
  41457. 'W7C' : function (k, m) {
  41458. return k > m;
  41459. },
  41460. 's1C' : function (k, m) {
  41461. return k * m;
  41462. },
  41463. 'Z9C' : function (k, m, e) {
  41464. return k - m - e;
  41465. },
  41466. 'm6C' : function (k, m) {
  41467. return k * m;
  41468. },
  41469. 'J7C' : function (k, m) {
  41470. return k > m;
  41471. },
  41472. 'b9n' : 200,
  41473. 'H4C' : function (k, m) {
  41474. return k * m;
  41475. },
  41476. 'V7C' : function (k, m) {
  41477. return k >= m;
  41478. },
  41479. 'Q3C' : function (k, m) {
  41480. return k != m;
  41481. },
  41482. 'B4C' : function (k, m) {
  41483. return k * m;
  41484. },
  41485. 'U2n' : 300,
  41486. 'r1C' : function (k, m, e) {
  41487. return k * m / e;
  41488. },
  41489. 'c9C' : function (k, m) {
  41490. return k == m;
  41491. },
  41492. 't5n' : "mainSnd",
  41493. 'l9n' : 3,
  41494. 'r6n' : "fondoScoreA",
  41495. 's3C' : function (k, m) {
  41496. return k != m;
  41497. },
  41498. 'g6C' : function (k, m) {
  41499. return k < m;
  41500. },
  41501. 'A1n' : 1000,
  41502. 'w1C' : function (k, m) {
  41503. return k * m;
  41504. },
  41505. 'j3C' : function (k, m) {
  41506. return k != m;
  41507. },
  41508. 'p1C' : function (k, m) {
  41509. return k < m;
  41510. },
  41511. 'q1n' : "currentScoreLine",
  41512. 'j2C' : function (k, m) {
  41513. return k > m;
  41514. },
  41515. 'g9C' : function (k, m) {
  41516. return k * m;
  41517. },
  41518. 'e9C' : function (k, m) {
  41519. return k / m;
  41520. },
  41521. 'Z7C' : function (k, m) {
  41522. return k < m;
  41523. },
  41524. 'x2C' : function (k, m) {
  41525. return k - m;
  41526. },
  41527. 'G4C' : function (k, m) {
  41528. return k * m;
  41529. },
  41530. 'Z1n' : "bgLose",
  41531. 'P6C' : function (k, m) {
  41532. return k < m;
  41533. },
  41534. 'V2n' : 0.5,
  41535. 'S6n' : "spin",
  41536. 'N4C' : function (k, m) {
  41537. return k * m;
  41538. },
  41539. 'N6n' : "LevelManager",
  41540. 'Q1C' : function (k, m) {
  41541. return k > m;
  41542. },
  41543. 'f2n' : "background3",
  41544. 'A6C' : function (k, m) {
  41545. return k / m;
  41546. },
  41547. 'n7C' : function (k, m) {
  41548. return k > m;
  41549. },
  41550. 'o3C' : function (k, m) {
  41551. return k * m;
  41552. },
  41553. 'r6C' : function (k, m) {
  41554. return k < m;
  41555. },
  41556. 'L1n' : "langs",
  41557. 'F7C' : function (k, m) {
  41558. return k < m;
  41559. },
  41560. 'S2C' : function (k, m) {
  41561. return k !== m;
  41562. },
  41563. 'm9C' : function (k, m) {
  41564. return k == m;
  41565. },
  41566. 'H1n' : null,
  41567. 'U2C' : function (k, m) {
  41568. return k * m;
  41569. },
  41570. 'R9n' : "btnBack",
  41571. 'P9n' : "tuto1",
  41572. 'c2C' : function (k, m) {
  41573. return k < m;
  41574. },
  41575. 'l5n' : "btnRetry",
  41576. 'M4C' : function (k, m) {
  41577. return k * m;
  41578. },
  41579. 'U3C' : function (k, m) {
  41580. return k * m;
  41581. },
  41582. 'L2n' : "ingameSnd",
  41583. 'n5C' : function (k, m) {
  41584. return k < m;
  41585. },
  41586. 'e5C' : function (k, m) {
  41587. return k > m;
  41588. },
  41589. 'B9n' : "fondoNegro",
  41590. 'g5C' : function (k, m, e) {
  41591. return k - m - e;
  41592. },
  41593. 'e1C' : function (k, m) {
  41594. return k <= m;
  41595. },
  41596. 'F1n' : "circulo",
  41597. 'O7C' : function (k, m) {
  41598. return k > m;
  41599. },
  41600. 'K1n' : "best",
  41601. 'e6C' : function (k, m) {
  41602. return k * m;
  41603. },
  41604. 'T2C' : function (k, m) {
  41605. return k < m;
  41606. },
  41607. 'w6n' : "fondoScoreB",
  41608. 'A1C' : function (k, m) {
  41609. return k - m;
  41610. },
  41611. 'C1n' : "btnPlay",
  41612. 'k4C' : function (k, m) {
  41613. return k * m;
  41614. },
  41615. 'x3C' : function (k, m) {
  41616. return k * m;
  41617. },
  41618. 'w6C' : function (k, m) {
  41619. return k < m;
  41620. },
  41621. 'a1n' : false,
  41622. 'l2n' : "total",
  41623. 'c2n' : 50,
  41624. 'a5C' : function (k, m) {
  41625. return k - m;
  41626. },
  41627. 's9n' : 1,
  41628. 'c1C' : function (k, m) {
  41629. return k < m;
  41630. },
  41631. 't3C' : function (k, m) {
  41632. return k * m;
  41633. },
  41634. 'n9n' : 150,
  41635. 'F4C' : function (k, m) {
  41636. return k * m;
  41637. },
  41638. 'p2C' : function (k, m) {
  41639. return k * m;
  41640. },
  41641. 'H5n' : "shoot",
  41642. 'a6C' : function (k, m) {
  41643. return k * m;
  41644. },
  41645. 'r9C' : function (k, m) {
  41646. return k * m;
  41647. }
  41648. };
  41649. function startGame() {
  41650. var k = SG.lang,
  41651. m = new oml.Main(k);
  41652. setTimeout("P9G3s[W3s][\'scrollTo\']((1.065E3>(26,84.10E1)?(10.06E2,0):(115,0x173)<=(0x4C,0x106)?(1,\"mpx\"):(20.,41.)),1)", f2P8L.b5n);
  41653. }
  41654. var __extends = this.__extends || function (m, e) {
  41655. var o = function (k) {
  41656. m[q] = k[q];
  41657. };
  41658. function n() {
  41659. this.constructor = m;
  41660. }
  41661. for (var q in e)
  41662. if (e.hasOwnProperty(q))
  41663. o(e);
  41664. n.prototype = e.prototype;
  41665. m.prototype = new n();
  41666. }, oml;
  41667. (function (q) {
  41668. var f = function (k) {
  41669. q.Boot = k;
  41670. },
  41671. j = (function (o) {
  41672. function n() {
  41673. o.apply(this, arguments);
  41674. }
  41675. __extends(n, o);
  41676. n.prototype.preload = function () {
  41677. this.load.image('preloadBar', 'assets/preloadBar.png');
  41678. this.load.image('logoPublisher', 'assets/softgames-logo.jpg');
  41679. this.load.image('rotate', 'assets/rotate.png');
  41680. };
  41681. n.prototype.create = function () {
  41682. var k = 'Preloader';
  41683. var m = "0";
  41684. var e = '#000000';
  41685. this.input.maxPointers = f2P8L.s9n;
  41686. this.stage.disableVisibilityChange = f2P8L.a1n;
  41687. this.game.scale.pageAlignHorizontally = true;
  41688. this.game.scale.pageAlignVertically = true;
  41689. this.game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
  41690. this.game.stage.backgroundColor = e;
  41691. SG_Hooks.setOrientationHandler(n.orientationHandler);
  41692. SG_Hooks.setResizeHandler(n.resizeHandler);
  41693. this.game.scale.refresh();
  41694. this.game.scale.onOrientationChange.add(n.orientationHandler);
  41695. q.Main.storage = q.Main.game.device.localStorage;
  41696. if (q.Main.storage) {
  41697. if (f2P8L.M0C(localStorage.getItem(f2P8L.K1n), f2P8L.H1n)) {
  41698. localStorage.setItem(f2P8L.K1n, m);
  41699. localStorage.setItem(f2P8L.l2n, m);
  41700. } else {
  41701. q.Main.bestScore = parseInt(localStorage.getItem(f2P8L.K1n));
  41702. q.Main.totalScore = parseInt(localStorage.getItem(f2P8L.l2n));
  41703. }
  41704. }
  41705. this.game.state.start(k, f2P8L.x1n, f2P8L.a1n);
  41706. };
  41707. n.orientationHandler = function () {
  41708. if (q.Main.game.scale.screenOrientation.indexOf("landscape") != -1 && !q.Main.game.device.desktop) {
  41709. n.rotateImg = q.Main.game.add.sprite(317, 480, 'rotate');
  41710. n.rotateImg.anchor.set(0.5, 0.5);
  41711. } else if (f2P8L.n0C(n.rotateImg, null)) {
  41712. n.rotateImg.destroy(true);
  41713. n.rotateImg = null;
  41714. }
  41715. };
  41716. n.resizeHandler = function () {
  41717. q.Main.game.scale.refresh();
  41718. };
  41719. return n;
  41720. })(Phaser.State);
  41721. f(j);
  41722. })(oml || (oml = {}));
  41723. var oml;
  41724. (function (w0) {
  41725. var g0 = function (k) {
  41726. w0.LevelManager = k;
  41727. },
  41728. H0 = (function (S0) {
  41729. var I0 = 800;
  41730. var m0 = 15;
  41731. var A0 = 34;
  41732. var L0 = 13;
  41733. var z0 = 500;
  41734. var E0 = 60;
  41735. var v0 = 980;
  41736. var J0 = 1200;
  41737. function t0(k) {
  41738. S0.call(this);
  41739. this.currentTrail = f2P8L.s9n;
  41740. this.shakeWorld = -f2P8L.s9n;
  41741. }
  41742. __extends(t0, S0);
  41743. t0.prototype.create = function () {
  41744. var k = 80;
  41745. var m = '0';
  41746. var e = "font";
  41747. var o = "totalScore";
  41748. var n = "bestScore";
  41749. var q = 'rgba(255,232,154,1)';
  41750. var f = "moreGames";
  41751. var j = ((0x1C7, 82.4E1) >= 0x12E ? (6.34E2, 810) : (131, 9.23E2) <= 26.5E1 ? (0x15F, 'o') : (0x22, 0x1FB));
  41752. var U0 = 620;
  41753. var k0 = 25;
  41754. var a0 = 75;
  41755. var T0 = 525;
  41756. var G0 = 107;
  41757. var W0 = (76. >= (0x18A, 17) ? (0xE2, 3000) : (19., 65.0E1));
  41758. var N0 = 696;
  41759. this.arrLines = new Array();
  41760. this.xmlLang = this.game.cache.getXML(f2P8L.L1n);
  41761. this.click = this.game.add.audio(f2P8L.D1n, f2P8L.s9n, f2P8L.a1n);
  41762. this.spin = this.game.add.audio(f2P8L.S6n, f2P8L.s9n, f2P8L.a1n);
  41763. this.ingameSnd = this.game.add.audio(f2P8L.L2n, f2P8L.V2n, f2P8L.x1n);
  41764. this.mainSnd = this.game.add.audio(f2P8L.t5n, f2P8L.V2n, f2P8L.x1n);
  41765. this.container = this.game.add.sprite(f2P8L.f0C(f2P8L.s1n, f2P8L.X9n), f2P8L.Y9n);
  41766. this.container.anchor.set(f2P8L.V2n, f2P8L.Y9n);
  41767. this.floorA = this.game.add.tileSprite(f2P8L.Y9n, f2P8L.Y9n, J0, f2P8L.v2n, f2P8L.s2n);
  41768. this.floorA.anchor.set(f2P8L.V2n, f2P8L.Y9n);
  41769. this.container.addChild(this.floorA);
  41770. this.floorB = this.game.add.tileSprite(f2P8L.Y9n, f2P8L.Y9n, N0, f2P8L.v2n, f2P8L.P2n);
  41771. this.floorB.anchor.set(f2P8L.V2n, f2P8L.Y9n);
  41772. this.container.addChild(this.floorB);
  41773. this.floorC = this.game.add.tileSprite(f2P8L.Y9n, f2P8L.Y9n, N0, f2P8L.v2n, f2P8L.f2n);
  41774. this.floorC.anchor.set(f2P8L.V2n, f2P8L.Y9n);
  41775. this.container.addChild(this.floorC);
  41776. this.hScoreLine = this.game.add.sprite(f2P8L.Y9n, W0, f2P8L.z6n);
  41777. this.hScoreLine.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41778. this.cScoreLine = this.game.add.sprite(f2P8L.Y9n, W0, f2P8L.q1n);
  41779. this.cScoreLine.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41780. this.OM = new w0.orbManager(this.game);
  41781. this.OM.addChild(this.hScoreLine);
  41782. this.OM.addChild(this.cScoreLine);
  41783. this.trailContainer = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n);
  41784. this.container.addChild(this.trailContainer);
  41785. this.trailRect = this.game.add.graphics(f2P8L.Y9n, f2P8L.Y9n);
  41786. this.trailContainer.addChild(this.trailRect);
  41787. this.trailPoint1 = new Phaser.Point(f2P8L.C5n, f2P8L.B5n);
  41788. this.trailPoint2 = new Phaser.Point(f2P8L.Y9n, f2P8L.B5n);
  41789. this.trailPoint3 = new Phaser.Point(-f2P8L.C5n, f2P8L.B5n);
  41790. this.shot = new w0.Shot(this.game);
  41791. this.player = this.game.add.sprite(f2P8L.Y9n, f2P8L.K0C(v0, f2P8L.X9n, f2P8L.l9n), f2P8L.h2n);
  41792. this.player.anchor.setTo(f2P8L.V2n, f2P8L.V2n);
  41793. this.container.addChild(this.player);
  41794. this.game.input.onDown.add(this.shotPlayer, this);
  41795. this.game.input.onUp.add(this.endShotPlayer, this);
  41796. this.shot.setVars(this.player, this.OM, this.container, this.floorB, this.floorC);
  41797. this.OM.setVars(this.player, this.container);
  41798. this.emitter = this.game.add.emitter(f2P8L.Y9n, f2P8L.Y9n, f2P8L.Y9n);
  41799. this.emitter.makeParticles(f2P8L.T6n);
  41800. this.emitter.setRotation(f2P8L.Y9n, E0);
  41801. this.emitter.setScale(f2P8L.V2n, f2P8L.s9n);
  41802. this.emitter.gravity = f2P8L.Y9n;
  41803. this.emitter.maxParticles = z0;
  41804. this.emitter.maxParticleSpeed = new Phaser.Point(z0, z0);
  41805. this.emitter.minParticleSpeed = new Phaser.Point(-z0, -z0);
  41806. this.container.addChild(this.emitter);
  41807. this.fondoNegro = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n, f2P8L.B9n);
  41808. this.fondoNegro.width = 634;
  41809. this.fondoNegro.height = 960;
  41810. this.bgLose = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n, f2P8L.Z1n);
  41811. this.bgLose.anchor.set(f2P8L.V2n, f2P8L.Y9n);
  41812. this.bgLose.height = 960;
  41813. this.bgLose.kill();
  41814. this.container.addChild(this.bgLose);
  41815. this.btnBack = this.game.add.button(G0, f2P8L.v2n, f2P8L.R9n, this.showMain, this);
  41816. this.btnBack.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41817. this.btnBack.input.useHandCursor = f2P8L.x1n;
  41818. this.btnRetry = this.game.add.button(T0, f2P8L.v2n, f2P8L.l5n, this.restart, this);
  41819. this.btnRetry.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41820. this.btnRetry.input.useHandCursor = f2P8L.x1n;
  41821. this.logo = this.game.add.sprite(a0, k0, f2P8L.o5n);
  41822. this.logo.anchor.set(f2P8L.Y9n, f2P8L.Y9n);
  41823. this.fondoBest = this.game.add.sprite(f2P8L.A5n, U0, f2P8L.w6n);
  41824. this.fondoBest.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41825. this.fondoTotal = this.game.add.button(f2P8L.A5n, j, f2P8L.C6n, this.moreGames, this);
  41826. this.fondoTotal.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41827. this.fondoTotal.input.useHandCursor = f2P8L.x1n;
  41828. this.fondoScore = this.game.add.sprite(f2P8L.A5n, T0, f2P8L.r6n);
  41829. this.fondoScore.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41830. this.txtMoreGames = this.game.add.text(0, -45, "MORE GAMES", {
  41831. font : "60px Play",
  41832. fill : "#ffffff"
  41833. });
  41834. this.txtMoreGames.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41835. this.txtMoreGames.text = String(this.xmlLang.getElementById(w0.Main.lang).getElementsByTagName(f)[f2P8L.Y9n].textContent).toUpperCase();
  41836. this.txtMoreGames.setShadow(f2P8L.Y9n, f2P8L.Y9n, q, L0);
  41837. this.fondoTotal.addChild(this.txtMoreGames);
  41838. this.score = this.game.add.text(317, 520, "256", {
  41839. font : "100px Play",
  41840. fill : "#ffffff"
  41841. });
  41842. this.score.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41843. this.best = this.game.add.text(187, 600, "512", {
  41844. font : "50px Play",
  41845. fill : "#ffffff"
  41846. });
  41847. this.best.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41848. this.total = this.game.add.text(437, 600, "999", {
  41849. font : "50px Play",
  41850. fill : "#ffffff"
  41851. });
  41852. this.total.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41853. this.bestTitle = this.game.add.text(187, 640, "BEST", {
  41854. font : "40px Play",
  41855. fill : "#ffffff"
  41856. });
  41857. this.bestTitle.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41858. this.bestTitle.text = String(this.xmlLang.getElementById(w0.Main.lang).getElementsByTagName(n)[f2P8L.Y9n].textContent).toUpperCase();
  41859. this.totalTitle = this.game.add.text(437, 640, "TOTAL", {
  41860. font : "40px Play",
  41861. fill : "#ffffff"
  41862. });
  41863. this.totalTitle.anchor.set(f2P8L.V2n, f2P8L.V2n);
  41864. this.totalTitle.text = String(this.xmlLang.getElementById(w0.Main.lang).getElementsByTagName(o)[f2P8L.Y9n].textContent).toUpperCase();
  41865. this.currentscoreText = this.game.add.bitmapText(A0, m0, e, m, k);
  41866. this.currentscoreText.x = f2P8L.Z0C(this.game.width, this.currentscoreText.textWidth, 34);
  41867. this.logoMain = this.game.add.sprite(f2P8L.Y9n, f2P8L.c2n, f2P8L.o6n);
  41868. this.logoMain.anchor.set(f2P8L.Y9n, f2P8L.Y9n);
  41869. this.btnPlay = this.game.add.button(G0, f2P8L.v2n, f2P8L.C1n, this.restart, this);
  41870. this.btnPlay.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41871. this.btnPlay.input.useHandCursor = f2P8L.x1n;
  41872. this.btnHowToPlay = this.game.add.button(f2P8L.A5n, f2P8L.v2n, f2P8L.S1n, this.howToPlay, this);
  41873. this.btnHowToPlay.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41874. this.btnHowToPlay.input.useHandCursor = f2P8L.x1n;
  41875. this.btnMoreGames = this.game.add.button(f2P8L.A5n, j, f2P8L.C6n, this.moreGames, this);
  41876. this.btnMoreGames.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41877. this.btnMoreGames.input.useHandCursor = f2P8L.x1n;
  41878. this.txtMoreGames = this.game.add.text(0, -45, "MORE GAMES", {
  41879. font : "60px Play",
  41880. fill : "#ffffff"
  41881. });
  41882. this.txtMoreGames.anchor.set(f2P8L.V2n, f2P8L.s9n);
  41883. this.txtMoreGames.text = String(this.xmlLang.getElementById(w0.Main.lang).getElementsByTagName(f)[f2P8L.Y9n].textContent).toUpperCase();
  41884. this.btnMoreGames.addChild(this.txtMoreGames);
  41885. this.txtMoreGames.setShadow(f2P8L.Y9n, f2P8L.Y9n, q, L0);
  41886. this.tutoManager = new w0.tutorial(this.game, this.xmlLang);
  41887. this.showMain(f2P8L.a1n);
  41888. w0.Boot.orientationHandler();
  41889. };
  41890. t0.prototype.moreGames = function () {
  41891. if (f2P8L.c0C(w0.Boot.rotateImg, f2P8L.H1n)) {
  41892. return;
  41893. }
  41894. SG.redirectToPortal();
  41895. };
  41896. t0.prototype.howToPlay = function () {
  41897. if (f2P8L.s0C(w0.Boot.rotateImg, f2P8L.H1n)) {
  41898. return;
  41899. }
  41900. this.tutoManager.showTuto();
  41901. };
  41902. t0.prototype.mute = function () {
  41903. var k = 'this: ';
  41904. console.log(k + this.name);
  41905. console.log(k + this.toString());
  41906. if (f2P8L.Q0C(w0.Boot.rotateImg, f2P8L.H1n)) {
  41907. return;
  41908. }
  41909. w0.Main.musicOff = !w0.Main.musicOff;
  41910. if (w0.Main.musicOff) {
  41911. this.ingameSnd.stop();
  41912. this.mainSnd.stop();
  41913. } else if (w0.Main.inGame) {}
  41914. else {}
  41915. };
  41916. t0.prototype.showMain = function (k) {
  41917. var m = 750;
  41918. var e = 1100;
  41919. var o = 0.4;
  41920. if (k === void f2P8L.Y9n) {
  41921. k = f2P8L.x1n;
  41922. }
  41923. this.emitter.destroy();
  41924. this.trailContainer.x = f2P8L.Y9n;
  41925. this.trailContainer.y = f2P8L.Y9n;
  41926. if (!w0.Main.musicOff) {
  41927. if (k) {}
  41928. if (!this.mainSnd.isPlaying) {}
  41929. }
  41930. this.floorB.visible = f2P8L.a1n;
  41931. this.floorC.visible = f2P8L.x1n;
  41932. this.container.scale.x = 1;
  41933. this.container.scale.y = 1;
  41934. this.fondoBest.kill();
  41935. this.fondoTotal.kill();
  41936. this.fondoScore.kill();
  41937. this.btnBack.kill();
  41938. this.btnRetry.kill();
  41939. this.logo.kill();
  41940. this.currentscoreText.visible = f2P8L.a1n;
  41941. this.score.visible = f2P8L.a1n;
  41942. this.best.visible = f2P8L.a1n;
  41943. this.total.visible = f2P8L.a1n;
  41944. this.bestTitle.visible = f2P8L.a1n;
  41945. this.totalTitle.visible = f2P8L.a1n;
  41946. this.cScoreLine.kill();
  41947. this.logoMain.visible = f2P8L.x1n;
  41948. this.btnPlay.visible = f2P8L.x1n;
  41949. this.btnHowToPlay.visible = f2P8L.x1n;
  41950. this.btnMoreGames.visible = f2P8L.x1n;
  41951. this.fondoNegro.visible = f2P8L.x1n;
  41952. this.game.tweens.removeFrom(this.fondoNegro);
  41953. this.fondoNegro.alpha = o;
  41954. this.game.add.tween(this.fondoNegro).from({
  41955. alpha : f2P8L.Y9n
  41956. }, I0, Phaser.Easing.Linear.None).delay(z0).start();
  41957. w0.Main.lose = f2P8L.a1n;
  41958. w0.Main.onMain = f2P8L.x1n;
  41959. this.player.visible = f2P8L.x1n;
  41960. this.floorA.x = f2P8L.Y9n;
  41961. this.floorB.x = f2P8L.Y9n;
  41962. this.floorC.x = f2P8L.Y9n;
  41963. this.player.rotation = f2P8L.Y9n;
  41964. this.trailRect.clear();
  41965. this.trailPoint1.y = this.trailPoint2.y = this.trailPoint3.y = f2P8L.B5n;
  41966. this.trailPoint1.x = f2P8L.C5n;
  41967. this.trailPoint2.x = f2P8L.Y9n;
  41968. this.trailPoint3.x = -f2P8L.C5n;
  41969. w0.Main.speedX = f2P8L.Y9n;
  41970. w0.Main.speedY = w0.Main.speed;
  41971. this.OM.hideAll();
  41972. this.game.add.tween(this.player).from({
  41973. y : e
  41974. }, z0, Phaser.Easing.Linear.None).delay(z0).start();
  41975. this.game.add.tween(this.logoMain).from({
  41976. y : z0
  41977. }, f2P8L.A1n, Phaser.Easing.Cubic.Out, f2P8L.x1n);
  41978. this.game.add.tween(this.btnPlay).from({
  41979. y : J0
  41980. }, z0, Phaser.Easing.Cubic.Out, f2P8L.x1n);
  41981. this.game.add.tween(this.btnHowToPlay).from({
  41982. y : J0
  41983. }, m, Phaser.Easing.Cubic.Out, f2P8L.x1n);
  41984. this.game.add.tween(this.btnMoreGames.scale).from({
  41985. y : 0
  41986. }, 300, Phaser.Easing.Cubic.In).delay(750).start();
  41987. w0.Main.inGame = f2P8L.a1n;
  41988. this.shot.endRemoveLine();
  41989. };
  41990. t0.prototype.restart = function () {
  41991. if (f2P8L.a7C(w0.Boot.rotateImg, f2P8L.H1n)) {
  41992. return;
  41993. }
  41994. SG_Hooks.start();
  41995. this.arrLines.splice(0, this.arrLines.length);
  41996. this.numLines = f2P8L.Y9n;
  41997. if (f2P8L.W7C(w0.Main.bestScore, f2P8L.Y9n)) {
  41998. this.hScoreLine.y = -w0.Main.bestScore * w0.Main.speed * 13 + this.player.y;
  41999. }
  42000. this.emitter.destroy();
  42001. this.maxY = f2P8L.Y9n;
  42002. this.cScoreLine.kill();
  42003. this.trailContainer.x = f2P8L.Y9n;
  42004. this.trailContainer.y = f2P8L.Y9n;
  42005. if (!w0.Main.musicOff) { ;
  42006. }
  42007. this.floorA.height = 960;
  42008. this.floorB.height = 960;
  42009. this.floorC.height = 960;
  42010. this.bgLose.height = 960;
  42011. w0.Main.inGame = f2P8L.x1n;
  42012. this.floorB.visible = f2P8L.a1n;
  42013. this.floorC.visible = f2P8L.x1n;
  42014. this.currentscoreText.visible = f2P8L.x1n;
  42015. this.currentScore = f2P8L.Y9n;
  42016. this.currentscoreText.text = this.currentScore.toString();
  42017. this.currentscoreText.x = f2P8L.m7C(this.game.width, this.currentscoreText.textWidth, 34);
  42018. this.container.scale.x = 1;
  42019. this.container.scale.y = 1;
  42020. this.fondoBest.kill();
  42021. this.fondoTotal.kill();
  42022. this.fondoScore.kill();
  42023. this.game.tweens.removeFrom(this.player);
  42024. this.player.y = f2P8L.C7C(v0, f2P8L.X9n, f2P8L.l9n);
  42025. this.floorA.x = f2P8L.Y9n;
  42026. this.floorB.x = f2P8L.Y9n;
  42027. this.floorC.x = f2P8L.Y9n;
  42028. this.player.rotation = f2P8L.Y9n;
  42029. w0.Main.speedX = f2P8L.Y9n;
  42030. w0.Main.speedY = w0.Main.speed;
  42031. this.trailRect.clear();
  42032. this.trailPoint1.y = this.trailPoint2.y = this.trailPoint3.y = f2P8L.B5n;
  42033. this.trailPoint1.x = f2P8L.C5n;
  42034. this.trailPoint2.x = f2P8L.Y9n;
  42035. this.trailPoint3.x = -f2P8L.C5n;
  42036. this.bgLose.kill();
  42037. this.player.visible = f2P8L.x1n;
  42038. this.shot.restart();
  42039. this.OM.restart();
  42040. this.btnBack.kill();
  42041. this.btnRetry.kill();
  42042. this.logo.kill();
  42043. this.score.visible = f2P8L.a1n;
  42044. this.best.visible = f2P8L.a1n;
  42045. this.total.visible = f2P8L.a1n;
  42046. this.bestTitle.visible = f2P8L.a1n;
  42047. this.totalTitle.visible = f2P8L.a1n;
  42048. w0.Main.lose = f2P8L.a1n;
  42049. w0.Main.onMain = f2P8L.a1n;
  42050. w0.Main.anclado = f2P8L.a1n;
  42051. this.logoMain.kill();
  42052. this.btnPlay.kill();
  42053. this.btnHowToPlay.kill();
  42054. this.btnMoreGames.kill();
  42055. this.fondoNegro.kill();
  42056. if (w0.Main.firstPlay) {
  42057. this.tutoManager.showTuto();
  42058. }
  42059. };
  42060. t0.prototype.Lose = function () {
  42061. var k = 5000;
  42062. if (!w0.Main.musicOff) {
  42063. this.mainSnd.stop();
  42064. this.ingameSnd.stop();
  42065. }
  42066. this.cScoreLine.y = -this.maxY * w0.Main.speed * 13 + this.player.y;
  42067. this.cScoreLine.visible = f2P8L.x1n;
  42068. this.floorA.height = 1920;
  42069. this.floorB.height = 1920;
  42070. this.floorC.height = 1920;
  42071. this.bgLose.height = 1920;
  42072. w0.Main.inGame = f2P8L.a1n;
  42073. this.emitter = this.game.add.emitter(this.player.x, this.player.y, f2P8L.Y9n);
  42074. this.emitter.makeParticles(f2P8L.T6n);
  42075. this.emitter.setRotation(f2P8L.Y9n, E0);
  42076. this.emitter.setScale(f2P8L.V2n, f2P8L.s9n);
  42077. this.emitter.gravity = f2P8L.Y9n;
  42078. this.emitter.maxParticleSpeed = new Phaser.Point(z0, z0);
  42079. this.emitter.minParticleSpeed = new Phaser.Point(-z0, -z0);
  42080. this.container.addChild(this.emitter);
  42081. this.emitter.start(f2P8L.x1n, k, f2P8L.H1n, f2P8L.n9n);
  42082. this.endShotPlayer();
  42083. w0.Main.lose = f2P8L.x1n;
  42084. this.OM.enterFrame();
  42085. this.player.kill();
  42086. this.shot.endRemoveLine();
  42087. this.bgLose.visible = f2P8L.x1n;
  42088. this.bgLose.alpha = f2P8L.Y9n;
  42089. this.bgLose.x = this.floorA.x;
  42090. this.game.tweens.removeFrom(this.bgLose);
  42091. this.game.add.tween(this.cScoreLine).from({
  42092. alpha : f2P8L.Y9n
  42093. }, f2P8L.b9n, Phaser.Easing.Linear.None, f2P8L.x1n);
  42094. this.game.add.tween(this.bgLose).to({
  42095. alpha : f2P8L.s9n
  42096. }, f2P8L.e1n, Phaser.Easing.Cubic.Out, f2P8L.x1n);
  42097. this.game.add.tween(this.bgLose).to({
  42098. alpha : f2P8L.Y9n
  42099. }, f2P8L.U2n, Phaser.Easing.Cubic.Out).delay(f2P8L.n9n).start(); ;
  42100. this.game.add.tween(this.container.scale).to({
  42101. x : 0.5,
  42102. y : 0.5
  42103. }, 500, Phaser.Easing.Linear.None).delay(1500).start().onComplete.add(this.removeBgLose, this);
  42104. this.shakeWorld = f2P8L.e1n;
  42105. };
  42106. t0.prototype.removeBgLose = function () {
  42107. var k = 450;
  42108. var m = 0.7;
  42109. SG_Hooks.gameOver(f2P8L.s9n, this.currentScore);
  42110. this.fondoNegro.visible = f2P8L.x1n;
  42111. this.game.tweens.removeFrom(this.fondoNegro);
  42112. this.fondoNegro.alpha = m;
  42113. this.game.add.tween(this.fondoNegro).from({
  42114. alpha : f2P8L.Y9n
  42115. }, I0, Phaser.Easing.Linear.None).delay(z0).start();
  42116. this.btnBack.visible = f2P8L.x1n;
  42117. this.btnRetry.visible = f2P8L.x1n;
  42118. this.logo.visible = f2P8L.x1n;
  42119. this.score.visible = f2P8L.x1n;
  42120. this.best.visible = f2P8L.x1n;
  42121. this.total.visible = f2P8L.x1n;
  42122. this.bestTitle.visible = f2P8L.x1n;
  42123. this.totalTitle.visible = f2P8L.x1n;
  42124. w0.Main.totalScore += this.currentScore;
  42125. if (f2P8L.J7C(this.currentScore, w0.Main.bestScore)) {
  42126. w0.Main.bestScore = this.currentScore;
  42127. }
  42128. if (w0.Main.storage) {
  42129. localStorage.setItem(f2P8L.K1n, w0.Main.bestScore.toString());
  42130. localStorage.setItem(f2P8L.l2n, w0.Main.totalScore.toString());
  42131. }
  42132. this.score.text = this.currentScore.toString();
  42133. this.best.text = w0.Main.bestScore.toString();
  42134. this.total.text = w0.Main.totalScore.toString();
  42135. this.game.add.tween(this.score).from({
  42136. alpha : f2P8L.Y9n
  42137. }, f2P8L.e1n, Phaser.Easing.Bounce.Out).delay(k).start();
  42138. this.game.add.tween(this.best).from({
  42139. alpha : f2P8L.Y9n
  42140. }, f2P8L.e1n, Phaser.Easing.Cubic.Out).delay(k).start();
  42141. this.game.add.tween(this.total).from({
  42142. alpha : f2P8L.Y9n
  42143. }, f2P8L.e1n, Phaser.Easing.Bounce.Out).delay(k).start();
  42144. this.game.add.tween(this.totalTitle).from({
  42145. alpha : f2P8L.Y9n
  42146. }, f2P8L.e1n, Phaser.Easing.Bounce.Out).delay(k).start();
  42147. this.game.add.tween(this.bestTitle).from({
  42148. alpha : f2P8L.Y9n
  42149. }, f2P8L.e1n, Phaser.Easing.Cubic.Out).delay(k).start();
  42150. this.game.add.tween(this.logo).from({
  42151. y : -z0
  42152. }, f2P8L.A1n, Phaser.Easing.Bounce.Out).delay(f2P8L.b9n).start();
  42153. this.game.add.tween(this.btnBack).from({
  42154. y : J0
  42155. }, z0, Phaser.Easing.Cubic.Out).delay(f2P8L.b9n).start();
  42156. this.game.add.tween(this.btnRetry).from({
  42157. y : J0
  42158. }, f2P8L.A1n, Phaser.Easing.Cubic.Out).delay(f2P8L.b9n).start();
  42159. this.fondoBest.visible = f2P8L.x1n;
  42160. this.fondoTotal.visible = f2P8L.x1n;
  42161. this.fondoScore.visible = f2P8L.x1n;
  42162. this.game.add.tween(this.fondoBest.scale).from({
  42163. y : 0
  42164. }, 300, Phaser.Easing.Cubic.In).delay(200).start();
  42165. this.game.add.tween(this.fondoTotal.scale).from({
  42166. y : 0
  42167. }, 300, Phaser.Easing.Cubic.In).delay(200).start();
  42168. this.game.add.tween(this.fondoScore.scale).from({
  42169. y : 0
  42170. }, 300, Phaser.Easing.Cubic.In).delay(200).start();
  42171. setTimeout(this.playMain, f2P8L.x6n, this);
  42172. };
  42173. t0.prototype.playMain = function (k) {
  42174. if (!w0.Main.musicOff && w0.Main.lose) {}
  42175. };
  42176. t0.prototype.update = function () {
  42177. if (f2P8L.H7C(this.shakeWorld, 0)) {
  42178. var k = this.game.rnd.integerInRange(-10, 10);
  42179. var m = this.game.rnd.integerInRange(-10, 10);
  42180. this.game.world.setBounds(k, m, this.game.width + k, this.game.height + m);
  42181. this.shakeWorld--;
  42182. if (f2P8L.h7C(this.shakeWorld, 0)) {
  42183. this.game.world.setBounds(0, 0, this.game.width, this.game.height);
  42184. }
  42185. }
  42186. if (w0.Main.lose) {
  42187. return;
  42188. }
  42189. if (this.tutoManager.visible) {
  42190. return;
  42191. }
  42192. if (f2P8L.F7C(this.maxY, this.OM.y / (w0.Main.speed * 13))) {
  42193. this.maxY = f2P8L.M7C(this.OM.y, (w0.Main.speed * 13));
  42194. if (f2P8L.n7C(Math.floor(this.maxY), this.currentScore)) {
  42195. this.currentScore = Math.floor(f2P8L.f7C(this.OM.y, (w0.Main.speed * 13)));
  42196. this.currentscoreText.text = this.currentScore.toString();
  42197. this.currentscoreText.x = f2P8L.K7C(this.game.width, this.currentscoreText.textWidth, 34);
  42198. }
  42199. }
  42200. if (f2P8L.Z7C(this.ingameSnd.volume, 1) && w0.Main.inGame) {
  42201. this.ingameSnd.volume += 0.02;
  42202. this.mainSnd.volume -= 0.02;
  42203. } else if (w0.Main.inGame) {
  42204. this.ingameSnd.volume = 1;
  42205. this.mainSnd.stop();
  42206. }
  42207. this.floorA.x += w0.Main.speedX;
  42208. this.floorA.tilePosition.y += w0.Main.speedY;
  42209. this.floorB.x += w0.Main.speedX;
  42210. this.floorB.tilePosition.y += w0.Main.speedY;
  42211. this.floorC.x += w0.Main.speedX;
  42212. this.floorC.tilePosition.y += w0.Main.speedY;
  42213. this.moveTrail();
  42214. if (f2P8L.R7C(this.trailContainer.y, 0)) {
  42215. w0.Main.lose = true;
  42216. }
  42217. this.OM.enterFrame();
  42218. this.shot.enterFrame();
  42219. if (w0.Main.lose) {
  42220. w0.Main.lose = false;
  42221. this.Lose();
  42222. return;
  42223. }
  42224. if (!w0.Main.anclado) {
  42225. if (this.floorA.x < -310 || f2P8L.O7C(this.floorA.x, 310)) {
  42226. this.Lose();
  42227. return;
  42228. }
  42229. }
  42230. };
  42231. t0.prototype.moveTrail = function () {
  42232. if (w0.Main.inGame) {
  42233. this.trailContainer.x += w0.Main.speedX;
  42234. this.trailContainer.y += w0.Main.speedY;
  42235. }
  42236. this.seti(f2P8L.Y9n, f2P8L.C5n, f2P8L.s9n);
  42237. this.seti(f2P8L.s9n, f2P8L.Y9n, f2P8L.X9n);
  42238. this.seti(f2P8L.X9n, -f2P8L.C5n, f2P8L.l9n);
  42239. this.numLines += f2P8L.s9n;
  42240. if (f2P8L.V7C(this.numLines, f2P8L.n9n)) {
  42241. this.trailRect.clear();
  42242. this.drawLines();
  42243. this.arrLines.splice(f2P8L.Y9n, f2P8L.l9n);
  42244. this.numLines -= f2P8L.l9n;
  42245. }
  42246. };
  42247. t0.prototype.drawLines = function () {
  42248. if (w0.Main.inGame) {
  42249. var k;
  42250. k = 17;
  42251. this.trailPoint1.x = this.arrLines[0].x + f2P8L.k4C(k, Math.cos(this.arrLines[0].rotation)) - f2P8L.G4C(15, Math.sin(this.arrLines[0].rotation));
  42252. this.trailPoint1.y = this.arrLines[0].y + f2P8L.N4C(k, Math.sin(this.arrLines[0].rotation)) + f2P8L.L4C(15, Math.cos(this.arrLines[0].rotation));
  42253. k = 0;
  42254. this.trailPoint2.x = this.arrLines[0].x + f2P8L.z4C(k, Math.cos(this.arrLines[0].rotation)) - f2P8L.J4C(15, Math.sin(this.arrLines[0].rotation));
  42255. this.trailPoint2.y = this.arrLines[0].y + f2P8L.H4C(k, Math.sin(this.arrLines[0].rotation)) + f2P8L.h4C(15, Math.cos(this.arrLines[0].rotation));
  42256. k = -17;
  42257. this.trailPoint3.x = this.arrLines[0].x + f2P8L.F4C(k, Math.cos(this.arrLines[0].rotation)) - f2P8L.M4C(15, Math.sin(this.arrLines[0].rotation));
  42258. this.trailPoint3.y = this.arrLines[0].y + f2P8L.n4C(k, Math.sin(this.arrLines[0].rotation)) + f2P8L.f4C(15, Math.cos(this.arrLines[0].rotation));
  42259. for (var m = 1; f2P8L.K4C(m, this.arrLines.length); m++) {
  42260. k = 17;
  42261. var e = this.arrLines[m].x + f2P8L.B4C(k, Math.cos(this.arrLines[m].rotation)) - f2P8L.l4C(15, Math.sin(this.arrLines[m].rotation));
  42262. var o = this.arrLines[m].y + f2P8L.X4C(k, Math.sin(this.arrLines[m].rotation)) + f2P8L.Y4C(15, Math.cos(this.arrLines[m].rotation));
  42263. this.trailRect.moveTo(this.trailPoint1.x, this.trailPoint1.y);
  42264. this.trailRect.lineStyle(10, 0xd980ff, 1);
  42265. this.trailRect.lineTo(e, o);
  42266. this.trailPoint1.x = e;
  42267. this.trailPoint1.y = o;
  42268. k = 0;
  42269. var e = this.arrLines[m].x + f2P8L.U3C(k, Math.cos(this.arrLines[m].rotation)) - f2P8L.T3C(15, Math.sin(this.arrLines[m].rotation));
  42270. var o = this.arrLines[m].y + f2P8L.S3C(k, Math.sin(this.arrLines[m].rotation)) + f2P8L.I3C(15, Math.cos(this.arrLines[m].rotation));
  42271. this.trailRect.moveTo(this.trailPoint2.x, this.trailPoint2.y);
  42272. this.trailRect.lineStyle(10, 0x79FFF8, 1);
  42273. this.trailRect.lineTo(e, o);
  42274. this.trailPoint2.x = e;
  42275. this.trailPoint2.y = o;
  42276. k = -17;
  42277. var e = this.arrLines[m].x + f2P8L.C3C(k, Math.cos(this.arrLines[m].rotation)) - f2P8L.v3C(15, Math.sin(this.arrLines[m].rotation));
  42278. var o = this.arrLines[m].y + f2P8L.t3C(k, Math.sin(this.arrLines[m].rotation)) + f2P8L.y3C(15, Math.cos(this.arrLines[m].rotation));
  42279. this.trailRect.moveTo(this.trailPoint3.x, this.trailPoint3.y);
  42280. this.trailRect.lineStyle(10, 0xd980ff, 1);
  42281. this.trailRect.lineTo(e, o);
  42282. this.trailPoint3.x = e;
  42283. this.trailPoint3.y = o;
  42284. }
  42285. }
  42286. };
  42287. t0.prototype.seti = function (k, m, e) {
  42288. var o = this.player.x + f2P8L.o3C(m, Math.cos(this.player.rotation)) - f2P8L.x3C(m0, Math.sin(this.player.rotation)) - this.trailContainer.x;
  42289. var n = this.player.y + f2P8L.p3C(m, Math.sin(this.player.rotation)) + f2P8L.q3C(m0, Math.cos(this.player.rotation)) - this.trailContainer.y;
  42290. if (f2P8L.b3C(e, f2P8L.s9n)) {
  42291. if (f2P8L.j3C(o, this.trailPoint1.x) || f2P8L.d3C(n, this.trailPoint1.y)) {
  42292. this.trailRect.moveTo(this.trailPoint1.x, this.trailPoint1.y);
  42293. this.trailRect.lineStyle(f2P8L.b5n, ((0x101, 18.7E1) >= 148 ? (88.9E1, 0xd980ff) : (0x15E, 10.0E2) >= (0x1A3, 13.81E2) ? (13, 41.2E1) : 48. > (127., 0x6E) ? (132, 18) : (141.6E1, 6.43E2)), f2P8L.s9n);
  42294. this.trailRect.lineTo(o, n);
  42295. this.trailPoint1.x = o;
  42296. this.trailPoint1.y = n;
  42297. }
  42298. } else if (f2P8L.c3C(e, f2P8L.X9n)) {
  42299. if (f2P8L.s3C(o, this.trailPoint2.x) || f2P8L.Q3C(n, this.trailPoint2.y)) {
  42300. this.arrLines[this.numLines] = new utils.point3(f2P8L.a9C(this.player.x, this.trailContainer.x), f2P8L.W9C(this.player.y, this.trailContainer.y), this.player.rotation);
  42301. this.trailRect.moveTo(this.trailPoint2.x, this.trailPoint2.y);
  42302. this.trailRect.lineStyle(f2P8L.b5n, 0x79FFF8, f2P8L.s9n);
  42303. this.trailRect.lineTo(o, n);
  42304. this.trailPoint2.x = o;
  42305. this.trailPoint2.y = n;
  42306. }
  42307. } else if (f2P8L.m9C(e, f2P8L.l9n)) {
  42308. if (f2P8L.A9C(o, this.trailPoint3.x) || f2P8L.w9C(n, this.trailPoint3.y)) {
  42309. this.trailRect.moveTo(this.trailPoint3.x, this.trailPoint3.y);
  42310. this.trailRect.lineStyle(f2P8L.b5n, 0xd980ff, f2P8L.s9n);
  42311. this.trailRect.lineTo(o, n);
  42312. this.trailPoint3.x = o;
  42313. this.trailPoint3.y = n;
  42314. }
  42315. }
  42316. };
  42317. t0.prototype.shotPlayer = function () {
  42318. if (w0.Main.lose || w0.Main.onMain || this.tutoManager.visible) {
  42319. return;
  42320. }
  42321. this.shot.moveShot();
  42322. };
  42323. t0.prototype.endShotPlayer = function () {
  42324. if (w0.Main.lose || w0.Main.onMain) {
  42325. return;
  42326. }
  42327. this.shot.removeLine();
  42328. };
  42329. return t0;
  42330. })(Phaser.State);
  42331. g0(H0);
  42332. })(oml || (oml = {}));
  42333. var oml;
  42334. (function (L0) {
  42335. var z0 = function (k) {
  42336. L0.Main = k;
  42337. },
  42338. E0 = (function (q) {
  42339. var f = function (k) {
  42340. I0.bestScore = k;
  42341. };
  42342. var j = function (k) {
  42343. I0.firstPlay = k;
  42344. };
  42345. var U0 = function (k) {
  42346. I0.onMain = k;
  42347. };
  42348. var k0 = function (k) {
  42349. I0.speed = k;
  42350. };
  42351. var a0 = function (k) {
  42352. I0.speedX = k;
  42353. };
  42354. var T0 = function (k) {
  42355. I0.musicOff = k;
  42356. };
  42357. var G0 = function (k) {
  42358. I0.speedY = k;
  42359. };
  42360. var W0 = function (k) {
  42361. I0.lose = k;
  42362. };
  42363. var N0 = function (k) {
  42364. I0.following = k;
  42365. };
  42366. var S0 = function (k) {
  42367. I0.totalScore = k;
  42368. };
  42369. function I0(m) {
  42370. var e = "Preloader";
  42371. var o = "Boot";
  42372. var n = function (k) {
  42373. I0.lang = k;
  42374. };
  42375. q.call(this, f2P8L.s1n, f2P8L.v2n, Phaser.AUTO, f2P8L.M9n, f2P8L.H1n);
  42376. I0.game = this;
  42377. n(m);
  42378. this.state.add(o, L0.Boot, f2P8L.a1n);
  42379. this.state.add(e, L0.Preloader, f2P8L.a1n);
  42380. this.state.add(f2P8L.N6n, L0.LevelManager, f2P8L.a1n);
  42381. this.state.start(o);
  42382. }
  42383. var m0 = function (k) {
  42384. I0.inGame = k;
  42385. };
  42386. var A0 = function (k) {
  42387. I0.anclado = k;
  42388. };
  42389. __extends(I0, q);
  42390. k0(f2P8L.C5n);
  42391. G0(f2P8L.C5n);
  42392. a0(f2P8L.Y9n);
  42393. N0(f2P8L.a1n);
  42394. W0(f2P8L.a1n);
  42395. A0(f2P8L.a1n);
  42396. U0(f2P8L.x1n);
  42397. m0(f2P8L.a1n);
  42398. T0(f2P8L.a1n);
  42399. f(f2P8L.Y9n);
  42400. S0(f2P8L.Y9n);
  42401. j(f2P8L.x1n);
  42402. return I0;
  42403. })(Phaser.Game);
  42404. z0(E0);
  42405. })(oml || (oml = {})); ;
  42406. var WebFontConfig = {
  42407. google : {
  42408. families : [f2P8L.g6n]
  42409. }
  42410. }, oml;
  42411. (function (W0) {
  42412. var N0 = function (k) {
  42413. W0.orbManager = k;
  42414. },
  42415. S0 = (function (a0) {
  42416. var T0 = 6;
  42417. function G0(k) {
  42418. var m = 534;
  42419. var e = "enemy";
  42420. var o = 30;
  42421. a0.call(this, k, f2P8L.Y9n, f2P8L.Y9n);
  42422. this.girando = f2P8L.a1n;
  42423. this.game = k;
  42424. this.orbs = new Array();
  42425. var n;
  42426. for (var q = f2P8L.Y9n; f2P8L.E9C(q, o); q++) {
  42427. n = this.getEnemy(q);
  42428. this.orbs[q] = this.game.add.sprite(f2P8L.e9C(f2P8L.s1n, f2P8L.X9n), f2P8L.Y9n, e + n.x);
  42429. this.orbs[q].anchor.set(f2P8L.V2n, f2P8L.V2n);
  42430. this.orbs[q].x = f2P8L.c2n + f2P8L.g9C(Math.random(), m);
  42431. this.orbs[q].y = -f2P8L.e1n - Math.random() * f2P8L.B5n;
  42432. this.orbs[q].key = n.y;
  42433. }
  42434. }
  42435. __extends(G0, a0);
  42436. G0.prototype.getEnemy = function (k) {
  42437. var m = 33;
  42438. var e = 37;
  42439. var o = 48;
  42440. var n = 36;
  42441. var q = 70;
  42442. var f = 56;
  42443. var j = ((56.0E1, 115) > 7. ? (0x106, 29) : (0x18D, 7.640E2));
  42444. var U0 = 8;
  42445. k = Math.ceil(f2P8L.r9C(Math.random(), U0));
  42446. var k0 = f2P8L.Y9n;
  42447. switch (k) {
  42448. case f2P8L.s9n:
  42449. k0 = j;
  42450. break;
  42451. case f2P8L.X9n:
  42452. k0 = f2P8L.p2n;
  42453. break;
  42454. case f2P8L.l9n:
  42455. k0 = f;
  42456. break;
  42457. case f2P8L.T5n:
  42458. k0 = q;
  42459. break;
  42460. case f2P8L.k5n:
  42461. k0 = n;
  42462. break;
  42463. case T0:
  42464. k0 = o;
  42465. break;
  42466. case f2P8L.Q9n:
  42467. k0 = e;
  42468. break;
  42469. case U0:
  42470. k0 = m;
  42471. break;
  42472. }
  42473. k0 = f2P8L.i9C(k0, f2P8L.X9n) + f2P8L.b5n;
  42474. return (new Phaser.Point(k, k0));
  42475. };
  42476. G0.prototype.setVars = function (k, m) {
  42477. this.player = k;
  42478. for (var e = 0; f2P8L.u9C(e, this.orbs.length); e++) {
  42479. m.addChild(this.orbs[e]);
  42480. }
  42481. m.addChild(this);
  42482. };
  42483. G0.prototype.restart = function () {
  42484. this.girando = false;
  42485. this.shuffle();
  42486. for (var k = 0; f2P8L.P9C(k, this.orbs.length); k++) {
  42487. this.orbs[k].x = -240 + Math.random() * 480;
  42488. if (f2P8L.D9C(k, 0)) {
  42489. this.orbs[k].y = f2P8L.Z9C(this.orbs[k - 1].y, 300, Math.random() * 400);
  42490. } else {
  42491. this.orbs[k].y = -300 - Math.random() * 400;
  42492. }
  42493. if (f2P8L.c9C(k, 6)) {
  42494. this.orbs[k].x = 0;
  42495. } else if (f2P8L.s9C(k, 6)) {
  42496. this.orbs[k].x = Math.pow(-1, f2P8L.Q9C(k, 2)) * (f2P8L.a5C(250, Math.random() * 200));
  42497. }
  42498. this.orbs[k].visible = true;
  42499. }
  42500. this.x = 0;
  42501. this.y = 0;
  42502. };
  42503. G0.prototype.shuffle = function () {
  42504. for (var k = f2P8L.W5C(this.orbs.length, 1); f2P8L.m5C(k, 0); k--) {
  42505. var m = Math.floor(f2P8L.A5C(k, Math.random()));
  42506. var e = this.orbs[m];
  42507. this[m] = this.orbs[k];
  42508. this[k] = e;
  42509. }
  42510. };
  42511. G0.prototype.enterFrame = function () {
  42512. var k;
  42513. if (!W0.Main.onMain) {
  42514. var m = false;
  42515. var e;
  42516. var o;
  42517. this.y += W0.Main.speedY;
  42518. this.x += W0.Main.speedX;
  42519. for (var n = 0; f2P8L.w5C(n, this.orbs.length); n++) {
  42520. if (!W0.Main.lose) {
  42521. this.orbs[n].y += W0.Main.speedY;
  42522. this.orbs[n].x += W0.Main.speedX;
  42523. if (f2P8L.E5C(this.orbs[n].y, 2000) && !this.girando) {
  42524. this.orbs[n].x = -240 + Math.random() * 480;
  42525. if (f2P8L.e5C(n, 0)) {
  42526. this.orbs[n].y = f2P8L.g5C(this.orbs[n - 1].y, 150, Math.random() * 400);
  42527. } else {
  42528. this.orbs[n].y = f2P8L.x5C(this.orbs[this.orbs.length - 1].y, 150, Math.random() * 400);
  42529. }
  42530. }
  42531. }
  42532. if ((f2P8L.n5C(this.orbs[n].y, 1060) || (W0.Main.lose && f2P8L.f5C(this.orbs[n].y, 2020))) && this.orbs[n].y > -100 && (this.orbs[n].x > -317 || (W0.Main.lose && this.orbs[n].x > -634)) && (f2P8L.K5C(this.orbs[n].x, 317) || (W0.Main.lose && f2P8L.B5C(this.orbs[n].x, 634)))) {
  42533. if (!this.orbs[n].visible) {
  42534. this.orbs[n].visible = true;
  42535. }
  42536. } else if (this.orbs[n].visible) {
  42537. this.orbs[n].kill();
  42538. }
  42539. e = f2P8L.l5C(this.player.x, this.orbs[n].x);
  42540. o = f2P8L.X5C(this.player.y, this.orbs[n].y);
  42541. k = Math.sqrt(f2P8L.Y5C(e, e) + f2P8L.U2C(o, o));
  42542. if (f2P8L.T2C(k, this.orbs[n].key) && f2P8L.S2C(n, this.noHit)) {
  42543. m = true;
  42544. }
  42545. }
  42546. if (m) {
  42547. W0.Main.lose = m;
  42548. }
  42549. }
  42550. };
  42551. G0.prototype.hideAll = function () {
  42552. for (var k = 0; f2P8L.I2C(k, this.orbs.length); k++) {
  42553. this.orbs[k].kill();
  42554. }
  42555. this.x = 0;
  42556. this.y = 0;
  42557. };
  42558. return G0;
  42559. })(Phaser.Sprite);
  42560. N0(S0);
  42561. })(oml || (oml = {}));
  42562. var utils;
  42563. (function (n) {
  42564. var q = function (k) {
  42565. n.point3 = k;
  42566. },
  42567. f = (function () {
  42568. function o(k, m, e) {
  42569. this.x = k;
  42570. this.y = m;
  42571. this.rotation = e;
  42572. }
  42573. return o;
  42574. })();
  42575. q(f);
  42576. })(utils || (utils = {}));
  42577. var oml;
  42578. (function (q) {
  42579. var f = function (k) {
  42580. q.Preloader = k;
  42581. },
  42582. j = (function (o) {
  42583. function n() {
  42584. o.apply(this, arguments);
  42585. }
  42586. __extends(n, o);
  42587. n.prototype.preload = function () {
  42588. var k = "logoPublisher";
  42589. var m = "preloadBar";
  42590. var e = (37 <= (31.8E1, 1.493E3) ? (5.64E2, 557) : 0xC0 <= (0x23D, 14) ? 75 : (11.20E1, 11.450E2));
  42591. this.preloadBar = this.add.sprite(f2P8L.Y9n, e, m);
  42592. this.load.setPreloadSprite(this.preloadBar);
  42593. this.logo = this.add.sprite(f2P8L.C5n, f2P8L.t6n, k);
  42594. this.logo.inputEnabled = f2P8L.x1n;
  42595. this.logo.input.useHandCursor = f2P8L.x1n;
  42596. this.logo.events.onInputDown.add(this.gourl, this);
  42597. this.load.xml("langs", "txt/gameText.xml");
  42598. this.game.load.script("webfont", "assets/webfont.js");
  42599. this.load.image("background1", "assets/bgSolo.jpg");
  42600. this.load.image("background2", "assets/borde1.png");
  42601. this.load.image("background3", "assets/borde2.png");
  42602. this.load.image("player", "assets/player.png");
  42603. this.load.image("enemy1", "assets/obj1.png");
  42604. this.load.image("enemy2", "assets/obj2.png");
  42605. this.load.image("enemy3", "assets/obj3.png");
  42606. this.load.image("enemy4", "assets/obj4.png");
  42607. this.load.image("enemy5", "assets/obj5.png");
  42608. this.load.image("enemy6", "assets/obj6.png");
  42609. this.load.image("enemy7", "assets/obj7.png");
  42610. this.load.image("enemy8", "assets/obj8.png");
  42611. this.load.image("shoot", "assets/hookLineFull.png");
  42612. this.load.image("circulo", "assets/hookLineSpinSegment.png");
  42613. this.load.image("centroA", "assets/hookLineFX1.png");
  42614. this.load.image("centroB", "assets/hookLineFX2.png");
  42615. this.game.load.image("explo", "assets/particle.png");
  42616. this.game.load.image("bgLose", "assets/bgLose.png");
  42617. this.game.load.image("highScoreLine", "assets/highscore.png");
  42618. this.game.load.image("currentScoreLine", "assets/currentScore.png");
  42619. this.game.load.image("btnBack", "assets/over2.png");
  42620. this.game.load.image("btnRetry", "assets/over4.png");
  42621. this.game.load.image("title", "assets/over1.png");
  42622. this.game.load.image("fondoScoreA", "assets/scorePanel2.png");
  42623. this.game.load.image("fondoScoreB", "assets/scorePanel.png");
  42624. this.game.load.image("btnPlay", "assets/main2.png");
  42625. this.game.load.image("btnHow", "assets/main3.png");
  42626. this.game.load.image("titleMain", "assets/main1.png");
  42627. this.game.load.image("fondoNegro", "assets/fondoNegro_75alpha.png");
  42628. this.game.load.image("tuto1", "assets/tuto1.jpg");
  42629. this.game.load.image("tuto2", "assets/tuto2.jpg");
  42630. this.game.load.image("tuto3", "assets/tuto3.jpg");
  42631. this.game.load.image("tuto4", "assets/tuto4.jpg");
  42632. this.game.load.image("more", "assets/more.png");
  42633. this.game.load.audio("click", "snd/click.mp3");
  42634. this.game.load.audio("spin", "snd/spin.mp3");
  42635. this.game.load.audio("ingameSnd", "snd/oms_InGame.mp3");
  42636. this.game.load.audio("mainSnd", "snd/oms_Main.mp3");
  42637. this.game.load.audio("connected", "snd/connected.mp3");
  42638. this.game.load.bitmapFont('font', 'assets/font.png', 'assets/font.xml');
  42639. q.Boot.orientationHandler();
  42640. };
  42641. n.prototype.create = function () {
  42642. this.add.tween(this.preloadBar).to({
  42643. alpha : f2P8L.Y9n
  42644. }, f2P8L.A1n, Phaser.Easing.Linear.None, f2P8L.x1n).onComplete.add(this.startMainMenu, this);
  42645. };
  42646. n.prototype.startMainMenu = function () {
  42647. this.preloadBar.destroy();
  42648. this.logo.destroy();
  42649. q.Main.level = f2P8L.Y9n;
  42650. this.game.state.start(f2P8L.N6n, f2P8L.x1n, f2P8L.a1n);
  42651. };
  42652. n.prototype.gourl = function () {
  42653. SG.redirectToPortal();
  42654. };
  42655. return n;
  42656. })(Phaser.State);
  42657. f(j);
  42658. })(oml || (oml = {}));
  42659. var oml;
  42660. (function (W0) {
  42661. var N0 = function (k) {
  42662. W0.Shot = k;
  42663. },
  42664. S0 = (function (T0) {
  42665. function G0(k) {
  42666. var m = (20. <= (6.73E2, 22.70E1) ? (87, 0.15464) : 1.25E2 < (0x232, 114.) ? (91.2E1, 0x1D4) : 42 > (0x30, 122.) ? (0x102, 'T') : (10.4E1, 0x1D9));
  42667. T0.call(this, k, f2P8L.Y9n, f2P8L.B5n, f2P8L.H5n);
  42668. this.pressed = f2P8L.a1n;
  42669. this.objectIndex = -f2P8L.s9n;
  42670. this.left = f2P8L.a1n;
  42671. this.anchor.set(m, f2P8L.V2n);
  42672. this.sndEnganchado = this.game.add.audio(f2P8L.E1n, f2P8L.s9n, f2P8L.a1n);
  42673. }
  42674. __extends(G0, T0);
  42675. G0.prototype.setVars = function (k, m, e, o, n) {
  42676. this.floorB = o;
  42677. this.floorC = n;
  42678. this.enemy = m.orbs;
  42679. this.OM = m;
  42680. this.player = k;
  42681. this.circulo = new Array();
  42682. for (var q = f2P8L.Y9n; f2P8L.C2C(q, f2P8L.b9n); q++) {
  42683. this.circulo[q] = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n, f2P8L.F1n);
  42684. this.circulo[q].kill();
  42685. this.circulo[q].anchor.set(f2P8L.V2n, f2P8L.V2n);
  42686. e.addChild(this.circulo[q]);
  42687. }
  42688. this.centroA = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n, f2P8L.U6n);
  42689. this.centroB = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n, f2P8L.R1n);
  42690. this.centroA.alpha = f2P8L.Y9n;
  42691. this.centroB.alpha = f2P8L.Y9n;
  42692. this.centroA.anchor.set(f2P8L.V2n, f2P8L.V2n);
  42693. this.centroB.anchor.set(f2P8L.V2n, f2P8L.V2n);
  42694. e.addChild(this.centroA);
  42695. e.addChild(this.centroB);
  42696. e.addChild(this);
  42697. };
  42698. G0.prototype.restart = function () {
  42699. this.game.tweens.removeFrom(this);
  42700. this.kill();
  42701. this.centroA.kill();
  42702. this.centroB.kill();
  42703. for (var k = 0; f2P8L.v2C(k, this.circulo.length); k++) {
  42704. this.game.tweens.removeFrom(this.circulo[k]);
  42705. this.circulo[k].kill();
  42706. }
  42707. this.p = -1;
  42708. this.lastItem = null;
  42709. };
  42710. G0.prototype.moveShot = function () {
  42711. if (this.pressed) {
  42712. return;
  42713. }
  42714. this.alpha = 0;
  42715. var k;
  42716. this.x = this.player.x;
  42717. this.y = this.player.y;
  42718. var m = 900;
  42719. var e;
  42720. var o = false;
  42721. var n;
  42722. var q;
  42723. var f;
  42724. var j = false;
  42725. for (var U0 = 0; f2P8L.t2C(U0, this.enemy.length); U0++) {
  42726. if (f2P8L.y2C(this.enemy[U0], undefined)) {
  42727. n = f2P8L.o2C(this.player.x, this.enemy[U0].x);
  42728. q = f2P8L.x2C(this.player.y, this.enemy[U0].y);
  42729. e = Math.sqrt(f2P8L.p2C(q, q) + f2P8L.q2C(n, n));
  42730. k = Math.atan2(q, n);
  42731. j = false;
  42732. if (f2P8L.b2C(this.enemy[U0], this.lastItem)) {
  42733. if (f2P8L.j2C(e, this.lastDistance + 2)) {
  42734. j = true;
  42735. }
  42736. }
  42737. if (f2P8L.d2C(W0.Main.speedY, 7) && f2P8L.c2C(this.player.y, this.enemy[U0].y)) {
  42738. j = true;
  42739. }
  42740. if (W0.Main.speedY < -10 && f2P8L.s2C(this.player.y, this.enemy[U0].y)) {
  42741. j = true;
  42742. }
  42743. if (f2P8L.Q2C(this.enemy[U0].visible, true));
  42744. if (f2P8L.a1C(e, m) && !j) {
  42745. this.objectIndex = U0;
  42746. m = e;
  42747. o = true;
  42748. }
  42749. }
  42750. }
  42751. if (!o) {
  42752. return;
  42753. }
  42754. this.width = m;
  42755. this.oldD = this.width;
  42756. this.scale.x *= 1.45;
  42757. this.rotation = k + Math.PI;
  42758. this.game.tweens.removeFrom(this);
  42759. this.visible = true;
  42760. this.alpha = 0;
  42761. var k0 = this.game.add.tween(this);
  42762. k0.to({
  42763. alpha : 1
  42764. }, 200, Phaser.Easing.Linear.None, true);
  42765. this.pressed = true;
  42766. W0.Main.following = true;
  42767. this.radio = -1;
  42768. this.OM.girando = true;
  42769. this.lastItem = this.enemy[this.objectIndex];
  42770. };
  42771. G0.prototype.enterFrame = function () {
  42772. var k = 270;
  42773. var m = 90;
  42774. var e = (8.69E2 < (81.0E1, 124) ? (6.97E2, "s") : (0x19D, 0x207) > (0x16E, 144.) ? (0x161, 360) : (44., 82));
  42775. var o = 180;
  42776. var n = 1000000;
  42777. for (var q = f2P8L.Y9n; f2P8L.W1C(q, this.p); q++) {
  42778. this.circulo[q].x += W0.Main.speedX;
  42779. this.circulo[q].y += W0.Main.speedY;
  42780. }
  42781. if (this.p != -f2P8L.s9n) {
  42782. this.centroA.x += W0.Main.speedX;
  42783. this.centroA.y += W0.Main.speedY;
  42784. this.centroB.x += W0.Main.speedX;
  42785. this.centroB.y += W0.Main.speedY;
  42786. }
  42787. if (W0.Main.following) {
  42788. var f = f2P8L.m1C(this.player.x, this.enemy[this.objectIndex].x);
  42789. var j = f2P8L.A1C(this.player.y, this.enemy[this.objectIndex].y);
  42790. var U0 = Math.sqrt(f2P8L.w1C(j, j) + f2P8L.E1C(f, f));
  42791. var k0 = Math.atan2(j, f);
  42792. if (f2P8L.e1C(Math.round(this.oldD * n), Math.round(U0 * n)) || W0.Main.anclado) {
  42793. if (this.radio === -f2P8L.s9n) {
  42794. this.radio = this.oldD;
  42795. var a0 = f2P8L.g1C(this.player.rotation, k0);
  42796. a0 = f2P8L.r1C(a0, o, Math.PI);
  42797. while (f2P8L.p1C(a0, f2P8L.Y9n)) {
  42798. a0 += e;
  42799. }
  42800. while (f2P8L.q1C(a0, e)) {
  42801. a0 -= e;
  42802. }
  42803. this.left = f2P8L.a1n;
  42804. if (f2P8L.b1C(a0, m) || f2P8L.j1C(a0, k)) {
  42805. this.left = f2P8L.x1n;
  42806. }
  42807. this.addPuntitos();
  42808. this.player.rotation = k0 + Math.PI;
  42809. if (this.left) {
  42810. this.player.rotation = k0;
  42811. }
  42812. W0.Main.anclado = f2P8L.x1n;
  42813. this.floorC.visible = f2P8L.a1n;
  42814. this.floorB.visible = f2P8L.x1n;
  42815. this.OM.noHit = this.objectIndex;
  42816. if (!W0.Main.musicOff) {}
  42817. this.lastDistance = this.radio;
  42818. }
  42819. this.rotate = Math.asin(f2P8L.d1C(W0.Main.speed, this.radio));
  42820. if (this.left) {
  42821. this.player.rotation -= this.rotate;
  42822. } else {
  42823. this.player.rotation += this.rotate;
  42824. }
  42825. if (f2P8L.c1C(this.player.rotation, f2P8L.Y9n)) {
  42826. this.player.rotation += f2P8L.s1C(Math.PI, f2P8L.X9n);
  42827. } else if (f2P8L.Q1C(this.player.rotation, Math.PI * f2P8L.X9n)) {
  42828. this.player.rotation -= f2P8L.a6C(Math.PI, f2P8L.X9n);
  42829. }
  42830. W0.Main.speedX = f2P8L.W6C(W0.Main.speed, Math.cos(this.player.rotation + Math.PI / 2));
  42831. W0.Main.speedY = f2P8L.m6C(W0.Main.speed, Math.sin(this.player.rotation + Math.PI / 2));
  42832. } else {
  42833. this.width = U0;
  42834. this.oldD = this.width;
  42835. this.scale.x *= 1.45;
  42836. }
  42837. this.rotation = k0 + Math.PI;
  42838. this.x = this.player.x;
  42839. this.y = this.player.y;
  42840. } else if (this.objectIndex !== -f2P8L.s9n) {
  42841. this.OM.girando = f2P8L.a1n;
  42842. }
  42843. };
  42844. G0.prototype.addPuntitos = function () {
  42845. var k = Math.asin(f2P8L.A6C(50, this.radio));
  42846. this.p = 0;
  42847. var m;
  42848. for (m = 0; f2P8L.w6C(m, 2 * Math.PI); m += k) {
  42849. this.circulo[this.p].x = this.enemy[this.objectIndex].x + f2P8L.E6C(this.radio, Math.cos(m));
  42850. this.circulo[this.p].y = this.enemy[this.objectIndex].y + f2P8L.e6C(this.radio, Math.sin(m));
  42851. this.circulo[this.p].alpha = 0;
  42852. this.circulo[this.p].visible = true;
  42853. this.game.tweens.removeFrom(this.circulo[this.p]);
  42854. var e = this.game.add.tween(this.circulo[this.p]);
  42855. e.to({
  42856. alpha : 1
  42857. }, 250, Phaser.Easing.Linear.None, true);
  42858. this.circulo[this.p].rotation = m + Math.PI;
  42859. if (this.left) {
  42860. this.circulo[this.p].rotation -= Math.PI;
  42861. }
  42862. this.p += 1;
  42863. }
  42864. for (m = this.p; f2P8L.g6C(m, this.circulo.length); m++) {
  42865. this.circulo[m].kill();
  42866. }
  42867. this.game.tweens.removeFrom(this.centroA);
  42868. this.game.tweens.removeFrom(this.centroB);
  42869. this.centroA.alpha = 1;
  42870. this.centroB.alpha = 1;
  42871. this.centroA.visible = true;
  42872. this.centroB.visible = true;
  42873. this.centroA.scale = new Phaser.Point(0, 0);
  42874. this.centroB.scale = new Phaser.Point(0, 0);
  42875. this.centroA.x = this.enemy[this.objectIndex].x;
  42876. this.centroA.y = this.enemy[this.objectIndex].y;
  42877. this.centroB.x = this.enemy[this.objectIndex].x;
  42878. this.centroB.y = this.enemy[this.objectIndex].y;
  42879. this.game.tweens.removeFrom(this.centroA.scale);
  42880. this.game.tweens.removeFrom(this.centroB.scale);
  42881. this.game.add.tween(this.centroA.scale).to({
  42882. x : 1,
  42883. y : 1
  42884. }, 150, Phaser.Easing.Cubic.Out, true, 0);
  42885. this.game.add.tween(this.centroB.scale).to({
  42886. x : 1,
  42887. y : 1
  42888. }, 200, Phaser.Easing.Cubic.Out, true, 100);
  42889. };
  42890. G0.prototype.removeLine = function () {
  42891. this.game.tweens.removeFrom(this);
  42892. var k = this.game.add.tween(this);
  42893. k.to({
  42894. alpha : 0
  42895. }, 50, Phaser.Easing.Linear.None, true).onComplete.add(this.endRemoveLine, this);
  42896. for (var m = 0; f2P8L.r6C(m, this.circulo.length); m++) {
  42897. this.game.tweens.removeFrom(this.circulo[m]);
  42898. k = this.game.add.tween(this.circulo[m]);
  42899. k.to({
  42900. alpha : 0
  42901. }, 50, Phaser.Easing.Linear.None, true);
  42902. }
  42903. this.pressed = false;
  42904. this.game.tweens.removeFrom(this.centroA);
  42905. this.game.tweens.removeFrom(this.centroA.scale);
  42906. k = this.game.add.tween(this.centroA);
  42907. k.to({
  42908. alpha : 0
  42909. }, 50, Phaser.Easing.Linear.None, true);
  42910. this.game.tweens.removeFrom(this.centroB);
  42911. this.game.tweens.removeFrom(this.centroB.scale);
  42912. k = this.game.add.tween(this.centroB);
  42913. k.to({
  42914. alpha : 0
  42915. }, 50, Phaser.Easing.Linear.None, true);
  42916. };
  42917. G0.prototype.endRemoveLine = function () {
  42918. W0.Main.following = false;
  42919. W0.Main.anclado = false;
  42920. this.floorB.visible = false;
  42921. this.floorC.visible = true;
  42922. this.game.tweens.removeFrom(this);
  42923. this.game.add.tween(this).to({
  42924. alpha : 0
  42925. }, 50).delay(150).start().onComplete.add(this.nohit, this);
  42926. for (var k = 0; f2P8L.i6C(k, this.circulo.length); k++) {
  42927. this.game.tweens.removeFrom(this.circulo[k]);
  42928. this.circulo[k].kill();
  42929. }
  42930. this.p = -1;
  42931. this.game.tweens.removeFrom(this.centroA);
  42932. this.game.tweens.removeFrom(this.centroA.scale);
  42933. this.centroA.kill();
  42934. this.game.tweens.removeFrom(this.centroB);
  42935. this.game.tweens.removeFrom(this.centroB.scale);
  42936. this.centroB.kill();
  42937. this.kill();
  42938. };
  42939. G0.prototype.nohit = function () {
  42940. this.OM.noHit = -f2P8L.s9n;
  42941. };
  42942. return G0;
  42943. })(Phaser.Sprite);
  42944. N0(S0);
  42945. })(oml || (oml = {}));
  42946. var oml;
  42947. (function (U0) {
  42948. var k0 = function (k) {
  42949. U0.tutorial = k;
  42950. },
  42951. a0 = (function (q) {
  42952. var f = "htoPlay1";
  42953. function j(k, m) {
  42954. q.call(this, k, f2P8L.Y9n, f2P8L.Y9n);
  42955. this.currentIntex = f2P8L.s9n;
  42956. this.xmlLang = m;
  42957. k.add.existing(this);
  42958. this.fondo = this.game.add.sprite(f2P8L.Y9n, f2P8L.Y9n, f2P8L.B9n);
  42959. this.addChild(this.fondo);
  42960. this.fondo.width = 634;
  42961. this.fondo.height = 960;
  42962. this.tuto1 = this.game.add.sprite(f2P8L.A5n, f2P8L.W5n, f2P8L.P9n);
  42963. this.tuto1.anchor.set(f2P8L.V2n, f2P8L.V2n);
  42964. this.addChild(this.tuto1);
  42965. this.tuto2 = this.game.add.sprite(f2P8L.A5n, f2P8L.W5n, f2P8L.z2n);
  42966. this.tuto2.anchor.set(f2P8L.V2n, f2P8L.V2n);
  42967. this.addChild(this.tuto2);
  42968. this.tuto3 = this.game.add.sprite(f2P8L.A5n, f2P8L.W5n, f2P8L.u2n);
  42969. this.tuto3.anchor.set(f2P8L.V2n, f2P8L.V2n);
  42970. this.addChild(this.tuto3);
  42971. this.tuto4 = this.game.add.sprite(f2P8L.A5n, f2P8L.W5n, f2P8L.X5n);
  42972. this.tuto4.anchor.set(f2P8L.V2n, f2P8L.V2n);
  42973. this.addChild(this.tuto4);
  42974. this.visible = f2P8L.a1n;
  42975. this.onInputDown.add(this.nextTuto, this);
  42976. this.tutoText = this.game.add.text(317, 610, "..", {
  42977. font : "30px Play",
  42978. fill : "#ffffff",
  42979. align : "center"
  42980. });
  42981. this.tutoText.anchor.set(f2P8L.V2n, f2P8L.Y9n);
  42982. this.addChild(this.tutoText);
  42983. }
  42984. __extends(j, q);
  42985. j.prototype.showTuto = function () {
  42986. U0.Main.firstPlay = f2P8L.a1n;
  42987. this.currentIntex = f2P8L.s9n;
  42988. this.visible = f2P8L.x1n;
  42989. this.tuto1.visible = f2P8L.x1n;
  42990. this.tuto2.visible = f2P8L.a1n;
  42991. this.tuto3.visible = f2P8L.a1n;
  42992. this.tuto4.visible = f2P8L.a1n;
  42993. this.tutoText.setText(this.xmlLang.getElementById(U0.Main.lang).getElementsByTagName(f)[f2P8L.Y9n].textContent.toUpperCase());
  42994. this.multiLine();
  42995. };
  42996. j.prototype.closeTuto = function () {
  42997. this.visible = f2P8L.a1n;
  42998. };
  42999. j.prototype.nextTuto = function () {
  43000. var k = "htoPlay3";
  43001. var m = "htoPlay2";
  43002. this.currentIntex += f2P8L.s9n;
  43003. if (f2P8L.u6C(this.currentIntex, f2P8L.k5n)) {
  43004. this.closeTuto();
  43005. }
  43006. switch (this.currentIntex) {
  43007. case f2P8L.s9n:
  43008. this.tuto1.visible = f2P8L.x1n;
  43009. this.tuto2.visible = f2P8L.a1n;
  43010. this.tutoText.setText(this.xmlLang.getElementById(U0.Main.lang).getElementsByTagName(f)[f2P8L.Y9n].textContent.toUpperCase());
  43011. break;
  43012. case f2P8L.X9n:
  43013. this.tuto2.visible = f2P8L.x1n;
  43014. this.tuto3.visible = f2P8L.a1n;
  43015. this.tutoText.setText(this.xmlLang.getElementById(U0.Main.lang).getElementsByTagName(m)[f2P8L.Y9n].textContent.toUpperCase());
  43016. break;
  43017. case f2P8L.l9n:
  43018. this.tuto3.visible = f2P8L.x1n;
  43019. this.tuto4.visible = f2P8L.a1n;
  43020. this.tutoText.setText(this.xmlLang.getElementById(U0.Main.lang).getElementsByTagName(m)[f2P8L.Y9n].textContent.toUpperCase());
  43021. break;
  43022. case f2P8L.T5n:
  43023. this.tuto4.visible = f2P8L.x1n;
  43024. this.tuto1.visible = f2P8L.a1n;
  43025. this.tutoText.setText(this.xmlLang.getElementById(U0.Main.lang).getElementsByTagName(k)[f2P8L.Y9n].textContent.toUpperCase());
  43026. break;
  43027. }
  43028. this.multiLine();
  43029. };
  43030. j.prototype.multiLine = function () {
  43031. var k = this.tutoText.text;
  43032. var m = k.split(" ");
  43033. k = "";
  43034. var e = 20;
  43035. var o = 0;
  43036. for (var n = 0; f2P8L.P6C(n, m.length); n++) {
  43037. k += m[n] + " ";
  43038. o += m[n].length;
  43039. if (f2P8L.D6C(o, e)) {
  43040. k += "\n";
  43041. o = 0;
  43042. }
  43043. }
  43044. this.tutoText.setText(k);
  43045. };
  43046. return j;
  43047. })(Phaser.Button);
  43048. k0(a0);
  43049. })(oml || (oml = {}));