game.min.js 478 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694
  1. var b = b || {};
  2. b.p = b.p || {};
  3. b.c = {};
  4. p = window;
  5. p = Object.prototype;
  6. delete window._p;
  7. b.rb = function(a) {
  8. return document.createElement(a)
  9. };
  10. b.ka = function(a, c, d, e) {
  11. a.addEventListener(c, d, e)
  12. };
  13. b.Gx = "undefined" !== typeof require && require("fs");
  14. b.wz = function(a, c) {
  15. if (a) if (a instanceof Array) for (var d = 0,
  16. e = a.length; d < e && !1 !== c.call(void 0, a[d], d); d++);
  17. else for (d in a) if (!1 === c.call(void 0, a[d], d)) break
  18. };
  19. b.Ju = function(a) {
  20. if (!a) return b.log("invalid URL"),
  21. !1;
  22. var c = a.indexOf("://");
  23. if ( - 1 == c) return ! 1;
  24. c = a.indexOf("/", c + 3);
  25. return ( - 1 == c ? a: a.substring(0, c)) != location.origin
  26. };
  27. b.async = {
  28. xw: function(a) {
  29. var c = this.rz;
  30. if (!c.ou) {
  31. var d = c.length,
  32. e = c.KA,
  33. f = c.qA,
  34. g = f.fc,
  35. h = f.lz,
  36. k = f.ov,
  37. f = f.uZ;
  38. if (a) {
  39. if (c.ou = a, g) return g.call(h, a)
  40. } else {
  41. var m = Array.apply(null, arguments).slice(1),
  42. n = m.length;
  43. 0 == n ? m = null: 1 == n && (m = m[0]);
  44. e[this.index] = m;
  45. c.count--;
  46. k && k.call(f, m, d - c.count, d);
  47. 0 == c.count && g && g.apply(h, [null, e])
  48. }
  49. }
  50. },
  51. ix: function() {},
  52. UW: function(a, c, d) {
  53. var e = b.async;
  54. if (void 0 !== d)"function" == typeof c && (c = {
  55. ov: c
  56. }),
  57. c.fc = d || c.fc;
  58. else if (void 0 !== c)"function" == typeof c && (c = {
  59. fc: c
  60. });
  61. else if (void 0 !== a) c = {};
  62. else throw "arguments error!";
  63. var f = (d = a instanceof Array) ? a.length: Object.keys(a).length;
  64. if (0 == f) c.fc && c.fc.call(c.lz, null);
  65. else {
  66. var g = {
  67. length: f,
  68. count: f,
  69. qA: c,
  70. KA: d ? [] : {}
  71. };
  72. b.wz(a,
  73. function(a, d) {
  74. if (g.ou) return ! 1;
  75. var f = c.fc || c.ov ? e.xw.bind({
  76. rz: g,
  77. index: d
  78. }) : e.ix;
  79. a(f, d)
  80. })
  81. }
  82. },
  83. map: function(a, c, d) {
  84. var e = this,
  85. f = arguments.length;
  86. "function" == typeof c && (c = {
  87. Nu: c
  88. });
  89. if (3 === f) c.fc = d || c.fc;
  90. else if (2 > f) throw "arguments error!";
  91. "function" == typeof c && (c = {
  92. Nu: c
  93. });
  94. if (void 0 !== d) c.fc = d || c.fc;
  95. else if (void 0 === a) throw "arguments error!";
  96. var g = (f = a instanceof Array) ? a.length: Object.keys(a).length;
  97. if (0 === g) c.fc && c.fc.call(c.lz, null);
  98. else {
  99. var h = {
  100. length: g,
  101. count: g,
  102. qA: c,
  103. KA: f ? [] : {}
  104. };
  105. b.wz(a,
  106. function(a, d) {
  107. if (h.ou) return ! 1;
  108. var f = c.fc ? e.xw.bind({
  109. rz: h,
  110. index: d
  111. }) : e.ix;
  112. c.Nu.call(c.gL, a, d, f)
  113. })
  114. }
  115. }
  116. };
  117. b.path = {
  118. join: function() {
  119. for (var a = arguments.length,
  120. c = "",
  121. d = 0; d < a; d++) c = (c + ("" == c ? "": "/") + arguments[d]).replace(/(\/|\\\\)$/, "");
  122. return c
  123. },
  124. Hg: function(a) {
  125. return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null
  126. },
  127. YV: function(a) {
  128. if (a) {
  129. var c = a.lastIndexOf(".");
  130. if ( - 1 !== c) return a.substring(0, c)
  131. }
  132. return a
  133. },
  134. GI: function(a, c) {
  135. var d = a.indexOf("?");
  136. 0 < d && (a = a.substring(0, d));
  137. d = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, ""));
  138. if (!d) return null;
  139. d = d[2];
  140. return c && a.substring(a.length - c.length).toLowerCase() == c.toLowerCase() ? d.substring(0, d.length - c.length) : d
  141. },
  142. dirname: function(a) {
  143. return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  144. },
  145. mz: function(a, c) {
  146. c = c || "";
  147. var d = a.indexOf("?"),
  148. e = "";
  149. 0 < d && (e = a.substring(d), a = a.substring(0, d));
  150. d = a.lastIndexOf(".");
  151. return 0 > d ? a + c + e: a.substring(0, d) + c + e
  152. },
  153. $o: function(a, c, d) {
  154. if (0 == c.indexOf(".")) return this.mz(a, c);
  155. var e = a.indexOf("?"),
  156. f = "";
  157. d = d ? this.Hg(a) : "";
  158. 0 < e && (f = a.substring(e), a = a.substring(0, e));
  159. e = a.lastIndexOf("/");
  160. return a.substring(0, 0 >= e ? 0 : e + 1) + c + d + f
  161. }
  162. };
  163. b.D = {
  164. Kx: {},
  165. xo: {},
  166. KG: {},
  167. $g: {},
  168. Jp: "",
  169. CI: "",
  170. sd: {},
  171. rp: function() {
  172. return window.XMLHttpRequest ? new window.XMLHttpRequest: new ActiveXObject("MSXML2.XMLHTTP")
  173. },
  174. vx: function(a) {
  175. var c = a[0],
  176. d = a[1],
  177. e = a[2],
  178. f = ["", null, null];
  179. if (1 === a.length) f[1] = c instanceof Array ? c: [c];
  180. else if (2 === a.length)"function" == typeof d ? (f[1] = c instanceof Array ? c: [c], f[2] = d) : (f[0] = c || "", f[1] = d instanceof Array ? d: [d]);
  181. else if (3 === a.length) f[0] = c || "",
  182. f[1] = d instanceof Array ? d: [d],
  183. f[2] = e;
  184. else throw "arguments error to load js!";
  185. return f
  186. },
  187. uL: function(a, c, d) {
  188. var e = this,
  189. f = e.Kx,
  190. g = e.vx(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? e.Px(g[0], g[1], 0, g[2]) : b.async.map(g[1],
  191. function(a, c, d) {
  192. a = b.path.join(g[0], a);
  193. if (f[a]) return d(null);
  194. e.yw(a, !1, d)
  195. },
  196. g[2])
  197. },
  198. lA: function(a, c, d) {
  199. var e = this.PG(),
  200. f = this.vx(arguments);
  201. this.uL(f[0], f[1],
  202. function(a) {
  203. if (a) throw a;
  204. e.parentNode.removeChild(e);
  205. if (f[2]) f[2]()
  206. })
  207. },
  208. yw: function(a, c, d) {
  209. var e = document,
  210. f = b.rb("script");
  211. f.async = c;
  212. f.src = a;
  213. this.Kx[a] = !0;
  214. b.ka(f, "load",
  215. function() {
  216. this.removeEventListener("load", arguments.callee, !1);
  217. d()
  218. },
  219. !1);
  220. b.ka(f, "error",
  221. function() {
  222. d("Load " + a + " failed!")
  223. },
  224. !1);
  225. e.body.appendChild(f)
  226. },
  227. Px: function(a, c, d, e) {
  228. if (d >= c.length) e && e();
  229. else {
  230. var f = this;
  231. f.yw(b.path.join(a, c[d]), !1,
  232. function(g) {
  233. if (g) return e(g);
  234. f.Px(a, c, d + 1, e)
  235. })
  236. }
  237. },
  238. PG: function() {
  239. var a = document,
  240. c = a.getElementById("cocos2d_loadJsImg");
  241. if (!c) {
  242. c = b.rb("img");
  243. b.Rx && (c.src = b.Rx);
  244. a = a.getElementById(b.Va.Jc.id);
  245. a.style.backgroundColor = "black";
  246. a.parentNode.appendChild(c);
  247. var d = getComputedStyle ? getComputedStyle(a) : a.currentStyle;
  248. d || (d = {
  249. width: a.width,
  250. height: a.height
  251. });
  252. c.style.left = a.offsetLeft + (parseFloat(d.width) - c.width) / 2 + "px";
  253. c.style.top = a.offsetTop + (parseFloat(d.height) - c.height) / 2 + "px";
  254. c.style.position = "absolute"
  255. }
  256. return c
  257. },
  258. yp: function(a, c) {
  259. if (b.Gx) require("fs").gX(a,
  260. function(a, d) {
  261. a ? c(a) : c(null, d.toString())
  262. });
  263. else {
  264. var d = this.rp(),
  265. e = "load " + a + " failed!";
  266. d.open("GET", a, !0);
  267. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "utf-8"), d.onreadystatechange = function() {
  268. 4 == d.readyState && 200 == d.status ? c(null, d.responseText) : c(e)
  269. }) : (d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8"), d.onload = function() {
  270. 4 == d.readyState && 200 == d.status ? c(null, d.responseText) : c(e)
  271. });
  272. d.send(null)
  273. }
  274. },
  275. Qx: function(a) {
  276. if (b.Gx) return require("fs").hX(a).toString();
  277. var c = this.rp();
  278. c.open("GET", a, !1);
  279. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? c.setRequestHeader("Accept-Charset", "utf-8") : c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dutf-8");
  280. c.send(null);
  281. return 4 == !c.readyState || 200 != c.status ? null: c.responseText
  282. },
  283. mA: function(a, c) {
  284. this.yp(a,
  285. function(d, e) {
  286. try {
  287. d ? c(d) : c(null, JSON.parse(e))
  288. } catch(f) {
  289. throw "load json [" + a + "] failed : " + f;
  290. }
  291. })
  292. },
  293. uw: function(a) {
  294. return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)
  295. },
  296. Wl: function(a, c, d) {
  297. var e = !0;
  298. void 0 !== d ? e = null == c.Ju ? e: c.Ju: void 0 !== c && (d = c);
  299. var f = new Image;
  300. e && "file://" != location.origin && (f.crossOrigin = "Anonymous");
  301. b.ka(f, "load",
  302. function() {
  303. this.removeEventListener("load", arguments.callee, !1);
  304. this.removeEventListener("error", arguments.callee, !1);
  305. d && d(null, f)
  306. });
  307. b.ka(f, "error",
  308. function() {
  309. this.removeEventListener("error", arguments.callee, !1);
  310. d && d("load image failed")
  311. });
  312. f.src = a;
  313. return f
  314. },
  315. QG: function(a, c, d) {
  316. var e = this,
  317. f = null; (c = a.type) ? (c = "." + c.toLowerCase(), f = a.src ? a.src: a.name + c) : (f = a, c = b.path.Hg(f));
  318. var g = e.sd[f];
  319. if (g) return d(null, g);
  320. g = e.xo[c.toLowerCase()];
  321. if (!g) return b.error("loader for [" + c + "] not exists!"),
  322. d();
  323. c = e.HK(g.op ? g.op() : e.Jp, f);
  324. g.load(c, f, a,
  325. function(a, c) {
  326. a ? (b.log(a), e.sd[f] = null, delete e.sd[f], d()) : (e.sd[f] = c, d(null, c))
  327. })
  328. },
  329. HK: function(a, c) {
  330. var d = this.KG,
  331. e = b.path;
  332. if (void 0 !== a && void 0 === c) {
  333. c = a;
  334. var f = e.Hg(c),
  335. f = f ? f.toLowerCase() : "";
  336. a = (f = this.xo[f]) ? f.op ? f.op() : this.Jp: this.Jp
  337. }
  338. c = b.path.join(a || "", c);
  339. if (c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  340. if (d[c]) return d[c];
  341. e = e.Hg(c) || "";
  342. c = d[c] = c.substring(0, c.length - e.length) + "_" + b.Aa.language + e
  343. }
  344. return c
  345. },
  346. load: function(a, c, d) {
  347. if (void 0 !== d)"function" == typeof c && (c = {
  348. ov: c
  349. });
  350. else if (void 0 !== c)"function" == typeof c && (d = c, c = {});
  351. else if (void 0 !== a) c = {};
  352. else throw "arguments error!";
  353. c.fc = function(a, c) {
  354. a && b.log(a);
  355. d && d(c)
  356. };
  357. a instanceof Array || (a = [a]);
  358. c.Nu = this.QG;
  359. c.gL = this;
  360. b.async.map(a, c)
  361. },
  362. Bx: function(a, c) {
  363. var d = this.$g,
  364. e = [],
  365. f;
  366. for (f in a) {
  367. var g = a[f];
  368. d[f] = g;
  369. e.push(g)
  370. }
  371. this.load(e, c)
  372. },
  373. TV: function(a, c) {
  374. var d = this,
  375. e = d.Yc(a);
  376. e ? d.Bx(e.filenames, c) : d.load(a,
  377. function(a) {
  378. d.Bx(a[0].filenames, c)
  379. })
  380. },
  381. Mg: function(a, c) {
  382. if (a && c) {
  383. if ("string" == typeof a) return this.xo[a.trim().toLowerCase()] = c;
  384. for (var d = 0,
  385. e = a.length; d < e; d++) this.xo["." + a[d].trim().toLowerCase()] = c
  386. }
  387. },
  388. Yc: function(a) {
  389. return this.sd[a] || this.sd[this.$g[a]]
  390. },
  391. Pf: function(a) {
  392. var c = this.sd,
  393. d = this.$g;
  394. delete c[a];
  395. delete c[d[a]];
  396. delete d[a]
  397. },
  398. nX: function() {
  399. var a = this.sd,
  400. c = this.$g,
  401. d;
  402. for (d in a) delete a[d];
  403. for (d in c) delete c[d]
  404. }
  405. }; (function() {
  406. function a() {
  407. b.I && b.Va.lg && b.I.dispatchEvent(b.Va.lg);
  408. b.Va.bl && (window.cancelAnimationFrame(b.Va.bl), b.Va.Ao())
  409. }
  410. function c() {
  411. b.I && b.Va.kg && b.I.dispatchEvent(b.Va.kg)
  412. }
  413. var d = window,
  414. e, f;
  415. "undefined" !== typeof document.hidden ? (e = "hidden", f = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (e = "mozHidden", f = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (e = "msHidden", f = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (e = "webkitHidden", f = "webkitvisibilitychange");
  416. e ? b.ka(document, f,
  417. function() {
  418. document[e] ? c() : a()
  419. },
  420. !1) : (b.ka(d, "blur", c, !1), b.ka(d, "focus", a, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (d.onfocus = function() {
  421. a()
  422. });
  423. "onpageshow" in window && "onpagehide" in window && (b.ka(d, "pagehide", c, !1), b.ka(d, "pageshow", a, !1));
  424. f = d = null
  425. })();
  426. b.log = b.warn = b.error = b.assert = function() {};
  427. b.sz = function(a, c) {
  428. for (var d = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], e = null, f = 0; f < d.length; ++f) {
  429. try {
  430. e = a.getContext(d[f], c)
  431. } catch(g) {}
  432. if (e) break
  433. }
  434. return e
  435. };
  436. b.BG = function(a, c) {
  437. b.Ya = 0;
  438. b.wb = 1;
  439. b.Aa = {};
  440. var d = b.Aa;
  441. d.KC = "en";
  442. d.oP = "zh";
  443. d.pP = "fr";
  444. d.sP = "it";
  445. d.qP = "de";
  446. d.zP = "es";
  447. d.yP = "ru";
  448. d.uP = "ko";
  449. d.tP = "ja";
  450. d.rP = "hu";
  451. d.xP = "pt";
  452. d.nP = "ar";
  453. d.vP = "no";
  454. d.wP = "pl";
  455. d.nD = "Windows";
  456. d.Nv = "iOS";
  457. d.Ov = "OS X";
  458. d.lD = "UNIX";
  459. d.kD = "Linux";
  460. d.jD = "Android";
  461. d.mD = "Unknown";
  462. d.FQ = 0;
  463. d.AP = 1;
  464. d.BP = 2;
  465. d.lO = 3;
  466. d.jP = 4;
  467. d.iP = 5;
  468. d.uO = 6;
  469. d.DP = 7;
  470. d.ZO = 8;
  471. d.gQ = 9;
  472. d.GQ = 10;
  473. d.HQ = 11;
  474. d.PC = 100;
  475. d.eC = 101;
  476. d.OB = "wechat";
  477. d.KB = "androidbrowser";
  478. d.Zp = "ie";
  479. d.LB = "qqbrowser";
  480. d.vv = "mqqbrowser";
  481. d.MB = "ucbrowser";
  482. d.wO = "360browser";
  483. d.xO = "baiduboxapp";
  484. d.uv = "baidubrowser";
  485. d.yO = "maxthon";
  486. d.$p = "opera";
  487. d.zO = "miuibrowser";
  488. d.$j = "firefox";
  489. d.aq = "safari";
  490. d.Yp = "chrome";
  491. d.NB = "unknown";
  492. d.zV = !1;
  493. var e = [d.uv, d.$p, d.$j, d.Yp, d.aq],
  494. f = [d.uv, d.$p, d.$j, d.Yp, d.aq, d.MB, d.LB, d.vv, d.Zp],
  495. g = window,
  496. h = g.navigator,
  497. k = document.documentElement,
  498. m = h.userAgent.toLowerCase();
  499. d.Kf = -1 != m.indexOf("mobile") || -1 != m.indexOf("android");
  500. d.platform = d.Kf ? d.PC: d.eC;
  501. var n = h.language,
  502. n = (n = n ? n: h.browserLanguage) ? n.split("-")[0] : d.KC;
  503. d.language = n;
  504. var n = d.NB,
  505. r = m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || m.match(/chrome|safari/i);
  506. r && 0 < r.length && (n = r[0].toLowerCase(), "micromessenger" == n ? n = d.OB: "safari" === n && m.match(/android.*applewebkit/) ? n = d.KB: "trident" == n && (n = d.Zp));
  507. d.Ih = n;
  508. d.VH = -1 < f.indexOf(d.Ih);
  509. f = parseInt(a[c.hm]);
  510. n = b.wb;
  511. r = b.rb("Canvas");
  512. b.zl = !0;
  513. e = -1 == e.indexOf(d.Ih);
  514. if (1 === f || 0 === f && (d.Kf || e) || "file://" == location.origin) n = b.Ya;
  515. d.tF = function() {
  516. var a = document.createElement("canvas");
  517. a.width = 1;
  518. a.height = 1;
  519. a = a.getContext("2d");
  520. a.fillStyle = "#000";
  521. a.fillRect(0, 0, 1, 1);
  522. a.globalCompositeOperation = "multiply";
  523. a.fillStyle = "#fff";
  524. a.fillRect(0, 0, 1, 1);
  525. return 0 === a.getImageData(0, 0, 1, 1).data[0]
  526. };
  527. d.wt = d.tF();
  528. n != b.wb || g.WebGLRenderingContext && b.sz(r, {
  529. stencil: !0,
  530. preserveDrawingBuffer: !0
  531. }) || (0 == f ? n = b.Ya: b.zl = !1);
  532. if (n == b.Ya) try {
  533. r.getContext("2d")
  534. } catch(s) {
  535. b.zl = !1
  536. }
  537. b.da = n;
  538. try {
  539. d.Jo = !!new(g.AudioContext || g.webkitAudioContext || g.mozAudioContext)
  540. } catch(u) {
  541. d.Jo = !1
  542. }
  543. try {
  544. var t = d.localStorage = g.localStorage;
  545. t.setItem("storage", "");
  546. t.removeItem("storage");
  547. t = null
  548. } catch(v) {
  549. "SECURITY_ERR" !== v.name && "QuotaExceededError" !== v.name || b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),
  550. d.localStorage = function() {}
  551. }
  552. t = d.Zt = {
  553. canvas: !0
  554. };
  555. b.da == b.wb && (t.opengl = !0);
  556. void 0 !== k.ontouchstart || h.msPointerEnabled ? t.touches = !0 : void 0 !== k.onmouseup && (t.mouse = !0);
  557. void 0 !== k.onkeyup && (t.keyboard = !0);
  558. if (g.DeviceMotionEvent || g.DeviceOrientationEvent) t.accelerometer = !0;
  559. g = m.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
  560. m = m.match(/android/i) || h.platform.match(/android/i) ? !0 : !1;
  561. k = d.mD; - 1 != h.appVersion.indexOf("Win") ? k = d.nD: g ? k = d.Nv: -1 != h.appVersion.indexOf("Mac") ? k = d.Ov: -1 != h.appVersion.indexOf("X11") ? k = d.lD: -1 != h.appVersion.indexOf("Linux") ? k = d.kD: m && (k = d.jD);
  562. d.Su = k;
  563. d.DT = function() {};
  564. d.ES = function() {};
  565. d.JX = function() {};
  566. d.CS = function() {
  567. var a;
  568. a = "" + ("isMobile : " + this.Kf + "\r\n");
  569. a += "language : " + this.language + "\r\n";
  570. a += "browserType : " + this.Ih + "\r\n";
  571. a += "capabilities : " + JSON.stringify(this.Zt) + "\r\n";
  572. a += "os : " + this.Su + "\r\n";
  573. a += "platform : " + this.platform + "\r\n";
  574. b.log(a)
  575. }
  576. };
  577. b.PP = 0;
  578. b.QP = 1;
  579. b.NP = 2;
  580. b.OP = 3;
  581. b.Hd = null;
  582. b.l = null;
  583. b.ra = null;
  584. b.PF = null;
  585. b.yo = !1;
  586. b.Fy = !1;
  587. b.Ey = function(a) {
  588. var c, d;
  589. if (!b.Fy) {
  590. b.Fy = !0;
  591. var e = window,
  592. f = new Date,
  593. g = 1E3 / b.Va.Jc[b.Va.Vd.jp];
  594. e.GA = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame ||
  595. function(a) {
  596. var c = (new Date).getTime(),
  597. d = Math.max(0, g - (c - f)),
  598. e = window.setTimeout(function() {
  599. a()
  600. },
  601. d);
  602. f = c + d;
  603. return e
  604. };
  605. e.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame ||
  606. function(a) {
  607. clearTimeout(a)
  608. };
  609. var h = b.Ca(a) || b.Ca("#" + a),
  610. k;
  611. "CANVAS" == h.tagName ? (c = c || h.width, d = d || h.height, k = b.Jh = b.rb("DIV"), a = b.ra = h, a.parentNode.insertBefore(k, a), a.cz(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && b.log("Warning: target element is not a DIV or CANVAS"), c = c || h.clientWidth, d = d || h.clientHeight, k = b.Jh = h, a = b.ra = b.Ca(b.rb("CANVAS")), h.appendChild(a));
  612. a.$y("gameCanvas");
  613. a.setAttribute("width", c || 480);
  614. a.setAttribute("height", d || 320);
  615. a.setAttribute("tabindex", 99);
  616. a.style.outline = "none";
  617. h = k.style;
  618. h.width = (c || 480) + "px";
  619. h.height = (d || 320) + "px";
  620. h.margin = "0 auto";
  621. h.position = "relative";
  622. h.overflow = "hidden";
  623. k.top = "100%";
  624. b.da == b.wb && (b.l = b.HZ = b.sz(a, {
  625. stencil: !0,
  626. preserveDrawingBuffer: !0,
  627. antialias: !b.Aa.Kf,
  628. alpha: !1
  629. }));
  630. b.l ? (e.gl = b.l, b.Hd = new b.oC(b.l), b.yo = !0, b.va.CG(), b.ff.$n()) : (b.l = a.getContext("2d"), b.jR = b.l, b.l.translate(0, a.height), b.Hd = b.Cv ? new b.Cv(b.l) : null);
  631. b.PF = k;
  632. b.log(b.oq);
  633. b.yH();
  634. b.Aa.Kf && (c = b.rb("style"), c.type = "text/css", document.body.appendChild(c), c.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");
  635. b.view = b.mq.Zr();
  636. b.dA.XL(b.ra);
  637. b.Qa = b.ha.Zr();
  638. b.Qa.fv && b.Qa.fv(b.view);
  639. b.aa = b.Qa.Ql();
  640. b.OX = new b.Vv;
  641. b.ML = new b.vD
  642. }
  643. };
  644. b.SQ = function() {
  645. if (b.da !== b.wb) throw "This feature supports WebGL render mode only.";
  646. };
  647. b.Fx = !1;
  648. b.yH = function() {
  649. b.Fx = !1;
  650. b.ra.oncontextmenu = function() {
  651. if (!b.Fx) return ! 1
  652. }
  653. };
  654. b.Va = {
  655. xv: 0,
  656. dC: 1,
  657. MO: 2,
  658. cC: 3,
  659. hq: 4,
  660. yv: 5,
  661. wv: 6,
  662. tm: "game_on_hide",
  663. ek: "game_on_show",
  664. kg: null,
  665. lg: null,
  666. lR: [],
  667. Vd: {
  668. nu: "engineDir",
  669. tS: "dependencies",
  670. gp: "debugMode",
  671. oN: "showFPS",
  672. jp: "frameRate",
  673. id: "id",
  674. hm: "renderMode",
  675. hL: "jsList",
  676. QI: "classReleaseMode"
  677. },
  678. cy: !1,
  679. Is: !1,
  680. $a: !0,
  681. bl: null,
  682. Jc: null,
  683. Ru: null,
  684. pW: null,
  685. oY: function(a) {
  686. this.Jc[this.Vd.jp] = a;
  687. this.bl && window.cancelAnimationFrame(this.bl);
  688. this.$a = !0;
  689. this.Ao()
  690. },
  691. Ao: function() {
  692. var a = this,
  693. c, d = b.Qa;
  694. d.DM(a.Jc[a.Vd.oN]);
  695. c = function() {
  696. a.$a || (d.wL(), a.bl = window.GA(c))
  697. };
  698. window.GA(c);
  699. a.$a = !1
  700. },
  701. oM: function(a) {
  702. function c() {
  703. a && (d.Jc[d.Vd.id] = a);
  704. d.cy ? b.zl && (d.uF = setInterval(function() {
  705. d.Is && (b.Ey(d.Jc[d.Vd.id]), d.Ao(), d.kg = d.kg || new b.kf(d.tm), d.kg.setUserData(d), d.lg = d.lg || new b.kf(d.ek), d.lg.setUserData(d), d.Ru(), clearInterval(d.uF))
  706. },
  707. 10)) : d.RL(function() {
  708. b.zl && (b.Ey(d.Jc[d.Vd.id]), d.Ao(), d.kg = d.kg || new b.kf(d.tm), d.kg.setUserData(d), d.lg = d.lg || new b.kf(d.ek), d.lg.setUserData(d), d.Ru())
  709. })
  710. }
  711. var d = this;
  712. document.body ? c() : b.ka(window, "load",
  713. function() {
  714. this.removeEventListener("load", arguments.callee, !1);
  715. c()
  716. },
  717. !1)
  718. },
  719. yG: function() {
  720. function a(a) {
  721. a[c.nu] = a[c.nu] || "frameworks/cocos2d-html5";
  722. null == a[c.gp] && (a[c.gp] = 0);
  723. a[c.jp] = a[c.jp] || 60;
  724. null == a[c.hm] && (a[c.hm] = 1);
  725. return a
  726. }
  727. var c = this.Vd;
  728. if (document.ccConfig) this.Jc = a(document.ccConfig);
  729. else try {
  730. for (var d = document.getElementsByTagName("script"), e = 0; e < d.length; e++) {
  731. var f = d[e].getAttribute("cocos");
  732. if ("" == f || f) break
  733. }
  734. var g, h, k;
  735. if (e < d.length) {
  736. if (g = d[e].src) k = /(.*)\//.exec(g)[0],
  737. b.D.Jp = k,
  738. g = b.path.join(k, "project.json");
  739. h = b.D.Qx(g)
  740. }
  741. h || (h = b.D.Qx("project.json"));
  742. var m = JSON.parse(h);
  743. this.Jc = a(m || {})
  744. } catch(n) {
  745. b.log("Failed to read or parse project.json"),
  746. this.Jc = a({})
  747. }
  748. b.BG(this.Jc, c)
  749. },
  750. IG: {},
  751. xx: function(a, c, d) {
  752. var e = this.IG;
  753. if (e[c]) return null;
  754. d = d || "";
  755. var f = [],
  756. g = a[c];
  757. if (!g) throw "can not find module [" + c + "]";
  758. c = b.path;
  759. for (var h = 0,
  760. k = g.length; h < k; h++) {
  761. var m = g[h];
  762. if (!e[m]) {
  763. var n = c.Hg(m);
  764. n ? ".js" == n.toLowerCase() && f.push(c.join(d, m)) : (n = this.xx(a, m, d)) && (f = f.concat(n));
  765. e[m] = 1
  766. }
  767. }
  768. return f
  769. },
  770. RL: function(a) {
  771. var c = this,
  772. d = c.Jc,
  773. e = c.Vd,
  774. f = d[e.nu],
  775. g = b.D;
  776. if (!b.zl) throw "The renderer doesn't support the renderMode " + d[e.hm];
  777. c.cy = !0;
  778. var h = d[e.hL] || [];
  779. b.oa ? g.lA("", h,
  780. function(d) {
  781. if (d) throw d;
  782. c.Is = !0;
  783. a && a()
  784. }) : (e = b.path.join(f, "moduleConfig.json"), g.mA(e,
  785. function(e, g) {
  786. if (e) throw e;
  787. var n = d.modules || [],
  788. r = g.module,
  789. s = [];
  790. b.da == b.wb ? n.splice(0, 0, "shaders") : 0 > n.indexOf("core") && n.splice(0, 0, "core");
  791. for (var u = 0,
  792. t = n.length; u < t; u++) {
  793. var v = c.xx(r, n[u], f);
  794. v && (s = s.concat(v))
  795. }
  796. s = s.concat(h);
  797. b.D.lA(s,
  798. function(d) {
  799. if (d) throw d;
  800. c.Is = !0;
  801. a && a()
  802. })
  803. }))
  804. }
  805. };
  806. b.Va.yG();
  807. Function.prototype.bind = Function.prototype.bind ||
  808. function(a) {
  809. var c = this;
  810. return function() {
  811. var d = Array.prototype.slice.call(arguments);
  812. return c.apply(a || null, d)
  813. }
  814. };
  815. b.c = {
  816. qv: "cc.ActionManager.addAction(): action must be non-null",
  817. IB: "cocos2d: removeAction: Target not found",
  818. pO: "cc.ActionManager.removeActionByTag(): an invalid tag",
  819. qO: "cc.ActionManager.removeActionByTag(): target must be non-null",
  820. GB: "cc.ActionManager.getActionByTag(): an invalid tag",
  821. HB: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  822. TI: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  823. UI: "Expected 'data' dict, but not found. Config file: %s",
  824. VI: "Please load the resource first : %s",
  825. jC: "cocos2d: Director: Error in gettimeofday",
  826. kC: "cocos2d: Director: unrecognized projection",
  827. YO: "cocos2d: Director: unrecognized projection",
  828. iC: "cocos2d: Director: Error in gettimeofday",
  829. hC: "running scene should not null",
  830. Bv: "the scene should not null",
  831. qj: "element type is wrong!",
  832. ED: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  833. FD: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  834. GD: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  835. CD: "cc.Scheduler.pauseTarget():target should be non-null",
  836. DD: "cc.Scheduler.resumeTarget():target should be non-null",
  837. BD: "cc.Scheduler.isTargetPaused():target should be non-null",
  838. WC: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  839. gD: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  840. UC: "RotationX !\x3d RotationY. Don't know which one to return",
  841. VC: "ScaleX !\x3d ScaleY. Don't know which one to return",
  842. FP: "An Node can't be added as a child of itself.",
  843. GP: "child already added. It can't be added again",
  844. RC: "child must be non-null",
  845. aD: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  846. SC: "boundingBox is deprecated. Use getBoundingBox instead",
  847. ZC: "argument tag is an invalid tag",
  848. $C: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  849. YC: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  850. hD: "cc.Node.stopActionBy(): argument tag an invalid tag",
  851. TC: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  852. cD: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  853. XC: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  854. QC: "Unknown callback function",
  855. bD: "child must be non-null",
  856. dD: "cc.Node.runAction(): action must be non-null",
  857. eD: "callback function must be non-null",
  858. fD: "interval must be positive",
  859. HP: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  860. JB: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  861. tO: "",
  862. rv: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  863. YE: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  864. $E: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  865. ZE: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  866. XE: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  867. wC: "Invalid parameter.",
  868. jn: "Don't call this method if the event is for touch.",
  869. yJ: "Invalid scene graph priority!",
  870. zJ: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  871. DJ: "Invalid listener type!",
  872. EJ: "Can't set fixed priority with scene graph based listener.",
  873. AJ: "Invalid parameters.",
  874. BJ: "listener must be a cc.EventListener object when adding a fixed priority listener",
  875. CJ: "The listener has been registered, please don't register it again.",
  876. MC: "parameters should not be ending with null in Javascript",
  877. NC: "Invalid index in MultiplexLayer switchTo message",
  878. OC: "Invalid index in MultiplexLayer switchTo message",
  879. LC: "cc.Layer.addLayer(): layer should be non-null",
  880. pC: "Resolution not valid",
  881. qC: "should set resolutionPolicy",
  882. XK: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  883. pB: "cc.swap is being modified from original macro, please check usage",
  884. bp: "WebGL error %s",
  885. rI: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  886. sI: "cc.AnimationCache. Invalid animation format",
  887. zI: "cc.AnimationCache.addAnimations(): File could not be found",
  888. tI: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  889. uI: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  890. vI: "cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",
  891. wI: "cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",
  892. xI: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  893. yI: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  894. AI: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  895. cE: "cc.Sprite.reorderChild(): this child is not in children list",
  896. VD: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  897. fE: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  898. gE: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  899. eE: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  900. OD: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  901. XD: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  902. YD: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  903. ZD: " is null, please check.",
  904. WD: "cc.Sprite.initWithFile(): filename should be non-null",
  905. hE: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  906. dE: "cc.Sprite.reorderChild(): child should be non-null",
  907. PD: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  908. QD: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  909. RD: "cc.Sprite.addChild(): child should be non-null",
  910. jE: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  911. cQ: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  912. aE: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  913. SD: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  914. TD: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  915. $D: "Sprite.initWithTexture(): Argument must be non-nil ",
  916. iE: "Invalid spriteFrameName",
  917. kE: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  918. dQ: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  919. bE: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  920. UD: "cc.SpriteBatchNode.addChild(): child should be non-null",
  921. HD: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  922. JD: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  923. KD: "cocos2d: WARNING: Not enough memory to resize the atlas",
  924. MD: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  925. LD: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  926. ID: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  927. ND: "cc.SpriteBatchNode.addChild():child should be non-null",
  928. wN: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  929. yN: "cocos2d: WARNING: an alias with name %s already exists",
  930. vN: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  931. BN: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  932. xN: "Please load the resource first : %s",
  933. zN: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  934. AN: "Argument must be non-nil",
  935. eq: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  936. UB: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  937. QB: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  938. TB: "Sprite.initWithTexture(): Argument must be non-nil ",
  939. RB: "cc.Sprite.addChild(): child should be non-null",
  940. WB: "Invalid spriteFrameName",
  941. XB: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  942. YB: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  943. VB: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  944. SB: "cc.SpriteBatchNode.addChild(): child should be non-null",
  945. BE: "cocos2d: Could not open file: %s",
  946. bw: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  947. CE: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  948. ME: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  949. NE: "cc.TextureAtlas.updateQuad(): Invalid index",
  950. FE: "cc.TextureAtlas.insertQuad(): Invalid index",
  951. GE: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  952. DE: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  953. EE: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  954. KE: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  955. LE: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  956. HE: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  957. IE: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  958. JE: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  959. IN: "TextureCache:addPVRTCImage does not support on HTML5",
  960. GN: "TextureCache:addPVRTCImage does not support on HTML5",
  961. HN: "addPVRImage does not support on HTML5",
  962. JN: "cocos2d: Couldn't add UIImage in TextureCache",
  963. LN: "cocos2d: '%s' id\x3d%s %s x %s",
  964. rB: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  965. MN: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  966. KN: "cc.Texture.addUIImage(): image should be non-null",
  967. sE: "initWithETCFile does not support on HTML5",
  968. wE: "initWithPVRFile does not support on HTML5",
  969. yE: "initWithPVRTCData does not support on HTML5",
  970. oE: "cc.Texture.addImage(): path should be non-null",
  971. uE: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  972. vE: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  973. AE: "initWithString isn't supported on cocos2d-html5",
  974. tE: "initWithETCFile does not support on HTML5",
  975. xE: "initWithPVRFile does not support on HTML5",
  976. zE: "initWithPVRTCData does not support on HTML5",
  977. qE: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  978. nE: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  979. pE: "cc.Texture.addImage(): path should be non-null",
  980. rE: "NSInternalInconsistencyException",
  981. Gb: "Missing file: %s",
  982. xA: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  983. Pq: "Rect width exceeds maximum margin: %s",
  984. Oq: "Rect height exceeds maximum margin: %s",
  985. xC: "If program goes here, there should be event in dispatch.",
  986. yC: "_inDispatch should be 1 here."
  987. };
  988. b.io = function(a) {
  989. if (b.ra) {
  990. var c = b.RG,
  991. d = document;
  992. if (!c) {
  993. var e = d.createElement("Div"),
  994. c = e.style;
  995. e.setAttribute("id", "logInfoDiv");
  996. b.ra.parentNode.appendChild(e);
  997. e.setAttribute("width", "200");
  998. e.setAttribute("height", b.ra.height);
  999. c.zIndex = "99999";
  1000. c.position = "absolute";
  1001. c.top = "0";
  1002. c.left = "0";
  1003. c = b.RG = d.createElement("textarea");
  1004. d = c.style;
  1005. c.setAttribute("rows", "20");
  1006. c.setAttribute("cols", "30");
  1007. c.setAttribute("disabled", !0);
  1008. e.appendChild(c);
  1009. d.backgroundColor = "transparent";
  1010. d.borderBottom = "1px solid #cccccc";
  1011. d.borderRightWidth = "0px";
  1012. d.borderLeftWidth = "0px";
  1013. d.borderTopWidth = "0px";
  1014. d.borderTopStyle = "none";
  1015. d.borderRightStyle = "none";
  1016. d.borderLeftStyle = "none";
  1017. d.padding = "0px";
  1018. d.margin = 0
  1019. }
  1020. a = "string" == typeof a ? a: JSON.stringify(a);
  1021. c.value = c.value + a + "\r\n";
  1022. c.scrollTop = c.scrollHeight
  1023. }
  1024. };
  1025. b.Un = function(a) {
  1026. if ("object" === typeof a) try {
  1027. return JSON.stringify(a)
  1028. } catch(c) {
  1029. return ""
  1030. } else return a
  1031. };
  1032. console.log && (b.log = function(a) {
  1033. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.Un(arguments[c]));
  1034. console.log(a)
  1035. },
  1036. b.warn = console.warn ?
  1037. function(a) {
  1038. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.Un(arguments[c]));
  1039. console.warn(a)
  1040. }: b.log, b.error = console.error ?
  1041. function(a) {
  1042. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.Un(arguments[c]));
  1043. console.error(a)
  1044. }: b.log, b.assert = function(a, c) {
  1045. if (!a && c) {
  1046. for (var d = 2; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, b.Un(arguments[d]));
  1047. throw c;
  1048. }
  1049. });
  1050. var q = b.Va.Jc[b.Va.Vd.gp],
  1051. x = b.Va;
  1052. console.log && q === x.dC || (b.log = q == x.hq ? b.io.bind(b) : function() {});
  1053. q && q != x.xv && q != x.cC && q != x.wv || (b.warn = function() {});
  1054. q != x.hq && q != x.yv && console.warn || (b.warn = b.io.bind(b));
  1055. q && q != x.xv ? q != x.hq && q != x.yv && q != x.wv && console.error || (b.error = b.io.bind(b), b.assert = function(a, c) {
  1056. if (!a && c) {
  1057. for (var d = 2; d < arguments.length; d++) c = c.replace("%s", arguments[d]);
  1058. b.io(c)
  1059. }
  1060. }) : (b.error = function() {},
  1061. b.assert = function() {});
  1062. b.D.tL = function(a, c) {
  1063. var d = this,
  1064. e = this.rp(),
  1065. f = "load " + a + " failed!";
  1066. e.open("GET", a, !0);
  1067. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "x-user-defined"), e.onreadystatechange = function() {
  1068. if (4 == e.readyState && 200 == e.status) {
  1069. var a = b.vw(e.responseBody);
  1070. c(null, d.Ho(a))
  1071. } else c(f)
  1072. }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dx-user-defined"), e.onload = function() {
  1073. 4 == e.readyState && 200 == e.status ? c(null, d.Ho(e.responseText)) : c(f)
  1074. });
  1075. e.send(null)
  1076. };
  1077. b.D.Ho = function(a) {
  1078. if (!a) return null;
  1079. for (var c = new Uint8Array(a.length), d = 0; d < a.length; d++) c[d] = a.charCodeAt(d) & 255;
  1080. return c
  1081. };
  1082. b.D.UV = function(a) {
  1083. var c = this.rp(),
  1084. d = "load " + a + " failed!";
  1085. c.open("GET", a, !1);
  1086. a = null;
  1087. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1088. c.setRequestHeader("Accept-Charset", "x-user-defined");
  1089. c.send(null);
  1090. if (200 != c.status) return b.log(d),
  1091. null; (c = b.vw(c.responseBody)) && (a = this.Ho(c))
  1092. } else {
  1093. c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1094. c.send(null);
  1095. if (200 != c.status) return b.log(d),
  1096. null;
  1097. a = this.Ho(c.responseText)
  1098. }
  1099. return a
  1100. };
  1101. var Uint8Array = Uint8Array || Array;
  1102. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1103. var y = b.rb("script");
  1104. y.type = "text/vbscript";
  1105. y.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
  1106. document.body.appendChild(y);
  1107. b.vw = function(a) {
  1108. for (var c = {},
  1109. d = 0; 256 > d; d++) for (var e = 0; 256 > e; e++) c[String.fromCharCode(d + 256 * e)] = String.fromCharCode(d) + String.fromCharCode(e);
  1110. d = IEBinaryToArray_ByteStr(a);
  1111. a = IEBinaryToArray_ByteStr_Last(a);
  1112. return d.replace(/[\s\S]/g,
  1113. function(a) {
  1114. return c[a]
  1115. }) + a
  1116. }
  1117. };
  1118. b = b || {};
  1119. b.Rx = "";
  1120. b.Ji = "";
  1121. b.os = "";
  1122. var b = b || {},
  1123. B = {
  1124. id: 0 | 998 * Math.random(),
  1125. ZK: 0 | 998 * Math.random(),
  1126. oz: function(a, c, d) {
  1127. a = a.toString();
  1128. var e = a.substring(a.indexOf("(") + 1, a.indexOf(")")),
  1129. e = e.trim();
  1130. for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 != a.indexOf("this._super");) {
  1131. var f = a.indexOf("this._super"),
  1132. g = a.indexOf("(", f),
  1133. h = a.substring(g + 1, a.indexOf(")", g)),
  1134. h = h.trim();
  1135. a = a.substring(0, f) + "ClassManager[" + d + "]." + c + ".call(this" + (h ? ",": "") + a.substring(g + 1)
  1136. }
  1137. return Function(e, a)
  1138. },
  1139. oK: function() {
  1140. return this.id++
  1141. },
  1142. pK: function() {
  1143. return this.ZK++
  1144. }
  1145. };
  1146. B.oz.LO = B; (function() {
  1147. var a = /\b_super\b/,
  1148. c = b.Va.Jc[b.Va.Vd.QI];
  1149. c && console.log("release Mode");
  1150. b.oa = function() {};
  1151. b.oa.extend = function(d) {
  1152. function e() {
  1153. this.L = B.pK();
  1154. this.ctor && this.ctor.apply(this, arguments)
  1155. }
  1156. var f = this.prototype,
  1157. g = Object.create(f),
  1158. h = B.oK();
  1159. B[h] = f;
  1160. var k = {
  1161. writable: !0,
  1162. enumerable: !1,
  1163. configurable: !0
  1164. };
  1165. g.L = null;
  1166. e.id = h;
  1167. k.value = h;
  1168. Object.defineProperty(g, "__pid", k);
  1169. e.prototype = g;
  1170. k.value = e;
  1171. Object.defineProperty(e.prototype, "constructor", k);
  1172. this.ze && (e.ze = b.d(this.ze));
  1173. this.Ae && (e.Ae = b.d(this.Ae));
  1174. for (var m = 0,
  1175. n = arguments.length; m < n; ++m) {
  1176. var r = arguments[m],
  1177. s;
  1178. for (s in r) {
  1179. var u = "function" === typeof r[s],
  1180. t = "function" === typeof f[s],
  1181. v = a.test(r[s]);
  1182. c && u && t && v ? (k.value = B.oz(r[s], s, h), Object.defineProperty(g, s, k)) : u && t && v ? (k.value = function(a, c) {
  1183. return function() {
  1184. var d = this._super;
  1185. this._super = f[a];
  1186. var e = c.apply(this, arguments);
  1187. this._super = d;
  1188. return e
  1189. }
  1190. } (s, r[s]), Object.defineProperty(g, s, k)) : u ? (k.value = r[s], Object.defineProperty(g, s, k)) : g[s] = r[s];
  1191. if (u) {
  1192. var w, A;
  1193. if (this.ze && this.ze[s]) {
  1194. var u = this.ze[s],
  1195. z;
  1196. for (z in this.Ae) if (this.Ae[z] == u) {
  1197. A = z;
  1198. break
  1199. }
  1200. b.k(g, u, r[s], r[A] ? r[A] : g[A], s, A)
  1201. }
  1202. if (this.Ae && this.Ae[s]) {
  1203. u = this.Ae[s];
  1204. for (z in this.ze) if (this.ze[z] == u) {
  1205. w = z;
  1206. break
  1207. }
  1208. b.k(g, u, r[w] ? r[w] : g[w], r[s], w, s)
  1209. }
  1210. }
  1211. }
  1212. }
  1213. e.extend = b.oa.extend;
  1214. e.nV = function(a) {
  1215. for (var c in a) g[c] = a[c]
  1216. };
  1217. return e
  1218. }
  1219. })();
  1220. b.k = function(a, c, d, e, f, g) {
  1221. if (a.__defineGetter__) d && a.__defineGetter__(c, d),
  1222. e && a.__defineSetter__(c, e);
  1223. else if (Object.defineProperty) {
  1224. var h = {
  1225. enumerable: !1,
  1226. configurable: !0
  1227. };
  1228. d && (h.get = d);
  1229. e && (h.set = e);
  1230. Object.defineProperty(a, c, h)
  1231. } else throw Error("browser does not support getters");
  1232. if (!f && !g) for (var h = null != d,
  1233. k = void 0 != e,
  1234. m = Object.getOwnPropertyNames(a), n = 0; n < m.length; n++) {
  1235. var r = m[n];
  1236. if ((a.__lookupGetter__ ? !a.__lookupGetter__(r) : !Object.getOwnPropertyDescriptor(a, r)) && "function" === typeof a[r]) {
  1237. var s = a[r];
  1238. if (h && s === d && (f = r, !k || g)) break;
  1239. if (k && s === e && (g = r, !h || f)) break
  1240. }
  1241. }
  1242. a = a.constructor;
  1243. f && (a.ze || (a.ze = {}), a.ze[f] = c);
  1244. g && (a.Ae || (a.Ae = {}), a.Ae[g] = c)
  1245. };
  1246. b.d = function(a) {
  1247. var c = a.constructor ? new a.constructor: {},
  1248. d;
  1249. for (d in a) {
  1250. var e = a[d];
  1251. c[d] = "object" != typeof e || !e || e instanceof b.m || e instanceof HTMLElement ? e: b.d(e)
  1252. }
  1253. return c
  1254. };
  1255. b = b || {};
  1256. b.p = b.p || {};
  1257. b.TR = function() {};
  1258. b.lP = {
  1259. VR: 8,
  1260. sZ: 9,
  1261. iT: 13,
  1262. shift: 16,
  1263. rS: 17,
  1264. alt: 18,
  1265. pause: 19,
  1266. bS: 20,
  1267. escape: 27,
  1268. TW: 33,
  1269. SW: 34,
  1270. end: 35,
  1271. home: 36,
  1272. left: 37,
  1273. vZ: 38,
  1274. right: 39,
  1275. yS: 40,
  1276. qV: 45,
  1277. WO: 46,
  1278. 0 : 48,
  1279. 1 : 49,
  1280. 2 : 50,
  1281. 3 : 51,
  1282. 4 : 52,
  1283. 5 : 53,
  1284. 6 : 54,
  1285. 7 : 55,
  1286. 8 : 56,
  1287. 9 : 57,
  1288. a: 65,
  1289. b: 66,
  1290. J: 67,
  1291. P: 68,
  1292. FS: 69,
  1293. lT: 70,
  1294. g: 71,
  1295. kV: 72,
  1296. mV: 73,
  1297. KV: 74,
  1298. LV: 75,
  1299. RV: 76,
  1300. WV: 77,
  1301. Ap: 78,
  1302. oW: 79,
  1303. rW: 80,
  1304. cX: 81,
  1305. r: 82,
  1306. NX: 83,
  1307. rZ: 84,
  1308. R: 85,
  1309. S: 86,
  1310. FZ: 87,
  1311. x: 88,
  1312. y: 89,
  1313. z: 90,
  1314. dW: 96,
  1315. eW: 97,
  1316. fW: 98,
  1317. gW: 99,
  1318. hW: 100,
  1319. iW: 101,
  1320. jW: 102,
  1321. kW: 103,
  1322. lW: 104,
  1323. mW: 105,
  1324. "*": 106,
  1325. "+": 107,
  1326. "-": 109,
  1327. numdel: 110,
  1328. "/": 111,
  1329. mT: 112,
  1330. qT: 113,
  1331. rT: 114,
  1332. sT: 115,
  1333. tT: 116,
  1334. uT: 117,
  1335. vT: 118,
  1336. wT: 119,
  1337. xT: 120,
  1338. nT: 121,
  1339. oT: 122,
  1340. pT: 123,
  1341. nW: 144,
  1342. QX: 145,
  1343. RX: 186,
  1344. ",": 186,
  1345. jT: 187,
  1346. "\x3d": 187,
  1347. ";": 188,
  1348. jS: 188,
  1349. sS: 189,
  1350. ".": 190,
  1351. ZW: 190,
  1352. BT: 191,
  1353. jV: 192,
  1354. "[": 219,
  1355. qW: 219,
  1356. "]": 221,
  1357. gS: 221,
  1358. UR: 220,
  1359. quote: 222,
  1360. dZ: 32
  1361. };
  1362. b.cP = 0;
  1363. b.zC = 1;
  1364. b.AC = 2;
  1365. b.dP = 3;
  1366. b.eP = 4;
  1367. b.BC = 5;
  1368. b.oU = function(a) {
  1369. return 8 < a.length && 137 == a[0] && 80 == a[1] && 78 == a[2] && 71 == a[3] && 13 == a[4] && 10 == a[5] && 26 == a[6] && 10 == a[7] ? b.zC: 2 < a.length && (73 == a[0] && 73 == a[1] || 77 == a[0] && 77 == a[1] || 255 == a[0] && 216 == a[1]) ? b.AC: b.BC
  1370. };
  1371. b.oV = function(a, c) {
  1372. function d() {}
  1373. d.prototype = c.prototype;
  1374. a.Rp = c.prototype;
  1375. a.prototype = new d;
  1376. a.prototype.constructor = a
  1377. };
  1378. b.WR = function(a, c, d) {
  1379. var e = arguments.callee.caller;
  1380. if (e.Rp) return ret = e.Rp.constructor.apply(a, Array.prototype.slice.call(arguments, 1));
  1381. for (var f = Array.prototype.slice.call(arguments, 2), g = !1, h = a.constructor; h; h = h.Rp && h.Rp.constructor) if (h.prototype[c] === e) g = !0;
  1382. else if (g) return h.prototype[c].apply(a, f);
  1383. if (a[c] === e) return a.constructor.prototype[c].apply(a, f);
  1384. throw Error("cc.base called from a method of one name to a method of a different name");
  1385. };
  1386. b.UP = function(a, c) {
  1387. this.x = a || 0;
  1388. this.y = c || 0
  1389. };
  1390. function C(a, c) {
  1391. return void 0 == a ? {
  1392. x: 0,
  1393. y: 0
  1394. }: void 0 == c ? {
  1395. x: a.x,
  1396. y: a.y
  1397. }: {
  1398. x: a,
  1399. y: c
  1400. }
  1401. }
  1402. b.NL = function(a, c) {
  1403. return a && c && a.x === c.x && a.y === c.y
  1404. };
  1405. b.bQ = function(a, c) {
  1406. this.width = a || 0;
  1407. this.height = c || 0
  1408. };
  1409. function D(a, c) {
  1410. return void 0 === a ? {
  1411. width: 0,
  1412. height: 0
  1413. }: void 0 === c ? {
  1414. width: a.width,
  1415. height: a.height
  1416. }: {
  1417. width: a,
  1418. height: c
  1419. }
  1420. }
  1421. b.cZ = function(a, c) {
  1422. return a && c && a.width == c.width && a.height == c.height
  1423. };
  1424. b.Uv = function(a, c, d, e) {
  1425. this.x = a || 0;
  1426. this.y = c || 0;
  1427. this.width = d || 0;
  1428. this.height = e || 0
  1429. };
  1430. function E(a, c, d, e) {
  1431. return void 0 === a ? {
  1432. x: 0,
  1433. y: 0,
  1434. width: 0,
  1435. height: 0
  1436. }: void 0 === c ? {
  1437. x: a.x,
  1438. y: a.y,
  1439. width: a.width,
  1440. height: a.height
  1441. }: {
  1442. x: a,
  1443. y: c,
  1444. width: d,
  1445. height: e
  1446. }
  1447. }
  1448. b.AA = function(a, c) {
  1449. return a && c && a.x === c.x && a.y === c.y && a.width === c.width && a.height === c.height
  1450. };
  1451. b.Ns = function(a) {
  1452. return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height
  1453. };
  1454. b.iX = function(a, c) {
  1455. return a && c ? !(a.x >= c.x || a.y >= c.y || a.x + a.width <= c.x + c.width || a.y + a.height <= c.y + c.height) : !1
  1456. };
  1457. b.em = function(a) {
  1458. return a.x + a.width
  1459. };
  1460. b.jX = function(a) {
  1461. return a.x + a.width / 2
  1462. };
  1463. b.Mj = function(a) {
  1464. return a.x
  1465. };
  1466. b.fm = function(a) {
  1467. return a.y + a.height
  1468. };
  1469. b.kX = function(a) {
  1470. return a.y + a.height / 2
  1471. };
  1472. b.Nj = function(a) {
  1473. return a.y
  1474. };
  1475. b.zA = function(a, c) {
  1476. return c.x >= b.Mj(a) && c.x <= b.em(a) && c.y >= b.Nj(a) && c.y <= b.fm(a)
  1477. };
  1478. b.BA = function(a, c) {
  1479. var d = a.y + a.height,
  1480. e = c.x + c.width,
  1481. f = c.y + c.height;
  1482. return ! (a.x + a.width < c.x || e < a.x || d < c.y || f < a.y)
  1483. };
  1484. b.mX = function(a, c) {
  1485. return ! (a.x + a.width < c.x || c.x + c.width < a.x || a.y + a.height < c.y || c.y + c.height < a.y)
  1486. };
  1487. b.Ip = function(a, c) {
  1488. var d = E(0, 0, 0, 0);
  1489. d.x = Math.min(a.x, c.x);
  1490. d.y = Math.min(a.y, c.y);
  1491. d.width = Math.max(a.x + a.width, c.x + c.width) - d.x;
  1492. d.height = Math.max(a.y + a.height, c.y + c.height) - d.y;
  1493. return d
  1494. };
  1495. b.lX = function(a, c) {
  1496. var d = E(Math.max(b.Mj(a), b.Mj(c)), Math.max(b.Nj(a), b.Nj(c)), 0, 0);
  1497. d.width = Math.min(b.em(a), b.em(c)) - b.Mj(d);
  1498. d.height = Math.min(b.fm(a), b.fm(c)) - b.Nj(d);
  1499. return d
  1500. };
  1501. b.Vv = b.oa.extend({
  1502. Yx: null,
  1503. ks: null,
  1504. ctor: function() {
  1505. window.DOMParser ? (this.ks = !0, this.Yx = new DOMParser) : this.ks = !1
  1506. },
  1507. parse: function(a) {
  1508. return this.Xx(a)
  1509. },
  1510. Xx: function(a) {
  1511. var c;
  1512. this.ks ? c = this.Yx.parseFromString(a, "text/xml") : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(a));
  1513. return c
  1514. }
  1515. });
  1516. b.vD = b.Vv.extend({
  1517. parse: function(a) {
  1518. a = this.Xx(a).documentElement;
  1519. if ("plist" != a.tagName) throw "Not a plist file!";
  1520. for (var c = null,
  1521. d = 0,
  1522. e = a.childNodes.length; d < e && (c = a.childNodes[d], 1 != c.nodeType); d++);
  1523. return this.As(c)
  1524. },
  1525. As: function(a) {
  1526. var c = null,
  1527. d = a.tagName;
  1528. if ("dict" == d) c = this.dH(a);
  1529. else if ("array" == d) c = this.cH(a);
  1530. else if ("string" == d) if (1 == a.childNodes.length) c = a.firstChild.nodeValue;
  1531. else for (c = "", d = 0; d < a.childNodes.length; d++) c += a.childNodes[d].nodeValue;
  1532. else "false" == d ? c = !1 : "true" == d ? c = !0 : "real" == d ? c = parseFloat(a.firstChild.nodeValue) : "integer" == d && (c = parseInt(a.firstChild.nodeValue, 10));
  1533. return c
  1534. },
  1535. cH: function(a) {
  1536. for (var c = [], d = 0, e = a.childNodes.length; d < e; d++) {
  1537. var f = a.childNodes[d];
  1538. 1 == f.nodeType && c.push(this.As(f))
  1539. }
  1540. return c
  1541. },
  1542. dH: function(a) {
  1543. for (var c = {},
  1544. d = null,
  1545. e = 0,
  1546. f = a.childNodes.length; e < f; e++) {
  1547. var g = a.childNodes[e];
  1548. 1 == g.nodeType && ("key" == g.tagName ? d = g.firstChild.nodeValue: c[d] = this.As(g))
  1549. }
  1550. return c
  1551. }
  1552. });
  1553. b.ZH = {
  1554. load: function(a, c, d, e) {
  1555. b.D.yp(a, e)
  1556. }
  1557. };
  1558. b.D.Mg(["txt", "xml", "vsh", "fsh", "atlas"], b.ZH);
  1559. b.JG = {
  1560. load: function(a, c, d, e) {
  1561. b.D.mA(a, e)
  1562. }
  1563. };
  1564. b.D.Mg(["json", "ExportJson"], b.JG);
  1565. b.xG = {
  1566. load: function(a, c, d, e) {
  1567. b.D.sd[c] = b.D.Wl(a,
  1568. function(a, d) {
  1569. if (a) return e(a);
  1570. b.va.Fa(c);
  1571. e(null, d)
  1572. })
  1573. }
  1574. };
  1575. b.D.Mg("png jpg bmp jpeg gif ico".split(" "), b.xG);
  1576. b.rH = {
  1577. load: function(a, c, d, e) {
  1578. b.D.sd[c] = b.D.Wl(d.src,
  1579. function(a, d) {
  1580. if (a) return e(a);
  1581. b.va.Fa(c);
  1582. e(null, d)
  1583. })
  1584. }
  1585. };
  1586. b.D.Mg(["serverImg"], b.rH);
  1587. b.gH = {
  1588. load: function(a, c, d, e) {
  1589. b.D.yp(a,
  1590. function(a, c) {
  1591. if (a) return e(a);
  1592. e(null, b.ML.parse(c))
  1593. })
  1594. }
  1595. };
  1596. b.D.Mg(["plist"], b.gH);
  1597. b.NF = {
  1598. lE: {
  1599. ".eot": "embedded-opentype",
  1600. ".ttf": "truetype",
  1601. ".woff": "woff",
  1602. ".svg": "svg"
  1603. },
  1604. Ox: function(a, c, d) {
  1605. var e = document,
  1606. f = b.path,
  1607. g = this.lE,
  1608. h = b.rb("style");
  1609. h.type = "text/css";
  1610. e.body.appendChild(h);
  1611. var k = "@font-face { font-family:" + a + "; src:";
  1612. if (c instanceof Array) for (var m = 0,
  1613. n = c.length; m < n; m++) d = f.Hg(c[m]).toLowerCase(),
  1614. k += "url('" + c[m] + "') format('" + g[d] + "')",
  1615. k += m == n - 1 ? ";": ",";
  1616. else k += "url('" + c + "') format('" + g[d] + "');";
  1617. h.textContent += k + "};";
  1618. c = b.rb("div");
  1619. d = c.style;
  1620. d.fontFamily = a;
  1621. c.innerHTML = ".";
  1622. d.position = "absolute";
  1623. d.left = "-100px";
  1624. d.top = "-100px";
  1625. e.body.appendChild(c)
  1626. },
  1627. load: function(a, c, d, e) {
  1628. c = d.type;
  1629. a = d.name;
  1630. c = d.eZ;
  1631. "string" == typeof d ? (c = b.path.Hg(d), a = b.path.GI(d, c), this.Ox(a, d, c)) : this.Ox(a, c);
  1632. e(null, !0)
  1633. }
  1634. };
  1635. b.D.Mg(["font", "eot", "ttf", "woff", "svg"], b.NF);
  1636. b.PQ = {
  1637. load: function(a, c, d, e) {
  1638. b.D.tL(a, e)
  1639. }
  1640. };
  1641. window.CocosEngine = b.oq = "Cocos2d-JS v3.0 RC2";
  1642. b.vk = 0;
  1643. b.jq = C(0, 0);
  1644. b.fC = 0.5;
  1645. b.JO = 1;
  1646. b.Yv = 1;
  1647. b.iD = 0;
  1648. b.Zv = 0;
  1649. b.eQ = 0;
  1650. b.fQ = 0;
  1651. b.XP = 1;
  1652. b.WP = "-hd";
  1653. b.TE = 1;
  1654. b.Uf = 0;
  1655. b.$P = 0;
  1656. b.JC = 0;
  1657. b.IC = 0;
  1658. b.tq = 1;
  1659. b.NO = b.oq + "-canvas";
  1660. b.rm = 1;
  1661. b.Dv = 1;
  1662. b.Ca = function(a) {
  1663. var c = this == b ? document: this;
  1664. if (a = a instanceof HTMLElement ? a: c.querySelector(a)) a.find = a.find || b.Ca,
  1665. a.Du = a.Du ||
  1666. function(a) {
  1667. return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)"))
  1668. },
  1669. a.$y = a.$y ||
  1670. function(a) {
  1671. this.Du(a) || (this.className && (this.className += " "), this.className += a);
  1672. return this
  1673. },
  1674. a.aM = a.aM ||
  1675. function(a) {
  1676. this.Du(a) && (this.className = this.className.replace(a, ""));
  1677. return this
  1678. },
  1679. a.remove = a.remove ||
  1680. function() {
  1681. this.parentNode && this.parentNode.removeChild(this);
  1682. return this
  1683. },
  1684. a.cz = a.cz ||
  1685. function(a) {
  1686. a.appendChild(this);
  1687. return this
  1688. },
  1689. a.SL = a.SL ||
  1690. function(a) {
  1691. a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this);
  1692. return this
  1693. },
  1694. a.mm = a.mm ||
  1695. function() {
  1696. this.style[b.Ca.PN] = b.Ca.translate(this.position) + b.Ca.rotate(this.rotation) + b.Ca.scale(this.scale) + b.Ca.Sj(this.Sj);
  1697. return this
  1698. },
  1699. a.position = a.position || {
  1700. x: 0,
  1701. y: 0
  1702. },
  1703. a.rotation = a.rotation || 0,
  1704. a.scale = a.scale || {
  1705. x: 1,
  1706. y: 1
  1707. },
  1708. a.Sj = a.Sj || {
  1709. x: 0,
  1710. y: 0
  1711. },
  1712. a.tZ = function(a, c) {
  1713. this.position.x = a;
  1714. this.position.y = c;
  1715. this.mm();
  1716. return this
  1717. },
  1718. a.rotate = function(a) {
  1719. this.rotation = a;
  1720. this.mm();
  1721. return this
  1722. },
  1723. a.resize = function(a, c) {
  1724. this.scale.x = a;
  1725. this.scale.y = c;
  1726. this.mm();
  1727. return this
  1728. },
  1729. a.PY = function(a, c) {
  1730. this.Sj.x = a;
  1731. this.Sj.y = c;
  1732. this.mm();
  1733. return this
  1734. };
  1735. return a
  1736. };
  1737. switch (b.Aa.Ih) {
  1738. case b.Aa.$j:
  1739. b.Ca.dm = "Moz";
  1740. b.Ca.Bj = !0;
  1741. break;
  1742. case b.Aa.Yp:
  1743. case b.Aa.aq:
  1744. b.Ca.dm = "webkit";
  1745. b.Ca.Bj = !0;
  1746. break;
  1747. case b.Aa.$p:
  1748. b.Ca.dm = "O";
  1749. b.Ca.Bj = !1;
  1750. break;
  1751. case b.Aa.Zp:
  1752. b.Ca.dm = "ms";
  1753. b.Ca.Bj = !1;
  1754. break;
  1755. default:
  1756. b.Ca.dm = "webkit",
  1757. b.Ca.Bj = !0
  1758. }
  1759. b.Ca.PN = b.Ca.dm + "Transform";
  1760. b.Ca.translate = b.Ca.Bj ?
  1761. function(a) {
  1762. return "translate3d(" + a.x + "px, " + a.y + "px, 0) "
  1763. }: function(a) {
  1764. return "translate(" + a.x + "px, " + a.y + "px) "
  1765. };
  1766. b.Ca.rotate = b.Ca.Bj ?
  1767. function(a) {
  1768. return "rotateZ(" + a + "deg) "
  1769. }: function(a) {
  1770. return "rotate(" + a + "deg) "
  1771. };
  1772. b.Ca.scale = function(a) {
  1773. return "scale(" + a.x + ", " + a.y + ") "
  1774. };
  1775. b.Ca.Sj = function(a) {
  1776. return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)"
  1777. };
  1778. b.bO = function(a) {
  1779. return b.Ca(document.createElement(a))
  1780. };
  1781. b.Ca.zT = function(a) {
  1782. var c = 0,
  1783. d = 0;
  1784. do c += a.offsetLeft,
  1785. d += a.offsetTop;
  1786. while (a = a.offsetParent);
  1787. return {
  1788. x: c,
  1789. y: d
  1790. }
  1791. };
  1792. b.hP = -1;
  1793. b.PI = Math.PI;
  1794. b.aP = parseFloat("3.402823466e+38F");
  1795. b.bP = parseFloat("1.175494351e-38F");
  1796. b.wD = b.PI / 180;
  1797. b.zv = 180 / b.PI;
  1798. b.RE = 4294967295;
  1799. b.pB = function(a, c, d) {
  1800. if ("object" == typeof d && "undefined" != typeof d.x && "undefined" != typeof d.y) {
  1801. var e = d[a];
  1802. d[a] = d[c];
  1803. d[c] = e
  1804. } else b.log(b.c.pB)
  1805. };
  1806. b.SV = function(a, c, d) {
  1807. return a + (c - a) * d
  1808. };
  1809. b.dX = function() {
  1810. return 16777215 * Math.random()
  1811. };
  1812. b.fX = function() {
  1813. return 2 * (Math.random() - 0.5)
  1814. };
  1815. b.eX = Math.random;
  1816. b.Gg = function(a) {
  1817. return a * b.wD
  1818. };
  1819. b.wA = function(a) {
  1820. return a * b.zv
  1821. };
  1822. b.xA = function(a) {
  1823. b.log(b.c.xA);
  1824. return a * b.zv
  1825. };
  1826. b.Ak = Number.MAX_VALUE - 1;
  1827. b.kc = b.iD ? 1 : 770;
  1828. b.jc = 771;
  1829. b.pA = function(a) {
  1830. a.Jb && (a.Jb.wc(), a.Jb.xd())
  1831. };
  1832. b.hT = function() {};
  1833. b.uS = function() {};
  1834. b.Ze = function() {
  1835. b.We += 1
  1836. };
  1837. b.Nm = 1.192092896E-7;
  1838. b.Ka = b.tq ?
  1839. function() {
  1840. return b.Qa.bh
  1841. }: function() {
  1842. return 1
  1843. };
  1844. b.PL = function(a) {
  1845. var c = b.Ka();
  1846. return C(a.x * c, a.y * c)
  1847. };
  1848. b.OL = function(a) {
  1849. var c = b.Ka();
  1850. return C(a.x / c, a.y / c)
  1851. };
  1852. b.Ds = function(a, c) {
  1853. var d = b.Ka();
  1854. c.x = a.x / d;
  1855. c.y = a.y / d
  1856. };
  1857. b.rN = function(a) {
  1858. var c = b.Ka();
  1859. return D(a.width * c, a.height * c)
  1860. };
  1861. b.qN = function(a) {
  1862. var c = b.Ka();
  1863. return D(a.width / c, a.height / c)
  1864. };
  1865. b.Iy = function(a, c) {
  1866. var d = b.Ka();
  1867. c.width = a.width / d;
  1868. c.height = a.height / d
  1869. };
  1870. b.Hp = b.tq ?
  1871. function(a) {
  1872. var c = b.Ka();
  1873. return E(a.x / c, a.y / c, a.width / c, a.height / c)
  1874. }: function(a) {
  1875. return a
  1876. };
  1877. b.gm = b.tq ?
  1878. function(a) {
  1879. var c = b.Ka();
  1880. return E(a.x * c, a.y * c, a.width * c, a.height * c)
  1881. }: function(a) {
  1882. return a
  1883. };
  1884. b.ONE = 1;
  1885. b.ZERO = 0;
  1886. b.SRC_ALPHA = 770;
  1887. b.SRC_ALPHA_SATURATE = 776;
  1888. b.SRC_COLOR = 768;
  1889. b.DST_ALPHA = 772;
  1890. b.DST_COLOR = 774;
  1891. b.ONE_MINUS_SRC_ALPHA = 771;
  1892. b.ONE_MINUS_SRC_COLOR = 769;
  1893. b.ONE_MINUS_DST_ALPHA = 773;
  1894. b.DST_COLOR = 775;
  1895. b.ONE_MINUS_DST_COLOR = 775;
  1896. b.ONE_MINUS_CONSTANT_ALPHA = 32772;
  1897. b.ONE_MINUS_CONSTANT_COLOR = 32770;
  1898. b.bp = function() {
  1899. if (b.hm == b.wb) {
  1900. var a = b.l.getError();
  1901. a && b.log(b.c.bp, a)
  1902. }
  1903. };
  1904. b.RO = 0;
  1905. b.PO = 1;
  1906. b.SO = 2;
  1907. b.QO = 3;
  1908. b.OO = 2;
  1909. b.DQ = 0;
  1910. b.Lc = 1;
  1911. b.cr = 2;
  1912. b.dr = 4;
  1913. b.gn = b.Lc | b.cr | b.dr;
  1914. b.gP = 0;
  1915. b.lc = 0;
  1916. b.Ck = 1;
  1917. b.Dk = 2;
  1918. b.EQ = 3;
  1919. b.sQ = 0;
  1920. b.oQ = 1;
  1921. b.qQ = 2;
  1922. b.AQ = 3;
  1923. b.yQ = 4;
  1924. b.lQ = 5;
  1925. b.uQ = 6;
  1926. b.wQ = 7;
  1927. b.nQ = 8;
  1928. b.Wq = "ShaderPositionTextureColor";
  1929. b.ZP = "ShaderPositionTextureColorAlphaTest";
  1930. b.Wv = "ShaderPositionColor";
  1931. b.Xv = "ShaderPositionTexture";
  1932. b.zD = "ShaderPositionTexture_uColor";
  1933. b.yD = "ShaderPositionTextureA8Color";
  1934. b.AD = "ShaderPosition_uColor";
  1935. b.xD = "ShaderPositionLengthTextureColor";
  1936. b.tQ = "CC_PMatrix";
  1937. b.pQ = "CC_MVMatrix";
  1938. b.rQ = "CC_MVPMatrix";
  1939. b.BQ = "CC_Time";
  1940. b.zQ = "CC_SinTime";
  1941. b.mQ = "CC_CosTime";
  1942. b.vQ = "CC_Random01";
  1943. b.xQ = "CC_Texture0";
  1944. b.kQ = "CC_alpha_value";
  1945. b.mO = "a_color";
  1946. b.nO = "a_position";
  1947. b.oO = "a_texCoord";
  1948. b.kP = 32;
  1949. b.KO = 3233828865;
  1950. b.IQ = 3233828866;
  1951. b.EP = 8801;
  1952. b.YP = 8802;
  1953. b.UO = 8803;
  1954. b = b || {};
  1955. b.p = b.p || {};
  1956. b.p.gr = function() {
  1957. b.color = function(a, d, e, f, g, h) {
  1958. return void 0 === a ? new b.ad(0, 0, 0, 255, g, h) : "string" === typeof a ? (a = b.Uz(a), new b.ad(a.r, a.g, a.b, a.a)) : "object" === typeof a ? new b.ad(a.r, a.g, a.b, a.a, a.Xo, a.offset) : new b.ad(a, d, e, f, g, h)
  1959. };
  1960. b.ad = function(a, d, e, f, g, h) {
  1961. this.Bb = g || new ArrayBuffer(b.ad.BYTES_PER_ELEMENT);
  1962. this.Na = h || 0;
  1963. g = this.Bb;
  1964. h = this.Na;
  1965. var k = Uint8Array.BYTES_PER_ELEMENT;
  1966. this.Ms = new Uint8Array(g, h, 1);
  1967. this.Ur = new Uint8Array(g, h + k, 1);
  1968. this.vr = new Uint8Array(g, h + 2 * k, 1);
  1969. this.pr = new Uint8Array(g, h + 3 * k, 1);
  1970. this.Ms[0] = a || 0;
  1971. this.Ur[0] = d || 0;
  1972. this.vr[0] = e || 0;
  1973. this.pr[0] = f || 255
  1974. };
  1975. b.ad.BYTES_PER_ELEMENT = 4;
  1976. var a = b.ad.prototype;
  1977. a.lG = function() {
  1978. return this.Ms[0]
  1979. };
  1980. a.DH = function(a) {
  1981. this.Ms[0] = 0 > a ? 0 : a
  1982. };
  1983. a.bG = function() {
  1984. return this.Ur[0]
  1985. };
  1986. a.AH = function(a) {
  1987. this.Ur[0] = 0 > a ? 0 : a
  1988. };
  1989. a.VF = function() {
  1990. return this.vr[0]
  1991. };
  1992. a.tH = function(a) {
  1993. this.vr[0] = 0 > a ? 0 : a
  1994. };
  1995. a.RF = function() {
  1996. return this.pr[0]
  1997. };
  1998. a.sH = function(a) {
  1999. this.pr[0] = 0 > a ? 0 : a
  2000. };
  2001. b.k(a, "r", a.lG, a.DH);
  2002. b.k(a, "g", a.bG, a.AH);
  2003. b.k(a, "b", a.VF, a.tH);
  2004. b.k(a, "a", a.RF, a.sH);
  2005. b.Sa = function(a, d, e, f) {
  2006. this.Bb = e || new ArrayBuffer(b.Sa.BYTES_PER_ELEMENT);
  2007. this.Na = f || 0;
  2008. this.Bh = new Float32Array(this.Bb, this.Na, 1);
  2009. this.Ch = new Float32Array(this.Bb, this.Na + 4, 1);
  2010. this.Bh[0] = a || 0;
  2011. this.Ch[0] = d || 0
  2012. };
  2013. b.Sa.BYTES_PER_ELEMENT = 8;
  2014. Object.defineProperties(b.Sa.prototype, {
  2015. x: {
  2016. get: function() {
  2017. return this.Bh[0]
  2018. },
  2019. set: function(a) {
  2020. this.Bh[0] = a
  2021. },
  2022. enumerable: !0
  2023. },
  2024. y: {
  2025. get: function() {
  2026. return this.Ch[0]
  2027. },
  2028. set: function(a) {
  2029. this.Ch[0] = a
  2030. },
  2031. enumerable: !0
  2032. }
  2033. });
  2034. b.Yd = function(a, d, e, f, g) {
  2035. this.Bb = f || new ArrayBuffer(b.Yd.BYTES_PER_ELEMENT);
  2036. this.Na = g || 0;
  2037. f = this.Bb;
  2038. g = this.Na;
  2039. this.Bh = new Float32Array(f, g, 1);
  2040. this.Bh[0] = a || 0;
  2041. this.Ch = new Float32Array(f, g + Float32Array.BYTES_PER_ELEMENT, 1);
  2042. this.Ch[0] = d || 0;
  2043. this.Rt = new Float32Array(f, g + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  2044. this.Rt[0] = e || 0
  2045. };
  2046. b.Yd.BYTES_PER_ELEMENT = 12;
  2047. Object.defineProperties(b.Yd.prototype, {
  2048. x: {
  2049. get: function() {
  2050. return this.Bh[0]
  2051. },
  2052. set: function(a) {
  2053. this.Bh[0] = a
  2054. },
  2055. enumerable: !0
  2056. },
  2057. y: {
  2058. get: function() {
  2059. return this.Ch[0]
  2060. },
  2061. set: function(a) {
  2062. this.Ch[0] = a
  2063. },
  2064. enumerable: !0
  2065. },
  2066. z: {
  2067. get: function() {
  2068. return this.Rt[0]
  2069. },
  2070. set: function(a) {
  2071. this.Rt[0] = a
  2072. },
  2073. enumerable: !0
  2074. }
  2075. });
  2076. b.Xf = function(a, d, e, f) {
  2077. this.Bb = e || new ArrayBuffer(b.Xf.BYTES_PER_ELEMENT);
  2078. this.Na = f || 0;
  2079. this.Gt = new Float32Array(this.Bb, this.Na, 1);
  2080. this.Kt = new Float32Array(this.Bb, this.Na + 4, 1);
  2081. this.Gt[0] = a || 0;
  2082. this.Kt[0] = d || 0
  2083. };
  2084. b.Xf.BYTES_PER_ELEMENT = 8;
  2085. Object.defineProperties(b.Xf.prototype, {
  2086. R: {
  2087. get: function() {
  2088. return this.Gt[0]
  2089. },
  2090. set: function(a) {
  2091. this.Gt[0] = a
  2092. },
  2093. enumerable: !0
  2094. },
  2095. S: {
  2096. get: function() {
  2097. return this.Kt[0]
  2098. },
  2099. set: function(a) {
  2100. this.Kt[0] = a
  2101. },
  2102. enumerable: !0
  2103. }
  2104. });
  2105. b.Nq = function(a, d, e, f, g, h) {
  2106. this.Bb = g || new ArrayBuffer(b.Nq.BYTES_PER_ELEMENT);
  2107. this.Na = h || 0;
  2108. g = this.Bb;
  2109. h = b.Sa.BYTES_PER_ELEMENT;
  2110. this.kj = a ? new b.Sa(a.x, a.y, g, 0) : new b.Sa(0, 0, g, 0);
  2111. this.nj = d ? new b.Sa(d.x, d.y, g, h) : new b.Sa(0, 0, g, h);
  2112. this.pi = e ? new b.Sa(e.x, e.y, g, 2 * h) : new b.Sa(0, 0, g, 2 * h);
  2113. this.ri = f ? new b.Sa(f.x, f.y, g, 3 * h) : new b.Sa(0, 0, g, 3 * h)
  2114. };
  2115. b.Nq.BYTES_PER_ELEMENT = 32;
  2116. b.VP = function(a, d, e, f) {
  2117. this.wa = a || new b.Yd(0, 0, 0);
  2118. this.xa = d || new b.Yd(0, 0, 0);
  2119. this.ya = e || new b.Yd(0, 0, 0);
  2120. this.za = f || new b.Yd(0, 0, 0)
  2121. };
  2122. Object.defineProperties(b.Nq.prototype, {
  2123. ya: {
  2124. get: function() {
  2125. return this.kj
  2126. },
  2127. set: function(a) {
  2128. this.kj.x = a.x;
  2129. this.kj.y = a.y
  2130. },
  2131. enumerable: !0
  2132. },
  2133. za: {
  2134. get: function() {
  2135. return this.nj
  2136. },
  2137. set: function(a) {
  2138. this.nj.x = a.x;
  2139. this.nj.y = a.y
  2140. },
  2141. enumerable: !0
  2142. },
  2143. wa: {
  2144. get: function() {
  2145. return this.pi
  2146. },
  2147. set: function(a) {
  2148. this.pi.x = a.x;
  2149. this.pi.y = a.y
  2150. },
  2151. enumerable: !0
  2152. },
  2153. xa: {
  2154. get: function() {
  2155. return this.ri
  2156. },
  2157. set: function(a) {
  2158. this.ri.x = a.x;
  2159. this.ri.y = a.y
  2160. },
  2161. enumerable: !0
  2162. }
  2163. });
  2164. b.Ed = function(a, d, e, f, g) {
  2165. this.Bb = f || new ArrayBuffer(b.Ed.BYTES_PER_ELEMENT);
  2166. this.Na = g || 0;
  2167. f = this.Bb;
  2168. g = this.Na;
  2169. var h = b.Yd.BYTES_PER_ELEMENT;
  2170. this.pj = a ? new b.Yd(a.x, a.y, a.z, f, g) : new b.Yd(0, 0, 0, f, g);
  2171. this.Qk = d ? b.color(d.r, d.g, d.b, d.a, f, g + h) : b.color(0, 0, 0, 0, f, g + h);
  2172. this.th = e ? new b.Xf(e.R, e.S, f, g + h + b.ad.BYTES_PER_ELEMENT) : new b.Xf(0, 0, f, g + h + b.ad.BYTES_PER_ELEMENT)
  2173. };
  2174. b.Ed.BYTES_PER_ELEMENT = 24;
  2175. Object.defineProperties(b.Ed.prototype, {
  2176. e: {
  2177. get: function() {
  2178. return this.pj
  2179. },
  2180. set: function(a) {
  2181. var d = this.pj;
  2182. d.x = a.x;
  2183. d.y = a.y;
  2184. d.z = a.z
  2185. },
  2186. enumerable: !0
  2187. },
  2188. j: {
  2189. get: function() {
  2190. return this.Qk
  2191. },
  2192. set: function(a) {
  2193. var d = this.Qk;
  2194. d.r = a.r;
  2195. d.g = a.g;
  2196. d.b = a.b;
  2197. d.a = a.a
  2198. },
  2199. enumerable: !0
  2200. },
  2201. f: {
  2202. get: function() {
  2203. return this.th
  2204. },
  2205. set: function(a) {
  2206. this.th.R = a.R;
  2207. this.th.S = a.S
  2208. },
  2209. enumerable: !0
  2210. }
  2211. });
  2212. b.Xa = function(a, d, e, f, g, h) {
  2213. this.Bb = g || new ArrayBuffer(b.Xa.BYTES_PER_ELEMENT);
  2214. this.Na = h || 0;
  2215. g = this.Bb;
  2216. h = this.Na;
  2217. var k = b.Ed.BYTES_PER_ELEMENT;
  2218. this.kj = a ? new b.Ed(a.e, a.j, a.f, g, h) : new b.Ed(null, null, null, g, h);
  2219. this.pi = d ? new b.Ed(d.e, d.j, d.f, g, h + k) : new b.Ed(null, null, null, g, h + k);
  2220. this.nj = e ? new b.Ed(e.e, e.j, e.f, g, h + 2 * k) : new b.Ed(null, null, null, g, h + 2 * k);
  2221. this.ri = f ? new b.Ed(f.e, f.j, f.f, g, h + 3 * k) : new b.Ed(null, null, null, g, h + 3 * k)
  2222. };
  2223. b.Xa.BYTES_PER_ELEMENT = 96;
  2224. Object.defineProperties(b.Xa.prototype, {
  2225. ya: {
  2226. get: function() {
  2227. return this.kj
  2228. },
  2229. set: function(a) {
  2230. var d = this.kj;
  2231. d.e = a.e;
  2232. d.j = a.j;
  2233. d.f = a.f
  2234. },
  2235. enumerable: !0
  2236. },
  2237. wa: {
  2238. get: function() {
  2239. return this.pi
  2240. },
  2241. set: function(a) {
  2242. var d = this.pi;
  2243. d.e = a.e;
  2244. d.j = a.j;
  2245. d.f = a.f
  2246. },
  2247. enumerable: !0
  2248. },
  2249. za: {
  2250. get: function() {
  2251. return this.nj
  2252. },
  2253. set: function(a) {
  2254. var d = this.nj;
  2255. d.e = a.e;
  2256. d.j = a.j;
  2257. d.f = a.f
  2258. },
  2259. enumerable: !0
  2260. },
  2261. xa: {
  2262. get: function() {
  2263. return this.ri
  2264. },
  2265. set: function(a) {
  2266. var d = this.ri;
  2267. d.e = a.e;
  2268. d.j = a.j;
  2269. d.f = a.f
  2270. },
  2271. enumerable: !0
  2272. },
  2273. Xo: {
  2274. get: function() {
  2275. return this.Bb
  2276. },
  2277. enumerable: !0
  2278. }
  2279. });
  2280. b.UE = function() {
  2281. return new b.Xa
  2282. };
  2283. b.ew = function(a) {
  2284. if (!a) return b.UE();
  2285. var d = a.ya,
  2286. e = a.wa,
  2287. f = a.za;
  2288. a = a.xa;
  2289. return {
  2290. ya: {
  2291. e: {
  2292. x: d.e.x,
  2293. y: d.e.y,
  2294. z: d.e.z
  2295. },
  2296. j: {
  2297. r: d.j.r,
  2298. g: d.j.g,
  2299. b: d.j.b,
  2300. a: d.j.a
  2301. },
  2302. f: {
  2303. R: d.f.R,
  2304. S: d.f.S
  2305. }
  2306. },
  2307. wa: {
  2308. e: {
  2309. x: e.e.x,
  2310. y: e.e.y,
  2311. z: e.e.z
  2312. },
  2313. j: {
  2314. r: e.j.r,
  2315. g: e.j.g,
  2316. b: e.j.b,
  2317. a: e.j.a
  2318. },
  2319. f: {
  2320. R: e.f.R,
  2321. S: e.f.S
  2322. }
  2323. },
  2324. za: {
  2325. e: {
  2326. x: f.e.x,
  2327. y: f.e.y,
  2328. z: f.e.z
  2329. },
  2330. j: {
  2331. r: f.j.r,
  2332. g: f.j.g,
  2333. b: f.j.b,
  2334. a: f.j.a
  2335. },
  2336. f: {
  2337. R: f.f.R,
  2338. S: f.f.S
  2339. }
  2340. },
  2341. xa: {
  2342. e: {
  2343. x: a.e.x,
  2344. y: a.e.y,
  2345. z: a.e.z
  2346. },
  2347. j: {
  2348. r: a.j.r,
  2349. g: a.j.g,
  2350. b: a.j.b,
  2351. a: a.j.a
  2352. },
  2353. f: {
  2354. R: a.f.R,
  2355. S: a.f.S
  2356. }
  2357. }
  2358. }
  2359. };
  2360. b.CQ = function(a) {
  2361. if (!a) return [];
  2362. for (var d = [], e = 0; e < a.length; e++) d.push(b.ew(a[e]));
  2363. return d
  2364. };
  2365. b.Xd = function(a, d, e, f, g) {
  2366. this.Bb = f || new ArrayBuffer(b.Xd.BYTES_PER_ELEMENT);
  2367. this.Na = g || 0;
  2368. f = this.Bb;
  2369. g = this.Na;
  2370. var h = b.Sa.BYTES_PER_ELEMENT;
  2371. this.pj = a ? new b.Sa(a.x, a.y, f, g) : new b.Sa(0, 0, f, g);
  2372. this.Qk = d ? b.color(d.r, d.g, d.b, d.a, f, g + h) : b.color(0, 0, 0, 0, f, g + h);
  2373. this.th = e ? new b.Xf(e.R, e.S, f, g + h + b.ad.BYTES_PER_ELEMENT) : new b.Xf(0, 0, f, g + h + b.ad.BYTES_PER_ELEMENT)
  2374. };
  2375. b.Xd.BYTES_PER_ELEMENT = 20;
  2376. Object.defineProperties(b.Xd.prototype, {
  2377. e: {
  2378. get: function() {
  2379. return this.pj
  2380. },
  2381. set: function(a) {
  2382. this.pj.x = a.x;
  2383. this.pj.y = a.y
  2384. },
  2385. enumerable: !0
  2386. },
  2387. j: {
  2388. get: function() {
  2389. return this.Qk
  2390. },
  2391. set: function(a) {
  2392. var d = this.Qk;
  2393. d.r = a.r;
  2394. d.g = a.g;
  2395. d.b = a.b;
  2396. d.a = a.a
  2397. },
  2398. enumerable: !0
  2399. },
  2400. f: {
  2401. get: function() {
  2402. return this.th
  2403. },
  2404. set: function(a) {
  2405. this.th.R = a.R;
  2406. this.th.S = a.S
  2407. },
  2408. enumerable: !0
  2409. }
  2410. });
  2411. b.Ra = function(a, d, e, f, g) {
  2412. this.Bb = f || new ArrayBuffer(b.Ra.BYTES_PER_ELEMENT);
  2413. this.Na = g || 0;
  2414. f = this.Bb;
  2415. g = this.Na;
  2416. var h = b.Xd.BYTES_PER_ELEMENT;
  2417. this.jw = a ? new b.Xd(a.e, a.j, a.f, f, g) : new b.Xd(null, null, null, f, g);
  2418. this.qw = d ? new b.Xd(d.e, d.j, d.f, f, g + h) : new b.Xd(null, null, null, f, g + h);
  2419. this.tw = e ? new b.Xd(e.e, e.j, e.f, f, g + 2 * h) : new b.Xd(null, null, null, f, g + 2 * h)
  2420. };
  2421. b.Ra.BYTES_PER_ELEMENT = 60;
  2422. Object.defineProperties(b.Ra.prototype, {
  2423. a: {
  2424. get: function() {
  2425. return this.jw
  2426. },
  2427. set: function(a) {
  2428. var d = this.jw;
  2429. d.e = a.e;
  2430. d.j = a.j;
  2431. d.f = a.f
  2432. },
  2433. enumerable: !0
  2434. },
  2435. b: {
  2436. get: function() {
  2437. return this.qw
  2438. },
  2439. set: function(a) {
  2440. var d = this.qw;
  2441. d.e = a.e;
  2442. d.j = a.j;
  2443. d.f = a.f
  2444. },
  2445. enumerable: !0
  2446. },
  2447. J: {
  2448. get: function() {
  2449. return this.tw
  2450. },
  2451. set: function(a) {
  2452. var d = this.tw;
  2453. d.e = a.e;
  2454. d.j = a.j;
  2455. d.f = a.f
  2456. },
  2457. enumerable: !0
  2458. }
  2459. })
  2460. };
  2461. b.p.Gq = function() {
  2462. var a = b.color;
  2463. a.vG = function() {
  2464. return a(255, 255, 255)
  2465. };
  2466. a.wG = function() {
  2467. return a(255, 255, 0)
  2468. };
  2469. a.XF = function() {
  2470. return a(0, 0, 255)
  2471. };
  2472. a.dG = function() {
  2473. return a(0, 255, 0)
  2474. };
  2475. a.mG = function() {
  2476. return a(255, 0, 0)
  2477. };
  2478. a.gG = function() {
  2479. return a(255, 0, 255)
  2480. };
  2481. a.WF = function() {
  2482. return a(0, 0, 0)
  2483. };
  2484. a.kG = function() {
  2485. return a(255, 127, 0)
  2486. };
  2487. a.cG = function() {
  2488. return a(166, 166, 166)
  2489. };
  2490. b.k(a, "WHITE", a.vG);
  2491. b.k(a, "YELLOW", a.wG);
  2492. b.k(a, "BLUE", a.XF);
  2493. b.k(a, "GREEN", a.dG);
  2494. b.k(a, "RED", a.mG);
  2495. b.k(a, "MAGENTA", a.gG);
  2496. b.k(a, "BLACK", a.WF);
  2497. b.k(a, "ORANGE", a.kG);
  2498. b.k(a, "GRAY", a.cG);
  2499. b.cb.CF = function() {
  2500. return new b.cb(b.ONE, b.ZERO)
  2501. };
  2502. b.cb.kF = function() {
  2503. return new b.cb(b.ONE, b.ONE_MINUS_SRC_ALPHA)
  2504. };
  2505. b.cb.jF = function() {
  2506. return new b.cb(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA)
  2507. };
  2508. b.cb.iF = function() {
  2509. return new b.cb(b.SRC_ALPHA, b.ONE)
  2510. };
  2511. b.k(b.cb, "DISABLE", b.cb.CF);
  2512. b.k(b.cb, "ALPHA_PREMULTIPLIED", b.cb.kF);
  2513. b.k(b.cb, "ALPHA_NON_PREMULTIPLIED", b.cb.jF);
  2514. b.k(b.cb, "ADDITIVE", b.cb.iF)
  2515. };
  2516. b.ad = function(a, c, d, e) {
  2517. this.r = a || 0;
  2518. this.g = c || 0;
  2519. this.b = d || 0;
  2520. this.a = e || 255
  2521. };
  2522. b.color = function(a, c, d, e) {
  2523. return void 0 === a ? {
  2524. r: 0,
  2525. g: 0,
  2526. b: 0,
  2527. a: 255
  2528. }: "string" === typeof a ? b.Uz(a) : "object" === typeof a ? {
  2529. r: a.r,
  2530. g: a.g,
  2531. b: a.b,
  2532. a: a.a || 255
  2533. }: {
  2534. r: a,
  2535. g: c,
  2536. b: d,
  2537. a: e || 255
  2538. }
  2539. };
  2540. b.hS = function(a, c) {
  2541. return a.r === c.r && a.g === c.g && a.b === c.b
  2542. };
  2543. b.FB = function() {
  2544. this.timestamp = this.z = this.y = this.x = 0
  2545. };
  2546. b.Sa = function(a, c) {
  2547. this.x = a || 0;
  2548. this.y = c || 0
  2549. };
  2550. b.Yd = function(a, c, d) {
  2551. this.x = a || 0;
  2552. this.y = c || 0;
  2553. this.z = d || 0
  2554. };
  2555. b.Xf = function(a, c) {
  2556. this.R = a || 0;
  2557. this.S = c || 0
  2558. };
  2559. b.cb = function(a, c) {
  2560. this.src = a;
  2561. this.Y = c
  2562. };
  2563. b.XR = function() {
  2564. return new b.cb(b.ONE, b.ZERO)
  2565. };
  2566. b.Uz = function(a) {
  2567. a = a.replace(/^#?/, "0x");
  2568. a = parseInt(a);
  2569. return b.color(a >> 16, (a >> 8) % 256, a % 256)
  2570. };
  2571. b.iS = function(a) {
  2572. var c = a.r.toString(16),
  2573. d = a.g.toString(16),
  2574. e = a.b.toString(16);
  2575. return "#" + (16 > a.r ? "0" + c: c) + (16 > a.g ? "0" + d: d) + (16 > a.b ? "0" + e: e)
  2576. };
  2577. b.cn = 0;
  2578. b.Yg = 1;
  2579. b.$v = 2;
  2580. b.Ek = 0;
  2581. b.VE = 1;
  2582. b.fw = 2;
  2583. b.KQ = b.oa.extend({
  2584. Ui: null,
  2585. Gl: null,
  2586. or: 0,
  2587. ctor: function() {
  2588. this.Ui = {};
  2589. this.Gl = {};
  2590. this.or = 2 << (0 | 10 * Math.random())
  2591. },
  2592. dF: function() {
  2593. this.or++;
  2594. return "key_" + this.or
  2595. },
  2596. AY: function(a, c) {
  2597. if (null != c) {
  2598. var d = this.dF();
  2599. this.Ui[d] = c;
  2600. this.Gl[d] = a
  2601. }
  2602. },
  2603. CL: function(a) {
  2604. if (null == a) return null;
  2605. var c = this.Ui,
  2606. d;
  2607. for (d in c) if (c[d] === a) return this.Gl[d];
  2608. return null
  2609. },
  2610. CZ: function(a) {
  2611. return this.CL(a)
  2612. },
  2613. cM: function(a) {
  2614. if (null != a) {
  2615. var c = this.Ui,
  2616. d;
  2617. for (d in c) if (c[d] === a) {
  2618. delete this.Gl[d];
  2619. delete c[d];
  2620. break
  2621. }
  2622. }
  2623. },
  2624. BX: function(a) {
  2625. if (null != a) for (var c = 0; c < a.length; c++) this.cM(a[c])
  2626. },
  2627. pI: function() {
  2628. var a = [],
  2629. c = this.Ui,
  2630. d;
  2631. for (d in c) a.push(c[d]);
  2632. return a
  2633. },
  2634. tX: function() {
  2635. this.Ui = {};
  2636. this.Gl = {}
  2637. },
  2638. count: function() {
  2639. return this.pI().length
  2640. }
  2641. });
  2642. b.Fv = function() {
  2643. this.fontName = "Arial";
  2644. this.fontSize = 12;
  2645. this.textAlign = b.Yg;
  2646. this.verticalAlign = b.Ek;
  2647. this.fillStyle = b.color(255, 255, 255, 255);
  2648. this.boundingHeight = this.boundingWidth = 0;
  2649. this.lv = !1;
  2650. this.strokeStyle = b.color(255, 255, 255, 255);
  2651. this.lineWidth = 1;
  2652. this.kB = !1;
  2653. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2654. this.shadowOpacity = 1
  2655. };
  2656. b.da === b.wb && (b.assert("function" === typeof b.p.gr, b.c.Gb, "CCTypesWebGL.js"), b.p.gr(), delete b.p.gr);
  2657. b.assert("function" === typeof b.p.Gq, b.c.Gb, "CCTypesPropertyDefine.js");
  2658. b.p.Gq();
  2659. delete b.p.Gq;
  2660. b.hQ = [];
  2661. b.iQ = {};
  2662. b.mq = b.oa.extend({
  2663. VQ: null,
  2664. oc: null,
  2665. Ai: null,
  2666. tg: null,
  2667. sc: null,
  2668. Ve: null,
  2669. Ts: !1,
  2670. ur: !0,
  2671. dh: 1,
  2672. Mt: "",
  2673. Qs: null,
  2674. O: 1,
  2675. Ux: 1,
  2676. ma: 1,
  2677. Vx: 1,
  2678. Oi: 0,
  2679. ts: 5,
  2680. he: null,
  2681. ry: null,
  2682. vy: null,
  2683. uy: null,
  2684. sy: null,
  2685. ty: null,
  2686. al: !1,
  2687. QQ: !1,
  2688. zR: null,
  2689. zx: null,
  2690. Ax: null,
  2691. vR: !1,
  2692. Er: null,
  2693. og: null,
  2694. Sr: 1,
  2695. kn: !1,
  2696. Ex: !0,
  2697. ctor: function() {
  2698. var a = document,
  2699. c = b.Rf,
  2700. d = b.Cd;
  2701. this.og = b.Jh.parentNode === a.body ? a.documentElement: b.Jh.parentNode;
  2702. this.oc = D(0, 0);
  2703. this.fs();
  2704. var a = b.ra.width,
  2705. e = b.ra.height;
  2706. this.Ai = D(a, e);
  2707. this.tg = D(a, e);
  2708. this.sc = E(0, 0, a, e);
  2709. this.Ve = E(0, 0, a, e);
  2710. this.Er = {
  2711. left: 0,
  2712. top: 0
  2713. };
  2714. this.Mt = "Cocos2dHTML5";
  2715. a = b.Aa;
  2716. this.vJ(a.Su == a.Nv || a.Su == a.Ov);
  2717. b.di && b.di.ga(this.Ve);
  2718. this.ry = new b.yc(c.sm, d.pq);
  2719. this.vy = new b.yc(c.tD, d.SHOW_ALL);
  2720. this.uy = new b.yc(c.sm, d.zq);
  2721. this.sy = new b.yc(c.sm, d.Mm);
  2722. this.ty = new b.yc(c.sm, d.qq);
  2723. this.zx = b.ra;
  2724. this.Ax = b.l
  2725. },
  2726. Rs: function() {
  2727. var a = this.tg.width,
  2728. c = this.tg.height;
  2729. this.Qs && (this.fs(), this.Qs.call());
  2730. 0 < a && this.Lp(a, c, this.he)
  2731. },
  2732. fM: function(a) {
  2733. a ? this.kn || (this.kn = !0, a = this.Rs.bind(this), b.ka(window, "resize", a, !1)) : this.kn && (this.kn = !0, a = this.Rs.bind(this), window.removeEventListener("resize", a, !1))
  2734. },
  2735. MY: function(a) {
  2736. if ("function" == typeof a || null == a) this.Qs = a
  2737. },
  2738. fs: function() {
  2739. var a = this.oc;
  2740. a.width = this.og.clientWidth;
  2741. a.height = this.og.clientHeight
  2742. },
  2743. LQ: function() {
  2744. var a = this.tg.width,
  2745. c = this.tg.height;
  2746. 0 < a && this.Lp(a, c, this.he)
  2747. },
  2748. MH: function() {
  2749. if (this.Ex) {
  2750. var a = {
  2751. "user-scalable": "no",
  2752. "maximum-scale": "1.0",
  2753. "initial-scale": "1.0"
  2754. },
  2755. c = document.getElementsByName("viewport"),
  2756. d;
  2757. 0 == c.length ? (c = b.rb("meta"), c.name = "viewport", c.content = "", document.head.appendChild(c)) : c = c[0];
  2758. if (b.Aa.Kf && b.Aa.Ih == b.Aa.$j) c.content = "initial-scale:1";
  2759. else {
  2760. d = c.content;
  2761. for (var e in a) RegExp(e).test(d) || (d += ("" == d ? "": ",") + e + "\x3d" + a[e]);
  2762. c.content = d
  2763. }
  2764. }
  2765. },
  2766. By: function() {
  2767. var a = b.Ka();
  2768. this.ma = this.O = a
  2769. },
  2770. oy: function() {
  2771. this.O = this.Ux;
  2772. this.ma = this.Vx
  2773. },
  2774. MQ: function() {},
  2775. WK: function() {
  2776. this.al = !0
  2777. },
  2778. lI: function(a) {
  2779. this.Ex = a
  2780. },
  2781. vJ: function(a) {
  2782. this.Ts = a ? !0 : !1
  2783. },
  2784. EV: function() {
  2785. return this.Ts
  2786. },
  2787. gT: function(a) {
  2788. this.ur = a ? !0 : !1
  2789. },
  2790. tV: function() {
  2791. return this.ur
  2792. },
  2793. end: function() {},
  2794. BV: function() {
  2795. return null != this.zx && null != this.Ax
  2796. },
  2797. qY: function(a) {
  2798. this.Sr = a;
  2799. b.Qa.Op(b.Qa.kh)
  2800. },
  2801. oZ: function() {},
  2802. uY: function() {},
  2803. bY: function(a, c) {
  2804. this.Er = {
  2805. left: a,
  2806. top: c
  2807. }
  2808. },
  2809. RT: function() {
  2810. return this.Er
  2811. },
  2812. iU: function() {
  2813. return D(this.oc.width, this.oc.height)
  2814. },
  2815. pY: function(a, c) {
  2816. this.oc.width = a;
  2817. this.oc.height = c;
  2818. this.og.style.width = a + "px";
  2819. this.og.style.height = c + "px";
  2820. this.Rs();
  2821. b.Qa.Op(b.Qa.kh)
  2822. },
  2823. cS: function() {},
  2824. Pl: function() {
  2825. return D(this.Ve.width, this.Ve.height)
  2826. },
  2827. Au: function() {
  2828. return C(this.Ve.x, this.Ve.y)
  2829. },
  2830. $R: function() {
  2831. return ! 0
  2832. },
  2833. KU: function() {
  2834. return this.he
  2835. },
  2836. XM: function(a) {
  2837. if (a instanceof b.yc) this.he = a;
  2838. else {
  2839. var c = b.yc;
  2840. a === c.pq && (this.he = this.ry);
  2841. a === c.SHOW_ALL && (this.he = this.vy);
  2842. a === c.zq && (this.he = this.uy);
  2843. a === c.Mm && (this.he = this.sy);
  2844. a === c.qq && (this.he = this.ty)
  2845. }
  2846. },
  2847. Lp: function(a, c, d) {
  2848. if (isNaN(a) || 0 == a || isNaN(c) || 0 == c) b.log(b.c.pC);
  2849. else {
  2850. this.XM(d);
  2851. var e = this.he;
  2852. if (e) {
  2853. e.Wh(this);
  2854. var f = this.oc.width,
  2855. g = this.oc.height;
  2856. b.Aa.Kf && this.MH(this.oc.width, this.oc.height);
  2857. this.fs();
  2858. if (d != this.he || a != this.tg.width || c != this.tg.height || f != this.oc.width || g != this.oc.height) this.Ai = D(a, c),
  2859. this.tg = D(a, c),
  2860. a = e.apply(this, this.Ai),
  2861. a.scale && 2 == a.scale.length && (this.O = a.scale[0], this.ma = a.scale[1]),
  2862. a.viewport && (a = this.sc = a.viewport, c = this.Ve, c.width = b.ra.width / this.O, c.height = b.ra.height / this.ma, c.x = -a.x / this.O, c.y = -a.y / this.ma),
  2863. a = b.Qa,
  2864. b.aa.width = a.ab.width = this.Ve.width,
  2865. b.aa.height = a.ab.height = this.Ve.height,
  2866. e.Vh(this),
  2867. b.da == b.wb && (a.yi(), a.ZA()),
  2868. this.Ux = this.O,
  2869. this.Vx = this.ma,
  2870. b.gC && b.gC.oR(),
  2871. b.di && b.di.ga(this.Ve)
  2872. } else b.log(b.c.qC)
  2873. }
  2874. },
  2875. su: function() {
  2876. return D(this.Ai.width, this.Ai.height)
  2877. },
  2878. lN: function(a, c, d, e) {
  2879. var f = this.Sr,
  2880. g = this.O,
  2881. h = this.ma;
  2882. b.l.viewport(a * g * f + this.sc.x * f, c * h * f + this.sc.y * f, d * g * f, e * h * f)
  2883. },
  2884. OY: function(a, c, d, e) {
  2885. var f = this.Sr,
  2886. g = this.O,
  2887. h = this.ma;
  2888. b.l.scissor(a * g * f + this.sc.x * f, c * h * f + this.sc.y * f, d * g * f, e * h * f)
  2889. },
  2890. GV: function() {
  2891. var a = b.l;
  2892. return a.isEnabled(a.SCISSOR_TEST)
  2893. },
  2894. OU: function() {
  2895. var a = b.l,
  2896. c = this.O,
  2897. d = this.ma,
  2898. a = a.getParameter(a.SCISSOR_BOX);
  2899. return E((a[0] - this.sc.x) / c, (a[1] - this.sc.y) / d, a[2] / c, a[3] / d)
  2900. },
  2901. $Y: function(a) {
  2902. null != a && 0 < a.length && (this.Mt = a)
  2903. },
  2904. eV: function() {
  2905. return this.Mt
  2906. },
  2907. fV: function() {
  2908. return this.sc
  2909. },
  2910. Lz: function() {
  2911. return this.O
  2912. },
  2913. Mz: function() {
  2914. return this.ma
  2915. },
  2916. ZT: function() {
  2917. return this.dh
  2918. },
  2919. cu: function(a, c, d) {
  2920. return {
  2921. x: this.dh * (a - d.left),
  2922. y: this.dh * (d.top + d.height - c)
  2923. }
  2924. },
  2925. xF: function(a, c) {
  2926. var d = this.sc;
  2927. a.x = (this.dh * (a.x - c.left) - d.x) / this.O;
  2928. a.y = (this.dh * (c.top + c.height - a.y) - d.y) / this.ma
  2929. },
  2930. Cn: function(a) {
  2931. for (var c = this.sc,
  2932. d = this.O,
  2933. e = this.ma,
  2934. f, g, h, k = 0; k < a.length; k++) f = a[k],
  2935. g = f.Qb,
  2936. h = f.Qe,
  2937. f.et((g.x - c.x) / d, (g.y - c.y) / e),
  2938. f.bj((h.x - c.x) / d, (h.y - c.y) / e)
  2939. }
  2940. });
  2941. b.mq.Zr = function() {
  2942. this.ao || (this.ao = this.ao || new b.mq, this.ao.WK());
  2943. return this.ao
  2944. };
  2945. b.Rf = b.oa.extend({
  2946. Wh: function() {},
  2947. apply: function() {},
  2948. Vh: function() {},
  2949. it: function(a, c, d) {
  2950. var e = a.og;
  2951. b.view.ur && b.Aa.Kf && e == document.documentElement && b.screen.EI(e);
  2952. var e = b.ra,
  2953. f = b.Jh;
  2954. f.style.width = e.style.width = c + "px";
  2955. f.style.height = e.style.height = d + "px";
  2956. f = a.dh = 1;
  2957. a.Ts && (f = a.dh = window.devicePixelRatio || 1);
  2958. e.width = c * f;
  2959. e.height = d * f;
  2960. a = document.body;
  2961. var g;
  2962. a && (g = a.style) && (g.paddingTop = g.paddingTop || "0px", g.paddingRight = g.paddingRight || "0px", g.paddingBottom = g.paddingBottom || "0px", g.paddingLeft = g.paddingLeft || "0px", g.borderTop = g.borderTop || "0px", g.borderRight = g.borderRight || "0px", g.borderBottom = g.borderBottom || "0px", g.borderLeft = g.borderLeft || "0px", g.marginTop = g.marginTop || "0px", g.marginRight = g.marginRight || "0px", g.marginBottom = g.marginBottom || "0px", g.marginLeft = g.marginLeft || "0px")
  2963. },
  2964. px: function() {
  2965. document.body.insertBefore(b.Jh, document.body.firstChild);
  2966. var a = document.body.style;
  2967. a.width = window.innerWidth + "px";
  2968. a.height = window.innerHeight + "px";
  2969. a.overflow = "hidden";
  2970. a = b.Jh.style;
  2971. a.position = "fixed";
  2972. a.left = a.top = "0px";
  2973. document.body.scrollTop = 0
  2974. }
  2975. });
  2976. b.Cd = b.oa.extend({
  2977. Ss: {
  2978. scale: [1, 1],
  2979. viewport: null
  2980. },
  2981. Nk: function(a, c, d, e, f, g) {
  2982. 2 > Math.abs(a - d) && (d = a);
  2983. 2 > Math.abs(c - e) && (e = c);
  2984. a = E(Math.round((a - d) / 2), Math.round((c - e) / 2), d, e);
  2985. b.da == b.Ya && b.l.translate(a.x, a.y + e);
  2986. this.Ss.scale = [f, g];
  2987. this.Ss.viewport = a;
  2988. return this.Ss
  2989. },
  2990. Wh: function() {},
  2991. apply: function() {
  2992. return {
  2993. scale: [1, 1]
  2994. }
  2995. },
  2996. Vh: function() {}
  2997. }); (function() {
  2998. var a = b.Rf.extend({
  2999. apply: function(a) {
  3000. this.it(a, a.oc.width, a.oc.height)
  3001. }
  3002. }),
  3003. c = b.Rf.extend({
  3004. apply: function(a, c) {
  3005. var d = a.oc.width,
  3006. e = a.oc.height,
  3007. f = b.Jh.style,
  3008. r = c.width,
  3009. s = c.height,
  3010. u = d / r,
  3011. t = e / s,
  3012. v, w;
  3013. u < t ? (v = d, w = s * u) : (v = r * t, w = e);
  3014. r = Math.round((d - v) / 2);
  3015. w = Math.round((e - w) / 2);
  3016. this.it(a, d - 2 * r, e - 2 * w);
  3017. f.marginLeft = r + "px";
  3018. f.marginRight = r + "px";
  3019. f.marginTop = w + "px";
  3020. f.marginBottom = w + "px"
  3021. }
  3022. });
  3023. a.extend({
  3024. Wh: function(a) {
  3025. this._super(a);
  3026. a.og = document.documentElement
  3027. },
  3028. apply: function(a) {
  3029. this._super(a);
  3030. this.px()
  3031. }
  3032. });
  3033. c.extend({
  3034. Wh: function(a) {
  3035. this._super(a);
  3036. a.og = document.documentElement
  3037. },
  3038. apply: function(a, c) {
  3039. this._super(a, c);
  3040. this.px()
  3041. }
  3042. });
  3043. var d = b.Rf.extend({
  3044. apply: function(a) {
  3045. this.it(a, b.ra.width, b.ra.height)
  3046. }
  3047. });
  3048. b.Rf.sm = new a;
  3049. b.Rf.tD = new c;
  3050. b.Rf.RP = new d;
  3051. var a = b.Cd.extend({
  3052. apply: function(a, c) {
  3053. var d = b.ra.width,
  3054. e = b.ra.height;
  3055. return this.Nk(d, e, d, e, d / c.width, e / c.height)
  3056. }
  3057. }),
  3058. c = b.Cd.extend({
  3059. apply: function(a, c) {
  3060. var d = b.ra.width,
  3061. e = b.ra.height,
  3062. f = c.width,
  3063. r = c.height,
  3064. s = d / f,
  3065. u = e / r,
  3066. t = 0,
  3067. v, w;
  3068. s < u ? (t = s, v = d, w = r * t) : (t = u, v = f * t, w = e);
  3069. return this.Nk(d, e, v, w, t, t)
  3070. }
  3071. }),
  3072. d = b.Cd.extend({
  3073. apply: function(a, c) {
  3074. var d = b.ra.width,
  3075. e = b.ra.height,
  3076. f = c.width,
  3077. r = c.height,
  3078. s = d / f,
  3079. u = e / r,
  3080. t, v, w;
  3081. s < u ? (t = u, v = f * t, w = e) : (t = s, v = d, w = r * t);
  3082. return this.Nk(d, e, v, w, t, t)
  3083. }
  3084. }),
  3085. e = b.Cd.extend({
  3086. apply: function(a, c) {
  3087. var d = b.ra.width,
  3088. e = b.ra.height,
  3089. f = e / c.height;
  3090. return this.Nk(d, e, d, e, f, f)
  3091. },
  3092. Vh: function(a) {
  3093. b.Qa.ab = a.Pl()
  3094. }
  3095. }),
  3096. f = b.Cd.extend({
  3097. apply: function(a, c) {
  3098. var d = b.ra.width,
  3099. e = b.ra.height,
  3100. f = d / c.width;
  3101. return this.Nk(d, e, d, e, f, f)
  3102. },
  3103. Vh: function(a) {
  3104. b.Qa.ab = a.Pl()
  3105. }
  3106. });
  3107. b.Cd.pq = new a;
  3108. b.Cd.SHOW_ALL = new c;
  3109. b.Cd.zq = new d;
  3110. b.Cd.Mm = new e;
  3111. b.Cd.qq = new f
  3112. })();
  3113. b.yc = b.oa.extend({
  3114. An: null,
  3115. Bn: null,
  3116. ctor: function(a, c) {
  3117. this.BM(a);
  3118. this.CM(c)
  3119. },
  3120. Wh: function(a) {
  3121. this.An.Wh(a);
  3122. this.Bn.Wh(a)
  3123. },
  3124. apply: function(a, c) {
  3125. this.An.apply(a, c);
  3126. return this.Bn.apply(a, c)
  3127. },
  3128. Vh: function(a) {
  3129. this.An.Vh(a);
  3130. this.Bn.Vh(a)
  3131. },
  3132. BM: function(a) {
  3133. a instanceof b.Rf && (this.An = a)
  3134. },
  3135. CM: function(a) {
  3136. a instanceof b.Cd && (this.Bn = a)
  3137. }
  3138. });
  3139. b.yc.pq = 0;
  3140. b.yc.zq = 1;
  3141. b.yc.SHOW_ALL = 2;
  3142. b.yc.Mm = 3;
  3143. b.yc.qq = 4;
  3144. b.yc.SE = 5;
  3145. b.screen = {
  3146. Lo: !1,
  3147. Gs: null,
  3148. Et: "",
  3149. ng: null,
  3150. LF: [["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"], ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"], ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"]],
  3151. ga: function() {
  3152. this.ng = {};
  3153. var a, c, d = this.LF,
  3154. e;
  3155. a = 0;
  3156. for (l = d.length; a < l; a++) if ((c = d[a]) && c[1] in document) {
  3157. a = 0;
  3158. for (e = c.length; a < e; a++) this.ng[d[0][a]] = c[a];
  3159. break
  3160. }
  3161. this.Lo = void 0 != this.ng.requestFullscreen;
  3162. this.Et = "ontouchstart" in window ? "touchstart": "mousedown"
  3163. },
  3164. fullScreen: function() {
  3165. return this.Lo && document[this.ng.fullscreenEnabled]
  3166. },
  3167. HA: function(a, c) {
  3168. if (this.Lo) {
  3169. a = a || document.documentElement;
  3170. a[this.ng.requestFullscreen]();
  3171. if (c) {
  3172. var d = this.ng.CT;
  3173. this.Gs && document.removeEventListener(d, this.Gs);
  3174. this.Gs = c;
  3175. b.ka(document, d, c, !1)
  3176. }
  3177. return a[this.ng.requestFullscreen]()
  3178. }
  3179. },
  3180. kT: function() {
  3181. return this.Lo ? document[this.ng.exitFullscreen]() : !0
  3182. },
  3183. EI: function(a, c) {
  3184. function d() {
  3185. f.HA(a, c);
  3186. e.removeEventListener(f.Et, d)
  3187. }
  3188. a = a || document.body;
  3189. var e = b.ra || a,
  3190. f = this;
  3191. this.HA(a, c);
  3192. b.ka(e, this.Et, d)
  3193. }
  3194. };
  3195. b.screen.ga();
  3196. b.di = {
  3197. tB: C(0, 0),
  3198. uB: C(0, 0),
  3199. top: C(0, 0),
  3200. Wt: C(0, 0),
  3201. iz: C(0, 0),
  3202. bottom: C(0, 0),
  3203. Zo: C(0, 0),
  3204. left: C(0, 0),
  3205. right: C(0, 0),
  3206. width: 0,
  3207. height: 0,
  3208. ga: function(a) {
  3209. var c = this.width = a.width,
  3210. d = this.height = a.height,
  3211. e = a.x;
  3212. a = a.y;
  3213. var f = a + d,
  3214. g = e + c;
  3215. this.tB.x = e;
  3216. this.tB.y = f;
  3217. this.uB.x = g;
  3218. this.uB.y = f;
  3219. this.top.x = e + c / 2;
  3220. this.top.y = f;
  3221. this.Wt.x = e;
  3222. this.Wt.y = a;
  3223. this.iz.x = g;
  3224. this.iz.y = a;
  3225. this.bottom.x = e + c / 2;
  3226. this.bottom.y = a;
  3227. this.Zo.x = e + c / 2;
  3228. this.Zo.y = a + d / 2;
  3229. this.left.x = e;
  3230. this.left.y = a + d / 2;
  3231. this.right.x = g;
  3232. this.right.y = a + d / 2
  3233. }
  3234. };
  3235. b.OE = -90;
  3236. b.PE = 90;
  3237. b.QE = 180;
  3238. b.jQ = 0;
  3239. b.dA = {
  3240. Wi: !1,
  3241. Ix: !1,
  3242. ay: C(0, 0),
  3243. iH: C(0, 0),
  3244. by: [],
  3245. Hs: 0,
  3246. Ag: [],
  3247. Ft: {},
  3248. Oi: 0,
  3249. ts: 5,
  3250. mn: !1,
  3251. nn: 1 / 30,
  3252. lw: 1,
  3253. Zg: 0,
  3254. qr: null,
  3255. ln: null,
  3256. tG: function() {
  3257. for (var a = this.Oi,
  3258. c = 0; c < this.ts; c++) {
  3259. if (! (a & 1)) return this.Oi |= 1 << c,
  3260. c;
  3261. a >>= 1
  3262. }
  3263. return - 1
  3264. },
  3265. pH: function(a) {
  3266. 0 > a || a >= this.ts || (a = ~ (1 << a), this.Oi &= a)
  3267. },
  3268. pg: null,
  3269. Bu: function(a) {
  3270. for (var c, d, e, f = [], g = this.Ft, h = 0, k = a.length; h < k; h++) c = a[h],
  3271. e = c.ce,
  3272. d = g[e],
  3273. null == d && (d = this.tG(), -1 == d ? b.log(b.c.XK, d) : (c = this.Ag[d] = c, g[e] = d, f.push(c)));
  3274. 0 < f.length && (this.pg.Cn(f), a = new b.Dd(f), a.jg = b.Dd.ii.Xp, b.I.dispatchEvent(a))
  3275. },
  3276. Cu: function(a) {
  3277. for (var c, d, e = [], f = this.Ag, g = 0, h = a.length; g < h; g++) c = a[g],
  3278. d = c.ce,
  3279. d = this.Ft[d],
  3280. null != d && f[d] && (f[d].et(c.Qb), f[d].bj(c.Qe), e.push(f[d]));
  3281. 0 < e.length && (this.pg.Cn(e), a = new b.Dd(e), a.jg = b.Dd.ii.yq, b.I.dispatchEvent(a))
  3282. },
  3283. sp: function(a) {
  3284. a = this.Nz(a);
  3285. 0 < a.length && (this.pg.Cn(a), a = new b.Dd(a), a.jg = b.Dd.ii.nq, b.I.dispatchEvent(a))
  3286. },
  3287. Tz: function(a) {
  3288. a = this.Nz(a);
  3289. 0 < a.length && (this.pg.Cn(a), a = new b.Dd(a), a.jg = b.Dd.ii.dq, b.I.dispatchEvent(a))
  3290. },
  3291. Nz: function(a) {
  3292. for (var c, d, e, f = [], g = this.Ag, h = this.Ft, k = 0, m = a.length; k < m; k++) c = a[k],
  3293. e = c.ce,
  3294. d = h[e],
  3295. null != d && g[d] && (g[d].et(c.Qb), g[d].bj(c.Qe), f.push(g[d]), this.pH(d), delete h[e]);
  3296. return f
  3297. },
  3298. oe: function(a) {
  3299. var c = document.documentElement,
  3300. d = window,
  3301. e = null,
  3302. e = "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? {
  3303. left: 0,
  3304. top: 0,
  3305. width: a.width,
  3306. height: a.height
  3307. }: {
  3308. left: 0,
  3309. top: 0,
  3310. width: parseInt(a.style.width),
  3311. height: parseInt(a.style.height)
  3312. };
  3313. return {
  3314. left: e.left + d.pageXOffset - c.clientLeft,
  3315. top: e.top + d.pageYOffset - c.clientTop,
  3316. width: e.width,
  3317. height: e.height
  3318. }
  3319. },
  3320. uK: function(a) {
  3321. for (var c = null,
  3322. d = this.by,
  3323. e = a.ce,
  3324. f = d.length - 1; 0 <= f; f--) if (d[f].ce == e) {
  3325. c = d[f];
  3326. break
  3327. }
  3328. c || (c = a);
  3329. return c
  3330. },
  3331. WM: function(a) {
  3332. for (var c = !1,
  3333. d = this.by,
  3334. e = a.ce,
  3335. f = d.length - 1; 0 <= f; f--) if (d[f].ce == e) {
  3336. d[f] = a;
  3337. c = !0;
  3338. break
  3339. }
  3340. c || (50 >= d.length ? d.push(a) : (d[this.Hs] = a, this.Hs = (this.Hs + 1) % 50))
  3341. },
  3342. Ol: function(a, c, d) {
  3343. var e = this.ay;
  3344. a = this.pg.cu(a, c, d);
  3345. c = new b.ar(a.x, a.y);
  3346. c.bj(e.x, e.y);
  3347. e.x = a.x;
  3348. e.y = a.y;
  3349. return c
  3350. },
  3351. vj: function(a, c, d) {
  3352. var e = this.iH;
  3353. this.pg.xF(a, c);
  3354. c = new b.tb(d);
  3355. c.MM(a.x, a.y);
  3356. c.CH(e.x, e.y);
  3357. e.x = a.x;
  3358. e.y = a.y;
  3359. return c
  3360. },
  3361. yj: function(a, c) {
  3362. if (null != a.pageX) return {
  3363. x: a.pageX,
  3364. y: a.pageY
  3365. };
  3366. c.left -= document.body.scrollLeft;
  3367. c.top -= document.body.scrollTop;
  3368. return {
  3369. x: a.clientX,
  3370. y: a.clientY
  3371. }
  3372. },
  3373. qp: function(a, c) {
  3374. for (var d = [], e = this.pg, f, g, h = this.ay, k = a.changedTouches.length, m = 0; m < k; m++) if (f = a.changedTouches[m]) {
  3375. var n;
  3376. n = b.Aa.$j === b.Aa.Ih ? e.cu(f.pageX, f.pageY, c) : e.cu(f.clientX, f.clientY, c);
  3377. null != f.identifier ? (f = new b.ar(n.x, n.y, f.identifier), g = this.uK(f).Oh(), f.bj(g.x, g.y), this.WM(f)) : (f = new b.ar(n.x, n.y), f.bj(h.x, h.y));
  3378. h.x = n.x;
  3379. h.y = n.y;
  3380. d.push(f)
  3381. }
  3382. return d
  3383. },
  3384. XL: function(a) {
  3385. if (!this.Ix) {
  3386. var c = this.pg = b.view,
  3387. d = this,
  3388. e = "touches" in b.Aa.Zt;
  3389. "mouse" in b.Aa.Zt && (b.ka(window, "mousedown",
  3390. function() {
  3391. d.Wi = !0
  3392. },
  3393. !1), b.ka(window, "mouseup",
  3394. function(c) {
  3395. var f = d.Wi;
  3396. d.Wi = !1;
  3397. if (f) {
  3398. var f = d.oe(a),
  3399. g = d.yj(c, f);
  3400. b.zA(new b.Uv(f.left, f.top, f.width, f.height), g) || (e || d.sp([d.Ol(g.x, g.y, f)]), f = d.vj(g, f, b.tb.br), f.ai(c.button), b.I.dispatchEvent(f))
  3401. }
  3402. },
  3403. !1), b.ka(a, "mousedown",
  3404. function(c) {
  3405. d.Wi = !0;
  3406. var f = d.oe(a),
  3407. g = d.yj(c, f);
  3408. e || d.Bu([d.Ol(g.x, g.y, f)]);
  3409. f = d.vj(g, f, b.tb.Av);
  3410. f.ai(c.button);
  3411. b.I.dispatchEvent(f);
  3412. c.stopPropagation();
  3413. c.preventDefault();
  3414. a.focus()
  3415. },
  3416. !1), b.ka(a, "mouseup",
  3417. function(c) {
  3418. d.Wi = !1;
  3419. var f = d.oe(a),
  3420. g = d.yj(c, f);
  3421. e || d.sp([d.Ol(g.x, g.y, f)]);
  3422. f = d.vj(g, f, b.tb.br);
  3423. f.ai(c.button);
  3424. b.I.dispatchEvent(f);
  3425. c.stopPropagation();
  3426. c.preventDefault()
  3427. },
  3428. !1), b.ka(a, "mousemove",
  3429. function(c) {
  3430. var f = d.oe(a),
  3431. g = d.yj(c, f);
  3432. e || d.Cu([d.Ol(g.x, g.y, f)]);
  3433. f = d.vj(g, f, b.tb.Lv);
  3434. d.Wi ? f.ai(c.button) : f.ai(null);
  3435. b.I.dispatchEvent(f);
  3436. c.stopPropagation();
  3437. c.preventDefault()
  3438. },
  3439. !1), b.ka(a, "mousewheel",
  3440. function(c) {
  3441. var e = d.oe(a),
  3442. f = d.yj(c, e),
  3443. e = d.vj(f, e, b.tb.Vq);
  3444. e.ai(c.button);
  3445. e.fB(0, c.wheelDelta);
  3446. b.I.dispatchEvent(e);
  3447. c.stopPropagation();
  3448. c.preventDefault()
  3449. },
  3450. !1), b.ka(a, "DOMMouseScroll",
  3451. function(c) {
  3452. var e = d.oe(a),
  3453. f = d.yj(c, e),
  3454. e = d.vj(f, e, b.tb.Vq);
  3455. e.ai(c.button);
  3456. e.fB(0, -120 * c.detail);
  3457. b.I.dispatchEvent(e);
  3458. c.stopPropagation();
  3459. c.preventDefault()
  3460. },
  3461. !1));
  3462. if (window.navigator.msPointerEnabled) {
  3463. var f = {
  3464. MSPointerDown: d.Bu,
  3465. MSPointerMove: d.Cu,
  3466. MSPointerUp: d.sp,
  3467. MSPointerCancel: d.Tz
  3468. },
  3469. g;
  3470. for (g in f)(function(c, e) {
  3471. b.ka(a, c,
  3472. function(c) {
  3473. var f = d.oe(a);
  3474. f.left -= document.documentElement.scrollLeft;
  3475. f.top -= document.documentElement.scrollTop;
  3476. e.call(d, [d.Ol(c.clientX, c.clientY, f)]);
  3477. c.stopPropagation()
  3478. },
  3479. !1)
  3480. })(g, f[g])
  3481. }
  3482. e && (b.ka(a, "touchstart",
  3483. function(c) {
  3484. if (c.changedTouches) {
  3485. var e = d.oe(a);
  3486. e.left -= document.body.scrollLeft;
  3487. e.top -= document.body.scrollTop;
  3488. d.Bu(d.qp(c, e));
  3489. c.stopPropagation();
  3490. c.preventDefault();
  3491. a.focus()
  3492. }
  3493. },
  3494. !1), b.ka(a, "touchmove",
  3495. function(c) {
  3496. if (c.changedTouches) {
  3497. var e = d.oe(a);
  3498. e.left -= document.body.scrollLeft;
  3499. e.top -= document.body.scrollTop;
  3500. d.Cu(d.qp(c, e));
  3501. c.stopPropagation();
  3502. c.preventDefault()
  3503. }
  3504. },
  3505. !1), b.ka(a, "touchend",
  3506. function(c) {
  3507. if (c.changedTouches) {
  3508. var e = d.oe(a);
  3509. e.left -= document.body.scrollLeft;
  3510. e.top -= document.body.scrollTop;
  3511. d.sp(d.qp(c, e));
  3512. c.stopPropagation();
  3513. c.preventDefault()
  3514. }
  3515. },
  3516. !1), b.ka(a, "touchcancel",
  3517. function(e) {
  3518. if (e.changedTouches) {
  3519. var f = d.oe(a);
  3520. f.left -= document.body.scrollLeft;
  3521. f.top -= document.body.scrollTop;
  3522. c.Tz(d.qp(e, f));
  3523. e.stopPropagation();
  3524. e.preventDefault()
  3525. }
  3526. },
  3527. !1));
  3528. this.ky();
  3529. this.jy();
  3530. this.Ix = !0
  3531. }
  3532. },
  3533. ky: function() {},
  3534. jy: function() {},
  3535. update: function(a) {
  3536. this.Zg > this.nn && (this.Zg -= this.nn, b.I.dispatchEvent(new b.vC(this.qr)));
  3537. this.Zg += a
  3538. }
  3539. };
  3540. var p = b.dA;
  3541. p.SX = function(a) {
  3542. this.mn !== a && (this.mn = a, a = b.Qa.Ig(), this.mn ? (this.Zg = 0, a.bv(this)) : (this.Zg = 0, a.nm(this)))
  3543. };
  3544. p.TX = function(a) {
  3545. this.nn !== a && (this.nn = a)
  3546. };
  3547. p.ky = function() {
  3548. b.ka(b.ra, "keydown",
  3549. function(a) {
  3550. b.I.dispatchEvent(new b.Ev(a.keyCode, !0));
  3551. a.stopPropagation();
  3552. a.preventDefault()
  3553. },
  3554. !1);
  3555. b.ka(b.ra, "keyup",
  3556. function(a) {
  3557. b.I.dispatchEvent(new b.Ev(a.keyCode, !1));
  3558. a.stopPropagation();
  3559. a.preventDefault()
  3560. },
  3561. !1)
  3562. };
  3563. p.jy = function() {
  3564. var a = window;
  3565. this.qr = new b.FB;
  3566. this.ln = a.DeviceMotionEvent || a.DeviceOrientationEvent;
  3567. b.Aa.Ih == b.Aa.vv && (this.ln = window.DeviceOrientationEvent);
  3568. b.ka(a, this.ln == a.DeviceMotionEvent ? "devicemotion": "deviceorientation", this.bJ.bind(this), !1)
  3569. };
  3570. p.bJ = function(a) {
  3571. var c = window;
  3572. if (this.mn) {
  3573. var d = this.qr;
  3574. if (this.ln == window.DeviceMotionEvent) {
  3575. var e = a.accelerationIncludingGravity;
  3576. d.x = this.lw * e.x * 0.1;
  3577. d.y = this.lw * e.y * 0.1;
  3578. d.z = 0.1 * e.z
  3579. } else d.x = a.gamma / 90 * 0.981,
  3580. d.y = 0.981 * -(a.beta / 90),
  3581. d.z = a.alpha / 90 * 0.981;
  3582. d.timestamp = a.timeStamp || Date.now();
  3583. a = d.x;
  3584. c.orientation === b.PE ? (d.x = -d.y, d.y = a) : c.orientation === b.OE ? (d.x = d.y, d.y = -a) : c.orientation === b.QE && (d.x = -d.x, d.y = -d.y)
  3585. }
  3586. };
  3587. delete p;
  3588. b.sO = function(a, c, d, e, f, g) {
  3589. this.a = a;
  3590. this.b = c;
  3591. this.J = d;
  3592. this.P = e;
  3593. this.Z = f;
  3594. this.$ = g
  3595. };
  3596. b.MR = function(a, c, d, e, f, g) {
  3597. return {
  3598. a: a,
  3599. b: c,
  3600. J: d,
  3601. P: e,
  3602. Z: f,
  3603. $: g
  3604. }
  3605. };
  3606. b.vA = function(a, c) {
  3607. return {
  3608. x: c.a * a.x + c.J * a.y + c.Z,
  3609. y: c.b * a.x + c.P * a.y + c.$
  3610. }
  3611. };
  3612. b.vg = function(a, c, d) {
  3613. return {
  3614. x: d.a * a + d.J * c + d.Z,
  3615. y: d.b * a + d.P * c + d.$
  3616. }
  3617. };
  3618. b.bZ = function(a, c) {
  3619. return {
  3620. width: c.a * a.width + c.J * a.height,
  3621. height: c.b * a.width + c.P * a.height
  3622. }
  3623. };
  3624. b.NR = function() {
  3625. return {
  3626. a: 1,
  3627. b: 0,
  3628. J: 0,
  3629. P: 1,
  3630. Z: 0,
  3631. $: 0
  3632. }
  3633. };
  3634. b.LR = function() {
  3635. return {
  3636. a: 1,
  3637. b: 0,
  3638. J: 0,
  3639. P: 1,
  3640. Z: 0,
  3641. $: 0
  3642. }
  3643. };
  3644. b.Xu = function(a, c) {
  3645. var d = b.Nj(a),
  3646. e = b.Mj(a),
  3647. f = b.em(a),
  3648. g = b.fm(a),
  3649. h = b.vg(e, d, c),
  3650. d = b.vg(f, d, c),
  3651. e = b.vg(e, g, c),
  3652. k = b.vg(f, g, c),
  3653. f = Math.min(h.x, d.x, e.x, k.x),
  3654. g = Math.max(h.x, d.x, e.x, k.x),
  3655. m = Math.min(h.y, d.y, e.y, k.y),
  3656. h = Math.max(h.y, d.y, e.y, k.y);
  3657. return E(f, m, g - f, h - m)
  3658. };
  3659. b.jH = function(a, c) {
  3660. var d = b.Nj(a),
  3661. e = b.Mj(a),
  3662. f = b.em(a),
  3663. g = b.fm(a),
  3664. h = b.vg(e, d, c),
  3665. d = b.vg(f, d, c),
  3666. e = b.vg(e, g, c),
  3667. k = b.vg(f, g, c),
  3668. f = Math.min(h.x, d.x, e.x, k.x),
  3669. g = Math.max(h.x, d.x, e.x, k.x),
  3670. m = Math.min(h.y, d.y, e.y, k.y),
  3671. h = Math.max(h.y, d.y, e.y, k.y);
  3672. a.x = f;
  3673. a.y = m;
  3674. a.width = g - f;
  3675. a.height = h - m;
  3676. return a
  3677. };
  3678. b.mI = function(a, c, d) {
  3679. return {
  3680. a: a.a,
  3681. b: a.b,
  3682. J: a.J,
  3683. P: a.P,
  3684. Z: a.Z + a.a * c + a.J * d,
  3685. $: a.$ + a.b * c + a.P * d
  3686. }
  3687. };
  3688. b.PR = function(a, c, d) {
  3689. return {
  3690. a: a.a * c,
  3691. b: a.b * c,
  3692. J: a.J * d,
  3693. P: a.P * d,
  3694. Z: a.Z,
  3695. $: a.$
  3696. }
  3697. };
  3698. b.OR = function(a, c) {
  3699. var d = Math.sin(c),
  3700. e = Math.cos(c);
  3701. return {
  3702. a: a.a * e + a.J * d,
  3703. b: a.b * e + a.P * d,
  3704. J: a.J * e - a.a * d,
  3705. P: a.P * e - a.b * d,
  3706. Z: a.Z,
  3707. $: a.$
  3708. }
  3709. };
  3710. b.Eh = function(a, c) {
  3711. return {
  3712. a: a.a * c.a + a.b * c.J,
  3713. b: a.a * c.b + a.b * c.P,
  3714. J: a.J * c.a + a.P * c.J,
  3715. P: a.J * c.b + a.P * c.P,
  3716. Z: a.Z * c.a + a.$ * c.J + c.Z,
  3717. $: a.Z * c.b + a.$ * c.P + c.$
  3718. }
  3719. };
  3720. b.KR = function(a, c) {
  3721. return a.a === c.a && a.b === c.b && a.J === c.J && a.P === c.P && a.Z === c.Z && a.$ === c.$
  3722. };
  3723. b.az = function(a) {
  3724. var c = 1 / (a.a * a.P - a.b * a.J);
  3725. return {
  3726. a: c * a.P,
  3727. b: -c * a.b,
  3728. J: -c * a.J,
  3729. P: c * a.a,
  3730. Z: c * (a.J * a.$ - a.P * a.Z),
  3731. $: c * (a.b * a.Z - a.a * a.$)
  3732. }
  3733. };
  3734. b.Sv = parseFloat("1.192092896e-07F");
  3735. b.Uu = function(a) {
  3736. return C( - a.x, -a.y)
  3737. };
  3738. b.Jj = function(a, c) {
  3739. return C(a.x + c.x, a.y + c.y)
  3740. };
  3741. b.uc = function(a, c) {
  3742. return C(a.x - c.x, a.y - c.y)
  3743. };
  3744. b.Kg = function(a, c) {
  3745. return C(a.x * c, a.y * c)
  3746. };
  3747. b.tA = function(a, c) {
  3748. return b.Kg(b.Jj(a, c), 0.5)
  3749. };
  3750. b.Kj = function(a, c) {
  3751. return a.x * c.x + a.y * c.y
  3752. };
  3753. b.EL = function(a, c) {
  3754. return a.x * c.y - a.y * c.x
  3755. };
  3756. b.Gp = function(a) {
  3757. return C( - a.y, a.x)
  3758. };
  3759. b.JW = function(a) {
  3760. return C(a.y, -a.x)
  3761. };
  3762. b.IW = function(a, c) {
  3763. return b.Kg(c, b.Kj(a, c) / b.Kj(c, c))
  3764. };
  3765. b.KW = function(a, c) {
  3766. return C(a.x * c.x - a.y * c.y, a.x * c.y + a.y * c.x)
  3767. };
  3768. b.QW = function(a, c) {
  3769. return C(a.x * c.x + a.y * c.y, a.y * c.x - a.x * c.y)
  3770. };
  3771. b.rA = function(a) {
  3772. return b.Kj(a, a)
  3773. };
  3774. b.zW = function(a, c) {
  3775. return b.rA(b.uc(a, c))
  3776. };
  3777. b.Tu = function(a) {
  3778. return Math.sqrt(b.rA(a))
  3779. };
  3780. b.yW = function(a, c) {
  3781. return b.Tu(b.uc(a, c))
  3782. };
  3783. b.Td = function(a) {
  3784. return b.Kg(a, 1 / b.Tu(a))
  3785. };
  3786. b.AW = function(a) {
  3787. return C(Math.cos(a), Math.sin(a))
  3788. };
  3789. b.PW = function(a) {
  3790. return Math.atan2(a.y, a.x)
  3791. };
  3792. b.cp = function(a, c, d) {
  3793. if (c > d) {
  3794. var e = c;
  3795. c = d;
  3796. d = e
  3797. }
  3798. return a < c ? c: a < d ? a: d
  3799. };
  3800. b.vW = function(a, c, d) {
  3801. return C(b.cp(a.x, c.x, d.x), b.cp(a.y, c.y, d.y))
  3802. };
  3803. b.BW = function(a) {
  3804. return C(a.width, a.height)
  3805. };
  3806. b.xW = function(a, c) {
  3807. return C(c(a.x), c(a.y))
  3808. };
  3809. b.GW = function(a, c, d) {
  3810. return b.Jj(b.Kg(a, 1 - d), b.Kg(c, d))
  3811. };
  3812. b.DW = function(a, c, d) {
  3813. return a.x - d <= c.x && c.x <= a.x + d && a.y - d <= c.y && c.y <= a.y + d ? !0 : !1
  3814. };
  3815. b.wW = function(a, c) {
  3816. return C(a.x * c.x, a.y * c.y)
  3817. };
  3818. b.uW = function(a, c) {
  3819. var d = b.Td(a),
  3820. e = b.Td(c),
  3821. d = Math.atan2(d.x * e.y - d.y * e.x, b.Kj(d, e));
  3822. return Math.abs(d) < b.Sv ? 0 : d
  3823. };
  3824. b.tW = function(a, c) {
  3825. var d = Math.acos(b.Kj(b.Td(a), b.Td(c)));
  3826. return Math.abs(d) < b.Sv ? 0 : d
  3827. };
  3828. b.LW = function(a, c, d) {
  3829. a = b.uc(a, c);
  3830. var e = Math.cos(d);
  3831. d = Math.sin(d);
  3832. var f = a.x;
  3833. a.x = f * e - a.y * d + c.x;
  3834. a.y = f * d + a.y * e + c.y;
  3835. return a
  3836. };
  3837. b.sA = function(a, c, d, e, f) {
  3838. if (a.x == c.x && a.y == c.y || d.x == e.x && d.y == e.y) return ! 1;
  3839. var g = c.x - a.x;
  3840. c = c.y - a.y;
  3841. var h = e.x - d.x;
  3842. e = e.y - d.y;
  3843. var k = a.x - d.x;
  3844. a = a.y - d.y;
  3845. d = e * g - h * c;
  3846. f.x = h * a - e * k;
  3847. f.y = g * a - c * k;
  3848. if (0 == d) return 0 == f.x || 0 == f.y ? !0 : !1;
  3849. f.x /= d;
  3850. f.y /= d;
  3851. return ! 0
  3852. };
  3853. b.NW = function(a, c, d, e) {
  3854. var f = C(0, 0);
  3855. return b.sA(a, c, d, e, f) && 0 <= f.x && 1 >= f.x && 0 <= f.y && 1 >= f.y ? !0 : !1
  3856. };
  3857. b.FW = function(a, c, d, e) {
  3858. var f = C(0, 0);
  3859. return b.sA(a, c, d, e, f) ? (d = C(0, 0), d.x = a.x + f.x * (c.x - a.x), d.y = a.y + f.x * (c.y - a.y), d) : C(0, 0)
  3860. };
  3861. b.MW = function(a, c) {
  3862. return null != a && null != c ? a.x == c.x && a.y == c.y: !1
  3863. };
  3864. b.RW = function(a) {
  3865. a.x = 0;
  3866. a.y = 0
  3867. };
  3868. b.EW = function(a, c) {
  3869. a.x = c.x;
  3870. a.y = c.y
  3871. };
  3872. b.FL = function(a, c) {
  3873. a.x *= c;
  3874. a.y *= c
  3875. };
  3876. b.OW = function(a, c) {
  3877. a.x -= c.x;
  3878. a.y -= c.y
  3879. };
  3880. b.sW = function(a, c) {
  3881. a.x += c.x;
  3882. a.y += c.y
  3883. };
  3884. b.HW = function(a) {
  3885. b.FL(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y))
  3886. };
  3887. b.DZ = function(a, c, d, e, f) {
  3888. f += e;
  3889. if (! (1 >= f)) {
  3890. c *= 0.5;
  3891. for (var g, h = f - 1,
  3892. k = e; k < f; k++) {
  3893. g = 2 * k;
  3894. var m = C(a[2 * k], a[2 * k + 1]),
  3895. n;
  3896. if (0 === k) n = b.Gp(b.Td(b.uc(m, C(a[2 * (k + 1)], a[2 * (k + 1) + 1]))));
  3897. else if (k === h) n = b.Gp(b.Td(b.uc(C(a[2 * (k - 1)], a[2 * (k - 1) + 1]), m)));
  3898. else {
  3899. n = C(a[2 * (k - 1)], a[2 * (k - 1) + 1]);
  3900. var r = C(a[2 * (k + 1)], a[2 * (k + 1) + 1]),
  3901. s = b.Td(b.uc(r, m)),
  3902. u = b.Td(b.uc(n, m)),
  3903. t = Math.acos(b.Kj(s, u));
  3904. n = t < b.Gg(70) ? b.Gp(b.Td(b.tA(s, u))) : t < b.Gg(170) ? b.Td(b.tA(s, u)) : b.Gp(b.Td(b.uc(r, n)))
  3905. }
  3906. n = b.Kg(n, c);
  3907. d[2 * g] = m.x + n.x;
  3908. d[2 * g + 1] = m.y + n.y;
  3909. d[2 * (g + 1)] = m.x - n.x;
  3910. d[2 * (g + 1) + 1] = m.y - n.y
  3911. }
  3912. for (k = 0 == e ? 0 : e - 1; k < h; k++) g = 2 * k,
  3913. a = g + 2,
  3914. c = new b.Sa(d[2 * g], d[2 * g + 1]),
  3915. f = new b.Sa(d[2 * (g + 1)], d[2 * (g + 1) + 1]),
  3916. g = new b.Sa(d[2 * a], d[2 * a]),
  3917. e = new b.Sa(d[2 * (a + 1)], d[2 * (a + 1) + 1]),
  3918. c = !b.UN(c.x, c.y, e.x, e.y, f.x, f.y, g.x, g.y),
  3919. !c.Ul && (0 > c.value || 1 < c.value) && (c.Ul = !0),
  3920. c.Ul && (d[2 * a] = e.x, d[2 * a + 1] = e.y, d[2 * (a + 1)] = g.x, d[2 * (a + 1) + 1] = g.y)
  3921. }
  3922. };
  3923. b.UN = function(a, c, d, e, f, g, h, k) {
  3924. if (a == d && c == e || f == h && g == k) return {
  3925. Ul: !1,
  3926. value: 0
  3927. };
  3928. d -= a;
  3929. e -= c;
  3930. f -= a;
  3931. g -= c;
  3932. h -= a;
  3933. k -= c;
  3934. a = Math.sqrt(d * d + e * e);
  3935. d /= a;
  3936. e /= a;
  3937. c = f * d + g * e;
  3938. g = g * d - f * e;
  3939. f = c;
  3940. c = h * d + k * e;
  3941. k = k * d - h * e;
  3942. h = c;
  3943. return g == k ? {
  3944. Ul: !1,
  3945. value: 0
  3946. }: {
  3947. Ul: !0,
  3948. value: (h + (f - h) * k / (k - g)) / a
  3949. }
  3950. };
  3951. b.EZ = function(a) {
  3952. for (var c = 0,
  3953. d = a.length; c < d; c++) {
  3954. var e = a[(c + 1) % d];
  3955. if (0 < b.EL(b.uc(e, a[c]), b.uc(a[(c + 2) % d], e))) return ! 1
  3956. }
  3957. return ! 0
  3958. };
  3959. b.IO = function(a, c) {
  3960. c[2] = c[3] = c[6] = c[7] = c[8] = c[9] = c[11] = c[14] = 0;
  3961. c[10] = c[15] = 1;
  3962. c[0] = a.a;
  3963. c[4] = a.J;
  3964. c[12] = a.Z;
  3965. c[1] = a.b;
  3966. c[5] = a.P;
  3967. c[13] = a.$
  3968. };
  3969. b.fP = function(a, c) {
  3970. c.a = a[0];
  3971. c.J = a[4];
  3972. c.Z = a[12];
  3973. c.b = a[1];
  3974. c.P = a[5];
  3975. c.$ = a[13]
  3976. };
  3977. b.ar = b.oa.extend({
  3978. Qb: null,
  3979. Qe: null,
  3980. ce: 0,
  3981. Ny: !1,
  3982. wl: null,
  3983. ctor: function(a, c, d) {
  3984. this.Qb = C(a || 0, c || 0);
  3985. this.ce = d || 0
  3986. },
  3987. Oh: function() {
  3988. return {
  3989. x: this.Qb.x,
  3990. y: this.Qb.y
  3991. }
  3992. },
  3993. kK: function() {
  3994. return this.Qb.x
  3995. },
  3996. lK: function() {
  3997. return this.Qb.y
  3998. },
  3999. FU: function() {
  4000. return {
  4001. x: this.Qe.x,
  4002. y: this.Qe.y
  4003. }
  4004. },
  4005. SU: function() {
  4006. return {
  4007. x: this.wl.x,
  4008. y: this.wl.y
  4009. }
  4010. },
  4011. WJ: function() {
  4012. return b.uc(this.Qb, this.Qe)
  4013. },
  4014. jK: function() {
  4015. return {
  4016. x: this.Qb.x,
  4017. y: this.Qb.y
  4018. }
  4019. },
  4020. GU: function() {
  4021. return {
  4022. x: this.Qe.x,
  4023. y: this.Qe.y
  4024. }
  4025. },
  4026. TU: function() {
  4027. return {
  4028. x: this.wl.x,
  4029. y: this.wl.y
  4030. }
  4031. },
  4032. mU: function() {
  4033. return this.ce
  4034. },
  4035. nU: function() {
  4036. return this.ce
  4037. },
  4038. VY: function(a, c, d) {
  4039. this.Qe = this.Qb;
  4040. this.Qb = C(c || 0, d || 0);
  4041. this.ce = a;
  4042. this.Ny || (this.wl = C(this.Qb), this.Ny = !0)
  4043. },
  4044. et: function(a, c) {
  4045. void 0 === c ? (this.Qb.x = a.x, this.Qb.y = a.y) : (this.Qb.x = a, this.Qb.y = c)
  4046. },
  4047. bj: function(a, c) {
  4048. this.Qe = void 0 === c ? C(a.x, a.y) : C(a || 0, c || 0)
  4049. }
  4050. });
  4051. b.eb = b.oa.extend({
  4052. Bg: 0,
  4053. ih: !1,
  4054. Cc: null,
  4055. Zs: function(a) {
  4056. this.Cc = a
  4057. },
  4058. ctor: function(a) {
  4059. this.Bg = a
  4060. },
  4061. FK: function() {
  4062. return this.Bg
  4063. },
  4064. stopPropagation: function() {
  4065. this.ih = !0
  4066. },
  4067. IV: function() {
  4068. return this.ih
  4069. },
  4070. ST: function() {
  4071. return this.Cc
  4072. }
  4073. });
  4074. b.eb.dn = 0;
  4075. b.eb.ji = 1;
  4076. b.eb.ei = 2;
  4077. b.eb.ki = 3;
  4078. b.eb.ak = 4;
  4079. b.kf = b.eb.extend({
  4080. Qr: null,
  4081. Yy: null,
  4082. ctor: function(a) {
  4083. b.eb.prototype.ctor.call(this, b.eb.ak);
  4084. this.Qr = a
  4085. },
  4086. setUserData: function(a) {
  4087. this.Yy = a
  4088. },
  4089. getUserData: function() {
  4090. return this.Yy
  4091. },
  4092. dU: function() {
  4093. return this.Qr
  4094. }
  4095. });
  4096. b.tb = b.eb.extend({
  4097. lx: 0,
  4098. sw: 0,
  4099. me: 0,
  4100. Hc: 0,
  4101. Js: 0,
  4102. Ks: 0,
  4103. xy: 0,
  4104. yy: 0,
  4105. ctor: function(a) {
  4106. b.eb.prototype.ctor.call(this, b.eb.ki);
  4107. this.lx = a
  4108. },
  4109. fB: function(a, c) {
  4110. this.xy = a;
  4111. this.yy = c
  4112. },
  4113. PU: function() {
  4114. return this.xy
  4115. },
  4116. QU: function() {
  4117. return this.yy
  4118. },
  4119. MM: function(a, c) {
  4120. this.me = a;
  4121. this.Hc = c
  4122. },
  4123. Oh: function() {
  4124. return {
  4125. x: this.me,
  4126. y: this.Hc
  4127. }
  4128. },
  4129. jK: function() {
  4130. return {
  4131. x: this.me,
  4132. y: b.view.Ai.height - this.Hc
  4133. }
  4134. },
  4135. CH: function(a, c) {
  4136. this.Js = a;
  4137. this.Ks = c
  4138. },
  4139. WJ: function() {
  4140. return {
  4141. x: this.me - this.Js,
  4142. y: this.Hc - this.Ks
  4143. }
  4144. },
  4145. XT: function() {
  4146. return this.me - this.Js
  4147. },
  4148. YT: function() {
  4149. return this.Hc - this.Ks
  4150. },
  4151. ai: function(a) {
  4152. this.sw = a
  4153. },
  4154. KT: function() {
  4155. return this.sw
  4156. },
  4157. kK: function() {
  4158. return this.me
  4159. },
  4160. lK: function() {
  4161. return this.Hc
  4162. }
  4163. });
  4164. b.tb.NONE = 0;
  4165. b.tb.Av = 1;
  4166. b.tb.br = 2;
  4167. b.tb.Lv = 3;
  4168. b.tb.Vq = 4;
  4169. b.tb.FO = 0;
  4170. b.tb.HO = 2;
  4171. b.tb.GO = 1;
  4172. b.tb.AO = 3;
  4173. b.tb.BO = 4;
  4174. b.tb.CO = 5;
  4175. b.tb.DO = 6;
  4176. b.tb.EO = 7;
  4177. b.Dd = b.eb.extend({
  4178. jg: 0,
  4179. Ag: null,
  4180. ctor: function(a) {
  4181. b.eb.prototype.ctor.call(this, b.eb.dn);
  4182. this.Ag = a || []
  4183. },
  4184. cU: function() {
  4185. return this.jg
  4186. },
  4187. $U: function() {
  4188. return this.Ag
  4189. },
  4190. sR: function(a) {
  4191. this.jg = a
  4192. },
  4193. uR: function(a) {
  4194. this.Ag = a
  4195. }
  4196. });
  4197. b.Dd.CP = 5;
  4198. b.Dd.ii = {
  4199. Xp: 0,
  4200. yq: 1,
  4201. nq: 2,
  4202. dq: 3
  4203. };
  4204. b.G = b.oa.extend({
  4205. ws: null,
  4206. Bg: 0,
  4207. Me: null,
  4208. pd: !1,
  4209. mg: 0,
  4210. Sc: null,
  4211. $a: !1,
  4212. Ri: !0,
  4213. ctor: function(a, c, d) {
  4214. this.ws = d;
  4215. this.Bg = a || 0;
  4216. this.Me = c || ""
  4217. },
  4218. dt: function(a) {
  4219. this.$a = a
  4220. },
  4221. gR: function() {
  4222. return this.$a
  4223. },
  4224. sl: function(a) {
  4225. this.pd = a
  4226. },
  4227. HG: function() {
  4228. return this.pd
  4229. },
  4230. eR: function() {
  4231. return this.Bg
  4232. },
  4233. bR: function() {
  4234. return this.Me
  4235. },
  4236. $s: function(a) {
  4237. this.mg = a
  4238. },
  4239. aR: function() {
  4240. return this.mg
  4241. },
  4242. tl: function(a) {
  4243. this.Sc = a
  4244. },
  4245. cR: function() {
  4246. return this.Sc
  4247. },
  4248. Eg: function() {
  4249. return null != this.ws
  4250. },
  4251. d: function() {
  4252. return null
  4253. },
  4254. Mp: function(a) {
  4255. this.Ri = a
  4256. },
  4257. isEnabled: function() {
  4258. return this.Ri
  4259. },
  4260. Zu: function() {},
  4261. Pf: function() {}
  4262. });
  4263. b.G.SE = 0;
  4264. b.G.li = 1;
  4265. b.G.en = 2;
  4266. b.G.ji = 3;
  4267. b.G.ki = 4;
  4268. b.G.ei = 5;
  4269. b.G.ak = 6;
  4270. b.Fk = b.G.extend({
  4271. ll: null,
  4272. ctor: function(a, c) {
  4273. this.ll = c;
  4274. var d = this;
  4275. b.G.prototype.ctor.call(this, b.G.ak, a,
  4276. function(a) {
  4277. null != d.ll && d.ll(a)
  4278. })
  4279. },
  4280. Eg: function() {
  4281. return b.G.prototype.Eg.call(this) && null != this.ll
  4282. },
  4283. d: function() {
  4284. return new b.Fk(this.Me, this.ll)
  4285. }
  4286. });
  4287. b.Fk.create = function(a, c) {
  4288. return new b.Fk(a, c)
  4289. };
  4290. b.ag = b.G.extend({
  4291. Cp: null,
  4292. Fp: null,
  4293. Dp: null,
  4294. Ep: null,
  4295. ctor: function() {
  4296. var a = this;
  4297. b.G.prototype.ctor.call(this, b.G.ki, b.ag.fb,
  4298. function(c) {
  4299. var d = b.tb;
  4300. switch (c.lx) {
  4301. case d.Av:
  4302. a.Cp && a.Cp(c);
  4303. break;
  4304. case d.br:
  4305. a.Fp && a.Fp(c);
  4306. break;
  4307. case d.Lv:
  4308. a.Dp && a.Dp(c);
  4309. break;
  4310. case d.Vq:
  4311. a.Ep && a.Ep(c)
  4312. }
  4313. })
  4314. },
  4315. d: function() {
  4316. var a = new b.ag;
  4317. a.Cp = this.Cp;
  4318. a.Fp = this.Fp;
  4319. a.Dp = this.Dp;
  4320. a.Ep = this.Ep;
  4321. return a
  4322. },
  4323. Eg: function() {
  4324. return ! 0
  4325. }
  4326. });
  4327. b.ag.fb = "__cc_mouse";
  4328. b.ag.create = function() {
  4329. return new b.ag
  4330. };
  4331. b.ye = b.G.extend({
  4332. xi: null,
  4333. Tj: !1,
  4334. cf: null,
  4335. Uh: null,
  4336. Th: null,
  4337. Sh: null,
  4338. ctor: function() {
  4339. b.G.prototype.ctor.call(this, b.G.li, b.ye.fb, null);
  4340. this.xi = []
  4341. },
  4342. QY: function(a) {
  4343. this.Tj = a
  4344. },
  4345. d: function() {
  4346. var a = new b.ye;
  4347. a.cf = this.cf;
  4348. a.Uh = this.Uh;
  4349. a.Th = this.Th;
  4350. a.Sh = this.Sh;
  4351. a.Tj = this.Tj;
  4352. return a
  4353. },
  4354. Eg: function() {
  4355. return this.cf ? !0 : (b.log(b.c.$E), !1)
  4356. }
  4357. });
  4358. b.ye.fb = "__cc_touch_one_by_one";
  4359. b.ye.create = function() {
  4360. return new b.ye
  4361. };
  4362. b.xe = b.G.extend({
  4363. am: null,
  4364. cm: null,
  4365. Ij: null,
  4366. bm: null,
  4367. ctor: function() {
  4368. b.G.prototype.ctor.call(this, b.G.en, b.xe.fb, null)
  4369. },
  4370. d: function() {
  4371. var a = new b.xe;
  4372. a.am = this.am;
  4373. a.cm = this.cm;
  4374. a.Ij = this.Ij;
  4375. a.bm = this.bm;
  4376. return a
  4377. },
  4378. Eg: function() {
  4379. return null == this.am && null == this.cm && null == this.Ij && null == this.bm ? (b.log(b.c.ZE), !1) : !0
  4380. }
  4381. });
  4382. b.xe.fb = "__cc_touch_all_at_once";
  4383. b.xe.create = function() {
  4384. return new b.xe
  4385. };
  4386. b.G.create = function(a) {
  4387. b.assert(a && a.event, b.c.wC);
  4388. var c = a.event;
  4389. delete a.event;
  4390. var d = null;
  4391. c === b.G.li ? d = new b.ye: c === b.G.en ? d = new b.xe: c === b.G.ki ? d = new b.ag: c === b.G.ak ? (d = new b.Fk(a.FJ, a.Yt), delete a.FJ, delete a.Yt) : c === b.G.ji ? d = new b.$f: c === b.G.ei && (d = new b.Zf(a.Yt), delete a.Yt);
  4392. for (var e in a) d[e] = a[e];
  4393. return d
  4394. };
  4395. b.qz = function(a) {
  4396. var c, d = a.length,
  4397. e = Array(d);
  4398. for (c = 0; c < d; c += 1) e[c] = a[c];
  4399. return e
  4400. };
  4401. b.aF = b.oa.extend({
  4402. ld: null,
  4403. qd: null,
  4404. Sz: 0,
  4405. ctor: function() {
  4406. this.ld = [];
  4407. this.qd = []
  4408. },
  4409. size: function() {
  4410. return this.ld.length + this.qd.length
  4411. },
  4412. empty: function() {
  4413. return 0 === this.ld.length && 0 === this.qd.length
  4414. },
  4415. push: function(a) {
  4416. 0 == a.mg ? this.qd.push(a) : this.ld.push(a)
  4417. },
  4418. SI: function() {
  4419. this.qd.length = 0
  4420. },
  4421. RI: function() {
  4422. this.ld.length = 0
  4423. },
  4424. clear: function() {
  4425. this.qd.length = 0;
  4426. this.ld.length = 0
  4427. },
  4428. fU: function() {
  4429. return this.ld
  4430. },
  4431. NU: function() {
  4432. return this.qd
  4433. }
  4434. });
  4435. b.jn = function(a) {
  4436. var c = b.eb,
  4437. d = a.Bg;
  4438. if (d === c.ei) return b.Zf.fb;
  4439. if (d === c.ak) return a.Qr;
  4440. if (d === c.ji) return b.$f.fb;
  4441. if (d === c.ki) return b.ag.fb;
  4442. d === c.dn && b.log(b.c.jn);
  4443. return ""
  4444. };
  4445. b.I = {
  4446. kq: 0,
  4447. qm: 1,
  4448. dk: 2,
  4449. TO: 3,
  4450. Jd: {},
  4451. pl: {},
  4452. Oe: {},
  4453. mo: {},
  4454. yx: {},
  4455. lj: [],
  4456. Rk: [],
  4457. gh: 0,
  4458. Ri: !1,
  4459. Sx: 0,
  4460. GG: [b.Va.tm, b.Va.ek],
  4461. Bo: function(a) {
  4462. null != this.Oe[a.L] && this.Rk.push(a);
  4463. a = a.s;
  4464. for (var c = 0,
  4465. d = a.length; c < d; c++) this.Bo(a[c])
  4466. },
  4467. Lj: function(a, c) {
  4468. var d = this.Oe[a.L],
  4469. e,
  4470. f;
  4471. if (d) for (e = 0, f = d.length; e < f; e++) d[e].dt(!0);
  4472. if (!0 === c) for (d = a.s, e = 0, f = d.length; e < f; e++) this.Lj(d[e], !0)
  4473. },
  4474. Qf: function(a, c) {
  4475. var d = this.Oe[a.L],
  4476. e,
  4477. f;
  4478. if (d) for (e = 0, f = d.length; e < f; e++) d[e].dt(!1);
  4479. this.Bo(a);
  4480. if (!0 === c) for (d = a.s, e = 0, f = d.length; e < f; e++) this.Qf(d[e], !0)
  4481. },
  4482. ow: function(a) {
  4483. 0 === this.gh ? this.qx(a) : this.lj.push(a)
  4484. },
  4485. qx: function(a) {
  4486. var c = a.Me,
  4487. d = this.Jd[c];
  4488. d || (d = new b.aF, this.Jd[c] = d);
  4489. d.push(a);
  4490. 0 == a.mg ? (this.qh(c, this.dk), c = a.Sc, null == c && b.log(b.c.yJ), this.oF(c, a), c.Re && this.Qf(c)) : this.qh(c, this.qm)
  4491. },
  4492. bs: function(a) {
  4493. return this.Jd[a]
  4494. },
  4495. bI: function() {
  4496. if (0 != this.Rk.length) {
  4497. for (var a = this.Rk,
  4498. c, d, e = this.Oe,
  4499. f = 0,
  4500. g = a.length; f < g; f++) if (c = e[a[f].L]) for (var h = 0,
  4501. k = c.length; h < k; h++)(d = c[h]) && this.qh(d.Me, this.dk);
  4502. this.Rk.length = 0
  4503. }
  4504. },
  4505. ly: function(a) {
  4506. if (a) for (var c, d = 0; d < a.length;) c = a[d],
  4507. c.sl(!1),
  4508. null != c.Sc && (this.Ew(c.Sc, c), c.tl(null)),
  4509. 0 === this.gh ? b.Wc(a, c) : ++d
  4510. },
  4511. mh: function(a) {
  4512. var c = this.Jd[a];
  4513. if (c) {
  4514. var d = c.ld;
  4515. this.ly(c.qd);
  4516. this.ly(d);
  4517. delete this.pl[a];
  4518. this.gh || (c.clear(), delete this.Jd[a])
  4519. }
  4520. for (var d = this.lj,
  4521. e, c = 0; c < d.length;)(e = d[c]) && e.Me == a ? b.Wc(d, e) : ++c
  4522. },
  4523. lt: function(a) {
  4524. var c = this.kq,
  4525. d = this.pl;
  4526. d[a] && (c = d[a]);
  4527. c != this.kq && (d[a] = this.kq, c & this.qm && this.RH(a), c & this.dk && ((c = b.Qa.Ib) ? this.TH(a, c) : d[a] = this.dk))
  4528. },
  4529. TH: function(a, c) {
  4530. var d = this.bs(a);
  4531. if (d) {
  4532. var e = d.qd;
  4533. e && 0 !== e.length && (this.Sx = 0, this.mo = {},
  4534. this.Nt(c, !0), d.qd.sort(this.QH))
  4535. }
  4536. },
  4537. QH: function(a, c) {
  4538. var d = b.I.mo;
  4539. return d[c.Sc.L] - d[a.Sc.L]
  4540. },
  4541. RH: function(a) {
  4542. if (a = this.Jd[a]) {
  4543. var c = a.ld;
  4544. if (c && 0 !== c.length) {
  4545. c.sort(this.SH);
  4546. for (var d = 0,
  4547. e = c.length; d < e && !(0 <= c[d].mg);)++d;
  4548. a.Sz = d
  4549. }
  4550. }
  4551. },
  4552. SH: function(a, c) {
  4553. return a.mg - c.mg
  4554. },
  4555. xs: function(a) {
  4556. if (a = this.Jd[a]) {
  4557. var c = a.ld,
  4558. d = a.qd,
  4559. e, f;
  4560. if (d) for (e = 0; e < d.length;) f = d[e],
  4561. f.pd ? ++e: b.Wc(d, f);
  4562. if (c) for (e = 0; e < c.length;) f = c[e],
  4563. f.pd ? ++e: b.Wc(c, f);
  4564. d && 0 === d.length && a.SI();
  4565. c && 0 === c.length && a.RI()
  4566. }
  4567. },
  4568. So: function(a) {
  4569. var c = this.gh;
  4570. b.assert(0 < c, b.c.xC);
  4571. a.Bg == b.eb.dn ? (this.xs(b.ye.fb), this.xs(b.xe.fb)) : this.xs(b.jn(a));
  4572. if (! (1 < c)) {
  4573. b.assert(1 == c, b.c.yC);
  4574. a = this.Jd;
  4575. var c = this.pl,
  4576. d;
  4577. for (d in a) a[d].empty() && (delete c[d], delete a[d]);
  4578. d = this.lj;
  4579. if (0 !== d.length) {
  4580. a = 0;
  4581. for (c = d.length; a < c; a++) this.qx(d[a]);
  4582. this.lj.length = 0
  4583. }
  4584. }
  4585. },
  4586. $G: function(a, c) {
  4587. if (!a.HG) return ! 1;
  4588. var d = c.event,
  4589. e = c.QA;
  4590. d.Zs(a.Sc);
  4591. var f = !1,
  4592. g, h = d.jg,
  4593. k = b.Dd.ii;
  4594. h == k.Xp ? a.cf && (f = a.cf(e, d)) && a.pd && a.xi.push(e) : 0 < a.xi.length && -1 != (g = a.xi.indexOf(e)) && (f = !0, h === k.yq && a.Uh ? a.Uh(e, d) : h === k.nq ? (a.Th && a.Th(e, d), a.pd && a.xi.splice(g, 1)) : h === k.dq && (a.Sh && a.Sh(e, d), a.pd && a.xi.splice(g, 1)));
  4595. return d.ih ? (b.I.So(d), !0) : f && a.pd && a.Tj ? (c.zL && c.touches.splice(e, 1), !0) : !1
  4596. },
  4597. FF: function(a) {
  4598. this.lt(b.ye.fb);
  4599. this.lt(b.xe.fb);
  4600. var c = this.bs(b.ye.fb),
  4601. d = this.bs(b.xe.fb);
  4602. if (null != c || null != d) {
  4603. var e = a.Ag,
  4604. f = b.qz(e),
  4605. g = {
  4606. event: a,
  4607. zL: c && d,
  4608. touches: f,
  4609. QA: null
  4610. };
  4611. if (c) for (var h = 0; h < e.length; h++) if (g.QA = e[h], this.Jr(c, this.$G, g), a.ih) return;
  4612. if (d && 0 < f.length && (this.Jr(d, this.aH, {
  4613. event: a,
  4614. touches: f
  4615. }), a.ih)) return;
  4616. this.So(a)
  4617. }
  4618. },
  4619. aH: function(a, c) {
  4620. if (!a.pd) return ! 1;
  4621. var d = b.Dd.ii,
  4622. e = c.event,
  4623. f = c.touches,
  4624. g = e.jg;
  4625. e.Zs(a.Sc);
  4626. g == d.Xp && a.am ? a.am(f, e) : g == d.yq && a.cm ? a.cm(f, e) : g == d.nq && a.Ij ? a.Ij(f, e) : g == d.dq && a.bm && a.bm(f, e);
  4627. return e.ih ? (b.I.So(e), !0) : !1
  4628. },
  4629. oF: function(a, c) {
  4630. var d = this.Oe[a.L];
  4631. d || (d = [], this.Oe[a.L] = d);
  4632. d.push(c)
  4633. },
  4634. Ew: function(a, c) {
  4635. var d = this.Oe[a.L];
  4636. d && (b.Wc(d, c), 0 === d.length && delete this.Oe[a.L])
  4637. },
  4638. Jr: function(a, c, d) {
  4639. var e = !1,
  4640. f = a.ld,
  4641. g = a.qd,
  4642. h = 0,
  4643. k;
  4644. if (f && 0 !== f.length) for (; h < a.Sz; ++h) if (k = f[h], k.isEnabled() && !k.$a && k.pd && c(k, d)) {
  4645. e = !0;
  4646. break
  4647. }
  4648. if (g && !e) for (a = 0; a < g.length; a++) if (k = g[a], k.isEnabled() && !k.$a && k.pd && c(k, d)) {
  4649. e = !0;
  4650. break
  4651. }
  4652. if (f && !e) for (; h < f.length && (k = f[h], !k.isEnabled() || k.$a || !k.pd || !c(k, d)); ++h);
  4653. },
  4654. qh: function(a, c) {
  4655. var d = this.pl;
  4656. d[a] = null == d[a] ? c: c | d[a]
  4657. },
  4658. Nt: function(a, c) {
  4659. var d = a.s,
  4660. e = 0,
  4661. f = d.length,
  4662. g = this.yx,
  4663. h = this.Oe;
  4664. if (0 < f) {
  4665. for (var k; e < f; e++) if ((k = d[e]) && 0 > k.Ia) this.Nt(k, !1);
  4666. else break;
  4667. null != h[a.L] && (g[a.of] || (g[a.of] = []), g[a.of].push(a.L));
  4668. for (; e < f; e++)(k = d[e]) && this.Nt(k, !1)
  4669. } else null != h[a.L] && (g[a.of] || (g[a.of] = []), g[a.of].push(a.L));
  4670. if (c) {
  4671. var d = [],
  4672. m;
  4673. for (m in g) d.push(m);
  4674. d.sort(this.UH);
  4675. m = d.length;
  4676. k = this.mo;
  4677. for (e = 0; e < m; e++) for (f = g[d[e]], h = 0; h < f.length; h++) k[f[h]] = ++this.Sx;
  4678. this.yx = {}
  4679. }
  4680. },
  4681. UH: function(a, c) {
  4682. return a - c
  4683. },
  4684. addListener: function(a, c) {
  4685. b.assert(a && c, b.c.AJ);
  4686. if (! (a instanceof b.G)) b.assert("number" !== typeof c, b.c.BJ),
  4687. a = b.G.create(a);
  4688. else if (a.pd) {
  4689. b.log(b.c.CJ);
  4690. return
  4691. }
  4692. a.Eg() && ("number" == typeof c ? 0 == c ? b.log(b.c.zJ) : (a.tl(null), a.$s(c), a.sl(!0), a.dt(!1), this.ow(a)) : (a.tl(c), a.$s(0), a.sl(!0), this.ow(a)))
  4693. },
  4694. Tt: function(a, c) {
  4695. var d = b.Fk.create(a, c);
  4696. this.addListener(d, 1);
  4697. return d
  4698. },
  4699. removeListener: function(a) {
  4700. if (null != a) {
  4701. var c, d = this.Jd,
  4702. e;
  4703. for (e in d) {
  4704. var f = d[e],
  4705. g = f.ld; (c = this.my(f.qd, a)) ? this.qh(a.Me, this.dk) : (c = this.my(g, a)) && this.qh(a.Me, this.qm);
  4706. f.empty() && (delete this.pl[a.Me], delete d[e]);
  4707. if (c) break
  4708. }
  4709. if (!c) for (c = this.lj, d = 0, e = c.length; d < e; d++) if (f = c[d], f == a) {
  4710. b.Wc(c, f);
  4711. break
  4712. }
  4713. }
  4714. },
  4715. my: function(a, c) {
  4716. if (null == a) return ! 1;
  4717. for (var d = 0,
  4718. e = a.length; d < e; d++) {
  4719. var f = a[d];
  4720. if (f == c) return f.sl(!1),
  4721. null != f.Sc && (this.Ew(f.Sc, f), f.tl(null)),
  4722. 0 == this.gh && b.Wc(a, f),
  4723. !0
  4724. }
  4725. return ! 1
  4726. },
  4727. EA: function(a, c) {
  4728. if (a instanceof b.m) {
  4729. delete this.mo[a.L];
  4730. b.Wc(this.Rk, a);
  4731. var d = this.Oe[a.L];
  4732. if (d) {
  4733. for (var e = b.qz(d), d = 0; d < e.length; d++) this.removeListener(e[d]);
  4734. e.length = 0;
  4735. e = this.lj;
  4736. for (d = 0; d < e.length;) {
  4737. var f = e[d];
  4738. f.Sc == a ? (f.tl(null), f.sl(!1), e.splice(d, 1)) : ++d
  4739. }
  4740. if (!0 === c) for (e = a.s, d = 0, f = e.length; d < f; d++) this.EA(e[d], !0)
  4741. }
  4742. } else a == b.G.li ? this.mh(b.ye.fb) : a == b.G.en ? this.mh(b.xe.fb) : a == b.G.ki ? this.mh(b.ag.fb) : a == b.G.ei ? this.mh(b.Zf.fb) : a == b.G.ji ? this.mh(b.$f.fb) : b.log(b.c.DJ)
  4743. },
  4744. zX: function(a) {
  4745. this.mh(a)
  4746. },
  4747. sX: function() {
  4748. var a = this.Jd,
  4749. c = this.GG,
  4750. d;
  4751. for (d in a) - 1 === c.indexOf(d) && this.mh(d)
  4752. },
  4753. HY: function(a, c) {
  4754. if (null != a) {
  4755. var d = this.Jd,
  4756. e;
  4757. for (e in d) {
  4758. var f = d[e].ld;
  4759. if (f && -1 != f.indexOf(a)) {
  4760. null != a.Sc && b.log(b.c.EJ);
  4761. a.mg !== c && (a.$s(c), this.qh(a.Me, this.qm));
  4762. break
  4763. }
  4764. }
  4765. }
  4766. },
  4767. Mp: function(a) {
  4768. this.Ri = a
  4769. },
  4770. isEnabled: function() {
  4771. return this.Ri
  4772. },
  4773. dispatchEvent: function(a) {
  4774. if (this.Ri) {
  4775. this.bI();
  4776. this.gh++;
  4777. if (!a || !a.FK) throw "event is undefined";
  4778. if (a.Bg == b.eb.dn) this.FF(a);
  4779. else {
  4780. var c = b.jn(a);
  4781. this.lt(c);
  4782. c = this.Jd[c];
  4783. null != c && this.Jr(c, this.XG, a);
  4784. this.So(a)
  4785. }
  4786. this.gh--
  4787. }
  4788. },
  4789. XG: function(a, c) {
  4790. c.Zs(a.Sc);
  4791. a.ws(c);
  4792. return c.ih
  4793. },
  4794. xS: function(a, c) {
  4795. var d = new b.kf(a);
  4796. d.setUserData(c);
  4797. this.dispatchEvent(d)
  4798. }
  4799. };
  4800. b.vC = b.eb.extend({
  4801. kw: null,
  4802. ctor: function(a) {
  4803. b.eb.prototype.ctor.call(this, b.eb.ei);
  4804. this.kw = a
  4805. }
  4806. });
  4807. b.Ev = b.eb.extend({
  4808. ms: 0,
  4809. Hx: !1,
  4810. ctor: function(a, c) {
  4811. b.eb.prototype.ctor.call(this, b.eb.ji);
  4812. this.ms = a;
  4813. this.Hx = c
  4814. }
  4815. });
  4816. b.Zf = b.G.extend({
  4817. oo: null,
  4818. ctor: function(a) {
  4819. this.oo = a;
  4820. var c = this;
  4821. b.G.prototype.ctor.call(this, b.G.ei, b.Zf.fb,
  4822. function(a) {
  4823. c.oo(a.kw, a)
  4824. })
  4825. },
  4826. Eg: function() {
  4827. b.assert(this.oo, b.c.XE);
  4828. return ! 0
  4829. },
  4830. d: function() {
  4831. return new b.Zf(this.oo)
  4832. }
  4833. });
  4834. b.Zf.fb = "__cc_acceleration";
  4835. b.Zf.create = function(a) {
  4836. return new b.Zf(a)
  4837. };
  4838. b.$f = b.G.extend({
  4839. Zl: null,
  4840. $l: null,
  4841. ctor: function() {
  4842. var a = this;
  4843. b.G.prototype.ctor.call(this, b.G.ji, b.$f.fb,
  4844. function(c) {
  4845. c.Hx ? a.Zl && a.Zl(c.ms, c) : a.$l && a.$l(c.ms, c)
  4846. })
  4847. },
  4848. d: function() {
  4849. var a = new b.$f;
  4850. a.Zl = this.Zl;
  4851. a.$l = this.$l;
  4852. return a
  4853. },
  4854. Eg: function() {
  4855. return null == this.Zl && null == this.$l ? (b.log(b.c.YE), !1) : !0
  4856. }
  4857. });
  4858. b.$f.fb = "__cc_keyboard";
  4859. b.$f.create = function() {
  4860. return new b.$f
  4861. };
  4862. b.p.fr = function() {
  4863. var a = b.m.prototype;
  4864. a.Py = null;
  4865. a.st = null;
  4866. a.es = null;
  4867. a.ti = null;
  4868. a.ctor = function() {
  4869. this.gs();
  4870. var a = new b.re;
  4871. a.Sd[2] = a.Sd[3] = a.Sd[6] = a.Sd[7] = a.Sd[8] = a.Sd[9] = a.Sd[11] = a.Sd[14] = 0;
  4872. a.Sd[10] = a.Sd[15] = 1;
  4873. this.Py = a;
  4874. this.es = 0;
  4875. this.st = new b.re
  4876. };
  4877. a.W = function() { ! 1 === this.Ff && (this.Ff = this.bo = !0)
  4878. };
  4879. a.Ba = function() {
  4880. if (this.Gc) {
  4881. var a = b.l,
  4882. d, e = b.ZI;
  4883. e.stack.push(e.top);
  4884. b.MV(this.st, e.top);
  4885. e.top = this.st;
  4886. var f = this.zj;
  4887. f && f.fF && f.HI();
  4888. this.transform();
  4889. var g = this.s;
  4890. if (g && 0 < g.length) {
  4891. var h = g.length;
  4892. this.vc();
  4893. for (d = 0; d < h; d++) if (g[d] && 0 > g[d].Ia) g[d].Ba();
  4894. else break;
  4895. for (this.na(a); d < h; d++) g[d] && g[d].Ba()
  4896. } else this.na(a);
  4897. this.arrivalOrder = 0;
  4898. f && f.fF && f.nI(this);
  4899. e.top = e.stack.pop()
  4900. }
  4901. };
  4902. a.transform = function() {
  4903. var a = this.Py,
  4904. d = b.ZI.top,
  4905. e = this.Yl(),
  4906. f = a.Sd;
  4907. f[0] = e.a;
  4908. f[4] = e.J;
  4909. f[12] = e.Z;
  4910. f[1] = e.b;
  4911. f[5] = e.P;
  4912. f[13] = e.$;
  4913. f[14] = this.Wo;
  4914. b.rL(d, d, a);
  4915. null == this.ti || null != this.zj && this.zj.fA() || (a = this.lb.x, d = this.lb.y, 0 !== a || 0 !== d ? (b.Yv || (a |= 0, d |= 0), b.pL(a, d, 0), this.ti.nA(), b.pL( - a, -d, 0)) : this.ti.nA())
  4916. };
  4917. a.Xe = a.hG
  4918. };
  4919. b.p.Fq = function() {
  4920. var a = b.m.prototype;
  4921. b.k(a, "x", a.sK, a.UM);
  4922. b.k(a, "y", a.tK, a.VM);
  4923. b.k(a, "width", a.Ie, a.Bf);
  4924. b.k(a, "height", a.fh, a.Af);
  4925. b.k(a, "anchorX", a.TF, a.Ws);
  4926. b.k(a, "anchorY", a.UF, a.Xs);
  4927. b.k(a, "skewX", a.AK, a.aN);
  4928. b.k(a, "skewY", a.BK, a.bN);
  4929. b.k(a, "zIndex", a.iK, a.aB);
  4930. b.k(a, "vertexZ", a.JK, a.jN);
  4931. b.k(a, "rotation", a.xK, a.YM);
  4932. b.k(a, "rotationX", a.yK, a.ZM);
  4933. b.k(a, "rotationY", a.zK, a.$M);
  4934. b.k(a, "scale", a.Kz, a.Og);
  4935. b.k(a, "scaleX", a.Lz, a.Qp);
  4936. b.k(a, "scaleY", a.Mz, a.gv);
  4937. b.k(a, "children", a.SJ);
  4938. b.k(a, "childrenCount", a.TJ);
  4939. b.k(a, "parent", a.getParent, a.bB);
  4940. b.k(a, "visible", a.fL, a.te);
  4941. b.k(a, "running", a.dL);
  4942. b.k(a, "ignoreAnchor", a.bL, a.Gu);
  4943. b.k(a, "actionManager", a.mp, a.RA);
  4944. b.k(a, "scheduler", a.Ig, a.eB);
  4945. b.k(a, "shaderProgram", a.xu, a.hv);
  4946. b.k(a, "glServerState", a.cK, a.KM);
  4947. b.k(a, "opacity", a.wj, a.Ga);
  4948. b.k(a, "opacityModifyRGB", a.Dj, a.Ng);
  4949. b.k(a, "cascadeOpacity", a.hA, a.VA);
  4950. b.k(a, "color", a.Nh, a.V);
  4951. b.k(a, "cascadeColor", a.gA, a.UA)
  4952. };
  4953. b.Mv = -1;
  4954. b.$u = 1;
  4955. b.m = b.oa.extend({
  4956. Ia: 0,
  4957. of: 0,
  4958. Wo: 0,
  4959. yf: 0,
  4960. oh: 0,
  4961. O: 1,
  4962. ma: 1,
  4963. ja: null,
  4964. ie: 0,
  4965. je: 0,
  4966. s: null,
  4967. Gc: !0,
  4968. Ab: null,
  4969. lb: null,
  4970. v: null,
  4971. Re: !1,
  4972. Db: null,
  4973. rf: !1,
  4974. tag: b.Mv,
  4975. userData: null,
  4976. userObject: null,
  4977. Ff: !0,
  4978. bo: !0,
  4979. Ce: !0,
  4980. Ok: null,
  4981. wR: null,
  4982. wh: null,
  4983. Dx: null,
  4984. bc: !1,
  4985. Jb: null,
  4986. arrivalOrder: 0,
  4987. Fd: null,
  4988. rd: null,
  4989. YQ: null,
  4990. Cx: !1,
  4991. Ik: !1,
  4992. on: null,
  4993. gg: null,
  4994. ls: !1,
  4995. $i: 0,
  4996. zo: 0,
  4997. Mc: "Node",
  4998. jt: !1,
  4999. Xi: "",
  5000. sa: 255,
  5001. Md: 255,
  5002. Q: null,
  5003. ac: null,
  5004. $d: !1,
  5005. De: !1,
  5006. yR: !1,
  5007. fR: 0,
  5008. gs: function() {
  5009. this.Ab = C(0, 0);
  5010. this.lb = C(0, 0);
  5011. this.v = D(0, 0);
  5012. this.ja = C(0, 0);
  5013. this.s = [];
  5014. this.wh = {
  5015. a: 1,
  5016. b: 0,
  5017. J: 0,
  5018. P: 1,
  5019. Z: 0,
  5020. $: 0
  5021. };
  5022. var a = b.Qa;
  5023. this.Fd = a.mp();
  5024. this.rd = a.Ig();
  5025. this.Cx = !0;
  5026. this.on = {
  5027. a: 1,
  5028. b: 0,
  5029. J: 0,
  5030. P: 1,
  5031. Z: 0,
  5032. $: 0
  5033. };
  5034. b.bC && (this.gg = new b.bC(this));
  5035. this.Md = this.sa = 255;
  5036. this.Q = b.color(255, 255, 255, 255);
  5037. this.ac = b.color(255, 255, 255, 255);
  5038. this.De = this.$d = !1
  5039. },
  5040. ga: function() { ! 1 === this.Cx && this.gs();
  5041. return ! 0
  5042. },
  5043. Gd: function(a, c) {
  5044. if (a && 0 !== a.length) {
  5045. var d, e = a.length,
  5046. f;
  5047. d = b.m.bd;
  5048. switch (c) {
  5049. case d.se:
  5050. for (d = 0; d < e; d++)(f = a[d]) && f.se();
  5051. break;
  5052. case d.vd:
  5053. for (d = 0; d < e; d++)(f = a[d]) && f.vd();
  5054. break;
  5055. case d.Hj:
  5056. for (d = 0; d < e; d++)(f = a[d]) && f.Hj();
  5057. break;
  5058. case d.If:
  5059. for (d = 0; d < e; d++)(f = a[d]) && f.If();
  5060. break;
  5061. case d.$c:
  5062. for (d = 0; d < e; d++)(f = a[d]) && f.$c();
  5063. break;
  5064. case d.Nf:
  5065. for (d = 0; d < e; d++)(f = a[d]) && f.Nf();
  5066. break;
  5067. case d.vc:
  5068. for (d = 0; d < e; d++)(f = a[d]) && f.vc();
  5069. break;
  5070. default:
  5071. b.assert(0, b.c.QC)
  5072. }
  5073. }
  5074. },
  5075. W: null,
  5076. dc: function(a) {
  5077. for (var c in a) this[c] = a[c]
  5078. },
  5079. AK: function() {
  5080. return this.ie
  5081. },
  5082. aN: function(a) {
  5083. this.ie = a;
  5084. this.W()
  5085. },
  5086. BK: function() {
  5087. return this.je
  5088. },
  5089. bN: function(a) {
  5090. this.je = a;
  5091. this.W()
  5092. },
  5093. aB: function(a) {
  5094. this.Ia = a;
  5095. this.Db && this.Db.im(this, a);
  5096. b.I.Bo(this)
  5097. },
  5098. Ay: function(a) {
  5099. this.Ia = a
  5100. },
  5101. iK: function() {
  5102. return this.Ia
  5103. },
  5104. hV: function() {
  5105. b.log(b.c.WC);
  5106. return this.Ia
  5107. },
  5108. aZ: function(a) {
  5109. b.log(b.c.gD);
  5110. this.aB(a)
  5111. },
  5112. sY: function(a) {
  5113. this.of != a && (this.of = a, b.I.Bo(this))
  5114. },
  5115. kU: function() {
  5116. return this.of
  5117. },
  5118. JK: function() {
  5119. return this.Wo
  5120. },
  5121. jN: function(a) {
  5122. this.Wo = a
  5123. },
  5124. xK: function() {
  5125. this.yf !== this.oh && b.log(b.c.UC);
  5126. return this.yf
  5127. },
  5128. YM: function(a) {
  5129. this.yf = this.oh = a;
  5130. this.$i = 0.017453292519943295 * this.yf;
  5131. this.zo = 0.017453292519943295 * this.oh;
  5132. this.W()
  5133. },
  5134. yK: function() {
  5135. return this.yf
  5136. },
  5137. ZM: function(a) {
  5138. this.yf = a;
  5139. this.$i = 0.017453292519943295 * this.yf;
  5140. this.W()
  5141. },
  5142. zK: function() {
  5143. return this.oh
  5144. },
  5145. $M: function(a) {
  5146. this.oh = a;
  5147. this.zo = 0.017453292519943295 * this.oh;
  5148. this.W()
  5149. },
  5150. Kz: function() {
  5151. this.O !== this.ma && b.log(b.c.VC);
  5152. return this.O
  5153. },
  5154. Og: function(a, c) {
  5155. this.O = a;
  5156. this.ma = c || 0 === c ? c: a;
  5157. this.W()
  5158. },
  5159. Lz: function() {
  5160. return this.O
  5161. },
  5162. Qp: function(a) {
  5163. this.O = a;
  5164. this.W()
  5165. },
  5166. Mz: function() {
  5167. return this.ma
  5168. },
  5169. gv: function(a) {
  5170. this.ma = a;
  5171. this.W()
  5172. },
  5173. Ma: function(a, c) {
  5174. var d = this.ja;
  5175. void 0 === c ? (d.x = a.x, d.y = a.y) : (d.x = a, d.y = c);
  5176. this.W()
  5177. },
  5178. EU: function() {
  5179. return C(this.ja)
  5180. },
  5181. sK: function() {
  5182. return this.ja.x
  5183. },
  5184. UM: function(a) {
  5185. this.ja.x = a;
  5186. this.W()
  5187. },
  5188. tK: function() {
  5189. return this.ja.y
  5190. },
  5191. VM: function(a) {
  5192. this.ja.y = a;
  5193. this.W()
  5194. },
  5195. TJ: function() {
  5196. return this.s.length
  5197. },
  5198. SJ: function() {
  5199. return this.s
  5200. },
  5201. fL: function() {
  5202. return this.Gc
  5203. },
  5204. te: function(a) {
  5205. this.Gc != a && (this.Gc = a) && this.W()
  5206. },
  5207. FT: function() {
  5208. return C(this.Ab)
  5209. },
  5210. Qj: function(a, c) {
  5211. var d = this.Ab;
  5212. if (void 0 === c) {
  5213. if (a.x === d.x && a.y === d.y) return;
  5214. d.x = a.x;
  5215. d.y = a.y
  5216. } else {
  5217. if (a === d.x && c === d.y) return;
  5218. d.x = a;
  5219. d.y = c
  5220. }
  5221. var e = this.lb,
  5222. f = this.v;
  5223. e.x = f.width * d.x;
  5224. e.y = f.height * d.y;
  5225. this.W()
  5226. },
  5227. $Q: function() {
  5228. return this.Ab
  5229. },
  5230. zy: function(a) {
  5231. var c = a.x;
  5232. a = a.y;
  5233. this.Ab.x !== c && (this.Ab.x = c, this.lb.x = this.v.width * c);
  5234. this.Ab.y !== a && (this.Ab.y = a, this.lb.y = this.v.height * a);
  5235. this.W()
  5236. },
  5237. TF: function() {
  5238. return this.Ab.x
  5239. },
  5240. Ws: function(a) {
  5241. this.Ab.x !== a && (this.Ab.x = a, this.lb.x = this.v.width * a, this.W())
  5242. },
  5243. UF: function() {
  5244. return this.Ab.y
  5245. },
  5246. Xs: function(a) {
  5247. this.Ab.y !== a && (this.Ab.y = a, this.lb.y = this.v.height * a, this.W())
  5248. },
  5249. qu: function() {
  5250. return C(this.lb)
  5251. },
  5252. Ie: function() {
  5253. return this.v.width
  5254. },
  5255. Bf: function(a) {
  5256. this.v.width = a;
  5257. this.lb.x = a * this.Ab.x;
  5258. this.W()
  5259. },
  5260. fh: function() {
  5261. return this.v.height
  5262. },
  5263. Af: function(a) {
  5264. this.v.height = a;
  5265. this.lb.y = a * this.Ab.y;
  5266. this.W()
  5267. },
  5268. ud: function() {
  5269. return D(this.v)
  5270. },
  5271. wd: function(a, c) {
  5272. var d = this.v;
  5273. if (void 0 === c) {
  5274. if (a.width === d.width && a.height === d.height) return;
  5275. d.width = a.width;
  5276. d.height = a.height
  5277. } else {
  5278. if (a === d.width && c === d.height) return;
  5279. d.width = a;
  5280. d.height = c
  5281. }
  5282. var e = this.lb,
  5283. f = this.Ab;
  5284. e.x = d.width * f.x;
  5285. e.y = d.height * f.y;
  5286. this.W()
  5287. },
  5288. dL: function() {
  5289. return this.Re
  5290. },
  5291. getParent: function() {
  5292. return this.Db
  5293. },
  5294. bB: function(a) {
  5295. this.Db = a
  5296. },
  5297. bL: function() {
  5298. return this.rf
  5299. },
  5300. Gu: function(a) {
  5301. a != this.rf && (this.rf = a, this.W())
  5302. },
  5303. yu: function() {
  5304. return this.tag
  5305. },
  5306. gB: function(a) {
  5307. this.tag = a
  5308. },
  5309. PM: function(a) {
  5310. this.Xi = a
  5311. },
  5312. getName: function() {
  5313. return this.Xi
  5314. },
  5315. getUserData: function() {
  5316. return this.userData
  5317. },
  5318. setUserData: function(a) {
  5319. this.userData = a
  5320. },
  5321. cV: function() {
  5322. return this.userObject
  5323. },
  5324. YY: function(a) {
  5325. this.userObject != a && (this.userObject = a)
  5326. },
  5327. zU: function() {
  5328. return this.arrivalOrder
  5329. },
  5330. RM: function(a) {
  5331. if (NaN == this.arrivalOrder) debugger;
  5332. this.arrivalOrder = a
  5333. },
  5334. mp: function() {
  5335. this.Fd || (this.Fd = b.Qa.mp());
  5336. return this.Fd
  5337. },
  5338. RA: function(a) {
  5339. this.Fd != a && (this.km(), this.Fd = a)
  5340. },
  5341. Ig: function() {
  5342. this.rd || (this.rd = b.Qa.Ig());
  5343. return this.rd
  5344. },
  5345. eB: function(a) {
  5346. this.rd != a && (this.Tp(), this.rd = a)
  5347. },
  5348. YR: function() {
  5349. b.log(b.c.SC);
  5350. return this.RJ()
  5351. },
  5352. RJ: function() {
  5353. return b.jH(E(0, 0, this.v.width, this.v.height), this.Xe())
  5354. },
  5355. If: function() {
  5356. this.km();
  5357. this.Tp();
  5358. b.I.EA(this);
  5359. this.Gd(this.s, b.m.bd.If)
  5360. },
  5361. Od: function(a) {
  5362. var c = this.s;
  5363. if (null != c) for (var d = 0; d < c.length; d++) {
  5364. var e = c[d];
  5365. if (e && e.tag == a) return e
  5366. }
  5367. return null
  5368. },
  5369. PT: function(a) {
  5370. if (!a) return b.log("Invalid name"),
  5371. null;
  5372. for (var c = this.s,
  5373. d = 0,
  5374. e = c.length; d < e; d++) if (c[d].Xi == a) return c[d];
  5375. return null
  5376. },
  5377. N: function(a, c, d) {
  5378. c = void 0 === c ? a.Ia: c;
  5379. var e, f = !1;
  5380. switch (typeof d) {
  5381. case "undefined":
  5382. d = void 0;
  5383. e = a.Xi;
  5384. break;
  5385. case "string":
  5386. e = d;
  5387. d = void 0;
  5388. break;
  5389. case "number":
  5390. f = !0,
  5391. e = ""
  5392. }
  5393. b.assert(a, b.c.RC);
  5394. b.assert(null === a.Db, "child already added. It can't be added again");
  5395. this.kI(a, c, d, e, f)
  5396. },
  5397. kI: function(a, c, d, e, f) {
  5398. this.s || (this.s = []);
  5399. this.DG(a, c);
  5400. f ? a.gB(d) : a.PM(e);
  5401. a.bB(this);
  5402. a.RM(b.$u++);
  5403. this.Re && (a.se(), this.ls && a.Hj());
  5404. this.$d && this.jx();
  5405. this.De && this.kx()
  5406. },
  5407. hc: function(a) {
  5408. this.Db && (null == a && (a = !0), this.Db.removeChild(this, a))
  5409. },
  5410. AX: function(a) {
  5411. b.log(b.c.aD);
  5412. this.hc(a)
  5413. },
  5414. removeChild: function(a, c) {
  5415. 0 !== this.s.length && (null == c && (c = !0), -1 < this.s.indexOf(a) && this.BF(a, c), this.W())
  5416. },
  5417. xX: function(a, c) {
  5418. a === b.Mv && b.log(b.c.ZC);
  5419. var d = this.Od(a);
  5420. null == d ? b.log(b.c.$C, a) : this.removeChild(d, c)
  5421. },
  5422. qX: function(a) {
  5423. b.log(b.c.YC);
  5424. this.df(a)
  5425. },
  5426. df: function(a) {
  5427. var c = this.s;
  5428. if (null != c) {
  5429. null == a && (a = !0);
  5430. for (var d = 0; d < c.length; d++) {
  5431. var e = c[d];
  5432. e && (this.Re && (e.Nf(), e.vd()), a && e.If(), e.parent = null)
  5433. }
  5434. this.s.length = 0
  5435. }
  5436. },
  5437. BF: function(a, c) {
  5438. this.Re && (a.Nf(), a.vd());
  5439. c && a.If();
  5440. a.parent = null;
  5441. b.Wc(this.s, a)
  5442. },
  5443. DG: function(a, c) {
  5444. this.bc = !0;
  5445. this.s.push(a);
  5446. a.Ay(c)
  5447. },
  5448. im: function(a, c) {
  5449. b.assert(a, b.c.bD);
  5450. this.bc = !0;
  5451. a.arrivalOrder = b.$u;
  5452. b.$u++;
  5453. a.Ay(c);
  5454. this.W()
  5455. },
  5456. vc: function() {
  5457. if (this.bc) {
  5458. var a = this.s,
  5459. c = a.length,
  5460. d, e, f;
  5461. for (d = 1; d < c; d++) {
  5462. f = a[d];
  5463. for (e = d - 1; 0 <= e;) {
  5464. if (f.Ia < a[e].Ia) a[e + 1] = a[e];
  5465. else if (f.Ia === a[e].Ia && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  5466. else break;
  5467. e--
  5468. }
  5469. a[e + 1] = f
  5470. }
  5471. this.bc = !1
  5472. }
  5473. },
  5474. na: function() {},
  5475. vB: function() {
  5476. null != this.Db && (this.Db.vB(), this.Db.transform())
  5477. },
  5478. se: function() {
  5479. this.ls = !1;
  5480. this.Re = !0;
  5481. this.Gd(this.s, b.m.bd.se);
  5482. this.Oj()
  5483. },
  5484. Hj: function() {
  5485. this.ls = !0;
  5486. this.Gd(this.s, b.m.bd.Hj)
  5487. },
  5488. Nf: function() {
  5489. this.Gd(this.s, b.m.bd.Nf)
  5490. },
  5491. vd: function() {
  5492. this.Re = !1;
  5493. this.pause();
  5494. this.Gd(this.s, b.m.bd.vd)
  5495. },
  5496. Kc: function(a) {
  5497. b.assert(a, b.c.dD);
  5498. this.actionManager.jI(a, this, !this.Re);
  5499. return a
  5500. },
  5501. km: function() {
  5502. this.actionManager && this.actionManager.DA(this)
  5503. },
  5504. kv: function(a) {
  5505. this.actionManager.CA(a)
  5506. },
  5507. fZ: function(a) {
  5508. a === b.fi ? b.log(b.c.hD) : this.actionManager.ZL(a, this)
  5509. },
  5510. Bz: function(a) {
  5511. return a === b.fi ? (b.log(b.c.TC), null) : this.actionManager.Bz(a, this)
  5512. },
  5513. wU: function() {
  5514. return this.actionManager.BL(this)
  5515. },
  5516. rM: function() {
  5517. this.sM(0)
  5518. },
  5519. sM: function(a) {
  5520. this.scheduler.bv(this, a, !this.Re)
  5521. },
  5522. AB: function() {
  5523. this.scheduler.nm(this)
  5524. },
  5525. av: function(a, c, d, e) {
  5526. c = c || 0;
  5527. b.assert(a, b.c.eD);
  5528. b.assert(0 <= c, b.c.fD);
  5529. d = null == d ? b.Ak: d;
  5530. this.scheduler.qM(this, a, c, d, e || 0, !this.Re)
  5531. },
  5532. PX: function(a, c) {
  5533. this.av(a, 0, 0, c)
  5534. },
  5535. xB: function(a) {
  5536. a && this.scheduler.zB(this, a)
  5537. },
  5538. Tp: function() {
  5539. this.scheduler.yB(this)
  5540. },
  5541. KX: function() {
  5542. b.log(b.c.cD);
  5543. this.Oj()
  5544. },
  5545. Oj: function() {
  5546. this.scheduler.Qf(this);
  5547. this.actionManager && this.actionManager.Qf(this);
  5548. b.I.Qf(this)
  5549. },
  5550. YW: function() {
  5551. b.log(b.c.XC);
  5552. this.pause()
  5553. },
  5554. pause: function() {
  5555. this.scheduler.Lj(this);
  5556. this.actionManager && this.actionManager.Lj(this);
  5557. b.I.Lj(this)
  5558. },
  5559. UX: function(a) {
  5560. this.on = a;
  5561. this.Ik = this.Ff = !0
  5562. },
  5563. rK: function() {
  5564. this.bo && (this.Dx = b.az(this.Xe()), this.bo = !1);
  5565. return this.Dx
  5566. },
  5567. VW: function() {
  5568. return this.rK()
  5569. },
  5570. vu: function() {
  5571. for (var a = this.Xe(), c = this.Db; null != c; c = c.parent) a = b.Eh(a, c.Xe());
  5572. return a
  5573. },
  5574. Bp: function() {
  5575. return this.vu()
  5576. },
  5577. Rz: function() {
  5578. return b.az(this.vu())
  5579. },
  5580. JZ: function() {
  5581. return this.Rz()
  5582. },
  5583. du: function(a) {
  5584. return b.vA(a, this.Rz())
  5585. },
  5586. pz: function(a) {
  5587. a = a || C(0, 0);
  5588. return b.vA(a, this.vu())
  5589. },
  5590. XI: function(a) {
  5591. return b.uc(this.du(a), this.lb)
  5592. },
  5593. kS: function(a) {
  5594. a = a || C(0, 0);
  5595. return this.pz(b.Jj(a, this.lb))
  5596. },
  5597. TQ: function(a) {
  5598. a = this.pz(a);
  5599. return b.Qa.YI(a)
  5600. },
  5601. lS: function(a) {
  5602. return this.du(a.Oh())
  5603. },
  5604. mS: function(a) {
  5605. a = a.Oh();
  5606. a = b.Qa.WI(a);
  5607. return this.XI(a)
  5608. },
  5609. update: function(a) {
  5610. this.gg && !this.gg.yV() && this.gg.Ba(a)
  5611. },
  5612. $c: function() {
  5613. this.Gd(this.s, b.m.bd.$c)
  5614. },
  5615. Zu: function() {},
  5616. Pf: function() {},
  5617. UJ: function(a) {
  5618. return this.gg.UJ(a)
  5619. },
  5620. BR: function(a) {
  5621. this.gg.add(a)
  5622. },
  5623. yX: function(a) {
  5624. return this.gg.remove(a)
  5625. },
  5626. rX: function() {
  5627. this.gg.oX()
  5628. },
  5629. zj: null,
  5630. ctor: null,
  5631. Ba: null,
  5632. transform: null,
  5633. Yl: function() {
  5634. return this.Xe()
  5635. },
  5636. Xe: null,
  5637. aj: function() {
  5638. if (!1 === this.Ce) {
  5639. this.Ce = !0;
  5640. var a = this.Ok;
  5641. a && a != this && a.aj()
  5642. }
  5643. },
  5644. Ys: function(a) {
  5645. if (this.Ok != a) {
  5646. this.Ok = a;
  5647. for (var c = this.s,
  5648. d = 0,
  5649. e = c.length; d < e; d++) c[d].Ys(a)
  5650. }
  5651. },
  5652. ru: function() {
  5653. this.ti || (this.ti = new b.bk);
  5654. return this.ti
  5655. },
  5656. lU: function() {
  5657. return this.zj
  5658. },
  5659. tY: function(a) {
  5660. this.zj = a
  5661. },
  5662. xu: function() {
  5663. return this.Jb
  5664. },
  5665. hv: function(a) {
  5666. this.Jb = a
  5667. },
  5668. cK: function() {
  5669. return this.es
  5670. },
  5671. KM: function(a) {
  5672. this.es = a
  5673. },
  5674. JT: function() {
  5675. var a = E(0, 0, this.v.width, this.v.height),
  5676. c = this.Bp(),
  5677. a = b.Xu(a, this.Bp());
  5678. if (!this.s) return a;
  5679. for (var d = this.s,
  5680. e = 0; e < d.length; e++) {
  5681. var f = d[e];
  5682. f && f.Gc && (f = f.Zk(c)) && (a = b.Ip(a, f))
  5683. }
  5684. return a
  5685. },
  5686. Zk: function(a) {
  5687. var c = E(0, 0, this.v.width, this.v.height);
  5688. a = null == a ? this.Xe() : b.Eh(this.Xe(), a);
  5689. c = b.Xu(c, a);
  5690. if (!this.s) return c;
  5691. for (var d = this.s,
  5692. e = 0; e < d.length; e++) {
  5693. var f = d[e];
  5694. f && f.Gc && (f = f.Zk(a)) && (c = b.Ip(c, f))
  5695. }
  5696. return c
  5697. },
  5698. hG: function() {
  5699. if (this.Ff) {
  5700. var a = this.ja.x,
  5701. c = this.ja.y,
  5702. d = this.lb.x,
  5703. e = -d,
  5704. f = this.lb.y,
  5705. g = -f,
  5706. h = this.O,
  5707. k = this.ma;
  5708. this.rf && (a += d, c += f);
  5709. var m = 1,
  5710. n = 0,
  5711. r = 1,
  5712. s = 0;
  5713. if (0 !== this.yf || 0 !== this.oh) m = Math.cos( - this.$i),
  5714. n = Math.sin( - this.$i),
  5715. r = Math.cos( - this.zo),
  5716. s = Math.sin( - this.zo);
  5717. var u = this.ie || this.je;
  5718. u || 0 === d && 0 === f || (a += r * e * h + -n * g * k, c += s * e * h + m * g * k);
  5719. var t = this.wh;
  5720. t.a = r * h;
  5721. t.b = s * h;
  5722. t.J = -n * k;
  5723. t.P = m * k;
  5724. t.Z = a;
  5725. t.$ = c;
  5726. u && (t = b.Eh({
  5727. a: 1,
  5728. b: Math.tan(b.Gg(this.je)),
  5729. J: Math.tan(b.Gg(this.ie)),
  5730. P: 1,
  5731. Z: 0,
  5732. $: 0
  5733. },
  5734. t), 0 !== d || 0 !== f) && (t = b.mI(t, e, g));
  5735. this.Ik && (t = b.Eh(t, this.on), this.Ik = !1);
  5736. this.wh = t;
  5737. this.Ff = !1
  5738. }
  5739. return this.wh
  5740. },
  5741. Eb: function() {},
  5742. wj: function() {
  5743. return this.Md
  5744. },
  5745. YJ: function() {
  5746. return this.sa
  5747. },
  5748. Ga: function(a) {
  5749. this.sa = this.Md = a;
  5750. var c = 255,
  5751. d = this.Db;
  5752. d && d.cascadeOpacity && (c = d.sa);
  5753. this.kb(c);
  5754. this.Q.a = this.ac.a = a
  5755. },
  5756. kb: function(a) {
  5757. this.sa = this.Md * a / 255;
  5758. if (this.De) {
  5759. a = this.s;
  5760. for (var c = 0; c < a.length; c++) {
  5761. var d = a[c];
  5762. d && d.kb(this.sa)
  5763. }
  5764. }
  5765. },
  5766. hA: function() {
  5767. return this.De
  5768. },
  5769. VA: function(a) {
  5770. this.De !== a && ((this.De = a) ? this.kx() : this.EF())
  5771. },
  5772. kx: function() {
  5773. var a = 255,
  5774. c = this.Db;
  5775. c && c.cascadeOpacity && (a = c.sa);
  5776. this.kb(a)
  5777. },
  5778. EF: function() {
  5779. this.sa = this.Md;
  5780. for (var a = this.s,
  5781. c = 0; c < a.length; c++) {
  5782. var d = a[c];
  5783. d && d.kb(255)
  5784. }
  5785. },
  5786. Nh: function() {
  5787. var a = this.ac;
  5788. return b.color(a.r, a.g, a.b, a.a)
  5789. },
  5790. pp: function() {
  5791. var a = this.Q;
  5792. return b.color(a.r, a.g, a.b, a.a)
  5793. },
  5794. V: function(a) {
  5795. var c = this.Q,
  5796. d = this.ac;
  5797. c.r = d.r = a.r;
  5798. c.g = d.g = a.g;
  5799. c.b = d.b = a.b;
  5800. a = (a = this.Db) && a.cascadeColor ? a.pp() : b.color.WHITE;
  5801. this.sb(a)
  5802. },
  5803. sb: function(a) {
  5804. var c = this.Q,
  5805. d = this.ac;
  5806. c.r = 0 | d.r * a.r / 255;
  5807. c.g = 0 | d.g * a.g / 255;
  5808. c.b = 0 | d.b * a.b / 255;
  5809. if (this.$d) for (a = this.s, d = 0; d < a.length; d++) {
  5810. var e = a[d];
  5811. e && e.sb(c)
  5812. }
  5813. },
  5814. gA: function() {
  5815. return this.$d
  5816. },
  5817. UA: function(a) {
  5818. this.$d !== a && ((this.$d = a) ? this.jx() : this.DF())
  5819. },
  5820. jx: function() {
  5821. var a;
  5822. a = (a = this.Db) && a.cascadeColor ? a.pp() : b.color.WHITE;
  5823. this.sb(a)
  5824. },
  5825. DF: function() {
  5826. var a = this.Q,
  5827. c = this.ac;
  5828. a.r = c.r;
  5829. a.g = c.g;
  5830. a.b = c.b;
  5831. for (var a = this.s,
  5832. c = b.color.WHITE,
  5833. d = 0; d < a.length; d++) {
  5834. var e = a[d];
  5835. e && e.sb(c)
  5836. }
  5837. },
  5838. Ng: function() {},
  5839. Dj: function() {
  5840. return ! 1
  5841. }
  5842. });
  5843. b.m.create = function() {
  5844. return new b.m
  5845. };
  5846. b.m.bd = {
  5847. se: 1,
  5848. vd: 2,
  5849. If: 3,
  5850. Hj: 4,
  5851. $c: 5,
  5852. Nf: 6,
  5853. vc: 7
  5854. };
  5855. b.da === b.Ya ? (p = b.m.prototype, p.ctor = function() {
  5856. this.gs()
  5857. },
  5858. p.W = function() {
  5859. this.aj(); ! 1 === this.Ff && (this.Ff = this.bo = !0)
  5860. },
  5861. p.Ba = function(a) {
  5862. if (this.Gc) {
  5863. a = a || b.l;
  5864. var c, d = this.s,
  5865. e;
  5866. a.save();
  5867. this.transform(a);
  5868. var f = d.length;
  5869. if (0 < f) {
  5870. this.vc();
  5871. for (c = 0; c < f; c++) if (e = d[c], 0 > e.Ia) e.Ba(a);
  5872. else break;
  5873. for (this.na(a); c < f; c++) d[c].Ba(a)
  5874. } else this.na(a);
  5875. this.Ce = !1;
  5876. this.arrivalOrder = 0;
  5877. a.restore()
  5878. }
  5879. },
  5880. p.transform = function(a) {
  5881. a = a || b.l;
  5882. var c = b.view,
  5883. d = this.Xe();
  5884. a.transform(d.a, d.J, d.b, d.P, d.Z * c.O, -d.$ * c.ma)
  5885. },
  5886. p.Xe = function() {
  5887. if (this.Ff) {
  5888. var a = this.wh;
  5889. a.Z = this.ja.x;
  5890. a.$ = this.ja.y;
  5891. var c = 1,
  5892. d = 0;
  5893. this.yf && (c = Math.cos(this.$i), d = Math.sin(this.$i));
  5894. a.a = a.P = c;
  5895. a.b = -d;
  5896. a.J = d;
  5897. var e = this.O,
  5898. f = this.ma,
  5899. g = this.lb.x,
  5900. h = this.lb.y,
  5901. k = 1E-6 > e && -1E-6 < e ? 1E-6: e,
  5902. m = 1E-6 > f && -1E-6 < f ? 1E-6: f;
  5903. if (this.ie || this.je) {
  5904. var n = Math.tan( - this.ie * Math.PI / 180),
  5905. r = Math.tan( - this.je * Math.PI / 180);
  5906. Infinity === n && (n = 99999999);
  5907. Infinity === r && (r = 99999999);
  5908. var s = h * n * k,
  5909. u = g * r * m;
  5910. a.a = c + -d * r;
  5911. a.b = c * n + -d;
  5912. a.J = d + c * r;
  5913. a.P = d * n + c;
  5914. a.Z += c * s + -d * u;
  5915. a.$ += d * s + c * u
  5916. }
  5917. if (1 !== e || 1 !== f) a.a *= k,
  5918. a.J *= k,
  5919. a.b *= m,
  5920. a.P *= m;
  5921. a.Z += c * -g * k + -d * h * m;
  5922. a.$ -= d * -g * k + c * h * m;
  5923. this.rf && (a.Z += g, a.$ += h);
  5924. this.Ik && (this.wh = b.Eh(a, this.on), this.Ik = !1);
  5925. this.Ff = !1
  5926. }
  5927. return this.wh
  5928. },
  5929. p = null) : (b.assert("function" === typeof b.p.fr, b.c.Gb, "BaseNodesWebGL.js"), b.p.fr(), delete b.p.fr);
  5930. b.assert("function" === typeof b.p.Fq, b.c.Gb, "BaseNodesPropertyDefine.js");
  5931. b.p.Fq();
  5932. delete b.p.Fq;
  5933. b.m.JP = 0;
  5934. b.m.LP = 1;
  5935. b.m.KP = 2;
  5936. b.m.MP = 3;
  5937. b.m.IP = 4;
  5938. b.hf = b.m.extend({
  5939. textureAtlas: null,
  5940. quadsToDraw: 0,
  5941. Ti: 0,
  5942. Jx: 0,
  5943. Ke: 0,
  5944. de: 0,
  5945. ah: null,
  5946. Da: !1,
  5947. t: null,
  5948. Yn: !1,
  5949. Mc: "AtlasNode",
  5950. ctor: function(a, c, d, e) {
  5951. b.m.prototype.ctor.call(this);
  5952. this.ah = b.color.WHITE;
  5953. this.t = {
  5954. src: b.kc,
  5955. Y: b.jc
  5956. };
  5957. this.Yn = !1;
  5958. void 0 !== e && this.VK(a, c, d, e)
  5959. },
  5960. Vj: function() {
  5961. b.log(b.c.JB)
  5962. },
  5963. Nh: function() {
  5964. return this.Da ? this.ah: b.m.prototype.Nh.call(this)
  5965. },
  5966. Ng: function(a) {
  5967. var c = this.color;
  5968. this.Da = a;
  5969. this.color = c
  5970. },
  5971. Dj: function() {
  5972. return this.Da
  5973. },
  5974. Ml: function() {
  5975. return this.t
  5976. },
  5977. $h: function(a, c) {
  5978. this.t = void 0 === c ? a: {
  5979. src: a,
  5980. Y: c
  5981. }
  5982. },
  5983. hB: function(a) {
  5984. this.textureAtlas = a
  5985. },
  5986. Oz: function() {
  5987. return this.textureAtlas
  5988. },
  5989. IU: function() {
  5990. return this.quadsToDraw
  5991. },
  5992. JY: function(a) {
  5993. this.quadsToDraw = a
  5994. },
  5995. vh: null,
  5996. mb: null,
  5997. Ht: null,
  5998. Pk: null,
  5999. VK: function(a, c, d, e) {
  6000. if (!a) throw "cc.AtlasNode.initWithTileFile(): title should not be null";
  6001. a = b.va.cc(a);
  6002. return this.ia(a, c, d, e)
  6003. },
  6004. ia: null,
  6005. hs: function(a, c, d, e) {
  6006. this.Ke = c;
  6007. this.de = d;
  6008. this.Da = !0;
  6009. this.mb = a;
  6010. if (!this.mb) return b.log(b.c.rv),
  6011. !1;
  6012. this.vh = this.mb;
  6013. this.wn();
  6014. this.quadsToDraw = e;
  6015. return ! 0
  6016. },
  6017. is: function(a, c, d, e) {
  6018. this.Ke = c;
  6019. this.de = d;
  6020. this.ah = b.color.WHITE;
  6021. this.Da = !0;
  6022. this.t.src = b.kc;
  6023. this.t.Y = b.jc;
  6024. c = this.ac;
  6025. this.Pk = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.Md / 255]);
  6026. this.textureAtlas = new b.mf;
  6027. this.textureAtlas.ia(a, e);
  6028. if (!this.textureAtlas) return b.log(b.c.rv),
  6029. !1;
  6030. this.yh();
  6031. this.Wy();
  6032. this.wn();
  6033. this.quadsToDraw = e;
  6034. this.shaderProgram = b.ff.Of(b.zD);
  6035. this.Ht = b.l.getUniformLocation(this.shaderProgram.Iz(), "u_color");
  6036. return ! 0
  6037. },
  6038. na: null,
  6039. Lr: function(a) {
  6040. a = a || b.l;
  6041. b.pA(this);
  6042. b.Ph(this.t.src, this.t.Y);
  6043. this.Ht && this.Pk && (a.uniform4fv(this.Ht, this.Pk), this.textureAtlas.vz(this.quadsToDraw))
  6044. },
  6045. V: null,
  6046. wH: function(a) {
  6047. var c = this.ac;
  6048. if (c.r != a.r || c.g != a.g || c.b != a.b) {
  6049. c = b.color(a.r, a.g, a.b);
  6050. this.ah = a;
  6051. if (this.Da) {
  6052. var d = this.sa;
  6053. c.r = c.r * d / 255;
  6054. c.g = c.g * d / 255;
  6055. c.b = c.b * d / 255
  6056. }
  6057. b.m.prototype.V.call(this, a);
  6058. this.fd()
  6059. }
  6060. },
  6061. fd: function() {
  6062. var a = this.La();
  6063. if (a && this.mb) {
  6064. var c = this.mb.la;
  6065. if (c) {
  6066. var d = a.la,
  6067. a = E(0, 0, c.width, c.height);
  6068. d instanceof HTMLCanvasElement ? b.tj(c, this.Q, a, d) : (d = b.tj(c, this.Q, a), a = new b.K, a.Mb(d), a.Fa(), this.Wa(a))
  6069. }
  6070. }
  6071. },
  6072. xH: function(a) {
  6073. var c = b.color(a.r, a.g, a.b);
  6074. this.ah = a;
  6075. var d = this.sa;
  6076. this.Da && (c.r = c.r * d / 255, c.g = c.g * d / 255, c.b = c.b * d / 255);
  6077. b.m.prototype.V.call(this, a);
  6078. a = this.Q;
  6079. this.Pk = new Float32Array([a.r / 255, a.g / 255, a.b / 255, d / 255])
  6080. },
  6081. Ga: function() {},
  6082. bt: function(a) {
  6083. b.m.prototype.Ga.call(this, a);
  6084. this.Da && (this.color = this.ah)
  6085. },
  6086. ct: function(a) {
  6087. b.m.prototype.Ga.call(this, a);
  6088. this.Da ? this.color = this.ah: (a = this.Q, this.Pk = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.sa / 255]))
  6089. },
  6090. La: null,
  6091. cs: function() {
  6092. return this.vh
  6093. },
  6094. ds: function() {
  6095. return this.textureAtlas.texture
  6096. },
  6097. Wa: null,
  6098. gt: function(a) {
  6099. this.vh = a
  6100. },
  6101. ht: function(a) {
  6102. this.textureAtlas.texture = a;
  6103. this.yh();
  6104. this.Wy()
  6105. },
  6106. wn: null,
  6107. rF: function() {
  6108. var a = this.texture.ud();
  6109. this.Jx = 0 | a.height / this.de;
  6110. this.Ti = 0 | a.width / this.Ke
  6111. },
  6112. sF: function() {
  6113. var a = this.texture,
  6114. c = a.ud();
  6115. this.Yn && (c = a.v);
  6116. this.Jx = 0 | c.height / this.de;
  6117. this.Ti = 0 | c.width / this.Ke
  6118. },
  6119. yh: function() {
  6120. this.textureAtlas.texture.Aj() || (this.t.src = b.SRC_ALPHA, this.t.Y = b.ONE_MINUS_SRC_ALPHA)
  6121. },
  6122. Wy: function() {
  6123. this.Da = this.textureAtlas.texture.Aj()
  6124. },
  6125. at: function(a) {
  6126. this.Yn = a
  6127. }
  6128. });
  6129. p = b.hf.prototype;
  6130. b.da === b.wb ? (p.ia = p.is, p.na = p.Lr, p.V = p.xH, p.Ga = p.ct, p.La = p.ds, p.Wa = p.ht, p.wn = p.sF) : (p.ia = p.hs, p.na = b.m.prototype.na, p.V = p.wH, p.Ga = p.bt, p.La = p.cs, p.Wa = p.gt, p.wn = p.rF, b.Aa.wt || (p.fd = function() {
  6131. var a, c = this.La();
  6132. if (c && this.mb && (a = c.la)) {
  6133. var d = this.mb.la;
  6134. if (c = b.va.zu(d)) d = E(0, 0, d.width, d.height),
  6135. a instanceof HTMLCanvasElement ? b.sj(a, c, this.Q, d, a) : (a = b.sj(a, c, this.Q, d), c = new b.K, c.Mb(a), c.Fa(), this.Wa(c))
  6136. }
  6137. }));
  6138. b.k(p, "opacity", p.wj, p.Ga);
  6139. b.k(p, "color", p.Nh, p.V);
  6140. b.k(p, "texture", p.La, p.Wa);
  6141. b.hf.create = function(a, c, d, e) {
  6142. return new b.hf(a, c, d, e)
  6143. };
  6144. b.p.lr = function() {
  6145. b.K = b.oa.extend({
  6146. mR: !0,
  6147. Yi: null,
  6148. wf: 0,
  6149. vf: 0,
  6150. Xi: "",
  6151. v: null,
  6152. af: 0,
  6153. bf: 0,
  6154. Xn: !1,
  6155. Ni: !1,
  6156. shaderProgram: null,
  6157. xb: !1,
  6158. la: null,
  6159. Ah: null,
  6160. url: null,
  6161. qa: null,
  6162. ctor: function() {
  6163. this.v = D(0, 0);
  6164. this.Yi = b.K.tz
  6165. },
  6166. Yu: function() {
  6167. this.Ah && b.l.deleteTexture(this.Ah);
  6168. b.D.Pf(this.url)
  6169. },
  6170. Fz: function() {
  6171. return this.Yi
  6172. },
  6173. Hz: function() {
  6174. return this.wf
  6175. },
  6176. Gz: function() {
  6177. return this.vf
  6178. },
  6179. getName: function() {
  6180. return this.Ah
  6181. },
  6182. ud: function() {
  6183. return D(this.v.width / b.Ka(), this.v.height / b.Ka())
  6184. },
  6185. Ie: function() {
  6186. return this.v.width / b.Ka()
  6187. },
  6188. fh: function() {
  6189. return this.v.height / b.Ka()
  6190. },
  6191. VJ: function() {
  6192. return this.v
  6193. },
  6194. mK: function() {
  6195. return this.af
  6196. },
  6197. NM: function(a) {
  6198. this.af = a
  6199. },
  6200. nK: function() {
  6201. return this.bf
  6202. },
  6203. OM: function(a) {
  6204. this.bf = a
  6205. },
  6206. xu: function() {
  6207. return this.shaderProgram
  6208. },
  6209. hv: function(a) {
  6210. this.shaderProgram = a
  6211. },
  6212. Aj: function() {
  6213. return this.Xn
  6214. },
  6215. NK: function() {
  6216. return this.Ni
  6217. },
  6218. description: function() {
  6219. return "\x3ccc.Texture2D | Name \x3d " + this.Xi + " | Dimensions \x3d " + this.wf + " x " + this.vf + " | Coordinates \x3d (" + this.af + ", " + this.bf + ")\x3e"
  6220. },
  6221. YL: function() {},
  6222. jL: function(a) {
  6223. return a
  6224. },
  6225. Xz: function(a, c, d, e, f) {
  6226. var g = b.K,
  6227. h = b.l,
  6228. k = h.RGBA,
  6229. m = h.UNSIGNED_BYTE,
  6230. n = d * b.K.gw[c] / 8;
  6231. 0 === n % 8 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 8) : 0 === n % 4 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 4) : 0 === n % 2 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 2) : h.pixelStorei(h.UNPACK_ALIGNMENT, 1);
  6232. this.Ah = h.createTexture();
  6233. b.qe(this);
  6234. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR);
  6235. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR);
  6236. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE);
  6237. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_T, h.CLAMP_TO_EDGE);
  6238. switch (c) {
  6239. case g.zk:
  6240. k = h.RGBA;
  6241. break;
  6242. case g.yk:
  6243. k = h.RGB;
  6244. break;
  6245. case g.Wm:
  6246. m = h.UNSIGNED_SHORT_4_4_4_4;
  6247. break;
  6248. case g.Vm:
  6249. m = h.UNSIGNED_SHORT_5_5_5_1;
  6250. break;
  6251. case g.xk:
  6252. m = h.UNSIGNED_SHORT_5_6_5;
  6253. break;
  6254. case g.Cq:
  6255. k = h.LUMINANCE_ALPHA;
  6256. break;
  6257. case g.Um:
  6258. k = h.ALPHA;
  6259. break;
  6260. case g.Dq:
  6261. k = h.LUMINANCE;
  6262. break;
  6263. default:
  6264. b.assert(0, b.c.rE)
  6265. }
  6266. h.texImage2D(h.TEXTURE_2D, 0, k, d, e, 0, k, m, a);
  6267. this.v.width = f.width;
  6268. this.v.height = f.height;
  6269. this.wf = d;
  6270. this.vf = e;
  6271. this.Yi = c;
  6272. this.af = f.width / d;
  6273. this.bf = f.height / e;
  6274. this.Ni = this.Xn = !1;
  6275. this.shaderProgram = b.ff.Of(b.Xv);
  6276. return this.xb = !0
  6277. },
  6278. dJ: function(a) {
  6279. var c = [0, this.bf, this.af, this.bf, 0, 0, this.af, 0],
  6280. d = this.wf * this.af,
  6281. e = this.vf * this.bf;
  6282. a = [a.x, a.y, 0, d + a.x, a.y, 0, a.x, e + a.y, 0, d + a.x, e + a.y, 0];
  6283. b.tc(b.Lc | b.dr);
  6284. this.Jb.wc();
  6285. this.Jb.iB();
  6286. b.qe(this);
  6287. d = b.l;
  6288. d.vertexAttribPointer(b.lc, 2, d.FLOAT, !1, 0, a);
  6289. d.vertexAttribPointer(b.Dk, 2, d.FLOAT, !1, 0, c);
  6290. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  6291. },
  6292. fJ: function(a) {
  6293. var c = [0, this.bf, this.af, this.bf, 0, 0, this.af, 0];
  6294. a = [a.x, a.y, a.x + a.width, a.y, a.x, a.y + a.height, a.x + a.width, a.y + a.height];
  6295. b.tc(b.Lc | b.dr);
  6296. this.Jb.wc();
  6297. this.Jb.iB();
  6298. b.qe(this);
  6299. var d = b.l;
  6300. d.vertexAttribPointer(b.lc, 2, d.FLOAT, !1, 0, a);
  6301. d.vertexAttribPointer(b.Dk, 2, d.FLOAT, !1, 0, c);
  6302. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  6303. },
  6304. $z: function(a) {
  6305. if (null == a) return b.log(b.c.uE),
  6306. !1;
  6307. var c = a.LK(),
  6308. d = a.dK(),
  6309. e = b.bu.il;
  6310. if (c > e || d > e) return b.log(b.c.vE, c, d, e, e),
  6311. !1;
  6312. this.xb = !0;
  6313. return this.zG(a, c, d)
  6314. },
  6315. Mb: function(a) {
  6316. a && (this.Ah = b.l.createTexture(), this.la = a)
  6317. },
  6318. fK: function() {
  6319. return this.la
  6320. },
  6321. cL: function() {
  6322. return this.xb
  6323. },
  6324. Fa: function() {
  6325. if (b.yo) {
  6326. if (!this.la) {
  6327. var a = b.D.Yc(this.url);
  6328. if (!a) return;
  6329. this.Mb(a)
  6330. }
  6331. this.la.width && this.la.height && (this.xb = !0, a = b.l, b.qe(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.la), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE), this.shaderProgram = b.ff.Of(b.Xv), b.qe(null), a = this.la.height, this.wf = this.v.width = this.la.width, this.vf = this.v.height = a, this.Yi = b.K.zk, this.bf = this.af = 1, this.Ni = this.Xn = !1, this.Ub())
  6332. }
  6333. },
  6334. Qd: function() {
  6335. b.log(b.c.AE);
  6336. return null
  6337. },
  6338. RK: function() {
  6339. b.log(b.c.tE);
  6340. return ! 1
  6341. },
  6342. SK: function() {
  6343. b.log(b.c.xE);
  6344. return ! 1
  6345. },
  6346. TK: function() {
  6347. b.log(b.c.zE);
  6348. return ! 1
  6349. },
  6350. fN: function(a) {
  6351. var c = b.l;
  6352. b.assert(this.wf == b.Aq(this.wf) && this.vf == b.Aq(this.vf) || a.WN == c.CLAMP_TO_EDGE && a.XN == c.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  6353. b.qe(this);
  6354. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, a.$V);
  6355. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, a.XV);
  6356. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, a.WN);
  6357. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, a.XN)
  6358. },
  6359. yM: function() {
  6360. var a = b.l;
  6361. b.qe(this);
  6362. this.Ni ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
  6363. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  6364. },
  6365. uM: function() {
  6366. var a = b.l;
  6367. b.qe(this);
  6368. this.Ni ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST);
  6369. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  6370. },
  6371. generateMipmap: function() {
  6372. b.assert(this.wf == b.Aq(this.wf) && this.vf == b.Aq(this.vf), "Mimpap texture only works in POT textures");
  6373. b.qe(this);
  6374. b.l.generateMipmap(b.l.TEXTURE_2D);
  6375. this.Ni = !0
  6376. },
  6377. EN: function() {
  6378. return b.K.bF[this.Yi]
  6379. },
  6380. JI: function(a) {
  6381. a = a || this.Yi;
  6382. var c = b.K.gw[a];
  6383. if (null != c) return c;
  6384. b.log(b.c.qE, a);
  6385. return - 1
  6386. },
  6387. zG: function(a, c, d) {
  6388. var e = b.K,
  6389. f = a.getData(),
  6390. g = null,
  6391. g = null,
  6392. h = a.lV(),
  6393. k = D(a.LK(), a.dK()),
  6394. m = e.tz,
  6395. n = a.IT();
  6396. h || (8 <= n ? m = e.yk: (b.log(b.c.nE), m = e.xk));
  6397. var r = c * d;
  6398. if (m == e.xk) if (h) for (f = new Uint16Array(c * d), g = a.getData(), n = 0; n < r; ++n) f[n] = (g[n] >> 0 & 255) >> 3 << 11 | (g[n] >> 8 & 255) >> 2 << 5 | (g[n] >> 16 & 255) >> 3 << 0;
  6399. else for (f = new Uint16Array(c * d), g = a.getData(), n = 0; n < r; ++n) f[n] = (g[n] & 255) >> 3 << 11 | (g[n] & 255) >> 2 << 5 | (g[n] & 255) >> 3 << 0;
  6400. else if (m == e.Wm) for (f = new Uint16Array(c * d), g = a.getData(), n = 0; n < r; ++n) f[n] = (g[n] >> 0 & 255) >> 4 << 12 | (g[n] >> 8 & 255) >> 4 << 8 | (g[n] >> 16 & 255) >> 4 << 4 | (g[n] >> 24 & 255) >> 4 << 0;
  6401. else if (m == e.Vm) for (f = new Uint16Array(c * d), g = a.getData(), n = 0; n < r; ++n) f[n] = (g[n] >> 0 & 255) >> 3 << 11 | (g[n] >> 8 & 255) >> 3 << 6 | (g[n] >> 16 & 255) >> 3 << 1 | (g[n] >> 24 & 255) >> 7 << 0;
  6402. else if (m == e.Um) for (f = new Uint8Array(c * d), g = a.getData(), n = 0; n < r; ++n) f[n] = g >> 24 & 255;
  6403. if (h && m == e.yk) for (g = a.getData(), f = new Uint8Array(c * d * 3), n = 0; n < r; ++n) f[3 * n] = g >> 0 & 255,
  6404. f[3 * n + 1] = g >> 8 & 255,
  6405. f[3 * n + 2] = g >> 16 & 255;
  6406. this.Xz(f, m, c, d, k);
  6407. a.getData();
  6408. this.Xn = a.DV();
  6409. return ! 0
  6410. },
  6411. Vc: function(a, c) {
  6412. this.qa || (this.qa = []);
  6413. this.qa.push({
  6414. ne: a,
  6415. td: c
  6416. })
  6417. },
  6418. bM: function(a) {
  6419. if (this.qa) for (var c = this.qa,
  6420. d = 0; d < c.length; d++) c[d].td == a && c.splice(d, 1)
  6421. },
  6422. Ub: function() {
  6423. if (this.qa) {
  6424. for (var a = this.qa,
  6425. c = 0,
  6426. d = a.length; c < d; c++) {
  6427. var e = a[c];
  6428. e.ne.call(e.td, this)
  6429. }
  6430. a.length = 0
  6431. }
  6432. }
  6433. })
  6434. };
  6435. b.p.mr = function() {
  6436. var a = b.mf.prototype;
  6437. a.Hy = function() {
  6438. var a = b.l;
  6439. this.ed[0] = a.createBuffer();
  6440. this.ed[1] = a.createBuffer();
  6441. this.lh = a.createBuffer();
  6442. this.ko()
  6443. };
  6444. a.ko = function() {
  6445. var a = b.l;
  6446. a.bindBuffer(a.ARRAY_BUFFER, this.lh);
  6447. a.bufferData(a.ARRAY_BUFFER, this.Tc, a.DYNAMIC_DRAW);
  6448. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.ed[1]);
  6449. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.md, a.STATIC_DRAW)
  6450. };
  6451. a.vz = function(a) {
  6452. var d;
  6453. d = 0;
  6454. if (0 !== a && this.texture && this.texture.xb) {
  6455. var e = b.l;
  6456. b.qe(this.texture);
  6457. b.tc(b.gn);
  6458. e.bindBuffer(e.ARRAY_BUFFER, this.lh);
  6459. this.dirty && e.bufferData(e.ARRAY_BUFFER, this.Tc, e.DYNAMIC_DRAW);
  6460. e.vertexAttribPointer(b.lc, 3, e.FLOAT, !1, 24, 0);
  6461. e.vertexAttribPointer(b.Ck, 4, e.UNSIGNED_BYTE, !0, 24, 12);
  6462. e.vertexAttribPointer(b.Dk, 2, e.FLOAT, !1, 24, 16);
  6463. this.dirty && (this.dirty = !1);
  6464. e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.ed[1]);
  6465. b.Zv ? e.drawElements(e.TRIANGLE_STRIP, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.md.BYTES_PER_ELEMENT) : e.drawElements(e.TRIANGLES, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.md.BYTES_PER_ELEMENT);
  6466. b.We++
  6467. }
  6468. }
  6469. };
  6470. b.p.nr = function() {
  6471. var a = b.va;
  6472. a.Fa = function(a) {
  6473. var d = this.pb;
  6474. b.yo || (d = this.hl);
  6475. var e = d[a];
  6476. e || (e = d[a] = new b.K, e.url = a);
  6477. e.Fa()
  6478. };
  6479. a.cc = function(a, d, e) {
  6480. b.assert(a, b.c.pE);
  6481. var f = this.pb;
  6482. b.yo || (f = this.hl);
  6483. var g = f[a] || f[b.D.$g[a]];
  6484. if (g) return d && d.call(e),
  6485. g;
  6486. b.D.Yc(a) || (b.D.uw(a) ? b.D.load(a,
  6487. function() {
  6488. d && d.call(e)
  6489. }) : b.D.sd[a] = b.D.Wl(a,
  6490. function(e, f) {
  6491. if (e) return d ? d(e) : e;
  6492. b.va.Fa(a);
  6493. d && d(null, f)
  6494. }));
  6495. g = f[a] = new b.K;
  6496. g.url = a;
  6497. return g
  6498. };
  6499. delete a
  6500. };
  6501. b.p.Lq = function() {
  6502. var a = b.K;
  6503. a.TP = function(a) {
  6504. b.uD = a
  6505. };
  6506. a.zk = 2;
  6507. a.yk = 3;
  6508. a.xk = 4;
  6509. a.Um = 5;
  6510. a.Dq = 6;
  6511. a.Cq = 7;
  6512. a.Wm = 8;
  6513. a.Vm = 7;
  6514. a.Rv = 9;
  6515. a.Qv = 10;
  6516. a.pD = a.zk;
  6517. var c = b.K.bF = {};
  6518. c[a.zk] = "RGBA8888";
  6519. c[a.yk] = "RGB888";
  6520. c[a.xk] = "RGB565";
  6521. c[a.Um] = "A8";
  6522. c[a.Dq] = "I8";
  6523. c[a.Cq] = "AI88";
  6524. c[a.Wm] = "RGBA4444";
  6525. c[a.Vm] = "RGB5A1";
  6526. c[a.Rv] = "PVRTC4";
  6527. c[a.Qv] = "PVRTC2";
  6528. c = b.K.gw = {};
  6529. c[a.zk] = 32;
  6530. c[a.yk] = 24;
  6531. c[a.xk] = 16;
  6532. c[a.Um] = 8;
  6533. c[a.Dq] = 8;
  6534. c[a.Cq] = 16;
  6535. c[a.Wm] = 16;
  6536. c[a.Vm] = 16;
  6537. c[a.Rv] = 4;
  6538. c[a.Qv] = 3;
  6539. c = b.K.prototype;
  6540. b.k(c, "name", c.getName);
  6541. b.k(c, "pixelFormat", c.Fz);
  6542. b.k(c, "pixelsWidth", c.Hz);
  6543. b.k(c, "pixelsHeight", c.Gz);
  6544. b.k(c, "width", c.Ie);
  6545. b.k(c, "height", c.fh);
  6546. a.tz = a.pD
  6547. };
  6548. b.p.Mq = function() {
  6549. var a = b.mf.prototype;
  6550. b.k(a, "totalQuads", a.Qz);
  6551. b.k(a, "capacity", a.Cz);
  6552. b.k(a, "quads", a.Jz, a.cB)
  6553. };
  6554. b.fO = 51;
  6555. b.iO = 19;
  6556. b.kO = 18;
  6557. b.hO = 50;
  6558. b.eO = 34;
  6559. b.cO = 35;
  6560. b.dO = 33;
  6561. b.gO = 49;
  6562. b.jO = 17;
  6563. b.uD = !1;
  6564. b.da === b.Ya ? b.K = b.oa.extend({
  6565. v: null,
  6566. xb: !1,
  6567. la: null,
  6568. qa: null,
  6569. url: null,
  6570. ctor: function() {
  6571. this.v = D(0, 0);
  6572. this.xb = !1;
  6573. this.la = null
  6574. },
  6575. Hz: function() {
  6576. return this.v.width
  6577. },
  6578. Gz: function() {
  6579. return this.v.height
  6580. },
  6581. ud: function() {
  6582. var a = b.Ka();
  6583. return D(this.v.width / a, this.v.height / a)
  6584. },
  6585. Ie: function() {
  6586. return this.v.width / b.Ka()
  6587. },
  6588. fh: function() {
  6589. return this.v.height / b.Ka()
  6590. },
  6591. VJ: function() {
  6592. return this.v
  6593. },
  6594. Mb: function(a) {
  6595. a && (this.la = a)
  6596. },
  6597. fK: function() {
  6598. return this.la
  6599. },
  6600. cL: function() {
  6601. return this.xb
  6602. },
  6603. Fa: function() {
  6604. if (!this.xb) {
  6605. if (!this.la) {
  6606. var a = b.D.Yc(this.url);
  6607. if (!a) return;
  6608. this.Mb(a)
  6609. }
  6610. this.xb = !0;
  6611. a = this.la;
  6612. this.v.width = a.width;
  6613. this.v.height = a.height;
  6614. this.Ub()
  6615. }
  6616. },
  6617. description: function() {
  6618. return "\x3ccc.Texture2D | width \x3d " + this.v.width + " height " + this.v.height + "\x3e"
  6619. },
  6620. Xz: function() {
  6621. return ! 1
  6622. },
  6623. $z: function() {
  6624. return ! 1
  6625. },
  6626. Qd: function() {
  6627. return ! 1
  6628. },
  6629. Yu: function() {},
  6630. getName: function() {
  6631. return null
  6632. },
  6633. mK: function() {
  6634. return 1
  6635. },
  6636. NM: function() {},
  6637. nK: function() {
  6638. return 1
  6639. },
  6640. OM: function() {},
  6641. Fz: function() {
  6642. return null
  6643. },
  6644. xu: function() {
  6645. return null
  6646. },
  6647. hv: function() {},
  6648. Aj: function() {
  6649. return ! 1
  6650. },
  6651. NK: function() {
  6652. return ! 1
  6653. },
  6654. YL: function() {},
  6655. jL: function(a) {
  6656. return a
  6657. },
  6658. dJ: function() {},
  6659. fJ: function() {},
  6660. RK: function() {
  6661. b.log(b.c.sE);
  6662. return ! 1
  6663. },
  6664. SK: function() {
  6665. b.log(b.c.wE);
  6666. return ! 1
  6667. },
  6668. TK: function() {
  6669. b.log(b.c.yE);
  6670. return ! 1
  6671. },
  6672. fN: function() {},
  6673. yM: function() {},
  6674. uM: function() {},
  6675. generateMipmap: function() {},
  6676. EN: function() {
  6677. return ""
  6678. },
  6679. JI: function() {
  6680. return - 1
  6681. },
  6682. Vc: function(a, c) {
  6683. this.qa || (this.qa = []);
  6684. this.qa.push({
  6685. ne: a,
  6686. td: c
  6687. })
  6688. },
  6689. bM: function(a) {
  6690. if (this.qa) for (var c = this.qa,
  6691. d = 0; d < c.length; d++) c[d].td == a && c.splice(d, 1)
  6692. },
  6693. Ub: function() {
  6694. if (this.qa) {
  6695. for (var a = this.qa,
  6696. c = 0,
  6697. d = a.length; c < d; c++) {
  6698. var e = a[c];
  6699. e.ne.call(e.td, this)
  6700. }
  6701. a.length = 0
  6702. }
  6703. }
  6704. }) : (b.assert("function" === typeof b.p.lr, b.c.Gb, "TexturesWebGL.js"), b.p.lr(), delete b.p.lr);
  6705. b.assert("function" === typeof b.p.Lq, b.c.Gb, "TexturesPropertyDefine.js");
  6706. b.p.Lq();
  6707. delete b.p.Lq;
  6708. b.va = {
  6709. pb: {},
  6710. Al: {},
  6711. Ct: 0 | 1E3 * Math.random(),
  6712. hl: {},
  6713. CG: function() {
  6714. var a, c = this.hl,
  6715. d = this.pb;
  6716. for (a in c) {
  6717. var e = c[a];
  6718. e.Fa();
  6719. d[a] = e
  6720. }
  6721. this.hl = {}
  6722. },
  6723. FR: function() {
  6724. b.log(b.c.IN)
  6725. },
  6726. CR: function() {
  6727. b.log(b.c.GN)
  6728. },
  6729. description: function() {
  6730. return "\x3cTextureCache | Number of textures \x3d " + this.pb.length + "\x3e"
  6731. },
  6732. lm: function(a) {
  6733. return this.pb[a] || this.pb[b.D.$g[a]]
  6734. },
  6735. gK: function(a) {
  6736. for (var c in this.pb) if (this.pb[c] == a) return c;
  6737. return null
  6738. },
  6739. QF: function() {
  6740. this.Ct++;
  6741. return "_textureKey_" + this.Ct
  6742. },
  6743. zu: function(a) {
  6744. var c = this.gK(a);
  6745. c || (c = a instanceof HTMLImageElement ? a.src: this.QF());
  6746. this.Al[c] || (this.Al[c] = b.rj(a));
  6747. return this.Al[c]
  6748. },
  6749. ER: function() {
  6750. b.log(b.c.HN)
  6751. },
  6752. uX: function() {
  6753. var a = this.pb,
  6754. c;
  6755. for (c in a) a[c] && a[c].Yu();
  6756. this.pb = {}
  6757. },
  6758. HX: function(a) {
  6759. if (a) {
  6760. var c = this.pb,
  6761. d;
  6762. for (d in c) c[d] == a && (c[d].Yu(), delete c[d])
  6763. }
  6764. },
  6765. IX: function(a) {
  6766. null != a && this.pb[a] && delete this.pb[a]
  6767. },
  6768. ZR: function(a, c) {
  6769. if (c instanceof b.K) this.pb[a] = c;
  6770. else {
  6771. var d = new b.K;
  6772. d.Mb(c);
  6773. d.Fa();
  6774. this.pb[a] = d
  6775. }
  6776. },
  6777. JR: function(a, c) {
  6778. b.assert(a, b.c.KN);
  6779. if (c && this.pb[c]) return this.pb[c];
  6780. var d = new b.K;
  6781. d.$z(a);
  6782. null != c && null != d ? this.pb[c] = d: b.log(b.c.JN);
  6783. return d
  6784. },
  6785. DS: function() {
  6786. var a = 0,
  6787. c = 0,
  6788. d = this.pb,
  6789. e;
  6790. for (e in d) {
  6791. var f = d[e];
  6792. a++;
  6793. f.la instanceof HTMLImageElement ? b.log(b.c.LN, e, f.la.src, f.pixelsWidth, f.pixelsHeight) : b.log(b.c.rB, e, f.pixelsWidth, f.pixelsHeight);
  6794. c += f.pixelsWidth * f.pixelsHeight * 4
  6795. }
  6796. d = this.Al;
  6797. for (e in d) {
  6798. var f = d[e],
  6799. g;
  6800. for (g in f) {
  6801. var h = f[g];
  6802. a++;
  6803. b.log(b.c.rB, e, h.width, h.height);
  6804. c += h.width * h.height * 4
  6805. }
  6806. }
  6807. b.log(b.c.MN, a, c / 1024, (c / 1048576).toFixed(2))
  6808. },
  6809. fg: function() {
  6810. this.pb = {};
  6811. this.Al = {};
  6812. this.Ct = 0 | 1E3 * Math.random();
  6813. this.hl = {}
  6814. }
  6815. };
  6816. b.da === b.Ya ? (p = b.va, p.Fa = function(a) {
  6817. var c = this.pb,
  6818. d = c[a];
  6819. d || (d = c[a] = new b.K, d.url = a);
  6820. d.Fa()
  6821. },
  6822. p.cc = function(a, c, d) {
  6823. b.assert(a, b.c.oE);
  6824. var e = this.pb,
  6825. f = e[a] || e[b.D.$g[a]];
  6826. if (f) return c && c.call(d),
  6827. f;
  6828. f = e[a] = new b.K;
  6829. f.url = a;
  6830. b.D.Yc(a) ? f.Fa() : b.D.uw(a) ? b.D.load(a,
  6831. function() {
  6832. c && c.call(d)
  6833. }) : b.D.sd[a] = b.D.Wl(a,
  6834. function(d, e) {
  6835. if (d) return c ? c(d) : d;
  6836. b.va.Fa(a);
  6837. c && c(null, e)
  6838. });
  6839. return f
  6840. },
  6841. p = null) : (b.assert("function" === typeof b.p.nr, b.c.Gb, "TexturesWebGL.js"), b.p.nr(), delete b.p.nr);
  6842. b.mf = b.oa.extend({
  6843. dirty: !1,
  6844. texture: null,
  6845. md: null,
  6846. ed: null,
  6847. Bc: 0,
  6848. Ec: null,
  6849. Tc: null,
  6850. lh: null,
  6851. od: null,
  6852. ctor: function(a, c) {
  6853. this.ed = [];
  6854. "string" == typeof a ? this.Tl(a, c) : a instanceof b.K && this.ia(a, c)
  6855. },
  6856. Qz: function() {
  6857. return this.X
  6858. },
  6859. Cz: function() {
  6860. return this.Bc
  6861. },
  6862. La: function() {
  6863. return this.texture
  6864. },
  6865. Wa: function(a) {
  6866. this.texture = a
  6867. },
  6868. XA: function(a) {
  6869. this.dirty = a
  6870. },
  6871. iA: function() {
  6872. return this.dirty
  6873. },
  6874. Jz: function() {
  6875. return this.Ec
  6876. },
  6877. cB: function(a) {
  6878. this.Ec = a
  6879. },
  6880. UQ: function(a, c) {
  6881. if (a) for (var d = 0; d < a.length; d++) this.Co(a[d], c + d)
  6882. },
  6883. Co: function(a, c) {
  6884. var d = this.Ec;
  6885. d[c] ? (d[c].wa = a.wa, d[c].xa = a.xa, d[c].ya = a.ya, d[c].za = a.za) : d[c] = new b.Xa(a.ya, a.wa, a.za, a.xa, this.Tc, c * b.Xa.BYTES_PER_ELEMENT)
  6886. },
  6887. description: function() {
  6888. return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.X + "\x3e"
  6889. },
  6890. Gy: function() {
  6891. if (0 !== this.Bc) for (var a = this.md,
  6892. c = this.Bc,
  6893. d = 0; d < c; d++) b.Zv ? (a[6 * d + 0] = 4 * d + 0, a[6 * d + 1] = 4 * d + 0, a[6 * d + 2] = 4 * d + 2, a[6 * d + 3] = 4 * d + 1, a[6 * d + 4] = 4 * d + 3, a[6 * d + 5] = 4 * d + 3) : (a[6 * d + 0] = 4 * d + 0, a[6 * d + 1] = 4 * d + 1, a[6 * d + 2] = 4 * d + 2, a[6 * d + 3] = 4 * d + 3, a[6 * d + 4] = 4 * d + 2, a[6 * d + 5] = 4 * d + 1)
  6894. },
  6895. Hy: function() {
  6896. var a = b.l;
  6897. this.ed[0] = a.createBuffer();
  6898. this.ed[1] = a.createBuffer();
  6899. this.lh = a.createBuffer();
  6900. this.ko()
  6901. },
  6902. ko: function() {
  6903. var a = b.l;
  6904. a.bindBuffer(a.ARRAY_BUFFER, this.lh);
  6905. a.bufferData(a.ARRAY_BUFFER, this.Tc, a.DYNAMIC_DRAW);
  6906. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.ed[1]);
  6907. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.md, a.STATIC_DRAW)
  6908. },
  6909. Tl: function(a, c) {
  6910. var d = b.va.cc(a);
  6911. if (d) return this.ia(d, c);
  6912. b.log(b.c.BE, a);
  6913. return ! 1
  6914. },
  6915. ia: function(a, c) {
  6916. b.assert(a, b.c.CE);
  6917. this.Bc = c |= 0;
  6918. this.X = 0;
  6919. this.texture = a;
  6920. this.Ec = [];
  6921. this.md = new Uint16Array(6 * c);
  6922. var d = b.Xa.BYTES_PER_ELEMENT;
  6923. this.Tc = new ArrayBuffer(d * c);
  6924. this.od = new Uint8Array(this.Tc);
  6925. if ((!this.Ec || !this.md) && 0 < c) return ! 1;
  6926. for (var e = this.Ec,
  6927. f = 0; f < c; f++) e[f] = new b.Xa(null, null, null, null, this.Tc, f * d);
  6928. this.Gy();
  6929. this.Hy();
  6930. return this.dirty = !0
  6931. },
  6932. Up: function(a, c) {
  6933. b.assert(a, b.c.ME);
  6934. b.assert(0 <= c && c < this.Bc, b.c.NE);
  6935. this.X = Math.max(c + 1, this.X);
  6936. this.Co(a, c);
  6937. this.dirty = !0
  6938. },
  6939. Iu: function(a, c) {
  6940. b.assert(c < this.Bc, b.c.FE);
  6941. this.X++;
  6942. if (this.X > this.Bc) b.log(b.c.bw);
  6943. else {
  6944. var d = b.Xa.BYTES_PER_ELEMENT,
  6945. e = c * d,
  6946. f = (this.X - 1 - c) * d;
  6947. this.Ec[this.X - 1] = new b.Xa(null, null, null, null, this.Tc, (this.X - 1) * d);
  6948. this.od.set(this.od.subarray(e, e + f), e + d);
  6949. this.Co(a, c);
  6950. this.dirty = !0
  6951. }
  6952. },
  6953. sV: function(a, c, d) {
  6954. d = d || a.length;
  6955. b.assert(c + d <= this.Bc, b.c.GE);
  6956. var e = b.Xa.BYTES_PER_ELEMENT;
  6957. this.X += d;
  6958. if (this.X > this.Bc) b.log(b.c.bw);
  6959. else {
  6960. var f = c * e,
  6961. g = (this.X - 1 - c - d) * e,
  6962. h = this.X - 1 - d,
  6963. k;
  6964. for (k = 0; k < d; k++) this.Ec[h + k] = new b.Xa(null, null, null, null, this.Tc, (this.X - 1) * e);
  6965. this.od.set(this.od.subarray(f, f + g), f + e * d);
  6966. for (k = 0; k < d; k++) this.Co(a[k], c + k);
  6967. this.dirty = !0
  6968. }
  6969. },
  6970. rV: function(a, c) {
  6971. if (a !== c) {
  6972. b.assert(0 <= c || c < this.X, b.c.DE);
  6973. b.assert(0 <= a || a < this.X, b.c.EE);
  6974. var d = b.Xa.BYTES_PER_ELEMENT,
  6975. e = this.od,
  6976. f = e.subarray(a * d, d),
  6977. g;
  6978. a > c ? (g = c * d, e.set(e.subarray(g, g + (a - c) * d), g + d), e.set(f, g)) : (g = (a + 1) * d, e.set(e.subarray(g, g + (c - a) * d), g - d), e.set(f, c * d));
  6979. this.dirty = !0
  6980. }
  6981. },
  6982. dM: function(a) {
  6983. b.assert(a < this.X, b.c.KE);
  6984. var c = b.Xa.BYTES_PER_ELEMENT;
  6985. this.X--;
  6986. this.Ec.length = this.X;
  6987. if (a !== this.X) {
  6988. var d = (a + 1) * c;
  6989. this.od.set(this.od.subarray(d, d + (this.X - a) * c), d - c)
  6990. }
  6991. this.dirty = !0
  6992. },
  6993. CX: function(a, c) {
  6994. b.assert(a + c <= this.X, b.c.LE);
  6995. this.X -= c;
  6996. if (a !== this.X) {
  6997. var d = b.Xa.BYTES_PER_ELEMENT,
  6998. e = (a + c) * d;
  6999. this.od.set(this.od.subarray(e, e + (this.X - a) * d), a * d)
  7000. }
  7001. this.dirty = !0
  7002. },
  7003. $L: function() {
  7004. this.X = this.Ec.length = 0
  7005. },
  7006. qh: function(a) {
  7007. this.dirty = a
  7008. },
  7009. JA: function(a) {
  7010. if (a == this.Bc) return ! 0;
  7011. var c = b.Xa.BYTES_PER_ELEMENT,
  7012. d = this.Bc;
  7013. this.X = Math.min(this.X, a);
  7014. var e = this.Bc = 0 | a,
  7015. f = this.X;
  7016. if (null == this.Ec) for (this.Ec = [], this.Tc = new ArrayBuffer(c * e), this.od = new Uint8Array(this.Tc), a = 0; a < e; a++) this.Ec = new b.Xa(null, null, null, null, this.Tc, a * c);
  7017. else {
  7018. var g, h, k = this.Ec;
  7019. if (e > d) {
  7020. g = [];
  7021. h = new ArrayBuffer(c * e);
  7022. for (a = 0; a < f; a++) g[a] = new b.Xa(k[a].ya, k[a].wa, k[a].za, k[a].xa, h, a * c);
  7023. for (; a < e; a++) g[a] = new b.Xa(null, null, null, null, h, a * c)
  7024. } else for (f = Math.max(f, e), g = [], h = new ArrayBuffer(c * e), a = 0; a < f; a++) g[a] = new b.Xa(k[a].ya, k[a].wa, k[a].za, k[a].xa, h, a * c);
  7025. this.od = new Uint8Array(h);
  7026. this.Ec = g;
  7027. this.Tc = h
  7028. }
  7029. null == this.md ? this.md = new Uint16Array(6 * e) : e > d ? (c = new Uint16Array(6 * e), c.set(this.md, 0), this.md = c) : this.md = this.md.subarray(0, 6 * e);
  7030. this.Gy();
  7031. this.ko();
  7032. return this.dirty = !0
  7033. },
  7034. QK: function(a) {
  7035. this.X += a
  7036. },
  7037. aW: function(a, c, d) {
  7038. if (void 0 === d) {
  7039. if (d = c, c = this.X - a, b.assert(d + (this.X - a) <= this.Bc, b.c.HE), 0 === c) return
  7040. } else if (b.assert(d + c <= this.X, b.c.IE), b.assert(a < this.X, b.c.JE), a == d) return;
  7041. var e = b.Xa.BYTES_PER_ELEMENT,
  7042. f = a * e,
  7043. g = c * e,
  7044. h = this.od,
  7045. k = h.subarray(f, f + g),
  7046. m = d * e;
  7047. d < a ? (c = d * e, h.set(h.subarray(c, c + (a - d) * e), c + g)) : (c = (a + c) * e, h.set(h.subarray(c, c + (d - a) * e), f));
  7048. h.set(k, m);
  7049. this.dirty = !0
  7050. },
  7051. yT: function(a, c) {
  7052. for (var d = c * b.Xa.BYTES_PER_ELEMENT,
  7053. e = new Uint8Array(this.Tc, a * b.Xa.BYTES_PER_ELEMENT, d), f = 0; f < d; f++) e[f] = 0
  7054. },
  7055. jJ: function() {
  7056. this.vz(this.X)
  7057. },
  7058. nR: function() {
  7059. var a = b.l;
  7060. this.ed && (this.ed[0] && a.deleteBuffer(this.ed[0]), this.ed[1] && a.deleteBuffer(this.ed[1]));
  7061. this.lh && a.deleteBuffer(this.lh)
  7062. }
  7063. });
  7064. p = b.mf.prototype;
  7065. b.k(p, "totalQuads", p.Qz);
  7066. b.k(p, "capacity", p.Cz);
  7067. b.k(p, "quads", p.Jz, p.cB);
  7068. b.mf.create = function(a, c) {
  7069. return new b.mf(a, c)
  7070. };
  7071. b.mf.eu = b.mf.create;
  7072. b.da === b.wb && (b.assert("function" === typeof b.p.mr, b.c.Gb, "TexturesWebGL.js"), b.p.mr(), delete b.p.mr);
  7073. b.assert("function" === typeof b.p.Mq, b.c.Gb, "TexturesPropertyDefine.js");
  7074. b.p.Mq();
  7075. delete b.p.Mq;
  7076. b.$m = b.m.extend({
  7077. Mc: "Scene",
  7078. ctor: function() {
  7079. b.m.prototype.ctor.call(this);
  7080. this.rf = !0;
  7081. this.Qj(0.5, 0.5);
  7082. this.wd(b.Qa.Ql())
  7083. }
  7084. });
  7085. b.$m.create = function() {
  7086. return new b.$m
  7087. };
  7088. b.xq = b.$m.extend({
  7089. rg: null,
  7090. Lx: 0,
  7091. Fr: 0,
  7092. eo: null,
  7093. Mc: "LoaderScene",
  7094. ga: function() {
  7095. var a = this,
  7096. c = 200,
  7097. d = a.pF = b.Pb.create(b.color(32, 32, 32, 255));
  7098. d.Ma(b.di.Wt);
  7099. a.N(d, 0);
  7100. var e = 24,
  7101. f = -c / 2 + 100;
  7102. b.os && (b.D.Wl(b.os, {
  7103. Ju: !1
  7104. },
  7105. function(d, e) {
  7106. c = e.height;
  7107. a.AG(e, b.di.Zo)
  7108. }), e = 14, f = -c / 2 - 10);
  7109. e = a.eo = b.A.create("\u52a0\u8f7d\u4e2d... 0%", "Arial", e);
  7110. e.Ma(b.Jj(b.di.Zo, C(0, f)));
  7111. e.V(b.color(180, 180, 180));
  7112. d.N(this.eo, 10);
  7113. return ! 0
  7114. },
  7115. AG: function(a, c) {
  7116. var d = new b.K;
  7117. d.Mb(a);
  7118. d.Fa();
  7119. d = b.B.create(d);
  7120. d.Og(b.Ka());
  7121. d.x = c.x;
  7122. d.y = c.y;
  7123. this.pF.N(d, 10)
  7124. },
  7125. se: function() {
  7126. b.m.prototype.se.call(this);
  7127. this.av(this.My, 0.3)
  7128. },
  7129. vd: function() {
  7130. b.m.prototype.vd.call(this);
  7131. this.eo.ic("\u52a0\u8f7d\u4e2d... 0%")
  7132. },
  7133. UK: function(a, c) {
  7134. "string" == typeof a && (a = [a]);
  7135. this.gM = a || [];
  7136. this.fc = c
  7137. },
  7138. My: function() {
  7139. var a = this;
  7140. a.xB(a.My);
  7141. var c = a.gM;
  7142. a.Lx = c.length;
  7143. a.Fr = 0;
  7144. b.D.load(c,
  7145. function(c, e) {
  7146. a.Fr = e
  7147. },
  7148. function() {
  7149. a.fc && a.fc()
  7150. });
  7151. a.av(a.Xy)
  7152. },
  7153. Xy: function() {
  7154. var a = this.Fr,
  7155. c = this.Lx,
  7156. d;
  7157. d = Math.min(a / c * 100 | 0, 100);
  7158. this.eo.ic("\u52a0\u8f7d\u4e2d... " + d + "%");
  7159. a >= c && this.xB(this.Xy)
  7160. }
  7161. });
  7162. b.xq.Wu = function(a, c) {
  7163. var d = b;
  7164. d.Xl || (d.Xl = new b.xq, d.Xl.ga());
  7165. d.Xl.UK(a, c);
  7166. b.Qa.OA(d.Xl);
  7167. return d.Xl
  7168. };
  7169. b.p.wq = function() {
  7170. var a = b.zb.prototype;
  7171. a.ez = function() {};
  7172. a.wB = function() {};
  7173. a.Ba = b.m.prototype.Ba
  7174. };
  7175. b.p.ir = function() {
  7176. var a = b.Pb.prototype;
  7177. a.Eo = null;
  7178. a.pt = null;
  7179. a.Lt = null;
  7180. a.Dr = null;
  7181. a.rt = null;
  7182. a.qt = null;
  7183. a.ctor = function(a, d, e) {
  7184. this.rt = new ArrayBuffer(32);
  7185. this.qt = new ArrayBuffer(16);
  7186. var f = this.rt,
  7187. g = this.qt,
  7188. h = b.Sa.BYTES_PER_ELEMENT,
  7189. k = b.ad.BYTES_PER_ELEMENT;
  7190. this.Eo = [new b.Sa(0, 0, f, 0), new b.Sa(0, 0, f, h), new b.Sa(0, 0, f, 2 * h), new b.Sa(0, 0, f, 3 * h)];
  7191. this.pt = [b.color(0, 0, 0, 255, g, 0), b.color(0, 0, 0, 255, g, k), b.color(0, 0, 0, 255, g, 2 * k), b.color(0, 0, 0, 255, g, 3 * k)];
  7192. this.Lt = b.l.createBuffer();
  7193. this.Dr = b.l.createBuffer();
  7194. b.zb.prototype.ctor.call(this);
  7195. this.t = new b.cb(b.kc, b.jc);
  7196. b.Pb.prototype.ga.call(this, a, d, e)
  7197. };
  7198. a.wd = function(a, d) {
  7199. var e = this.Eo;
  7200. void 0 === d ? (e[1].x = a.width, e[2].y = a.height, e[3].x = a.width, e[3].y = a.height) : (e[1].x = a, e[2].y = d, e[3].x = a, e[3].y = d);
  7201. this.xr();
  7202. b.zb.prototype.wd.call(this, a, d)
  7203. };
  7204. a.Bf = function(a) {
  7205. var d = this.Eo;
  7206. d[1].x = a;
  7207. d[3].x = a;
  7208. this.xr();
  7209. b.zb.prototype.Bf.call(this, a)
  7210. };
  7211. a.Af = function(a) {
  7212. var d = this.Eo;
  7213. d[2].y = a;
  7214. d[3].y = a;
  7215. this.xr();
  7216. b.zb.prototype.Af.call(this, a)
  7217. };
  7218. a.Eb = function() {
  7219. for (var a = this.Q,
  7220. d = this.sa,
  7221. e = this.pt,
  7222. f = 0; 4 > f; f++) e[f].r = a.r,
  7223. e[f].g = a.g,
  7224. e[f].b = a.b,
  7225. e[f].a = d;
  7226. this.rw()
  7227. };
  7228. a.na = function(a) {
  7229. a = a || b.l;
  7230. b.pA(this);
  7231. b.tc(b.Lc | b.cr);
  7232. a.bindBuffer(a.ARRAY_BUFFER, this.Lt);
  7233. a.vertexAttribPointer(b.lc, 2, a.FLOAT, !1, 0, 0);
  7234. a.bindBuffer(a.ARRAY_BUFFER, this.Dr);
  7235. a.vertexAttribPointer(b.Ck, 4, a.UNSIGNED_BYTE, !0, 0, 0);
  7236. b.Ph(this.t.src, this.t.Y);
  7237. a.drawArrays(a.TRIANGLE_STRIP, 0, 4)
  7238. };
  7239. a.xr = function() {
  7240. var a = b.l;
  7241. a.bindBuffer(a.ARRAY_BUFFER, this.Lt);
  7242. a.bufferData(a.ARRAY_BUFFER, this.rt, a.STATIC_DRAW)
  7243. };
  7244. a.rw = function() {
  7245. var a = b.l;
  7246. a.bindBuffer(a.ARRAY_BUFFER, this.Dr);
  7247. a.bufferData(a.ARRAY_BUFFER, this.qt, a.STATIC_DRAW)
  7248. }
  7249. };
  7250. b.p.jr = function() {
  7251. var a = b.Ug.prototype;
  7252. a.na = b.Pb.prototype.na;
  7253. a.Eb = function() {
  7254. var a = this.cg,
  7255. d = b.Tu(a);
  7256. if (0 !== d) {
  7257. var e = Math.sqrt(2),
  7258. a = C(a.x / d, a.y / d);
  7259. this.zn && (a = b.Kg(a, 1 / (Math.abs(a.x) + Math.abs(a.y)) * e));
  7260. var f = this.sa / 255,
  7261. d = this.Q,
  7262. g = this.Bi,
  7263. d = {
  7264. r: d.r,
  7265. g: d.g,
  7266. b: d.b,
  7267. a: this.ej * f
  7268. },
  7269. f = {
  7270. r: g.r,
  7271. g: g.g,
  7272. b: g.b,
  7273. a: this.Ci * f
  7274. },
  7275. h = this.pt,
  7276. g = h[0],
  7277. k = h[1],
  7278. m = h[2],
  7279. h = h[3];
  7280. g.r = f.r + (e + a.x + a.y) / (2 * e) * (d.r - f.r);
  7281. g.g = f.g + (e + a.x + a.y) / (2 * e) * (d.g - f.g);
  7282. g.b = f.b + (e + a.x + a.y) / (2 * e) * (d.b - f.b);
  7283. g.a = f.a + (e + a.x + a.y) / (2 * e) * (d.a - f.a);
  7284. k.r = f.r + (e - a.x + a.y) / (2 * e) * (d.r - f.r);
  7285. k.g = f.g + (e - a.x + a.y) / (2 * e) * (d.g - f.g);
  7286. k.b = f.b + (e - a.x + a.y) / (2 * e) * (d.b - f.b);
  7287. k.a = f.a + (e - a.x + a.y) / (2 * e) * (d.a - f.a);
  7288. m.r = f.r + (e + a.x - a.y) / (2 * e) * (d.r - f.r);
  7289. m.g = f.g + (e + a.x - a.y) / (2 * e) * (d.g - f.g);
  7290. m.b = f.b + (e + a.x - a.y) / (2 * e) * (d.b - f.b);
  7291. m.a = f.a + (e + a.x - a.y) / (2 * e) * (d.a - f.a);
  7292. h.r = f.r + (e - a.x - a.y) / (2 * e) * (d.r - f.r);
  7293. h.g = f.g + (e - a.x - a.y) / (2 * e) * (d.g - f.g);
  7294. h.b = f.b + (e - a.x - a.y) / (2 * e) * (d.b - f.b);
  7295. h.a = f.a + (e - a.x - a.y) / (2 * e) * (d.a - f.a);
  7296. this.rw()
  7297. }
  7298. }
  7299. };
  7300. b.p.Iq = function() {
  7301. var a = b.Pb.prototype;
  7302. b.k(a, "width", a.Ie, a.Bf);
  7303. b.k(a, "height", a.fh, a.Af)
  7304. };
  7305. b.p.Jq = function() {
  7306. var a = b.Ug.prototype;
  7307. b.k(a, "startColor", a.DK, a.dN);
  7308. b.k(a, "endColor", a.ZJ, a.EM);
  7309. b.k(a, "startOpacity", a.EK, a.eN);
  7310. b.k(a, "endOpacity", a.$J, a.FM);
  7311. b.k(a, "vector", a.IK, a.iN)
  7312. };
  7313. b.zb = b.m.extend({
  7314. hh: !1,
  7315. sn: null,
  7316. Mc: "Layer",
  7317. ctor: function() {
  7318. var a = b.m.prototype;
  7319. a.ctor.call(this);
  7320. this.rf = !0;
  7321. a.Qj.call(this, 0.5, 0.5);
  7322. a.wd.call(this, b.aa)
  7323. },
  7324. ga: function() {
  7325. this.rf = !0;
  7326. this.Qj(0.5, 0.5);
  7327. this.wd(b.aa);
  7328. this.cascadeColor = this.cascadeOpacity = !1;
  7329. return ! 0
  7330. },
  7331. ez: null,
  7332. wB: null,
  7333. uV: function() {
  7334. return this.hh
  7335. },
  7336. Ba: null
  7337. });
  7338. b.zb.create = function() {
  7339. return new b.zb
  7340. };
  7341. if (b.da === b.Ya) {
  7342. var F = b.zb.prototype;
  7343. F.ez = function() {
  7344. if (!this.hh) {
  7345. this.hh = this.Ce = !0;
  7346. this.Ok = this;
  7347. for (var a = this.s,
  7348. c = 0,
  7349. d = a.length; c < d; c++) a[c].Ys(this);
  7350. this.sn || (this.sn = new b.PB)
  7351. }
  7352. };
  7353. F.wB = function() {
  7354. if (this.hh) {
  7355. this.hh = !1;
  7356. this.Ce = !0;
  7357. this.Ok = null;
  7358. for (var a = this.s,
  7359. c = 0,
  7360. d = a.length; c < d; c++) a[c].Ys(null)
  7361. }
  7362. };
  7363. F.Ba = function(a) {
  7364. if (this.hh) {
  7365. a = a || b.l;
  7366. var c, d = this.s,
  7367. e = d.length;
  7368. if (this.Gc && 0 !== e) {
  7369. var f = this.sn;
  7370. a.save();
  7371. this.transform(a);
  7372. if (this.Ce) {
  7373. c = this.Wr();
  7374. c.width |= 0;
  7375. c.height |= 0;
  7376. var g = f.vn;
  7377. f.IA(c.width, c.height);
  7378. g.translate(0 - c.x, c.height + c.y);
  7379. var h = f.qu();
  7380. f.Ma(h.x + c.x, h.y + c.y);
  7381. this.vc();
  7382. b.view.By();
  7383. for (c = 0; c < e; c++) d[c].Ba(g);
  7384. b.view.oy();
  7385. this.Ce = !1
  7386. }
  7387. f.Ba(a);
  7388. this.arrivalOrder = 0;
  7389. a.restore()
  7390. }
  7391. } else b.m.prototype.Ba.call(this, a)
  7392. };
  7393. F.Wr = function() {
  7394. var a = null;
  7395. if (!this.s || 0 === this.s.length) return E(0, 0, 10, 10);
  7396. for (var c = this.s,
  7397. d = 0; d < c.length; d++) {
  7398. var e = c[d];
  7399. e && e.Gc && (a ? (e = e.Zk()) && (a = b.Ip(a, e)) : a = e.Zk())
  7400. }
  7401. return a
  7402. };
  7403. F = null
  7404. } else b.assert("function" === typeof b.p.wq, b.c.Gb, "CCLayerWebGL.js"),
  7405. b.p.wq(),
  7406. delete b.p.wq;
  7407. b.Pb = b.zb.extend({
  7408. t: null,
  7409. Mc: "LayerColor",
  7410. Ml: function() {
  7411. return this.t
  7412. },
  7413. fS: function(a, c) {
  7414. this.width = a;
  7415. this.height = c
  7416. },
  7417. eS: function(a) {
  7418. this.width = a
  7419. },
  7420. dS: function(a) {
  7421. this.height = a
  7422. },
  7423. Ng: function() {},
  7424. Dj: function() {
  7425. return ! 1
  7426. },
  7427. V: function(a) {
  7428. b.zb.prototype.V.call(this, a);
  7429. this.Eb()
  7430. },
  7431. Ga: function(a) {
  7432. b.zb.prototype.Ga.call(this, a);
  7433. this.Eb()
  7434. },
  7435. cl: !1,
  7436. ctor: null,
  7437. ga: function(a, c, d) {
  7438. b.da !== b.Ya && (this.shaderProgram = b.ff.Of(b.Wv));
  7439. var e = b.Qa.Ql();
  7440. a = a || b.color(0, 0, 0, 255);
  7441. c = void 0 === c ? e.width: c;
  7442. d = void 0 === d ? e.height: d;
  7443. e = this.Q;
  7444. e.r = a.r;
  7445. e.g = a.g;
  7446. e.b = a.b;
  7447. e = this.ac;
  7448. e.r = a.r;
  7449. e.g = a.g;
  7450. e.b = a.b;
  7451. this.Md = this.sa = a.a;
  7452. a = b.Pb.prototype;
  7453. a.wd.call(this, c, d);
  7454. a.Eb.call(this);
  7455. return ! 0
  7456. },
  7457. $h: function(a, c) {
  7458. this.t = void 0 === c ? a: {
  7459. src: a,
  7460. Y: c
  7461. };
  7462. b.da === b.Ya && (this.cl = this.t && 1 == this.t.src && 771 == this.t.Y)
  7463. },
  7464. Bf: null,
  7465. Af: null,
  7466. Eb: null,
  7467. sb: function(a) {
  7468. b.zb.prototype.sb.call(this, a);
  7469. this.Eb()
  7470. },
  7471. kb: function(a) {
  7472. b.zb.prototype.kb.call(this, a);
  7473. this.Eb()
  7474. },
  7475. na: null
  7476. });
  7477. b.Pb.create = function(a, c, d) {
  7478. return new b.Pb(a, c, d)
  7479. };
  7480. b.da === b.Ya ? (p = b.Pb.prototype, p.ctor = function(a, c, d) {
  7481. b.zb.prototype.ctor.call(this);
  7482. this.t = new b.cb(b.kc, b.jc);
  7483. b.Pb.prototype.ga.call(this, a, c, d)
  7484. },
  7485. p.Bf = b.zb.prototype.Bf, p.Af = b.zb.prototype.Af, p.Eb = function() {},
  7486. p.na = function(a) {
  7487. a = a || b.l;
  7488. var c = b.view,
  7489. d = this.Q;
  7490. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + this.sa / 255 + ")";
  7491. a.fillRect(0, 0, this.width * c.O, -this.height * c.ma);
  7492. b.We++
  7493. },
  7494. p.Ba = function(a) {
  7495. if (this.hh) {
  7496. a = a || b.l;
  7497. var c, d = this.s,
  7498. e = d.length;
  7499. if (this.Gc) {
  7500. var f = this.sn;
  7501. a.save();
  7502. this.transform(a);
  7503. if (this.Ce) {
  7504. c = this.Wr();
  7505. c.width |= 0;
  7506. c.height |= 0;
  7507. var g = f.vn;
  7508. f.IA(c.width, c.height);
  7509. var h = f.qu(),
  7510. k = this.ja;
  7511. if (this.rf) g.translate(0 - c.x + k.x, c.height + c.y - k.y),
  7512. f.Ma(h.x + c.x - k.x, h.y + c.y - k.y);
  7513. else {
  7514. var m = this.qu(),
  7515. n = k.x - m.x,
  7516. k = k.y - m.y;
  7517. g.translate(0 - c.x + n, c.height + c.y - k);
  7518. f.Ma(h.x + c.x - n, h.y + c.y - k)
  7519. }
  7520. b.view.By();
  7521. if (0 < e) {
  7522. this.vc();
  7523. for (c = 0; c < e; c++) if (h = d[c], 0 > h.Ia) h.Ba(g);
  7524. else break;
  7525. for (this.na(g); c < e; c++) d[c].Ba(g)
  7526. } else this.na(g);
  7527. b.view.oy();
  7528. this.Ce = !1
  7529. }
  7530. f.Ba(a);
  7531. this.arrivalOrder = 0;
  7532. a.restore()
  7533. }
  7534. } else b.m.prototype.Ba.call(this, a)
  7535. },
  7536. p.Wr = function() {
  7537. var a = E(0, 0, this.v.width, this.v.height),
  7538. c = this.Bp(),
  7539. a = b.Xu(a, this.Bp());
  7540. if (!this.s || 0 === this.s.length) return a;
  7541. for (var d = this.s,
  7542. e = 0; e < d.length; e++) {
  7543. var f = d[e];
  7544. f && f.Gc && (f = f.Zk(c), a = b.Ip(a, f))
  7545. }
  7546. return a
  7547. },
  7548. p = null) : (b.assert("function" === typeof b.p.ir, b.c.Gb, "CCLayerWebGL.js"), b.p.ir(), delete b.p.ir);
  7549. b.assert("function" === typeof b.p.Iq, b.c.Gb, "CCLayerPropertyDefine.js");
  7550. b.p.Iq();
  7551. delete b.p.Iq;
  7552. b.Ug = b.Pb.extend({
  7553. Ly: null,
  7554. Bi: null,
  7555. ej: 255,
  7556. Ci: 255,
  7557. cg: null,
  7558. zn: !1,
  7559. Mi: null,
  7560. Li: null,
  7561. Mc: "LayerGradient",
  7562. ctor: function(a, c, d) {
  7563. b.Pb.prototype.ctor.call(this);
  7564. this.Ly = b.color(0, 0, 0, 255);
  7565. this.Bi = b.color(0, 0, 0, 255);
  7566. this.cg = C(0, -1);
  7567. this.Ci = this.ej = 255;
  7568. this.Mi = C(0, 0);
  7569. this.Li = C(0, 0);
  7570. b.Ug.prototype.ga.call(this, a, c, d)
  7571. },
  7572. ga: function(a, c, d) {
  7573. a = a || b.color(0, 0, 0, 255);
  7574. c = c || b.color(0, 0, 0, 255);
  7575. d = d || C(0, -1);
  7576. var e = this.Ly,
  7577. f = this.Bi;
  7578. e.r = a.r;
  7579. e.g = a.g;
  7580. e.b = a.b;
  7581. this.ej = a.a;
  7582. f.r = c.r;
  7583. f.g = c.g;
  7584. f.b = c.b;
  7585. this.Ci = c.a;
  7586. this.cg = d;
  7587. this.zn = !0;
  7588. this.Mi = C(0, 0);
  7589. this.Li = C(0, 0);
  7590. b.Pb.prototype.ga.call(this, b.color(a.r, a.g, a.b, 255));
  7591. b.Ug.prototype.Eb.call(this);
  7592. return ! 0
  7593. },
  7594. wd: function(a, c) {
  7595. b.Pb.prototype.wd.call(this, a, c);
  7596. this.Eb()
  7597. },
  7598. Bf: function(a) {
  7599. b.Pb.prototype.Bf.call(this, a);
  7600. this.Eb()
  7601. },
  7602. Af: function(a) {
  7603. b.Pb.prototype.Af.call(this, a);
  7604. this.Eb()
  7605. },
  7606. DK: function() {
  7607. return this.ac
  7608. },
  7609. dN: function(a) {
  7610. this.color = a
  7611. },
  7612. EM: function(a) {
  7613. this.Bi = a;
  7614. this.Eb()
  7615. },
  7616. ZJ: function() {
  7617. return this.Bi
  7618. },
  7619. eN: function(a) {
  7620. this.ej = a;
  7621. this.Eb()
  7622. },
  7623. EK: function() {
  7624. return this.ej
  7625. },
  7626. FM: function(a) {
  7627. this.Ci = a;
  7628. this.Eb()
  7629. },
  7630. $J: function() {
  7631. return this.Ci
  7632. },
  7633. iN: function(a) {
  7634. this.cg.x = a.x;
  7635. this.cg.y = a.y;
  7636. this.Eb()
  7637. },
  7638. IK: function() {
  7639. return C(this.cg.x, this.cg.y)
  7640. },
  7641. wV: function() {
  7642. return this.zn
  7643. },
  7644. $X: function(a) {
  7645. this.zn = a;
  7646. this.Eb()
  7647. },
  7648. XQ: null,
  7649. Eb: null
  7650. });
  7651. b.Ug.create = function(a, c, d) {
  7652. return new b.Ug(a, c, d)
  7653. };
  7654. b.da === b.Ya ? (p = b.Ug.prototype, p.na = function(a) {
  7655. a = a || b.l;
  7656. this.cl && (a.globalCompositeOperation = "lighter");
  7657. a.save();
  7658. var c = this.sa / 255,
  7659. d = b.view.O,
  7660. e = b.view.ma,
  7661. f = this.width * d,
  7662. g = this.height * e,
  7663. d = a.createLinearGradient(this.Mi.x * d, this.Mi.y * e, this.Li.x * d, this.Li.y * e),
  7664. e = this.Q,
  7665. h = this.Bi;
  7666. d.addColorStop(0, "rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + (this.ej / 255 * c).toFixed(4) + ")");
  7667. d.addColorStop(1, "rgba(" + Math.round(h.r) + "," + Math.round(h.g) + "," + Math.round(h.b) + "," + (this.Ci / 255 * c).toFixed(4) + ")");
  7668. a.fillStyle = d;
  7669. a.fillRect(0, 0, f, -g);
  7670. 0 != this.pR && a.rotate(this.qR);
  7671. a.restore();
  7672. b.We++
  7673. },
  7674. p.Eb = function() {
  7675. var a = this.cg,
  7676. c = 0.5 * this.width,
  7677. d = 0.5 * this.height;
  7678. this.Mi.x = c * -a.x + c;
  7679. this.Mi.y = d * a.y - d;
  7680. this.Li.x = c * a.x + c;
  7681. this.Li.y = d * -a.y - d
  7682. },
  7683. p = null) : (b.assert("function" === typeof b.p.jr, b.c.Gb, "CCLayerWebGL.js"), b.p.jr(), delete b.p.jr);
  7684. b.assert("function" === typeof b.p.Jq, b.c.Gb, "CCLayerPropertyDefine.js");
  7685. b.p.Jq();
  7686. delete b.p.Jq;
  7687. b.Tm = b.zb.extend({
  7688. eh: 0,
  7689. Le: null,
  7690. Mc: "LayerMultiplex",
  7691. ctor: function(a) {
  7692. b.zb.prototype.ctor.call(this);
  7693. a instanceof Array ? b.Tm.prototype.aA.call(this, a) : b.Tm.prototype.aA.call(this, Array.prototype.slice.call(arguments))
  7694. },
  7695. aA: function(a) {
  7696. 0 < a.length && null == a[a.length - 1] && b.log(b.c.MC);
  7697. this.Le = a;
  7698. this.eh = 0;
  7699. this.N(this.Le[this.eh]);
  7700. return ! 0
  7701. },
  7702. pZ: function(a) {
  7703. a >= this.Le.length ? b.log(b.c.NC) : (this.removeChild(this.Le[this.eh], !0), this.eh = a, this.N(this.Le[a]))
  7704. },
  7705. qZ: function(a) {
  7706. a >= this.Le.length ? b.log(b.c.OC) : (this.removeChild(this.Le[this.eh], !0), this.Le[this.eh] = null, this.eh = a, this.N(this.Le[a]))
  7707. },
  7708. DR: function(a) {
  7709. a ? this.Le.push(a) : b.log(b.c.LC)
  7710. }
  7711. });
  7712. b.Tm.create = function() {
  7713. return new b.Tm(Array.prototype.slice.call(arguments))
  7714. };
  7715. b.p.kr = function() {
  7716. var a = b.B.prototype;
  7717. a.ot = function(a) {
  7718. this.W(!0);
  7719. this.Ha(a.pe(), a.qc, a.xj());
  7720. this.Ub()
  7721. };
  7722. a.Ng = function(a) {
  7723. this.Da !== a && (this.Da = a, this.om())
  7724. };
  7725. a.kb = function(a) {
  7726. b.m.prototype.kb.call(this, a);
  7727. this.om()
  7728. };
  7729. a.ctor = function(a, d, e) {
  7730. b.m.prototype.ctor.call(this);
  7731. this.xg = !1;
  7732. this.Oa = C(0, 0);
  7733. this.le = C(0, 0);
  7734. this.t = {
  7735. src: b.kc,
  7736. Y: b.jc
  7737. };
  7738. this.F = E(0, 0, 0, 0);
  7739. this.Pa = new b.Xa;
  7740. this.wo = b.l.createBuffer();
  7741. this.T = this.Dc = !0;
  7742. this.Jy(a, d, e)
  7743. };
  7744. a.$h = function(a, d) {
  7745. var e = this.t;
  7746. void 0 === d ? (e.src = a.src, e.Y = a.Y) : (e.src = a, e.Y = d)
  7747. };
  7748. a.ga = function() {
  7749. if (0 < arguments.length) return this.Tl(arguments[0], arguments[1]);
  7750. b.m.prototype.ga.call(this);
  7751. this.dirty = this.ge = !1;
  7752. this.Da = !0;
  7753. this.t.src = b.kc;
  7754. this.t.Y = b.jc;
  7755. this.texture = null;
  7756. this.T = !0;
  7757. this.gb = this.hb = !1;
  7758. this.anchorY = this.anchorX = 0.5;
  7759. this.Oa.x = 0;
  7760. this.Oa.y = 0;
  7761. this.Je = !1;
  7762. var a = {
  7763. r: 255,
  7764. g: 255,
  7765. b: 255,
  7766. a: 255
  7767. };
  7768. this.Pa.wa.j = a;
  7769. this.Pa.xa.j = a;
  7770. this.Pa.ya.j = a;
  7771. this.Pa.za.j = a;
  7772. this.Dc = !0;
  7773. this.Ha(E(0, 0, 0, 0), !1, D(0, 0));
  7774. return ! 0
  7775. };
  7776. a.ia = function(a, d, e) {
  7777. b.assert(0 != arguments.length, b.c.$D);
  7778. e = e || !1;
  7779. if (!b.m.prototype.ga.call(this)) return ! 1;
  7780. this.ca = null;
  7781. this.dirty = this.ge = !1;
  7782. this.Da = !0;
  7783. this.t.src = b.kc;
  7784. this.t.Y = b.jc;
  7785. this.gb = this.hb = !1;
  7786. this.anchorY = this.anchorX = 0.5;
  7787. this.Oa.x = 0;
  7788. this.Oa.y = 0;
  7789. this.Je = !1;
  7790. var f = b.color(255, 255, 255, 255),
  7791. g = this.Pa;
  7792. g.wa.j = f;
  7793. g.xa.j = f;
  7794. g.ya.j = f;
  7795. g.za.j = f;
  7796. this.T = f = a.xb;
  7797. if (!f) return this.nb = e || !1,
  7798. d && (f = this.F, f.x = d.x, f.y = d.y, f.width = d.width, f.height = d.height),
  7799. a.Vc(this.Oo, this),
  7800. !0;
  7801. d || (d = E(0, 0, a.width, a.height));
  7802. a && a.url && (e ? (f = d.x + d.height, g = d.y + d.width) : (f = d.x + d.width, g = d.y + d.height), f > a.width && b.error(b.c.Pq, a.url), g > a.height && b.error(b.c.Oq, a.url));
  7803. this.texture = a;
  7804. this.Ha(d, e);
  7805. this.batchNode = null;
  7806. return this.Dc = !0
  7807. };
  7808. a.Oo = function(a) {
  7809. if (!this.T) {
  7810. this.T = !0;
  7811. var d = this.F;
  7812. d ? b.Ns(d) && (d.width = a.width, d.height = a.height) : d = E(0, 0, a.width, a.height);
  7813. this.texture = a;
  7814. this.Ha(d, this.nb);
  7815. this.batchNode = this.ca;
  7816. this.Dc = !0;
  7817. this.Ub()
  7818. }
  7819. };
  7820. a.Ha = function(a, d, e) {
  7821. this.nb = d || !1;
  7822. this.wd(e || a);
  7823. this.iv(a);
  7824. this.Dy(a);
  7825. a = this.le;
  7826. this.gb && (a.x = -a.x);
  7827. this.hb && (a.y = -a.y);
  7828. var f = this.F;
  7829. this.Oa.x = a.x + (this.v.width - f.width) / 2;
  7830. this.Oa.y = a.y + (this.v.height - f.height) / 2;
  7831. if (this.ca) this.dirty = !0;
  7832. else {
  7833. a = 0 + this.Oa.x;
  7834. d = 0 + this.Oa.y;
  7835. e = a + f.width;
  7836. var f = d + f.height,
  7837. g = this.Pa;
  7838. g.wa.e = {
  7839. x: a,
  7840. y: d,
  7841. z: 0
  7842. };
  7843. g.xa.e = {
  7844. x: e,
  7845. y: d,
  7846. z: 0
  7847. };
  7848. g.ya.e = {
  7849. x: a,
  7850. y: f,
  7851. z: 0
  7852. };
  7853. g.za.e = {
  7854. x: e,
  7855. y: f,
  7856. z: 0
  7857. };
  7858. this.Dc = !0
  7859. }
  7860. };
  7861. a.$c = function() {
  7862. if (this.dirty) {
  7863. var a = this.Pa,
  7864. d = this.Db;
  7865. if (!this.Gc || d && d != this.ca && d.xg) a.xa.e = a.ya.e = a.za.e = a.wa.e = {
  7866. x: 0,
  7867. y: 0,
  7868. z: 0
  7869. },
  7870. this.xg = !0;
  7871. else {
  7872. this.xg = !1;
  7873. var e = this.xh = d && d != this.ca ? b.Eh(this.Yl(), d.xh) : this.Yl(),
  7874. f = this.F,
  7875. d = this.Oa.x,
  7876. g = this.Oa.y,
  7877. h = d + f.width,
  7878. k = g + f.height,
  7879. m = e.Z,
  7880. n = e.$,
  7881. r = e.a,
  7882. s = e.b,
  7883. u = e.P,
  7884. t = -e.J,
  7885. e = d * r - g * t + m,
  7886. f = d * s + g * u + n,
  7887. v = h * r - g * t + m,
  7888. g = h * s + g * u + n,
  7889. w = h * r - k * t + m,
  7890. h = h * s + k * u + n,
  7891. m = d * r - k * t + m,
  7892. d = d * s + k * u + n,
  7893. k = this.Wo;
  7894. b.Yv || (e |= 0, f |= 0, v |= 0, g |= 0, w |= 0, h |= 0, m |= 0, d |= 0);
  7895. a.wa.e = {
  7896. x: e,
  7897. y: f,
  7898. z: k
  7899. };
  7900. a.xa.e = {
  7901. x: v,
  7902. y: g,
  7903. z: k
  7904. };
  7905. a.ya.e = {
  7906. x: m,
  7907. y: d,
  7908. z: k
  7909. };
  7910. a.za.e = {
  7911. x: w,
  7912. y: h,
  7913. z: k
  7914. }
  7915. }
  7916. this.textureAtlas.Up(a, this.atlasIndex);
  7917. this.dirty = this.ge = !1
  7918. }
  7919. this.Je && this.Gd(this.s, b.m.bd.$c);
  7920. b.Uf && b.Hd.gc([C(this.Pa.wa.e.x, this.Pa.wa.e.y), C(this.Pa.xa.e.x, this.Pa.xa.e.y), C(this.Pa.za.e.x, this.Pa.za.e.y), C(this.Pa.ya.e.x, this.Pa.ya.e.y)], 4, !0)
  7921. };
  7922. a.N = function(a, d, e) {
  7923. b.assert(a, b.c.RD);
  7924. null == d && (d = a.Ia);
  7925. null == e && (e = a.tag);
  7926. if (this.ca) {
  7927. if (! (a instanceof b.B)) {
  7928. b.log(b.c.PD);
  7929. return
  7930. }
  7931. a.texture.Ah !== this.textureAtlas.texture.Ah && b.log(b.c.QD);
  7932. this.ca.appendChild(a);
  7933. this.bc || this.ft()
  7934. }
  7935. b.m.prototype.N.call(this, a, d, e);
  7936. this.Je = !0
  7937. };
  7938. a.Ga = function(a) {
  7939. b.m.prototype.Ga.call(this, a);
  7940. this.om()
  7941. };
  7942. a.V = function(a) {
  7943. b.m.prototype.V.call(this, a);
  7944. this.om()
  7945. };
  7946. a.sb = function(a) {
  7947. b.m.prototype.sb.call(this, a);
  7948. this.om()
  7949. };
  7950. a.Pg = function(a) {
  7951. var d = this;
  7952. "string" == typeof a && (a = b.ue.Ye(a), b.assert(a, b.c.iE));
  7953. d.W(!0);
  7954. var e = a.wu();
  7955. d.le.x = e.x;
  7956. d.le.y = e.y;
  7957. e = a.La();
  7958. a.T || (d.T = !1, a.Vc(function(a) {
  7959. d.T = !0;
  7960. var c = a.La();
  7961. c != d.ea && (d.texture = c);
  7962. d.Ha(a.pe(), a.qc, a.xj());
  7963. d.Ub()
  7964. },
  7965. d));
  7966. e != d.ea && (d.texture = e);
  7967. d.nb = a.qc;
  7968. d.Ha(a.pe(), d.nb, a.xj())
  7969. };
  7970. a.jA = function(a) {
  7971. return b.AA(a.pe(), this.F) && a.La().getName() == this.ea.getName() && b.NL(a.wu(), this.le)
  7972. };
  7973. a.cv = function(a) {
  7974. if (this.ca = a) this.xh = {
  7975. a: 1,
  7976. b: 0,
  7977. J: 0,
  7978. P: 1,
  7979. Z: 0,
  7980. $: 0
  7981. },
  7982. this.textureAtlas = this.ca.textureAtlas;
  7983. else {
  7984. this.atlasIndex = b.B.sq;
  7985. this.textureAtlas = null;
  7986. this.dirty = this.ge = !1;
  7987. a = this.Oa.x;
  7988. var d = this.Oa.y,
  7989. e = a + this.F.width,
  7990. f = d + this.F.height,
  7991. g = this.Pa;
  7992. g.wa.e = {
  7993. x: a,
  7994. y: d,
  7995. z: 0
  7996. };
  7997. g.xa.e = {
  7998. x: e,
  7999. y: d,
  8000. z: 0
  8001. };
  8002. g.ya.e = {
  8003. x: a,
  8004. y: f,
  8005. z: 0
  8006. };
  8007. g.za.e = {
  8008. x: e,
  8009. y: f,
  8010. z: 0
  8011. };
  8012. this.Dc = !0
  8013. }
  8014. };
  8015. a.Wa = function(a) {
  8016. a && "string" === typeof a ? (a = b.va.cc(a), this.Wa(a), a = a.ud(), this.Ha(E(0, 0, a.width, a.height))) : (b.assert(!a || a instanceof b.K, b.c.kE), this.ca && this.ca.texture != a ? b.log(b.c.jE) : (this.shaderProgram = a ? b.ff.Of(b.Wq) : b.ff.Of(b.Wv), this.ca || this.ea == a || (this.ea = a, this.yh())))
  8017. };
  8018. a.na = function() {
  8019. if (this.T) {
  8020. var a = b.l,
  8021. d = this.ea;
  8022. d ? d.xb && (this.Jb.wc(), this.Jb.xd(), b.Ph(this.t.src, this.t.Y), b.iV(0, d), b.tc(b.gn), a.bindBuffer(a.ARRAY_BUFFER, this.wo), this.Dc && (a.bufferData(a.ARRAY_BUFFER, this.Pa.Xo, a.DYNAMIC_DRAW), this.Dc = !1), a.vertexAttribPointer(0, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(1, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(2, 2, a.FLOAT, !1, 24, 16), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)) : (this.Jb.wc(), this.Jb.xd(), b.Ph(this.t.src, this.t.Y), b.qe(null), b.tc(b.Lc | b.cr), a.bindBuffer(a.ARRAY_BUFFER, this.wo), this.Dc && (b.l.bufferData(b.l.ARRAY_BUFFER, this.Pa.Xo, b.l.STATIC_DRAW), this.Dc = !1), a.vertexAttribPointer(b.lc, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.Ck, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4));
  8023. b.We++;
  8024. if (0 !== b.Uf || this.jt) 1 === b.Uf || this.jt ? (a = this.Pa, b.Hd.gc([C(a.ya.e.x, a.ya.e.y), C(a.wa.e.x, a.wa.e.y), C(a.xa.e.x, a.xa.e.y), C(a.za.e.x, a.za.e.y)], 4, !0)) : 2 === b.Uf && (a = this.Pz(), d = this.qK(), b.Hd.gc([C(d.x, d.y), C(d.x + a.width, d.y), C(d.x + a.width, d.y + a.height), C(d.x, d.y + a.height)], 4, !0))
  8025. }
  8026. };
  8027. delete a
  8028. };
  8029. b.p.Kq = function() {
  8030. var a = b.B.prototype;
  8031. b.k(a, "opacityModifyRGB", a.Dj, a.Ng);
  8032. b.k(a, "opacity", a.wj, a.Ga);
  8033. b.k(a, "color", a.Nh, a.V);
  8034. b.k(a, "flippedX", a.$K, a.GM);
  8035. b.k(a, "flippedY", a.aL, a.HM);
  8036. b.k(a, "offsetX", a.iG);
  8037. b.k(a, "offsetY", a.jG);
  8038. b.k(a, "texture", a.La, a.Wa);
  8039. b.k(a, "textureRectRotated", a.eL);
  8040. b.k(a, "batchNode", a.QJ, a.cv);
  8041. b.k(a, "quad", a.vK)
  8042. };
  8043. b.tj = function(a, c, d, e) {
  8044. e = e || b.rb("canvas");
  8045. d = d || E(0, 0, a.width, a.height);
  8046. var f = e.getContext("2d");
  8047. e.width != d.width || e.height != d.height ? (e.width = d.width, e.height = d.height) : f.globalCompositeOperation = "source-over";
  8048. f.fillStyle = "rgb(" + c.r + "," + c.g + "," + c.b + ")";
  8049. f.fillRect(0, 0, d.width, d.height);
  8050. f.globalCompositeOperation = "multiply";
  8051. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  8052. f.globalCompositeOperation = "destination-atop";
  8053. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  8054. return e
  8055. };
  8056. b.sj = function(a, c, d, e, f) {
  8057. e || (e = E(0, 0, a.width, a.height));
  8058. a = d.r / 255;
  8059. var g = d.g / 255;
  8060. d = d.b / 255;
  8061. var h = Math.min(e.width, c[0].width),
  8062. k = Math.min(e.height, c[0].height),
  8063. m;
  8064. f ? (m = f.getContext("2d"), m.clearRect(0, 0, h, k)) : (f = b.rb("canvas"), f.width = h, f.height = k, m = f.getContext("2d"));
  8065. m.save();
  8066. m.globalCompositeOperation = "lighter";
  8067. var n = m.globalAlpha;
  8068. 0 < a && (m.globalAlpha = a * n, m.drawImage(c[0], e.x, e.y, h, k, 0, 0, h, k));
  8069. 0 < g && (m.globalAlpha = g * n, m.drawImage(c[1], e.x, e.y, h, k, 0, 0, h, k));
  8070. 0 < d && (m.globalAlpha = d * n, m.drawImage(c[2], e.x, e.y, h, k, 0, 0, h, k));
  8071. 1 > a + g + d && (m.globalAlpha = n, m.drawImage(c[3], e.x, e.y, h, k, 0, 0, h, k));
  8072. m.restore();
  8073. return f
  8074. };
  8075. b.rj = function(a) {
  8076. function c() {
  8077. var c = b.rj,
  8078. e = a.width,
  8079. h = a.height;
  8080. d[0].width = e;
  8081. d[0].height = h;
  8082. d[1].width = e;
  8083. d[1].height = h;
  8084. d[2].width = e;
  8085. d[2].height = h;
  8086. d[3].width = e;
  8087. d[3].height = h;
  8088. c.canvas.width = e;
  8089. c.canvas.height = h;
  8090. var k = c.canvas.getContext("2d");
  8091. k.drawImage(a, 0, 0);
  8092. c.mv.width = e;
  8093. c.mv.height = h;
  8094. for (var k = k.getImageData(0, 0, e, h).data, m = 0; 4 > m; m++) {
  8095. var n = d[m].getContext("2d");
  8096. n.getImageData(0, 0, e, h).data;
  8097. c.qB.drawImage(a, 0, 0);
  8098. for (var r = c.qB.getImageData(0, 0, e, h), s = r.data, u = 0; u < k.length; u += 4) s[u] = 0 === m ? k[u] : 0,
  8099. s[u + 1] = 1 === m ? k[u + 1] : 0,
  8100. s[u + 2] = 2 === m ? k[u + 2] : 0,
  8101. s[u + 3] = k[u + 3];
  8102. n.putImageData(r, 0, 0)
  8103. }
  8104. a.onload = null
  8105. }
  8106. if (a.nz) return a.nz;
  8107. var d = [b.rb("canvas"), b.rb("canvas"), b.rb("canvas"), b.rb("canvas")];
  8108. try {
  8109. c()
  8110. } catch(e) {
  8111. a.onload = c
  8112. }
  8113. return a.nz = d
  8114. };
  8115. b.rj.canvas = b.rb("canvas");
  8116. b.rj.mv = b.rb("canvas");
  8117. b.rj.qB = b.rj.mv.getContext("2d");
  8118. b.fu = function(a, c) {
  8119. if (!a) return null;
  8120. if (!c) return a;
  8121. var d = b.rb("canvas");
  8122. d.width = c.width;
  8123. d.height = c.height;
  8124. var e = d.getContext("2d");
  8125. e.translate(d.width / 2, d.height / 2);
  8126. e.rotate( - 1.5707963267948966);
  8127. e.drawImage(a, c.x, c.y, c.height, c.width, -c.height / 2, -c.width / 2, c.height, c.width);
  8128. return d
  8129. };
  8130. b.B = b.m.extend({
  8131. dirty: !1,
  8132. atlasIndex: 0,
  8133. textureAtlas: null,
  8134. ca: null,
  8135. ge: null,
  8136. Je: null,
  8137. xg: !1,
  8138. xh: null,
  8139. t: null,
  8140. ea: null,
  8141. F: null,
  8142. nb: !1,
  8143. Oa: null,
  8144. le: null,
  8145. Da: !1,
  8146. gb: !1,
  8147. hb: !1,
  8148. T: !1,
  8149. qa: null,
  8150. lo: null,
  8151. Mc: "Sprite",
  8152. Tx: b.color.WHITE,
  8153. nv: function() {
  8154. return this.T
  8155. },
  8156. Vc: function(a, c) {
  8157. this.qa || (this.qa = []);
  8158. this.qa.push({
  8159. ne: a,
  8160. td: c
  8161. })
  8162. },
  8163. Ub: function() {
  8164. if (this.qa) {
  8165. for (var a = this.qa,
  8166. c = 0,
  8167. d = a.length; c < d; c++) {
  8168. var e = a[c];
  8169. e.ne.call(e.td, this)
  8170. }
  8171. a.length = 0
  8172. }
  8173. },
  8174. iA: function() {
  8175. return this.dirty
  8176. },
  8177. XA: function(a) {
  8178. this.dirty = a
  8179. },
  8180. eL: function() {
  8181. return this.nb
  8182. },
  8183. HT: function() {
  8184. return this.atlasIndex
  8185. },
  8186. WX: function(a) {
  8187. this.atlasIndex = a
  8188. },
  8189. Pz: function() {
  8190. return E(this.F.x, this.F.y, this.F.width, this.F.height)
  8191. },
  8192. Oz: function() {
  8193. return this.textureAtlas
  8194. },
  8195. hB: function(a) {
  8196. this.textureAtlas = a
  8197. },
  8198. qK: function() {
  8199. return C(this.Oa)
  8200. },
  8201. iG: function() {
  8202. return this.Oa.x
  8203. },
  8204. jG: function() {
  8205. return this.Oa.y
  8206. },
  8207. Ml: function() {
  8208. return this.t
  8209. },
  8210. $e: function(a) {
  8211. b.assert(a, b.c.XD);
  8212. a.T || (this.T = !1, a.Vc(this.ot, this));
  8213. var c = b.da === b.Ya ? !1 : a.qc,
  8214. c = this.ia(a.La(), a.pe(), c);
  8215. this.Pg(a);
  8216. return c
  8217. },
  8218. ot: null,
  8219. pV: function(a) {
  8220. b.assert(a, b.c.YD);
  8221. var c = b.ue.Ye(a);
  8222. b.assert(c, a + b.c.ZD);
  8223. return this.$e(c)
  8224. },
  8225. zZ: function(a) {
  8226. this.textureAtlas = a.textureAtlas;
  8227. this.ca = a
  8228. },
  8229. iv: function(a) {
  8230. this.F.x = a.x;
  8231. this.F.y = a.y;
  8232. this.F.width = a.width;
  8233. this.F.height = a.height
  8234. },
  8235. vc: function() {
  8236. if (this.bc) {
  8237. var a = this.s,
  8238. c = a.length,
  8239. d, e, f;
  8240. for (d = 1; d < c; d++) {
  8241. f = a[d];
  8242. for (e = d - 1; 0 <= e;) {
  8243. if (f.Ia < a[e].Ia) a[e + 1] = a[e];
  8244. else if (f.Ia === a[e].Ia && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  8245. else break;
  8246. e--
  8247. }
  8248. a[e + 1] = f
  8249. }
  8250. this.ca && this.Gd(a, b.m.bd.vc);
  8251. this.bc = !1
  8252. }
  8253. },
  8254. im: function(a, c) {
  8255. b.assert(a, b.c.dE); - 1 === this.s.indexOf(a) ? b.log(b.c.cE) : c !== a.zIndex && (this.ca && !this.bc && (this.ft(), this.ca.FA(!0)), b.m.prototype.im.call(this, a, c))
  8256. },
  8257. removeChild: function(a, c) {
  8258. this.ca && this.ca.Xh(a);
  8259. b.m.prototype.removeChild.call(this, a, c)
  8260. },
  8261. te: function(a) {
  8262. b.m.prototype.te.call(this, a);
  8263. this.dv(!0)
  8264. },
  8265. df: function(a) {
  8266. var c = this.s,
  8267. d = this.ca;
  8268. if (d && null != c) for (var e = 0,
  8269. f = c.length; e < f; e++) d.Xh(c[e]);
  8270. b.m.prototype.df.call(this, a);
  8271. this.Je = !1
  8272. },
  8273. dv: function(a) {
  8274. this.dirty = this.ge = a;
  8275. a = this.s;
  8276. for (var c, d = a ? a.length: 0, e = 0; e < d; e++) c = a[e],
  8277. c instanceof b.B && c.dv(!0)
  8278. },
  8279. W: function(a) {
  8280. b.m.prototype.W.call(this);
  8281. a || !this.ca || this.ge || (this.Je ? this.dv(!0) : this.dirty = this.ge = !0)
  8282. },
  8283. Gu: function(a) {
  8284. this.ca ? b.log(b.c.VD) : b.m.prototype.Gu.call(this, a)
  8285. },
  8286. GM: function(a) {
  8287. this.gb != a && (this.gb = a, this.Ha(this.F, this.nb, this.v), this.W(!0))
  8288. },
  8289. HM: function(a) {
  8290. this.hb != a && (this.hb = a, this.Ha(this.F, this.nb, this.v), this.W(!0))
  8291. },
  8292. $K: function() {
  8293. return this.gb
  8294. },
  8295. aL: function() {
  8296. return this.hb
  8297. },
  8298. Ng: null,
  8299. Dj: function() {
  8300. return this.Da
  8301. },
  8302. kb: null,
  8303. iY: function(a, c) {
  8304. b.assert(a, b.c.hE);
  8305. var d = b.Fh.np(a);
  8306. d ? (d = d.$b[c]) ? this.Pg(d.Ye()) : b.log(b.c.gE) : b.log(b.c.fE)
  8307. },
  8308. QJ: function() {
  8309. return this.ca
  8310. },
  8311. ft: function() {
  8312. if (!this.bc) {
  8313. this.bc = !0;
  8314. for (var a = this.Db; a && a != this.ca;) a.ft(),
  8315. a = a.parent
  8316. }
  8317. },
  8318. La: function() {
  8319. return this.ea
  8320. },
  8321. Pa: null,
  8322. wo: null,
  8323. Dc: !1,
  8324. yn: !1,
  8325. cl: !1,
  8326. mb: null,
  8327. ij: null,
  8328. Fw: null,
  8329. ctor: null,
  8330. Jy: function(a, c, d) {
  8331. if (void 0 === a) b.B.prototype.ga.call(this);
  8332. else if ("string" === typeof a)"#" === a[0] ? (a = b.ue.Ye(a.substr(1, a.length - 1)), this.$e(a)) : b.B.prototype.ga.call(this, a, c);
  8333. else if ("object" === typeof a) if (a instanceof b.K) this.ia(a, c, d);
  8334. else if (a instanceof b.zc) this.$e(a);
  8335. else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) c = new b.K,
  8336. c.Mb(a),
  8337. c.Fa(),
  8338. this.ia(c)
  8339. },
  8340. vK: function() {
  8341. return this.Pa
  8342. },
  8343. $h: null,
  8344. ga: null,
  8345. Tl: function(a, c) {
  8346. b.assert(a, b.c.WD);
  8347. var d = b.va.lm(a);
  8348. if (d) {
  8349. if (!c) {
  8350. var e = d.ud();
  8351. c = E(0, 0, e.width, e.height)
  8352. }
  8353. return this.ia(d, c)
  8354. }
  8355. d = b.va.cc(a);
  8356. return this.ia(d, c || E(0, 0, d.v.width, d.v.height))
  8357. },
  8358. ia: null,
  8359. Oo: null,
  8360. Ha: null,
  8361. $c: null,
  8362. N: null,
  8363. om: function() {
  8364. var a = this.Q,
  8365. c = this.sa,
  8366. a = {
  8367. r: a.r,
  8368. g: a.g,
  8369. b: a.b,
  8370. a: c
  8371. };
  8372. this.Da && (a.r *= c / 255, a.g *= c / 255, a.b *= c / 255);
  8373. c = this.Pa;
  8374. c.wa.j = a;
  8375. c.xa.j = a;
  8376. c.ya.j = a;
  8377. c.za.j = a;
  8378. this.ca && (this.atlasIndex != b.B.sq ? this.textureAtlas.Up(c, this.atlasIndex) : this.dirty = !0);
  8379. this.Dc = !0
  8380. },
  8381. Ga: null,
  8382. V: null,
  8383. sb: null,
  8384. Pg: null,
  8385. hY: function(a) {
  8386. b.log(b.c.eE);
  8387. this.Pg(a)
  8388. },
  8389. jA: null,
  8390. cJ: function() {
  8391. return b.zc.create(this.ea, b.gm(this.F), this.nb, b.PL(this.le), b.rN(this.v))
  8392. },
  8393. cv: null,
  8394. Wa: null,
  8395. yh: function() {
  8396. this.ca ? b.log(b.c.OD) : this.ea && this.ea.Aj() ? (this.t.src = b.kc, this.t.Y = b.jc, this.opacityModifyRGB = !0) : (this.t.src = b.SRC_ALPHA, this.t.Y = b.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1)
  8397. },
  8398. fd: function() {
  8399. var a, c = this.ea,
  8400. d = this.ij;
  8401. c && d.Xj && this.mb && (a = c.la) && (this.yn = !0, a instanceof HTMLCanvasElement && !this.nb && !this.lo ? b.tj(this.mb.la, this.Q, d, a) : (a = b.tj(this.mb.la, this.Q, d), c = new b.K, c.Mb(a), c.Fa(), this.texture = c))
  8402. },
  8403. Dy: function(a) {
  8404. a = b.gm(a);
  8405. var c = this.ca ? this.textureAtlas.texture: this.ea;
  8406. if (c) {
  8407. var d = c.pixelsWidth,
  8408. e = c.pixelsHeight,
  8409. f, g = this.Pa;
  8410. this.nb ? (b.vk ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.gb && (e = f, f = a, a = e), this.hb && (e = c, c = d, d = e), g.wa.f.R = c, g.wa.f.S = f, g.xa.f.R = c, g.xa.f.S = a, g.ya.f.R = d, g.ya.f.S = f, g.za.f.R = d, g.za.f.S = a) : (b.vk ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.gb && (e = c, c = d, d = e), this.hb && (e = f, f = a, a = e), g.wa.f.R = c, g.wa.f.S = a, g.xa.f.R = d, g.xa.f.S = a, g.ya.f.R = c, g.ya.f.S = f, g.za.f.R = d, g.za.f.S = f);
  8411. this.Dc = !0
  8412. }
  8413. },
  8414. na: null
  8415. });
  8416. b.B.create = function(a, c, d) {
  8417. return new b.B(a, c, d)
  8418. };
  8419. b.B.eu = b.B.create;
  8420. b.B.qS = b.B.create;
  8421. b.B.pS = b.B.create;
  8422. b.B.sq = -1;
  8423. b.da === b.Ya ? (p = b.B.prototype, p.ot = function(a) {
  8424. this.W(!0);
  8425. this.Ha(a.pe(), a.qc, a.xj());
  8426. a = this.color;
  8427. 255 === a.r && 255 === a.g && 255 === a.b || this.fd();
  8428. this.Ub()
  8429. },
  8430. p.Ng = function(a) {
  8431. this.Da !== a && (this.Da = a, this.W(!0))
  8432. },
  8433. p.kb = function(a) {
  8434. b.m.prototype.kb.call(this, a);
  8435. this.aj()
  8436. },
  8437. p.ctor = function(a, c, d) {
  8438. b.m.prototype.ctor.call(this);
  8439. this.xg = !1;
  8440. this.Oa = C(0, 0);
  8441. this.le = C(0, 0);
  8442. this.t = {
  8443. src: b.kc,
  8444. Y: b.jc
  8445. };
  8446. this.F = E(0, 0, 0, 0);
  8447. this.lo = !1;
  8448. this.T = !0;
  8449. this.ij = {
  8450. x: 0,
  8451. y: 0,
  8452. width: 0,
  8453. height: 0,
  8454. Xj: !1
  8455. };
  8456. this.Fw = D(0, 0);
  8457. this.Jy(a, c, d)
  8458. },
  8459. p.$h = function(a, c) {
  8460. var d = this.t;
  8461. void 0 === c ? (d.src = a.src, d.Y = a.Y) : (d.src = a, d.Y = c);
  8462. this.cl = d && (d.src == b.SRC_ALPHA && d.Y == b.ONE || d.src == b.ONE && d.Y == b.ONE)
  8463. },
  8464. p.ga = function() {
  8465. if (0 < arguments.length) return this.Tl(arguments[0], arguments[1]);
  8466. b.m.prototype.ga.call(this);
  8467. this.dirty = this.ge = !1;
  8468. this.Da = !0;
  8469. this.t.src = b.kc;
  8470. this.t.Y = b.jc;
  8471. this.texture = null;
  8472. this.T = !0;
  8473. this.gb = this.hb = !1;
  8474. this.anchorY = this.anchorX = 0.5;
  8475. this.Oa.x = 0;
  8476. this.Oa.y = 0;
  8477. this.Je = !1;
  8478. this.Ha(E(0, 0, 0, 0), !1, D(0, 0));
  8479. return ! 0
  8480. },
  8481. p.ia = function(a, c, d) {
  8482. b.assert(0 != arguments.length, b.c.TB);
  8483. if ((d = d || !1) && a.xb) {
  8484. var e = a.la,
  8485. e = b.fu(e, c),
  8486. f = new b.K;
  8487. f.Mb(e);
  8488. f.Fa();
  8489. a = f;
  8490. this.F = E(0, 0, c.width, c.height)
  8491. }
  8492. if (!b.m.prototype.ga.call(this)) return ! 1;
  8493. this.ca = null;
  8494. this.dirty = this.ge = !1;
  8495. this.Da = !0;
  8496. this.t.src = b.kc;
  8497. this.t.Y = b.jc;
  8498. this.gb = this.hb = !1;
  8499. this.anchorY = this.anchorX = 0.5;
  8500. this.Oa.x = 0;
  8501. this.Oa.y = 0;
  8502. this.Je = !1;
  8503. this.T = e = a.xb;
  8504. if (!e) return this.nb = d,
  8505. c && (this.F.x = c.x, this.F.y = c.y, this.F.width = c.width, this.F.height = c.height),
  8506. a.Vc(this.Oo, this),
  8507. !0;
  8508. c || (c = E(0, 0, a.width, a.height));
  8509. a && a.url && (e = c.y + c.height, c.x + c.width > a.width && b.error(b.c.Pq, a.url), e > a.height && b.error(b.c.Oq, a.url));
  8510. this.texture = this.mb = a;
  8511. this.Ha(c, d);
  8512. this.batchNode = null;
  8513. return ! 0
  8514. },
  8515. p.Oo = function(a) {
  8516. if (!this.T) {
  8517. this.T = !0;
  8518. var c = this.F;
  8519. c ? b.Ns(c) && (c.width = a.width, c.height = a.height) : c = E(0, 0, a.width, a.height);
  8520. this.texture = this.mb = a;
  8521. this.Ha(c, this.nb);
  8522. a = this.Q;
  8523. 255 == a.r && 255 == a.g && 255 == a.b || this.fd();
  8524. this.batchNode = this.ca;
  8525. this.Ub()
  8526. }
  8527. },
  8528. p.Ha = function(a, c, d) {
  8529. this.nb = c || !1;
  8530. this.wd(d || a);
  8531. this.iv(a);
  8532. c = this.ij;
  8533. d = b.Ka();
  8534. c.x = 0 | a.x * d;
  8535. c.y = 0 | a.y * d;
  8536. c.width = 0 | a.width * d;
  8537. c.height = 0 | a.height * d;
  8538. c.Xj = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y);
  8539. a = this.le;
  8540. this.gb && (a.x = -a.x);
  8541. this.hb && (a.y = -a.y);
  8542. this.Oa.x = a.x + (this.v.width - this.F.width) / 2;
  8543. this.Oa.y = a.y + (this.v.height - this.F.height) / 2;
  8544. this.ca && (this.dirty = !0)
  8545. },
  8546. p.$c = function() {
  8547. if (this.dirty) {
  8548. var a = this.Db; ! this.Gc || a && a != this.ca && a.xg ? this.xg = !0 : (this.xg = !1, this.xh = a && a != this.ca ? b.Eh(this.Yl(), a.xh) : this.Yl());
  8549. this.dirty = this.ge = !1
  8550. }
  8551. this.Je && this.Gd(this.s, b.m.bd.$c)
  8552. },
  8553. p.N = function(a, c, d) {
  8554. b.assert(a, b.c.RB);
  8555. null == c && (c = a.Ia);
  8556. null == d && (d = a.tag);
  8557. b.m.prototype.N.call(this, a, c, d);
  8558. this.Je = !0
  8559. },
  8560. p.Ga = function(a) {
  8561. b.m.prototype.Ga.call(this, a);
  8562. this.aj()
  8563. },
  8564. p.V = function(a) {
  8565. var c = this.color;
  8566. this.Tx = c;
  8567. c.r === a.r && c.g === a.g && c.b === a.b || b.m.prototype.V.call(this, a)
  8568. },
  8569. p.sb = function(a) {
  8570. b.m.prototype.sb.call(this, a);
  8571. a = this.Tx;
  8572. var c = this.Q;
  8573. if (a.r !== c.r || a.g !== c.g || a.b !== c.b) this.fd(),
  8574. this.aj()
  8575. },
  8576. p.Pg = function(a) {
  8577. var c = this;
  8578. "string" == typeof a && (a = b.ue.Ye(a), b.assert(a, b.c.WB));
  8579. c.W(!0);
  8580. var d = a.wu();
  8581. c.le.x = d.x;
  8582. c.le.y = d.y;
  8583. c.nb = a.qc;
  8584. var d = a.La(),
  8585. e = a.T;
  8586. e || (c.T = !1, a.Vc(function(a) {
  8587. c.T = !0;
  8588. var d = a.La();
  8589. d != c.ea && (c.texture = d);
  8590. c.Ha(a.pe(), a.qc, a.xj());
  8591. c.Ub()
  8592. },
  8593. c));
  8594. d != c.ea && (c.texture = d);
  8595. c.nb && (c.mb = d);
  8596. c.Ha(a.pe(), c.nb, a.xj());
  8597. c.yn = !1;
  8598. e && (a = c.color, 255 === a.r && 255 === a.g && 255 === a.b || c.fd())
  8599. },
  8600. p.jA = function(a) {
  8601. return a.La() != this.ea ? !1 : b.AA(a.pe(), this.F)
  8602. },
  8603. p.cv = function(a) { (this.ca = a) ? (this.xh = {
  8604. a: 1,
  8605. b: 0,
  8606. J: 0,
  8607. P: 1,
  8608. Z: 0,
  8609. $: 0
  8610. },
  8611. this.textureAtlas = this.ca.textureAtlas) : (this.atlasIndex = b.B.sq, this.textureAtlas = null, this.dirty = this.ge = !1)
  8612. },
  8613. p.Wa = function(a) {
  8614. a && "string" === typeof a ? (a = b.va.cc(a), this.Wa(a), a = a.ud(), this.Ha(E(0, 0, a.width, a.height))) : (b.assert(!a || a instanceof b.K, b.c.XB), this.ea != a && (a && a.la instanceof HTMLImageElement && (this.mb = a), this.ea = a))
  8615. },
  8616. p.na = function(a) {
  8617. if (this.T) {
  8618. a = a || b.l;
  8619. this.cl && (a.globalCompositeOperation = "lighter");
  8620. var c = b.view.O,
  8621. d = b.view.ma;
  8622. a.globalAlpha = this.sa / 255;
  8623. var e = this.F,
  8624. f = this.v,
  8625. g = this.Oa,
  8626. h = this.Fw,
  8627. k = 0 | g.x,
  8628. m = -g.y - e.height,
  8629. n = this.ij;
  8630. h.width = e.width * c;
  8631. h.height = e.height * d;
  8632. if (this.gb || this.hb) a.save(),
  8633. this.gb && (k = -g.x - e.width, a.scale( - 1, 1)),
  8634. this.hb && (m = g.y, a.scale(1, -1));
  8635. k *= c;
  8636. m *= d;
  8637. this.ea && n.Xj ? (f = this.ea.la, this.yn ? a.drawImage(f, 0, 0, n.width, n.height, k, m, h.width, h.height) : a.drawImage(f, n.x, n.y, n.width, n.height, k, m, h.width, h.height)) : !this.ea && n.Xj && (h = this.color, a.fillStyle = "rgba(" + h.r + "," + h.g + "," + h.b + ",1)", a.fillRect(k, m, f.width * c, f.height * d));
  8638. 1 === b.Uf || this.jt ? (a.strokeStyle = "rgba(0,255,0,1)", k /= c, m = -(m / d), b.Hd.gc([C(k, m), C(k + e.width, m), C(k + e.width, m - e.height), C(k, m - e.height)], 4, !0)) : 2 === b.Uf && (a.strokeStyle = "rgba(0,255,0,1)", c = this.F, m = -m, b.Hd.gc([C(k, m), C(k + c.width, m), C(k + c.width, m - c.height), C(k, m - c.height)], 4, !0)); (this.gb || this.hb) && a.restore();
  8639. b.We++
  8640. }
  8641. },
  8642. b.Aa.wt || (p.fd = function() {
  8643. var a, c = this.ea,
  8644. d = this.ij;
  8645. c && d.Xj && this.mb && (a = c.la) && (c = b.va.zu(this.mb.la)) && (this.yn = !0, a instanceof HTMLCanvasElement && !this.nb && !this.lo ? b.sj(a, c, this.Q, d, a) : (a = b.sj(a, c, this.Q, d), c = new b.K, c.Mb(a), c.Fa(), this.texture = c))
  8646. }), delete p) : (b.assert("function" === typeof b.p.kr, b.c.Gb, "SpritesWebGL.js"), b.p.kr(), delete b.p.kr);
  8647. b.assert("function" === typeof b.p.Kq, b.c.Gb, "SpritesPropertyDefine.js");
  8648. b.p.Kq();
  8649. delete b.p.Kq;
  8650. b.iq = 29;
  8651. b.Vf = b.m.extend({
  8652. textureAtlas: null,
  8653. t: null,
  8654. Xb: null,
  8655. Mc: "SpriteBatchNode",
  8656. IR: function(a, c, d) {
  8657. b.assert(a, b.c.ID);
  8658. if (! (a instanceof b.B)) return b.log(b.c.HD),
  8659. null;
  8660. a.atlasIndex = c;
  8661. var e = 0,
  8662. f = this.Xb;
  8663. if (f && 0 < f.length) for (var g = 0; g < f.length; g++) {
  8664. var h = f[g];
  8665. h && h.atlasIndex >= c && ++e
  8666. }
  8667. f.splice(e, 0, a);
  8668. b.m.prototype.N.call(this, a, c, d);
  8669. this.FA(!1);
  8670. return this
  8671. },
  8672. Oz: function() {
  8673. return this.textureAtlas
  8674. },
  8675. hB: function(a) {
  8676. a != this.textureAtlas && (this.textureAtlas = a)
  8677. },
  8678. XJ: function() {
  8679. return this.Xb
  8680. },
  8681. Tl: function(a, c) {
  8682. var d = b.va.lm(a);
  8683. d || (d = b.va.cc(a));
  8684. return this.ia(d, c)
  8685. },
  8686. aj: function() {
  8687. this.Ce = !0
  8688. },
  8689. ga: function(a, c) {
  8690. var d = b.va.lm(a);
  8691. d || (d = b.va.cc(a));
  8692. return this.ia(d, c)
  8693. },
  8694. tp: function() {
  8695. var a = this.textureAtlas.capacity,
  8696. c = Math.floor(4 * (a + 1) / 3);
  8697. b.log(b.c.JD, a, c);
  8698. this.textureAtlas.JA(c) || b.log(b.c.KD)
  8699. },
  8700. wX: function(a, c) {
  8701. this.removeChild(this.s[a], c)
  8702. },
  8703. yA: function(a, c) {
  8704. var d = a.children;
  8705. if (d && 0 < d.length) for (var e = 0; e < d.length; e++) {
  8706. var f = d[e];
  8707. f && 0 > f.zIndex && (c = this.yA(f, c))
  8708. } ! a == this && (a.atlasIndex = c, c++);
  8709. if (d && 0 < d.length) for (e = 0; e < d.length; e++)(f = d[e]) && 0 <= f.zIndex && (c = this.yA(f, c));
  8710. return c
  8711. },
  8712. Fu: function(a) {
  8713. var c = a.children;
  8714. return c && 0 != c.length ? this.Fu(c[c.length - 1]) : a.atlasIndex
  8715. },
  8716. vL: function(a) {
  8717. var c = a.children;
  8718. return c && 0 != c.length ? this.vL(c[c.length - 1]) : a.atlasIndex
  8719. },
  8720. BI: function(a, c) {
  8721. var d = a.parent,
  8722. e = d.children,
  8723. f = e.indexOf(a),
  8724. g = null;
  8725. 0 < f && f < b.RE && (g = e[f - 1]);
  8726. return d == this ? 0 == f ? 0 : this.Fu(g) + 1 : 0 == f ? 0 > c ? d.atlasIndex: d.atlasIndex + 1 : 0 > g.zIndex && 0 > c || 0 <= g.zIndex && 0 <= c ? this.Fu(g) + 1 : d.atlasIndex + 1
  8727. },
  8728. FA: function(a) {
  8729. this.bc = a
  8730. },
  8731. $h: function(a, c) {
  8732. this.t = void 0 === c ? a: {
  8733. src: a,
  8734. Y: c
  8735. }
  8736. },
  8737. Ml: function() {
  8738. return this.t
  8739. },
  8740. im: function(a, c) {
  8741. b.assert(a, b.c.ND); - 1 === this.s.indexOf(a) ? b.log(b.c.MD) : c !== a.zIndex && (b.m.prototype.im.call(this, a, c), this.W())
  8742. },
  8743. removeChild: function(a, c) {
  8744. null != a && ( - 1 === this.s.indexOf(a) ? b.log(b.c.LD) : (this.Xh(a), b.m.prototype.removeChild.call(this, a, c)))
  8745. },
  8746. UG: null,
  8747. vh: null,
  8748. xR: !1,
  8749. mb: null,
  8750. ctor: null,
  8751. zF: function(a, c) {
  8752. b.m.prototype.ctor.call(this);
  8753. var d;
  8754. c = c || b.iq;
  8755. "string" == typeof a ? (d = b.va.lm(a)) || (d = b.va.cc(a)) : a instanceof b.K && (d = a);
  8756. d && this.ia(d, c)
  8757. },
  8758. AF: function(a, c) {
  8759. b.m.prototype.ctor.call(this);
  8760. this.UG = new b.re;
  8761. var d;
  8762. c = c || b.iq;
  8763. "string" == typeof a ? (d = b.va.lm(a)) || (d = b.va.cc(a)) : a instanceof b.K && (d = a);
  8764. d && this.ia(d, c)
  8765. },
  8766. CB: null,
  8767. cI: function(a, c) {
  8768. b.assert(a, b.c.YB);
  8769. a instanceof b.B ? (a.batchNode = this, a.atlasIndex = c, a.dirty = !0, a.$c()) : b.log(b.c.eq)
  8770. },
  8771. dI: function(a, c) {
  8772. b.assert(a, b.c.eq);
  8773. if (a instanceof b.B) {
  8774. for (var d = this.textureAtlas.capacity; c >= d || d == this.textureAtlas.totalQuads;) this.tp();
  8775. a.batchNode = this;
  8776. a.atlasIndex = c;
  8777. a.dirty = !0;
  8778. a.$c()
  8779. } else b.log(b.c.eq)
  8780. },
  8781. Mo: function(a, c) {
  8782. var d = this.Xb,
  8783. e = this.textureAtlas,
  8784. f = e.quads,
  8785. g = d[a],
  8786. h = b.ew(f[a]);
  8787. d[c].atlasIndex = a;
  8788. d[a] = d[c];
  8789. e.Up(f[c], a);
  8790. d[c] = g;
  8791. e.Up(h, c)
  8792. },
  8793. eA: null,
  8794. EG: function(a, c) {
  8795. b.assert(a, b.c.VB);
  8796. a instanceof b.B ? (a.batchNode = this, a.atlasIndex = c, a.dirty = !0, a.$c(), this.s.splice(c, 0, a)) : b.log(b.c.UB)
  8797. },
  8798. FG: function(a, c) {
  8799. b.assert(a, b.c.bE);
  8800. if (a instanceof b.B) {
  8801. for (var d = this.textureAtlas; c >= d.capacity || d.capacity === d.totalQuads;) this.tp();
  8802. a.batchNode = this;
  8803. a.atlasIndex = c;
  8804. d.Iu(a.quad, c);
  8805. a.dirty = !0;
  8806. a.$c()
  8807. } else b.log(b.c.aE)
  8808. },
  8809. Vy: function(a, c) {
  8810. var d = 0,
  8811. e = a.children;
  8812. e && (d = e.length);
  8813. var f = 0;
  8814. if (0 === d) f = a.atlasIndex,
  8815. a.atlasIndex = c,
  8816. a.arrivalOrder = 0,
  8817. f != c && this.Mo(f, c),
  8818. c++;
  8819. else {
  8820. f = !0;
  8821. 0 <= e[0].zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Mo(f, c), c++, f = !1);
  8822. for (d = 0; d < e.length; d++) {
  8823. var g = e[d];
  8824. f && 0 <= g.zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Mo(f, c), c++, f = !1);
  8825. c = this.Vy(g, c)
  8826. }
  8827. f && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Mo(f, c), c++)
  8828. }
  8829. return c
  8830. },
  8831. yh: function() {
  8832. this.textureAtlas.texture.Aj() || (this.t.src = b.SRC_ALPHA, this.t.Y = b.ONE_MINUS_SRC_ALPHA)
  8833. },
  8834. ia: null,
  8835. hs: function(a) {
  8836. this.s = [];
  8837. this.Xb = [];
  8838. this.t = new b.cb(b.kc, b.jc);
  8839. this.vh = this.mb = a;
  8840. return ! 0
  8841. },
  8842. is: function(a, c) {
  8843. this.s = [];
  8844. this.Xb = [];
  8845. this.t = new b.cb(b.kc, b.jc);
  8846. c = c || b.iq;
  8847. this.textureAtlas = new b.mf;
  8848. this.textureAtlas.ia(a, c);
  8849. this.yh();
  8850. this.shaderProgram = b.ff.Of(b.Wq);
  8851. return ! 0
  8852. },
  8853. YK: function(a, c) {
  8854. a.batchNode = this;
  8855. a.atlasIndex = c;
  8856. a.dirty = !0;
  8857. var d = this.textureAtlas;
  8858. d.totalQuads >= d.capacity && this.tp();
  8859. d.Iu(a.quad, c);
  8860. this.Xb.splice(c, 0, a);
  8861. var d = c + 1,
  8862. e = this.Xb;
  8863. if (e && 0 < e.length) for (; d < e.length; d++) e[d].atlasIndex++;
  8864. var e = a.children,
  8865. f;
  8866. if (e) for (d = 0, l = e.length || 0; d < l; d++)(f = e[d]) && this.YK(f, this.BI(f, f.zIndex))
  8867. },
  8868. appendChild: null,
  8869. lF: function(a) {
  8870. this.bc = !0;
  8871. a.batchNode = this;
  8872. a.dirty = !0;
  8873. this.Xb.push(a);
  8874. a.atlasIndex = this.Xb.length - 1;
  8875. a = a.children;
  8876. for (var c = 0,
  8877. d = a.length || 0; c < d; c++) this.appendChild(a[c])
  8878. },
  8879. mF: function(a) {
  8880. this.bc = !0;
  8881. a.batchNode = this;
  8882. a.dirty = !0;
  8883. this.Xb.push(a);
  8884. var c = this.Xb.length - 1;
  8885. a.atlasIndex = c;
  8886. var d = this.textureAtlas;
  8887. d.totalQuads == d.capacity && this.tp();
  8888. d.Iu(a.quad, c);
  8889. a = a.children;
  8890. c = 0;
  8891. for (d = a.length || 0; c < d; c++) this.appendChild(a[c])
  8892. },
  8893. Xh: null,
  8894. nH: function(a) {
  8895. a.batchNode = null;
  8896. var c = this.Xb,
  8897. d = c.indexOf(a);
  8898. if ( - 1 != d) {
  8899. c.splice(d, 1);
  8900. for (var e = c.length; d < e; ++d) c[d].atlasIndex--
  8901. }
  8902. if (a = a.children) for (c = 0, d = a.length || 0; c < d; c++) a[c] && this.Xh(a[c])
  8903. },
  8904. oH: function(a) {
  8905. this.textureAtlas.dM(a.atlasIndex);
  8906. a.batchNode = null;
  8907. var c = this.Xb,
  8908. d = c.indexOf(a);
  8909. if ( - 1 != d) {
  8910. c.splice(d, 1);
  8911. for (var e = c.length; d < e; ++d) c[d].atlasIndex--
  8912. }
  8913. if (a = a.children) for (c = 0, d = a.length || 0; c < d; c++) a[c] && this.Xh(a[c])
  8914. },
  8915. La: null,
  8916. cs: function() {
  8917. return this.vh
  8918. },
  8919. ds: function() {
  8920. return this.textureAtlas.texture
  8921. },
  8922. Wa: null,
  8923. gt: function(a) {
  8924. this.vh = a;
  8925. for (var c = this.s,
  8926. d = 0; d < c.length; d++) c[d].texture = a
  8927. },
  8928. ht: function(a) {
  8929. this.textureAtlas.texture = a;
  8930. this.yh()
  8931. },
  8932. Ba: null,
  8933. eI: function(a) {
  8934. var c = a || b.l;
  8935. if (this.Gc) {
  8936. c.save();
  8937. this.transform(a);
  8938. var d = this.s;
  8939. if (d) for (this.vc(), a = 0; a < d.length; a++) d[a] && d[a].Ba(c);
  8940. c.restore()
  8941. }
  8942. },
  8943. fI: function(a) {
  8944. a = a || b.l;
  8945. if (this.Gc) {
  8946. b.oL();
  8947. var c = this.zj;
  8948. c && c.fA() && (c.HI(), this.vB());
  8949. this.vc();
  8950. this.transform(a);
  8951. this.na(a);
  8952. c && c.fA() && c.nI(this);
  8953. b.nL();
  8954. this.arrivalOrder = 0
  8955. }
  8956. },
  8957. N: null,
  8958. rr: function(a, c, d) {
  8959. b.assert(null != a, b.c.SB);
  8960. a instanceof b.B ? (c = null == c ? a.zIndex: c, d = null == d ? a.tag: d, b.m.prototype.N.call(this, a, c, d), this.appendChild(a), this.W()) : b.log(b.c.QB)
  8961. },
  8962. hF: function(a, c, d) {
  8963. b.assert(null != a, b.c.UD);
  8964. a instanceof b.B ? a.texture != this.textureAtlas.texture ? b.log(b.c.TD) : (c = null == c ? a.zIndex: c, d = null == d ? a.tag: d, b.m.prototype.N.call(this, a, c, d), this.appendChild(a), this.W()) : b.log(b.c.SD)
  8965. },
  8966. df: null,
  8967. lH: function(a) {
  8968. var c = this.Xb;
  8969. if (c && 0 < c.length) for (var d = 0,
  8970. e = c.length; d < e; d++) c[d] && (c[d].batchNode = null);
  8971. b.m.prototype.df.call(this, a);
  8972. this.Xb.length = 0
  8973. },
  8974. mH: function(a) {
  8975. var c = this.Xb;
  8976. if (c && 0 < c.length) for (var d = 0,
  8977. e = c.length; d < e; d++) c[d] && (c[d].batchNode = null);
  8978. b.m.prototype.df.call(this, a);
  8979. this.Xb.length = 0;
  8980. this.textureAtlas.$L()
  8981. },
  8982. vc: null,
  8983. OH: function() {
  8984. if (this.bc) {
  8985. var a, c = 0,
  8986. d = this.s,
  8987. e = d.length,
  8988. f;
  8989. for (a = 1; a < e; a++) {
  8990. var g = d[a],
  8991. c = a - 1;
  8992. for (f = d[c]; 0 <= c && (g.Ia < f.Ia || g.Ia == f.Ia && g.arrivalOrder < f.arrivalOrder);) d[c + 1] = f,
  8993. c -= 1,
  8994. f = d[c];
  8995. d[c + 1] = g
  8996. }
  8997. 0 < d.length && this.Gd(d, b.m.bd.vc);
  8998. this.bc = !1
  8999. }
  9000. },
  9001. PH: function() {
  9002. if (this.bc) {
  9003. var a = this.s,
  9004. c, d = 0,
  9005. e = a.length,
  9006. f;
  9007. for (c = 1; c < e; c++) {
  9008. var g = a[c],
  9009. d = c - 1;
  9010. for (f = a[d]; 0 <= d && (g.Ia < f.Ia || g.Ia == f.Ia && g.arrivalOrder < f.arrivalOrder);) a[d + 1] = f,
  9011. d -= 1,
  9012. f = a[d];
  9013. a[d + 1] = g
  9014. }
  9015. if (0 < a.length) for (this.Gd(a, b.m.bd.vc), c = d = 0; c < a.length; c++) d = this.Vy(a[c], d);
  9016. this.bc = !1
  9017. }
  9018. },
  9019. na: null,
  9020. Lr: function() {
  9021. 0 !== this.textureAtlas.totalQuads && (this.Jb.wc(), this.Jb.xd(), this.Gd(this.s, b.m.bd.$c), b.Ph(this.t.src, this.t.Y), this.textureAtlas.jJ())
  9022. }
  9023. });
  9024. p = b.Vf.prototype;
  9025. b.da === b.wb ? (p.ctor = p.AF, p.CB = p.dI, p.eA = p.FG, p.ia = p.is, p.appendChild = p.mF, p.Xh = p.oH, p.La = p.ds, p.Wa = p.ht, p.Ba = p.fI, p.N = p.hF, p.df = p.mH, p.vc = p.PH, p.na = p.Lr) : (p.ctor = p.zF, p.CB = p.cI, p.eA = p.EG, p.ia = p.hs, p.appendChild = p.lF, p.Xh = p.nH, p.La = p.cs, p.Wa = p.gt, p.Ba = p.eI, p.df = p.lH, p.N = p.rr, p.vc = p.OH, p.na = b.m.prototype.na);
  9026. b.k(p, "texture", p.La, p.Wa);
  9027. b.k(p, "descendants", p.XJ);
  9028. b.Vf.create = function(a, c) {
  9029. return new b.Vf(a, c)
  9030. };
  9031. b.Vf.eu = b.Vf.create;
  9032. b.PB = b.B.extend({
  9033. zr: null,
  9034. vn: null,
  9035. ctor: function() {
  9036. b.B.prototype.ctor.call(this);
  9037. var a = document.createElement("canvas");
  9038. a.width = a.height = 10;
  9039. this.zr = a;
  9040. this.vn = a.getContext("2d");
  9041. var c = new b.K;
  9042. c.Mb(a);
  9043. c.Fa();
  9044. this.Wa(c)
  9045. },
  9046. MT: function() {
  9047. return this.vn
  9048. },
  9049. LT: function() {
  9050. return this.zr
  9051. },
  9052. IA: function(a, c) {
  9053. void 0 === c && (c = a.height, a = a.width);
  9054. var d = this.zr;
  9055. d.width = a;
  9056. d.height = c;
  9057. this.La().Fa();
  9058. this.Ha(E(0, 0, a, c), !1)
  9059. }
  9060. });
  9061. b.Ad = b.oa.extend({
  9062. cj: null,
  9063. Wb: 0,
  9064. oj: null,
  9065. ctor: function(a, c, d) {
  9066. this.cj = a || null;
  9067. this.Wb = c || 0;
  9068. this.oj = d || null
  9069. },
  9070. d: function() {
  9071. var a = new b.Ad;
  9072. a.$e(this.cj.d(), this.Wb, this.oj);
  9073. return a
  9074. },
  9075. ep: function() {
  9076. return b.d(this)
  9077. },
  9078. copy: function() {
  9079. var a = new b.Ad;
  9080. a.$e(this.cj.d(), this.Wb, this.oj);
  9081. return a
  9082. },
  9083. $e: function(a, c, d) {
  9084. this.cj = a;
  9085. this.Wb = c;
  9086. this.oj = d;
  9087. return ! 0
  9088. },
  9089. Ye: function() {
  9090. return this.cj
  9091. },
  9092. Pg: function(a) {
  9093. this.cj = a
  9094. },
  9095. UT: function() {
  9096. return this.Wb
  9097. },
  9098. eY: function(a) {
  9099. this.Wb = a
  9100. },
  9101. bV: function() {
  9102. return this.oj
  9103. },
  9104. XY: function(a) {
  9105. this.oj = a
  9106. }
  9107. });
  9108. b.Ad.create = function(a, c, d) {
  9109. return new b.Ad(a, c, d)
  9110. };
  9111. b.we = b.oa.extend({
  9112. $b: null,
  9113. sf: 0,
  9114. nh: !1,
  9115. u: 0,
  9116. Wb: 0,
  9117. Ue: 0,
  9118. ctor: function(a, c, d) {
  9119. this.$b = [];
  9120. if (void 0 === a) this.cA(null, 0);
  9121. else {
  9122. var e = a[0];
  9123. e && (e instanceof b.zc ? this.cA(a, c, d) : e instanceof b.Ad && this.up(a, c, d))
  9124. }
  9125. },
  9126. jU: function() {
  9127. return this.$b
  9128. },
  9129. rY: function(a) {
  9130. this.$b = a
  9131. },
  9132. Ut: function(a) {
  9133. var c = new b.Ad;
  9134. c.$e(a, 1, null);
  9135. this.$b.push(c);
  9136. this.Ue++
  9137. },
  9138. GR: function(a) {
  9139. a = b.va.cc(a);
  9140. var c = E(0, 0, 0, 0);
  9141. c.width = a.width;
  9142. c.height = a.height;
  9143. a = b.zc.create(a, c);
  9144. this.Ut(a)
  9145. },
  9146. HR: function(a, c) {
  9147. var d = b.zc.create(a, c);
  9148. this.Ut(d)
  9149. },
  9150. up: function(a, c, d) {
  9151. b.qj(a, b.Ad);
  9152. this.Wb = c;
  9153. this.sf = void 0 === d ? 1 : d;
  9154. this.Ue = 0;
  9155. c = this.$b;
  9156. for (d = c.length = 0; d < a.length; d++) {
  9157. var e = a[d];
  9158. c.push(e);
  9159. this.Ue += e.Wb
  9160. }
  9161. return ! 0
  9162. },
  9163. d: function() {
  9164. var a = new b.we;
  9165. a.up(this.ww(), this.Wb, this.sf);
  9166. a.Pp(this.nh);
  9167. return a
  9168. },
  9169. ep: function() {
  9170. var a = new b.we;
  9171. a.up(this.ww(), this.Wb, this.sf);
  9172. a.Pp(this.nh);
  9173. return a
  9174. },
  9175. ww: function() {
  9176. for (var a = [], c = 0; c < this.$b.length; c++) a.push(this.$b[c].d());
  9177. return a
  9178. },
  9179. copy: function() {
  9180. return this.ep(null)
  9181. },
  9182. qU: function() {
  9183. return this.sf
  9184. },
  9185. wY: function(a) {
  9186. this.sf = a
  9187. },
  9188. Pp: function(a) {
  9189. this.nh = a
  9190. },
  9191. LU: function() {
  9192. return this.nh
  9193. },
  9194. tu: function() {
  9195. return this.Ue * this.Wb
  9196. },
  9197. TT: function() {
  9198. return this.Wb
  9199. },
  9200. dY: function(a) {
  9201. this.Wb = a
  9202. },
  9203. YU: function() {
  9204. return this.Ue
  9205. },
  9206. cA: function(a, c, d) {
  9207. b.qj(a, b.zc);
  9208. this.sf = void 0 === d ? 1 : d;
  9209. this.Wb = c || 0;
  9210. this.Ue = 0;
  9211. c = this.$b;
  9212. c.length = 0;
  9213. if (a) {
  9214. for (d = 0; d < a.length; d++) {
  9215. var e = a[d],
  9216. f = new b.Ad;
  9217. f.$e(e, 1, null);
  9218. c.push(f)
  9219. }
  9220. this.Ue += a.length
  9221. }
  9222. return ! 0
  9223. },
  9224. Zu: function() {},
  9225. Pf: function() {}
  9226. });
  9227. b.we.create = function(a, c, d) {
  9228. return new b.we(a, c, d)
  9229. };
  9230. b.we.nS = b.we.create;
  9231. b.Fh = {
  9232. ni: {},
  9233. St: function(a, c) {
  9234. this.ni[c] = a
  9235. },
  9236. vX: function(a) {
  9237. a && this.ni[a] && delete this.ni[a]
  9238. },
  9239. np: function(a) {
  9240. return this.ni[a] ? this.ni[a] : null
  9241. },
  9242. gF: function(a, c) {
  9243. var d = a.animations;
  9244. if (d) {
  9245. var e = 1,
  9246. f = a.properties;
  9247. if (f) for (var e = null != f.format ? parseInt(f.format) : e, f = f.spritesheets, g = b.ue, h = b.path, k = 0; k < f.length; k++) g.Vt(h.$o(c, f[k]));
  9248. switch (e) {
  9249. case 1:
  9250. this.eH(d);
  9251. break;
  9252. case 2:
  9253. this.fH(d);
  9254. break;
  9255. default:
  9256. b.log(b.c.sI)
  9257. }
  9258. } else b.log(b.c.rI)
  9259. },
  9260. AR: function(a) {
  9261. b.assert(a, b.c.AI);
  9262. var c = b.D.Yc(a);
  9263. c ? this.gF(c, a) : b.log(b.c.zI)
  9264. },
  9265. eH: function(a) {
  9266. var c = b.ue,
  9267. d;
  9268. for (d in a) {
  9269. var e = a[d],
  9270. f = e.frames,
  9271. e = parseFloat(e.delay) || 0,
  9272. g = null;
  9273. if (f) {
  9274. for (var g = [], h = 0; h < f.length; h++) {
  9275. var k = c.Ye(f[h]);
  9276. if (k) {
  9277. var m = new b.Ad;
  9278. m.$e(k, 1, null);
  9279. g.push(m)
  9280. } else b.log(b.c.uI, d, f[h])
  9281. }
  9282. 0 === g.length ? b.log(b.c.vI, d) : (g.length != f.length && b.log(b.c.wI, d), g = b.we.create(g, e, 1), b.Fh.St(g, d))
  9283. } else b.log(b.c.tI, d)
  9284. }
  9285. },
  9286. fH: function(a) {
  9287. var c = b.ue,
  9288. d;
  9289. for (d in a) {
  9290. var e = a[d],
  9291. f = parseInt(e.loops),
  9292. f = e.loop ? b.Ak: isNaN(f) ? 1 : f,
  9293. g = e.restoreOriginalFrame && !0 == e.restoreOriginalFrame ? !0 : !1,
  9294. h = e.frames;
  9295. if (h) {
  9296. for (var k = [], m = 0; m < h.length; m++) {
  9297. var n = h[m],
  9298. r = n.spriteframe,
  9299. s = c.Ye(r);
  9300. if (s) {
  9301. var r = parseFloat(n.delayUnits) || 0,
  9302. n = n.notification,
  9303. u = new b.Ad;
  9304. u.$e(s, r, n);
  9305. k.push(u)
  9306. } else b.log(b.c.yI, d, r)
  9307. }
  9308. e = parseFloat(e.delayPerUnit) || 0;
  9309. h = new b.we;
  9310. h.up(k, e, f);
  9311. h.Pp(g);
  9312. b.Fh.St(h, d)
  9313. } else b.log(b.c.xI, d)
  9314. }
  9315. },
  9316. fg: function() {
  9317. this.ni = {}
  9318. }
  9319. };
  9320. b.zc = b.oa.extend({
  9321. Na: null,
  9322. ug: null,
  9323. Fc: null,
  9324. qc: !1,
  9325. F: null,
  9326. Ld: null,
  9327. nd: null,
  9328. ea: null,
  9329. hj: "",
  9330. T: !1,
  9331. On: null,
  9332. ctor: function(a, c, d, e, f) {
  9333. this.Na = C(0, 0);
  9334. this.Ld = C(0, 0);
  9335. this.ug = D(0, 0);
  9336. this.qc = !1;
  9337. this.nd = D(0, 0);
  9338. this.hj = "";
  9339. this.ea = null;
  9340. this.T = !1;
  9341. void 0 !== a && void 0 !== c && (void 0 === d || void 0 === e || void 0 === f ? this.ia(a, c) : this.ia(a, c, d, e, f))
  9342. },
  9343. nv: function() {
  9344. return this.T
  9345. },
  9346. Vc: function(a, c) {
  9347. null == this.On && (this.On = []);
  9348. this.On.push({
  9349. ne: a,
  9350. td: c
  9351. })
  9352. },
  9353. Ub: function() {
  9354. var a = this.On;
  9355. if (a) {
  9356. for (var c = 0,
  9357. d = a.length; c < d; c++) {
  9358. var e = a[c];
  9359. e.ne.call(e.td, this)
  9360. }
  9361. a.length = 0
  9362. }
  9363. },
  9364. wK: function() {
  9365. var a = this.Fc;
  9366. return E(a.x, a.y, a.width, a.height)
  9367. },
  9368. LY: function(a) {
  9369. this.Fc || (this.Fc = E(0, 0, 0, 0));
  9370. this.Fc.x = a.x;
  9371. this.Fc.y = a.y;
  9372. this.Fc.width = a.width;
  9373. this.Fc.height = a.height;
  9374. this.F = b.Hp(a)
  9375. },
  9376. FV: function() {
  9377. return this.qc
  9378. },
  9379. NY: function(a) {
  9380. this.qc = a
  9381. },
  9382. pe: function() {
  9383. var a = this.F;
  9384. return E(a.x, a.y, a.width, a.height)
  9385. },
  9386. dB: function(a) {
  9387. this.F || (this.F = E(0, 0, 0, 0));
  9388. this.F.x = a.x;
  9389. this.F.y = a.y;
  9390. this.F.width = a.width;
  9391. this.F.height = a.height;
  9392. this.Fc = b.gm(this.F)
  9393. },
  9394. xU: function() {
  9395. return C(this.Ld)
  9396. },
  9397. CY: function(a) {
  9398. this.Ld.x = a.x;
  9399. this.Ld.y = a.y;
  9400. b.Ds(this.Ld, this.Na)
  9401. },
  9402. AU: function() {
  9403. return D(this.nd)
  9404. },
  9405. EY: function(a) {
  9406. this.nd.width = a.width;
  9407. this.nd.height = a.height
  9408. },
  9409. xj: function() {
  9410. return D(this.ug)
  9411. },
  9412. DY: function(a) {
  9413. this.ug.width = a.width;
  9414. this.ug.height = a.height
  9415. },
  9416. La: function() {
  9417. if (this.ea) return this.ea;
  9418. if ("" !== this.hj) {
  9419. var a = b.va.cc(this.hj);
  9420. a && (this.T = a.xb);
  9421. return a
  9422. }
  9423. return null
  9424. },
  9425. Wa: function(a) {
  9426. if (this.ea != a) {
  9427. var c = a.xb;
  9428. this.T = c;
  9429. this.ea = a;
  9430. c || a.Vc(function(a) {
  9431. this.T = !0;
  9432. if (this.qc && b.da === b.Ya) {
  9433. var c = a.la,
  9434. c = b.fu(c, this.pe()),
  9435. f = new b.K;
  9436. f.Mb(c);
  9437. f.Fa();
  9438. this.Wa(f);
  9439. c = this.pe();
  9440. this.dB(E(0, 0, c.width, c.height))
  9441. }
  9442. c = this.F;
  9443. 0 === c.width && 0 === c.height && (c = a.width, a = a.height, this.F.width = c, this.F.height = a, this.Fc = b.gm(this.F), this.nd.width = this.Fc.width, this.nd.height = this.Fc.height, this.ug.width = c, this.ug.height = a);
  9444. this.Ub()
  9445. },
  9446. this)
  9447. }
  9448. },
  9449. wu: function() {
  9450. return C(this.Na)
  9451. },
  9452. BY: function(a) {
  9453. this.Na.x = a.x;
  9454. this.Na.y = a.y
  9455. },
  9456. d: function() {
  9457. var a = new b.zc;
  9458. a.ia(this.hj, this.Fc, this.qc, this.Ld, this.nd);
  9459. a.Wa(this.ea);
  9460. return a
  9461. },
  9462. ep: function() {
  9463. var a = new b.zc;
  9464. a.ia(this.hj, this.Fc, this.qc, this.Ld, this.nd);
  9465. a.Wa(this.ea);
  9466. return a
  9467. },
  9468. copy: function() {
  9469. return this.ep()
  9470. },
  9471. ia: function(a, c, d, e, f) {
  9472. 2 === arguments.length && (c = b.gm(c));
  9473. e = e || C(0, 0);
  9474. f = f || c;
  9475. d = d || !1;
  9476. "string" == typeof a ? (this.ea = null, this.hj = a) : a instanceof b.K && this.Wa(a);
  9477. if ((a = this.La()) && a.url) {
  9478. var g, h;
  9479. d ? (g = c.x + c.height, h = c.y + c.width) : (g = c.x + c.width, h = c.y + c.height);
  9480. g > a.width && b.error(b.c.Pq, a.url);
  9481. h > a.height && b.error(b.c.Oq, a.url)
  9482. }
  9483. this.Fc = c;
  9484. this.F = b.Hp(c);
  9485. this.Ld.x = e.x;
  9486. this.Ld.y = e.y;
  9487. b.Ds(e, this.Na);
  9488. this.nd.width = f.width;
  9489. this.nd.height = f.height;
  9490. b.Iy(f, this.ug);
  9491. this.qc = d;
  9492. return ! 0
  9493. }
  9494. });
  9495. b.zc.create = function(a, c, d, e, f) {
  9496. return new b.zc(a, c, d, e, f)
  9497. };
  9498. b.zc.eu = b.zc.create;
  9499. b.zc.ZQ = function(a, c, d, e, f) {
  9500. var g = new b.zc;
  9501. g.ea = a;
  9502. g.Fc = c;
  9503. g.F = b.Hp(c);
  9504. g.Ld.x = e.x;
  9505. g.Ld.y = e.y;
  9506. b.Ds(g.Ld, g.Na);
  9507. g.nd.width = f.width;
  9508. g.nd.height = f.height;
  9509. b.Iy(g.nd, g.ug);
  9510. g.qc = d;
  9511. return g
  9512. };
  9513. b.ue = {
  9514. hw: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  9515. WE: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  9516. ke: {},
  9517. Df: {},
  9518. Ki: {},
  9519. iy: function(a) {
  9520. return (a = this.WE.exec(a)) ? E(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : E(0, 0, 0, 0)
  9521. },
  9522. $x: function(a) {
  9523. return (a = this.hw.exec(a)) ? C(parseFloat(a[1]), parseFloat(a[2])) : C(0, 0)
  9524. },
  9525. kt: function(a) {
  9526. return (a = this.hw.exec(a)) ? D(parseFloat(a[1]), parseFloat(a[2])) : D(0, 0)
  9527. },
  9528. aG: function(a) {
  9529. var c = b.D.Yc(a);
  9530. b.assert(c, b.c.xN, a);
  9531. b.D.Pf(a);
  9532. if (c.Pi) return this.Ki[a] = c;
  9533. var d = c.frames,
  9534. e = c.metadata || c.meta,
  9535. c = {},
  9536. f = {},
  9537. g = 0;
  9538. e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.PK = e.textureFileName || e.textureFileName || e.image);
  9539. for (var h in d) {
  9540. var k = d[h];
  9541. if (k) {
  9542. e = {};
  9543. if (0 == g) {
  9544. e.rect = E(k.x, k.y, k.width, k.height);
  9545. e.Kp = !1;
  9546. e.offset = C(k.offsetX, k.offsetY);
  9547. var m = k.originalWidth,
  9548. k = k.originalHeight;
  9549. m && k || b.log(b.c.wN);
  9550. m = Math.abs(m);
  9551. k = Math.abs(k);
  9552. e.size = D(m, k)
  9553. } else if (1 == g || 2 == g) e.rect = this.iy(k.frame),
  9554. e.Kp = k.rotated || !1,
  9555. e.offset = this.$x(k.offset),
  9556. e.size = this.kt(k.sourceSize);
  9557. else if (3 == g) {
  9558. var m = this.kt(k.spriteSize),
  9559. n = this.iy(k.textureRect);
  9560. m && (n = E(n.x, n.y, m.width, m.height));
  9561. e.rect = n;
  9562. e.Kp = k.textureRotated || !1;
  9563. e.offset = this.$x(k.spriteOffset);
  9564. e.size = this.kt(k.spriteSourceSize);
  9565. e.oI = k.aliases
  9566. } else m = k.frame,
  9567. n = k.sourceSize,
  9568. h = k.filename || h,
  9569. e.rect = E(m.x, m.y, m.w, m.h),
  9570. e.Kp = k.rotated || !1,
  9571. e.offset = C(0, 0),
  9572. e.size = D(n.w, n.h);
  9573. c[h] = e
  9574. }
  9575. }
  9576. return this.Ki[a] = {
  9577. Pi: !0,
  9578. frames: c,
  9579. xL: f
  9580. }
  9581. },
  9582. Vt: function(a, c) {
  9583. b.assert(a, b.c.zN);
  9584. var d = this.Ki[a] || b.D.Yc(a);
  9585. if (d && d.frames) {
  9586. var e = this.Ki[a] || this.aG(a),
  9587. d = e.frames,
  9588. e = e.xL;
  9589. c ? c instanceof b.K || ("string" == typeof c ? c = b.va.cc(c) : b.assert(0, b.c.AN)) : c = b.va.cc(b.path.$o(a, e.PK || ".png"));
  9590. var e = this.Df,
  9591. f = this.ke,
  9592. g;
  9593. for (g in d) {
  9594. var h = d[g],
  9595. k = f[g];
  9596. if (!k) {
  9597. k = b.zc.create(c, h.rect, h.Kp, h.offset, h.size);
  9598. if (h = h.oI) for (var m = 0,
  9599. n = h.length; m < n; m++) {
  9600. var r = h[m];
  9601. e[r] && b.log(b.c.yN, r);
  9602. e[r] = g
  9603. }
  9604. b.da === b.Ya && k.qc && k.La().xb && (h = k.La().la, h = b.fu(h, k.wK()), m = new b.K, m.Mb(h), m.Fa(), k.Wa(m), h = k.F, k.dB(E(0, 0, h.width, h.height)));
  9605. f[g] = k
  9606. }
  9607. }
  9608. }
  9609. },
  9610. RQ: function(a) {
  9611. a = a.frames;
  9612. for (var c in a) this.ke[c] && b.log(b.c.vN, c)
  9613. },
  9614. Ut: function(a, c) {
  9615. this.ke[c] = a
  9616. },
  9617. EX: function() {
  9618. this.ke = {};
  9619. this.Df = {}
  9620. },
  9621. DX: function(a) {
  9622. a && (this.Df[a] && delete this.Df[a], this.ke[a] && delete this.ke[a])
  9623. },
  9624. FX: function(a) {
  9625. var c = this.ke,
  9626. d = this.Df;
  9627. if (a = this.Ki[a]) {
  9628. a = a.frames;
  9629. for (var e in a) if (c[e]) {
  9630. delete c[e];
  9631. for (var f in d) d[f] == e && delete d[f]
  9632. }
  9633. }
  9634. },
  9635. GX: function(a) {
  9636. var c = this.ke,
  9637. d = this.Df,
  9638. e;
  9639. for (e in c) {
  9640. var f = c[e];
  9641. if (f && f.La() == a) {
  9642. delete c[e];
  9643. for (var g in d) d[g] == e && delete d[g]
  9644. }
  9645. }
  9646. },
  9647. Ye: function(a) {
  9648. var c = this.ke[a];
  9649. if (!c) {
  9650. var d = this.Df[a];
  9651. d && ((c = this.ke[d.toString()]) || delete this.Df[a])
  9652. }
  9653. c || b.log(b.c.BN, a);
  9654. return c
  9655. },
  9656. fg: function() {
  9657. this.ke = {};
  9658. this.Df = {};
  9659. this.Ki = {}
  9660. }
  9661. };
  9662. b.bu = {
  9663. $O: 0,
  9664. aQ: 1,
  9665. INT: 2,
  9666. VO: 3,
  9667. vO: 4,
  9668. il: 0,
  9669. SG: 0,
  9670. At: !1,
  9671. zt: !1,
  9672. xt: !1,
  9673. yt: !1,
  9674. Bt: !1,
  9675. kR: 0,
  9676. ss: 0,
  9677. hn: "",
  9678. Fl: {},
  9679. Pi: !1,
  9680. $n: function() {
  9681. var a = this.Fl;
  9682. a["cocos2d.x.version"] = b.oq;
  9683. a["cocos2d.x.compiled_with_profiler"] = !1;
  9684. a["cocos2d.x.compiled_with_gl_state_cache"] = b.Dv;
  9685. this.Pi = !0
  9686. },
  9687. sU: function() {
  9688. return this.il
  9689. },
  9690. rU: function() {
  9691. return this.SG
  9692. },
  9693. tU: function() {
  9694. return this.ss
  9695. },
  9696. kZ: function() {
  9697. return this.zt
  9698. },
  9699. lZ: function() {
  9700. return this.At
  9701. },
  9702. jZ: function() {
  9703. return ! 1
  9704. },
  9705. mZ: function() {
  9706. return ! 1
  9707. },
  9708. gZ: function() {
  9709. return ! 1
  9710. },
  9711. hZ: function() {
  9712. return this.xt
  9713. },
  9714. iZ: function() {
  9715. return this.yt
  9716. },
  9717. nZ: function() {
  9718. return this.Bt
  9719. },
  9720. ap: function(a) {
  9721. return - 1 < this.hn.indexOf(a)
  9722. },
  9723. dV: function(a, c) {
  9724. this.Pi || this.$n();
  9725. var d = this.Fl;
  9726. return d[a] ? d[a] : c
  9727. },
  9728. ZY: function(a, c) {
  9729. this.Fl[a] = c
  9730. },
  9731. mJ: function() {
  9732. 0 === b.Dv && (b.log(""), b.log(b.c.TI), b.log(""))
  9733. },
  9734. PJ: function() {
  9735. if (b.da !== b.Ya) {
  9736. this.Pi || this.$n();
  9737. var a = b.l,
  9738. c = this.Fl;
  9739. c["gl.vendor"] = a.getParameter(a.VENDOR);
  9740. c["gl.renderer"] = a.getParameter(a.RENDERER);
  9741. c["gl.version"] = a.getParameter(a.VERSION);
  9742. this.hn = "";
  9743. for (var d = a.getSupportedExtensions(), e = 0; e < d.length; e++) this.hn += d[e] + " ";
  9744. this.il = a.getParameter(a.MAX_TEXTURE_SIZE);
  9745. c["gl.max_texture_size"] = this.il;
  9746. this.ss = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  9747. c["gl.max_texture_units"] = this.ss;
  9748. this.At = this.ap("GL_IMG_texture_compression_pvrtc");
  9749. c["gl.supports_PVRTC"] = this.At;
  9750. this.zt = !1;
  9751. c["gl.supports_NPOT"] = this.zt;
  9752. this.xt = this.ap("GL_IMG_texture_format_BGRA888");
  9753. c["gl.supports_BGRA8888"] = this.xt;
  9754. this.yt = this.ap("GL_EXT_discard_framebuffer");
  9755. c["gl.supports_discard_framebuffer"] = this.yt;
  9756. this.Bt = this.ap("vertex_array_object");
  9757. c["gl.supports_vertex_array_object"] = this.Bt;
  9758. b.bp()
  9759. }
  9760. },
  9761. VV: function(a) {
  9762. this.Pi || this.$n();
  9763. var c = b.D.Yc(a);
  9764. if (!c) throw "Please load the resource first : " + a;
  9765. b.assert(c, b.c.VI, a);
  9766. if (c = c.data) for (var d in c) this.Fl[d] = c[d];
  9767. else b.log(b.c.UI, a)
  9768. }
  9769. };
  9770. b.p.lq = function() {
  9771. b.XO = b.oa.extend({
  9772. xZ: function() {}
  9773. });
  9774. var a = b.ha.prototype;
  9775. a.Op = function(a) {
  9776. var d = this.ab;
  9777. this.mN();
  9778. var e = this.ee,
  9779. f = e.sc.x / e.O,
  9780. g = e.sc.y / e.ma;
  9781. switch (a) {
  9782. case b.ha.qD:
  9783. b.Pu(b.Jv);
  9784. b.Ou();
  9785. e = new b.re;
  9786. b.PV(e, 0, d.width, 0, d.height, -1024, 1024);
  9787. b.Qu(e);
  9788. b.Pu(b.Iv);
  9789. b.Ou();
  9790. break;
  9791. case b.ha.Tv:
  9792. var h = this.Rl(),
  9793. k = new b.re,
  9794. e = new b.re;
  9795. b.Pu(b.Jv);
  9796. b.Ou();
  9797. b.QV(k, 60, d.width / d.height, 0.1, 2 * h);
  9798. b.Qu(k);
  9799. b.Pu(b.Iv);
  9800. b.Ou();
  9801. h = b.Vl(null, -f + d.width / 2, -g + d.height / 2, h);
  9802. d = b.Vl(null, -f + d.width / 2, -g + d.height / 2, 0);
  9803. f = b.Vl(null, 0, 1, 0);
  9804. b.qL(e, h, d, f);
  9805. b.Qu(e);
  9806. break;
  9807. case b.ha.rD:
  9808. break;
  9809. default:
  9810. b.log(b.c.kC)
  9811. }
  9812. this.kh = a;
  9813. b.I.dispatchEvent(this.Pn);
  9814. b.IY()
  9815. };
  9816. a.WA = function(a) {
  9817. var d = b.l;
  9818. a ? (d.clearDepth(1), d.enable(d.DEPTH_TEST), d.depthFunc(d.LEQUAL)) : d.disable(d.DEPTH_TEST)
  9819. };
  9820. a.fv = function(a) {
  9821. this.ab.width = b.ra.width;
  9822. this.ab.height = b.ra.height;
  9823. this.ee = a || b.view;
  9824. a = b.bu;
  9825. a.PJ();
  9826. a.mJ();
  9827. this.yi();
  9828. this.ZA();
  9829. b.I && b.I.Mp(!0)
  9830. };
  9831. a.fg = function() {
  9832. var a = b.l;
  9833. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  9834. };
  9835. a.wr = function() {
  9836. b.oL()
  9837. };
  9838. a.sr = function() {
  9839. b.nL()
  9840. };
  9841. a.yi = function() {
  9842. if (!b.Tf) this.yF();
  9843. else if (null != b.ha.rx && !1 != b.ha.rx) {
  9844. var a = new b.K;
  9845. a.Mb(b.ha.Ji);
  9846. a.Fa();
  9847. var d = b.view.su().height / 320;
  9848. 0 === d && (d = this.ab.height / 320);
  9849. var e = new b.Tf;
  9850. e.at(!0);
  9851. e.Qd("00.0", a, 12, 32, ".");
  9852. e.scale = d;
  9853. this.cd = e;
  9854. e = new b.Tf;
  9855. e.at(!0);
  9856. e.Qd("0.000", a, 12, 32, ".");
  9857. e.scale = d;
  9858. this.dd = e;
  9859. e = new b.Tf;
  9860. e.at(!0);
  9861. e.Qd("000", a, 12, 32, ".");
  9862. e.scale = d;
  9863. this.jd = e;
  9864. a = b.jq;
  9865. this.jd.Ma(a.x, 34 * d + a.y);
  9866. this.dd.Ma(a.x, 17 * d + a.y);
  9867. this.cd.Ma(a)
  9868. }
  9869. };
  9870. a.yF = function() {
  9871. var a = 0,
  9872. a = this.ab.width > this.ab.height ? 0 | this.ab.height / 320 * 24 : 0 | this.ab.width / 320 * 24;
  9873. this.cd = b.A.create("000.0", "Arial", a);
  9874. this.dd = b.A.create("0.000", "Arial", a);
  9875. this.jd = b.A.create("0000", "Arial", a);
  9876. a = b.jq;
  9877. this.jd.Ma(this.jd.width / 2 + a.x, 5 * this.jd.height / 2 + a.y);
  9878. this.dd.Ma(this.dd.width / 2 + a.x, 3 * this.dd.height / 2 + a.y);
  9879. this.cd.Ma(this.cd.width / 2 + a.x, this.cd.height / 2 + a.y)
  9880. };
  9881. a.WI = function(a) {
  9882. var d = new b.re;
  9883. b.Gv(d);
  9884. var e = new b.re;
  9885. b.OV(e, d);
  9886. var f = this.ee.su();
  9887. a = new b.Ej(2 * a.x / f.width - 1, 1 - 2 * a.y / f.height, d.Sd[14] / d.Sd[15]);
  9888. d = new b.Ej;
  9889. b.sL(d, a, e);
  9890. return C(d.x, d.y)
  9891. };
  9892. a.YI = function(a) {
  9893. var d = new b.re;
  9894. b.Gv(d);
  9895. var e = new b.Ej;
  9896. a = new b.Ej(a.x, a.y, 0);
  9897. b.sL(e, a, d);
  9898. d = this.ee.su();
  9899. return C(d.width * (0.5 * e.x + 0.5), d.height * (0.5 * -e.y + 0.5))
  9900. };
  9901. a.Pl = function() {
  9902. return this.ee.Pl()
  9903. };
  9904. a.Au = function() {
  9905. return this.ee.Au()
  9906. };
  9907. a.Rl = function() {
  9908. return this.ab.height / 1.1566
  9909. };
  9910. a.mN = function() {
  9911. var a = this.ee;
  9912. if (a) {
  9913. var d = this.ab;
  9914. a.lN( - a.sc.x / a.O, -a.sc.y / a.ma, d.width, d.height)
  9915. }
  9916. };
  9917. a.yU = function() {
  9918. return this.ee
  9919. };
  9920. a.HU = function() {
  9921. return this.kh
  9922. };
  9923. a.wM = function() {
  9924. b.Ph(b.kc, b.jc)
  9925. };
  9926. a.ZA = function() {
  9927. this.wM();
  9928. this.WA(!1);
  9929. this.Op(this.kh);
  9930. b.l.clearColor(0, 0, 0, 1)
  9931. }
  9932. };
  9933. b.We = 0;
  9934. b.Gv = function(a) {
  9935. var c = new b.re;
  9936. b.mL(b.Jv, c);
  9937. var d = new b.re;
  9938. b.mL(b.Iv, d);
  9939. b.rL(a, c, d)
  9940. };
  9941. b.ha = b.oa.extend({
  9942. iR: !1,
  9943. jl: !1,
  9944. $a: !1,
  9945. vo: !1,
  9946. ph: !1,
  9947. qn: 0,
  9948. vs: 0,
  9949. kh: 0,
  9950. mi: 0,
  9951. bh: 1,
  9952. Sk: !1,
  9953. hg: 0,
  9954. Rr: 0,
  9955. cd: null,
  9956. dd: null,
  9957. jd: null,
  9958. ab: null,
  9959. sg: null,
  9960. Ne: null,
  9961. no: null,
  9962. ee: null,
  9963. Se: null,
  9964. Ls: null,
  9965. Ib: null,
  9966. $b: 0,
  9967. Dt: 0,
  9968. Vs: 0,
  9969. WQ: null,
  9970. rd: null,
  9971. Fd: null,
  9972. Pn: null,
  9973. Nr: null,
  9974. Pr: null,
  9975. Or: null,
  9976. ctor: function() {
  9977. var a = this;
  9978. a.sg = Date.now();
  9979. b.I.Tt(b.Va.ek,
  9980. function() {
  9981. a.sg = Date.now()
  9982. })
  9983. },
  9984. ga: function() {
  9985. this.vs = this.qn = 1 / b.$I;
  9986. this.Se = [];
  9987. this.kh = b.ha.sD;
  9988. this.Ls = null;
  9989. this.Rr = this.mi = 0;
  9990. this.Sk = !1;
  9991. this.Dt = this.$b = 0;
  9992. this.sg = Date.now();
  9993. this.vo = this.$a = !1;
  9994. this.ab = D(0, 0);
  9995. this.ee = null;
  9996. this.bh = 1;
  9997. this.rd = new b.Bk;
  9998. this.Fd = b.pv ? new b.pv: null;
  9999. this.rd.bv(this.Fd, b.Bk.Xm, !1);
  10000. this.Nr = new b.kf(b.ha.rC);
  10001. this.Nr.setUserData(this);
  10002. this.Pr = new b.kf(b.ha.tC);
  10003. this.Pr.setUserData(this);
  10004. this.Or = new b.kf(b.ha.sC);
  10005. this.Or.setUserData(this);
  10006. this.Pn = new b.kf(b.ha.uC);
  10007. this.Pn.setUserData(this);
  10008. return ! 0
  10009. },
  10010. LI: function() {
  10011. var a = Date.now();
  10012. this.jl ? (this.hg = 0, this.jl = !1) : this.hg = (a - this.sg) / 1E3;
  10013. 0 < b.Va.Jc[b.Va.Vd.gp] && 0.2 < this.hg && (this.hg = 1 / 60);
  10014. this.sg = a
  10015. },
  10016. kJ: function() {
  10017. this.LI();
  10018. this.$a || (this.rd.update(this.hg), b.I.dispatchEvent(this.Or));
  10019. this.fg();
  10020. this.Ne && this.QM();
  10021. this.wr && this.wr();
  10022. this.Ib && (this.Ib.Ba(), b.I.dispatchEvent(this.Pr));
  10023. this.no && this.no.Ba();
  10024. this.Sk && this.NH();
  10025. this.sr && this.sr();
  10026. b.I.dispatchEvent(this.Nr);
  10027. this.Dt++;
  10028. this.Sk && this.qF()
  10029. },
  10030. wr: null,
  10031. sr: null,
  10032. end: function() {
  10033. this.vo = !0
  10034. },
  10035. QT: function() {
  10036. return this.bh
  10037. },
  10038. vU: function() {
  10039. return this.no
  10040. },
  10041. Ql: function() {
  10042. return D(this.ab)
  10043. },
  10044. gV: function() {
  10045. return D(this.ab.width * this.bh, this.ab.height * this.bh)
  10046. },
  10047. pause: function() {
  10048. this.$a || (this.vs = this.qn, this.SA(0.25), this.$a = !0)
  10049. },
  10050. $W: function() {
  10051. b.assert(this.Ib, b.c.hC);
  10052. this.Se.pop();
  10053. var a = this.Se.length;
  10054. 0 == a ? this.end() : (this.ph = !0, this.Ne = this.Se[a - 1])
  10055. },
  10056. UL: function() {
  10057. b.Fh.fg();
  10058. b.ue.fg();
  10059. b.va.fg()
  10060. },
  10061. VL: function() {
  10062. this.Ig().Tp();
  10063. b.I && b.I.Mp(!1);
  10064. this.Ib && (this.Ib.Nf(), this.Ib.vd(), this.Ib.If());
  10065. this.Ne = this.Ib = null;
  10066. this.Se.length = 0;
  10067. this.oB();
  10068. this.UL();
  10069. b.bp()
  10070. },
  10071. WL: function(a) {
  10072. b.assert(a, b.c.Bv);
  10073. this.ph = !1;
  10074. this.Se.push(a);
  10075. this.Ne = a
  10076. },
  10077. OA: function(a) {
  10078. b.assert(a, b.c.Bv);
  10079. if (this.Ib) {
  10080. var c = this.Se.length;
  10081. 0 === c ? (this.ph = !0, this.Se[c] = a) : (this.ph = !0, this.Se[c - 1] = a);
  10082. this.Ne = a
  10083. } else this.WL(a),
  10084. this.mB()
  10085. },
  10086. Oj: function() {
  10087. this.$a && (this.SA(this.vs), (this.sg = Date.now()) || b.log(b.c.jC), this.$a = !1, this.hg = 0)
  10088. },
  10089. aY: function(a) {
  10090. a != this.bh && (this.bh = a, this.yi())
  10091. },
  10092. cY: function() {},
  10093. yY: function(a) {
  10094. this.jl = a
  10095. },
  10096. QM: function() {
  10097. var a = !1,
  10098. c = !1;
  10099. b.dw && (a = this.Ib ? this.Ib instanceof b.dw: !1, c = this.Ne ? this.Ne instanceof b.dw: !1);
  10100. if (!c) {
  10101. if (c = this.Ib) c.Nf(),
  10102. c.vd();
  10103. this.ph && c && c.If()
  10104. }
  10105. this.Ib = this.Ne;
  10106. this.Ne = null;
  10107. a || null == this.Ib || (this.Ib.se(), this.Ib.Hj())
  10108. },
  10109. zY: function(a) {
  10110. this.no = a
  10111. },
  10112. VT: function() {
  10113. return this.Ls
  10114. },
  10115. fY: function(a) {
  10116. this.Ls = a
  10117. },
  10118. NH: function() {
  10119. this.$b++;
  10120. this.mi += this.hg;
  10121. this.cd && this.dd && this.jd ? (this.mi > b.fC && (this.dd.string = this.Vs.toFixed(3), this.Rr = this.$b / this.mi, this.mi = this.$b = 0, this.cd.string = this.Rr.toFixed(1), this.jd.string = (0 | b.We).toString()), this.cd.Ba(), this.dd.Ba(), this.jd.Ba()) : this.yi();
  10122. b.We = 0
  10123. },
  10124. HV: function() {
  10125. return this.ph
  10126. },
  10127. MU: function() {
  10128. return this.Ib
  10129. },
  10130. GT: function() {
  10131. return this.qn
  10132. },
  10133. xV: function() {
  10134. return this.Sk
  10135. },
  10136. DM: function(a) {
  10137. this.Sk = a
  10138. },
  10139. RU: function() {
  10140. return this.Vs
  10141. },
  10142. AV: function() {
  10143. return this.jl
  10144. },
  10145. CV: function() {
  10146. return this.$a
  10147. },
  10148. ZU: function() {
  10149. return this.Dt
  10150. },
  10151. aX: function() {
  10152. this.QL(1)
  10153. },
  10154. QL: function(a) {
  10155. b.assert(this.Ib, b.c.iC);
  10156. var c = this.Se,
  10157. d = c.length;
  10158. if (0 == d) this.end();
  10159. else if (! (a > d)) {
  10160. for (; d > a;) {
  10161. var e = c.pop();
  10162. e.running && (e.Nf(), e.vd());
  10163. e.If();
  10164. d--
  10165. }
  10166. this.Ne = c[c.length - 1];
  10167. this.ph = !1
  10168. }
  10169. },
  10170. Ig: function() {
  10171. return this.rd
  10172. },
  10173. eB: function(a) {
  10174. this.rd != a && (this.rd = a)
  10175. },
  10176. mp: function() {
  10177. return this.Fd
  10178. },
  10179. RA: function(a) {
  10180. this.Fd != a && (this.Fd = a)
  10181. },
  10182. WT: function() {
  10183. return this.hg
  10184. },
  10185. yi: null,
  10186. qF: function() {
  10187. this.Vs = (Date.now() - this.sg) / 1E3
  10188. }
  10189. });
  10190. b.ha.uC = "director_projection_changed";
  10191. b.ha.rC = "director_after_draw";
  10192. b.ha.tC = "director_after_visit";
  10193. b.ha.sC = "director_after_update";
  10194. b.lC = b.ha.extend({
  10195. wp: !1,
  10196. mB: function() {
  10197. this.jl = !0;
  10198. this.wp = !1
  10199. },
  10200. wL: function() {
  10201. this.vo ? (this.vo = !1, this.VL()) : this.wp || this.kJ()
  10202. },
  10203. oB: function() {
  10204. this.wp = !0
  10205. },
  10206. SA: function(a) {
  10207. this.qn = a;
  10208. this.wp || (this.oB(), this.mB())
  10209. }
  10210. });
  10211. b.ha.jv = null;
  10212. b.ha.xz = !0;
  10213. b.ha.Zr = function() {
  10214. b.ha.xz && (b.ha.xz = !1, b.ha.jv = new b.lC, b.ha.jv.ga());
  10215. return b.ha.jv
  10216. };
  10217. b.$I = 60;
  10218. b.ha.qD = 0;
  10219. b.ha.Tv = 1;
  10220. b.ha.rD = 3;
  10221. b.ha.sD = b.ha.Tv;
  10222. b.da === b.Ya ? (p = b.ha.prototype, p.Op = function(a) {
  10223. this.kh = a;
  10224. b.I.dispatchEvent(this.Pn)
  10225. },
  10226. p.WA = function() {},
  10227. p.fv = function(a) {
  10228. this.ab.width = b.ra.width;
  10229. this.ab.height = b.ra.height;
  10230. this.ee = a || b.view;
  10231. b.I && b.I.Mp(!0)
  10232. },
  10233. p.fg = function() {
  10234. var a = this.ee.sc;
  10235. b.l.clearRect( - a.x, a.y, a.width, -a.height)
  10236. },
  10237. p.yi = function() {
  10238. var a = 0,
  10239. a = this.ab.width > this.ab.height ? 0 | this.ab.height / 320 * 24 : 0 | this.ab.width / 320 * 24;
  10240. this.cd = b.A.create("000.0", "Arial", a);
  10241. this.dd = b.A.create("0.000", "Arial", a);
  10242. this.jd = b.A.create("0000", "Arial", a);
  10243. a = b.jq;
  10244. this.jd.Ma(this.jd.width / 2 + a.x, 5 * this.jd.height / 2 + a.y);
  10245. this.dd.Ma(this.dd.width / 2 + a.x, 3 * this.dd.height / 2 + a.y);
  10246. this.cd.Ma(this.cd.width / 2 + a.x, this.cd.height / 2 + a.y)
  10247. },
  10248. p.Pl = function() {
  10249. return this.Ql()
  10250. },
  10251. p.Au = function() {
  10252. return C(0, 0)
  10253. }) : (b.ha.Ji = new Image, b.ka(b.ha.Ji, "load",
  10254. function() {
  10255. b.ha.rx = !0
  10256. }), b.Ji && (b.ha.Ji.src = b.Ji), b.assert("function" === typeof b.p.lq, b.c.Gb, "CCDirectorWebGL.js"), b.p.lq(), delete b.p.lq);
  10257. b.bk = b.oa.extend({
  10258. Uk: null,
  10259. Vk: null,
  10260. Wk: null,
  10261. ui: null,
  10262. vi: null,
  10263. wi: null,
  10264. Cl: null,
  10265. Dl: null,
  10266. El: null,
  10267. Yb: null,
  10268. jo: null,
  10269. ctor: function() {
  10270. this.jo = new b.re;
  10271. this.restore()
  10272. },
  10273. description: function() {
  10274. return "\x3cCCCamera | center \x3d(" + this.ui + "," + this.vi + "," + this.wi + ")\x3e"
  10275. },
  10276. XA: function(a) {
  10277. this.Yb = a
  10278. },
  10279. iA: function() {
  10280. return this.Yb
  10281. },
  10282. restore: function() {
  10283. this.Uk = this.Vk = 0;
  10284. this.Wk = b.bk.Rl();
  10285. this.Cl = this.ui = this.vi = this.wi = 0;
  10286. this.Dl = 1;
  10287. this.El = 0;
  10288. b.NV(this.jo);
  10289. this.Yb = !1
  10290. },
  10291. nA: function() {
  10292. if (this.Yb) {
  10293. var a = new b.Ej,
  10294. c = new b.Ej,
  10295. d = new b.Ej;
  10296. b.Vl(a, this.Uk, this.Vk, this.Wk);
  10297. b.Vl(c, this.ui, this.vi, this.wi);
  10298. b.Vl(d, this.Cl, this.Dl, this.El);
  10299. b.qL(this.jo, a, c, d);
  10300. this.Yb = !1
  10301. }
  10302. b.Qu(this.jo)
  10303. },
  10304. lY: function(a, c, d) {
  10305. this.YA(a, c, d)
  10306. },
  10307. YA: function(a, c, d) {
  10308. this.Uk = a;
  10309. this.Vk = c;
  10310. this.Wk = d;
  10311. this.Yb = !0
  10312. },
  10313. ZX: function(a, c, d) {
  10314. this.AM(a, c, d)
  10315. },
  10316. AM: function(a, c, d) {
  10317. this.ui = a;
  10318. this.vi = c;
  10319. this.wi = d;
  10320. this.Yb = !0
  10321. },
  10322. WY: function(a, c, d) {
  10323. this.hN(a, c, d)
  10324. },
  10325. hN: function(a, c, d) {
  10326. this.Cl = a;
  10327. this.Dl = c;
  10328. this.El = d;
  10329. this.Yb = !0
  10330. },
  10331. eU: function() {
  10332. return {
  10333. x: this.Uk,
  10334. y: this.Vk,
  10335. z: this.Wk
  10336. }
  10337. },
  10338. Ez: function() {
  10339. return {
  10340. x: this.Uk,
  10341. y: this.Vk,
  10342. z: this.Wk
  10343. }
  10344. },
  10345. OT: function() {
  10346. return {
  10347. x: this.ui,
  10348. y: this.vi,
  10349. z: this.wi
  10350. }
  10351. },
  10352. Dz: function() {
  10353. return {
  10354. x: this.ui,
  10355. y: this.vi,
  10356. z: this.wi
  10357. }
  10358. },
  10359. aV: function() {
  10360. return {
  10361. x: this.Cl,
  10362. y: this.Dl,
  10363. z: this.El
  10364. }
  10365. },
  10366. GK: function() {
  10367. return {
  10368. x: this.Cl,
  10369. y: this.Dl,
  10370. z: this.El
  10371. }
  10372. },
  10373. JQ: function() {}
  10374. });
  10375. b.bk.Rl = function() {
  10376. return b.Nm
  10377. };
  10378. b.SP = b.Xm + 1;
  10379. b.qj = function(a, c) {
  10380. if (a && 0 < a.length) for (var d = 0; d < a.length; d++) if (! (a[d] instanceof c)) return b.log(b.c.qj),
  10381. !1;
  10382. return ! 0
  10383. };
  10384. b.Wc = function(a, c) {
  10385. for (var d = 0,
  10386. e = a.length; d < e; d++) if (a[d] == c) {
  10387. a.splice(d, 1);
  10388. break
  10389. }
  10390. };
  10391. b.SR = function(a, c) {
  10392. for (var d = 0,
  10393. e = c.length; d < e; d++) b.Wc(a, c[d])
  10394. };
  10395. b.RR = function(a, c, d) {
  10396. a.splice.apply(a, [d, 0].concat(c));
  10397. return a
  10398. };
  10399. b.Kv = function(a, c, d) {
  10400. this.next = null;
  10401. this.target = a;
  10402. this.TL = c;
  10403. this.paused = d;
  10404. this.zp = !1
  10405. };
  10406. b.Hv = function(a, c, d) {
  10407. this.list = a;
  10408. this.Mh = c;
  10409. this.target = d;
  10410. this.Eu = null
  10411. };
  10412. b.DC = function(a, c) {
  10413. this.gf = null;
  10414. this.target = a;
  10415. this.Uj = 0;
  10416. this.Ll = this.Kl = null;
  10417. this.paused = c;
  10418. this.Eu = null
  10419. };
  10420. b.cw = b.oa.extend({
  10421. rg: 0,
  10422. eg: null,
  10423. No: null,
  10424. Ta: 0,
  10425. wy: !1,
  10426. Vo: !1,
  10427. jj: 0,
  10428. Ps: 0,
  10429. En: 0,
  10430. pU: function() {
  10431. return this.rg
  10432. },
  10433. setInterval: function(a) {
  10434. this.rg = a
  10435. },
  10436. NT: function() {
  10437. return this.eg
  10438. },
  10439. ctor: function(a, c, d, e, f) {
  10440. this.No = a;
  10441. this.eg = c;
  10442. this.Ta = -1;
  10443. this.rg = d || 0;
  10444. this.En = f || 0;
  10445. this.Vo = 0 < this.En;
  10446. this.Ps = null == e ? b.Ak: e;
  10447. this.wy = this.Ps == b.Ak
  10448. },
  10449. Kr: function() {
  10450. if ("string" == typeof this.eg) this.No[this.eg](this.Ta);
  10451. else this.eg.call(this.No, this.Ta)
  10452. },
  10453. update: function(a) {
  10454. if ( - 1 == this.Ta) this.jj = this.Ta = 0;
  10455. else {
  10456. var c = this.No,
  10457. d = this.eg;
  10458. this.Ta += a;
  10459. this.wy && !this.Vo ? this.Ta >= this.rg && (c && d && this.Kr(), this.Ta = 0) : (this.Vo ? this.Ta >= this.En && (c && d && this.Kr(), this.Ta -= this.En, this.jj += 1, this.Vo = !1) : this.Ta >= this.rg && (c && d && this.Kr(), this.Ta = 0, this.jj += 1), this.jj > this.Ps && b.Qa.Ig().zB(c, d))
  10460. }
  10461. }
  10462. });
  10463. b.Bk = b.oa.extend({
  10464. Bl: 1,
  10465. zh: null,
  10466. qf: null,
  10467. rn: null,
  10468. pf: null,
  10469. NQ: null,
  10470. Cc: null,
  10471. Fe: !1,
  10472. Ro: !1,
  10473. ctor: function() {
  10474. this.Bl = 1;
  10475. this.zh = [[], [], []];
  10476. this.qf = {};
  10477. this.rn = [];
  10478. this.pf = {};
  10479. this.Lk = [];
  10480. this.Cc = null;
  10481. this.Ro = this.Fe = !1
  10482. },
  10483. Os: function(a) {
  10484. delete this.pf[a.target.L];
  10485. b.Wc(this.Lk, a);
  10486. a.cw = null;
  10487. a.target = null
  10488. },
  10489. ny: function(a) {
  10490. if (a = this.qf[a.target.L]) b.Wc(a.list, a.Mh),
  10491. delete this.qf[a.target.L],
  10492. b.Wc(this.rn, a),
  10493. a.Mh = null,
  10494. a.target = null
  10495. },
  10496. dy: function(a, c, d, e) {
  10497. e = new b.Kv(c, d, e);
  10498. if (a) {
  10499. for (var f = a.length - 1,
  10500. g = 0; g <= f && !(d < a[g].TL); g++);
  10501. a.splice(g, 0, e)
  10502. } else a = [],
  10503. a.push(e);
  10504. d = new b.Hv(a, e, c);
  10505. this.rn.push(d);
  10506. this.qf[c.L] = d;
  10507. return a
  10508. },
  10509. nF: function(a, c, d) {
  10510. d = new b.Kv(c, 0, d);
  10511. a.push(d);
  10512. a = new b.Hv(a, d, c);
  10513. this.rn.push(a);
  10514. this.qf[c.L] = a
  10515. },
  10516. UY: function(a) {
  10517. this.Bl = a
  10518. },
  10519. XU: function() {
  10520. return this.Bl
  10521. },
  10522. update: function(a) {
  10523. var c = this.zh,
  10524. d = this.Lk,
  10525. e, f, g;
  10526. this.Ro = !0;
  10527. 1 != this.Bl && (a *= this.Bl);
  10528. f = 0;
  10529. for (g = c.length; f < g && 0 <= f; f++) for (var h = this.zh[f], k = 0, m = h.length; k < m; k++) e = h[k],
  10530. e.paused || e.zp || e.target.update(a);
  10531. f = 0;
  10532. for (g = d.length; f < g; f++) {
  10533. e = d[f];
  10534. if (!e) break;
  10535. this.Cc = e;
  10536. this.Fe = !1;
  10537. if (!e.paused) for (e.Uj = 0; e.Uj < e.gf.length; e.Uj++) e.Kl = e.gf[e.Uj],
  10538. e.Ll = !1,
  10539. e.Kl.update(a),
  10540. e.Kl = null;
  10541. this.Fe && 0 == e.gf.length && (this.Os(e), f--)
  10542. }
  10543. f = 0;
  10544. for (g = c.length; f < g; f++) for (h = this.zh[f], k = 0, m = h.length; k < m;) {
  10545. e = h[k];
  10546. if (!e) break;
  10547. e.zp ? this.ny(e) : k++
  10548. }
  10549. this.Ro = !1;
  10550. this.Cc = null
  10551. },
  10552. qM: function(a, c, d, e, f, g) {
  10553. b.assert(c, b.c.FD);
  10554. b.assert(a, b.c.GD);
  10555. d = d || 0;
  10556. e = null == e ? b.Ak: e;
  10557. f = f || 0;
  10558. g = g || !1;
  10559. var h = this.pf[a.L];
  10560. h || (h = new b.DC(a, g), this.Lk.push(h), this.pf[a.L] = h);
  10561. if (null == h.gf) h.gf = [];
  10562. else for (var k = 0; k < h.gf.length; k++) if (g = h.gf[k], c == g.eg) {
  10563. b.log(b.c.ED, g.rg.toFixed(4), d.toFixed(4));
  10564. g.rg = d;
  10565. return
  10566. }
  10567. g = new b.cw(a, c, d, e, f);
  10568. h.gf.push(g)
  10569. },
  10570. bv: function(a, c, d) {
  10571. if (null !== a) {
  10572. var e = this.zh,
  10573. f = this.qf[a.L];
  10574. f ? f.Mh.zp = !1 : 0 == c ? this.nF(e[1], a, d) : 0 > c ? e[0] = this.dy(e[0], a, c, d) : e[2] = this.dy(e[2], a, c, d)
  10575. }
  10576. },
  10577. zB: function(a, c) {
  10578. if (null != a && null != c) {
  10579. var d = this.pf[a.L];
  10580. if (d) for (var e = d.gf,
  10581. f = 0,
  10582. g = e.length; f < g; f++) {
  10583. var h = e[f];
  10584. if (c == h.eg) {
  10585. h != d.Kl || d.Ll || (d.Ll = !0);
  10586. e.splice(f, 1);
  10587. d.Uj >= f && d.Uj--;
  10588. 0 == e.length && (this.Cc == d ? this.Fe = !0 : this.Os(d));
  10589. break
  10590. }
  10591. }
  10592. }
  10593. },
  10594. nm: function(a) {
  10595. null != a && (a = this.qf[a.L], null != a && (this.Ro ? a.Mh.zp = !0 : this.ny(a.Mh)))
  10596. },
  10597. yB: function(a) {
  10598. if (null != a) {
  10599. var c = this.pf[a.L];
  10600. if (c) {
  10601. var d = c.gf; ! c.Ll && 0 <= d.indexOf(c.Kl) && (c.Ll = !0);
  10602. d.length = 0;
  10603. this.Cc == c ? this.Fe = !0 : this.Os(c)
  10604. }
  10605. this.nm(a)
  10606. }
  10607. },
  10608. Tp: function() {
  10609. this.RN(b.Bk.Xm)
  10610. },
  10611. RN: function(a) {
  10612. for (var c = this.Lk,
  10613. d = this.zh,
  10614. e = 0,
  10615. f = c.length; e < f; e++) this.yB(c[e].target);
  10616. for (e = 2; 0 <= e; e--) if (! (1 == e && 0 < a || 0 == e && 0 <= a)) for (var c = d[e], f = 0, g = c.length; f < g; f++) this.nm(c[f].target)
  10617. },
  10618. XW: function() {
  10619. return this.IL(b.Bk.Xm)
  10620. },
  10621. IL: function() {
  10622. for (var a = [], c, d = this.Lk, e = this.zh, f = 0, g = d.length; f < g; f++) if (c = d[f]) c.paused = !0,
  10623. a.push(c.target);
  10624. f = 0;
  10625. for (g = e.length; f < g; f++) for (var d = e[f], h = 0, k = d.length; h < k; h++) if (c = d[h]) c.paused = !0,
  10626. a.push(c.target);
  10627. return a
  10628. },
  10629. kM: function(a) {
  10630. if (a) for (var c = 0; c < a.length; c++) this.Qf(a[c])
  10631. },
  10632. Lj: function(a) {
  10633. b.assert(a, b.c.CD);
  10634. var c = this.pf[a.L];
  10635. c && (c.paused = !0); (a = this.qf[a.L]) && (a.Mh.paused = !0)
  10636. },
  10637. Qf: function(a) {
  10638. b.assert(a, b.c.DD);
  10639. var c = this.pf[a.L];
  10640. c && (c.paused = !1); (a = this.qf[a.L]) && (a.Mh.paused = !1)
  10641. },
  10642. JV: function(a) {
  10643. b.assert(a, b.c.BD);
  10644. return (a = this.pf[a.L]) ? a.paused: !1
  10645. }
  10646. });
  10647. b.Bk.Xm = -2147483648;
  10648. b.Pv = 2 * Math.PI;
  10649. b.Cv = b.oa.extend({
  10650. yr: [],
  10651. l: null,
  10652. ctor: function(a) {
  10653. this.l = a
  10654. },
  10655. gJ: function(a, c) {
  10656. c || (c = 1);
  10657. var d = b.view.O,
  10658. e = C(a.x * d, a.y * b.view.ma);
  10659. this.l.beginPath();
  10660. this.l.arc(e.x, -e.y, c * d, 0, 2 * Math.PI, !1);
  10661. this.l.closePath();
  10662. this.l.fill()
  10663. },
  10664. hJ: function(a, c, d) {
  10665. if (null != a) {
  10666. d || (d = 1);
  10667. c = this.l;
  10668. var e = b.view.O,
  10669. f = b.view.ma;
  10670. c.beginPath();
  10671. for (var g = 0,
  10672. h = a.length; g < h; g++) c.arc(a[g].x * e, -a[g].y * f, d * e, 0, 2 * Math.PI, !1);
  10673. c.closePath();
  10674. c.fill()
  10675. }
  10676. },
  10677. Jf: function(a, c) {
  10678. var d = this.l,
  10679. e = b.view.O,
  10680. f = b.view.ma;
  10681. d.beginPath();
  10682. d.moveTo(a.x * e, -a.y * f);
  10683. d.lineTo(c.x * e, -c.y * f);
  10684. d.closePath();
  10685. d.stroke()
  10686. },
  10687. ku: function(a, c) {
  10688. this.Jf(C(a.x, a.y), C(c.x, a.y));
  10689. this.Jf(C(c.x, a.y), C(c.x, c.y));
  10690. this.Jf(C(c.x, c.y), C(a.x, c.y));
  10691. this.Jf(C(a.x, c.y), C(a.x, a.y))
  10692. },
  10693. lJ: function(a, c, d) {
  10694. this.mu([a, C(c.x, a.y), c, C(a.x, c.y)], 4, d)
  10695. },
  10696. gc: function(a, c, d, e) {
  10697. e = e || !1;
  10698. if (null != a) {
  10699. if (3 > a.length) throw Error("Polygon's point must greater than 2");
  10700. var f = a[0];
  10701. c = this.l;
  10702. var g = b.view.O,
  10703. h = b.view.ma;
  10704. c.beginPath();
  10705. c.moveTo(f.x * g, -f.y * h);
  10706. for (var f = 1,
  10707. k = a.length; f < k; f++) c.lineTo(a[f].x * g, -a[f].y * h);
  10708. d && c.closePath();
  10709. e ? c.fill() : c.stroke()
  10710. }
  10711. },
  10712. mu: function(a, c, d) {
  10713. this.Rj(d.r, d.g, d.b, d.a);
  10714. this.gc(a, c, !0, !0)
  10715. },
  10716. hu: function(a, c, d, e, f) {
  10717. f = f || !1;
  10718. e = this.l;
  10719. var g = b.view.O,
  10720. h = b.view.ma;
  10721. e.beginPath();
  10722. e.arc(0 | a.x * g, 0 | -(a.y * h), c * g, -d, -(d - 2 * Math.PI), !1);
  10723. f && e.lineTo(0 | a.x * g, 0 | -(a.y * h));
  10724. e.stroke()
  10725. },
  10726. ju: function(a, c, d, e) {
  10727. for (var f = this.yr,
  10728. g = f.length = 0,
  10729. h = 0; h < e; h++) f.push(C(Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y)),
  10730. g += 1 / e;
  10731. f.push(C(d.x, d.y));
  10732. this.gc(f, e + 1, !1, !1)
  10733. },
  10734. iu: function(a, c, d, e, f) {
  10735. for (var g = this.yr,
  10736. h = g.length = 0,
  10737. k = 0; k < f; k++) g.push(C(Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y)),
  10738. h += 1 / f;
  10739. g.push(C(e.x, e.y));
  10740. this.gc(g, f + 1, !1, !1)
  10741. },
  10742. gu: function(a, c) {
  10743. this.Lh(a, 0.5, c)
  10744. },
  10745. Lh: function(a, c, d) {
  10746. b.l.strokeStyle = "rgba(255,255,255,1)";
  10747. var e = this.yr;
  10748. e.length = 0;
  10749. for (var f, g, h = 1 / a.length,
  10750. k = 0; k < d + 1; k++) g = k / d,
  10751. 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h),
  10752. f = b.aC(b.Fb(a, f - 1), b.Fb(a, f - 0), b.Fb(a, f + 1), b.Fb(a, f + 2), c, g),
  10753. e.push(f);
  10754. this.gc(e, d + 1, !1, !1)
  10755. },
  10756. drawImage: function(a, c, d, e, f) {
  10757. switch (arguments.length) {
  10758. case 2:
  10759. this.l.drawImage(a, c.x, -(c.y + a.height));
  10760. break;
  10761. case 3:
  10762. this.l.drawImage(a, c.x, -(c.y + d.height), d.width, d.height);
  10763. break;
  10764. case 5:
  10765. this.l.drawImage(a, c.x, c.y, d.width, d.height, e.x, -(e.y + f.height), f.width, f.height);
  10766. break;
  10767. default:
  10768. throw Error("Argument must be non-nil");
  10769. }
  10770. },
  10771. BS: function(a, c, d) {
  10772. a = a || this.l;
  10773. c *= b.view.O;
  10774. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10775. a.fillStyle = d + ",1)";
  10776. var e = c / 10;
  10777. a.beginPath();
  10778. a.moveTo( - c, c);
  10779. a.lineTo(0, e);
  10780. a.lineTo(c, c);
  10781. a.lineTo(e, 0);
  10782. a.lineTo(c, -c);
  10783. a.lineTo(0, -e);
  10784. a.lineTo( - c, -c);
  10785. a.lineTo( - e, 0);
  10786. a.lineTo( - c, c);
  10787. a.closePath();
  10788. a.fill();
  10789. var f = a.createRadialGradient(0, 0, e, 0, 0, c);
  10790. f.addColorStop(0, d + ", 1)");
  10791. f.addColorStop(0.3, d + ", 0.8)");
  10792. f.addColorStop(1, d + ", 0.0)");
  10793. a.fillStyle = f;
  10794. a.beginPath();
  10795. a.arc(0, 0, c - e, 0, b.Pv, !1);
  10796. a.closePath();
  10797. a.fill()
  10798. },
  10799. zS: function(a, c, d) {
  10800. a = a || this.l;
  10801. c *= b.view.O;
  10802. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10803. var e = a.createRadialGradient(0, 0, c / 10, 0, 0, c);
  10804. e.addColorStop(0, d + ", 1)");
  10805. e.addColorStop(0.3, d + ", 0.8)");
  10806. e.addColorStop(0.6, d + ", 0.4)");
  10807. e.addColorStop(1, d + ", 0.0)");
  10808. a.fillStyle = e;
  10809. a.beginPath();
  10810. a.arc(0, 0, c, 0, b.Pv, !1);
  10811. a.closePath();
  10812. a.fill()
  10813. },
  10814. fillText: function(a, c, d) {
  10815. this.l.fillText(a, c, -d)
  10816. },
  10817. Rj: function(a, c, d, e) {
  10818. this.l.fillStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")";
  10819. this.l.strokeStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")"
  10820. },
  10821. SM: function() {},
  10822. ev: function(a) {
  10823. this.l.lineWidth = a * b.view.O
  10824. }
  10825. });
  10826. b.oC = b.oa.extend({
  10827. l: null,
  10828. al: !1,
  10829. ib: null,
  10830. Ee: -1,
  10831. Nc: null,
  10832. Fs: -1,
  10833. Es: -1,
  10834. ctor: function(a) {
  10835. null == a && (a = b.l);
  10836. if (!a instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";
  10837. this.l = a;
  10838. this.Nc = new Float32Array([1, 1, 1, 1])
  10839. },
  10840. Lf: function() {
  10841. this.al || (this.ib = b.ff.Of(b.AD), this.Ee = this.l.getUniformLocation(this.ib.Iz(), "u_color"), this.Fs = this.l.getUniformLocation(this.ib.Iz(), "u_pointSize"), this.al = !0)
  10842. },
  10843. AS: function() {
  10844. this.al = !1
  10845. },
  10846. gJ: function(a) {
  10847. this.Lf();
  10848. var c = this.l;
  10849. this.ib.wc();
  10850. this.ib.xd();
  10851. b.tc(b.Lc);
  10852. c.uniform4fv(this.Ee, this.Nc);
  10853. this.ib.gN(this.Fs, this.Es);
  10854. var d = c.createBuffer();
  10855. c.bindBuffer(c.ARRAY_BUFFER, d);
  10856. c.bufferData(c.ARRAY_BUFFER, new Float32Array([a.x, a.y]), c.STATIC_DRAW);
  10857. c.vertexAttribPointer(b.lc, 2, c.FLOAT, !1, 0, 0);
  10858. c.drawArrays(c.POINTS, 0, 1);
  10859. c.deleteBuffer(d);
  10860. b.Ze()
  10861. },
  10862. hJ: function(a) {
  10863. if (a && 0 != a.length) {
  10864. this.Lf();
  10865. var c = this.l;
  10866. this.ib.wc();
  10867. this.ib.xd();
  10868. b.tc(b.Lc);
  10869. c.uniform4fv(this.Ee, this.Nc);
  10870. this.ib.gN(this.Fs, this.Es);
  10871. var d = c.createBuffer();
  10872. c.bindBuffer(c.ARRAY_BUFFER, d);
  10873. c.bufferData(c.ARRAY_BUFFER, this.uo(a), c.STATIC_DRAW);
  10874. c.vertexAttribPointer(b.lc, 2, c.FLOAT, !1, 0, 0);
  10875. c.drawArrays(c.POINTS, 0, a.length);
  10876. c.deleteBuffer(d);
  10877. b.Ze()
  10878. }
  10879. },
  10880. uo: function(a) {
  10881. for (var c = new Float32Array(2 * a.length), d = 0; d < a.length; d++) c[2 * d] = a[d].x,
  10882. c[2 * d + 1] = a[d].y;
  10883. return c
  10884. },
  10885. Jf: function(a, c) {
  10886. this.Lf();
  10887. var d = this.l;
  10888. this.ib.wc();
  10889. this.ib.xd();
  10890. b.tc(b.Lc);
  10891. d.uniform4fv(this.Ee, this.Nc);
  10892. var e = d.createBuffer();
  10893. d.bindBuffer(d.ARRAY_BUFFER, e);
  10894. d.bufferData(d.ARRAY_BUFFER, this.uo([a, c]), d.STATIC_DRAW);
  10895. d.vertexAttribPointer(b.lc, 2, d.FLOAT, !1, 0, 0);
  10896. d.drawArrays(d.LINES, 0, 2);
  10897. d.deleteBuffer(e);
  10898. b.Ze()
  10899. },
  10900. ku: function(a, c) {
  10901. this.Jf(C(a.x, a.y), C(c.x, a.y));
  10902. this.Jf(C(c.x, a.y), C(c.x, c.y));
  10903. this.Jf(C(c.x, c.y), C(a.x, c.y));
  10904. this.Jf(C(a.x, c.y), C(a.x, a.y))
  10905. },
  10906. lJ: function(a, c, d) {
  10907. this.mu([a, C(c.x, a.y), c, C(a.x, c.y)], 4, d)
  10908. },
  10909. gc: function(a, c, d) {
  10910. this.Lf();
  10911. c = this.l;
  10912. this.ib.wc();
  10913. this.ib.xd();
  10914. b.tc(b.Lc);
  10915. c.uniform4fv(this.Ee, this.Nc);
  10916. var e = c.createBuffer();
  10917. c.bindBuffer(c.ARRAY_BUFFER, e);
  10918. c.bufferData(c.ARRAY_BUFFER, this.uo(a), c.STATIC_DRAW);
  10919. c.vertexAttribPointer(b.lc, 2, c.FLOAT, !1, 0, 0);
  10920. d ? c.drawArrays(c.LINE_LOOP, 0, a.length) : c.drawArrays(c.LINE_STRIP, 0, a.length);
  10921. c.deleteBuffer(e);
  10922. b.Ze()
  10923. },
  10924. mu: function(a, c, d) {
  10925. this.Lf();
  10926. d && this.Rj(d.r, d.g, d.b, d.a);
  10927. c = this.l;
  10928. this.ib.wc();
  10929. this.ib.xd();
  10930. b.tc(b.Lc);
  10931. c.uniform4fv(this.Ee, this.Nc);
  10932. d = c.createBuffer();
  10933. c.bindBuffer(c.ARRAY_BUFFER, d);
  10934. c.bufferData(c.ARRAY_BUFFER, this.uo(a), c.STATIC_DRAW);
  10935. c.vertexAttribPointer(b.lc, 2, c.FLOAT, !1, 0, 0);
  10936. c.drawArrays(c.TRIANGLE_FAN, 0, a.length);
  10937. c.deleteBuffer(d);
  10938. b.Ze()
  10939. },
  10940. hu: function(a, c, d, e, f) {
  10941. this.Lf();
  10942. var g = 1;
  10943. f && g++;
  10944. var h = 2 * Math.PI / e;
  10945. if (f = new Float32Array(2 * (e + 2))) {
  10946. for (var k = 0; k <= e; k++) {
  10947. var m = k * h,
  10948. n = c * Math.sin(m + d) + a.y;
  10949. f[2 * k] = c * Math.cos(m + d) + a.x;
  10950. f[2 * k + 1] = n
  10951. }
  10952. f[2 * (e + 1)] = a.x;
  10953. f[2 * (e + 1) + 1] = a.y;
  10954. a = this.l;
  10955. this.ib.wc();
  10956. this.ib.xd();
  10957. b.tc(b.Lc);
  10958. a.uniform4fv(this.Ee, this.Nc);
  10959. c = a.createBuffer();
  10960. a.bindBuffer(a.ARRAY_BUFFER, c);
  10961. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10962. a.vertexAttribPointer(b.lc, 2, a.FLOAT, !1, 0, 0);
  10963. a.drawArrays(a.LINE_STRIP, 0, e + g);
  10964. a.deleteBuffer(c);
  10965. b.Ze()
  10966. }
  10967. },
  10968. ju: function(a, c, d, e) {
  10969. this.Lf();
  10970. for (var f = new Float32Array(2 * (e + 1)), g = 0, h = 0; h < e; h++) f[2 * h] = Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x,
  10971. f[2 * h + 1] = Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y,
  10972. g += 1 / e;
  10973. f[2 * e] = d.x;
  10974. f[2 * e + 1] = d.y;
  10975. a = this.l;
  10976. this.ib.wc();
  10977. this.ib.xd();
  10978. b.tc(b.Lc);
  10979. a.uniform4fv(this.Ee, this.Nc);
  10980. c = a.createBuffer();
  10981. a.bindBuffer(a.ARRAY_BUFFER, c);
  10982. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10983. a.vertexAttribPointer(b.lc, 2, a.FLOAT, !1, 0, 0);
  10984. a.drawArrays(a.LINE_STRIP, 0, e + 1);
  10985. a.deleteBuffer(c);
  10986. b.Ze()
  10987. },
  10988. iu: function(a, c, d, e, f) {
  10989. this.Lf();
  10990. for (var g = new Float32Array(2 * (f + 1)), h = 0, k = 0; k < f; k++) g[2 * k] = Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x,
  10991. g[2 * k + 1] = Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y,
  10992. h += 1 / f;
  10993. g[2 * f] = e.x;
  10994. g[2 * f + 1] = e.y;
  10995. a = this.l;
  10996. this.ib.wc();
  10997. this.ib.xd();
  10998. b.tc(b.Lc);
  10999. a.uniform4fv(this.Ee, this.Nc);
  11000. c = a.createBuffer();
  11001. a.bindBuffer(a.ARRAY_BUFFER, c);
  11002. a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW);
  11003. a.vertexAttribPointer(b.lc, 2, a.FLOAT, !1, 0, 0);
  11004. a.drawArrays(a.LINE_STRIP, 0, f + 1);
  11005. a.deleteBuffer(c);
  11006. b.Ze()
  11007. },
  11008. gu: function(a, c) {
  11009. this.Lh(a, 0.5, c)
  11010. },
  11011. Lh: function(a, c, d) {
  11012. this.Lf();
  11013. for (var e = new Float32Array(2 * (d + 1)), f, g, h = 1 / a.length, k = 0; k < d + 1; k++) g = k / d,
  11014. 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h),
  11015. f = b.aC(b.Fb(a, f - 1), b.Fb(a, f), b.Fb(a, f + 1), b.Fb(a, f + 2), c, g),
  11016. e[2 * k] = f.x,
  11017. e[2 * k + 1] = f.y;
  11018. a = this.l;
  11019. this.ib.wc();
  11020. this.ib.xd();
  11021. b.tc(b.Lc);
  11022. a.uniform4fv(this.Ee, this.Nc);
  11023. c = a.createBuffer();
  11024. a.bindBuffer(a.ARRAY_BUFFER, c);
  11025. a.bufferData(a.ARRAY_BUFFER, e, a.STATIC_DRAW);
  11026. a.vertexAttribPointer(b.lc, 2, a.FLOAT, !1, 0, 0);
  11027. a.drawArrays(a.LINE_STRIP, 0, d + 1);
  11028. a.deleteBuffer(c);
  11029. b.Ze()
  11030. },
  11031. Rj: function(a, c, d, e) {
  11032. this.Nc[0] = a / 255;
  11033. this.Nc[1] = c / 255;
  11034. this.Nc[2] = d / 255;
  11035. this.Nc[3] = e / 255
  11036. },
  11037. SM: function(a) {
  11038. this.Es = a * b.Ka()
  11039. },
  11040. ev: function(a) {
  11041. this.l.lineWidth && this.l.lineWidth(a)
  11042. }
  11043. });
  11044. b.p.hr = function() {
  11045. var a = b.A.prototype;
  11046. a.V = b.B.prototype.V;
  11047. a.Uc = function() {
  11048. this.ua = !0;
  11049. var a = this.sh,
  11050. d = this.uh;
  11051. this.Do = "rgba(128,128,128," + this.Cf + ")";
  11052. this.Rn = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)";
  11053. this.Io = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + ", 1)"
  11054. };
  11055. a.sb = b.B.prototype.sb;
  11056. a.Ga = b.B.prototype.Ga;
  11057. a.kb = b.B.prototype.kb;
  11058. a.Hu = function(a, d) {
  11059. if (!b.B.prototype.ga.call(this)) return ! 1;
  11060. this.shaderProgram = b.ff.Of(b.A.cF);
  11061. this.Jt(d, !1);
  11062. this.string = a;
  11063. return ! 0
  11064. };
  11065. a.Np = function(a) {
  11066. var d = this.uh;
  11067. if (d.r != a.r || d.g != a.g || d.b != a.b) d.r = a.r,
  11068. d.g = a.g,
  11069. d.b = a.b,
  11070. this.Uc(),
  11071. this.ua = !0
  11072. };
  11073. a.na = function(a) {
  11074. if (this.Ja && "" != this.Ja) {
  11075. a = a || b.l;
  11076. var d = this.ea;
  11077. d && d.xb && (this.Jb.wc(), this.Jb.xd(), b.Ph(this.t.src, this.t.Y), b.qe(d), b.tc(b.gn), a.bindBuffer(a.ARRAY_BUFFER, this.wo), this.Dc && (a.bufferData(a.ARRAY_BUFFER, this.Pa.Xo, a.STATIC_DRAW), this.Dc = !1), a.vertexAttribPointer(b.lc, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.Dk, 2, a.FLOAT, !1, 24, 16), a.vertexAttribPointer(b.Ck, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4));
  11078. if (1 === b.Uf) a = this.Pa,
  11079. b.Hd.gc([C(a.ya.e.x, a.ya.e.y), C(a.wa.e.x, a.wa.e.y), C(a.xa.e.x, a.xa.e.y), C(a.za.e.x, a.za.e.y)], 4, !0);
  11080. else if (2 === b.Uf) {
  11081. a = this.Pz();
  11082. var d = this.offsetX,
  11083. e = this.offsetY;
  11084. b.Hd.gc([C(d, e), C(d + a.width, e), C(d + a.width, e + a.height), C(d, e + a.height)], 4, !0)
  11085. }
  11086. b.We++
  11087. }
  11088. };
  11089. a.Ha = b.B.prototype.Ha
  11090. };
  11091. b.p.Hq = function() {
  11092. var a = b.A.prototype;
  11093. b.k(a, "color", a.Nh, a.V);
  11094. b.k(a, "opacity", a.wj, a.Ga);
  11095. b.k(a, "string", a.Nl, a.ic);
  11096. b.k(a, "textAlign", a.eK, a.LM);
  11097. b.k(a, "verticalAlign", a.KK, a.kN);
  11098. b.k(a, "fontSize", a.bK, a.JM);
  11099. b.k(a, "fontName", a.aK, a.IM);
  11100. b.k(a, "font", a.$F, a.zH);
  11101. b.k(a, "boundingWidth", a.Xr, a.vH);
  11102. b.k(a, "boundingHeight", a.YF, a.uH);
  11103. b.k(a, "fillStyle", a.ZF, a.Np);
  11104. b.k(a, "strokeStyle", a.sG, a.LH);
  11105. b.k(a, "lineWidth", a.fG, a.BH);
  11106. b.k(a, "shadowOffsetX", a.oG, a.FH);
  11107. b.k(a, "shadowOffsetY", a.pG, a.GH);
  11108. b.k(a, "shadowOpacity", a.qG, a.HH);
  11109. b.k(a, "shadowBlur", a.nG, a.EH)
  11110. };
  11111. b.A = b.B.extend({
  11112. Za: null,
  11113. qg: b.Yg,
  11114. Cg: b.Ek,
  11115. nc: null,
  11116. Zb: 0,
  11117. Ja: "",
  11118. zs: null,
  11119. Si: !1,
  11120. ae: null,
  11121. Kb: !1,
  11122. Rb: null,
  11123. Cf: 0,
  11124. wg: 0,
  11125. Do: null,
  11126. Nd: !1,
  11127. sh: null,
  11128. Ef: 0,
  11129. Io: null,
  11130. uh: null,
  11131. Rn: null,
  11132. ut: 0,
  11133. vt: 0,
  11134. ua: !1,
  11135. fo: null,
  11136. ho: null,
  11137. Nx: null,
  11138. Mc: "LabelTTF",
  11139. ctor: function(a, c, d, e, f, g) {
  11140. b.B.prototype.ctor.call(this);
  11141. this.Za = D(0, 0);
  11142. this.qg = b.cn;
  11143. this.Cg = b.Ek;
  11144. this.Da = !1;
  11145. this.ae = "";
  11146. this.nc = "Arial";
  11147. this.Kb = this.Si = !1;
  11148. this.Rb = C(0, 0);
  11149. this.wg = this.Cf = 0;
  11150. this.Do = "rgba(128, 128, 128, 0.5)";
  11151. this.Nd = !1;
  11152. this.sh = b.color(255, 255, 255, 255);
  11153. this.Ef = 0;
  11154. this.Io = "";
  11155. this.uh = b.color(255, 255, 255, 255);
  11156. this.Rn = "rgba(255,255,255,1)";
  11157. this.vt = this.ut = 0;
  11158. this.ua = !1;
  11159. this.Nx = [];
  11160. this.Uc();
  11161. c && c instanceof b.Fv ? this.Hu(a, c) : b.A.prototype.Qd.call(this, a, c, d, e, f, g)
  11162. },
  11163. ga: function() {
  11164. return this.Qd(" ", this.nc, this.Zb)
  11165. },
  11166. TG: function() {
  11167. this.$r().font = this.ae
  11168. },
  11169. Vi: function(a) {
  11170. return this.$r().measureText(a).width
  11171. },
  11172. description: function() {
  11173. return "\x3ccc.LabelTTF | FontName \x3d" + this.nc + " FontSize \x3d " + this.Zb.toFixed(1) + "\x3e"
  11174. },
  11175. V: null,
  11176. Uc: null,
  11177. sb: null,
  11178. Ga: null,
  11179. kb: null,
  11180. wZ: function(a) {
  11181. b.m.prototype.kb.call(this, a);
  11182. this.Uc()
  11183. },
  11184. Nl: function() {
  11185. return this.Ja
  11186. },
  11187. eK: function() {
  11188. return this.qg
  11189. },
  11190. KK: function() {
  11191. return this.Cg
  11192. },
  11193. $T: function() {
  11194. return D(this.Za)
  11195. },
  11196. bK: function() {
  11197. return this.Zb
  11198. },
  11199. aK: function() {
  11200. return this.nc
  11201. },
  11202. Qd: function(a, c, d, e, f, g) {
  11203. a = a ? a + "": "";
  11204. d = d || 16;
  11205. e = e || D(0, d);
  11206. f = f || b.cn;
  11207. g = g || b.Ek;
  11208. this.Da = !1;
  11209. this.Za = D(e.width, e.height);
  11210. this.nc = c || "Arial";
  11211. this.qg = f;
  11212. this.Cg = g;
  11213. this.Zb = d;
  11214. this.ae = this.Zb + "px '" + c + "'";
  11215. this.He = b.A.Gk(c, this.Zb);
  11216. this.string = a;
  11217. this.Uc();
  11218. this.It();
  11219. this.ua = !1;
  11220. return ! 0
  11221. },
  11222. Hu: null,
  11223. TY: function(a) {
  11224. a && this.Jt(a, !0)
  11225. },
  11226. WU: function() {
  11227. return this.hH(!1)
  11228. },
  11229. wJ: function(a, c, d, e) {
  11230. d = d || 0.5; ! 1 === this.Kb && (this.Kb = !0);
  11231. var f = this.Rb;
  11232. if (f && f.x != a || f.Hc != c) f.x = a,
  11233. f.y = c;
  11234. this.Cf != d && (this.Cf = d);
  11235. this.Uc();
  11236. this.wg != e && (this.wg = e);
  11237. this.ua = !0
  11238. },
  11239. oG: function() {
  11240. return this.Rb.x
  11241. },
  11242. FH: function(a) { ! 1 === this.Kb && (this.Kb = !0);
  11243. this.Rb.x != a && (this.Rb.x = a, this.ua = !0)
  11244. },
  11245. pG: function() {
  11246. return this.Rb.Hc
  11247. },
  11248. GH: function(a) { ! 1 === this.Kb && (this.Kb = !0);
  11249. this.Rb.Hc != a && (this.Rb.Hc = a, this.ua = !0)
  11250. },
  11251. dR: function() {
  11252. return C(this.Rb.x, this.Rb.y)
  11253. },
  11254. tR: function(a) { ! 1 === this.Kb && (this.Kb = !0);
  11255. if (this.Rb.x != a.x || this.Rb.y != a.y) this.Rb.x = a.x,
  11256. this.Rb.y = a.y,
  11257. this.ua = !0
  11258. },
  11259. qG: function() {
  11260. return this.Cf
  11261. },
  11262. HH: function(a) { ! 1 === this.Kb && (this.Kb = !0);
  11263. this.Cf != a && (this.Cf = a, this.Uc(), this.ua = !0)
  11264. },
  11265. nG: function() {
  11266. return this.wg
  11267. },
  11268. EH: function(a) { ! 1 === this.Kb && (this.Kb = !0);
  11269. this.wg != a && (this.wg = a, this.ua = !0)
  11270. },
  11271. vS: function() {
  11272. this.Kb && (this.Kb = !1, this.ua = !0)
  11273. },
  11274. xJ: function(a, c) { ! 1 === this.Nd && (this.Nd = !0);
  11275. var d = this.sh;
  11276. if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r,
  11277. d.g = a.g,
  11278. d.b = a.b,
  11279. this.Uc();
  11280. this.Ef !== c && (this.Ef = c || 0);
  11281. this.ua = !0
  11282. },
  11283. sG: function() {
  11284. return this.sh
  11285. },
  11286. LH: function(a) { ! 1 === this.Nd && (this.Nd = !0);
  11287. var c = this.sh;
  11288. if (c.r !== a.r || c.g !== a.g || c.b !== a.b) c.r = a.r,
  11289. c.g = a.g,
  11290. c.b = a.b,
  11291. this.Uc(),
  11292. this.ua = !0
  11293. },
  11294. fG: function() {
  11295. return this.Ef
  11296. },
  11297. BH: function(a) { ! 1 === this.Nd && (this.Nd = !0);
  11298. this.Ef !== a && (this.Ef = a || 0, this.ua = !0)
  11299. },
  11300. wS: function() {
  11301. this.Nd && (this.Nd = !1, this.ua = !0)
  11302. },
  11303. Np: null,
  11304. ZF: function() {
  11305. return this.uh
  11306. },
  11307. Jt: function(a, c) {
  11308. a.AT ? (this.Za.width = a.boundingWidth, this.Za.height = a.boundingHeight) : (this.Za.width = 0, this.Za.height = 0);
  11309. this.qg = a.textAlign;
  11310. this.Cg = a.verticalAlign;
  11311. this.nc = a.fontName;
  11312. this.Zb = a.fontSize || 12;
  11313. this.ae = this.Zb + "px '" + this.nc + "'";
  11314. this.He = b.A.Gk(this.nc, this.Zb);
  11315. a.kB && this.wJ(a.shadowOffsetX, a.shadowOffsetY, a.shadowOpacity, a.shadowBlur);
  11316. a.lv && this.xJ(a.strokeStyle, a.lineWidth);
  11317. this.Np(a.fillStyle);
  11318. c && this.It()
  11319. },
  11320. hH: function(a) {
  11321. var c = new b.Fv;
  11322. a ? (c.fontSize = this.Zb, c.boundingWidth = b.Ka() * this.Za.width, c.boundingHeight = b.Ka() * this.Za.height) : (c.fontSize = this.Zb, c.boundingWidth = this.Za.width, c.boundingHeight = this.Za.height);
  11323. c.fontName = this.nc;
  11324. c.textAlign = this.qg;
  11325. c.verticalAlign = this.Cg;
  11326. if (this.Nd) {
  11327. c.lv = !0;
  11328. var d = this.sh;
  11329. c.strokeStyle = b.color(d.r, d.g, d.b);
  11330. c.lineWidth = this.Ef
  11331. } else c.lv = !1;
  11332. this.Kb ? (c.kB = !0, c.shadowBlur = this.wg, c.shadowOpacity = this.Cf, c.shadowOffsetX = (a ? b.Ka() : 1) * this.Rb.x, c.shadowOffsetY = (a ? b.Ka() : 1) * this.Rb.y) : c.Kb = !1;
  11333. a = this.uh;
  11334. c.fillStyle = b.color(a.r, a.g, a.b);
  11335. return c
  11336. },
  11337. He: 18,
  11338. ic: function(a) {
  11339. a = String(a);
  11340. this.zs != a && (this.zs = a + "", this.To(), this.ua = !0)
  11341. },
  11342. To: function() {
  11343. this.Ja = this.zs
  11344. },
  11345. LM: function(a) {
  11346. a !== this.qg && (this.qg = a, this.ua = !0)
  11347. },
  11348. kN: function(a) {
  11349. a != this.Cg && (this.Cg = a, this.ua = !0)
  11350. },
  11351. gY: function(a, c) {
  11352. var d;
  11353. void 0 === c ? (d = a.width, c = a.height) : d = a;
  11354. if (d != this.Za.width || c != this.Za.height) this.Za.width = d,
  11355. this.Za.height = c,
  11356. this.To(),
  11357. this.ua = !0
  11358. },
  11359. Xr: function() {
  11360. return this.Za.width
  11361. },
  11362. vH: function(a) {
  11363. a != this.Za.width && (this.Za.width = a, this.To(), this.ua = !0)
  11364. },
  11365. YF: function() {
  11366. return this.Za.height
  11367. },
  11368. uH: function(a) {
  11369. a != this.Za.height && (this.Za.height = a, this.To(), this.ua = !0)
  11370. },
  11371. JM: function(a) {
  11372. this.Zb !== a && (this.Zb = a, this.ae = a + "px '" + this.nc + "'", this.He = b.A.Gk(this.nc, a), this.ua = !0)
  11373. },
  11374. IM: function(a) {
  11375. this.nc && this.nc != a && (this.nc = a, this.ae = this.Zb + "px '" + a + "'", this.He = b.A.Gk(a, this.Zb), this.ua = !0)
  11376. },
  11377. $F: function() {
  11378. return this.ae
  11379. },
  11380. zH: function(a) {
  11381. var c = b.A.OF.exec(a);
  11382. c && (this.Zb = parseInt(c[1]), this.nc = c[2], this.ae = a, this.He = b.A.Gk(this.nc, this.Zb), this.ua = !0)
  11383. },
  11384. JF: function(a) {
  11385. if (a) {
  11386. var c = this.ut,
  11387. d = this.vt,
  11388. e = this.v.height - d,
  11389. f = this.Cg,
  11390. g = this.qg,
  11391. h = this.He,
  11392. k = this.Ef;
  11393. a.setTransform(1, 0, 0, 1, 0 + 0.5 * c, e + 0.5 * d);
  11394. a.font != this.ae && (a.font = this.ae);
  11395. a.fillStyle = this.Rn;
  11396. var m = d = 0,
  11397. n = this.Nd;
  11398. n && (a.lineWidth = 2 * k, a.strokeStyle = this.Io);
  11399. this.Kb && (k = this.Rb, a.shadowColor = this.Do, a.shadowOffsetX = k.x, a.shadowOffsetY = -k.y, a.shadowBlur = this.wg);
  11400. a.textBaseline = b.A.YH[f];
  11401. a.textAlign = b.A.XH[g];
  11402. c = this.v.width - c;
  11403. d = g === b.$v ? d + c: g === b.Yg ? d + c / 2 : d + 0;
  11404. if (this.Si) for (g = this.Te.length, f === b.fw ? m = h + e - h * g: f === b.VE && (m = h / 2 + (e - h * g) / 2), f = 0; f < g; f++) c = this.Te[f],
  11405. k = -e + h * f + m,
  11406. n && a.strokeText(c, d, k),
  11407. a.fillText(c, d, k);
  11408. else f !== b.fw && (m = f === b.Ek ? m - e: m - 0.5 * e),
  11409. n && a.strokeText(this.Ja, d, m),
  11410. a.fillText(this.Ja, d, m)
  11411. }
  11412. },
  11413. $r: function() {
  11414. if (this.ho) return this.ho;
  11415. if (!this.fo) {
  11416. var a = b.rb("canvas"),
  11417. c = new b.K;
  11418. c.Mb(a);
  11419. this.texture = c;
  11420. this.fo = a
  11421. }
  11422. return this.ho = this.fo.getContext("2d")
  11423. },
  11424. vF: function(a, c, d) {
  11425. var e = a[c],
  11426. f = this.Vi(e);
  11427. if (f > d && 1 < e.length) {
  11428. for (var g = d / f * e.length | 0,
  11429. h = e.substr(g), k = f - this.Vi(h), m, n = 0, r = 0; k > d && 100 > r++;) g *= d / k,
  11430. g |= 0,
  11431. h = e.substr(g),
  11432. k = f - this.Vi(h);
  11433. for (r = 0; k < d && 100 > r++;) h && (n = (m = b.A.gI.exec(h)) ? m[0].length: 1, m = h),
  11434. g += n,
  11435. h = e.substr(g),
  11436. k = f - this.Vi(h);
  11437. g -= n;
  11438. d = e.substr(0, g);
  11439. b.A.VN && b.A.WH.test(m || h) && (f = b.A.MG.exec(d), g -= f ? f[0].length: 0, m = e.substr(g), d = e.substr(0, g));
  11440. b.A.KF.test(m) && (f = b.A.LG.exec(d)) && d !== f[0] && (g -= f[0].length, m = e.substr(g), d = e.substr(0, g));
  11441. a[c] = m || h;
  11442. a.splice(c, 0, d)
  11443. }
  11444. },
  11445. Uo: function() {
  11446. var a = this.Za.width,
  11447. c, d, e = this.Nx;
  11448. e.length = 0;
  11449. this.Si = !1;
  11450. this.TG();
  11451. if (0 !== a) for (this.Te = this.Ja.split("\n"), c = 0; c < this.Te.length; c++) this.vF(this.Te, c, a);
  11452. else for (this.Te = this.Ja.split("\n"), c = 0, d = this.Te.length; c < d; c++) e.push(this.Vi(this.Te[c]));
  11453. 0 < this.Te.length && (this.Si = !0);
  11454. d = c = 0;
  11455. this.Nd && (c = d = 2 * this.Ef);
  11456. if (this.Kb) {
  11457. var f = this.Rb;
  11458. c += 2 * Math.abs(f.x);
  11459. d += 2 * Math.abs(f.y)
  11460. }
  11461. a = 0 === a ? this.Si ? D(0 | Math.max.apply(Math, e) + c, 0 | this.He * this.Te.length + d) : D(0 | this.Vi(this.Ja) + c, 0 | this.He + d) : 0 === this.Za.height ? this.Si ? D(0 | a + c, 0 | this.He * this.Te.length + d) : D(0 | a + c, 0 | this.He + d) : D(0 | a + c, 0 | this.Za.height + d);
  11462. this.wd(a);
  11463. this.ut = c;
  11464. this.vt = d;
  11465. e = this.Ab;
  11466. this.lb.x = 0.5 * c + (a.width - c) * e.x;
  11467. this.lb.y = 0.5 * d + (a.height - d) * e.y
  11468. },
  11469. ud: function() {
  11470. this.ua && this.Uo();
  11471. return b.B.prototype.ud.call(this)
  11472. },
  11473. Ie: function() {
  11474. this.ua && this.Uo();
  11475. return b.B.prototype.Ie.call(this)
  11476. },
  11477. fh: function() {
  11478. this.ua && this.Uo();
  11479. return b.B.prototype.fh.call(this)
  11480. },
  11481. It: function() {
  11482. var a = this.$r(),
  11483. c = this.fo,
  11484. d = this.v;
  11485. if (0 === this.Ja.length) return c.width = 1,
  11486. c.height = d.height || 1,
  11487. this.ea && this.ea.Fa(),
  11488. this.Ha(E(0, 0, 1, d.height)),
  11489. !0;
  11490. a.font = this.ae;
  11491. this.Uo();
  11492. var e = d.width,
  11493. d = d.height,
  11494. f = c.width == e && c.height == d;
  11495. c.width = e;
  11496. c.height = d;
  11497. f && a.clearRect(0, 0, e, d);
  11498. this.JF(a);
  11499. this.ea && this.ea.Fa();
  11500. this.Ha(E(0, 0, e, d));
  11501. return ! 0
  11502. },
  11503. Ba: function(a) {
  11504. this.Ja && "" != this.Ja && (this.ua && (this.ua = !1, this.It()), b.B.prototype.Ba.call(this, a || b.l))
  11505. },
  11506. na: null,
  11507. Dy: function(a) {
  11508. var c = this.ca ? this.textureAtlas.texture: this.ea;
  11509. if (c) {
  11510. var d = c.pixelsWidth,
  11511. e = c.pixelsHeight,
  11512. f, g = this.Pa;
  11513. this.nb ? (b.vk ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.gb && (e = f, f = a, a = e), this.hb && (e = c, c = d, d = e), g.wa.f.R = c, g.wa.f.S = f, g.xa.f.R = c, g.xa.f.S = a, g.ya.f.R = d, g.ya.f.S = f, g.za.f.R = d, g.za.f.S = a) : (b.vk ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.gb && (e = c, c = d, d = e), this.hb && (e = f, f = a, a = e), g.wa.f.R = c, g.wa.f.S = a, g.xa.f.R = d, g.xa.f.S = a, g.ya.f.R = c, g.ya.f.S = f, g.za.f.R = d, g.za.f.S = f);
  11514. this.Dc = !0
  11515. }
  11516. }
  11517. });
  11518. b.da === b.Ya ? (p = b.A.prototype, p.V = function(a) {
  11519. b.m.prototype.V.call(this, a);
  11520. this.Uc()
  11521. },
  11522. p.Uc = function() {
  11523. this.ua = !0;
  11524. var a = this.Q,
  11525. c = this.sa,
  11526. d = this.sh,
  11527. e = this.uh;
  11528. this.Do = "rgba(" + (0 | 0.5 * a.r) + "," + (0 | 0.5 * a.g) + "," + (0 | 0.5 * a.b) + "," + this.Cf + ")";
  11529. this.Rn = "rgba(" + (0 | a.r / 255 * e.r) + "," + (0 | a.g / 255 * e.g) + "," + (0 | a.b / 255 * e.b) + ", " + c / 255 + ")";
  11530. this.Io = "rgba(" + (0 | a.r / 255 * d.r) + "," + (0 | a.g / 255 * d.g) + "," + (0 | a.b / 255 * d.b) + ", " + c / 255 + ")"
  11531. },
  11532. p.sb = function(a) {
  11533. b.m.prototype.sb.call(this, a);
  11534. this.Uc()
  11535. },
  11536. p.Ga = function(a) {
  11537. this.bH !== a && (b.B.prototype.Ga.call(this, a), this.Uc(), this.ua = !0)
  11538. },
  11539. p.kb = b.B.prototype.kb, p.Hu = function(a, c) {
  11540. this.Jt(c, !1);
  11541. this.string = a;
  11542. return ! 0
  11543. },
  11544. p.Np = function(a) {
  11545. var c = this.uh;
  11546. if (c.r != a.r || c.g != a.g || c.b != a.b) c.r = a.r,
  11547. c.g = a.g,
  11548. c.b = a.b,
  11549. this.Uc(),
  11550. this.ua = !0
  11551. },
  11552. p.na = b.B.prototype.na, p.Ha = function(a, c, d) {
  11553. this.nb = c || !1;
  11554. this.wd(d || a);
  11555. this.iv(a);
  11556. c = this.ij;
  11557. c.x = a.x;
  11558. c.y = a.y;
  11559. c.width = a.width;
  11560. c.height = a.height;
  11561. c.Xj = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y);
  11562. a = this.le;
  11563. this.gb && (a.x = -a.x);
  11564. this.hb && (a.y = -a.y);
  11565. this.Oa.x = a.x + (this.v.width - this.F.width) / 2;
  11566. this.Oa.y = a.y + (this.v.height - this.F.height) / 2;
  11567. this.ca && (this.dirty = !0)
  11568. },
  11569. p = null) : (b.assert("function" === typeof b.p.hr, b.c.Gb, "LabelTTFWebGL.js"), b.p.hr(), delete b.p.hr);
  11570. b.assert("function" === typeof b.p.Hq, b.c.Gb, "LabelTTFPropertyDefine.js");
  11571. b.p.Hq();
  11572. delete b.p.Hq;
  11573. b.A.XH = ["left", "center", "right"];
  11574. b.A.YH = ["top", "middle", "bottom"];
  11575. b.A.VN = !0;
  11576. b.A.gI = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;
  11577. b.A.WH = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;
  11578. b.A.MG = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;
  11579. b.A.LG = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;
  11580. b.A.KF = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;
  11581. b.A.OF = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  11582. b.A.create = function(a, c, d, e, f, g) {
  11583. return new b.A(a, c, d, e, f, g)
  11584. };
  11585. b.A.oS = b.A.create;
  11586. b.A.cF = b.TE ? b.Wq: b.yD;
  11587. b.A.bg = b.rb("div");
  11588. b.A.bg.style.fontFamily = "Arial";
  11589. b.A.bg.style.position = "absolute";
  11590. b.A.bg.style.left = "-100px";
  11591. b.A.bg.style.top = "-100px";
  11592. b.A.bg.style.lineHeight = "normal";
  11593. document.body ? document.body.appendChild(b.A.bg) : b.ka(window, "load",
  11594. function() {
  11595. this.removeEventListener("load", arguments.callee, !1);
  11596. document.body.appendChild(b.A.bg)
  11597. },
  11598. !1);
  11599. b.A.Gk = function(a, c) {
  11600. var d = b.A.iw[a + "." + c];
  11601. if (0 < d) return d;
  11602. var e = b.A.bg;
  11603. e.innerHTML = "ajghl~!";
  11604. e.style.fontFamily = a;
  11605. e.style.fontSize = c + "px";
  11606. d = e.clientHeight;
  11607. b.A.iw[a + "." + c] = d;
  11608. e.innerHTML = "";
  11609. return d
  11610. };
  11611. b.A.iw = {};
  11612. b.CC = b.oa.extend({
  11613. jb: null,
  11614. target: null,
  11615. Dh: 0,
  11616. Xc: null,
  11617. Kh: !1,
  11618. paused: !1,
  11619. Eu: null,
  11620. ctor: function() {
  11621. this.jb = [];
  11622. this.target = null;
  11623. this.Dh = 0;
  11624. this.Xc = null;
  11625. this.paused = this.Kh = !1;
  11626. this.Eu = null
  11627. }
  11628. });
  11629. b.pv = b.oa.extend({
  11630. be: null,
  11631. oi: null,
  11632. Cc: null,
  11633. Fe: !1,
  11634. rR: function(a, c) {
  11635. for (var d = 0; d < a.length; d++) if (c == a[d].target) return a[d];
  11636. return null
  11637. },
  11638. ctor: function() {
  11639. this.be = {};
  11640. this.oi = [];
  11641. this.Cc = null;
  11642. this.Fe = !1
  11643. },
  11644. jI: function(a, c, d) {
  11645. if (!a) throw "cc.ActionManager.addAction(): action must be non-null";
  11646. if (!c) throw "cc.ActionManager.addAction(): action must be non-null";
  11647. var e = this.be[c.L];
  11648. e || (e = new b.CC, e.paused = d, e.target = c, this.be[c.L] = e, this.oi.push(e));
  11649. this.eF(e);
  11650. e.jb.push(a);
  11651. a.q(c)
  11652. },
  11653. pX: function() {
  11654. for (var a = this.oi,
  11655. c = 0; c < a.length; c++) {
  11656. var d = a[c];
  11657. d && this.DA(d.target, !0)
  11658. }
  11659. },
  11660. DA: function(a, c) {
  11661. if (null != a) {
  11662. var d = this.be[a.L];
  11663. d && ( - 1 === d.jb.indexOf(d.Xc) || d.Kh || (d.Kh = !0), d.jb.length = 0, this.Cc != d || c ? this.Hr(d) : this.Fe = !0)
  11664. }
  11665. },
  11666. CA: function(a) {
  11667. if (null != a) {
  11668. var c = this.be[a.originalTarget.L];
  11669. if (c) for (var d = 0; d < c.jb.length; d++) {
  11670. if (c.jb[d] == a) {
  11671. c.jb.splice(d, 1);
  11672. break
  11673. }
  11674. } else b.log(b.c.IB)
  11675. }
  11676. },
  11677. ZL: function(a, c) {
  11678. a == b.fi && b.log(b.c.qv);
  11679. b.assert(c, b.c.qv);
  11680. var d = this.be[c.L];
  11681. if (d) for (var e = d.jb.length,
  11682. f = 0; f < e; ++f) {
  11683. var g = d.jb[f];
  11684. if (g && g.yu() === a && g.originalTarget == c) {
  11685. this.kH(f, d);
  11686. break
  11687. }
  11688. }
  11689. },
  11690. Bz: function(a, c) {
  11691. a == b.fi && b.log(b.c.GB);
  11692. var d = this.be[c.L];
  11693. if (d) {
  11694. if (null != d.jb) for (var e = 0; e < d.jb.length; ++e) {
  11695. var f = d.jb[e];
  11696. if (f && f.yu() === a) return f
  11697. }
  11698. b.log(b.c.HB, a)
  11699. }
  11700. return null
  11701. },
  11702. BL: function(a) {
  11703. return (a = this.be[a.L]) ? a.jb ? a.jb.length: 0 : 0
  11704. },
  11705. Lj: function(a) { (a = this.be[a.L]) && (a.paused = !0)
  11706. },
  11707. Qf: function(a) { (a = this.be[a.L]) && (a.paused = !1)
  11708. },
  11709. WW: function() {
  11710. for (var a = [], c = this.oi, d = 0; d < c.length; d++) {
  11711. var e = c[d];
  11712. e && !e.paused && (e.paused = !0, a.push(e.target))
  11713. }
  11714. return a
  11715. },
  11716. kM: function(a) {
  11717. if (a) for (var c = 0; c < a.length; c++) a[c] && this.Qf(a[c])
  11718. },
  11719. bX: function() {
  11720. b.Qa.Ig().nm(this)
  11721. },
  11722. kH: function(a, c) {
  11723. c.jb[a] != c.Xc || c.Kh || (c.Kh = !0);
  11724. c.jb.splice(a, 1);
  11725. c.Dh >= a && c.Dh--;
  11726. 0 == c.jb.length && (this.Cc == c ? this.Fe = !0 : this.Hr(c))
  11727. },
  11728. Hr: function(a) {
  11729. a && (delete this.be[a.target.L], b.Wc(this.oi, a), a.jb = null, a.target = null)
  11730. },
  11731. eF: function(a) {
  11732. null == a.jb && (a.jb = [])
  11733. },
  11734. update: function(a) {
  11735. for (var c = this.oi,
  11736. d, e = 0; e < c.length; e++) {
  11737. d = this.Cc = c[e];
  11738. if (!d.paused) for (d.Dh = 0; d.Dh < d.jb.length; d.Dh++) if (d.Xc = d.jb[d.Dh], d.Xc) {
  11739. d.Kh = !1;
  11740. d.Xc.step(a * (d.Xc.ul ? d.Xc.rc: 1));
  11741. if (d.Kh) d.Xc = null;
  11742. else if (d.Xc.Rd()) {
  11743. d.Xc.stop();
  11744. var f = d.Xc;
  11745. d.Xc = null;
  11746. this.CA(f)
  11747. }
  11748. d.Xc = null
  11749. }
  11750. this.Fe && 0 === d.jb.length && this.Hr(d)
  11751. }
  11752. }
  11753. });
  11754. b.fi = -1;
  11755. b.Ob = b.oa.extend({
  11756. originalTarget: null,
  11757. target: null,
  11758. tag: b.fi,
  11759. ctor: function() {
  11760. this.target = this.originalTarget = null;
  11761. this.tag = b.fi
  11762. },
  11763. copy: function() {
  11764. b.log("copy is deprecated. Please use clone instead.");
  11765. return this.d()
  11766. },
  11767. d: function() {
  11768. var a = new b.Ob;
  11769. a.originalTarget = null;
  11770. a.target = null;
  11771. a.tag = this.tag;
  11772. return a
  11773. },
  11774. Rd: function() {
  11775. return ! 0
  11776. },
  11777. q: function(a) {
  11778. this.target = this.originalTarget = a
  11779. },
  11780. stop: function() {
  11781. this.target = null
  11782. },
  11783. step: function() {
  11784. b.log("[Action step]. override me")
  11785. },
  11786. update: function() {
  11787. b.log("[Action update]. override me")
  11788. },
  11789. UU: function() {
  11790. return this.target
  11791. },
  11792. RY: function(a) {
  11793. this.target = a
  11794. },
  11795. BU: function() {
  11796. return this.originalTarget
  11797. },
  11798. FY: function(a) {
  11799. this.originalTarget = a
  11800. },
  11801. yu: function() {
  11802. return this.tag
  11803. },
  11804. gB: function(a) {
  11805. this.tag = a
  11806. },
  11807. Zu: function() {},
  11808. Pf: function() {}
  11809. });
  11810. b.action = function() {
  11811. return new b.Ob
  11812. };
  11813. b.Ob.create = b.action;
  11814. b.lf = b.Ob.extend({
  11815. u: 0,
  11816. ctor: function() {
  11817. b.Ob.prototype.ctor.call(this);
  11818. this.u = 0
  11819. },
  11820. tu: function() {
  11821. return this.u * (this.qb || 1)
  11822. },
  11823. jY: function(a) {
  11824. this.u = a
  11825. },
  11826. reverse: function() {
  11827. b.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  11828. return null
  11829. },
  11830. d: function() {
  11831. return new b.lf
  11832. }
  11833. });
  11834. b.bn = b.Ob.extend({
  11835. rc: 0,
  11836. ta: null,
  11837. ctor: function(a, c) {
  11838. b.Ob.prototype.ctor.call(this);
  11839. this.rc = 0;
  11840. this.ta = null;
  11841. a && this.C(a, c)
  11842. },
  11843. CK: function() {
  11844. return this.rc
  11845. },
  11846. cN: function(a) {
  11847. this.rc = a
  11848. },
  11849. C: function(a, c) {
  11850. if (!a) throw "cc.Speed.initWithAction(): action must be non nil";
  11851. this.ta = a;
  11852. this.rc = c;
  11853. return ! 0
  11854. },
  11855. d: function() {
  11856. var a = new b.bn;
  11857. a.C(this.ta.d(), this.rc);
  11858. return a
  11859. },
  11860. q: function(a) {
  11861. b.Ob.prototype.q.call(this, a);
  11862. this.ta.q(a)
  11863. },
  11864. stop: function() {
  11865. this.ta.stop();
  11866. b.Ob.prototype.stop.call(this)
  11867. },
  11868. step: function(a) {
  11869. this.ta.step(a * this.rc)
  11870. },
  11871. Rd: function() {
  11872. return this.ta.Rd()
  11873. },
  11874. reverse: function() {
  11875. return b.bn.create(this.ta.reverse(), this.rc)
  11876. },
  11877. $A: function(a) {
  11878. this.ta != a && (this.ta = a)
  11879. },
  11880. uu: function() {
  11881. return this.ta
  11882. }
  11883. });
  11884. b.speed = function(a, c) {
  11885. return new b.bn(a, c)
  11886. };
  11887. b.bn.create = b.speed;
  11888. b.rq = b.Ob.extend({
  11889. Hi: null,
  11890. qi: !1,
  11891. un: !1,
  11892. Wn: null,
  11893. Xk: null,
  11894. Rh: 0,
  11895. Zh: 0,
  11896. bi: 0,
  11897. Hh: 0,
  11898. Qt: null,
  11899. ctor: function(a, c) {
  11900. b.Ob.prototype.ctor.call(this);
  11901. this.Hi = null;
  11902. this.un = this.qi = !1;
  11903. this.Xk = this.Wn = null;
  11904. this.Hh = this.bi = this.Zh = this.Rh = 0;
  11905. this.Qt = E(0, 0, 0, 0);
  11906. a && (c ? this.Cj(a, c) : this.Cj(a))
  11907. },
  11908. d: function() {
  11909. var a = new b.rq,
  11910. c = this.Qt;
  11911. a.Cj(this.Hi, new b.Uv(c.x, c.y, c.width, c.height));
  11912. return a
  11913. },
  11914. vV: function() {
  11915. return this.qi
  11916. },
  11917. XX: function(a) {
  11918. this.qi = a
  11919. },
  11920. Cj: function(a, c) {
  11921. if (!a) throw "cc.Follow.initWithAction(): followedNode must be non nil";
  11922. c = c || E(0, 0, 0, 0);
  11923. this.Hi = a;
  11924. this.Qt = c;
  11925. this.qi = !b.Ns(c);
  11926. this.un = !1;
  11927. var d = b.Qa.Ql();
  11928. this.Xk = C(d.width, d.height);
  11929. this.Wn = b.Kg(this.Xk, 0.5);
  11930. this.qi && (this.Rh = -(c.x + c.width - this.Xk.x), this.Zh = -c.x, this.bi = -c.y, this.Hh = -(c.y + c.height - this.Xk.y), this.Zh < this.Rh && (this.Zh = this.Rh = (this.Rh + this.Zh) / 2), this.bi < this.Hh && (this.bi = this.Hh = (this.bi + this.Hh) / 2), this.bi == this.Hh && this.Rh == this.Zh && (this.un = !0));
  11931. return ! 0
  11932. },
  11933. step: function() {
  11934. var a = this.Hi.x,
  11935. c = this.Hi.y,
  11936. a = this.Wn.x - a,
  11937. c = this.Wn.y - c;
  11938. this.qi ? this.un || this.target.Ma(b.cp(a, this.Rh, this.Zh), b.cp(c, this.Hh, this.bi)) : this.target.Ma(a, c)
  11939. },
  11940. Rd: function() {
  11941. return ! this.Hi.running
  11942. },
  11943. stop: function() {
  11944. this.target = null;
  11945. b.Ob.prototype.stop.call(this)
  11946. }
  11947. });
  11948. b.LJ = function(a, c) {
  11949. return new b.rq(a, c)
  11950. };
  11951. b.rq.create = b.LJ;
  11952. b.o = b.lf.extend({
  11953. Ta: 0,
  11954. Sn: !1,
  11955. Id: null,
  11956. qb: 1,
  11957. rl: !1,
  11958. Zi: !1,
  11959. rc: 1,
  11960. ul: !1,
  11961. ctor: function(a) {
  11962. this.qb = this.rc = 1;
  11963. this.rl = !1;
  11964. this.MAX_VALUE = 2;
  11965. this.ul = this.Zi = !1;
  11966. b.lf.prototype.ctor.call(this);
  11967. void 0 !== a && this.n(a)
  11968. },
  11969. bU: function() {
  11970. return this.Ta
  11971. },
  11972. n: function(a) {
  11973. this.u = 0 === a ? b.Nm: a;
  11974. this.Ta = 0;
  11975. return this.Sn = !0
  11976. },
  11977. Rd: function() {
  11978. return this.Ta >= this.u
  11979. },
  11980. M: function(a) {
  11981. a.rl = this.rl;
  11982. a.rc = this.rc;
  11983. a.qb = this.qb;
  11984. a.Id = this.Id;
  11985. a.ul = this.ul;
  11986. a.Zi = this.Zi
  11987. },
  11988. pc: function(a) {
  11989. if (this.Id) {
  11990. a.Id = [];
  11991. for (var c = 0; c < this.Id.length; c++) a.Id.push(this.Id[c].reverse())
  11992. }
  11993. },
  11994. d: function() {
  11995. var a = new b.o(this.u);
  11996. this.M(a);
  11997. return a
  11998. },
  11999. fa: function(a) {
  12000. this.Id ? this.Id.length = 0 : this.Id = [];
  12001. for (var c = 0; c < arguments.length; c++) this.Id.push(arguments[c]);
  12002. return this
  12003. },
  12004. Hb: function(a) {
  12005. var c = this.Id;
  12006. if (!c || 0 === c.length) return a;
  12007. for (var d = 0,
  12008. e = c.length; d < e; d++) a = c[d].fa(a);
  12009. return a
  12010. },
  12011. step: function(a) {
  12012. this.Sn ? (this.Sn = !1, this.Ta = 0) : this.Ta += a;
  12013. a = this.Ta / (1.192092896E-7 < this.u ? this.u: 1.192092896E-7);
  12014. a = 1 > a ? a: 1;
  12015. this.update(0 < a ? a: 0);
  12016. this.Zi && 1 < this.qb && this.Rd() && (this.rl || this.qb--, this.q(this.target), this.step(this.Ta - this.u))
  12017. },
  12018. q: function(a) {
  12019. b.Ob.prototype.q.call(this, a);
  12020. this.Ta = 0;
  12021. this.Sn = !0
  12022. },
  12023. reverse: function() {
  12024. b.log("cc.IntervalAction: reverse not implemented.");
  12025. return null
  12026. },
  12027. VX: function() {
  12028. b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  12029. },
  12030. ET: function() {
  12031. b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  12032. return 0
  12033. },
  12034. speed: function(a) {
  12035. if (0 >= a) return b.log("The speed parameter error"),
  12036. this;
  12037. this.ul = !0;
  12038. this.rc *= a;
  12039. return this
  12040. },
  12041. CK: function() {
  12042. return this.rc
  12043. },
  12044. cN: function(a) {
  12045. this.rc = a;
  12046. return this
  12047. },
  12048. repeat: function(a) {
  12049. a = Math.round(a);
  12050. if (isNaN(a) || 1 > a) return b.log("The repeat parameter error"),
  12051. this;
  12052. this.Zi = !0;
  12053. this.qb *= a;
  12054. return this
  12055. },
  12056. Yh: function() {
  12057. this.Zi = !0;
  12058. this.qb = this.MAX_VALUE;
  12059. this.rl = !0;
  12060. return this
  12061. }
  12062. });
  12063. b.iI = function(a) {
  12064. return new b.o(a)
  12065. };
  12066. b.o.create = b.iI;
  12067. b.vb = b.o.extend({
  12068. Be: null,
  12069. Ky: null,
  12070. fl: 0,
  12071. ctor: function(a) {
  12072. b.o.prototype.ctor.call(this);
  12073. this.Be = [];
  12074. var c = a instanceof Array ? a: arguments,
  12075. d = c.length - 1;
  12076. 0 <= d && null == c[d] && b.log("parameters should not be ending with null in Javascript");
  12077. if (0 <= d) {
  12078. for (var e = c[0], f = 1; f < d; f++) c[f] && (e = b.vb.nf(e, c[f]));
  12079. this.Qh(e, c[d])
  12080. }
  12081. },
  12082. Qh: function(a, c) {
  12083. if (!a || !c) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil";
  12084. this.n(a.u + c.u);
  12085. this.Be[0] = a;
  12086. this.Be[1] = c;
  12087. return ! 0
  12088. },
  12089. d: function() {
  12090. var a = new b.vb;
  12091. this.M(a);
  12092. a.Qh(this.Be[0].d(), this.Be[1].d());
  12093. return a
  12094. },
  12095. q: function(a) {
  12096. b.o.prototype.q.call(this, a);
  12097. this.Ky = this.Be[0].u / this.u;
  12098. this.fl = -1
  12099. },
  12100. stop: function() { - 1 !== this.fl && this.Be[this.fl].stop();
  12101. b.Ob.prototype.stop.call(this)
  12102. },
  12103. update: function(a) {
  12104. a = this.Hb(a);
  12105. var c = 0,
  12106. d = this.Ky,
  12107. e = this.Be,
  12108. f = this.fl;
  12109. a < d ? (a = 0 !== d ? a / d: 1, 0 === c && 1 === f && (e[1].update(0), e[1].stop())) : (c = 1, a = 1 === d ? 1 : (a - d) / (1 - d), -1 === f && (e[0].q(this.target), e[0].update(1), e[0].stop()), f || (e[0].update(1), e[0].stop()));
  12110. f === c && e[c].Rd() || (f !== c && e[c].q(this.target), e[c].update(a), this.fl = c)
  12111. },
  12112. reverse: function() {
  12113. var a = b.vb.nf(this.Be[1].reverse(), this.Be[0].reverse());
  12114. this.M(a);
  12115. this.pc(a);
  12116. return a
  12117. }
  12118. });
  12119. b.tM = function(a) {
  12120. var c = a instanceof Array ? a: arguments;
  12121. 0 < c.length && null == c[c.length - 1] && b.log("parameters should not be ending with null in Javascript");
  12122. for (var d = c[0], e = 1; e < c.length; e++) c[e] && (d = b.vb.nf(d, c[e]));
  12123. return d
  12124. };
  12125. b.vb.create = b.tM;
  12126. b.vb.nf = function(a, c) {
  12127. var d = new b.vb;
  12128. d.Qh(a, c);
  12129. return d
  12130. };
  12131. b.Qq = b.o.extend({
  12132. qb: 0,
  12133. zg: 0,
  12134. us: 0,
  12135. nw: !1,
  12136. ta: null,
  12137. ctor: function(a, c) {
  12138. b.o.prototype.ctor.call(this);
  12139. void 0 !== c && this.C(a, c)
  12140. },
  12141. C: function(a, c) {
  12142. return this.n(a.u * c) ? (this.qb = c, this.ta = a, a instanceof b.ve && (this.nw = !0, this.qb -= 1), this.zg = 0, !0) : !1
  12143. },
  12144. d: function() {
  12145. var a = new b.Qq;
  12146. this.M(a);
  12147. a.C(this.ta.d(), this.qb);
  12148. return a
  12149. },
  12150. q: function(a) {
  12151. this.zg = 0;
  12152. this.us = this.ta.u / this.u;
  12153. b.o.prototype.q.call(this, a);
  12154. this.ta.q(a)
  12155. },
  12156. stop: function() {
  12157. this.ta.stop();
  12158. b.Ob.prototype.stop.call(this)
  12159. },
  12160. update: function(a) {
  12161. a = this.Hb(a);
  12162. var c = this.ta,
  12163. d = this.u,
  12164. e = this.qb,
  12165. f = this.us;
  12166. if (a >= f) {
  12167. for (; a > f && this.zg < e;) c.update(1),
  12168. this.zg++,
  12169. c.stop(),
  12170. c.q(this.target),
  12171. this.us = f += c.u / d;
  12172. 1 <= a && this.zg < e && this.zg++;
  12173. this.nw || (this.zg === e ? (c.update(1), c.stop()) : c.update(a - (f - c.u / d)))
  12174. } else c.update(a * e % 1)
  12175. },
  12176. Rd: function() {
  12177. return this.zg == this.qb
  12178. },
  12179. reverse: function() {
  12180. var a = b.repeat(this.ta.reverse(), this.qb);
  12181. this.M(a);
  12182. this.pc(a);
  12183. return a
  12184. },
  12185. $A: function(a) {
  12186. this.ta != a && (this.ta = a)
  12187. },
  12188. uu: function() {
  12189. return this.ta
  12190. }
  12191. });
  12192. b.repeat = function(a, c) {
  12193. return new b.Qq(a, c)
  12194. };
  12195. b.Qq.create = b.repeat;
  12196. b.Rq = b.o.extend({
  12197. ta: null,
  12198. ctor: function(a) {
  12199. b.o.prototype.ctor.call(this);
  12200. this.ta = null;
  12201. a && this.C(a)
  12202. },
  12203. C: function(a) {
  12204. if (!a) throw "cc.RepeatForever.initWithAction(): action must be non null";
  12205. this.ta = a;
  12206. return ! 0
  12207. },
  12208. d: function() {
  12209. var a = new b.Rq;
  12210. this.M(a);
  12211. a.C(this.ta.d());
  12212. return a
  12213. },
  12214. q: function(a) {
  12215. b.o.prototype.q.call(this, a);
  12216. this.ta.q(a)
  12217. },
  12218. step: function(a) {
  12219. var c = this.ta;
  12220. c.step(a);
  12221. c.Rd() && (c.q(this.target), c.step(c.Ta - c.u))
  12222. },
  12223. Rd: function() {
  12224. return ! 1
  12225. },
  12226. reverse: function() {
  12227. var a = b.Yh(this.ta.reverse());
  12228. this.M(a);
  12229. this.pc(a);
  12230. return a
  12231. },
  12232. $A: function(a) {
  12233. this.ta != a && (this.ta = a)
  12234. },
  12235. uu: function() {
  12236. return this.ta
  12237. }
  12238. });
  12239. b.Yh = function(a) {
  12240. return new b.Rq(a)
  12241. };
  12242. b.Rq.create = b.Yh;
  12243. b.Xg = b.o.extend({
  12244. tf: null,
  12245. Hf: null,
  12246. ctor: function(a) {
  12247. b.o.prototype.ctor.call(this);
  12248. this.Hf = this.tf = null;
  12249. var c = a instanceof Array ? a: arguments,
  12250. d = c.length - 1;
  12251. 0 <= d && null == c[d] && b.log("parameters should not be ending with null in Javascript");
  12252. if (0 <= d) {
  12253. for (var e = c[0], f = 1; f < d; f++) c[f] && (e = b.Xg.nf(e, c[f]));
  12254. this.Qh(e, c[d])
  12255. }
  12256. },
  12257. Qh: function(a, c) {
  12258. if (!a || !c) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null";
  12259. var d = !1,
  12260. e = a.u,
  12261. f = c.u;
  12262. this.n(Math.max(e, f)) && (this.tf = a, this.Hf = c, e > f ? this.Hf = b.vb.nf(c, b.hp(e - f)) : e < f && (this.tf = b.vb.nf(a, b.hp(f - e))), d = !0);
  12263. return d
  12264. },
  12265. d: function() {
  12266. var a = new b.Xg;
  12267. this.M(a);
  12268. a.Qh(this.tf.d(), this.Hf.d());
  12269. return a
  12270. },
  12271. q: function(a) {
  12272. b.o.prototype.q.call(this, a);
  12273. this.tf.q(a);
  12274. this.Hf.q(a)
  12275. },
  12276. stop: function() {
  12277. this.tf.stop();
  12278. this.Hf.stop();
  12279. b.Ob.prototype.stop.call(this)
  12280. },
  12281. update: function(a) {
  12282. a = this.Hb(a);
  12283. this.tf && this.tf.update(a);
  12284. this.Hf && this.Hf.update(a)
  12285. },
  12286. reverse: function() {
  12287. var a = b.Xg.nf(this.tf.reverse(), this.Hf.reverse());
  12288. this.M(a);
  12289. this.pc(a);
  12290. return a
  12291. }
  12292. });
  12293. b.tN = function(a) {
  12294. var c = a instanceof Array ? a: arguments;
  12295. 0 < c.length && null == c[c.length - 1] && b.log("parameters should not be ending with null in Javascript");
  12296. for (var d = c[0], e = 1; e < c.length; e++) null != c[e] && (d = b.Xg.nf(d, c[e]));
  12297. return d
  12298. };
  12299. b.Xg.create = b.tN;
  12300. b.Xg.nf = function(a, c) {
  12301. var d = new b.Xg;
  12302. d.Qh(a, c);
  12303. return d
  12304. };
  12305. b.Uq = b.o.extend({
  12306. Jn: 0,
  12307. vl: 0,
  12308. Cw: 0,
  12309. Mr: 0,
  12310. dj: 0,
  12311. Dw: 0,
  12312. ctor: function(a, c, d) {
  12313. b.o.prototype.ctor.call(this);
  12314. void 0 !== c && this.n(a, c, d)
  12315. },
  12316. n: function(a, c, d) {
  12317. return b.o.prototype.n.call(this, a) ? (this.Jn = c || 0, this.Mr = d || this.Jn, !0) : !1
  12318. },
  12319. d: function() {
  12320. var a = new b.Uq;
  12321. this.M(a);
  12322. a.n(this.u, this.Jn, this.Mr);
  12323. return a
  12324. },
  12325. q: function(a) {
  12326. b.o.prototype.q.call(this, a);
  12327. var c = a.rotationX % 360,
  12328. d = this.Jn - c;
  12329. 180 < d && (d -= 360); - 180 > d && (d += 360);
  12330. this.vl = c;
  12331. this.Cw = d;
  12332. this.dj = a.rotationY % 360;
  12333. a = this.Mr - this.dj;
  12334. 180 < a && (a -= 360); - 180 > a && (a += 360);
  12335. this.Dw = a
  12336. },
  12337. reverse: function() {
  12338. b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  12339. },
  12340. update: function(a) {
  12341. a = this.Hb(a);
  12342. this.target && (this.target.rotationX = this.vl + this.Cw * a, this.target.rotationY = this.dj + this.Dw * a)
  12343. }
  12344. });
  12345. b.nM = function(a, c, d) {
  12346. return new b.Uq(a, c, d)
  12347. };
  12348. b.Uq.create = b.nM;
  12349. b.Tq = b.o.extend({
  12350. Zd: 0,
  12351. vl: 0,
  12352. pn: 0,
  12353. dj: 0,
  12354. ctor: function(a, c, d) {
  12355. b.o.prototype.ctor.call(this);
  12356. void 0 !== c && this.n(a, c, d)
  12357. },
  12358. n: function(a, c, d) {
  12359. return b.o.prototype.n.call(this, a) ? (this.Zd = c || 0, this.pn = d || this.Zd, !0) : !1
  12360. },
  12361. d: function() {
  12362. var a = new b.Tq;
  12363. this.M(a);
  12364. a.n(this.u, this.Zd, this.pn);
  12365. return a
  12366. },
  12367. q: function(a) {
  12368. b.o.prototype.q.call(this, a);
  12369. this.vl = a.rotationX;
  12370. this.dj = a.rotationY
  12371. },
  12372. update: function(a) {
  12373. a = this.Hb(a);
  12374. this.target && (this.target.rotationX = this.vl + this.Zd * a, this.target.rotationY = this.dj + this.pn * a)
  12375. },
  12376. reverse: function() {
  12377. var a = b.NA(this.u, -this.Zd, -this.pn);
  12378. this.M(a);
  12379. this.pc(a);
  12380. return a
  12381. }
  12382. });
  12383. b.NA = function(a, c, d) {
  12384. return new b.Tq(a, c, d)
  12385. };
  12386. b.Tq.create = b.NA;
  12387. b.ub = b.o.extend({
  12388. Pe: null,
  12389. ob: null,
  12390. yb: null,
  12391. ctor: function(a, c, d) {
  12392. b.o.prototype.ctor.call(this);
  12393. this.Pe = C(0, 0);
  12394. this.ob = C(0, 0);
  12395. this.yb = C(0, 0);
  12396. void 0 !== c && this.n(a, c, d)
  12397. },
  12398. n: function(a, c, d) {
  12399. return b.o.prototype.n.call(this, a) ? (void 0 !== c.x && (d = c.y, c = c.x), this.Pe.x = c, this.Pe.y = d, !0) : !1
  12400. },
  12401. d: function() {
  12402. var a = new b.ub;
  12403. this.M(a);
  12404. a.n(this.u, this.Pe);
  12405. return a
  12406. },
  12407. q: function(a) {
  12408. b.o.prototype.q.call(this, a);
  12409. var c = a.ja.x;
  12410. a = a.ja.y;
  12411. this.yb.x = c;
  12412. this.yb.y = a;
  12413. this.ob.x = c;
  12414. this.ob.y = a
  12415. },
  12416. update: function(a) {
  12417. a = this.Hb(a);
  12418. if (this.target) {
  12419. var c = this.Pe.x * a;
  12420. a *= this.Pe.y;
  12421. var d = this.ob;
  12422. if (b.rm) {
  12423. var e = this.target.ja.y,
  12424. f = this.yb;
  12425. d.x = d.x + this.target.ja.x - f.x;
  12426. d.y = d.y + e - f.y;
  12427. c += d.x;
  12428. a += d.y;
  12429. f.x = c;
  12430. f.y = a;
  12431. this.target.Ma(c, a)
  12432. } else this.target.Ma(d.x + c, d.y + a)
  12433. }
  12434. },
  12435. reverse: function() {
  12436. var a = b.moveBy(this.u, C( - this.Pe.x, -this.Pe.y));
  12437. this.M(a);
  12438. this.pc(a);
  12439. return a
  12440. }
  12441. });
  12442. b.moveBy = function(a, c, d) {
  12443. return new b.ub(a, c, d)
  12444. };
  12445. b.ub.create = b.moveBy;
  12446. b.wk = b.ub.extend({
  12447. kd: null,
  12448. ctor: function(a, c, d) {
  12449. b.ub.prototype.ctor.call(this);
  12450. this.kd = C(0, 0);
  12451. void 0 !== c && this.n(a, c, d)
  12452. },
  12453. n: function(a, c, d) {
  12454. return b.ub.prototype.n.call(this, a, c, d) ? (void 0 !== c.x && (d = c.y, c = c.x), this.kd.x = c, this.kd.y = d, !0) : !1
  12455. },
  12456. d: function() {
  12457. var a = new b.wk;
  12458. this.M(a);
  12459. a.n(this.u, this.kd);
  12460. return a
  12461. },
  12462. q: function(a) {
  12463. b.ub.prototype.q.call(this, a);
  12464. this.Pe.x = this.kd.x - a.ja.x;
  12465. this.Pe.y = this.kd.y - a.ja.y
  12466. }
  12467. });
  12468. b.moveTo = function(a, c, d) {
  12469. return new b.wk(a, c, d)
  12470. };
  12471. b.wk.create = b.moveTo;
  12472. b.Wg = b.o.extend({
  12473. ie: 0,
  12474. je: 0,
  12475. Fo: 0,
  12476. Go: 0,
  12477. Mn: 0,
  12478. Nn: 0,
  12479. Oc: 0,
  12480. Pc: 0,
  12481. ctor: function(a, c, d) {
  12482. b.o.prototype.ctor.call(this);
  12483. void 0 !== d && this.n(a, c, d)
  12484. },
  12485. n: function(a, c, d) {
  12486. var e = !1;
  12487. b.o.prototype.n.call(this, a) && (this.Mn = c, this.Nn = d, e = !0);
  12488. return e
  12489. },
  12490. d: function() {
  12491. var a = new b.Wg;
  12492. this.M(a);
  12493. a.n(this.u, this.Mn, this.Nn);
  12494. return a
  12495. },
  12496. q: function(a) {
  12497. b.o.prototype.q.call(this, a);
  12498. this.Fo = a.skewX % 180;
  12499. this.Oc = this.Mn - this.Fo;
  12500. 180 < this.Oc && (this.Oc -= 360); - 180 > this.Oc && (this.Oc += 360);
  12501. this.Go = a.skewY % 360;
  12502. this.Pc = this.Nn - this.Go;
  12503. 180 < this.Pc && (this.Pc -= 360); - 180 > this.Pc && (this.Pc += 360)
  12504. },
  12505. update: function(a) {
  12506. a = this.Hb(a);
  12507. this.target.skewX = this.Fo + this.Oc * a;
  12508. this.target.skewY = this.Go + this.Pc * a
  12509. }
  12510. });
  12511. b.sN = function(a, c, d) {
  12512. return new b.Wg(a, c, d)
  12513. };
  12514. b.Wg.create = b.sN;
  12515. b.Xq = b.Wg.extend({
  12516. ctor: function(a, c, d) {
  12517. b.Wg.prototype.ctor.call(this);
  12518. void 0 !== d && this.n(a, c, d)
  12519. },
  12520. n: function(a, c, d) {
  12521. var e = !1;
  12522. b.Wg.prototype.n.call(this, a, c, d) && (this.ie = c, this.je = d, e = !0);
  12523. return e
  12524. },
  12525. d: function() {
  12526. var a = new b.Xq;
  12527. this.M(a);
  12528. a.n(this.u, this.ie, this.je);
  12529. return a
  12530. },
  12531. q: function(a) {
  12532. b.Wg.prototype.q.call(this, a);
  12533. this.Oc = this.ie;
  12534. this.Pc = this.je;
  12535. this.Mn = this.Fo + this.Oc;
  12536. this.Nn = this.Go + this.Pc
  12537. },
  12538. reverse: function() {
  12539. var a = b.lB(this.u, -this.ie, -this.je);
  12540. this.M(a);
  12541. this.pc(a);
  12542. return a
  12543. }
  12544. });
  12545. b.lB = function(a, c, d) {
  12546. return new b.Xq(a, c, d)
  12547. };
  12548. b.Xq.create = b.lB;
  12549. b.Tg = b.o.extend({
  12550. ob: null,
  12551. Ge: null,
  12552. $k: 0,
  12553. el: 0,
  12554. yb: null,
  12555. ctor: function(a, c, d, e, f) {
  12556. b.o.prototype.ctor.call(this);
  12557. this.ob = C(0, 0);
  12558. this.yb = C(0, 0);
  12559. this.Ge = C(0, 0);
  12560. void 0 !== e && this.n(a, c, d, e, f)
  12561. },
  12562. n: function(a, c, d, e, f) {
  12563. return b.o.prototype.n.call(this, a) ? (void 0 === f && (f = e, e = d, d = c.y, c = c.x), this.Ge.x = c, this.Ge.y = d, this.$k = e, this.el = f, !0) : !1
  12564. },
  12565. d: function() {
  12566. var a = new b.Tg;
  12567. this.M(a);
  12568. a.n(this.u, this.Ge, this.$k, this.el);
  12569. return a
  12570. },
  12571. q: function(a) {
  12572. b.o.prototype.q.call(this, a);
  12573. var c = a.ja.x;
  12574. a = a.ja.y;
  12575. this.yb.x = c;
  12576. this.yb.y = a;
  12577. this.ob.x = c;
  12578. this.ob.y = a
  12579. },
  12580. update: function(a) {
  12581. a = this.Hb(a);
  12582. if (this.target) {
  12583. var c = a * this.el % 1,
  12584. c = 4 * this.$k * c * (1 - c),
  12585. c = c + this.Ge.y * a;
  12586. a *= this.Ge.x;
  12587. var d = this.ob;
  12588. if (b.rm) {
  12589. var e = this.target.ja.y,
  12590. f = this.yb;
  12591. d.x = d.x + this.target.ja.x - f.x;
  12592. d.y = d.y + e - f.y;
  12593. a += d.x;
  12594. c += d.y;
  12595. f.x = a;
  12596. f.y = c;
  12597. this.target.Ma(a, c)
  12598. } else this.target.Ma(d.x + a, d.y + c)
  12599. }
  12600. },
  12601. reverse: function() {
  12602. var a = b.kA(this.u, C( - this.Ge.x, -this.Ge.y), this.$k, this.el);
  12603. this.M(a);
  12604. this.pc(a);
  12605. return a
  12606. }
  12607. });
  12608. b.kA = function(a, c, d, e, f) {
  12609. return new b.Tg(a, c, d, e, f)
  12610. };
  12611. b.Tg.create = b.kA;
  12612. b.uq = b.Tg.extend({
  12613. kd: null,
  12614. ctor: function(a, c, d, e, f) {
  12615. b.Tg.prototype.ctor.call(this);
  12616. this.kd = C(0, 0);
  12617. void 0 !== e && this.n(a, c, d, e, f)
  12618. },
  12619. n: function(a, c, d, e, f) {
  12620. return b.Tg.prototype.n.call(this, a, c, d, e, f) ? (void 0 === f && (d = c.y, c = c.x), this.kd.x = c, this.kd.y = d, !0) : !1
  12621. },
  12622. q: function(a) {
  12623. b.Tg.prototype.q.call(this, a);
  12624. this.Ge.x = this.kd.x - this.ob.x;
  12625. this.Ge.y = this.kd.y - this.ob.y
  12626. },
  12627. d: function() {
  12628. var a = new b.uq;
  12629. this.M(a);
  12630. a.n(this.u, this.kd, this.$k, this.el);
  12631. return a
  12632. }
  12633. });
  12634. b.iL = function(a, c, d, e, f) {
  12635. return new b.uq(a, c, d, e, f)
  12636. };
  12637. b.uq.create = b.iL;
  12638. b.fz = function(a, c, d, e) {
  12639. return 0 * Math.pow(1 - e, 3) + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * c + Math.pow(e, 3) * d
  12640. };
  12641. b.gi = b.o.extend({
  12642. gd: null,
  12643. ob: null,
  12644. yb: null,
  12645. ctor: function(a, c) {
  12646. b.o.prototype.ctor.call(this);
  12647. this.gd = [];
  12648. this.ob = C(0, 0);
  12649. this.yb = C(0, 0);
  12650. c && this.n(a, c)
  12651. },
  12652. n: function(a, c) {
  12653. return b.o.prototype.n.call(this, a) ? (this.gd = c, !0) : !1
  12654. },
  12655. d: function() {
  12656. var a = new b.gi;
  12657. this.M(a);
  12658. for (var c = [], d = 0; d < this.gd.length; d++) {
  12659. var e = this.gd[d];
  12660. c.push(C(e.x, e.y))
  12661. }
  12662. a.n(this.u, c);
  12663. return a
  12664. },
  12665. q: function(a) {
  12666. b.o.prototype.q.call(this, a);
  12667. var c = a.ja.x;
  12668. a = a.ja.y;
  12669. this.yb.x = c;
  12670. this.yb.y = a;
  12671. this.ob.x = c;
  12672. this.ob.y = a
  12673. },
  12674. update: function(a) {
  12675. a = this.Hb(a);
  12676. if (this.target) {
  12677. var c = this.gd,
  12678. d = b.fz(c[0].x, c[1].x, c[2].x, a);
  12679. a = b.fz(c[0].y, c[1].y, c[2].y, a);
  12680. c = this.ob;
  12681. if (b.rm) {
  12682. var e = this.target.ja.y,
  12683. f = this.yb;
  12684. c.x = c.x + this.target.ja.x - f.x;
  12685. c.y = c.y + e - f.y;
  12686. d += c.x;
  12687. a += c.y;
  12688. f.x = d;
  12689. f.y = a;
  12690. this.target.Ma(d, a)
  12691. } else this.target.Ma(c.x + d, c.y + a)
  12692. }
  12693. },
  12694. reverse: function() {
  12695. var a = this.gd,
  12696. a = b.gz(this.u, [b.Jj(a[1], b.Uu(a[2])), b.Jj(a[0], b.Uu(a[2])), b.Uu(a[2])]);
  12697. this.M(a);
  12698. this.pc(a);
  12699. return a
  12700. }
  12701. });
  12702. b.gz = function(a, c) {
  12703. return new b.gi(a, c)
  12704. };
  12705. b.gi.create = b.gz;
  12706. b.bq = b.gi.extend({
  12707. Qo: null,
  12708. ctor: function(a, c) {
  12709. b.gi.prototype.ctor.call(this);
  12710. this.Qo = [];
  12711. c && this.n(a, c)
  12712. },
  12713. n: function(a, c) {
  12714. return b.o.prototype.n.call(this, a) ? (this.Qo = c, !0) : !1
  12715. },
  12716. d: function() {
  12717. var a = new b.bq;
  12718. this.M(a);
  12719. a.n(this.u, this.Qo);
  12720. return a
  12721. },
  12722. q: function(a) {
  12723. b.gi.prototype.q.call(this, a);
  12724. a = this.ob;
  12725. var c = this.Qo,
  12726. d = this.gd;
  12727. d[0] = b.uc(c[0], a);
  12728. d[1] = b.uc(c[1], a);
  12729. d[2] = b.uc(c[2], a)
  12730. }
  12731. });
  12732. b.II = function(a, c) {
  12733. return new b.bq(a, c)
  12734. };
  12735. b.bq.create = b.II;
  12736. b.Vg = b.o.extend({
  12737. O: 1,
  12738. ma: 1,
  12739. xl: 1,
  12740. yl: 1,
  12741. Di: 0,
  12742. Ei: 0,
  12743. Oc: 0,
  12744. Pc: 0,
  12745. ctor: function(a, c, d) {
  12746. b.o.prototype.ctor.call(this);
  12747. void 0 !== c && this.n(a, c, d)
  12748. },
  12749. n: function(a, c, d) {
  12750. return b.o.prototype.n.call(this, a) ? (this.Di = c, this.Ei = null != d ? d: c, !0) : !1
  12751. },
  12752. d: function() {
  12753. var a = new b.Vg;
  12754. this.M(a);
  12755. a.n(this.u, this.Di, this.Ei);
  12756. return a
  12757. },
  12758. q: function(a) {
  12759. b.o.prototype.q.call(this, a);
  12760. this.xl = a.scaleX;
  12761. this.yl = a.scaleY;
  12762. this.Oc = this.Di - this.xl;
  12763. this.Pc = this.Ei - this.yl
  12764. },
  12765. update: function(a) {
  12766. a = this.Hb(a);
  12767. this.target && (this.target.scaleX = this.xl + this.Oc * a, this.target.scaleY = this.yl + this.Pc * a)
  12768. }
  12769. });
  12770. b.pM = function(a, c, d) {
  12771. return new b.Vg(a, c, d)
  12772. };
  12773. b.Vg.create = b.pM;
  12774. b.Zm = b.Vg.extend({
  12775. q: function(a) {
  12776. b.Vg.prototype.q.call(this, a);
  12777. this.Oc = this.xl * this.Di - this.xl;
  12778. this.Pc = this.yl * this.Ei - this.yl
  12779. },
  12780. reverse: function() {
  12781. var a = b.PA(this.u, 1 / this.Di, 1 / this.Ei);
  12782. this.M(a);
  12783. this.pc(a);
  12784. return a
  12785. },
  12786. d: function() {
  12787. var a = new b.Zm;
  12788. this.M(a);
  12789. a.n(this.u, this.Di, this.Ei);
  12790. return a
  12791. }
  12792. });
  12793. b.PA = function(a, c, d) {
  12794. return new b.Zm(a, c, d)
  12795. };
  12796. b.Zm.create = b.PA;
  12797. b.cq = b.o.extend({
  12798. qb: 0,
  12799. Wx: !1,
  12800. ctor: function(a, c) {
  12801. b.o.prototype.ctor.call(this);
  12802. void 0 !== c && this.n(a, c)
  12803. },
  12804. n: function(a, c) {
  12805. return b.o.prototype.n.call(this, a) ? (this.qb = c, !0) : !1
  12806. },
  12807. d: function() {
  12808. var a = new b.cq;
  12809. this.M(a);
  12810. a.n(this.u, this.qb);
  12811. return a
  12812. },
  12813. update: function(a) {
  12814. a = this.Hb(a);
  12815. if (this.target && !this.Rd()) {
  12816. var c = 1 / this.qb;
  12817. this.target.visible = a % c > c / 2
  12818. }
  12819. },
  12820. q: function(a) {
  12821. b.o.prototype.q.call(this, a);
  12822. this.Wx = a.visible
  12823. },
  12824. stop: function() {
  12825. this.target.visible = this.Wx;
  12826. b.o.prototype.stop.call(this)
  12827. },
  12828. reverse: function() {
  12829. var a = b.blink(this.u, this.qb);
  12830. this.M(a);
  12831. this.pc(a);
  12832. return a
  12833. }
  12834. });
  12835. b.blink = function(a, c) {
  12836. return new b.cq(a, c)
  12837. };
  12838. b.cq.create = b.blink;
  12839. b.Sf = b.o.extend({
  12840. mj: 0,
  12841. Vn: 0,
  12842. ctor: function(a, c) {
  12843. b.o.prototype.ctor.call(this);
  12844. void 0 !== c && this.n(a, c)
  12845. },
  12846. n: function(a, c) {
  12847. return b.o.prototype.n.call(this, a) ? (this.mj = c, !0) : !1
  12848. },
  12849. d: function() {
  12850. var a = new b.Sf;
  12851. this.M(a);
  12852. a.n(this.u, this.mj);
  12853. return a
  12854. },
  12855. update: function(a) {
  12856. a = this.Hb(a);
  12857. var c = void 0 !== this.Vn ? this.Vn: 255;
  12858. this.target.opacity = c + (this.mj - c) * a
  12859. },
  12860. q: function(a) {
  12861. b.o.prototype.q.call(this, a);
  12862. this.Vn = a.opacity
  12863. }
  12864. });
  12865. b.IJ = function(a, c) {
  12866. return new b.Sf(a, c)
  12867. };
  12868. b.Sf.create = b.IJ;
  12869. b.Om = b.Sf.extend({
  12870. Us: null,
  12871. ctor: function(a) {
  12872. b.Sf.prototype.ctor.call(this);
  12873. a && this.n(a, 255)
  12874. },
  12875. reverse: function() {
  12876. var a = new b.Pm;
  12877. a.n(this.u, 0);
  12878. this.M(a);
  12879. this.pc(a);
  12880. return a
  12881. },
  12882. d: function() {
  12883. var a = new b.Om;
  12884. this.M(a);
  12885. a.n(this.u, this.mj);
  12886. return a
  12887. },
  12888. q: function(a) {
  12889. this.Us && (this.mj = this.Us.Vn);
  12890. b.Sf.prototype.q.call(this, a)
  12891. }
  12892. });
  12893. b.GJ = function(a) {
  12894. return new b.Om(a)
  12895. };
  12896. b.Om.create = b.GJ;
  12897. b.Pm = b.Sf.extend({
  12898. ctor: function(a) {
  12899. b.Sf.prototype.ctor.call(this);
  12900. a && this.n(a, 0)
  12901. },
  12902. reverse: function() {
  12903. var a = new b.Om;
  12904. a.Us = this;
  12905. a.n(this.u, 255);
  12906. this.M(a);
  12907. this.pc(a);
  12908. return a
  12909. },
  12910. d: function() {
  12911. var a = new b.Pm;
  12912. this.M(a);
  12913. a.n(this.u, this.mj);
  12914. return a
  12915. }
  12916. });
  12917. b.HJ = function(a) {
  12918. return new b.Pm(a)
  12919. };
  12920. b.Pm.create = b.HJ;
  12921. b.$q = b.o.extend({
  12922. Po: null,
  12923. Tr: null,
  12924. ctor: function(a, c, d, e) {
  12925. b.o.prototype.ctor.call(this);
  12926. this.Po = b.color(0, 0, 0);
  12927. this.Tr = b.color(0, 0, 0);
  12928. void 0 !== e && this.n(a, c, d, e)
  12929. },
  12930. n: function(a, c, d, e) {
  12931. return b.o.prototype.n.call(this, a) ? (this.Po = b.color(c, d, e), !0) : !1
  12932. },
  12933. d: function() {
  12934. var a = new b.$q;
  12935. this.M(a);
  12936. var c = this.Po;
  12937. a.n(this.u, c.r, c.g, c.b);
  12938. return a
  12939. },
  12940. q: function(a) {
  12941. b.o.prototype.q.call(this, a);
  12942. this.Tr = this.target.color
  12943. },
  12944. update: function(a) {
  12945. a = this.Hb(a);
  12946. var c = this.Tr,
  12947. d = this.Po;
  12948. c && (this.target.color = b.color(c.r + (d.r - c.r) * a, c.g + (d.g - c.g) * a, c.b + (d.b - c.b) * a))
  12949. }
  12950. });
  12951. b.NN = function(a, c, d, e) {
  12952. return new b.$q(a, c, d, e)
  12953. };
  12954. b.$q.create = b.NN;
  12955. b.Zq = b.o.extend({
  12956. Hn: 0,
  12957. Gn: 0,
  12958. Fn: 0,
  12959. ux: 0,
  12960. tx: 0,
  12961. sx: 0,
  12962. ctor: function(a, c, d, e) {
  12963. b.o.prototype.ctor.call(this);
  12964. void 0 !== e && this.n(a, c, d, e)
  12965. },
  12966. n: function(a, c, d, e) {
  12967. return b.o.prototype.n.call(this, a) ? (this.Hn = c, this.Gn = d, this.Fn = e, !0) : !1
  12968. },
  12969. d: function() {
  12970. var a = new b.Zq;
  12971. this.M(a);
  12972. a.n(this.u, this.Hn, this.Gn, this.Fn);
  12973. return a
  12974. },
  12975. q: function(a) {
  12976. b.o.prototype.q.call(this, a);
  12977. a = a.color;
  12978. this.ux = a.r;
  12979. this.tx = a.g;
  12980. this.sx = a.b
  12981. },
  12982. update: function(a) {
  12983. a = this.Hb(a);
  12984. this.target.color = b.color(this.ux + this.Hn * a, this.tx + this.Gn * a, this.sx + this.Fn * a)
  12985. },
  12986. reverse: function() {
  12987. var a = b.sB(this.u, -this.Hn, -this.Gn, -this.Fn);
  12988. this.M(a);
  12989. this.pc(a);
  12990. return a
  12991. }
  12992. });
  12993. b.sB = function(a, c, d, e) {
  12994. return new b.Zq(a, c, d, e)
  12995. };
  12996. b.Zq.create = b.sB;
  12997. b.Wd = b.o.extend({
  12998. update: function() {},
  12999. reverse: function() {
  13000. var a = b.hp(this.u);
  13001. this.M(a);
  13002. this.pc(a);
  13003. return a
  13004. },
  13005. d: function() {
  13006. var a = new b.Wd;
  13007. this.M(a);
  13008. a.n(this.u);
  13009. return a
  13010. }
  13011. });
  13012. b.hp = function(a) {
  13013. return new b.Wd(a)
  13014. };
  13015. b.Wd.create = b.hp;
  13016. b.Sq = b.o.extend({
  13017. uf: null,
  13018. ctor: function(a) {
  13019. b.o.prototype.ctor.call(this);
  13020. this.uf = null;
  13021. a && this.C(a)
  13022. },
  13023. C: function(a) {
  13024. if (!a) throw "cc.ReverseTime.initWithAction(): action must be non null";
  13025. if (a == this.uf) throw "cc.ReverseTime.initWithAction(): the action was already passed in.";
  13026. return b.o.prototype.n.call(this, a.u) ? (this.uf = a, !0) : !1
  13027. },
  13028. d: function() {
  13029. var a = new b.Sq;
  13030. this.M(a);
  13031. a.C(this.uf.d());
  13032. return a
  13033. },
  13034. q: function(a) {
  13035. b.o.prototype.q.call(this, a);
  13036. this.uf.q(a)
  13037. },
  13038. update: function(a) {
  13039. a = this.Hb(a);
  13040. this.uf && this.uf.update(1 - a)
  13041. },
  13042. reverse: function() {
  13043. return this.uf.d()
  13044. },
  13045. stop: function() {
  13046. this.uf.stop();
  13047. b.Ob.prototype.stop.call(this)
  13048. }
  13049. });
  13050. b.MA = function(a) {
  13051. return new b.Sq(a)
  13052. };
  13053. b.Sq.create = b.MA;
  13054. b.Zj = b.o.extend({
  13055. dg: null,
  13056. kl: 0,
  13057. ys: null,
  13058. Qn: 0,
  13059. nt: null,
  13060. ctor: function(a) {
  13061. b.o.prototype.ctor.call(this);
  13062. this.nt = [];
  13063. a && this.Wz(a)
  13064. },
  13065. np: function() {
  13066. return this.dg
  13067. },
  13068. xM: function(a) {
  13069. this.dg = a
  13070. },
  13071. Wz: function(a) {
  13072. if (!a) throw "cc.Animate.initWithAnimation(): animation must be non-NULL";
  13073. var c = a.tu();
  13074. if (this.n(c * a.sf)) {
  13075. this.kl = 0;
  13076. this.xM(a);
  13077. this.ys = null;
  13078. this.Qn = 0;
  13079. var d = this.nt,
  13080. e = d.length = 0,
  13081. f = c / a.Ue;
  13082. a = a.$b;
  13083. b.qj(a, b.Ad);
  13084. for (var g = 0; g < a.length; g++) {
  13085. var h = e * f / c,
  13086. e = e + a[g].Wb;
  13087. d.push(h)
  13088. }
  13089. return ! 0
  13090. }
  13091. return ! 1
  13092. },
  13093. d: function() {
  13094. var a = new b.Zj;
  13095. this.M(a);
  13096. a.Wz(this.dg.d());
  13097. return a
  13098. },
  13099. q: function(a) {
  13100. b.o.prototype.q.call(this, a);
  13101. this.dg.nh && (this.ys = a.cJ());
  13102. this.Qn = this.kl = 0
  13103. },
  13104. update: function(a) {
  13105. a = this.Hb(a);
  13106. 1 > a && (a *= this.dg.sf, (0 | a) > this.Qn && (this.kl = 0, this.Qn++), a %= 1);
  13107. for (var c = this.dg.$b,
  13108. d = c.length,
  13109. e = this.nt,
  13110. f = this.kl; f < d; f++) if (e[f] <= a) this.target.Pg(c[f].Ye()),
  13111. this.kl = f + 1;
  13112. else break
  13113. },
  13114. reverse: function() {
  13115. var a = this.dg,
  13116. c = a.$b,
  13117. d = [];
  13118. b.qj(c, b.Ad);
  13119. if (0 < c.length) for (var e = c.length - 1; 0 <= e; e--) {
  13120. var f = c[e];
  13121. if (!f) break;
  13122. d.push(f.d())
  13123. }
  13124. c = b.we.create(d, a.Wb, a.sf);
  13125. c.Pp(a.nh);
  13126. a = b.bz(c);
  13127. this.M(a);
  13128. this.pc(a);
  13129. return a
  13130. },
  13131. stop: function() {
  13132. this.dg.nh && this.target && this.target.Pg(this.ys);
  13133. b.Ob.prototype.stop.call(this)
  13134. }
  13135. });
  13136. b.bz = function(a) {
  13137. return new b.Zj(a)
  13138. };
  13139. b.Zj.create = b.bz;
  13140. b.Yq = b.o.extend({
  13141. Hk: null,
  13142. Ii: null,
  13143. ctor: function(a, c) {
  13144. b.o.prototype.ctor.call(this);
  13145. c && this.Cj(a, c)
  13146. },
  13147. Cj: function(a, c) {
  13148. return this.n(c.u) ? (this.Ii = a, this.Hk = c, !0) : !1
  13149. },
  13150. d: function() {
  13151. var a = new b.Yq;
  13152. this.M(a);
  13153. a.Cj(this.Ii, this.Hk.d());
  13154. return a
  13155. },
  13156. q: function(a) {
  13157. b.o.prototype.q.call(this, a);
  13158. this.Hk.q(this.Ii)
  13159. },
  13160. stop: function() {
  13161. this.Hk.stop()
  13162. },
  13163. update: function(a) {
  13164. a = this.Hb(a);
  13165. this.Hk.update(a)
  13166. },
  13167. hU: function() {
  13168. return this.Ii
  13169. },
  13170. nY: function(a) {
  13171. this.Ii != a && (this.Ii = a)
  13172. }
  13173. });
  13174. b.FN = function(a, c) {
  13175. return new b.Yq(a, c)
  13176. };
  13177. b.Yq.create = b.FN;
  13178. b.ve = b.lf.extend({
  13179. Rd: function() {
  13180. return ! 0
  13181. },
  13182. step: function() {
  13183. this.update(1)
  13184. },
  13185. update: function() {},
  13186. reverse: function() {
  13187. return this.d()
  13188. },
  13189. d: function() {
  13190. return new b.ve
  13191. }
  13192. });
  13193. b.an = b.ve.extend({
  13194. update: function() {
  13195. this.target.visible = !0
  13196. },
  13197. reverse: function() {
  13198. return b.Sm.create()
  13199. },
  13200. d: function() {
  13201. return new b.an
  13202. }
  13203. });
  13204. b.show = function() {
  13205. return new b.an
  13206. };
  13207. b.an.create = b.show;
  13208. b.Sm = b.ve.extend({
  13209. update: function() {
  13210. this.target.visible = !1
  13211. },
  13212. reverse: function() {
  13213. return b.an.create()
  13214. },
  13215. d: function() {
  13216. return new b.Sm
  13217. }
  13218. });
  13219. b.OK = function() {
  13220. return new b.Sm
  13221. };
  13222. b.Sm.create = b.OK;
  13223. b.fn = b.ve.extend({
  13224. update: function() {
  13225. this.target.visible = !this.target.visible
  13226. },
  13227. reverse: function() {
  13228. return new b.fn
  13229. },
  13230. d: function() {
  13231. return new b.fn
  13232. }
  13233. });
  13234. b.ON = function() {
  13235. return new b.fn
  13236. };
  13237. b.fn.create = b.ON;
  13238. b.Ym = b.ve.extend({
  13239. co: !0,
  13240. ctor: function(a) {
  13241. b.lf.prototype.ctor.call(this);
  13242. void 0 !== a && this.ga(a)
  13243. },
  13244. update: function() {
  13245. this.target.hc(this.co)
  13246. },
  13247. ga: function(a) {
  13248. this.co = a;
  13249. return ! 0
  13250. },
  13251. reverse: function() {
  13252. return new b.Ym(this.co)
  13253. },
  13254. d: function() {
  13255. return new b.Ym(this.co)
  13256. }
  13257. });
  13258. b.eM = function(a) {
  13259. return new b.Ym(a)
  13260. };
  13261. b.Ym.create = b.eM;
  13262. b.Qm = b.ve.extend({
  13263. gb: !1,
  13264. ctor: function(a) {
  13265. b.lf.prototype.ctor.call(this);
  13266. this.gb = !1;
  13267. void 0 !== a && this.Yz(a)
  13268. },
  13269. Yz: function(a) {
  13270. this.gb = a;
  13271. return ! 0
  13272. },
  13273. update: function() {
  13274. this.target.flippedX = this.gb
  13275. },
  13276. reverse: function() {
  13277. return b.Qm.create(!this.gb)
  13278. },
  13279. d: function() {
  13280. var a = new b.Qm;
  13281. a.Yz(this.gb);
  13282. return a
  13283. }
  13284. });
  13285. b.JJ = function(a) {
  13286. return new b.Qm(a)
  13287. };
  13288. b.Qm.create = b.JJ;
  13289. b.Rm = b.ve.extend({
  13290. hb: !1,
  13291. ctor: function(a) {
  13292. b.lf.prototype.ctor.call(this);
  13293. this.hb = !1;
  13294. void 0 !== a && this.Zz(a)
  13295. },
  13296. Zz: function(a) {
  13297. this.hb = a;
  13298. return ! 0
  13299. },
  13300. update: function() {
  13301. this.target.flippedY = this.hb
  13302. },
  13303. reverse: function() {
  13304. return b.Rm.create(!this.hb)
  13305. },
  13306. d: function() {
  13307. var a = new b.Rm;
  13308. a.Zz(this.hb);
  13309. return a
  13310. }
  13311. });
  13312. b.KJ = function(a) {
  13313. return new b.Rm(a)
  13314. };
  13315. b.Rm.create = b.KJ;
  13316. b.Eq = b.ve.extend({
  13317. me: 0,
  13318. Hc: 0,
  13319. ctor: function(a, c) {
  13320. b.lf.prototype.ctor.call(this);
  13321. this.Hc = this.me = 0;
  13322. void 0 !== a && (void 0 !== a.x && (c = a.y, a = a.x), this.bA(a, c))
  13323. },
  13324. bA: function(a, c) {
  13325. this.me = a;
  13326. this.Hc = c;
  13327. return ! 0
  13328. },
  13329. update: function() {
  13330. this.target.Ma(this.me, this.Hc)
  13331. },
  13332. d: function() {
  13333. var a = new b.Eq;
  13334. a.bA(this.me, this.Hc);
  13335. return a
  13336. }
  13337. });
  13338. b.KL = function(a, c) {
  13339. return new b.Eq(a, c)
  13340. };
  13341. b.Eq.create = b.KL;
  13342. b.Bd = b.ve.extend({
  13343. zf: null,
  13344. xn: null,
  13345. Yk: null,
  13346. Gr: null,
  13347. ctor: function(a, c, d) {
  13348. b.lf.prototype.ctor.call(this);
  13349. void 0 !== a && (void 0 === c ? this.vp(a) : this.vp(a, c, d))
  13350. },
  13351. vp: function(a, c, d) {
  13352. c ? (this.Gr = d, this.xn = a, this.zf = c) : a && (this.Yk = a);
  13353. return ! 0
  13354. },
  13355. execute: function() {
  13356. null != this.xn ? this.xn.call(this.zf, this.target, this.Gr) : this.Yk && this.Yk.call(null, this.target)
  13357. },
  13358. update: function() {
  13359. this.execute()
  13360. },
  13361. VU: function() {
  13362. return this.zf
  13363. },
  13364. SY: function(a) {
  13365. a != this.zf && (this.zf && (this.zf = null), this.zf = a)
  13366. },
  13367. d: function() {
  13368. var a = new b.Bd;
  13369. this.zf ? a.vp(this.xn, this.zf, this.Gr) : this.Yk && a.vp(this.Yk);
  13370. return a
  13371. }
  13372. });
  13373. b.MI = function(a, c, d) {
  13374. return new b.Bd(a, c, d)
  13375. };
  13376. b.Bd.create = b.MI;
  13377. b.Vp = b.o.extend({
  13378. Ar: 0,
  13379. Br: 0,
  13380. Cr: 0,
  13381. mx: 0,
  13382. nx: 0,
  13383. ox: 0,
  13384. Sy: 0,
  13385. Ty: 0,
  13386. Uy: 0,
  13387. ctor: function() {
  13388. b.o.prototype.ctor.call(this);
  13389. this.Uy = this.Ty = this.Sy = this.ox = this.nx = this.mx = this.Cr = this.Br = this.Ar = 0
  13390. },
  13391. q: function(a) {
  13392. b.o.prototype.q.call(this, a);
  13393. a = a.ru();
  13394. var c = a.Dz();
  13395. this.Ar = c.x;
  13396. this.Br = c.y;
  13397. this.Cr = c.z;
  13398. c = a.Ez();
  13399. this.mx = c.x;
  13400. this.nx = c.y;
  13401. this.ox = c.z;
  13402. a = a.GK();
  13403. this.Sy = a.x;
  13404. this.Ty = a.y;
  13405. this.Uy = a.z
  13406. },
  13407. d: function() {
  13408. return new b.Vp
  13409. },
  13410. reverse: function() {
  13411. return b.MA(this)
  13412. }
  13413. });
  13414. b.Bq = b.Vp.extend({
  13415. ql: 0,
  13416. Ir: 0,
  13417. Kk: 0,
  13418. Aw: 0,
  13419. Zd: 0,
  13420. zw: 0,
  13421. hy: 0,
  13422. fy: 0,
  13423. gy: 0,
  13424. ey: 0,
  13425. ctor: function(a, c, d, e, f, g, h) {
  13426. b.Vp.prototype.ctor.call(this);
  13427. void 0 !== h && this.n(a, c, d, e, f, g, h)
  13428. },
  13429. n: function(a, c, d, e, f, g, h) {
  13430. return b.o.prototype.n.call(this, a) ? (this.ql = c, this.Ir = d, this.Kk = e, this.Aw = f, this.Zd = g, this.zw = h, this.fy = b.Gg(f), this.ey = b.Gg(h), !0) : !1
  13431. },
  13432. uN: function() {
  13433. var a = this.target.ru(),
  13434. c = a.Ez(),
  13435. d = a.Dz(),
  13436. a = c.x - d.x,
  13437. e = c.y - d.y,
  13438. c = c.z - d.z,
  13439. d = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2) + Math.pow(c, 2)),
  13440. f = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2));
  13441. 0 === f && (f = b.Nm);
  13442. 0 === d && (d = b.Nm);
  13443. return {
  13444. AL: d / b.bk.Rl(),
  13445. aO: Math.acos(c / d),
  13446. azimuth: 0 > a ? Math.PI - Math.asin(e / f) : Math.asin(e / f)
  13447. }
  13448. },
  13449. q: function(a) {
  13450. b.o.prototype.q.call(this, a);
  13451. a = this.uN();
  13452. isNaN(this.ql) && (this.ql = a.AL);
  13453. isNaN(this.Kk) && (this.Kk = b.wA(a.aO));
  13454. isNaN(this.Zd) && (this.Zd = b.wA(a.azimuth));
  13455. this.hy = b.Gg(this.Kk);
  13456. this.gy = b.Gg(this.Zd)
  13457. },
  13458. d: function() {
  13459. var a = new b.Bq;
  13460. a.n(this.u, this.ql, this.Ir, this.Kk, this.Aw, this.Zd, this.zw);
  13461. return a
  13462. },
  13463. update: function(a) {
  13464. a = this.Hb(a);
  13465. var c = (this.ql + this.Ir * a) * b.bk.Rl(),
  13466. d = this.hy + this.fy * a,
  13467. e = this.gy + this.ey * a;
  13468. a = Math.sin(d) * Math.cos(e) * c + this.Ar;
  13469. e = Math.sin(d) * Math.sin(e) * c + this.Br;
  13470. c = Math.cos(d) * c + this.Cr;
  13471. this.target.ru().YA(a, e, c)
  13472. }
  13473. });
  13474. b.DL = function(a, c, d, e, f, g, h) {
  13475. return new b.Bq(a, c, d, e, f, g, h)
  13476. };
  13477. b.Bq.create = b.DL;
  13478. b.ba = b.o.extend({
  13479. i: null,
  13480. ctor: function(a) {
  13481. b.o.prototype.ctor.call(this);
  13482. a && this.C(a)
  13483. },
  13484. C: function(a) {
  13485. if (!a) throw "cc.ActionEase.initWithAction(): action must be non nil";
  13486. return this.n(a.tu()) ? (this.i = a, !0) : !1
  13487. },
  13488. d: function() {
  13489. var a = new b.ba;
  13490. a.C(this.i.d());
  13491. return a
  13492. },
  13493. q: function(a) {
  13494. b.o.prototype.q.call(this, a);
  13495. this.i.q(this.target)
  13496. },
  13497. stop: function() {
  13498. this.i.stop();
  13499. b.o.prototype.stop.call(this)
  13500. },
  13501. update: function(a) {
  13502. this.i.update(a)
  13503. },
  13504. reverse: function() {
  13505. return b.ba.create(this.i.reverse())
  13506. },
  13507. uu: function() {
  13508. return this.i
  13509. }
  13510. });
  13511. b.hI = function(a) {
  13512. return new b.ba(a)
  13513. };
  13514. b.ba.create = b.hI;
  13515. b.Sg = b.ba.extend({
  13516. Ua: 0,
  13517. ctor: function(a, c) {
  13518. b.ba.prototype.ctor.call(this);
  13519. void 0 !== c && this.C(a, c)
  13520. },
  13521. KY: function(a) {
  13522. this.Ua = a
  13523. },
  13524. JU: function() {
  13525. return this.Ua
  13526. },
  13527. C: function(a, c) {
  13528. return b.ba.prototype.C.call(this, a) ? (this.Ua = c, !0) : !1
  13529. },
  13530. d: function() {
  13531. var a = new b.Sg;
  13532. a.C(this.i.d(), this.Ua);
  13533. return a
  13534. },
  13535. reverse: function() {
  13536. return b.Sg.create(this.i.reverse(), 1 / this.Ua)
  13537. }
  13538. });
  13539. b.uJ = function(a, c) {
  13540. return new b.Sg(a, c)
  13541. };
  13542. b.Sg.create = b.uJ;
  13543. b.Gm = b.Sg.extend({
  13544. update: function(a) {
  13545. this.i.update(Math.pow(a, this.Ua))
  13546. },
  13547. reverse: function() {
  13548. return b.Gm.create(this.i.reverse(), 1 / this.Ua)
  13549. },
  13550. d: function() {
  13551. var a = new b.Gm;
  13552. a.C(this.i.d(), this.Ua);
  13553. return a
  13554. }
  13555. });
  13556. b.Gm.create = function(a, c) {
  13557. return new b.Gm(a, c)
  13558. };
  13559. b.rJ = function(a) {
  13560. return {
  13561. Ua: a,
  13562. fa: function(a) {
  13563. return Math.pow(a, this.Ua)
  13564. },
  13565. reverse: function() {
  13566. return b.rJ(1 / this.Ua)
  13567. }
  13568. }
  13569. };
  13570. b.Im = b.Sg.extend({
  13571. update: function(a) {
  13572. this.i.update(Math.pow(a, 1 / this.Ua))
  13573. },
  13574. reverse: function() {
  13575. return b.Im.create(this.i.reverse(), 1 / this.Ua)
  13576. },
  13577. d: function() {
  13578. var a = new b.Im;
  13579. a.C(this.i.d(), this.Ua);
  13580. return a
  13581. }
  13582. });
  13583. b.Im.create = function(a, c) {
  13584. return new b.Im(a, c)
  13585. };
  13586. b.tJ = function(a) {
  13587. return {
  13588. Ua: a,
  13589. fa: function(a) {
  13590. return Math.pow(a, 1 / this.Ua)
  13591. },
  13592. reverse: function() {
  13593. return b.tJ(1 / this.Ua)
  13594. }
  13595. }
  13596. };
  13597. b.Hm = b.Sg.extend({
  13598. update: function(a) {
  13599. a *= 2;
  13600. 1 > a ? this.i.update(0.5 * Math.pow(a, this.Ua)) : this.i.update(1 - 0.5 * Math.pow(2 - a, this.Ua))
  13601. },
  13602. d: function() {
  13603. var a = new b.Hm;
  13604. a.C(this.i.d(), this.Ua);
  13605. return a
  13606. },
  13607. reverse: function() {
  13608. return b.Hm.create(this.i.reverse(), this.Ua)
  13609. }
  13610. });
  13611. b.Hm.create = function(a, c) {
  13612. return new b.Hm(a, c)
  13613. };
  13614. b.sJ = function(a) {
  13615. return {
  13616. Ua: a,
  13617. fa: function(a) {
  13618. a *= 2;
  13619. return 1 > a ? 0.5 * Math.pow(a, this.Ua) : 1 - 0.5 * Math.pow(2 - a, this.Ua)
  13620. },
  13621. reverse: function() {
  13622. return b.sJ(this.Ua)
  13623. }
  13624. }
  13625. };
  13626. b.Dm = b.ba.extend({
  13627. update: function(a) {
  13628. this.i.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1)))
  13629. },
  13630. reverse: function() {
  13631. return b.Fm.create(this.i.reverse())
  13632. },
  13633. d: function() {
  13634. var a = new b.Dm;
  13635. a.C(this.i.d());
  13636. return a
  13637. }
  13638. });
  13639. b.Dm.create = function(a) {
  13640. return new b.Dm(a)
  13641. };
  13642. b.Uw = {
  13643. fa: function(a) {
  13644. return 0 === a ? 0 : Math.pow(2, 10 * (a - 1))
  13645. },
  13646. reverse: function() {
  13647. return b.Ww
  13648. }
  13649. };
  13650. b.SS = function() {
  13651. return b.Uw
  13652. };
  13653. b.Fm = b.ba.extend({
  13654. update: function(a) {
  13655. this.i.update(1 == a ? 1 : -Math.pow(2, -10 * a) + 1)
  13656. },
  13657. reverse: function() {
  13658. return b.Dm.create(this.i.reverse())
  13659. },
  13660. d: function() {
  13661. var a = new b.Fm;
  13662. a.C(this.i.d());
  13663. return a
  13664. }
  13665. });
  13666. b.Fm.create = function(a) {
  13667. return new b.Fm(a)
  13668. };
  13669. b.Ww = {
  13670. fa: function(a) {
  13671. return 1 == a ? 1 : -Math.pow(2, -10 * a) + 1
  13672. },
  13673. reverse: function() {
  13674. return b.Uw
  13675. }
  13676. };
  13677. b.US = function() {
  13678. return b.Ww
  13679. };
  13680. b.Em = b.ba.extend({
  13681. update: function(a) {
  13682. 1 != a && 0 !== a && (a *= 2, a = 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * ( - Math.pow(2, -10 * (a - 1)) + 2));
  13683. this.i.update(a)
  13684. },
  13685. reverse: function() {
  13686. return b.Em.create(this.i.reverse())
  13687. },
  13688. d: function() {
  13689. var a = new b.Em;
  13690. a.C(this.i.d());
  13691. return a
  13692. }
  13693. });
  13694. b.Em.create = function(a) {
  13695. return new b.Em(a)
  13696. };
  13697. b.Vw = {
  13698. fa: function(a) {
  13699. return 1 !== a && 0 !== a ? (a *= 2, 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * ( - Math.pow(2, -10 * (a - 1)) + 2)) : a
  13700. },
  13701. reverse: function() {
  13702. return b.Vw
  13703. }
  13704. };
  13705. b.TS = function() {
  13706. return b.Vw
  13707. };
  13708. b.Jm = b.ba.extend({
  13709. update: function(a) {
  13710. a = 0 === a || 1 === a ? a: -1 * Math.cos(a * Math.PI / 2) + 1;
  13711. this.i.update(a)
  13712. },
  13713. reverse: function() {
  13714. return b.Lm.create(this.i.reverse())
  13715. },
  13716. d: function() {
  13717. var a = new b.Jm;
  13718. a.C(this.i.d());
  13719. return a
  13720. }
  13721. });
  13722. b.Jm.create = function(a) {
  13723. return new b.Jm(a)
  13724. };
  13725. b.fx = {
  13726. fa: function(a) {
  13727. return 0 === a || 1 === a ? a: -1 * Math.cos(a * Math.PI / 2) + 1
  13728. },
  13729. reverse: function() {
  13730. return b.hx
  13731. }
  13732. };
  13733. b.dT = function() {
  13734. return b.fx
  13735. };
  13736. b.Lm = b.ba.extend({
  13737. update: function(a) {
  13738. a = 0 === a || 1 === a ? a: Math.sin(a * Math.PI / 2);
  13739. this.i.update(a)
  13740. },
  13741. reverse: function() {
  13742. return b.Jm.create(this.i.reverse())
  13743. },
  13744. d: function() {
  13745. var a = new b.Lm;
  13746. a.C(this.i.d());
  13747. return a
  13748. }
  13749. });
  13750. b.Lm.create = function(a) {
  13751. return new b.Lm(a)
  13752. };
  13753. b.hx = {
  13754. fa: function(a) {
  13755. return 0 === a || 1 == a ? a: Math.sin(a * Math.PI / 2)
  13756. },
  13757. reverse: function() {
  13758. return b.fx
  13759. }
  13760. };
  13761. b.fT = function() {
  13762. return b.hx
  13763. };
  13764. b.Km = b.ba.extend({
  13765. update: function(a) {
  13766. a = 0 === a || 1 === a ? a: -0.5 * (Math.cos(Math.PI * a) - 1);
  13767. this.i.update(a)
  13768. },
  13769. d: function() {
  13770. var a = new b.Km;
  13771. a.C(this.i.d());
  13772. return a
  13773. },
  13774. reverse: function() {
  13775. return b.Km.create(this.i.reverse())
  13776. }
  13777. });
  13778. b.Km.create = function(a) {
  13779. return new b.Km(a)
  13780. };
  13781. b.gx = {
  13782. fa: function(a) {
  13783. return 0 === a || 1 === a ? a: -0.5 * (Math.cos(Math.PI * a) - 1)
  13784. },
  13785. reverse: function() {
  13786. return b.gx
  13787. }
  13788. };
  13789. b.eT = function() {
  13790. return b.gx
  13791. };
  13792. b.hi = b.ba.extend({
  13793. Ea: 0.3,
  13794. ctor: function(a, c) {
  13795. b.ba.prototype.ctor.call(this);
  13796. a && this.C(a, c)
  13797. },
  13798. CU: function() {
  13799. return this.Ea
  13800. },
  13801. GY: function(a) {
  13802. this.Ea = a
  13803. },
  13804. C: function(a, c) {
  13805. b.ba.prototype.C.call(this, a);
  13806. this.Ea = null == c ? 0.3 : c;
  13807. return ! 0
  13808. },
  13809. reverse: function() {
  13810. b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  13811. return null
  13812. },
  13813. d: function() {
  13814. var a = new b.hi;
  13815. a.C(this.i.d(), this.Ea);
  13816. return a
  13817. }
  13818. });
  13819. b.hi.create = function(a, c) {
  13820. return new b.hi(a, c)
  13821. };
  13822. b.Am = b.hi.extend({
  13823. update: function(a) {
  13824. var c = 0;
  13825. 0 === a || 1 === a ? c = a: (c = this.Ea / 4, a -= 1, c = -Math.pow(2, 10 * a) * Math.sin((a - c) * Math.PI * 2 / this.Ea));
  13826. this.i.update(c)
  13827. },
  13828. reverse: function() {
  13829. return b.Cm.create(this.i.reverse(), this.Ea)
  13830. },
  13831. d: function() {
  13832. var a = new b.Am;
  13833. a.C(this.i.d(), this.Ea);
  13834. return a
  13835. }
  13836. });
  13837. b.Am.create = function(a, c) {
  13838. return new b.Am(a, c)
  13839. };
  13840. b.Sw = {
  13841. fa: function(a) {
  13842. if (0 === a || 1 === a) return a;
  13843. a -= 1;
  13844. return - Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3)
  13845. },
  13846. reverse: function() {
  13847. return b.Tw
  13848. }
  13849. };
  13850. b.oJ = function(a) {
  13851. return a && 0.3 !== a ? {
  13852. Ea: a,
  13853. fa: function(a) {
  13854. if (0 === a || 1 === a) return a;
  13855. a -= 1;
  13856. return - Math.pow(2, 10 * a) * Math.sin((a - this.Ea / 4) * Math.PI * 2 / this.Ea)
  13857. },
  13858. reverse: function() {
  13859. return b.qJ(this.Ea)
  13860. }
  13861. }: b.Sw
  13862. };
  13863. b.Cm = b.hi.extend({
  13864. update: function(a) {
  13865. var c = 0,
  13866. c = 0 === a || 1 == a ? a: Math.pow(2, -10 * a) * Math.sin((a - this.Ea / 4) * Math.PI * 2 / this.Ea) + 1;
  13867. this.i.update(c)
  13868. },
  13869. reverse: function() {
  13870. return b.Am.create(this.i.reverse(), this.Ea)
  13871. },
  13872. d: function() {
  13873. var a = new b.Cm;
  13874. a.C(this.i.d(), this.Ea);
  13875. return a
  13876. }
  13877. });
  13878. b.Cm.create = function(a, c) {
  13879. return new b.Cm(a, c)
  13880. };
  13881. b.Tw = {
  13882. fa: function(a) {
  13883. return 0 === a || 1 === a ? a: Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1
  13884. },
  13885. reverse: function() {
  13886. return b.Sw
  13887. }
  13888. };
  13889. b.qJ = function(a) {
  13890. return a && 0.3 !== a ? {
  13891. Ea: a,
  13892. fa: function(a) {
  13893. return 0 === a || 1 === a ? a: Math.pow(2, -10 * a) * Math.sin((a - this.Ea / 4) * Math.PI * 2 / this.Ea) + 1
  13894. },
  13895. reverse: function() {
  13896. return b.oJ(this.Ea)
  13897. }
  13898. }: b.Tw
  13899. };
  13900. b.Bm = b.hi.extend({
  13901. update: function(a) {
  13902. var c = 0,
  13903. c = this.Ea;
  13904. if (0 === a || 1 == a) c = a;
  13905. else {
  13906. c || (c = this.Ea = 0.3 * 1.5);
  13907. var d = c / 4;
  13908. a = 2 * a - 1;
  13909. c = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - d) * Math.PI * 2 / c) : Math.pow(2, -10 * a) * Math.sin((a - d) * Math.PI * 2 / c) * 0.5 + 1
  13910. }
  13911. this.i.update(c)
  13912. },
  13913. reverse: function() {
  13914. return b.Bm.create(this.i.reverse(), this.Ea)
  13915. },
  13916. d: function() {
  13917. var a = new b.Bm;
  13918. a.C(this.i.d(), this.Ea);
  13919. return a
  13920. }
  13921. });
  13922. b.Bm.create = function(a, c) {
  13923. return new b.Bm(a, c)
  13924. };
  13925. b.pJ = function(a) {
  13926. return {
  13927. Ea: a || 0.3,
  13928. fa: function(a) {
  13929. var d = 0,
  13930. d = this.Ea;
  13931. if (0 === a || 1 === a) d = a;
  13932. else {
  13933. d || (d = this.Ea = 0.3 * 1.5);
  13934. var e = d / 4;
  13935. a = 2 * a - 1;
  13936. d = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - e) * Math.PI * 2 / d) : Math.pow(2, -10 * a) * Math.sin((a - e) * Math.PI * 2 / d) * 0.5 + 1
  13937. }
  13938. return d
  13939. },
  13940. reverse: function() {
  13941. return b.pJ(this.Ea)
  13942. }
  13943. }
  13944. };
  13945. b.Rg = b.ba.extend({
  13946. Yo: function(a) {
  13947. if (a < 1 / 2.75) return 7.5625 * a * a;
  13948. if (a < 2 / 2.75) return a -= 1.5 / 2.75,
  13949. 7.5625 * a * a + 0.75;
  13950. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75,
  13951. 7.5625 * a * a + 0.9375;
  13952. a -= 2.625 / 2.75;
  13953. return 7.5625 * a * a + 0.984375
  13954. },
  13955. d: function() {
  13956. var a = new b.Rg;
  13957. a.C(this.i.d());
  13958. return a
  13959. },
  13960. reverse: function() {
  13961. return b.Rg.create(this.i.reverse())
  13962. }
  13963. });
  13964. b.Rg.create = function(a) {
  13965. return new b.Rg(a)
  13966. };
  13967. b.xm = b.Rg.extend({
  13968. update: function(a) {
  13969. this.i.update(1 - this.Yo(1 - a))
  13970. },
  13971. reverse: function() {
  13972. return b.zm.create(this.i.reverse())
  13973. },
  13974. d: function() {
  13975. var a = new b.xm;
  13976. a.C(this.i.d());
  13977. return a
  13978. }
  13979. });
  13980. b.xm.create = function(a) {
  13981. return new b.xm(a)
  13982. };
  13983. b.tn = function(a) {
  13984. if (a < 1 / 2.75) return 7.5625 * a * a;
  13985. if (a < 2 / 2.75) return a -= 1.5 / 2.75,
  13986. 7.5625 * a * a + 0.75;
  13987. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75,
  13988. 7.5625 * a * a + 0.9375;
  13989. a -= 2.625 / 2.75;
  13990. return 7.5625 * a * a + 0.984375
  13991. };
  13992. b.Jw = {
  13993. fa: function(a) {
  13994. return 1 - b.tn(1 - a)
  13995. },
  13996. reverse: function() {
  13997. return b.Lw
  13998. }
  13999. };
  14000. b.JS = function() {
  14001. return b.Jw
  14002. };
  14003. b.zm = b.Rg.extend({
  14004. update: function(a) {
  14005. this.i.update(this.Yo(a))
  14006. },
  14007. reverse: function() {
  14008. return b.xm.create(this.i.reverse())
  14009. },
  14010. d: function() {
  14011. var a = new b.zm;
  14012. a.C(this.i.d());
  14013. return a
  14014. }
  14015. });
  14016. b.zm.create = function(a) {
  14017. return new b.zm(a)
  14018. };
  14019. b.Lw = {
  14020. fa: function(a) {
  14021. return b.tn(a)
  14022. },
  14023. reverse: function() {
  14024. return b.Jw
  14025. }
  14026. };
  14027. b.LS = function() {
  14028. return b.Lw
  14029. };
  14030. b.ym = b.Rg.extend({
  14031. update: function(a) {
  14032. var c = 0,
  14033. c = 0.5 > a ? 0.5 * (1 - this.Yo(1 - 2 * a)) : 0.5 * this.Yo(2 * a - 1) + 0.5;
  14034. this.i.update(c)
  14035. },
  14036. d: function() {
  14037. var a = new b.ym;
  14038. a.C(this.i.d());
  14039. return a
  14040. },
  14041. reverse: function() {
  14042. return b.ym.create(this.i.reverse())
  14043. }
  14044. });
  14045. b.ym.create = function(a) {
  14046. return new b.ym(a)
  14047. };
  14048. b.Kw = {
  14049. fa: function(a) {
  14050. return a = 0.5 > a ? 0.5 * (1 - b.tn(1 - 2 * a)) : 0.5 * b.tn(2 * a - 1) + 0.5
  14051. },
  14052. reverse: function() {
  14053. return b.Kw
  14054. }
  14055. };
  14056. b.KS = function() {
  14057. return b.Kw
  14058. };
  14059. b.um = b.ba.extend({
  14060. update: function(a) {
  14061. this.i.update(0 === a || 1 == a ? a: a * a * (2.70158 * a - 1.70158))
  14062. },
  14063. reverse: function() {
  14064. return b.wm.create(this.i.reverse())
  14065. },
  14066. d: function() {
  14067. var a = new b.um;
  14068. a.C(this.i.d());
  14069. return a
  14070. }
  14071. });
  14072. b.um.create = function(a) {
  14073. return new b.um(a)
  14074. };
  14075. b.Gw = {
  14076. fa: function(a) {
  14077. return 0 === a || 1 === a ? a: a * a * (2.70158 * a - 1.70158)
  14078. },
  14079. reverse: function() {
  14080. return b.Iw
  14081. }
  14082. };
  14083. b.GS = function() {
  14084. return b.Gw
  14085. };
  14086. b.wm = b.ba.extend({
  14087. update: function(a) {
  14088. a -= 1;
  14089. this.i.update(a * a * (2.70158 * a + 1.70158) + 1)
  14090. },
  14091. reverse: function() {
  14092. return b.um.create(this.i.reverse())
  14093. },
  14094. d: function() {
  14095. var a = new b.wm;
  14096. a.C(this.i.d());
  14097. return a
  14098. }
  14099. });
  14100. b.wm.create = function(a) {
  14101. return new b.wm(a)
  14102. };
  14103. b.Iw = {
  14104. fa: function(a) {
  14105. a -= 1;
  14106. return a * a * (2.70158 * a + 1.70158) + 1
  14107. },
  14108. reverse: function() {
  14109. return b.Gw
  14110. }
  14111. };
  14112. b.IS = function() {
  14113. return b.Iw
  14114. };
  14115. b.vm = b.ba.extend({
  14116. update: function(a) {
  14117. a *= 2;
  14118. 1 > a ? this.i.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.i.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1))
  14119. },
  14120. d: function() {
  14121. var a = new b.vm;
  14122. a.C(this.i.d());
  14123. return a
  14124. },
  14125. reverse: function() {
  14126. return b.vm.create(this.i.reverse())
  14127. }
  14128. });
  14129. b.vm.create = function(a) {
  14130. return new b.vm(a)
  14131. };
  14132. b.Hw = {
  14133. fa: function(a) {
  14134. a *= 2;
  14135. if (1 > a) return a * a * (3.5949095 * a - 2.5949095) / 2;
  14136. a -= 2;
  14137. return a * a * (3.5949095 * a + 2.5949095) / 2 + 1
  14138. },
  14139. reverse: function() {
  14140. return b.Hw
  14141. }
  14142. };
  14143. b.HS = function() {
  14144. return b.Hw
  14145. };
  14146. b.fk = b.ba.extend({
  14147. po: null,
  14148. qo: null,
  14149. ro: null,
  14150. so: null,
  14151. ctor: function(a) {
  14152. b.ba.prototype.ctor.call(this, a)
  14153. },
  14154. H: function(a, c, d, e, f) {
  14155. return Math.pow(1 - f, 3) * a + 3 * f * Math.pow(1 - f, 2) * c + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e
  14156. },
  14157. update: function(a) {
  14158. this.i.update(this.H(this.po, this.qo, this.ro, this.so, a))
  14159. },
  14160. d: function() {
  14161. var a = new b.fk;
  14162. a.C(this.i.d());
  14163. a.TA(this.po, this.qo, this.ro, this.so);
  14164. return a
  14165. },
  14166. reverse: function() {
  14167. var a = b.fk.create(this.i.reverse());
  14168. a.TA(this.so, this.ro, this.qo, this.po);
  14169. return a
  14170. },
  14171. TA: function(a, c, d, e) {
  14172. this.po = a || 0;
  14173. this.qo = c || 0;
  14174. this.ro = d || 0;
  14175. this.so = e || 0
  14176. }
  14177. });
  14178. b.fk.create = function(a) {
  14179. return new b.fk(a)
  14180. };
  14181. b.nJ = function(a, c, d, e) {
  14182. return {
  14183. fa: function(f) {
  14184. return b.fk.prototype.H(a, c, d, e, f)
  14185. },
  14186. reverse: function() {
  14187. return b.nJ(e, d, c, a)
  14188. }
  14189. }
  14190. };
  14191. b.mk = b.ba.extend({
  14192. H: function(a) {
  14193. return Math.pow(a, 2)
  14194. },
  14195. update: function(a) {
  14196. this.i.update(this.H(a))
  14197. },
  14198. d: function() {
  14199. var a = new b.mk;
  14200. a.C(this.i.d());
  14201. return a
  14202. },
  14203. reverse: function() {
  14204. return b.mk.create(this.i.reverse())
  14205. }
  14206. });
  14207. b.mk.create = function(a) {
  14208. return new b.mk(a)
  14209. };
  14210. b.Xw = {
  14211. fa: b.mk.prototype.H,
  14212. reverse: function() {
  14213. return b.Xw
  14214. }
  14215. };
  14216. b.VS = function() {
  14217. return b.Xw
  14218. };
  14219. b.ok = b.ba.extend({
  14220. H: function(a) {
  14221. return - a * (a - 2)
  14222. },
  14223. update: function(a) {
  14224. this.i.update(this.H(a))
  14225. },
  14226. d: function() {
  14227. var a = new b.ok;
  14228. a.C();
  14229. return a
  14230. },
  14231. reverse: function() {
  14232. return b.ok.create(this.i.reverse())
  14233. }
  14234. });
  14235. b.ok.create = function(a) {
  14236. return new b.ok(a)
  14237. };
  14238. b.Zw = {
  14239. fa: b.ok.prototype.H,
  14240. reverse: function() {
  14241. return b.Zw
  14242. }
  14243. };
  14244. b.XS = function() {
  14245. return b.Zw
  14246. };
  14247. b.nk = b.ba.extend({
  14248. H: function(a) {
  14249. var c = a;
  14250. a *= 2;
  14251. 1 > a ? c = a * a * 0.5 : (--a, c = -0.5 * (a * (a - 2) - 1));
  14252. return c
  14253. },
  14254. update: function(a) {
  14255. this.i.update(this.H(a))
  14256. },
  14257. d: function() {
  14258. var a = new b.nk;
  14259. a.C(this.i.d());
  14260. return a
  14261. },
  14262. reverse: function() {
  14263. return b.nk.create(this.i.reverse())
  14264. }
  14265. });
  14266. b.nk.create = function(a) {
  14267. return new b.nk(a)
  14268. };
  14269. b.Yw = {
  14270. fa: b.nk.prototype.H,
  14271. reverse: function() {
  14272. return b.Yw
  14273. }
  14274. };
  14275. b.WS = function() {
  14276. return b.Yw
  14277. };
  14278. b.pk = b.ba.extend({
  14279. H: function(a) {
  14280. return a * a * a * a
  14281. },
  14282. update: function(a) {
  14283. this.i.update(this.H(a))
  14284. },
  14285. d: function() {
  14286. var a = new b.pk;
  14287. a.C(this.i.d());
  14288. return a
  14289. },
  14290. reverse: function() {
  14291. return b.pk.create(this.i.reverse())
  14292. }
  14293. });
  14294. b.pk.create = function(a) {
  14295. return new b.pk(a)
  14296. };
  14297. b.$w = {
  14298. fa: b.pk.prototype.H,
  14299. reverse: function() {
  14300. return b.$w
  14301. }
  14302. };
  14303. b.YS = function() {
  14304. return b.$w
  14305. };
  14306. b.rk = b.ba.extend({
  14307. H: function(a) {
  14308. a -= 1;
  14309. return - (a * a * a * a - 1)
  14310. },
  14311. update: function(a) {
  14312. this.i.update(this.H(a))
  14313. },
  14314. d: function() {
  14315. var a = new b.rk;
  14316. a.C(this.i.d());
  14317. return a
  14318. },
  14319. reverse: function() {
  14320. return b.rk.create(this.i.reverse())
  14321. }
  14322. });
  14323. b.rk.create = function(a) {
  14324. return new b.rk(a)
  14325. };
  14326. b.bx = {
  14327. fa: b.rk.prototype.H,
  14328. reverse: function() {
  14329. return b.bx
  14330. }
  14331. };
  14332. b.$S = function() {
  14333. return b.bx
  14334. };
  14335. b.qk = b.ba.extend({
  14336. H: function(a) {
  14337. a *= 2;
  14338. if (1 > a) return 0.5 * a * a * a * a;
  14339. a -= 2;
  14340. return - 0.5 * (a * a * a * a - 2)
  14341. },
  14342. update: function(a) {
  14343. this.i.update(this.H(a))
  14344. },
  14345. d: function() {
  14346. var a = new b.qk;
  14347. a.C(this.i.d());
  14348. return a
  14349. },
  14350. reverse: function() {
  14351. return b.qk.create(this.i.reverse())
  14352. }
  14353. });
  14354. b.qk.create = function(a) {
  14355. return new b.qk(a)
  14356. };
  14357. b.ax = {
  14358. fa: b.qk.prototype.H,
  14359. reverse: function() {
  14360. return b.ax
  14361. }
  14362. };
  14363. b.ZS = function() {
  14364. return b.ax
  14365. };
  14366. b.sk = b.ba.extend({
  14367. H: function(a) {
  14368. return a * a * a * a * a
  14369. },
  14370. update: function(a) {
  14371. this.i.update(this.H(a))
  14372. },
  14373. d: function() {
  14374. var a = new b.sk;
  14375. a.C(this.i.d());
  14376. return a
  14377. },
  14378. reverse: function() {
  14379. return b.sk.create(this.i.reverse())
  14380. }
  14381. });
  14382. b.sk.create = function(a) {
  14383. return new b.sk(a)
  14384. };
  14385. b.cx = {
  14386. fa: b.sk.prototype.H,
  14387. reverse: function() {
  14388. return b.cx
  14389. }
  14390. };
  14391. b.aT = function() {
  14392. return b.cx
  14393. };
  14394. b.uk = b.ba.extend({
  14395. H: function(a) {
  14396. a -= 1;
  14397. return a * a * a * a * a + 1
  14398. },
  14399. update: function(a) {
  14400. this.i.update(this.H(a))
  14401. },
  14402. d: function() {
  14403. var a = new b.uk;
  14404. a.C(this.i.d());
  14405. return a
  14406. },
  14407. reverse: function() {
  14408. return b.uk.create(this.i.reverse())
  14409. }
  14410. });
  14411. b.uk.create = function(a) {
  14412. return new b.uk(a)
  14413. };
  14414. b.ex = {
  14415. fa: b.uk.prototype.H,
  14416. reverse: function() {
  14417. return b.ex
  14418. }
  14419. };
  14420. b.cT = function() {
  14421. return b.ex
  14422. };
  14423. b.tk = b.ba.extend({
  14424. H: function(a) {
  14425. a *= 2;
  14426. if (1 > a) return 0.5 * a * a * a * a * a;
  14427. a -= 2;
  14428. return 0.5 * (a * a * a * a * a + 2)
  14429. },
  14430. update: function(a) {
  14431. this.i.update(this.H(a))
  14432. },
  14433. d: function() {
  14434. var a = new b.tk;
  14435. a.C(this.i.d());
  14436. return a
  14437. },
  14438. reverse: function() {
  14439. return b.tk.create(this.i.reverse())
  14440. }
  14441. });
  14442. b.tk.create = function(a) {
  14443. return new b.tk(a)
  14444. };
  14445. b.dx = {
  14446. fa: b.tk.prototype.H,
  14447. reverse: function() {
  14448. return b.dx
  14449. }
  14450. };
  14451. b.bT = function() {
  14452. return b.dx
  14453. };
  14454. b.gk = b.ba.extend({
  14455. H: function(a) {
  14456. return - 1 * (Math.sqrt(1 - a * a) - 1)
  14457. },
  14458. update: function(a) {
  14459. this.i.update(this.H(a))
  14460. },
  14461. d: function() {
  14462. var a = new b.gk;
  14463. a.C(this.i.d());
  14464. return a
  14465. },
  14466. reverse: function() {
  14467. return b.gk.create(this.i.reverse())
  14468. }
  14469. });
  14470. b.gk.create = function(a) {
  14471. return new b.gk(a)
  14472. };
  14473. b.Mw = {
  14474. fa: b.gk.prototype.H,
  14475. reverse: function() {
  14476. return b.Mw
  14477. }
  14478. };
  14479. b.MS = function() {
  14480. return b.Mw
  14481. };
  14482. b.ik = b.ba.extend({
  14483. H: function(a) {
  14484. a -= 1;
  14485. return Math.sqrt(1 - a * a)
  14486. },
  14487. update: function(a) {
  14488. this.i.update(this.H(a))
  14489. },
  14490. d: function() {
  14491. var a = new b.ik;
  14492. a.C(this.i.d());
  14493. return a
  14494. },
  14495. reverse: function() {
  14496. return b.ik.create(this.i.reverse())
  14497. }
  14498. });
  14499. b.ik.create = function(a) {
  14500. return new b.ik(a)
  14501. };
  14502. b.Ow = {
  14503. fa: b.ik.prototype.H,
  14504. reverse: function() {
  14505. return b.Ow
  14506. }
  14507. };
  14508. b.OS = function() {
  14509. return b.Ow
  14510. };
  14511. b.hk = b.ba.extend({
  14512. H: function(a) {
  14513. a *= 2;
  14514. if (1 > a) return - 0.5 * (Math.sqrt(1 - a * a) - 1);
  14515. a -= 2;
  14516. return 0.5 * (Math.sqrt(1 - a * a) + 1)
  14517. },
  14518. update: function(a) {
  14519. this.i.update(this.H(a))
  14520. },
  14521. d: function() {
  14522. var a = new b.hk;
  14523. a.C(this.i.d());
  14524. return a
  14525. },
  14526. reverse: function() {
  14527. return b.hk.create(this.i.reverse())
  14528. }
  14529. });
  14530. b.hk.create = function(a) {
  14531. return new b.hk(a)
  14532. };
  14533. b.Nw = {
  14534. fa: b.hk.prototype.H,
  14535. reverse: function() {
  14536. return b.Nw
  14537. }
  14538. };
  14539. b.NS = function() {
  14540. return b.Nw
  14541. };
  14542. b.jk = b.ba.extend({
  14543. H: function(a) {
  14544. return a * a * a
  14545. },
  14546. update: function(a) {
  14547. this.i.update(this.H(a))
  14548. },
  14549. d: function() {
  14550. var a = new b.jk;
  14551. a.C(this.i.d());
  14552. return a
  14553. },
  14554. reverse: function() {
  14555. return b.jk.create(this.i.reverse())
  14556. }
  14557. });
  14558. b.jk.create = function(a) {
  14559. return new b.jk(a)
  14560. };
  14561. b.Pw = {
  14562. fa: b.jk.prototype.H,
  14563. reverse: function() {
  14564. return b.Pw
  14565. }
  14566. };
  14567. b.PS = function() {
  14568. return b.Pw
  14569. };
  14570. b.lk = b.ba.extend({
  14571. H: function(a) {
  14572. a -= 1;
  14573. return a * a * a + 1
  14574. },
  14575. update: function(a) {
  14576. this.i.update(this.H(a))
  14577. },
  14578. d: function() {
  14579. var a = new b.lk;
  14580. a.C(this.i.d());
  14581. return a
  14582. },
  14583. reverse: function() {
  14584. return b.lk.create(this.i.reverse())
  14585. }
  14586. });
  14587. b.lk.create = function(a) {
  14588. return new b.lk(a)
  14589. };
  14590. b.Rw = {
  14591. fa: b.lk.prototype.H,
  14592. reverse: function() {
  14593. return b.Rw
  14594. }
  14595. };
  14596. b.RS = function() {
  14597. return b.Rw
  14598. };
  14599. b.kk = b.ba.extend({
  14600. H: function(a) {
  14601. a *= 2;
  14602. if (1 > a) return 0.5 * a * a * a;
  14603. a -= 2;
  14604. return 0.5 * (a * a * a + 2)
  14605. },
  14606. update: function(a) {
  14607. this.i.update(this.H(a))
  14608. },
  14609. d: function() {
  14610. var a = new b.kk;
  14611. a.C(this.i.d());
  14612. return a
  14613. },
  14614. reverse: function() {
  14615. return b.kk.create(this.i.reverse())
  14616. }
  14617. });
  14618. b.kk.create = function(a) {
  14619. return new b.kk(a)
  14620. };
  14621. b.Qw = {
  14622. fa: b.kk.prototype.H,
  14623. reverse: function() {
  14624. return b.Qw
  14625. }
  14626. };
  14627. b.QS = function() {
  14628. return b.Qw
  14629. };
  14630. b.$t = function(a, c, d, e, f, g) {
  14631. var h = g * g,
  14632. k = h * g,
  14633. m = (1 - f) / 2;
  14634. f = m * ( - k + 2 * h - g);
  14635. var n = m * ( - k + h) + (2 * k - 3 * h + 1);
  14636. g = m * (k - 2 * h + g) + ( - 2 * k + 3 * h);
  14637. h = m * (k - h);
  14638. return C(a.x * f + c.x * n + d.x * g + e.x * h, a.y * f + c.y * n + d.y * g + e.y * h)
  14639. };
  14640. b.LA = function(a) {
  14641. for (var c = [], d = a.length - 1; 0 <= d; d--) c.push(C(a[d].x, a[d].y));
  14642. return c
  14643. };
  14644. b.dp = function(a) {
  14645. for (var c = [], d = 0; d < a.length; d++) c.push(C(a[d].x, a[d].y));
  14646. return c
  14647. };
  14648. b.Fb = function(a, c) {
  14649. var d = Math.min(a.length - 1, Math.max(c, 0));
  14650. return a[d]
  14651. };
  14652. b.LX = function(a) {
  14653. for (var c = a.length,
  14654. d = 0 | c / 2,
  14655. e = 0; e < d; ++e) {
  14656. var f = a[e];
  14657. a[e] = a[c - e - 1];
  14658. a[c - e - 1] = f
  14659. }
  14660. };
  14661. b.jf = b.o.extend({
  14662. fe: null,
  14663. Bw: 0,
  14664. gj: 0,
  14665. yb: null,
  14666. mw: null,
  14667. ctor: function(a, c, d) {
  14668. b.o.prototype.ctor.call(this);
  14669. this.fe = [];
  14670. void 0 !== d && this.n(a, c, d)
  14671. },
  14672. n: function(a, c, d) {
  14673. if (!c || 0 == c.length) throw "Invalid configuration. It must at least have one control point";
  14674. return b.o.prototype.n.call(this, a) ? (this.TM(c), this.gj = d, !0) : !1
  14675. },
  14676. d: function() {
  14677. var a = new b.jf;
  14678. a.n(this.u, b.dp(this.fe), this.gj);
  14679. return a
  14680. },
  14681. q: function(a) {
  14682. b.o.prototype.q.call(this, a);
  14683. this.Bw = 1 / (this.fe.length - 1);
  14684. this.yb = C(this.target.ja.x, this.target.ja.y);
  14685. this.mw = C(0, 0)
  14686. },
  14687. update: function(a) {
  14688. a = this.Hb(a);
  14689. var c, d = this.fe;
  14690. if (1 == a) c = d.length - 1,
  14691. a = 1;
  14692. else {
  14693. var e = this.Bw;
  14694. c = 0 | a / e;
  14695. a = (a - e * c) / e
  14696. }
  14697. c = b.$t(b.Fb(d, c - 1), b.Fb(d, c - 0), b.Fb(d, c + 1), b.Fb(d, c + 2), this.gj, a);
  14698. b.rm && (d = this.target.ja.x - this.yb.x, a = this.target.ja.y - this.yb.y, 0 != d || 0 != a) && (e = this.mw, d = e.x + d, a = e.y + a, e.x = d, e.y = a, c.x += d, c.y += a);
  14699. this.BB(c)
  14700. },
  14701. reverse: function() {
  14702. var a = b.LA(this.fe);
  14703. return b.kz(this.u, a, this.gj)
  14704. },
  14705. BB: function(a) {
  14706. this.target.Ma(a);
  14707. this.yb = a
  14708. },
  14709. DU: function() {
  14710. return this.fe
  14711. },
  14712. TM: function(a) {
  14713. this.fe = a
  14714. }
  14715. });
  14716. b.kz = function(a, c, d) {
  14717. return new b.jf(a, c, d)
  14718. };
  14719. b.jf.create = b.kz;
  14720. b.ck = b.jf.extend({
  14721. ob: null,
  14722. ctor: function(a, c, d) {
  14723. b.jf.prototype.ctor.call(this);
  14724. this.ob = C(0, 0);
  14725. void 0 !== d && this.n(a, c, d)
  14726. },
  14727. q: function(a) {
  14728. b.jf.prototype.q.call(this, a);
  14729. this.ob.x = a.ja.x;
  14730. this.ob.y = a.ja.y
  14731. },
  14732. reverse: function() {
  14733. for (var a = this.fe.slice(), c, d = a[0], e = 1; e < a.length; ++e) c = a[e],
  14734. a[e] = b.uc(c, d),
  14735. d = c;
  14736. a = b.LA(a);
  14737. d = a[a.length - 1];
  14738. a.pop();
  14739. d.x = -d.x;
  14740. d.y = -d.y;
  14741. a.unshift(d);
  14742. for (e = 1; e < a.length; ++e) c = a[e],
  14743. c.x = -c.x,
  14744. c.y = -c.y,
  14745. c.x += d.x,
  14746. c.y += d.y,
  14747. d = a[e] = c;
  14748. return b.jz(this.u, a, this.gj)
  14749. },
  14750. BB: function(a) {
  14751. var c = this.ob,
  14752. d = a.x + c.x;
  14753. a = a.y + c.y;
  14754. this.yb.x = d;
  14755. this.yb.y = a;
  14756. this.target.Ma(d, a)
  14757. },
  14758. d: function() {
  14759. var a = new b.ck;
  14760. a.n(this.u, b.dp(this.fe), this.gj);
  14761. return a
  14762. }
  14763. });
  14764. b.jz = function(a, c, d) {
  14765. return new b.ck(a, c, d)
  14766. };
  14767. b.ck.create = b.jz;
  14768. b.gq = b.jf.extend({
  14769. ctor: function(a, c) {
  14770. c && this.n(a, c)
  14771. },
  14772. n: function(a, c) {
  14773. return b.jf.prototype.n.call(this, a, c, 0.5)
  14774. },
  14775. d: function() {
  14776. var a = new b.gq;
  14777. a.n(this.u, b.dp(this.fe));
  14778. return a
  14779. }
  14780. });
  14781. b.OI = function(a, c) {
  14782. return new b.gq(a, c)
  14783. };
  14784. b.gq.create = b.OI;
  14785. b.fq = b.ck.extend({
  14786. ctor: function(a, c) {
  14787. b.ck.prototype.ctor.call(this);
  14788. c && this.n(a, c)
  14789. },
  14790. n: function(a, c) {
  14791. return b.jf.prototype.n.call(this, a, c, 0.5)
  14792. },
  14793. d: function() {
  14794. var a = new b.fq;
  14795. a.n(this.u, b.dp(this.fe));
  14796. return a
  14797. }
  14798. });
  14799. b.NI = function(a, c) {
  14800. return new b.fq(a, c)
  14801. };
  14802. b.fq.create = b.NI;
  14803. b.rO = b.oa.extend({
  14804. SN: function() {}
  14805. });
  14806. b.Wp = b.o.extend({
  14807. key: "",
  14808. kp: 0,
  14809. Sp: 0,
  14810. aJ: 0,
  14811. ctor: function(a, c, d, e) {
  14812. b.o.prototype.ctor.call(this);
  14813. this.key = "";
  14814. void 0 !== e && this.n(a, c, d, e)
  14815. },
  14816. n: function(a, c, d, e) {
  14817. return b.o.prototype.n.call(this, a) ? (this.key = c, this.Sp = e, this.kp = d, !0) : !1
  14818. },
  14819. q: function(a) {
  14820. if (!a || !a.SN) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";
  14821. b.o.prototype.q.call(this, a);
  14822. this.aJ = this.Sp - this.kp
  14823. },
  14824. update: function() {},
  14825. reverse: function() {
  14826. return b.Zy(this.duration, this.key, this.Sp, this.kp)
  14827. },
  14828. d: function() {
  14829. var a = new b.Wp;
  14830. a.n(this.u, this.key, this.kp, this.Sp);
  14831. return a
  14832. }
  14833. });
  14834. b.Zy = function(a, c, d, e) {
  14835. return new b.Wp(a, c, d, e)
  14836. };
  14837. b.Wp.create = b.Zy;
  14838. b.Tf = b.hf.extend({
  14839. Ja: null,
  14840. qs: null,
  14841. T: !1,
  14842. qa: null,
  14843. Mc: "LabelAtlas",
  14844. ctor: function(a, c, d, e, f) {
  14845. b.hf.prototype.ctor.call(this);
  14846. c && b.Tf.prototype.Qd.call(this, a, c, d, e, f)
  14847. },
  14848. nv: function() {
  14849. return this.T
  14850. },
  14851. Vc: function(a, c) {
  14852. this.qa || (this.qa = []);
  14853. this.qa.push({
  14854. ne: a,
  14855. td: c
  14856. })
  14857. },
  14858. Ub: function() {
  14859. if (this.qa) {
  14860. this.T = !0;
  14861. for (var a = this.qa,
  14862. c = 0,
  14863. d = a.length; c < d; c++) {
  14864. var e = a[c];
  14865. e.ne.call(e.td, this)
  14866. }
  14867. a.length = 0
  14868. }
  14869. },
  14870. Qd: function(a, c, d, e, f) {
  14871. var g = a + "",
  14872. h, k;
  14873. if (void 0 === d) {
  14874. d = b.D.Yc(c);
  14875. if (1 !== parseInt(d.version, 10)) return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
  14876. !1;
  14877. c = b.path.$o(c, d.textureFilename);
  14878. e = b.Ka();
  14879. h = parseInt(d.itemWidth, 10) / e;
  14880. k = parseInt(d.itemHeight, 10) / e;
  14881. d = String.fromCharCode(parseInt(d.firstChar, 10))
  14882. } else h = d || 0,
  14883. k = e || 0,
  14884. d = f || " ";
  14885. var m = null,
  14886. m = c instanceof b.K ? c: b.va.cc(c); (this.T = c = m.xb) || m.Vc(function() {
  14887. this.ia(m, h, k, g.length);
  14888. this.string = g;
  14889. this.Ub()
  14890. },
  14891. this);
  14892. return this.ia(m, h, k, g.length) ? (this.qs = d, this.string = g, !0) : !1
  14893. },
  14894. V: function(a) {
  14895. b.hf.prototype.V.call(this, a);
  14896. this.Vj()
  14897. },
  14898. Nl: function() {
  14899. return this.Ja
  14900. },
  14901. na: function(a) {
  14902. b.hf.prototype.na.call(this, a);
  14903. b.IC && (a = this.size, b.Hd.gc([C(0, 0), C(a.width, 0), C(a.width, a.height), C(0, a.height)], 4, !0))
  14904. },
  14905. rr: function(a, c, d) {
  14906. a.NG = !0;
  14907. b.m.prototype.N.call(this, a, c, d)
  14908. },
  14909. Vj: null,
  14910. $H: function() {
  14911. for (var a = this.Ja || "",
  14912. c = a.length,
  14913. d = this.texture,
  14914. e = this.Ke,
  14915. f = this.de,
  14916. g = 0; g < c; g++) {
  14917. var h = a.charCodeAt(g) - this.qs.charCodeAt(0),
  14918. h = E(parseInt(h % this.Ti, 10) * e, parseInt(h / this.Ti, 10) * f, e, f),
  14919. k = a.charCodeAt(g),
  14920. m = this.Od(g);
  14921. m ? 32 == k ? (m.ga(), m.Ha(E(0, 0, 10, 10), !1, D(0, 0))) : (m.ia(d, h), m.visible = !0, m.opacity = this.sa) : (m = new b.B, 32 == k ? (m.ga(), m.Ha(E(0, 0, 10, 10), !1, D(0, 0))) : m.ia(d, h), b.m.prototype.N.call(this, m, 0, g));
  14922. m.Ma(g * e + e / 2, f / 2)
  14923. }
  14924. },
  14925. aI: function() {
  14926. var a = this.Ja,
  14927. c = a.length,
  14928. d = this.textureAtlas,
  14929. e = d.texture,
  14930. f = e.pixelsWidth,
  14931. e = e.pixelsHeight,
  14932. g = this.Ke,
  14933. h = this.de;
  14934. this.Yn || (g = this.Ke * b.Ka(), h = this.de * b.Ka());
  14935. c > d.Bc && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  14936. for (var k = d.quads,
  14937. m = this.Q,
  14938. m = {
  14939. r: m.r,
  14940. g: m.g,
  14941. b: m.b,
  14942. a: this.sa
  14943. },
  14944. n = this.Ke, r = 0; r < c; r++) {
  14945. var s = a.charCodeAt(r) - this.qs.charCodeAt(0),
  14946. u = s % this.Ti,
  14947. t = 0 | s / this.Ti,
  14948. v;
  14949. b.vk ? (u = (2 * u * g + 1) / (2 * f), s = u + (2 * g - 2) / (2 * f), t = (2 * t * h + 1) / (2 * e), v = t + (2 * h - 2) / (2 * e)) : (u = u * g / f, s = u + g / f, t = t * h / e, v = t + h / e);
  14950. var w = k[r],
  14951. A = w.ya,
  14952. z = w.za,
  14953. I = w.wa,
  14954. w = w.xa;
  14955. A.f.R = u;
  14956. A.f.S = t;
  14957. z.f.R = s;
  14958. z.f.S = t;
  14959. I.f.R = u;
  14960. I.f.S = v;
  14961. w.f.R = s;
  14962. w.f.S = v;
  14963. I.e.x = r * n;
  14964. I.e.y = 0;
  14965. I.e.z = 0;
  14966. w.e.x = r * n + n;
  14967. w.e.y = 0;
  14968. w.e.z = 0;
  14969. A.e.x = r * n;
  14970. A.e.y = this.de;
  14971. A.e.z = 0;
  14972. z.e.x = r * n + n;
  14973. z.e.y = this.de;
  14974. z.e.z = 0;
  14975. A.j = m;
  14976. z.j = m;
  14977. I.j = m;
  14978. w.j = m
  14979. }
  14980. 0 < c && (d.dirty = !0, a = d.totalQuads, c > a && d.QK(c - a))
  14981. },
  14982. ic: null,
  14983. IH: function(a) {
  14984. a = String(a);
  14985. var c = a.length;
  14986. this.Ja = a;
  14987. this.width = c * this.Ke;
  14988. this.height = this.de;
  14989. if (this.s) {
  14990. a = this.s;
  14991. for (var c = a.length,
  14992. d = 0; d < c; d++) {
  14993. var e = a[d];
  14994. e && !e.NG && (e.visible = !1)
  14995. }
  14996. }
  14997. this.Vj();
  14998. this.quadsToDraw = c
  14999. },
  15000. KH: function(a) {
  15001. a = String(a);
  15002. var c = a.length;
  15003. c > this.textureAtlas.totalQuads && this.textureAtlas.JA(c);
  15004. this.Ja = a;
  15005. this.width = c * this.Ke;
  15006. this.height = this.de;
  15007. this.Vj();
  15008. this.quadsToDraw = c
  15009. },
  15010. Ga: null,
  15011. bt: function(a) {
  15012. if (this.sa !== a) {
  15013. b.hf.prototype.Ga.call(this, a);
  15014. for (var c = this.s,
  15015. d = 0,
  15016. e = c.length; d < e; d++) c[d] && (c[d].opacity = a)
  15017. }
  15018. },
  15019. ct: function(a) {
  15020. this.bH !== a && b.hf.prototype.Ga.call(this, a)
  15021. }
  15022. });
  15023. p = b.Tf.prototype;
  15024. b.da === b.wb ? (p.Vj = p.aI, p.ic = p.KH, p.Ga = p.ct) : (p.Vj = p.$H, p.ic = p.IH, p.Ga = p.bt, p.N = p.rr);
  15025. b.k(p, "opacity", p.wj, p.Ga);
  15026. b.k(p, "string", p.Nl, p.ic);
  15027. b.Tf.create = function(a, c, d, e, f) {
  15028. return new b.Tf(a, c, d, e, f)
  15029. };
  15030. b.mP = -1;
  15031. b.vq = b.Vf.extend({
  15032. Da: !1,
  15033. Ja: "",
  15034. gd: null,
  15035. Tn: "",
  15036. Qi: "",
  15037. Jk: b.Yg,
  15038. Hl: -1,
  15039. Mx: !1,
  15040. Zn: null,
  15041. qy: null,
  15042. sa: 255,
  15043. Md: 255,
  15044. Q: null,
  15045. ac: null,
  15046. $d: !0,
  15047. De: !0,
  15048. T: !1,
  15049. qa: null,
  15050. Mc: "LabelBMFont",
  15051. Cy: function(a, c) {
  15052. c ? this.Qi = a: this.Ja = a;
  15053. var d = this.s;
  15054. if (d) for (var e = 0; e < d.length; e++) {
  15055. var f = d[e];
  15056. f && f.te(!1)
  15057. }
  15058. this.T && (this.fp(), c && this.yd())
  15059. },
  15060. ctor: function(a, c, d, e, f) {
  15061. b.Vf.prototype.ctor.call(this);
  15062. this.Zn = C(0, 0);
  15063. this.Q = b.color(255, 255, 255, 255);
  15064. this.ac = b.color(255, 255, 255, 255);
  15065. this.qy = [];
  15066. this.Qd(a, c, d, e, f)
  15067. },
  15068. nv: function() {
  15069. return this.T
  15070. },
  15071. Vc: function(a, c) {
  15072. this.qa || (this.qa = []);
  15073. this.qa.push({
  15074. ne: a,
  15075. td: c
  15076. })
  15077. },
  15078. Ub: function() {
  15079. if (this.qa) {
  15080. for (var a = this.qa,
  15081. c = 0,
  15082. d = a.length; c < d; c++) {
  15083. var e = a[c];
  15084. e.ne.call(e.td, this)
  15085. }
  15086. a.length = 0
  15087. }
  15088. },
  15089. na: function(a) {
  15090. b.Vf.prototype.na.call(this, a);
  15091. if (b.JC) {
  15092. a = this.ud();
  15093. var c = C(0 | -this.lb.x, 0 | -this.lb.y);
  15094. a = [C(c.x, c.y), C(c.x + a.width, c.y), C(c.x + a.width, c.y + a.height), C(c.x, c.y + a.height)];
  15095. b.Hd.Rj(0, 255, 0, 255);
  15096. b.Hd.gc(a, 4, !0)
  15097. }
  15098. },
  15099. V: function(a) {
  15100. var c = this.Q,
  15101. d = this.ac;
  15102. if (d.r != a.r || d.g != a.g || d.b != a.b || d.a != a.a) c.r = d.r = a.r,
  15103. c.g = d.g = a.g,
  15104. c.b = d.b = a.b,
  15105. this.T && this.$d && (a = b.color.WHITE, (c = this.Db) && c.cascadeColor && (a = c.pp()), this.sb(a))
  15106. },
  15107. Dj: function() {
  15108. return this.Da
  15109. },
  15110. Ng: function(a) {
  15111. this.Da = a;
  15112. if (a = this.s) for (var c = 0; c < a.length; c++) {
  15113. var d = a[c];
  15114. d && (d.opacityModifyRGB = this.Da)
  15115. }
  15116. },
  15117. wj: function() {
  15118. return this.Md
  15119. },
  15120. YJ: function() {
  15121. return this.sa
  15122. },
  15123. Ga: function(a) {
  15124. this.sa = this.Md = a;
  15125. if (this.De) {
  15126. var c = 255,
  15127. d = this.Db;
  15128. d && d.cascadeOpacity && (c = d.sa);
  15129. this.kb(c)
  15130. }
  15131. this.Q.a = this.ac.a = a
  15132. },
  15133. kb: function(a) {
  15134. this.sa = this.Md * a / 255;
  15135. a = this.s;
  15136. for (var c = 0; c < a.length; c++) {
  15137. var d = a[c];
  15138. b.da == b.wb ? d.kb(this.sa) : (b.m.prototype.kb.call(d, this.sa), d.W())
  15139. }
  15140. this.fd()
  15141. },
  15142. hA: function() {
  15143. return ! 1
  15144. },
  15145. VA: function(a) {
  15146. this.De = a
  15147. },
  15148. Nh: function() {
  15149. var a = this.ac;
  15150. return b.color(a.r, a.g, a.b, a.a)
  15151. },
  15152. pp: function() {
  15153. return this.Q
  15154. },
  15155. sb: function(a) {
  15156. var c = this.Q,
  15157. d = this.ac;
  15158. c.r = d.r * a.r / 255;
  15159. c.g = d.g * a.g / 255;
  15160. c.b = d.b * a.b / 255;
  15161. a = this.s;
  15162. for (c = 0; c < a.length; c++) d = a[c],
  15163. b.da == b.wb ? d.sb(this.Q) : (b.m.prototype.sb.call(d, this.Q), d.W());
  15164. this.fd()
  15165. },
  15166. fd: function() {
  15167. if (b.da != b.wb) {
  15168. var a = this.La();
  15169. if (a && 0 < a.ud().width) {
  15170. var c = this.mb.la;
  15171. if (c) {
  15172. var d = a.la,
  15173. e = E(0, 0, c.width, c.height);
  15174. d instanceof HTMLCanvasElement && !this.nb ? b.tj(c, this.Q, e, d) : (d = b.tj(c, this.Q, e), a = new b.K, a.Mb(d), a.Fa());
  15175. this.Wa(a)
  15176. }
  15177. }
  15178. }
  15179. },
  15180. gA: function() {
  15181. return ! 1
  15182. },
  15183. UA: function(a) {
  15184. this.$d = a
  15185. },
  15186. ga: function() {
  15187. return this.Qd(null, null, null, null, null)
  15188. },
  15189. Qd: function(a, c, d, e, f) {
  15190. a = a || "";
  15191. this.gd && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  15192. if (c) {
  15193. var g = b.D.Yc(c);
  15194. if (!g) return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),
  15195. !1;
  15196. this.gd = g;
  15197. this.Tn = c;
  15198. c = b.va.cc(g.dz); (this.T = g = c.xb) || c.Vc(function(a) {
  15199. this.T = !0;
  15200. this.ia(a, this.Qi.length);
  15201. this.ic(this.Qi, !0);
  15202. this.Ub()
  15203. },
  15204. this)
  15205. } else c = new b.K,
  15206. g = new Image,
  15207. c.Mb(g),
  15208. this.T = !1;
  15209. return this.ia(c, a.length) ? (this.Jk = e || b.cn, this.Zn = f || C(0, 0), this.Hl = null == d ? -1 : d, this.sa = this.Md = 255, this.Q = b.color(255, 255, 255, 255), this.ac = b.color(255, 255, 255, 255), this.$d = this.De = !0, this.v.width = 0, this.v.height = 0, this.Qj(0.5, 0.5), b.da === b.wb && (d = this.textureAtlas.texture, this.Da = d.Aj(), e = this.qy = new b.B, e.ia(d, E(0, 0, 0, 0), !1), e.batchNode = this), this.ic(a, !0), !0) : !1
  15210. },
  15211. fp: function() {
  15212. var a = b.da,
  15213. c = a === b.Ya ? this.texture: this.textureAtlas.texture,
  15214. d = 0,
  15215. e = D(0, 0),
  15216. f = 0,
  15217. g = 1,
  15218. h = this.Ja,
  15219. k = h ? h.length: 0;
  15220. if (0 !== k) {
  15221. var m, n = this.gd,
  15222. r = n.kL,
  15223. s = n.au,
  15224. u = n.MJ;
  15225. for (m = 0; m < k - 1; m++) 10 == h.charCodeAt(m) && g++;
  15226. var t = s * g,
  15227. g = -(s - s * g),
  15228. v = -1;
  15229. for (m = 0; m < k; m++) if (s = h.charCodeAt(m), 0 != s) if (10 === s) d = 0,
  15230. g -= n.au;
  15231. else {
  15232. var w = r[v << 16 | s & 65535] || 0,
  15233. A = u[s];
  15234. if (A) {
  15235. var z = E(A.rect.x, A.rect.y, A.rect.width, A.rect.height),
  15236. z = b.Hp(z);
  15237. z.x += this.Zn.x;
  15238. z.y += this.Zn.y; (v = this.Od(m)) ? 32 === s && a === b.Ya ? v.Ha(z, !1, D(0, 0)) : (v.Ha(z, !1), v.visible = !0) : (v = new b.B, 32 === s && a === b.Ya && (z = E(0, 0, 0, 0)), v.ia(c, z, !1), v.lo = !0, this.N(v, 0, m));
  15239. v.opacityModifyRGB = this.Da;
  15240. b.da == b.wb ? (v.sb(this.Q), v.kb(this.sa)) : (b.m.prototype.sb.call(v, this.Q), b.m.prototype.kb.call(v, this.sa), v.W());
  15241. z = C(d + A.ZN + 0.5 * A.rect.width + w, g + (n.au - A.$N) - 0.5 * z.height * b.Ka());
  15242. v.Ma(b.OL(z));
  15243. d += A.YN + w;
  15244. v = s;
  15245. f < d && (f = d)
  15246. } else b.log("cocos2d: LabelBMFont: character not found " + h[m])
  15247. }
  15248. e.width = f;
  15249. e.height = t;
  15250. this.wd(b.qN(e))
  15251. }
  15252. },
  15253. yZ: function(a) {
  15254. var c = this.s;
  15255. if (c) for (var d = 0,
  15256. e = c.length; d < e; d++) {
  15257. var f = c[d];
  15258. f && (f.visible = !1)
  15259. }
  15260. this.gd && this.fp();
  15261. a || this.yd()
  15262. },
  15263. Nl: function() {
  15264. return this.Qi
  15265. },
  15266. ic: function(a, c) {
  15267. a = String(a);
  15268. null == c && (c = !0);
  15269. if (null == a || "string" != typeof a) a += "";
  15270. this.Qi = a;
  15271. this.Cy(a, c)
  15272. },
  15273. JH: function(a) {
  15274. this.ic(a, !1)
  15275. },
  15276. YX: function(a) {
  15277. this.ic(a, !0)
  15278. },
  15279. yd: function() {
  15280. this.string = this.Qi;
  15281. if (0 < this.Hl) {
  15282. for (var a = this.Ja.length,
  15283. c = [], d = [], e = 1, f = 0, g = !1, h = !1, k = -1, m = -1, n = 0, r, s = 0, u = this.s.length; s < u; s++) {
  15284. for (var t = 0; ! (r = this.Od(s + n + t));) t++;
  15285. n += t;
  15286. if (f >= a) break;
  15287. var v = this.Ja[f];
  15288. h || (m = this.as(r), h = !0);
  15289. g || (k = m, g = !0);
  15290. if (10 == v.charCodeAt(0)) {
  15291. d.push("\n");
  15292. c = c.concat(d);
  15293. d.length = 0;
  15294. g = h = !1;
  15295. k = m = -1;
  15296. s--;
  15297. n -= t;
  15298. e++;
  15299. if (f >= a) break;
  15300. m || (m = this.as(r), h = !0);
  15301. k || (k = m, g = !0);
  15302. f++
  15303. } else if (b.Mu(v)) d.push(v),
  15304. c = c.concat(d),
  15305. d.length = 0,
  15306. h = !1,
  15307. m = -1,
  15308. f++;
  15309. else if (this.eG(r) - k > this.Hl) if (this.Mx) {
  15310. b.DB(d);
  15311. d.push("\n");
  15312. c = c.concat(d);
  15313. d.length = 0;
  15314. g = h = !1;
  15315. k = m = -1;
  15316. e++;
  15317. if (f >= a) break;
  15318. m || (m = this.as(r), h = !0);
  15319. k || (k = m, g = !0);
  15320. s--
  15321. } else d.push(v),
  15322. -1 != c.lastIndexOf(" ") ? b.DB(c) : c = [],
  15323. 0 < c.length && c.push("\n"),
  15324. e++,
  15325. g = !1,
  15326. k = -1,
  15327. f++;
  15328. else d.push(v),
  15329. f++
  15330. }
  15331. c = c.concat(d);
  15332. s = c.length;
  15333. r = "";
  15334. for (f = 0; f < s; ++f) r += c[f];
  15335. r += String.fromCharCode(0);
  15336. this.Cy(r, !1)
  15337. }
  15338. if (this.Jk != b.cn) for (c = f = 0, a = this.Ja.length, d = [], e = 0; e < a; e++) if (10 == this.Ja[e].charCodeAt(0) || 0 == this.Ja[e].charCodeAt(0)) if (s = 0, g = d.length, 0 == g) c++;
  15339. else {
  15340. if (r = f + g - 1 + c, !(0 > r) && (s = this.Od(r), null != s)) {
  15341. s = s.ja.x + s.Ie() / 2;
  15342. h = 0;
  15343. switch (this.Jk) {
  15344. case b.Yg:
  15345. h = this.width / 2 - s / 2;
  15346. break;
  15347. case b.$v:
  15348. h = this.width - s
  15349. }
  15350. if (0 != h) for (s = 0; s < g; s++)(r = f + s + c, 0 > r || !(r = this.Od(r))) || (r.x += h);
  15351. f += g;
  15352. c++;
  15353. d.length = 0
  15354. }
  15355. } else d.push(this.Ja[f])
  15356. },
  15357. vM: function(a) {
  15358. this.Jk = a;
  15359. this.yd()
  15360. },
  15361. SF: function() {
  15362. return this.Jk
  15363. },
  15364. zM: function(a) {
  15365. this.Hl = a;
  15366. this.yd()
  15367. },
  15368. Xr: function() {
  15369. return this.Hl
  15370. },
  15371. vY: function(a) {
  15372. this.Mx = a;
  15373. this.yd()
  15374. },
  15375. Og: function(a, c) {
  15376. b.m.prototype.Og.call(this, a, c);
  15377. this.yd()
  15378. },
  15379. Qp: function(a) {
  15380. b.m.prototype.Qp.call(this, a);
  15381. this.yd()
  15382. },
  15383. gv: function(a) {
  15384. b.m.prototype.gv.call(this, a);
  15385. this.yd()
  15386. },
  15387. mY: function(a) {
  15388. if (null != a && a != this.Tn) {
  15389. var c = b.D.Yc(a);
  15390. c ? (this.Tn = a, this.gd = c, a = b.va.cc(c.dz), this.T = c = a.xb, this.texture = a, b.da === b.Ya && (this.mb = this.texture), c ? this.fp() : a.Vc(function(a) {
  15391. this.T = !0;
  15392. this.texture = a;
  15393. this.fp();
  15394. this.fd();
  15395. this.yd();
  15396. this.Ub()
  15397. },
  15398. this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  15399. }
  15400. },
  15401. gU: function() {
  15402. return this.Tn
  15403. },
  15404. Qj: function(a, c) {
  15405. b.m.prototype.Qj.call(this, a, c);
  15406. this.yd()
  15407. },
  15408. zy: function(a) {
  15409. b.m.prototype.zy.call(this, a);
  15410. this.yd()
  15411. },
  15412. Ws: function(a) {
  15413. b.m.prototype.Ws.call(this, a);
  15414. this.yd()
  15415. },
  15416. Xs: function(a) {
  15417. b.m.prototype.Xs.call(this, a);
  15418. this.yd()
  15419. },
  15420. OQ: function() {},
  15421. hR: function(a, c) {
  15422. var d = 0;
  15423. if (this.wF.lL) {
  15424. var e = this.wF.lL[(a << 16 | c & 65535).toString()];
  15425. e && (d = e.QR)
  15426. }
  15427. return d
  15428. },
  15429. as: function(a) {
  15430. return a.ja.x * this.O - a.Ie() * this.O * a.Ab.x
  15431. },
  15432. eG: function(a) {
  15433. return a.ja.x * this.O + a.Ie() * this.O * a.Ab.x
  15434. }
  15435. });
  15436. p = b.vq.prototype;
  15437. b.da !== b.Ya || b.Aa.wt || (p.fd = function() {
  15438. if (b.da != b.wb) {
  15439. var a, c = this.La();
  15440. c && 0 < c.ud().width && (a = c.la) && (c = b.va.zu(this.mb.la)) && (a instanceof HTMLCanvasElement && !this.nb ? b.sj(a, c, this.Q, null, a) : (a = b.sj(a, c, this.Q), c = new b.K, c.Mb(a), c.Fa(), this.Wa(c)))
  15441. }
  15442. });
  15443. b.k(p, "string", p.Nl, p.JH);
  15444. b.k(p, "boundingWidth", p.Xr, p.zM);
  15445. b.k(p, "textAlign", p.SF, p.vM);
  15446. b.vq.create = function(a, c, d, e, f) {
  15447. return new b.vq(a, c, d, e, f)
  15448. };
  15449. b.Mu = function(a) {
  15450. a = a.charCodeAt(0);
  15451. return 9 <= a && 13 >= a || 32 == a || 133 == a || 160 == a || 5760 == a || 8192 <= a && 8202 >= a || 8232 == a || 8233 == a || 8239 == a || 8287 == a || 12288 == a
  15452. };
  15453. b.DB = function(a) {
  15454. var c = a.length;
  15455. if (! (0 >= c) && (c -= 1, b.Mu(a[c]))) {
  15456. for (var d = c - 1; 0 <= d; --d) if (b.Mu(a[d])) c = d;
  15457. else break;
  15458. b.TN(a, c)
  15459. }
  15460. };
  15461. b.TN = function(a, c) {
  15462. var d = a.length;
  15463. c >= d || 0 > c || a.splice(c, d)
  15464. };
  15465. b.MF = {
  15466. EC: /info [^\n]*(\n|$)/gi,
  15467. $B: /common [^\n]*(\n|$)/gi,
  15468. oD: /page [^\n]*(\n|$)/gi,
  15469. ZB: /char [^\n]*(\n|$)/gi,
  15470. HC: /kerning [^\n]*(\n|$)/gi,
  15471. GC: /\w+=[^ \r\n]+/gi,
  15472. FC: /^[\-]?\d+$/,
  15473. ml: function(a) {
  15474. a = a.match(this.GC);
  15475. var c = {};
  15476. if (a) for (var d = 0,
  15477. e = a.length; d < e; d++) {
  15478. var f = a[d],
  15479. g = f.indexOf("\x3d"),
  15480. h = f.substring(0, g),
  15481. f = f.substring(g + 1);
  15482. f.match(this.FC) ? f = parseInt(f) : '"' == f[0] && (f = f.substring(1, f.length - 1));
  15483. c[h] = f
  15484. }
  15485. return c
  15486. },
  15487. GL: function(a, c) {
  15488. var d = {};
  15489. this.ml(a.match(this.EC)[0]);
  15490. var e = this.ml(a.match(this.$B)[0]);
  15491. d.au = e.lineHeight;
  15492. if (b.da === b.wb) {
  15493. var f = b.bu.il; (e.scaleW > f.width || e.scaleH > f.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  15494. }
  15495. 1 !== e.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  15496. e = this.ml(a.match(this.oD)[0]);
  15497. 0 !== e.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  15498. d.dz = b.path.$o(c, e.file);
  15499. for (var g = a.match(this.ZB), h = d.MJ = {},
  15500. e = 0, f = g.length; e < f; e++) {
  15501. var k = this.ml(g[e]);
  15502. h[k.id] = {
  15503. rect: {
  15504. x: k.x,
  15505. y: k.y,
  15506. width: k.width,
  15507. height: k.height
  15508. },
  15509. ZN: k.xoffset,
  15510. $N: k.yoffset,
  15511. YN: k.xadvance
  15512. }
  15513. }
  15514. g = d.kL = {};
  15515. if (h = a.match(this.HC)) for (e = 0, f = h.length; e < f; e++) k = this.ml(h[e]),
  15516. g[k.first << 16 | k.second & 65535] = k.amount;
  15517. return d
  15518. },
  15519. load: function(a, c, d, e) {
  15520. var f = this;
  15521. b.D.yp(a,
  15522. function(a, d) {
  15523. if (a) return e(a);
  15524. e(null, f.GL(d, c))
  15525. })
  15526. }
  15527. };
  15528. b.D.Mg(["fnt"], b.MF);
  15529. b.BZ = function() {
  15530. return {
  15531. x: 0,
  15532. y: 0
  15533. }
  15534. };
  15535. b.Qg = function(a, c) {
  15536. return {
  15537. x: a,
  15538. y: c
  15539. }
  15540. };
  15541. b.xc = function(a, c) {
  15542. return b.Qg(a.x + c.x, a.y + c.y)
  15543. };
  15544. b.bb = function(a, c) {
  15545. return b.Qg(a.x - c.x, a.y - c.y)
  15546. };
  15547. b.Nb = function(a, c) {
  15548. return b.Qg(a.x * c, a.y * c)
  15549. };
  15550. b.Wj = function(a) {
  15551. return b.Qg( - a.y, a.x)
  15552. };
  15553. b.zd = function(a) {
  15554. return b.Qg( - a.x, -a.y)
  15555. };
  15556. b.EB = function(a, c) {
  15557. return a.x * c.x + a.y * c.y
  15558. };
  15559. b.AZ = function(a) {
  15560. return b.Qg(Math.cos(a), Math.sin(a))
  15561. };
  15562. b.pm = function(a) {
  15563. a = b.Td(C(a.x, a.y));
  15564. return b.Qg(a.x, a.y)
  15565. };
  15566. b.Ac = function(a) {
  15567. return b.Qg(a.x, a.y)
  15568. };
  15569. b.U = function(a) {
  15570. return {
  15571. R: a.x,
  15572. S: a.y
  15573. }
  15574. };
  15575. b.mC = b.m.extend({
  15576. pa: null,
  15577. t: null,
  15578. Cb: 1,
  15579. Qc: null,
  15580. Mc: "DrawNodeCanvas",
  15581. ctor: function() {
  15582. b.m.prototype.ctor.call(this);
  15583. this.pa = [];
  15584. this.Qc = b.color(255, 255, 255, 255);
  15585. this.t = new b.cb(b.kc, b.jc);
  15586. this.ga()
  15587. },
  15588. Ml: function() {
  15589. return this.t
  15590. },
  15591. $h: function(a, c) {
  15592. void 0 === c ? (this.t.src = a.src, this.t.Y = a.Y) : (this.t.src = a, this.t.Y = c)
  15593. },
  15594. ev: function(a) {
  15595. this.Cb = a
  15596. },
  15597. hK: function() {
  15598. return this.Cb
  15599. },
  15600. Rj: function(a) {
  15601. var c = this.Qc;
  15602. c.r = a.r;
  15603. c.g = a.g;
  15604. c.b = a.b;
  15605. c.a = null == a.a ? 255 : a.a
  15606. },
  15607. Sb: function() {
  15608. return b.color(this.Qc.r, this.Qc.g, this.Qc.b, this.Qc.a)
  15609. },
  15610. ku: function(a, c, d, e, f) {
  15611. e = e || this.Cb;
  15612. f = f || this.Sb();
  15613. null == f.a && (f.a = 255);
  15614. a = [a, C(c.x, a.y), c, C(a.x, c.y)];
  15615. c = new b.Yf(b.Tb.Wf);
  15616. c.Ud = a;
  15617. c.lineWidth = e;
  15618. c.Mf = f;
  15619. c.xp = !0;
  15620. c.Jg = !0;
  15621. c.lineCap = "butt";
  15622. if (c.fillColor = d) null == d.a && (d.a = 255),
  15623. c.Ku = !0;
  15624. this.pa.push(c)
  15625. },
  15626. hu: function(a, c, d, e, f, g, h) {
  15627. g = g || this.Cb;
  15628. h = h || this.Sb();
  15629. null == h.a && (h.a = 255);
  15630. for (var k = 2 * Math.PI / e,
  15631. m = [], n = 0; n <= e; n++) {
  15632. var r = n * k;
  15633. m.push(C(c * Math.cos(r + d) + a.x, c * Math.sin(r + d) + a.y))
  15634. }
  15635. f && m.push(C(a.x, a.y));
  15636. a = new b.Yf(b.Tb.Wf);
  15637. a.Ud = m;
  15638. a.lineWidth = g;
  15639. a.Mf = h;
  15640. a.xp = !0;
  15641. a.Jg = !0;
  15642. this.pa.push(a)
  15643. },
  15644. ju: function(a, c, d, e, f, g) {
  15645. f = f || this.Cb;
  15646. g = g || this.Sb();
  15647. null == g.a && (g.a = 255);
  15648. for (var h = [], k = 0, m = 0; m < e; m++) h.push(C(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * c.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * c.y + k * k * d.y)),
  15649. k += 1 / e;
  15650. h.push(C(d.x, d.y));
  15651. a = new b.Yf(b.Tb.Wf);
  15652. a.Ud = h;
  15653. a.lineWidth = f;
  15654. a.Mf = g;
  15655. a.Jg = !0;
  15656. a.lineCap = "round";
  15657. this.pa.push(a)
  15658. },
  15659. iu: function(a, c, d, e, f, g, h) {
  15660. g = g || this.Cb;
  15661. h = h || this.Sb();
  15662. null == h.a && (h.a = 255);
  15663. for (var k = [], m = 0, n = 0; n < f; n++) k.push(C(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * c.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * c.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)),
  15664. m += 1 / f;
  15665. k.push(C(e.x, e.y));
  15666. a = new b.Yf(b.Tb.Wf);
  15667. a.Ud = k;
  15668. a.lineWidth = g;
  15669. a.Mf = h;
  15670. a.Jg = !0;
  15671. a.lineCap = "round";
  15672. this.pa.push(a)
  15673. },
  15674. gu: function(a, c, d, e) {
  15675. this.Lh(a, 0.5, c, d, e)
  15676. },
  15677. Lh: function(a, c, d, e, f) {
  15678. e = e || this.Cb;
  15679. f = f || this.Sb();
  15680. null == f.a && (f.a = 255);
  15681. for (var g = [], h, k, m = 1 / a.length, n = 0; n < d + 1; n++) k = n / d,
  15682. 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m),
  15683. h = b.$t(b.Fb(a, h - 1), b.Fb(a, h - 0), b.Fb(a, h + 1), b.Fb(a, h + 2), c, k),
  15684. g.push(h);
  15685. a = new b.Yf(b.Tb.Wf);
  15686. a.Ud = g;
  15687. a.lineWidth = e;
  15688. a.Mf = f;
  15689. a.Jg = !0;
  15690. a.lineCap = "round";
  15691. this.pa.push(a)
  15692. },
  15693. ip: function(a, c, d) {
  15694. d = d || this.Sb();
  15695. null == d.a && (d.a = 255);
  15696. var e = new b.Yf(b.Tb.aw);
  15697. e.Ud = [a];
  15698. e.lineWidth = c;
  15699. e.fillColor = d;
  15700. this.pa.push(e)
  15701. },
  15702. eJ: function(a, c, d) {
  15703. if (a && 0 != a.length) {
  15704. d = d || this.Sb();
  15705. null == d.a && (d.a = 255);
  15706. for (var e = 0,
  15707. f = a.length; e < f; e++) this.ip(a[e], c, d)
  15708. }
  15709. },
  15710. lu: function(a, c, d, e) {
  15711. d = d || this.Cb;
  15712. e = e || this.Sb();
  15713. null == e.a && (e.a = 255);
  15714. var f = new b.Yf(b.Tb.Wf);
  15715. f.Ud = [a, c];
  15716. f.lineWidth = 2 * d;
  15717. f.Mf = e;
  15718. f.Jg = !0;
  15719. f.lineCap = "round";
  15720. this.pa.push(f)
  15721. },
  15722. iJ: function(a, c, d, e) {
  15723. d = d || this.Cb;
  15724. e = e || this.Sb();
  15725. null == e.a && (e.a = 255);
  15726. var f = new b.Yf(b.Tb.Wf);
  15727. f.Ud = a;
  15728. f.fillColor = c;
  15729. f.lineWidth = d;
  15730. f.Mf = e;
  15731. f.xp = !0;
  15732. f.Jg = !0;
  15733. f.lineCap = "round";
  15734. c && (f.Ku = !0);
  15735. this.pa.push(f)
  15736. },
  15737. gc: function(a, c, d, e) {
  15738. for (var f = [], g = 0; g < a.length; g++) f.push(C(a[g].x, a[g].y));
  15739. return this.iJ(f, c, d, e)
  15740. },
  15741. na: function(a) {
  15742. a = a || b.l;
  15743. this.t && this.t.src == b.SRC_ALPHA && this.t.Y == b.ONE && (a.globalCompositeOperation = "lighter");
  15744. for (var c = 0; c < this.pa.length; c++) {
  15745. var d = this.pa[c];
  15746. switch (d.type) {
  15747. case b.Tb.aw:
  15748. this.GF(a, d);
  15749. break;
  15750. case b.Tb.mE:
  15751. this.IF(a, d);
  15752. break;
  15753. case b.Tb.Wf:
  15754. this.HF(a, d)
  15755. }
  15756. }
  15757. },
  15758. GF: function(a, c) {
  15759. var d = c.fillColor,
  15760. e = c.Ud[0],
  15761. f = c.lineWidth,
  15762. g = b.view.O,
  15763. h = b.view.ma;
  15764. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  15765. a.beginPath();
  15766. a.arc(e.x * g, -e.y * h, f * g, 0, 2 * Math.PI, !1);
  15767. a.closePath();
  15768. a.fill()
  15769. },
  15770. IF: function(a, c) {
  15771. var d = c.Mf,
  15772. e = c.Ud[0],
  15773. f = c.Ud[1],
  15774. g = c.lineWidth,
  15775. h = c.lineCap,
  15776. k = b.view.O,
  15777. m = b.view.ma;
  15778. a.strokeStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  15779. a.lineWidth = g * k;
  15780. a.beginPath();
  15781. a.lineCap = h;
  15782. a.moveTo(e.x * k, -e.y * m);
  15783. a.lineTo(f.x * k, -f.y * m);
  15784. a.stroke()
  15785. },
  15786. HF: function(a, c) {
  15787. var d = c.Ud,
  15788. e = c.lineCap,
  15789. f = c.fillColor,
  15790. g = c.lineWidth,
  15791. h = c.Mf,
  15792. k = c.xp,
  15793. m = c.Ku,
  15794. n = c.Jg;
  15795. if (null != d) {
  15796. var r = d[0],
  15797. s = b.view.O,
  15798. u = b.view.ma;
  15799. a.lineCap = e;
  15800. f && (a.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")");
  15801. g && (a.lineWidth = g * s);
  15802. h && (a.strokeStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
  15803. a.beginPath();
  15804. a.moveTo(r.x * s, -r.y * u);
  15805. e = 1;
  15806. for (f = d.length; e < f; e++) a.lineTo(d[e].x * s, -d[e].y * u);
  15807. k && a.closePath();
  15808. m && a.fill();
  15809. n && a.stroke()
  15810. }
  15811. },
  15812. clear: function() {
  15813. this.pa.length = 0
  15814. }
  15815. });
  15816. b.nC = b.m.extend({
  15817. si: 0,
  15818. pa: null,
  15819. Gf: null,
  15820. Ry: null,
  15821. Qy: null,
  15822. Cb: 1,
  15823. Qc: null,
  15824. t: null,
  15825. Yb: !1,
  15826. Mc: "DrawNodeWebGL",
  15827. Ml: function() {
  15828. return this.t
  15829. },
  15830. $h: function(a, c) {
  15831. void 0 === c ? (this.t.src = a.src, this.t.Y = a.Y) : (this.t.src = a, this.t.Y = c)
  15832. },
  15833. ctor: function() {
  15834. b.m.prototype.ctor.call(this);
  15835. this.pa = [];
  15836. this.t = new b.cb(b.kc, b.jc);
  15837. this.Qc = b.color(255, 255, 255, 255);
  15838. this.ga()
  15839. },
  15840. ga: function() {
  15841. return b.m.prototype.ga.call(this) ? (this.shaderProgram = b.ff.Of(b.xD), this.Tk(64), this.Ry = b.l.createBuffer(), this.Yb = !0) : !1
  15842. },
  15843. ev: function(a) {
  15844. this.Cb = a
  15845. },
  15846. hK: function() {
  15847. return this.Cb
  15848. },
  15849. Rj: function(a) {
  15850. var c = this.Qc;
  15851. c.r = a.r;
  15852. c.g = a.g;
  15853. c.b = a.b;
  15854. c.a = a.a
  15855. },
  15856. Sb: function() {
  15857. return b.color(this.Qc.r, this.Qc.g, this.Qc.b, this.Qc.a)
  15858. },
  15859. ku: function(a, c, d, e, f) {
  15860. e = e || this.Cb;
  15861. f = f || this.Sb();
  15862. null == f.a && (f.a = 255);
  15863. a = [a, C(c.x, a.y), c, C(a.x, c.y)];
  15864. null == d ? this.In(a, e, f, !0) : this.gc(a, d, e, f)
  15865. },
  15866. hu: function(a, c, d, e, f, g, h) {
  15867. g = g || this.Cb;
  15868. h = h || this.Sb();
  15869. null == h.a && (h.a = 255);
  15870. var k = 2 * Math.PI / e,
  15871. m = [],
  15872. n;
  15873. for (n = 0; n <= e; n++) {
  15874. var r = n * k;
  15875. m.push(C(c * Math.cos(r + d) + a.x, c * Math.sin(r + d) + a.y))
  15876. }
  15877. f && m.push(C(a.x, a.y));
  15878. g *= 0.5;
  15879. n = 0;
  15880. for (a = m.length; n < a - 1; n++) this.lu(m[n], m[n + 1], g, h)
  15881. },
  15882. ju: function(a, c, d, e, f, g) {
  15883. f = f || this.Cb;
  15884. g = g || this.Sb();
  15885. null == g.a && (g.a = 255);
  15886. for (var h = [], k = 0, m = 0; m < e; m++) h.push(C(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * c.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * c.y + k * k * d.y)),
  15887. k += 1 / e;
  15888. h.push(C(d.x, d.y));
  15889. this.In(h, f, g, !1)
  15890. },
  15891. iu: function(a, c, d, e, f, g, h) {
  15892. g = g || this.Cb;
  15893. h = h || this.Sb();
  15894. null == h.a && (h.a = 255);
  15895. for (var k = [], m = 0, n = 0; n < f; n++) k.push(C(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * c.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * c.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)),
  15896. m += 1 / f;
  15897. k.push(C(e.x, e.y));
  15898. this.In(k, g, h, !1)
  15899. },
  15900. gu: function(a, c, d, e) {
  15901. this.Lh(a, 0.5, c, d, e)
  15902. },
  15903. Lh: function(a, c, d, e, f) {
  15904. e = e || this.Cb;
  15905. f = f || this.Sb();
  15906. null == f.a && (f.a = 255);
  15907. for (var g = [], h, k, m = 1 / a.length, n = 0; n < d + 1; n++) k = n / d,
  15908. 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m),
  15909. h = b.$t(b.Fb(a, h - 1), b.Fb(a, h - 0), b.Fb(a, h + 1), b.Fb(a, h + 2), c, k),
  15910. g.push(h);
  15911. e *= 0.5;
  15912. a = 0;
  15913. for (c = g.length; a < c - 1; a++) this.lu(g[a], g[a + 1], e, f)
  15914. },
  15915. qH: function() {
  15916. var a = b.l;
  15917. b.tc(b.gn);
  15918. a.bindBuffer(a.ARRAY_BUFFER, this.Ry);
  15919. this.Yb && (a.bufferData(a.ARRAY_BUFFER, this.Gf, a.STREAM_DRAW), this.Yb = !1);
  15920. var c = b.Xd.BYTES_PER_ELEMENT;
  15921. a.vertexAttribPointer(b.lc, 2, a.FLOAT, !1, c, 0);
  15922. a.vertexAttribPointer(b.Ck, 4, a.UNSIGNED_BYTE, !0, c, 8);
  15923. a.vertexAttribPointer(b.Dk, 2, a.FLOAT, !1, c, 12);
  15924. a.drawArrays(a.TRIANGLES, 0, 3 * this.pa.length);
  15925. b.Ze()
  15926. },
  15927. Tk: function(a) {
  15928. var c = this.pa;
  15929. if (c.length + a > this.si) {
  15930. var d = b.Ra.BYTES_PER_ELEMENT;
  15931. this.si += Math.max(this.si, a);
  15932. if (null == c || 0 === c.length) this.pa = [],
  15933. this.Gf = new ArrayBuffer(d * this.si),
  15934. this.Qy = new Uint8Array(this.Gf);
  15935. else {
  15936. a = [];
  15937. for (var e = new ArrayBuffer(d * this.si), f = 0; f < c.length; f++) a[f] = new b.Ra(c[f].a, c[f].b, c[f].J, e, f * d);
  15938. this.Qy = new Uint8Array(e);
  15939. this.Gf = e;
  15940. this.pa = a
  15941. }
  15942. }
  15943. },
  15944. na: function() {
  15945. b.Ph(this.t.src, this.t.Y);
  15946. this.Jb.wc();
  15947. this.Jb.iB();
  15948. this.qH()
  15949. },
  15950. ip: function(a, c, d) {
  15951. d = d || this.Sb();
  15952. null == d.a && (d.a = 255);
  15953. var e = {
  15954. r: 0 | d.r,
  15955. g: 0 | d.g,
  15956. b: 0 | d.b,
  15957. a: 0 | d.a
  15958. };
  15959. d = {
  15960. e: {
  15961. x: a.x - c,
  15962. y: a.y - c
  15963. },
  15964. j: e,
  15965. f: {
  15966. R: -1,
  15967. S: -1
  15968. }
  15969. };
  15970. var f = {
  15971. e: {
  15972. x: a.x - c,
  15973. y: a.y + c
  15974. },
  15975. j: e,
  15976. f: {
  15977. R: -1,
  15978. S: 1
  15979. }
  15980. },
  15981. g = {
  15982. e: {
  15983. x: a.x + c,
  15984. y: a.y + c
  15985. },
  15986. j: e,
  15987. f: {
  15988. R: 1,
  15989. S: 1
  15990. }
  15991. };
  15992. a = {
  15993. e: {
  15994. x: a.x + c,
  15995. y: a.y - c
  15996. },
  15997. j: e,
  15998. f: {
  15999. R: 1,
  16000. S: -1
  16001. }
  16002. };
  16003. this.Tk(6);
  16004. this.pa.push(new b.Ra(d, f, g, this.Gf, this.pa.length * b.Ra.BYTES_PER_ELEMENT));
  16005. this.pa.push(new b.Ra(d, g, a, this.Gf, this.pa.length * b.Ra.BYTES_PER_ELEMENT));
  16006. this.Yb = !0
  16007. },
  16008. eJ: function(a, c, d) {
  16009. if (a && 0 != a.length) {
  16010. d = d || this.Sb();
  16011. null == d.a && (d.a = 255);
  16012. for (var e = 0,
  16013. f = a.length; e < f; e++) this.ip(a[e], c, d)
  16014. }
  16015. },
  16016. lu: function(a, c, d, e) {
  16017. e = e || this.Sb();
  16018. null == e.a && (e.a = 255);
  16019. d = d || 0.5 * this.Cb;
  16020. this.Tk(18);
  16021. e = {
  16022. r: 0 | e.r,
  16023. g: 0 | e.g,
  16024. b: 0 | e.b,
  16025. a: 0 | e.a
  16026. };
  16027. var f = b.Ac(a);
  16028. c = b.Ac(c);
  16029. a = b.pm(b.Wj(b.bb(c, f)));
  16030. var g = b.Wj(a),
  16031. h = b.Nb(a, d);
  16032. d = b.Nb(g, d);
  16033. var k = b.xc(c, b.bb(h, d)),
  16034. m = b.bb(c, h),
  16035. n = b.xc(c, h),
  16036. r = b.bb(f, h),
  16037. s = b.xc(f, h),
  16038. u = b.bb(f, b.bb(h, d)),
  16039. f = b.xc(f, b.xc(h, d)),
  16040. t = b.Ra.BYTES_PER_ELEMENT,
  16041. v = this.Gf,
  16042. w = this.pa;
  16043. w.push(new b.Ra({
  16044. e: b.bb(c, b.xc(h, d)),
  16045. j: e,
  16046. f: b.U(b.zd(b.xc(a, g)))
  16047. },
  16048. {
  16049. e: k,
  16050. j: e,
  16051. f: b.U(b.bb(a, g))
  16052. },
  16053. {
  16054. e: m,
  16055. j: e,
  16056. f: b.U(b.zd(a))
  16057. },
  16058. v, w.length * t));
  16059. w.push(new b.Ra({
  16060. e: n,
  16061. j: e,
  16062. f: b.U(a)
  16063. },
  16064. {
  16065. e: k,
  16066. j: e,
  16067. f: b.U(b.bb(a, g))
  16068. },
  16069. {
  16070. e: m,
  16071. j: e,
  16072. f: b.U(b.zd(a))
  16073. },
  16074. v, w.length * t));
  16075. w.push(new b.Ra({
  16076. e: n,
  16077. j: e,
  16078. f: b.U(a)
  16079. },
  16080. {
  16081. e: r,
  16082. j: e,
  16083. f: b.U(b.zd(a))
  16084. },
  16085. {
  16086. e: m,
  16087. j: e,
  16088. f: b.U(b.zd(a))
  16089. },
  16090. v, w.length * t));
  16091. w.push(new b.Ra({
  16092. e: n,
  16093. j: e,
  16094. f: b.U(a)
  16095. },
  16096. {
  16097. e: r,
  16098. j: e,
  16099. f: b.U(b.zd(a))
  16100. },
  16101. {
  16102. e: s,
  16103. j: e,
  16104. f: b.U(a)
  16105. },
  16106. v, w.length * t));
  16107. w.push(new b.Ra({
  16108. e: u,
  16109. j: e,
  16110. f: b.U(b.bb(g, a))
  16111. },
  16112. {
  16113. e: r,
  16114. j: e,
  16115. f: b.U(b.zd(a))
  16116. },
  16117. {
  16118. e: s,
  16119. j: e,
  16120. f: b.U(a)
  16121. },
  16122. v, w.length * t));
  16123. w.push(new b.Ra({
  16124. e: u,
  16125. j: e,
  16126. f: b.U(b.bb(g, a))
  16127. },
  16128. {
  16129. e: f,
  16130. j: e,
  16131. f: b.U(b.xc(a, g))
  16132. },
  16133. {
  16134. e: s,
  16135. j: e,
  16136. f: b.U(a)
  16137. },
  16138. v, w.length * t));
  16139. this.Yb = !0
  16140. },
  16141. gc: function(a, c, d, e) {
  16142. if (null == c) this.In(a, d, e, !0);
  16143. else {
  16144. null == c.a && (c.a = 255);
  16145. null == e.a && (e.a = 255);
  16146. d = d || this.Cb;
  16147. d *= 0.5;
  16148. c = {
  16149. r: 0 | c.r,
  16150. g: 0 | c.g,
  16151. b: 0 | c.b,
  16152. a: 0 | c.a
  16153. };
  16154. e = {
  16155. r: 0 | e.r,
  16156. g: 0 | e.g,
  16157. b: 0 | e.b,
  16158. a: 0 | e.a
  16159. };
  16160. var f = [],
  16161. g,
  16162. h,
  16163. k,
  16164. m,
  16165. n = a.length;
  16166. for (g = 0; g < n; g++) {
  16167. h = b.Ac(a[(g - 1 + n) % n]);
  16168. k = b.Ac(a[g]);
  16169. m = b.Ac(a[(g + 1) % n]);
  16170. var r = b.pm(b.Wj(b.bb(k, h)));
  16171. k = b.pm(b.Wj(b.bb(m, k)));
  16172. f[g] = {
  16173. offset: b.Nb(b.xc(r, k), 1 / (b.EB(r, k) + 1)),
  16174. Ap: k
  16175. }
  16176. }
  16177. r = 0 < d;
  16178. this.Tk(3 * (3 * n - 2));
  16179. var s = b.Ra.BYTES_PER_ELEMENT,
  16180. u = this.Gf,
  16181. t = this.pa,
  16182. v = !1 == r ? 0.5 : 0;
  16183. for (g = 0; g < n - 2; g++) h = b.bb(b.Ac(a[0]), b.Nb(f[0].offset, v)),
  16184. k = b.bb(b.Ac(a[g + 1]), b.Nb(f[g + 1].offset, v)),
  16185. m = b.bb(b.Ac(a[g + 2]), b.Nb(f[g + 2].offset, v)),
  16186. t.push(new b.Ra({
  16187. e: h,
  16188. j: c,
  16189. f: b.U({
  16190. x: 0,
  16191. y: 0
  16192. })
  16193. },
  16194. {
  16195. e: k,
  16196. j: c,
  16197. f: b.U({
  16198. x: 0,
  16199. y: 0
  16200. })
  16201. },
  16202. {
  16203. e: m,
  16204. j: c,
  16205. f: b.U({
  16206. x: 0,
  16207. y: 0
  16208. })
  16209. },
  16210. u, t.length * s));
  16211. for (g = 0; g < n; g++) {
  16212. v = (g + 1) % n;
  16213. h = b.Ac(a[g]);
  16214. k = b.Ac(a[v]);
  16215. m = f[g].Ap;
  16216. var w = f[g].offset,
  16217. A = f[v].offset,
  16218. v = r ? b.bb(h, b.Nb(w, d)) : b.bb(h, b.Nb(w, 0.5)),
  16219. z = r ? b.bb(k, b.Nb(A, d)) : b.bb(k, b.Nb(A, 0.5));
  16220. h = r ? b.xc(h, b.Nb(w, d)) : b.xc(h, b.Nb(w, 0.5));
  16221. k = r ? b.xc(k, b.Nb(A, d)) : b.xc(k, b.Nb(A, 0.5));
  16222. r ? (t.push(new b.Ra({
  16223. e: v,
  16224. j: e,
  16225. f: b.U(b.zd(m))
  16226. },
  16227. {
  16228. e: z,
  16229. j: e,
  16230. f: b.U(b.zd(m))
  16231. },
  16232. {
  16233. e: k,
  16234. j: e,
  16235. f: b.U(m)
  16236. },
  16237. u, t.length * s)), t.push(new b.Ra({
  16238. e: v,
  16239. j: e,
  16240. f: b.U(b.zd(m))
  16241. },
  16242. {
  16243. e: h,
  16244. j: e,
  16245. f: b.U(m)
  16246. },
  16247. {
  16248. e: k,
  16249. j: e,
  16250. f: b.U(m)
  16251. },
  16252. u, t.length * s))) : (t.push(new b.Ra({
  16253. e: v,
  16254. j: c,
  16255. f: b.U({
  16256. x: 0,
  16257. y: 0
  16258. })
  16259. },
  16260. {
  16261. e: z,
  16262. j: c,
  16263. f: b.U({
  16264. x: 0,
  16265. y: 0
  16266. })
  16267. },
  16268. {
  16269. e: k,
  16270. j: c,
  16271. f: b.U(m)
  16272. },
  16273. u, t.length * s)), t.push(new b.Ra({
  16274. e: v,
  16275. j: c,
  16276. f: b.U({
  16277. x: 0,
  16278. y: 0
  16279. })
  16280. },
  16281. {
  16282. e: h,
  16283. j: c,
  16284. f: b.U(m)
  16285. },
  16286. {
  16287. e: k,
  16288. j: c,
  16289. f: b.U(m)
  16290. },
  16291. u, t.length * s)))
  16292. }
  16293. this.Yb = !0
  16294. }
  16295. },
  16296. In: function(a, c, d, e) {
  16297. c = c || this.Cb;
  16298. d = d || this.Qc;
  16299. null == d.a && (d.a = 255);
  16300. c *= 0.5;
  16301. if (! (0 >= c)) {
  16302. d = {
  16303. r: 0 | d.r,
  16304. g: 0 | d.g,
  16305. b: 0 | d.b,
  16306. a: 0 | d.a
  16307. };
  16308. var f = [],
  16309. g,
  16310. h,
  16311. k,
  16312. m,
  16313. n = a.length;
  16314. for (g = 0; g < n; g++) {
  16315. h = b.Ac(a[(g - 1 + n) % n]);
  16316. k = b.Ac(a[g]);
  16317. m = b.Ac(a[(g + 1) % n]);
  16318. var r = b.pm(b.Wj(b.bb(k, h)));
  16319. k = b.pm(b.Wj(b.bb(m, k)));
  16320. f[g] = {
  16321. offset: b.Nb(b.xc(r, k), 1 / (b.EB(r, k) + 1)),
  16322. Ap: k
  16323. }
  16324. }
  16325. this.Tk(3 * (3 * n - 2));
  16326. m = b.Ra.BYTES_PER_ELEMENT;
  16327. var r = this.Gf,
  16328. s = this.pa;
  16329. e = e ? n: n - 1;
  16330. for (g = 0; g < e; g++) {
  16331. var u = (g + 1) % n;
  16332. h = b.Ac(a[g]);
  16333. k = b.Ac(a[u]);
  16334. var t = f[g].Ap,
  16335. v = f[g].offset,
  16336. u = f[u].offset,
  16337. w = b.bb(h, b.Nb(v, c));
  16338. h = b.xc(h, b.Nb(v, c));
  16339. v = b.xc(k, b.Nb(u, c));
  16340. s.push(new b.Ra({
  16341. e: w,
  16342. j: d,
  16343. f: b.U(b.zd(t))
  16344. },
  16345. {
  16346. e: b.bb(k, b.Nb(u, c)),
  16347. j: d,
  16348. f: b.U(b.zd(t))
  16349. },
  16350. {
  16351. e: v,
  16352. j: d,
  16353. f: b.U(t)
  16354. },
  16355. r, s.length * m));
  16356. s.push(new b.Ra({
  16357. e: w,
  16358. j: d,
  16359. f: b.U(b.zd(t))
  16360. },
  16361. {
  16362. e: h,
  16363. j: d,
  16364. f: b.U(t)
  16365. },
  16366. {
  16367. e: v,
  16368. j: d,
  16369. f: b.U(t)
  16370. },
  16371. r, s.length * m))
  16372. }
  16373. this.Yb = !0
  16374. }
  16375. },
  16376. clear: function() {
  16377. this.pa.length = 0;
  16378. this.Yb = !0
  16379. }
  16380. });
  16381. b.Tb = b.da == b.wb ? b.nC: b.mC;
  16382. b.Tb.create = function() {
  16383. return new b.Tb
  16384. };
  16385. b.Yf = function(a) {
  16386. this.type = a;
  16387. this.fillColor = this.Ud = null;
  16388. this.lineWidth = 0;
  16389. this.Mf = null;
  16390. this.lineCap = "butt";
  16391. this.Jg = this.Ku = this.xp = !1
  16392. };
  16393. b.Tb.aw = 0;
  16394. b.Tb.mE = 1;
  16395. b.Tb.Wf = 2;
  16396. if (b.Aa.Jo) {
  16397. var G = b.GZ = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  16398. b.er = b.oa.extend({
  16399. Fi: null,
  16400. pa: null,
  16401. rh: null,
  16402. Pt: null,
  16403. src: null,
  16404. Wu: null,
  16405. autoplay: null,
  16406. controls: null,
  16407. ZV: null,
  16408. currentTime: 0,
  16409. startTime: 0,
  16410. duration: 0,
  16411. ps: null,
  16412. Ot: 1,
  16413. to: 0,
  16414. $a: !1,
  16415. fj: !0,
  16416. Kd: -1,
  16417. ctor: function(a) {
  16418. this.Fi = {};
  16419. this.src = a;
  16420. this.Pt = G.createGain ? G.createGain() : G.createGainNode();
  16421. this.ZG = this.YG.bind(this);
  16422. this.WG = this.VG.bind(this)
  16423. },
  16424. Bs: function(a) {
  16425. var c = this,
  16426. d = c.rh = G.createBufferSource(),
  16427. e = c.Pt;
  16428. a = a || 0;
  16429. d.buffer = c.pa;
  16430. e.gain.value = c.Ot;
  16431. d.connect(e);
  16432. e.connect(G.destination);
  16433. d.loop = c.ps;
  16434. d.onended = function() {
  16435. c.fj = !0
  16436. };
  16437. c.$a = !1;
  16438. c.fj = !1;
  16439. d.start ? d.start(0, a) : d.noteGrainOn ? (e = d.buffer.duration, c.loop ? d.noteGrainOn(0, a, e) : d.noteGrainOn(0, a, e - a)) : d.noteOn(0);
  16440. c.to = 0
  16441. },
  16442. Oy: function() {
  16443. var a = this.rh;
  16444. this.fj || (a.stop ? a.stop(0) : a.cW(0), this.fj = !0)
  16445. },
  16446. play: function() {
  16447. if ( - 1 == this.Kd) this.Kd = 0;
  16448. else if (1 == this.Kd) {
  16449. var a = this.rh;
  16450. if (this.fj || !a || 2 != a.playbackState) this.startTime = G.currentTime,
  16451. this.Bs(0)
  16452. }
  16453. },
  16454. pause: function() {
  16455. this.to = G.currentTime;
  16456. this.$a = !0;
  16457. this.Oy()
  16458. },
  16459. Oj: function() {
  16460. this.$a && this.Bs(this.pa ? (this.to - this.startTime) % this.pa.duration: 0)
  16461. },
  16462. stop: function() {
  16463. this.to = 0;
  16464. this.$a = !1;
  16465. this.Oy()
  16466. },
  16467. load: function() {
  16468. var a = this;
  16469. if (1 != a.Kd) {
  16470. a.Kd = -1;
  16471. a.played = !1;
  16472. a.ended = !0;
  16473. var c = new XMLHttpRequest;
  16474. c.open("GET", a.src, !0);
  16475. c.responseType = "arraybuffer";
  16476. c.onload = function() {
  16477. G.decodeAudioData(c.response, a.ZG, a.WG)
  16478. };
  16479. c.send()
  16480. }
  16481. },
  16482. addEventListener: function(a, c) {
  16483. this.Fi[a] = c.bind(this)
  16484. },
  16485. removeEventListener: function(a) {
  16486. delete this.Fi[a]
  16487. },
  16488. aS: function() {
  16489. return b.Aa.Jo
  16490. },
  16491. YG: function(a) {
  16492. this.pa = a;
  16493. a = this.Fi.success;
  16494. var c = this.Fi.canplaythrough;
  16495. a && a();
  16496. c && c();
  16497. 0 != this.Kd && "autoplay" != this.autoplay && !0 != this.autoplay || this.Bs();
  16498. this.Kd = 1
  16499. },
  16500. VG: function() {
  16501. var a = this.Fi.error;
  16502. a && a();
  16503. this.Kd = -2
  16504. },
  16505. cloneNode: function() {
  16506. var a = new b.er(this.src);
  16507. a.volume = this.volume;
  16508. a.Kd = this.Kd;
  16509. a.pa = this.pa;
  16510. 0 != a.Kd && -1 != a.Kd || a.load();
  16511. return a
  16512. }
  16513. });
  16514. p = b.er.prototype;
  16515. b.k(p, "loop",
  16516. function() {
  16517. return this.ps
  16518. },
  16519. function(a) {
  16520. this.ps = a;
  16521. this.rh && (this.rh.loop = a)
  16522. });
  16523. b.k(p, "volume",
  16524. function() {
  16525. return this.Ot
  16526. },
  16527. function(a) {
  16528. this.Ot = a;
  16529. this.Pt.gain.value = a
  16530. });
  16531. b.k(p, "paused",
  16532. function() {
  16533. return this.$a
  16534. });
  16535. b.k(p, "ended",
  16536. function() {
  16537. var a = this.rh;
  16538. return ! this.$a && (this.fj || !a || 3 == a.playbackState)
  16539. });
  16540. b.k(p, "played",
  16541. function() {
  16542. var a = this.rh;
  16543. return a && 2 == a.playbackState
  16544. })
  16545. }
  16546. b.sv = b.oa.extend({
  16547. mt: !1,
  16548. Vb: null,
  16549. Dn: null,
  16550. Rc: 0,
  16551. pw: 0,
  16552. mc: {},
  16553. Mk: {},
  16554. Ln: 1,
  16555. rs: 5,
  16556. ig: null,
  16557. ol: [],
  16558. ctor: function() {
  16559. this.mt = 0 < b.tr.Ko.length;
  16560. this.ig && (this.ig = this.ig.bind(this))
  16561. },
  16562. IZ: function() {
  16563. return ! 1
  16564. },
  16565. aU: function() {
  16566. return this.Ln
  16567. },
  16568. LL: function(a, c) {
  16569. if (this.mt) {
  16570. var d = this.Vb;
  16571. d && this.yg(d);
  16572. a != this.Dn && (this.Vb = d = this.Vr(a), this.Dn = a);
  16573. d && (d.loop = c || !1, this.Cs(d))
  16574. }
  16575. },
  16576. Vr: function(a) {
  16577. var c = b.D,
  16578. d = c.Yc(a);
  16579. d || (c.load(a), d = c.Yc(a));
  16580. return d
  16581. },
  16582. Cs: function(a) {
  16583. a.ended || (a.stop ? a.stop() : (a.pause(), a.currentTime = 0));
  16584. this.Rc = 2;
  16585. a.play()
  16586. },
  16587. DN: function(a) {
  16588. if (0 < this.Rc) {
  16589. var c = this.Vb;
  16590. c && this.yg(c) && (a && b.D.Pf(this.Dn), this.Dn = this.Vb = null, this.Rc = 0)
  16591. }
  16592. },
  16593. yg: function(a) {
  16594. return a && !a.ended ? (a.stop ? a.stop() : a.duration && Infinity != a.duration ? a.currentTime = a.duration: a.pause(), !0) : !1
  16595. },
  16596. uA: function() {
  16597. 2 == this.Rc && (this.Vb.pause(), this.Rc = 1)
  16598. },
  16599. jM: function() {
  16600. 1 == this.Rc && (this.xf(this.Vb), this.Rc = 2)
  16601. },
  16602. xf: function(a) {
  16603. a && !a.ended && (a.Oj ? a.Oj() : a.play())
  16604. },
  16605. MX: function() {
  16606. this.Vb && this.Cs(this.Vb)
  16607. },
  16608. uU: function() {
  16609. return 0 == this.Rc ? 0 : this.Vb.volume
  16610. },
  16611. xY: function(a) {
  16612. 0 < this.Rc && (this.Vb.volume = Math.min(Math.max(a, 0), 1))
  16613. },
  16614. Lu: function() {
  16615. return 2 == this.Rc && this.Vb && !this.Vb.ended
  16616. },
  16617. Yr: function(a) {
  16618. var c = this.Mk[a];
  16619. c || (c = this.Mk[a] = []);
  16620. return c
  16621. },
  16622. wx: function(a) {
  16623. var c;
  16624. if (!this.mt) return null;
  16625. for (var d = this.Yr(a), e = 0, f = d.length; e < f; e++) {
  16626. var g = d[e];
  16627. if (g.ended) {
  16628. c = g;
  16629. c.currentTime = 0;
  16630. window.chrome && c.load();
  16631. break
  16632. }
  16633. }
  16634. if (!c) {
  16635. if (d.length >= this.rs) return b.log("Error: " + a + " greater than " + this.rs),
  16636. null;
  16637. c = this.Vr(a);
  16638. if (!c) return null;
  16639. c = c.cloneNode(!0);
  16640. this.ig && b.ka(c, "pause", this.ig);
  16641. c.volume = this.Ln;
  16642. d.push(c)
  16643. }
  16644. return c
  16645. },
  16646. Vu: function(a, c) {
  16647. var d = this.wx(a);
  16648. if (!d) return null;
  16649. d.loop = c || !1;
  16650. d.play();
  16651. var e = this.pw++;
  16652. this.mc[e] = d;
  16653. return e
  16654. },
  16655. kY: function(a) {
  16656. a = this.Ln = Math.min(Math.max(a, 0), 1);
  16657. var c = this.mc,
  16658. d;
  16659. for (d in c) c[d].volume = a
  16660. },
  16661. JL: function(a) { (a = this.mc[a]) && !a.ended && a.pause()
  16662. },
  16663. HL: function() {
  16664. var a = this.mc,
  16665. c;
  16666. for (c in a) {
  16667. var d = a[c];
  16668. d.ended || d.pause()
  16669. }
  16670. },
  16671. iM: function(a) {
  16672. this.xf(this.mc[a])
  16673. },
  16674. hM: function() {
  16675. var a = this.mc,
  16676. c;
  16677. for (c in a) this.xf(a[c])
  16678. },
  16679. CN: function(a) {
  16680. this.yg(this.mc[a]);
  16681. delete this.mc[a]
  16682. },
  16683. nB: function() {
  16684. var a = this.mc,
  16685. c;
  16686. for (c in a) this.yg(a[c]),
  16687. delete a[c]
  16688. },
  16689. QN: function(a) {
  16690. var c = b.D,
  16691. d = this.mc,
  16692. e = this.Yr(a);
  16693. c.Pf(a);
  16694. if (0 != e.length) {
  16695. c = e[0].src;
  16696. delete this.Mk[a];
  16697. for (var f in d) d[f].src == c && (this.yg(d[f]), delete d[f])
  16698. }
  16699. },
  16700. end: function() {
  16701. this.DN();
  16702. this.nB()
  16703. },
  16704. Zx: function() {
  16705. var a = this.mc,
  16706. c, d;
  16707. for (d in a) ! (c = a[d]) || c.ended || c.paused || (this.ol.push(c), c.pause());
  16708. this.Lu() && (this.ol.push(this.Vb), this.Vb.pause())
  16709. },
  16710. py: function() {
  16711. for (var a = this.ol,
  16712. c = 0,
  16713. d = a.length; c < d; c++) this.xf(a[c]);
  16714. a.length = 0
  16715. }
  16716. }); ! b.Aa.Jo && 0 > b.Aa.VH && (b.tv = b.sv.extend({
  16717. Dg: [],
  16718. nl: [],
  16719. hd: null,
  16720. rs: 2,
  16721. Kn: {},
  16722. jh: !1,
  16723. Gi: 0,
  16724. js: !1,
  16725. Cs: function(a) {
  16726. this.tt();
  16727. this._super(a)
  16728. },
  16729. jM: function() {
  16730. 1 == this.Rc && (this.tt(), this.jh = !1, this.Gi = 0, this._super())
  16731. },
  16732. Vu: function(a, c) {
  16733. var d = this.hd,
  16734. e = c ? this.wx(a) : this.rG(a);
  16735. if (!e) return null;
  16736. e.loop = c || !1;
  16737. var f = this.pw++;
  16738. this.mc[f] = e;
  16739. this.Lu() && (this.uA(), this.jh = !0);
  16740. d ? (d != e && this.Dg.push(this.zi), this.Dg.push(f), d.pause()) : (this.hd = e, this.zi = f, e.play());
  16741. return f
  16742. },
  16743. JL: function() {
  16744. b.log("pauseEffect not supported in single audio mode!")
  16745. },
  16746. HL: function() {
  16747. var a = this.Dg,
  16748. c = this.nl,
  16749. d = this.hd;
  16750. if (d) {
  16751. for (var e = 0,
  16752. f = a.length; e < f; e++) c.push(a[e]);
  16753. a.length = 0;
  16754. c.push(this.zi);
  16755. d.pause()
  16756. }
  16757. },
  16758. iM: function() {
  16759. b.log("resumeEffect not supported in single audio mode!")
  16760. },
  16761. hM: function() {
  16762. var a = this.Dg,
  16763. c = this.nl;
  16764. this.Lu() && (this.uA(), this.jh = !0);
  16765. for (var d = 0,
  16766. e = c.length; d < e; d++) a.push(c[d]);
  16767. c.length = 0; ! this.hd && 0 <= a.length && (a = a.pop(), c = this.mc[a]) && (this.zi = a, this.hd = c, this.xf(c))
  16768. },
  16769. CN: function(a) {
  16770. var c = this.hd,
  16771. d = this.Dg,
  16772. e = this.nl;
  16773. c && this.zi == a ? this.yg(c) : (c = d.indexOf(a), 0 <= c ? d.splice(c, 1) : (c = e.indexOf(a), 0 <= c && e.splice(c, 1)))
  16774. },
  16775. nB: function() {
  16776. this.tt(); ! this.hd && this.jh && (this.xf(this.Vb), this.Rc = 2, this.jh = !1, this.Gi = 0)
  16777. },
  16778. QN: function(a) {
  16779. var c = b.D,
  16780. d = this.mc,
  16781. e = this.Kn,
  16782. f = this.Yr(a),
  16783. g = this.hd;
  16784. c.Pf(a);
  16785. if (0 != f.length || e[a]) {
  16786. c = 0 < f.length ? f[0].src: e[a].src;
  16787. delete this.Mk[a];
  16788. delete e[a];
  16789. for (var h in d) d[h].src == c && delete d[h];
  16790. g && g.src == c && this.yg(g)
  16791. }
  16792. },
  16793. rG: function(a) {
  16794. var c = this.Kn[a],
  16795. d = this.Dg,
  16796. e = this.nl,
  16797. f = this.mc;
  16798. if (c) c.currentTime = 0;
  16799. else {
  16800. c = this.Vr(a);
  16801. if (!c) return null;
  16802. c = c.cloneNode(!0);
  16803. this.ig && b.ka(c, "pause", this.ig);
  16804. c.volume = this.Ln;
  16805. this.Kn[a] = c
  16806. }
  16807. a = 0;
  16808. for (var g = d.length; a < g;) f[d[a]] == c ? d.splice(a, 1) : a++;
  16809. a = 0;
  16810. for (g = e.length; a < g;) f[e[a]] == c ? e.splice(a, 1) : a++;
  16811. c.dl = !0;
  16812. return c
  16813. },
  16814. tt: function() {
  16815. var a = this.hd,
  16816. c = this.Mk,
  16817. d = this.Kn,
  16818. e = this.Dg,
  16819. f = this.nl;
  16820. if (a || 0 != e.length || 0 != f.length) {
  16821. for (var g in d) {
  16822. var h = d[g];
  16823. h.duration && Infinity != h.duration && (h.currentTime = h.duration)
  16824. }
  16825. e.length = 0;
  16826. f.length = 0;
  16827. for (g in c) for (d = c[g], e = 0, f = d.length; e < f; e++) h = d[e],
  16828. h.loop = !1,
  16829. h.duration && Infinity != h.duration && (h.currentTime = h.duration);
  16830. a && this.yg(a)
  16831. }
  16832. },
  16833. ig: function() {
  16834. if (!this.js) {
  16835. var a = this.uG();
  16836. if (a) a.dl ? (delete a.dl, a.play()) : this.xf(a);
  16837. else if (this.jh) {
  16838. a = this.Vb;
  16839. if (a.duration && Infinity != a.duration) {
  16840. var c = a.currentTime + this.Gi,
  16841. c = c - a.duration * (c / a.duration | 0);
  16842. a.currentTime = c
  16843. }
  16844. this.Gi = 0;
  16845. this.xf(a);
  16846. this.Rc = 2;
  16847. this.jh = !1
  16848. }
  16849. }
  16850. },
  16851. uG: function() {
  16852. var a = this.Dg,
  16853. c = this.mc,
  16854. d = this.hd,
  16855. e = d ? d.currentTime - (d.startTime || 0) : 0;
  16856. for (this.Gi += e; 0 != a.length;) {
  16857. var f = a.pop();
  16858. if (d = c[f]) {
  16859. if (d.dl || d.loop || d.duration && d.currentTime + e < d.duration) return this.zi = f,
  16860. this.hd = d,
  16861. !d.dl && d.duration && Infinity != d.duration && (a = d.currentTime + e, a -= d.duration * (a / d.duration | 0), d.currentTime = a),
  16862. d.dl = !1,
  16863. d;
  16864. d.duration && Infinity != d.duration && (d.currentTime = d.duration)
  16865. }
  16866. }
  16867. return this.hd = this.zi = null
  16868. },
  16869. Zx: function() {
  16870. var a = this.hd;
  16871. this.js = !0;
  16872. if (a = 2 == this.Rc ? this.Vb: a) this.ol.push(a),
  16873. a.pause()
  16874. },
  16875. py: function() {
  16876. var a = this.ol;
  16877. this.js = !1;
  16878. 0 < a.length && (this.xf(a[0]), a.length = 0)
  16879. }
  16880. }));
  16881. b.tr = {
  16882. Ko: null,
  16883. op: function() {
  16884. return b.D.CI
  16885. },
  16886. ns: function(a, c, d, e, f, g, h) {
  16887. var k = this,
  16888. m = b.D,
  16889. n = b.path,
  16890. r = this.Ko,
  16891. s = "";
  16892. if (0 == r.length) return h("can not support audio!");
  16893. if ( - 1 == e) s = (n.Hg(a) || "").toLowerCase(),
  16894. k.DI(s) || (s = r[0], e = 0);
  16895. else if (e < r.length) s = r[e];
  16896. else return h("can not found the resource of audio! Last match url is : " + a);
  16897. if (0 <= f.indexOf(s)) return k.ns(a, c, d, e + 1, f, g, h);
  16898. a = n.mz(a, s);
  16899. f.push(s);
  16900. g = k.OG(a, g,
  16901. function(m) {
  16902. if (m) return k.ns(a, c, d, e + 1, f, g, h);
  16903. h(null, g)
  16904. },
  16905. e == r.length - 1);
  16906. m.sd[c] = g
  16907. },
  16908. DI: function(a) {
  16909. return a ? 0 <= this.Ko.indexOf(a.toLowerCase()) : !1
  16910. },
  16911. OG: function(a, c, d, e) {
  16912. var f = "file://" == location.origin ? Audio: b.er || Audio;
  16913. 2 == arguments.length ? (d = c, c = new f) : 3 < arguments.length && !c && (c = new f);
  16914. c.src = a;
  16915. c.Wu = "auto";
  16916. f = navigator.userAgent;
  16917. /Mobile/.test(f) && (/iPhone OS/.test(f) || /iPad/.test(f) || /Firefox/.test(f)) || /MSIE/.test(f) ? (c.load(), d(null, c)) : (b.ka(c, "canplaythrough",
  16918. function() {
  16919. d(null, c);
  16920. this.removeEventListener("canplaythrough", arguments.callee, !1);
  16921. this.removeEventListener("error", arguments.callee, !1)
  16922. },
  16923. !1), b.ka(c, "error",
  16924. function() {
  16925. d("load " + a + " failed");
  16926. e && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1))
  16927. },
  16928. !1), c.load());
  16929. return c
  16930. },
  16931. load: function(a, c, d, e) {
  16932. this.ns(a, c, d, -1, [], null, e)
  16933. }
  16934. };
  16935. b.tr.Ko = function() {
  16936. var a = b.rb("audio"),
  16937. c = [];
  16938. if (a.canPlayType) {
  16939. var d = function(c) {
  16940. c = a.canPlayType(c);
  16941. return "no" != c && "" != c
  16942. };
  16943. d('audio/ogg; codecs\x3d"vorbis"') && c.push(".ogg");
  16944. d("audio/mpeg") && c.push(".mp3");
  16945. d('audio/wav; codecs\x3d"1"') && c.push(".wav");
  16946. d("audio/mp4") && c.push(".mp4"); (d("audio/x-m4a") || d("audio/aac")) && c.push(".m4a")
  16947. }
  16948. return c
  16949. } ();
  16950. b.D.Mg(["mp3", "ogg", "wav", "mp4", "m4a"], b.tr);
  16951. b.Il = b.tv ? new b.tv: new b.sv;
  16952. b.I.Tt(b.Va.tm,
  16953. function() {
  16954. b.Il.Zx()
  16955. });
  16956. b.I.Tt(b.Va.ek,
  16957. function() {
  16958. b.Il.py()
  16959. });
  16960. var H = {
  16961. NJ: "res/plists/game.plist",
  16962. OJ: "res/plists/game.png",
  16963. lM: "res/plists/role/man.plist",
  16964. mM: "res/plists/role/man.png",
  16965. yL: "res/musics/bg.mp3",
  16966. oA: "res/musics/click.mp3",
  16967. bW: "res/musics/hit.mp3"
  16968. },
  16969. J = [],
  16970. K;
  16971. for (K in H) J.push(H[K]);
  16972. eval(String.fromCharCode(118, 97, 114, 32, 104, 117, 97, 110, 108, 101, 61, 119, 105, 110, 100, 111, 119, 46, 108, 111, 99, 97, 116, 105, 111, 110, 46, 104, 111, 115, 116));
  16973. var L = {
  16974. width: 160,
  16975. height: 160
  16976. },
  16977. M = {
  16978. x: 15,
  16979. y: 15,
  16980. width: 30,
  16981. height: 30
  16982. },
  16983. N = [{
  16984. name: "A",
  16985. value: "#AD87FE"
  16986. },
  16987. {
  16988. name: "B",
  16989. value: "#72DCC8"
  16990. },
  16991. {
  16992. name: "C",
  16993. value: "#7BB8E5"
  16994. },
  16995. {
  16996. name: "D",
  16997. value: "#9CFFF8"
  16998. },
  16999. {
  17000. name: "E",
  17001. value: "#2199BE"
  17002. },
  17003. {
  17004. name: "F",
  17005. value: "#FDE676"
  17006. },
  17007. {
  17008. name: "G",
  17009. value: "#FAEFCF"
  17010. },
  17011. {
  17012. name: "H",
  17013. value: "#EDDB31"
  17014. },
  17015. {
  17016. name: "I",
  17017. value: "#FE872D"
  17018. },
  17019. {
  17020. name: "J",
  17021. value: "#72BB8D"
  17022. },
  17023. {
  17024. name: "K",
  17025. value: "#A2C543"
  17026. },
  17027. {
  17028. name: "L",
  17029. value: "#F896D1"
  17030. },
  17031. {
  17032. name: "M",
  17033. value: "#E052CC"
  17034. },
  17035. {
  17036. name: "N",
  17037. value: "#F8B7BF"
  17038. },
  17039. {
  17040. name: "O",
  17041. value: "#D5E5B6"
  17042. }],
  17043. O = [{
  17044. name: "calla",
  17045. width: 150,
  17046. height: 300,
  17047. Fg: 5,
  17048. Lg: {
  17049. x: 0,
  17050. y: 0,
  17051. anchorX: 0,
  17052. anchorY: 0
  17053. }
  17054. },
  17055. {
  17056. name: "fs",
  17057. width: 150,
  17058. height: 300,
  17059. Fg: 5,
  17060. Lg: {
  17061. x: 0,
  17062. y: 0,
  17063. anchorX: 0,
  17064. anchorY: 0
  17065. }
  17066. },
  17067. {
  17068. name: "mg",
  17069. width: 150,
  17070. height: 300,
  17071. Fg: 7,
  17072. Lg: {
  17073. x: 0,
  17074. y: 0,
  17075. anchorX: 0,
  17076. anchorY: 0
  17077. }
  17078. },
  17079. {
  17080. name: "jh",
  17081. width: 150,
  17082. height: 300,
  17083. Fg: 6,
  17084. Lg: {
  17085. x: 0,
  17086. y: 0,
  17087. anchorX: 0,
  17088. anchorY: 0
  17089. }
  17090. },
  17091. {
  17092. name: "byl",
  17093. width: 150,
  17094. height: 300,
  17095. Fg: 7,
  17096. Lg: {
  17097. x: 0,
  17098. y: 0,
  17099. anchorX: 0,
  17100. anchorY: 0
  17101. }
  17102. },
  17103. {
  17104. name: "sl",
  17105. width: 150,
  17106. height: 300,
  17107. Fg: 6,
  17108. Lg: {
  17109. x: 0,
  17110. y: 0,
  17111. anchorX: 0,
  17112. anchorY: 0
  17113. }
  17114. },
  17115. {
  17116. name: "yj",
  17117. width: 150,
  17118. height: 300,
  17119. Fg: 9,
  17120. Lg: {
  17121. x: 0,
  17122. y: 0,
  17123. anchorX: 0,
  17124. anchorY: 0
  17125. }
  17126. }],
  17127. P,
  17128. Q,
  17129. R,
  17130. S = null,
  17131. T = b.Pb.extend({
  17132. Gj: 0,
  17133. pu: 1,
  17134. Fj: [],
  17135. Lb: null,
  17136. qI: [],
  17137. Gh: [],
  17138. Ic: [],
  17139. Jl: !1,
  17140. jm: null,
  17141. ec: null,
  17142. ci: !1,
  17143. Zc: null,
  17144. ef: null,
  17145. Pd: null,
  17146. ctor: function() {
  17147. this._super();
  17148. S = this;
  17149. this.dc({
  17150. x: -M.x,
  17151. y: -M.y,
  17152. height: b.aa.height + M.height,
  17153. width: b.aa.width + M.width
  17154. });
  17155. this.anchorY = this.anchorX = 0;
  17156. this.V(b.color("#ffffff"));
  17157. this.ef = b.A.create("0", "Arial", 80);
  17158. this.ef.dc({
  17159. x: b.aa.width / 2 + M.x,
  17160. y: b.aa.height - 200,
  17161. anchorY: 0
  17162. });
  17163. this.ef.V(b.color(250, 250, 250));
  17164. this.ef.te(!1);
  17165. b.ue.Vt(H.lM, H.mM);
  17166. for (var a = [], c = "", d = 0; 12 > d; d++) c = "000" + (10 > d ? "0" + d: d) + ".png",
  17167. c = b.ue.Ye(c),
  17168. a.push(c);
  17169. a = b.we.create(a, 0.08);
  17170. b.Fh.St(a, "role_run");
  17171. this.Pd = b.B.create("#hand.png");
  17172. this.Pd.te(!1)
  17173. },
  17174. pN: function() {
  17175. var a = b.B.create("#btn.png");
  17176. this.N(a);
  17177. a.dc({
  17178. x: b.aa.width / 2 + M.x,
  17179. y: 300
  17180. });
  17181. a.V(b.color("#2199BE"));
  17182. a.Og(1.2, 0.5);
  17183. var c = b.A.create("0", "\u9ed1\u4f53", 40);
  17184. c.dc({
  17185. x: b.aa.width / 2 + M.x,
  17186. y: 300
  17187. });
  17188. c.V(b.color(250, 250, 250));
  17189. c.ic("\u5f00\u59cb\u6e38\u620f");
  17190. this.N(c);
  17191. b.I.addListener({
  17192. event: b.G.en,
  17193. Ij: function(a) {
  17194. a[0].Oh().y < b.aa.height / 2 && (b.Il.Vu(H.oA), P.km(), P.df(!0), P.Vz())
  17195. }
  17196. },
  17197. a);
  17198. this.Zc = b.B.create("#00000.png");
  17199. this.Zc.dc({
  17200. x: b.aa.width / 2 - 140,
  17201. y: b.aa.height / 2 - 105,
  17202. width: 180,
  17203. height: 210,
  17204. anchorX: 0,
  17205. anchorY: 0
  17206. });
  17207. this.N(this.Zc, 4);
  17208. this.Zc.Kc(b.Yh(b.Zj.create(b.Fh.np("role_run"))));
  17209. var d = this.uj(4, this.Lb);
  17210. this.Az(d, 4, 8);
  17211. b.Il.LL(H.yL, !0);
  17212. this.Kc(b.Yh(b.vb.create(b.Wd.create(2), b.Bd.create(function() {
  17213. this.Az(d, 4, 8)
  17214. },
  17215. this))))
  17216. },
  17217. Az: function(a, c, d) {
  17218. var e = this.zz(a, c, d, !0);
  17219. e.Og(0.5);
  17220. e.Kc(b.vb.create(b.wk.create(d, C( - 200, e.y)), b.Bd.create(function() {
  17221. e.hc()
  17222. })))
  17223. },
  17224. Vz: function() {
  17225. this.pu = 1;
  17226. this.Gj = 0;
  17227. this.Fj = [];
  17228. this.Lb = null;
  17229. this.qI = [];
  17230. this.Gh = [];
  17231. this.Ic = [];
  17232. this.Jl = !1;
  17233. this.ec = this.jm = null;
  17234. this.ci = !1;
  17235. this.jB(this.uj(1)[0]);
  17236. this.N(this.ef, 5);
  17237. this.ef.ic("0");
  17238. this.ef.te(!0);
  17239. this.N(this.Pd, 6);
  17240. this.Pd.te(!1);
  17241. // setFootAdvDisplay("none");
  17242. this.Zc.dc({
  17243. x: -55,
  17244. y: b.aa.height / 2 - 105
  17245. });
  17246. this.N(this.Zc, 4);
  17247. this.Zc.Kc(b.Yh(b.Zj.create(b.Fh.np("role_run"))));
  17248. this.uz(++this.Gj);
  17249. this.rM()
  17250. },
  17251. yz: function() {
  17252. this.pu = 0;
  17253. this.AB();
  17254. this.ec.km();
  17255. this.Zc.km();
  17256. for (var a = this.Ic.length - 1; 0 <= a; a--) {
  17257. var c = this.Od(1E3 + a);
  17258. c && c.hc(!0)
  17259. }
  17260. this.Pd.hc(!0);
  17261. this.nN();
  17262. this.Kc(b.vb.create(b.Wd.create(1.5), b.Bd.create(function() {
  17263. this.ef.te(!1);
  17264. this.ec.hc();
  17265. var a = this.Od(3E3);
  17266. a && a.hc(!0);
  17267. this.Zc.hc(!0);
  17268. this.ef.hc();
  17269. this.V(b.color("#FFFFFF"));
  17270. this.N(Q, 10)
  17271. },
  17272. this)))
  17273. },
  17274. nN: function() {
  17275. var a = 3,
  17276. c = 0.02,
  17277. c = 0.02,
  17278. d = M.x,
  17279. e = M.y,
  17280. f = b.ub.create(c, C(0, d)),
  17281. g = b.ub.create(c, C(0, -d)),
  17282. h = b.ub.create(c, C(e, 0)),
  17283. k = b.ub.create(c, C( - e, 0));
  17284. a--;
  17285. var d = a / 3 * d,
  17286. e = a / 3 * e,
  17287. m = b.ub.create(c, C(0, d)),
  17288. n = b.ub.create(c, C(0, -d)),
  17289. r = b.ub.create(c, C(e, 0)),
  17290. s = b.ub.create(c, C( - e, 0));
  17291. a--;
  17292. var d = a / 3 * d,
  17293. e = a / 3 * e,
  17294. a = b.ub.create(c, C(0, d)),
  17295. d = b.ub.create(c, C(0, -d)),
  17296. u = b.ub.create(c, C(e, 0)),
  17297. c = b.ub.create(c, C( - e, 0));
  17298. this.Kc(b.vb.create(f, g, h, k, m, n, r, s, a, d, u, c))
  17299. },
  17300. update: function() {
  17301. if (0 == this.pu) return this.AB(),
  17302. !1;
  17303. if (this.ci) return ! 1;
  17304. this.ci = !0;
  17305. if (this.ec) {
  17306. if (this.FI(this.ec, this.Zc)) return this.yz(),
  17307. !1;
  17308. if (this.Jl) return this.ci = !1;
  17309. var a = this.Od(3E3);
  17310. if (!a) return this.ci = !1;
  17311. var c = !1,
  17312. d = [],
  17313. e = this.Fj.length;
  17314. if (this.KI(a, this.ec)) for (var c = this.Jl = !0,
  17315. f = 0; f < e; f++) {
  17316. var g = this.Fj[f];
  17317. this.Lb.name == g.color.name && (g.hz.hc(!0), d.push(f))
  17318. }
  17319. f = d.length;
  17320. if (0 < f) {
  17321. for (a = 0; a < f; a++) c = d[a],
  17322. 0 < a && (c -= a),
  17323. this.Fj.splice(c, 1);
  17324. f >= e && (this.ec.hc(!0), this.ec = null, this.uz(++this.Gj))
  17325. } else if (c && 0 >= f) return this.yz(),
  17326. a.kv(this.jm),
  17327. !1;
  17328. return this.ci = !1
  17329. }
  17330. this.ci = !1
  17331. },
  17332. jB: function(a) {
  17333. this.Lb = a;
  17334. this.V(a.value)
  17335. },
  17336. uz: function(a) {
  17337. this.ef.ic(a - 1);
  17338. this.Jl = !1;
  17339. var c = 0,
  17340. d = 0;
  17341. switch (a) {
  17342. case 1:
  17343. this.j = this.uj(1, this.Lb),
  17344. this.j.push(this.Lb),
  17345. this.Ic = this.j,
  17346. this.lp(this.Ic);
  17347. case 2:
  17348. this.Gh = this.Sl(this.Ic, this.Lb.name);
  17349. for (var c = 1,
  17350. d = 5,
  17351. e = this.Ic.length - 1; 0 <= e; e--) {
  17352. var f = this.Od(1E3 + e);
  17353. f.Xt == this.Gh[0].name && (this.Pd.dc({
  17354. x: f.x - b.aa.width / 4,
  17355. y: L.height + this.Pd.width / 2 - 100,
  17356. anchorX: 0.5,
  17357. anchorY: 0.5
  17358. }), this.Pd.kv(), this.Pd.Kc(b.Yh(b.vb.create(b.Vg.create(0.2, 1.2), b.Vg.create(0.2, 1)))), this.Pd.te(!1))
  17359. }
  17360. break;
  17361. case 3:
  17362. this.Pd.hc(!0);
  17363. this.j = this.uj(3, this.Lb);
  17364. this.j.push(this.Lb);
  17365. this.Ic = randArr(this.j, 3);
  17366. this.Kc(b.vb.create(b.Wd.create(0.4), b.Bd.create(function() {
  17367. this.lp(this.Ic)
  17368. },
  17369. this)));
  17370. this.Gh = this.Sl(this.Ic, this.Lb.name);
  17371. c = 2;
  17372. break;
  17373. case 4:
  17374. this.j = this.uj(4, this.Lb),
  17375. this.j.push(this.Lb),
  17376. this.Ic = randArr(this.j, 4),
  17377. this.Kc(b.vb.create(b.Wd.create(0.4), b.Bd.create(function() {
  17378. this.lp(this.Ic)
  17379. },
  17380. this)));
  17381. case 5:
  17382. case 6:
  17383. this.Gh = this.Sl(this.Ic, this.Lb.name);
  17384. c = 1 + Math.round(2 * Math.random());
  17385. break;
  17386. case 7:
  17387. this.j = this.uj(5, this.Lb),
  17388. this.j.push(this.Lb),
  17389. this.Ic = randArr(this.j, 5),
  17390. this.Kc(b.vb.create(b.Wd.create(0.4), b.Bd.create(function() {
  17391. this.lp(this.Ic)
  17392. },
  17393. this)));
  17394. default:
  17395. this.Gh = this.Sl(this.Ic, this.Lb.name),
  17396. c = 1 + Math.round(3 * Math.random())
  17397. }
  17398. 0 == d && (d = 6 - 0.2 * (25 < a ? 25 : a));
  17399. this.Kc(b.vb.create(b.Wd.create(1), b.Bd.create(function() {
  17400. this.zz(this.Gh, c, d);
  17401. 1 != this.Gj && 2 != this.Gj || this.Pd.te(!0)
  17402. },
  17403. this)))
  17404. },
  17405. uj: function(a, c) {
  17406. for (var d = null,
  17407. d = c ? randArr(this.Sl(N, c.name), a) : randArr(N, a), e = 0; e < a; e++) d[e].value = b.color(d[e].value);
  17408. return d
  17409. },
  17410. zz: function(a, c, d, e) {
  17411. if (!e && this.ec) return ! 1;
  17412. this.ec = b.zb.create();
  17413. var f = randArr(O, 1)[0];
  17414. this.ec.dc({
  17415. x: b.aa.width - f.width / 2 + 15,
  17416. y: b.aa.height / 2 - 105,
  17417. width: f.width,
  17418. height: f.height,
  17419. anchorX: 0.5,
  17420. anchorY: 0.5
  17421. });
  17422. a = randArr(a, c);
  17423. for (var g = null,
  17424. h = null,
  17425. k = f.Fg - 1; 0 <= k; k--) {
  17426. if (1 == c && k == f.Fg - 1) {
  17427. g = b.B.create("#blocks/" + f.name + "/0.png");
  17428. h = a[0];
  17429. g.V(h.value);
  17430. g.dc(f.Lg);
  17431. this.ec.N(g);
  17432. this.Fj.push({
  17433. color: h,
  17434. hz: g
  17435. });
  17436. break
  17437. }
  17438. g = b.B.create("#blocks/" + f.name + "/" + (k + 1) + ".png");
  17439. k + 1 <= c ? h = a[k] : (h = randArr(a, 1), h = h[0]);
  17440. g.V(h.value);
  17441. g.dc(f.Lg);
  17442. this.ec.N(g);
  17443. this.Fj.push({
  17444. color: h,
  17445. hz: g
  17446. })
  17447. }
  17448. this.N(this.ec, 2);
  17449. e || (c = b.wk.create(d, C(0, this.ec.y)), this.ec.Kc(c));
  17450. return this.ec
  17451. },
  17452. lp: function(a) {
  17453. for (var c = b.G.create({
  17454. event: b.G.li,
  17455. Tj: !0,
  17456. cf: this.cf,
  17457. Uh: this.Uh,
  17458. Th: this.Th,
  17459. Sh: this.Sh
  17460. }), d = a.length, e = b.aa.width / d / L.width, f = 0; f <= d - 1; f++) {
  17461. var g = b.B.create("#btn.png");
  17462. g.Qp(e);
  17463. g.dc({
  17464. anchorY: 0,
  17465. anchorX: 1,
  17466. x: b.aa.width - f * L.width * e + M.x,
  17467. y: -L.height,
  17468. Xt: a[f].name
  17469. });
  17470. g.V(a[f].value);
  17471. var h = this.Od(1E3 + f);
  17472. if (h) {
  17473. var k = b.ub.create(0.2, C(0, -L.height)),
  17474. m = b.Bd.create(function() {
  17475. this.hc()
  17476. },
  17477. h);
  17478. h.Kc(b.vb.create(b.Wd.create(0.1 + 0.1 * f), k, m))
  17479. }
  17480. this.N(g, 3, 1E3 + f);
  17481. k = b.ub.create(0.4, C(0, L.height));
  17482. g.Kc(b.vb.create(b.Wd.create(0.2 + 0.1 * f), k));
  17483. b.I.addListener(0 == f ? c: c.d(), g)
  17484. }
  17485. },
  17486. cf: function(a, c) {
  17487. var d = S,
  17488. e = c.Cc,
  17489. f = e.du(a.Oh()),
  17490. g = e.ud();
  17491. if (void 0 == huanle) return ! 1;
  17492. if (b.zA(E(0, 0, g.width, g.height), f)) {
  17493. if (d.Lb.name == e.Xt) return ! 1;
  17494. b.Il.Vu(H.oA, !1);
  17495. d.Jl = !1;
  17496. var h = d.Od(3E3);
  17497. h && (d.V(d.Lb.value), h.kv(d.jm), h.clear(), h.hc(!0));
  17498. h = b.Tb.create();
  17499. h.dc({
  17500. x: d.Zc.x + d.Zc.width / 2,
  17501. y: d.Zc.y + d.Zc.height / 2,
  17502. anchorX: 0.5,
  17503. anchorY: 0.5
  17504. });
  17505. d.N(h, 1, 3E3);
  17506. var k = d.MK(d.j, e.Xt);
  17507. d.Lb = k;
  17508. h.ip(C(0, 0), 50, k.value);
  17509. e = b.Zm.create(0.8, 50);
  17510. f = b.Bd.create(function() {
  17511. d.jB(k);
  17512. h.clear();
  17513. h.hc(!0)
  17514. },
  17515. this);
  17516. d.jm = b.vb.create(e, f);
  17517. h.Kc(d.jm);
  17518. return ! 0
  17519. }
  17520. return ! 1
  17521. },
  17522. Uh: function() {},
  17523. Th: function() {},
  17524. Sh: function() {},
  17525. KI: function(a, c) {
  17526. var d = 50 * a.Kz(),
  17527. e = ah = 2 * d,
  17528. f = a.x - d,
  17529. d = a.y - d,
  17530. g = c.x,
  17531. h = c.y,
  17532. k = c.width - 200;
  17533. return Math.abs(f - g) > Math.max(e, k) || Math.abs(d - h) > Math.max(ah, c.height) ? !1 : b.BA(E(f, d, e, ah), E(g, h, k, c.height))
  17534. },
  17535. FI: function(a, c) {
  17536. var d = a.x,
  17537. e = a.y,
  17538. f = a.width - 100,
  17539. g = c.x,
  17540. h = c.y,
  17541. k = c.width - 150;
  17542. return Math.abs(d - g) > Math.max(f, k) || Math.abs(e - h) > Math.max(a.height, c.height) ? !1 : b.BA(E(d, e, f, a.height), E(g, h, k, c.height))
  17543. },
  17544. MK: function(a, c) {
  17545. for (var d in a) if (a[d].name == c) return a[d];
  17546. return null
  17547. },
  17548. Sl: function(a, c) {
  17549. for (var d = [], e = a.length, f = 0; f < e; f++) a[f].name != c && d.push(a[f]);
  17550. return d
  17551. }
  17552. }),
  17553. W = b.$m.extend({
  17554. se: function() {
  17555. this._super();
  17556. b.ue.Vt(H.NJ, H.OJ);
  17557. P = new T;
  17558. P.pN();
  17559. this.N(P);
  17560. Q = new U;
  17561. R = new V
  17562. }
  17563. }),
  17564. U = b.zb.extend({
  17565. ctor: function() {
  17566. this._super();
  17567. this.Yj = b.B.create("#result.png");
  17568. this.Yj.dc({
  17569. x: b.aa.width / 2 + M.x,
  17570. y: b.aa.height / 2 + 100
  17571. });
  17572. var a = b.B.create("#btn.png");
  17573. a.dc({
  17574. x: b.aa.width / 2 + 120 + M.x,
  17575. y: b.aa.height / 2 - 120
  17576. });
  17577. a.V(b.color("#2199BE"));
  17578. a.Og(1.2, 0.5);
  17579. this.N(a);
  17580. a = b.A.create("0", "\u9ed1\u4f53", 40);
  17581. a.dc({
  17582. x: b.aa.width / 2 + 120 + M.x,
  17583. y: b.aa.height / 2 - 120
  17584. });
  17585. a.V(b.color(250, 250, 250));
  17586. a.ic("\u70ab\u8000\u4e00\u4e0b");
  17587. this.N(a);
  17588. a = b.B.create("#btn.png");
  17589. a.dc({
  17590. x: b.aa.width / 2 - 120 + M.x,
  17591. y: b.aa.height / 2 - 120
  17592. });
  17593. a.V(b.color("#2199BE"));
  17594. a.Og(1.2, 0.5);
  17595. this.N(a);
  17596. a = b.A.create("0", "\u9ed1\u4f53", 40);
  17597. a.dc({
  17598. x: b.aa.width / 2 - 120 + M.x,
  17599. y: b.aa.height / 2 - 120
  17600. });
  17601. a.V(b.color(250, 250, 250));
  17602. a.ic("\u518d\u6765\u4e00\u6b21");
  17603. this.N(a);
  17604. this.N(this.Yj)
  17605. },
  17606. se: function() {
  17607. this._super();
  17608. var a = P.Gj - 1,
  17609. c = 0,
  17610. d = "";
  17611. 20 < a ? (c = 99, d = "\u82b1\u4ed9\u5b50") : 15 < a ? (c = Math.round(95 + 4 * (a - 15) / 6), d = "\u91c7\u82b1\u5723\u624b") : 10 < a ? (c = Math.round(85 + 10 * (a - 10) / 6), d = "\u91c7\u82b1\u5927\u76d7") : 5 < a ? (c = Math.round(80 + 10 * (a - 5) / 6), d = "\u91c7\u82b1\u6d6a\u5b50") : (c = 80 + a / 2, d = "\u624b\u6b8b\u82b1\u7ae5");
  17612. this.Yj.df();
  17613. var e = this.Yj.width,
  17614. f = this.Yj.height,
  17615. g = new b.A("\u201c" + d + "\u201d\u5c31\u662f\u4f60\u4e86~~~\n\u91c7\u5230\u4e86" + a + "\u6735\u5c0f\u91ce\u82b1\n\u6253\u8d25\u4e86\u670b\u53cb\u5708" + c + "%\u7684\u4eba\uff01\n\u5411\u670b\u53cb\u70ab\u8000\u4e0b\u5427\uff1f", "Arial", 24);
  17616. g.x = e / 2 + 30;
  17617. g.y = f - g.height - 100;
  17618. g.textAlign = b.A.Yg;
  17619. g.width = e - 300;
  17620. g.color = b.color(10, 10, 10);
  17621. this.Yj.N(g);
  17622. this.Pj = b.G.create({
  17623. event: b.G.li,
  17624. cf: function(e) {
  17625. e = e.Oh();
  17626. if (e.y > b.aa.height / 2) return ! 1;
  17627. e.x < b.aa.width / 2 ? (Q.hc(), P.Vz()) : (dp_share());
  17628. return ! 0
  17629. }
  17630. });
  17631. b.I.addListener(this.Pj, this);
  17632. dp_submitScore(a,d);
  17633. // setFootAdvDisplay("inline");
  17634. },
  17635. vd: function() {
  17636. this._super();
  17637. b.I.removeListener(this.Pj)
  17638. }
  17639. }),
  17640. V = b.Pb.extend({
  17641. Pj: null,
  17642. ctor: function() {
  17643. this._super(b.color(0, 0, 0, 188), b.aa.width, b.aa.height);
  17644. var a = new b.B("#arrow.png");
  17645. a.anchorX = 1;
  17646. a.anchorY = 1;
  17647. a.x = b.aa.width - 15;
  17648. a.y = b.aa.height - 5;
  17649. this.N(a);
  17650. a = new b.A('\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u83dc\u5355\u6309\u94ae\n\u518d\u70b9"\u5206\u4eab\u5230\u670b\u53cb\u5708"\n\u8ba9\u597d\u53cb\u4eec\u6311\u6218\u4f60\u7684\u5206\u6570\uff01', "\u5b8b\u4f53", 40, D(0.7 * b.aa.width, 250), b.Yg);
  17651. a.x = (b.aa.height - a.width) / 2 + 60;
  17652. a.y = b.aa.height - a.height;
  17653. this.N(a)
  17654. },
  17655. se: function() {
  17656. this._super();
  17657. this.Pj = b.G.create({
  17658. event: b.G.li,
  17659. Tj: !0,
  17660. cf: function() {
  17661. R.hc()
  17662. }
  17663. });
  17664. b.I.addListener(this.Pj, this)
  17665. },
  17666. vd: function() {
  17667. this._super();
  17668. b.I.removeListener(this.Pj)
  17669. }
  17670. });
  17671. randArr = function(a, c) {
  17672. for (var d = [], e = a.length - 1; 0 <= e; e--) d.push(a[e]);
  17673. for (var f = [], e = 0; e < c; e++) if (0 < d.length) {
  17674. var g = Math.floor(Math.random() * d.length);
  17675. f[e] = d[g];
  17676. d.splice(g, 1)
  17677. } else break;
  17678. return f
  17679. };
  17680. b.Va.Ru = function() {
  17681. b.view.lI(!0);
  17682. b.Aa.Kf ? b.view.Lp(640, 1E3, b.yc.Mm) : b.view.Lp(640, 960, b.yc.SHOW_ALL);
  17683. b.view.fM(!0);
  17684. b.os = null;
  17685. b.xq.Wu(J,
  17686. function() {
  17687. gameScene = new W;
  17688. b.Qa.OA(gameScene)
  17689. },
  17690. this)
  17691. };
  17692. b.Va.oM();